mnfst 0.5.330 → 0.5.332
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/lib/manifest.appwrite.data.js +19 -15
- package/lib/manifest.appwrite.data.min.js +1 -1
- package/lib/manifest.appwrite.data.min.js.map +1 -1
- package/lib/manifest.data.js +264 -183
- package/lib/manifest.data.min.js +1 -1
- package/lib/manifest.data.min.js.map +1 -1
- package/lib/manifest.integrity.json +11 -11
- package/lib/manifest.js +383 -49
- package/lib/manifest.markdown.js +29 -4
- package/lib/manifest.markdown.min.js +1 -1
- package/lib/manifest.markdown.min.js.map +1 -1
- package/lib/manifest.min.js +1 -1
- package/lib/manifest.min.js.map +1 -1
- package/lib/manifest.modules.integrity.json +8 -8
- package/lib/manifest.sw.js +1 -1
- package/lib/manifest.sw.min.js +1 -1
- package/package.json +3 -1
package/lib/manifest.markdown.js
CHANGED
|
@@ -445,6 +445,11 @@ function parseLanguageString(languageString) {
|
|
|
445
445
|
return attributes;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
+
// On-use modules the rendered HTML needs (fenced code, charts…) load before it lands
|
|
449
|
+
async function loadModulesFor(html) {
|
|
450
|
+
try { if (window.Manifest && typeof window.Manifest.loadUsed === 'function') await window.Manifest.loadUsed(html); } catch (_) { }
|
|
451
|
+
}
|
|
452
|
+
|
|
448
453
|
// Preload marked.js as soon as script loads
|
|
449
454
|
loadMarkedJS().catch(() => {
|
|
450
455
|
// Silently ignore errors during preload
|
|
@@ -537,8 +542,10 @@ async function initializeMarkdownPlugin() {
|
|
|
537
542
|
.trim();
|
|
538
543
|
};
|
|
539
544
|
|
|
545
|
+
// One render at a time; a change arriving meanwhile re-runs once with the latest value
|
|
546
|
+
let queued = null;
|
|
540
547
|
const updateContent = async (element, newContent = null) => {
|
|
541
|
-
if (isUpdating) return;
|
|
548
|
+
if (isUpdating) { queued = { content: newContent === null && queued ? queued.content : newContent }; return; }
|
|
542
549
|
isUpdating = true;
|
|
543
550
|
const mdDone = mdTrack();
|
|
544
551
|
|
|
@@ -568,6 +575,7 @@ async function initializeMarkdownPlugin() {
|
|
|
568
575
|
html = applyInlineCodeAttributes(html);
|
|
569
576
|
|
|
570
577
|
html = await maybeSanitizeMarkdownHtml(html, safe);
|
|
578
|
+
await loadModulesFor(html);
|
|
571
579
|
|
|
572
580
|
if (element.innerHTML !== html && html.trim() !== '') {
|
|
573
581
|
const temp = document.createElement('div');
|
|
@@ -599,6 +607,7 @@ async function initializeMarkdownPlugin() {
|
|
|
599
607
|
} finally {
|
|
600
608
|
isUpdating = false;
|
|
601
609
|
mdDone();
|
|
610
|
+
if (queued) { const q = queued; queued = null; updateContent(element, q.content); }
|
|
602
611
|
}
|
|
603
612
|
};
|
|
604
613
|
|
|
@@ -689,8 +698,12 @@ async function initializeMarkdownPlugin() {
|
|
|
689
698
|
if (headingsSectionId && window._manifestHeadings) delete window._manifestHeadings[headingsSectionId];
|
|
690
699
|
});
|
|
691
700
|
|
|
701
|
+
// A render that resolves after a newer one started is dropped
|
|
702
|
+
let renderGen = 0;
|
|
703
|
+
let inflight = null;
|
|
692
704
|
effect(() => {
|
|
693
705
|
getMarkdownContent(async (pathOrContent) => {
|
|
706
|
+
const gen = ++renderGen;
|
|
694
707
|
const mdDone = mdTrack();
|
|
695
708
|
try {
|
|
696
709
|
// Reset visibility if content is empty/undefined. Baked
|
|
@@ -757,6 +770,9 @@ async function initializeMarkdownPlugin() {
|
|
|
757
770
|
}
|
|
758
771
|
}
|
|
759
772
|
|
|
773
|
+
if (gen !== renderGen) return;
|
|
774
|
+
// The same content already rendering stands for this run
|
|
775
|
+
if (inflight && inflight.content === markdownContent) { inflight.gen = gen; return; }
|
|
760
776
|
// Content unchanged: skip re-render but restore visibility — a
|
|
761
777
|
// dev-reload can transiently push opacity to 0 while innerHTML is intact.
|
|
762
778
|
if (markdownContent === lastProcessedContent) {
|
|
@@ -766,14 +782,14 @@ async function initializeMarkdownPlugin() {
|
|
|
766
782
|
}
|
|
767
783
|
return;
|
|
768
784
|
}
|
|
769
|
-
lastProcessedContent = markdownContent;
|
|
770
|
-
|
|
771
785
|
// Ensure we have a string (e.g. $route('path')?.content can be a proxy while loading)
|
|
772
786
|
const contentStr = typeof markdownContent === 'string' ? markdownContent : '';
|
|
773
787
|
if (!contentStr || contentStr.trim() === '') {
|
|
788
|
+
lastProcessedContent = markdownContent;
|
|
774
789
|
if (!bakedOnly) { el.style.opacity = '0'; hasContent = false; }
|
|
775
790
|
return;
|
|
776
791
|
}
|
|
792
|
+
const job = inflight = { content: markdownContent, gen, run: gen };
|
|
777
793
|
|
|
778
794
|
const marked = await loadMarkedJS();
|
|
779
795
|
let html = marked.parse(contentStr);
|
|
@@ -785,6 +801,10 @@ async function initializeMarkdownPlugin() {
|
|
|
785
801
|
html = applyInlineCodeAttributes(html);
|
|
786
802
|
|
|
787
803
|
html = await maybeSanitizeMarkdownHtml(html, safe);
|
|
804
|
+
await loadModulesFor(html);
|
|
805
|
+
if (inflight === job) inflight = null;
|
|
806
|
+
if (job.gen !== renderGen || destroyed) return;
|
|
807
|
+
lastProcessedContent = markdownContent;
|
|
788
808
|
|
|
789
809
|
if (el.innerHTML !== html) {
|
|
790
810
|
// Create temporary container
|
|
@@ -843,6 +863,8 @@ async function initializeMarkdownPlugin() {
|
|
|
843
863
|
window._manifestHeadings[headingsSectionId] = headings;
|
|
844
864
|
}
|
|
845
865
|
} finally {
|
|
866
|
+
// A render that threw does not keep standing for later runs
|
|
867
|
+
if (inflight && inflight.run === gen) inflight = null;
|
|
846
868
|
mdDone();
|
|
847
869
|
}
|
|
848
870
|
});
|
|
@@ -881,6 +903,7 @@ async function initializeMarkdownPlugin() {
|
|
|
881
903
|
|
|
882
904
|
// Apply opt-in DOMPurify sanitization for x-markdown.safe
|
|
883
905
|
html = await maybeSanitizeMarkdownHtml(html, safe);
|
|
906
|
+
await loadModulesFor(html);
|
|
884
907
|
|
|
885
908
|
// Create temporary container
|
|
886
909
|
const temp = document.createElement('div');
|
|
@@ -970,7 +993,9 @@ async function initializeMarkdownPlugin() {
|
|
|
970
993
|
// [x-markdown] misses modifier forms (x-markdown.safe); match by attribute name
|
|
971
994
|
const isMarkdownAttr = (n) => n === 'x-markdown' || n.startsWith('x-markdown.');
|
|
972
995
|
function findMarkdownElements() {
|
|
973
|
-
|
|
996
|
+
// Held by the loader until this module registered: started by it, not here
|
|
997
|
+
const held = window.__manifestHeld || (() => false);
|
|
998
|
+
return [...document.querySelectorAll('*')].filter(el => el.getAttributeNames().some(isMarkdownAttr) && !held(el));
|
|
974
999
|
}
|
|
975
1000
|
|
|
976
1001
|
// Track initialization to prevent duplicates
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){if(!window.ManifestVendor){const e="https://cdn.jsdelivr.net/npm/";window.ManifestVendor={get checked(){return!(!window.Manifest||!window.Manifest.integrity)},script(t,n){const i=window.Manifest;return i&&i.loadVendor?i.loadVendor(t,n):new Promise((i,r)=>{const o=e+t,a=document.querySelector(`script[src="${o}"]`);if(a&&a.dataset.vendorLoaded)return i();const s=a||document.createElement("script");if(s.addEventListener("load",()=>{s.dataset.vendorLoaded="1",i()}),s.addEventListener("error",()=>r(new Error(`Failed to load ${o}`))),a){const e=()=>{try{return performance.getEntriesByName(o).length>0}catch(e){return!1}},t=setInterval(()=>{e()&&(clearInterval(t),i())},50);return void setTimeout(()=>{clearInterval(t),i()},4e3)}n&&(s.integrity=n,s.crossOrigin="anonymous"),s.src=o,document.head.appendChild(s)})},fetch(t,n){const i=window.Manifest;return i&&i.fetchVendor?i.fetchVendor(t,n):fetch(e+t,n?{integrity:n,mode:"cors",credentials:"omit"}:void 0).then(n=>{if(!n.ok)throw new Error(`Failed to load ${e+t}`);return n})}}}let e=null;const t=new Map;"undefined"!=typeof window&&window.addEventListener("manifest:dev-reload",()=>{t.clear()});const n={USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","template","dialog","video","audio"],FORBID_ATTR:["style","popover","popovertarget","popovertargetaction","formaction","command","commandfor","autoplay","background"],ALLOW_DATA_ATTR:!1,SANITIZE_NAMED_PROPS:!0},i=new Set(["brand","accent","positive","negative","frame"]);async function r(e,t){if(!t)return e;try{return function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll('input[type="image" i]').forEach(e=>e.remove()),t.content.querySelectorAll("[class]").forEach(e=>{const t="ASIDE"===e.tagName?[...e.classList].filter(e=>i.has(e)):[];t.length?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}),t.content.querySelectorAll('a[href^="#"]').forEach(e=>{const n=e.getAttribute("href").slice(1);let i;try{i=decodeURIComponent(n)}catch{i=n}i&&t.content.getElementById("user-content-"+i)&&e.setAttribute("href","#user-content-"+i)}),t.innerHTML}((await window.ManifestDOMPurify.load()).sanitize(e,n))}catch{const t=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return console.warn("[Manifest Markdown] x-markdown.safe: DOMPurify unavailable — emitting escaped text."),t}}async function o(){return"undefined"!=typeof marked?marked:e||(e=window.ManifestVendor.script("marked@15.0.12/marked.min.js","sha384-948ahk4ZmxYVYOc+rxN1H2gM1EJ2Duhp7uHtZ4WSLkV4Vtx5MUqnV+l7u9B+jFv+").then(()=>{if("undefined"==typeof marked)throw new Error("marked.js failed to load");return marked}).catch(t=>{throw console.error("[Manifest Markdown] marked.js failed to load:",t),e=null,t}),e)}function a(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function s(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function l(e){return e.replace(/(<(?:div|section|article|aside)[^>]*\bx-code-group\b[^>]*>)(?!\s*\n)/g,"$1\n")}function c(e){const t=document.createElement("template");t.innerHTML=e;return t.content.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.removeAttribute("disabled")}),t.innerHTML}function d(e){return e.replace(/<code>([^<]*)<\/code>\{([^}\n]+)\}/g,(e,t,n)=>{const i=n.trim().split(/\s+/).filter(Boolean);let r="";const o=[],s=new Set,l=[];for(const e of i)if("copy"===e||"lines"===e||"edit"===e)s.add(e);else if(e.startsWith("."))o.push(e.slice(1));else if(e.includes("=")){const[t,...n]=e.split("="),i=n.join("=").replace(/^["']|["']$/g,"");l.push([t,i])}else/^[a-z][\w-]*$/i.test(e)&&!r&&(r=e);let c="";r&&(c+=` x-code="${a(r)}"`);for(const e of s)c+=` ${e}`;o.length&&(c+=` class="${a(o.join(" "))}"`);for(const[e,t]of l)c+=` ${e}="${a(t)}"`;return`<code${c}>${t}</code>`})}async function f(){try{const e=await o();await async function(e){e.use({renderer:{code(e){const t=e.lang||"",n=e.text||"",i=function(e){const t={title:null,language:null,lines:!1,copy:!1,edit:!1,collapse:null,from:null};if(!e||""===e.trim())return t;const n=e.split(/\s+/);let i=0;for(;i<n.length;){const e=n[i];if("lines"!==e)if("copy"!==e)if("edit"!==e)if("collapse"!==e)if(e.startsWith("collapse="))t.collapse=e.slice(9).replace(/^"|"$/g,""),i++;else if(e.startsWith("from="))t.from=e.slice(5).replace(/^"|"$/g,""),i++;else if(e.startsWith('"')&&e.endsWith('"')&&e.length>1)t.title=e.slice(1,-1),i++;else{if(e.startsWith('"')){let r=e.slice(1);for(i++;i<n.length;){const e=n[i];if(e.endsWith('"')){r+=" "+e.slice(0,-1),t.title=r,i++;break}r+=" "+e,i++}continue}t.language||(t.language=e),i++}else t.collapse="",i++;else t.edit=!0,i++;else t.copy=!0,i++;else t.lines=!0,i++}return t}(t);let r="";return r+=` x-code="${i.language?a(i.language):""}"`,i.title&&(r+=` name="${a(i.title)}"`),i.lines&&(r+=" lines"),i.copy&&(r+=" copy"),i.edit&&(r+=" edit"),null!==i.collapse&&(r+=""===i.collapse?" collapse":` collapse="${a(i.collapse)}"`),i.from&&(r+=` from="${a(i.from)}"`),`<pre${r}><code>${s(n)}</code></pre>\n`}},breaks:!0,gfm:!0}),e.use({extensions:[{name:"callout",level:"block",start:e=>e.match(/^:::/)?.index,tokenizer(e){const t=e.match(/^:::(.*?)(?:\n|$)/);if(!t)return;const n=t[1].trim();let i="",r="",o="";const a=n.match(/icon="([^"]+)"/);a&&(r=a[1]);const s=n.replace(/\s*icon="[^"]+"\s*/," "),l=s.match(/"([^"]+)"/);l&&(o=l[1]),i=s.replace(/\s*"[^"]+"\s*/," ").replace(/\s+/g," ").trim();const c=t[0].length,d=e.slice(c),f=d.match(/\n:::/);if(f){const e=d.slice(0,f.index);return{type:"callout",raw:t[0]+e+f[0],classes:i,iconValue:r,nameValue:o,text:e.trim()}}},renderer(t){let n=t.classes||"";const i=t.iconValue||"",r=t.nameValue||"",o=/\bframe\b/.test(n)&&/\bdemo\b/.test(n);let l;o&&(n=n.replace(/\bdemo\b/,"").replace(/\s+/g," ").trim()),l=n.includes("frame")?t.text:e.parse(t.text);const c=i?`<span x-icon="${a(i)}"></span>`:"",d=document.createElement("template");d.innerHTML=l;const f=d.content.children.length>=2&&i?`<div>${l}</div>`:l,u=r?` name="${a(r)}"`:"",p=`<aside${n?` class="${n}"`:""}${u}>${c}${f}</aside>`;return o?`${p}\n<pre x-code="html" copy${u}><code>${s(t.text.trim())}</code></pre>\n`:`${p}\n`}}]}),e.setOptions({headerIds:!1,mangle:!1})}(e),e.use({renderer:{heading(e){const t=e.text||"",n=e.depth||1;return`<h${n} id="${t.toLowerCase().replace(/[^\w]+/g,"-").replace(/^-+|-+$/g,"")}">${t}</h${n}>`}}});const n=p(),i=!(!document.querySelector('meta[name="manifest:prerendered"]')||"0"===document.querySelector('meta[name="manifest:prerendered"]').getAttribute("content")),f=()=>(window.__manifestMarkdownPending=(window.__manifestMarkdownPending||0)+1,()=>{window.__manifestMarkdownPending=Math.max(0,(window.__manifestMarkdownPending||1)-1),0===window.__manifestMarkdownPending&&window.dispatchEvent(new CustomEvent("manifest:markdown-idle"))});Alpine.directive("markdown",(e,{expression:n,modifiers:a},{effect:s,evaluateLater:u,cleanup:p})=>{const m=Array.isArray(a)&&a.includes("safe");if(!n)return;const w=i&&e.innerHTML&&""!==e.innerHTML.trim();w||(e.style.opacity="0",e.style.transition="opacity 0.15s ease-in-out");let h="",g=!1,y=w;const v=e=>{const t=e.split("\n"),n=t.filter(e=>e.trim()).reduce((e,t)=>{const n=t.match(/^\s*/)[0].length;return Math.min(e,n)},1/0);return t.map(e=>e.slice(n)).join("\n").trim()},M=async(e,t=null)=>{if(g)return;g=!0;const n=f();try{if(null!==t&&""!==t.trim()&&(h=v(t)),!h||""===h.trim())return void(y||(e.style.opacity="0"));const n=await o(),i=l(h);let a=n.parse(i);if(a=c(a),a=d(a),a=await r(a,m),e.innerHTML!==a&&""!==a.trim()){const t=document.createElement("div");for(t.innerHTML=a,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}})),y=!0,e.style.opacity="1"}else y||(e.style.opacity="0")}finally{g=!1,n()}};if(!n||"inline"===n){h=v(e.textContent),M(e);return void new MutationObserver(t=>{let n=null;for(const i of t)if("childList"===i.type){const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE);if(t.length>0){n=t.map(e=>e.textContent).join("");break}}else if("characterData"===i.type){n=i.target.textContent;break}n&&""!==n.trim()&&M(e,n)}).observe(e,{characterData:!0,childList:!0,subtree:!0,characterDataOldValue:!0})}const $=n.trim(),A=$.includes("+")||$.includes("`")||$.includes("${")||$.startsWith("$")||$.startsWith("'")||$.startsWith('"'),b=/\.(md|markdown)([?#]|$)/i.test($)||/^[\w./-]*\/[\w./-]*$/.test($),k=!b&&/^[A-Za-z_$][\w$]*(\s*(\?\.|\.)\s*[A-Za-z_$][\w$]*|\s*\[[^\]]*\]|\s*\([^()]*\))+$/.test($),E=!b&&/^[A-Za-z_$][\w$]*$/.test($);let T=n;A||(T=k?`(() => { try { return ${$} } catch (_) { return undefined } })()`:E?`(typeof ${$} === 'undefined' ? '${$}' : ${$})`:`'${n.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n")}'`);const x=u(T);let L=null,_=w,C=null,H=!1;p(()=>{H=!0,C&&window._manifestHeadings&&delete window._manifestHeadings[C]}),s(()=>{x(async i=>{const s=f();try{if(!i||void 0===i||""===i)return void(_||(e.style.opacity="0",y=!1));void 0===i&&(i=n);const s="string"==typeof i&&!/\s/.test(i)&&(/\.(md|markdown)([?#]|$)/i.test(i)||/^[\w./-]*\/[\w./-]*$/.test(i));let l=i;if(s)try{let n=i;if(!i.startsWith("/")){const e=(("function"==typeof window.getManifestBase?window.getManifestBase():"")||"").replace(/\/$/,"")||"";n=(e?e+"/":"/")+i}try{e.setAttribute("data-mnfst-md-src",n)}catch(e){}if(t.has(n))l=t.get(n);else{const e=await fetch(n);e.ok?(l=await e.text(),t.set(n,l)):(console.warn(`[Manifest] Failed to fetch markdown file: ${n}`),l=`# Error Loading Content\n\nCould not load: ${n}`,t.set(n,l))}}catch(e){console.error(`[Manifest] Error fetching markdown file: ${i}`,e),l=`# Error Loading Content\n\nCould not load: ${i}\n\nError: ${e.message}`,resolvedPath&&t.set(resolvedPath,l)}if(l===L)return void(e.innerHTML&&""!==e.innerHTML.trim()&&(y=!0,e.style.opacity="1"));L=l;const f="string"==typeof l?l:"";if(!f||""===f.trim())return void(_||(e.style.opacity="0",y=!1));let u=(await o()).parse(f);if(u=c(u),u=d(u),u=await r(u,m),e.innerHTML!==u){const t=document.createElement("div");for(t.innerHTML=u,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.Alpine&&"function"==typeof window.Alpine.initTree&&(window.Alpine.nextTick?window.Alpine.nextTick(()=>{window.Alpine.initTree(e)}):setTimeout(()=>{window.Alpine.initTree(e)},0)),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}if(y=!0,_=!1,e.style.opacity="1",a.includes("headings")&&!H){const t=[];e.querySelectorAll("h1, h2, h3").forEach(e=>{t.push({id:e.id,text:e.textContent,level:parseInt(e.tagName.charAt(1))})}),C||(C="markdown-"+Math.random().toString(36).substr(2,9)),e.setAttribute("data-headings-section",C),window._manifestHeadings||(window._manifestHeadings={}),window._manifestHeadings[C]=t}}finally{s()}})})}),n.length>0&&n.forEach(e=>{const t=e.getAttributeNames().find(u),n=e.getAttribute(t),i=t.split(".").includes("safe");Alpine.$data(e);if(n.startsWith("'")&&n.endsWith("'")){const t=n.slice(1,-1);(async(e,t=null)=>{try{if(!t)return;const n=await o(),a=l(t);let s=n.parse(a);s=s.replace(/<input type="checkbox"([^>]*?)disabled([^>]*?)>/g,'<input type="checkbox"$1$2>'),s=d(s),s=await r(s,i);const c=document.createElement("div");for(c.innerHTML=s,e.innerHTML="";c.firstChild;)e.appendChild(c.firstChild);const f=(t=0)=>{var n;window.Alpine&&"function"==typeof window.Alpine.initTree?"function"!=typeof window._$xProxyFactory&&t<5?setTimeout(()=>f(t+1),50):(n=()=>{try{window.Alpine.initTree(e)}catch(e){console.error("[Manifest Markdown] Error initializing Alpine tree (updateContent):",e)}},window.Alpine?.nextTick?window.Alpine.nextTick(n):setTimeout(n,0)):t<5&&setTimeout(()=>f(t+1),50)};f(),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}catch(e){console.error("[Manifest Markdown] Failed to process element:",e)}})(e,t)}else{const i=n;e.removeAttribute(t),setTimeout(()=>{e.setAttribute(t,i)},50)}})}catch(e){console.error("[Manifest] Failed to initialize markdown plugin:",e)}}window.ManifestDOMPurify||(window.ManifestDOMPurify={_promise:null,load(){return void 0!==window.DOMPurify?Promise.resolve(window.DOMPurify):(this._promise||(this._promise=window.ManifestVendor.script("dompurify@3.4.10/dist/purify.min.js","sha384-eguRoJERj8ghOpzO//Rl7+ScQsQIR1cH+ajll7+fG+IpbNPlkZsQn9h8ccr+wPXx").then(()=>{if(void 0===window.DOMPurify)throw new Error("DOMPurify failed to load");return window.DOMPurify}).catch(e=>{throw this._promise=null,e})),this._promise)}}),o().catch(()=>{});const u=e=>"x-markdown"===e||e.startsWith("x-markdown.");function p(){return[...document.querySelectorAll("*")].filter(e=>e.getAttributeNames().some(u))}let m=!1,w=!1;async function h(){if(!m&&window.Alpine&&"function"==typeof window.Alpine.directive&&(m=!0,await f(),w&&"function"==typeof window.Alpine.initTree)){p().forEach(e=>{e.__x||window.Alpine.initTree(e)})}}document.addEventListener("alpine:initialized",()=>{w=!0}),window.ensureMarkdownPluginInitialized=h,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",h),document.addEventListener("alpine:init",h),window.Alpine&&"function"==typeof window.Alpine.directive&&h()}();
|
|
1
|
+
!function(){if(!window.ManifestVendor){const e="https://cdn.jsdelivr.net/npm/";window.ManifestVendor={get checked(){return!(!window.Manifest||!window.Manifest.integrity)},script(t,n){const i=window.Manifest;return i&&i.loadVendor?i.loadVendor(t,n):new Promise((i,o)=>{const r=e+t,a=document.querySelector(`script[src="${r}"]`);if(a&&a.dataset.vendorLoaded)return i();const s=a||document.createElement("script");if(s.addEventListener("load",()=>{s.dataset.vendorLoaded="1",i()}),s.addEventListener("error",()=>o(new Error(`Failed to load ${r}`))),a){const e=()=>{try{return performance.getEntriesByName(r).length>0}catch(e){return!1}},t=setInterval(()=>{e()&&(clearInterval(t),i())},50);return void setTimeout(()=>{clearInterval(t),i()},4e3)}n&&(s.integrity=n,s.crossOrigin="anonymous"),s.src=r,document.head.appendChild(s)})},fetch(t,n){const i=window.Manifest;return i&&i.fetchVendor?i.fetchVendor(t,n):fetch(e+t,n?{integrity:n,mode:"cors",credentials:"omit"}:void 0).then(n=>{if(!n.ok)throw new Error(`Failed to load ${e+t}`);return n})}}}let e=null;const t=new Map;"undefined"!=typeof window&&window.addEventListener("manifest:dev-reload",()=>{t.clear()});const n={USE_PROFILES:{html:!0},FORBID_TAGS:["style","form","template","dialog","video","audio"],FORBID_ATTR:["style","popover","popovertarget","popovertargetaction","formaction","command","commandfor","autoplay","background"],ALLOW_DATA_ATTR:!1,SANITIZE_NAMED_PROPS:!0},i=new Set(["brand","accent","positive","negative","frame"]);async function o(e,t){if(!t)return e;try{return function(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll('input[type="image" i]').forEach(e=>e.remove()),t.content.querySelectorAll("[class]").forEach(e=>{const t="ASIDE"===e.tagName?[...e.classList].filter(e=>i.has(e)):[];t.length?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}),t.content.querySelectorAll('a[href^="#"]').forEach(e=>{const n=e.getAttribute("href").slice(1);let i;try{i=decodeURIComponent(n)}catch{i=n}i&&t.content.getElementById("user-content-"+i)&&e.setAttribute("href","#user-content-"+i)}),t.innerHTML}((await window.ManifestDOMPurify.load()).sanitize(e,n))}catch{const t=String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return console.warn("[Manifest Markdown] x-markdown.safe: DOMPurify unavailable — emitting escaped text."),t}}async function r(){return"undefined"!=typeof marked?marked:e||(e=window.ManifestVendor.script("marked@15.0.12/marked.min.js","sha384-948ahk4ZmxYVYOc+rxN1H2gM1EJ2Duhp7uHtZ4WSLkV4Vtx5MUqnV+l7u9B+jFv+").then(()=>{if("undefined"==typeof marked)throw new Error("marked.js failed to load");return marked}).catch(t=>{throw console.error("[Manifest Markdown] marked.js failed to load:",t),e=null,t}),e)}function a(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function s(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function l(e){return e.replace(/(<(?:div|section|article|aside)[^>]*\bx-code-group\b[^>]*>)(?!\s*\n)/g,"$1\n")}function c(e){const t=document.createElement("template");t.innerHTML=e;return t.content.querySelectorAll('input[type="checkbox"]').forEach(e=>{e.removeAttribute("disabled")}),t.innerHTML}function d(e){return e.replace(/<code>([^<]*)<\/code>\{([^}\n]+)\}/g,(e,t,n)=>{const i=n.trim().split(/\s+/).filter(Boolean);let o="";const r=[],s=new Set,l=[];for(const e of i)if("copy"===e||"lines"===e||"edit"===e)s.add(e);else if(e.startsWith("."))r.push(e.slice(1));else if(e.includes("=")){const[t,...n]=e.split("="),i=n.join("=").replace(/^["']|["']$/g,"");l.push([t,i])}else/^[a-z][\w-]*$/i.test(e)&&!o&&(o=e);let c="";o&&(c+=` x-code="${a(o)}"`);for(const e of s)c+=` ${e}`;r.length&&(c+=` class="${a(r.join(" "))}"`);for(const[e,t]of l)c+=` ${e}="${a(t)}"`;return`<code${c}>${t}</code>`})}async function u(e){try{window.Manifest&&"function"==typeof window.Manifest.loadUsed&&await window.Manifest.loadUsed(e)}catch(e){}}async function f(){try{const e=await r();await async function(e){e.use({renderer:{code(e){const t=e.lang||"",n=e.text||"",i=function(e){const t={title:null,language:null,lines:!1,copy:!1,edit:!1,collapse:null,from:null};if(!e||""===e.trim())return t;const n=e.split(/\s+/);let i=0;for(;i<n.length;){const e=n[i];if("lines"!==e)if("copy"!==e)if("edit"!==e)if("collapse"!==e)if(e.startsWith("collapse="))t.collapse=e.slice(9).replace(/^"|"$/g,""),i++;else if(e.startsWith("from="))t.from=e.slice(5).replace(/^"|"$/g,""),i++;else if(e.startsWith('"')&&e.endsWith('"')&&e.length>1)t.title=e.slice(1,-1),i++;else{if(e.startsWith('"')){let o=e.slice(1);for(i++;i<n.length;){const e=n[i];if(e.endsWith('"')){o+=" "+e.slice(0,-1),t.title=o,i++;break}o+=" "+e,i++}continue}t.language||(t.language=e),i++}else t.collapse="",i++;else t.edit=!0,i++;else t.copy=!0,i++;else t.lines=!0,i++}return t}(t);let o="";return o+=` x-code="${i.language?a(i.language):""}"`,i.title&&(o+=` name="${a(i.title)}"`),i.lines&&(o+=" lines"),i.copy&&(o+=" copy"),i.edit&&(o+=" edit"),null!==i.collapse&&(o+=""===i.collapse?" collapse":` collapse="${a(i.collapse)}"`),i.from&&(o+=` from="${a(i.from)}"`),`<pre${o}><code>${s(n)}</code></pre>\n`}},breaks:!0,gfm:!0}),e.use({extensions:[{name:"callout",level:"block",start:e=>e.match(/^:::/)?.index,tokenizer(e){const t=e.match(/^:::(.*?)(?:\n|$)/);if(!t)return;const n=t[1].trim();let i="",o="",r="";const a=n.match(/icon="([^"]+)"/);a&&(o=a[1]);const s=n.replace(/\s*icon="[^"]+"\s*/," "),l=s.match(/"([^"]+)"/);l&&(r=l[1]),i=s.replace(/\s*"[^"]+"\s*/," ").replace(/\s+/g," ").trim();const c=t[0].length,d=e.slice(c),u=d.match(/\n:::/);if(u){const e=d.slice(0,u.index);return{type:"callout",raw:t[0]+e+u[0],classes:i,iconValue:o,nameValue:r,text:e.trim()}}},renderer(t){let n=t.classes||"";const i=t.iconValue||"",o=t.nameValue||"",r=/\bframe\b/.test(n)&&/\bdemo\b/.test(n);let l;r&&(n=n.replace(/\bdemo\b/,"").replace(/\s+/g," ").trim()),l=n.includes("frame")?t.text:e.parse(t.text);const c=i?`<span x-icon="${a(i)}"></span>`:"",d=document.createElement("template");d.innerHTML=l;const u=d.content.children.length>=2&&i?`<div>${l}</div>`:l,f=o?` name="${a(o)}"`:"",w=`<aside${n?` class="${n}"`:""}${f}>${c}${u}</aside>`;return r?`${w}\n<pre x-code="html" copy${f}><code>${s(t.text.trim())}</code></pre>\n`:`${w}\n`}}]}),e.setOptions({headerIds:!1,mangle:!1})}(e),e.use({renderer:{heading(e){const t=e.text||"",n=e.depth||1;return`<h${n} id="${t.toLowerCase().replace(/[^\w]+/g,"-").replace(/^-+|-+$/g,"")}">${t}</h${n}>`}}});const n=p(),i=!(!document.querySelector('meta[name="manifest:prerendered"]')||"0"===document.querySelector('meta[name="manifest:prerendered"]').getAttribute("content")),f=()=>(window.__manifestMarkdownPending=(window.__manifestMarkdownPending||0)+1,()=>{window.__manifestMarkdownPending=Math.max(0,(window.__manifestMarkdownPending||1)-1),0===window.__manifestMarkdownPending&&window.dispatchEvent(new CustomEvent("manifest:markdown-idle"))});Alpine.directive("markdown",(e,{expression:n,modifiers:a},{effect:s,evaluateLater:w,cleanup:p})=>{const m=Array.isArray(a)&&a.includes("safe");if(!n)return;const h=i&&e.innerHTML&&""!==e.innerHTML.trim();h||(e.style.opacity="0",e.style.transition="opacity 0.15s ease-in-out");let g="",y=!1,M=h;const v=e=>{const t=e.split("\n"),n=t.filter(e=>e.trim()).reduce((e,t)=>{const n=t.match(/^\s*/)[0].length;return Math.min(e,n)},1/0);return t.map(e=>e.slice(n)).join("\n").trim()};let $=null;const A=async(e,t=null)=>{if(y)return void($={content:null===t&&$?$.content:t});y=!0;const n=f();try{if(null!==t&&""!==t.trim()&&(g=v(t)),!g||""===g.trim())return void(M||(e.style.opacity="0"));const n=await r(),i=l(g);let a=n.parse(i);if(a=c(a),a=d(a),a=await o(a,m),await u(a),e.innerHTML!==a&&""!==a.trim()){const t=document.createElement("div");for(t.innerHTML=a,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}})),M=!0,e.style.opacity="1"}else M||(e.style.opacity="0")}finally{if(y=!1,n(),$){const t=$;$=null,A(e,t.content)}}};if(!n||"inline"===n){g=v(e.textContent),A(e);return void new MutationObserver(t=>{let n=null;for(const i of t)if("childList"===i.type){const t=Array.from(e.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE);if(t.length>0){n=t.map(e=>e.textContent).join("");break}}else if("characterData"===i.type){n=i.target.textContent;break}n&&""!==n.trim()&&A(e,n)}).observe(e,{characterData:!0,childList:!0,subtree:!0,characterDataOldValue:!0})}const b=n.trim(),k=b.includes("+")||b.includes("`")||b.includes("${")||b.startsWith("$")||b.startsWith("'")||b.startsWith('"'),E=/\.(md|markdown)([?#]|$)/i.test(b)||/^[\w./-]*\/[\w./-]*$/.test(b),T=!E&&/^[A-Za-z_$][\w$]*(\s*(\?\.|\.)\s*[A-Za-z_$][\w$]*|\s*\[[^\]]*\]|\s*\([^()]*\))+$/.test(b),x=!E&&/^[A-Za-z_$][\w$]*$/.test(b);let L=n;k||(L=T?`(() => { try { return ${b} } catch (_) { return undefined } })()`:x?`(typeof ${b} === 'undefined' ? '${b}' : ${b})`:`'${n.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n")}'`);const _=w(L);let C=null,H=h,P=null,S=!1;p(()=>{S=!0,P&&window._manifestHeadings&&delete window._manifestHeadings[P]});let O=0,D=null;s(()=>{_(async i=>{const s=++O,l=f();try{if(!i||void 0===i||""===i)return void(H||(e.style.opacity="0",M=!1));void 0===i&&(i=n);const l="string"==typeof i&&!/\s/.test(i)&&(/\.(md|markdown)([?#]|$)/i.test(i)||/^[\w./-]*\/[\w./-]*$/.test(i));let f=i;if(l)try{let n=i;if(!i.startsWith("/")){const e=(("function"==typeof window.getManifestBase?window.getManifestBase():"")||"").replace(/\/$/,"")||"";n=(e?e+"/":"/")+i}try{e.setAttribute("data-mnfst-md-src",n)}catch(e){}if(t.has(n))f=t.get(n);else{const e=await fetch(n);e.ok?(f=await e.text(),t.set(n,f)):(console.warn(`[Manifest] Failed to fetch markdown file: ${n}`),f=`# Error Loading Content\n\nCould not load: ${n}`,t.set(n,f))}}catch(e){console.error(`[Manifest] Error fetching markdown file: ${i}`,e),f=`# Error Loading Content\n\nCould not load: ${i}\n\nError: ${e.message}`,resolvedPath&&t.set(resolvedPath,f)}if(s!==O)return;if(D&&D.content===f)return void(D.gen=s);if(f===C)return void(e.innerHTML&&""!==e.innerHTML.trim()&&(M=!0,e.style.opacity="1"));const w="string"==typeof f?f:"";if(!w||""===w.trim())return C=f,void(H||(e.style.opacity="0",M=!1));const p=D={content:f,gen:s,run:s};let h=(await r()).parse(w);if(h=c(h),h=d(h),h=await o(h,m),await u(h),D===p&&(D=null),p.gen!==O||S)return;if(C=f,e.innerHTML!==h){const t=document.createElement("div");for(t.innerHTML=h,e.innerHTML="";t.firstChild;)e.appendChild(t.firstChild);window.Alpine&&"function"==typeof window.Alpine.initTree&&(window.Alpine.nextTick?window.Alpine.nextTick(()=>{window.Alpine.initTree(e)}):setTimeout(()=>{window.Alpine.initTree(e)},0)),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}if(M=!0,H=!1,e.style.opacity="1",a.includes("headings")&&!S){const t=[];e.querySelectorAll("h1, h2, h3").forEach(e=>{t.push({id:e.id,text:e.textContent,level:parseInt(e.tagName.charAt(1))})}),P||(P="markdown-"+Math.random().toString(36).substr(2,9)),e.setAttribute("data-headings-section",P),window._manifestHeadings||(window._manifestHeadings={}),window._manifestHeadings[P]=t}}finally{D&&D.run===s&&(D=null),l()}})})}),n.length>0&&n.forEach(e=>{const t=e.getAttributeNames().find(w),n=e.getAttribute(t),i=t.split(".").includes("safe");Alpine.$data(e);if(n.startsWith("'")&&n.endsWith("'")){const t=n.slice(1,-1);(async(e,t=null)=>{try{if(!t)return;const n=await r(),a=l(t);let s=n.parse(a);s=s.replace(/<input type="checkbox"([^>]*?)disabled([^>]*?)>/g,'<input type="checkbox"$1$2>'),s=d(s),s=await o(s,i),await u(s);const c=document.createElement("div");for(c.innerHTML=s,e.innerHTML="";c.firstChild;)e.appendChild(c.firstChild);const f=(t=0)=>{var n;window.Alpine&&"function"==typeof window.Alpine.initTree?"function"!=typeof window._$xProxyFactory&&t<5?setTimeout(()=>f(t+1),50):(n=()=>{try{window.Alpine.initTree(e)}catch(e){console.error("[Manifest Markdown] Error initializing Alpine tree (updateContent):",e)}},window.Alpine?.nextTick?window.Alpine.nextTick(n):setTimeout(n,0)):t<5&&setTimeout(()=>f(t+1),50)};f(),window.ManifestCode?.observeAll&&window.ManifestCode.observeAll(e),document.dispatchEvent(new CustomEvent("manifest:code-blocks-converted",{bubbles:!0,detail:{root:e}}))}catch(e){console.error("[Manifest Markdown] Failed to process element:",e)}})(e,t)}else{const i=n;e.removeAttribute(t),setTimeout(()=>{e.setAttribute(t,i)},50)}})}catch(e){console.error("[Manifest] Failed to initialize markdown plugin:",e)}}window.ManifestDOMPurify||(window.ManifestDOMPurify={_promise:null,load(){return void 0!==window.DOMPurify?Promise.resolve(window.DOMPurify):(this._promise||(this._promise=window.ManifestVendor.script("dompurify@3.4.10/dist/purify.min.js","sha384-eguRoJERj8ghOpzO//Rl7+ScQsQIR1cH+ajll7+fG+IpbNPlkZsQn9h8ccr+wPXx").then(()=>{if(void 0===window.DOMPurify)throw new Error("DOMPurify failed to load");return window.DOMPurify}).catch(e=>{throw this._promise=null,e})),this._promise)}}),r().catch(()=>{});const w=e=>"x-markdown"===e||e.startsWith("x-markdown.");function p(){const e=window.__manifestHeld||(()=>!1);return[...document.querySelectorAll("*")].filter(t=>t.getAttributeNames().some(w)&&!e(t))}let m=!1,h=!1;async function g(){if(!m&&window.Alpine&&"function"==typeof window.Alpine.directive&&(m=!0,await f(),h&&"function"==typeof window.Alpine.initTree)){p().forEach(e=>{e.__x||window.Alpine.initTree(e)})}}document.addEventListener("alpine:initialized",()=>{h=!0}),window.ensureMarkdownPluginInitialized=g,"loading"===document.readyState&&document.addEventListener("DOMContentLoaded",g),document.addEventListener("alpine:init",g),window.Alpine&&"function"==typeof window.Alpine.directive&&g()}();
|
|
2
2
|
//# sourceMappingURL=manifest.markdown.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.markdown.min.js","names":["window","ManifestVendor","CDN","checked","Manifest","integrity","script","path","hash","M","loadVendor","Promise","resolve","reject","src","found","document","querySelector","dataset","vendorLoaded","s","createElement","addEventListener","Error","done","performance","getEntriesByName","length","_","poll","setInterval","clearInterval","setTimeout","crossOrigin","head","appendChild","fetch","fetchVendor","mode","credentials","undefined","then","r","ok","markedPromise","markdownCache","Map","clear","MARKDOWN_PURIFY_CONFIG","USE_PROFILES","html","FORBID_TAGS","FORBID_ATTR","ALLOW_DATA_ATTR","SANITIZE_NAMED_PROPS","MARKDOWN_SAFE_CLASSES","Set","async","maybeSanitizeMarkdownHtml","safe","t","innerHTML","content","querySelectorAll","forEach","el","remove","keep","tagName","classList","filter","c","has","setAttribute","join","removeAttribute","a","raw","getAttribute","slice","id","decodeURIComponent","getElementById","restrictSafeClasses","ManifestDOMPurify","load","sanitize","escaped","String","replace","console","warn","loadMarkedJS","marked","catch","error","escapeForAttribute","escapeForText","renderXCodeGroup","markdown","enableCheckboxes","temp","checkbox","applyInlineCodeAttributes","body","attrString","tokens","trim","split","Boolean","language","classes","flags","kv","tok","add","startsWith","push","includes","k","rest","v","test","attrs","flag","initializeMarkdownPlugin","use","renderer","code","token","lang","text","languageString","attributes","title","lines","copy","edit","collapse","from","parts","i","part","endsWith","fullName","next","parseLanguageString","preAttrs","breaks","gfm","extensions","name","level","start","match","index","tokenizer","openMatch","openingLine","iconValue","nameValue","iconMatch","withoutIcon","nameMatch","startPos","remainingContent","closeMatch","type","isDemo","parsedContent","parse","iconHtml","wrappedContent","children","nameAttr","aside","setOptions","headerIds","mangle","configureMarked","heading","depth","toLowerCase","existingMarkdownElements","findMarkdownElements","isPrerenderedPage","mdTrack","__manifestMarkdownPending","Math","max","dispatchEvent","CustomEvent","Alpine","directive","expression","modifiers","effect","evaluateLater","cleanup","Array","isArray","hasBakedContent","style","opacity","transition","markdownSource","isUpdating","hasContent","normalizeContent","commonIndent","line","reduce","min","indent","Infinity","map","updateContent","element","newContent","mdDone","processedMarkdown","firstChild","ManifestCode","observeAll","bubbles","detail","root","textContent","MutationObserver","mutations","mutation","textNodes","childNodes","node","nodeType","Node","TEXT_NODE","target","observe","characterData","childList","subtree","characterDataOldValue","trimmed","isExplicitExpression","looksLikePath","isMemberChain","isBareIdentifier","processedExpression","getMarkdownContent","lastProcessedContent","bakedOnly","headingsSectionId","destroyed","_manifestHeadings","pathOrContent","isFilePath","markdownContent","resolvedPath","basePath","getManifestBase","get","response","set","message","contentStr","initTree","nextTick","headings","parseInt","charAt","random","toString","substr","attrName","getAttributeNames","find","isMarkdownAttr","$data","initAlpine","retryCount","fn","_$xProxyFactory","e","originalExpression","_promise","DOMPurify","this","err","n","some","markdownPluginInitialized","markdownAlpineHasWalked","ensureMarkdownPluginInitialized","__x","readyState"],"sources":["manifest.markdown.js"],"mappings":"CAEA,WAKA,IAAKA,OAAOC,eAAgB,CACxB,MAAMC,EAAM,gCACZF,OAAOC,eAAiB,CACpB,WAAIE,GAAY,SAAUH,OAAOI,WAAYJ,OAAOI,SAASC,UAAY,EACzE,MAAAC,CAAOC,EAAMC,GACT,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAEC,WAAmBD,EAAEC,WAAWH,EAAMC,GAC1C,IAAIG,QAAQ,CAACC,EAASC,KACzB,MAAMC,EAAMZ,EAAMK,EACZQ,EAAQC,SAASC,cAAc,eAAeH,OACpD,GAAIC,GAASA,EAAMG,QAAQC,aAAc,OAAOP,IAChD,MAAMQ,EAAIL,GAASC,SAASK,cAAc,UAG1C,GAFAD,EAAEE,iBAAiB,OAAQ,KAAQF,EAAEF,QAAQC,aAAe,IAAKP,MACjEQ,EAAEE,iBAAiB,QAAS,IAAMT,EAAO,IAAIU,MAAM,kBAAkBT,OACjEC,EAAO,CAGP,MAAMS,EAAO,KAAQ,IAAM,OAAOC,YAAYC,iBAAiBZ,GAAKa,OAAS,CAAG,CAAE,MAAOC,GAAK,OAAO,CAAO,GACtGC,EAAOC,YAAY,KAAYN,MAAUO,cAAcF,GAAOjB,MAAgB,IAEpF,YADAoB,WAAW,KAAQD,cAAcF,GAAOjB,KAAc,IAE1D,CACIJ,IAAQY,EAAEf,UAAYG,EAAMY,EAAEa,YAAc,aAChDb,EAAEN,IAAMA,EACRE,SAASkB,KAAKC,YAAYf,IAElC,EACA,KAAAgB,CAAM7B,EAAMC,GACR,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAE4B,YAAoB5B,EAAE4B,YAAY9B,EAAMC,GAC5C4B,MAAMlC,EAAMK,EAAMC,EAAO,CAAEH,UAAWG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,SAASM,iBAAiB,qBAAsB,KAAQ8Q,GAA0B,IA0BlFpS,OAAOqS,gCAAkCA,EAGb,YAAxBrR,SAASuR,YACTvR,SAASM,iBAAiB,mBAAoB+Q,GAGlDrR,SAASM,iBAAiB,cAAe+Q,GAGrCrS,OAAOgM,QAA6C,mBAA5BhM,OAAOgM,OAAOC,WACtCoG,GAGH,CA1/BD","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"manifest.markdown.min.js","names":["window","ManifestVendor","CDN","checked","Manifest","integrity","script","path","hash","M","loadVendor","Promise","resolve","reject","src","found","document","querySelector","dataset","vendorLoaded","s","createElement","addEventListener","Error","done","performance","getEntriesByName","length","_","poll","setInterval","clearInterval","setTimeout","crossOrigin","head","appendChild","fetch","fetchVendor","mode","credentials","undefined","then","r","ok","markedPromise","markdownCache","Map","clear","MARKDOWN_PURIFY_CONFIG","USE_PROFILES","html","FORBID_TAGS","FORBID_ATTR","ALLOW_DATA_ATTR","SANITIZE_NAMED_PROPS","MARKDOWN_SAFE_CLASSES","Set","async","maybeSanitizeMarkdownHtml","safe","t","innerHTML","content","querySelectorAll","forEach","el","remove","keep","tagName","classList","filter","c","has","setAttribute","join","removeAttribute","a","raw","getAttribute","slice","id","decodeURIComponent","getElementById","restrictSafeClasses","ManifestDOMPurify","load","sanitize","escaped","String","replace","console","warn","loadMarkedJS","marked","catch","error","escapeForAttribute","escapeForText","renderXCodeGroup","markdown","enableCheckboxes","temp","checkbox","applyInlineCodeAttributes","body","attrString","tokens","trim","split","Boolean","language","classes","flags","kv","tok","add","startsWith","push","includes","k","rest","v","test","attrs","flag","loadModulesFor","loadUsed","initializeMarkdownPlugin","use","renderer","code","token","lang","text","languageString","attributes","title","lines","copy","edit","collapse","from","parts","i","part","endsWith","fullName","next","parseLanguageString","preAttrs","breaks","gfm","extensions","name","level","start","match","index","tokenizer","openMatch","openingLine","iconValue","nameValue","iconMatch","withoutIcon","nameMatch","startPos","remainingContent","closeMatch","type","isDemo","parsedContent","parse","iconHtml","wrappedContent","children","nameAttr","aside","setOptions","headerIds","mangle","configureMarked","heading","depth","toLowerCase","existingMarkdownElements","findMarkdownElements","isPrerenderedPage","mdTrack","__manifestMarkdownPending","Math","max","dispatchEvent","CustomEvent","Alpine","directive","expression","modifiers","effect","evaluateLater","cleanup","Array","isArray","hasBakedContent","style","opacity","transition","markdownSource","isUpdating","hasContent","normalizeContent","commonIndent","line","reduce","min","indent","Infinity","map","queued","updateContent","element","newContent","mdDone","processedMarkdown","firstChild","ManifestCode","observeAll","bubbles","detail","root","q","textContent","MutationObserver","mutations","mutation","textNodes","childNodes","node","nodeType","Node","TEXT_NODE","target","observe","characterData","childList","subtree","characterDataOldValue","trimmed","isExplicitExpression","looksLikePath","isMemberChain","isBareIdentifier","processedExpression","getMarkdownContent","lastProcessedContent","bakedOnly","headingsSectionId","destroyed","_manifestHeadings","renderGen","inflight","pathOrContent","gen","isFilePath","markdownContent","resolvedPath","basePath","getManifestBase","get","response","set","message","contentStr","job","run","initTree","nextTick","headings","parseInt","charAt","random","toString","substr","attrName","getAttributeNames","find","isMarkdownAttr","$data","initAlpine","retryCount","fn","_$xProxyFactory","e","originalExpression","_promise","DOMPurify","this","err","n","held","__manifestHeld","some","markdownPluginInitialized","markdownAlpineHasWalked","ensureMarkdownPluginInitialized","__x","readyState"],"sources":["manifest.markdown.js"],"mappings":"CAEA,WAKA,IAAKA,OAAOC,eAAgB,CACxB,MAAMC,EAAM,gCACZF,OAAOC,eAAiB,CACpB,WAAIE,GAAY,SAAUH,OAAOI,WAAYJ,OAAOI,SAASC,UAAY,EACzE,MAAAC,CAAOC,EAAMC,GACT,MAAMC,EAAIT,OAAOI,SACjB,OAAIK,GAAKA,EAAEC,WAAmBD,EAAEC,WAAWH,EAAMC,GAC1C,IAAIG,QAAQ,CAACC,EAASC,KACzB,MAAMC,EAAMZ,EAAMK,EACZQ,EAAQC,SAASC,cAAc,eAAeH,OACpD,GAAIC,GAASA,EAAMG,QAAQC,aAAc,OAAOP,I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EAG9BtP,eAAeuP,IACX,IAAIF,GAGC9S,OAAOkM,QAA6C,mBAA5BlM,OAAOkM,OAAOC,YAI3C2G,GAA4B,QACtB/K,IAIFgL,GAA6D,mBAA3B/S,OAAOkM,OAAOiF,UAAyB,CACxCzF,IACR1H,QAAQC,IACxBA,EAAGgP,KACJjT,OAAOkM,OAAOiF,SAASlN,IAGnC,CACJ,CAvBAjD,SAASM,iBAAiB,qBAAsB,KAAQyR,GAA0B,IA0BlF/S,OAAOgT,gCAAkCA,EAGb,YAAxBhS,SAASkS,YACTlS,SAASM,iBAAiB,mBAAoB0R,GAGlDhS,SAASM,iBAAiB,cAAe0R,GAGrChT,OAAOkM,QAA6C,mBAA5BlM,OAAOkM,OAAOC,WACtC6G,GAGH,CAnhCD","ignoreList":[]}
|
package/lib/manifest.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const he=new Map;let ye=0;window.ManifestPending={hold(e="work"){const t=++ye;return he.set(t,e),()=>{he.delete(t)}},get count(){return he.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...he.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let d=!e.closest("[x-data],[x-init]"),l=!1,u=null;const f=()=>!!s.evaluate(e,c),m=()=>{u&&(u(),u=null)},p=()=>{t.delete(y),m()},w=()=>{d=!1,l=!1,m(),i._x_ignore=!0,t.add(y)},g=()=>{p(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},h=()=>{d||e._x_currentIfEl!==i||!i.isConnected||a(e)||(d=!0,l=!1,p(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!d&&!l)return e._x_currentIfEl!==i?p():void(i.isConnected?e._x_marker&&!a(e)&&f()&&h():i.getRootNode()instanceof DocumentFragment||p())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?g():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!l||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{l&&f()&&h()})}));u=()=>s.release(n)})())}),a(e)?w():(d&&(d=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(l||(l=!0,window.addEventListener("manifest:ready",()=>{if(l&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return h();g(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),d||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function d(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&").replace(/"/g,"""),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",d=document.createElement("div");d.innerHTML=c;const l=d.firstElementChild;if(l)try{n.parentNode.replaceChild(l,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),d=o.has(r),l=d?"":n.innerHTML,u=d?"<"+r+" "+c+">":"<"+r+" "+c+">"+l+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const m=f.firstElementChild;if(m)try{n.parentNode.replaceChild(m,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let ve=!1;document.addEventListener("readystatechange",()=>{ve||"loading"===document.readyState||(ve=!0,d())})}else d();if("undefined"!=typeof window&&"undefined"!=typeof document){let _e=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),_e&&clearTimeout(_e),_e=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),_e=null},200)},{passive:!0})}const l="latest",u="0.5.330",f="sha384-Mv7WqVGE2LLYArdLmTAPvGDReXRgrHJiM/uGKW+KHJOgDHOpTOJIXvacnI9+nQls",m="manifest.modules.integrity.json",p="manifest.vendor.integrity.json";let w=null,g=null,h=!1,y=null,v=l,_=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function b(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=l,t=_[0]){return`${t}/mnfst@${e}/lib`}const E=["components","router","utilities","data","icons","localization","markdown","svg","code","color","toasts","tooltips","dropdowns","combobox","computed","tabs","slides","colorpicker","datepicker","charts","url-parameters","virtual","export","status"],L=["defer","bindings"],k=["edit"],S=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions"],M={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let j=null;let x=[];function P(e,t=v){const n=e.replace(/-/g,".");if(j){return[`${j.replace(/\/$/,"")}/manifest.${n}.js`]}return _.map(e=>`${$(t,e)}/${b(e,`manifest.${n}.min.js`)}`)}function C(e,t=v){return P(e,t)[0]}function R(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return _.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function I(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function N(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function T(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(N(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{N(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function O(e){return e.split(/[?#]/)[0].split("/").pop()}function q(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function W(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function U(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function z(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let D=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function F(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&B.test(n)?n:null}async function H(e,t){const n=F(e,t);if(n)return n;const i=F(e,p);return i&&/\/(languages|langs)\//.test(t)?(D||(D=z(_.map(e=>`${$(u,e)}/${p}`),i,p).then(e=>e.json()).catch(e=>{throw D=null,e})),F(await D,t)):null}async function G(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=g&&!o?await g:null,c=t||O(e[0]||"");let d=null;for(const o of e){let c=n;if(s){const e=t||(i?q(o):O(o));c=e&&await H(s,e)||(i?y:null),c||(i?U(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):U(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await T(o,c,r,a)}catch(t){d=t,c?console.error(`[Manifest Loader] ${O(o)} ${W(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),d||new Error(`Failed to load ${c}`)}const J=new Map;async function V(e,t=v){const n=J.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;h&&t!==u&&(U(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return G(P(e,t),{unchecked:n,priority:i})}(e,t);return J.set(e,{version:t,promise:i}),i.catch(()=>J.delete(e)),i}function X(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=M[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const Z=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text"},{plugin:"submissions",attr:"x-submit"},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"}))].map(e=>({...e,re:e.magic?new RegExp("\\"+e.magic+"\\b"):null}));let K=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||K)return;K=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let Q=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||Q)return;Q=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const Y=/^x-(code|code-group)$/,ee=new RegExp("\\$("+Z.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),te=new Set;function ne(e,t=("undefined"==typeof document?null:document)){const n=Z.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)).size+(i?1:0),a=()=>o.size===r;for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(a())return[...o]}const s=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!Y.test(t)&&o.add("components")}for(const t of e.attributes||[]){for(const e of n)e.attr&&!o.has(e.plugin)&&(t.name===e.attr||t.name.startsWith(e.attr+"-")||t.name.startsWith(e.attr+"."))&&o.add(e.plugin);const e=t.value;if(e&&-1!==e.indexOf("$")&&!te.has(e))if(ee.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else te.size>2e4&&te.clear(),te.add(e)}},c=e=>{for(const t of e.querySelectorAll("*")){if(s(t),a())return;if("TEMPLATE"===t.tagName&&t.content&&(c(t.content),a()))return}};return 1===t.nodeType&&(s(t),"TEMPLATE"===t.tagName&&t.content&&c(t.content)),a()||c(t),[...o]}let ie=!1;const oe=new Set,re=e=>J.has(e)||oe.has(e);function ae(e,t=v){if(!ie||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=ne([...new Set(Z.map(e=>e.plugin))].filter(re).concat("components",x),n);if(!i.length)return Promise.resolve([]);const o=X(i).filter(e=>!re(e));return Promise.all(o.map(e=>V(e,t).catch(t=>{oe.has(e)||(oe.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>o)}function se(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>ae(t,e)),Z.every(e=>re(e.plugin)||x.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0})}const ce={"text-edit":"rich-text"};function de(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!ce[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${ce[t]}`),!1)})}async function le(e=v){const t=_.map(t=>`${$(e,t)}/${b(t,"manifest.tailwind.min.js")}`);let n=null;try{return await G(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...E,...A,...S,...k,"payments","chat","device","native","import","tailwind"].includes(e))return ce[e]?de([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=X([e]);return Promise.all(n.map(e=>V(e,t)))},loadTailwind:le,loadVendor:function(e,t){return G(_.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=g?await g:null;let i=t||null;return n&&(i=await H(n,e),i||U(`${e} has no integrity hash in this release.`,"Not loaded.")),z(_.map(t=>`${t}/${e}`),i,e)},get integrity(){return h},getPluginUrl:C,getModuleUrl:C,loadUsed:ae},window.Manifest.loadModule=window.Manifest.loadPlugin;const ue="/sw.js";const fe={registered:!1,version:null,kill:()=>me(null)};async function me(e){fe.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(ue);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function pe(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=function(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,d=await navigator.serviceWorker.getRegistration(ue).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",d?"(unregistering)":""),void await me(d);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let l=null;try{l=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==l||u){const e=await fetch(ue,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${ue} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${ue}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await me(d);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const m=s&&"string"==typeof s.deployment?s.deployment:"",p=`${ue}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(m)}`,g=await navigator.serviceWorker.register(p,{scope:"/"});fe.registered=!0,fe.version=e.version,i("registered",p,g.active?"active":g.installing?"installing":"waiting")}window.Manifest.swStub=function(e=l){const t=`mnfst@${String(e||l).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=fe;const we=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o=e.getAttribute("data-version")||l,r=!!e.getAttribute("data-version"),a=e.getAttribute("data-alpine"),s=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),c=/^(off|false)$/.test(s)?null:"warn"===s?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,d=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),u=e.getAttribute("data-cdn"),f=e.getAttribute("data-sw");let m=[],p=[],w=!t;if(t){const e=de(t.split(",").map(e=>e.trim()).filter(e=>e));p=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?m=[...n,...p]:(w=!0,m=E.slice())}else m=E.slice();const g={native:"device","text-edit":"rich-text"},h=n?n.split(",").map(e=>e.trim().toLowerCase()).map(e=>g[e]||e).filter(e=>e&&!L.includes(e)):[];return h.length>0&&m.length>0&&(m=m.filter(e=>!h.includes(e))),m=X(m),{plugins:m,extraPlugins:p,omitted:h,deriveFromManifest:w,tailwind:i,version:o,versionSet:r,alpine:a,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:c,pluginBase:d,cdn:u,sw:f}}();var ge;if(we&&we.version&&(v=we.version),we&&we.pluginBase&&(ge=we.pluginBase,j=ge||null),we&&we.omitted&&(x=we.omitted),we&&we.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(we.cdn),we&&we.integrity&&(w=we.integrity,!we.versionSet&&f&&(v=we.version=u),h=we.version===u,y=we.alpineIntegrity&&B.test(we.alpineIntegrity.trim())?we.alpineIntegrity.trim():null,g=async function(e){if(e.version!==u)return U(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=j?[`${j.replace(/\/$/,"")}/${m}`]:_.map(e=>`${$(u,e)}/${m}`);try{return await(await z(t,f,m)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(we),g.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{pe(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(we),we&&we.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const be=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],$e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",Ee=new Set,Le=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:(Ee.has(t)||(Ee.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},ke=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch($e).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(Le(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),Se=async()=>{if(g){(we.deriveFromManifest||we.plugins.some(e=>be.includes(e)))&&ke();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=we.plugins,n=null;if(we.deriveFromManifest){e=await ke();const n=function(e){if(!e||"object"!=typeof e)return E.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return E.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),o=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),r=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),a=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),s=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=X([...L,...(i=[...n,...o,...r,...a,...s,...we.extraPlugins||[]],x.length?i.filter(e=>!x.includes(e)):i)])}else{t=X([...L,...t.filter(e=>!L.includes(e))]);we.plugins.some(e=>be.includes(e))&&(n=ke()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=X([...t,"device"]))}var i;const o=t.map(e=>V(e,we.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));we.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&o.push(le(we.version).catch(()=>{})),await Promise.all(o),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),I(async()=>{if(we.deriveFromManifest){try{const e=x.length?ne(t).filter(e=>x.includes(e)):[];e.length&&console.warn(`[Manifest Loader] data-omit lists ${e.join(", ")}, but this page uses ${e.length>1?"them":"it"}. Not loaded: remove ${e.length>1?"them":"it"} from data-omit to load.`);const n=ne([...t,...x]);if(n.length>0){const e=X(n).filter(e=>!t.includes(e));await Promise.all(e.map(e=>V(e,we.version).catch(t=>{oe.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}}catch(e){}ie=!0,se(we.version)}var e;Ae(t,we.tailwind),e=R(we.alpine),I(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||G(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function Ae(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),d=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},l=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&d()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,l()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,l()}),window.addEventListener("manifest:utilities-idle",l),window.addEventListener("manifest:markdown-idle",l),setTimeout(d,15e3),l()}(()=>{if(g||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(we.deriveFromManifest||we.plugins.some(e=>be.includes(e)))&&ke();const e=j?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),we.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...L,...we.plugins])e.includes(n)||t("preload",C(n,we.version),"script")}I(()=>{try{window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",R(we.alpine)[0],"script")}catch(e){}})}catch(e){}})(),Se()}}();
|
|
1
|
+
!function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const Ve=new Map;let Xe=0;window.ManifestPending={hold(e="work"){const t=++Xe;return Ve.set(t,e),()=>{Ve.delete(t)}},get count(){return Ve.size+(window.__manifestMarkdownPending||0)+(window.__manifestUtilitiesPending||0)},labels(){const e=[...Ve.values()];return window.__manifestMarkdownPending>0&&e.push("markdown"),window.__manifestUtilitiesPending>0&&e.push("utilities"),e},background:e=>("function"==typeof e&&(e.__manifestBackground=!0),e)}}const t=new Set,n=new WeakSet;let i=!1;function o(){for(const e of[...t])e.settle()}function r(){i||(i=!0,queueMicrotask(()=>{i=!1,o()}))}function a(e){for(let t=e.parentNode;t;t=t.parentNode)if(t._x_ignore)return!0;return!1}function s(e,i){const s=window.Alpine,c=e.getAttribute("x-if");let l=!e.closest("[x-data],[x-init]"),d=!1,u=null;const f=()=>!!s.evaluate(e,c),p=()=>{u&&(u(),u=null)},m=()=>{t.delete(y),p()},w=()=>{l=!1,d=!1,p(),i._x_ignore=!0,t.add(y)},g=()=>{m(),s.mutateDom(()=>{s.destroyTree(i),i.remove()}),delete e._x_currentIfEl,delete e._x_lastRenderedEl,r()},h=()=>{l||e._x_currentIfEl!==i||!i.isConnected||a(e)||(l=!0,d=!1,m(),delete i._x_ignore,s.initTree(i),o())},y={settle(){if(!l&&!d)return e._x_currentIfEl!==i?m():void(i.isConnected?e._x_marker&&!a(e)&&f()&&h():i.getRootNode()instanceof DocumentFragment||m())}},v=()=>window.__manifestReady||!window.__manifestReadyCoordinator?g():(queueMicrotask(()=>{e._x_currentIfEl===i&&(e._x_undoIf=v,(()=>{if(u||!d||e._x_currentIfEl!==i||a(e))return;const t=s.evaluateLater(e,c),n=s.effect(()=>t(e=>{e&&queueMicrotask(()=>{d&&f()&&h()})}));u=()=>s.release(n)})())}),a(e)?w():(l&&(l=!1,i._x_ignore=!0,s.destroyTree(i),t.add(y)),void(d||(d=!0,window.addEventListener("manifest:ready",()=>{if(d&&e._x_currentIfEl===i){if(e.isConnected&&a(e))return w();if(e.isConnected&&f())return h();g(),delete e._x_undoIf}},{once:!0})))));e._x_currentIfEl=i,e._x_lastRenderedEl=i,e._x_undoIf=v,n.add(e),l||(i._x_ignore=!0,t.add(y))}function c(e,t){e.querySelectorAll("template").forEach(e=>{const n=t||e.matches("[x-if],[x-for]");n&&e.content.querySelectorAll("[data-pre-rendered]").forEach(e=>{e.tagName.startsWith("X-")&&e.removeAttribute("data-pre-rendered")}),c(e.content,n)})}function l(){try{!function(){if("undefined"==typeof document||!document.querySelector)return;const e=document.querySelector('meta[name="manifest:prerendered"]');if(!e||"0"===e.getAttribute("content"))return;const t=document.getElementById("__manifest_hydrate__");if(!t)return;let n;try{n=JSON.parse(t.textContent||"[]")}catch(e){n=[]}if(!Array.isArray(n)||0===n.length)return void t.remove();const i=e=>String(null==e?"":e).replace(/&/g,"&").replace(/"/g,"""),o=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),r=[];for(const e of n){const t=document.querySelector('[data-hydrate-id="'+e.id+'"]');if(!t)continue;let n=0;for(let e=t.parentNode;e;e=e.parentNode)n++;r.push({entry:e,el:t,depth:n})}r.sort((e,t)=>t.depth-e.depth);for(const{entry:e,el:t}of r){const n=document.querySelector('[data-hydrate-id="'+e.id+'"]')||t;if(!n||!n.parentNode)continue;if("string"==typeof e.html){const t=n.tagName.toLowerCase(),r={},a=n.attributes;for(let e=0;e<a.length;e++)"data-hydrate-id"!==a[e].name&&(r[a[e].name]=a[e].value);if(e.attrs)for(const t in e.attrs){const n=e.attrs[t];null===n?delete r[t]:r[t]=n}const s=Object.keys(r).map(e=>e+'="'+i(r[e])+'"').join(" "),c=o.has(t)?"<"+t+" "+s+">":"<"+t+" "+s+">"+e.html+"</"+t+">",l=document.createElement("div");l.innerHTML=c;const d=l.firstElementChild;if(d)try{n.parentNode.replaceChild(d,n)}catch(e){}continue}if(!e.attrs)continue;const r=n.tagName.toLowerCase(),a={},s=n.attributes;for(let e=0;e<s.length;e++)"data-hydrate-id"!==s[e].name&&(a[s[e].name]=s[e].value);for(const t in e.attrs){const n=e.attrs[t];null===n?delete a[t]:a[t]=n}const c=Object.keys(a).map(e=>e+'="'+i(a[e])+'"').join(" "),l=o.has(r),d=l?"":n.innerHTML,u=l?"<"+r+" "+c+">":"<"+r+" "+c+">"+d+"</"+r+">",f=document.createElement("div");f.innerHTML=u;const p=f.firstElementChild;if(p)try{n.parentNode.replaceChild(p,n)}catch(e){}}t.remove()}()}catch(e){}}if("undefined"!=typeof document&&document.addEventListener("alpine:init",function(){if("undefined"==typeof document||!document.querySelectorAll)return;c(document);let e=0;if(document.querySelectorAll("[data-mnfst-prerender-clone]").forEach(t=>{if(t.closest&&t.closest("[data-hydrate]"))return;t.removeAttribute("data-mnfst-prerender-clone");const n=t.previousElementSibling;n&&"TEMPLATE"===n.tagName&&n.hasAttribute("x-if")?(s(n,t),e++):t.remove()}),!e)return;const i=window.Alpine;"function"==typeof i.interceptInit&&i.interceptInit(e=>{n.has(e)&&t.size&&r()}),document.addEventListener("alpine:initialized",o,{once:!0})},{once:!0}),"undefined"!=typeof document)if("loading"===document.readyState){let Ze=!1;document.addEventListener("readystatechange",()=>{Ze||"loading"===document.readyState||(Ze=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let Ge=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),Ge&&clearTimeout(Ge),Ge=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),Ge=null},200)},{passive:!0})}const d="latest",u="0.5.332",f="sha384-GrfTOX8iHsW63I2T5xOTiVpKWRrXLV6O3jmn2artRjh+PiBBe3cUhCAOK2bTnXoD",p="manifest.modules.integrity.json",m="manifest.vendor.integrity.json";let w=null,g=null,h=!1,y=null,v=d,_=["https://cdn.manifestx.dev/npm","https://cdn.jsdelivr.net/npm","https://unpkg.com"];function b(e,t){return e.includes("unpkg.com")?t.replace(/\.min\.js$/,".js"):t}function $(e=d,t=_[0]){return`${t}/mnfst@${e}/lib`}const k=["components","router","utilities","data","icons","localization","color","toasts","tooltips","dropdowns","computed","tabs","url-parameters","status"],x=["defer","bindings"],E=["edit"],S=["appwrite-auth","appwrite-data","appwrite-presences"],A=["rich-text","submissions","markdown","svg","code","combobox","slides","colorpicker","datepicker","charts","virtual","export"],L={"appwrite-data":["data"],"appwrite-presences":["data","appwrite-auth"],device:["utilities"],edit:["rich-text"]};let M=null;let P=[];function j(e,t=v){const n=e.replace(/-/g,".");if(M){return[`${M.replace(/\/$/,"")}/manifest.${n}.js`]}return _.map(e=>`${$(t,e)}/${b(e,`manifest.${n}.min.js`)}`)}function C(e,t=v){return j(e,t)[0]}function I(e){if(e&&(e.startsWith("http")||e.startsWith("/")))return[e];const t=e||"3.17.5";return _.map(e=>`${e}/alpinejs@${t}/dist/cdn.min.js`)}function T(e){if(function(){if("complete"===document.readyState)return!0;if("loading"===document.readyState)return!1;try{const e=performance.getEntriesByType("navigation")[0];if(e)return e.domContentLoadedEventEnd>0}catch(e){}return!1}())return void e();let t=!1;const n=()=>{t||(t=!0,e())};document.addEventListener("DOMContentLoaded",n,{once:!0}),window.addEventListener("load",n,{once:!0})}function R(t){if(t.hasAttribute("data-mnfst-loaded"))return!0;if(t.hasAttribute("data-mnfst-loading"))return!1;if("complete"===document.readyState)return!0;if(!t.async&&!t.defer&&e&&e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)return!0;try{if(t.src&&performance.getEntriesByName(t.src).length)return!0}catch(e){}return!1}function N(e,t,n=!0,i=null){return new Promise((o,r)=>{const a=document.querySelector(`script[src="${e}"]`);if(a){if(R(a))return o();let t=!1;const n=()=>{t||(t=!0,o())};a.addEventListener("load",n),a.addEventListener("error",()=>{t||(t=!0,r(new Error(`Failed to load ${e}`)))});const i=setInterval(()=>{R(a)&&(clearInterval(i),n())},50);return void setTimeout(()=>{clearInterval(i),n()},4e3)}const s=document.createElement("script");t&&(s.integrity=t,s.crossOrigin="anonymous"),i&&s.setAttribute("fetchpriority",i),s.src=e,s.async=!n,s.setAttribute("data-mnfst-loading",""),s.onload=()=>{s.removeAttribute("data-mnfst-loading"),s.setAttribute("data-mnfst-loaded",""),o()},s.onerror=()=>{s.removeAttribute("data-mnfst-loading"),s.remove(),r(new Error(`Failed to load ${e}`))},document.head.appendChild(s)})}function O(e){return e.split(/[?#]/)[0].split("/").pop()}function z(e){const t=e.match(/(alpinejs@[^/]+\/dist\/cdn\.min\.js)(?:[?#]|$)/);return t?t[1]:null}function W(e){try{const t=performance.getEntriesByName(new URL(e,location.href).href).pop();return!!t&&200===t.responseStatus}catch(e){return!1}}function q(e,t){if("warn"!==w)throw console.error(`[Manifest Loader] ${e} ${t} data-integrity="warn" loads it unchecked instead.`),Object.assign(new Error(e),{logged:!0});console.warn(`[Manifest Loader] ${e} Loading unchecked (data-integrity="warn").`)}async function U(e,t,n){for(const i of e){try{const e=await fetch(i,t?{integrity:t,mode:"cors",credentials:"omit"}:{mode:"cors",credentials:"omit"});if(e.ok)return e}catch(e){}console.error(`[Manifest Loader] ${n} failed to load${t?" or failed its integrity check":""} from ${i}`)}throw new Error(`${n} could not be ${t?"verified":"loaded"} from any CDN${t?` (expected ${t})`:""}.`)}let D=null;const B=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function F(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&B.test(n)?n:null}async function H(e,t){const n=F(e,t);if(n)return n;const i=F(e,m);return i&&/\/(languages|langs)\//.test(t)?(D||(D=U(_.map(e=>`${$(u,e)}/${m}`),i,m).then(e=>e.json()).catch(e=>{throw D=null,e})),F(await D,t)):null}async function V(e,{key:t=null,hash:n=null,alpine:i=!1,unchecked:o=!1,ordered:r=!0,priority:a=null}={}){const s=g&&!o?await g:null,c=t||O(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?z(o):O(o));c=e&&await H(s,e)||(i?y:null),c||(i?q(`No integrity hash is known for Alpine at ${o}. Add data-alpine-integrity="sha384-…" for it, or remove data-alpine to use the default.`,"Alpine was not loaded."):q(`${e||o} has no integrity hash in this release.`,"Not loaded."))}try{return await N(o,c,r,a)}catch(t){l=t,c?console.error(`[Manifest Loader] ${O(o)} ${W(o)?"failed its integrity check":"failed to load or failed its integrity check"} from ${o}${e.length>1?" — trying next CDN":""}`):e.length>1&&console.warn(`[Manifest Loader] ${o} failed — trying fallback CDN`)}}throw s&&console.error(`[Manifest Loader] ${c} did not match its integrity hash on any CDN — not loaded.`),l||new Error(`Failed to load ${c}`)}const X=new Map,Z=new Set;async function G(e,t=v){const n=X.get(e);if(n)return n.version!==t&&console.warn(`[Manifest Loader] ${e} already loaded at ${n.version} — ignoring request for ${t}`),n.promise;const i=async function(e,t){let n=!1;h&&t!==u&&(q(`Integrity checks cover this loader's own version (${u}); ${e} was requested at ${t}.`,"Not loaded."),n=!0);const i=["components","data","localization"].includes(e)?"high":null;return V(j(e,t),{unchecked:n,priority:i})}(e,t);return X.set(e,{version:t,promise:i}),i.then(()=>Z.add(e),()=>X.delete(e)),i}function K(e){const t=[],n=new Set,i={native:"device",import:"export"};function o(e){if(e=i[e]||e,n.has(e))return;const r=L[e];if(r)for(const e of r)n.has(e)||o(e);t.push(e),n.add(e)}for(const t of e)o(t);return t}const J=[{magic:"$chat",plugin:"chat"},{magic:"$presence",plugin:"appwrite-presences"},{magic:"$rich",plugin:"rich-text",attr:"x-rich-text",family:!0},{plugin:"submissions",attr:"x-submit",family:!0},...["$share","$secure","$links","$push","$app","$haptics","$biometric","$camera"].map(e=>({magic:e,plugin:"device"})),{plugin:"charts",attr:"x-chart",magic:"$chart",present:"ensureChartsPluginInitialized"},{plugin:"colorpicker",attr:"x-colorpicker",magic:"$colorpicker",present:"ensureColorpickerPluginInitialized"},{plugin:"datepicker",attr:"x-date",magic:"$date",present:"ensureDatepickerPluginInitialized"},{plugin:"combobox",attr:"x-combobox",present:"ensureComboboxPluginInitialized"},{plugin:"code",attr:"x-code",present:"ensureCodePluginInitialized"},{plugin:"code",attr:"x-code-group",present:"ensureCodePluginInitialized"},{plugin:"markdown",attr:"x-markdown",present:"ensureMarkdownPluginInitialized"},{plugin:"export",attr:"x-export",magic:"$export",present:"ensureExportPluginInitialized",call:!0},{plugin:"export",attr:"x-import",magic:"$import",present:"ensureImportPluginInitialized",call:!0},{plugin:"virtual",attr:"x-virtual",present:"ensureVirtualPluginInitialized"},{plugin:"slides",attr:"x-carousel",present:"ensureSlidesPluginInitialized"},{plugin:"svg",attr:"x-svg",present:"ensureSvgPluginInitialized"}].map(e=>({...e,late:A.includes(e.plugin)&&!["rich-text","submissions"].includes(e.plugin),re:e.magic?new RegExp("\\"+e.magic+"\\b"):null})),Q=[...new Set(J.map(e=>e.plugin))],Y=new Map(J.filter(e=>e.attr).map(e=>[e.attr,e])),ee=J.filter(e=>e.family).map(e=>[e.attr+"-",e]),te=e=>{const t=ne(e);return t&&t.plugin};function ne(e){if(120!==e.charCodeAt(0)||45!==e.charCodeAt(1))return;let t=e.length;for(let n=2;n<t;n++){const i=e.charCodeAt(n);if(46===i||58===i){t=n;break}}const n=t===e.length?e:e.slice(0,t),i=Y.get(n);if(i)return i;for(const[e,t]of ee)if(n.startsWith(e))return t}let ie=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||ie)return;ie=!0;const e=()=>{const e=window.Alpine;if(window.ManifestRichText||!e||!e.magic||!e.reactive||window.__manifestRichStub)return;const t=window.__manifestRichStub=e.reactive({v:0}),n=window.__manifestRichStubWrites=[],i=new WeakMap,o=e=>e&&"function"==typeof e.deref?e.deref():e,r={value:"",link:"",selection:null,all:{},active:()=>!1,can:()=>!1,markdown:()=>"",html:()=>""};e.magic("rich",(e,a)=>(t.v,window.__manifestRichMagic?window.__manifestRichMagic(e,a):(e=>(i.has(e)||i.set(e,new Proxy(r,{get:(t,i)=>{const r=n.find(t=>o(t[0])===e&&t[1]===i);return r?r[2]:i in t?t[i]:"string"==typeof i?()=>{}:void 0},set:(t,i,r)=>{for(let t=n.length-1;t>=0;t--){const r=o(n[t][0]);r&&r.isConnected&&(r!==e||n[t][1]!==i)||n.splice(t,1)}return n.push(["function"==typeof WeakRef?new WeakRef(e):e,i,r]),!0}})),i.get(e)))(e)))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}();let oe=!1;!function(){if("undefined"==typeof window||"undefined"==typeof document||oe)return;oe=!0;const e=()=>{const e=window.Alpine;if(window.__manifestEditMagic||!e||!e.magic||!e.reactive||window.__manifestEditStub)return;const t=window.__manifestEditStub=e.reactive({v:0}),n=()=>!1,i=window.__manifestEditStubWrites={},o=new Proxy({active:!1,canUndo:!1,canRedo:!1,version:0,stale:[],conflicts:[],onPublish:null,target:null,can:n,scope:()=>null,block:()=>null,patches:()=>[],export:()=>({log:[],cursor:0}),publish:()=>Promise.resolve({results:[]}),undo:()=>Promise.resolve(!1),redo:()=>Promise.resolve(!1),classes:new Proxy({},{get:()=>n})},{get:(e,t)=>t in i?i[t]:t in e?e[t]:"string"==typeof t?n:void 0,set:(e,t,n)=>(i[t]=n,!0)});e.magic("edit",(e,n)=>(t.v,window.__manifestEditMagic?window.__manifestEditMagic(e,n):o))};document.addEventListener("alpine:init",e,{once:!0}),window.Alpine&&window.Alpine.magic&&e()}(),"undefined"!=typeof document&&document.addEventListener("alpine:initialized",()=>{window.__manifestAlpineStarted=!0},{once:!0});const re=J.filter(e=>e.late),ae=re.filter(e=>e.attr).map(e=>e.attr),se="undefined"==typeof window?[]:re.filter(e=>window[e.present]).map(e=>e.plugin),ce=new Set,le=new Map,de=new Map,ue=new Set,fe=e=>{const t=ne(e);return t&&t.late&&!se.includes(t.plugin)?t:null},pe=new Set;function me(e){if(je.has(e)||pe.has(e))return null;if(!X.has(e)){if(!Pe||P.includes(e))return null;Te(K([e]).filter(e=>!Ce(e)))}const t=X.get(e);return t?t.promise:null}const we=new WeakSet;let ge=0,he=null;const ye=["markdown","code","svg"];function ve(e,t,n){const i=me(n.plugin);if(!i)return!1;const o=n.attr.slice(2);we.add(t),!ge++&&window.ManifestPending&&(he=window.ManifestPending.hold("held"));let r=!1;const a=()=>{if(!r&&(r=!0,we.delete(t),! --ge&&he)){const e=he;he=null,e()}},s=[];let c=null;try{const e=!t.hasAttribute("x-data")&&t.parentElement&&t.parentElement.closest("[x-data]");if(e){e._x_refs||(e._x_refs={});for(const n of[t,...t.querySelectorAll("[x-ref]")]){const t=n.getAttribute("x-ref");!t||n.closest("[x-data]")!==e||e._x_refs[t]&&!s.some(n=>n[2]===e._x_refs[t])||(e._x_refs[t]=n,s.push([e,t,n]))}}c=ye.includes(n.plugin)?t.style.opacity:null,null!==c&&(t.style.opacity="0")}catch(e){}const l=new Promise(e=>{let t=!1;(e=>{if(ce.has(e))return Promise.resolve();if(!le.has(e)){let t;const n=new Promise(e=>{t=e});le.set(e,{promise:n,resolve:t})}return le.get(e).promise})(o).then(()=>{t=!0,e()});const r=i=>{t||(pe.add(n.plugin),ue.has(n.plugin)||(ue.add(n.plugin),console.warn(`[Manifest Loader] ${n.plugin} ${i}: starting the elements that use it now${"failed to load"===i?", without it":"; it applies to them if it starts later"}.`)),e())};i.catch(()=>r("failed to load")),i.then(()=>setTimeout(()=>r("has not started 10 s after loading"),1e4),()=>{})}),d=l.then(()=>{let e=null;try{we.delete(t),null!==c&&(t.style.opacity=c);for(const[e,t,n]of s)!n.isConnected&&e._x_refs&&e._x_refs[t]===n&&delete e._x_refs[t];e=function(e){const t=[],n=e.matches("input, textarea, select")?[e]:[];n.push(...e.querySelectorAll("input, textarea, select"));for(const e of n)try{if("file"===e.type){e.files&&e.files.length&&t.push([e,"files",null]);continue}if("radio"===e.type)e.checked&&!e.defaultChecked&&t.push([e,"checked",!0]);else if("checkbox"===e.type)e.checked!==e.defaultChecked&&t.push([e,"checked",e.checked]);else if("SELECT"===e.tagName){const n=[...e.options].map(e=>e.selected);n.some((t,n)=>t!==e.options[n].defaultSelected)&&t.push([e,"options",n])}else e.value!==e.defaultValue&&t.push([e,"value",e.value])}catch(e){}const i=document.activeElement,o=i&&e.contains(i)?[i,i.selectionStart,i.selectionEnd]:null;return()=>{const n=new WeakSet,i=e=>{n.has(e)&&e.stopPropagation()};e.addEventListener("input",i),e.addEventListener("change",i);const r=(e,t)=>{const i=new Event(t,{bubbles:!0});n.add(i),e.dispatchEvent(i)};for(const[e,n,i]of t)try{if(!e.isConnected||e.readOnly||e.disabled)continue;"options"===n?[...e.options].forEach((e,t)=>{e.selected=!!i[t]}):"files"!==n&&(e[n]=i),r(e,"input"),r(e,"change")}catch(e){}if(e.removeEventListener("input",i),e.removeEventListener("change",i),o&&o[0].isConnected)try{o[0].focus({preventScroll:!0}),null!=o[1]&&o[0].setSelectionRange(o[1],o[2])}catch(e){}}}(t)}catch(e){}setTimeout(()=>{try{e&&e()}finally{a()}},0)});try{e.deferInit(t,d)}catch(e){throw a(),e}return!0}let _e=!1;function be(){const e="undefined"==typeof window?null:window.Alpine;if(_e||!e||!e.directive||!e.magic)return;_e=!0;const t=e.directive,n=e.magic;if(e.directive=function(e){const n=t.apply(this,arguments);if(!ce.has(e)){ce.add(e);const t=le.get(e);t&&(le.delete(e),t.resolve());const n=de.get(e);n&&(de.delete(e),setTimeout(()=>n.forEach(([e,t])=>{const n=$e(e);try{n&&n.isConnected&&n.hasAttribute(t)&&n.setAttribute(t,n.getAttribute(t))}catch(e){}}),0))}return n},"function"==typeof e.interceptInit){const t="function"==typeof e.deferInit,n=e=>{try{i(e)}catch(e){}},i=n=>{if(!we.has(n))for(const i of n.attributes){const o=fe(i.name);if(o&&!ce.has(o.attr.slice(2)))if(pe.has(o.plugin))ke(o,n,i.name);else if(t){if(ve(e,n,o))return}else me(o.plugin)&&ke(o,n,i.name)}};e.interceptInit("function"==typeof e.skipDuringClone?e.skipDuringClone(n):n)}!function(e,t){const n={},i=e.reactive?e.reactive({v:0}):{v:0},o=t=>{window.__manifestProbing=!0;try{return"undefined"!==e.evaluate(document.createElement("div"),`typeof $${t}`)}catch(e){return!1}finally{window.__manifestProbing=!1}},r=(e,t)=>new Proxy(function(){},{get(n,i){const o=e();if(null!=o){const e=o[i];return"function"==typeof e&&"constructor"!==i?e.bind(o):e}return i===Symbol.toPrimitive?()=>"":"symbol"!=typeof i&&"then"!==i?r(()=>{const t=e();return null==t?void 0:t[i]},t):void 0},apply(n,i,o){const a=e();if("function"==typeof a)return a.apply(i,o);if(t)return t().then(()=>{const t=e();return"function"==typeof t?t.apply(i,o):void 0});let s,c=!1;return r(()=>{if(c)return s;const t=e();return"function"==typeof t?(c=!0,s=t.apply(i,o)):void 0},t)}});for(const a of re){if(!a.magic||se.includes(a.plugin)||Z.has(a.plugin))continue;const s=a.magic.slice(1);if(o(s))continue;let c=!1;const l=()=>new Promise(e=>{if(n[s])return e();const t=me(a.plugin);if(!t)return e();const i=()=>n[s]?e():null;t.then(()=>setTimeout(()=>{i(),setTimeout(e,0)},0),e)});t.call(e,s,(e,t)=>{if(i.v,n[s])return n[s](e,t);if(!(c||window.__manifestProbing||(c=!0,me(a.plugin)||ue.has(s)||ue.has(a.plugin)))){ue.add(s);const e=P.includes(a.plugin)?`remove ${a.plugin} from data-omit`:`add data-modules="+${a.plugin}"`;console.warn(`[Manifest Loader] ${a.magic} is used but ${a.plugin} is not loaded on this page: ${e}.`)}const o=a.call?"$import"!==a.magic?l:()=>l().then(()=>{const e=navigator.userActivation;!e||e.isActive||ue.has("$import:activation")||(ue.add("$import:activation"),console.warn('[Manifest Loader] $import waited for its module and the click that called it expired, so the browser may not open the file picker. Add data-modules="+import" to load it with the page.'))}):null;return r(()=>n[s]?n[s](e,t):void 0,o)})}e.magic=function(e,o){return re.some(t=>t.magic==="$"+e)&&(n[e]=o,setTimeout(()=>{i.v++},0)),t.apply(this,arguments)}}(e,n)}const $e=e=>e&&"function"==typeof e.deref?e.deref():e;function ke(e,t,n){const i=e.attr.slice(2);if(ce.has(i))return;de.has(i)||de.set(i,[]);const o=de.get(i).filter(([e])=>$e(e));o.push(["function"==typeof WeakRef?new WeakRef(t):t,n]),de.set(i,o)}"undefined"!=typeof document&&(document.addEventListener("alpine:init",be,{once:!0}),"undefined"!=typeof window&&window.Alpine&&window.Alpine.magic&&be()),"undefined"!=typeof window&&(window.__manifestHeld=e=>{if(!ge)return!1;for(let t=e;t;t=t.parentElement)if(we.has(t))return!0;return!1});const xe=/^x-(code|code-group)$/,Ee=new RegExp("\\$("+J.filter(e=>e.magic).map(e=>e.magic.slice(1)).join("|")+")\\b"),Se=new Set;function Ae(e,t=("undefined"==typeof document?null:document)){const n=J.filter(t=>!e.includes(t.plugin)),i=!e.includes("components");if(0===n.length&&!i||!t)return[];const o=new Set,r=new Set(n.map(e=>e.plugin)),a=r.size+(i?1:0),s=()=>o.size===a,c=e=>{e&&r.has(e)&&!o.has(e)&&o.add(e)},l=r.has("code");for(const e of t.querySelectorAll("script:not([src])")){const t=e.textContent||"";for(const e of n)e.re&&!o.has(e.plugin)&&e.re.test(t)&&o.add(e.plugin);if(s())return[...o]}const d=e=>{if(i&&!o.has("components")){const t=e.tagName.toLowerCase();t.startsWith("x-")&&!xe.test(t)&&o.add("components")}l&&c(function(e){if("CODE"!==e.tagName)return;if(e.hasAttribute("copy"))return"code";const t=e.getAttribute("class");return t&&-1!==t.indexOf("language-")&&e.parentElement&&"PRE"===e.parentElement.tagName?"code":void 0}(e));for(const t of e.attributes||[]){c(te(t.name));const e=t.value;if(e&&-1!==e.indexOf("$")&&!Se.has(e))if(Ee.test(e))for(const t of n)t.re&&!o.has(t.plugin)&&t.re.test(e)&&o.add(t.plugin);else Se.size>2e4&&Se.clear(),Se.add(e)}},u=e=>{for(const t of e.querySelectorAll("*")){if(d(t),s())return;if("TEMPLATE"===t.tagName&&t.content&&(u(t.content),s()))return}};return 1===t.nodeType&&(d(t),"TEMPLATE"===t.tagName&&t.content&&u(t.content)),s()||u(t),[...o]}let Le=null;function Me(){if(Le)return Le;const e=new Set,t="undefined"==typeof MutationObserver?null:new MutationObserver(t=>{for(const n of t)for(const t of n.addedNodes)1===t.nodeType&&e.add(t)});t&&t.observe(document.documentElement,{childList:!0,subtree:!0});const n=Ae([]);return Le={used:n,take(){t&&t.disconnect();const i=new Set(n);for(const t of e)t.isConnected&&Ae([...i],t).forEach(e=>i.add(e));return e.clear(),[...i]}},Le}let Pe=!1;const je=new Set,Ce=e=>Z.has(e)||je.has(e);function Ie(e,t=v){if(!Pe||!e||"undefined"==typeof document)return Promise.resolve([]);let n=e;if("string"==typeof e){if(-1===e.indexOf("x-")&&-1===e.indexOf("$")&&-1===e.indexOf("<code"))return Promise.resolve([]);n=document.createElement("template"),n.innerHTML=e,n=n.content}const i=Ae(Q.filter(Ce).concat("components",P),n);return i.length?Te(K(i).filter(e=>!Ce(e)),t):Promise.resolve([])}function Te(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{};return Promise.all(e.map(e=>G(e,t).catch(t=>{je.has(e)||(je.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t))}))).then(()=>new Promise(e=>setTimeout(e,0))).then(()=>(n(),e))}function Re(e){if("undefined"==typeof MutationObserver)return;const t=new Set;let n=!1;const i=new MutationObserver(o=>{for(const e of o)if("attributes"!==e.type)for(const n of e.addedNodes)1===n.nodeType&&t.add(n);else Ne(e.target,e.attributeName);!n&&t.size&&(n=!0,setTimeout(()=>{n=!1;const o=[...t].filter(e=>e.isConnected);t.clear(),o.forEach(t=>Ie(t,e)),J.every(e=>Ce(e.plugin)||P.includes(e.plugin))&&i.disconnect()},0))});i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:ae})}function Ne(e,t){const n=fe(t);n&&e.hasAttribute(t)&&!ce.has(n.attr.slice(2))&&!window.__manifestHeld(e)&&me(n.plugin)&&ke(n,e,t)}const Oe={"text-edit":"rich-text"};function ze(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!Oe[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${Oe[t]}`),!1)})}async function We(e=v){const t=_.map(t=>`${$(e,t)}/${b(t,"manifest.tailwind.min.js")}`);let n=null;try{return await V(t)}catch(e){n=e}throw console.warn('[Manifest Loader] Tailwind plugin not available from any CDN. Load it directly: <script src="/scripts/tailwind.v4.3.1.js"><\/script>'),n||new Error("Tailwind plugin not available from CDN.")}window.Manifest={loadPlugin:function(e,t=v){if(![...k,...A,...S,...E,"payments","chat","device","native","import","tailwind"].includes(e))return Oe[e]?ze([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=K([e]);return Promise.all(n.map(e=>G(e,t)))},loadTailwind:We,loadVendor:function(e,t){return V(_.map(t=>`${t}/${e}`),{key:e,hash:t,ordered:!1})},fetchVendor:async function(e,t){const n=g?await g:null;let i=t||null;return n&&(i=await H(n,e),i||q(`${e} has no integrity hash in this release.`,"Not loaded.")),U(_.map(t=>`${t}/${e}`),i,e)},get integrity(){return h},getPluginUrl:C,getModuleUrl:C,loadUsed:Ie},window.Manifest.loadModule=window.Manifest.loadPlugin;const qe="/sw.js";const Ue={registered:!1,version:null,kill:()=>De(null)};async function De(e){Ue.registered=!1;try{const t=e||await navigator.serviceWorker.getRegistration(qe);if(t){const e=t.active||t.waiting||t.installing;try{e&&e.postMessage({type:"manifest:sw",action:"kill"})}catch(e){}await t.unregister()}}catch(e){}try{if(window.caches){const e=await caches.keys();await Promise.all(e.filter(e=>e.startsWith("mnfst-sw:")).map(e=>caches.delete(e)))}}catch(e){}}async function Be(e){const t=e.sw,n="on"===t,i=n?(...e)=>console.info("[Manifest SW]",...e):()=>{};if(!navigator.serviceWorker)return i("skip: unsupported");const o=window.location,r=!!window.__mnfstRun,a=function(e){const t=String(e||"").toLowerCase();return"localhost"===t||"127.0.0.1"===t||"[::1]"===t||"::1"===t||"0.0.0.0"===t||t.endsWith(".localhost")||t.endsWith(".local")}(o.hostname);let s=window.__manifestLoaded||null;if(!s&&window.__manifestPromise&&(s=await window.__manifestPromise.catch(()=>null)),!s){const e=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json";s=await fetch(e).then(e=>e.ok?e.json():null).catch(()=>null)}const c="off"===t||s&&!1===s.sw,l=await navigator.serviceWorker.getRegistration(qe).catch(()=>null);if(c||r||a&&!n)return i("skip:",c?"kill switch":r?"mnfst-run":"dev origin",l?"(unregistering)":""),void await De(l);if(!("https:"===o.protocol||n&&window.isSecureContext))return i("skip: not https");let d=null;try{d=sessionStorage.getItem("manifest:sw-probe")}catch(e){}const u="strict"===w;if("ok"!==d||u){const e=await fetch(qe,{cache:"no-store"}).catch(()=>null),t=e&&e.headers.get("content-type")||"";if(!e||!e.ok||!/javascript|ecmascript/i.test(t))return i("skip: no stub",e&&e.status,t);if(u&&(f=await e.text().catch(()=>""),(String(f).match(/importScripts\s*\(([^)]*)\)/g)||[]).some(e=>(e.match(/https?:\/\/[^'"`\s)]+/g)||[]).some(e=>{try{return new URL(e).origin!==location.origin}catch(e){return!0}}))))return console.warn(`[Manifest Loader] ${qe} imports its worker module from another origin, which integrity checks can't cover, so the service worker stays off. Serve the module from this origin (copy lib/manifest.sw.min.js into ${qe}), set data-sw="off", or set data-integrity="warn" to register it anyway.`),void await De(l);try{sessionStorage.setItem("manifest:sw-probe","ok")}catch(e){}}var f;const p=s&&"string"==typeof s.deployment?s.deployment:"",m=`${qe}?v=${encodeURIComponent(e.version)}&d=${encodeURIComponent(p)}`,g=await navigator.serviceWorker.register(m,{scope:"/"});Ue.registered=!0,Ue.version=e.version,i("registered",m,g.active?"active":g.installing?"installing":"waiting")}window.Manifest.swStub=function(e=d){const t=`mnfst@${String(e||d).replace(/[^\w.+-]/g,"")}/lib/manifest.sw.min.js`;return`try { importScripts('https://cdn.manifestx.dev/npm/${t}'); } catch (e) { importScripts('https://cdn.jsdelivr.net/npm/${t}'); }\nif (!self.__mnfstSw) self.addEventListener('activate', function () { self.registration.unregister(); });\n`},window.Manifest.sw=Ue;const Fe=function(){let e=document.currentScript;if(e||(e=document.querySelector('script[src*="manifest.js"]')),!e)return null;const t=e.getAttribute("data-modules")??e.getAttribute("data-plugins"),n=e.getAttribute("data-omit"),i=null!==e.getAttribute("data-tailwind"),o=e.getAttribute("data-version")||d,r=!!e.getAttribute("data-version"),a=e.getAttribute("data-alpine"),s=(e.getAttribute("data-integrity")??"").trim().toLowerCase(),c=/^(off|false)$/.test(s)?null:"warn"===s?"warn":e.hasAttribute("data-integrity")||e.getAttribute("integrity")?"strict":null,l=e.getAttribute("data-module-base")??e.getAttribute("data-plugin-base"),u=e.getAttribute("data-cdn"),f=e.getAttribute("data-sw");let p=[],m=[],w=!t;if(t){const e=ze(t.split(",").map(e=>e.trim()).filter(e=>e));m=e.filter(e=>e.startsWith("+")).map(e=>e.slice(1));const n=e.filter(e=>!e.startsWith("+"));n.length>0?p=[...n,...m]:(w=!0,p=k.slice())}else p=k.slice();const g={native:"device","text-edit":"rich-text"},h=n?n.split(",").map(e=>e.trim().toLowerCase()).map(e=>g[e]||e).filter(e=>e&&!x.includes(e)):[];return h.length>0&&p.length>0&&(p=p.filter(e=>!h.includes(e))),p=K(p),{plugins:p,extraPlugins:m,omitted:h,deriveFromManifest:w,tailwind:i,version:o,versionSet:r,alpine:a,alpineIntegrity:e.getAttribute("data-alpine-integrity"),integrity:c,pluginBase:l,cdn:u,sw:f}}();var He;if(Fe&&Fe.version&&(v=Fe.version),Fe&&Fe.pluginBase&&(He=Fe.pluginBase,M=He||null),Fe&&Fe.omitted&&(P=Fe.omitted),Fe&&Fe.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(Fe.cdn),Fe&&Fe.integrity&&(w=Fe.integrity,!Fe.versionSet&&f&&(v=Fe.version=u),h=Fe.version===u,y=Fe.alpineIntegrity&&B.test(Fe.alpineIntegrity.trim())?Fe.alpineIntegrity.trim():null,g=async function(e){if(e.version!==u)return q(`Integrity checks cover this loader's own version (${u}), but data-version is "${e.version}". Set data-version="${u}" or remove it.`,"No modules were loaded."),null;const t=M?[`${M.replace(/\/$/,"")}/${p}`]:_.map(e=>`${$(u,e)}/${p}`);try{return await(await U(t,f,p)).json()}catch(e){throw new Error(`${e.message} No modules were loaded.`)}}(Fe),g.catch(()=>{})),function(e){if(!e||window.__manifestSwArmed)return;const t=window.__manifestSwArmed={};let n=!1;const i=()=>{if(!n&&window.__manifestSwArmed===t){n=!0;try{Be(e).catch(()=>{})}catch(e){}}};setTimeout(()=>{if(window.__manifestReady)return i();window.addEventListener("manifest:ready",i,{once:!0}),window.__manifestLoaderStarted||("complete"===document.readyState?setTimeout(i,0):window.addEventListener("load",i,{once:!0}))},0)}(Fe),Fe&&Fe.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const Ke=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],Je=document.querySelector('link[rel="manifest"]')?.getAttribute("href")||"/manifest.json",Qe=new Set,Ye=e=>{if(null===e||"object"!=typeof e)return;const t=e=>e.replace(/\$\{([^}]+)\}/g,(e,t)=>"undefined"!=typeof window&&window.env&&void 0!==window.env[t]?window.env[t]:(Qe.has(t)||(Qe.add(t),t.startsWith("PUBLIC_")?console.warn(`[Manifest] manifest.json references \${${t}}, but it is not present in window.env. Add ${t}=… to .env (read by mnfst-run) or set it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`):console.warn(`[Manifest] manifest.json references \${${t}}, but only PUBLIC_-prefixed env vars are injected into window.env by mnfst-run. Rename to PUBLIC_${t}, hardcode the value, or supply it via <script>window.env = {…}<\/script>. Leaving placeholder literal.`)),e)),n=e=>{if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}else for(const i of Object.keys(e)){const o=e[i];"string"==typeof o?e[i]=t(o):o&&"object"==typeof o&&n(o)}};n(e)},et=()=>window.__manifestLoaded?Promise.resolve(window.__manifestLoaded):(window.__manifestPromise||(window.__manifestPromise=fetch(Je).then(e=>e.ok?e.json():null).then(e=>(e&&!e.__interpolated&&(Ye(e),Object.defineProperty(e,"__interpolated",{value:!0,enumerable:!1})),e)).catch(()=>null)),window.__manifestPromise),tt=async()=>{if(g){(Fe.deriveFromManifest||Fe.plugins.some(e=>Ke.includes(e)))&&et();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=Fe.plugins,n=null;if(Fe.deriveFromManifest){e=await et();const n=function(e){if(!e||"object"!=typeof e)return k.slice();const t=e.data&&"object"==typeof e.data&&Object.keys(e.data).length>0,n=e.components?.length>0||e.preloadedComponents?.length>0,i=(()=>{if(!e.data||"object"!=typeof e.data)return!1;for(const t of Object.values(e.data))if(t&&"object"==typeof t){if("string"==typeof t.locales)return!0;for(const e of Object.keys(t))if(!["url","headers","params","transform","defaultValue","locales"].includes(e)&&/^[a-zA-Z]{2}(-[a-zA-Z]{2})?$/.test(e))return!0}return!1})(),o=e.status&&"object"==typeof e.status&&Object.keys(e.status).length>0;return k.filter(e=>"data"===e?t:"localization"===e?i:"components"===e?n:"status"!==e||o)}(e),o=function(e){if(!e||"object"!=typeof e)return[];if(!(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&(e.appwriteTableId||e.appwriteDatabaseId||e.appwriteBucketId))))return[];const t=[];return e.appwrite?.auth&&t.push("appwrite-auth"),(e.appwrite||e.data&&Object.values(e.data).some(e=>e&&"object"==typeof e&&e.appwriteTableId))&&t.push("appwrite-data"),(e.appwrite?.presence||e.appwrite?.presences)&&t.push("appwrite-presences"),t}(e),r=function(e){return e&&"object"==typeof e&&e.payments&&"object"==typeof e.payments?["payments"]:[]}(e),a=function(e){return e&&"object"==typeof e&&(e.ai||e.chat)?["chat"]:[]}(e),s=function(e){if("undefined"!=typeof window&&window.Capacitor)return["device"];const t=e&&"object"==typeof e?e.device??e.native:null;return t&&"object"==typeof t?["device"]:[]}(e);t=K([...x,...(i=[...n,...o,...r,...a,...s,...Fe.extraPlugins||[]],P.length?i.filter(e=>!P.includes(e)):i)])}else{t=K([...x,...t.filter(e=>!x.includes(e))]);Fe.plugins.some(e=>Ke.includes(e))&&(n=et()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=K([...t,"device"]))}var i;const o=t.map(e=>G(e,Fe.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));Fe.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&o.push(We(Fe.version).catch(()=>{}));const r=Fe.deriveFromManifest?new Promise(e=>T(()=>{let n=[];try{const e=Me().take(),i=e.filter(e=>P.includes(e)&&!t.includes(e));i.forEach(e=>ue.add(e)),i.length&&console.warn(`[Manifest Loader] data-omit lists ${i.join(", ")}, but this page uses ${i.length>1?"them":"it"}. Not loaded: remove ${i.length>1?"them":"it"} from data-omit to load.`);const o=e.filter(e=>!t.includes(e)&&!P.includes(e));o.length>0&&(n=K(o).filter(e=>!t.includes(e)).map(e=>G(e,Fe.version).catch(t=>{je.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Pe=!0,Re(Fe.version),e(Promise.all(n))})):null;await Promise.all(o),n&&(e=await n),e&&"undefined"!=typeof window&&(window.__manifestLoaded=e,window.ManifestComponentsRegistry&&(window.ManifestComponentsRegistry.manifest=e)),T(async()=>{var e;r&&await r,nt(t,Fe.tailwind),e=I(Fe.alpine),T(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||V(e,{alpine:!0}).catch(e=>{e.logged||console.error("[Manifest Loader] Alpine.js failed to load from all CDNs.")})})})};function nt(e,t){if(window.__manifestReadyCoordinator)return;window.__manifestReadyCoordinator=!0;const n=window.ManifestPending.hold("ready"),i=!!t,o={data:!e.some(e=>"data"===e||"appwrite-data"===e)||!!window.__manifestRenderReady,utilities:!i||!!window.__manifestUtilitiesReady};let r=!1,a=null;const s=()=>!(window.__manifestMarkdownPending>0),c=()=>!(window.__manifestUtilitiesPending>0),l=()=>{r||(r=!0,n(),window.__manifestReady=!0,window.dispatchEvent(new CustomEvent("manifest:ready")))},d=()=>{r||o.data&&o.utilities&&s()&&c()&&(clearTimeout(a),a=setTimeout(()=>{o.data&&o.utilities&&s()&&c()&&l()},300))};window.addEventListener("manifest:render-ready",()=>{o.data=!0,d()}),window.addEventListener("manifest:utilities-ready",()=>{o.utilities=!0,d()}),window.addEventListener("manifest:utilities-idle",d),window.addEventListener("manifest:markdown-idle",d),setTimeout(l,15e3),d()}(()=>{if(g||!document.head||!0===window.__manifestRender)return;const e=new Set,t=(t,n,i)=>{if(!n||e.has(t+n))return;e.add(t+n);const o=document.createElement("link");o.rel=t,i&&(o.as=i,o.setAttribute("fetchpriority","low")),o.href=n,o.setAttribute("data-mnfst-hint",""),document.head.appendChild(o)};document.addEventListener("alpine:init",()=>{document.head.querySelectorAll("link[data-mnfst-hint]").forEach(e=>e.remove())},{once:!0});try{(Fe.deriveFromManifest||Fe.plugins.some(e=>Ke.includes(e)))&&et();const e=M?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),Fe.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...x,...Fe.plugins])e.includes(n)||t("preload",C(n,Fe.version),"script")}T(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(Fe.alpine)[0],"script"),Fe.deriveFromManifest){const e=Me().used.filter(e=>"components"!==e&&!P.includes(e));for(const n of K(e))Fe.plugins.includes(n)||t("preload",C(n,Fe.version),"script")}}catch(e){}})}catch(e){}})(),tt()}}();
|
|
2
2
|
//# sourceMappingURL=manifest.min.js.map
|