mnfst 0.5.332 → 0.5.333
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 +1 -1
- package/lib/manifest.data.js +1 -1
- package/lib/manifest.data.min.js +1 -1
- package/lib/manifest.defer.js +60 -16
- package/lib/manifest.defer.min.js +1 -1
- package/lib/manifest.defer.min.js.map +1 -1
- package/lib/manifest.integrity.json +10 -10
- package/lib/manifest.js +2 -2
- package/lib/manifest.min.js +1 -1
- package/lib/manifest.modules.integrity.json +7 -7
- package/lib/manifest.sw.js +1 -1
- package/lib/manifest.sw.min.js +1 -1
- package/package.json +2 -1
package/lib/manifest.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
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()}}();
|
|
1
|
+
!function(){"use strict";const e=document.currentScript;if(!window.ManifestPending){const He=new Map;let Ze=0;window.ManifestPending={hold(e="work"){const t=++Ze;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 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 Ge=!1;document.addEventListener("readystatechange",()=>{Ge||"loading"===document.readyState||(Ge=!0,l())})}else l();if("undefined"!=typeof window&&"undefined"!=typeof document){let Xe=null;window.addEventListener("resize",()=>{document.documentElement.classList.add("window-resizing"),Xe&&clearTimeout(Xe),Xe=setTimeout(()=>{document.documentElement.classList.remove("window-resizing"),Xe=null},200)},{passive:!0})}const d="latest",u="0.5.333",f="sha384-EoPUnvcTd0V6ugOg+8X6DWOIWmgwj36CxAAGVd+PwRq2h5Rmxh+vUp0wjh+xzml5",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 x=["components","router","utilities","data","icons","localization","color","toasts","tooltips","dropdowns","computed","tabs","url-parameters","status"],E=["defer","bindings"],k=["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 P=null;let M=[];function j(e,t=v){const n=e.replace(/-/g,".");if(P){return[`${P.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 R(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 T(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(T(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(()=>{T(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 z(e){return e.split(/[?#]/)[0].split("/").pop()}function O(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 F=/^sha(256|384|512)-[A-Za-z0-9+/=]+$/;function B(e,t){const n=e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:null;return"string"==typeof n&&F.test(n)?n:null}async function V(e,t){const n=B(e,t);if(n)return n;const i=B(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})),B(await D,t)):null}async function H(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||z(e[0]||"");let l=null;for(const o of e){let c=n;if(s){const e=t||(i?O(o):z(o));c=e&&await V(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] ${z(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 Z=new Map,G=new Set;async function X(e,t=v){const n=Z.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 H(j(e,t),{unchecked:n,priority:i})}(e,t);return Z.set(e,{version:t,promise:i}),i.then(()=>G.add(e),()=>Z.delete(e)),i}function J(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 K=[{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(K.map(e=>e.plugin))],Y=new Map(K.filter(e=>e.attr).map(e=>[e.attr,e])),ee=K.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=K.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(!Z.has(e)){if(!Me||M.includes(e))return null;Re(J([e]).filter(e=>!Ce(e)))}const t=Z.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))xe(o,n,i.name);else if(t){if(ve(e,n,o))return}else me(o.plugin)&&xe(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)||G.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=M.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 xe(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 Ee=/^x-(code|code-group)$/,ke=new RegExp("\\$("+K.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=K.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-")&&!Ee.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(ke.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 Pe(){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 Me=!1;const je=new Set,Ce=e=>G.has(e)||je.has(e);function Ie(e,t=v){if(!Me||!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",M),n);return i.length?Re(J(i).filter(e=>!Ce(e)),t):Promise.resolve([])}function Re(e,t=v){if(!e.length)return Promise.resolve([]);const n=window.ManifestPending?window.ManifestPending.hold("module"):()=>{};return Promise.all(e.map(e=>X(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 Te(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)),K.every(e=>Ce(e.plugin)||M.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)&&xe(n,e,t)}const ze={"text-edit":"rich-text"};function Oe(e){return e.filter(e=>{const t=e.replace(/^\+/,"");return!ze[t]||(console.warn(`[Manifest Loader] ${t} was renamed to ${ze[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 H(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(![...x,...A,...S,...k,"payments","chat","device","native","import","tailwind"].includes(e))return ze[e]?Oe([e]):console.warn(`[Manifest Loader] Unknown module: ${e}`),Promise.reject(new Error(`Unknown module: ${e}`));const n=J([e]);return Promise.all(n.map(e=>X(e,t)))},loadTailwind:We,loadVendor:function(e,t){return H(_.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 V(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 Fe(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 Be=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=Oe(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=x.slice())}else p=x.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&&!E.includes(e)):[];return h.length>0&&p.length>0&&(p=p.filter(e=>!h.includes(e))),p=J(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 Ve;if(Be&&Be.version&&(v=Be.version),Be&&Be.pluginBase&&(Ve=Be.pluginBase,P=Ve||null),Be&&Be.omitted&&(M=Be.omitted),Be&&Be.cdn&&function(e){if(!e)return;const t=e.split(",").map(e=>e.trim().replace(/\/$/,"")).filter(Boolean);t.length&&(_=t)}(Be.cdn),Be&&Be.integrity&&(w=Be.integrity,!Be.versionSet&&f&&(v=Be.version=u),h=Be.version===u,y=Be.alpineIntegrity&&F.test(Be.alpineIntegrity.trim())?Be.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=P?[`${P.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.`)}}(Be),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{Fe(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)}(Be),Be&&Be.plugins.length>0){if(window.__manifestLoaderStarted)return;window.__manifestLoaderStarted=!0;const Je=["data","localization","components","appwrite-auth","appwrite-data","appwrite-presences","payments","chat"],Ke=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(Ke).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){(Be.deriveFromManifest||Be.plugins.some(e=>Je.includes(e)))&&et();try{await g}catch(e){return void(e.logged||console.error(`[Manifest Loader] ${e.message}`))}}let e=null,t=Be.plugins,n=null;if(Be.deriveFromManifest){e=await et();const n=function(e){if(!e||"object"!=typeof e)return x.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 x.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=J([...E,...(i=[...n,...o,...r,...a,...s,...Be.extraPlugins||[]],M.length?i.filter(e=>!M.includes(e)):i)])}else{t=J([...E,...t.filter(e=>!E.includes(e))]);Be.plugins.some(e=>Je.includes(e))&&(n=et()),"undefined"!=typeof window&&window.Capacitor&&!t.includes("device")&&(t=J([...t,"device"]))}var i;const o=t.map(e=>X(e,Be.version).catch(t=>{console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)}));Be.tailwind&&!function(){try{return!!document.querySelector("style[data-mnfst-utilities][data-mnfst-utilities-complete]")}catch(e){return!1}}()&&o.push(We(Be.version).catch(()=>{}));const r=Be.deriveFromManifest?new Promise(e=>R(()=>{let n=[];try{const e=Pe().take(),i=e.filter(e=>M.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)&&!M.includes(e));o.length>0&&(n=J(o).filter(e=>!t.includes(e)).map(e=>X(e,Be.version).catch(t=>{je.add(e),console.warn(`[Manifest Loader] Failed to load plugin ${e}:`,t)})))}catch(e){}Me=!0,Te(Be.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)),R(async()=>{var e;r&&await r,nt(t,Be.tailwind),e=I(Be.alpine),R(()=>{window.Alpine||document.querySelector('script[src*="alpinejs"]')||H(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{(Be.deriveFromManifest||Be.plugins.some(e=>Je.includes(e)))&&et();const e=P?null:_[0];if(e&&new URL(e,location.href).origin!==location.origin&&t("preconnect",new URL(e,location.href).origin),Be.deriveFromManifest){const e=["data","localization","components","status"];for(const n of[...E,...Be.plugins])e.includes(n)||t("preload",C(n,Be.version),"script")}R(()=>{try{if(window.Alpine||document.querySelector('script[src*="alpinejs"]')||t("preload",I(Be.alpine)[0],"script"),Be.deriveFromManifest){const e=Pe().used.filter(e=>"components"!==e&&!M.includes(e));for(const n of J(e))Be.plugins.includes(n)||t("preload",C(n,Be.version),"script")}}catch(e){}})}catch(e){}})(),tt()}}();
|
|
2
2
|
//# sourceMappingURL=manifest.min.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest.appwrite.auth.js": "sha384-n+Fohtui5o2h3HpM7ifnop9YsAdlTj0uHYfzljQMghLJeDkODC6OXop6ds6OTZha",
|
|
3
3
|
"manifest.appwrite.auth.min.js": "sha384-qN5XF96RpRVTzBeOBoxwh6ziq2+eZ2rS0cLUtlwp4CFcbyuMCaf6kHFJKoWEGNvp",
|
|
4
|
-
"manifest.appwrite.data.js": "sha384-
|
|
4
|
+
"manifest.appwrite.data.js": "sha384-hARZEL4CJ0E0GyRyiWmabHIY5SmAoo+lEcmAJv29RPUCEfmvzRhZIBXRbz35lLZr",
|
|
5
5
|
"manifest.appwrite.data.min.js": "sha384-PCp21DVdPqQVudd4FsA2stYdmql8verhQZ3WapA/oR4uAap/+KPFP0sgOjEPT6yZ",
|
|
6
6
|
"manifest.appwrite.presences.js": "sha384-O3EedwV2QTzd4YotjvGPsDHbxaGbtRaZuNopC7/Cfoo5uYPo8ZHYkCPCWurXpA2/",
|
|
7
7
|
"manifest.appwrite.presences.min.js": "sha384-7AHt7baL29VI3S1Nbkkyq34j2eJ2ysGpDnllmpXXSlc4GHvTk5hdCrXra2R3mSfH",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"manifest.components.min.js": "sha384-zX13laxJhE6FJbbuV9Cm5n7RgZdEdFDG7rE6O+6hBnCvfeadL3a+vXaSHDH0EXxU",
|
|
24
24
|
"manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
|
|
25
25
|
"manifest.computed.min.js": "sha384-90LbCcEOhrjhxi0GWBRb3DJyOkKWLRwzK7Z2nkbc1uaZ5B9EGmNKqx+mstTLWFGJ",
|
|
26
|
-
"manifest.data.js": "sha384-
|
|
27
|
-
"manifest.data.min.js": "sha384-
|
|
26
|
+
"manifest.data.js": "sha384-Dlkyz1KGqWZHRMLje++aclXPrLInBRGhsqtsH+MkLf4G2vNaT7xI09GERCSOwa/A",
|
|
27
|
+
"manifest.data.min.js": "sha384-KIF8sGE7lvhewtrY1zqz3wBYe51CAjJ3hbrncIvjhHOFBeflSPyGDD+22ODgL4+o",
|
|
28
28
|
"manifest.datepicker.js": "sha384-pZUQhUK6u5cl6g0myBXND/Wtrs1RTovYmy/ETQLUV0JujvTvUdRNc/XjPpVhtK16",
|
|
29
29
|
"manifest.datepicker.min.js": "sha384-e6xN1xQW3LLFvmSWrh3INMCgfUwD+gJca6n9fJfUFArA/OSm2KY0MDeN0pHVsYiw",
|
|
30
|
-
"manifest.defer.js": "sha384-
|
|
31
|
-
"manifest.defer.min.js": "sha384
|
|
30
|
+
"manifest.defer.js": "sha384-QDuxDj/lBFDr9FxUnEyI7THz79DJE8DkYPlFjjyHMDisMLtD3FwDys2zU8REgfAq",
|
|
31
|
+
"manifest.defer.min.js": "sha384-4nS6Cw0qZ5AxCyUHMc5LTDeQsM8TOZRTmNOHOe9EAWj7YXRTObURTJpy7uhv99Ds",
|
|
32
32
|
"manifest.device.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
|
|
33
33
|
"manifest.device.min.js": "sha384-RUCUISMsZmxbFzYJQSRn78zByAroAZr7tyiVw4wuFQpRXRge4EPtGjOpEpF3FybO",
|
|
34
34
|
"manifest.dropdowns.js": "sha384-HoHGDMVtQyPVjvvTjKazEev+4Ob2eCimJkB0atI3hEL9L7JOTYHmSlETKePXFocw",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"manifest.submissions.min.js": "sha384-p/5Ekd6u/cTsyVQbRgGzEi3h1hJU9zD7+hjdR+upcwt++26sfrLXMjFI2YjS8zWt",
|
|
60
60
|
"manifest.svg.js": "sha384-D1jF3a0pXIuzm7T2sltyzblF8BTZ8sv1CkfJyQ33q21G6QlYyjdPv8DJi80eCISD",
|
|
61
61
|
"manifest.svg.min.js": "sha384-rsvQ50FgVpTxX2Wvba3hed2TQvZR+CHHfgS4Cg7V1Dyjx6rxkS1s6rG6UMWDIMez",
|
|
62
|
-
"manifest.sw.js": "sha384-
|
|
63
|
-
"manifest.sw.min.js": "sha384-
|
|
62
|
+
"manifest.sw.js": "sha384-sRctgJsW1hJBdlWv26BsfvdlmHcTrr9DaW1A8bqvhpgNYvYc7kbZ3oKjQCGVsMsW",
|
|
63
|
+
"manifest.sw.min.js": "sha384-asEXF1LrK0aByFO0XJWxlfTO0u5vyq+ooz1b3ZTzjzdn+zfKmYwamWZ5fhAt3TdY",
|
|
64
64
|
"manifest.tabs.js": "sha384-LoPOo8mCAzyil9BLFV1BsDNBVyKmijKieKl7mbVAHEH/Nd7Ye0E6fM6yOgdBKcHZ",
|
|
65
65
|
"manifest.tabs.min.js": "sha384-7FTbGS9Mj0xe3X/w3j5HNi8411JHnLEaiLpgfX50rLID1Yz9m4DmM4dIeh8fmr8S",
|
|
66
66
|
"manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
|
package/lib/manifest.sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
// Build stamps the published version here; unstamped (dev) falls back to the
|
|
18
18
|
// registration URL's `v`, then 'dev'.
|
|
19
|
-
const BUILD_VERSION = '0.5.
|
|
19
|
+
const BUILD_VERSION = '0.5.333';
|
|
20
20
|
const CACHE_PREFIX = 'mnfst-sw:';
|
|
21
21
|
const META_CACHE = CACHE_PREFIX + 'meta';
|
|
22
22
|
// Sized to hold a full precache.json warm-up (PRECACHE_MAX_ENTRIES server-side)
|
package/lib/manifest.sw.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){"use strict";const t="0.5.
|
|
1
|
+
!function(){"use strict";const t="0.5.333",e="mnfst-sw:",n=e+"meta",a=/\.(css|js|mjs|json|csv|tsv|ya?ml|md|txt|xml|svg|png|jpe?g|gif|webp|avif|ico|bmp|woff2?|ttf|otf|eot|mp3|mp4|webm|ogg|wav|flac|m4a|wasm|webmanifest|map)$/i,s=/^\/(sw\.js$|precache\.json$|v1\/|_appwrite\/|_ai\/|__mnfst|__edit)/,i=/^(cdn\.manifestx\.dev|cdn\.jsdelivr\.net|unpkg\.com|esm\.run)$/,c="https://cdn.manifestx.dev/npm/",r=/^api\.(iconify\.design|simplesvg\.com|unisvg\.com)$/,o=/@\d+\.\d+\.\d+[^/]*(\/|$)/,l=/@[^/]+(\/|$)/;let f=null,u=!1;function m(t){try{return new URL(self.location.href).searchParams.get(t)||""}catch(t){return""}}function h(){return{version:-1===t.indexOf("-dev")?t:m("v")||"dev",deployment:m("d")}}function w(t){return e+t.version+":"+(t.deployment||"-")+":"}async function d(){const t=h();try{const e=await fetch("/manifest.json",{cache:"no-store"});if(e.ok){const n=await e.json();n&&"string"==typeof n.deployment&&n.deployment&&(t.deployment=n.deployment)}}catch(t){}try{const e=await caches.open(n);await e.put("/__meta",new Response(JSON.stringify(t),{headers:{"content-type":"application/json"}}))}catch(t){}return t}function p(){return f||(f=(async()=>{try{const t=await caches.open(n),e=await t.match("/__meta");if(e){const t=await e.json();if(t&&t.version)return t}}catch(t){}return d()})().catch(()=>h())),f}async function y(t){if(u)throw new Error("killed");const e=await p();return caches.open(w(e)+t)}function g(t){return t.url.replace(/([?&])t=\d+(?=&|$)/,"$1").replace(/[?&]$/,"").replace(/\?&/,"?")}function v(t){if("GET"!==t.method)return null;if(t.headers.has("range"))return null;if(-1!==(t.headers.get("accept")||"").indexOf("text/event-stream"))return null;const e=new URL(g(t));if("http:"!==e.protocol&&"https:"!==e.protocol)return null;const n=e.origin===self.location.origin,c=e.pathname;return"navigate"===t.mode||"document"===t.destination?n?"document":null:n?s.test(c)?null:/(^|\/)manifest\.json$/.test(c)?"manifest":e.searchParams.get("v")?"immutable":/\.html?$/i.test(c)?"document":a.test(c)?"swr":null:r.test(e.host)?/\.json$/.test(c)?"immutable":null:i.test(e.host)?o.test(c)||/\/alpinejs@/.test(c)?"immutable":l.test(c)?"swr":null:null}function j(t){return!!t&&t.ok&&!t.redirected&&("basic"===t.type||"cors"===t.type||"default"===t.type)}function _(t){const e=new URL(t.url).origin===self.location.origin||"cors"===t.mode?fetch(t):fetch(new Request(t.url,{mode:"cors",credentials:"omit",redirect:"follow",integrity:t.integrity||""}));if(0!==t.url.indexOf(c))return e;const n=()=>fetch(new Request("https://cdn.jsdelivr.net/npm/"+t.url.slice(30),{mode:"cors",credentials:"omit",redirect:"follow",integrity:t.integrity||""}));return e.then(t=>t.ok?t:n().then(e=>e.ok?e:t).catch(()=>t),()=>n())}async function k(t,e){const n=await y("pages"),a=g(t);try{const e=await fetch(t);return j(e)&&await n.put(a,e.clone()),e}catch(s){const i=await n.match(a,{ignoreSearch:e});if(i)return i;if(e&&"navigate"===t.mode){const t=await n.match("/index.html")||await n.match("/");if(t)return t}throw s}}function $(t,e){const n=t.request;switch(e){case"immutable":return async function(t){const e=await y("assets"),n=g(t),a=await e.match(n);if(a)return a;const s=await _(t);return j(s)&&await e.put(n,s.clone()),s}(n);case"swr":return async function(t,e){const n=await y("swr"),a=g(t),s=await n.match(a),i=(async()=>{const e=await _(t);return j(e)&&(await n.put(a,e.clone()),await async function(t){const e=await t.keys(),n=e.length-500;for(let a=0;a<n;a++)await t.delete(e[a])}(n)),e})();return s?(e.waitUntil(i.catch(()=>{})),s):i}(n,t);case"document":return k(n,!0);case"manifest":return k(n,!1);default:return fetch(n)}}const x={version:h().version,ready:!0};self.__mnfstSw=x,self.addEventListener("install",t=>{try{f=null,t.waitUntil(d().then(t=>{f=Promise.resolve(t)}).catch(()=>{}))}catch(t){}}),self.addEventListener("activate",t=>{try{t.waitUntil((async()=>{if(!self.registration||"undefined"==typeof caches||"function"!=typeof fetch||self.__mnfstSw!==x)return void await self.registration.unregister();const t=await p();await async function(t){const a=w(t),s=await caches.keys();await Promise.all(s.filter(t=>0===t.indexOf(e)&&t!==n&&0!==t.indexOf(a)).map(t=>caches.delete(t)))}(t).catch(()=>{}),async function(t){let e;try{const t=await fetch("/precache.json",{cache:"no-store"});if(!t.ok)return;e=await t.json()}catch(t){return}if(!e||!Array.isArray(e.files))return;if(e.deployment&&t.deployment&&e.deployment!==t.deployment)return;const n=e.files.filter(t=>"string"==typeof t),a=async t=>{try{const e=new Request(new URL(t,self.location.origin).href),n=v(e);if(!n)return;const a="immutable"===n?"assets":"swr"===n?"swr":"pages",s=await y(a),i=g(e);if(await s.match(i))return;const c=await _(e);j(c)&&await s.put(i,c)}catch(t){}};let s=0;await Promise.all(Array.from({length:4},async()=>{for(;s<n.length;)await a(n[s++])}))}(t).catch(()=>{})})().catch(()=>{}))}catch(t){}}),self.addEventListener("fetch",t=>{if(u)return;let e=null;try{e=v(t.request)}catch(t){return}if(e)try{t.respondWith($(t,e).catch(()=>fetch(t.request)))}catch(t){}}),self.addEventListener("message",t=>{try{const n=t.data;if(!n||"manifest:sw"!==n.type)return;const a=e=>{try{const n=t.ports&&t.ports[0];n?n.postMessage(e):t.source&&t.source.postMessage&&t.source.postMessage(e)}catch(t){}};if("ping"===n.action)return void a({type:"manifest:sw",action:"pong"});if("version"===n.action)return void t.waitUntil(p().then(t=>a({type:"manifest:sw",action:"version",version:t.version,deployment:t.deployment,key:w(t)})).catch(()=>{}));"kill"===n.action&&(u=!0,t.waitUntil((async()=>{await async function(){const t=await caches.keys();await Promise.all(t.filter(t=>0===t.indexOf(e)).map(t=>caches.delete(t)))}().catch(()=>{}),await self.registration.unregister().catch(()=>{}),a({type:"manifest:sw",action:"killed"})})().catch(()=>{})))}catch(t){}})}();
|
|
2
2
|
//# sourceMappingURL=manifest.sw.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mnfst",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.333",
|
|
4
4
|
"private": false,
|
|
5
5
|
"workspaces": [
|
|
6
6
|
"templates/starter",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"test:e2e:responsive-order": "node tests/e2e/utilities-responsive-order.e2e.mjs",
|
|
68
68
|
"test:e2e:delta-arming": "node tests/e2e/utilities-delta-arming.e2e.mjs",
|
|
69
69
|
"test:e2e:boot-waterfall": "node tests/e2e/boot-waterfall.e2e.mjs",
|
|
70
|
+
"test:e2e:defer-churn": "node tests/e2e/defer-churn.e2e.mjs --assert",
|
|
70
71
|
"test:e2e:on-use": "node tests/e2e/on-use-modules.e2e.mjs",
|
|
71
72
|
"test:e2e:virtual-boot": "node tests/e2e/virtual-boot.e2e.mjs",
|
|
72
73
|
"test:e2e:virtual-onuse": "node tests/e2e/virtual-boot.e2e.mjs --on-use",
|