diff --git a/.gitignore b/.gitignore index dd5660b..0a66357 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /node_modules Gemfile.lock *.key +*~ diff --git a/app/assets/builds/@turbo-boost/elements.js b/app/assets/builds/@turbo-boost/elements.js index 0b1503e..b1689b6 100644 --- a/app/assets/builds/@turbo-boost/elements.js +++ b/app/assets/builds/@turbo-boost/elements.js @@ -1,13 +1,8 @@ -var $o=Object.defineProperty,jo=Object.defineProperties;var No=Object.getOwnPropertyDescriptors;var Ln=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable;var $n=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t)=>{for(var n in t||(t={}))Bo.call(t,n)&&$n(e,n,t[n]);if(Ln)for(var n of Ln(t))Mo.call(t,n)&&$n(e,n,t[n]);return e},K=(e,t)=>jo(e,No(t));var Ro=Object.defineProperty,Do=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable,Nn=(e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||(t={}))Ho.call(t,n)&&Nn(e,n,t[n]);if(jn)for(var n of jn(t))qo.call(t,n)&&Nn(e,n,t[n]);return e},Y=(e,t)=>Do(e,Po(t)),Io=Object.defineProperty,zo=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,Bn=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,Mn=(e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Me=(e,t)=>{for(var n in t||(t={}))Wo.call(t,n)&&Mn(e,n,t[n]);if(Bn)for(var n of Bn(t))Vo.call(t,n)&&Mn(e,n,t[n]);return e},Xn=(e,t)=>zo(e,Fo(t)),Dt=!1,Pt=!1,ie=[];function Uo(e){Jo(e)}function Jo(e){ie.includes(e)||ie.push(e),Ko()}function Gn(e){let t=ie.indexOf(e);t!==-1&&ie.splice(t,1)}function Ko(){!Pt&&!Dt&&(Dt=!0,queueMicrotask(Xo))}function Xo(){Dt=!1,Pt=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Ht?Uo(n):n()}}),Zn=e.raw}function Rn(e){xe=e}function Yo(e){let t=()=>{};return[n=>{let r=xe(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),He(r))},r},()=>{t()}]}var Yn=[],Qn=[],er=[];function Qo(e){er.push(e)}function tr(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Qn.push(t))}function ei(e){Yn.push(e)}function ti(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function nr(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(o=>o()),delete e._x_attributeCleanups[n])})}var en=new MutationObserver(on),tn=!1;function nn(){en.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),tn=!0}function rr(){ni(),en.disconnect(),tn=!1}var $e=[],$t=!1;function ni(){$e=$e.concat(en.takeRecords()),$e.length&&!$t&&($t=!0,queueMicrotask(()=>{ri(),$t=!1}))}function ri(){on($e),$e.length=0}function O(e){if(!tn)return e();rr();let t=e();return nn(),t}var rn=!1,ot=[];function oi(){rn=!0}function ii(){rn=!1,on(ot),ot=[]}function on(e){if(rn){ot=ot.concat(e);return}let t=[],n=[],r=new Map,o=new Map;for(let i=0;is.nodeType===1&&t.push(s)),e[i].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[i].type==="attributes")){let s=e[i].target,l=e[i].attributeName,a=e[i].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:l,value:s.getAttribute(l)})},d=()=>{o.has(s)||o.set(s,[]),o.get(s).push(l)};s.hasAttribute(l)&&a===null?u():s.hasAttribute(l)?(d(),u()):d()}o.forEach((i,s)=>{nr(s,i)}),r.forEach((i,s)=>{Yn.forEach(l=>l(s,i))});for(let i of n)if(!t.includes(i)&&(Qn.forEach(s=>s(i)),i._x_cleanups))for(;i._x_cleanups.length;)i._x_cleanups.pop()();t.forEach(i=>{i._x_ignoreSelf=!0,i._x_ignore=!0});for(let i of t)n.includes(i)||i.isConnected&&(delete i._x_ignoreSelf,delete i._x_ignore,er.forEach(s=>s(i)),i._x_ignore=!0,i._x_ignoreSelf=!0);t.forEach(i=>{delete i._x_ignoreSelf,delete i._x_ignore}),t=null,n=null,r=null,o=null}function or(e){return Ie(be(e))}function qe(e,t,n){return e._x_dataStack=[t,...be(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Dn(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,o])=>{n[r]=o})}function be(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?be(e.host):e.parentNode?be(e.parentNode):[]}function Ie(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(o=>o.hasOwnProperty(r)),get:(n,r)=>(e.find(o=>{if(o.hasOwnProperty(r)){let i=Object.getOwnPropertyDescriptor(o,r);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let s=i.get,l=i.set,a=i;s=s&&s.bind(t),l=l&&l.bind(t),s&&(s._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(o,r,Xn(Me({},a),{get:s,set:l}))}return!0}return!1})||{})[r],set:(n,r,o)=>{let i=e.find(s=>s.hasOwnProperty(r));return i?i[r]=o:e[e.length-1][r]=o,!0}});return t}function ir(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([i,{value:s,enumerable:l}])=>{if(l===!1||s===void 0)return;let a=o===""?i:`${o}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[i]=s.initialize(e,a,i):t(s)&&s!==r&&!(s instanceof Element)&&n(s,a)})};return n(e)}function sr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,o,i){return e(this.initialValue,()=>si(r,o),s=>lr(r,o,s),o,i)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let o=n.initialize.bind(n);n.initialize=(i,s,l)=>{let a=r.initialize(i,s,l);return n.initialValue=a,o(i,s,l)}}else n.initialValue=r;return n}}function si(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function lr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),lr(e[t[0]],t.slice(1),n)}}var ar={};function q(e,t){ar[e]=t}function qt(e,t){return Object.entries(ar).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[o,i]=hr(t);return o=Me({interceptor:sr},o),tr(t,i),r(t,o)},enumerable:!1})}),e}function li(e,t,n,...r){try{return n(...r)}catch(o){Re(o,e,t)}}function Re(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} +var $o=Object.defineProperty,jo=Object.defineProperties;var No=Object.getOwnPropertyDescriptors;var Tn=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable;var An=(e,t,n)=>t in e?$o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,de=(e,t)=>{for(var n in t||(t={}))Bo.call(t,n)&&An(e,n,t[n]);if(Tn)for(var n of Tn(t))Mo.call(t,n)&&An(e,n,t[n]);return e},fe=(e,t)=>jo(e,No(t));var Ro=Object.defineProperty,Do=Object.defineProperties,Po=Object.getOwnPropertyDescriptors,On=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,qo=Object.prototype.propertyIsEnumerable,Cn=(e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t)=>{for(var n in t||(t={}))Ho.call(t,n)&&Cn(e,n,t[n]);if(On)for(var n of On(t))qo.call(t,n)&&Cn(e,n,t[n]);return e},G=(e,t)=>Do(e,Po(t)),Io=Object.defineProperty,zo=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,$n=(e,t,n)=>t in e?Io(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t)=>{for(var n in t||(t={}))Wo.call(t,n)&&$n(e,n,t[n]);if(Ln)for(var n of Ln(t))Vo.call(t,n)&&$n(e,n,t[n]);return e},Vn=(e,t)=>zo(e,Fo(t)),Nt=!1,Bt=!1,re=[];function Uo(e){Jo(e)}function Jo(e){re.includes(e)||re.push(e),Ko()}function Un(e){let t=re.indexOf(e);t!==-1&&re.splice(t,1)}function Ko(){!Bt&&!Nt&&(Nt=!0,queueMicrotask(Xo))}function Xo(){Nt=!1,Bt=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Mt?Uo(n):n()}}),Jn=e.raw}function jn(e){xe=e}function Yo(e){let t=()=>{};return[n=>{let r=xe(n);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(r),t=()=>{r!==void 0&&(e._x_effects.delete(r),Pe(r))},r},()=>{t()}]}var Kn=[],Xn=[],Gn=[];function Qo(e){Gn.push(e)}function Zn(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Xn.push(t))}function ei(e){Kn.push(e)}function ti(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Yn(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(o=>o()),delete e._x_attributeCleanups[n])})}var Gt=new MutationObserver(en),Zt=!1;function Yt(){Gt.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Zt=!0}function Qn(){ni(),Gt.disconnect(),Zt=!1}var Le=[],At=!1;function ni(){Le=Le.concat(Gt.takeRecords()),Le.length&&!At&&(At=!0,queueMicrotask(()=>{ri(),At=!1}))}function ri(){en(Le),Le.length=0}function C(e){if(!Zt)return e();Qn();let t=e();return Yt(),t}var Qt=!1,Qe=[];function oi(){Qt=!0}function ii(){Qt=!1,en(Qe),Qe=[]}function en(e){if(Qt){Qe=Qe.concat(e);return}let t=[],n=[],r=new Map,o=new Map;for(let i=0;is.nodeType===1&&t.push(s)),e[i].removedNodes.forEach(s=>s.nodeType===1&&n.push(s))),e[i].type==="attributes")){let s=e[i].target,l=e[i].attributeName,a=e[i].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:l,value:s.getAttribute(l)})},d=()=>{o.has(s)||o.set(s,[]),o.get(s).push(l)};s.hasAttribute(l)&&a===null?u():s.hasAttribute(l)?(d(),u()):d()}o.forEach((i,s)=>{Yn(s,i)}),r.forEach((i,s)=>{Kn.forEach(l=>l(s,i))});for(let i of n)if(!t.includes(i)&&(Xn.forEach(s=>s(i)),i._x_cleanups))for(;i._x_cleanups.length;)i._x_cleanups.pop()();t.forEach(i=>{i._x_ignoreSelf=!0,i._x_ignore=!0});for(let i of t)n.includes(i)||i.isConnected&&(delete i._x_ignoreSelf,delete i._x_ignore,Gn.forEach(s=>s(i)),i._x_ignore=!0,i._x_ignoreSelf=!0);t.forEach(i=>{delete i._x_ignoreSelf,delete i._x_ignore}),t=null,n=null,r=null,o=null}function er(e){return qe(be(e))}function He(e,t,n){return e._x_dataStack=[t,...be(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function Nn(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,o])=>{n[r]=o})}function be(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?be(e.host):e.parentNode?be(e.parentNode):[]}function qe(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(o=>o.hasOwnProperty(r)),get:(n,r)=>(e.find(o=>{if(o.hasOwnProperty(r)){let i=Object.getOwnPropertyDescriptor(o,r);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let s=i.get,l=i.set,a=i;s=s&&s.bind(t),l=l&&l.bind(t),s&&(s._x_alreadyBound=!0),l&&(l._x_alreadyBound=!0),Object.defineProperty(o,r,Vn(Be({},a),{get:s,set:l}))}return!0}return!1})||{})[r],set:(n,r,o)=>{let i=e.find(s=>s.hasOwnProperty(r));return i?i[r]=o:e[e.length-1][r]=o,!0}});return t}function tr(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([i,{value:s,enumerable:l}])=>{if(l===!1||s===void 0)return;let a=o===""?i:`${o}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[i]=s.initialize(e,a,i):t(s)&&s!==r&&!(s instanceof Element)&&n(s,a)})};return n(e)}function nr(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,o,i){return e(this.initialValue,()=>si(r,o),s=>rr(r,o,s),o,i)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let o=n.initialize.bind(n);n.initialize=(i,s,l)=>{let a=r.initialize(i,s,l);return n.initialValue=a,o(i,s,l)}}else n.initialValue=r;return n}}function si(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function rr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),rr(e[t[0]],t.slice(1),n)}}var or={};function q(e,t){or[e]=t}function Rt(e,t){return Object.entries(or).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[o,i]=ur(t);return o=Be({interceptor:nr},o),Zn(t,i),r(t,o)},enumerable:!1})}),e}function li(e,t,n,...r){try{return n(...r)}catch(o){Me(o,e,t)}}function Me(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} ${n?'Expression: "'+n+`" -`:""}`,t),setTimeout(()=>{throw e},0)}var nt=!0;function ai(e){let t=nt;nt=!1,e(),nt=t}function me(e,t,n={}){let r;return N(e,t)(o=>r=o,n),r}function N(...e){return ur(...e)}var ur=cr;function ui(e){ur=e}function cr(e,t){let n={};qt(n,e);let r=[n,...be(e)];if(typeof t=="function")return ci(r,t);let o=fi(r,t,e);return li.bind(null,e,t,o)}function ci(e,t){return(n=()=>{},{scope:r={},params:o=[]}={})=>{let i=t.apply(Ie([r,...e]),o);it(n,i)}}var jt={};function di(e,t){if(jt[e])return jt[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(i){return Re(i,t,e),Promise.resolve()}})();return jt[e]=o,o}function fi(e,t,n){let r=di(t,n);return(o=()=>{},{scope:i={},params:s=[]}={})=>{r.result=void 0,r.finished=!1;let l=Ie([i,...e]);if(typeof r=="function"){let a=r(r,l).catch(u=>Re(u,n,t));r.finished?(it(o,r.result,l,s,n),r.result=void 0):a.then(u=>{it(o,u,l,s,n)}).catch(u=>Re(u,n,t)).finally(()=>r.result=void 0)}}}function it(e,t,n,r,o){if(nt&&typeof t=="function"){let i=t.apply(n,r);i instanceof Promise?i.then(s=>it(e,s,n,r)).catch(s=>Re(s,o,t)):e(i)}else typeof t=="object"&&t instanceof Promise?t.then(i=>e(i)):e(t)}var sn="x-";function Ee(e=""){return sn+e}function hi(e){sn=e}var It={};function T(e,t){return It[e]=t,{before(n){var r;if(!It[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}let o=(r=oe.indexOf(n))!=null?r:oe.indexOf("DEFAULT");o>=0&&oe.splice(o,0,e)}}}function ln(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let o=Object.entries(e._x_virtualDirectives).map(([s,l])=>({name:s,value:l})),i=dr(o);o=o.map(s=>i.find(l=>l.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(o)}let r={};return t.map(gr((o,i)=>r[o]=i)).filter(vr).map(gi(r,n)).sort(bi).map(o=>mi(e,o))}function dr(e){return Array.from(e).map(gr()).filter(t=>!vr(t))}var zt=!1,Le=new Map,fr=Symbol();function pi(e){zt=!0;let t=Symbol();fr=t,Le.set(t,[]);let n=()=>{for(;Le.get(t).length;)Le.get(t).shift()();Le.delete(t)},r=()=>{zt=!1,n()};e(n),r()}function hr(e){let t=[],n=i=>t.push(i),[r,o]=Yo(e);return t.push(o),[{Alpine:Fe,effect:r,cleanup:n,evaluateLater:N.bind(N,e),evaluate:me.bind(me,e)},()=>t.forEach(i=>i())]}function mi(e,t){let n=()=>{},r=It[t.type]||n,[o,i]=hr(e);ti(e,t.original,i);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,o),r=r.bind(r,e,t,o),zt?Le.get(fr).push(r):r())};return s.runCleanups=i,s}var pr=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),mr=e=>e;function gr(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:o}=br.reduce((i,s)=>s(i),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:o}}}var br=[];function an(e){br.push(e)}function vr({name:e}){return _r().test(e)}var _r=()=>new RegExp(`^${sn}([^:^.]+)\\b`);function gi(e,t){return({name:n,value:r})=>{let o=n.match(_r()),i=n.match(/:([a-zA-Z0-9\-:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],l=t||e[n]||n;return{type:o?o[1]:null,value:i?i[1]:null,modifiers:s.map(a=>a.replace(".","")),expression:r,original:l}}}var Ft="DEFAULT",oe=["ignore","ref","data","id","radio","tabs","switch","disclosure","menu","listbox","combobox","bind","init","for","mask","model","modelable","transition","show","if",Ft,"teleport"];function bi(e,t){let n=oe.indexOf(e.type)===-1?Ft:e.type,r=oe.indexOf(t.type)===-1?Ft:t.type;return oe.indexOf(n)-oe.indexOf(r)}function je(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function Q(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(o=>Q(o,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Q(r,t,!1),r=r.nextElementSibling}function ve(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function vi(){document.body||ve("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `