@agent-cms/agentcms 0.1.0 → 0.1.1

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.
Files changed (26) hide show
  1. package/README.md +2 -2
  2. package/changelog.json +11 -0
  3. package/dist/admin/admin-files.json +4 -4
  4. package/dist/admin/assets/{CodeEditor-DcFzGUt8.js → CodeEditor-Wx1WlF3h.js} +1 -1
  5. package/dist/admin/assets/{index-CLZ1gQZl.js → index-DFVZw8E0.js} +23 -23
  6. package/dist/admin/assets/{sql-wasm-CYl3LXH_.js → sql-wasm-Bfkbn6Oa.js} +1 -1
  7. package/dist/admin/index.html +2 -2
  8. package/dist/admin/plugins/core-seo/bundle.js +2 -2
  9. package/dist/admin/plugins/flexweg-search/bundle.js +15 -15
  10. package/dist/admin/themes/marketplace-core/bundle.js +1 -1
  11. package/dist/agent/agentcms.mjs +7 -7
  12. package/dist/agent/chunks/{hosting-D_uj-Mt1.mjs → hosting-BftlDdsL.mjs} +3 -3
  13. package/dist/agent/chunks/{index-CrvEoyi0.mjs → index-BG05qslv.mjs} +29 -29
  14. package/dist/agent/chunks/{install-DkCCcKAO.mjs → install-DnmgOT3F.mjs} +4 -4
  15. package/dist/agent/chunks/{plan-EYKegfhp.mjs → plan-BrM8ztEp.mjs} +2 -2
  16. package/dist/agent/chunks/{registry-lkfb_E9O.mjs → registry-C9TSnZ77.mjs} +6 -6
  17. package/dist/agent/chunks/{siteAdd-BqcYt8nu.mjs → siteAdd-BcXhN9fk.mjs} +4 -4
  18. package/dist/version.json +1 -1
  19. package/package.json +2 -2
  20. package/plugin/.claude-plugin/plugin.json +1 -1
  21. package/plugin/skills/agentcms-install/SKILL.md +15 -15
  22. package/plugin/skills/agentcms-install/references/flexweg.md +1 -1
  23. package/plugin/skills/agentcms-install/references/github.md +2 -2
  24. package/plugin/skills/agentcms-install/references/gitlab.md +1 -1
  25. package/plugin/skills/agentcms-install/references/s3.md +2 -2
  26. package/plugin/skills/agentcms-manage/SKILL.md +11 -11
@@ -1,2 +1,2 @@
1
- var nn=Object.defineProperty;var on=(S,U,R)=>U in S?nn(S,U,{enumerable:!0,configurable:!0,writable:!0,value:R}):S[U]=R;var Z=(S,U,R)=>on(S,typeof U!="symbol"?U+"":U,R);import{g as sn,a as un}from"./index-CLZ1gQZl.js";function an(S,U){for(var R=0;R<U.length;R++){const C=U[R];if(typeof C!="string"&&!Array.isArray(C)){for(const H in C)if(H!=="default"&&!(H in S)){const ae=Object.getOwnPropertyDescriptor(C,H);ae&&Object.defineProperty(S,H,ae.get?ae:{enumerable:!0,get:()=>C[H]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var ct={exports:{}};const ln={},fn=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),ir=sn(fn);var or;function hn(){return or||(or=1,(function(S,U){var R=void 0,C=function(H){return R||(R=new Promise(function(ae,ur){var F=typeof H<"u"?H:{},mt=F.onAbort;F.onAbort=function(e){ur(new Error(e)),mt&&mt(e)},F.postRun=F.postRun||[],F.postRun.push(function(){ae(F)}),S=void 0;var o;o||(o=typeof F<"u"?F:{});var ar=typeof window=="object",je=typeof WorkerGlobalScope<"u",_e=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";o.onRuntimeInitialized=function(){function e(s,l){switch(typeof l){case"boolean":tn(s,l?1:0);break;case"number":Kr(s,l);break;case"string":Jr(s,l,-1,-1);break;case"object":if(l===null)er(s);else if(l.length!=null){var h=Te(l,Pe);en(s,h,l.length,-1),Ue(h)}else De(s,"Wrong API use : tried to return a value of an unknown type ("+l+").",-1);break;default:er(s)}}function t(s,l){for(var h=[],p=0;p<s;p+=1){var d=Q(l+4*p,"i32"),v=Vr(d);if(v===1||v===2)d=Zr(d);else if(v===3)d=Yr(d);else if(v===4){v=d,d=Xr(v),v=Gr(v);for(var j=new Uint8Array(d),T=0;T<d;T+=1)j[T]=N[v+T];d=j}else d=null;h.push(d)}return h}function r(s,l){this.Qa=s,this.db=l,this.Oa=1,this.lb=[]}function n(s,l){if(this.db=l,l=ce(s)+1,this.eb=lt(l),this.eb===null)throw Error("Unable to allocate memory for the SQL string");$(s,y,this.eb,l),this.kb=this.eb,this.Za=this.pb=null}function i(s){if(this.filename="dbfile_"+(4294967295*Math.random()>>>0),s!=null){var l=this.filename,h="/",p=l;if(h&&(h=typeof h=="string"?h:Ze(h),p=l?Xe(h+"/"+l):h),l=Mt(!0,!0),p=qr(p,l),s){if(typeof s=="string"){h=Array(s.length);for(var d=0,v=s.length;d<v;++d)h[d]=s.charCodeAt(d);s=h}xe(p,l|146),h=ue(p,577),Bt(h,s,0,s.length,0),nt(h),xe(p,l)}}this.handleError(c(this.filename,u)),this.db=Q(u,"i32"),rr(this.db),this.fb={},this.Sa={}}var u=G(4),a=o.cwrap,c=a("sqlite3_open","number",["string","number"]),_=a("sqlite3_close_v2","number",["number"]),b=a("sqlite3_exec","number",["number","string","number","number","number"]),A=a("sqlite3_changes","number",["number"]),O=a("sqlite3_prepare_v2","number",["number","string","number","number","number"]),Yt=a("sqlite3_sql","string",["number"]),Or=a("sqlite3_normalized_sql","string",["number"]),Gt=a("sqlite3_prepare_v2","number",["number","number","number","number","number"]),Rr=a("sqlite3_bind_text","number",["number","number","number","number","number"]),Zt=a("sqlite3_bind_blob","number",["number","number","number","number","number"]),Lr=a("sqlite3_bind_double","number",["number","number","number"]),Pr=a("sqlite3_bind_int","number",["number","number","number"]),Tr=a("sqlite3_bind_parameter_index","number",["number","string"]),Ur=a("sqlite3_step","number",["number"]),Dr=a("sqlite3_errmsg","string",["number"]),jr=a("sqlite3_column_count","number",["number"]),Wr=a("sqlite3_data_count","number",["number"]),zr=a("sqlite3_column_double","number",["number","number"]),Kt=a("sqlite3_column_text","string",["number","number"]),Fr=a("sqlite3_column_blob","number",["number","number"]),Ir=a("sqlite3_column_bytes","number",["number","number"]),Qr=a("sqlite3_column_type","number",["number","number"]),$r=a("sqlite3_column_name","string",["number","number"]),Br=a("sqlite3_reset","number",["number"]),Cr=a("sqlite3_clear_bindings","number",["number"]),Hr=a("sqlite3_finalize","number",["number"]),Jt=a("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Vr=a("sqlite3_value_type","number",["number"]),Xr=a("sqlite3_value_bytes","number",["number"]),Yr=a("sqlite3_value_text","string",["number"]),Gr=a("sqlite3_value_blob","number",["number"]),Zr=a("sqlite3_value_double","number",["number"]),Kr=a("sqlite3_result_double","",["number","number"]),er=a("sqlite3_result_null","",["number"]),Jr=a("sqlite3_result_text","",["number","string","number","number"]),en=a("sqlite3_result_blob","",["number","number","number","number"]),tn=a("sqlite3_result_int","",["number","number"]),De=a("sqlite3_result_error","",["number","string","number"]),tr=a("sqlite3_aggregate_context","number",["number","number"]),rr=a("RegisterExtensionFunctions","number",["number"]),nr=a("sqlite3_update_hook","number",["number","number","number"]);r.prototype.bind=function(s){if(!this.Qa)throw"Statement closed";return this.reset(),Array.isArray(s)?this.Cb(s):s!=null&&typeof s=="object"?this.Db(s):!0},r.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Oa=1;var s=Ur(this.Qa);switch(s){case 100:return!0;case 101:return!1;default:throw this.db.handleError(s)}},r.prototype.wb=function(s){return s==null&&(s=this.Oa,this.Oa+=1),zr(this.Qa,s)},r.prototype.Gb=function(s){if(s==null&&(s=this.Oa,this.Oa+=1),s=Kt(this.Qa,s),typeof BigInt!="function")throw Error("BigInt is not supported");return BigInt(s)},r.prototype.Hb=function(s){return s==null&&(s=this.Oa,this.Oa+=1),Kt(this.Qa,s)},r.prototype.getBlob=function(s){s==null&&(s=this.Oa,this.Oa+=1);var l=Ir(this.Qa,s);s=Fr(this.Qa,s);for(var h=new Uint8Array(l),p=0;p<l;p+=1)h[p]=N[s+p];return h},r.prototype.get=function(s,l){l=l||{},s!=null&&this.bind(s)&&this.step(),s=[];for(var h=Wr(this.Qa),p=0;p<h;p+=1)switch(Qr(this.Qa,p)){case 1:var d=l.useBigInt?this.Gb(p):this.wb(p);s.push(d);break;case 2:s.push(this.wb(p));break;case 3:s.push(this.Hb(p));break;case 4:s.push(this.getBlob(p));break;default:s.push(null)}return s},r.prototype.getColumnNames=function(){for(var s=[],l=jr(this.Qa),h=0;h<l;h+=1)s.push($r(this.Qa,h));return s},r.prototype.getAsObject=function(s,l){s=this.get(s,l),l=this.getColumnNames();for(var h={},p=0;p<l.length;p+=1)h[l[p]]=s[p];return h},r.prototype.getSQL=function(){return Yt(this.Qa)},r.prototype.getNormalizedSQL=function(){return Or(this.Qa)},r.prototype.run=function(s){return s!=null&&this.bind(s),this.step(),this.reset()},r.prototype.sb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1),s=At(s);var h=Te(s,Pe);this.lb.push(h),this.db.handleError(Rr(this.Qa,l,h,s.length-1,0))},r.prototype.Bb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1);var h=Te(s,Pe);this.lb.push(h),this.db.handleError(Zt(this.Qa,l,h,s.length,0))},r.prototype.rb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1),this.db.handleError((s===(s|0)?Pr:Lr)(this.Qa,l,s))},r.prototype.Eb=function(s){s==null&&(s=this.Oa,this.Oa+=1),Zt(this.Qa,s,0,0,0)},r.prototype.tb=function(s,l){switch(l==null&&(l=this.Oa,this.Oa+=1),typeof s){case"string":this.sb(s,l);return;case"number":this.rb(s,l);return;case"bigint":this.sb(s.toString(),l);return;case"boolean":this.rb(s+0,l);return;case"object":if(s===null){this.Eb(l);return}if(s.length!=null){this.Bb(s,l);return}}throw"Wrong API use : tried to bind a value of an unknown type ("+s+")."},r.prototype.Db=function(s){var l=this;return Object.keys(s).forEach(function(h){var p=Tr(l.Qa,h);p!==0&&l.tb(s[h],p)}),!0},r.prototype.Cb=function(s){for(var l=0;l<s.length;l+=1)this.tb(s[l],l+1);return!0},r.prototype.reset=function(){return this.freemem(),Cr(this.Qa)===0&&Br(this.Qa)===0},r.prototype.freemem=function(){for(var s;(s=this.lb.pop())!==void 0;)Ue(s)},r.prototype.free=function(){this.freemem();var s=Hr(this.Qa)===0;return delete this.db.fb[this.Qa],this.Qa=0,s},n.prototype.next=function(){if(this.eb===null)return{done:!0};if(this.Za!==null&&(this.Za.free(),this.Za=null),!this.db.db)throw this.mb(),Error("Database closed");var s=be(),l=G(4);he(u),he(l);try{this.db.handleError(Gt(this.db.db,this.kb,-1,u,l)),this.kb=Q(l,"i32");var h=Q(u,"i32");return h===0?(this.mb(),{done:!0}):(this.Za=new r(h,this.db),this.db.fb[h]=this.Za,{value:this.Za,done:!1})}catch(p){throw this.pb=Ve(this.kb),this.mb(),p}finally{we(s)}},n.prototype.mb=function(){Ue(this.eb),this.eb=null},n.prototype.getRemainingSQL=function(){return this.pb!==null?this.pb:Ve(this.kb)},typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"&&(n.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(s,l){if(!this.db)throw"Database closed";if(l){s=this.prepare(s,l);try{s.step()}finally{s.free()}}else this.handleError(b(this.db,s,0,0,u));return this},i.prototype.exec=function(s,l,h){if(!this.db)throw"Database closed";var p=be(),d=null;try{var v=ut(s),j=G(4);for(s=[];Q(v,"i8")!==0;){he(u),he(j),this.handleError(Gt(this.db,v,-1,u,j));var T=Q(u,"i32");if(v=Q(j,"i32"),T!==0){var L=null;for(d=new r(T,this),l!=null&&d.bind(l);d.step();)L===null&&(L={columns:d.getColumnNames(),values:[]},s.push(L)),L.values.push(d.get(null,h));d.free()}}return s}catch(W){throw d&&d.free(),W}finally{we(p)}},i.prototype.each=function(s,l,h,p,d){typeof l=="function"&&(p=h,h=l,l=void 0),s=this.prepare(s,l);try{for(;s.step();)h(s.getAsObject(null,d))}finally{s.free()}if(typeof p=="function")return p()},i.prototype.prepare=function(s,l){if(he(u),this.handleError(O(this.db,s,-1,u,0)),s=Q(u,"i32"),s===0)throw"Nothing to prepare";var h=new r(s,this);return l!=null&&h.bind(l),this.fb[s]=h},i.prototype.iterateStatements=function(s){return new n(s,this)},i.prototype.export=function(){Object.values(this.fb).forEach(function(l){l.free()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.handleError(_(this.db));var s=Ar(this.filename);return this.handleError(c(this.filename,u)),this.db=Q(u,"i32"),rr(this.db),s},i.prototype.close=function(){this.db!==null&&(Object.values(this.fb).forEach(function(s){s.free()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.Ya&&(Y(this.Ya),this.Ya=void 0),this.handleError(_(this.db)),zt("/"+this.filename),this.db=null)},i.prototype.handleError=function(s){if(s===0)return null;throw s=Dr(this.db),Error(s)},i.prototype.getRowsModified=function(){return A(this.db)},i.prototype.create_function=function(s,l){Object.prototype.hasOwnProperty.call(this.Sa,s)&&(Y(this.Sa[s]),delete this.Sa[s]);var h=de(function(p,d,v){d=t(d,v);try{var j=l.apply(null,d)}catch(T){De(p,T,-1);return}e(p,j)},"viii");return this.Sa[s]=h,this.handleError(Jt(this.db,s,l.length,1,0,h,0,0,0)),this},i.prototype.create_aggregate=function(s,l){var h=l.init||function(){return null},p=l.finalize||function(L){return L},d=l.step;if(!d)throw"An aggregate function must have a step function in "+s;var v={};Object.hasOwnProperty.call(this.Sa,s)&&(Y(this.Sa[s]),delete this.Sa[s]),l=s+"__finalize",Object.hasOwnProperty.call(this.Sa,l)&&(Y(this.Sa[l]),delete this.Sa[l]);var j=de(function(L,W,ht){var re=tr(L,1);Object.hasOwnProperty.call(v,re)||(v[re]=h()),W=t(W,ht),W=[v[re]].concat(W);try{v[re]=d.apply(null,W)}catch(rn){delete v[re],De(L,rn,-1)}},"viii"),T=de(function(L){var W=tr(L,1);try{var ht=p(v[W])}catch(re){delete v[W],De(L,re,-1);return}e(L,ht),delete v[W]},"vi");return this.Sa[s]=j,this.Sa[l]=T,this.handleError(Jt(this.db,s,d.length-1,1,0,0,j,T,0)),this},i.prototype.updateHook=function(s){this.Ya&&(nr(this.db,0,0),Y(this.Ya),this.Ya=void 0),s&&(this.Ya=de(function(l,h,p,d,v){switch(h){case 18:l="insert";break;case 23:l="update";break;case 9:l="delete";break;default:throw"unknown operationCode in updateHook callback: "+h}if(p=p?q(y,p):"",d=d?q(y,d):"",v>Number.MAX_SAFE_INTEGER)throw"rowId too big to fit inside a Number";s(l,p,d,Number(v))},"viiiij"),nr(this.db,this.Ya,0))},o.Database=i};var pt={...o},We="./this.program",ye=(e,t)=>{throw t},I="",ze,ve;if(_e){var Fe=ir;I=__dirname+"/",ve=e=>(e=Ae(e)?new URL(e):e,Fe.readFileSync(e)),ze=async e=>(e=Ae(e)?new URL(e):e,Fe.readFileSync(e,void 0)),!o.thisProgram&&1<process.argv.length&&(We=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),S.exports=o,ye=(e,t)=>{throw process.exitCode=e,t}}else(ar||je)&&(je?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),I=I.startsWith("blob:")?"":I.slice(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),je&&(ve=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),ze=async e=>{if(Ae(e))return new Promise((r,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{i.status==200||i.status==0&&i.response?r(i.response):n(i.status)},i.onerror=n,i.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)});var dt=o.print||console.log.bind(console),ne=o.printErr||console.error.bind(console);Object.assign(o,pt),pt=null,o.thisProgram&&(We=o.thisProgram);var ge=o.wasmBinary,Ee,qe=!1,Ie,N,y,le,g,k,Qe,D,$e,Ae=e=>e.startsWith("file://");function wt(){var e=Ee.buffer;o.HEAP8=N=new Int8Array(e),o.HEAP16=le=new Int16Array(e),o.HEAPU8=y=new Uint8Array(e),o.HEAPU16=new Uint16Array(e),o.HEAP32=g=new Int32Array(e),o.HEAPU32=k=new Uint32Array(e),o.HEAPF32=Qe=new Float32Array(e),o.HEAPF64=$e=new Float64Array(e),o.HEAP64=D=new BigInt64Array(e),o.HEAPU64=new BigUint64Array(e)}var K=0,fe=null;function ie(e){var t;throw(t=o.onAbort)==null||t.call(o,e),e="Aborted("+e+")",ne(e),qe=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}var Be;async function lr(e){if(!ge)try{var t=await ze(e);return new Uint8Array(t)}catch{}if(e==Be&&ge)e=new Uint8Array(ge);else if(ve)e=ve(e);else throw"both async and sync fetching of the wasm failed";return e}async function fr(e,t){try{var r=await lr(e);return await WebAssembly.instantiate(r,t)}catch(n){ne(`failed to asynchronously prepare wasm: ${n}`),ie(n)}}async function hr(e){var t=Be;if(!ge&&typeof WebAssembly.instantiateStreaming=="function"&&!Ae(t)&&!_e)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(n){ne(`wasm streaming compile failed: ${n}`),ne("falling back to ArrayBuffer instantiation")}return fr(t,e)}class Ce{constructor(t){Z(this,"name","ExitStatus");this.message=`Program terminated with exit(${t})`,this.status=t}}var bt=e=>{for(;0<e.length;)e.shift()(o)},_t=[],yt=[],cr=()=>{var e=o.preRun.shift();yt.unshift(e)};function Q(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":return N[e];case"i8":return N[e];case"i16":return le[e>>1];case"i32":return g[e>>2];case"i64":return D[e>>3];case"float":return Qe[e>>2];case"double":return $e[e>>3];case"*":return k[e>>2];default:ie(`invalid type for getValue: ${t}`)}}var He=o.noExitRuntime||!0;function he(e){var t="i32";switch(t.endsWith("*")&&(t="*"),t){case"i1":N[e]=0;break;case"i8":N[e]=0;break;case"i16":le[e>>1]=0;break;case"i32":g[e>>2]=0;break;case"i64":D[e>>3]=BigInt(0);break;case"float":Qe[e>>2]=0;break;case"double":$e[e>>3]=0;break;case"*":k[e>>2]=0;break;default:ie(`invalid type for setValue: ${t}`)}}var vt=typeof TextDecoder<"u"?new TextDecoder:void 0,q=(e,t=0,r=NaN)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&vt)return vt.decode(e.subarray(t,r));for(n="";t<r;){var i=e[t++];if(i&128){var u=e[t++]&63;if((i&224)==192)n+=String.fromCharCode((i&31)<<6|u);else{var a=e[t++]&63;i=(i&240)==224?(i&15)<<12|u<<6|a:(i&7)<<18|u<<12|a<<6|e[t++]&63,65536>i?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|i&1023))}}else n+=String.fromCharCode(i)}return n},Ve=(e,t)=>e?q(y,e,t):"",gt=(e,t)=>{for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},Xe=e=>{var t=e.charAt(0)==="/",r=e.slice(-1)==="/";return(e=gt(e.split("/").filter(n=>!!n),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},Et=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?".":(t&&(t=t.slice(0,-1)),e+t)},ke=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],mr=()=>{if(_e){var e=ir;return t=>e.randomFillSync(t)}return t=>crypto.getRandomValues(t)},qt=e=>{(qt=mr())(e)},pr=(...e)=>{for(var t="",r=!1,n=e.length-1;-1<=n&&!r;n--){if(r=0<=n?e[n]:"/",typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,r=r.charAt(0)==="/"}return t=gt(t.split("/").filter(i=>!!i),!r).join("/"),(r?"/":"")+t||"."},Ye=[],ce=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},$=(e,t,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var u=0;u<e.length;++u){var a=e.charCodeAt(u);if(55296<=a&&57343>=a){var c=e.charCodeAt(++u);a=65536+((a&1023)<<10)|c&1023}if(127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|a&63}}return t[r]=0,r-i},At=(e,t)=>{var r=Array(ce(e)+1);return e=$(e,r,0,r.length),t&&(r.length=e),r},kt=[];function Nt(e,t){kt[e]={input:[],output:[],cb:t},tt(e,dr)}var dr={open(e){var t=kt[e.node.rdev];if(!t)throw new f(43);e.tty=t,e.seekable=!1},close(e){e.tty.cb.fsync(e.tty)},fsync(e){e.tty.cb.fsync(e.tty)},read(e,t,r,n){if(!e.tty||!e.tty.cb.xb)throw new f(60);for(var i=0,u=0;u<n;u++){try{var a=e.tty.cb.xb(e.tty)}catch{throw new f(29)}if(a===void 0&&i===0)throw new f(6);if(a==null)break;i++,t[r+u]=a}return i&&(e.node.atime=Date.now()),i},write(e,t,r,n){if(!e.tty||!e.tty.cb.qb)throw new f(60);try{for(var i=0;i<n;i++)e.tty.cb.qb(e.tty,t[r+i])}catch{throw new f(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},wr={xb(){e:{if(!Ye.length){var e=null;if(_e){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=Fe.readSync(n,t,0,256)}catch(i){if(i.toString().includes("EOF"))r=0;else throw i}0<r&&(e=t.slice(0,r).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
1
+ var nn=Object.defineProperty;var on=(S,U,R)=>U in S?nn(S,U,{enumerable:!0,configurable:!0,writable:!0,value:R}):S[U]=R;var Z=(S,U,R)=>on(S,typeof U!="symbol"?U+"":U,R);import{g as sn,a as un}from"./index-DFVZw8E0.js";function an(S,U){for(var R=0;R<U.length;R++){const C=U[R];if(typeof C!="string"&&!Array.isArray(C)){for(const H in C)if(H!=="default"&&!(H in S)){const ae=Object.getOwnPropertyDescriptor(C,H);ae&&Object.defineProperty(S,H,ae.get?ae:{enumerable:!0,get:()=>C[H]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}var ct={exports:{}};const ln={},fn=Object.freeze(Object.defineProperty({__proto__:null,default:ln},Symbol.toStringTag,{value:"Module"})),ir=sn(fn);var or;function hn(){return or||(or=1,(function(S,U){var R=void 0,C=function(H){return R||(R=new Promise(function(ae,ur){var F=typeof H<"u"?H:{},mt=F.onAbort;F.onAbort=function(e){ur(new Error(e)),mt&&mt(e)},F.postRun=F.postRun||[],F.postRun.push(function(){ae(F)}),S=void 0;var o;o||(o=typeof F<"u"?F:{});var ar=typeof window=="object",je=typeof WorkerGlobalScope<"u",_e=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer";o.onRuntimeInitialized=function(){function e(s,l){switch(typeof l){case"boolean":tn(s,l?1:0);break;case"number":Kr(s,l);break;case"string":Jr(s,l,-1,-1);break;case"object":if(l===null)er(s);else if(l.length!=null){var h=Te(l,Pe);en(s,h,l.length,-1),Ue(h)}else De(s,"Wrong API use : tried to return a value of an unknown type ("+l+").",-1);break;default:er(s)}}function t(s,l){for(var h=[],p=0;p<s;p+=1){var d=Q(l+4*p,"i32"),v=Vr(d);if(v===1||v===2)d=Zr(d);else if(v===3)d=Yr(d);else if(v===4){v=d,d=Xr(v),v=Gr(v);for(var j=new Uint8Array(d),T=0;T<d;T+=1)j[T]=N[v+T];d=j}else d=null;h.push(d)}return h}function r(s,l){this.Qa=s,this.db=l,this.Oa=1,this.lb=[]}function n(s,l){if(this.db=l,l=ce(s)+1,this.eb=lt(l),this.eb===null)throw Error("Unable to allocate memory for the SQL string");$(s,y,this.eb,l),this.kb=this.eb,this.Za=this.pb=null}function i(s){if(this.filename="dbfile_"+(4294967295*Math.random()>>>0),s!=null){var l=this.filename,h="/",p=l;if(h&&(h=typeof h=="string"?h:Ze(h),p=l?Xe(h+"/"+l):h),l=Mt(!0,!0),p=qr(p,l),s){if(typeof s=="string"){h=Array(s.length);for(var d=0,v=s.length;d<v;++d)h[d]=s.charCodeAt(d);s=h}xe(p,l|146),h=ue(p,577),Bt(h,s,0,s.length,0),nt(h),xe(p,l)}}this.handleError(c(this.filename,u)),this.db=Q(u,"i32"),rr(this.db),this.fb={},this.Sa={}}var u=G(4),a=o.cwrap,c=a("sqlite3_open","number",["string","number"]),_=a("sqlite3_close_v2","number",["number"]),b=a("sqlite3_exec","number",["number","string","number","number","number"]),A=a("sqlite3_changes","number",["number"]),O=a("sqlite3_prepare_v2","number",["number","string","number","number","number"]),Yt=a("sqlite3_sql","string",["number"]),Or=a("sqlite3_normalized_sql","string",["number"]),Gt=a("sqlite3_prepare_v2","number",["number","number","number","number","number"]),Rr=a("sqlite3_bind_text","number",["number","number","number","number","number"]),Zt=a("sqlite3_bind_blob","number",["number","number","number","number","number"]),Lr=a("sqlite3_bind_double","number",["number","number","number"]),Pr=a("sqlite3_bind_int","number",["number","number","number"]),Tr=a("sqlite3_bind_parameter_index","number",["number","string"]),Ur=a("sqlite3_step","number",["number"]),Dr=a("sqlite3_errmsg","string",["number"]),jr=a("sqlite3_column_count","number",["number"]),Wr=a("sqlite3_data_count","number",["number"]),zr=a("sqlite3_column_double","number",["number","number"]),Kt=a("sqlite3_column_text","string",["number","number"]),Fr=a("sqlite3_column_blob","number",["number","number"]),Ir=a("sqlite3_column_bytes","number",["number","number"]),Qr=a("sqlite3_column_type","number",["number","number"]),$r=a("sqlite3_column_name","string",["number","number"]),Br=a("sqlite3_reset","number",["number"]),Cr=a("sqlite3_clear_bindings","number",["number"]),Hr=a("sqlite3_finalize","number",["number"]),Jt=a("sqlite3_create_function_v2","number","number string number number number number number number number".split(" ")),Vr=a("sqlite3_value_type","number",["number"]),Xr=a("sqlite3_value_bytes","number",["number"]),Yr=a("sqlite3_value_text","string",["number"]),Gr=a("sqlite3_value_blob","number",["number"]),Zr=a("sqlite3_value_double","number",["number"]),Kr=a("sqlite3_result_double","",["number","number"]),er=a("sqlite3_result_null","",["number"]),Jr=a("sqlite3_result_text","",["number","string","number","number"]),en=a("sqlite3_result_blob","",["number","number","number","number"]),tn=a("sqlite3_result_int","",["number","number"]),De=a("sqlite3_result_error","",["number","string","number"]),tr=a("sqlite3_aggregate_context","number",["number","number"]),rr=a("RegisterExtensionFunctions","number",["number"]),nr=a("sqlite3_update_hook","number",["number","number","number"]);r.prototype.bind=function(s){if(!this.Qa)throw"Statement closed";return this.reset(),Array.isArray(s)?this.Cb(s):s!=null&&typeof s=="object"?this.Db(s):!0},r.prototype.step=function(){if(!this.Qa)throw"Statement closed";this.Oa=1;var s=Ur(this.Qa);switch(s){case 100:return!0;case 101:return!1;default:throw this.db.handleError(s)}},r.prototype.wb=function(s){return s==null&&(s=this.Oa,this.Oa+=1),zr(this.Qa,s)},r.prototype.Gb=function(s){if(s==null&&(s=this.Oa,this.Oa+=1),s=Kt(this.Qa,s),typeof BigInt!="function")throw Error("BigInt is not supported");return BigInt(s)},r.prototype.Hb=function(s){return s==null&&(s=this.Oa,this.Oa+=1),Kt(this.Qa,s)},r.prototype.getBlob=function(s){s==null&&(s=this.Oa,this.Oa+=1);var l=Ir(this.Qa,s);s=Fr(this.Qa,s);for(var h=new Uint8Array(l),p=0;p<l;p+=1)h[p]=N[s+p];return h},r.prototype.get=function(s,l){l=l||{},s!=null&&this.bind(s)&&this.step(),s=[];for(var h=Wr(this.Qa),p=0;p<h;p+=1)switch(Qr(this.Qa,p)){case 1:var d=l.useBigInt?this.Gb(p):this.wb(p);s.push(d);break;case 2:s.push(this.wb(p));break;case 3:s.push(this.Hb(p));break;case 4:s.push(this.getBlob(p));break;default:s.push(null)}return s},r.prototype.getColumnNames=function(){for(var s=[],l=jr(this.Qa),h=0;h<l;h+=1)s.push($r(this.Qa,h));return s},r.prototype.getAsObject=function(s,l){s=this.get(s,l),l=this.getColumnNames();for(var h={},p=0;p<l.length;p+=1)h[l[p]]=s[p];return h},r.prototype.getSQL=function(){return Yt(this.Qa)},r.prototype.getNormalizedSQL=function(){return Or(this.Qa)},r.prototype.run=function(s){return s!=null&&this.bind(s),this.step(),this.reset()},r.prototype.sb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1),s=At(s);var h=Te(s,Pe);this.lb.push(h),this.db.handleError(Rr(this.Qa,l,h,s.length-1,0))},r.prototype.Bb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1);var h=Te(s,Pe);this.lb.push(h),this.db.handleError(Zt(this.Qa,l,h,s.length,0))},r.prototype.rb=function(s,l){l==null&&(l=this.Oa,this.Oa+=1),this.db.handleError((s===(s|0)?Pr:Lr)(this.Qa,l,s))},r.prototype.Eb=function(s){s==null&&(s=this.Oa,this.Oa+=1),Zt(this.Qa,s,0,0,0)},r.prototype.tb=function(s,l){switch(l==null&&(l=this.Oa,this.Oa+=1),typeof s){case"string":this.sb(s,l);return;case"number":this.rb(s,l);return;case"bigint":this.sb(s.toString(),l);return;case"boolean":this.rb(s+0,l);return;case"object":if(s===null){this.Eb(l);return}if(s.length!=null){this.Bb(s,l);return}}throw"Wrong API use : tried to bind a value of an unknown type ("+s+")."},r.prototype.Db=function(s){var l=this;return Object.keys(s).forEach(function(h){var p=Tr(l.Qa,h);p!==0&&l.tb(s[h],p)}),!0},r.prototype.Cb=function(s){for(var l=0;l<s.length;l+=1)this.tb(s[l],l+1);return!0},r.prototype.reset=function(){return this.freemem(),Cr(this.Qa)===0&&Br(this.Qa)===0},r.prototype.freemem=function(){for(var s;(s=this.lb.pop())!==void 0;)Ue(s)},r.prototype.free=function(){this.freemem();var s=Hr(this.Qa)===0;return delete this.db.fb[this.Qa],this.Qa=0,s},n.prototype.next=function(){if(this.eb===null)return{done:!0};if(this.Za!==null&&(this.Za.free(),this.Za=null),!this.db.db)throw this.mb(),Error("Database closed");var s=be(),l=G(4);he(u),he(l);try{this.db.handleError(Gt(this.db.db,this.kb,-1,u,l)),this.kb=Q(l,"i32");var h=Q(u,"i32");return h===0?(this.mb(),{done:!0}):(this.Za=new r(h,this.db),this.db.fb[h]=this.Za,{value:this.Za,done:!1})}catch(p){throw this.pb=Ve(this.kb),this.mb(),p}finally{we(s)}},n.prototype.mb=function(){Ue(this.eb),this.eb=null},n.prototype.getRemainingSQL=function(){return this.pb!==null?this.pb:Ve(this.kb)},typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"&&(n.prototype[Symbol.iterator]=function(){return this}),i.prototype.run=function(s,l){if(!this.db)throw"Database closed";if(l){s=this.prepare(s,l);try{s.step()}finally{s.free()}}else this.handleError(b(this.db,s,0,0,u));return this},i.prototype.exec=function(s,l,h){if(!this.db)throw"Database closed";var p=be(),d=null;try{var v=ut(s),j=G(4);for(s=[];Q(v,"i8")!==0;){he(u),he(j),this.handleError(Gt(this.db,v,-1,u,j));var T=Q(u,"i32");if(v=Q(j,"i32"),T!==0){var L=null;for(d=new r(T,this),l!=null&&d.bind(l);d.step();)L===null&&(L={columns:d.getColumnNames(),values:[]},s.push(L)),L.values.push(d.get(null,h));d.free()}}return s}catch(W){throw d&&d.free(),W}finally{we(p)}},i.prototype.each=function(s,l,h,p,d){typeof l=="function"&&(p=h,h=l,l=void 0),s=this.prepare(s,l);try{for(;s.step();)h(s.getAsObject(null,d))}finally{s.free()}if(typeof p=="function")return p()},i.prototype.prepare=function(s,l){if(he(u),this.handleError(O(this.db,s,-1,u,0)),s=Q(u,"i32"),s===0)throw"Nothing to prepare";var h=new r(s,this);return l!=null&&h.bind(l),this.fb[s]=h},i.prototype.iterateStatements=function(s){return new n(s,this)},i.prototype.export=function(){Object.values(this.fb).forEach(function(l){l.free()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.handleError(_(this.db));var s=Ar(this.filename);return this.handleError(c(this.filename,u)),this.db=Q(u,"i32"),rr(this.db),s},i.prototype.close=function(){this.db!==null&&(Object.values(this.fb).forEach(function(s){s.free()}),Object.values(this.Sa).forEach(Y),this.Sa={},this.Ya&&(Y(this.Ya),this.Ya=void 0),this.handleError(_(this.db)),zt("/"+this.filename),this.db=null)},i.prototype.handleError=function(s){if(s===0)return null;throw s=Dr(this.db),Error(s)},i.prototype.getRowsModified=function(){return A(this.db)},i.prototype.create_function=function(s,l){Object.prototype.hasOwnProperty.call(this.Sa,s)&&(Y(this.Sa[s]),delete this.Sa[s]);var h=de(function(p,d,v){d=t(d,v);try{var j=l.apply(null,d)}catch(T){De(p,T,-1);return}e(p,j)},"viii");return this.Sa[s]=h,this.handleError(Jt(this.db,s,l.length,1,0,h,0,0,0)),this},i.prototype.create_aggregate=function(s,l){var h=l.init||function(){return null},p=l.finalize||function(L){return L},d=l.step;if(!d)throw"An aggregate function must have a step function in "+s;var v={};Object.hasOwnProperty.call(this.Sa,s)&&(Y(this.Sa[s]),delete this.Sa[s]),l=s+"__finalize",Object.hasOwnProperty.call(this.Sa,l)&&(Y(this.Sa[l]),delete this.Sa[l]);var j=de(function(L,W,ht){var re=tr(L,1);Object.hasOwnProperty.call(v,re)||(v[re]=h()),W=t(W,ht),W=[v[re]].concat(W);try{v[re]=d.apply(null,W)}catch(rn){delete v[re],De(L,rn,-1)}},"viii"),T=de(function(L){var W=tr(L,1);try{var ht=p(v[W])}catch(re){delete v[W],De(L,re,-1);return}e(L,ht),delete v[W]},"vi");return this.Sa[s]=j,this.Sa[l]=T,this.handleError(Jt(this.db,s,d.length-1,1,0,0,j,T,0)),this},i.prototype.updateHook=function(s){this.Ya&&(nr(this.db,0,0),Y(this.Ya),this.Ya=void 0),s&&(this.Ya=de(function(l,h,p,d,v){switch(h){case 18:l="insert";break;case 23:l="update";break;case 9:l="delete";break;default:throw"unknown operationCode in updateHook callback: "+h}if(p=p?q(y,p):"",d=d?q(y,d):"",v>Number.MAX_SAFE_INTEGER)throw"rowId too big to fit inside a Number";s(l,p,d,Number(v))},"viiiij"),nr(this.db,this.Ya,0))},o.Database=i};var pt={...o},We="./this.program",ye=(e,t)=>{throw t},I="",ze,ve;if(_e){var Fe=ir;I=__dirname+"/",ve=e=>(e=Ae(e)?new URL(e):e,Fe.readFileSync(e)),ze=async e=>(e=Ae(e)?new URL(e):e,Fe.readFileSync(e,void 0)),!o.thisProgram&&1<process.argv.length&&(We=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),S.exports=o,ye=(e,t)=>{throw process.exitCode=e,t}}else(ar||je)&&(je?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),I=I.startsWith("blob:")?"":I.slice(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),je&&(ve=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),ze=async e=>{if(Ae(e))return new Promise((r,n)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{i.status==200||i.status==0&&i.response?r(i.response):n(i.status)},i.onerror=n,i.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw Error(t.status+" : "+t.url)});var dt=o.print||console.log.bind(console),ne=o.printErr||console.error.bind(console);Object.assign(o,pt),pt=null,o.thisProgram&&(We=o.thisProgram);var ge=o.wasmBinary,Ee,qe=!1,Ie,N,y,le,g,k,Qe,D,$e,Ae=e=>e.startsWith("file://");function wt(){var e=Ee.buffer;o.HEAP8=N=new Int8Array(e),o.HEAP16=le=new Int16Array(e),o.HEAPU8=y=new Uint8Array(e),o.HEAPU16=new Uint16Array(e),o.HEAP32=g=new Int32Array(e),o.HEAPU32=k=new Uint32Array(e),o.HEAPF32=Qe=new Float32Array(e),o.HEAPF64=$e=new Float64Array(e),o.HEAP64=D=new BigInt64Array(e),o.HEAPU64=new BigUint64Array(e)}var K=0,fe=null;function ie(e){var t;throw(t=o.onAbort)==null||t.call(o,e),e="Aborted("+e+")",ne(e),qe=!0,new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info.")}var Be;async function lr(e){if(!ge)try{var t=await ze(e);return new Uint8Array(t)}catch{}if(e==Be&&ge)e=new Uint8Array(ge);else if(ve)e=ve(e);else throw"both async and sync fetching of the wasm failed";return e}async function fr(e,t){try{var r=await lr(e);return await WebAssembly.instantiate(r,t)}catch(n){ne(`failed to asynchronously prepare wasm: ${n}`),ie(n)}}async function hr(e){var t=Be;if(!ge&&typeof WebAssembly.instantiateStreaming=="function"&&!Ae(t)&&!_e)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(n){ne(`wasm streaming compile failed: ${n}`),ne("falling back to ArrayBuffer instantiation")}return fr(t,e)}class Ce{constructor(t){Z(this,"name","ExitStatus");this.message=`Program terminated with exit(${t})`,this.status=t}}var bt=e=>{for(;0<e.length;)e.shift()(o)},_t=[],yt=[],cr=()=>{var e=o.preRun.shift();yt.unshift(e)};function Q(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":return N[e];case"i8":return N[e];case"i16":return le[e>>1];case"i32":return g[e>>2];case"i64":return D[e>>3];case"float":return Qe[e>>2];case"double":return $e[e>>3];case"*":return k[e>>2];default:ie(`invalid type for getValue: ${t}`)}}var He=o.noExitRuntime||!0;function he(e){var t="i32";switch(t.endsWith("*")&&(t="*"),t){case"i1":N[e]=0;break;case"i8":N[e]=0;break;case"i16":le[e>>1]=0;break;case"i32":g[e>>2]=0;break;case"i64":D[e>>3]=BigInt(0);break;case"float":Qe[e>>2]=0;break;case"double":$e[e>>3]=0;break;case"*":k[e>>2]=0;break;default:ie(`invalid type for setValue: ${t}`)}}var vt=typeof TextDecoder<"u"?new TextDecoder:void 0,q=(e,t=0,r=NaN)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&vt)return vt.decode(e.subarray(t,r));for(n="";t<r;){var i=e[t++];if(i&128){var u=e[t++]&63;if((i&224)==192)n+=String.fromCharCode((i&31)<<6|u);else{var a=e[t++]&63;i=(i&240)==224?(i&15)<<12|u<<6|a:(i&7)<<18|u<<12|a<<6|e[t++]&63,65536>i?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|i&1023))}}else n+=String.fromCharCode(i)}return n},Ve=(e,t)=>e?q(y,e,t):"",gt=(e,t)=>{for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];i==="."?e.splice(n,1):i===".."?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},Xe=e=>{var t=e.charAt(0)==="/",r=e.slice(-1)==="/";return(e=gt(e.split("/").filter(n=>!!n),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},Et=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],!e&&!t?".":(t&&(t=t.slice(0,-1)),e+t)},ke=e=>e&&e.match(/([^\/]+|\/)\/*$/)[1],mr=()=>{if(_e){var e=ir;return t=>e.randomFillSync(t)}return t=>crypto.getRandomValues(t)},qt=e=>{(qt=mr())(e)},pr=(...e)=>{for(var t="",r=!1,n=e.length-1;-1<=n&&!r;n--){if(r=0<=n?e[n]:"/",typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)return"";t=r+"/"+t,r=r.charAt(0)==="/"}return t=gt(t.split("/").filter(i=>!!i),!r).join("/"),(r?"/":"")+t||"."},Ye=[],ce=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},$=(e,t,r,n)=>{if(!(0<n))return 0;var i=r;n=r+n-1;for(var u=0;u<e.length;++u){var a=e.charCodeAt(u);if(55296<=a&&57343>=a){var c=e.charCodeAt(++u);a=65536+((a&1023)<<10)|c&1023}if(127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|a&63}}return t[r]=0,r-i},At=(e,t)=>{var r=Array(ce(e)+1);return e=$(e,r,0,r.length),t&&(r.length=e),r},kt=[];function Nt(e,t){kt[e]={input:[],output:[],cb:t},tt(e,dr)}var dr={open(e){var t=kt[e.node.rdev];if(!t)throw new f(43);e.tty=t,e.seekable=!1},close(e){e.tty.cb.fsync(e.tty)},fsync(e){e.tty.cb.fsync(e.tty)},read(e,t,r,n){if(!e.tty||!e.tty.cb.xb)throw new f(60);for(var i=0,u=0;u<n;u++){try{var a=e.tty.cb.xb(e.tty)}catch{throw new f(29)}if(a===void 0&&i===0)throw new f(6);if(a==null)break;i++,t[r+u]=a}return i&&(e.node.atime=Date.now()),i},write(e,t,r,n){if(!e.tty||!e.tty.cb.qb)throw new f(60);try{for(var i=0;i<n;i++)e.tty.cb.qb(e.tty,t[r+i])}catch{throw new f(29)}return n&&(e.node.mtime=e.node.ctime=Date.now()),i}},wr={xb(){e:{if(!Ye.length){var e=null;if(_e){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=Fe.readSync(n,t,0,256)}catch(i){if(i.toString().includes("EOF"))r=0;else throw i}0<r&&(e=t.slice(0,r).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
2
2
  `));if(!e){e=null;break e}Ye=At(e,!0)}e=Ye.shift()}return e},qb(e,t){t===null||t===10?(dt(q(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){var t;0<((t=e.output)==null?void 0:t.length)&&(dt(q(e.output)),e.output=[])},Tb(){return{Ob:25856,Qb:5,Nb:191,Pb:35387,Mb:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},Ub(){return 0},Vb(){return[24,80]}},br={qb(e,t){t===null||t===10?(ne(q(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){var t;0<((t=e.output)==null?void 0:t.length)&&(ne(q(e.output)),e.output=[])}},w={Wa:null,Xa(){return w.createNode(null,"/",16895,0)},createNode(e,t,r,n){if((r&61440)===24576||(r&61440)===4096)throw new f(63);return w.Wa||(w.Wa={dir:{node:{Ta:w.La.Ta,Ua:w.La.Ua,lookup:w.La.lookup,hb:w.La.hb,rename:w.La.rename,unlink:w.La.unlink,rmdir:w.La.rmdir,readdir:w.La.readdir,symlink:w.La.symlink},stream:{Va:w.Ma.Va}},file:{node:{Ta:w.La.Ta,Ua:w.La.Ua},stream:{Va:w.Ma.Va,read:w.Ma.read,write:w.Ma.write,ib:w.Ma.ib,jb:w.Ma.jb}},link:{node:{Ta:w.La.Ta,Ua:w.La.Ua,readlink:w.La.readlink},stream:{}},ub:{node:{Ta:w.La.Ta,Ua:w.La.Ua},stream:Er}}),r=Lt(e,t,r,n),x(r.mode)?(r.La=w.Wa.dir.node,r.Ma=w.Wa.dir.stream,r.Na={}):(r.mode&61440)===32768?(r.La=w.Wa.file.node,r.Ma=w.Wa.file.stream,r.Ra=0,r.Na=null):(r.mode&61440)===40960?(r.La=w.Wa.link.node,r.Ma=w.Wa.link.stream):(r.mode&61440)===8192&&(r.La=w.Wa.ub.node,r.Ma=w.Wa.ub.stream),r.atime=r.mtime=r.ctime=Date.now(),e&&(e.Na[t]=r,e.atime=e.mtime=e.ctime=r.atime),r},Sb(e){return e.Na?e.Na.subarray?e.Na.subarray(0,e.Ra):new Uint8Array(e.Na):new Uint8Array(0)},La:{Ta(e){var t={};return t.dev=(e.mode&61440)===8192?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,x(e.mode)?t.size=4096:(e.mode&61440)===32768?t.size=e.Ra:(e.mode&61440)===40960?t.size=e.link.length:t.size=0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},Ua(e,t){for(var r of["mode","atime","mtime","ctime"])t[r]!=null&&(e[r]=t[r]);t.size!==void 0&&(t=t.size,e.Ra!=t&&(t==0?(e.Na=null,e.Ra=0):(r=e.Na,e.Na=new Uint8Array(t),r&&e.Na.set(r.subarray(0,Math.min(t,e.Ra))),e.Ra=t)))},lookup(){throw w.vb},hb(e,t,r,n){return w.createNode(e,t,r,n)},rename(e,t,r){try{var n=J(t,r)}catch{}if(n){if(x(e.mode))for(var i in n.Na)throw new f(55);Je(n)}delete e.parent.Na[e.name],t.Na[r]=e,e.name=r,t.ctime=t.mtime=e.parent.ctime=e.parent.mtime=Date.now()},unlink(e,t){delete e.Na[t],e.ctime=e.mtime=Date.now()},rmdir(e,t){var r=J(e,t),n;for(n in r.Na)throw new f(55);delete e.Na[t],e.ctime=e.mtime=Date.now()},readdir(e){return[".","..",...Object.keys(e.Na)]},symlink(e,t,r){return e=w.createNode(e,t,41471,0),e.link=r,e},readlink(e){if((e.mode&61440)!==40960)throw new f(28);return e.link}},Ma:{read(e,t,r,n,i){var u=e.node.Na;if(i>=e.node.Ra)return 0;if(e=Math.min(e.node.Ra-i,n),8<e&&u.subarray)t.set(u.subarray(i,i+e),r);else for(n=0;n<e;n++)t[r+n]=u[i+n];return e},write(e,t,r,n,i,u){if(t.buffer===N.buffer&&(u=!1),!n)return 0;if(e=e.node,e.mtime=e.ctime=Date.now(),t.subarray&&(!e.Na||e.Na.subarray)){if(u)return e.Na=t.subarray(r,r+n),e.Ra=n;if(e.Ra===0&&i===0)return e.Na=t.slice(r,r+n),e.Ra=n;if(i+n<=e.Ra)return e.Na.set(t.subarray(r,r+n),i),n}u=i+n;var a=e.Na?e.Na.length:0;if(a>=u||(u=Math.max(u,a*(1048576>a?2:1.125)>>>0),a!=0&&(u=Math.max(u,256)),a=e.Na,e.Na=new Uint8Array(u),0<e.Ra&&e.Na.set(a.subarray(0,e.Ra),0)),e.Na.subarray&&t.subarray)e.Na.set(t.subarray(r,r+n),i);else for(u=0;u<n;u++)e.Na[i+u]=t[r+u];return e.Ra=Math.max(e.Ra,i+n),n},Va(e,t,r){if(r===1?t+=e.position:r===2&&(e.node.mode&61440)===32768&&(t+=e.node.Ra),0>t)throw new f(28);return t},ib(e,t,r,n,i){if((e.node.mode&61440)!==32768)throw new f(43);if(e=e.node.Na,i&2||!e||e.buffer!==N.buffer){i=!0,n=65536*Math.ceil(t/65536);var u=Vt(65536,n);if(u&&y.fill(0,u,u+n),n=u,!n)throw new f(48);e&&((0<r||r+t<e.length)&&(e.subarray?e=e.subarray(r,r+t):e=Array.prototype.slice.call(e,r,r+t)),N.set(e,n))}else i=!1,n=e.byteOffset;return{Kb:n,Ab:i}},jb(e,t,r,n){return w.Ma.write(e,t,0,n,r,!1),0}}},Mt=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},Ge=null,St={},oe=[],_r=1,V=null,xt=!1,Ot=!0,Rt={},f=class{constructor(e){Z(this,"name","ErrnoError");this.Pa=e}},yr=class{constructor(){Z(this,"gb",{});Z(this,"node",null)}get flags(){return this.gb.flags}set flags(e){this.gb.flags=e}get position(){return this.gb.position}set position(e){this.gb.position=e}},vr=class{constructor(e,t,r,n){Z(this,"La",{});Z(this,"Ma",{});Z(this,"ab",null);e||(e=this),this.parent=e,this.Xa=e.Xa,this.id=_r++,this.name=t,this.mode=r,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&365)===365}set read(e){e?this.mode|=365:this.mode&=-366}get write(){return(this.mode&146)===146}set write(e){e?this.mode|=146:this.mode&=-147}};function P(e,t={}){if(!e)throw new f(44);t.nb??(t.nb=!0),e.charAt(0)==="/"||(e="//"+e);var r=0;e:for(;40>r;r++){e=e.split("/").filter(c=>!!c);for(var n=Ge,i="/",u=0;u<e.length;u++){var a=u===e.length-1;if(a&&t.parent)break;if(e[u]!==".")if(e[u]==="..")i=Et(i),n=n.parent;else{i=Xe(i+"/"+e[u]);try{n=J(n,e[u])}catch(c){if((c==null?void 0:c.Pa)===44&&a&&t.Jb)return{path:i};throw c}if(!n.ab||a&&!t.nb||(n=n.ab.root),(n.mode&61440)===40960&&(!a||t.$a)){if(!n.La.readlink)throw new f(52);n=n.La.readlink(n),n.charAt(0)==="/"||(n=Et(i)+"/"+n),e=n+"/"+e.slice(u+1).join("/");continue e}}}return{path:i,node:n}}throw new f(32)}function Ze(e){for(var t;;){if(e===e.parent)return e=e.Xa.zb,t?e[e.length-1]!=="/"?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}}function Ke(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%V.length}function Je(e){var t=Ke(e.parent.id,e.name);if(V[t]===e)V[t]=e.bb;else for(t=V[t];t;){if(t.bb===e){t.bb=e.bb;break}t=t.bb}}function J(e,t){var r=x(e.mode)?(r=se(e,"x"))?r:e.La.lookup?0:2:54;if(r)throw new f(r);for(r=V[Ke(e.id,t)];r;r=r.bb){var n=r.name;if(r.parent.id===e.id&&n===t)return r}return e.La.lookup(e,t)}function Lt(e,t,r,n){return e=new vr(e,t,r,n),t=Ke(e.parent.id,e.name),e.bb=V[t],V[t]=e}function x(e){return(e&61440)===16384}function Pt(e){var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t}function se(e,t){if(Ot)return 0;if(!t.includes("r")||e.mode&292){if(t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73))return 2}else return 2;return 0}function Tt(e,t){if(!x(e.mode))return 54;try{return J(e,t),20}catch{}return se(e,"wx")}function Ut(e,t,r){try{var n=J(e,t)}catch(i){return i.Pa}if(e=se(e,"wx"))return e;if(r){if(!x(n.mode))return 54;if(n===n.parent||Ze(n)==="/")return 10}else if(x(n.mode))return 31;return 0}function Ne(e){if(!e)throw new f(63);return e}function M(e){if(e=oe[e],!e)throw new f(8);return e}function Dt(e,t=-1){if(e=Object.assign(new yr,e),t==-1)e:{for(t=0;4096>=t;t++)if(!oe[t])break e;throw new f(33)}return e.fd=t,oe[t]=e}function gr(e,t=-1){var r,n;return e=Dt(e,t),(n=(r=e.Ma)==null?void 0:r.Rb)==null||n.call(r,e),e}function et(e,t,r){var n=e==null?void 0:e.Ma.Ua;e=n?e:t,n??(n=t.La.Ua),Ne(n),n(e,r)}var Er={open(e){var t,r;e.Ma=St[e.node.rdev].Ma,(r=(t=e.Ma).open)==null||r.call(t,e)},Va(){throw new f(70)}};function tt(e,t){St[e]={Ma:t}}function jt(e,t){var r=t==="/";if(r&&Ge)throw new f(10);if(!r&&t){var n=P(t,{nb:!1});if(t=n.path,n=n.node,n.ab)throw new f(10);if(!x(n.mode))throw new f(54)}t={type:e,Wb:{},zb:t,Ib:[]},e=e.Xa(t),e.Xa=t,t.root=e,r?Ge=e:n&&(n.ab=t,n.Xa&&n.Xa.Ib.push(t))}function Me(e,t,r){var n=P(e,{parent:!0}).node;if(e=ke(e),!e)throw new f(28);if(e==="."||e==="..")throw new f(20);var i=Tt(n,e);if(i)throw new f(i);if(!n.La.hb)throw new f(63);return n.La.hb(n,e,t,r)}function qr(e,t=438){return Me(e,t&4095|32768,0)}function z(e,t=511){return Me(e,t&1023|16384,0)}function Se(e,t,r){typeof r>"u"&&(r=t,t=438),Me(e,t|8192,r)}function rt(e,t){if(!pr(e))throw new f(44);var r=P(t,{parent:!0}).node;if(!r)throw new f(44);t=ke(t);var n=Tt(r,t);if(n)throw new f(n);if(!r.La.symlink)throw new f(63);r.La.symlink(r,t,e)}function Wt(e){var t=P(e,{parent:!0}).node;e=ke(e);var r=J(t,e),n=Ut(t,e,!0);if(n)throw new f(n);if(!t.La.rmdir)throw new f(63);if(r.ab)throw new f(10);t.La.rmdir(t,e),Je(r)}function zt(e){var t=P(e,{parent:!0}).node;if(!t)throw new f(44);e=ke(e);var r=J(t,e),n=Ut(t,e,!1);if(n)throw new f(n);if(!t.La.unlink)throw new f(63);if(r.ab)throw new f(10);t.La.unlink(t,e),Je(r)}function me(e,t){return e=P(e,{$a:!t}).node,Ne(e.La.Ta)(e)}function Ft(e,t,r,n){et(e,t,{mode:r&4095|t.mode&-4096,ctime:Date.now(),Fb:n})}function xe(e,t){e=typeof e=="string"?P(e,{$a:!0}).node:e,Ft(null,e,t)}function It(e,t,r){if(x(t.mode))throw new f(31);if((t.mode&61440)!==32768)throw new f(28);var n=se(t,"w");if(n)throw new f(n);et(e,t,{size:r,timestamp:Date.now()})}function ue(e,t,r=438){if(e==="")throw new f(44);if(typeof t=="string"){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[t];if(typeof n>"u")throw Error(`Unknown file open mode: ${t}`);t=n}if(r=t&64?r&4095|32768:0,typeof e=="object")n=e;else{var i=e.endsWith("/");e=P(e,{$a:!(t&131072),Jb:!0}),n=e.node,e=e.path}var u=!1;if(t&64)if(n){if(t&128)throw new f(20)}else{if(i)throw new f(31);n=Me(e,r|511,0),u=!0}if(!n)throw new f(44);if((n.mode&61440)===8192&&(t&=-513),t&65536&&!x(n.mode))throw new f(54);if(!u&&(i=n?(n.mode&61440)===40960?32:x(n.mode)&&(Pt(t)!=="r"||t&576)?31:se(n,Pt(t)):44))throw new f(i);return t&512&&!u&&(i=n,i=typeof i=="string"?P(i,{$a:!0}).node:i,It(null,i,0)),t&=-131713,i=Dt({node:n,path:Ze(n),flags:t,seekable:!0,position:0,Ma:n.Ma,Lb:[],error:!1}),i.Ma.open&&i.Ma.open(i),u&&xe(n,r&511),!o.logReadFiles||t&1||e in Rt||(Rt[e]=1),i}function nt(e){if(e.fd===null)throw new f(8);e.ob&&(e.ob=null);try{e.Ma.close&&e.Ma.close(e)}catch(t){throw t}finally{oe[e.fd]=null}e.fd=null}function Qt(e,t,r){if(e.fd===null)throw new f(8);if(!e.seekable||!e.Ma.Va)throw new f(70);if(r!=0&&r!=1&&r!=2)throw new f(28);e.position=e.Ma.Va(e,t,r),e.Lb=[]}function $t(e,t,r,n,i){if(0>n||0>i)throw new f(28);if(e.fd===null)throw new f(8);if((e.flags&2097155)===1)throw new f(8);if(x(e.node.mode))throw new f(31);if(!e.Ma.read)throw new f(28);var u=typeof i<"u";if(!u)i=e.position;else if(!e.seekable)throw new f(70);return t=e.Ma.read(e,t,r,n,i),u||(e.position+=t),t}function Bt(e,t,r,n,i){if(0>n||0>i)throw new f(28);if(e.fd===null)throw new f(8);if((e.flags&2097155)===0)throw new f(8);if(x(e.node.mode))throw new f(31);if(!e.Ma.write)throw new f(28);e.seekable&&e.flags&1024&&Qt(e,0,2);var u=typeof i<"u";if(!u)i=e.position;else if(!e.seekable)throw new f(70);return t=e.Ma.write(e,t,r,n,i,void 0),u||(e.position+=t),t}function Ar(e){var t,r=ue(e,r||0);e=me(e).size;var n=new Uint8Array(e);return $t(r,n,0,e,0),t=n,nt(r),t}function X(e,t,r){e=Xe("/dev/"+e);var n=Mt(!!t,!!r);X.yb??(X.yb=64);var i=X.yb++<<8|0;tt(i,{open(u){u.seekable=!1},close(){var u;(u=r==null?void 0:r.buffer)!=null&&u.length&&r(10)},read(u,a,c,_){for(var b=0,A=0;A<_;A++){try{var O=t()}catch{throw new f(29)}if(O===void 0&&b===0)throw new f(6);if(O==null)break;b++,a[c+A]=O}return b&&(u.node.atime=Date.now()),b},write(u,a,c,_){for(var b=0;b<_;b++)try{r(a[c+b])}catch{throw new f(29)}return _&&(u.node.mtime=u.node.ctime=Date.now()),b}}),Se(e,n,i)}var E={};function ee(e,t,r){if(t.charAt(0)==="/")return t;if(e=e===-100?"/":M(e).path,t.length==0){if(!r)throw new f(44);return e}return e+"/"+t}function Oe(e,t){g[e>>2]=t.dev,g[e+4>>2]=t.mode,k[e+8>>2]=t.nlink,g[e+12>>2]=t.uid,g[e+16>>2]=t.gid,g[e+20>>2]=t.rdev,D[e+24>>3]=BigInt(t.size),g[e+32>>2]=4096,g[e+36>>2]=t.blocks;var r=t.atime.getTime(),n=t.mtime.getTime(),i=t.ctime.getTime();return D[e+40>>3]=BigInt(Math.floor(r/1e3)),k[e+48>>2]=r%1e3*1e6,D[e+56>>3]=BigInt(Math.floor(n/1e3)),k[e+64>>2]=n%1e3*1e6,D[e+72>>3]=BigInt(Math.floor(i/1e3)),k[e+80>>2]=i%1e3*1e6,D[e+88>>3]=BigInt(t.ino),0}var Re=void 0,Le=()=>{var e=g[+Re>>2];return Re+=4,e},it=0,kr=[0,31,60,91,121,152,182,213,244,274,305,335],Nr=[0,31,59,90,120,151,181,212,243,273,304,334],pe={},Ct=e=>{var t;Ie=e,He||0<it||((t=o.onExit)==null||t.call(o,e),qe=!0),ye(e,new Ce(e))},Mr=e=>{if(!qe)try{if(e(),!(He||0<it))try{Ie=e=Ie,Ct(e)}catch(t){t instanceof Ce||t=="unwind"||ye(1,t)}}catch(t){t instanceof Ce||t=="unwind"||ye(1,t)}},ot={},Ht=()=>{if(!st){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:We||"./this.program"},t;for(t in ot)ot[t]===void 0?delete e[t]:e[t]=ot[t];var r=[];for(t in e)r.push(`${t}=${e[t]}`);st=r}return st},st,ut=e=>{var t=ce(e)+1,r=G(t);return $(e,y,r,t),r},Sr=(e,t,r,n)=>{var i={string:b=>{var A=0;return b!=null&&b!==0&&(A=ut(b)),A},array:b=>{var A=G(b.length);return N.set(b,A),A}};e=o["_"+e];var u=[],a=0;if(n)for(var c=0;c<n.length;c++){var _=i[r[c]];_?(a===0&&(a=be()),u[c]=_(n[c])):u[c]=n[c]}return r=e(...u),r=(function(b){return a!==0&&we(a),t==="string"?b?q(y,b):"":t==="boolean"?!!b:b})(r)},Pe=0,Te=(e,t)=>(t=t==1?G(e.length):lt(e.length),e.subarray||e.slice||(e=new Uint8Array(e)),y.set(e,t),t),te,at=[],B,Y=e=>{te.delete(B.get(e)),B.set(e,null),at.push(e)},de=(e,t)=>{if(!te){te=new WeakMap;var r=B.length;if(te)for(var n=0;n<0+r;n++){var i=B.get(n);i&&te.set(i,n)}}if(r=te.get(e)||0)return r;if(at.length)r=at.pop();else{try{B.grow(1)}catch(_){throw _ instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":_}r=B.length-1}try{B.set(r,e)}catch(_){if(!(_ instanceof TypeError))throw _;if(typeof WebAssembly.Function=="function"){var u=WebAssembly.Function;n={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},i={parameters:[],results:t[0]=="v"?[]:[n[t[0]]]};for(var a=1;a<t.length;++a)i.parameters.push(n[t[a]]);t=new u(i,e)}else{n=[1],i=t.slice(0,1),t=t.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111},n.push(96);var c=t.length;128>c?n.push(c):n.push(c%128|128,c>>7);for(u of t)n.push(a[u]);i=="v"?n.push(0):n.push(1,a[i]),t=[0,97,115,109,1,0,0,0,1],u=n.length,128>u?t.push(u):t.push(u%128|128,u>>7),t.push(...n),t.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),t=new WebAssembly.Module(new Uint8Array(t)),t=new WebAssembly.Instance(t,{e:{f:e}}).exports.f}B.set(r,t)}return te.set(e,r),r};V=Array(4096),jt(w,"/"),z("/tmp"),z("/home"),z("/home/web_user"),(function(){z("/dev"),tt(259,{read:()=>0,write:(n,i,u,a)=>a,Va:()=>0}),Se("/dev/null",259),Nt(1280,wr),Nt(1536,br),Se("/dev/tty",1280),Se("/dev/tty1",1536);var e=new Uint8Array(1024),t=0,r=()=>(t===0&&(qt(e),t=e.byteLength),e[--t]);X("random",r),X("urandom",r),z("/dev/shm"),z("/dev/shm/tmp")})(),(function(){z("/proc");var e=z("/proc/self");z("/proc/self/fd"),jt({Xa(){var t=Lt(e,"fd",16895,73);return t.Ma={Va:w.Ma.Va},t.La={lookup(r,n){r=+n;var i=M(r);return r={parent:null,Xa:{zb:"fake"},La:{readlink:()=>i.path},id:r+1},r.parent=r},readdir(){return Array.from(oe.entries()).filter(([,r])=>r).map(([r])=>r.toString())}},t}},"/proc/self/fd")})(),w.vb=new f(44),w.vb.stack="<generic error, no stack>";var xr={a:(e,t,r,n)=>ie(`Assertion failed: ${e?q(y,e):""}, at: `+[t?t?q(y,t):"":"unknown filename",r,n?n?q(y,n):"":"unknown function"]),i:function(e,t){try{return e=e?q(y,e):"",xe(e,t),0}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Pa}},L:function(e,t,r){try{if(t=t?q(y,t):"",t=ee(e,t),r&-8)return-28;var n=P(t,{$a:!0}).node;return n?(e="",r&4&&(e+="r"),r&2&&(e+="w"),r&1&&(e+="x"),e&&se(n,e)?-2:0):-44}catch(i){if(typeof E>"u"||i.name!=="ErrnoError")throw i;return-i.Pa}},j:function(e,t){try{var r=M(e);return Ft(r,r.node,t,!1),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},h:function(e){try{var t=M(e);return et(t,t.node,{timestamp:Date.now(),Fb:!1}),0}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Pa}},b:function(e,t,r){Re=r;try{var n=M(e);switch(t){case 0:var i=Le();if(0>i)break;for(;oe[i];)i++;return gr(n,i).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:return i=Le(),n.flags|=i,0;case 12:return i=Le(),le[i+0>>1]=2,0;case 13:case 14:return 0}return-28}catch(u){if(typeof E>"u"||u.name!=="ErrnoError")throw u;return-u.Pa}},g:function(e,t){try{var r=M(e),n=r.node,i=r.Ma.Ta;e=i?r:n,i??(i=n.La.Ta),Ne(i);var u=i(e);return Oe(t,u)}catch(a){if(typeof E>"u"||a.name!=="ErrnoError")throw a;return-a.Pa}},H:function(e,t){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return 61;var r=M(e);if(0>t||(r.flags&2097155)===0)throw new f(28);return It(r,r.node,t),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},G:function(e,t){try{if(t===0)return-28;var r=ce("/")+1;return t<r?-68:($("/",y,e,t),r)}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},K:function(e,t){try{return e=e?q(y,e):"",Oe(t,me(e,!0))}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Pa}},C:function(e,t,r){try{return t=t?q(y,t):"",t=ee(e,t),z(t,r),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},J:function(e,t,r,n){try{t=t?q(y,t):"";var i=n&256;return t=ee(e,t,n&4096),Oe(r,i?me(t,!0):me(t))}catch(u){if(typeof E>"u"||u.name!=="ErrnoError")throw u;return-u.Pa}},x:function(e,t,r,n){Re=n;try{t=t?q(y,t):"",t=ee(e,t);var i=n?Le():0;return ue(t,r,i).fd}catch(u){if(typeof E>"u"||u.name!=="ErrnoError")throw u;return-u.Pa}},v:function(e,t,r,n){try{if(t=t?q(y,t):"",t=ee(e,t),0>=n)return-28;var i=P(t).node;if(!i)throw new f(44);if(!i.La.readlink)throw new f(28);var u=i.La.readlink(i),a=Math.min(n,ce(u)),c=N[r+a];return $(u,y,r,n+1),N[r+a]=c,a}catch(_){if(typeof E>"u"||_.name!=="ErrnoError")throw _;return-_.Pa}},u:function(e){try{return e=e?q(y,e):"",Wt(e),0}catch(t){if(typeof E>"u"||t.name!=="ErrnoError")throw t;return-t.Pa}},f:function(e,t){try{return e=e?q(y,e):"",Oe(t,me(e))}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return-r.Pa}},r:function(e,t,r){try{return t=t?q(y,t):"",t=ee(e,t),r===0?zt(t):r===512?Wt(t):ie("Invalid flags passed to unlinkat"),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return-n.Pa}},q:function(e,t,r){try{t=t?q(y,t):"",t=ee(e,t,!0);var n=Date.now(),i,u;if(r){var a=k[r>>2]+4294967296*g[r+4>>2],c=g[r+8>>2];c==1073741823?i=n:c==1073741822?i=null:i=1e3*a+c/1e6,r+=16,a=k[r>>2]+4294967296*g[r+4>>2],c=g[r+8>>2],c==1073741823?u=n:c==1073741822?u=null:u=1e3*a+c/1e6}else u=i=n;if((u??i)!==null){e=i;var _=P(t,{$a:!0}).node;Ne(_.La.Ua)(_,{atime:e,mtime:u})}return 0}catch(b){if(typeof E>"u"||b.name!=="ErrnoError")throw b;return-b.Pa}},m:()=>ie(""),l:()=>{He=!1,it=0},A:function(e,t){e=-9007199254740992>e||9007199254740992<e?NaN:Number(e),e=new Date(1e3*e),g[t>>2]=e.getSeconds(),g[t+4>>2]=e.getMinutes(),g[t+8>>2]=e.getHours(),g[t+12>>2]=e.getDate(),g[t+16>>2]=e.getMonth(),g[t+20>>2]=e.getFullYear()-1900,g[t+24>>2]=e.getDay();var r=e.getFullYear();g[t+28>>2]=(r%4!==0||r%100===0&&r%400!==0?Nr:kr)[e.getMonth()]+e.getDate()-1|0,g[t+36>>2]=-(60*e.getTimezoneOffset()),r=new Date(e.getFullYear(),6,1).getTimezoneOffset();var n=new Date(e.getFullYear(),0,1).getTimezoneOffset();g[t+32>>2]=(r!=n&&e.getTimezoneOffset()==Math.min(n,r))|0},y:function(e,t,r,n,i,u,a){i=-9007199254740992>i||9007199254740992<i?NaN:Number(i);try{if(isNaN(i))return 61;var c=M(n);if((t&2)!==0&&(r&2)===0&&(c.flags&2097155)!==2)throw new f(2);if((c.flags&2097155)===1)throw new f(2);if(!c.Ma.ib)throw new f(43);if(!e)throw new f(28);var _=c.Ma.ib(c,e,i,t,r),b=_.Kb;return g[u>>2]=_.Ab,k[a>>2]=b,0}catch(A){if(typeof E>"u"||A.name!=="ErrnoError")throw A;return-A.Pa}},z:function(e,t,r,n,i,u){u=-9007199254740992>u||9007199254740992<u?NaN:Number(u);try{var a=M(i);if(r&2){if(r=u,(a.node.mode&61440)!==32768)throw new f(43);if(!(n&2)){var c=y.slice(e,e+t);a.Ma.jb&&a.Ma.jb(a,c,r,t,n)}}}catch(_){if(typeof E>"u"||_.name!=="ErrnoError")throw _;return-_.Pa}},n:(e,t)=>{if(pe[e]&&(clearTimeout(pe[e].id),delete pe[e]),!t)return 0;var r=setTimeout(()=>{delete pe[e],Mr(()=>Xt(e,performance.now()))},t);return pe[e]={id:r,Xb:t},0},B:(e,t,r,n)=>{var i=new Date().getFullYear(),u=new Date(i,0,1).getTimezoneOffset();i=new Date(i,6,1).getTimezoneOffset(),k[e>>2]=60*Math.max(u,i),g[t>>2]=+(u!=i),t=a=>{var c=Math.abs(a);return`UTC${0<=a?"-":"+"}${String(Math.floor(c/60)).padStart(2,"0")}${String(c%60).padStart(2,"0")}`},e=t(u),t=t(i),i<u?($(e,y,r,17),$(t,y,n,17)):($(e,y,n,17),$(t,y,r,17))},d:()=>Date.now(),s:()=>2147483648,c:()=>performance.now(),o:e=>{var t=y.length;if(e>>>=0,2147483648<e)return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);e:{n=(Math.min(2147483648,65536*Math.ceil(Math.max(e,n)/65536))-Ee.buffer.byteLength+65535)/65536|0;try{Ee.grow(n),wt();var i=1;break e}catch{}i=void 0}if(i)return!0}return!1},E:(e,t)=>{var r=0;return Ht().forEach((n,i)=>{var u=t+r;for(i=k[e+4*i>>2]=u,u=0;u<n.length;++u)N[i++]=n.charCodeAt(u);N[i]=0,r+=n.length+1}),0},F:(e,t)=>{var r=Ht();k[e>>2]=r.length;var n=0;return r.forEach(i=>n+=i.length+1),k[t>>2]=n,0},e:function(e){try{var t=M(e);return nt(t),0}catch(r){if(typeof E>"u"||r.name!=="ErrnoError")throw r;return r.Pa}},p:function(e,t){try{var r=M(e);return N[t]=r.tty?2:x(r.mode)?3:(r.mode&61440)===40960?7:4,le[t+2>>1]=0,D[t+8>>3]=BigInt(0),D[t+16>>3]=BigInt(0),0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return n.Pa}},w:function(e,t,r,n){try{e:{var i=M(e);e=t;for(var u,a=t=0;a<r;a++){var c=k[e>>2],_=k[e+4>>2];e+=8;var b=$t(i,N,c,_,u);if(0>b){var A=-1;break e}if(t+=b,b<_)break;typeof u<"u"&&(u+=b)}A=t}return k[n>>2]=A,0}catch(O){if(typeof E>"u"||O.name!=="ErrnoError")throw O;return O.Pa}},D:function(e,t,r,n){t=-9007199254740992>t||9007199254740992<t?NaN:Number(t);try{if(isNaN(t))return 61;var i=M(e);return Qt(i,t,r),D[n>>3]=BigInt(i.position),i.ob&&t===0&&r===0&&(i.ob=null),0}catch(u){if(typeof E>"u"||u.name!=="ErrnoError")throw u;return u.Pa}},I:function(e){var r;try{var t=M(e);return(r=t.Ma)!=null&&r.fsync?t.Ma.fsync(t):0}catch(n){if(typeof E>"u"||n.name!=="ErrnoError")throw n;return n.Pa}},t:function(e,t,r,n){try{e:{var i=M(e);e=t;for(var u,a=t=0;a<r;a++){var c=k[e>>2],_=k[e+4>>2];e+=8;var b=Bt(i,N,c,_,u);if(0>b){var A=-1;break e}if(t+=b,b<_)break;typeof u<"u"&&(u+=b)}A=t}return k[n>>2]=A,0}catch(O){if(typeof E>"u"||O.name!=="ErrnoError")throw O;return O.Pa}},k:Ct},m;(async function(){var r;function e(n){var i;return m=n.exports,Ee=m.M,wt(),B=m.O,K--,(i=o.monitorRunDependencies)==null||i.call(o,K),K==0&&fe&&(n=fe,fe=null,n()),m}K++,(r=o.monitorRunDependencies)==null||r.call(o,K);var t={a:xr};return o.instantiateWasm?new Promise(n=>{o.instantiateWasm(t,(i,u)=>{e(i),n(i.exports)})}):(Be??(Be=o.locateFile?o.locateFile("sql-wasm.wasm",I):I+"sql-wasm.wasm"),e((await hr(t)).instance))})(),o._sqlite3_free=e=>(o._sqlite3_free=m.P)(e),o._sqlite3_value_text=e=>(o._sqlite3_value_text=m.Q)(e),o._sqlite3_prepare_v2=(e,t,r,n,i)=>(o._sqlite3_prepare_v2=m.R)(e,t,r,n,i),o._sqlite3_step=e=>(o._sqlite3_step=m.S)(e),o._sqlite3_reset=e=>(o._sqlite3_reset=m.T)(e),o._sqlite3_exec=(e,t,r,n,i)=>(o._sqlite3_exec=m.U)(e,t,r,n,i),o._sqlite3_finalize=e=>(o._sqlite3_finalize=m.V)(e),o._sqlite3_column_name=(e,t)=>(o._sqlite3_column_name=m.W)(e,t),o._sqlite3_column_text=(e,t)=>(o._sqlite3_column_text=m.X)(e,t),o._sqlite3_column_type=(e,t)=>(o._sqlite3_column_type=m.Y)(e,t),o._sqlite3_errmsg=e=>(o._sqlite3_errmsg=m.Z)(e),o._sqlite3_clear_bindings=e=>(o._sqlite3_clear_bindings=m._)(e),o._sqlite3_value_blob=e=>(o._sqlite3_value_blob=m.$)(e),o._sqlite3_value_bytes=e=>(o._sqlite3_value_bytes=m.aa)(e),o._sqlite3_value_double=e=>(o._sqlite3_value_double=m.ba)(e),o._sqlite3_value_int=e=>(o._sqlite3_value_int=m.ca)(e),o._sqlite3_value_type=e=>(o._sqlite3_value_type=m.da)(e),o._sqlite3_result_blob=(e,t,r,n)=>(o._sqlite3_result_blob=m.ea)(e,t,r,n),o._sqlite3_result_double=(e,t)=>(o._sqlite3_result_double=m.fa)(e,t),o._sqlite3_result_error=(e,t,r)=>(o._sqlite3_result_error=m.ga)(e,t,r),o._sqlite3_result_int=(e,t)=>(o._sqlite3_result_int=m.ha)(e,t),o._sqlite3_result_int64=(e,t)=>(o._sqlite3_result_int64=m.ia)(e,t),o._sqlite3_result_null=e=>(o._sqlite3_result_null=m.ja)(e),o._sqlite3_result_text=(e,t,r,n)=>(o._sqlite3_result_text=m.ka)(e,t,r,n),o._sqlite3_aggregate_context=(e,t)=>(o._sqlite3_aggregate_context=m.la)(e,t),o._sqlite3_column_count=e=>(o._sqlite3_column_count=m.ma)(e),o._sqlite3_data_count=e=>(o._sqlite3_data_count=m.na)(e),o._sqlite3_column_blob=(e,t)=>(o._sqlite3_column_blob=m.oa)(e,t),o._sqlite3_column_bytes=(e,t)=>(o._sqlite3_column_bytes=m.pa)(e,t),o._sqlite3_column_double=(e,t)=>(o._sqlite3_column_double=m.qa)(e,t),o._sqlite3_bind_blob=(e,t,r,n,i)=>(o._sqlite3_bind_blob=m.ra)(e,t,r,n,i),o._sqlite3_bind_double=(e,t,r)=>(o._sqlite3_bind_double=m.sa)(e,t,r),o._sqlite3_bind_int=(e,t,r)=>(o._sqlite3_bind_int=m.ta)(e,t,r),o._sqlite3_bind_text=(e,t,r,n,i)=>(o._sqlite3_bind_text=m.ua)(e,t,r,n,i),o._sqlite3_bind_parameter_index=(e,t)=>(o._sqlite3_bind_parameter_index=m.va)(e,t),o._sqlite3_sql=e=>(o._sqlite3_sql=m.wa)(e),o._sqlite3_normalized_sql=e=>(o._sqlite3_normalized_sql=m.xa)(e),o._sqlite3_changes=e=>(o._sqlite3_changes=m.ya)(e),o._sqlite3_close_v2=e=>(o._sqlite3_close_v2=m.za)(e),o._sqlite3_create_function_v2=(e,t,r,n,i,u,a,c,_)=>(o._sqlite3_create_function_v2=m.Aa)(e,t,r,n,i,u,a,c,_),o._sqlite3_update_hook=(e,t,r)=>(o._sqlite3_update_hook=m.Ba)(e,t,r),o._sqlite3_open=(e,t)=>(o._sqlite3_open=m.Ca)(e,t);var lt=o._malloc=e=>(lt=o._malloc=m.Da)(e),Ue=o._free=e=>(Ue=o._free=m.Ea)(e);o._RegisterExtensionFunctions=e=>(o._RegisterExtensionFunctions=m.Fa)(e);var Vt=(e,t)=>(Vt=m.Ga)(e,t),Xt=(e,t)=>(Xt=m.Ha)(e,t),we=e=>(we=m.Ia)(e),G=e=>(G=m.Ja)(e),be=()=>(be=m.Ka)();o.stackSave=()=>be(),o.stackRestore=e=>we(e),o.stackAlloc=e=>G(e),o.cwrap=(e,t,r,n)=>{var i=!r||r.every(u=>u==="number"||u==="boolean");return t!=="string"&&i&&!n?o["_"+e]:(...u)=>Sr(e,t,r,u)},o.addFunction=de,o.removeFunction=Y,o.UTF8ToString=Ve,o.ALLOC_NORMAL=Pe,o.allocate=Te,o.allocateUTF8OnStack=ut;function ft(){function e(){var i;if(o.calledRun=!0,!qe){if(!o.noFSInit&&!xt){var t,r;xt=!0,n??(n=o.stdin),t??(t=o.stdout),r??(r=o.stderr),n?X("stdin",n):rt("/dev/tty","/dev/stdin"),t?X("stdout",null,t):rt("/dev/tty","/dev/stdout"),r?X("stderr",null,r):rt("/dev/tty1","/dev/stderr"),ue("/dev/stdin",0),ue("/dev/stdout",1),ue("/dev/stderr",1)}if(m.N(),Ot=!1,(i=o.onRuntimeInitialized)==null||i.call(o),o.postRun)for(typeof o.postRun=="function"&&(o.postRun=[o.postRun]);o.postRun.length;){var n=o.postRun.shift();_t.unshift(n)}bt(_t)}}if(0<K)fe=ft;else{if(o.preRun)for(typeof o.preRun=="function"&&(o.preRun=[o.preRun]);o.preRun.length;)cr();bt(yt),0<K?fe=ft:o.setStatus?(o.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>o.setStatus(""),1),e()},1)):e()}}if(o.preInit)for(typeof o.preInit=="function"&&(o.preInit=[o.preInit]);0<o.preInit.length;)o.preInit.pop()();return ft(),F}),R)};S.exports=C,S.exports.default=C})(ct)),ct.exports}var sr=hn();const cn=un(sr),dn=an({__proto__:null,default:cn},[sr]);export{dn as s};
@@ -12,7 +12,7 @@
12
12
  robots.txt for crawlers that honour that hint. -->
13
13
  <meta name="robots" content="noindex, nofollow, noarchive" />
14
14
  <meta name="googlebot" content="noindex, nofollow, noarchive" />
15
- <title>Flexweg CMS — Admin</title>
15
+ <title>AgentCMS — Admin</title>
16
16
  <script>
17
17
  // Anti-FOUC: apply the saved theme synchronously, before React renders.
18
18
  (function () {
@@ -85,7 +85,7 @@
85
85
  }
86
86
  }
87
87
  </script>
88
- <script type="module" crossorigin src="./assets/index-CLZ1gQZl.js"></script>
88
+ <script type="module" crossorigin src="./assets/index-DFVZw8E0.js"></script>
89
89
  <link rel="stylesheet" crossorigin href="./assets/index-DMcGogR2.css">
90
90
  </head>
91
91
  <body>
@@ -7,7 +7,7 @@ Adds the basic SEO meta tags every published page needs to look right when share
7
7
  Injects the following into every page's \`<head>\` at publish time:
8
8
 
9
9
  - **Twitter Card** meta tags — large summary card with image when the post has a hero, plain summary card otherwise.
10
- - **\`<meta name="generator">\`** — identifies pages as built with Flexweg CMS. Helpful for analytics; harmless for SEO.
10
+ - **\`<meta name="generator">\`** — identifies pages as built with AgentCMS. Helpful for analytics; harmless for SEO.
11
11
 
12
12
  The page's primary \`<title>\`, \`<meta name="description">\`, Open Graph tags and canonical URL are emitted by the active theme's BaseLayout — Core SEO complements them, it doesn't replace them.
13
13
 
@@ -20,7 +20,7 @@ None. The plugin is intentionally zero-config. Per-post SEO overrides (title, de
20
20
  Disable Core SEO if your theme already emits Twitter Card tags itself, or if you want to handle social meta entirely through a different plugin (e.g. a future Yoast-style SEO plugin). Disabling has no impact on the rest of the publish pipeline — page titles, descriptions and Open Graph tags survive because they come from the theme.
21
21
  `;
22
22
  function o() {
23
- return '<meta name="generator" content="Flexweg CMS" />';
23
+ return '<meta name="generator" content="AgentCMS" />';
24
24
  }
25
25
  function s(e) {
26
26
  const t = e.pageDescription ? `<meta name="twitter:description" content="${n(e.pageDescription)}" />` : "", a = e.ogImage ? `<meta name="twitter:image" content="${n(e.ogImage)}" />` : "";
@@ -1,6 +1,6 @@
1
1
  import { sha256Hex as E, uploadFile as H, buildPostUrl as Z, markdownToPlainText as W, pickPublicLocale as $, i18n as C, useCmsData as V, formatDateTime as X, toast as T, fetchAllPosts as z, updatePluginConfig as B } from "@flexweg/cms-runtime";
2
2
  import { jsxs as d, jsx as s } from "react/jsx-runtime";
3
- import { forwardRef as O, createElement as A, useState as I, useEffect as Y } from "react";
3
+ import { forwardRef as O, createElement as j, useState as I, useEffect as Y } from "react";
4
4
  import { useTranslation as ee } from "react-i18next";
5
5
  const Q = {
6
6
  title: "Search",
@@ -651,7 +651,7 @@ function oe(t) {
651
651
  dialogLabel: C.getResource(n, e, "runtime.dialogLabel") ?? r.dialogLabel
652
652
  };
653
653
  }
654
- function F(t) {
654
+ function G(t) {
655
655
  const { posts: n, pages: e, terms: r, settings: m, config: u } = t, k = new Set(u.excludedTermIds), b = [];
656
656
  for (const i of n)
657
657
  i.status === "online" && (i.primaryTermId && k.has(i.primaryTermId) || b.push(i));
@@ -694,7 +694,7 @@ function F(t) {
694
694
  generatedAt: Date.now()
695
695
  }, items: v };
696
696
  }
697
- function G(t) {
697
+ function F(t) {
698
698
  const n = {
699
699
  meta: { ...t.meta, generatedAt: 0 },
700
700
  items: t.items
@@ -702,13 +702,13 @@ function G(t) {
702
702
  return E(JSON.stringify(n));
703
703
  }
704
704
  async function le(t) {
705
- const n = F({
705
+ const n = G({
706
706
  posts: t.posts,
707
707
  pages: t.pages,
708
708
  terms: t.terms,
709
709
  settings: t.settings,
710
710
  config: t.config
711
- }), e = await G(n), r = { ...S, ...t.config };
711
+ }), e = await F(n), r = { ...S, ...t.config };
712
712
  return r.lastIndexHash === e ? { nextConfig: r, uploaded: !1 } : (await H({
713
713
  path: D,
714
714
  content: JSON.stringify(n),
@@ -727,13 +727,13 @@ async function ce(t) {
727
727
  }), { nextConfig: { ...e, lastRuntimeHash: n }, uploaded: !0 });
728
728
  }
729
729
  async function _(t) {
730
- const n = F({
730
+ const n = G({
731
731
  posts: t.posts,
732
732
  pages: t.pages,
733
733
  terms: t.terms,
734
734
  settings: t.settings,
735
735
  config: t.config
736
- }), e = await G(n), r = await E(N);
736
+ }), e = await F(n), r = await E(N);
737
737
  return await H({
738
738
  path: D,
739
739
  content: JSON.stringify(n),
@@ -793,7 +793,7 @@ const me = O(
793
793
  children: u,
794
794
  iconNode: k,
795
795
  ...b
796
- }, l) => A(
796
+ }, l) => j(
797
797
  "svg",
798
798
  {
799
799
  ref: l,
@@ -806,7 +806,7 @@ const me = O(
806
806
  ...b
807
807
  },
808
808
  [
809
- ...k.map(([v, y]) => A(v, y)),
809
+ ...k.map(([v, y]) => j(v, y)),
810
810
  ...Array.isArray(u) ? u : [u]
811
811
  ]
812
812
  )
@@ -819,7 +819,7 @@ const me = O(
819
819
  */
820
820
  const M = (t, n) => {
821
821
  const e = O(
822
- ({ className: r, ...m }, u) => A(me, {
822
+ ({ className: r, ...m }, u) => j(me, {
823
823
  ref: u,
824
824
  iconNode: n,
825
825
  className: K(`lucide-${de(t)}`, r),
@@ -1064,7 +1064,7 @@ function pe({
1064
1064
  }
1065
1065
  const xe = `# Flexweg Search
1066
1066
 
1067
- A theme-agnostic search plugin for Flexweg CMS. Builds a static
1067
+ A theme-agnostic search plugin for AgentCMS. Builds a static
1068
1068
  \`/search-index.json\` over your published content and ships a tiny
1069
1069
  runtime (\`/search.js\`) that opens a search modal anywhere a
1070
1070
  \`[data-cms-search]\` trigger is present in your theme.
@@ -1169,7 +1169,7 @@ function J(t) {
1169
1169
  const n = (t.pluginConfigs ?? {})[R];
1170
1170
  return { ...S, ...n ?? {} };
1171
1171
  }
1172
- async function j(t, n) {
1172
+ async function A(t, n) {
1173
1173
  if (!n.settings.baseUrl) {
1174
1174
  console.warn("[flexweg-search] skipping regeneration — baseUrl not configured");
1175
1175
  return;
@@ -1205,11 +1205,11 @@ const we = {
1205
1205
  },
1206
1206
  register(t) {
1207
1207
  t.addAction("publish.complete", async (n, e) => {
1208
- await j(n, e);
1208
+ await A(n, e);
1209
1209
  }), t.addAction("post.unpublished", async (n, e) => {
1210
- await j(n, e);
1210
+ await A(n, e);
1211
1211
  }), t.addAction("post.deleted", async (n, e) => {
1212
- await j(n, e);
1212
+ await A(n, e);
1213
1213
  }), t.addFilter("page.body.end", (n, ...e) => {
1214
1214
  e[0];
1215
1215
  const r = `<script src="/${q}" defer><\/script>`;
@@ -1702,7 +1702,7 @@ function yi({
1702
1702
  const Yn = {
1703
1703
  heroEyebrow: "FLEXWEG MARKETPLACE",
1704
1704
  heroHeadline: "Modern assets for professional creators.",
1705
- heroIntro: "Curated themes and plugins for your Flexweg CMS site. Free, open-source, and ready to install.",
1705
+ heroIntro: "Curated themes and plugins for your AgentCMS site. Free, open-source, and ready to install.",
1706
1706
  featuredCategorySlug: "plugins",
1707
1707
  featuredHeading: "Featured Plugins",
1708
1708
  featuredCount: 2,
@@ -356,7 +356,7 @@ const compactDataCommand = {
356
356
  if (!account) throw new CliError("credential-required", `No credential recorded for the data of ${site.alias}.`);
357
357
  const token = requireCredential(account).values.token;
358
358
  installBrowserEnv();
359
- const { createRemoteGitTransport, joinRepoPath } = await import("./chunks/index-CrvEoyi0.mjs").then((n) => n.g);
359
+ const { createRemoteGitTransport, joinRepoPath } = await import("./chunks/index-BG05qslv.mjs").then((n) => n.g);
360
360
  const transport = createRemoteGitTransport({
361
361
  provider: "github",
362
362
  owner: s.owner ?? "",
@@ -743,8 +743,8 @@ const deployAdminCommand = {
743
743
  const sites = options.all ? listSites().sites.filter((s) => s.adminFolder) : [resolveSite(options.site)];
744
744
  if (sites.length === 0) throw new CliError("no-sites", "No registered site has a hosted admin.");
745
745
  installBrowserEnv();
746
- const { adminOps, applyOps, hostingConnector, themeAssetOps } = await import("./chunks/hosting-D_uj-Mt1.mjs");
747
- const { collectToasts, settleHosting } = await import("./chunks/install-DkCCcKAO.mjs");
746
+ const { adminOps, applyOps, hostingConnector, themeAssetOps } = await import("./chunks/hosting-BftlDdsL.mjs");
747
+ const { collectToasts, settleHosting } = await import("./chunks/install-DnmgOT3F.mjs");
748
748
  const plans = [];
749
749
  for (const site of sites) {
750
750
  const adminUrl = adminUrlOf(site);
@@ -938,7 +938,7 @@ async function runDoctor(site, opts = {}) {
938
938
  add({ id: "hosting-access", status: "skip", message: "No hosting credential to test." });
939
939
  } else {
940
940
  installBrowserEnv();
941
- const { testStorageConnection } = await import("./chunks/registry-lkfb_E9O.mjs").then((n) => n.H);
941
+ const { testStorageConnection } = await import("./chunks/registry-C9TSnZ77.mjs").then((n) => n.H);
942
942
  const res = await testStorageConnection(site.hosting.connectorId, { ...site.hosting.settings, ...hostingCred.values });
943
943
  add(
944
944
  res.ok ? { id: "hosting-access", status: "ok", message: `Hosting writable: ${res.detail}.` } : { id: "hosting-access", status: "fail", message: `Hosting access failed: ${res.detail}.`, fix: "Check the credential's permissions / expiry, then `agentcms credentials set` it again." }
@@ -997,12 +997,12 @@ const installCommand = {
997
997
  async run({ io, options }) {
998
998
  if (typeof options.plan !== "string") throw new CliError("usage", "install needs --plan <file|->.", "Run `agentcms options` for the format.", 2);
999
999
  installBrowserEnv();
1000
- const { resolvePlan } = await import("./chunks/plan-EYKegfhp.mjs").then((n) => n.p);
1000
+ const { resolvePlan } = await import("./chunks/plan-BrM8ztEp.mjs").then((n) => n.p);
1001
1001
  const plan = resolvePlan(readPlan(options.plan));
1002
1002
  if (getSite(plan.alias)) {
1003
1003
  throw new CliError("site-exists", `A site named "${plan.alias}" is already registered.`, "Use another alias, or `agentcms site forget` it first.");
1004
1004
  }
1005
- const { checkPlan, runInstall } = await import("./chunks/install-DkCCcKAO.mjs");
1005
+ const { checkPlan, runInstall } = await import("./chunks/install-DnmgOT3F.mjs");
1006
1006
  io.err("Checking access…");
1007
1007
  const checks = await checkPlan(plan);
1008
1008
  const stored = checks.data.storedTarget;
@@ -1473,7 +1473,7 @@ const siteCommand = {
1473
1473
  if (getSite(a)) throw new CliError("site-exists", `A site named "${a}" already exists.`, "Pick another alias or `site forget` it first.");
1474
1474
  if (typeof options["admin-url"] !== "string") throw new CliError("usage", "site add needs --admin-url.", void 0, 2);
1475
1475
  installBrowserEnv();
1476
- const { siteFromAdminUrl } = await import("./chunks/siteAdd-BqcYt8nu.mjs");
1476
+ const { siteFromAdminUrl } = await import("./chunks/siteAdd-BcXhN9fk.mjs");
1477
1477
  const site = await siteFromAdminUrl({
1478
1478
  alias: a,
1479
1479
  adminUrl: options["admin-url"],
@@ -6,10 +6,10 @@ const __filename = __acmsPath(import.meta.url);
6
6
  const __dirname = __acmsDirname(__filename);
7
7
  import { readFileSync, readdirSync, statSync } from "node:fs";
8
8
  import { join, relative } from "node:path";
9
- import { A as buildConfigJsSource, B as createFilesApiConnector, C as instantiateStorageConnector, E as setSqlJsWasmBinary } from "./registry-lkfb_E9O.mjs";
10
- import "./index-CrvEoyi0.mjs";
9
+ import { A as buildConfigJsSource, B as createFilesApiConnector, C as instantiateStorageConnector, E as setSqlJsWasmBinary } from "./registry-C9TSnZ77.mjs";
10
+ import "./index-BG05qslv.mjs";
11
11
  import { d as distRoot, C as CliError } from "../agentcms.mjs";
12
- import { c as cleanFolder } from "./plan-EYKegfhp.mjs";
12
+ import { c as cleanFolder } from "./plan-BrM8ztEp.mjs";
13
13
  import "util";
14
14
  import "crypto";
15
15
  import "process";