@forsion/extend 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +6 -0
- package/SIGNATURE +7 -7
- package/dist/desktop.mjs +42 -42
- package/dist/main.js +43 -40
- package/manifest.json +1 -1
- package/package.json +2 -1
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";var __fxExtend=(()=>{var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $m(e,t){return Om(e)||Fm(e,t)||Um(e,t)||Bm()}function Um(e,t){if(e){if(typeof e=="string")return Il(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Il(e,t):void 0}}function Wr(e){var t,o;function r(i,s){try{var l=e[i](s),c=l.value,d=c instanceof Nm;Promise.resolve(d?c.v:c).then(function(f){if(d){var u=i==="return"&&c.k?i:"next";if(!c.k||f.done)return r(u,f);f=e[u](f).value}a(!!l.done,f)},function(f){r("throw",f)})}catch(f){a(2,f)}}function a(i,s){i===2?t.reject(s):t.resolve({value:s,done:i}),(t=t.next)?r(t.key,t.arg):o=null}this._invoke=function(i,s){return new Promise(function(l,c){var d={key:i,arg:s,resolve:l,reject:c,next:null};o?o=o.next=d:(t=o=d,r(i,s))})},typeof e.return!="function"&&(this.return=void 0)}Wr.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Wr.prototype.next=function(e){return this._invoke("next",e)},Wr.prototype.throw=function(e){return this._invoke("throw",e)},Wr.prototype.return=function(e){return this._invoke("return",e)};var Gl=Object.entries,Rl=Object.setPrototypeOf,Hm=Object.isFrozen,qm=Object.getPrototypeOf,Vm=Object.getOwnPropertyDescriptor,Ct=Object.freeze,Et=Object.seal,Do=Object.create,Jl=typeof Reflect<"u"&&Reflect,ii=Jl.apply,si=Jl.construct;Ct||(Ct=function(t){return t});Et||(Et=function(t){return t});ii||(ii=function(t,o){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return t.apply(o,a)});si||(si=function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return new t(...r)});var so=St(Array.prototype.forEach);Array.prototype.indexOf;var Wm=St(Array.prototype.lastIndexOf),Ll=St(Array.prototype.pop),or=St(Array.prototype.push);Array.prototype.slice;var jm=St(Array.prototype.splice),No=Array.isArray,ir=St(String.prototype.toLowerCase),ei=St(String.prototype.toString),Dl=St(String.prototype.match),rr=St(String.prototype.replace),Nl=St(String.prototype.indexOf),Gm=St(String.prototype.trim),Jm=St(Number.prototype.toString),Xm=St(Boolean.prototype.toString),Ol=typeof BigInt>"u"?null:St(BigInt.prototype.toString),Fl=typeof Symbol>"u"?null:St(Symbol.prototype.toString),Zt=St(Object.prototype.hasOwnProperty),ar=St(Object.prototype.toString),$t=St(RegExp.prototype.test),Gn=Km(TypeError);function St(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return ii(e,t,r)}}function Km(e){return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return si(e,o)}}function Ue(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ir;if(Rl&&Rl(e,null),!No(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){let i=o(a);i!==a&&(Hm(t)||(t[r]=i),a=i)}e[a]=!0}return e}function Ym(e){for(let t=0;t<e.length;t++)Zt(e,t)||(e[t]=null);return e}function rn(e){let t=Do(null);for(let r of Gl(e)){var o=$m(r,2);let a=o[0],i=o[1];Zt(e,a)&&(No(i)?t[a]=Ym(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=rn(i):t[a]=i)}return t}function Zm(e){switch(typeof e){case"string":return e;case"number":return Jm(e);case"boolean":return Xm(e);case"bigint":return Ol?Ol(e):"0";case"symbol":return Fl?Fl(e):"Symbol()";case"undefined":return ar(e);case"function":case"object":{if(e===null)return ar(e);let t=e,o=gn(t,"toString");if(typeof o=="function"){let r=o(t);return typeof r=="string"?r:ar(r)}return ar(e)}default:return ar(e)}}function gn(e,t){for(;e!==null;){let r=Vm(e,t);if(r){if(r.get)return St(r.get);if(typeof r.value=="function")return St(r.value)}e=qm(e)}function o(){return null}return o}function Qm(e){try{return $t(e,""),!0}catch{return!1}}var Bl=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ti=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ni=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),eg=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),oi=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),tg=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$l=Ct(["#text"]),Ul=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ri=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Hl=Ct(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),jr=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ng=Et(/{{[\w\W]*|^[\w\W]*}}/g),og=Et(/<%[\w\W]*|^[\w\W]*%>/g),rg=Et(/\${[\w\W]*/g),ag=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),ig=Et(/^aria-[\-\w]+$/),ql=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sg=Et(/^(?:\w+script|data):/i),lg=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cg=Et(/^html$/i),dg=Et(/^[a-z][.\w]*(-[.\w]+)+$/i),Vl=Et(/<[/\w!]/g),Wl=Et(/<[/\w]/g),ug=Et(/<\/no(script|embed|frames)/i),pg=Et(/\/>/i),on={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Xl=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],fg=Ct(Ue({},Xl)),mg=(function(){let e={};return so(Xl,t=>{e[t]=Et(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),gg=function(){return typeof window>"u"?null:window},hg=function(t,o){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},jl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Jn=function(t,o,r,a){return Zt(t,o)&&No(t[o])?Ue(a.base?rn(a.base):{},t[o],a.transform):r},ai=function(t,o,r){let a=Zt(t,o)?t[o]:void 0;return a&&typeof a=="object"?rn(a):r()};function Kl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gg(),t=X=>Kl(X);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==on.document||!e.Element)return t.isSupported=!1,t;let o=e.document,r=o,a=r.currentScript;e.DocumentFragment;let i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,f=e.trustedTypes,u=l.prototype,p=gn(u,"cloneNode"),m=gn(u,"remove"),g=gn(u,"removeAttributeNode"),h=gn(u,"nextSibling"),y=gn(u,"childNodes"),b=gn(u,"parentNode"),w=gn(u,"shadowRoot"),k=gn(u,"attributes"),z=s&&s.prototype?gn(s.prototype,"nodeType"):null,P=s&&s.prototype?gn(s.prototype,"nodeName"):null,F=s&&s.prototype?gn(s.prototype,"ownerDocument"):null,$=function(v){return z?z(v):v.nodeType},O=function(v){return P?P(v):v.nodeName};if(typeof i=="function"){let X=o.createElement("template");X.content&&X.content.ownerDocument&&(o=X.content.ownerDocument)}let K,C="",D,U=!1,M=0,Z=function(){if(M>0)throw Gn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},S=function(v){Z(),M++;try{return K.createHTML(v)}finally{M--}},A=function(v){Z(),M++;try{return K.createScriptURL(v)}finally{M--}},I=function(){return U||(D=hg(f,a),U=!0),D},j=o,ee=j.implementation,H=j.createNodeIterator,re=j.createDocumentFragment,he=j.getElementsByTagName,qe=r.importNode,me=jl();t.isSupported=typeof Gl=="function"&&typeof b=="function"&&ee&&ee.createHTMLDocument!==void 0;let De=ng,Qe=og,ve=rg,Ye=ag,Rt=ig,W=sg,pe=lg,ke=dg,Ie=ql,ge=null,ot=Ue({},[...Bl,...ti,...ni,...oi,...$l]),Ce=null,pt=Ue({},[...Ul,...ri,...Hl,...jr]),rt=Object.seal(Do(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}})),un=null,Kt=null,Yt=Object.seal(Do(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),zt=!0,at=!0,Vt=!1,en=!0,ft=!1,et=!0,Ot=!1,pn=!1,yt=null,bn=null,it=!1,Tt=!1,ce=!1,Ze=!1,je=!0,tn=!1,ct="user-content-",N=!0,le=!1,Se={},Ge=null,Ft=Ue({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),xt=null,st=Ue({},["audio","video","img","source","image","track"]),vn=null,Te=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",Bt="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml",Lt=Ve,fn=!1,ro=null,Xa=Ue({},[dt,Bt,Ve],ei),Or=Ct(["mi","mo","mn","ms","mtext"]),x=Ue({},Or),T=Ct(["annotation-xml"]),R=Ue({},T),ae=Ue({},["title","style","font","a","script"]),Y=null,ye=["application/xhtml+xml","text/html"],Pe="text/html",de=null,Ne=null,Fr=o.createElement("form"),ao=function(v){return v instanceof RegExp||v instanceof Function},Mo=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ne&&Ne===v)return;(!v||typeof v!="object")&&(v={}),v=rn(v),Y=ye.indexOf(v.PARSER_MEDIA_TYPE)===-1?Pe:v.PARSER_MEDIA_TYPE,de=Y==="application/xhtml+xml"?ei:ir,ge=Jn(v,"ALLOWED_TAGS",ot,{transform:de}),Ce=Jn(v,"ALLOWED_ATTR",pt,{transform:de}),ro=Jn(v,"ALLOWED_NAMESPACES",Xa,{transform:ei}),vn=Jn(v,"ADD_URI_SAFE_ATTR",Te,{transform:de,base:Te}),xt=Jn(v,"ADD_DATA_URI_TAGS",st,{transform:de,base:st}),Ge=Jn(v,"FORBID_CONTENTS",Ft,{transform:de}),un=Jn(v,"FORBID_TAGS",rn({}),{transform:de}),Kt=Jn(v,"FORBID_ATTR",rn({}),{transform:de}),Se=Zt(v,"USE_PROFILES")?v.USE_PROFILES&&typeof v.USE_PROFILES=="object"?rn(v.USE_PROFILES):v.USE_PROFILES:!1,zt=v.ALLOW_ARIA_ATTR!==!1,at=v.ALLOW_DATA_ATTR!==!1,Vt=v.ALLOW_UNKNOWN_PROTOCOLS||!1,en=v.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ft=v.SAFE_FOR_TEMPLATES||!1,et=v.SAFE_FOR_XML!==!1,Ot=v.WHOLE_DOCUMENT||!1,Tt=v.RETURN_DOM||!1,ce=v.RETURN_DOM_FRAGMENT||!1,Ze=v.RETURN_TRUSTED_TYPE||!1,it=v.FORCE_BODY||!1,je=v.SANITIZE_DOM!==!1,tn=v.SANITIZE_NAMED_PROPS||!1,N=v.KEEP_CONTENT!==!1,le=v.IN_PLACE||!1,Ie=Qm(v.ALLOWED_URI_REGEXP)?v.ALLOWED_URI_REGEXP:ql,Lt=typeof v.NAMESPACE=="string"?v.NAMESPACE:Ve,x=ai(v,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ue({},Or)),R=ai(v,"HTML_INTEGRATION_POINTS",()=>Ue({},T));let E=ai(v,"CUSTOM_ELEMENT_HANDLING",()=>Do(null));if(rt=Do(null),Zt(E,"tagNameCheck")&&ao(E.tagNameCheck)&&(rt.tagNameCheck=E.tagNameCheck),Zt(E,"attributeNameCheck")&&ao(E.attributeNameCheck)&&(rt.attributeNameCheck=E.attributeNameCheck),Zt(E,"allowCustomizedBuiltInElements")&&typeof E.allowCustomizedBuiltInElements=="boolean"&&(rt.allowCustomizedBuiltInElements=E.allowCustomizedBuiltInElements),Et(rt),ft&&(at=!1),ce&&(Tt=!0),Se&&(ge=Ue({},$l),Ce=Do(null),Se.html===!0&&(Ue(ge,Bl),Ue(Ce,Ul)),Se.svg===!0&&(Ue(ge,ti),Ue(Ce,ri),Ue(Ce,jr)),Se.svgFilters===!0&&(Ue(ge,ni),Ue(Ce,ri),Ue(Ce,jr)),Se.mathMl===!0&&(Ue(ge,oi),Ue(Ce,Hl),Ue(Ce,jr))),Yt.tagCheck=null,Yt.attributeCheck=null,Zt(v,"ADD_TAGS")&&(typeof v.ADD_TAGS=="function"?Yt.tagCheck=v.ADD_TAGS:No(v.ADD_TAGS)&&(ge===ot&&(ge=rn(ge)),Ue(ge,v.ADD_TAGS,de))),Zt(v,"ADD_ATTR")&&(typeof v.ADD_ATTR=="function"?Yt.attributeCheck=v.ADD_ATTR:No(v.ADD_ATTR)&&(Ce===pt&&(Ce=rn(Ce)),Ue(Ce,v.ADD_ATTR,de))),Zt(v,"ADD_FORBID_CONTENTS")&&No(v.ADD_FORBID_CONTENTS)&&(Ge===Ft&&(Ge=rn(Ge)),Ue(Ge,v.ADD_FORBID_CONTENTS,de)),N&&(ge["#text"]=!0),Ot&&Ue(ge,["html","head","body"]),ge.table&&(Ue(ge,["tbody"]),delete un.tbody),v.TRUSTED_TYPES_POLICY){if(typeof v.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof v.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let V=K;K=v.TRUSTED_TYPES_POLICY;try{C=S("")}catch(te){throw K=V,te}}else v.TRUSTED_TYPES_POLICY===null?(K=void 0,C=""):(K===void 0&&(K=I()),K&&typeof C=="string"&&(C=S("")));Ct&&Ct(v),Ne=v},Wn=Ue({},[...ti,...ni,...eg]),kl=Ue({},[...oi,...tg]),ym=function(v,E,V){return E.namespaceURI===Ve?v==="svg":E.namespaceURI===dt?v==="svg"&&(V==="annotation-xml"||x[V]):!!Wn[v]},xm=function(v,E,V){return E.namespaceURI===Ve?v==="math":E.namespaceURI===Bt?v==="math"&&R[V]:!!kl[v]},km=function(v,E,V){return E.namespaceURI===Bt&&!R[V]||E.namespaceURI===dt&&!x[V]?!1:!kl[v]&&(ae[v]||!Wn[v])},wm=function(v){let E=b(v);(!E||!E.tagName)&&(E={namespaceURI:Lt,tagName:"template"});let V=ir(v.tagName),te=ir(E.tagName);return ro[v.namespaceURI]?v.namespaceURI===Bt?ym(V,E,te):v.namespaceURI===dt?xm(V,E,te):v.namespaceURI===Ve?km(V,E,te):!!(Y==="application/xhtml+xml"&&ro[v.namespaceURI]):!1},jn=function(v){or(t.removed,{element:v});try{b(v).removeChild(v)}catch{if(m(v),!b(v))throw Gn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},wl=function(v,E,V){try{g(v,E)}catch{try{v.removeAttribute(V)}catch{}}},Br=function(v){$r(v);let E=y(v);if(E){let te=[];so(E,xe=>{or(te,xe)}),so(te,xe=>{try{m(xe)}catch{}})}let V=k(v);if(V)for(let te=V.length-1;te>=0;--te){let xe=V[te],Re=xe&&xe.name;typeof Re=="string"&&wl(v,xe,Re)}},io=function(v,E,V){if(!V)try{V=E.getAttributeNode(v)}catch{V=null}or(t.removed,{attribute:V||null,from:E});try{V?g(E,V):E.removeAttribute(v)}catch{try{E.removeAttribute(v)}catch{}}if(v==="is")if(Tt||ce)try{jn(E)}catch{}else try{E.setAttribute(v,"")}catch{}},zm=function(v){let E=k(v);if(E)for(let V=E.length-1;V>=0;--V){let te=E[V],xe=te&&te.name;typeof xe!="string"||Ce[de(xe)]||wl(v,te,xe)}},$r=function(v){let E=[v];for(;E.length>0;){let V=E.pop();$(V)===on.element&&zm(V);let te=y(V);if(te)for(let xe=te.length-1;xe>=0;--xe)E.push(te[xe])}},zl=function(v,E){return et?v==="patchsrc"?!0:v==="for"&&E!=="label"&&E!=="output":!1},Sm=function(v){if(!et)return;let E=[v];for(;E.length>0;){let V=E.pop(),te=$(V);if(te===on.processingInstruction||te===on.comment&&$t(Wl,V.data)){try{m(V)}catch{}continue}if(te===on.element){let Re=V,Be=de(O(V));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&zl("for",Be)&&Re.removeAttribute("for")}catch{}}let xe=y(V);if(xe)for(let Re=xe.length-1;Re>=0;--Re)E.push(xe[Re])}},Sl=function(v){let E=null,V=null;if(it)v="<remove></remove>"+v;else{let Re=Dl(v,/^[\r\n\t ]+/);V=Re&&Re[0]}Y==="application/xhtml+xml"&&Lt===Ve&&(v='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+v+"</body></html>");let te=K?S(v):v;if(Lt===Ve)try{E=new d().parseFromString(te,Y)}catch{}if(!E||!E.documentElement){E=ee.createDocument(Lt,"template",null);try{E.documentElement.innerHTML=fn?C:te}catch{}}let xe=E.body||E.documentElement;return v&&V&&xe.insertBefore(o.createTextNode(V),xe.childNodes[0]||null),Lt===Ve?he.call(E,Ot?"html":"body")[0]:Ot?E.documentElement:xe},_l=function(v){let E=F?F(v):v.ownerDocument;return H.call(E||v,v,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ur=function(v){return v=rr(v,De," "),v=rr(v,Qe," "),v=rr(v,ve," "),v},Ka=function(v){var E;v.normalize();let V=F?F(v):v.ownerDocument,te=H.call(V||v,v,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),xe=te.nextNode();for(;xe;)xe.data=Ur(xe.data),xe=te.nextNode();let Re=(E=v.querySelectorAll)===null||E===void 0?void 0:E.call(v,"template");Re&&so(Re,Be=>{Io(Be.content)&&Ka(Be.content)})},Hr=function(v){let E=P?P(v):null;return typeof E!="string"||de(E)!=="form"?!1:typeof v.nodeName!="string"||typeof v.textContent!="string"||typeof v.removeChild!="function"||v.attributes!==k(v)||typeof v.removeAttribute!="function"||typeof v.removeAttributeNode!="function"||typeof v.getAttributeNode!="function"||typeof v.setAttribute!="function"||typeof v.namespaceURI!="string"||typeof v.insertBefore!="function"||typeof v.hasChildNodes!="function"||v.nodeType!==z(v)||v.childNodes!==y(v)},Io=function(v){if(!z||typeof v!="object"||v===null)return!1;try{return z(v)===on.documentFragment}catch{return!1}},nr=function(v){if(!z||typeof v!="object"||v===null)return!1;try{return typeof z(v)=="number"}catch{return!1}};function Pn(X,v,E){X.length!==0&&so(X,V=>{V.call(t,v,E,Ne)})}let _m=function(v,E){return!!(et&&v.hasChildNodes()&&!nr(v.firstElementChild)&&$t(Vl,v.textContent)&&$t(Vl,v.innerHTML)||et&&v.namespaceURI===Ve&&fg[E]&&(nr(v.firstElementChild)||typeof v.textContent=="string"&&$t(mg[E],v.textContent))||v.nodeType===on.processingInstruction||et&&v.nodeType===on.comment&&$t(Wl,v.data))},qr=function(v,E){if(v instanceof RegExp)return $t(v,E);if(v instanceof Function){for(var V=arguments.length,te=new Array(V>2?V-2:0),xe=2;xe<V;xe++)te[xe-2]=arguments[xe];return!!v(E,...te)}return!1},Cm=function(v,E,V){if(!un[E]&&El(E)&&qr(rt.tagNameCheck,E))return!1;if(N&&!Ge[E]){let te=b(v),xe=y(v);if(xe&&te){let Re=xe.length;for(let Be=Re-1;Be>=0;--Be){let mt=v===V?p(xe[Be],!0):xe[Be];te.insertBefore(mt,h(v))}}}return jn(v),!0},Cl=function(v,E,V,te){return v.length===0?E:E===V||E===te?rn(E):E},Ro=function(v,E){return v===E||b(v)!==null?!1:(le&&$r(v),!0)},Al=function(v,E){if(Pn(me.beforeSanitizeElements,v,null),Ro(v,E))return!0;if(Hr(v))return jn(v),!0;let V=de(O(v));if(ge=Cl(me.uponSanitizeElement,ge,ot,yt),Pn(me.uponSanitizeElement,v,{tagName:V,allowedTags:ge}),Ro(v,E))return!0;if(_m(v,V))return jn(v),!0;if(un[V]||!(Yt.tagCheck instanceof Function&&Yt.tagCheck(V))&&!ge[V]){let te=Cm(v,V,E);return te===!1&&(Pn(me.afterSanitizeElements,v,null),Ro(v,E))?!0:te}if($(v)===on.element&&!wm(v)||(V==="noscript"||V==="noembed"||V==="noframes")&&$t(ug,v.innerHTML))return jn(v),!0;if(ft&&v.nodeType===on.text){let te=Ur(v.textContent);v.textContent!==te&&(or(t.removed,{element:v.cloneNode()}),v.textContent=te)}return Pn(me.afterSanitizeElements,v,null),Ro(v,E)},Tl=function(v,E,V){if(Kt[E]||zl(E,v)||je&&(E==="id"||E==="name")&&(V in o||V in Fr))return!1;let te=Ce[E]||Yt.attributeCheck instanceof Function&&Yt.attributeCheck(E,v);return at&&$t(Ye,E)||zt&&$t(Rt,E)?!0:te?vn[E]||$t(Ie,rr(V,pe,""))||(E==="src"||E==="xlink:href"||E==="href")&&v!=="script"&&Nl(V,"data:")===0&&xt[v]||Vt&&!$t(W,rr(V,pe,""))?!0:!V:El(v)&&qr(rt.tagNameCheck,v)&&qr(rt.attributeNameCheck,E,v)||E==="is"&&rt.allowCustomizedBuiltInElements&&qr(rt.tagNameCheck,V)},Am=Ue({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),El=function(v){return!Am[ir(v)]&&$t(ke,v)},Tm=function(v,E,V,te){if(K&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!V)switch(f.getAttributeType(v,E)){case"TrustedHTML":return S(te);case"TrustedScriptURL":return A(te)}return te},Em=function(v,E,V,te){try{return V?v.setAttributeNS(V,E,te):v.setAttribute(E,te),Hr(v)?(jn(v),!1):!0}catch{return io(E,v),!1}},Pl=function(v,E){if(Pn(me.beforeSanitizeAttributes,v,null),Ro(v,E))return;let V=v.attributes;if(!V||Hr(v))return;Ce=Cl(me.uponSanitizeAttribute,Ce,pt,bn);let te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},xe=V.length,Re=de(v.nodeName);for(;xe--;){let Be=V[xe],mt=Be.name,mn=Be.namespaceURI,nn=Be.value,Lo=de(mt),Za=nn,Wt=mt==="value"?Za:Gm(Za),Ml=!1;if(te.attrName=Lo,te.attrValue=Wt,te.keepAttr=!0,te.forceKeepAttr=void 0,Pn(me.uponSanitizeAttribute,v,te),Wt=te.attrValue,tn&&(Lo==="id"||Lo==="name")&&Nl(Wt,ct)!==0&&(io(mt,v,Be),Wt=ct+Wt,Ml=!0),et&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Wt)){io(mt,v,Be);continue}if(Lo==="attributename"&&Dl(Wt,"href")){io(mt,v,Be);continue}if(!te.forceKeepAttr){if(!te.keepAttr){io(mt,v,Be);continue}if(!en&&$t(pg,Wt)){io(mt,v,Be);continue}if(ft&&(Wt=Ur(Wt)),!Tl(Re,Lo,Wt)){io(mt,v,Be);continue}Wt=Tm(Re,Lo,mn,Wt),Wt!==Za&&Em(v,mt,mn,Wt)&&Ml&&Ll(t.removed)}}Pn(me.afterSanitizeAttributes,v,null),Ro(v,E)},Vr=function(v){let E=null,V=_l(v);for(Pn(me.beforeSanitizeShadowDOM,v,null);E=V.nextNode();)if(Pn(me.uponSanitizeShadowNode,E,null),Al(E,v),Pl(E,v),Io(E.content)&&Vr(E.content),$(E)===on.element){let te=w(E);Io(te)&&(Ya(te),Vr(te))}Pn(me.afterSanitizeShadowDOM,v,null)},Ya=function(v){let E=[{node:v,shadow:null}];for(;E.length>0;){let V=E.pop();if(V.shadow){Vr(V.shadow);continue}let te=V.node,xe=$(te)===on.element,Re=y(te);if(Re)for(let Be=Re.length-1;Be>=0;--Be)E.push({node:Re[Be],shadow:null});if(xe){let Be=P?P(te):null;if(typeof Be=="string"&&de(Be)==="template"){let mt=te.content;Io(mt)&&E.push({node:mt,shadow:null})}}if(xe){let Be=w(te);Io(Be)&&E.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return t.sanitize=function(X){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,V=null,te=null,xe=null;if(fn=!X,fn&&(X="<!-->"),typeof X!="string"&&!nr(X)&&(X=Zm(X),typeof X!="string"))throw Gn("dirty is not a string, aborting");if(!t.isSupported)return X;pn?(ge=yt,Ce=bn):Mo(v),(me.uponSanitizeElement.length>0||me.uponSanitizeAttribute.length>0)&&(ge=rn(ge)),me.uponSanitizeAttribute.length>0&&(Ce=rn(Ce)),t.removed=[];let Re=le&&typeof X!="string"&&nr(X);if(Re){Sm(X);let mn=O(X);if(typeof mn=="string"){let nn=de(mn);if(!ge[nn]||un[nn])throw Br(X),Gn("root node is forbidden and cannot be sanitized in-place")}if(Hr(X))throw Br(X),Gn("root node is clobbered and cannot be sanitized in-place");try{Ya(X)}catch(nn){throw Br(X),nn}}else if(nr(X))E=Sl("<!---->"),V=E.ownerDocument.importNode(X,!0),V.nodeType===on.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?E=V:E.appendChild(V),Ya(E);else{if(!Tt&&!ft&&!Ot&&X.indexOf("<")===-1)return K&&Ze?S(X):X;if(E=Sl(X),!E)return Tt?null:Ze?C:""}E&&it&&jn(E.firstChild);let Be=Re?X:E;try{let mn=_l(Be);for(;te=mn.nextNode();)Al(te,Be),Pl(te,Be),Io(te.content)&&Vr(te.content)}catch(mn){throw Re&&(Br(X),so(t.removed,nn=>{nn.element&&$r(nn.element)})),mn}if(Re){let mn=!1;if(so(t.removed,nn=>{nn.element&&(nn.element===X&&(mn=!0),$r(nn.element))}),mn)throw Gn("a node selected for removal could not be safely returned; refusing to sanitize in place");return ft&&Ka(X),X}if(Tt){if(ft&&Ka(E),ce)for(xe=re.call(E.ownerDocument);E.firstChild;)xe.appendChild(E.firstChild);else xe=E;return(Ce.shadowroot||Ce.shadowrootmode)&&(xe=qe.call(r,xe,!0)),xe}let mt=Ot?E.outerHTML:E.innerHTML;return Ot&&ge["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&$t(cg,E.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+E.ownerDocument.doctype.name+`>
|
|
3
|
-
`+mt),ft&&(mt=
|
|
4
|
-
]`).replace("lheading",
|
|
1
|
+
"use strict";var __fxExtend=(()=>{var ni=Object.defineProperty;var Lm=Object.getOwnPropertyDescriptor;var Dm=Object.getOwnPropertyNames;var Nm=Object.prototype.hasOwnProperty;var Om=(e,t)=>{for(var o in t)ni(e,o,{get:t[o],enumerable:!0})},Fm=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Dm(t))!Nm.call(e,a)&&a!==o&&ni(e,a,{get:()=>t[a],enumerable:!(r=Lm(t,a))||r.enumerable});return e};var Bm=e=>Fm(ni({},"__esModule",{value:!0}),e);var gk={};Om(gk,{dispose:()=>wm});function $m(e,t){this.v=e,this.k=t}function Dl(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function Um(e){if(Array.isArray(e))return e}function Hm(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,a,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(f){d=!0,a=f}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw a}}return l}}function qm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vm(e,t){return Um(e)||Hm(e,t)||Wm(e,t)||qm()}function Wm(e,t){if(e){if(typeof e=="string")return Dl(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Dl(e,t):void 0}}function jr(e){var t,o;function r(i,s){try{var l=e[i](s),c=l.value,d=c instanceof $m;Promise.resolve(d?c.v:c).then(function(f){if(d){var u=i==="return"&&c.k?i:"next";if(!c.k||f.done)return r(u,f);f=e[u](f).value}a(!!l.done,f)},function(f){r("throw",f)})}catch(f){a(2,f)}}function a(i,s){i===2?t.reject(s):t.resolve({value:s,done:i}),(t=t.next)?r(t.key,t.arg):o=null}this._invoke=function(i,s){return new Promise(function(l,c){var d={key:i,arg:s,resolve:l,reject:c,next:null};o?o=o.next=d:(t=o=d,r(i,s))})},typeof e.return!="function"&&(this.return=void 0)}jr.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},jr.prototype.next=function(e){return this._invoke("next",e)},jr.prototype.throw=function(e){return this._invoke("throw",e)},jr.prototype.return=function(e){return this._invoke("return",e)};var Kl=Object.entries,Nl=Object.setPrototypeOf,jm=Object.isFrozen,Gm=Object.getPrototypeOf,Jm=Object.getOwnPropertyDescriptor,Ct=Object.freeze,Et=Object.seal,Do=Object.create,Yl=typeof Reflect<"u"&&Reflect,ci=Yl.apply,di=Yl.construct;Ct||(Ct=function(t){return t});Et||(Et=function(t){return t});ci||(ci=function(t,o){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return t.apply(o,a)});di||(di=function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return new t(...r)});var so=St(Array.prototype.forEach);Array.prototype.indexOf;var Xm=St(Array.prototype.lastIndexOf),Ol=St(Array.prototype.pop),or=St(Array.prototype.push);Array.prototype.slice;var Km=St(Array.prototype.splice),No=Array.isArray,ir=St(String.prototype.toLowerCase),oi=St(String.prototype.toString),Fl=St(String.prototype.match),rr=St(String.prototype.replace),Bl=St(String.prototype.indexOf),Ym=St(String.prototype.trim),Zm=St(Number.prototype.toString),Qm=St(Boolean.prototype.toString),$l=typeof BigInt>"u"?null:St(BigInt.prototype.toString),Ul=typeof Symbol>"u"?null:St(Symbol.prototype.toString),Zt=St(Object.prototype.hasOwnProperty),ar=St(Object.prototype.toString),$t=St(RegExp.prototype.test),Gn=eg(TypeError);function St(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return ci(e,t,r)}}function eg(e){return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return di(e,o)}}function Ue(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ir;if(Nl&&Nl(e,null),!No(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){let i=o(a);i!==a&&(jm(t)||(t[r]=i),a=i)}e[a]=!0}return e}function tg(e){for(let t=0;t<e.length;t++)Zt(e,t)||(e[t]=null);return e}function rn(e){let t=Do(null);for(let r of Kl(e)){var o=Vm(r,2);let a=o[0],i=o[1];Zt(e,a)&&(No(i)?t[a]=tg(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=rn(i):t[a]=i)}return t}function ng(e){switch(typeof e){case"string":return e;case"number":return Zm(e);case"boolean":return Qm(e);case"bigint":return $l?$l(e):"0";case"symbol":return Ul?Ul(e):"Symbol()";case"undefined":return ar(e);case"function":case"object":{if(e===null)return ar(e);let t=e,o=gn(t,"toString");if(typeof o=="function"){let r=o(t);return typeof r=="string"?r:ar(r)}return ar(e)}default:return ar(e)}}function gn(e,t){for(;e!==null;){let r=Jm(e,t);if(r){if(r.get)return St(r.get);if(typeof r.value=="function")return St(r.value)}e=Gm(e)}function o(){return null}return o}function og(e){try{return $t(e,""),!0}catch{return!1}}var Hl=Ct(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ri=Ct(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ai=Ct(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),rg=Ct(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ii=Ct(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ag=Ct(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ql=Ct(["#text"]),Vl=Ct(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),si=Ct(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wl=Ct(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Gr=Ct(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ig=Et(/{{[\w\W]*|^[\w\W]*}}/g),sg=Et(/<%[\w\W]*|^[\w\W]*%>/g),lg=Et(/\${[\w\W]*/g),cg=Et(/^data-[\-\w.\u00B7-\uFFFF]+$/),dg=Et(/^aria-[\-\w]+$/),jl=Et(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ug=Et(/^(?:\w+script|data):/i),pg=Et(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fg=Et(/^html$/i),mg=Et(/^[a-z][.\w]*(-[.\w]+)+$/i),Gl=Et(/<[/\w!]/g),Jl=Et(/<[/\w]/g),gg=Et(/<\/no(script|embed|frames)/i),hg=Et(/\/>/i),on={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Zl=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],bg=Ct(Ue({},Zl)),vg=(function(){let e={};return so(Zl,t=>{e[t]=Et(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Ct(e)})(),yg=function(){return typeof window>"u"?null:window},xg=function(t,o){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Xl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Jn=function(t,o,r,a){return Zt(t,o)&&No(t[o])?Ue(a.base?rn(a.base):{},t[o],a.transform):r},li=function(t,o,r){let a=Zt(t,o)?t[o]:void 0;return a&&typeof a=="object"?rn(a):r()};function Ql(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yg(),t=X=>Ql(X);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==on.document||!e.Element)return t.isSupported=!1,t;let o=e.document,r=o,a=r.currentScript;e.DocumentFragment;let i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,f=e.trustedTypes,u=l.prototype,p=gn(u,"cloneNode"),m=gn(u,"remove"),g=gn(u,"removeAttributeNode"),h=gn(u,"nextSibling"),y=gn(u,"childNodes"),v=gn(u,"parentNode"),x=gn(u,"shadowRoot"),w=gn(u,"attributes"),z=s&&s.prototype?gn(s.prototype,"nodeType"):null,I=s&&s.prototype?gn(s.prototype,"nodeName"):null,F=s&&s.prototype?gn(s.prototype,"ownerDocument"):null,$=function(b){return z?z(b):b.nodeType},N=function(b){return I?I(b):b.nodeName};if(typeof i=="function"){let X=o.createElement("template");X.content&&X.content.ownerDocument&&(o=X.content.ownerDocument)}let Y,C="",D,H=!1,E=0,Z=function(){if(E>0)throw Gn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},S=function(b){Z(),E++;try{return Y.createHTML(b)}finally{E--}},A=function(b){Z(),E++;try{return Y.createScriptURL(b)}finally{E--}},M=function(){return H||(D=xg(f,a),H=!0),D},G=o,ee=G.implementation,U=G.createNodeIterator,ae=G.createDocumentFragment,he=G.getElementsByTagName,qe=r.importNode,me=Xl();t.isSupported=typeof Kl=="function"&&typeof v=="function"&&ee&&ee.createHTMLDocument!==void 0;let De=ig,Qe=sg,ye=lg,Ye=cg,Rt=dg,W=ug,pe=pg,ke=mg,Me=jl,ge=null,ot=Ue({},[...Hl,...ri,...ai,...ii,...ql]),Ce=null,pt=Ue({},[...Vl,...si,...Wl,...Gr]),rt=Object.seal(Do(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}})),un=null,Kt=null,Yt=Object.seal(Do(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),zt=!0,at=!0,Vt=!1,en=!0,ft=!1,et=!0,Ot=!1,pn=!1,yt=null,bn=null,it=!1,Tt=!1,de=!1,Ze=!1,je=!0,tn=!1,ct="user-content-",O=!0,le=!1,Se={},Ge=null,Ft=Ue({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),xt=null,st=Ue({},["audio","video","img","source","image","track"]),vn=null,Ee=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",Bt="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml",Lt=Ve,fn=!1,ro=null,Za=Ue({},[dt,Bt,Ve],oi),Fr=Ct(["mi","mo","mn","ms","mtext"]),k=Ue({},Fr),P=Ct(["annotation-xml"]),L=Ue({},P),ne=Ue({},["title","style","font","a","script"]),K=null,be=["application/xhtml+xml","text/html"],Pe="text/html",ue=null,Ne=null,Br=o.createElement("form"),ao=function(b){return b instanceof RegExp||b instanceof Function},Io=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ne&&Ne===b)return;(!b||typeof b!="object")&&(b={}),b=rn(b),K=be.indexOf(b.PARSER_MEDIA_TYPE)===-1?Pe:b.PARSER_MEDIA_TYPE,ue=K==="application/xhtml+xml"?oi:ir,ge=Jn(b,"ALLOWED_TAGS",ot,{transform:ue}),Ce=Jn(b,"ALLOWED_ATTR",pt,{transform:ue}),ro=Jn(b,"ALLOWED_NAMESPACES",Za,{transform:oi}),vn=Jn(b,"ADD_URI_SAFE_ATTR",Ee,{transform:ue,base:Ee}),xt=Jn(b,"ADD_DATA_URI_TAGS",st,{transform:ue,base:st}),Ge=Jn(b,"FORBID_CONTENTS",Ft,{transform:ue}),un=Jn(b,"FORBID_TAGS",rn({}),{transform:ue}),Kt=Jn(b,"FORBID_ATTR",rn({}),{transform:ue}),Se=Zt(b,"USE_PROFILES")?b.USE_PROFILES&&typeof b.USE_PROFILES=="object"?rn(b.USE_PROFILES):b.USE_PROFILES:!1,zt=b.ALLOW_ARIA_ATTR!==!1,at=b.ALLOW_DATA_ATTR!==!1,Vt=b.ALLOW_UNKNOWN_PROTOCOLS||!1,en=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ft=b.SAFE_FOR_TEMPLATES||!1,et=b.SAFE_FOR_XML!==!1,Ot=b.WHOLE_DOCUMENT||!1,Tt=b.RETURN_DOM||!1,de=b.RETURN_DOM_FRAGMENT||!1,Ze=b.RETURN_TRUSTED_TYPE||!1,it=b.FORCE_BODY||!1,je=b.SANITIZE_DOM!==!1,tn=b.SANITIZE_NAMED_PROPS||!1,O=b.KEEP_CONTENT!==!1,le=b.IN_PLACE||!1,Me=og(b.ALLOWED_URI_REGEXP)?b.ALLOWED_URI_REGEXP:jl,Lt=typeof b.NAMESPACE=="string"?b.NAMESPACE:Ve,k=li(b,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ue({},Fr)),L=li(b,"HTML_INTEGRATION_POINTS",()=>Ue({},P));let T=li(b,"CUSTOM_ELEMENT_HANDLING",()=>Do(null));if(rt=Do(null),Zt(T,"tagNameCheck")&&ao(T.tagNameCheck)&&(rt.tagNameCheck=T.tagNameCheck),Zt(T,"attributeNameCheck")&&ao(T.attributeNameCheck)&&(rt.attributeNameCheck=T.attributeNameCheck),Zt(T,"allowCustomizedBuiltInElements")&&typeof T.allowCustomizedBuiltInElements=="boolean"&&(rt.allowCustomizedBuiltInElements=T.allowCustomizedBuiltInElements),Et(rt),ft&&(at=!1),de&&(Tt=!0),Se&&(ge=Ue({},ql),Ce=Do(null),Se.html===!0&&(Ue(ge,Hl),Ue(Ce,Vl)),Se.svg===!0&&(Ue(ge,ri),Ue(Ce,si),Ue(Ce,Gr)),Se.svgFilters===!0&&(Ue(ge,ai),Ue(Ce,si),Ue(Ce,Gr)),Se.mathMl===!0&&(Ue(ge,ii),Ue(Ce,Wl),Ue(Ce,Gr))),Yt.tagCheck=null,Yt.attributeCheck=null,Zt(b,"ADD_TAGS")&&(typeof b.ADD_TAGS=="function"?Yt.tagCheck=b.ADD_TAGS:No(b.ADD_TAGS)&&(ge===ot&&(ge=rn(ge)),Ue(ge,b.ADD_TAGS,ue))),Zt(b,"ADD_ATTR")&&(typeof b.ADD_ATTR=="function"?Yt.attributeCheck=b.ADD_ATTR:No(b.ADD_ATTR)&&(Ce===pt&&(Ce=rn(Ce)),Ue(Ce,b.ADD_ATTR,ue))),Zt(b,"ADD_FORBID_CONTENTS")&&No(b.ADD_FORBID_CONTENTS)&&(Ge===Ft&&(Ge=rn(Ge)),Ue(Ge,b.ADD_FORBID_CONTENTS,ue)),O&&(ge["#text"]=!0),Ot&&Ue(ge,["html","head","body"]),ge.table&&(Ue(ge,["tbody"]),delete un.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let V=Y;Y=b.TRUSTED_TYPES_POLICY;try{C=S("")}catch(te){throw Y=V,te}}else b.TRUSTED_TYPES_POLICY===null?(Y=void 0,C=""):(Y===void 0&&(Y=M()),Y&&typeof C=="string"&&(C=S("")));Ct&&Ct(b),Ne=b},Wn=Ue({},[...ri,...ai,...rg]),Sl=Ue({},[...ii,...ag]),zm=function(b,T,V){return T.namespaceURI===Ve?b==="svg":T.namespaceURI===dt?b==="svg"&&(V==="annotation-xml"||k[V]):!!Wn[b]},Sm=function(b,T,V){return T.namespaceURI===Ve?b==="math":T.namespaceURI===Bt?b==="math"&&L[V]:!!Sl[b]},_m=function(b,T,V){return T.namespaceURI===Bt&&!L[V]||T.namespaceURI===dt&&!k[V]?!1:!Sl[b]&&(ne[b]||!Wn[b])},Cm=function(b){let T=v(b);(!T||!T.tagName)&&(T={namespaceURI:Lt,tagName:"template"});let V=ir(b.tagName),te=ir(T.tagName);return ro[b.namespaceURI]?b.namespaceURI===Bt?zm(V,T,te):b.namespaceURI===dt?Sm(V,T,te):b.namespaceURI===Ve?_m(V,T,te):!!(K==="application/xhtml+xml"&&ro[b.namespaceURI]):!1},jn=function(b){or(t.removed,{element:b});try{v(b).removeChild(b)}catch{if(m(b),!v(b))throw Gn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},_l=function(b,T,V){try{g(b,T)}catch{try{b.removeAttribute(V)}catch{}}},$r=function(b){Ur(b);let T=y(b);if(T){let te=[];so(T,xe=>{or(te,xe)}),so(te,xe=>{try{m(xe)}catch{}})}let V=w(b);if(V)for(let te=V.length-1;te>=0;--te){let xe=V[te],Re=xe&&xe.name;typeof Re=="string"&&_l(b,xe,Re)}},io=function(b,T,V){if(!V)try{V=T.getAttributeNode(b)}catch{V=null}or(t.removed,{attribute:V||null,from:T});try{V?g(T,V):T.removeAttribute(b)}catch{try{T.removeAttribute(b)}catch{}}if(b==="is")if(Tt||de)try{jn(T)}catch{}else try{T.setAttribute(b,"")}catch{}},Am=function(b){let T=w(b);if(T)for(let V=T.length-1;V>=0;--V){let te=T[V],xe=te&&te.name;typeof xe!="string"||Ce[ue(xe)]||_l(b,te,xe)}},Ur=function(b){let T=[b];for(;T.length>0;){let V=T.pop();$(V)===on.element&&Am(V);let te=y(V);if(te)for(let xe=te.length-1;xe>=0;--xe)T.push(te[xe])}},Cl=function(b,T){return et?b==="patchsrc"?!0:b==="for"&&T!=="label"&&T!=="output":!1},Tm=function(b){if(!et)return;let T=[b];for(;T.length>0;){let V=T.pop(),te=$(V);if(te===on.processingInstruction||te===on.comment&&$t(Jl,V.data)){try{m(V)}catch{}continue}if(te===on.element){let Re=V,Be=ue(N(V));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&Cl("for",Be)&&Re.removeAttribute("for")}catch{}}let xe=y(V);if(xe)for(let Re=xe.length-1;Re>=0;--Re)T.push(xe[Re])}},Al=function(b){let T=null,V=null;if(it)b="<remove></remove>"+b;else{let Re=Fl(b,/^[\r\n\t ]+/);V=Re&&Re[0]}K==="application/xhtml+xml"&&Lt===Ve&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");let te=Y?S(b):b;if(Lt===Ve)try{T=new d().parseFromString(te,K)}catch{}if(!T||!T.documentElement){T=ee.createDocument(Lt,"template",null);try{T.documentElement.innerHTML=fn?C:te}catch{}}let xe=T.body||T.documentElement;return b&&V&&xe.insertBefore(o.createTextNode(V),xe.childNodes[0]||null),Lt===Ve?he.call(T,Ot?"html":"body")[0]:Ot?T.documentElement:xe},Tl=function(b){let T=F?F(b):b.ownerDocument;return U.call(T||b,b,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Hr=function(b){return b=rr(b,De," "),b=rr(b,Qe," "),b=rr(b,ye," "),b},Qa=function(b){var T;b.normalize();let V=F?F(b):b.ownerDocument,te=U.call(V||b,b,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),xe=te.nextNode();for(;xe;)xe.data=Hr(xe.data),xe=te.nextNode();let Re=(T=b.querySelectorAll)===null||T===void 0?void 0:T.call(b,"template");Re&&so(Re,Be=>{Mo(Be.content)&&Qa(Be.content)})},qr=function(b){let T=I?I(b):null;return typeof T!="string"||ue(T)!=="form"?!1:typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||b.attributes!==w(b)||typeof b.removeAttribute!="function"||typeof b.removeAttributeNode!="function"||typeof b.getAttributeNode!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function"||b.nodeType!==z(b)||b.childNodes!==y(b)},Mo=function(b){if(!z||typeof b!="object"||b===null)return!1;try{return z(b)===on.documentFragment}catch{return!1}},nr=function(b){if(!z||typeof b!="object"||b===null)return!1;try{return typeof z(b)=="number"}catch{return!1}};function Pn(X,b,T){X.length!==0&&so(X,V=>{V.call(t,b,T,Ne)})}let Em=function(b,T){return!!(et&&b.hasChildNodes()&&!nr(b.firstElementChild)&&$t(Gl,b.textContent)&&$t(Gl,b.innerHTML)||et&&b.namespaceURI===Ve&&bg[T]&&(nr(b.firstElementChild)||typeof b.textContent=="string"&&$t(vg[T],b.textContent))||b.nodeType===on.processingInstruction||et&&b.nodeType===on.comment&&$t(Jl,b.data))},Vr=function(b,T){if(b instanceof RegExp)return $t(b,T);if(b instanceof Function){for(var V=arguments.length,te=new Array(V>2?V-2:0),xe=2;xe<V;xe++)te[xe-2]=arguments[xe];return!!b(T,...te)}return!1},Pm=function(b,T,V){if(!un[T]&&Ml(T)&&Vr(rt.tagNameCheck,T))return!1;if(O&&!Ge[T]){let te=v(b),xe=y(b);if(xe&&te){let Re=xe.length;for(let Be=Re-1;Be>=0;--Be){let mt=b===V?p(xe[Be],!0):xe[Be];te.insertBefore(mt,h(b))}}}return jn(b),!0},El=function(b,T,V,te){return b.length===0?T:T===V||T===te?rn(T):T},Ro=function(b,T){return b===T||v(b)!==null?!1:(le&&Ur(b),!0)},Pl=function(b,T){if(Pn(me.beforeSanitizeElements,b,null),Ro(b,T))return!0;if(qr(b))return jn(b),!0;let V=ue(N(b));if(ge=El(me.uponSanitizeElement,ge,ot,yt),Pn(me.uponSanitizeElement,b,{tagName:V,allowedTags:ge}),Ro(b,T))return!0;if(Em(b,V))return jn(b),!0;if(un[V]||!(Yt.tagCheck instanceof Function&&Yt.tagCheck(V))&&!ge[V]){let te=Pm(b,V,T);return te===!1&&(Pn(me.afterSanitizeElements,b,null),Ro(b,T))?!0:te}if($(b)===on.element&&!Cm(b)||(V==="noscript"||V==="noembed"||V==="noframes")&&$t(gg,b.innerHTML))return jn(b),!0;if(ft&&b.nodeType===on.text){let te=Hr(b.textContent);b.textContent!==te&&(or(t.removed,{element:b.cloneNode()}),b.textContent=te)}return Pn(me.afterSanitizeElements,b,null),Ro(b,T)},Il=function(b,T,V){if(Kt[T]||Cl(T,b)||je&&(T==="id"||T==="name")&&(V in o||V in Br))return!1;let te=Ce[T]||Yt.attributeCheck instanceof Function&&Yt.attributeCheck(T,b);return at&&$t(Ye,T)||zt&&$t(Rt,T)?!0:te?vn[T]||$t(Me,rr(V,pe,""))||(T==="src"||T==="xlink:href"||T==="href")&&b!=="script"&&Bl(V,"data:")===0&&xt[b]||Vt&&!$t(W,rr(V,pe,""))?!0:!V:Ml(b)&&Vr(rt.tagNameCheck,b)&&Vr(rt.attributeNameCheck,T,b)||T==="is"&&rt.allowCustomizedBuiltInElements&&Vr(rt.tagNameCheck,V)},Im=Ue({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ml=function(b){return!Im[ir(b)]&&$t(ke,b)},Mm=function(b,T,V,te){if(Y&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!V)switch(f.getAttributeType(b,T)){case"TrustedHTML":return S(te);case"TrustedScriptURL":return A(te)}return te},Rm=function(b,T,V,te){try{return V?b.setAttributeNS(V,T,te):b.setAttribute(T,te),qr(b)?(jn(b),!1):!0}catch{return io(T,b),!1}},Rl=function(b,T){if(Pn(me.beforeSanitizeAttributes,b,null),Ro(b,T))return;let V=b.attributes;if(!V||qr(b))return;Ce=El(me.uponSanitizeAttribute,Ce,pt,bn);let te={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},xe=V.length,Re=ue(b.nodeName);for(;xe--;){let Be=V[xe],mt=Be.name,mn=Be.namespaceURI,nn=Be.value,Lo=ue(mt),ti=nn,Wt=mt==="value"?ti:Ym(ti),Ll=!1;if(te.attrName=Lo,te.attrValue=Wt,te.keepAttr=!0,te.forceKeepAttr=void 0,Pn(me.uponSanitizeAttribute,b,te),Wt=te.attrValue,tn&&(Lo==="id"||Lo==="name")&&Bl(Wt,ct)!==0&&(io(mt,b,Be),Wt=ct+Wt,Ll=!0),et&&$t(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Wt)){io(mt,b,Be);continue}if(Lo==="attributename"&&Fl(Wt,"href")){io(mt,b,Be);continue}if(!te.forceKeepAttr){if(!te.keepAttr){io(mt,b,Be);continue}if(!en&&$t(hg,Wt)){io(mt,b,Be);continue}if(ft&&(Wt=Hr(Wt)),!Il(Re,Lo,Wt)){io(mt,b,Be);continue}Wt=Mm(Re,Lo,mn,Wt),Wt!==ti&&Rm(b,mt,mn,Wt)&&Ll&&Ol(t.removed)}}Pn(me.afterSanitizeAttributes,b,null),Ro(b,T)},Wr=function(b){let T=null,V=Tl(b);for(Pn(me.beforeSanitizeShadowDOM,b,null);T=V.nextNode();)if(Pn(me.uponSanitizeShadowNode,T,null),Pl(T,b),Rl(T,b),Mo(T.content)&&Wr(T.content),$(T)===on.element){let te=x(T);Mo(te)&&(ei(te),Wr(te))}Pn(me.afterSanitizeShadowDOM,b,null)},ei=function(b){let T=[{node:b,shadow:null}];for(;T.length>0;){let V=T.pop();if(V.shadow){Wr(V.shadow);continue}let te=V.node,xe=$(te)===on.element,Re=y(te);if(Re)for(let Be=Re.length-1;Be>=0;--Be)T.push({node:Re[Be],shadow:null});if(xe){let Be=I?I(te):null;if(typeof Be=="string"&&ue(Be)==="template"){let mt=te.content;Mo(mt)&&T.push({node:mt,shadow:null})}}if(xe){let Be=x(te);Mo(Be)&&T.push({node:null,shadow:Be},{node:Be,shadow:null})}}};return t.sanitize=function(X){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,V=null,te=null,xe=null;if(fn=!X,fn&&(X="<!-->"),typeof X!="string"&&!nr(X)&&(X=ng(X),typeof X!="string"))throw Gn("dirty is not a string, aborting");if(!t.isSupported)return X;pn?(ge=yt,Ce=bn):Io(b),(me.uponSanitizeElement.length>0||me.uponSanitizeAttribute.length>0)&&(ge=rn(ge)),me.uponSanitizeAttribute.length>0&&(Ce=rn(Ce)),t.removed=[];let Re=le&&typeof X!="string"&&nr(X);if(Re){Tm(X);let mn=N(X);if(typeof mn=="string"){let nn=ue(mn);if(!ge[nn]||un[nn])throw $r(X),Gn("root node is forbidden and cannot be sanitized in-place")}if(qr(X))throw $r(X),Gn("root node is clobbered and cannot be sanitized in-place");try{ei(X)}catch(nn){throw $r(X),nn}}else if(nr(X))T=Al("<!---->"),V=T.ownerDocument.importNode(X,!0),V.nodeType===on.element&&V.nodeName==="BODY"||V.nodeName==="HTML"?T=V:T.appendChild(V),ei(T);else{if(!Tt&&!ft&&!Ot&&X.indexOf("<")===-1)return Y&&Ze?S(X):X;if(T=Al(X),!T)return Tt?null:Ze?C:""}T&&it&&jn(T.firstChild);let Be=Re?X:T;try{let mn=Tl(Be);for(;te=mn.nextNode();)Pl(te,Be),Rl(te,Be),Mo(te.content)&&Wr(te.content)}catch(mn){throw Re&&($r(X),so(t.removed,nn=>{nn.element&&Ur(nn.element)})),mn}if(Re){let mn=!1;if(so(t.removed,nn=>{nn.element&&(nn.element===X&&(mn=!0),Ur(nn.element))}),mn)throw Gn("a node selected for removal could not be safely returned; refusing to sanitize in place");return ft&&Qa(X),X}if(Tt){if(ft&&Qa(T),de)for(xe=ae.call(T.ownerDocument);T.firstChild;)xe.appendChild(T.firstChild);else xe=T;return(Ce.shadowroot||Ce.shadowrootmode)&&(xe=qe.call(r,xe,!0)),xe}let mt=Ot?T.outerHTML:T.innerHTML;return Ot&&ge["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&$t(fg,T.ownerDocument.doctype.name)&&(mt="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
|
|
3
|
+
`+mt),ft&&(mt=Hr(mt)),Y&&Ze?S(mt):mt},t.setConfig=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Io(X),pn=!0,yt=ge,bn=Ce},t.clearConfig=function(){Ne=null,pn=!1,yt=null,bn=null,Y=D,C=""},t.isValidAttribute=function(X,b,T){Ne||Io({});let V=ue(X),te=ue(b);return Il(V,te,T)},t.addHook=function(X,b){typeof b=="function"&&Zt(me,X)&&or(me[X],b)},t.removeHook=function(X,b){if(Zt(me,X)){if(b!==void 0){let T=Xm(me[X],b);return T===-1?void 0:Km(me[X],T,1)[0]}return Ol(me[X])}},t.removeHooks=function(X){Zt(me,X)&&(me[X]=[])},t.removeAllHooks=function(){me=Xl()},t}var ui=Ql();function gi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var uo=gi();function dc(e){uo=e}var lo={exec:()=>null};function Oo(e){let t=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),a=t[r];return a||(a=e(r),t[r]=a),a}}function Ae(e,t=""){let o=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Dt.caret,"$1"),o=o.replace(a,s),r},getRegex:()=>new RegExp(o,t)};return r}var kg=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Dt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Oo(e=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:</?(?:${dr})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}>`))},wg=/^(?:[ \t]*(?:\n|$))+/,zg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Sg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_g=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,uc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,pc=Ae(uc).replace(/bull/g,hi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cg=Ae(uc).replace(/bull/g,hi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ag=/^[^\n]+/,vi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tg=Ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Eg=Ae(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,hi).getRegex(),dr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Pg=Ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yi).replace("tag",dr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),fc=e=>Ae(bi).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex(),Ig=fc(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Mg=fc(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Rg=Ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mg).getRegex(),xi={blockquote:Rg,code:zg,def:Tg,fences:Sg,heading:_g,hr:cr,html:Pg,lheading:pc,list:Eg,newline:wg,paragraph:Ig,table:lo,text:Ag},ec=Ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex(),Lg={...xi,lheading:Cg,table:ec,paragraph:Ae(bi).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ec).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex()},Dg={...xi,html:Ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ae(bi).replace("hr",cr).replace("heading",` *#{1,6} *[^
|
|
4
|
+
]`).replace("lheading",pc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ng=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Og=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Fg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Dn=/[\p{P}\p{S}]/u,Fo=/[\s\p{P}\p{S}]/u,ur=/[^\s\p{P}\p{S}]/u,Bg=Ae(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Fo).getRegex(),$g=/[\p{Pi}\p{Ps}"']/u,gc=/(?!~)[\p{P}\p{S}]/u,Ug=/(?!~)[\s\p{P}\p{S}]/u,Hg=/(?:[^\s\p{P}\p{S}]|~)/u,qg=Ae(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",kg?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),hc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Vg=Ae(hc,"u").replace(/punct/g,Dn).getRegex(),Wg=Ae(hc,"u").replace(/punct/g,gc).getRegex(),jg=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Gg=Ae(jg,"u").replace(/openQuote/g,$g).replace(/punct/g,Dn).getRegex(),bc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Jg=Ae(bc,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,Dn).getRegex(),Xg=Ae(bc,"gu").replace(/notPunctSpace/g,Hg).replace(/punctSpace/g,Ug).replace(/punct/g,gc).getRegex(),Kg="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Yg=Ae(Kg,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,Dn).getRegex(),Zg=Ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,Dn).getRegex(),Qg="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",eh=Ae(Qg,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,Dn).getRegex(),th=Ae(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Dn).getRegex(),nh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",oh=Ae(nh,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,Dn).getRegex(),rh=Ae(/\\(punct)/,"gu").replace(/punct/g,Dn).getRegex(),ah=Ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ih=Ae(yi).replace("(?:-->|$)","-->").getRegex(),sh=Ae("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ih).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vc=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Xr=Ae(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",vc).getRegex(),lh=Ae(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Xr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ch=Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",Xr).replace("ref",vi).getRegex(),dh=Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",vi).getRegex(),tc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,uh=Ae(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",vc).getRegex(),ph=Ae("reflink|nolink(?!\\()","g").replace("reflink",Ae(/^!?\[(label)\]\[(ref)\]/).replace("label",uh).replace("ref",tc).getRegex()).replace("nolink",Ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",tc).getRegex()).getRegex(),nc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,fh=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,mh=Ae(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,fh).getRegex(),ki={_backpedal:lo,anyPunctuation:rh,autolink:ah,blockSkip:qg,br:mc,code:Og,del:lo,delLDelim:lo,delRDelim:lo,emStrongLDelim:Vg,emStrongRDelimAst:Jg,emStrongRDelimUnd:Zg,escape:Ng,link:lh,nolink:dh,punctuation:Bg,reflink:ch,reflinkSearch:ph,tag:sh,text:Fg,url:lo},gh={...ki,emStrongLDelim:Gg,emStrongRDelimAst:Yg,emStrongRDelimUnd:eh,link:Ae(/^!?\[(label)\]\((.*?)\)/).replace("label",Xr).getRegex(),reflink:Ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xr).getRegex()},pi={...ki,emStrongRDelimAst:Xg,emStrongLDelim:Wg,delLDelim:th,delRDelim:oh,url:Ae(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",mh).replace("protocol",nc).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ae(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",nc).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},hh={...pi,br:Ae(mc).replace("{2,}","*").getRegex(),text:Ae(pi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:xi,gfm:Lg,pedantic:Dg},sr={normal:ki,gfm:pi,breaks:hh,pedantic:gh},bh={"&":"&","<":"<",">":">",'"':""","'":"'"},oc=e=>bh[e];function an(e,t){if(t){if(Dt.escapeTest.test(e))return e.replace(Dt.escapeReplace,oc)}else if(Dt.escapeTestNoEncode.test(e))return e.replace(Dt.escapeReplaceNoEncode,oc);return e}function vh(e){return e.replace(Dt.numericCharacterReference,(t,o,r)=>{let a=o===void 0?Number.parseInt(r,16):Number.parseInt(o,10);return a===0||a>1114111||a>=55296&&a<=57343?"\uFFFD":String.fromCodePoint(a)})}function rc(e){try{e=encodeURI(e).replace(Dt.percentDecode,"%")}catch{return null}return e}function ac(e,t){let o=e.replace(Dt.findPipe,(i,s,l)=>{let c=!1,d=s;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),r=o.split(Dt.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Dt.slashPipe,"|");return r}function Xn(e,t,o){let r=e.length;if(r===0)return"";let a=0;for(;a<r;){let i=e.charAt(r-a-1);if(i===t&&!o)a++;else if(i!==t&&o)a++;else break}return e.slice(0,r-a)}function ic(e){let t=e.split(`
|
|
5
5
|
`),o=t.length-1;for(;o>=0&&Dt.blankLine.test(t[o]);)o--;return t.length-o<=2?e:t.slice(0,o+1).join(`
|
|
6
|
-
`)}function
|
|
6
|
+
`)}function Kr(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function yh(e,t){if(e.indexOf(t[1])===-1)return-1;let o=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return o>0?-2:-1}function sc(e,t=0){let o=t,r="";for(let a of e)if(a===" "){let i=4-o%4;r+=" ".repeat(i),o+=i}else r+=a,o++;return r}function lc(e,t,o,r,a){let i=t.href,s=t.title||null,l=e[1].replace(a.other.outputLinkReplace,"$1"),c=e[0].charAt(0)==="!";r.state.inLink=!0;let d=r.state.linkEmitted,f=r.state.inRawBlock;r.state.linkEmitted=!1;let u=r.inlineTokens(l),p=r.state.linkEmitted;if(r.state.linkEmitted=d,r.state.inLink=!1,!c){if(p){r.state.inRawBlock=f;return}r.state.linkEmitted=!0}return{type:c?"image":"link",raw:o,href:i,title:s,text:l,tokens:u}}function xh(e,t,o){let r=e.match(o.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
|
|
7
7
|
`).map(i=>{let s=i.match(o.other.beginningSpace);if(s===null)return i;let[l]=s;return i.slice(Math.min(l.length,a.length))}).join(`
|
|
8
|
-
`)}function
|
|
8
|
+
`)}function cc(e,t,o,r){if(!t.includes("<"))return!1;for(let a=0;a<t.length;a++){if(t[a]==="\\"){a++;continue}if(t[a]==="`"){let l=r.inline.code.exec(t.slice(a));if(l){a+=l[0].length-1;continue}}if(t[a]!=="<")continue;let i=e.slice(o+a),s=r.inline.tag.exec(i)||r.inline.autolink.exec(i);if(s){if(s[0].length>t.length-a)return!0;a+=s[0].length-1}}return!1}var Yr=class{options;rules;lexer;constructor(e){this.options=e||uo}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let o=this.options.pedantic?t[0]:ic(t[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let o=t[0],r=xh(o,t[3]||"",this.rules);return{type:"code",raw:o,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let o=t[2].trim();if(this.rules.other.endingHash.test(o)){let r=Xn(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceTabChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Xn(t[0],`
|
|
9
9
|
`),depth:t[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Xn(t[0],`
|
|
10
10
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let o=Xn(t[0],`
|
|
11
11
|
`).split(`
|
|
@@ -15,25 +15,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15
15
|
${d}`:d,a=a?`${a}
|
|
16
16
|
${f}`:f;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,i,!0),this.lexer.state.top=u,o.length===0)break;let p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let m=p,g=o.join(`
|
|
17
17
|
`),h=m.raw+`
|
|
18
|
-
`+g.replace(this.rules.other.blockquoteSetextReplace2,""),y=this.blockquote(h);i[i.length-1]=y;let
|
|
19
|
-
`).length:0,
|
|
20
|
-
${
|
|
18
|
+
`+g.replace(this.rules.other.blockquoteSetextReplace2,""),y=this.blockquote(h);i[i.length-1]=y;let v=h.substring(y.raw.length).replace(/^\n/,""),x=v?v.split(`
|
|
19
|
+
`).length:0,w=x?o.slice(0,-x):o;w.length>0&&(r=`${r}
|
|
20
|
+
${w.join(`
|
|
21
21
|
`)}`),a=a.substring(0,a.length-m.text.length)+y.text;break}else if(p?.type==="list"){let m=p,g=m.raw+`
|
|
22
22
|
`+o.join(`
|
|
23
23
|
`),h=this.list(g);i[i.length-1]=h,r=r.substring(0,r.length-p.raw.length)+h.raw,a=a.substring(0,a.length-m.raw.length)+h.raw,o=g.substring(i.at(-1).raw.length).split(`
|
|
24
24
|
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),r=o.length>1,a={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let i=this.rules.other.listItemRegex(o),s=!1;for(;e;){let c=!1,d="",f="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let u=t[2].split(`
|
|
25
|
-
`,1)[0],p=t[1].length,m=this.options.pedantic?
|
|
25
|
+
`,1)[0],p=t[1].length,m=this.options.pedantic?sc(u,p):u.replace(this.rules.other.leadingSpaceTab,v=>sc(v,p)),g=e.split(`
|
|
26
26
|
`,1)[0],h=!m.trim(),y=0;if(this.options.pedantic?(y=2,f=m.trimStart()):h?y=p+1:(y=m.search(this.rules.other.nonSpaceChar),y=y>4?1:y,f=m.slice(y),y+=p),h&&this.rules.other.blankLine.test(g)&&(d+=g+`
|
|
27
|
-
`,e=e.substring(g.length+1),c=!0),!c){let
|
|
28
|
-
`,1)[0],
|
|
29
|
-
`+
|
|
27
|
+
`,e=e.substring(g.length+1),c=!0),!c){let v=this.rules.other.nextBulletRegex(y),x=this.rules.other.hrRegex(y),w=this.rules.other.fencesBeginRegex(y),z=this.rules.other.headingBeginRegex(y),I=this.rules.other.htmlBeginRegex(y),F=this.rules.other.blockquoteBeginRegex(y);for(;e;){let $=e.split(`
|
|
28
|
+
`,1)[0],N;if(g=$,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),N=g):N=g.replace(this.rules.other.leadingSpaceTab,Y=>Y.replace(this.rules.other.tabCharGlobal," ")),w.test(g)||z.test(g)||I.test(g)||F.test(g)||v.test(g)||x.test(g))break;if(N.search(this.rules.other.nonSpaceChar)>=y||!g.trim())f+=`
|
|
29
|
+
`+N.slice(y);else{if(h||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(m)||z.test(m)||x.test(m))break;f+=`
|
|
30
30
|
`+g}h=!g.trim(),d+=$+`
|
|
31
|
-
`,e=e.substring($.length+1),m=
|
|
32
|
-
`),href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let o=
|
|
31
|
+
`,e=e.substring($.length+1),m=N.slice(y)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),a.raw+=d}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!a.loose){let d=c.tokens.filter(u=>u.type==="space"),f=d.length>0&&d.some(u=>this.rules.other.anyLine.test(u.raw));a.loose=f}for(let c of a.items){let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let f=this.rules.other.listTaskCheckbox.exec(c.raw);if(f){let u={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};c.checked=u.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}else c.task&&(c.task=!1)}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t){let o=ic(t[0]);return{type:"html",block:!0,raw:o,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:o}}}def(e){let t=this.rules.block.def.exec(e);if(t){let o=Kr(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:o,raw:Xn(t[0],`
|
|
32
|
+
`),href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let o=ac(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
33
33
|
`):[],i={type:"table",raw:Xn(t[0],`
|
|
34
|
-
`),header:[],align:[],rows:[]};if(o.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<o.length;s++)i.header.push({text:o[s],tokens:this.lexer.inline(o[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(
|
|
34
|
+
`),header:[],align:[],rows:[]};if(o.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<o.length;s++)i.header.push({text:o[s],tokens:this.lexer.inline(o[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(ac(s,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let o=t[1].trim();return{type:"heading",raw:Xn(t[0],`
|
|
35
35
|
`),depth:t[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let o=t[1].charAt(t[1].length-1)===`
|
|
36
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&
|
|
36
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&cc(e,t[1],o,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Xn(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=yh(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),lc(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let r=o[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&cc(e,o[1],r,this.rules))return;let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[Kr(a)];if(!i){let s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return lc(o,i,o[0],this.lexer,this.rules)}}emStrong(e,t,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=0,d=r[0][0],f=o===d,u=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(r=u.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){l+=s;continue}else if(r[5]||r[6]){if(a%3&&!((a+s)%3)){c+=s;continue}if(f)break}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let p=[...r[0]][0].length,m=e.slice(0,a+r.index+p+s);if(Math.min(a,s)%2){let h=m.slice(1,-1);return{type:"em",raw:m,text:h,tokens:this.lexer.inlineTokens(h)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let o=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),a=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&a&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:t[0],text:o}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,o=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+a);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(s=[...i].length,s!==a))continue;if(r[3]||r[4]){l+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l);let d=[...r[0]][0].length,f=e.slice(0,a+r.index+d+s),u=f.slice(a,-a);return{type:"del",raw:f,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let o,r;return t[2]==="@"?(o=t[1],r="mailto:"+o):(o=t[1],r=o),{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let o,r;if(t[2]==="@")o=t[0],r="mailto:"+o;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);o=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let o=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:o?t[0]:vh(t[0]),escaped:o}}}},yn=class fi{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||uo,this.options.tokenizer=this.options.tokenizer||new Yr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:Dt,block:Jr.normal,inline:sr.normal};this.options.pedantic?(o.block=Jr.pedantic,o.inline=sr.pedantic):this.options.gfm&&(o.block=Jr.gfm,this.options.breaks?o.inline=sr.breaks:o.inline=sr.gfm),this.tokenizer.rules=o}static get rules(){return{block:Jr,inline:sr}}static lex(t,o){return new fi(o).lex(t)}static lexInline(t,o){return new fi(o).inlineTokens(t)}lex(t){t=t.replace(Dt.carriageReturn,`
|
|
37
37
|
`),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Dt.tabCharGlobal," ").replace(Dt.spaceLine,""));let a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,o))?(t=t.substring(i.raw.length),o.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=o.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
|
|
38
38
|
`:o.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let l=o.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
39
39
|
`)?"":`
|
|
@@ -47,7 +47,7 @@ ${k.join(`
|
|
|
47
47
|
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i),r=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let l=o.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
|
|
48
48
|
`)?"":`
|
|
49
49
|
`)+i.raw,l.text+=`
|
|
50
|
-
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}linkInText(t){if(!t.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=r[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,
|
|
50
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}linkInText(t){if(!t.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=r[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,Kr(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(t,o=[]){this.tokenizer.lexer=this;let r=t;if(this.tokens.links&&t.includes("[")){let l=this.tokenizer.rules.inline.reflinkSearch,c=d=>{let f=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,Kr(d.slice(f+1,-1))))return d;if(f>1&&d.charAt(0)!=="!"){let u=d.slice(1,f-1);if(this.linkInText(u))return"["+u.replace(l,c)+"]["+"a".repeat(d.length-f-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};r=r.replace(l,c)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,l=>"+".repeat(l.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(l,c,d)=>{let f=d?d.length:0;return l.slice(0,f)+"["+"a".repeat(l.length-f-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,i="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(i=""),a=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},t,o))?(t=t.substring(l.raw.length),o.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let d=o.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(l=this.tokenizer.emStrong(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.del(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),o.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),o.push(l);continue}let c=t;if(this.options.extensions?.startInline){let d=1/0,f=t.slice(1),u;this.options.extensions.startInline.forEach(p=>{u=p.call({lexer:this},f),typeof u=="number"&&u>=0&&(d=Math.min(d,u))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(i=l.raw.slice(-1)),a=!0;let d=o.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return o}infiniteLoopError(t){let o="Infinite loop on byte: "+t;if(this.options.silent)console.error(o);else throw new Error(o)}},Zr=class{options;parser;constructor(e){this.options=e||uo}space(e){return""}code({text:e,lang:t,escaped:o}){let r=(t||"").match(Dt.notSpaceStart)?.[0],a=e?e.replace(Dt.endingNewline,"")+`
|
|
51
51
|
`:"";return r?'<pre><code class="language-'+an(r)+'">'+(o?a:an(a,!0))+`</code></pre>
|
|
52
52
|
`:"<pre><code>"+(o?a:an(a,!0))+`</code></pre>
|
|
53
53
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
@@ -65,8 +65,8 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
65
65
|
`}tablerow({text:e}){return`<tr>
|
|
66
66
|
${e}</tr>
|
|
67
67
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+t+`</${o}>
|
|
68
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${an(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:o,tokens:r,autolink:a}){let i=a?an(o,!0):this.parser.parseInline(r),s=
|
|
69
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+an(o.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(o);throw o}}},co=new xi;function Xe(e,t){return co.parse(e,t)}Xe.options=Xe.setOptions=function(e){return co.setOptions(e),Xe.defaults=co.defaults,sc(Xe.defaults),Xe};Xe.getDefaults=pi;Xe.defaults=uo;function bh(...e){return co.use(...e),Xe.defaults=co.defaults,sc(Xe.defaults),Xe}Xe.use=bh;Xe.walkTokens=function(e,t){return co.walkTokens(e,t)};Xe.parseInline=co.parseInline;Xe.Parser=xn;Xe.parser=xn.parse;Xe.Renderer=Yr;Xe.TextRenderer=yi;Xe.Lexer=yn;Xe.lexer=yn.lex;Xe.Tokenizer=Kr;Xe.Hooks=lr;Xe.parse=Xe;var fk=Xe.options,mk=Xe.setOptions,gk=Xe.walkTokens,hk=Xe.parseInline;var bk=xn.parse,vk=yn.lex;var ra,_e,yc,vh,Kn,hc,xc,kc,ki,Qr,pr,wc,_i,wi,zi,zc,ta={},na=[],yh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fr=Array.isArray;function Nn(e,t){for(var o in t)e[o]=t[o];return e}function Ci(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fo(e,t,o){var r,a,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ra.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ea(e,s,r,a,null)}function ea(e,t,o,r,a){var i={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++yc,__i:-1,__u:0};return a==null&&_e.vnode!=null&&_e.vnode(i),i}function L(e){return e.children}function kn(e,t){this.props=e,this.context=t}function po(e,t){if(t==null)return e.__?po(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?po(e):null}function xh(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],a=[],i=Nn({},t);i.__v=t.__v+1,_e.vnode&&_e.vnode(i),Ai(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,o??po(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Tc(r,i,a),t.__e=t.__=null,i.__e!=o&&Sc(i)}}function Sc(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Sc(e)}function Si(e){(!e.__d&&(e.__d=!0)&&Kn.push(e)&&!oa.__r++||hc!=_e.debounceRendering)&&((hc=_e.debounceRendering)||xc)(oa)}function oa(){try{for(var e,t=1;Kn.length;)Kn.length>t&&Kn.sort(kc),e=Kn.shift(),t=Kn.length,xh(e)}finally{Kn.length=oa.__r=0}}function _c(e,t,o,r,a,i,s,l,c,d,f){var u,p,m,g,h,y,b=r&&r.__k||na,w=t.length;for(c=kh(o,t,b,c,w),u=0;u<w;u++)(m=o.__k[u])!=null&&(p=m.__i!=-1&&b[m.__i]||ta,m.__i=u,y=Ai(e,m,p,a,i,s,l,c,d,f),g=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Ti(p.ref,null,m),f.push(m.ref,m.__c||g,m)),h==null&&g!=null&&(h=g),4&m.__u?(c=Cc(m,c,e),p.__e&&(p.__e=null)):typeof m.type=="function"&&y!==void 0?c=y:g&&(c=g.nextSibling),m.__u&=-7);return o.__e=h,c}function kh(e,t,o,r,a){var i,s,l,c,d,f=o.length,u=f,p=0;for(e.__k=new Array(a),i=0;i<a;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=ea(null,s,null,null,null):fr(s)?s=e.__k[i]=ea(L,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=ea(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,c=i+p,s.__=e,s.__b=e.__b+1,l=null,(d=s.__i=wh(s,o,c,u))!=-1&&(u--,(l=o[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(a>f?p--:a<f&&p++),typeof s.type!="function"&&(s.__u|=4)):d!=c&&(d==c-1?p--:d==c+1?p++:(d>c?p--:p++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<f;i++)(l=o[i])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=po(l)),Pc(l,l));return r}function Cc(e,t,o){var r,a;if(typeof e.type=="function"){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,t=Cc(r[a],t,o));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=po(e)),t=o.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function mr(e,t){return t=t||[],e==null||typeof e=="boolean"||(fr(e)?e.some(function(o){mr(o,t)}):t.push(e)),t}function wh(e,t,o,r){var a,i,s,l=e.key,c=e.type,d=t[o],f=d!=null&&(2&d.__u)==0;if(d===null&&l==null||f&&l==d.key&&c==d.type)return o;if(r>(f?1:0)){for(a=o-1,i=o+1;a>=0||i<t.length;)if((d=t[s=a>=0?a--:i++])!=null&&(2&d.__u)==0&&l==d.key&&c==d.type)return s}return-1}function bc(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||yh.test(t)?o:o+"px"}function Zr(e,t,o,r,a){var i,s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||bc(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||bc(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(wc,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=o,o?r?o[pr]=r[pr]:(o[pr]=_i,e.addEventListener(t,i?zi:wi,i)):e.removeEventListener(t,i?zi:wi,i);else{if(a=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function vc(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t[Qr]==null)t[Qr]=_i++;else if(t[Qr]<o[pr])return;return o(_e.event?_e.event(t):t)}}}function Ai(e,t,o,r,a,i,s,l,c,d){var f,u,p,m,g,h,y,b,w,k,z,P,F,$,O,K,C=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(c=!!(32&o.__u),i=[l=t.__e=o.__e]),(f=_e.__b)&&f(t);e:if(typeof C=="function"){u=s.length;try{if(w=t.props,k=C.prototype&&C.prototype.render,z=(f=C.contextType)&&r[f.__c],P=f?z?z.props.value:f.__:r,o.__c?b=(p=t.__c=o.__c).__=p.__E:(k?t.__c=p=new C(w,P):(t.__c=p=new kn(w,P),p.constructor=C,p.render=Sh),z&&z.sub(p),p.state||(p.state={}),p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),k&&p.__s==null&&(p.__s=p.state),k&&C.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Nn({},p.__s)),Nn(p.__s,C.getDerivedStateFromProps(w,p.__s))),g=p.props,h=p.state,p.__v=t,m)k&&C.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),k&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(k&&C.getDerivedStateFromProps==null&&w!==g&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(w,P),t.__v==o.__v||!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(w,p.__s,P)===!1){t.__v!=o.__v&&(p.props=w,p.state=p.__s,p.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(D){D&&(D.__=t)}),na.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p),l=po(o);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(w,p.__s,P),k&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(g,h,y)})}if(p.context=P,p.props=w,p.__P=e,p.__e=!1,F=_e.__r,$=0,k)p.state=p.__s,p.__d=!1,F&&F(t),f=p.render(p.props,p.state,p.context),na.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,F&&F(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++$<25);p.state=p.__s,p.getChildContext!=null&&(r=Nn(Nn({},r),p.getChildContext())),k&&!m&&p.getSnapshotBeforeUpdate!=null&&(y=p.getSnapshotBeforeUpdate(g,h)),O=f!=null&&f.type===L&&f.key==null?Ec(f.props.children):f,l=_c(e,fr(O)?O:[O],t,o,r,a,i,s,l,c,d),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),b&&(p.__E=p.__=null)}catch(D){if(s.length=u,t.__v=null,c||i!=null){if(D.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i!=null&&(i[i.indexOf(l)]=null),t.__e=l}else if(i!=null)for(K=i.length;K--;)Ci(i[K])}else t.__e=o.__e;t.__k==null&&(t.__k=o.__k||[]),D.then||Ac(t),_e.__e(D,t,o)}}else i==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):l=t.__e=zh(o.__e,t,o,r,a,i,s,c,d);return(f=_e.diffed)&&f(t),128&t.__u?void 0:l}function Ac(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Ac))}function Tc(e,t,o){for(var r=0;r<o.length;r++)Ti(o[r],o[++r],o[++r]);_e.__c&&_e.__c(t,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(i){i.call(a)})}catch(i){_e.__e(i,a.__v)}})}function Ec(e){return typeof e!="object"||e==null||e.__b>0?e:fr(e)?e.map(Ec):e.constructor!==void 0?null:Nn({},e)}function zh(e,t,o,r,a,i,s,l,c){var d,f,u,p,m,g,h,y=o.props||ta,b=t.props,w=t.type;if(w=="svg"?a="http://www.w3.org/2000/svg":w=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!w&&(w?m.localName==w:m.nodeType==3)){e=m,i[d]=null;break}}if(e==null){if(w==null)return document.createTextNode(b);e=document.createElementNS(a,w,b.is&&b),l&&(_e.__m&&_e.__m(t,i),l=!1),i=null}if(w==null)y===b||l&&e.data==b||(e.data=b);else{if(i=w=="textarea"&&b.defaultValue!=null?null:i&&ra.call(e.childNodes),!l&&i!=null)for(y={},d=0;d<e.attributes.length;d++)y[(m=e.attributes[d]).name]=m.value;for(d in y)m=y[d],d=="dangerouslySetInnerHTML"?u=m:d=="children"||d in b||d=="value"&&"defaultValue"in b||d=="checked"&&"defaultChecked"in b||Zr(e,d,null,m,a);for(d in b)m=b[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?f=m:d=="value"?g=m:d=="checked"?h=m:l&&typeof m!="function"||y[d]===m||Zr(e,d,m,y[d],a);if(f)l||u&&(f.__html==u.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),_c(t.type=="template"?e.content:e,fr(p)?p:[p],t,o,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:o.__k&&po(o,0),l,c),i!=null)for(d=i.length;d--;)Ci(i[d]);l&&w!="textarea"||(d="value",w=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||w=="progress"&&!g||w=="option"&&g!=y[d])&&Zr(e,d,g,y[d],a),d="checked",h!=null&&h!=e[d]&&Zr(e,d,h,y[d],a))}return e}function Ti(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(a){_e.__e(a,o)}}function Pc(e,t,o){var r,a;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ti(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){_e.__e(i,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Pc(r[a],t,o||typeof e.type!="function");o||Ci(e.__e),e.__c=e.__=e.__e=void 0}function Sh(e,t,o){return this.constructor(e,o)}function Le(e,t,o){var r,a,i,s;t==document&&(t=document.documentElement),_e.__&&_e.__(e,t),a=(r=typeof o=="function")?null:o&&o.__k||t.__k,i=[],s=[],Ai(t,e=(!r&&o||t).__k=fo(L,null,[e]),a||ta,ta,t.namespaceURI,!r&&o?[o]:a?null:t.firstChild?ra.call(t.childNodes):null,i,!r&&o?o:a?a.__e:t.firstChild,r,s),Tc(i,e,s),e.props.children=null}function aa(e){function t(o){var r,a;return this.getChildContext||(r=new Set,(a={})[t.__c]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Si(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),o.children}return t.__c="__cC"+zc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}ra=na.slice,_e={__e:function(e,t,o,r){for(var a,i,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(e)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,r||{}),s=a.__d),s)return a.__E=a}catch(l){e=l}throw e}},yc=0,vh=function(e){return e!=null&&e.constructor===void 0},kn.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Nn({},this.state),typeof e=="function"&&(e=e(Nn({},o),this.props)),e&&Nn(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),Si(this))},kn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Si(this))},kn.prototype.render=L,Kn=[],xc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kc=function(e,t){return e.__v.__b-t.__v.__b},oa.__r=0,ki=Math.random().toString(8),Qr="__d"+ki,pr="__a"+ki,wc=/(PointerCapture)$|Capture$/i,_i=0,wi=vc(!1),zi=vc(!0),zc=0;var Yn,tt,Ei,Mc,gr=0,Bc=[],kt=_e,Ic=kt.__b,Rc=kt.__r,Lc=kt.diffed,Dc=kt.__c,Nc=kt.unmount,Oc=kt.__;function Bo(e,t){kt.__h&&kt.__h(tt,e,gr||t),gr=0;var o=tt.__H||(tt.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function _(e){return gr=1,$c(Uc,e)}function $c(e,t,o){var r=Bo(Yn++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):Uc(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=tt,!tt.__f)){var a=function(l,c,d){if(!r.__c.__H)return!0;var f=!1,u=r.__c.props!==l;if(r.__c.__H.__.some(function(m){if(m.__N){f=!0;var g=m.__[0];m.__=m.__N,m.__N=void 0,g!==m.__[0]&&(u=!0)}}),i){var p=i.call(this,l,c,d);return f?p||u:p}return!f||u};tt.__f=!0;var i=tt.shouldComponentUpdate,s=tt.componentWillUpdate;tt.componentWillUpdate=function(l,c,d){if(this.__e){var f=i;i=void 0,a(l,c,d),i=f}s&&s.call(this,l,c,d)},tt.shouldComponentUpdate=a}return r.__N||r.__}function J(e,t){var o=Bo(Yn++,3);!kt.__s&&Ii(o.__H,t)&&(o.__=e,o.u=t,tt.__H.__h.push(o))}function Zn(e,t){var o=Bo(Yn++,4);!kt.__s&&Ii(o.__H,t)&&(o.__=e,o.u=t,tt.__h.push(o))}function ne(e){return gr=5,sn(function(){return{current:e}},[])}function sn(e,t){var o=Bo(Yn++,7);return Ii(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function Nt(e,t){return gr=8,sn(function(){return e},t)}function Mi(e){var t=tt.context[e.__c],o=Bo(Yn++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(tt)),t.props.value):e.__}function On(){var e=Bo(Yn++,11);if(!e.__){for(var t=tt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function _h(){for(var e;e=Bc.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ia),t.__h.some(Pi),t.__h=[]}catch(o){t.__h=[],kt.__e(o,e.__v)}}}kt.__b=function(e){tt=null,Ic&&Ic(e)},kt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Oc&&Oc(e,t)},kt.__r=function(e){Rc&&Rc(e),Yn=0;var t=(tt=e.__c).__H;t&&(Ei===tt?(t.__h=[],tt.__h=[],t.__.some(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.some(ia),t.__h.some(Pi),t.__h=[],Yn=0)),Ei=tt},kt.diffed=function(e){Lc&&Lc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Bc.push(t)!==1&&Mc===kt.requestAnimationFrame||((Mc=kt.requestAnimationFrame)||Ch)(_h)),t.__H.__.some(function(o){o.u&&(o.__H=o.u,o.u=void 0)})),Ei=tt=null},kt.__c=function(e,t){t.some(function(o){try{o.__h.some(ia),o.__h=o.__h.filter(function(r){return!r.__||Pi(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],kt.__e(r,o.__v)}}),Dc&&Dc(e,t)},kt.unmount=function(e){Nc&&Nc(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.some(function(r){try{ia(r)}catch(a){t=a}}),o.__H=void 0,t&&kt.__e(t,o.__v))};var Fc=typeof requestAnimationFrame=="function";function Ch(e){var t,o=function(){clearTimeout(r),Fc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,35);Fc&&(t=requestAnimationFrame(o))}function ia(e){var t=tt,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),tt=t}function Pi(e){var t=tt;e.__c=e.__(),tt=t}function Ii(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function Uc(e,t){return typeof t=="function"?t(e):t}var Ri=null;function Hc(e){Ri=e}function ln(e){return Ri&&e&&typeof window<"u"&&e===window.tangu?{...e,...Ri}:e}var wn=e=>!!(e?.unitPage&&e.unitPublicEntry||e?.mobile&&e.extendMobile),cn=e=>!!e&&(!e.unitPage||!!e.unitPublicEntry),Q=()=>ln(typeof window<"u"?window.tangu:void 0)||{};function sa(e){let t=typeof e?.status=="number"?e.status:0;if(t>=200&&t<300)return{ok:!0,status:t,data:e?.json??null};let o=e?.json&&typeof e.json=="object"?e.json:null,r=typeof o?.error=="string"?o.error:typeof o?.code=="string"?o.code:null,a=typeof o?.detail=="string"?o.detail:typeof o?.message=="string"?o.message:null;return{ok:!1,status:t,code:r,detail:a,transport:typeof e?.error=="string"?e.error:null}}var Li=e=>({ok:!1,status:0,code:null,detail:null,transport:e});async function G(e,t={}){let o=Q().cloudFetch;if(!o)return Li("no_bridge");try{return sa(await o({path:e,...t}))}catch(r){return Li(String(r?.message||r))}}async function hr(e,t){if(!e)return t();try{return sa(await e())}catch(o){return Li(String(o?.message||o))}}var Fn=e=>e.status===401&&(e.transport==="not_signed_in"||e.code===null&&e.detail===null&&e.transport===null);function gt(e){return String(e?.message??e??"").replace(/^Error invoking remote method '[^']*':\s*/,"").replace(/^(?:[A-Za-z]*Error):\s*/,"").trim()}async function zn(e,t,o){let r=Q().cloudInvoke;if(!r)return!1;let a=e==="membership"&&t?o?[e,t,o]:[e,t]:[e];try{return!!(await r("auth:openPayCenter",...a))?.ok}catch{return!1}}async function mo(e){let t=Q().openAccountCenter;if(!t)return!1;try{return!!(await t(e)).ok}catch{return!1}}var Ah=0;function n(e,t,o,r,a,i){t||(t={});var s,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ah,__i:-1,__u:0,__source:a,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return _e.vnode&&_e.vnode(d),d}var Th={user:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4 20c.8-3.5 4-5.5 8-5.5s7.2 2 8 5.5",backpack:"M9 5V3h6v2 M6 8a6 6 0 0 1 12 0v12H6V8Z M9 13h6v5H9z M3 11h3v7H3z M18 11h3v7h-3 M10 8h4",gauge:"M4 16a8 8 0 1 1 16 0 M12 16l4-5 M12 16h.01",bug:"M8.5 9.5a3.5 3.5 0 0 1 7 0V15a3.5 3.5 0 0 1-7 0V9.5Z M12 10v8 M4 13h4.5 M15.5 13H20 M5 8.5l3.5 2 M19 8.5l-3.5 2 M5 18.5l3.5-2 M19 18.5l-3.5-2 M10 6L9 4 M14 6l1-2",pointer:"M5 4l13 6.5-5.5 1.5L10.5 18 5 4Z",shield:"M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6l7-3Z",chart:"M4 20V10 M10 20V4 M16 20v-7 M21 20H3",message:"M5 4h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-7l-5 4v-4H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",card:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z M3 10h18 M7 15h4",coins:"M9 11a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z M15.5 9.2A5 5 0 1 1 9.8 16",clock:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7v5l3 2",gift:"M4 11h16v9H4z M3 7h18v4H3z M12 7v13 M12 7c-1.5-3-5-3-5-1s3 1 5 1c2 0 5 1 5-1s-3.5-2-5 1",key:"M8 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M11 11h10 M17 11v3 M20 11v2",laptop:"M5 5h14v10H5z M3 19h18",alert:"M12 4l9 16H3l9-16Z M12 10v4 M12 17h.01",external:"M14 4h6v6 M20 4l-9 9 M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",copy:"M9 9h11v11H9z M5 15H4V4h11v1",check:"M5 12.5l4.5 4.5L19 7.5",checkin:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4 M9 15l2 2 4-4",tasks:"M4 6l2 2 3-3 M4 16l2 2 3-3 M12 7h9 M12 17h9",gamepad:"M6 8h12a4 4 0 0 1 4 4v3a3 3 0 0 1-5.4 1.8L15 15H9l-1.6 1.8A3 3 0 0 1 2 15v-3a4 4 0 0 1 4-4Z M7 11v3 M5.5 12.5h3 M15.5 12h.01 M18 13.5h.01",megaphone:"M4 10v4h3l9 4V6l-9 4H4Z M19 10a3 3 0 0 1 0 4 M8 14.5V19h3v-3",play:"M7 5l12 7-12 7V5Z",chevron:"M9 6l6 6-6 6",back:"M15 6l-6 6 6 6",arrowLeft:"M19 12H5M11 6l-6 6 6 6",pencil:"M4 20h4L19 9l-4-4L4 16v4Z M13.5 6.5l4 4",plus:"M12 5v14 M5 12h14",refresh:"M20 11a8 8 0 0 0-14.3-4.9L4 8 M4 4v4h4 M4 13a8 8 0 0 0 14.3 4.9L20 16 M20 20v-4h-4",phone:"M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M11 18h2",mail:"M4 6h16v12H4z M4 7l8 6 8-6",image:"M4 5h16v14H4z M4 16l5-5 4 4 3-3 4 4 M15.5 9.5h.01",x:"M6 6l12 12 M18 6L6 18",logout:"M15 4h4v16h-4 M10 8l-4 4 4 4 M6 12h10",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M3 12h18 M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z",lock:"M6 11h12v9H6z M8.5 11V8a3.5 3.5 0 0 1 7 0v3",palette:"M12 3a9 9 0 0 0 0 18c1.2 0 2-.8 2-1.9 0-.5-.2-.9-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8H17a4 4 0 0 0 4-4c0-4.3-4-7.7-9-7.7Z M7.5 12.5h.01 M9 8.5h.01 M14 7.5h.01",calendar:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4",link:"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1",flame:"M12 21a6 6 0 0 0 6-6c0-2.5-1.4-4.4-3-6-.3 1.5-1 2.5-2 3 .3-3-1-6-3.5-8 .2 3-1 4.8-2.2 6.3C6.4 11.5 6 13.2 6 15a6 6 0 0 0 6 6Z",trophy:"M8 4h8v6a4 4 0 0 1-8 0V4Z M8 6H5v1a3 3 0 0 0 3 3 M16 6h3v1a3 3 0 0 1-3 3 M12 14v4 M8.5 20h7",sprout:"M12 20v-8 M12 12c0-3-2-5-6-5 0 3.5 2 5 6 5Z M12 14c0-3 2-5 6-5 0 3.5-2 5-6 5Z",eye:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",download:"M12 4v11 M7.5 11l4.5 4.5 4.5-4.5 M5 20h14",upload:"M12 16V5 M7.5 9.5 12 5l4.5 4.5 M5 20h14",up:"M12 19V5 M6 11l6-6 6 6",down:"M12 5v14 M6 13l6 6 6-6",sparkles:"M12 4l1.8 4.7 4.7 1.8-4.7 1.8L12 17l-1.8-4.7-4.7-1.8 4.7-1.8L12 4Z M18.5 15.5v4 M16.5 17.5h4",bot:"M6 9h12v10H6z M12 9V5 M12 4.5h.01 M9.5 13.5h.01 M14.5 13.5h.01 M3.5 13v3 M20.5 13v3",box:"M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3Z M4 7.5l8 4.5 8-4.5 M12 12v9",grid:"M4 4h7v7H4z M13 4h7v7h-7z M4 13h7v7H4z M13 13h7v7h-7z",note:"M6 3h9l4 4v14H6z M15 3v4h4 M9 12h6 M9 16h4",puzzle:"M9 3H4v6a3 3 0 1 0 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z",home:"M4 11l8-7 8 7 M6 9.5V20h4v-5h4v5h4V9.5",info:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 11v5 M12 8h.01",ticket:"M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3v2Z M14 6v12",at:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.6 7.2",heart:"M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7 7-7Z",star:"M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9L12 3Z",rocket:"M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1Z M12 15l-3-3a22 22 0 0 1 2-4A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2Z M9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0 M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5",store:"M4 4h16l1 5H3l1-5Z M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0 M5 11.5V20h14v-8.5 M10 20v-5h4v5"};function B({name:e,size:t=14,class:o}){return n("svg",{class:o,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:Th[e]})})}function jt({size:e=12}){return n("svg",{class:"spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:"M21 12a9 9 0 1 1-6.2-8.56"})})}var Eh={"events.title":"\u6D3B\u52A8","events.back":"\u8FD4\u56DE\u5E94\u7528","events.count":"{n} \u573A\u8FDB\u884C\u4E2D","events.group.active":"\u8FDB\u884C\u4E2D","events.group.notice":"\u516C\u544A","events.group.upcoming":"\u9884\u544A","events.ended":"\u5DF2\u7ED3\u675F\u7684\u6D3B\u52A8","events.endedEmpty":"\u8FD8\u6CA1\u6709\u7ED3\u675F\u7684\u6D3B\u52A8","events.list":"\u5168\u90E8\u6D3B\u52A8","events.kind.checkin":"\u7B7E\u5230","events.kind.tasks":"\u4EFB\u52A1","events.kind.game":"\u5C0F\u6E38\u620F","events.kind.notice":"\u516C\u544A","events.left.days":"\u5269 {n} \u5929","events.left.hours":"\u5269 {n} \u5C0F\u65F6","events.left.long":"\u5269\u4F59 {d} \u5929 {h} \u5C0F\u65F6","events.left.longHours":"\u5269\u4F59 {h} \u5C0F\u65F6","events.time.start":"{date} \u5F00\u59CB","events.time.claim":"\u6D3B\u52A8\u5DF2\u7ED3\u675F\uFF0C{date} \u524D\u9886\u53D6","events.time.claimShort":"{date} \u524D\u9886\u53D6","events.time.ended":"\u5DF2\u4E8E {date} \u7ED3\u675F","events.time.published":"{date} \u53D1\u5E03","events.rewards":"\u6D3B\u52A8\u5956\u52B1","events.checkin.signed":"\u5DF2\u7B7E {n}/{total}","events.checkin.today":"\u4ECA\u5929","events.checkin.day":"\u7B2C {n} \u5929","events.checkin.do":"\u4ECA\u65E5\u7B7E\u5230","events.checkin.done":"\u4ECA\u65E5\u5DF2\u7B7E","events.checkin.finished":"\u5DF2\u5168\u90E8\u7B7E\u5B8C","events.tasks.progress":"\u4EFB\u52A1\u8FDB\u5EA6","events.tasks.claim":"\u9886\u53D6","events.tasks.claimAll":"\u5168\u90E8\u9886\u53D6 ({n})","events.tasks.go":"\u53BB\u5B8C\u6210","events.tasks.closed":"\u6D3B\u52A8\u5DF2\u7ED3\u675F","events.game.board":"\u6392\u884C\u699C","events.game.me":"\u6211","events.game.anon":"\u533F\u540D\u73A9\u5BB6","events.game.enter":"\u8FDB\u5165\u6E38\u620F","events.game.install":"\u53BB\u5546\u5E97\u5B89\u88C5","events.game.empty":"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C","events.notice.more":"\u67E5\u770B\u8BE6\u60C5","events.toast.checkin":"\u5DF2\u7B7E\u5230\uFF0C{reward}","events.toast.claimed":"\u5DF2\u9886\u53D6 {reward}","events.toast.partial":"\u9886\u5230 {n} \u9879\uFF0C{m} \u9879\u6CA1\u9886\u5230\uFF0C\u7A0D\u540E\u518D\u8BD5","events.toast.backpack":"\u67E5\u770B\u80CC\u5305","events.err.failed":"\u6CA1\u9886\u5230\uFF0C\u7F51\u7EDC\u6062\u590D\u540E\u518D\u8BD5\u4E00\u6B21","events.err.notLive":"\u8FD9\u573A\u6D3B\u52A8\u5DF2\u7ECF\u7ED3\u675F","events.err.completed":"\u5DF2\u7ECF\u5168\u90E8\u7B7E\u5B8C","events.err.grantFailed":"\u5956\u52B1\u6CA1\u53D1\u51FA\u53BB\uFF0C\u5DF2\u767B\u8BB0\u8865\u53D1\uFF0C\u4E0D\u7528\u91CD\u590D\u9886\u53D6","events.login.title":"\u767B\u5F55\u540E\u53C2\u4E0E\u6D3B\u52A8","events.login.do":"\u767B\u5F55 Forsion","events.empty":"\u6682\u65F6\u6CA1\u6709\u8FDB\u884C\u4E2D\u7684\u6D3B\u52A8","events.error":"\u6D3B\u52A8\u6CA1\u6709\u52A0\u8F7D\u51FA\u6765","events.retry":"\u91CD\u8BD5","events.dot":"\u6709\u5956\u52B1\u53EF\u9886\u6216\u65B0\u6D3B\u52A8","penzor.rules.default":"\u4E91\u7AEF\u9ED8\u8BA4","penzor.rules.off":"\u4E0D\u540C\u6B65","penzor.rules.device":"\u8BBE\u5907","penzor.rules.run":"\u7ACB\u5373\u540C\u6B65","penzor.rules.twoWay":"\u53CC\u5411","penzor.rules.defaultForWeb":"\u9ED8\u8BA4\u76EE\u5F55\u4F9B\u7F51\u9875\u7AEF\u4F7F\u7528","penzor.rules.tab.rules":"\u540C\u6B65\u89C4\u5219","penzor.rules.tab.active":"\u6B63\u5728\u4F20\u8F93","penzor.rules.tab.history":"\u5386\u53F2\u8BB0\u5F55","penzor.rules.enable":"\u5F00\u542F\u5185\u5BB9\u540C\u6B65","penzor.rules.add":"\u6DFB\u52A0\u89C4\u5219","penzor.rules.source":"\u672C\u673A\u6765\u6E90","penzor.rules.destination":"\u4E91\u7AEF\u76EE\u6807","penzor.rules.direction":"\u65B9\u5411","penzor.rules.remove":"\u5220\u9664\u89C4\u5219","penzor.rules.inherit":"\u7A7A\u8DEF\u5F84\u4EE3\u8868\u6574\u4E2A Forsion\u3002\u5B50\u9879\u7EE7\u627F\u4E0A\u7EA7\u89C4\u5219\uFF0C\u6700\u5177\u4F53\u7684\u8DEF\u5F84\u4F18\u5148\uFF1B\u6CA1\u6709\u5339\u914D\u89C4\u5219\u7684\u5185\u5BB9\u4E0D\u540C\u6B65\u3002","penzor.rules.namespace":"\u9ED8\u8BA4\uFF1A\u4E91\u7AEF /Forsion/\uFF1B\u8BBE\u5907\u76EE\u5F55\uFF1A\u4E91\u7AEF /Forsion-\u8BBE\u5907ID/\u3002","penzor.rules.human":"human \u72EC\u7ACB\u9009\u62E9\u8303\u56F4\uFF1B\u9ED8\u8BA4\u65E5\u5386\u4F7F\u7528 human/CALENDAR.db\u3002\u6539\u5230\u8BBE\u5907\u76EE\u5F55\u540E\uFF0C\u7F51\u9875\u9ED8\u8BA4\u65E5\u5386\u4E0D\u8DDF\u968F\u5207\u6362\u3002","penzor.rules.preview":"\u9884\u89C8\u53D8\u66F4","penzor.rules.previewTitle":"\u786E\u8BA4\u672C\u6B21\u540C\u6B65\u8303\u56F4","penzor.rules.previewCounts":"\u4E0A\u4F20 {up} \u9879\uFF0C\u4E0B\u8F7D {down} \u9879\uFF0C{conflicts} \u9879\u5DF2\u6709\u4E0D\u540C\u5185\u5BB9\u9700\u5408\u5E76\u6216\u4FDD\u7559\u7248\u672C\u3002","penzor.rules.retain":"\u65E7\u76EE\u6807\u4E2D\u7684\u5185\u5BB9\u4FDD\u7559\u3002\u5173\u95ED\u540C\u6B65\u4E0D\u4F1A\u5220\u9664\u672C\u673A\u6216\u4E91\u7AEF\u6587\u4EF6\uFF1B\u6E90\u6587\u4EF6\u53D8\u5316\u540E\u9700\u91CD\u65B0\u9884\u89C8\u3002","penzor.rules.back":"\u8FD4\u56DE\u4FEE\u6539","penzor.rules.apply":"\u786E\u8BA4\u5E76\u5F00\u59CB","penzor.rules.pause":"\u6682\u505C","penzor.rules.resume":"\u7EE7\u7EED","penzor.rules.noActive":"\u5F53\u524D\u6CA1\u6709\u6587\u4EF6\u6B63\u5728\u4F20\u8F93\u3002","penzor.rules.manual":"\u624B\u52A8\u4E0A\u4F20\u4E0E\u4E0B\u8F7D","penzor.rules.historyNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u51B2\u7A81\u65F6\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\uFF0C\u5176\u4F59\u5185\u5BB9\u7EE7\u7EED\u540C\u6B65\u3002","penzor.rules.retry":"\u91CD\u8BD5\u5931\u8D25\u9879","penzor.rules.noHistory":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.rules.details":"\u67E5\u770B\u4F20\u8F93","penzor.rules.plugins":"\u63D2\u4EF6\u6570\u636E\u4ECD\u7531\u5404\u63D2\u4EF6\u7684\u6570\u636E\u540C\u6B65\u7BA1\u7406\u3002","penzor.rules.turnOff":"\u5173\u95ED\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.turnOn":"\u5F00\u542F\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.phase.idle":"\u7B49\u5F85\u4E0B\u6B21\u540C\u6B65","penzor.rules.phase.scanning":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.rules.phase.syncing":"\u6B63\u5728\u540C\u6B65","penzor.rules.phase.paused":"\u5DF2\u6682\u505C","penzor.rules.state.queued":"\u7B49\u5F85\u4E2D","penzor.rules.state.active":"\u4F20\u8F93\u4E2D","penzor.rules.state.done":"\u5DF2\u5B8C\u6210","penzor.rules.state.failed":"\u5931\u8D25","penzor.rules.state.paused":"\u5DF2\u6682\u505C","penzor.rules.state.conflict":"\u5DF2\u4FDD\u7559\u51B2\u7A81\u7248\u672C","penzor.tree.synced":"\u540C\u6B65\u7684\u5185\u5BB9","penzor.tree.thisBackup":"\u8FD9\u53F0\u7535\u8111 \xB7 \u53EA\u5907\u4EFD","penzor.tree.byApp":"\u6309\u5E94\u7528\u770B","penzor.tree.legacy":"\u65E7\u7248\u667A\u5E93\u540C\u6B65","penzor.quota.sourceLimit":"\u8FD9\u4E00\u7C7B\u8FD8\u6709\u5355\u72EC\u4E0A\u9650 {max}\uFF0C\u5DF2\u7528 {used}","penzor.ov.mine":"\u4F60\u653E\u7684","penzor.ov.synced":"\u540C\u6B65\u4E0A\u6765\u7684","penzor.ov.stale":"\u4E0D\u518D\u66F4\u65B0","penzor.ov.uploads":"\u4F60\u81EA\u5DF1\u4E0A\u4F20\u548C\u6574\u7406\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u968F\u4FBF\u6539","penzor.ov.all":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6","penzor.ov.allLast":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.ov.self":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4EFD","penzor.ov.device":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C\u5B83\u4E4B\u95F4\u5171\u7528","penzor.ov.agents":"Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.ov.profile":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.ov.sync":"\u7535\u8111\u540C\u6B65\u4E0A\u6765\u7684\u667A\u5E93","penzor.ov.legacy":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\u4E0D\u518D\u5199\u5165\uFF0C\u7559\u7740\u4E0D\u5220","penzor.ov.ama":"\u7F51\u9875\u7248\u7684\u7B14\u8BB0\uFF0C\u548C\u540C\u6B65\u4E0A\u6765\u7684\u7B14\u8BB0","penzor.ov.apps":"\u5404\u5E94\u7528\u5B58\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u5220\u3001\u6539\u540D","penzor.ov.plugins":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\uFF0C\u8FD9\u91CC\u53EA\u663E\u793A\u5360\u7528","penzor.ov.exports":"\u5BFC\u51FA\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u4E0B\u8F7D\u3001\u5220\u9664","penzor.ov.segNotes":"\u7B14\u8BB0","penzor.ov.segSync":"\u8BBE\u5907\u540C\u6B65","penzor.ov.segOther":"\u5176\u4ED6","penzor.content.badge":"\u65B0\u540C\u6B65\u7EF4\u62A4","penzor.content.badgeLast":"\u65B0\u540C\u6B65\u7EF4\u62A4 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.content.noteAll":"\u8FD9\u662F\u4E91\u7AEF\u7684\u90A3\u4E00\u4EFD\uFF0C\u4F60\u767B\u5F55\u7684\u6BCF\u53F0\u8BBE\u5907\u548C\u7F51\u9875\u7248\u770B\u5230\u7684\u90FD\u662F\u5B83\u3002\u8981\u6539\u6587\u4EF6\uFF0C\u5728\u7535\u8111\u4E0A\u7684\u7B14\u8BB0\u3001Agents \u91CC\u6539\uFF0C\u6539\u5B8C\u4F1A\u81EA\u52A8\u540C\u6B65\u4E0A\u6765\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteSelf":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230\u3002\u8981\u6539\u6587\u4EF6\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteDevice":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C {name} \u4E4B\u95F4\u5171\u7528\u3002\u8981\u6539\u6587\u4EF6\u5728\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.legacy.title":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\uFF0C\u5C31\u4E0D\u518D\u5F80\u8FD9\u4E2A\u5E93\u5199\u4E86","penzor.legacy.body":"\u8FD9\u53F0\u7535\u8111\u7684\u7B14\u8BB0\u73B0\u5728\u5728\u300C\u6240\u6709\u8BBE\u5907\u5171\u7528 \u203A \u7B14\u8BB0\u300D\u91CC\u3002\u8FD8\u6CA1\u5347\u7EA7\u7684\u65E7\u7248\u684C\u9762\u53EF\u80FD\u4ECD\u4F1A\u5199\u5230\u8FD9\u91CC\uFF0C\u6240\u4EE5\u8FD9\u4EFD\u7559\u7740\u3001\u4E0D\u5220\u3002","penzor.legacy.go":"\u53BB\u770B\u65B0\u7684\u90A3\u4EFD","penzor.drive.total":"\u6574\u4E2A\u84EC\u6D32\u4E91\u5DF2\u7528 {used} / {max}","penzor.drive.seeAll":"\u67E5\u770B","penzor.cs.statusOff":"\u672A\u5F00","penzor.cs.statusPaused":"\u5DF2\u6682\u505C","penzor.cs.statusRun":"\u540C\u6B65\u4E2D {pct}%","penzor.cs.statusScan":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.cs.statusWarn":"{n} \u9879\u8981\u5904\u7406","penzor.cs.statusOk":"\u5DF2\u540C\u6B65","penzor.cs.statusOkAgo":"\u5DF2\u540C\u6B65 \xB7 {time}","penzor.widget.signedOut":"\u672A\u767B\u5F55 Forsion \u8D26\u53F7","penzor.widget.signInHint":"\u767B\u5F55\u540E\u624D\u80FD\u540C\u6B65","penzor.widget.off":"\u4E91\u540C\u6B65\u6CA1\u5F00","penzor.widget.paused":"\u540C\u6B65\u5DF2\u6682\u505C","penzor.widget.running":"\u6B63\u5728\u540C\u6B65","penzor.widget.problem":"\u540C\u6B65\u9047\u5230\u95EE\u9898","penzor.widget.active":"\u6B63\u5728\u4F20 {n} \u9879","penzor.widget.queued":"\u8FD8\u6709 {n} \u9879\u6392\u961F","penzor.widget.waiting":"{n} \u9879\u7B49\u5F85\u540C\u6B65","penzor.widget.failed":"\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.error":"\u540C\u6B65\u51FA\u9519\u4E86","penzor.widget.errorMeta":"\u51FA\u9519","penzor.widget.conflict":"\u51B2\u7A81\uFF0C\u4E24\u4EFD\u90FD\u7559\u7740","penzor.widget.more":"\u8FD8\u6709 {n} \u9879\u8981\u770B","penzor.widget.last":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.widget.pending":"\u4E91\u7AEF\u5DF2\u6709\u4E00\u4EFD\u7B14\u8BB0","penzor.widget.notesFailed":"\u7B14\u8BB0\u5E93\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.agentsFailed":"Agent \u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.cs.thisComputer":"\u8FD9\u53F0\u7535\u8111\uFF1A{name}","penzor.cs.thisComputerLabel":"\u8FD9\u53F0\u7535\u8111\uFF1A","penzor.cs.rename":"\u6539\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57","penzor.cs.renameHint":"\u6539\u4E86\u4EE5\u540E\uFF0C\u522B\u7684\u8BBE\u5907\u4E0A\u4E5F\u663E\u793A\u8FD9\u4E2A\u540D\u5B57 \xB7 \u56DE\u8F66\u4FDD\u5B58","penzor.cs.name.taken":"\u53E6\u4E00\u53F0\u8BBE\u5907\u5DF2\u7ECF\u53EB\u8FD9\u4E2A\u540D\u5B57\uFF0C\u6362\u4E00\u4E2A\u5427","penzor.cs.name.reserved":"macOS\u3001Windows\u3001Linux \u7559\u7ED9\u7CFB\u7EDF\uFF0C\u6362\u4E00\u4E2A\u540D\u5B57\u5427","penzor.cs.name.invalid":"\u540D\u5B57\u6700\u591A 64 \u4E2A\u5B57\uFF0C\u4E0D\u80FD\u5E26\u65B9\u62EC\u53F7","penzor.cs.othersN":"\u53E6\u5916 {n} \u53F0\uFF1A{names}","penzor.cs.noOthers":"\u8FD8\u6CA1\u6709\u522B\u7684\u8BBE\u5907\u767B\u5F55\u8FD9\u4E2A\u8D26\u53F7","penzor.cs.log":"\u6700\u8FD1\u8BB0\u5F55","penzor.cs.more":"\u66F4\u591A","penzor.cs.advanced":"\u9AD8\u7EA7\uFF1A\u6309\u89C4\u5219\u7F16\u8F91","penzor.cs.backSimple":"\u8FD4\u56DE\u540C\u6B65","penzor.cs.firstTitle":"\u628A\u8FD9\u53F0\u7535\u8111\u540C\u6B65\u5230\u84EC\u6D32\u4E91","penzor.cs.firstBody":"\u4E0B\u9762\u662F\u5EFA\u8BAE\u7684\u8303\u56F4\uFF0C\u53EF\u4EE5\u5148\u6539\u3002\u70B9\u300C\u5F00\u59CB\u540C\u6B65\u300D\u4E4B\u524D\u4E0D\u4F1A\u4F20\u4EFB\u4F55\u4E1C\u897F\uFF1B\u4E91\u7AEF\u5DF2\u6709\u7684\u4E0D\u4F1A\u88AB\u8986\u76D6\u6216\u5220\u9664\u3002","penzor.cs.note":"\u60F3\u8BA9\u67D0\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\u6216 Agent \u5355\u72EC\u5904\u7406\uFF0C\u70B9\u5B83\u4E0B\u9762\u90A3\u884C\u5C0F\u5B57\u5C31\u80FD\u6539\u3002\u5173\u6389\u5F00\u5173\u53EA\u662F\u4E0D\u518D\u540C\u6B65\uFF0C\u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6\u3002","penzor.cs.barFirst":"\u6253\u5F00\u540C\u6B65\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A","penzor.cs.barChanged":"\u6539\u4E86 {n} \u5904","penzor.cs.barOne":"\u6539\u4E86 1 \u5904\uFF1A\u300C{name}\u300D\u6539\u6210{scope}","penzor.cs.offName":"\u4E0D\u540C\u6B65","penzor.cs.barCounts":"\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A \xB7 \u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barSize":"\u5171 {size}","penzor.cs.noDelete":"\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barConflicts":"{n} \u4E2A\u4E24\u8FB9\u90FD\u6539\u8FC7\uFF0C\u4F1A\u5404\u7559\u4E00\u4EFD","penzor.cs.barCounting":"\u6B63\u5728\u7B97\u8981\u4F20\u591A\u5C11\u2026","penzor.cs.barRecount":"\u6587\u4EF6\u521A\u6709\u53D8\u5316\uFF0C\u5DF2\u7ECF\u91CD\u65B0\u7B97\u8FC7\uFF0C\u8BF7\u518D\u786E\u8BA4\u4E00\u6B21","penzor.cs.later":"\u5148\u4E0D\u5F00","penzor.cs.start":"\u5F00\u59CB\u540C\u6B65","penzor.cs.undo":"\u64A4\u9500","penzor.cs.confirm":"\u786E\u8BA4","penzor.cs.up":"\u6B63\u5728\u4E0A\u4F20\u300C{name}\u300D","penzor.cs.down":"\u6B63\u5728\u4E0B\u8F7D\u300C{name}\u300D","penzor.cs.waiting":"\u8FD8\u6709 {n} \u4E2A\u6587\u4EF6\u7B49\u7740\u4F20","penzor.cs.failedN":"{n} \u4E2A\u6587\u4EF6\u6CA1\u4F20\u6210\u529F","penzor.cs.retry":"\u91CD\u8BD5","penzor.cs.seeLog":"\u770B\u8BB0\u5F55","penzor.cs.logEmpty":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.cs.logNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u4E24\u8FB9\u90FD\u6539\u8FC7\u65F6\u4F1A\u5404\u7559\u4E00\u4EFD\u3002","penzor.cat.notes":"\u7B14\u8BB0","penzor.cat.notesDesc":"Amadeus \u91CC\u7684\u667A\u5E93","penzor.cat.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.cat.agentsDesc":"\u6BCF\u4E2A Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.cat.profile":"\u6211\u7684\u8D44\u6599","penzor.cat.profileDesc":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.cat.profileOn":"\u542B\u9ED8\u8BA4\u65E5\u5386","penzor.cat.plugins":"\u63D2\u4EF6","penzor.cat.pluginsDesc":"\u63D2\u4EF6\u7684\u6587\u4EF6\u5939\u548C\u8BBE\u7F6E","penzor.cat.others":"\u5176\u4ED6\u6587\u4EF6","penzor.cat.othersDesc":"\u5DE5\u4F5C\u6587\u4EF6\u5939\u91CC\u4E0D\u5C5E\u4E8E\u4E0A\u9762\u51E0\u7C7B\u7684\u6587\u4EF6","penzor.cat.files":"{n} \u4E2A\u6587\u4EF6 \xB7 {size}","penzor.agents.pickHint":"\u9010\u4E2A\u9009\uFF0C\u65B0\u5EFA\u7684 Agent \u9ED8\u8BA4\u4E0D\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.legacyHint":"\u6309\u65E7\u8BBE\u7F6E\uFF0C\u65B0\u5EFA\u7684 Agent \u4E5F\u4F1A\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.none":"\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD8\u6CA1\u6709 Agent","penzor.agents.muse":"\u535C\u7B97\u5B50","penzor.agents.museDesc":"\u540E\u53F0 Agent\uFF0C\u6BCF\u53F0\u7535\u8111\u5404\u8DD1\u5404\u7684","penzor.agents.locked":"\u6682\u4E0D\u5F00\u653E\u540C\u6B65","penzor.agents.cloudOnly":"\u5728\u4E91\u7AEF \xB7 \u8FD9\u53F0\u7535\u8111\u8FD8\u6CA1\u6709\uFF0C\u6253\u5F00\u5C31\u4E0B\u8F7D","penzor.agents.historianNote":"Historian \u7684\u590D\u76D8\u8349\u7A3F\u7559\u5728\u6BCF\u53F0\u7535\u8111\u4E0A\uFF0C\u4E0D\u540C\u6B65\uFF1B\u5B83\u8BB0\u8FDB\u5404\u4E2A Agent \u65E5\u5FD7\u91CC\u7684\u5185\u5BB9\uFF0C\u8DDF\u7740\u90A3\u4E2A Agent \u8D70\u3002","penzor.agents.archiveRunning":"\u4E91\u7AEF\u7684 Agent \u6B63\u5728\u5B58\u6863\uFF0C\u7A0D\u7B49\u4E00\u4F1A\u513F\u518D\u6253\u5F00","penzor.cs.accountReview":"\u8D26\u53F7\u5DF2\u5207\u6362\u3002\u672C\u673A\u6587\u4EF6\u53EF\u80FD\u5305\u542B\u53E6\u4E00\u4E2A\u8D26\u53F7\u7684\u5185\u5BB9\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540C\u6B65\u8303\u56F4\u5E76\u786E\u8BA4\u540E\u518D\u540C\u6B65\u3002","penzor.agents.openFailed":"\u6CA1\u80FD\u6253\u5F00\u8FD9\u4E2A Agent \u7684\u540C\u6B65\uFF0C\u5148\u4FDD\u6301\u4E0D\u540C\u6B65\uFF1A{reason}","penzor.archive.title":"Agent \u540C\u6B65\u6539\u6210\u9010\u4E2A\u9009\u4E86","penzor.archive.body":"\u4E4B\u524D\u8DDF\u7740\u603B\u5F00\u5173\u540C\u6B65\u7684 Agent \u90FD\u5DF2\u505C\u4E0B\uFF0C\u4E91\u7AEF\u90A3\u4EFD\u5B58\u8FDB\u4E86\u300C\u6211\u7684\u4E91\u76D8 \u203A {shelf} \u203A {name}\u300D\uFF0C\u53EA\u8BFB\uFF0C\u80FD\u4E0B\u8F7D\u3002\u60F3\u7EE7\u7EED\u540C\u6B65\u7684\uFF0C\u5728\u4E0B\u9762\u9010\u4E2A\u6253\u5F00\u3002","penzor.archive.shelf":"\u5B58\u6863","penzor.archive.ok":"\u77E5\u9053\u4E86","penzor.archive.open":"\u6253\u5F00\u5B58\u6863","penzor.archive.note":"\u8FD9\u662F Agent \u540C\u6B65\u7684\u5B58\u6863\uFF0C\u53EA\u8BFB\uFF1A\u80FD\u4E0B\u8F7D\uFF0C\u80FD\u6574\u4EFD\u5220\u9664\u3002","penzor.ask.title":"{name} \u5728\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD","penzor.ask.when":"\u4E91\u7AEF\u90A3\u4EFD\u6700\u540E\u6539\u4E8E {cloud}\uFF0C\u8FD9\u53F0\u6700\u540E\u6539\u4E8E {local}\u3002\u6253\u5F00\u540C\u6B65\u524D\u9009\u4E00\u6B21\uFF0C\u4EE5\u540E\u81EA\u52A8\u5408\u3002","penzor.ask.merge":"\u5408\u5728\u4E00\u8D77","penzor.ask.mergeDesc":"\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u65E5\u7A0B\u6309\u6761\u5408\u5E76\uFF1B\u8BBE\u7F6E\u3001\u6027\u683C\u8FD9\u7C7B\u4E24\u8FB9\u90FD\u6539\u4E86\u7684\uFF0C\u7528\u8F83\u65B0\u7684\u90A3\u4EFD\uFF0C\u53E6\u4E00\u4EFD\u653E\u8FDB\u672C\u673A\u56DE\u6536","penzor.ask.cloud":"\u4EE5\u4E91\u7AEF\u4E3A\u51C6","penzor.ask.cloudDesc":"\u8FD9\u53F0\u7684\u6574\u4EFD\u5148\u653E\u8FDB\u672C\u673A\u56DE\u6536\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD","penzor.ask.local":"\u4EE5\u8FD9\u53F0\u4E3A\u51C6","penzor.ask.localDesc":"\u4E91\u7AEF\u90A3\u4EFD\u5148\u8FDB\u5B58\u6863\uFF0C\u518D\u6362\u6210\u8FD9\u53F0\u7684","penzor.ask.recommended":"\u5EFA\u8BAE","penzor.ask.foot":"\u56DE\u6536\u5728 agents/.removed\uFF0C\u80FD\u627E\u56DE","penzor.ask.cancel":"\u53D6\u6D88","penzor.ask.confirm":"\u6253\u5F00\u540C\u6B65","penzor.cat.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.cat.custom":"\u53E6\u6709 {n} \u6761\u81EA\u5B9A\u4E49\u89C4\u5219","penzor.cat.notSynced":"\u4E0D\u540C\u6B65 \xB7 \u53EA\u7559\u5728\u8FD9\u53F0\u7535\u8111","penzor.scope.all":"\u6240\u6709\u8BBE\u5907\u5171\u7528","penzor.scope.allDesc":"\u6BCF\u53F0\u767B\u5F55\u7684\u8BBE\u5907\u548C\u7F51\u9875\u7248\u90FD\u662F\u540C\u4E00\u4EFD","penzor.scope.self":"\u53EA\u5907\u4EFD\u8FD9\u53F0\u7535\u8111","penzor.scope.selfDesc":"\u4E91\u7AEF\u5355\u72EC\u5B58\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230","penzor.scope.with":"\u53EA\u548C {name} \u5171\u7528","penzor.scope.menuTitle":"\u300C{name}\u300D\u548C\u8C01\u5171\u7528","penzor.scope.menuFoot":"\u4E0D\u60F3\u4E0A\u4E91\u5C31\u5173\u6389\u53F3\u8FB9\u7684\u5F00\u5173","penzor.scope.calendarNote":"\u7F51\u9875\u7248\u7684\u9ED8\u8BA4\u65E5\u5386\u4E0D\u4F1A\u8DDF\u7740\u53D8","penzor.unified.stale":"\u5237\u65B0\u5931\u8D25\uFF0C\u4EE5\u4E0B\u4FDD\u7559\u4E0A\u6B21\u7EDF\u8BA1\uFF1B\u5F53\u524D\u7528\u91CF\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5\u3002","penzor.unified.uploadTo":"\u4E0A\u4F20\u5230\u300C\u6211\u7684\u6587\u4EF6\u300D","penzor.unified.apps":"\u666E\u901A\u6587\u4EF6\u53EF\u7BA1\u7406 \xB7 \u6765\u6E90\u9650\u5236\u4F18\u5148","penzor.trash.ama":"Amadeus \xB7 \u5F85\u6E05\u7406\u5FEB\u7167","penzor.trash.amaNote":"\u88AB\u5220\u7684\u5F53\u524D\u6587\u4EF6\u4ECD\u8BA1\u5165\u989D\u5EA6\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u91CD\u590D\u8BA1\u5165\u300230 \u5929\u540E\u7B49\u5F85\u7CFB\u7EDF\u6E05\u7406\uFF1B\u6B64\u5904\u53EA\u8BFB\uFF0C\u4E0D\u53D7\u300C\u6E05\u7A7A\u56DE\u6536\u7AD9\u300D\u5F71\u54CD\u3002","penzor.trash.expires":"\u53EF\u6E05\u7406\u65E5\u671F","penzor.source.openAgents":"\u5728 Agents \u4E2D\u6253\u5F00","penzor.source.openCalendar":"\u6253\u5F00\u65E5\u5386","penzor.source.entryUnavailable":"\u6B64\u5BBF\u4E3B\u6682\u672A\u63D0\u4F9B\u8BE5\u5165\u53E3","penzor.uploads":"\u6211\u7684\u6587\u4EF6","penzor.source.agents":"Agents","penzor.source.profile":"\u6211\u7684\u8D44\u6599","penzor.source.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.source.readonly":"\u540C\u6B65\u6765\u6E90\u4E3A\u53EA\u8BFB\uFF0C\u8BF7\u5728\u539F\u4F4D\u7F6E\u7F16\u8F91\u6216\u5220\u9664\uFF1B\u6B64\u5904\u53EF\u4E0B\u8F7D\u5DF2\u540C\u6B65\u7684\u6587\u4EF6\u3002","penzor.source.appNote":"\u5E94\u7528\u6587\u4EF6\u7531\u539F\u5E94\u7528\u7BA1\u7406\uFF0C\u8BF7\u5728\u5E94\u7528\u4E2D\u7F16\u8F91\u6216\u5220\u9664\u3002","penzor.source.market":"\u5546\u5E97\u6295\u7A3F","penzor.ov.market":"\u4F60\u6295\u5230\u5546\u5E97\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u548C Agent \u5305\uFF0C\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70","penzor.source.marketNote":"\u8FD9\u91CC\u7684\u5305\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70\uFF1A\u5728\u300C\u5546\u5E97 \u2192 \u6211\u7684\u6295\u7A3F\u300D\u5220\u6389\u6761\u76EE\u624D\u4F1A\u91CA\u653E\u3002\u4ECE GitHub\u3001npm \u62C9\u6765\u7684\u5305\u7531\u5546\u5E97\u4EE3\u5B58\uFF0C\u4E0D\u7B97\u4F60\u7684\u7A7A\u95F4\u3002","penzor.market.badge":"\u7531\u5546\u5E97\u7BA1\u7406","penzor.market.meta":"{size} \xB7 {n} \u4E2A\u5305","penzor.market.history":"\u65E7\u7248\u672C {size}\uFF0C\u548C\u522B\u5904\u4E00\u6837\u4E0D\u7B97","penzor.market.older":"\u53E6\u6709\u65E7\u7248\u672C {size}","penzor.market.updating":"\u66F4\u65B0\u5F85\u5BA1\u6838","penzor.market.notCounted":"\u4E0D\u7B97","penzor.market.fromGithub":"\u4ECE GitHub \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.fromNpm":"\u4ECE npm \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.type.plugin":"\u63D2\u4EF6","penzor.market.type.skill":"\u6280\u80FD","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"\u4E3B\u9898","penzor.market.type.amadeusPlugin":"Amadeus \u63D2\u4EF6","penzor.market.status.approved":"\u5DF2\u4E0A\u67B6","penzor.market.status.pending":"\u5F85\u5BA1\u6838","penzor.market.status.rejected":"\u672A\u901A\u8FC7","penzor.col.type":"\u7C7B\u578B","penzor.col.status":"\u72B6\u6001","penzor.source.pluginNote":"\u4EC5\u5C55\u793A\u63D2\u4EF6\u540D\u79F0\u548C\u5360\u7528\uFF1B\u6570\u636E\u53EF\u80FD\u542B\u914D\u7F6E\u6216\u51ED\u636E\uFF0C\u4E0D\u76F4\u63A5\u9884\u89C8\u6216\u4E0B\u8F7D\u3002","penzor.unified.unavailable":"\u7EDF\u8BA1\u4E0D\u53EF\u7528","penzor.unified.incomplete":"\u7EDF\u4E00\u7528\u91CF\u5C1A\u672A\u7EDF\u8BA1\u5B8C\u6574\uFF0C\u4E0D\u80FD\u636E\u6B64\u5224\u65AD\u662F\u5426\u8D85\u989D\u3002\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","penzor.unified.enforced":"\u7EDF\u4E00\u989D\u5EA6\u5DF2\u542F\u7528\uFF1A\u8D85\u989D\u65F6\u6682\u505C\u65B0\u589E\u5185\u5BB9\u548C\u53D8\u5927\u7684\u6587\u4EF6\uFF1B\u4E0B\u8F7D\u3001\u5220\u9664\u53CA\u4E0D\u589E\u5927\u7684\u8986\u76D6\u4ECD\u53EF\u7528\u3002","penzor.unified.grace":"\u901A\u77E5\u5BBD\u9650\u671F\u81F3 {date}\uFF0C\u76EE\u524D\u4E0D\u65B0\u589E\u7EDF\u4E00\u989D\u5EA6\u62E6\u622A\u3002","penzor.unified.rolloutPolicy":"\u5BB9\u91CF\u653F\u7B56\u901A\u77E5\uFF1A\u6700\u65E9\u5728\u786E\u8BA4\u901A\u77E5 30 \u5929\u540E\uFF0C\u7EDF\u4E00\u989D\u5EA6\u624D\u53EF\u80FD\u9650\u5236\u589E\u957F\u5199\u5165\uFF1B\u5E94\u7528\u6587\u4EF6\u5386\u53F2\u5C06\u4EC5\u4FDD\u7559\u6700\u8FD1 30 \u5929\u5185\u6700\u591A 50 \u4EFD\u3002\u5386\u53F2\u4E0D\u8BA1\u5957\u9910\uFF0C\u6E05\u7406\u524D\u4ECD\u53EF\u4E0B\u8F7D\u5907\u4EFD\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u53D7\u5386\u53F2\u6E05\u7406\u5F71\u54CD\u3002","penzor.unified.ack":"\u5DF2\u9605\u8BFB\u5BB9\u91CF\u4E0E\u5386\u53F2\u4FDD\u7559\u901A\u77E5","penzor.unified.notice":"\u73B0\u5728\u53EA\u662F\u63D0\u9192\uFF0C\u8D85\u4E86\u4E5F\u4E0D\u4F1A\u505C\u6389\u540C\u6B65\u6216\u4E0A\u4F20","penzor.unified.over":"\u5DF2\u8D85\u8FC7\u7EDF\u4E00\u989D\u5EA6\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\uFF1B\u53EF\u6E05\u7406\u6587\u4EF6\u6216\u5347\u7EA7\u5957\u9910\u3002","penzor.unified.warn":"\u7EDF\u4E00\u7A7A\u95F4\u5373\u5C06\u7528\u6EE1\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\u3002","penzor.unified.accounting":"\u542B\u56DE\u6536\u7AD9 {trash}\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u7B97","penzor.unified.writable":"\u53EF\u4E0A\u4F20\u3001\u65B0\u5EFA\u3001\u91CD\u547D\u540D\u548C\u5220\u9664","penzor.unified.readonly":"\u53EA\u8BFB \xB7 \u7531\u6765\u6E90\u7BA1\u7406","penzor.unified.export":"\u53EF\u4E0B\u8F7D\u3001\u91CD\u547D\u540D\u548C\u6C38\u4E45\u5220\u9664","penzor.unified.counted":"\u8BA1\u5165\u7EDF\u4E00\u7528\u91CF \xB7 \u63D0\u9192\u9636\u6BB5","penzor.unified.policy":"\u771F\u8981\u9650\u5236\u4E4B\u524D\uFF0C\u81F3\u5C11\u63D0\u524D 30 \u5929\u544A\u8BC9\u4F60\u3002","penzor.unified.legacySync":"\u539F\u8BBE\u5907\u540C\u6B65\u9650\u5236\uFF1A{used} / {max}","penzor.unified.legacyApps":"\u539F\u5E94\u7528\u6587\u4EF6\u9650\u5236\uFF1A{used} / {max}","sub.identity":"\u63D2\u4EF6 ID","sub.identityHint":"\u63D0\u4EA4\u540E\u81EA\u52A8\u5206\u914D\u552F\u4E00 ID\u3002\u540D\u79F0\u53EF\u4EE5\u91CD\u590D\uFF0C\u66F4\u65B0\u6CBF\u7528\u540C\u4E00\u4E2A ID\u3002","sub.description":"\u8BE6\u7EC6\u63CF\u8FF0","sub.tags":"\u6807\u7B7E","sub.tagsHint":"\u4EE5\u9017\u53F7\u5206\u9694\uFF0C\u6700\u591A 8 \u4E2A","sub.minAppVersion":"\u6700\u4F4E Forsion \u7248\u672C","sub.maxAppVersion":"\u6700\u9AD8\u7248\u672C\uFF08\u4E0D\u542B\uFF09","sub.optional":"\u9009\u586B","sub.platforms":"\u652F\u6301\u7684\u7AEF","sub.requirementsHint":"\u652F\u6301 desktop\u3001macos\u3001windows\u3001linux\u3001android\u3001ios\u3001web\u3002\u7559\u7A7A\u8868\u793A\u672A\u58F0\u660E\u3002ZIP \u6E05\u5355\u4E2D\u7684\u8981\u6C42\u4F1A\u81EA\u52A8\u8BFB\u53D6\uFF0C\u624B\u586B\u503C\u987B\u4E0E\u6E05\u5355\u4E00\u81F4\u3002","sub.err.market_requirements_invalid":"\u7248\u672C\u8981\u6C42\u6216\u5E73\u53F0\u65E0\u6548\u3002","sub.err.market_requirements_mismatch":"\u624B\u586B\u7248\u672C\u8981\u6C42\u4E0E ZIP \u6E05\u5355\u4E0D\u4E00\u81F4\u3002","sub.mine":"\u6211\u7684\u6295\u7A3F","page.submission":"\u63D2\u4EF6\u6295\u7A3F","page.webPages":"\u6211\u7684\u7F51\u9875","web.title":"\u6211\u7684\u7F51\u9875","web.desc":"\u7528 Tangu \u6216 Coding Space \u53D1\u5E03\u7684\u7F51\u9875\u90FD\u5728\u8FD9\u91CC\u3002\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\uFF1B\u9875\u9762\u5728\u6C99\u7BB1\u91CC\u8FD0\u884C\uFF0C\u62FF\u4E0D\u5230\u8BBF\u5BA2\u7684 Forsion \u767B\u5F55\u6001\u3002","web.refresh":"\u5237\u65B0","web.used":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A","web.full":"\u540D\u989D\u5DF2\u6EE1\uFF0C\u4E0B\u7EBF\u4E00\u4E2A\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u624D\u80FD\u53D1\u65B0\u7684","web.empty":"\u8FD8\u6CA1\u6709\u53D1\u5E03\u8FC7\u7F51\u9875","web.emptyHint":"\u5728\u5BF9\u8BDD\u91CC\u8BA9 Tangu \u628A\u7F51\u9875\u53D1\u5E03\u51FA\u53BB\uFF0C\u6BD4\u5982\u300C\u628A\u8FD9\u4E2A\u9875\u9762\u53D1\u5E03\u6210\u7F51\u9875\u300D\uFF1BCoding Space \u91CC\u7684\u9879\u76EE\u4E5F\u53EF\u4EE5\u70B9\u300C\u53D1\u5E03\u300D\u3002","web.updated":"\u66F4\u65B0\u4E8E {date}","web.disabled":"\u5DF2\u505C\u7528","web.disabledHint":"\u8FD9\u4E2A\u7F51\u9875\u88AB\u7BA1\u7406\u5458\u505C\u7528\u4E86\uFF0C\u94FE\u63A5\u6253\u4E0D\u5F00\uFF0C\u4E5F\u4E0D\u80FD\u66F4\u65B0\u3002","web.copy":"\u590D\u5236\u94FE\u63A5","web.unpublish":"\u4E0B\u7EBF","web.unpublishConfirm":"\u786E\u8BA4\u4E0B\u7EBF","web.listingPending":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","web.listingApproved":"\u5DF2\u4E0A\u67B6","web.listingRejected":"\u4E0A\u67B6\u88AB\u9A73\u56DE","web.listingNote":"\u9A73\u56DE\u539F\u56E0\uFF1A{note}","web.listingApply":"\u7533\u8BF7\u4E0A\u67B6","web.listingReapply":"\u91CD\u65B0\u7533\u8BF7","web.listingWithdraw":"\u64A4\u56DE\u7533\u8BF7","web.listingDelist":"\u4E0B\u67B6","web.listingDelistConfirm":"\u786E\u8BA4\u4E0B\u67B6","web.listingSummary":"\u5546\u5E97\u7B80\u4ECB","web.listingSummaryPh":"\u4E00\u53E5\u8BDD\u4ECB\u7ECD\u8FD9\u4E2A\u7F51\u9875","web.listingHint":"\u5BA1\u6838\u901A\u8FC7\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C300 \u5B57\u4EE5\u5185\u3002","web.listingSubmit":"\u63D0\u4EA4\u7533\u8BF7","pub.cmd":"\u53D1\u5E03\u7F51\u9875\u5230 Forsion","pub.cmdNoArgs":"\u4ECE\u7F16\u7801\u5DE5\u4F5C\u5BA4\u6253\u5F00\u8981\u53D1\u5E03\u7684\u9879\u76EE","pub.title":"\u53D1\u5E03\u5230 Forsion\uFF1A{name}","pub.titleTerms":"\u53D1\u5E03\u4E3A\u516C\u5F00\u9875\u9762","pub.close":"\u5173\u95ED","pub.desc":"\u628A\u8FD9\u4E2A\u7F51\u9875\u53D1\u5E03\u6210\u516C\u5F00\u94FE\u63A5\uFF0C\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\u3002","pub.descPublished":"\u5DF2\u53D1\u5E03\u3002\u6539\u4E86\u4F5C\u54C1\u4E4B\u540E\u56DE\u6765\u70B9\u300C\u66F4\u65B0\u53D1\u5E03\u300D\uFF0C\u94FE\u63A5\u4E0D\u53D8\u3002","pub.needLogin":"\u53D1\u5E03\u9700\u8981\u767B\u5F55 Forsion \u8D26\u53F7","pub.login":"\u767B\u5F55 Forsion","pub.loginWaiting":"\u7B49\u5F85\u6D4F\u89C8\u5668\u5B8C\u6210\u6388\u6743\u2026","pub.name":"\u540D\u79F0","pub.slug":"\u94FE\u63A5\u6807\u8BC6","pub.slugHint":"3\u201332 \u4F4D\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u4E2D\u5212\u7EBF","pub.entry":"\u5165\u53E3\u9875\u9762","pub.noEntry":"\u9879\u76EE\u91CC\u8FD8\u6CA1\u6709 .html \u5165\u53E3\uFF0C\u5148\u8BA9 AI \u751F\u6210\u9875\u9762\u518D\u53D1\u5E03\u3002","pub.slots":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A\uFF08{tier}\uFF09","pub.hint":"\u8D44\u6E90\u8BF7\u7528\u76F8\u5BF9\u8DEF\u5F84\u5F15\u7528\uFF1B.ts / .tsx \u53D1\u5E03\u65F6\u81EA\u52A8\u8F6C\u8BD1\uFF0C\u4E0D\u7528\u6784\u5EFA\u3002","pub.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","pub.likes":"{n} \u4E2A\u8D5E","pub.saves":"{n} \u4EBA\u6536\u85CF","pub.copy":"\u590D\u5236\u94FE\u63A5","pub.copied":"\u5DF2\u590D\u5236","pub.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","pub.publish":"\u53D1\u5E03","pub.update":"\u66F4\u65B0\u53D1\u5E03","pub.saveUpdate":"\u4FDD\u5B58\u5E76\u66F4\u65B0","pub.publishing":"\u53D1\u5E03\u4E2D\u2026","pub.listingTitle":"\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D","pub.listingNone":"\u672A\u4E0A\u67B6","pub.listingPending":"\u5BA1\u6838\u4E2D","pub.listingApproved":"\u5DF2\u4E0A\u67B6","pub.listingRejected":"\u5DF2\u9A73\u56DE","pub.listingHint":"\u4E0A\u67B6\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C\u8981\u5E73\u53F0\u5BA1\u6838\u3002","pub.termsIntro":"\u53D1\u5E03\u540E\uFF0C\u4EFB\u4F55\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u67E5\u770B\u8FD9\u4E2A\u9875\u9762\uFF0C\u5B83\u4E5F\u53EF\u80FD\u88AB\u8F6C\u53D1\u6216\u88AB\u641C\u7D22\u5F15\u64CE\u6536\u5F55\u3002\u8BF7\u786E\u8BA4\uFF1A","pub.termsLi1":"\u4F60\u6709\u6743\u53D1\u5E03\u9875\u9762\u91CC\u7684\u6587\u5B57\u3001\u56FE\u7247\u3001\u97F3\u89C6\u9891\u548C\u5176\u4ED6\u5185\u5BB9\uFF1B","pub.termsLi2":"\u9875\u9762\u4E0D\u5305\u542B\u8FDD\u6CD5\u4FE1\u606F\u3001\u4FB5\u6743\u5185\u5BB9\u6216\u672A\u7ECF\u8BB8\u53EF\u62AB\u9732\u7684\u4E2A\u4EBA\u4FE1\u606F\uFF1B","pub.termsLi3":"\u4F60\u5BF9\u81EA\u5DF1\u53D1\u5E03\u7684\u5185\u5BB9\u627F\u62C5\u76F8\u5E94\u8D23\u4EFB\u3002","pub.termsManage":"\u5E73\u53F0\u4F9D\u636E\u6CD5\u5F8B\u6CD5\u89C4\u548C\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B\u7BA1\u7406\u516C\u5F00\u5185\u5BB9\uFF0C\u5BF9\u8FDD\u89C4\u5185\u5BB9\u53EF\u80FD\u9650\u5236\u8BBF\u95EE\u3001\u505C\u6B62\u5C55\u793A\u6216\u5220\u9664\u3002","pub.termsAgreePre":"\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F","pub.termsGuidelines":"\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B","pub.termsConfirm":"\u786E\u8BA4\u53D1\u5E03","pub.aiSaveFailed":"\u5DF2\u53D1\u5E03\uFF0C\u4F46 AI \u8BBE\u7F6E\u6CA1\u4FDD\u5B58\uFF1A{reason}","ai.whoPays":"\u8C01\u6765\u4ED8","ai.payer.visitor":"\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","ai.payer.author":"\u6211\u6765\u4ED8","ai.perVisitor":"\u6BCF\u4F4D\u8BBF\u5BA2","ai.perVisitorPre":"\u6BCF\u4EBA\u6BCF\u5929\u6700\u591A","ai.perVisitorPost":"\u6B21","ai.page":"\u8FD9\u4E2A\u7F51\u9875","ai.pagePre":"\u6BCF\u5929\u6700\u591A","ai.pagePost":"\u79EF\u5206","ai.max":"\u6700\u591A {n}","ai.whenUsedUp":"\u7528\u5B8C\u4EE5\u540E","ai.exhausted.visitor":"\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6","ai.exhausted.pause":"AI \u6682\u505C\u5230\u660E\u5929","ai.models":"\u53EF\u7528\u6A21\u578B","ai.modelDefault":"\u9ED8\u8BA4","ai.modelImage":"\u56FE\u50CF","ai.balance":"\u989D\u5EA6\u5305\u4F59\u989D","ai.points":"{n} \u79EF\u5206","ai.buy":"\u4E70\u989D\u5EA6\u5305","ai.noteAuthor":"\u8BBF\u5BA2\u7528 AI \u524D\u8981\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u53EA\u7528\u6765\u6309\u4EBA\u8BB0\u6B21\u6570\uFF0C\u4E0D\u6263\u4ED6\u4EEC\u7684\u989D\u5EA6\u3002\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u6263\uFF0C\u548C\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u65F6\u4E00\u6837\u591A\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","ai.noteVisitor":"\u770B\u7F51\u9875\u4E0D\u7528\u767B\u5F55\uFF1B\u8BBF\u5BA2\u7528\u5230 AI \u65F6\u518D\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u6263\u4ED6\u4EEC\u81EA\u5DF1\u7684\u989D\u5EA6\u3002","ai.noteOff":"\u300C\u6211\u6765\u4ED8\u300D\u6682\u672A\u5F00\u653E\uFF0CAI \u7531\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.agentNote":"forsion.ai.agent \u8FD9\u4E00\u671F\u4ECD\u6263\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u8BBF\u5BA2\u7B2C\u4E00\u6B21\u7528\u65F6\u4F1A\u5148\u786E\u8BA4\u3002","ai.cooldownNew":"\u65B0\u7F51\u9875\u53D1\u5E03\u6EE1 {h} \u5C0F\u65F6\u540E\u624D\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.cooldownUntil":"{time} \u8D77\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.save":"\u4FDD\u5B58","ai.saved":"AI \u8BBE\u7F6E\u5DF2\u4FDD\u5B58","web.tabMine":"\u6211\u53D1\u5E03\u7684 {n}","web.tabSaved":"\u6211\u6536\u85CF\u7684","web.tabSavedN":"\u6211\u6536\u85CF\u7684 {n}","web.ai.author":"AI \xB7 \u6211\u6765\u4ED8","web.ai.visitor":"AI \xB7 \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.paused":"AI \xB7 \u6211\u6765\u4ED8 \xB7 \u5DF2\u6682\u505C","web.ai.pausedSpike":"1 \u5C0F\u65F6\u5185\u7528\u5F97\u592A\u5FEB\uFF0C\u5DF2\u81EA\u52A8\u6539\u56DE\u8BBF\u5BA2\u4ED8","web.ai.pausedAdmin":"\u88AB\u7BA1\u7406\u5458\u6682\u505C\uFF0C\u73B0\u5728\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.resume":"\u6062\u590D\u6211\u6765\u4ED8","web.ai.todayAuthor":"\u4ECA\u5929 {calls} \u6B21 \xB7 {visitors} \u4F4D\u8BBF\u5BA2","web.ai.todayVisitor":"\u4ECA\u5929 {calls} \u6B21","web.ai.cap":"\u4ECA\u65E5\u4E0A\u9650","web.ai.none":"\u6CA1\u7528\u5230 AI","web.ai.settings":"AI \u8BBE\u7F6E","web.ai.cooldown":"{time} \u8D77\u7531\u4F60\u6765\u4ED8","pack.points":"\u79EF\u5206","pack.note":"\u9009\u4E86\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u4ECE\u8FD9\u91CC\u6263\uFF0C\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u8BA1\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","pack.lowNote":"\u5FEB\u7528\u5B8C\u4E86\u3002\u7528\u5B8C\u540E\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u6309\u5404\u81EA\u7684\u8BBE\u7F6E\uFF1A\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u6216\u6682\u505C\u5230\u660E\u5929\u3002","pack.monthSpent":"\u672C\u6708\u7528\u6389","pack.lastTopUp":"\u4E0A\u6B21\u5145\u503C","pack.topUp":"{date} +{n}","pack.usage":"\u7528\u91CF\u660E\u7EC6","pack.usageTitle":"\u6700\u8FD1 30 \u5929\u300C\u6211\u6765\u4ED8\u300D\u7684\u7528\u91CF","pack.usageEmpty":"\u6700\u8FD1 30 \u5929\u6CA1\u6709\u300C\u6211\u6765\u4ED8\u300D\u7684\u8C03\u7528","pack.col.day":"\u65E5\u671F","pack.col.page":"\u7F51\u9875","pack.col.calls":"\u6B21\u6570","pack.col.visitors":"\u8BBF\u5BA2","pack.col.points":"\u79EF\u5206","pack.storeTitle":"\u5546\u5E97","pack.storeUnavailable":"\u6253\u5F00\u300C\u5546\u5E97 \u203A \u7269\u54C1\u300D\u4E70\u989D\u5EA6\u5305","saved.empty":"\u8FD8\u6CA1\u6709\u6536\u85CF\u7684\u7F51\u9875","saved.emptyHint":"\u5728\u522B\u4EBA\u53D1\u5E03\u7684\u7F51\u9875\u53F3\u8FB9\u70B9\u661F\u6807\uFF0C\u5C31\u4F1A\u6536\u5230\u8FD9\u91CC\u3002","saved.open":"\u6253\u5F00","saved.author":"\u4F5C\u8005\u4E3B\u9875","saved.unsave":"\u53D6\u6D88\u6536\u85CF","saved.aiAuthor":"AI \u4F5C\u8005\u8BF7\u5BA2","saved.aiVisitor":"AI \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","backpack.effect.connectPack":"\u989D\u5EA6\u5305\u4F59\u989D +{n} \u79EF\u5206","backpack.effect.other":"\u5176\u4ED6\u6548\u679C","backpack.packUsed":"\u5DF2\u5145\u8FDB\u989D\u5EA6\u5305\u4F59\u989D","backpack.packUsedLine":"+{n} \u79EF\u5206 \xB7 \u73B0\u5728 {balance} \u79EF\u5206","sub.desc":"\u7BA1\u7406\u4F60\u6295\u7A3F\u7684\u5185\u5BB9\u3001\u5BA1\u6838\u7ED3\u679C\u548C\u7248\u672C\u66F4\u65B0\u3002","sub.new":"\u65B0\u6295\u7A3F","sub.refresh":"\u5237\u65B0","sub.empty":"\u8FD8\u6CA1\u6709\u6295\u7A3F","sub.emptyHint":"\u628A\u4F60\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001Agent \u6216 Space \u5206\u4EAB\u5230\u5E94\u7528\u5E02\u573A\u3002","sub.name":"\u540D\u79F0","sub.summary":"\u7B80\u4ECB","sub.type":"\u5185\u5BB9\u7C7B\u578B","sub.source":"\u53D1\u5E03\u6E20\u9053","sub.type.skill":"\u6280\u80FD","sub.type.agent":"Agent","sub.type.plugin":"\u63D2\u4EF6","sub.type.space":"Space","sub.type.theme":"\u4E3B\u9898","sub.type.amadeus_plugin":"Amadeus \u63D2\u4EF6","sub.pending":"\u5F85\u5BA1\u6838","sub.approved":"\u5DF2\u4E0A\u67B6","sub.rejected":"\u5DF2\u9A73\u56DE","sub.pendingVersion":"v{version} \u66F4\u65B0\u5F85\u5BA1\u6838","sub.rejectedVersion":"v{version} \u66F4\u65B0\u5DF2\u9A73\u56DE","sub.submit":"\u63D0\u4EA4\u5BA1\u6838","sub.submitted":"\u6295\u7A3F\u5DF2\u63D0\u4EA4\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u663E\u793A\u5728\u8FD9\u91CC\u548C\u4F60\u7684\u6536\u4EF6\u7BB1\u91CC\u3002","sub.updated":"\u65B0\u7248\u672C\u5DF2\u63D0\u4EA4\u5BA1\u6838\u3002\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.repo":"GitHub \u516C\u5F00\u4ED3\u5E93","sub.npm":"npm \u516C\u5F00\u5305","sub.repoHint":"\u4ECE\u4ED3\u5E93\u8BFB\u53D6 README \u548C Release\uFF1B\u4ED3\u5E93\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.npmHint":"\u4ECE npm \u8BFB\u53D6\u5305\u4FE1\u606F\uFF1B\u5BF9\u5E94\u516C\u5F00\u4ED3\u5E93\u7684\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.reviewHint":"\u65B0\u7248\u672C\u9700\u91CD\u65B0\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u5411\u7528\u6237\u63D0\u4F9B\u3002\u4F60\u7684 Forsion \u8D26\u53F7\u7528\u4E8E\u7BA1\u7406\u6295\u7A3F\u3002","sub.zipHint":"\u6700\u5927 50 MB\uFF0C\u5305\u5185\u5305\u542B\u5BF9\u5E94\u7684 manifest \u4E0E\u5165\u53E3\u6587\u4EF6\u3002","sub.filter":"\u6309\u72B6\u6001\u7B5B\u9009","sub.all":"\u5168\u90E8","sub.noResults":"\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6295\u7A3F","sub.downloads":"{n} \u6B21\u4E0B\u8F7D","sub.errName":"\u8BF7\u586B\u5199\u540D\u79F0\u3002","sub.errSource":"\u8BF7\u586B\u5199\u516C\u5F00\u4ED3\u5E93\u5730\u5740\u6216 npm \u5305\u540D\u3002","sub.errZip":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.errLarge":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_npm_invalid":"npm \u5305\u4E0D\u5B58\u5728\u6216\u4E0D\u7B26\u5408\u63D2\u4EF6\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_npm_source":"\u8BF7\u901A\u8FC7 npm \u53D1\u5E03\u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_github_source":"\u8BF7\u5728 GitHub \u53D1\u5E03 Release \u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_not_found":"\u6295\u7A3F\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.err.market_zip_required":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.err.market_zip_invalid":"ZIP \u5305\u7ED3\u6784\u4E0D\u7B26\u5408\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_zip_too_large":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_version_required":"\u5305\u91CC\u6CA1\u5199\u7248\u672C\u53F7\u3002\u5728 manifest \u91CC\u5199\u4E0A\u7248\u672C\u53F7\uFF08\u6280\u80FD\u5199\u5728 SKILL.md \u7684 version \u6216 metadata.version\uFF09\u518D\u6253\u5305\u3002","sub.err.market_version_invalid":"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7248\u672C\u53F7\u3002","sub.err.market_version_mismatch":"\u7248\u672C\u53F7\u4E0E\u5305\u5185 manifest \u4E0D\u4E00\u81F4\u3002","sub.err.market_version_not_newer":"\u65B0\u7248\u987B\u9AD8\u4E8E\u5F53\u524D\u5DF2\u4E0A\u67B6\u7248\u672C\u3002","sub.err.market_icon_invalid":"\u56FE\u6807\u5E94\u4E3A 64\u2013512 px \u7684\u6B63\u65B9\u5F62 PNG\u3002","sub.err.market_duplicate":"\u8BE5\u5185\u5BB9\u5DF2\u6709\u6295\u7A3F\uFF0C\u8BF7\u7BA1\u7406\u73B0\u6709\u6295\u7A3F\u3002","sub.err.market_update_pending":"\u5DF2\u6709\u65B0\u7248\u7B49\u5F85\u5BA1\u6838\uFF0C\u8BF7\u5148\u7B49\u5F85\u5BA1\u6838\u7ED3\u679C\u3002","sub.err.market_stale":"\u6295\u7A3F\u5DF2\u53D1\u751F\u53D8\u5316\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.notNewer":"\u5305\u91CC\u7684\u7248\u672C\u662F v{version}\uFF0C\u8981\u9AD8\u4E8E\u5546\u5E97\u5F53\u524D\u7684 v{current}\u3002","sub.reqNone":"\u6CA1\u6709\u58F0\u660E\u7248\u672C\u8981\u6C42\u548C\u5E73\u53F0","sub.dropTitle":"\u628A ZIP \u62D6\u5230\u8FD9\u91CC\uFF0C\u6216\u70B9\u8FD9\u91CC\u9009\u62E9","sub.dropHint":"\u6700\u5927 50 MB\u3002\u9009\u597D\u540E\u5148\u68C0\u67E5\uFF0C\u4E0D\u4F1A\u76F4\u63A5\u63D0\u4EA4\u3002","sub.dropReplace":"{size} \xB7 \u62D6\u5165\u6216\u70B9\u8FD9\u91CC\u6362\u4E00\u4E2A","sub.checkType":"\u7C7B\u578B","sub.checkVersion":"\u7248\u672C","sub.checkIcon":"\u56FE\u6807","sub.checkReadme":"\u8BF4\u660E\u6587\u6863","sub.checkReq":"\u8981\u6C42","sub.checkWarn":"\u6CE8\u610F","sub.iconYes":"\u5305\u91CC\u6709 icon.png","sub.iconNo":"\u5305\u91CC\u6CA1\u6709 icon.png\uFF0C\u5361\u7247\u663E\u793A\u7C7B\u578B\u56FE\u6807","sub.readmeYes":"\u53D6\u5305\u91CC\u7684 README.md","sub.readmeKeep":"\u5305\u91CC\u6CA1\u6709 README.md\uFF0C\u6CBF\u7528\u73B0\u5728\u7684\u8BF4\u660E","sub.readmeNo":"\u5305\u91CC\u6CA1\u6709 README.md","sub.warn.no_manifest":"\u5305\u91CC\u6CA1\u627E\u5230\u6E05\u5355\u6587\u4EF6\uFF08manifest\uFF09","sub.warn.type_mismatch":"\u5305\u91CC\u7684\u7C7B\u578B\u548C\u8FD9\u6761\u6295\u7A3F\u7684\u7C7B\u578B\u4E0D\u4E00\u81F4","sub.warn.tag_version_mismatch":"Release \u6807\u7B7E\u548C\u5305\u91CC\u7684\u7248\u672C\u53F7\u4E0D\u4E00\u81F4","sub.warn.id_slug_mismatch":"\u5305\u91CC\u7684 id \u548C\u5B89\u88C5\u76EE\u5F55\u540D\u4E0D\u540C\u3002\u4E0D\u5F71\u54CD\u7528\u6237\uFF1A\u66F4\u65B0\u7167\u5E38\u88C5\u56DE\u539F\u76EE\u5F55\uFF0C\u4E0D\u4F1A\u591A\u51FA\u4E00\u4EFD\uFF1B\u5B89\u88C5\u76EE\u5F55\u540D\u4E0A\u67B6\u540E\u4E0D\u80FD\u6539","sub.warn.engine_slug_mismatch":"\u5F15\u64CE\u63D2\u4EF6\u7684\u76EE\u5F55\u540D\u548C\u5B83\u7684 id \u4E0D\u4E00\u81F4","sub.warn.no_entry":"Amadeus \u63D2\u4EF6\u7F3A\u5C11\u5165\u53E3 main.js","sub.warn.has_node_modules":"\u5305\u91CC\u5E26\u4E86 node_modules\uFF0C\u4F53\u79EF\u5927\uFF0C\u901A\u5E38\u4E5F\u7528\u4E0D\u4E0A","sub.zipListedNote":"\u5BA1\u6838\u901A\u8FC7\u524D\uFF0C\u5546\u5E97\u7EE7\u7EED\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\u3002\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.zipUnlistedNote":"\u63D0\u4EA4\u540E\u66FF\u6362\u73B0\u5728\u8FD9\u4EFD\u5305\uFF0C\u91CD\u65B0\u8FDB\u5165\u5BA1\u6838\u3002","sub.submitVersion":"\u63D0\u4EA4 v{version} \u5BA1\u6838","sub.checkNew":"\u68C0\u67E5\u65B0\u7248\u672C","sub.checkAgain":"\u518D\u68C0\u67E5\u4E00\u6B21","sub.upToDate":"\u4E0A\u6E38\u6700\u65B0\u662F v{version}\uFF0C\u5546\u5E97\u5DF2\u662F v{current}\uFF0C\u6CA1\u6709\u65B0\u7248\u672C\u3002\u53D1\u5E03\u65B0\u7248\u672C\u540E\u518D\u6765\u68C0\u67E5\u3002","sub.upstreamLatest":"\u4E0A\u6E38\u6700\u65B0\uFF1Av{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"\u5546\u5E97\u5F53\u524D v{version}","sub.githubNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 GitHub \u53D1\u4E86\u65B0 Release\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.npmNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 npm \u53D1\u4E86\u65B0\u7248\u672C\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.secVersion":"\u7248\u672C","sub.secInfo":"\u5546\u5E97\u4FE1\u606F","sub.secHistory":"\u8BB0\u5F55","sub.edit":"\u7F16\u8F91","sub.unset":"\u672A\u586B\u5199","sub.infoNote":"\u4E0D\u7528\u4F20\u5305\u3001\u4E0D\u7528\u5347\u7248\u672C\u3002\u5DF2\u4E0A\u67B6\u7684\u4FEE\u6539\u540C\u6837\u8981\u8FC7\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.submitInfo":"\u63D0\u4EA4\u4FEE\u6539","sub.back":"\u8FD4\u56DE\u5217\u8868","sub.pendingInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5F85\u5BA1\u6838","sub.rejectedInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5DF2\u9A73\u56DE","sub.pendingHint":"\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.inReview":"\u6B63\u5728\u7B49\u5F85\u9996\u6B21\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.histApproved":"v{version} \u5BA1\u6838\u901A\u8FC7","sub.histSubmitted":"\u6295\u7A3F","sub.resubmitted":"\u5DF2\u91CD\u65B0\u63D0\u4EA4\u5BA1\u6838\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.infoSubmitted":"\u4FEE\u6539\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.err.market_no_release":"\u8FD9\u4E2A\u4ED3\u5E93\u8FD8\u6CA1\u6709 GitHub Release\u3002\u5546\u5E97\u8981\u9501\u5B9A\u4E00\u4E2A\u7248\u672C\uFF0C\u5148\u5728 GitHub \u53D1\u4E00\u4E2A Release\uFF0C\u518D\u56DE\u6765\u68C0\u67E5\u3002","sub.err.market_no_changes":"\u6CA1\u6709\u6539\u52A8\u3002","sub.err.market_dryrun_unsupported":"GitHub \u548C npm \u6295\u7A3F\u6CA1\u6CD5\u63D0\u524D\u68C0\u67E5\uFF0C\u76F4\u63A5\u63D0\u4EA4\u5BA1\u6838\u5373\u53EF\u3002","page.account":"\u8D26\u53F7","page.membershipUsage":"\u4F1A\u5458\u4E0E\u7528\u91CF","page.membershipQuota":"\u4F1A\u5458\u4E0E\u989D\u5EA6","page.pointsInvite":"\u79EF\u5206\u4E0E\u9080\u8BF7","account.details.title":"\u767B\u5F55\u4E0E\u8D44\u6599","account.details.desc":"\u5934\u50CF\u3001\u6635\u79F0\u4E0E\u7B80\u4ECB\u5728\u300C\u4E2A\u4EBA\u4E3B\u9875\u300D\u4E2D\u7F16\u8F91\u3002","account.details.username":"\u7528\u6237\u540D","diag.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u8BCA\u65AD\u6570\u636E\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","page.profile":"\u4E2A\u4EBA\u4E3B\u9875","page.quota":"\u989D\u5EA6\u4E0E\u79EF\u5206","page.backpack":"\u80CC\u5305","page.security":"\u5B89\u5168","page.usage":"\u7528\u91CF\u8BB0\u5F55","page.feedback":"\u53CD\u9988","store.group":"\u4F1A\u5458\u4E0E\u79EF\u5206","store.membership":"\u4F1A\u5458","store.membership.desc":"\u5347\u7EA7\u6863\u4F4D\uFF0C\u83B7\u5F97\u66F4\u591A\u6BCF\u65E5\u4E0E\u6BCF\u5468\u989D\u5EA6","store.points":"\u79EF\u5206","store.points.desc":"\u5145\u503C\u79EF\u5206\uFF0C\u7528\u6765\u5151\u6362\u7269\u54C1","store.items":"\u7269\u54C1","store.items.desc":"\u7528\u79EF\u5206\u5151\u6362\u7684\u7269\u54C1\uFF0C\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.status":"\u6863\u4F4D\u4E0E\u79EF\u5206","store.tier":"\u5F53\u524D\u6863\u4F4D","store.balance":"\u79EF\u5206\u4F59\u989D","store.choosePlan":"\u9009\u62E9\u6863\u4F4D","store.payHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u56DE\u5230\u5E94\u7528\u540E\u81EA\u52A8\u5237\u65B0","store.payOff":"\u6682\u65F6\u4E0D\u80FD\u8D2D\u4E70","store.period":"\u4ED8\u8D39\u5468\u671F","store.period.monthly":"\u6708\u4ED8","store.period.quarterly":"\u5B63\u4ED8","store.period.yearly":"\u5E74\u4ED8","store.per.monthly":"/ \u6708","store.per.quarterly":"/ \u5B63","store.per.yearly":"/ \u5E74","store.currentTier":"\u5F53\u524D\u6863\u4F4D","store.pay":"\u53BB\u652F\u4ED8","store.payPrice":"{price} \u53BB\u652F\u4ED8","store.noPlans":"\u6682\u65F6\u6CA1\u6709\u53EF\u9009\u7684\u6863\u4F4D","store.packs":"\u79EF\u5206\u5305","store.packsHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u4ED8\u6B3E\u540E\u79EF\u5206\u5373\u65F6\u5230\u8D26","store.noPacks":"\u6682\u65F6\u6CA1\u6709\u79EF\u5206\u5305","store.kind.pack":"\u79EF\u5206\u5305","store.kind.card":"\u9053\u5177","store.kind.code":"\u5151\u6362\u7801","store.kind.item":"\u7269\u54C1","store.nPoints":"{n} \u79EF\u5206","store.instant":"\u4ED8\u6B3E\u540E\u5373\u65F6\u5230\u8D26","store.redeemTitle":"\u79EF\u5206\u5151\u6362","store.redeemHint":"\u7528\u79EF\u5206\u5151\u6362\u5728\u5E94\u7528\u5185\u76F4\u63A5\u5B8C\u6210\uFF0C\u5151\u6362\u540E\u7269\u54C1\u8FDB\u80CC\u5305","store.redeem":"{n} \u79EF\u5206\u5151\u6362","store.redeemConfirm":"\u786E\u8BA4\u82B1 {n} \u79EF\u5206","store.redeemed":"\u5DF2\u5151\u6362\uFF0C\u7269\u54C1\u5728\u80CC\u5305\u91CC","store.uncertain":"\u6CA1\u6536\u5230\u7ED3\u679C\u3002\u5148\u5230\u80CC\u5305\u770B\u4E00\u4E0B\u6709\u6CA1\u6709\u5230\u8D26\uFF0C\u518D\u51B3\u5B9A\u8981\u4E0D\u8981\u91CD\u8BD5\u3002","store.soldOut":"\u5DF2\u552E\u7F44","store.left":"\u4F59 {n}","store.toBackpack":"\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.limitReached":"\u5DF2\u8FBE\u8D2D\u4E70\u4E0A\u9650","store.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u6682\u65F6\u4E0D\u80FD\u5151\u6362","store.noItems":"\u6682\u65F6\u6CA1\u6709\u53EF\u5151\u6362\u7684\u7269\u54C1","store.itemsOff":"\u7269\u54C1\u5151\u6362\u6682\u672A\u5F00\u653E","store.openBackpack":"\u6253\u5F00\u80CC\u5305","backpack.desc":"\u5728\u8FD9\u91CC\u67E5\u770B\u4F60\u83B7\u5F97\u7684\u7269\u54C1\uFF0C\u70B9\u51FB\u683C\u5B50\u67E5\u770B\u8BE6\u60C5\u3002","backpack.refresh":"\u5237\u65B0","backpack.total":"\u5171 {n} \u4EF6\u7269\u54C1","backpack.grid":"\u80CC\u5305\u7269\u54C1","backpack.slot":"{name}\uFF0C\u6570\u91CF {n}","backpack.item":"\u7269\u54C1","backpack.empty":"\u80CC\u5305\u8FD8\u662F\u7A7A\u7684","backpack.emptyHint":"\u5151\u6362\u6216\u83B7\u8D60\u7684\u7269\u54C1\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","backpack.select":"\u70B9\u51FB\u7269\u54C1\u67E5\u770B\u8BE6\u60C5","backpack.details":"\u7269\u54C1\u8BE6\u60C5","backpack.quantity":"\u6301\u6709\u6570\u91CF","backpack.acquired":"\u83B7\u5F97\u65F6\u95F4","backpack.source":"\u83B7\u5F97\u65B9\u5F0F","backpack.source.points":"\u79EF\u5206\u5151\u6362","backpack.source.admin":"\u8D60\u9001","backpack.source.reward":"\u5956\u52B1","backpack.source.other":"\u4E91\u7AEF\u53D1\u653E","backpack.consumable":"\u6D88\u8017\u54C1","backpack.voucher":"\u5361\u5238","backpack.getCards":"\u67E5\u770B\u989D\u5EA6","backpack.manageCards":"\u53BB\u4F7F\u7528","backpack.reveal":"\u67E5\u770B\u5361\u5BC6","backpack.copyKey":"\u590D\u5236\u5361\u5BC6","backpack.noKey":"\u8FD9\u4EF6\u7269\u54C1\u6CA1\u6709\u5361\u5BC6\u3002","backpack.use":"\u4F7F\u7528","backpack.confirmUse":"\u786E\u8BA4\u4F7F\u7528","backpack.consumeConfirm":"\u4F7F\u7528\u540E\u6D88\u8017 1 \u4EF6\u7269\u54C1\u3002","backpack.collectible":"\u7EAA\u5FF5\u54C1","backpack.effect.points":"+{n} \u79EF\u5206","backpack.effect.cards":"+{n} \u5F20\u91CD\u7F6E\u5361","backpack.effect.quota":"\u91CD\u7F6E\u4ECA\u65E5\u4E0E\u672C\u5468\u989D\u5EA6","backpack.rarity.common":"\u666E\u901A","backpack.rarity.rare":"\u7A00\u6709","backpack.rarity.epic":"\u53F2\u8BD7","backpack.rarity.legendary":"\u4F20\u8BF4","backpack.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u5DF2\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u80CC\u5305\u3002","backpack.notUsable":"\u8FD9\u4EF6\u7269\u54C1\u4E0D\u80FD\u4F7F\u7528\u3002","backpack.quotaUnavailable":"\u8BF7\u5148\u4F7F\u7528\u4E91\u7AEF AI \u521D\u59CB\u5316\u989D\u5EA6\uFF0C\u518D\u4F7F\u7528\u8FD9\u4EF6\u7269\u54C1\u3002","common.cancel":"\u53D6\u6D88","common.copied":"\u5DF2\u590D\u5236","common.copyFailed":"\u590D\u5236\u5931\u8D25","common.done":"\u5B8C\u6210","common.loadFailed":"\u6CA1\u80FD\u52A0\u8F7D","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","common.loading":"\u52A0\u8F7D\u4E2D\u2026","common.openInBrowser":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","common.retry":"\u91CD\u8BD5","common.save":"\u4FDD\u5B58","common.thisWeek":"\u672C\u5468","common.today":"\u4ECA\u65E5","common.unlimited":"\u4E0D\u9650","ann.eyebrow":"FORSION \xB7 \u516C\u544A","ann.close":"\u5173\u95ED","ann.ok":"\u77E5\u9053\u4E86","signin.button":"\u767B\u5F55 Forsion","signin.desc":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u5728\u8FD9\u91CC\u7BA1\u7406\u8D26\u53F7\u3001\u989D\u5EA6\u3001\u5B89\u5168\u3001\u6295\u7A3F\u4E0E\u53CD\u9988\u3002","signin.pending":"\u7B49\u5F85\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u767B\u5F55\u2026","signin.deviceHint":"\u6D4F\u89C8\u5668\u4F1A\u81EA\u52A8\u6253\u5F00\u767B\u5F55\u9875\uFF1B\u6CA1\u6709\u6253\u5F00\u7684\u8BDD\uFF0C\u7528\u624B\u673A\u626B\u7801\u6216\u6253\u5F00\u4E0B\u9762\u7684\u94FE\u63A5\uFF0C\u5E76\u6838\u5BF9\u9A8C\u8BC1\u7801\u3002","signin.code":"\u9A8C\u8BC1\u7801","signin.openLink":"\u6253\u5F00\u767B\u5F55\u9875","signin.copyLink":"\u590D\u5236\u94FE\u63A5","signin.qrLabel":"\u767B\u5F55\u4E8C\u7EF4\u7801","account.profile.title":"\u4E2A\u4EBA\u8D44\u6599","account.profile.desc":"\u5934\u50CF\u3001\u6635\u79F0\uFF0C\u4EE5\u53CA\u7ED1\u5B9A\u7684\u624B\u673A\u548C\u90AE\u7BB1","account.avatar.change":"\u66F4\u6362\u5934\u50CF","account.avatar.saved":"\u5934\u50CF\u5DF2\u66F4\u65B0","account.nickname.edit":"\u4FEE\u6539\u6635\u79F0","account.nickname.label":"\u6635\u79F0","account.nickname.saved":"\u6635\u79F0\u5DF2\u66F4\u65B0","account.role.admin":"\u7BA1\u7406\u5458","account.username":"\u7528\u6237\u540D {name}","account.contact.phone":"\u624B\u673A","account.contact.email":"\u90AE\u7BB1","account.contact.unbound":"\u672A\u7ED1\u5B9A","account.contact.manage":"\u53BB\u5B89\u5168\u9875\u7BA1\u7406","account.web.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3","account.web.desc":"\u4E91\u7A7A\u95F4\u3001AI \u5927\u8111\u4E0E\u4E3B\u9898\u5728\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7BA1\u7406\u3002","wechat.title":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B","wechat.desc":"\u628A\u5C0F\u7EA2\u4E66\u3001B \u7AD9\u3001X \u548C\u7F51\u9875\u94FE\u63A5\u53D1\u7ED9 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7\uFF0C\u81EA\u52A8\u526A\u85CF\u8FDB\u4F60\u4E91\u7AEF\u667A\u5E93\u7684 Plugins/wechat-helper \u6587\u4EF6\u5939\uFF1B\u5176\u4ED6\u6D88\u606F\u6309\u5929\u8BB0\u8FDB\u65E5\u8BB0\u3002","wechat.status":"\u7ED1\u5B9A\u72B6\u6001","wechat.bound":"\u5DF2\u7ED1\u5B9A","wechat.boundAt":"{date} \u7ED1\u5B9A","wechat.where":"\u53D1\u7ED9\u4F01\u4E1A\u5FAE\u4FE1\u53F7\u7684\u94FE\u63A5\u4F1A\u51FA\u73B0\u5728\u667A\u5E93\u7684 Plugins/wechat-helper \u91CC\uFF0C\u4E00\u822C\u4E00\u5206\u949F\u5185\u5230\u3002","wechat.notEligible":"\u4F60\u5F53\u524D\u7684\u4F1A\u5458\u6863\u6682\u4E0D\u80FD\u4F7F\u7528\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u3002","wechat.disabled":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u6682\u672A\u5F00\u653E\u3002","wechat.code":"\u7ED1\u5B9A\u7801","wechat.contact":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0\u300C{contact}\u300D","wechat.contactUnknown":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7","wechat.getCode":"\u83B7\u53D6\u7ED1\u5B9A\u7801","wechat.newCode":"\u6362\u4E00\u4E2A","wechat.copy":"\u590D\u5236\u7ED1\u5B9A\u7801","wechat.send":"{contact}\uFF0C\u518D\u628A\u8FD9\u4E32\u6570\u5B57\u53D1\u7ED9\u5B83\u3002","wechat.waiting":"\u7B49\u5F85\u7ED1\u5B9A\u2026\u7ED1\u5B9A\u7801\u5728 {time} \u524D\u6709\u6548\u3002\u4F01\u4E1A\u5FAE\u4FE1\u90A3\u8FB9\u4E0D\u4F1A\u56DE\u590D\uFF0C\u7ED1\u4E0A\u540E\u8FD9\u91CC\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002","wechat.unbind":"\u89E3\u7ED1","wechat.unbindConfirm":"\u786E\u8BA4\u89E3\u7ED1","address.label":"\u4E3B\u9875\u5730\u5740","address.change":"\u6539\u5730\u5740","address.title":"\u6539\u4E3B\u9875\u5730\u5740","address.desc":"\u4F60\u53D1\u5E03\u7684\u4F5C\u54C1\u90FD\u5728\u8FD9\u4E2A\u5730\u5740\u4E0B\u9762\u3002\u6539\u4E86\u4E4B\u540E\uFF0C\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E5F\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u53BB\u7528\u3002","address.now":"\u73B0\u5728","address.new":"\u6539\u6210","address.rule":"3\u201330 \u4F4D\uFF0C\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u300C-\u300D","address.checking":"\u6B63\u5728\u67E5\u80FD\u4E0D\u80FD\u7528\u2026","address.ok":"\u53EF\u4EE5\u7528","address.bad":"\u8FD9\u4E2A\u5730\u5740\u4E0D\u80FD\u7528","address.same":"\u8FD9\u5C31\u662F\u4F60\u73B0\u5728\u7684\u5730\u5740","address.freeOne":"\u8FD9\u662F\u4F60\u7684\u4E00\u6B21\u514D\u8D39\u4FEE\u6539","address.freeN":"\u8FD9\u6B21\u514D\u8D39\uFF08\u4F60\u6709 {n} \u6B21\u514D\u8D39\u4FEE\u6539\uFF09","address.freeAfter":"\u4E4B\u540E\u6539\u5730\u5740\u8981\u7528\u5730\u5740\u6539\u540D\u5361","address.card":"\u7528\u6389 1 \u5F20\u5730\u5740\u6539\u540D\u5361","address.cardHave":"\u4F60\u6709 {n} \u5F20","address.need":"\u6539\u5730\u5740\u8981 1 \u5F20\u5730\u5740\u6539\u540D\u5361\uFF0C\u4F60\u8FD8\u6CA1\u6709","address.price":"{price} \u79EF\u5206 \xB7 \u4F59\u989D {balance}","address.soldout":"\u73B0\u5728\u4E70\u4E0D\u5230\u5730\u5740\u6539\u540D\u5361","address.cooldown":"\u4E24\u6B21\u6539\u5730\u5740\u81F3\u5C11\u9694 {days} \u5929","address.cooldownUntil":"{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539","address.go":"\u6539\u5730\u5740","address.goCard":"\u7528\u5361\u6539\u5730\u5740","address.goBuy":"\u7528 {price} \u79EF\u5206\u4E70\u4E00\u5F20\u5E76\u6539","address.shop":"\u53BB\u5546\u5E97\u770B\u770B","address.done":"\u4E3B\u9875\u5730\u5740\u6539\u6210\u4E86 {url}","address.loadFailed":"\u5730\u5740\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","address.errTaken":"\u8FD9\u4E2A\u5730\u5740\u521A\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u6362\u4E00\u4E2A\u5427\u3002","address.errNeedCard":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u4E86\uFF0C\u6539\u5730\u5740\u8981\u4E00\u5F20\u5730\u5740\u6539\u540D\u5361\u3002","address.errCooldown":"\u8FD8\u6CA1\u5230\u80FD\u6539\u7684\u65F6\u5019\uFF1A{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539\u3002","address.errPoints":"\u79EF\u5206\u4E0D\u591F\u4E70\u8FD9\u5F20\u5361\u3002","address.errBought":"\u5361\u5DF2\u7ECF\u4E70\u597D\u653E\u8FDB\u80CC\u5305\u4E86\uFF0C\u4F46\u5730\u5740\u6CA1\u6539\u6210\uFF1A{reason}","address.errSoldout":"\u5730\u5740\u6539\u540D\u5361\u521A\u4E0B\u67B6\u4E86\uFF0C\u73B0\u5728\u4E70\u4E0D\u5230\u3002","address.errLimit":"\u5730\u5740\u6539\u540D\u5361\u5DF2\u7ECF\u4E70\u5230\u4E0A\u9650\u4E86\u3002","address.errUnknown":"\u6CA1\u786E\u8BA4\u5230\u6539\u6CA1\u6539\u6210\uFF0C\u7A0D\u540E\u5237\u65B0\u770B\u770B\u518D\u8BF4\u3002","backpack.addressCard":"\u5730\u5740\u6539\u540D\u5361","backpack.addressCard.desc":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u540E\uFF0C\u6539\u4E00\u6B21\u4E3B\u9875\u5730\u5740\u7528\u4E00\u5F20\u3002\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u8D70\u3002","backpack.addressCard.use":"\u53BB\u6539\u5730\u5740","member.title":"\u4F1A\u5458","member.desc":"\u5F53\u524D\u6863\u4F4D\u3001\u65B9\u6848\u4E0E\u5230\u671F\u65E5","member.upgrade":"\u5347\u7EA7\u4F1A\u5458","member.renew":"\u7EED\u8D39","member.freeName":"\u514D\u8D39\u7248","member.freeHint":"\u5347\u7EA7\u4F1A\u5458\u53EF\u4EE5\u83B7\u5F97\u66F4\u591A AI \u989D\u5EA6","member.expires":"{date} \u5230\u671F","member.noExpiry":"\u957F\u671F\u6709\u6548","member.loadFailed":"\u4F1A\u5458\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","session.title":"\u767B\u5F55","session.desc":"\u7BA1\u7406\u8FD9\u53F0\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u72B6\u6001","local.title":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u8D26\u53F7","local.desc":"\u5728\u767B\u5F55\u8FC7\u7684\u8D26\u53F7\u4E4B\u95F4\u5207\u6362","local.current":"\u5F53\u524D","local.switch":"\u5207\u6362","local.add":"\u767B\u5F55\u5176\u4ED6\u8D26\u53F7","local.signOut":"\u9000\u51FA\u767B\u5F55","local.empty":"\u8FD8\u6CA1\u6709\u4FDD\u5B58\u7684\u8D26\u53F7","local.loadFailed":"\u8D26\u53F7\u5217\u8868\u6682\u65F6\u8BFB\u4E0D\u5230","diag.title":"\u8BCA\u65AD\u6570\u636E","diag.desc":"\u5E2E\u52A9\u6211\u4EEC\u6392\u67E5\u95EE\u9898\u3001\u6539\u8FDB Forsion\u3002\u9ED8\u8BA4\u5173\u95ED\u3002","diag.enable":"\u4E0A\u4F20\u8BCA\u65AD\u6570\u636E","diag.enableDesc":"\u6253\u5F00\u540E\uFF0C\u8FD9\u53F0\u7535\u8111\u4F1A\u5B9A\u671F\u4E0A\u4F20\u4E00\u4EFD Forsion \u4FE1\u606F\u5FEB\u7167\u5230\u4F60\u7684 Forsion \u8D26\u53F7\uFF0CForsion \u56E2\u961F\u53EF\u4EE5\u67E5\u770B\u3002\u591A\u4E45\u4E0A\u4F20\u4E00\u6B21\u7531 Forsion \u56E2\u961F\u8BBE\u5B9A\uFF0C\u9ED8\u8BA4\u6BCF\u5929\u4E00\u6B21\u3002\u968F\u65F6\u53EF\u4EE5\u5173\u95ED\u3002","diag.collected":"\u4F1A\u4E0A\u4F20","diag.item.app":"\u5E94\u7528\u4E0E\u7CFB\u7EDF\u7684\u7248\u672C\uFF0C\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57\u3001\u5185\u5B58\u4E0E\u78C1\u76D8\u4F59\u91CF","diag.item.settings":"\u6A21\u578B\u4E0E\u8BED\u97F3\u7684\u9009\u62E9\uFF0C\u540E\u53F0 Agent \u4E0E\u63D2\u4EF6\u8BBE\u7F6E\u91CC\u7684\u5F00\u5173\u548C\u6570\u503C\uFF0CMCP \u670D\u52A1\u4E0E\u6D88\u606F\u901A\u9053\u7684\u540D\u5B57\u548C\u5F00\u5173","diag.item.agents":"Agent \u4E0E\u56E2\u961F\u7684\u914D\u7F6E\uFF08\u540D\u5B57\u3001\u6A21\u578B\u8FD9\u7C7B\u9009\u9879\uFF1B\u63CF\u8FF0\u4E0E\u63D0\u793A\u8BCD\u53EA\u8BB0\u957F\u5EA6\uFF0C\u6B63\u6587\u5F52\u4E0B\u9762\u300C\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55\u300D\u90A3\u4E2A\u5F00\u5173\uFF09","diag.item.plugins":"\u5DF2\u5B89\u88C5\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001\u4E3B\u9898\u548C Space \u7684\u540D\u5B57\u4E0E\u7248\u672C","diag.item.runs":"\u6700\u8FD1 7 \u5929\u7684\u8FD0\u884C\u8BB0\u5F55\uFF1A\u6BCF\u6B21\u8FD0\u884C\u7684\u72B6\u6001\u548C\u62A5\u9519\u539F\u56E0\uFF0C\u6A21\u578B\u8C03\u7528\u4E0E\u5DE5\u5177\u7684\u7528\u91CF\u3001\u8017\u65F6\uFF08\u4E0D\u5E26\u5BF9\u8BDD\u5185\u5BB9\u548C\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\uFF09\uFF0C\u4EE5\u53CA\u5F15\u64CE\u6700\u8FD1\u7684\u8FD0\u884C\u65E5\u5FD7","diag.item.sync":"\u4E91\u540C\u6B65\u7684\u72B6\u6001\uFF1A\u540C\u6B65\u89C4\u5219\u5F00\u5728\u54EA\u51E0\u7C7B\u4E0A\uFF0C\u6700\u8FD1\u51E0\u8F6E\u4E0A\u4F20\u3001\u4E0B\u8F7D\u3001\u5220\u9664\u548C\u51B2\u7A81\u526F\u672C\u7684\u4E2A\u6570\uFF0C\u4EE5\u53CA\u540C\u6B65\u7684\u62A5\u9519\u539F\u56E0\uFF08\u8DEF\u5F84\u4F1A\u906E\u6389\uFF0C\u4E0D\u5E26\u6587\u4EF6\u540D\u548C\u6587\u4EF6\u5185\u5BB9\uFF09","diag.notCollected":"\u4E0D\u4F1A\u4E0A\u4F20\uFF1A\u4FDD\u5B58\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u767B\u5F55\u51ED\u636E\u4E0E API \u5BC6\u94A5\u3001\u7B14\u8BB0\u6587\u4EF6\u3001Agent \u7684\u8D44\u6599\u5E93\u3001\u63D2\u4EF6\u6570\u636E\u3002","diag.sessions":"\u5305\u542B\u4F1A\u8BDD\u5185\u5BB9","diag.sessionsDesc":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u5BF9\u8BDD\uFF1A\u4F60\u548C Agent \u7684\u6D88\u606F\u6587\u5B57\u3001Agent \u7684\u601D\u8003\u8FC7\u7A0B\u548C\u7528\u5230\u7684\u5DE5\u5177\u540D\uFF0C\u5305\u62EC\u56E2\u961F\u6210\u5458\u3001\u8BA8\u8BBA\u3001\u59D4\u6D3E\u5728\u540E\u53F0\u505A\u7684\u90A3\u90E8\u5206\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\u548C\u9644\u4EF6\u672C\u8EAB\u4E0D\u5E26\uFF1B\u6D88\u606F\u91CC\u51FA\u73B0\u7684\u6587\u4EF6\u540D\u3001Agent \u5728\u56DE\u590D\u91CC\u590D\u8FF0\u7684\u7B14\u8BB0\u6216\u6587\u4EF6\u5185\u5BB9\u4F1A\u5728\u5176\u4E2D\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.memory":"\u5305\u542B Agent \u7684\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55","diag.memoryDesc":"\u6BCF\u4E2A Agent \u7684\u4EBA\u8BBE\uFF08\u5305\u62EC\u914D\u7F6E\u91CC\u7684\u63CF\u8FF0\u548C\u5F00\u53D1\u8005\u6307\u4EE4\uFF09\uFF0C\u548C\u5B83\u81EA\u5DF1\u6512\u4E0B\u6765\u7684\u5185\u5BB9\uFF1A\u8BB0\u5FC6\u548C\u8FD8\u6CA1\u6574\u7406\u7684\u8BB0\u5FC6\u5019\u9009\u3001\u8FDB\u5316\u8BB0\u5F55\u3001\u5199\u7ED9\u4F60\u7684\u534F\u4F5C\u8BF4\u660E\u3001\u6700\u8FD1 7 \u5929\u7684\u65E5\u5FD7\u548C\u8BB0\u5FC6\u6574\u7406\u8BB0\u5F55\uFF0C\u4EE5\u53CA\u9879\u76EE\u8BB0\u5FC6\uFF1B\u8FD8\u6709\u56E2\u961F\u7684\u8BBE\u5B9A\u548C\u4F60\u7684\u7528\u6237\u753B\u50CF\u3002\u8FD9\u4E9B\u662F\u4F60\u7ED9 Agent \u548C\u56E2\u961F\u5199\u7684\u8BBE\u5B9A\uFF0C\u548C Agent \u4ECE\u5BF9\u8BDD\u91CC\u8BB0\u4E0B\u7684\u5173\u4E8E\u4F60\u548C\u4F60\u7684\u5DE5\u4F5C\u7684\u4E8B\u5B9E\uFF0C\u6BCF\u6B21\u4E0A\u4F20\u5B83\u4EEC\u5F53\u524D\u7684\u5185\u5BB9\uFF08\u5F88\u957F\u7684\u4F1A\u622A\u65AD\uFF09\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.activity":"\u5305\u542B\u6D3B\u52A8\u65E5\u5FD7","diag.activityDesc":"\u6D3B\u52A8\u8BB0\u5F55\u91CC\u6709\u5BF9\u8BDD\u5F00\u5934\u7684\u51E0\u5341\u4E2A\u5B57\u548C\u7B14\u8BB0\u6587\u4EF6\u540D\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.last":"\u4E0A\u6B21\u4E0A\u4F20\uFF1A{time}","diag.noUpload":"\u8FD8\u6CA1\u6709\u4E0A\u4F20\u8FC7","diag.freq.hour":"\u6BCF\u5C0F\u65F6\u4E00\u6B21","diag.freq.hours":"\u6BCF {n} \u5C0F\u65F6\u4E00\u6B21","diag.freq.day":"\u6BCF\u5929\u4E00\u6B21","diag.freq.days":"\u6BCF {n} \u5929\u4E00\u6B21","diag.freq.manual":"Forsion \u56E2\u961F\u9700\u8981\u65F6\u624D\u91C7\u96C6","diag.retention":"\u4E91\u7AEF\u4FDD\u7559\u8FD9\u53F0\u7535\u8111\u6700\u8FD1 {n} \u5929\u7684\u5FEB\u7167\u3002\u5173\u95ED\u540E\u4E0D\u518D\u4E0A\u4F20\uFF1B\u5DF2\u4E0A\u4F20\u7684\u5FEB\u7167\u4ECD\u7559\u5728\u4E91\u7AEF\uFF0C\u9700\u8981\u5220\u9664\u53EF\u4EE5\u5728\u300C\u53CD\u9988\u300D\u91CC\u544A\u8BC9\u6211\u4EEC\u3002","page.privacy":"\u9690\u79C1\u4E0E\u6570\u636E","privacy.tab":"\u5E2E\u52A9\u6539\u8FDB","privacy.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u5E2E\u52A9\u6539\u8FDB Forsion\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","privacy.needUpdate":"\u8FD9\u4E2A\u7248\u672C\u7684 Forsion \u8FD8\u4E0D\u4F1A\u53D1\u9001\u8FD9\u4E9B\u6570\u636E\uFF0C\u66F4\u65B0 Forsion \u540E\u624D\u4F1A\u751F\u6548\u3002","privacy.devBuild":"\u5F00\u53D1\u7248\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.signInFirst":"\u767B\u5F55\u540E\u624D\u80FD\u5F00\u3002\u6CA1\u767B\u5F55\u65F6\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.improve.title":"\u5E2E\u52A9\u6539\u8FDB Forsion","privacy.improve.desc":"\u53EA\u53D1\u5143\u6570\u636E\uFF0C\u7528\u6765\u5B9A\u4F4D\u6545\u969C\u3001\u770B\u54EA\u91CC\u6162\u3002\u767B\u5F55 Forsion \u8D26\u53F7\u65F6\u624D\u4F1A\u53D1\u9001\uFF0C\u4F46\u4E0D\u5173\u8054\u4F60\u7684\u8D26\u53F7\u3002","privacy.improve.switch":"\u53D1\u9001\u5D29\u6E83\u62A5\u544A\u548C\u4F7F\u7528\u7EDF\u8BA1","privacy.improve.switchHint":"\u5173\u6389\u540E\u7ACB\u523B\u505C\u6B62\u53D1\u9001\uFF0C\u672C\u673A\u8FD8\u6CA1\u53D1\u51FA\u53BB\u7684\u4E5F\u4E00\u5E76\u4E22\u6389\u3002","privacy.policyLink":"\u6536\u96C6\u54EA\u4E9B\u6570\u636E\u3001\u4FDD\u5B58\u591A\u4E45\uFF0C\u89C1\u9690\u79C1\u653F\u7B56","privacy.sent.title":"\u6700\u8FD1 7 \u5929\u53D1\u51FA\u53BB\u7684\u5185\u5BB9","privacy.sent.hint":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002","privacy.sent.last":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002\u4E0A\u6B21\u53D1\u9001\uFF1A{time}","privacy.sent.view":"\u67E5\u770B","privacy.sent.empty":"\u6700\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u53D1\u9001\u8FC7\u3002","privacy.delete.title":"\u5220\u9664\u5DF2\u53D1\u9001\u7684\u6570\u636E","privacy.delete.hint":"\u6309\u8FD9\u53F0\u8BBE\u5907\u7684\u5B89\u88C5\u6807\u8BC6\u5220\u6389\u670D\u52A1\u5668\u4E0A\u7684\u5168\u90E8\u8BB0\u5F55\uFF0C\u5E76\u6362\u4E00\u4E2A\u65B0\u6807\u8BC6\u3002","privacy.delete.button":"\u5220\u9664","privacy.delete.confirm":"\u786E\u8BA4\u5220\u9664","privacy.delete.done":"\u5DF2\u5220\u9664\uFF0C\u5E76\u6362\u4E86\u65B0\u7684\u5B89\u88C5\u6807\u8BC6\u3002","privacy.delete.failed":"\u6CA1\u5220\u6210\uFF1A{reason}","privacy.installId":"\u5B89\u88C5\u6807\u8BC6 {id} \xB7 \u548C\u4F60\u7684\u8D26\u53F7\u65E0\u5173","diag.uploadNow":"\u7ACB\u5373\u4E0A\u4F20","diag.uploaded":"\u5DF2\u4E0A\u4F20","diag.failed":"\u4E0A\u4F20\u5931\u8D25\uFF1A{reason}","quota.ai.title":"AI \u989D\u5EA6","quota.ai.desc":"\u4ECA\u65E5\u548C\u672C\u5468\u5404\u8FD8\u5269\u591A\u5C11\uFF1B\u7528\u5B8C\u540E\u53EF\u4EE5\u7528\u989D\u5EA6\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u7528\u79EF\u5206\u7EE7\u7EED","quota.resetDaily":"\u6BCF\u5929 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","quota.resetWeekly":"{date} 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","card.title":"\u989D\u5EA6\u91CD\u7F6E\u5361","card.desc":"\u628A\u4ECA\u65E5\u548C\u672C\u5468\u7684 AI \u989D\u5EA6\u6062\u590D\u5230 100%","card.owned":"\u6301\u6709 {n} \u5F20","card.use":"\u4F7F\u7528\u4E00\u5F20","card.useConfirm":"\u786E\u8BA4\u4F7F\u7528","card.used":"\u5DF2\u4F7F\u7528 1 \u5F20\u989D\u5EA6\u91CD\u7F6E\u5361","card.left":"\u8FD8\u5269 {n} \u5F20","card.noneHint":"\u6CA1\u6709\u989D\u5EA6\u91CD\u7F6E\u5361\u4E86\u3002\u9080\u8BF7\u3001\u6210\u5C31\u548C\u6D3B\u52A8\u5956\u52B1\u91CC\u4F1A\u53D1\u653E\u3002","fallback.title":"\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED","fallback.desc":"\u6253\u5F00\u540E\uFF0C\u989D\u5EA6\u7528\u5B8C\u65F6\u8D85\u51FA\u7684\u7528\u91CF\u4ECE\u79EF\u5206\u4F59\u989D\u6263\uFF1B\u540E\u53F0\u4EFB\u52A1\u4E0D\u4F1A\u6263\u79EF\u5206\u3002","fallback.balance":"\u79EF\u5206\u4F59\u989D {n}","fallback.unknown":"\u72B6\u6001\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5","quota.out.cardOrPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.points":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.cardOrTopUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u5145\u503C\u79EF\u5206\u540E\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.topUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u5145\u503C\u79EF\u5206\u540E\uFF0C\u53EF\u4EE5\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.card":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\u3002","quota.out.usingPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6B63\u5728\u7528\u79EF\u5206\u7EE7\u7EED\u3002","quota.out.pointsGone":"AI \u989D\u5EA6\u548C\u79EF\u5206\u90FD\u7528\u5B8C\u4E86\u3002\u5145\u503C\u79EF\u5206\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u53EF\u4EE5\u7EE7\u7EED\u3002","err.pointsFallbackUnavailable":"\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u7A0D\u540E\u518D\u8BD5","member.modelsAll":"\u53EF\u7528\u5168\u90E8\u6A21\u578B","member.modelsCap":"\u53EF\u7528\u500D\u7387\u4E0D\u8D85\u8FC7 {cap}\xD7 \u7684\u6A21\u578B","points.title":"\u79EF\u5206","points.desc":"\u79EF\u5206\u53EF\u4EE5\u5728\u5546\u5E97\u5151\u6362\u7269\u54C1\uFF0C\u4E5F\u80FD\u5728 AI \u989D\u5EA6\u7528\u5B8C\u540E\u7EE7\u7EED\u4F7F\u7528","points.balance":"\u4F59\u989D","points.balanceFailed":"\u4F59\u989D\u6682\u65F6\u62FF\u4E0D\u5230","points.recharge":"\u5145\u503C\u79EF\u5206","bg.title":"\u540E\u53F0\u989D\u5EA6","bg.desc":"Muse \u4E0E\u81EA\u52A8\u5316\u4F7F\u7528\uFF0C\u548C AI \u989D\u5EA6\u5206\u5F00\u8BA1\u7B97","bg.autoMain":"\u7528\u5B8C\u540E\u6539\u7528 AI \u989D\u5EA6\u7EE7\u7EED","bg.autoMainDesc":"\u5173\u7740\u65F6\uFF0C\u540E\u53F0\u989D\u5EA6\u7528\u5B8C\u540E Muse \u4E0E\u81EA\u52A8\u5316\u4F1A\u6682\u505C","bg.convert":"\u4ECE AI \u989D\u5EA6\u8F6C\u5165","bg.convertDesc":"\u6309 AI \u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B\u8F6C\u5165\uFF0C\u672C\u5468\u671F\u5185\u6709\u6548","bg.convertConfirm":"\u786E\u8BA4\u8F6C\u5165 {pct}%","bg.converted":"\u5DF2\u4ECE AI \u989D\u5EA6\u8F6C\u5165 {pct}%","invite.title":"\u9080\u8BF7\u4E0E\u5151\u6362","invite.desc":"\u9080\u8BF7\u597D\u53CB\u6CE8\u518C\uFF0C\u6216\u5151\u6362\u4F60\u6536\u5230\u7684\u7801","invite.myCode":"\u6211\u7684\u9080\u8BF7\u7801","invite.count":"\u5DF2\u9080\u8BF7 {n} \u4EBA","invite.copyCode":"\u590D\u5236\u9080\u8BF7\u7801","invite.copyLink":"\u590D\u5236\u9080\u8BF7\u94FE\u63A5","invite.loadFailed":"\u9080\u8BF7\u7801\u6682\u65F6\u62FF\u4E0D\u5230","invite.claim":"\u586B\u5199\u9080\u8BF7\u7801","invite.claimDesc":"\u6CE8\u518C\u540E 7 \u5929\u5185\uFF0C\u53EF\u4EE5\u8865\u586B\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimPlaceholder":"\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimSubmit":"\u63D0\u4EA4","invite.claimed":"\u9080\u8BF7\u7801\u5DF2\u751F\u6548","redeem.title":"\u5151\u6362\u7801","redeem.desc":"\u5151\u6362\u79EF\u5206\u3001\u4F1A\u5458\u6216\u5176\u4ED6\u5956\u52B1","redeem.placeholder":"\u8F93\u5165\u5151\u6362\u7801","redeem.submit":"\u5151\u6362","redeem.success":"\u5151\u6362\u6210\u529F","redeem.successWith":"\u5151\u6362\u6210\u529F\uFF1A{what}","redeem.gotPoints":"{n} \u79EF\u5206","redeem.gotMembership":"\u4F1A\u5458","sec.methods.title":"\u767B\u5F55\u65B9\u5F0F","sec.methods.desc":"\u624B\u673A\u548C\u90AE\u7BB1\u53EF\u4EE5\u7528\u6765\u767B\u5F55\u3001\u627E\u56DE\u5BC6\u7801","sec.bind":"\u7ED1\u5B9A","sec.change":"\u66F4\u6362","sec.phone":"\u624B\u673A\u53F7","sec.email":"\u90AE\u7BB1\u5730\u5740","sec.newPhone":"\u65B0\u624B\u673A\u53F7","sec.newEmail":"\u65B0\u90AE\u7BB1\u5730\u5740","sec.phonePlaceholder":"\u4E2D\u56FD\u5927\u9646\u53F7\u7801\u76F4\u63A5\u586B\uFF0C\u5176\u4ED6\u5730\u533A\u5E26 +\u533A\u53F7","sec.emailPlaceholder":"name@example.com","sec.code":"\u9A8C\u8BC1\u7801","sec.codePlaceholder":"\u8F93\u5165\u9A8C\u8BC1\u7801","sec.sendCode":"\u53D1\u9001\u9A8C\u8BC1\u7801","sec.resendIn":"{s} \u79D2\u540E\u91CD\u53D1","sec.codeSent":"\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001","sec.bindSubmit":"\u786E\u8BA4\u7ED1\u5B9A","sec.phoneBound":"\u624B\u673A\u5DF2\u7ED1\u5B9A","sec.emailBound":"\u90AE\u7BB1\u5DF2\u7ED1\u5B9A","sec.devices.title":"\u767B\u5F55\u8BBE\u5907","sec.devices.desc":"\u62C5\u5FC3\u8D26\u53F7\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u53EF\u4EE5\u8BA9\u6240\u6709\u8BBE\u5907\u91CD\u65B0\u767B\u5F55","sec.logoutAll":"\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDesc":"\u5305\u62EC\u8FD9\u53F0\u8BBE\u5907\uFF0C\u6240\u6709\u8BBE\u5907\u90FD\u8981\u91CD\u65B0\u767B\u5F55","sec.logoutAllConfirm":"\u786E\u8BA4\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDone":"\u5DF2\u9000\u51FA\u6240\u6709\u8BBE\u5907","pw.title":"\u5BC6\u7801","pw.desc":"{min}\u2013{max} \u4F4D\uFF0C\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u5927\u5199\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\uFF0C\u4E0D\u80FD\u6709\u7A7A\u683C","pw.change":"\u4FEE\u6539\u5BC6\u7801","pw.modeLabel":"\u4FEE\u6539\u65B9\u5F0F","pw.mode.current":"\u7528\u5F53\u524D\u5BC6\u7801","pw.mode.code":"\u7528\u9A8C\u8BC1\u7801","pw.current":"\u5F53\u524D\u5BC6\u7801","pw.currentRequired":"\u8BF7\u8F93\u5165\u5F53\u524D\u5BC6\u7801","pw.new":"\u65B0\u5BC6\u7801","pw.confirm":"\u518D\u8F93\u4E00\u6B21\u65B0\u5BC6\u7801","pw.mismatch":"\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4","pw.submit":"\u4FEE\u6539\u5BC6\u7801","pw.submitReset":"\u8BBE\u7F6E\u65B0\u5BC6\u7801","pw.changed":"\u5BC6\u7801\u5DF2\u66F4\u65B0","pw.noPasswordYet":"\u8FD9\u4E2A\u8D26\u53F7\u8FD8\u6CA1\u6709\u8BBE\u7F6E\u5BC6\u7801\uFF0C\u8BF7\u6539\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u3002","pw.codeNeedsContact":"\u7ED1\u5B9A\u624B\u673A\u6216\u90AE\u7BB1\u540E\uFF0C\u624D\u80FD\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u5BC6\u7801\u3002","pw.via":"\u9A8C\u8BC1\u7801\u53D1\u5230","pw.codeTo":"\u9A8C\u8BC1\u7801\u4F1A\u53D1\u5230 {target}","pw.rulesLabel":"\u5BC6\u7801\u89C4\u5219","pw.req.length":"{min}\u2013{max} \u4F4D","pw.req.lower":"\u542B\u5C0F\u5199\u5B57\u6BCD","pw.req.upper":"\u542B\u5927\u5199\u5B57\u6BCD","pw.req.special":"\u542B\u7279\u6B8A\u5B57\u7B26","pw.req.space":"\u4E0D\u542B\u7A7A\u683C","pw.rule.format":"\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E","pw.rule.min":"\u5BC6\u7801\u81F3\u5C11 8 \u4F4D","pw.rule.max":"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D","pw.rule.space":"\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C","pw.rule.lower":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD","pw.rule.upper":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD","pw.rule.special":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26","del.title":"\u6CE8\u9500\u8D26\u53F7","del.desc":"\u6C38\u4E45\u5220\u9664\u8D26\u53F7\u548C\u5168\u90E8\u6570\u636E\uFF0C\u65E0\u6CD5\u6062\u590D","del.start":"\u6CE8\u9500\u8D26\u53F7","del.warn":"\u6CE8\u9500\u540E\uFF0C\u8D26\u53F7\u3001\u79EF\u5206\u3001\u4F1A\u5458\u3001\u4E91\u7A7A\u95F4\u548C\u5168\u90E8\u6570\u636E\u90FD\u4F1A\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u627E\u56DE\u3002","del.methodLabel":"\u9A8C\u8BC1\u65B9\u5F0F","del.byCode":"\u9A8C\u8BC1\u7801","del.byPassword":"\u5BC6\u7801","del.codeLabel":"\u53D1\u5230 {target} \u7684\u9A8C\u8BC1\u7801","del.passwordLabel":"\u8D26\u53F7\u5BC6\u7801","del.submit":"\u6CE8\u9500\u8D26\u53F7","del.confirm":"\u786E\u8BA4\u6C38\u4E45\u6CE8\u9500","del.done":"\u8D26\u53F7\u5DF2\u6CE8\u9500","usage.overview.title":"\u7528\u91CF\u6982\u89C8","usage.overview.desc":"\u6240\u9009\u65F6\u95F4\u6BB5\u5185\u7684\u8BF7\u6C42\u4E0E AI \u989D\u5EA6\u6D88\u8017","usage.range":"\u65F6\u95F4\u8303\u56F4","usage.days":"{n} \u5929","usage.requests":"\u8BF7\u6C42\u6B21\u6570","usage.successRate":"\u6210\u529F\u7387","usage.consumption":"AI \u989D\u5EA6\u6D88\u8017","usage.ofToday":"\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650","usage.unlimitedNote":"\u4F60\u7684 AI \u989D\u5EA6\u4E0D\u9650\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.noLimitNote":"\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u4E3A 0 \u6216\u6682\u65F6\u62FF\u4E0D\u5230\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.byModel.title":"\u6309\u6A21\u578B","usage.byModel.desc":"\u5404\u6A21\u578B\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.byApp.title":"\u6309\u5E94\u7528","usage.byApp.desc":"\u5404\u5E94\u7528\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.col.model":"\u6A21\u578B","usage.col.app":"\u5E94\u7528","usage.col.requests":"\u8BF7\u6C42","usage.col.consumption":"\u989D\u5EA6\u6D88\u8017","usage.empty":"\u8FD9\u6BB5\u65F6\u95F4\u6CA1\u6709\u7528\u91CF","usage.appUnknown":"\u5176\u4ED6","usage.recent.title":"\u6700\u8FD1\u6D88\u8017","usage.recent.desc":"\u6BCF\u6B21\u8C03\u7528\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B","usage.recentEmpty":"\u8FD8\u6CA1\u6709\u6D88\u8017\u8BB0\u5F55","usage.failed":"\u5931\u8D25","usage.shown":"\u5DF2\u663E\u793A {shown} / {total} \u6761","fb.list.title":"\u6211\u7684\u53CD\u9988","fb.list.desc":"\u63D0\u4EA4\u8FC7\u7684\u95EE\u9898\u548C\u5EFA\u8BAE\uFF0C\u56DE\u590D\u4F1A\u663E\u793A\u5728\u8FD9\u91CC","fb.new":"\u65B0\u5EFA\u53CD\u9988","fb.empty":"\u8FD8\u6CA1\u6709\u53CD\u9988","fb.untitled":"\u672A\u547D\u540D\u53CD\u9988","fb.unread":"\u6709\u65B0\u56DE\u590D","fb.shown":"\u5DF2\u663E\u793A {n} \u6761","fb.submitted":"\u5DF2\u63D0\u4EA4\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D","fb.descLabel":"\u63CF\u8FF0\u95EE\u9898\u6216\u5EFA\u8BAE","fb.descPlaceholder":"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u4F60\u671F\u671B\u600E\u6837\u2026\u2026","fb.imagesHint":"\u6700\u591A\u9644 {n} \u5F20\u622A\u56FE\uFF08\u6BCF\u5F20\u4E0D\u8D85\u8FC7 5MB\uFF09\uFF0C\u53EF\u4EE5\u7C98\u8D34\u6216\u62D6\u8FDB\u6765\u3002","fb.addImages":"\u6DFB\u52A0\u622A\u56FE","fb.removeImage":"\u79FB\u9664\u8FD9\u5F20\u56FE","fb.submit":"\u63D0\u4EA4","fb.back":"\u8FD4\u56DE\u5217\u8868","fb.you":"\u4F60","fb.support":"Forsion \u56E2\u961F","fb.attachment":"\u9644\u4EF6","fb.imagePreview":"\u67E5\u770B\u5927\u56FE","fb.closedNote":"\u8FD9\u4E2A\u5DE5\u5355\u5DF2\u5173\u95ED\uFF0C\u4E0D\u80FD\u518D\u56DE\u590D\u3002\u6709\u65B0\u95EE\u9898\u8BF7\u65B0\u5EFA\u53CD\u9988\u3002","fb.replyPlaceholder":"\u56DE\u590D\u2026","fb.replySend":"\u53D1\u9001\u56DE\u590D","fb.replySent":"\u56DE\u590D\u5DF2\u53D1\u9001","fb.status.open":"\u5F85\u5904\u7406","fb.status.in_progress":"\u5904\u7406\u4E2D","fb.status.resolved":"\u5DF2\u89E3\u51B3","fb.status.closed":"\u5DF2\u5173\u95ED","err.accountGone":"\u8FD9\u4E2A\u8D26\u53F7\u5DF2\u9000\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.adminCannotDelete":"\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500","err.avatarInvalid":"\u8FD9\u5F20\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765\uFF0C\u6362\u4E00\u5F20\u8BD5\u8BD5","err.avatarTooLarge":"\u56FE\u7247\u592A\u5927\u4E86\uFF0C\u6362\u4E00\u5F20\u5C0F\u4E00\u70B9\u7684","err.backgroundUnavailable":"\u540E\u53F0\u989D\u5EA6\u6682\u65F6\u4E0D\u53EF\u7528","err.captcha":"\u9700\u8981\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u4EBA\u673A\u9A8C\u8BC1","err.codeCooldown":"\u53D1\u9001\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.codeInvalid":"\u9A8C\u8BC1\u7801\u4E0D\u5BF9\u6216\u5DF2\u8FC7\u671F","err.codeRequired":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","err.codeSendFailed":"\u9A8C\u8BC1\u7801\u6CA1\u53D1\u51FA\u53BB\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.currentPasswordWrong":"\u5F53\u524D\u5BC6\u7801\u4E0D\u5BF9","err.deleteTargetInvalid":"\u9A8C\u8BC1\u7801\u53EA\u80FD\u53D1\u5230\u8D26\u53F7\u7ED1\u5B9A\u7684\u624B\u673A\u6216\u90AE\u7BB1","err.deleteVerifyFailed":"\u9A8C\u8BC1\u6CA1\u901A\u8FC7\uFF0C\u8D26\u53F7\u6CA1\u6709\u6CE8\u9500","err.emailInUse":"\u8FD9\u4E2A\u90AE\u7BB1\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.emailInvalid":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.featureDisabled":"\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u5173\u95ED\u4E86","err.feedbackEmpty":"\u8BF7\u5199\u4E00\u4E0B\u95EE\u9898\u6216\u5EFA\u8BAE","err.feedbackTooLong":"\u63CF\u8FF0\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.generic":"\u64CD\u4F5C\u6CA1\u6709\u6210\u529F\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.imageRead":"\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765","err.imageTooLarge":"\u6BCF\u5F20\u56FE\u7247\u4E0D\u80FD\u8D85\u8FC7 5MB","err.imageType":"\u53EA\u80FD\u6DFB\u52A0\u56FE\u7247","err.insufficientMainQuota":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6","err.insufficientPoints":"\u79EF\u5206\u4E0D\u591F","err.invalidInviteCode":"\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548","err.inviteAlreadyUsed":"\u4F60\u5DF2\u7ECF\u7528\u8FC7\u9080\u8BF7\u7801\u4E86","err.inviteEmpty":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","err.inviteOwnCode":"\u4E0D\u80FD\u586B\u81EA\u5DF1\u7684\u9080\u8BF7\u7801","err.inviteWindowExpired":"\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F","err.loginCodeExpired":"\u767B\u5F55\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.loginInProgress":"\u6B63\u5728\u767B\u5F55\u4E2D","err.loginTimeout":"\u767B\u5F55\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","err.loginUnsupported":"\u8FD9\u4E2A\u4E91\u7AEF\u4E0D\u652F\u6301\u684C\u9762\u7AEF\u767B\u5F55","err.network":"\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","err.noCloudUrl":"\u8BF7\u5148\u5728\u300C\u8FDE\u63A5\u300D\u91CC\u586B\u5199\u4E91\u7AEF\u5730\u5740","err.noResetCard":"\u6CA1\u6709\u53EF\u7528\u7684\u989D\u5EA6\u91CD\u7F6E\u5361","err.openFailed":"\u6CA1\u80FD\u6253\u5F00\u6D4F\u89C8\u5668","err.passwordRequired":"\u8BF7\u586B\u5199\u5F53\u524D\u5BC6\u7801\u548C\u65B0\u5BC6\u7801","err.phoneInUse":"\u8FD9\u4E2A\u624B\u673A\u53F7\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.phoneInvalid":"\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u5BF9\uFF08\u5176\u4ED6\u5730\u533A\u8BF7\u5E26 +\u533A\u53F7\uFF09","err.redeemEmpty":"\u8BF7\u8F93\u5165\u5151\u6362\u7801","err.redeemExpired":"\u5151\u6362\u7801\u5DF2\u8FC7\u671F","err.redeemInactive":"\u5151\u6362\u7801\u5DF2\u505C\u7528","err.redeemNotFound":"\u5151\u6362\u7801\u4E0D\u5B58\u5728","err.redeemUsedUp":"\u5151\u6362\u7801\u5DF2\u88AB\u7528\u5B8C","err.redeemUserLimit":"\u4F60\u5DF2\u7ECF\u5151\u6362\u8FC7\u8FD9\u4E2A\u7801\u4E86","err.replyEmpty":"\u8BF7\u8F93\u5165\u56DE\u590D\u5185\u5BB9","err.replyTooLong":"\u56DE\u590D\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.server":"\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF08{status}\uFF09\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.session":"\u767B\u5F55\u72B6\u6001\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.signedOut":"\u8BF7\u5148\u767B\u5F55 Forsion","err.targetInvalid":"\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.ticketNotFound":"\u8FD9\u6761\u53CD\u9988\u4E0D\u5B58\u5728\u6216\u5DF2\u5220\u9664","err.webPageGone":"\u8FD9\u4E2A\u7F51\u9875\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0B\u7EBF","err.listingGone":"\u8FD9\u4E2A\u7F51\u9875\u6CA1\u6709\u4E0A\u67B6\u7533\u8BF7","err.listingSummary":"\u8BF7\u586B\u5199\u5546\u5E97\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09","err.tooFrequent":"\u64CD\u4F5C\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.tooManyImages":"\u6700\u591A\u6DFB\u52A0 5 \u5F20\u56FE\u7247","err.unavailable":"\u8FD9\u4E2A\u7248\u672C\u8FD8\u4E0D\u652F\u6301\u8FD9\u4E2A\u64CD\u4F5C\uFF0C\u8BF7\u66F4\u65B0 Forsion","profile.unsupported":"\u8FD9\u4E2A\u670D\u52A1\u7AEF\u8FD8\u6CA1\u6709\u4E2A\u4EBA\u4E3B\u9875\u529F\u80FD","profile.state.private":"\u4EC5\u81EA\u5DF1\u53EF\u89C1","profile.state.public":"\u5DF2\u516C\u5F00","profile.state.privateDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55","profile.linkUnavailable":"\u6682\u672A\u83B7\u53D6\u5230\u516C\u5F00\u94FE\u63A5","profile.decorate":"\u88C5\u9970","profile.publish":"\u516C\u5F00\u4E3B\u9875","profile.makePrivate":"\u8BBE\u4E3A\u79C1\u6709","profile.copyLink":"\u590D\u5236\u94FE\u63A5","profile.openPublic":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u516C\u5F00\u4E3B\u9875","profile.nowPublic":"\u4E3B\u9875\u5DF2\u516C\u5F00","profile.nowPrivate":"\u4E3B\u9875\u5DF2\u8BBE\u4E3A\u79C1\u6709\uFF0C\u516C\u5F00\u5730\u5740\u4E0D\u518D\u80FD\u6253\u5F00","profile.bio":"\u7B80\u4ECB","profile.bioPlaceholder":"\u5199\u4E00\u53E5\u7B80\u4ECB","profile.linkAdd":"\u6DFB\u52A0\u94FE\u63A5","profile.linkRemove":"\u79FB\u9664\u94FE\u63A5","profile.linkInvalid":"\u94FE\u63A5\u8981\u4EE5 http:// \u6216 https:// \u5F00\u5934\uFF0C\u6216\u76F4\u63A5\u5199\u57DF\u540D","profile.joined":"{date}\u52A0\u5165","profile.stat.tokens":"\u7D2F\u8BA1 Token","profile.stat.activeDays":"\u6D3B\u8DC3\u5929\u6570","profile.stat.longest":"\u6700\u957F\u8FDE\u7EED","profile.stat.current":"\u5F53\u524D\u8FDE\u7EED","profile.stat.installs":"\u4F5C\u54C1\u88AB\u5B89\u88C5","profile.unit.days":"\u5929","profile.works":"\u7CBE\u9009\u4F5C\u54C1","profile.worksPick":"\u9009\u62E9","profile.worksEmpty":"\u8FD8\u6CA1\u6709\u4E0A\u67B6\u7684\u4F5C\u54C1\u3002\u4E0A\u67B6\u5230\u5546\u5E97\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\uFF0C\u53EF\u4EE5\u653E\u5230\u8FD9\u91CC\u3002","profile.worksNone":"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u653E\u4E0A\u4E3B\u9875\u7684\u4F5C\u54C1\u3002\u4F5C\u54C1\u4E0A\u67B6\u5230\u5546\u5E97\u3001\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","profile.worksPicked":"\u5DF2\u9009 {n} / {max} \u4EF6","profile.worksAuto":"\u4E0D\u9009\u7684\u8BDD\uFF0C\u6309\u5B89\u88C5\u91CF\u81EA\u52A8\u53D6\u524D\u51E0\u4EF6","profile.goSubmit":"\u53BB\u6295\u7A3F","profile.workInstalls":"{n} \u6B21\u5B89\u88C5","profile.workVisits":"{n} \u6B21\u8BBF\u95EE","profile.work.skill":"\u6280\u80FD","profile.work.agent":"Agent","profile.work.plugin":"\u63D2\u4EF6","profile.work.space":"Space","profile.work.theme":"\u4E3B\u9898","profile.work.note":"\u7B14\u8BB0\u63D2\u4EF6","profile.work.webapp":"\u7F51\u9875\u5E94\u7528","profile.activity":"\u6D3B\u52A8","profile.activityDays":"\u8FC7\u53BB\u4E00\u5E74\u6709 {n} \u5929\u5728\u7528","profile.less":"\u5C11","profile.more":"\u591A","profile.badges":"\u5FBD\u7AE0","profile.badgesEmpty":"\u8FD8\u6CA1\u6709\u5FBD\u7AE0\u3002\u8FDE\u7EED\u4F7F\u7528\u3001\u4E0A\u67B6\u4F5C\u54C1\u3001\u9080\u8BF7\u670B\u53CB\u90FD\u4F1A\u70B9\u4EAE\u3002","profile.badge.early":"\u65E9\u671F\u7528\u6237","profile.badge.streak":"\u8FDE\u7EED 30 \u5929","profile.badge.author":"\u4F5C\u8005","profile.badge.inviter":"\u9080\u8BF7\u8FBE\u4EBA","profile.badge.event":"\u6D3B\u52A8\u7EAA\u5FF5","profile.badgeSub.early":"{value} \u5E74\u52A0\u5165","profile.badgeSub.streak":"\u6700\u957F\u8FDE\u7EED {value} \u5929","profile.badgeSub.author":"\u4E0A\u67B6\u4E86 {value} \u4EF6\u4F5C\u54C1","profile.badgeSub.inviter":"\u9080\u8BF7\u4E86 {value} \u4F4D\u670B\u53CB","profile.badgeSub.event":"\u53C2\u52A0\u8FC7 Forsion \u7684\u6D3B\u52A8{value}","profile.insights":"\u6D1E\u5BDF","profile.insightsEmpty":"\u7528\u5F97\u8FD8\u4E0D\u591F\u591A\uFF0C\u8FC7\u51E0\u5929\u518D\u6765\u770B\u3002","profile.insightModel":"\u6700\u5E38\u7528\u6A21\u578B","profile.insightHours":"\u6700\u6D3B\u8DC3\u65F6\u6BB5","profile.deco.skin":"\u516C\u5F00\u9875\u7684\u914D\u8272","profile.deco.mode":"\u516C\u5F00\u9875\u7684\u660E\u6697","profile.deco.publicHint":"\u8FD9\u4E24\u9879\u53EA\u7BA1\u8BBF\u5BA2\u5728\u516C\u5F00\u9875\u4E0A\u770B\u5230\u7684\u3002\u5728\u8FD9\u91CC\uFF0C\u4E3B\u9875\u8DDF Forsion \u5F53\u524D\u7684\u4E3B\u9898\u8D70\u3002","profile.deco.cover":"\u5C01\u9762","profile.deco.frame":"\u5934\u50CF\u6846","profile.deco.modules":"\u6A21\u5757","profile.skin.cream":"\u7ECF\u5178","profile.skin.coral":"\u73CA\u745A","profile.skin.teal":"\u67D4\u9752","profile.skin.lavender":"\u85B0\u8863\u8349","profile.mode.auto":"\u8DDF\u968F\u8BBF\u5BA2","profile.mode.light":"\u6D45\u8272","profile.mode.dark":"\u6DF1\u8272","profile.cover.none":"\u65E0","profile.cover.mist":"\u6668\u96FE","profile.cover.contour":"\u7B49\u9AD8\u7EBF","profile.cover.dots":"\u7F51\u70B9","profile.frame.none":"\u65E0","profile.frame.ring":"\u7EC6\u73AF","profile.frame.pro":"\u4F1A\u5458\u73AF","profile.frameProHint":"\u4F1A\u5458\u73AF\u662F\u4ED8\u8D39\u4F1A\u5458\u4E13\u5C5E\u3002","profile.col.show":"\u663E\u793A","profile.col.public":"\u516C\u5F00","profile.moveUp":"\u4E0A\u79FB","profile.moveDown":"\u4E0B\u79FB","profile.modulesHint":"\u300C\u663E\u793A\u300D\u51B3\u5B9A\u4E3B\u9875\u4E0A\u6709\u6CA1\u6709\u8FD9\u4E00\u5757\uFF1B\u300C\u516C\u5F00\u300D\u51B3\u5B9A\u8BBF\u5BA2\u80FD\u4E0D\u80FD\u770B\u5230\uFF0C\u4E3B\u9875\u516C\u5F00\u540E\u624D\u8D77\u4F5C\u7528\u3002","profile.mod.stats":"\u6570\u636E","profile.mod.works":"\u7CBE\u9009\u4F5C\u54C1","profile.mod.activity":"\u6D3B\u52A8","profile.mod.badges":"\u5FBD\u7AE0","profile.mod.insights":"\u6D1E\u5BDF","profile.modDesc.stats":"\u7D2F\u8BA1 Token\u3001\u6D3B\u8DC3\u5929\u6570\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4F5C\u54C1\u5B89\u88C5\u91CF","profile.modDesc.works":"\u4F60\u4E0A\u67B6\u7684\u4F5C\u54C1\uFF0C\u6700\u591A 6 \u4EF6","profile.modDesc.activity":"\u8FC7\u53BB\u4E00\u5E74\u6BCF\u5929\u7528\u6CA1\u7528\u3001\u7528\u5F97\u591A\u4E0D\u591A\uFF08\u53EA\u6709\u6DF1\u6D45\uFF0C\u6CA1\u6709\u5177\u4F53\u6570\u5B57\uFF09","profile.modDesc.badges":"\u52A0\u5165\u5E74\u4EFD\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4E0A\u67B6\u3001\u9080\u8BF7\u3001\u6D3B\u52A8","profile.modDesc.insights":"\u6700\u5E38\u7528\u7684\u6A21\u578B\u3001\u6700\u6D3B\u8DC3\u7684\u65F6\u6BB5","profile.publishDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u8FD9\u4E2A\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55\u3002\u4E0B\u9762\u6BCF\u4E00\u5757\u53EF\u4EE5\u5355\u72EC\u51B3\u5B9A\u7ED9\u4E0D\u7ED9\u8BBF\u5BA2\u770B\u3002","profile.publishNever":"\u5934\u50CF\u3001\u6635\u79F0\u3001\u7528\u6237\u540D\u3001\u7B80\u4ECB\u548C\u94FE\u63A5\u4F1A\u4E00\u8D77\u516C\u5F00\u3002\u90AE\u7BB1\u3001\u624B\u673A\u53F7\u3001\u4F1A\u5458\u5230\u671F\u65E5\u3001\u79EF\u5206\u548C\u989D\u5EA6\u4E0D\u4F1A\u51FA\u73B0\u5728\u4E3B\u9875\u4E0A\u3002","profile.publishConfirm":"\u516C\u5F00","profile.blocked.machineUsername":"\u4F60\u73B0\u5728\u7684\u7528\u6237\u540D\u662F\u7CFB\u7EDF\u751F\u6210\u7684\uFF0C\u91CC\u9762\u5E26\u7740\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u7684\u4E00\u90E8\u5206\uFF0C\u516C\u5F00\u4F1A\u628A\u5B83\u9732\u51FA\u53BB\u3002\u5148\u5230\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7684\u300C\u8D26\u53F7\u300D\u9875\u6539\u4E00\u4E2A\u7528\u6237\u540D\uFF08\u6BCF\u4E2A\u8D26\u53F7\u53EF\u4EE5\u6539\u4E00\u6B21\uFF09\uFF0C\u518D\u56DE\u6765\u516C\u5F00\u3002","profile.blocked.publishBlocked":"\u8FD9\u4E2A\u4E3B\u9875\u5DF2\u88AB\u7BA1\u7406\u5458\u505C\u6B62\u516C\u5F00\u3002\u6709\u7591\u95EE\u8BF7\u901A\u8FC7\u300C\u53CD\u9988\u300D\u8054\u7CFB\u6211\u4EEC\u3002","profile.goRename":"\u53BB\u6539\u7528\u6237\u540D","profile.invalid":"\u8FD9\u9879\u5185\u5BB9\u6CA1\u80FD\u4FDD\u5B58\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u8BD5","guide.title":"\u4F7F\u7528\u6307\u5357","guide.readOnly":"\u53EA\u8BFB","guide.more":"\u66F4\u591A","guide.unlockAll":"\u5168\u90E8\u89E3\u9501","guide.relock":"\u6539\u56DE\u6309\u7B49\u7EA7\u89E3\u9501","guide.reminders":"\u4F7F\u7528\u6307\u5357\u63D0\u9192","guide.spotlight":"\u73B0\u573A\u6307\u5F15","guide.spotStep":"\u7B2C {n} \u6B65\uFF0C\u5171 {total} \u6B65","guide.figure":"\u793A\u610F\u56FE","guide.openAchievements":"\u6253\u5F00\u6210\u5C31","guide.tasks":"\u672C\u7AE0\u4EFB\u52A1","guide.go":"\u5E26\u6211\u53BB","guide.desktopOnly":"\u5728\u7535\u8111\u4E0A\u505A","guide.taskDone":"\u5DF2\u5B8C\u6210","guide.askTangu":"\u95EE Tangu","guide.progress":"\u8FDB\u5EA6","guide.justUnlocked":"\u521A\u89E3\u9501","guide.lockedHint":"\u672A\u89E3\u9501","guide.whatsNew":"\u65B0\u7248\u672C \xB7 {version}","guide.level.lv1":"Lv.1 \u521D\u6765\u4E4D\u5230","guide.level.lv2":"Lv.2 \u719F\u95E8\u719F\u8DEF","guide.level.lv3":"Lv.3 \u5F97\u5FC3\u5E94\u624B","guide.level.lv4":"Lv.4 \u878D\u4F1A\u8D2F\u901A","guide.locked.title":"\u8FD9\u4E00\u7AE0\u8FD8\u6CA1\u89E3\u9501","guide.locked.body":"\u505A\u5B8C\u300C{level}\u300D\u7684\u4EFB\u52A1\u5C31\u80FD\u8BFB\u5168\u6587\u3002","guide.locked.left":"\u8FD8\u5DEE\u8FD9\u51E0\u9879\uFF1A","guide.locked.hint":"\u7528\u8FC7\u4E00\u9635\u4E86\uFF1F\u53F3\u4E0A\u89D2\u300C\xB7\xB7\xB7\u300D\u91CC\u53EF\u4EE5\u5168\u90E8\u89E3\u9501\u3002","guide.levelProgress":"\u672C\u7EA7\u8FDB\u5EA6 {done}/{total}","guide.next":"\u4E0B\u4E00\u7EA7","guide.allDone":"\u5168\u90E8\u5B8C\u6210","guide.allDoneBody":"\u6307\u5357\u91CC\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u968F\u65F6\u56DE\u6765\u7FFB\u770B\u3002","guide.review":"\u56DE\u770B","guide.ask.hint":"\u5BF9\u300C{chapter}\u300D\u6709\u7591\u95EE\uFF1F\u95EE Tangu \u4F1A\u5F00\u4E00\u4E2A\u5E26\u4E0A\u672C\u7AE0\u5185\u5BB9\u7684\u65B0\u5BF9\u8BDD\u3002","guide.ask.placeholder":"\u60F3\u95EE\u4EC0\u4E48\uFF1F","guide.ask.send":"\u5F00\u59CB\u5BF9\u8BDD","guide.ask.prompt":"\u6211\u6B63\u5728\u8BFB Forsion \u4F7F\u7528\u6307\u5357\u91CC\u300C{chapter}\u300D\u8FD9\u4E00\u7AE0\uFF0C\u5185\u5BB9\u9644\u5728\u4E0B\u9762\u3002{question}","guide.ask.unavailable":"\u8FD9\u91CC\u5F00\u4E0D\u4E86\u5BF9\u8BDD","guide.ask.chatTitle":"\u4F7F\u7528\u6307\u5357\u95EE\u7B54","guide.companion.back":"\u56DE\u5230\u6307\u5357","guide.companion.close":"\u6536\u8D77","guide.toast.taskDone":"\u5B8C\u6210\uFF1A{task}","guide.letter.levelTitle":"{level} \u5DF2\u89E3\u9501\uFF1A\u63A5\u4E0B\u6765\u8BD5\u8BD5\u8FD9\u51E0\u4EF6\u4E8B","guide.letter.levelBody":"\u4E0A\u4E00\u7EA7\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u4E0B\u9762\u8FD9\u51E0\u7AE0\u73B0\u5728\u53EF\u4EE5\u8BFB\u4E86\u3002\u6BCF\u9879\u4EFB\u52A1\u90FD\u80FD\u300C\u5E26\u6211\u53BB\u300D\u3002","guide.letter.versionTitle":"{version} \u6709 {n} \u4EF6\u65B0\u4E1C\u897F\u53EF\u4EE5\u4F53\u9A8C","guide.letter.versionBody":"\u8FD9\u4E2A\u7248\u672C\u65B0\u52A0\u7684\uFF0C\u53EF\u4EE5\u76F4\u63A5\u4E0A\u624B\uFF1A","guide.letter.open":"\u6253\u5F00\u6307\u5357","guide.status.done":"\u5DF2\u5B8C\u6210","guide.cmd.open":"\u6253\u5F00\u4F7F\u7528\u6307\u5357","penzor.title":"\u84EC\u6D32\u4E91","penzor.overview":"\u6982\u89C8","penzor.places":"\u4F4D\u7F6E","penzor.details":"\u8BE6\u60C5","penzor.ledger.sync":"\u667A\u5E93\u540C\u6B65","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"\u5E94\u7528\u6587\u4EF6","penzor.ledger.exports":"\u5BFC\u51FA","penzor.trash":"\u56DE\u6536\u7AD9","penzor.items":"{n} \u9879","penzor.total.sub":"\u5B58\u5728 Forsion \u4E91\u7AEF \xB7 {time}\u66F4\u65B0","penzor.justNow":"\u521A\u521A","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} \u4E2A\u5E93 \xB7 \u4E0A\u6B21\u5199\u5165 {time}","penzor.card.syncSubNone":"{n} \u4E2A\u5E93","penzor.card.syncFoot":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 {size} \u4E0D\u4E0A\u4F20","penzor.card.syncWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u65B0\u6587\u4EF6\u4E0D\u518D\u4E0A\u4F20\uFF0C\u5DF2\u5728\u4E91\u7AEF\u7684\u7167\u5E38\u540C\u6B65","penzor.card.amaSmall":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.card.amaSub":"{n} \u4E2A\u4E91\u7AEF\u667A\u5E93","penzor.card.amaFoot":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u7684 Cloud \u4FA7","penzor.card.appsFoot":"\u56DE\u6536\u7AD9 {n} \u9879 \xB7 {size}","penzor.card.appsWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u5E94\u7528\u4E0D\u80FD\u518D\u5B58\u65B0\u6587\u4EF6\uFF1B\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF0C\u6E05\u7A7A\u80FD\u817E\u51FA\u7A7A\u95F4","penzor.card.expSmall":"{n} \u4E2A\u6587\u4EF6","penzor.card.expSub":"\u6700\u8FD1\uFF1A{name} \xB7 {time}","penzor.card.expFoot":"\u5404\u5E94\u7528\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.card.none":"\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.largest":"\u5360\u7528\u6700\u591A","penzor.col.name":"\u540D\u79F0","penzor.col.size":"\u5927\u5C0F","penzor.col.mtime":"\u4FEE\u6539\u65F6\u95F4","penzor.col.device":"\u5199\u5165\u8BBE\u5907","penzor.col.deleted":"\u5220\u9664\u4E8E","penzor.col.origin":"\u539F\u4F4D\u7F6E","penzor.col.app":"\u6765\u6E90","penzor.sort.mtime":"\u6309\u4FEE\u6539\u65F6\u95F4","penzor.sort.size":"\u6309\u5927\u5C0F","penzor.sort.name":"\u6309\u540D\u79F0","penzor.search":"\u641C\u7D22\u8FD9\u91CC\u7684\u6587\u4EF6\u540D","penzor.sync.thisDevice":"\u672C\u673A\u5728\u540C\u6B65","penzor.meta.files":"{size} \xB7 {n} \u4E2A\u6587\u4EF6","penzor.sync.last":"\u4E0A\u6B21\u5199\u5165 {time} \xB7 {device}","penzor.sync.lastNoDevice":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.devices":"{n} \u53F0\u8BBE\u5907\u540C\u6B65\u8FD9\u4E2A\u5E93","penzor.sync.meter":"\u667A\u5E93\u540C\u6B65\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}","penzor.apps.meter":"\u5E94\u7528\u6587\u4EF6\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}\uFF08\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF09","penzor.apps.by":"\u7531 {app} \u5199\u5165","penzor.ama.notCounted":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.ama.open":"\u5728 Amadeus \u4E2D\u6253\u5F00","penzor.hosted.open":"\u7BA1\u7406\u6211\u7684\u7F51\u9875","penzor.hosted.note":"\u8FD9\u662F\u5DF2\u53D1\u5E03\u7F51\u9875\u7684\u6587\u4EF6\u3002\u8981\u6539\u5185\u5BB9\u8BF7\u91CD\u65B0\u53D1\u5E03\uFF0C\u8981\u5220\u9664\u8BF7\u5230\u300C\u6211\u7684\u7F51\u9875\u300D\u4E0B\u7EBF\u3002","penzor.trash.meta":"{n} \u9879 \xB7 {size}","penzor.trash.note":"\u6C38\u4E45\u5220\u9664\u540E\u624D\u817E\u51FA\u7A7A\u95F4","penzor.trash.emptyBtn":"\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.act.download":"\u4E0B\u8F7D","penzor.act.rename":"\u91CD\u547D\u540D","penzor.act.move":"\u79FB\u52A8\u5230\u2026","penzor.act.trash":"\u79FB\u5230\u56DE\u6536\u7AD9","penzor.act.delete":"\u5220\u9664","penzor.act.restore":"\u6062\u590D","penzor.act.purge":"\u6C38\u4E45\u5220\u9664","penzor.act.copyName":"\u590D\u5236\u5E93\u540D","penzor.act.openSync":"\u5728\u8BBE\u7F6E\u4E2D\u6253\u5F00\u540C\u6B65","penzor.act.refresh":"\u5237\u65B0","penzor.act.up":"\u4E0A\u4E00\u7EA7","penzor.toast.trashed":"\u5DF2\u628A\u300C{name}\u300D\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.restored":"\u5DF2\u6062\u590D\u300C{name}\u300D","penzor.toast.purged":"\u5DF2\u6C38\u4E45\u5220\u9664\u300C{name}\u300D","penzor.toast.emptied":"\u5DF2\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.toast.downloaded":"\u5DF2\u5B58\u5230\u300C\u4E0B\u8F7D\u300D\uFF1A{name}","penzor.toast.renamed":"\u5DF2\u6539\u540D\u4E3A\u300C{name}\u300D","penzor.toast.moved":"\u5DF2\u79FB\u5230\u300C{name}\u300D","penzor.toast.versionRestored":"\u5DF2\u6062\u590D\u5230\u7B2C {n} \u7248","penzor.toast.copied":"\u5DF2\u590D\u5236\u5E93\u540D","penzor.toast.failed":"\u6CA1\u6210\u529F\uFF1A{reason}","penzor.confirm.purge":"\u6C38\u4E45\u5220\u9664\u300C{name}\u300D\uFF1F\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.confirm.empty":"\u6E05\u7A7A\u56DE\u6536\u7AD9\uFF1F{n} \u9879\u4F1A\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u627E\u4E0D\u56DE\u6765\u3002","penzor.confirm.deleteExport":"\u5220\u9664\u300C{name}\u300D\uFF1F\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF0C\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.cancel":"\u53D6\u6D88","penzor.side.where":"\u4F4D\u7F6E","penzor.side.mtime":"\u4FEE\u6539","penzor.side.device":"\u5199\u5165\u8BBE\u5907","penzor.side.thisDevice":"{name}\uFF08\u672C\u673A\uFF09","penzor.side.from":"\u6765\u6E90","penzor.side.versions":"\u5386\u53F2\u7248\u672C","penzor.side.versionsNone":"\u6CA1\u6709","penzor.side.versionRow":"\u7B2C {n} \u7248 \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"\u6062\u590D\u8FD9\u4E00\u7248","penzor.side.deletedAt":"\u5220\u9664\u4E8E","penzor.side.origin":"\u539F\u4F4D\u7F6E","penzor.side.inner":"\u91CC\u9762\u8FD8\u6709 {n} \u9879\uFF0C\u6062\u590D\u65F6\u4E00\u8D77\u56DE\u6765","penzor.side.inTrash":"\u5728\u56DE\u6536\u7AD9 \xB7 {size}","penzor.side.readonlySync":"\u540C\u6B65\u5E93\u91CC\u7684\u6587\u4EF6\u53EA\u5728\u8BBE\u5907\u4E0A\u5220\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u6587\u4EF6\uFF0C\u6BCF\u53F0\u540C\u6B65 {vault} \u7684\u8BBE\u5907\u4E0B\u6B21\u540C\u6B65\u65F6\u90FD\u4F1A\u8DDF\u7740\u5220\u6389\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.readonlyAma":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u91CC\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u9644\u4EF6\uFF0C\u5F15\u7528\u5B83\u7684\u7B14\u8BB0\u4F1A\u7F3A\u56FE\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.exportNote":"\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF1A\u5220\u9664\u5C31\u662F\u6C38\u4E45\u5220\u9664\u3002","penzor.side.none":"\u9009\u4E00\u4E2A\u6587\u4EF6\u770B\u8BE6\u60C5","penzor.side.folder":"\u6587\u4EF6\u5939 \xB7 {n} \u9879","penzor.side.folderPlain":"\u6587\u4EF6\u5939","penzor.move.title":"\u79FB\u5230\u54EA\u91CC","penzor.move.root":"{app} \u6700\u4E0A\u5C42","penzor.move.here":"\u79FB\u5230\u8FD9\u91CC","penzor.move.noFolders":"\u8FD9\u4E00\u5C42\u6CA1\u6709\u6587\u4EF6\u5939","penzor.rename.save":"\u4FDD\u5B58","penzor.empty.title":"\u84EC\u6D32\u4E91\u91CC\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.empty.lead":"\u8FD9\u4E9B\u4E1C\u897F\u5B58\u8FDB\u4E91\u7AEF\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\uFF1A","penzor.empty.sync":"\u5728\u300C\u8BBE\u7F6E \u203A \u540C\u6B65\u300D\u91CC\u628A\u8FDC\u7A0B\u670D\u52A1\u9009\u6210\u300C\u84EC\u6D32\u4E91\u300D\uFF0C\u672C\u5730\u667A\u5E93\u5C31\u540C\u6B65\u5230\u8FD9\u91CC","penzor.empty.ama":"Amadeus \u5207\u5230 Cloud \u4FA7\u5199\u7684\u7B14\u8BB0","penzor.empty.apps":"\u5404\u5E94\u7528\u5B58\u5230\u4E91\u7AEF\u6216\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.empty.openSync":"\u6253\u5F00\u540C\u6B65\u8BBE\u7F6E","penzor.out.title":"\u767B\u5F55\u540E\u67E5\u770B\u4F60\u7684\u84EC\u6D32\u4E91","penzor.out.lead":"\u84EC\u6D32\u4E91\u653E\u7740\u4F60\u540C\u6B65\u5230 Forsion \u4E91\u7AEF\u7684\u5E93\u3001Amadeus Cloud \u7684\u7B14\u8BB0\uFF0C\u548C\u5404\u5E94\u7528\u5B58\u5728\u4E91\u7AEF\u7684\u6587\u4EF6\u3002","penzor.out.signIn":"\u767B\u5F55 Forsion \u8D26\u53F7","penzor.loading":"\u6B63\u5728\u8BFB\u53D6\u2026","penzor.err":"\u6CA1\u8BFB\u5230\uFF1A{reason}","penzor.folderEmpty":"\u8FD9\u91CC\u6CA1\u6709\u6587\u4EF6","penzor.noMatch":"\u6CA1\u6709\u540D\u5B57\u91CC\u5E26\u300C{q}\u300D\u7684\u6587\u4EF6","penzor.cmd.open":"\u6253\u5F00\u84EC\u6D32\u4E91","penzor.unreachable":"\u8FDE\u4E0D\u4E0A Forsion \u4E91\u7AEF\uFF0C\u7A0D\u540E\u518D\u8BD5","penzor.toast.emptyPartial":"\u56DE\u6536\u7AD9\u91CC\u8FD8\u6709 {n} \u9879\u6CA1\u5220\u6389","penzor.sort.deleted":"\u6309\u5220\u9664\u65F6\u95F4","penzor.side.versionsN":"{n} \u4E2A","penzor.drive":"\u6211\u7684\u4E91\u76D8","penzor.drive.meta":"\u7B97\u5728\u5E94\u7528\u6587\u4EF6\u7684 {max} \u91CC","penzor.drive.empty":"\u8FD9\u91CC\u8FD8\u7A7A\u7740\u3002\u628A\u6587\u4EF6\u62D6\u8FDB\u6765\uFF0C\u6216\u8005\u70B9\u300C\u4E0A\u4F20\u300D\u3002","penzor.act.upload":"\u4E0A\u4F20","penzor.act.uploadMore":"\u66F4\u591A\u4E0A\u4F20\u65B9\u5F0F","penzor.act.uploadFiles":"\u4E0A\u4F20\u6587\u4EF6\u2026","penzor.act.uploadFolder":"\u4E0A\u4F20\u6587\u4EF6\u5939\u2026","penzor.act.uploadHere":"\u4E0A\u4F20\u5230\u8FD9\u91CC\u2026","penzor.act.newFolder":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.act.clearSel":"\u53D6\u6D88\u9009\u62E9","penzor.newFolder.default":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.sel.bar":"\u5DF2\u9009 {n} \u9879 \xB7 {size}","penzor.sel.title":"\u5DF2\u9009 {n} \u9879","penzor.sel.sub":"{size} \xB7 {files} \u4E2A\u6587\u4EF6","penzor.sel.subDirs":"{size} \xB7 {files} \u4E2A\u6587\u4EF6\u3001{dirs} \u4E2A\u6587\u4EF6\u5939","penzor.sel.download":"\u4E0B\u8F7D {n} \u9879","penzor.sel.saveTo":"\u4E0B\u8F7D\u5230","penzor.sel.saveToValue":"\u4E0B\u8F7D / {folder}","penzor.sel.noDirs":"\u6587\u4EF6\u5939\u8FD9\u4E00\u7248\u8FD8\u4E0D\u80FD\u4E0B\u8F7D\uFF0C\u53EA\u4E0B\u8F7D\u9009\u4E2D\u7684\u6587\u4EF6\u3002","penzor.download.folder":"\u84EC\u6D32\u4E91 {date}","penzor.drop.to":"\u677E\u624B\u4E0A\u4F20\u5230\u300C{place}\u300D","penzor.tx.busy":"\u6B63\u5728\u4F20\u8F93 {n} \u9879","penzor.tx.allDone":"\u5168\u90E8\u4F20\u5B8C","penzor.tx.failedN":"{n} \u9879\u6CA1\u4F20\u5B8C","penzor.tx.counts":"\u4E0A\u4F20 {up} \xB7 \u4E0B\u8F7D {down}","penzor.tx.eta":"\u5269\u7EA6 {eta}","penzor.tx.doneN":"{n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.restDone":"\u5176\u4F59 {n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"\u6392\u961F\u4E2D","penzor.tx.paused":"\u5DF2\u6682\u505C \xB7 \u7EE7\u7EED\u4F1A\u4ECE\u5934\u4F20","penzor.tx.uploaded":"\u5DF2\u4E0A\u4F20 \xB7 {time}","penzor.tx.downloaded":"\u5DF2\u4E0B\u8F7D \xB7 {time}","penzor.tx.canceled":"\u5DF2\u53D6\u6D88","penzor.tx.left":"\u5269 {eta}","penzor.tx.sec":"{n} \u79D2","penzor.tx.min":"{n} \u5206\u949F","penzor.tx.pause":"\u6682\u505C","penzor.tx.resume":"\u7EE7\u7EED","penzor.tx.cancel":"\u53D6\u6D88","penzor.tx.retry":"\u91CD\u8BD5","penzor.tx.remove":"\u79FB\u9664","penzor.tx.locate":"\u5B9A\u4F4D","penzor.tx.reveal":"\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A","penzor.tx.pauseAll":"\u5168\u90E8\u6682\u505C","penzor.tx.resumeAll":"\u5168\u90E8\u7EE7\u7EED","penzor.tx.retryAll":"\u5168\u90E8\u91CD\u8BD5","penzor.tx.clearDone":"\u6E05\u9664\u5DF2\u5B8C\u6210","penzor.tx.clear":"\u6E05\u9664","penzor.tx.collapse":"\u6536\u8D77","penzor.tx.expand":"\u5C55\u5F00\u4F20\u8F93\u5217\u8868","penzor.tx.quota":"\u7A7A\u95F4\u4E0D\u591F\uFF0C\u8FD8\u5DEE {size}","penzor.tx.quotaSub":"\u8FD9\u4E00\u6279\u4E00\u4E2A\u90FD\u6CA1\u5F00\u59CB\u4F20","penzor.tx.freeSpace":"\u53BB\u56DE\u6536\u7AD9\u817E\u5730\u65B9","penzor.err.too_large":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 50 MB\uFF08\u8FD9\u4E2A {size}\uFF09\uFF0C\u8FD9\u4E00\u7248\u4F20\u4E0D\u4E86","penzor.err.quota":"\u4E91\u7AEF\u7A7A\u95F4\u4E0D\u591F","penzor.err.network":"\u7F51\u7EDC\u65AD\u4E86\uFF0C\u4F20\u5230 {pct}% \u505C\u4E0B","penzor.err.account_changed":"\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u4E00\u9879\u6CA1\u6709\u63A5\u7740\u4F20","penzor.err.download_unavailable":"\u6B64\u5BBF\u4E3B\u6682\u4E0D\u652F\u6301\u4FDD\u5B58\u4E0B\u8F7D\uFF0C\u8BF7\u66F4\u65B0 Forsion","penzor.err.download_failed":"\u6587\u4EF6\u672A\u4FDD\u5B58\uFF0C\u8BF7\u91CD\u8BD5\u4E0B\u8F7D","penzor.err.not_signed_in":"\u6CA1\u767B\u5F55","penzor.err.gone":"\u672C\u673A\u4E0A\u627E\u4E0D\u5230\u8FD9\u4E2A\u6587\u4EF6\u4E86","penzor.err.popup_blocked":"\u6D4F\u89C8\u5668\u62E6\u4E0B\u4E86\u65B0\u6807\u7B7E\u9875\uFF0C\u5141\u8BB8\u672C\u7AD9\u5F39\u51FA\u7A97\u53E3\u540E\u518D\u8BD5\u4E00\u6B21","penzor.err.changed":"\u4F20\u7684\u65F6\u5019\u6587\u4EF6\u6539\u52A8\u4E86\uFF0C\u91CD\u8BD5\u4E00\u6B21","penzor.err.storage_unavailable":"\u4E91\u7AEF\u5B58\u50A8\u6682\u65F6\u4E0D\u53EF\u7528","penzor.err.other":"\u6CA1\u4F20\u5B8C\uFF08{code}\uFF09","penzor.err.too_many":"\u4E00\u6B21\u6700\u591A {n} \u4E2A\u6587\u4EF6\uFF0C\u5206\u51E0\u6B21\u62D6\u8FDB\u6765","penzor.toast.upDoneOne":"\u5DF2\u4E0A\u4F20\u300C{name}\u300D","penzor.toast.upDoneMany":"\u5DF2\u4E0A\u4F20 {n} \u4E2A\u6587\u4EF6","penzor.toast.downDoneMany":"\u5DF2\u4E0B\u8F7D {n} \u4E2A\u6587\u4EF6\u5230\u300C\u4E0B\u8F7D\u300D","penzor.toast.txFailed":"{n} \u9879\u6CA1\u4F20\u5B8C\uFF0C\u56DE\u84EC\u6D32\u4E91\u770B\u770B","penzor.toast.folderExists":"\u5DF2\u7ECF\u6709\u53EB\u300C{name}\u300D\u7684\u6587\u4EF6\u5939\u4E86","penzor.toast.trashedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.movedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u300C{name}\u300D","penzor.toast.batchPartial":"\u6709 {n} \u9879\u6CA1\u6210\u529F","penzor.sync.title":"\u540C\u6B65","penzor.sync.onN":"{n} \u9879\u5DF2\u5F00","penzor.sync.allOff":"\u90FD\u6CA1\u5F00","penzor.sync.waiting":"\u7B49\u4F60\u51B3\u5B9A","penzor.sync.badgeWaiting":"{n} \u9879\u5DF2\u5F00 \xB7 1 \u9879\u7B49\u4F60\u51B3\u5B9A","penzor.sync.running":"\u540C\u6B65\u4E2D {pct}%","penzor.sync.runningPlain":"\u540C\u6B65\u4E2D","penzor.sync.metaDevice":"\u8FD9\u53F0 {name}","penzor.sync.metaLast":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.sync.metaNever":"\u8FD8\u6CA1\u540C\u6B65\u8FC7","penzor.sync.every":"\u6BCF {n} \u5206\u949F","penzor.sync.everyHours":"\u6BCF {n} \u5C0F\u65F6","penzor.sync.manual":"\u624B\u52A8","penzor.sync.onStart":"\u5F00\u673A\u65F6\u4E00\u6B21","penzor.sync.minAgo":"{n} \u5206\u949F\u524D","penzor.sync.hoursAgo":"{n} \u5C0F\u65F6\u524D","penzor.sync.notesNamed":"\u667A\u5E93\u300C{name}\u300D","penzor.sync.notesPlain":"\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93","penzor.sync.notesDesc":"\u6574\u4E2A\u672C\u673A\u667A\u5E93\uFF0C\u548C\u4F60\u7684\u5176\u4ED6\u7535\u8111\u4FDD\u6301\u4E00\u81F4","penzor.sync.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.sync.agentsDesc":"Agents \u7684\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u6280\u80FD\u548C\u534F\u4F5C\u8BF4\u660E\uFF0C\u8FD8\u6709\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.sync.conflictsN":"{n} \u4E2A\u51B2\u7A81\u526F\u672C","penzor.sync.conflictsHint":"\u4E24\u8FB9\u90FD\u6539\u8FC7\u7684\u6587\u4EF6\u4E24\u4EFD\u90FD\u7559\u7740\uFF1A\u53E6\u4E00\u4EFD\u5B58\u6210\u6587\u4EF6\u540D\u5E26\u300Cconflict\u300D\u7684\u526F\u672C\uFF0C\u5728\u5BF9\u5E94 Agent \u7684\u6587\u4EF6\u5939\uFF08\u6216\u4F60\u7684\u8D44\u6599\u6587\u4EF6\u5939\uFF09\u91CC","penzor.sync.pluginsPending":"{n} \u4E2A\u63D2\u4EF6\u7684\u6539\u52A8\u8FD8\u6CA1\u4F20\u4E0A\u53BB","penzor.sync.agentsN":"{n} \u4E2A Agent","penzor.sync.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.sync.pluginsDesc":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\u548C\u6570\u636E","penzor.sync.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.sync.off":"\u6CA1\u5F00","penzor.sync.done":"\u5DF2\u540C\u6B65","penzor.sync.doneSize":"\u5DF2\u540C\u6B65 \xB7 {size}","penzor.sync.firstPending":"\u7B49\u7B2C\u4E00\u6B21\u540C\u6B65","penzor.sync.failed":"\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.sync.overQuota":"\u8D85\u51FA\u989D\u5EA6\uFF0C\u6709\u7684\u6CA1\u4F20","penzor.sync.to":"\u540C\u6B65\u5230 {name}","penzor.sync.toFolder":"\u540C\u6B65\u5230\u672C\u673A\u6587\u4EF6\u5939","penzor.sync.decideAbove":"\u5728\u4E0A\u9762\u90A3\u5F20\u5361\u91CC\u9009","penzor.sync.kvSchedule":"\u540C\u6B65\u8BA1\u5212","penzor.sync.kvDirection":"\u65B9\u5411","penzor.sync.kvSkipped":"\u6CA1\u4F20\u7684","penzor.sync.kvWhere":"\u4E91\u7AEF\u4F4D\u7F6E","penzor.sync.change":"\u6539","penzor.sync.open":"\u6253\u5F00","penzor.sync.dir.both":"\u53CC\u5411","penzor.sync.dir.push":"\u4EC5\u4E0A\u4F20","penzor.sync.dir.pull":"\u4EC5\u4E0B\u8F7D","penzor.sync.skippedN":"{n} \u4E2A\u8D85\u8FC7 {size} \u7684\u6587\u4EF6","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"\u5728\u540C\u6B65\u7684\u8BBE\u5907","penzor.sync.thisOne":"\u8FD9\u53F0","penzor.sync.lastWrite":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.noDevices":"\u8FD8\u6CA1\u6709\u8BBE\u5907\u5728\u540C\u6B65","penzor.sync.phoneTitle":"\u624B\u673A\u548C\u7F51\u9875\u770B\u5230\u7684\u90A3\u4E00\u4EFD","penzor.sync.phoneTip":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF0C{size}\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.phoneTipPlain":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.foot":"\u540C\u6B65\u8BA1\u5212\u3001\u65B9\u5411\u548C\u5176\u4ED6\u5B58\u50A8\uFF08Dropbox / S3 / WebDAV\uFF09\u5728","penzor.sync.footLink":"\u8BBE\u7F6E \u203A \u540C\u6B65","penzor.sync.askTitle":"\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD\u667A\u5E93","penzor.sync.askCloud":"\u4E91\u7AEF\u90A3\u4EFD\u6765\u81EA {device}\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askCloudNoDevice":"\u4E91\u7AEF\u90A3\u4EFD\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askLocal":"\u8FD9\u53F0\u6709 {local} \u4E2A\u6587\u4EF6\u4E91\u7AEF\u6CA1\u6709\uFF0C{conflicts} \u4E2A\u4E24\u8FB9\u5185\u5BB9\u4E0D\u540C\u3002","penzor.sync.askMerge":"\u5408\u5E76\u4E24\u8FB9","penzor.sync.askCloudBtn":"\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.askSkip":"\u8FD9\u53F0\u5148\u4E0D\u540C\u6B65\u667A\u5E93","penzor.sync.askExplain":"\u5408\u5E76\uFF1A\u4E24\u8FB9\u90FD\u7559\u7740\uFF0C\u5185\u5BB9\u4E0D\u540C\u7684\u53E6\u5B58\u4E00\u4EFD\u300C\uFF08\u51B2\u7A81\uFF09\u300D\u3002\u7528\u4E91\u7AEF\u90A3\u4EFD\uFF1A\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u5148\u632A\u8FDB\u65C1\u8FB9\u7684\u300C{backup}\u300D\u6587\u4EF6\u5939\uFF0C\u518D\u4E0B\u8F7D\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirm":"\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u4F1A\u5148\u632A\u8FDB\u300C{backup}\u300D\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirmGo":"\u632A\u8D70\u5E76\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.backupName":"{name} \u540C\u6B65\u524D\u5907\u4EFD {date}","penzor.sync.quotaTitle":"\u667A\u5E93 {size}\uFF0C\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684 {max} \u4E0A\u9650","penzor.sync.quotaTitlePlain":"\u667A\u5E93\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684\u4E0A\u9650","penzor.sync.quotaBody":"\u653E\u4E0D\u4E0B\u7684\u6587\u4EF6\u7559\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\uFF0C\u6CA1\u6709\u5220\uFF0C\u4E5F\u6CA1\u6709\u4F20\uFF1B\u5176\u4F59\u51E0\u9879\u7167\u5E38\u540C\u6B65\u3002","penzor.sync.quotaLarge":"\u8D85\u8FC7 {size} \u7684\u5355\u4E2A\u6587\u4EF6\u4E00\u76F4\u4E0D\u4F20\uFF08{n} \u4E2A\uFF09\u3002","penzor.sync.quotaSee":"\u770B\u770B\u6CA1\u4F20\u7684\u6587\u4EF6","su.title":"\u5546\u5E97\u66F4\u65B0","su.source.github":"GitHub \u6765\u6E90","su.source.npm":"npm \u6765\u6E90","su.source.zip":"ZIP \u4E0A\u4F20","su.review":"\u5F85\u5BA1\u6838","su.approved":"\u5DF2\u901A\u8FC7","su.rejected":"\u6CA1\u901A\u8FC7","su.viaGithub":"GitHub Release {tag}","su.viaNpm":"npm {version}","su.metaReview":"{time} \u63D0\u4EA4 \xB7 \u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaReviewNoTime":"\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaApproved":"\u5546\u5E97\u73B0\u5728\u663E\u793A {version}","su.metaApprovedInfo":"\u5546\u5E97\u4FE1\u606F\u5DF2\u66F4\u65B0","su.metaRejected":"\u5546\u5E97\u7167\u65E7\u663E\u793A {version}","su.metaRejectedUnlisted":"\u8FD8\u6CA1\u6709\u4E0A\u67B6","su.infoOnly":"\u53EA\u6539\u5546\u5E97\u4FE1\u606F","su.listSep":"\u3001","su.openSubmission":"\u5728\u6295\u7A3F\u4E2D\u67E5\u770B","wc.title":"\u7F51\u9875","wc.pill.published":"\u5DF2\u53D1\u5E03","wc.pill.live":"\u5DF2\u4E0A\u7EBF","wc.pill.review":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","wc.pill.listed":"\u5DF2\u4E0A\u67B6","wc.pill.rejected":"\u4E0A\u67B6\u672A\u901A\u8FC7","wc.pill.gone":"\u5DF2\u4E0B\u7EBF","wc.justPublished":"\u521A\u521A\u53D1\u5E03","wc.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","wc.open":"\u6253\u5F00","wc.viewInPages":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u67E5\u770B","wc.manage":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u7BA1\u7406","wc.total":"\u5DF2\u53D1\u5E03 {n} \u4E2A","wc.more":"\u8FD8\u6709 {n} \u4E2A","wc.unpublishTitle":"\u4E0B\u7EBF\u300C{name}\u300D\uFF1F","wc.unpublishBody":"\u94FE\u63A5\u4F1A\u5931\u6548\uFF0C\u7F51\u9875\u7684\u6587\u4EF6\u4E5F\u4F1A\u4ECE\u4E91\u76D8\u5220\u9664\u3002","wc.unpublishAgain":"\u518D\u70B9\u4E00\u6B21\u4E0B\u7EBF"},Ph={"events.title":"Events","events.back":"Back to app","events.count":"{n} live","events.group.active":"Live","events.group.notice":"Notices","events.group.upcoming":"Coming up","events.ended":"Past events","events.endedEmpty":"No past events yet","events.list":"All events","events.kind.checkin":"Check-in","events.kind.tasks":"Quests","events.kind.game":"Mini game","events.kind.notice":"Notice","events.left.days":"{n}d left","events.left.hours":"{n}h left","events.left.long":"{d}d {h}h left","events.left.longHours":"{h}h left","events.time.start":"Starts {date}","events.time.claim":"Ended. Claim by {date}","events.time.claimShort":"Claim by {date}","events.time.ended":"Ended {date}","events.time.published":"Published {date}","events.rewards":"Rewards","events.checkin.signed":"{n} of {total} days","events.checkin.today":"Today","events.checkin.day":"Day {n}","events.checkin.do":"Check in","events.checkin.done":"Checked in today","events.checkin.finished":"All days complete","events.tasks.progress":"Progress","events.tasks.claim":"Claim","events.tasks.claimAll":"Claim all ({n})","events.tasks.go":"Go","events.tasks.closed":"Event ended","events.game.board":"Leaderboard","events.game.me":"You","events.game.anon":"Anonymous","events.game.enter":"Play","events.game.install":"Get it in the Store","events.game.empty":"No scores yet","events.notice.more":"Learn more","events.toast.checkin":"Checked in: {reward}","events.toast.claimed":"Claimed {reward}","events.toast.partial":"{n} claimed, {m} failed. Try again later","events.toast.backpack":"Open backpack","events.err.failed":"Not claimed. Try again when you're back online","events.err.notLive":"This event has ended","events.err.completed":"You've completed every day","events.err.grantFailed":"The reward didn't go through. It's logged for manual delivery, so there's no need to claim again","events.login.title":"Sign in to join events","events.login.do":"Sign in to Forsion","events.empty":"No events right now","events.error":"Couldn't load events","events.retry":"Try again","events.dot":"Rewards to claim or new events","penzor.rules.default":"Cloud default","penzor.rules.off":"Do not sync","penzor.rules.device":"Device","penzor.rules.run":"Sync now","penzor.rules.twoWay":"Two-way","penzor.rules.defaultForWeb":"The web uses the default folder","penzor.rules.tab.rules":"Sync rules","penzor.rules.tab.active":"Transfers","penzor.rules.tab.history":"History","penzor.rules.enable":"Enable content sync","penzor.rules.add":"Add rule","penzor.rules.source":"Local source","penzor.rules.destination":"Cloud destination","penzor.rules.direction":"Direction","penzor.rules.remove":"Remove rule","penzor.rules.inherit":"An empty path covers all of Forsion. Children inherit; the most specific path wins. Unmatched content stays on this device.","penzor.rules.namespace":"Default: Cloud /Forsion/. Device folders: Cloud /Forsion-deviceID/.","penzor.rules.human":"Choose human independently. The default calendar uses human/CALENDAR.db. A device destination does not replace the web default.","penzor.rules.preview":"Preview changes","penzor.rules.previewTitle":"Review sync scope","penzor.rules.previewCounts":"Upload {up}, download {down}; {conflicts} existing items need merging or preserved versions.","penzor.rules.retain":"Previous destinations are retained. Turning sync off deletes no files. If sources change, preview again.","penzor.rules.back":"Back","penzor.rules.apply":"Confirm and start","penzor.rules.pause":"Pause","penzor.rules.resume":"Continue","penzor.rules.noActive":"No files are transferring.","penzor.rules.manual":"Manual uploads and downloads","penzor.rules.historyNote":"The latest 200 items. Conflicts preserve both versions; other content continues syncing.","penzor.rules.retry":"Retry failed items","penzor.rules.noHistory":"No sync history yet.","penzor.rules.details":"View transfers","penzor.rules.plugins":"Plugin data keeps its own sync management.","penzor.rules.turnOff":"Turn off plugin data sync","penzor.rules.turnOn":"Turn on plugin data sync","penzor.rules.phase.idle":"Waiting for the next sync","penzor.rules.phase.scanning":"Checking files","penzor.rules.phase.syncing":"Syncing","penzor.rules.phase.paused":"Paused","penzor.rules.state.queued":"Queued","penzor.rules.state.active":"Transferring","penzor.rules.state.done":"Done","penzor.rules.state.failed":"Failed","penzor.rules.state.paused":"Paused","penzor.rules.state.conflict":"Conflict versions preserved","penzor.tree.synced":"Synced","penzor.tree.thisBackup":"This computer \xB7 backup only","penzor.tree.byApp":"By app","penzor.tree.legacy":"Legacy vault sync","penzor.quota.sourceLimit":"This kind also has its own limit of {max}; {used} used","penzor.ov.mine":"Yours","penzor.ov.synced":"Synced from your devices","penzor.ov.stale":"No longer updated","penzor.ov.uploads":"Files you upload and organize; change them freely","penzor.ov.all":"Notes, agents, about me and plugins","penzor.ov.allLast":"Notes, agents, about me and plugins \xB7 last synced {time}","penzor.ov.self":"The copy only this computer uses","penzor.ov.device":"Shared only between this computer and that one","penzor.ov.agents":"Agent settings, memory and logs","penzor.ov.profile":"Your profile and default calendar","penzor.ov.sync":"Vaults your computers sync up","penzor.ov.legacy":"No longer written once this computer uses the new sync; kept, not deleted","penzor.ov.ama":"Notes from the web and synced notes","penzor.ov.apps":"Files your apps store; delete or rename them","penzor.ov.plugins":"Settings plugins store; usage only","penzor.ov.exports":"Exported files; download or delete them","penzor.ov.segNotes":"Notes","penzor.ov.segSync":"Device sync","penzor.ov.segOther":"Other","penzor.content.badge":"Kept by the new sync","penzor.content.badgeLast":"Kept by the new sync \xB7 last synced {time}","penzor.content.noteAll":"This is the cloud copy every signed-in device and the web see. To change files, edit them in Notes or Agents on a computer and they sync up; you can download them here.","penzor.content.noteSelf":"The copy only this computer uses; other devices don\u2019t see it. Change files on this computer; you can download them here.","penzor.content.noteDevice":"Shared only between this computer and {name}. Change files on a computer; you can download them here.","penzor.legacy.title":"This computer stopped writing to this vault when it switched to the new sync","penzor.legacy.body":"This computer\u2019s notes now live in Shared with all devices \u203A Notes. Older desktop versions may still write here, so this copy is kept, not deleted.","penzor.legacy.go":"See the new copy","penzor.drive.total":"All of Penzor Cloud: {used} / {max} used","penzor.drive.seeAll":"View","penzor.cs.statusOff":"Off","penzor.cs.statusPaused":"Paused","penzor.cs.statusRun":"Syncing {pct}%","penzor.cs.statusScan":"Checking files","penzor.cs.statusWarn":"{n} to review","penzor.cs.statusOk":"Up to date","penzor.cs.statusOkAgo":"Up to date \xB7 {time}","penzor.widget.signedOut":"Not signed in to Forsion","penzor.widget.signInHint":"Sign in to sync","penzor.widget.off":"Cloud sync is off","penzor.widget.paused":"Sync is paused","penzor.widget.running":"Syncing","penzor.widget.problem":"Sync needs attention","penzor.widget.active":"Transferring {n}","penzor.widget.queued":"{n} more queued","penzor.widget.waiting":"{n} waiting to sync","penzor.widget.failed":"Failed","penzor.widget.error":"Sync ran into an error","penzor.widget.errorMeta":"Error","penzor.widget.conflict":"Conflict, both kept","penzor.widget.more":"{n} more to check","penzor.widget.last":"Last synced {time}","penzor.widget.pending":"Notes are already in the cloud","penzor.widget.notesFailed":"Last note sync failed","penzor.widget.agentsFailed":"Last agent sync failed","penzor.cs.thisComputer":"This computer: {name}","penzor.cs.thisComputerLabel":"This computer:","penzor.cs.rename":"Rename this computer","penzor.cs.renameHint":"Other devices will show this name \xB7 Enter to save","penzor.cs.name.taken":"Another device already uses this name. Pick another one.","penzor.cs.name.reserved":"macOS, Windows and Linux are kept for systems. Pick another name.","penzor.cs.name.invalid":"Names can have up to 64 characters and no square brackets.","penzor.cs.othersN":"{n} others: {names}","penzor.cs.noOthers":"No other devices on this account yet","penzor.cs.log":"Recent activity","penzor.cs.more":"More","penzor.cs.advanced":"Advanced: edit rules","penzor.cs.backSimple":"Back to sync","penzor.cs.firstTitle":"Sync this computer to Penzor Cloud","penzor.cs.firstBody":"Here is a suggested setup; change anything first. Nothing moves until you press Start syncing, and nothing already in the cloud is overwritten or deleted.","penzor.cs.note":"To treat one notes folder or agent differently, click the small line under it. Turning a switch off just stops syncing; nothing is deleted.","penzor.cs.barFirst":"Turning sync on uploads {up} files and downloads {down}","penzor.cs.barChanged":"{n} changes","penzor.cs.barOne":"1 change: \u201C{name}\u201D \u2192 {scope}","penzor.cs.offName":"not synced","penzor.cs.barCounts":"Uploads {up} files and downloads {down} \xB7 nothing is deleted","penzor.cs.barSize":"{size} in total","penzor.cs.noDelete":"nothing will be deleted","penzor.cs.barConflicts":"{n} changed on both sides; both copies are kept","penzor.cs.barCounting":"Working out what will move\u2026","penzor.cs.barRecount":"Files just changed, so this was recalculated. Please confirm again.","penzor.cs.later":"Not now","penzor.cs.start":"Start syncing","penzor.cs.undo":"Undo","penzor.cs.confirm":"Confirm","penzor.cs.up":"Uploading \u201C{name}\u201D","penzor.cs.down":"Downloading \u201C{name}\u201D","penzor.cs.waiting":"{n} more files waiting","penzor.cs.failedN":"{n} files didn\u2019t sync","penzor.cs.retry":"Retry","penzor.cs.seeLog":"See activity","penzor.cs.logEmpty":"No sync activity yet.","penzor.cs.logNote":"Keeps the latest 200 items. When both sides changed, both copies are kept.","penzor.cat.notes":"Notes","penzor.cat.notesDesc":"Your Amadeus vault","penzor.cat.agents":"Agents & memory","penzor.cat.agentsDesc":"Each agent\u2019s settings, memory and logs","penzor.cat.profile":"About me","penzor.cat.profileDesc":"Your profile and default calendar","penzor.cat.profileOn":"Includes your default calendar","penzor.cat.plugins":"Plugins","penzor.cat.pluginsDesc":"Plugin folders and settings","penzor.cat.others":"Other files","penzor.cat.othersDesc":"Files in your workspace outside the groups above","penzor.cat.files":"{n} files \xB7 {size}","penzor.agents.pickHint":"Choose each one; new agents aren\u2019t synced \xB7 {n} selected","penzor.agents.legacyHint":"Older setting: new agents sync too \xB7 {n} selected","penzor.agents.none":"No agents on this computer yet","penzor.agents.muse":"Muse","penzor.agents.museDesc":"Background agent; runs separately on each computer","penzor.agents.locked":"Sync not available yet","penzor.agents.cloudOnly":"In the cloud \xB7 not on this computer yet; turn on to download","penzor.agents.historianNote":"Historian\u2019s drafts stay on each computer. What it writes into an agent\u2019s log syncs with that agent.","penzor.agents.archiveRunning":"Cloud agents are being archived. Try again in a moment.","penzor.cs.accountReview":"Account changed. Local files may contain content from another account. Review and confirm the sync selection before syncing again.","penzor.agents.openFailed":"Couldn\u2019t turn on sync for this agent, so it stays off: {reason}","penzor.archive.title":"Agents now sync one by one","penzor.archive.body":"Agents that synced with the old all-agents switch have stopped. Their cloud copy is in \u201CMy drive \u203A {shelf} \u203A {name}\u201D, read-only and downloadable. Turn on the ones you still want, one at a time.","penzor.archive.shelf":"Archive","penzor.archive.ok":"Got it","penzor.archive.open":"Open archive","penzor.archive.note":"This is an agent sync archive. It\u2019s read-only: you can download it or delete the whole archive.","penzor.ask.title":"{name} already has a copy in the cloud","penzor.ask.when":"Cloud copy last changed: {cloud}. This computer: {local}. Choose once before turning sync on; after that it merges automatically.","penzor.ask.merge":"Merge them","penzor.ask.mergeDesc":"Memory, logs and schedules merge entry by entry. Where both sides changed settings or personality, the newer copy wins and the other goes to this computer\u2019s recycle folder","penzor.ask.cloud":"Use the cloud copy","penzor.ask.cloudDesc":"This computer\u2019s copy goes to the recycle folder first, then the cloud copy replaces it","penzor.ask.local":"Use this computer\u2019s copy","penzor.ask.localDesc":"The cloud copy is archived first, then replaced with this computer\u2019s","penzor.ask.recommended":"Recommended","penzor.ask.foot":"Recycled files are in agents/.removed and can be recovered","penzor.ask.cancel":"Cancel","penzor.ask.confirm":"Turn on sync","penzor.cat.pluginsN":"{n} plugins","penzor.cat.custom":"{n} custom rules","penzor.cat.notSynced":"Not synced \xB7 stays on this computer","penzor.scope.all":"Shared with all devices","penzor.scope.allDesc":"Every signed-in device and the web see one copy","penzor.scope.self":"Back up this computer only","penzor.scope.selfDesc":"Kept in its own cloud copy other devices don\u2019t see","penzor.scope.with":"Only with {name}","penzor.scope.menuTitle":"Who shares \u201C{name}\u201D","penzor.scope.menuFoot":"To stop syncing it, turn off the switch","penzor.scope.calendarNote":"The web\u2019s default calendar doesn\u2019t follow this","penzor.unified.stale":"Refresh failed. Showing the last sample; current usage is unknown. Please retry.","penzor.unified.uploadTo":"Upload to My files","penzor.unified.apps":"Manage ordinary files \xB7 source restrictions apply","penzor.trash.ama":"Amadeus \xB7 pending cleanup","penzor.trash.amaNote":"Deleted current files still count; history is not counted again. Eligible for system cleanup after 30 days. Read-only here; Empty trash does not affect these snapshots.","penzor.trash.expires":"Cleanup eligible from","penzor.source.openAgents":"Open Agents","penzor.source.openCalendar":"Open calendar","penzor.source.entryUnavailable":"This host does not provide that destination","penzor.uploads":"My files","penzor.source.agents":"Agents","penzor.source.profile":"My profile","penzor.source.plugins":"Plugin data","penzor.source.readonly":"Synced sources are read-only. Edit or delete in the source; download synced files here.","penzor.source.appNote":"App files are managed by their app. Edit or delete them there.","penzor.source.market":"Store submissions","penzor.ov.market":"Plugins, skills and Agents you submitted to the Store; they follow their listings","penzor.source.marketNote":"These packages follow their Store listings: delete a listing in Store \u203A My submissions to free its space. Packages fetched from GitHub or npm are stored by the Store and don't count toward your storage.","penzor.market.badge":"Managed by the Store","penzor.market.meta":"{size} \xB7 {n} packages","penzor.market.history":"Older versions {size}, not counted (same as elsewhere)","penzor.market.older":"older versions {size}","penzor.market.updating":"update in review","penzor.market.notCounted":"Not counted","penzor.market.fromGithub":"From GitHub \xB7 stored by the Store","penzor.market.fromNpm":"From npm \xB7 stored by the Store","penzor.market.type.plugin":"Plugin","penzor.market.type.skill":"Skill","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"Theme","penzor.market.type.amadeusPlugin":"Amadeus plugin","penzor.market.status.approved":"Listed","penzor.market.status.pending":"In review","penzor.market.status.rejected":"Not approved","penzor.col.type":"Type","penzor.col.status":"Status","penzor.source.pluginNote":"Names and usage only. Data may contain settings or credentials, so preview and download are unavailable.","penzor.unified.unavailable":"Usage unavailable","penzor.unified.incomplete":"Unified usage is incomplete, so quota status is unknown. Refresh to retry.","penzor.unified.enforced":"Unified quota is active. Over quota, new content and larger replacements are paused; downloads, deletions and non-growing replacements remain available.","penzor.unified.grace":"Notice grace period ends {date}. Unified quota does not add restrictions yet.","penzor.unified.rolloutPolicy":"Storage policy notice: growth limits may start no earlier than 30 days after acknowledgement. App file history will retain at most 50 versions from the last 30 days. History is excluded from your plan; download backups before cleanup. Current files are not removed by history cleanup.","penzor.unified.ack":"I have read the storage and history notice","penzor.unified.notice":"This is only a notice. Going over won\u2019t stop sync or uploads","penzor.unified.over":"Unified quota exceeded. This is a notice only; no new sync or upload restrictions apply. Clear files or upgrade your plan.","penzor.unified.warn":"Unified storage is nearly full. This is a notice only; no new sync or upload restrictions apply.","penzor.unified.accounting":"includes {trash} in trash; history doesn\u2019t count","penzor.unified.writable":"Upload, create, rename and delete","penzor.unified.readonly":"Read-only \xB7 managed at source","penzor.unified.export":"Download, rename and permanently delete","penzor.unified.counted":"Included in unified usage \xB7 notice phase","penzor.unified.policy":"If limits are ever enforced, you\u2019ll hear at least 30 days ahead.","penzor.unified.legacySync":"Existing device sync limit: {used} / {max}","penzor.unified.legacyApps":"Existing app file limit: {used} / {max}","sub.identity":"Plugin ID","sub.identityHint":"A unique ID is assigned after submission. Names may repeat; updates keep the same ID.","sub.description":"Detailed description","sub.tags":"Tags","sub.tagsHint":"Comma separated, up to 8","sub.minAppVersion":"Minimum Forsion version","sub.maxAppVersion":"Maximum version (exclusive)","sub.optional":"Optional","sub.platforms":"Supported platforms","sub.requirementsHint":"Supported: desktop, macos, windows, linux, android, ios, web. Leave blank if unspecified. ZIP requirements are read from the manifest; supplied values must match it.","sub.err.market_requirements_invalid":"Invalid version requirements or platforms.","sub.err.market_requirements_mismatch":"Supplied requirements differ from the ZIP manifest.","sub.mine":"My submissions","page.submission":"Submissions","page.webPages":"My web pages","web.title":"My web pages","web.desc":"Pages you published with Tangu or Coding Space. Anyone with the link can open them; they run sandboxed and can't read visitors' Forsion sign-in.","web.refresh":"Refresh","web.used":"{used} of {limit} published","web.full":"All slots are used. Take one down or upgrade to publish another","web.empty":"No published pages yet","web.emptyHint":'Ask Tangu in a chat to publish a page, for example "publish this page", or choose Publish on a Coding Space project.',"web.updated":"Updated {date}","web.disabled":"Disabled","web.disabledHint":"An administrator disabled this page. Its link doesn't open and it can't be updated.","web.copy":"Copy link","web.unpublish":"Take down","web.unpublishConfirm":"Confirm take down","web.listingPending":"Store listing in review","web.listingApproved":"Listed in store","web.listingRejected":"Store listing rejected","web.listingNote":"Reason: {note}","web.listingApply":"Apply for store listing","web.listingReapply":"Apply again","web.listingWithdraw":"Withdraw application","web.listingDelist":"Remove from store","web.listingDelistConfirm":"Confirm removal","web.listingSummary":"Store summary","web.listingSummaryPh":"One sentence about this page","web.listingHint":"Shown in the store under Web apps after review. Up to 300 characters.","web.listingSubmit":"Submit application","pub.cmd":"Publish web page to Forsion","pub.cmdNoArgs":"Open the project you want to publish from Coding Studio","pub.title":"Publish to Forsion: {name}","pub.titleTerms":"Publish as a public page","pub.close":"Close","pub.desc":"Publish this page as a public link. Anyone with the link can open it.","pub.descPublished":"Published. Come back and choose Update after changes; the link stays the same.","pub.needLogin":"Sign in with Forsion to publish","pub.login":"Sign in to Forsion","pub.loginWaiting":"Waiting for the browser to finish\u2026","pub.name":"Name","pub.slug":"Link slug","pub.slugHint":"3\u201332 lowercase letters, digits or hyphens","pub.entry":"Entry page","pub.noEntry":"This project has no .html entry yet. Generate a page first.","pub.slots":"{used} of {limit} published ({tier})","pub.hint":"Use relative paths for assets. .ts and .tsx are transpiled on publish, no build step.","pub.anyone":"Anyone with the link can open it","pub.likes":"{n} likes","pub.saves":"{n} saves","pub.copy":"Copy link","pub.copied":"Copied","pub.open":"Open in browser","pub.publish":"Publish","pub.update":"Update","pub.saveUpdate":"Save and update","pub.publishing":"Publishing\u2026","pub.listingTitle":"Store \xB7 Web apps","pub.listingNone":"Not listed","pub.listingPending":"In review","pub.listingApproved":"Listed","pub.listingRejected":"Rejected","pub.listingHint":"Listed pages appear under Web apps in the Store after review.","pub.termsIntro":"Once published, anyone with the link can view this page, and it may be shared or indexed by search engines. Please confirm:","pub.termsLi1":"You have the right to publish all text, images, audio, video and other content on the page;","pub.termsLi2":"The page contains no illegal information, infringing content or personal information disclosed without permission;","pub.termsLi3":"You take responsibility for the content you publish.","pub.termsManage":"The platform manages public content under applicable laws and the Content Publishing Guidelines, and may restrict access to, stop showing or remove violating content.","pub.termsAgreePre":"I have read and agree to the ","pub.termsGuidelines":"Content Publishing Guidelines","pub.termsConfirm":"Confirm and publish","pub.aiSaveFailed":"Published, but the AI settings weren\u2019t saved: {reason}","ai.whoPays":"Who pays","ai.payer.visitor":"Visitors","ai.payer.author":"I pay","ai.perVisitor":"Per visitor","ai.perVisitorPre":"Up to","ai.perVisitorPost":"calls a day","ai.page":"This page","ai.pagePre":"Up to","ai.pagePost":"points a day","ai.max":"Up to {n}","ai.whenUsedUp":"When used up","ai.exhausted.visitor":"Switch to visitors\u2019 own quota","ai.exhausted.pause":"Pause AI until tomorrow","ai.models":"Models","ai.modelDefault":"default","ai.modelImage":"Image","ai.balance":"Pack balance","ai.points":"{n} points","ai.buy":"Buy a pack","ai.noteAuthor":"Visitors sign in with Forsion before using AI; it only counts calls per person and doesn\u2019t use their quota. Charged at the same model rates as when visitors pay; your own AI quota and points balance are never touched.","ai.noteVisitor":"Viewing needs no sign-in. Visitors sign in with Forsion when they use AI, and their own quota is used.","ai.noteOff":"\u201CI pay\u201D isn\u2019t available yet, so visitors pay for AI.","ai.agentNote":"forsion.ai.agent still uses the visitor\u2019s own quota for now; visitors confirm before the first use.","ai.cooldownNew":"New pages switch to you paying {h} hours after publishing; until then visitors pay.","ai.cooldownUntil":"You pay from {time}; until then visitors pay.","ai.save":"Save","ai.saved":"AI settings saved","web.tabMine":"Published {n}","web.tabSaved":"Saved","web.tabSavedN":"Saved {n}","web.ai.author":"AI \xB7 I pay","web.ai.visitor":"AI \xB7 Visitors pay","web.ai.paused":"AI \xB7 I pay \xB7 paused","web.ai.pausedSpike":"Spending spiked within an hour, so visitors pay again","web.ai.pausedAdmin":"Paused by an administrator; visitors pay for now","web.ai.resume":"Resume I pay","web.ai.todayAuthor":"{calls} calls today \xB7 {visitors} visitors","web.ai.todayVisitor":"{calls} calls today","web.ai.cap":"Daily cap","web.ai.none":"No AI","web.ai.settings":"AI settings","web.ai.cooldown":"You pay from {time}","pack.points":"points","pack.note":"Pages set to \u201CI pay\u201D draw from here at the model rates. Your own AI quota and points balance are never touched.","pack.lowNote":"Almost used up. Then each \u201CI pay\u201D page follows its setting: visitors use their own quota, or AI pauses until tomorrow.","pack.monthSpent":"Used this month","pack.lastTopUp":"Last top-up","pack.topUp":"{date} \xB7 +{n}","pack.usage":"Usage","pack.usageTitle":"\u201CI pay\u201D usage in the last 30 days","pack.usageEmpty":"No \u201CI pay\u201D calls in the last 30 days","pack.col.day":"Date","pack.col.page":"Page","pack.col.calls":"Calls","pack.col.visitors":"Visitors","pack.col.points":"Points","pack.storeTitle":"Store","pack.storeUnavailable":"Open Store \u203A Items to buy a pack","saved.empty":"No saved pages yet","saved.emptyHint":"Tap the star beside someone\u2019s page to save it here.","saved.open":"Open","saved.author":"Author page","saved.unsave":"Unsave","saved.aiAuthor":"AI on the author","saved.aiVisitor":"AI \xB7 you pay","backpack.effect.connectPack":"Pack balance +{n} points","backpack.effect.other":"Other effect","backpack.packUsed":"Added to your pack balance","backpack.packUsedLine":"+{n} points \xB7 {balance} points now","sub.desc":"Manage your submissions, review results and version updates.","sub.new":"New submission","sub.refresh":"Refresh","sub.empty":"No submissions yet","sub.emptyHint":"Share your plugins, skills, Agents or Spaces in the marketplace.","sub.name":"Name","sub.summary":"Summary","sub.type":"Content type","sub.source":"Source","sub.type.skill":"Skill","sub.type.agent":"Agent","sub.type.plugin":"Plugin","sub.type.space":"Space","sub.type.theme":"Theme","sub.type.amadeus_plugin":"Amadeus plugin","sub.pending":"Pending review","sub.approved":"Published","sub.rejected":"Rejected","sub.pendingVersion":"v{version} update pending review","sub.rejectedVersion":"v{version} update rejected","sub.submit":"Submit for review","sub.submitted":"Submitted. The review result appears here and in your inbox.","sub.updated":"Update submitted for review. The published version stays available until then; the result goes to your inbox.","sub.repo":"Public GitHub repository","sub.npm":"Public npm package","sub.repoHint":"README and Releases come from the repository; its owner is shown as the publisher.","sub.npmHint":"Package metadata comes from npm; the public repository owner is shown as the publisher.","sub.reviewHint":"New versions require review before distribution. Your Forsion account manages the submission.","sub.zipHint":"Up to 50 MB. Include the required manifest and entry files.","sub.filter":"Filter by status","sub.all":"All","sub.noResults":"No matching submissions","sub.downloads":"{n} downloads","sub.errName":"Enter a name.","sub.errSource":"Enter a public repository URL or npm package name.","sub.errZip":"Choose a ZIP archive.","sub.errLarge":"ZIP archives must not exceed 50 MB.","sub.err.market_npm_invalid":"The npm package is unavailable or does not meet the plugin requirements.","sub.err.market_npm_source":"Publish the new version on npm for review.","sub.err.market_github_source":"Publish a GitHub Release for review.","sub.err.market_not_found":"Submission unavailable. Refresh and retry.","sub.err.market_zip_required":"Choose a ZIP archive.","sub.err.market_zip_invalid":"The ZIP structure does not meet the publishing requirements.","sub.err.market_zip_too_large":"ZIP archives must not exceed 50 MB.","sub.err.market_version_required":"The package has no version. Add one to the manifest (for skills, version or metadata.version in SKILL.md) and repackage.","sub.err.market_version_invalid":"Enter a valid version.","sub.err.market_version_mismatch":"The version does not match the manifest.","sub.err.market_version_not_newer":"The new version must be newer than the published version.","sub.err.market_icon_invalid":"Use a square PNG icon between 64 and 512 px.","sub.err.market_duplicate":"This content has already been submitted. Manage the existing submission.","sub.err.market_update_pending":"An update is already awaiting review.","sub.err.market_stale":"The submission has changed. Refresh and retry.","sub.notNewer":"The package says v{version}; it must be newer than the Store\u2019s v{current}.","sub.reqNone":"No version range or platforms declared","sub.dropTitle":"Drop a ZIP here, or click to choose one","sub.dropHint":"Up to 50 MB. It is checked first, not submitted yet.","sub.dropReplace":"{size} \xB7 Drop or click to replace","sub.checkType":"Type","sub.checkVersion":"Version","sub.checkIcon":"Icon","sub.checkReadme":"README","sub.checkReq":"Requirements","sub.checkWarn":"Note","sub.iconYes":"icon.png found in the package","sub.iconNo":"No icon.png; the card shows the type icon","sub.readmeYes":"Uses README.md from the package","sub.readmeKeep":"No README.md in the package; the current one stays","sub.readmeNo":"No README.md in the package","sub.warn.no_manifest":"No manifest found in the package","sub.warn.type_mismatch":"The package type differs from this submission\u2019s type","sub.warn.tag_version_mismatch":"The release tag differs from the package version","sub.warn.id_slug_mismatch":"The package id differs from the install folder name. Users are not affected: updates go to the same folder and no second copy appears. The folder name cannot change after listing","sub.warn.engine_slug_mismatch":"The engine plugin folder name differs from its id","sub.warn.no_entry":"The Amadeus plugin has no main.js entry","sub.warn.has_node_modules":"The package includes node_modules, which is large and usually unneeded","sub.zipListedNote":"Until it\u2019s approved, the Store keeps serving the published version. The review result goes to your inbox.","sub.zipUnlistedNote":"Submitting replaces the current package and sends it back for review.","sub.submitVersion":"Submit v{version} for review","sub.checkNew":"Check for a new version","sub.checkAgain":"Check again","sub.upToDate":"The latest upstream version is v{version} and the Store has v{current}. Publish a new version, then check again.","sub.upstreamLatest":"Latest upstream: v{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"Store has v{version}","sub.githubNote":"Once approved, the Store pins v{version}. After your next GitHub release, come back and check again.","sub.npmNote":"Once approved, the Store pins v{version}. After your next npm release, come back and check again.","sub.secVersion":"Version","sub.secInfo":"Store details","sub.secHistory":"History","sub.edit":"Edit","sub.unset":"Not set","sub.infoNote":"No package or new version needed. Changes to a published item are reviewed too; until then the Store shows the current details.","sub.submitInfo":"Submit changes","sub.back":"Back to list","sub.pendingInfo":"Details change pending review","sub.rejectedInfo":"Details change rejected","sub.pendingHint":"The Store stays unchanged until approval. The review result goes to your inbox.","sub.inReview":"Waiting for its first review. The result goes to your inbox.","sub.histApproved":"v{version} approved","sub.histSubmitted":"Submitted","sub.resubmitted":"Resubmitted for review. The result goes to your inbox.","sub.infoSubmitted":"Changes submitted for review. The Store shows the current details until then.","sub.err.market_no_release":"This repository has no GitHub release yet. The Store pins a version, so publish a release on GitHub, then check again.","sub.err.market_no_changes":"Nothing changed.","sub.err.market_dryrun_unsupported":"GitHub and npm submissions can\u2019t be checked in advance. Submit them for review.","page.account":"Account","page.membershipUsage":"Membership & usage","page.membershipQuota":"Membership & quota","page.pointsInvite":"Points & invites","account.details.title":"Sign-in & details","account.details.desc":"Edit your photo, nickname and bio under Profile.","account.details.username":"Username","diag.unavailable":"This host does not support diagnostic data. Update Forsion and try again.","page.profile":"Profile","page.quota":"Quota & points","page.backpack":"Backpack","page.security":"Security","page.usage":"Usage","page.feedback":"Feedback","store.group":"Membership & points","store.membership":"Membership","store.membership.desc":"Upgrade your plan for more daily and weekly quota","store.points":"Points","store.points.desc":"Buy points and use them to redeem items","store.items":"Items","store.items.desc":"Items you can redeem with points. Redeemed items go to your backpack","store.status":"Plan and points","store.tier":"Current plan","store.balance":"Points balance","store.choosePlan":"Choose a plan","store.payHint":"You pay on the payment page in your browser. This page refreshes when you come back","store.payOff":"Purchases are unavailable right now","store.period":"Billing period","store.period.monthly":"Monthly","store.period.quarterly":"Quarterly","store.period.yearly":"Yearly","store.per.monthly":"/ month","store.per.quarterly":"/ quarter","store.per.yearly":"/ year","store.currentTier":"Current plan","store.pay":"Pay","store.payPrice":"Pay {price}","store.noPlans":"No plans are available right now","store.packs":"Point packs","store.packsHint":"You pay on the payment page in your browser. Points arrive right after payment","store.noPacks":"No point packs are available right now","store.kind.pack":"Point pack","store.kind.card":"Consumable","store.kind.code":"Redeem code","store.kind.item":"Item","store.nPoints":"{n} points","store.instant":"Arrives right after payment","store.redeemTitle":"Redeem with points","store.redeemHint":"Redeeming with points completes right here. Items go to your backpack","store.redeem":"Redeem for {n} points","store.redeemConfirm":"Confirm: spend {n} points","store.redeemed":"Redeemed. The item is in your backpack","store.uncertain":"No response came back. Check your backpack before you try again","store.soldOut":"Sold out","store.left":"{n} left","store.toBackpack":"Goes to your backpack","store.limitReached":"You've reached the purchase limit","store.unavailable":"This item can't be redeemed right now","store.noItems":"Nothing to redeem right now","store.itemsOff":"Item redemption isn't available yet","store.openBackpack":"Open backpack","backpack.desc":"View the items you have collected. Select a slot for details.","backpack.refresh":"Refresh","backpack.total":"{n} items","backpack.grid":"Backpack items","backpack.slot":"{name}, quantity {n}","backpack.item":"Item","backpack.empty":"Your backpack is empty","backpack.emptyHint":"Items you redeem or receive will appear here.","backpack.select":"Select an item to view details","backpack.details":"Item details","backpack.quantity":"Quantity","backpack.acquired":"Acquired","backpack.source":"Received through","backpack.source.points":"Points exchange","backpack.source.admin":"Gift","backpack.source.reward":"Reward","backpack.source.other":"Cloud account","backpack.consumable":"Consumable","backpack.voucher":"Voucher","backpack.getCards":"View quota","backpack.manageCards":"Use it","backpack.reveal":"Reveal key","backpack.copyKey":"Copy key","backpack.noKey":"This item has no key.","backpack.use":"Use","backpack.confirmUse":"Confirm use","backpack.consumeConfirm":"Using this item consumes one copy.","backpack.collectible":"Collectible","backpack.effect.points":"+{n} points","backpack.effect.cards":"+{n} reset cards","backpack.effect.quota":"Reset daily and weekly quota","backpack.rarity.common":"Common","backpack.rarity.rare":"Rare","backpack.rarity.epic":"Epic","backpack.rarity.legendary":"Legendary","backpack.unavailable":"This item is no longer available. Refresh your backpack.","backpack.notUsable":"This item cannot be used.","backpack.quotaUnavailable":"Use cloud AI to initialize your quota before using this item.","common.cancel":"Cancel","common.copied":"Copied","common.copyFailed":"Couldn't copy","common.done":"Done","common.loadFailed":"Couldn't load","common.loadMore":"Load more","common.loading":"Loading\u2026","common.openInBrowser":"Open in browser","common.retry":"Retry","common.save":"Save","common.thisWeek":"This week","common.today":"Today","common.unlimited":"Unlimited","ann.eyebrow":"FORSION \xB7 Announcement","ann.close":"Close","ann.ok":"Got it","signin.button":"Sign in to Forsion","signin.desc":"Sign in to your Forsion account to manage your account, quota, security, submissions and feedback here.","signin.pending":"Waiting for you to finish in your browser\u2026","signin.deviceHint":"Your browser opens the sign-in page on its own. If it doesn't, scan the code with your phone or open the link below, and check that the code matches.","signin.code":"Code","signin.openLink":"Open sign-in page","signin.copyLink":"Copy link","signin.qrLabel":"Sign-in QR code","account.profile.title":"Profile","account.profile.desc":"Your photo and nickname, plus the phone and email linked to your account","account.avatar.change":"Change photo","account.avatar.saved":"Photo updated","account.nickname.edit":"Edit nickname","account.nickname.label":"Nickname","account.nickname.saved":"Nickname updated","account.role.admin":"Admin","account.username":"Username {name}","account.contact.phone":"Phone","account.contact.email":"Email","account.contact.unbound":"Not linked","account.contact.manage":"Manage in Security","account.web.open":"Open the account center in your browser","account.web.desc":"Cloud storage, AI Brain and themes are managed in the web account center.","wechat.title":"WeChat Helper","wechat.desc":"Send Xiaohongshu, Bilibili, X or web links to the Forsion WeCom account and they are clipped into Plugins/wechat-helper in your cloud vault. Other messages go into a daily note.","wechat.status":"Status","wechat.bound":"Bound","wechat.boundAt":"Bound on {date}","wechat.where":"Links you send to the WeCom account appear in Plugins/wechat-helper in your vault, usually within a minute.","wechat.notEligible":"Your current membership tier cannot use WeChat Helper.","wechat.disabled":"WeChat Helper is not available yet.","wechat.code":"Binding code","wechat.contact":"First add {contact} in WeChat","wechat.contactUnknown":"First add the Forsion WeCom account in WeChat","wechat.getCode":"Get binding code","wechat.newCode":"New code","wechat.copy":"Copy binding code","wechat.send":"{contact}, then send it these digits.","wechat.waiting":"Waiting for binding\u2026 The code is valid until {time}. WeCom won't reply; this updates once you are bound.","wechat.unbind":"Unbind","wechat.unbindConfirm":"Confirm unbind","address.label":"Page address","address.change":"Change","address.title":"Change your page address","address.desc":"Everything you publish lives under this address. After a change, the old address keeps redirecting to the new one and nobody else can take it.","address.now":"Now","address.new":"New","address.rule":'3\u201330 characters: lowercase letters, digits or "-"',"address.checking":"Checking\u2026","address.ok":"Available","address.bad":"Not available","address.same":"This is already your address","address.freeOne":"This is your one free change","address.freeN":"This one is free (you have {n} free changes)","address.freeAfter":"After that, an address rename card","address.card":"Uses 1 address rename card","address.cardHave":"You have {n}","address.need":"Changing needs 1 address rename card. You have none","address.price":"{price} points \xB7 balance {balance}","address.soldout":"Address rename cards are not on sale right now","address.cooldown":"Address changes need {days} days in between","address.cooldownUntil":"You can change it again after {date}","address.go":"Change address","address.goCard":"Use a card","address.goBuy":"Buy one for {price} points","address.shop":"Open the shop","address.done":"Your page address is now {url}","address.loadFailed":"Could not load your address right now.","address.errTaken":"Someone just took this address. Try another one.","address.errNeedCard":"No free changes left. Changing needs an address rename card.","address.errCooldown":"Not yet: you can change it again after {date}.","address.errPoints":"Not enough points for the card.","address.errBought":"The card is in your backpack, but the address was not changed: {reason}","address.errSoldout":"Address rename cards were just taken off sale.","address.errLimit":"You have reached the purchase limit for address rename cards.","address.errUnknown":"Could not confirm whether the address changed. Refresh in a moment to check.","backpack.addressCard":"Address rename card","backpack.addressCard.desc":"Once your free changes are used up, each change of your page address takes one card. The old address keeps redirecting and nobody else can take it.","backpack.addressCard.use":"Change address","member.title":"Membership","member.desc":"Your tier, plan and expiry date","member.upgrade":"Upgrade membership","member.renew":"Renew","member.freeName":"Free plan","member.freeHint":"Upgrade to get more AI quota","member.expires":"Expires {date}","member.noExpiry":"No expiry","member.loadFailed":"Couldn't load your membership.","session.title":"Sign-in","session.desc":"Manage your sign-in on this device","local.title":"Accounts on this computer","local.desc":"Switch between accounts you've signed in with","local.current":"Current","local.switch":"Switch","local.add":"Sign in to another account","local.signOut":"Sign out","local.empty":"No saved accounts yet","local.loadFailed":"Couldn't read the account list","diag.title":"Diagnostic data","diag.desc":"Helps us troubleshoot problems and improve Forsion. Off by default.","diag.enable":"Upload diagnostic data","diag.enableDesc":"When this is on, this computer periodically uploads a snapshot of its Forsion setup to your Forsion account, where the Forsion team can view it. The Forsion team sets how often, once a day by default. You can turn it off at any time.","diag.collected":"What's uploaded","diag.item.app":"App and system versions, this computer's name, and its free memory and disk space","diag.item.settings":"Your model and voice choices, the switches and numeric values in background agent and plugin settings, and the names and on/off state of MCP servers and message channels","diag.item.agents":"Agent and team configuration (options such as name and model; descriptions and prompts are recorded by length only, and their text falls under the personas, memory and evolution switch below)","diag.item.plugins":"Names and versions of installed plugins, skills, themes and Spaces","diag.item.runs":"Run records from the last 7 days: each run's status and error reason, usage and timing of model calls and tools (no conversation text, and nothing those tools read or wrote), and the engine's recent log output","diag.item.sync":"Cloud sync status: which categories your sync rules cover, how many files recent sync rounds uploaded, downloaded, deleted or saved as conflict copies, and why syncing failed (paths are masked; no file names or file contents)","diag.notCollected":"Never uploaded: the sign-in credentials and API keys saved on this computer, your note files, agent libraries, or plugin data.","diag.sessions":"Include conversations","diag.sessionsDesc":"Conversations on this computer: the text of your messages and the agent's replies, the agent's reasoning and the names of the tools it used, including the background work of team members, discussions and delegated tasks. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. What those tools read or wrote and the attachments themselves are left out; file names that appear in messages, and anything the agent repeated from your notes or files in its replies, are included. Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.memory":"Include agent personas, memory and evolution records","diag.memoryDesc":"Each agent's persona (including the description and developer instructions in its configuration), and what the agent has built up on its own: its memory and the memory candidates it hasn't consolidated yet, its evolution record, its collaboration notes for you, the last 7 days of its logs and memory-consolidation activity, and project memory; plus your teams' charters and your user profile. These are the instructions you wrote for your agents and teams, and the facts they noted about you and your work from conversations. Each upload carries their current content (very long ones are cut short). Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.activity":"Include activity log","diag.activityDesc":"Your activity records, which include the first few dozen characters of conversations and the names of note files. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. If you'd rather not share them, turn this off before you turn uploads on.","diag.last":"Last upload: {time}","diag.noUpload":"Nothing uploaded yet","diag.freq.hour":"every hour","diag.freq.hours":"every {n} hours","diag.freq.day":"once a day","diag.freq.days":"every {n} days","diag.freq.manual":"only when the Forsion team requests it","diag.retention":"The cloud keeps this computer's snapshots from the last {n} days. Turning this off stops uploads; snapshots already uploaded stay in the cloud. To have them deleted, let us know under Feedback.","page.privacy":"Privacy and data","privacy.tab":"Help improve","privacy.unavailable":"This version of Forsion does not support helping improve Forsion. Update Forsion and try again.","privacy.needUpdate":"This version of Forsion does not send this data yet. It takes effect after you update Forsion.","privacy.devBuild":"Development builds never send any data.","privacy.signInFirst":"Sign in to turn this on. Nothing is sent while you are signed out.","privacy.improve.title":"Help improve Forsion","privacy.improve.desc":"Sends metadata only, so we can find bugs and slow spots. It only sends while you are signed in to Forsion, and it is not linked to your account.","privacy.improve.switch":"Send crash reports and usage statistics","privacy.improve.switchHint":"Turning this off stops sending right away and discards anything still queued on this device.","privacy.policyLink":"See the Privacy Policy for what is collected and how long it is kept","privacy.sent.title":"Sent in the last 7 days","privacy.sent.hint":"A copy stays on this device so you can read every event.","privacy.sent.last":"A copy stays on this device so you can read every event. Last sent: {time}","privacy.sent.view":"View","privacy.sent.empty":"Nothing has been sent in the last 7 days.","privacy.delete.title":"Delete sent data","privacy.delete.hint":"Removes every record for this device's install ID from our servers and issues a new ID.","privacy.delete.button":"Delete","privacy.delete.confirm":"Confirm delete","privacy.delete.done":"Deleted. This device now has a new install ID.","privacy.delete.failed":"Could not delete: {reason}","privacy.installId":"Install ID {id} \xB7 not linked to your account","diag.uploadNow":"Upload now","diag.uploaded":"Uploaded","diag.failed":"Upload failed: {reason}","quota.ai.title":"AI quota","quota.ai.desc":"What's left today and this week; when it runs out, use a quota reset card or continue with points","quota.resetDaily":"Resets daily at 0:00 (Beijing time)","quota.resetWeekly":"Resets {date} at 0:00 (Beijing time)","card.title":"Quota reset card","card.desc":"Restores today's and this week's AI quota to 100%","card.owned":"You have {n}","card.use":"Use one","card.useConfirm":"Confirm","card.used":"Used 1 quota reset card","card.left":"{n} left","card.noneHint":"You have no quota reset cards left. They come from invitations, achievements and event rewards.","fallback.title":"Continue with points when quota runs out","fallback.desc":"When on, usage beyond your quota is paid from your points balance. Background tasks never use points.","fallback.balance":"Points balance {n}","fallback.unknown":"Status unknown. Try again","quota.out.cardOrPoints":"Your AI quota is used up. Use a reset card to restore it, or turn on Continue with points below.","quota.out.points":"Your AI quota is used up. Turn on Continue with points below to keep going.","quota.out.cardOrTopUp":"Your AI quota is used up. Use a reset card to restore it, or buy points and turn on Continue with points.","quota.out.topUp":"Your AI quota is used up. Buy points, then turn on Continue with points to keep going.","quota.out.card":"Your AI quota is used up. Use a reset card to restore it.","quota.out.usingPoints":"Your AI quota is used up. Continuing with points.","quota.out.pointsGone":"Your AI quota and points are both used up. Buy points or upgrade your plan to continue.","err.pointsFallbackUnavailable":"Not available right now. Try again later","member.modelsAll":"All models available","member.modelsCap":"Models up to {cap}\xD7 rate","points.title":"Points","points.desc":"Redeem items in the Store, or keep using AI after your quota runs out","points.balance":"Balance","points.balanceFailed":"Couldn't load your balance","points.recharge":"Buy points","bg.title":"Background quota","bg.desc":"Used by Muse and automations, counted separately from your AI quota","bg.autoMain":"Continue with AI quota when used up","bg.autoMainDesc":"When off, Muse and automations pause once the background quota runs out","bg.convert":"Move from AI quota","bg.convertDesc":"Moves a share of your AI quota limit, valid for the current period","bg.convertConfirm":"Move {pct}%","bg.converted":"Moved {pct}% from your AI quota","invite.title":"Invites & codes","invite.desc":"Invite friends to join, or redeem a code you received","invite.myCode":"My invite code","invite.count":"{n} invited","invite.copyCode":"Copy code","invite.copyLink":"Copy invite link","invite.loadFailed":"Couldn't load your invite code","invite.claim":"Enter an invite code","invite.claimDesc":"Within 7 days of signing up, you can enter a friend's invite code","invite.claimPlaceholder":"Friend's invite code","invite.claimSubmit":"Submit","invite.claimed":"Invite code applied","redeem.title":"Redemption code","redeem.desc":"Redeem points, membership or other rewards","redeem.placeholder":"Enter a code","redeem.submit":"Redeem","redeem.success":"Redeemed","redeem.successWith":"Redeemed: {what}","redeem.gotPoints":"{n} points","redeem.gotMembership":"membership","sec.methods.title":"Sign-in methods","sec.methods.desc":"Your phone and email can be used to sign in and reset your password","sec.bind":"Link","sec.change":"Change","sec.phone":"Phone number","sec.email":"Email address","sec.newPhone":"New phone number","sec.newEmail":"New email address","sec.phonePlaceholder":"Mainland China numbers as is; others with +country code","sec.emailPlaceholder":"name@example.com","sec.code":"Verification code","sec.codePlaceholder":"Enter the code","sec.sendCode":"Send code","sec.resendIn":"Resend in {s}s","sec.codeSent":"Code sent","sec.bindSubmit":"Link","sec.phoneBound":"Phone linked","sec.emailBound":"Email linked","sec.devices.title":"Signed-in devices","sec.devices.desc":"If you think someone else is using your account, sign out on every device","sec.logoutAll":"Sign out everywhere","sec.logoutAllDesc":"Including this device: every device has to sign in again","sec.logoutAllConfirm":"Confirm sign out everywhere","sec.logoutAllDone":"Signed out everywhere","pw.title":"Password","pw.desc":"{min}\u2013{max} characters, with a lowercase letter, an uppercase letter and a special character, and no spaces","pw.change":"Change password","pw.modeLabel":"How to change it","pw.mode.current":"With current password","pw.mode.code":"With a verification code","pw.current":"Current password","pw.currentRequired":"Enter your current password","pw.new":"New password","pw.confirm":"Confirm new password","pw.mismatch":"The new passwords don't match","pw.submit":"Change password","pw.submitReset":"Set new password","pw.changed":"Password updated","pw.noPasswordYet":"This account doesn't have a password yet. Set one with a verification code instead.","pw.codeNeedsContact":"Link a phone or email first to set a password with a verification code.","pw.via":"Send the code to","pw.codeTo":"The code goes to {target}","pw.rulesLabel":"Password rules","pw.req.length":"{min}\u2013{max} characters","pw.req.lower":"A lowercase letter","pw.req.upper":"An uppercase letter","pw.req.special":"A special character","pw.req.space":"No spaces","pw.rule.format":"Invalid password","pw.rule.min":"Password must be at least 8 characters","pw.rule.max":"Password can't be longer than 64 characters","pw.rule.space":"Password can't contain spaces","pw.rule.lower":"Password needs a lowercase letter","pw.rule.upper":"Password needs an uppercase letter","pw.rule.special":"Password needs a special character","del.title":"Delete account","del.desc":"Permanently delete your account and all its data. This can't be undone","del.start":"Delete account","del.warn":"Deleting your account removes your account, points, membership, cloud storage and all other data for good.","del.methodLabel":"Verify with","del.byCode":"Verification code","del.byPassword":"Password","del.codeLabel":"Code sent to {target}","del.passwordLabel":"Account password","del.submit":"Delete account","del.confirm":"Delete permanently","del.done":"Account deleted","usage.overview.title":"Overview","usage.overview.desc":"Requests and AI quota used in the selected period","usage.range":"Time range","usage.days":"{n} days","usage.requests":"Requests","usage.successRate":"Success rate","usage.consumption":"AI quota used","usage.ofToday":"Of your daily limit","usage.unlimitedNote":"Your AI quota is unlimited, so usage isn't shown as a percentage.","usage.noLimitNote":"Your daily limit is 0 or unavailable right now, so usage isn't shown as a percentage.","usage.byModel.title":"By model","usage.byModel.desc":"Requests and quota used per model","usage.byApp.title":"By app","usage.byApp.desc":"Requests and quota used per app","usage.col.model":"Model","usage.col.app":"App","usage.col.requests":"Requests","usage.col.consumption":"Quota used","usage.empty":"No usage in this period","usage.appUnknown":"Other","usage.recent.title":"Recent usage","usage.recent.desc":"Each call as a share of your daily limit","usage.recentEmpty":"No usage yet","usage.failed":"Failed","usage.shown":"Showing {shown} of {total}","fb.list.title":"My feedback","fb.list.desc":"Issues and suggestions you've sent; replies show up here","fb.new":"New feedback","fb.empty":"No feedback yet","fb.untitled":"Untitled feedback","fb.unread":"New reply","fb.shown":"Showing {n}","fb.submitted":"Sent. We'll reply as soon as we can","fb.descLabel":"Describe the issue or suggestion","fb.descPlaceholder":"What happened, and what did you expect?","fb.imagesHint":"Attach up to {n} screenshots (5 MB each). You can paste or drop them here.","fb.addImages":"Add screenshots","fb.removeImage":"Remove this image","fb.submit":"Send","fb.back":"Back to list","fb.you":"You","fb.support":"Forsion team","fb.attachment":"Attachment","fb.imagePreview":"View image","fb.closedNote":"This ticket is closed and can't take replies. Send new feedback for a new issue.","fb.replyPlaceholder":"Reply\u2026","fb.replySend":"Send reply","fb.replySent":"Reply sent","fb.status.open":"Open","fb.status.in_progress":"In progress","fb.status.resolved":"Resolved","fb.status.closed":"Closed","err.accountGone":"This account is signed out. Sign in again","err.adminCannotDelete":"Admin accounts can't be deleted here","err.avatarInvalid":"Couldn't read this image. Try another one","err.avatarTooLarge":"This image is too large. Try a smaller one","err.backgroundUnavailable":"Background quota is unavailable right now","err.captcha":"You need to finish a verification check in your browser","err.codeCooldown":"Too many codes requested. Try again shortly","err.codeInvalid":"The code is wrong or has expired","err.codeRequired":"Enter the verification code","err.codeSendFailed":"Couldn't send the code. Try again later","err.currentPasswordWrong":"Your current password is incorrect","err.deleteTargetInvalid":"Codes can only go to the phone or email linked to your account","err.deleteVerifyFailed":"Verification failed, so your account wasn't deleted","err.emailInUse":"This email is already used by another account","err.emailInvalid":"Enter a valid email address","err.featureDisabled":"This feature is turned off for now","err.feedbackEmpty":"Describe the issue or suggestion first","err.feedbackTooLong":"The description is too long (10,000 characters max)","err.generic":"That didn't work. Try again later","err.imageRead":"Couldn't read the image","err.imageTooLarge":"Each image must be 5 MB or less","err.imageType":"Only images can be added","err.insufficientMainQuota":"Your AI quota is used up, so there's nothing to move","err.insufficientPoints":"Not enough points","err.invalidInviteCode":"This invite code is invalid or has expired","err.inviteAlreadyUsed":"You've already used an invite code","err.inviteEmpty":"Enter an invite code","err.inviteOwnCode":"You can't use your own invite code","err.inviteWindowExpired":"The 7-day window after sign-up has passed","err.loginCodeExpired":"The sign-in code expired. Sign in again","err.loginInProgress":"A sign-in is already in progress","err.loginTimeout":"Sign-in timed out. Try again","err.loginUnsupported":"This cloud doesn't support desktop sign-in","err.network":"Network error. Check your connection and try again","err.noCloudUrl":"Set the cloud address under Connection first","err.noResetCard":"You have no quota reset cards","err.openFailed":"Couldn't open the browser","err.passwordRequired":"Enter your current and new password","err.phoneInUse":"This phone number is already used by another account","err.phoneInvalid":"Enter a valid phone number (with +country code outside mainland China)","err.redeemEmpty":"Enter a code","err.redeemExpired":"This code has expired","err.redeemInactive":"This code is no longer active","err.redeemNotFound":"This code doesn't exist","err.redeemUsedUp":"This code has been used up","err.redeemUserLimit":"You've already redeemed this code","err.replyEmpty":"Write a reply first","err.replyTooLong":"The reply is too long (10,000 characters max)","err.server":"Server error ({status}). Try again later","err.session":"You've been signed out. Sign in again","err.signedOut":"Sign in to Forsion first","err.targetInvalid":"Enter a valid phone number or email","err.ticketNotFound":"This feedback doesn't exist or was deleted","err.webPageGone":"This page doesn't exist or was taken down","err.listingGone":"This page has no store listing","err.listingSummary":"Add a store summary (up to 300 characters)","err.tooFrequent":"Too many attempts. Try again shortly","err.tooManyImages":"You can add up to 5 images","err.unavailable":"This version of Forsion can't do that yet. Update Forsion","profile.unsupported":"This server doesn't have profiles yet","profile.state.private":"Only you can see this","profile.state.public":"Public","profile.state.privateDesc":"Once public, anyone with the address can see your profile without signing in","profile.linkUnavailable":"Public link unavailable","profile.decorate":"Decorate","profile.publish":"Make public","profile.makePrivate":"Make private","profile.copyLink":"Copy link","profile.openPublic":"Open public profile in browser","profile.nowPublic":"Your profile is now public","profile.nowPrivate":"Your profile is private. The public address no longer opens","profile.bio":"Bio","profile.bioPlaceholder":"Add a short bio","profile.linkAdd":"Add a link","profile.linkRemove":"Remove link","profile.linkInvalid":"Links must start with http:// or https://, or be a plain domain","profile.joined":"Joined {date}","profile.stat.tokens":"Total tokens","profile.stat.activeDays":"Active days","profile.stat.longest":"Longest streak","profile.stat.current":"Current streak","profile.stat.installs":"Work installs","profile.unit.days":"d","profile.works":"Featured works","profile.worksPick":"Choose","profile.worksEmpty":"No published works yet. Publish to the store or as a web app, and they can go here.","profile.worksNone":"Nothing to feature yet. Works appear here once they are in the store or published as a web app.","profile.worksPicked":"{n} of {max} selected","profile.worksAuto":"With none selected, the most installed ones are shown","profile.goSubmit":"Submit a work","profile.workInstalls":"{n} installs","profile.workVisits":"{n} visits","profile.work.skill":"Skill","profile.work.agent":"Agent","profile.work.plugin":"Plugin","profile.work.space":"Space","profile.work.theme":"Theme","profile.work.note":"Notes plugin","profile.work.webapp":"Web app","profile.activity":"Activity","profile.activityDays":"Active on {n} days in the past year","profile.less":"Less","profile.more":"More","profile.badges":"Badges","profile.badgesEmpty":"No badges yet. Streaks, published works and invites all earn one.","profile.badge.early":"Early user","profile.badge.streak":"30-day streak","profile.badge.author":"Author","profile.badge.inviter":"Top inviter","profile.badge.event":"Event keepsake","profile.badgeSub.early":"Joined in {value}","profile.badgeSub.streak":"Longest streak: {value} days","profile.badgeSub.author":"{value} published works","profile.badgeSub.inviter":"Invited {value} friends","profile.badgeSub.event":"Took part in a Forsion event{value}","profile.insights":"Insights","profile.insightsEmpty":"Not enough usage yet. Check back in a few days.","profile.insightModel":"Most used model","profile.insightHours":"Most active hours","profile.deco.skin":"Public page color scheme","profile.deco.mode":"Public page appearance","profile.deco.publicHint":"These two only set what visitors see on the public page. Here the profile follows Forsion's current theme.","profile.deco.cover":"Cover","profile.deco.frame":"Avatar frame","profile.deco.modules":"Sections","profile.skin.cream":"Classic","profile.skin.coral":"Coral","profile.skin.teal":"Teal","profile.skin.lavender":"Lavender","profile.mode.auto":"Auto","profile.mode.light":"Light","profile.mode.dark":"Dark","profile.cover.none":"None","profile.cover.mist":"Mist","profile.cover.contour":"Contour","profile.cover.dots":"Dots","profile.frame.none":"None","profile.frame.ring":"Ring","profile.frame.pro":"Member ring","profile.frameProHint":"The member ring is for paid members.","profile.col.show":"Show","profile.col.public":"Public","profile.moveUp":"Move up","profile.moveDown":"Move down","profile.modulesHint":'"Show" decides whether a section is on your profile. "Public" decides whether visitors see it, once your profile is public.',"profile.mod.stats":"Stats","profile.mod.works":"Works","profile.mod.activity":"Activity","profile.mod.badges":"Badges","profile.mod.insights":"Insights","profile.modDesc.stats":"Total tokens, active days, streaks and installs of your works","profile.modDesc.works":"Works you have published, up to 6","profile.modDesc.activity":"Which days you were active in the past year (shades only, no numbers)","profile.modDesc.badges":"Join year, streaks, publishing, invites and events","profile.modDesc.insights":"Your most used model and most active hours","profile.publishDesc":"Once public, anyone with this address can see your profile without signing in. You decide section by section what visitors see.","profile.publishNever":"Your avatar, nickname, username, bio and links become public too. Your email, phone number, membership expiry, points and quota never appear on your profile.","profile.publishConfirm":"Make public","profile.blocked.machineUsername":"Your current username was generated by the system and contains part of your phone number or email, so making it public would expose that. Change your username on the Account page of the web account center first (each account can do this once), then come back.","profile.blocked.publishBlocked":"An administrator has stopped this profile from being public. Contact us through Feedback if you have questions.","profile.goRename":"Change username","profile.invalid":"This couldn't be saved. Check it and try again","guide.title":"Guide","guide.readOnly":"Read-only","guide.more":"More","guide.unlockAll":"Unlock all","guide.relock":"Unlock level by level","guide.reminders":"Guide reminders","guide.spotlight":"On-screen hints","guide.spotStep":"Step {n} of {total}","guide.figure":"Diagram","guide.openAchievements":"Open achievements","guide.tasks":"Tasks in this chapter","guide.go":"Take me there","guide.desktopOnly":"Do it on your computer","guide.taskDone":"Done","guide.askTangu":"Ask Tangu","guide.progress":"Progress","guide.justUnlocked":"Just unlocked","guide.lockedHint":"Locked","guide.whatsNew":"What's new in {version}","guide.level.lv1":"Lv.1 Getting started","guide.level.lv2":"Lv.2 Finding your way","guide.level.lv3":"Lv.3 Making it yours","guide.level.lv4":"Lv.4 Going further","guide.locked.title":"This chapter is still locked","guide.locked.body":"Finish the tasks in {level} to read the rest.","guide.locked.left":"Still to do:","guide.locked.hint":"Been around a while? Unlock everything from the \xB7\xB7\xB7 menu.","guide.levelProgress":"This level: {done}/{total}","guide.next":"Next level","guide.allDone":"All done","guide.allDoneBody":"You've done every task in the guide. Come back any time.","guide.review":"Look back","guide.ask.hint":'Questions about "{chapter}"? Ask Tangu opens a new chat with this chapter attached.',"guide.ask.placeholder":"What would you like to know?","guide.ask.send":"Start a chat","guide.ask.prompt":`I'm reading the "{chapter}" chapter of the Forsion guide; it's attached below. {question}`,"guide.ask.unavailable":"Chat isn't available here","guide.ask.chatTitle":"Guide Q&A","guide.companion.back":"Back to the guide","guide.companion.close":"Close","guide.toast.taskDone":"Done: {task}","guide.letter.levelTitle":"{level} unlocked: try these next","guide.letter.levelBody":'You finished the previous level, so these chapters are open now. Every task has a "Take me there" button.',"guide.letter.versionTitle":"{n} new things to try in {version}","guide.letter.versionBody":"New in this version, ready to try:","guide.letter.open":"Open the guide","guide.status.done":"Done","guide.cmd.open":"Open the guide","penzor.title":"Penzor Cloud","penzor.overview":"Overview","penzor.places":"Places","penzor.details":"Details","penzor.ledger.sync":"Vault sync","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"App files","penzor.ledger.exports":"Exports","penzor.trash":"Trash","penzor.items":"{n} items","penzor.total.sub":"Stored in Forsion Cloud \xB7 updated {time}","penzor.justNow":"just now","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} vaults \xB7 last write {time}","penzor.card.syncSubNone":"{n} vaults","penzor.card.syncFoot":"Files over {size} are not uploaded","penzor.card.syncWarn":"Almost full: after {max}, new files stop uploading; files already in the cloud keep syncing","penzor.card.amaSmall":"Not counted in your quota","penzor.card.amaSub":"{n} cloud vaults","penzor.card.amaFoot":"Notes and attachments on the Cloud side of Amadeus","penzor.card.appsFoot":"Trash: {n} items \xB7 {size}","penzor.card.appsWarn":"Almost full: after {max}, apps can't save new files. Trash counts too, so emptying it frees space","penzor.card.expSmall":"{n} files","penzor.card.expSub":"Latest: {name} \xB7 {time}","penzor.card.expFoot":"Files exported from apps","penzor.card.none":"Nothing yet","penzor.largest":"Largest files","penzor.col.name":"Name","penzor.col.size":"Size","penzor.col.mtime":"Modified","penzor.col.device":"Written by","penzor.col.deleted":"Deleted","penzor.col.origin":"Original location","penzor.col.app":"From","penzor.sort.mtime":"By modified","penzor.sort.size":"By size","penzor.sort.name":"By name","penzor.search":"Search file names here","penzor.sync.thisDevice":"Syncing on this device","penzor.meta.files":"{size} \xB7 {n} files","penzor.sync.last":"Last write {time} \xB7 {device}","penzor.sync.lastNoDevice":"Last write {time}","penzor.sync.devices":"{n} devices sync this vault","penzor.sync.meter":"Vault sync shares {max}; {used} used","penzor.apps.meter":"App files share {max}; {used} used (trash included)","penzor.apps.by":"Written by {app}","penzor.ama.notCounted":"Not counted in your quota","penzor.ama.open":"Open in Amadeus","penzor.hosted.open":"Manage my web pages","penzor.hosted.note":"These files belong to a published web page. Republish to change them, or take the page down in My web pages.","penzor.trash.meta":"{n} items \xB7 {size}","penzor.trash.note":"Space frees up once items are deleted permanently","penzor.trash.emptyBtn":"Empty trash","penzor.act.download":"Download","penzor.act.rename":"Rename","penzor.act.move":"Move to\u2026","penzor.act.trash":"Move to trash","penzor.act.delete":"Delete","penzor.act.restore":"Restore","penzor.act.purge":"Delete permanently","penzor.act.copyName":"Copy vault name","penzor.act.openSync":"Open sync settings","penzor.act.refresh":"Refresh","penzor.act.up":"Up one level","penzor.toast.trashed":"Moved \u201C{name}\u201D to trash","penzor.toast.restored":"Restored \u201C{name}\u201D","penzor.toast.purged":"Deleted \u201C{name}\u201D permanently","penzor.toast.emptied":"Trash emptied","penzor.toast.downloaded":"Saved to Downloads: {name}","penzor.toast.renamed":"Renamed to \u201C{name}\u201D","penzor.toast.moved":"Moved to \u201C{name}\u201D","penzor.toast.versionRestored":"Restored version {n}","penzor.toast.copied":"Vault name copied","penzor.toast.failed":"That didn't work: {reason}","penzor.confirm.purge":"Delete \u201C{name}\u201D permanently? This can't be undone.","penzor.confirm.empty":"Empty the trash? {n} items will be deleted permanently.","penzor.confirm.deleteExport":"Delete \u201C{name}\u201D? Exports have no trash, so this can't be undone.","penzor.cancel":"Cancel","penzor.side.where":"Location","penzor.side.mtime":"Modified","penzor.side.device":"Written by","penzor.side.thisDevice":"{name} (this device)","penzor.side.from":"From","penzor.side.versions":"Versions","penzor.side.versionsNone":"None","penzor.side.versionRow":"Version {n} \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"Restore this version","penzor.side.deletedAt":"Deleted","penzor.side.origin":"Original location","penzor.side.inner":"{n} more items inside come back with it","penzor.side.inTrash":"In trash \xB7 {size}","penzor.side.readonlySync":"Files in a synced vault are changed on your devices. Deleting one here would delete it on every device that syncs {vault}, so here you can only view and download.","penzor.side.readonlyAma":"Notes and attachments are changed in Amadeus. Deleting an attachment here would leave the notes that use it with missing images, so here you can only view and download.","penzor.side.exportNote":"Exports have no trash: deleting is permanent.","penzor.side.none":"Select a file to see its details","penzor.side.folder":"Folder \xB7 {n} items","penzor.side.folderPlain":"Folder","penzor.move.title":"Move to","penzor.move.root":"Top of {app}","penzor.move.here":"Move here","penzor.move.noFolders":"No folders at this level","penzor.rename.save":"Save","penzor.empty.title":"Nothing in Penzor Cloud yet","penzor.empty.lead":"These show up here once they're in the cloud:","penzor.empty.sync":"Pick Penzor Cloud as the remote service in Settings \u203A Sync, and your local vault syncs here","penzor.empty.ama":"Notes you write on the Cloud side of Amadeus","penzor.empty.apps":"Files apps save to the cloud or export","penzor.empty.openSync":"Open sync settings","penzor.out.title":"Sign in to see your Penzor Cloud","penzor.out.lead":"Penzor Cloud holds the vaults you sync to Forsion Cloud, your Amadeus Cloud notes and the files apps keep in the cloud.","penzor.out.signIn":"Sign in to Forsion","penzor.loading":"Loading\u2026","penzor.err":"Couldn't load: {reason}","penzor.folderEmpty":"No files here","penzor.noMatch":"No file names contain \u201C{q}\u201D","penzor.cmd.open":"Open Penzor Cloud","penzor.unreachable":"Can\u2019t reach Forsion Cloud. Try again later","penzor.toast.emptyPartial":"{n} items in the trash couldn\u2019t be deleted","penzor.sort.deleted":"By deleted","penzor.side.versionsN":"{n}","penzor.drive":"My drive","penzor.drive.meta":"Counts toward the {max} for app files","penzor.drive.empty":"Nothing here yet. Drag files in, or click Upload.","penzor.act.upload":"Upload","penzor.act.uploadMore":"More upload options","penzor.act.uploadFiles":"Upload files\u2026","penzor.act.uploadFolder":"Upload folder\u2026","penzor.act.uploadHere":"Upload here\u2026","penzor.act.newFolder":"New folder","penzor.act.clearSel":"Clear selection","penzor.newFolder.default":"New folder","penzor.sel.bar":"{n} selected \xB7 {size}","penzor.sel.title":"{n} selected","penzor.sel.sub":"{size} \xB7 {files} files","penzor.sel.subDirs":"{size} \xB7 {files} files, {dirs} folders","penzor.sel.download":"Download {n}","penzor.sel.saveTo":"Saves to","penzor.sel.saveToValue":"Downloads / {folder}","penzor.sel.noDirs":"Folders can\u2019t be downloaded yet; only the selected files will be.","penzor.download.folder":"Penzor Cloud {date}","penzor.drop.to":"Drop to upload to \u201C{place}\u201D","penzor.tx.busy":"Transferring {n}","penzor.tx.allDone":"All done","penzor.tx.failedN":"{n} didn\u2019t finish","penzor.tx.counts":"{up} up \xB7 {down} down","penzor.tx.eta":"about {eta} left","penzor.tx.doneN":"{n} finished","penzor.tx.restDone":"The other {n} finished","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"Queued","penzor.tx.paused":"Paused \xB7 resumes from the start","penzor.tx.uploaded":"Uploaded \xB7 {time}","penzor.tx.downloaded":"Downloaded \xB7 {time}","penzor.tx.canceled":"Canceled","penzor.tx.left":"{eta} left","penzor.tx.sec":"{n}s","penzor.tx.min":"{n} min","penzor.tx.pause":"Pause","penzor.tx.resume":"Resume","penzor.tx.cancel":"Cancel","penzor.tx.retry":"Retry","penzor.tx.remove":"Remove","penzor.tx.locate":"Show","penzor.tx.reveal":"Show in folder","penzor.tx.pauseAll":"Pause all","penzor.tx.resumeAll":"Resume all","penzor.tx.retryAll":"Retry all","penzor.tx.clearDone":"Clear finished","penzor.tx.clear":"Clear","penzor.tx.collapse":"Collapse","penzor.tx.expand":"Show transfers","penzor.tx.quota":"Not enough space: {size} short","penzor.tx.quotaSub":"Nothing in this batch was started","penzor.tx.freeSpace":"Free up space in Trash","penzor.err.too_large":"Over the 50 MB per-file limit ({size}); can\u2019t upload it yet","penzor.err.quota":"Not enough cloud space","penzor.err.network":"Connection lost at {pct}%","penzor.err.account_changed":"You switched accounts, so this one stopped","penzor.err.download_unavailable":"This host cannot save downloads yet. Update Forsion","penzor.err.download_failed":"The file was not saved. Try downloading it again","penzor.err.not_signed_in":"Not signed in","penzor.err.gone":"The file is no longer on this device","penzor.err.popup_blocked":"Your browser blocked the new tab. Allow pop-ups for this site and try again","penzor.err.changed":"The file changed while uploading. Try again","penzor.err.storage_unavailable":"Cloud storage is unavailable right now","penzor.err.other":"Didn\u2019t finish ({code})","penzor.err.too_many":"Up to {n} files at a time. Add them in smaller batches","penzor.toast.upDoneOne":"Uploaded \u201C{name}\u201D","penzor.toast.upDoneMany":"Uploaded {n} files","penzor.toast.downDoneMany":"Downloaded {n} files to Downloads","penzor.toast.txFailed":"{n} transfers didn\u2019t finish. Open Penzor Cloud to check","penzor.toast.folderExists":"There\u2019s already a folder called \u201C{name}\u201D","penzor.toast.trashedN":"Moved {n} items to the trash","penzor.toast.movedN":"Moved {n} items to \u201C{name}\u201D","penzor.toast.batchPartial":"{n} items didn\u2019t go through","penzor.sync.title":"Sync","penzor.sync.onN":"{n} on","penzor.sync.allOff":"All off","penzor.sync.waiting":"Waiting for you","penzor.sync.badgeWaiting":"{n} on \xB7 1 waiting for you","penzor.sync.running":"Syncing {pct}%","penzor.sync.runningPlain":"Syncing","penzor.sync.metaDevice":"This computer: {name}","penzor.sync.metaLast":"Last synced {time}","penzor.sync.metaNever":"Not synced yet","penzor.sync.every":"Every {n} min","penzor.sync.everyHours":"Every {n} h","penzor.sync.manual":"Manual","penzor.sync.onStart":"once at startup","penzor.sync.minAgo":"{n} min ago","penzor.sync.hoursAgo":"{n} h ago","penzor.sync.notesNamed":"Notes vault \u201C{name}\u201D","penzor.sync.notesPlain":"This computer\u2019s notes vault","penzor.sync.notesDesc":"The whole local vault, kept the same on your other computers","penzor.sync.agents":"Agents & memory","penzor.sync.agentsDesc":"Your agents\u2019 memory, logs, skills and working notes, plus your profile and default calendar","penzor.sync.conflictsN":"Conflict copies: {n}","penzor.sync.conflictsHint":"Files changed on both sides are kept twice: the other version is saved as a copy with \u201Cconflict\u201D in its name, in that agent\u2019s folder (or your profile folder)","penzor.sync.pluginsPending":"Changes not uploaded yet: {n} plugins","penzor.sync.agentsN":"Agents: {n}","penzor.sync.plugins":"Plugin data","penzor.sync.pluginsDesc":"Settings and data your plugins keep","penzor.sync.pluginsN":"Plugins: {n}","penzor.sync.off":"Off","penzor.sync.done":"Synced","penzor.sync.doneSize":"Synced \xB7 {size}","penzor.sync.firstPending":"Waiting for the first sync","penzor.sync.failed":"Last sync failed","penzor.sync.overQuota":"Over the limit, some files not uploaded","penzor.sync.to":"Syncing to {name}","penzor.sync.toFolder":"Syncing to a local folder","penzor.sync.decideAbove":"Choose in the card above","penzor.sync.kvSchedule":"Schedule","penzor.sync.kvDirection":"Direction","penzor.sync.kvSkipped":"Not uploaded","penzor.sync.kvWhere":"In the cloud","penzor.sync.change":"Change","penzor.sync.open":"Open","penzor.sync.dir.both":"Both ways","penzor.sync.dir.push":"Upload only","penzor.sync.dir.pull":"Download only","penzor.sync.skippedN":"{n} files over {size}","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"Devices syncing","penzor.sync.thisOne":"This computer","penzor.sync.lastWrite":"Last write {time}","penzor.sync.noDevices":"No devices are syncing yet","penzor.sync.phoneTitle":"What your phone and the web see","penzor.sync.phoneTip":"Your phone and the web read the cloud vault (the cloud side of Amadeus, {size}) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.phoneTipPlain":"Your phone and the web read the cloud vault (the cloud side of Amadeus) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.foot":"Schedule, direction and other storage (Dropbox / S3 / WebDAV) are in","penzor.sync.footLink":"Settings \u203A Sync","penzor.sync.askTitle":"There\u2019s already a notes vault in the cloud","penzor.sync.askCloud":"The cloud copy is from {device}: {files} files \xB7 {size}.","penzor.sync.askCloudNoDevice":"The cloud copy: {files} files \xB7 {size}.","penzor.sync.askLocal":"This computer has {local} files the cloud copy doesn\u2019t, and {conflicts} that differ.","penzor.sync.askMerge":"Merge both","penzor.sync.askCloudBtn":"Use the cloud copy","penzor.sync.askSkip":"Don\u2019t sync notes on this computer yet","penzor.sync.askExplain":"Merge keeps both sides; files that differ are saved again as a \u201C(conflict)\u201D copy. Use the cloud copy first moves this computer\u2019s differing files into a \u201C{backup}\u201D folder next to the vault, then downloads the cloud copy.","penzor.sync.askConfirm":"This computer\u2019s differing files move to \u201C{backup}\u201D first, then the cloud copy replaces them.","penzor.sync.askConfirmGo":"Move them and use the cloud copy","penzor.sync.backupName":"{name} backup before sync {date}","penzor.sync.quotaTitle":"Your notes vault is {size}, over the {max} limit of {ledger}","penzor.sync.quotaTitlePlain":"Your notes vault is over the {ledger} limit","penzor.sync.quotaBody":"Files that don\u2019t fit stay on this computer. Nothing is deleted, they just aren\u2019t uploaded, and everything else keeps syncing.","penzor.sync.quotaLarge":"Single files over {size} are never uploaded ({n}).","penzor.sync.quotaSee":"See what\u2019s not uploaded","su.title":"Store update","su.source.github":"GitHub source","su.source.npm":"npm source","su.source.zip":"ZIP upload","su.review":"In review","su.approved":"Approved","su.rejected":"Not approved","su.viaGithub":"GitHub release {tag}","su.viaNpm":"npm {version}","su.metaReview":"Submitted {time} \xB7 The result will arrive in your inbox","su.metaReviewNoTime":"The result will arrive in your inbox","su.metaApproved":"The Store now shows {version}","su.metaApprovedInfo":"The Store info is updated","su.metaRejected":"The Store keeps {version}","su.metaRejectedUnlisted":"Not listed yet","su.infoOnly":"Store info only","su.listSep":", ","su.openSubmission":"Open in Submissions","wc.title":"Web page","wc.pill.published":"Published","wc.pill.live":"Live","wc.pill.review":"Store review","wc.pill.listed":"In the Store","wc.pill.rejected":"Not accepted in the Store","wc.pill.gone":"Taken down","wc.justPublished":"Just published","wc.anyone":"Anyone with the link can open it","wc.open":"Open","wc.viewInPages":"View in My web pages","wc.manage":"Manage in My web pages","wc.total":"{n} published","wc.more":"{n} more","wc.unpublishTitle":"Take down {name}?","wc.unpublishBody":"The link stops working and the page's files are deleted from your cloud drive.","wc.unpublishAgain":"Click again to take down"},qc={zh:Eh,en:Ph},Oe=e=>e==="en"?"en":"zh";function we(e,t,o){let r=qc[e][t]??qc.zh[t]??t;return o?r.replace(/\{(\w+)\}/g,(a,i)=>i in o?String(o[i]):a):r}var Bn=e=>(t,o)=>we(e,t,o),ht=(e,t)=>"raw"in e?e.raw:t(e.key,e.vars);var Vc=`
|
|
68
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${an(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:o,tokens:r,autolink:a}){let i=a?an(o,!0):this.parser.parseInline(r),s=rc(e);if(s===null)return i;e=an(s,a);let l='<a href="'+e+'"';return t&&(l+=' title="'+an(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let a=rc(e);if(a===null)return an(o);e=a;let i=`<img src="${an(e)}" alt="${an(o)}"`;return t&&(i+=` title="${an(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:an(e.text)}},wi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},xn=class mi{options;renderer;textRenderer;constructor(t){this.options=t||uo,this.options.renderer=this.options.renderer||new Zr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wi}static parse(t,o){return new mi(o).parse(t)}static parseInline(t,o){return new mi(o).parseInline(t)}parse(t){this.renderer.parser=this;let o="";for(let r=0;r<t.length;r++){let a=t[r];if(this.options.extensions?.renderers?.[a.type]){let s=a,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){o+=l||"";continue}}let i=a;switch(i.type){case"space":{o+=this.renderer.space(i);break}case"hr":{o+=this.renderer.hr(i);break}case"heading":{o+=this.renderer.heading(i);break}case"code":{o+=this.renderer.code(i);break}case"table":{o+=this.renderer.table(i);break}case"blockquote":{o+=this.renderer.blockquote(i);break}case"list":{o+=this.renderer.list(i);break}case"checkbox":{o+=this.renderer.checkbox(i);break}case"html":{o+=this.renderer.html(i);break}case"def":{o+=this.renderer.def(i);break}case"paragraph":{o+=this.renderer.paragraph(i);break}case"text":{o+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return o}parseInline(t,o=this.renderer){this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=o.text(s);break}case"html":{r+=o.html(s);break}case"link":{r+=o.link(s);break}case"image":{r+=o.image(s);break}case"checkbox":{r+=o.checkbox(s);break}case"strong":{r+=o.strong(s);break}case"em":{r+=o.em(s);break}case"codespan":{r+=o.codespan(s);break}case"br":{r+=o.br(s);break}case"del":{r+=o.del(s);break}case"text":{r+=o.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},lr=class{options;block;constructor(e){this.options=e||uo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?yn.lex:yn.lexInline}provideParser(e=this.block){return e?xn.parse:xn.parseInline}},zi=class{defaults=gi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=xn;Renderer=Zr;TextRenderer=wi;Lexer=yn;Tokenizer=Yr;Hooks=lr;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(let r of e)switch(o=o.concat(t.call(this,r)),r.type){case"table":{let a=r;for(let i of a.header)o=o.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let s of i)o=o.concat(this.walkTokens(s.tokens,t));break}case"list":{let a=r;o=o.concat(this.walkTokens(a.items,t));break}default:{let a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);o=o.concat(this.walkTokens(s,t))}):a.tokens&&(o=o.concat(this.walkTokens(a.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),o.renderer){let a=this.defaults.renderer||new Zr(this.defaults);for(let i in o.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=o.renderer[s],c=a[s];a[s]=(...d)=>{let f=l.apply(a,d);return f===!1&&(f=c.apply(a,d)),f||""}}r.renderer=a}if(o.tokenizer){let a=this.defaults.tokenizer||new Yr(this.defaults);for(let i in o.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=o.tokenizer[s],c=a[s];a[s]=(...d)=>{let f=l.apply(a,d);return f===!1&&(f=c.apply(a,d)),f}}r.tokenizer=a}if(o.hooks){let a=this.defaults.hooks||new lr;for(let i in o.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=o.hooks[s],c=a[s];lr.passThroughHooks.has(i)?a[s]=d=>{if(this.defaults.async&&lr.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await l.call(a,d);return c.call(a,u)})();let f=l.call(a,d);return c.call(a,f)}:a[s]=(...d)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(a,d);return u===!1&&(u=await c.apply(a,d)),u})();let f=l.apply(a,d);return f===!1&&(f=c.apply(a,d)),f}}r.hooks=a}if(o.walkTokens){let a=this.defaults.walkTokens,i=o.walkTokens;r.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return yn.lex(e,t??this.defaults)}parser(e,t){return xn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{let r={...o},a={...this.defaults,...r},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,l=await(a.hooks?await a.hooks.provideLexer(e):e?yn.lex:yn.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser(e):e?xn.parse:xn.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer(e):e?yn.lex:yn.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let l=(a.hooks?a.hooks.provideParser(e):e?xn.parse:xn.parseInline)(s,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(s){return i(s)}}}onError(e,t){return o=>{if(o.message+=`
|
|
69
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+an(o.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(o);throw o}}},co=new zi;function Xe(e,t){return co.parse(e,t)}Xe.options=Xe.setOptions=function(e){return co.setOptions(e),Xe.defaults=co.defaults,dc(Xe.defaults),Xe};Xe.getDefaults=gi;Xe.defaults=uo;function kh(...e){return co.use(...e),Xe.defaults=co.defaults,dc(Xe.defaults),Xe}Xe.use=kh;Xe.walkTokens=function(e,t){return co.walkTokens(e,t)};Xe.parseInline=co.parseInline;Xe.Parser=xn;Xe.parser=xn.parse;Xe.Renderer=Zr;Xe.TextRenderer=wi;Xe.Lexer=yn;Xe.lexer=yn.lex;Xe.Tokenizer=Yr;Xe.Hooks=lr;Xe.parse=Xe;var vk=Xe.options,yk=Xe.setOptions,xk=Xe.walkTokens,kk=Xe.parseInline;var wk=xn.parse,zk=yn.lex;var aa,_e,wc,wh,Kn,yc,zc,Sc,Si,ea,pr,_c,Ti,_i,Ci,Cc,na={},oa=[],zh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fr=Array.isArray;function Nn(e,t){for(var o in t)e[o]=t[o];return e}function Ei(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fo(e,t,o){var r,a,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?aa.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ta(e,s,r,a,null)}function ta(e,t,o,r,a){var i={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++wc,__i:-1,__u:0};return a==null&&_e.vnode!=null&&_e.vnode(i),i}function R(e){return e.children}function kn(e,t){this.props=e,this.context=t}function po(e,t){if(t==null)return e.__?po(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?po(e):null}function Sh(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],a=[],i=Nn({},t);i.__v=t.__v+1,_e.vnode&&_e.vnode(i),Pi(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,o??po(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Ic(r,i,a),t.__e=t.__=null,i.__e!=o&&Ac(i)}}function Ac(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Ac(e)}function Ai(e){(!e.__d&&(e.__d=!0)&&Kn.push(e)&&!ra.__r++||yc!=_e.debounceRendering)&&((yc=_e.debounceRendering)||zc)(ra)}function ra(){try{for(var e,t=1;Kn.length;)Kn.length>t&&Kn.sort(Sc),e=Kn.shift(),t=Kn.length,Sh(e)}finally{Kn.length=ra.__r=0}}function Tc(e,t,o,r,a,i,s,l,c,d,f){var u,p,m,g,h,y,v=r&&r.__k||oa,x=t.length;for(c=_h(o,t,v,c,x),u=0;u<x;u++)(m=o.__k[u])!=null&&(p=m.__i!=-1&&v[m.__i]||na,m.__i=u,y=Pi(e,m,p,a,i,s,l,c,d,f),g=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Ii(p.ref,null,m),f.push(m.ref,m.__c||g,m)),h==null&&g!=null&&(h=g),4&m.__u?(c=Ec(m,c,e),p.__e&&(p.__e=null)):typeof m.type=="function"&&y!==void 0?c=y:g&&(c=g.nextSibling),m.__u&=-7);return o.__e=h,c}function _h(e,t,o,r,a){var i,s,l,c,d,f=o.length,u=f,p=0;for(e.__k=new Array(a),i=0;i<a;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=ta(null,s,null,null,null):fr(s)?s=e.__k[i]=ta(R,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=ta(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,c=i+p,s.__=e,s.__b=e.__b+1,l=null,(d=s.__i=Ch(s,o,c,u))!=-1&&(u--,(l=o[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(a>f?p--:a<f&&p++),typeof s.type!="function"&&(s.__u|=4)):d!=c&&(d==c-1?p--:d==c+1?p++:(d>c?p--:p++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<f;i++)(l=o[i])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=po(l)),Rc(l,l));return r}function Ec(e,t,o){var r,a;if(typeof e.type=="function"){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,t=Ec(r[a],t,o));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=po(e)),t=o.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function mr(e,t){return t=t||[],e==null||typeof e=="boolean"||(fr(e)?e.some(function(o){mr(o,t)}):t.push(e)),t}function Ch(e,t,o,r){var a,i,s,l=e.key,c=e.type,d=t[o],f=d!=null&&(2&d.__u)==0;if(d===null&&l==null||f&&l==d.key&&c==d.type)return o;if(r>(f?1:0)){for(a=o-1,i=o+1;a>=0||i<t.length;)if((d=t[s=a>=0?a--:i++])!=null&&(2&d.__u)==0&&l==d.key&&c==d.type)return s}return-1}function xc(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||zh.test(t)?o:o+"px"}function Qr(e,t,o,r,a){var i,s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||xc(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||xc(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(_c,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=o,o?r?o[pr]=r[pr]:(o[pr]=Ti,e.addEventListener(t,i?Ci:_i,i)):e.removeEventListener(t,i?Ci:_i,i);else{if(a=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function kc(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t[ea]==null)t[ea]=Ti++;else if(t[ea]<o[pr])return;return o(_e.event?_e.event(t):t)}}}function Pi(e,t,o,r,a,i,s,l,c,d){var f,u,p,m,g,h,y,v,x,w,z,I,F,$,N,Y,C=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(c=!!(32&o.__u),i=[l=t.__e=o.__e]),(f=_e.__b)&&f(t);e:if(typeof C=="function"){u=s.length;try{if(x=t.props,w=C.prototype&&C.prototype.render,z=(f=C.contextType)&&r[f.__c],I=f?z?z.props.value:f.__:r,o.__c?v=(p=t.__c=o.__c).__=p.__E:(w?t.__c=p=new C(x,I):(t.__c=p=new kn(x,I),p.constructor=C,p.render=Th),z&&z.sub(p),p.state||(p.state={}),p.__n=r,m=p.__d=!0,p.__h=[],p._sb=[]),w&&p.__s==null&&(p.__s=p.state),w&&C.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Nn({},p.__s)),Nn(p.__s,C.getDerivedStateFromProps(x,p.__s))),g=p.props,h=p.state,p.__v=t,m)w&&C.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),w&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(w&&C.getDerivedStateFromProps==null&&x!==g&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(x,I),t.__v==o.__v||!p.__e&&p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(x,p.__s,I)===!1){t.__v!=o.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(D){D&&(D.__=t)}),oa.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p),l=po(o);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(x,p.__s,I),w&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(g,h,y)})}if(p.context=I,p.props=x,p.__P=e,p.__e=!1,F=_e.__r,$=0,w)p.state=p.__s,p.__d=!1,F&&F(t),f=p.render(p.props,p.state,p.context),oa.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,F&&F(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++$<25);p.state=p.__s,p.getChildContext!=null&&(r=Nn(Nn({},r),p.getChildContext())),w&&!m&&p.getSnapshotBeforeUpdate!=null&&(y=p.getSnapshotBeforeUpdate(g,h)),N=f!=null&&f.type===R&&f.key==null?Mc(f.props.children):f,l=Tc(e,fr(N)?N:[N],t,o,r,a,i,s,l,c,d),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),v&&(p.__E=p.__=null)}catch(D){if(s.length=u,t.__v=null,c||i!=null){if(D.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i!=null&&(i[i.indexOf(l)]=null),t.__e=l}else if(i!=null)for(Y=i.length;Y--;)Ei(i[Y])}else t.__e=o.__e;t.__k==null&&(t.__k=o.__k||[]),D.then||Pc(t),_e.__e(D,t,o)}}else i==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):l=t.__e=Ah(o.__e,t,o,r,a,i,s,c,d);return(f=_e.diffed)&&f(t),128&t.__u?void 0:l}function Pc(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Pc))}function Ic(e,t,o){for(var r=0;r<o.length;r++)Ii(o[r],o[++r],o[++r]);_e.__c&&_e.__c(t,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(i){i.call(a)})}catch(i){_e.__e(i,a.__v)}})}function Mc(e){return typeof e!="object"||e==null||e.__b>0?e:fr(e)?e.map(Mc):e.constructor!==void 0?null:Nn({},e)}function Ah(e,t,o,r,a,i,s,l,c){var d,f,u,p,m,g,h,y=o.props||na,v=t.props,x=t.type;if(x=="svg"?a="http://www.w3.org/2000/svg":x=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!x&&(x?m.localName==x:m.nodeType==3)){e=m,i[d]=null;break}}if(e==null){if(x==null)return document.createTextNode(v);e=document.createElementNS(a,x,v.is&&v),l&&(_e.__m&&_e.__m(t,i),l=!1),i=null}if(x==null)y===v||l&&e.data==v||(e.data=v);else{if(i=x=="textarea"&&v.defaultValue!=null?null:i&&aa.call(e.childNodes),!l&&i!=null)for(y={},d=0;d<e.attributes.length;d++)y[(m=e.attributes[d]).name]=m.value;for(d in y)m=y[d],d=="dangerouslySetInnerHTML"?u=m:d=="children"||d in v||d=="value"&&"defaultValue"in v||d=="checked"&&"defaultChecked"in v||Qr(e,d,null,m,a);for(d in v)m=v[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?f=m:d=="value"?g=m:d=="checked"?h=m:l&&typeof m!="function"||y[d]===m||Qr(e,d,m,y[d],a);if(f)l||u&&(f.__html==u.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(u&&(e.innerHTML=""),Tc(t.type=="template"?e.content:e,fr(p)?p:[p],t,o,r,x=="foreignObject"?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:o.__k&&po(o,0),l,c),i!=null)for(d=i.length;d--;)Ei(i[d]);l&&x!="textarea"||(d="value",x=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||x=="progress"&&!g||x=="option"&&g!=y[d])&&Qr(e,d,g,y[d],a),d="checked",h!=null&&h!=e[d]&&Qr(e,d,h,y[d],a))}return e}function Ii(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(a){_e.__e(a,o)}}function Rc(e,t,o){var r,a;if(_e.unmount&&_e.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Ii(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){_e.__e(i,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Rc(r[a],t,o||typeof e.type!="function");o||Ei(e.__e),e.__c=e.__=e.__e=void 0}function Th(e,t,o){return this.constructor(e,o)}function Le(e,t,o){var r,a,i,s;t==document&&(t=document.documentElement),_e.__&&_e.__(e,t),a=(r=typeof o=="function")?null:o&&o.__k||t.__k,i=[],s=[],Pi(t,e=(!r&&o||t).__k=fo(R,null,[e]),a||na,na,t.namespaceURI,!r&&o?[o]:a?null:t.firstChild?aa.call(t.childNodes):null,i,!r&&o?o:a?a.__e:t.firstChild,r,s),Ic(i,e,s),e.props.children=null}function ia(e){function t(o){var r,a;return this.getChildContext||(r=new Set,(a={})[t.__c]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Ai(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),o.children}return t.__c="__cC"+Cc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}aa=oa.slice,_e={__e:function(e,t,o,r){for(var a,i,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(e)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,r||{}),s=a.__d),s)return a.__E=a}catch(l){e=l}throw e}},wc=0,wh=function(e){return e!=null&&e.constructor===void 0},kn.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Nn({},this.state),typeof e=="function"&&(e=e(Nn({},o),this.props)),e&&Nn(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ai(this))},kn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ai(this))},kn.prototype.render=R,Kn=[],zc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Sc=function(e,t){return e.__v.__b-t.__v.__b},ra.__r=0,Si=Math.random().toString(8),ea="__d"+Si,pr="__a"+Si,_c=/(PointerCapture)$|Capture$/i,Ti=0,_i=kc(!1),Ci=kc(!0),Cc=0;var Yn,tt,Mi,Lc,gr=0,Hc=[],kt=_e,Dc=kt.__b,Nc=kt.__r,Oc=kt.diffed,Fc=kt.__c,Bc=kt.unmount,$c=kt.__;function Bo(e,t){kt.__h&&kt.__h(tt,e,gr||t),gr=0;var o=tt.__H||(tt.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function _(e){return gr=1,qc(Vc,e)}function qc(e,t,o){var r=Bo(Yn++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):Vc(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=tt,!tt.__f)){var a=function(l,c,d){if(!r.__c.__H)return!0;var f=!1,u=r.__c.props!==l;if(r.__c.__H.__.some(function(m){if(m.__N){f=!0;var g=m.__[0];m.__=m.__N,m.__N=void 0,g!==m.__[0]&&(u=!0)}}),i){var p=i.call(this,l,c,d);return f?p||u:p}return!f||u};tt.__f=!0;var i=tt.shouldComponentUpdate,s=tt.componentWillUpdate;tt.componentWillUpdate=function(l,c,d){if(this.__e){var f=i;i=void 0,a(l,c,d),i=f}s&&s.call(this,l,c,d)},tt.shouldComponentUpdate=a}return r.__N||r.__}function J(e,t){var o=Bo(Yn++,3);!kt.__s&&Di(o.__H,t)&&(o.__=e,o.u=t,tt.__H.__h.push(o))}function Zn(e,t){var o=Bo(Yn++,4);!kt.__s&&Di(o.__H,t)&&(o.__=e,o.u=t,tt.__h.push(o))}function oe(e){return gr=5,sn(function(){return{current:e}},[])}function sn(e,t){var o=Bo(Yn++,7);return Di(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function Nt(e,t){return gr=8,sn(function(){return e},t)}function Li(e){var t=tt.context[e.__c],o=Bo(Yn++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(tt)),t.props.value):e.__}function On(){var e=Bo(Yn++,11);if(!e.__){for(var t=tt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function Eh(){for(var e;e=Hc.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(sa),t.__h.some(Ri),t.__h=[]}catch(o){t.__h=[],kt.__e(o,e.__v)}}}kt.__b=function(e){tt=null,Dc&&Dc(e)},kt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$c&&$c(e,t)},kt.__r=function(e){Nc&&Nc(e),Yn=0;var t=(tt=e.__c).__H;t&&(Mi===tt?(t.__h=[],tt.__h=[],t.__.some(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.some(sa),t.__h.some(Ri),t.__h=[],Yn=0)),Mi=tt},kt.diffed=function(e){Oc&&Oc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Hc.push(t)!==1&&Lc===kt.requestAnimationFrame||((Lc=kt.requestAnimationFrame)||Ph)(Eh)),t.__H.__.some(function(o){o.u&&(o.__H=o.u,o.u=void 0)})),Mi=tt=null},kt.__c=function(e,t){t.some(function(o){try{o.__h.some(sa),o.__h=o.__h.filter(function(r){return!r.__||Ri(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],kt.__e(r,o.__v)}}),Fc&&Fc(e,t)},kt.unmount=function(e){Bc&&Bc(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.some(function(r){try{sa(r)}catch(a){t=a}}),o.__H=void 0,t&&kt.__e(t,o.__v))};var Uc=typeof requestAnimationFrame=="function";function Ph(e){var t,o=function(){clearTimeout(r),Uc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,35);Uc&&(t=requestAnimationFrame(o))}function sa(e){var t=tt,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),tt=t}function Ri(e){var t=tt;e.__c=e.__(),tt=t}function Di(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function Vc(e,t){return typeof t=="function"?t(e):t}var Ni=null;function Wc(e){Ni=e}function ln(e){return Ni&&e&&typeof window<"u"&&e===window.tangu?{...e,...Ni}:e}var wn=e=>!!(e?.unitPage&&e.unitPublicEntry||e?.mobile&&e.extendMobile),cn=e=>!!e&&(!e.unitPage||!!e.unitPublicEntry),Q=()=>ln(typeof window<"u"?window.tangu:void 0)||{};function la(e){let t=typeof e?.status=="number"?e.status:0;if(t>=200&&t<300)return{ok:!0,status:t,data:e?.json??null};let o=e?.json&&typeof e.json=="object"?e.json:null,r=typeof o?.error=="string"?o.error:typeof o?.code=="string"?o.code:null,a=typeof o?.detail=="string"?o.detail:typeof o?.message=="string"?o.message:null;return{ok:!1,status:t,code:r,detail:a,transport:typeof e?.error=="string"?e.error:null}}var Oi=e=>({ok:!1,status:0,code:null,detail:null,transport:e});async function j(e,t={}){let o=Q().cloudFetch;if(!o)return Oi("no_bridge");try{return la(await o({path:e,...t}))}catch(r){return Oi(String(r?.message||r))}}async function hr(e,t){if(!e)return t();try{return la(await e())}catch(o){return Oi(String(o?.message||o))}}var Fn=e=>e.status===401&&(e.transport==="not_signed_in"||e.code===null&&e.detail===null&&e.transport===null);function gt(e){return String(e?.message??e??"").replace(/^Error invoking remote method '[^']*':\s*/,"").replace(/^(?:[A-Za-z]*Error):\s*/,"").trim()}async function zn(e,t,o){let r=Q().cloudInvoke;if(!r)return!1;let a=e==="membership"&&t?o?[e,t,o]:[e,t]:[e];try{return!!(await r("auth:openPayCenter",...a))?.ok}catch{return!1}}async function mo(e){let t=Q().openAccountCenter;if(!t)return!1;try{return!!(await t(e)).ok}catch{return!1}}var Ih=0;function n(e,t,o,r,a,i){t||(t={});var s,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ih,__i:-1,__u:0,__source:a,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return _e.vnode&&_e.vnode(d),d}var Mh={user:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4 20c.8-3.5 4-5.5 8-5.5s7.2 2 8 5.5",backpack:"M9 5V3h6v2 M6 8a6 6 0 0 1 12 0v12H6V8Z M9 13h6v5H9z M3 11h3v7H3z M18 11h3v7h-3 M10 8h4",gauge:"M4 16a8 8 0 1 1 16 0 M12 16l4-5 M12 16h.01",bug:"M8.5 9.5a3.5 3.5 0 0 1 7 0V15a3.5 3.5 0 0 1-7 0V9.5Z M12 10v8 M4 13h4.5 M15.5 13H20 M5 8.5l3.5 2 M19 8.5l-3.5 2 M5 18.5l3.5-2 M19 18.5l-3.5-2 M10 6L9 4 M14 6l1-2",pointer:"M5 4l13 6.5-5.5 1.5L10.5 18 5 4Z",shield:"M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6l7-3Z",chart:"M4 20V10 M10 20V4 M16 20v-7 M21 20H3",message:"M5 4h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-7l-5 4v-4H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",card:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z M3 10h18 M7 15h4",coins:"M9 11a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z M15.5 9.2A5 5 0 1 1 9.8 16",clock:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7v5l3 2",gift:"M4 11h16v9H4z M3 7h18v4H3z M12 7v13 M12 7c-1.5-3-5-3-5-1s3 1 5 1c2 0 5 1 5-1s-3.5-2-5 1",key:"M8 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M11 11h10 M17 11v3 M20 11v2",laptop:"M5 5h14v10H5z M3 19h18",alert:"M12 4l9 16H3l9-16Z M12 10v4 M12 17h.01",external:"M14 4h6v6 M20 4l-9 9 M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",copy:"M9 9h11v11H9z M5 15H4V4h11v1",check:"M5 12.5l4.5 4.5L19 7.5",checkin:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4 M9 15l2 2 4-4",tasks:"M4 6l2 2 3-3 M4 16l2 2 3-3 M12 7h9 M12 17h9",gamepad:"M6 8h12a4 4 0 0 1 4 4v3a3 3 0 0 1-5.4 1.8L15 15H9l-1.6 1.8A3 3 0 0 1 2 15v-3a4 4 0 0 1 4-4Z M7 11v3 M5.5 12.5h3 M15.5 12h.01 M18 13.5h.01",megaphone:"M4 10v4h3l9 4V6l-9 4H4Z M19 10a3 3 0 0 1 0 4 M8 14.5V19h3v-3",play:"M7 5l12 7-12 7V5Z",chevron:"M9 6l6 6-6 6",back:"M15 6l-6 6 6 6",arrowLeft:"M19 12H5M11 6l-6 6 6 6",pencil:"M4 20h4L19 9l-4-4L4 16v4Z M13.5 6.5l4 4",plus:"M12 5v14 M5 12h14",refresh:"M20 11a8 8 0 0 0-14.3-4.9L4 8 M4 4v4h4 M4 13a8 8 0 0 0 14.3 4.9L20 16 M20 20v-4h-4",phone:"M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M11 18h2",mail:"M4 6h16v12H4z M4 7l8 6 8-6",image:"M4 5h16v14H4z M4 16l5-5 4 4 3-3 4 4 M15.5 9.5h.01",x:"M6 6l12 12 M18 6L6 18",logout:"M15 4h4v16h-4 M10 8l-4 4 4 4 M6 12h10",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M3 12h18 M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z",lock:"M6 11h12v9H6z M8.5 11V8a3.5 3.5 0 0 1 7 0v3",palette:"M12 3a9 9 0 0 0 0 18c1.2 0 2-.8 2-1.9 0-.5-.2-.9-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8H17a4 4 0 0 0 4-4c0-4.3-4-7.7-9-7.7Z M7.5 12.5h.01 M9 8.5h.01 M14 7.5h.01",calendar:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4",link:"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1",flame:"M12 21a6 6 0 0 0 6-6c0-2.5-1.4-4.4-3-6-.3 1.5-1 2.5-2 3 .3-3-1-6-3.5-8 .2 3-1 4.8-2.2 6.3C6.4 11.5 6 13.2 6 15a6 6 0 0 0 6 6Z",trophy:"M8 4h8v6a4 4 0 0 1-8 0V4Z M8 6H5v1a3 3 0 0 0 3 3 M16 6h3v1a3 3 0 0 1-3 3 M12 14v4 M8.5 20h7",sprout:"M12 20v-8 M12 12c0-3-2-5-6-5 0 3.5 2 5 6 5Z M12 14c0-3 2-5 6-5 0 3.5-2 5-6 5Z",eye:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",download:"M12 4v11 M7.5 11l4.5 4.5 4.5-4.5 M5 20h14",upload:"M12 16V5 M7.5 9.5 12 5l4.5 4.5 M5 20h14",up:"M12 19V5 M6 11l6-6 6 6",down:"M12 5v14 M6 13l6 6 6-6",sparkles:"M12 4l1.8 4.7 4.7 1.8-4.7 1.8L12 17l-1.8-4.7-4.7-1.8 4.7-1.8L12 4Z M18.5 15.5v4 M16.5 17.5h4",bot:"M6 9h12v10H6z M12 9V5 M12 4.5h.01 M9.5 13.5h.01 M14.5 13.5h.01 M3.5 13v3 M20.5 13v3",box:"M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3Z M4 7.5l8 4.5 8-4.5 M12 12v9",grid:"M4 4h7v7H4z M13 4h7v7h-7z M4 13h7v7H4z M13 13h7v7h-7z",note:"M6 3h9l4 4v14H6z M15 3v4h4 M9 12h6 M9 16h4",puzzle:"M9 3H4v6a3 3 0 1 0 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z",home:"M4 11l8-7 8 7 M6 9.5V20h4v-5h4v5h4V9.5",info:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 11v5 M12 8h.01",ticket:"M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3v2Z M14 6v12",at:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.6 7.2",heart:"M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7 7-7Z",star:"M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9L12 3Z",rocket:"M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1Z M12 15l-3-3a22 22 0 0 1 2-4A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2Z M9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0 M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5",store:"M4 4h16l1 5H3l1-5Z M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0 M5 11.5V20h14v-8.5 M10 20v-5h4v5"};function B({name:e,size:t=14,class:o}){return n("svg",{class:o,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:Mh[e]})})}function jt({size:e=12}){return n("svg",{class:"spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:"M21 12a9 9 0 1 1-6.2-8.56"})})}var Rh={"events.title":"\u6D3B\u52A8","events.back":"\u8FD4\u56DE\u5E94\u7528","events.count":"{n} \u573A\u8FDB\u884C\u4E2D","events.group.active":"\u8FDB\u884C\u4E2D","events.group.notice":"\u516C\u544A","events.group.upcoming":"\u9884\u544A","events.ended":"\u5DF2\u7ED3\u675F\u7684\u6D3B\u52A8","events.endedEmpty":"\u8FD8\u6CA1\u6709\u7ED3\u675F\u7684\u6D3B\u52A8","events.list":"\u5168\u90E8\u6D3B\u52A8","events.kind.checkin":"\u7B7E\u5230","events.kind.tasks":"\u4EFB\u52A1","events.kind.game":"\u5C0F\u6E38\u620F","events.kind.notice":"\u516C\u544A","events.left.days":"\u5269 {n} \u5929","events.left.hours":"\u5269 {n} \u5C0F\u65F6","events.left.long":"\u5269\u4F59 {d} \u5929 {h} \u5C0F\u65F6","events.left.longHours":"\u5269\u4F59 {h} \u5C0F\u65F6","events.time.start":"{date} \u5F00\u59CB","events.time.claim":"\u6D3B\u52A8\u5DF2\u7ED3\u675F\uFF0C{date} \u524D\u9886\u53D6","events.time.claimShort":"{date} \u524D\u9886\u53D6","events.time.ended":"\u5DF2\u4E8E {date} \u7ED3\u675F","events.time.published":"{date} \u53D1\u5E03","events.rewards":"\u6D3B\u52A8\u5956\u52B1","events.checkin.signed":"\u5DF2\u7B7E {n}/{total}","events.checkin.today":"\u4ECA\u5929","events.checkin.day":"\u7B2C {n} \u5929","events.checkin.do":"\u4ECA\u65E5\u7B7E\u5230","events.checkin.done":"\u4ECA\u65E5\u5DF2\u7B7E","events.checkin.finished":"\u5DF2\u5168\u90E8\u7B7E\u5B8C","events.tasks.progress":"\u4EFB\u52A1\u8FDB\u5EA6","events.tasks.claim":"\u9886\u53D6","events.tasks.claimAll":"\u5168\u90E8\u9886\u53D6 ({n})","events.tasks.go":"\u53BB\u5B8C\u6210","events.tasks.closed":"\u6D3B\u52A8\u5DF2\u7ED3\u675F","events.game.board":"\u6392\u884C\u699C","events.game.me":"\u6211","events.game.anon":"\u533F\u540D\u73A9\u5BB6","events.game.enter":"\u8FDB\u5165\u6E38\u620F","events.game.install":"\u53BB\u5546\u5E97\u5B89\u88C5","events.game.empty":"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C","events.notice.more":"\u67E5\u770B\u8BE6\u60C5","events.toast.checkin":"\u5DF2\u7B7E\u5230\uFF0C{reward}","events.toast.claimed":"\u5DF2\u9886\u53D6 {reward}","events.toast.partial":"\u9886\u5230 {n} \u9879\uFF0C{m} \u9879\u6CA1\u9886\u5230\uFF0C\u7A0D\u540E\u518D\u8BD5","events.toast.backpack":"\u67E5\u770B\u80CC\u5305","events.err.failed":"\u6CA1\u9886\u5230\uFF0C\u7F51\u7EDC\u6062\u590D\u540E\u518D\u8BD5\u4E00\u6B21","events.err.notLive":"\u8FD9\u573A\u6D3B\u52A8\u5DF2\u7ECF\u7ED3\u675F","events.err.completed":"\u5DF2\u7ECF\u5168\u90E8\u7B7E\u5B8C","events.err.grantFailed":"\u5956\u52B1\u6CA1\u53D1\u51FA\u53BB\uFF0C\u5DF2\u767B\u8BB0\u8865\u53D1\uFF0C\u4E0D\u7528\u91CD\u590D\u9886\u53D6","events.login.title":"\u767B\u5F55\u540E\u53C2\u4E0E\u6D3B\u52A8","events.login.do":"\u767B\u5F55 Forsion","events.empty":"\u6682\u65F6\u6CA1\u6709\u8FDB\u884C\u4E2D\u7684\u6D3B\u52A8","events.error":"\u6D3B\u52A8\u6CA1\u6709\u52A0\u8F7D\u51FA\u6765","events.retry":"\u91CD\u8BD5","events.dot":"\u6709\u5956\u52B1\u53EF\u9886\u6216\u65B0\u6D3B\u52A8","penzor.rules.default":"\u4E91\u7AEF\u9ED8\u8BA4","penzor.rules.off":"\u4E0D\u540C\u6B65","penzor.rules.device":"\u8BBE\u5907","penzor.rules.run":"\u7ACB\u5373\u540C\u6B65","penzor.rules.twoWay":"\u53CC\u5411","penzor.rules.defaultForWeb":"\u9ED8\u8BA4\u76EE\u5F55\u4F9B\u7F51\u9875\u7AEF\u4F7F\u7528","penzor.rules.tab.rules":"\u540C\u6B65\u89C4\u5219","penzor.rules.tab.active":"\u6B63\u5728\u4F20\u8F93","penzor.rules.tab.history":"\u5386\u53F2\u8BB0\u5F55","penzor.rules.enable":"\u5F00\u542F\u5185\u5BB9\u540C\u6B65","penzor.rules.add":"\u6DFB\u52A0\u89C4\u5219","penzor.rules.source":"\u672C\u673A\u6765\u6E90","penzor.rules.destination":"\u4E91\u7AEF\u76EE\u6807","penzor.rules.direction":"\u65B9\u5411","penzor.rules.remove":"\u5220\u9664\u89C4\u5219","penzor.rules.inherit":"\u7A7A\u8DEF\u5F84\u4EE3\u8868\u6574\u4E2A Forsion\u3002\u5B50\u9879\u7EE7\u627F\u4E0A\u7EA7\u89C4\u5219\uFF0C\u6700\u5177\u4F53\u7684\u8DEF\u5F84\u4F18\u5148\uFF1B\u6CA1\u6709\u5339\u914D\u89C4\u5219\u7684\u5185\u5BB9\u4E0D\u540C\u6B65\u3002","penzor.rules.namespace":"\u9ED8\u8BA4\uFF1A\u4E91\u7AEF /Forsion/\uFF1B\u8BBE\u5907\u76EE\u5F55\uFF1A\u4E91\u7AEF /Forsion-\u8BBE\u5907ID/\u3002","penzor.rules.human":"human \u72EC\u7ACB\u9009\u62E9\u8303\u56F4\uFF1B\u9ED8\u8BA4\u65E5\u5386\u4F7F\u7528 human/CALENDAR.db\u3002\u6539\u5230\u8BBE\u5907\u76EE\u5F55\u540E\uFF0C\u7F51\u9875\u9ED8\u8BA4\u65E5\u5386\u4E0D\u8DDF\u968F\u5207\u6362\u3002","penzor.rules.preview":"\u9884\u89C8\u53D8\u66F4","penzor.rules.previewTitle":"\u786E\u8BA4\u672C\u6B21\u540C\u6B65\u8303\u56F4","penzor.rules.previewCounts":"\u4E0A\u4F20 {up} \u9879\uFF0C\u4E0B\u8F7D {down} \u9879\uFF0C{conflicts} \u9879\u5DF2\u6709\u4E0D\u540C\u5185\u5BB9\u9700\u5408\u5E76\u6216\u4FDD\u7559\u7248\u672C\u3002","penzor.rules.retain":"\u65E7\u76EE\u6807\u4E2D\u7684\u5185\u5BB9\u4FDD\u7559\u3002\u5173\u95ED\u540C\u6B65\u4E0D\u4F1A\u5220\u9664\u672C\u673A\u6216\u4E91\u7AEF\u6587\u4EF6\uFF1B\u6E90\u6587\u4EF6\u53D8\u5316\u540E\u9700\u91CD\u65B0\u9884\u89C8\u3002","penzor.rules.back":"\u8FD4\u56DE\u4FEE\u6539","penzor.rules.apply":"\u786E\u8BA4\u5E76\u5F00\u59CB","penzor.rules.pause":"\u6682\u505C","penzor.rules.resume":"\u7EE7\u7EED","penzor.rules.noActive":"\u5F53\u524D\u6CA1\u6709\u6587\u4EF6\u6B63\u5728\u4F20\u8F93\u3002","penzor.rules.manual":"\u624B\u52A8\u4E0A\u4F20\u4E0E\u4E0B\u8F7D","penzor.rules.historyNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u51B2\u7A81\u65F6\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\uFF0C\u5176\u4F59\u5185\u5BB9\u7EE7\u7EED\u540C\u6B65\u3002","penzor.rules.retry":"\u91CD\u8BD5\u5931\u8D25\u9879","penzor.rules.noHistory":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.rules.details":"\u67E5\u770B\u4F20\u8F93","penzor.rules.plugins":"\u63D2\u4EF6\u6570\u636E\u4ECD\u7531\u5404\u63D2\u4EF6\u7684\u6570\u636E\u540C\u6B65\u7BA1\u7406\u3002","penzor.rules.turnOff":"\u5173\u95ED\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.turnOn":"\u5F00\u542F\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.phase.idle":"\u7B49\u5F85\u4E0B\u6B21\u540C\u6B65","penzor.rules.phase.scanning":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.rules.phase.syncing":"\u6B63\u5728\u540C\u6B65","penzor.rules.phase.paused":"\u5DF2\u6682\u505C","penzor.rules.state.queued":"\u7B49\u5F85\u4E2D","penzor.rules.state.active":"\u4F20\u8F93\u4E2D","penzor.rules.state.done":"\u5DF2\u5B8C\u6210","penzor.rules.state.failed":"\u5931\u8D25","penzor.rules.state.paused":"\u5DF2\u6682\u505C","penzor.rules.state.conflict":"\u5DF2\u4FDD\u7559\u51B2\u7A81\u7248\u672C","penzor.tree.synced":"\u540C\u6B65\u7684\u5185\u5BB9","penzor.tree.thisBackup":"\u8FD9\u53F0\u7535\u8111 \xB7 \u53EA\u5907\u4EFD","penzor.tree.byApp":"\u6309\u5E94\u7528\u770B","penzor.tree.legacy":"\u65E7\u7248\u667A\u5E93\u540C\u6B65","penzor.quota.sourceLimit":"\u8FD9\u4E00\u7C7B\u8FD8\u6709\u5355\u72EC\u4E0A\u9650 {max}\uFF0C\u5DF2\u7528 {used}","penzor.ov.mine":"\u4F60\u653E\u7684","penzor.ov.synced":"\u540C\u6B65\u4E0A\u6765\u7684","penzor.ov.stale":"\u4E0D\u518D\u66F4\u65B0","penzor.ov.uploads":"\u4F60\u81EA\u5DF1\u4E0A\u4F20\u548C\u6574\u7406\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u968F\u4FBF\u6539","penzor.ov.all":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6","penzor.ov.allLast":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.ov.self":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4EFD","penzor.ov.device":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C\u5B83\u4E4B\u95F4\u5171\u7528","penzor.ov.agents":"Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.ov.profile":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.ov.sync":"\u7535\u8111\u540C\u6B65\u4E0A\u6765\u7684\u667A\u5E93","penzor.ov.legacy":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\u4E0D\u518D\u5199\u5165\uFF0C\u7559\u7740\u4E0D\u5220","penzor.ov.ama":"\u7F51\u9875\u7248\u7684\u7B14\u8BB0\uFF0C\u548C\u540C\u6B65\u4E0A\u6765\u7684\u7B14\u8BB0","penzor.ov.apps":"\u5404\u5E94\u7528\u5B58\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u5220\u3001\u6539\u540D","penzor.ov.plugins":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\uFF0C\u8FD9\u91CC\u53EA\u663E\u793A\u5360\u7528","penzor.ov.exports":"\u5BFC\u51FA\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u4E0B\u8F7D\u3001\u5220\u9664","penzor.ov.segNotes":"\u7B14\u8BB0","penzor.ov.segSync":"\u8BBE\u5907\u540C\u6B65","penzor.ov.segOther":"\u5176\u4ED6","penzor.content.badge":"\u65B0\u540C\u6B65\u7EF4\u62A4","penzor.content.badgeLast":"\u65B0\u540C\u6B65\u7EF4\u62A4 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.content.noteAll":"\u8FD9\u662F\u4E91\u7AEF\u7684\u90A3\u4E00\u4EFD\uFF0C\u4F60\u767B\u5F55\u7684\u6BCF\u53F0\u8BBE\u5907\u548C\u7F51\u9875\u7248\u770B\u5230\u7684\u90FD\u662F\u5B83\u3002\u8981\u6539\u6587\u4EF6\uFF0C\u5728\u7535\u8111\u4E0A\u7684\u7B14\u8BB0\u3001Agents \u91CC\u6539\uFF0C\u6539\u5B8C\u4F1A\u81EA\u52A8\u540C\u6B65\u4E0A\u6765\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteSelf":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230\u3002\u8981\u6539\u6587\u4EF6\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteDevice":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C {name} \u4E4B\u95F4\u5171\u7528\u3002\u8981\u6539\u6587\u4EF6\u5728\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.legacy.title":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\uFF0C\u5C31\u4E0D\u518D\u5F80\u8FD9\u4E2A\u5E93\u5199\u4E86","penzor.legacy.body":"\u8FD9\u53F0\u7535\u8111\u7684\u7B14\u8BB0\u73B0\u5728\u5728\u300C\u6240\u6709\u8BBE\u5907\u5171\u7528 \u203A \u7B14\u8BB0\u300D\u91CC\u3002\u8FD8\u6CA1\u5347\u7EA7\u7684\u65E7\u7248\u684C\u9762\u53EF\u80FD\u4ECD\u4F1A\u5199\u5230\u8FD9\u91CC\uFF0C\u6240\u4EE5\u8FD9\u4EFD\u7559\u7740\u3001\u4E0D\u5220\u3002","penzor.legacy.go":"\u53BB\u770B\u65B0\u7684\u90A3\u4EFD","penzor.drive.total":"\u6574\u4E2A\u84EC\u6D32\u4E91\u5DF2\u7528 {used} / {max}","penzor.drive.seeAll":"\u67E5\u770B","penzor.cs.statusOff":"\u672A\u5F00","penzor.cs.statusPaused":"\u5DF2\u6682\u505C","penzor.cs.statusRun":"\u540C\u6B65\u4E2D {pct}%","penzor.cs.statusScan":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.cs.statusWarn":"{n} \u9879\u8981\u5904\u7406","penzor.cs.statusOk":"\u5DF2\u540C\u6B65","penzor.cs.statusOkAgo":"\u5DF2\u540C\u6B65 \xB7 {time}","penzor.widget.signedOut":"\u672A\u767B\u5F55 Forsion \u8D26\u53F7","penzor.widget.signInHint":"\u767B\u5F55\u540E\u624D\u80FD\u540C\u6B65","penzor.widget.off":"\u4E91\u540C\u6B65\u6CA1\u5F00","penzor.widget.paused":"\u540C\u6B65\u5DF2\u6682\u505C","penzor.widget.running":"\u6B63\u5728\u540C\u6B65","penzor.widget.problem":"\u540C\u6B65\u9047\u5230\u95EE\u9898","penzor.widget.active":"\u6B63\u5728\u4F20 {n} \u9879","penzor.widget.queued":"\u8FD8\u6709 {n} \u9879\u6392\u961F","penzor.widget.waiting":"{n} \u9879\u7B49\u5F85\u540C\u6B65","penzor.widget.failed":"\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.error":"\u540C\u6B65\u51FA\u9519\u4E86","penzor.widget.errorMeta":"\u51FA\u9519","penzor.widget.conflict":"\u51B2\u7A81\uFF0C\u4E24\u4EFD\u90FD\u7559\u7740","penzor.widget.more":"\u8FD8\u6709 {n} \u9879\u8981\u770B","penzor.widget.last":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.widget.pending":"\u4E91\u7AEF\u5DF2\u6709\u4E00\u4EFD\u7B14\u8BB0","penzor.widget.notesFailed":"\u7B14\u8BB0\u5E93\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.agentsFailed":"Agent \u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.cs.thisComputer":"\u8FD9\u53F0\u7535\u8111\uFF1A{name}","penzor.cs.thisComputerLabel":"\u8FD9\u53F0\u7535\u8111\uFF1A","penzor.cs.rename":"\u6539\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57","penzor.cs.renameHint":"\u6539\u4E86\u4EE5\u540E\uFF0C\u522B\u7684\u8BBE\u5907\u4E0A\u4E5F\u663E\u793A\u8FD9\u4E2A\u540D\u5B57 \xB7 \u56DE\u8F66\u4FDD\u5B58","penzor.cs.name.taken":"\u53E6\u4E00\u53F0\u8BBE\u5907\u5DF2\u7ECF\u53EB\u8FD9\u4E2A\u540D\u5B57\uFF0C\u6362\u4E00\u4E2A\u5427","penzor.cs.name.reserved":"macOS\u3001Windows\u3001Linux \u7559\u7ED9\u7CFB\u7EDF\uFF0C\u6362\u4E00\u4E2A\u540D\u5B57\u5427","penzor.cs.name.invalid":"\u540D\u5B57\u6700\u591A 64 \u4E2A\u5B57\uFF0C\u4E0D\u80FD\u5E26\u65B9\u62EC\u53F7","penzor.cs.othersN":"\u53E6\u5916 {n} \u53F0\uFF1A{names}","penzor.cs.noOthers":"\u8FD8\u6CA1\u6709\u522B\u7684\u8BBE\u5907\u767B\u5F55\u8FD9\u4E2A\u8D26\u53F7","penzor.cs.log":"\u6700\u8FD1\u8BB0\u5F55","penzor.cs.more":"\u66F4\u591A","penzor.cs.advanced":"\u9AD8\u7EA7\uFF1A\u6309\u89C4\u5219\u7F16\u8F91","penzor.cs.backSimple":"\u8FD4\u56DE\u540C\u6B65","penzor.cs.firstTitle":"\u628A\u8FD9\u53F0\u7535\u8111\u540C\u6B65\u5230\u84EC\u6D32\u4E91","penzor.cs.firstBody":"\u4E0B\u9762\u662F\u5EFA\u8BAE\u7684\u8303\u56F4\uFF0C\u53EF\u4EE5\u5148\u6539\u3002\u70B9\u300C\u5F00\u59CB\u540C\u6B65\u300D\u4E4B\u524D\u4E0D\u4F1A\u4F20\u4EFB\u4F55\u4E1C\u897F\uFF1B\u4E91\u7AEF\u5DF2\u6709\u7684\u4E0D\u4F1A\u88AB\u8986\u76D6\u6216\u5220\u9664\u3002","penzor.cs.note":"\u60F3\u8BA9\u67D0\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\u6216 Agent \u5355\u72EC\u5904\u7406\uFF0C\u70B9\u5B83\u4E0B\u9762\u90A3\u884C\u5C0F\u5B57\u5C31\u80FD\u6539\u3002\u5173\u6389\u5F00\u5173\u53EA\u662F\u4E0D\u518D\u540C\u6B65\uFF0C\u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6\u3002","penzor.cs.barFirst":"\u6253\u5F00\u540C\u6B65\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A","penzor.cs.barChanged":"\u6539\u4E86 {n} \u5904","penzor.cs.barOne":"\u6539\u4E86 1 \u5904\uFF1A\u300C{name}\u300D\u6539\u6210{scope}","penzor.cs.offName":"\u4E0D\u540C\u6B65","penzor.cs.barCounts":"\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A \xB7 \u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barSize":"\u5171 {size}","penzor.cs.noDelete":"\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barConflicts":"{n} \u4E2A\u4E24\u8FB9\u90FD\u6539\u8FC7\uFF0C\u4F1A\u5404\u7559\u4E00\u4EFD","penzor.cs.barCounting":"\u6B63\u5728\u7B97\u8981\u4F20\u591A\u5C11\u2026","penzor.cs.barRecount":"\u6587\u4EF6\u521A\u6709\u53D8\u5316\uFF0C\u5DF2\u7ECF\u91CD\u65B0\u7B97\u8FC7\uFF0C\u8BF7\u518D\u786E\u8BA4\u4E00\u6B21","penzor.cs.later":"\u5148\u4E0D\u5F00","penzor.cs.start":"\u5F00\u59CB\u540C\u6B65","penzor.cs.undo":"\u64A4\u9500","penzor.cs.confirm":"\u786E\u8BA4","penzor.cs.up":"\u6B63\u5728\u4E0A\u4F20\u300C{name}\u300D","penzor.cs.down":"\u6B63\u5728\u4E0B\u8F7D\u300C{name}\u300D","penzor.cs.waiting":"\u8FD8\u6709 {n} \u4E2A\u6587\u4EF6\u7B49\u7740\u4F20","penzor.cs.failedN":"{n} \u4E2A\u6587\u4EF6\u6CA1\u4F20\u6210\u529F","penzor.cs.retry":"\u91CD\u8BD5","penzor.cs.seeLog":"\u770B\u8BB0\u5F55","penzor.cs.logEmpty":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.cs.logNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u4E24\u8FB9\u90FD\u6539\u8FC7\u65F6\u4F1A\u5404\u7559\u4E00\u4EFD\u3002","penzor.cat.notes":"\u7B14\u8BB0","penzor.cat.notesDesc":"Amadeus \u91CC\u7684\u667A\u5E93","penzor.cat.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.cat.agentsDesc":"\u6BCF\u4E2A Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.cat.profile":"\u6211\u7684\u8D44\u6599","penzor.cat.profileDesc":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.cat.profileOn":"\u542B\u9ED8\u8BA4\u65E5\u5386","penzor.cat.plugins":"\u63D2\u4EF6","penzor.cat.pluginsDesc":"\u63D2\u4EF6\u7684\u6587\u4EF6\u5939\u548C\u8BBE\u7F6E","penzor.cat.others":"\u5176\u4ED6\u6587\u4EF6","penzor.cat.othersDesc":"\u5DE5\u4F5C\u6587\u4EF6\u5939\u91CC\u4E0D\u5C5E\u4E8E\u4E0A\u9762\u51E0\u7C7B\u7684\u6587\u4EF6","penzor.cat.files":"{n} \u4E2A\u6587\u4EF6 \xB7 {size}","penzor.agents.pickHint":"\u9010\u4E2A\u9009\uFF0C\u65B0\u5EFA\u7684 Agent \u9ED8\u8BA4\u4E0D\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.legacyHint":"\u6309\u65E7\u8BBE\u7F6E\uFF0C\u65B0\u5EFA\u7684 Agent \u4E5F\u4F1A\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.none":"\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD8\u6CA1\u6709 Agent","penzor.agents.muse":"\u535C\u7B97\u5B50","penzor.agents.museDesc":"\u540E\u53F0 Agent\uFF0C\u6BCF\u53F0\u7535\u8111\u5404\u8DD1\u5404\u7684","penzor.agents.locked":"\u6682\u4E0D\u5F00\u653E\u540C\u6B65","penzor.agents.cloudOnly":"\u5728\u4E91\u7AEF \xB7 \u8FD9\u53F0\u7535\u8111\u8FD8\u6CA1\u6709\uFF0C\u6253\u5F00\u5C31\u4E0B\u8F7D","penzor.agents.historianNote":"Historian \u7684\u590D\u76D8\u8349\u7A3F\u7559\u5728\u6BCF\u53F0\u7535\u8111\u4E0A\uFF0C\u4E0D\u540C\u6B65\uFF1B\u5B83\u8BB0\u8FDB\u5404\u4E2A Agent \u65E5\u5FD7\u91CC\u7684\u5185\u5BB9\uFF0C\u8DDF\u7740\u90A3\u4E2A Agent \u8D70\u3002","penzor.agents.archiveRunning":"\u4E91\u7AEF\u7684 Agent \u6B63\u5728\u5B58\u6863\uFF0C\u7A0D\u7B49\u4E00\u4F1A\u513F\u518D\u6253\u5F00","penzor.cs.accountReview":"\u8D26\u53F7\u5DF2\u5207\u6362\u3002\u672C\u673A\u6587\u4EF6\u53EF\u80FD\u5305\u542B\u53E6\u4E00\u4E2A\u8D26\u53F7\u7684\u5185\u5BB9\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540C\u6B65\u8303\u56F4\u5E76\u786E\u8BA4\u540E\u518D\u540C\u6B65\u3002","penzor.agents.openFailed":"\u6CA1\u80FD\u6253\u5F00\u8FD9\u4E2A Agent \u7684\u540C\u6B65\uFF0C\u5148\u4FDD\u6301\u4E0D\u540C\u6B65\uFF1A{reason}","penzor.archive.title":"Agent \u540C\u6B65\u6539\u6210\u9010\u4E2A\u9009\u4E86","penzor.archive.body":"\u4E4B\u524D\u8DDF\u7740\u603B\u5F00\u5173\u540C\u6B65\u7684 Agent \u90FD\u5DF2\u505C\u4E0B\uFF0C\u4E91\u7AEF\u90A3\u4EFD\u5B58\u8FDB\u4E86\u300C\u6211\u7684\u4E91\u76D8 \u203A {shelf} \u203A {name}\u300D\uFF0C\u53EA\u8BFB\uFF0C\u80FD\u4E0B\u8F7D\u3002\u60F3\u7EE7\u7EED\u540C\u6B65\u7684\uFF0C\u5728\u4E0B\u9762\u9010\u4E2A\u6253\u5F00\u3002","penzor.archive.shelf":"\u5B58\u6863","penzor.archive.ok":"\u77E5\u9053\u4E86","penzor.archive.open":"\u6253\u5F00\u5B58\u6863","penzor.archive.note":"\u8FD9\u662F Agent \u540C\u6B65\u7684\u5B58\u6863\uFF0C\u53EA\u8BFB\uFF1A\u80FD\u4E0B\u8F7D\uFF0C\u80FD\u6574\u4EFD\u5220\u9664\u3002","penzor.ask.title":"{name} \u5728\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD","penzor.ask.when":"\u4E91\u7AEF\u90A3\u4EFD\u6700\u540E\u6539\u4E8E {cloud}\uFF0C\u8FD9\u53F0\u6700\u540E\u6539\u4E8E {local}\u3002\u6253\u5F00\u540C\u6B65\u524D\u9009\u4E00\u6B21\uFF0C\u4EE5\u540E\u81EA\u52A8\u5408\u3002","penzor.ask.merge":"\u5408\u5728\u4E00\u8D77","penzor.ask.mergeDesc":"\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u65E5\u7A0B\u6309\u6761\u5408\u5E76\uFF1B\u8BBE\u7F6E\u3001\u6027\u683C\u8FD9\u7C7B\u4E24\u8FB9\u90FD\u6539\u4E86\u7684\uFF0C\u7528\u8F83\u65B0\u7684\u90A3\u4EFD\uFF0C\u53E6\u4E00\u4EFD\u653E\u8FDB\u672C\u673A\u56DE\u6536","penzor.ask.cloud":"\u4EE5\u4E91\u7AEF\u4E3A\u51C6","penzor.ask.cloudDesc":"\u8FD9\u53F0\u7684\u6574\u4EFD\u5148\u653E\u8FDB\u672C\u673A\u56DE\u6536\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD","penzor.ask.local":"\u4EE5\u8FD9\u53F0\u4E3A\u51C6","penzor.ask.localDesc":"\u4E91\u7AEF\u90A3\u4EFD\u5148\u8FDB\u5B58\u6863\uFF0C\u518D\u6362\u6210\u8FD9\u53F0\u7684","penzor.ask.recommended":"\u5EFA\u8BAE","penzor.ask.foot":"\u56DE\u6536\u5728 agents/.removed\uFF0C\u80FD\u627E\u56DE","penzor.ask.cancel":"\u53D6\u6D88","penzor.ask.confirm":"\u6253\u5F00\u540C\u6B65","penzor.cat.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.cat.custom":"\u53E6\u6709 {n} \u6761\u81EA\u5B9A\u4E49\u89C4\u5219","penzor.cat.notSynced":"\u4E0D\u540C\u6B65 \xB7 \u53EA\u7559\u5728\u8FD9\u53F0\u7535\u8111","penzor.scope.all":"\u6240\u6709\u8BBE\u5907\u5171\u7528","penzor.scope.allDesc":"\u6BCF\u53F0\u767B\u5F55\u7684\u8BBE\u5907\u548C\u7F51\u9875\u7248\u90FD\u662F\u540C\u4E00\u4EFD","penzor.scope.self":"\u53EA\u5907\u4EFD\u8FD9\u53F0\u7535\u8111","penzor.scope.selfDesc":"\u4E91\u7AEF\u5355\u72EC\u5B58\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230","penzor.scope.with":"\u53EA\u548C {name} \u5171\u7528","penzor.scope.menuTitle":"\u300C{name}\u300D\u548C\u8C01\u5171\u7528","penzor.scope.menuFoot":"\u4E0D\u60F3\u4E0A\u4E91\u5C31\u5173\u6389\u53F3\u8FB9\u7684\u5F00\u5173","penzor.scope.calendarNote":"\u7F51\u9875\u7248\u7684\u9ED8\u8BA4\u65E5\u5386\u4E0D\u4F1A\u8DDF\u7740\u53D8","penzor.unified.stale":"\u5237\u65B0\u5931\u8D25\uFF0C\u4EE5\u4E0B\u4FDD\u7559\u4E0A\u6B21\u7EDF\u8BA1\uFF1B\u5F53\u524D\u7528\u91CF\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5\u3002","penzor.unified.uploadTo":"\u4E0A\u4F20\u5230\u300C\u6211\u7684\u6587\u4EF6\u300D","penzor.unified.apps":"\u666E\u901A\u6587\u4EF6\u53EF\u7BA1\u7406 \xB7 \u6765\u6E90\u9650\u5236\u4F18\u5148","penzor.trash.ama":"Amadeus \xB7 \u5F85\u6E05\u7406\u5FEB\u7167","penzor.trash.amaNote":"\u88AB\u5220\u7684\u5F53\u524D\u6587\u4EF6\u4ECD\u8BA1\u5165\u989D\u5EA6\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u91CD\u590D\u8BA1\u5165\u300230 \u5929\u540E\u7B49\u5F85\u7CFB\u7EDF\u6E05\u7406\uFF1B\u6B64\u5904\u53EA\u8BFB\uFF0C\u4E0D\u53D7\u300C\u6E05\u7A7A\u56DE\u6536\u7AD9\u300D\u5F71\u54CD\u3002","penzor.trash.expires":"\u53EF\u6E05\u7406\u65E5\u671F","penzor.source.openAgents":"\u5728 Agents \u4E2D\u6253\u5F00","penzor.source.openCalendar":"\u6253\u5F00\u65E5\u5386","penzor.source.entryUnavailable":"\u6B64\u5BBF\u4E3B\u6682\u672A\u63D0\u4F9B\u8BE5\u5165\u53E3","penzor.uploads":"\u6211\u7684\u6587\u4EF6","penzor.source.agents":"Agents","penzor.source.profile":"\u6211\u7684\u8D44\u6599","penzor.source.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.source.readonly":"\u540C\u6B65\u6765\u6E90\u4E3A\u53EA\u8BFB\uFF0C\u8BF7\u5728\u539F\u4F4D\u7F6E\u7F16\u8F91\u6216\u5220\u9664\uFF1B\u6B64\u5904\u53EF\u4E0B\u8F7D\u5DF2\u540C\u6B65\u7684\u6587\u4EF6\u3002","penzor.source.appNote":"\u5E94\u7528\u6587\u4EF6\u7531\u539F\u5E94\u7528\u7BA1\u7406\uFF0C\u8BF7\u5728\u5E94\u7528\u4E2D\u7F16\u8F91\u6216\u5220\u9664\u3002","penzor.source.market":"\u5546\u5E97\u6295\u7A3F","penzor.ov.market":"\u4F60\u6295\u5230\u5546\u5E97\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u548C Agent \u5305\uFF0C\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70","penzor.source.marketNote":"\u8FD9\u91CC\u7684\u5305\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70\uFF1A\u5728\u300C\u5546\u5E97 \u2192 \u6211\u7684\u6295\u7A3F\u300D\u5220\u6389\u6761\u76EE\u624D\u4F1A\u91CA\u653E\u3002\u4ECE GitHub\u3001npm \u62C9\u6765\u7684\u5305\u7531\u5546\u5E97\u4EE3\u5B58\uFF0C\u4E0D\u7B97\u4F60\u7684\u7A7A\u95F4\u3002","penzor.market.badge":"\u7531\u5546\u5E97\u7BA1\u7406","penzor.market.meta":"{size} \xB7 {n} \u4E2A\u5305","penzor.market.history":"\u65E7\u7248\u672C {size}\uFF0C\u548C\u522B\u5904\u4E00\u6837\u4E0D\u7B97","penzor.market.older":"\u53E6\u6709\u65E7\u7248\u672C {size}","penzor.market.updating":"\u66F4\u65B0\u5F85\u5BA1\u6838","penzor.market.notCounted":"\u4E0D\u7B97","penzor.market.fromGithub":"\u4ECE GitHub \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.fromNpm":"\u4ECE npm \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.type.plugin":"\u63D2\u4EF6","penzor.market.type.skill":"\u6280\u80FD","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"\u4E3B\u9898","penzor.market.type.amadeusPlugin":"Amadeus \u63D2\u4EF6","penzor.market.status.approved":"\u5DF2\u4E0A\u67B6","penzor.market.status.pending":"\u5F85\u5BA1\u6838","penzor.market.status.rejected":"\u672A\u901A\u8FC7","penzor.col.type":"\u7C7B\u578B","penzor.col.status":"\u72B6\u6001","penzor.source.pluginNote":"\u4EC5\u5C55\u793A\u63D2\u4EF6\u540D\u79F0\u548C\u5360\u7528\uFF1B\u6570\u636E\u53EF\u80FD\u542B\u914D\u7F6E\u6216\u51ED\u636E\uFF0C\u4E0D\u76F4\u63A5\u9884\u89C8\u6216\u4E0B\u8F7D\u3002","penzor.unified.unavailable":"\u7EDF\u8BA1\u4E0D\u53EF\u7528","penzor.unified.incomplete":"\u7EDF\u4E00\u7528\u91CF\u5C1A\u672A\u7EDF\u8BA1\u5B8C\u6574\uFF0C\u4E0D\u80FD\u636E\u6B64\u5224\u65AD\u662F\u5426\u8D85\u989D\u3002\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","penzor.unified.enforced":"\u7EDF\u4E00\u989D\u5EA6\u5DF2\u542F\u7528\uFF1A\u8D85\u989D\u65F6\u6682\u505C\u65B0\u589E\u5185\u5BB9\u548C\u53D8\u5927\u7684\u6587\u4EF6\uFF1B\u4E0B\u8F7D\u3001\u5220\u9664\u53CA\u4E0D\u589E\u5927\u7684\u8986\u76D6\u4ECD\u53EF\u7528\u3002","penzor.unified.grace":"\u901A\u77E5\u5BBD\u9650\u671F\u81F3 {date}\uFF0C\u76EE\u524D\u4E0D\u65B0\u589E\u7EDF\u4E00\u989D\u5EA6\u62E6\u622A\u3002","penzor.unified.rolloutPolicy":"\u5BB9\u91CF\u653F\u7B56\u901A\u77E5\uFF1A\u6700\u65E9\u5728\u786E\u8BA4\u901A\u77E5 30 \u5929\u540E\uFF0C\u7EDF\u4E00\u989D\u5EA6\u624D\u53EF\u80FD\u9650\u5236\u589E\u957F\u5199\u5165\uFF1B\u5E94\u7528\u6587\u4EF6\u5386\u53F2\u5C06\u4EC5\u4FDD\u7559\u6700\u8FD1 30 \u5929\u5185\u6700\u591A 50 \u4EFD\u3002\u5386\u53F2\u4E0D\u8BA1\u5957\u9910\uFF0C\u6E05\u7406\u524D\u4ECD\u53EF\u4E0B\u8F7D\u5907\u4EFD\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u53D7\u5386\u53F2\u6E05\u7406\u5F71\u54CD\u3002","penzor.unified.ack":"\u5DF2\u9605\u8BFB\u5BB9\u91CF\u4E0E\u5386\u53F2\u4FDD\u7559\u901A\u77E5","penzor.unified.notice":"\u73B0\u5728\u53EA\u662F\u63D0\u9192\uFF0C\u8D85\u4E86\u4E5F\u4E0D\u4F1A\u505C\u6389\u540C\u6B65\u6216\u4E0A\u4F20","penzor.unified.over":"\u5DF2\u8D85\u8FC7\u7EDF\u4E00\u989D\u5EA6\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\uFF1B\u53EF\u6E05\u7406\u6587\u4EF6\u6216\u5347\u7EA7\u5957\u9910\u3002","penzor.unified.warn":"\u7EDF\u4E00\u7A7A\u95F4\u5373\u5C06\u7528\u6EE1\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\u3002","penzor.unified.accounting":"\u542B\u56DE\u6536\u7AD9 {trash}\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u7B97","penzor.unified.writable":"\u53EF\u4E0A\u4F20\u3001\u65B0\u5EFA\u3001\u91CD\u547D\u540D\u548C\u5220\u9664","penzor.unified.readonly":"\u53EA\u8BFB \xB7 \u7531\u6765\u6E90\u7BA1\u7406","penzor.unified.export":"\u53EF\u4E0B\u8F7D\u3001\u91CD\u547D\u540D\u548C\u6C38\u4E45\u5220\u9664","penzor.unified.counted":"\u8BA1\u5165\u7EDF\u4E00\u7528\u91CF \xB7 \u63D0\u9192\u9636\u6BB5","penzor.unified.policy":"\u771F\u8981\u9650\u5236\u4E4B\u524D\uFF0C\u81F3\u5C11\u63D0\u524D 30 \u5929\u544A\u8BC9\u4F60\u3002","penzor.unified.legacySync":"\u539F\u8BBE\u5907\u540C\u6B65\u9650\u5236\uFF1A{used} / {max}","penzor.unified.legacyApps":"\u539F\u5E94\u7528\u6587\u4EF6\u9650\u5236\uFF1A{used} / {max}","sub.identity":"\u63D2\u4EF6 ID","sub.identityHint":"\u63D0\u4EA4\u540E\u81EA\u52A8\u5206\u914D\u552F\u4E00 ID\u3002\u540D\u79F0\u53EF\u4EE5\u91CD\u590D\uFF0C\u66F4\u65B0\u6CBF\u7528\u540C\u4E00\u4E2A ID\u3002","sub.description":"\u8BE6\u7EC6\u63CF\u8FF0","sub.tags":"\u6807\u7B7E","sub.tagsHint":"\u4EE5\u9017\u53F7\u5206\u9694\uFF0C\u6700\u591A 8 \u4E2A","sub.minAppVersion":"\u6700\u4F4E Forsion \u7248\u672C","sub.maxAppVersion":"\u6700\u9AD8\u7248\u672C\uFF08\u4E0D\u542B\uFF09","sub.optional":"\u9009\u586B","sub.platforms":"\u652F\u6301\u7684\u7AEF","sub.requirementsHint":"\u652F\u6301 desktop\u3001macos\u3001windows\u3001linux\u3001android\u3001ios\u3001web\u3002\u7559\u7A7A\u8868\u793A\u672A\u58F0\u660E\u3002ZIP \u6E05\u5355\u4E2D\u7684\u8981\u6C42\u4F1A\u81EA\u52A8\u8BFB\u53D6\uFF0C\u624B\u586B\u503C\u987B\u4E0E\u6E05\u5355\u4E00\u81F4\u3002","sub.err.market_requirements_invalid":"\u7248\u672C\u8981\u6C42\u6216\u5E73\u53F0\u65E0\u6548\u3002","sub.err.market_requirements_mismatch":"\u624B\u586B\u7248\u672C\u8981\u6C42\u4E0E ZIP \u6E05\u5355\u4E0D\u4E00\u81F4\u3002","sub.mine":"\u6211\u7684\u6295\u7A3F","page.submission":"\u63D2\u4EF6\u6295\u7A3F","page.webPages":"\u6211\u7684\u7F51\u9875","web.title":"\u6211\u7684\u7F51\u9875","web.desc":"\u7528 Tangu \u6216 Coding Space \u53D1\u5E03\u7684\u7F51\u9875\u90FD\u5728\u8FD9\u91CC\u3002\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\uFF1B\u9875\u9762\u5728\u6C99\u7BB1\u91CC\u8FD0\u884C\uFF0C\u62FF\u4E0D\u5230\u8BBF\u5BA2\u7684 Forsion \u767B\u5F55\u6001\u3002","web.refresh":"\u5237\u65B0","web.used":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A","web.full":"\u540D\u989D\u5DF2\u6EE1\uFF0C\u4E0B\u7EBF\u4E00\u4E2A\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u624D\u80FD\u53D1\u65B0\u7684","web.empty":"\u8FD8\u6CA1\u6709\u53D1\u5E03\u8FC7\u7F51\u9875","web.emptyHint":"\u5728\u5BF9\u8BDD\u91CC\u8BA9 Tangu \u628A\u7F51\u9875\u53D1\u5E03\u51FA\u53BB\uFF0C\u6BD4\u5982\u300C\u628A\u8FD9\u4E2A\u9875\u9762\u53D1\u5E03\u6210\u7F51\u9875\u300D\uFF1BCoding Space \u91CC\u7684\u9879\u76EE\u4E5F\u53EF\u4EE5\u70B9\u300C\u53D1\u5E03\u300D\u3002","web.updated":"\u66F4\u65B0\u4E8E {date}","web.disabled":"\u5DF2\u505C\u7528","web.disabledHint":"\u8FD9\u4E2A\u7F51\u9875\u88AB\u7BA1\u7406\u5458\u505C\u7528\u4E86\uFF0C\u94FE\u63A5\u6253\u4E0D\u5F00\uFF0C\u4E5F\u4E0D\u80FD\u66F4\u65B0\u3002","web.copy":"\u590D\u5236\u94FE\u63A5","web.unpublish":"\u4E0B\u7EBF","web.unpublishConfirm":"\u786E\u8BA4\u4E0B\u7EBF","web.listingPending":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","web.listingApproved":"\u5DF2\u4E0A\u67B6","web.listingRejected":"\u4E0A\u67B6\u88AB\u9A73\u56DE","web.listingNote":"\u9A73\u56DE\u539F\u56E0\uFF1A{note}","web.listingApply":"\u7533\u8BF7\u4E0A\u67B6","web.listingReapply":"\u91CD\u65B0\u7533\u8BF7","web.listingWithdraw":"\u64A4\u56DE\u7533\u8BF7","web.listingDelist":"\u4E0B\u67B6","web.listingDelistConfirm":"\u786E\u8BA4\u4E0B\u67B6","web.listingSummary":"\u5546\u5E97\u7B80\u4ECB","web.listingSummaryPh":"\u4E00\u53E5\u8BDD\u4ECB\u7ECD\u8FD9\u4E2A\u7F51\u9875","web.listingHint":"\u5BA1\u6838\u901A\u8FC7\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C300 \u5B57\u4EE5\u5185\u3002","web.listingSubmit":"\u63D0\u4EA4\u7533\u8BF7","pub.cmd":"\u53D1\u5E03\u7F51\u9875\u5230 Forsion","pub.cmdNoArgs":"\u4ECE\u7F16\u7801\u5DE5\u4F5C\u5BA4\u6253\u5F00\u8981\u53D1\u5E03\u7684\u9879\u76EE","pub.title":"\u53D1\u5E03\u5230 Forsion\uFF1A{name}","pub.titleTerms":"\u53D1\u5E03\u4E3A\u516C\u5F00\u9875\u9762","pub.close":"\u5173\u95ED","pub.desc":"\u628A\u8FD9\u4E2A\u7F51\u9875\u53D1\u5E03\u6210\u516C\u5F00\u94FE\u63A5\uFF0C\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\u3002","pub.descPublished":"\u5DF2\u53D1\u5E03\u3002\u6539\u4E86\u4F5C\u54C1\u4E4B\u540E\u56DE\u6765\u70B9\u300C\u66F4\u65B0\u53D1\u5E03\u300D\uFF0C\u94FE\u63A5\u4E0D\u53D8\u3002","pub.needLogin":"\u53D1\u5E03\u9700\u8981\u767B\u5F55 Forsion \u8D26\u53F7","pub.login":"\u767B\u5F55 Forsion","pub.loginWaiting":"\u7B49\u5F85\u6D4F\u89C8\u5668\u5B8C\u6210\u6388\u6743\u2026","pub.name":"\u540D\u79F0","pub.slug":"\u94FE\u63A5\u6807\u8BC6","pub.slugHint":"3\u201332 \u4F4D\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u4E2D\u5212\u7EBF","pub.entry":"\u5165\u53E3\u9875\u9762","pub.noEntry":"\u9879\u76EE\u91CC\u8FD8\u6CA1\u6709 .html \u5165\u53E3\uFF0C\u5148\u8BA9 AI \u751F\u6210\u9875\u9762\u518D\u53D1\u5E03\u3002","pub.slots":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A\uFF08{tier}\uFF09","pub.hint":"\u8D44\u6E90\u8BF7\u7528\u76F8\u5BF9\u8DEF\u5F84\u5F15\u7528\uFF1B.ts / .tsx \u53D1\u5E03\u65F6\u81EA\u52A8\u8F6C\u8BD1\uFF0C\u4E0D\u7528\u6784\u5EFA\u3002","pub.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","pub.likes":"{n} \u4E2A\u8D5E","pub.saves":"{n} \u4EBA\u6536\u85CF","pub.copy":"\u590D\u5236\u94FE\u63A5","pub.copied":"\u5DF2\u590D\u5236","pub.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","pub.publish":"\u53D1\u5E03","pub.update":"\u66F4\u65B0\u53D1\u5E03","pub.saveUpdate":"\u4FDD\u5B58\u5E76\u66F4\u65B0","pub.publishing":"\u53D1\u5E03\u4E2D\u2026","pub.listingTitle":"\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D","pub.listingNone":"\u672A\u4E0A\u67B6","pub.listingPending":"\u5BA1\u6838\u4E2D","pub.listingApproved":"\u5DF2\u4E0A\u67B6","pub.listingRejected":"\u5DF2\u9A73\u56DE","pub.listingHint":"\u4E0A\u67B6\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C\u8981\u5E73\u53F0\u5BA1\u6838\u3002","pub.termsIntro":"\u53D1\u5E03\u540E\uFF0C\u4EFB\u4F55\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u67E5\u770B\u8FD9\u4E2A\u9875\u9762\uFF0C\u5B83\u4E5F\u53EF\u80FD\u88AB\u8F6C\u53D1\u6216\u88AB\u641C\u7D22\u5F15\u64CE\u6536\u5F55\u3002\u8BF7\u786E\u8BA4\uFF1A","pub.termsLi1":"\u4F60\u6709\u6743\u53D1\u5E03\u9875\u9762\u91CC\u7684\u6587\u5B57\u3001\u56FE\u7247\u3001\u97F3\u89C6\u9891\u548C\u5176\u4ED6\u5185\u5BB9\uFF1B","pub.termsLi2":"\u9875\u9762\u4E0D\u5305\u542B\u8FDD\u6CD5\u4FE1\u606F\u3001\u4FB5\u6743\u5185\u5BB9\u6216\u672A\u7ECF\u8BB8\u53EF\u62AB\u9732\u7684\u4E2A\u4EBA\u4FE1\u606F\uFF1B","pub.termsLi3":"\u4F60\u5BF9\u81EA\u5DF1\u53D1\u5E03\u7684\u5185\u5BB9\u627F\u62C5\u76F8\u5E94\u8D23\u4EFB\u3002","pub.termsManage":"\u5E73\u53F0\u4F9D\u636E\u6CD5\u5F8B\u6CD5\u89C4\u548C\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B\u7BA1\u7406\u516C\u5F00\u5185\u5BB9\uFF0C\u5BF9\u8FDD\u89C4\u5185\u5BB9\u53EF\u80FD\u9650\u5236\u8BBF\u95EE\u3001\u505C\u6B62\u5C55\u793A\u6216\u5220\u9664\u3002","pub.termsAgreePre":"\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F","pub.termsGuidelines":"\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B","pub.termsConfirm":"\u786E\u8BA4\u53D1\u5E03","pub.aiSaveFailed":"\u5DF2\u53D1\u5E03\uFF0C\u4F46 AI \u8BBE\u7F6E\u6CA1\u4FDD\u5B58\uFF1A{reason}","ai.whoPays":"\u8C01\u6765\u4ED8","ai.payer.visitor":"\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","ai.payer.author":"\u6211\u6765\u4ED8","ai.perVisitor":"\u6BCF\u4F4D\u8BBF\u5BA2","ai.perVisitorPre":"\u6BCF\u4EBA\u6BCF\u5929\u6700\u591A","ai.perVisitorPost":"\u6B21","ai.page":"\u8FD9\u4E2A\u7F51\u9875","ai.pagePre":"\u6BCF\u5929\u6700\u591A","ai.pagePost":"\u79EF\u5206","ai.max":"\u6700\u591A {n}","ai.whenUsedUp":"\u7528\u5B8C\u4EE5\u540E","ai.exhausted.visitor":"\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6","ai.exhausted.pause":"AI \u6682\u505C\u5230\u660E\u5929","ai.models":"\u53EF\u7528\u6A21\u578B","ai.modelDefault":"\u9ED8\u8BA4","ai.modelImage":"\u56FE\u50CF","ai.balance":"\u989D\u5EA6\u5305\u4F59\u989D","ai.points":"{n} \u79EF\u5206","ai.buy":"\u4E70\u989D\u5EA6\u5305","ai.noteAuthor":"\u8BBF\u5BA2\u7528 AI \u524D\u8981\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u53EA\u7528\u6765\u6309\u4EBA\u8BB0\u6B21\u6570\uFF0C\u4E0D\u6263\u4ED6\u4EEC\u7684\u989D\u5EA6\u3002\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u6263\uFF0C\u548C\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u65F6\u4E00\u6837\u591A\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","ai.noteVisitor":"\u770B\u7F51\u9875\u4E0D\u7528\u767B\u5F55\uFF1B\u8BBF\u5BA2\u7528\u5230 AI \u65F6\u518D\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u6263\u4ED6\u4EEC\u81EA\u5DF1\u7684\u989D\u5EA6\u3002","ai.noteOff":"\u300C\u6211\u6765\u4ED8\u300D\u6682\u672A\u5F00\u653E\uFF0CAI \u7531\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.agentNote":"forsion.ai.agent \u8FD9\u4E00\u671F\u4ECD\u6263\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u8BBF\u5BA2\u7B2C\u4E00\u6B21\u7528\u65F6\u4F1A\u5148\u786E\u8BA4\u3002","ai.cooldownNew":"\u65B0\u7F51\u9875\u53D1\u5E03\u6EE1 {h} \u5C0F\u65F6\u540E\u624D\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.cooldownUntil":"{time} \u8D77\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.save":"\u4FDD\u5B58","ai.saved":"AI \u8BBE\u7F6E\u5DF2\u4FDD\u5B58","web.tabMine":"\u6211\u53D1\u5E03\u7684 {n}","web.tabSaved":"\u6211\u6536\u85CF\u7684","web.tabSavedN":"\u6211\u6536\u85CF\u7684 {n}","web.ai.author":"AI \xB7 \u6211\u6765\u4ED8","web.ai.visitor":"AI \xB7 \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.paused":"AI \xB7 \u6211\u6765\u4ED8 \xB7 \u5DF2\u6682\u505C","web.ai.pausedSpike":"1 \u5C0F\u65F6\u5185\u7528\u5F97\u592A\u5FEB\uFF0C\u5DF2\u81EA\u52A8\u6539\u56DE\u8BBF\u5BA2\u4ED8","web.ai.pausedAdmin":"\u88AB\u7BA1\u7406\u5458\u6682\u505C\uFF0C\u73B0\u5728\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.resume":"\u6062\u590D\u6211\u6765\u4ED8","web.ai.todayAuthor":"\u4ECA\u5929 {calls} \u6B21 \xB7 {visitors} \u4F4D\u8BBF\u5BA2","web.ai.todayVisitor":"\u4ECA\u5929 {calls} \u6B21","web.ai.cap":"\u4ECA\u65E5\u4E0A\u9650","web.ai.none":"\u6CA1\u7528\u5230 AI","web.ai.settings":"AI \u8BBE\u7F6E","web.ai.cooldown":"{time} \u8D77\u7531\u4F60\u6765\u4ED8","pack.points":"\u79EF\u5206","pack.note":"\u9009\u4E86\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u4ECE\u8FD9\u91CC\u6263\uFF0C\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u8BA1\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","pack.lowNote":"\u5FEB\u7528\u5B8C\u4E86\u3002\u7528\u5B8C\u540E\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u6309\u5404\u81EA\u7684\u8BBE\u7F6E\uFF1A\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u6216\u6682\u505C\u5230\u660E\u5929\u3002","pack.monthSpent":"\u672C\u6708\u7528\u6389","pack.lastTopUp":"\u4E0A\u6B21\u5145\u503C","pack.topUp":"{date} +{n}","pack.usage":"\u7528\u91CF\u660E\u7EC6","pack.usageTitle":"\u6700\u8FD1 30 \u5929\u300C\u6211\u6765\u4ED8\u300D\u7684\u7528\u91CF","pack.usageEmpty":"\u6700\u8FD1 30 \u5929\u6CA1\u6709\u300C\u6211\u6765\u4ED8\u300D\u7684\u8C03\u7528","pack.col.day":"\u65E5\u671F","pack.col.page":"\u7F51\u9875","pack.col.calls":"\u6B21\u6570","pack.col.visitors":"\u8BBF\u5BA2","pack.col.points":"\u79EF\u5206","pack.storeTitle":"\u5546\u5E97","pack.storeUnavailable":"\u6253\u5F00\u300C\u5546\u5E97 \u203A \u7269\u54C1\u300D\u4E70\u989D\u5EA6\u5305","saved.empty":"\u8FD8\u6CA1\u6709\u6536\u85CF\u7684\u7F51\u9875","saved.emptyHint":"\u5728\u522B\u4EBA\u53D1\u5E03\u7684\u7F51\u9875\u53F3\u8FB9\u70B9\u661F\u6807\uFF0C\u5C31\u4F1A\u6536\u5230\u8FD9\u91CC\u3002","saved.open":"\u6253\u5F00","saved.author":"\u4F5C\u8005\u4E3B\u9875","saved.unsave":"\u53D6\u6D88\u6536\u85CF","saved.aiAuthor":"AI \u4F5C\u8005\u8BF7\u5BA2","saved.aiVisitor":"AI \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","backpack.effect.connectPack":"\u989D\u5EA6\u5305\u4F59\u989D +{n} \u79EF\u5206","backpack.effect.other":"\u5176\u4ED6\u6548\u679C","backpack.packUsed":"\u5DF2\u5145\u8FDB\u989D\u5EA6\u5305\u4F59\u989D","backpack.packUsedLine":"+{n} \u79EF\u5206 \xB7 \u73B0\u5728 {balance} \u79EF\u5206","sub.desc":"\u7BA1\u7406\u4F60\u6295\u7A3F\u7684\u5185\u5BB9\u3001\u5BA1\u6838\u7ED3\u679C\u548C\u7248\u672C\u66F4\u65B0\u3002","sub.new":"\u65B0\u6295\u7A3F","sub.refresh":"\u5237\u65B0","sub.empty":"\u8FD8\u6CA1\u6709\u6295\u7A3F","sub.emptyHint":"\u628A\u4F60\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001Agent \u6216 Space \u5206\u4EAB\u5230\u5E94\u7528\u5E02\u573A\u3002","sub.name":"\u540D\u79F0","sub.summary":"\u7B80\u4ECB","sub.type":"\u5185\u5BB9\u7C7B\u578B","sub.source":"\u53D1\u5E03\u6E20\u9053","sub.type.skill":"\u6280\u80FD","sub.type.agent":"Agent","sub.type.plugin":"\u63D2\u4EF6","sub.type.space":"Space","sub.type.theme":"\u4E3B\u9898","sub.type.amadeus_plugin":"Amadeus \u63D2\u4EF6","sub.pending":"\u5F85\u5BA1\u6838","sub.approved":"\u5DF2\u4E0A\u67B6","sub.rejected":"\u5DF2\u9A73\u56DE","sub.pendingVersion":"v{version} \u66F4\u65B0\u5F85\u5BA1\u6838","sub.rejectedVersion":"v{version} \u66F4\u65B0\u5DF2\u9A73\u56DE","sub.submit":"\u63D0\u4EA4\u5BA1\u6838","sub.submitted":"\u6295\u7A3F\u5DF2\u63D0\u4EA4\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u663E\u793A\u5728\u8FD9\u91CC\u548C\u4F60\u7684\u6536\u4EF6\u7BB1\u91CC\u3002","sub.updated":"\u65B0\u7248\u672C\u5DF2\u63D0\u4EA4\u5BA1\u6838\u3002\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.repo":"GitHub \u516C\u5F00\u4ED3\u5E93","sub.npm":"npm \u516C\u5F00\u5305","sub.repoHint":"\u4ECE\u4ED3\u5E93\u8BFB\u53D6 README \u548C Release\uFF1B\u4ED3\u5E93\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.npmHint":"\u4ECE npm \u8BFB\u53D6\u5305\u4FE1\u606F\uFF1B\u5BF9\u5E94\u516C\u5F00\u4ED3\u5E93\u7684\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.reviewHint":"\u65B0\u7248\u672C\u9700\u91CD\u65B0\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u5411\u7528\u6237\u63D0\u4F9B\u3002\u4F60\u7684 Forsion \u8D26\u53F7\u7528\u4E8E\u7BA1\u7406\u6295\u7A3F\u3002","sub.zipHint":"\u6700\u5927 50 MB\uFF0C\u5305\u5185\u5305\u542B\u5BF9\u5E94\u7684 manifest \u4E0E\u5165\u53E3\u6587\u4EF6\u3002","sub.filter":"\u6309\u72B6\u6001\u7B5B\u9009","sub.all":"\u5168\u90E8","sub.noResults":"\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6295\u7A3F","sub.downloads":"{n} \u6B21\u4E0B\u8F7D","sub.errName":"\u8BF7\u586B\u5199\u540D\u79F0\u3002","sub.errSource":"\u8BF7\u586B\u5199\u516C\u5F00\u4ED3\u5E93\u5730\u5740\u6216 npm \u5305\u540D\u3002","sub.errZip":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.errLarge":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_npm_invalid":"npm \u5305\u4E0D\u5B58\u5728\u6216\u4E0D\u7B26\u5408\u63D2\u4EF6\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_npm_source":"\u8BF7\u901A\u8FC7 npm \u53D1\u5E03\u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_github_source":"\u8BF7\u5728 GitHub \u53D1\u5E03 Release \u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_not_found":"\u6295\u7A3F\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.err.market_zip_required":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.err.market_zip_invalid":"ZIP \u5305\u7ED3\u6784\u4E0D\u7B26\u5408\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_zip_too_large":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_version_required":"\u5305\u91CC\u6CA1\u5199\u7248\u672C\u53F7\u3002\u5728 manifest \u91CC\u5199\u4E0A\u7248\u672C\u53F7\uFF08\u6280\u80FD\u5199\u5728 SKILL.md \u7684 version \u6216 metadata.version\uFF09\u518D\u6253\u5305\u3002","sub.err.market_version_invalid":"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7248\u672C\u53F7\u3002","sub.err.market_version_mismatch":"\u7248\u672C\u53F7\u4E0E\u5305\u5185 manifest \u4E0D\u4E00\u81F4\u3002","sub.err.market_version_not_newer":"\u65B0\u7248\u987B\u9AD8\u4E8E\u5F53\u524D\u5DF2\u4E0A\u67B6\u7248\u672C\u3002","sub.err.market_icon_invalid":"\u56FE\u6807\u5E94\u4E3A 64\u2013512 px \u7684\u6B63\u65B9\u5F62 PNG\u3002","sub.err.market_duplicate":"\u8BE5\u5185\u5BB9\u5DF2\u6709\u6295\u7A3F\uFF0C\u8BF7\u7BA1\u7406\u73B0\u6709\u6295\u7A3F\u3002","sub.err.market_update_pending":"\u5DF2\u6709\u65B0\u7248\u7B49\u5F85\u5BA1\u6838\uFF0C\u8BF7\u5148\u7B49\u5F85\u5BA1\u6838\u7ED3\u679C\u3002","sub.err.market_stale":"\u6295\u7A3F\u5DF2\u53D1\u751F\u53D8\u5316\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.notNewer":"\u5305\u91CC\u7684\u7248\u672C\u662F v{version}\uFF0C\u8981\u9AD8\u4E8E\u5546\u5E97\u5F53\u524D\u7684 v{current}\u3002","sub.reqNone":"\u6CA1\u6709\u58F0\u660E\u7248\u672C\u8981\u6C42\u548C\u5E73\u53F0","sub.dropTitle":"\u628A ZIP \u62D6\u5230\u8FD9\u91CC\uFF0C\u6216\u70B9\u8FD9\u91CC\u9009\u62E9","sub.dropHint":"\u6700\u5927 50 MB\u3002\u9009\u597D\u540E\u5148\u68C0\u67E5\uFF0C\u4E0D\u4F1A\u76F4\u63A5\u63D0\u4EA4\u3002","sub.dropReplace":"{size} \xB7 \u62D6\u5165\u6216\u70B9\u8FD9\u91CC\u6362\u4E00\u4E2A","sub.checkType":"\u7C7B\u578B","sub.checkVersion":"\u7248\u672C","sub.checkIcon":"\u56FE\u6807","sub.checkReadme":"\u8BF4\u660E\u6587\u6863","sub.checkReq":"\u8981\u6C42","sub.checkWarn":"\u6CE8\u610F","sub.iconYes":"\u5305\u91CC\u6709 icon.png","sub.iconNo":"\u5305\u91CC\u6CA1\u6709 icon.png\uFF0C\u5361\u7247\u663E\u793A\u7C7B\u578B\u56FE\u6807","sub.readmeYes":"\u53D6\u5305\u91CC\u7684 README.md","sub.readmeKeep":"\u5305\u91CC\u6CA1\u6709 README.md\uFF0C\u6CBF\u7528\u73B0\u5728\u7684\u8BF4\u660E","sub.readmeNo":"\u5305\u91CC\u6CA1\u6709 README.md","sub.warn.no_manifest":"\u5305\u91CC\u6CA1\u627E\u5230\u6E05\u5355\u6587\u4EF6\uFF08manifest\uFF09","sub.warn.type_mismatch":"\u5305\u91CC\u7684\u7C7B\u578B\u548C\u8FD9\u6761\u6295\u7A3F\u7684\u7C7B\u578B\u4E0D\u4E00\u81F4","sub.warn.tag_version_mismatch":"Release \u6807\u7B7E\u548C\u5305\u91CC\u7684\u7248\u672C\u53F7\u4E0D\u4E00\u81F4","sub.warn.id_slug_mismatch":"\u5305\u91CC\u7684 id \u548C\u5B89\u88C5\u76EE\u5F55\u540D\u4E0D\u540C\u3002\u4E0D\u5F71\u54CD\u7528\u6237\uFF1A\u66F4\u65B0\u7167\u5E38\u88C5\u56DE\u539F\u76EE\u5F55\uFF0C\u4E0D\u4F1A\u591A\u51FA\u4E00\u4EFD\uFF1B\u5B89\u88C5\u76EE\u5F55\u540D\u4E0A\u67B6\u540E\u4E0D\u80FD\u6539","sub.warn.engine_slug_mismatch":"\u5F15\u64CE\u63D2\u4EF6\u7684\u76EE\u5F55\u540D\u548C\u5B83\u7684 id \u4E0D\u4E00\u81F4","sub.warn.no_entry":"Amadeus \u63D2\u4EF6\u7F3A\u5C11\u5165\u53E3 main.js","sub.warn.has_node_modules":"\u5305\u91CC\u5E26\u4E86 node_modules\uFF0C\u4F53\u79EF\u5927\uFF0C\u901A\u5E38\u4E5F\u7528\u4E0D\u4E0A","sub.zipListedNote":"\u5BA1\u6838\u901A\u8FC7\u524D\uFF0C\u5546\u5E97\u7EE7\u7EED\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\u3002\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.zipUnlistedNote":"\u63D0\u4EA4\u540E\u66FF\u6362\u73B0\u5728\u8FD9\u4EFD\u5305\uFF0C\u91CD\u65B0\u8FDB\u5165\u5BA1\u6838\u3002","sub.submitVersion":"\u63D0\u4EA4 v{version} \u5BA1\u6838","sub.checkNew":"\u68C0\u67E5\u65B0\u7248\u672C","sub.checkAgain":"\u518D\u68C0\u67E5\u4E00\u6B21","sub.upToDate":"\u4E0A\u6E38\u6700\u65B0\u662F v{version}\uFF0C\u5546\u5E97\u5DF2\u662F v{current}\uFF0C\u6CA1\u6709\u65B0\u7248\u672C\u3002\u53D1\u5E03\u65B0\u7248\u672C\u540E\u518D\u6765\u68C0\u67E5\u3002","sub.upstreamLatest":"\u4E0A\u6E38\u6700\u65B0\uFF1Av{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"\u5546\u5E97\u5F53\u524D v{version}","sub.githubNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 GitHub \u53D1\u4E86\u65B0 Release\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.npmNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 npm \u53D1\u4E86\u65B0\u7248\u672C\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.secVersion":"\u7248\u672C","sub.secInfo":"\u5546\u5E97\u4FE1\u606F","sub.secHistory":"\u8BB0\u5F55","sub.edit":"\u7F16\u8F91","sub.unset":"\u672A\u586B\u5199","sub.infoNote":"\u4E0D\u7528\u4F20\u5305\u3001\u4E0D\u7528\u5347\u7248\u672C\u3002\u5DF2\u4E0A\u67B6\u7684\u4FEE\u6539\u540C\u6837\u8981\u8FC7\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.submitInfo":"\u63D0\u4EA4\u4FEE\u6539","sub.back":"\u8FD4\u56DE\u5217\u8868","sub.pendingInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5F85\u5BA1\u6838","sub.rejectedInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5DF2\u9A73\u56DE","sub.pendingHint":"\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.inReview":"\u6B63\u5728\u7B49\u5F85\u9996\u6B21\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.histApproved":"v{version} \u5BA1\u6838\u901A\u8FC7","sub.histSubmitted":"\u6295\u7A3F","sub.resubmitted":"\u5DF2\u91CD\u65B0\u63D0\u4EA4\u5BA1\u6838\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.infoSubmitted":"\u4FEE\u6539\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.err.market_no_release":"\u8FD9\u4E2A\u4ED3\u5E93\u8FD8\u6CA1\u6709 GitHub Release\u3002\u5546\u5E97\u8981\u9501\u5B9A\u4E00\u4E2A\u7248\u672C\uFF0C\u5148\u5728 GitHub \u53D1\u4E00\u4E2A Release\uFF0C\u518D\u56DE\u6765\u68C0\u67E5\u3002","sub.err.market_no_changes":"\u6CA1\u6709\u6539\u52A8\u3002","sub.err.market_dryrun_unsupported":"GitHub \u548C npm \u6295\u7A3F\u6CA1\u6CD5\u63D0\u524D\u68C0\u67E5\uFF0C\u76F4\u63A5\u63D0\u4EA4\u5BA1\u6838\u5373\u53EF\u3002","page.account":"\u8D26\u53F7","page.membershipUsage":"\u4F1A\u5458\u4E0E\u7528\u91CF","page.membershipQuota":"\u4F1A\u5458\u4E0E\u989D\u5EA6","page.pointsInvite":"\u79EF\u5206\u4E0E\u9080\u8BF7","account.details.title":"\u767B\u5F55\u4E0E\u8D44\u6599","account.details.desc":"\u5934\u50CF\u3001\u6635\u79F0\u4E0E\u7B80\u4ECB\u5728\u300C\u4E2A\u4EBA\u4E3B\u9875\u300D\u4E2D\u7F16\u8F91\u3002","account.details.username":"\u7528\u6237\u540D","diag.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u8BCA\u65AD\u6570\u636E\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","page.profile":"\u4E2A\u4EBA\u4E3B\u9875","page.quota":"\u989D\u5EA6\u4E0E\u79EF\u5206","page.backpack":"\u80CC\u5305","page.security":"\u5B89\u5168","page.usage":"\u7528\u91CF\u8BB0\u5F55","page.feedback":"\u53CD\u9988","store.group":"\u4F1A\u5458\u4E0E\u79EF\u5206","store.membership":"\u4F1A\u5458","store.membership.desc":"\u5347\u7EA7\u6863\u4F4D\uFF0C\u83B7\u5F97\u66F4\u591A\u6BCF\u65E5\u4E0E\u6BCF\u5468\u989D\u5EA6","store.points":"\u79EF\u5206","store.points.desc":"\u5145\u503C\u79EF\u5206\uFF0C\u7528\u6765\u5151\u6362\u7269\u54C1","store.items":"\u7269\u54C1","store.items.desc":"\u7528\u79EF\u5206\u5151\u6362\u7684\u7269\u54C1\uFF0C\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.status":"\u6863\u4F4D\u4E0E\u79EF\u5206","store.tier":"\u5F53\u524D\u6863\u4F4D","store.balance":"\u79EF\u5206\u4F59\u989D","store.choosePlan":"\u9009\u62E9\u6863\u4F4D","store.payHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u56DE\u5230\u5E94\u7528\u540E\u81EA\u52A8\u5237\u65B0","store.payOff":"\u6682\u65F6\u4E0D\u80FD\u8D2D\u4E70","store.period":"\u4ED8\u8D39\u5468\u671F","store.period.monthly":"\u6708\u4ED8","store.period.quarterly":"\u5B63\u4ED8","store.period.yearly":"\u5E74\u4ED8","store.per.monthly":"/ \u6708","store.per.quarterly":"/ \u5B63","store.per.yearly":"/ \u5E74","store.currentTier":"\u5F53\u524D\u6863\u4F4D","store.pay":"\u53BB\u652F\u4ED8","store.payPrice":"{price} \u53BB\u652F\u4ED8","store.noPlans":"\u6682\u65F6\u6CA1\u6709\u53EF\u9009\u7684\u6863\u4F4D","store.packs":"\u79EF\u5206\u5305","store.packsHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u4ED8\u6B3E\u540E\u79EF\u5206\u5373\u65F6\u5230\u8D26","store.noPacks":"\u6682\u65F6\u6CA1\u6709\u79EF\u5206\u5305","store.kind.pack":"\u79EF\u5206\u5305","store.kind.card":"\u9053\u5177","store.kind.code":"\u5151\u6362\u7801","store.kind.item":"\u7269\u54C1","store.nPoints":"{n} \u79EF\u5206","store.instant":"\u4ED8\u6B3E\u540E\u5373\u65F6\u5230\u8D26","store.kind.custom":"\u81EA\u5B9A\u4E49","store.customPack":"\u81EA\u5B9A\u4E49\u6570\u91CF","store.customPackHint":"{min} \u79EF\u5206\u8D77\u5145\uFF0C\u5728\u652F\u4ED8\u9875\u586B\u5199\u8981\u5145\u7684\u79EF\u5206\u6570","store.customPackPay":"\u586B\u5199\u6570\u91CF","store.pricingTitle":"\u53C2\u8003\u6D88\u8017\uFF081\xD7 \u500D\u7387\uFF09","store.pricingFormula":"\u6D88\u8017\u79EF\u5206 \u2248\uFF08\u672A\u547D\u4E2D\u7F13\u5B58\u7684\u8F93\u5165 token \xD7 {input} + \u8F93\u51FA token \xD7 {output} + \u7F13\u5B58\u547D\u4E2D\u7684\u8F93\u5165 token \xD7 {cached}\uFF09\xF7 1,000,000 \xD7 \u6A21\u578B\u500D\u7387","store.pricingExample":"\u4F8B\uFF1A\u4E00\u6B21\u8F93\u5165 1 \u4E07 token\u3001\u8F93\u51FA 2 \u5343 token\uFF0C1\xD7 \u6A21\u578B\u7EA6\u6D88\u8017 {n} \u79EF\u5206\u3002","store.redeemTitle":"\u79EF\u5206\u5151\u6362","store.redeemHint":"\u7528\u79EF\u5206\u5151\u6362\u5728\u5E94\u7528\u5185\u76F4\u63A5\u5B8C\u6210\uFF0C\u5151\u6362\u540E\u7269\u54C1\u8FDB\u80CC\u5305","store.redeem":"{n} \u79EF\u5206\u5151\u6362","store.redeemConfirm":"\u786E\u8BA4\u82B1 {n} \u79EF\u5206","store.redeemed":"\u5DF2\u5151\u6362\uFF0C\u7269\u54C1\u5728\u80CC\u5305\u91CC","store.uncertain":"\u6CA1\u6536\u5230\u7ED3\u679C\u3002\u5148\u5230\u80CC\u5305\u770B\u4E00\u4E0B\u6709\u6CA1\u6709\u5230\u8D26\uFF0C\u518D\u51B3\u5B9A\u8981\u4E0D\u8981\u91CD\u8BD5\u3002","store.soldOut":"\u5DF2\u552E\u7F44","store.left":"\u4F59 {n}","store.toBackpack":"\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.limitReached":"\u5DF2\u8FBE\u8D2D\u4E70\u4E0A\u9650","store.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u6682\u65F6\u4E0D\u80FD\u5151\u6362","store.noItems":"\u6682\u65F6\u6CA1\u6709\u53EF\u5151\u6362\u7684\u7269\u54C1","store.itemsOff":"\u7269\u54C1\u5151\u6362\u6682\u672A\u5F00\u653E","store.openBackpack":"\u6253\u5F00\u80CC\u5305","backpack.desc":"\u5728\u8FD9\u91CC\u67E5\u770B\u4F60\u83B7\u5F97\u7684\u7269\u54C1\uFF0C\u70B9\u51FB\u683C\u5B50\u67E5\u770B\u8BE6\u60C5\u3002","backpack.refresh":"\u5237\u65B0","backpack.total":"\u5171 {n} \u4EF6\u7269\u54C1","backpack.grid":"\u80CC\u5305\u7269\u54C1","backpack.slot":"{name}\uFF0C\u6570\u91CF {n}","backpack.item":"\u7269\u54C1","backpack.empty":"\u80CC\u5305\u8FD8\u662F\u7A7A\u7684","backpack.emptyHint":"\u5151\u6362\u6216\u83B7\u8D60\u7684\u7269\u54C1\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","backpack.select":"\u70B9\u51FB\u7269\u54C1\u67E5\u770B\u8BE6\u60C5","backpack.details":"\u7269\u54C1\u8BE6\u60C5","backpack.quantity":"\u6301\u6709\u6570\u91CF","backpack.acquired":"\u83B7\u5F97\u65F6\u95F4","backpack.source":"\u83B7\u5F97\u65B9\u5F0F","backpack.source.points":"\u79EF\u5206\u5151\u6362","backpack.source.admin":"\u8D60\u9001","backpack.source.reward":"\u5956\u52B1","backpack.source.other":"\u4E91\u7AEF\u53D1\u653E","backpack.consumable":"\u6D88\u8017\u54C1","backpack.voucher":"\u5361\u5238","backpack.getCards":"\u67E5\u770B\u989D\u5EA6","backpack.manageCards":"\u53BB\u4F7F\u7528","backpack.reveal":"\u67E5\u770B\u5361\u5BC6","backpack.copyKey":"\u590D\u5236\u5361\u5BC6","backpack.noKey":"\u8FD9\u4EF6\u7269\u54C1\u6CA1\u6709\u5361\u5BC6\u3002","backpack.use":"\u4F7F\u7528","backpack.confirmUse":"\u786E\u8BA4\u4F7F\u7528","backpack.consumeConfirm":"\u4F7F\u7528\u540E\u6D88\u8017 1 \u4EF6\u7269\u54C1\u3002","backpack.collectible":"\u7EAA\u5FF5\u54C1","backpack.effect.points":"+{n} \u79EF\u5206","backpack.effect.cards":"+{n} \u5F20\u91CD\u7F6E\u5361","backpack.effect.quota":"\u91CD\u7F6E\u4ECA\u65E5\u4E0E\u672C\u5468\u989D\u5EA6","backpack.rarity.common":"\u666E\u901A","backpack.rarity.rare":"\u7A00\u6709","backpack.rarity.epic":"\u53F2\u8BD7","backpack.rarity.legendary":"\u4F20\u8BF4","backpack.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u5DF2\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u80CC\u5305\u3002","backpack.notUsable":"\u8FD9\u4EF6\u7269\u54C1\u4E0D\u80FD\u4F7F\u7528\u3002","backpack.quotaUnavailable":"\u8BF7\u5148\u4F7F\u7528\u4E91\u7AEF AI \u521D\u59CB\u5316\u989D\u5EA6\uFF0C\u518D\u4F7F\u7528\u8FD9\u4EF6\u7269\u54C1\u3002","common.cancel":"\u53D6\u6D88","common.copied":"\u5DF2\u590D\u5236","common.copyFailed":"\u590D\u5236\u5931\u8D25","common.done":"\u5B8C\u6210","common.loadFailed":"\u6CA1\u80FD\u52A0\u8F7D","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","common.loading":"\u52A0\u8F7D\u4E2D\u2026","common.openInBrowser":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","common.retry":"\u91CD\u8BD5","common.save":"\u4FDD\u5B58","common.thisWeek":"\u672C\u5468","common.today":"\u4ECA\u65E5","common.unlimited":"\u4E0D\u9650","ann.eyebrow":"FORSION \xB7 \u516C\u544A","ann.close":"\u5173\u95ED","ann.ok":"\u77E5\u9053\u4E86","signin.button":"\u767B\u5F55 Forsion","signin.desc":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u5728\u8FD9\u91CC\u7BA1\u7406\u8D26\u53F7\u3001\u989D\u5EA6\u3001\u5B89\u5168\u3001\u6295\u7A3F\u4E0E\u53CD\u9988\u3002","signin.pending":"\u7B49\u5F85\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u767B\u5F55\u2026","signin.deviceHint":"\u6D4F\u89C8\u5668\u4F1A\u81EA\u52A8\u6253\u5F00\u767B\u5F55\u9875\uFF1B\u6CA1\u6709\u6253\u5F00\u7684\u8BDD\uFF0C\u7528\u624B\u673A\u626B\u7801\u6216\u6253\u5F00\u4E0B\u9762\u7684\u94FE\u63A5\uFF0C\u5E76\u6838\u5BF9\u9A8C\u8BC1\u7801\u3002","signin.code":"\u9A8C\u8BC1\u7801","signin.openLink":"\u6253\u5F00\u767B\u5F55\u9875","signin.copyLink":"\u590D\u5236\u94FE\u63A5","signin.qrLabel":"\u767B\u5F55\u4E8C\u7EF4\u7801","account.profile.title":"\u4E2A\u4EBA\u8D44\u6599","account.profile.desc":"\u5934\u50CF\u3001\u6635\u79F0\uFF0C\u4EE5\u53CA\u7ED1\u5B9A\u7684\u624B\u673A\u548C\u90AE\u7BB1","account.avatar.change":"\u66F4\u6362\u5934\u50CF","account.avatar.saved":"\u5934\u50CF\u5DF2\u66F4\u65B0","account.nickname.edit":"\u4FEE\u6539\u6635\u79F0","account.nickname.label":"\u6635\u79F0","account.nickname.saved":"\u6635\u79F0\u5DF2\u66F4\u65B0","account.role.admin":"\u7BA1\u7406\u5458","account.username":"\u7528\u6237\u540D {name}","account.contact.phone":"\u624B\u673A","account.contact.email":"\u90AE\u7BB1","account.contact.unbound":"\u672A\u7ED1\u5B9A","account.contact.manage":"\u53BB\u5B89\u5168\u9875\u7BA1\u7406","account.web.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3","account.web.desc":"\u4E91\u7A7A\u95F4\u3001AI \u5927\u8111\u4E0E\u4E3B\u9898\u5728\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7BA1\u7406\u3002","wechat.title":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B","wechat.desc":"\u628A\u5C0F\u7EA2\u4E66\u3001B \u7AD9\u3001X \u548C\u7F51\u9875\u94FE\u63A5\u53D1\u7ED9 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7\uFF0C\u81EA\u52A8\u526A\u85CF\u8FDB\u4F60\u4E91\u7AEF\u667A\u5E93\u7684 Plugins/wechat-helper \u6587\u4EF6\u5939\uFF1B\u5176\u4ED6\u6D88\u606F\u6309\u5929\u8BB0\u8FDB\u65E5\u8BB0\u3002","wechat.status":"\u7ED1\u5B9A\u72B6\u6001","wechat.bound":"\u5DF2\u7ED1\u5B9A","wechat.boundAt":"{date} \u7ED1\u5B9A","wechat.where":"\u53D1\u7ED9\u4F01\u4E1A\u5FAE\u4FE1\u53F7\u7684\u94FE\u63A5\u4F1A\u51FA\u73B0\u5728\u667A\u5E93\u7684 Plugins/wechat-helper \u91CC\uFF0C\u4E00\u822C\u4E00\u5206\u949F\u5185\u5230\u3002","wechat.notEligible":"\u4F60\u5F53\u524D\u7684\u4F1A\u5458\u6863\u6682\u4E0D\u80FD\u4F7F\u7528\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u3002","wechat.disabled":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u6682\u672A\u5F00\u653E\u3002","wechat.code":"\u7ED1\u5B9A\u7801","wechat.contact":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0\u300C{contact}\u300D","wechat.contactUnknown":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7","wechat.getCode":"\u83B7\u53D6\u7ED1\u5B9A\u7801","wechat.newCode":"\u6362\u4E00\u4E2A","wechat.copy":"\u590D\u5236\u7ED1\u5B9A\u7801","wechat.send":"{contact}\uFF0C\u518D\u628A\u8FD9\u4E32\u6570\u5B57\u53D1\u7ED9\u5B83\u3002","wechat.waiting":"\u7B49\u5F85\u7ED1\u5B9A\u2026\u7ED1\u5B9A\u7801\u5728 {time} \u524D\u6709\u6548\u3002\u4F01\u4E1A\u5FAE\u4FE1\u90A3\u8FB9\u4E0D\u4F1A\u56DE\u590D\uFF0C\u7ED1\u4E0A\u540E\u8FD9\u91CC\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002","wechat.unbind":"\u89E3\u7ED1","wechat.unbindConfirm":"\u786E\u8BA4\u89E3\u7ED1","address.label":"\u4E3B\u9875\u5730\u5740","address.change":"\u6539\u5730\u5740","address.title":"\u6539\u4E3B\u9875\u5730\u5740","address.desc":"\u4F60\u53D1\u5E03\u7684\u4F5C\u54C1\u90FD\u5728\u8FD9\u4E2A\u5730\u5740\u4E0B\u9762\u3002\u6539\u4E86\u4E4B\u540E\uFF0C\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E5F\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u53BB\u7528\u3002","address.now":"\u73B0\u5728","address.new":"\u6539\u6210","address.rule":"3\u201330 \u4F4D\uFF0C\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u300C-\u300D","address.checking":"\u6B63\u5728\u67E5\u80FD\u4E0D\u80FD\u7528\u2026","address.ok":"\u53EF\u4EE5\u7528","address.bad":"\u8FD9\u4E2A\u5730\u5740\u4E0D\u80FD\u7528","address.same":"\u8FD9\u5C31\u662F\u4F60\u73B0\u5728\u7684\u5730\u5740","address.freeOne":"\u8FD9\u662F\u4F60\u7684\u4E00\u6B21\u514D\u8D39\u4FEE\u6539","address.freeN":"\u8FD9\u6B21\u514D\u8D39\uFF08\u4F60\u6709 {n} \u6B21\u514D\u8D39\u4FEE\u6539\uFF09","address.freeAfter":"\u4E4B\u540E\u6539\u5730\u5740\u8981\u7528\u5730\u5740\u6539\u540D\u5361","address.card":"\u7528\u6389 1 \u5F20\u5730\u5740\u6539\u540D\u5361","address.cardHave":"\u4F60\u6709 {n} \u5F20","address.need":"\u6539\u5730\u5740\u8981 1 \u5F20\u5730\u5740\u6539\u540D\u5361\uFF0C\u4F60\u8FD8\u6CA1\u6709","address.price":"{price} \u79EF\u5206 \xB7 \u4F59\u989D {balance}","address.soldout":"\u73B0\u5728\u4E70\u4E0D\u5230\u5730\u5740\u6539\u540D\u5361","address.cooldown":"\u4E24\u6B21\u6539\u5730\u5740\u81F3\u5C11\u9694 {days} \u5929","address.cooldownUntil":"{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539","address.go":"\u6539\u5730\u5740","address.goCard":"\u7528\u5361\u6539\u5730\u5740","address.goBuy":"\u7528 {price} \u79EF\u5206\u4E70\u4E00\u5F20\u5E76\u6539","address.shop":"\u53BB\u5546\u5E97\u770B\u770B","address.done":"\u4E3B\u9875\u5730\u5740\u6539\u6210\u4E86 {url}","address.loadFailed":"\u5730\u5740\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","address.errTaken":"\u8FD9\u4E2A\u5730\u5740\u521A\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u6362\u4E00\u4E2A\u5427\u3002","address.errNeedCard":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u4E86\uFF0C\u6539\u5730\u5740\u8981\u4E00\u5F20\u5730\u5740\u6539\u540D\u5361\u3002","address.errCooldown":"\u8FD8\u6CA1\u5230\u80FD\u6539\u7684\u65F6\u5019\uFF1A{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539\u3002","address.errPoints":"\u79EF\u5206\u4E0D\u591F\u4E70\u8FD9\u5F20\u5361\u3002","address.errBought":"\u5361\u5DF2\u7ECF\u4E70\u597D\u653E\u8FDB\u80CC\u5305\u4E86\uFF0C\u4F46\u5730\u5740\u6CA1\u6539\u6210\uFF1A{reason}","address.errSoldout":"\u5730\u5740\u6539\u540D\u5361\u521A\u4E0B\u67B6\u4E86\uFF0C\u73B0\u5728\u4E70\u4E0D\u5230\u3002","address.errLimit":"\u5730\u5740\u6539\u540D\u5361\u5DF2\u7ECF\u4E70\u5230\u4E0A\u9650\u4E86\u3002","address.errUnknown":"\u6CA1\u786E\u8BA4\u5230\u6539\u6CA1\u6539\u6210\uFF0C\u7A0D\u540E\u5237\u65B0\u770B\u770B\u518D\u8BF4\u3002","backpack.addressCard":"\u5730\u5740\u6539\u540D\u5361","backpack.addressCard.desc":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u540E\uFF0C\u6539\u4E00\u6B21\u4E3B\u9875\u5730\u5740\u7528\u4E00\u5F20\u3002\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u8D70\u3002","backpack.addressCard.use":"\u53BB\u6539\u5730\u5740","member.title":"\u4F1A\u5458","member.desc":"\u5F53\u524D\u6863\u4F4D\u3001\u65B9\u6848\u4E0E\u5230\u671F\u65E5","member.upgrade":"\u5347\u7EA7\u4F1A\u5458","member.renew":"\u7EED\u8D39","member.freeName":"\u514D\u8D39\u7248","member.freeHint":"\u5347\u7EA7\u4F1A\u5458\u53EF\u4EE5\u83B7\u5F97\u66F4\u591A AI \u989D\u5EA6","member.expires":"{date} \u5230\u671F","member.noExpiry":"\u957F\u671F\u6709\u6548","member.loadFailed":"\u4F1A\u5458\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","session.title":"\u767B\u5F55","session.desc":"\u7BA1\u7406\u8FD9\u53F0\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u72B6\u6001","local.title":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u8D26\u53F7","local.desc":"\u5728\u767B\u5F55\u8FC7\u7684\u8D26\u53F7\u4E4B\u95F4\u5207\u6362","local.current":"\u5F53\u524D","local.switch":"\u5207\u6362","local.add":"\u767B\u5F55\u5176\u4ED6\u8D26\u53F7","local.signOut":"\u9000\u51FA\u767B\u5F55","local.empty":"\u8FD8\u6CA1\u6709\u4FDD\u5B58\u7684\u8D26\u53F7","local.loadFailed":"\u8D26\u53F7\u5217\u8868\u6682\u65F6\u8BFB\u4E0D\u5230","diag.title":"\u8BCA\u65AD\u6570\u636E","diag.desc":"\u5E2E\u52A9\u6211\u4EEC\u6392\u67E5\u95EE\u9898\u3001\u6539\u8FDB Forsion\u3002\u9ED8\u8BA4\u5173\u95ED\u3002","diag.enable":"\u4E0A\u4F20\u8BCA\u65AD\u6570\u636E","diag.enableDesc":"\u6253\u5F00\u540E\uFF0C\u8FD9\u53F0\u7535\u8111\u4F1A\u5B9A\u671F\u4E0A\u4F20\u4E00\u4EFD Forsion \u4FE1\u606F\u5FEB\u7167\u5230\u4F60\u7684 Forsion \u8D26\u53F7\uFF0CForsion \u56E2\u961F\u53EF\u4EE5\u67E5\u770B\u3002\u591A\u4E45\u4E0A\u4F20\u4E00\u6B21\u7531 Forsion \u56E2\u961F\u8BBE\u5B9A\uFF0C\u9ED8\u8BA4\u6BCF\u5929\u4E00\u6B21\u3002\u968F\u65F6\u53EF\u4EE5\u5173\u95ED\u3002","diag.collected":"\u4F1A\u4E0A\u4F20","diag.item.app":"\u5E94\u7528\u4E0E\u7CFB\u7EDF\u7684\u7248\u672C\uFF0C\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57\u3001\u5185\u5B58\u4E0E\u78C1\u76D8\u4F59\u91CF","diag.item.settings":"\u6A21\u578B\u4E0E\u8BED\u97F3\u7684\u9009\u62E9\uFF0C\u540E\u53F0 Agent \u4E0E\u63D2\u4EF6\u8BBE\u7F6E\u91CC\u7684\u5F00\u5173\u548C\u6570\u503C\uFF0CMCP \u670D\u52A1\u4E0E\u6D88\u606F\u901A\u9053\u7684\u540D\u5B57\u548C\u5F00\u5173","diag.item.agents":"Agent \u4E0E\u56E2\u961F\u7684\u914D\u7F6E\uFF08\u540D\u5B57\u3001\u6A21\u578B\u8FD9\u7C7B\u9009\u9879\uFF1B\u63CF\u8FF0\u4E0E\u63D0\u793A\u8BCD\u53EA\u8BB0\u957F\u5EA6\uFF0C\u6B63\u6587\u5F52\u4E0B\u9762\u300C\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55\u300D\u90A3\u4E2A\u5F00\u5173\uFF09","diag.item.plugins":"\u5DF2\u5B89\u88C5\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001\u4E3B\u9898\u548C Space \u7684\u540D\u5B57\u4E0E\u7248\u672C","diag.item.runs":"\u6700\u8FD1 7 \u5929\u7684\u8FD0\u884C\u8BB0\u5F55\uFF1A\u6BCF\u6B21\u8FD0\u884C\u7684\u72B6\u6001\u548C\u62A5\u9519\u539F\u56E0\uFF0C\u6A21\u578B\u8C03\u7528\u4E0E\u5DE5\u5177\u7684\u7528\u91CF\u3001\u8017\u65F6\uFF08\u4E0D\u5E26\u5BF9\u8BDD\u5185\u5BB9\u548C\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\uFF09\uFF0C\u4EE5\u53CA\u5F15\u64CE\u6700\u8FD1\u7684\u8FD0\u884C\u65E5\u5FD7","diag.item.sync":"\u4E91\u540C\u6B65\u7684\u72B6\u6001\uFF1A\u540C\u6B65\u89C4\u5219\u5F00\u5728\u54EA\u51E0\u7C7B\u4E0A\uFF0C\u6700\u8FD1\u51E0\u8F6E\u4E0A\u4F20\u3001\u4E0B\u8F7D\u3001\u5220\u9664\u548C\u51B2\u7A81\u526F\u672C\u7684\u4E2A\u6570\uFF0C\u4EE5\u53CA\u540C\u6B65\u7684\u62A5\u9519\u539F\u56E0\uFF08\u8DEF\u5F84\u4F1A\u906E\u6389\uFF0C\u4E0D\u5E26\u6587\u4EF6\u540D\u548C\u6587\u4EF6\u5185\u5BB9\uFF09","diag.notCollected":"\u4E0D\u4F1A\u4E0A\u4F20\uFF1A\u4FDD\u5B58\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u767B\u5F55\u51ED\u636E\u4E0E API \u5BC6\u94A5\u3001\u7B14\u8BB0\u6587\u4EF6\u3001Agent \u7684\u8D44\u6599\u5E93\u3001\u63D2\u4EF6\u6570\u636E\u3002","diag.sessions":"\u5305\u542B\u4F1A\u8BDD\u5185\u5BB9","diag.sessionsDesc":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u5BF9\u8BDD\uFF1A\u4F60\u548C Agent \u7684\u6D88\u606F\u6587\u5B57\u3001Agent \u7684\u601D\u8003\u8FC7\u7A0B\u548C\u7528\u5230\u7684\u5DE5\u5177\u540D\uFF0C\u5305\u62EC\u56E2\u961F\u6210\u5458\u3001\u8BA8\u8BBA\u3001\u59D4\u6D3E\u5728\u540E\u53F0\u505A\u7684\u90A3\u90E8\u5206\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\u548C\u9644\u4EF6\u672C\u8EAB\u4E0D\u5E26\uFF1B\u6D88\u606F\u91CC\u51FA\u73B0\u7684\u6587\u4EF6\u540D\u3001Agent \u5728\u56DE\u590D\u91CC\u590D\u8FF0\u7684\u7B14\u8BB0\u6216\u6587\u4EF6\u5185\u5BB9\u4F1A\u5728\u5176\u4E2D\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.memory":"\u5305\u542B Agent \u7684\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55","diag.memoryDesc":"\u6BCF\u4E2A Agent \u7684\u4EBA\u8BBE\uFF08\u5305\u62EC\u914D\u7F6E\u91CC\u7684\u63CF\u8FF0\u548C\u5F00\u53D1\u8005\u6307\u4EE4\uFF09\uFF0C\u548C\u5B83\u81EA\u5DF1\u6512\u4E0B\u6765\u7684\u5185\u5BB9\uFF1A\u8BB0\u5FC6\u548C\u8FD8\u6CA1\u6574\u7406\u7684\u8BB0\u5FC6\u5019\u9009\u3001\u8FDB\u5316\u8BB0\u5F55\u3001\u5199\u7ED9\u4F60\u7684\u534F\u4F5C\u8BF4\u660E\u3001\u6700\u8FD1 7 \u5929\u7684\u65E5\u5FD7\u548C\u8BB0\u5FC6\u6574\u7406\u8BB0\u5F55\uFF0C\u4EE5\u53CA\u9879\u76EE\u8BB0\u5FC6\uFF1B\u8FD8\u6709\u56E2\u961F\u7684\u8BBE\u5B9A\u548C\u4F60\u7684\u7528\u6237\u753B\u50CF\u3002\u8FD9\u4E9B\u662F\u4F60\u7ED9 Agent \u548C\u56E2\u961F\u5199\u7684\u8BBE\u5B9A\uFF0C\u548C Agent \u4ECE\u5BF9\u8BDD\u91CC\u8BB0\u4E0B\u7684\u5173\u4E8E\u4F60\u548C\u4F60\u7684\u5DE5\u4F5C\u7684\u4E8B\u5B9E\uFF0C\u6BCF\u6B21\u4E0A\u4F20\u5B83\u4EEC\u5F53\u524D\u7684\u5185\u5BB9\uFF08\u5F88\u957F\u7684\u4F1A\u622A\u65AD\uFF09\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.activity":"\u5305\u542B\u6D3B\u52A8\u65E5\u5FD7","diag.activityDesc":"\u6D3B\u52A8\u8BB0\u5F55\u91CC\u6709\u5BF9\u8BDD\u5F00\u5934\u7684\u51E0\u5341\u4E2A\u5B57\u548C\u7B14\u8BB0\u6587\u4EF6\u540D\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.last":"\u4E0A\u6B21\u4E0A\u4F20\uFF1A{time}","diag.noUpload":"\u8FD8\u6CA1\u6709\u4E0A\u4F20\u8FC7","diag.freq.hour":"\u6BCF\u5C0F\u65F6\u4E00\u6B21","diag.freq.hours":"\u6BCF {n} \u5C0F\u65F6\u4E00\u6B21","diag.freq.day":"\u6BCF\u5929\u4E00\u6B21","diag.freq.days":"\u6BCF {n} \u5929\u4E00\u6B21","diag.freq.manual":"Forsion \u56E2\u961F\u9700\u8981\u65F6\u624D\u91C7\u96C6","diag.retention":"\u4E91\u7AEF\u4FDD\u7559\u8FD9\u53F0\u7535\u8111\u6700\u8FD1 {n} \u5929\u7684\u5FEB\u7167\u3002\u5173\u95ED\u540E\u4E0D\u518D\u4E0A\u4F20\uFF1B\u5DF2\u4E0A\u4F20\u7684\u5FEB\u7167\u4ECD\u7559\u5728\u4E91\u7AEF\uFF0C\u9700\u8981\u5220\u9664\u53EF\u4EE5\u5728\u300C\u53CD\u9988\u300D\u91CC\u544A\u8BC9\u6211\u4EEC\u3002","page.privacy":"\u9690\u79C1\u4E0E\u6570\u636E","privacy.tab":"\u5E2E\u52A9\u6539\u8FDB","privacy.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u5E2E\u52A9\u6539\u8FDB Forsion\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","privacy.needUpdate":"\u8FD9\u4E2A\u7248\u672C\u7684 Forsion \u8FD8\u4E0D\u4F1A\u53D1\u9001\u8FD9\u4E9B\u6570\u636E\uFF0C\u66F4\u65B0 Forsion \u540E\u624D\u4F1A\u751F\u6548\u3002","privacy.devBuild":"\u5F00\u53D1\u7248\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.signInFirst":"\u767B\u5F55\u540E\u624D\u80FD\u5F00\u3002\u6CA1\u767B\u5F55\u65F6\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.improve.title":"\u5E2E\u52A9\u6539\u8FDB Forsion","privacy.improve.desc":"\u53EA\u53D1\u5143\u6570\u636E\uFF0C\u7528\u6765\u5B9A\u4F4D\u6545\u969C\u3001\u770B\u54EA\u91CC\u6162\u3002\u767B\u5F55 Forsion \u8D26\u53F7\u65F6\u624D\u4F1A\u53D1\u9001\uFF0C\u4F46\u4E0D\u5173\u8054\u4F60\u7684\u8D26\u53F7\u3002","privacy.improve.switch":"\u53D1\u9001\u5D29\u6E83\u62A5\u544A\u548C\u4F7F\u7528\u7EDF\u8BA1","privacy.improve.switchHint":"\u5173\u6389\u540E\u7ACB\u523B\u505C\u6B62\u53D1\u9001\uFF0C\u672C\u673A\u8FD8\u6CA1\u53D1\u51FA\u53BB\u7684\u4E5F\u4E00\u5E76\u4E22\u6389\u3002","privacy.policyLink":"\u6536\u96C6\u54EA\u4E9B\u6570\u636E\u3001\u4FDD\u5B58\u591A\u4E45\uFF0C\u89C1\u9690\u79C1\u653F\u7B56","privacy.sent.title":"\u6700\u8FD1 7 \u5929\u53D1\u51FA\u53BB\u7684\u5185\u5BB9","privacy.sent.hint":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002","privacy.sent.last":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002\u4E0A\u6B21\u53D1\u9001\uFF1A{time}","privacy.sent.view":"\u67E5\u770B","privacy.sent.empty":"\u6700\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u53D1\u9001\u8FC7\u3002","privacy.delete.title":"\u5220\u9664\u5DF2\u53D1\u9001\u7684\u6570\u636E","privacy.delete.hint":"\u6309\u8FD9\u53F0\u8BBE\u5907\u7684\u5B89\u88C5\u6807\u8BC6\u5220\u6389\u670D\u52A1\u5668\u4E0A\u7684\u5168\u90E8\u8BB0\u5F55\uFF0C\u5E76\u6362\u4E00\u4E2A\u65B0\u6807\u8BC6\u3002","privacy.delete.button":"\u5220\u9664","privacy.delete.confirm":"\u786E\u8BA4\u5220\u9664","privacy.delete.done":"\u5DF2\u5220\u9664\uFF0C\u5E76\u6362\u4E86\u65B0\u7684\u5B89\u88C5\u6807\u8BC6\u3002","privacy.delete.failed":"\u6CA1\u5220\u6210\uFF1A{reason}","privacy.installId":"\u5B89\u88C5\u6807\u8BC6 {id} \xB7 \u548C\u4F60\u7684\u8D26\u53F7\u65E0\u5173","diag.uploadNow":"\u7ACB\u5373\u4E0A\u4F20","diag.uploaded":"\u5DF2\u4E0A\u4F20","diag.failed":"\u4E0A\u4F20\u5931\u8D25\uFF1A{reason}","quota.ai.title":"AI \u989D\u5EA6","quota.ai.desc":"\u4ECA\u65E5\u548C\u672C\u5468\u5404\u8FD8\u5269\u591A\u5C11\uFF1B\u7528\u5B8C\u540E\u53EF\u4EE5\u7528\u989D\u5EA6\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u7528\u79EF\u5206\u7EE7\u7EED","quota.resetDaily":"\u6BCF\u5929 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","quota.resetWeekly":"{date} 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","card.title":"\u989D\u5EA6\u91CD\u7F6E\u5361","card.desc":"\u628A\u4ECA\u65E5\u548C\u672C\u5468\u7684 AI \u989D\u5EA6\u6062\u590D\u5230 100%","card.owned":"\u6301\u6709 {n} \u5F20","card.use":"\u4F7F\u7528\u4E00\u5F20","card.useConfirm":"\u786E\u8BA4\u4F7F\u7528","card.used":"\u5DF2\u4F7F\u7528 1 \u5F20\u989D\u5EA6\u91CD\u7F6E\u5361","card.left":"\u8FD8\u5269 {n} \u5F20","card.noneHint":"\u6CA1\u6709\u989D\u5EA6\u91CD\u7F6E\u5361\u4E86\u3002\u9080\u8BF7\u3001\u6210\u5C31\u548C\u6D3B\u52A8\u5956\u52B1\u91CC\u4F1A\u53D1\u653E\u3002","fallback.title":"\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED","fallback.desc":"\u6253\u5F00\u540E\uFF0C\u989D\u5EA6\u7528\u5B8C\u65F6\u8D85\u51FA\u7684\u7528\u91CF\u4ECE\u79EF\u5206\u4F59\u989D\u6263\uFF1B\u540E\u53F0\u4EFB\u52A1\u4E0D\u4F1A\u6263\u79EF\u5206\u3002","fallback.balance":"\u79EF\u5206\u4F59\u989D {n}","fallback.pricing":"\u6309 1\xD7 \u500D\u7387\u7684\u6A21\u578B\u7B97\uFF0C\u6BCF\u767E\u4E07 token\uFF1A\u8F93\u5165 {input} \u79EF\u5206\u3001\u8F93\u51FA {output} \u79EF\u5206\u3001\u7F13\u5B58\u547D\u4E2D {cached} \u79EF\u5206\u3002\u500D\u7387 N\xD7 \u7684\u6A21\u578B\u7EA6\u4E3A N \u500D\uFF0C\u4EE5\u5404\u6A21\u578B\u5B9E\u9645\u8BA1\u4EF7\u4E3A\u51C6\u3002","fallback.unknown":"\u72B6\u6001\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5","quota.out.cardOrPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.points":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.cardOrTopUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u5145\u503C\u79EF\u5206\u540E\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.topUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u5145\u503C\u79EF\u5206\u540E\uFF0C\u53EF\u4EE5\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.card":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\u3002","quota.out.usingPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6B63\u5728\u7528\u79EF\u5206\u7EE7\u7EED\u3002","quota.out.pointsGone":"AI \u989D\u5EA6\u548C\u79EF\u5206\u90FD\u7528\u5B8C\u4E86\u3002\u5145\u503C\u79EF\u5206\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u53EF\u4EE5\u7EE7\u7EED\u3002","err.pointsFallbackUnavailable":"\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u7A0D\u540E\u518D\u8BD5","member.modelsAll":"\u53EF\u7528\u5168\u90E8\u6A21\u578B","member.modelsCap":"\u53EF\u7528\u500D\u7387\u4E0D\u8D85\u8FC7 {cap}\xD7 \u7684\u6A21\u578B","points.title":"\u79EF\u5206","points.desc":"\u79EF\u5206\u53EF\u4EE5\u5728\u5546\u5E97\u5151\u6362\u7269\u54C1\uFF0C\u4E5F\u80FD\u5728 AI \u989D\u5EA6\u7528\u5B8C\u540E\u7EE7\u7EED\u4F7F\u7528","points.balance":"\u4F59\u989D","points.balanceFailed":"\u4F59\u989D\u6682\u65F6\u62FF\u4E0D\u5230","points.recharge":"\u5145\u503C\u79EF\u5206","bg.title":"\u540E\u53F0\u989D\u5EA6","bg.desc":"Muse \u4E0E\u81EA\u52A8\u5316\u4F7F\u7528\uFF0C\u548C AI \u989D\u5EA6\u5206\u5F00\u8BA1\u7B97","bg.autoMain":"\u7528\u5B8C\u540E\u6539\u7528 AI \u989D\u5EA6\u7EE7\u7EED","bg.autoMainDesc":"\u5173\u7740\u65F6\uFF0C\u540E\u53F0\u989D\u5EA6\u7528\u5B8C\u540E Muse \u4E0E\u81EA\u52A8\u5316\u4F1A\u6682\u505C","bg.convert":"\u4ECE AI \u989D\u5EA6\u8F6C\u5165","bg.convertDesc":"\u6309 AI \u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B\u8F6C\u5165\uFF0C\u672C\u5468\u671F\u5185\u6709\u6548","bg.convertConfirm":"\u786E\u8BA4\u8F6C\u5165 {pct}%","bg.converted":"\u5DF2\u4ECE AI \u989D\u5EA6\u8F6C\u5165 {pct}%","invite.title":"\u9080\u8BF7\u4E0E\u5151\u6362","invite.desc":"\u9080\u8BF7\u597D\u53CB\u6CE8\u518C\uFF0C\u6216\u5151\u6362\u4F60\u6536\u5230\u7684\u7801","invite.myCode":"\u6211\u7684\u9080\u8BF7\u7801","invite.count":"\u5DF2\u9080\u8BF7 {n} \u4EBA","invite.copyCode":"\u590D\u5236\u9080\u8BF7\u7801","invite.copyLink":"\u590D\u5236\u9080\u8BF7\u94FE\u63A5","invite.loadFailed":"\u9080\u8BF7\u7801\u6682\u65F6\u62FF\u4E0D\u5230","invite.claim":"\u586B\u5199\u9080\u8BF7\u7801","invite.claimDesc":"\u6CE8\u518C\u540E 7 \u5929\u5185\uFF0C\u53EF\u4EE5\u8865\u586B\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimPlaceholder":"\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimSubmit":"\u63D0\u4EA4","invite.claimed":"\u9080\u8BF7\u7801\u5DF2\u751F\u6548","redeem.title":"\u5151\u6362\u7801","redeem.desc":"\u5151\u6362\u79EF\u5206\u3001\u4F1A\u5458\u6216\u5176\u4ED6\u5956\u52B1","redeem.placeholder":"\u8F93\u5165\u5151\u6362\u7801","redeem.submit":"\u5151\u6362","redeem.success":"\u5151\u6362\u6210\u529F","redeem.successWith":"\u5151\u6362\u6210\u529F\uFF1A{what}","redeem.gotPoints":"{n} \u79EF\u5206","redeem.gotMembership":"\u4F1A\u5458","sec.methods.title":"\u767B\u5F55\u65B9\u5F0F","sec.methods.desc":"\u624B\u673A\u548C\u90AE\u7BB1\u53EF\u4EE5\u7528\u6765\u767B\u5F55\u3001\u627E\u56DE\u5BC6\u7801","sec.bind":"\u7ED1\u5B9A","sec.change":"\u66F4\u6362","sec.phone":"\u624B\u673A\u53F7","sec.email":"\u90AE\u7BB1\u5730\u5740","sec.newPhone":"\u65B0\u624B\u673A\u53F7","sec.newEmail":"\u65B0\u90AE\u7BB1\u5730\u5740","sec.phonePlaceholder":"\u4E2D\u56FD\u5927\u9646\u53F7\u7801\u76F4\u63A5\u586B\uFF0C\u5176\u4ED6\u5730\u533A\u5E26 +\u533A\u53F7","sec.emailPlaceholder":"name@example.com","sec.code":"\u9A8C\u8BC1\u7801","sec.codePlaceholder":"\u8F93\u5165\u9A8C\u8BC1\u7801","sec.sendCode":"\u53D1\u9001\u9A8C\u8BC1\u7801","sec.resendIn":"{s} \u79D2\u540E\u91CD\u53D1","sec.codeSent":"\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001","sec.bindSubmit":"\u786E\u8BA4\u7ED1\u5B9A","sec.phoneBound":"\u624B\u673A\u5DF2\u7ED1\u5B9A","sec.emailBound":"\u90AE\u7BB1\u5DF2\u7ED1\u5B9A","sec.devices.title":"\u767B\u5F55\u8BBE\u5907","sec.devices.desc":"\u62C5\u5FC3\u8D26\u53F7\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u53EF\u4EE5\u8BA9\u6240\u6709\u8BBE\u5907\u91CD\u65B0\u767B\u5F55","sec.logoutAll":"\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDesc":"\u5305\u62EC\u8FD9\u53F0\u8BBE\u5907\uFF0C\u6240\u6709\u8BBE\u5907\u90FD\u8981\u91CD\u65B0\u767B\u5F55","sec.logoutAllConfirm":"\u786E\u8BA4\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDone":"\u5DF2\u9000\u51FA\u6240\u6709\u8BBE\u5907","pw.title":"\u5BC6\u7801","pw.desc":"{min}\u2013{max} \u4F4D\uFF0C\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u5927\u5199\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\uFF0C\u4E0D\u80FD\u6709\u7A7A\u683C","pw.change":"\u4FEE\u6539\u5BC6\u7801","pw.modeLabel":"\u4FEE\u6539\u65B9\u5F0F","pw.mode.current":"\u7528\u5F53\u524D\u5BC6\u7801","pw.mode.code":"\u7528\u9A8C\u8BC1\u7801","pw.current":"\u5F53\u524D\u5BC6\u7801","pw.currentRequired":"\u8BF7\u8F93\u5165\u5F53\u524D\u5BC6\u7801","pw.new":"\u65B0\u5BC6\u7801","pw.confirm":"\u518D\u8F93\u4E00\u6B21\u65B0\u5BC6\u7801","pw.mismatch":"\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4","pw.submit":"\u4FEE\u6539\u5BC6\u7801","pw.submitReset":"\u8BBE\u7F6E\u65B0\u5BC6\u7801","pw.changed":"\u5BC6\u7801\u5DF2\u66F4\u65B0","pw.noPasswordYet":"\u8FD9\u4E2A\u8D26\u53F7\u8FD8\u6CA1\u6709\u8BBE\u7F6E\u5BC6\u7801\uFF0C\u8BF7\u6539\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u3002","pw.codeNeedsContact":"\u7ED1\u5B9A\u624B\u673A\u6216\u90AE\u7BB1\u540E\uFF0C\u624D\u80FD\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u5BC6\u7801\u3002","pw.via":"\u9A8C\u8BC1\u7801\u53D1\u5230","pw.codeTo":"\u9A8C\u8BC1\u7801\u4F1A\u53D1\u5230 {target}","pw.rulesLabel":"\u5BC6\u7801\u89C4\u5219","pw.req.length":"{min}\u2013{max} \u4F4D","pw.req.lower":"\u542B\u5C0F\u5199\u5B57\u6BCD","pw.req.upper":"\u542B\u5927\u5199\u5B57\u6BCD","pw.req.special":"\u542B\u7279\u6B8A\u5B57\u7B26","pw.req.space":"\u4E0D\u542B\u7A7A\u683C","pw.rule.format":"\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E","pw.rule.min":"\u5BC6\u7801\u81F3\u5C11 8 \u4F4D","pw.rule.max":"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D","pw.rule.space":"\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C","pw.rule.lower":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD","pw.rule.upper":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD","pw.rule.special":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26","del.title":"\u6CE8\u9500\u8D26\u53F7","del.desc":"\u6C38\u4E45\u5220\u9664\u8D26\u53F7\u548C\u5168\u90E8\u6570\u636E\uFF0C\u65E0\u6CD5\u6062\u590D","del.start":"\u6CE8\u9500\u8D26\u53F7","del.warn":"\u6CE8\u9500\u540E\uFF0C\u8D26\u53F7\u3001\u79EF\u5206\u3001\u4F1A\u5458\u3001\u4E91\u7A7A\u95F4\u548C\u5168\u90E8\u6570\u636E\u90FD\u4F1A\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u627E\u56DE\u3002","del.methodLabel":"\u9A8C\u8BC1\u65B9\u5F0F","del.byCode":"\u9A8C\u8BC1\u7801","del.byPassword":"\u5BC6\u7801","del.codeLabel":"\u53D1\u5230 {target} \u7684\u9A8C\u8BC1\u7801","del.passwordLabel":"\u8D26\u53F7\u5BC6\u7801","del.submit":"\u6CE8\u9500\u8D26\u53F7","del.confirm":"\u786E\u8BA4\u6C38\u4E45\u6CE8\u9500","del.done":"\u8D26\u53F7\u5DF2\u6CE8\u9500","usage.overview.title":"\u7528\u91CF\u6982\u89C8","usage.overview.desc":"\u6240\u9009\u65F6\u95F4\u6BB5\u5185\u7684\u8BF7\u6C42\u4E0E AI \u989D\u5EA6\u6D88\u8017","usage.range":"\u65F6\u95F4\u8303\u56F4","usage.days":"{n} \u5929","usage.requests":"\u8BF7\u6C42\u6B21\u6570","usage.successRate":"\u6210\u529F\u7387","usage.consumption":"AI \u989D\u5EA6\u6D88\u8017","usage.ofToday":"\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650","usage.unlimitedNote":"\u4F60\u7684 AI \u989D\u5EA6\u4E0D\u9650\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.noLimitNote":"\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u4E3A 0 \u6216\u6682\u65F6\u62FF\u4E0D\u5230\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.byModel.title":"\u6309\u6A21\u578B","usage.byModel.desc":"\u5404\u6A21\u578B\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.byApp.title":"\u6309\u5E94\u7528","usage.byApp.desc":"\u5404\u5E94\u7528\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.col.model":"\u6A21\u578B","usage.col.app":"\u5E94\u7528","usage.col.requests":"\u8BF7\u6C42","usage.col.consumption":"\u989D\u5EA6\u6D88\u8017","usage.empty":"\u8FD9\u6BB5\u65F6\u95F4\u6CA1\u6709\u7528\u91CF","usage.appUnknown":"\u5176\u4ED6","usage.recent.title":"\u6700\u8FD1\u6D88\u8017","usage.recent.desc":"\u6BCF\u6B21\u8C03\u7528\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B","usage.recentEmpty":"\u8FD8\u6CA1\u6709\u6D88\u8017\u8BB0\u5F55","usage.failed":"\u5931\u8D25","usage.shown":"\u5DF2\u663E\u793A {shown} / {total} \u6761","fb.list.title":"\u6211\u7684\u53CD\u9988","fb.list.desc":"\u63D0\u4EA4\u8FC7\u7684\u95EE\u9898\u548C\u5EFA\u8BAE\uFF0C\u56DE\u590D\u4F1A\u663E\u793A\u5728\u8FD9\u91CC","fb.new":"\u65B0\u5EFA\u53CD\u9988","fb.empty":"\u8FD8\u6CA1\u6709\u53CD\u9988","fb.untitled":"\u672A\u547D\u540D\u53CD\u9988","fb.unread":"\u6709\u65B0\u56DE\u590D","fb.shown":"\u5DF2\u663E\u793A {n} \u6761","fb.submitted":"\u5DF2\u63D0\u4EA4\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D","fb.descLabel":"\u63CF\u8FF0\u95EE\u9898\u6216\u5EFA\u8BAE","fb.descPlaceholder":"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u4F60\u671F\u671B\u600E\u6837\u2026\u2026","fb.imagesHint":"\u6700\u591A\u9644 {n} \u5F20\u622A\u56FE\uFF08\u6BCF\u5F20\u4E0D\u8D85\u8FC7 5MB\uFF09\uFF0C\u53EF\u4EE5\u7C98\u8D34\u6216\u62D6\u8FDB\u6765\u3002","fb.addImages":"\u6DFB\u52A0\u622A\u56FE","fb.removeImage":"\u79FB\u9664\u8FD9\u5F20\u56FE","fb.submit":"\u63D0\u4EA4","fb.back":"\u8FD4\u56DE\u5217\u8868","fb.you":"\u4F60","fb.support":"Forsion \u56E2\u961F","fb.attachment":"\u9644\u4EF6","fb.imagePreview":"\u67E5\u770B\u5927\u56FE","fb.closedNote":"\u8FD9\u4E2A\u5DE5\u5355\u5DF2\u5173\u95ED\uFF0C\u4E0D\u80FD\u518D\u56DE\u590D\u3002\u6709\u65B0\u95EE\u9898\u8BF7\u65B0\u5EFA\u53CD\u9988\u3002","fb.replyPlaceholder":"\u56DE\u590D\u2026","fb.replySend":"\u53D1\u9001\u56DE\u590D","fb.replySent":"\u56DE\u590D\u5DF2\u53D1\u9001","fb.status.open":"\u5F85\u5904\u7406","fb.status.in_progress":"\u5904\u7406\u4E2D","fb.status.resolved":"\u5DF2\u89E3\u51B3","fb.status.closed":"\u5DF2\u5173\u95ED","err.accountGone":"\u8FD9\u4E2A\u8D26\u53F7\u5DF2\u9000\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.adminCannotDelete":"\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500","err.avatarInvalid":"\u8FD9\u5F20\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765\uFF0C\u6362\u4E00\u5F20\u8BD5\u8BD5","err.avatarTooLarge":"\u56FE\u7247\u592A\u5927\u4E86\uFF0C\u6362\u4E00\u5F20\u5C0F\u4E00\u70B9\u7684","err.backgroundUnavailable":"\u540E\u53F0\u989D\u5EA6\u6682\u65F6\u4E0D\u53EF\u7528","err.captcha":"\u9700\u8981\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u4EBA\u673A\u9A8C\u8BC1","err.codeCooldown":"\u53D1\u9001\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.codeInvalid":"\u9A8C\u8BC1\u7801\u4E0D\u5BF9\u6216\u5DF2\u8FC7\u671F","err.codeRequired":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","err.codeSendFailed":"\u9A8C\u8BC1\u7801\u6CA1\u53D1\u51FA\u53BB\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.currentPasswordWrong":"\u5F53\u524D\u5BC6\u7801\u4E0D\u5BF9","err.deleteTargetInvalid":"\u9A8C\u8BC1\u7801\u53EA\u80FD\u53D1\u5230\u8D26\u53F7\u7ED1\u5B9A\u7684\u624B\u673A\u6216\u90AE\u7BB1","err.deleteVerifyFailed":"\u9A8C\u8BC1\u6CA1\u901A\u8FC7\uFF0C\u8D26\u53F7\u6CA1\u6709\u6CE8\u9500","err.emailInUse":"\u8FD9\u4E2A\u90AE\u7BB1\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.emailInvalid":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.featureDisabled":"\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u5173\u95ED\u4E86","err.feedbackEmpty":"\u8BF7\u5199\u4E00\u4E0B\u95EE\u9898\u6216\u5EFA\u8BAE","err.feedbackTooLong":"\u63CF\u8FF0\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.generic":"\u64CD\u4F5C\u6CA1\u6709\u6210\u529F\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.imageRead":"\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765","err.imageTooLarge":"\u6BCF\u5F20\u56FE\u7247\u4E0D\u80FD\u8D85\u8FC7 5MB","err.imageType":"\u53EA\u80FD\u6DFB\u52A0\u56FE\u7247","err.insufficientMainQuota":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6","err.insufficientPoints":"\u79EF\u5206\u4E0D\u591F","err.invalidInviteCode":"\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548","err.inviteAlreadyUsed":"\u4F60\u5DF2\u7ECF\u7528\u8FC7\u9080\u8BF7\u7801\u4E86","err.inviteEmpty":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","err.inviteOwnCode":"\u4E0D\u80FD\u586B\u81EA\u5DF1\u7684\u9080\u8BF7\u7801","err.inviteWindowExpired":"\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F","err.loginCodeExpired":"\u767B\u5F55\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.loginInProgress":"\u6B63\u5728\u767B\u5F55\u4E2D","err.loginTimeout":"\u767B\u5F55\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","err.loginUnsupported":"\u8FD9\u4E2A\u4E91\u7AEF\u4E0D\u652F\u6301\u684C\u9762\u7AEF\u767B\u5F55","err.network":"\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","err.noCloudUrl":"\u8BF7\u5148\u5728\u300C\u8FDE\u63A5\u300D\u91CC\u586B\u5199\u4E91\u7AEF\u5730\u5740","err.noResetCard":"\u6CA1\u6709\u53EF\u7528\u7684\u989D\u5EA6\u91CD\u7F6E\u5361","err.openFailed":"\u6CA1\u80FD\u6253\u5F00\u6D4F\u89C8\u5668","err.passwordRequired":"\u8BF7\u586B\u5199\u5F53\u524D\u5BC6\u7801\u548C\u65B0\u5BC6\u7801","err.phoneInUse":"\u8FD9\u4E2A\u624B\u673A\u53F7\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.phoneInvalid":"\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u5BF9\uFF08\u5176\u4ED6\u5730\u533A\u8BF7\u5E26 +\u533A\u53F7\uFF09","err.redeemEmpty":"\u8BF7\u8F93\u5165\u5151\u6362\u7801","err.redeemExpired":"\u5151\u6362\u7801\u5DF2\u8FC7\u671F","err.redeemInactive":"\u5151\u6362\u7801\u5DF2\u505C\u7528","err.redeemNotFound":"\u5151\u6362\u7801\u4E0D\u5B58\u5728","err.redeemUsedUp":"\u5151\u6362\u7801\u5DF2\u88AB\u7528\u5B8C","err.redeemUserLimit":"\u4F60\u5DF2\u7ECF\u5151\u6362\u8FC7\u8FD9\u4E2A\u7801\u4E86","err.replyEmpty":"\u8BF7\u8F93\u5165\u56DE\u590D\u5185\u5BB9","err.replyTooLong":"\u56DE\u590D\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.server":"\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF08{status}\uFF09\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.session":"\u767B\u5F55\u72B6\u6001\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.signedOut":"\u8BF7\u5148\u767B\u5F55 Forsion","err.targetInvalid":"\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.ticketNotFound":"\u8FD9\u6761\u53CD\u9988\u4E0D\u5B58\u5728\u6216\u5DF2\u5220\u9664","err.webPageGone":"\u8FD9\u4E2A\u7F51\u9875\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0B\u7EBF","err.listingGone":"\u8FD9\u4E2A\u7F51\u9875\u6CA1\u6709\u4E0A\u67B6\u7533\u8BF7","err.listingSummary":"\u8BF7\u586B\u5199\u5546\u5E97\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09","err.tooFrequent":"\u64CD\u4F5C\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.tooManyImages":"\u6700\u591A\u6DFB\u52A0 5 \u5F20\u56FE\u7247","err.unavailable":"\u8FD9\u4E2A\u7248\u672C\u8FD8\u4E0D\u652F\u6301\u8FD9\u4E2A\u64CD\u4F5C\uFF0C\u8BF7\u66F4\u65B0 Forsion","profile.unsupported":"\u8FD9\u4E2A\u670D\u52A1\u7AEF\u8FD8\u6CA1\u6709\u4E2A\u4EBA\u4E3B\u9875\u529F\u80FD","profile.state.private":"\u4EC5\u81EA\u5DF1\u53EF\u89C1","profile.state.public":"\u5DF2\u516C\u5F00","profile.state.privateDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55","profile.linkUnavailable":"\u6682\u672A\u83B7\u53D6\u5230\u516C\u5F00\u94FE\u63A5","profile.decorate":"\u88C5\u9970","profile.publish":"\u516C\u5F00\u4E3B\u9875","profile.makePrivate":"\u8BBE\u4E3A\u79C1\u6709","profile.copyLink":"\u590D\u5236\u94FE\u63A5","profile.openPublic":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u516C\u5F00\u4E3B\u9875","profile.nowPublic":"\u4E3B\u9875\u5DF2\u516C\u5F00","profile.nowPrivate":"\u4E3B\u9875\u5DF2\u8BBE\u4E3A\u79C1\u6709\uFF0C\u516C\u5F00\u5730\u5740\u4E0D\u518D\u80FD\u6253\u5F00","profile.bio":"\u7B80\u4ECB","profile.bioPlaceholder":"\u5199\u4E00\u53E5\u7B80\u4ECB","profile.linkAdd":"\u6DFB\u52A0\u94FE\u63A5","profile.linkRemove":"\u79FB\u9664\u94FE\u63A5","profile.linkInvalid":"\u94FE\u63A5\u8981\u4EE5 http:// \u6216 https:// \u5F00\u5934\uFF0C\u6216\u76F4\u63A5\u5199\u57DF\u540D","profile.joined":"{date}\u52A0\u5165","profile.stat.tokens":"\u7D2F\u8BA1 Token","profile.stat.activeDays":"\u6D3B\u8DC3\u5929\u6570","profile.stat.longest":"\u6700\u957F\u8FDE\u7EED","profile.stat.current":"\u5F53\u524D\u8FDE\u7EED","profile.stat.installs":"\u4F5C\u54C1\u88AB\u5B89\u88C5","profile.unit.days":"\u5929","profile.works":"\u7CBE\u9009\u4F5C\u54C1","profile.worksPick":"\u9009\u62E9","profile.worksEmpty":"\u8FD8\u6CA1\u6709\u4E0A\u67B6\u7684\u4F5C\u54C1\u3002\u4E0A\u67B6\u5230\u5546\u5E97\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\uFF0C\u53EF\u4EE5\u653E\u5230\u8FD9\u91CC\u3002","profile.worksNone":"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u653E\u4E0A\u4E3B\u9875\u7684\u4F5C\u54C1\u3002\u4F5C\u54C1\u4E0A\u67B6\u5230\u5546\u5E97\u3001\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","profile.worksPicked":"\u5DF2\u9009 {n} / {max} \u4EF6","profile.worksAuto":"\u4E0D\u9009\u7684\u8BDD\uFF0C\u6309\u5B89\u88C5\u91CF\u81EA\u52A8\u53D6\u524D\u51E0\u4EF6","profile.goSubmit":"\u53BB\u6295\u7A3F","profile.workInstalls":"{n} \u6B21\u5B89\u88C5","profile.workVisits":"{n} \u6B21\u8BBF\u95EE","profile.work.skill":"\u6280\u80FD","profile.work.agent":"Agent","profile.work.plugin":"\u63D2\u4EF6","profile.work.space":"Space","profile.work.theme":"\u4E3B\u9898","profile.work.note":"\u7B14\u8BB0\u63D2\u4EF6","profile.work.webapp":"\u7F51\u9875\u5E94\u7528","profile.activity":"\u6D3B\u52A8","profile.activityDays":"\u8FC7\u53BB\u4E00\u5E74\u6709 {n} \u5929\u5728\u7528","profile.less":"\u5C11","profile.more":"\u591A","profile.badges":"\u5FBD\u7AE0","profile.badgesEmpty":"\u8FD8\u6CA1\u6709\u5FBD\u7AE0\u3002\u8FDE\u7EED\u4F7F\u7528\u3001\u4E0A\u67B6\u4F5C\u54C1\u3001\u9080\u8BF7\u670B\u53CB\u90FD\u4F1A\u70B9\u4EAE\u3002","profile.badge.early":"\u65E9\u671F\u7528\u6237","profile.badge.streak":"\u8FDE\u7EED 30 \u5929","profile.badge.author":"\u4F5C\u8005","profile.badge.inviter":"\u9080\u8BF7\u8FBE\u4EBA","profile.badge.event":"\u6D3B\u52A8\u7EAA\u5FF5","profile.badgeSub.early":"{value} \u5E74\u52A0\u5165","profile.badgeSub.streak":"\u6700\u957F\u8FDE\u7EED {value} \u5929","profile.badgeSub.author":"\u4E0A\u67B6\u4E86 {value} \u4EF6\u4F5C\u54C1","profile.badgeSub.inviter":"\u9080\u8BF7\u4E86 {value} \u4F4D\u670B\u53CB","profile.badgeSub.event":"\u53C2\u52A0\u8FC7 Forsion \u7684\u6D3B\u52A8{value}","profile.insights":"\u6D1E\u5BDF","profile.insightsEmpty":"\u7528\u5F97\u8FD8\u4E0D\u591F\u591A\uFF0C\u8FC7\u51E0\u5929\u518D\u6765\u770B\u3002","profile.insightModel":"\u6700\u5E38\u7528\u6A21\u578B","profile.insightHours":"\u6700\u6D3B\u8DC3\u65F6\u6BB5","profile.deco.skin":"\u516C\u5F00\u9875\u7684\u914D\u8272","profile.deco.mode":"\u516C\u5F00\u9875\u7684\u660E\u6697","profile.deco.publicHint":"\u8FD9\u4E24\u9879\u53EA\u7BA1\u8BBF\u5BA2\u5728\u516C\u5F00\u9875\u4E0A\u770B\u5230\u7684\u3002\u5728\u8FD9\u91CC\uFF0C\u4E3B\u9875\u8DDF Forsion \u5F53\u524D\u7684\u4E3B\u9898\u8D70\u3002","profile.deco.cover":"\u5C01\u9762","profile.deco.frame":"\u5934\u50CF\u6846","profile.deco.modules":"\u6A21\u5757","profile.skin.cream":"\u7ECF\u5178","profile.skin.coral":"\u73CA\u745A","profile.skin.teal":"\u67D4\u9752","profile.skin.lavender":"\u85B0\u8863\u8349","profile.mode.auto":"\u8DDF\u968F\u8BBF\u5BA2","profile.mode.light":"\u6D45\u8272","profile.mode.dark":"\u6DF1\u8272","profile.cover.none":"\u65E0","profile.cover.mist":"\u6668\u96FE","profile.cover.contour":"\u7B49\u9AD8\u7EBF","profile.cover.dots":"\u7F51\u70B9","profile.frame.none":"\u65E0","profile.frame.ring":"\u7EC6\u73AF","profile.frame.pro":"\u4F1A\u5458\u73AF","profile.frameProHint":"\u4F1A\u5458\u73AF\u662F\u4ED8\u8D39\u4F1A\u5458\u4E13\u5C5E\u3002","profile.col.show":"\u663E\u793A","profile.col.public":"\u516C\u5F00","profile.moveUp":"\u4E0A\u79FB","profile.moveDown":"\u4E0B\u79FB","profile.modulesHint":"\u300C\u663E\u793A\u300D\u51B3\u5B9A\u4E3B\u9875\u4E0A\u6709\u6CA1\u6709\u8FD9\u4E00\u5757\uFF1B\u300C\u516C\u5F00\u300D\u51B3\u5B9A\u8BBF\u5BA2\u80FD\u4E0D\u80FD\u770B\u5230\uFF0C\u4E3B\u9875\u516C\u5F00\u540E\u624D\u8D77\u4F5C\u7528\u3002","profile.mod.stats":"\u6570\u636E","profile.mod.works":"\u7CBE\u9009\u4F5C\u54C1","profile.mod.activity":"\u6D3B\u52A8","profile.mod.badges":"\u5FBD\u7AE0","profile.mod.insights":"\u6D1E\u5BDF","profile.modDesc.stats":"\u7D2F\u8BA1 Token\u3001\u6D3B\u8DC3\u5929\u6570\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4F5C\u54C1\u5B89\u88C5\u91CF","profile.modDesc.works":"\u4F60\u4E0A\u67B6\u7684\u4F5C\u54C1\uFF0C\u6700\u591A 6 \u4EF6","profile.modDesc.activity":"\u8FC7\u53BB\u4E00\u5E74\u6BCF\u5929\u7528\u6CA1\u7528\u3001\u7528\u5F97\u591A\u4E0D\u591A\uFF08\u53EA\u6709\u6DF1\u6D45\uFF0C\u6CA1\u6709\u5177\u4F53\u6570\u5B57\uFF09","profile.modDesc.badges":"\u52A0\u5165\u5E74\u4EFD\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4E0A\u67B6\u3001\u9080\u8BF7\u3001\u6D3B\u52A8","profile.modDesc.insights":"\u6700\u5E38\u7528\u7684\u6A21\u578B\u3001\u6700\u6D3B\u8DC3\u7684\u65F6\u6BB5","profile.publishDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u8FD9\u4E2A\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55\u3002\u4E0B\u9762\u6BCF\u4E00\u5757\u53EF\u4EE5\u5355\u72EC\u51B3\u5B9A\u7ED9\u4E0D\u7ED9\u8BBF\u5BA2\u770B\u3002","profile.publishNever":"\u5934\u50CF\u3001\u6635\u79F0\u3001\u7528\u6237\u540D\u3001\u7B80\u4ECB\u548C\u94FE\u63A5\u4F1A\u4E00\u8D77\u516C\u5F00\u3002\u90AE\u7BB1\u3001\u624B\u673A\u53F7\u3001\u4F1A\u5458\u5230\u671F\u65E5\u3001\u79EF\u5206\u548C\u989D\u5EA6\u4E0D\u4F1A\u51FA\u73B0\u5728\u4E3B\u9875\u4E0A\u3002","profile.publishConfirm":"\u516C\u5F00","profile.blocked.machineUsername":"\u4F60\u73B0\u5728\u7684\u7528\u6237\u540D\u662F\u7CFB\u7EDF\u751F\u6210\u7684\uFF0C\u91CC\u9762\u5E26\u7740\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u7684\u4E00\u90E8\u5206\uFF0C\u516C\u5F00\u4F1A\u628A\u5B83\u9732\u51FA\u53BB\u3002\u5148\u5230\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7684\u300C\u8D26\u53F7\u300D\u9875\u6539\u4E00\u4E2A\u7528\u6237\u540D\uFF08\u6BCF\u4E2A\u8D26\u53F7\u53EF\u4EE5\u6539\u4E00\u6B21\uFF09\uFF0C\u518D\u56DE\u6765\u516C\u5F00\u3002","profile.blocked.publishBlocked":"\u8FD9\u4E2A\u4E3B\u9875\u5DF2\u88AB\u7BA1\u7406\u5458\u505C\u6B62\u516C\u5F00\u3002\u6709\u7591\u95EE\u8BF7\u901A\u8FC7\u300C\u53CD\u9988\u300D\u8054\u7CFB\u6211\u4EEC\u3002","profile.goRename":"\u53BB\u6539\u7528\u6237\u540D","profile.invalid":"\u8FD9\u9879\u5185\u5BB9\u6CA1\u80FD\u4FDD\u5B58\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u8BD5","guide.title":"\u4F7F\u7528\u6307\u5357","guide.readOnly":"\u53EA\u8BFB","guide.more":"\u66F4\u591A","guide.unlockAll":"\u5168\u90E8\u89E3\u9501","guide.relock":"\u6539\u56DE\u6309\u7B49\u7EA7\u89E3\u9501","guide.reminders":"\u4F7F\u7528\u6307\u5357\u63D0\u9192","guide.spotlight":"\u73B0\u573A\u6307\u5F15","guide.spotStep":"\u7B2C {n} \u6B65\uFF0C\u5171 {total} \u6B65","guide.figure":"\u793A\u610F\u56FE","guide.openAchievements":"\u6253\u5F00\u6210\u5C31","guide.tasks":"\u672C\u7AE0\u4EFB\u52A1","guide.go":"\u5E26\u6211\u53BB","guide.desktopOnly":"\u5728\u7535\u8111\u4E0A\u505A","guide.taskDone":"\u5DF2\u5B8C\u6210","guide.askTangu":"\u95EE Tangu","guide.progress":"\u8FDB\u5EA6","guide.justUnlocked":"\u521A\u89E3\u9501","guide.lockedHint":"\u672A\u89E3\u9501","guide.whatsNew":"\u65B0\u7248\u672C \xB7 {version}","guide.level.lv1":"Lv.1 \u521D\u6765\u4E4D\u5230","guide.level.lv2":"Lv.2 \u719F\u95E8\u719F\u8DEF","guide.level.lv3":"Lv.3 \u5F97\u5FC3\u5E94\u624B","guide.level.lv4":"Lv.4 \u878D\u4F1A\u8D2F\u901A","guide.locked.title":"\u8FD9\u4E00\u7AE0\u8FD8\u6CA1\u89E3\u9501","guide.locked.body":"\u505A\u5B8C\u300C{level}\u300D\u7684\u4EFB\u52A1\u5C31\u80FD\u8BFB\u5168\u6587\u3002","guide.locked.left":"\u8FD8\u5DEE\u8FD9\u51E0\u9879\uFF1A","guide.locked.hint":"\u7528\u8FC7\u4E00\u9635\u4E86\uFF1F\u53F3\u4E0A\u89D2\u300C\xB7\xB7\xB7\u300D\u91CC\u53EF\u4EE5\u5168\u90E8\u89E3\u9501\u3002","guide.levelProgress":"\u672C\u7EA7\u8FDB\u5EA6 {done}/{total}","guide.next":"\u4E0B\u4E00\u7EA7","guide.allDone":"\u5168\u90E8\u5B8C\u6210","guide.allDoneBody":"\u6307\u5357\u91CC\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u968F\u65F6\u56DE\u6765\u7FFB\u770B\u3002","guide.review":"\u56DE\u770B","guide.ask.hint":"\u5BF9\u300C{chapter}\u300D\u6709\u7591\u95EE\uFF1F\u95EE Tangu \u4F1A\u5F00\u4E00\u4E2A\u5E26\u4E0A\u672C\u7AE0\u5185\u5BB9\u7684\u65B0\u5BF9\u8BDD\u3002","guide.ask.placeholder":"\u60F3\u95EE\u4EC0\u4E48\uFF1F","guide.ask.send":"\u5F00\u59CB\u5BF9\u8BDD","guide.ask.prompt":"\u6211\u6B63\u5728\u8BFB Forsion \u4F7F\u7528\u6307\u5357\u91CC\u300C{chapter}\u300D\u8FD9\u4E00\u7AE0\uFF0C\u5185\u5BB9\u9644\u5728\u4E0B\u9762\u3002{question}","guide.ask.unavailable":"\u8FD9\u91CC\u5F00\u4E0D\u4E86\u5BF9\u8BDD","guide.ask.chatTitle":"\u4F7F\u7528\u6307\u5357\u95EE\u7B54","guide.companion.back":"\u56DE\u5230\u6307\u5357","guide.companion.close":"\u6536\u8D77","guide.toast.taskDone":"\u5B8C\u6210\uFF1A{task}","guide.letter.levelTitle":"{level} \u5DF2\u89E3\u9501\uFF1A\u63A5\u4E0B\u6765\u8BD5\u8BD5\u8FD9\u51E0\u4EF6\u4E8B","guide.letter.levelBody":"\u4E0A\u4E00\u7EA7\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u4E0B\u9762\u8FD9\u51E0\u7AE0\u73B0\u5728\u53EF\u4EE5\u8BFB\u4E86\u3002\u6BCF\u9879\u4EFB\u52A1\u90FD\u80FD\u300C\u5E26\u6211\u53BB\u300D\u3002","guide.letter.versionTitle":"{version} \u6709 {n} \u4EF6\u65B0\u4E1C\u897F\u53EF\u4EE5\u4F53\u9A8C","guide.letter.versionBody":"\u8FD9\u4E2A\u7248\u672C\u65B0\u52A0\u7684\uFF0C\u53EF\u4EE5\u76F4\u63A5\u4E0A\u624B\uFF1A","guide.letter.open":"\u6253\u5F00\u6307\u5357","guide.status.done":"\u5DF2\u5B8C\u6210","guide.cmd.open":"\u6253\u5F00\u4F7F\u7528\u6307\u5357","penzor.title":"\u84EC\u6D32\u4E91","penzor.overview":"\u6982\u89C8","penzor.places":"\u4F4D\u7F6E","penzor.details":"\u8BE6\u60C5","penzor.ledger.sync":"\u667A\u5E93\u540C\u6B65","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"\u5E94\u7528\u6587\u4EF6","penzor.ledger.exports":"\u5BFC\u51FA","penzor.trash":"\u56DE\u6536\u7AD9","penzor.items":"{n} \u9879","penzor.total.sub":"\u5B58\u5728 Forsion \u4E91\u7AEF \xB7 {time}\u66F4\u65B0","penzor.justNow":"\u521A\u521A","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} \u4E2A\u5E93 \xB7 \u4E0A\u6B21\u5199\u5165 {time}","penzor.card.syncSubNone":"{n} \u4E2A\u5E93","penzor.card.syncFoot":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 {size} \u4E0D\u4E0A\u4F20","penzor.card.syncWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u65B0\u6587\u4EF6\u4E0D\u518D\u4E0A\u4F20\uFF0C\u5DF2\u5728\u4E91\u7AEF\u7684\u7167\u5E38\u540C\u6B65","penzor.card.amaSmall":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.card.amaSub":"{n} \u4E2A\u4E91\u7AEF\u667A\u5E93","penzor.card.amaFoot":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u7684 Cloud \u4FA7","penzor.card.appsFoot":"\u56DE\u6536\u7AD9 {n} \u9879 \xB7 {size}","penzor.card.appsWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u5E94\u7528\u4E0D\u80FD\u518D\u5B58\u65B0\u6587\u4EF6\uFF1B\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF0C\u6E05\u7A7A\u80FD\u817E\u51FA\u7A7A\u95F4","penzor.card.expSmall":"{n} \u4E2A\u6587\u4EF6","penzor.card.expSub":"\u6700\u8FD1\uFF1A{name} \xB7 {time}","penzor.card.expFoot":"\u5404\u5E94\u7528\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.card.none":"\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.largest":"\u5360\u7528\u6700\u591A","penzor.col.name":"\u540D\u79F0","penzor.col.size":"\u5927\u5C0F","penzor.col.mtime":"\u4FEE\u6539\u65F6\u95F4","penzor.col.device":"\u5199\u5165\u8BBE\u5907","penzor.col.deleted":"\u5220\u9664\u4E8E","penzor.col.origin":"\u539F\u4F4D\u7F6E","penzor.col.app":"\u6765\u6E90","penzor.sort.mtime":"\u6309\u4FEE\u6539\u65F6\u95F4","penzor.sort.size":"\u6309\u5927\u5C0F","penzor.sort.name":"\u6309\u540D\u79F0","penzor.search":"\u641C\u7D22\u8FD9\u91CC\u7684\u6587\u4EF6\u540D","penzor.sync.thisDevice":"\u672C\u673A\u5728\u540C\u6B65","penzor.meta.files":"{size} \xB7 {n} \u4E2A\u6587\u4EF6","penzor.sync.last":"\u4E0A\u6B21\u5199\u5165 {time} \xB7 {device}","penzor.sync.lastNoDevice":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.devices":"{n} \u53F0\u8BBE\u5907\u540C\u6B65\u8FD9\u4E2A\u5E93","penzor.sync.meter":"\u667A\u5E93\u540C\u6B65\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}","penzor.apps.meter":"\u5E94\u7528\u6587\u4EF6\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}\uFF08\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF09","penzor.apps.by":"\u7531 {app} \u5199\u5165","penzor.ama.notCounted":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.ama.open":"\u5728 Amadeus \u4E2D\u6253\u5F00","penzor.hosted.open":"\u7BA1\u7406\u6211\u7684\u7F51\u9875","penzor.hosted.note":"\u8FD9\u662F\u5DF2\u53D1\u5E03\u7F51\u9875\u7684\u6587\u4EF6\u3002\u8981\u6539\u5185\u5BB9\u8BF7\u91CD\u65B0\u53D1\u5E03\uFF0C\u8981\u5220\u9664\u8BF7\u5230\u300C\u6211\u7684\u7F51\u9875\u300D\u4E0B\u7EBF\u3002","penzor.trash.meta":"{n} \u9879 \xB7 {size}","penzor.trash.note":"\u6C38\u4E45\u5220\u9664\u540E\u624D\u817E\u51FA\u7A7A\u95F4","penzor.trash.emptyBtn":"\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.act.download":"\u4E0B\u8F7D","penzor.act.rename":"\u91CD\u547D\u540D","penzor.act.move":"\u79FB\u52A8\u5230\u2026","penzor.act.trash":"\u79FB\u5230\u56DE\u6536\u7AD9","penzor.act.delete":"\u5220\u9664","penzor.act.restore":"\u6062\u590D","penzor.act.purge":"\u6C38\u4E45\u5220\u9664","penzor.act.copyName":"\u590D\u5236\u5E93\u540D","penzor.act.openSync":"\u5728\u8BBE\u7F6E\u4E2D\u6253\u5F00\u540C\u6B65","penzor.act.refresh":"\u5237\u65B0","penzor.act.up":"\u4E0A\u4E00\u7EA7","penzor.toast.trashed":"\u5DF2\u628A\u300C{name}\u300D\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.restored":"\u5DF2\u6062\u590D\u300C{name}\u300D","penzor.toast.purged":"\u5DF2\u6C38\u4E45\u5220\u9664\u300C{name}\u300D","penzor.toast.emptied":"\u5DF2\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.toast.downloaded":"\u5DF2\u5B58\u5230\u300C\u4E0B\u8F7D\u300D\uFF1A{name}","penzor.toast.renamed":"\u5DF2\u6539\u540D\u4E3A\u300C{name}\u300D","penzor.toast.moved":"\u5DF2\u79FB\u5230\u300C{name}\u300D","penzor.toast.versionRestored":"\u5DF2\u6062\u590D\u5230\u7B2C {n} \u7248","penzor.toast.copied":"\u5DF2\u590D\u5236\u5E93\u540D","penzor.toast.failed":"\u6CA1\u6210\u529F\uFF1A{reason}","penzor.confirm.purge":"\u6C38\u4E45\u5220\u9664\u300C{name}\u300D\uFF1F\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.confirm.empty":"\u6E05\u7A7A\u56DE\u6536\u7AD9\uFF1F{n} \u9879\u4F1A\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u627E\u4E0D\u56DE\u6765\u3002","penzor.confirm.deleteExport":"\u5220\u9664\u300C{name}\u300D\uFF1F\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF0C\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.cancel":"\u53D6\u6D88","penzor.side.where":"\u4F4D\u7F6E","penzor.side.mtime":"\u4FEE\u6539","penzor.side.device":"\u5199\u5165\u8BBE\u5907","penzor.side.thisDevice":"{name}\uFF08\u672C\u673A\uFF09","penzor.side.from":"\u6765\u6E90","penzor.side.versions":"\u5386\u53F2\u7248\u672C","penzor.side.versionsNone":"\u6CA1\u6709","penzor.side.versionRow":"\u7B2C {n} \u7248 \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"\u6062\u590D\u8FD9\u4E00\u7248","penzor.side.deletedAt":"\u5220\u9664\u4E8E","penzor.side.origin":"\u539F\u4F4D\u7F6E","penzor.side.inner":"\u91CC\u9762\u8FD8\u6709 {n} \u9879\uFF0C\u6062\u590D\u65F6\u4E00\u8D77\u56DE\u6765","penzor.side.inTrash":"\u5728\u56DE\u6536\u7AD9 \xB7 {size}","penzor.side.readonlySync":"\u540C\u6B65\u5E93\u91CC\u7684\u6587\u4EF6\u53EA\u5728\u8BBE\u5907\u4E0A\u5220\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u6587\u4EF6\uFF0C\u6BCF\u53F0\u540C\u6B65 {vault} \u7684\u8BBE\u5907\u4E0B\u6B21\u540C\u6B65\u65F6\u90FD\u4F1A\u8DDF\u7740\u5220\u6389\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.readonlyAma":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u91CC\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u9644\u4EF6\uFF0C\u5F15\u7528\u5B83\u7684\u7B14\u8BB0\u4F1A\u7F3A\u56FE\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.exportNote":"\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF1A\u5220\u9664\u5C31\u662F\u6C38\u4E45\u5220\u9664\u3002","penzor.side.none":"\u9009\u4E00\u4E2A\u6587\u4EF6\u770B\u8BE6\u60C5","penzor.side.folder":"\u6587\u4EF6\u5939 \xB7 {n} \u9879","penzor.side.folderPlain":"\u6587\u4EF6\u5939","penzor.move.title":"\u79FB\u5230\u54EA\u91CC","penzor.move.root":"{app} \u6700\u4E0A\u5C42","penzor.move.here":"\u79FB\u5230\u8FD9\u91CC","penzor.move.noFolders":"\u8FD9\u4E00\u5C42\u6CA1\u6709\u6587\u4EF6\u5939","penzor.rename.save":"\u4FDD\u5B58","penzor.empty.title":"\u84EC\u6D32\u4E91\u91CC\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.empty.lead":"\u8FD9\u4E9B\u4E1C\u897F\u5B58\u8FDB\u4E91\u7AEF\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\uFF1A","penzor.empty.sync":"\u5728\u300C\u8BBE\u7F6E \u203A \u540C\u6B65\u300D\u91CC\u628A\u8FDC\u7A0B\u670D\u52A1\u9009\u6210\u300C\u84EC\u6D32\u4E91\u300D\uFF0C\u672C\u5730\u667A\u5E93\u5C31\u540C\u6B65\u5230\u8FD9\u91CC","penzor.empty.ama":"Amadeus \u5207\u5230 Cloud \u4FA7\u5199\u7684\u7B14\u8BB0","penzor.empty.apps":"\u5404\u5E94\u7528\u5B58\u5230\u4E91\u7AEF\u6216\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.empty.openSync":"\u6253\u5F00\u540C\u6B65\u8BBE\u7F6E","penzor.out.title":"\u767B\u5F55\u540E\u67E5\u770B\u4F60\u7684\u84EC\u6D32\u4E91","penzor.out.lead":"\u84EC\u6D32\u4E91\u653E\u7740\u4F60\u540C\u6B65\u5230 Forsion \u4E91\u7AEF\u7684\u5E93\u3001Amadeus Cloud \u7684\u7B14\u8BB0\uFF0C\u548C\u5404\u5E94\u7528\u5B58\u5728\u4E91\u7AEF\u7684\u6587\u4EF6\u3002","penzor.out.signIn":"\u767B\u5F55 Forsion \u8D26\u53F7","penzor.loading":"\u6B63\u5728\u8BFB\u53D6\u2026","penzor.err":"\u6CA1\u8BFB\u5230\uFF1A{reason}","penzor.folderEmpty":"\u8FD9\u91CC\u6CA1\u6709\u6587\u4EF6","penzor.noMatch":"\u6CA1\u6709\u540D\u5B57\u91CC\u5E26\u300C{q}\u300D\u7684\u6587\u4EF6","penzor.cmd.open":"\u6253\u5F00\u84EC\u6D32\u4E91","penzor.unreachable":"\u8FDE\u4E0D\u4E0A Forsion \u4E91\u7AEF\uFF0C\u7A0D\u540E\u518D\u8BD5","penzor.toast.emptyPartial":"\u56DE\u6536\u7AD9\u91CC\u8FD8\u6709 {n} \u9879\u6CA1\u5220\u6389","penzor.sort.deleted":"\u6309\u5220\u9664\u65F6\u95F4","penzor.side.versionsN":"{n} \u4E2A","penzor.drive":"\u6211\u7684\u4E91\u76D8","penzor.drive.meta":"\u7B97\u5728\u5E94\u7528\u6587\u4EF6\u7684 {max} \u91CC","penzor.drive.empty":"\u8FD9\u91CC\u8FD8\u7A7A\u7740\u3002\u628A\u6587\u4EF6\u62D6\u8FDB\u6765\uFF0C\u6216\u8005\u70B9\u300C\u4E0A\u4F20\u300D\u3002","penzor.act.upload":"\u4E0A\u4F20","penzor.act.uploadMore":"\u66F4\u591A\u4E0A\u4F20\u65B9\u5F0F","penzor.act.uploadFiles":"\u4E0A\u4F20\u6587\u4EF6\u2026","penzor.act.uploadFolder":"\u4E0A\u4F20\u6587\u4EF6\u5939\u2026","penzor.act.uploadHere":"\u4E0A\u4F20\u5230\u8FD9\u91CC\u2026","penzor.act.newFolder":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.act.clearSel":"\u53D6\u6D88\u9009\u62E9","penzor.newFolder.default":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.sel.bar":"\u5DF2\u9009 {n} \u9879 \xB7 {size}","penzor.sel.title":"\u5DF2\u9009 {n} \u9879","penzor.sel.sub":"{size} \xB7 {files} \u4E2A\u6587\u4EF6","penzor.sel.subDirs":"{size} \xB7 {files} \u4E2A\u6587\u4EF6\u3001{dirs} \u4E2A\u6587\u4EF6\u5939","penzor.sel.download":"\u4E0B\u8F7D {n} \u9879","penzor.sel.saveTo":"\u4E0B\u8F7D\u5230","penzor.sel.saveToValue":"\u4E0B\u8F7D / {folder}","penzor.sel.noDirs":"\u6587\u4EF6\u5939\u8FD9\u4E00\u7248\u8FD8\u4E0D\u80FD\u4E0B\u8F7D\uFF0C\u53EA\u4E0B\u8F7D\u9009\u4E2D\u7684\u6587\u4EF6\u3002","penzor.download.folder":"\u84EC\u6D32\u4E91 {date}","penzor.drop.to":"\u677E\u624B\u4E0A\u4F20\u5230\u300C{place}\u300D","penzor.tx.busy":"\u6B63\u5728\u4F20\u8F93 {n} \u9879","penzor.tx.allDone":"\u5168\u90E8\u4F20\u5B8C","penzor.tx.failedN":"{n} \u9879\u6CA1\u4F20\u5B8C","penzor.tx.counts":"\u4E0A\u4F20 {up} \xB7 \u4E0B\u8F7D {down}","penzor.tx.eta":"\u5269\u7EA6 {eta}","penzor.tx.doneN":"{n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.restDone":"\u5176\u4F59 {n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"\u6392\u961F\u4E2D","penzor.tx.paused":"\u5DF2\u6682\u505C \xB7 \u7EE7\u7EED\u4F1A\u4ECE\u5934\u4F20","penzor.tx.uploaded":"\u5DF2\u4E0A\u4F20 \xB7 {time}","penzor.tx.downloaded":"\u5DF2\u4E0B\u8F7D \xB7 {time}","penzor.tx.canceled":"\u5DF2\u53D6\u6D88","penzor.tx.left":"\u5269 {eta}","penzor.tx.sec":"{n} \u79D2","penzor.tx.min":"{n} \u5206\u949F","penzor.tx.pause":"\u6682\u505C","penzor.tx.resume":"\u7EE7\u7EED","penzor.tx.cancel":"\u53D6\u6D88","penzor.tx.retry":"\u91CD\u8BD5","penzor.tx.remove":"\u79FB\u9664","penzor.tx.locate":"\u5B9A\u4F4D","penzor.tx.reveal":"\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A","penzor.tx.pauseAll":"\u5168\u90E8\u6682\u505C","penzor.tx.resumeAll":"\u5168\u90E8\u7EE7\u7EED","penzor.tx.retryAll":"\u5168\u90E8\u91CD\u8BD5","penzor.tx.clearDone":"\u6E05\u9664\u5DF2\u5B8C\u6210","penzor.tx.clear":"\u6E05\u9664","penzor.tx.collapse":"\u6536\u8D77","penzor.tx.expand":"\u5C55\u5F00\u4F20\u8F93\u5217\u8868","penzor.tx.quota":"\u7A7A\u95F4\u4E0D\u591F\uFF0C\u8FD8\u5DEE {size}","penzor.tx.quotaSub":"\u8FD9\u4E00\u6279\u4E00\u4E2A\u90FD\u6CA1\u5F00\u59CB\u4F20","penzor.tx.freeSpace":"\u53BB\u56DE\u6536\u7AD9\u817E\u5730\u65B9","penzor.err.too_large":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 50 MB\uFF08\u8FD9\u4E2A {size}\uFF09\uFF0C\u8FD9\u4E00\u7248\u4F20\u4E0D\u4E86","penzor.err.quota":"\u4E91\u7AEF\u7A7A\u95F4\u4E0D\u591F","penzor.err.network":"\u7F51\u7EDC\u65AD\u4E86\uFF0C\u4F20\u5230 {pct}% \u505C\u4E0B","penzor.err.account_changed":"\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u4E00\u9879\u6CA1\u6709\u63A5\u7740\u4F20","penzor.err.download_unavailable":"\u6B64\u5BBF\u4E3B\u6682\u4E0D\u652F\u6301\u4FDD\u5B58\u4E0B\u8F7D\uFF0C\u8BF7\u66F4\u65B0 Forsion","penzor.err.download_failed":"\u6587\u4EF6\u672A\u4FDD\u5B58\uFF0C\u8BF7\u91CD\u8BD5\u4E0B\u8F7D","penzor.err.not_signed_in":"\u6CA1\u767B\u5F55","penzor.err.gone":"\u672C\u673A\u4E0A\u627E\u4E0D\u5230\u8FD9\u4E2A\u6587\u4EF6\u4E86","penzor.err.popup_blocked":"\u6D4F\u89C8\u5668\u62E6\u4E0B\u4E86\u65B0\u6807\u7B7E\u9875\uFF0C\u5141\u8BB8\u672C\u7AD9\u5F39\u51FA\u7A97\u53E3\u540E\u518D\u8BD5\u4E00\u6B21","penzor.err.changed":"\u4F20\u7684\u65F6\u5019\u6587\u4EF6\u6539\u52A8\u4E86\uFF0C\u91CD\u8BD5\u4E00\u6B21","penzor.err.storage_unavailable":"\u4E91\u7AEF\u5B58\u50A8\u6682\u65F6\u4E0D\u53EF\u7528","penzor.err.other":"\u6CA1\u4F20\u5B8C\uFF08{code}\uFF09","penzor.err.too_many":"\u4E00\u6B21\u6700\u591A {n} \u4E2A\u6587\u4EF6\uFF0C\u5206\u51E0\u6B21\u62D6\u8FDB\u6765","penzor.toast.upDoneOne":"\u5DF2\u4E0A\u4F20\u300C{name}\u300D","penzor.toast.upDoneMany":"\u5DF2\u4E0A\u4F20 {n} \u4E2A\u6587\u4EF6","penzor.toast.downDoneMany":"\u5DF2\u4E0B\u8F7D {n} \u4E2A\u6587\u4EF6\u5230\u300C\u4E0B\u8F7D\u300D","penzor.toast.txFailed":"{n} \u9879\u6CA1\u4F20\u5B8C\uFF0C\u56DE\u84EC\u6D32\u4E91\u770B\u770B","penzor.toast.folderExists":"\u5DF2\u7ECF\u6709\u53EB\u300C{name}\u300D\u7684\u6587\u4EF6\u5939\u4E86","penzor.toast.trashedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.movedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u300C{name}\u300D","penzor.toast.batchPartial":"\u6709 {n} \u9879\u6CA1\u6210\u529F","penzor.sync.title":"\u540C\u6B65","penzor.sync.onN":"{n} \u9879\u5DF2\u5F00","penzor.sync.allOff":"\u90FD\u6CA1\u5F00","penzor.sync.waiting":"\u7B49\u4F60\u51B3\u5B9A","penzor.sync.badgeWaiting":"{n} \u9879\u5DF2\u5F00 \xB7 1 \u9879\u7B49\u4F60\u51B3\u5B9A","penzor.sync.running":"\u540C\u6B65\u4E2D {pct}%","penzor.sync.runningPlain":"\u540C\u6B65\u4E2D","penzor.sync.metaDevice":"\u8FD9\u53F0 {name}","penzor.sync.metaLast":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.sync.metaNever":"\u8FD8\u6CA1\u540C\u6B65\u8FC7","penzor.sync.every":"\u6BCF {n} \u5206\u949F","penzor.sync.everyHours":"\u6BCF {n} \u5C0F\u65F6","penzor.sync.manual":"\u624B\u52A8","penzor.sync.onStart":"\u5F00\u673A\u65F6\u4E00\u6B21","penzor.sync.minAgo":"{n} \u5206\u949F\u524D","penzor.sync.hoursAgo":"{n} \u5C0F\u65F6\u524D","penzor.sync.notesNamed":"\u667A\u5E93\u300C{name}\u300D","penzor.sync.notesPlain":"\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93","penzor.sync.notesDesc":"\u6574\u4E2A\u672C\u673A\u667A\u5E93\uFF0C\u548C\u4F60\u7684\u5176\u4ED6\u7535\u8111\u4FDD\u6301\u4E00\u81F4","penzor.sync.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.sync.agentsDesc":"Agents \u7684\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u6280\u80FD\u548C\u534F\u4F5C\u8BF4\u660E\uFF0C\u8FD8\u6709\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.sync.conflictsN":"{n} \u4E2A\u51B2\u7A81\u526F\u672C","penzor.sync.conflictsHint":"\u4E24\u8FB9\u90FD\u6539\u8FC7\u7684\u6587\u4EF6\u4E24\u4EFD\u90FD\u7559\u7740\uFF1A\u53E6\u4E00\u4EFD\u5B58\u6210\u6587\u4EF6\u540D\u5E26\u300Cconflict\u300D\u7684\u526F\u672C\uFF0C\u5728\u5BF9\u5E94 Agent \u7684\u6587\u4EF6\u5939\uFF08\u6216\u4F60\u7684\u8D44\u6599\u6587\u4EF6\u5939\uFF09\u91CC","penzor.sync.pluginsPending":"{n} \u4E2A\u63D2\u4EF6\u7684\u6539\u52A8\u8FD8\u6CA1\u4F20\u4E0A\u53BB","penzor.sync.agentsN":"{n} \u4E2A Agent","penzor.sync.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.sync.pluginsDesc":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\u548C\u6570\u636E","penzor.sync.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.sync.off":"\u6CA1\u5F00","penzor.sync.done":"\u5DF2\u540C\u6B65","penzor.sync.doneSize":"\u5DF2\u540C\u6B65 \xB7 {size}","penzor.sync.firstPending":"\u7B49\u7B2C\u4E00\u6B21\u540C\u6B65","penzor.sync.failed":"\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.sync.overQuota":"\u8D85\u51FA\u989D\u5EA6\uFF0C\u6709\u7684\u6CA1\u4F20","penzor.sync.to":"\u540C\u6B65\u5230 {name}","penzor.sync.toFolder":"\u540C\u6B65\u5230\u672C\u673A\u6587\u4EF6\u5939","penzor.sync.decideAbove":"\u5728\u4E0A\u9762\u90A3\u5F20\u5361\u91CC\u9009","penzor.sync.kvSchedule":"\u540C\u6B65\u8BA1\u5212","penzor.sync.kvDirection":"\u65B9\u5411","penzor.sync.kvSkipped":"\u6CA1\u4F20\u7684","penzor.sync.kvWhere":"\u4E91\u7AEF\u4F4D\u7F6E","penzor.sync.change":"\u6539","penzor.sync.open":"\u6253\u5F00","penzor.sync.dir.both":"\u53CC\u5411","penzor.sync.dir.push":"\u4EC5\u4E0A\u4F20","penzor.sync.dir.pull":"\u4EC5\u4E0B\u8F7D","penzor.sync.skippedN":"{n} \u4E2A\u8D85\u8FC7 {size} \u7684\u6587\u4EF6","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"\u5728\u540C\u6B65\u7684\u8BBE\u5907","penzor.sync.thisOne":"\u8FD9\u53F0","penzor.sync.lastWrite":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.noDevices":"\u8FD8\u6CA1\u6709\u8BBE\u5907\u5728\u540C\u6B65","penzor.sync.phoneTitle":"\u624B\u673A\u548C\u7F51\u9875\u770B\u5230\u7684\u90A3\u4E00\u4EFD","penzor.sync.phoneTip":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF0C{size}\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.phoneTipPlain":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.foot":"\u540C\u6B65\u8BA1\u5212\u3001\u65B9\u5411\u548C\u5176\u4ED6\u5B58\u50A8\uFF08Dropbox / S3 / WebDAV\uFF09\u5728","penzor.sync.footLink":"\u8BBE\u7F6E \u203A \u540C\u6B65","penzor.sync.askTitle":"\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD\u667A\u5E93","penzor.sync.askCloud":"\u4E91\u7AEF\u90A3\u4EFD\u6765\u81EA {device}\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askCloudNoDevice":"\u4E91\u7AEF\u90A3\u4EFD\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askLocal":"\u8FD9\u53F0\u6709 {local} \u4E2A\u6587\u4EF6\u4E91\u7AEF\u6CA1\u6709\uFF0C{conflicts} \u4E2A\u4E24\u8FB9\u5185\u5BB9\u4E0D\u540C\u3002","penzor.sync.askMerge":"\u5408\u5E76\u4E24\u8FB9","penzor.sync.askCloudBtn":"\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.askSkip":"\u8FD9\u53F0\u5148\u4E0D\u540C\u6B65\u667A\u5E93","penzor.sync.askExplain":"\u5408\u5E76\uFF1A\u4E24\u8FB9\u90FD\u7559\u7740\uFF0C\u5185\u5BB9\u4E0D\u540C\u7684\u53E6\u5B58\u4E00\u4EFD\u300C\uFF08\u51B2\u7A81\uFF09\u300D\u3002\u7528\u4E91\u7AEF\u90A3\u4EFD\uFF1A\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u5148\u632A\u8FDB\u65C1\u8FB9\u7684\u300C{backup}\u300D\u6587\u4EF6\u5939\uFF0C\u518D\u4E0B\u8F7D\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirm":"\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u4F1A\u5148\u632A\u8FDB\u300C{backup}\u300D\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirmGo":"\u632A\u8D70\u5E76\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.backupName":"{name} \u540C\u6B65\u524D\u5907\u4EFD {date}","penzor.sync.quotaTitle":"\u667A\u5E93 {size}\uFF0C\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684 {max} \u4E0A\u9650","penzor.sync.quotaTitlePlain":"\u667A\u5E93\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684\u4E0A\u9650","penzor.sync.quotaBody":"\u653E\u4E0D\u4E0B\u7684\u6587\u4EF6\u7559\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\uFF0C\u6CA1\u6709\u5220\uFF0C\u4E5F\u6CA1\u6709\u4F20\uFF1B\u5176\u4F59\u51E0\u9879\u7167\u5E38\u540C\u6B65\u3002","penzor.sync.quotaLarge":"\u8D85\u8FC7 {size} \u7684\u5355\u4E2A\u6587\u4EF6\u4E00\u76F4\u4E0D\u4F20\uFF08{n} \u4E2A\uFF09\u3002","penzor.sync.quotaSee":"\u770B\u770B\u6CA1\u4F20\u7684\u6587\u4EF6","su.title":"\u5546\u5E97\u66F4\u65B0","su.source.github":"GitHub \u6765\u6E90","su.source.npm":"npm \u6765\u6E90","su.source.zip":"ZIP \u4E0A\u4F20","su.review":"\u5F85\u5BA1\u6838","su.approved":"\u5DF2\u901A\u8FC7","su.rejected":"\u6CA1\u901A\u8FC7","su.viaGithub":"GitHub Release {tag}","su.viaNpm":"npm {version}","su.metaReview":"{time} \u63D0\u4EA4 \xB7 \u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaReviewNoTime":"\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaApproved":"\u5546\u5E97\u73B0\u5728\u663E\u793A {version}","su.metaApprovedInfo":"\u5546\u5E97\u4FE1\u606F\u5DF2\u66F4\u65B0","su.metaRejected":"\u5546\u5E97\u7167\u65E7\u663E\u793A {version}","su.metaRejectedUnlisted":"\u8FD8\u6CA1\u6709\u4E0A\u67B6","su.infoOnly":"\u53EA\u6539\u5546\u5E97\u4FE1\u606F","su.listSep":"\u3001","su.openSubmission":"\u5728\u6295\u7A3F\u4E2D\u67E5\u770B","wc.title":"\u7F51\u9875","wc.pill.published":"\u5DF2\u53D1\u5E03","wc.pill.live":"\u5DF2\u4E0A\u7EBF","wc.pill.review":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","wc.pill.listed":"\u5DF2\u4E0A\u67B6","wc.pill.rejected":"\u4E0A\u67B6\u672A\u901A\u8FC7","wc.pill.gone":"\u5DF2\u4E0B\u7EBF","wc.justPublished":"\u521A\u521A\u53D1\u5E03","wc.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","wc.open":"\u6253\u5F00","wc.viewInPages":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u67E5\u770B","wc.manage":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u7BA1\u7406","wc.total":"\u5DF2\u53D1\u5E03 {n} \u4E2A","wc.more":"\u8FD8\u6709 {n} \u4E2A","wc.unpublishTitle":"\u4E0B\u7EBF\u300C{name}\u300D\uFF1F","wc.unpublishBody":"\u94FE\u63A5\u4F1A\u5931\u6548\uFF0C\u7F51\u9875\u7684\u6587\u4EF6\u4E5F\u4F1A\u4ECE\u4E91\u76D8\u5220\u9664\u3002","wc.unpublishAgain":"\u518D\u70B9\u4E00\u6B21\u4E0B\u7EBF"},Lh={"events.title":"Events","events.back":"Back to app","events.count":"{n} live","events.group.active":"Live","events.group.notice":"Notices","events.group.upcoming":"Coming up","events.ended":"Past events","events.endedEmpty":"No past events yet","events.list":"All events","events.kind.checkin":"Check-in","events.kind.tasks":"Quests","events.kind.game":"Mini game","events.kind.notice":"Notice","events.left.days":"{n}d left","events.left.hours":"{n}h left","events.left.long":"{d}d {h}h left","events.left.longHours":"{h}h left","events.time.start":"Starts {date}","events.time.claim":"Ended. Claim by {date}","events.time.claimShort":"Claim by {date}","events.time.ended":"Ended {date}","events.time.published":"Published {date}","events.rewards":"Rewards","events.checkin.signed":"{n} of {total} days","events.checkin.today":"Today","events.checkin.day":"Day {n}","events.checkin.do":"Check in","events.checkin.done":"Checked in today","events.checkin.finished":"All days complete","events.tasks.progress":"Progress","events.tasks.claim":"Claim","events.tasks.claimAll":"Claim all ({n})","events.tasks.go":"Go","events.tasks.closed":"Event ended","events.game.board":"Leaderboard","events.game.me":"You","events.game.anon":"Anonymous","events.game.enter":"Play","events.game.install":"Get it in the Store","events.game.empty":"No scores yet","events.notice.more":"Learn more","events.toast.checkin":"Checked in: {reward}","events.toast.claimed":"Claimed {reward}","events.toast.partial":"{n} claimed, {m} failed. Try again later","events.toast.backpack":"Open backpack","events.err.failed":"Not claimed. Try again when you're back online","events.err.notLive":"This event has ended","events.err.completed":"You've completed every day","events.err.grantFailed":"The reward didn't go through. It's logged for manual delivery, so there's no need to claim again","events.login.title":"Sign in to join events","events.login.do":"Sign in to Forsion","events.empty":"No events right now","events.error":"Couldn't load events","events.retry":"Try again","events.dot":"Rewards to claim or new events","penzor.rules.default":"Cloud default","penzor.rules.off":"Do not sync","penzor.rules.device":"Device","penzor.rules.run":"Sync now","penzor.rules.twoWay":"Two-way","penzor.rules.defaultForWeb":"The web uses the default folder","penzor.rules.tab.rules":"Sync rules","penzor.rules.tab.active":"Transfers","penzor.rules.tab.history":"History","penzor.rules.enable":"Enable content sync","penzor.rules.add":"Add rule","penzor.rules.source":"Local source","penzor.rules.destination":"Cloud destination","penzor.rules.direction":"Direction","penzor.rules.remove":"Remove rule","penzor.rules.inherit":"An empty path covers all of Forsion. Children inherit; the most specific path wins. Unmatched content stays on this device.","penzor.rules.namespace":"Default: Cloud /Forsion/. Device folders: Cloud /Forsion-deviceID/.","penzor.rules.human":"Choose human independently. The default calendar uses human/CALENDAR.db. A device destination does not replace the web default.","penzor.rules.preview":"Preview changes","penzor.rules.previewTitle":"Review sync scope","penzor.rules.previewCounts":"Upload {up}, download {down}; {conflicts} existing items need merging or preserved versions.","penzor.rules.retain":"Previous destinations are retained. Turning sync off deletes no files. If sources change, preview again.","penzor.rules.back":"Back","penzor.rules.apply":"Confirm and start","penzor.rules.pause":"Pause","penzor.rules.resume":"Continue","penzor.rules.noActive":"No files are transferring.","penzor.rules.manual":"Manual uploads and downloads","penzor.rules.historyNote":"The latest 200 items. Conflicts preserve both versions; other content continues syncing.","penzor.rules.retry":"Retry failed items","penzor.rules.noHistory":"No sync history yet.","penzor.rules.details":"View transfers","penzor.rules.plugins":"Plugin data keeps its own sync management.","penzor.rules.turnOff":"Turn off plugin data sync","penzor.rules.turnOn":"Turn on plugin data sync","penzor.rules.phase.idle":"Waiting for the next sync","penzor.rules.phase.scanning":"Checking files","penzor.rules.phase.syncing":"Syncing","penzor.rules.phase.paused":"Paused","penzor.rules.state.queued":"Queued","penzor.rules.state.active":"Transferring","penzor.rules.state.done":"Done","penzor.rules.state.failed":"Failed","penzor.rules.state.paused":"Paused","penzor.rules.state.conflict":"Conflict versions preserved","penzor.tree.synced":"Synced","penzor.tree.thisBackup":"This computer \xB7 backup only","penzor.tree.byApp":"By app","penzor.tree.legacy":"Legacy vault sync","penzor.quota.sourceLimit":"This kind also has its own limit of {max}; {used} used","penzor.ov.mine":"Yours","penzor.ov.synced":"Synced from your devices","penzor.ov.stale":"No longer updated","penzor.ov.uploads":"Files you upload and organize; change them freely","penzor.ov.all":"Notes, agents, about me and plugins","penzor.ov.allLast":"Notes, agents, about me and plugins \xB7 last synced {time}","penzor.ov.self":"The copy only this computer uses","penzor.ov.device":"Shared only between this computer and that one","penzor.ov.agents":"Agent settings, memory and logs","penzor.ov.profile":"Your profile and default calendar","penzor.ov.sync":"Vaults your computers sync up","penzor.ov.legacy":"No longer written once this computer uses the new sync; kept, not deleted","penzor.ov.ama":"Notes from the web and synced notes","penzor.ov.apps":"Files your apps store; delete or rename them","penzor.ov.plugins":"Settings plugins store; usage only","penzor.ov.exports":"Exported files; download or delete them","penzor.ov.segNotes":"Notes","penzor.ov.segSync":"Device sync","penzor.ov.segOther":"Other","penzor.content.badge":"Kept by the new sync","penzor.content.badgeLast":"Kept by the new sync \xB7 last synced {time}","penzor.content.noteAll":"This is the cloud copy every signed-in device and the web see. To change files, edit them in Notes or Agents on a computer and they sync up; you can download them here.","penzor.content.noteSelf":"The copy only this computer uses; other devices don\u2019t see it. Change files on this computer; you can download them here.","penzor.content.noteDevice":"Shared only between this computer and {name}. Change files on a computer; you can download them here.","penzor.legacy.title":"This computer stopped writing to this vault when it switched to the new sync","penzor.legacy.body":"This computer\u2019s notes now live in Shared with all devices \u203A Notes. Older desktop versions may still write here, so this copy is kept, not deleted.","penzor.legacy.go":"See the new copy","penzor.drive.total":"All of Penzor Cloud: {used} / {max} used","penzor.drive.seeAll":"View","penzor.cs.statusOff":"Off","penzor.cs.statusPaused":"Paused","penzor.cs.statusRun":"Syncing {pct}%","penzor.cs.statusScan":"Checking files","penzor.cs.statusWarn":"{n} to review","penzor.cs.statusOk":"Up to date","penzor.cs.statusOkAgo":"Up to date \xB7 {time}","penzor.widget.signedOut":"Not signed in to Forsion","penzor.widget.signInHint":"Sign in to sync","penzor.widget.off":"Cloud sync is off","penzor.widget.paused":"Sync is paused","penzor.widget.running":"Syncing","penzor.widget.problem":"Sync needs attention","penzor.widget.active":"Transferring {n}","penzor.widget.queued":"{n} more queued","penzor.widget.waiting":"{n} waiting to sync","penzor.widget.failed":"Failed","penzor.widget.error":"Sync ran into an error","penzor.widget.errorMeta":"Error","penzor.widget.conflict":"Conflict, both kept","penzor.widget.more":"{n} more to check","penzor.widget.last":"Last synced {time}","penzor.widget.pending":"Notes are already in the cloud","penzor.widget.notesFailed":"Last note sync failed","penzor.widget.agentsFailed":"Last agent sync failed","penzor.cs.thisComputer":"This computer: {name}","penzor.cs.thisComputerLabel":"This computer:","penzor.cs.rename":"Rename this computer","penzor.cs.renameHint":"Other devices will show this name \xB7 Enter to save","penzor.cs.name.taken":"Another device already uses this name. Pick another one.","penzor.cs.name.reserved":"macOS, Windows and Linux are kept for systems. Pick another name.","penzor.cs.name.invalid":"Names can have up to 64 characters and no square brackets.","penzor.cs.othersN":"{n} others: {names}","penzor.cs.noOthers":"No other devices on this account yet","penzor.cs.log":"Recent activity","penzor.cs.more":"More","penzor.cs.advanced":"Advanced: edit rules","penzor.cs.backSimple":"Back to sync","penzor.cs.firstTitle":"Sync this computer to Penzor Cloud","penzor.cs.firstBody":"Here is a suggested setup; change anything first. Nothing moves until you press Start syncing, and nothing already in the cloud is overwritten or deleted.","penzor.cs.note":"To treat one notes folder or agent differently, click the small line under it. Turning a switch off just stops syncing; nothing is deleted.","penzor.cs.barFirst":"Turning sync on uploads {up} files and downloads {down}","penzor.cs.barChanged":"{n} changes","penzor.cs.barOne":"1 change: \u201C{name}\u201D \u2192 {scope}","penzor.cs.offName":"not synced","penzor.cs.barCounts":"Uploads {up} files and downloads {down} \xB7 nothing is deleted","penzor.cs.barSize":"{size} in total","penzor.cs.noDelete":"nothing will be deleted","penzor.cs.barConflicts":"{n} changed on both sides; both copies are kept","penzor.cs.barCounting":"Working out what will move\u2026","penzor.cs.barRecount":"Files just changed, so this was recalculated. Please confirm again.","penzor.cs.later":"Not now","penzor.cs.start":"Start syncing","penzor.cs.undo":"Undo","penzor.cs.confirm":"Confirm","penzor.cs.up":"Uploading \u201C{name}\u201D","penzor.cs.down":"Downloading \u201C{name}\u201D","penzor.cs.waiting":"{n} more files waiting","penzor.cs.failedN":"{n} files didn\u2019t sync","penzor.cs.retry":"Retry","penzor.cs.seeLog":"See activity","penzor.cs.logEmpty":"No sync activity yet.","penzor.cs.logNote":"Keeps the latest 200 items. When both sides changed, both copies are kept.","penzor.cat.notes":"Notes","penzor.cat.notesDesc":"Your Amadeus vault","penzor.cat.agents":"Agents & memory","penzor.cat.agentsDesc":"Each agent\u2019s settings, memory and logs","penzor.cat.profile":"About me","penzor.cat.profileDesc":"Your profile and default calendar","penzor.cat.profileOn":"Includes your default calendar","penzor.cat.plugins":"Plugins","penzor.cat.pluginsDesc":"Plugin folders and settings","penzor.cat.others":"Other files","penzor.cat.othersDesc":"Files in your workspace outside the groups above","penzor.cat.files":"{n} files \xB7 {size}","penzor.agents.pickHint":"Choose each one; new agents aren\u2019t synced \xB7 {n} selected","penzor.agents.legacyHint":"Older setting: new agents sync too \xB7 {n} selected","penzor.agents.none":"No agents on this computer yet","penzor.agents.muse":"Muse","penzor.agents.museDesc":"Background agent; runs separately on each computer","penzor.agents.locked":"Sync not available yet","penzor.agents.cloudOnly":"In the cloud \xB7 not on this computer yet; turn on to download","penzor.agents.historianNote":"Historian\u2019s drafts stay on each computer. What it writes into an agent\u2019s log syncs with that agent.","penzor.agents.archiveRunning":"Cloud agents are being archived. Try again in a moment.","penzor.cs.accountReview":"Account changed. Local files may contain content from another account. Review and confirm the sync selection before syncing again.","penzor.agents.openFailed":"Couldn\u2019t turn on sync for this agent, so it stays off: {reason}","penzor.archive.title":"Agents now sync one by one","penzor.archive.body":"Agents that synced with the old all-agents switch have stopped. Their cloud copy is in \u201CMy drive \u203A {shelf} \u203A {name}\u201D, read-only and downloadable. Turn on the ones you still want, one at a time.","penzor.archive.shelf":"Archive","penzor.archive.ok":"Got it","penzor.archive.open":"Open archive","penzor.archive.note":"This is an agent sync archive. It\u2019s read-only: you can download it or delete the whole archive.","penzor.ask.title":"{name} already has a copy in the cloud","penzor.ask.when":"Cloud copy last changed: {cloud}. This computer: {local}. Choose once before turning sync on; after that it merges automatically.","penzor.ask.merge":"Merge them","penzor.ask.mergeDesc":"Memory, logs and schedules merge entry by entry. Where both sides changed settings or personality, the newer copy wins and the other goes to this computer\u2019s recycle folder","penzor.ask.cloud":"Use the cloud copy","penzor.ask.cloudDesc":"This computer\u2019s copy goes to the recycle folder first, then the cloud copy replaces it","penzor.ask.local":"Use this computer\u2019s copy","penzor.ask.localDesc":"The cloud copy is archived first, then replaced with this computer\u2019s","penzor.ask.recommended":"Recommended","penzor.ask.foot":"Recycled files are in agents/.removed and can be recovered","penzor.ask.cancel":"Cancel","penzor.ask.confirm":"Turn on sync","penzor.cat.pluginsN":"{n} plugins","penzor.cat.custom":"{n} custom rules","penzor.cat.notSynced":"Not synced \xB7 stays on this computer","penzor.scope.all":"Shared with all devices","penzor.scope.allDesc":"Every signed-in device and the web see one copy","penzor.scope.self":"Back up this computer only","penzor.scope.selfDesc":"Kept in its own cloud copy other devices don\u2019t see","penzor.scope.with":"Only with {name}","penzor.scope.menuTitle":"Who shares \u201C{name}\u201D","penzor.scope.menuFoot":"To stop syncing it, turn off the switch","penzor.scope.calendarNote":"The web\u2019s default calendar doesn\u2019t follow this","penzor.unified.stale":"Refresh failed. Showing the last sample; current usage is unknown. Please retry.","penzor.unified.uploadTo":"Upload to My files","penzor.unified.apps":"Manage ordinary files \xB7 source restrictions apply","penzor.trash.ama":"Amadeus \xB7 pending cleanup","penzor.trash.amaNote":"Deleted current files still count; history is not counted again. Eligible for system cleanup after 30 days. Read-only here; Empty trash does not affect these snapshots.","penzor.trash.expires":"Cleanup eligible from","penzor.source.openAgents":"Open Agents","penzor.source.openCalendar":"Open calendar","penzor.source.entryUnavailable":"This host does not provide that destination","penzor.uploads":"My files","penzor.source.agents":"Agents","penzor.source.profile":"My profile","penzor.source.plugins":"Plugin data","penzor.source.readonly":"Synced sources are read-only. Edit or delete in the source; download synced files here.","penzor.source.appNote":"App files are managed by their app. Edit or delete them there.","penzor.source.market":"Store submissions","penzor.ov.market":"Plugins, skills and Agents you submitted to the Store; they follow their listings","penzor.source.marketNote":"These packages follow their Store listings: delete a listing in Store \u203A My submissions to free its space. Packages fetched from GitHub or npm are stored by the Store and don't count toward your storage.","penzor.market.badge":"Managed by the Store","penzor.market.meta":"{size} \xB7 {n} packages","penzor.market.history":"Older versions {size}, not counted (same as elsewhere)","penzor.market.older":"older versions {size}","penzor.market.updating":"update in review","penzor.market.notCounted":"Not counted","penzor.market.fromGithub":"From GitHub \xB7 stored by the Store","penzor.market.fromNpm":"From npm \xB7 stored by the Store","penzor.market.type.plugin":"Plugin","penzor.market.type.skill":"Skill","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"Theme","penzor.market.type.amadeusPlugin":"Amadeus plugin","penzor.market.status.approved":"Listed","penzor.market.status.pending":"In review","penzor.market.status.rejected":"Not approved","penzor.col.type":"Type","penzor.col.status":"Status","penzor.source.pluginNote":"Names and usage only. Data may contain settings or credentials, so preview and download are unavailable.","penzor.unified.unavailable":"Usage unavailable","penzor.unified.incomplete":"Unified usage is incomplete, so quota status is unknown. Refresh to retry.","penzor.unified.enforced":"Unified quota is active. Over quota, new content and larger replacements are paused; downloads, deletions and non-growing replacements remain available.","penzor.unified.grace":"Notice grace period ends {date}. Unified quota does not add restrictions yet.","penzor.unified.rolloutPolicy":"Storage policy notice: growth limits may start no earlier than 30 days after acknowledgement. App file history will retain at most 50 versions from the last 30 days. History is excluded from your plan; download backups before cleanup. Current files are not removed by history cleanup.","penzor.unified.ack":"I have read the storage and history notice","penzor.unified.notice":"This is only a notice. Going over won\u2019t stop sync or uploads","penzor.unified.over":"Unified quota exceeded. This is a notice only; no new sync or upload restrictions apply. Clear files or upgrade your plan.","penzor.unified.warn":"Unified storage is nearly full. This is a notice only; no new sync or upload restrictions apply.","penzor.unified.accounting":"includes {trash} in trash; history doesn\u2019t count","penzor.unified.writable":"Upload, create, rename and delete","penzor.unified.readonly":"Read-only \xB7 managed at source","penzor.unified.export":"Download, rename and permanently delete","penzor.unified.counted":"Included in unified usage \xB7 notice phase","penzor.unified.policy":"If limits are ever enforced, you\u2019ll hear at least 30 days ahead.","penzor.unified.legacySync":"Existing device sync limit: {used} / {max}","penzor.unified.legacyApps":"Existing app file limit: {used} / {max}","sub.identity":"Plugin ID","sub.identityHint":"A unique ID is assigned after submission. Names may repeat; updates keep the same ID.","sub.description":"Detailed description","sub.tags":"Tags","sub.tagsHint":"Comma separated, up to 8","sub.minAppVersion":"Minimum Forsion version","sub.maxAppVersion":"Maximum version (exclusive)","sub.optional":"Optional","sub.platforms":"Supported platforms","sub.requirementsHint":"Supported: desktop, macos, windows, linux, android, ios, web. Leave blank if unspecified. ZIP requirements are read from the manifest; supplied values must match it.","sub.err.market_requirements_invalid":"Invalid version requirements or platforms.","sub.err.market_requirements_mismatch":"Supplied requirements differ from the ZIP manifest.","sub.mine":"My submissions","page.submission":"Submissions","page.webPages":"My web pages","web.title":"My web pages","web.desc":"Pages you published with Tangu or Coding Space. Anyone with the link can open them; they run sandboxed and can't read visitors' Forsion sign-in.","web.refresh":"Refresh","web.used":"{used} of {limit} published","web.full":"All slots are used. Take one down or upgrade to publish another","web.empty":"No published pages yet","web.emptyHint":'Ask Tangu in a chat to publish a page, for example "publish this page", or choose Publish on a Coding Space project.',"web.updated":"Updated {date}","web.disabled":"Disabled","web.disabledHint":"An administrator disabled this page. Its link doesn't open and it can't be updated.","web.copy":"Copy link","web.unpublish":"Take down","web.unpublishConfirm":"Confirm take down","web.listingPending":"Store listing in review","web.listingApproved":"Listed in store","web.listingRejected":"Store listing rejected","web.listingNote":"Reason: {note}","web.listingApply":"Apply for store listing","web.listingReapply":"Apply again","web.listingWithdraw":"Withdraw application","web.listingDelist":"Remove from store","web.listingDelistConfirm":"Confirm removal","web.listingSummary":"Store summary","web.listingSummaryPh":"One sentence about this page","web.listingHint":"Shown in the store under Web apps after review. Up to 300 characters.","web.listingSubmit":"Submit application","pub.cmd":"Publish web page to Forsion","pub.cmdNoArgs":"Open the project you want to publish from Coding Studio","pub.title":"Publish to Forsion: {name}","pub.titleTerms":"Publish as a public page","pub.close":"Close","pub.desc":"Publish this page as a public link. Anyone with the link can open it.","pub.descPublished":"Published. Come back and choose Update after changes; the link stays the same.","pub.needLogin":"Sign in with Forsion to publish","pub.login":"Sign in to Forsion","pub.loginWaiting":"Waiting for the browser to finish\u2026","pub.name":"Name","pub.slug":"Link slug","pub.slugHint":"3\u201332 lowercase letters, digits or hyphens","pub.entry":"Entry page","pub.noEntry":"This project has no .html entry yet. Generate a page first.","pub.slots":"{used} of {limit} published ({tier})","pub.hint":"Use relative paths for assets. .ts and .tsx are transpiled on publish, no build step.","pub.anyone":"Anyone with the link can open it","pub.likes":"{n} likes","pub.saves":"{n} saves","pub.copy":"Copy link","pub.copied":"Copied","pub.open":"Open in browser","pub.publish":"Publish","pub.update":"Update","pub.saveUpdate":"Save and update","pub.publishing":"Publishing\u2026","pub.listingTitle":"Store \xB7 Web apps","pub.listingNone":"Not listed","pub.listingPending":"In review","pub.listingApproved":"Listed","pub.listingRejected":"Rejected","pub.listingHint":"Listed pages appear under Web apps in the Store after review.","pub.termsIntro":"Once published, anyone with the link can view this page, and it may be shared or indexed by search engines. Please confirm:","pub.termsLi1":"You have the right to publish all text, images, audio, video and other content on the page;","pub.termsLi2":"The page contains no illegal information, infringing content or personal information disclosed without permission;","pub.termsLi3":"You take responsibility for the content you publish.","pub.termsManage":"The platform manages public content under applicable laws and the Content Publishing Guidelines, and may restrict access to, stop showing or remove violating content.","pub.termsAgreePre":"I have read and agree to the ","pub.termsGuidelines":"Content Publishing Guidelines","pub.termsConfirm":"Confirm and publish","pub.aiSaveFailed":"Published, but the AI settings weren\u2019t saved: {reason}","ai.whoPays":"Who pays","ai.payer.visitor":"Visitors","ai.payer.author":"I pay","ai.perVisitor":"Per visitor","ai.perVisitorPre":"Up to","ai.perVisitorPost":"calls a day","ai.page":"This page","ai.pagePre":"Up to","ai.pagePost":"points a day","ai.max":"Up to {n}","ai.whenUsedUp":"When used up","ai.exhausted.visitor":"Switch to visitors\u2019 own quota","ai.exhausted.pause":"Pause AI until tomorrow","ai.models":"Models","ai.modelDefault":"default","ai.modelImage":"Image","ai.balance":"Pack balance","ai.points":"{n} points","ai.buy":"Buy a pack","ai.noteAuthor":"Visitors sign in with Forsion before using AI; it only counts calls per person and doesn\u2019t use their quota. Charged at the same model rates as when visitors pay; your own AI quota and points balance are never touched.","ai.noteVisitor":"Viewing needs no sign-in. Visitors sign in with Forsion when they use AI, and their own quota is used.","ai.noteOff":"\u201CI pay\u201D isn\u2019t available yet, so visitors pay for AI.","ai.agentNote":"forsion.ai.agent still uses the visitor\u2019s own quota for now; visitors confirm before the first use.","ai.cooldownNew":"New pages switch to you paying {h} hours after publishing; until then visitors pay.","ai.cooldownUntil":"You pay from {time}; until then visitors pay.","ai.save":"Save","ai.saved":"AI settings saved","web.tabMine":"Published {n}","web.tabSaved":"Saved","web.tabSavedN":"Saved {n}","web.ai.author":"AI \xB7 I pay","web.ai.visitor":"AI \xB7 Visitors pay","web.ai.paused":"AI \xB7 I pay \xB7 paused","web.ai.pausedSpike":"Spending spiked within an hour, so visitors pay again","web.ai.pausedAdmin":"Paused by an administrator; visitors pay for now","web.ai.resume":"Resume I pay","web.ai.todayAuthor":"{calls} calls today \xB7 {visitors} visitors","web.ai.todayVisitor":"{calls} calls today","web.ai.cap":"Daily cap","web.ai.none":"No AI","web.ai.settings":"AI settings","web.ai.cooldown":"You pay from {time}","pack.points":"points","pack.note":"Pages set to \u201CI pay\u201D draw from here at the model rates. Your own AI quota and points balance are never touched.","pack.lowNote":"Almost used up. Then each \u201CI pay\u201D page follows its setting: visitors use their own quota, or AI pauses until tomorrow.","pack.monthSpent":"Used this month","pack.lastTopUp":"Last top-up","pack.topUp":"{date} \xB7 +{n}","pack.usage":"Usage","pack.usageTitle":"\u201CI pay\u201D usage in the last 30 days","pack.usageEmpty":"No \u201CI pay\u201D calls in the last 30 days","pack.col.day":"Date","pack.col.page":"Page","pack.col.calls":"Calls","pack.col.visitors":"Visitors","pack.col.points":"Points","pack.storeTitle":"Store","pack.storeUnavailable":"Open Store \u203A Items to buy a pack","saved.empty":"No saved pages yet","saved.emptyHint":"Tap the star beside someone\u2019s page to save it here.","saved.open":"Open","saved.author":"Author page","saved.unsave":"Unsave","saved.aiAuthor":"AI on the author","saved.aiVisitor":"AI \xB7 you pay","backpack.effect.connectPack":"Pack balance +{n} points","backpack.effect.other":"Other effect","backpack.packUsed":"Added to your pack balance","backpack.packUsedLine":"+{n} points \xB7 {balance} points now","sub.desc":"Manage your submissions, review results and version updates.","sub.new":"New submission","sub.refresh":"Refresh","sub.empty":"No submissions yet","sub.emptyHint":"Share your plugins, skills, Agents or Spaces in the marketplace.","sub.name":"Name","sub.summary":"Summary","sub.type":"Content type","sub.source":"Source","sub.type.skill":"Skill","sub.type.agent":"Agent","sub.type.plugin":"Plugin","sub.type.space":"Space","sub.type.theme":"Theme","sub.type.amadeus_plugin":"Amadeus plugin","sub.pending":"Pending review","sub.approved":"Published","sub.rejected":"Rejected","sub.pendingVersion":"v{version} update pending review","sub.rejectedVersion":"v{version} update rejected","sub.submit":"Submit for review","sub.submitted":"Submitted. The review result appears here and in your inbox.","sub.updated":"Update submitted for review. The published version stays available until then; the result goes to your inbox.","sub.repo":"Public GitHub repository","sub.npm":"Public npm package","sub.repoHint":"README and Releases come from the repository; its owner is shown as the publisher.","sub.npmHint":"Package metadata comes from npm; the public repository owner is shown as the publisher.","sub.reviewHint":"New versions require review before distribution. Your Forsion account manages the submission.","sub.zipHint":"Up to 50 MB. Include the required manifest and entry files.","sub.filter":"Filter by status","sub.all":"All","sub.noResults":"No matching submissions","sub.downloads":"{n} downloads","sub.errName":"Enter a name.","sub.errSource":"Enter a public repository URL or npm package name.","sub.errZip":"Choose a ZIP archive.","sub.errLarge":"ZIP archives must not exceed 50 MB.","sub.err.market_npm_invalid":"The npm package is unavailable or does not meet the plugin requirements.","sub.err.market_npm_source":"Publish the new version on npm for review.","sub.err.market_github_source":"Publish a GitHub Release for review.","sub.err.market_not_found":"Submission unavailable. Refresh and retry.","sub.err.market_zip_required":"Choose a ZIP archive.","sub.err.market_zip_invalid":"The ZIP structure does not meet the publishing requirements.","sub.err.market_zip_too_large":"ZIP archives must not exceed 50 MB.","sub.err.market_version_required":"The package has no version. Add one to the manifest (for skills, version or metadata.version in SKILL.md) and repackage.","sub.err.market_version_invalid":"Enter a valid version.","sub.err.market_version_mismatch":"The version does not match the manifest.","sub.err.market_version_not_newer":"The new version must be newer than the published version.","sub.err.market_icon_invalid":"Use a square PNG icon between 64 and 512 px.","sub.err.market_duplicate":"This content has already been submitted. Manage the existing submission.","sub.err.market_update_pending":"An update is already awaiting review.","sub.err.market_stale":"The submission has changed. Refresh and retry.","sub.notNewer":"The package says v{version}; it must be newer than the Store\u2019s v{current}.","sub.reqNone":"No version range or platforms declared","sub.dropTitle":"Drop a ZIP here, or click to choose one","sub.dropHint":"Up to 50 MB. It is checked first, not submitted yet.","sub.dropReplace":"{size} \xB7 Drop or click to replace","sub.checkType":"Type","sub.checkVersion":"Version","sub.checkIcon":"Icon","sub.checkReadme":"README","sub.checkReq":"Requirements","sub.checkWarn":"Note","sub.iconYes":"icon.png found in the package","sub.iconNo":"No icon.png; the card shows the type icon","sub.readmeYes":"Uses README.md from the package","sub.readmeKeep":"No README.md in the package; the current one stays","sub.readmeNo":"No README.md in the package","sub.warn.no_manifest":"No manifest found in the package","sub.warn.type_mismatch":"The package type differs from this submission\u2019s type","sub.warn.tag_version_mismatch":"The release tag differs from the package version","sub.warn.id_slug_mismatch":"The package id differs from the install folder name. Users are not affected: updates go to the same folder and no second copy appears. The folder name cannot change after listing","sub.warn.engine_slug_mismatch":"The engine plugin folder name differs from its id","sub.warn.no_entry":"The Amadeus plugin has no main.js entry","sub.warn.has_node_modules":"The package includes node_modules, which is large and usually unneeded","sub.zipListedNote":"Until it\u2019s approved, the Store keeps serving the published version. The review result goes to your inbox.","sub.zipUnlistedNote":"Submitting replaces the current package and sends it back for review.","sub.submitVersion":"Submit v{version} for review","sub.checkNew":"Check for a new version","sub.checkAgain":"Check again","sub.upToDate":"The latest upstream version is v{version} and the Store has v{current}. Publish a new version, then check again.","sub.upstreamLatest":"Latest upstream: v{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"Store has v{version}","sub.githubNote":"Once approved, the Store pins v{version}. After your next GitHub release, come back and check again.","sub.npmNote":"Once approved, the Store pins v{version}. After your next npm release, come back and check again.","sub.secVersion":"Version","sub.secInfo":"Store details","sub.secHistory":"History","sub.edit":"Edit","sub.unset":"Not set","sub.infoNote":"No package or new version needed. Changes to a published item are reviewed too; until then the Store shows the current details.","sub.submitInfo":"Submit changes","sub.back":"Back to list","sub.pendingInfo":"Details change pending review","sub.rejectedInfo":"Details change rejected","sub.pendingHint":"The Store stays unchanged until approval. The review result goes to your inbox.","sub.inReview":"Waiting for its first review. The result goes to your inbox.","sub.histApproved":"v{version} approved","sub.histSubmitted":"Submitted","sub.resubmitted":"Resubmitted for review. The result goes to your inbox.","sub.infoSubmitted":"Changes submitted for review. The Store shows the current details until then.","sub.err.market_no_release":"This repository has no GitHub release yet. The Store pins a version, so publish a release on GitHub, then check again.","sub.err.market_no_changes":"Nothing changed.","sub.err.market_dryrun_unsupported":"GitHub and npm submissions can\u2019t be checked in advance. Submit them for review.","page.account":"Account","page.membershipUsage":"Membership & usage","page.membershipQuota":"Membership & quota","page.pointsInvite":"Points & invites","account.details.title":"Sign-in & details","account.details.desc":"Edit your photo, nickname and bio under Profile.","account.details.username":"Username","diag.unavailable":"This host does not support diagnostic data. Update Forsion and try again.","page.profile":"Profile","page.quota":"Quota & points","page.backpack":"Backpack","page.security":"Security","page.usage":"Usage","page.feedback":"Feedback","store.group":"Membership & points","store.membership":"Membership","store.membership.desc":"Upgrade your plan for more daily and weekly quota","store.points":"Points","store.points.desc":"Buy points and use them to redeem items","store.items":"Items","store.items.desc":"Items you can redeem with points. Redeemed items go to your backpack","store.status":"Plan and points","store.tier":"Current plan","store.balance":"Points balance","store.choosePlan":"Choose a plan","store.payHint":"You pay on the payment page in your browser. This page refreshes when you come back","store.payOff":"Purchases are unavailable right now","store.period":"Billing period","store.period.monthly":"Monthly","store.period.quarterly":"Quarterly","store.period.yearly":"Yearly","store.per.monthly":"/ month","store.per.quarterly":"/ quarter","store.per.yearly":"/ year","store.currentTier":"Current plan","store.pay":"Pay","store.payPrice":"Pay {price}","store.noPlans":"No plans are available right now","store.packs":"Point packs","store.packsHint":"You pay on the payment page in your browser. Points arrive right after payment","store.noPacks":"No point packs are available right now","store.kind.pack":"Point pack","store.kind.card":"Consumable","store.kind.code":"Redeem code","store.kind.item":"Item","store.nPoints":"{n} points","store.instant":"Arrives right after payment","store.kind.custom":"Custom","store.customPack":"Custom amount","store.customPackHint":"Minimum {min} points. Enter the amount on the payment page","store.customPackPay":"Enter amount","store.pricingTitle":"Reference usage (1\xD7 model)","store.pricingFormula":"Points \u2248 (uncached input tokens \xD7 {input} + output tokens \xD7 {output} + cached input tokens \xD7 {cached}) \xF7 1,000,000 \xD7 model multiplier","store.pricingExample":"Example: 10,000 input tokens and 2,000 output tokens on a 1\xD7 model cost about {n} points.","store.redeemTitle":"Redeem with points","store.redeemHint":"Redeeming with points completes right here. Items go to your backpack","store.redeem":"Redeem for {n} points","store.redeemConfirm":"Confirm: spend {n} points","store.redeemed":"Redeemed. The item is in your backpack","store.uncertain":"No response came back. Check your backpack before you try again","store.soldOut":"Sold out","store.left":"{n} left","store.toBackpack":"Goes to your backpack","store.limitReached":"You've reached the purchase limit","store.unavailable":"This item can't be redeemed right now","store.noItems":"Nothing to redeem right now","store.itemsOff":"Item redemption isn't available yet","store.openBackpack":"Open backpack","backpack.desc":"View the items you have collected. Select a slot for details.","backpack.refresh":"Refresh","backpack.total":"{n} items","backpack.grid":"Backpack items","backpack.slot":"{name}, quantity {n}","backpack.item":"Item","backpack.empty":"Your backpack is empty","backpack.emptyHint":"Items you redeem or receive will appear here.","backpack.select":"Select an item to view details","backpack.details":"Item details","backpack.quantity":"Quantity","backpack.acquired":"Acquired","backpack.source":"Received through","backpack.source.points":"Points exchange","backpack.source.admin":"Gift","backpack.source.reward":"Reward","backpack.source.other":"Cloud account","backpack.consumable":"Consumable","backpack.voucher":"Voucher","backpack.getCards":"View quota","backpack.manageCards":"Use it","backpack.reveal":"Reveal key","backpack.copyKey":"Copy key","backpack.noKey":"This item has no key.","backpack.use":"Use","backpack.confirmUse":"Confirm use","backpack.consumeConfirm":"Using this item consumes one copy.","backpack.collectible":"Collectible","backpack.effect.points":"+{n} points","backpack.effect.cards":"+{n} reset cards","backpack.effect.quota":"Reset daily and weekly quota","backpack.rarity.common":"Common","backpack.rarity.rare":"Rare","backpack.rarity.epic":"Epic","backpack.rarity.legendary":"Legendary","backpack.unavailable":"This item is no longer available. Refresh your backpack.","backpack.notUsable":"This item cannot be used.","backpack.quotaUnavailable":"Use cloud AI to initialize your quota before using this item.","common.cancel":"Cancel","common.copied":"Copied","common.copyFailed":"Couldn't copy","common.done":"Done","common.loadFailed":"Couldn't load","common.loadMore":"Load more","common.loading":"Loading\u2026","common.openInBrowser":"Open in browser","common.retry":"Retry","common.save":"Save","common.thisWeek":"This week","common.today":"Today","common.unlimited":"Unlimited","ann.eyebrow":"FORSION \xB7 Announcement","ann.close":"Close","ann.ok":"Got it","signin.button":"Sign in to Forsion","signin.desc":"Sign in to your Forsion account to manage your account, quota, security, submissions and feedback here.","signin.pending":"Waiting for you to finish in your browser\u2026","signin.deviceHint":"Your browser opens the sign-in page on its own. If it doesn't, scan the code with your phone or open the link below, and check that the code matches.","signin.code":"Code","signin.openLink":"Open sign-in page","signin.copyLink":"Copy link","signin.qrLabel":"Sign-in QR code","account.profile.title":"Profile","account.profile.desc":"Your photo and nickname, plus the phone and email linked to your account","account.avatar.change":"Change photo","account.avatar.saved":"Photo updated","account.nickname.edit":"Edit nickname","account.nickname.label":"Nickname","account.nickname.saved":"Nickname updated","account.role.admin":"Admin","account.username":"Username {name}","account.contact.phone":"Phone","account.contact.email":"Email","account.contact.unbound":"Not linked","account.contact.manage":"Manage in Security","account.web.open":"Open the account center in your browser","account.web.desc":"Cloud storage, AI Brain and themes are managed in the web account center.","wechat.title":"WeChat Helper","wechat.desc":"Send Xiaohongshu, Bilibili, X or web links to the Forsion WeCom account and they are clipped into Plugins/wechat-helper in your cloud vault. Other messages go into a daily note.","wechat.status":"Status","wechat.bound":"Bound","wechat.boundAt":"Bound on {date}","wechat.where":"Links you send to the WeCom account appear in Plugins/wechat-helper in your vault, usually within a minute.","wechat.notEligible":"Your current membership tier cannot use WeChat Helper.","wechat.disabled":"WeChat Helper is not available yet.","wechat.code":"Binding code","wechat.contact":"First add {contact} in WeChat","wechat.contactUnknown":"First add the Forsion WeCom account in WeChat","wechat.getCode":"Get binding code","wechat.newCode":"New code","wechat.copy":"Copy binding code","wechat.send":"{contact}, then send it these digits.","wechat.waiting":"Waiting for binding\u2026 The code is valid until {time}. WeCom won't reply; this updates once you are bound.","wechat.unbind":"Unbind","wechat.unbindConfirm":"Confirm unbind","address.label":"Page address","address.change":"Change","address.title":"Change your page address","address.desc":"Everything you publish lives under this address. After a change, the old address keeps redirecting to the new one and nobody else can take it.","address.now":"Now","address.new":"New","address.rule":'3\u201330 characters: lowercase letters, digits or "-"',"address.checking":"Checking\u2026","address.ok":"Available","address.bad":"Not available","address.same":"This is already your address","address.freeOne":"This is your one free change","address.freeN":"This one is free (you have {n} free changes)","address.freeAfter":"After that, an address rename card","address.card":"Uses 1 address rename card","address.cardHave":"You have {n}","address.need":"Changing needs 1 address rename card. You have none","address.price":"{price} points \xB7 balance {balance}","address.soldout":"Address rename cards are not on sale right now","address.cooldown":"Address changes need {days} days in between","address.cooldownUntil":"You can change it again after {date}","address.go":"Change address","address.goCard":"Use a card","address.goBuy":"Buy one for {price} points","address.shop":"Open the shop","address.done":"Your page address is now {url}","address.loadFailed":"Could not load your address right now.","address.errTaken":"Someone just took this address. Try another one.","address.errNeedCard":"No free changes left. Changing needs an address rename card.","address.errCooldown":"Not yet: you can change it again after {date}.","address.errPoints":"Not enough points for the card.","address.errBought":"The card is in your backpack, but the address was not changed: {reason}","address.errSoldout":"Address rename cards were just taken off sale.","address.errLimit":"You have reached the purchase limit for address rename cards.","address.errUnknown":"Could not confirm whether the address changed. Refresh in a moment to check.","backpack.addressCard":"Address rename card","backpack.addressCard.desc":"Once your free changes are used up, each change of your page address takes one card. The old address keeps redirecting and nobody else can take it.","backpack.addressCard.use":"Change address","member.title":"Membership","member.desc":"Your tier, plan and expiry date","member.upgrade":"Upgrade membership","member.renew":"Renew","member.freeName":"Free plan","member.freeHint":"Upgrade to get more AI quota","member.expires":"Expires {date}","member.noExpiry":"No expiry","member.loadFailed":"Couldn't load your membership.","session.title":"Sign-in","session.desc":"Manage your sign-in on this device","local.title":"Accounts on this computer","local.desc":"Switch between accounts you've signed in with","local.current":"Current","local.switch":"Switch","local.add":"Sign in to another account","local.signOut":"Sign out","local.empty":"No saved accounts yet","local.loadFailed":"Couldn't read the account list","diag.title":"Diagnostic data","diag.desc":"Helps us troubleshoot problems and improve Forsion. Off by default.","diag.enable":"Upload diagnostic data","diag.enableDesc":"When this is on, this computer periodically uploads a snapshot of its Forsion setup to your Forsion account, where the Forsion team can view it. The Forsion team sets how often, once a day by default. You can turn it off at any time.","diag.collected":"What's uploaded","diag.item.app":"App and system versions, this computer's name, and its free memory and disk space","diag.item.settings":"Your model and voice choices, the switches and numeric values in background agent and plugin settings, and the names and on/off state of MCP servers and message channels","diag.item.agents":"Agent and team configuration (options such as name and model; descriptions and prompts are recorded by length only, and their text falls under the personas, memory and evolution switch below)","diag.item.plugins":"Names and versions of installed plugins, skills, themes and Spaces","diag.item.runs":"Run records from the last 7 days: each run's status and error reason, usage and timing of model calls and tools (no conversation text, and nothing those tools read or wrote), and the engine's recent log output","diag.item.sync":"Cloud sync status: which categories your sync rules cover, how many files recent sync rounds uploaded, downloaded, deleted or saved as conflict copies, and why syncing failed (paths are masked; no file names or file contents)","diag.notCollected":"Never uploaded: the sign-in credentials and API keys saved on this computer, your note files, agent libraries, or plugin data.","diag.sessions":"Include conversations","diag.sessionsDesc":"Conversations on this computer: the text of your messages and the agent's replies, the agent's reasoning and the names of the tools it used, including the background work of team members, discussions and delegated tasks. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. What those tools read or wrote and the attachments themselves are left out; file names that appear in messages, and anything the agent repeated from your notes or files in its replies, are included. Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.memory":"Include agent personas, memory and evolution records","diag.memoryDesc":"Each agent's persona (including the description and developer instructions in its configuration), and what the agent has built up on its own: its memory and the memory candidates it hasn't consolidated yet, its evolution record, its collaboration notes for you, the last 7 days of its logs and memory-consolidation activity, and project memory; plus your teams' charters and your user profile. These are the instructions you wrote for your agents and teams, and the facts they noted about you and your work from conversations. Each upload carries their current content (very long ones are cut short). Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.activity":"Include activity log","diag.activityDesc":"Your activity records, which include the first few dozen characters of conversations and the names of note files. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. If you'd rather not share them, turn this off before you turn uploads on.","diag.last":"Last upload: {time}","diag.noUpload":"Nothing uploaded yet","diag.freq.hour":"every hour","diag.freq.hours":"every {n} hours","diag.freq.day":"once a day","diag.freq.days":"every {n} days","diag.freq.manual":"only when the Forsion team requests it","diag.retention":"The cloud keeps this computer's snapshots from the last {n} days. Turning this off stops uploads; snapshots already uploaded stay in the cloud. To have them deleted, let us know under Feedback.","page.privacy":"Privacy and data","privacy.tab":"Help improve","privacy.unavailable":"This version of Forsion does not support helping improve Forsion. Update Forsion and try again.","privacy.needUpdate":"This version of Forsion does not send this data yet. It takes effect after you update Forsion.","privacy.devBuild":"Development builds never send any data.","privacy.signInFirst":"Sign in to turn this on. Nothing is sent while you are signed out.","privacy.improve.title":"Help improve Forsion","privacy.improve.desc":"Sends metadata only, so we can find bugs and slow spots. It only sends while you are signed in to Forsion, and it is not linked to your account.","privacy.improve.switch":"Send crash reports and usage statistics","privacy.improve.switchHint":"Turning this off stops sending right away and discards anything still queued on this device.","privacy.policyLink":"See the Privacy Policy for what is collected and how long it is kept","privacy.sent.title":"Sent in the last 7 days","privacy.sent.hint":"A copy stays on this device so you can read every event.","privacy.sent.last":"A copy stays on this device so you can read every event. Last sent: {time}","privacy.sent.view":"View","privacy.sent.empty":"Nothing has been sent in the last 7 days.","privacy.delete.title":"Delete sent data","privacy.delete.hint":"Removes every record for this device's install ID from our servers and issues a new ID.","privacy.delete.button":"Delete","privacy.delete.confirm":"Confirm delete","privacy.delete.done":"Deleted. This device now has a new install ID.","privacy.delete.failed":"Could not delete: {reason}","privacy.installId":"Install ID {id} \xB7 not linked to your account","diag.uploadNow":"Upload now","diag.uploaded":"Uploaded","diag.failed":"Upload failed: {reason}","quota.ai.title":"AI quota","quota.ai.desc":"What's left today and this week; when it runs out, use a quota reset card or continue with points","quota.resetDaily":"Resets daily at 0:00 (Beijing time)","quota.resetWeekly":"Resets {date} at 0:00 (Beijing time)","card.title":"Quota reset card","card.desc":"Restores today's and this week's AI quota to 100%","card.owned":"You have {n}","card.use":"Use one","card.useConfirm":"Confirm","card.used":"Used 1 quota reset card","card.left":"{n} left","card.noneHint":"You have no quota reset cards left. They come from invitations, achievements and event rewards.","fallback.title":"Continue with points when quota runs out","fallback.desc":"When on, usage beyond your quota is paid from your points balance. Background tasks never use points.","fallback.balance":"Points balance {n}","fallback.pricing":"For a 1\xD7 model, each million tokens costs {input} points for input, {output} for output and {cached} for cache hits. An N\xD7 model costs about N times as much; each model's own pricing applies.","fallback.unknown":"Status unknown. Try again","quota.out.cardOrPoints":"Your AI quota is used up. Use a reset card to restore it, or turn on Continue with points below.","quota.out.points":"Your AI quota is used up. Turn on Continue with points below to keep going.","quota.out.cardOrTopUp":"Your AI quota is used up. Use a reset card to restore it, or buy points and turn on Continue with points.","quota.out.topUp":"Your AI quota is used up. Buy points, then turn on Continue with points to keep going.","quota.out.card":"Your AI quota is used up. Use a reset card to restore it.","quota.out.usingPoints":"Your AI quota is used up. Continuing with points.","quota.out.pointsGone":"Your AI quota and points are both used up. Buy points or upgrade your plan to continue.","err.pointsFallbackUnavailable":"Not available right now. Try again later","member.modelsAll":"All models available","member.modelsCap":"Models up to {cap}\xD7 rate","points.title":"Points","points.desc":"Redeem items in the Store, or keep using AI after your quota runs out","points.balance":"Balance","points.balanceFailed":"Couldn't load your balance","points.recharge":"Buy points","bg.title":"Background quota","bg.desc":"Used by Muse and automations, counted separately from your AI quota","bg.autoMain":"Continue with AI quota when used up","bg.autoMainDesc":"When off, Muse and automations pause once the background quota runs out","bg.convert":"Move from AI quota","bg.convertDesc":"Moves a share of your AI quota limit, valid for the current period","bg.convertConfirm":"Move {pct}%","bg.converted":"Moved {pct}% from your AI quota","invite.title":"Invites & codes","invite.desc":"Invite friends to join, or redeem a code you received","invite.myCode":"My invite code","invite.count":"{n} invited","invite.copyCode":"Copy code","invite.copyLink":"Copy invite link","invite.loadFailed":"Couldn't load your invite code","invite.claim":"Enter an invite code","invite.claimDesc":"Within 7 days of signing up, you can enter a friend's invite code","invite.claimPlaceholder":"Friend's invite code","invite.claimSubmit":"Submit","invite.claimed":"Invite code applied","redeem.title":"Redemption code","redeem.desc":"Redeem points, membership or other rewards","redeem.placeholder":"Enter a code","redeem.submit":"Redeem","redeem.success":"Redeemed","redeem.successWith":"Redeemed: {what}","redeem.gotPoints":"{n} points","redeem.gotMembership":"membership","sec.methods.title":"Sign-in methods","sec.methods.desc":"Your phone and email can be used to sign in and reset your password","sec.bind":"Link","sec.change":"Change","sec.phone":"Phone number","sec.email":"Email address","sec.newPhone":"New phone number","sec.newEmail":"New email address","sec.phonePlaceholder":"Mainland China numbers as is; others with +country code","sec.emailPlaceholder":"name@example.com","sec.code":"Verification code","sec.codePlaceholder":"Enter the code","sec.sendCode":"Send code","sec.resendIn":"Resend in {s}s","sec.codeSent":"Code sent","sec.bindSubmit":"Link","sec.phoneBound":"Phone linked","sec.emailBound":"Email linked","sec.devices.title":"Signed-in devices","sec.devices.desc":"If you think someone else is using your account, sign out on every device","sec.logoutAll":"Sign out everywhere","sec.logoutAllDesc":"Including this device: every device has to sign in again","sec.logoutAllConfirm":"Confirm sign out everywhere","sec.logoutAllDone":"Signed out everywhere","pw.title":"Password","pw.desc":"{min}\u2013{max} characters, with a lowercase letter, an uppercase letter and a special character, and no spaces","pw.change":"Change password","pw.modeLabel":"How to change it","pw.mode.current":"With current password","pw.mode.code":"With a verification code","pw.current":"Current password","pw.currentRequired":"Enter your current password","pw.new":"New password","pw.confirm":"Confirm new password","pw.mismatch":"The new passwords don't match","pw.submit":"Change password","pw.submitReset":"Set new password","pw.changed":"Password updated","pw.noPasswordYet":"This account doesn't have a password yet. Set one with a verification code instead.","pw.codeNeedsContact":"Link a phone or email first to set a password with a verification code.","pw.via":"Send the code to","pw.codeTo":"The code goes to {target}","pw.rulesLabel":"Password rules","pw.req.length":"{min}\u2013{max} characters","pw.req.lower":"A lowercase letter","pw.req.upper":"An uppercase letter","pw.req.special":"A special character","pw.req.space":"No spaces","pw.rule.format":"Invalid password","pw.rule.min":"Password must be at least 8 characters","pw.rule.max":"Password can't be longer than 64 characters","pw.rule.space":"Password can't contain spaces","pw.rule.lower":"Password needs a lowercase letter","pw.rule.upper":"Password needs an uppercase letter","pw.rule.special":"Password needs a special character","del.title":"Delete account","del.desc":"Permanently delete your account and all its data. This can't be undone","del.start":"Delete account","del.warn":"Deleting your account removes your account, points, membership, cloud storage and all other data for good.","del.methodLabel":"Verify with","del.byCode":"Verification code","del.byPassword":"Password","del.codeLabel":"Code sent to {target}","del.passwordLabel":"Account password","del.submit":"Delete account","del.confirm":"Delete permanently","del.done":"Account deleted","usage.overview.title":"Overview","usage.overview.desc":"Requests and AI quota used in the selected period","usage.range":"Time range","usage.days":"{n} days","usage.requests":"Requests","usage.successRate":"Success rate","usage.consumption":"AI quota used","usage.ofToday":"Of your daily limit","usage.unlimitedNote":"Your AI quota is unlimited, so usage isn't shown as a percentage.","usage.noLimitNote":"Your daily limit is 0 or unavailable right now, so usage isn't shown as a percentage.","usage.byModel.title":"By model","usage.byModel.desc":"Requests and quota used per model","usage.byApp.title":"By app","usage.byApp.desc":"Requests and quota used per app","usage.col.model":"Model","usage.col.app":"App","usage.col.requests":"Requests","usage.col.consumption":"Quota used","usage.empty":"No usage in this period","usage.appUnknown":"Other","usage.recent.title":"Recent usage","usage.recent.desc":"Each call as a share of your daily limit","usage.recentEmpty":"No usage yet","usage.failed":"Failed","usage.shown":"Showing {shown} of {total}","fb.list.title":"My feedback","fb.list.desc":"Issues and suggestions you've sent; replies show up here","fb.new":"New feedback","fb.empty":"No feedback yet","fb.untitled":"Untitled feedback","fb.unread":"New reply","fb.shown":"Showing {n}","fb.submitted":"Sent. We'll reply as soon as we can","fb.descLabel":"Describe the issue or suggestion","fb.descPlaceholder":"What happened, and what did you expect?","fb.imagesHint":"Attach up to {n} screenshots (5 MB each). You can paste or drop them here.","fb.addImages":"Add screenshots","fb.removeImage":"Remove this image","fb.submit":"Send","fb.back":"Back to list","fb.you":"You","fb.support":"Forsion team","fb.attachment":"Attachment","fb.imagePreview":"View image","fb.closedNote":"This ticket is closed and can't take replies. Send new feedback for a new issue.","fb.replyPlaceholder":"Reply\u2026","fb.replySend":"Send reply","fb.replySent":"Reply sent","fb.status.open":"Open","fb.status.in_progress":"In progress","fb.status.resolved":"Resolved","fb.status.closed":"Closed","err.accountGone":"This account is signed out. Sign in again","err.adminCannotDelete":"Admin accounts can't be deleted here","err.avatarInvalid":"Couldn't read this image. Try another one","err.avatarTooLarge":"This image is too large. Try a smaller one","err.backgroundUnavailable":"Background quota is unavailable right now","err.captcha":"You need to finish a verification check in your browser","err.codeCooldown":"Too many codes requested. Try again shortly","err.codeInvalid":"The code is wrong or has expired","err.codeRequired":"Enter the verification code","err.codeSendFailed":"Couldn't send the code. Try again later","err.currentPasswordWrong":"Your current password is incorrect","err.deleteTargetInvalid":"Codes can only go to the phone or email linked to your account","err.deleteVerifyFailed":"Verification failed, so your account wasn't deleted","err.emailInUse":"This email is already used by another account","err.emailInvalid":"Enter a valid email address","err.featureDisabled":"This feature is turned off for now","err.feedbackEmpty":"Describe the issue or suggestion first","err.feedbackTooLong":"The description is too long (10,000 characters max)","err.generic":"That didn't work. Try again later","err.imageRead":"Couldn't read the image","err.imageTooLarge":"Each image must be 5 MB or less","err.imageType":"Only images can be added","err.insufficientMainQuota":"Your AI quota is used up, so there's nothing to move","err.insufficientPoints":"Not enough points","err.invalidInviteCode":"This invite code is invalid or has expired","err.inviteAlreadyUsed":"You've already used an invite code","err.inviteEmpty":"Enter an invite code","err.inviteOwnCode":"You can't use your own invite code","err.inviteWindowExpired":"The 7-day window after sign-up has passed","err.loginCodeExpired":"The sign-in code expired. Sign in again","err.loginInProgress":"A sign-in is already in progress","err.loginTimeout":"Sign-in timed out. Try again","err.loginUnsupported":"This cloud doesn't support desktop sign-in","err.network":"Network error. Check your connection and try again","err.noCloudUrl":"Set the cloud address under Connection first","err.noResetCard":"You have no quota reset cards","err.openFailed":"Couldn't open the browser","err.passwordRequired":"Enter your current and new password","err.phoneInUse":"This phone number is already used by another account","err.phoneInvalid":"Enter a valid phone number (with +country code outside mainland China)","err.redeemEmpty":"Enter a code","err.redeemExpired":"This code has expired","err.redeemInactive":"This code is no longer active","err.redeemNotFound":"This code doesn't exist","err.redeemUsedUp":"This code has been used up","err.redeemUserLimit":"You've already redeemed this code","err.replyEmpty":"Write a reply first","err.replyTooLong":"The reply is too long (10,000 characters max)","err.server":"Server error ({status}). Try again later","err.session":"You've been signed out. Sign in again","err.signedOut":"Sign in to Forsion first","err.targetInvalid":"Enter a valid phone number or email","err.ticketNotFound":"This feedback doesn't exist or was deleted","err.webPageGone":"This page doesn't exist or was taken down","err.listingGone":"This page has no store listing","err.listingSummary":"Add a store summary (up to 300 characters)","err.tooFrequent":"Too many attempts. Try again shortly","err.tooManyImages":"You can add up to 5 images","err.unavailable":"This version of Forsion can't do that yet. Update Forsion","profile.unsupported":"This server doesn't have profiles yet","profile.state.private":"Only you can see this","profile.state.public":"Public","profile.state.privateDesc":"Once public, anyone with the address can see your profile without signing in","profile.linkUnavailable":"Public link unavailable","profile.decorate":"Decorate","profile.publish":"Make public","profile.makePrivate":"Make private","profile.copyLink":"Copy link","profile.openPublic":"Open public profile in browser","profile.nowPublic":"Your profile is now public","profile.nowPrivate":"Your profile is private. The public address no longer opens","profile.bio":"Bio","profile.bioPlaceholder":"Add a short bio","profile.linkAdd":"Add a link","profile.linkRemove":"Remove link","profile.linkInvalid":"Links must start with http:// or https://, or be a plain domain","profile.joined":"Joined {date}","profile.stat.tokens":"Total tokens","profile.stat.activeDays":"Active days","profile.stat.longest":"Longest streak","profile.stat.current":"Current streak","profile.stat.installs":"Work installs","profile.unit.days":"d","profile.works":"Featured works","profile.worksPick":"Choose","profile.worksEmpty":"No published works yet. Publish to the store or as a web app, and they can go here.","profile.worksNone":"Nothing to feature yet. Works appear here once they are in the store or published as a web app.","profile.worksPicked":"{n} of {max} selected","profile.worksAuto":"With none selected, the most installed ones are shown","profile.goSubmit":"Submit a work","profile.workInstalls":"{n} installs","profile.workVisits":"{n} visits","profile.work.skill":"Skill","profile.work.agent":"Agent","profile.work.plugin":"Plugin","profile.work.space":"Space","profile.work.theme":"Theme","profile.work.note":"Notes plugin","profile.work.webapp":"Web app","profile.activity":"Activity","profile.activityDays":"Active on {n} days in the past year","profile.less":"Less","profile.more":"More","profile.badges":"Badges","profile.badgesEmpty":"No badges yet. Streaks, published works and invites all earn one.","profile.badge.early":"Early user","profile.badge.streak":"30-day streak","profile.badge.author":"Author","profile.badge.inviter":"Top inviter","profile.badge.event":"Event keepsake","profile.badgeSub.early":"Joined in {value}","profile.badgeSub.streak":"Longest streak: {value} days","profile.badgeSub.author":"{value} published works","profile.badgeSub.inviter":"Invited {value} friends","profile.badgeSub.event":"Took part in a Forsion event{value}","profile.insights":"Insights","profile.insightsEmpty":"Not enough usage yet. Check back in a few days.","profile.insightModel":"Most used model","profile.insightHours":"Most active hours","profile.deco.skin":"Public page color scheme","profile.deco.mode":"Public page appearance","profile.deco.publicHint":"These two only set what visitors see on the public page. Here the profile follows Forsion's current theme.","profile.deco.cover":"Cover","profile.deco.frame":"Avatar frame","profile.deco.modules":"Sections","profile.skin.cream":"Classic","profile.skin.coral":"Coral","profile.skin.teal":"Teal","profile.skin.lavender":"Lavender","profile.mode.auto":"Auto","profile.mode.light":"Light","profile.mode.dark":"Dark","profile.cover.none":"None","profile.cover.mist":"Mist","profile.cover.contour":"Contour","profile.cover.dots":"Dots","profile.frame.none":"None","profile.frame.ring":"Ring","profile.frame.pro":"Member ring","profile.frameProHint":"The member ring is for paid members.","profile.col.show":"Show","profile.col.public":"Public","profile.moveUp":"Move up","profile.moveDown":"Move down","profile.modulesHint":'"Show" decides whether a section is on your profile. "Public" decides whether visitors see it, once your profile is public.',"profile.mod.stats":"Stats","profile.mod.works":"Works","profile.mod.activity":"Activity","profile.mod.badges":"Badges","profile.mod.insights":"Insights","profile.modDesc.stats":"Total tokens, active days, streaks and installs of your works","profile.modDesc.works":"Works you have published, up to 6","profile.modDesc.activity":"Which days you were active in the past year (shades only, no numbers)","profile.modDesc.badges":"Join year, streaks, publishing, invites and events","profile.modDesc.insights":"Your most used model and most active hours","profile.publishDesc":"Once public, anyone with this address can see your profile without signing in. You decide section by section what visitors see.","profile.publishNever":"Your avatar, nickname, username, bio and links become public too. Your email, phone number, membership expiry, points and quota never appear on your profile.","profile.publishConfirm":"Make public","profile.blocked.machineUsername":"Your current username was generated by the system and contains part of your phone number or email, so making it public would expose that. Change your username on the Account page of the web account center first (each account can do this once), then come back.","profile.blocked.publishBlocked":"An administrator has stopped this profile from being public. Contact us through Feedback if you have questions.","profile.goRename":"Change username","profile.invalid":"This couldn't be saved. Check it and try again","guide.title":"Guide","guide.readOnly":"Read-only","guide.more":"More","guide.unlockAll":"Unlock all","guide.relock":"Unlock level by level","guide.reminders":"Guide reminders","guide.spotlight":"On-screen hints","guide.spotStep":"Step {n} of {total}","guide.figure":"Diagram","guide.openAchievements":"Open achievements","guide.tasks":"Tasks in this chapter","guide.go":"Take me there","guide.desktopOnly":"Do it on your computer","guide.taskDone":"Done","guide.askTangu":"Ask Tangu","guide.progress":"Progress","guide.justUnlocked":"Just unlocked","guide.lockedHint":"Locked","guide.whatsNew":"What's new in {version}","guide.level.lv1":"Lv.1 Getting started","guide.level.lv2":"Lv.2 Finding your way","guide.level.lv3":"Lv.3 Making it yours","guide.level.lv4":"Lv.4 Going further","guide.locked.title":"This chapter is still locked","guide.locked.body":"Finish the tasks in {level} to read the rest.","guide.locked.left":"Still to do:","guide.locked.hint":"Been around a while? Unlock everything from the \xB7\xB7\xB7 menu.","guide.levelProgress":"This level: {done}/{total}","guide.next":"Next level","guide.allDone":"All done","guide.allDoneBody":"You've done every task in the guide. Come back any time.","guide.review":"Look back","guide.ask.hint":'Questions about "{chapter}"? Ask Tangu opens a new chat with this chapter attached.',"guide.ask.placeholder":"What would you like to know?","guide.ask.send":"Start a chat","guide.ask.prompt":`I'm reading the "{chapter}" chapter of the Forsion guide; it's attached below. {question}`,"guide.ask.unavailable":"Chat isn't available here","guide.ask.chatTitle":"Guide Q&A","guide.companion.back":"Back to the guide","guide.companion.close":"Close","guide.toast.taskDone":"Done: {task}","guide.letter.levelTitle":"{level} unlocked: try these next","guide.letter.levelBody":'You finished the previous level, so these chapters are open now. Every task has a "Take me there" button.',"guide.letter.versionTitle":"{n} new things to try in {version}","guide.letter.versionBody":"New in this version, ready to try:","guide.letter.open":"Open the guide","guide.status.done":"Done","guide.cmd.open":"Open the guide","penzor.title":"Penzor Cloud","penzor.overview":"Overview","penzor.places":"Places","penzor.details":"Details","penzor.ledger.sync":"Vault sync","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"App files","penzor.ledger.exports":"Exports","penzor.trash":"Trash","penzor.items":"{n} items","penzor.total.sub":"Stored in Forsion Cloud \xB7 updated {time}","penzor.justNow":"just now","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} vaults \xB7 last write {time}","penzor.card.syncSubNone":"{n} vaults","penzor.card.syncFoot":"Files over {size} are not uploaded","penzor.card.syncWarn":"Almost full: after {max}, new files stop uploading; files already in the cloud keep syncing","penzor.card.amaSmall":"Not counted in your quota","penzor.card.amaSub":"{n} cloud vaults","penzor.card.amaFoot":"Notes and attachments on the Cloud side of Amadeus","penzor.card.appsFoot":"Trash: {n} items \xB7 {size}","penzor.card.appsWarn":"Almost full: after {max}, apps can't save new files. Trash counts too, so emptying it frees space","penzor.card.expSmall":"{n} files","penzor.card.expSub":"Latest: {name} \xB7 {time}","penzor.card.expFoot":"Files exported from apps","penzor.card.none":"Nothing yet","penzor.largest":"Largest files","penzor.col.name":"Name","penzor.col.size":"Size","penzor.col.mtime":"Modified","penzor.col.device":"Written by","penzor.col.deleted":"Deleted","penzor.col.origin":"Original location","penzor.col.app":"From","penzor.sort.mtime":"By modified","penzor.sort.size":"By size","penzor.sort.name":"By name","penzor.search":"Search file names here","penzor.sync.thisDevice":"Syncing on this device","penzor.meta.files":"{size} \xB7 {n} files","penzor.sync.last":"Last write {time} \xB7 {device}","penzor.sync.lastNoDevice":"Last write {time}","penzor.sync.devices":"{n} devices sync this vault","penzor.sync.meter":"Vault sync shares {max}; {used} used","penzor.apps.meter":"App files share {max}; {used} used (trash included)","penzor.apps.by":"Written by {app}","penzor.ama.notCounted":"Not counted in your quota","penzor.ama.open":"Open in Amadeus","penzor.hosted.open":"Manage my web pages","penzor.hosted.note":"These files belong to a published web page. Republish to change them, or take the page down in My web pages.","penzor.trash.meta":"{n} items \xB7 {size}","penzor.trash.note":"Space frees up once items are deleted permanently","penzor.trash.emptyBtn":"Empty trash","penzor.act.download":"Download","penzor.act.rename":"Rename","penzor.act.move":"Move to\u2026","penzor.act.trash":"Move to trash","penzor.act.delete":"Delete","penzor.act.restore":"Restore","penzor.act.purge":"Delete permanently","penzor.act.copyName":"Copy vault name","penzor.act.openSync":"Open sync settings","penzor.act.refresh":"Refresh","penzor.act.up":"Up one level","penzor.toast.trashed":"Moved \u201C{name}\u201D to trash","penzor.toast.restored":"Restored \u201C{name}\u201D","penzor.toast.purged":"Deleted \u201C{name}\u201D permanently","penzor.toast.emptied":"Trash emptied","penzor.toast.downloaded":"Saved to Downloads: {name}","penzor.toast.renamed":"Renamed to \u201C{name}\u201D","penzor.toast.moved":"Moved to \u201C{name}\u201D","penzor.toast.versionRestored":"Restored version {n}","penzor.toast.copied":"Vault name copied","penzor.toast.failed":"That didn't work: {reason}","penzor.confirm.purge":"Delete \u201C{name}\u201D permanently? This can't be undone.","penzor.confirm.empty":"Empty the trash? {n} items will be deleted permanently.","penzor.confirm.deleteExport":"Delete \u201C{name}\u201D? Exports have no trash, so this can't be undone.","penzor.cancel":"Cancel","penzor.side.where":"Location","penzor.side.mtime":"Modified","penzor.side.device":"Written by","penzor.side.thisDevice":"{name} (this device)","penzor.side.from":"From","penzor.side.versions":"Versions","penzor.side.versionsNone":"None","penzor.side.versionRow":"Version {n} \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"Restore this version","penzor.side.deletedAt":"Deleted","penzor.side.origin":"Original location","penzor.side.inner":"{n} more items inside come back with it","penzor.side.inTrash":"In trash \xB7 {size}","penzor.side.readonlySync":"Files in a synced vault are changed on your devices. Deleting one here would delete it on every device that syncs {vault}, so here you can only view and download.","penzor.side.readonlyAma":"Notes and attachments are changed in Amadeus. Deleting an attachment here would leave the notes that use it with missing images, so here you can only view and download.","penzor.side.exportNote":"Exports have no trash: deleting is permanent.","penzor.side.none":"Select a file to see its details","penzor.side.folder":"Folder \xB7 {n} items","penzor.side.folderPlain":"Folder","penzor.move.title":"Move to","penzor.move.root":"Top of {app}","penzor.move.here":"Move here","penzor.move.noFolders":"No folders at this level","penzor.rename.save":"Save","penzor.empty.title":"Nothing in Penzor Cloud yet","penzor.empty.lead":"These show up here once they're in the cloud:","penzor.empty.sync":"Pick Penzor Cloud as the remote service in Settings \u203A Sync, and your local vault syncs here","penzor.empty.ama":"Notes you write on the Cloud side of Amadeus","penzor.empty.apps":"Files apps save to the cloud or export","penzor.empty.openSync":"Open sync settings","penzor.out.title":"Sign in to see your Penzor Cloud","penzor.out.lead":"Penzor Cloud holds the vaults you sync to Forsion Cloud, your Amadeus Cloud notes and the files apps keep in the cloud.","penzor.out.signIn":"Sign in to Forsion","penzor.loading":"Loading\u2026","penzor.err":"Couldn't load: {reason}","penzor.folderEmpty":"No files here","penzor.noMatch":"No file names contain \u201C{q}\u201D","penzor.cmd.open":"Open Penzor Cloud","penzor.unreachable":"Can\u2019t reach Forsion Cloud. Try again later","penzor.toast.emptyPartial":"{n} items in the trash couldn\u2019t be deleted","penzor.sort.deleted":"By deleted","penzor.side.versionsN":"{n}","penzor.drive":"My drive","penzor.drive.meta":"Counts toward the {max} for app files","penzor.drive.empty":"Nothing here yet. Drag files in, or click Upload.","penzor.act.upload":"Upload","penzor.act.uploadMore":"More upload options","penzor.act.uploadFiles":"Upload files\u2026","penzor.act.uploadFolder":"Upload folder\u2026","penzor.act.uploadHere":"Upload here\u2026","penzor.act.newFolder":"New folder","penzor.act.clearSel":"Clear selection","penzor.newFolder.default":"New folder","penzor.sel.bar":"{n} selected \xB7 {size}","penzor.sel.title":"{n} selected","penzor.sel.sub":"{size} \xB7 {files} files","penzor.sel.subDirs":"{size} \xB7 {files} files, {dirs} folders","penzor.sel.download":"Download {n}","penzor.sel.saveTo":"Saves to","penzor.sel.saveToValue":"Downloads / {folder}","penzor.sel.noDirs":"Folders can\u2019t be downloaded yet; only the selected files will be.","penzor.download.folder":"Penzor Cloud {date}","penzor.drop.to":"Drop to upload to \u201C{place}\u201D","penzor.tx.busy":"Transferring {n}","penzor.tx.allDone":"All done","penzor.tx.failedN":"{n} didn\u2019t finish","penzor.tx.counts":"{up} up \xB7 {down} down","penzor.tx.eta":"about {eta} left","penzor.tx.doneN":"{n} finished","penzor.tx.restDone":"The other {n} finished","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"Queued","penzor.tx.paused":"Paused \xB7 resumes from the start","penzor.tx.uploaded":"Uploaded \xB7 {time}","penzor.tx.downloaded":"Downloaded \xB7 {time}","penzor.tx.canceled":"Canceled","penzor.tx.left":"{eta} left","penzor.tx.sec":"{n}s","penzor.tx.min":"{n} min","penzor.tx.pause":"Pause","penzor.tx.resume":"Resume","penzor.tx.cancel":"Cancel","penzor.tx.retry":"Retry","penzor.tx.remove":"Remove","penzor.tx.locate":"Show","penzor.tx.reveal":"Show in folder","penzor.tx.pauseAll":"Pause all","penzor.tx.resumeAll":"Resume all","penzor.tx.retryAll":"Retry all","penzor.tx.clearDone":"Clear finished","penzor.tx.clear":"Clear","penzor.tx.collapse":"Collapse","penzor.tx.expand":"Show transfers","penzor.tx.quota":"Not enough space: {size} short","penzor.tx.quotaSub":"Nothing in this batch was started","penzor.tx.freeSpace":"Free up space in Trash","penzor.err.too_large":"Over the 50 MB per-file limit ({size}); can\u2019t upload it yet","penzor.err.quota":"Not enough cloud space","penzor.err.network":"Connection lost at {pct}%","penzor.err.account_changed":"You switched accounts, so this one stopped","penzor.err.download_unavailable":"This host cannot save downloads yet. Update Forsion","penzor.err.download_failed":"The file was not saved. Try downloading it again","penzor.err.not_signed_in":"Not signed in","penzor.err.gone":"The file is no longer on this device","penzor.err.popup_blocked":"Your browser blocked the new tab. Allow pop-ups for this site and try again","penzor.err.changed":"The file changed while uploading. Try again","penzor.err.storage_unavailable":"Cloud storage is unavailable right now","penzor.err.other":"Didn\u2019t finish ({code})","penzor.err.too_many":"Up to {n} files at a time. Add them in smaller batches","penzor.toast.upDoneOne":"Uploaded \u201C{name}\u201D","penzor.toast.upDoneMany":"Uploaded {n} files","penzor.toast.downDoneMany":"Downloaded {n} files to Downloads","penzor.toast.txFailed":"{n} transfers didn\u2019t finish. Open Penzor Cloud to check","penzor.toast.folderExists":"There\u2019s already a folder called \u201C{name}\u201D","penzor.toast.trashedN":"Moved {n} items to the trash","penzor.toast.movedN":"Moved {n} items to \u201C{name}\u201D","penzor.toast.batchPartial":"{n} items didn\u2019t go through","penzor.sync.title":"Sync","penzor.sync.onN":"{n} on","penzor.sync.allOff":"All off","penzor.sync.waiting":"Waiting for you","penzor.sync.badgeWaiting":"{n} on \xB7 1 waiting for you","penzor.sync.running":"Syncing {pct}%","penzor.sync.runningPlain":"Syncing","penzor.sync.metaDevice":"This computer: {name}","penzor.sync.metaLast":"Last synced {time}","penzor.sync.metaNever":"Not synced yet","penzor.sync.every":"Every {n} min","penzor.sync.everyHours":"Every {n} h","penzor.sync.manual":"Manual","penzor.sync.onStart":"once at startup","penzor.sync.minAgo":"{n} min ago","penzor.sync.hoursAgo":"{n} h ago","penzor.sync.notesNamed":"Notes vault \u201C{name}\u201D","penzor.sync.notesPlain":"This computer\u2019s notes vault","penzor.sync.notesDesc":"The whole local vault, kept the same on your other computers","penzor.sync.agents":"Agents & memory","penzor.sync.agentsDesc":"Your agents\u2019 memory, logs, skills and working notes, plus your profile and default calendar","penzor.sync.conflictsN":"Conflict copies: {n}","penzor.sync.conflictsHint":"Files changed on both sides are kept twice: the other version is saved as a copy with \u201Cconflict\u201D in its name, in that agent\u2019s folder (or your profile folder)","penzor.sync.pluginsPending":"Changes not uploaded yet: {n} plugins","penzor.sync.agentsN":"Agents: {n}","penzor.sync.plugins":"Plugin data","penzor.sync.pluginsDesc":"Settings and data your plugins keep","penzor.sync.pluginsN":"Plugins: {n}","penzor.sync.off":"Off","penzor.sync.done":"Synced","penzor.sync.doneSize":"Synced \xB7 {size}","penzor.sync.firstPending":"Waiting for the first sync","penzor.sync.failed":"Last sync failed","penzor.sync.overQuota":"Over the limit, some files not uploaded","penzor.sync.to":"Syncing to {name}","penzor.sync.toFolder":"Syncing to a local folder","penzor.sync.decideAbove":"Choose in the card above","penzor.sync.kvSchedule":"Schedule","penzor.sync.kvDirection":"Direction","penzor.sync.kvSkipped":"Not uploaded","penzor.sync.kvWhere":"In the cloud","penzor.sync.change":"Change","penzor.sync.open":"Open","penzor.sync.dir.both":"Both ways","penzor.sync.dir.push":"Upload only","penzor.sync.dir.pull":"Download only","penzor.sync.skippedN":"{n} files over {size}","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"Devices syncing","penzor.sync.thisOne":"This computer","penzor.sync.lastWrite":"Last write {time}","penzor.sync.noDevices":"No devices are syncing yet","penzor.sync.phoneTitle":"What your phone and the web see","penzor.sync.phoneTip":"Your phone and the web read the cloud vault (the cloud side of Amadeus, {size}) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.phoneTipPlain":"Your phone and the web read the cloud vault (the cloud side of Amadeus) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.foot":"Schedule, direction and other storage (Dropbox / S3 / WebDAV) are in","penzor.sync.footLink":"Settings \u203A Sync","penzor.sync.askTitle":"There\u2019s already a notes vault in the cloud","penzor.sync.askCloud":"The cloud copy is from {device}: {files} files \xB7 {size}.","penzor.sync.askCloudNoDevice":"The cloud copy: {files} files \xB7 {size}.","penzor.sync.askLocal":"This computer has {local} files the cloud copy doesn\u2019t, and {conflicts} that differ.","penzor.sync.askMerge":"Merge both","penzor.sync.askCloudBtn":"Use the cloud copy","penzor.sync.askSkip":"Don\u2019t sync notes on this computer yet","penzor.sync.askExplain":"Merge keeps both sides; files that differ are saved again as a \u201C(conflict)\u201D copy. Use the cloud copy first moves this computer\u2019s differing files into a \u201C{backup}\u201D folder next to the vault, then downloads the cloud copy.","penzor.sync.askConfirm":"This computer\u2019s differing files move to \u201C{backup}\u201D first, then the cloud copy replaces them.","penzor.sync.askConfirmGo":"Move them and use the cloud copy","penzor.sync.backupName":"{name} backup before sync {date}","penzor.sync.quotaTitle":"Your notes vault is {size}, over the {max} limit of {ledger}","penzor.sync.quotaTitlePlain":"Your notes vault is over the {ledger} limit","penzor.sync.quotaBody":"Files that don\u2019t fit stay on this computer. Nothing is deleted, they just aren\u2019t uploaded, and everything else keeps syncing.","penzor.sync.quotaLarge":"Single files over {size} are never uploaded ({n}).","penzor.sync.quotaSee":"See what\u2019s not uploaded","su.title":"Store update","su.source.github":"GitHub source","su.source.npm":"npm source","su.source.zip":"ZIP upload","su.review":"In review","su.approved":"Approved","su.rejected":"Not approved","su.viaGithub":"GitHub release {tag}","su.viaNpm":"npm {version}","su.metaReview":"Submitted {time} \xB7 The result will arrive in your inbox","su.metaReviewNoTime":"The result will arrive in your inbox","su.metaApproved":"The Store now shows {version}","su.metaApprovedInfo":"The Store info is updated","su.metaRejected":"The Store keeps {version}","su.metaRejectedUnlisted":"Not listed yet","su.infoOnly":"Store info only","su.listSep":", ","su.openSubmission":"Open in Submissions","wc.title":"Web page","wc.pill.published":"Published","wc.pill.live":"Live","wc.pill.review":"Store review","wc.pill.listed":"In the Store","wc.pill.rejected":"Not accepted in the Store","wc.pill.gone":"Taken down","wc.justPublished":"Just published","wc.anyone":"Anyone with the link can open it","wc.open":"Open","wc.viewInPages":"View in My web pages","wc.manage":"Manage in My web pages","wc.total":"{n} published","wc.more":"{n} more","wc.unpublishTitle":"Take down {name}?","wc.unpublishBody":"The link stops working and the page's files are deleted from your cloud drive.","wc.unpublishAgain":"Click again to take down"},jc={zh:Rh,en:Lh},Oe=e=>e==="en"?"en":"zh";function ze(e,t,o){let r=jc[e][t]??jc.zh[t]??t;return o?r.replace(/\{(\w+)\}/g,(a,i)=>i in o?String(o[i]):a):r}var Bn=e=>(t,o)=>ze(e,t,o),ht=(e,t)=>"raw"in e?e.raw:t(e.key,e.vars);var Gc=`
|
|
70
70
|
.fx-acct { color: var(--text); }
|
|
71
71
|
.fx-acct .fx-panel > .settings-panel-head:last-child { border-bottom-color: transparent; }
|
|
72
72
|
.fx-acct .fx-panel > .fx-block + .fx-block,
|
|
@@ -346,6 +346,9 @@ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error
|
|
|
346
346
|
.fx-acct .fx-shop-key { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
|
|
347
347
|
.fx-acct .fx-shop-key > code { min-width: 0; padding: 3px 7px; overflow-wrap: anywhere; border-radius: var(--radius-sm); background: var(--overlay-light); color: var(--text); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); user-select: all; }
|
|
348
348
|
.fx-acct .fx-shop-empty { padding: 28px 18px; border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); text-align: center; }
|
|
349
|
+
/* \u79EF\u5206\u9875\u7684 1\xD7 \u53C2\u8003\u6D88\u8017:\u4E09\u884C\u8BF4\u660E\u7D27\u6328\u7740,\u4E0D\u989D\u5916\u52A0\u5361\u7247 */
|
|
350
|
+
.fx-acct .fx-shop-pricing { display: grid; gap: 4px; }
|
|
351
|
+
.fx-acct .fx-shop-pricing .fx-note { margin: 0; }
|
|
349
352
|
|
|
350
353
|
/* \u4E2A\u4EBA\u4E3B\u9875(pages/profile.tsx)\u3002\u7248\u5F0F\u7167\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7684 styles/profile.css,\u5B57\u53F7 / \u5706\u89D2\u6362\u6210\u5BBF\u4E3B token\u3002
|
|
351
354
|
* \u989C\u8272\u76F4\u63A5\u7528\u5BBF\u4E3B\u5F53\u524D\u7684\u4E3B\u9898(\u4E3B\u9898\u8272 data-skin\u3001\u80CC\u666F\u8272 data-bg\u3001\u660E\u6697\u90FD\u5728 :root \u4E0A),\u4E3B\u9875\u6CA1\u6709\u81EA\u5DF1\u7684\u4E00\u5957 token \u2014\u2014
|
|
@@ -658,7 +661,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error
|
|
|
658
661
|
.fx-acct .fx-sub-back { display: inline-flex; align-items: center; }
|
|
659
662
|
.fx-acct .fx-sub-detail { padding: 14px 15px 18px; }
|
|
660
663
|
}
|
|
661
|
-
`,
|
|
664
|
+
`,Jc=`
|
|
662
665
|
.fx-ann-backdrop { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); animation: fx-ann-fade 300ms ease-out both; }
|
|
663
666
|
.fx-ann { position: relative; display: flex; flex-direction: column; width: min(100%, 560px); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px 28px 22px; border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); text-align: left; animation: fx-ann-enter 480ms cubic-bezier(.2,.75,.15,1) both; }
|
|
664
667
|
.fx-ann:focus { outline: none; }
|
|
@@ -685,7 +688,7 @@ html[data-glass='off'] .fx-ann-backdrop { backdrop-filter: none; background: var
|
|
|
685
688
|
@media (prefers-reduced-motion: reduce) {
|
|
686
689
|
.fx-ann-backdrop, .fx-ann, .fx-ann-eyebrow, .fx-ann-title, .fx-ann-body, .fx-ann-ok { animation: none; }
|
|
687
690
|
}
|
|
688
|
-
`,
|
|
691
|
+
`,ca=`
|
|
689
692
|
:host { display: block; color: var(--text); font-family: var(--font-body, var(--font-ui)); font-size: var(--ui-font-body); line-height: 1.65; overflow-wrap: anywhere; }
|
|
690
693
|
.doc > :first-child { margin-top: 0; }
|
|
691
694
|
.doc > :last-child { margin-bottom: 0; }
|
|
@@ -709,7 +712,7 @@ img { border-radius: var(--radius-sm); }
|
|
|
709
712
|
hr { margin: 16px 0; border: 0; border-top: var(--border-width) solid var(--border); }
|
|
710
713
|
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
711
714
|
strong, b { font-weight: 650; }
|
|
712
|
-
`,
|
|
715
|
+
`,Xc=`
|
|
713
716
|
.fx-addr-backdrop { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
|
|
714
717
|
.fx-addr { display: flex; flex-direction: column; width: min(100%, 540px); max-height: calc(100dvh - 40px); overflow: auto; padding: 18px 22px 18px; border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
|
|
715
718
|
.fx-addr-head { display: flex; align-items: center; gap: 8px; }
|
|
@@ -743,7 +746,7 @@ html[data-glass='off'] .fx-addr-backdrop { backdrop-filter: none; background: co
|
|
|
743
746
|
.fx-addr-cost { flex-wrap: wrap; }
|
|
744
747
|
.fx-addr-cost em { flex-basis: 100%; text-align: left; padding-left: 23px; }
|
|
745
748
|
}
|
|
746
|
-
`;var go=e=>typeof e=="string"?e:"";function Mh(e){if(!e||typeof e!="object")return null;let t=e,o=typeof t.id=="string"?t.id.trim():typeof t.id=="number"&&Number.isFinite(t.id)?String(t.id):"",r=go(t.titleZh),a=go(t.bodyZh);return!o||!r.trim()&&!a.trim()?null:{id:o,titleZh:r,titleEn:go(t.titleEn).trim()?go(t.titleEn):null,bodyZh:a,bodyEn:go(t.bodyEn).trim()?go(t.bodyEn):null,format:t.format==="html"?"html":"markdown",publishedAt:go(t.publishedAt)||null}}function Ih(e,t){return t==="en"&&e.bodyEn?{lang:"en",title:e.titleEn??e.titleZh,body:e.bodyEn}:{lang:"zh",title:e.titleZh,body:e.bodyZh}}var Rh=new xi({gfm:!0,breaks:!0}),Lh=["script","iframe","frame","frameset","object","embed","applet","portal","form","input","textarea","select","option","button","link","meta","base","noscript"],Dh=/^(?:https?:|mailto:|#)/i;function Gc(e){return li.sanitize(e,{FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:Lh,ALLOWED_URI_REGEXP:Dh})}function Di(e,t){let o=t==="markdown"?Rh.parse(e,{async:!1}):e;return Gc(o)}var ca=null;function Ni(){if(ca===null)try{let e=Gc('<p onclick="1"><a href="javascript:void 0">a</a></p><script>1<\/script><iframe></iframe>');ca=li.isSupported&&!e.querySelector("script, iframe, [onclick], a[href]")}catch{ca=!1}return ca}function Nh(e){try{let t=new URL(String(e??"").trim());return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}}var Oh="http://www.w3.org/1999/xlink";function $n(e){let t=e.target,o=t&&typeof t.closest=="function"?t.closest("a, area"):null;if(!o||(e.preventDefault(),e.type!=="click"))return;let r=Nh(o.getAttribute("href")??o.getAttributeNS(Oh,"href"));if(r)try{Q().openExternal?.(r)?.catch(()=>{})}catch{}}function da(e){return e.shadowRoot??e.attachShadow({mode:"open"})}function Fh(e){let{ctx:t,ann:o}=e,[r,a]=_(()=>Oe(t.getLocale?.()));J(()=>{a(Oe(t.getLocale?.()));let p=t.subscribeLocale?.(m=>a(Oe(m)));return()=>{typeof p=="function"&&p()}},[t]);let i=sn(()=>Bn(r),[r]),s=Ih(o,r),l=ne(null),c=ne(null),d=ne(null),f=ne(null),u=ne(e.onClose);return u.current=e.onClose,J(()=>{let p=document.activeElement instanceof HTMLElement?document.activeElement:null;l.current?.focus();let m=h=>{if(h.key==="Escape"){h.preventDefault(),h.stopPropagation(),u.current();return}if(h.key!=="Tab")return;let y=c.current,b=d.current,w=l.current;if(!y||!b||!w)return;let k=document.activeElement;if(!k||!w.contains(k)){h.preventDefault(),(h.shiftKey?b:y).focus();return}h.shiftKey&&(k===y||k===w)?(h.preventDefault(),b.focus()):!h.shiftKey&&k===b&&(h.preventDefault(),y.focus())},g=h=>{let y=l.current;y&&h.target instanceof Node&&!y.contains(h.target)&&y.focus()};return window.addEventListener("keydown",m,!0),document.addEventListener("focusin",g,!0),()=>{window.removeEventListener("keydown",m,!0),document.removeEventListener("focusin",g,!0),p?.isConnected&&p.focus()}},[]),J(()=>{let p=f.current;if(!p)return;let m=da(p);return m.addEventListener("click",$n),m.addEventListener("auxclick",$n),()=>{m.removeEventListener("click",$n),m.removeEventListener("auxclick",$n)}},[]),J(()=>{let p=f.current;if(!p)return;let m=document.createElement("style");m.textContent=la;let g=document.createElement("div");g.className="doc",g.appendChild(Di(s.body,o.format)),da(p).replaceChildren(m,g)},[s.body,o.format]),n("div",{class:"fx-ann-backdrop",children:[n("style",{children:Wc}),n("section",{ref:l,class:"fx-ann",role:"dialog","aria-modal":"true","aria-labelledby":"fx-ann-title","aria-describedby":"fx-ann-body",tabIndex:-1,lang:s.lang==="zh"?"zh-CN":"en","data-announcement-id":o.id,children:[n("button",{ref:c,type:"button",class:"fx-ann-close","aria-label":i("ann.close"),onClick:()=>u.current(),children:n(B,{name:"x",size:16})}),n("div",{class:"fx-ann-eyebrow",children:i("ann.eyebrow")}),n("h2",{id:"fx-ann-title",class:"fx-ann-title",children:s.title}),n("div",{class:"fx-ann-body",children:n("div",{ref:f,id:"fx-ann-body",class:"fx-ann-doc"})}),n("div",{class:"fx-ann-footer",children:n("button",{ref:d,type:"button",class:"fx-ann-ok",onClick:()=>u.current(),children:i("ann.ok")})})]})]})}function Bh(e){try{return new URLSearchParams(e||"").has("window")}catch{return!1}}function $h(e=document,t=12e3){let o=e.getElementById("tangu-splash");return o?.parentNode?new Promise(r=>{let a=()=>{i.disconnect(),clearTimeout(s),r()},i=new MutationObserver(()=>{o.isConnected||a()});i.observe(o.parentNode,{childList:!0});let s=setTimeout(a,t)}):Promise.resolve()}function Jc(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!cn(o)||Bh(t.location?.search))return null;let r=0,a=!1,i=null,s=null,l=()=>{s?.done(),s=null},c=Promise.resolve(),d=(p,m)=>{let g=document.createElement("div");g.className="fx-ann-root",document.body.appendChild(g);let h=!1,y=b=>{h||(h=!0,i?.id===p.id&&(i=null),Le(null,g),g.remove(),m?.done(),b&&(c=G(`/announcements/${encodeURIComponent(p.id)}/seen`,{method:"POST"})))};i={id:p.id,finish:y},Le(n(Fh,{ctx:e,ann:p,onClose:()=>y(!0)}),g)},f=async()=>{let p=++r;await c;let m=await G("/announcements/pending");if(a||p!==r||!m.ok)return;let g=Mh(m.data?.announcement);if(!g||i||!Ni()||(await $h(),a||p!==r||i))return;let h=e.app?.queuePopup?.();if(h&&(l(),s=h,await h.ready,s===h&&(s=null),a||p!==r||i)){h.done();return}d(g,h)},u=o.onAuthChanged?.(p=>{i?.finish(!1),l(),p?.loggedIn?f():r++});return f(),{check:f,dispose(){a=!0,r++,typeof u=="function"&&u(),i?.finish(!1),l()}}}function Xc(e){return typeof e!="string"?{ok:!1,rule:"format"}:e.length<8?{ok:!1,rule:"min"}:e.length>64?{ok:!1,rule:"max"}:/\s/.test(e)?{ok:!1,rule:"space"}:/[a-z]/.test(e)?/[A-Z]/.test(e)?/[^A-Za-z0-9]/.test(e)?{ok:!0}:{ok:!1,rule:"special"}:{ok:!1,rule:"upper"}:{ok:!1,rule:"lower"}}function Kc(e){return{length:e.length>=8&&e.length<=64,lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),special:/[^A-Za-z0-9]/.test(e),space:e.length>0&&!/\s/.test(e)}}var Yc={\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E:"format","\u5BC6\u7801\u81F3\u5C11 8 \u4F4D":"min","\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D":"max",\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C:"space",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD:"lower",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD:"upper",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26:"special"};var Zc={no_reset_card:"err.noResetCard",invalid_type:"err.generic",insufficient_points:"err.insufficientPoints",insufficient_main_quota:"err.insufficientMainQuota",background_unavailable:"err.backgroundUnavailable",points_fallback_unavailable:"err.pointsFallbackUnavailable",auto_deduct_removed:"err.pointsFallbackUnavailable",invalid_percent:"err.generic",invalid_request:"err.generic",invalid_invite_code:"err.invalidInviteCode",already_used:"err.inviteAlreadyUsed",window_expired:"err.inviteWindowExpired",ITEM_NOT_FOUND:"backpack.unavailable",ITEM_NOT_ACTIVE:"backpack.unavailable",ITEM_NOT_USABLE:"backpack.notUsable",ITEM_EFFECT_UNAVAILABLE:"backpack.quotaUnavailable",FEATURE_DISABLED:"err.featureDisabled",INSUFFICIENT_POINTS:"err.insufficientPoints",OUT_OF_STOCK:"store.soldOut",LIMIT_REACHED:"store.limitReached",NOT_AVAILABLE:"store.unavailable",NOT_POINTS_PURCHASABLE:"store.unavailable",CAPTCHA_FAILED:"err.captcha",TIER_NOT_ALLOWED:"wechat.notEligible",DISABLED:"wechat.disabled",machine_username:"profile.blocked.machineUsername",publish_blocked:"profile.blocked.publishBlocked",invalid_settings:"profile.invalid"},Qc={"Current password is incorrect":"err.currentPasswordWrong","Current and new password are required":"err.passwordRequired",\u9A8C\u8BC1\u7801\u65E0\u6548\u6216\u5DF2\u8FC7\u671F:"err.codeInvalid","Invalid or expired verification code":"err.codeInvalid",\u8D26\u53F7\u6216\u9A8C\u8BC1\u7801\u9519\u8BEF:"err.codeInvalid",\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801:"err.codeRequired","Email already in use":"err.emailInUse","Phone number already in use":"err.phoneInUse","Invalid email format":"err.emailInvalid","Email is required":"err.emailInvalid","Invalid phone number format":"err.phoneInvalid","Phone number is required":"err.phoneInvalid","Invalid phone number or email format":"err.targetInvalid","Please wait before requesting another code":"err.codeCooldown","Failed to send verification code":"err.codeSendFailed","Invalid target for account deletion":"err.deleteTargetInvalid","\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u65E0\u6CD5\u6CE8\u9500\u8D26\u6237":"err.deleteVerifyFailed",\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500:"err.adminCannotDelete",\u79EF\u5206\u4F59\u989D\u4E0D\u8DB3:"err.insufficientPoints",\u6CA1\u6709\u53EF\u7528\u7684\u91CD\u7F6E\u5361:"err.noResetCard","\u4E3B\u989D\u5EA6\u5DF2\u7528\u5B8C,\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6":"err.insufficientMainQuota",\u540E\u53F0\u989D\u5EA6\u6682\u4E0D\u53EF\u7528:"err.backgroundUnavailable",\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548:"err.invalidInviteCode","\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F":"err.inviteWindowExpired",\u4F60\u5DF2\u4F7F\u7528\u8FC7\u9080\u8BF7\u7801:"err.inviteAlreadyUsed","You have already used an invite code":"err.inviteAlreadyUsed","Cannot use your own invite code":"err.inviteOwnCode","Invite code is required":"err.inviteEmpty","code is required":"err.redeemEmpty","Redemption code not found":"err.redeemNotFound","Redemption code is not active":"err.redeemInactive","Redemption code has expired":"err.redeemExpired","Redemption code has reached maximum uses":"err.redeemUsedUp","You have already used this code the maximum number of times":"err.redeemUserLimit",avatar_too_large:"err.avatarTooLarge","description is required":"err.feedbackEmpty","description too long (max 10000 chars)":"err.feedbackTooLong","content is required":"err.replyEmpty","content too long (max 10000 chars)":"err.replyTooLong","Ticket not found":"err.ticketNotFound","Too many attachments (max 5)":"err.tooManyImages","Attachment type not allowed (image / json / text only)":"err.imageType","\u4EBA\u673A\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5":"err.captcha",\u5E94\u7528\u4E0D\u5B58\u5728\u6216\u4E0D\u5C5E\u4E8E\u4F60:"err.webPageGone","\u5E94\u7528\u5DF2\u88AB\u505C\u7528\uFF0C\u65E0\u6CD5\u7533\u8BF7\u4E0A\u67B6":"web.disabledHint",\u6CA1\u6709\u5BF9\u5E94\u7684\u4E0A\u67B6\u7533\u8BF7:"err.listingGone","\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09":"err.listingSummary"},Oi={format:"pw.rule.format",min:"pw.rule.min",max:"pw.rule.max",space:"pw.rule.space",lower:"pw.rule.lower",upper:"pw.rule.upper",special:"pw.rule.special"};function Uh(e){if(e.code&&Zc[e.code])return Zc[e.code];if(e.detail){if(Qc[e.detail])return Qc[e.detail];let t=Yc[e.detail];if(t)return Oi[t];if(e.detail.startsWith("Attachment exceeds 5MB"))return"err.imageTooLarge"}return null}function bt(e){let t=Uh(e);return t?{key:t}:Fn(e)?{key:"err.signedOut"}:e.status===0?{key:"err.network"}:e.status===401?{key:"err.session"}:e.status===429?{key:"err.tooFrequent"}:e.detail?{raw:e.detail}:e.status>=500?{key:"err.server",vars:{status:e.status}}:{key:"err.generic"}}function br(e){let t=e.trim();return t?/cancelled\.?$/i.test(t)?null:t==="A sign-in is already in progress."?{key:"err.loginInProgress"}:t.startsWith("\u767B\u5F55\u8D85\u65F6")?{key:"err.loginTimeout"}:t.startsWith("\u767B\u5F55\u7801\u5DF2\u8FC7\u671F")?{key:"err.loginCodeExpired"}:t.startsWith("\u65E0\u6CD5\u8FDE\u63A5")?{key:"err.network"}:t.startsWith("\u4E91\u7AEF\u4E0D\u652F\u6301 CLI \u767B\u5F55")?{key:"err.loginUnsupported"}:t.startsWith("\u8BF7\u5148\u586B\u5199 Forsion \u4E91\u7AEF\u5730\u5740")?{key:"err.noCloudUrl"}:t.startsWith("Account is no longer signed in")?{key:"err.accountGone"}:{raw:t}:{key:"err.generic"}}var Fi=aa(null);function ie(){let e=Mi(Fi);if(!e)throw new Error("forsion-extend: page rendered outside its host root");return e}var vt=()=>ie().t;function Fe(){let e=ne(!0);return J(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ed={pending:!1,error:null,success:null,captcha:!1};function fe(){let e=Fe(),[t,o]=_(ed),r=ne(!1),a=Nt(async s=>{if(r.current)return;r.current=!0,o({pending:!0,error:null,success:null,captcha:!1});let l;try{l=await s()}catch(c){l={error:{raw:String(c?.message||c)}}}r.current=!1,e.current&&o({pending:!1,error:l?.error??null,success:l?.success??null,captcha:!!l?.captcha})},[]),i=Nt(()=>{r.current||o(ed)},[]);return{...t,run:a,clear:i}}var $e=e=>({error:bt(e),captcha:e.status===403&&e.code==="CAPTCHA_FAILED"});function td(){let[e,t]=_(0),o=ne(null);J(()=>()=>{o.current&&clearInterval(o.current)},[]);let r=Nt((i=60)=>{o.current&&clearInterval(o.current),t(i),o.current=setInterval(()=>{t(s=>s<=1?(o.current&&clearInterval(o.current),o.current=null,0):s-1)},1e3)},[]),a=Nt(()=>{o.current&&clearInterval(o.current),o.current=null,t(0)},[]);return{left:e,start:r,stop:a}}function nt(e){let[t,o]=_({state:"loading"}),r=ne(0),a=ne(e);a.current=e;let i=Nt((c=!1)=>{let d=++r.current;c||o({state:"loading"}),(async()=>{let f;try{f=await a.current()}catch(u){f={ok:!1,status:0,code:null,detail:null,transport:String(u?.message||u)}}d===r.current&&(f.ok?o({state:"ready",data:f.data,gen:d}):Fn(f)?o({state:"signedOut"}):(f.status===401&&Q().authStatus?.().catch(()=>{}),o({state:"error",fail:f})))})()},[]);J(()=>{i();let c=Q().onAuthChanged?.(()=>i());return()=>{r.current++,c?.()}},[i]);let s=Nt(()=>i(),[i]),l=Nt(()=>i(!0),[i]);switch(t.state){case"ready":{let c=t.gen,d=f=>o(u=>u.state==="ready"&&u.gen===c?{...u,data:f(u.data)}:u);return{state:"ready",data:t.data,reload:l,update:d}}case"error":return{state:"error",error:bt(t.fail),retry:s};default:return t}}function ua(e){let t=String(e||"").trim();if(!t)return"";let o=t.startsWith("+")?4:3;return t.length<=o+4?`${t.slice(0,2)}***`:`${t.slice(0,o)}****${t.slice(-4)}`}function pa(e){let t=String(e||"").trim(),o=t.lastIndexOf("@");if(o<=0)return t?`${t.slice(0,1)}***`:"";let r=t.slice(0,o);return`${r.slice(0,r.length<=2?1:2)}***${t.slice(o)}`}function ho(e){let t=String(e||"").trim().toLowerCase()||"free";return t.charAt(0).toUpperCase()+t.slice(1)}var $o=(e,t)=>t==="en"&&e?.nameEn||e?.name||"",nd=(e,t)=>t==="en"&&e?.descriptionEn||e?.description||"",Hh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function od(e,t){let o=String(e||"").trim(),r,a,i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(o);if(i)r=Number(i[2]),a=Number(i[3]);else{let s=new Date(o);if(!o||Number.isNaN(s.getTime()))return null;let l=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Shanghai",month:"numeric",day:"numeric"}).formatToParts(s);r=Number(l.find(c=>c.type==="month")?.value),a=Number(l.find(c=>c.type==="day")?.value)}return!(r>=1&&r<=12)||!(a>=1&&a<=31)?null:t==="zh"?`${r}\u6708${a}\u65E5`:`${Hh[r-1]} ${a}`}var Bi=e=>e==="zh"?"zh-CN":"en-US";function rd(e){if(e==null||e==="")return null;let t=new Date(typeof e=="string"&&/^\d+$/.test(e)?Number(e):e);return Number.isNaN(t.getTime())?null:t}function Pt(e,t){let o=rd(e);return o?new Intl.DateTimeFormat(Bi(t),{year:"numeric",month:"short",day:"numeric"}).format(o):"\u2014"}function _t(e,t){let o=rd(e);return o?new Intl.DateTimeFormat(Bi(t),{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o):"\u2014"}function ze(e,t){let o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?new Intl.NumberFormat(Bi(t),{maximumFractionDigits:2}).format(o):"\u2014"}var bo=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(bo||{}),qh=[0,1],id=[1,0],sd=[2,3],ld=[3,2],Vh={L:qh,M:id,Q:sd,H:ld},Wh=/^\d*$/,jh=/^[A-Z0-9 $%*+./:-]*$/,$i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Vi=1,Wi=40,ad=3,Gh=3,fa=40,Jh=10,cd=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],dd=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],Ui=class{constructor(t,o,r,a){if(this.version=t,this.ecc=o,t<Vi||t>Wi)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let i=Array.from({length:this.size}).fill(!1);for(let l=0;l<this.size;l++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a===-1){let l=1e9;for(let c=0;c<8;c++){this.applyMask(c),this.drawFormatBits(c);let d=this.getPenaltyScore();d<l&&(a=c,l=d),this.applyMask(c)}}this.mask=a,this.applyMask(a),this.drawFormatBits(a)}size;mask;modules=[];types=[];getModule(t,o){return t>=0&&t<this.size&&o>=0&&o<this.size&&this.modules[o][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2===0,bo.Timing),this.setFunctionModule(r,6,r%2===0,bo.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),o=t.length;for(let r=0;r<o;r++)for(let a=0;a<o;a++)r===0&&a===0||r===0&&a===o-1||r===o-1&&a===0||this.drawAlignmentPattern(t[r],t[a]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let o=this.ecc[1]<<3|t,r=o;for(let i=0;i<10;i++)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,Un(a,i));this.setFunctionModule(8,7,Un(a,6)),this.setFunctionModule(8,8,Un(a,7)),this.setFunctionModule(7,8,Un(a,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,Un(a,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,Un(a,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,Un(a,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let o=this.version<<12|t;for(let r=0;r<18;r++){let a=Un(o,r),i=this.size-11+r%3,s=Math.floor(r/3);this.setFunctionModule(i,s,a),this.setFunctionModule(s,i,a)}}drawFinderPattern(t,o){for(let r=-4;r<=4;r++)for(let a=-4;a<=4;a++){let i=Math.max(Math.abs(a),Math.abs(r)),s=t+a,l=o+r;s>=0&&s<this.size&&l>=0&&l<this.size&&this.setFunctionModule(s,l,i!==2&&i!==4,bo.Position)}}drawAlignmentPattern(t,o){for(let r=-2;r<=2;r++)for(let a=-2;a<=2;a++)this.setFunctionModule(t+a,o+r,Math.max(Math.abs(a),Math.abs(r))!==1,bo.Alignment)}setFunctionModule(t,o,r,a=bo.Function){this.modules[o][t]=r,this.types[o][t]=a}addEccAndInterleave(t){let o=this.version,r=this.ecc;if(t.length!==ma(o,r))throw new RangeError("Invalid argument");let a=dd[r[0]][o],i=cd[r[0]][o],s=Math.floor(Hi(o)/8),l=a-s%a,c=Math.floor(s/a),d=[],f=ob(i);for(let p=0,m=0;p<a;p++){let g=t.slice(m,m+c-i+(p<l?0:1));m+=g.length;let h=rb(g,f);p<l&&g.push(0),d.push(g.concat(h))}let u=[];for(let p=0;p<d[0].length;p++)d.forEach((m,g)=>{(p!==c-i||g>=l)&&u.push(m[p])});return u}drawCodewords(t){if(t.length!==Math.floor(Hi(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<this.size;a++)for(let i=0;i<2;i++){let s=r-i,c=(r+1&2)===0?this.size-1-a:a;!this.types[c][s]&&o<t.length*8&&(this.modules[c][s]=Un(t[o>>>3],7-(o&7)),o++)}}}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let o=0;o<this.size;o++)for(let r=0;r<this.size;r++){let a;switch(t){case 0:a=(r+o)%2===0;break;case 1:a=o%2===0;break;case 2:a=r%3===0;break;case 3:a=(r+o)%3===0;break;case 4:a=(Math.floor(r/3)+Math.floor(o/2))%2===0;break;case 5:a=r*o%2+r*o%3===0;break;case 6:a=(r*o%2+r*o%3)%2===0;break;case 7:a=((r+o)%2+r*o%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[o][r]&&a&&(this.modules[o][r]=!this.modules[o][r])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]===s?(l++,l===5?t+=ad:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*fa),s=this.modules[i][d],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*fa}for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]===s?(l++,l===5?t+=ad:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*fa),s=this.modules[d][i],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*fa}for(let i=0;i<this.size-1;i++)for(let s=0;s<this.size-1;s++){let l=this.modules[i][s];l===this.modules[i][s+1]&&l===this.modules[i+1][s]&&l===this.modules[i+1][s+1]&&(t+=Gh)}let o=0;for(let i of this.modules)o=i.reduce((s,l)=>s+(l?1:0),o);let r=this.size*this.size,a=Math.ceil(Math.abs(o*20-r*10)/r)-1;return t+=a*Jh,t}getAlignmentPatternPositions(){if(this.version===1)return[];{let t=Math.floor(this.version/7)+2,o=this.version===32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,r=[6];for(let a=this.size-7;r.length<t;a-=o)r.splice(1,0,a);return r}}finderPenaltyCountPatterns(t){let o=t[1],r=o>0&&t[2]===o&&t[3]===o*3&&t[4]===o&&t[5]===o;return(r&&t[0]>=o*4&&t[6]>=o?1:0)+(r&&t[6]>=o*4&&t[0]>=o?1:0)}finderPenaltyTerminateAndCount(t,o,r){return t&&(this.finderPenaltyAddHistory(o,r),o=0),o+=this.size,this.finderPenaltyAddHistory(o,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,o){o[0]===0&&(t+=this.size),o.pop(),o.unshift(t)}};function Hn(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)o.push(e>>>r&1)}function Un(e,t){return(e>>>t&1)!==0}var vr=class{constructor(t,o,r){if(this.mode=t,this.numChars=o,this.bitData=r,o<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}},Xh=[1,10,12,14],Kh=[2,9,11,13],Yh=[4,8,16,16];function ud(e,t){return e[Math.floor((t+7)/17)+1]}function pd(e){let t=[];for(let o of e)Hn(o,8,t);return new vr(Yh,e.length,t)}function Zh(e){if(!fd(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let o=0;o<e.length;){let r=Math.min(e.length-o,3);Hn(Number.parseInt(e.substring(o,o+r),10),r*3+1,t),o+=r}return new vr(Xh,e.length,t)}function Qh(e){if(!md(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t=[],o;for(o=0;o+2<=e.length;o+=2){let r=$i.indexOf(e.charAt(o))*45;r+=$i.indexOf(e.charAt(o+1)),Hn(r,11,t)}return o<e.length&&Hn($i.indexOf(e.charAt(o)),6,t),new vr(Kh,e.length,t)}function eb(e){return e===""?[]:fd(e)?[Zh(e)]:md(e)?[Qh(e)]:[pd(nb(e))]}function fd(e){return Wh.test(e)}function md(e){return jh.test(e)}function tb(e,t){let o=0;for(let r of e){let a=ud(r.mode,t);if(r.numChars>=1<<a)return Number.POSITIVE_INFINITY;o+=4+a+r.bitData.length}return o}function nb(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)e.charAt(o)!=="%"?t.push(e.charCodeAt(o)):(t.push(Number.parseInt(e.substring(o+1,o+3),16)),o+=2);return t}function Hi(e){if(e<Vi||e>Wi)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let o=Math.floor(e/7)+2;t-=(25*o-10)*o-55,e>=7&&(t-=36)}return t}function ma(e,t){return Math.floor(Hi(e)/8)-cd[t[0]][e]*dd[t[0]][e]}function ob(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let o=1;for(let r=0;r<e;r++){for(let a=0;a<t.length;a++)t[a]=qi(t[a],o),a+1<t.length&&(t[a]^=t[a+1]);o=qi(o,2)}return t}function rb(e,t){let o=t.map(r=>0);for(let r of e){let a=r^o.shift();o.push(0),t.forEach((i,s)=>o[s]^=qi(i,a))}return o}function qi(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let r=7;r>=0;r--)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o}function ab(e,t,o=1,r=40,a=-1,i=!0){if(!(Vi<=o&&o<=r&&r<=Wi)||a<-1||a>7)throw new RangeError("Invalid value");let s,l;for(s=o;;s++){let u=ma(s,t)*8,p=tb(e,s);if(p<=u){l=p;break}if(s>=r)throw new RangeError("Data too long")}for(let u of[id,sd,ld])i&&l<=ma(s,u)*8&&(t=u);let c=[];for(let u of e){Hn(u.mode[0],4,c),Hn(u.numChars,ud(u.mode,s),c);for(let p of u.getData())c.push(p)}let d=ma(s,t)*8;Hn(0,Math.min(4,d-c.length),c),Hn(0,(8-c.length%8)%8,c);for(let u=236;c.length<d;u^=253)Hn(u,8,c);let f=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((u,p)=>f[p>>>3]|=u<<7-(p&7)),new Ui(s,t,f,a)}function gd(e,t){let{ecc:o="L",boostEcc:r=!1,minVersion:a=1,maxVersion:i=40,maskPattern:s=-1,border:l=1}=t||{},c=typeof e=="string"?eb(e):Array.isArray(e)?[pd(e)]:void 0;if(!c)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let d=ab(c,Vh[o],a,i,s,r),f=ib({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},l);return t?.invert&&(f.data=f.data.map(u=>u.map(p=>!p))),t?.onEncoded?.(f),f}function ib(e,t=1){if(!t)return e;let{size:o}=e,r=o+t*2;e.size=r,e.data.forEach(i=>{for(let s=0;s<t;s++)i.unshift(!1),i.push(!1)});for(let i=0;i<t;i++)e.data.unshift(Array.from({length:r},s=>!1)),e.data.push(Array.from({length:r},s=>!1));let a=bo.Border;e.types.forEach(i=>{for(let s=0;s<t;s++)i.unshift(a),i.push(a)});for(let i=0;i<t;i++)e.types.unshift(Array.from({length:r},s=>a)),e.types.push(Array.from({length:r},s=>a));return e}function Me(e){return n("section",{class:`settings-panel fx-panel${e.danger?" fx-panel--danger":""}`,"aria-label":e.label,children:[n("div",{class:`settings-panel-head${e.actions?" settings-panel-head--actions":""}`,children:[e.icon&&n("span",{class:"settings-panel-icon",children:n(B,{name:e.icon,size:16})}),n("div",{children:[n("strong",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.actions&&n("div",{class:"settings-panel-actions settings-panel-actions--wide",children:e.actions})]}),e.children]})}function We(e){return n("div",{class:`settings-control-row settings-setting-row fx-row fx-block${e.class?` ${e.class}`:""}`,children:[n("div",{class:"settings-control-copy",children:n("span",{children:[n("strong",{children:e.label}),e.desc&&n("small",{children:e.desc})]})}),e.children!==void 0&&e.children!==null&&n("div",{class:"settings-row-control fx-row-control",children:e.children})]})}function Ee(e){return n("div",{class:`fx-sub${e.class?` ${e.class}`:""}`,children:e.children})}function Qt(e){return n("button",{type:"button",role:"switch","aria-checked":e.checked,"aria-label":e.label,class:`settings-switch${e.checked?" active":""}`,disabled:e.disabled,onClick:()=>e.onChange(!e.checked),children:n("span",{})})}function q(e){let t=e.variant??"ghost",o=t==="danger-solid"?"btn sm danger fx-danger-solid":`btn sm ${t}`;return n("button",{type:e.submit?"submit":"button",class:o,disabled:e.disabled||e.pending,"aria-busy":e.pending||void 0,"aria-label":e.label,title:e.title,"data-armed":e.armed?"true":void 0,onClick:e.onClick,children:[e.pending&&n(jt,{}),e.children]})}var ga=5e3;function Gt(e){let[t,o]=_(!1),r=ne(null),a=()=>{r.current&&clearTimeout(r.current),r.current=null,o(!1)};J(()=>()=>{r.current&&clearTimeout(r.current)},[]),J(()=>{(e.pending||e.disabled)&&a()},[e.pending,e.disabled]);let i=()=>{if(!t){o(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,o(!1)},ga);return}a(),e.onConfirm()},s=e.variant??"ghost";return n(q,{variant:t?s==="danger"||s==="danger-solid"?"danger-solid":"primary":s,armed:t,pending:e.pending,disabled:e.disabled,onClick:i,children:t?e.confirmLabel:e.label})}function be(e){let t=vt(),{a:o}=e;return o.error?n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(o.error,t)}),o.captcha&&n("button",{type:"button",class:"fx-link",onClick:()=>void mo(e.captchaSection??"security"),children:[t("common.openInBrowser")," ",n(B,{name:"external",size:12})]})]}):o.success?n("div",{class:"fx-msg is-ok",role:"status",children:ht(o.success,t)}):null}function ue(e){return n("p",{class:`fx-note${e.tone?` is-${e.tone}`:""}`,children:e.children})}function wt(e){return n("div",{class:"settings-empty-row fx-block",children:e.children})}function yr(e){let t=vt(),o=e.display;return n("div",{class:`fx-quota${o.low?" is-low":""}`,children:[n("div",{class:"fx-quota-top",children:[n("span",{class:"fx-quota-label",children:e.label}),n("span",{class:"fx-quota-value",children:o.unlimited?t("common.unlimited"):o.text})]}),n("div",{class:"fx-bar",role:"progressbar","aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.pct,"aria-valuetext":o.unlimited?t("common.unlimited"):o.text,children:n("span",{style:{width:`${o.pct}%`}})}),e.note&&n("div",{class:"fx-quota-note",children:e.note})]})}function Mt(e){return n("div",{class:"seg fx-seg",role:"radiogroup","aria-label":e.label,children:e.options.map(t=>n("button",{type:"button",role:"radio","aria-checked":t.value===e.value,class:t.value===e.value?"active":"",onClick:()=>{t.value!==e.value&&e.onChange(t.value)},children:t.label}))})}async function Uo(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}function Ut(e){let t=vt(),[o,r]=_("idle"),a=ne(null);J(()=>()=>{a.current&&clearTimeout(a.current)},[]);let i=async()=>{let l=await Uo(e.text);r(l?"copied":"failed"),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r("idle"),1800)},s=o==="copied"?t("common.copied"):o==="failed"?t("common.copyFailed"):e.label;return n(L,{children:[n(q,{disabled:e.disabled||!e.text,onClick:()=>void i(),label:e.iconOnly?e.label:void 0,title:e.iconOnly?s:void 0,children:[n(B,{name:o==="copied"?"check":e.iconOnly&&o==="failed"?"alert":"copy",size:12}),!e.iconOnly&&s]}),e.iconOnly&&n("span",{class:"fx-sr-only",role:"status",children:o==="idle"?"":s})]})}function sb(e){let t=sn(()=>{try{return gd(e.value,{ecc:"M",border:2})}catch{return null}},[e.value]);if(!t)return null;let o="";t.data.forEach((a,i)=>a.forEach((s,l)=>{s&&(o+=`M${l} ${i}h1v1h-1z`)}));let r=e.size??148;return n("svg",{class:"fx-qr",width:r,height:r,viewBox:`0 0 ${t.size} ${t.size}`,"shape-rendering":"crispEdges",role:"img","aria-label":e.label,children:[n("rect",{width:t.size,height:t.size,fill:"#fff"}),n("path",{d:o,fill:"#000"})]})}function ji(e){let t=vt(),{device:o}=e;return n("div",{class:"fx-device",children:[n(sb,{value:o.url,label:t("signin.qrLabel")}),n("div",{class:"fx-device-copy",children:[n("p",{children:t("signin.deviceHint")}),o.userCode&&n("div",{class:"fx-device-code",children:[n("span",{children:t("signin.code")}),n("code",{children:o.userCode})]}),n("div",{class:"fx-inline",children:[n("button",{type:"button",class:"fx-link",onClick:()=>window.open(o.url,"_blank"),children:[t("signin.openLink")," ",n(B,{name:"external",size:12})]}),n(Ut,{text:o.url,label:t("signin.copyLink")})]})]})]})}function lt(){let e=vt(),t=fe(),[o,r]=_(null);J(()=>Q().onAuthDevice?.(i=>r(i)),[]);let a=()=>void t.run(async()=>{let i=Q().forsionLogin;if(!i)return{error:{key:"err.unavailable"}};try{await i()}catch(s){r(null);let l=br(gt(s));return l?{error:l}:void 0}});return n("section",{class:"settings-panel fx-panel fx-signin","aria-label":e("signin.button"),children:n("div",{class:"settings-state fx-signin-body",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"user",size:18})}),n("p",{class:"fx-signin-lead",children:e("signin.desc")}),n("div",{class:"settings-state-actions",children:n(q,{variant:"primary",pending:t.pending,onClick:a,children:t.pending?e("signin.pending"):e("signin.button")})}),o&&n(ji,{device:o}),n(be,{a:t})]})})}function Je(e){let t=vt(),o=e.panels??2,r=e.rows??2;return n("div",{class:"fx-skeleton","aria-busy":"true","aria-label":t("common.loading"),children:Array.from({length:o},(a,i)=>n("section",{class:"settings-panel fx-panel",children:[n("div",{class:"settings-panel-head",children:[n("span",{class:"fx-skel fx-skel--icon"}),n("div",{children:[n("span",{class:"fx-skel fx-skel--title"}),n("span",{class:"fx-skel fx-skel--line"})]})]}),Array.from({length:r},(s,l)=>n("div",{class:"settings-control-row",children:n("span",{class:"fx-skel fx-skel--row"})},l))]},i))})}function ut(e){let t=vt();return n("section",{class:"settings-panel fx-panel",children:n("div",{class:"settings-state fx-error-state",role:"alert",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"alert",size:18})}),n("strong",{children:t("common.loadFailed")}),n("p",{children:ht(e.error,t)}),n("div",{class:"settings-state-actions",children:n(q,{variant:"primary",onClick:e.onRetry,children:[n(B,{name:"refresh",size:12})," ",t("common.retry")]})})]})})}function cb(e,t){for(var o in t)e[o]=t[o];return e}function hd(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function bd(e,t){this.props=e,this.context=t}(bd.prototype=new kn).isPureReactComponent=!0,bd.prototype.shouldComponentUpdate=function(e,t){return hd(this.props,e)||hd(this.state,t)};var vd=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vd&&vd(e)};var yw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var db=_e.__e;_e.__e=function(e,t,o,r){if(e.then){for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k||[]),a.__c(e,t)}db(e,t,o,r)};var yd=_e.unmount;function _d(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=cb({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return _d(r,t,o)})),e}function Cd(e,t,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Cd(r,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}function Gi(){this.__u=0,this.o=null,this.__b=null}function Ad(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ha(){this.i=null,this.l=null}_e.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),yd&&yd(e)},(Gi.prototype=new kn).__c=function(e,t){var o=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(o);var a=Ad(r.__v),i=!1,s=function(){i||r.__z||(i=!0,o.__R=null,a?a(c):c())};o.__R=s;var l=o.__P;o.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Cd(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=l,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Gi.prototype.componentWillUnmount=function(){this.o=[]},Gi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=_d(this.__b,o,r.__O=r.__P)}this.__b=null}var a=t.__a&&fo(L,null,e.fallback);return a&&(a.__u&=-33),[fo(L,null,t.__a?null:e.children),a]};var xd=function(e,t,o){if(++o[1]===o[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(o=e.i;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.i=o=o[2]}};function ub(e){return this.getChildContext=function(){return e.context},e.children}function pb(e){var t=this,o=e.h;if(t.componentWillUnmount=function(){Le(null,t.v),t.v=null,t.h=null},t.h&&t.h!==o&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=o,t.v={nodeType:1,parentNode:o,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:o.namespaceURI,insertBefore:function(a,i){this.childNodes.push(a),t.h.insertBefore(a,i)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),t.h.removeChild(a)}}}Le(fo(ub,{context:t.context},e.__v),t.v)}function ba(e,t){var o=fo(pb,{__v:e,h:t});return o.containerInfo=t,o}(ha.prototype=new kn).__a=function(e){var t=this,o=Ad(t.__v),r=t.l.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),xd(t,e,r)):a()};o?o(i):i()}},ha.prototype.render=function(e){this.i=null,this.l=new Map;var t=mr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.l.set(t[o],this.i=[1,0,this.i]);return e.children},ha.prototype.componentDidUpdate=ha.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,o){xd(e,o,t)})};var fb=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,mb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gb=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hb=/[A-Z0-9]/g,bb=typeof document<"u",vb=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};kn.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(kn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var kd=_e.event;_e.event=function(e){return kd&&(e=kd(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Td,yb={configurable:!0,get:function(){return this.class}},wd=_e.vnode;_e.vnode=function(e){typeof e.type=="string"&&(function(t){var o=t.props,r=t.type,a={},i=r.indexOf("-")==-1;for(var s in o){var l=o[s];if(!(s==="value"&&"defaultValue"in o&&l==null||bb&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in o&&o.value==null?s="value":s==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||vb(o.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":gb.test(s)&&(s=c):c=s="oninput":i&&mb.test(s)?s=s.replace(hb,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&a[s=c]&&(s="oninputCapture"),a[s]=l}}r=="select"&&(a.multiple&&Array.isArray(a.value)&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.value.indexOf(d.props.value)!=-1})),a.defaultValue!=null&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.multiple?a.defaultValue.indexOf(d.props.value)!=-1:a.defaultValue==d.props.value}))),o.class&&!o.className?(a.class=o.class,Object.defineProperty(a,"className",yb)):o.className&&(a.class=a.className=o.className),t.props=a})(e),e.$$typeof=fb,wd&&wd(e)};var zd=_e.__r;_e.__r=function(e){zd&&zd(e),Td=e.__c};var Sd=_e.diffed;_e.diffed=function(e){Sd&&Sd(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value),Td=null};function Ed(e){return/^[a-z0-9](?:[a-z0-9-]{1,28})?[a-z0-9]$/.test(e)&&e.length>=3}var Ji=e=>e.trim().toLowerCase();function Xi(e,t=Date.now()){return e.cooldownUntil&&Date.parse(e.cooldownUntil)>t?{kind:"cooldown",until:e.cooldownUntil}:e.freeRenamesLeft>0?{kind:"free",left:e.freeRenamesLeft}:e.cards>0?{kind:"card",cards:e.cards}:e.card?.available&&e.card.productId?{kind:"buy",productId:e.card.productId,price:e.card.pricePoints}:{kind:"unavailable"}}function Ki(e,t){let o=(t||"").replace(/\/+$/,"");return o?`${o}/${encodeURIComponent(e)}`:null}function va(e){if(typeof e!="string"||!/^https?:\/\//i.test(e))return null;try{return new URL(e).origin}catch{return null}}var Ho=e=>e.replace(/^https?:\/\//i,"");function Pd(e){let t=(e||"").replace(/\/+$/,"");return t?`${Ho(t)}/`:"@"}var Yi=!1;function Id(){Yi=!0}function xb(){let e=Yi;return Yi=!1,e}function Rd(){let{t:e}=ie(),t=Fe(),[o,r]=_(null),[a,i]=_(!1),[s,l]=_(null);if(J(()=>{(async()=>{let d=await G("/connect/handle");if(!t.current||!d.ok||!d.data?.handle)return;let f=d.data.publicOrigin||null;if(d.data.publicOrigin===void 0){let u=await G("/profile/me");if(!t.current)return;f=u.ok?va(u.data?.profile?.profileUrl):null}r({handle:d.data.handle,pub:f}),xb()&&i(!0)})()},[]),!o)return null;let c=Ki(o.handle,o.pub);return n(L,{children:[n(We,{class:"fx-row--wide",label:e("address.label"),desc:s?n("span",{class:"fx-addr-done",role:"status",children:s}):void 0,children:[n("span",{class:"fx-value fx-addr-value",children:c?Ho(c):`@${o.handle}`}),n(q,{onClick:()=>{l(null),i(!0)},children:[n(B,{name:"pencil",size:12})," ",e("address.change")]})]}),a&&n(kb,{pub:o.pub,onClose:()=>i(!1),onChanged:d=>{let f=d.publicOrigin||o.pub;r(p=>p&&{...p,handle:d.handle,pub:f});let u=Ki(d.handle,f);l(e("address.done",{url:u?Ho(u):`@${d.handle}`}))}})]})}var Md={INSUFFICIENT_POINTS:"address.errPoints",NOT_AVAILABLE:"address.errSoldout",LIMIT_REACHED:"address.errLimit"};function kb(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(null),[s,l]=_(null),[c,d]=_(""),[f,u]=_({handle:"",state:"idle"}),[p,m]=_(!1),[g,h]=_(null),[y,b]=_(0),w=ne(0),k=async()=>{let H=await G("/connect/handle");return r.current&&H.ok&&H.data?.handle?(i(H.data),b(0),H.data):null};J(()=>{k().then(re=>{!re&&r.current&&i(he=>he??"failed")}),G("/credits/balance").then(re=>{r.current&&re.ok&&l(Number(re.data?.balance)||0)});let H=re=>{re.key==="Escape"&&e.onClose()};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[]);let z=a&&a!=="failed"?a.handle:"";J(()=>{let H=Ji(c),re=++w.current,he=me=>u({handle:H,state:me});if(!H){he("idle");return}if(!Ed(H)){he("bad");return}if(H===z){he("same");return}he("checking");let qe=setTimeout(()=>{G(`/connect/handle/check?handle=${encodeURIComponent(H)}`).then(me=>{re!==w.current||!r.current||he(me.ok?me.data?.ok?"ok":me.data?.code==="same"?"same":"bad":"idle")})},300);return()=>clearTimeout(qe)},[c,z]);let P=n("div",{class:"fx-addr-head",children:[n(B,{name:"home",size:16}),n("strong",{children:t("address.title")}),n("button",{type:"button",class:"fx-addr-close","aria-label":t("common.cancel"),title:t("common.cancel"),onClick:e.onClose,children:n(B,{name:"x",size:15})})]}),F=H=>ba(n("div",{class:"fx-addr-backdrop",onClick:re=>{re.target===re.currentTarget&&e.onClose()},children:[n("style",{children:jc}),n("section",{class:"fx-addr",role:"dialog","aria-modal":"true","aria-label":t("address.title"),children:[P,H]})]}),document.body);if(a===null||a==="failed")return F(n("p",{class:"fx-addr-desc",children:t(a===null?"common.loading":"address.loadFailed")}));let $=Xi(a),O=$.kind==="buy"&&y>0?{kind:"card",cards:y}:$,K=Ji(c),C=f.handle===K?f.state:K?"checking":"idle",D=C==="ok",U=Pd(a.publicOrigin||e.pub||null),M=O.kind==="buy"&&s!==null&&s<O.price,Z=O.kind==="cooldown"||O.kind==="unavailable",S=O.kind==="card"?t("address.goCard"):O.kind==="buy"?t("address.goBuy",{price:ze(O.price,o)}):t("address.go"),A=O.kind==="cooldown"?["clock",t("address.cooldown",{days:a.cooldownDays}),t("address.cooldownUntil",{date:Pt(O.until,o)})]:O.kind==="free"?["info",O.left>1?t("address.freeN",{n:O.left}):t("address.freeOne"),t("address.freeAfter")]:O.kind==="card"?["ticket",t("address.card"),t("address.cardHave",{n:O.cards})]:O.kind==="buy"?["ticket",t("address.need"),t("address.price",{price:ze(O.price,o),balance:s===null?"\u2014":ze(s,o)})]:["ticket",t("address.need"),t("address.soldout")],I=(H,re)=>{let he=re?Xi(re):null;switch(H.code){case"taken":return{key:"address.errTaken"};case"need_card":return{key:"address.errNeedCard"};case"cooldown":return{key:"address.errCooldown",vars:{date:he?.kind==="cooldown"?Pt(he.until,o):"\u2014"}};case"invalid":case"reserved":case"same":return{key:"address.bad"};default:return bt(H)}},j=async()=>{let H=K;if(!D)return;m(!0),h(null);let re=!1;try{if(O.kind==="buy"){if(!r.current)return;let De=await G("/shop/purchase",{method:"POST",body:{productId:O.productId,payMethod:"points"}});if(!r.current)return;if(!De.ok){h(De.code&&Md[De.code]?{key:Md[De.code]}:bt(De));return}re=!0,b(Qe=>Qe+1)}if(!r.current)return;let he=await G("/connect/handle",{method:"PUT",body:{handle:H}});if(!r.current)return;if(he.ok&&he.data?.handle){e.onChanged(he.data),e.onClose();return}let qe=await k();if(!r.current)return;if(qe&&qe.handle===H){e.onChanged(qe),e.onClose();return}if(he.ok){h({key:"err.generic"});return}(he.code==="taken"||he.code==="invalid"||he.code==="reserved")&&u({handle:H,state:"bad"});let me=!qe&&he.status===0?{key:"address.errUnknown"}:I(he,qe);h(re?{key:"address.errBought",vars:{reason:ht(me,t)}}:me)}finally{r.current&&m(!1)}},ee=C==="checking"?n("span",{class:"fx-addr-check",children:t("address.checking")}):C==="ok"?n("span",{class:"fx-addr-check is-ok",children:[n(B,{name:"check",size:13}),t("address.ok")]}):C==="same"?n("span",{class:"fx-addr-check",children:t("address.same")}):C==="bad"?n("span",{class:"fx-addr-check is-bad",children:t("address.bad")}):null;return F(n(L,{children:[n("p",{class:"fx-addr-desc",children:t("address.desc")}),n("div",{class:"fx-addr-row",children:[n("label",{children:t("address.now")}),n("span",{class:"fx-addr-now",children:[U,n("b",{children:a.handle})]})]}),n("div",{class:"fx-addr-row",children:[n("label",{for:"fx-addr-input",children:t("address.new")}),n("span",{class:"fx-addr-in",children:[n("i",{children:U}),n("input",{id:"fx-addr-input",type:"text",autoFocus:!0,autoComplete:"off",spellcheck:!1,maxLength:30,value:c,placeholder:a.handle,disabled:O.kind==="cooldown"||p,onInput:H=>{d(H.target.value),h(null)},onKeyDown:H=>{H.key==="Enter"&&D&&!Z&&!M&&!p&&j()}})]})]}),n("div",{class:"fx-addr-row fx-addr-under",children:[n("label",{}),n("div",{children:[ee,n("span",{class:"fx-addr-rule",children:t("address.rule")})]})]}),n("div",{class:"fx-addr-cost",children:[n(B,{name:A[0],size:15}),n("span",{children:A[1]}),n("span",{class:"fx-addr-grow"}),n("em",{children:A[2]})]}),M&&n("div",{class:"fx-addr-msg",role:"alert",children:t("address.errPoints")}),g&&n("div",{class:"fx-addr-msg",role:"alert",children:ht(g,t)}),n("div",{class:"fx-addr-foot",children:[n(q,{disabled:p,onClick:e.onClose,children:t("common.cancel")}),n("span",{class:"fx-addr-grow"}),(O.kind==="buy"||O.kind==="unavailable")&&n(q,{onClick:()=>void zn("storefront"),children:t("address.shop")}),n(q,{variant:"primary",pending:p,disabled:Z||M||!D,onClick:()=>void j(),children:S})]})]}))}var wb=5e3;function Ld(){let{t:e,locale:t}=ie(),o=Fe(),r=fe(),[a,i]=_(null),[s,l]=_(!1),c=ne(0),d=ne(!1),f=Nt(async()=>{let h=++c.current;d.current=!0;let y=await G("/wechat-helper/me");d.current=!1,!(!o.current||h!==c.current)&&(y.ok?(i(y.data),l(!1)):y.status===404?i(null):l(!0))},[]);J(()=>{f()},[f]);let u=!!a?.code&&!a.bound;J(()=>{if(!u)return;let h=setInterval(()=>{d.current||f()},wb);return()=>clearInterval(h)},[u,f]);let p=()=>void r.run(async()=>{c.current++;let h=await G("/wechat-helper/code",{method:"POST",body:{locale:t}});if(!h.ok)return $e(h);c.current++,o.current&&i(y=>y&&{...y,code:h.data})}),m=()=>void r.run(async()=>{c.current++;let h=await G("/wechat-helper/binding",{method:"DELETE"});if(!h.ok)return $e(h);o.current&&i(y=>y&&{...y,bound:!1,boundAt:null,code:null}),await f()});if(!a&&s)return n(Me,{icon:"message",title:e("wechat.title"),children:[n(Ee,{children:n(ue,{tone:"warn",children:e("common.loadFailed")})}),n("div",{class:"settings-panel-footer fx-footer",children:n(q,{onClick:()=>void f(),children:e("common.retry")})})]});if(!a?.enabled)return null;let g=a.contact?e("wechat.contact",{contact:a.contact}):e("wechat.contactUnknown");return n(Me,{icon:"message",title:e("wechat.title"),desc:e("wechat.desc"),children:[a.bound?n(We,{label:e("wechat.status"),desc:e(a.eligible?"wechat.where":"wechat.notEligible"),children:[n("span",{class:"fx-value",children:a.boundAt?e("wechat.boundAt",{date:Pt(a.boundAt,t)}):e("wechat.bound")}),n(Gt,{label:e("wechat.unbind"),confirmLabel:e("wechat.unbindConfirm"),variant:"danger",pending:r.pending,onConfirm:m})]}):a.eligible?a.code?n(L,{children:[n(We,{label:e("wechat.code"),desc:e("wechat.send",{contact:g}),children:[n("code",{class:"fx-code",children:a.code.code}),n(Ut,{text:a.code.code,label:e("wechat.copy"),iconOnly:!0}),n(q,{pending:r.pending,onClick:p,children:e("wechat.newCode")})]}),n(Ee,{class:"fx-sub--tight",children:n("p",{class:"fx-muted",role:"status",children:e("wechat.waiting",{time:_t(a.code.expiresAt,t)})})})]}):n(We,{label:e("wechat.code"),desc:g,children:n(q,{variant:"primary",pending:r.pending,onClick:p,children:e("wechat.getCode")})}):n(We,{label:e("wechat.status"),children:n("span",{class:"fx-value is-empty",children:e("wechat.notEligible")})}),r.error&&n(Ee,{class:"fx-sub--tight",children:n(be,{a:r})})]})}function Nd(){let{t:e}=ie(),t=nt(()=>G("/auth/me"));if(t.state==="loading")return n(Je,{panels:2});if(t.state==="signedOut")return n(lt,{});if(t.state==="error")return n(ut,{error:t.error,onRetry:t.retry});let o=t.data;return n(L,{children:[n(Me,{icon:"user",title:e("account.details.title"),desc:e("account.details.desc"),children:[n(We,{label:e("account.details.username"),children:[n("span",{class:"fx-value",children:o.username}),o.role==="ADMIN"&&n("span",{class:"fx-tag",children:e("account.role.admin")})]}),n(Rd,{}),n(Dd,{kind:"phone",value:o.phone}),n(Dd,{kind:"email",value:o.email})]}),n(Ld,{}),n(zb,{}),n(_b,{})]})}function Dd(e){let{t,goTo:o}=ie(),r=!!e.value,a=r?e.kind==="phone"?ua(e.value):pa(e.value):t("account.contact.unbound"),i=e.kind==="phone"?t("account.contact.phone"):t("account.contact.email");return n(We,{label:i,children:o?n("button",{type:"button",class:`fx-link-row${r?"":" is-empty"}`,onClick:()=>o("security"),title:t("account.contact.manage"),children:[n("span",{children:a}),n(B,{name:"chevron",size:12})]}):n("span",{class:`fx-value${r?"":" is-empty"}`,children:a})})}function zb(){let{t:e}=ie(),t=Fe(),[o,r]=_(null),[a,i]=_(!1),[s,l]=_(null),[c,d]=_(null),f=fe(),u=fe(),p=fe(),m=!wn(Q()),g=m&&!!Q().authAccounts;J(()=>{let k=0,z=()=>{let $=Q().authAccounts;if(!g||!$)return;let O=++k;i(!1),$().then(K=>{O===k&&r(Array.isArray(K)?K:[])}).catch(()=>{O===k&&i(!0)})};z();let P=Q().onAuthChanged?.(z),F=Q().onAuthDevice?.($=>d($));return()=>{k++,P?.(),F?.()}},[]);let h=k=>{l(k),f.run(async()=>{let z=Q().forsionSwitchAccount;if(!z)return{error:{key:"err.unavailable"}};try{await z(k)}catch(P){let F=br(gt(P));return F?{error:F}:void 0}finally{t.current&&l(null)}})},y=()=>void u.run(async()=>{let k=Q().forsionLogin;if(!k)return{error:{key:"err.unavailable"}};d(null);try{await k()}catch(z){t.current&&d(null);let P=br(gt(z));return P?{error:P}:void 0}}),b=()=>void p.run(async()=>{let k=Q().forsionLogout;if(!k)return{error:{key:"err.unavailable"}};try{await k()}catch(z){return{error:{raw:gt(z)||e("err.generic")}}}}),w=f.pending||u.pending||p.pending;return n(Me,{icon:m?"laptop":"user",title:e(m?"local.title":"session.title"),desc:e(m?"local.desc":"session.desc"),children:[g&&o===null&&!a&&n(wt,{children:[n(jt,{})," ",e("common.loading")]}),a&&n("div",{class:"fx-sub",children:n(ue,{tone:"warn",children:e("local.loadFailed")})}),o&&o.length===0&&n(wt,{children:e("local.empty")}),o&&o.length>0&&n("div",{class:"fx-list fx-block",role:"list",children:o.map(k=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-icon",children:n(B,{name:"user",size:14})}),n("span",{class:"fx-list-main",children:[n("strong",{children:k.nickname||k.username||"Forsion"}),n("small",{children:[k.username&&k.nickname?k.username:null,Sb(k.cloudUrl)].filter(Boolean).join(" \xB7 ")})]}),k.active?n("span",{class:"fx-tag fx-tag--accent",children:[n(B,{name:"check",size:11})," ",e("local.current")]}):n(q,{pending:s===k.id,disabled:w&&s!==k.id,onClick:()=>h(k.id),children:e("local.switch")})]},k.id))}),u.pending&&c&&n("div",{class:"fx-sub",children:n(ji,{device:c})}),n("div",{class:"settings-panel-footer fx-footer",children:[n(q,{pending:u.pending,disabled:w&&!u.pending,onClick:y,children:[n(B,{name:"plus",size:12})," ",u.pending?e("signin.pending"):e("local.add")]}),n(q,{pending:p.pending,disabled:w&&!p.pending,onClick:b,children:[n(B,{name:"logout",size:12})," ",e("local.signOut")]})]}),(f.error||u.error||p.error)&&n("div",{class:"fx-sub fx-sub--tight",children:[n(be,{a:f}),n(be,{a:u}),n(be,{a:p})]})]})}function Sb(e){try{return new URL(e).host}catch{return e}}function _b(){let{t:e}=ie(),t=fe();return n("div",{class:"fx-page-foot",children:[n("button",{type:"button",class:"fx-link",disabled:t.pending,onClick:()=>void t.run(async()=>await mo()?void 0:{error:{key:"err.openFailed"}}),children:[e("account.web.open")," ",n(B,{name:"external",size:12})]}),n("span",{class:"fx-muted",children:e("account.web.desc")}),n(be,{a:t})]})}var Cb=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function ya(e,t,o=Cb){let r=Q().cloudInvoke;if(!r)throw new Error("no_bridge");let a=await r(e,t);if(!o(a))throw new Error(String(a?.error??"unavailable"));return a}var Ab="https://forsion.net/legal/privacy";function Od(){let{t:e,locale:t}=ie(),o=Fe(),[r,a]=_(null),[i,s]=_(!1),[l,c]=_(null),d=fe(),f=fe(),u=fe();if(J(()=>{let b=0,w=()=>{let z=++b;ya("telemetry:get").then(P=>{o.current&&z===b&&(a(P),s(!0))},()=>{o.current&&z===b&&s(!0)})};w();let k=Q().onAuthChanged?.(()=>w());return()=>{b++,k?.()}},[]),!i)return n(Je,{panels:1});if(!r)return n(wt,{children:e("privacy.unavailable")});let{signedIn:p}=r,m=r.enabled&&r.noticeSeen&&p,g=b=>void d.run(async()=>{try{let w=await ya("telemetry:set",b?{enabled:!0,noticeSeen:!0}:{enabled:!1});o.current&&(a(w),b||c(null))}catch(w){return{error:{raw:gt(w)||e("err.generic")}}}}),h=()=>void f.run(async()=>{try{let b=await ya("telemetry:sent",void 0,w=>Array.isArray(w?.batches));o.current&&c(b.batches)}catch(b){return{error:{raw:gt(b)||e("err.generic")}}}}),y=()=>void u.run(async()=>{try{let b=await ya("telemetry:delete");return o.current&&(a(b),c(null)),{success:{key:"privacy.delete.done"}}}catch(b){return{error:{key:"privacy.delete.failed",vars:{reason:gt(b)||e("err.generic")}}}}});return n(Me,{icon:"shield",title:e("privacy.improve.title"),desc:e("privacy.improve.desc"),children:[n(We,{label:e("privacy.improve.switch"),desc:e("privacy.improve.switchHint"),children:n(Qt,{checked:m,disabled:d.pending||!r.available||!p,label:e("privacy.improve.switch"),onChange:g})}),(!r.available||!p||!r.packaged||d.error)&&n(Ee,{children:[r.available?p?!r.packaged&&n(ue,{children:e("privacy.devBuild")}):n(ue,{children:e("privacy.signInFirst")}):n(ue,{children:e("privacy.needUpdate")}),n(be,{a:d})]}),n("div",{class:"settings-control-row fx-row fx-block",children:n("button",{type:"button",class:"fx-link",onClick:()=>{try{Q().openExternal?.(Ab)?.catch(()=>{})}catch{}},children:[e("privacy.policyLink"),n(B,{name:"chevron",size:12})]})}),n(We,{label:e("privacy.sent.title"),desc:r.lastSentAt?e("privacy.sent.last",{time:_t(r.lastSentAt,t)}):e("privacy.sent.hint"),children:n(q,{pending:f.pending,onClick:h,children:[n(B,{name:"eye",size:12})," ",e("privacy.sent.view")]})}),(l||f.error)&&n(Ee,{children:[n(be,{a:f}),l&&(l.length?n("pre",{class:"fx-sent",children:JSON.stringify(l.map(b=>({at:new Date(b.at).toISOString(),...b.body})),null,2)}):n(ue,{children:e("privacy.sent.empty")}))]}),n(We,{label:e("privacy.delete.title"),desc:e("privacy.delete.hint"),children:n(Gt,{label:e("privacy.delete.button"),confirmLabel:e("privacy.delete.confirm"),variant:"danger",pending:u.pending,onConfirm:y})}),(u.error||u.success)&&n(Ee,{children:n(be,{a:u})}),n(Ee,{class:"fx-sub--tight",children:n("span",{class:"fx-muted",children:e("privacy.installId",{id:`${r.installId.slice(0,6)}\u2026${r.installId.slice(-4)}`})})})]})}var vo=class extends Error{};async function Fd(e,t=256){if(e.size>20971520)throw new vo;let o=URL.createObjectURL(e);try{let r=new Image;await new Promise((f,u)=>{r.onload=()=>f(),r.onerror=()=>u(new Error("image decode failed")),r.src=o});let a=r.naturalWidth,i=r.naturalHeight;if(!a||!i)throw new Error("empty image");if(a*i>5e7)throw new vo;let s=Math.min(1,t/Math.max(a,i)),l=document.createElement("canvas");l.width=Math.max(1,Math.round(a*s)),l.height=Math.max(1,Math.round(i*s));let c=l.getContext("2d");if(!c)throw new Error("canvas unavailable");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),c.drawImage(r,0,0,l.width,l.height);let d=l.toDataURL("image/jpeg",.85);if(d.length>262144)throw new vo;return d}finally{URL.revokeObjectURL(o)}}function xa(e){let t=String(e||"").trim();if(!t)return"?";let o=Array.from(t)[0];return/[㐀-鿿]/.test(o)?o:Array.from(t).slice(0,2).join("").toUpperCase()}var Bd=["cream","coral","teal","lavender"],$d=["auto","light","dark"],Ud=["none","mist","contour","dots"],Hd=["none","ring","pro"],qd=["early","streak","author","inviter","event"];var Zi=e=>!!e&&e.toLowerCase()!=="free";function Qi(e,t){let o={...e.settings,...t};return{...e,settings:o,bio:o.bio,links:o.links,skin:o.skin,mode:o.mode,cover:o.cover,frame:o.frame==="pro"&&!Zi(e.tier)?"none":o.frame,modules:o.modules.filter(r=>r.show).map(r=>({id:r.id}))}}function es(e,t,o){let r=e.findIndex(s=>s.id===t),a=r+o;if(r<0||a<0||a>=e.length)return e;let i=e.slice();return[i[r],i[a]]=[i[a],i[r]],i}function Vd(e){let t=e.trim();if(!t)return null;let o=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`,r;try{r=new URL(o)}catch{return null}if(r.protocol!=="http:"&&r.protocol!=="https:"||!r.hostname.includes("."))return null;let a=r.toString();return a.length<=200?a:null}function ts(e){return e.replace(/^https?:\/\//i,"").replace(/^www\./i,"").replace(/\/$/,"")}function Wd(e,t){let o=t==="zh"?[[1e8,"\u4EBF"],[1e4,"\u4E07"]]:[[1e9,"B"],[1e6,"M"],[1e3,"K"]];for(let[r,a]of o)if(e>=r){let i=e/r;return{value:i>=100?String(Math.round(i)):String(Math.round(i*10)/10),unit:a}}return{value:Math.round(e).toLocaleString("en-US"),unit:""}}var jd=e=>e==="zh"?"zh-CN":"en-US";function Gd(e,t){let[o,r]=e.split("-").map(Number);if(!o||!r)return[];let a=new Intl.DateTimeFormat(jd(t),{month:"short",timeZone:"UTC"});return Array.from({length:12},(i,s)=>a.format(new Date(Date.UTC(o,r-12+s,1))))}function Jd(e,t){let[o,r]=e.split("-").map(Number);return!o||!r?"":new Intl.DateTimeFormat(jd(t),{year:"numeric",month:"short",timeZone:"UTC"}).format(new Date(Date.UTC(o,r-1,1)))}function Xd([e,t]){let o=r=>`${String((r%24+24)%24).padStart(2,"0")}:00`;return`${o(e)} \u2013 ${o(t)}`}function Kd(e){let t=0,o=Promise.resolve(),r=async a=>{if(a===t)try{let i=await e.read();a===t&&e.apply(i)}catch(i){if(a===t)throw i}};return{read(){let a=t;return o.then(()=>r(a))},write(a){let i=++t,s=o.then(a).then(l=>{i===t&&e.apply(l)});return o=s.catch(()=>i===t?r(i).catch(()=>{}):void 0),s}}}var Tb={free:{from:"#E5E7EB",to:"#D1D5DB",text:"#374151"},plus:{from:"#E6E2AC",to:"#C6C88A",text:"#3D4317"},pro:{from:"#F4DEC4",to:"#E0BD9C",text:"#552F14"},max:{from:"#D0E1C9",to:"#9CBD9F",text:"#1F4130"},ultra:{from:"#EBDDF1",to:"#C7D5F3",text:"#36336A"}},Eb={from:"#6B7280",to:"#4B5563",text:"#FFFFFF"},Pb=/^#[0-9a-fA-F]{6}$/,Zd=e=>!!e&&[e.from,e.to,e.text].every(t=>typeof t=="string"&&Pb.test(t)),Yd=e=>typeof e=="string"&&e.trim()?e.trim():void 0;function ka(e){let t={},o={},r={};if(!Array.isArray(e))return t;for(let a of e){let i=typeof a?.tier=="string"?a.tier.toLowerCase():"";i&&(r[i]=(r[i]||0)+1);let s=Number(a?.priceMonthly)||0;!i||!Zd(a.badge)||i in o&&o[i]<=s||(t[i]={from:a.badge.from,to:a.badge.to,text:a.badge.text,name:Yd(a.name),nameEn:Yd(a.nameEn)},o[i]=s)}for(let a of Object.keys(t))r[a]>1&&(t[a]={from:t[a].from,to:t[a].to,text:t[a].text});return t}function Qd(e,t){if(!t||!Array.isArray(e))return null;let o=e.find(r=>r?.id===t);return o&&Zd(o.badge)?{from:o.badge.from,to:o.badge.to,text:o.badge.text}:null}var yo=(e,t)=>e?.[t]??Tb[t]??Eb,eu=(e,t,o)=>t==="en"&&e.nameEn||e.name||o,wa=e=>({background:`linear-gradient(135deg, ${e.from}, ${e.to})`,color:e.text,borderColor:"transparent"});var ou={skill:{key:"profile.work.skill",icon:"sparkles"},agent:{key:"profile.work.agent",icon:"bot"},plugin:{key:"profile.work.plugin",icon:"box"},space:{key:"profile.work.space",icon:"grid"},theme:{key:"profile.work.theme",icon:"palette"},"amadeus-plugin":{key:"profile.work.note",icon:"note"},webapp:{key:"profile.work.webapp",icon:"globe"}},nu={early:"sprout",streak:"flame",author:"box",inviter:"gift",event:"trophy"},os=e=>!!e&&/^https?:\/\//i.test(e);function rs(e){if(!os(e))return;let t=Q().openExternal;t?t(e).catch(()=>{}):window.open(e,"_blank","noopener")}async function Rb(e,t,o){let r=await G(e,{method:t,body:o});if(!r.ok)throw r;if(!r.data?.profile)throw{ok:!1,status:r.status,code:null,detail:null,transport:"bad_response"};return r.data.profile}var ru=e=>e&&typeof e=="object"&&e.ok===!1?bt(e):{raw:String(e?.message||e)};function au(){let{t:e}=ie(),t=nt(async()=>{let[r,a,i]=await Promise.all([G("/profile/me"),G("/auth/me"),G("/membership/plans")]);return a.ok?r.ok?r.data?.profile?{ok:!0,status:r.status,data:{profile:r.data.profile,me:a.data,badges:i.ok?ka(i.data):{}}}:{ok:!0,status:404,data:null}:r.status===404?{ok:!0,status:404,data:null}:r:a});if(t.state==="loading")return n(Je,{panels:2,rows:3});if(t.state==="signedOut")return n(lt,{});if(t.state==="error")return n(ut,{error:t.error,onRetry:t.retry});if(!t.data)return n(Me,{icon:"user",title:e("page.profile"),children:n(wt,{children:e("profile.unsupported")})});let{update:o}=t;return n(Lb,{data:t.data,update:r=>o(a=>a&&r(a))})}function Lb(e){let{t}=ie(),o=Fe(),{profile:r,me:a}=e.data,[i,s]=_(null),[l,c]=_(null),[d,f]=_(!1),u=fe(),p=ne(e.update);p.current=e.update;let m=(M,Z,S)=>o.current?Rb(M,Z,S):Promise.reject(new Error("unmounted")),g=sn(()=>Kd({apply:M=>p.current(Z=>({...Z,profile:M})),read:()=>m("/profile/me")}),[]),h=r.handle||a.username||r.username,y={...r,username:h,nickname:a.nickname||null},b=r.settings.isPublic,{profileUrl:w}=r,k=w&&va(w)?w:null,z=M=>{o.current&&c({tone:"error",m:ru(M)})},P=()=>{u.run(async()=>{c(null);try{await g.read()}catch(M){z(M)}})},F=M=>{c(null),e.update(Z=>({...Z,profile:Qi(Z.profile,M)})),g.write(()=>m("/profile/me","PUT",M)).catch(z)},$=async M=>{e.update(Z=>({...Z,profile:Qi(Z.profile,{modules:Z.profile.settings.modules.map(S=>({...S,public:M.find(A=>A.id===S.id)?.public??S.public}))})})),await g.write(()=>m("/profile/me/visibility","POST",{public:!0,modules:M})),o.current&&(s(null),c({tone:"ok",m:{key:"profile.nowPublic"}}))},O=async()=>{f(!0),c(null);try{await g.write(()=>m("/profile/me/visibility","POST",{public:!1})),o.current&&c({tone:"ok",m:{key:"profile.nowPrivate"}})}catch(M){z(M)}finally{o.current&&f(!1)}},K=ne(Promise.resolve()),C=(M,Z)=>{let S=K.current.then(async()=>{if(!o.current)return;let A=await G("/settings",{method:"PUT",body:M});if(o.current){if(!A.ok)return c({tone:"error",m:bt(A)});p.current(I=>({...I,me:{...I.me,...M}})),c({tone:"ok",m:{key:Z}})}});return K.current=S,S},D=async M=>{c(null);let Z;try{Z=await Fd(M)}catch(S){return c({tone:"error",m:{key:S instanceof vo?"err.avatarTooLarge":"err.avatarInvalid"}})}await C({avatar:Z},"account.avatar.saved")},U=M=>{c(null),s(Z=>Z===M?null:M)};return n("div",{class:"fx-pf-page",children:[n(Me,{icon:b?"globe":"lock",title:t(b?"profile.state.public":"profile.state.private"),desc:b?n("span",{class:"fx-pf-share",children:k?n(L,{children:[n("a",{class:"fx-pf-share-link",href:k,target:"_blank",rel:"noopener noreferrer",title:t("profile.openPublic"),onClick:M=>{M.preventDefault(),rs(k)},children:[Ho(k)," ",n(B,{name:"external",size:12})]}),n(Ut,{text:k,label:t("profile.copyLink"),iconOnly:!0},k)]}):n(L,{children:[n("span",{children:t("profile.linkUnavailable")}),n(q,{pending:u.pending,disabled:d,onClick:P,children:t("common.retry")})]})}):t("profile.state.privateDesc"),actions:n(L,{children:[n(q,{onClick:()=>U("deco"),children:[n(B,{name:"palette",size:12})," ",t("profile.decorate")]}),b?n(q,{pending:d,onClick:()=>void O(),children:[n(B,{name:"lock",size:12})," ",t("profile.makePrivate")]}):n(q,{variant:"primary",onClick:()=>U("publish"),children:[n(B,{name:"globe",size:12})," ",t("profile.publish")]})]}),children:[i==="publish"&&!b&&n(Db,{profile:r,url:k,submit:$,onClose:()=>s(null)}),l&&n(Ee,{class:"fx-sub--tight",children:n("div",{class:`fx-msg ${l.tone==="ok"?"is-ok":"is-error"}`,role:l.tone==="ok"?"status":"alert",children:ht(l.m,t)})})]}),n("div",{class:"fx-pf-home","data-deco":i==="deco"?"":void 0,children:[n("div",{class:"fx-pf-root",children:n(Bb,{view:y,badges:e.data.badges,avatar:a.avatar||null,pinned:r.settings.pinned,owner:{onAvatar:M=>void D(M),onNickname:M=>{c(null),C({nickname:M},"account.nickname.saved")},onBio:M=>F({bio:M}),onLinks:M=>F({links:M}),onPinned:M=>F({pinned:M}),onInvalidLink:()=>c({tone:"error",m:{key:"profile.linkInvalid"}})}})}),i==="deco"&&n(Nb,{profile:r,onChange:F,onClose:()=>s(null)})]})]})}function Db(e){let{t}=ie(),o=Fe(),{profile:r}=e,[a,i]=_({}),s=r.settings.modules.filter(m=>m.show).map(m=>({...m,public:a[m.id]??m.public})),[l,c]=_(!1),[d,f]=_(null),u=r.canPublish?null:r.publishBlockedReason||"publish_blocked";if(u)return n(Ee,{children:[n(ue,{children:t(u==="machine_username"?"profile.blocked.machineUsername":"profile.blocked.publishBlocked")}),n("div",{class:"fx-inline fx-pf-foot",children:[u==="machine_username"&&n(q,{variant:"primary",onClick:()=>void mo("profile"),children:[t("profile.goRename")," ",n(B,{name:"external",size:12})]}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]});let p=async()=>{c(!0),f(null);try{await e.submit(s.map(({id:m,public:g})=>({id:m,public:g})))}catch(m){if(!o.current)return;f(ru(m)),c(!1)}};return n(Ee,{children:[e.url&&n("div",{class:"fx-pf-url",children:[n(B,{name:"globe",size:14}),n("span",{children:e.url.replace(/^https?:\/\//i,"")})]}),n(ue,{children:t("profile.publishDesc")}),n("div",{class:"fx-pf-checks",children:s.map(m=>n("div",{class:"fx-pf-check",children:[n("div",{children:[t(`profile.mod.${m.id}`),n("small",{children:t(`profile.modDesc.${m.id}`)})]}),n(Qt,{checked:m.public,disabled:l,label:`${t(`profile.mod.${m.id}`)} \xB7 ${t("profile.col.public")}`,onChange:g=>i(h=>({...h,[m.id]:g}))})]},m.id))}),n(ue,{children:t("profile.publishNever")}),d&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(d,t)}),n("div",{class:"fx-inline fx-pf-foot",children:[n(q,{variant:"primary",pending:l,onClick:()=>void p(),children:t("profile.publishConfirm")}),n(q,{disabled:l,onClick:e.onClose,children:t("common.cancel")})]})]})}function Nb(e){let{t}=ie(),o=e.profile.settings,r=Zi(e.profile.tier),a=(s,l)=>e.onChange({modules:o.modules.map(c=>c.id===s?{...c,...l}:c)}),i=s=>n("span",{class:"fx-pf-thumb",children:s});return n("aside",{class:"fx-pf-deco","aria-label":t("profile.decorate"),children:n(Me,{icon:"palette",title:t("profile.decorate"),actions:n(q,{onClick:e.onClose,children:t("common.done")}),children:n("div",{class:"fx-pf-deco-body",children:[n("h4",{children:t("profile.deco.cover")}),n("div",{class:"fx-pf-opts",children:Ud.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.cover===s,onClick:()=>e.onChange({cover:s}),children:[i(n("span",{class:`fx-pf-cv-thumb fx-pf-cv-${s}`})),t(`profile.cover.${s}`)]},s))}),n("h4",{children:t("profile.deco.frame")}),n("div",{class:"fx-pf-opts",children:Hd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.frame===s,disabled:s==="pro"&&!r,title:s==="pro"&&!r?t("profile.frameProHint"):void 0,onClick:()=>e.onChange({frame:s}),children:[i(n("span",{class:`fx-pf-fr-demo fx-pf-fr-${s}`,children:n("span",{class:"fx-pf-av"})})),t(`profile.frame.${s}`)]},s))}),!r&&n(ue,{children:t("profile.frameProHint")}),n("h4",{children:t("profile.deco.modules")}),n("div",{class:"fx-pf-mod-head","aria-hidden":"true",children:[n("span",{children:t("profile.col.show")}),n("span",{children:t("profile.col.public")})]}),o.modules.map((s,l)=>n("div",{class:"fx-pf-mod",children:[n("span",{children:t(`profile.mod.${s.id}`)}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===0,title:t("profile.moveUp"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveUp")}`,onClick:()=>e.onChange({modules:es(o.modules,s.id,-1)}),children:n(B,{name:"up",size:13})}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===o.modules.length-1,title:t("profile.moveDown"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveDown")}`,onClick:()=>e.onChange({modules:es(o.modules,s.id,1)}),children:n(B,{name:"down",size:13})}),n(Qt,{checked:s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.show")}`,onChange:c=>a(s.id,{show:c})}),n(Qt,{checked:s.show&&s.public,disabled:!s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.public")}`,onChange:c=>a(s.id,{public:c})})]},s.id)),n(ue,{children:t("profile.modulesHint")}),n("h4",{children:t("profile.deco.skin")}),n("div",{class:"fx-pf-opts",children:Bd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.skin===s,onClick:()=>e.onChange({skin:s}),children:[i(n("span",{class:"fx-pf-swatch","data-skin":s})),t(`profile.skin.${s}`)]},s))}),n("h4",{children:t("profile.deco.mode")}),n(Mt,{value:o.mode,label:t("profile.deco.mode"),onChange:s=>e.onChange({mode:s}),options:$d.map(s=>({value:s,label:t(`profile.mode.${s}`)}))}),n(ue,{children:t("profile.deco.publicHint")})]})})})}function ns(e){let[t,o]=_(null),r=ne(!1),a=ne(null),i=t!==null;Zn(()=>{i&&a.current?.focus()},[i]);let s=e.class?` ${e.class}`:"";if(t===null)return n("button",{type:"button",class:`fx-pf-ed${s}${e.value?"":" is-empty"}`,title:e.label,"aria-label":e.label,onClick:()=>{r.current=!1,o(e.value)},children:[n("span",{children:e.value||e.placeholder}),n(B,{name:e.value?"pencil":"plus",size:12})]});let l=()=>{let c=t.trim();o(null),!r.current&&c!==e.value&&e.onSave(c)};return n("span",{class:`fx-pf-ed-on${s}`,children:[n("input",{ref:a,class:"fx-input",type:"text",value:t,maxLength:e.maxLength,placeholder:e.placeholder,"aria-label":e.label,onInput:c=>o(c.currentTarget.value),onBlur:l,onKeyDown:c=>{c.isComposing||(c.key==="Enter"?c.currentTarget.blur():c.key==="Escape"&&(c.preventDefault(),r.current=!0,c.currentTarget.blur()))}}),e.counter&&n("small",{children:[Array.from(t).length,"/",e.maxLength]})]})}function za(e){return n("section",{class:"fx-pf-sec",style:{order:e.order},children:[n("div",{class:"fx-pf-sec-h",children:[n("h3",{children:e.title}),e.action]}),e.children]})}function Ob(e){let{t}=ie(),{work:o}=e,r=ou[o.type],a=n(L,{children:[n("div",{class:"fx-pf-work-top",children:[n("span",{class:"fx-pf-work-ico",children:n(B,{name:r?.icon??"box",size:17})}),n("div",{children:[n("div",{class:"fx-pf-work-name",children:o.name}),n("div",{class:"fx-pf-work-type",children:r?t(r.key):o.type})]})]}),n("p",{children:o.summary}),(o.countKind!=="visits"||o.count>0)&&n("div",{class:"fx-pf-work-foot",children:[n(B,{name:o.countKind==="visits"?"eye":"download",size:12}),t(o.countKind==="visits"?"profile.workVisits":"profile.workInstalls",{n:o.count.toLocaleString("en-US")})]})]}),i=o.url;return os(i)?n("a",{class:"fx-pf-work",href:i,onClick:s=>{s.preventDefault(),rs(i)},children:a}):n("article",{class:"fx-pf-work",children:a})}function Fb(e){let{t}=ie(),o=Fe(),[r,a]=_(null),[i,s]=_(()=>e.pinned.map(f=>`${f.kind}:${f.id}`));J(()=>{G("/profile/me/works").then(f=>{o.current&&a(f.ok?f.data?.works??[]:"failed")})},[]);let l=f=>`${f.kind}:${f.id}`,c=f=>s(u=>u.includes(f)?u.filter(p=>p!==f):[...u,f]);if(r===null)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n(jt,{})," ",t("common.loading")]});if(r==="failed"||r.length===0)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n("p",{children:t(r==="failed"?"common.loadFailed":"profile.worksNone")}),n("div",{class:"fx-inline fx-pf-foot",children:[r!=="failed"&&n(q,{variant:"primary",onClick:()=>void mo("submission"),children:[t("profile.goSubmit")," ",n(B,{name:"external",size:12})]}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]});let d=()=>{let f=new Map(r.map(u=>[l(u),u]));e.onSave(i.flatMap(u=>{let p=f.get(u);return p?[{kind:p.kind,id:p.id}]:[]})),e.onClose()};return n("div",{class:"fx-pf-card fx-pf-picker",children:[r.map(f=>{let u=l(f),p=i.includes(u),m=ou[f.type];return n("button",{type:"button",class:"fx-pf-pick","aria-pressed":p,disabled:!p&&i.length>=6,onClick:()=>c(u),children:[n("div",{children:[f.name,n("small",{children:[m?t(m.key):f.type," \xB7 ",f.summary]})]}),p&&n(B,{name:"check",size:15})]},u)}),n("div",{class:"fx-inline fx-pf-foot",children:[n("span",{class:"fx-grow",children:i.length?t("profile.worksPicked",{n:i.length,max:6}):t("profile.worksAuto")}),n(q,{variant:"primary",onClick:d,children:t("common.done")}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]})}function Bb(e){let{t,locale:o}=ie(),{view:r,owner:a}=e,i=ne(null),[s,l]=_(!1),c=r.nickname||r.username,d=(r.tier||"free").trim().toLowerCase()||"free",f=d==="free"?null:yo(e.badges,d),u=r.modules.map(A=>A.id),p=A=>u.indexOf(A),m=A=>p(A)>=0,g=r.stats,h=g?Wd(g.totalTokens,o):null,y=t("profile.unit.days"),b=g&&h?[[h.value,h.unit,t("profile.stat.tokens")],[String(g.activeDays),y,t("profile.stat.activeDays")],[String(g.longestStreak),y,t("profile.stat.longest")],[String(g.currentStreak),y,t("profile.stat.current")],[g.installs.toLocaleString("en-US"),"",t("profile.stat.installs")]]:[],w=g&&m("stats")&&n("div",{class:"fx-pf-stats",style:{order:p("stats")},children:b.map(([A,I,j])=>n("div",{class:"fx-pf-stat",children:[n("b",{children:[A,I&&n("small",{children:I})]}),n("span",{children:j})]},j))},"stats"),k=u[0]==="stats",z=r.works||[],P=m("works")&&n(za,{order:p("works"),title:t("profile.works"),action:!s&&n("button",{type:"button",class:"fx-link",onClick:()=>l(!0),children:t("profile.worksPick")}),children:s?n(Fb,{pinned:e.pinned,onSave:a.onPinned,onClose:()=>l(!1)}):z.length?n("div",{class:"fx-pf-works",children:z.map(A=>n(Ob,{work:A},`${A.kind}:${A.id}`))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.worksEmpty")})},"works"),F=r.activity,$=m("activity")&&F&&n(za,{order:p("activity"),title:t("profile.activity"),children:n("div",{class:"fx-pf-card",children:[n("div",{class:"fx-pf-hm",role:"img","aria-label":t("profile.activityDays",{n:F.activeDays}),children:F.levels.map((A,I)=>n("i",{class:A?`l${A}`:void 0},I))}),n("div",{class:"fx-pf-hm-months","aria-hidden":"true",children:Gd(F.end,o).map((A,I)=>n("span",{children:A},I))}),n("div",{class:"fx-pf-hm-foot",children:[n("span",{children:t("profile.activityDays",{n:F.activeDays})}),n("span",{class:"fx-pf-hm-legend","aria-hidden":"true",children:[t("profile.less"),n("i",{}),n("i",{class:"l1"}),n("i",{class:"l2"}),n("i",{class:"l3"}),n("i",{class:"l4"}),t("profile.more")]})]})]})},"activity"),O=(r.badges||[]).filter(A=>qd.includes(A.id)),K=m("badges")&&n(za,{order:p("badges"),title:t("profile.badges"),children:O.length?n("div",{class:"fx-pf-card fx-pf-rows",children:O.map(A=>n("div",{class:"fx-pf-brow",children:[n("span",{class:"fx-pf-badge",children:n(B,{name:nu[A.id],size:14})}),n("div",{children:[n("b",{children:t(`profile.badge.${A.id}`)}),n("span",{children:t(`profile.badgeSub.${A.id}`,{value:A.value??""})})]})]},A.id))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.badgesEmpty")})},"badges"),C=r.insights,D=[];C?.topModel&&D.push([t("profile.insightModel"),C.topModel]),C?.activeHours&&D.push([t("profile.insightHours"),Xd(C.activeHours)]);let U=m("insights")&&n(za,{order:p("insights"),title:t("profile.insights"),children:D.length?n("div",{class:"fx-pf-card fx-pf-rows",children:D.map(([A,I])=>n("div",{class:"fx-pf-row",children:[n("span",{children:A}),n("b",{children:I})]},A))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.insightsEmpty")})},"insights"),M=[!k&&w,P,$].filter(Boolean),Z=[K,U].filter(Boolean),S=A=>{if(!A)return;let I=Vd(A);if(!I)return a.onInvalidLink();r.links.includes(I)||a.onLinks([...r.links,I])};return n("div",{class:"fx-pf","data-cover":r.cover,"data-frame":r.frame,children:[n("div",{class:"fx-pf-cover"}),n("div",{class:"fx-pf-id",children:[n("button",{type:"button",class:"fx-pf-avatar",title:t("account.avatar.change"),"aria-label":t("account.avatar.change"),onClick:()=>i.current?.click(),children:[n("span",{class:"fx-pf-av",children:e.avatar?n("img",{src:e.avatar,alt:""}):n("span",{class:"fx-pf-av-fallback",children:xa(c)})}),n("span",{class:"fx-pf-av-mask",children:n(B,{name:"pencil",size:18})})]}),n("input",{ref:i,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif,image/avif",hidden:!0,onChange:A=>{let I=A.currentTarget,j=I.files?.[0];I.value="",j&&a.onAvatar(j)}}),n("div",{class:"fx-pf-id-text",children:[n("div",{class:"fx-pf-name",children:[n(ns,{value:c,placeholder:r.username,maxLength:40,label:t("account.nickname.edit"),onSave:A=>{A&&a.onNickname(A)}}),f&&n("span",{class:"fx-tag fx-pf-tier","data-tier":d,style:wa(f),children:eu(f,o,ho(d))})]}),n("div",{class:"fx-pf-handle",children:["@",r.username]})]}),O.length>0&&m("badges")&&n("div",{class:"fx-pf-badges",children:O.map(A=>n("span",{class:"fx-pf-badge",title:t(`profile.badge.${A.id}`),children:n(B,{name:nu[A.id],size:14})},A.id))})]}),n("div",{class:"fx-pf-sub",children:[n(ns,{class:"fx-pf-bio",value:r.bio,placeholder:t("profile.bioPlaceholder"),maxLength:80,label:t("profile.bio"),counter:!0,onSave:a.onBio}),n("div",{class:"fx-pf-meta",children:[r.joinedMonth&&n("span",{children:[n(B,{name:"calendar",size:13}),t("profile.joined",{date:Jd(r.joinedMonth,o)})]}),r.links.map(A=>n("span",{children:[n(B,{name:"link",size:13}),os(A)?n("a",{href:A,onClick:I=>{I.preventDefault(),rs(A)},children:ts(A)}):n("span",{children:ts(A)}),n("button",{type:"button",class:"fx-pf-x",title:t("profile.linkRemove"),"aria-label":t("profile.linkRemove"),onClick:()=>a.onLinks(r.links.filter(I=>I!==A)),children:n(B,{name:"x",size:11})})]},A)),r.links.length<2&&n(ns,{value:"",placeholder:t("profile.linkAdd"),maxLength:200,label:t("profile.linkAdd"),onSave:S},r.links.length)]})]}),k&&w,n("div",{class:"fx-pf-body","data-cols":M.length&&Z.length?2:1,children:[n("div",{class:"fx-pf-main",children:M}),Z.length>0&&n("div",{class:"fx-pf-side",children:Z})]})]})}function iu(e={}){let t=nt(async()=>{let[o,r,a]=await Promise.all([G("/membership/my"),G("/features"),G("/membership/plans")]);if(!o.ok)return o;let i=o.data?.membership??null,s=String(i?.tier||"").trim().toLowerCase(),l=!s||s==="free"?null:a.ok?i?.planId?Qd(a.data,i.planId)??yo(null,s):yo(ka(a.data),s):yo(null,s);return{ok:!0,status:o.status,data:{membership:i,badge:l,payment:!r.ok||r.data?.payment!==!1}}});return t.state==="loading"?n(Je,{panels:1}):t.state==="signedOut"?null:n($b,{membership:t.state==="ready"?t.data.membership:null,badge:t.state==="ready"?t.data.badge:null,failed:t.state==="error",payment:t.state==="ready"&&t.data.payment,modelCap:e.modelCap,onRetry:t.state==="ready"?t.reload:t.retry})}function $b(e){let{t,locale:o}=ie(),r=fe(),a=e.membership&&(e.membership.status===void 0||e.membership.status==="active")?e.membership:null,i=ho(a?.tier),s=i==="Free",l=()=>void r.run(async()=>await zn("membership")?void 0:{error:{key:"err.openFailed"}});return n(Me,{icon:"card",title:t("member.title"),desc:t("member.desc"),actions:e.payment&&!e.failed?n(q,{variant:"primary",pending:r.pending,onClick:l,children:t(s?"member.upgrade":"member.renew")}):void 0,children:[!e.failed&&n("div",{class:"fx-member fx-block",children:[n("span",{class:`fx-tier${s?" fx-tier--free":""}`,"data-tier":i.toLowerCase(),style:s?void 0:wa(e.badge??yo(null,i.toLowerCase())),children:$o(a?.plan,o)||i}),n("div",{class:"fx-member-copy",children:[n("strong",{children:s?t("member.freeName"):$o(a?.plan,o)||i}),n("span",{class:"fx-muted",children:s?t("member.freeHint"):a?.expiresAt?t("member.expires",{date:Pt(a.expiresAt,o)}):t("member.noExpiry")}),typeof e.modelCap=="number"&&n("span",{class:"fx-muted","data-testid":"member-model-cap",children:e.modelCap<0?t("member.modelsAll"):t("member.modelsCap",{cap:ze(e.modelCap,o)})})]})]}),e.failed&&n("div",{class:"fx-sub",children:n(ue,{tone:"warn",children:[t("member.loadFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(be,{a:r})})]})}function He(e){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()!==""){let t=Number(e);return Number.isFinite(t)?t:null}return null}function Ub(e,t){let o=He(t);if(o===null||o<0)return null;if(o===0)return 0;let r=Math.max(0,He(e)??0);return Math.min(100,Math.max(0,Math.floor(r/o*100)))}var Hb=15;function xo(e,t){let o=Ub(e,t);if(o===null)return{unlimited:!0,pct:100,text:null,low:!1};let r=Math.max(0,He(e)??0),a=o===0&&r>0&&(He(t)??0)>0?"<1%":`${o}%`;return{unlimited:!1,pct:o,text:a,low:o<=Hb}}function Sa(e,t){let o=He(t);if(o===null||o<=0)return null;let r=He(e);if(r===null)return null;let a=Math.max(0,r);if(a===0)return"0%";let i=a/o*100;if(i<.1)return"<0.1%";let s=Math.round(i*10)/10;return s<10?`${s}%`:`${Math.round(i).toLocaleString("en-US")}%`}var qb=e=>e.ok?"ok":e.status===404?"hidden":"failed";function cu(){return n(uu,{section:"points"})}function du(){let[e,t]=_(null);return n(L,{children:[n(iu,{modelCap:e}),n(uu,{section:"quota",onModelCap:t})]})}function uu({section:e,onModelCap:t}){let o=ne(0),r=nt(async()=>{let f=o.current,[u,p,m,g]=await Promise.all([G("/token-quota/my"),G("/credits/balance"),G("/features"),G("/invite/my-code")]);return u.ok?{ok:!0,status:u.status,data:{quota:u.data??{},balance:p.ok?He(p.data?.balance):null,balanceFailed:!p.ok,features:m.ok&&m.data&&typeof m.data=="object"?m.data:{},invite:g.ok?g.data:null,inviteState:qb(g),autoGen:f}}:u}),a=r.state==="ready"?He(r.data.quota.modelMultiplierCap):null;if(J(()=>{t?.(a)},[a]),r.state==="loading")return n(Je,{panels:3,rows:2});if(r.state==="signedOut")return n(lt,{});if(r.state==="error")return n(ut,{error:r.error,onRetry:r.retry});let{data:i,update:s}=r,l=i.quota.background,c=i.features.redemption_codes!==!1,d=i.features.payment!==!1;return n(L,{children:[e==="quota"&&n(L,{children:[n(Wb,{data:i,update:s,payment:d,fallbackGen:o,onFailed:r.reload}),l?.modelId?n(Kb,{bg:l,update:s}):null]}),e==="points"&&n(Jb,{data:i,payment:d,onRetry:r.reload}),e==="points"&&(i.inviteState!=="hidden"||c)&&n(Yb,{data:i,update:s,redeemEnabled:c,onRedeemed:r.reload})]})}var su=e=>({dailyLimit:e.dailyLimit,dailyRemaining:e.dailyRemaining,weeklyLimit:e.weeklyLimit,weeklyRemaining:e.weeklyRemaining});function Vb(e,t){if(typeof e?.showResetCardCeremony!="function")return!1;try{return e.showResetCardCeremony(t),!0}catch{return!1}}var lu=e=>!e.unlimited&&e.text==="0%";function Wb(e){let{t,locale:o,ctx:r}=ie(),a=e.data.quota,i=xo(a.dailyRemaining,a.dailyLimit),s=xo(a.weeklyRemaining,a.weeklyLimit),l=od(a.weeklyResetAt,o),c=Math.max(0,He(a.resetCards)??0),d=fe(),f=fe(),[u,p]=_(null),m=typeof a.pointsAutoDeduct=="boolean"&&(He(a.pointsBalance)!==null||He(a.modelMultiplierCap)!==null),g=He(a.pointsBalance)??e.data.balance,h=g!==null&&g<=0,y=lu(i)||lu(s),b=jb(!!a.pointsAutoDeduct,e.data.autoGen,e.fallbackGen,F=>{e.update($=>({...$,quota:{...$.quota,...F,resetCards:$.quota.resetCards,pointsBalance:$.quota.pointsBalance,pointsAutoDeduct:$.quota.pointsAutoDeduct,modelMultiplierCap:$.quota.modelMultiplierCap}}))}),w=()=>void d.run(async()=>{let F={daily:i,weekly:s},$=su(a);p(null);let O=Q(),K=await hr(O.accountUseResetCard?()=>O.accountUseResetCard("both"):null,()=>G("/token-quota/reset-card/use",{method:"POST",body:{type:"both"}}));if(!K.ok)return e.onFailed(),$e(K);let C=K.data?.quota,D=He(K.data?.resetCards);return e.update(U=>({...U,quota:{...U.quota,...C??{},resetCards:D??U.quota.resetCards,pointsAutoDeduct:U.quota.pointsAutoDeduct,pointsBalance:U.quota.pointsBalance,modelMultiplierCap:U.quota.modelMultiplierCap}})),C&&!Vb(r.app,{before:$,after:su(C),remainingCards:D??void 0})&&p({before:F,after:{daily:xo(C.dailyRemaining,C.dailyLimit),weekly:xo(C.weeklyRemaining,C.weeklyLimit)},cards:D}),{success:{key:"card.used"}}}),k=F=>void f.run(async()=>await zn(F)?void 0:{error:{key:"err.openFailed"}}),z=F=>F.unlimited?t("common.unlimited"):F.text,P=null;if(y&&m&&b.phase==="idle"&&b.checked)P=h?n(Ee,{children:[n(ue,{tone:"warn",children:t("quota.out.pointsGone")}),e.payment&&n("div",{class:"fx-inline fx-out-acts",children:[n(q,{variant:"primary",pending:f.pending,onClick:()=>k("credits"),children:t("points.recharge")}),n(q,{pending:f.pending,onClick:()=>k("membership"),children:t("member.upgrade")})]}),n(be,{a:f})]}):n(Ee,{children:n(ue,{children:t("quota.out.usingPoints")})});else if(y&&m&&b.phase==="idle"){let F=c>0?h?"quota.out.cardOrTopUp":"quota.out.cardOrPoints":h?"quota.out.topUp":"quota.out.points";P=n(Ee,{children:[n(ue,{tone:"warn",children:t(F)}),h&&e.payment&&n("div",{class:"fx-inline fx-out-acts",children:n(q,{variant:"primary",pending:f.pending,onClick:()=>k("credits"),children:t("points.recharge")})}),n(be,{a:f})]})}else y&&c>0&&(P=n(Ee,{children:n(ue,{tone:"warn",children:t("quota.out.card")})}));return n(Me,{icon:"gauge",title:t("quota.ai.title"),desc:t("quota.ai.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:i,note:i.unlimited?null:t("quota.resetDaily")}),n(yr,{label:t("common.thisWeek"),display:s,note:s.unlimited||!l?null:t("quota.resetWeekly",{date:l})})]}),P,n(We,{label:t("card.title"),desc:t("card.desc"),children:[n("span",{class:"fx-value","data-testid":"reset-card-count",children:t("card.owned",{n:c})}),n(Gt,{label:t("card.use"),confirmLabel:t("card.useConfirm"),pending:d.pending,disabled:c<=0,onConfirm:w})]}),c<=0&&!d.success&&!P&&n(Ee,{children:n(ue,{children:t("card.noneHint")})}),(d.error||d.success)&&n(Ee,{children:[n(be,{a:d}),d.success&&u&&n("div",{class:"fx-ceremony",role:"status",children:[n("span",{children:[t("common.today")," ",n("b",{children:z(u.before.daily)})," \u2192 ",n("b",{children:z(u.after.daily)})]}),n("span",{children:[t("common.thisWeek")," ",n("b",{children:z(u.before.weekly)})," \u2192 ",n("b",{children:z(u.after.weekly)})]}),u.cards!==null&&n("span",{class:"fx-muted",children:t("card.left",{n:u.cards})})]})]}),m&&n(L,{children:[n(We,{label:t("fallback.title"),desc:t("fallback.desc"),children:[g!==null&&n("span",{class:"fx-value","data-testid":"fallback-points",children:t("fallback.balance",{n:ze(g,o)})}),b.phase==="unknown"?n(q,{pending:!1,onClick:b.reread,children:t("common.retry")}):n(L,{children:[b.phase!=="idle"&&n("span",{class:"fx-fallback-busy",role:"status","aria-busy":"true","aria-label":t("common.loading"),children:n(jt,{})}),n(Qt,{checked:b.checked,disabled:b.phase!=="idle",label:t("fallback.title"),onChange:b.toggle})]})]}),b.phase==="unknown"&&n(Ee,{children:n(ue,{tone:"warn",children:t("fallback.unknown")})}),b.error&&b.phase!=="unknown"&&n(Ee,{children:n("div",{class:"fx-msg is-error",role:"alert",children:n("span",{children:ht(b.error,t)})})})]})]})}function jb(e,t,o,r){let a=Fe(),[i,s]=_("idle"),[l,c]=_(null),[d,f]=_(null),u=ne(!1),p=l&&t<l.gen?l.value:e,m=w=>{c({value:w,gen:++o.current})},g=async w=>{s("verifying");let k=await G("/token-quota/my");a.current&&(k.ok&&typeof k.data?.pointsAutoDeduct=="boolean"?(m(k.data.pointsAutoDeduct),w!==null&&k.data.pointsAutoDeduct===w&&f(null),s("idle")):s("unknown"))},h=async w=>{if(!u.current){u.current=!0;try{await w()}finally{u.current=!1}}};return{checked:p,phase:i,error:d,toggle:w=>void h(async()=>{o.current++,f(null),s("pending");let k=Q(),z=await hr(k.cloudInvoke?()=>k.cloudInvoke("account:pointsAutoDeduct",w):null,()=>G("/token-quota/auto-deduct",{method:"POST",body:{enabled:w}}));if(a.current){if(z.ok&&typeof z.data?.pointsAutoDeduct=="boolean"){m(z.data.pointsAutoDeduct),z.data.quota&&r(z.data.quota),s("idle");return}if(!z.ok&&(f(bt(z)),z.status===400||z.status===410||z.status===503&&z.code==="points_fallback_unavailable")){s("idle");return}await g(w)}}),reread:()=>void h(()=>g(null))}}function Gb(e,t,o){let r=fe(),[a,i]=_(null);return{checked:a??e,toggle:l=>{i(l),r.run(async()=>{let c=await t(l);if(i(null),!c.ok)return $e(c);o(l)})},action:r}}function Jb(e){let{t,locale:o}=ie(),r=fe(),a=()=>void r.run(async()=>await zn("credits")?void 0:{error:{key:"err.openFailed"}});return n(Me,{icon:"coins",title:t("points.title"),desc:t("points.desc"),actions:e.payment?n(q,{variant:"primary",pending:r.pending,onClick:a,children:t("points.recharge")}):void 0,children:[n(We,{label:t("points.balance"),children:e.data.balance!==null?n("span",{class:"fx-big","data-testid":"points-balance",children:ze(e.data.balance,o)}):n("span",{class:"fx-value is-empty",children:[t("points.balanceFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n(Ee,{children:n(be,{a:r})})]})}var Xb=[5,10,20];function Kb(e){let{t}=ie(),{bg:o}=e,r=xo(o.dailyRemaining,o.dailyLimit),a=xo(o.weeklyRemaining,o.weeklyLimit),i=fe(),[s,l]=_(null),c=Gb(!!o.autoMain,f=>{let u=Q();return hr(u.accountBgAutoMain?()=>u.accountBgAutoMain(f):null,()=>G("/token-quota/background/auto-main",{method:"POST",body:{enabled:f}}))},f=>e.update(u=>({...u,quota:{...u.quota,background:{...u.quota.background??{},autoMain:f}}}))),d=f=>{l(f),i.run(async()=>{let u=Q(),p=await hr(u.accountBgConvert?()=>u.accountBgConvert(f):null,()=>G("/token-quota/background/convert",{method:"POST",body:{percent:f}}));if(l(null),!p.ok)return $e(p);let m=p.data?.quota;return m&&e.update(h=>({...h,quota:{...h.quota,...m,resetCards:h.quota.resetCards,pointsBalance:h.quota.pointsBalance,pointsAutoDeduct:h.quota.pointsAutoDeduct,modelMultiplierCap:h.quota.modelMultiplierCap}})),{success:{key:"bg.converted",vars:{pct:f}}}})};return n(Me,{icon:"clock",title:t("bg.title"),desc:t("bg.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:r}),n(yr,{label:t("common.thisWeek"),display:a})]}),n(We,{label:t("bg.autoMain"),desc:t("bg.autoMainDesc"),children:n(Qt,{checked:c.checked,disabled:c.action.pending,label:t("bg.autoMain"),onChange:c.toggle})}),n(We,{label:t("bg.convert"),desc:t("bg.convertDesc"),class:"fx-row--wide",children:Xb.map(f=>n(Gt,{label:`${f}%`,confirmLabel:t("bg.convertConfirm",{pct:f}),pending:i.pending&&s===f,disabled:i.pending&&s!==f,onConfirm:()=>d(f)},f))}),(i.error||i.success||c.action.error)&&n(Ee,{children:[n(be,{a:c.action}),n(be,{a:i})]})]})}function Yb(e){let{t,locale:o,anchor:r}=ie(),a=ne(null);J(()=>{if(r!=="invite")return;let z=a.current;z?.scrollIntoView?.({block:"start"}),z?.focus({preventScroll:!0})},[r]);let{invite:i,inviteState:s}=e.data,[l,c]=_(null),[d,f]=_(""),[u,p]=_(""),m=fe(),g=fe(),h=fe();J(()=>{let z=!0;return Q().authStatus?.().then(P=>{z&&c(P?.cloudUrl?P.cloudUrl.replace(/\/+$/,""):null)}).catch(()=>{}),()=>{z=!1}},[]);let y=async()=>{let z=await G("/invite/my-code");return e.update(P=>({...P,invite:z.ok?z.data:P.invite,inviteState:z.ok?"ok":z.status===404?"hidden":P.inviteState})),z},b=()=>void m.run(async()=>{let z=d.trim();if(!z)return{error:{key:"err.inviteEmpty"}};let P=await G("/invite/claim",{method:"POST",body:{code:z}});return P.ok?(f(""),y(),{success:{key:"invite.claimed"}}):$e(P)}),w=()=>void g.run(async()=>{let z=u.trim();if(!z)return{error:{key:"err.redeemEmpty"}};let P=await G("/redemption/redeem",{method:"POST",body:{code:z}});if(!P.ok)return $e(P);p(""),window.dispatchEvent(new Event("forsion:account-rewards-changed")),e.onRedeemed();let F=[],$=He(P.data?.creditsAmount);$&&F.push(t("redeem.gotPoints",{n:ze($,o)})),P.data?.membershipPlanId&&F.push(t("redeem.gotMembership"));for(let O of Array.isArray(P.data?.items)?P.data.items:[]){let K=(o==="zh"?O?.label?.zh:O?.label?.en)||O?.label?.zh||O?.label?.en||O?.kind;K&&F.push(K)}return{success:F.length?{key:"redeem.successWith",vars:{what:F.join(o==="zh"?"\u3001":", ")}}:{key:"redeem.success"}}}),k=i?.code&&l?`${l}/auth?invite=${encodeURIComponent(i.code)}`:"";return n("div",{ref:a,tabIndex:-1,"data-settings-anchor":"invite",children:n(Me,{icon:"gift",title:t("invite.title"),desc:t("invite.desc"),children:[s==="ok"&&i?.code&&n(We,{label:t("invite.myCode"),desc:t("invite.count",{n:ze(He(i.invitedCount)??0,o)}),class:"fx-row--wide",children:[n("code",{class:"fx-code","data-testid":"invite-code",children:i.code}),n(Ut,{text:i.code,label:t("invite.copyCode")}),n(Ut,{text:k,label:t("invite.copyLink"),disabled:!k})]}),s==="failed"&&n(Ee,{children:n(ue,{tone:"warn",children:[t("invite.loadFailed")," ",n("button",{type:"button",class:"fx-link",disabled:h.pending,onClick:()=>void h.run(async()=>{await y()}),children:t("common.retry")})]})}),s==="ok"&&i?.claim?.eligible&&n(We,{label:t("invite.claim"),desc:t("invite.claimDesc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:z=>{z.preventDefault(),b()},children:[n("input",{class:"fx-input",value:d,placeholder:t("invite.claimPlaceholder"),"aria-label":t("invite.claim"),onInput:z=>f(z.currentTarget.value)}),n(q,{submit:!0,pending:m.pending,children:t("invite.claimSubmit")})]})}),(m.error||m.success)&&n(Ee,{children:n(be,{a:m})}),e.redeemEnabled&&n(We,{label:t("redeem.title"),desc:t("redeem.desc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:z=>{z.preventDefault(),w()},children:[n("input",{class:"fx-input",value:u,placeholder:t("redeem.placeholder"),"aria-label":t("redeem.title"),onInput:z=>p(z.currentTarget.value)}),n(q,{submit:!0,pending:g.pending,children:t("redeem.submit")})]})}),(g.error||g.success)&&n(Ee,{children:n(be,{a:g})})]})})}function Zb(e){let t=[],o,r,a=new Map;for(let i of e)if(i.itemType==="reset_card")o||(o={id:"reset_card",items:[],resetCard:!0},t.push(o)),o.items.push(i);else if(i.itemType==="address_rename_card")r||(r={id:"address_rename_card",items:[],resetCard:!1,addressCard:!0},t.push(r)),r.items.push(i);else if(i.itemType==="custom_item"&&i.itemDefinition?.stackable){let s=`${i.productId||i.id}:${JSON.stringify(i.itemDefinition)}`,l=a.get(s);l||(l={id:`custom:${s}`,items:[],resetCard:!1},a.set(s,l),t.push(l)),l.items.push(i)}else t.push({id:i.id,items:[i],resetCard:!1});return t}function pu(){let e=nt(()=>G("/shop/inventory"));return e.state==="loading"?n(Je,{panels:1,rows:4}):e.state==="signedOut"?n(lt,{}):e.state==="error"?n(ut,{error:e.error,onRetry:e.retry}):n(Qb,{items:e.data??[],onRefresh:e.reload,onUsed:t=>{e.update(o=>o.filter(r=>r.id!==t.itemId)),e.reload()}})}function Qb(e){let{t,locale:o,goTo:r}=ie(),[a,i]=_(null),[s,l]=_(null),c=Fe(),d=Zb(e.items),f=d.find(g=>g.id===a),u=Math.max(24,Math.ceil(d.length/6)*6)-d.length,p=g=>g.resetCard?t("card.title"):g.addressCard?t("backpack.addressCard"):g.items[0].itemDefinition?.name[o]||g.items[0].displayName||t("backpack.item"),m=g=>{c.current&&(l(g),e.onUsed(g))};return n(Me,{icon:"backpack",title:t("page.backpack"),desc:t("backpack.desc"),actions:n(q,{onClick:e.onRefresh,children:[n(B,{name:"refresh",size:13}),t("backpack.refresh")]}),children:n("div",{class:"fx-backpack fx-block",children:[n("div",{class:"fx-backpack-summary",children:[n("span",{children:t("backpack.total",{n:ze(e.items.length,o)})}),r&&n("button",{class:"fx-link",type:"button",onClick:()=>r("quota"),children:t("backpack.getCards")})]}),s&&n("div",{class:`fx-backpack-used fx-backpack-${s.animation}`,role:"status",children:[n(B,{name:"gift",size:20}),s.connectPack&&typeof s.connectPack.added=="number"?n("div",{children:[n("strong",{children:t("backpack.packUsed")}),n("div",{children:t("backpack.packUsedLine",{n:ze(s.connectPack.added,o),balance:ze(Math.round(Number(s.connectPack.balance)||0),o)})})]}):n("div",{children:[n("strong",{children:s.message?.[o]}),n("div",{children:(s.effects||[]).map(g=>fu(g,t,o)).join(" \xB7 ")})]})]},s.itemId),n("div",{class:"fx-backpack-layout",children:[n("div",{children:[n("div",{class:"fx-backpack-grid",role:"group","aria-label":t("backpack.grid"),children:[d.map(g=>{let h=p(g);return n("button",{type:"button",class:`fx-backpack-slot${g.resetCard?" is-card":""}`,"data-rarity":g.items[0].itemDefinition?.rarity,"aria-pressed":f?.id===g.id,"aria-label":t("backpack.slot",{name:h,n:g.items.length}),title:h,onClick:()=>i(g.id),children:[n("span",{class:"fx-backpack-icon",children:g.items[0].itemDefinition?.icon?n("span",{class:"fx-backpack-emoji",children:g.items[0].itemDefinition.icon}):n(B,{name:g.resetCard?"card":g.addressCard?"at":"gift",size:30})}),n("span",{class:"fx-backpack-name",children:h}),(g.resetCard||g.addressCard||g.items[0].itemDefinition?.stackable)&&n("span",{class:"fx-backpack-count",children:["\xD7",ze(g.items.length,o)]})]},g.id)}),Array.from({length:u},(g,h)=>n("div",{class:"fx-backpack-slot is-empty","aria-hidden":"true"},`empty:${h}`))]}),!d.length&&n("p",{class:"fx-backpack-empty",children:t("backpack.empty")})]}),f?n(ev,{slot:f,name:p(f),onUsed:m},`${f.id}:${f.items[0].id}`):n("div",{class:"fx-backpack-detail fx-backpack-prompt",children:[n(B,{name:"backpack",size:30}),n(ue,{children:t(d.length?"backpack.select":"backpack.emptyHint")})]})]})]})})}function fu(e,t,o){let r=a=>ze(Number(a)||0,o);switch(e.type){case"points":return t("backpack.effect.points",{n:r(e.amount)});case"reset_card":return t("backpack.effect.cards",{n:r(e.count)});case"reset_quota":return t("backpack.effect.quota");case"connect_pack":return t("backpack.effect.connectPack",{n:r(e.amount)});default:return t("backpack.effect.other")}}function ev(e){let{t,locale:o,goTo:r}=ie(),a=e.slot.items[0],[i,s]=_(null),l=fe(),c=fe(),[d,f]=_(!1),u=a.itemDefinition,p=Fe(),m=a.source==="points"?t("backpack.source.points"):a.source==="admin"?t("backpack.source.admin"):a.source==="reward"?t("backpack.source.reward"):t("backpack.source.other"),g=()=>void l.run(async()=>{let y=await G(`/shop/inventory/${encodeURIComponent(a.id)}`);if(p.current){if(!y.ok)return $e(y);s(y.data)}}),h=()=>void c.run(async()=>{let y=await G(`/shop/inventory/${encodeURIComponent(a.id)}/use`,{method:"POST"});if(!y.ok)return $e(y);e.onUsed(y.data)});return n("section",{class:"fx-backpack-detail","aria-label":t("backpack.details"),children:[n("span",{class:`fx-backpack-detail-icon${e.slot.resetCard?" is-card":""}`,children:u?.icon?n("span",{class:"fx-backpack-emoji",children:u.icon}):n(B,{name:e.slot.resetCard?"card":e.slot.addressCard?"at":"gift",size:32})}),n("h3",{children:e.name}),n("span",{class:"fx-tag",children:[t(e.slot.resetCard||e.slot.addressCard||u?.use?"backpack.consumable":u?"backpack.collectible":"backpack.voucher"),u&&` \xB7 ${t(`backpack.rarity.${u.rarity}`)}`]}),n("dl",{class:"fx-backpack-facts",children:[n("div",{children:[n("dt",{children:t("backpack.quantity")}),n("dd",{children:ze(e.slot.items.length,o)})]}),n("div",{children:[n("dt",{children:t("backpack.acquired")}),n("dd",{children:_t(a.acquiredAt,o)})]}),!e.slot.resetCard&&n("div",{children:[n("dt",{children:t("backpack.source")}),n("dd",{children:m})]})]}),u?n(L,{children:[u.description&&n(ue,{children:u.description[o]}),u.use&&n(L,{children:[n("div",{class:"fx-backpack-effects",children:u.use.effects.map((y,b)=>n("div",{children:fu(y,t,o)},b))}),d?n(L,{children:[n(ue,{children:t("backpack.consumeConfirm")}),n("div",{class:"fx-backpack-use-actions",children:[n(q,{variant:"primary",pending:c.pending,onClick:h,children:t("backpack.confirmUse")}),n(q,{disabled:c.pending,onClick:()=>f(!1),children:t("common.cancel")})]})]}):n(q,{variant:"primary",onClick:()=>f(!0),children:u.use.label?.[o]||t("backpack.use")}),n(be,{a:c,captchaSection:"backpack"})]})]}):e.slot.addressCard?n(L,{children:[n(ue,{children:t("backpack.addressCard.desc")}),r&&n(q,{variant:"primary",onClick:()=>{Id(),r("account-details")},children:t("backpack.addressCard.use")})]}):e.slot.resetCard?n(L,{children:[n(ue,{children:t("card.desc")}),r&&n(q,{variant:"primary",onClick:()=>r("quota"),children:t("backpack.manageCards")})]}):i?n("div",{class:"fx-backpack-reveal",children:[i.codeName&&n("div",{class:"fx-muted",children:i.codeName}),i.key?n(L,{children:[n("code",{children:i.key}),n(Ut,{text:i.key,label:t("backpack.copyKey")})]}):n(ue,{children:t("backpack.noKey")})]}):n(q,{pending:l.pending,onClick:g,children:[n(B,{name:"key",size:14}),t("backpack.reveal")]}),n(be,{a:l,captchaSection:"backpack"})]})}var tv=/^1[3-9]\d{9}$|^\+[1-9]\d{6,14}$/,nv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,mu=(e,t)=>e==="phone"?tv.test(t):nv.test(t),xr=(e,t)=>e==="phone"?ua(t):pa(t);function hu(){let e=nt(()=>G("/auth/me"));if(e.state==="loading")return n(Je,{panels:3,rows:2});if(e.state==="signedOut")return n(lt,{});if(e.state==="error")return n(ut,{error:e.error,onRetry:e.retry});let t=e.data;return n(L,{children:[n(ov,{me:t,onBound:(o,r)=>e.update(a=>({...a,[o]:r}))}),n(iv,{me:t}),n(cv,{}),n(dv,{me:t})]})}function is(){let e=td(),t=fe();return{cd:e,a:t,send:(a,i,s)=>t.run(async()=>{let l=await G("/auth/send-code",{method:"POST",body:{target:a,type:i,purpose:s}});return l.ok?(e.start(60),{success:{key:"sec.codeSent"}}):$e(l)}),reset:()=>{e.stop(),t.clear()}}}function ov(e){let{t}=ie(),[o,r]=_(null),[a,i]=_(null);return n(Me,{icon:"key",title:t("sec.methods.title"),desc:t("sec.methods.desc"),children:["phone","email"].map(s=>{let l=e.me[s];return n(L,{children:[n(We,{label:t(s==="phone"?"account.contact.phone":"account.contact.email"),desc:l?xr(s,l):t("account.contact.unbound"),children:n(q,{onClick:()=>{i(null),r(o===s?null:s)},children:t(o===s?"common.cancel":l?"sec.change":"sec.bind")})}),o===s&&n(rv,{kind:s,current:l??null,onDone:c=>{e.onBound(s,c),r(null),i(s)}}),a===s&&o!==s&&n(Ee,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t(s==="phone"?"sec.phoneBound":"sec.emailBound")})})]},s)})})}function rv(e){let{t}=ie(),{kind:o}=e,[r,a]=_(""),[i,s]=_(""),l=is(),c=fe(),d=r.trim(),f=o==="phone"?"err.phoneInvalid":"err.emailInvalid",u=()=>{if(!mu(o,d)){l.a.run(async()=>({error:{key:f}}));return}l.send(d,o,"bind")},p=()=>void c.run(async()=>{if(!mu(o,d))return{error:{key:f}};if(!i.trim())return{error:{key:"err.codeRequired"}};let m=o==="phone"?{phone:d,verification_code:i.trim()}:{email:d,verification_code:i.trim()},g=await G(o==="phone"?"/auth/bind-phone":"/auth/bind-email",{method:"POST",body:m});if(!g.ok)return $e(g);e.onDone(d)});return n(Ee,{class:"fx-form",children:[n("label",{class:"fx-field",children:[n("span",{children:e.current?t(o==="phone"?"sec.newPhone":"sec.newEmail"):t(o==="phone"?"sec.phone":"sec.email")}),n("input",{class:"fx-input",type:o==="phone"?"tel":"email",value:r,autoComplete:"off",placeholder:t(o==="phone"?"sec.phonePlaceholder":"sec.emailPlaceholder"),onInput:m=>a(m.currentTarget.value)})]}),n(ss,{code:i,setCode:s,sender:l,onSend:u}),n("div",{class:"fx-inline",children:n(q,{variant:"primary",pending:c.pending,onClick:p,children:t("sec.bindSubmit")})}),n(be,{a:c})]})}function ss(e){let{t}=ie(),{cd:o,a:r}=e.sender;return n("div",{class:"fx-field",children:[n("span",{children:e.label??t("sec.code")}),n("div",{class:"fx-inline",children:[n("input",{class:"fx-input fx-input--code",inputMode:"numeric",autoComplete:"one-time-code",value:e.code,placeholder:t("sec.codePlaceholder"),"aria-label":e.label??t("sec.code"),onInput:a=>e.setCode(a.currentTarget.value)}),n(q,{pending:r.pending,disabled:o.left>0||e.disabled,onClick:e.onSend,children:o.left>0?t("sec.resendIn",{s:o.left}):t("sec.sendCode")})]}),n(be,{a:r})]})}function av(e){let{t}=ie(),o=Kc(e.value),r=e.value.length>0,a=[[o.length,t("pw.req.length",{min:8,max:64})],[o.lower,t("pw.req.lower")],[o.upper,t("pw.req.upper")],[o.special,t("pw.req.special")],[o.space,t("pw.req.space")]];return n("ul",{class:"fx-rules","aria-label":t("pw.rulesLabel"),children:a.map(([i,s])=>n("li",{class:i?"is-ok":r?"is-bad":"",children:[i?n(B,{name:"check",size:11}):r?n(B,{name:"x",size:11}):n("span",{class:"fx-rule-dot","aria-hidden":"true"}),n("span",{children:s})]},s))})}function bu(e,t){let o=Xc(e);return o.ok?e!==t?{error:{key:"pw.mismatch"}}:null:{error:{key:Oi[o.rule]}}}function iv(e){let{t}=ie(),o=["phone","email"].filter(l=>!!e.me[l]),[r,a]=_("current"),[i,s]=_(!1);return n(Me,{icon:"shield",title:t("pw.title"),desc:t("pw.desc",{min:8,max:64}),actions:n(q,{onClick:()=>s(!i),children:t(i?"common.cancel":"pw.change")}),children:i&&n(Ee,{class:"fx-form",children:[n(Mt,{label:t("pw.modeLabel"),value:r,onChange:a,options:[{value:"current",label:t("pw.mode.current")},{value:"code",label:t("pw.mode.code")}]}),r==="current"?n(sv,{onDone:()=>s(!1)}):o.length?n(lv,{me:e.me,targets:o,onDone:()=>s(!1)}):n(ue,{children:t("pw.codeNeedsContact")})]})})}function vu(e){let{t}=ie();return n(L,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.new")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.pw,maxLength:72,onInput:o=>e.setPw(o.currentTarget.value)})]}),n(av,{value:e.pw}),n("label",{class:"fx-field",children:[n("span",{children:t("pw.confirm")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.confirm,onInput:o=>e.setConfirm(o.currentTarget.value)})]})]})}function sv(e){let{t}=ie(),[o,r]=_(""),[a,i]=_(""),[s,l]=_(""),c=fe(),[d,f]=_(!1),u=()=>void c.run(async()=>{if(!o)return{error:{key:"pw.currentRequired"}};let p=bu(a,s);if(p)return p;let m=await G("/auth/password",{method:"PUT",body:{currentPassword:o,newPassword:a}});return m.ok?(r(""),i(""),l(""),f(!0),{success:{key:"pw.changed"}}):m.status===404?{error:{key:"pw.noPasswordYet"}}:$e(m)});return n(L,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.current")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:o,onInput:p=>r(p.currentTarget.value)})]}),n(vu,{pw:a,setPw:i,confirm:s,setConfirm:l}),n("div",{class:"fx-inline",children:[n(q,{variant:"primary",pending:c.pending,onClick:u,children:t("pw.submit")}),d&&n(q,{onClick:e.onDone,children:t("common.done")})]}),n(be,{a:c})]})}function lv(e){let{t}=ie(),[o,r]=_(e.targets[0]),[a,i]=_(""),[s,l]=_(""),[c,d]=_(""),f=is(),u=fe(),[p,m]=_(!1),g=e.me[o]||"",h=()=>void u.run(async()=>{if(!a.trim())return{error:{key:"err.codeRequired"}};let y=bu(s,c);if(y)return y;let b=o==="phone"?{phone:g,code:a.trim(),newPassword:s}:{email:g,code:a.trim(),newPassword:s},w=await G("/auth/reset-password",{method:"POST",body:b});return w.ok?(i(""),l(""),d(""),m(!0),{success:{key:"pw.changed"}}):$e(w)});return n(L,{children:[e.targets.length>1?n(Mt,{label:t("pw.via"),value:o,onChange:y=>{r(y),i(""),f.reset()},options:e.targets.map(y=>({value:y,label:xr(y,e.me[y])}))}):n(ue,{children:t("pw.codeTo",{target:xr(o,g)})}),n(ss,{code:a,setCode:i,sender:f,onSend:()=>void f.send(g,o,"reset_password")}),n(vu,{pw:s,setPw:l,confirm:c,setConfirm:d}),n("div",{class:"fx-inline",children:[n(q,{variant:"primary",pending:u.pending,onClick:h,children:t("pw.submitReset")}),p&&n(q,{onClick:e.onDone,children:t("common.done")})]}),n(be,{a:u})]})}function cv(){let{t:e}=ie(),t=fe(),o=()=>void t.run(async()=>{let r=await G("/auth/logout-all",{method:"POST"});if(!r.ok)return $e(r);try{await Q().forsionLogout?.()}catch(a){return{error:{raw:gt(a)}}}return{success:{key:"sec.logoutAllDone"}}});return n(Me,{icon:"laptop",title:e("sec.devices.title"),desc:e("sec.devices.desc"),children:[n(We,{label:e("sec.logoutAll"),desc:e("sec.logoutAllDesc"),children:n(Gt,{label:e("sec.logoutAll"),confirmLabel:e("sec.logoutAllConfirm"),pending:t.pending,onConfirm:o})}),(t.error||t.success)&&n(Ee,{children:n(be,{a:t})})]})}function dv(e){let{t}=ie(),o=["phone","email"].filter(b=>!!e.me[b]),[r,a]=_(!1),[i,s]=_(o.length?"code":"password"),[l,c]=_(o[0]??null),[d,f]=_(""),[u,p]=_(""),m=is(),g=fe(),h=l&&e.me[l]||"",y=()=>void g.run(async()=>{if(i==="code"&&!d.trim())return{error:{key:"err.codeRequired"}};if(i==="password"&&!u)return{error:{key:"pw.currentRequired"}};let b=await G("/auth/delete-account",{method:"POST",body:i==="code"?{verification_code:d.trim()}:{password:u}});if(!b.ok)return $e(b);try{await Q().forsionLogout?.()}catch{}return{success:{key:"del.done"}}});return n(Me,{icon:"alert",danger:!0,title:t("del.title"),desc:t("del.desc"),actions:n(q,{variant:"danger",onClick:()=>{a(!r),g.clear()},children:t(r?"common.cancel":"del.start")}),children:r&&n(Ee,{class:"fx-form",children:[n(ue,{tone:"error",children:t("del.warn")}),o.length>0&&n(Mt,{label:t("del.methodLabel"),value:i,onChange:s,options:[{value:"code",label:t("del.byCode")},{value:"password",label:t("del.byPassword")}]}),i==="code"&&l?n(L,{children:[o.length>1&&n(Mt,{label:t("pw.via"),value:l,onChange:b=>{c(b),f(""),m.reset()},options:o.map(b=>({value:b,label:xr(b,e.me[b])}))}),n(ss,{code:d,setCode:f,sender:m,label:t("del.codeLabel",{target:xr(l,h)}),onSend:()=>void m.send(h,l,"delete_account")})]}):n("label",{class:"fx-field",children:[n("span",{children:t("del.passwordLabel")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:u,onInput:b=>p(b.currentTarget.value)})]}),n("div",{class:"fx-inline",children:n(Gt,{variant:"danger",label:t("del.submit"),confirmLabel:t("del.confirm"),pending:g.pending,onConfirm:y})}),n(be,{a:g})]})})}var xu=20;function ku(){let e=nt(async()=>{let[t,o]=await Promise.all([G("/token-quota/my"),G(`/token-quota/my/logs?limit=${xu}&offset=0`)]);if(!t.ok)return t;let r=o.ok&&Array.isArray(o.data?.logs)?o.data.logs:null;return{ok:!0,status:t.status,data:{dailyLimit:He(t.data?.dailyLimit),logs:r,total:o.ok?He(o.data?.total)??r?.length??0:0,logsFail:o.ok?null:o}}});return e.state==="loading"?n(Je,{panels:3,rows:2}):e.state==="signedOut"?n(lt,{}):e.state==="error"?n(ut,{error:e.error,onRetry:e.retry}):n(L,{children:[n(uv,{dailyLimit:e.data.dailyLimit}),n(fv,{base:e.data,onRetry:e.reload})]})}function uv(e){let{t,locale:o}=ie(),[r,a]=_(30),[i,s]=_({state:"loading"}),[l,c]=_(!1),[d,f]=_(0),u=ne(0);J(()=>{let k=++u.current;return c(!0),G(`/usage/stats?days=${r}`).then(z=>{k===u.current&&(c(!1),s(z.ok?{state:"ready",data:z.data??{}}:{state:"error",fail:z}))}),()=>{u.current++}},[r,d]);let p=e.dailyLimit!==null&&e.dailyLimit<0?"usage.unlimitedNote":Sa(1,e.dailyLimit)===null?"usage.noLimitNote":null,m=k=>Sa(k,e.dailyLimit)??"\u2014",g=n(Mt,{label:t("usage.range"),value:r,onChange:a,options:[{value:7,label:t("usage.days",{n:7})},{value:30,label:t("usage.days",{n:30})},{value:90,label:t("usage.days",{n:90})}]}),h=i.state==="ready"?i.data:null,y=(h?.byModel??[]).filter(Boolean),b=(h?.byProject??[]).filter(Boolean),w=He(h?.successRate);return n(L,{children:[n(Me,{icon:"chart",title:t("usage.overview.title"),desc:t("usage.overview.desc"),actions:g,children:[i.state==="error"?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(bt(i.fail),t)}),n("button",{type:"button",class:"fx-link",onClick:()=>f(k=>k+1),children:t("common.retry")})]})}):n("div",{class:`fx-stats fx-block${l&&h?" is-refreshing":""}`,"aria-busy":l||void 0,children:[n(ls,{label:t("usage.requests"),value:h?ze(He(h.totalRequests)??0,o):null,testId:"usage-requests"}),n(ls,{label:t("usage.successRate"),value:h?w===null?"\u2014":`${w.toFixed(1)}%`:null}),n(ls,{label:t("usage.consumption"),value:h?m(h.totalPointsCost):null,sub:t("usage.ofToday"),testId:"usage-consumption"})]}),p&&n("div",{class:"fx-sub fx-sub--tight",children:n(ue,{children:t(p)})})]}),i.state!=="error"&&n(L,{children:[n(Me,{icon:"gauge",title:t("usage.byModel.title"),desc:t("usage.byModel.desc"),children:n(yu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.model"),t("usage.col.requests"),t("usage.col.consumption")],rows:y.map(k=>[k.modelName||k.modelId||"\u2014",ze(He(k.count)??0,o),m(k.pointsCost)])})}),n(Me,{icon:"laptop",title:t("usage.byApp.title"),desc:t("usage.byApp.desc"),children:n(yu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.app"),t("usage.col.requests"),t("usage.col.consumption")],rows:b.map(k=>[wu(k.projectSource,t("usage.appUnknown")),ze(He(k.count)??0,o),m(k.pointsCost)])})})]})]})}var pv={tangu:"Tangu","ai-studio":"Forsion AI Studio",desktop:"Forsion Desktop",amadeus:"Amadeus",notebase:"Notebase",calendar:"Forsion Calendar",chat:"Forsion Chat",desk:"Forsion Desk","photo-studio":"Photo Studio",connect:"Forsion Connect"},wu=(e,t)=>!e||e==="unknown"?t:pv[e]??e;function ls(e){return n("div",{class:"fx-stat",children:[n("span",{class:"fx-stat-label",children:e.label}),e.value===null?n("span",{class:"fx-skel fx-skel--stat"}):n("strong",{class:"fx-stat-value","data-testid":e.testId,children:e.value}),e.sub&&n("span",{class:"fx-stat-sub",children:e.sub})]})}function yu(e){return e.loading?n("div",{class:"fx-sub",children:[n("span",{class:"fx-skel fx-skel--row"}),n("span",{class:"fx-skel fx-skel--row"})]}):e.rows.length?n("div",{class:"fx-table-wrap fx-block",children:n("table",{class:"fx-table",children:[n("thead",{children:n("tr",{children:e.head.map((t,o)=>n("th",{class:o?"is-num":"",children:t},o))})}),n("tbody",{children:e.rows.map((t,o)=>n("tr",{children:t.map((r,a)=>n("td",{class:a?"is-num":"",children:r},a))},o))})]})}):n(wt,{children:e.empty})}function fv(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(e.base.logs??[]),[s,l]=_(e.base.total),c=fe();J(()=>{i(e.base.logs??[]),l(e.base.total)},[e.base]);let d=()=>void c.run(async()=>{let u=await G(`/token-quota/my/logs?limit=${xu}&offset=${a.length}`);if(!u.ok)return{error:bt(u)};let p=Array.isArray(u.data?.logs)?u.data.logs:[];r.current&&(i(m=>[...m,...p]),l(m=>p.length?He(u.data?.total)??m:a.length))}),f=e.base.dailyLimit;return n(Me,{icon:"clock",title:t("usage.recent.title"),desc:t("usage.recent.desc"),children:[e.base.logsFail?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(bt(e.base.logsFail),t)}),n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}):a.length===0?n(wt,{children:t("usage.recentEmpty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map((u,p)=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-main",children:[n("strong",{children:[u.modelName||u.modelId||"\u2014",u.success===!1&&n("span",{class:"fx-tag fx-tag--danger",children:t("usage.failed")})]}),n("small",{children:[_t(u.createdAt,o),wu(u.projectSource,t("usage.appUnknown"))].join(" \xB7 ")})]}),n("span",{class:"fx-value",children:Sa(u.pointsCost,f)??"\u2014"})]},u.id??p))}),a.length>0&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("usage.shown",{shown:ze(a.length,o),total:ze(Math.max(s,a.length),o)})}),a.length<s&&n(q,{pending:c.pending,onClick:d,children:t("common.loadMore")})]}),c.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(be,{a:c})})]})}var zu=["plugin","amadeus-plugin","skill","agent","space","theme"],mv=["zip","github","npm"],gv=["description","tags","minAppVersion","maxAppVersion","platforms"],hv=50*1024*1024,bv=new Set(["market_npm_invalid","market_npm_source","market_github_source","market_not_found","market_zip_required","market_zip_invalid","market_zip_too_large","market_version_required","market_version_invalid","market_version_mismatch","market_version_not_newer","market_icon_invalid","market_duplicate","market_update_pending","market_stale","market_requirements_invalid","market_requirements_mismatch","market_no_release","market_no_changes","market_dryrun_unsupported"]),vv=new Set(["no_manifest","type_mismatch","tag_version_mismatch","id_slug_mismatch","engine_slug_mismatch","no_entry","has_node_modules"]),_a=e=>`sub.type.${e.replace("-","_")}`,_u=e=>e==="approved"?"sub.approved":e==="rejected"?"sub.rejected":"sub.pending",us=e=>e==="github"?"GitHub":e==="npm"?"npm":"ZIP",yv=e=>e.status==="pending"||!!e.pendingUpdate,Su=(e,t)=>t==="all"||(t==="pending"?yv(e):e.status===t),xv=e=>e>=1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,Cu=e=>e.status==="approved"?"sub.updated":"sub.resubmitted";async function ko(e){let t=Q().cloudInvoke;if(!t)return{ok:!1,out:{error:{key:"err.unavailable"}},code:null,values:{}};let o=await t("cloud:marketSubmit",{...e.id?{id:e.id}:{},...e.dryRun?{dryRun:!0}:{},fields:e.fields,...e.zip?{zip:{name:e.zip.name,data:e.zip.data}}:{}}),r=sa(o);if(r.ok)return{ok:!0,data:r.data};r.status===401&&Q().authStatus?.().catch(()=>{});let a=Object.fromEntries(Object.entries(o?.json?.values||{}).filter(([,s])=>typeof s=="string"||typeof s=="number").map(([s,l])=>[s,String(l)]));return{ok:!1,out:r.code==="market_version_not_newer"&&a.version&&a.current?{error:{key:"sub.notNewer",vars:a}}:bv.has(r.code||"")?{error:{key:`sub.err.${r.code}`}}:$e(r),code:r.code,values:a}}async function Au(e){return e.size>hv?{error:{key:"sub.errLarge"}}:{name:e.name,size:e.size,data:new Uint8Array(await e.arrayBuffer())}}function kv(e,t){let o=[e?.minAppVersion&&`\u2265 ${e.minAppVersion}`,e?.maxAppVersion&&`< ${e.maxAppVersion}`].filter(Boolean).join(", "),r=[o&&`Forsion ${o}`,e?.platforms?.length?e.platforms.join(", "):""].filter(Boolean);return r.length?r.join(" \xB7 "):t("sub.reqNone")}function Tu({status:e}){let t=vt();return n("span",{class:`fx-tag ${e==="approved"?"fx-status--resolved":e==="rejected"?"fx-tag--danger":"fx-tag--accent"}`,children:t(_u(e))})}function Eu(e){let t=`${e.id}-${e.name}`;return n("label",{class:"fx-sub-field",for:t,children:[n("span",{children:e.label}),e.rows?n("textarea",{id:t,value:e.value,rows:e.rows,maxLength:2e5,onInput:o=>e.onInput(o.currentTarget.value)}):n("input",{id:t,value:e.value,placeholder:e.placeholder,maxLength:e.name==="summary"?2e3:500,onInput:o=>e.onInput(o.currentTarget.value)})]})}function Pu({id:e,file:t,disabled:o,onPick:r}){let a=vt(),[i,s]=_(!1);J(()=>{let c=()=>s(!1);return window.addEventListener("dragend",c),window.addEventListener("drop",c,!0),window.addEventListener("blur",c),()=>{window.removeEventListener("dragend",c),window.removeEventListener("drop",c,!0),window.removeEventListener("blur",c)}},[]);let l=c=>{c&&!o&&r(c)};return n("label",{class:`fx-sub-drop${i?" is-over":""}${t?" is-filled":""}`,for:`${e}-zip`,onDragOver:c=>{c.preventDefault(),o||s(!0)},onDragLeave:()=>s(!1),onDrop:c=>{c.preventDefault(),s(!1),l(c.dataTransfer?.files?.[0])},children:[n(B,{name:t?"box":"upload",size:18}),n("span",{class:"fx-sub-drop-text",children:[n("strong",{children:t?t.name:a("sub.dropTitle")}),n("small",{children:t?a("sub.dropReplace",{size:xv(t.size)}):a("sub.dropHint")})]}),n("input",{id:`${e}-zip`,class:"fx-sub-file",type:"file",accept:".zip,application/zip",disabled:o,onChange:c=>{l(c.currentTarget.files?.[0]),c.currentTarget.value=""}})]})}function Mu({check:e,update:t}){let o=vt(),r=e.manifest,a=[r?[!0,"sub.checkType",`${o(_a(r.type))} \xB7 ${r.file}`]:[!1,"sub.checkType",o("sub.warn.no_manifest")],...e.version?[[!0,"sub.checkVersion",e.current?`v${e.current} \u2192 v${e.version}`:`v${e.version}`]]:[],[!0,"sub.checkIcon",o(e.icon?"sub.iconYes":"sub.iconNo")],[!0,"sub.checkReadme",o(e.readme?"sub.readmeYes":t?"sub.readmeKeep":"sub.readmeNo")],[!0,"sub.checkReq",kv(e.metadata,o)],...(e.warnings||[]).filter(i=>i!=="no_manifest"&&vv.has(i)).map(i=>[!1,"sub.checkWarn",o(`sub.warn.${i}`)])];return n("ul",{class:"fx-sub-checks",children:a.map(([i,s,l])=>n("li",{class:i?"is-ok":"is-warn",children:[n(B,{name:i?"check":"alert",size:14}),n("span",{class:"fx-sub-k",children:o(s)}),n("span",{children:l})]}))})}function wv({item:e,checks:t,onDone:o}){let r=vt(),a=On(),i=Fe(),s=fe(),[l,c]=_(null),[d,f]=_(null),u=m=>void s.run(async()=>{c(null),f(null);let g=await Au(m);if(!i.current)return;if(!("data"in g))return g;if(c(g),!t)return;let h=await ko({id:e.id,dryRun:!0,fields:{},zip:g});if(i.current){if(!h.ok)return h.out;f(h.data)}}),p=()=>void s.run(async()=>{if(!l)return;let m=await ko({id:e.id,fields:{},zip:l});if(i.current){if(!m.ok)return m.out;o(Cu(e))}});return n(L,{children:[n(Pu,{id:a,file:l,disabled:s.pending,onPick:u}),d&&n(Mu,{check:d,update:!0}),d&&n(ue,{children:r(e.status==="approved"?"sub.zipListedNote":"sub.zipUnlistedNote")}),l&&n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:s.pending,disabled:t&&!d,onClick:p,children:d?.version?r("sub.submitVersion",{version:d.version}):r("sub.submit")}),n(q,{disabled:s.pending,onClick:()=>{c(null),f(null),s.clear()},children:r("common.cancel")})]}),n(be,{a:s,captchaSection:"submission"})]})}function zv({item:e,onDone:t}){let o=vt(),r=Fe(),a=fe(),[i,s]=_(null),[l,c]=_(null),d=()=>void a.run(async()=>{s(null),c(null);let p=await ko({id:e.id,dryRun:!0,fields:{}});if(r.current){if(!p.ok){if(p.code==="market_version_not_newer"&&p.values.version){c(p.values);return}return p.out}s(p.data)}}),f=()=>void a.run(async()=>{let p=await ko({id:e.id,fields:{}});if(r.current){if(!p.ok)return p.out;t(Cu(e))}}),u=e.source==="github"?e.githubRepoUrl:e.npmPackage;return n(L,{children:[!i&&n(q,{pending:a.pending,onClick:d,children:[n(B,{name:"refresh",size:13}),o(l?"sub.checkAgain":"sub.checkNew")]}),l&&n(ue,{children:o("sub.upToDate",{version:l.version,current:l.current||l.version})}),i&&n(L,{children:[n("div",{class:"fx-sub-upstream",children:[n(B,{name:e.source==="github"?"link":"box",size:18}),n("span",{children:[n("strong",{children:o("sub.upstreamLatest",{version:i.version||""})}),n("small",{children:[u,i.tag&&o("sub.releaseTag",{tag:i.tag}),i.current&&o("sub.storeHas",{version:i.current})].filter(Boolean).join(" \xB7 ")})]})]}),n(ue,{children:o(e.source==="github"?"sub.githubNote":"sub.npmNote",{version:i.version||""})}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:a.pending,onClick:f,children:o("sub.submitVersion",{version:i.version||""})}),n(q,{disabled:a.pending,onClick:()=>{s(null),a.clear()},children:o("common.cancel")})]})]}),n(be,{a,captchaSection:"submission"})]})}function Sv({item:e,onDone:t}){let o=vt(),r=On(),a=Fe(),i=fe(),s=()=>({name:e.name,summary:e.summary||"",description:e.description||"",tags:(e.tags||[]).join(", "),minAppVersion:e.minAppVersion||"",maxAppVersion:e.maxAppVersion||"",platforms:(e.platforms||[]).join(", ")}),[l,c]=_(s),[d,f]=_(new Set),[u,p]=_(!1),m=b=>w=>{c(k=>({...k,[b]:w})),f(k=>new Set([...k,b])),i.clear()},g=()=>void i.run(async()=>{if(!l.name.trim())return{error:{key:"sub.errName"}};if(!d.size)return{error:{key:"sub.err.market_no_changes"}};let b=await ko({id:e.id,fields:{mode:"info",...Object.fromEntries([...d].map(w=>[w,l[w].trim()]))}});if(a.current){if(!b.ok)return b.out;p(!1),t(e.status==="approved"?"sub.infoSubmitted":"sub.resubmitted")}}),h=(b,w,k={})=>n(Eu,{id:r,name:b,label:o(w),value:l[b],onInput:m(b),...k}),y=o("sub.unset");return n("section",{class:"fx-sub-sec",children:[n("div",{class:"fx-sub-sec-bar",children:[n("h4",{children:o("sub.secInfo")}),!u&&n(q,{disabled:!!e.pendingUpdate,title:e.pendingUpdate?o("sub.err.market_update_pending"):void 0,onClick:()=>{c(s()),f(new Set),i.clear(),p(!0)},children:[n(B,{name:"pencil",size:13}),o("sub.edit")]})]}),u?n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:b=>{b.preventDefault(),g()},children:[n("fieldset",{disabled:i.pending,children:[n("div",{class:"fx-sub-columns",children:[h("name","sub.name"),h("tags","sub.tags",{placeholder:o("sub.tagsHint")})]}),h("summary","sub.summary"),h("description","sub.description",{rows:3}),n("div",{class:"fx-sub-columns",children:[h("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),h("maxAppVersion","sub.maxAppVersion",{placeholder:o("sub.optional")})]}),h("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(ue,{children:o("sub.requirementsHint")}),n(ue,{children:o("sub.infoNote")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:i.pending,submit:!0,children:o("sub.submitInfo")}),n(q,{disabled:i.pending,onClick:()=>{p(!1),i.clear()},children:o("common.cancel")})]}),n(be,{a:i,captchaSection:"submission"})]}):n("dl",{class:"fx-sub-kv",children:[n("dt",{children:o("sub.summary")}),n("dd",{children:e.summary||y}),n("dt",{children:o("sub.description")}),n("dd",{class:"fx-sub-clamp",children:e.description||y}),n("dt",{children:o("sub.tags")}),n("dd",{children:e.tags?.length?e.tags.join(", "):y}),n("dt",{children:o("sub.minAppVersion")}),n("dd",{children:e.minAppVersion||y}),n("dt",{children:o("sub.maxAppVersion")}),n("dd",{children:e.maxAppVersion||y}),n("dt",{children:o("sub.platforms")}),n("dd",{children:e.platforms?.length?e.platforms.join(", "):y})]})]})}function _v({item:e,checks:t,notice:o,onBack:r,onDone:a}){let i=vt(),{locale:s}=ie(),l=e.pendingUpdate,c=e.rejectedUpdate;return n("div",{class:"fx-sub-detail","data-detail-id":e.id,children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:r,children:[n(B,{name:"back",size:13}),i("sub.back")]}),n("div",{class:"fx-sub-dhead",children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name}),n(Tu,{status:e.status})]}),n("div",{class:"fx-sub-meta",children:[n("span",{children:i(_a(e.type))}),n("span",{children:us(e.source)}),e.version&&n("span",{children:["v",e.version]}),n("span",{children:i("sub.downloads",{n:e.downloads||0})})]}),n("div",{children:n(Ut,{text:e.id,label:`${i("sub.identity")} ${e.id.slice(0,8)}`})})]}),o&&n("p",{class:"fx-msg is-ok",role:"status",children:i(o)}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secVersion")}),e.status==="rejected"&&e.reviewNote&&n(ue,{tone:"error",children:e.reviewNote}),c&&n(ue,{tone:"error",children:[i(c.kind==="info"?"sub.rejectedInfo":"sub.rejectedVersion",{version:c.version}),c.note?`: ${c.note}`:""]}),l?n(L,{children:[n(ue,{children:i(l.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:l.version})}),n(ue,{children:i("sub.pendingHint")})]}):e.status==="pending"&&e.source!=="zip"?n(ue,{children:i("sub.inReview")}):e.source==="zip"?n(wv,{item:e,checks:t,onDone:a}):n(zv,{item:e,onDone:a})]}),n(Sv,{item:e,onDone:a}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secHistory")}),n("ul",{class:"fx-sub-time",children:[(e.versions||[]).map(d=>n("li",{children:[n("span",{children:Pt(d.createdAt,s)}),n("span",{children:i("sub.histApproved",{version:d.version})})]},`${d.version}-${d.createdAt}`)),e.createdAt&&n("li",{children:[n("span",{children:Pt(e.createdAt,s)}),n("span",{children:i("sub.histSubmitted")})]})]})]})]})}function Cv({checks:e,onDone:t,onBack:o}){let r=vt(),a=On(),i=Fe(),s=fe(),[l,c]=_("zip"),[d,f]=_({type:"plugin",name:"",summary:"",githubRepoUrl:"",npmPackage:"",description:"",tags:"",minAppVersion:"",maxAppVersion:"",platforms:""}),[u,p]=_(new Set),[m,g]=_(null),[h,y]=_(null),b=P=>F=>{f($=>({...$,[P]:F})),p($=>new Set([...$,P])),s.clear()},w=P=>void s.run(async()=>{g(null),y(null);let F=await Au(P);if(!i.current)return;if(!("data"in F))return F;if(g(F),!e)return;let $=await ko({dryRun:!0,fields:{source:"zip"},zip:F});if(!i.current)return;if(!$.ok)return $.out;let O=$.data;y(O);let K=O.manifest;f(C=>({...C,type:!u.has("type")&&K&&zu.includes(K.type)?K.type:C.type,name:!u.has("name")&&!C.name&&K?.name?K.name:C.name}))}),k=()=>void s.run(async()=>{if(!d.name.trim())return{error:{key:"sub.errName"}};if(l!=="zip"&&!(l==="github"?d.githubRepoUrl:d.npmPackage).trim())return{error:{key:"sub.errSource"}};if(l==="zip"&&!m)return{error:{key:"sub.errZip"}};let P=l==="github"?{githubRepoUrl:d.githubRepoUrl.trim()}:l==="npm"?{npmPackage:d.npmPackage.trim()}:{},F=await ko({fields:{type:d.type,source:l,name:d.name.trim(),summary:d.summary.trim(),...P,...Object.fromEntries(gv.map($=>[$,d[$].trim()]))},zip:l==="zip"?m:null});if(i.current){if(!F.ok)return F.out;t(String(F.data?.id||""))}}),z=(P,F,$={})=>n(Eu,{id:a,name:P,label:r(F),value:d[P],onInput:b(P),...$});return n("div",{class:"fx-sub-detail",children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:o,children:[n(B,{name:"back",size:13}),r("sub.back")]}),n("div",{class:"fx-sub-dhead",children:n("div",{class:"fx-sub-item-head",children:n("strong",{children:r("sub.new")})})}),n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:P=>{P.preventDefault(),k()},children:[n("fieldset",{disabled:s.pending,children:[n(Mt,{label:r("sub.source"),value:l,options:mv.map(P=>({value:P,label:us(P)})),onChange:P=>{c(P),s.clear()}}),l==="zip"?n(L,{children:[n(Pu,{id:a,file:m,disabled:s.pending,onPick:w}),h?n(Mu,{check:h,update:!1}):n(ue,{children:r("sub.zipHint")})]}):n(L,{children:[l==="github"?z("githubRepoUrl","sub.repo",{placeholder:"https://github.com/owner/repo"}):z("npmPackage","sub.npm",{placeholder:"@scope/plugin-name"}),n(ue,{children:r(l==="github"?"sub.repoHint":"sub.npmHint")})]}),n("div",{class:"fx-sub-columns",children:[n("label",{class:"fx-sub-field",for:`${a}-type`,children:[n("span",{children:r("sub.type")}),n("select",{id:`${a}-type`,value:d.type,onChange:P=>b("type")(P.currentTarget.value),children:zu.map(P=>n("option",{value:P,children:r(_a(P))},P))})]}),z("name","sub.name")]}),z("summary","sub.summary"),z("description","sub.description",{rows:3}),z("tags","sub.tags",{placeholder:r("sub.tagsHint")}),n("div",{class:"fx-sub-columns",children:[z("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),z("maxAppVersion","sub.maxAppVersion",{placeholder:r("sub.optional")})]}),z("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(ue,{children:r("sub.requirementsHint")}),n(ue,{children:r("sub.identityHint")}),n(ue,{children:r("sub.reviewHint")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:s.pending,submit:!0,children:r("sub.submit")}),n(q,{disabled:s.pending,onClick:o,children:r("common.cancel")})]}),n(be,{a:s,captchaSection:"submission"})]})]})}var cs=null,ds=new Set;function Iu(e){let t=!1;for(let o of ds)t=o(e)||t;cs=t?null:{id:e,at:Date.now()}}var Av=()=>{let e=cs;return cs=null,e&&Date.now()-e.at<3e4?e.id:null};function Tv({items:e,checks:t,reload:o}){let r=vt(),[a,i]=_("all"),[s,l]=_(()=>{let b=Av();return b&&e.some(w=>w.id===b)?b:null}),[c,d]=_(()=>s!==null),[f,u]=_(null);J(()=>{let b=w=>e.some(k=>k.id===w)?(i("all"),l(w),d(!0),u(null),!0):!1;return ds.add(b),()=>{ds.delete(b)}},[e]);let p=e.filter(b=>Su(b,a)),m=s==="new"?null:p.find(b=>b.id===s)||p[0]||null,g=b=>{l(b),d(!0),u(null)},h=(b,w)=>{i("all"),l(b),u({id:b,key:w}),o()},y=b=>e.filter(w=>Su(w,b)).length;return n(Me,{title:r("sub.mine"),desc:r("sub.desc"),actions:n(L,{children:[n(q,{variant:"primary",disabled:s==="new",onClick:()=>g("new"),children:[n(B,{name:"plus",size:13}),r("sub.new")]}),n(q,{onClick:o,children:r("sub.refresh")})]}),children:!e.length&&s!=="new"?n(wt,{children:[n("strong",{children:r("sub.empty")}),n("p",{children:r("sub.emptyHint")})]}):n(L,{children:[!!e.length&&n("div",{class:"fx-sub-filter",children:n(Mt,{label:r("sub.filter"),value:a,onChange:i,options:["all","pending","approved","rejected"].map(b=>({value:b,label:`${r(b==="all"?"sub.all":_u(b))} ${y(b)}`}))})}),n("div",{class:"fx-sub-cq",children:n("div",{class:`fx-sub-split${c?" is-picked":""}`,children:[n("nav",{class:"fx-sub-list","aria-label":r("sub.mine"),children:p.length?p.map(b=>n("button",{type:"button","data-submission-id":b.id,class:`fx-sub-li${b.id===m?.id?" is-on":""}`,"aria-current":b.id===m?.id||void 0,onClick:()=>g(b.id),children:[n("span",{class:"fx-sub-li-top",children:[n("strong",{children:b.name}),n(Tu,{status:b.status})]}),n("span",{class:"fx-sub-li-meta",children:[r(_a(b.type)),us(b.source),b.version&&`v${b.version}`].filter(Boolean).join(" \xB7 ")}),b.pendingUpdate&&n("span",{class:"fx-sub-li-meta",children:r(b.pendingUpdate.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:b.pendingUpdate.version})})]},b.id)):n("p",{class:"fx-note",children:r(e.length?"sub.noResults":"sub.empty")})}),s==="new"?n(Cv,{checks:t,onBack:()=>{l(null),d(!1)},onDone:b=>h(b,"sub.submitted")}):m?n(_v,{item:m,checks:t,notice:f?.id===m.id?f.key:null,onBack:()=>d(!1),onDone:b=>h(m.id,b)},m.id):n("div",{class:"fx-sub-detail",children:n("p",{class:"fx-note",children:r("sub.noResults")})})]})})]})})}function Ru(){let e=nt(()=>G("/market/mine"));switch(e.state){case"loading":return n(Je,{});case"signedOut":return n(lt,{});case"error":return n(ut,{error:e.error,onRetry:e.retry});case"ready":return n(Tv,{items:e.data?.items||[],checks:e.data?.dryRun===!0,reload:e.reload})}}var Qn=Object.freeze({payer:"visitor",perVisitorDaily:20,pageDailyPoints:300,onExhausted:"visitor",models:[]}),wo=(e,t)=>typeof e=="number"&&Number.isFinite(e)?Math.round(e):t,Ca=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function qo(e){return{payer:e?.payer==="author"?"author":"visitor",perVisitorDaily:Math.max(1,wo(e?.perVisitorDaily,Qn.perVisitorDaily)),pageDailyPoints:Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),onExhausted:e?.onExhausted==="pause"?"pause":"visitor",models:Array.isArray(e?.models)?e.models.filter(t=>typeof t=="string"):[]}}function Aa(e,t){return e.payer===t.payer&&e.perVisitorDaily===t.perVisitorDaily&&e.pageDailyPoints===t.pageDailyPoints&&e.onExhausted===t.onExhausted&&e.models.length===t.models.length&&e.models.every((o,r)=>o===t.models[r])}var ps=e=>Math.max(1,wo(e?.perVisitorMax,50)),Ta=e=>Math.max(1,wo(e?.pageDailyMax,2e4));function fs(e,t){return{...e,perVisitorDaily:Math.min(ps(t),Math.max(1,wo(e.perVisitorDaily,Qn.perVisitorDaily))),pageDailyPoints:Math.min(Ta(t),Math.max(1,wo(e.pageDailyPoints,Qn.pageDailyPoints)))}}var Lu=e=>(e?.models||[]).filter(t=>t?.isDefault).map(t=>t.id);function ms(e,t,o){return e.models.length?e.models.includes(o):Lu(t).includes(o)}function Du(e,t,o){let r=new Set((t?.models||[]).map(s=>s.id)),a=(e.models.length?e.models:Lu(t)).filter(s=>r.has(s)),i=a.includes(o)?a.filter(s=>s!==o):[...a,o];return i.length?{...e,models:i}:e}var Nu=e=>e.type==="image"||e.type==="image_gen";function Ou(e,t=Date.now()){let o=e?.cooldownUntil?Date.parse(e.cooldownUntil):NaN;return Number.isFinite(o)&&o>t}function Fu(e,t){let o=Math.min(Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),Ta(t)),r=Math.max(0,Number(e?.today?.points)||0);return Math.max(0,Math.min(100,Math.round(r/o*100)))}function Bu(e){let t=Number(e?.balance)||0,o=Math.max((Number(e?.balance)||0)+Math.max(0,Number(e?.monthSpent)||0),Number(e?.lastTopUp?.amount)||0);return o>0&&t<o*.1}function Ea(e,t,o){let r=fs(t,o);return G(`/connect/apps/${encodeURIComponent(e)}/ai`,{method:"PUT",body:{payer:r.payer,perVisitorDaily:r.perVisitorDaily,pageDailyPoints:r.pageDailyPoints,onExhausted:r.onExhausted,models:r.models}})}var $u=e=>G(`/connect/apps/${encodeURIComponent(e)}/ai/resume`,{method:"POST"}),Ev="forsion-extend:items";function kr(e){let t=Oe(e?.getLocale?.()),o=Q().openFloatingPanel;if(o){o({id:"market",title:we(t,"pack.storeTitle"),builtin:"market",params:{storeView:Ev,nonce:Date.now()}})?.catch?.(()=>{});return}e?.app?.runCommand?.("open-market")||e?.app?.notify?.(we(t,"pack.storeUnavailable"))}function Uu(e){let{t}=ie(),[o,r]=_(String(e.value));J(()=>{r(String(e.value))},[e.value]);let a=()=>{let i=Math.min(e.max,Math.max(1,parseInt(o,10)||1));r(String(i)),i!==e.value&&e.onChange(i)};return n("input",{class:e.wide?"is-wide":void 0,type:"text",inputMode:"numeric","aria-label":e.label,title:t("ai.max",{n:e.max}),value:o,disabled:e.disabled,onInput:i=>{let s=i.currentTarget.value.replace(/[^0-9]/g,"").slice(0,7);r(s);let l=parseInt(s,10);l>=1&&l<=e.max&&l!==e.value&&e.onChange(l)},onBlur:a,onKeyDown:i=>{i.key==="Enter"&&a()}})}function Hu(e){let{t}=ie(),o=e.model,r=n(L,{children:[e.on&&n(B,{name:"check",size:11}),Nu(o)?`${t("ai.modelImage")} \xB7 ${o.name||o.id}`:o.name||o.id,o.isDefault&&n("em",{children:t("ai.modelDefault")})]});return e.onClick?n("button",{type:"button",class:`fx-pub-chip${e.on?" is-on":""}`,"aria-pressed":e.on,disabled:e.disabled,onClick:e.onClick,children:r}):n("span",{class:`fx-pub-chip${e.on?" is-on":""}`,children:r})}function Pa(e){let{t,locale:o}=ie(),r=On(),{draft:a,ap:i}=e,s=i.enabled!==!1,l=s&&a.payer==="author",c=h=>e.onChange(fs({...a,...h},i)),d=(i.models||[]).filter(h=>h&&typeof h.id=="string"),f=(i.visitorModels||[]).filter(h=>h&&typeof h.id=="string"),u=d.filter(h=>ms(a,i,h.id)).length,p=(e.methods||[]).filter(Boolean),m=e.cooldownUntil&&Date.parse(e.cooldownUntil)>Date.now()?e.cooldownUntil:null,g=Number(i.balance)||0;return n("div",{class:"fx-pub-ai","data-fx-ai":l?"author":"visitor",children:[n("div",{class:"fx-pub-ai-head",children:[n(B,{name:"sparkles",size:13}),n("b",{children:"AI"}),p.length>0&&n("small",{children:p.join(" \xB7 ")})]}),s&&n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.whoPays")}),n(Mt,{value:a.payer,label:t("ai.whoPays"),options:[{value:"visitor",label:t("ai.payer.visitor")},{value:"author",label:t("ai.payer.author")}],onChange:h=>{e.disabled||c({payer:h})}})]}),l&&n(L,{children:[n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.perVisitor")}),n("span",{class:"fx-pub-num",children:[t("ai.perVisitorPre")," ",n(Uu,{value:a.perVisitorDaily,max:ps(i),label:t("ai.perVisitor"),disabled:e.disabled,onChange:h=>c({perVisitorDaily:h})})," ",t("ai.perVisitorPost")]})]}),n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.page")}),n("span",{class:"fx-pub-num",children:[t("ai.pagePre")," ",n(Uu,{wide:!0,value:a.pageDailyPoints,max:Ta(i),label:t("ai.page"),disabled:e.disabled,onChange:h=>c({pageDailyPoints:h})})," ",t("ai.pagePost")]})]}),n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",id:`${r}-ex`,children:t("ai.whenUsedUp")}),n("div",{class:"fx-pub-radio",role:"radiogroup","aria-labelledby":`${r}-ex`,children:["visitor","pause"].map(h=>n("label",{children:[n("input",{type:"radio",name:`${r}-ex`,value:h,checked:a.onExhausted===h,disabled:e.disabled,onChange:()=>c({onExhausted:h})}),n("i",{"aria-hidden":"true"}),t(h==="visitor"?"ai.exhausted.visitor":"ai.exhausted.pause")]},h))})]})]}),(l?d:f).length>0&&n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",children:t("ai.models")}),n("div",{class:"fx-pub-chips",role:"group","aria-label":t("ai.models"),children:l?d.map(h=>{let y=ms(a,i,h.id);return n(Hu,{model:h,on:y,disabled:e.disabled||y&&u<=1,onClick:()=>e.onChange(Du(a,i,h.id))},h.id)}):f.map(h=>n(Hu,{model:h,on:!0},h.id))})]}),l&&n("div",{class:"fx-pub-budget",children:[t("ai.balance")," ",n("b",{children:t("ai.points",{n:ze(g,o)})}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",onClick:e.onBuy,children:t("ai.buy")})]}),l&&(e.unpublished||m)&&n("p",{class:"fx-pub-note is-warn",children:[n(B,{name:"clock",size:11}),m?t("ai.cooldownUntil",{time:_t(m,o)}):t("ai.cooldownNew",{h:Math.max(0,Math.round(Number(i.cooldownHours??24)))})]}),l&&p.includes("forsion.ai.agent")&&n("p",{class:"fx-pub-note",children:[n(B,{name:"alert",size:11}),t("ai.agentNote")]}),n("p",{class:"fx-pub-note",children:[n(B,{name:l?"info":"user",size:11}),t(s?l?"ai.noteAuthor":"ai.noteVisitor":"ai.noteOff")]})]})}var Ma=`
|
|
749
|
+
`;var go=e=>typeof e=="string"?e:"";function Dh(e){if(!e||typeof e!="object")return null;let t=e,o=typeof t.id=="string"?t.id.trim():typeof t.id=="number"&&Number.isFinite(t.id)?String(t.id):"",r=go(t.titleZh),a=go(t.bodyZh);return!o||!r.trim()&&!a.trim()?null:{id:o,titleZh:r,titleEn:go(t.titleEn).trim()?go(t.titleEn):null,bodyZh:a,bodyEn:go(t.bodyEn).trim()?go(t.bodyEn):null,format:t.format==="html"?"html":"markdown",publishedAt:go(t.publishedAt)||null}}function Nh(e,t){return t==="en"&&e.bodyEn?{lang:"en",title:e.titleEn??e.titleZh,body:e.bodyEn}:{lang:"zh",title:e.titleZh,body:e.bodyZh}}var Oh=new zi({gfm:!0,breaks:!0}),Fh=["script","iframe","frame","frameset","object","embed","applet","portal","form","input","textarea","select","option","button","link","meta","base","noscript"],Bh=/^(?:https?:|mailto:|#)/i;function Kc(e){return ui.sanitize(e,{FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:Fh,ALLOWED_URI_REGEXP:Bh})}function Fi(e,t){let o=t==="markdown"?Oh.parse(e,{async:!1}):e;return Kc(o)}var da=null;function Bi(){if(da===null)try{let e=Kc('<p onclick="1"><a href="javascript:void 0">a</a></p><script>1<\/script><iframe></iframe>');da=ui.isSupported&&!e.querySelector("script, iframe, [onclick], a[href]")}catch{da=!1}return da}function $h(e){try{let t=new URL(String(e??"").trim());return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}}var Uh="http://www.w3.org/1999/xlink";function $n(e){let t=e.target,o=t&&typeof t.closest=="function"?t.closest("a, area"):null;if(!o||(e.preventDefault(),e.type!=="click"))return;let r=$h(o.getAttribute("href")??o.getAttributeNS(Uh,"href"));if(r)try{Q().openExternal?.(r)?.catch(()=>{})}catch{}}function ua(e){return e.shadowRoot??e.attachShadow({mode:"open"})}function Hh(e){let{ctx:t,ann:o}=e,[r,a]=_(()=>Oe(t.getLocale?.()));J(()=>{a(Oe(t.getLocale?.()));let p=t.subscribeLocale?.(m=>a(Oe(m)));return()=>{typeof p=="function"&&p()}},[t]);let i=sn(()=>Bn(r),[r]),s=Nh(o,r),l=oe(null),c=oe(null),d=oe(null),f=oe(null),u=oe(e.onClose);return u.current=e.onClose,J(()=>{let p=document.activeElement instanceof HTMLElement?document.activeElement:null;l.current?.focus();let m=h=>{if(h.key==="Escape"){h.preventDefault(),h.stopPropagation(),u.current();return}if(h.key!=="Tab")return;let y=c.current,v=d.current,x=l.current;if(!y||!v||!x)return;let w=document.activeElement;if(!w||!x.contains(w)){h.preventDefault(),(h.shiftKey?v:y).focus();return}h.shiftKey&&(w===y||w===x)?(h.preventDefault(),v.focus()):!h.shiftKey&&w===v&&(h.preventDefault(),y.focus())},g=h=>{let y=l.current;y&&h.target instanceof Node&&!y.contains(h.target)&&y.focus()};return window.addEventListener("keydown",m,!0),document.addEventListener("focusin",g,!0),()=>{window.removeEventListener("keydown",m,!0),document.removeEventListener("focusin",g,!0),p?.isConnected&&p.focus()}},[]),J(()=>{let p=f.current;if(!p)return;let m=ua(p);return m.addEventListener("click",$n),m.addEventListener("auxclick",$n),()=>{m.removeEventListener("click",$n),m.removeEventListener("auxclick",$n)}},[]),J(()=>{let p=f.current;if(!p)return;let m=document.createElement("style");m.textContent=ca;let g=document.createElement("div");g.className="doc",g.appendChild(Fi(s.body,o.format)),ua(p).replaceChildren(m,g)},[s.body,o.format]),n("div",{class:"fx-ann-backdrop",children:[n("style",{children:Jc}),n("section",{ref:l,class:"fx-ann",role:"dialog","aria-modal":"true","aria-labelledby":"fx-ann-title","aria-describedby":"fx-ann-body",tabIndex:-1,lang:s.lang==="zh"?"zh-CN":"en","data-announcement-id":o.id,children:[n("button",{ref:c,type:"button",class:"fx-ann-close","aria-label":i("ann.close"),onClick:()=>u.current(),children:n(B,{name:"x",size:16})}),n("div",{class:"fx-ann-eyebrow",children:i("ann.eyebrow")}),n("h2",{id:"fx-ann-title",class:"fx-ann-title",children:s.title}),n("div",{class:"fx-ann-body",children:n("div",{ref:f,id:"fx-ann-body",class:"fx-ann-doc"})}),n("div",{class:"fx-ann-footer",children:n("button",{ref:d,type:"button",class:"fx-ann-ok",onClick:()=>u.current(),children:i("ann.ok")})})]})]})}function qh(e){try{return new URLSearchParams(e||"").has("window")}catch{return!1}}function Vh(e=document,t=12e3){let o=e.getElementById("tangu-splash");return o?.parentNode?new Promise(r=>{let a=()=>{i.disconnect(),clearTimeout(s),r()},i=new MutationObserver(()=>{o.isConnected||a()});i.observe(o.parentNode,{childList:!0});let s=setTimeout(a,t)}):Promise.resolve()}function Yc(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!cn(o)||qh(t.location?.search))return null;let r=0,a=!1,i=null,s=null,l=()=>{s?.done(),s=null},c=Promise.resolve(),d=(p,m)=>{let g=document.createElement("div");g.className="fx-ann-root",document.body.appendChild(g);let h=!1,y=v=>{h||(h=!0,i?.id===p.id&&(i=null),Le(null,g),g.remove(),m?.done(),v&&(c=j(`/announcements/${encodeURIComponent(p.id)}/seen`,{method:"POST"})))};i={id:p.id,finish:y},Le(n(Hh,{ctx:e,ann:p,onClose:()=>y(!0)}),g)},f=async()=>{let p=++r;await c;let m=await j("/announcements/pending");if(a||p!==r||!m.ok)return;let g=Dh(m.data?.announcement);if(!g||i||!Bi()||(await Vh(),a||p!==r||i))return;let h=e.app?.queuePopup?.();if(h&&(l(),s=h,await h.ready,s===h&&(s=null),a||p!==r||i)){h.done();return}d(g,h)},u=o.onAuthChanged?.(p=>{i?.finish(!1),l(),p?.loggedIn?f():r++});return f(),{check:f,dispose(){a=!0,r++,typeof u=="function"&&u(),i?.finish(!1),l()}}}function Zc(e){return typeof e!="string"?{ok:!1,rule:"format"}:e.length<8?{ok:!1,rule:"min"}:e.length>64?{ok:!1,rule:"max"}:/\s/.test(e)?{ok:!1,rule:"space"}:/[a-z]/.test(e)?/[A-Z]/.test(e)?/[^A-Za-z0-9]/.test(e)?{ok:!0}:{ok:!1,rule:"special"}:{ok:!1,rule:"upper"}:{ok:!1,rule:"lower"}}function Qc(e){return{length:e.length>=8&&e.length<=64,lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),special:/[^A-Za-z0-9]/.test(e),space:e.length>0&&!/\s/.test(e)}}var ed={\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E:"format","\u5BC6\u7801\u81F3\u5C11 8 \u4F4D":"min","\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D":"max",\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C:"space",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD:"lower",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD:"upper",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26:"special"};var td={no_reset_card:"err.noResetCard",invalid_type:"err.generic",insufficient_points:"err.insufficientPoints",insufficient_main_quota:"err.insufficientMainQuota",background_unavailable:"err.backgroundUnavailable",points_fallback_unavailable:"err.pointsFallbackUnavailable",auto_deduct_removed:"err.pointsFallbackUnavailable",invalid_percent:"err.generic",invalid_request:"err.generic",invalid_invite_code:"err.invalidInviteCode",already_used:"err.inviteAlreadyUsed",window_expired:"err.inviteWindowExpired",ITEM_NOT_FOUND:"backpack.unavailable",ITEM_NOT_ACTIVE:"backpack.unavailable",ITEM_NOT_USABLE:"backpack.notUsable",ITEM_EFFECT_UNAVAILABLE:"backpack.quotaUnavailable",FEATURE_DISABLED:"err.featureDisabled",INSUFFICIENT_POINTS:"err.insufficientPoints",OUT_OF_STOCK:"store.soldOut",LIMIT_REACHED:"store.limitReached",NOT_AVAILABLE:"store.unavailable",NOT_POINTS_PURCHASABLE:"store.unavailable",CAPTCHA_FAILED:"err.captcha",TIER_NOT_ALLOWED:"wechat.notEligible",DISABLED:"wechat.disabled",machine_username:"profile.blocked.machineUsername",publish_blocked:"profile.blocked.publishBlocked",invalid_settings:"profile.invalid"},nd={"Current password is incorrect":"err.currentPasswordWrong","Current and new password are required":"err.passwordRequired",\u9A8C\u8BC1\u7801\u65E0\u6548\u6216\u5DF2\u8FC7\u671F:"err.codeInvalid","Invalid or expired verification code":"err.codeInvalid",\u8D26\u53F7\u6216\u9A8C\u8BC1\u7801\u9519\u8BEF:"err.codeInvalid",\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801:"err.codeRequired","Email already in use":"err.emailInUse","Phone number already in use":"err.phoneInUse","Invalid email format":"err.emailInvalid","Email is required":"err.emailInvalid","Invalid phone number format":"err.phoneInvalid","Phone number is required":"err.phoneInvalid","Invalid phone number or email format":"err.targetInvalid","Please wait before requesting another code":"err.codeCooldown","Failed to send verification code":"err.codeSendFailed","Invalid target for account deletion":"err.deleteTargetInvalid","\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u65E0\u6CD5\u6CE8\u9500\u8D26\u6237":"err.deleteVerifyFailed",\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500:"err.adminCannotDelete",\u79EF\u5206\u4F59\u989D\u4E0D\u8DB3:"err.insufficientPoints",\u6CA1\u6709\u53EF\u7528\u7684\u91CD\u7F6E\u5361:"err.noResetCard","\u4E3B\u989D\u5EA6\u5DF2\u7528\u5B8C,\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6":"err.insufficientMainQuota",\u540E\u53F0\u989D\u5EA6\u6682\u4E0D\u53EF\u7528:"err.backgroundUnavailable",\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548:"err.invalidInviteCode","\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F":"err.inviteWindowExpired",\u4F60\u5DF2\u4F7F\u7528\u8FC7\u9080\u8BF7\u7801:"err.inviteAlreadyUsed","You have already used an invite code":"err.inviteAlreadyUsed","Cannot use your own invite code":"err.inviteOwnCode","Invite code is required":"err.inviteEmpty","code is required":"err.redeemEmpty","Redemption code not found":"err.redeemNotFound","Redemption code is not active":"err.redeemInactive","Redemption code has expired":"err.redeemExpired","Redemption code has reached maximum uses":"err.redeemUsedUp","You have already used this code the maximum number of times":"err.redeemUserLimit",avatar_too_large:"err.avatarTooLarge","description is required":"err.feedbackEmpty","description too long (max 10000 chars)":"err.feedbackTooLong","content is required":"err.replyEmpty","content too long (max 10000 chars)":"err.replyTooLong","Ticket not found":"err.ticketNotFound","Too many attachments (max 5)":"err.tooManyImages","Attachment type not allowed (image / json / text only)":"err.imageType","\u4EBA\u673A\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5":"err.captcha",\u5E94\u7528\u4E0D\u5B58\u5728\u6216\u4E0D\u5C5E\u4E8E\u4F60:"err.webPageGone","\u5E94\u7528\u5DF2\u88AB\u505C\u7528\uFF0C\u65E0\u6CD5\u7533\u8BF7\u4E0A\u67B6":"web.disabledHint",\u6CA1\u6709\u5BF9\u5E94\u7684\u4E0A\u67B6\u7533\u8BF7:"err.listingGone","\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09":"err.listingSummary"},$i={format:"pw.rule.format",min:"pw.rule.min",max:"pw.rule.max",space:"pw.rule.space",lower:"pw.rule.lower",upper:"pw.rule.upper",special:"pw.rule.special"};function Wh(e){if(e.code&&td[e.code])return td[e.code];if(e.detail){if(nd[e.detail])return nd[e.detail];let t=ed[e.detail];if(t)return $i[t];if(e.detail.startsWith("Attachment exceeds 5MB"))return"err.imageTooLarge"}return null}function bt(e){let t=Wh(e);return t?{key:t}:Fn(e)?{key:"err.signedOut"}:e.status===0?{key:"err.network"}:e.status===401?{key:"err.session"}:e.status===429?{key:"err.tooFrequent"}:e.detail?{raw:e.detail}:e.status>=500?{key:"err.server",vars:{status:e.status}}:{key:"err.generic"}}function br(e){let t=e.trim();return t?/cancelled\.?$/i.test(t)?null:t==="A sign-in is already in progress."?{key:"err.loginInProgress"}:t.startsWith("\u767B\u5F55\u8D85\u65F6")?{key:"err.loginTimeout"}:t.startsWith("\u767B\u5F55\u7801\u5DF2\u8FC7\u671F")?{key:"err.loginCodeExpired"}:t.startsWith("\u65E0\u6CD5\u8FDE\u63A5")?{key:"err.network"}:t.startsWith("\u4E91\u7AEF\u4E0D\u652F\u6301 CLI \u767B\u5F55")?{key:"err.loginUnsupported"}:t.startsWith("\u8BF7\u5148\u586B\u5199 Forsion \u4E91\u7AEF\u5730\u5740")?{key:"err.noCloudUrl"}:t.startsWith("Account is no longer signed in")?{key:"err.accountGone"}:{raw:t}:{key:"err.generic"}}var Ui=ia(null);function ie(){let e=Li(Ui);if(!e)throw new Error("forsion-extend: page rendered outside its host root");return e}var vt=()=>ie().t;function Fe(){let e=oe(!0);return J(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var od={pending:!1,error:null,success:null,captcha:!1};function fe(){let e=Fe(),[t,o]=_(od),r=oe(!1),a=Nt(async s=>{if(r.current)return;r.current=!0,o({pending:!0,error:null,success:null,captcha:!1});let l;try{l=await s()}catch(c){l={error:{raw:String(c?.message||c)}}}r.current=!1,e.current&&o({pending:!1,error:l?.error??null,success:l?.success??null,captcha:!!l?.captcha})},[]),i=Nt(()=>{r.current||o(od)},[]);return{...t,run:a,clear:i}}var $e=e=>({error:bt(e),captcha:e.status===403&&e.code==="CAPTCHA_FAILED"});function rd(){let[e,t]=_(0),o=oe(null);J(()=>()=>{o.current&&clearInterval(o.current)},[]);let r=Nt((i=60)=>{o.current&&clearInterval(o.current),t(i),o.current=setInterval(()=>{t(s=>s<=1?(o.current&&clearInterval(o.current),o.current=null,0):s-1)},1e3)},[]),a=Nt(()=>{o.current&&clearInterval(o.current),o.current=null,t(0)},[]);return{left:e,start:r,stop:a}}function nt(e){let[t,o]=_({state:"loading"}),r=oe(0),a=oe(e);a.current=e;let i=Nt((c=!1)=>{let d=++r.current;c||o({state:"loading"}),(async()=>{let f;try{f=await a.current()}catch(u){f={ok:!1,status:0,code:null,detail:null,transport:String(u?.message||u)}}d===r.current&&(f.ok?o({state:"ready",data:f.data,gen:d}):Fn(f)?o({state:"signedOut"}):(f.status===401&&Q().authStatus?.().catch(()=>{}),o({state:"error",fail:f})))})()},[]);J(()=>{i();let c=Q().onAuthChanged?.(()=>i());return()=>{r.current++,c?.()}},[i]);let s=Nt(()=>i(),[i]),l=Nt(()=>i(!0),[i]);switch(t.state){case"ready":{let c=t.gen,d=f=>o(u=>u.state==="ready"&&u.gen===c?{...u,data:f(u.data)}:u);return{state:"ready",data:t.data,reload:l,update:d}}case"error":return{state:"error",error:bt(t.fail),retry:s};default:return t}}function pa(e){let t=String(e||"").trim();if(!t)return"";let o=t.startsWith("+")?4:3;return t.length<=o+4?`${t.slice(0,2)}***`:`${t.slice(0,o)}****${t.slice(-4)}`}function fa(e){let t=String(e||"").trim(),o=t.lastIndexOf("@");if(o<=0)return t?`${t.slice(0,1)}***`:"";let r=t.slice(0,o);return`${r.slice(0,r.length<=2?1:2)}***${t.slice(o)}`}function ho(e){let t=String(e||"").trim().toLowerCase()||"free";return t.charAt(0).toUpperCase()+t.slice(1)}var $o=(e,t)=>t==="en"&&e?.nameEn||e?.name||"",ad=(e,t)=>t==="en"&&e?.descriptionEn||e?.description||"",jh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function id(e,t){let o=String(e||"").trim(),r,a,i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(o);if(i)r=Number(i[2]),a=Number(i[3]);else{let s=new Date(o);if(!o||Number.isNaN(s.getTime()))return null;let l=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Shanghai",month:"numeric",day:"numeric"}).formatToParts(s);r=Number(l.find(c=>c.type==="month")?.value),a=Number(l.find(c=>c.type==="day")?.value)}return!(r>=1&&r<=12)||!(a>=1&&a<=31)?null:t==="zh"?`${r}\u6708${a}\u65E5`:`${jh[r-1]} ${a}`}var Hi=e=>e==="zh"?"zh-CN":"en-US";function sd(e){if(e==null||e==="")return null;let t=new Date(typeof e=="string"&&/^\d+$/.test(e)?Number(e):e);return Number.isNaN(t.getTime())?null:t}function Pt(e,t){let o=sd(e);return o?new Intl.DateTimeFormat(Hi(t),{year:"numeric",month:"short",day:"numeric"}).format(o):"\u2014"}function _t(e,t){let o=sd(e);return o?new Intl.DateTimeFormat(Hi(t),{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o):"\u2014"}function we(e,t){let o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?new Intl.NumberFormat(Hi(t),{maximumFractionDigits:2}).format(o):"\u2014"}var bo=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(bo||{}),Gh=[0,1],cd=[1,0],dd=[2,3],ud=[3,2],Jh={L:Gh,M:cd,Q:dd,H:ud},Xh=/^\d*$/,Kh=/^[A-Z0-9 $%*+./:-]*$/,qi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Gi=1,Ji=40,ld=3,Yh=3,ma=40,Zh=10,pd=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],fd=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],Vi=class{constructor(t,o,r,a){if(this.version=t,this.ecc=o,t<Gi||t>Ji)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let i=Array.from({length:this.size}).fill(!1);for(let l=0;l<this.size;l++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a===-1){let l=1e9;for(let c=0;c<8;c++){this.applyMask(c),this.drawFormatBits(c);let d=this.getPenaltyScore();d<l&&(a=c,l=d),this.applyMask(c)}}this.mask=a,this.applyMask(a),this.drawFormatBits(a)}size;mask;modules=[];types=[];getModule(t,o){return t>=0&&t<this.size&&o>=0&&o<this.size&&this.modules[o][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2===0,bo.Timing),this.setFunctionModule(r,6,r%2===0,bo.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),o=t.length;for(let r=0;r<o;r++)for(let a=0;a<o;a++)r===0&&a===0||r===0&&a===o-1||r===o-1&&a===0||this.drawAlignmentPattern(t[r],t[a]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let o=this.ecc[1]<<3|t,r=o;for(let i=0;i<10;i++)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,Un(a,i));this.setFunctionModule(8,7,Un(a,6)),this.setFunctionModule(8,8,Un(a,7)),this.setFunctionModule(7,8,Un(a,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,Un(a,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,Un(a,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,Un(a,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let o=this.version<<12|t;for(let r=0;r<18;r++){let a=Un(o,r),i=this.size-11+r%3,s=Math.floor(r/3);this.setFunctionModule(i,s,a),this.setFunctionModule(s,i,a)}}drawFinderPattern(t,o){for(let r=-4;r<=4;r++)for(let a=-4;a<=4;a++){let i=Math.max(Math.abs(a),Math.abs(r)),s=t+a,l=o+r;s>=0&&s<this.size&&l>=0&&l<this.size&&this.setFunctionModule(s,l,i!==2&&i!==4,bo.Position)}}drawAlignmentPattern(t,o){for(let r=-2;r<=2;r++)for(let a=-2;a<=2;a++)this.setFunctionModule(t+a,o+r,Math.max(Math.abs(a),Math.abs(r))!==1,bo.Alignment)}setFunctionModule(t,o,r,a=bo.Function){this.modules[o][t]=r,this.types[o][t]=a}addEccAndInterleave(t){let o=this.version,r=this.ecc;if(t.length!==ga(o,r))throw new RangeError("Invalid argument");let a=fd[r[0]][o],i=pd[r[0]][o],s=Math.floor(Wi(o)/8),l=a-s%a,c=Math.floor(s/a),d=[],f=sb(i);for(let p=0,m=0;p<a;p++){let g=t.slice(m,m+c-i+(p<l?0:1));m+=g.length;let h=lb(g,f);p<l&&g.push(0),d.push(g.concat(h))}let u=[];for(let p=0;p<d[0].length;p++)d.forEach((m,g)=>{(p!==c-i||g>=l)&&u.push(m[p])});return u}drawCodewords(t){if(t.length!==Math.floor(Wi(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<this.size;a++)for(let i=0;i<2;i++){let s=r-i,c=(r+1&2)===0?this.size-1-a:a;!this.types[c][s]&&o<t.length*8&&(this.modules[c][s]=Un(t[o>>>3],7-(o&7)),o++)}}}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let o=0;o<this.size;o++)for(let r=0;r<this.size;r++){let a;switch(t){case 0:a=(r+o)%2===0;break;case 1:a=o%2===0;break;case 2:a=r%3===0;break;case 3:a=(r+o)%3===0;break;case 4:a=(Math.floor(r/3)+Math.floor(o/2))%2===0;break;case 5:a=r*o%2+r*o%3===0;break;case 6:a=(r*o%2+r*o%3)%2===0;break;case 7:a=((r+o)%2+r*o%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[o][r]&&a&&(this.modules[o][r]=!this.modules[o][r])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]===s?(l++,l===5?t+=ld:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*ma),s=this.modules[i][d],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*ma}for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]===s?(l++,l===5?t+=ld:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*ma),s=this.modules[d][i],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*ma}for(let i=0;i<this.size-1;i++)for(let s=0;s<this.size-1;s++){let l=this.modules[i][s];l===this.modules[i][s+1]&&l===this.modules[i+1][s]&&l===this.modules[i+1][s+1]&&(t+=Yh)}let o=0;for(let i of this.modules)o=i.reduce((s,l)=>s+(l?1:0),o);let r=this.size*this.size,a=Math.ceil(Math.abs(o*20-r*10)/r)-1;return t+=a*Zh,t}getAlignmentPatternPositions(){if(this.version===1)return[];{let t=Math.floor(this.version/7)+2,o=this.version===32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,r=[6];for(let a=this.size-7;r.length<t;a-=o)r.splice(1,0,a);return r}}finderPenaltyCountPatterns(t){let o=t[1],r=o>0&&t[2]===o&&t[3]===o*3&&t[4]===o&&t[5]===o;return(r&&t[0]>=o*4&&t[6]>=o?1:0)+(r&&t[6]>=o*4&&t[0]>=o?1:0)}finderPenaltyTerminateAndCount(t,o,r){return t&&(this.finderPenaltyAddHistory(o,r),o=0),o+=this.size,this.finderPenaltyAddHistory(o,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,o){o[0]===0&&(t+=this.size),o.pop(),o.unshift(t)}};function Hn(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)o.push(e>>>r&1)}function Un(e,t){return(e>>>t&1)!==0}var vr=class{constructor(t,o,r){if(this.mode=t,this.numChars=o,this.bitData=r,o<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}},Qh=[1,10,12,14],eb=[2,9,11,13],tb=[4,8,16,16];function md(e,t){return e[Math.floor((t+7)/17)+1]}function gd(e){let t=[];for(let o of e)Hn(o,8,t);return new vr(tb,e.length,t)}function nb(e){if(!hd(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let o=0;o<e.length;){let r=Math.min(e.length-o,3);Hn(Number.parseInt(e.substring(o,o+r),10),r*3+1,t),o+=r}return new vr(Qh,e.length,t)}function ob(e){if(!bd(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t=[],o;for(o=0;o+2<=e.length;o+=2){let r=qi.indexOf(e.charAt(o))*45;r+=qi.indexOf(e.charAt(o+1)),Hn(r,11,t)}return o<e.length&&Hn(qi.indexOf(e.charAt(o)),6,t),new vr(eb,e.length,t)}function rb(e){return e===""?[]:hd(e)?[nb(e)]:bd(e)?[ob(e)]:[gd(ib(e))]}function hd(e){return Xh.test(e)}function bd(e){return Kh.test(e)}function ab(e,t){let o=0;for(let r of e){let a=md(r.mode,t);if(r.numChars>=1<<a)return Number.POSITIVE_INFINITY;o+=4+a+r.bitData.length}return o}function ib(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)e.charAt(o)!=="%"?t.push(e.charCodeAt(o)):(t.push(Number.parseInt(e.substring(o+1,o+3),16)),o+=2);return t}function Wi(e){if(e<Gi||e>Ji)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let o=Math.floor(e/7)+2;t-=(25*o-10)*o-55,e>=7&&(t-=36)}return t}function ga(e,t){return Math.floor(Wi(e)/8)-pd[t[0]][e]*fd[t[0]][e]}function sb(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let o=1;for(let r=0;r<e;r++){for(let a=0;a<t.length;a++)t[a]=ji(t[a],o),a+1<t.length&&(t[a]^=t[a+1]);o=ji(o,2)}return t}function lb(e,t){let o=t.map(r=>0);for(let r of e){let a=r^o.shift();o.push(0),t.forEach((i,s)=>o[s]^=ji(i,a))}return o}function ji(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let r=7;r>=0;r--)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o}function cb(e,t,o=1,r=40,a=-1,i=!0){if(!(Gi<=o&&o<=r&&r<=Ji)||a<-1||a>7)throw new RangeError("Invalid value");let s,l;for(s=o;;s++){let u=ga(s,t)*8,p=ab(e,s);if(p<=u){l=p;break}if(s>=r)throw new RangeError("Data too long")}for(let u of[cd,dd,ud])i&&l<=ga(s,u)*8&&(t=u);let c=[];for(let u of e){Hn(u.mode[0],4,c),Hn(u.numChars,md(u.mode,s),c);for(let p of u.getData())c.push(p)}let d=ga(s,t)*8;Hn(0,Math.min(4,d-c.length),c),Hn(0,(8-c.length%8)%8,c);for(let u=236;c.length<d;u^=253)Hn(u,8,c);let f=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((u,p)=>f[p>>>3]|=u<<7-(p&7)),new Vi(s,t,f,a)}function vd(e,t){let{ecc:o="L",boostEcc:r=!1,minVersion:a=1,maxVersion:i=40,maskPattern:s=-1,border:l=1}=t||{},c=typeof e=="string"?rb(e):Array.isArray(e)?[gd(e)]:void 0;if(!c)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let d=cb(c,Jh[o],a,i,s,r),f=db({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},l);return t?.invert&&(f.data=f.data.map(u=>u.map(p=>!p))),t?.onEncoded?.(f),f}function db(e,t=1){if(!t)return e;let{size:o}=e,r=o+t*2;e.size=r,e.data.forEach(i=>{for(let s=0;s<t;s++)i.unshift(!1),i.push(!1)});for(let i=0;i<t;i++)e.data.unshift(Array.from({length:r},s=>!1)),e.data.push(Array.from({length:r},s=>!1));let a=bo.Border;e.types.forEach(i=>{for(let s=0;s<t;s++)i.unshift(a),i.push(a)});for(let i=0;i<t;i++)e.types.unshift(Array.from({length:r},s=>a)),e.types.push(Array.from({length:r},s=>a));return e}function Ie(e){return n("section",{class:`settings-panel fx-panel${e.danger?" fx-panel--danger":""}`,"aria-label":e.label,children:[n("div",{class:`settings-panel-head${e.actions?" settings-panel-head--actions":""}`,children:[e.icon&&n("span",{class:"settings-panel-icon",children:n(B,{name:e.icon,size:16})}),n("div",{children:[n("strong",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.actions&&n("div",{class:"settings-panel-actions settings-panel-actions--wide",children:e.actions})]}),e.children]})}function We(e){return n("div",{class:`settings-control-row settings-setting-row fx-row fx-block${e.class?` ${e.class}`:""}`,children:[n("div",{class:"settings-control-copy",children:n("span",{children:[n("strong",{children:e.label}),e.desc&&n("small",{children:e.desc})]})}),e.children!==void 0&&e.children!==null&&n("div",{class:"settings-row-control fx-row-control",children:e.children})]})}function Te(e){return n("div",{class:`fx-sub${e.class?` ${e.class}`:""}`,children:e.children})}function Qt(e){return n("button",{type:"button",role:"switch","aria-checked":e.checked,"aria-label":e.label,class:`settings-switch${e.checked?" active":""}`,disabled:e.disabled,onClick:()=>e.onChange(!e.checked),children:n("span",{})})}function q(e){let t=e.variant??"ghost",o=t==="danger-solid"?"btn sm danger fx-danger-solid":`btn sm ${t}`;return n("button",{type:e.submit?"submit":"button",class:o,disabled:e.disabled||e.pending,"aria-busy":e.pending||void 0,"aria-label":e.label,title:e.title,"data-armed":e.armed?"true":void 0,onClick:e.onClick,children:[e.pending&&n(jt,{}),e.children]})}var ha=5e3;function Gt(e){let[t,o]=_(!1),r=oe(null),a=()=>{r.current&&clearTimeout(r.current),r.current=null,o(!1)};J(()=>()=>{r.current&&clearTimeout(r.current)},[]),J(()=>{(e.pending||e.disabled)&&a()},[e.pending,e.disabled]);let i=()=>{if(!t){o(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,o(!1)},ha);return}a(),e.onConfirm()},s=e.variant??"ghost";return n(q,{variant:t?s==="danger"||s==="danger-solid"?"danger-solid":"primary":s,armed:t,pending:e.pending,disabled:e.disabled,onClick:i,children:t?e.confirmLabel:e.label})}function ve(e){let t=vt(),{a:o}=e;return o.error?n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(o.error,t)}),o.captcha&&n("button",{type:"button",class:"fx-link",onClick:()=>void mo(e.captchaSection??"security"),children:[t("common.openInBrowser")," ",n(B,{name:"external",size:12})]})]}):o.success?n("div",{class:"fx-msg is-ok",role:"status",children:ht(o.success,t)}):null}function ce(e){return n("p",{class:`fx-note${e.tone?` is-${e.tone}`:""}`,children:e.children})}function wt(e){return n("div",{class:"settings-empty-row fx-block",children:e.children})}function yr(e){let t=vt(),o=e.display;return n("div",{class:`fx-quota${o.low?" is-low":""}`,children:[n("div",{class:"fx-quota-top",children:[n("span",{class:"fx-quota-label",children:e.label}),n("span",{class:"fx-quota-value",children:o.unlimited?t("common.unlimited"):o.text})]}),n("div",{class:"fx-bar",role:"progressbar","aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.pct,"aria-valuetext":o.unlimited?t("common.unlimited"):o.text,children:n("span",{style:{width:`${o.pct}%`}})}),e.note&&n("div",{class:"fx-quota-note",children:e.note})]})}function It(e){return n("div",{class:"seg fx-seg",role:"radiogroup","aria-label":e.label,children:e.options.map(t=>n("button",{type:"button",role:"radio","aria-checked":t.value===e.value,class:t.value===e.value?"active":"",onClick:()=>{t.value!==e.value&&e.onChange(t.value)},children:t.label}))})}async function Uo(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}function Ut(e){let t=vt(),[o,r]=_("idle"),a=oe(null);J(()=>()=>{a.current&&clearTimeout(a.current)},[]);let i=async()=>{let l=await Uo(e.text);r(l?"copied":"failed"),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r("idle"),1800)},s=o==="copied"?t("common.copied"):o==="failed"?t("common.copyFailed"):e.label;return n(R,{children:[n(q,{disabled:e.disabled||!e.text,onClick:()=>void i(),label:e.iconOnly?e.label:void 0,title:e.iconOnly?s:void 0,children:[n(B,{name:o==="copied"?"check":e.iconOnly&&o==="failed"?"alert":"copy",size:12}),!e.iconOnly&&s]}),e.iconOnly&&n("span",{class:"fx-sr-only",role:"status",children:o==="idle"?"":s})]})}function ub(e){let t=sn(()=>{try{return vd(e.value,{ecc:"M",border:2})}catch{return null}},[e.value]);if(!t)return null;let o="";t.data.forEach((a,i)=>a.forEach((s,l)=>{s&&(o+=`M${l} ${i}h1v1h-1z`)}));let r=e.size??148;return n("svg",{class:"fx-qr",width:r,height:r,viewBox:`0 0 ${t.size} ${t.size}`,"shape-rendering":"crispEdges",role:"img","aria-label":e.label,children:[n("rect",{width:t.size,height:t.size,fill:"#fff"}),n("path",{d:o,fill:"#000"})]})}function Xi(e){let t=vt(),{device:o}=e;return n("div",{class:"fx-device",children:[n(ub,{value:o.url,label:t("signin.qrLabel")}),n("div",{class:"fx-device-copy",children:[n("p",{children:t("signin.deviceHint")}),o.userCode&&n("div",{class:"fx-device-code",children:[n("span",{children:t("signin.code")}),n("code",{children:o.userCode})]}),n("div",{class:"fx-inline",children:[n("button",{type:"button",class:"fx-link",onClick:()=>window.open(o.url,"_blank"),children:[t("signin.openLink")," ",n(B,{name:"external",size:12})]}),n(Ut,{text:o.url,label:t("signin.copyLink")})]})]})]})}function lt(){let e=vt(),t=fe(),[o,r]=_(null);J(()=>Q().onAuthDevice?.(i=>r(i)),[]);let a=()=>void t.run(async()=>{let i=Q().forsionLogin;if(!i)return{error:{key:"err.unavailable"}};try{await i()}catch(s){r(null);let l=br(gt(s));return l?{error:l}:void 0}});return n("section",{class:"settings-panel fx-panel fx-signin","aria-label":e("signin.button"),children:n("div",{class:"settings-state fx-signin-body",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"user",size:18})}),n("p",{class:"fx-signin-lead",children:e("signin.desc")}),n("div",{class:"settings-state-actions",children:n(q,{variant:"primary",pending:t.pending,onClick:a,children:t.pending?e("signin.pending"):e("signin.button")})}),o&&n(Xi,{device:o}),n(ve,{a:t})]})})}function Je(e){let t=vt(),o=e.panels??2,r=e.rows??2;return n("div",{class:"fx-skeleton","aria-busy":"true","aria-label":t("common.loading"),children:Array.from({length:o},(a,i)=>n("section",{class:"settings-panel fx-panel",children:[n("div",{class:"settings-panel-head",children:[n("span",{class:"fx-skel fx-skel--icon"}),n("div",{children:[n("span",{class:"fx-skel fx-skel--title"}),n("span",{class:"fx-skel fx-skel--line"})]})]}),Array.from({length:r},(s,l)=>n("div",{class:"settings-control-row",children:n("span",{class:"fx-skel fx-skel--row"})},l))]},i))})}function ut(e){let t=vt();return n("section",{class:"settings-panel fx-panel",children:n("div",{class:"settings-state fx-error-state",role:"alert",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"alert",size:18})}),n("strong",{children:t("common.loadFailed")}),n("p",{children:ht(e.error,t)}),n("div",{class:"settings-state-actions",children:n(q,{variant:"primary",onClick:e.onRetry,children:[n(B,{name:"refresh",size:12})," ",t("common.retry")]})})]})})}function fb(e,t){for(var o in t)e[o]=t[o];return e}function yd(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function xd(e,t){this.props=e,this.context=t}(xd.prototype=new kn).isPureReactComponent=!0,xd.prototype.shouldComponentUpdate=function(e,t){return yd(this.props,e)||yd(this.state,t)};var kd=_e.__b;_e.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),kd&&kd(e)};var Sw=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var mb=_e.__e;_e.__e=function(e,t,o,r){if(e.then){for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k||[]),a.__c(e,t)}mb(e,t,o,r)};var wd=_e.unmount;function Td(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=fb({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Td(r,t,o)})),e}function Ed(e,t,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ed(r,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}function Ki(){this.__u=0,this.o=null,this.__b=null}function Pd(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ba(){this.i=null,this.l=null}_e.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),wd&&wd(e)},(Ki.prototype=new kn).__c=function(e,t){var o=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(o);var a=Pd(r.__v),i=!1,s=function(){i||r.__z||(i=!0,o.__R=null,a?a(c):c())};o.__R=s;var l=o.__P;o.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=Ed(d,d.__c.__P,d.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.o.pop();)f.__P=l,f.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Ki.prototype.componentWillUnmount=function(){this.o=[]},Ki.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Td(this.__b,o,r.__O=r.__P)}this.__b=null}var a=t.__a&&fo(R,null,e.fallback);return a&&(a.__u&=-33),[fo(R,null,t.__a?null:e.children),a]};var zd=function(e,t,o){if(++o[1]===o[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(o=e.i;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.i=o=o[2]}};function gb(e){return this.getChildContext=function(){return e.context},e.children}function hb(e){var t=this,o=e.h;if(t.componentWillUnmount=function(){Le(null,t.v),t.v=null,t.h=null},t.h&&t.h!==o&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=o,t.v={nodeType:1,parentNode:o,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:o.namespaceURI,insertBefore:function(a,i){this.childNodes.push(a),t.h.insertBefore(a,i)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),t.h.removeChild(a)}}}Le(fo(gb,{context:t.context},e.__v),t.v)}function va(e,t){var o=fo(hb,{__v:e,h:t});return o.containerInfo=t,o}(ba.prototype=new kn).__a=function(e){var t=this,o=Pd(t.__v),r=t.l.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),zd(t,e,r)):a()};o?o(i):i()}},ba.prototype.render=function(e){this.i=null,this.l=new Map;var t=mr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.l.set(t[o],this.i=[1,0,this.i]);return e.children},ba.prototype.componentDidUpdate=ba.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,o){zd(e,o,t)})};var bb=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,yb=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xb=/[A-Z0-9]/g,kb=typeof document<"u",wb=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};kn.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(kn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Sd=_e.event;_e.event=function(e){return Sd&&(e=Sd(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Id,zb={configurable:!0,get:function(){return this.class}},_d=_e.vnode;_e.vnode=function(e){typeof e.type=="string"&&(function(t){var o=t.props,r=t.type,a={},i=r.indexOf("-")==-1;for(var s in o){var l=o[s];if(!(s==="value"&&"defaultValue"in o&&l==null||kb&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in o&&o.value==null?s="value":s==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||wb(o.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":yb.test(s)&&(s=c):c=s="oninput":i&&vb.test(s)?s=s.replace(xb,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&a[s=c]&&(s="oninputCapture"),a[s]=l}}r=="select"&&(a.multiple&&Array.isArray(a.value)&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.value.indexOf(d.props.value)!=-1})),a.defaultValue!=null&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.multiple?a.defaultValue.indexOf(d.props.value)!=-1:a.defaultValue==d.props.value}))),o.class&&!o.className?(a.class=o.class,Object.defineProperty(a,"className",zb)):o.className&&(a.class=a.className=o.className),t.props=a})(e),e.$$typeof=bb,_d&&_d(e)};var Cd=_e.__r;_e.__r=function(e){Cd&&Cd(e),Id=e.__c};var Ad=_e.diffed;_e.diffed=function(e){Ad&&Ad(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value),Id=null};function Md(e){return/^[a-z0-9](?:[a-z0-9-]{1,28})?[a-z0-9]$/.test(e)&&e.length>=3}var Yi=e=>e.trim().toLowerCase();function Zi(e,t=Date.now()){return e.cooldownUntil&&Date.parse(e.cooldownUntil)>t?{kind:"cooldown",until:e.cooldownUntil}:e.freeRenamesLeft>0?{kind:"free",left:e.freeRenamesLeft}:e.cards>0?{kind:"card",cards:e.cards}:e.card?.available&&e.card.productId?{kind:"buy",productId:e.card.productId,price:e.card.pricePoints}:{kind:"unavailable"}}function Qi(e,t){let o=(t||"").replace(/\/+$/,"");return o?`${o}/${encodeURIComponent(e)}`:null}function ya(e){if(typeof e!="string"||!/^https?:\/\//i.test(e))return null;try{return new URL(e).origin}catch{return null}}var Ho=e=>e.replace(/^https?:\/\//i,"");function Rd(e){let t=(e||"").replace(/\/+$/,"");return t?`${Ho(t)}/`:"@"}var es=!1;function Dd(){es=!0}function Sb(){let e=es;return es=!1,e}function Nd(){let{t:e}=ie(),t=Fe(),[o,r]=_(null),[a,i]=_(!1),[s,l]=_(null);if(J(()=>{(async()=>{let d=await j("/connect/handle");if(!t.current||!d.ok||!d.data?.handle)return;let f=d.data.publicOrigin||null;if(d.data.publicOrigin===void 0){let u=await j("/profile/me");if(!t.current)return;f=u.ok?ya(u.data?.profile?.profileUrl):null}r({handle:d.data.handle,pub:f}),Sb()&&i(!0)})()},[]),!o)return null;let c=Qi(o.handle,o.pub);return n(R,{children:[n(We,{class:"fx-row--wide",label:e("address.label"),desc:s?n("span",{class:"fx-addr-done",role:"status",children:s}):void 0,children:[n("span",{class:"fx-value fx-addr-value",children:c?Ho(c):`@${o.handle}`}),n(q,{onClick:()=>{l(null),i(!0)},children:[n(B,{name:"pencil",size:12})," ",e("address.change")]})]}),a&&n(_b,{pub:o.pub,onClose:()=>i(!1),onChanged:d=>{let f=d.publicOrigin||o.pub;r(p=>p&&{...p,handle:d.handle,pub:f});let u=Qi(d.handle,f);l(e("address.done",{url:u?Ho(u):`@${d.handle}`}))}})]})}var Ld={INSUFFICIENT_POINTS:"address.errPoints",NOT_AVAILABLE:"address.errSoldout",LIMIT_REACHED:"address.errLimit"};function _b(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(null),[s,l]=_(null),[c,d]=_(""),[f,u]=_({handle:"",state:"idle"}),[p,m]=_(!1),[g,h]=_(null),[y,v]=_(0),x=oe(0),w=async()=>{let U=await j("/connect/handle");return r.current&&U.ok&&U.data?.handle?(i(U.data),v(0),U.data):null};J(()=>{w().then(ae=>{!ae&&r.current&&i(he=>he??"failed")}),j("/credits/balance").then(ae=>{r.current&&ae.ok&&l(Number(ae.data?.balance)||0)});let U=ae=>{ae.key==="Escape"&&e.onClose()};return window.addEventListener("keydown",U),()=>window.removeEventListener("keydown",U)},[]);let z=a&&a!=="failed"?a.handle:"";J(()=>{let U=Yi(c),ae=++x.current,he=me=>u({handle:U,state:me});if(!U){he("idle");return}if(!Md(U)){he("bad");return}if(U===z){he("same");return}he("checking");let qe=setTimeout(()=>{j(`/connect/handle/check?handle=${encodeURIComponent(U)}`).then(me=>{ae!==x.current||!r.current||he(me.ok?me.data?.ok?"ok":me.data?.code==="same"?"same":"bad":"idle")})},300);return()=>clearTimeout(qe)},[c,z]);let I=n("div",{class:"fx-addr-head",children:[n(B,{name:"home",size:16}),n("strong",{children:t("address.title")}),n("button",{type:"button",class:"fx-addr-close","aria-label":t("common.cancel"),title:t("common.cancel"),onClick:e.onClose,children:n(B,{name:"x",size:15})})]}),F=U=>va(n("div",{class:"fx-addr-backdrop",onClick:ae=>{ae.target===ae.currentTarget&&e.onClose()},children:[n("style",{children:Xc}),n("section",{class:"fx-addr",role:"dialog","aria-modal":"true","aria-label":t("address.title"),children:[I,U]})]}),document.body);if(a===null||a==="failed")return F(n("p",{class:"fx-addr-desc",children:t(a===null?"common.loading":"address.loadFailed")}));let $=Zi(a),N=$.kind==="buy"&&y>0?{kind:"card",cards:y}:$,Y=Yi(c),C=f.handle===Y?f.state:Y?"checking":"idle",D=C==="ok",H=Rd(a.publicOrigin||e.pub||null),E=N.kind==="buy"&&s!==null&&s<N.price,Z=N.kind==="cooldown"||N.kind==="unavailable",S=N.kind==="card"?t("address.goCard"):N.kind==="buy"?t("address.goBuy",{price:we(N.price,o)}):t("address.go"),A=N.kind==="cooldown"?["clock",t("address.cooldown",{days:a.cooldownDays}),t("address.cooldownUntil",{date:Pt(N.until,o)})]:N.kind==="free"?["info",N.left>1?t("address.freeN",{n:N.left}):t("address.freeOne"),t("address.freeAfter")]:N.kind==="card"?["ticket",t("address.card"),t("address.cardHave",{n:N.cards})]:N.kind==="buy"?["ticket",t("address.need"),t("address.price",{price:we(N.price,o),balance:s===null?"\u2014":we(s,o)})]:["ticket",t("address.need"),t("address.soldout")],M=(U,ae)=>{let he=ae?Zi(ae):null;switch(U.code){case"taken":return{key:"address.errTaken"};case"need_card":return{key:"address.errNeedCard"};case"cooldown":return{key:"address.errCooldown",vars:{date:he?.kind==="cooldown"?Pt(he.until,o):"\u2014"}};case"invalid":case"reserved":case"same":return{key:"address.bad"};default:return bt(U)}},G=async()=>{let U=Y;if(!D)return;m(!0),h(null);let ae=!1;try{if(N.kind==="buy"){if(!r.current)return;let De=await j("/shop/purchase",{method:"POST",body:{productId:N.productId,payMethod:"points"}});if(!r.current)return;if(!De.ok){h(De.code&&Ld[De.code]?{key:Ld[De.code]}:bt(De));return}ae=!0,v(Qe=>Qe+1)}if(!r.current)return;let he=await j("/connect/handle",{method:"PUT",body:{handle:U}});if(!r.current)return;if(he.ok&&he.data?.handle){e.onChanged(he.data),e.onClose();return}let qe=await w();if(!r.current)return;if(qe&&qe.handle===U){e.onChanged(qe),e.onClose();return}if(he.ok){h({key:"err.generic"});return}(he.code==="taken"||he.code==="invalid"||he.code==="reserved")&&u({handle:U,state:"bad"});let me=!qe&&he.status===0?{key:"address.errUnknown"}:M(he,qe);h(ae?{key:"address.errBought",vars:{reason:ht(me,t)}}:me)}finally{r.current&&m(!1)}},ee=C==="checking"?n("span",{class:"fx-addr-check",children:t("address.checking")}):C==="ok"?n("span",{class:"fx-addr-check is-ok",children:[n(B,{name:"check",size:13}),t("address.ok")]}):C==="same"?n("span",{class:"fx-addr-check",children:t("address.same")}):C==="bad"?n("span",{class:"fx-addr-check is-bad",children:t("address.bad")}):null;return F(n(R,{children:[n("p",{class:"fx-addr-desc",children:t("address.desc")}),n("div",{class:"fx-addr-row",children:[n("label",{children:t("address.now")}),n("span",{class:"fx-addr-now",children:[H,n("b",{children:a.handle})]})]}),n("div",{class:"fx-addr-row",children:[n("label",{for:"fx-addr-input",children:t("address.new")}),n("span",{class:"fx-addr-in",children:[n("i",{children:H}),n("input",{id:"fx-addr-input",type:"text",autoFocus:!0,autoComplete:"off",spellcheck:!1,maxLength:30,value:c,placeholder:a.handle,disabled:N.kind==="cooldown"||p,onInput:U=>{d(U.target.value),h(null)},onKeyDown:U=>{U.key==="Enter"&&D&&!Z&&!E&&!p&&G()}})]})]}),n("div",{class:"fx-addr-row fx-addr-under",children:[n("label",{}),n("div",{children:[ee,n("span",{class:"fx-addr-rule",children:t("address.rule")})]})]}),n("div",{class:"fx-addr-cost",children:[n(B,{name:A[0],size:15}),n("span",{children:A[1]}),n("span",{class:"fx-addr-grow"}),n("em",{children:A[2]})]}),E&&n("div",{class:"fx-addr-msg",role:"alert",children:t("address.errPoints")}),g&&n("div",{class:"fx-addr-msg",role:"alert",children:ht(g,t)}),n("div",{class:"fx-addr-foot",children:[n(q,{disabled:p,onClick:e.onClose,children:t("common.cancel")}),n("span",{class:"fx-addr-grow"}),(N.kind==="buy"||N.kind==="unavailable")&&n(q,{onClick:()=>void zn("storefront"),children:t("address.shop")}),n(q,{variant:"primary",pending:p,disabled:Z||E||!D,onClick:()=>void G(),children:S})]})]}))}var Cb=5e3;function Od(){let{t:e,locale:t}=ie(),o=Fe(),r=fe(),[a,i]=_(null),[s,l]=_(!1),c=oe(0),d=oe(!1),f=Nt(async()=>{let h=++c.current;d.current=!0;let y=await j("/wechat-helper/me");d.current=!1,!(!o.current||h!==c.current)&&(y.ok?(i(y.data),l(!1)):y.status===404?i(null):l(!0))},[]);J(()=>{f()},[f]);let u=!!a?.code&&!a.bound;J(()=>{if(!u)return;let h=setInterval(()=>{d.current||f()},Cb);return()=>clearInterval(h)},[u,f]);let p=()=>void r.run(async()=>{c.current++;let h=await j("/wechat-helper/code",{method:"POST",body:{locale:t}});if(!h.ok)return $e(h);c.current++,o.current&&i(y=>y&&{...y,code:h.data})}),m=()=>void r.run(async()=>{c.current++;let h=await j("/wechat-helper/binding",{method:"DELETE"});if(!h.ok)return $e(h);o.current&&i(y=>y&&{...y,bound:!1,boundAt:null,code:null}),await f()});if(!a&&s)return n(Ie,{icon:"message",title:e("wechat.title"),children:[n(Te,{children:n(ce,{tone:"warn",children:e("common.loadFailed")})}),n("div",{class:"settings-panel-footer fx-footer",children:n(q,{onClick:()=>void f(),children:e("common.retry")})})]});if(!a?.enabled)return null;let g=a.contact?e("wechat.contact",{contact:a.contact}):e("wechat.contactUnknown");return n(Ie,{icon:"message",title:e("wechat.title"),desc:e("wechat.desc"),children:[a.bound?n(We,{label:e("wechat.status"),desc:e(a.eligible?"wechat.where":"wechat.notEligible"),children:[n("span",{class:"fx-value",children:a.boundAt?e("wechat.boundAt",{date:Pt(a.boundAt,t)}):e("wechat.bound")}),n(Gt,{label:e("wechat.unbind"),confirmLabel:e("wechat.unbindConfirm"),variant:"danger",pending:r.pending,onConfirm:m})]}):a.eligible?a.code?n(R,{children:[n(We,{label:e("wechat.code"),desc:e("wechat.send",{contact:g}),children:[n("code",{class:"fx-code",children:a.code.code}),n(Ut,{text:a.code.code,label:e("wechat.copy"),iconOnly:!0}),n(q,{pending:r.pending,onClick:p,children:e("wechat.newCode")})]}),n(Te,{class:"fx-sub--tight",children:n("p",{class:"fx-muted",role:"status",children:e("wechat.waiting",{time:_t(a.code.expiresAt,t)})})})]}):n(We,{label:e("wechat.code"),desc:g,children:n(q,{variant:"primary",pending:r.pending,onClick:p,children:e("wechat.getCode")})}):n(We,{label:e("wechat.status"),children:n("span",{class:"fx-value is-empty",children:e("wechat.notEligible")})}),r.error&&n(Te,{class:"fx-sub--tight",children:n(ve,{a:r})})]})}function Bd(){let{t:e}=ie(),t=nt(()=>j("/auth/me"));if(t.state==="loading")return n(Je,{panels:2});if(t.state==="signedOut")return n(lt,{});if(t.state==="error")return n(ut,{error:t.error,onRetry:t.retry});let o=t.data;return n(R,{children:[n(Ie,{icon:"user",title:e("account.details.title"),desc:e("account.details.desc"),children:[n(We,{label:e("account.details.username"),children:[n("span",{class:"fx-value",children:o.username}),o.role==="ADMIN"&&n("span",{class:"fx-tag",children:e("account.role.admin")})]}),n(Nd,{}),n(Fd,{kind:"phone",value:o.phone}),n(Fd,{kind:"email",value:o.email})]}),n(Od,{}),n(Ab,{}),n(Eb,{})]})}function Fd(e){let{t,goTo:o}=ie(),r=!!e.value,a=r?e.kind==="phone"?pa(e.value):fa(e.value):t("account.contact.unbound"),i=e.kind==="phone"?t("account.contact.phone"):t("account.contact.email");return n(We,{label:i,children:o?n("button",{type:"button",class:`fx-link-row${r?"":" is-empty"}`,onClick:()=>o("security"),title:t("account.contact.manage"),children:[n("span",{children:a}),n(B,{name:"chevron",size:12})]}):n("span",{class:`fx-value${r?"":" is-empty"}`,children:a})})}function Ab(){let{t:e}=ie(),t=Fe(),[o,r]=_(null),[a,i]=_(!1),[s,l]=_(null),[c,d]=_(null),f=fe(),u=fe(),p=fe(),m=!wn(Q()),g=m&&!!Q().authAccounts;J(()=>{let w=0,z=()=>{let $=Q().authAccounts;if(!g||!$)return;let N=++w;i(!1),$().then(Y=>{N===w&&r(Array.isArray(Y)?Y:[])}).catch(()=>{N===w&&i(!0)})};z();let I=Q().onAuthChanged?.(z),F=Q().onAuthDevice?.($=>d($));return()=>{w++,I?.(),F?.()}},[]);let h=w=>{l(w),f.run(async()=>{let z=Q().forsionSwitchAccount;if(!z)return{error:{key:"err.unavailable"}};try{await z(w)}catch(I){let F=br(gt(I));return F?{error:F}:void 0}finally{t.current&&l(null)}})},y=()=>void u.run(async()=>{let w=Q().forsionLogin;if(!w)return{error:{key:"err.unavailable"}};d(null);try{await w()}catch(z){t.current&&d(null);let I=br(gt(z));return I?{error:I}:void 0}}),v=()=>void p.run(async()=>{let w=Q().forsionLogout;if(!w)return{error:{key:"err.unavailable"}};try{await w()}catch(z){return{error:{raw:gt(z)||e("err.generic")}}}}),x=f.pending||u.pending||p.pending;return n(Ie,{icon:m?"laptop":"user",title:e(m?"local.title":"session.title"),desc:e(m?"local.desc":"session.desc"),children:[g&&o===null&&!a&&n(wt,{children:[n(jt,{})," ",e("common.loading")]}),a&&n("div",{class:"fx-sub",children:n(ce,{tone:"warn",children:e("local.loadFailed")})}),o&&o.length===0&&n(wt,{children:e("local.empty")}),o&&o.length>0&&n("div",{class:"fx-list fx-block",role:"list",children:o.map(w=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-icon",children:n(B,{name:"user",size:14})}),n("span",{class:"fx-list-main",children:[n("strong",{children:w.nickname||w.username||"Forsion"}),n("small",{children:[w.username&&w.nickname?w.username:null,Tb(w.cloudUrl)].filter(Boolean).join(" \xB7 ")})]}),w.active?n("span",{class:"fx-tag fx-tag--accent",children:[n(B,{name:"check",size:11})," ",e("local.current")]}):n(q,{pending:s===w.id,disabled:x&&s!==w.id,onClick:()=>h(w.id),children:e("local.switch")})]},w.id))}),u.pending&&c&&n("div",{class:"fx-sub",children:n(Xi,{device:c})}),n("div",{class:"settings-panel-footer fx-footer",children:[n(q,{pending:u.pending,disabled:x&&!u.pending,onClick:y,children:[n(B,{name:"plus",size:12})," ",u.pending?e("signin.pending"):e("local.add")]}),n(q,{pending:p.pending,disabled:x&&!p.pending,onClick:v,children:[n(B,{name:"logout",size:12})," ",e("local.signOut")]})]}),(f.error||u.error||p.error)&&n("div",{class:"fx-sub fx-sub--tight",children:[n(ve,{a:f}),n(ve,{a:u}),n(ve,{a:p})]})]})}function Tb(e){try{return new URL(e).host}catch{return e}}function Eb(){let{t:e}=ie(),t=fe();return n("div",{class:"fx-page-foot",children:[n("button",{type:"button",class:"fx-link",disabled:t.pending,onClick:()=>void t.run(async()=>await mo()?void 0:{error:{key:"err.openFailed"}}),children:[e("account.web.open")," ",n(B,{name:"external",size:12})]}),n("span",{class:"fx-muted",children:e("account.web.desc")}),n(ve,{a:t})]})}var Pb=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function xa(e,t,o=Pb){let r=Q().cloudInvoke;if(!r)throw new Error("no_bridge");let a=await r(e,t);if(!o(a))throw new Error(String(a?.error??"unavailable"));return a}var Ib="https://forsion.net/legal/privacy";function $d(){let{t:e,locale:t}=ie(),o=Fe(),[r,a]=_(null),[i,s]=_(!1),[l,c]=_(null),d=fe(),f=fe(),u=fe();if(J(()=>{let v=0,x=()=>{let z=++v;xa("telemetry:get").then(I=>{o.current&&z===v&&(a(I),s(!0))},()=>{o.current&&z===v&&s(!0)})};x();let w=Q().onAuthChanged?.(()=>x());return()=>{v++,w?.()}},[]),!i)return n(Je,{panels:1});if(!r)return n(wt,{children:e("privacy.unavailable")});let{signedIn:p}=r,m=r.enabled&&r.noticeSeen&&p,g=v=>void d.run(async()=>{try{let x=await xa("telemetry:set",v?{enabled:!0,noticeSeen:!0}:{enabled:!1});o.current&&(a(x),v||c(null))}catch(x){return{error:{raw:gt(x)||e("err.generic")}}}}),h=()=>void f.run(async()=>{try{let v=await xa("telemetry:sent",void 0,x=>Array.isArray(x?.batches));o.current&&c(v.batches)}catch(v){return{error:{raw:gt(v)||e("err.generic")}}}}),y=()=>void u.run(async()=>{try{let v=await xa("telemetry:delete");return o.current&&(a(v),c(null)),{success:{key:"privacy.delete.done"}}}catch(v){return{error:{key:"privacy.delete.failed",vars:{reason:gt(v)||e("err.generic")}}}}});return n(Ie,{icon:"shield",title:e("privacy.improve.title"),desc:e("privacy.improve.desc"),children:[n(We,{label:e("privacy.improve.switch"),desc:e("privacy.improve.switchHint"),children:n(Qt,{checked:m,disabled:d.pending||!r.available||!p,label:e("privacy.improve.switch"),onChange:g})}),(!r.available||!p||!r.packaged||d.error)&&n(Te,{children:[r.available?p?!r.packaged&&n(ce,{children:e("privacy.devBuild")}):n(ce,{children:e("privacy.signInFirst")}):n(ce,{children:e("privacy.needUpdate")}),n(ve,{a:d})]}),n("div",{class:"settings-control-row fx-row fx-block",children:n("button",{type:"button",class:"fx-link",onClick:()=>{try{Q().openExternal?.(Ib)?.catch(()=>{})}catch{}},children:[e("privacy.policyLink"),n(B,{name:"chevron",size:12})]})}),n(We,{label:e("privacy.sent.title"),desc:r.lastSentAt?e("privacy.sent.last",{time:_t(r.lastSentAt,t)}):e("privacy.sent.hint"),children:n(q,{pending:f.pending,onClick:h,children:[n(B,{name:"eye",size:12})," ",e("privacy.sent.view")]})}),(l||f.error)&&n(Te,{children:[n(ve,{a:f}),l&&(l.length?n("pre",{class:"fx-sent",children:JSON.stringify(l.map(v=>({at:new Date(v.at).toISOString(),...v.body})),null,2)}):n(ce,{children:e("privacy.sent.empty")}))]}),n(We,{label:e("privacy.delete.title"),desc:e("privacy.delete.hint"),children:n(Gt,{label:e("privacy.delete.button"),confirmLabel:e("privacy.delete.confirm"),variant:"danger",pending:u.pending,onConfirm:y})}),(u.error||u.success)&&n(Te,{children:n(ve,{a:u})}),n(Te,{class:"fx-sub--tight",children:n("span",{class:"fx-muted",children:e("privacy.installId",{id:`${r.installId.slice(0,6)}\u2026${r.installId.slice(-4)}`})})})]})}var vo=class extends Error{};async function Ud(e,t=256){if(e.size>20971520)throw new vo;let o=URL.createObjectURL(e);try{let r=new Image;await new Promise((f,u)=>{r.onload=()=>f(),r.onerror=()=>u(new Error("image decode failed")),r.src=o});let a=r.naturalWidth,i=r.naturalHeight;if(!a||!i)throw new Error("empty image");if(a*i>5e7)throw new vo;let s=Math.min(1,t/Math.max(a,i)),l=document.createElement("canvas");l.width=Math.max(1,Math.round(a*s)),l.height=Math.max(1,Math.round(i*s));let c=l.getContext("2d");if(!c)throw new Error("canvas unavailable");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),c.drawImage(r,0,0,l.width,l.height);let d=l.toDataURL("image/jpeg",.85);if(d.length>262144)throw new vo;return d}finally{URL.revokeObjectURL(o)}}function ka(e){let t=String(e||"").trim();if(!t)return"?";let o=Array.from(t)[0];return/[㐀-鿿]/.test(o)?o:Array.from(t).slice(0,2).join("").toUpperCase()}var Hd=["cream","coral","teal","lavender"],qd=["auto","light","dark"],Vd=["none","mist","contour","dots"],Wd=["none","ring","pro"],jd=["early","streak","author","inviter","event"];var ts=e=>!!e&&e.toLowerCase()!=="free";function ns(e,t){let o={...e.settings,...t};return{...e,settings:o,bio:o.bio,links:o.links,skin:o.skin,mode:o.mode,cover:o.cover,frame:o.frame==="pro"&&!ts(e.tier)?"none":o.frame,modules:o.modules.filter(r=>r.show).map(r=>({id:r.id}))}}function os(e,t,o){let r=e.findIndex(s=>s.id===t),a=r+o;if(r<0||a<0||a>=e.length)return e;let i=e.slice();return[i[r],i[a]]=[i[a],i[r]],i}function Gd(e){let t=e.trim();if(!t)return null;let o=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`,r;try{r=new URL(o)}catch{return null}if(r.protocol!=="http:"&&r.protocol!=="https:"||!r.hostname.includes("."))return null;let a=r.toString();return a.length<=200?a:null}function rs(e){return e.replace(/^https?:\/\//i,"").replace(/^www\./i,"").replace(/\/$/,"")}function Jd(e,t){let o=t==="zh"?[[1e8,"\u4EBF"],[1e4,"\u4E07"]]:[[1e9,"B"],[1e6,"M"],[1e3,"K"]];for(let[r,a]of o)if(e>=r){let i=e/r;return{value:i>=100?String(Math.round(i)):String(Math.round(i*10)/10),unit:a}}return{value:Math.round(e).toLocaleString("en-US"),unit:""}}var Xd=e=>e==="zh"?"zh-CN":"en-US";function Kd(e,t){let[o,r]=e.split("-").map(Number);if(!o||!r)return[];let a=new Intl.DateTimeFormat(Xd(t),{month:"short",timeZone:"UTC"});return Array.from({length:12},(i,s)=>a.format(new Date(Date.UTC(o,r-12+s,1))))}function Yd(e,t){let[o,r]=e.split("-").map(Number);return!o||!r?"":new Intl.DateTimeFormat(Xd(t),{year:"numeric",month:"short",timeZone:"UTC"}).format(new Date(Date.UTC(o,r-1,1)))}function Zd([e,t]){let o=r=>`${String((r%24+24)%24).padStart(2,"0")}:00`;return`${o(e)} \u2013 ${o(t)}`}function Qd(e){let t=0,o=Promise.resolve(),r=async a=>{if(a===t)try{let i=await e.read();a===t&&e.apply(i)}catch(i){if(a===t)throw i}};return{read(){let a=t;return o.then(()=>r(a))},write(a){let i=++t,s=o.then(a).then(l=>{i===t&&e.apply(l)});return o=s.catch(()=>i===t?r(i).catch(()=>{}):void 0),s}}}var Mb={free:{from:"#E5E7EB",to:"#D1D5DB",text:"#374151"},plus:{from:"#E6E2AC",to:"#C6C88A",text:"#3D4317"},pro:{from:"#F4DEC4",to:"#E0BD9C",text:"#552F14"},max:{from:"#D0E1C9",to:"#9CBD9F",text:"#1F4130"},ultra:{from:"#EBDDF1",to:"#C7D5F3",text:"#36336A"}},Rb={from:"#6B7280",to:"#4B5563",text:"#FFFFFF"},Lb=/^#[0-9a-fA-F]{6}$/,tu=e=>!!e&&[e.from,e.to,e.text].every(t=>typeof t=="string"&&Lb.test(t)),eu=e=>typeof e=="string"&&e.trim()?e.trim():void 0;function wa(e){let t={},o={},r={};if(!Array.isArray(e))return t;for(let a of e){let i=typeof a?.tier=="string"?a.tier.toLowerCase():"";i&&(r[i]=(r[i]||0)+1);let s=Number(a?.priceMonthly)||0;!i||!tu(a.badge)||i in o&&o[i]<=s||(t[i]={from:a.badge.from,to:a.badge.to,text:a.badge.text,name:eu(a.name),nameEn:eu(a.nameEn)},o[i]=s)}for(let a of Object.keys(t))r[a]>1&&(t[a]={from:t[a].from,to:t[a].to,text:t[a].text});return t}function nu(e,t){if(!t||!Array.isArray(e))return null;let o=e.find(r=>r?.id===t);return o&&tu(o.badge)?{from:o.badge.from,to:o.badge.to,text:o.badge.text}:null}var yo=(e,t)=>e?.[t]??Mb[t]??Rb,ou=(e,t,o)=>t==="en"&&e.nameEn||e.name||o,za=e=>({background:`linear-gradient(135deg, ${e.from}, ${e.to})`,color:e.text,borderColor:"transparent"});var iu={skill:{key:"profile.work.skill",icon:"sparkles"},agent:{key:"profile.work.agent",icon:"bot"},plugin:{key:"profile.work.plugin",icon:"box"},space:{key:"profile.work.space",icon:"grid"},theme:{key:"profile.work.theme",icon:"palette"},"amadeus-plugin":{key:"profile.work.note",icon:"note"},webapp:{key:"profile.work.webapp",icon:"globe"}},au={early:"sprout",streak:"flame",author:"box",inviter:"gift",event:"trophy"},is=e=>!!e&&/^https?:\/\//i.test(e);function ss(e){if(!is(e))return;let t=Q().openExternal;t?t(e).catch(()=>{}):window.open(e,"_blank","noopener")}async function Ob(e,t,o){let r=await j(e,{method:t,body:o});if(!r.ok)throw r;if(!r.data?.profile)throw{ok:!1,status:r.status,code:null,detail:null,transport:"bad_response"};return r.data.profile}var su=e=>e&&typeof e=="object"&&e.ok===!1?bt(e):{raw:String(e?.message||e)};function lu(){let{t:e}=ie(),t=nt(async()=>{let[r,a,i]=await Promise.all([j("/profile/me"),j("/auth/me"),j("/membership/plans")]);return a.ok?r.ok?r.data?.profile?{ok:!0,status:r.status,data:{profile:r.data.profile,me:a.data,badges:i.ok?wa(i.data):{}}}:{ok:!0,status:404,data:null}:r.status===404?{ok:!0,status:404,data:null}:r:a});if(t.state==="loading")return n(Je,{panels:2,rows:3});if(t.state==="signedOut")return n(lt,{});if(t.state==="error")return n(ut,{error:t.error,onRetry:t.retry});if(!t.data)return n(Ie,{icon:"user",title:e("page.profile"),children:n(wt,{children:e("profile.unsupported")})});let{update:o}=t;return n(Fb,{data:t.data,update:r=>o(a=>a&&r(a))})}function Fb(e){let{t}=ie(),o=Fe(),{profile:r,me:a}=e.data,[i,s]=_(null),[l,c]=_(null),[d,f]=_(!1),u=fe(),p=oe(e.update);p.current=e.update;let m=(E,Z,S)=>o.current?Ob(E,Z,S):Promise.reject(new Error("unmounted")),g=sn(()=>Qd({apply:E=>p.current(Z=>({...Z,profile:E})),read:()=>m("/profile/me")}),[]),h=r.handle||a.username||r.username,y={...r,username:h,nickname:a.nickname||null},v=r.settings.isPublic,{profileUrl:x}=r,w=x&&ya(x)?x:null,z=E=>{o.current&&c({tone:"error",m:su(E)})},I=()=>{u.run(async()=>{c(null);try{await g.read()}catch(E){z(E)}})},F=E=>{c(null),e.update(Z=>({...Z,profile:ns(Z.profile,E)})),g.write(()=>m("/profile/me","PUT",E)).catch(z)},$=async E=>{e.update(Z=>({...Z,profile:ns(Z.profile,{modules:Z.profile.settings.modules.map(S=>({...S,public:E.find(A=>A.id===S.id)?.public??S.public}))})})),await g.write(()=>m("/profile/me/visibility","POST",{public:!0,modules:E})),o.current&&(s(null),c({tone:"ok",m:{key:"profile.nowPublic"}}))},N=async()=>{f(!0),c(null);try{await g.write(()=>m("/profile/me/visibility","POST",{public:!1})),o.current&&c({tone:"ok",m:{key:"profile.nowPrivate"}})}catch(E){z(E)}finally{o.current&&f(!1)}},Y=oe(Promise.resolve()),C=(E,Z)=>{let S=Y.current.then(async()=>{if(!o.current)return;let A=await j("/settings",{method:"PUT",body:E});if(o.current){if(!A.ok)return c({tone:"error",m:bt(A)});p.current(M=>({...M,me:{...M.me,...E}})),c({tone:"ok",m:{key:Z}})}});return Y.current=S,S},D=async E=>{c(null);let Z;try{Z=await Ud(E)}catch(S){return c({tone:"error",m:{key:S instanceof vo?"err.avatarTooLarge":"err.avatarInvalid"}})}await C({avatar:Z},"account.avatar.saved")},H=E=>{c(null),s(Z=>Z===E?null:E)};return n("div",{class:"fx-pf-page",children:[n(Ie,{icon:v?"globe":"lock",title:t(v?"profile.state.public":"profile.state.private"),desc:v?n("span",{class:"fx-pf-share",children:w?n(R,{children:[n("a",{class:"fx-pf-share-link",href:w,target:"_blank",rel:"noopener noreferrer",title:t("profile.openPublic"),onClick:E=>{E.preventDefault(),ss(w)},children:[Ho(w)," ",n(B,{name:"external",size:12})]}),n(Ut,{text:w,label:t("profile.copyLink"),iconOnly:!0},w)]}):n(R,{children:[n("span",{children:t("profile.linkUnavailable")}),n(q,{pending:u.pending,disabled:d,onClick:I,children:t("common.retry")})]})}):t("profile.state.privateDesc"),actions:n(R,{children:[n(q,{onClick:()=>H("deco"),children:[n(B,{name:"palette",size:12})," ",t("profile.decorate")]}),v?n(q,{pending:d,onClick:()=>void N(),children:[n(B,{name:"lock",size:12})," ",t("profile.makePrivate")]}):n(q,{variant:"primary",onClick:()=>H("publish"),children:[n(B,{name:"globe",size:12})," ",t("profile.publish")]})]}),children:[i==="publish"&&!v&&n(Bb,{profile:r,url:w,submit:$,onClose:()=>s(null)}),l&&n(Te,{class:"fx-sub--tight",children:n("div",{class:`fx-msg ${l.tone==="ok"?"is-ok":"is-error"}`,role:l.tone==="ok"?"status":"alert",children:ht(l.m,t)})})]}),n("div",{class:"fx-pf-home","data-deco":i==="deco"?"":void 0,children:[n("div",{class:"fx-pf-root",children:n(qb,{view:y,badges:e.data.badges,avatar:a.avatar||null,pinned:r.settings.pinned,owner:{onAvatar:E=>void D(E),onNickname:E=>{c(null),C({nickname:E},"account.nickname.saved")},onBio:E=>F({bio:E}),onLinks:E=>F({links:E}),onPinned:E=>F({pinned:E}),onInvalidLink:()=>c({tone:"error",m:{key:"profile.linkInvalid"}})}})}),i==="deco"&&n($b,{profile:r,onChange:F,onClose:()=>s(null)})]})]})}function Bb(e){let{t}=ie(),o=Fe(),{profile:r}=e,[a,i]=_({}),s=r.settings.modules.filter(m=>m.show).map(m=>({...m,public:a[m.id]??m.public})),[l,c]=_(!1),[d,f]=_(null),u=r.canPublish?null:r.publishBlockedReason||"publish_blocked";if(u)return n(Te,{children:[n(ce,{children:t(u==="machine_username"?"profile.blocked.machineUsername":"profile.blocked.publishBlocked")}),n("div",{class:"fx-inline fx-pf-foot",children:[u==="machine_username"&&n(q,{variant:"primary",onClick:()=>void mo("profile"),children:[t("profile.goRename")," ",n(B,{name:"external",size:12})]}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]});let p=async()=>{c(!0),f(null);try{await e.submit(s.map(({id:m,public:g})=>({id:m,public:g})))}catch(m){if(!o.current)return;f(su(m)),c(!1)}};return n(Te,{children:[e.url&&n("div",{class:"fx-pf-url",children:[n(B,{name:"globe",size:14}),n("span",{children:e.url.replace(/^https?:\/\//i,"")})]}),n(ce,{children:t("profile.publishDesc")}),n("div",{class:"fx-pf-checks",children:s.map(m=>n("div",{class:"fx-pf-check",children:[n("div",{children:[t(`profile.mod.${m.id}`),n("small",{children:t(`profile.modDesc.${m.id}`)})]}),n(Qt,{checked:m.public,disabled:l,label:`${t(`profile.mod.${m.id}`)} \xB7 ${t("profile.col.public")}`,onChange:g=>i(h=>({...h,[m.id]:g}))})]},m.id))}),n(ce,{children:t("profile.publishNever")}),d&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(d,t)}),n("div",{class:"fx-inline fx-pf-foot",children:[n(q,{variant:"primary",pending:l,onClick:()=>void p(),children:t("profile.publishConfirm")}),n(q,{disabled:l,onClick:e.onClose,children:t("common.cancel")})]})]})}function $b(e){let{t}=ie(),o=e.profile.settings,r=ts(e.profile.tier),a=(s,l)=>e.onChange({modules:o.modules.map(c=>c.id===s?{...c,...l}:c)}),i=s=>n("span",{class:"fx-pf-thumb",children:s});return n("aside",{class:"fx-pf-deco","aria-label":t("profile.decorate"),children:n(Ie,{icon:"palette",title:t("profile.decorate"),actions:n(q,{onClick:e.onClose,children:t("common.done")}),children:n("div",{class:"fx-pf-deco-body",children:[n("h4",{children:t("profile.deco.cover")}),n("div",{class:"fx-pf-opts",children:Vd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.cover===s,onClick:()=>e.onChange({cover:s}),children:[i(n("span",{class:`fx-pf-cv-thumb fx-pf-cv-${s}`})),t(`profile.cover.${s}`)]},s))}),n("h4",{children:t("profile.deco.frame")}),n("div",{class:"fx-pf-opts",children:Wd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.frame===s,disabled:s==="pro"&&!r,title:s==="pro"&&!r?t("profile.frameProHint"):void 0,onClick:()=>e.onChange({frame:s}),children:[i(n("span",{class:`fx-pf-fr-demo fx-pf-fr-${s}`,children:n("span",{class:"fx-pf-av"})})),t(`profile.frame.${s}`)]},s))}),!r&&n(ce,{children:t("profile.frameProHint")}),n("h4",{children:t("profile.deco.modules")}),n("div",{class:"fx-pf-mod-head","aria-hidden":"true",children:[n("span",{children:t("profile.col.show")}),n("span",{children:t("profile.col.public")})]}),o.modules.map((s,l)=>n("div",{class:"fx-pf-mod",children:[n("span",{children:t(`profile.mod.${s.id}`)}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===0,title:t("profile.moveUp"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveUp")}`,onClick:()=>e.onChange({modules:os(o.modules,s.id,-1)}),children:n(B,{name:"up",size:13})}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===o.modules.length-1,title:t("profile.moveDown"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveDown")}`,onClick:()=>e.onChange({modules:os(o.modules,s.id,1)}),children:n(B,{name:"down",size:13})}),n(Qt,{checked:s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.show")}`,onChange:c=>a(s.id,{show:c})}),n(Qt,{checked:s.show&&s.public,disabled:!s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.public")}`,onChange:c=>a(s.id,{public:c})})]},s.id)),n(ce,{children:t("profile.modulesHint")}),n("h4",{children:t("profile.deco.skin")}),n("div",{class:"fx-pf-opts",children:Hd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.skin===s,onClick:()=>e.onChange({skin:s}),children:[i(n("span",{class:"fx-pf-swatch","data-skin":s})),t(`profile.skin.${s}`)]},s))}),n("h4",{children:t("profile.deco.mode")}),n(It,{value:o.mode,label:t("profile.deco.mode"),onChange:s=>e.onChange({mode:s}),options:qd.map(s=>({value:s,label:t(`profile.mode.${s}`)}))}),n(ce,{children:t("profile.deco.publicHint")})]})})})}function as(e){let[t,o]=_(null),r=oe(!1),a=oe(null),i=t!==null;Zn(()=>{i&&a.current?.focus()},[i]);let s=e.class?` ${e.class}`:"";if(t===null)return n("button",{type:"button",class:`fx-pf-ed${s}${e.value?"":" is-empty"}`,title:e.label,"aria-label":e.label,onClick:()=>{r.current=!1,o(e.value)},children:[n("span",{children:e.value||e.placeholder}),n(B,{name:e.value?"pencil":"plus",size:12})]});let l=()=>{let c=t.trim();o(null),!r.current&&c!==e.value&&e.onSave(c)};return n("span",{class:`fx-pf-ed-on${s}`,children:[n("input",{ref:a,class:"fx-input",type:"text",value:t,maxLength:e.maxLength,placeholder:e.placeholder,"aria-label":e.label,onInput:c=>o(c.currentTarget.value),onBlur:l,onKeyDown:c=>{c.isComposing||(c.key==="Enter"?c.currentTarget.blur():c.key==="Escape"&&(c.preventDefault(),r.current=!0,c.currentTarget.blur()))}}),e.counter&&n("small",{children:[Array.from(t).length,"/",e.maxLength]})]})}function Sa(e){return n("section",{class:"fx-pf-sec",style:{order:e.order},children:[n("div",{class:"fx-pf-sec-h",children:[n("h3",{children:e.title}),e.action]}),e.children]})}function Ub(e){let{t}=ie(),{work:o}=e,r=iu[o.type],a=n(R,{children:[n("div",{class:"fx-pf-work-top",children:[n("span",{class:"fx-pf-work-ico",children:n(B,{name:r?.icon??"box",size:17})}),n("div",{children:[n("div",{class:"fx-pf-work-name",children:o.name}),n("div",{class:"fx-pf-work-type",children:r?t(r.key):o.type})]})]}),n("p",{children:o.summary}),(o.countKind!=="visits"||o.count>0)&&n("div",{class:"fx-pf-work-foot",children:[n(B,{name:o.countKind==="visits"?"eye":"download",size:12}),t(o.countKind==="visits"?"profile.workVisits":"profile.workInstalls",{n:o.count.toLocaleString("en-US")})]})]}),i=o.url;return is(i)?n("a",{class:"fx-pf-work",href:i,onClick:s=>{s.preventDefault(),ss(i)},children:a}):n("article",{class:"fx-pf-work",children:a})}function Hb(e){let{t}=ie(),o=Fe(),[r,a]=_(null),[i,s]=_(()=>e.pinned.map(f=>`${f.kind}:${f.id}`));J(()=>{j("/profile/me/works").then(f=>{o.current&&a(f.ok?f.data?.works??[]:"failed")})},[]);let l=f=>`${f.kind}:${f.id}`,c=f=>s(u=>u.includes(f)?u.filter(p=>p!==f):[...u,f]);if(r===null)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n(jt,{})," ",t("common.loading")]});if(r==="failed"||r.length===0)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n("p",{children:t(r==="failed"?"common.loadFailed":"profile.worksNone")}),n("div",{class:"fx-inline fx-pf-foot",children:[r!=="failed"&&n(q,{variant:"primary",onClick:()=>void mo("submission"),children:[t("profile.goSubmit")," ",n(B,{name:"external",size:12})]}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]});let d=()=>{let f=new Map(r.map(u=>[l(u),u]));e.onSave(i.flatMap(u=>{let p=f.get(u);return p?[{kind:p.kind,id:p.id}]:[]})),e.onClose()};return n("div",{class:"fx-pf-card fx-pf-picker",children:[r.map(f=>{let u=l(f),p=i.includes(u),m=iu[f.type];return n("button",{type:"button",class:"fx-pf-pick","aria-pressed":p,disabled:!p&&i.length>=6,onClick:()=>c(u),children:[n("div",{children:[f.name,n("small",{children:[m?t(m.key):f.type," \xB7 ",f.summary]})]}),p&&n(B,{name:"check",size:15})]},u)}),n("div",{class:"fx-inline fx-pf-foot",children:[n("span",{class:"fx-grow",children:i.length?t("profile.worksPicked",{n:i.length,max:6}):t("profile.worksAuto")}),n(q,{variant:"primary",onClick:d,children:t("common.done")}),n(q,{onClick:e.onClose,children:t("common.cancel")})]})]})}function qb(e){let{t,locale:o}=ie(),{view:r,owner:a}=e,i=oe(null),[s,l]=_(!1),c=r.nickname||r.username,d=(r.tier||"free").trim().toLowerCase()||"free",f=d==="free"?null:yo(e.badges,d),u=r.modules.map(A=>A.id),p=A=>u.indexOf(A),m=A=>p(A)>=0,g=r.stats,h=g?Jd(g.totalTokens,o):null,y=t("profile.unit.days"),v=g&&h?[[h.value,h.unit,t("profile.stat.tokens")],[String(g.activeDays),y,t("profile.stat.activeDays")],[String(g.longestStreak),y,t("profile.stat.longest")],[String(g.currentStreak),y,t("profile.stat.current")],[g.installs.toLocaleString("en-US"),"",t("profile.stat.installs")]]:[],x=g&&m("stats")&&n("div",{class:"fx-pf-stats",style:{order:p("stats")},children:v.map(([A,M,G])=>n("div",{class:"fx-pf-stat",children:[n("b",{children:[A,M&&n("small",{children:M})]}),n("span",{children:G})]},G))},"stats"),w=u[0]==="stats",z=r.works||[],I=m("works")&&n(Sa,{order:p("works"),title:t("profile.works"),action:!s&&n("button",{type:"button",class:"fx-link",onClick:()=>l(!0),children:t("profile.worksPick")}),children:s?n(Hb,{pinned:e.pinned,onSave:a.onPinned,onClose:()=>l(!1)}):z.length?n("div",{class:"fx-pf-works",children:z.map(A=>n(Ub,{work:A},`${A.kind}:${A.id}`))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.worksEmpty")})},"works"),F=r.activity,$=m("activity")&&F&&n(Sa,{order:p("activity"),title:t("profile.activity"),children:n("div",{class:"fx-pf-card",children:[n("div",{class:"fx-pf-hm",role:"img","aria-label":t("profile.activityDays",{n:F.activeDays}),children:F.levels.map((A,M)=>n("i",{class:A?`l${A}`:void 0},M))}),n("div",{class:"fx-pf-hm-months","aria-hidden":"true",children:Kd(F.end,o).map((A,M)=>n("span",{children:A},M))}),n("div",{class:"fx-pf-hm-foot",children:[n("span",{children:t("profile.activityDays",{n:F.activeDays})}),n("span",{class:"fx-pf-hm-legend","aria-hidden":"true",children:[t("profile.less"),n("i",{}),n("i",{class:"l1"}),n("i",{class:"l2"}),n("i",{class:"l3"}),n("i",{class:"l4"}),t("profile.more")]})]})]})},"activity"),N=(r.badges||[]).filter(A=>jd.includes(A.id)),Y=m("badges")&&n(Sa,{order:p("badges"),title:t("profile.badges"),children:N.length?n("div",{class:"fx-pf-card fx-pf-rows",children:N.map(A=>n("div",{class:"fx-pf-brow",children:[n("span",{class:"fx-pf-badge",children:n(B,{name:au[A.id],size:14})}),n("div",{children:[n("b",{children:t(`profile.badge.${A.id}`)}),n("span",{children:t(`profile.badgeSub.${A.id}`,{value:A.value??""})})]})]},A.id))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.badgesEmpty")})},"badges"),C=r.insights,D=[];C?.topModel&&D.push([t("profile.insightModel"),C.topModel]),C?.activeHours&&D.push([t("profile.insightHours"),Zd(C.activeHours)]);let H=m("insights")&&n(Sa,{order:p("insights"),title:t("profile.insights"),children:D.length?n("div",{class:"fx-pf-card fx-pf-rows",children:D.map(([A,M])=>n("div",{class:"fx-pf-row",children:[n("span",{children:A}),n("b",{children:M})]},A))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.insightsEmpty")})},"insights"),E=[!w&&x,I,$].filter(Boolean),Z=[Y,H].filter(Boolean),S=A=>{if(!A)return;let M=Gd(A);if(!M)return a.onInvalidLink();r.links.includes(M)||a.onLinks([...r.links,M])};return n("div",{class:"fx-pf","data-cover":r.cover,"data-frame":r.frame,children:[n("div",{class:"fx-pf-cover"}),n("div",{class:"fx-pf-id",children:[n("button",{type:"button",class:"fx-pf-avatar",title:t("account.avatar.change"),"aria-label":t("account.avatar.change"),onClick:()=>i.current?.click(),children:[n("span",{class:"fx-pf-av",children:e.avatar?n("img",{src:e.avatar,alt:""}):n("span",{class:"fx-pf-av-fallback",children:ka(c)})}),n("span",{class:"fx-pf-av-mask",children:n(B,{name:"pencil",size:18})})]}),n("input",{ref:i,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif,image/avif",hidden:!0,onChange:A=>{let M=A.currentTarget,G=M.files?.[0];M.value="",G&&a.onAvatar(G)}}),n("div",{class:"fx-pf-id-text",children:[n("div",{class:"fx-pf-name",children:[n(as,{value:c,placeholder:r.username,maxLength:40,label:t("account.nickname.edit"),onSave:A=>{A&&a.onNickname(A)}}),f&&n("span",{class:"fx-tag fx-pf-tier","data-tier":d,style:za(f),children:ou(f,o,ho(d))})]}),n("div",{class:"fx-pf-handle",children:["@",r.username]})]}),N.length>0&&m("badges")&&n("div",{class:"fx-pf-badges",children:N.map(A=>n("span",{class:"fx-pf-badge",title:t(`profile.badge.${A.id}`),children:n(B,{name:au[A.id],size:14})},A.id))})]}),n("div",{class:"fx-pf-sub",children:[n(as,{class:"fx-pf-bio",value:r.bio,placeholder:t("profile.bioPlaceholder"),maxLength:80,label:t("profile.bio"),counter:!0,onSave:a.onBio}),n("div",{class:"fx-pf-meta",children:[r.joinedMonth&&n("span",{children:[n(B,{name:"calendar",size:13}),t("profile.joined",{date:Yd(r.joinedMonth,o)})]}),r.links.map(A=>n("span",{children:[n(B,{name:"link",size:13}),is(A)?n("a",{href:A,onClick:M=>{M.preventDefault(),ss(A)},children:rs(A)}):n("span",{children:rs(A)}),n("button",{type:"button",class:"fx-pf-x",title:t("profile.linkRemove"),"aria-label":t("profile.linkRemove"),onClick:()=>a.onLinks(r.links.filter(M=>M!==A)),children:n(B,{name:"x",size:11})})]},A)),r.links.length<2&&n(as,{value:"",placeholder:t("profile.linkAdd"),maxLength:200,label:t("profile.linkAdd"),onSave:S},r.links.length)]})]}),w&&x,n("div",{class:"fx-pf-body","data-cols":E.length&&Z.length?2:1,children:[n("div",{class:"fx-pf-main",children:E}),Z.length>0&&n("div",{class:"fx-pf-side",children:Z})]})]})}function cu(e={}){let t=nt(async()=>{let[o,r,a]=await Promise.all([j("/membership/my"),j("/features"),j("/membership/plans")]);if(!o.ok)return o;let i=o.data?.membership??null,s=String(i?.tier||"").trim().toLowerCase(),l=!s||s==="free"?null:a.ok?i?.planId?nu(a.data,i.planId)??yo(null,s):yo(wa(a.data),s):yo(null,s);return{ok:!0,status:o.status,data:{membership:i,badge:l,payment:!r.ok||r.data?.payment!==!1}}});return t.state==="loading"?n(Je,{panels:1}):t.state==="signedOut"?null:n(Vb,{membership:t.state==="ready"?t.data.membership:null,badge:t.state==="ready"?t.data.badge:null,failed:t.state==="error",payment:t.state==="ready"&&t.data.payment,modelCap:e.modelCap,onRetry:t.state==="ready"?t.reload:t.retry})}function Vb(e){let{t,locale:o}=ie(),r=fe(),a=e.membership&&(e.membership.status===void 0||e.membership.status==="active")?e.membership:null,i=ho(a?.tier),s=i==="Free",l=()=>void r.run(async()=>await zn("membership")?void 0:{error:{key:"err.openFailed"}});return n(Ie,{icon:"card",title:t("member.title"),desc:t("member.desc"),actions:e.payment&&!e.failed?n(q,{variant:"primary",pending:r.pending,onClick:l,children:t(s?"member.upgrade":"member.renew")}):void 0,children:[!e.failed&&n("div",{class:"fx-member fx-block",children:[n("span",{class:`fx-tier${s?" fx-tier--free":""}`,"data-tier":i.toLowerCase(),style:s?void 0:za(e.badge??yo(null,i.toLowerCase())),children:$o(a?.plan,o)||i}),n("div",{class:"fx-member-copy",children:[n("strong",{children:s?t("member.freeName"):$o(a?.plan,o)||i}),n("span",{class:"fx-muted",children:s?t("member.freeHint"):a?.expiresAt?t("member.expires",{date:Pt(a.expiresAt,o)}):t("member.noExpiry")}),typeof e.modelCap=="number"&&n("span",{class:"fx-muted","data-testid":"member-model-cap",children:e.modelCap<0?t("member.modelsAll"):t("member.modelsCap",{cap:we(e.modelCap,o)})})]})]}),e.failed&&n("div",{class:"fx-sub",children:n(ce,{tone:"warn",children:[t("member.loadFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ve,{a:r})})]})}function He(e){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()!==""){let t=Number(e);return Number.isFinite(t)?t:null}return null}function Wb(e,t){let o=He(t);if(o===null||o<0)return null;if(o===0)return 0;let r=Math.max(0,He(e)??0);return Math.min(100,Math.max(0,Math.floor(r/o*100)))}var jb=15;function xo(e,t){let o=Wb(e,t);if(o===null)return{unlimited:!0,pct:100,text:null,low:!1};let r=Math.max(0,He(e)??0),a=o===0&&r>0&&(He(t)??0)>0?"<1%":`${o}%`;return{unlimited:!1,pct:o,text:a,low:o<=jb}}function _a(e,t){let o=He(t);if(o===null||o<=0)return null;let r=He(e);if(r===null)return null;let a=Math.max(0,r);if(a===0)return"0%";let i=a/o*100;if(i<.1)return"<0.1%";let s=Math.round(i*10)/10;return s<10?`${s}%`:`${Math.round(i).toLocaleString("en-US")}%`}var ls=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;function xr(e,t){if(!e||typeof e!="object")return null;let o=e;if(!ls(o.input)||!ls(o.output)||!ls(o.cachedInput))return null;let r=a=>we(a+0,t);return{input:r(o.input),output:r(o.output),cached:r(o.cachedInput)}}function du(e,t){if(!xr(e,t))return null;let o=e;return we((1e4*o.input+2e3*o.output)/1e6+0,t)}var Gb=e=>e.ok?"ok":e.status===404?"hidden":"failed";function fu(){return n(gu,{section:"points"})}function mu(){let[e,t]=_(null);return n(R,{children:[n(cu,{modelCap:e}),n(gu,{section:"quota",onModelCap:t})]})}function gu({section:e,onModelCap:t}){let o=oe(0),r=nt(async()=>{let f=o.current,[u,p,m,g]=await Promise.all([j("/token-quota/my"),j("/credits/balance"),j("/features"),j("/invite/my-code")]);return u.ok?{ok:!0,status:u.status,data:{quota:u.data??{},balance:p.ok?He(p.data?.balance):null,balanceFailed:!p.ok,features:m.ok&&m.data&&typeof m.data=="object"?m.data:{},invite:g.ok?g.data:null,inviteState:Gb(g),autoGen:f}}:u}),a=r.state==="ready"?He(r.data.quota.modelMultiplierCap):null;if(J(()=>{t?.(a)},[a]),r.state==="loading")return n(Je,{panels:3,rows:2});if(r.state==="signedOut")return n(lt,{});if(r.state==="error")return n(ut,{error:r.error,onRetry:r.retry});let{data:i,update:s}=r,l=i.quota.background,c=i.features.redemption_codes!==!1,d=i.features.payment!==!1;return n(R,{children:[e==="quota"&&n(R,{children:[n(Xb,{data:i,update:s,payment:d,fallbackGen:o,onFailed:r.reload}),l?.modelId?n(ev,{bg:l,update:s}):null]}),e==="points"&&n(Zb,{data:i,payment:d,onRetry:r.reload}),e==="points"&&(i.inviteState!=="hidden"||c)&&n(tv,{data:i,update:s,redeemEnabled:c,onRedeemed:r.reload})]})}var uu=e=>({dailyLimit:e.dailyLimit,dailyRemaining:e.dailyRemaining,weeklyLimit:e.weeklyLimit,weeklyRemaining:e.weeklyRemaining});function Jb(e,t){if(typeof e?.showResetCardCeremony!="function")return!1;try{return e.showResetCardCeremony(t),!0}catch{return!1}}var pu=e=>!e.unlimited&&e.text==="0%";function Xb(e){let{t,locale:o,ctx:r}=ie(),a=e.data.quota,i=xo(a.dailyRemaining,a.dailyLimit),s=xo(a.weeklyRemaining,a.weeklyLimit),l=id(a.weeklyResetAt,o),c=Math.max(0,He(a.resetCards)??0),d=fe(),f=fe(),[u,p]=_(null),m=typeof a.pointsAutoDeduct=="boolean"&&(He(a.pointsBalance)!==null||He(a.modelMultiplierCap)!==null),g=He(a.pointsBalance)??e.data.balance,h=g!==null&&g<=0,y=pu(i)||pu(s),v=xr(a.pointsPricing,o),x=Kb(!!a.pointsAutoDeduct,e.data.autoGen,e.fallbackGen,$=>{e.update(N=>({...N,quota:{...N.quota,...$,resetCards:N.quota.resetCards,pointsBalance:N.quota.pointsBalance,pointsAutoDeduct:N.quota.pointsAutoDeduct,modelMultiplierCap:N.quota.modelMultiplierCap}}))}),w=()=>void d.run(async()=>{let $={daily:i,weekly:s},N=uu(a);p(null);let Y=Q(),C=await hr(Y.accountUseResetCard?()=>Y.accountUseResetCard("both"):null,()=>j("/token-quota/reset-card/use",{method:"POST",body:{type:"both"}}));if(!C.ok)return e.onFailed(),$e(C);let D=C.data?.quota,H=He(C.data?.resetCards);return e.update(E=>({...E,quota:{...E.quota,...D??{},resetCards:H??E.quota.resetCards,pointsAutoDeduct:E.quota.pointsAutoDeduct,pointsBalance:E.quota.pointsBalance,modelMultiplierCap:E.quota.modelMultiplierCap}})),D&&!Jb(r.app,{before:N,after:uu(D),remainingCards:H??void 0})&&p({before:$,after:{daily:xo(D.dailyRemaining,D.dailyLimit),weekly:xo(D.weeklyRemaining,D.weeklyLimit)},cards:H}),{success:{key:"card.used"}}}),z=$=>void f.run(async()=>await zn($)?void 0:{error:{key:"err.openFailed"}}),I=$=>$.unlimited?t("common.unlimited"):$.text,F=null;if(y&&m&&x.phase==="idle"&&x.checked)F=h?n(Te,{children:[n(ce,{tone:"warn",children:t("quota.out.pointsGone")}),e.payment&&n("div",{class:"fx-inline fx-out-acts",children:[n(q,{variant:"primary",pending:f.pending,onClick:()=>z("credits"),children:t("points.recharge")}),n(q,{pending:f.pending,onClick:()=>z("membership"),children:t("member.upgrade")})]}),n(ve,{a:f})]}):n(Te,{children:n(ce,{children:t("quota.out.usingPoints")})});else if(y&&m&&x.phase==="idle"){let $=c>0?h?"quota.out.cardOrTopUp":"quota.out.cardOrPoints":h?"quota.out.topUp":"quota.out.points";F=n(Te,{children:[n(ce,{tone:"warn",children:t($)}),h&&e.payment&&n("div",{class:"fx-inline fx-out-acts",children:n(q,{variant:"primary",pending:f.pending,onClick:()=>z("credits"),children:t("points.recharge")})}),n(ve,{a:f})]})}else y&&c>0&&(F=n(Te,{children:n(ce,{tone:"warn",children:t("quota.out.card")})}));return n(Ie,{icon:"gauge",title:t("quota.ai.title"),desc:t("quota.ai.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:i,note:i.unlimited?null:t("quota.resetDaily")}),n(yr,{label:t("common.thisWeek"),display:s,note:s.unlimited||!l?null:t("quota.resetWeekly",{date:l})})]}),F,n(We,{label:t("card.title"),desc:t("card.desc"),children:[n("span",{class:"fx-value","data-testid":"reset-card-count",children:t("card.owned",{n:c})}),n(Gt,{label:t("card.use"),confirmLabel:t("card.useConfirm"),pending:d.pending,disabled:c<=0,onConfirm:w})]}),c<=0&&!d.success&&!F&&n(Te,{children:n(ce,{children:t("card.noneHint")})}),(d.error||d.success)&&n(Te,{children:[n(ve,{a:d}),d.success&&u&&n("div",{class:"fx-ceremony",role:"status",children:[n("span",{children:[t("common.today")," ",n("b",{children:I(u.before.daily)})," \u2192 ",n("b",{children:I(u.after.daily)})]}),n("span",{children:[t("common.thisWeek")," ",n("b",{children:I(u.before.weekly)})," \u2192 ",n("b",{children:I(u.after.weekly)})]}),u.cards!==null&&n("span",{class:"fx-muted",children:t("card.left",{n:u.cards})})]})]}),m&&n(R,{children:[n(We,{label:t("fallback.title"),desc:t("fallback.desc"),children:[g!==null&&n("span",{class:"fx-value","data-testid":"fallback-points",children:t("fallback.balance",{n:we(g,o)})}),x.phase==="unknown"?n(q,{pending:!1,onClick:x.reread,children:t("common.retry")}):n(R,{children:[x.phase!=="idle"&&n("span",{class:"fx-fallback-busy",role:"status","aria-busy":"true","aria-label":t("common.loading"),children:n(jt,{})}),n(Qt,{checked:x.checked,disabled:x.phase!=="idle",label:t("fallback.title"),onChange:x.toggle})]})]}),v&&n(Te,{children:n(ce,{children:n("span",{"data-testid":"fallback-pricing",children:t("fallback.pricing",v)})})}),x.phase==="unknown"&&n(Te,{children:n(ce,{tone:"warn",children:t("fallback.unknown")})}),x.error&&x.phase!=="unknown"&&n(Te,{children:n("div",{class:"fx-msg is-error",role:"alert",children:n("span",{children:ht(x.error,t)})})})]})]})}function Kb(e,t,o,r){let a=Fe(),[i,s]=_("idle"),[l,c]=_(null),[d,f]=_(null),u=oe(!1),p=l&&t<l.gen?l.value:e,m=x=>{c({value:x,gen:++o.current})},g=async x=>{s("verifying");let w=await j("/token-quota/my");a.current&&(w.ok&&typeof w.data?.pointsAutoDeduct=="boolean"?(m(w.data.pointsAutoDeduct),x!==null&&w.data.pointsAutoDeduct===x&&f(null),s("idle")):s("unknown"))},h=async x=>{if(!u.current){u.current=!0;try{await x()}finally{u.current=!1}}};return{checked:p,phase:i,error:d,toggle:x=>void h(async()=>{o.current++,f(null),s("pending");let w=Q(),z=await hr(w.cloudInvoke?()=>w.cloudInvoke("account:pointsAutoDeduct",x):null,()=>j("/token-quota/auto-deduct",{method:"POST",body:{enabled:x}}));if(a.current){if(z.ok&&typeof z.data?.pointsAutoDeduct=="boolean"){m(z.data.pointsAutoDeduct),z.data.quota&&r(z.data.quota),s("idle");return}if(!z.ok&&(f(bt(z)),z.status===400||z.status===410||z.status===503&&z.code==="points_fallback_unavailable")){s("idle");return}await g(x)}}),reread:()=>void h(()=>g(null))}}function Yb(e,t,o){let r=fe(),[a,i]=_(null);return{checked:a??e,toggle:l=>{i(l),r.run(async()=>{let c=await t(l);if(i(null),!c.ok)return $e(c);o(l)})},action:r}}function Zb(e){let{t,locale:o}=ie(),r=fe(),a=()=>void r.run(async()=>await zn("credits")?void 0:{error:{key:"err.openFailed"}});return n(Ie,{icon:"coins",title:t("points.title"),desc:t("points.desc"),actions:e.payment?n(q,{variant:"primary",pending:r.pending,onClick:a,children:t("points.recharge")}):void 0,children:[n(We,{label:t("points.balance"),children:e.data.balance!==null?n("span",{class:"fx-big","data-testid":"points-balance",children:we(e.data.balance,o)}):n("span",{class:"fx-value is-empty",children:[t("points.balanceFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n(Te,{children:n(ve,{a:r})})]})}var Qb=[5,10,20];function ev(e){let{t}=ie(),{bg:o}=e,r=xo(o.dailyRemaining,o.dailyLimit),a=xo(o.weeklyRemaining,o.weeklyLimit),i=fe(),[s,l]=_(null),c=Yb(!!o.autoMain,f=>{let u=Q();return hr(u.accountBgAutoMain?()=>u.accountBgAutoMain(f):null,()=>j("/token-quota/background/auto-main",{method:"POST",body:{enabled:f}}))},f=>e.update(u=>({...u,quota:{...u.quota,background:{...u.quota.background??{},autoMain:f}}}))),d=f=>{l(f),i.run(async()=>{let u=Q(),p=await hr(u.accountBgConvert?()=>u.accountBgConvert(f):null,()=>j("/token-quota/background/convert",{method:"POST",body:{percent:f}}));if(l(null),!p.ok)return $e(p);let m=p.data?.quota;return m&&e.update(h=>({...h,quota:{...h.quota,...m,resetCards:h.quota.resetCards,pointsBalance:h.quota.pointsBalance,pointsAutoDeduct:h.quota.pointsAutoDeduct,modelMultiplierCap:h.quota.modelMultiplierCap}})),{success:{key:"bg.converted",vars:{pct:f}}}})};return n(Ie,{icon:"clock",title:t("bg.title"),desc:t("bg.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:r}),n(yr,{label:t("common.thisWeek"),display:a})]}),n(We,{label:t("bg.autoMain"),desc:t("bg.autoMainDesc"),children:n(Qt,{checked:c.checked,disabled:c.action.pending,label:t("bg.autoMain"),onChange:c.toggle})}),n(We,{label:t("bg.convert"),desc:t("bg.convertDesc"),class:"fx-row--wide",children:Qb.map(f=>n(Gt,{label:`${f}%`,confirmLabel:t("bg.convertConfirm",{pct:f}),pending:i.pending&&s===f,disabled:i.pending&&s!==f,onConfirm:()=>d(f)},f))}),(i.error||i.success||c.action.error)&&n(Te,{children:[n(ve,{a:c.action}),n(ve,{a:i})]})]})}function tv(e){let{t,locale:o,anchor:r}=ie(),a=oe(null);J(()=>{if(r!=="invite")return;let z=a.current;z?.scrollIntoView?.({block:"start"}),z?.focus({preventScroll:!0})},[r]);let{invite:i,inviteState:s}=e.data,[l,c]=_(null),[d,f]=_(""),[u,p]=_(""),m=fe(),g=fe(),h=fe();J(()=>{let z=!0;return Q().authStatus?.().then(I=>{z&&c(I?.cloudUrl?I.cloudUrl.replace(/\/+$/,""):null)}).catch(()=>{}),()=>{z=!1}},[]);let y=async()=>{let z=await j("/invite/my-code");return e.update(I=>({...I,invite:z.ok?z.data:I.invite,inviteState:z.ok?"ok":z.status===404?"hidden":I.inviteState})),z},v=()=>void m.run(async()=>{let z=d.trim();if(!z)return{error:{key:"err.inviteEmpty"}};let I=await j("/invite/claim",{method:"POST",body:{code:z}});return I.ok?(f(""),y(),{success:{key:"invite.claimed"}}):$e(I)}),x=()=>void g.run(async()=>{let z=u.trim();if(!z)return{error:{key:"err.redeemEmpty"}};let I=await j("/redemption/redeem",{method:"POST",body:{code:z}});if(!I.ok)return $e(I);p(""),window.dispatchEvent(new Event("forsion:account-rewards-changed")),e.onRedeemed();let F=[],$=He(I.data?.creditsAmount);$&&F.push(t("redeem.gotPoints",{n:we($,o)})),I.data?.membershipPlanId&&F.push(t("redeem.gotMembership"));for(let N of Array.isArray(I.data?.items)?I.data.items:[]){let Y=(o==="zh"?N?.label?.zh:N?.label?.en)||N?.label?.zh||N?.label?.en||N?.kind;Y&&F.push(Y)}return{success:F.length?{key:"redeem.successWith",vars:{what:F.join(o==="zh"?"\u3001":", ")}}:{key:"redeem.success"}}}),w=i?.code&&l?`${l}/auth?invite=${encodeURIComponent(i.code)}`:"";return n("div",{ref:a,tabIndex:-1,"data-settings-anchor":"invite",children:n(Ie,{icon:"gift",title:t("invite.title"),desc:t("invite.desc"),children:[s==="ok"&&i?.code&&n(We,{label:t("invite.myCode"),desc:t("invite.count",{n:we(He(i.invitedCount)??0,o)}),class:"fx-row--wide",children:[n("code",{class:"fx-code","data-testid":"invite-code",children:i.code}),n(Ut,{text:i.code,label:t("invite.copyCode")}),n(Ut,{text:w,label:t("invite.copyLink"),disabled:!w})]}),s==="failed"&&n(Te,{children:n(ce,{tone:"warn",children:[t("invite.loadFailed")," ",n("button",{type:"button",class:"fx-link",disabled:h.pending,onClick:()=>void h.run(async()=>{await y()}),children:t("common.retry")})]})}),s==="ok"&&i?.claim?.eligible&&n(We,{label:t("invite.claim"),desc:t("invite.claimDesc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:z=>{z.preventDefault(),v()},children:[n("input",{class:"fx-input",value:d,placeholder:t("invite.claimPlaceholder"),"aria-label":t("invite.claim"),onInput:z=>f(z.currentTarget.value)}),n(q,{submit:!0,pending:m.pending,children:t("invite.claimSubmit")})]})}),(m.error||m.success)&&n(Te,{children:n(ve,{a:m})}),e.redeemEnabled&&n(We,{label:t("redeem.title"),desc:t("redeem.desc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:z=>{z.preventDefault(),x()},children:[n("input",{class:"fx-input",value:u,placeholder:t("redeem.placeholder"),"aria-label":t("redeem.title"),onInput:z=>p(z.currentTarget.value)}),n(q,{submit:!0,pending:g.pending,children:t("redeem.submit")})]})}),(g.error||g.success)&&n(Te,{children:n(ve,{a:g})})]})})}function nv(e){let t=[],o,r,a=new Map;for(let i of e)if(i.itemType==="reset_card")o||(o={id:"reset_card",items:[],resetCard:!0},t.push(o)),o.items.push(i);else if(i.itemType==="address_rename_card")r||(r={id:"address_rename_card",items:[],resetCard:!1,addressCard:!0},t.push(r)),r.items.push(i);else if(i.itemType==="custom_item"&&i.itemDefinition?.stackable){let s=`${i.productId||i.id}:${JSON.stringify(i.itemDefinition)}`,l=a.get(s);l||(l={id:`custom:${s}`,items:[],resetCard:!1},a.set(s,l),t.push(l)),l.items.push(i)}else t.push({id:i.id,items:[i],resetCard:!1});return t}function hu(){let e=nt(()=>j("/shop/inventory"));return e.state==="loading"?n(Je,{panels:1,rows:4}):e.state==="signedOut"?n(lt,{}):e.state==="error"?n(ut,{error:e.error,onRetry:e.retry}):n(ov,{items:e.data??[],onRefresh:e.reload,onUsed:t=>{e.update(o=>o.filter(r=>r.id!==t.itemId)),e.reload()}})}function ov(e){let{t,locale:o,goTo:r}=ie(),[a,i]=_(null),[s,l]=_(null),c=Fe(),d=nv(e.items),f=d.find(g=>g.id===a),u=Math.max(24,Math.ceil(d.length/6)*6)-d.length,p=g=>g.resetCard?t("card.title"):g.addressCard?t("backpack.addressCard"):g.items[0].itemDefinition?.name[o]||g.items[0].displayName||t("backpack.item"),m=g=>{c.current&&(l(g),e.onUsed(g))};return n(Ie,{icon:"backpack",title:t("page.backpack"),desc:t("backpack.desc"),actions:n(q,{onClick:e.onRefresh,children:[n(B,{name:"refresh",size:13}),t("backpack.refresh")]}),children:n("div",{class:"fx-backpack fx-block",children:[n("div",{class:"fx-backpack-summary",children:[n("span",{children:t("backpack.total",{n:we(e.items.length,o)})}),r&&n("button",{class:"fx-link",type:"button",onClick:()=>r("quota"),children:t("backpack.getCards")})]}),s&&n("div",{class:`fx-backpack-used fx-backpack-${s.animation}`,role:"status",children:[n(B,{name:"gift",size:20}),s.connectPack&&typeof s.connectPack.added=="number"?n("div",{children:[n("strong",{children:t("backpack.packUsed")}),n("div",{children:t("backpack.packUsedLine",{n:we(s.connectPack.added,o),balance:we(Math.round(Number(s.connectPack.balance)||0),o)})})]}):n("div",{children:[n("strong",{children:s.message?.[o]}),n("div",{children:(s.effects||[]).map(g=>bu(g,t,o)).join(" \xB7 ")})]})]},s.itemId),n("div",{class:"fx-backpack-layout",children:[n("div",{children:[n("div",{class:"fx-backpack-grid",role:"group","aria-label":t("backpack.grid"),children:[d.map(g=>{let h=p(g);return n("button",{type:"button",class:`fx-backpack-slot${g.resetCard?" is-card":""}`,"data-rarity":g.items[0].itemDefinition?.rarity,"aria-pressed":f?.id===g.id,"aria-label":t("backpack.slot",{name:h,n:g.items.length}),title:h,onClick:()=>i(g.id),children:[n("span",{class:"fx-backpack-icon",children:g.items[0].itemDefinition?.icon?n("span",{class:"fx-backpack-emoji",children:g.items[0].itemDefinition.icon}):n(B,{name:g.resetCard?"card":g.addressCard?"at":"gift",size:30})}),n("span",{class:"fx-backpack-name",children:h}),(g.resetCard||g.addressCard||g.items[0].itemDefinition?.stackable)&&n("span",{class:"fx-backpack-count",children:["\xD7",we(g.items.length,o)]})]},g.id)}),Array.from({length:u},(g,h)=>n("div",{class:"fx-backpack-slot is-empty","aria-hidden":"true"},`empty:${h}`))]}),!d.length&&n("p",{class:"fx-backpack-empty",children:t("backpack.empty")})]}),f?n(rv,{slot:f,name:p(f),onUsed:m},`${f.id}:${f.items[0].id}`):n("div",{class:"fx-backpack-detail fx-backpack-prompt",children:[n(B,{name:"backpack",size:30}),n(ce,{children:t(d.length?"backpack.select":"backpack.emptyHint")})]})]})]})})}function bu(e,t,o){let r=a=>we(Number(a)||0,o);switch(e.type){case"points":return t("backpack.effect.points",{n:r(e.amount)});case"reset_card":return t("backpack.effect.cards",{n:r(e.count)});case"reset_quota":return t("backpack.effect.quota");case"connect_pack":return t("backpack.effect.connectPack",{n:r(e.amount)});default:return t("backpack.effect.other")}}function rv(e){let{t,locale:o,goTo:r}=ie(),a=e.slot.items[0],[i,s]=_(null),l=fe(),c=fe(),[d,f]=_(!1),u=a.itemDefinition,p=Fe(),m=a.source==="points"?t("backpack.source.points"):a.source==="admin"?t("backpack.source.admin"):a.source==="reward"?t("backpack.source.reward"):t("backpack.source.other"),g=()=>void l.run(async()=>{let y=await j(`/shop/inventory/${encodeURIComponent(a.id)}`);if(p.current){if(!y.ok)return $e(y);s(y.data)}}),h=()=>void c.run(async()=>{let y=await j(`/shop/inventory/${encodeURIComponent(a.id)}/use`,{method:"POST"});if(!y.ok)return $e(y);e.onUsed(y.data)});return n("section",{class:"fx-backpack-detail","aria-label":t("backpack.details"),children:[n("span",{class:`fx-backpack-detail-icon${e.slot.resetCard?" is-card":""}`,children:u?.icon?n("span",{class:"fx-backpack-emoji",children:u.icon}):n(B,{name:e.slot.resetCard?"card":e.slot.addressCard?"at":"gift",size:32})}),n("h3",{children:e.name}),n("span",{class:"fx-tag",children:[t(e.slot.resetCard||e.slot.addressCard||u?.use?"backpack.consumable":u?"backpack.collectible":"backpack.voucher"),u&&` \xB7 ${t(`backpack.rarity.${u.rarity}`)}`]}),n("dl",{class:"fx-backpack-facts",children:[n("div",{children:[n("dt",{children:t("backpack.quantity")}),n("dd",{children:we(e.slot.items.length,o)})]}),n("div",{children:[n("dt",{children:t("backpack.acquired")}),n("dd",{children:_t(a.acquiredAt,o)})]}),!e.slot.resetCard&&n("div",{children:[n("dt",{children:t("backpack.source")}),n("dd",{children:m})]})]}),u?n(R,{children:[u.description&&n(ce,{children:u.description[o]}),u.use&&n(R,{children:[n("div",{class:"fx-backpack-effects",children:u.use.effects.map((y,v)=>n("div",{children:bu(y,t,o)},v))}),d?n(R,{children:[n(ce,{children:t("backpack.consumeConfirm")}),n("div",{class:"fx-backpack-use-actions",children:[n(q,{variant:"primary",pending:c.pending,onClick:h,children:t("backpack.confirmUse")}),n(q,{disabled:c.pending,onClick:()=>f(!1),children:t("common.cancel")})]})]}):n(q,{variant:"primary",onClick:()=>f(!0),children:u.use.label?.[o]||t("backpack.use")}),n(ve,{a:c,captchaSection:"backpack"})]})]}):e.slot.addressCard?n(R,{children:[n(ce,{children:t("backpack.addressCard.desc")}),r&&n(q,{variant:"primary",onClick:()=>{Dd(),r("account-details")},children:t("backpack.addressCard.use")})]}):e.slot.resetCard?n(R,{children:[n(ce,{children:t("card.desc")}),r&&n(q,{variant:"primary",onClick:()=>r("quota"),children:t("backpack.manageCards")})]}):i?n("div",{class:"fx-backpack-reveal",children:[i.codeName&&n("div",{class:"fx-muted",children:i.codeName}),i.key?n(R,{children:[n("code",{children:i.key}),n(Ut,{text:i.key,label:t("backpack.copyKey")})]}):n(ce,{children:t("backpack.noKey")})]}):n(q,{pending:l.pending,onClick:g,children:[n(B,{name:"key",size:14}),t("backpack.reveal")]}),n(ve,{a:l,captchaSection:"backpack"})]})}var av=/^1[3-9]\d{9}$|^\+[1-9]\d{6,14}$/,iv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,vu=(e,t)=>e==="phone"?av.test(t):iv.test(t),kr=(e,t)=>e==="phone"?pa(t):fa(t);function xu(){let e=nt(()=>j("/auth/me"));if(e.state==="loading")return n(Je,{panels:3,rows:2});if(e.state==="signedOut")return n(lt,{});if(e.state==="error")return n(ut,{error:e.error,onRetry:e.retry});let t=e.data;return n(R,{children:[n(sv,{me:t,onBound:(o,r)=>e.update(a=>({...a,[o]:r}))}),n(dv,{me:t}),n(fv,{}),n(mv,{me:t})]})}function ds(){let e=rd(),t=fe();return{cd:e,a:t,send:(a,i,s)=>t.run(async()=>{let l=await j("/auth/send-code",{method:"POST",body:{target:a,type:i,purpose:s}});return l.ok?(e.start(60),{success:{key:"sec.codeSent"}}):$e(l)}),reset:()=>{e.stop(),t.clear()}}}function sv(e){let{t}=ie(),[o,r]=_(null),[a,i]=_(null);return n(Ie,{icon:"key",title:t("sec.methods.title"),desc:t("sec.methods.desc"),children:["phone","email"].map(s=>{let l=e.me[s];return n(R,{children:[n(We,{label:t(s==="phone"?"account.contact.phone":"account.contact.email"),desc:l?kr(s,l):t("account.contact.unbound"),children:n(q,{onClick:()=>{i(null),r(o===s?null:s)},children:t(o===s?"common.cancel":l?"sec.change":"sec.bind")})}),o===s&&n(lv,{kind:s,current:l??null,onDone:c=>{e.onBound(s,c),r(null),i(s)}}),a===s&&o!==s&&n(Te,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t(s==="phone"?"sec.phoneBound":"sec.emailBound")})})]},s)})})}function lv(e){let{t}=ie(),{kind:o}=e,[r,a]=_(""),[i,s]=_(""),l=ds(),c=fe(),d=r.trim(),f=o==="phone"?"err.phoneInvalid":"err.emailInvalid",u=()=>{if(!vu(o,d)){l.a.run(async()=>({error:{key:f}}));return}l.send(d,o,"bind")},p=()=>void c.run(async()=>{if(!vu(o,d))return{error:{key:f}};if(!i.trim())return{error:{key:"err.codeRequired"}};let m=o==="phone"?{phone:d,verification_code:i.trim()}:{email:d,verification_code:i.trim()},g=await j(o==="phone"?"/auth/bind-phone":"/auth/bind-email",{method:"POST",body:m});if(!g.ok)return $e(g);e.onDone(d)});return n(Te,{class:"fx-form",children:[n("label",{class:"fx-field",children:[n("span",{children:e.current?t(o==="phone"?"sec.newPhone":"sec.newEmail"):t(o==="phone"?"sec.phone":"sec.email")}),n("input",{class:"fx-input",type:o==="phone"?"tel":"email",value:r,autoComplete:"off",placeholder:t(o==="phone"?"sec.phonePlaceholder":"sec.emailPlaceholder"),onInput:m=>a(m.currentTarget.value)})]}),n(us,{code:i,setCode:s,sender:l,onSend:u}),n("div",{class:"fx-inline",children:n(q,{variant:"primary",pending:c.pending,onClick:p,children:t("sec.bindSubmit")})}),n(ve,{a:c})]})}function us(e){let{t}=ie(),{cd:o,a:r}=e.sender;return n("div",{class:"fx-field",children:[n("span",{children:e.label??t("sec.code")}),n("div",{class:"fx-inline",children:[n("input",{class:"fx-input fx-input--code",inputMode:"numeric",autoComplete:"one-time-code",value:e.code,placeholder:t("sec.codePlaceholder"),"aria-label":e.label??t("sec.code"),onInput:a=>e.setCode(a.currentTarget.value)}),n(q,{pending:r.pending,disabled:o.left>0||e.disabled,onClick:e.onSend,children:o.left>0?t("sec.resendIn",{s:o.left}):t("sec.sendCode")})]}),n(ve,{a:r})]})}function cv(e){let{t}=ie(),o=Qc(e.value),r=e.value.length>0,a=[[o.length,t("pw.req.length",{min:8,max:64})],[o.lower,t("pw.req.lower")],[o.upper,t("pw.req.upper")],[o.special,t("pw.req.special")],[o.space,t("pw.req.space")]];return n("ul",{class:"fx-rules","aria-label":t("pw.rulesLabel"),children:a.map(([i,s])=>n("li",{class:i?"is-ok":r?"is-bad":"",children:[i?n(B,{name:"check",size:11}):r?n(B,{name:"x",size:11}):n("span",{class:"fx-rule-dot","aria-hidden":"true"}),n("span",{children:s})]},s))})}function ku(e,t){let o=Zc(e);return o.ok?e!==t?{error:{key:"pw.mismatch"}}:null:{error:{key:$i[o.rule]}}}function dv(e){let{t}=ie(),o=["phone","email"].filter(l=>!!e.me[l]),[r,a]=_("current"),[i,s]=_(!1);return n(Ie,{icon:"shield",title:t("pw.title"),desc:t("pw.desc",{min:8,max:64}),actions:n(q,{onClick:()=>s(!i),children:t(i?"common.cancel":"pw.change")}),children:i&&n(Te,{class:"fx-form",children:[n(It,{label:t("pw.modeLabel"),value:r,onChange:a,options:[{value:"current",label:t("pw.mode.current")},{value:"code",label:t("pw.mode.code")}]}),r==="current"?n(uv,{onDone:()=>s(!1)}):o.length?n(pv,{me:e.me,targets:o,onDone:()=>s(!1)}):n(ce,{children:t("pw.codeNeedsContact")})]})})}function wu(e){let{t}=ie();return n(R,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.new")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.pw,maxLength:72,onInput:o=>e.setPw(o.currentTarget.value)})]}),n(cv,{value:e.pw}),n("label",{class:"fx-field",children:[n("span",{children:t("pw.confirm")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.confirm,onInput:o=>e.setConfirm(o.currentTarget.value)})]})]})}function uv(e){let{t}=ie(),[o,r]=_(""),[a,i]=_(""),[s,l]=_(""),c=fe(),[d,f]=_(!1),u=()=>void c.run(async()=>{if(!o)return{error:{key:"pw.currentRequired"}};let p=ku(a,s);if(p)return p;let m=await j("/auth/password",{method:"PUT",body:{currentPassword:o,newPassword:a}});return m.ok?(r(""),i(""),l(""),f(!0),{success:{key:"pw.changed"}}):m.status===404?{error:{key:"pw.noPasswordYet"}}:$e(m)});return n(R,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.current")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:o,onInput:p=>r(p.currentTarget.value)})]}),n(wu,{pw:a,setPw:i,confirm:s,setConfirm:l}),n("div",{class:"fx-inline",children:[n(q,{variant:"primary",pending:c.pending,onClick:u,children:t("pw.submit")}),d&&n(q,{onClick:e.onDone,children:t("common.done")})]}),n(ve,{a:c})]})}function pv(e){let{t}=ie(),[o,r]=_(e.targets[0]),[a,i]=_(""),[s,l]=_(""),[c,d]=_(""),f=ds(),u=fe(),[p,m]=_(!1),g=e.me[o]||"",h=()=>void u.run(async()=>{if(!a.trim())return{error:{key:"err.codeRequired"}};let y=ku(s,c);if(y)return y;let v=o==="phone"?{phone:g,code:a.trim(),newPassword:s}:{email:g,code:a.trim(),newPassword:s},x=await j("/auth/reset-password",{method:"POST",body:v});return x.ok?(i(""),l(""),d(""),m(!0),{success:{key:"pw.changed"}}):$e(x)});return n(R,{children:[e.targets.length>1?n(It,{label:t("pw.via"),value:o,onChange:y=>{r(y),i(""),f.reset()},options:e.targets.map(y=>({value:y,label:kr(y,e.me[y])}))}):n(ce,{children:t("pw.codeTo",{target:kr(o,g)})}),n(us,{code:a,setCode:i,sender:f,onSend:()=>void f.send(g,o,"reset_password")}),n(wu,{pw:s,setPw:l,confirm:c,setConfirm:d}),n("div",{class:"fx-inline",children:[n(q,{variant:"primary",pending:u.pending,onClick:h,children:t("pw.submitReset")}),p&&n(q,{onClick:e.onDone,children:t("common.done")})]}),n(ve,{a:u})]})}function fv(){let{t:e}=ie(),t=fe(),o=()=>void t.run(async()=>{let r=await j("/auth/logout-all",{method:"POST"});if(!r.ok)return $e(r);try{await Q().forsionLogout?.()}catch(a){return{error:{raw:gt(a)}}}return{success:{key:"sec.logoutAllDone"}}});return n(Ie,{icon:"laptop",title:e("sec.devices.title"),desc:e("sec.devices.desc"),children:[n(We,{label:e("sec.logoutAll"),desc:e("sec.logoutAllDesc"),children:n(Gt,{label:e("sec.logoutAll"),confirmLabel:e("sec.logoutAllConfirm"),pending:t.pending,onConfirm:o})}),(t.error||t.success)&&n(Te,{children:n(ve,{a:t})})]})}function mv(e){let{t}=ie(),o=["phone","email"].filter(v=>!!e.me[v]),[r,a]=_(!1),[i,s]=_(o.length?"code":"password"),[l,c]=_(o[0]??null),[d,f]=_(""),[u,p]=_(""),m=ds(),g=fe(),h=l&&e.me[l]||"",y=()=>void g.run(async()=>{if(i==="code"&&!d.trim())return{error:{key:"err.codeRequired"}};if(i==="password"&&!u)return{error:{key:"pw.currentRequired"}};let v=await j("/auth/delete-account",{method:"POST",body:i==="code"?{verification_code:d.trim()}:{password:u}});if(!v.ok)return $e(v);try{await Q().forsionLogout?.()}catch{}return{success:{key:"del.done"}}});return n(Ie,{icon:"alert",danger:!0,title:t("del.title"),desc:t("del.desc"),actions:n(q,{variant:"danger",onClick:()=>{a(!r),g.clear()},children:t(r?"common.cancel":"del.start")}),children:r&&n(Te,{class:"fx-form",children:[n(ce,{tone:"error",children:t("del.warn")}),o.length>0&&n(It,{label:t("del.methodLabel"),value:i,onChange:s,options:[{value:"code",label:t("del.byCode")},{value:"password",label:t("del.byPassword")}]}),i==="code"&&l?n(R,{children:[o.length>1&&n(It,{label:t("pw.via"),value:l,onChange:v=>{c(v),f(""),m.reset()},options:o.map(v=>({value:v,label:kr(v,e.me[v])}))}),n(us,{code:d,setCode:f,sender:m,label:t("del.codeLabel",{target:kr(l,h)}),onSend:()=>void m.send(h,l,"delete_account")})]}):n("label",{class:"fx-field",children:[n("span",{children:t("del.passwordLabel")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:u,onInput:v=>p(v.currentTarget.value)})]}),n("div",{class:"fx-inline",children:n(Gt,{variant:"danger",label:t("del.submit"),confirmLabel:t("del.confirm"),pending:g.pending,onConfirm:y})}),n(ve,{a:g})]})})}var Su=20;function _u(){let e=nt(async()=>{let[t,o]=await Promise.all([j("/token-quota/my"),j(`/token-quota/my/logs?limit=${Su}&offset=0`)]);if(!t.ok)return t;let r=o.ok&&Array.isArray(o.data?.logs)?o.data.logs:null;return{ok:!0,status:t.status,data:{dailyLimit:He(t.data?.dailyLimit),logs:r,total:o.ok?He(o.data?.total)??r?.length??0:0,logsFail:o.ok?null:o}}});return e.state==="loading"?n(Je,{panels:3,rows:2}):e.state==="signedOut"?n(lt,{}):e.state==="error"?n(ut,{error:e.error,onRetry:e.retry}):n(R,{children:[n(gv,{dailyLimit:e.data.dailyLimit}),n(bv,{base:e.data,onRetry:e.reload})]})}function gv(e){let{t,locale:o}=ie(),[r,a]=_(30),[i,s]=_({state:"loading"}),[l,c]=_(!1),[d,f]=_(0),u=oe(0);J(()=>{let w=++u.current;return c(!0),j(`/usage/stats?days=${r}`).then(z=>{w===u.current&&(c(!1),s(z.ok?{state:"ready",data:z.data??{}}:{state:"error",fail:z}))}),()=>{u.current++}},[r,d]);let p=e.dailyLimit!==null&&e.dailyLimit<0?"usage.unlimitedNote":_a(1,e.dailyLimit)===null?"usage.noLimitNote":null,m=w=>_a(w,e.dailyLimit)??"\u2014",g=n(It,{label:t("usage.range"),value:r,onChange:a,options:[{value:7,label:t("usage.days",{n:7})},{value:30,label:t("usage.days",{n:30})},{value:90,label:t("usage.days",{n:90})}]}),h=i.state==="ready"?i.data:null,y=(h?.byModel??[]).filter(Boolean),v=(h?.byProject??[]).filter(Boolean),x=He(h?.successRate);return n(R,{children:[n(Ie,{icon:"chart",title:t("usage.overview.title"),desc:t("usage.overview.desc"),actions:g,children:[i.state==="error"?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(bt(i.fail),t)}),n("button",{type:"button",class:"fx-link",onClick:()=>f(w=>w+1),children:t("common.retry")})]})}):n("div",{class:`fx-stats fx-block${l&&h?" is-refreshing":""}`,"aria-busy":l||void 0,children:[n(ps,{label:t("usage.requests"),value:h?we(He(h.totalRequests)??0,o):null,testId:"usage-requests"}),n(ps,{label:t("usage.successRate"),value:h?x===null?"\u2014":`${x.toFixed(1)}%`:null}),n(ps,{label:t("usage.consumption"),value:h?m(h.totalPointsCost):null,sub:t("usage.ofToday"),testId:"usage-consumption"})]}),p&&n("div",{class:"fx-sub fx-sub--tight",children:n(ce,{children:t(p)})})]}),i.state!=="error"&&n(R,{children:[n(Ie,{icon:"gauge",title:t("usage.byModel.title"),desc:t("usage.byModel.desc"),children:n(zu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.model"),t("usage.col.requests"),t("usage.col.consumption")],rows:y.map(w=>[w.modelName||w.modelId||"\u2014",we(He(w.count)??0,o),m(w.pointsCost)])})}),n(Ie,{icon:"laptop",title:t("usage.byApp.title"),desc:t("usage.byApp.desc"),children:n(zu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.app"),t("usage.col.requests"),t("usage.col.consumption")],rows:v.map(w=>[Cu(w.projectSource,t("usage.appUnknown")),we(He(w.count)??0,o),m(w.pointsCost)])})})]})]})}var hv={tangu:"Tangu","ai-studio":"Forsion AI Studio",desktop:"Forsion Desktop",amadeus:"Amadeus",notebase:"Notebase",calendar:"Forsion Calendar",chat:"Forsion Chat",desk:"Forsion Desk","photo-studio":"Photo Studio",connect:"Forsion Connect"},Cu=(e,t)=>!e||e==="unknown"?t:hv[e]??e;function ps(e){return n("div",{class:"fx-stat",children:[n("span",{class:"fx-stat-label",children:e.label}),e.value===null?n("span",{class:"fx-skel fx-skel--stat"}):n("strong",{class:"fx-stat-value","data-testid":e.testId,children:e.value}),e.sub&&n("span",{class:"fx-stat-sub",children:e.sub})]})}function zu(e){return e.loading?n("div",{class:"fx-sub",children:[n("span",{class:"fx-skel fx-skel--row"}),n("span",{class:"fx-skel fx-skel--row"})]}):e.rows.length?n("div",{class:"fx-table-wrap fx-block",children:n("table",{class:"fx-table",children:[n("thead",{children:n("tr",{children:e.head.map((t,o)=>n("th",{class:o?"is-num":"",children:t},o))})}),n("tbody",{children:e.rows.map((t,o)=>n("tr",{children:t.map((r,a)=>n("td",{class:a?"is-num":"",children:r},a))},o))})]})}):n(wt,{children:e.empty})}function bv(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(e.base.logs??[]),[s,l]=_(e.base.total),c=fe();J(()=>{i(e.base.logs??[]),l(e.base.total)},[e.base]);let d=()=>void c.run(async()=>{let u=await j(`/token-quota/my/logs?limit=${Su}&offset=${a.length}`);if(!u.ok)return{error:bt(u)};let p=Array.isArray(u.data?.logs)?u.data.logs:[];r.current&&(i(m=>[...m,...p]),l(m=>p.length?He(u.data?.total)??m:a.length))}),f=e.base.dailyLimit;return n(Ie,{icon:"clock",title:t("usage.recent.title"),desc:t("usage.recent.desc"),children:[e.base.logsFail?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(bt(e.base.logsFail),t)}),n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}):a.length===0?n(wt,{children:t("usage.recentEmpty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map((u,p)=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-main",children:[n("strong",{children:[u.modelName||u.modelId||"\u2014",u.success===!1&&n("span",{class:"fx-tag fx-tag--danger",children:t("usage.failed")})]}),n("small",{children:[_t(u.createdAt,o),Cu(u.projectSource,t("usage.appUnknown"))].join(" \xB7 ")})]}),n("span",{class:"fx-value",children:_a(u.pointsCost,f)??"\u2014"})]},u.id??p))}),a.length>0&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("usage.shown",{shown:we(a.length,o),total:we(Math.max(s,a.length),o)})}),a.length<s&&n(q,{pending:c.pending,onClick:d,children:t("common.loadMore")})]}),c.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ve,{a:c})})]})}var Au=["plugin","amadeus-plugin","skill","agent","space","theme"],vv=["zip","github","npm"],yv=["description","tags","minAppVersion","maxAppVersion","platforms"],xv=50*1024*1024,kv=new Set(["market_npm_invalid","market_npm_source","market_github_source","market_not_found","market_zip_required","market_zip_invalid","market_zip_too_large","market_version_required","market_version_invalid","market_version_mismatch","market_version_not_newer","market_icon_invalid","market_duplicate","market_update_pending","market_stale","market_requirements_invalid","market_requirements_mismatch","market_no_release","market_no_changes","market_dryrun_unsupported"]),wv=new Set(["no_manifest","type_mismatch","tag_version_mismatch","id_slug_mismatch","engine_slug_mismatch","no_entry","has_node_modules"]),Ca=e=>`sub.type.${e.replace("-","_")}`,Eu=e=>e==="approved"?"sub.approved":e==="rejected"?"sub.rejected":"sub.pending",gs=e=>e==="github"?"GitHub":e==="npm"?"npm":"ZIP",zv=e=>e.status==="pending"||!!e.pendingUpdate,Tu=(e,t)=>t==="all"||(t==="pending"?zv(e):e.status===t),Sv=e=>e>=1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,Pu=e=>e.status==="approved"?"sub.updated":"sub.resubmitted";async function ko(e){let t=Q().cloudInvoke;if(!t)return{ok:!1,out:{error:{key:"err.unavailable"}},code:null,values:{}};let o=await t("cloud:marketSubmit",{...e.id?{id:e.id}:{},...e.dryRun?{dryRun:!0}:{},fields:e.fields,...e.zip?{zip:{name:e.zip.name,data:e.zip.data}}:{}}),r=la(o);if(r.ok)return{ok:!0,data:r.data};r.status===401&&Q().authStatus?.().catch(()=>{});let a=Object.fromEntries(Object.entries(o?.json?.values||{}).filter(([,s])=>typeof s=="string"||typeof s=="number").map(([s,l])=>[s,String(l)]));return{ok:!1,out:r.code==="market_version_not_newer"&&a.version&&a.current?{error:{key:"sub.notNewer",vars:a}}:kv.has(r.code||"")?{error:{key:`sub.err.${r.code}`}}:$e(r),code:r.code,values:a}}async function Iu(e){return e.size>xv?{error:{key:"sub.errLarge"}}:{name:e.name,size:e.size,data:new Uint8Array(await e.arrayBuffer())}}function _v(e,t){let o=[e?.minAppVersion&&`\u2265 ${e.minAppVersion}`,e?.maxAppVersion&&`< ${e.maxAppVersion}`].filter(Boolean).join(", "),r=[o&&`Forsion ${o}`,e?.platforms?.length?e.platforms.join(", "):""].filter(Boolean);return r.length?r.join(" \xB7 "):t("sub.reqNone")}function Mu({status:e}){let t=vt();return n("span",{class:`fx-tag ${e==="approved"?"fx-status--resolved":e==="rejected"?"fx-tag--danger":"fx-tag--accent"}`,children:t(Eu(e))})}function Ru(e){let t=`${e.id}-${e.name}`;return n("label",{class:"fx-sub-field",for:t,children:[n("span",{children:e.label}),e.rows?n("textarea",{id:t,value:e.value,rows:e.rows,maxLength:2e5,onInput:o=>e.onInput(o.currentTarget.value)}):n("input",{id:t,value:e.value,placeholder:e.placeholder,maxLength:e.name==="summary"?2e3:500,onInput:o=>e.onInput(o.currentTarget.value)})]})}function Lu({id:e,file:t,disabled:o,onPick:r}){let a=vt(),[i,s]=_(!1);J(()=>{let c=()=>s(!1);return window.addEventListener("dragend",c),window.addEventListener("drop",c,!0),window.addEventListener("blur",c),()=>{window.removeEventListener("dragend",c),window.removeEventListener("drop",c,!0),window.removeEventListener("blur",c)}},[]);let l=c=>{c&&!o&&r(c)};return n("label",{class:`fx-sub-drop${i?" is-over":""}${t?" is-filled":""}`,for:`${e}-zip`,onDragOver:c=>{c.preventDefault(),o||s(!0)},onDragLeave:()=>s(!1),onDrop:c=>{c.preventDefault(),s(!1),l(c.dataTransfer?.files?.[0])},children:[n(B,{name:t?"box":"upload",size:18}),n("span",{class:"fx-sub-drop-text",children:[n("strong",{children:t?t.name:a("sub.dropTitle")}),n("small",{children:t?a("sub.dropReplace",{size:Sv(t.size)}):a("sub.dropHint")})]}),n("input",{id:`${e}-zip`,class:"fx-sub-file",type:"file",accept:".zip,application/zip",disabled:o,onChange:c=>{l(c.currentTarget.files?.[0]),c.currentTarget.value=""}})]})}function Du({check:e,update:t}){let o=vt(),r=e.manifest,a=[r?[!0,"sub.checkType",`${o(Ca(r.type))} \xB7 ${r.file}`]:[!1,"sub.checkType",o("sub.warn.no_manifest")],...e.version?[[!0,"sub.checkVersion",e.current?`v${e.current} \u2192 v${e.version}`:`v${e.version}`]]:[],[!0,"sub.checkIcon",o(e.icon?"sub.iconYes":"sub.iconNo")],[!0,"sub.checkReadme",o(e.readme?"sub.readmeYes":t?"sub.readmeKeep":"sub.readmeNo")],[!0,"sub.checkReq",_v(e.metadata,o)],...(e.warnings||[]).filter(i=>i!=="no_manifest"&&wv.has(i)).map(i=>[!1,"sub.checkWarn",o(`sub.warn.${i}`)])];return n("ul",{class:"fx-sub-checks",children:a.map(([i,s,l])=>n("li",{class:i?"is-ok":"is-warn",children:[n(B,{name:i?"check":"alert",size:14}),n("span",{class:"fx-sub-k",children:o(s)}),n("span",{children:l})]}))})}function Cv({item:e,checks:t,onDone:o}){let r=vt(),a=On(),i=Fe(),s=fe(),[l,c]=_(null),[d,f]=_(null),u=m=>void s.run(async()=>{c(null),f(null);let g=await Iu(m);if(!i.current)return;if(!("data"in g))return g;if(c(g),!t)return;let h=await ko({id:e.id,dryRun:!0,fields:{},zip:g});if(i.current){if(!h.ok)return h.out;f(h.data)}}),p=()=>void s.run(async()=>{if(!l)return;let m=await ko({id:e.id,fields:{},zip:l});if(i.current){if(!m.ok)return m.out;o(Pu(e))}});return n(R,{children:[n(Lu,{id:a,file:l,disabled:s.pending,onPick:u}),d&&n(Du,{check:d,update:!0}),d&&n(ce,{children:r(e.status==="approved"?"sub.zipListedNote":"sub.zipUnlistedNote")}),l&&n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:s.pending,disabled:t&&!d,onClick:p,children:d?.version?r("sub.submitVersion",{version:d.version}):r("sub.submit")}),n(q,{disabled:s.pending,onClick:()=>{c(null),f(null),s.clear()},children:r("common.cancel")})]}),n(ve,{a:s,captchaSection:"submission"})]})}function Av({item:e,onDone:t}){let o=vt(),r=Fe(),a=fe(),[i,s]=_(null),[l,c]=_(null),d=()=>void a.run(async()=>{s(null),c(null);let p=await ko({id:e.id,dryRun:!0,fields:{}});if(r.current){if(!p.ok){if(p.code==="market_version_not_newer"&&p.values.version){c(p.values);return}return p.out}s(p.data)}}),f=()=>void a.run(async()=>{let p=await ko({id:e.id,fields:{}});if(r.current){if(!p.ok)return p.out;t(Pu(e))}}),u=e.source==="github"?e.githubRepoUrl:e.npmPackage;return n(R,{children:[!i&&n(q,{pending:a.pending,onClick:d,children:[n(B,{name:"refresh",size:13}),o(l?"sub.checkAgain":"sub.checkNew")]}),l&&n(ce,{children:o("sub.upToDate",{version:l.version,current:l.current||l.version})}),i&&n(R,{children:[n("div",{class:"fx-sub-upstream",children:[n(B,{name:e.source==="github"?"link":"box",size:18}),n("span",{children:[n("strong",{children:o("sub.upstreamLatest",{version:i.version||""})}),n("small",{children:[u,i.tag&&o("sub.releaseTag",{tag:i.tag}),i.current&&o("sub.storeHas",{version:i.current})].filter(Boolean).join(" \xB7 ")})]})]}),n(ce,{children:o(e.source==="github"?"sub.githubNote":"sub.npmNote",{version:i.version||""})}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:a.pending,onClick:f,children:o("sub.submitVersion",{version:i.version||""})}),n(q,{disabled:a.pending,onClick:()=>{s(null),a.clear()},children:o("common.cancel")})]})]}),n(ve,{a,captchaSection:"submission"})]})}function Tv({item:e,onDone:t}){let o=vt(),r=On(),a=Fe(),i=fe(),s=()=>({name:e.name,summary:e.summary||"",description:e.description||"",tags:(e.tags||[]).join(", "),minAppVersion:e.minAppVersion||"",maxAppVersion:e.maxAppVersion||"",platforms:(e.platforms||[]).join(", ")}),[l,c]=_(s),[d,f]=_(new Set),[u,p]=_(!1),m=v=>x=>{c(w=>({...w,[v]:x})),f(w=>new Set([...w,v])),i.clear()},g=()=>void i.run(async()=>{if(!l.name.trim())return{error:{key:"sub.errName"}};if(!d.size)return{error:{key:"sub.err.market_no_changes"}};let v=await ko({id:e.id,fields:{mode:"info",...Object.fromEntries([...d].map(x=>[x,l[x].trim()]))}});if(a.current){if(!v.ok)return v.out;p(!1),t(e.status==="approved"?"sub.infoSubmitted":"sub.resubmitted")}}),h=(v,x,w={})=>n(Ru,{id:r,name:v,label:o(x),value:l[v],onInput:m(v),...w}),y=o("sub.unset");return n("section",{class:"fx-sub-sec",children:[n("div",{class:"fx-sub-sec-bar",children:[n("h4",{children:o("sub.secInfo")}),!u&&n(q,{disabled:!!e.pendingUpdate,title:e.pendingUpdate?o("sub.err.market_update_pending"):void 0,onClick:()=>{c(s()),f(new Set),i.clear(),p(!0)},children:[n(B,{name:"pencil",size:13}),o("sub.edit")]})]}),u?n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:v=>{v.preventDefault(),g()},children:[n("fieldset",{disabled:i.pending,children:[n("div",{class:"fx-sub-columns",children:[h("name","sub.name"),h("tags","sub.tags",{placeholder:o("sub.tagsHint")})]}),h("summary","sub.summary"),h("description","sub.description",{rows:3}),n("div",{class:"fx-sub-columns",children:[h("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),h("maxAppVersion","sub.maxAppVersion",{placeholder:o("sub.optional")})]}),h("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(ce,{children:o("sub.requirementsHint")}),n(ce,{children:o("sub.infoNote")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:i.pending,submit:!0,children:o("sub.submitInfo")}),n(q,{disabled:i.pending,onClick:()=>{p(!1),i.clear()},children:o("common.cancel")})]}),n(ve,{a:i,captchaSection:"submission"})]}):n("dl",{class:"fx-sub-kv",children:[n("dt",{children:o("sub.summary")}),n("dd",{children:e.summary||y}),n("dt",{children:o("sub.description")}),n("dd",{class:"fx-sub-clamp",children:e.description||y}),n("dt",{children:o("sub.tags")}),n("dd",{children:e.tags?.length?e.tags.join(", "):y}),n("dt",{children:o("sub.minAppVersion")}),n("dd",{children:e.minAppVersion||y}),n("dt",{children:o("sub.maxAppVersion")}),n("dd",{children:e.maxAppVersion||y}),n("dt",{children:o("sub.platforms")}),n("dd",{children:e.platforms?.length?e.platforms.join(", "):y})]})]})}function Ev({item:e,checks:t,notice:o,onBack:r,onDone:a}){let i=vt(),{locale:s}=ie(),l=e.pendingUpdate,c=e.rejectedUpdate;return n("div",{class:"fx-sub-detail","data-detail-id":e.id,children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:r,children:[n(B,{name:"back",size:13}),i("sub.back")]}),n("div",{class:"fx-sub-dhead",children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name}),n(Mu,{status:e.status})]}),n("div",{class:"fx-sub-meta",children:[n("span",{children:i(Ca(e.type))}),n("span",{children:gs(e.source)}),e.version&&n("span",{children:["v",e.version]}),n("span",{children:i("sub.downloads",{n:e.downloads||0})})]}),n("div",{children:n(Ut,{text:e.id,label:`${i("sub.identity")} ${e.id.slice(0,8)}`})})]}),o&&n("p",{class:"fx-msg is-ok",role:"status",children:i(o)}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secVersion")}),e.status==="rejected"&&e.reviewNote&&n(ce,{tone:"error",children:e.reviewNote}),c&&n(ce,{tone:"error",children:[i(c.kind==="info"?"sub.rejectedInfo":"sub.rejectedVersion",{version:c.version}),c.note?`: ${c.note}`:""]}),l?n(R,{children:[n(ce,{children:i(l.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:l.version})}),n(ce,{children:i("sub.pendingHint")})]}):e.status==="pending"&&e.source!=="zip"?n(ce,{children:i("sub.inReview")}):e.source==="zip"?n(Cv,{item:e,checks:t,onDone:a}):n(Av,{item:e,onDone:a})]}),n(Tv,{item:e,onDone:a}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secHistory")}),n("ul",{class:"fx-sub-time",children:[(e.versions||[]).map(d=>n("li",{children:[n("span",{children:Pt(d.createdAt,s)}),n("span",{children:i("sub.histApproved",{version:d.version})})]},`${d.version}-${d.createdAt}`)),e.createdAt&&n("li",{children:[n("span",{children:Pt(e.createdAt,s)}),n("span",{children:i("sub.histSubmitted")})]})]})]})]})}function Pv({checks:e,onDone:t,onBack:o}){let r=vt(),a=On(),i=Fe(),s=fe(),[l,c]=_("zip"),[d,f]=_({type:"plugin",name:"",summary:"",githubRepoUrl:"",npmPackage:"",description:"",tags:"",minAppVersion:"",maxAppVersion:"",platforms:""}),[u,p]=_(new Set),[m,g]=_(null),[h,y]=_(null),v=I=>F=>{f($=>({...$,[I]:F})),p($=>new Set([...$,I])),s.clear()},x=I=>void s.run(async()=>{g(null),y(null);let F=await Iu(I);if(!i.current)return;if(!("data"in F))return F;if(g(F),!e)return;let $=await ko({dryRun:!0,fields:{source:"zip"},zip:F});if(!i.current)return;if(!$.ok)return $.out;let N=$.data;y(N);let Y=N.manifest;f(C=>({...C,type:!u.has("type")&&Y&&Au.includes(Y.type)?Y.type:C.type,name:!u.has("name")&&!C.name&&Y?.name?Y.name:C.name}))}),w=()=>void s.run(async()=>{if(!d.name.trim())return{error:{key:"sub.errName"}};if(l!=="zip"&&!(l==="github"?d.githubRepoUrl:d.npmPackage).trim())return{error:{key:"sub.errSource"}};if(l==="zip"&&!m)return{error:{key:"sub.errZip"}};let I=l==="github"?{githubRepoUrl:d.githubRepoUrl.trim()}:l==="npm"?{npmPackage:d.npmPackage.trim()}:{},F=await ko({fields:{type:d.type,source:l,name:d.name.trim(),summary:d.summary.trim(),...I,...Object.fromEntries(yv.map($=>[$,d[$].trim()]))},zip:l==="zip"?m:null});if(i.current){if(!F.ok)return F.out;t(String(F.data?.id||""))}}),z=(I,F,$={})=>n(Ru,{id:a,name:I,label:r(F),value:d[I],onInput:v(I),...$});return n("div",{class:"fx-sub-detail",children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:o,children:[n(B,{name:"back",size:13}),r("sub.back")]}),n("div",{class:"fx-sub-dhead",children:n("div",{class:"fx-sub-item-head",children:n("strong",{children:r("sub.new")})})}),n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:I=>{I.preventDefault(),w()},children:[n("fieldset",{disabled:s.pending,children:[n(It,{label:r("sub.source"),value:l,options:vv.map(I=>({value:I,label:gs(I)})),onChange:I=>{c(I),s.clear()}}),l==="zip"?n(R,{children:[n(Lu,{id:a,file:m,disabled:s.pending,onPick:x}),h?n(Du,{check:h,update:!1}):n(ce,{children:r("sub.zipHint")})]}):n(R,{children:[l==="github"?z("githubRepoUrl","sub.repo",{placeholder:"https://github.com/owner/repo"}):z("npmPackage","sub.npm",{placeholder:"@scope/plugin-name"}),n(ce,{children:r(l==="github"?"sub.repoHint":"sub.npmHint")})]}),n("div",{class:"fx-sub-columns",children:[n("label",{class:"fx-sub-field",for:`${a}-type`,children:[n("span",{children:r("sub.type")}),n("select",{id:`${a}-type`,value:d.type,onChange:I=>v("type")(I.currentTarget.value),children:Au.map(I=>n("option",{value:I,children:r(Ca(I))},I))})]}),z("name","sub.name")]}),z("summary","sub.summary"),z("description","sub.description",{rows:3}),z("tags","sub.tags",{placeholder:r("sub.tagsHint")}),n("div",{class:"fx-sub-columns",children:[z("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),z("maxAppVersion","sub.maxAppVersion",{placeholder:r("sub.optional")})]}),z("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(ce,{children:r("sub.requirementsHint")}),n(ce,{children:r("sub.identityHint")}),n(ce,{children:r("sub.reviewHint")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",pending:s.pending,submit:!0,children:r("sub.submit")}),n(q,{disabled:s.pending,onClick:o,children:r("common.cancel")})]}),n(ve,{a:s,captchaSection:"submission"})]})]})}var fs=null,ms=new Set;function Nu(e){let t=!1;for(let o of ms)t=o(e)||t;fs=t?null:{id:e,at:Date.now()}}var Iv=()=>{let e=fs;return fs=null,e&&Date.now()-e.at<3e4?e.id:null};function Mv({items:e,checks:t,reload:o}){let r=vt(),[a,i]=_("all"),[s,l]=_(()=>{let v=Iv();return v&&e.some(x=>x.id===v)?v:null}),[c,d]=_(()=>s!==null),[f,u]=_(null);J(()=>{let v=x=>e.some(w=>w.id===x)?(i("all"),l(x),d(!0),u(null),!0):!1;return ms.add(v),()=>{ms.delete(v)}},[e]);let p=e.filter(v=>Tu(v,a)),m=s==="new"?null:p.find(v=>v.id===s)||p[0]||null,g=v=>{l(v),d(!0),u(null)},h=(v,x)=>{i("all"),l(v),u({id:v,key:x}),o()},y=v=>e.filter(x=>Tu(x,v)).length;return n(Ie,{title:r("sub.mine"),desc:r("sub.desc"),actions:n(R,{children:[n(q,{variant:"primary",disabled:s==="new",onClick:()=>g("new"),children:[n(B,{name:"plus",size:13}),r("sub.new")]}),n(q,{onClick:o,children:r("sub.refresh")})]}),children:!e.length&&s!=="new"?n(wt,{children:[n("strong",{children:r("sub.empty")}),n("p",{children:r("sub.emptyHint")})]}):n(R,{children:[!!e.length&&n("div",{class:"fx-sub-filter",children:n(It,{label:r("sub.filter"),value:a,onChange:i,options:["all","pending","approved","rejected"].map(v=>({value:v,label:`${r(v==="all"?"sub.all":Eu(v))} ${y(v)}`}))})}),n("div",{class:"fx-sub-cq",children:n("div",{class:`fx-sub-split${c?" is-picked":""}`,children:[n("nav",{class:"fx-sub-list","aria-label":r("sub.mine"),children:p.length?p.map(v=>n("button",{type:"button","data-submission-id":v.id,class:`fx-sub-li${v.id===m?.id?" is-on":""}`,"aria-current":v.id===m?.id||void 0,onClick:()=>g(v.id),children:[n("span",{class:"fx-sub-li-top",children:[n("strong",{children:v.name}),n(Mu,{status:v.status})]}),n("span",{class:"fx-sub-li-meta",children:[r(Ca(v.type)),gs(v.source),v.version&&`v${v.version}`].filter(Boolean).join(" \xB7 ")}),v.pendingUpdate&&n("span",{class:"fx-sub-li-meta",children:r(v.pendingUpdate.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:v.pendingUpdate.version})})]},v.id)):n("p",{class:"fx-note",children:r(e.length?"sub.noResults":"sub.empty")})}),s==="new"?n(Pv,{checks:t,onBack:()=>{l(null),d(!1)},onDone:v=>h(v,"sub.submitted")}):m?n(Ev,{item:m,checks:t,notice:f?.id===m.id?f.key:null,onBack:()=>d(!1),onDone:v=>h(m.id,v)},m.id):n("div",{class:"fx-sub-detail",children:n("p",{class:"fx-note",children:r("sub.noResults")})})]})})]})})}function Ou(){let e=nt(()=>j("/market/mine"));switch(e.state){case"loading":return n(Je,{});case"signedOut":return n(lt,{});case"error":return n(ut,{error:e.error,onRetry:e.retry});case"ready":return n(Mv,{items:e.data?.items||[],checks:e.data?.dryRun===!0,reload:e.reload})}}var Qn=Object.freeze({payer:"visitor",perVisitorDaily:20,pageDailyPoints:300,onExhausted:"visitor",models:[]}),wo=(e,t)=>typeof e=="number"&&Number.isFinite(e)?Math.round(e):t,Aa=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function qo(e){return{payer:e?.payer==="author"?"author":"visitor",perVisitorDaily:Math.max(1,wo(e?.perVisitorDaily,Qn.perVisitorDaily)),pageDailyPoints:Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),onExhausted:e?.onExhausted==="pause"?"pause":"visitor",models:Array.isArray(e?.models)?e.models.filter(t=>typeof t=="string"):[]}}function Ta(e,t){return e.payer===t.payer&&e.perVisitorDaily===t.perVisitorDaily&&e.pageDailyPoints===t.pageDailyPoints&&e.onExhausted===t.onExhausted&&e.models.length===t.models.length&&e.models.every((o,r)=>o===t.models[r])}var hs=e=>Math.max(1,wo(e?.perVisitorMax,50)),Ea=e=>Math.max(1,wo(e?.pageDailyMax,2e4));function bs(e,t){return{...e,perVisitorDaily:Math.min(hs(t),Math.max(1,wo(e.perVisitorDaily,Qn.perVisitorDaily))),pageDailyPoints:Math.min(Ea(t),Math.max(1,wo(e.pageDailyPoints,Qn.pageDailyPoints)))}}var Fu=e=>(e?.models||[]).filter(t=>t?.isDefault).map(t=>t.id);function vs(e,t,o){return e.models.length?e.models.includes(o):Fu(t).includes(o)}function Bu(e,t,o){let r=new Set((t?.models||[]).map(s=>s.id)),a=(e.models.length?e.models:Fu(t)).filter(s=>r.has(s)),i=a.includes(o)?a.filter(s=>s!==o):[...a,o];return i.length?{...e,models:i}:e}var $u=e=>e.type==="image"||e.type==="image_gen";function Uu(e,t=Date.now()){let o=e?.cooldownUntil?Date.parse(e.cooldownUntil):NaN;return Number.isFinite(o)&&o>t}function Hu(e,t){let o=Math.min(Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),Ea(t)),r=Math.max(0,Number(e?.today?.points)||0);return Math.max(0,Math.min(100,Math.round(r/o*100)))}function qu(e){let t=Number(e?.balance)||0,o=Math.max((Number(e?.balance)||0)+Math.max(0,Number(e?.monthSpent)||0),Number(e?.lastTopUp?.amount)||0);return o>0&&t<o*.1}function Pa(e,t,o){let r=bs(t,o);return j(`/connect/apps/${encodeURIComponent(e)}/ai`,{method:"PUT",body:{payer:r.payer,perVisitorDaily:r.perVisitorDaily,pageDailyPoints:r.pageDailyPoints,onExhausted:r.onExhausted,models:r.models}})}var Vu=e=>j(`/connect/apps/${encodeURIComponent(e)}/ai/resume`,{method:"POST"}),Rv="forsion-extend:items";function wr(e){let t=Oe(e?.getLocale?.()),o=Q().openFloatingPanel;if(o){o({id:"market",title:ze(t,"pack.storeTitle"),builtin:"market",params:{storeView:Rv,nonce:Date.now()}})?.catch?.(()=>{});return}e?.app?.runCommand?.("open-market")||e?.app?.notify?.(ze(t,"pack.storeUnavailable"))}function Wu(e){let{t}=ie(),[o,r]=_(String(e.value));J(()=>{r(String(e.value))},[e.value]);let a=()=>{let i=Math.min(e.max,Math.max(1,parseInt(o,10)||1));r(String(i)),i!==e.value&&e.onChange(i)};return n("input",{class:e.wide?"is-wide":void 0,type:"text",inputMode:"numeric","aria-label":e.label,title:t("ai.max",{n:e.max}),value:o,disabled:e.disabled,onInput:i=>{let s=i.currentTarget.value.replace(/[^0-9]/g,"").slice(0,7);r(s);let l=parseInt(s,10);l>=1&&l<=e.max&&l!==e.value&&e.onChange(l)},onBlur:a,onKeyDown:i=>{i.key==="Enter"&&a()}})}function ju(e){let{t}=ie(),o=e.model,r=n(R,{children:[e.on&&n(B,{name:"check",size:11}),$u(o)?`${t("ai.modelImage")} \xB7 ${o.name||o.id}`:o.name||o.id,o.isDefault&&n("em",{children:t("ai.modelDefault")})]});return e.onClick?n("button",{type:"button",class:`fx-pub-chip${e.on?" is-on":""}`,"aria-pressed":e.on,disabled:e.disabled,onClick:e.onClick,children:r}):n("span",{class:`fx-pub-chip${e.on?" is-on":""}`,children:r})}function Ia(e){let{t,locale:o}=ie(),r=On(),{draft:a,ap:i}=e,s=i.enabled!==!1,l=s&&a.payer==="author",c=h=>e.onChange(bs({...a,...h},i)),d=(i.models||[]).filter(h=>h&&typeof h.id=="string"),f=(i.visitorModels||[]).filter(h=>h&&typeof h.id=="string"),u=d.filter(h=>vs(a,i,h.id)).length,p=(e.methods||[]).filter(Boolean),m=e.cooldownUntil&&Date.parse(e.cooldownUntil)>Date.now()?e.cooldownUntil:null,g=Number(i.balance)||0;return n("div",{class:"fx-pub-ai","data-fx-ai":l?"author":"visitor",children:[n("div",{class:"fx-pub-ai-head",children:[n(B,{name:"sparkles",size:13}),n("b",{children:"AI"}),p.length>0&&n("small",{children:p.join(" \xB7 ")})]}),s&&n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.whoPays")}),n(It,{value:a.payer,label:t("ai.whoPays"),options:[{value:"visitor",label:t("ai.payer.visitor")},{value:"author",label:t("ai.payer.author")}],onChange:h=>{e.disabled||c({payer:h})}})]}),l&&n(R,{children:[n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.perVisitor")}),n("span",{class:"fx-pub-num",children:[t("ai.perVisitorPre")," ",n(Wu,{value:a.perVisitorDaily,max:hs(i),label:t("ai.perVisitor"),disabled:e.disabled,onChange:h=>c({perVisitorDaily:h})})," ",t("ai.perVisitorPost")]})]}),n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.page")}),n("span",{class:"fx-pub-num",children:[t("ai.pagePre")," ",n(Wu,{wide:!0,value:a.pageDailyPoints,max:Ea(i),label:t("ai.page"),disabled:e.disabled,onChange:h=>c({pageDailyPoints:h})})," ",t("ai.pagePost")]})]}),n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",id:`${r}-ex`,children:t("ai.whenUsedUp")}),n("div",{class:"fx-pub-radio",role:"radiogroup","aria-labelledby":`${r}-ex`,children:["visitor","pause"].map(h=>n("label",{children:[n("input",{type:"radio",name:`${r}-ex`,value:h,checked:a.onExhausted===h,disabled:e.disabled,onChange:()=>c({onExhausted:h})}),n("i",{"aria-hidden":"true"}),t(h==="visitor"?"ai.exhausted.visitor":"ai.exhausted.pause")]},h))})]})]}),(l?d:f).length>0&&n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",children:t("ai.models")}),n("div",{class:"fx-pub-chips",role:"group","aria-label":t("ai.models"),children:l?d.map(h=>{let y=vs(a,i,h.id);return n(ju,{model:h,on:y,disabled:e.disabled||y&&u<=1,onClick:()=>e.onChange(Bu(a,i,h.id))},h.id)}):f.map(h=>n(ju,{model:h,on:!0},h.id))})]}),l&&n("div",{class:"fx-pub-budget",children:[t("ai.balance")," ",n("b",{children:t("ai.points",{n:we(g,o)})}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",onClick:e.onBuy,children:t("ai.buy")})]}),l&&(e.unpublished||m)&&n("p",{class:"fx-pub-note is-warn",children:[n(B,{name:"clock",size:11}),m?t("ai.cooldownUntil",{time:_t(m,o)}):t("ai.cooldownNew",{h:Math.max(0,Math.round(Number(i.cooldownHours??24)))})]}),l&&p.includes("forsion.ai.agent")&&n("p",{class:"fx-pub-note",children:[n(B,{name:"alert",size:11}),t("ai.agentNote")]}),n("p",{class:"fx-pub-note",children:[n(B,{name:l?"info":"user",size:11}),t(s?l?"ai.noteAuthor":"ai.noteVisitor":"ai.noteOff")]})]})}var Ma=`
|
|
747
750
|
.fx-pub-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.42); }
|
|
748
751
|
.fx-pub-card { box-sizing: border-box; width: 440px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); overflow: auto; padding: 16px 18px; border: var(--border-width) solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); text-align: left; }
|
|
749
752
|
.fx-pub-head { display: flex; align-items: center; gap: 8px; color: var(--text); }
|
|
@@ -866,7 +869,7 @@ button.fx-pub-chip:disabled { cursor: default; }
|
|
|
866
869
|
.fx-pub-who { display: inline-flex; align-items: center; gap: 6px; }
|
|
867
870
|
.fx-pub-av { display: inline-grid; place-items: center; width: 18px; height: 18px; overflow: hidden; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font-size: var(--ui-font-caption); line-height: 1; font-weight: 600; }
|
|
868
871
|
.fx-pub-av img { width: 100%; height: 100%; object-fit: cover; }
|
|
869
|
-
`;var gs=300,wr=e=>e.replace(/\/+$/,"").replace(/\/api$/,""),hs=e=>typeof e=="string"&&/^https?:\/\//i.test(e);function bs(e,t,o){let r=e.apps?.find(i=>i.slug===o);if(hs(r?.publicUrl))return r.publicUrl;let a=e.publicBase?wr(e.publicBase):t;return a&&e.handle?`${a}/apps/${e.handle}/${o}/`:""}var vs=(e=0)=>e<1024*1024?`${Math.max(1,Math.ceil(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;function qu(e,t){let o=Q().openExternal;o&&(t.preventDefault(),o(e)?.catch(()=>{}))}function Pv({page:e}){let{t,locale:o}=ie();return typeof e.likes!="number"&&typeof e.favorites!="number"?null:n("span",{class:"fx-pub-soc","data-fx-social":!0,children:[typeof e.likes=="number"&&n("span",{title:t("pub.likes",{n:ze(e.likes,o)}),children:[n(B,{name:"heart",size:11}),ze(e.likes,o)]}),typeof e.favorites=="number"&&n("span",{title:t("pub.saves",{n:ze(e.favorites,o)}),children:[n(B,{name:"star",size:11}),ze(e.favorites,o)]})]})}function Mv({page:e,ap:t,open:o,onToggle:r,reload:a}){let{t:i,locale:s}=ie(),l=fe(),c=e.ai,d=n(Pv,{page:e}),f=e.status==="disabled";if(!t||!c||f||e.usesSdk===!1)return!(typeof e.likes=="number"||typeof e.favorites=="number")&&!(t&&e.usesSdk===!1)?null:n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"none",children:[d,t&&e.usesSdk===!1&&n("span",{children:i("web.ai.none")})]});let u=m=>ze(Math.max(0,Number(m)||0),s),p=n("button",{type:"button",class:"fx-link","aria-expanded":o,onClick:r,children:i("web.ai.settings")});if(c.payer==="author"&&c.paused){let m=c.pausedReason==="admin";return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"paused",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.paused")]}),n("span",{children:i(m?"web.ai.pausedAdmin":"web.ai.pausedSpike")}),d,n("span",{class:"fx-pub-grow"}),!m&&n(q,{pending:l.pending,onClick:()=>void l.run(async()=>{let g=await $u(e.slug);if(!g.ok)return $e(g);a()}),children:i("web.ai.resume")}),p,n(be,{a:l})]})}if(c.payer==="author"){let m=Fu(c,t);return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"author",children:[n("span",{class:"fx-pub-pill is-on",children:[n(B,{name:"sparkles",size:11}),i("web.ai.author")]}),Ou(c)?n("span",{children:i("web.ai.cooldown",{time:_t(c.cooldownUntil,s)})}):n(L,{children:[n("span",{children:i("web.ai.todayAuthor",{calls:u(c.today?.calls),visitors:u(c.today?.visitors)})}),n("span",{class:"fx-pub-meter",role:"meter","aria-label":i("web.ai.cap"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":m,children:[i("web.ai.cap")," ",n("span",{children:n("i",{style:{width:`${m}%`}})}),m,"%"]})]}),d,n("span",{class:"fx-pub-grow"}),p]})}return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"visitor",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.visitor")]}),n("span",{children:i("web.ai.todayVisitor",{calls:u(c.today?.calls)})}),d,n("span",{class:"fx-pub-grow"}),p]})}function Iv({page:e,ap:t,onDone:o,onBusy:r,reload:a}){let{t:i,ctx:s}=ie(),l=fe(),c=qo(e.ai),[d,f]=_(c),u=!Aa(d,c);return n("div",{class:"fx-pub-inline","data-fx-ai-settings":!0,children:[n(Pa,{draft:d,onChange:f,ap:t,cooldownUntil:e.ai?.cooldownUntil,disabled:l.pending,onBuy:()=>kr(s)}),n("div",{class:"fx-pub-inline-acts",children:[n(q,{variant:"primary",pending:l.pending,disabled:!u,onClick:()=>void l.run(async()=>{r(!0);try{let p=await Ea(e.slug,d,t);if(!p.ok)return $e(p);a(),o()}finally{r(!1)}}),children:i("ai.save")}),n(q,{disabled:l.pending,onClick:o,children:i("common.cancel")})]}),n(be,{a:l})]})}function Rv({page:e,url:t,reload:o,ap:r}){let a=vt(),{locale:i}=ie(),s=On(),l=fe(),[c,d]=_(null),[f,u]=_(!1),[p,m]=_(!1),g=e.listing_status||null,h=e.status==="disabled",y=(k,z,P,F)=>void l.run(async()=>{let $=await G(k,{method:z,body:P});if(!$.ok)return $e($);F?.(),o()}),b=`/connect/apps/${encodeURIComponent(e.slug)}`,w=g==="pending"?["web.listingPending","fx-tag--accent"]:g==="approved"?["web.listingApproved","fx-status--resolved"]:g==="rejected"?["web.listingRejected","fx-tag--danger"]:null;return n("article",{class:"fx-sub-item","data-webpage":e.slug,children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name||e.slug}),h&&n("span",{class:"fx-tag fx-tag--danger",children:a("web.disabled")}),w&&n("span",{class:`fx-tag ${w[1]}`,children:a(w[0])})]}),t&&n("a",{class:"fx-web-url",href:t,target:"_blank",rel:"noopener noreferrer",onClick:k=>qu(t,k),children:t}),n("div",{class:"fx-sub-meta",children:[n("span",{children:e.slug}),n("span",{children:vs(e.total_bytes)}),e.updated_at&&n("span",{children:a("web.updated",{date:Pt(e.updated_at,i)})})]}),n(Mv,{page:e,ap:r,open:f,onToggle:()=>{p||u(k=>!k)},reload:o}),f&&r&&e.ai&&!h&&n(Iv,{page:e,ap:r,onDone:()=>u(!1),onBusy:m,reload:o}),h&&n(ue,{tone:"error",children:a("web.disabledHint")}),g==="rejected"&&e.listing_note&&n(ue,{tone:"error",children:a("web.listingNote",{note:e.listing_note})}),c!==null&&n("form",{class:"fx-sub-form",onSubmit:k=>{k.preventDefault(),c.trim()&&y(`${b}/listing`,"PUT",{summary:c.trim()},()=>d(null))},children:[n("label",{class:"fx-sub-field",for:`${s}-summary`,children:[n("span",{children:a("web.listingSummary")}),n("textarea",{id:`${s}-summary`,rows:2,maxLength:gs,value:c,disabled:l.pending,placeholder:a("web.listingSummaryPh"),onInput:k=>d(k.currentTarget.value)}),n("small",{children:a("web.listingHint")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",submit:!0,pending:l.pending,disabled:!c.trim(),children:a("web.listingSubmit")}),n(q,{disabled:l.pending,onClick:()=>d(null),children:a("common.cancel")})]})]}),c===null&&n("div",{class:"fx-web-actions",children:[t&&n(Ut,{text:t,label:a("web.copy")}),!h&&!g&&n(q,{disabled:l.pending,onClick:()=>d(""),children:a("web.listingApply")}),!h&&g==="rejected"&&n(q,{disabled:l.pending,onClick:()=>d(e.listing_summary||""),children:a("web.listingReapply")}),g==="pending"&&n(q,{pending:l.pending,onClick:()=>y(`${b}/listing`,"DELETE"),children:a("web.listingWithdraw")}),g==="approved"&&n(Gt,{label:a("web.listingDelist"),confirmLabel:a("web.listingDelistConfirm"),pending:l.pending,onConfirm:()=>y(`${b}/listing`,"DELETE")}),n(Gt,{variant:"danger",label:a("web.unpublish"),confirmLabel:a("web.unpublishConfirm"),pending:l.pending,onConfirm:()=>y(b,"DELETE")})]}),n(be,{a:l})]})}function Lv(){let{t:e,locale:t}=ie(),o=nt(()=>G("/connect/ai/usage?days=30"));if(o.state==="loading")return n("div",{class:"fx-pub-usage",children:n("p",{children:e("common.loading")})});if(o.state!=="ready")return n("div",{class:"fx-pub-usage",children:n(ue,{tone:"error",children:o.state==="error"?e("common.loadFailed"):e("err.signedOut")})});let r=Array.isArray(o.data?.rows)?o.data.rows:[];if(!r.length)return n("div",{class:"fx-pub-usage",children:n("p",{children:e("pack.usageEmpty")})});let a=i=>ze(Math.round(Math.max(0,Number(i)||0)),t);return n("div",{class:"fx-pub-usage","data-fx-usage":!0,children:n("table",{"aria-label":e("pack.usageTitle"),children:[n("thead",{children:n("tr",{children:[n("th",{children:e("pack.col.day")}),n("th",{children:e("pack.col.page")}),n("th",{class:"is-num",children:e("pack.col.calls")}),n("th",{class:"is-num",children:e("pack.col.visitors")}),n("th",{class:"is-num",children:e("pack.col.points")})]})}),n("tbody",{children:r.map((i,s)=>n("tr",{children:[n("td",{children:i.day?Pt(i.day,t):""}),n("td",{children:i.name||i.slug}),n("td",{class:"is-num",children:a(i.calls)}),n("td",{class:"is-num",children:a(i.visitors)}),n("td",{class:"is-num",children:a(i.points)})]},`${i.day}:${i.slug}:${s}`))})]})})}function Dv({ap:e}){let{t,locale:o,ctx:r}=ie(),[a,i]=_(!1),s=Bu(e),l=Math.round(Number(e.balance)||0),c=e.lastTopUp&&typeof e.lastTopUp.amount=="number"?e.lastTopUp:null;return n(L,{children:[n("div",{class:`fx-pub-pool${s?" is-low":""}`,"data-fx-pool":s?"low":"ok",children:[n("div",{children:[n("div",{class:"fx-pub-pool-lbl",children:t("ai.balance")}),n("div",{class:"fx-pub-pool-big",children:[ze(l,o),n("small",{children:t("pack.points")})]}),n("div",{class:"fx-pub-pool-note",children:t(s?"pack.lowNote":"pack.note")})]}),n("div",{class:"fx-pub-pool-acts",children:[n(q,{variant:s?"primary":"ghost",onClick:()=>kr(r),children:t("ai.buy")}),!s&&n(q,{onClick:()=>i(d=>!d),children:t("pack.usage")})]}),n("div",{class:"fx-pub-pool-split",children:[n("span",{children:[t("pack.monthSpent")," ",n("b",{children:t("ai.points",{n:ze(Math.round(Number(e.monthSpent)||0),o)})})]}),c&&n("span",{children:[t("pack.lastTopUp")," ",n("b",{children:t("pack.topUp",{date:c.at?Pt(c.at,o):"",n:ze(Math.round(c.amount),o)})})]})]})]}),a&&!s&&n(Lv,{})]})}function Nv({items:e,publicOrigin:t,onRemoved:o}){let{t:r,locale:a}=ie();return e.length?n(L,{children:e.map(i=>n(Fv,{item:i,publicOrigin:t,locale:a,onRemoved:o},`${i.handle}/${i.slug}`))}):n(wt,{children:[n("strong",{children:r("saved.empty")}),n("p",{children:r("saved.emptyHint")})]})}function Ov(e,t){if(!e.handle)return"";let o=typeof e.url=="string"?/^(https?:\/\/[^/]+)\/([^/]+)\//i.exec(e.url):null;return o&&o[2]===e.handle?`${o[1]}/${e.handle}`:t&&hs(t)?`${wr(t)}/${e.handle}`:""}function Fv({item:e,publicOrigin:t,locale:o,onRemoved:r}){let a=vt(),i=fe(),s=hs(e.url)?e.url:"",l=Ov(e,t),c=e.authorNickname||e.handle||"",d=f=>{let u=Q().openExternal;u?u(f)?.catch(()=>{}):window.open(f,"_blank","noopener")};return n("article",{class:"fx-sub-item","data-saved":`${e.handle}/${e.slug}`,children:[n("div",{class:"fx-sub-item-head",children:n("strong",{children:e.name||e.slug})}),s&&n("a",{class:"fx-web-url",href:s,target:"_blank",rel:"noopener noreferrer",onClick:f=>qu(s,f),children:s}),n("div",{class:"fx-sub-meta",children:[c&&n("span",{class:"fx-pub-who",children:[n("span",{class:"fx-pub-av","aria-hidden":"true",children:xa(c)}),e.handle?`@${e.handle}`:c]}),typeof e.likes=="number"&&n("span",{class:"fx-pub-soc",children:n("span",{children:[n(B,{name:"heart",size:11}),ze(e.likes,o)]})}),e.payer==="author"?n("span",{children:a("saved.aiAuthor")}):e.payer==="visitor"?n("span",{children:a("saved.aiVisitor")}):null]}),n("div",{class:"fx-web-actions",children:[s&&n(q,{onClick:()=>d(s),children:a("saved.open")}),l&&n(q,{onClick:()=>d(l),children:a("saved.author")}),e.handle&&e.slug&&n(q,{pending:i.pending,onClick:()=>void i.run(async()=>{let f=await G(`/connect/page/${encodeURIComponent(e.handle)}/${encodeURIComponent(e.slug)}/reactions/favorite`,{method:"DELETE"});if(!f.ok)return $e(f);r(e)}),children:a("saved.unsave")})]}),n(be,{a:i})]})}function Bv({data:e,reload:t}){let o=vt(),r=Fe(),[a,i]=_(""),[s,l]=_("mine"),[c,d]=_({state:"idle"}),f=ne(0);J(()=>{if(e.publicBase)return;let b=!0;return Q().authStatus?.().then(w=>{b&&w?.cloudUrl&&i(wr(w.cloudUrl))}).catch(()=>{}),()=>{b=!1}},[e.publicBase]);let u=Ca(e.authorPays)?e.authorPays:null,p=Nt(()=>{let b=++f.current;d(w=>w.state==="ready"?w:{state:"loading"}),G("/connect/favorites").then(w=>{!r.current||b!==f.current||d(w.ok?{state:"ready",items:Array.isArray(w.data?.items)?w.data.items:[]}:{state:"error"})})},[]);J(()=>{u&&p()},[!!u,p]);let m=e.apps||[],g=b=>bs(e,a,b),h=typeof e.limit=="number"&&m.length>=e.limit,y=()=>{t(),u&&p()};return n(Me,{title:o("web.title"),desc:o("web.desc"),actions:n(q,{onClick:y,children:o("web.refresh")}),children:[n("style",{children:Ma}),u&&n("div",{class:"fx-pub-tabs",children:n(Mt,{value:s,label:o("web.title"),onChange:l,options:[{value:"mine",label:o("web.tabMine",{n:m.length})},{value:"saved",label:c.state==="ready"?o("web.tabSavedN",{n:c.items.length}):o("web.tabSaved")}]})}),s==="saved"&&u?c.state==="ready"?n(Nv,{items:c.items,publicOrigin:e.publicOrigin,onRemoved:b=>{f.current++,d(w=>w.state==="ready"?{state:"ready",items:w.items.filter(k=>!(k.handle===b.handle&&k.slug===b.slug))}:w)}}):c.state==="error"?n(wt,{children:[n("strong",{children:o("common.loadFailed")}),n("p",{children:n("button",{type:"button",class:"fx-link",onClick:p,children:o("common.retry")})})]}):n(wt,{children:n("p",{children:o("common.loading")})}):n(L,{children:[typeof e.limit=="number"&&n("p",{class:"fx-web-quota",children:[o("web.used",{used:m.length,limit:e.limit}),h?` \xB7 ${o("web.full")}`:""]}),u&&n(Dv,{ap:u}),m.length?m.map(b=>n(Rv,{page:b,url:g(b.slug),reload:t,ap:u},b.slug)):n(wt,{children:[n("strong",{children:o("web.empty")}),n("p",{children:o("web.emptyHint")})]})]})]})}function Vu(){let e=nt(()=>G("/connect/apps"));switch(e.state){case"loading":return n(Je,{});case"signedOut":return n(lt,{});case"error":return n(ut,{error:e.error,onRetry:e.retry});case"ready":return n(Bv,{data:e.data||{},reload:e.reload})}}var $v=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function ys(e,t){let o=Q().cloudInvoke;if(!o)throw new Error("no_bridge");let r=await o(e,t);if(!$v(r))throw new Error(String(r?.error??"unavailable"));return r}var Uv=["diag.item.app","diag.item.settings","diag.item.agents","diag.item.plugins","diag.item.runs","diag.item.sync"];function Wu(){let[e,t]=_(0);return J(()=>Q().onAuthChanged?.(()=>t(o=>o+1)),[]),n(Hv,{standalone:!0},e)}function Hv({standalone:e=!1}={}){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(null),[s,l]=_(!1),c=fe(),d=fe();if(J(()=>{let h=!1,y=0,b=()=>{let k=++y;ys("diagnostics:get").then(z=>{!h&&k===y&&(i(z),l(!0))},()=>{!h&&k===y&&(i(null),l(!0))})};b();let w=Q().onAuthChanged?.(b);return()=>{h=!0,w?.()}},[]),!a?.signedIn)return e?s?a?n(lt,{}):n(wt,{children:t("diag.unavailable")}):n(Je,{panels:1}):null;let f=()=>void d.run(async()=>{try{let h=await ys("diagnostics:uploadNow");return r.current&&i(h),h.lastError?{error:{key:"diag.failed",vars:{reason:h.lastError}}}:h.enabled&&h.lastUploadAt?{success:{key:"diag.uploaded"}}:void 0}catch(h){return{error:{raw:gt(h)||t("err.generic")}}}}),u=async h=>{let y=!1;await c.run(async()=>{d.clear();try{let b=await ys("diagnostics:set",h);r.current&&i(b),y=!0}catch(b){return{error:{raw:gt(b)||t("err.generic")}}}}),y&&h.enabled&&r.current&&f()},p=a.intervalHours??24,m=a.mode==="manual"?t("diag.freq.manual"):p===1?t("diag.freq.hour"):p%24===0?p===24?t("diag.freq.day"):t("diag.freq.days",{n:p/24}):t("diag.freq.hours",{n:p}),g=`${a.lastUploadAt?t("diag.last",{time:_t(a.lastUploadAt,o)}):t("diag.noUpload")} \xB7 ${m}`;return n(Me,{icon:"chart",title:t("diag.title"),desc:t("diag.desc"),children:[n(We,{label:t("diag.enable"),desc:t("diag.enableDesc"),children:n(Qt,{checked:a.enabled,disabled:c.pending,label:t("diag.enable"),onChange:h=>void u({enabled:h})})}),n(Ee,{class:"fx-diag",children:[n("strong",{children:t("diag.collected")}),n("ul",{children:Uv.map(h=>n("li",{children:t(h)},h))}),n(ue,{children:t("diag.notCollected")})]}),a.sessions!==void 0&&n(We,{label:t("diag.sessions"),desc:t("diag.sessionsDesc"),children:n(Qt,{checked:a.sessions,disabled:c.pending,label:t("diag.sessions"),onChange:h=>void u({sessions:h})})}),a.memory!==void 0&&n(We,{label:t("diag.memory"),desc:t("diag.memoryDesc"),children:n(Qt,{checked:a.memory,disabled:c.pending,label:t("diag.memory"),onChange:h=>void u({memory:h})})}),n(We,{label:t("diag.activity"),desc:t("diag.activityDesc"),children:n(Qt,{checked:a.activity,disabled:c.pending,label:t("diag.activity"),onChange:h=>void u({activity:h})})}),a.enabled&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:g}),n(q,{pending:d.pending,disabled:c.pending,onClick:f,children:t("diag.uploadNow")})]}),n(Ee,{class:"fx-sub--tight",children:[n(ue,{children:t("diag.retention",{n:a.retainDays})}),a.enabled&&a.lastError&&!d.error&&!d.success&&n("div",{class:"fx-msg is-error",role:"alert",children:t("diag.failed",{reason:a.lastError})}),n(be,{a:c}),n(be,{a:d})]})]})}var zr=20,Ia=5,qv=5*1024*1024,Ra=1e4,Vv={open:"fb.status.open",in_progress:"fb.status.in_progress",resolved:"fb.status.resolved",closed:"fb.status.closed"};function Gu(e){let{t}=ie(),o=e.status||"open",r=Vv[o];return n("span",{class:`fx-tag fx-status fx-status--${o}`,children:r?t(r):o})}function Ju(){let[e,t]=_(null),o=nt(async()=>{let r=await G(`/feedback?limit=${zr}&offset=0`);return r.ok?{ok:!0,status:r.status,data:Array.isArray(r.data?.tickets)?r.data.tickets:[]}:r});return o.state==="loading"?n(Je,{panels:1,rows:3}):o.state==="signedOut"?n(lt,{}):o.state==="error"?n(ut,{error:o.error,onRetry:o.retry}):e?n(Xv,{id:e,onBack:()=>{t(null),o.reload()}}):n(Wv,{first:o.data,onOpen:t,onChanged:o.reload})}function Wv(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(e.first),[s,l]=_(e.first.length===zr),[c,d]=_(!1),[f,u]=_(!1),p=fe();J(()=>{i(e.first),l(e.first.length===zr)},[e.first]);let m=()=>void p.run(async()=>{let g=await G(`/feedback?limit=${zr}&offset=${a.length}`);if(!g.ok)return{error:bt(g)};let h=Array.isArray(g.data?.tickets)?g.data.tickets:[];r.current&&(i(y=>{let b=new Set(y.map(w=>w.id));return[...y,...h.filter(w=>!b.has(w.id))]}),l(h.length===zr))});return n(Me,{icon:"message",title:t("fb.list.title"),desc:t("fb.list.desc"),actions:c?void 0:n(q,{variant:"primary",onClick:()=>{u(!1),d(!0)},children:[n(B,{name:"plus",size:12})," ",t("fb.new")]}),children:[c&&n(Jv,{onCancel:()=>d(!1),onSubmitted:()=>{d(!1),u(!0),e.onChanged()}}),f&&!c&&n(Ee,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t("fb.submitted")})}),a.length===0?n(wt,{children:t("fb.empty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map(g=>n("button",{type:"button",class:"fx-list-row fx-list-row--button",role:"listitem",onClick:()=>e.onOpen(g.id),children:[n("span",{class:`fx-dot${g.user_unread?" is-on":""}`,"aria-label":g.user_unread?t("fb.unread"):void 0}),n("span",{class:"fx-list-main",children:[n("strong",{children:g.title||(g.description||"").slice(0,60)||t("fb.untitled")}),n("small",{children:_t(g.updated_at||g.created_at,o)})]}),n(Gu,{status:g.status}),n(B,{name:"chevron",size:12})]},g.id))}),a.length>0&&(s||p.error)&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("fb.shown",{n:ze(a.length,o)})}),s&&n(q,{pending:p.pending,onClick:m,children:t("common.loadMore")})]}),p.error&&n(Ee,{children:n(be,{a:p})})]})}function jv(e){return new Promise((t,o)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>o(r.error||new Error("read failed")),r.readAsDataURL(e)})}var Gv=0;function Jv(e){let{t}=ie(),o=Fe(),[r,a]=_(""),[i,s]=_([]),[l,c]=_(null),[d,f]=_(!1),u=ne(null),p=fe(),[m,g]=_(0),h=ne(0);h.current=i.length;let y=async w=>{c(null);for(let k of Array.from(w||[])){if(!k.type||!k.type.startsWith("image/")){c({key:"err.imageType"});continue}if(k.size>qv){c({key:"err.imageTooLarge"});continue}if(h.current>=Ia){c({key:"err.tooManyImages"});break}h.current++,g(z=>z+1);try{let z=await jv(k);if(!o.current)return;let P={id:`img-${++Gv}`,filename:k.name||"image",mime_type:k.type,size:k.size,data_base64:z.replace(/^data:[^;]+;base64,/,""),url:z};s(F=>F.length>=Ia?F:[...F,P])}catch{h.current--,c({key:"err.imageRead"})}finally{o.current&&g(z=>z-1)}}},b=()=>void p.run(async()=>{let w=r.trim();if(!w)return{error:{key:"err.feedbackEmpty"}};if(w.length>Ra)return{error:{key:"err.feedbackTooLong"}};let k=i.map(({filename:P,mime_type:F,size:$,data_base64:O})=>({filename:P,mime_type:F,size:$,data_base64:O})),z=await G("/feedback",{method:"POST",body:{description:w,attachments:k},timeoutMs:12e4});if(!z.ok)return $e(z);e.onSubmitted()});return n("div",{class:`fx-sub fx-form fx-composer${d?" is-drag":""}`,onPaste:w=>{let k=Array.from(w.clipboardData?.items||[]).filter(z=>z.kind==="file").map(z=>z.getAsFile()).filter(Boolean);k.length&&(w.preventDefault(),y(k))},onDragOver:w=>{w.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onDrop:w=>{w.preventDefault(),f(!1),y(w.dataTransfer?.files)},children:[n("label",{class:"fx-field",children:[n("span",{children:t("fb.descLabel")}),n("textarea",{class:"fx-input fx-textarea",rows:5,value:r,maxLength:Ra,autoFocus:!0,placeholder:t("fb.descPlaceholder"),onInput:w=>a(w.currentTarget.value)})]}),n("p",{class:"fx-note",children:t("fb.imagesHint",{n:Ia})}),i.length>0&&n("div",{class:"fx-thumbs",children:i.map(w=>n("span",{class:"fx-thumb",children:[n("img",{src:w.url,alt:w.filename}),n("button",{type:"button","aria-label":t("fb.removeImage"),title:t("fb.removeImage"),onClick:()=>{s(k=>k.filter(z=>z.id!==w.id)),c(null)},children:n(B,{name:"x",size:11})})]},w.id))}),l&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(l,t)}),n("input",{ref:u,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:w=>{let k=w.currentTarget;y(k.files),k.value=""}}),n("div",{class:"fx-inline",children:[n(q,{disabled:i.length>=Ia||p.pending,onClick:()=>u.current?.click(),children:[n(B,{name:"image",size:12})," ",t("fb.addImages")]}),n("span",{class:"fx-grow"}),n(q,{disabled:p.pending,onClick:e.onCancel,children:t("common.cancel")}),n(q,{variant:"primary",pending:p.pending,disabled:m>0,onClick:b,children:t("fb.submit")})]}),n(be,{a:p})]})}function Xv(e){let{t,locale:o}=ie(),[r,a]=_({state:"loading"}),[i,s]=_(0),[l,c]=_(""),[d,f]=_(null),u=fe(),p=ne(0);J(()=>{let z=++p.current;return G(`/feedback/${encodeURIComponent(e.id)}`).then(P=>{if(z===p.current){if(!P.ok){a({state:"error",fail:P});return}a({state:"ready",data:{ticket:P.data.ticket,replies:P.data.replies??[],attachments:P.data.attachments??[]}}),G(`/feedback/${encodeURIComponent(e.id)}/read`,{method:"POST"})}}),()=>{p.current++}},[e.id,i]),J(()=>{if(!d)return;let z=P=>{P.key==="Escape"&&f(null)};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[d]);let m=n("div",{class:"fx-back",children:n(q,{onClick:e.onBack,children:[n(B,{name:"back",size:12})," ",t("fb.back")]})});if(r.state==="loading")return n(L,{children:[m,n(Je,{panels:1,rows:3})]});if(r.state==="error")return n(L,{children:[m,n(ut,{error:bt(r.fail),onRetry:()=>{a({state:"loading"}),s(z=>z+1)}})]});let{ticket:g,replies:h,attachments:y}=r.data,b=g.status==="closed",w=z=>y.filter(P=>(P.reply_id??null)===z),k=()=>void u.run(async()=>{let z=l.trim();if(!z)return{error:{key:"err.replyEmpty"}};if(z.length>Ra)return{error:{key:"err.replyTooLong"}};let P=await G(`/feedback/${encodeURIComponent(g.id)}/replies`,{method:"POST",body:{content:z},timeoutMs:6e4});return P.ok?(c(""),s(F=>F+1),{success:{key:"fb.replySent"}}):$e(P)});return n(L,{children:[m,n(Me,{icon:"message",title:g.title||t("fb.untitled"),actions:n(Gu,{status:g.status}),desc:`#${String(g.id).slice(0,8)} \xB7 ${_t(g.created_at,o)}`,children:[n("div",{class:"fx-thread fx-block",children:[n(ju,{who:"user",when:g.created_at,text:g.description||"",files:w(null),onZoom:f}),h.map((z,P)=>n(ju,{who:z.author_role==="user"?"user":"admin",when:z.created_at,text:z.content||"",files:z.id?w(z.id):[],onZoom:f},z.id??P))]}),b?n(Ee,{children:n(ue,{children:t("fb.closedNote")})}):n(Ee,{class:"fx-form",children:[n("textarea",{class:"fx-input fx-textarea",rows:3,value:l,maxLength:Ra,placeholder:t("fb.replyPlaceholder"),"aria-label":t("fb.replyPlaceholder"),onInput:z=>{c(z.currentTarget.value),u.success&&u.clear()}}),n("div",{class:"fx-inline",children:[n("span",{class:"fx-grow"}),n(q,{variant:"primary",pending:u.pending,onClick:k,children:t("fb.replySend")})]}),n(be,{a:u})]})]}),d&&n("div",{class:"fx-lightbox",role:"dialog","aria-label":t("fb.imagePreview"),onClick:()=>f(null),children:n("img",{src:d,alt:""})})]})}function ju(e){let{t,locale:o}=ie();return n("div",{class:`fx-bubble fx-bubble--${e.who}`,children:[n("div",{class:"fx-bubble-meta",children:[e.who==="user"?t("fb.you"):t("fb.support")," \xB7 ",_t(e.when,o)]}),n("div",{class:"fx-bubble-text",children:e.text}),e.files.length>0&&n("div",{class:"fx-thumbs",children:e.files.map((r,a)=>{let i=r.mime_type||"";if(i.startsWith("image/")&&r.data_base64){let s=`data:${i};base64,${r.data_base64}`;return n("button",{type:"button",class:"fx-thumb",onClick:()=>e.onZoom(s),"aria-label":t("fb.imagePreview"),children:n("img",{src:s,alt:r.filename||""})},r.id??a)}return n("span",{class:"fx-tag",children:[n(B,{name:"card",size:11})," ",r.filename||t("fb.attachment")]},r.id??a)})})]})}var Ku=[{id:"monthly",field:"priceMonthly",discount:"recurringPriceMonthly"},{id:"quarterly",field:"priceQuarterly",discount:"recurringPriceQuarterly"},{id:"yearly",field:"priceYearly",discount:"recurringPriceYearly"}];function Xu(e,t){let o=Ku.find(s=>s.id===t),r=He(e.priceMonthly)??0,a=(He(e[o.field])??0)||(t==="quarterly"?Math.round(r*300)/100:0),i=He(e[o.discount])??0;return i>0&&i<a?i:a}function xs(e,t,o){let r=ze(e,o),a=String(t||"CNY").toUpperCase();return a==="CNY"?`\xA5${r}`:a==="USD"?`$${r}`:`${r} ${a}`}async function Kv(){let[e,t,o]=await Promise.all([G("/membership/my"),G("/credits/balance"),G("/features")]);return!e.ok&&Fn(e)?e:!t.ok&&Fn(t)?t:{ok:!0,status:200,data:{membership:e.ok?e.data?.membership??null:null,membershipFailed:!e.ok,balance:t.ok?He(t.data?.balance):null,balanceFailed:!t.ok,features:o.ok&&o.data&&typeof o.data=="object"?o.data:{}}}}async function ks(e,t){let[o,r]=await Promise.all([Kv(),G(e)]);return o.ok?r.ok?{ok:!0,status:r.status,data:{status:o.data,list:t(r.data)}}:r:o}var ws=e=>(Array.isArray(e)?e:[]).filter(t=>!!t&&typeof t=="object"&&t.isActive!==!1),Yv=15*6e4;function zs(e){let t=ne(0),o=ne(0),r=ne(e);return r.current=e,J(()=>{let a=()=>{let i=Date.now();i>t.current||document.visibilityState==="hidden"||i-o.current<2e3||(o.current=i,r.current?.())};return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[]),()=>{t.current=Date.now()+Yv}}function Yu(e){let t=e.membership;return t&&(t.status===void 0||t.status==="active")?t:null}function Ss(e){let{t,locale:o}=ie(),r=e.status,a=Yu(r),i=ho(a?.tier),s=i==="Free";return n("section",{class:"fx-shop-strip","aria-label":t("store.status"),children:[n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.tier")}),r.membershipFailed?n("b",{class:"is-empty",children:"\u2014"}):n("b",{"data-testid":"shop-tier",children:[s?t("member.freeName"):$o(a?.plan,o)||i,!s&&n("i",{children:a?.expiresAt?t("member.expires",{date:Pt(a.expiresAt,o)}):t("member.noExpiry")})]})]}),n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.balance")}),n("b",{class:r.balance===null?"is-empty":"","data-testid":"shop-balance",children:r.balance===null?"\u2014":ze(r.balance,o)})]}),(r.membershipFailed||r.balanceFailed)&&n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")}),n("span",{class:"fx-grow"}),e.children]})}function _s(e){return n("section",{class:"fx-shop-section",children:[n("div",{class:"fx-shop-head",children:[n("div",{children:[n("h2",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.right]}),e.children]})}function Cs(e){let t=fe(),[o,r]=_(null),a=(i,s,l,c)=>{r(i),t.run(async()=>{if(!await zn(s,l,c))return{error:{key:"err.openFailed"}};e()})};return{a:t,payingId:t.pending?o:null,open:a}}function As(e){return n(q,{variant:"ghost",pending:e.pending,disabled:e.disabled,onClick:e.onClick,children:[e.label,n(B,{name:"external",size:12})]})}function Ts(e){return n("div",{class:"fx-shop-empty",children:e.children})}function Zu(){let{t:e,locale:t}=ie(),o=nt(()=>ks("/payment/offerings",m=>ws(m?.membershipPlans))),r=zs(o.state==="ready"?o.reload:null),a=Cs(r),[i,s]=_("monthly");if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:l,list:c}=o.data,d=l.features.payment!==!1,f=Ku.filter(m=>c.some(g=>Xu(g,m.id)>0)),u=f.some(m=>m.id===i)?i:f[0]?.id??"monthly",p=Yu(l)?.tier?.toLowerCase()??null;return n(L,{children:[n(Ss,{status:l,onRetry:o.reload}),n(_s,{title:e("store.choosePlan"),desc:e(d?"store.payHint":"store.payOff"),right:f.length>1?n(Mt,{value:u,label:e("store.period"),onChange:s,options:f.map(m=>({value:m.id,label:e(`store.period.${m.id}`)}))}):void 0,children:[c.length===0?n(Ts,{children:e("store.noPlans")}):n("div",{class:"fx-shop-tiers",children:c.map(m=>{let g=Xu(m,u),h=!!p&&!l.membershipFailed&&m.tier?.toLowerCase()===p;return n("article",{class:"fx-shop-tier","data-tier":m.tier,children:[n("h3",{children:[$o(m,t)||ho(m.tier),h&&n("span",{class:"fx-shop-current",children:[n(B,{name:"check",size:12}),e("store.currentTier")]})]}),n("div",{class:"fx-shop-price",children:g>0?n(L,{children:[xs(g,m.currency,t),n("small",{children:e(`store.per.${u}`)})]}):"\u2014"}),n("p",{children:nd(m,t)}),d&&g>0&&n(As,{label:e(h?"member.renew":"store.pay"),pending:a.payingId===m.id,disabled:a.a.pending,onClick:()=>a.open(m.id,"membership",m.id,u)})]},m.id)})}),n(be,{a:a.a})]})]})}function Qu(){let{t:e,locale:t}=ie(),o=nt(()=>ks("/payment/offerings",c=>ws(c?.packages))),r=zs(o.state==="ready"?o.reload:null),a=Cs(r);if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:i,list:s}=o.data,l=i.features.payment!==!1;return n(L,{children:[n(Ss,{status:i,onRetry:o.reload}),n(_s,{title:e("store.packs"),desc:e(l?"store.packsHint":"store.payOff"),children:[s.length===0?n(Ts,{children:e("store.noPacks")}):n("div",{class:"fx-shop-grid",children:s.map(c=>{let d=He(c.price)??0;return n(ep,{icon:"coins",kind:e("store.kind.pack"),name:`${c.name||""} \xB7 ${e("store.nPoints",{n:ze(c.credits,t)})}`,desc:c.description,meta:e("store.instant"),children:l&&d>0&&n(As,{label:e("store.payPrice",{price:xs(d,c.currency,t)}),pending:a.payingId===c.id,disabled:a.a.pending,onClick:()=>a.open(c.id,"credits")})},c.id)})}),n(be,{a:a.a})]})]})}function ep(e){return n("article",{class:"fx-shop-card",children:[n("div",{class:"fx-shop-visual","aria-hidden":"true",children:e.emoji?n("span",{class:"fx-shop-emoji",children:e.emoji}):n(B,{name:e.icon,size:18})}),n("div",{class:"fx-shop-body",children:[n("span",{class:"fx-shop-kind",children:e.kind}),n("strong",{children:e.name}),e.desc&&n("p",{children:e.desc}),n("div",{class:"fx-shop-foot",children:[n("span",{class:"fx-shop-meta",children:e.meta}),n("span",{class:"fx-shop-acts",children:e.children})]}),e.below]})]})}var Zv={reset_card:"store.kind.card",api_quota_key:"store.kind.code"};function Qv(e){let{t,locale:o}=ie(),{p:r}=e,a=fe(),[i,s]=_(null),[l,c]=_(!1),d=He(r.pricePoints)??0,f=He(r.priceRmb)??0,u=typeof r.availableKeys=="number"&&r.availableKeys<=0,p=d>0&&e.balance!==null&&e.balance<d,m=()=>void a.run(async()=>{let h=await G("/shop/purchase",{method:"POST",body:{productId:r.id,payMethod:"points"},timeoutMs:3e4});return h.ok?(s(typeof h.data?.key=="string"&&h.data.key?h.data.key:null),e.onRedeemed(),{success:{key:"store.redeemed"}}):h.status===0?(c(!0),{error:{key:"store.uncertain"}}):$e(h)}),g=u?t("store.soldOut"):p?t("err.insufficientPoints"):typeof r.availableKeys=="number"?t("store.left",{n:r.availableKeys}):t("store.toBackpack");return n(ep,{icon:r.type==="api_quota_key"?"key":"gift",emoji:r.icon,kind:t(Zv[r.type||""]??"store.kind.item"),name:r.name||"",desc:r.description,meta:g,below:n(L,{children:[n(be,{a}),i&&n("div",{class:"fx-shop-key",children:[n("code",{children:i}),n(Ut,{text:i,label:t("backpack.copyKey")})]})]}),children:[d>0&&n(Gt,{variant:"primary",pending:a.pending,disabled:u||p||l,label:t("store.redeem",{n:ze(d,o)}),confirmLabel:t("store.redeemConfirm",{n:ze(d,o)}),onConfirm:m}),e.payment&&f>0&&n(As,{label:xs(f,r.currency,o),pending:e.paying,disabled:e.payBusy||u,onClick:e.onPay})]})}function tp(){let{t:e,goTo:t}=ie(),o=nt(()=>ks("/shop/products",d=>ws(d))),r=zs(o.state==="ready"?o.reload:null),a=Cs(r);if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:i,list:s}=o.data,l=i.features.payment!==!1,c=i.features.shop!==!1;return n(L,{children:[n(Ss,{status:i,onRetry:o.reload,children:t&&n(q,{onClick:()=>t("backpack"),children:e("store.openBackpack")})}),n(_s,{title:e("store.redeemTitle"),desc:e("store.redeemHint"),children:[!c||s.length===0?n(Ts,{children:e(c?"store.noItems":"store.itemsOff")}):n("div",{class:"fx-shop-grid",children:s.map(d=>n(Qv,{p:d,balance:i.balance,payment:l,paying:a.payingId===d.id,payBusy:a.a.pending,onPay:()=>a.open(d.id,"storefront"),onRedeemed:o.reload},d.id))}),n(be,{a:a.a})]})]})}var ey="forsion-extend",np=[{id:"account",titleKey:"page.account",tabTitleKey:"page.profile",aliases:["profile"],keywords:"\u4E2A\u4EBA\u4E3B\u9875 profile avatar nickname \u5934\u50CF \u6635\u79F0",Component:au},{id:"account-details",parent:"account",titleKey:"account.details.title",keywords:"\u767B\u5F55 \u8D44\u6599 \u624B\u673A \u90AE\u7BB1 \u5207\u6362 \u9000\u51FA \u5FAE\u4FE1 \u526A\u85CF \u4F01\u4E1A\u5FAE\u4FE1 \u7ED1\u5B9A\u7801 login sign-in email phone account switch logout wechat clip wecom",Component:Nd},{id:"security",parent:"account",titleKey:"page.security",keywords:"\u5B89\u5168 \u5BC6\u7801 \u8BBE\u5907 \u7ED1\u5B9A security password devices",Component:hu},{id:"quota",titleKey:"page.membershipUsage",tabTitleKey:"page.membershipQuota",aliases:["membership"],keywords:"\u4F1A\u5458 \u989D\u5EA6 \u540E\u53F0 quota membership background",Component:du},{id:"points",parent:"quota",titleKey:"page.pointsInvite",keywords:"\u79EF\u5206 \u9080\u8BF7 \u5151\u6362 \u5145\u503C points invite redeem credits",Component:cu},{id:"usage",parent:"quota",titleKey:"page.usage",keywords:"\u7528\u91CF \u8BB0\u5F55 \u6D88\u8017 usage history tokens",Component:ku},{id:"backpack",titleKey:"page.backpack",keywords:"\u80CC\u5305 \u5361\u5238 backpack inventory",Component:pu},{id:"submission",titleKey:"page.submission",Component:Ru},{id:"webpages",titleKey:"page.webPages",keywords:"\u7F51\u9875 \u53D1\u5E03 \u94FE\u63A5 \u4E0A\u67B6 \u7F51\u7AD9 web pages publish link site connect",Component:Vu},{id:"feedback",titleKey:"page.feedback",keywords:"\u5E2E\u52A9 \u53CD\u9988 help feedback",Component:Ju},{id:"privacy",titleKey:"page.privacy",tabTitleKey:"privacy.tab",keywords:"\u9690\u79C1 \u9065\u6D4B \u5D29\u6E83 \u7EDF\u8BA1 \u5E2E\u52A9\u6539\u8FDB privacy telemetry crash usage statistics improve",Component:Od,desktopOnly:!0},{id:"diagnostics",parent:"privacy",titleKey:"diag.title",keywords:"\u8BCA\u65AD \u4E0A\u4F20 \u65E5\u5FD7 diagnostic upload logs",Component:Wu,desktopOnly:!0}],op=[{id:"membership",titleKey:"store.membership",descKey:"store.membership.desc",icon:"crown",Component:Zu},{id:"points",titleKey:"store.points",descKey:"store.points.desc",icon:"coins",Component:Qu},{id:"items",titleKey:"store.items",descKey:"store.items.desc",icon:"package",Component:tp}],Mn=e=>`forsion/fx:${ey}:${e}`;function Es(e){let{ctx:t}=e,[o,r]=_(()=>Oe(t.getLocale?.()));J(()=>{r(Oe(t.getLocale?.()));let i=t.subscribeLocale?.(s=>r(Oe(s)));return()=>{typeof i=="function"&&i()}},[t]);let a=sn(()=>{let i=t.app?.openSettings;return{ctx:t,anchor:e.anchor,locale:o,t:Bn(o),goTo:typeof i=="function"?s=>i.call(t.app,Mn(s)):null}},[t,o,e.anchor]);return n(Fi.Provider,{value:a,children:e.children})}function ty(e){let{locale:t}=ie(),o=e.page.Component;return n("div",{class:"fx-acct","data-fx-page":e.page.id,lang:t==="zh"?"zh-CN":"en",children:[n("style",{children:Vc}),n(o,{})]})}function rp(e){return n(Es,{ctx:e.ctx,anchor:e.anchor,children:n(ty,{page:e.page})})}function ap(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!cn(o)||typeof e.registerStoreView!="function")return 0;let r=a=>()=>we(Oe(e.getLocale?.()),a);for(let a of op)e.registerStoreView({id:a.id,title:r(a.titleKey),description:r(a.descKey),group:r("store.group"),icon:a.icon,mount(i){return Le(n(rp,{ctx:e,page:a}),i),()=>{Le(null,i)}}});return op.length}function ip(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!cn(o)||typeof e.registerSettingsView!="function")return 0;let r=wn(o)?np.filter(a=>!a.desktopOnly):np;for(let a of r)e.registerSettingsView({id:a.id,category:"forsion",parent:a.parent,tabTitle:a.tabTitleKey?()=>we(Oe(e.getLocale?.()),a.tabTitleKey):void 0,aliases:a.aliases,keywords:a.keywords,title:()=>we(Oe(e.getLocale?.()),wn(o)&&a.webTitleKey||a.titleKey),mount(i,s){return Le(n(rp,{ctx:e,page:a,anchor:s?.anchor}),i),()=>{Le(null,i)}}});return r.length}var Vo=[{id:"lv1"},{id:"lv2"},{id:"lv3"},{id:"lv4"},{id:"new",version:"2.14"}],se=(e,t)=>({zh:e,en:t}),eo=[{id:"welcome",level:"lv1",icon:"compass",title:se("\u8BA4\u8BC6 Forsion","Meet Forsion"),tasks:[{id:"guide-open",event:"own:guide.open",goal:1,title:se("\u6253\u5F00\u4F7F\u7528\u6307\u5357","Open the guide")},{id:"space-switch",event:"space.switch",goal:1,title:se("\u5728 Ribbon \u4E0A\u6362\u4E00\u4E2A Space","Switch to another Space from the ribbon"),go:{space:"amadeus"},spot:{anchor:"ribbon-spaces",here:!0,title:se("\u70B9 Ribbon \u4E0A\u4EFB\u610F\u4E00\u4E2A\u56FE\u6807","Click any icon on the ribbon"),body:se("\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space\uFF0C\u70B9\u4E00\u4E0B\u5C31\u5207\u8FC7\u53BB\u3002","Each icon is a Space. One click switches to it.")}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon",label:se("Ribbon\uFF1A\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space","Ribbon: each icon is a Space")},{slot:"main-tabs",label:se("\u4E3B\u533A\u7684\u6807\u7B7E\u9875","Tabs in the main area"),text:se("\u6807\u7B7E\u9875","Tab")},{slot:["left-list","right"],label:se("\u5DE6\u53F3\u4FA7\u680F","Left and right sidebars")}]}},{id:"chat",level:"lv1",icon:"message-circle",title:se("\u548C Tangu \u8BF4\u7B2C\u4E00\u53E5\u8BDD","Say hello to Tangu"),tasks:[{id:"chat-first",event:"chat.send",goal:1,title:se("\u53D1\u51FA\u7B2C\u4E00\u6761\u6D88\u606F","Send your first message"),go:{space:"tangu",command:"new-chat"},spot:{anchor:"chat-composer",title:se("\u5728\u8FD9\u91CC\u6253\u4E2A\u62DB\u547C","Say hello here"),body:se("\u6253\u5B57\uFF0C\u6309 Enter \u53D1\u9001\uFF1BShift+Enter \u6362\u884C\u3002","Type, then press Enter to send. Shift+Enter starts a new line.")}},{id:"chat-five",event:"chat.send",goal:5,title:se("\u518D\u804A\u51E0\u53E5\uFF08\u7D2F\u8BA1 5 \u6761\uFF09","Keep talking (5 messages in all)"),go:{space:"tangu"},spot:{anchor:"chat-composer",title:se("\u63A5\u7740\u804A\u51E0\u53E5","Keep the conversation going"),body:se("\u7D2F\u8BA1\u53D1\u51FA 5 \u6761\u5C31\u7B97\u5B8C\u6210\u3002","Five messages in all and this one is done.")}}],figure:{layout:"space",main:"chat",marks:[{slot:"left-top",label:se("\u5DE6\u680F\u9876\u90E8\u300C\u65B0\u4F1A\u8BDD\u300D",'"New chat" at the top of the left sidebar'),text:se("\u65B0\u4F1A\u8BDD","New chat")},{slot:"main-bottom",label:se("\u8F93\u5165\u6846","Message box")}]}},{id:"note",level:"lv1",icon:"file-text",title:se("\u5199\u4E0B\u7B2C\u4E00\u7BC7\u7B14\u8BB0","Write your first note"),tasks:[{id:"note-create",event:"note.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u7BC7\u7B14\u8BB0","Create a note"),go:{space:"amadeus",command:"amadeus-new-note"},spot:{anchor:"note-new",title:se("\u70B9\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'Click "New note"'),body:se("\u4E5F\u53EF\u4EE5\u6309 \u2318/Ctrl+N\u3002\u6BCF\u7BC7\u7B14\u8BB0\u90FD\u662F\u667A\u5E93\u91CC\u7684\u4E00\u4E2A .md \u6587\u4EF6\u3002","Or press \u2318/Ctrl+N. Every note is a .md file in your vault.")}},{id:"note-link",event:"note.wikilink",goal:1,title:se("\u7528 [[ \u94FE\u63A5\u53E6\u4E00\u7BC7\u7B14\u8BB0","Link another note with [["),go:{space:"amadeus"},spot:{anchor:"note-body",title:se("\u5728\u6B63\u6587\u91CC\u8F93\u5165 [[","Type [[ in the note"),body:se("\u4ECE\u5F39\u51FA\u7684\u5019\u9009\u91CC\u9009\u4E00\u7BC7\u7B14\u8BB0\uFF0C\u6309 Enter\uFF0C\u4E24\u7BC7\u5C31\u8FDE\u4E0A\u4E86\u3002","Pick a note from the suggestions and press Enter to link the two.")}},{id:"note-canvas",event:"note.canvas",goal:1,title:se("\u628A\u7B14\u8BB0\u5207\u5230\u753B\u5E03","Switch a note to the canvas"),go:{space:"amadeus",command:"amadeus-toggle-canvas"},spot:{anchor:"note-canvas",title:se("\u70B9\u300C\u753B\u5E03\u300D",'Click "Canvas"'),body:se("\u540C\u4E00\u7BC7\u7B14\u8BB0\u644A\u6210\u767D\u677F\uFF0C\u968F\u624B\u6446\uFF1B\u70B9\u300C\u6587\u6863\u300D\u5207\u56DE\u6765\uFF0C\u4E00\u4E2A\u5B57\u90FD\u4E0D\u53D8\u3002",'The same note opens as a whiteboard. Click "Document" to switch back; nothing changes.')}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-top",label:se("\u5DE6\u680F\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'"New note" in the left sidebar'),text:se("\u65B0\u5EFA\u7B14\u8BB0","New note")},{slot:"main-top",label:se("\u300C\u6587\u6863 / \u753B\u5E03\u300D\u80F6\u56CA","The Document / Canvas switch")},{slot:"right",label:se("\u53F3\u680F\u91CC\u7684\u300C\u53CD\u94FE\u300D","Backlinks in the right sidebar"),text:se("\u53CD\u94FE","Backlinks")}]}},{id:"theme",level:"lv1",icon:"sparkles",title:se("\u6362\u4E00\u8EAB\u4E3B\u9898","Make it look like yours"),tasks:[{id:"theme-change",event:"theme.change",goal:1,title:se("\u6362\u4E00\u4E2A\u4E3B\u9898","Pick another theme"),go:{settings:"theme"}}],figure:{layout:"settings",marks:[{slot:"nav",label:se("\u8BBE\u7F6E\u91CC\u7684\u300C\u5916\u89C2\u300D",'"Appearance" in Settings'),text:se("\u5916\u89C2","Appearance")},{slot:"section-1",label:se("\u8BBE\u8BA1\u8BED\u8A00","Design language"),text:se("\u8BBE\u8BA1\u8BED\u8A00","Design language")},{slot:"section-2",label:se("\u4E3B\u9898\u8272\u548C\u80CC\u666F\u8272","Theme and background colors"),text:se("\u914D\u8272","Colors")}]}},{id:"database",level:"lv2",icon:"database",title:se("\u6570\u636E\u5E93\uFF1A\u628A\u7B14\u8BB0\u53D8\u6210\u8868","Databases: turn notes into a table"),tasks:[{id:"base-create",event:"base.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u4E2A\u6570\u636E\u5E93","Create a database"),go:{space:"amadeus"}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-list",label:se("\u7B14\u8BB0\u6811\uFF1A\u53F3\u952E \u2192\u300C\u65B0\u5EFA Base\u300D",'Note tree: right-click \u2192 "New Base"')},{slot:"main-body",label:se("\u6B63\u6587\u91CC\u8F93\u5165 /\uFF0C\u9009\u300C\u591A\u7EF4\u8868\u300D",'Type / in a note and pick "Database"')}]}},{id:"market",level:"lv2",icon:"store",title:se("\u4ECE\u5546\u5E97\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin from the store"),tasks:[{id:"market-install",event:"market.install",goal:1,title:se("\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin"),go:{command:"open-market"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-bottom",label:se("Ribbon \u5E95\u90E8\u7684\u300C\u5546\u5E97\u300D",'"Store" at the bottom of the ribbon')}]}},{id:"space",level:"lv2",icon:"layout-grid",title:se("\u5B58\u4E0B\u81EA\u5DF1\u7684 Space","Save a Space of your own"),tasks:[{id:"space-save",event:"space.save",goal:1,title:se("\u628A\u5F53\u524D\u5E03\u5C40\u5B58\u6210 Space","Save the current layout as a Space"),go:{command:"save-as-space"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-plus",label:se("Space \u533A\u7684 \uFF0B","The + under the Spaces")},{slot:"main-top-right",label:se("\u53F3\u4E0A\u89D2\u7684\u6D6E\u52A8\u6309\u94AE","Floating buttons at the top right")}]}},{id:"calendar",level:"lv2",icon:"calendar-days",title:se("\u65E5\u5386\u548C\u5F85\u529E","Calendar and to-dos"),tasks:[{id:"calendar-event",event:"calendar.event",goal:1,title:se("\u5728\u65E5\u5386\u4E0A\u5EFA\u4E00\u4E2A\u65E5\u7A0B","Add an event to the calendar"),go:{space:"calendar"}},{id:"todo-done",event:"todo.done",goal:1,title:se("\u52FE\u6389\u4E00\u6761\u5F85\u529E","Tick off a to-do"),go:{space:"calendar"}}],figure:{layout:"space",main:"grid",marks:[{slot:"left-plus",label:se("\u5DE6\u680F\u300C\u65E5\u5386\u300D\u65C1\u7684 +",'The + next to "Calendars" in the left sidebar')},{slot:"main-body",label:se("\u65F6\u95F4\u683C\uFF1A\u5355\u51FB\u5EFA\u65E5\u7A0B","Time grid: click to add an event")},{slot:"right",label:se("\u53F3\u680F\u7684\u5F85\u529E","To-dos in the right sidebar"),text:se("\u5F85\u529E","To-dos")}]}},{id:"agent",level:"lv3",icon:"bot",title:se("\u521B\u5EFA\u4F60\u7684 Agent","Create your own agent"),tasks:[{id:"agent-create",event:"agent.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u4E2A Agent","Create an agent"),go:{space:"agents"},spot:{anchor:"agent-new",title:se("\u70B9\u300C\u521B\u5EFA Agent\u300D",'Click "Create agent"'),body:se("\u8D77\u4E2A\u540D\u5B57\uFF0C\u5199\u51E0\u53E5\u5B83\u8BE5\u600E\u4E48\u505A\u4E8B\u3002","Give it a name and a few lines on how it should work.")}}]},{id:"muse",level:"lv3",icon:"sparkles",title:se("Muse\uFF1A\u8BA9\u7075\u611F\u81EA\u5DF1\u957F","Muse: ideas that grow on their own"),tasks:[{id:"muse-open",event:"muse.open",goal:1,title:se("\u53BB Muse \u770B\u4E00\u773C","Take a look at Muse"),go:{space:"muse"}}]},{id:"automation",level:"lv3",icon:"zap",title:se("\u81EA\u52A8\u5316\uFF1A\u5230\u70B9\u5C31\u505A","Automations: done on schedule"),tasks:[{id:"automation-create",event:"automation.create",goal:1,title:se("\u5EFA\u4E00\u6761\u81EA\u52A8\u5316","Create an automation"),go:{space:"automation"}}]},{id:"computer",level:"lv4",icon:"terminal",title:se("\u8BA9 Tangu \u64CD\u4F5C\u7535\u8111","Let Tangu use your computer"),tasks:[{id:"cu-use",event:"computer.use",goal:1,title:se("\u8BA9 Tangu \u7528\u4E00\u6B21\u7535\u8111","Have Tangu use your computer once"),go:{settings:"computer-use"},desktopOnly:!0}]},{id:"plugin",level:"lv4",icon:"code",title:se("\u5199\u4E00\u4E2A\u81EA\u5DF1\u7684\u63D2\u4EF6","Write a plugin of your own"),tasks:[{id:"plugin-dev",event:"plugin.local",goal:1,title:se("\u4ECE\u672C\u673A\u6587\u4EF6\u5939\u8F7D\u5165\u4E00\u4E2A\u63D2\u4EF6","Load a plugin from a local folder"),go:{settings:"amadeus-plugins"},desktopOnly:!0}]},{id:"mini-capsules",level:"new",icon:"layout-grid",title:se("Mini \u9876\u680F\u4E24\u9897\u80F6\u56CA","Two capsules on the Mini bar"),tasks:[{id:"mini-open",event:"mini.open",goal:1,title:se("\u6253\u5F00\u4E00\u6B21 Mini \u7A97\u53E3","Open the Mini window"),go:{command:"open-mini"},desktopOnly:!0}]},{id:"todo-standalone",level:"new",icon:"list-tree",title:se("\u5F85\u529E\u89C6\u56FE\u5355\u72EC\u6253\u5F00","Open the to-do view on its own"),tasks:[{id:"todo-open",event:"todo.open",goal:1,title:se("\u5355\u72EC\u6253\u5F00\u4E00\u6B21\u5F85\u529E\u89C6\u56FE","Open the to-do view by itself"),go:{space:"calendar"}}]}],Sn=e=>eo.filter(t=>t.level===e),to=e=>eo.find(t=>t.id===e);var dn=Vo.filter(e=>!e.version);function In(e,t){let o=e.event.startsWith("own:");return t.count(o?e.event.slice(4):e.event,o)>=e.goal}var Sr=(e,t)=>e.filter(o=>t.desktop||!o.desktopOnly);function sp(e,t){return Sn(e).every(o=>Sr(o.tasks,t).every(r=>In(r,t)))}function La(e,t){let o=dn.findIndex(r=>r.id===e);return o<=0||t.unlockAll?!0:dn.slice(0,o).every(r=>sp(r.id,t))}function Wo(e,t){return La(e.level,t)?Sr(e.tasks,t).every(o=>In(o,t))?"done":"active":"locked"}function Ps(e){return dn.find(t=>!sp(t.id,e))?.id??null}function lp(e){let t={...e,unlockAll:!1},o=dn[0].id;for(let r of dn)La(r.id,t)&&(o=r.id);return o}function ny(e,t){let o=e.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0),r=t.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0);for(let a=0;a<Math.max(o.length,r.length);a++){let i=(o[a]??0)-(r[a]??0);if(i)return i<0?-1:1}return 0}function Ms(e){let t=Vo.find(o=>o.version);return t?.version&&e.appVersion&&ny(e.appVersion,t.version)>=0?t.version:null}var cp=e=>eo.filter(t=>t.level!=="new"||!!Ms(e));function dp(e,t){let o=Sr(Sn(e).flatMap(r=>r.tasks),t);return{done:o.filter(r=>In(r,t)).length,total:o.length}}var Is={zh:{agent:`\u9664\u4E86\u9ED8\u8BA4\u7684 Tangu\uFF0C\u4F60\u53EF\u4EE5\u6309\u7528\u9014\u5EFA\u81EA\u5DF1\u7684 Agent\uFF1A\u7ED9\u5B83\u540D\u5B57\u3001\u5DE5\u4F5C\u6307\u4EE4\u548C\u81EA\u5DF1\u7684\u8BB0\u5FC6\uFF0C\u8BA9\u5B83\u4E13\u95E8\u505A\u4E00\u7C7B\u4E8B\u3002
|
|
872
|
+
`;var ys=300,zr=e=>e.replace(/\/+$/,"").replace(/\/api$/,""),xs=e=>typeof e=="string"&&/^https?:\/\//i.test(e);function ks(e,t,o){let r=e.apps?.find(i=>i.slug===o);if(xs(r?.publicUrl))return r.publicUrl;let a=e.publicBase?zr(e.publicBase):t;return a&&e.handle?`${a}/apps/${e.handle}/${o}/`:""}var ws=(e=0)=>e<1024*1024?`${Math.max(1,Math.ceil(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;function Gu(e,t){let o=Q().openExternal;o&&(t.preventDefault(),o(e)?.catch(()=>{}))}function Lv({page:e}){let{t,locale:o}=ie();return typeof e.likes!="number"&&typeof e.favorites!="number"?null:n("span",{class:"fx-pub-soc","data-fx-social":!0,children:[typeof e.likes=="number"&&n("span",{title:t("pub.likes",{n:we(e.likes,o)}),children:[n(B,{name:"heart",size:11}),we(e.likes,o)]}),typeof e.favorites=="number"&&n("span",{title:t("pub.saves",{n:we(e.favorites,o)}),children:[n(B,{name:"star",size:11}),we(e.favorites,o)]})]})}function Dv({page:e,ap:t,open:o,onToggle:r,reload:a}){let{t:i,locale:s}=ie(),l=fe(),c=e.ai,d=n(Lv,{page:e}),f=e.status==="disabled";if(!t||!c||f||e.usesSdk===!1)return!(typeof e.likes=="number"||typeof e.favorites=="number")&&!(t&&e.usesSdk===!1)?null:n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"none",children:[d,t&&e.usesSdk===!1&&n("span",{children:i("web.ai.none")})]});let u=m=>we(Math.max(0,Number(m)||0),s),p=n("button",{type:"button",class:"fx-link","aria-expanded":o,onClick:r,children:i("web.ai.settings")});if(c.payer==="author"&&c.paused){let m=c.pausedReason==="admin";return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"paused",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.paused")]}),n("span",{children:i(m?"web.ai.pausedAdmin":"web.ai.pausedSpike")}),d,n("span",{class:"fx-pub-grow"}),!m&&n(q,{pending:l.pending,onClick:()=>void l.run(async()=>{let g=await Vu(e.slug);if(!g.ok)return $e(g);a()}),children:i("web.ai.resume")}),p,n(ve,{a:l})]})}if(c.payer==="author"){let m=Hu(c,t);return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"author",children:[n("span",{class:"fx-pub-pill is-on",children:[n(B,{name:"sparkles",size:11}),i("web.ai.author")]}),Uu(c)?n("span",{children:i("web.ai.cooldown",{time:_t(c.cooldownUntil,s)})}):n(R,{children:[n("span",{children:i("web.ai.todayAuthor",{calls:u(c.today?.calls),visitors:u(c.today?.visitors)})}),n("span",{class:"fx-pub-meter",role:"meter","aria-label":i("web.ai.cap"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":m,children:[i("web.ai.cap")," ",n("span",{children:n("i",{style:{width:`${m}%`}})}),m,"%"]})]}),d,n("span",{class:"fx-pub-grow"}),p]})}return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"visitor",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.visitor")]}),n("span",{children:i("web.ai.todayVisitor",{calls:u(c.today?.calls)})}),d,n("span",{class:"fx-pub-grow"}),p]})}function Nv({page:e,ap:t,onDone:o,onBusy:r,reload:a}){let{t:i,ctx:s}=ie(),l=fe(),c=qo(e.ai),[d,f]=_(c),u=!Ta(d,c);return n("div",{class:"fx-pub-inline","data-fx-ai-settings":!0,children:[n(Ia,{draft:d,onChange:f,ap:t,cooldownUntil:e.ai?.cooldownUntil,disabled:l.pending,onBuy:()=>wr(s)}),n("div",{class:"fx-pub-inline-acts",children:[n(q,{variant:"primary",pending:l.pending,disabled:!u,onClick:()=>void l.run(async()=>{r(!0);try{let p=await Pa(e.slug,d,t);if(!p.ok)return $e(p);a(),o()}finally{r(!1)}}),children:i("ai.save")}),n(q,{disabled:l.pending,onClick:o,children:i("common.cancel")})]}),n(ve,{a:l})]})}function Ov({page:e,url:t,reload:o,ap:r}){let a=vt(),{locale:i}=ie(),s=On(),l=fe(),[c,d]=_(null),[f,u]=_(!1),[p,m]=_(!1),g=e.listing_status||null,h=e.status==="disabled",y=(w,z,I,F)=>void l.run(async()=>{let $=await j(w,{method:z,body:I});if(!$.ok)return $e($);F?.(),o()}),v=`/connect/apps/${encodeURIComponent(e.slug)}`,x=g==="pending"?["web.listingPending","fx-tag--accent"]:g==="approved"?["web.listingApproved","fx-status--resolved"]:g==="rejected"?["web.listingRejected","fx-tag--danger"]:null;return n("article",{class:"fx-sub-item","data-webpage":e.slug,children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name||e.slug}),h&&n("span",{class:"fx-tag fx-tag--danger",children:a("web.disabled")}),x&&n("span",{class:`fx-tag ${x[1]}`,children:a(x[0])})]}),t&&n("a",{class:"fx-web-url",href:t,target:"_blank",rel:"noopener noreferrer",onClick:w=>Gu(t,w),children:t}),n("div",{class:"fx-sub-meta",children:[n("span",{children:e.slug}),n("span",{children:ws(e.total_bytes)}),e.updated_at&&n("span",{children:a("web.updated",{date:Pt(e.updated_at,i)})})]}),n(Dv,{page:e,ap:r,open:f,onToggle:()=>{p||u(w=>!w)},reload:o}),f&&r&&e.ai&&!h&&n(Nv,{page:e,ap:r,onDone:()=>u(!1),onBusy:m,reload:o}),h&&n(ce,{tone:"error",children:a("web.disabledHint")}),g==="rejected"&&e.listing_note&&n(ce,{tone:"error",children:a("web.listingNote",{note:e.listing_note})}),c!==null&&n("form",{class:"fx-sub-form",onSubmit:w=>{w.preventDefault(),c.trim()&&y(`${v}/listing`,"PUT",{summary:c.trim()},()=>d(null))},children:[n("label",{class:"fx-sub-field",for:`${s}-summary`,children:[n("span",{children:a("web.listingSummary")}),n("textarea",{id:`${s}-summary`,rows:2,maxLength:ys,value:c,disabled:l.pending,placeholder:a("web.listingSummaryPh"),onInput:w=>d(w.currentTarget.value)}),n("small",{children:a("web.listingHint")})]}),n("div",{class:"fx-sub-actions",children:[n(q,{variant:"primary",submit:!0,pending:l.pending,disabled:!c.trim(),children:a("web.listingSubmit")}),n(q,{disabled:l.pending,onClick:()=>d(null),children:a("common.cancel")})]})]}),c===null&&n("div",{class:"fx-web-actions",children:[t&&n(Ut,{text:t,label:a("web.copy")}),!h&&!g&&n(q,{disabled:l.pending,onClick:()=>d(""),children:a("web.listingApply")}),!h&&g==="rejected"&&n(q,{disabled:l.pending,onClick:()=>d(e.listing_summary||""),children:a("web.listingReapply")}),g==="pending"&&n(q,{pending:l.pending,onClick:()=>y(`${v}/listing`,"DELETE"),children:a("web.listingWithdraw")}),g==="approved"&&n(Gt,{label:a("web.listingDelist"),confirmLabel:a("web.listingDelistConfirm"),pending:l.pending,onConfirm:()=>y(`${v}/listing`,"DELETE")}),n(Gt,{variant:"danger",label:a("web.unpublish"),confirmLabel:a("web.unpublishConfirm"),pending:l.pending,onConfirm:()=>y(v,"DELETE")})]}),n(ve,{a:l})]})}function Fv(){let{t:e,locale:t}=ie(),o=nt(()=>j("/connect/ai/usage?days=30"));if(o.state==="loading")return n("div",{class:"fx-pub-usage",children:n("p",{children:e("common.loading")})});if(o.state!=="ready")return n("div",{class:"fx-pub-usage",children:n(ce,{tone:"error",children:o.state==="error"?e("common.loadFailed"):e("err.signedOut")})});let r=Array.isArray(o.data?.rows)?o.data.rows:[];if(!r.length)return n("div",{class:"fx-pub-usage",children:n("p",{children:e("pack.usageEmpty")})});let a=i=>we(Math.round(Math.max(0,Number(i)||0)),t);return n("div",{class:"fx-pub-usage","data-fx-usage":!0,children:n("table",{"aria-label":e("pack.usageTitle"),children:[n("thead",{children:n("tr",{children:[n("th",{children:e("pack.col.day")}),n("th",{children:e("pack.col.page")}),n("th",{class:"is-num",children:e("pack.col.calls")}),n("th",{class:"is-num",children:e("pack.col.visitors")}),n("th",{class:"is-num",children:e("pack.col.points")})]})}),n("tbody",{children:r.map((i,s)=>n("tr",{children:[n("td",{children:i.day?Pt(i.day,t):""}),n("td",{children:i.name||i.slug}),n("td",{class:"is-num",children:a(i.calls)}),n("td",{class:"is-num",children:a(i.visitors)}),n("td",{class:"is-num",children:a(i.points)})]},`${i.day}:${i.slug}:${s}`))})]})})}function Bv({ap:e}){let{t,locale:o,ctx:r}=ie(),[a,i]=_(!1),s=qu(e),l=Math.round(Number(e.balance)||0),c=e.lastTopUp&&typeof e.lastTopUp.amount=="number"?e.lastTopUp:null;return n(R,{children:[n("div",{class:`fx-pub-pool${s?" is-low":""}`,"data-fx-pool":s?"low":"ok",children:[n("div",{children:[n("div",{class:"fx-pub-pool-lbl",children:t("ai.balance")}),n("div",{class:"fx-pub-pool-big",children:[we(l,o),n("small",{children:t("pack.points")})]}),n("div",{class:"fx-pub-pool-note",children:t(s?"pack.lowNote":"pack.note")})]}),n("div",{class:"fx-pub-pool-acts",children:[n(q,{variant:s?"primary":"ghost",onClick:()=>wr(r),children:t("ai.buy")}),!s&&n(q,{onClick:()=>i(d=>!d),children:t("pack.usage")})]}),n("div",{class:"fx-pub-pool-split",children:[n("span",{children:[t("pack.monthSpent")," ",n("b",{children:t("ai.points",{n:we(Math.round(Number(e.monthSpent)||0),o)})})]}),c&&n("span",{children:[t("pack.lastTopUp")," ",n("b",{children:t("pack.topUp",{date:c.at?Pt(c.at,o):"",n:we(Math.round(c.amount),o)})})]})]})]}),a&&!s&&n(Fv,{})]})}function $v({items:e,publicOrigin:t,onRemoved:o}){let{t:r,locale:a}=ie();return e.length?n(R,{children:e.map(i=>n(Hv,{item:i,publicOrigin:t,locale:a,onRemoved:o},`${i.handle}/${i.slug}`))}):n(wt,{children:[n("strong",{children:r("saved.empty")}),n("p",{children:r("saved.emptyHint")})]})}function Uv(e,t){if(!e.handle)return"";let o=typeof e.url=="string"?/^(https?:\/\/[^/]+)\/([^/]+)\//i.exec(e.url):null;return o&&o[2]===e.handle?`${o[1]}/${e.handle}`:t&&xs(t)?`${zr(t)}/${e.handle}`:""}function Hv({item:e,publicOrigin:t,locale:o,onRemoved:r}){let a=vt(),i=fe(),s=xs(e.url)?e.url:"",l=Uv(e,t),c=e.authorNickname||e.handle||"",d=f=>{let u=Q().openExternal;u?u(f)?.catch(()=>{}):window.open(f,"_blank","noopener")};return n("article",{class:"fx-sub-item","data-saved":`${e.handle}/${e.slug}`,children:[n("div",{class:"fx-sub-item-head",children:n("strong",{children:e.name||e.slug})}),s&&n("a",{class:"fx-web-url",href:s,target:"_blank",rel:"noopener noreferrer",onClick:f=>Gu(s,f),children:s}),n("div",{class:"fx-sub-meta",children:[c&&n("span",{class:"fx-pub-who",children:[n("span",{class:"fx-pub-av","aria-hidden":"true",children:ka(c)}),e.handle?`@${e.handle}`:c]}),typeof e.likes=="number"&&n("span",{class:"fx-pub-soc",children:n("span",{children:[n(B,{name:"heart",size:11}),we(e.likes,o)]})}),e.payer==="author"?n("span",{children:a("saved.aiAuthor")}):e.payer==="visitor"?n("span",{children:a("saved.aiVisitor")}):null]}),n("div",{class:"fx-web-actions",children:[s&&n(q,{onClick:()=>d(s),children:a("saved.open")}),l&&n(q,{onClick:()=>d(l),children:a("saved.author")}),e.handle&&e.slug&&n(q,{pending:i.pending,onClick:()=>void i.run(async()=>{let f=await j(`/connect/page/${encodeURIComponent(e.handle)}/${encodeURIComponent(e.slug)}/reactions/favorite`,{method:"DELETE"});if(!f.ok)return $e(f);r(e)}),children:a("saved.unsave")})]}),n(ve,{a:i})]})}function qv({data:e,reload:t}){let o=vt(),r=Fe(),[a,i]=_(""),[s,l]=_("mine"),[c,d]=_({state:"idle"}),f=oe(0);J(()=>{if(e.publicBase)return;let v=!0;return Q().authStatus?.().then(x=>{v&&x?.cloudUrl&&i(zr(x.cloudUrl))}).catch(()=>{}),()=>{v=!1}},[e.publicBase]);let u=Aa(e.authorPays)?e.authorPays:null,p=Nt(()=>{let v=++f.current;d(x=>x.state==="ready"?x:{state:"loading"}),j("/connect/favorites").then(x=>{!r.current||v!==f.current||d(x.ok?{state:"ready",items:Array.isArray(x.data?.items)?x.data.items:[]}:{state:"error"})})},[]);J(()=>{u&&p()},[!!u,p]);let m=e.apps||[],g=v=>ks(e,a,v),h=typeof e.limit=="number"&&m.length>=e.limit,y=()=>{t(),u&&p()};return n(Ie,{title:o("web.title"),desc:o("web.desc"),actions:n(q,{onClick:y,children:o("web.refresh")}),children:[n("style",{children:Ma}),u&&n("div",{class:"fx-pub-tabs",children:n(It,{value:s,label:o("web.title"),onChange:l,options:[{value:"mine",label:o("web.tabMine",{n:m.length})},{value:"saved",label:c.state==="ready"?o("web.tabSavedN",{n:c.items.length}):o("web.tabSaved")}]})}),s==="saved"&&u?c.state==="ready"?n($v,{items:c.items,publicOrigin:e.publicOrigin,onRemoved:v=>{f.current++,d(x=>x.state==="ready"?{state:"ready",items:x.items.filter(w=>!(w.handle===v.handle&&w.slug===v.slug))}:x)}}):c.state==="error"?n(wt,{children:[n("strong",{children:o("common.loadFailed")}),n("p",{children:n("button",{type:"button",class:"fx-link",onClick:p,children:o("common.retry")})})]}):n(wt,{children:n("p",{children:o("common.loading")})}):n(R,{children:[typeof e.limit=="number"&&n("p",{class:"fx-web-quota",children:[o("web.used",{used:m.length,limit:e.limit}),h?` \xB7 ${o("web.full")}`:""]}),u&&n(Bv,{ap:u}),m.length?m.map(v=>n(Ov,{page:v,url:g(v.slug),reload:t,ap:u},v.slug)):n(wt,{children:[n("strong",{children:o("web.empty")}),n("p",{children:o("web.emptyHint")})]})]})]})}function Ju(){let e=nt(()=>j("/connect/apps"));switch(e.state){case"loading":return n(Je,{});case"signedOut":return n(lt,{});case"error":return n(ut,{error:e.error,onRetry:e.retry});case"ready":return n(qv,{data:e.data||{},reload:e.reload})}}var Vv=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function zs(e,t){let o=Q().cloudInvoke;if(!o)throw new Error("no_bridge");let r=await o(e,t);if(!Vv(r))throw new Error(String(r?.error??"unavailable"));return r}var Wv=["diag.item.app","diag.item.settings","diag.item.agents","diag.item.plugins","diag.item.runs","diag.item.sync"];function Xu(){let[e,t]=_(0);return J(()=>Q().onAuthChanged?.(()=>t(o=>o+1)),[]),n(jv,{standalone:!0},e)}function jv({standalone:e=!1}={}){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(null),[s,l]=_(!1),c=fe(),d=fe();if(J(()=>{let h=!1,y=0,v=()=>{let w=++y;zs("diagnostics:get").then(z=>{!h&&w===y&&(i(z),l(!0))},()=>{!h&&w===y&&(i(null),l(!0))})};v();let x=Q().onAuthChanged?.(v);return()=>{h=!0,x?.()}},[]),!a?.signedIn)return e?s?a?n(lt,{}):n(wt,{children:t("diag.unavailable")}):n(Je,{panels:1}):null;let f=()=>void d.run(async()=>{try{let h=await zs("diagnostics:uploadNow");return r.current&&i(h),h.lastError?{error:{key:"diag.failed",vars:{reason:h.lastError}}}:h.enabled&&h.lastUploadAt?{success:{key:"diag.uploaded"}}:void 0}catch(h){return{error:{raw:gt(h)||t("err.generic")}}}}),u=async h=>{let y=!1;await c.run(async()=>{d.clear();try{let v=await zs("diagnostics:set",h);r.current&&i(v),y=!0}catch(v){return{error:{raw:gt(v)||t("err.generic")}}}}),y&&h.enabled&&r.current&&f()},p=a.intervalHours??24,m=a.mode==="manual"?t("diag.freq.manual"):p===1?t("diag.freq.hour"):p%24===0?p===24?t("diag.freq.day"):t("diag.freq.days",{n:p/24}):t("diag.freq.hours",{n:p}),g=`${a.lastUploadAt?t("diag.last",{time:_t(a.lastUploadAt,o)}):t("diag.noUpload")} \xB7 ${m}`;return n(Ie,{icon:"chart",title:t("diag.title"),desc:t("diag.desc"),children:[n(We,{label:t("diag.enable"),desc:t("diag.enableDesc"),children:n(Qt,{checked:a.enabled,disabled:c.pending,label:t("diag.enable"),onChange:h=>void u({enabled:h})})}),n(Te,{class:"fx-diag",children:[n("strong",{children:t("diag.collected")}),n("ul",{children:Wv.map(h=>n("li",{children:t(h)},h))}),n(ce,{children:t("diag.notCollected")})]}),a.sessions!==void 0&&n(We,{label:t("diag.sessions"),desc:t("diag.sessionsDesc"),children:n(Qt,{checked:a.sessions,disabled:c.pending,label:t("diag.sessions"),onChange:h=>void u({sessions:h})})}),a.memory!==void 0&&n(We,{label:t("diag.memory"),desc:t("diag.memoryDesc"),children:n(Qt,{checked:a.memory,disabled:c.pending,label:t("diag.memory"),onChange:h=>void u({memory:h})})}),n(We,{label:t("diag.activity"),desc:t("diag.activityDesc"),children:n(Qt,{checked:a.activity,disabled:c.pending,label:t("diag.activity"),onChange:h=>void u({activity:h})})}),a.enabled&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:g}),n(q,{pending:d.pending,disabled:c.pending,onClick:f,children:t("diag.uploadNow")})]}),n(Te,{class:"fx-sub--tight",children:[n(ce,{children:t("diag.retention",{n:a.retainDays})}),a.enabled&&a.lastError&&!d.error&&!d.success&&n("div",{class:"fx-msg is-error",role:"alert",children:t("diag.failed",{reason:a.lastError})}),n(ve,{a:c}),n(ve,{a:d})]})]})}var Sr=20,Ra=5,Gv=5*1024*1024,La=1e4,Jv={open:"fb.status.open",in_progress:"fb.status.in_progress",resolved:"fb.status.resolved",closed:"fb.status.closed"};function Yu(e){let{t}=ie(),o=e.status||"open",r=Jv[o];return n("span",{class:`fx-tag fx-status fx-status--${o}`,children:r?t(r):o})}function Zu(){let[e,t]=_(null),o=nt(async()=>{let r=await j(`/feedback?limit=${Sr}&offset=0`);return r.ok?{ok:!0,status:r.status,data:Array.isArray(r.data?.tickets)?r.data.tickets:[]}:r});return o.state==="loading"?n(Je,{panels:1,rows:3}):o.state==="signedOut"?n(lt,{}):o.state==="error"?n(ut,{error:o.error,onRetry:o.retry}):e?n(Qv,{id:e,onBack:()=>{t(null),o.reload()}}):n(Xv,{first:o.data,onOpen:t,onChanged:o.reload})}function Xv(e){let{t,locale:o}=ie(),r=Fe(),[a,i]=_(e.first),[s,l]=_(e.first.length===Sr),[c,d]=_(!1),[f,u]=_(!1),p=fe();J(()=>{i(e.first),l(e.first.length===Sr)},[e.first]);let m=()=>void p.run(async()=>{let g=await j(`/feedback?limit=${Sr}&offset=${a.length}`);if(!g.ok)return{error:bt(g)};let h=Array.isArray(g.data?.tickets)?g.data.tickets:[];r.current&&(i(y=>{let v=new Set(y.map(x=>x.id));return[...y,...h.filter(x=>!v.has(x.id))]}),l(h.length===Sr))});return n(Ie,{icon:"message",title:t("fb.list.title"),desc:t("fb.list.desc"),actions:c?void 0:n(q,{variant:"primary",onClick:()=>{u(!1),d(!0)},children:[n(B,{name:"plus",size:12})," ",t("fb.new")]}),children:[c&&n(Zv,{onCancel:()=>d(!1),onSubmitted:()=>{d(!1),u(!0),e.onChanged()}}),f&&!c&&n(Te,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t("fb.submitted")})}),a.length===0?n(wt,{children:t("fb.empty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map(g=>n("button",{type:"button",class:"fx-list-row fx-list-row--button",role:"listitem",onClick:()=>e.onOpen(g.id),children:[n("span",{class:`fx-dot${g.user_unread?" is-on":""}`,"aria-label":g.user_unread?t("fb.unread"):void 0}),n("span",{class:"fx-list-main",children:[n("strong",{children:g.title||(g.description||"").slice(0,60)||t("fb.untitled")}),n("small",{children:_t(g.updated_at||g.created_at,o)})]}),n(Yu,{status:g.status}),n(B,{name:"chevron",size:12})]},g.id))}),a.length>0&&(s||p.error)&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("fb.shown",{n:we(a.length,o)})}),s&&n(q,{pending:p.pending,onClick:m,children:t("common.loadMore")})]}),p.error&&n(Te,{children:n(ve,{a:p})})]})}function Kv(e){return new Promise((t,o)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>o(r.error||new Error("read failed")),r.readAsDataURL(e)})}var Yv=0;function Zv(e){let{t}=ie(),o=Fe(),[r,a]=_(""),[i,s]=_([]),[l,c]=_(null),[d,f]=_(!1),u=oe(null),p=fe(),[m,g]=_(0),h=oe(0);h.current=i.length;let y=async x=>{c(null);for(let w of Array.from(x||[])){if(!w.type||!w.type.startsWith("image/")){c({key:"err.imageType"});continue}if(w.size>Gv){c({key:"err.imageTooLarge"});continue}if(h.current>=Ra){c({key:"err.tooManyImages"});break}h.current++,g(z=>z+1);try{let z=await Kv(w);if(!o.current)return;let I={id:`img-${++Yv}`,filename:w.name||"image",mime_type:w.type,size:w.size,data_base64:z.replace(/^data:[^;]+;base64,/,""),url:z};s(F=>F.length>=Ra?F:[...F,I])}catch{h.current--,c({key:"err.imageRead"})}finally{o.current&&g(z=>z-1)}}},v=()=>void p.run(async()=>{let x=r.trim();if(!x)return{error:{key:"err.feedbackEmpty"}};if(x.length>La)return{error:{key:"err.feedbackTooLong"}};let w=i.map(({filename:I,mime_type:F,size:$,data_base64:N})=>({filename:I,mime_type:F,size:$,data_base64:N})),z=await j("/feedback",{method:"POST",body:{description:x,attachments:w},timeoutMs:12e4});if(!z.ok)return $e(z);e.onSubmitted()});return n("div",{class:`fx-sub fx-form fx-composer${d?" is-drag":""}`,onPaste:x=>{let w=Array.from(x.clipboardData?.items||[]).filter(z=>z.kind==="file").map(z=>z.getAsFile()).filter(Boolean);w.length&&(x.preventDefault(),y(w))},onDragOver:x=>{x.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onDrop:x=>{x.preventDefault(),f(!1),y(x.dataTransfer?.files)},children:[n("label",{class:"fx-field",children:[n("span",{children:t("fb.descLabel")}),n("textarea",{class:"fx-input fx-textarea",rows:5,value:r,maxLength:La,autoFocus:!0,placeholder:t("fb.descPlaceholder"),onInput:x=>a(x.currentTarget.value)})]}),n("p",{class:"fx-note",children:t("fb.imagesHint",{n:Ra})}),i.length>0&&n("div",{class:"fx-thumbs",children:i.map(x=>n("span",{class:"fx-thumb",children:[n("img",{src:x.url,alt:x.filename}),n("button",{type:"button","aria-label":t("fb.removeImage"),title:t("fb.removeImage"),onClick:()=>{s(w=>w.filter(z=>z.id!==x.id)),c(null)},children:n(B,{name:"x",size:11})})]},x.id))}),l&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(l,t)}),n("input",{ref:u,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:x=>{let w=x.currentTarget;y(w.files),w.value=""}}),n("div",{class:"fx-inline",children:[n(q,{disabled:i.length>=Ra||p.pending,onClick:()=>u.current?.click(),children:[n(B,{name:"image",size:12})," ",t("fb.addImages")]}),n("span",{class:"fx-grow"}),n(q,{disabled:p.pending,onClick:e.onCancel,children:t("common.cancel")}),n(q,{variant:"primary",pending:p.pending,disabled:m>0,onClick:v,children:t("fb.submit")})]}),n(ve,{a:p})]})}function Qv(e){let{t,locale:o}=ie(),[r,a]=_({state:"loading"}),[i,s]=_(0),[l,c]=_(""),[d,f]=_(null),u=fe(),p=oe(0);J(()=>{let z=++p.current;return j(`/feedback/${encodeURIComponent(e.id)}`).then(I=>{if(z===p.current){if(!I.ok){a({state:"error",fail:I});return}a({state:"ready",data:{ticket:I.data.ticket,replies:I.data.replies??[],attachments:I.data.attachments??[]}}),j(`/feedback/${encodeURIComponent(e.id)}/read`,{method:"POST"})}}),()=>{p.current++}},[e.id,i]),J(()=>{if(!d)return;let z=I=>{I.key==="Escape"&&f(null)};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[d]);let m=n("div",{class:"fx-back",children:n(q,{onClick:e.onBack,children:[n(B,{name:"back",size:12})," ",t("fb.back")]})});if(r.state==="loading")return n(R,{children:[m,n(Je,{panels:1,rows:3})]});if(r.state==="error")return n(R,{children:[m,n(ut,{error:bt(r.fail),onRetry:()=>{a({state:"loading"}),s(z=>z+1)}})]});let{ticket:g,replies:h,attachments:y}=r.data,v=g.status==="closed",x=z=>y.filter(I=>(I.reply_id??null)===z),w=()=>void u.run(async()=>{let z=l.trim();if(!z)return{error:{key:"err.replyEmpty"}};if(z.length>La)return{error:{key:"err.replyTooLong"}};let I=await j(`/feedback/${encodeURIComponent(g.id)}/replies`,{method:"POST",body:{content:z},timeoutMs:6e4});return I.ok?(c(""),s(F=>F+1),{success:{key:"fb.replySent"}}):$e(I)});return n(R,{children:[m,n(Ie,{icon:"message",title:g.title||t("fb.untitled"),actions:n(Yu,{status:g.status}),desc:`#${String(g.id).slice(0,8)} \xB7 ${_t(g.created_at,o)}`,children:[n("div",{class:"fx-thread fx-block",children:[n(Ku,{who:"user",when:g.created_at,text:g.description||"",files:x(null),onZoom:f}),h.map((z,I)=>n(Ku,{who:z.author_role==="user"?"user":"admin",when:z.created_at,text:z.content||"",files:z.id?x(z.id):[],onZoom:f},z.id??I))]}),v?n(Te,{children:n(ce,{children:t("fb.closedNote")})}):n(Te,{class:"fx-form",children:[n("textarea",{class:"fx-input fx-textarea",rows:3,value:l,maxLength:La,placeholder:t("fb.replyPlaceholder"),"aria-label":t("fb.replyPlaceholder"),onInput:z=>{c(z.currentTarget.value),u.success&&u.clear()}}),n("div",{class:"fx-inline",children:[n("span",{class:"fx-grow"}),n(q,{variant:"primary",pending:u.pending,onClick:w,children:t("fb.replySend")})]}),n(ve,{a:u})]})]}),d&&n("div",{class:"fx-lightbox",role:"dialog","aria-label":t("fb.imagePreview"),onClick:()=>f(null),children:n("img",{src:d,alt:""})})]})}function Ku(e){let{t,locale:o}=ie();return n("div",{class:`fx-bubble fx-bubble--${e.who}`,children:[n("div",{class:"fx-bubble-meta",children:[e.who==="user"?t("fb.you"):t("fb.support")," \xB7 ",_t(e.when,o)]}),n("div",{class:"fx-bubble-text",children:e.text}),e.files.length>0&&n("div",{class:"fx-thumbs",children:e.files.map((r,a)=>{let i=r.mime_type||"";if(i.startsWith("image/")&&r.data_base64){let s=`data:${i};base64,${r.data_base64}`;return n("button",{type:"button",class:"fx-thumb",onClick:()=>e.onZoom(s),"aria-label":t("fb.imagePreview"),children:n("img",{src:s,alt:r.filename||""})},r.id??a)}return n("span",{class:"fx-tag",children:[n(B,{name:"card",size:11})," ",r.filename||t("fb.attachment")]},r.id??a)})})]})}var tp=[{id:"monthly",field:"priceMonthly",discount:"recurringPriceMonthly"},{id:"quarterly",field:"priceQuarterly",discount:"recurringPriceQuarterly"},{id:"yearly",field:"priceYearly",discount:"recurringPriceYearly"}];function Qu(e,t){let o=tp.find(s=>s.id===t),r=He(e.priceMonthly)??0,a=(He(e[o.field])??0)||(t==="quarterly"?Math.round(r*300)/100:0),i=He(e[o.discount])??0;return i>0&&i<a?i:a}function _s(e,t,o){let r=we(e,o),a=String(t||"CNY").toUpperCase();return a==="CNY"?`\xA5${r}`:a==="USD"?`$${r}`:`${r} ${a}`}async function ey(){let[e,t,o]=await Promise.all([j("/membership/my"),j("/credits/balance"),j("/features")]);return!e.ok&&Fn(e)?e:!t.ok&&Fn(t)?t:{ok:!0,status:200,data:{membership:e.ok?e.data?.membership??null:null,membershipFailed:!e.ok,balance:t.ok?He(t.data?.balance):null,balanceFailed:!t.ok,features:o.ok&&o.data&&typeof o.data=="object"?o.data:{}}}}async function Cs(e,t){let[o,r]=await Promise.all([ey(),j(e)]);return o.ok?r.ok?{ok:!0,status:r.status,data:{status:o.data,list:t(r.data)}}:r:o}var As=e=>(Array.isArray(e)?e:[]).filter(t=>!!t&&typeof t=="object"&&t.isActive!==!1),ty=15*6e4;function Ts(e){let t=oe(0),o=oe(0),r=oe(e);return r.current=e,J(()=>{let a=()=>{let i=Date.now();i>t.current||document.visibilityState==="hidden"||i-o.current<2e3||(o.current=i,r.current?.())};return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[]),()=>{t.current=Date.now()+ty}}function np(e){let t=e.membership;return t&&(t.status===void 0||t.status==="active")?t:null}function Es(e){let{t,locale:o}=ie(),r=e.status,a=np(r),i=ho(a?.tier),s=i==="Free";return n("section",{class:"fx-shop-strip","aria-label":t("store.status"),children:[n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.tier")}),r.membershipFailed?n("b",{class:"is-empty",children:"\u2014"}):n("b",{"data-testid":"shop-tier",children:[s?t("member.freeName"):$o(a?.plan,o)||i,!s&&n("i",{children:a?.expiresAt?t("member.expires",{date:Pt(a.expiresAt,o)}):t("member.noExpiry")})]})]}),n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.balance")}),n("b",{class:r.balance===null?"is-empty":"","data-testid":"shop-balance",children:r.balance===null?"\u2014":we(r.balance,o)})]}),(r.membershipFailed||r.balanceFailed)&&n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")}),n("span",{class:"fx-grow"}),e.children]})}function Da(e){return n("section",{class:"fx-shop-section",children:[n("div",{class:"fx-shop-head",children:[n("div",{children:[n("h2",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.right]}),e.children]})}function Ps(e){let t=fe(),[o,r]=_(null),a=(i,s,l,c)=>{r(i),t.run(async()=>{if(!await zn(s,l,c))return{error:{key:"err.openFailed"}};e()})};return{a:t,payingId:t.pending?o:null,open:a}}function Na(e){return n(q,{variant:"ghost",pending:e.pending,disabled:e.disabled,onClick:e.onClick,children:[e.label,n(B,{name:"external",size:12})]})}function Is(e){return n("div",{class:"fx-shop-empty",children:e.children})}function op(){let{t:e,locale:t}=ie(),o=nt(()=>Cs("/payment/offerings",m=>As(m?.membershipPlans))),r=Ts(o.state==="ready"?o.reload:null),a=Ps(r),[i,s]=_("monthly");if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:l,list:c}=o.data,d=l.features.payment!==!1,f=tp.filter(m=>c.some(g=>Qu(g,m.id)>0)),u=f.some(m=>m.id===i)?i:f[0]?.id??"monthly",p=np(l)?.tier?.toLowerCase()??null;return n(R,{children:[n(Es,{status:l,onRetry:o.reload}),n(Da,{title:e("store.choosePlan"),desc:e(d?"store.payHint":"store.payOff"),right:f.length>1?n(It,{value:u,label:e("store.period"),onChange:s,options:f.map(m=>({value:m.id,label:e(`store.period.${m.id}`)}))}):void 0,children:[c.length===0?n(Is,{children:e("store.noPlans")}):n("div",{class:"fx-shop-tiers",children:c.map(m=>{let g=Qu(m,u),h=!!p&&!l.membershipFailed&&m.tier?.toLowerCase()===p;return n("article",{class:"fx-shop-tier","data-tier":m.tier,children:[n("h3",{children:[$o(m,t)||ho(m.tier),h&&n("span",{class:"fx-shop-current",children:[n(B,{name:"check",size:12}),e("store.currentTier")]})]}),n("div",{class:"fx-shop-price",children:g>0?n(R,{children:[_s(g,m.currency,t),n("small",{children:e(`store.per.${u}`)})]}):"\u2014"}),n("p",{children:ad(m,t)}),d&&g>0&&n(Na,{label:e(h?"member.renew":"store.pay"),pending:a.payingId===m.id,disabled:a.a.pending,onClick:()=>a.open(m.id,"membership",m.id,u)})]},m.id)})}),n(ve,{a:a.a})]})]})}var ep="__custom";function ny(e){let t=e&&typeof e=="object"?e.minCredits:void 0;return typeof t=="number"&&Number.isInteger(t)&&t>0?{minCredits:t}:null}function rp(){let{t:e,locale:t}=ie(),o=nt(()=>Cs("/payment/offerings",m=>({packs:As(m?.packages),custom:ny(m?.customTopup)}))),[r,a]=_(null);J(()=>{let m=!0;return j("/token-quota/my").then(g=>{m&&g.ok&&a(g.data?.pointsPricing??null)}),()=>{m=!1}},[]);let i=Ts(o.state==="ready"?o.reload:null),s=Ps(i);if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:l,list:{packs:c,custom:d}}=o.data,f=l.features.payment!==!1,u=xr(r,t),p=du(r,t);return n(R,{children:[n(Es,{status:l,onRetry:o.reload}),n(Da,{title:e("store.packs"),desc:e(f?"store.packsHint":"store.payOff"),children:[c.length===0?n(Is,{children:e("store.noPacks")}):n("div",{class:"fx-shop-grid",children:[c.map(m=>{let g=He(m.price)??0;return n(Ss,{icon:"coins",kind:e("store.kind.pack"),name:`${m.name||""} \xB7 ${e("store.nPoints",{n:we(m.credits,t)})}`,desc:m.description,meta:e("store.instant"),children:f&&g>0&&n(Na,{label:e("store.payPrice",{price:_s(g,m.currency,t)}),pending:s.payingId===m.id,disabled:s.a.pending,onClick:()=>s.open(m.id,"credits")})},m.id)}),f&&d&&n(Ss,{icon:"coins",kind:e("store.kind.custom"),name:e("store.customPack"),desc:e("store.customPackHint",{min:we(d.minCredits,t)}),meta:e("store.instant"),children:n(Na,{label:e("store.customPackPay"),pending:s.payingId===ep,disabled:s.a.pending,onClick:()=>s.open(ep,"credits")})})]}),n(ve,{a:s.a})]}),u&&n(Da,{title:e("store.pricingTitle"),children:n("div",{class:"fx-shop-pricing","data-testid":"points-pricing",children:[n(ce,{children:e("fallback.pricing",u)}),n(ce,{children:e("store.pricingFormula",u)}),p&&n(ce,{children:e("store.pricingExample",{n:p})})]})})]})}function Ss(e){return n("article",{class:"fx-shop-card",children:[n("div",{class:"fx-shop-visual","aria-hidden":"true",children:e.emoji?n("span",{class:"fx-shop-emoji",children:e.emoji}):n(B,{name:e.icon,size:18})}),n("div",{class:"fx-shop-body",children:[n("span",{class:"fx-shop-kind",children:e.kind}),n("strong",{children:e.name}),e.desc&&n("p",{children:e.desc}),n("div",{class:"fx-shop-foot",children:[n("span",{class:"fx-shop-meta",children:e.meta}),n("span",{class:"fx-shop-acts",children:e.children})]}),e.below]})]})}var oy={reset_card:"store.kind.card",api_quota_key:"store.kind.code"};function ry(e){let{t,locale:o}=ie(),{p:r}=e,a=fe(),[i,s]=_(null),[l,c]=_(!1),d=He(r.pricePoints)??0,f=He(r.priceRmb)??0,u=typeof r.availableKeys=="number"&&r.availableKeys<=0,p=d>0&&e.balance!==null&&e.balance<d,m=()=>void a.run(async()=>{let h=await j("/shop/purchase",{method:"POST",body:{productId:r.id,payMethod:"points"},timeoutMs:3e4});return h.ok?(s(typeof h.data?.key=="string"&&h.data.key?h.data.key:null),e.onRedeemed(),{success:{key:"store.redeemed"}}):h.status===0?(c(!0),{error:{key:"store.uncertain"}}):$e(h)}),g=u?t("store.soldOut"):p?t("err.insufficientPoints"):typeof r.availableKeys=="number"?t("store.left",{n:r.availableKeys}):t("store.toBackpack");return n(Ss,{icon:r.type==="api_quota_key"?"key":"gift",emoji:r.icon,kind:t(oy[r.type||""]??"store.kind.item"),name:r.name||"",desc:r.description,meta:g,below:n(R,{children:[n(ve,{a}),i&&n("div",{class:"fx-shop-key",children:[n("code",{children:i}),n(Ut,{text:i,label:t("backpack.copyKey")})]})]}),children:[d>0&&n(Gt,{variant:"primary",pending:a.pending,disabled:u||p||l,label:t("store.redeem",{n:we(d,o)}),confirmLabel:t("store.redeemConfirm",{n:we(d,o)}),onConfirm:m}),e.payment&&f>0&&n(Na,{label:_s(f,r.currency,o),pending:e.paying,disabled:e.payBusy||u,onClick:e.onPay})]})}function ap(){let{t:e,goTo:t}=ie(),o=nt(()=>Cs("/shop/products",d=>As(d))),r=Ts(o.state==="ready"?o.reload:null),a=Ps(r);if(o.state==="loading")return n(Je,{panels:2,rows:2});if(o.state==="signedOut")return n(lt,{});if(o.state==="error")return n(ut,{error:o.error,onRetry:o.retry});let{status:i,list:s}=o.data,l=i.features.payment!==!1,c=i.features.shop!==!1;return n(R,{children:[n(Es,{status:i,onRetry:o.reload,children:t&&n(q,{onClick:()=>t("backpack"),children:e("store.openBackpack")})}),n(Da,{title:e("store.redeemTitle"),desc:e("store.redeemHint"),children:[!c||s.length===0?n(Is,{children:e(c?"store.noItems":"store.itemsOff")}):n("div",{class:"fx-shop-grid",children:s.map(d=>n(ry,{p:d,balance:i.balance,payment:l,paying:a.payingId===d.id,payBusy:a.a.pending,onPay:()=>a.open(d.id,"storefront"),onRedeemed:o.reload},d.id))}),n(ve,{a:a.a})]})]})}var ay="forsion-extend",ip=[{id:"account",titleKey:"page.account",tabTitleKey:"page.profile",aliases:["profile"],keywords:"\u4E2A\u4EBA\u4E3B\u9875 profile avatar nickname \u5934\u50CF \u6635\u79F0",Component:lu},{id:"account-details",parent:"account",titleKey:"account.details.title",keywords:"\u767B\u5F55 \u8D44\u6599 \u624B\u673A \u90AE\u7BB1 \u5207\u6362 \u9000\u51FA \u5FAE\u4FE1 \u526A\u85CF \u4F01\u4E1A\u5FAE\u4FE1 \u7ED1\u5B9A\u7801 login sign-in email phone account switch logout wechat clip wecom",Component:Bd},{id:"security",parent:"account",titleKey:"page.security",keywords:"\u5B89\u5168 \u5BC6\u7801 \u8BBE\u5907 \u7ED1\u5B9A security password devices",Component:xu},{id:"quota",titleKey:"page.membershipUsage",tabTitleKey:"page.membershipQuota",aliases:["membership"],keywords:"\u4F1A\u5458 \u989D\u5EA6 \u540E\u53F0 quota membership background",Component:mu},{id:"points",parent:"quota",titleKey:"page.pointsInvite",keywords:"\u79EF\u5206 \u9080\u8BF7 \u5151\u6362 \u5145\u503C points invite redeem credits",Component:fu},{id:"usage",parent:"quota",titleKey:"page.usage",keywords:"\u7528\u91CF \u8BB0\u5F55 \u6D88\u8017 usage history tokens",Component:_u},{id:"backpack",titleKey:"page.backpack",keywords:"\u80CC\u5305 \u5361\u5238 backpack inventory",Component:hu},{id:"submission",titleKey:"page.submission",Component:Ou},{id:"webpages",titleKey:"page.webPages",keywords:"\u7F51\u9875 \u53D1\u5E03 \u94FE\u63A5 \u4E0A\u67B6 \u7F51\u7AD9 web pages publish link site connect",Component:Ju},{id:"feedback",titleKey:"page.feedback",keywords:"\u5E2E\u52A9 \u53CD\u9988 help feedback",Component:Zu},{id:"privacy",titleKey:"page.privacy",tabTitleKey:"privacy.tab",keywords:"\u9690\u79C1 \u9065\u6D4B \u5D29\u6E83 \u7EDF\u8BA1 \u5E2E\u52A9\u6539\u8FDB privacy telemetry crash usage statistics improve",Component:$d,desktopOnly:!0},{id:"diagnostics",parent:"privacy",titleKey:"diag.title",keywords:"\u8BCA\u65AD \u4E0A\u4F20 \u65E5\u5FD7 diagnostic upload logs",Component:Xu,desktopOnly:!0}],sp=[{id:"membership",titleKey:"store.membership",descKey:"store.membership.desc",icon:"crown",Component:op},{id:"points",titleKey:"store.points",descKey:"store.points.desc",icon:"coins",Component:rp},{id:"items",titleKey:"store.items",descKey:"store.items.desc",icon:"package",Component:ap}],In=e=>`forsion/fx:${ay}:${e}`;function Ms(e){let{ctx:t}=e,[o,r]=_(()=>Oe(t.getLocale?.()));J(()=>{r(Oe(t.getLocale?.()));let i=t.subscribeLocale?.(s=>r(Oe(s)));return()=>{typeof i=="function"&&i()}},[t]);let a=sn(()=>{let i=t.app?.openSettings;return{ctx:t,anchor:e.anchor,locale:o,t:Bn(o),goTo:typeof i=="function"?s=>i.call(t.app,In(s)):null}},[t,o,e.anchor]);return n(Ui.Provider,{value:a,children:e.children})}function iy(e){let{locale:t}=ie(),o=e.page.Component;return n("div",{class:"fx-acct","data-fx-page":e.page.id,lang:t==="zh"?"zh-CN":"en",children:[n("style",{children:Gc}),n(o,{})]})}function lp(e){return n(Ms,{ctx:e.ctx,anchor:e.anchor,children:n(iy,{page:e.page})})}function cp(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!cn(o)||typeof e.registerStoreView!="function")return 0;let r=a=>()=>ze(Oe(e.getLocale?.()),a);for(let a of sp)e.registerStoreView({id:a.id,title:r(a.titleKey),description:r(a.descKey),group:r("store.group"),icon:a.icon,mount(i){return Le(n(lp,{ctx:e,page:a}),i),()=>{Le(null,i)}}});return sp.length}function dp(e,t=window){let o=ln(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!cn(o)||typeof e.registerSettingsView!="function")return 0;let r=wn(o)?ip.filter(a=>!a.desktopOnly):ip;for(let a of r)e.registerSettingsView({id:a.id,category:"forsion",parent:a.parent,tabTitle:a.tabTitleKey?()=>ze(Oe(e.getLocale?.()),a.tabTitleKey):void 0,aliases:a.aliases,keywords:a.keywords,title:()=>ze(Oe(e.getLocale?.()),wn(o)&&a.webTitleKey||a.titleKey),mount(i,s){return Le(n(lp,{ctx:e,page:a,anchor:s?.anchor}),i),()=>{Le(null,i)}}});return r.length}var Vo=[{id:"lv1"},{id:"lv2"},{id:"lv3"},{id:"lv4"},{id:"new",version:"2.14"}],se=(e,t)=>({zh:e,en:t}),eo=[{id:"welcome",level:"lv1",icon:"compass",title:se("\u8BA4\u8BC6 Forsion","Meet Forsion"),tasks:[{id:"guide-open",event:"own:guide.open",goal:1,title:se("\u6253\u5F00\u4F7F\u7528\u6307\u5357","Open the guide")},{id:"space-switch",event:"space.switch",goal:1,title:se("\u5728 Ribbon \u4E0A\u6362\u4E00\u4E2A Space","Switch to another Space from the ribbon"),go:{space:"amadeus"},spot:{anchor:"ribbon-spaces",here:!0,title:se("\u70B9 Ribbon \u4E0A\u4EFB\u610F\u4E00\u4E2A\u56FE\u6807","Click any icon on the ribbon"),body:se("\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space\uFF0C\u70B9\u4E00\u4E0B\u5C31\u5207\u8FC7\u53BB\u3002","Each icon is a Space. One click switches to it.")}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon",label:se("Ribbon\uFF1A\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space","Ribbon: each icon is a Space")},{slot:"main-tabs",label:se("\u4E3B\u533A\u7684\u6807\u7B7E\u9875","Tabs in the main area"),text:se("\u6807\u7B7E\u9875","Tab")},{slot:["left-list","right"],label:se("\u5DE6\u53F3\u4FA7\u680F","Left and right sidebars")}]}},{id:"chat",level:"lv1",icon:"message-circle",title:se("\u548C Tangu \u8BF4\u7B2C\u4E00\u53E5\u8BDD","Say hello to Tangu"),tasks:[{id:"chat-first",event:"chat.send",goal:1,title:se("\u53D1\u51FA\u7B2C\u4E00\u6761\u6D88\u606F","Send your first message"),go:{space:"tangu",command:"new-chat"},spot:{anchor:"chat-composer",title:se("\u5728\u8FD9\u91CC\u6253\u4E2A\u62DB\u547C","Say hello here"),body:se("\u6253\u5B57\uFF0C\u6309 Enter \u53D1\u9001\uFF1BShift+Enter \u6362\u884C\u3002","Type, then press Enter to send. Shift+Enter starts a new line.")}},{id:"chat-five",event:"chat.send",goal:5,title:se("\u518D\u804A\u51E0\u53E5\uFF08\u7D2F\u8BA1 5 \u6761\uFF09","Keep talking (5 messages in all)"),go:{space:"tangu"},spot:{anchor:"chat-composer",title:se("\u63A5\u7740\u804A\u51E0\u53E5","Keep the conversation going"),body:se("\u7D2F\u8BA1\u53D1\u51FA 5 \u6761\u5C31\u7B97\u5B8C\u6210\u3002","Five messages in all and this one is done.")}}],figure:{layout:"space",main:"chat",marks:[{slot:"left-top",label:se("\u5DE6\u680F\u9876\u90E8\u300C\u65B0\u4F1A\u8BDD\u300D",'"New chat" at the top of the left sidebar'),text:se("\u65B0\u4F1A\u8BDD","New chat")},{slot:"main-bottom",label:se("\u8F93\u5165\u6846","Message box")}]}},{id:"note",level:"lv1",icon:"file-text",title:se("\u5199\u4E0B\u7B2C\u4E00\u7BC7\u7B14\u8BB0","Write your first note"),tasks:[{id:"note-create",event:"note.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u7BC7\u7B14\u8BB0","Create a note"),go:{space:"amadeus",command:"amadeus-new-note"},spot:{anchor:"note-new",title:se("\u70B9\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'Click "New note"'),body:se("\u4E5F\u53EF\u4EE5\u6309 \u2318/Ctrl+N\u3002\u6BCF\u7BC7\u7B14\u8BB0\u90FD\u662F\u667A\u5E93\u91CC\u7684\u4E00\u4E2A .md \u6587\u4EF6\u3002","Or press \u2318/Ctrl+N. Every note is a .md file in your vault.")}},{id:"note-link",event:"note.wikilink",goal:1,title:se("\u7528 [[ \u94FE\u63A5\u53E6\u4E00\u7BC7\u7B14\u8BB0","Link another note with [["),go:{space:"amadeus"},spot:{anchor:"note-body",title:se("\u5728\u6B63\u6587\u91CC\u8F93\u5165 [[","Type [[ in the note"),body:se("\u4ECE\u5F39\u51FA\u7684\u5019\u9009\u91CC\u9009\u4E00\u7BC7\u7B14\u8BB0\uFF0C\u6309 Enter\uFF0C\u4E24\u7BC7\u5C31\u8FDE\u4E0A\u4E86\u3002","Pick a note from the suggestions and press Enter to link the two.")}},{id:"note-canvas",event:"note.canvas",goal:1,title:se("\u628A\u7B14\u8BB0\u5207\u5230\u753B\u5E03","Switch a note to the canvas"),go:{space:"amadeus",command:"amadeus-toggle-canvas"},spot:{anchor:"note-canvas",title:se("\u70B9\u300C\u753B\u5E03\u300D",'Click "Canvas"'),body:se("\u540C\u4E00\u7BC7\u7B14\u8BB0\u644A\u6210\u767D\u677F\uFF0C\u968F\u624B\u6446\uFF1B\u70B9\u300C\u6587\u6863\u300D\u5207\u56DE\u6765\uFF0C\u4E00\u4E2A\u5B57\u90FD\u4E0D\u53D8\u3002",'The same note opens as a whiteboard. Click "Document" to switch back; nothing changes.')}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-top",label:se("\u5DE6\u680F\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'"New note" in the left sidebar'),text:se("\u65B0\u5EFA\u7B14\u8BB0","New note")},{slot:"main-top",label:se("\u300C\u6587\u6863 / \u753B\u5E03\u300D\u80F6\u56CA","The Document / Canvas switch")},{slot:"right",label:se("\u53F3\u680F\u91CC\u7684\u300C\u53CD\u94FE\u300D","Backlinks in the right sidebar"),text:se("\u53CD\u94FE","Backlinks")}]}},{id:"theme",level:"lv1",icon:"sparkles",title:se("\u6362\u4E00\u8EAB\u4E3B\u9898","Make it look like yours"),tasks:[{id:"theme-change",event:"theme.change",goal:1,title:se("\u6362\u4E00\u4E2A\u4E3B\u9898","Pick another theme"),go:{settings:"theme"}}],figure:{layout:"settings",marks:[{slot:"nav",label:se("\u8BBE\u7F6E\u91CC\u7684\u300C\u5916\u89C2\u300D",'"Appearance" in Settings'),text:se("\u5916\u89C2","Appearance")},{slot:"section-1",label:se("\u8BBE\u8BA1\u8BED\u8A00","Design language"),text:se("\u8BBE\u8BA1\u8BED\u8A00","Design language")},{slot:"section-2",label:se("\u4E3B\u9898\u8272\u548C\u80CC\u666F\u8272","Theme and background colors"),text:se("\u914D\u8272","Colors")}]}},{id:"database",level:"lv2",icon:"database",title:se("\u6570\u636E\u5E93\uFF1A\u628A\u7B14\u8BB0\u53D8\u6210\u8868","Databases: turn notes into a table"),tasks:[{id:"base-create",event:"base.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u4E2A\u6570\u636E\u5E93","Create a database"),go:{space:"amadeus"}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-list",label:se("\u7B14\u8BB0\u6811\uFF1A\u53F3\u952E \u2192\u300C\u65B0\u5EFA Base\u300D",'Note tree: right-click \u2192 "New Base"')},{slot:"main-body",label:se("\u6B63\u6587\u91CC\u8F93\u5165 /\uFF0C\u9009\u300C\u591A\u7EF4\u8868\u300D",'Type / in a note and pick "Database"')}]}},{id:"market",level:"lv2",icon:"store",title:se("\u4ECE\u5546\u5E97\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin from the store"),tasks:[{id:"market-install",event:"market.install",goal:1,title:se("\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin"),go:{command:"open-market"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-bottom",label:se("Ribbon \u5E95\u90E8\u7684\u300C\u5546\u5E97\u300D",'"Store" at the bottom of the ribbon')}]}},{id:"space",level:"lv2",icon:"layout-grid",title:se("\u5B58\u4E0B\u81EA\u5DF1\u7684 Space","Save a Space of your own"),tasks:[{id:"space-save",event:"space.save",goal:1,title:se("\u628A\u5F53\u524D\u5E03\u5C40\u5B58\u6210 Space","Save the current layout as a Space"),go:{command:"save-as-space"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-plus",label:se("Space \u533A\u7684 \uFF0B","The + under the Spaces")},{slot:"main-top-right",label:se("\u53F3\u4E0A\u89D2\u7684\u6D6E\u52A8\u6309\u94AE","Floating buttons at the top right")}]}},{id:"calendar",level:"lv2",icon:"calendar-days",title:se("\u65E5\u5386\u548C\u5F85\u529E","Calendar and to-dos"),tasks:[{id:"calendar-event",event:"calendar.event",goal:1,title:se("\u5728\u65E5\u5386\u4E0A\u5EFA\u4E00\u4E2A\u65E5\u7A0B","Add an event to the calendar"),go:{space:"calendar"}},{id:"todo-done",event:"todo.done",goal:1,title:se("\u52FE\u6389\u4E00\u6761\u5F85\u529E","Tick off a to-do"),go:{space:"calendar"}}],figure:{layout:"space",main:"grid",marks:[{slot:"left-plus",label:se("\u5DE6\u680F\u300C\u65E5\u5386\u300D\u65C1\u7684 +",'The + next to "Calendars" in the left sidebar')},{slot:"main-body",label:se("\u65F6\u95F4\u683C\uFF1A\u5355\u51FB\u5EFA\u65E5\u7A0B","Time grid: click to add an event")},{slot:"right",label:se("\u53F3\u680F\u7684\u5F85\u529E","To-dos in the right sidebar"),text:se("\u5F85\u529E","To-dos")}]}},{id:"agent",level:"lv3",icon:"bot",title:se("\u521B\u5EFA\u4F60\u7684 Agent","Create your own agent"),tasks:[{id:"agent-create",event:"agent.create",goal:1,title:se("\u65B0\u5EFA\u4E00\u4E2A Agent","Create an agent"),go:{space:"agents"},spot:{anchor:"agent-new",title:se("\u70B9\u300C\u521B\u5EFA Agent\u300D",'Click "Create agent"'),body:se("\u8D77\u4E2A\u540D\u5B57\uFF0C\u5199\u51E0\u53E5\u5B83\u8BE5\u600E\u4E48\u505A\u4E8B\u3002","Give it a name and a few lines on how it should work.")}}]},{id:"muse",level:"lv3",icon:"sparkles",title:se("Muse\uFF1A\u8BA9\u7075\u611F\u81EA\u5DF1\u957F","Muse: ideas that grow on their own"),tasks:[{id:"muse-open",event:"muse.open",goal:1,title:se("\u53BB Muse \u770B\u4E00\u773C","Take a look at Muse"),go:{space:"muse"}}]},{id:"automation",level:"lv3",icon:"zap",title:se("\u81EA\u52A8\u5316\uFF1A\u5230\u70B9\u5C31\u505A","Automations: done on schedule"),tasks:[{id:"automation-create",event:"automation.create",goal:1,title:se("\u5EFA\u4E00\u6761\u81EA\u52A8\u5316","Create an automation"),go:{space:"automation"}}]},{id:"computer",level:"lv4",icon:"terminal",title:se("\u8BA9 Tangu \u64CD\u4F5C\u7535\u8111","Let Tangu use your computer"),tasks:[{id:"cu-use",event:"computer.use",goal:1,title:se("\u8BA9 Tangu \u7528\u4E00\u6B21\u7535\u8111","Have Tangu use your computer once"),go:{settings:"computer-use"},desktopOnly:!0}]},{id:"plugin",level:"lv4",icon:"code",title:se("\u5199\u4E00\u4E2A\u81EA\u5DF1\u7684\u63D2\u4EF6","Write a plugin of your own"),tasks:[{id:"plugin-dev",event:"plugin.local",goal:1,title:se("\u4ECE\u672C\u673A\u6587\u4EF6\u5939\u8F7D\u5165\u4E00\u4E2A\u63D2\u4EF6","Load a plugin from a local folder"),go:{settings:"amadeus-plugins"},desktopOnly:!0}]},{id:"mini-capsules",level:"new",icon:"layout-grid",title:se("Mini \u9876\u680F\u4E24\u9897\u80F6\u56CA","Two capsules on the Mini bar"),tasks:[{id:"mini-open",event:"mini.open",goal:1,title:se("\u6253\u5F00\u4E00\u6B21 Mini \u7A97\u53E3","Open the Mini window"),go:{command:"open-mini"},desktopOnly:!0}]},{id:"todo-standalone",level:"new",icon:"list-tree",title:se("\u5F85\u529E\u89C6\u56FE\u5355\u72EC\u6253\u5F00","Open the to-do view on its own"),tasks:[{id:"todo-open",event:"todo.open",goal:1,title:se("\u5355\u72EC\u6253\u5F00\u4E00\u6B21\u5F85\u529E\u89C6\u56FE","Open the to-do view by itself"),go:{space:"calendar"}}]}],Sn=e=>eo.filter(t=>t.level===e),to=e=>eo.find(t=>t.id===e);var dn=Vo.filter(e=>!e.version);function Mn(e,t){let o=e.event.startsWith("own:");return t.count(o?e.event.slice(4):e.event,o)>=e.goal}var _r=(e,t)=>e.filter(o=>t.desktop||!o.desktopOnly);function up(e,t){return Sn(e).every(o=>_r(o.tasks,t).every(r=>Mn(r,t)))}function Oa(e,t){let o=dn.findIndex(r=>r.id===e);return o<=0||t.unlockAll?!0:dn.slice(0,o).every(r=>up(r.id,t))}function Wo(e,t){return Oa(e.level,t)?_r(e.tasks,t).every(o=>Mn(o,t))?"done":"active":"locked"}function Rs(e){return dn.find(t=>!up(t.id,e))?.id??null}function pp(e){let t={...e,unlockAll:!1},o=dn[0].id;for(let r of dn)Oa(r.id,t)&&(o=r.id);return o}function sy(e,t){let o=e.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0),r=t.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0);for(let a=0;a<Math.max(o.length,r.length);a++){let i=(o[a]??0)-(r[a]??0);if(i)return i<0?-1:1}return 0}function Ls(e){let t=Vo.find(o=>o.version);return t?.version&&e.appVersion&&sy(e.appVersion,t.version)>=0?t.version:null}var fp=e=>eo.filter(t=>t.level!=="new"||!!Ls(e));function mp(e,t){let o=_r(Sn(e).flatMap(r=>r.tasks),t);return{done:o.filter(r=>Mn(r,t)).length,total:o.length}}var Ds={zh:{agent:`\u9664\u4E86\u9ED8\u8BA4\u7684 Tangu\uFF0C\u4F60\u53EF\u4EE5\u6309\u7528\u9014\u5EFA\u81EA\u5DF1\u7684 Agent\uFF1A\u7ED9\u5B83\u540D\u5B57\u3001\u5DE5\u4F5C\u6307\u4EE4\u548C\u81EA\u5DF1\u7684\u8BB0\u5FC6\uFF0C\u8BA9\u5B83\u4E13\u95E8\u505A\u4E00\u7C7B\u4E8B\u3002
|
|
870
873
|
|
|
871
874
|
## \u521B\u5EFA
|
|
872
875
|
|
|
@@ -1276,12 +1279,12 @@ In the Calendar's right panel or the Mini window, the filters and the list choic
|
|
|
1276
1279
|
- Things you have already done count right away, and progress is kept on this device. Been around a while? Unlock everything from the \xB7\xB7\xB7 menu at the top right.
|
|
1277
1280
|
|
|
1278
1281
|
> [!tip]
|
|
1279
|
-
> Can't find something? Press \`\u2318/Ctrl+K\` to open the command palette and search for it by name.`}};var
|
|
1280
|
-
`),
|
|
1282
|
+
> Can't find something? Press \`\u2318/Ctrl+K\` to open the command palette and search for it by name.`}};var gp="forsion-guide",_n={reader:"guide",side:"guide-side",companion:"guide-companion"},Ns="guide-chapters",hp=e=>`forsion-extend.guide.${e}`;function Mt(e,t){try{let o=localStorage.getItem(hp(e));return o===null?t:JSON.parse(o)}catch{return t}}function Ht(e,t){try{localStorage.setItem(hp(e),JSON.stringify(t))}catch{}}function bp(e,t){let o=new Set,r=Mt("unlockAll",!1),a=null,i=Mt("chapter","welcome"),s=Mt("companion","welcome"),l=null,c=null,d=!1,f,u=[],p=()=>Oe(e.getLocale?.()),m=(S,A)=>ze(p(),S,A),g=(S,A)=>e.achievements?.count?.(S,A?{own:!0}:void 0)??0,h=()=>({count:g,unlockAll:r,desktop:t.desktop,appVersion:a}),y=S=>S.title[p()]||S.title.zh,v=S=>S==="new"?m("guide.whatsNew",{version:Vo.find(A=>A.version)?.version??""}):m(`guide.level.${S}`),x=()=>{for(let S of[...o])try{S()}catch(A){console.error("[guide] listener failed",A)}},w=()=>{let S=h(),A=new Set(eo.flatMap(ee=>ee.tasks.filter(U=>Mn(U,S)).map(U=>U.id)));if(l)for(let ee of eo)for(let U of ee.tasks)A.has(U.id)&&!l.has(U.id)&&e.app?.notify?.(m("guide.toast.taskDone",{task:y(U)}));l=A,F(S);let M=pp(S),G=Mt("reached",null);G===null?Ht("reached",M):dn.findIndex(ee=>ee.id===M)>dn.findIndex(ee=>ee.id===G)&&(Ht("reached",M),Ht("justUnlocked",M),N({kind:"level",level:M})),Mt("pendingLetter",null)&&Y()},z=S=>!!S.spot&&!!e.app?.spotlight&&Mt("spotlight",!0)&&(t.desktop||!S.desktopOnly),I=(S,A,M)=>{let G=S.spot;c={chapter:A.id,task:S.id},x();let ee=A.tasks.length>1?m("guide.spotStep",{n:A.tasks.indexOf(S)+1,total:A.tasks.length}):void 0;e.app.spotlight({anchor:G.anchor,title:y(G),body:G.body[p()]||G.body.zh,step:ee}).then(async U=>{d||(c?.task===S.id&&U!=="replaced"&&(c=null,x()),U==="mute"&&H.setSpotlight(!1),U==="missing"&&M&&(G.here&&S.go?.space&&await e.app?.openSpace?.(S.go.space),S.go?.command&&e.app?.runCommand?.(S.go.command)))})},F=S=>{let A=c&&to(c.chapter),M=A&&A.tasks.find(ee=>ee.id===c.task);if(!A||!M||!Mn(M,S))return;let G=A.tasks.find(ee=>!Mn(ee,S)&&z(ee)&&!ee.spot.here&&(ee.go?.space??"")===(M.go?.space??""));G?I(G,A,!1):(c=null,e.app?.spotlight?.(null))},$=Promise.resolve(),N=S=>{!e.inbox||!Mt("reminders",!0)||(Ht("pendingLetter",S),Y())},Y=()=>{$=$.then(C,C)},C=async()=>{let S=Mt("pendingLetter",null);if(d||!S||!e.inbox)return;let A=S.kind==="level"?Sn(S.level):Sn("new"),M=A.map(ae=>`- ${y(ae)}`).join(`
|
|
1283
|
+
`),G=S.kind==="level"?{title:m("guide.letter.levelTitle",{level:v(S.level)}),body:`${m("guide.letter.levelBody")}
|
|
1281
1284
|
|
|
1282
|
-
${
|
|
1285
|
+
${M}`}:{title:m("guide.letter.versionTitle",{version:S.version,n:A.length}),body:`${m("guide.letter.versionBody")}
|
|
1283
1286
|
|
|
1284
|
-
${
|
|
1287
|
+
${M}`},ee=await e.inbox.post(G);if(!ee||d)return;let U=Mt("lastLetter",null);Ht("lastLetter",ee),Ht("letters",{...Mt("letters",{}),[ee]:S}),JSON.stringify(Mt("pendingLetter",null))===JSON.stringify(S)&&Ht("pendingLetter",null),U&&U!==ee&&await e.inbox.archive(U)},D=()=>{let S=Ls(h());if(!S||Mt("seenVersion",null)===S)return;if(!(Mt("seenVersion",null)!==null||g("chat.send",!1)+g("note.create",!1)>0)){Ht("seenVersion",S);return}let M=Date.now(),G=()=>{if(!d){if(document.querySelector(".ob-rail")&&Date.now()-M<6e5){f=window.setTimeout(G,3e3);return}Ht("seenVersion",S),N({kind:"version",version:S})}};f=window.setTimeout(G,3e3)},H={ctx:e,locale:p,t:m,env:h,title:y,levelName:v,subscribe(S){return o.add(S),()=>{o.delete(S)}},selected:()=>to(i)??eo[0],select(S){!to(S)||S===i||(i=S,Ht("chapter",S),to(S).level===Mt("justUnlocked",null)&&Ht("justUnlocked",null),x())},companionChapter:()=>to(s)??H.selected(),async go(S,A){let M=S.go;if(!M||S.desktopOnly&&!t.desktop)return;s=A.id,Ht("companion",A.id);let G=z(S);c&&(c=null,G||e.app?.spotlight?.(null)),M.space&&!(G&&S.spot.here)&&await e.app?.openSpace?.(M.space)&&M.space!==gp&&e.openView?.(_n.companion,{location:"right"}),G?I(S,A,!0):M.command&&e.app?.runCommand?.(M.command),M.settings&&e.app?.openSettings?.(M.settings),x()},markdown(S){let A=Ds[p()]?.[S.id]||Ds.zh[S.id]||"",M=A.search(/\n\s*\n/);return M<0?{intro:A.trim(),body:""}:{intro:A.slice(0,M).trim(),body:A.slice(M).trim()}},justUnlocked:()=>Mt("justUnlocked",null),setUnlockAll(S){r=S,Ht("unlockAll",S),x()},reminders:()=>Mt("reminders",!0),setReminders(S){Ht("reminders",S),x()},spotlightOn:()=>!!e.app?.spotlight&&Mt("spotlight",!0),setSpotlight(S){Ht("spotlight",S),!S&&c&&(c=null,e.app?.spotlight?.(null)),x()},spotTask:()=>c?.task??null,letter:S=>Mt("letters",{})[S]??null,async openGuide(S){S&&H.select(S),Ht("justUnlocked",null),await e.app?.openSpace?.(gp),x()},dispose(){c&&e.app?.spotlight?.(null),d=!0,window.clearTimeout(f);for(let S of u.splice(0))S();o.clear()}},E=e.achievements?.subscribe?.(()=>{w(),x()});E&&u.push(E);let Z=e.subscribeLocale?.(()=>x());return typeof Z=="function"&&u.push(Z),w(),t.appVersion.then(S=>{d||(a=S,D(),x())}),H}function Fa(e){let t=fp(e.env());return Vo.map(o=>({level:o.id,chapters:t.filter(r=>r.level===o.id)})).filter(o=>o.chapters.length)}function vp(e,t){switch(e){case"ribbon":return{x:5,y:10,w:28,h:168};case"ribbon-plus":return{x:5,y:180,w:28,h:26};case"ribbon-bottom":return{x:5,y:208,w:28,h:26};case"left-top":return{x:48,y:14,w:128,h:28};case"left-plus":return{x:180,y:16,w:22,h:24};case"left-list":return{x:48,y:54,w:154,h:122};case"main-tabs":return{x:224,y:14,w:96,h:22};case"main-top":return{x:226,y:44,w:104,h:24};case"main-top-right":return{x:498,y:44,w:60,h:24};case"main-body":return t.main==="grid"?{x:232,y:78,w:328,h:170}:{x:244,y:80,w:304,h:112};case"main-bottom":return{x:236,y:208,w:312,h:42};case"right":return{x:588,y:16,w:116,h:76};case"nav":return{x:14,y:92,w:172,h:28};case"section-1":return{x:224,y:60,w:476,h:86};case"section-2":return{x:224,y:160,w:476,h:90}}}var Ke=e=>({style:e}),At=(e,t,o,r=7)=>n("rect",{x:e,y:t,width:o,height:r,rx:r/2,...Ke("fill:var(--overlay-medium)")}),jo=(e,t,o=12,r=!1)=>n("rect",{x:e,y:t,width:o,height:o,rx:3,...Ke(r?"fill:var(--text-muted)":"fill:var(--overlay-strong)")}),Go=(e,t,o,r="")=>n("text",{x:e,y:t,...Ke(`fill:var(--text);font:500 12px var(--font-ui);${r}`),children:o});function yp({g:e,figure:t}){let o=e.locale(),r=new Map;for(let u of t.marks)if(u.text)for(let p of[].concat(u.slot))r.set(p,u.text[o]||u.text.zh);let a=new Set(t.marks.flatMap(u=>[].concat(u.slot))),i=t.marks.flatMap(u=>[].concat(u.slot).map(p=>vp(p,t))),s=t.marks.map((u,p)=>{let m=vp([].concat(u.slot)[0],t);return{n:p+1,x:Math.min(m.x+m.w+4,712),y:Math.max(m.y-4,12)}}),l=t.marks.map(u=>u.label[o]||u.label.zh),c=()=>n(R,{children:[[16,44,72,100,128,156].map((u,p)=>n("g",{children:jo(11,u,16,p===2)},u)),n("path",{d:"M19 186v14M12 193h14",...Ke("stroke:var(--text-faint);stroke-width:2;stroke-linecap:round")}),jo(11,213,16,a.has("ribbon-bottom")),jo(11,240,16),n("rect",{x:38,y:1,width:1,height:266,...Ke("fill:var(--border)")}),jo(56,22,12,a.has("left-top")),r.has("left-top")?Go(76,32,r.get("left-top")):At(76,25,70),a.has("left-plus")&&n("path",{d:"M191 21v14M184 28h14",...Ke("stroke:var(--text-muted);stroke-width:2;stroke-linecap:round")}),[62,86,110,134,158].map((u,p)=>n("g",{children:[jo(58,u,10),At(76,u+1.5,[74,56,88,48,66][p])]},u)),r.has("right")?Go(598,38,r.get("right")):At(598,30,52),At(598,52,84),At(598,68,62),At(598,116,92),At(598,132,70)]}),d=()=>n(R,{children:[n("rect",{x:228,y:16,width:88,height:18,rx:6,...Ke("fill:var(--bg-card)")}),r.has("main-tabs")?Go(240,29,r.get("main-tabs"),"font-size:11px"):At(238,22,52,6),n("rect",{x:230,y:47,width:48,height:18,rx:9,...Ke("fill:var(--bg-card)")}),At(242,53,24,6),At(290,53,26,6),[506,524,542].map(u=>n("rect",{x:u,y:50,width:12,height:12,rx:3,...Ke("fill:var(--overlay-strong)")},u)),t.main==="grid"?n(R,{children:[[0,1,2,3,4,5,6].map(u=>n("g",{children:At(244+u*46,86,22,6)},u)),[104,140,176,212].map(u=>n("rect",{x:238,y:u,width:316,height:1,...Ke("fill:var(--border)")},u)),[1,2,3,4,5,6].map(u=>n("rect",{x:238+u*45,y:98,width:1,height:146,...Ke("fill:var(--border)")},u)),n("rect",{x:286,y:146,width:40,height:24,rx:4,...Ke("fill:var(--overlay-medium)")}),n("rect",{x:376,y:182,width:40,height:18,rx:4,...Ke("fill:var(--overlay-medium)")})]}):t.main==="chat"?n(R,{children:[n("rect",{x:412,y:84,width:132,height:26,rx:10,...Ke("fill:var(--overlay-light)")}),At(252,128,260),At(252,144,230),At(252,160,150),n("rect",{x:240,y:212,width:304,height:34,rx:10,...Ke("fill:var(--bg-card);stroke:var(--border)")}),At(254,226,120),n("circle",{cx:528,cy:229,r:8,...Ke("fill:var(--overlay-strong)")})]}):n(R,{children:[n("rect",{x:252,y:86,width:120,height:12,rx:4,...Ke("fill:var(--overlay-strong)")}),[110,126,142,166,182,206,222].map((u,p)=>n("g",{children:At(252,u,[292,270,200,286,240,280,150][p])},u))]})]}),f=()=>n(R,{children:[[36,64,92,120,148,176].map((u,p)=>n("g",{children:[jo(24,u+8,12,p===2&&a.has("nav")),p===2&&r.has("nav")?Go(44,u+18,r.get("nav")):At(44,u+11,[64,52,58,70,46,60][p])]},u)),n("rect",{x:232,y:28,width:110,height:12,rx:4,...Ke("fill:var(--overlay-strong)")}),r.has("section-1")?Go(234,82,r.get("section-1")):At(234,74,70),[0,1,2].map(u=>n("rect",{x:234+u*150,y:94,width:136,height:42,rx:8,...Ke(u===0?"fill:var(--bg-card);stroke:var(--accent)":"fill:var(--bg-card);stroke:var(--border)")},u)),r.has("section-2")?Go(234,182,r.get("section-2")):At(234,174,70),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:210,r:10,...Ke(u===0?"fill:var(--accent)":"fill:var(--overlay-strong)")},u)),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:236,r:8,...Ke("fill:var(--overlay-medium)")},`b${u}`))]});return n("figure",{class:"fxg-figure",children:[n("svg",{class:"fxg-figure-svg",viewBox:"0 0 724 268",role:"img","aria-label":`${e.t("guide.figure")}: ${l.map((u,p)=>`${p+1} ${u}`).join("; ")}`,children:[n("rect",{x:.5,y:.5,width:723,height:267,rx:10,...Ke("fill:var(--sidebar-bg, var(--bg));stroke:var(--border)")}),t.layout==="settings"?n("rect",{x:200,y:1,width:523,height:266,...Ke("fill:var(--bg)")}):n("rect",{x:216,y:8,width:352,height:252,rx:8,...Ke("fill:var(--bg)")}),i.map((u,p)=>n("rect",{x:u.x-4,y:u.y-4,width:u.w+8,height:u.h+8,rx:7,...Ke("fill:var(--accent-wash);stroke:var(--accent);stroke-width:2")},`r${p}`)),t.layout==="settings"?f():n(R,{children:[c(),d()]}),s.map(u=>n("g",{children:[n("circle",{cx:u.x,cy:u.y,r:10,...Ke("fill:var(--accent)")}),n("text",{x:u.x,y:u.y+4,"text-anchor":"middle",...Ke("fill:var(--on-accent);font:600 12px var(--font-ui)"),children:u.n})]},u.n))]}),n("figcaption",{class:"fxg-figure-cap",children:l.map((u,p)=>n("span",{children:[n("b",{children:p+1}),u]},p))})]})}var xp=`
|
|
1285
1288
|
.fxg { color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); height: 100%; min-height: 0; display: flex; flex-direction: column; }
|
|
1286
1289
|
.fxg button { font: inherit; }
|
|
1287
1290
|
.fxg .fx-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
@@ -1348,16 +1351,16 @@ ${I}`},ee=await e.inbox.post(j);if(!ee||d)return;let H=It("lastLetter",null);Ht(
|
|
|
1348
1351
|
.fxg-letter .fxg-letter-chapter { display: grid; gap: 4px; }
|
|
1349
1352
|
.fxg-letter .fxg-letter-title { padding: 0; border: 0; background: transparent; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
|
|
1350
1353
|
.fxg-letter > .btn { align-self: flex-start; }
|
|
1351
|
-
`;function
|
|
1354
|
+
`;function Ba(e){let[,t]=_(0);J(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function $a(e){return n("div",{class:`fxg fxg-${e.kind}`,lang:e.g.locale()==="zh"?"zh-CN":"en",children:[n("style",{children:xp}),e.children]})}var Ua=({on:e})=>n("span",{class:`fxg-check${e?" is-on":""}`,"aria-hidden":"true",children:e&&n("svg",{viewBox:"0 0 16 16",width:"10",height:"10",children:n("path",{d:"M3.5 8.5l3 3 6-7",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})});function zp({g:e,task:t,chapter:o}){let r=e.env(),a=Mn(t,r),i=!!t.desktopOnly&&!r.desktop;return n("li",{class:`fxg-task${a?" is-done":""}${!a&&e.spotTask()===t.id?" is-current":""}`,"data-task":t.id,children:[n(Ua,{on:a}),n("span",{class:"fxg-task-title",children:e.title(t)}),a?n("span",{class:"fxg-task-state",children:e.t("guide.taskDone")}):i?n("span",{class:"fxg-task-state",children:e.t("guide.desktopOnly")}):t.go?n("button",{type:"button",class:"btn ghost sm fxg-go",onClick:()=>void e.go(t,o),children:e.t("guide.go")}):null]})}function Os({g:e,chapter:t}){return n("ul",{class:"fxg-tasks",children:t.tasks.map(o=>n(zp,{g:e,task:o,chapter:t},o.id))})}function kp({g:e,value:t,label:o}){let r=oe(null),a=oe(null);return J(()=>{if(!(!r.current||!e.ctx.ui?.mountMarkdownEditor))return a.current=e.ctx.ui.mountMarkdownEditor(r.current,{value:t,label:o,readOnly:!0,modes:!1}),()=>{a.current?.dispose(),a.current=null}},[e]),J(()=>{a.current?.update({value:t})},[t]),n("div",{class:"fxg-doc",ref:r})}function cy({g:e}){let[t,o]=_(!1),r=oe(null);J(()=>{if(!t)return;let s=c=>{r.current?.contains(c.target)||o(!1)},l=c=>{c.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",s,!0),document.addEventListener("keydown",l),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("keydown",l)}},[t]);let a=e.env(),i=(s,l,c)=>n("button",{type:"button",role:c===void 0?"menuitem":"menuitemcheckbox","aria-checked":c,class:"fxg-menu-item",onClick:()=>{o(!1),l()},children:[n("span",{children:s}),c&&n(Ua,{on:!0})]});return n("div",{class:"fxg-more",ref:r,children:[n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.more"),"aria-haspopup":"menu","aria-expanded":t,onClick:()=>o(!t),children:"\xB7\xB7\xB7"}),t&&n("div",{class:"fxg-menu",role:"menu",children:[i(a.unlockAll?e.t("guide.relock"):e.t("guide.unlockAll"),()=>e.setUnlockAll(!a.unlockAll)),i(e.t("guide.reminders"),()=>e.setReminders(!e.reminders()),e.reminders()),e.ctx.app?.spotlight&&i(e.t("guide.spotlight"),()=>e.setSpotlight(!e.spotlightOn()),e.spotlightOn()),e.ctx.app?.runCommand&&i(e.t("guide.openAchievements"),()=>{e.ctx.app?.runCommand?.("open-achievements")})]})]})}function Sp({g:e}){Ba(e),J(()=>{e.ctx.achievements?.track("guide.open")},[e]);let t=e.selected(),o=e.env(),r=Wo(t,o),{intro:a,body:i}=e.markdown(t),s=r!=="locked",l=dn[dn.findIndex(c=>c.id===t.level)-1];return n($a,{g:e,kind:"reader",children:[n("div",{class:"fxg-bar",children:[n("span",{class:"fx-tag fxg-ro",children:e.t("guide.readOnly")}),n(cy,{g:e})]}),n("div",{class:"fxg-scroll",children:n("div",{class:"fxg-col",children:[n(kp,{g:e,value:`# ${e.title(t)}
|
|
1352
1355
|
|
|
1353
|
-
${a}`,label:e.title(t)}),s&&t.figure&&n(
|
|
1356
|
+
${a}`,label:e.title(t)}),s&&t.figure&&n(yp,{g:e,figure:t.figure}),s&&i&&n(kp,{g:e,value:i,label:e.title(t)}),r==="locked"&&l?n("div",{class:"fxg-lock","data-locked":!0,children:[n("div",{class:"fxg-lock-title",children:e.t("guide.locked.title")}),n("p",{children:e.t("guide.locked.body",{level:e.levelName(l.id)})}),n("p",{class:"fxg-muted",children:e.t("guide.locked.left")}),n("ul",{class:"fxg-tasks",children:Sn(l.id).flatMap(c=>_r(c.tasks,o).filter(d=>!Mn(d,o)).map(d=>n(zp,{g:e,task:d,chapter:c},d.id)))}),n("p",{class:"fxg-muted",children:e.t("guide.locked.hint")})]}):n("section",{class:"fxg-section","data-guide-tasks":!0,children:[n("h2",{children:e.t("guide.tasks")}),n(Os,{g:e,chapter:t})]})]})})]})}function dy({done:e,total:t}){return n("div",{class:"fxg-bar-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,children:n("i",{style:{width:`${t?Math.round(e/t*100):0}%`}})})}function wp({g:e,c:t}){let o=Wo(t,e.env());return n("button",{type:"button",class:`fxg-line is-${o}${e.selected().id===t.id?" is-active":""}`,onClick:()=>{e.select(t.id),e.ctx.openView?.(_n.reader)},children:[n(Ua,{on:o==="done"}),n("span",{children:e.title(t)}),o==="locked"&&n("span",{class:"fxg-task-state",children:e.t("guide.lockedHint")})]})}function uy({g:e}){let t=e.env(),o=Rs(t);if(!o)return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.t("guide.allDone")}),n("p",{class:"fxg-muted",children:e.t("guide.allDoneBody")}),n("div",{class:"fxg-sub",children:e.t("guide.review")}),Fa(e).map(({level:s,chapters:l})=>n("button",{type:"button",class:"fxg-line",onClick:()=>{e.select(l[0].id),e.ctx.openView?.(_n.reader)},children:[n(Ua,{on:!0}),n("span",{children:e.levelName(s)})]},s))]});let{done:r,total:a}=mp(o,t),i=dn[dn.findIndex(s=>s.id===o)+1];return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.levelName(o)}),n("div",{class:"fxg-muted",children:e.t("guide.levelProgress",{done:r,total:a})}),n(dy,{done:r,total:a}),n("div",{class:"fxg-lines",children:Sn(o).map(s=>n(wp,{g:e,c:s},s.id))}),i&&n(R,{children:[n("div",{class:"fxg-sub",children:e.t("guide.next")}),n("div",{class:"fxg-lines",children:Sn(i.id).map(s=>n(wp,{g:e,c:s},s.id))})]})]})}function _p(e,t){let{intro:o,body:r}=e.markdown(t);return`# ${e.title(t)}
|
|
1354
1357
|
|
|
1355
1358
|
${o}
|
|
1356
1359
|
|
|
1357
|
-
${r}`.trim()}function
|
|
1360
|
+
${r}`.trim()}function py({g:e}){let t=e.selected(),o=e.ctx.tangu?.mountChat;return o?n(fy,{g:e,c:t,mount:o},`${t.id}:${e.locale()}`):n(my,{g:e,c:t})}function fy({g:e,c:t,mount:o}){let r=oe(null);return J(()=>{let a=o(r.current,{title:e.t("guide.ask.chatTitle")});return a.quote(_p(e,t)),()=>a.dispose()},[]),n("div",{class:"fxg-chat",ref:r})}function my({g:e,c:t}){let[o,r]=_(""),[a,i]=_(""),s=e.ctx.tangu?.startChat,l=async()=>{if(!s)return;let c=`${e.t("guide.ask.prompt",{chapter:e.title(t),question:o.trim()})}
|
|
1358
1361
|
|
|
1359
1362
|
---
|
|
1360
|
-
${kp(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask.unavailable"))};return n("div",{class:"fxg-pane",children:[n("p",{class:"fxg-muted",children:e.t("guide.ask.hint",{chapter:e.title(t)})}),n("textarea",{class:"fxg-input",rows:4,value:o,placeholder:e.t("guide.ask.placeholder"),onInput:c=>r(c.target.value)}),n("button",{type:"button",class:"btn sm",disabled:!s,onClick:()=>void l(),children:e.t("guide.ask.send")}),(!s||a)&&n("p",{class:"fxg-muted",children:a||e.t("guide.ask.unavailable")})]})}function wp({g:e}){Na(e);let[t,o]=_("progress");return n(Oa,{g:e,kind:"side",children:[n("div",{class:"fxg-tabs",role:"tablist",children:["progress","ask"].map(r=>n("button",{type:"button",role:"tab","aria-selected":t===r,class:t===r?"is-on":"",onClick:()=>o(r),children:e.t(r==="progress"?"guide.progress":"guide.askTangu")},r))}),t==="progress"?n(iy,{g:e}):n(sy,{g:e})]})}function zp({g:e}){Na(e);let t=e.companionChapter(),o=Wo(t,e.env())==="done",r=ne(o);return J(()=>{if(o&&!r.current){let a=window.setTimeout(()=>e.ctx.closeView?.(_n.companion),1500);return()=>window.clearTimeout(a)}r.current=o},[o]),n(Oa,{g:e,kind:"companion",children:n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-companion-head",children:[n("span",{class:"fxg-sub",children:e.t("guide.title")}),e.ctx.closeView&&n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.companion.close"),onClick:()=>e.ctx.closeView?.(_n.companion),children:"\xD7"})]}),n("div",{class:"fxg-h",children:e.title(t)}),n("div",{class:"fxg-sub",children:e.t("guide.tasks")}),n(Ls,{g:e,chapter:t}),n("button",{type:"button",class:"fx-link fxg-back",onClick:()=>void e.openGuide(t.id),children:e.t("guide.companion.back")})]})})}function Sp({g:e,letter:t}){Na(e);let o=t?t.kind==="level"?t.level:"new":null,r=o&&(o==="new"||La(o,e.env()))?Sn(o):[];return n(Oa,{g:e,kind:"letter",children:[r.map(a=>n("div",{class:"fxg-letter-chapter",children:[n("button",{type:"button",class:"fxg-letter-title",onClick:()=>void e.openGuide(a.id),children:e.title(a)}),n(Ls,{g:e,chapter:a})]},a.id)),n("button",{type:"button",class:"btn sm",onClick:()=>void e.openGuide(r[0]?.id??to("welcome")?.id),children:e.t("guide.letter.open")})]})}function dy(e){return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.achievements?.count=="function"&&typeof e.achievements.subscribe=="function"&&typeof e.app?.openSpace=="function"&&typeof e.ui?.mountMarkdownEditor=="function"}function _p(e,t=window){if(!dy(e)||t.tangu?.unitPage)return null;let o=t.tangu,r=fp(e,{desktop:typeof o?.appVersion=="function"&&!o.mobile,appVersion:typeof o?.appVersion=="function"?o.appVersion().catch(()=>null):Promise.resolve(null)}),a=i=>s=>(Le(n(i,{g:r}),s),()=>{Le(null,s)});return e.registerView({id:_n.reader,title:r.t("guide.title"),icon:"page",workspaceSource:Rs,mount:a(xp)}),e.registerView({id:_n.side,title:r.t("guide.progress"),icon:"list-view",mount:a(wp)}),e.registerView({id:_n.companion,title:r.t("guide.title"),icon:"todo",mount:a(zp)}),e.registerListSource({id:Rs,title:r.t("guide.title"),search:!0,items:i=>{let s=r.env(),l=i?.query?.trim().toLowerCase()??"",c=r.justUnlocked();return Da(r).flatMap(({level:d,chapters:f})=>f.map(u=>{let p=Wo(u,s);return{key:u.id,title:r.title(u),group:r.levelName(d),icon:p==="done"?"circle-check":p==="locked"?"lock":"circle",hint:d===c&&p!=="locked"?r.t("guide.justUnlocked"):void 0}})).filter(d=>!l||d.title.toLowerCase().includes(l))},subscribe:i=>r.subscribe(i),activeKey:()=>r.selected().id,open:i=>{r.select(i.key),e.openView(_n.reader)}}),e.registerCommand?.({id:"open-guide",title:()=>r.t("guide.cmd.open"),keywords:"guide manual help tutorial levels \u4F7F\u7528\u6307\u5357 \u8BF4\u660E\u4E66 \u6559\u7A0B \u5E2E\u52A9 \u7B49\u7EA7 \u4EFB\u52A1",run:()=>{r.openGuide()}}),e.inbox?.registerCard({sender:()=>r.t("guide.title"),mount(i,s){return Le(n(Sp,{g:r,letter:r.letter(s.id)}),i),()=>{Le(null,i)}}}),r}var uy=["uploads","ama","sync","agents","profile","apps","plugins","exports","market"],Cr={uploads:"penzor.uploads",ama:"penzor.ledger.ama",sync:"penzor.ledger.sync",agents:"penzor.source.agents",profile:"penzor.source.profile",apps:"penzor.ledger.apps",plugins:"penzor.source.plugins",exports:"penzor.ledger.exports",market:"penzor.source.market"},Ds=e=>e==="uploads"?"app:penzor":e==="exports"?"exports":`source:${e}`,Ns=e=>{let t=e?.sources.find(o=>o.id==="market");return t?.status==="ready"&&((t.fileCount??0)>0||(t.liveBytes??0)>0)},no=e=>Number.isFinite(Number(e))?Number(e):0,Cn="penzor";var Ap=500;async function py(e,t){let o=Math.min(20,no(t.totalPages));if(o<=1)return t.files;let r=await Promise.all(Array.from({length:o-1},(a,i)=>e(`/exports/list?pageSize=${Ap}&sortBy=date&sortOrder=desc&page=${i+2}`)));return[...t.files,...r.flatMap(a=>a.ok&&Array.isArray(a.data?.files)?a.data.files:[])]}async function Tp(e){let[t,o,r,a,i,s,l,c,d]=await Promise.all([e("/remotesync/vaults"),e("/amadeus/vaults"),e("/storage/quota"),e("/storage/files-by-app"),e(`/exports/list?pageSize=${Ap}&sortBy=date&sortOrder=desc`),e("/trash?all=1"),e("/storage/ledger"),e("/storage/source-trash/ama"),e("/remotesync/content/devices")]),u=[t,o,r,a,i,s].every(m=>!m.ok&&m.status===401);return{snap:{contentDevices:d.ok&&Array.isArray(d.data?.devices)?d.data.devices:null,amaTrash:c.ok&&Array.isArray(c.data?.entries)?c.data.entries:null,ledger:l.ok&&l.data?.schemaVersion===1?l.data:null,sync:t.ok&&Array.isArray(t.data?.vaults)?{...t.data,vaults:t.data.vaults.filter(m=>m.vault!=="forsion-content")}:null,ama:o.ok&&Array.isArray(o.data?.vaults)?o.data.vaults.filter(m=>(m.role??"owner")==="owner").map(m=>({id:m.id,name:m.name,sizeBytes:no(m.sizeBytes)})):null,apps:r.ok&&a.ok&&Array.isArray(a.data?.apps)?{used:no(r.data?.used),quota:no(r.data?.quota),apps:a.data.apps,largest:a.data.largest??[]}:null,exports:i.ok&&Array.isArray(i.data?.files)?{files:await py(e,i.data),total:no(i.data.total),totalBytes:no(i.data.totalBytes)}:null,trash:s.ok&&Array.isArray(s.data)?s.data:null,at:Date.now()},signedOut:u}}var fy={"ai-studio":"AI Studio","photo-studio":"Photo Studio",notebase:"Notebase",chat:"Forsion Chat",connect:"Forsion Connect","video-studio":"Video Studio",bluebird:"Bluebird",cnti:"CNTI"},Os=e=>e?fy[e]??e.split(/[-_]/).filter(Boolean).map(t=>t[0].toUpperCase()+t.slice(1)).join(" "):"\u2014",zo=e=>e.kind==="content"?`content:${e.namespace}`:e.kind==="source"?`source:${e.source}`:e.kind==="sync"?`sync:${e.vault}`:e.kind==="ama"?`ama:${e.vaultId}`:e.kind==="app"?`app:${e.appId}`:e.kind==="overview"?"ov":e.kind,So=e=>e.kind==="overview"||e.kind==="sync-home";function Ep(e){if(e==="ov")return{kind:"overview"};if(e==="sync-home"||e==="exports"||e==="trash")return{kind:e};let t=e.indexOf(":"),o=t<0?e:e.slice(0,t),r=t<0?"":e.slice(t+1);return r?o==="source"&&uy.includes(r)?{kind:"source",source:r}:o==="content"&&/^(default|device-[A-Za-z0-9_-]{1,64})$/.test(r)?{kind:"content",namespace:r}:o==="sync"?{kind:"sync",vault:r}:o==="ama"?{kind:"ama",vaultId:r}:o==="app"?{kind:"app",appId:r}:null:null}var Fs=(e,t)=>t?t.config.enabled||t.config.revision>0:!!e?.contentDevices?.length;function Pp(e,t,o,r=null){let a=m=>we(o,Cr[m]),i=m=>_r(m,o),s=m=>{let g=e?.ledger?.sources.find(h=>h.id===m);return g?.status==="ready"?g.liveBytes+g.trashBytes:null},l=m=>{let g=s(m);return g==null?"\u2014":`${e?.ledgerStale?"~ ":""}${i(g)}`},c=Fs(e,r),d=[{key:"drive-root",title:t.drive,kind:"folder",icon:t.driveIcon},{key:"ov",title:t.overview,parent:"drive-root",icon:"layout"},{key:Ds("uploads"),title:t.files,parent:"drive-root",icon:"folder",hint:l("uploads")}];if(Ns(e?.ledger)&&d.push({key:Ds("market"),title:a("market"),parent:"drive-root",icon:"boxes",hint:l("market")}),c&&e?.contentDevices){d.push({key:"synced",title:t.synced,kind:"folder",icon:"cloud"},{key:"content:default",title:t.all,parent:"synced",icon:"cloud"});let m=r?.deviceId;m&&d.push({key:`content:device-${m}`,title:t.thisBackup,parent:"synced",icon:"lock"});for(let g of e.contentDevices.filter(h=>h.id!==m))d.push({key:`content:device-${g.id}`,title:g.name||`Forsion-${g.id.slice(0,8)}`,parent:"synced",icon:"link"})}let f=["ama","apps","plugins","exports",...c?[]:["agents","profile"]],u=f.reduce((m,g)=>m==null||s(g)==null?null:m+s(g),0);d.push({key:"by-app",title:t.byApp,kind:"folder",icon:"package",hint:u==null?"\u2014":i(u)});let p=(m,g,h=a(m))=>{let y=m==="ama"||m==="sync"||m==="apps",b=Ds(m);if(d.push({key:y?b+":group":b,parent:g,title:h,icon:m==="sync"?"clock":"folder",...y?{kind:"folder"}:{},hint:l(m)}),y&&d.push({key:`source:${m}`,parent:b+":group",title:t.overview,icon:"layout"}),m==="sync")for(let w of e?.sync?.vaults??[])d.push({key:`sync:${w.vault}`,parent:b+":group",title:w.vault,icon:"database",hint:i(w.bytes)});if(m==="ama")for(let w of e?.ama??[])d.push({key:`ama:${w.id}`,parent:b+":group",title:w.name,icon:"page",hint:i(w.sizeBytes)});if(m==="apps")for(let w of e?.apps?.apps.filter(k=>k.appId!==Cn&&k.files>0)??[])d.push({key:`app:${w.appId}`,parent:b+":group",title:Os(w.appId),icon:"archive",hint:i(w.bytes)})};for(let m of f)p(m,"by-app");return p("sync","",c?t.legacy:a("sync")),d.push({key:"trash",title:t.trash,icon:"trash",hint:e?.trash?t.items(Bs(e.trash).length):"\u2014"}),d.map(m=>m.parent===""?(({parent:g,...h})=>h)(m):m)}function Bs(e){let t=new Map(e.map(a=>[a.id,a])),o=a=>{let i=a;for(let s=0;s<64&&i.parentId&&t.has(i.parentId);s++)i=t.get(i.parentId);return i},r=new Map;for(let a of e){let i=o(a),s=r.get(i.id)??{inner:0,innerBytes:0};i.id!==a.id&&s.inner++,s.innerBytes+=no(a.fileSize),r.set(i.id,s)}return e.filter(a=>!(a.parentId&&t.has(a.parentId))).map(a=>({...a,...r.get(a.id)}))}function $s(e,t){let o=t?`${t}/`:"",r=new Map,a=[];for(let i of e){if(o&&!i.path.startsWith(o))continue;let s=i.path.slice(o.length),l=s.indexOf("/");if(l<0){a.push({key:i.path,name:s,dir:!1,size:i.size,mtime:i.mtime,col4:i.who??null,ref:i.ref});continue}let c=s.slice(0,l),d=o+c,f=r.get(d)??{key:d,name:c,dir:!0,size:0,mtime:null,count:0};f.size+=i.size,f.count=(f.count??0)+1,i.mtime!=null&&(f.mtime==null||i.mtime>f.mtime)&&(f.mtime=i.mtime),r.set(d,f)}return[...Ba([...r.values()]),...Ba(a)]}var Ba=e=>e.sort((t,o)=>(o.mtime??-1)-(t.mtime??-1)||t.name.localeCompare(o.name)),Mp=e=>[...Ba(e.filter(t=>t.dir)),...Ba(e.filter(t=>!t.dir))];function _r(e,t){let o=Math.max(0,no(e));if(o<1024)return`${o} B`;if(o<1024*1024)return`${Math.round(o/1024)} KB`;if(o<1024**3){let r=o/1048576;return`${r<100?Number(r.toFixed(1)):Math.round(r)} MB`}return`${Number((o/1024**3).toFixed(2))} GB`}function Us(e,t,o){let r=_r(e,o),a=_r(t,o),i=a.slice(a.indexOf(" "));return`${r.endsWith(i)?r.slice(0,-i.length):r} / ${a}`}var my=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Cp=e=>String(e).padStart(2,"0");function Jt(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=new Date(e),a=new Date(o);a.setHours(0,0,0,0);let i=new Date(r);i.setHours(0,0,0,0);let s=Math.round((a.getTime()-i.getTime())/864e5),l=`${Cp(r.getHours())}:${Cp(r.getMinutes())}`;if(s===0)return t==="zh"?`\u4ECA\u5929 ${l}`:`Today ${l}`;if(s===1)return t==="zh"?`\u6628\u5929 ${l}`:`Yesterday ${l}`;let c=r.getFullYear()===a.getFullYear();return t==="zh"?`${c?"":`${r.getFullYear()} \u5E74 `}${r.getMonth()+1} \u6708 ${r.getDate()} \u65E5`:`${my[r.getMonth()]} ${r.getDate()}${c?"":`, ${r.getFullYear()}`}`}function _o(e){if(e==null||e==="")return null;if(typeof e=="number")return e<1e12?e*1e3:e;let t=Number(e);if(Number.isFinite(t))return t<1e12?t*1e3:t;let o=Date.parse(String(e));return Number.isNaN(o)?null:o}var $a=e=>[e.notes.on&&!e.notes.pending,e.agents.on,e.plugins.on].filter(Boolean).length;function Ar(e){let t=e.notes.last;return!!t&&t.ok===!1&&!(t.errors.length>0&&t.errors.every(o=>o.includes("already-running")))}var Ua=e=>!!e&&e.signedIn&&(!!e.notes.pending||e.notes.on&&Ar(e)),gy=e=>/"code"\s*:\s*"QUOTA"/.test(e),Ip=(e,t)=>e.notes.on&&!e.notes.pending&&e.notes.backend==="penzor"&&(t>0&&(e.notes.localBytes??0)>t||!!e.notes.last?.errors.some(gy));function Co(e){if(!e?.notes.running)return null;let t=e.notes.progress;return t&&t.total>0?Math.min(1,Math.max(0,t.done/t.total)):0}function Rp(e,t){if(!e||!e.signedIn)return;let o=Co(e);if(o!=null)return o>0?we(t,"penzor.sync.running",{pct:Math.round(o*100)}):we(t,"penzor.sync.runningPlain");if(e.notes.pending)return we(t,"penzor.sync.waiting");let r=$a(e);return r?we(t,"penzor.sync.onN",{n:r}):we(t,"penzor.sync.allOff")}var Tr=e=>e.jobs.filter(t=>t.state==="failed"&&!e.jobs.some(o=>o.path===t.path&&o.at>t.at&&o.state==="done"));function An(e){if(!e.config.enabled)return{kind:"off"};if(e.paused)return{kind:"paused"};let t=e.jobs.filter(a=>a.state==="queued"||a.state==="active");if(t.length){let a=t.reduce((s,l)=>s+(l.size??0),0),i=t.reduce((s,l)=>s+l.done,0);return{kind:"run",pct:a>0?Math.min(99,Math.round(i/a*100)):0}}if(e.phase==="scanning"||e.phase==="syncing")return{kind:"scan"};let o=Tr(e).length+(e.error?1:0);if(o)return{kind:"warn",n:o};let r=e.jobs.filter(a=>a.state==="done").map(a=>a.finishedAt??a.at);return{kind:"ok",at:r.length?Math.max(...r):null}}function Lp(e,t){return e.kind==="off"?we(t,"penzor.cs.statusOff"):e.kind==="paused"?we(t,"penzor.cs.statusPaused"):e.kind==="run"?`${e.pct}%`:e.kind==="scan"?we(t,"penzor.sync.runningPlain"):e.kind==="warn"?we(t,"penzor.cs.statusWarn",{n:e.n}):we(t,"penzor.cs.statusOk")}function Dp(e,t){let o=$a(e);return e.notes.pending?we(t,"penzor.sync.badgeWaiting",{n:o}):o?we(t,"penzor.sync.onN",{n:o}):we(t,"penzor.sync.allOff")}function Hs(e,t){let o=Math.max(0,Math.round(e.intervalMin)),r=o?o%60===0?we(t,"penzor.sync.everyHours",{n:o/60}):we(t,"penzor.sync.every",{n:o}):we(t,"penzor.sync.manual");return e.syncOnStart?`${r} \xB7 ${we(t,"penzor.sync.onStart")}`:r}function Tn(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=Math.max(0,o-e);return r<6e4?we(t,"penzor.justNow"):r<36e5?we(t,"penzor.sync.minAgo",{n:Math.floor(r/6e4)}):r<6*36e5?we(t,"penzor.sync.hoursAgo",{n:Math.floor(r/36e5)}):Jt(e,t,o)}function Ha(e,t=!1){return t?"folder":/\.(png|jpe?g|gif|webp|heic|dng|svg|bmp|tiff?)$/i.test(e)?"image":/\.(md|txt|pdf|docx?|rtf)$/i.test(e)?"page":/\.db$/i.test(e)?"database":"attachment"}function Op(e,t){let o=null;for(let r of t)(!r.source||e===r.source||e.startsWith(r.source+"/"))&&(!o||r.source.length>o.source.length)&&(o=r);return o}var qt={get:"penzor:sync:get",preview:"penzor:sync:preview",apply:"penzor:sync:apply",run:"penzor:sync:run",pause:"penzor:sync:pause",retry:"penzor:sync:retry",rename:"penzor:sync:rename",setup:"penzor:sync:setup",archiveSeen:"penzor:sync:archiveSeen"};var Np=e=>String(e??"").normalize("NFC").trim().replace(/\s+/g," ").toLowerCase(),qs=(e,t,o)=>{let r=Np(e);return r?/[\[\]]/.test(e)||e.trim().length>64?"invalid":r==="macos"||r==="windows"||r==="linux"?"reserved":t.some(a=>a.id!==o&&Np(a.name)===r)?"taken":null:null};var hn="forsion-penzor",Rn={main:"penzor",info:"penzor-info"},Vs="penzor-places",Ws="forsion-extend.penzor.ready",Fp="forsion-extend.penzor.focus",qa=e=>e.state==="active"||e.state==="queued",Jo=e=>e.ok?"":e.detail||e.code||e.transport||(e.status?`HTTP ${e.status}`:"offline"),hy=e=>e.slice(e.lastIndexOf("/")+1);function Bp(e,t={}){let o=t.api??G,r=new Set,a=()=>{for(let x of[...r])try{x()}catch(T){console.error("[penzor] listener failed",T)}},i=()=>Oe(e.getLocale?.()),s=(x,T)=>we(i(),x,T),l=x=>_r(x,i()),c=x=>e.app?.notify?.(x),d=x=>c(s("penzor.toast.failed",{reason:typeof x=="string"?x:Jo(x)})),f="unknown",u=!1,p=null,m=null,g={kind:"overview"},h="",y=[],b=null,w=null,k=null,z="mtime",P="",F=null,$={kind:"view"},O=!1,K=null,C=null,D=0,U=0,M=0,Z=t.device??null,S=new Map,A=new Set,I=null,j=null,ee=[],H=[],re="hidden",he=0,qe=!1,me=0,De=!1,Qe=null,ve=!1,Ye=null,Rt=new Map,W=null,pe=!Q().mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,ke=new Map,Ie=new Set,ge=!1,ot=!1,Ce=1e4,pt=4e3,rt=x=>{let T=z==="size"?(R,ae)=>ae.size-R.size:z==="name"?(R,ae)=>R.name.localeCompare(ae.name):null;return T?[...x.filter(R=>R.dir).sort(T),...x.filter(R=>!R.dir).sort(T)]:Mp([...x])};async function un(){let x=++D,T=g;if(w=null,T.kind==="overview"||T.kind==="sync-home"){b=null;return}if(T.kind==="exports"){b=(m?.exports?.files??[]).map(Y=>({key:Y.fileId,name:Y.fileName,dir:!1,size:Y.size,mtime:_o(Y.createdAt),col4:at(Y.appId),ref:Y}));return}if(T.kind==="trash"){b=Bs(m?.trash??[]).map(Y=>({key:Y.id,name:Y.name,dir:Y.fileType==="directory",size:Y.fileType==="directory"?Y.innerBytes:Y.fileSize,mtime:_o(Y.deletedAt),col4:Y.parentName?`${at(Y.appId)} / ${Y.parentName}`:at(Y.appId),count:Y.fileType==="directory"?Y.inner:void 0,ref:Y}));return}if(b=null,a(),T.kind==="content"){let Y=await o(`/remotesync/content/${encodeURIComponent(T.namespace)}`);if(x!==D)return;if(!Y.ok){w=Jo(Y),a();return}if(Y.data.schemaVersion!==1||!Array.isArray(Y.data.nodes)){w=s("penzor.unreachable");return}let ye=Y.data.nodes.filter(Ne=>!Ne.deleted),Pe=ye.filter(Ne=>Ne.kind==="file"&&Ne.version).map(Ne=>({path:Ne.path,size:Ne.size??0,mtime:Ne.mtime??null,ref:Ne}));S.set(zo(T),Pe);let de=Ne=>{let Fr=0,ao=null,Mo=0;for(let Wn of Pe)Wn.path.startsWith(Ne+"/")&&(Fr+=Wn.size,Mo++,Wn.mtime!=null&&(ao==null||Wn.mtime>ao)&&(ao=Wn.mtime));return{size:Fr,mtime:ao,count:Mo}};b=ye.filter(Ne=>(Ne.path.includes("/")?Ne.path.slice(0,Ne.path.lastIndexOf("/")):"")===h).map(Ne=>Ne.kind==="folder"?{key:Ne.path,name:Ne.name,dir:!0,...de(Ne.path),ref:Ne}:{key:Ne.path,name:Ne.name,dir:!1,size:Ne.size??0,mtime:Ne.mtime??null,ref:Ne});return}if(T.kind==="sync"||T.kind==="ama"){let Y=zo(T),ye=S.get(Y);if(!ye){if(T.kind==="sync"){let Pe=await o(`/remotesync/vaults/${encodeURIComponent(T.vault)}/manifest`);if(x!==D)return;if(!Pe.ok){w=Jo(Pe),a();return}ye=Pe.data.files.map(de=>({path:de.path,size:de.size,mtime:_o(de.mtimeMs),who:de.device??null,ref:de}))}else{let Pe=await o(`/amadeus/vaults/${encodeURIComponent(T.vaultId)}/tree`);if(x!==D)return;if(!Pe.ok){w=Jo(Pe),a();return}ye=(Pe.data.entries??[]).map(de=>({path:de.path,size:de.size,mtime:_o(de.updatedAt),ref:de}))}S.set(Y,ye)}b=$s(ye,h);return}if(T.kind==="source"){let Y=(Pe,de,Ne)=>({key:Pe,name:de,size:Ne,dir:!0,mtime:null,ref:{go:Pe}});if(T.source==="sync"||T.source==="ama"||T.source==="apps"){if(!(T.source==="sync"?m?.sync:T.source==="ama"?m?.ama:m?.apps)){w=s("penzor.unreachable");return}b=T.source==="sync"?(m?.sync?.vaults??[]).map(de=>Y(`sync:${de.vault}`,de.vault,de.bytes)):T.source==="ama"?(m?.ama??[]).map(de=>Y(`ama:${de.id}`,de.name,de.sizeBytes)):(m?.apps?.apps??[]).filter(de=>de.appId!==Cn&&de.files>0).map(de=>Y(`app:${de.appId}`,at(de.appId),de.bytes));return}let ye=await o(`/storage/source-files/${T.source}`);if(x!==D)return;if(!ye.ok){w=Jo(ye),a();return}b=T.source==="market"?ye.data.entries.map(Pe=>({key:Pe.slug??Pe.path,name:Pe.path,dir:!1,size:Pe.size,mtime:Pe.mtime,ref:Pe})):$s(ye.data.entries.map(Pe=>({...Pe,ref:Pe})),h);return}let R=y[y.length-1]?.id,ae=await o(`/files${R?`?parentId=${encodeURIComponent(R)}`:""}`,{projectSource:T.appId});if(x===D){if(!ae.ok){w=Jo(ae),a();return}b=ae.data.map(Y=>({key:Y.id,name:Y.displayName||Y.name,dir:Y.fileType==="directory",size:Number(Y.fileSize)||0,mtime:_o(Y.updatedAt),managed:Y.managed===!0||Y.archive==="item",...Y.archive?{archive:Y.archive}:{},ref:Y}))}}let Kt=()=>{if(!b)return null;let x=P.trim().toLowerCase(),T=x?b.filter(R=>R.name.toLowerCase().includes(x)):b;return rt(T)},Yt=()=>{let x=Kt()??[],T=new Set(x.map(R=>R.key));if(A=new Set([...A].filter(R=>T.has(R))),k&&T.has(k)){A.add(k);return}k=(x.find(R=>!R.dir)??x[0])?.key??null,A=new Set(k?[k]:[]),I=k,Ge()},zt=()=>{k=null,A=new Set,I=null,j=null},at=x=>x===Cn?s("penzor.uploads"):Os(x),Vt=()=>g.kind==="app"&&g.appId===Cn&&!y.some(x=>x.archive),en=x=>!!m?.apps&&m.apps.apps.find(T=>T.appId===x)?.canManage!==!1,ft=()=>g.kind==="app"&&en(g.appId),et=x=>g.kind==="trash"?en(x.ref.appId):ft()&&!x.managed,Ot=()=>!!m?.apps&&!!m.trash?.length&&m.trash.every(x=>en(x.appId)),pn=()=>g.kind==="app"||g.kind==="sync"||g.kind==="ama"||g.kind==="content",yt=()=>g.kind==="app"?y[y.length-1]?.id??"ROOT":"ROOT",bn=()=>(Kt()??[]).filter(x=>A.has(x.key)),it=(x,T)=>{let R=Q().cloudInvoke;return R?R(x,T).catch(ae=>({ok:!1,error:String(ae?.message||ae)})):Promise.resolve({ok:!1,error:"no_bridge"})};function Tt(x=500){Qe||ve||(Qe=setTimeout(()=>{Qe=null,ce()},x))}async function ce(){let x=U,T=await it("penzor:transfers");if(x!==U||ve)return;let R=new Map(ee.map(de=>[de.id,de.state]));T?.ok&&Array.isArray(T.items)&&(ee=T.items);let ae=Date.now(),Y=ee.some(qa);ee.some(de=>de.kind==="up"&&de.state==="done"&&R.get(de.id)!=="done")&&(W&&clearTimeout(W),W=setTimeout(()=>{W=null,st()},300)),Y?(Ye==null&&(Ye=ae),me=0,re==="hidden"&&(re="open",he=ae),re==="open"&&!qe&&ae-he>Ce&&(re="pill")):Ye!=null&&(Ze(Ye),Ye=null);let ye=ee.some(de=>de.state==="failed")||H.length>0,Pe=ee.some(de=>de.state==="paused");!Y&&!Pe&&ee.length&&!ye&&re!=="hidden"&&(me?ae-me>pt&&!qe&&(re="hidden",me=0,dt.txClear("finished")):(me=ae,re==="pill"&&(re="open"))),!Y&&ye&&re==="pill"&&(re="open"),!ee.length&&!H.length&&(re="hidden"),je(),a(),(Y||re!=="hidden"&&me)&&Tt()}function Ze(x){let T=ee.filter(ye=>(ye.finishedAt??0)>=x),R=T.filter(ye=>ye.kind==="up"&&ye.state==="done"),ae=T.filter(ye=>ye.kind==="down"&&ye.state==="done"),Y=T.filter(ye=>ye.state==="failed");De||(Y.length?c(s("penzor.toast.txFailed",{n:Y.length})):R.length?c(R.length===1?s("penzor.toast.upDoneOne",{name:R[0].name}):s("penzor.toast.upDoneMany",{n:R.length})):ae.length&&c(ae.length===1?s("penzor.toast.downloaded",{name:ae[0].name}):s("penzor.toast.downDoneMany",{n:ae.length})))}function je(){let x=ee.filter(qa),T=x.reduce((ae,Y)=>ae+Math.max(Y.size,Y.done),0),R=x.length?T>0?Math.min(1,x.reduce((ae,Y)=>ae+Y.done,0)/T):0:null;e.app?.setSpaceProgress?.(hn,R??Co(pe?.get()??null))}function tn(){if(!pe)return;let x=Ua(pe.get());x!==ot&&(ot=x,e.app?.setSpaceDot?.(hn,x))}function ct(){pe?.get()?.notes.pending||(ge=!1),je(),tn(),a()}let N=()=>{let x=pe?.get()??null;if(!x||!ke.size)return x;let T=(R,ae)=>ke.has(R)?{...ae,on:ke.get(R)}:ae;return{...x,notes:T("notes",x.notes),agents:T("agents",x.agents),plugins:T("plugins",x.plugins)}},le=async x=>{try{return await x()??{ok:!1}}catch(T){return{ok:!1,error:String(T?.message||T)}}},Se=()=>{re="open",he=Date.now(),me=0};async function Ge(){K=null;let x=Ft();if(g.kind!=="app"||!x||x.dir){a();return}let T=x.key,R=await o(`/files/${encodeURIComponent(T)}/versions`);k===T&&(K=R.ok&&Array.isArray(R.data)?R.data.map(ae=>({versionNumber:ae.versionNumber,fileSize:Number(ae.fileSize)||0,createdAt:_o(ae.createdAt)})):[],a())}let Ft=()=>k?(b??[]).find(x=>x.key===k)??null:null;async function xt(){await un(),Yt(),a()}async function st(){let x=++M;u=!0,p=null,a();let T=await Q().authStatus?.().catch(()=>null);if(x!==M)return;if(T&&!T.loggedIn){f="out",m=null,u=!1,a();return}let{snap:R,signedOut:ae}=await Tp(o);if(x===M){if(u=!1,ae){f="out",m=null,a();return}f="in",!R.ledger&&m?.ledger&&(R.ledger=m.ledger,R.ledgerStale=!0),m=R,S.clear(),p=!R.ledger&&!R.sync&&!R.ama&&!R.apps&&!R.exports&&!R.trash?s("penzor.unreachable"):null,!So(g)&&g.kind!=="exports"&&g.kind!=="trash"&&g.kind!=="source"&&((g.kind==="content"?R.contentDevices!=null:g.kind==="sync"?R.sync?.vaults.some(ye=>ye.vault===g.vault):g.kind==="ama"?R.ama?.some(ye=>ye.id===g.vaultId):g.appId===Cn?R.apps:R.apps?.apps.some(ye=>ye.appId===g.appId&&ye.files>0))||(g={kind:"overview"},h="",y=[],zt())),await xt()}}async function vn(x,T={},R=g){let ae=R.kind==="content"?{path:`/remotesync/content/${encodeURIComponent(R.namespace)}/nodes/${encodeURIComponent(x.ref.id)}/content`,mode:"bytes"}:R.kind==="sync"?{path:`/remotesync/vaults/${encodeURIComponent(R.vault)}/file?path=${encodeURIComponent(x.key)}`,mode:"signed"}:R.kind==="ama"?x.ref.kind==="binary"?{path:`/amadeus/vaults/${encodeURIComponent(R.vaultId)}/asset?ref=${encodeURIComponent(x.key)}`,mode:"bytes"}:{path:`/amadeus/vaults/${encodeURIComponent(R.vaultId)}/file?path=${encodeURIComponent(x.key)}`,mode:"text"}:R.kind==="app"?{path:`/files/${encodeURIComponent(x.key)}/content`,mode:"bytes"}:R.kind==="source"&&x.ref?.downloadPath?{path:x.ref.downloadPath,mode:"bytes"}:R.kind==="exports"?{path:`/exports/${encodeURIComponent(x.key)}/url`,mode:"signed"}:null;if(!ae)return;let Y=await it("penzor:download",{...ae,name:hy(x.name),size:x.size,...T});if(!Y?.ok){d(Y?.error||"download");return}Se(),Tt(0),a()}let Te=()=>{So(g)?e.closeView?.(Rn.info,{collapse:!0}):e.openView?.(Rn.info,{location:"right"})},dt={ctx:e,locale:i,t:s,b:l,subscribe(x){return r.add(x),()=>{r.delete(x)}},auth:()=>f,loading:()=>u,error:()=>p,snap:()=>m,loc:()=>g,path:()=>h,appStack:()=>y,rows:Kt,rowsError:()=>w,selected:Ft,sort:()=>z,query:()=>P,menu:()=>F,side:()=>$,confirmEmpty:()=>O,versions:()=>K,moveFolders:()=>C,thisDevice:()=>Z,setDevice(x){Z=x,a()},appLabel:at,canManageRow:et,canEmptyTrash:Ot,canManage:ft,canWrite:Vt,canMulti:pn,folderId:yt,selection:bn,isSelected:x=>A.has(x),selectAll(){if(!pn())return;let x=Kt()??[];A=new Set(x.map(T=>T.key)),!k&&x[0]&&(k=x[0].key),F=null,a()},newFolder:()=>j,startNewFolder(){if(!Vt())return;let x=s("penzor.newFolder.default"),T=new Set((b??[]).filter(ae=>ae.dir).map(ae=>ae.name)),R=x;for(let ae=1;T.has(R)&&ae<1e3;ae++)R=`${x} (${ae})`;j=R,F=null,a()},cancelNewFolder(){j!=null&&(j=null,a())},async createFolder(x){let T=x.trim();if(j=null,!T||!Vt()){a();return}a();let R=await o("/files",{method:"POST",body:{type:"directory",parentId:yt(),name:T},projectSource:Cn});if(!R.ok){R.status===409?c(s("penzor.toast.folderExists",{name:T})):d(R);return}R.data?.id&&(k=R.data.id,A=new Set([R.data.id]),I=R.data.id),await xt()},transfers:()=>ee,notices:()=>H,async acknowledgeStorageNotice(){let x=m?.ledger?.rollout;if(!x||x.acknowledgedAt||m?.ledgerStale)return;let T=await o("/storage/notice/ack",{method:"POST",body:{revision:x.revision}});if(!T.ok){d(T);return}await st()},txRows(){if(!Vt())return[];let x=yt();return ee.filter(T=>T.kind==="up"&&T.projectSource===Cn&&T.parentId===x&&(qa(T)||T.state==="paused")).map(T=>({key:`tx:${T.id}`,id:T.id,name:T.name,size:T.size,done:T.done,state:T.state}))},card:()=>re,setCard(x){re=x,he=Date.now(),x!=="hidden"&&Tt(0),a()},holdCard(x){qe=x,he=Date.now(),x||Tt()},async upload(x,T){if(!Vt())return;let R=U,ae=T?.id??yt(),Y=T?[...y,T]:[...y],ye=await x;if(R!==U||ve||!ye.length)return;Rt.set(ae,Y);let Pe=await it("penzor:upload",{...typeof ye[0]=="string"?{paths:ye}:{files:ye},parentId:ae,projectSource:Cn});if(!(R!==U||ve)){if(Pe?.ok){Se(),Tt(0),a();return}if(Pe?.error==="quota"){H=[...H,{id:String(Date.now()),kind:"quota",short:Number(Pe.short)||0}],Se(),a();return}if(Pe?.error==="too_many"){c(s("penzor.err.too_many",{n:Number(Pe.max)||2e3}));return}Pe?.error!=="no_files"&&d(Pe?.error==="account_changed"?s("penzor.err.account_changed"):Pe?.error==="not_signed_in"?s("penzor.err.not_signed_in"):Pe?.error||"upload")}},async txOp(x,T){await it("penzor:transfer",{id:x,op:T}),he=Date.now(),await ce()},async txAll(x){let T=x==="pause"?R=>qa(R):x==="resume"?R=>R.state==="paused":R=>R.state==="failed"||R.state==="canceled";for(let R of ee.filter(T))await it("penzor:transfer",{id:R.id,op:x});x==="retry"&&(H=[]),he=Date.now(),await ce()},async txClear(x){await it("penzor:transfers:clear",{which:x}),x==="all"&&(H=[]),await ce()},dismissNotice(x){H=H.filter(T=>T.id!==x),!ee.length&&!H.length&&(re="hidden"),a()},locate(x){if(x.kind==="down"){x.localPath&&Q().revealHostPath?.(x.localPath);return}let T=Rt.get(x.targetId??"")??[];g={kind:"app",appId:Cn},y=T,h="",P="",$={kind:"view"},F=null,zt(),x.fileId&&x.parentId===x.targetId&&(k=x.fileId,A=new Set([x.fileId])),a(),e.app?.openSpace?.(hn).then(()=>{e.openView?.(Rn.main),Te()}),xt()},async downloadMany(x){let T=x.filter(de=>!de.dir);if(T.length<=1){T[0]&&await dt.download(T[0]);return}let R=new Date,ae=s("penzor.download.folder",{date:`${R.getFullYear()}-${String(R.getMonth()+1).padStart(2,"0")}-${String(R.getDate()).padStart(2,"0")}`}),Y=`${Date.now()}`,ye=g,Pe=U;for(let de of T){if(U!==Pe)break;await vn(de,{subdir:ae,batch:Y},ye)}},async trashMany(x){if(g.kind!=="app"||!x.length||!x.every(et))return;if(x.length===1){await dt.trash(x[0]);return}let T=await o("/files/batch/delete",{method:"POST",body:{ids:x.map(ae=>ae.key)},projectSource:g.appId});if(!T.ok){d(T);return}let R=(T.data?.results??[]).filter(ae=>ae.success===!1).length;c(R?s("penzor.toast.batchPartial",{n:R}):s("penzor.toast.trashedN",{n:x.length})),zt(),await st()},async moveMany(x,T){if(g.kind!=="app"||!x.length||!x.every(et))return;$={kind:"view"};let R=x.map(ye=>ye.key).filter(ye=>ye!==T.id),ae=await o("/files/batch/move",{method:"POST",body:{ids:R,parentId:T.id},projectSource:g.appId});if(!ae.ok){d(ae),a();return}let Y=(ae.data?.results??[]).filter(ye=>ye.success===!1).length;c(Y?s("penzor.toast.batchPartial",{n:Y}):s("penzor.toast.movedN",{n:R.length,name:T.name})),zt(),await st()},setVisible(x){De=x},picker:{},refresh:st,go(x){let T=Ep(x);if(!T)return;let R=zo(T)===zo(g);g=T,R||(h="",y=[],zt(),P="",$={kind:"view"},O=!1),F=null,a(),e.openView?.(Rn.main),Te(),xt()},openFolder(x){g={kind:"app",appId:Cn},y=x,h="",P="",$={kind:"view"},F=null,O=!1,zt(),a(),e.openView?.(Rn.main),Te(),xt()},openDir(x){if(!(!x.dir||g.kind==="exports"||g.kind==="trash")){if(g.kind==="source"&&x.ref?.go){dt.go(x.ref.go);return}g.kind==="app"?y=[...y,{id:x.key,name:x.name,...x.archive?{archive:!0}:{}}]:h=x.key,zt(),P="",$={kind:"view"},xt()}},up(x){if(g.kind==="app")y=y.slice(0,x??Math.max(0,y.length-1));else{let T=h?h.split("/"):[];h=T.slice(0,x??Math.max(0,T.length-1)).join("/")}zt(),$={kind:"view"},xt()},select(x,T){let R=Kt()??[];if(x&&T?.range&&pn()&&I&&R.some(ae=>ae.key===I)){let ae=R.findIndex(ye=>ye.key===I),Y=R.findIndex(ye=>ye.key===x.key);A=new Set(R.slice(Math.min(ae,Y),Math.max(ae,Y)+1).map(ye=>ye.key)),k=x.key}else x&&T?.toggle&&pn()?(A.has(x.key)&&A.size>1?(A.delete(x.key),k===x.key&&(k=[...A].pop()??null)):(A.add(x.key),k=x.key),I=x.key):(k=x?.key??null,A=new Set(k?[k]:[]),I=k);j=null,$={kind:"view"},F=null,x&&!So(g)&&e.openView?.(Rn.info,{location:"right"}),Ge(),a()},setSort(x){z=x,a()},setQuery(x){P=x,a()},openMenu(x,T,R){R&&!A.has(R.key)&&(k=R.key,A=new Set([R.key]),I=R.key,Ge()),F={x,y:T,row:R},$={kind:"view"},a()},closeMenu(){F&&(F=null,a())},setSide(x){$=x,F=null,x.kind==="move"&&(C=null,dt.moveBrowse(x.at)),e.openView?.(Rn.info,{location:"right"}),a()},setConfirmEmpty(x){O=x,a()},async download(x){x.dir||(F=null,await vn(x))},async trash(x){if(g.kind!=="app"||!et(x))return;let T=Kt()??[],R=T.findIndex(ye=>ye.key===x.key),ae=await o(`/files/${encodeURIComponent(x.key)}`,{method:"DELETE",projectSource:g.appId});if(!ae.ok){d(ae);return}c(s("penzor.toast.trashed",{name:x.name}));let Y=T[R+1]??T[R-1];k=Y&&Y.key!==x.key?Y.key:null,F=null,await st()},async restore(x){if(!m||g.kind!=="trash"||!et(x))return;let T=await o(`/trash/${encodeURIComponent(x.key)}/restore`,{method:"POST",body:{}});if(!T.ok){d(T);return}c(s("penzor.toast.restored",{name:x.name})),k=null,await st()},async purge(x){if(!m||g.kind!=="trash"||!et(x))return;let T=await o(`/trash/${encodeURIComponent(x.key)}`,{method:"DELETE"});if($={kind:"view"},!T.ok){d(T),a();return}c(s("penzor.toast.purged",{name:x.name})),k=null,await st()},async emptyTrash(){if(!m||!Ot())return;let x=await o("/trash?all=1",{method:"DELETE"});if(O=!1,!x.ok){d(x),a();return}let T=(x.data?.results??[]).filter(R=>R.success===!1).length;c(T?s("penzor.toast.emptyPartial",{n:T}):s("penzor.toast.emptied")),k=null,await st()},async rename(x,T){let R=T.trim();if($={kind:"view"},!R||R===x.name){a();return}let ae=g.kind==="exports"?await o(`/exports/${encodeURIComponent(x.key)}/rename`,{method:"PUT",body:{newFileName:R}}):g.kind==="app"&&et(x)?await o(`/files/${encodeURIComponent(x.key)}/rename`,{method:"PATCH",body:{name:R},projectSource:g.appId}):null;if(ae){if(!ae.ok){d(ae),a();return}c(s("penzor.toast.renamed",{name:R})),await st()}},moveBrowse(x){if(g.kind!=="app"||!ft())return;$={kind:"move",at:x},C=null,a();let T=x[x.length-1]?.id,R=g.appId;o(`/files${T?`?parentId=${encodeURIComponent(T)}`:""}`,{projectSource:R}).then(ae=>{$.kind!=="move"||$.at!==x||(C=ae.ok?ae.data.filter(Y=>Y.fileType==="directory").map(Y=>({id:Y.id,name:Y.name})):[],a())})},async moveTo(x,T){if(g.kind!=="app"||!et(x))return;if($={kind:"view"},T.id===x.key){a();return}let R=await o(`/files/${encodeURIComponent(x.key)}/move`,{method:"PATCH",body:{parentId:T.id},projectSource:g.appId});if(!R.ok){d(R),a();return}c(s("penzor.toast.moved",{name:T.name})),k=null,await st()},async restoreVersion(x,T){if(!et(x))return;let R=await o(`/files/${encodeURIComponent(x.key)}/restore/${T.versionNumber}`,{method:"POST",body:{}});if(!R.ok){d(R);return}c(s("penzor.toast.versionRestored",{n:T.versionNumber})),await st(),Ge()},async deleteExport(x){if(!m)return;let T=await o(`/exports/${encodeURIComponent(x.key)}`,{method:"DELETE"});if($={kind:"view"},!T.ok){d(T),a();return}c(s("penzor.toast.purged",{name:x.name})),k=null,await st()},signIn(){Q().forsionLogin?.()},openSync(){e.app?.openSettings?.("sync/s-remote")},async focusVault(x){await e.app?.openSpace?.(hn),m||await st(),dt.go(`sync:${x}`)},hasSync:()=>!!pe,content:()=>Bt,syncState:N,syncBusy:x=>Ie.has(x),async setSync(x,T){if(!pe||Ie.has(x))return;Ie.add(x),ke.set(x,T),a();let R=await le(()=>pe.set(x,T));Ie.delete(x),ke.delete(x),!ve&&(R.ok||d(R.error||"sync"),ct())},async resolveNotes(x){if(!pe||Ie.has("resolve"))return;Ie.add("resolve"),a();let T=await le(()=>pe.resolveNotes(x));Ie.delete("resolve"),ge=!1,!ve&&(T.ok||d(T.error||"sync"),ct())},confirmCloud:()=>ge,setConfirmCloud(x){ge=x,a()},enter(){},dispose(){ve=!0,clearInterval(fn),Qe&&clearTimeout(Qe),W&&clearTimeout(W),e.app?.setSpaceProgress?.(hn,null),ot&&e.app?.setSpaceDot?.(hn,!1),r.clear(),ro?.(),Or?.(),Xa?.()}},Bt=null,Ve="",Lt=async()=>{let x=Q().cloudInvoke;if(!x){clearInterval(fn);return}let T=await x(qt.get).catch(Y=>({ok:!1,error:String(Y)}));if(ve)return;!T?.ok&&/unavailable|not a Forsion Extend channel/i.test(T?.error??"")&&clearInterval(fn);let R=T?.ok&&T.value?.available?T.value:null,ae=R?JSON.stringify([An(R),R.config.enabled,R.deviceId,R.devices]):"";Bt=R,ae!==Ve&&(Ve=ae,a())},fn=setInterval(()=>void Lt(),5e3);Lt();let ro=e.subscribeLocale?.(()=>a()),Xa=pe?.subscribe(ct);tn(),ce();let Or=Q().onAuthChanged?.(()=>{++D,++M,++U,m=null,b=null,w=null,S.clear(),zt(),F=null,$={kind:"view"},O=!1,K=null,C=null,g={kind:"overview"},h="",y=[],P="",Rt.clear(),H=[],ee=[],re="hidden",Ye=null,me=0,W&&(clearTimeout(W),W=null),e.app?.setSpaceProgress?.(hn,null),ge=!1,ke.clear(),a(),st()});return dt}var $p=e=>e.kind==="content"?"penzor.source.readonly":e.kind==="sync"?"penzor.side.readonlySync":e.kind==="ama"?"penzor.side.readonlyAma":e.kind==="source"?e.source==="plugins"?"penzor.source.pluginNote":e.source==="market"?"penzor.source.marketNote":"penzor.source.readonly":null;var Up=`
|
|
1363
|
+
${_p(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask.unavailable"))};return n("div",{class:"fxg-pane",children:[n("p",{class:"fxg-muted",children:e.t("guide.ask.hint",{chapter:e.title(t)})}),n("textarea",{class:"fxg-input",rows:4,value:o,placeholder:e.t("guide.ask.placeholder"),onInput:c=>r(c.target.value)}),n("button",{type:"button",class:"btn sm",disabled:!s,onClick:()=>void l(),children:e.t("guide.ask.send")}),(!s||a)&&n("p",{class:"fxg-muted",children:a||e.t("guide.ask.unavailable")})]})}function Cp({g:e}){Ba(e);let[t,o]=_("progress");return n($a,{g:e,kind:"side",children:[n("div",{class:"fxg-tabs",role:"tablist",children:["progress","ask"].map(r=>n("button",{type:"button",role:"tab","aria-selected":t===r,class:t===r?"is-on":"",onClick:()=>o(r),children:e.t(r==="progress"?"guide.progress":"guide.askTangu")},r))}),t==="progress"?n(uy,{g:e}):n(py,{g:e})]})}function Ap({g:e}){Ba(e);let t=e.companionChapter(),o=Wo(t,e.env())==="done",r=oe(o);return J(()=>{if(o&&!r.current){let a=window.setTimeout(()=>e.ctx.closeView?.(_n.companion),1500);return()=>window.clearTimeout(a)}r.current=o},[o]),n($a,{g:e,kind:"companion",children:n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-companion-head",children:[n("span",{class:"fxg-sub",children:e.t("guide.title")}),e.ctx.closeView&&n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.companion.close"),onClick:()=>e.ctx.closeView?.(_n.companion),children:"\xD7"})]}),n("div",{class:"fxg-h",children:e.title(t)}),n("div",{class:"fxg-sub",children:e.t("guide.tasks")}),n(Os,{g:e,chapter:t}),n("button",{type:"button",class:"fx-link fxg-back",onClick:()=>void e.openGuide(t.id),children:e.t("guide.companion.back")})]})})}function Tp({g:e,letter:t}){Ba(e);let o=t?t.kind==="level"?t.level:"new":null,r=o&&(o==="new"||Oa(o,e.env()))?Sn(o):[];return n($a,{g:e,kind:"letter",children:[r.map(a=>n("div",{class:"fxg-letter-chapter",children:[n("button",{type:"button",class:"fxg-letter-title",onClick:()=>void e.openGuide(a.id),children:e.title(a)}),n(Os,{g:e,chapter:a})]},a.id)),n("button",{type:"button",class:"btn sm",onClick:()=>void e.openGuide(r[0]?.id??to("welcome")?.id),children:e.t("guide.letter.open")})]})}function gy(e){return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.achievements?.count=="function"&&typeof e.achievements.subscribe=="function"&&typeof e.app?.openSpace=="function"&&typeof e.ui?.mountMarkdownEditor=="function"}function Ep(e,t=window){if(!gy(e)||t.tangu?.unitPage)return null;let o=t.tangu,r=bp(e,{desktop:typeof o?.appVersion=="function"&&!o.mobile,appVersion:typeof o?.appVersion=="function"?o.appVersion().catch(()=>null):Promise.resolve(null)}),a=i=>s=>(Le(n(i,{g:r}),s),()=>{Le(null,s)});return e.registerView({id:_n.reader,title:r.t("guide.title"),icon:"page",workspaceSource:Ns,mount:a(Sp)}),e.registerView({id:_n.side,title:r.t("guide.progress"),icon:"list-view",mount:a(Cp)}),e.registerView({id:_n.companion,title:r.t("guide.title"),icon:"todo",mount:a(Ap)}),e.registerListSource({id:Ns,title:r.t("guide.title"),search:!0,items:i=>{let s=r.env(),l=i?.query?.trim().toLowerCase()??"",c=r.justUnlocked();return Fa(r).flatMap(({level:d,chapters:f})=>f.map(u=>{let p=Wo(u,s);return{key:u.id,title:r.title(u),group:r.levelName(d),icon:p==="done"?"circle-check":p==="locked"?"lock":"circle",hint:d===c&&p!=="locked"?r.t("guide.justUnlocked"):void 0}})).filter(d=>!l||d.title.toLowerCase().includes(l))},subscribe:i=>r.subscribe(i),activeKey:()=>r.selected().id,open:i=>{r.select(i.key),e.openView(_n.reader)}}),e.registerCommand?.({id:"open-guide",title:()=>r.t("guide.cmd.open"),keywords:"guide manual help tutorial levels \u4F7F\u7528\u6307\u5357 \u8BF4\u660E\u4E66 \u6559\u7A0B \u5E2E\u52A9 \u7B49\u7EA7 \u4EFB\u52A1",run:()=>{r.openGuide()}}),e.inbox?.registerCard({sender:()=>r.t("guide.title"),mount(i,s){return Le(n(Tp,{g:r,letter:r.letter(s.id)}),i),()=>{Le(null,i)}}}),r}var hy=["uploads","ama","sync","agents","profile","apps","plugins","exports","market"],Ar={uploads:"penzor.uploads",ama:"penzor.ledger.ama",sync:"penzor.ledger.sync",agents:"penzor.source.agents",profile:"penzor.source.profile",apps:"penzor.ledger.apps",plugins:"penzor.source.plugins",exports:"penzor.ledger.exports",market:"penzor.source.market"},Fs=e=>e==="uploads"?"app:penzor":e==="exports"?"exports":`source:${e}`,Bs=e=>{let t=e?.sources.find(o=>o.id==="market");return t?.status==="ready"&&((t.fileCount??0)>0||(t.liveBytes??0)>0)},no=e=>Number.isFinite(Number(e))?Number(e):0,Cn="penzor";var Ip=500;async function by(e,t){let o=Math.min(20,no(t.totalPages));if(o<=1)return t.files;let r=await Promise.all(Array.from({length:o-1},(a,i)=>e(`/exports/list?pageSize=${Ip}&sortBy=date&sortOrder=desc&page=${i+2}`)));return[...t.files,...r.flatMap(a=>a.ok&&Array.isArray(a.data?.files)?a.data.files:[])]}async function Mp(e){let[t,o,r,a,i,s,l,c,d]=await Promise.all([e("/remotesync/vaults"),e("/amadeus/vaults"),e("/storage/quota"),e("/storage/files-by-app"),e(`/exports/list?pageSize=${Ip}&sortBy=date&sortOrder=desc`),e("/trash?all=1"),e("/storage/ledger"),e("/storage/source-trash/ama"),e("/remotesync/content/devices")]),u=[t,o,r,a,i,s].every(m=>!m.ok&&m.status===401);return{snap:{contentDevices:d.ok&&Array.isArray(d.data?.devices)?d.data.devices:null,amaTrash:c.ok&&Array.isArray(c.data?.entries)?c.data.entries:null,ledger:l.ok&&l.data?.schemaVersion===1?l.data:null,sync:t.ok&&Array.isArray(t.data?.vaults)?{...t.data,vaults:t.data.vaults.filter(m=>m.vault!=="forsion-content")}:null,ama:o.ok&&Array.isArray(o.data?.vaults)?o.data.vaults.filter(m=>(m.role??"owner")==="owner").map(m=>({id:m.id,name:m.name,sizeBytes:no(m.sizeBytes)})):null,apps:r.ok&&a.ok&&Array.isArray(a.data?.apps)?{used:no(r.data?.used),quota:no(r.data?.quota),apps:a.data.apps,largest:a.data.largest??[]}:null,exports:i.ok&&Array.isArray(i.data?.files)?{files:await by(e,i.data),total:no(i.data.total),totalBytes:no(i.data.totalBytes)}:null,trash:s.ok&&Array.isArray(s.data)?s.data:null,at:Date.now()},signedOut:u}}var vy={"ai-studio":"AI Studio","photo-studio":"Photo Studio",notebase:"Notebase",chat:"Forsion Chat",connect:"Forsion Connect","video-studio":"Video Studio",bluebird:"Bluebird",cnti:"CNTI"},$s=e=>e?vy[e]??e.split(/[-_]/).filter(Boolean).map(t=>t[0].toUpperCase()+t.slice(1)).join(" "):"\u2014",zo=e=>e.kind==="content"?`content:${e.namespace}`:e.kind==="source"?`source:${e.source}`:e.kind==="sync"?`sync:${e.vault}`:e.kind==="ama"?`ama:${e.vaultId}`:e.kind==="app"?`app:${e.appId}`:e.kind==="overview"?"ov":e.kind,So=e=>e.kind==="overview"||e.kind==="sync-home";function Rp(e){if(e==="ov")return{kind:"overview"};if(e==="sync-home"||e==="exports"||e==="trash")return{kind:e};let t=e.indexOf(":"),o=t<0?e:e.slice(0,t),r=t<0?"":e.slice(t+1);return r?o==="source"&&hy.includes(r)?{kind:"source",source:r}:o==="content"&&/^(default|device-[A-Za-z0-9_-]{1,64})$/.test(r)?{kind:"content",namespace:r}:o==="sync"?{kind:"sync",vault:r}:o==="ama"?{kind:"ama",vaultId:r}:o==="app"?{kind:"app",appId:r}:null:null}var Us=(e,t)=>t?t.config.enabled||t.config.revision>0:!!e?.contentDevices?.length;function Lp(e,t,o,r=null){let a=m=>ze(o,Ar[m]),i=m=>Cr(m,o),s=m=>{let g=e?.ledger?.sources.find(h=>h.id===m);return g?.status==="ready"?g.liveBytes+g.trashBytes:null},l=m=>{let g=s(m);return g==null?"\u2014":`${e?.ledgerStale?"~ ":""}${i(g)}`},c=Us(e,r),d=[{key:"drive-root",title:t.drive,kind:"folder",icon:t.driveIcon},{key:"ov",title:t.overview,parent:"drive-root",icon:"layout"},{key:Fs("uploads"),title:t.files,parent:"drive-root",icon:"folder",hint:l("uploads")}];if(Bs(e?.ledger)&&d.push({key:Fs("market"),title:a("market"),parent:"drive-root",icon:"boxes",hint:l("market")}),c&&e?.contentDevices){d.push({key:"synced",title:t.synced,kind:"folder",icon:"cloud"},{key:"content:default",title:t.all,parent:"synced",icon:"cloud"});let m=r?.deviceId;m&&d.push({key:`content:device-${m}`,title:t.thisBackup,parent:"synced",icon:"lock"});for(let g of e.contentDevices.filter(h=>h.id!==m))d.push({key:`content:device-${g.id}`,title:g.name||`Forsion-${g.id.slice(0,8)}`,parent:"synced",icon:"link"})}let f=["ama","apps","plugins","exports",...c?[]:["agents","profile"]],u=f.reduce((m,g)=>m==null||s(g)==null?null:m+s(g),0);d.push({key:"by-app",title:t.byApp,kind:"folder",icon:"package",hint:u==null?"\u2014":i(u)});let p=(m,g,h=a(m))=>{let y=m==="ama"||m==="sync"||m==="apps",v=Fs(m);if(d.push({key:y?v+":group":v,parent:g,title:h,icon:m==="sync"?"clock":"folder",...y?{kind:"folder"}:{},hint:l(m)}),y&&d.push({key:`source:${m}`,parent:v+":group",title:t.overview,icon:"layout"}),m==="sync")for(let x of e?.sync?.vaults??[])d.push({key:`sync:${x.vault}`,parent:v+":group",title:x.vault,icon:"database",hint:i(x.bytes)});if(m==="ama")for(let x of e?.ama??[])d.push({key:`ama:${x.id}`,parent:v+":group",title:x.name,icon:"page",hint:i(x.sizeBytes)});if(m==="apps")for(let x of e?.apps?.apps.filter(w=>w.appId!==Cn&&w.files>0)??[])d.push({key:`app:${x.appId}`,parent:v+":group",title:$s(x.appId),icon:"archive",hint:i(x.bytes)})};for(let m of f)p(m,"by-app");return p("sync","",c?t.legacy:a("sync")),d.push({key:"trash",title:t.trash,icon:"trash",hint:e?.trash?t.items(Hs(e.trash).length):"\u2014"}),d.map(m=>m.parent===""?(({parent:g,...h})=>h)(m):m)}function Hs(e){let t=new Map(e.map(a=>[a.id,a])),o=a=>{let i=a;for(let s=0;s<64&&i.parentId&&t.has(i.parentId);s++)i=t.get(i.parentId);return i},r=new Map;for(let a of e){let i=o(a),s=r.get(i.id)??{inner:0,innerBytes:0};i.id!==a.id&&s.inner++,s.innerBytes+=no(a.fileSize),r.set(i.id,s)}return e.filter(a=>!(a.parentId&&t.has(a.parentId))).map(a=>({...a,...r.get(a.id)}))}function qs(e,t){let o=t?`${t}/`:"",r=new Map,a=[];for(let i of e){if(o&&!i.path.startsWith(o))continue;let s=i.path.slice(o.length),l=s.indexOf("/");if(l<0){a.push({key:i.path,name:s,dir:!1,size:i.size,mtime:i.mtime,col4:i.who??null,ref:i.ref});continue}let c=s.slice(0,l),d=o+c,f=r.get(d)??{key:d,name:c,dir:!0,size:0,mtime:null,count:0};f.size+=i.size,f.count=(f.count??0)+1,i.mtime!=null&&(f.mtime==null||i.mtime>f.mtime)&&(f.mtime=i.mtime),r.set(d,f)}return[...Ha([...r.values()]),...Ha(a)]}var Ha=e=>e.sort((t,o)=>(o.mtime??-1)-(t.mtime??-1)||t.name.localeCompare(o.name)),Dp=e=>[...Ha(e.filter(t=>t.dir)),...Ha(e.filter(t=>!t.dir))];function Cr(e,t){let o=Math.max(0,no(e));if(o<1024)return`${o} B`;if(o<1024*1024)return`${Math.round(o/1024)} KB`;if(o<1024**3){let r=o/1048576;return`${r<100?Number(r.toFixed(1)):Math.round(r)} MB`}return`${Number((o/1024**3).toFixed(2))} GB`}function Vs(e,t,o){let r=Cr(e,o),a=Cr(t,o),i=a.slice(a.indexOf(" "));return`${r.endsWith(i)?r.slice(0,-i.length):r} / ${a}`}var yy=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Pp=e=>String(e).padStart(2,"0");function Jt(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=new Date(e),a=new Date(o);a.setHours(0,0,0,0);let i=new Date(r);i.setHours(0,0,0,0);let s=Math.round((a.getTime()-i.getTime())/864e5),l=`${Pp(r.getHours())}:${Pp(r.getMinutes())}`;if(s===0)return t==="zh"?`\u4ECA\u5929 ${l}`:`Today ${l}`;if(s===1)return t==="zh"?`\u6628\u5929 ${l}`:`Yesterday ${l}`;let c=r.getFullYear()===a.getFullYear();return t==="zh"?`${c?"":`${r.getFullYear()} \u5E74 `}${r.getMonth()+1} \u6708 ${r.getDate()} \u65E5`:`${yy[r.getMonth()]} ${r.getDate()}${c?"":`, ${r.getFullYear()}`}`}function _o(e){if(e==null||e==="")return null;if(typeof e=="number")return e<1e12?e*1e3:e;let t=Number(e);if(Number.isFinite(t))return t<1e12?t*1e3:t;let o=Date.parse(String(e));return Number.isNaN(o)?null:o}var qa=e=>[e.notes.on&&!e.notes.pending,e.agents.on,e.plugins.on].filter(Boolean).length;function Tr(e){let t=e.notes.last;return!!t&&t.ok===!1&&!(t.errors.length>0&&t.errors.every(o=>o.includes("already-running")))}var Va=e=>!!e&&e.signedIn&&(!!e.notes.pending||e.notes.on&&Tr(e)),xy=e=>/"code"\s*:\s*"QUOTA"/.test(e),Np=(e,t)=>e.notes.on&&!e.notes.pending&&e.notes.backend==="penzor"&&(t>0&&(e.notes.localBytes??0)>t||!!e.notes.last?.errors.some(xy));function Co(e){if(!e?.notes.running)return null;let t=e.notes.progress;return t&&t.total>0?Math.min(1,Math.max(0,t.done/t.total)):0}function Op(e,t){if(!e||!e.signedIn)return;let o=Co(e);if(o!=null)return o>0?ze(t,"penzor.sync.running",{pct:Math.round(o*100)}):ze(t,"penzor.sync.runningPlain");if(e.notes.pending)return ze(t,"penzor.sync.waiting");let r=qa(e);return r?ze(t,"penzor.sync.onN",{n:r}):ze(t,"penzor.sync.allOff")}var Er=e=>e.jobs.filter(t=>t.state==="failed"&&!e.jobs.some(o=>o.path===t.path&&o.at>t.at&&o.state==="done"));function An(e){if(!e.config.enabled)return{kind:"off"};if(e.paused)return{kind:"paused"};let t=e.jobs.filter(a=>a.state==="queued"||a.state==="active");if(t.length){let a=t.reduce((s,l)=>s+(l.size??0),0),i=t.reduce((s,l)=>s+l.done,0);return{kind:"run",pct:a>0?Math.min(99,Math.round(i/a*100)):0}}if(e.phase==="scanning"||e.phase==="syncing")return{kind:"scan"};let o=Er(e).length+(e.error?1:0);if(o)return{kind:"warn",n:o};let r=e.jobs.filter(a=>a.state==="done").map(a=>a.finishedAt??a.at);return{kind:"ok",at:r.length?Math.max(...r):null}}function Fp(e,t){return e.kind==="off"?ze(t,"penzor.cs.statusOff"):e.kind==="paused"?ze(t,"penzor.cs.statusPaused"):e.kind==="run"?`${e.pct}%`:e.kind==="scan"?ze(t,"penzor.sync.runningPlain"):e.kind==="warn"?ze(t,"penzor.cs.statusWarn",{n:e.n}):ze(t,"penzor.cs.statusOk")}function Bp(e,t){let o=qa(e);return e.notes.pending?ze(t,"penzor.sync.badgeWaiting",{n:o}):o?ze(t,"penzor.sync.onN",{n:o}):ze(t,"penzor.sync.allOff")}function Ws(e,t){let o=Math.max(0,Math.round(e.intervalMin)),r=o?o%60===0?ze(t,"penzor.sync.everyHours",{n:o/60}):ze(t,"penzor.sync.every",{n:o}):ze(t,"penzor.sync.manual");return e.syncOnStart?`${r} \xB7 ${ze(t,"penzor.sync.onStart")}`:r}function Tn(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=Math.max(0,o-e);return r<6e4?ze(t,"penzor.justNow"):r<36e5?ze(t,"penzor.sync.minAgo",{n:Math.floor(r/6e4)}):r<6*36e5?ze(t,"penzor.sync.hoursAgo",{n:Math.floor(r/36e5)}):Jt(e,t,o)}function Wa(e,t=!1){return t?"folder":/\.(png|jpe?g|gif|webp|heic|dng|svg|bmp|tiff?)$/i.test(e)?"image":/\.(md|txt|pdf|docx?|rtf)$/i.test(e)?"page":/\.db$/i.test(e)?"database":"attachment"}function Up(e,t){let o=null;for(let r of t)(!r.source||e===r.source||e.startsWith(r.source+"/"))&&(!o||r.source.length>o.source.length)&&(o=r);return o}var qt={get:"penzor:sync:get",preview:"penzor:sync:preview",apply:"penzor:sync:apply",run:"penzor:sync:run",pause:"penzor:sync:pause",retry:"penzor:sync:retry",rename:"penzor:sync:rename",setup:"penzor:sync:setup",archiveSeen:"penzor:sync:archiveSeen"};var $p=e=>String(e??"").normalize("NFC").trim().replace(/\s+/g," ").toLowerCase(),js=(e,t,o)=>{let r=$p(e);return r?/[\[\]]/.test(e)||e.trim().length>64?"invalid":r==="macos"||r==="windows"||r==="linux"?"reserved":t.some(a=>a.id!==o&&$p(a.name)===r)?"taken":null:null};var hn="forsion-penzor",Rn={main:"penzor",info:"penzor-info"},Gs="penzor-places",Js="forsion-extend.penzor.ready",Hp="forsion-extend.penzor.focus",ja=e=>e.state==="active"||e.state==="queued",Jo=e=>e.ok?"":e.detail||e.code||e.transport||(e.status?`HTTP ${e.status}`:"offline"),ky=e=>e.slice(e.lastIndexOf("/")+1);function qp(e,t={}){let o=t.api??j,r=new Set,a=()=>{for(let k of[...r])try{k()}catch(P){console.error("[penzor] listener failed",P)}},i=()=>Oe(e.getLocale?.()),s=(k,P)=>ze(i(),k,P),l=k=>Cr(k,i()),c=k=>e.app?.notify?.(k),d=k=>c(s("penzor.toast.failed",{reason:typeof k=="string"?k:Jo(k)})),f="unknown",u=!1,p=null,m=null,g={kind:"overview"},h="",y=[],v=null,x=null,w=null,z="mtime",I="",F=null,$={kind:"view"},N=!1,Y=null,C=null,D=0,H=0,E=0,Z=t.device??null,S=new Map,A=new Set,M=null,G=null,ee=[],U=[],ae="hidden",he=0,qe=!1,me=0,De=!1,Qe=null,ye=!1,Ye=null,Rt=new Map,W=null,pe=!Q().mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,ke=new Map,Me=new Set,ge=!1,ot=!1,Ce=1e4,pt=4e3,rt=k=>{let P=z==="size"?(L,ne)=>ne.size-L.size:z==="name"?(L,ne)=>L.name.localeCompare(ne.name):null;return P?[...k.filter(L=>L.dir).sort(P),...k.filter(L=>!L.dir).sort(P)]:Dp([...k])};async function un(){let k=++D,P=g;if(x=null,P.kind==="overview"||P.kind==="sync-home"){v=null;return}if(P.kind==="exports"){v=(m?.exports?.files??[]).map(K=>({key:K.fileId,name:K.fileName,dir:!1,size:K.size,mtime:_o(K.createdAt),col4:at(K.appId),ref:K}));return}if(P.kind==="trash"){v=Hs(m?.trash??[]).map(K=>({key:K.id,name:K.name,dir:K.fileType==="directory",size:K.fileType==="directory"?K.innerBytes:K.fileSize,mtime:_o(K.deletedAt),col4:K.parentName?`${at(K.appId)} / ${K.parentName}`:at(K.appId),count:K.fileType==="directory"?K.inner:void 0,ref:K}));return}if(v=null,a(),P.kind==="content"){let K=await o(`/remotesync/content/${encodeURIComponent(P.namespace)}`);if(k!==D)return;if(!K.ok){x=Jo(K),a();return}if(K.data.schemaVersion!==1||!Array.isArray(K.data.nodes)){x=s("penzor.unreachable");return}let be=K.data.nodes.filter(Ne=>!Ne.deleted),Pe=be.filter(Ne=>Ne.kind==="file"&&Ne.version).map(Ne=>({path:Ne.path,size:Ne.size??0,mtime:Ne.mtime??null,ref:Ne}));S.set(zo(P),Pe);let ue=Ne=>{let Br=0,ao=null,Io=0;for(let Wn of Pe)Wn.path.startsWith(Ne+"/")&&(Br+=Wn.size,Io++,Wn.mtime!=null&&(ao==null||Wn.mtime>ao)&&(ao=Wn.mtime));return{size:Br,mtime:ao,count:Io}};v=be.filter(Ne=>(Ne.path.includes("/")?Ne.path.slice(0,Ne.path.lastIndexOf("/")):"")===h).map(Ne=>Ne.kind==="folder"?{key:Ne.path,name:Ne.name,dir:!0,...ue(Ne.path),ref:Ne}:{key:Ne.path,name:Ne.name,dir:!1,size:Ne.size??0,mtime:Ne.mtime??null,ref:Ne});return}if(P.kind==="sync"||P.kind==="ama"){let K=zo(P),be=S.get(K);if(!be){if(P.kind==="sync"){let Pe=await o(`/remotesync/vaults/${encodeURIComponent(P.vault)}/manifest`);if(k!==D)return;if(!Pe.ok){x=Jo(Pe),a();return}be=Pe.data.files.map(ue=>({path:ue.path,size:ue.size,mtime:_o(ue.mtimeMs),who:ue.device??null,ref:ue}))}else{let Pe=await o(`/amadeus/vaults/${encodeURIComponent(P.vaultId)}/tree`);if(k!==D)return;if(!Pe.ok){x=Jo(Pe),a();return}be=(Pe.data.entries??[]).map(ue=>({path:ue.path,size:ue.size,mtime:_o(ue.updatedAt),ref:ue}))}S.set(K,be)}v=qs(be,h);return}if(P.kind==="source"){let K=(Pe,ue,Ne)=>({key:Pe,name:ue,size:Ne,dir:!0,mtime:null,ref:{go:Pe}});if(P.source==="sync"||P.source==="ama"||P.source==="apps"){if(!(P.source==="sync"?m?.sync:P.source==="ama"?m?.ama:m?.apps)){x=s("penzor.unreachable");return}v=P.source==="sync"?(m?.sync?.vaults??[]).map(ue=>K(`sync:${ue.vault}`,ue.vault,ue.bytes)):P.source==="ama"?(m?.ama??[]).map(ue=>K(`ama:${ue.id}`,ue.name,ue.sizeBytes)):(m?.apps?.apps??[]).filter(ue=>ue.appId!==Cn&&ue.files>0).map(ue=>K(`app:${ue.appId}`,at(ue.appId),ue.bytes));return}let be=await o(`/storage/source-files/${P.source}`);if(k!==D)return;if(!be.ok){x=Jo(be),a();return}v=P.source==="market"?be.data.entries.map(Pe=>({key:Pe.slug??Pe.path,name:Pe.path,dir:!1,size:Pe.size,mtime:Pe.mtime,ref:Pe})):qs(be.data.entries.map(Pe=>({...Pe,ref:Pe})),h);return}let L=y[y.length-1]?.id,ne=await o(`/files${L?`?parentId=${encodeURIComponent(L)}`:""}`,{projectSource:P.appId});if(k===D){if(!ne.ok){x=Jo(ne),a();return}v=ne.data.map(K=>({key:K.id,name:K.displayName||K.name,dir:K.fileType==="directory",size:Number(K.fileSize)||0,mtime:_o(K.updatedAt),managed:K.managed===!0||K.archive==="item",...K.archive?{archive:K.archive}:{},ref:K}))}}let Kt=()=>{if(!v)return null;let k=I.trim().toLowerCase(),P=k?v.filter(L=>L.name.toLowerCase().includes(k)):v;return rt(P)},Yt=()=>{let k=Kt()??[],P=new Set(k.map(L=>L.key));if(A=new Set([...A].filter(L=>P.has(L))),w&&P.has(w)){A.add(w);return}w=(k.find(L=>!L.dir)??k[0])?.key??null,A=new Set(w?[w]:[]),M=w,Ge()},zt=()=>{w=null,A=new Set,M=null,G=null},at=k=>k===Cn?s("penzor.uploads"):$s(k),Vt=()=>g.kind==="app"&&g.appId===Cn&&!y.some(k=>k.archive),en=k=>!!m?.apps&&m.apps.apps.find(P=>P.appId===k)?.canManage!==!1,ft=()=>g.kind==="app"&&en(g.appId),et=k=>g.kind==="trash"?en(k.ref.appId):ft()&&!k.managed,Ot=()=>!!m?.apps&&!!m.trash?.length&&m.trash.every(k=>en(k.appId)),pn=()=>g.kind==="app"||g.kind==="sync"||g.kind==="ama"||g.kind==="content",yt=()=>g.kind==="app"?y[y.length-1]?.id??"ROOT":"ROOT",bn=()=>(Kt()??[]).filter(k=>A.has(k.key)),it=(k,P)=>{let L=Q().cloudInvoke;return L?L(k,P).catch(ne=>({ok:!1,error:String(ne?.message||ne)})):Promise.resolve({ok:!1,error:"no_bridge"})};function Tt(k=500){Qe||ye||(Qe=setTimeout(()=>{Qe=null,de()},k))}async function de(){let k=H,P=await it("penzor:transfers");if(k!==H||ye)return;let L=new Map(ee.map(ue=>[ue.id,ue.state]));P?.ok&&Array.isArray(P.items)&&(ee=P.items);let ne=Date.now(),K=ee.some(ja);ee.some(ue=>ue.kind==="up"&&ue.state==="done"&&L.get(ue.id)!=="done")&&(W&&clearTimeout(W),W=setTimeout(()=>{W=null,st()},300)),K?(Ye==null&&(Ye=ne),me=0,ae==="hidden"&&(ae="open",he=ne),ae==="open"&&!qe&&ne-he>Ce&&(ae="pill")):Ye!=null&&(Ze(Ye),Ye=null);let be=ee.some(ue=>ue.state==="failed")||U.length>0,Pe=ee.some(ue=>ue.state==="paused");!K&&!Pe&&ee.length&&!be&&ae!=="hidden"&&(me?ne-me>pt&&!qe&&(ae="hidden",me=0,dt.txClear("finished")):(me=ne,ae==="pill"&&(ae="open"))),!K&&be&&ae==="pill"&&(ae="open"),!ee.length&&!U.length&&(ae="hidden"),je(),a(),(K||ae!=="hidden"&&me)&&Tt()}function Ze(k){let P=ee.filter(be=>(be.finishedAt??0)>=k),L=P.filter(be=>be.kind==="up"&&be.state==="done"),ne=P.filter(be=>be.kind==="down"&&be.state==="done"),K=P.filter(be=>be.state==="failed");De||(K.length?c(s("penzor.toast.txFailed",{n:K.length})):L.length?c(L.length===1?s("penzor.toast.upDoneOne",{name:L[0].name}):s("penzor.toast.upDoneMany",{n:L.length})):ne.length&&c(ne.length===1?s("penzor.toast.downloaded",{name:ne[0].name}):s("penzor.toast.downDoneMany",{n:ne.length})))}function je(){let k=ee.filter(ja),P=k.reduce((ne,K)=>ne+Math.max(K.size,K.done),0),L=k.length?P>0?Math.min(1,k.reduce((ne,K)=>ne+K.done,0)/P):0:null;e.app?.setSpaceProgress?.(hn,L??Co(pe?.get()??null))}function tn(){if(!pe)return;let k=Va(pe.get());k!==ot&&(ot=k,e.app?.setSpaceDot?.(hn,k))}function ct(){pe?.get()?.notes.pending||(ge=!1),je(),tn(),a()}let O=()=>{let k=pe?.get()??null;if(!k||!ke.size)return k;let P=(L,ne)=>ke.has(L)?{...ne,on:ke.get(L)}:ne;return{...k,notes:P("notes",k.notes),agents:P("agents",k.agents),plugins:P("plugins",k.plugins)}},le=async k=>{try{return await k()??{ok:!1}}catch(P){return{ok:!1,error:String(P?.message||P)}}},Se=()=>{ae="open",he=Date.now(),me=0};async function Ge(){Y=null;let k=Ft();if(g.kind!=="app"||!k||k.dir){a();return}let P=k.key,L=await o(`/files/${encodeURIComponent(P)}/versions`);w===P&&(Y=L.ok&&Array.isArray(L.data)?L.data.map(ne=>({versionNumber:ne.versionNumber,fileSize:Number(ne.fileSize)||0,createdAt:_o(ne.createdAt)})):[],a())}let Ft=()=>w?(v??[]).find(k=>k.key===w)??null:null;async function xt(){await un(),Yt(),a()}async function st(){let k=++E;u=!0,p=null,a();let P=await Q().authStatus?.().catch(()=>null);if(k!==E)return;if(P&&!P.loggedIn){f="out",m=null,u=!1,a();return}let{snap:L,signedOut:ne}=await Mp(o);if(k===E){if(u=!1,ne){f="out",m=null,a();return}f="in",!L.ledger&&m?.ledger&&(L.ledger=m.ledger,L.ledgerStale=!0),m=L,S.clear(),p=!L.ledger&&!L.sync&&!L.ama&&!L.apps&&!L.exports&&!L.trash?s("penzor.unreachable"):null,!So(g)&&g.kind!=="exports"&&g.kind!=="trash"&&g.kind!=="source"&&((g.kind==="content"?L.contentDevices!=null:g.kind==="sync"?L.sync?.vaults.some(be=>be.vault===g.vault):g.kind==="ama"?L.ama?.some(be=>be.id===g.vaultId):g.appId===Cn?L.apps:L.apps?.apps.some(be=>be.appId===g.appId&&be.files>0))||(g={kind:"overview"},h="",y=[],zt())),await xt()}}async function vn(k,P={},L=g){let ne=L.kind==="content"?{path:`/remotesync/content/${encodeURIComponent(L.namespace)}/nodes/${encodeURIComponent(k.ref.id)}/content`,mode:"bytes"}:L.kind==="sync"?{path:`/remotesync/vaults/${encodeURIComponent(L.vault)}/file?path=${encodeURIComponent(k.key)}`,mode:"signed"}:L.kind==="ama"?k.ref.kind==="binary"?{path:`/amadeus/vaults/${encodeURIComponent(L.vaultId)}/asset?ref=${encodeURIComponent(k.key)}`,mode:"bytes"}:{path:`/amadeus/vaults/${encodeURIComponent(L.vaultId)}/file?path=${encodeURIComponent(k.key)}`,mode:"text"}:L.kind==="app"?{path:`/files/${encodeURIComponent(k.key)}/content`,mode:"bytes"}:L.kind==="source"&&k.ref?.downloadPath?{path:k.ref.downloadPath,mode:"bytes"}:L.kind==="exports"?{path:`/exports/${encodeURIComponent(k.key)}/url`,mode:"signed"}:null;if(!ne)return;let K=await it("penzor:download",{...ne,name:ky(k.name),size:k.size,...P});if(!K?.ok){d(K?.error||"download");return}Se(),Tt(0),a()}let Ee=()=>{So(g)?e.closeView?.(Rn.info,{collapse:!0}):e.openView?.(Rn.info,{location:"right"})},dt={ctx:e,locale:i,t:s,b:l,subscribe(k){return r.add(k),()=>{r.delete(k)}},auth:()=>f,loading:()=>u,error:()=>p,snap:()=>m,loc:()=>g,path:()=>h,appStack:()=>y,rows:Kt,rowsError:()=>x,selected:Ft,sort:()=>z,query:()=>I,menu:()=>F,side:()=>$,confirmEmpty:()=>N,versions:()=>Y,moveFolders:()=>C,thisDevice:()=>Z,setDevice(k){Z=k,a()},appLabel:at,canManageRow:et,canEmptyTrash:Ot,canManage:ft,canWrite:Vt,canMulti:pn,folderId:yt,selection:bn,isSelected:k=>A.has(k),selectAll(){if(!pn())return;let k=Kt()??[];A=new Set(k.map(P=>P.key)),!w&&k[0]&&(w=k[0].key),F=null,a()},newFolder:()=>G,startNewFolder(){if(!Vt())return;let k=s("penzor.newFolder.default"),P=new Set((v??[]).filter(ne=>ne.dir).map(ne=>ne.name)),L=k;for(let ne=1;P.has(L)&&ne<1e3;ne++)L=`${k} (${ne})`;G=L,F=null,a()},cancelNewFolder(){G!=null&&(G=null,a())},async createFolder(k){let P=k.trim();if(G=null,!P||!Vt()){a();return}a();let L=await o("/files",{method:"POST",body:{type:"directory",parentId:yt(),name:P},projectSource:Cn});if(!L.ok){L.status===409?c(s("penzor.toast.folderExists",{name:P})):d(L);return}L.data?.id&&(w=L.data.id,A=new Set([L.data.id]),M=L.data.id),await xt()},transfers:()=>ee,notices:()=>U,async acknowledgeStorageNotice(){let k=m?.ledger?.rollout;if(!k||k.acknowledgedAt||m?.ledgerStale)return;let P=await o("/storage/notice/ack",{method:"POST",body:{revision:k.revision}});if(!P.ok){d(P);return}await st()},txRows(){if(!Vt())return[];let k=yt();return ee.filter(P=>P.kind==="up"&&P.projectSource===Cn&&P.parentId===k&&(ja(P)||P.state==="paused")).map(P=>({key:`tx:${P.id}`,id:P.id,name:P.name,size:P.size,done:P.done,state:P.state}))},card:()=>ae,setCard(k){ae=k,he=Date.now(),k!=="hidden"&&Tt(0),a()},holdCard(k){qe=k,he=Date.now(),k||Tt()},async upload(k,P){if(!Vt())return;let L=H,ne=P?.id??yt(),K=P?[...y,P]:[...y],be=await k;if(L!==H||ye||!be.length)return;Rt.set(ne,K);let Pe=await it("penzor:upload",{...typeof be[0]=="string"?{paths:be}:{files:be},parentId:ne,projectSource:Cn});if(!(L!==H||ye)){if(Pe?.ok){Se(),Tt(0),a();return}if(Pe?.error==="quota"){U=[...U,{id:String(Date.now()),kind:"quota",short:Number(Pe.short)||0}],Se(),a();return}if(Pe?.error==="too_many"){c(s("penzor.err.too_many",{n:Number(Pe.max)||2e3}));return}Pe?.error!=="no_files"&&d(Pe?.error==="account_changed"?s("penzor.err.account_changed"):Pe?.error==="not_signed_in"?s("penzor.err.not_signed_in"):Pe?.error||"upload")}},async txOp(k,P){await it("penzor:transfer",{id:k,op:P}),he=Date.now(),await de()},async txAll(k){let P=k==="pause"?L=>ja(L):k==="resume"?L=>L.state==="paused":L=>L.state==="failed"||L.state==="canceled";for(let L of ee.filter(P))await it("penzor:transfer",{id:L.id,op:k});k==="retry"&&(U=[]),he=Date.now(),await de()},async txClear(k){await it("penzor:transfers:clear",{which:k}),k==="all"&&(U=[]),await de()},dismissNotice(k){U=U.filter(P=>P.id!==k),!ee.length&&!U.length&&(ae="hidden"),a()},locate(k){if(k.kind==="down"){k.localPath&&Q().revealHostPath?.(k.localPath);return}let P=Rt.get(k.targetId??"")??[];g={kind:"app",appId:Cn},y=P,h="",I="",$={kind:"view"},F=null,zt(),k.fileId&&k.parentId===k.targetId&&(w=k.fileId,A=new Set([k.fileId])),a(),e.app?.openSpace?.(hn).then(()=>{e.openView?.(Rn.main),Ee()}),xt()},async downloadMany(k){let P=k.filter(ue=>!ue.dir);if(P.length<=1){P[0]&&await dt.download(P[0]);return}let L=new Date,ne=s("penzor.download.folder",{date:`${L.getFullYear()}-${String(L.getMonth()+1).padStart(2,"0")}-${String(L.getDate()).padStart(2,"0")}`}),K=`${Date.now()}`,be=g,Pe=H;for(let ue of P){if(H!==Pe)break;await vn(ue,{subdir:ne,batch:K},be)}},async trashMany(k){if(g.kind!=="app"||!k.length||!k.every(et))return;if(k.length===1){await dt.trash(k[0]);return}let P=await o("/files/batch/delete",{method:"POST",body:{ids:k.map(ne=>ne.key)},projectSource:g.appId});if(!P.ok){d(P);return}let L=(P.data?.results??[]).filter(ne=>ne.success===!1).length;c(L?s("penzor.toast.batchPartial",{n:L}):s("penzor.toast.trashedN",{n:k.length})),zt(),await st()},async moveMany(k,P){if(g.kind!=="app"||!k.length||!k.every(et))return;$={kind:"view"};let L=k.map(be=>be.key).filter(be=>be!==P.id),ne=await o("/files/batch/move",{method:"POST",body:{ids:L,parentId:P.id},projectSource:g.appId});if(!ne.ok){d(ne),a();return}let K=(ne.data?.results??[]).filter(be=>be.success===!1).length;c(K?s("penzor.toast.batchPartial",{n:K}):s("penzor.toast.movedN",{n:L.length,name:P.name})),zt(),await st()},setVisible(k){De=k},picker:{},refresh:st,go(k){let P=Rp(k);if(!P)return;let L=zo(P)===zo(g);g=P,L||(h="",y=[],zt(),I="",$={kind:"view"},N=!1),F=null,a(),e.openView?.(Rn.main),Ee(),xt()},openFolder(k){g={kind:"app",appId:Cn},y=k,h="",I="",$={kind:"view"},F=null,N=!1,zt(),a(),e.openView?.(Rn.main),Ee(),xt()},openDir(k){if(!(!k.dir||g.kind==="exports"||g.kind==="trash")){if(g.kind==="source"&&k.ref?.go){dt.go(k.ref.go);return}g.kind==="app"?y=[...y,{id:k.key,name:k.name,...k.archive?{archive:!0}:{}}]:h=k.key,zt(),I="",$={kind:"view"},xt()}},up(k){if(g.kind==="app")y=y.slice(0,k??Math.max(0,y.length-1));else{let P=h?h.split("/"):[];h=P.slice(0,k??Math.max(0,P.length-1)).join("/")}zt(),$={kind:"view"},xt()},select(k,P){let L=Kt()??[];if(k&&P?.range&&pn()&&M&&L.some(ne=>ne.key===M)){let ne=L.findIndex(be=>be.key===M),K=L.findIndex(be=>be.key===k.key);A=new Set(L.slice(Math.min(ne,K),Math.max(ne,K)+1).map(be=>be.key)),w=k.key}else k&&P?.toggle&&pn()?(A.has(k.key)&&A.size>1?(A.delete(k.key),w===k.key&&(w=[...A].pop()??null)):(A.add(k.key),w=k.key),M=k.key):(w=k?.key??null,A=new Set(w?[w]:[]),M=w);G=null,$={kind:"view"},F=null,k&&!So(g)&&e.openView?.(Rn.info,{location:"right"}),Ge(),a()},setSort(k){z=k,a()},setQuery(k){I=k,a()},openMenu(k,P,L){L&&!A.has(L.key)&&(w=L.key,A=new Set([L.key]),M=L.key,Ge()),F={x:k,y:P,row:L},$={kind:"view"},a()},closeMenu(){F&&(F=null,a())},setSide(k){$=k,F=null,k.kind==="move"&&(C=null,dt.moveBrowse(k.at)),e.openView?.(Rn.info,{location:"right"}),a()},setConfirmEmpty(k){N=k,a()},async download(k){k.dir||(F=null,await vn(k))},async trash(k){if(g.kind!=="app"||!et(k))return;let P=Kt()??[],L=P.findIndex(be=>be.key===k.key),ne=await o(`/files/${encodeURIComponent(k.key)}`,{method:"DELETE",projectSource:g.appId});if(!ne.ok){d(ne);return}c(s("penzor.toast.trashed",{name:k.name}));let K=P[L+1]??P[L-1];w=K&&K.key!==k.key?K.key:null,F=null,await st()},async restore(k){if(!m||g.kind!=="trash"||!et(k))return;let P=await o(`/trash/${encodeURIComponent(k.key)}/restore`,{method:"POST",body:{}});if(!P.ok){d(P);return}c(s("penzor.toast.restored",{name:k.name})),w=null,await st()},async purge(k){if(!m||g.kind!=="trash"||!et(k))return;let P=await o(`/trash/${encodeURIComponent(k.key)}`,{method:"DELETE"});if($={kind:"view"},!P.ok){d(P),a();return}c(s("penzor.toast.purged",{name:k.name})),w=null,await st()},async emptyTrash(){if(!m||!Ot())return;let k=await o("/trash?all=1",{method:"DELETE"});if(N=!1,!k.ok){d(k),a();return}let P=(k.data?.results??[]).filter(L=>L.success===!1).length;c(P?s("penzor.toast.emptyPartial",{n:P}):s("penzor.toast.emptied")),w=null,await st()},async rename(k,P){let L=P.trim();if($={kind:"view"},!L||L===k.name){a();return}let ne=g.kind==="exports"?await o(`/exports/${encodeURIComponent(k.key)}/rename`,{method:"PUT",body:{newFileName:L}}):g.kind==="app"&&et(k)?await o(`/files/${encodeURIComponent(k.key)}/rename`,{method:"PATCH",body:{name:L},projectSource:g.appId}):null;if(ne){if(!ne.ok){d(ne),a();return}c(s("penzor.toast.renamed",{name:L})),await st()}},moveBrowse(k){if(g.kind!=="app"||!ft())return;$={kind:"move",at:k},C=null,a();let P=k[k.length-1]?.id,L=g.appId;o(`/files${P?`?parentId=${encodeURIComponent(P)}`:""}`,{projectSource:L}).then(ne=>{$.kind!=="move"||$.at!==k||(C=ne.ok?ne.data.filter(K=>K.fileType==="directory").map(K=>({id:K.id,name:K.name})):[],a())})},async moveTo(k,P){if(g.kind!=="app"||!et(k))return;if($={kind:"view"},P.id===k.key){a();return}let L=await o(`/files/${encodeURIComponent(k.key)}/move`,{method:"PATCH",body:{parentId:P.id},projectSource:g.appId});if(!L.ok){d(L),a();return}c(s("penzor.toast.moved",{name:P.name})),w=null,await st()},async restoreVersion(k,P){if(!et(k))return;let L=await o(`/files/${encodeURIComponent(k.key)}/restore/${P.versionNumber}`,{method:"POST",body:{}});if(!L.ok){d(L);return}c(s("penzor.toast.versionRestored",{n:P.versionNumber})),await st(),Ge()},async deleteExport(k){if(!m)return;let P=await o(`/exports/${encodeURIComponent(k.key)}`,{method:"DELETE"});if($={kind:"view"},!P.ok){d(P),a();return}c(s("penzor.toast.purged",{name:k.name})),w=null,await st()},signIn(){Q().forsionLogin?.()},openSync(){e.app?.openSettings?.("sync/s-remote")},async focusVault(k){await e.app?.openSpace?.(hn),m||await st(),dt.go(`sync:${k}`)},hasSync:()=>!!pe,content:()=>Bt,syncState:O,syncBusy:k=>Me.has(k),async setSync(k,P){if(!pe||Me.has(k))return;Me.add(k),ke.set(k,P),a();let L=await le(()=>pe.set(k,P));Me.delete(k),ke.delete(k),!ye&&(L.ok||d(L.error||"sync"),ct())},async resolveNotes(k){if(!pe||Me.has("resolve"))return;Me.add("resolve"),a();let P=await le(()=>pe.resolveNotes(k));Me.delete("resolve"),ge=!1,!ye&&(P.ok||d(P.error||"sync"),ct())},confirmCloud:()=>ge,setConfirmCloud(k){ge=k,a()},enter(){},dispose(){ye=!0,clearInterval(fn),Qe&&clearTimeout(Qe),W&&clearTimeout(W),e.app?.setSpaceProgress?.(hn,null),ot&&e.app?.setSpaceDot?.(hn,!1),r.clear(),ro?.(),Fr?.(),Za?.()}},Bt=null,Ve="",Lt=async()=>{let k=Q().cloudInvoke;if(!k){clearInterval(fn);return}let P=typeof document<"u"&&typeof document.hasFocus=="function"?document.hasFocus():void 0,L=await k(qt.get,null,{focused:P}).catch(be=>({ok:!1,error:String(be)}));if(ye)return;!L?.ok&&/unavailable|not a Forsion Extend channel/i.test(L?.error??"")&&clearInterval(fn);let ne=L?.ok&&L.value?.available?L.value:null,K=ne?JSON.stringify([An(ne),ne.config.enabled,ne.deviceId,ne.devices]):"";Bt=ne,K!==Ve&&(Ve=K,a())},fn=setInterval(()=>void Lt(),5e3);Lt();let ro=e.subscribeLocale?.(()=>a()),Za=pe?.subscribe(ct);tn(),de();let Fr=Q().onAuthChanged?.(()=>{++D,++E,++H,m=null,v=null,x=null,S.clear(),zt(),F=null,$={kind:"view"},N=!1,Y=null,C=null,g={kind:"overview"},h="",y=[],I="",Rt.clear(),U=[],ee=[],ae="hidden",Ye=null,me=0,W&&(clearTimeout(W),W=null),e.app?.setSpaceProgress?.(hn,null),ge=!1,ke.clear(),a(),st()});return dt}var Vp=e=>e.kind==="content"?"penzor.source.readonly":e.kind==="sync"?"penzor.side.readonlySync":e.kind==="ama"?"penzor.side.readonlyAma":e.kind==="source"?e.source==="plugins"?"penzor.source.pluginNote":e.source==="market"?"penzor.source.marketNote":"penzor.source.readonly":null;var Wp=`
|
|
1361
1364
|
.pz, .pz-side { color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
|
|
1362
1365
|
.pz { height: 100%; min-height: 0; display: flex; flex-direction: column; }
|
|
1363
1366
|
.pz-side { height: 100%; min-height: 0; overflow: auto; box-sizing: border-box; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
@@ -1573,7 +1576,7 @@ ${kp(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask
|
|
|
1573
1576
|
.pz-legacy > svg { color: var(--text-muted); }
|
|
1574
1577
|
.pz-legacy > span { flex: 1; min-width: 0; }
|
|
1575
1578
|
.pz-legacy small { display: block; margin-top: 2px; color: var(--text-muted); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
|
|
1576
|
-
`;function qn(e,t,o){return e.fetch?e.fetch(t,o):fetch(t,{...o,headers:{Authorization:`Bearer ${e.token}`,...o.headers}})}async function Ao(e,t,o,r,a=6e4){let i=await(e.fetch??fetch)(e.base+o,{method:t,headers:{"Content-Type":"application/json","X-Project-Source":"connect",...e.token&&!e.fetch?{Authorization:`Bearer ${e.token}`}:{}},body:r===void 0?void 0:JSON.stringify(r),signal:AbortSignal.timeout(a)}),s=await i.json().catch(()=>({}));return{status:i.status,json:s}}function Vn(e,t){if(typeof t!="string"||!t.startsWith("/"))return null;let o=String(e||"").replace(/\/+$/,"").replace(/\/api$/,"");if(!o)return null;let r,a;try{r=new URL(o),a=new URL(o+"/api"+t)}catch{return null}return r.protocol!=="http:"&&r.protocol!=="https:"||a.origin!==r.origin||!a.pathname.startsWith("/api/")?null:a.toString()}var
|
|
1579
|
+
`;function qn(e,t,o){return e.fetch?e.fetch(t,o):fetch(t,{...o,headers:{Authorization:`Bearer ${e.token}`,...o.headers}})}async function Ao(e,t,o,r,a=6e4){let i=await(e.fetch??fetch)(e.base+o,{method:t,headers:{"Content-Type":"application/json","X-Project-Source":"connect",...e.token&&!e.fetch?{Authorization:`Bearer ${e.token}`}:{}},body:r===void 0?void 0:JSON.stringify(r),signal:AbortSignal.timeout(a)}),s=await i.json().catch(()=>({}));return{status:i.status,json:s}}function Vn(e,t){if(typeof t!="string"||!t.startsWith("/"))return null;let o=String(e||"").replace(/\/+$/,"").replace(/\/api$/,"");if(!o)return null;let r,a;try{r=new URL(o),a=new URL(o+"/api"+t)}catch{return null}return r.protocol!=="http:"&&r.protocol!=="https:"||a.origin!==r.origin||!a.pathname.startsWith("/api/")?null:a.toString()}var jp=["bytes","signed","text"],Gp=/^[A-Za-z0-9_-]{1,64}$/,Jp=/^[a-z0-9][a-z0-9-]{0,63}$/;function Xp(e){if(typeof e!="string")return null;let o=(e.split(/[\\/]/).pop()??"").replace(/[\u0000-\u001f<>:"|?*]/g,"").trim().slice(0,200);return o&&o!=="."&&o!==".."?o:null}var wy={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".heic":"image/heic",".svg":"image/svg+xml",".pdf":"application/pdf",".txt":"text/plain",".md":"text/markdown",".json":"application/json",".csv":"text/csv",".mp4":"video/mp4",".mov":"video/quicktime",".mp3":"audio/mpeg",".zip":"application/zip",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation"};function Xs(e){let t=e.lastIndexOf(".");return wy[t>0?e.slice(t).toLowerCase():""]??"application/octet-stream"}function Kp(e,t,o,r){let a=o.replace(/[^\x20-\x7e]/g,"_").replace(/["\\]/g,"_")||"file",i=encodeURIComponent(o).replace(/['()*]/g,l=>`%${l.charCodeAt(0).toString(16).toUpperCase()}`),s="";for(let[l,c]of Object.entries(t))s+=`--${e}\r
|
|
1577
1580
|
Content-Disposition: form-data; name="${l}"\r
|
|
1578
1581
|
\r
|
|
1579
1582
|
${c}\r
|
|
@@ -1583,7 +1586,7 @@ Content-Type: ${r}\r
|
|
|
1583
1586
|
\r
|
|
1584
1587
|
`,{head:s,tail:`\r
|
|
1585
1588
|
--${e}--\r
|
|
1586
|
-
`}}function Gp(e,t){let o=e.filter(([l])=>t-l<=3e3);if(o.length<2)return 0;let[r,a]=o[0],[i,s]=o[o.length-1];return i>r?Math.max(0,(s-a)/(i-r)*1e3):0}function Jp(e,t){let o=t??{};return e===401?"not_signed_in":o.code==="STORAGE_QUOTA_EXCEEDED"?"quota":o.code==="STORAGE_BUSY"||o.code==="STORAGE_RECONCILIATION_REQUIRED"?"storage_unavailable":o.code==="FILE_TOO_LARGE"||e===413?"too_large":typeof o.detail=="string"&&/quota exceeded/i.test(o.detail)?"quota":o.code==="STORAGE_NOT_CONFIGURED"?"storage_unavailable":`http_${e}`}var vy=3,yy=200,Xs=32,xy=e=>typeof e=="string"&&!!e&&e!=="."&&e!==".."&&!/[\\/]/.test(e);function Ks(e,t){return t?e.flatMap(o=>{let r=(o.webkitRelativePath||o.name).split("/");return r.slice(1).some(a=>a.startsWith("."))||r.length-1>Xs?[]:[{file:o,relDir:r.slice(0,-1)}]}):e.map(o=>({file:o,relDir:[]}))}function Xp(e){let t=Array.from(e.items??[]).filter(a=>a.kind==="file").map(a=>({entry:a.webkitGetAsEntry?.()??null,file:a.getAsFile()})),o=[],r=async(a,i)=>{if(i.length>Xs)return!0;if(a.isFile){let c=await new Promise(d=>a.file(d,()=>d(null)));return c&&o.push({file:c,relDir:i}),o.length<=2e3}if(!a.isDirectory)return!0;let s=a.createReader(),l=[];for(;;){let c=await new Promise(d=>s.readEntries(d,()=>d([])));if(!c.length)break;l.push(...c)}l.sort((c,d)=>c.name<d.name?-1:c.name>d.name?1:0);for(let c of l)if(!c.name.startsWith(".")&&!await r(c,[...i,a.name]))return!1;return!0};return(async()=>{for(let a of t)if(a.entry){if(!await r(a.entry,[]))break}else a.file&&o.push({file:a.file,relDir:[]});return o})()}function Kp(e,t=window,o={}){let r=[],a=new Map,i=!1,s=0,l=()=>Date.now(),c=()=>Array.from(t.crypto.getRandomValues(new Uint8Array(16)),C=>C.toString(16).padStart(2,"0")).join("");async function d(){let C=await e.getCloud();if(!C.token)throw new Error("not_signed_in");return C}async function f(C,D={}){let U=await d(),M=Vn(U.base,C);if(!M)throw new Error("bad_path");let Z=await qn(U,M,{method:D.method??"GET",headers:{...D.body!==void 0?{"Content-Type":"application/json"}:{},...D.projectSource?{"X-Project-Source":D.projectSource}:{}},body:D.body!==void 0?JSON.stringify(D.body):void 0,signal:AbortSignal.timeout(3e4)});return{status:Z.status,json:await Z.json().catch(()=>null)}}let u=C=>{let{attempt:D,relDir:U,abort:M,samples:Z,file:S,dl:A,...I}=C;return{...I,speed:C.state==="active"?Gp(Z,l()):0}},p=C=>C.state==="active"||C.state==="queued"||C.state==="paused",m=(C,D,U=null)=>{C.state=D,C.error=U,C.abort=null,C.finishedAt=l(),C.samples=[];let M=r.filter(Z=>Z.state==="done"||Z.state==="canceled");for(let Z of M.slice(0,Math.max(0,M.length-yy)))r.splice(r.indexOf(Z),1);h()},g=C=>{let D=String(C?.message||C);return["too_large","quota","not_signed_in","bad_response","popup_blocked","download_unavailable","download_failed"].includes(D)||D.startsWith("http_")?D:"network"};function h(){if(!i)for(let C of["up","down"]){let D=r.filter(U=>U.kind===C&&U.state==="active").length;for(let U of r){if(D>=vy)break;if(U.kind!==C||U.state!=="queued")continue;D++,U.state="active",U.startedAt=l(),U.done=0,U.samples=[[l(),0]],U.abort=new AbortController;let M=U.abort.signal,Z=++U.attempt,S=()=>U.attempt===Z&&U.state==="active";(C==="up"?w(U,S,M):F(U,S,M)).catch(A=>{S()&&m(U,"failed",g(A))})}}}let y=(C,D)=>{C.done=D;let U=l(),M=C.samples[C.samples.length-1];for((!M||U-M[0]>=200)&&C.samples.push([U,D]);C.samples.length>2&&U-C.samples[0][0]>3500;)C.samples.shift()};function b(C){let D=s,U=()=>{if(i||D!==s)throw new Error("account_changed")};if(!C.relDir.length)return Promise.resolve(C.targetId);let M=a.get(C.batch);M||a.set(C.batch,M=new Map);let Z=M,S=A=>{if(A===0)return Promise.resolve(C.targetId);let I=C.relDir.slice(0,A).join("/"),j=Z.get(I);return j||(j=S(A-1).then(async ee=>{U();let H=C.relDir[A-1],re=await f("/files",{method:"POST",body:{type:"directory",parentId:ee,name:H},projectSource:C.projectSource});if(U(),re.status===201&&typeof re.json?.id=="string")return re.json.id;if(re.status===409){let he=await f(`/files${ee==="ROOT"?"":`?parentId=${encodeURIComponent(ee)}`}`,{projectSource:C.projectSource}),qe=Array.isArray(he.json)?he.json.find(me=>me?.fileType==="directory"&&me?.name===H):null;if(qe?.id)return String(qe.id)}throw new Error(re.status===401?"not_signed_in":`http_${re.status}`)}),j.catch(()=>Z.delete(I)),Z.set(I,j)),j};return S(C.relDir.length)}async function w(C,D,U){let M=C.file;if(M.size>52428800)throw new Error("too_large");let Z=await b(C);if(!D())return;C.parentId=Z;let S=await d();if(!D())return;let A=Vn(S.base,"/files/upload");if(!A)throw new Error("bad_path");let I=`----penzor${c()}`,{head:j,tail:ee}=jp(I,{parentId:Z,autoRename:"true"},C.name,M.type||js(C.name)),H=await qn(S,A,{method:"POST",headers:{"Content-Type":`multipart/form-data; boundary=${I}`,...C.projectSource?{"X-Project-Source":C.projectSource}:{}},body:new Blob([j,M,ee]),signal:U}),re=await H.json().catch(()=>null);D()&&(H.status===201||H.status===200?(C.fileId=typeof re?.id=="string"?re.id:null,y(C,C.size),m(C,"done")):m(C,"failed",Jp(H.status,re)))}async function k(C,D,U){D.size=Number(C.headers.get("content-length"))||D.size;let M=C.headers.get("content-type")||"";if(!C.body)return C.blob();let Z=C.body.getReader(),S=[],A=0;for(;;){let{done:I,value:j}=await Z.read();if(I)break;if(!U())throw Z.cancel().catch(()=>{}),new Error("aborted");S.push(j),A+=j.length,y(D,A)}return A>D.size&&(D.size=A),new Blob(S,{type:M})}let z=(C,D)=>{let U=URL.createObjectURL(C),M=t.document.createElement("a");M.href=U,M.download=D,t.document.body.appendChild(M),M.click(),M.remove(),setTimeout(()=>URL.revokeObjectURL(U),6e4)},P=C=>{let D=t.open("","_blank");return D?(D.opener=null,D.location.replace(C),!0):!1};async function F(C,D,U){let M=C.dl,Z=await d();if(!D())return;let S=Vn(Z.base,M.path);if(!S)throw new Error("bad_path");let A=await qn(Z,S,{signal:U});if(!A.ok)throw new Error(A.status===401?"not_signed_in":`http_${A.status}`);let I;if(M.mode==="bytes")I=await k(A,C,D);else{let j=await A.json().catch(()=>null);if(M.mode==="text"){if(typeof j?.content!="string")throw new Error("bad_response");I=new Blob([j.content],{type:js(M.name)}),C.size=I.size,y(C,I.size)}else{if(typeof j?.url!="string"||!/^https?:\/\//i.test(j.url))throw new Error("bad_response");let ee=await fetch(j.url,{signal:U,credentials:"omit"}).catch(H=>{if(U.aborted)throw H;return null});if(!ee){if(!D())return;if(o.openExternal)await o.openExternal(j.url);else if(!P(j.url))throw new Error("popup_blocked");if(!D())return;m(C,"done");return}if(!ee.ok)throw new Error(`http_${ee.status}`);I=await k(ee,C,D)}}D()&&(o.saveDownload?await o.saveDownload(I,M.name):z(I,M.name),D()&&m(C,"done"))}let $=(C,D)=>{let U={projectSource:void 0,parentId:void 0,targetId:void 0,fileId:null,localPath:null,...C,id:c(),attempt:0,done:0,state:D?"failed":"queued",error:D??null,abort:null,samples:[],speed:0,startedAt:null,finishedAt:D?l():null};return r.push(U),U};e.handle("penzor:upload",async(C,D)=>{let U=s,M=D??{},Z=(Array.isArray(M.files)?M.files:[]).filter(H=>!!H&&H.file instanceof Blob&&typeof H.file.name=="string"&&Array.isArray(H.relDir)&&H.relDir.length<=Xs&&H.relDir.every(xy)),S=typeof M.parentId=="string"&&qp.test(M.parentId)?M.parentId:null,A=typeof M.projectSource=="string"&&Vp.test(M.projectSource)?M.projectSource:null;if(!Z.length)return{ok:!1,error:"no_files"};if(!S||!A)return{ok:!1,error:"bad_target"};if(Z.length>2e3)return{ok:!1,error:"too_many",max:2e3};if(!(await e.getCloud()).token)return{ok:!1,error:"not_signed_in"};if(U!==s)return{ok:!1,error:"account_changed"};let I=Z.filter(H=>H.file.size<=52428800).reduce((H,re)=>H+re.file.size,0);try{let H=await f("/storage/quota"),re=Number(H.json?.used),he=Number(H.json?.quota);if(H.status===200&&he>0&&re+I>he)return{ok:!1,error:"quota",short:re+I-he}}catch{}if(U!==s)return{ok:!1,error:"account_changed"};if(i)return{ok:!1,error:"disposed"};let j=c(),ee=Z.map(H=>$({kind:"up",name:H.file.name,size:H.file.size,projectSource:A,parentId:H.relDir.length?null:S,targetId:S,batch:j,relDir:H.relDir,file:H.file},H.file.size>52428800?"too_large":void 0).id);return h(),{ok:!0,ids:ee,batch:j}}),e.handle("penzor:download",async(C,D)=>{let U=s,M=D??{},Z=Hp.includes(M.mode)?M.mode:null,S=Wp(M.name);if(!Z)return{ok:!1,error:"bad_mode"};if(!S)return{ok:!1,error:"bad_name"};let A=await e.getCloud();if(U!==s)return{ok:!1,error:"account_changed"};if(typeof M.path!="string"||!Vn(A.base,M.path))return{ok:!1,error:"bad_path"};if(!A.token)return{ok:!1,error:"not_signed_in"};if(i)return{ok:!1,error:"disposed"};let I=$({kind:"down",name:S,size:Math.max(0,Number(M.size)||0),relDir:[],batch:typeof M.batch=="string"&&M.batch.length<=64?M.batch:c(),dl:{path:M.path,mode:Z,name:S}});return h(),{ok:!0,id:I.id}}),e.handle("penzor:transfers",()=>({ok:!0,items:r.map(u)})),e.handle("penzor:transfer",(C,D)=>{let U=D??{},M=r.find(S=>S.id===U.id);if(!M)return{ok:!1,error:"not_found"};let Z=()=>{M.abort?.abort(),M.abort=null,M.done=0,M.samples=[]};switch(U.op){case"pause":(M.state==="active"||M.state==="queued")&&(Z(),M.state="paused",h());break;case"resume":M.state==="paused"&&(M.state="queued",h());break;case"cancel":p(M)&&(Z(),m(M,"canceled"));break;case"retry":(M.state==="failed"||M.state==="canceled")&&(M.state="queued",M.error=null,M.finishedAt=null,M.done=0,h());break;case"dismiss":M.state!=="active"&&M.state!=="queued"&&r.splice(r.indexOf(M),1);break;default:return{ok:!1,error:"bad_op"}}return{ok:!0}}),e.handle("penzor:transfers:clear",(C,D)=>{let U=D?.which==="all";for(let M of[...r])(M.state==="done"||M.state==="canceled"||U&&M.state==="failed")&&r.splice(r.indexOf(M),1);return{ok:!0}});let O=C=>{r.some(p)&&(C.preventDefault(),C.returnValue="")};t.addEventListener("beforeunload",O);let K=()=>{s++;for(let C of r)C.state="canceled",C.abort?.abort();r.length=0,a.clear()};return{reset:K,dispose(){i=!0,t.removeEventListener("beforeunload",O),K()}}}var Xo=[{id:"notes",path:"Amadeus"},{id:"agents",path:"agents"},{id:"profile",path:"human"},{id:"plugins",path:"Plugins"}],Ys=new Set(["Amadeus","agents"]);var To=new Set(["muse"]);var ky=e=>[...To].some(t=>Zs(e,`agents/${t}`));var Er=(e,t)=>Op(t,e)?.target??"off",Zs=(e,t)=>e===t||e.startsWith(t+"/"),wy=e=>Xo.some(t=>Zs(e,t.path)),Qs=e=>e.some(t=>t.id==="default")?Va():"default",Xt=(e,t)=>e.enabled?Er(e.rules,t):"off";function Yp(e,t,o){o==="off"&&(e=e.filter(i=>t?!i.source.startsWith(t+"/"):!i.source||wy(i.source)));let r=e.find(i=>i.source===t),a=e.filter(i=>i!==r);return t&&Er(a,t)===o?a:r?e.map(i=>i===r?{...i,target:o}:i):[...e,{id:t?Va():Qs(e),source:t,target:o}]}function Zp(e,t,o,r=!1){if(ky(t))return e;let a=e.rules;if(!e.enabled){let i=a.find(l=>!l.source),s=t?a.filter(l=>l.source&&Zs(l.source,t)):[];a=[{id:i?.id??Qs(s),source:"",target:"off"},...s],t!=="agents"&&(a=ef(a,"agents","off"))}if(!t)for(let i of Xo)a.some(s=>s.source===i.path)||(a=[...a,{id:Va(),source:i.path,target:Er(a,i.path)}]);return zy({...e,rules:Yp(a,t,o)},r)}function zy(e,t=!1){let o=r=>Er(e.rules,r)!=="off";return{...e,enabled:Xo.some(r=>o(r.path))||e.rules.some(r=>r.source&&r.target!=="off")||t&&o("")}}function Qp(e){let t=e.rules.some(o=>o.source==="")?e.rules:[{id:Qs(e.rules),source:"",target:"default"},...e.rules];for(let o of Xo)o.id!=="agents"&&Er(t,o.path)==="off"&&(t=Yp(t,o.path,"default"));return t=ef(t,"agents","off"),{...e,enabled:!0,rules:t}}function ef(e,t,o){let r=e.find(a=>a.source===t);return r?e.map(a=>a===r?{...a,target:o}:a):[...e,{id:Va(),source:t,target:o}]}function el(e,t){return e.rules.filter(o=>o.source.startsWith(t+"/")&&(!Ys.has(t)||o.source.split("/").length>2)).length}function tl(e,t){let o=s=>new Map(s.rules.map(l=>[l.source,l.target])),r=o(e),a=o(t),i=e.enabled!==t.enabled?1:0;for(let s of new Set([...r.keys(),...a.keys()]))r.get(s)!==a.get(s)&&i++;return i}var Sy=0,Va=()=>`rule-${Date.now().toString(36)}-${(Sy++).toString(36)}`;var tf={globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18"/>',"user-round":'<circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/>',monitor:'<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>',history:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>',more:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"cloud-off":'<path d="m2 2 20 20"/><path d="M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193"/><path d="M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07"/>',"cloud-check":'<path d="m17 15-5.5 5.5L9 18"/><path d="M5 17.743A7 7 0 1 1 15.71 10h1.79a4.5 4.5 0 0 1 1.5 8.742"/>',"tx-sync":'<path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',down:'<path d="m6 9 6 6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',page:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19A9 3 0 0 0 21 19V5"/><path d="M3 12A9 3 0 0 0 21 12"/>',attachment:'<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/>',trash:'<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>',store:'<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"/><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"/><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',palette:'<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"/><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',undo:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',move:'<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"/><path d="M2 13h10"/><path d="m9 16 3-3-3-3"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>',login:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" x2="3" y1="12" y2="12"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>',up:'<path d="m18 15-6-6-6 6"/>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>',"folder-plus":'<path d="M12 10v6"/><path d="M9 13h6"/><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',pause:'<rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/>',play:'<polygon points="6 3 20 12 6 21 6 3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',check:'<path d="M20 6 9 17l-5-5"/>',alert:'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"tx-up":'<path d="m18 9-6-6-6 6"/><path d="M12 3v14"/><path d="M5 21h14"/>',"tx-down":'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',files:'<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>',notebook:'<path d="M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"/><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><path d="M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"/>',bot:'<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"/><path d="M20.054 15.987H3.946"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',penzor:'<path d="M3 18.5h13.5a4.25 4.25 0 0 0 0-8.5 4.75 4.75 0 0 0-9.5 0 2.5 2.5 0 0 0 5 0"/>'},Pr=({p:e})=>n("div",{class:"pz-ov-kick pz-brand",children:[n(oe,{n:"penzor"}),n("b",{children:e.t("penzor.title")}),e.locale()==="zh"&&n("span",{children:we("en","penzor.title")})]}),oe=({n:e})=>n("svg",{viewBox:"0 0 24 24","aria-hidden":"true",dangerouslySetInnerHTML:{__html:tf[e]??tf.attachment}});var of=`
|
|
1589
|
+
`}}function Yp(e,t){let o=e.filter(([l])=>t-l<=3e3);if(o.length<2)return 0;let[r,a]=o[0],[i,s]=o[o.length-1];return i>r?Math.max(0,(s-a)/(i-r)*1e3):0}function Zp(e,t){let o=t??{};return e===401?"not_signed_in":o.code==="STORAGE_QUOTA_EXCEEDED"?"quota":o.code==="STORAGE_BUSY"||o.code==="STORAGE_RECONCILIATION_REQUIRED"?"storage_unavailable":o.code==="FILE_TOO_LARGE"||e===413?"too_large":typeof o.detail=="string"&&/quota exceeded/i.test(o.detail)?"quota":o.code==="STORAGE_NOT_CONFIGURED"?"storage_unavailable":`http_${e}`}var zy=3,Sy=200,Zs=32,_y=e=>typeof e=="string"&&!!e&&e!=="."&&e!==".."&&!/[\\/]/.test(e);function Qs(e,t){return t?e.flatMap(o=>{let r=(o.webkitRelativePath||o.name).split("/");return r.slice(1).some(a=>a.startsWith("."))||r.length-1>Zs?[]:[{file:o,relDir:r.slice(0,-1)}]}):e.map(o=>({file:o,relDir:[]}))}function Qp(e){let t=Array.from(e.items??[]).filter(a=>a.kind==="file").map(a=>({entry:a.webkitGetAsEntry?.()??null,file:a.getAsFile()})),o=[],r=async(a,i)=>{if(i.length>Zs)return!0;if(a.isFile){let c=await new Promise(d=>a.file(d,()=>d(null)));return c&&o.push({file:c,relDir:i}),o.length<=2e3}if(!a.isDirectory)return!0;let s=a.createReader(),l=[];for(;;){let c=await new Promise(d=>s.readEntries(d,()=>d([])));if(!c.length)break;l.push(...c)}l.sort((c,d)=>c.name<d.name?-1:c.name>d.name?1:0);for(let c of l)if(!c.name.startsWith(".")&&!await r(c,[...i,a.name]))return!1;return!0};return(async()=>{for(let a of t)if(a.entry){if(!await r(a.entry,[]))break}else a.file&&o.push({file:a.file,relDir:[]});return o})()}function ef(e,t=window,o={}){let r=[],a=new Map,i=!1,s=0,l=()=>Date.now(),c=()=>Array.from(t.crypto.getRandomValues(new Uint8Array(16)),C=>C.toString(16).padStart(2,"0")).join("");async function d(){let C=await e.getCloud();if(!C.token)throw new Error("not_signed_in");return C}async function f(C,D={}){let H=await d(),E=Vn(H.base,C);if(!E)throw new Error("bad_path");let Z=await qn(H,E,{method:D.method??"GET",headers:{...D.body!==void 0?{"Content-Type":"application/json"}:{},...D.projectSource?{"X-Project-Source":D.projectSource}:{}},body:D.body!==void 0?JSON.stringify(D.body):void 0,signal:AbortSignal.timeout(3e4)});return{status:Z.status,json:await Z.json().catch(()=>null)}}let u=C=>{let{attempt:D,relDir:H,abort:E,samples:Z,file:S,dl:A,...M}=C;return{...M,speed:C.state==="active"?Yp(Z,l()):0}},p=C=>C.state==="active"||C.state==="queued"||C.state==="paused",m=(C,D,H=null)=>{C.state=D,C.error=H,C.abort=null,C.finishedAt=l(),C.samples=[];let E=r.filter(Z=>Z.state==="done"||Z.state==="canceled");for(let Z of E.slice(0,Math.max(0,E.length-Sy)))r.splice(r.indexOf(Z),1);h()},g=C=>{let D=String(C?.message||C);return["too_large","quota","not_signed_in","bad_response","popup_blocked","download_unavailable","download_failed"].includes(D)||D.startsWith("http_")?D:"network"};function h(){if(!i)for(let C of["up","down"]){let D=r.filter(H=>H.kind===C&&H.state==="active").length;for(let H of r){if(D>=zy)break;if(H.kind!==C||H.state!=="queued")continue;D++,H.state="active",H.startedAt=l(),H.done=0,H.samples=[[l(),0]],H.abort=new AbortController;let E=H.abort.signal,Z=++H.attempt,S=()=>H.attempt===Z&&H.state==="active";(C==="up"?x(H,S,E):F(H,S,E)).catch(A=>{S()&&m(H,"failed",g(A))})}}}let y=(C,D)=>{C.done=D;let H=l(),E=C.samples[C.samples.length-1];for((!E||H-E[0]>=200)&&C.samples.push([H,D]);C.samples.length>2&&H-C.samples[0][0]>3500;)C.samples.shift()};function v(C){let D=s,H=()=>{if(i||D!==s)throw new Error("account_changed")};if(!C.relDir.length)return Promise.resolve(C.targetId);let E=a.get(C.batch);E||a.set(C.batch,E=new Map);let Z=E,S=A=>{if(A===0)return Promise.resolve(C.targetId);let M=C.relDir.slice(0,A).join("/"),G=Z.get(M);return G||(G=S(A-1).then(async ee=>{H();let U=C.relDir[A-1],ae=await f("/files",{method:"POST",body:{type:"directory",parentId:ee,name:U},projectSource:C.projectSource});if(H(),ae.status===201&&typeof ae.json?.id=="string")return ae.json.id;if(ae.status===409){let he=await f(`/files${ee==="ROOT"?"":`?parentId=${encodeURIComponent(ee)}`}`,{projectSource:C.projectSource}),qe=Array.isArray(he.json)?he.json.find(me=>me?.fileType==="directory"&&me?.name===U):null;if(qe?.id)return String(qe.id)}throw new Error(ae.status===401?"not_signed_in":`http_${ae.status}`)}),G.catch(()=>Z.delete(M)),Z.set(M,G)),G};return S(C.relDir.length)}async function x(C,D,H){let E=C.file;if(E.size>52428800)throw new Error("too_large");let Z=await v(C);if(!D())return;C.parentId=Z;let S=await d();if(!D())return;let A=Vn(S.base,"/files/upload");if(!A)throw new Error("bad_path");let M=`----penzor${c()}`,{head:G,tail:ee}=Kp(M,{parentId:Z,autoRename:"true"},C.name,E.type||Xs(C.name)),U=await qn(S,A,{method:"POST",headers:{"Content-Type":`multipart/form-data; boundary=${M}`,...C.projectSource?{"X-Project-Source":C.projectSource}:{}},body:new Blob([G,E,ee]),signal:H}),ae=await U.json().catch(()=>null);D()&&(U.status===201||U.status===200?(C.fileId=typeof ae?.id=="string"?ae.id:null,y(C,C.size),m(C,"done")):m(C,"failed",Zp(U.status,ae)))}async function w(C,D,H){D.size=Number(C.headers.get("content-length"))||D.size;let E=C.headers.get("content-type")||"";if(!C.body)return C.blob();let Z=C.body.getReader(),S=[],A=0;for(;;){let{done:M,value:G}=await Z.read();if(M)break;if(!H())throw Z.cancel().catch(()=>{}),new Error("aborted");S.push(G),A+=G.length,y(D,A)}return A>D.size&&(D.size=A),new Blob(S,{type:E})}let z=(C,D)=>{let H=URL.createObjectURL(C),E=t.document.createElement("a");E.href=H,E.download=D,t.document.body.appendChild(E),E.click(),E.remove(),setTimeout(()=>URL.revokeObjectURL(H),6e4)},I=C=>{let D=t.open("","_blank");return D?(D.opener=null,D.location.replace(C),!0):!1};async function F(C,D,H){let E=C.dl,Z=await d();if(!D())return;let S=Vn(Z.base,E.path);if(!S)throw new Error("bad_path");let A=await qn(Z,S,{signal:H});if(!A.ok)throw new Error(A.status===401?"not_signed_in":`http_${A.status}`);let M;if(E.mode==="bytes")M=await w(A,C,D);else{let G=await A.json().catch(()=>null);if(E.mode==="text"){if(typeof G?.content!="string")throw new Error("bad_response");M=new Blob([G.content],{type:Xs(E.name)}),C.size=M.size,y(C,M.size)}else{if(typeof G?.url!="string"||!/^https?:\/\//i.test(G.url))throw new Error("bad_response");let ee=await fetch(G.url,{signal:H,credentials:"omit"}).catch(U=>{if(H.aborted)throw U;return null});if(!ee){if(!D())return;if(o.openExternal)await o.openExternal(G.url);else if(!I(G.url))throw new Error("popup_blocked");if(!D())return;m(C,"done");return}if(!ee.ok)throw new Error(`http_${ee.status}`);M=await w(ee,C,D)}}D()&&(o.saveDownload?await o.saveDownload(M,E.name):z(M,E.name),D()&&m(C,"done"))}let $=(C,D)=>{let H={projectSource:void 0,parentId:void 0,targetId:void 0,fileId:null,localPath:null,...C,id:c(),attempt:0,done:0,state:D?"failed":"queued",error:D??null,abort:null,samples:[],speed:0,startedAt:null,finishedAt:D?l():null};return r.push(H),H};e.handle("penzor:upload",async(C,D)=>{let H=s,E=D??{},Z=(Array.isArray(E.files)?E.files:[]).filter(U=>!!U&&U.file instanceof Blob&&typeof U.file.name=="string"&&Array.isArray(U.relDir)&&U.relDir.length<=Zs&&U.relDir.every(_y)),S=typeof E.parentId=="string"&&Gp.test(E.parentId)?E.parentId:null,A=typeof E.projectSource=="string"&&Jp.test(E.projectSource)?E.projectSource:null;if(!Z.length)return{ok:!1,error:"no_files"};if(!S||!A)return{ok:!1,error:"bad_target"};if(Z.length>2e3)return{ok:!1,error:"too_many",max:2e3};if(!(await e.getCloud()).token)return{ok:!1,error:"not_signed_in"};if(H!==s)return{ok:!1,error:"account_changed"};let M=Z.filter(U=>U.file.size<=52428800).reduce((U,ae)=>U+ae.file.size,0);try{let U=await f("/storage/quota"),ae=Number(U.json?.used),he=Number(U.json?.quota);if(U.status===200&&he>0&&ae+M>he)return{ok:!1,error:"quota",short:ae+M-he}}catch{}if(H!==s)return{ok:!1,error:"account_changed"};if(i)return{ok:!1,error:"disposed"};let G=c(),ee=Z.map(U=>$({kind:"up",name:U.file.name,size:U.file.size,projectSource:A,parentId:U.relDir.length?null:S,targetId:S,batch:G,relDir:U.relDir,file:U.file},U.file.size>52428800?"too_large":void 0).id);return h(),{ok:!0,ids:ee,batch:G}}),e.handle("penzor:download",async(C,D)=>{let H=s,E=D??{},Z=jp.includes(E.mode)?E.mode:null,S=Xp(E.name);if(!Z)return{ok:!1,error:"bad_mode"};if(!S)return{ok:!1,error:"bad_name"};let A=await e.getCloud();if(H!==s)return{ok:!1,error:"account_changed"};if(typeof E.path!="string"||!Vn(A.base,E.path))return{ok:!1,error:"bad_path"};if(!A.token)return{ok:!1,error:"not_signed_in"};if(i)return{ok:!1,error:"disposed"};let M=$({kind:"down",name:S,size:Math.max(0,Number(E.size)||0),relDir:[],batch:typeof E.batch=="string"&&E.batch.length<=64?E.batch:c(),dl:{path:E.path,mode:Z,name:S}});return h(),{ok:!0,id:M.id}}),e.handle("penzor:transfers",()=>({ok:!0,items:r.map(u)})),e.handle("penzor:transfer",(C,D)=>{let H=D??{},E=r.find(S=>S.id===H.id);if(!E)return{ok:!1,error:"not_found"};let Z=()=>{E.abort?.abort(),E.abort=null,E.done=0,E.samples=[]};switch(H.op){case"pause":(E.state==="active"||E.state==="queued")&&(Z(),E.state="paused",h());break;case"resume":E.state==="paused"&&(E.state="queued",h());break;case"cancel":p(E)&&(Z(),m(E,"canceled"));break;case"retry":(E.state==="failed"||E.state==="canceled")&&(E.state="queued",E.error=null,E.finishedAt=null,E.done=0,h());break;case"dismiss":E.state!=="active"&&E.state!=="queued"&&r.splice(r.indexOf(E),1);break;default:return{ok:!1,error:"bad_op"}}return{ok:!0}}),e.handle("penzor:transfers:clear",(C,D)=>{let H=D?.which==="all";for(let E of[...r])(E.state==="done"||E.state==="canceled"||H&&E.state==="failed")&&r.splice(r.indexOf(E),1);return{ok:!0}});let N=C=>{r.some(p)&&(C.preventDefault(),C.returnValue="")};t.addEventListener("beforeunload",N);let Y=()=>{s++;for(let C of r)C.state="canceled",C.abort?.abort();r.length=0,a.clear()};return{reset:Y,dispose(){i=!0,t.removeEventListener("beforeunload",N),Y()}}}var Xo=[{id:"notes",path:"Amadeus"},{id:"agents",path:"agents"},{id:"profile",path:"human"},{id:"plugins",path:"Plugins"}],el=new Set(["Amadeus","agents"]);var To=new Set(["muse"]);var Cy=e=>[...To].some(t=>tl(e,`agents/${t}`));var Pr=(e,t)=>Up(t,e)?.target??"off",tl=(e,t)=>e===t||e.startsWith(t+"/"),Ay=e=>Xo.some(t=>tl(e,t.path)),nl=e=>e.some(t=>t.id==="default")?Ga():"default",Xt=(e,t)=>e.enabled?Pr(e.rules,t):"off";function tf(e,t,o){o==="off"&&(e=e.filter(i=>t?!i.source.startsWith(t+"/"):!i.source||Ay(i.source)));let r=e.find(i=>i.source===t),a=e.filter(i=>i!==r);return t&&Pr(a,t)===o?a:r?e.map(i=>i===r?{...i,target:o}:i):[...e,{id:t?Ga():nl(e),source:t,target:o}]}function nf(e,t,o,r=!1){if(Cy(t))return e;let a=e.rules;if(!e.enabled){let i=a.find(l=>!l.source),s=t?a.filter(l=>l.source&&tl(l.source,t)):[];a=[{id:i?.id??nl(s),source:"",target:"off"},...s],t!=="agents"&&(a=rf(a,"agents","off"))}if(!t)for(let i of Xo)a.some(s=>s.source===i.path)||(a=[...a,{id:Ga(),source:i.path,target:Pr(a,i.path)}]);return Ty({...e,rules:tf(a,t,o)},r)}function Ty(e,t=!1){let o=r=>Pr(e.rules,r)!=="off";return{...e,enabled:Xo.some(r=>o(r.path))||e.rules.some(r=>r.source&&r.target!=="off")||t&&o("")}}function of(e){let t=e.rules.some(o=>o.source==="")?e.rules:[{id:nl(e.rules),source:"",target:"default"},...e.rules];for(let o of Xo)o.id!=="agents"&&Pr(t,o.path)==="off"&&(t=tf(t,o.path,"default"));return t=rf(t,"agents","off"),{...e,enabled:!0,rules:t}}function rf(e,t,o){let r=e.find(a=>a.source===t);return r?e.map(a=>a===r?{...a,target:o}:a):[...e,{id:Ga(),source:t,target:o}]}function ol(e,t){return e.rules.filter(o=>o.source.startsWith(t+"/")&&(!el.has(t)||o.source.split("/").length>2)).length}function rl(e,t){let o=s=>new Map(s.rules.map(l=>[l.source,l.target])),r=o(e),a=o(t),i=e.enabled!==t.enabled?1:0;for(let s of new Set([...r.keys(),...a.keys()]))r.get(s)!==a.get(s)&&i++;return i}var Ey=0,Ga=()=>`rule-${Date.now().toString(36)}-${(Ey++).toString(36)}`;var af={globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18"/>',"user-round":'<circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/>',monitor:'<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>',history:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>',more:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"cloud-off":'<path d="m2 2 20 20"/><path d="M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193"/><path d="M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07"/>',"cloud-check":'<path d="m17 15-5.5 5.5L9 18"/><path d="M5 17.743A7 7 0 1 1 15.71 10h1.79a4.5 4.5 0 0 1 1.5 8.742"/>',"tx-sync":'<path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',down:'<path d="m6 9 6 6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',page:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19A9 3 0 0 0 21 19V5"/><path d="M3 12A9 3 0 0 0 21 12"/>',attachment:'<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/>',trash:'<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>',store:'<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"/><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"/><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',palette:'<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"/><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',undo:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',move:'<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"/><path d="M2 13h10"/><path d="m9 16 3-3-3-3"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>',login:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" x2="3" y1="12" y2="12"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>',up:'<path d="m18 15-6-6-6 6"/>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>',"folder-plus":'<path d="M12 10v6"/><path d="M9 13h6"/><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',pause:'<rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/>',play:'<polygon points="6 3 20 12 6 21 6 3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',check:'<path d="M20 6 9 17l-5-5"/>',alert:'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"tx-up":'<path d="m18 9-6-6-6 6"/><path d="M12 3v14"/><path d="M5 21h14"/>',"tx-down":'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',files:'<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>',notebook:'<path d="M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"/><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><path d="M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"/>',bot:'<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"/><path d="M20.054 15.987H3.946"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',penzor:'<path d="M3 18.5h13.5a4.25 4.25 0 0 0 0-8.5 4.75 4.75 0 0 0-9.5 0 2.5 2.5 0 0 0 5 0"/>'},Ir=({p:e})=>n("div",{class:"pz-ov-kick pz-brand",children:[n(re,{n:"penzor"}),n("b",{children:e.t("penzor.title")}),e.locale()==="zh"&&n("span",{children:ze("en","penzor.title")})]}),re=({n:e})=>n("svg",{viewBox:"0 0 24 24","aria-hidden":"true",dangerouslySetInnerHTML:{__html:af[e]??af.attachment}});var lf=`
|
|
1587
1590
|
.pz-rules{max-width:960px}.pz-rules .pz-rule-head,.pz-rules .pz-rule-tools{display:flex;gap:12px;align-items:center;justify-content:space-between}
|
|
1588
1591
|
.pz-rules .pz-rule-head h1{margin:0}.pz-rules .pz-rule-meta{color:var(--text-muted);font-size:var(--ui-font-meta);margin:6px 0 16px}
|
|
1589
1592
|
.pz-rules .pz-rule-tools{margin-bottom:12px}.pz-rules .pz-rule-enable{display:flex;gap:8px;align-items:center;font-size:var(--ui-font-body)}.pz-rules input[type=checkbox]{accent-color:var(--signal-mark)}
|
|
@@ -1625,7 +1628,7 @@ Content-Type: ${r}\r
|
|
|
1625
1628
|
.pz-cs .pz-ask-foot{display:flex;align-items:center;gap:8px;margin-top:14px}.pz-cs .pz-ask-foot small{flex:1;color:var(--text-faint);font-size:var(--ui-font-meta)}
|
|
1626
1629
|
.pz-cs h3.pz-cs-sec{display:flex;align-items:center;gap:10px;margin:26px 0 0;font-size:var(--ui-font-heading);font-weight:600}
|
|
1627
1630
|
@media(max-width:720px){.pz-cs .pz-cs-child,.pz-cs .pz-cs-subnote{padding-left:16px}.pz-cs .pz-cs-bar{flex-wrap:wrap}.pz-cs .pz-cs-bar .txt{flex-basis:calc(100% - 30px)}}
|
|
1628
|
-
`;async function En(e,...t){let o=Q().cloudInvoke;if(!o)throw Error("content_sync_unavailable");let r=await o(e,...t);if(!r?.ok)throw Error(r?.error??"content_sync_unavailable");return r.value}var Ko=e=>e instanceof Error?e.message:String(e),_y=["merge","cloud","local"],nf={notes:{icon:"notebook",title:"penzor.cat.notes",desc:"penzor.cat.notesDesc"},agents:{icon:"bot",title:"penzor.cat.agents",desc:"penzor.cat.agentsDesc"},profile:{icon:"user-round",title:"penzor.cat.profile",desc:"penzor.cat.profileDesc"},plugins:{icon:"puzzle",title:"penzor.cat.plugins",desc:"penzor.cat.pluginsDesc"}};function Wa({on:e,disabled:t,label:o,onToggle:r}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,disabled:t,onClick:a=>{a.stopPropagation(),r(!e)},children:n("span",{})})}function rf({p:e,legacy:t}){let o=e.t,[r,a]=_(null),[i,s]=_(!0),[l,c]=_(null),[d,f]=_(null),[u,p]=_(0),[m,g]=_(!1),[h,y]=_(!1),[b,w]=_(null),[k,z]=_(!1),[P,F]=_(!1),[$,O]=_(!1),[K,C]=_({}),[D,U]=_(null),[M,Z]=_(!1),[S,A]=_(null),[I,j]=_(null),[ee,H]=_(null),re=ne(!0),he=ne(!1),qe=ne(null),me=async()=>{try{let N=await En(qt.get,e.locale());if(!N?.available){re.current&&s(!1);return}re.current&&(he.current=!0,a(N),s(!0))}catch(N){re.current&&(!he.current&&/unavailable|not a Forsion Extend channel/i.test(String(N))?s(!1):w(Ko(N)))}};J(()=>{re.current=!0,me();let N=setInterval(()=>void me(),1e3);return()=>{re.current=!1,clearInterval(N)}},[]),J(()=>{if(!D&&!M)return;let N=le=>{le instanceof KeyboardEvent&&le.key!=="Escape"||le.type==="mousedown"&&le.target?.closest?.(".pz-cs-menu")||(U(null),Z(!1))};return document.addEventListener("mousedown",N),document.addEventListener("keydown",N),()=>{document.removeEventListener("mousedown",N),document.removeEventListener("keydown",N)}},[D,M]);let De=!!r&&!r.config.enabled&&r.config.revision===0&&!P,Qe=sn(()=>r&&De?Qp(r.config):null,[De,r?.config.revision]),ve=r?l??Qe??r.config:null,Ye=!!r&&!k&&(De||!!l&&tl(r.config,l)>0),Rt=Ye&&ve?JSON.stringify(ve)+"#"+u:"";if(J(()=>{if(f(null),H(null),!Rt)return;let N=!0,le=setTimeout(()=>{En(qt.preview,ve).then(Se=>{N&&re.current&&f(Se)},Se=>{!N||!re.current||(/config_changed/.test(Ko(Se))?c(null):w(Ko(Se)))})},400);return()=>{N=!1,clearTimeout(le)}},[Rt]),!i)return t;if(!r||!ve)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:b??o("penzor.loading")})});if(k)return n(Cy,{p:e,snap:r,refresh:me,back:()=>z(!1)});let W=`device-${r.deviceId}`,pe=r.devices.filter(N=>N.id!==r.deviceId),ke=(r.others?.files??0)>0,Ie=N=>r.sources.find(le=>le.path===N),ge=N=>r.sources.filter(le=>le.path.startsWith(N+"/")&&!le.path.slice(N.length+1).includes("/")),ot=N=>N==="default"?o("penzor.scope.all"):N===W?o("penzor.scope.self"):o("penzor.scope.with",{name:r.devices.find(le=>`device-${le.id}`===N)?.name??N.slice(7,15)}),Ce=(N,le,Se)=>{c(Zp(ve,N,le,ke)),j({path:N,name:Se,target:le}),U(null),w(null),g(!1)},pt=async N=>{y(!0),w(null);try{await N(),await me()}catch(le){w(Ko(le))}finally{y(!1)}},rt=d?.agentAsks??[],un=()=>{if(rt.length&&!ee){H(Object.fromEntries(rt.map(N=>[N.slug,"merge"])));return}Kt(ee??{})},Kt=N=>void pt(async()=>{try{await En(qt.apply,d.token,...Object.keys(N).length?[N]:[])}catch(Ge){if(H(null),/preview_(changed|expired)/.test(Ko(Ge))){g(!0),p(Ft=>Ft+1);return}throw Ge}H(null);let le=Xt(ve,"Plugins")==="default",Se=e.syncState()?.plugins;e.hasSync()&&Se&&Se.on!==le&&e.setSync("plugins",le),c(null),F(!1),g(!1)}),Yt=(N,le,Se)=>{N.stopPropagation();let Ge=N.currentTarget.getBoundingClientRect(),Ft=qe.current.getBoundingClientRect(),xt=document.body.currentCSSZoom||1;U(D?.path===le?null:{path:le,name:Se,x:(Ge.left-Ft.left)/xt-4,y:(Ge.bottom-Ft.top)/xt+4})},zt=({path:N,name:le})=>{let Se=Xt(ve,N);return n("button",{type:"button",class:`pz-scope${Se!=="default"?" is-alt":""}`,"aria-haspopup":"menu","aria-expanded":D?.path===N,onClick:Ge=>Yt(Ge,N,le),children:[n(oe,{n:Se==="default"?"cloud":Se===W?"laptop":"monitor"}),ot(Se),n(oe,{n:"down"})]})},at=An(r),Vt=r.jobs.filter(N=>N.state==="queued"||N.state==="active"||N.state==="paused"),en=Tr(r),ft=at.kind==="off"?n("span",{class:"pz-cs-status",children:[n(oe,{n:"cloud-off"}),o("penzor.cs.statusOff")]}):at.kind==="paused"?n("span",{class:"pz-cs-status",children:[n(oe,{n:"pause"}),o("penzor.cs.statusPaused")]}):at.kind==="run"?n("span",{class:"pz-cs-status is-ok",children:[n("span",{class:"pz-ring",style:`--p:${at.pct}`}),o("penzor.cs.statusRun",{pct:at.pct})]}):at.kind==="scan"?n("span",{class:"pz-cs-status is-ok",children:[n(oe,{n:"refresh"}),o("penzor.cs.statusScan")]}):at.kind==="warn"?n("span",{class:"pz-cs-status is-warn",children:[n(oe,{n:"alert"}),o("penzor.cs.statusWarn",{n:at.n})]}):n("span",{class:"pz-cs-status is-ok",children:[n(oe,{n:"cloud-check"}),at.at?o("penzor.cs.statusOkAgo",{time:Tn(at.at,e.locale())}):o("penzor.cs.statusOk")]}),et=S!=null&&S.trim()!==r.deviceName?qs(S.trim(),r.devices,r.deviceId):null,Ot=(N=!1)=>{let le=S;if(le==null)return;let Se=le.trim();if(Se!==r.deviceName&&qs(Se,r.devices,r.deviceId)){N&&A(null);return}A(null),Se!==r.deviceName&&pt(()=>En(qt.rename,Se))},pn=N=>{let le=/device_name_(taken|reserved|invalid)/.exec(N);return le?o(`penzor.cs.name.${le[1]}`):N},yt=Vt.find(N=>N.state==="active")??Vt[0],bn=(N,le)=>{let Se=nf[N],Ge=Xt(ve,le)!=="off",Ft=Ys.has(le)&&ge(le).length>0,xt=!!K[le]&&Ge,st=el(ve,le),vn=Ie(le),Te=N==="notes"?vn?o("penzor.cat.files",{n:(vn.files??0).toLocaleString(),size:e.b(vn.size)}):"":N==="profile"?o("penzor.cat.profileOn"):o("penzor.cat.pluginsN",{n:ge(le).length}),dt=n("b",{children:[o(Se.title),Ft&&n("span",{class:"pz-cs-chev",children:n(oe,{n:"right"})})]}),Bt=n("small",{children:Ge?n(L,{children:[n(zt,{path:le,name:o(Se.title)}),Te&&n(L,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:Te})]}),st>0&&n(L,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>z(!0),children:o("penzor.cat.custom",{n:st})})]})]}):o(Se.desc)});return n(L,{children:[n("div",{class:`pz-sync-row${Ft&&Ge?" is-click":""}${xt?" is-open":""}`,children:[Ft&&Ge?n("div",{class:"pz-sync-main",role:"button",tabIndex:0,"aria-expanded":xt,onClick:()=>C({...K,[le]:!xt}),onKeyDown:Ve=>{Ve.key==="Enter"&&C({...K,[le]:!xt})},children:[n("span",{class:"pz-tile",children:n(oe,{n:Se.icon})}),n("span",{class:"pz-sync-txt",children:[dt,Bt]})]}):n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(oe,{n:Se.icon})}),n("span",{class:"pz-sync-txt",children:[dt,Bt]})]}),n(Wa,{on:Ge,label:o(Se.title),disabled:h,onToggle:Ve=>Ce(le,Ve?"default":"off",o(Se.title))})]}),xt&&ge(le).map(Ve=>{let Lt=Ve.path.slice(le.length+1),fn=Xt(ve,Ve.path)!=="off";return n("div",{class:"pz-cs-child",title:Ve.path,children:[n("span",{children:[n("b",{children:[Lt,N==="notes"&&n("span",{class:"pz-cs-faint",children:o("penzor.cat.files",{n:(Ve.files??0).toLocaleString(),size:e.b(Ve.size)})})]}),fn?n(zt,{path:Ve.path,name:Lt}):n("span",{class:"pz-cs-faint",children:o("penzor.cat.notSynced")})]}),n(Wa,{on:fn,label:Lt,disabled:h,onToggle:ro=>Ce(Ve.path,ro?Xt(ve,le):"off",Lt)})]},Ve.path)})]},le)},it=()=>{let N=nf.agents,le=r.sources.filter(Te=>Te.agent),Se=new Set(le.map(Te=>Te.path.slice(7))),Ge=[...le.map(Te=>({slug:Te.path.slice(7),name:Te.name,nameEn:Te.nameEn,here:!0})),...(r.cloudAgents??[]).filter(Te=>!Se.has(Te)).map(Te=>({slug:Te,name:void 0,nameEn:void 0,here:!1}))].sort((Te,dt)=>Number(To.has(Te.slug))-Number(To.has(dt.slug))),Ft=Te=>To.has(Te.slug)?o("penzor.agents.muse"):(e.locale()==="en"?Te.nameEn??Te.name:Te.name??Te.nameEn)??Te.slug,xt=Ge.filter(Te=>!To.has(Te.slug)&&Xt(ve,`agents/${Te.slug}`)!=="off").length,st=el(ve,"agents"),vn=Ge.length?o(Xt(ve,"agents")==="off"?"penzor.agents.pickHint":"penzor.agents.legacyHint",{n:xt}):o("penzor.agents.none");return n(L,{children:[n("div",{class:"pz-sync-row pz-cs-group",children:n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(oe,{n:N.icon})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o(N.title)}),n("small",{children:[vn,st>0&&n(L,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>z(!0),children:o("penzor.cat.custom",{n:st})})]})]})]})]})}),Ge.map(Te=>{let dt=`agents/${Te.slug}`,Bt=Ft(Te),Ve=To.has(Te.slug),Lt=!Ve&&Xt(ve,dt)!=="off";return n("div",{class:`pz-cs-child${Ve?" is-locked":""}`,title:dt,"data-agent":Te.slug,children:[n("span",{children:[n("b",{children:[Bt,Bt.toLowerCase()!==Te.slug&&n("span",{class:"pz-cs-slug",children:Te.slug})]}),Ve?n("span",{class:"pz-cs-faint",children:o("penzor.agents.museDesc")}):Lt?n(zt,{path:dt,name:Bt}):n("span",{class:"pz-cs-faint",children:o(Te.here?"penzor.cat.notSynced":"penzor.agents.cloudOnly")})]}),Ve?n("span",{class:"pz-cs-lock",role:"note",children:[n(oe,{n:"lock"}),o("penzor.agents.locked")]}):n(Wa,{on:Lt,label:Bt,disabled:h,onToggle:fn=>Ce(dt,fn?"default":"off",Bt)})]},dt)}),n("div",{class:"pz-cs-subnote",children:o("penzor.agents.historianNote")})]},"agents")},Tt=Ye&&n("div",{class:"pz-cs-bar",role:"region","aria-label":o("penzor.rules.previewTitle"),children:[n(oe,{n:"alert"}),n("span",{class:"txt",children:[De?d?o("penzor.cs.barFirst",{up:d.upload,down:d.download}):o("penzor.cs.firstTitle"):(()=>{let N=tl(r.config,ve);return N===1&&I&&Xt(ve,I.path)===I.target&&Xt(r.config,I.path)!==I.target?o("penzor.cs.barOne",{name:I.name,scope:I.target==="off"?o("penzor.cs.offName"):ot(I.target)}):o("penzor.cs.barChanged",{n:N})})(),n("small",{children:m?o("penzor.cs.barRecount"):d?[De?o("penzor.cs.barSize",{size:e.b(d.bytes)}):o("penzor.cs.barCounts",{up:d.upload,down:d.download}),d.conflicts>0?o("penzor.cs.barConflicts",{n:d.conflicts}):"",De?o("penzor.cs.noDelete"):""].filter(Boolean).join(" \xB7 "):o("penzor.cs.barCounting")})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>{De&&F(!0),c(null),g(!1)},children:o(De?"penzor.cs.later":"penzor.cs.undo")}),n("button",{class:"pz-btn pri",disabled:h||!d||r.running,onClick:un,children:o(De?"penzor.cs.start":"penzor.cs.confirm")})]}),ce=r.agentArchive?.state==="done"&&!r.agentArchive.seen&&r.agentArchive.folderId?r.agentArchive:null,Ze=N=>N==="content_account_changed_preview_required"?o("penzor.cs.accountReview"):N==="agent_archive_running"?o("penzor.agents.archiveRunning"):N.startsWith("agent_open_failed: ")?o("penzor.agents.openFailed",{reason:N.slice(19)}):pn(N),je=N=>{let le=r.sources.find(Se=>Se.agent&&Se.path===`agents/${N}`);return(e.locale()==="en"?le?.nameEn??le?.name:le?.name??le?.nameEn)??N},tn=ee&&d&&rt.length>0&&n("div",{class:"pz-sync-ask pz-ask-card",role:"dialog","aria-modal":"false","aria-label":o("penzor.ask.confirm"),children:[rt.map(N=>n("div",{class:"pz-ask-agent",role:"radiogroup","aria-label":je(N.slug),children:[n("b",{children:o("penzor.ask.title",{name:je(N.slug)})}),n("small",{children:o("penzor.ask.when",{cloud:Jt(N.cloudMtime,e.locale()),local:Jt(N.localMtime,e.locale())})}),_y.map(le=>n("label",{class:"pz-ask-opt",children:[n("input",{type:"radio",name:`ask-${N.slug}`,checked:ee[N.slug]===le,onChange:()=>H({...ee,[N.slug]:le})}),n("span",{children:[n("b",{children:o(`penzor.ask.${le}`)}),le==="merge"&&n("em",{children:o("penzor.ask.recommended")}),n("small",{children:o(`penzor.ask.${le}Desc`)})]})]},le))]},N.slug)),n("div",{class:"pz-ask-foot",children:[n("small",{children:o("penzor.ask.foot")}),n("button",{class:"pz-btn",disabled:h,onClick:()=>H(null),children:o("penzor.ask.cancel")}),n("button",{class:"pz-btn pri",disabled:h||r.running,onClick:()=>Kt(ee),children:o("penzor.ask.confirm")})]})]}),ct=N=>N.direction==="upload"?"tx-up":N.direction==="download"?"tx-down":"tx-sync";return n("div",{class:"pz-scroll",children:[n("style",{children:of}),n("div",{class:"pz-col pz-cs",ref:qe,children:[n(Pr,{p:e}),n("div",{class:"pz-cs-head",children:[n("h1",{class:"pz-h1",children:o("penzor.sync.title")}),ft,n("span",{class:"grow"}),n("button",{class:"pz-btn",disabled:h||r.running||!r.config.enabled,onClick:()=>void pt(()=>En(qt.run)),children:[n(oe,{n:"refresh"}),o("penzor.rules.run")]}),n("button",{class:"pz-btn","aria-label":o("penzor.cs.more"),"aria-haspopup":"menu",onClick:N=>{N.stopPropagation(),Z(!M)},children:n(oe,{n:"more"})})]}),M&&n("div",{class:"pz-cs-menu",style:"right:0;top:64px",role:"menu",children:n("button",{class:"it",role:"menuitem",onClick:()=>{Z(!1),z(!0)},children:[n(oe,{n:"gear"}),n("span",{children:n("b",{children:o("penzor.cs.advanced")})}),n("span",{})]})}),n("div",{class:"pz-cs-meta",children:[n("span",{class:"pz-cs-dev",children:[n(oe,{n:"laptop"}),S!=null?n(L,{children:[o("penzor.cs.thisComputerLabel"),n("input",{value:S,maxLength:64,"aria-label":o("penzor.cs.rename"),ref:N=>N?.focus(),onInput:N=>A(N.currentTarget.value),"aria-invalid":!!et,onKeyDown:N=>{N.key==="Enter"&&Ot(),N.key==="Escape"&&A(null)},onBlur:()=>Ot(!0)}),et?n("span",{class:"pz-cs-warn",role:"alert",children:o(`penzor.cs.name.${et}`)}):n("span",{class:"pz-cs-faint",children:o("penzor.cs.renameHint")})]}):n(L,{children:[o("penzor.cs.thisComputer",{name:r.deviceName}),n("button",{class:"pz-link","aria-label":o("penzor.cs.rename"),title:o("penzor.cs.rename"),onClick:()=>A(r.deviceName),children:n(oe,{n:"pen"})})]})]}),n("span",{children:pe.length?o("penzor.cs.othersN",{n:pe.length,names:pe.map(N=>N.name).join(e.locale()==="zh"?"\u3001":", ")}):o("penzor.cs.noOthers")}),n("button",{class:"pz-link",onClick:()=>O(!$),children:[n(oe,{n:"history"})," ",o("penzor.cs.log")]})]}),(b||r.error)&&n("p",{role:"alert",class:"pz-rule-error",style:"margin-top:14px",children:Ze(b??r.error??"")}),ce&&n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.archive.title"),children:[n("h4",{children:o("penzor.archive.title")}),n("p",{children:o("penzor.archive.body",{shelf:ce.shelfName??o("penzor.archive.shelf"),name:ce.name??""})}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn",disabled:h,onClick:()=>void pt(()=>En(qt.archiveSeen)),children:o("penzor.archive.ok")}),ce.shelfId&&n("button",{class:"pz-btn pri",onClick:()=>e.openFolder([{id:ce.shelfId,name:ce.shelfName??o("penzor.archive.shelf")},{id:ce.folderId,name:ce.name??"",archive:!0}]),children:o("penzor.archive.open")})]})]}),De&&n("div",{class:"pz-sync-ask",children:[n("h4",{children:o("penzor.cs.firstTitle")}),n("p",{children:o("penzor.cs.firstBody")})]}),yt&&n("div",{class:"pz-cs-act",children:[n("div",{class:"row1",children:[n(oe,{n:ct(yt)}),n("span",{class:"grow",children:[o(yt.direction==="download"?"penzor.cs.down":"penzor.cs.up",{name:yt.path.slice(yt.path.lastIndexOf("/")+1)}),yt.size!=null&&n("small",{children:[" ",e.b(yt.done)," / ",e.b(yt.size)]})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>void pt(()=>En(qt.pause,!r.paused)),children:[n(oe,{n:r.paused?"play":"pause"}),o(r.paused?"penzor.rules.resume":"penzor.rules.pause")]})]}),at.kind==="run"&&n("div",{class:"pz-bar",children:n("span",{style:`width:${at.pct}%`})}),Vt.length>1&&n("div",{class:"more",children:o("penzor.cs.waiting",{n:Vt.length-1})})]}),en.length>0&&!yt&&n("div",{class:"pz-cs-act is-warn",children:n("div",{class:"row1",children:[n(oe,{n:"alert"}),n("span",{class:"grow",children:[o("penzor.cs.failedN",{n:en.length}),n("small",{children:[" ",en[0].error??""]})]}),n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void pt(()=>En(qt.retry)),children:o("penzor.cs.retry")}),n("button",{class:"pz-btn",onClick:()=>O(!0),children:o("penzor.cs.seeLog")})]})}),n("div",{class:"pz-sync-card",children:[Xo.map(N=>N.id==="agents"?it():bn(N.id,N.path)),ke&&n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(oe,{n:"folder"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o("penzor.cat.others")}),n("small",{children:Xt(ve,"")!=="off"?n(L,{children:[n(zt,{path:"",name:o("penzor.cat.others")}),n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:o("penzor.cat.files",{n:r.others.files.toLocaleString(),size:e.b(r.others.size)})})]}):o("penzor.cat.othersDesc")})]})]}),n(Wa,{on:Xt(ve,"")!=="off",label:o("penzor.cat.others"),disabled:h,onToggle:N=>Ce("",N?"default":"off",o("penzor.cat.others"))})]})]}),n("p",{class:"pz-cs-note",children:o("penzor.cs.note")}),$&&n(L,{children:[n("h3",{class:"pz-cs-sec",children:[o("penzor.cs.log"),n("span",{class:"grow"}),en.length>0&&n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void pt(()=>En(qt.retry)),children:o("penzor.cs.retry")})]}),n("div",{class:"pz-cs-log",children:r.jobs.length?r.jobs.slice(-30).reverse().map(N=>n("div",{class:"f",children:[n(oe,{n:ct(N)}),n("span",{children:[N.path,N.error&&n("small",{children:[" \xB7 ",N.error]})]}),n("small",{children:[o(`penzor.rules.state.${N.state}`)," \xB7 ",Tn(N.finishedAt??N.at,e.locale())]})]},N.id)):n("p",{class:"pz-cs-note",children:o("penzor.cs.logEmpty")})}),n("p",{class:"pz-cs-note",children:o("penzor.cs.logNote")})]}),tn,!ee&&Tt,D&&n("div",{class:"pz-cs-menu",role:"menu",style:`left:${D.x}px;top:${D.y}px`,children:[n("div",{class:"cap",children:o("penzor.scope.menuTitle",{name:D.name})}),["default",W,...pe.map(N=>`device-${N.id}`)].map((N,le)=>n(L,{children:[le===2&&n("hr",{}),n("button",{class:"it",role:"menuitemradio","aria-checked":Xt(ve,D.path)===N,onClick:()=>Ce(D.path,N,D.name),children:[n(oe,{n:N==="default"?"cloud":N===W?"laptop":"monitor"}),n("span",{children:[n("b",{children:ot(N)}),le<2&&n("small",{children:o(le===0?"penzor.scope.allDesc":"penzor.scope.selfDesc")})]}),Xt(ve,D.path)===N?n("span",{class:"tick",children:n(oe,{n:"check"})}):n("span",{})]})]},N)),D.path==="human"&&n("div",{class:"cap",children:o("penzor.scope.calendarNote")}),n("div",{class:"cap",children:o("penzor.scope.menuFoot")})]})]})]})}function Cy({p:e,snap:t,refresh:o,back:r}){let a=e.t,[i,s]=_(null),[l,c]=_(null),[d,f]=_(!1),[u,p]=_(null),m=i??t.config,g=!!i,h=k=>k==="default"?a("penzor.rules.default"):k==="off"?a("penzor.rules.off"):t.devices.find(z=>"device-"+z.id===k)?.name??`${a("penzor.rules.device")} ${k.slice(7)}`,y=k=>{let z=structuredClone(m);k(z),s(z),c(null),p(null)},b=async k=>{f(!0),p(null);try{await k(),await o()}catch(z){p(Ko(z))}finally{f(!1)}},w=[...new Set(["default",`device-${t.deviceId}`,...t.devices.map(k=>`device-${k.id}`),...m.rules.map(k=>k.target),"off"])];return n("div",{class:"pz-scroll",children:[n("style",{children:of}),n("div",{class:"pz-col pz-rules",children:[n("button",{class:"pz-link",onClick:r,children:["\u2190 ",a("penzor.cs.backSimple")]}),n("div",{class:"pz-rule-head",children:n("h1",{class:"pz-h1",children:a("penzor.cs.advanced")})}),n("p",{class:"pz-rule-meta",children:t.deviceName}),u&&n("p",{role:"alert",class:"pz-rule-error",children:u}),n("div",{class:"pz-rule-tools",children:[n("label",{class:"pz-rule-enable",children:[n("input",{type:"checkbox",checked:m.enabled,onChange:k=>y(z=>{z.enabled=k.currentTarget.checked})}),a("penzor.rules.enable")]}),n("button",{class:"pz-btn",onClick:()=>y(k=>k.rules.push({id:`rule-${crypto.randomUUID()}`,source:"",target:"default"})),children:a("penzor.rules.add")})]}),n("div",{class:"pz-rule-table",children:[n("div",{class:"pz-rule-row pz-rule-label",children:[n("span",{children:a("penzor.rules.source")}),n("span",{children:a("penzor.rules.destination")}),n("span",{})]}),m.rules.map((k,z)=>n("div",{class:"pz-rule-row",children:[n("input",{"aria-label":`${a("penzor.rules.source")} ${z+1}`,list:"pz-content-sources",placeholder:"Forsion",value:k.source,onInput:P=>y(F=>{F.rules[z].source=P.currentTarget.value,delete F.rules[z].sourceId})}),n("select",{"aria-label":`${a("penzor.rules.destination")} ${z+1}`,value:k.target,onChange:P=>y(F=>{F.rules[z].target=P.currentTarget.value}),children:w.map(P=>n("option",{value:P,children:h(P)},P))}),n("button",{class:"pz-btn","aria-label":`${a("penzor.rules.remove")} ${z+1}`,onClick:()=>y(P=>{P.rules.splice(z,1)}),children:"\xD7"})]},k.id))]}),n("datalist",{id:"pz-content-sources",children:t.sources.filter(k=>k.kind==="folder").map(k=>n("option",{value:k.path},k.path))}),n("p",{class:"pz-rule-note",children:[a("penzor.rules.inherit"),n("br",{}),a("penzor.rules.namespace"),n("br",{}),a("penzor.rules.human")]}),n("div",{class:"pz-rule-actions",children:[g&&n("button",{class:"pz-btn",onClick:()=>{s(null),c(null)},children:a("penzor.cancel")}),n("button",{class:"pz-btn pri",disabled:d||t.running,onClick:()=>void b(async()=>c(await En(qt.preview,m))),children:a("penzor.rules.preview")})]}),l&&n("div",{class:"pz-rule-preview",role:"region","aria-label":a("penzor.rules.previewTitle"),children:[n("h2",{children:a("penzor.rules.previewTitle")}),n("p",{children:a("penzor.rules.previewCounts",{up:l.upload,down:l.download,conflicts:l.conflicts})}),n("p",{class:"pz-rule-note",children:a("penzor.rules.retain")}),n("div",{class:"pz-rule-actions",children:[n("button",{class:"pz-btn",onClick:()=>c(null),children:a("penzor.rules.back")}),n("button",{class:"pz-btn pri",disabled:d,onClick:()=>void b(async()=>{await En(qt.apply,l.token),s(null),c(null)}),children:a("penzor.rules.apply")})]})]})]})]})}function al(e){let[,t]=_(0);J(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function Mr(e){return n("div",{ref:e.rootRef,class:`${e.side?"pz-side":"pz"}${e.extra?` ${e.extra}`:""}`,lang:e.p.locale()==="zh"?"zh-CN":"en",...e.on,children:[n("style",{children:Up}),e.children]})}var Yo=({pct:e,warn:t})=>n("div",{class:`pz-bar${t?" is-low":""}`,children:n("span",{style:{width:`${Math.max(0,Math.min(100,e)).toFixed(1)}%`}})});function df({p:e}){al(e);let t=ne(null),o=ne(null);J(()=>{e.enter(),e.refresh(),So(e.loc())&&e.ctx.closeView?.("penzor-info",{collapse:!0});let p=t.current;if(!p||typeof IntersectionObserver>"u")return;let m=!0;e.setVisible(!0);let g=new IntersectionObserver(h=>{let y=h.some(b=>b.isIntersecting);y&&!m&&(e.enter(),e.refresh()),m=y,e.setVisible(y)});return g.observe(p),()=>{g.disconnect(),e.setVisible(!1)}},[e]);let[r,a]=_(null),i=p=>Array.from(p.dataTransfer?.types??[]).includes("Files"),s=p=>{let m=p.target?.closest?.("tr[data-dir-id]");return m?{id:m.dataset.dirId,name:m.dataset.dirName??""}:null},l=()=>e.appStack()[e.appStack().length-1]?.name??e.t("penzor.drive"),c=e.canWrite()&&e.auth()==="in"?{onDragOver:p=>{if(!i(p))return;p.preventDefault(),p.stopPropagation(),p.dataTransfer&&(p.dataTransfer.dropEffect="copy");let m=s(p),g=m?.name||l();(r?.place!==g||r?.target?.id!==m?.id)&&a({place:g,target:m})},onDragLeave:p=>{t.current?.contains(p.relatedTarget)||a(null)},onDrop:p=>{if(!i(p))return;p.preventDefault(),p.stopPropagation();let m=s(p);a(null);let g=Q().getPathForFile;if(!g){p.dataTransfer&&e.upload(Xp(p.dataTransfer),m);return}let h=Array.from(p.dataTransfer?.files??[]).map(y=>{try{return g(y)}catch{return""}}).filter(Boolean);e.upload(h,m)}}:{};J(()=>{e.canWrite()||a(null)},[e.canWrite()]);let d=e.t,f=e.auth(),u;return f==="out"?u=n(uf,{p:e}):e.loc().kind==="sync-home"?u=n(rf,{p:e,legacy:n(Ty,{p:e})}):e.snap()?e.error()?u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()})}):e.loc().kind==="overview"?u=n(My,{p:e,upload:()=>{e.go("app:penzor"),o.current?.click()}}):u=n(Ry,{p:e,dropDir:r?.target?.id??null}):u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()??d("penzor.loading")})}),n(Mr,{p:e,rootRef:t,extra:r?"pz-drop":"",on:c,children:[n("input",{class:"pz-root-upload",ref:o,type:"file",multiple:!0,hidden:!0,onChange:p=>{let m=p.currentTarget,g=Q().getPathForFile,h=g?Array.from(m.files??[]).map(y=>g(y)).filter(Boolean):Ks(Array.from(m.files??[]),!1);e.go("app:penzor"),e.upload(h),m.value=""}}),u,r&&n("div",{class:"pz-dropbar",children:n("span",{children:[n(oe,{n:"upload"}),d("penzor.drop.to",{place:r.place})]})}),e.menu()&&n(By,{p:e}),!rl&&n(xf,{p:e})]})}var Ay={dropbox:"Dropbox",s3:"S3",webdav:"WebDAV"};function nl({on:e,disabled:t,label:o,title:r,onToggle:a}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,title:r,disabled:t,onClick:i=>{i.stopPropagation(),a(!e)},children:n("span",{})})}var ol=({tone:e,text:t,title:o})=>n("span",{class:`pz-sync-state is-${e}`,title:o,children:[e!=="off"&&n("i",{}),t]});function Ty({p:e}){let t=e.t,o=e.syncState(),[r,a]=_(!1);if(!o)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:t("penzor.loading")})});if(!o.signedIn)return n(uf,{p:e});let i=e.snap(),s=o.notes,l=t("penzor.ledger.sync"),c=s.maxBytes??i?.sync?.maxBytes??0,d=i?.sync?.maxFileBytes||50*1024*1024,f=s.vault?i?.sync?.vaults.find(C=>C.vault===s.vault)??null:null,u=Ip(o,c),p=s.on?s.last?.skippedLarge??0:0,m=s.rootName?t("penzor.sync.notesNamed",{name:s.rootName}):t("penzor.sync.notesPlain"),g=()=>e.openSync(),h=()=>{if(s.pending)return{tone:"wait",text:t("penzor.sync.waiting")};if(!s.on)return{tone:"off",text:t("penzor.sync.off")};let C=Co(o);if(C!=null)return{tone:"ok",text:C>0?t("penzor.sync.running",{pct:Math.round(C*100)}):t("penzor.sync.runningPlain")};if(u)return{tone:"warn",text:t("penzor.sync.overQuota")};if(Ar(o))return{tone:"warn",text:t("penzor.sync.failed")};if(s.backend==="folder")return{tone:"ok",text:t("penzor.sync.toFolder")};let D=Ay[s.backend];return D?{tone:"ok",text:t("penzor.sync.to",{name:D})}:s.last?{tone:"ok",text:s.localBytes!=null?t("penzor.sync.doneSize",{size:e.b(s.localBytes)}):t("penzor.sync.done")}:{tone:"ok",text:t("penzor.sync.firstPending")}},y={tone:"off",text:t("penzor.sync.off")},b=(C,D)=>D?`${C} \xB7 ${t("penzor.sync.metaLast",{time:Tn(D,e.locale())})}`:C,w=()=>{let C=o.agents;if(!C.on)return y;if(C.running)return{tone:"ok",text:t("penzor.sync.runningPlain")};let D=t("penzor.sync.agentsN",{n:C.count});return C.last&&!C.last.ok?{tone:"warn",text:t("penzor.sync.failed"),title:C.last.error}:C.last&&C.last.conflicts>0?{tone:"warn",text:t("penzor.sync.conflictsN",{n:C.last.conflicts}),title:t("penzor.sync.conflictsHint")}:{tone:"ok",text:b(D,C.last?.at)}},k=()=>{let C=o.plugins;return C.on?(C.pending??0)>0?{tone:"wait",text:t("penzor.sync.pluginsPending",{n:C.pending})}:{tone:"ok",text:b(t("penzor.sync.pluginsN",{n:C.count}),C.lastAt)}:y},z=C=>D=>{e.setSync(C,D)},P=s.available===!1&&!s.on&&(s.backend==="off"||s.backend==="penzor"),F=[e.thisDevice()?t("penzor.sync.metaDevice",{name:e.thisDevice()}):null,s.on?s.last?t("penzor.sync.metaLast",{time:Tn(s.last.at,e.locale())}):t("penzor.sync.metaNever"):null,s.on&&s.backend!=="off"?Hs(s,e.locale()):null].filter(C=>!!C),$=h(),O=f?[...new Set([...f.devices,...f.device?[f.device]:[]])]:[],K=i?.ama?i.ama.reduce((C,D)=>C+D.sizeBytes,0):null;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Pr,{p:e}),n("div",{class:"pz-title pz-sync-head",children:[n("h1",{class:"pz-h1",children:t("penzor.sync.title")}),n("span",{class:"pz-badge",children:[n(oe,{n:"check"}),Dp(o,e.locale())]})]}),F.length>0&&n("div",{class:"pz-meta",children:F.map(C=>n("span",{children:C},C))}),s.pending&&n(Ey,{p:e,s:o}),u&&n("div",{class:"pz-sync-ask is-warn",role:"region",children:[n("h4",{children:s.localBytes!=null&&c>0?t("penzor.sync.quotaTitle",{size:e.b(s.localBytes),ledger:l,max:e.b(c)}):t("penzor.sync.quotaTitlePlain",{ledger:l})}),n("p",{children:[t("penzor.sync.quotaBody"),p>0&&` ${t("penzor.sync.quotaLarge",{size:e.b(d),n:p})}`]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void zn("membership").then(C=>{C||e.ctx.app?.notify?.(t("err.openFailed"))}),children:t("member.upgrade")}),f&&n("button",{class:"pz-btn",onClick:()=>e.go(`sync:${f.vault}`),children:t("penzor.sync.quotaSee")})]})]}),n("div",{class:"pz-sync-card",children:[n("div",{class:`pz-sync-row is-click${r?" is-open":""}`,children:[n("button",{type:"button",class:"pz-sync-main","aria-expanded":r,onClick:()=>a(!r),children:[n("span",{class:"pz-tile",children:n(oe,{n:"notebook"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:m}),n("small",{children:t("penzor.sync.notesDesc")})]}),n(ol,{...$})]}),n(nl,{on:s.on&&!s.pending,label:m,disabled:!!s.pending||P||e.syncBusy("notes"),title:s.pending?t("penzor.sync.decideAbove"):void 0,onToggle:z("notes")})]}),r&&n("div",{class:"pz-sync-sub",children:[n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSchedule")}),n("span",{children:Hs(s,e.locale())}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvDirection")}),n("span",{children:t(`penzor.sync.dir.${s.direction}`)}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),p>0&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSkipped")}),n("span",{children:t("penzor.sync.skippedN",{n:p,size:e.b(d)})}),n("span",{})]}),s.backend==="penzor"&&s.vault&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvWhere")}),n("span",{children:i?.sync&&c>0?t("penzor.sync.whereUsed",{ledger:l,vault:s.vault,used:e.b(i.sync.usedBytes),max:e.b(c)}):t("penzor.sync.where",{ledger:l,vault:s.vault})}),f?n("button",{class:"pz-link",onClick:()=>e.go(`sync:${f.vault}`),children:t("penzor.sync.open")}):n("span",{})]})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(oe,{n:"bot"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.agents")}),n("small",{children:t("penzor.sync.agentsDesc")})]}),n(ol,{...w()})]}),n(nl,{on:o.agents.on,label:t("penzor.sync.agents"),disabled:e.syncBusy("agents"),onToggle:z("agents")})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(oe,{n:"puzzle"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.plugins")}),n("small",{children:t("penzor.sync.pluginsDesc")})]}),n(ol,{...k()})]}),n(nl,{on:o.plugins.on,label:t("penzor.sync.plugins"),disabled:e.syncBusy("plugins"),onToggle:z("plugins")})]})]}),n("div",{class:"pz-h3",children:t("penzor.sync.devicesTitle")}),i?O.length===0?n("p",{class:"pz-sync-none",children:t("penzor.sync.noDevices")}):n("div",{class:"pz-rows pz-sync-dev",children:O.map(C=>n("div",{class:"row",children:[n(oe,{n:"laptop"}),n("span",{class:"t",children:[C,C===e.thisDevice()&&n("em",{children:t("penzor.sync.thisOne")})]}),n("span",{class:"s",children:f?.device===C&&f.updatedAt?t("penzor.sync.lastWrite",{time:Tn(Date.parse(f.updatedAt),e.locale())}):""})]},C))}):n("p",{class:"pz-sync-none",children:t("penzor.loading")}),n("div",{class:"pz-h3",children:t("penzor.sync.phoneTitle")}),n("div",{class:"pz-tip",children:[n(oe,{n:"info"}),n("span",{children:K!=null?t("penzor.sync.phoneTip",{size:e.b(K)}):t("penzor.sync.phoneTipPlain")})]}),n("p",{class:"pz-note",children:[t("penzor.sync.foot"),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.footLink")})]})]})})}function Ey({p:e,s:t}){let o=e.t,r=t.notes.pending,a=e.syncBusy("resolve"),i=new Date,s=o("penzor.sync.backupName",{name:t.notes.rootName??o("penzor.sync.notesPlain"),date:`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}),l=r.cloudDevice?o("penzor.sync.askCloud",{device:r.cloudDevice,files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)}):o("penzor.sync.askCloudNoDevice",{files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)});return n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.sync.askTitle"),children:[n("h4",{children:o("penzor.sync.askTitle")}),n("p",{children:[l," ",o("penzor.sync.askLocal",{local:r.localOnly.toLocaleString(),conflicts:r.conflicts.toLocaleString()})]}),e.confirmCloud()?n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.sync.askConfirm",{backup:s})}),n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("cloud"),children:o("penzor.sync.askConfirmGo")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!1),children:o("penzor.cancel")})]}):n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("merge"),children:o("penzor.sync.askMerge")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!0),children:o("penzor.sync.askCloudBtn")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>void e.resolveNotes("skip"),children:o("penzor.sync.askSkip")})]}),n("p",{class:"pz-sync-explain",children:o("penzor.sync.askExplain",{backup:s})})]})}function uf({p:e}){let t=e.t;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-empty",children:[n("span",{class:"ic",children:n(oe,{n:"cloud"})}),n("h2",{children:t("penzor.out.title")}),n("p",{children:t("penzor.out.lead")}),n("button",{class:"pz-btn pri",onClick:()=>e.signIn(),children:[n(oe,{n:"login"}),t("penzor.out.signIn")]})]})})}function Py({p:e}){let t=e.t,o=e.snap()?.ledger,r=e.snap()?.ledgerStale,a=!!o?.complete&&o.usage.usedBytes!=null;return n("div",{class:"pz-unified-quota",role:"status",children:[n("div",{class:"pz-total",children:[n("b",{children:a?e.b(o.usage.usedBytes):"\u2014"}),n("span",{children:o?t("penzor.ofMax",{max:e.b(o.quota.limitBytes)}):t("penzor.unified.unavailable")})]}),a&&(o.state==="warn"||o.state==="over"?n(Yo,{pct:o.quota.limitBytes>0?o.usage.usedBytes/o.quota.limitBytes*100:100,warn:!0}):n(Iy,{p:e})),n("p",{class:"pz-note",children:r?t("penzor.unified.stale"):a?o.enforcement?t("penzor.unified.enforced"):o.phase==="grace"?t("penzor.unified.grace",{date:Jt(Math.max(Date.parse(o.rollout?.graceUntil??""),Date.parse(o.rollout?.compatibilityUntil??"")||0),e.locale())}):o.state==="over"?t("penzor.unified.over"):o.state==="warn"?t("penzor.unified.warn"):`${t("penzor.unified.notice")} \xB7 ${t("penzor.unified.accounting",{trash:e.b(o.usage.trashBytes)})}`:t("penzor.unified.incomplete")}),o?.rollout&&!r&&n("div",{class:"pz-tip",children:[n("p",{children:t("penzor.unified.rolloutPolicy")}),!o.rollout.acknowledgedAt&&n("button",{class:"pz-btn",onClick:()=>void e.acknowledgeStorageNotice(),children:t("penzor.unified.ack")})]})]})}var ja=(e,t)=>t>0&&e/t>=.8;function My({p:e,upload:t}){let o=e.t,r=e.snap(),a=r?.ledger,i=e.content(),s=Fs(r,i),l=b=>{let w=a?.sources.find(k=>k.id===b);return w?.status==="ready"?w.liveBytes+w.trashBytes:null},c=b=>{let w=l(b);return w==null?o("penzor.unified.unavailable"):e.b(w)},d=b=>()=>e.go(b),f=(b,w,k,z,P,F="folder")=>n("button",{class:`row${P?" is-warn":""}`,onClick:d(b),children:[n(oe,{n:F}),n("span",{class:"t",children:[w,n("em",{children:P??k})]}),n("span",{class:"s",children:z}),n(oe,{n:"right"})]},b),u=r?.apps&&ja(r.apps.used,r.apps.quota)?o("penzor.quota.sourceLimit",{max:e.b(r.apps.quota),used:e.b(r.apps.used)}):void 0,p=r?.sync&&ja(r.sync.usedBytes,r.sync.maxBytes)?o("penzor.quota.sourceLimit",{max:e.b(r.sync.maxBytes),used:e.b(r.sync.usedBytes)}):void 0,m=i?An(i):null,g=i?.deviceId,h=(r?.contentDevices??[]).filter(b=>b.id!==g),y=f("source:sync",o(s?"penzor.tree.legacy":"penzor.ledger.sync"),o(s?"penzor.ov.legacy":"penzor.ov.sync"),c("sync"),p);return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Pr,{p:e}),n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.drive")}),n("button",{class:"pz-btn",onClick:t,children:[n(oe,{n:"upload"}),o("penzor.unified.uploadTo")]})]}),n(Py,{p:e}),n("div",{class:"pz-ov-group",children:o("penzor.ov.mine")}),n("div",{class:"pz-rows",children:[f("app:penzor",o("penzor.uploads"),o("penzor.ov.uploads"),c("uploads")),Ns(a)&&f("source:market",o("penzor.source.market"),o("penzor.ov.market"),c("market"),void 0,"store")]}),n("div",{class:"pz-ov-group",children:o("penzor.ov.synced")}),n("div",{class:"pz-rows",children:s&&r?.contentDevices?n(L,{children:[f("content:default",o("penzor.scope.all"),m?.kind==="ok"&&m.at?o("penzor.ov.allLast",{time:Tn(m.at,e.locale())}):o("penzor.ov.all"),""),g&&f(`content:device-${g}`,o("penzor.tree.thisBackup"),o("penzor.ov.self"),""),h.map(b=>f(`content:device-${b.id}`,b.name,o("penzor.ov.device"),""))]}):n(L,{children:[y,f("source:agents",o("penzor.source.agents"),o("penzor.ov.agents"),c("agents")),f("source:profile",o("penzor.source.profile"),o("penzor.ov.profile"),c("profile"))]})}),n("div",{class:"pz-ov-group",children:o("penzor.tree.byApp")}),n("div",{class:"pz-rows",children:[f("source:ama",o("penzor.ledger.ama"),o("penzor.ov.ama"),c("ama")),f("source:apps",o("penzor.ledger.apps"),o("penzor.ov.apps"),c("apps"),u),f("source:plugins",o("penzor.source.plugins"),o("penzor.ov.plugins"),c("plugins")),f("exports",o("penzor.ledger.exports"),o("penzor.ov.exports"),c("exports"))]}),s&&n(L,{children:[n("div",{class:"pz-ov-group",children:o("penzor.ov.stale")}),n("div",{class:"pz-rows is-stale",children:y})]}),n("p",{class:"pz-note",children:o("penzor.unified.policy")})]})})}function Iy({p:e}){let t=e.snap()?.ledger;if(!t?.complete||t.usage.usedBytes==null||t.quota.limitBytes<=0)return null;let o=e.t,r=s=>{let l=t.sources.find(c=>c.id===s);return l?.status==="ready"?l.liveBytes+l.trashBytes:0},a=[[o("penzor.ov.segNotes"),r("ama")],[o("penzor.ledger.apps"),r("apps")],[o("penzor.ov.segSync"),r("sync")],[o("penzor.uploads"),r("uploads")]];a.push([o("penzor.ov.segOther"),Math.max(0,t.usage.usedBytes-a.reduce((s,[,l])=>s+l,0))]);let i=a.filter(([,s])=>s>0);return n(L,{children:[n("div",{class:"pz-seg",role:"img","aria-label":i.map(([s,l])=>`${s} ${e.b(l)}`).join(", "),children:i.map(([s,l],c)=>n("span",{class:`c${c}`,style:{width:`${Math.max(.6,l/t.quota.limitBytes*100)}%`}},s))}),n("div",{class:"pz-legend",children:i.map(([s,l],c)=>n("span",{children:[n("i",{class:`c${c}`}),s," ",n("b",{children:e.b(l)})]},s))})]})}function Ry({p:e,dropDir:t}){let o=e.t,r=e.loc(),a=e.snap(),i=e.rows(),[s,l]=_(!1),[c,d]=_(null),f=ne(null),u=ne(null),p=ne(null),m=e.canWrite(),g=e.selection();J(()=>(e.picker.files=()=>f.current?.click(),e.picker.folder=()=>u.current?.click(),()=>{e.picker.files=void 0,e.picker.folder=void 0}),[e]);let h=(S,A)=>{let I=S.currentTarget,j=Q().getPathForFile,ee=Array.from(I.files??[]);if(!j){I.value="",e.upload(Ks(ee,A));return}let H=ee.map(he=>{try{return j(he)}catch{return""}}),re=H.filter(Boolean);if(A){let he=new Set;ee.forEach((qe,me)=>{let De=qe.webkitRelativePath??"",Qe=H[me];!De||!Qe||Qe.length<De.length||he.add(Qe.slice(0,Qe.length-De.length)+De.split("/")[0])}),re=[...he]}I.value="",e.upload(re)},y=(S,A)=>{e.select(A,{toggle:S.metaKey||S.ctrlKey,range:S.shiftKey}),p.current?.focus({preventScroll:!0})},b=S=>{if(S.target?.tagName!=="INPUT"){if((S.metaKey||S.ctrlKey)&&S.key.toLowerCase()==="a"&&e.canMulti())S.preventDefault(),e.selectAll();else if(S.key==="Escape"&&g.length>1){S.preventDefault();let A=e.selected();e.select(A)}}},w=r.kind==="sync"?o(e.content()?.config.enabled?"penzor.tree.legacy":"penzor.ledger.sync"):r.kind==="ama"?o("penzor.ledger.ama"):r.kind==="app"&&!e.canWrite()?o("penzor.ledger.apps"):null,k=r.kind==="content"?pf(e,r.namespace):r.kind==="sync"?r.vault:r.kind==="ama"?a.ama?.find(S=>S.id===r.vaultId)?.name??"":r.kind==="app"?e.appLabel(r.appId):r.kind==="source"?o(Cr[r.source]):r.kind==="exports"?o("penzor.ledger.exports"):o("penzor.trash"),z=r.kind==="app"?e.appStack().map(S=>S.name):e.path()?e.path().split("/"):[],P=[...w?[{label:w,depth:null}]:[],{label:k,depth:0},...z.map((S,A)=>({label:S,depth:A+1}))],F=["mtime","size","name"],$=()=>e.setSort(F[(F.indexOf(e.sort())+1)%F.length]),O=r.kind==="sync"?o("penzor.col.device"):r.kind==="trash"?o("penzor.col.origin"):r.kind==="exports"?o("penzor.col.app"):null,K=r.kind==="trash"?o("penzor.col.deleted"):o("penzor.col.mtime"),C=()=>{if(r.kind==="content"){let A=e.content()?An(e.content()):null,I=e.content()?.deviceId,j=r.namespace==="default"?o("penzor.content.noteAll"):r.namespace===`device-${I}`?o("penzor.content.noteSelf"):o("penzor.content.noteDevice",{name:k});return n(L,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:k}),n("span",{class:"pz-badge",children:[n(oe,{n:"cloud"}),A?.kind==="ok"&&A.at?o("penzor.content.badgeLast",{time:Tn(A.at,e.locale())}):o("penzor.content.badge")]})]}),n("p",{class:"pz-note",children:j})]})}if(r.kind==="source"&&r.source==="market"){let A=a.ledger?.sources.find(j=>j.id==="market"),I=A?.status==="ready";return n(L,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.source.market")}),n("span",{class:"pz-badge",children:[n(oe,{n:"store"}),o("penzor.market.badge")]})]}),I&&n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.market.meta",{size:e.b(A.liveBytes+A.trashBytes),n:(A.fileCount??0).toLocaleString()})}),(A.historyBytesExcluded??0)>0&&n("span",{children:o("penzor.market.history",{size:e.b(A.historyBytesExcluded)})})]}),n("p",{class:"pz-note",children:o("penzor.source.marketNote")})]})}if(r.kind==="source")return n(L,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o(Cr[r.source])}),n("span",{class:"pz-badge",children:[n(oe,{n:"lock"}),o("penzor.unified.readonly")]})]}),n("p",{class:"pz-note",children:o(r.source==="plugins"?"penzor.source.pluginNote":"penzor.source.readonly")})]});if(r.kind==="sync"){let A=a.sync?.vaults.find(ee=>ee.vault===r.vault);if(!A)return null;let I=!!e.thisDevice()&&A.devices.includes(e.thisDevice()),j=a.sync;return n(L,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A.vault}),I&&!e.content()?.config.enabled&&n("span",{class:"pz-badge",children:[n(oe,{n:"refresh"}),o("penzor.sync.thisDevice")]})]}),e.content()?.config.enabled&&n("div",{class:"pz-legacy",children:[n(oe,{n:"history"}),n("span",{children:[o("penzor.legacy.title"),n("small",{children:o("penzor.legacy.body")})]}),n("button",{class:"pz-btn",onClick:()=>e.go("content:default"),children:o("penzor.legacy.go")})]}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A.bytes),n:A.files.toLocaleString()})}),A.updatedAt&&n("span",{children:A.device?o("penzor.sync.last",{time:Jt(Date.parse(A.updatedAt),e.locale()),device:A.device}):o("penzor.sync.lastNoDevice",{time:Jt(Date.parse(A.updatedAt),e.locale())})}),A.devices.length>0&&n("span",{children:o("penzor.sync.devices",{n:A.devices.length})})]}),ja(j.usedBytes,j.maxBytes)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:j.usedBytes/j.maxBytes*100,warn:j.usedBytes/j.maxBytes>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(j.maxBytes),used:e.b(j.usedBytes)})})]})]})}if(r.kind==="ama"){let A=a.ama?.find(I=>I.id===r.vaultId);return n(L,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A?.name}),n("span",{class:"pz-badge",children:[n(oe,{n:"cloud"}),"Amadeus Cloud"]})]}),n("div",{class:"pz-meta",children:[n("span",{children:e.b(A?.sizeBytes??0)}),n("span",{children:o("penzor.unified.counted")})]})]})}if(r.kind==="app"){let A=a.apps?.apps.find(j=>j.appId===r.appId),I=a.apps;return n(L,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:e.appLabel(r.appId)})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A?.bytes??0),n:(A?.files??0).toLocaleString()})}),!e.canWrite()&&n("span",{children:o("penzor.apps.by",{app:e.appLabel(r.appId)})})]}),e.canWrite()&&n("div",{class:"pz-meta",children:a.ledger?.complete&&a.ledger.usage.usedBytes!=null?n(L,{children:[n("span",{children:o("penzor.drive.total",{used:e.b(a.ledger.usage.usedBytes),max:e.b(a.ledger.quota.limitBytes)})}),n("button",{class:"pz-link",onClick:()=>e.go("ov"),children:o("penzor.drive.seeAll")})]}):n("span",{children:o("penzor.unified.unavailable")})}),I&&ja(I.used,I.quota)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:I.used/I.quota*100,warn:I.used/I.quota>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(I.quota),used:e.b(I.used)})})]})]})}if(r.kind==="exports")return n(L,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.ledger.exports")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(a.exports?.totalBytes??0),n:(a.exports?.total??0).toLocaleString()})}),n("span",{children:o("penzor.card.expFoot")})]})]});let S=i??[];return n(L,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.trash")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.trash.meta",{n:S.length,size:e.b((a.trash??[]).reduce((A,I)=>A+(Number(I.fileSize)||0),0))})}),n("span",{children:o("penzor.trash.note")})]}),e.confirmEmpty()&&n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.confirm.empty",{n:S.length})}),n("button",{class:"pz-btn danger solid",onClick:()=>void e.emptyTrash(),children:o("penzor.trash.emptyBtn")}),n("button",{class:"pz-btn",onClick:()=>e.setConfirmEmpty(!1),children:o("penzor.cancel")})]})]})},D=e.selected(),U=g.length>1,M=g.reduce((S,A)=>S+(A.dir?0:A.size),0),Z=e.txRows();return n(L,{children:[n("div",{class:"pz-top",children:[n("nav",{class:"pz-crumb",children:P.map((S,A)=>{let I=A===P.length-1,j=I?n("b",{children:S.label}):S.depth==null?n("span",{children:S.label}):n("button",{onClick:()=>e.up(S.depth),children:S.label});return n("span",{style:{display:"contents"},children:[j,!I&&n("i",{children:"\u203A"})]},A)})}),n("span",{class:"pz-sp"}),U?n(L,{children:[n("span",{class:"pz-selbar",children:o("penzor.sel.bar",{n:g.length,size:e.b(M)})}),g.some(S=>!S.dir)&&n("button",{class:"pz-btn",onClick:()=>void e.downloadMany(g),children:[n(oe,{n:"download"}),o("penzor.act.download")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"move",at:[]}),children:[n(oe,{n:"move"}),o("penzor.act.move")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn danger",onClick:()=>void e.trashMany(g),children:[n(oe,{n:"trash"}),o("penzor.act.trash")]}),n("button",{class:"pz-ibtn",title:o("penzor.act.clearSel"),onClick:()=>e.select(D),children:n(oe,{n:"x"})})]}):n(L,{children:[z.length>0&&n("button",{class:"pz-ibtn",title:o("penzor.act.up"),onClick:()=>e.up(),children:n(oe,{n:"up"})}),r.kind==="source"&&(r.source==="agents"||r.source==="profile")&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.(r.source==="agents"?"agents":"calendar").then(S=>{S||e.ctx.app?.notify?.(o("penzor.source.entryUnavailable"))}),children:o(r.source==="agents"?"penzor.source.openAgents":"penzor.source.openCalendar")}),r.kind==="ama"&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.("amadeus"),children:[n(oe,{n:"book"}),o("penzor.ama.open")]}),r.kind==="app"&&r.appId==="connect"&&e.ctx.app?.openSettings&&n("button",{class:"pz-chip",onClick:()=>e.ctx.app?.openSettings?.(Mn("webpages")),children:[n(oe,{n:"globe"}),o("penzor.hosted.open")]}),r.kind==="trash"&&e.canEmptyTrash()&&n("button",{class:"pz-btn danger",onClick:()=>e.setConfirmEmpty(!0),children:[n(oe,{n:"trash"}),o("penzor.trash.emptyBtn")]}),m&&n("span",{class:"pz-split",children:[n("button",{class:"pz-btn pri",onClick:()=>e.picker.files?.(),children:[n(oe,{n:"upload"}),o("penzor.act.upload")]}),n("button",{class:"pz-btn pri more",title:o("penzor.act.uploadMore"),"aria-label":o("penzor.act.uploadMore"),onClick:S=>{let A=S.currentTarget.getBoundingClientRect();d({x:A.right,y:A.bottom+4})},children:n(oe,{n:"down"})})]}),m&&n("button",{class:"pz-ibtn",title:o("penzor.act.newFolder"),onClick:()=>e.startNewFolder(),children:n(oe,{n:"folder-plus"})}),s||e.query()?n("input",{class:"pz-find",placeholder:o("penzor.search"),value:e.query(),autoFocus:!0,onInput:S=>e.setQuery(S.currentTarget.value),onKeyDown:S=>{S.key==="Escape"&&(e.setQuery(""),l(!1))},onBlur:()=>{e.query()||l(!1)}}):n("button",{class:"pz-ibtn",title:o("penzor.search"),onClick:()=>l(!0),children:n(oe,{n:"search"})}),n("button",{class:"pz-chip",onClick:$,children:[r.kind==="trash"&&e.sort()==="mtime"?o("penzor.sort.deleted"):o(`penzor.sort.${e.sort()}`),n(oe,{n:"down"})]})]})]}),m&&n(L,{children:[n("input",{ref:f,type:"file",multiple:!0,hidden:!0,onChange:S=>h(S,!1)}),n("input",{ref:u,type:"file",hidden:!0,webkitdirectory:!0,onChange:S=>h(S,!0)})]}),c&&n(gf,{x:c.x,y:c.y,alignRight:!0,onClose:()=>d(null),items:[{id:"files",label:o("penzor.act.uploadFiles"),icon:"upload",run:()=>e.picker.files?.()},{id:"folder",label:o("penzor.act.uploadFolder"),icon:"folder",run:()=>e.picker.folder?.()}]}),n("div",{class:"pz-scroll",ref:p,tabIndex:-1,onKeyDown:b,onContextMenu:S=>{!m||S.target.closest("tr")||(S.preventDefault(),e.openMenu(S.clientX,S.clientY,null))},children:n("div",{class:"pz-col",children:[C(),e.rowsError()?n("p",{class:"pz-note",children:o("penzor.err",{reason:e.rowsError()})}):i?i.length===0&&!Z.length&&e.newFolder()==null?n("p",{class:"pz-note",children:e.query()?o("penzor.noMatch",{q:e.query()}):m&&!z.length?o("penzor.drive.empty"):o("penzor.folderEmpty")}):r.kind==="source"&&r.source==="market"?n(Dy,{p:e,rows:i}):n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:K}),O&&n("th",{children:O})]})}),n("tbody",{children:[e.newFolder()!=null&&n(Oy,{p:e,cols:O?4:3}),i.map((S,A)=>n(L,{children:[!S.dir&&(A===0||i[A-1].dir)&&Z.map(I=>n(cf,{p:e,x:I},I.key)),n("tr",{class:`${e.isSelected(S.key)?"sel":""}${t&&t===S.key?" drop":""}`,"data-dir-id":m&&S.dir?S.key:void 0,"data-dir-name":m&&S.dir?S.name:void 0,onMouseDown:I=>{I.shiftKey&&I.preventDefault()},onClick:I=>y(I,S),onDblClick:()=>{S.dir?e.openDir(S):e.download(S)},onContextMenu:I=>{I.preventDefault(),e.openMenu(I.clientX,I.clientY,S)},children:[n("td",{class:"n",children:n("span",{children:[n(oe,{n:Ha(S.name,S.dir)}),r.kind==="content"&&!z.length&&lf[S.name]?n(L,{children:[n("b",{children:o(lf[S.name])}),n("em",{class:"cnt",children:[S.name,(S.count??0)>0&&` \xB7 ${o("penzor.card.expSmall",{n:S.count.toLocaleString()})}`]})]}):n(L,{children:[n("b",{children:S.name}),S.count!=null&&S.count>0&&n("em",{class:"cnt",children:S.count.toLocaleString()})]})]})}),n("td",{class:"r",children:S.dir&&r.kind==="app"?"\u2014":e.b(S.size)}),n("td",{children:Jt(S.mtime,e.locale())}),O&&n("td",{class:S.col4?"":"dim",children:S.col4?S.col4===e.thisDevice()?o("penzor.side.thisDevice",{name:S.col4}):S.col4:"\u2014"})]})]},S.key)),(i.length===0||i[i.length-1].dir)&&Z.map(S=>n(cf,{p:e,x:S},S.key))]})]}):n("p",{class:"pz-note",children:o("penzor.loading")}),r.kind==="trash"&&!!e.snap()?.amaTrash?.length&&n(Ny,{p:e})]})})]})}var af={plugin:"penzor.market.type.plugin",skill:"penzor.market.type.skill",agent:"penzor.market.type.agent",space:"penzor.market.type.space",theme:"penzor.market.type.theme","amadeus-plugin":"penzor.market.type.amadeusPlugin"},sf={approved:"penzor.market.status.approved",pending:"penzor.market.status.pending",rejected:"penzor.market.status.rejected"},Ly={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",theme:"palette",space:"archive"};function Dy({p:e,rows:t}){let o=e.t;return n("table",{class:"pz-table pz-market",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{children:o("penzor.col.type")}),n("th",{children:o("penzor.col.status")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:o("penzor.col.mtime")})]})}),n("tbody",{children:t.map(r=>{let a=r.ref?.market,i=a?a.counted?[a.version?`v${a.version.replace(/^v/i,"")}`:"",a.pending?o("penzor.market.updating"):"",a.historyBytes>0?o("penzor.market.older",{size:e.b(a.historyBytes)}):""].filter(Boolean).join(" \xB7 "):o(a.source==="npm"?"penzor.market.fromNpm":"penzor.market.fromGithub"):"";return n("tr",{children:[n("td",{class:"n",children:n("span",{children:[n(oe,{n:Ly[a?.type??""]??"archive"}),n("b",{children:r.name}),i&&n("em",{class:"cnt",children:i})]})}),n("td",{children:a&&af[a.type]?o(af[a.type]):a?.type??"\u2014"}),n("td",{children:a&&n("span",{class:`pz-badge${a.status==="rejected"?" is-warn":""}`,children:sf[a.status]?o(sf[a.status]):a.status})}),n("td",{class:"r",children:a&&!a.counted?o("penzor.market.notCounted"):e.b(r.size)}),n("td",{children:Jt(r.mtime,e.locale())})]},r.key)})})]})}function pf(e,t){return t==="default"?e.t("penzor.scope.all"):t===`device-${e.content()?.deviceId}`?e.t("penzor.tree.thisBackup"):e.snap()?.contentDevices?.find(r=>`device-${r.id}`===t)?.name||`Forsion-${t.slice(7,15)}`}var lf={Amadeus:"penzor.cat.notes",agents:"penzor.source.agents",human:"penzor.cat.profile",Plugins:"penzor.cat.plugins"};function Ny({p:e}){let t=e.snap()?.amaTrash;return n("section",{class:"pz-ama-trash",children:[n("h3",{class:"pz-h3",children:e.t("penzor.trash.ama")}),n("p",{class:"pz-note",children:e.t("penzor.trash.amaNote")}),t?t.length?n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:e.t("penzor.col.name")}),n("th",{children:e.t("penzor.col.size")}),n("th",{children:e.t("penzor.trash.expires")})]})}),n("tbody",{children:t.map(o=>n("tr",{children:[n("td",{children:[o.vaultName," / ",o.path]}),n("td",{children:e.b(o.size)}),n("td",{children:Jt(Date.parse(o.expiresAt),e.locale())})]},o.id))})]}):n("p",{class:"pz-note",children:e.t("penzor.folderEmpty")}):n("p",{class:"pz-note",children:e.t("penzor.unified.unavailable")})]})}function Oy({p:e,cols:t}){let[o,r]=_(e.newFolder()??""),a=ne(null),i=ne(!1);Zn(()=>{a.current?.focus(),a.current?.select()},[]);let s=()=>{i.current||(i.current=!0,e.createFolder(o))};return n("tr",{class:"sel",children:[n("td",{class:"n",children:n("span",{children:[n(oe,{n:"folder-open"}),n("input",{ref:a,class:"pz-newname",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.cancelNewFolder())},onBlur:s})]})}),n("td",{class:"r",children:"\u2014"}),n("td",{children:e.t("penzor.justNow")}),t>3&&n("td",{})]})}function cf({p:e,x:t}){let o=t.size>0?Math.min(100,Math.round(t.done/t.size*100)):0;return n("tr",{class:`pz-txrow ${t.state}`,title:t.state==="paused"?e.t("penzor.tx.paused"):void 0,children:[n("td",{class:"n",children:n("span",{children:[n(oe,{n:Ha(t.name)}),n("b",{children:t.name})]})}),n("td",{class:"r",children:t.state==="active"?Us(t.done,t.size,e.locale()):e.b(t.size)}),n("td",{children:t.state==="queued"?n("span",{class:"pz-inl",children:e.t("penzor.tx.queued")}):n("span",{class:"pz-inl",children:[n(Yo,{pct:o}),t.state==="paused"?e.t("penzor.tx.pause"):`${o}%`]})})]})}function ff(e,t){let o=e.t,r=e.loc().kind,a={id:"download",label:o("penzor.act.download"),icon:"download",run:()=>void e.download(t)};return r==="source"?t.dir||!t.ref?.downloadPath?[]:[a]:r==="app"&&!e.canManageRow(t)?t.dir?[]:[a]:r==="sync"||r==="ama"?t.dir?[]:[a]:r==="app"?[...t.dir?[]:[a],{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>{e.select(t),e.setSide({kind:"move",at:[]})}},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trash(t)}]:r==="exports"?[a,{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"delete",label:o("penzor.act.delete"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"deleteExport"})}}]:r==="trash"&&e.canManageRow(t)?[{id:"restore",label:o("penzor.act.restore"),icon:"undo",run:()=>void e.restore(t)},{id:"purge",label:o("penzor.act.purge"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"purge"})}}]:[]}function Fy(e,t){let o=e.t;if(!t)return e.canWrite()?[{id:"upload",label:o("penzor.act.uploadHere"),icon:"upload",run:()=>e.picker.files?.()},{id:"new-folder",label:o("penzor.act.newFolder"),icon:"folder-plus",run:()=>e.startNewFolder()}]:[];let r=e.selection();return r.length>1&&r.some(a=>a.key===t.key)?mf(e,r):ff(e,t)}function mf(e,t){let o=e.t,r=e.loc().kind,a=t.filter(i=>!i.dir).length;return[...a?[{id:"download",label:o("penzor.sel.download",{n:a}),icon:"download",run:()=>void e.downloadMany(t)}]:[],...t.every(e.canManageRow)?[{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>e.setSide({kind:"move",at:[]})},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trashMany(t)}]:[]]}function gf({x:e,y:t,items:o,onClose:r,alignRight:a}){let i=ne(null),[s,l]=_({x:e,y:t});return J(()=>{let c=i.current;if(c){let u=c.getBoundingClientRect(),p=a?e-u.width:e;l({x:Math.max(8,Math.min(p,window.innerWidth-u.width-8)),y:t+u.height>window.innerHeight-8?Math.max(8,t-u.height):t})}let d=u=>{u.target instanceof Node&&c?.contains(u.target)||r()},f=u=>{u.key==="Escape"&&r()};return window.addEventListener("pointerdown",d,!0),window.addEventListener("keydown",f,!0),window.addEventListener("blur",r),window.addEventListener("wheel",r,{passive:!0}),()=>{window.removeEventListener("pointerdown",d,!0),window.removeEventListener("keydown",f,!0),window.removeEventListener("blur",r),window.removeEventListener("wheel",r)}},[e,t]),o.length?ba(n("div",{ref:i,class:"ctx-menu pz-menu",role:"menu",style:{left:`${s.x}px`,top:`${s.y}px`},children:o.map((c,d)=>n(L,{children:[c.danger&&d>0&&n("div",{class:"ctx-separator"}),n("button",{role:"menuitem",class:c.danger?"danger":"",onClick:()=>{r(),c.run()},children:[n(oe,{n:c.icon}),c.label]})]},c.id))}),document.body):(queueMicrotask(r),null)}function By({p:e}){let t=e.menu();return n(gf,{x:t.x,y:t.y,items:Fy(e,t.row),onClose:e.closeMenu})}function hf({p:e}){al(e);let t=e.t,o=e.loc(),r=e.selected();if(So(o)||!r)return n(Mr,{p:e,side:!0,children:n("p",{class:"pz-side-none",children:t("penzor.side.none")})});let a=e.snap(),i=e.side(),s=e.selection();if(s.length>1)return n(Uy,{p:e,sel:s});let l=o.kind==="content"?`${pf(e,o.namespace)} / ${r.key}`:o.kind==="sync"?`${o.vault} / ${r.key}`:o.kind==="ama"?`${a?.ama?.find(g=>g.id===o.vaultId)?.name??""} / ${r.key}`:o.kind==="app"?[e.appLabel(o.appId),...e.appStack().map(g=>g.name),r.name].join(" / "):o.kind==="source"?`${t(Cr[o.source])} / ${r.key}`:o.kind==="exports"?`${t("penzor.ledger.exports")} / ${r.name}`:r.col4??"",c=r.dir?"":(r.name.match(/\.([A-Za-z0-9]{1,8})$/)?.[1]??"").toUpperCase(),d=o.kind==="trash"?t("penzor.side.inTrash",{size:e.b(r.size)}):r.dir?r.count!=null?t("penzor.side.folder",{n:r.count.toLocaleString()}):t("penzor.side.folderPlain"):[c,e.b(r.size)].filter(Boolean).join(" \xB7 "),f=o.kind==="trash"?[[t("penzor.side.origin"),l],[t("penzor.side.deletedAt"),Jt(r.mtime,e.locale())]]:[[t("penzor.side.where"),l],[t("penzor.side.mtime"),Jt(r.mtime,e.locale())]];o.kind==="sync"&&!r.dir&&f.push([t("penzor.side.device"),r.col4?r.col4===e.thisDevice()?t("penzor.side.thisDevice",{name:r.col4}):r.col4:"\u2014"]),o.kind==="app"&&!r.dir&&!e.canWrite()&&f.push([t("penzor.side.from"),e.appLabel(o.appId)]),o.kind==="exports"&&f.push([t("penzor.side.from"),r.col4??"\u2014"]);let u=o.kind==="app"&&!e.canManageRow(r)?r.archive?"penzor.archive.note":r.managed?"penzor.hosted.note":"penzor.source.appNote":$p(o),p=ff(e,r),m=e.versions();return n(Mr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(oe,{n:Ha(r.name,r.dir)})}),i.kind==="rename"?n($y,{p:e,row:r}):n("div",{class:"pz-fname",children:r.name}),n("div",{class:"pz-fsub",children:d}),i.kind==="confirm"?n("div",{class:"pz-confirm",style:{margin:0},children:[n("span",{children:t(i.what==="purge"?"penzor.confirm.purge":"penzor.confirm.deleteExport",{name:r.name})}),n("button",{class:"pz-btn danger solid",onClick:()=>void(i.what==="purge"?e.purge(r):e.deleteExport(r)),children:t(i.what==="purge"?"penzor.act.purge":"penzor.act.delete")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:t("penzor.cancel")})]}):p.length>0&&n("div",{class:"pz-acts",children:p.filter(g=>g.id!=="move").map(g=>n("button",{class:`pz-btn${g.danger?" danger":""}${g.id==="restore"?" pri":""}`,onClick:()=>g.run(),children:[n(oe,{n:g.icon}),g.id==="trash"?t("penzor.act.delete"):g.label]},g.id))}),i.kind==="move"&&n(bf,{p:e,row:r,at:i.at}),n("dl",{class:"pz-dl",children:[f.map(([g,h])=>n(L,{children:[n("dt",{children:g}),n("dd",{children:h})]},g)),o.kind==="app"&&!r.dir&&n(L,{children:[n("dt",{children:t("penzor.side.versions")}),n("dd",{children:m==null?"\u2026":m.length?t("penzor.side.versionsN",{n:m.length}):t("penzor.side.versionsNone")})]})]}),e.canManageRow(r)&&!r.dir&&m&&m.length>0&&n("div",{class:"pz-vers",children:m.map(g=>n("div",{children:[n("span",{children:t("penzor.side.versionRow",{n:g.versionNumber,time:Jt(g.createdAt,e.locale()),size:e.b(g.fileSize)})}),n("button",{class:"pz-link",onClick:()=>void e.restoreVersion(r,g),children:t("penzor.side.restoreVersion")})]},g.versionNumber))}),o.kind==="trash"&&r.dir&&(r.count??0)>0&&n("div",{class:"pz-tip",children:[n(oe,{n:"undo"}),n("span",{children:t("penzor.side.inner",{n:r.count})})]}),o.kind==="exports"&&n("div",{class:"pz-tip",children:[n(oe,{n:"trash"}),n("span",{children:t("penzor.side.exportNote")})]}),u&&n("div",{class:"pz-tip",children:[n(oe,{n:"lock"}),n("span",{children:t(u,{vault:o.kind==="sync"?o.vault:""})})]})]})}function $y({p:e,row:t}){let[o,r]=_(t.name),a=ne(null),i=ne(!1),s=()=>{i.current||(i.current=!0,e.rename(t,o))};return J(()=>{let l=a.current;if(!l)return;l.focus();let c=t.dir?-1:t.name.lastIndexOf(".");l.setSelectionRange(0,c>0?c:t.name.length)},[t.key]),n("input",{ref:a,class:"pz-input",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.setSide({kind:"view"}))},onBlur:s})}function bf({p:e,row:t,at:o}){let r=e.t,a=e.loc(),i=a.kind==="app"?e.appLabel(a.appId):"",s=e.selection(),l=s.length>1,c=new Set(l?s.map(u=>u.key):[t.key]),d=(e.moveFolders()??[]).filter(u=>!c.has(u.id)),f=o[o.length-1]??{id:"ROOT",name:r("penzor.move.root",{app:i})};return n("div",{class:"pz-tip",style:{flexDirection:"column"},children:[n("div",{class:"pz-sh",style:{margin:0},children:r("penzor.move.title")}),n("div",{class:"pz-pick",children:[o.length>0&&n("button",{onClick:()=>e.moveBrowse(o.slice(0,-1)),children:[n(oe,{n:"up"}),o.length>1?o[o.length-2].name:r("penzor.move.root",{app:i})]}),e.moveFolders()==null?n("span",{children:"\u2026"}):d.length===0?n("span",{children:r("penzor.move.noFolders")}):d.map(u=>n("button",{onClick:()=>e.moveBrowse([...o,u]),children:[n(oe,{n:"folder"}),u.name]},u.id))]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void(l?e.moveMany(s,f):e.moveTo(t,f)),children:r("penzor.move.here")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:r("penzor.cancel")})]})]})}function Uy({p:e,sel:t}){let o=e.t,r=e.loc(),a=t.filter(u=>!u.dir),i=t.length-a.length,s=a.reduce((u,p)=>u+p.size,0),l=new Date,c=o("penzor.download.folder",{date:`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`}),d=r.kind==="app"?[e.appLabel(r.appId),...e.appStack().map(u=>u.name)].join(" / "):r.kind==="sync"?[r.vault,...e.path()?e.path().split("/"):[]].join(" / "):r.kind==="ama"?[e.snap()?.ama?.find(u=>u.id===r.vaultId)?.name??"",...e.path()?e.path().split("/"):[]].join(" / "):"",f=e.side();return n(Mr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(oe,{n:"files"})}),n("div",{class:"pz-fname",children:o("penzor.sel.title",{n:t.length})}),n("div",{class:"pz-fsub",children:i?o("penzor.sel.subDirs",{size:e.b(s),files:a.length,dirs:i}):o("penzor.sel.sub",{size:e.b(s),files:a.length})}),n("div",{class:"pz-acts",children:mf(e,t).map(u=>n("button",{class:`pz-btn${u.danger?" danger":""}`,onClick:()=>u.run(),children:[n(oe,{n:u.icon}),u.id==="trash"?o("penzor.act.delete"):u.label]},u.id))}),f.kind==="move"&&n(bf,{p:e,row:t[0],at:f.at}),n("dl",{class:"pz-dl",children:[n("dt",{children:o("penzor.side.where")}),n("dd",{children:d}),a.length>1&&n(L,{children:[n("dt",{children:o("penzor.sel.saveTo")}),n("dd",{children:o("penzor.sel.saveToValue",{folder:c})})]})]}),i>0&&a.length>0&&n("div",{class:"pz-tip",children:[n(oe,{n:"folder"}),n("span",{children:o("penzor.sel.noDirs")})]})]})}var vf=(e,t)=>t<60?e.t("penzor.tx.sec",{n:Math.max(1,Math.round(t))}):e.t("penzor.tx.min",{n:Math.ceil(t/60)}),Hy=(e,t)=>t!=null&&Date.now()-t<6e4?e.t("penzor.justNow"):Jt(t,e.locale()),qy=(e,t)=>{let o=t.error??"";return o==="too_large"?e.t("penzor.err.too_large",{size:e.b(t.size)}):o==="network"?e.t("penzor.err.network",{pct:t.size?Math.round(t.done/t.size*100):0}):o==="quota"||o==="account_changed"||o==="not_signed_in"||o==="gone"||o==="changed"||o==="storage_unavailable"||o==="popup_blocked"||o==="download_unavailable"||o==="download_failed"?e.t(`penzor.err.${o}`):e.t("penzor.err.other",{code:o||"?"})};function Vy(e){let t=e.filter(l=>l.state==="active"||l.state==="queued"||l.state==="paused"),o=t.filter(l=>l.state!=="paused"),r=o.reduce((l,c)=>l+Math.max(c.size,c.done),0),a=o.reduce((l,c)=>l+c.done,0),i=o.reduce((l,c)=>l+c.speed,0),s=i>0?(r-a)/i:null;return{live:t,failed:e.filter(l=>l.state==="failed"),done:e.filter(l=>l.state==="done"),up:t.filter(l=>l.kind==="up").length,down:t.filter(l=>l.kind==="down").length,pct:r>0?Math.min(100,Math.round(a/r*100)):0,eta:s!=null&&s>=5?s:null}}var rl=!1;function yf(e,t){let o=t.ui?.float;if(typeof o!="function")return null;rl=!0;let r=null,a=()=>e.card()!=="hidden"&&(e.transfers().length>0||e.notices().length>0),i=()=>{if(a()&&!r){try{r=o({scope:"space",space:hn,anchor:"bottom-end",role:"panel",id:"transfers",bare:!0})}catch(l){console.error("[penzor] transfer float failed",l);return}Le(n(Wy,{p:e}),r.el)}else if(!a()&&r){let l=r;r=null,l.close(),Le(null,l.el)}},s=e.subscribe(i);return i(),()=>{if(s(),rl=!1,r){let l=r;r=null,l.close(),Le(null,l.el)}}}function Wy({p:e}){return al(e),n(Mr,{p:e,extra:"pz-txfloat",children:n(xf,{p:e})})}function xf({p:e}){let t=e.t,o=e.card(),r=e.transfers(),a=e.notices();if(o==="hidden"||!r.length&&!a.length)return null;let i=Vy(r),s=i.failed.length+a.length,l=t("penzor.tx.counts",{up:i.up,down:i.down}),c=i.live.length?t("penzor.tx.busy",{n:i.live.length}):s?t("penzor.tx.failedN",{n:s}):t("penzor.tx.allDone"),d=i.live.length?[l,i.eta!=null?t("penzor.tx.eta",{eta:vf(e,i.eta)}):""].filter(Boolean).join(" \xB7 "):s?i.done.length?t("penzor.tx.restDone",{n:i.done.length}):"":t("penzor.tx.doneN",{n:i.done.length}),f={onMouseEnter:()=>e.holdCard(!0),onMouseLeave:()=>e.holdCard(!1)};if(o==="pill")return n("button",{class:"ui-popover pz-txpill",...f,onClick:()=>e.setCard("open"),title:t("penzor.tx.expand"),"aria-label":t("penzor.tx.expand"),children:[i.live.length?n("span",{class:"pz-ring",style:{"--p":i.pct}}):n(oe,{n:s?"alert":"check"}),n("span",{children:i.live.length?t("penzor.tx.pill",{counts:l,pct:i.pct}):c}),n(oe,{n:"up"})]});let u=g=>g.state==="failed"?0:g.state==="active"?1:g.state==="queued"||g.state==="paused"?2:3,p=[...r].filter(g=>g.state!=="canceled").sort((g,h)=>u(g)-u(h)||(u(g)===3?(h.finishedAt??0)-(g.finishedAt??0):0)),m=i.live.length>0&&i.live.every(g=>g.state==="paused");return n("div",{class:"ui-popover pz-txcard",role:"region","aria-label":c,...f,children:[n("div",{class:"pz-txhead",children:[n("b",{children:c}),n("span",{children:d}),n("i",{class:"sp"}),n("button",{class:"pz-ib",title:t("penzor.tx.collapse"),"aria-label":t("penzor.tx.collapse"),onClick:()=>e.setCard(i.live.length||s?"pill":"hidden"),children:n(oe,{n:"down"})})]}),i.live.length>0&&n("div",{class:"pz-txall",children:n(Yo,{pct:i.pct})}),n("div",{class:"pz-txlist",children:[a.map(g=>n("div",{class:"pz-txrow2 is-fail",children:[n(oe,{n:"alert"}),n("span",{class:"nm",children:t("penzor.tx.quota",{size:e.b(g.short)})}),n("span",{class:"acts",children:n("button",{class:"pz-ib",title:t("penzor.tx.remove"),onClick:()=>e.dismissNotice(g.id),children:n(oe,{n:"x"})})}),n("span",{class:"sub",children:[n("span",{class:"err",children:t("penzor.tx.quotaSub")}),n("button",{class:"pz-link",onClick:()=>{e.dismissNotice(g.id),e.go("trash")},children:t("penzor.tx.freeSpace")})]})]},g.id)),p.map(g=>n(jy,{p:e,x:g},g.id))]}),n("div",{class:"pz-txfoot",children:[i.live.length>0&&n("button",{onClick:()=>void e.txAll(m?"resume":"pause"),children:t(m?"penzor.tx.resumeAll":"penzor.tx.pauseAll")}),i.failed.length>0&&!i.live.length&&n("button",{onClick:()=>void e.txAll("retry"),children:t("penzor.tx.retryAll")}),i.done.length>0&&i.live.length>0&&n("button",{onClick:()=>void e.txClear("finished"),children:t("penzor.tx.clearDone")}),!i.live.length&&n("button",{onClick:()=>void e.txClear(s?"all":"finished"),children:t(s?"penzor.tx.clear":"penzor.tx.clearDone")})]})]})}function jy({p:e,x:t}){let o=e.t,r=t.size>0?Math.min(100,t.done/t.size*100):0,a=t.state==="done"?"check":t.state==="failed"?"alert":t.kind==="up"?"tx-up":"tx-down",i=(l,c,d)=>n("button",{class:"pz-ib",title:c,"aria-label":c,onClick:d,children:n(oe,{n:l})}),s;if(t.state==="failed")s=n("span",{class:"err",children:qy(e,t)});else if(t.state==="done")s=n(L,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o(t.kind==="up"?"penzor.tx.uploaded":"penzor.tx.downloaded",{time:Hy(e,t.finishedAt)})})]});else if(t.state==="queued")s=n(L,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.queued")})]});else if(t.state==="paused")s=n(L,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.paused")})]});else{let l=t.speed>0?(t.size-t.done)/t.speed:null;s=n(L,{children:[n("span",{children:Us(t.done,t.size,e.locale())}),t.speed>0&&n("span",{children:[e.b(t.speed),"/s"]}),l!=null&&l>=5&&n("span",{children:o("penzor.tx.left",{eta:vf(e,l)})})]})}return n("div",{class:`pz-txrow2${t.state==="done"?" is-done":t.state==="failed"?" is-fail":""}`,children:[n(oe,{n:a}),n("span",{class:"nm",title:t.name,children:t.name}),n("span",{class:"acts",children:[(t.state==="active"||t.state==="queued")&&i("pause",o("penzor.tx.pause"),()=>void e.txOp(t.id,"pause")),t.state==="paused"&&i("play",o("penzor.tx.resume"),()=>void e.txOp(t.id,"resume")),(t.state==="active"||t.state==="queued"||t.state==="paused")&&i("x",o("penzor.tx.cancel"),()=>void e.txOp(t.id,"cancel")),t.state==="failed"&&t.error!=="too_large"&&n("button",{class:"pz-link",onClick:()=>void e.txOp(t.id,"retry"),children:o("penzor.tx.retry")}),t.state==="failed"&&i("x",o("penzor.tx.remove"),()=>void e.txOp(t.id,"dismiss")),t.state==="done"&&(t.kind==="up"||t.localPath)&&n("button",{class:"pz-link",onClick:()=>e.locate(t),children:o(t.kind==="down"?"penzor.tx.reveal":"penzor.tx.locate")})]}),(t.state==="active"||t.state==="paused"||t.state==="queued")&&n(Yo,{pct:r}),n("span",{class:"sub",children:s})]})}function Gy(e,t){let o=ln(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.app?.openSpace=="function"&&typeof o?.cloudInvoke=="function"&&(!o.mobile||!!o.extendMobile)&&cn(o)}function kf(e,t=window){if(!Gy(e,t))return null;let o=ln(t.tangu),r=Bp(e);yf(r,e),wn(o)||o.cloudInvoke("penzor:device").then(p=>{let m=p?.name;typeof m=="string"&&m&&r.setDevice(m)}).catch(()=>{});let a=p=>m=>(Le(n(p,{p:r}),m),()=>{Le(null,m)});e.registerView({id:Rn.main,title:r.t("penzor.title"),icon:"penzor",workspaceSource:Vs,mount:a(df)}),e.registerView({id:Rn.info,title:r.t("penzor.details"),icon:"page",mount:a(hf)});let i=e.listCapabilities?.includes("tree")??!1,s=typeof e.app?.setSpaceProgress=="function"?"hard-drive":"archive",l=()=>({overview:r.t("penzor.overview"),drive:r.t("penzor.drive"),driveIcon:s,sync:r.t("penzor.ledger.sync"),ama:r.t("penzor.ledger.ama"),apps:r.t("penzor.ledger.apps"),exports:r.t("penzor.ledger.exports"),trash:r.t("penzor.trash"),items:p=>r.t("penzor.items",{n:p}),files:r.t("penzor.uploads"),synced:r.t("penzor.tree.synced"),all:r.t("penzor.scope.all"),thisBackup:r.t("penzor.tree.thisBackup"),byApp:r.t("penzor.tree.byApp"),legacy:r.t("penzor.tree.legacy")}),c=()=>{let p=r.content();if(p){let g=An(p);return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Lp(g,r.locale()),...g.kind==="warn"?{unread:!0}:{}}]}if(!r.hasSync())return[];let m=r.syncState();return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Rp(m,r.locale()),...Ua(m)?{unread:!0}:{}}]};e.registerListSource({id:Vs,title:r.t("penzor.title"),search:!0,items:p=>{let m=[...c(),...Pp(r.snap(),l(),r.locale(),r.content())],g=p?.query?.trim().toLowerCase()??"";if(g)return m.filter(y=>y.kind!=="folder"&&y.title.toLowerCase().includes(g)).map(({parent:y,...b})=>b);if(i)return m;let h=new Map(m.filter(y=>y.kind==="folder").map(y=>[y.key,y.title]));return m.filter(y=>y.kind!=="folder").map(({parent:y,...b})=>({...b,group:y?h.get(y):void 0}))},subscribe:p=>r.subscribe(p),activeKey:()=>zo(r.loc()),open:p=>r.go(p.key),actions:[{id:"refresh",label:r.t("penzor.act.refresh"),icon:"refresh",primary:!0,run:()=>{r.refresh(),e.app?.sync?.refresh?.().catch(()=>{})}}],itemMenu:p=>{if(p.key.startsWith("sync:")){let m=p.key.slice(5);return[{id:"open-sync",label:r.t("penzor.act.openSync"),icon:"gear",run:()=>r.openSync()},{id:"copy-name",label:r.t("penzor.act.copyName"),icon:"copy",run:()=>{navigator.clipboard?.writeText(m).then(()=>e.app?.notify?.(r.t("penzor.toast.copied")))}}]}return p.key==="trash"&&r.canEmptyTrash()?[{id:"empty-trash",label:r.t("penzor.trash.emptyBtn"),icon:"trash",danger:!0,run:()=>{r.go("trash"),r.setConfirmEmpty(!0)}}]:[]}}),e.registerCommand?.({id:"open-penzor",title:()=>r.t("penzor.cmd.open"),keywords:"penzor cloud storage quota sync files trash drive upload \u84EC\u6D32\u4E91 \u4E91\u7A7A\u95F4 \u4E91\u76D8 \u7F51\u76D8 \u4E0A\u4F20 \u989D\u5EA6 \u540C\u6B65 \u56DE\u6536\u7AD9",run:()=>{e.app?.openSpace?.(hn)}});let d=p=>{if(!(p.key!==Fp||!p.newValue))try{let m=JSON.parse(p.newValue);m.page==="sync"&&r.hasSync()?e.app?.openSpace?.(hn).then(()=>r.go("sync-home")):typeof m.vault=="string"&&m.vault&&r.focusVault(m.vault)}catch{}},f=(()=>{try{return!new URLSearchParams(t.location.search).get("window")}catch{return!1}})();if(f){t.addEventListener("storage",d);try{t.localStorage.setItem(Ws,"1")}catch{}}let u=r.dispose;return r.dispose=()=>{if(f){t.removeEventListener("storage",d);try{t.localStorage.removeItem(Ws)}catch{}}u()},r}var wf="sync",il=3,Jy=24*36e5,Xy=5e3,Ky=15e4,zf=e=>e.split("/").filter(Boolean).pop()||e,Ir=(e,t,o)=>e!=null&&Number.isFinite(e)?Tn(e,t,o):void 0;function Yy(e,t){let o=new Map;for(let r of e.jobs){if(r.state!=="conflict"||t-r.at>Jy||e.jobs.some(i=>i.path===r.path&&i.at>r.at&&i.state==="done"&&i.direction!=="merge"))continue;let a=o.get(r.path);(!a||r.at>a.at)&&o.set(r.path,r)}return[...o.values()].sort((r,a)=>a.at-r.at)}var Zy=e=>{let t=e.jobs.filter(o=>o.state==="done").map(o=>o.finishedAt??o.at);return t.length?Math.max(...t):null};function Qy(e,t,o,r){let a=An(e);if(a.kind==="off")return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=Zy(e);i.push(a.kind==="paused"?{id:"status",title:t("penzor.widget.paused"),meta:t("penzor.cs.statusPaused")}:a.kind==="run"?{id:"status",title:t("penzor.widget.running"),meta:`${a.pct}%`,tone:"accent",now:!0}:a.kind==="scan"?{id:"status",title:t("penzor.cs.statusScan"),now:!0}:a.kind==="warn"?{id:"status",title:t("penzor.widget.problem"),meta:t("penzor.cs.statusWarn",{n:a.n}),tone:"warn"}:{id:"status",title:t("penzor.cs.statusOk"),...Ir(a.at,o,r)?{meta:Ir(a.at,o,r)}:{}});let l=e.jobs.filter(u=>u.state==="active").length,c=e.jobs.filter(u=>u.state==="queued"||u.state==="paused").length;l?i.push({id:"queue",title:t("penzor.widget.active",{n:l}),...c?{meta:t("penzor.widget.queued",{n:c})}:{}}):c&&i.push({id:"queue",title:t("penzor.widget.waiting",{n:c})});let d=[...e.error?[{id:"error",title:t("penzor.widget.error"),meta:t("penzor.widget.errorMeta"),tone:"warn"}]:[],...Tr(e).sort((u,p)=>p.at-u.at).map(u=>({id:`failed:${u.id}`,title:zf(u.path),meta:t("penzor.widget.failed"),tone:"warn"})),...Yy(e,r).map(u=>({id:`conflict:${u.id}`,title:zf(u.path),meta:t("penzor.widget.conflict"),tone:"warn"}))];i.push(...d.slice(0,il));let f=[...d.length>il?[t("penzor.widget.more",{n:d.length-il})]:[],...a.kind!=="ok"&&Ir(s,o,r)?[t("penzor.widget.last",{time:Ir(s,o,r)})]:[]];return{rows:i,...f.length?{footer:f.join(" \xB7 ")}:{}}}function ex(e,t,o,r){if(!e.signedIn)return Cf(t);let a=e.notes;if(a.pending)return{rows:[{id:"pending",title:t("penzor.widget.pending"),meta:t("penzor.sync.waiting"),tone:"warn"}]};if(!$a(e))return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=Co(e)??(e.agents.on&&e.agents.running?0:null),l=Math.max(...[a.last?.ok?a.last.at:null,e.agents.last?.ok?e.agents.last.at:null,e.plugins.lastAt??null].filter(c=>typeof c=="number"),-1);return s!=null?i.push({id:"status",title:t("penzor.widget.running"),...s>0?{meta:`${Math.round(s*100)}%`}:{},tone:"accent",now:!0}):i.push({id:"status",title:t("penzor.cs.statusOk"),...l>0?{meta:Ir(l,o,r)}:{}}),a.on&&Ar(e)&&i.push({id:"notes-failed",title:t("penzor.widget.notesFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.agents.on&&e.agents.last?.ok===!1&&i.push({id:"agents-failed",title:t("penzor.widget.agentsFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.plugins.on&&(e.plugins.pending??0)>0&&i.push({id:"plugins",title:t("penzor.widget.waiting",{n:e.plugins.pending})}),{rows:i}}var Cf=e=>({rows:[{id:"signin",title:e("penzor.widget.signedOut"),meta:e("penzor.widget.signInHint")}]});function Sf(e,t,o=Date.now()){let r=(a,i)=>we(t,a,i);return e.kind==="signedOut"?Cf(r):e.kind==="content"?Qy(e.snap,r,t,o):ex(e.snap,r,t,o)}var tx=/not a Forsion Extend channel/;async function _f(e,t){let o=Q();if(!cn(o))throw new Error("sync status is not available on this page");if(!t.noChannel&&typeof o.cloudInvoke=="function"){let i;try{i=await o.cloudInvoke(qt.get)}catch(s){i={ok:!1,error:s instanceof Error?s.message:String(s)}}if(i?.ok&&i.value?.available)return{kind:"content",snap:i.value};if(!i?.ok&&i?.error==="not_signed_in")return{kind:"signedOut"};if(i?.ok||!tx.test(i?.error??""))throw new Error(i?.error||"sync status unavailable");t.noChannel=!0}let r=!o.mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,a=r?.get()??null;if(!a)throw new Error(r?"sync status is still loading":"sync status unavailable");return{kind:"legacy",snap:a}}var nx=8e3;function Af(e){let t=e?.widgets;if(!e||!t||typeof t.provide!="function")return null;let o=()=>Oe(e.getLocale?.()),r={noChannel:!1},a=null,i=null,s=1,l=null,c=null,d,f,u=!1,p=0,m=()=>{u||t.invalidate(wf)},g=z=>z?JSON.stringify(Sf(z,o())):"error",h=z=>{let P;return Promise.race([z,new Promise((F,$)=>{P=setTimeout(()=>$(new Error("timed out")),nx)})]).finally(()=>clearTimeout(P))},y=async()=>{let z=s;if(!(u||p===z)){p=z;try{let P=g(await h(_f(e,r)).catch(()=>null));if(u||z!==s)return;P!==a&&P!==i&&(i=P,m())}finally{p===z&&(p=0)}}},b=()=>{s++,p=0,l&&clearInterval(l),c&&clearTimeout(c),l=null,c=null,d?.(),d=void 0,f?.(),f=void 0},w=()=>{if(c&&clearTimeout(c),c=setTimeout(b,Ky),l)return;l=setInterval(()=>void y(),Xy),d=Q().onAuthChanged?.(()=>{i=null,m()}),f=(!Q().mobile&&typeof e.app?.sync?.subscribe=="function"?e.app.sync:null)?.subscribe(()=>void y())},k=t.provide(wf,async(z,P)=>{if(u)throw new Error("disposed");w(),i=null;let F=P?.signal,$;try{$=Sf(await _f(e,r),o())}catch(O){throw F?.aborted||(a="error"),O}return F?.aborted||(a=JSON.stringify($)),$});return{dispose(){u=!0,b(),k?.dispose?.()}}}var Ga="events",ox="forsion-extend.events.seen",Tf="forsion-extend.events.seen.migrated",rx="forsion-extend.events.seen.v2",ax="forsion-extend.events.feed",Ef="forsion-extend.events.last",Pf="forsion-extend.events.ping",ix=200,sx=3e4,Qo=36e5,sl=864e5,Mf=8*Qo,lx=1e3,If={newEvent:!0,claimable:"always",beforeEndHours:0,revision:0},Ln=(e,t)=>e&&(e[t]||e.zh||e.en)||"",Dr=(e,t)=>(e??[]).map(o=>Ln(o.label,t)||o.kind).join(" \xB7 "),ll=(e,t)=>e.sort-t.sort||(e.endsAt??"~").localeCompare(t.endsAt??"~");function cx(e){let t=o=>o.kind==="notice";return{active:e.filter(o=>!t(o)&&(o.state==="live"||o.state==="claiming")).sort(ll),notices:e.filter(o=>t(o)&&o.state==="live").sort(ll),upcoming:e.filter(o=>o.state==="upcoming").sort(ll),ended:e.filter(o=>o.state==="ended"||t(o)&&o.state==="claiming").sort((o,r)=>(r.endsAt??"").localeCompare(o.endsAt??""))}}var Zo=(e,t)=>{let o=new Date(e),r=a=>String(a).padStart(2,"0");return`${r(o.getMonth()+1)}-${r(o.getDate())}${t?` ${r(o.getHours())}:${r(o.getMinutes())}`:""}`};function dl(e,t,o){let r=(l,c)=>we(o,l,c);if(e.state==="upcoming")return{short:r("events.time.start",{date:Zo(e.startsAt,!1)}),long:r("events.time.start",{date:Zo(e.startsAt,!0)}),warn:!1};if(e.kind==="notice"){let l=r("events.time.published",{date:Zo(e.startsAt,!1)});return{short:l,long:l,warn:!1}}if(e.state==="claiming"&&e.claimUntil)return{short:r("events.time.claimShort",{date:Zo(e.claimUntil,!1)}),long:r("events.time.claim",{date:Zo(e.claimUntil,!0)}),warn:!1};if(e.state==="ended"||!e.endsAt){let l=e.endsAt?r("events.time.ended",{date:Zo(e.claimUntil??e.endsAt,!1)}):"";return{short:l,long:l,warn:!1}}let a=new Date(e.endsAt).getTime()-new Date(t).getTime(),i=Math.max(1,Math.ceil(a/Qo));if(i<=24)return{short:r("events.left.hours",{n:i}),long:r("events.left.longHours",{h:i}),warn:!0};let s=Math.floor(i/24);return{short:r("events.left.days",{n:s}),long:r("events.left.long",{d:s,h:i%24}),warn:!1}}function Ja(e){let t=e.remind;return!t||typeof t!="object"?If:{newEvent:typeof t.newEvent=="boolean"?t.newEvent:If.newEvent,claimable:t.claimable==="daily"||t.claimable==="off"?t.claimable:"always",beforeEndHours:Number.isFinite(t.beforeEndHours)&&t.beforeEndHours>0?t.beforeEndHours:0,revision:Number.isFinite(t.revision)?t.revision:0}}function cl(e,t){return e?t?{revision:Math.max(e.revision,t.revision),day:e.day>t.day?e.day:t.day}:e:t??null}function Rf(e){let t=e.state==="live"?e.endsAt:e.state==="claiming"?e.claimUntil:null,o=t?new Date(t).getTime():NaN;return Number.isFinite(o)?o:null}var ul=e=>e.state==="live"||e.state==="claiming"&&e.kind!=="notice";function dx(e,t,o,r){if(!ul(e))return{fresh:!1,claim:!1,ending:!1};let a=Ja(e),i=e.state==="live"&&a.newEvent&&(!t||t.revision<a.revision),s=e.claimable>0&&(a.claimable==="always"||a.claimable==="daily"&&t?.day!==o),l=Rf(e),c=l===null?NaN:l-r,d=a.beforeEndHours>0&&e.claimable>0&&c>0&&c<=a.beforeEndHours*Qo;return{fresh:i,claim:s,ending:d}}var ux=(e,t,o,r)=>{let a=dx(e,t,o,r);return a.fresh||a.claim||a.ending};function px(e,t){let o=[Math.floor((t+Mf)/sl)*sl+sl-Mf];for(let r of e){if(!ul(r))continue;let a=Rf(r);if(a===null)continue;a>t&&o.push(a);let i=Ja(r);i.beforeEndHours>0&&r.claimable>0&&a-i.beforeEndHours*Qo>t&&o.push(a-i.beforeEndHours*Qo)}return o.length?Math.min(...o):null}function Lf(e,t){return e?/^(https:|data:image\/)/i.test(e)?e:e.startsWith("/")&&t?`${t.replace(/\/+$/,"")}${e}`:null:null}function Rr(e,t){try{let o=localStorage.getItem(e);return o===null?t:JSON.parse(o)}catch{return t}}function Lr(e,t){try{localStorage.setItem(e,t)}catch{}}function fx(e){try{localStorage.removeItem(e)}catch{}}var mx={not_live:"events.err.notLive",completed:"events.err.completed",grant_failed:"events.err.grantFailed"};function Df(e,t){let o=new Set,r=()=>{o.forEach(W=>W())},a=Oe(e.getLocale?.()),i="loading",s=null,l="",c=null,d="",f={},u=!1,p=0,m=null,g=!1,h=null,y=0,b,w=(W,pe)=>we(a,W,pe),k=()=>cx(s?.events??[]),z=()=>`${rx}:${d}`,P=()=>`${ax}:${d}`,F=W=>cl(f[W.id],W.seen??null),$=()=>s?.today??"",O=()=>Date.now(),K=W=>ux(W,F(W),$(),O()),C=W=>{if(!ul(W))return!1;let pe=Ja(W),ke=F(W);return!ke||ke.revision<pe.revision||ke.day!==$()},D=()=>{let W=Rr(z(),null),pe={};if(W&&typeof W=="object"&&!Array.isArray(W))for(let[ke,Ie]of Object.entries(W))Ie&&Number.isFinite(Ie.r)&&typeof Ie.d=="string"&&(pe[ke]={revision:Ie.r,day:Ie.d});else if(W===null&&Rr(Tf,null)===null){let ke=Rr(ox,[]);if(Array.isArray(ke))for(let Ie of ke)typeof Ie=="string"&&(pe[Ie]={revision:0,day:""});f=pe,U(),Lr(Tf,JSON.stringify(d));return}f=pe},U=()=>{if(!d)return;let W=Object.entries(f).slice(-ix);Lr(z(),JSON.stringify(Object.fromEntries(W.map(([pe,ke])=>[pe,{r:ke.revision,d:ke.day}]))))},M=async()=>{if(d)return;let W=p,pe;try{pe=await Q().authStatus?.()}catch{}if(W!==p)return;l||(l=pe?.cloudUrl??"");let ke=pe?.accountId||pe?.username;if(!(!pe?.cloudUrl||!ke||d)){if(d=`${pe.cloudUrl}|${ke}`,D(),!s){let Ie=Rr(P(),null);Ie&&typeof Ie=="object"&&Array.isArray(Ie.events)&&(s=Ie,i="ready",u=!1)}r()}},Z=()=>{if(m&&(clearTimeout(m),m=null),!s)return;let W=px(s.events,O());W!==null&&(m=setTimeout(()=>{m=null,ee()},Math.max(lx,Math.min(W-O()+500,6*Qo))))},S=()=>{Lr(Pf,String(Date.now()))},A=W=>{W&&Array.isArray(W.events)&&(s=W,i="ready")},I=W=>w(W.code&&mx[W.code]||"events.err.failed"),j=0,ee=async W=>{W!==void 0&&(b=W||void 0),y=Date.now();let pe=++j;if(await M(),pe!==j)return;let ke=await G(b?`/events/feed?preview=${encodeURIComponent(b)}`:"/events/feed");pe===j&&(ke.ok?(A(ke.data),s===ke.data&&(u=!0,d&&!b&&Lr(P(),JSON.stringify(ke.data)))):Fn(ke)||ke.status===401?(s=null,i="signedOut",u=!1,d&&fx(P())):ke.status===404?(s=null,i="unavailable",u=!1):s||(i="error"),Z(),r())},H=async W=>{if(!g){g=!0,h=null,r(),j++;try{await W()}finally{g=!1,j++,S(),r()}}},re=W=>H(async()=>{let pe=await G(`/events/${encodeURIComponent(W.id)}/checkin`,{method:"POST",body:{}});if(!pe.ok){h={ok:!1,text:I(pe),backpack:!1};return}A(pe.data.feed);let ke=Dr(pe.data.reward,a);h={ok:!0,text:ke?w("events.toast.checkin",{reward:ke}):w("events.checkin.done"),backpack:!!ke}}),he=(W,pe)=>H(async()=>{let ke=await G(`/events/${encodeURIComponent(W.id)}/tasks/claim`,{method:"POST",body:{ids:pe}});if(!ke.ok){h={ok:!1,text:I(ke),backpack:!1};return}A(ke.data.feed);let Ie=ke.data.results.filter(Ce=>Ce.ok&&!Ce.alreadyClaimed),ge=ke.data.results.filter(Ce=>!Ce.ok).length,ot=Ie.flatMap(Ce=>Ce.reward??[]);ge?h={ok:!1,text:w("events.toast.partial",{n:Ie.length,m:ge}),backpack:!1}:Ie.length&&(h={ok:!0,text:w("events.toast.claimed",{reward:Dr(ot,a)}),backpack:ot.length>0})}),qe=W=>{let pe=(s?.events??[]).find(pt=>pt.id===W);if(!pe||!C(pe))return;let ke=Ja(pe).revision,{[W]:Ie,...ge}=f;f={...ge,[W]:cl(Ie,{revision:ke,day:$()})},U(),S();let ot=p,Ce=d;G(`/events/${encodeURIComponent(W)}/seen`,{method:"POST",body:{revision:ke}}).then(pt=>{if(ot!==p||Ce!==d||!pt.ok||!pt.data?.seen)return;let rt=cl(f[W],pt.data.seen);rt&&(rt.revision!==f[W]?.revision||rt.day!==f[W]?.day)&&(f={...f,[W]:rt},U(),r())})},me=()=>{let W=k(),pe=[...W.active,...W.notices],ke=[...pe,...W.upcoming,...W.ended],Ie=Rr(Ef,null);return ke.find(ge=>ge.id===Ie)??pe.find(K)??ke[0]??null},De=e.subscribeLocale?.(W=>{a=Oe(W),r()}),Qe=W=>{d&&W.key===z()&&(D(),r()),W.key===Pf&&ee()},ve=()=>{Date.now()-y>sx&&ee()};window.addEventListener("storage",Qe),window.addEventListener("focus",ve);let Ye=Q().onAuthChanged?.(()=>{p++,j++,l="",d="",f={},s=null,u=!1,i="loading",ee()}),Rt=t.fetchOnStart?setTimeout(()=>{ee()},3e3):null;return M(),{locale:()=>a,t:w,status:()=>i,feed:()=>s,origin:()=>l,groups:k,selected:()=>(s?.events??[]).find(W=>W.id===c)??me(),select:W=>{c=W,h=null,Lr(Ef,JSON.stringify(W)),qe(W),r()},dotFor:K,needsSeen:C,fresh:()=>u,hasDot:()=>(s?.events??[]).some(K),active:()=>{let W=k();return i==="ready"&&W.active.length+W.notices.length>0},busy:()=>g,notice:()=>h,clearNotice:()=>{h=null,r()},refresh:ee,checkin:re,claim:he,open:W=>{let pe=W?{id:W}:void 0;e.openFloatingPanel?e.openFloatingPanel(Ga,{title:w("events.title"),params:pe,width:1040,height:720,minWidth:720,minHeight:520}):e.openView?.(Ga,{location:"main",params:pe})},subscribe:W=>(o.add(W),()=>{o.delete(W)}),dispose:()=>{Rt&&clearTimeout(Rt),m&&clearTimeout(m),De?.(),Ye?.(),window.removeEventListener("storage",Qe),window.removeEventListener("focus",ve),o.clear()}}}var Nf=`
|
|
1631
|
+
`;async function En(e,...t){let o=Q().cloudInvoke;if(!o)throw Error("content_sync_unavailable");let r=await o(e,...t);if(!r?.ok)throw Error(r?.error??"content_sync_unavailable");return r.value}var Ko=e=>e instanceof Error?e.message:String(e),Py=["merge","cloud","local"],sf={notes:{icon:"notebook",title:"penzor.cat.notes",desc:"penzor.cat.notesDesc"},agents:{icon:"bot",title:"penzor.cat.agents",desc:"penzor.cat.agentsDesc"},profile:{icon:"user-round",title:"penzor.cat.profile",desc:"penzor.cat.profileDesc"},plugins:{icon:"puzzle",title:"penzor.cat.plugins",desc:"penzor.cat.pluginsDesc"}};function Ja({on:e,disabled:t,label:o,onToggle:r}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,disabled:t,onClick:a=>{a.stopPropagation(),r(!e)},children:n("span",{})})}function cf({p:e,legacy:t}){let o=e.t,[r,a]=_(null),[i,s]=_(!0),[l,c]=_(null),[d,f]=_(null),[u,p]=_(0),[m,g]=_(!1),[h,y]=_(!1),[v,x]=_(null),[w,z]=_(!1),[I,F]=_(!1),[$,N]=_(!1),[Y,C]=_({}),[D,H]=_(null),[E,Z]=_(!1),[S,A]=_(null),[M,G]=_(null),[ee,U]=_(null),ae=oe(!0),he=oe(!1),qe=oe(null),me=async()=>{try{let O=await En(qt.get,e.locale(),{devices:!0});if(!O?.available){ae.current&&s(!1);return}ae.current&&(he.current=!0,a(O),s(!0))}catch(O){ae.current&&(!he.current&&/unavailable|not a Forsion Extend channel/i.test(String(O))?s(!1):x(Ko(O)))}};J(()=>{ae.current=!0,me();let O=setInterval(()=>void me(),1e3);return()=>{ae.current=!1,clearInterval(O)}},[]),J(()=>{if(!D&&!E)return;let O=le=>{le instanceof KeyboardEvent&&le.key!=="Escape"||le.type==="mousedown"&&le.target?.closest?.(".pz-cs-menu")||(H(null),Z(!1))};return document.addEventListener("mousedown",O),document.addEventListener("keydown",O),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",O)}},[D,E]);let De=!!r&&!r.config.enabled&&r.config.revision===0&&!I,Qe=sn(()=>r&&De?of(r.config):null,[De,r?.config.revision]),ye=r?l??Qe??r.config:null,Ye=!!r&&!w&&(De||!!l&&rl(r.config,l)>0),Rt=Ye&&ye?JSON.stringify(ye)+"#"+u:"";if(J(()=>{if(f(null),U(null),!Rt)return;let O=!0,le=setTimeout(()=>{En(qt.preview,ye).then(Se=>{O&&ae.current&&f(Se)},Se=>{!O||!ae.current||(/config_changed/.test(Ko(Se))?c(null):x(Ko(Se)))})},400);return()=>{O=!1,clearTimeout(le)}},[Rt]),!i)return t;if(!r||!ye)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:v??o("penzor.loading")})});if(w)return n(Iy,{p:e,snap:r,refresh:me,back:()=>z(!1)});let W=`device-${r.deviceId}`,pe=r.devices.filter(O=>O.id!==r.deviceId),ke=(r.others?.files??0)>0,Me=O=>r.sources.find(le=>le.path===O),ge=O=>r.sources.filter(le=>le.path.startsWith(O+"/")&&!le.path.slice(O.length+1).includes("/")),ot=O=>O==="default"?o("penzor.scope.all"):O===W?o("penzor.scope.self"):o("penzor.scope.with",{name:r.devices.find(le=>`device-${le.id}`===O)?.name??O.slice(7,15)}),Ce=(O,le,Se)=>{c(nf(ye,O,le,ke)),G({path:O,name:Se,target:le}),H(null),x(null),g(!1)},pt=async O=>{y(!0),x(null);try{await O(),await me()}catch(le){x(Ko(le))}finally{y(!1)}},rt=d?.agentAsks??[],un=()=>{if(rt.length&&!ee){U(Object.fromEntries(rt.map(O=>[O.slug,"merge"])));return}Kt(ee??{})},Kt=O=>void pt(async()=>{try{await En(qt.apply,d.token,...Object.keys(O).length?[O]:[])}catch(Ge){if(U(null),/preview_(changed|expired)/.test(Ko(Ge))){g(!0),p(Ft=>Ft+1);return}throw Ge}U(null);let le=Xt(ye,"Plugins")==="default",Se=e.syncState()?.plugins;e.hasSync()&&Se&&Se.on!==le&&e.setSync("plugins",le),c(null),F(!1),g(!1)}),Yt=(O,le,Se)=>{O.stopPropagation();let Ge=O.currentTarget.getBoundingClientRect(),Ft=qe.current.getBoundingClientRect(),xt=document.body.currentCSSZoom||1;H(D?.path===le?null:{path:le,name:Se,x:(Ge.left-Ft.left)/xt-4,y:(Ge.bottom-Ft.top)/xt+4})},zt=({path:O,name:le})=>{let Se=Xt(ye,O);return n("button",{type:"button",class:`pz-scope${Se!=="default"?" is-alt":""}`,"aria-haspopup":"menu","aria-expanded":D?.path===O,onClick:Ge=>Yt(Ge,O,le),children:[n(re,{n:Se==="default"?"cloud":Se===W?"laptop":"monitor"}),ot(Se),n(re,{n:"down"})]})},at=An(r),Vt=r.jobs.filter(O=>O.state==="queued"||O.state==="active"||O.state==="paused"),en=Er(r),ft=at.kind==="off"?n("span",{class:"pz-cs-status",children:[n(re,{n:"cloud-off"}),o("penzor.cs.statusOff")]}):at.kind==="paused"?n("span",{class:"pz-cs-status",children:[n(re,{n:"pause"}),o("penzor.cs.statusPaused")]}):at.kind==="run"?n("span",{class:"pz-cs-status is-ok",children:[n("span",{class:"pz-ring",style:`--p:${at.pct}`}),o("penzor.cs.statusRun",{pct:at.pct})]}):at.kind==="scan"?n("span",{class:"pz-cs-status is-ok",children:[n(re,{n:"refresh"}),o("penzor.cs.statusScan")]}):at.kind==="warn"?n("span",{class:"pz-cs-status is-warn",children:[n(re,{n:"alert"}),o("penzor.cs.statusWarn",{n:at.n})]}):n("span",{class:"pz-cs-status is-ok",children:[n(re,{n:"cloud-check"}),at.at?o("penzor.cs.statusOkAgo",{time:Tn(at.at,e.locale())}):o("penzor.cs.statusOk")]}),et=S!=null&&S.trim()!==r.deviceName?js(S.trim(),r.devices,r.deviceId):null,Ot=(O=!1)=>{let le=S;if(le==null)return;let Se=le.trim();if(Se!==r.deviceName&&js(Se,r.devices,r.deviceId)){O&&A(null);return}A(null),Se!==r.deviceName&&pt(()=>En(qt.rename,Se))},pn=O=>{let le=/device_name_(taken|reserved|invalid)/.exec(O);return le?o(`penzor.cs.name.${le[1]}`):O},yt=Vt.find(O=>O.state==="active")??Vt[0],bn=(O,le)=>{let Se=sf[O],Ge=Xt(ye,le)!=="off",Ft=el.has(le)&&ge(le).length>0,xt=!!Y[le]&&Ge,st=ol(ye,le),vn=Me(le),Ee=O==="notes"?vn?o("penzor.cat.files",{n:(vn.files??0).toLocaleString(),size:e.b(vn.size)}):"":O==="profile"?o("penzor.cat.profileOn"):o("penzor.cat.pluginsN",{n:ge(le).length}),dt=n("b",{children:[o(Se.title),Ft&&n("span",{class:"pz-cs-chev",children:n(re,{n:"right"})})]}),Bt=n("small",{children:Ge?n(R,{children:[n(zt,{path:le,name:o(Se.title)}),Ee&&n(R,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:Ee})]}),st>0&&n(R,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>z(!0),children:o("penzor.cat.custom",{n:st})})]})]}):o(Se.desc)});return n(R,{children:[n("div",{class:`pz-sync-row${Ft&&Ge?" is-click":""}${xt?" is-open":""}`,children:[Ft&&Ge?n("div",{class:"pz-sync-main",role:"button",tabIndex:0,"aria-expanded":xt,onClick:()=>C({...Y,[le]:!xt}),onKeyDown:Ve=>{Ve.key==="Enter"&&C({...Y,[le]:!xt})},children:[n("span",{class:"pz-tile",children:n(re,{n:Se.icon})}),n("span",{class:"pz-sync-txt",children:[dt,Bt]})]}):n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(re,{n:Se.icon})}),n("span",{class:"pz-sync-txt",children:[dt,Bt]})]}),n(Ja,{on:Ge,label:o(Se.title),disabled:h,onToggle:Ve=>Ce(le,Ve?"default":"off",o(Se.title))})]}),xt&&ge(le).map(Ve=>{let Lt=Ve.path.slice(le.length+1),fn=Xt(ye,Ve.path)!=="off";return n("div",{class:"pz-cs-child",title:Ve.path,children:[n("span",{children:[n("b",{children:[Lt,O==="notes"&&n("span",{class:"pz-cs-faint",children:o("penzor.cat.files",{n:(Ve.files??0).toLocaleString(),size:e.b(Ve.size)})})]}),fn?n(zt,{path:Ve.path,name:Lt}):n("span",{class:"pz-cs-faint",children:o("penzor.cat.notSynced")})]}),n(Ja,{on:fn,label:Lt,disabled:h,onToggle:ro=>Ce(Ve.path,ro?Xt(ye,le):"off",Lt)})]},Ve.path)})]},le)},it=()=>{let O=sf.agents,le=r.sources.filter(Ee=>Ee.agent),Se=new Set(le.map(Ee=>Ee.path.slice(7))),Ge=[...le.map(Ee=>({slug:Ee.path.slice(7),name:Ee.name,nameEn:Ee.nameEn,here:!0})),...(r.cloudAgents??[]).filter(Ee=>!Se.has(Ee)).map(Ee=>({slug:Ee,name:void 0,nameEn:void 0,here:!1}))].sort((Ee,dt)=>Number(To.has(Ee.slug))-Number(To.has(dt.slug))),Ft=Ee=>To.has(Ee.slug)?o("penzor.agents.muse"):(e.locale()==="en"?Ee.nameEn??Ee.name:Ee.name??Ee.nameEn)??Ee.slug,xt=Ge.filter(Ee=>!To.has(Ee.slug)&&Xt(ye,`agents/${Ee.slug}`)!=="off").length,st=ol(ye,"agents"),vn=Ge.length?o(Xt(ye,"agents")==="off"?"penzor.agents.pickHint":"penzor.agents.legacyHint",{n:xt}):o("penzor.agents.none");return n(R,{children:[n("div",{class:"pz-sync-row pz-cs-group",children:n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(re,{n:O.icon})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o(O.title)}),n("small",{children:[vn,st>0&&n(R,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>z(!0),children:o("penzor.cat.custom",{n:st})})]})]})]})]})}),Ge.map(Ee=>{let dt=`agents/${Ee.slug}`,Bt=Ft(Ee),Ve=To.has(Ee.slug),Lt=!Ve&&Xt(ye,dt)!=="off";return n("div",{class:`pz-cs-child${Ve?" is-locked":""}`,title:dt,"data-agent":Ee.slug,children:[n("span",{children:[n("b",{children:[Bt,Bt.toLowerCase()!==Ee.slug&&n("span",{class:"pz-cs-slug",children:Ee.slug})]}),Ve?n("span",{class:"pz-cs-faint",children:o("penzor.agents.museDesc")}):Lt?n(zt,{path:dt,name:Bt}):n("span",{class:"pz-cs-faint",children:o(Ee.here?"penzor.cat.notSynced":"penzor.agents.cloudOnly")})]}),Ve?n("span",{class:"pz-cs-lock",role:"note",children:[n(re,{n:"lock"}),o("penzor.agents.locked")]}):n(Ja,{on:Lt,label:Bt,disabled:h,onToggle:fn=>Ce(dt,fn?"default":"off",Bt)})]},dt)}),n("div",{class:"pz-cs-subnote",children:o("penzor.agents.historianNote")})]},"agents")},Tt=Ye&&n("div",{class:"pz-cs-bar",role:"region","aria-label":o("penzor.rules.previewTitle"),children:[n(re,{n:"alert"}),n("span",{class:"txt",children:[De?d?o("penzor.cs.barFirst",{up:d.upload,down:d.download}):o("penzor.cs.firstTitle"):(()=>{let O=rl(r.config,ye);return O===1&&M&&Xt(ye,M.path)===M.target&&Xt(r.config,M.path)!==M.target?o("penzor.cs.barOne",{name:M.name,scope:M.target==="off"?o("penzor.cs.offName"):ot(M.target)}):o("penzor.cs.barChanged",{n:O})})(),n("small",{children:m?o("penzor.cs.barRecount"):d?[De?o("penzor.cs.barSize",{size:e.b(d.bytes)}):o("penzor.cs.barCounts",{up:d.upload,down:d.download}),d.conflicts>0?o("penzor.cs.barConflicts",{n:d.conflicts}):"",De?o("penzor.cs.noDelete"):""].filter(Boolean).join(" \xB7 "):o("penzor.cs.barCounting")})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>{De&&F(!0),c(null),g(!1)},children:o(De?"penzor.cs.later":"penzor.cs.undo")}),n("button",{class:"pz-btn pri",disabled:h||!d||r.running,onClick:un,children:o(De?"penzor.cs.start":"penzor.cs.confirm")})]}),de=r.agentArchive?.state==="done"&&!r.agentArchive.seen&&r.agentArchive.folderId?r.agentArchive:null,Ze=O=>O==="content_account_changed_preview_required"?o("penzor.cs.accountReview"):O==="agent_archive_running"?o("penzor.agents.archiveRunning"):O.startsWith("agent_open_failed: ")?o("penzor.agents.openFailed",{reason:O.slice(19)}):pn(O),je=O=>{let le=r.sources.find(Se=>Se.agent&&Se.path===`agents/${O}`);return(e.locale()==="en"?le?.nameEn??le?.name:le?.name??le?.nameEn)??O},tn=ee&&d&&rt.length>0&&n("div",{class:"pz-sync-ask pz-ask-card",role:"dialog","aria-modal":"false","aria-label":o("penzor.ask.confirm"),children:[rt.map(O=>n("div",{class:"pz-ask-agent",role:"radiogroup","aria-label":je(O.slug),children:[n("b",{children:o("penzor.ask.title",{name:je(O.slug)})}),n("small",{children:o("penzor.ask.when",{cloud:Jt(O.cloudMtime,e.locale()),local:Jt(O.localMtime,e.locale())})}),Py.map(le=>n("label",{class:"pz-ask-opt",children:[n("input",{type:"radio",name:`ask-${O.slug}`,checked:ee[O.slug]===le,onChange:()=>U({...ee,[O.slug]:le})}),n("span",{children:[n("b",{children:o(`penzor.ask.${le}`)}),le==="merge"&&n("em",{children:o("penzor.ask.recommended")}),n("small",{children:o(`penzor.ask.${le}Desc`)})]})]},le))]},O.slug)),n("div",{class:"pz-ask-foot",children:[n("small",{children:o("penzor.ask.foot")}),n("button",{class:"pz-btn",disabled:h,onClick:()=>U(null),children:o("penzor.ask.cancel")}),n("button",{class:"pz-btn pri",disabled:h||r.running,onClick:()=>Kt(ee),children:o("penzor.ask.confirm")})]})]}),ct=O=>O.direction==="upload"?"tx-up":O.direction==="download"?"tx-down":"tx-sync";return n("div",{class:"pz-scroll",children:[n("style",{children:lf}),n("div",{class:"pz-col pz-cs",ref:qe,children:[n(Ir,{p:e}),n("div",{class:"pz-cs-head",children:[n("h1",{class:"pz-h1",children:o("penzor.sync.title")}),ft,n("span",{class:"grow"}),n("button",{class:"pz-btn",disabled:h||r.running||!r.config.enabled,onClick:()=>void pt(()=>En(qt.run)),children:[n(re,{n:"refresh"}),o("penzor.rules.run")]}),n("button",{class:"pz-btn","aria-label":o("penzor.cs.more"),"aria-haspopup":"menu",onClick:O=>{O.stopPropagation(),Z(!E)},children:n(re,{n:"more"})})]}),E&&n("div",{class:"pz-cs-menu",style:"right:0;top:64px",role:"menu",children:n("button",{class:"it",role:"menuitem",onClick:()=>{Z(!1),z(!0)},children:[n(re,{n:"gear"}),n("span",{children:n("b",{children:o("penzor.cs.advanced")})}),n("span",{})]})}),n("div",{class:"pz-cs-meta",children:[n("span",{class:"pz-cs-dev",children:[n(re,{n:"laptop"}),S!=null?n(R,{children:[o("penzor.cs.thisComputerLabel"),n("input",{value:S,maxLength:64,"aria-label":o("penzor.cs.rename"),ref:O=>O?.focus(),onInput:O=>A(O.currentTarget.value),"aria-invalid":!!et,onKeyDown:O=>{O.key==="Enter"&&Ot(),O.key==="Escape"&&A(null)},onBlur:()=>Ot(!0)}),et?n("span",{class:"pz-cs-warn",role:"alert",children:o(`penzor.cs.name.${et}`)}):n("span",{class:"pz-cs-faint",children:o("penzor.cs.renameHint")})]}):n(R,{children:[o("penzor.cs.thisComputer",{name:r.deviceName}),n("button",{class:"pz-link","aria-label":o("penzor.cs.rename"),title:o("penzor.cs.rename"),onClick:()=>A(r.deviceName),children:n(re,{n:"pen"})})]})]}),n("span",{children:pe.length?o("penzor.cs.othersN",{n:pe.length,names:pe.map(O=>O.name).join(e.locale()==="zh"?"\u3001":", ")}):o("penzor.cs.noOthers")}),n("button",{class:"pz-link",onClick:()=>N(!$),children:[n(re,{n:"history"})," ",o("penzor.cs.log")]})]}),(v||r.error)&&n("p",{role:"alert",class:"pz-rule-error",style:"margin-top:14px",children:Ze(v??r.error??"")}),de&&n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.archive.title"),children:[n("h4",{children:o("penzor.archive.title")}),n("p",{children:o("penzor.archive.body",{shelf:de.shelfName??o("penzor.archive.shelf"),name:de.name??""})}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn",disabled:h,onClick:()=>void pt(()=>En(qt.archiveSeen)),children:o("penzor.archive.ok")}),de.shelfId&&n("button",{class:"pz-btn pri",onClick:()=>e.openFolder([{id:de.shelfId,name:de.shelfName??o("penzor.archive.shelf")},{id:de.folderId,name:de.name??"",archive:!0}]),children:o("penzor.archive.open")})]})]}),De&&n("div",{class:"pz-sync-ask",children:[n("h4",{children:o("penzor.cs.firstTitle")}),n("p",{children:o("penzor.cs.firstBody")})]}),yt&&n("div",{class:"pz-cs-act",children:[n("div",{class:"row1",children:[n(re,{n:ct(yt)}),n("span",{class:"grow",children:[o(yt.direction==="download"?"penzor.cs.down":"penzor.cs.up",{name:yt.path.slice(yt.path.lastIndexOf("/")+1)}),yt.size!=null&&n("small",{children:[" ",e.b(yt.done)," / ",e.b(yt.size)]})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>void pt(()=>En(qt.pause,!r.paused)),children:[n(re,{n:r.paused?"play":"pause"}),o(r.paused?"penzor.rules.resume":"penzor.rules.pause")]})]}),at.kind==="run"&&n("div",{class:"pz-bar",children:n("span",{style:`width:${at.pct}%`})}),Vt.length>1&&n("div",{class:"more",children:o("penzor.cs.waiting",{n:Vt.length-1})})]}),en.length>0&&!yt&&n("div",{class:"pz-cs-act is-warn",children:n("div",{class:"row1",children:[n(re,{n:"alert"}),n("span",{class:"grow",children:[o("penzor.cs.failedN",{n:en.length}),n("small",{children:[" ",en[0].error??""]})]}),n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void pt(()=>En(qt.retry)),children:o("penzor.cs.retry")}),n("button",{class:"pz-btn",onClick:()=>N(!0),children:o("penzor.cs.seeLog")})]})}),n("div",{class:"pz-sync-card",children:[Xo.map(O=>O.id==="agents"?it():bn(O.id,O.path)),ke&&n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(re,{n:"folder"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o("penzor.cat.others")}),n("small",{children:Xt(ye,"")!=="off"?n(R,{children:[n(zt,{path:"",name:o("penzor.cat.others")}),n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:o("penzor.cat.files",{n:r.others.files.toLocaleString(),size:e.b(r.others.size)})})]}):o("penzor.cat.othersDesc")})]})]}),n(Ja,{on:Xt(ye,"")!=="off",label:o("penzor.cat.others"),disabled:h,onToggle:O=>Ce("",O?"default":"off",o("penzor.cat.others"))})]})]}),n("p",{class:"pz-cs-note",children:o("penzor.cs.note")}),$&&n(R,{children:[n("h3",{class:"pz-cs-sec",children:[o("penzor.cs.log"),n("span",{class:"grow"}),en.length>0&&n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void pt(()=>En(qt.retry)),children:o("penzor.cs.retry")})]}),n("div",{class:"pz-cs-log",children:r.jobs.length?r.jobs.slice(-30).reverse().map(O=>n("div",{class:"f",children:[n(re,{n:ct(O)}),n("span",{children:[O.path,O.error&&n("small",{children:[" \xB7 ",O.error]})]}),n("small",{children:[o(`penzor.rules.state.${O.state}`)," \xB7 ",Tn(O.finishedAt??O.at,e.locale())]})]},O.id)):n("p",{class:"pz-cs-note",children:o("penzor.cs.logEmpty")})}),n("p",{class:"pz-cs-note",children:o("penzor.cs.logNote")})]}),tn,!ee&&Tt,D&&n("div",{class:"pz-cs-menu",role:"menu",style:`left:${D.x}px;top:${D.y}px`,children:[n("div",{class:"cap",children:o("penzor.scope.menuTitle",{name:D.name})}),["default",W,...pe.map(O=>`device-${O.id}`)].map((O,le)=>n(R,{children:[le===2&&n("hr",{}),n("button",{class:"it",role:"menuitemradio","aria-checked":Xt(ye,D.path)===O,onClick:()=>Ce(D.path,O,D.name),children:[n(re,{n:O==="default"?"cloud":O===W?"laptop":"monitor"}),n("span",{children:[n("b",{children:ot(O)}),le<2&&n("small",{children:o(le===0?"penzor.scope.allDesc":"penzor.scope.selfDesc")})]}),Xt(ye,D.path)===O?n("span",{class:"tick",children:n(re,{n:"check"})}):n("span",{})]})]},O)),D.path==="human"&&n("div",{class:"cap",children:o("penzor.scope.calendarNote")}),n("div",{class:"cap",children:o("penzor.scope.menuFoot")})]})]})]})}function Iy({p:e,snap:t,refresh:o,back:r}){let a=e.t,[i,s]=_(null),[l,c]=_(null),[d,f]=_(!1),[u,p]=_(null),m=i??t.config,g=!!i,h=w=>w==="default"?a("penzor.rules.default"):w==="off"?a("penzor.rules.off"):t.devices.find(z=>"device-"+z.id===w)?.name??`${a("penzor.rules.device")} ${w.slice(7)}`,y=w=>{let z=structuredClone(m);w(z),s(z),c(null),p(null)},v=async w=>{f(!0),p(null);try{await w(),await o()}catch(z){p(Ko(z))}finally{f(!1)}},x=[...new Set(["default",`device-${t.deviceId}`,...t.devices.map(w=>`device-${w.id}`),...m.rules.map(w=>w.target),"off"])];return n("div",{class:"pz-scroll",children:[n("style",{children:lf}),n("div",{class:"pz-col pz-rules",children:[n("button",{class:"pz-link",onClick:r,children:["\u2190 ",a("penzor.cs.backSimple")]}),n("div",{class:"pz-rule-head",children:n("h1",{class:"pz-h1",children:a("penzor.cs.advanced")})}),n("p",{class:"pz-rule-meta",children:t.deviceName}),u&&n("p",{role:"alert",class:"pz-rule-error",children:u}),n("div",{class:"pz-rule-tools",children:[n("label",{class:"pz-rule-enable",children:[n("input",{type:"checkbox",checked:m.enabled,onChange:w=>y(z=>{z.enabled=w.currentTarget.checked})}),a("penzor.rules.enable")]}),n("button",{class:"pz-btn",onClick:()=>y(w=>w.rules.push({id:`rule-${crypto.randomUUID()}`,source:"",target:"default"})),children:a("penzor.rules.add")})]}),n("div",{class:"pz-rule-table",children:[n("div",{class:"pz-rule-row pz-rule-label",children:[n("span",{children:a("penzor.rules.source")}),n("span",{children:a("penzor.rules.destination")}),n("span",{})]}),m.rules.map((w,z)=>n("div",{class:"pz-rule-row",children:[n("input",{"aria-label":`${a("penzor.rules.source")} ${z+1}`,list:"pz-content-sources",placeholder:"Forsion",value:w.source,onInput:I=>y(F=>{F.rules[z].source=I.currentTarget.value,delete F.rules[z].sourceId})}),n("select",{"aria-label":`${a("penzor.rules.destination")} ${z+1}`,value:w.target,onChange:I=>y(F=>{F.rules[z].target=I.currentTarget.value}),children:x.map(I=>n("option",{value:I,children:h(I)},I))}),n("button",{class:"pz-btn","aria-label":`${a("penzor.rules.remove")} ${z+1}`,onClick:()=>y(I=>{I.rules.splice(z,1)}),children:"\xD7"})]},w.id))]}),n("datalist",{id:"pz-content-sources",children:t.sources.filter(w=>w.kind==="folder").map(w=>n("option",{value:w.path},w.path))}),n("p",{class:"pz-rule-note",children:[a("penzor.rules.inherit"),n("br",{}),a("penzor.rules.namespace"),n("br",{}),a("penzor.rules.human")]}),n("div",{class:"pz-rule-actions",children:[g&&n("button",{class:"pz-btn",onClick:()=>{s(null),c(null)},children:a("penzor.cancel")}),n("button",{class:"pz-btn pri",disabled:d||t.running,onClick:()=>void v(async()=>c(await En(qt.preview,m))),children:a("penzor.rules.preview")})]}),l&&n("div",{class:"pz-rule-preview",role:"region","aria-label":a("penzor.rules.previewTitle"),children:[n("h2",{children:a("penzor.rules.previewTitle")}),n("p",{children:a("penzor.rules.previewCounts",{up:l.upload,down:l.download,conflicts:l.conflicts})}),n("p",{class:"pz-rule-note",children:a("penzor.rules.retain")}),n("div",{class:"pz-rule-actions",children:[n("button",{class:"pz-btn",onClick:()=>c(null),children:a("penzor.rules.back")}),n("button",{class:"pz-btn pri",disabled:d,onClick:()=>void v(async()=>{await En(qt.apply,l.token),s(null),c(null)}),children:a("penzor.rules.apply")})]})]})]})]})}function ll(e){let[,t]=_(0);J(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function Mr(e){return n("div",{ref:e.rootRef,class:`${e.side?"pz-side":"pz"}${e.extra?` ${e.extra}`:""}`,lang:e.p.locale()==="zh"?"zh-CN":"en",...e.on,children:[n("style",{children:Wp}),e.children]})}var Yo=({pct:e,warn:t})=>n("div",{class:`pz-bar${t?" is-low":""}`,children:n("span",{style:{width:`${Math.max(0,Math.min(100,e)).toFixed(1)}%`}})});function mf({p:e}){ll(e);let t=oe(null),o=oe(null);J(()=>{e.enter(),e.refresh(),So(e.loc())&&e.ctx.closeView?.("penzor-info",{collapse:!0});let p=t.current;if(!p||typeof IntersectionObserver>"u")return;let m=!0;e.setVisible(!0);let g=new IntersectionObserver(h=>{let y=h.some(v=>v.isIntersecting);y&&!m&&(e.enter(),e.refresh()),m=y,e.setVisible(y)});return g.observe(p),()=>{g.disconnect(),e.setVisible(!1)}},[e]);let[r,a]=_(null),i=p=>Array.from(p.dataTransfer?.types??[]).includes("Files"),s=p=>{let m=p.target?.closest?.("tr[data-dir-id]");return m?{id:m.dataset.dirId,name:m.dataset.dirName??""}:null},l=()=>e.appStack()[e.appStack().length-1]?.name??e.t("penzor.drive"),c=e.canWrite()&&e.auth()==="in"?{onDragOver:p=>{if(!i(p))return;p.preventDefault(),p.stopPropagation(),p.dataTransfer&&(p.dataTransfer.dropEffect="copy");let m=s(p),g=m?.name||l();(r?.place!==g||r?.target?.id!==m?.id)&&a({place:g,target:m})},onDragLeave:p=>{t.current?.contains(p.relatedTarget)||a(null)},onDrop:p=>{if(!i(p))return;p.preventDefault(),p.stopPropagation();let m=s(p);a(null);let g=Q().getPathForFile;if(!g){p.dataTransfer&&e.upload(Qp(p.dataTransfer),m);return}let h=Array.from(p.dataTransfer?.files??[]).map(y=>{try{return g(y)}catch{return""}}).filter(Boolean);e.upload(h,m)}}:{};J(()=>{e.canWrite()||a(null)},[e.canWrite()]);let d=e.t,f=e.auth(),u;return f==="out"?u=n(gf,{p:e}):e.loc().kind==="sync-home"?u=n(cf,{p:e,legacy:n(Ry,{p:e})}):e.snap()?e.error()?u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()})}):e.loc().kind==="overview"?u=n(Ny,{p:e,upload:()=>{e.go("app:penzor"),o.current?.click()}}):u=n(Fy,{p:e,dropDir:r?.target?.id??null}):u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()??d("penzor.loading")})}),n(Mr,{p:e,rootRef:t,extra:r?"pz-drop":"",on:c,children:[n("input",{class:"pz-root-upload",ref:o,type:"file",multiple:!0,hidden:!0,onChange:p=>{let m=p.currentTarget,g=Q().getPathForFile,h=g?Array.from(m.files??[]).map(y=>g(y)).filter(Boolean):Qs(Array.from(m.files??[]),!1);e.go("app:penzor"),e.upload(h),m.value=""}}),u,r&&n("div",{class:"pz-dropbar",children:n("span",{children:[n(re,{n:"upload"}),d("penzor.drop.to",{place:r.place})]})}),e.menu()&&n(Vy,{p:e}),!sl&&n(Sf,{p:e})]})}var My={dropbox:"Dropbox",s3:"S3",webdav:"WebDAV"};function al({on:e,disabled:t,label:o,title:r,onToggle:a}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,title:r,disabled:t,onClick:i=>{i.stopPropagation(),a(!e)},children:n("span",{})})}var il=({tone:e,text:t,title:o})=>n("span",{class:`pz-sync-state is-${e}`,title:o,children:[e!=="off"&&n("i",{}),t]});function Ry({p:e}){let t=e.t,o=e.syncState(),[r,a]=_(!1);if(!o)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:t("penzor.loading")})});if(!o.signedIn)return n(gf,{p:e});let i=e.snap(),s=o.notes,l=t("penzor.ledger.sync"),c=s.maxBytes??i?.sync?.maxBytes??0,d=i?.sync?.maxFileBytes||50*1024*1024,f=s.vault?i?.sync?.vaults.find(C=>C.vault===s.vault)??null:null,u=Np(o,c),p=s.on?s.last?.skippedLarge??0:0,m=s.rootName?t("penzor.sync.notesNamed",{name:s.rootName}):t("penzor.sync.notesPlain"),g=()=>e.openSync(),h=()=>{if(s.pending)return{tone:"wait",text:t("penzor.sync.waiting")};if(!s.on)return{tone:"off",text:t("penzor.sync.off")};let C=Co(o);if(C!=null)return{tone:"ok",text:C>0?t("penzor.sync.running",{pct:Math.round(C*100)}):t("penzor.sync.runningPlain")};if(u)return{tone:"warn",text:t("penzor.sync.overQuota")};if(Tr(o))return{tone:"warn",text:t("penzor.sync.failed")};if(s.backend==="folder")return{tone:"ok",text:t("penzor.sync.toFolder")};let D=My[s.backend];return D?{tone:"ok",text:t("penzor.sync.to",{name:D})}:s.last?{tone:"ok",text:s.localBytes!=null?t("penzor.sync.doneSize",{size:e.b(s.localBytes)}):t("penzor.sync.done")}:{tone:"ok",text:t("penzor.sync.firstPending")}},y={tone:"off",text:t("penzor.sync.off")},v=(C,D)=>D?`${C} \xB7 ${t("penzor.sync.metaLast",{time:Tn(D,e.locale())})}`:C,x=()=>{let C=o.agents;if(!C.on)return y;if(C.running)return{tone:"ok",text:t("penzor.sync.runningPlain")};let D=t("penzor.sync.agentsN",{n:C.count});return C.last&&!C.last.ok?{tone:"warn",text:t("penzor.sync.failed"),title:C.last.error}:C.last&&C.last.conflicts>0?{tone:"warn",text:t("penzor.sync.conflictsN",{n:C.last.conflicts}),title:t("penzor.sync.conflictsHint")}:{tone:"ok",text:v(D,C.last?.at)}},w=()=>{let C=o.plugins;return C.on?(C.pending??0)>0?{tone:"wait",text:t("penzor.sync.pluginsPending",{n:C.pending})}:{tone:"ok",text:v(t("penzor.sync.pluginsN",{n:C.count}),C.lastAt)}:y},z=C=>D=>{e.setSync(C,D)},I=s.available===!1&&!s.on&&(s.backend==="off"||s.backend==="penzor"),F=[e.thisDevice()?t("penzor.sync.metaDevice",{name:e.thisDevice()}):null,s.on?s.last?t("penzor.sync.metaLast",{time:Tn(s.last.at,e.locale())}):t("penzor.sync.metaNever"):null,s.on&&s.backend!=="off"?Ws(s,e.locale()):null].filter(C=>!!C),$=h(),N=f?[...new Set([...f.devices,...f.device?[f.device]:[]])]:[],Y=i?.ama?i.ama.reduce((C,D)=>C+D.sizeBytes,0):null;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Ir,{p:e}),n("div",{class:"pz-title pz-sync-head",children:[n("h1",{class:"pz-h1",children:t("penzor.sync.title")}),n("span",{class:"pz-badge",children:[n(re,{n:"check"}),Bp(o,e.locale())]})]}),F.length>0&&n("div",{class:"pz-meta",children:F.map(C=>n("span",{children:C},C))}),s.pending&&n(Ly,{p:e,s:o}),u&&n("div",{class:"pz-sync-ask is-warn",role:"region",children:[n("h4",{children:s.localBytes!=null&&c>0?t("penzor.sync.quotaTitle",{size:e.b(s.localBytes),ledger:l,max:e.b(c)}):t("penzor.sync.quotaTitlePlain",{ledger:l})}),n("p",{children:[t("penzor.sync.quotaBody"),p>0&&` ${t("penzor.sync.quotaLarge",{size:e.b(d),n:p})}`]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void zn("membership").then(C=>{C||e.ctx.app?.notify?.(t("err.openFailed"))}),children:t("member.upgrade")}),f&&n("button",{class:"pz-btn",onClick:()=>e.go(`sync:${f.vault}`),children:t("penzor.sync.quotaSee")})]})]}),n("div",{class:"pz-sync-card",children:[n("div",{class:`pz-sync-row is-click${r?" is-open":""}`,children:[n("button",{type:"button",class:"pz-sync-main","aria-expanded":r,onClick:()=>a(!r),children:[n("span",{class:"pz-tile",children:n(re,{n:"notebook"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:m}),n("small",{children:t("penzor.sync.notesDesc")})]}),n(il,{...$})]}),n(al,{on:s.on&&!s.pending,label:m,disabled:!!s.pending||I||e.syncBusy("notes"),title:s.pending?t("penzor.sync.decideAbove"):void 0,onToggle:z("notes")})]}),r&&n("div",{class:"pz-sync-sub",children:[n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSchedule")}),n("span",{children:Ws(s,e.locale())}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvDirection")}),n("span",{children:t(`penzor.sync.dir.${s.direction}`)}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),p>0&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSkipped")}),n("span",{children:t("penzor.sync.skippedN",{n:p,size:e.b(d)})}),n("span",{})]}),s.backend==="penzor"&&s.vault&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvWhere")}),n("span",{children:i?.sync&&c>0?t("penzor.sync.whereUsed",{ledger:l,vault:s.vault,used:e.b(i.sync.usedBytes),max:e.b(c)}):t("penzor.sync.where",{ledger:l,vault:s.vault})}),f?n("button",{class:"pz-link",onClick:()=>e.go(`sync:${f.vault}`),children:t("penzor.sync.open")}):n("span",{})]})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(re,{n:"bot"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.agents")}),n("small",{children:t("penzor.sync.agentsDesc")})]}),n(il,{...x()})]}),n(al,{on:o.agents.on,label:t("penzor.sync.agents"),disabled:e.syncBusy("agents"),onToggle:z("agents")})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(re,{n:"puzzle"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.plugins")}),n("small",{children:t("penzor.sync.pluginsDesc")})]}),n(il,{...w()})]}),n(al,{on:o.plugins.on,label:t("penzor.sync.plugins"),disabled:e.syncBusy("plugins"),onToggle:z("plugins")})]})]}),n("div",{class:"pz-h3",children:t("penzor.sync.devicesTitle")}),i?N.length===0?n("p",{class:"pz-sync-none",children:t("penzor.sync.noDevices")}):n("div",{class:"pz-rows pz-sync-dev",children:N.map(C=>n("div",{class:"row",children:[n(re,{n:"laptop"}),n("span",{class:"t",children:[C,C===e.thisDevice()&&n("em",{children:t("penzor.sync.thisOne")})]}),n("span",{class:"s",children:f?.device===C&&f.updatedAt?t("penzor.sync.lastWrite",{time:Tn(Date.parse(f.updatedAt),e.locale())}):""})]},C))}):n("p",{class:"pz-sync-none",children:t("penzor.loading")}),n("div",{class:"pz-h3",children:t("penzor.sync.phoneTitle")}),n("div",{class:"pz-tip",children:[n(re,{n:"info"}),n("span",{children:Y!=null?t("penzor.sync.phoneTip",{size:e.b(Y)}):t("penzor.sync.phoneTipPlain")})]}),n("p",{class:"pz-note",children:[t("penzor.sync.foot"),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.footLink")})]})]})})}function Ly({p:e,s:t}){let o=e.t,r=t.notes.pending,a=e.syncBusy("resolve"),i=new Date,s=o("penzor.sync.backupName",{name:t.notes.rootName??o("penzor.sync.notesPlain"),date:`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}),l=r.cloudDevice?o("penzor.sync.askCloud",{device:r.cloudDevice,files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)}):o("penzor.sync.askCloudNoDevice",{files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)});return n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.sync.askTitle"),children:[n("h4",{children:o("penzor.sync.askTitle")}),n("p",{children:[l," ",o("penzor.sync.askLocal",{local:r.localOnly.toLocaleString(),conflicts:r.conflicts.toLocaleString()})]}),e.confirmCloud()?n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.sync.askConfirm",{backup:s})}),n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("cloud"),children:o("penzor.sync.askConfirmGo")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!1),children:o("penzor.cancel")})]}):n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("merge"),children:o("penzor.sync.askMerge")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!0),children:o("penzor.sync.askCloudBtn")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>void e.resolveNotes("skip"),children:o("penzor.sync.askSkip")})]}),n("p",{class:"pz-sync-explain",children:o("penzor.sync.askExplain",{backup:s})})]})}function gf({p:e}){let t=e.t;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-empty",children:[n("span",{class:"ic",children:n(re,{n:"cloud"})}),n("h2",{children:t("penzor.out.title")}),n("p",{children:t("penzor.out.lead")}),n("button",{class:"pz-btn pri",onClick:()=>e.signIn(),children:[n(re,{n:"login"}),t("penzor.out.signIn")]})]})})}function Dy({p:e}){let t=e.t,o=e.snap()?.ledger,r=e.snap()?.ledgerStale,a=!!o?.complete&&o.usage.usedBytes!=null;return n("div",{class:"pz-unified-quota",role:"status",children:[n("div",{class:"pz-total",children:[n("b",{children:a?e.b(o.usage.usedBytes):"\u2014"}),n("span",{children:o?t("penzor.ofMax",{max:e.b(o.quota.limitBytes)}):t("penzor.unified.unavailable")})]}),a&&(o.state==="warn"||o.state==="over"?n(Yo,{pct:o.quota.limitBytes>0?o.usage.usedBytes/o.quota.limitBytes*100:100,warn:!0}):n(Oy,{p:e})),n("p",{class:"pz-note",children:r?t("penzor.unified.stale"):a?o.enforcement?t("penzor.unified.enforced"):o.phase==="grace"?t("penzor.unified.grace",{date:Jt(Math.max(Date.parse(o.rollout?.graceUntil??""),Date.parse(o.rollout?.compatibilityUntil??"")||0),e.locale())}):o.state==="over"?t("penzor.unified.over"):o.state==="warn"?t("penzor.unified.warn"):`${t("penzor.unified.notice")} \xB7 ${t("penzor.unified.accounting",{trash:e.b(o.usage.trashBytes)})}`:t("penzor.unified.incomplete")}),o?.rollout&&!r&&n("div",{class:"pz-tip",children:[n("p",{children:t("penzor.unified.rolloutPolicy")}),!o.rollout.acknowledgedAt&&n("button",{class:"pz-btn",onClick:()=>void e.acknowledgeStorageNotice(),children:t("penzor.unified.ack")})]})]})}var Xa=(e,t)=>t>0&&e/t>=.8;function Ny({p:e,upload:t}){let o=e.t,r=e.snap(),a=r?.ledger,i=e.content(),s=Us(r,i),l=v=>{let x=a?.sources.find(w=>w.id===v);return x?.status==="ready"?x.liveBytes+x.trashBytes:null},c=v=>{let x=l(v);return x==null?o("penzor.unified.unavailable"):e.b(x)},d=v=>()=>e.go(v),f=(v,x,w,z,I,F="folder")=>n("button",{class:`row${I?" is-warn":""}`,onClick:d(v),children:[n(re,{n:F}),n("span",{class:"t",children:[x,n("em",{children:I??w})]}),n("span",{class:"s",children:z}),n(re,{n:"right"})]},v),u=r?.apps&&Xa(r.apps.used,r.apps.quota)?o("penzor.quota.sourceLimit",{max:e.b(r.apps.quota),used:e.b(r.apps.used)}):void 0,p=r?.sync&&Xa(r.sync.usedBytes,r.sync.maxBytes)?o("penzor.quota.sourceLimit",{max:e.b(r.sync.maxBytes),used:e.b(r.sync.usedBytes)}):void 0,m=i?An(i):null,g=i?.deviceId,h=(r?.contentDevices??[]).filter(v=>v.id!==g),y=f("source:sync",o(s?"penzor.tree.legacy":"penzor.ledger.sync"),o(s?"penzor.ov.legacy":"penzor.ov.sync"),c("sync"),p);return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Ir,{p:e}),n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.drive")}),n("button",{class:"pz-btn",onClick:t,children:[n(re,{n:"upload"}),o("penzor.unified.uploadTo")]})]}),n(Dy,{p:e}),n("div",{class:"pz-ov-group",children:o("penzor.ov.mine")}),n("div",{class:"pz-rows",children:[f("app:penzor",o("penzor.uploads"),o("penzor.ov.uploads"),c("uploads")),Bs(a)&&f("source:market",o("penzor.source.market"),o("penzor.ov.market"),c("market"),void 0,"store")]}),n("div",{class:"pz-ov-group",children:o("penzor.ov.synced")}),n("div",{class:"pz-rows",children:s&&r?.contentDevices?n(R,{children:[f("content:default",o("penzor.scope.all"),m?.kind==="ok"&&m.at?o("penzor.ov.allLast",{time:Tn(m.at,e.locale())}):o("penzor.ov.all"),""),g&&f(`content:device-${g}`,o("penzor.tree.thisBackup"),o("penzor.ov.self"),""),h.map(v=>f(`content:device-${v.id}`,v.name,o("penzor.ov.device"),""))]}):n(R,{children:[y,f("source:agents",o("penzor.source.agents"),o("penzor.ov.agents"),c("agents")),f("source:profile",o("penzor.source.profile"),o("penzor.ov.profile"),c("profile"))]})}),n("div",{class:"pz-ov-group",children:o("penzor.tree.byApp")}),n("div",{class:"pz-rows",children:[f("source:ama",o("penzor.ledger.ama"),o("penzor.ov.ama"),c("ama")),f("source:apps",o("penzor.ledger.apps"),o("penzor.ov.apps"),c("apps"),u),f("source:plugins",o("penzor.source.plugins"),o("penzor.ov.plugins"),c("plugins")),f("exports",o("penzor.ledger.exports"),o("penzor.ov.exports"),c("exports"))]}),s&&n(R,{children:[n("div",{class:"pz-ov-group",children:o("penzor.ov.stale")}),n("div",{class:"pz-rows is-stale",children:y})]}),n("p",{class:"pz-note",children:o("penzor.unified.policy")})]})})}function Oy({p:e}){let t=e.snap()?.ledger;if(!t?.complete||t.usage.usedBytes==null||t.quota.limitBytes<=0)return null;let o=e.t,r=s=>{let l=t.sources.find(c=>c.id===s);return l?.status==="ready"?l.liveBytes+l.trashBytes:0},a=[[o("penzor.ov.segNotes"),r("ama")],[o("penzor.ledger.apps"),r("apps")],[o("penzor.ov.segSync"),r("sync")],[o("penzor.uploads"),r("uploads")]];a.push([o("penzor.ov.segOther"),Math.max(0,t.usage.usedBytes-a.reduce((s,[,l])=>s+l,0))]);let i=a.filter(([,s])=>s>0);return n(R,{children:[n("div",{class:"pz-seg",role:"img","aria-label":i.map(([s,l])=>`${s} ${e.b(l)}`).join(", "),children:i.map(([s,l],c)=>n("span",{class:`c${c}`,style:{width:`${Math.max(.6,l/t.quota.limitBytes*100)}%`}},s))}),n("div",{class:"pz-legend",children:i.map(([s,l],c)=>n("span",{children:[n("i",{class:`c${c}`}),s," ",n("b",{children:e.b(l)})]},s))})]})}function Fy({p:e,dropDir:t}){let o=e.t,r=e.loc(),a=e.snap(),i=e.rows(),[s,l]=_(!1),[c,d]=_(null),f=oe(null),u=oe(null),p=oe(null),m=e.canWrite(),g=e.selection();J(()=>(e.picker.files=()=>f.current?.click(),e.picker.folder=()=>u.current?.click(),()=>{e.picker.files=void 0,e.picker.folder=void 0}),[e]);let h=(S,A)=>{let M=S.currentTarget,G=Q().getPathForFile,ee=Array.from(M.files??[]);if(!G){M.value="",e.upload(Qs(ee,A));return}let U=ee.map(he=>{try{return G(he)}catch{return""}}),ae=U.filter(Boolean);if(A){let he=new Set;ee.forEach((qe,me)=>{let De=qe.webkitRelativePath??"",Qe=U[me];!De||!Qe||Qe.length<De.length||he.add(Qe.slice(0,Qe.length-De.length)+De.split("/")[0])}),ae=[...he]}M.value="",e.upload(ae)},y=(S,A)=>{e.select(A,{toggle:S.metaKey||S.ctrlKey,range:S.shiftKey}),p.current?.focus({preventScroll:!0})},v=S=>{if(S.target?.tagName!=="INPUT"){if((S.metaKey||S.ctrlKey)&&S.key.toLowerCase()==="a"&&e.canMulti())S.preventDefault(),e.selectAll();else if(S.key==="Escape"&&g.length>1){S.preventDefault();let A=e.selected();e.select(A)}}},x=r.kind==="sync"?o(e.content()?.config.enabled?"penzor.tree.legacy":"penzor.ledger.sync"):r.kind==="ama"?o("penzor.ledger.ama"):r.kind==="app"&&!e.canWrite()?o("penzor.ledger.apps"):null,w=r.kind==="content"?hf(e,r.namespace):r.kind==="sync"?r.vault:r.kind==="ama"?a.ama?.find(S=>S.id===r.vaultId)?.name??"":r.kind==="app"?e.appLabel(r.appId):r.kind==="source"?o(Ar[r.source]):r.kind==="exports"?o("penzor.ledger.exports"):o("penzor.trash"),z=r.kind==="app"?e.appStack().map(S=>S.name):e.path()?e.path().split("/"):[],I=[...x?[{label:x,depth:null}]:[],{label:w,depth:0},...z.map((S,A)=>({label:S,depth:A+1}))],F=["mtime","size","name"],$=()=>e.setSort(F[(F.indexOf(e.sort())+1)%F.length]),N=r.kind==="sync"?o("penzor.col.device"):r.kind==="trash"?o("penzor.col.origin"):r.kind==="exports"?o("penzor.col.app"):null,Y=r.kind==="trash"?o("penzor.col.deleted"):o("penzor.col.mtime"),C=()=>{if(r.kind==="content"){let A=e.content()?An(e.content()):null,M=e.content()?.deviceId,G=r.namespace==="default"?o("penzor.content.noteAll"):r.namespace===`device-${M}`?o("penzor.content.noteSelf"):o("penzor.content.noteDevice",{name:w});return n(R,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:w}),n("span",{class:"pz-badge",children:[n(re,{n:"cloud"}),A?.kind==="ok"&&A.at?o("penzor.content.badgeLast",{time:Tn(A.at,e.locale())}):o("penzor.content.badge")]})]}),n("p",{class:"pz-note",children:G})]})}if(r.kind==="source"&&r.source==="market"){let A=a.ledger?.sources.find(G=>G.id==="market"),M=A?.status==="ready";return n(R,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.source.market")}),n("span",{class:"pz-badge",children:[n(re,{n:"store"}),o("penzor.market.badge")]})]}),M&&n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.market.meta",{size:e.b(A.liveBytes+A.trashBytes),n:(A.fileCount??0).toLocaleString()})}),(A.historyBytesExcluded??0)>0&&n("span",{children:o("penzor.market.history",{size:e.b(A.historyBytesExcluded)})})]}),n("p",{class:"pz-note",children:o("penzor.source.marketNote")})]})}if(r.kind==="source")return n(R,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o(Ar[r.source])}),n("span",{class:"pz-badge",children:[n(re,{n:"lock"}),o("penzor.unified.readonly")]})]}),n("p",{class:"pz-note",children:o(r.source==="plugins"?"penzor.source.pluginNote":"penzor.source.readonly")})]});if(r.kind==="sync"){let A=a.sync?.vaults.find(ee=>ee.vault===r.vault);if(!A)return null;let M=!!e.thisDevice()&&A.devices.includes(e.thisDevice()),G=a.sync;return n(R,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A.vault}),M&&!e.content()?.config.enabled&&n("span",{class:"pz-badge",children:[n(re,{n:"refresh"}),o("penzor.sync.thisDevice")]})]}),e.content()?.config.enabled&&n("div",{class:"pz-legacy",children:[n(re,{n:"history"}),n("span",{children:[o("penzor.legacy.title"),n("small",{children:o("penzor.legacy.body")})]}),n("button",{class:"pz-btn",onClick:()=>e.go("content:default"),children:o("penzor.legacy.go")})]}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A.bytes),n:A.files.toLocaleString()})}),A.updatedAt&&n("span",{children:A.device?o("penzor.sync.last",{time:Jt(Date.parse(A.updatedAt),e.locale()),device:A.device}):o("penzor.sync.lastNoDevice",{time:Jt(Date.parse(A.updatedAt),e.locale())})}),A.devices.length>0&&n("span",{children:o("penzor.sync.devices",{n:A.devices.length})})]}),Xa(G.usedBytes,G.maxBytes)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:G.usedBytes/G.maxBytes*100,warn:G.usedBytes/G.maxBytes>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(G.maxBytes),used:e.b(G.usedBytes)})})]})]})}if(r.kind==="ama"){let A=a.ama?.find(M=>M.id===r.vaultId);return n(R,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A?.name}),n("span",{class:"pz-badge",children:[n(re,{n:"cloud"}),"Amadeus Cloud"]})]}),n("div",{class:"pz-meta",children:[n("span",{children:e.b(A?.sizeBytes??0)}),n("span",{children:o("penzor.unified.counted")})]})]})}if(r.kind==="app"){let A=a.apps?.apps.find(G=>G.appId===r.appId),M=a.apps;return n(R,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:e.appLabel(r.appId)})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A?.bytes??0),n:(A?.files??0).toLocaleString()})}),!e.canWrite()&&n("span",{children:o("penzor.apps.by",{app:e.appLabel(r.appId)})})]}),e.canWrite()&&n("div",{class:"pz-meta",children:a.ledger?.complete&&a.ledger.usage.usedBytes!=null?n(R,{children:[n("span",{children:o("penzor.drive.total",{used:e.b(a.ledger.usage.usedBytes),max:e.b(a.ledger.quota.limitBytes)})}),n("button",{class:"pz-link",onClick:()=>e.go("ov"),children:o("penzor.drive.seeAll")})]}):n("span",{children:o("penzor.unified.unavailable")})}),M&&Xa(M.used,M.quota)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:M.used/M.quota*100,warn:M.used/M.quota>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(M.quota),used:e.b(M.used)})})]})]})}if(r.kind==="exports")return n(R,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.ledger.exports")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(a.exports?.totalBytes??0),n:(a.exports?.total??0).toLocaleString()})}),n("span",{children:o("penzor.card.expFoot")})]})]});let S=i??[];return n(R,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.trash")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.trash.meta",{n:S.length,size:e.b((a.trash??[]).reduce((A,M)=>A+(Number(M.fileSize)||0),0))})}),n("span",{children:o("penzor.trash.note")})]}),e.confirmEmpty()&&n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.confirm.empty",{n:S.length})}),n("button",{class:"pz-btn danger solid",onClick:()=>void e.emptyTrash(),children:o("penzor.trash.emptyBtn")}),n("button",{class:"pz-btn",onClick:()=>e.setConfirmEmpty(!1),children:o("penzor.cancel")})]})]})},D=e.selected(),H=g.length>1,E=g.reduce((S,A)=>S+(A.dir?0:A.size),0),Z=e.txRows();return n(R,{children:[n("div",{class:"pz-top",children:[n("nav",{class:"pz-crumb",children:I.map((S,A)=>{let M=A===I.length-1,G=M?n("b",{children:S.label}):S.depth==null?n("span",{children:S.label}):n("button",{onClick:()=>e.up(S.depth),children:S.label});return n("span",{style:{display:"contents"},children:[G,!M&&n("i",{children:"\u203A"})]},A)})}),n("span",{class:"pz-sp"}),H?n(R,{children:[n("span",{class:"pz-selbar",children:o("penzor.sel.bar",{n:g.length,size:e.b(E)})}),g.some(S=>!S.dir)&&n("button",{class:"pz-btn",onClick:()=>void e.downloadMany(g),children:[n(re,{n:"download"}),o("penzor.act.download")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"move",at:[]}),children:[n(re,{n:"move"}),o("penzor.act.move")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn danger",onClick:()=>void e.trashMany(g),children:[n(re,{n:"trash"}),o("penzor.act.trash")]}),n("button",{class:"pz-ibtn",title:o("penzor.act.clearSel"),onClick:()=>e.select(D),children:n(re,{n:"x"})})]}):n(R,{children:[z.length>0&&n("button",{class:"pz-ibtn",title:o("penzor.act.up"),onClick:()=>e.up(),children:n(re,{n:"up"})}),r.kind==="source"&&(r.source==="agents"||r.source==="profile")&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.(r.source==="agents"?"agents":"calendar").then(S=>{S||e.ctx.app?.notify?.(o("penzor.source.entryUnavailable"))}),children:o(r.source==="agents"?"penzor.source.openAgents":"penzor.source.openCalendar")}),r.kind==="ama"&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.("amadeus"),children:[n(re,{n:"book"}),o("penzor.ama.open")]}),r.kind==="app"&&r.appId==="connect"&&e.ctx.app?.openSettings&&n("button",{class:"pz-chip",onClick:()=>e.ctx.app?.openSettings?.(In("webpages")),children:[n(re,{n:"globe"}),o("penzor.hosted.open")]}),r.kind==="trash"&&e.canEmptyTrash()&&n("button",{class:"pz-btn danger",onClick:()=>e.setConfirmEmpty(!0),children:[n(re,{n:"trash"}),o("penzor.trash.emptyBtn")]}),m&&n("span",{class:"pz-split",children:[n("button",{class:"pz-btn pri",onClick:()=>e.picker.files?.(),children:[n(re,{n:"upload"}),o("penzor.act.upload")]}),n("button",{class:"pz-btn pri more",title:o("penzor.act.uploadMore"),"aria-label":o("penzor.act.uploadMore"),onClick:S=>{let A=S.currentTarget.getBoundingClientRect();d({x:A.right,y:A.bottom+4})},children:n(re,{n:"down"})})]}),m&&n("button",{class:"pz-ibtn",title:o("penzor.act.newFolder"),onClick:()=>e.startNewFolder(),children:n(re,{n:"folder-plus"})}),s||e.query()?n("input",{class:"pz-find",placeholder:o("penzor.search"),value:e.query(),autoFocus:!0,onInput:S=>e.setQuery(S.currentTarget.value),onKeyDown:S=>{S.key==="Escape"&&(e.setQuery(""),l(!1))},onBlur:()=>{e.query()||l(!1)}}):n("button",{class:"pz-ibtn",title:o("penzor.search"),onClick:()=>l(!0),children:n(re,{n:"search"})}),n("button",{class:"pz-chip",onClick:$,children:[r.kind==="trash"&&e.sort()==="mtime"?o("penzor.sort.deleted"):o(`penzor.sort.${e.sort()}`),n(re,{n:"down"})]})]})]}),m&&n(R,{children:[n("input",{ref:f,type:"file",multiple:!0,hidden:!0,onChange:S=>h(S,!1)}),n("input",{ref:u,type:"file",hidden:!0,webkitdirectory:!0,onChange:S=>h(S,!0)})]}),c&&n(yf,{x:c.x,y:c.y,alignRight:!0,onClose:()=>d(null),items:[{id:"files",label:o("penzor.act.uploadFiles"),icon:"upload",run:()=>e.picker.files?.()},{id:"folder",label:o("penzor.act.uploadFolder"),icon:"folder",run:()=>e.picker.folder?.()}]}),n("div",{class:"pz-scroll",ref:p,tabIndex:-1,onKeyDown:v,onContextMenu:S=>{!m||S.target.closest("tr")||(S.preventDefault(),e.openMenu(S.clientX,S.clientY,null))},children:n("div",{class:"pz-col",children:[C(),e.rowsError()?n("p",{class:"pz-note",children:o("penzor.err",{reason:e.rowsError()})}):i?i.length===0&&!Z.length&&e.newFolder()==null?n("p",{class:"pz-note",children:e.query()?o("penzor.noMatch",{q:e.query()}):m&&!z.length?o("penzor.drive.empty"):o("penzor.folderEmpty")}):r.kind==="source"&&r.source==="market"?n($y,{p:e,rows:i}):n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:Y}),N&&n("th",{children:N})]})}),n("tbody",{children:[e.newFolder()!=null&&n(Hy,{p:e,cols:N?4:3}),i.map((S,A)=>n(R,{children:[!S.dir&&(A===0||i[A-1].dir)&&Z.map(M=>n(ff,{p:e,x:M},M.key)),n("tr",{class:`${e.isSelected(S.key)?"sel":""}${t&&t===S.key?" drop":""}`,"data-dir-id":m&&S.dir?S.key:void 0,"data-dir-name":m&&S.dir?S.name:void 0,onMouseDown:M=>{M.shiftKey&&M.preventDefault()},onClick:M=>y(M,S),onDblClick:()=>{S.dir?e.openDir(S):e.download(S)},onContextMenu:M=>{M.preventDefault(),e.openMenu(M.clientX,M.clientY,S)},children:[n("td",{class:"n",children:n("span",{children:[n(re,{n:Wa(S.name,S.dir)}),r.kind==="content"&&!z.length&&pf[S.name]?n(R,{children:[n("b",{children:o(pf[S.name])}),n("em",{class:"cnt",children:[S.name,(S.count??0)>0&&` \xB7 ${o("penzor.card.expSmall",{n:S.count.toLocaleString()})}`]})]}):n(R,{children:[n("b",{children:S.name}),S.count!=null&&S.count>0&&n("em",{class:"cnt",children:S.count.toLocaleString()})]})]})}),n("td",{class:"r",children:S.dir&&r.kind==="app"?"\u2014":e.b(S.size)}),n("td",{children:Jt(S.mtime,e.locale())}),N&&n("td",{class:S.col4?"":"dim",children:S.col4?S.col4===e.thisDevice()?o("penzor.side.thisDevice",{name:S.col4}):S.col4:"\u2014"})]})]},S.key)),(i.length===0||i[i.length-1].dir)&&Z.map(S=>n(ff,{p:e,x:S},S.key))]})]}):n("p",{class:"pz-note",children:o("penzor.loading")}),r.kind==="trash"&&!!e.snap()?.amaTrash?.length&&n(Uy,{p:e})]})})]})}var df={plugin:"penzor.market.type.plugin",skill:"penzor.market.type.skill",agent:"penzor.market.type.agent",space:"penzor.market.type.space",theme:"penzor.market.type.theme","amadeus-plugin":"penzor.market.type.amadeusPlugin"},uf={approved:"penzor.market.status.approved",pending:"penzor.market.status.pending",rejected:"penzor.market.status.rejected"},By={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",theme:"palette",space:"archive"};function $y({p:e,rows:t}){let o=e.t;return n("table",{class:"pz-table pz-market",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{children:o("penzor.col.type")}),n("th",{children:o("penzor.col.status")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:o("penzor.col.mtime")})]})}),n("tbody",{children:t.map(r=>{let a=r.ref?.market,i=a?a.counted?[a.version?`v${a.version.replace(/^v/i,"")}`:"",a.pending?o("penzor.market.updating"):"",a.historyBytes>0?o("penzor.market.older",{size:e.b(a.historyBytes)}):""].filter(Boolean).join(" \xB7 "):o(a.source==="npm"?"penzor.market.fromNpm":"penzor.market.fromGithub"):"";return n("tr",{children:[n("td",{class:"n",children:n("span",{children:[n(re,{n:By[a?.type??""]??"archive"}),n("b",{children:r.name}),i&&n("em",{class:"cnt",children:i})]})}),n("td",{children:a&&df[a.type]?o(df[a.type]):a?.type??"\u2014"}),n("td",{children:a&&n("span",{class:`pz-badge${a.status==="rejected"?" is-warn":""}`,children:uf[a.status]?o(uf[a.status]):a.status})}),n("td",{class:"r",children:a&&!a.counted?o("penzor.market.notCounted"):e.b(r.size)}),n("td",{children:Jt(r.mtime,e.locale())})]},r.key)})})]})}function hf(e,t){return t==="default"?e.t("penzor.scope.all"):t===`device-${e.content()?.deviceId}`?e.t("penzor.tree.thisBackup"):e.snap()?.contentDevices?.find(r=>`device-${r.id}`===t)?.name||`Forsion-${t.slice(7,15)}`}var pf={Amadeus:"penzor.cat.notes",agents:"penzor.source.agents",human:"penzor.cat.profile",Plugins:"penzor.cat.plugins"};function Uy({p:e}){let t=e.snap()?.amaTrash;return n("section",{class:"pz-ama-trash",children:[n("h3",{class:"pz-h3",children:e.t("penzor.trash.ama")}),n("p",{class:"pz-note",children:e.t("penzor.trash.amaNote")}),t?t.length?n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:e.t("penzor.col.name")}),n("th",{children:e.t("penzor.col.size")}),n("th",{children:e.t("penzor.trash.expires")})]})}),n("tbody",{children:t.map(o=>n("tr",{children:[n("td",{children:[o.vaultName," / ",o.path]}),n("td",{children:e.b(o.size)}),n("td",{children:Jt(Date.parse(o.expiresAt),e.locale())})]},o.id))})]}):n("p",{class:"pz-note",children:e.t("penzor.folderEmpty")}):n("p",{class:"pz-note",children:e.t("penzor.unified.unavailable")})]})}function Hy({p:e,cols:t}){let[o,r]=_(e.newFolder()??""),a=oe(null),i=oe(!1);Zn(()=>{a.current?.focus(),a.current?.select()},[]);let s=()=>{i.current||(i.current=!0,e.createFolder(o))};return n("tr",{class:"sel",children:[n("td",{class:"n",children:n("span",{children:[n(re,{n:"folder-open"}),n("input",{ref:a,class:"pz-newname",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.cancelNewFolder())},onBlur:s})]})}),n("td",{class:"r",children:"\u2014"}),n("td",{children:e.t("penzor.justNow")}),t>3&&n("td",{})]})}function ff({p:e,x:t}){let o=t.size>0?Math.min(100,Math.round(t.done/t.size*100)):0;return n("tr",{class:`pz-txrow ${t.state}`,title:t.state==="paused"?e.t("penzor.tx.paused"):void 0,children:[n("td",{class:"n",children:n("span",{children:[n(re,{n:Wa(t.name)}),n("b",{children:t.name})]})}),n("td",{class:"r",children:t.state==="active"?Vs(t.done,t.size,e.locale()):e.b(t.size)}),n("td",{children:t.state==="queued"?n("span",{class:"pz-inl",children:e.t("penzor.tx.queued")}):n("span",{class:"pz-inl",children:[n(Yo,{pct:o}),t.state==="paused"?e.t("penzor.tx.pause"):`${o}%`]})})]})}function bf(e,t){let o=e.t,r=e.loc().kind,a={id:"download",label:o("penzor.act.download"),icon:"download",run:()=>void e.download(t)};return r==="source"?t.dir||!t.ref?.downloadPath?[]:[a]:r==="app"&&!e.canManageRow(t)?t.dir?[]:[a]:r==="sync"||r==="ama"?t.dir?[]:[a]:r==="app"?[...t.dir?[]:[a],{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>{e.select(t),e.setSide({kind:"move",at:[]})}},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trash(t)}]:r==="exports"?[a,{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"delete",label:o("penzor.act.delete"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"deleteExport"})}}]:r==="trash"&&e.canManageRow(t)?[{id:"restore",label:o("penzor.act.restore"),icon:"undo",run:()=>void e.restore(t)},{id:"purge",label:o("penzor.act.purge"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"purge"})}}]:[]}function qy(e,t){let o=e.t;if(!t)return e.canWrite()?[{id:"upload",label:o("penzor.act.uploadHere"),icon:"upload",run:()=>e.picker.files?.()},{id:"new-folder",label:o("penzor.act.newFolder"),icon:"folder-plus",run:()=>e.startNewFolder()}]:[];let r=e.selection();return r.length>1&&r.some(a=>a.key===t.key)?vf(e,r):bf(e,t)}function vf(e,t){let o=e.t,r=e.loc().kind,a=t.filter(i=>!i.dir).length;return[...a?[{id:"download",label:o("penzor.sel.download",{n:a}),icon:"download",run:()=>void e.downloadMany(t)}]:[],...t.every(e.canManageRow)?[{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>e.setSide({kind:"move",at:[]})},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trashMany(t)}]:[]]}function yf({x:e,y:t,items:o,onClose:r,alignRight:a}){let i=oe(null),[s,l]=_({x:e,y:t});return J(()=>{let c=i.current;if(c){let u=c.getBoundingClientRect(),p=a?e-u.width:e;l({x:Math.max(8,Math.min(p,window.innerWidth-u.width-8)),y:t+u.height>window.innerHeight-8?Math.max(8,t-u.height):t})}let d=u=>{u.target instanceof Node&&c?.contains(u.target)||r()},f=u=>{u.key==="Escape"&&r()};return window.addEventListener("pointerdown",d,!0),window.addEventListener("keydown",f,!0),window.addEventListener("blur",r),window.addEventListener("wheel",r,{passive:!0}),()=>{window.removeEventListener("pointerdown",d,!0),window.removeEventListener("keydown",f,!0),window.removeEventListener("blur",r),window.removeEventListener("wheel",r)}},[e,t]),o.length?va(n("div",{ref:i,class:"ctx-menu pz-menu",role:"menu",style:{left:`${s.x}px`,top:`${s.y}px`},children:o.map((c,d)=>n(R,{children:[c.danger&&d>0&&n("div",{class:"ctx-separator"}),n("button",{role:"menuitem",class:c.danger?"danger":"",onClick:()=>{r(),c.run()},children:[n(re,{n:c.icon}),c.label]})]},c.id))}),document.body):(queueMicrotask(r),null)}function Vy({p:e}){let t=e.menu();return n(yf,{x:t.x,y:t.y,items:qy(e,t.row),onClose:e.closeMenu})}function xf({p:e}){ll(e);let t=e.t,o=e.loc(),r=e.selected();if(So(o)||!r)return n(Mr,{p:e,side:!0,children:n("p",{class:"pz-side-none",children:t("penzor.side.none")})});let a=e.snap(),i=e.side(),s=e.selection();if(s.length>1)return n(jy,{p:e,sel:s});let l=o.kind==="content"?`${hf(e,o.namespace)} / ${r.key}`:o.kind==="sync"?`${o.vault} / ${r.key}`:o.kind==="ama"?`${a?.ama?.find(g=>g.id===o.vaultId)?.name??""} / ${r.key}`:o.kind==="app"?[e.appLabel(o.appId),...e.appStack().map(g=>g.name),r.name].join(" / "):o.kind==="source"?`${t(Ar[o.source])} / ${r.key}`:o.kind==="exports"?`${t("penzor.ledger.exports")} / ${r.name}`:r.col4??"",c=r.dir?"":(r.name.match(/\.([A-Za-z0-9]{1,8})$/)?.[1]??"").toUpperCase(),d=o.kind==="trash"?t("penzor.side.inTrash",{size:e.b(r.size)}):r.dir?r.count!=null?t("penzor.side.folder",{n:r.count.toLocaleString()}):t("penzor.side.folderPlain"):[c,e.b(r.size)].filter(Boolean).join(" \xB7 "),f=o.kind==="trash"?[[t("penzor.side.origin"),l],[t("penzor.side.deletedAt"),Jt(r.mtime,e.locale())]]:[[t("penzor.side.where"),l],[t("penzor.side.mtime"),Jt(r.mtime,e.locale())]];o.kind==="sync"&&!r.dir&&f.push([t("penzor.side.device"),r.col4?r.col4===e.thisDevice()?t("penzor.side.thisDevice",{name:r.col4}):r.col4:"\u2014"]),o.kind==="app"&&!r.dir&&!e.canWrite()&&f.push([t("penzor.side.from"),e.appLabel(o.appId)]),o.kind==="exports"&&f.push([t("penzor.side.from"),r.col4??"\u2014"]);let u=o.kind==="app"&&!e.canManageRow(r)?r.archive?"penzor.archive.note":r.managed?"penzor.hosted.note":"penzor.source.appNote":Vp(o),p=bf(e,r),m=e.versions();return n(Mr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(re,{n:Wa(r.name,r.dir)})}),i.kind==="rename"?n(Wy,{p:e,row:r}):n("div",{class:"pz-fname",children:r.name}),n("div",{class:"pz-fsub",children:d}),i.kind==="confirm"?n("div",{class:"pz-confirm",style:{margin:0},children:[n("span",{children:t(i.what==="purge"?"penzor.confirm.purge":"penzor.confirm.deleteExport",{name:r.name})}),n("button",{class:"pz-btn danger solid",onClick:()=>void(i.what==="purge"?e.purge(r):e.deleteExport(r)),children:t(i.what==="purge"?"penzor.act.purge":"penzor.act.delete")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:t("penzor.cancel")})]}):p.length>0&&n("div",{class:"pz-acts",children:p.filter(g=>g.id!=="move").map(g=>n("button",{class:`pz-btn${g.danger?" danger":""}${g.id==="restore"?" pri":""}`,onClick:()=>g.run(),children:[n(re,{n:g.icon}),g.id==="trash"?t("penzor.act.delete"):g.label]},g.id))}),i.kind==="move"&&n(kf,{p:e,row:r,at:i.at}),n("dl",{class:"pz-dl",children:[f.map(([g,h])=>n(R,{children:[n("dt",{children:g}),n("dd",{children:h})]},g)),o.kind==="app"&&!r.dir&&n(R,{children:[n("dt",{children:t("penzor.side.versions")}),n("dd",{children:m==null?"\u2026":m.length?t("penzor.side.versionsN",{n:m.length}):t("penzor.side.versionsNone")})]})]}),e.canManageRow(r)&&!r.dir&&m&&m.length>0&&n("div",{class:"pz-vers",children:m.map(g=>n("div",{children:[n("span",{children:t("penzor.side.versionRow",{n:g.versionNumber,time:Jt(g.createdAt,e.locale()),size:e.b(g.fileSize)})}),n("button",{class:"pz-link",onClick:()=>void e.restoreVersion(r,g),children:t("penzor.side.restoreVersion")})]},g.versionNumber))}),o.kind==="trash"&&r.dir&&(r.count??0)>0&&n("div",{class:"pz-tip",children:[n(re,{n:"undo"}),n("span",{children:t("penzor.side.inner",{n:r.count})})]}),o.kind==="exports"&&n("div",{class:"pz-tip",children:[n(re,{n:"trash"}),n("span",{children:t("penzor.side.exportNote")})]}),u&&n("div",{class:"pz-tip",children:[n(re,{n:"lock"}),n("span",{children:t(u,{vault:o.kind==="sync"?o.vault:""})})]})]})}function Wy({p:e,row:t}){let[o,r]=_(t.name),a=oe(null),i=oe(!1),s=()=>{i.current||(i.current=!0,e.rename(t,o))};return J(()=>{let l=a.current;if(!l)return;l.focus();let c=t.dir?-1:t.name.lastIndexOf(".");l.setSelectionRange(0,c>0?c:t.name.length)},[t.key]),n("input",{ref:a,class:"pz-input",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.setSide({kind:"view"}))},onBlur:s})}function kf({p:e,row:t,at:o}){let r=e.t,a=e.loc(),i=a.kind==="app"?e.appLabel(a.appId):"",s=e.selection(),l=s.length>1,c=new Set(l?s.map(u=>u.key):[t.key]),d=(e.moveFolders()??[]).filter(u=>!c.has(u.id)),f=o[o.length-1]??{id:"ROOT",name:r("penzor.move.root",{app:i})};return n("div",{class:"pz-tip",style:{flexDirection:"column"},children:[n("div",{class:"pz-sh",style:{margin:0},children:r("penzor.move.title")}),n("div",{class:"pz-pick",children:[o.length>0&&n("button",{onClick:()=>e.moveBrowse(o.slice(0,-1)),children:[n(re,{n:"up"}),o.length>1?o[o.length-2].name:r("penzor.move.root",{app:i})]}),e.moveFolders()==null?n("span",{children:"\u2026"}):d.length===0?n("span",{children:r("penzor.move.noFolders")}):d.map(u=>n("button",{onClick:()=>e.moveBrowse([...o,u]),children:[n(re,{n:"folder"}),u.name]},u.id))]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void(l?e.moveMany(s,f):e.moveTo(t,f)),children:r("penzor.move.here")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:r("penzor.cancel")})]})]})}function jy({p:e,sel:t}){let o=e.t,r=e.loc(),a=t.filter(u=>!u.dir),i=t.length-a.length,s=a.reduce((u,p)=>u+p.size,0),l=new Date,c=o("penzor.download.folder",{date:`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`}),d=r.kind==="app"?[e.appLabel(r.appId),...e.appStack().map(u=>u.name)].join(" / "):r.kind==="sync"?[r.vault,...e.path()?e.path().split("/"):[]].join(" / "):r.kind==="ama"?[e.snap()?.ama?.find(u=>u.id===r.vaultId)?.name??"",...e.path()?e.path().split("/"):[]].join(" / "):"",f=e.side();return n(Mr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(re,{n:"files"})}),n("div",{class:"pz-fname",children:o("penzor.sel.title",{n:t.length})}),n("div",{class:"pz-fsub",children:i?o("penzor.sel.subDirs",{size:e.b(s),files:a.length,dirs:i}):o("penzor.sel.sub",{size:e.b(s),files:a.length})}),n("div",{class:"pz-acts",children:vf(e,t).map(u=>n("button",{class:`pz-btn${u.danger?" danger":""}`,onClick:()=>u.run(),children:[n(re,{n:u.icon}),u.id==="trash"?o("penzor.act.delete"):u.label]},u.id))}),f.kind==="move"&&n(kf,{p:e,row:t[0],at:f.at}),n("dl",{class:"pz-dl",children:[n("dt",{children:o("penzor.side.where")}),n("dd",{children:d}),a.length>1&&n(R,{children:[n("dt",{children:o("penzor.sel.saveTo")}),n("dd",{children:o("penzor.sel.saveToValue",{folder:c})})]})]}),i>0&&a.length>0&&n("div",{class:"pz-tip",children:[n(re,{n:"folder"}),n("span",{children:o("penzor.sel.noDirs")})]})]})}var wf=(e,t)=>t<60?e.t("penzor.tx.sec",{n:Math.max(1,Math.round(t))}):e.t("penzor.tx.min",{n:Math.ceil(t/60)}),Gy=(e,t)=>t!=null&&Date.now()-t<6e4?e.t("penzor.justNow"):Jt(t,e.locale()),Jy=(e,t)=>{let o=t.error??"";return o==="too_large"?e.t("penzor.err.too_large",{size:e.b(t.size)}):o==="network"?e.t("penzor.err.network",{pct:t.size?Math.round(t.done/t.size*100):0}):o==="quota"||o==="account_changed"||o==="not_signed_in"||o==="gone"||o==="changed"||o==="storage_unavailable"||o==="popup_blocked"||o==="download_unavailable"||o==="download_failed"?e.t(`penzor.err.${o}`):e.t("penzor.err.other",{code:o||"?"})};function Xy(e){let t=e.filter(l=>l.state==="active"||l.state==="queued"||l.state==="paused"),o=t.filter(l=>l.state!=="paused"),r=o.reduce((l,c)=>l+Math.max(c.size,c.done),0),a=o.reduce((l,c)=>l+c.done,0),i=o.reduce((l,c)=>l+c.speed,0),s=i>0?(r-a)/i:null;return{live:t,failed:e.filter(l=>l.state==="failed"),done:e.filter(l=>l.state==="done"),up:t.filter(l=>l.kind==="up").length,down:t.filter(l=>l.kind==="down").length,pct:r>0?Math.min(100,Math.round(a/r*100)):0,eta:s!=null&&s>=5?s:null}}var sl=!1;function zf(e,t){let o=t.ui?.float;if(typeof o!="function")return null;sl=!0;let r=null,a=()=>e.card()!=="hidden"&&(e.transfers().length>0||e.notices().length>0),i=()=>{if(a()&&!r){try{r=o({scope:"space",space:hn,anchor:"bottom-end",role:"panel",id:"transfers",bare:!0})}catch(l){console.error("[penzor] transfer float failed",l);return}Le(n(Ky,{p:e}),r.el)}else if(!a()&&r){let l=r;r=null,l.close(),Le(null,l.el)}},s=e.subscribe(i);return i(),()=>{if(s(),sl=!1,r){let l=r;r=null,l.close(),Le(null,l.el)}}}function Ky({p:e}){return ll(e),n(Mr,{p:e,extra:"pz-txfloat",children:n(Sf,{p:e})})}function Sf({p:e}){let t=e.t,o=e.card(),r=e.transfers(),a=e.notices();if(o==="hidden"||!r.length&&!a.length)return null;let i=Xy(r),s=i.failed.length+a.length,l=t("penzor.tx.counts",{up:i.up,down:i.down}),c=i.live.length?t("penzor.tx.busy",{n:i.live.length}):s?t("penzor.tx.failedN",{n:s}):t("penzor.tx.allDone"),d=i.live.length?[l,i.eta!=null?t("penzor.tx.eta",{eta:wf(e,i.eta)}):""].filter(Boolean).join(" \xB7 "):s?i.done.length?t("penzor.tx.restDone",{n:i.done.length}):"":t("penzor.tx.doneN",{n:i.done.length}),f={onMouseEnter:()=>e.holdCard(!0),onMouseLeave:()=>e.holdCard(!1)};if(o==="pill")return n("button",{class:"ui-popover pz-txpill",...f,onClick:()=>e.setCard("open"),title:t("penzor.tx.expand"),"aria-label":t("penzor.tx.expand"),children:[i.live.length?n("span",{class:"pz-ring",style:{"--p":i.pct}}):n(re,{n:s?"alert":"check"}),n("span",{children:i.live.length?t("penzor.tx.pill",{counts:l,pct:i.pct}):c}),n(re,{n:"up"})]});let u=g=>g.state==="failed"?0:g.state==="active"?1:g.state==="queued"||g.state==="paused"?2:3,p=[...r].filter(g=>g.state!=="canceled").sort((g,h)=>u(g)-u(h)||(u(g)===3?(h.finishedAt??0)-(g.finishedAt??0):0)),m=i.live.length>0&&i.live.every(g=>g.state==="paused");return n("div",{class:"ui-popover pz-txcard",role:"region","aria-label":c,...f,children:[n("div",{class:"pz-txhead",children:[n("b",{children:c}),n("span",{children:d}),n("i",{class:"sp"}),n("button",{class:"pz-ib",title:t("penzor.tx.collapse"),"aria-label":t("penzor.tx.collapse"),onClick:()=>e.setCard(i.live.length||s?"pill":"hidden"),children:n(re,{n:"down"})})]}),i.live.length>0&&n("div",{class:"pz-txall",children:n(Yo,{pct:i.pct})}),n("div",{class:"pz-txlist",children:[a.map(g=>n("div",{class:"pz-txrow2 is-fail",children:[n(re,{n:"alert"}),n("span",{class:"nm",children:t("penzor.tx.quota",{size:e.b(g.short)})}),n("span",{class:"acts",children:n("button",{class:"pz-ib",title:t("penzor.tx.remove"),onClick:()=>e.dismissNotice(g.id),children:n(re,{n:"x"})})}),n("span",{class:"sub",children:[n("span",{class:"err",children:t("penzor.tx.quotaSub")}),n("button",{class:"pz-link",onClick:()=>{e.dismissNotice(g.id),e.go("trash")},children:t("penzor.tx.freeSpace")})]})]},g.id)),p.map(g=>n(Yy,{p:e,x:g},g.id))]}),n("div",{class:"pz-txfoot",children:[i.live.length>0&&n("button",{onClick:()=>void e.txAll(m?"resume":"pause"),children:t(m?"penzor.tx.resumeAll":"penzor.tx.pauseAll")}),i.failed.length>0&&!i.live.length&&n("button",{onClick:()=>void e.txAll("retry"),children:t("penzor.tx.retryAll")}),i.done.length>0&&i.live.length>0&&n("button",{onClick:()=>void e.txClear("finished"),children:t("penzor.tx.clearDone")}),!i.live.length&&n("button",{onClick:()=>void e.txClear(s?"all":"finished"),children:t(s?"penzor.tx.clear":"penzor.tx.clearDone")})]})]})}function Yy({p:e,x:t}){let o=e.t,r=t.size>0?Math.min(100,t.done/t.size*100):0,a=t.state==="done"?"check":t.state==="failed"?"alert":t.kind==="up"?"tx-up":"tx-down",i=(l,c,d)=>n("button",{class:"pz-ib",title:c,"aria-label":c,onClick:d,children:n(re,{n:l})}),s;if(t.state==="failed")s=n("span",{class:"err",children:Jy(e,t)});else if(t.state==="done")s=n(R,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o(t.kind==="up"?"penzor.tx.uploaded":"penzor.tx.downloaded",{time:Gy(e,t.finishedAt)})})]});else if(t.state==="queued")s=n(R,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.queued")})]});else if(t.state==="paused")s=n(R,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.paused")})]});else{let l=t.speed>0?(t.size-t.done)/t.speed:null;s=n(R,{children:[n("span",{children:Vs(t.done,t.size,e.locale())}),t.speed>0&&n("span",{children:[e.b(t.speed),"/s"]}),l!=null&&l>=5&&n("span",{children:o("penzor.tx.left",{eta:wf(e,l)})})]})}return n("div",{class:`pz-txrow2${t.state==="done"?" is-done":t.state==="failed"?" is-fail":""}`,children:[n(re,{n:a}),n("span",{class:"nm",title:t.name,children:t.name}),n("span",{class:"acts",children:[(t.state==="active"||t.state==="queued")&&i("pause",o("penzor.tx.pause"),()=>void e.txOp(t.id,"pause")),t.state==="paused"&&i("play",o("penzor.tx.resume"),()=>void e.txOp(t.id,"resume")),(t.state==="active"||t.state==="queued"||t.state==="paused")&&i("x",o("penzor.tx.cancel"),()=>void e.txOp(t.id,"cancel")),t.state==="failed"&&t.error!=="too_large"&&n("button",{class:"pz-link",onClick:()=>void e.txOp(t.id,"retry"),children:o("penzor.tx.retry")}),t.state==="failed"&&i("x",o("penzor.tx.remove"),()=>void e.txOp(t.id,"dismiss")),t.state==="done"&&(t.kind==="up"||t.localPath)&&n("button",{class:"pz-link",onClick:()=>e.locate(t),children:o(t.kind==="down"?"penzor.tx.reveal":"penzor.tx.locate")})]}),(t.state==="active"||t.state==="paused"||t.state==="queued")&&n(Yo,{pct:r}),n("span",{class:"sub",children:s})]})}function Zy(e,t){let o=ln(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.app?.openSpace=="function"&&typeof o?.cloudInvoke=="function"&&(!o.mobile||!!o.extendMobile)&&cn(o)}function _f(e,t=window){if(!Zy(e,t))return null;let o=ln(t.tangu),r=qp(e);zf(r,e),wn(o)||o.cloudInvoke("penzor:device").then(p=>{let m=p?.name;typeof m=="string"&&m&&r.setDevice(m)}).catch(()=>{});let a=p=>m=>(Le(n(p,{p:r}),m),()=>{Le(null,m)});e.registerView({id:Rn.main,title:r.t("penzor.title"),icon:"penzor",workspaceSource:Gs,mount:a(mf)}),e.registerView({id:Rn.info,title:r.t("penzor.details"),icon:"page",mount:a(xf)});let i=e.listCapabilities?.includes("tree")??!1,s=typeof e.app?.setSpaceProgress=="function"?"hard-drive":"archive",l=()=>({overview:r.t("penzor.overview"),drive:r.t("penzor.drive"),driveIcon:s,sync:r.t("penzor.ledger.sync"),ama:r.t("penzor.ledger.ama"),apps:r.t("penzor.ledger.apps"),exports:r.t("penzor.ledger.exports"),trash:r.t("penzor.trash"),items:p=>r.t("penzor.items",{n:p}),files:r.t("penzor.uploads"),synced:r.t("penzor.tree.synced"),all:r.t("penzor.scope.all"),thisBackup:r.t("penzor.tree.thisBackup"),byApp:r.t("penzor.tree.byApp"),legacy:r.t("penzor.tree.legacy")}),c=()=>{let p=r.content();if(p){let g=An(p);return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Fp(g,r.locale()),...g.kind==="warn"?{unread:!0}:{}}]}if(!r.hasSync())return[];let m=r.syncState();return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Op(m,r.locale()),...Va(m)?{unread:!0}:{}}]};e.registerListSource({id:Gs,title:r.t("penzor.title"),search:!0,items:p=>{let m=[...c(),...Lp(r.snap(),l(),r.locale(),r.content())],g=p?.query?.trim().toLowerCase()??"";if(g)return m.filter(y=>y.kind!=="folder"&&y.title.toLowerCase().includes(g)).map(({parent:y,...v})=>v);if(i)return m;let h=new Map(m.filter(y=>y.kind==="folder").map(y=>[y.key,y.title]));return m.filter(y=>y.kind!=="folder").map(({parent:y,...v})=>({...v,group:y?h.get(y):void 0}))},subscribe:p=>r.subscribe(p),activeKey:()=>zo(r.loc()),open:p=>r.go(p.key),actions:[{id:"refresh",label:r.t("penzor.act.refresh"),icon:"refresh",primary:!0,run:()=>{r.refresh(),e.app?.sync?.refresh?.().catch(()=>{})}}],itemMenu:p=>{if(p.key.startsWith("sync:")){let m=p.key.slice(5);return[{id:"open-sync",label:r.t("penzor.act.openSync"),icon:"gear",run:()=>r.openSync()},{id:"copy-name",label:r.t("penzor.act.copyName"),icon:"copy",run:()=>{navigator.clipboard?.writeText(m).then(()=>e.app?.notify?.(r.t("penzor.toast.copied")))}}]}return p.key==="trash"&&r.canEmptyTrash()?[{id:"empty-trash",label:r.t("penzor.trash.emptyBtn"),icon:"trash",danger:!0,run:()=>{r.go("trash"),r.setConfirmEmpty(!0)}}]:[]}}),e.registerCommand?.({id:"open-penzor",title:()=>r.t("penzor.cmd.open"),keywords:"penzor cloud storage quota sync files trash drive upload \u84EC\u6D32\u4E91 \u4E91\u7A7A\u95F4 \u4E91\u76D8 \u7F51\u76D8 \u4E0A\u4F20 \u989D\u5EA6 \u540C\u6B65 \u56DE\u6536\u7AD9",run:()=>{e.app?.openSpace?.(hn)}});let d=p=>{if(!(p.key!==Hp||!p.newValue))try{let m=JSON.parse(p.newValue);m.page==="sync"&&r.hasSync()?e.app?.openSpace?.(hn).then(()=>r.go("sync-home")):typeof m.vault=="string"&&m.vault&&r.focusVault(m.vault)}catch{}},f=(()=>{try{return!new URLSearchParams(t.location.search).get("window")}catch{return!1}})();if(f){t.addEventListener("storage",d);try{t.localStorage.setItem(Js,"1")}catch{}}let u=r.dispose;return r.dispose=()=>{if(f){t.removeEventListener("storage",d);try{t.localStorage.removeItem(Js)}catch{}}u()},r}var Cf="sync",cl=3,Qy=24*36e5,ex=5e3,tx=15e4,Af=e=>e.split("/").filter(Boolean).pop()||e,Rr=(e,t,o)=>e!=null&&Number.isFinite(e)?Tn(e,t,o):void 0;function nx(e,t){let o=new Map;for(let r of e.jobs){if(r.state!=="conflict"||t-r.at>Qy||e.jobs.some(i=>i.path===r.path&&i.at>r.at&&i.state==="done"&&i.direction!=="merge"))continue;let a=o.get(r.path);(!a||r.at>a.at)&&o.set(r.path,r)}return[...o.values()].sort((r,a)=>a.at-r.at)}var ox=e=>{let t=e.jobs.filter(o=>o.state==="done").map(o=>o.finishedAt??o.at);return t.length?Math.max(...t):null};function rx(e,t,o,r){let a=An(e);if(a.kind==="off")return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=ox(e);i.push(a.kind==="paused"?{id:"status",title:t("penzor.widget.paused"),meta:t("penzor.cs.statusPaused")}:a.kind==="run"?{id:"status",title:t("penzor.widget.running"),meta:`${a.pct}%`,tone:"accent",now:!0}:a.kind==="scan"?{id:"status",title:t("penzor.cs.statusScan"),now:!0}:a.kind==="warn"?{id:"status",title:t("penzor.widget.problem"),meta:t("penzor.cs.statusWarn",{n:a.n}),tone:"warn"}:{id:"status",title:t("penzor.cs.statusOk"),...Rr(a.at,o,r)?{meta:Rr(a.at,o,r)}:{}});let l=e.jobs.filter(u=>u.state==="active").length,c=e.jobs.filter(u=>u.state==="queued"||u.state==="paused").length;l?i.push({id:"queue",title:t("penzor.widget.active",{n:l}),...c?{meta:t("penzor.widget.queued",{n:c})}:{}}):c&&i.push({id:"queue",title:t("penzor.widget.waiting",{n:c})});let d=[...e.error?[{id:"error",title:t("penzor.widget.error"),meta:t("penzor.widget.errorMeta"),tone:"warn"}]:[],...Er(e).sort((u,p)=>p.at-u.at).map(u=>({id:`failed:${u.id}`,title:Af(u.path),meta:t("penzor.widget.failed"),tone:"warn"})),...nx(e,r).map(u=>({id:`conflict:${u.id}`,title:Af(u.path),meta:t("penzor.widget.conflict"),tone:"warn"}))];i.push(...d.slice(0,cl));let f=[...d.length>cl?[t("penzor.widget.more",{n:d.length-cl})]:[],...a.kind!=="ok"&&Rr(s,o,r)?[t("penzor.widget.last",{time:Rr(s,o,r)})]:[]];return{rows:i,...f.length?{footer:f.join(" \xB7 ")}:{}}}function ax(e,t,o,r){if(!e.signedIn)return Pf(t);let a=e.notes;if(a.pending)return{rows:[{id:"pending",title:t("penzor.widget.pending"),meta:t("penzor.sync.waiting"),tone:"warn"}]};if(!qa(e))return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=Co(e)??(e.agents.on&&e.agents.running?0:null),l=Math.max(...[a.last?.ok?a.last.at:null,e.agents.last?.ok?e.agents.last.at:null,e.plugins.lastAt??null].filter(c=>typeof c=="number"),-1);return s!=null?i.push({id:"status",title:t("penzor.widget.running"),...s>0?{meta:`${Math.round(s*100)}%`}:{},tone:"accent",now:!0}):i.push({id:"status",title:t("penzor.cs.statusOk"),...l>0?{meta:Rr(l,o,r)}:{}}),a.on&&Tr(e)&&i.push({id:"notes-failed",title:t("penzor.widget.notesFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.agents.on&&e.agents.last?.ok===!1&&i.push({id:"agents-failed",title:t("penzor.widget.agentsFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.plugins.on&&(e.plugins.pending??0)>0&&i.push({id:"plugins",title:t("penzor.widget.waiting",{n:e.plugins.pending})}),{rows:i}}var Pf=e=>({rows:[{id:"signin",title:e("penzor.widget.signedOut"),meta:e("penzor.widget.signInHint")}]});function Tf(e,t,o=Date.now()){let r=(a,i)=>ze(t,a,i);return e.kind==="signedOut"?Pf(r):e.kind==="content"?rx(e.snap,r,t,o):ax(e.snap,r,t,o)}var ix=/not a Forsion Extend channel/;async function Ef(e,t){let o=Q();if(!cn(o))throw new Error("sync status is not available on this page");if(!t.noChannel&&typeof o.cloudInvoke=="function"){let i;try{i=await o.cloudInvoke(qt.get)}catch(s){i={ok:!1,error:s instanceof Error?s.message:String(s)}}if(i?.ok&&i.value?.available)return{kind:"content",snap:i.value};if(!i?.ok&&i?.error==="not_signed_in")return{kind:"signedOut"};if(i?.ok||!ix.test(i?.error??""))throw new Error(i?.error||"sync status unavailable");t.noChannel=!0}let r=!o.mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,a=r?.get()??null;if(!a)throw new Error(r?"sync status is still loading":"sync status unavailable");return{kind:"legacy",snap:a}}var sx=8e3;function If(e){let t=e?.widgets;if(!e||!t||typeof t.provide!="function")return null;let o=()=>Oe(e.getLocale?.()),r={noChannel:!1},a=null,i=null,s=1,l=null,c=null,d,f,u=!1,p=0,m=()=>{u||t.invalidate(Cf)},g=z=>z?JSON.stringify(Tf(z,o())):"error",h=z=>{let I;return Promise.race([z,new Promise((F,$)=>{I=setTimeout(()=>$(new Error("timed out")),sx)})]).finally(()=>clearTimeout(I))},y=async()=>{let z=s;if(!(u||p===z)){p=z;try{let I=g(await h(Ef(e,r)).catch(()=>null));if(u||z!==s)return;I!==a&&I!==i&&(i=I,m())}finally{p===z&&(p=0)}}},v=()=>{s++,p=0,l&&clearInterval(l),c&&clearTimeout(c),l=null,c=null,d?.(),d=void 0,f?.(),f=void 0},x=()=>{if(c&&clearTimeout(c),c=setTimeout(v,tx),l)return;l=setInterval(()=>void y(),ex),d=Q().onAuthChanged?.(()=>{i=null,m()}),f=(!Q().mobile&&typeof e.app?.sync?.subscribe=="function"?e.app.sync:null)?.subscribe(()=>void y())},w=t.provide(Cf,async(z,I)=>{if(u)throw new Error("disposed");x(),i=null;let F=I?.signal,$;try{$=Tf(await Ef(e,r),o())}catch(N){throw F?.aborted||(a="error"),N}return F?.aborted||(a=JSON.stringify($)),$});return{dispose(){u=!0,v(),w?.dispose?.()}}}var Ka="events",lx="forsion-extend.events.seen",Mf="forsion-extend.events.seen.migrated",cx="forsion-extend.events.seen.v2",dx="forsion-extend.events.feed",Rf="forsion-extend.events.last",Lf="forsion-extend.events.ping",ux=200,px=3e4,Qo=36e5,dl=864e5,Df=8*Qo,fx=1e3,Nf={newEvent:!0,claimable:"always",beforeEndHours:0,revision:0},Ln=(e,t)=>e&&(e[t]||e.zh||e.en)||"",Nr=(e,t)=>(e??[]).map(o=>Ln(o.label,t)||o.kind).join(" \xB7 "),ul=(e,t)=>e.sort-t.sort||(e.endsAt??"~").localeCompare(t.endsAt??"~");function mx(e){let t=o=>o.kind==="notice";return{active:e.filter(o=>!t(o)&&(o.state==="live"||o.state==="claiming")).sort(ul),notices:e.filter(o=>t(o)&&o.state==="live").sort(ul),upcoming:e.filter(o=>o.state==="upcoming").sort(ul),ended:e.filter(o=>o.state==="ended"||t(o)&&o.state==="claiming").sort((o,r)=>(r.endsAt??"").localeCompare(o.endsAt??""))}}var Zo=(e,t)=>{let o=new Date(e),r=a=>String(a).padStart(2,"0");return`${r(o.getMonth()+1)}-${r(o.getDate())}${t?` ${r(o.getHours())}:${r(o.getMinutes())}`:""}`};function fl(e,t,o){let r=(l,c)=>ze(o,l,c);if(e.state==="upcoming")return{short:r("events.time.start",{date:Zo(e.startsAt,!1)}),long:r("events.time.start",{date:Zo(e.startsAt,!0)}),warn:!1};if(e.kind==="notice"){let l=r("events.time.published",{date:Zo(e.startsAt,!1)});return{short:l,long:l,warn:!1}}if(e.state==="claiming"&&e.claimUntil)return{short:r("events.time.claimShort",{date:Zo(e.claimUntil,!1)}),long:r("events.time.claim",{date:Zo(e.claimUntil,!0)}),warn:!1};if(e.state==="ended"||!e.endsAt){let l=e.endsAt?r("events.time.ended",{date:Zo(e.claimUntil??e.endsAt,!1)}):"";return{short:l,long:l,warn:!1}}let a=new Date(e.endsAt).getTime()-new Date(t).getTime(),i=Math.max(1,Math.ceil(a/Qo));if(i<=24)return{short:r("events.left.hours",{n:i}),long:r("events.left.longHours",{h:i}),warn:!0};let s=Math.floor(i/24);return{short:r("events.left.days",{n:s}),long:r("events.left.long",{d:s,h:i%24}),warn:!1}}function Ya(e){let t=e.remind;return!t||typeof t!="object"?Nf:{newEvent:typeof t.newEvent=="boolean"?t.newEvent:Nf.newEvent,claimable:t.claimable==="daily"||t.claimable==="off"?t.claimable:"always",beforeEndHours:Number.isFinite(t.beforeEndHours)&&t.beforeEndHours>0?t.beforeEndHours:0,revision:Number.isFinite(t.revision)?t.revision:0}}function pl(e,t){return e?t?{revision:Math.max(e.revision,t.revision),day:e.day>t.day?e.day:t.day}:e:t??null}function Of(e){let t=e.state==="live"?e.endsAt:e.state==="claiming"?e.claimUntil:null,o=t?new Date(t).getTime():NaN;return Number.isFinite(o)?o:null}var ml=e=>e.state==="live"||e.state==="claiming"&&e.kind!=="notice";function gx(e,t,o,r){if(!ml(e))return{fresh:!1,claim:!1,ending:!1};let a=Ya(e),i=e.state==="live"&&a.newEvent&&(!t||t.revision<a.revision),s=e.claimable>0&&(a.claimable==="always"||a.claimable==="daily"&&t?.day!==o),l=Of(e),c=l===null?NaN:l-r,d=a.beforeEndHours>0&&e.claimable>0&&c>0&&c<=a.beforeEndHours*Qo;return{fresh:i,claim:s,ending:d}}var hx=(e,t,o,r)=>{let a=gx(e,t,o,r);return a.fresh||a.claim||a.ending};function bx(e,t){let o=[Math.floor((t+Df)/dl)*dl+dl-Df];for(let r of e){if(!ml(r))continue;let a=Of(r);if(a===null)continue;a>t&&o.push(a);let i=Ya(r);i.beforeEndHours>0&&r.claimable>0&&a-i.beforeEndHours*Qo>t&&o.push(a-i.beforeEndHours*Qo)}return o.length?Math.min(...o):null}function Ff(e,t){return e?/^(https:|data:image\/)/i.test(e)?e:e.startsWith("/")&&t?`${t.replace(/\/+$/,"")}${e}`:null:null}function Lr(e,t){try{let o=localStorage.getItem(e);return o===null?t:JSON.parse(o)}catch{return t}}function Dr(e,t){try{localStorage.setItem(e,t)}catch{}}function vx(e){try{localStorage.removeItem(e)}catch{}}var yx={not_live:"events.err.notLive",completed:"events.err.completed",grant_failed:"events.err.grantFailed"};function Bf(e,t){let o=new Set,r=()=>{o.forEach(W=>W())},a=Oe(e.getLocale?.()),i="loading",s=null,l="",c=null,d="",f={},u=!1,p=0,m=null,g=!1,h=null,y=0,v,x=(W,pe)=>ze(a,W,pe),w=()=>mx(s?.events??[]),z=()=>`${cx}:${d}`,I=()=>`${dx}:${d}`,F=W=>pl(f[W.id],W.seen??null),$=()=>s?.today??"",N=()=>Date.now(),Y=W=>hx(W,F(W),$(),N()),C=W=>{if(!ml(W))return!1;let pe=Ya(W),ke=F(W);return!ke||ke.revision<pe.revision||ke.day!==$()},D=()=>{let W=Lr(z(),null),pe={};if(W&&typeof W=="object"&&!Array.isArray(W))for(let[ke,Me]of Object.entries(W))Me&&Number.isFinite(Me.r)&&typeof Me.d=="string"&&(pe[ke]={revision:Me.r,day:Me.d});else if(W===null&&Lr(Mf,null)===null){let ke=Lr(lx,[]);if(Array.isArray(ke))for(let Me of ke)typeof Me=="string"&&(pe[Me]={revision:0,day:""});f=pe,H(),Dr(Mf,JSON.stringify(d));return}f=pe},H=()=>{if(!d)return;let W=Object.entries(f).slice(-ux);Dr(z(),JSON.stringify(Object.fromEntries(W.map(([pe,ke])=>[pe,{r:ke.revision,d:ke.day}]))))},E=async()=>{if(d)return;let W=p,pe;try{pe=await Q().authStatus?.()}catch{}if(W!==p)return;l||(l=pe?.cloudUrl??"");let ke=pe?.accountId||pe?.username;if(!(!pe?.cloudUrl||!ke||d)){if(d=`${pe.cloudUrl}|${ke}`,D(),!s){let Me=Lr(I(),null);Me&&typeof Me=="object"&&Array.isArray(Me.events)&&(s=Me,i="ready",u=!1)}r()}},Z=()=>{if(m&&(clearTimeout(m),m=null),!s)return;let W=bx(s.events,N());W!==null&&(m=setTimeout(()=>{m=null,ee()},Math.max(fx,Math.min(W-N()+500,6*Qo))))},S=()=>{Dr(Lf,String(Date.now()))},A=W=>{W&&Array.isArray(W.events)&&(s=W,i="ready")},M=W=>x(W.code&&yx[W.code]||"events.err.failed"),G=0,ee=async W=>{W!==void 0&&(v=W||void 0),y=Date.now();let pe=++G;if(await E(),pe!==G)return;let ke=await j(v?`/events/feed?preview=${encodeURIComponent(v)}`:"/events/feed");pe===G&&(ke.ok?(A(ke.data),s===ke.data&&(u=!0,d&&!v&&Dr(I(),JSON.stringify(ke.data)))):Fn(ke)||ke.status===401?(s=null,i="signedOut",u=!1,d&&vx(I())):ke.status===404?(s=null,i="unavailable",u=!1):s||(i="error"),Z(),r())},U=async W=>{if(!g){g=!0,h=null,r(),G++;try{await W()}finally{g=!1,G++,S(),r()}}},ae=W=>U(async()=>{let pe=await j(`/events/${encodeURIComponent(W.id)}/checkin`,{method:"POST",body:{}});if(!pe.ok){h={ok:!1,text:M(pe),backpack:!1};return}A(pe.data.feed);let ke=Nr(pe.data.reward,a);h={ok:!0,text:ke?x("events.toast.checkin",{reward:ke}):x("events.checkin.done"),backpack:!!ke}}),he=(W,pe)=>U(async()=>{let ke=await j(`/events/${encodeURIComponent(W.id)}/tasks/claim`,{method:"POST",body:{ids:pe}});if(!ke.ok){h={ok:!1,text:M(ke),backpack:!1};return}A(ke.data.feed);let Me=ke.data.results.filter(Ce=>Ce.ok&&!Ce.alreadyClaimed),ge=ke.data.results.filter(Ce=>!Ce.ok).length,ot=Me.flatMap(Ce=>Ce.reward??[]);ge?h={ok:!1,text:x("events.toast.partial",{n:Me.length,m:ge}),backpack:!1}:Me.length&&(h={ok:!0,text:x("events.toast.claimed",{reward:Nr(ot,a)}),backpack:ot.length>0})}),qe=W=>{let pe=(s?.events??[]).find(pt=>pt.id===W);if(!pe||!C(pe))return;let ke=Ya(pe).revision,{[W]:Me,...ge}=f;f={...ge,[W]:pl(Me,{revision:ke,day:$()})},H(),S();let ot=p,Ce=d;j(`/events/${encodeURIComponent(W)}/seen`,{method:"POST",body:{revision:ke}}).then(pt=>{if(ot!==p||Ce!==d||!pt.ok||!pt.data?.seen)return;let rt=pl(f[W],pt.data.seen);rt&&(rt.revision!==f[W]?.revision||rt.day!==f[W]?.day)&&(f={...f,[W]:rt},H(),r())})},me=()=>{let W=w(),pe=[...W.active,...W.notices],ke=[...pe,...W.upcoming,...W.ended],Me=Lr(Rf,null);return ke.find(ge=>ge.id===Me)??pe.find(Y)??ke[0]??null},De=e.subscribeLocale?.(W=>{a=Oe(W),r()}),Qe=W=>{d&&W.key===z()&&(D(),r()),W.key===Lf&&ee()},ye=()=>{Date.now()-y>px&&ee()};window.addEventListener("storage",Qe),window.addEventListener("focus",ye);let Ye=Q().onAuthChanged?.(()=>{p++,G++,l="",d="",f={},s=null,u=!1,i="loading",ee()}),Rt=t.fetchOnStart?setTimeout(()=>{ee()},3e3):null;return E(),{locale:()=>a,t:x,status:()=>i,feed:()=>s,origin:()=>l,groups:w,selected:()=>(s?.events??[]).find(W=>W.id===c)??me(),select:W=>{c=W,h=null,Dr(Rf,JSON.stringify(W)),qe(W),r()},dotFor:Y,needsSeen:C,fresh:()=>u,hasDot:()=>(s?.events??[]).some(Y),active:()=>{let W=w();return i==="ready"&&W.active.length+W.notices.length>0},busy:()=>g,notice:()=>h,clearNotice:()=>{h=null,r()},refresh:ee,checkin:ae,claim:he,open:W=>{let pe=W?{id:W}:void 0;e.openFloatingPanel?e.openFloatingPanel(Ka,{title:x("events.title"),params:pe,width:1040,height:720,minWidth:720,minHeight:520}):e.openView?.(Ka,{location:"main",params:pe})},subscribe:W=>(o.add(W),()=>{o.delete(W)}),dispose:()=>{Rt&&clearTimeout(Rt),m&&clearTimeout(m),De?.(),Ye?.(),window.removeEventListener("storage",Qe),window.removeEventListener("focus",ye),o.clear()}}}var $f=`
|
|
1629
1632
|
.ev-root { --ev-sk: color-mix(in srgb, var(--text) 8%, var(--bg)); position: relative; container-type: inline-size; width: 100%; height: 100%; min-height: 0; background: var(--bg); color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
|
|
1630
1633
|
.ev-root *, .ev-root *::before, .ev-root *::after { box-sizing: border-box; }
|
|
1631
1634
|
.ev-root button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
|
|
@@ -1764,7 +1767,7 @@ Content-Type: ${r}\r
|
|
|
1764
1767
|
.ev-rail { padding: 8px; }
|
|
1765
1768
|
}
|
|
1766
1769
|
.ev-root .ev-phone-back { position: absolute; z-index: 2; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text-muted); }
|
|
1767
|
-
`;var gx={checkin:"checkin",tasks:"tasks",game:"gamepad",notice:"megaphone"},hx=560;function er({ev:e,e:t}){let[o,r]=_(!1),a=Lf(t.artUrl,e.origin());return J(()=>r(!1),[a]),!a||o?n("div",{class:"ev-art ev-art-empty"}):n("img",{class:"ev-art",src:a,alt:"",style:{objectPosition:`${t.focus.x*100}% ${t.focus.y*100}%`},onError:()=>r(!0)})}function Nr({ev:e,e:t}){let o=e.locale(),r=dl(t,e.feed()?.now??new Date().toISOString(),o);return n("div",{class:"ev-hd",children:[n("span",{class:"ev-kind",children:[n(B,{name:gx[t.kind],size:13}),e.t(`events.kind.${t.kind}`)]}),n("h3",{children:Ln(t.title,o)}),r.long&&n("span",{class:`ev-time${r.warn?" warn":""}`,children:[n(B,{name:"clock",size:13}),r.long]}),n("p",{class:"ev-summary",children:Ln(t.summary,o)})]})}function ml({ev:e,items:t}){return t.length?n("div",{class:"ev-tiles","aria-label":e.t("events.rewards"),children:t.map((o,r)=>{let a=Ln(o.label,e.locale())||o.kind,i=a.match(/^(.+?)\s*(×\d+)$/);return n("div",{class:"ev-tile",children:[n(B,{name:"gift",size:18}),i?n(L,{children:[n("b",{children:i[2]}),n("span",{children:i[1]})]}):n("b",{children:a})]},r)})}):null}function bx({ev:e,e:t}){let o=t.checkin,r=e.locale();return n("div",{class:`ev-days${o.days>7?" two":""}`,children:Array.from({length:o.days},(a,i)=>{let s=i<o.signed,l=i===o.signed&&!o.signedToday&&t.state==="live";return n("div",{class:`ev-day${s?" done":""}${l?" today":""}${i===o.days-1?" big":""}`,children:[n("small",{children:l?e.t("events.checkin.today"):e.t("events.checkin.day",{n:i+1})}),n("span",{class:"ev-day-ic",children:n(B,{name:s?"check":"gift",size:15})}),n("b",{children:Dr(o.rewards[i],r)})]},i)})})}function vx({ev:e,e:t}){let o=t.checkin,r=o.signed>=o.days,a=t.state==="live"&&!o.signedToday&&!r;return n("section",{class:`ev-stage ev-checkin${o.days>7?" two":""}`,children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-flow",children:[n("div",{class:"ev-row",children:[n(Nr,{ev:e,e:t}),n("div",{class:"ev-act",children:[n("small",{children:e.t("events.checkin.signed",{n:o.signed,total:o.days})}),n("button",{type:"button",class:"ev-btn pri",disabled:!a||e.busy(),onClick:()=>void e.checkin(t),children:r?e.t("events.checkin.finished"):o.signedToday?e.t("events.checkin.done"):e.t("events.checkin.do")})]})]}),n(bx,{ev:e,e:t})]})]})}function yx({ev:e,ctx:t,view:o,e:r,x:a}){let i=e.locale(),s=a.progress>=a.goal,l=r.state==="live",c=Math.round(Math.min(a.progress,a.goal)/a.goal*100),d=()=>{a.jump&&t.app?.openLink?.(a.jump).then(f=>{f&&o?.close?.()})};return n("div",{class:`ev-task${a.claimed||!s&&!l?" muted":""}`,children:[n("div",{class:"ev-task-m",children:[n("b",{children:Ln(a.title,i)}),n("em",{children:Ln(a.desc,i)}),!a.claimed&&c>0&&c<100&&n("div",{class:"ev-bar",children:n("i",{style:{width:`${c}%`}})})]}),n("div",{class:"ev-task-e",children:[a.reward?.length?n("span",{class:"ev-reward",children:Dr(a.reward,i)}):null,n("small",{children:`${Of(a.progress)}/${Of(a.goal)}`})]}),a.claimed?n("span",{class:"ev-got",title:e.t("events.tasks.claim"),children:n(B,{name:"check",size:15})}):s?n("button",{type:"button",class:"ev-btn pri sm",disabled:e.busy(),onClick:()=>void e.claim(r,[a.id]),children:e.t("events.tasks.claim")}):l&&a.jump&&t.app?.openLink?n("button",{type:"button",class:"ev-btn sm",onClick:d,children:e.t("events.tasks.go")}):n("span",{class:"ev-got"})]})}var Of=e=>e>=1e3?`${Math.round(e/100)/10}k`:String(e);function xx(e){let{ev:t,e:o}=e,r=o.tasks??[],a=r.filter(s=>s.progress>=s.goal&&!s.claimed),i=r.filter(s=>s.claimed).length;return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:t,e:o}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Nr,{ev:t,e:o}),n(ml,{ev:t,items:o.rewards})]}),n("div",{class:"ev-card",children:[n("div",{class:"ev-card-h",children:[n("b",{children:t.t("events.tasks.progress")}),n("small",{children:[i,"/",r.length]}),n("div",{class:"ev-bar",children:n("i",{style:{width:`${r.length?Math.round(i/r.length*100):0}%`}})})]}),n("div",{class:"ev-card-b",children:r.map(s=>n(yx,{...e,x:s},s.id))}),a.length>1&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn pri wide",disabled:e.ev.busy(),onClick:()=>void t.claim(o,a.map(s=>s.id)),children:t.t("events.tasks.claimAll",{n:a.length})})})]})]})}function kx(e){let[t,o]=_(!0);return J(()=>{let r=!0,a=window.amadeus?.listPlugins;return a?.().then(i=>{r&&o(i.some(s=>s.id===e))}).catch(()=>{}),()=>{r=!1}},[e]),t}function wx({ev:e,ctx:t,view:o,e:r}){let a=r.game,i=kx(a.pluginId),s=()=>{t.app?.openLink?.(`forsion://space/${a.spaceId}`).then(c=>{c&&o?.close?.()})},l=()=>{let c=Q().openFloatingPanel;c?c({id:"market",title:e.t("events.title"),builtin:"market",params:{q:a.marketSlug}}):t.app?.runCommand?.("open-market")};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Nr,{ev:e,e:r}),n(ml,{ev:e,items:r.rewards})]}),n("div",{class:"ev-card narrow",children:[n("div",{class:"ev-card-h solo",children:n("b",{children:e.t("events.game.board")})}),n("div",{class:"ev-card-b",children:[a.leaderboard.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.game.empty")}),a.leaderboard.map(c=>{let d=c.rank===a.me?.rank;return n("div",{class:`ev-rank${d?" me":""}`,children:[n("span",{children:c.rank}),n("em",{children:d?e.t("events.game.me"):c.name||e.t("events.game.anon")}),n("b",{children:c.score})]},c.rank)}),a.me&&!a.leaderboard.some(c=>c.rank===a.me?.rank)&&n("div",{class:"ev-rank me",children:[n("span",{children:a.me.rank}),n("em",{children:e.t("events.game.me")}),n("b",{children:a.me.score})]})]}),r.state==="live"&&n("div",{class:"ev-card-f",children:i?n("button",{type:"button",class:"ev-btn pri lg",onClick:s,children:[n(B,{name:"play",size:15}),e.t("events.game.enter")]}):n("button",{type:"button",class:"ev-btn lg",onClick:l,children:e.t("events.game.install")})})]})]})}function zx({ev:e,e:t}){let o=ne(null),r=Ln(t.body,e.locale());return J(()=>{let a=o.current;if(!a||!Ni())return;let i=da(a),s=document.createElement("style");s.textContent=la;let l=document.createElement("div");return l.className="doc",l.appendChild(Di(r,"markdown")),i.replaceChildren(s,l),i.addEventListener("click",$n),i.addEventListener("auxclick",$n),()=>{i.removeEventListener("click",$n),i.removeEventListener("auxclick",$n)}},[r]),n("div",{ref:o})}function Sx({ev:e,ctx:t,view:o,e:r}){let a=()=>{let i=r.cta?.url;i&&(i.startsWith("forsion://")?t.app?.openLink?.(i).then(s=>{s&&o?.close?.()}):Q().openExternal?.(i))};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left short",children:n(Nr,{ev:e,e:r})}),n("div",{class:"ev-card wide",children:[n("div",{class:"ev-card-b",children:n(zx,{ev:e,e:r})}),r.cta&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn wide",onClick:a,children:Ln(r.cta.label,e.locale())||e.t("events.notice.more")})})]})]})}function pl({ev:e,e:t}){return n("section",{class:"ev-stage ev-plain",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-left wide",children:[n(Nr,{ev:e,e:t}),n(ml,{ev:e,items:t.rewards})]})]})}function _x(e){let{e:t}=e;return t.state==="upcoming"?n(pl,{...e}):t.kind==="checkin"&&t.checkin?t.state==="live"?n(vx,{...e}):n(pl,{...e}):t.kind==="tasks"?n(xx,{...e}):t.kind==="game"&&t.game?n(wx,{...e}):t.kind==="notice"?n(Sx,{...e}):n(pl,{...e})}function Cx({ev:e,e:t,on:o,select:r}){let a=e.locale(),i=dl(t,e.feed()?.now??new Date().toISOString(),a),s=e.dotFor(t);return n("button",{type:"button",class:`ev-ri${o?" on":""}`,"aria-current":o?"true":void 0,onClick:r,children:[n("span",{class:"ev-th",children:n(er,{ev:e,e:t})}),n("span",{class:"ev-rt",children:[n("b",{children:Ln(t.title,a)}),n("em",{class:i.warn?"warn":"",children:i.short})]}),s&&n("i",{class:"ev-dot","aria-label":e.t("events.dot")})]})}function Ax({ev:e,view:t,pane:o,setPane:r,select:a,current:i}){let s=e.groups(),l=d=>n(Cx,{ev:e,e:d,on:i?.id===d.id,select:()=>a(d)},d.id),c=(d,f)=>f.length?n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t(d)}),f.map(l)]}):null;return n("aside",{class:"ev-rail",children:[t?.surface==="floating"&&n("button",{type:"button",class:"ev-back",onClick:()=>t.close?.(),children:[n(B,{name:"arrowLeft",size:15}),e.t("events.back")]}),n("div",{class:"ev-brand",children:[n("span",{class:"ev-bi",children:n(B,{name:"gift",size:16})}),n("div",{children:[n("strong",{children:e.t("events.title")}),n("small",{children:e.t("events.count",{n:s.active.length})})]})]}),o==="list"?n("div",{class:"ev-list",children:[c("events.group.active",s.active),c("events.group.notice",s.notices),c("events.group.upcoming",s.upcoming)]}):n("div",{class:"ev-list",children:n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t("events.ended")}),s.ended.map(l),s.ended.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.endedEmpty")})]})}),n("button",{type:"button",class:"ev-foot",onClick:()=>r(o==="list"?"ended":"list"),children:o==="list"?n(L,{children:[e.t("events.ended"),n("span",{children:s.ended.length}),n(B,{name:"chevron",size:14})]}):n(L,{children:[n(B,{name:"back",size:14}),e.t("events.list")]})})]})}function Tx({ev:e,ctx:t}){let o=e.notice();if(!o)return null;let r=Q().openFloatingPanel,a=()=>{r?r({id:"settings",title:e.t("events.title"),builtin:"settings",params:{tab:Mn("backpack")}}):t.app?.openSettings?.(Mn("backpack"))};return n("div",{class:`ev-notice${o.ok?"":" bad"}`,role:"status",children:[n(B,{name:o.ok?"check":"alert",size:15}),n("span",{children:o.text}),o.backpack&&(r||t.app?.openSettings)&&n("button",{type:"button",onClick:a,children:e.t("events.toast.backpack")}),n("button",{type:"button",class:"ev-x","aria-label":"\xD7",onClick:()=>e.clearNotice(),children:n(B,{name:"x",size:14})})]})}function fl({ev:e,icon:t,text:o,action:r,run:a}){return n("div",{class:"ev-msg",children:[n(B,{name:t,size:20}),n("span",{children:o}),r&&n("button",{type:"button",class:"ev-btn pri",disabled:e.busy(),onClick:a,children:r})]})}function Ff(e){let{ev:t,view:o}=e,r=ne(null),[,a]=_(0),[i,s]=_(!1),[l,c]=_(!1),[d,f]=_("list");J(()=>t.subscribe(()=>a(y=>y+1)),[t]),J(()=>{let y=b=>{let w=typeof b?.id=="string"?b.id:"";t.refresh(b?.preview?w:"").then(()=>{w&&(t.select(w),c(!0))})};return y(o?.getParams?.()),o?.onParamsChanged?.(y)},[t,o]),J(()=>{let y=r.current;if(!y||typeof ResizeObserver>"u")return;let b=new ResizeObserver(()=>s(y.clientWidth<hx));return b.observe(y),()=>b.disconnect()},[]);let u=t.status(),p=t.selected(),m=t.fresh();J(()=>{p&&u==="ready"&&m&&t.needsSeen(p)&&t.select(p.id)},[p?.id,u,m]);let g=y=>{t.select(y.id),c(!0)},h;if(u==="signedOut")h=n(fl,{ev:t,icon:"lock",text:t.t("events.login.title"),action:t.t("events.login.do"),run:()=>void Q().forsionLogin?.()});else if(u==="error"||u==="unavailable")h=n(fl,{ev:t,icon:"alert",text:t.t("events.error"),action:t.t("events.retry"),run:()=>void t.refresh()});else if(u==="loading")h=n("div",{class:"ev-loading"});else if(!p)h=n(fl,{ev:t,icon:"gift",text:t.t("events.empty")});else{let y=!i||!l,b=!i||l;h=n("div",{class:`ev-body${i?" phone":""}`,children:[y&&n(Ax,{...e,pane:d,setPane:f,select:g,current:i?null:p}),b&&n("div",{class:"ev-main",children:[i&&n("button",{type:"button",class:"ev-phone-back","aria-label":t.t("events.list"),onClick:()=>c(!1),children:n(B,{name:"back",size:17})}),n(_x,{...e,e:p},p.id),n(Tx,{...e})]})]})}return n("div",{ref:r,class:"ev-root",children:[n("style",{children:Nf}),h]})}var Ex=()=>{let e=document.documentElement.dataset.window;return!e||e==="main"};function Px(e,t){let o=ln(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof o?.cloudFetch=="function"&&cn(o)&&(!o.mobile||!!o.extendMobile)&&(typeof e.openFloatingPanel=="function"||typeof e.openView=="function")}function Bf(e,t=window){if(!Px(e,t))return null;let o=Ex(),r=Df(e,{fetchOnStart:o});e.registerView({id:Ga,title:r.t("events.title"),icon:"gift",mount:(l,c)=>(Le(n(Ff,{ev:r,ctx:e,view:c}),l),()=>{Le(null,l)})}),e.registerCommand?.({id:"events-open",title:()=>r.t("events.title"),keywords:"\u6D3B\u52A8 \u7B7E\u5230 \u4EFB\u52A1 \u9886\u5956 event events check-in quests",run:()=>r.open()});let a=e.app?.registerRibbonAction,i=o&&a?a({id:"events",icon:"gift",title:()=>r.t("events.title"),run:()=>r.open(),dot:{get:()=>r.hasDot(),subscribe:l=>r.subscribe(l),label:()=>r.t("events.dot")}}):null,s=r.dispose;return{...r,dispose:()=>{i?.(),s()}}}var Mx=new TextEncoder,q_=new TextDecoder("utf-8",{ignoreBOM:!0}),$f=e=>Mx.encode(e);function Uf(e){let t="";for(let o=0;o<e.length;o+=32768)t+=String.fromCharCode(...e.subarray(o,o+32768));return btoa(t)}function Hf(e,t){try{let o=new URL(e);if(o.protocol!=="https:"&&o.protocol!=="http:")return null;let r=t.split(".")[1];if(!r)return null;let a=r.replace(/-/g,"+").replace(/_/g,"/"),i=Uint8Array.from(atob(a),c=>c.charCodeAt(0)),s=JSON.parse(new TextDecoder().decode(i)),l=s.userId??s.sub;return typeof l!="string"&&typeof l!="number"||!String(l).trim()?null:`${o.origin}${o.pathname.replace(/\/+$/,"")}::${String(l)}`}catch{return null}}var Ix=50*1024*1024,Rx=new Set(["mode","type","source","name","summary","githubRepoUrl","npmPackage","version","readme","description","tags","minAppVersion","maxAppVersion","platforms"]);function Lx(e){if(!e||typeof e!="object")return null;let t=e;if(t.id!==void 0&&(typeof t.id!="string"||!/^[a-zA-Z0-9_-]{1,128}$/.test(t.id))||!t.fields||typeof t.fields!="object"||Array.isArray(t.fields))return null;let o=new FormData,r=0;for(let[a,i]of Object.entries(t.fields)){if(!Rx.has(a)||typeof i!="string"||(r+=i.length,r>25e4)||t.id&&!["mode","name","summary","version","readme","description","tags","minAppVersion","maxAppVersion","platforms"].includes(a))return null;o.append(a,i)}if(t.zip!==void 0){if(!t.zip||typeof t.zip.name!="string"||!/\.zip$/i.test(t.zip.name)||!(t.zip.data instanceof Uint8Array)||!t.zip.data.byteLength||t.zip.data.byteLength>Ix)return null;o.append("zip",new Blob([new Uint8Array(t.zip.data)],{type:"application/zip"}),t.zip.name.replace(/[\\/]/g,"_").slice(-255))}return{path:`${t.id?`/market/mine/${t.id}/update`:"/market/submit"}${t.dryRun===!0?"?dryRun=1":""}`,body:o}}function qf(e){e.handle("cloud:marketSubmit",async(t,o)=>{if(!e.isTrustedSender(t))return{status:0,error:"untrusted"};let r=Lx(o);if(!r)return{status:400,json:{error:"invalid_request"}};let a=await e.getCloud();if(!a.token)return{status:401,error:"not_signed_in"};let i=Vn(a.base,r.path);if(!i)return{status:0,error:"no_cloud_url"};try{let s=await qn(a,i,{method:"POST",body:r.body,redirect:"error",signal:AbortSignal.timeout(12e4)});return{status:s.status,json:await s.json().catch(()=>null)}}catch(s){return{status:0,error:String(s?.message||s)}}})}async function Vf(e){if(!e.token)return"";try{let t=await Ao(e,"POST","/api/auth/handoff",{},5e3);if(t.status===200&&typeof t.json?.code=="string"&&t.json.code)return`code=${encodeURIComponent(t.json.code)}`;if((t.status===404||t.status===405)&&!e.fetch)return`token=${encodeURIComponent(e.token)}`}catch{}return""}var Dx=["membership","credits","storefront"],Nx=["monthly","quarterly","yearly"],Ox=/^[A-Za-z0-9_-]{1,64}$/;function Wf(e){let t={status:0,error:"untrusted"},o={ok:!1,error:"untrusted"};e.handle("auth:openAccountCenter",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud(),l=s.base;if(!l)return{ok:!1};let c=i&&/^[a-z0-9-]+$/i.test(i)?`#${i}`:"",d=await Vf(s),f=`${l}/account${d?`?${d}`:""}${c}`;return s.signal?.throwIfAborted(),await e.openExternal(f),{ok:!0}}),e.handle("auth:openPayCenter",async(a,i,s,l)=>{if(!e.isTrustedSender(a))return o;if(i!==void 0&&!Dx.includes(i))return{ok:!1,error:"invalid_tab"};if(s!==void 0&&(typeof s!="string"||!Ox.test(s)))return{ok:!1,error:"invalid_plan"};if(l!==void 0&&!Nx.includes(l))return{ok:!1,error:"invalid_period"};let c=(i??"membership")==="membership"&&s?`&plan=${encodeURIComponent(s)}${l?`&period=${l}`:""}`:"",d=await e.getCloud(),f=d.base;if(!f)return{ok:!1};let u=await Vf(d),p=`${f}/pay?tab=${i??"membership"}${c}${u?`&${u}`:""}&redirect=${encodeURIComponent(`${f}/account`)}`;return d.signal?.throwIfAborted(),await e.openExternal(p),{ok:!0}}),e.handle("profile:publicOrigin",async a=>{if(!e.isTrustedSender(a))return o;let{base:i}=await e.getCloud();if(!i)return{ok:!1};try{let s=await fetch(`${i}/account`,{redirect:"manual",signal:AbortSignal.timeout(4e3)});s.body?.cancel().catch(()=>{});let l=s.status>=300&&s.status<400?s.headers.get("location"):null;return l&&/^https?:\/\//i.test(l)?{ok:!0,origin:new URL(l).origin}:{ok:!1}}catch{return{ok:!1}}});let r=()=>e.getCloud();e.handle("account:quota",async a=>{if(!e.isTrustedSender(a))return t;let i=await r();if(!i.token)return{status:401,json:null};try{return await Ao(i,"GET","/api/token-quota/my",void 0,15e3)}catch(s){return{status:0,json:{detail:String(s?.message||s)}}}}),e.handle("account:useResetCard",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(i!==void 0&&i!=="both")return{status:400,json:{error:"invalid_type",detail:`invalid reset card type: ${i}`}};let l=i??"both";try{return await Ao(s,"POST","/api/token-quota/reset-card/use",{type:l},15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("account:bgConvert",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(!Number.isInteger(i)||i<1||i>100)return{status:400,json:{error:"invalid_percent"}};try{return await Ao(s,"POST","/api/token-quota/background/convert",{percent:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:pointsAutoDeduct",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/auto-deduct",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:bgAutoMain",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/background/auto-main",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("feedback:submit",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud();if(!s.base||!s.token)return{ok:!1,error:"not-logged-in"};if(i?.expectedAccountId!==void 0){let f=i.expectedAccountId;if(typeof f!="string"||!f||Hf(s.base,s.token)!==f)return{ok:!1,error:"account-changed"}}let l=(i?.description||"").trim();if(!l)return{ok:!1,error:"empty"};if(l.length>1e4)return{ok:!1,error:"description-too-long"};let c=[],d=!1;if(i?.sessionLogJson){let f=$f(i.sessionLogJson);if(f.length>5*1024*1024)return{ok:!1,error:"attachment-too-large"};c.push({filename:i.sessionLogName||"tangu-session.json",mime_type:"application/json",size:f.length,data_base64:Uf(f)})}try{let f=await qn(s,`${s.base}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:l,attachments:c}),signal:AbortSignal.timeout(2e4)});if(!f.ok){let p=`HTTP ${f.status}`;try{p=(await f.json())?.detail||p}catch{}return{ok:!1,error:p}}return{ok:!0,id:(await f.json().catch(()=>({})))?.id??null,attachmentSkipped:d}}catch(f){return{ok:!1,error:f?.message||String(f)}}}),e.handle("cloud:fetch",async(a,i)=>{if(!e.isTrustedSender(a))return{status:0,error:"untrusted"};let s=i??{},l=typeof s.path=="string"?s.path:"",c=s.projectSource===void 0?null:s.projectSource;if(c!==null&&(typeof c!="string"||!/^[a-z0-9][a-z0-9-]{0,63}$/.test(c)))return{status:0,error:"bad_project_source"};let d=Math.min(12e4,Math.max(1e3,Number(s.timeoutMs)||15e3)),f=typeof s.method=="string"?s.method.toUpperCase():"GET";if(!/^(GET|POST|PUT|PATCH|DELETE)$/.test(f))return{status:0,error:"bad_method"};if(!l.startsWith("/"))return{status:0,error:"bad_path"};let u=await e.getCloud();if(!String(u.base||""))return{status:0,error:"no_cloud_url"};let p=Vn(u.base,l);if(!p)return{status:0,error:"bad_path"};if(!u.token)return{status:401,error:"not_signed_in"};let m=s.body!==void 0&&f!=="GET"&&f!=="DELETE",g=new AbortController,h=setTimeout(()=>g.abort(),d);try{let y=await qn(u,p,{method:f,headers:{...m?{"Content-Type":"application/json"}:{},...c?{"X-Project-Source":c}:{}},body:m?JSON.stringify(s.body):void 0,signal:g.signal});return{status:y.status,json:await y.json().catch(()=>null)}}catch(y){return{status:0,error:String(y?.message||y)}}finally{clearTimeout(h)}}),qf(e)}var gl={sender:"web"},Fx=new Set(["auth:openAccountCenter","auth:openPayCenter"]),jf=(e,t)=>new URL(typeof e=="string"&&e?e:t.location.origin,t.location.href).origin;function Bx(e,t=window){let o=new Map,r=!!(t.tangu?.mobile&&t.tangu.extendMobile),a=0,i=!1,s=new AbortController,l=g=>{if(i||g!==a)throw new Error("account_changed")},c=[],d={async getCloud(){let g=a,h=s.signal,y=await e.status().catch(()=>null);return l(g),{base:jf(y?.cloudUrl,t),token:y?.loggedIn?"session":"",signal:h,fetch:async(b,w)=>{l(g);let k=await e.request(b,{...w,signal:w.signal?AbortSignal.any([w.signal,h]):h});return l(g),k}}},handle:(g,h)=>{o.set(g,h)},async openExternal(g){if(r){if(!t.tangu?.openExternal)throw new Error("no_external_browser");await t.tangu.openExternal(g);return}let h=c.shift();h&&!h.closed?h.location.replace(g):t.open(g,"_blank","noopener,noreferrer")},isTrustedSender:()=>!0,log:g=>console.info("[forsion-extend]",g)};Wf(d);let f=Kp(d,t,{...r?{saveDownload:async(g,h)=>{if(!e.saveDownload)throw new Error("download_unavailable");let y=await e.saveDownload(g,h);if(!y.ok)throw new Error(y.error||"download_failed")},openExternal:g=>d.openExternal(g)}:{}}),u=t.tangu?.onAuthChanged?.(()=>{a++,s.abort(),s=new AbortController,f.reset();for(let g of c.splice(0))g.close()}),p=async(g,...h)=>{let y=o.get(g);if(!y)throw new Error(`No handler registered for '${g}'`);if(g==="penzor:transfers")return y(gl,...h);let b=a;if(i)return{ok:!1,error:"disposed"};let w=z=>b===a&&!i?z:{ok:!1,error:"account_changed"};if(!Fx.has(g)||r)return w(await y(gl,...h));let k=t.open("","_blank");k&&(k.opener=null,c.push(k));try{return w(await y(gl,...h))}finally{let z=k?c.indexOf(k):-1;z>=0&&(c.splice(z,1),k.close())}},m=t.tangu?.authStatus;return{...m?{authStatus:async()=>{let g=await m();return{...g,cloudUrl:g?.cloudUrl?jf(g.cloudUrl,t):g?.cloudUrl}}}:{},cloudInvoke:p,cloudFetch:g=>p("cloud:fetch",g),openAccountCenter:r&&t.tangu?.openAccountCenter?g=>t.tangu.openAccountCenter(g):g=>p("auth:openAccountCenter",g),openExternal:async g=>{/^https?:\/\//i.test(g)&&(r?await d.openExternal(g):t.open(g,"_blank","noopener,noreferrer"))},dispose(){i=!0,a++,s.abort(),u?.();for(let g of c.splice(0))g.close();f.dispose()}}}function Gf(e,t=window){let o=t.tangu;if(!wn(o)||typeof e?.account?.request!="function"||typeof e.account.status!="function")return null;let{dispose:r,...a}=Bx(e.account,t);Hc(a);let i=e.app,s=!1;try{s=typeof i?.provideFeedbackChannel=="function"&&i.provideFeedbackChannel($x(a.cloudInvoke))===!0}catch{}return()=>{if(s)try{i.provideFeedbackChannel(null)}catch{}r()}}function $x(e){return async t=>{try{let o=await e("feedback:submit",t);return!o||typeof o!="object"?{ok:!1,error:"unavailable"}:o.error==="account_changed"||o.error==="disposed"?{ok:!1,error:"account-changed"}:o}catch(o){let r=String(o?.message||o);return{ok:!1,error:r==="account_changed"?"account-changed":r}}}}function Ux(e=G){let t=!0,o=async(a,i="GET",s)=>{if(!t)throw new Error("Inbox account changed");let l=await e(a,{method:i,...s===void 0?{}:{body:s}});if(!t)throw new Error("Inbox account changed");if(!l.ok)throw l.status===401?Object.assign(new Error("Sign in to read official messages"),{code:"not_signed_in"}):Object.assign(new Error(l.detail||l.transport||"Cloud inbox unavailable"),{code:l.code});return l.data},r=a=>{if(!/^cloud:[0-9a-zA-Z-]{1,64}$/.test(a))throw new Error("Invalid cloud message id");return encodeURIComponent(a.slice(6))};return{retire(){t=!1},async list(a){let i=[],s=null,l=new Set;do{let c;try{c=await o(`/brain/inbox/messages?filter=${a}${s?`&before=${encodeURIComponent(s)}`:""}`)}catch(d){if(d?.code==="not_signed_in")return[];throw d}if(!Array.isArray(c.messages))throw new Error("Invalid cloud inbox response");if(i.push(...c.messages),s=c.nextCursor??null,s&&l.has(s))throw new Error("Repeated cloud inbox cursor");s&&l.add(s)}while(s);return i},async unreadCount(){try{return await o("/brain/inbox/messages/unread-count")}catch(a){if(a?.code==="not_signed_in")return{count:0,latestId:null,revision:"signed-out"};throw a}},patch:(a,i)=>o(`/brain/inbox/messages/${r(a)}`,"PATCH",i),async importLegacy(a){let i=await Q().authStatus?.();if(!(!t||!i?.loggedIn||i.tokenValid===!1||!i.accountId)){try{let s="forsion.inbox.legacyOwner",l=localStorage.getItem(s);if(l&&l!==i.accountId)return;l||localStorage.setItem(s,i.accountId)}catch{return}for(let s=0;s<a.length;s+=200)await o("/brain/inbox/messages/import","POST",{messages:a.slice(s,s+200).map(l=>({id:l.origin_broadcast_id,read:!!l.read_at,archived:!!l.archived_at}))})}},async readAll(){try{return await o("/brain/inbox/messages/read-all","POST",{})}catch(a){if(a?.code==="not_signed_in")return{ok:!0};throw a}},remove:a=>o(`/brain/inbox/messages/${r(a)}`,"DELETE"),async claim(a,i){let s=await o(`/brain/inbox/broadcasts/${r(a)}/claim`,"POST",{client:i});return{ok:s.claimed===!0,alreadyClaimed:s.alreadyClaimed===!0}}}}function Jf(e){if(typeof e?.app?.provideInboxChannel!="function"||!Q().cloudFetch)return;let t,o=()=>{t?.retire(),t=Ux(),e.app.provideInboxChannel(t)};o();let r=Q().onAuthChanged?.(o);return()=>{r?.(),t?.retire(),e.app.provideInboxChannel(null)}}var oo=e=>typeof e=="string"&&e.trim()?e.trim():null,Eo=e=>(oo(e)||"").replace(/^v(?=\d)/i,"");function Hx(e,t){let o=i=>{let s=Eo(i).split("+")[0],l=s.indexOf("-");return{core:(l<0?s:s.slice(0,l)).split(".").map(d=>/^\d+$/.test(d)?Number(d):NaN),pre:l<0?[]:s.slice(l+1).split(".")}};if(!Eo(e)||!Eo(t))return null;let r=o(e),a=o(t);if(r.core.some(i=>!Number.isFinite(i))||a.core.some(i=>!Number.isFinite(i)))return null;for(let i=0;i<Math.max(r.core.length,a.core.length);i++){let s=(r.core[i]||0)-(a.core[i]||0);if(s)return s>0?1:-1}if(!r.pre.length||!a.pre.length)return r.pre.length===a.pre.length?0:r.pre.length?-1:1;for(let i=0;i<Math.max(r.pre.length,a.pre.length);i++){let s=r.pre[i],l=a.pre[i];if(s===void 0||l===void 0)return s===void 0?-1:1;if(s===l)continue;let c=/^\d+$/.test(s),d=/^\d+$/.test(l);return c&&d?Number(s)>Number(l)?1:-1:c!==d?c?-1:1:s>l?1:-1}return 0}var qx=2*6e4,Vx=(e,t)=>{let o=Date.parse(String(e??"")),r=Date.parse(String(t??""));return Number.isFinite(o)&&Number.isFinite(r)&&o-r>qx};function Xf(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.itemId!="string"||typeof t.name!="string"?null:{itemId:t.itemId,name:t.name,type:oo(t.type)||void 0,source:oo(t.source)||void 0,mode:t.mode==="info"?"info":"package",from:oo(t.from),to:oo(t.to),tag:oo(t.tag),fields:Array.isArray(t.fields)?t.fields.filter(o=>typeof o=="string"):void 0,listed:t.listed===!0,submittedAt:oo(t.submittedAt)||void 0}}function Kf(e,t){let o={status:"review",note:null,storeVersion:e.from,listed:!!e.listed};if(!t)return o;let r=e.mode==="info",a=t.status==="approved",i=oo(t.version)??e.from,s=f=>!!f&&(r?f.kind==="info":f.kind!=="info"&&Eo(f.version)===Eo(e.to)),l=s(t.pendingUpdate)&&!Vx(t.pendingUpdate?.submittedAt,e.submittedAt),c=s(t.rejectedUpdate)&&!t.pendingUpdate,d=(f,u=null)=>({status:f,note:u&&u.trim()?u.trim():null,storeVersion:i,listed:a});if(!a)return t.status==="rejected"?d("rejected",t.reviewNote||null):d("review");if(e.listed===!1)return d("approved");if(l)return d("review");if(c)return d("rejected",t.rejectedUpdate?.note||null);if(!r){let f=Hx(t.version,e.to);return f!==null&&f>=0||(t.versions||[]).some(u=>Eo(u.version)===Eo(e.to))?d("approved"):d("rejected")}return d("approved")}var Wx="store_submit_update",jx=`
|
|
1770
|
+
`;var xx={checkin:"checkin",tasks:"tasks",game:"gamepad",notice:"megaphone"},kx=560;function er({ev:e,e:t}){let[o,r]=_(!1),a=Ff(t.artUrl,e.origin());return J(()=>r(!1),[a]),!a||o?n("div",{class:"ev-art ev-art-empty"}):n("img",{class:"ev-art",src:a,alt:"",style:{objectPosition:`${t.focus.x*100}% ${t.focus.y*100}%`},onError:()=>r(!0)})}function Or({ev:e,e:t}){let o=e.locale(),r=fl(t,e.feed()?.now??new Date().toISOString(),o);return n("div",{class:"ev-hd",children:[n("span",{class:"ev-kind",children:[n(B,{name:xx[t.kind],size:13}),e.t(`events.kind.${t.kind}`)]}),n("h3",{children:Ln(t.title,o)}),r.long&&n("span",{class:`ev-time${r.warn?" warn":""}`,children:[n(B,{name:"clock",size:13}),r.long]}),n("p",{class:"ev-summary",children:Ln(t.summary,o)})]})}function bl({ev:e,items:t}){return t.length?n("div",{class:"ev-tiles","aria-label":e.t("events.rewards"),children:t.map((o,r)=>{let a=Ln(o.label,e.locale())||o.kind,i=a.match(/^(.+?)\s*(×\d+)$/);return n("div",{class:"ev-tile",children:[n(B,{name:"gift",size:18}),i?n(R,{children:[n("b",{children:i[2]}),n("span",{children:i[1]})]}):n("b",{children:a})]},r)})}):null}function wx({ev:e,e:t}){let o=t.checkin,r=e.locale();return n("div",{class:`ev-days${o.days>7?" two":""}`,children:Array.from({length:o.days},(a,i)=>{let s=i<o.signed,l=i===o.signed&&!o.signedToday&&t.state==="live";return n("div",{class:`ev-day${s?" done":""}${l?" today":""}${i===o.days-1?" big":""}`,children:[n("small",{children:l?e.t("events.checkin.today"):e.t("events.checkin.day",{n:i+1})}),n("span",{class:"ev-day-ic",children:n(B,{name:s?"check":"gift",size:15})}),n("b",{children:Nr(o.rewards[i],r)})]},i)})})}function zx({ev:e,e:t}){let o=t.checkin,r=o.signed>=o.days,a=t.state==="live"&&!o.signedToday&&!r;return n("section",{class:`ev-stage ev-checkin${o.days>7?" two":""}`,children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-flow",children:[n("div",{class:"ev-row",children:[n(Or,{ev:e,e:t}),n("div",{class:"ev-act",children:[n("small",{children:e.t("events.checkin.signed",{n:o.signed,total:o.days})}),n("button",{type:"button",class:"ev-btn pri",disabled:!a||e.busy(),onClick:()=>void e.checkin(t),children:r?e.t("events.checkin.finished"):o.signedToday?e.t("events.checkin.done"):e.t("events.checkin.do")})]})]}),n(wx,{ev:e,e:t})]})]})}function Sx({ev:e,ctx:t,view:o,e:r,x:a}){let i=e.locale(),s=a.progress>=a.goal,l=r.state==="live",c=Math.round(Math.min(a.progress,a.goal)/a.goal*100),d=()=>{a.jump&&t.app?.openLink?.(a.jump).then(f=>{f&&o?.close?.()})};return n("div",{class:`ev-task${a.claimed||!s&&!l?" muted":""}`,children:[n("div",{class:"ev-task-m",children:[n("b",{children:Ln(a.title,i)}),n("em",{children:Ln(a.desc,i)}),!a.claimed&&c>0&&c<100&&n("div",{class:"ev-bar",children:n("i",{style:{width:`${c}%`}})})]}),n("div",{class:"ev-task-e",children:[a.reward?.length?n("span",{class:"ev-reward",children:Nr(a.reward,i)}):null,n("small",{children:`${Uf(a.progress)}/${Uf(a.goal)}`})]}),a.claimed?n("span",{class:"ev-got",title:e.t("events.tasks.claim"),children:n(B,{name:"check",size:15})}):s?n("button",{type:"button",class:"ev-btn pri sm",disabled:e.busy(),onClick:()=>void e.claim(r,[a.id]),children:e.t("events.tasks.claim")}):l&&a.jump&&t.app?.openLink?n("button",{type:"button",class:"ev-btn sm",onClick:d,children:e.t("events.tasks.go")}):n("span",{class:"ev-got"})]})}var Uf=e=>e>=1e3?`${Math.round(e/100)/10}k`:String(e);function _x(e){let{ev:t,e:o}=e,r=o.tasks??[],a=r.filter(s=>s.progress>=s.goal&&!s.claimed),i=r.filter(s=>s.claimed).length;return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:t,e:o}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Or,{ev:t,e:o}),n(bl,{ev:t,items:o.rewards})]}),n("div",{class:"ev-card",children:[n("div",{class:"ev-card-h",children:[n("b",{children:t.t("events.tasks.progress")}),n("small",{children:[i,"/",r.length]}),n("div",{class:"ev-bar",children:n("i",{style:{width:`${r.length?Math.round(i/r.length*100):0}%`}})})]}),n("div",{class:"ev-card-b",children:r.map(s=>n(Sx,{...e,x:s},s.id))}),a.length>1&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn pri wide",disabled:e.ev.busy(),onClick:()=>void t.claim(o,a.map(s=>s.id)),children:t.t("events.tasks.claimAll",{n:a.length})})})]})]})}function Cx(e){let[t,o]=_(!0);return J(()=>{let r=!0,a=window.amadeus?.listPlugins;return a?.().then(i=>{r&&o(i.some(s=>s.id===e))}).catch(()=>{}),()=>{r=!1}},[e]),t}function Ax({ev:e,ctx:t,view:o,e:r}){let a=r.game,i=Cx(a.pluginId),s=()=>{t.app?.openLink?.(`forsion://space/${a.spaceId}`).then(c=>{c&&o?.close?.()})},l=()=>{let c=Q().openFloatingPanel;c?c({id:"market",title:e.t("events.title"),builtin:"market",params:{q:a.marketSlug}}):t.app?.runCommand?.("open-market")};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Or,{ev:e,e:r}),n(bl,{ev:e,items:r.rewards})]}),n("div",{class:"ev-card narrow",children:[n("div",{class:"ev-card-h solo",children:n("b",{children:e.t("events.game.board")})}),n("div",{class:"ev-card-b",children:[a.leaderboard.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.game.empty")}),a.leaderboard.map(c=>{let d=c.rank===a.me?.rank;return n("div",{class:`ev-rank${d?" me":""}`,children:[n("span",{children:c.rank}),n("em",{children:d?e.t("events.game.me"):c.name||e.t("events.game.anon")}),n("b",{children:c.score})]},c.rank)}),a.me&&!a.leaderboard.some(c=>c.rank===a.me?.rank)&&n("div",{class:"ev-rank me",children:[n("span",{children:a.me.rank}),n("em",{children:e.t("events.game.me")}),n("b",{children:a.me.score})]})]}),r.state==="live"&&n("div",{class:"ev-card-f",children:i?n("button",{type:"button",class:"ev-btn pri lg",onClick:s,children:[n(B,{name:"play",size:15}),e.t("events.game.enter")]}):n("button",{type:"button",class:"ev-btn lg",onClick:l,children:e.t("events.game.install")})})]})]})}function Tx({ev:e,e:t}){let o=oe(null),r=Ln(t.body,e.locale());return J(()=>{let a=o.current;if(!a||!Bi())return;let i=ua(a),s=document.createElement("style");s.textContent=ca;let l=document.createElement("div");return l.className="doc",l.appendChild(Fi(r,"markdown")),i.replaceChildren(s,l),i.addEventListener("click",$n),i.addEventListener("auxclick",$n),()=>{i.removeEventListener("click",$n),i.removeEventListener("auxclick",$n)}},[r]),n("div",{ref:o})}function Ex({ev:e,ctx:t,view:o,e:r}){let a=()=>{let i=r.cta?.url;i&&(i.startsWith("forsion://")?t.app?.openLink?.(i).then(s=>{s&&o?.close?.()}):Q().openExternal?.(i))};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left short",children:n(Or,{ev:e,e:r})}),n("div",{class:"ev-card wide",children:[n("div",{class:"ev-card-b",children:n(Tx,{ev:e,e:r})}),r.cta&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn wide",onClick:a,children:Ln(r.cta.label,e.locale())||e.t("events.notice.more")})})]})]})}function gl({ev:e,e:t}){return n("section",{class:"ev-stage ev-plain",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-left wide",children:[n(Or,{ev:e,e:t}),n(bl,{ev:e,items:t.rewards})]})]})}function Px(e){let{e:t}=e;return t.state==="upcoming"?n(gl,{...e}):t.kind==="checkin"&&t.checkin?t.state==="live"?n(zx,{...e}):n(gl,{...e}):t.kind==="tasks"?n(_x,{...e}):t.kind==="game"&&t.game?n(Ax,{...e}):t.kind==="notice"?n(Ex,{...e}):n(gl,{...e})}function Ix({ev:e,e:t,on:o,select:r}){let a=e.locale(),i=fl(t,e.feed()?.now??new Date().toISOString(),a),s=e.dotFor(t);return n("button",{type:"button",class:`ev-ri${o?" on":""}`,"aria-current":o?"true":void 0,onClick:r,children:[n("span",{class:"ev-th",children:n(er,{ev:e,e:t})}),n("span",{class:"ev-rt",children:[n("b",{children:Ln(t.title,a)}),n("em",{class:i.warn?"warn":"",children:i.short})]}),s&&n("i",{class:"ev-dot","aria-label":e.t("events.dot")})]})}function Mx({ev:e,view:t,pane:o,setPane:r,select:a,current:i}){let s=e.groups(),l=d=>n(Ix,{ev:e,e:d,on:i?.id===d.id,select:()=>a(d)},d.id),c=(d,f)=>f.length?n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t(d)}),f.map(l)]}):null;return n("aside",{class:"ev-rail",children:[t?.surface==="floating"&&n("button",{type:"button",class:"ev-back",onClick:()=>t.close?.(),children:[n(B,{name:"arrowLeft",size:15}),e.t("events.back")]}),n("div",{class:"ev-brand",children:[n("span",{class:"ev-bi",children:n(B,{name:"gift",size:16})}),n("div",{children:[n("strong",{children:e.t("events.title")}),n("small",{children:e.t("events.count",{n:s.active.length})})]})]}),o==="list"?n("div",{class:"ev-list",children:[c("events.group.active",s.active),c("events.group.notice",s.notices),c("events.group.upcoming",s.upcoming)]}):n("div",{class:"ev-list",children:n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t("events.ended")}),s.ended.map(l),s.ended.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.endedEmpty")})]})}),n("button",{type:"button",class:"ev-foot",onClick:()=>r(o==="list"?"ended":"list"),children:o==="list"?n(R,{children:[e.t("events.ended"),n("span",{children:s.ended.length}),n(B,{name:"chevron",size:14})]}):n(R,{children:[n(B,{name:"back",size:14}),e.t("events.list")]})})]})}function Rx({ev:e,ctx:t}){let o=e.notice();if(!o)return null;let r=Q().openFloatingPanel,a=()=>{r?r({id:"settings",title:e.t("events.title"),builtin:"settings",params:{tab:In("backpack")}}):t.app?.openSettings?.(In("backpack"))};return n("div",{class:`ev-notice${o.ok?"":" bad"}`,role:"status",children:[n(B,{name:o.ok?"check":"alert",size:15}),n("span",{children:o.text}),o.backpack&&(r||t.app?.openSettings)&&n("button",{type:"button",onClick:a,children:e.t("events.toast.backpack")}),n("button",{type:"button",class:"ev-x","aria-label":"\xD7",onClick:()=>e.clearNotice(),children:n(B,{name:"x",size:14})})]})}function hl({ev:e,icon:t,text:o,action:r,run:a}){return n("div",{class:"ev-msg",children:[n(B,{name:t,size:20}),n("span",{children:o}),r&&n("button",{type:"button",class:"ev-btn pri",disabled:e.busy(),onClick:a,children:r})]})}function Hf(e){let{ev:t,view:o}=e,r=oe(null),[,a]=_(0),[i,s]=_(!1),[l,c]=_(!1),[d,f]=_("list");J(()=>t.subscribe(()=>a(y=>y+1)),[t]),J(()=>{let y=v=>{let x=typeof v?.id=="string"?v.id:"";t.refresh(v?.preview?x:"").then(()=>{x&&(t.select(x),c(!0))})};return y(o?.getParams?.()),o?.onParamsChanged?.(y)},[t,o]),J(()=>{let y=r.current;if(!y||typeof ResizeObserver>"u")return;let v=new ResizeObserver(()=>s(y.clientWidth<kx));return v.observe(y),()=>v.disconnect()},[]);let u=t.status(),p=t.selected(),m=t.fresh();J(()=>{p&&u==="ready"&&m&&t.needsSeen(p)&&t.select(p.id)},[p?.id,u,m]);let g=y=>{t.select(y.id),c(!0)},h;if(u==="signedOut")h=n(hl,{ev:t,icon:"lock",text:t.t("events.login.title"),action:t.t("events.login.do"),run:()=>void Q().forsionLogin?.()});else if(u==="error"||u==="unavailable")h=n(hl,{ev:t,icon:"alert",text:t.t("events.error"),action:t.t("events.retry"),run:()=>void t.refresh()});else if(u==="loading")h=n("div",{class:"ev-loading"});else if(!p)h=n(hl,{ev:t,icon:"gift",text:t.t("events.empty")});else{let y=!i||!l,v=!i||l;h=n("div",{class:`ev-body${i?" phone":""}`,children:[y&&n(Mx,{...e,pane:d,setPane:f,select:g,current:i?null:p}),v&&n("div",{class:"ev-main",children:[i&&n("button",{type:"button",class:"ev-phone-back","aria-label":t.t("events.list"),onClick:()=>c(!1),children:n(B,{name:"back",size:17})}),n(Px,{...e,e:p},p.id),n(Rx,{...e})]})]})}return n("div",{ref:r,class:"ev-root",children:[n("style",{children:$f}),h]})}var Lx=()=>{let e=document.documentElement.dataset.window;return!e||e==="main"};function Dx(e,t){let o=ln(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof o?.cloudFetch=="function"&&cn(o)&&(!o.mobile||!!o.extendMobile)&&(typeof e.openFloatingPanel=="function"||typeof e.openView=="function")}function qf(e,t=window){if(!Dx(e,t))return null;let o=Lx(),r=Bf(e,{fetchOnStart:o});e.registerView({id:Ka,title:r.t("events.title"),icon:"gift",mount:(l,c)=>(Le(n(Hf,{ev:r,ctx:e,view:c}),l),()=>{Le(null,l)})}),e.registerCommand?.({id:"events-open",title:()=>r.t("events.title"),keywords:"\u6D3B\u52A8 \u7B7E\u5230 \u4EFB\u52A1 \u9886\u5956 event events check-in quests",run:()=>r.open()});let a=e.app?.registerRibbonAction,i=o&&a?a({id:"events",icon:"gift",title:()=>r.t("events.title"),run:()=>r.open(),dot:{get:()=>r.hasDot(),subscribe:l=>r.subscribe(l),label:()=>r.t("events.dot")}}):null,s=r.dispose;return{...r,dispose:()=>{i?.(),s()}}}var Nx=new TextEncoder,X_=new TextDecoder("utf-8",{ignoreBOM:!0}),Vf=e=>Nx.encode(e);function Wf(e){let t="";for(let o=0;o<e.length;o+=32768)t+=String.fromCharCode(...e.subarray(o,o+32768));return btoa(t)}function jf(e,t){try{let o=new URL(e);if(o.protocol!=="https:"&&o.protocol!=="http:")return null;let r=t.split(".")[1];if(!r)return null;let a=r.replace(/-/g,"+").replace(/_/g,"/"),i=Uint8Array.from(atob(a),c=>c.charCodeAt(0)),s=JSON.parse(new TextDecoder().decode(i)),l=s.userId??s.sub;return typeof l!="string"&&typeof l!="number"||!String(l).trim()?null:`${o.origin}${o.pathname.replace(/\/+$/,"")}::${String(l)}`}catch{return null}}var Ox=50*1024*1024,Fx=new Set(["mode","type","source","name","summary","githubRepoUrl","npmPackage","version","readme","description","tags","minAppVersion","maxAppVersion","platforms"]);function Bx(e){if(!e||typeof e!="object")return null;let t=e;if(t.id!==void 0&&(typeof t.id!="string"||!/^[a-zA-Z0-9_-]{1,128}$/.test(t.id))||!t.fields||typeof t.fields!="object"||Array.isArray(t.fields))return null;let o=new FormData,r=0;for(let[a,i]of Object.entries(t.fields)){if(!Fx.has(a)||typeof i!="string"||(r+=i.length,r>25e4)||t.id&&!["mode","name","summary","version","readme","description","tags","minAppVersion","maxAppVersion","platforms"].includes(a))return null;o.append(a,i)}if(t.zip!==void 0){if(!t.zip||typeof t.zip.name!="string"||!/\.zip$/i.test(t.zip.name)||!(t.zip.data instanceof Uint8Array)||!t.zip.data.byteLength||t.zip.data.byteLength>Ox)return null;o.append("zip",new Blob([new Uint8Array(t.zip.data)],{type:"application/zip"}),t.zip.name.replace(/[\\/]/g,"_").slice(-255))}return{path:`${t.id?`/market/mine/${t.id}/update`:"/market/submit"}${t.dryRun===!0?"?dryRun=1":""}`,body:o}}function Gf(e){e.handle("cloud:marketSubmit",async(t,o)=>{if(!e.isTrustedSender(t))return{status:0,error:"untrusted"};let r=Bx(o);if(!r)return{status:400,json:{error:"invalid_request"}};let a=await e.getCloud();if(!a.token)return{status:401,error:"not_signed_in"};let i=Vn(a.base,r.path);if(!i)return{status:0,error:"no_cloud_url"};try{let s=await qn(a,i,{method:"POST",body:r.body,redirect:"error",signal:AbortSignal.timeout(12e4)});return{status:s.status,json:await s.json().catch(()=>null)}}catch(s){return{status:0,error:String(s?.message||s)}}})}async function Jf(e){if(!e.token)return"";try{let t=await Ao(e,"POST","/api/auth/handoff",{},5e3);if(t.status===200&&typeof t.json?.code=="string"&&t.json.code)return`code=${encodeURIComponent(t.json.code)}`;if((t.status===404||t.status===405)&&!e.fetch)return`token=${encodeURIComponent(e.token)}`}catch{}return""}var $x=["membership","credits","storefront"],Ux=["monthly","quarterly","yearly"],Hx=/^[A-Za-z0-9_-]{1,64}$/;function Xf(e){let t={status:0,error:"untrusted"},o={ok:!1,error:"untrusted"};e.handle("auth:openAccountCenter",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud(),l=s.base;if(!l)return{ok:!1};let c=i&&/^[a-z0-9-]+$/i.test(i)?`#${i}`:"",d=await Jf(s),f=`${l}/account${d?`?${d}`:""}${c}`;return s.signal?.throwIfAborted(),await e.openExternal(f),{ok:!0}}),e.handle("auth:openPayCenter",async(a,i,s,l)=>{if(!e.isTrustedSender(a))return o;if(i!==void 0&&!$x.includes(i))return{ok:!1,error:"invalid_tab"};if(s!==void 0&&(typeof s!="string"||!Hx.test(s)))return{ok:!1,error:"invalid_plan"};if(l!==void 0&&!Ux.includes(l))return{ok:!1,error:"invalid_period"};let c=(i??"membership")==="membership"&&s?`&plan=${encodeURIComponent(s)}${l?`&period=${l}`:""}`:"",d=await e.getCloud(),f=d.base;if(!f)return{ok:!1};let u=await Jf(d),p=`${f}/pay?tab=${i??"membership"}${c}${u?`&${u}`:""}&redirect=${encodeURIComponent(`${f}/account`)}`;return d.signal?.throwIfAborted(),await e.openExternal(p),{ok:!0}}),e.handle("profile:publicOrigin",async a=>{if(!e.isTrustedSender(a))return o;let{base:i}=await e.getCloud();if(!i)return{ok:!1};try{let s=await fetch(`${i}/account`,{redirect:"manual",signal:AbortSignal.timeout(4e3)});s.body?.cancel().catch(()=>{});let l=s.status>=300&&s.status<400?s.headers.get("location"):null;return l&&/^https?:\/\//i.test(l)?{ok:!0,origin:new URL(l).origin}:{ok:!1}}catch{return{ok:!1}}});let r=()=>e.getCloud();e.handle("account:quota",async a=>{if(!e.isTrustedSender(a))return t;let i=await r();if(!i.token)return{status:401,json:null};try{return await Ao(i,"GET","/api/token-quota/my",void 0,15e3)}catch(s){return{status:0,json:{detail:String(s?.message||s)}}}}),e.handle("account:useResetCard",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(i!==void 0&&i!=="both")return{status:400,json:{error:"invalid_type",detail:`invalid reset card type: ${i}`}};let l=i??"both";try{return await Ao(s,"POST","/api/token-quota/reset-card/use",{type:l},15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("account:bgConvert",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(!Number.isInteger(i)||i<1||i>100)return{status:400,json:{error:"invalid_percent"}};try{return await Ao(s,"POST","/api/token-quota/background/convert",{percent:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:pointsAutoDeduct",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/auto-deduct",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:bgAutoMain",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/background/auto-main",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("feedback:submit",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud();if(!s.base||!s.token)return{ok:!1,error:"not-logged-in"};if(i?.expectedAccountId!==void 0){let f=i.expectedAccountId;if(typeof f!="string"||!f||jf(s.base,s.token)!==f)return{ok:!1,error:"account-changed"}}let l=(i?.description||"").trim();if(!l)return{ok:!1,error:"empty"};if(l.length>1e4)return{ok:!1,error:"description-too-long"};let c=[],d=!1;if(i?.sessionLogJson){let f=Vf(i.sessionLogJson);if(f.length>5*1024*1024)return{ok:!1,error:"attachment-too-large"};c.push({filename:i.sessionLogName||"tangu-session.json",mime_type:"application/json",size:f.length,data_base64:Wf(f)})}try{let f=await qn(s,`${s.base}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:l,attachments:c}),signal:AbortSignal.timeout(2e4)});if(!f.ok){let p=`HTTP ${f.status}`;try{p=(await f.json())?.detail||p}catch{}return{ok:!1,error:p}}return{ok:!0,id:(await f.json().catch(()=>({})))?.id??null,attachmentSkipped:d}}catch(f){return{ok:!1,error:f?.message||String(f)}}}),e.handle("cloud:fetch",async(a,i)=>{if(!e.isTrustedSender(a))return{status:0,error:"untrusted"};let s=i??{},l=typeof s.path=="string"?s.path:"",c=s.projectSource===void 0?null:s.projectSource;if(c!==null&&(typeof c!="string"||!/^[a-z0-9][a-z0-9-]{0,63}$/.test(c)))return{status:0,error:"bad_project_source"};let d=Math.min(12e4,Math.max(1e3,Number(s.timeoutMs)||15e3)),f=typeof s.method=="string"?s.method.toUpperCase():"GET";if(!/^(GET|POST|PUT|PATCH|DELETE)$/.test(f))return{status:0,error:"bad_method"};if(!l.startsWith("/"))return{status:0,error:"bad_path"};let u=await e.getCloud();if(!String(u.base||""))return{status:0,error:"no_cloud_url"};let p=Vn(u.base,l);if(!p)return{status:0,error:"bad_path"};if(!u.token)return{status:401,error:"not_signed_in"};let m=s.body!==void 0&&f!=="GET"&&f!=="DELETE",g=new AbortController,h=setTimeout(()=>g.abort(),d);try{let y=await qn(u,p,{method:f,headers:{...m?{"Content-Type":"application/json"}:{},...c?{"X-Project-Source":c}:{}},body:m?JSON.stringify(s.body):void 0,signal:g.signal});return{status:y.status,json:await y.json().catch(()=>null)}}catch(y){return{status:0,error:String(y?.message||y)}}finally{clearTimeout(h)}}),Gf(e)}var vl={sender:"web"},qx=new Set(["auth:openAccountCenter","auth:openPayCenter"]),Kf=(e,t)=>new URL(typeof e=="string"&&e?e:t.location.origin,t.location.href).origin;function Vx(e,t=window){let o=new Map,r=!!(t.tangu?.mobile&&t.tangu.extendMobile),a=0,i=!1,s=new AbortController,l=g=>{if(i||g!==a)throw new Error("account_changed")},c=[],d={async getCloud(){let g=a,h=s.signal,y=await e.status().catch(()=>null);return l(g),{base:Kf(y?.cloudUrl,t),token:y?.loggedIn?"session":"",signal:h,fetch:async(v,x)=>{l(g);let w=await e.request(v,{...x,signal:x.signal?AbortSignal.any([x.signal,h]):h});return l(g),w}}},handle:(g,h)=>{o.set(g,h)},async openExternal(g){if(r){if(!t.tangu?.openExternal)throw new Error("no_external_browser");await t.tangu.openExternal(g);return}let h=c.shift();h&&!h.closed?h.location.replace(g):t.open(g,"_blank","noopener,noreferrer")},isTrustedSender:()=>!0,log:g=>console.info("[forsion-extend]",g)};Xf(d);let f=ef(d,t,{...r?{saveDownload:async(g,h)=>{if(!e.saveDownload)throw new Error("download_unavailable");let y=await e.saveDownload(g,h);if(!y.ok)throw new Error(y.error||"download_failed")},openExternal:g=>d.openExternal(g)}:{}}),u=t.tangu?.onAuthChanged?.(()=>{a++,s.abort(),s=new AbortController,f.reset();for(let g of c.splice(0))g.close()}),p=async(g,...h)=>{let y=o.get(g);if(!y)throw new Error(`No handler registered for '${g}'`);if(g==="penzor:transfers")return y(vl,...h);let v=a;if(i)return{ok:!1,error:"disposed"};let x=z=>v===a&&!i?z:{ok:!1,error:"account_changed"};if(!qx.has(g)||r)return x(await y(vl,...h));let w=t.open("","_blank");w&&(w.opener=null,c.push(w));try{return x(await y(vl,...h))}finally{let z=w?c.indexOf(w):-1;z>=0&&(c.splice(z,1),w.close())}},m=t.tangu?.authStatus;return{...m?{authStatus:async()=>{let g=await m();return{...g,cloudUrl:g?.cloudUrl?Kf(g.cloudUrl,t):g?.cloudUrl}}}:{},cloudInvoke:p,cloudFetch:g=>p("cloud:fetch",g),openAccountCenter:r&&t.tangu?.openAccountCenter?g=>t.tangu.openAccountCenter(g):g=>p("auth:openAccountCenter",g),openExternal:async g=>{/^https?:\/\//i.test(g)&&(r?await d.openExternal(g):t.open(g,"_blank","noopener,noreferrer"))},dispose(){i=!0,a++,s.abort(),u?.();for(let g of c.splice(0))g.close();f.dispose()}}}function Yf(e,t=window){let o=t.tangu;if(!wn(o)||typeof e?.account?.request!="function"||typeof e.account.status!="function")return null;let{dispose:r,...a}=Vx(e.account,t);Wc(a);let i=e.app,s=!1;try{s=typeof i?.provideFeedbackChannel=="function"&&i.provideFeedbackChannel(Wx(a.cloudInvoke))===!0}catch{}return()=>{if(s)try{i.provideFeedbackChannel(null)}catch{}r()}}function Wx(e){return async t=>{try{let o=await e("feedback:submit",t);return!o||typeof o!="object"?{ok:!1,error:"unavailable"}:o.error==="account_changed"||o.error==="disposed"?{ok:!1,error:"account-changed"}:o}catch(o){let r=String(o?.message||o);return{ok:!1,error:r==="account_changed"?"account-changed":r}}}}function jx(e=j){let t=!0,o=async(a,i="GET",s)=>{if(!t)throw new Error("Inbox account changed");let l=await e(a,{method:i,...s===void 0?{}:{body:s}});if(!t)throw new Error("Inbox account changed");if(!l.ok)throw l.status===401?Object.assign(new Error("Sign in to read official messages"),{code:"not_signed_in"}):Object.assign(new Error(l.detail||l.transport||"Cloud inbox unavailable"),{code:l.code});return l.data},r=a=>{if(!/^cloud:[0-9a-zA-Z-]{1,64}$/.test(a))throw new Error("Invalid cloud message id");return encodeURIComponent(a.slice(6))};return{retire(){t=!1},async list(a){let i=[],s=null,l=new Set;do{let c;try{c=await o(`/brain/inbox/messages?filter=${a}${s?`&before=${encodeURIComponent(s)}`:""}`)}catch(d){if(d?.code==="not_signed_in")return[];throw d}if(!Array.isArray(c.messages))throw new Error("Invalid cloud inbox response");if(i.push(...c.messages),s=c.nextCursor??null,s&&l.has(s))throw new Error("Repeated cloud inbox cursor");s&&l.add(s)}while(s);return i},async unreadCount(){try{return await o("/brain/inbox/messages/unread-count")}catch(a){if(a?.code==="not_signed_in")return{count:0,latestId:null,revision:"signed-out"};throw a}},patch:(a,i)=>o(`/brain/inbox/messages/${r(a)}`,"PATCH",i),async importLegacy(a){let i=await Q().authStatus?.();if(!(!t||!i?.loggedIn||i.tokenValid===!1||!i.accountId)){try{let s="forsion.inbox.legacyOwner",l=localStorage.getItem(s);if(l&&l!==i.accountId)return;l||localStorage.setItem(s,i.accountId)}catch{return}for(let s=0;s<a.length;s+=200)await o("/brain/inbox/messages/import","POST",{messages:a.slice(s,s+200).map(l=>({id:l.origin_broadcast_id,read:!!l.read_at,archived:!!l.archived_at}))})}},async readAll(){try{return await o("/brain/inbox/messages/read-all","POST",{})}catch(a){if(a?.code==="not_signed_in")return{ok:!0};throw a}},remove:a=>o(`/brain/inbox/messages/${r(a)}`,"DELETE"),async claim(a,i){let s=await o(`/brain/inbox/broadcasts/${r(a)}/claim`,"POST",{client:i});return{ok:s.claimed===!0,alreadyClaimed:s.alreadyClaimed===!0}}}}function Zf(e){if(typeof e?.app?.provideInboxChannel!="function"||!Q().cloudFetch)return;let t,o=()=>{t?.retire(),t=jx(),e.app.provideInboxChannel(t)};o();let r=Q().onAuthChanged?.(o);return()=>{r?.(),t?.retire(),e.app.provideInboxChannel(null)}}var oo=e=>typeof e=="string"&&e.trim()?e.trim():null,Eo=e=>(oo(e)||"").replace(/^v(?=\d)/i,"");function Gx(e,t){let o=i=>{let s=Eo(i).split("+")[0],l=s.indexOf("-");return{core:(l<0?s:s.slice(0,l)).split(".").map(d=>/^\d+$/.test(d)?Number(d):NaN),pre:l<0?[]:s.slice(l+1).split(".")}};if(!Eo(e)||!Eo(t))return null;let r=o(e),a=o(t);if(r.core.some(i=>!Number.isFinite(i))||a.core.some(i=>!Number.isFinite(i)))return null;for(let i=0;i<Math.max(r.core.length,a.core.length);i++){let s=(r.core[i]||0)-(a.core[i]||0);if(s)return s>0?1:-1}if(!r.pre.length||!a.pre.length)return r.pre.length===a.pre.length?0:r.pre.length?-1:1;for(let i=0;i<Math.max(r.pre.length,a.pre.length);i++){let s=r.pre[i],l=a.pre[i];if(s===void 0||l===void 0)return s===void 0?-1:1;if(s===l)continue;let c=/^\d+$/.test(s),d=/^\d+$/.test(l);return c&&d?Number(s)>Number(l)?1:-1:c!==d?c?-1:1:s>l?1:-1}return 0}var Jx=2*6e4,Xx=(e,t)=>{let o=Date.parse(String(e??"")),r=Date.parse(String(t??""));return Number.isFinite(o)&&Number.isFinite(r)&&o-r>Jx};function Qf(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.itemId!="string"||typeof t.name!="string"?null:{itemId:t.itemId,name:t.name,type:oo(t.type)||void 0,source:oo(t.source)||void 0,mode:t.mode==="info"?"info":"package",from:oo(t.from),to:oo(t.to),tag:oo(t.tag),fields:Array.isArray(t.fields)?t.fields.filter(o=>typeof o=="string"):void 0,listed:t.listed===!0,submittedAt:oo(t.submittedAt)||void 0}}function em(e,t){let o={status:"review",note:null,storeVersion:e.from,listed:!!e.listed};if(!t)return o;let r=e.mode==="info",a=t.status==="approved",i=oo(t.version)??e.from,s=f=>!!f&&(r?f.kind==="info":f.kind!=="info"&&Eo(f.version)===Eo(e.to)),l=s(t.pendingUpdate)&&!Xx(t.pendingUpdate?.submittedAt,e.submittedAt),c=s(t.rejectedUpdate)&&!t.pendingUpdate,d=(f,u=null)=>({status:f,note:u&&u.trim()?u.trim():null,storeVersion:i,listed:a});if(!a)return t.status==="rejected"?d("rejected",t.reviewNote||null):d("review");if(e.listed===!1)return d("approved");if(l)return d("review");if(c)return d("rejected",t.rejectedUpdate?.note||null);if(!r){let f=Gx(t.version,e.to);return f!==null&&f>=0||(t.versions||[]).some(u=>Eo(u.version)===Eo(e.to))?d("approved"):d("rejected")}return d("approved")}var Kx="store_submit_update",Yx=`
|
|
1768
1771
|
.fx-su { padding: 4px 2px 2px; color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
|
|
1769
1772
|
.fx-su .fx-su-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
|
|
1770
1773
|
.fx-su .fx-su-ic { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--overlay-light); color: var(--text-light); }
|
|
@@ -1780,8 +1783,8 @@ Content-Type: ${r}\r
|
|
|
1780
1783
|
.fx-su .fx-su-meta { color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
|
|
1781
1784
|
.fx-su .fx-su-note { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--overlay-light); color: var(--text-light); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
1782
1785
|
.fx-su .fx-su-acts { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
|
|
1783
|
-
`,
|
|
1784
|
-
`,1)[0],o=/^Published "(.*)" at (\S*) \((.*)\)\.?$/.exec(t);return o?{name:o[1],url:/^https?:\/\//i.test(o[2])?o[2]:"",size:/(?:^|, )(\d+(?:\.\d+)? [KM]B)(?:,|$)/.exec(o[3])?.[1]??null}:{name:"",url:"",size:null}}var
|
|
1786
|
+
`,Zx={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",space:"grid",theme:"palette"},Qx=new Set(["plugin","amadeus-plugin","skill","agent","space","theme"]),tm={name:"sub.name",summary:"sub.summary",description:"sub.description",tags:"sub.tags",minAppVersion:"sub.minAppVersion",maxAppVersion:"sub.maxAppVersion",platforms:"sub.platforms"},ek=e=>e==="github"?"su.source.github":e==="npm"?"su.source.npm":e==="zip"?"su.source.zip":null;function tk(e){let{sub:t,view:o,t:r,locale:a,onOpenSubmission:i}=e,s=t.type&&Qx.has(t.type)?r(`sub.type.${t.type.replace("-","_")}`):null,l=ek(t.source),c=[s,l&&r(l)].filter(Boolean).join(" \xB7 "),d=o.status==="approved"?n("span",{class:"fx-su-pill is-ok",children:r("su.approved")}):o.status==="rejected"?n("span",{class:"fx-su-pill is-no",children:r("su.rejected")}):n("span",{class:"fx-su-pill",children:r("su.review")}),f=t.mode==="package"?t.source==="github"&&t.tag?r("su.viaGithub",{tag:t.tag}):t.source==="npm"&&t.to?r("su.viaNpm",{version:t.to}):"":"",u=(t.fields||[]).map(g=>tm[g]?r(tm[g]):g),p=t.submittedAt?_t(t.submittedAt,a):null,m=o.status==="review"?p?r("su.metaReview",{time:p}):r("su.metaReviewNoTime"):o.status==="approved"?t.mode==="info"?r("su.metaApprovedInfo"):r("su.metaApproved",{version:o.storeVersion||t.to||""}):o.listed&&o.storeVersion?r("su.metaRejected",{version:o.storeVersion}):r("su.metaRejectedUnlisted");return n("div",{class:"fx-su","data-fx-store-update":o.status,children:[n("style",{children:Yx}),n("div",{class:"fx-su-top",children:[n("span",{class:"fx-su-ic",children:n(B,{name:Zx[t.type||""]||"box",size:18})}),n("div",{class:"fx-su-id",children:[n("div",{class:"fx-su-name",children:t.name}),c&&n("div",{class:"fx-su-sub",children:c})]}),d]}),t.mode==="package"?n("div",{class:"fx-su-ver",children:[t.from&&n(R,{children:[n("span",{class:"fx-su-from",children:t.from}),n("span",{"aria-hidden":"true",children:"\u2192"})]}),n("span",{class:"fx-su-to",children:t.to}),f&&n("span",{class:"fx-su-meta",children:f})]}):n("div",{class:"fx-su-ver",children:[n("span",{class:"fx-su-to",children:r("su.infoOnly")}),!!u.length&&n("span",{class:"fx-su-meta",children:u.join(r("su.listSep"))})]}),n("div",{class:"fx-su-meta",children:m}),o.status==="rejected"&&o.note&&n("div",{class:"fx-su-note",children:o.note}),o.status!=="approved"&&i&&n("div",{class:"fx-su-acts",children:n("button",{type:"button",class:"btn sm",onClick:i,children:r("su.openSubmission")})})]})}function nk(e){let{ctx:t,sub:o,call:r}=e,[a,i]=_(()=>Oe(t.getLocale?.())),s=(()=>{try{return r.state?.get()}catch{return}})(),[l,c]=_(s?.item??null);J(()=>{i(Oe(t.getLocale?.()));let u=t.subscribeLocale?.(p=>i(Oe(p)));return()=>{typeof u=="function"&&u()}},[t]),J(()=>{let u=!0;return j("/market/mine").then(p=>{if(!u||!p.ok)return;let m=(p.data?.items||[]).find(g=>g&&g.id===o.itemId)||null;if(m){c(m);try{r.state?.set({item:m})}catch{}}}),()=>{u=!1}},[o.itemId]);let d=t.app?.openSettings,f=typeof d=="function"?()=>{Nu(o.itemId),d.call(t.app,In("submission"))}:null;return n(tk,{sub:o,view:em(o,l),t:Bn(a),locale:a,onOpenSubmission:f})}function nm(e){return!e||typeof e.registerToolResultRenderer!="function"?!1:(e.registerToolResultRenderer({tool:Kx,title:()=>ze(Oe(e.getLocale?.()),"su.title"),mount(t,o){let r=Qf(o?.result);if(!r)throw new Error("store_submit_update: unexpected result shape");return Le(n(nk,{ctx:e,sub:r,call:o}),t),()=>{Le(null,t)}}}),!0)}var om={unknown:{key:"wc.pill.published",tone:"neutral"},live:{key:"wc.pill.live",tone:"ok"},pending:{key:"wc.pill.review",tone:"neutral"},approved:{key:"wc.pill.listed",tone:"ok"},rejected:{key:"wc.pill.rejected",tone:"danger"},disabled:{key:"web.disabled",tone:"danger"},gone:{key:"wc.pill.gone",tone:"muted"}};function xl(e){if(e===void 0)return"unknown";if(e===null)return"gone";if(e.status==="disabled")return"disabled";let t=e.listing_status;return t==="pending"||t==="approved"||t==="rejected"?t:"live"}var Po=e=>e!=="gone"&&e!=="disabled";function rm(e){if(typeof e!="string"||!e.startsWith("Published"))return null;let t=e.split(`
|
|
1787
|
+
`,1)[0],o=/^Published "(.*)" at (\S*) \((.*)\)\.?$/.exec(t);return o?{name:o[1],url:/^https?:\/\//i.test(o[2])?o[2]:"",size:/(?:^|, )(\d+(?:\.\d+)? [KM]B)(?:,|$)/.exec(o[3])?.[1]??null}:{name:"",url:"",size:null}}var kl=(e,t,o)=>ks(e,t,o),yl=e=>{let t=Date.parse(String(e??""));return Number.isFinite(t)?t:0},am=e=>[...e].sort((t,o)=>yl(o.updated_at)-yl(t.updated_at)),ok=10*6e4,im=(e,t=Date.now())=>{let o=yl(e);return o>0&&t-o<ok};var rk="publish_web_page",ak="forsion_account",wl=5,cm=`
|
|
1785
1788
|
.fx-wc { color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
|
|
1786
1789
|
.fx-wc .fx-wc-form { display: grid; gap: 8px; margin-top: 10px; }
|
|
1787
1790
|
.fx-wc .fx-wc-field { display: grid; gap: 6px; min-width: 0; color: var(--text-muted); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
|
|
@@ -1793,5 +1796,5 @@ Content-Type: ${r}\r
|
|
|
1793
1796
|
.fx-wc .fx-wc-line { margin: 2px 0; color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
|
|
1794
1797
|
.fx-wc .fx-wc-rows { display: grid; gap: 2px; }
|
|
1795
1798
|
.fx-wc .fx-wc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--text-faint); font-size: var(--ui-font-caption); line-height: var(--ui-line-caption); }
|
|
1796
|
-
`,xl=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:null,om=e=>typeof e=="string"?e.trim():"";function im(e){let[t,o]=_(()=>Oe(e.getLocale?.()));return J(()=>{o(Oe(e.getLocale?.()));let r=e.subscribeLocale?.(a=>o(Oe(a)));return()=>{typeof r=="function"&&r()}},[e]),t}function sm(e){let t=(()=>{try{return e.state?.get()}catch{return}})(),[o,r]=_(t?.data??null),[a,i]=_(t?.cloud??""),[s,l]=_(null),c=Fe(),d=ne(0),f=ne(a),u=Nt(async()=>{let h=++d.current,y=await G("/connect/apps");if(!c.current||h!==d.current)return;if(!y.ok){l(y);return}let b=y.data||{},w=f.current;if(!b.publicBase&&!w){let k=await Q().authStatus?.().catch(()=>null);if(k?.cloudUrl&&(w=wr(k.cloudUrl)),!c.current||h!==d.current)return}f.current=w,r(b),i(w),l(null);try{e.state?.set({data:b,cloud:w})}catch{}},[]),[p,m]=_(0),g=ne(0);return J(()=>{u();let h=Q().onAuthChanged?.(()=>{d.current++,g.current++,m(g.current),r(null),l(null);try{e.state?.set(void 0)}catch{}u()});return()=>{typeof h=="function"&&h()}},[]),{data:o,fail:s,cloud:a,reload:u,gen:p,genRef:g}}function lm(e,t){let o=ne(null),r=ne(null),a=ne(null),i=ne(t);return i.current=t,Zn(()=>{if(o.current)return a.current=i.current,r.current=e.mountWebCard(o.current,i.current),()=>{let s=r.current;r.current=null,s?.dispose()}},[]),Zn(()=>{!r.current||a.current===t||(a.current=t,r.current.update(t))}),o}function cm(e){let t=Q().openExternal;if(t){t(e)?.catch(()=>{});return}try{window.open(e,"_blank","noopener,noreferrer")}catch{}}function dm(e,t,o,r){let a=Qf[t];return{status:{label:e(a.key),tone:a.tone},address:o?{text:o,icon:"globe",struck:t==="gone",muted:!Po(t)}:void 0,thumbnail:r&&Po(t)&&o?{url:o,version:r.updated_at}:null,placeholderIcon:"globe"}}function um(e){let t=e.app?.openSettings;return typeof t=="function"?()=>t.call(e.app,Mn("webpages")):null}var pm=({a:e,t})=>e.error?n("div",{class:"fx-wc-msg",role:"alert",children:ht(e.error,t)}):null;function tk(e){let{ctx:t,call:o,slug:r,argName:a,pub:i}=e,s=im(t),l=Bn(s),{data:c,cloud:d,reload:f,gen:u,genRef:p}=sm(o),m=fe(),g=um(t),[h,y]=_(null),[b,w]=_(null),[k,z]=_("idle"),P=ne(null),F=ne(null);J(()=>()=>{P.current&&clearTimeout(P.current),F.current&&clearTimeout(F.current)},[]);let $=c?(c.apps||[]).find(ve=>ve?.slug===r)??null:void 0,O=bl($),K=c&&vl(c,d,r)||i.url,C=m.pending,D=`/connect/apps/${encodeURIComponent(r)}`,U=(ve,Ye,Rt,W)=>void m.run(async()=>{if(p.current!==u)return;let pe=await G(ve,{method:Ye,body:Rt});if(!pe.ok)return $e(pe);W?.(),await f()}),M=()=>{P.current&&clearTimeout(P.current),P.current=null,w(null)};J(()=>{u&&(M(),y(null))},[u]);let Z=ve=>{P.current&&clearTimeout(P.current),w(ve),P.current=setTimeout(()=>{P.current=null,w(null)},ga)},S=async()=>{let ve=await Uo(K);z(ve?"copied":"failed"),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>z("idle"),1800)},A=$?.updated_at?nm($.updated_at)?l("wc.justPublished"):l("web.updated",{date:Pt($.updated_at,s)}):"",I=$?vs($.total_bytes):i.size,j=[r,I,A,Po(O)?l("wc.anyone"):""].filter(Boolean).join(" \xB7 "),ee=!K||!Po(O),H=[{label:l("wc.open"),icon:"external-link",disabled:ee,run:()=>cm(K)},{label:l(k==="copied"?"common.copied":k==="failed"?"common.copyFailed":"web.copy"),icon:k==="copied"?"check":"copy",disabled:ee,run:()=>void S()}],re=g?{label:l("wc.viewInPages"),icon:"settings",run:g}:null,he=[];b?he=[{label:l(b==="unpublish"?"web.unpublishConfirm":"web.listingDelistConfirm"),variant:"danger",disabled:C,run:()=>{M(),U(b==="unpublish"?D:`${D}/listing`,"DELETE")}},{label:l("common.cancel"),disabled:C,run:M}]:O==="live"?he=[{label:l("web.listingApply"),icon:"upload",disabled:C||h!==null,run:()=>{m.clear(),y("")}}]:O==="pending"?he=[{label:l("web.listingWithdraw"),disabled:C,run:()=>U(`${D}/listing`,"DELETE")}]:O==="rejected"?he=[{label:l("web.listingReapply"),icon:"upload",disabled:C||h!==null,run:()=>{m.clear(),y($?.listing_summary||"")}}]:(O==="disabled"||O==="gone")&&re&&(he=[re]);let qe;if(O!=="unknown"){let ve=[];O==="approved"&&ve.push({label:l("web.listingDelist"),icon:"x",disabled:C,run:()=>Z("delist")}),re&&!he.includes(re)&&ve.push({label:re.label,icon:re.icon,run:re.run});let Ye=O==="gone"?[]:[{label:l("web.unpublish"),icon:"trash-2",danger:!0,disabled:C,run:()=>Z("unpublish")}];qe=[...ve,...ve.length&&Ye.length?[{separator:!0}]:[],...Ye],qe.length||(qe=void 0)}let me={layout:"card",name:$?.name||i.name||a||r,...dm(l,O,K,$),note:j,actions:H,trailing:he,menu:qe},De=lm(t.ui,me);return n("div",{class:"fx-wc","data-fx-web-card":O,"data-webpage":r,children:[n("style",{children:am}),n("div",{ref:De}),h!==null&&n("form",{class:"fx-wc-form",onSubmit:ve=>{ve.preventDefault();let Ye=(h||"").trim();Ye&&U(`${D}/listing`,"PUT",{summary:Ye},()=>y(null))},children:[n("label",{class:"fx-wc-field",children:[n("span",{children:l("web.listingSummary")}),n("textarea",{rows:2,maxLength:gs,value:h,disabled:C,placeholder:l("web.listingSummaryPh"),onInput:ve=>y(ve.currentTarget.value)}),n("small",{children:l("web.listingHint")})]}),n("div",{class:"fx-wc-acts",children:[n("button",{type:"submit",class:"btn sm primary",disabled:C||!h.trim(),children:l("web.listingSubmit")}),n("button",{type:"button",class:"btn sm",disabled:C,onClick:()=>{y(null),m.clear()},children:l("common.cancel")})]})]}),n(pm,{a:m,t:l})]})}function nk(e){let t=lm(e.ui,e.card);return n("div",{ref:t,"data-webpage":e.slug})}function ok(e){let{ctx:t,call:o}=e,r=im(t),a=Bn(r),{data:i,fail:s,cloud:l,reload:c,gen:d,genRef:f}=sm(o),u=fe(),p=um(t),[m,g]=_(null),h=ne(null);J(()=>()=>{h.current&&clearTimeout(h.current)},[]),J(()=>{d&&g(null)},[d]);let y=u.pending,b=(O,K)=>void u.run(async()=>{if(f.current!==d)return;let C=await G(O,{method:K});if(!C.ok)return $e(C);await c()}),w=O=>{let K=`/connect/apps/${encodeURIComponent(O.slug)}`,C=t.ui?.confirm;if(typeof C=="function"){C.call(t.ui,{title:a("wc.unpublishTitle",{name:O.name||O.slug}),body:a("wc.unpublishBody"),ok:a("web.unpublish"),cancel:a("common.cancel"),danger:!0}).then(D=>{D&&b(K,"DELETE")},()=>{});return}if(h.current&&clearTimeout(h.current),h.current=null,m===O.slug){g(null),b(K,"DELETE");return}g(O.slug),h.current=setTimeout(()=>{h.current=null,g(null)},ga)},k=i?.apps||[],z=tm(k).slice(0,yl),P=O=>{let K=bl(O),C=i?vl(i,l,O.slug):"",D=`/connect/apps/${encodeURIComponent(O.slug)}`,U=K==="pending"?{label:a("web.listingWithdraw"),disabled:y,run:()=>b(`${D}/listing`,"DELETE")}:K==="approved"?{label:a("web.listingDelist"),icon:"x",disabled:y,run:()=>b(`${D}/listing`,"DELETE")}:(K==="live"||K==="rejected")&&p?{label:a(K==="live"?"web.listingApply":"web.listingReapply"),icon:"upload",run:p}:null,M=m===O.slug,Z=dm(a,K,C,O);return{layout:"row",name:O.name||O.slug,...Z,status:M?{label:a("wc.unpublishAgain"),tone:"danger"}:Z.status,menu:[{label:a("wc.open"),icon:"external-link",disabled:!C||!Po(K),run:()=>cm(C)},{label:a("web.copy"),icon:"copy",disabled:!C||!Po(K),run:()=>void Uo(C)},{separator:!0},...U?[U,{separator:!0}]:[],{label:a(M?"web.unpublishConfirm":"web.unpublish"),icon:"trash-2",danger:!0,disabled:y,run:()=>w(O)}]}},F=typeof i?.limit=="number"?a("web.used",{used:k.length,limit:i.limit}):a("wc.total",{n:k.length}),$=k.length>yl?` \xB7 ${a("wc.more",{n:k.length-yl})}`:"";return n("div",{class:"fx-wc","data-fx-web-pages":i?String(k.length):s?"error":"loading",children:[n("style",{children:am}),i?z.length?n("div",{class:"fx-wc-rows",children:z.map(O=>n(nk,{ui:t.ui,card:P(O),slug:O.slug},O.slug))}):n("p",{class:"fx-wc-line",children:a("web.empty")}):n("p",{class:"fx-wc-line",children:s?ht(bt(s),a):a("common.loading")}),i&&n("div",{class:"fx-wc-foot",children:[n("span",{children:[F,$]}),p&&n("button",{type:"button",class:"btn sm",onClick:p,children:a("wc.manage")})]}),n(pm,{a:u,t:a})]})}function rm(e,t){try{Le(t,e)}catch(o){try{Le(null,e)}catch{}throw o}return()=>{Le(null,e)}}function fm(e){if(!e||typeof e.registerToolResultRenderer!="function"||typeof e.ui?.mountWebCard!="function")return!1;let t=o=>()=>we(Oe(e.getLocale?.()),o);return e.registerToolResultRenderer({tool:Qx,title:t("wc.title"),match:o=>{let r=xl(o?.args);return!!r&&r.action!=="unpublish"},mount(o,r){let a=xl(r?.args),i=om(a?.slug).toLowerCase(),s=em(r?.result);if(!a||a.action==="unpublish"||!i||!s)throw new Error("publish_web_page: unexpected result shape");return rm(o,n(tk,{ctx:e,call:r,slug:i,argName:om(a.name),pub:s}))}}),e.registerToolResultRenderer({tool:ek,title:t("web.title"),match:o=>xl(o?.args)?.section==="web_pages",mount(o,r){if(typeof r?.result!="string"||!r.result.startsWith("Published web pages:"))throw new Error("forsion_account web_pages: unexpected result shape");return rm(o,n(ok,{ctx:e,call:r}))}}),!0}var mm=/^[a-z0-9](?:[a-z0-9-]{1,30})?[a-z0-9]$/,gm="forsion_connect_terms_v1",rk=()=>{try{return localStorage.getItem(gm)==="1"}catch{return!1}},ak=()=>{try{localStorage.setItem(gm,"1")}catch{}};function ik(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32).replace(/-+$/,"");if(t.length>=3&&mm.test(t))return t;let o=Math.random().toString(36).slice(2,6);return t?`${t}-${o}`.slice(0,32):`app-${o}`}async function tr(e,...t){let o=Q().cloudInvoke;if(!o)throw new Error("unavailable");return await o(e,...t)}function hm(e){let{t,locale:o,ctx:r}=ie(),{root:a,projectName:i,htmlFiles:s,onClose:l}=e,[c,d]=_("loading"),[f,u]=_(""),[p,m]=_(""),[g,h]=_(""),[y,b]=_(null),[w,k]=_(null),[z,P]=_(null),[F,$]=_({}),[O,K]=_(null),[C,D]=_(i),[U,M]=_(""),[Z,S]=_(e.entry||s[0]||"index.html"),[A,I]=_(Qn),[j,ee]=_(null),[H,re]=_(!1),[he,qe]=_(!1),[me,De]=_(!1),[Qe,ve]=_(""),[Ye,Rt]=_(!1),[W,pe]=_(!1),ke=ne(!1),Ie=ne(null),ge=ne(!0);J(()=>()=>{ge.current=!1},[]);let ot=Nt(async(ce={})=>{m("");let Ze=await tr("connect:meta",a).catch(()=>({})),je;try{je=await tr("connect:list")??{ok:!1,code:"error",detail:"unavailable"}}catch(N){je={ok:!1,code:"error",detail:gt(N)}}if(!ge.current)return;if($(Ze&&typeof Ze=="object"?Ze:{}),!je.ok){if(je.code==="not_logged_in"){d("login");return}m(je.detail||t("err.generic")),d("form");return}h(je.base||""),b(je.handle||null),k({used:je.used??0,limit:je.limit??1,tier:je.tier||"free"}),K(Ca(je.authorPays)?je.authorPays:null);let tn=Ze?.slug||Ie.current,ct=tn&&(je.apps||[]).find(N=>N.slug===tn)||null;P(ct),ke.current?ce.resetAi&&ct&&I(qo(ct.ai)):(ke.current=!0,ct?(D(ct.name),M(ct.slug),ct.entry&&(s.length===0||s.includes(ct.entry))&&S(ct.entry),I(qo(ct.ai))):M(Ze?.slug||ik(i))),d("form")},[a,i,s]);J(()=>{ot()},[ot]),J(()=>{let ce=Ze=>{Ze.key==="Escape"&&!f&&l()};return window.addEventListener("keydown",ce),()=>window.removeEventListener("keydown",ce)},[f,l]);let Ce=async()=>{u("login"),m("");try{await Q().forsionLogin?.(),await ot()}catch(ce){m(gt(ce))}finally{ge.current&&u("")}},pt=!!F.usesSdk&&!!O,rt=z?qo(z.ai):Qn,un=pt&&!Aa(A,rt),Kt=()=>{if(!rk()){pe(!1),Rt(!0);return}zt()},Yt=()=>{W&&(ak(),Rt(!1),zt())},zt=async()=>{u("publish"),m(""),ee(null);let ce=!1,Ze="";try{let je=await tr("connect:publish",{dir:a,name:C.trim(),slug:U.trim(),entry:Z});if(!je?.ok){if(!ge.current)return;if(je?.code==="not_logged_in"){d("login");return}m(je?.detail||t("err.generic"));return}let tn=je.slug||U.trim();if(un){let ct=await Ea(tn,A,O);ct.ok?ce=!0:Ze=t("pub.aiSaveFailed",{reason:ht(bt(ct),t)})}if(!ge.current)return;ee(je.url||null),Ie.current=tn,await ot({resetAi:ce}),Ze&&ge.current&&m(Ze)}catch(je){ge.current&&m(gt(je))}finally{ge.current&&u("")}},at=async()=>{if(z){if(!he){qe(!0);return}u("unpublish"),m(""),qe(!1);try{let ce=await tr("connect:unpublish",z.slug);if(!ge.current)return;if(!ce?.ok){m(ce?.detail||t("err.generic"));return}ee(null),P(null),await ot()}catch(ce){ge.current&&m(gt(ce))}finally{ge.current&&u("")}}},Vt=async()=>{if(!(!z||!Qe.trim())){u("listing"),m("");try{let ce=await tr("connect:listingApply",{slug:z.slug,summary:Qe.trim()});if(!ge.current)return;if(!ce?.ok){m(ce?.detail||t("err.generic"));return}De(!1),await ot()}catch(ce){ge.current&&m(gt(ce))}finally{ge.current&&u("")}}},en=async()=>{if(z){u("listing"),m("");try{let ce=await tr("connect:listingWithdraw",z.slug);if(!ge.current)return;if(!ce?.ok){m(ce?.detail||t("err.generic"));return}await ot()}catch(ce){ge.current&&m(gt(ce))}finally{ge.current&&u("")}}},ft=j||(z?.publicUrl&&/^https?:\/\//i.test(z.publicUrl)?z.publicUrl:null)||(z&&g&&y?`${g}/apps/${y}/${z.slug}/`:null),et=g?`${g}/legal/?slug=terms`:"",Ot=mm.test(U)&&U.length>=3,pn=c==="form"&&!f&&Ot&&!!C.trim()&&s.length>0&&s.includes(Z),yt=async()=>{ft&&await Uo(ft)&&(re(!0),setTimeout(()=>{ge.current&&re(!1)},1500))},bn=ce=>{if(!ft)return;let Ze=Q().openExternal;Ze&&(ce?.preventDefault(),Ze(ft)?.catch(()=>{}))},it=z?.listing_status||null,Tt=[t("pub.anyone")];return z&&typeof z.likes=="number"&&Tt.push(t("pub.likes",{n:ze(z.likes,o)})),z&&typeof z.favorites=="number"&&Tt.push(t("pub.saves",{n:ze(z.favorites,o)})),n("div",{class:"fx-pub-overlay",onMouseDown:ce=>{ce.target===ce.currentTarget&&!f&&l()},children:[n("style",{children:Ma}),n("div",{class:"fx-pub-card",role:"dialog","aria-modal":"true","aria-label":Ye?t("pub.titleTerms"):t("pub.title",{name:z?.name||i}),lang:o==="zh"?"zh-CN":"en","data-fx-publish":!0,children:[n("div",{class:"fx-pub-head",children:[n(B,{name:Ye?"shield":"rocket",size:15}),n("span",{class:"fx-pub-title",children:Ye?t("pub.titleTerms"):t("pub.title",{name:z?.name||i})}),n("button",{type:"button",class:"icon-btn","aria-label":t("pub.close"),title:t("pub.close"),disabled:f==="publish",onClick:l,children:n(B,{name:"x",size:15})})]}),Ye?n("div",{children:[n("p",{class:"fx-pub-desc",children:t("pub.termsIntro")}),n("ul",{class:"fx-pub-terms-list",children:[n("li",{children:t("pub.termsLi1")}),n("li",{children:t("pub.termsLi2")}),n("li",{children:t("pub.termsLi3")})]}),n("p",{class:"fx-pub-desc",children:t("pub.termsManage")}),n("label",{class:"fx-pub-agree",children:[n("input",{type:"checkbox",checked:W,onChange:ce=>pe(ce.currentTarget.checked)}),n("span",{children:[t("pub.termsAgreePre"),et?n("a",{href:et,target:"_blank",rel:"noreferrer",onClick:ce=>{let Ze=Q().openExternal;Ze&&(ce.preventDefault(),Ze(et)?.catch(()=>{}))},children:t("pub.termsGuidelines")}):n("strong",{children:t("pub.termsGuidelines")})]})]}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>Rt(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!W,onClick:Yt,children:t("pub.termsConfirm")})]})]}):n(L,{children:[n("p",{class:"fx-pub-desc",children:t(z?"pub.descPublished":"pub.desc")}),c==="loading"&&n("div",{class:"fx-pub-busy","aria-busy":"true",children:n(jt,{size:15})}),c==="login"&&n("div",{class:"fx-pub-login",children:[n("span",{children:t("pub.needLogin")}),n("button",{type:"button",class:"fx-pub-primary",disabled:f==="login",onClick:()=>void Ce(),children:f==="login"?n(L,{children:[n(jt,{size:13}),t("pub.loginWaiting")]}):t("pub.login")})]}),c==="form"&&n(L,{children:[ft&&n(L,{children:[n("div",{class:"fx-pub-url",children:[n("a",{href:ft,target:"_blank",rel:"noreferrer",title:t("pub.open"),onClick:ce=>bn(ce),children:[n(B,{name:"globe",size:13}),ft.replace(/^https?:\/\//,"")]}),n("button",{type:"button",class:"icon-btn","aria-label":t(H?"pub.copied":"pub.copy"),title:t(H?"pub.copied":"pub.copy"),onClick:()=>void yt(),children:n(B,{name:H?"check":"copy",size:13})}),!!Q().openExternal&&n("button",{type:"button",class:"icon-btn","aria-label":t("pub.open"),title:t("pub.open"),onClick:()=>bn(),children:n(B,{name:"external",size:13})})]}),n("div",{class:"fx-pub-hint","data-fx-reach":!0,children:Tt.join(" \xB7 ")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-name",children:t("pub.name")}),n("input",{id:"fx-pub-name",class:"fx-pub-input",value:C,maxLength:80,onInput:ce=>D(ce.currentTarget.value)})]}),!z&&n(L,{children:[n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-slug",children:t("pub.slug")}),n("input",{id:"fx-pub-slug",class:"fx-pub-input fx-pub-mono",value:U,maxLength:32,spellcheck:!1,onInput:ce=>{M(ce.currentTarget.value.toLowerCase()),m("")}})]}),!Ot&&U!==""&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("pub.slugHint")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-entry",children:t("pub.entry")}),s.length>0?n("select",{id:"fx-pub-entry",class:"fx-pub-select",value:Z,onChange:ce=>S(ce.currentTarget.value),children:s.map(ce=>n("option",{value:ce,children:ce},ce))}):n("span",{class:"fx-pub-hint fx-pub-warn",children:t("pub.noEntry")})]}),!z&&w&&n("div",{class:"fx-pub-hint",children:t("pub.slots",{used:w.used,limit:w.limit,tier:w.tier})}),!z&&n("div",{class:"fx-pub-hint",children:t("pub.hint")}),pt&&n(Pa,{draft:A,onChange:I,ap:O,methods:F.sdkMethods,unpublished:!z,cooldownUntil:z?.ai?.cooldownUntil,disabled:!!f,onBuy:()=>kr(r)}),z&&n("div",{class:"fx-pub-listing",children:[n("div",{class:"fx-pub-listing-row",children:[n(B,{name:"store",size:13}),n("span",{class:"fx-pub-listing-title",children:t("pub.listingTitle")}),n("span",{class:`fx-pub-lst is-${it||"none"}`,children:t(it==="pending"?"pub.listingPending":it==="approved"?"pub.listingApproved":it==="rejected"?"pub.listingRejected":"pub.listingNone")}),n("span",{class:"fx-pub-spacer"}),!it&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>{ve(""),De(!0)},children:t("web.listingApply")}),it==="rejected"&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>{ve(z.listing_summary||""),De(!0)},children:t("web.listingReapply")}),(it==="pending"||it==="approved")&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>void en(),children:f==="listing"?n(jt,{}):t(it==="approved"?"web.listingDelist":"web.listingWithdraw")})]}),it==="rejected"&&z.listing_note&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("web.listingNote",{note:z.listing_note})}),me?n("div",{children:[n("textarea",{class:"fx-pub-input",rows:2,maxLength:300,autoFocus:!0,placeholder:t("web.listingSummaryPh"),value:Qe,onInput:ce=>ve(ce.currentTarget.value)}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>De(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Qe.trim()||!!f,onClick:()=>void Vt(),children:f==="listing"?n(jt,{size:13}):t("web.listingSubmit")})]})]}):!it&&n("div",{class:"fx-pub-hint",children:t("pub.listingHint")})]}),p&&n("div",{class:"fx-pub-err",role:"alert",children:p}),n("div",{class:"fx-pub-actions",children:[z&&n("button",{type:"button",class:"fx-pub-danger",disabled:!!f,onClick:()=>void at(),children:f==="unpublish"?n(jt,{size:13}):t(he?"web.unpublishConfirm":"web.unpublish")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-ghost",disabled:f==="publish",onClick:l,children:t("pub.close")}),n("button",{type:"button",class:"fx-pub-primary",disabled:!pn,onClick:()=>Kt(),children:f==="publish"?n(L,{children:[n(jt,{size:13}),t("pub.publishing")]}):z?n(L,{children:[n(B,{name:"refresh",size:13}),t(un?"pub.saveUpdate":"pub.update")]}):n(L,{children:[n(B,{name:"rocket",size:13}),t("pub.publish")]})})]})]})]})]})]})}var sk="connect.publish";function lk(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.root!="string"||!t.root.trim())return null;let o=t.root,r=o.replace(/[\\/]+$/,"").split(/[\\/]/).pop()||o;return{root:o,projectName:typeof t.projectName=="string"&&t.projectName.trim()?t.projectName:r,entry:typeof t.entry=="string"&&t.entry?t.entry:null,htmlFiles:Array.isArray(t.htmlFiles)?t.htmlFiles.filter(a=>typeof a=="string"&&!!a):[]}}function ck(e,t,o){return o.current?.close(),new Promise(r=>{let a=document.createElement("div");a.className="fx-pub-root",document.body.appendChild(a);let i=!1,s=()=>{i||(i=!0,o.current===l&&(o.current=null),Le(null,a),a.remove(),r())},l={close:s};o.current=l,Le(n(Es,{ctx:e,children:n(hm,{...t,onClose:s})}),a)})}function bm(e,t=window){let o=ln(t?.tangu);if(!e||typeof e.registerCommand!="function"||!o?.cloudInvoke||!cn(o)||wn(o)||o.mobile||o.unitPage)return null;let r={current:null};return e.registerCommand({id:sk,title:()=>we(Oe(e.getLocale?.()),"pub.cmd"),keywords:"publish web page link connect forsion \u53D1\u5E03 \u7F51\u9875 \u94FE\u63A5 \u4E0A\u7EBF",run:a=>{let i=lk(a);if(!i){e.app?.notify?.(we(Oe(e.getLocale?.()),"pub.cmdNoArgs"));return}return ck(e,i,r)}}),{dispose:()=>r.current?.close()}}var vm;if(typeof ctx<"u"){let e=Gf(ctx),t=Jf(ctx);ip(ctx),ap(ctx),Zf(ctx),fm(ctx);let o=bm(ctx),r=Jc(ctx),a=_p(ctx),i=kf(ctx),s=Bf(ctx),l=Af(ctx);(r||a||i||s||e||l||o||t)&&(vm=()=>{t?.(),r?.dispose(),a?.dispose(),i?.dispose(),s?.dispose(),l?.dispose(),o?.dispose(),e?.()})}return Dm(dk);})();
|
|
1799
|
+
`,zl=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:null,sm=e=>typeof e=="string"?e.trim():"";function dm(e){let[t,o]=_(()=>Oe(e.getLocale?.()));return J(()=>{o(Oe(e.getLocale?.()));let r=e.subscribeLocale?.(a=>o(Oe(a)));return()=>{typeof r=="function"&&r()}},[e]),t}function um(e){let t=(()=>{try{return e.state?.get()}catch{return}})(),[o,r]=_(t?.data??null),[a,i]=_(t?.cloud??""),[s,l]=_(null),c=Fe(),d=oe(0),f=oe(a),u=Nt(async()=>{let h=++d.current,y=await j("/connect/apps");if(!c.current||h!==d.current)return;if(!y.ok){l(y);return}let v=y.data||{},x=f.current;if(!v.publicBase&&!x){let w=await Q().authStatus?.().catch(()=>null);if(w?.cloudUrl&&(x=zr(w.cloudUrl)),!c.current||h!==d.current)return}f.current=x,r(v),i(x),l(null);try{e.state?.set({data:v,cloud:x})}catch{}},[]),[p,m]=_(0),g=oe(0);return J(()=>{u();let h=Q().onAuthChanged?.(()=>{d.current++,g.current++,m(g.current),r(null),l(null);try{e.state?.set(void 0)}catch{}u()});return()=>{typeof h=="function"&&h()}},[]),{data:o,fail:s,cloud:a,reload:u,gen:p,genRef:g}}function pm(e,t){let o=oe(null),r=oe(null),a=oe(null),i=oe(t);return i.current=t,Zn(()=>{if(o.current)return a.current=i.current,r.current=e.mountWebCard(o.current,i.current),()=>{let s=r.current;r.current=null,s?.dispose()}},[]),Zn(()=>{!r.current||a.current===t||(a.current=t,r.current.update(t))}),o}function fm(e){let t=Q().openExternal;if(t){t(e)?.catch(()=>{});return}try{window.open(e,"_blank","noopener,noreferrer")}catch{}}function mm(e,t,o,r){let a=om[t];return{status:{label:e(a.key),tone:a.tone},address:o?{text:o,icon:"globe",struck:t==="gone",muted:!Po(t)}:void 0,thumbnail:r&&Po(t)&&o?{url:o,version:r.updated_at}:null,placeholderIcon:"globe"}}function gm(e){let t=e.app?.openSettings;return typeof t=="function"?()=>t.call(e.app,In("webpages")):null}var hm=({a:e,t})=>e.error?n("div",{class:"fx-wc-msg",role:"alert",children:ht(e.error,t)}):null;function ik(e){let{ctx:t,call:o,slug:r,argName:a,pub:i}=e,s=dm(t),l=Bn(s),{data:c,cloud:d,reload:f,gen:u,genRef:p}=um(o),m=fe(),g=gm(t),[h,y]=_(null),[v,x]=_(null),[w,z]=_("idle"),I=oe(null),F=oe(null);J(()=>()=>{I.current&&clearTimeout(I.current),F.current&&clearTimeout(F.current)},[]);let $=c?(c.apps||[]).find(ye=>ye?.slug===r)??null:void 0,N=xl($),Y=c&&kl(c,d,r)||i.url,C=m.pending,D=`/connect/apps/${encodeURIComponent(r)}`,H=(ye,Ye,Rt,W)=>void m.run(async()=>{if(p.current!==u)return;let pe=await j(ye,{method:Ye,body:Rt});if(!pe.ok)return $e(pe);W?.(),await f()}),E=()=>{I.current&&clearTimeout(I.current),I.current=null,x(null)};J(()=>{u&&(E(),y(null))},[u]);let Z=ye=>{I.current&&clearTimeout(I.current),x(ye),I.current=setTimeout(()=>{I.current=null,x(null)},ha)},S=async()=>{let ye=await Uo(Y);z(ye?"copied":"failed"),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>z("idle"),1800)},A=$?.updated_at?im($.updated_at)?l("wc.justPublished"):l("web.updated",{date:Pt($.updated_at,s)}):"",M=$?ws($.total_bytes):i.size,G=[r,M,A,Po(N)?l("wc.anyone"):""].filter(Boolean).join(" \xB7 "),ee=!Y||!Po(N),U=[{label:l("wc.open"),icon:"external-link",disabled:ee,run:()=>fm(Y)},{label:l(w==="copied"?"common.copied":w==="failed"?"common.copyFailed":"web.copy"),icon:w==="copied"?"check":"copy",disabled:ee,run:()=>void S()}],ae=g?{label:l("wc.viewInPages"),icon:"settings",run:g}:null,he=[];v?he=[{label:l(v==="unpublish"?"web.unpublishConfirm":"web.listingDelistConfirm"),variant:"danger",disabled:C,run:()=>{E(),H(v==="unpublish"?D:`${D}/listing`,"DELETE")}},{label:l("common.cancel"),disabled:C,run:E}]:N==="live"?he=[{label:l("web.listingApply"),icon:"upload",disabled:C||h!==null,run:()=>{m.clear(),y("")}}]:N==="pending"?he=[{label:l("web.listingWithdraw"),disabled:C,run:()=>H(`${D}/listing`,"DELETE")}]:N==="rejected"?he=[{label:l("web.listingReapply"),icon:"upload",disabled:C||h!==null,run:()=>{m.clear(),y($?.listing_summary||"")}}]:(N==="disabled"||N==="gone")&&ae&&(he=[ae]);let qe;if(N!=="unknown"){let ye=[];N==="approved"&&ye.push({label:l("web.listingDelist"),icon:"x",disabled:C,run:()=>Z("delist")}),ae&&!he.includes(ae)&&ye.push({label:ae.label,icon:ae.icon,run:ae.run});let Ye=N==="gone"?[]:[{label:l("web.unpublish"),icon:"trash-2",danger:!0,disabled:C,run:()=>Z("unpublish")}];qe=[...ye,...ye.length&&Ye.length?[{separator:!0}]:[],...Ye],qe.length||(qe=void 0)}let me={layout:"card",name:$?.name||i.name||a||r,...mm(l,N,Y,$),note:G,actions:U,trailing:he,menu:qe},De=pm(t.ui,me);return n("div",{class:"fx-wc","data-fx-web-card":N,"data-webpage":r,children:[n("style",{children:cm}),n("div",{ref:De}),h!==null&&n("form",{class:"fx-wc-form",onSubmit:ye=>{ye.preventDefault();let Ye=(h||"").trim();Ye&&H(`${D}/listing`,"PUT",{summary:Ye},()=>y(null))},children:[n("label",{class:"fx-wc-field",children:[n("span",{children:l("web.listingSummary")}),n("textarea",{rows:2,maxLength:ys,value:h,disabled:C,placeholder:l("web.listingSummaryPh"),onInput:ye=>y(ye.currentTarget.value)}),n("small",{children:l("web.listingHint")})]}),n("div",{class:"fx-wc-acts",children:[n("button",{type:"submit",class:"btn sm primary",disabled:C||!h.trim(),children:l("web.listingSubmit")}),n("button",{type:"button",class:"btn sm",disabled:C,onClick:()=>{y(null),m.clear()},children:l("common.cancel")})]})]}),n(hm,{a:m,t:l})]})}function sk(e){let t=pm(e.ui,e.card);return n("div",{ref:t,"data-webpage":e.slug})}function lk(e){let{ctx:t,call:o}=e,r=dm(t),a=Bn(r),{data:i,fail:s,cloud:l,reload:c,gen:d,genRef:f}=um(o),u=fe(),p=gm(t),[m,g]=_(null),h=oe(null);J(()=>()=>{h.current&&clearTimeout(h.current)},[]),J(()=>{d&&g(null)},[d]);let y=u.pending,v=(N,Y)=>void u.run(async()=>{if(f.current!==d)return;let C=await j(N,{method:Y});if(!C.ok)return $e(C);await c()}),x=N=>{let Y=`/connect/apps/${encodeURIComponent(N.slug)}`,C=t.ui?.confirm;if(typeof C=="function"){C.call(t.ui,{title:a("wc.unpublishTitle",{name:N.name||N.slug}),body:a("wc.unpublishBody"),ok:a("web.unpublish"),cancel:a("common.cancel"),danger:!0}).then(D=>{D&&v(Y,"DELETE")},()=>{});return}if(h.current&&clearTimeout(h.current),h.current=null,m===N.slug){g(null),v(Y,"DELETE");return}g(N.slug),h.current=setTimeout(()=>{h.current=null,g(null)},ha)},w=i?.apps||[],z=am(w).slice(0,wl),I=N=>{let Y=xl(N),C=i?kl(i,l,N.slug):"",D=`/connect/apps/${encodeURIComponent(N.slug)}`,H=Y==="pending"?{label:a("web.listingWithdraw"),disabled:y,run:()=>v(`${D}/listing`,"DELETE")}:Y==="approved"?{label:a("web.listingDelist"),icon:"x",disabled:y,run:()=>v(`${D}/listing`,"DELETE")}:(Y==="live"||Y==="rejected")&&p?{label:a(Y==="live"?"web.listingApply":"web.listingReapply"),icon:"upload",run:p}:null,E=m===N.slug,Z=mm(a,Y,C,N);return{layout:"row",name:N.name||N.slug,...Z,status:E?{label:a("wc.unpublishAgain"),tone:"danger"}:Z.status,menu:[{label:a("wc.open"),icon:"external-link",disabled:!C||!Po(Y),run:()=>fm(C)},{label:a("web.copy"),icon:"copy",disabled:!C||!Po(Y),run:()=>void Uo(C)},{separator:!0},...H?[H,{separator:!0}]:[],{label:a(E?"web.unpublishConfirm":"web.unpublish"),icon:"trash-2",danger:!0,disabled:y,run:()=>x(N)}]}},F=typeof i?.limit=="number"?a("web.used",{used:w.length,limit:i.limit}):a("wc.total",{n:w.length}),$=w.length>wl?` \xB7 ${a("wc.more",{n:w.length-wl})}`:"";return n("div",{class:"fx-wc","data-fx-web-pages":i?String(w.length):s?"error":"loading",children:[n("style",{children:cm}),i?z.length?n("div",{class:"fx-wc-rows",children:z.map(N=>n(sk,{ui:t.ui,card:I(N),slug:N.slug},N.slug))}):n("p",{class:"fx-wc-line",children:a("web.empty")}):n("p",{class:"fx-wc-line",children:s?ht(bt(s),a):a("common.loading")}),i&&n("div",{class:"fx-wc-foot",children:[n("span",{children:[F,$]}),p&&n("button",{type:"button",class:"btn sm",onClick:p,children:a("wc.manage")})]}),n(hm,{a:u,t:a})]})}function lm(e,t){try{Le(t,e)}catch(o){try{Le(null,e)}catch{}throw o}return()=>{Le(null,e)}}function bm(e){if(!e||typeof e.registerToolResultRenderer!="function"||typeof e.ui?.mountWebCard!="function")return!1;let t=o=>()=>ze(Oe(e.getLocale?.()),o);return e.registerToolResultRenderer({tool:rk,title:t("wc.title"),match:o=>{let r=zl(o?.args);return!!r&&r.action!=="unpublish"},mount(o,r){let a=zl(r?.args),i=sm(a?.slug).toLowerCase(),s=rm(r?.result);if(!a||a.action==="unpublish"||!i||!s)throw new Error("publish_web_page: unexpected result shape");return lm(o,n(ik,{ctx:e,call:r,slug:i,argName:sm(a.name),pub:s}))}}),e.registerToolResultRenderer({tool:ak,title:t("web.title"),match:o=>zl(o?.args)?.section==="web_pages",mount(o,r){if(typeof r?.result!="string"||!r.result.startsWith("Published web pages:"))throw new Error("forsion_account web_pages: unexpected result shape");return lm(o,n(lk,{ctx:e,call:r}))}}),!0}var vm=/^[a-z0-9](?:[a-z0-9-]{1,30})?[a-z0-9]$/,ym="forsion_connect_terms_v1",ck=()=>{try{return localStorage.getItem(ym)==="1"}catch{return!1}},dk=()=>{try{localStorage.setItem(ym,"1")}catch{}};function uk(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32).replace(/-+$/,"");if(t.length>=3&&vm.test(t))return t;let o=Math.random().toString(36).slice(2,6);return t?`${t}-${o}`.slice(0,32):`app-${o}`}async function tr(e,...t){let o=Q().cloudInvoke;if(!o)throw new Error("unavailable");return await o(e,...t)}function xm(e){let{t,locale:o,ctx:r}=ie(),{root:a,projectName:i,htmlFiles:s,onClose:l}=e,[c,d]=_("loading"),[f,u]=_(""),[p,m]=_(""),[g,h]=_(""),[y,v]=_(null),[x,w]=_(null),[z,I]=_(null),[F,$]=_({}),[N,Y]=_(null),[C,D]=_(i),[H,E]=_(""),[Z,S]=_(e.entry||s[0]||"index.html"),[A,M]=_(Qn),[G,ee]=_(null),[U,ae]=_(!1),[he,qe]=_(!1),[me,De]=_(!1),[Qe,ye]=_(""),[Ye,Rt]=_(!1),[W,pe]=_(!1),ke=oe(!1),Me=oe(null),ge=oe(!0);J(()=>()=>{ge.current=!1},[]);let ot=Nt(async(de={})=>{m("");let Ze=await tr("connect:meta",a).catch(()=>({})),je;try{je=await tr("connect:list")??{ok:!1,code:"error",detail:"unavailable"}}catch(O){je={ok:!1,code:"error",detail:gt(O)}}if(!ge.current)return;if($(Ze&&typeof Ze=="object"?Ze:{}),!je.ok){if(je.code==="not_logged_in"){d("login");return}m(je.detail||t("err.generic")),d("form");return}h(je.base||""),v(je.handle||null),w({used:je.used??0,limit:je.limit??1,tier:je.tier||"free"}),Y(Aa(je.authorPays)?je.authorPays:null);let tn=Ze?.slug||Me.current,ct=tn&&(je.apps||[]).find(O=>O.slug===tn)||null;I(ct),ke.current?de.resetAi&&ct&&M(qo(ct.ai)):(ke.current=!0,ct?(D(ct.name),E(ct.slug),ct.entry&&(s.length===0||s.includes(ct.entry))&&S(ct.entry),M(qo(ct.ai))):E(Ze?.slug||uk(i))),d("form")},[a,i,s]);J(()=>{ot()},[ot]),J(()=>{let de=Ze=>{Ze.key==="Escape"&&!f&&l()};return window.addEventListener("keydown",de),()=>window.removeEventListener("keydown",de)},[f,l]);let Ce=async()=>{u("login"),m("");try{await Q().forsionLogin?.(),await ot()}catch(de){m(gt(de))}finally{ge.current&&u("")}},pt=!!F.usesSdk&&!!N,rt=z?qo(z.ai):Qn,un=pt&&!Ta(A,rt),Kt=()=>{if(!ck()){pe(!1),Rt(!0);return}zt()},Yt=()=>{W&&(dk(),Rt(!1),zt())},zt=async()=>{u("publish"),m(""),ee(null);let de=!1,Ze="";try{let je=await tr("connect:publish",{dir:a,name:C.trim(),slug:H.trim(),entry:Z});if(!je?.ok){if(!ge.current)return;if(je?.code==="not_logged_in"){d("login");return}m(je?.detail||t("err.generic"));return}let tn=je.slug||H.trim();if(un){let ct=await Pa(tn,A,N);ct.ok?de=!0:Ze=t("pub.aiSaveFailed",{reason:ht(bt(ct),t)})}if(!ge.current)return;ee(je.url||null),Me.current=tn,await ot({resetAi:de}),Ze&&ge.current&&m(Ze)}catch(je){ge.current&&m(gt(je))}finally{ge.current&&u("")}},at=async()=>{if(z){if(!he){qe(!0);return}u("unpublish"),m(""),qe(!1);try{let de=await tr("connect:unpublish",z.slug);if(!ge.current)return;if(!de?.ok){m(de?.detail||t("err.generic"));return}ee(null),I(null),await ot()}catch(de){ge.current&&m(gt(de))}finally{ge.current&&u("")}}},Vt=async()=>{if(!(!z||!Qe.trim())){u("listing"),m("");try{let de=await tr("connect:listingApply",{slug:z.slug,summary:Qe.trim()});if(!ge.current)return;if(!de?.ok){m(de?.detail||t("err.generic"));return}De(!1),await ot()}catch(de){ge.current&&m(gt(de))}finally{ge.current&&u("")}}},en=async()=>{if(z){u("listing"),m("");try{let de=await tr("connect:listingWithdraw",z.slug);if(!ge.current)return;if(!de?.ok){m(de?.detail||t("err.generic"));return}await ot()}catch(de){ge.current&&m(gt(de))}finally{ge.current&&u("")}}},ft=G||(z?.publicUrl&&/^https?:\/\//i.test(z.publicUrl)?z.publicUrl:null)||(z&&g&&y?`${g}/apps/${y}/${z.slug}/`:null),et=g?`${g}/legal/?slug=terms`:"",Ot=vm.test(H)&&H.length>=3,pn=c==="form"&&!f&&Ot&&!!C.trim()&&s.length>0&&s.includes(Z),yt=async()=>{ft&&await Uo(ft)&&(ae(!0),setTimeout(()=>{ge.current&&ae(!1)},1500))},bn=de=>{if(!ft)return;let Ze=Q().openExternal;Ze&&(de?.preventDefault(),Ze(ft)?.catch(()=>{}))},it=z?.listing_status||null,Tt=[t("pub.anyone")];return z&&typeof z.likes=="number"&&Tt.push(t("pub.likes",{n:we(z.likes,o)})),z&&typeof z.favorites=="number"&&Tt.push(t("pub.saves",{n:we(z.favorites,o)})),n("div",{class:"fx-pub-overlay",onMouseDown:de=>{de.target===de.currentTarget&&!f&&l()},children:[n("style",{children:Ma}),n("div",{class:"fx-pub-card",role:"dialog","aria-modal":"true","aria-label":Ye?t("pub.titleTerms"):t("pub.title",{name:z?.name||i}),lang:o==="zh"?"zh-CN":"en","data-fx-publish":!0,children:[n("div",{class:"fx-pub-head",children:[n(B,{name:Ye?"shield":"rocket",size:15}),n("span",{class:"fx-pub-title",children:Ye?t("pub.titleTerms"):t("pub.title",{name:z?.name||i})}),n("button",{type:"button",class:"icon-btn","aria-label":t("pub.close"),title:t("pub.close"),disabled:f==="publish",onClick:l,children:n(B,{name:"x",size:15})})]}),Ye?n("div",{children:[n("p",{class:"fx-pub-desc",children:t("pub.termsIntro")}),n("ul",{class:"fx-pub-terms-list",children:[n("li",{children:t("pub.termsLi1")}),n("li",{children:t("pub.termsLi2")}),n("li",{children:t("pub.termsLi3")})]}),n("p",{class:"fx-pub-desc",children:t("pub.termsManage")}),n("label",{class:"fx-pub-agree",children:[n("input",{type:"checkbox",checked:W,onChange:de=>pe(de.currentTarget.checked)}),n("span",{children:[t("pub.termsAgreePre"),et?n("a",{href:et,target:"_blank",rel:"noreferrer",onClick:de=>{let Ze=Q().openExternal;Ze&&(de.preventDefault(),Ze(et)?.catch(()=>{}))},children:t("pub.termsGuidelines")}):n("strong",{children:t("pub.termsGuidelines")})]})]}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>Rt(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!W,onClick:Yt,children:t("pub.termsConfirm")})]})]}):n(R,{children:[n("p",{class:"fx-pub-desc",children:t(z?"pub.descPublished":"pub.desc")}),c==="loading"&&n("div",{class:"fx-pub-busy","aria-busy":"true",children:n(jt,{size:15})}),c==="login"&&n("div",{class:"fx-pub-login",children:[n("span",{children:t("pub.needLogin")}),n("button",{type:"button",class:"fx-pub-primary",disabled:f==="login",onClick:()=>void Ce(),children:f==="login"?n(R,{children:[n(jt,{size:13}),t("pub.loginWaiting")]}):t("pub.login")})]}),c==="form"&&n(R,{children:[ft&&n(R,{children:[n("div",{class:"fx-pub-url",children:[n("a",{href:ft,target:"_blank",rel:"noreferrer",title:t("pub.open"),onClick:de=>bn(de),children:[n(B,{name:"globe",size:13}),ft.replace(/^https?:\/\//,"")]}),n("button",{type:"button",class:"icon-btn","aria-label":t(U?"pub.copied":"pub.copy"),title:t(U?"pub.copied":"pub.copy"),onClick:()=>void yt(),children:n(B,{name:U?"check":"copy",size:13})}),!!Q().openExternal&&n("button",{type:"button",class:"icon-btn","aria-label":t("pub.open"),title:t("pub.open"),onClick:()=>bn(),children:n(B,{name:"external",size:13})})]}),n("div",{class:"fx-pub-hint","data-fx-reach":!0,children:Tt.join(" \xB7 ")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-name",children:t("pub.name")}),n("input",{id:"fx-pub-name",class:"fx-pub-input",value:C,maxLength:80,onInput:de=>D(de.currentTarget.value)})]}),!z&&n(R,{children:[n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-slug",children:t("pub.slug")}),n("input",{id:"fx-pub-slug",class:"fx-pub-input fx-pub-mono",value:H,maxLength:32,spellcheck:!1,onInput:de=>{E(de.currentTarget.value.toLowerCase()),m("")}})]}),!Ot&&H!==""&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("pub.slugHint")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-entry",children:t("pub.entry")}),s.length>0?n("select",{id:"fx-pub-entry",class:"fx-pub-select",value:Z,onChange:de=>S(de.currentTarget.value),children:s.map(de=>n("option",{value:de,children:de},de))}):n("span",{class:"fx-pub-hint fx-pub-warn",children:t("pub.noEntry")})]}),!z&&x&&n("div",{class:"fx-pub-hint",children:t("pub.slots",{used:x.used,limit:x.limit,tier:x.tier})}),!z&&n("div",{class:"fx-pub-hint",children:t("pub.hint")}),pt&&n(Ia,{draft:A,onChange:M,ap:N,methods:F.sdkMethods,unpublished:!z,cooldownUntil:z?.ai?.cooldownUntil,disabled:!!f,onBuy:()=>wr(r)}),z&&n("div",{class:"fx-pub-listing",children:[n("div",{class:"fx-pub-listing-row",children:[n(B,{name:"store",size:13}),n("span",{class:"fx-pub-listing-title",children:t("pub.listingTitle")}),n("span",{class:`fx-pub-lst is-${it||"none"}`,children:t(it==="pending"?"pub.listingPending":it==="approved"?"pub.listingApproved":it==="rejected"?"pub.listingRejected":"pub.listingNone")}),n("span",{class:"fx-pub-spacer"}),!it&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>{ye(""),De(!0)},children:t("web.listingApply")}),it==="rejected"&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>{ye(z.listing_summary||""),De(!0)},children:t("web.listingReapply")}),(it==="pending"||it==="approved")&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!f,onClick:()=>void en(),children:f==="listing"?n(jt,{}):t(it==="approved"?"web.listingDelist":"web.listingWithdraw")})]}),it==="rejected"&&z.listing_note&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("web.listingNote",{note:z.listing_note})}),me?n("div",{children:[n("textarea",{class:"fx-pub-input",rows:2,maxLength:300,autoFocus:!0,placeholder:t("web.listingSummaryPh"),value:Qe,onInput:de=>ye(de.currentTarget.value)}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>De(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Qe.trim()||!!f,onClick:()=>void Vt(),children:f==="listing"?n(jt,{size:13}):t("web.listingSubmit")})]})]}):!it&&n("div",{class:"fx-pub-hint",children:t("pub.listingHint")})]}),p&&n("div",{class:"fx-pub-err",role:"alert",children:p}),n("div",{class:"fx-pub-actions",children:[z&&n("button",{type:"button",class:"fx-pub-danger",disabled:!!f,onClick:()=>void at(),children:f==="unpublish"?n(jt,{size:13}):t(he?"web.unpublishConfirm":"web.unpublish")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-ghost",disabled:f==="publish",onClick:l,children:t("pub.close")}),n("button",{type:"button",class:"fx-pub-primary",disabled:!pn,onClick:()=>Kt(),children:f==="publish"?n(R,{children:[n(jt,{size:13}),t("pub.publishing")]}):z?n(R,{children:[n(B,{name:"refresh",size:13}),t(un?"pub.saveUpdate":"pub.update")]}):n(R,{children:[n(B,{name:"rocket",size:13}),t("pub.publish")]})})]})]})]})]})]})}var pk="connect.publish";function fk(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.root!="string"||!t.root.trim())return null;let o=t.root,r=o.replace(/[\\/]+$/,"").split(/[\\/]/).pop()||o;return{root:o,projectName:typeof t.projectName=="string"&&t.projectName.trim()?t.projectName:r,entry:typeof t.entry=="string"&&t.entry?t.entry:null,htmlFiles:Array.isArray(t.htmlFiles)?t.htmlFiles.filter(a=>typeof a=="string"&&!!a):[]}}function mk(e,t,o){return o.current?.close(),new Promise(r=>{let a=document.createElement("div");a.className="fx-pub-root",document.body.appendChild(a);let i=!1,s=()=>{i||(i=!0,o.current===l&&(o.current=null),Le(null,a),a.remove(),r())},l={close:s};o.current=l,Le(n(Ms,{ctx:e,children:n(xm,{...t,onClose:s})}),a)})}function km(e,t=window){let o=ln(t?.tangu);if(!e||typeof e.registerCommand!="function"||!o?.cloudInvoke||!cn(o)||wn(o)||o.mobile||o.unitPage)return null;let r={current:null};return e.registerCommand({id:pk,title:()=>ze(Oe(e.getLocale?.()),"pub.cmd"),keywords:"publish web page link connect forsion \u53D1\u5E03 \u7F51\u9875 \u94FE\u63A5 \u4E0A\u7EBF",run:a=>{let i=fk(a);if(!i){e.app?.notify?.(ze(Oe(e.getLocale?.()),"pub.cmdNoArgs"));return}return mk(e,i,r)}}),{dispose:()=>r.current?.close()}}var wm;if(typeof ctx<"u"){let e=Yf(ctx),t=Zf(ctx);dp(ctx),cp(ctx),nm(ctx),bm(ctx);let o=km(ctx),r=Yc(ctx),a=Ep(ctx),i=_f(ctx),s=qf(ctx),l=If(ctx);(r||a||i||s||e||l||o||t)&&(wm=()=>{t?.(),r?.dispose(),a?.dispose(),i?.dispose(),s?.dispose(),l?.dispose(),o?.dispose(),e?.()})}return Bm(gk);})();
|
|
1797
1800
|
return __fxExtend.dispose;
|