@ti-engine/web-framework 1.24.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This document will contain the list of changes made to the framework. The format is based on the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.
4
4
 
5
+ ## Version 1.24.1
6
+
7
+ License change only — no functional code changed.
8
+
9
+ * chore(license): relicense package from `GPL-3.0-or-later` to `Apache-2.0`. See `LICENSE` and `NOTICE`
10
+ * docs(license): update every source file's license header to the Apache-2.0 notice
11
+
5
12
  ## Version 1.24.0
6
13
 
7
14
  A configuration file change shipped in a release could never reach a deployment that had already been seeded. The
package/LICENSE ADDED
@@ -0,0 +1,204 @@
1
+ Copyright 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
2
+
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
package/README.md CHANGED
@@ -123,4 +123,8 @@ mkcert -install
123
123
  Step 3: Generate certificate files for localhost:
124
124
  ```text
125
125
  mkcert localhost 127.0.0.1 ::1
126
- ```
126
+ ```
127
+
128
+ ## License
129
+
130
+ Apache-2.0 © Boris Kostadinov. See [LICENSE](LICENSE).
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  "use strict";
@@ -1,7 +1,7 @@
1
- (()=>{var re=!1,ne=!1,Z=[],ie=-1,oe=!1;function Je(t){Vn(t)}function Ye(){oe=!0}function Ze(){oe=!1,Qe()}function Vn(t){Z.includes(t)||Z.push(t),Qe()}function Xe(t){let e=Z.indexOf(t);e!==-1&&e>ie&&Z.splice(e,1)}function Qe(){if(!ne&&!re){if(oe)return;re=!0,queueMicrotask(zn)}}function zn(){re=!1,ne=!0;for(let t=0;t<Z.length;t++)Z[t](),ie=t;Z.length=0,ie=-1,ne=!1}var C,D,B,ae,se=!0;function tr(t){se=!1,t(),se=!0}function er(t){C=t.reactive,B=t.release,D=e=>t.effect(e,{scheduler:r=>{se?Je(r):r()}}),ae=t.raw}function ue(t){D=t}function rr(t){let e=()=>{};return[n=>{let i=D(n);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(o=>o())}),t._x_effects.add(i),e=()=>{i!==void 0&&(t._x_effects.delete(i),B(i))},i},()=>{e()}]}function At(t,e){let r=!0,n,i,o=D(()=>{let s=t(),a=JSON.stringify(s);if(!r&&(typeof s=="object"||s!==n)){let u=typeof n=="object"?JSON.parse(i):n;queueMicrotask(()=>{e(s,u)})}n=s,i=a,r=!1});return()=>B(o)}async function nr(t){Ye();try{await t(),await Promise.resolve()}finally{Ze()}}var ir=[],or=[],sr=[];function ar(t){sr.push(t)}function it(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,or.push(e))}function St(t){ir.push(t)}function Tt(t,e,r){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(r)}function ce(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([r,n])=>{(e===void 0||e.includes(r))&&(n.forEach(i=>i()),delete t._x_attributeCleanups[r])})}function ur(t){for(t._x_effects?.forEach(Xe);t._x_cleanups?.length;)t._x_cleanups.pop()()}var le=new MutationObserver(he),fe=!1;function ft(){le.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),fe=!0}function pe(){Hn(),le.disconnect(),fe=!1}var lt=[];function Hn(){let t=le.takeRecords();lt.push(()=>t.length>0&&he(t));let e=lt.length;queueMicrotask(()=>{if(lt.length===e)for(;lt.length>0;)lt.shift()()})}function _(t){if(!fe)return t();pe();let e=t();return ft(),e}var de=!1,Ot=[];function cr(){de=!0}function lr(){de=!1,he(Ot),Ot=[]}function he(t){if(de){Ot=Ot.concat(t);return}let e=[],r=new Set,n=new Map,i=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&(t[o].type==="childList"&&(t[o].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&r.add(s)}),t[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(r.has(s)){r.delete(s);return}s._x_marker||e.push(s)}})),t[o].type==="attributes")){let s=t[o].target,a=t[o].attributeName,u=t[o].oldValue,c=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&u===null?c():s.hasAttribute(a)?(l(),c()):l()}i.forEach((o,s)=>{ce(s,o)}),n.forEach((o,s)=>{ir.forEach(a=>a(s,o))});for(let o of r)e.some(s=>s.contains(o))||or.forEach(s=>s(o));for(let o of e)o.isConnected&&sr.forEach(s=>s(o));e=null,r=null,n=null,i=null}function Nt(t){return k(V(t))}function U(t,e,r){return t._x_dataStack=[e,...V(r||t)],()=>{t._x_dataStack=t._x_dataStack.filter(n=>n!==e)}}function V(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?V(t.host):t.parentNode?V(t.parentNode):[]}function k(t){return new Proxy({objects:t},Kn)}function fr(t,e){return t===null||t===Object.prototype?null:Object.prototype.hasOwnProperty.call(t,e)?t:fr(Object.getPrototypeOf(t),e)}var Kn={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(r=>Object.prototype.hasOwnProperty.call(r,e)||Reflect.has(r,e))},get({objects:t},e,r){return e=="toJSON"?qn:Reflect.get(t.find(n=>Reflect.has(n,e))||{},e,r)},set({objects:t},e,r,n){let i;for(let s of t)if(i=fr(s,e),i)break;i||(i=t[t.length-1]);let o=Object.getOwnPropertyDescriptor(i,e);return o?.set&&o?.get?o.set.call(n,r)||!0:Reflect.set(i,e,r)}};function qn(){return Reflect.ownKeys(this).reduce((e,r)=>(e[r]=Reflect.get(this,r),e),{})}function ot(t){let e=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,r=(n,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let u=i===""?o:`${i}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(t,u,o):e(s)&&s!==n&&!(s instanceof Element)&&r(s,u)})};return r(t)}function Ct(t,e=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o){return t(this.initialValue,()=>Wn(n,i),s=>me(n,i,s),i,o)}};return e(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a)=>{let u=n.initialize(o,s,a);return r.initialValue=u,i(o,s,a)}}else r.initialValue=n;return r}}function Wn(t,e){return e.split(".").reduce((r,n)=>r[n],t)}function me(t,e,r){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=r;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),me(t[e[0]],e.slice(1),r)}}var pr={};function b(t,e){pr[t]=e}function K(t,e){let r=Gn(e);return Object.entries(pr).forEach(([n,i])=>{Object.defineProperty(t,`$${n}`,{get(){return i(e,r)},enumerable:!1})}),t}function Gn(t){let[e,r]=_e(t),n={interceptor:Ct,...e};return it(t,r),n}function ge(t,e,r,...n){try{return r(...n)}catch(i){pt(i,t,e)}}function pt(...t){return dr(...t)}var dr=Jn;function hr(t){dr=t}function Jn(t,e,r=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:r}),console.warn(`Alpine Expression Error: ${t.message}
1
+ (()=>{var ne=!1,ie=!1,X=[],oe=-1,se=!1;function Ze(t){Vn(t)}function Xe(){se=!0}function Qe(){se=!1,er()}function Vn(t){X.includes(t)||X.push(t),er()}function tr(t){let e=X.indexOf(t);e!==-1&&e>oe&&X.splice(e,1)}function er(){if(!ie&&!ne){if(se)return;ne=!0,queueMicrotask(Hn)}}function Hn(){ne=!1,ie=!0;for(let t=0;t<X.length;t++)X[t](),oe=t;X.length=0,oe=-1,ie=!1}var C,D,B,ce,ae=!0;function rr(t){ae=!1,t(),ae=!0}function nr(t){C=t.reactive,B=t.release,D=e=>t.effect(e,{scheduler:r=>{ae?Ze(r):r()}}),ce=t.raw}function ue(t){D=t}function ir(t){let e=()=>{};return[n=>{let i=D(n);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(o=>o())}),t._x_effects.add(i),e=()=>{i!==void 0&&(t._x_effects.delete(i),B(i))},i},()=>{e()}]}function Ot(t,e){let r=!0,n,i,o=D(()=>{let s=t(),a=JSON.stringify(s);if(!r&&(typeof s=="object"||s!==n)){let c=typeof n=="object"?JSON.parse(i):n;queueMicrotask(()=>{e(s,c)})}n=s,i=a,r=!1});return()=>B(o)}async function or(t){Xe();try{await t(),await Promise.resolve()}finally{Qe()}}var sr=[],ar=[],cr=[];function ur(t){cr.push(t)}function ot(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,ar.push(e))}function Tt(t){sr.push(t)}function Nt(t,e,r){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(r)}function le(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([r,n])=>{(e===void 0||e.includes(r))&&(n.forEach(i=>i()),delete t._x_attributeCleanups[r])})}function lr(t){for(t._x_effects?.forEach(tr);t._x_cleanups?.length;)t._x_cleanups.pop()()}var fe=new MutationObserver(me),pe=!1;function pt(){fe.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),pe=!0}function de(){qn(),fe.disconnect(),pe=!1}var ft=[];function qn(){let t=fe.takeRecords();ft.push(()=>t.length>0&&me(t));let e=ft.length;queueMicrotask(()=>{if(ft.length===e)for(;ft.length>0;)ft.shift()()})}function _(t){if(!pe)return t();de();let e=t();return pt(),e}var he=!1,St=[];function fr(){he=!0}function pr(){he=!1,me(St),St=[]}function me(t){if(he){St=St.concat(t);return}let e=[],r=new Set,n=new Map,i=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&(t[o].type==="childList"&&(t[o].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&r.add(s)}),t[o].addedNodes.forEach(s=>{if(s.nodeType===1){if(r.has(s)){r.delete(s);return}s._x_marker||e.push(s)}})),t[o].type==="attributes")){let s=t[o].target,a=t[o].attributeName,c=t[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{i.has(s)||i.set(s,[]),i.get(s).push(a)};s.hasAttribute(a)&&c===null?u():s.hasAttribute(a)?(l(),u()):l()}i.forEach((o,s)=>{le(s,o)}),n.forEach((o,s)=>{sr.forEach(a=>a(s,o))});for(let o of r)e.some(s=>s.contains(o))||ar.forEach(s=>s(o));for(let o of e)o.isConnected&&cr.forEach(s=>s(o));e=null,r=null,n=null,i=null}function Ct(t){return R(z(t))}function U(t,e,r){return t._x_dataStack=[e,...z(r||t)],()=>{t._x_dataStack=t._x_dataStack.filter(n=>n!==e)}}function z(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?z(t.host):t.parentNode?z(t.parentNode):[]}function R(t){return new Proxy({objects:t},Kn)}function dr(t,e){return t===null||t===Object.prototype?null:Object.prototype.hasOwnProperty.call(t,e)?t:dr(Object.getPrototypeOf(t),e)}var Kn={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(r=>Object.prototype.hasOwnProperty.call(r,e)||Reflect.has(r,e))},get({objects:t},e,r){return e=="toJSON"?Wn:Reflect.get(t.find(n=>Reflect.has(n,e))||{},e,r)},set({objects:t},e,r,n){let i;for(let s of t)if(i=dr(s,e),i)break;i||(i=t[t.length-1]);let o=Object.getOwnPropertyDescriptor(i,e);return o?.set&&o?.get?o.set.call(n,r)||!0:Reflect.set(i,e,r)}};function Wn(){return Reflect.ownKeys(this).reduce((e,r)=>(e[r]=Reflect.get(this,r),e),{})}function st(t,e=()=>{}){let r=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([s,{value:a,enumerable:c}])=>{if(c===!1||a===void 0||typeof a=="object"&&a!==null&&a.__v_skip)return;let u=o===""?s:`${o}.${s}`;typeof a=="object"&&a!==null&&a._x_interceptor?i[s]=a.initialize(t,u,s,e):r(a)&&a!==i&&!(a instanceof Element)&&n(a,u)})};return n(t)}function Rt(t,e=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(n,i,o,s){return t(this.initialValue,()=>Gn(n,i),a=>_e(n,i,a),i,o,s)}};return e(r),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let i=r.initialize.bind(r);r.initialize=(o,s,a,c)=>{let u=n.initialize(o,s,a,c);return r.initialValue=u,i(o,s,a,c)}}else r.initialValue=n;return r}}function Gn(t,e){return e.split(".").reduce((r,n)=>r[n],t)}function _e(t,e,r){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=r;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),_e(t[e[0]],e.slice(1),r)}}var hr={};function b(t,e){hr[t]=e}function K(t,e){let r=Jn(e);return Object.entries(hr).forEach(([n,i])=>{Object.defineProperty(t,`$${n}`,{get(){return i(e,r)},enumerable:!1})}),t}function Jn(t){let[e,r]=ge(t),n={interceptor:Rt,...e};return ot(t,r),n}function xe(t,e,r,...n){try{return r(...n)}catch(i){dt(i,t,e)}}function dt(...t){return mr(...t)}var mr=Yn;function _r(t){mr=t}function Yn(t,e,r=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:r}),console.warn(`Alpine Expression Error: ${t.message}
2
2
 
3
3
  ${r?'Expression: "'+r+`"
4
4
 
5
- `:""}`,e),setTimeout(()=>{throw t},0)}var q=!0;function kt(t){let e=q;q=!1;let r=t();return q=e,r}function R(t,e,r={}){let n;return y(t,e)(i=>n=i,r),n}function y(...t){return mr(...t)}var mr=()=>{};function _r(t){mr=t}var gr;function xr(t){gr=t}function yr(t,e){return(r=()=>{},{scope:n={},params:i=[],context:o}={})=>{if(!q){xe(r,e,k([n,...t]),i);return}let s=e.apply(k([n,...t]),i);xe(r,s)}}function xe(t,e,r,n,i){if(q&&typeof e=="function"){let o=e.apply(r,n);o instanceof Promise?o.then(s=>xe(t,s,r,n)).catch(s=>pt(s,i,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}function br(...t){return gr(...t)}var we="x-";function N(t=""){return we+t}function wr(t){we=t}var Rt={};function h(t,e){return Rt[t]=e,{before(r){if(!Rt[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${t}\` will use the default order of execution`);return}let n=X.indexOf(r);X.splice(n>=0?n:X.indexOf("DEFAULT"),0,t)}}}function Er(t){return Object.keys(Rt).includes(t)}function ht(t,e,r){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,u])=>({name:a,value:u})),s=Ee(o);o=o.map(a=>s.find(u=>u.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let n={};return e.map(Or((o,s)=>n[o]=s)).filter(Tr).map(Zn(n,r)).sort(Xn).map(o=>Yn(t,o))}function Ee(t){return Array.from(t).map(Or()).filter(e=>!Tr(e))}var ye=!1,dt=new Map,vr=Symbol();function Ar(t){ye=!0;let e=Symbol();vr=e,dt.set(e,[]);let r=()=>{for(;dt.get(e).length;)dt.get(e).shift()();dt.delete(e)},n=()=>{ye=!1,r()};t(r),n()}function _e(t){let e=[],r=a=>e.push(a),[n,i]=rr(t);return e.push(i),[{Alpine:z,effect:n,cleanup:r,evaluateLater:y.bind(y,t),evaluate:R.bind(R,t)},()=>e.forEach(a=>a())]}function Yn(t,e){let r=()=>{},n=Rt[e.type]||r,[i,o]=_e(t);Tt(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,i),n=n.bind(n,t,e,i),ye?dt.get(vr).push(n):n())};return s.runCleanups=o,s}var Mt=(t,e)=>({name:r,value:n})=>(r.startsWith(t)&&(r=r.replace(t,e)),{name:r,value:n}),Pt=t=>t;function Or(t=()=>{}){return({name:e,value:r})=>{let{name:n,value:i}=Sr.reduce((o,s)=>s(o),{name:e,value:r});return n!==e&&t(n,e),{name:n,value:i}}}var Sr=[];function st(t){Sr.push(t)}function Tr({name:t}){return Nr().test(t)}var Nr=()=>new RegExp(`^${we}([^:^.]+)\\b`);function Zn(t,e){return({name:r,value:n})=>{r===n&&(n="");let i=r.match(Nr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(u=>u.replace(".","")),expression:n,original:a}}}var be="DEFAULT",X=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",be,"teleport"];function Xn(t,e){let r=X.indexOf(t.type)===-1?be:t.type,n=X.indexOf(e.type)===-1?be:e.type;return X.indexOf(r)-X.indexOf(n)}function Q(t,e,r={},n={}){return t.dispatchEvent(new CustomEvent(e,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...n}))}function L(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(i=>L(i,e));return}let r=!1;if(e(t,()=>r=!0),r)return;let n=t.firstElementChild;for(;n;)L(n,e,!1),n=n.nextElementSibling}function A(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Cr=!1;function kr(){Cr&&A("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Cr=!0,document.body||A("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Q(document,"alpine:init"),Q(document,"alpine:initializing"),ft(),ar(e=>O(e,L)),it(e=>$(e)),St((e,r)=>{ht(e,r).forEach(n=>n())});let t=e=>!tt(e.parentElement,!0);Array.from(document.querySelectorAll(Pr().join(","))).filter(t).forEach(e=>{O(e)}),Q(document,"alpine:initialized"),setTimeout(()=>{ti()})}var ve=[],Rr=[];function Mr(){return ve.map(t=>t())}function Pr(){return ve.concat(Rr).map(t=>t())}function It(t){ve.push(t)}function Dt(t){Rr.push(t)}function tt(t,e=!1){return T(t,r=>{if((e?Pr():Mr()).some(i=>r.matches(i)))return!0})}function T(t,e){if(t){if(e(t))return t;if(t._x_teleportBack)return T(t._x_teleportBack,e);if(t.parentNode instanceof ShadowRoot)return T(t.parentNode.host,e);if(t.parentElement)return T(t.parentElement,e)}}function Ir(t){return Mr().some(e=>t.matches(e))}var Dr=[];function Ur(t){Dr.push(t)}var Qn=1;function O(t,e=L,r=()=>{}){T(t,n=>n._x_ignore)||Ar(()=>{e(t,(n,i)=>{n._x_marker||(r(n,i),Dr.forEach(o=>o(n,i)),ht(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=Qn++),n._x_ignore&&i())})})}function $(t,e=L){e(t,r=>{ur(r),ce(r),delete r._x_marker})}function ti(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,r,n])=>{Er(r)||n.some(i=>{if(document.querySelector(i))return A(`found "${i}", but missing ${e} plugin`),!0})})}var Ae=[],Oe=!1;function at(t=()=>{}){return queueMicrotask(()=>{Oe||setTimeout(()=>{Ut()})}),new Promise(e=>{Ae.push(()=>{t(),e()})})}function Ut(){for(Oe=!1;Ae.length;)Ae.shift()()}function Lr(){Oe=!0}function mt(t,e){return Array.isArray(e)?$r(t,e.join(" ")):typeof e=="object"&&e!==null?ei(t,e):typeof e=="function"?mt(t,e()):$r(t,e)}function Se(t){return t.split(/\s/).filter(Boolean)}function $r(t,e){let r=i=>Se(i).filter(o=>!t.classList.contains(o)).filter(Boolean),n=i=>(t.classList.add(...i),()=>{t.classList.remove(...i)});return e=e===!0?e="":e||"",n(r(e))}function ei(t,e){let r=Object.entries(e).flatMap(([s,a])=>a?Se(s):!1).filter(Boolean),n=Object.entries(e).flatMap(([s,a])=>a?!1:Se(s)).filter(Boolean),i=[],o=[];return n.forEach(s=>{t.classList.contains(s)&&(t.classList.remove(s),o.push(s))}),r.forEach(s=>{t.classList.contains(s)||(t.classList.add(s),i.push(s))}),()=>{o.forEach(s=>t.classList.add(s)),i.forEach(s=>t.classList.remove(s))}}function et(t,e){return typeof e=="object"&&e!==null?ri(t,e):ni(t,e)}function ri(t,e){let r={};return Object.entries(e).forEach(([n,i])=>{r[n]=t.style[n],n.startsWith("--")||(n=ii(n)),t.style.setProperty(n,i)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{et(t,r)}}function ni(t,e){let r=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",r||"")}}function ii(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _t(t,e=()=>{}){let r=!1;return function(){r?e.apply(this,arguments):(r=!0,t.apply(this,arguments))}}h("transition",(t,{value:e,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?si(t,r,e):oi(t,n,e))});function oi(t,e,r){jr(t,mt,""),{enter:i=>{t._x_transition.enter.during=i},"enter-start":i=>{t._x_transition.enter.start=i},"enter-end":i=>{t._x_transition.enter.end=i},leave:i=>{t._x_transition.leave.during=i},"leave-start":i=>{t._x_transition.leave.start=i},"leave-end":i=>{t._x_transition.leave.end=i}}[r](e)}function si(t,e,r){jr(t,et);let n=!e.includes("in")&&!e.includes("out")&&!r,i=n||e.includes("in")||["enter"].includes(r),o=n||e.includes("out")||["leave"].includes(r);e.includes("in")&&!n&&(e=e.filter((p,g)=>g<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((p,g)=>g>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),u=s||e.includes("scale"),c=a?0:1,l=u?gt(e,"scale",95)/100:1,f=gt(e,"delay",0)/1e3,w=gt(e,"origin","center"),m="opacity, transform",P=gt(e,"duration",150)/1e3,d=gt(e,"duration",75)/1e3,E="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${P}s`,transitionTimingFunction:E},t._x_transition.enter.start={opacity:c,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${d}s`,transitionTimingFunction:E},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${l})`})}function jr(t,e,r={}){t._x_transition||(t._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){Lt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){Lt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(r):o():t._x_transition?t._x_transition.in(r):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(n)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Fr(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):i(()=>{let a=u=>{let c=Promise.all([u._x_hidePromise,...(u._x_hideChildren||[]).map(a)]).then(([l])=>l?.());return delete u._x_hidePromise,delete u._x_hideChildren,c};a(t).catch(u=>{if(!u.isFromCancelledTransition)throw u})})})};function Fr(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Fr(e)}function Lt(t,e,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,u,c;ai(t,{start(){a=e(t,n)},during(){u=e(t,r)},before:o,end(){a(),c=e(t,i)},after:s,cleanup(){u(),c()}})}function ai(t,e){let r,n,i,o=_t(()=>{_(()=>{r=!0,n||e.before(),i||(e.end(),Ut()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:_t(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{e.start(),e.during()}),Lr(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),_(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{r||(_(()=>{e.end()}),Ut(),setTimeout(t._x_transitioning.finish,s+a),i=!0)})})}function gt(t,e,r){if(t.indexOf(e)===-1)return r;let n=t[t.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return r;if(e==="duration"||e==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}var j=!1;function S(t,e=()=>{}){return(...r)=>j?e(...r):t(...r)}function Br(t){return(...e)=>j&&t(...e)}var Vr=[];function W(t){Vr.push(t)}function zr(t,e){Vr.forEach(r=>r(t,e)),j=!0,Kr(()=>{O(e,(r,n)=>{n(r,()=>{})})}),j=!1}var $t=!1;function Hr(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),j=!0,$t=!0,Kr(()=>{ui(e)}),j=!1,$t=!1}function ui(t){let e=!1;O(t,(n,i)=>{L(n,(o,s)=>{if(e&&Ir(o))return s();e=!0,i(o,s)})})}function Kr(t){let e=D;ue((r,n)=>{let i=e(r);return B(i),()=>{}}),t(),ue(e)}function xt(t,e,r,n=[]){switch(t._x_bindings||(t._x_bindings=C({})),t._x_bindings[e]=r,e=n.includes("camel")?_i(e):e,e){case"value":ci(t,r);break;case"style":fi(t,r);break;case"class":li(t,r);break;case"selected":case"checked":pi(t,e,r);break;default:qr(t,e,r);break}}function ci(t,e){if(jt(t))t.attributes.value===void 0&&(t.value=e);else if(bt(t))Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(r=>gi(r,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")mi(t,e);else{if(t.value===e)return;t.value=e===void 0?"":e}}function li(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=mt(t,e)}function fi(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=et(t,e)}function pi(t,e,r){qr(t,e,r),hi(t,e,r)}function qr(t,e,r){[null,void 0,!1].includes(r)&&yi(e)?t.removeAttribute(e):(Wr(e)&&(r=e),di(t,e,r))}function di(t,e,r){t.getAttribute(e)!=r&&t.setAttribute(e,r)}function hi(t,e,r){t[e]!==r&&(t[e]=r)}function mi(t,e){let r=[].concat(e).map(n=>n+"");Array.from(t.options).forEach(n=>{n.selected=r.includes(n.value)})}function _i(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function gi(t,e){return t==e}function yt(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?Boolean(t):null}var xi=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Wr(t){return xi.has(t)}function yi(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function Gr(t,e,r){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Yr(t,e,r)}function Jr(t,e,r,n=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let i=t._x_inlineBindings[e];return i.extract=n,kt(()=>R(t,i.expression))}return Yr(t,e,r)}function Yr(t,e,r){let n=t.getAttribute(e);return n===null?typeof r=="function"?r():r:n===""?!0:Wr(e)?!![e,"true"].includes(n):n}function bt(t){return t.type==="checkbox"||t.localName==="ui-checkbox"||t.localName==="ui-switch"}function jt(t){return t.type==="radio"||t.localName==="ui-radio"}function Ft(t,e){let r;return function(){let n=this,i=arguments,o=function(){r=null,t.apply(n,i)};clearTimeout(r),r=setTimeout(o,e)}}function Bt(t,e){let r;return function(){let n=this,i=arguments;r||(t.apply(n,i),r=!0,setTimeout(()=>r=!1,e))}}function Vt({get:t,set:e},{get:r,set:n}){let i=!0,o,s,a=D(()=>{let u=t(),c=r();if(i)n(Te(u)),i=!1;else{let l=JSON.stringify(u),f=JSON.stringify(c);l!==o?n(Te(u)):l!==f&&e(Te(c))}o=JSON.stringify(t()),s=JSON.stringify(r())});return()=>{B(a)}}function Te(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function Zr(t){(Array.isArray(t)?t:[t]).forEach(r=>r(z))}var rt={},Xr=!1;function Qr(t,e){if(Xr||(rt=C(rt),Xr=!0),e===void 0)return rt[t];rt[t]=e,ot(rt[t]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&rt[t].init()}function tn(){return rt}var en={};function rn(t,e){let r=typeof e!="function"?()=>e:e;return t instanceof Element?Ne(t,r()):(en[t]=r,()=>{})}function nn(t){return Object.entries(en).forEach(([e,r])=>{Object.defineProperty(t,e,{get(){return(...n)=>r(...n)}})}),t}function Ne(t,e,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=Ee(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),ht(t,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var on={};function sn(t,e){on[t]=e}function an(t,e){return Object.entries(on).forEach(([r,n])=>{Object.defineProperty(t,r,{get(){return(...i)=>n.bind(e)(...i)},enumerable:!1})}),t}var bi={get reactive(){return C},get release(){return B},get effect(){return D},get raw(){return ae},get transaction(){return nr},version:"3.15.12",flushAndStopDeferringMutations:lr,dontAutoEvaluateFunctions:kt,disableEffectScheduling:tr,startObservingMutations:ft,stopObservingMutations:pe,setReactivityEngine:er,onAttributeRemoved:Tt,onAttributesAdded:St,closestDataStack:V,skipDuringClone:S,onlyDuringClone:Br,addRootSelector:It,addInitSelector:Dt,setErrorHandler:hr,interceptClone:W,addScopeToNode:U,deferMutations:cr,mapAttributes:st,evaluateLater:y,interceptInit:Ur,initInterceptors:ot,injectMagics:K,setEvaluator:_r,setRawEvaluator:xr,mergeProxies:k,extractProp:Jr,findClosest:T,onElRemoved:it,closestRoot:tt,destroyTree:$,interceptor:Ct,transition:Lt,setStyles:et,mutateDom:_,directive:h,entangle:Vt,throttle:Bt,debounce:Ft,evaluate:R,evaluateRaw:br,initTree:O,nextTick:at,prefixed:N,prefix:wr,plugin:Zr,magic:b,store:Qr,start:kr,clone:Hr,cloneNode:zr,bound:Gr,$data:Nt,watch:At,walk:L,data:sn,bind:rn},z=bi;var un=new WeakMap,cn=new Set;Object.getOwnPropertyNames(globalThis).forEach(t=>{t==="styleMedia"||t==="sharedStorage"||cn.add(globalThis[t])});var v=class{constructor(e,r,n,i){this.type=e,this.value=r,this.start=n,this.end=i}},Ce=class{constructor(e){this.input=e,this.position=0,this.tokens=[]}tokenize(){for(;this.position<this.input.length&&(this.skipWhitespace(),!(this.position>=this.input.length));){let e=this.input[this.position];this.isDigit(e)?this.readNumber():this.isAlpha(e)||e==="_"||e==="$"?this.readIdentifierOrKeyword():e==='"'||e==="'"?this.readString():e==="/"&&this.peek()==="/"?this.skipLineComment():this.readOperatorOrPunctuation()}return this.tokens.push(new v("EOF",null,this.position,this.position)),this.tokens}skipWhitespace(){for(;this.position<this.input.length&&/\s/.test(this.input[this.position]);)this.position++}skipLineComment(){for(;this.position<this.input.length&&this.input[this.position]!==`
5
+ `:""}`,e),setTimeout(()=>{throw t},0)}var W=!0;function Mt(t){let e=W;W=!1;let r=t();return W=e,r}function M(t,e,r={}){let n;return y(t,e)(i=>n=i,r),n}function y(...t){return gr(...t)}var gr=()=>{};function xr(t){gr=t}var yr;function br(t){yr=t}function wr(t,e){return(r=()=>{},{scope:n={},params:i=[],context:o}={})=>{if(!W){ye(r,e,R([n,...t]),i);return}let s=e.apply(R([n,...t]),i);ye(r,s)}}function ye(t,e,r,n,i){if(W&&typeof e=="function"){let o=e.apply(r,n);o instanceof Promise?o.then(s=>ye(t,s,r,n)).catch(s=>dt(s,i,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}function Er(...t){return yr(...t)}var Ee="x-";function N(t=""){return Ee+t}function vr(t){Ee=t}var Pt={};function h(t,e){return Pt[t]=e,{before(r){if(!Pt[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${t}\` will use the default order of execution`);return}let n=Q.indexOf(r);Q.splice(n>=0?n:Q.indexOf("DEFAULT"),0,t)}}}function Ar(t){return Object.keys(Pt).includes(t)}function mt(t,e,r){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=ve(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let n={};return e.map(Tr((o,s)=>n[o]=s)).filter(Cr).map(Xn(n,r)).sort(Qn).map(o=>Zn(t,o))}function ve(t){return Array.from(t).map(Tr()).filter(e=>!Cr(e))}var be=!1,ht=new Map,Or=Symbol();function Sr(t){be=!0;let e=Symbol();Or=e,ht.set(e,[]);let r=()=>{for(;ht.get(e).length;)ht.get(e).shift()();ht.delete(e)},n=()=>{be=!1,r()};t(r),n()}function ge(t){let e=[],r=a=>e.push(a),[n,i]=ir(t);return e.push(i),[{Alpine:V,effect:n,cleanup:r,evaluateLater:y.bind(y,t),evaluate:M.bind(M,t)},()=>e.forEach(a=>a())]}function Zn(t,e){let r=()=>{},n=Pt[e.type]||r,[i,o]=ge(t);Nt(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,i),n=n.bind(n,t,e,i),be?ht.get(Or).push(n):n())};return s.runCleanups=o,s}var kt=(t,e)=>({name:r,value:n})=>(r.startsWith(t)&&(r=r.replace(t,e)),{name:r,value:n}),It=t=>t;function Tr(t=()=>{}){return({name:e,value:r})=>{let{name:n,value:i}=Nr.reduce((o,s)=>s(o),{name:e,value:r});return n!==e&&t(n,e),{name:n,value:i}}}var Nr=[];function at(t){Nr.push(t)}function Cr({name:t}){return Rr().test(t)}var Rr=()=>new RegExp(`^${Ee}([^:^.]+)\\b`);function Xn(t,e){return({name:r,value:n})=>{r===n&&(n="");let i=r.match(Rr()),o=r.match(/:([a-zA-Z0-9\-_:]+)/),s=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[r]||r;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var we="DEFAULT",Q=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",we,"teleport"];function Qn(t,e){let r=Q.indexOf(t.type)===-1?we:t.type,n=Q.indexOf(e.type)===-1?we:e.type;return Q.indexOf(r)-Q.indexOf(n)}function tt(t,e,r={},n={}){return t.dispatchEvent(new CustomEvent(e,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...n}))}function L(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(i=>L(i,e));return}let r=!1;if(e(t,()=>r=!0),r)return;let n=t.firstElementChild;for(;n;)L(n,e,!1),n=n.nextElementSibling}function A(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Mr=!1;function Pr(){Mr&&A("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Mr=!0,document.body||A("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),tt(document,"alpine:init"),tt(document,"alpine:initializing"),pt(),ur(e=>O(e,L)),ot(e=>j(e)),Tt((e,r)=>{mt(e,r).forEach(n=>n())});let t=e=>!et(e.parentElement,!0);Array.from(document.querySelectorAll(Dr().join(","))).filter(t).forEach(e=>{O(e)}),tt(document,"alpine:initialized"),setTimeout(()=>{ei()})}var Ae=[],kr=[];function Ir(){return Ae.map(t=>t())}function Dr(){return Ae.concat(kr).map(t=>t())}function Dt(t){Ae.push(t)}function Ut(t){kr.push(t)}function et(t,e=!1){return T(t,r=>{if((e?Dr():Ir()).some(i=>r.matches(i)))return!0})}function T(t,e){if(t){if(e(t))return t;if(t._x_teleportBack)return T(t._x_teleportBack,e);if(t.parentNode instanceof ShadowRoot)return T(t.parentNode.host,e);if(t.parentElement)return T(t.parentElement,e)}}function Ur(t){return Ir().some(e=>t.matches(e))}var Lr=[];function jr(t){Lr.push(t)}var ti=1;function O(t,e=L,r=()=>{}){T(t,n=>n._x_ignore)||Sr(()=>{e(t,(n,i)=>{n._x_marker||(r(n,i),Lr.forEach(o=>o(n,i)),mt(n,n.attributes).forEach(o=>o()),n._x_ignore||(n._x_marker=ti++),n._x_ignore&&i())})})}function j(t,e=L){e(t,r=>{lr(r),le(r),delete r._x_marker})}function ei(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,r,n])=>{Ar(r)||n.some(i=>{if(document.querySelector(i))return A(`found "${i}", but missing ${e} plugin`),!0})})}var Oe=[],Se=!1;function ct(t=()=>{}){return queueMicrotask(()=>{Se||setTimeout(()=>{Lt()})}),new Promise(e=>{Oe.push(()=>{t(),e()})})}function Lt(){for(Se=!1;Oe.length;)Oe.shift()()}function $r(){Se=!0}function _t(t,e){return Array.isArray(e)?Fr(t,e.join(" ")):typeof e=="object"&&e!==null?ri(t,e):typeof e=="function"?_t(t,e()):Fr(t,e)}function Te(t){return t.split(/\s/).filter(Boolean)}function Fr(t,e){let r=i=>Te(i).filter(o=>!t.classList.contains(o)).filter(Boolean),n=i=>(t.classList.add(...i),()=>{t.classList.remove(...i)});return e=e===!0?e="":e||"",n(r(e))}function ri(t,e){let r=Object.entries(e).flatMap(([s,a])=>a?Te(s):!1).filter(Boolean),n=Object.entries(e).flatMap(([s,a])=>a?!1:Te(s)).filter(Boolean),i=[],o=[];return n.forEach(s=>{t.classList.contains(s)&&(t.classList.remove(s),o.push(s))}),r.forEach(s=>{t.classList.contains(s)||(t.classList.add(s),i.push(s))}),()=>{o.forEach(s=>t.classList.add(s)),i.forEach(s=>t.classList.remove(s))}}function rt(t,e){return typeof e=="object"&&e!==null?ni(t,e):ii(t,e)}function ni(t,e){let r={};return Object.entries(e).forEach(([n,i])=>{r[n]=t.style[n],n.startsWith("--")||(n=oi(n)),t.style.setProperty(n,i)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{rt(t,r)}}function ii(t,e){let r=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",r||"")}}function oi(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function gt(t,e=()=>{}){let r=!1;return function(){r?e.apply(this,arguments):(r=!0,t.apply(this,arguments))}}h("transition",(t,{value:e,modifiers:r,expression:n},{evaluate:i})=>{typeof n=="function"&&(n=i(n)),n!==!1&&(!n||typeof n=="boolean"?ai(t,r,e):si(t,n,e))});function si(t,e,r){Br(t,_t,""),{enter:i=>{t._x_transition.enter.during=i},"enter-start":i=>{t._x_transition.enter.start=i},"enter-end":i=>{t._x_transition.enter.end=i},leave:i=>{t._x_transition.leave.during=i},"leave-start":i=>{t._x_transition.leave.start=i},"leave-end":i=>{t._x_transition.leave.end=i}}[r](e)}function ai(t,e,r){Br(t,rt);let n=!e.includes("in")&&!e.includes("out")&&!r,i=n||e.includes("in")||["enter"].includes(r),o=n||e.includes("out")||["leave"].includes(r);e.includes("in")&&!n&&(e=e.filter((p,g)=>g<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((p,g)=>g>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),c=s||e.includes("scale"),u=a?0:1,l=c?xt(e,"scale",95)/100:1,f=xt(e,"delay",0)/1e3,w=xt(e,"origin","center"),m="opacity, transform",k=xt(e,"duration",150)/1e3,d=xt(e,"duration",75)/1e3,E="cubic-bezier(0.4, 0.0, 0.2, 1)";i&&(t._x_transition.enter.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${k}s`,transitionTimingFunction:E},t._x_transition.enter.start={opacity:u,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:w,transitionDelay:`${f}s`,transitionProperty:m,transitionDuration:`${d}s`,transitionTimingFunction:E},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}function Br(t,e,r={}){t._x_transition||(t._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(n=()=>{},i=()=>{}){jt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,i)},out(n=()=>{},i=()=>{}){jt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,i)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,r,n){let i=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,o=()=>i(r);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(r):o():t._x_transition?t._x_transition.in(r):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(n)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=zr(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):i(()=>{let a=c=>{let u=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([l])=>l?.());return delete c._x_hidePromise,delete c._x_hideChildren,u};a(t).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function zr(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:zr(e)}function jt(t,e,{during:r,start:n,end:i}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(n).length===0&&Object.keys(i).length===0){o(),s();return}let a,c,u;ci(t,{start(){a=e(t,n)},during(){c=e(t,r)},before:o,end(){a(),u=e(t,i)},after:s,cleanup(){c(),u()}})}function ci(t,e){let r,n,i,o=gt(()=>{_(()=>{r=!0,n||e.before(),i||(e.end(),Lt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:gt(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},_(()=>{e.start(),e.during()}),$r(),requestAnimationFrame(()=>{if(r)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),_(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{r||(_(()=>{e.end()}),Lt(),setTimeout(t._x_transitioning.finish,s+a),i=!0)})})}function xt(t,e,r){if(t.indexOf(e)===-1)return r;let n=t[t.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return r;if(e==="duration"||e==="delay"){let i=n.match(/([0-9]+)ms/);if(i)return i[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}var $=!1;function S(t,e=()=>{}){return(...r)=>$?e(...r):t(...r)}function Vr(t){return(...e)=>$&&t(...e)}var Hr=[];function G(t){Hr.push(t)}function qr(t,e){Hr.forEach(r=>r(t,e)),$=!0,Wr(()=>{O(e,(r,n)=>{n(r,()=>{})})}),$=!1}var $t=!1;function Kr(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),$=!0,$t=!0,Wr(()=>{ui(e)}),$=!1,$t=!1}function ui(t){let e=!1;O(t,(n,i)=>{L(n,(o,s)=>{if(e&&Ur(o))return s();e=!0,i(o,s)})})}function Wr(t){let e=D;ue((r,n)=>{let i=e(r);return B(i),()=>{}}),t(),ue(e)}function yt(t,e,r,n=[]){switch(t._x_bindings||(t._x_bindings=C({})),t._x_bindings[e]=r,e=n.includes("camel")?gi(e):e,e){case"value":li(t,r);break;case"style":pi(t,r);break;case"class":fi(t,r);break;case"selected":case"checked":di(t,e,r);break;default:Ne(t,e,r);break}}function li(t,e){if(Ft(t))t.attributes.value===void 0&&(t.value=e);else if(wt(t))Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(r=>xi(r,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")_i(t,e);else if(t.tagName==="OPTION")Ne(t,"value",e);else{if(t.value===e&&(typeof e!="object"||e===null))return;t.value=e===void 0?"":e}}function fi(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=_t(t,e)}function pi(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=rt(t,e)}function di(t,e,r){Ne(t,e,r),mi(t,e,r)}function Ne(t,e,r){[null,void 0,!1].includes(r)&&bi(e)?t.removeAttribute(e):(Gr(e)&&(r=e),wi(r)&&(r=JSON.stringify(r)),hi(t,e,r))}function hi(t,e,r){t.getAttribute(e)!=r&&t.setAttribute(e,r)}function mi(t,e,r){t[e]!==r&&(t[e]=r)}function _i(t,e){let r=[].concat(e).map(n=>n+"");Array.from(t.options).forEach(n=>{n.selected=r.includes(n.value)})}function gi(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function xi(t,e){return t==e}function bt(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?Boolean(t):null}var yi=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Gr(t){return yi.has(t)}function bi(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function wi(t){return typeof t=="object"&&t!==null}function Jr(t,e,r){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Zr(t,e,r)}function Yr(t,e,r,n=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let i=t._x_inlineBindings[e];return i.extract=n,Mt(()=>M(t,i.expression))}return Zr(t,e,r)}function Zr(t,e,r){let n=t.getAttribute(e);return n===null?typeof r=="function"?r():r:n===""?!0:Gr(e)?!![e,"true"].includes(n):n}function wt(t){return t.type==="checkbox"||t.localName==="ui-checkbox"||t.localName==="ui-switch"}function Ft(t){return t.type==="radio"||t.localName==="ui-radio"}function Bt(t,e){let r;return function(){let n=this,i=arguments,o=function(){r=null,t.apply(n,i)};clearTimeout(r),r=setTimeout(o,e)}}function zt(t,e){let r;return function(){let n=this,i=arguments;r||(t.apply(n,i),r=!0,setTimeout(()=>r=!1,e))}}function Vt({get:t,set:e},{get:r,set:n}){let i=!0,o,s,a=D(()=>{let c=t(),u=r();if(i)n(Ce(c)),i=!1;else{let l=JSON.stringify(c),f=JSON.stringify(u);l!==o?n(Ce(c)):l!==f&&e(Ce(u))}o=JSON.stringify(t()),s=JSON.stringify(r())});return()=>{B(a)}}function Ce(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function Xr(t){(Array.isArray(t)?t:[t]).forEach(r=>r(V))}var H={},Qr=!1;function tn(t,e){if(Qr||(H=C(H),Qr=!0),e===void 0)return H[t];H[t]=e,typeof e=="object"&&e!==null&&e._x_interceptor?H[t]=e.initialize(H,t,t,()=>{}):st(H[t]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&H[t].init()}function en(){return H}var rn={};function nn(t,e){let r=typeof e!="function"?()=>e:e;return t instanceof Element?Re(t,r()):(rn[t]=r,()=>{})}function on(t){return Object.entries(rn).forEach(([e,r])=>{Object.defineProperty(t,e,{get(){return(...n)=>r(...n)}})}),t}function Re(t,e,r){let n=[];for(;n.length;)n.pop()();let i=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=ve(i);return i=i.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),mt(t,i,r).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var sn={};function an(t,e){sn[t]=e}function cn(t,e){return Object.entries(sn).forEach(([r,n])=>{Object.defineProperty(t,r,{get(){return(...i)=>n.bind(e)(...i)},enumerable:!1})}),t}var Ei={get reactive(){return C},get release(){return B},get effect(){return D},get raw(){return ce},get transaction(){return or},version:"3.16.1",flushAndStopDeferringMutations:pr,dontAutoEvaluateFunctions:Mt,disableEffectScheduling:rr,startObservingMutations:pt,stopObservingMutations:de,setReactivityEngine:nr,onAttributeRemoved:Nt,onAttributesAdded:Tt,closestDataStack:z,skipDuringClone:S,onlyDuringClone:Vr,addRootSelector:Dt,addInitSelector:Ut,setErrorHandler:_r,interceptClone:G,addScopeToNode:U,deferMutations:fr,mapAttributes:at,evaluateLater:y,interceptInit:jr,initInterceptors:st,injectMagics:K,setEvaluator:xr,setRawEvaluator:br,mergeProxies:R,extractProp:Yr,findClosest:T,onElRemoved:ot,closestRoot:et,destroyTree:j,interceptor:Rt,transition:jt,setStyles:rt,mutateDom:_,directive:h,entangle:Vt,throttle:zt,debounce:Bt,evaluate:M,evaluateRaw:Er,initTree:O,nextTick:ct,prefixed:N,prefix:vr,plugin:Xr,magic:b,store:tn,start:Pr,clone:Kr,cloneNode:qr,bound:Jr,$data:Ct,watch:Ot,walk:L,data:an,bind:nn},V=Ei;var un=new WeakMap,ln=new Set;Object.getOwnPropertyNames(globalThis).forEach(t=>{t==="styleMedia"||t==="sharedStorage"||ln.add(globalThis[t])});var v=class{constructor(e,r,n,i){this.type=e,this.value=r,this.start=n,this.end=i}},Me=class{constructor(e){this.input=e,this.position=0,this.tokens=[]}tokenize(){for(;this.position<this.input.length&&(this.skipWhitespace(),!(this.position>=this.input.length));){let e=this.input[this.position];this.isDigit(e)?this.readNumber():this.isAlpha(e)||e==="_"||e==="$"?this.readIdentifierOrKeyword():e==='"'||e==="'"?this.readString():e==="/"&&this.peek()==="/"?this.skipLineComment():this.readOperatorOrPunctuation()}return this.tokens.push(new v("EOF",null,this.position,this.position)),this.tokens}skipWhitespace(){for(;this.position<this.input.length&&/\s/.test(this.input[this.position]);)this.position++}skipLineComment(){for(;this.position<this.input.length&&this.input[this.position]!==`
6
6
  `;)this.position++}isDigit(e){return/[0-9]/.test(e)}isAlpha(e){return/[a-zA-Z]/.test(e)}isAlphaNumeric(e){return/[a-zA-Z0-9_$]/.test(e)}peek(e=1){return this.input[this.position+e]||""}readNumber(){let e=this.position,r=!1;for(;this.position<this.input.length;){let i=this.input[this.position];if(this.isDigit(i))this.position++;else if(i==="."&&!r)r=!0,this.position++;else break}let n=this.input.slice(e,this.position);this.tokens.push(new v("NUMBER",parseFloat(n),e,this.position))}readIdentifierOrKeyword(){let e=this.position;for(;this.position<this.input.length&&this.isAlphaNumeric(this.input[this.position]);)this.position++;let r=this.input.slice(e,this.position);["true","false","null","undefined","new","typeof","void","delete","in","instanceof"].includes(r)?r==="true"||r==="false"?this.tokens.push(new v("BOOLEAN",r==="true",e,this.position)):r==="null"?this.tokens.push(new v("NULL",null,e,this.position)):r==="undefined"?this.tokens.push(new v("UNDEFINED",void 0,e,this.position)):this.tokens.push(new v("KEYWORD",r,e,this.position)):this.tokens.push(new v("IDENTIFIER",r,e,this.position))}readString(){let e=this.position,r=this.input[this.position];this.position++;let n="",i=!1;for(;this.position<this.input.length;){let o=this.input[this.position];if(i){switch(o){case"n":n+=`
7
- `;break;case"t":n+=" ";break;case"r":n+="\r";break;case"\\":n+="\\";break;case r:n+=r;break;default:n+=o}i=!1}else if(o==="\\")i=!0;else if(o===r){this.position++,this.tokens.push(new v("STRING",n,e,this.position));return}else n+=o;this.position++}throw new Error(`Unterminated string starting at position ${e}`)}readOperatorOrPunctuation(){let e=this.position,r=this.input[this.position],n=this.peek(),i=this.peek(2);if(r==="="&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","===",e,this.position));else if(r==="!"&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","!==",e,this.position));else if(r==="="&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","==",e,this.position));else if(r==="!"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","!=",e,this.position));else if(r==="<"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","<=",e,this.position));else if(r===">"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR",">=",e,this.position));else if(r==="&"&&n==="&")this.position+=2,this.tokens.push(new v("OPERATOR","&&",e,this.position));else if(r==="|"&&n==="|")this.position+=2,this.tokens.push(new v("OPERATOR","||",e,this.position));else if(r==="+"&&n==="+")this.position+=2,this.tokens.push(new v("OPERATOR","++",e,this.position));else if(r==="-"&&n==="-")this.position+=2,this.tokens.push(new v("OPERATOR","--",e,this.position));else{this.position++;let o="()[]{},.;:?".includes(r)?"PUNCTUATION":"OPERATOR";this.tokens.push(new v(o,r,e,this.position))}}},ke=class{constructor(e){this.tokens=e,this.position=0}parse(){if(this.isAtEnd())throw new Error("Empty expression");let e=this.parseExpression();if(this.match("PUNCTUATION",";"),!this.isAtEnd())throw new Error(`Unexpected token: ${this.current().value}`);return e}parseExpression(){return this.parseAssignment()}parseAssignment(){let e=this.parseTernary();if(this.match("OPERATOR","=")){let r=this.parseAssignment();if(e.type==="Identifier"||e.type==="MemberExpression")return{type:"AssignmentExpression",left:e,operator:"=",right:r};throw new Error("Invalid assignment target")}return e}parseTernary(){let e=this.parseLogicalOr();if(this.match("PUNCTUATION","?")){let r=this.parseExpression();this.consume("PUNCTUATION",":");let n=this.parseExpression();return{type:"ConditionalExpression",test:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.match("OPERATOR","||");){let r=this.previous().value,n=this.parseLogicalAnd();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.match("OPERATOR","&&");){let r=this.previous().value,n=this.parseEquality();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseEquality(){let e=this.parseRelational();for(;this.match("OPERATOR","==","!=","===","!==");){let r=this.previous().value,n=this.parseRelational();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseRelational(){let e=this.parseAdditive();for(;this.match("OPERATOR","<",">","<=",">=");){let r=this.previous().value,n=this.parseAdditive();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseAdditive(){let e=this.parseMultiplicative();for(;this.match("OPERATOR","+","-");){let r=this.previous().value,n=this.parseMultiplicative();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseMultiplicative(){let e=this.parseUnary();for(;this.match("OPERATOR","*","/","%");){let r=this.previous().value,n=this.parseUnary();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseUnary(){if(this.match("OPERATOR","++","--")){let e=this.previous().value,r=this.parseUnary();return{type:"UpdateExpression",operator:e,argument:r,prefix:!0}}if(this.match("OPERATOR","!","-","+")){let e=this.previous().value,r=this.parseUnary();return{type:"UnaryExpression",operator:e,argument:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parseMember();return this.match("OPERATOR","++","--")?{type:"UpdateExpression",operator:this.previous().value,argument:e,prefix:!1}:e}parseMember(){let e=this.parsePrimary();for(;;)if(this.match("PUNCTUATION",".")){let r=this.consume("IDENTIFIER");e={type:"MemberExpression",object:e,property:{type:"Identifier",name:r.value},computed:!1}}else if(this.match("PUNCTUATION","[")){let r=this.parseExpression();this.consume("PUNCTUATION","]"),e={type:"MemberExpression",object:e,property:r,computed:!0}}else if(this.match("PUNCTUATION","(")){let r=this.parseArguments();e={type:"CallExpression",callee:e,arguments:r}}else break;return e}parseArguments(){let e=[];if(!this.check("PUNCTUATION",")"))do e.push(this.parseExpression());while(this.match("PUNCTUATION",","));return this.consume("PUNCTUATION",")"),e}parsePrimary(){if(this.match("NUMBER"))return{type:"Literal",value:this.previous().value};if(this.match("STRING"))return{type:"Literal",value:this.previous().value};if(this.match("BOOLEAN"))return{type:"Literal",value:this.previous().value};if(this.match("NULL"))return{type:"Literal",value:null};if(this.match("UNDEFINED"))return{type:"Literal",value:void 0};if(this.match("IDENTIFIER"))return{type:"Identifier",name:this.previous().value};if(this.match("PUNCTUATION","(")){let e=this.parseExpression();return this.consume("PUNCTUATION",")"),e}if(this.match("PUNCTUATION","["))return this.parseArrayLiteral();if(this.match("PUNCTUATION","{"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${this.current().type} "${this.current().value}"`)}parseArrayLiteral(){let e=[];for(;!this.check("PUNCTUATION","]")&&!this.isAtEnd()&&(e.push(this.parseExpression()),this.match("PUNCTUATION",","));)if(this.check("PUNCTUATION","]"))break;return this.consume("PUNCTUATION","]"),{type:"ArrayExpression",elements:e}}parseObjectLiteral(){let e=[];for(;!this.check("PUNCTUATION","}")&&!this.isAtEnd();){let r,n=!1;if(this.match("STRING"))r={type:"Literal",value:this.previous().value};else if(this.match("IDENTIFIER"))r={type:"Identifier",name:this.previous().value};else if(this.match("PUNCTUATION","["))r=this.parseExpression(),n=!0,this.consume("PUNCTUATION","]");else throw new Error("Expected property key");this.consume("PUNCTUATION",":");let i=this.parseExpression();if(e.push({type:"Property",key:r,value:i,computed:n,shorthand:!1}),this.match("PUNCTUATION",",")){if(this.check("PUNCTUATION","}"))break}else break}return this.consume("PUNCTUATION","}"),{type:"ObjectExpression",properties:e}}match(...e){for(let r=0;r<e.length;r++){let n=e[r];if(r===0&&e.length>1){let i=n;for(let o=1;o<e.length;o++)if(this.check(i,e[o]))return this.advance(),!0;return!1}else if(e.length===1)return this.checkType(n)?(this.advance(),!0):!1}return!1}check(e,r){return this.isAtEnd()?!1:r!==void 0?this.current().type===e&&this.current().value===r:this.current().type===e}checkType(e){return this.isAtEnd()?!1:this.current().type===e}advance(){return this.isAtEnd()||this.position++,this.previous()}isAtEnd(){return this.current().type==="EOF"}current(){return this.tokens[this.position]}previous(){return this.tokens[this.position-1]}consume(e,r){if(r!==void 0){if(this.check(e,r))return this.advance();throw new Error(`Expected ${e} "${r}" but got ${this.current().type} "${this.current().value}"`)}if(this.check(e))return this.advance();throw new Error(`Expected ${e} but got ${this.current().type} "${this.current().value}"`)}},Re=class{evaluate({node:e,scope:r={},context:n=null,forceBindingRootScopeToFunctions:i=!0}){switch(e.type){case"Literal":return e.value;case"Identifier":if(e.name in r){let p=r[e.name];return this.checkForDangerousValues(p),typeof p=="function"?p.bind(r):p}throw new Error(`Undefined variable: ${e.name}`);case"MemberExpression":let o=this.evaluate({node:e.object,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(o==null)throw new Error("Cannot read property of null or undefined");let s;e.computed?s=this.evaluate({node:e.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):s=e.property.name,this.checkForDangerousKeywords(s);let a=o[s];return this.checkForDangerousValues(a),typeof a=="function"?i?a.bind(r):a.bind(o):a;case"CallExpression":let u=e.arguments.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i})),c;if(e.callee.type==="MemberExpression"){let p=this.evaluate({node:e.callee.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g;e.callee.computed?g=this.evaluate({node:e.callee.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):g=e.callee.property.name,this.checkForDangerousKeywords(g);let I=p[g];if(typeof I!="function")throw new Error("Value is not a function");c=I.apply(p,u)}else if(e.callee.type==="Identifier"){let p=e.callee.name,g;if(p in r)g=r[p];else throw new Error(`Undefined variable: ${p}`);if(typeof g!="function")throw new Error("Value is not a function");let I=n!==null?n:r;c=g.apply(I,u)}else{let p=this.evaluate({node:e.callee,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(typeof p!="function")throw new Error("Value is not a function");c=p.apply(n,u)}return this.checkForDangerousValues(c),c;case"UnaryExpression":let l=this.evaluate({node:e.argument,scope:r,context:n,forceBindingRootScopeToFunctions:i});switch(e.operator){case"!":return!l;case"-":return-l;case"+":return+l;default:throw new Error(`Unknown unary operator: ${e.operator}`)}case"UpdateExpression":if(e.argument.type==="Identifier"){let p=e.argument.name;if(!(p in r))throw new Error(`Undefined variable: ${p}`);let g=r[p];return e.operator==="++"?r[p]=g+1:e.operator==="--"&&(r[p]=g-1),e.prefix?r[p]:g}else if(e.argument.type==="MemberExpression"){let p=this.evaluate({node:e.argument.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.argument.computed?this.evaluate({node:e.argument.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.argument.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");this.checkForDangerousKeywords(g);let I=p[g];return e.operator==="++"?p[g]=I+1:e.operator==="--"&&(p[g]=I-1),e.prefix?p[g]:I}throw new Error("Invalid update expression target");case"BinaryExpression":let f=this.evaluate({node:e.left,scope:r,context:n,forceBindingRootScopeToFunctions:i}),w=()=>this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.operator==="&&")return f&&w();if(e.operator==="||")return f||w();let m=w();switch(e.operator){case"+":return f+m;case"-":return f-m;case"*":return f*m;case"/":return f/m;case"%":return f%m;case"==":return f==m;case"!=":return f!=m;case"===":return f===m;case"!==":return f!==m;case"<":return f<m;case">":return f>m;case"<=":return f<=m;case">=":return f>=m;default:throw new Error(`Unknown binary operator: ${e.operator}`)}case"ConditionalExpression":return this.evaluate({node:e.test,scope:r,context:n,forceBindingRootScopeToFunctions:i})?this.evaluate({node:e.consequent,scope:r,context:n,forceBindingRootScopeToFunctions:i}):this.evaluate({node:e.alternate,scope:r,context:n,forceBindingRootScopeToFunctions:i});case"AssignmentExpression":let d=this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.left.type==="Identifier")return r[e.left.name]=d,d;if(e.left.type==="MemberExpression"){let p=this.evaluate({node:e.left.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.left.computed?this.evaluate({node:e.left.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.left.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");return this.checkForDangerousKeywords(g),p[g]=d,d}throw new Error("Invalid assignment target");case"ArrayExpression":return e.elements.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i}));case"ObjectExpression":let E={};for(let p of e.properties){let g=p.computed?this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}):p.key.type==="Identifier"?p.key.name:this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}),I=this.evaluate({node:p.value,scope:r,context:n,forceBindingRootScopeToFunctions:i});E[g]=I}return E;default:throw new Error(`Unknown node type: ${e.type}`)}}isDOMObject(e){return e instanceof Node||typeof CSSStyleDeclaration<"u"&&e instanceof CSSStyleDeclaration||typeof DOMStringMap<"u"&&e instanceof DOMStringMap||typeof DOMTokenList<"u"&&e instanceof DOMTokenList||typeof NamedNodeMap<"u"&&e instanceof NamedNodeMap}checkForDangerousKeywords(e){if(["constructor","prototype","__proto__","__defineGetter__","__defineSetter__","insertAdjacentHTML","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS"].includes(e))throw new Error(`Accessing "${e}" is prohibited in the CSP build`)}checkForDangerousValues(e){if(e!==null&&!(typeof e!="object"&&typeof e!="function")&&!un.has(e)){if(e instanceof HTMLIFrameElement||e instanceof HTMLScriptElement)throw new Error("Accessing iframes and scripts is prohibited in the CSP build");if(cn.has(e))throw new Error("Accessing global variables is prohibited in the CSP build");return un.set(e,!0),!0}}};function Me(t){try{let r=new Ce(t).tokenize(),i=new ke(r).parse(),o=new Re;return function(s={}){let{scope:a={},context:u=null,forceBindingRootScopeToFunctions:c=!1}=s;return o.evaluate({node:i,scope:a,context:u,forceBindingRootScopeToFunctions:c})}}catch(e){throw new Error(`CSP Parser Error: ${e.message}`)}}function ln(t,e,r={}){let n=pn(t),i=k([r.scope??{},...n]),o=r.params??[],a=Me(e)({scope:i,forceBindingRootScopeToFunctions:!0});return typeof a=="function"&&q?a.apply(i,o):a}function fn(t,e){let r=pn(t);if(typeof e=="function")return yr(r,e);let n=wi(t,e,r);return ge.bind(null,t,e,n)}function pn(t){let e={};return K(e,t),[e,...V(t)]}function wi(t,e,r){if(t instanceof HTMLIFrameElement)throw new Error("Evaluating expressions on an iframe is prohibited in the CSP build");if(t instanceof HTMLScriptElement)throw new Error("Evaluating expressions on a script is prohibited in the CSP build");return(n=()=>{},{scope:i={},params:o=[]}={})=>{let s=k([i,...r]),u=Me(e)({scope:s,forceBindingRootScopeToFunctions:!0});if(q&&typeof u=="function"){let c=u.apply(u,o);c instanceof Promise?c.then(l=>n(l)):n(c)}else typeof u=="object"&&u instanceof Promise?u.then(c=>n(c)):n(u)}}function Pe(t,e){let r=Object.create(null),n=t.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return e?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var Ei="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var oa=Pe(Ei+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var dn=Object.freeze({}),sa=Object.freeze([]);var vi=Object.prototype.hasOwnProperty,wt=(t,e)=>vi.call(t,e),G=Array.isArray,ut=t=>hn(t)==="[object Map]";var Ai=t=>typeof t=="string",zt=t=>typeof t=="symbol",Et=t=>t!==null&&typeof t=="object";var Oi=Object.prototype.toString,hn=t=>Oi.call(t),Ie=t=>hn(t).slice(8,-1);var Ht=t=>Ai(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t;var Kt=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Si=/-(\w)/g,aa=Kt(t=>t.replace(Si,(e,r)=>r?r.toUpperCase():"")),Ti=/\B([A-Z])/g,ua=Kt(t=>t.replace(Ti,"-$1").toLowerCase()),De=Kt(t=>t.charAt(0).toUpperCase()+t.slice(1)),ca=Kt(t=>t?`on${De(t)}`:""),Ue=(t,e)=>t!==e&&(t===t||e===e);var Le=new WeakMap,vt=[],F,nt=Symbol("iterate"),$e=Symbol("Map key iterate");function Ni(t){return t&&t._isEffect===!0}function bn(t,e=dn){Ni(t)&&(t=t.raw);let r=ki(t,e);return e.lazy||r(),r}function wn(t){t.active&&(En(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var Ci=0;function ki(t,e){let r=function(){if(!r.active)return t();if(!vt.includes(r)){En(r);try{return Mi(),vt.push(r),F=r,t()}finally{vt.pop(),vn(),F=vt[vt.length-1]}}};return r.id=Ci++,r.allowRecurse=!!e.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=t,r.deps=[],r.options=e,r}function En(t){let{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}var ct=!0,Fe=[];function Ri(){Fe.push(ct),ct=!1}function Mi(){Fe.push(ct),ct=!0}function vn(){let t=Fe.pop();ct=t===void 0?!0:t}function M(t,e,r){if(!ct||F===void 0)return;let n=Le.get(t);n||Le.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(F)||(i.add(F),F.deps.push(i),F.options.onTrack&&F.options.onTrack({effect:F,target:t,type:e,key:r}))}function Y(t,e,r,n,i,o){let s=Le.get(t);if(!s)return;let a=new Set,u=l=>{l&&l.forEach(f=>{(f!==F||f.allowRecurse)&&a.add(f)})};if(e==="clear")s.forEach(u);else if(r==="length"&&G(t))s.forEach((l,f)=>{(f==="length"||f>=n)&&u(l)});else switch(r!==void 0&&u(s.get(r)),e){case"add":G(t)?Ht(r)&&u(s.get("length")):(u(s.get(nt)),ut(t)&&u(s.get($e)));break;case"delete":G(t)||(u(s.get(nt)),ut(t)&&u(s.get($e)));break;case"set":ut(t)&&u(s.get(nt));break}let c=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:t,key:r,type:e,newValue:n,oldValue:i,oldTarget:o}),l.options.scheduler?l.options.scheduler(l):l()};a.forEach(c)}var Pi=Pe("__proto__,__v_isRef,__isVue"),An=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(zt)),Ii=On();var Di=On(!0);var mn=Ui();function Ui(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){let n=x(this);for(let o=0,s=this.length;o<s;o++)M(n,"get",o+"");let i=n[e](...r);return i===-1||i===!1?n[e](...r.map(x)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){Ri();let n=x(this)[e].apply(this,r);return vn(),n}}),t}function On(t=!1,e=!1){return function(n,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_raw"&&o===(t?e?Xi:Cn:e?Zi:Nn).get(n))return n;let s=G(n);if(!t&&s&&wt(mn,i))return Reflect.get(mn,i,o);let a=Reflect.get(n,i,o);return(zt(i)?An.has(i):Pi(i))||(t||M(n,"get",i),e)?a:je(a)?!s||!Ht(i)?a.value:a:Et(a)?t?kn(a):Xt(a):a}}var Li=$i();function $i(t=!1){return function(r,n,i,o){let s=r[n];if(!t&&(i=x(i),s=x(s),!G(r)&&je(s)&&!je(i)))return s.value=i,!0;let a=G(r)&&Ht(n)?Number(n)<r.length:wt(r,n),u=Reflect.set(r,n,i,o);return r===x(o)&&(a?Ue(i,s)&&Y(r,"set",n,i,s):Y(r,"add",n,i)),u}}function ji(t,e){let r=wt(t,e),n=t[e],i=Reflect.deleteProperty(t,e);return i&&r&&Y(t,"delete",e,void 0,n),i}function Fi(t,e){let r=Reflect.has(t,e);return(!zt(e)||!An.has(e))&&M(t,"has",e),r}function Bi(t){return M(t,"iterate",G(t)?"length":nt),Reflect.ownKeys(t)}var Vi={get:Ii,set:Li,deleteProperty:ji,has:Fi,ownKeys:Bi},zi={get:Di,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}};var Be=t=>Et(t)?Xt(t):t,Ve=t=>Et(t)?kn(t):t,ze=t=>t,Zt=t=>Reflect.getPrototypeOf(t);function qt(t,e,r=!1,n=!1){t=t.__v_raw;let i=x(t),o=x(e);e!==o&&!r&&M(i,"get",e),!r&&M(i,"get",o);let{has:s}=Zt(i),a=n?ze:r?Ve:Be;if(s.call(i,e))return a(t.get(e));if(s.call(i,o))return a(t.get(o));t!==i&&t.get(e)}function Wt(t,e=!1){let r=this.__v_raw,n=x(r),i=x(t);return t!==i&&!e&&M(n,"has",t),!e&&M(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function Gt(t,e=!1){return t=t.__v_raw,!e&&M(x(t),"iterate",nt),Reflect.get(t,"size",t)}function _n(t){t=x(t);let e=x(this);return Zt(e).has.call(e,t)||(e.add(t),Y(e,"add",t,t)),this}function gn(t,e){e=x(e);let r=x(this),{has:n,get:i}=Zt(r),o=n.call(r,t);o?Tn(r,n,t):(t=x(t),o=n.call(r,t));let s=i.call(r,t);return r.set(t,e),o?Ue(e,s)&&Y(r,"set",t,e,s):Y(r,"add",t,e),this}function xn(t){let e=x(this),{has:r,get:n}=Zt(e),i=r.call(e,t);i?Tn(e,r,t):(t=x(t),i=r.call(e,t));let o=n?n.call(e,t):void 0,s=e.delete(t);return i&&Y(e,"delete",t,void 0,o),s}function yn(){let t=x(this),e=t.size!==0,r=ut(t)?new Map(t):new Set(t),n=t.clear();return e&&Y(t,"clear",void 0,void 0,r),n}function Jt(t,e){return function(n,i){let o=this,s=o.__v_raw,a=x(s),u=e?ze:t?Ve:Be;return!t&&M(a,"iterate",nt),s.forEach((c,l)=>n.call(i,u(c),u(l),o))}}function Yt(t,e,r){return function(...n){let i=this.__v_raw,o=x(i),s=ut(o),a=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=i[t](...n),l=r?ze:e?Ve:Be;return!e&&M(o,"iterate",u?$e:nt),{next(){let{value:f,done:w}=c.next();return w?{value:f,done:w}:{value:a?[l(f[0]),l(f[1])]:l(f),done:w}},[Symbol.iterator](){return this}}}}function J(t){return function(...e){{let r=e[0]?`on key "${e[0]}" `:"";console.warn(`${De(t)} operation ${r}failed: target is readonly.`,x(this))}return t==="delete"?!1:this}}function Hi(){let t={get(o){return qt(this,o)},get size(){return Gt(this)},has:Wt,add:_n,set:gn,delete:xn,clear:yn,forEach:Jt(!1,!1)},e={get(o){return qt(this,o,!1,!0)},get size(){return Gt(this)},has:Wt,add:_n,set:gn,delete:xn,clear:yn,forEach:Jt(!1,!0)},r={get(o){return qt(this,o,!0)},get size(){return Gt(this,!0)},has(o){return Wt.call(this,o,!0)},add:J("add"),set:J("set"),delete:J("delete"),clear:J("clear"),forEach:Jt(!0,!1)},n={get(o){return qt(this,o,!0,!0)},get size(){return Gt(this,!0)},has(o){return Wt.call(this,o,!0)},add:J("add"),set:J("set"),delete:J("delete"),clear:J("clear"),forEach:Jt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Yt(o,!1,!1),r[o]=Yt(o,!0,!1),e[o]=Yt(o,!1,!0),n[o]=Yt(o,!0,!0)}),[t,r,e,n]}var[Ki,qi,Wi,Gi]=Hi();function Sn(t,e){let r=e?t?Gi:Wi:t?qi:Ki;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(wt(r,i)&&i in n?r:n,i,o)}var Ji={get:Sn(!1,!1)};var Yi={get:Sn(!0,!1)};function Tn(t,e,r){let n=x(r);if(n!==r&&e.call(t,n)){let i=Ie(t);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Nn=new WeakMap,Zi=new WeakMap,Cn=new WeakMap,Xi=new WeakMap;function Qi(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function to(t){return t.__v_skip||!Object.isExtensible(t)?0:Qi(Ie(t))}function Xt(t){return t&&t.__v_isReadonly?t:Rn(t,!1,Vi,Ji,Nn)}function kn(t){return Rn(t,!0,zi,Yi,Cn)}function Rn(t,e,r,n,i){if(!Et(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let o=i.get(t);if(o)return o;let s=to(t);if(s===0)return t;let a=new Proxy(t,s===2?n:r);return i.set(t,a),a}function x(t){return t&&x(t.__v_raw)||t}function je(t){return Boolean(t&&t.__v_isRef===!0)}b("nextTick",()=>at);b("dispatch",t=>Q.bind(Q,t));b("watch",(t,{evaluateLater:e,cleanup:r})=>(n,i)=>{let o=e(n),a=At(()=>{let u;return o(c=>u=c),u},i);r(a)});b("store",tn);b("data",t=>Nt(t));b("root",t=>tt(t));b("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=k(eo(t))),t._x_refs_proxy));function eo(t){let e=[];return T(t,r=>{r._x_refs&&e.push(r._x_refs)}),e}var He={};function Ke(t){return He[t]||(He[t]=0),++He[t]}function Mn(t,e){return T(t,r=>{if(r._x_ids&&r._x_ids[e])return!0})}function Pn(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=Ke(e))}b("id",(t,{cleanup:e})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return ro(t,i,e,()=>{let o=Mn(t,r),s=o?o._x_ids[r]:Ke(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});W((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function ro(t,e,r,n){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let i=n();return t._x_id[e]=i,r(()=>{delete t._x_id[e]}),i}b("el",t=>t);In("Focus","focus","focus");In("Persist","persist","persist");function In(t,e,r){b(e,n=>A(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("modelable",(t,{expression:e},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(e),s=()=>{let l;return o(f=>l=f),l},a=n(`${e} = __placeholder`),u=l=>a(()=>{},{scope:{__placeholder:l}}),c=s();u(c),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let l=t._x_model.get,f=t._x_model.setWithModifiers,w=Vt({get(){return l()},set(m){f(m)}},{get(){return s()},set(m){u(m)}});i(w)})});h("teleport",(t,{modifiers:e,expression:r},{cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-teleport can only be used on a <template> tag",t);let i=Dn(r),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,u=>{u.stopPropagation(),t.dispatchEvent(new u.constructor(u.type,u))})}),U(o,{},t);let s=(a,u,c)=>{c.includes("prepend")?u.parentNode.insertBefore(a,u):c.includes("append")?u.parentNode.insertBefore(a,u.nextSibling):u.appendChild(a)};_(()=>{S(()=>{s(o,i,e),O(o)})()}),t._x_teleportPutBack=()=>{let a=Dn(r);_(()=>{s(t._x_teleport,a,e)})},n(()=>_(()=>{o.remove(),$(o)}))});var no=document.createElement("div");function Dn(t){let e=S(()=>document.querySelector(t),()=>no)();return e||A(`Cannot find x-teleport element for selector: "${t}"`),e}var Un=()=>{};Un.inline=(t,{modifiers:e},{cleanup:r})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,r(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};h("ignore",Un);h("effect",S((t,{expression:e},{effect:r})=>{r(y(t,e))}));function H(t,e,r,n){let i=t,o=u=>n(u),s={},a=(u,c)=>l=>c(u,l);return r.includes("dot")&&(e=io(e)),r.includes("camel")&&(e=oo(e)),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("passive")&&(s.passive=r[r.indexOf("passive")+1]!=="false"),o=qe(r,o),r.includes("prevent")&&(o=a(o,(u,c)=>{c.preventDefault(),u(c)})),r.includes("stop")&&(o=a(o,(u,c)=>{c.stopPropagation(),u(c)})),r.includes("once")&&(o=a(o,(u,c)=>{u(c),i.removeEventListener(e,o,s)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(u,c)=>{t.contains(c.target)||c.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&u(c))})),r.includes("self")&&(o=a(o,(u,c)=>{c.target===t&&u(c)})),e==="submit"&&(o=a(o,(u,c)=>{c.target._x_pendingModelUpdates&&c.target._x_pendingModelUpdates.forEach(l=>l()),u(c)})),(ao(e)||$n(e))&&(o=a(o,(u,c)=>{uo(c,r)||u(c)})),i.addEventListener(e,o,s),()=>{i.removeEventListener(e,o,s)}}function qe(t,e){if(t.includes("debounce")){let r=t[t.indexOf("debounce")+1]||"invalid-wait",n=Qt(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=Ft(e,n)}if(t.includes("throttle")){let r=t[t.indexOf("throttle")+1]||"invalid-wait",n=Qt(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=Bt(e,n)}return e}function io(t){return t.replace(/-/g,".")}function oo(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function Qt(t){return!Array.isArray(t)&&!isNaN(t)}function so(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function ao(t){return["keydown","keyup"].includes(t)}function $n(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function uo(t,e){let r=e.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,Qt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,Qt((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&Ln(t.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===i.length&&($n(t.type)||Ln(t.key).includes(r[0])))}function Ln(t){if(!t)return[];t=so(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(r=>{if(e[r]===t)return r}).filter(r=>r)}h("model",(t,{modifiers:e,expression:r},{effect:n,cleanup:i})=>{let o=t;e.includes("parent")&&(o=T(t,d=>d!==t));let s=y(o,r),a;typeof r=="string"?a=y(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=y(o,`${r()} = __placeholder`):a=()=>{};let u=()=>{let d;return s(E=>d=E),jn(d)?d.get():d},c=d=>{let E;s(p=>E=p),jn(E)?E.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof r=="string"&&t.type==="radio"&&_(()=>{t.hasAttribute("name")||t.setAttribute("name",r)});let l=e.includes("change")||e.includes("lazy"),f=e.includes("blur"),w=e.includes("enter"),m=l||f||w,P;if(j)P=()=>{};else if(m){let d=[],E=p=>c(te(t,e,p,u()));if(l&&d.push(H(t,"change",e,E)),f&&(d.push(H(t,"blur",e,E)),t.form)){let p=t.form,g=()=>E({target:t});p._x_pendingModelUpdates||(p._x_pendingModelUpdates=[]),p._x_pendingModelUpdates.push(g),i(()=>{p._x_pendingModelUpdates&&p._x_pendingModelUpdates.splice(p._x_pendingModelUpdates.indexOf(g),1)})}w&&d.push(H(t,"keydown",e,p=>{p.key==="Enter"&&E(p)})),P=()=>d.forEach(p=>p())}else{let d=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)?"change":"input";P=H(t,d,e,E=>{c(te(t,e,E,u()))})}if(e.includes("fill")&&([void 0,null,""].includes(u())||bt(t)&&Array.isArray(u())||t.tagName.toLowerCase()==="select"&&t.multiple)&&c(te(t,e,{target:t},u())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=P,i(()=>t._x_removeModelListeners.default()),t.form){let d=H(t.form,"reset",[],E=>{at(()=>t._x_model&&t._x_model.set(te(t,e,{target:t},u())))});i(()=>d())}t._x_model={get(){return u()},set(d){c(d)},setWithModifiers:qe(e,c)},t._x_forceModelUpdate=d=>{d===void 0&&typeof r=="string"&&r.match(/\./)&&(d=""),_(()=>{bt(t)?Array.isArray(d)?t.checked=d.some(E=>E==t.value):t.checked=!!d:jt(t)?typeof d=="boolean"?t.checked=yt(t.value)===d:t.checked=t.value==d:xt(t,"value",d)})},n(()=>{let d=u();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(d)})});function te(t,e,r,n){return _(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(bt(t))if(Array.isArray(n)){let i=null;return e.includes("number")?i=We(r.target.value):e.includes("boolean")?i=yt(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!co(o,i))}else return r.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return We(o)}):e.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return yt(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return jt(t)?r.target.checked?i=r.target.value:i=n:i=r.target.value,e.includes("number")?We(i):e.includes("boolean")?yt(i):e.includes("trim")?i.trim():i}}})}function We(t){let e=t?parseFloat(t):null;return lo(e)?e:t}function co(t,e){return t==e}function lo(t){return!Array.isArray(t)&&!isNaN(t)}function jn(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}h("cloak",t=>queueMicrotask(()=>_(()=>t.removeAttribute(N("cloak")))));Dt(()=>`[${N("init")}]`);h("init",S((t,{expression:e},{evaluate:r})=>typeof e=="string"?!!e.trim()&&r(e,{},!1):r(e,{},!1)));h("text",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.textContent=o})})})});h("html",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.innerHTML=o??"",t._x_ignoreSelf=!0,O(t),delete t._x_ignoreSelf})})})});st(Mt(":",Pt(N("bind:"))));var Fn=(t,{value:e,modifiers:r,expression:n,original:i},{effect:o,cleanup:s})=>{if(!e){let u={};nn(u),y(t,n)(l=>{Ne(t,l,i)},{scope:u});return}if(e==="key")return fo(t,n);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let a=y(t,n);o(()=>a(u=>{u===void 0&&typeof n=="string"&&n.match(/\./)&&(u=""),_(()=>xt(t,e,u,r))})),s(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};Fn.inline=(t,{value:e,modifiers:r,expression:n})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:n,extract:!1})};h("bind",Fn);function fo(t,e){t._x_keyExpression=e}It(()=>`[${N("data")}]`);h("data",(t,{expression:e},{cleanup:r})=>{if(po(t))return;e=e===""?"{}":e;let n={};K(n,t);let i={};an(i,n);let o=R(t,e,{scope:i});(o===void 0||o===!0)&&(o={}),K(o,t);let s=C(o);ot(s);let a=U(t,s);s.init&&R(t,s.init),r(()=>{s.destroy&&R(t,s.destroy),a()})});W((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function po(t){return j?$t?!0:t.hasAttribute("data-has-alpine-state"):!1}h("show",(t,{modifiers:e,expression:r},{effect:n})=>{let i=y(t,r);t._x_doHide||(t._x_doHide=()=>{_(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{_(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),u=_t(f=>f?s():o(),f=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,f,s,o):f?a():o()}),c,l=!0;n(()=>i(f=>{!l&&f===c||(e.includes("immediate")&&(f?a():o()),u(f),c=f,l=!1)}))});h("for",(t,{expression:e},{effect:r,cleanup:n})=>{let i=_o(e),o=y(t,i.items),s=y(t,t._x_keyExpression||"index");t._x_lookup=new Map,r(()=>mo(t,i,o,s)),n(()=>{t._x_lookup.forEach(a=>_(()=>{$(a),a.remove()})),delete t._x_lookup})});function ho(t){return e=>{Object.entries(e).forEach(([r,n])=>{t[r]=n})}}function mo(t,e,r,n){r(i=>{xo(i)&&(i=Array.from({length:i},(c,l)=>l+1)),i==null&&(i=[]),i instanceof Set&&(i=Array.from(i)),i instanceof Map&&(i=Array.from(i));let o=t._x_lookup,s=new Map;t._x_lookup=s;let a=yo(i),u=Object.entries(i).map(([c,l])=>{a||(c=parseInt(c));let f=go(e,l,c,i),w;return n(m=>{typeof m=="object"&&A("x-for key cannot be an object, it must be a string or an integer",t),o.has(m)&&(s.set(m,o.get(m)),o.delete(m)),w=m},{scope:{index:c,...f}}),[w,f]});_(()=>{o.forEach(f=>{$(f),f.remove()});let c=new Set,l=t;u.forEach(([f,w])=>{if(s.has(f)){let d=s.get(f);d._x_refreshXForScope(w),l.nextElementSibling!==d&&(l.nextElementSibling&&d.replaceWith(l.nextElementSibling),l.after(d)),l=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&l.after(d._x_currentIfEl),l=d._x_currentIfEl);return}t.content.children.length>1&&A("x-for templates require a single root element, additional elements will be ignored.",t);let m=document.importNode(t.content,!0).firstElementChild,P=C(w);U(m,P,t),m._x_refreshXForScope=ho(P),s.set(f,m),c.add(m),l.after(m),l=m}),S(()=>c.forEach(f=>O(f)))()})})}function _o(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function go(t,e,r,n){let i={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=e[s]}):i[t.item]=e,t.index&&(i[t.index]=r),t.collection&&(i[t.collection]=n),i}function xo(t){return typeof t!="object"&&!isNaN(t)}function yo(t){return typeof t=="object"&&!Array.isArray(t)}function Bn(){}Bn.inline=(t,{expression:e},{cleanup:r})=>{let n=tt(t);n&&(n._x_refs||(n._x_refs={}),n._x_refs[e]=t,r(()=>delete n._x_refs[e]))};h("ref",Bn);h("if",(t,{expression:e},{effect:r,cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-if can only be used on a <template> tag",t);let i=y(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return U(a,{},t),_(()=>{t.after(a),S(()=>O(a))()}),t._x_currentIfEl=a,t._x_undoIf=()=>{_(()=>{$(a),a.remove()}),delete t._x_currentIfEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>t._x_undoIf&&t._x_undoIf())});h("id",(t,{expression:e},{evaluate:r})=>{r(e).forEach(i=>Pn(t,i))});W((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});st(Mt("@",Pt(N("on:"))));h("on",S((t,{value:e,modifiers:r,expression:n},{cleanup:i})=>{let o=n?y(t,n):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=H(t,e,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));ee("Collapse","collapse","collapse");ee("Intersect","intersect","intersect");ee("Focus","trap","focus");ee("Mask","mask","mask");function ee(t,e,r){h(e,n=>A(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("html",(t,{expression:e})=>{pt(new Error("Using the x-html directive is prohibited in the CSP build"),t)});z.setEvaluator(fn);z.setRawEvaluator(ln);z.setReactivityEngine({reactive:Xt,effect:bn,release:wn,raw:x});var Ge=z;window.Alpine=Ge;queueMicrotask(()=>{Ge.start()});})();
7
+ `;break;case"t":n+=" ";break;case"r":n+="\r";break;case"\\":n+="\\";break;case r:n+=r;break;default:n+=o}i=!1}else if(o==="\\")i=!0;else if(o===r){this.position++,this.tokens.push(new v("STRING",n,e,this.position));return}else n+=o;this.position++}throw new Error(`Unterminated string starting at position ${e}`)}readOperatorOrPunctuation(){let e=this.position,r=this.input[this.position],n=this.peek(),i=this.peek(2);if(r==="="&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","===",e,this.position));else if(r==="!"&&n==="="&&i==="=")this.position+=3,this.tokens.push(new v("OPERATOR","!==",e,this.position));else if(r==="="&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","==",e,this.position));else if(r==="!"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","!=",e,this.position));else if(r==="<"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR","<=",e,this.position));else if(r===">"&&n==="=")this.position+=2,this.tokens.push(new v("OPERATOR",">=",e,this.position));else if(r==="&"&&n==="&")this.position+=2,this.tokens.push(new v("OPERATOR","&&",e,this.position));else if(r==="|"&&n==="|")this.position+=2,this.tokens.push(new v("OPERATOR","||",e,this.position));else if(r==="+"&&n==="+")this.position+=2,this.tokens.push(new v("OPERATOR","++",e,this.position));else if(r==="-"&&n==="-")this.position+=2,this.tokens.push(new v("OPERATOR","--",e,this.position));else{this.position++;let o="()[]{},.;:?".includes(r)?"PUNCTUATION":"OPERATOR";this.tokens.push(new v(o,r,e,this.position))}}},Pe=class{constructor(e){this.tokens=e,this.position=0}parse(){if(this.isAtEnd())throw new Error("Empty expression");let e=this.parseExpression();if(this.match("PUNCTUATION",";"),!this.isAtEnd())throw new Error(`Unexpected token: ${this.current().value}`);return e}parseExpression(){return this.parseAssignment()}parseAssignment(){let e=this.parseTernary();if(this.match("OPERATOR","=")){let r=this.parseAssignment();if(e.type==="Identifier"||e.type==="MemberExpression")return{type:"AssignmentExpression",left:e,operator:"=",right:r};throw new Error("Invalid assignment target")}return e}parseTernary(){let e=this.parseLogicalOr();if(this.match("PUNCTUATION","?")){let r=this.parseExpression();this.consume("PUNCTUATION",":");let n=this.parseExpression();return{type:"ConditionalExpression",test:e,consequent:r,alternate:n}}return e}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.match("OPERATOR","||");){let r=this.previous().value,n=this.parseLogicalAnd();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.match("OPERATOR","&&");){let r=this.previous().value,n=this.parseEquality();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseEquality(){let e=this.parseRelational();for(;this.match("OPERATOR","==","!=","===","!==");){let r=this.previous().value,n=this.parseRelational();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseRelational(){let e=this.parseAdditive();for(;this.match("OPERATOR","<",">","<=",">=");){let r=this.previous().value,n=this.parseAdditive();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseAdditive(){let e=this.parseMultiplicative();for(;this.match("OPERATOR","+","-");){let r=this.previous().value,n=this.parseMultiplicative();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseMultiplicative(){let e=this.parseUnary();for(;this.match("OPERATOR","*","/","%");){let r=this.previous().value,n=this.parseUnary();e={type:"BinaryExpression",operator:r,left:e,right:n}}return e}parseUnary(){if(this.match("OPERATOR","++","--")){let e=this.previous().value,r=this.parseUnary();return{type:"UpdateExpression",operator:e,argument:r,prefix:!0}}if(this.match("OPERATOR","!","-","+")){let e=this.previous().value,r=this.parseUnary();return{type:"UnaryExpression",operator:e,argument:r,prefix:!0}}return this.parsePostfix()}parsePostfix(){let e=this.parseMember();return this.match("OPERATOR","++","--")?{type:"UpdateExpression",operator:this.previous().value,argument:e,prefix:!1}:e}parseMember(){let e=this.parsePrimary();for(;;)if(this.match("PUNCTUATION",".")){let r=this.consume("IDENTIFIER");e={type:"MemberExpression",object:e,property:{type:"Identifier",name:r.value},computed:!1}}else if(this.match("PUNCTUATION","[")){let r=this.parseExpression();this.consume("PUNCTUATION","]"),e={type:"MemberExpression",object:e,property:r,computed:!0}}else if(this.match("PUNCTUATION","(")){let r=this.parseArguments();e={type:"CallExpression",callee:e,arguments:r}}else break;return e}parseArguments(){let e=[];if(!this.check("PUNCTUATION",")"))do e.push(this.parseExpression());while(this.match("PUNCTUATION",","));return this.consume("PUNCTUATION",")"),e}parsePrimary(){if(this.match("NUMBER"))return{type:"Literal",value:this.previous().value};if(this.match("STRING"))return{type:"Literal",value:this.previous().value};if(this.match("BOOLEAN"))return{type:"Literal",value:this.previous().value};if(this.match("NULL"))return{type:"Literal",value:null};if(this.match("UNDEFINED"))return{type:"Literal",value:void 0};if(this.match("IDENTIFIER"))return{type:"Identifier",name:this.previous().value};if(this.match("PUNCTUATION","(")){let e=this.parseExpression();return this.consume("PUNCTUATION",")"),e}if(this.match("PUNCTUATION","["))return this.parseArrayLiteral();if(this.match("PUNCTUATION","{"))return this.parseObjectLiteral();throw new Error(`Unexpected token: ${this.current().type} "${this.current().value}"`)}parseArrayLiteral(){let e=[];for(;!this.check("PUNCTUATION","]")&&!this.isAtEnd()&&(e.push(this.parseExpression()),this.match("PUNCTUATION",","));)if(this.check("PUNCTUATION","]"))break;return this.consume("PUNCTUATION","]"),{type:"ArrayExpression",elements:e}}parseObjectLiteral(){let e=[];for(;!this.check("PUNCTUATION","}")&&!this.isAtEnd();){let r,n=!1;if(this.match("STRING"))r={type:"Literal",value:this.previous().value};else if(this.match("IDENTIFIER"))r={type:"Identifier",name:this.previous().value};else if(this.match("PUNCTUATION","["))r=this.parseExpression(),n=!0,this.consume("PUNCTUATION","]");else throw new Error("Expected property key");this.consume("PUNCTUATION",":");let i=this.parseExpression();if(e.push({type:"Property",key:r,value:i,computed:n,shorthand:!1}),this.match("PUNCTUATION",",")){if(this.check("PUNCTUATION","}"))break}else break}return this.consume("PUNCTUATION","}"),{type:"ObjectExpression",properties:e}}match(...e){for(let r=0;r<e.length;r++){let n=e[r];if(r===0&&e.length>1){let i=n;for(let o=1;o<e.length;o++)if(this.check(i,e[o]))return this.advance(),!0;return!1}else if(e.length===1)return this.checkType(n)?(this.advance(),!0):!1}return!1}check(e,r){return this.isAtEnd()?!1:r!==void 0?this.current().type===e&&this.current().value===r:this.current().type===e}checkType(e){return this.isAtEnd()?!1:this.current().type===e}advance(){return this.isAtEnd()||this.position++,this.previous()}isAtEnd(){return this.current().type==="EOF"}current(){return this.tokens[this.position]}previous(){return this.tokens[this.position-1]}consume(e,r){if(r!==void 0){if(this.check(e,r))return this.advance();throw new Error(`Expected ${e} "${r}" but got ${this.current().type} "${this.current().value}"`)}if(this.check(e))return this.advance();throw new Error(`Expected ${e} but got ${this.current().type} "${this.current().value}"`)}},ke=class{evaluate({node:e,scope:r={},context:n=null,forceBindingRootScopeToFunctions:i=!0}){switch(e.type){case"Literal":return e.value;case"Identifier":if(e.name in r){let p=r[e.name];return this.checkForDangerousValues(p),typeof p=="function"?p.bind(r):p}throw new Error(`Undefined variable: ${e.name}`);case"MemberExpression":let o=this.evaluate({node:e.object,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(o==null)throw new Error("Cannot read property of null or undefined");let s;e.computed?s=this.evaluate({node:e.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):s=e.property.name,this.checkForDangerousKeywords(s);let a=o[s];return this.checkForDangerousValues(a),typeof a=="function"?i?a.bind(r):a.bind(o):a;case"CallExpression":let c=e.arguments.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i})),u;if(e.callee.type==="MemberExpression"){let p=this.evaluate({node:e.callee.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g;e.callee.computed?g=this.evaluate({node:e.callee.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):g=e.callee.property.name,this.checkForDangerousKeywords(g);let I=p[g];if(typeof I!="function")throw new Error("Value is not a function");u=I.apply(p,c)}else if(e.callee.type==="Identifier"){let p=e.callee.name,g;if(p in r)g=r[p];else throw new Error(`Undefined variable: ${p}`);if(typeof g!="function")throw new Error("Value is not a function");let I=n!==null?n:r;u=g.apply(I,c)}else{let p=this.evaluate({node:e.callee,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(typeof p!="function")throw new Error("Value is not a function");u=p.apply(n,c)}return this.checkForDangerousValues(u),u;case"UnaryExpression":let l=this.evaluate({node:e.argument,scope:r,context:n,forceBindingRootScopeToFunctions:i});switch(e.operator){case"!":return!l;case"-":return-l;case"+":return+l;default:throw new Error(`Unknown unary operator: ${e.operator}`)}case"UpdateExpression":if(e.argument.type==="Identifier"){let p=e.argument.name;if(!(p in r))throw new Error(`Undefined variable: ${p}`);let g=r[p];return e.operator==="++"?r[p]=g+1:e.operator==="--"&&(r[p]=g-1),e.prefix?r[p]:g}else if(e.argument.type==="MemberExpression"){let p=this.evaluate({node:e.argument.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.argument.computed?this.evaluate({node:e.argument.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.argument.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");this.checkForDangerousKeywords(g);let I=p[g];return e.operator==="++"?p[g]=I+1:e.operator==="--"&&(p[g]=I-1),e.prefix?p[g]:I}throw new Error("Invalid update expression target");case"BinaryExpression":let f=this.evaluate({node:e.left,scope:r,context:n,forceBindingRootScopeToFunctions:i}),w=()=>this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.operator==="&&")return f&&w();if(e.operator==="||")return f||w();let m=w();switch(e.operator){case"+":return f+m;case"-":return f-m;case"*":return f*m;case"/":return f/m;case"%":return f%m;case"==":return f==m;case"!=":return f!=m;case"===":return f===m;case"!==":return f!==m;case"<":return f<m;case">":return f>m;case"<=":return f<=m;case">=":return f>=m;default:throw new Error(`Unknown binary operator: ${e.operator}`)}case"ConditionalExpression":return this.evaluate({node:e.test,scope:r,context:n,forceBindingRootScopeToFunctions:i})?this.evaluate({node:e.consequent,scope:r,context:n,forceBindingRootScopeToFunctions:i}):this.evaluate({node:e.alternate,scope:r,context:n,forceBindingRootScopeToFunctions:i});case"AssignmentExpression":let d=this.evaluate({node:e.right,scope:r,context:n,forceBindingRootScopeToFunctions:i});if(e.left.type==="Identifier")return r[e.left.name]=d,d;if(e.left.type==="MemberExpression"){let p=this.evaluate({node:e.left.object,scope:r,context:n,forceBindingRootScopeToFunctions:i}),g=e.left.computed?this.evaluate({node:e.left.property,scope:r,context:n,forceBindingRootScopeToFunctions:i}):e.left.property.name;if(this.isDOMObject(p))throw new Error("Property assignments on DOM objects are prohibited in the CSP build");return this.checkForDangerousKeywords(g),p[g]=d,d}throw new Error("Invalid assignment target");case"ArrayExpression":return e.elements.map(p=>this.evaluate({node:p,scope:r,context:n,forceBindingRootScopeToFunctions:i}));case"ObjectExpression":let E={};for(let p of e.properties){let g=p.computed?this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}):p.key.type==="Identifier"?p.key.name:this.evaluate({node:p.key,scope:r,context:n,forceBindingRootScopeToFunctions:i}),I=this.evaluate({node:p.value,scope:r,context:n,forceBindingRootScopeToFunctions:i});E[g]=I}return E;default:throw new Error(`Unknown node type: ${e.type}`)}}isDOMObject(e){return e instanceof Node||typeof CSSStyleDeclaration<"u"&&e instanceof CSSStyleDeclaration||typeof DOMStringMap<"u"&&e instanceof DOMStringMap||typeof DOMTokenList<"u"&&e instanceof DOMTokenList||typeof NamedNodeMap<"u"&&e instanceof NamedNodeMap}checkForDangerousKeywords(e){if(["constructor","prototype","__proto__","__defineGetter__","__defineSetter__","insertAdjacentHTML","setAttribute","setAttributeNS","setAttributeNode","setAttributeNodeNS"].includes(e))throw new Error(`Accessing "${e}" is prohibited in the CSP build`)}checkForDangerousValues(e){if(e!==null&&!(typeof e!="object"&&typeof e!="function")&&!un.has(e)){if(e instanceof HTMLIFrameElement||e instanceof HTMLScriptElement)throw new Error("Accessing iframes and scripts is prohibited in the CSP build");if(ln.has(e))throw new Error("Accessing global variables is prohibited in the CSP build");return un.set(e,!0),!0}}};function Ie(t){try{let r=new Me(t).tokenize(),i=new Pe(r).parse(),o=new ke;return function(s={}){let{scope:a={},context:c=null,forceBindingRootScopeToFunctions:u=!1}=s;return o.evaluate({node:i,scope:a,context:c,forceBindingRootScopeToFunctions:u})}}catch(e){throw new Error(`CSP Parser Error: ${e.message}`)}}function fn(t,e,r={}){let n=dn(t),i=R([r.scope??{},...n]),o=r.params??[],a=Ie(e)({scope:i,forceBindingRootScopeToFunctions:!0});return typeof a=="function"&&W?a.apply(i,o):a}function pn(t,e){let r=dn(t);if(typeof e=="function")return wr(r,e);let n=vi(t,e,r);return xe.bind(null,t,e,n)}function dn(t){let e={};return K(e,t),[e,...z(t)]}function vi(t,e,r){if(t instanceof HTMLIFrameElement)throw new Error("Evaluating expressions on an iframe is prohibited in the CSP build");if(t instanceof HTMLScriptElement)throw new Error("Evaluating expressions on a script is prohibited in the CSP build");return(n=()=>{},{scope:i={},params:o=[]}={})=>{let s=R([i,...r]),c=Ie(e)({scope:s,forceBindingRootScopeToFunctions:!0});if(W&&typeof c=="function"){let u=c.apply(c,o);u instanceof Promise?u.then(l=>n(l)):n(u)}else typeof c=="object"&&c instanceof Promise?c.then(u=>n(u)):n(c)}}function De(t,e){let r=Object.create(null),n=t.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return e?i=>!!r[i.toLowerCase()]:i=>!!r[i]}var Ai="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";var ca=De(Ai+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");var hn=Object.freeze({}),ua=Object.freeze([]);var Oi=Object.prototype.hasOwnProperty,Et=(t,e)=>Oi.call(t,e),J=Array.isArray,ut=t=>mn(t)==="[object Map]";var Si=t=>typeof t=="string",Ht=t=>typeof t=="symbol",vt=t=>t!==null&&typeof t=="object";var Ti=Object.prototype.toString,mn=t=>Ti.call(t),Ue=t=>mn(t).slice(8,-1);var qt=t=>Si(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t;var Kt=t=>{let e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Ni=/-(\w)/g,la=Kt(t=>t.replace(Ni,(e,r)=>r?r.toUpperCase():"")),Ci=/\B([A-Z])/g,fa=Kt(t=>t.replace(Ci,"-$1").toLowerCase()),Le=Kt(t=>t.charAt(0).toUpperCase()+t.slice(1)),pa=Kt(t=>t?`on${Le(t)}`:""),je=(t,e)=>t!==e&&(t===t||e===e);var $e=new WeakMap,At=[],F,nt=Symbol("iterate"),Fe=Symbol("Map key iterate");function Ri(t){return t&&t._isEffect===!0}function wn(t,e=hn){Ri(t)&&(t=t.raw);let r=Pi(t,e);return e.lazy||r(),r}function En(t){t.active&&(vn(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var Mi=0;function Pi(t,e){let r=function(){if(!r.active)return t();if(!At.includes(r)){vn(r);try{return Ii(),At.push(r),F=r,t()}finally{At.pop(),An(),F=At[At.length-1]}}};return r.id=Mi++,r.allowRecurse=!!e.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=t,r.deps=[],r.options=e,r}function vn(t){let{deps:e}=t;if(e.length){for(let r=0;r<e.length;r++)e[r].delete(t);e.length=0}}var lt=!0,ze=[];function ki(){ze.push(lt),lt=!1}function Ii(){ze.push(lt),lt=!0}function An(){let t=ze.pop();lt=t===void 0?!0:t}function P(t,e,r){if(!lt||F===void 0)return;let n=$e.get(t);n||$e.set(t,n=new Map);let i=n.get(r);i||n.set(r,i=new Set),i.has(F)||(i.add(F),F.deps.push(i),F.options.onTrack&&F.options.onTrack({effect:F,target:t,type:e,key:r}))}function Z(t,e,r,n,i,o){let s=$e.get(t);if(!s)return;let a=new Set,c=l=>{l&&l.forEach(f=>{(f!==F||f.allowRecurse)&&a.add(f)})};if(e==="clear")s.forEach(c);else if(r==="length"&&J(t))s.forEach((l,f)=>{(f==="length"||f>=n)&&c(l)});else switch(r!==void 0&&c(s.get(r)),e){case"add":J(t)?qt(r)&&c(s.get("length")):(c(s.get(nt)),ut(t)&&c(s.get(Fe)));break;case"delete":J(t)||(c(s.get(nt)),ut(t)&&c(s.get(Fe)));break;case"set":ut(t)&&c(s.get(nt));break}let u=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:t,key:r,type:e,newValue:n,oldValue:i,oldTarget:o}),l.options.scheduler?l.options.scheduler(l):l()};a.forEach(u)}var Di=De("__proto__,__v_isRef,__isVue"),On=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Ht)),Ui=Sn();var Li=Sn(!0);var _n=ji();function ji(){let t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){let n=x(this);for(let o=0,s=this.length;o<s;o++)P(n,"get",o+"");let i=n[e](...r);return i===-1||i===!1?n[e](...r.map(x)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...r){ki();let n=x(this)[e].apply(this,r);return An(),n}}),t}function Sn(t=!1,e=!1){return function(n,i,o){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_raw"&&o===(t?e?to:Rn:e?Qi:Cn).get(n))return n;let s=J(n);if(!t&&s&&Et(_n,i))return Reflect.get(_n,i,o);let a=Reflect.get(n,i,o);return(Ht(i)?On.has(i):Di(i))||(t||P(n,"get",i),e)?a:Be(a)?!s||!qt(i)?a.value:a:vt(a)?t?Mn(a):Qt(a):a}}var $i=Fi();function Fi(t=!1){return function(r,n,i,o){let s=r[n];if(!t&&(i=x(i),s=x(s),!J(r)&&Be(s)&&!Be(i)))return s.value=i,!0;let a=J(r)&&qt(n)?Number(n)<r.length:Et(r,n),c=Reflect.set(r,n,i,o);return r===x(o)&&(a?je(i,s)&&Z(r,"set",n,i,s):Z(r,"add",n,i)),c}}function Bi(t,e){let r=Et(t,e),n=t[e],i=Reflect.deleteProperty(t,e);return i&&r&&Z(t,"delete",e,void 0,n),i}function zi(t,e){let r=Reflect.has(t,e);return(!Ht(e)||!On.has(e))&&P(t,"has",e),r}function Vi(t){return P(t,"iterate",J(t)?"length":nt),Reflect.ownKeys(t)}var Hi={get:Ui,set:$i,deleteProperty:Bi,has:zi,ownKeys:Vi},qi={get:Li,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}};var Ve=t=>vt(t)?Qt(t):t,He=t=>vt(t)?Mn(t):t,qe=t=>t,Xt=t=>Reflect.getPrototypeOf(t);function Wt(t,e,r=!1,n=!1){t=t.__v_raw;let i=x(t),o=x(e);e!==o&&!r&&P(i,"get",e),!r&&P(i,"get",o);let{has:s}=Xt(i),a=n?qe:r?He:Ve;if(s.call(i,e))return a(t.get(e));if(s.call(i,o))return a(t.get(o));t!==i&&t.get(e)}function Gt(t,e=!1){let r=this.__v_raw,n=x(r),i=x(t);return t!==i&&!e&&P(n,"has",t),!e&&P(n,"has",i),t===i?r.has(t):r.has(t)||r.has(i)}function Jt(t,e=!1){return t=t.__v_raw,!e&&P(x(t),"iterate",nt),Reflect.get(t,"size",t)}function gn(t){t=x(t);let e=x(this);return Xt(e).has.call(e,t)||(e.add(t),Z(e,"add",t,t)),this}function xn(t,e){e=x(e);let r=x(this),{has:n,get:i}=Xt(r),o=n.call(r,t);o?Nn(r,n,t):(t=x(t),o=n.call(r,t));let s=i.call(r,t);return r.set(t,e),o?je(e,s)&&Z(r,"set",t,e,s):Z(r,"add",t,e),this}function yn(t){let e=x(this),{has:r,get:n}=Xt(e),i=r.call(e,t);i?Nn(e,r,t):(t=x(t),i=r.call(e,t));let o=n?n.call(e,t):void 0,s=e.delete(t);return i&&Z(e,"delete",t,void 0,o),s}function bn(){let t=x(this),e=t.size!==0,r=ut(t)?new Map(t):new Set(t),n=t.clear();return e&&Z(t,"clear",void 0,void 0,r),n}function Yt(t,e){return function(n,i){let o=this,s=o.__v_raw,a=x(s),c=e?qe:t?He:Ve;return!t&&P(a,"iterate",nt),s.forEach((u,l)=>n.call(i,c(u),c(l),o))}}function Zt(t,e,r){return function(...n){let i=this.__v_raw,o=x(i),s=ut(o),a=t==="entries"||t===Symbol.iterator&&s,c=t==="keys"&&s,u=i[t](...n),l=r?qe:e?He:Ve;return!e&&P(o,"iterate",c?Fe:nt),{next(){let{value:f,done:w}=u.next();return w?{value:f,done:w}:{value:a?[l(f[0]),l(f[1])]:l(f),done:w}},[Symbol.iterator](){return this}}}}function Y(t){return function(...e){{let r=e[0]?`on key "${e[0]}" `:"";console.warn(`${Le(t)} operation ${r}failed: target is readonly.`,x(this))}return t==="delete"?!1:this}}function Ki(){let t={get(o){return Wt(this,o)},get size(){return Jt(this)},has:Gt,add:gn,set:xn,delete:yn,clear:bn,forEach:Yt(!1,!1)},e={get(o){return Wt(this,o,!1,!0)},get size(){return Jt(this)},has:Gt,add:gn,set:xn,delete:yn,clear:bn,forEach:Yt(!1,!0)},r={get(o){return Wt(this,o,!0)},get size(){return Jt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:Yt(!0,!1)},n={get(o){return Wt(this,o,!0,!0)},get size(){return Jt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Y("add"),set:Y("set"),delete:Y("delete"),clear:Y("clear"),forEach:Yt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Zt(o,!1,!1),r[o]=Zt(o,!0,!1),e[o]=Zt(o,!1,!0),n[o]=Zt(o,!0,!0)}),[t,r,e,n]}var[Wi,Gi,Ji,Yi]=Ki();function Tn(t,e){let r=e?t?Yi:Ji:t?Gi:Wi;return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Et(r,i)&&i in n?r:n,i,o)}var Zi={get:Tn(!1,!1)};var Xi={get:Tn(!0,!1)};function Nn(t,e,r){let n=x(r);if(n!==r&&e.call(t,n)){let i=Ue(t);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Cn=new WeakMap,Qi=new WeakMap,Rn=new WeakMap,to=new WeakMap;function eo(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ro(t){return t.__v_skip||!Object.isExtensible(t)?0:eo(Ue(t))}function Qt(t){return t&&t.__v_isReadonly?t:Pn(t,!1,Hi,Zi,Cn)}function Mn(t){return Pn(t,!0,qi,Xi,Rn)}function Pn(t,e,r,n,i){if(!vt(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;let o=i.get(t);if(o)return o;let s=ro(t);if(s===0)return t;let a=new Proxy(t,s===2?n:r);return i.set(t,a),a}function x(t){return t&&x(t.__v_raw)||t}function Be(t){return Boolean(t&&t.__v_isRef===!0)}b("nextTick",()=>ct);b("dispatch",t=>tt.bind(tt,t));b("watch",(t,{evaluateLater:e,cleanup:r})=>(n,i)=>{let o=e(n),a=Ot(()=>{let c;return o(u=>c=u),c},i);r(a)});b("store",en);b("data",t=>Ct(t));b("root",t=>et(t));b("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=R(no(t))),t._x_refs_proxy));function no(t){let e=[];return T(t,r=>{r._x_refs&&e.push(r._x_refs)}),e}var Ke={};function We(t){return Ke[t]||(Ke[t]=0),++Ke[t]}function kn(t,e){return T(t,r=>{if(r._x_ids&&r._x_ids[e])return!0})}function In(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=We(e))}b("id",(t,{cleanup:e})=>(r,n=null)=>{let i=`${r}${n?`-${n}`:""}`;return io(t,i,e,()=>{let o=kn(t,r),s=o?o._x_ids[r]:We(r);return n?`${r}-${s}-${n}`:`${r}-${s}`})});G((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function io(t,e,r,n){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let i=n();return t._x_id[e]=i,r(()=>{delete t._x_id[e]}),i}b("el",t=>t);Dn("Focus","focus","focus");Dn("Persist","persist","persist");function Dn(t,e,r){b(e,n=>A(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("modelable",(t,{expression:e},{effect:r,evaluateLater:n,cleanup:i})=>{let o=n(e),s=()=>{let l;return o(f=>l=f),l},a=n(`${e} = __placeholder`),c=l=>a(()=>{},{scope:{__placeholder:l}}),u=s();c(u),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let l=t._x_model.get,f=t._x_model.setWithModifiers,w=Vt({get(){return l()},set(m){f(m)}},{get(){return s()},set(m){c(m)}});i(w)})});h("teleport",(t,{modifiers:e,expression:r},{cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-teleport can only be used on a <template> tag",t);let i=Un(r),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),t.dispatchEvent(new c.constructor(c.type,c))})}),U(o,{},t);let s=(a,c,u)=>{u.includes("prepend")?c.parentNode.insertBefore(a,c):u.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};_(()=>{S(()=>{s(o,i,e),O(o)})()}),t._x_teleportPutBack=()=>{let a=Un(r);_(()=>{s(t._x_teleport,a,e)})},n(()=>_(()=>{o.remove(),j(o)}))});var oo=document.createElement("div");function Un(t){let e=S(()=>document.querySelector(t),()=>oo)();return e||A(`Cannot find x-teleport element for selector: "${t}"`),e}var Ln=()=>{};Ln.inline=(t,{modifiers:e},{cleanup:r})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,r(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};h("ignore",Ln);h("effect",S((t,{expression:e},{effect:r})=>{r(y(t,e))}));function q(t,e,r,n){let i=t,o=c=>n(c),s={},a=(c,u)=>l=>u(c,l);return r.includes("dot")&&(e=so(e)),r.includes("camel")&&(e=ao(e)),r.includes("capture")&&(s.capture=!0),r.includes("window")&&(i=window),r.includes("document")&&(i=document),r.includes("passive")&&(s.passive=r[r.indexOf("passive")+1]!=="false"),o=Ge(r,o),r.includes("prevent")&&(o=a(o,(c,u)=>{u.preventDefault(),c(u)})),r.includes("stop")&&(o=a(o,(c,u)=>{u.stopPropagation(),c(u)})),r.includes("once")&&(o=a(o,(c,u)=>{c(u),i.removeEventListener(e,o,s)})),(r.includes("away")||r.includes("outside"))&&(i=document,o=a(o,(c,u)=>{t.contains(u.target)||u.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&c(u))})),r.includes("self")&&(o=a(o,(c,u)=>{u.target===t&&c(u)})),e==="submit"&&(o=a(o,(c,u)=>{u.target._x_pendingModelUpdates&&u.target._x_pendingModelUpdates.forEach(l=>l()),c(u)})),(uo(e)||$n(e))&&(o=a(o,(c,u)=>{lo(u,r)||c(u)})),i.addEventListener(e,o,s),()=>{i.removeEventListener(e,o,s)}}function Ge(t,e){if(t.includes("debounce")){let r=t[t.indexOf("debounce")+1]||"invalid-wait",n=te(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=Bt(e,n)}if(t.includes("throttle")){let r=t[t.indexOf("throttle")+1]||"invalid-wait",n=te(r.split("ms")[0])?Number(r.split("ms")[0]):250;e=zt(e,n)}return e}function so(t){return t.replace(/-/g,".")}function ao(t){return t.toLowerCase().replace(/-(\w)/g,(e,r)=>r.toUpperCase())}function te(t){return!Array.isArray(t)&&!isNaN(t)}function co(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function uo(t){return["keydown","keyup"].includes(t)}function $n(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function lo(t,e){let r=e.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(o));if(r.includes("debounce")){let o=r.indexOf("debounce");r.splice(o,te((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let o=r.indexOf("throttle");r.splice(o,te((r[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&jn(t.key).includes(r[0]))return!1;let i=["ctrl","shift","alt","meta","cmd","super"].filter(o=>r.includes(o));return r=r.filter(o=>!i.includes(o)),!(i.length>0&&i.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===i.length&&($n(t.type)||jn(t.key).includes(r[0])))}function jn(t){if(!t)return[];t=co(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(r=>{if(e[r]===t)return r}).filter(r=>r)}h("model",(t,{modifiers:e,expression:r},{effect:n,cleanup:i})=>{let o=t;e.includes("parent")&&(o=T(t,d=>d!==t));let s=y(o,r),a;typeof r=="string"?a=y(o,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?a=y(o,`${r()} = __placeholder`):a=()=>{};let c=()=>{let d;return s(E=>d=E),Fn(d)?d.get():d},u=d=>{let E;s(p=>E=p),Fn(E)?E.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof r=="string"&&t.type==="radio"&&_(()=>{t.hasAttribute("name")||t.setAttribute("name",r)});let l=e.includes("change")||e.includes("lazy"),f=e.includes("blur"),w=e.includes("enter"),m=l||f||w,k;if($)k=()=>{};else if(m){let d=[],E=p=>u(ee(t,e,p,c()));if(l&&d.push(q(t,"change",e,E)),f&&(d.push(q(t,"blur",e,E)),t.form)){let p=t.form,g=()=>E({target:t});p._x_pendingModelUpdates||(p._x_pendingModelUpdates=[]),p._x_pendingModelUpdates.push(g),i(()=>{p._x_pendingModelUpdates&&p._x_pendingModelUpdates.splice(p._x_pendingModelUpdates.indexOf(g),1)})}w&&d.push(q(t,"keydown",e,p=>{p.key==="Enter"&&E(p)})),k=()=>d.forEach(p=>p())}else{let d=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)?"change":"input";k=q(t,d,e,E=>{u(ee(t,e,E,c()))})}if(e.includes("fill")&&([void 0,null,""].includes(c())||wt(t)&&Array.isArray(c())||t.tagName.toLowerCase()==="select"&&t.multiple)&&u(ee(t,e,{target:t},c())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=k,i(()=>t._x_removeModelListeners.default()),t.form){let d=q(t.form,"reset",[],E=>{ct(()=>t._x_model&&t._x_model.set(ee(t,e,{target:t},c())))});i(()=>d())}if(t._x_model={get(){return c()},set(d){u(d)},setWithModifiers:Ge(e,u)},t._x_forceModelUpdate=d=>{d===void 0&&typeof r=="string"&&r.match(/\./)&&(d=""),_(()=>{wt(t)?Array.isArray(d)?t.checked=d.some(E=>E==t.value):t.checked=!!d:Ft(t)?typeof d=="boolean"?t.checked=bt(t.value)===d:t.checked=t.value==d:yt(t,"value",d)})},t.tagName==="SELECT"){let d=new MutationObserver(()=>{t._x_forceModelUpdate(c())});d.observe(t,{childList:!0}),i(()=>d.disconnect())}n(()=>{let d=c();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(d)})});function ee(t,e,r,n){return _(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(wt(t))if(Array.isArray(n)){let i=null;return e.includes("number")?i=Je(r.target.value):e.includes("boolean")?i=bt(r.target.value):i=r.target.value,r.target.checked?n.includes(i)?n:n.concat([i]):n.filter(o=>!fo(o,i))}else return r.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return Je(o)}):e.includes("boolean")?Array.from(r.target.selectedOptions).map(i=>{let o=i.value||i.text;return bt(o)}):Array.from(r.target.selectedOptions).map(i=>i.value||i.text);{let i;return Ft(t)?r.target.checked?i=r.target.value:i=n:i=r.target.value,e.includes("number")?Je(i):e.includes("boolean")?bt(i):e.includes("trim")?i.trim():i}}})}function Je(t){let e=t?parseFloat(t):null;return po(e)?e:t}function fo(t,e){return t==e}function po(t){return!Array.isArray(t)&&!isNaN(t)}function Fn(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}h("cloak",t=>queueMicrotask(()=>_(()=>t.removeAttribute(N("cloak")))));Ut(()=>`[${N("init")}]`);h("init",S((t,{expression:e},{evaluate:r})=>typeof e=="string"?!!e.trim()&&r(e,{},!1):r(e,{},!1)));h("text",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.textContent=o})})})});h("html",(t,{expression:e},{effect:r,evaluateLater:n})=>{let i=n(e);r(()=>{i(o=>{_(()=>{t.innerHTML=o??"",t._x_ignoreSelf=!0,O(t),delete t._x_ignoreSelf})})})});at(kt(":",It(N("bind:"))));var Bn=(t,{value:e,modifiers:r,expression:n,original:i},{effect:o,cleanup:s})=>{if(!e){let c={};on(c),y(t,n)(l=>{Re(t,l,i)},{scope:c});return}if(e==="key")return ho(t,n);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let a=y(t,n);o(()=>a(c=>{c===void 0&&typeof n=="string"&&n.match(/\./)&&(c=""),_(()=>yt(t,e,c,r))})),s(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};Bn.inline=(t,{value:e,modifiers:r,expression:n})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:n,extract:!1})};h("bind",Bn);function ho(t,e){t._x_keyExpression=e}Dt(()=>`[${N("data")}]`);var it=Symbol();h("data",(t,{expression:e},{cleanup:r})=>{if(_o(t))return;let n=t[it];if(n?.expression===e)return;e=e===""?"{}":e;let i={};K(i,t);let o={};cn(o,i);let s=M(t,e,{scope:o});(s===void 0||s===!0)&&(s={}),K(s,t);let a;if(n?.reactiveData){a=n.reactiveData,mo(a,s);let u={expression:e};t[it]=u,queueMicrotask(()=>{t[it]===u&&delete t[it]})}else a=C(s);st(a,r);let c=U(t,a);a.init&&M(t,a.init),r(()=>{a.destroy&&M(t,a.destroy),c();let u={reactiveData:a};t[it]=u,queueMicrotask(()=>{t[it]===u&&delete t[it]})})});function mo(t,e){Object.keys(e).forEach(r=>{let n=Object.getOwnPropertyDescriptor(e,r),i=Object.getOwnPropertyDescriptor(t,r);n.get||n.set||i?.get||i?.set?(i&&delete t[r],i||(t[r]=void 0),n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]):t[r]=e[r]}),Object.keys(t).filter(r=>!Object.prototype.hasOwnProperty.call(e,r)).forEach(r=>delete t[r])}G((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function _o(t){return $?$t?!0:t.hasAttribute("data-has-alpine-state"):!1}h("show",(t,{modifiers:e,expression:r},{effect:n})=>{let i=y(t,r);t._x_doHide||(t._x_doHide=()=>{_(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{_(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),c=gt(f=>f?s():o(),f=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,f,s,o):f?a():o()}),u,l=!0;n(()=>i(f=>{!l&&f===u||(e.includes("immediate")&&(f?a():o()),c(f),u=f,l=!1)}))});h("for",S((t,{expression:e},{effect:r,cleanup:n})=>{let i=yo(e),o=y(t,i.items),s=y(t,t._x_keyExpression||"index");t._x_lookup=new Map,r(()=>xo(t,i,o,s)),n(()=>{t._x_lookup.forEach(a=>_(()=>{j(a),a.remove()})),delete t._x_lookup,delete t._x_lastRenderedEl})}));function go(t){return e=>{Object.entries(e).forEach(([r,n])=>{t[r]=n})}}function xo(t,e,r,n){r(i=>{wo(i)&&(i=Array.from({length:i},(u,l)=>l+1)),i==null&&(i=[]),i instanceof Set&&(i=Array.from(i)),i instanceof Map&&(i=Array.from(i));let o=t._x_lookup,s=new Map;t._x_lookup=s;let a=Eo(i),c=Object.entries(i).map(([u,l])=>{a||(u=parseInt(u));let f=bo(e,l,u,i),w;return n(m=>{typeof m=="object"&&A("x-for key cannot be an object, it must be a string or an integer",t),o.has(m)&&(s.set(m,o.get(m)),o.delete(m)),w=m},{scope:{index:u,...f}}),[w,f]});_(()=>{o.forEach(f=>{j(f),f.remove()});let u=new Set,l=t;c.forEach(([f,w])=>{if(s.has(f)){let d=s.get(f);d._x_refreshXForScope(w),l.nextElementSibling!==d&&(l.nextElementSibling&&d.replaceWith(l.nextElementSibling),l.after(d)),l=d,d._x_currentIfEl&&(d.nextElementSibling!==d._x_currentIfEl&&l.after(d._x_currentIfEl),l=d._x_currentIfEl);return}t.content.children.length>1&&A("x-for templates require a single root element, additional elements will be ignored.",t);let m=document.importNode(t.content,!0).firstElementChild,k=C(w);U(m,k,t),m._x_refreshXForScope=go(k),s.set(f,m),u.add(m),l.after(m),l=m}),u.forEach(f=>O(f)),l!==t?t._x_lastRenderedEl=l:delete t._x_lastRenderedEl})})}function yo(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,i=t.match(n);if(!i)return;let o={};o.items=i[2].trim();let s=i[1].replace(r,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function bo(t,e,r,n){let i={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{i[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{i[s]=e[s]}):i[t.item]=e,t.index&&(i[t.index]=r),t.collection&&(i[t.collection]=n),i}function wo(t){return typeof t!="object"&&!isNaN(t)}function Eo(t){return typeof t=="object"&&!Array.isArray(t)}function zn(){}zn.inline=(t,{expression:e},{cleanup:r})=>{let n=et(t);n&&(n._x_refs||(n._x_refs={}),n._x_refs[e]=t,r(()=>delete n._x_refs[e]))};h("ref",zn);h("if",S((t,{expression:e},{effect:r,cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&A("x-if can only be used on a <template> tag",t);let i=y(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return U(a,{},t),_(()=>{t.after(a),O(a)}),t._x_currentIfEl=a,t._x_lastRenderedEl=a,t._x_undoIf=()=>{_(()=>{j(a),a.remove()}),delete t._x_currentIfEl,delete t._x_lastRenderedEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};r(()=>i(a=>{a?o():s()})),n(()=>t._x_undoIf&&t._x_undoIf())}));h("id",(t,{expression:e},{evaluate:r})=>{r(e).forEach(i=>In(t,i))});G((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});at(kt("@",It(N("on:"))));h("on",S((t,{value:e,modifiers:r,expression:n},{cleanup:i})=>{let o=n?y(t,n):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=q(t,e,r,a=>{o(()=>{},{scope:{$event:a},params:[a]})});i(()=>s())}));re("Collapse","collapse","collapse");re("Intersect","intersect","intersect");re("Focus","trap","focus");re("Mask","mask","mask");function re(t,e,r){h(e,n=>A(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${r}`,n))}h("html",(t,{expression:e})=>{dt(new Error("Using the x-html directive is prohibited in the CSP build"),t)});V.setEvaluator(pn);V.setRawEvaluator(fn);V.setReactivityEngine({reactive:Qt,effect:wn,release:En,raw:x});var Ye=V;window.Alpine=Ye;queueMicrotask(()=>{Ye.start()});})();
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  "use strict";
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /**
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const exceptions = require( "@ti-engine/core/exceptions" );
package/bin/web-server.js CHANGED
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const ServiceConsumer = require( "@ti-engine/core/service-consumer" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /**
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  "use strict";
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const tools = require( "@ti-engine/core/tools" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /**
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const { EventEmitter } = require( "node:events" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /**
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const Ajv = require( "ajv" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const exceptions = require( "@ti-engine/core/exceptions" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const cache = require( "@ti-engine/core/cache" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /** @import { TiLocalizationLanguage } from "@ti-engine/core/localization" */
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const crypto = require( "node:crypto" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const cache = require( "@ti-engine/core/cache" );
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  /** @import { TiLocalizationLanguage } from "@ti-engine/core/localization" */
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2026 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  "use strict";
@@ -1,9 +1,18 @@
1
1
  /*
2
2
  * The ti-engine is an open source, free to use—both for personal and commercial projects—framework for the creation of microservice-based solutions using node.js.
3
3
  * Copyright © 2021-2025 Boris Kostadinov <kostadinov.boris@gmail.com>
4
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
- * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
- * You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
7
16
  */
8
17
 
9
18
  const logger = require( "@ti-engine/core/logger" );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ti-engine/web-framework",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "description": "A web-framework based on the ti-engine. It provides a customizable ready-to-use web-server microservice and a set of tools for creating web applications. NOTICE: This is still a work in progress and the full architecture, design, and functionality are not available!",
5
5
  "keywords": [
6
6
  "ti-engine",
@@ -13,7 +13,7 @@
13
13
  "csp"
14
14
  ],
15
15
  "author": "Boris Kostadinov <kostadinov.boris@gmail.com>",
16
- "license": "GPL-3.0-or-later",
16
+ "license": "Apache-2.0",
17
17
  "exports": {
18
18
  "./config-drift": {
19
19
  "types": "./types/components/config-drift.d.ts",
@@ -116,7 +116,7 @@
116
116
  "@ti-engine/core": "*",
117
117
  "@types/express": "^5.0.6",
118
118
  "@types/express-session": "^1.18.2",
119
- "@types/node": "^24.10.1",
119
+ "@types/node": "^26.2.0",
120
120
  "ajv": "^8.20.0",
121
121
  "cookie-parser": "^1.4.7",
122
122
  "express": "^5.2.1",