jq79 0.3.20 → 0.3.22
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/assets/code-coverage.svg +19 -0
- package/assets/github-dark.svg +5 -0
- package/assets/github-light.svg +5 -0
- package/assets/github-white.afdesign +0 -0
- package/assets/github-white.afdesign~lock~ +0 -0
- package/assets/npm-logo.svg +8 -0
- package/dist/dom.d.ts +4 -2
- package/dist/jq79.cjs +5 -5
- package/dist/jq79.cjs.map +1 -1
- package/dist/jq79.global.js +5 -5
- package/dist/jq79.global.js.map +1 -1
- package/dist/jq79.js +5 -5
- package/dist/jq79.js.map +1 -1
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.js.map +1 -1
- package/package.json +3 -1
- package/src/dom.ts +19 -13
- package/src/jq79.ts +9 -3
- package/src/vite.ts +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg width="100%" height="100%" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
|
|
4
|
+
<g transform="matrix(1,0,0,1,4.29914,3.85266)">
|
|
5
|
+
<circle cx="115.701" cy="116.147" r="90.609" style="fill:rgb(235,235,235);"/>
|
|
6
|
+
</g>
|
|
7
|
+
<path d="M120,13C179.055,13 227,60.945 227,120C227,179.055 179.055,227 120,227C60.945,227 13,179.055 13,120C13,60.945 60.945,13 120,13ZM120,47C79.71,47 47,79.71 47,120C47,160.29 79.71,193 120,193C160.29,193 193,160.29 193,120C193,79.71 160.29,47 120,47Z" style="fill:rgb(238,240,242);"/>
|
|
8
|
+
<g transform="matrix(-3.82857e-16,-1,1,-3.82857e-16,4.26326e-14,240)">
|
|
9
|
+
<path d="M14.54,101.841L14.541,101.831C23.187,51.421 67.139,13 120,13C179.055,13 227,60.945 227,120C227,179.055 179.055,227 120,227C60.945,227 13,179.055 13,120C13,113.811 13.528,107.743 14.54,101.841ZM48.052,107.578L48.051,107.585C47.359,111.62 47,115.768 47,120C47,160.29 79.71,193 120,193C160.29,193 193,160.29 193,120C193,79.71 160.29,47 120,47C83.943,47 53.949,73.193 48.052,107.578Z" style="fill:rgb(34,197,94);"/>
|
|
10
|
+
<g transform="matrix(1.00052,0,0,1,-0.0156662,-6.62052e-15)">
|
|
11
|
+
<path d="M120,47.004L119.987,47.004C84.495,47.011 54.878,72.39 48.34,105.983L14.976,99.482C24.561,50.238 67.952,13.005 119.981,12.996L120,12.996L120,47.004Z" style="fill:rgb(239,68,68);"/>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
<g transform="matrix(2.17089,0,0,2.17089,120.338,163.405)">
|
|
15
|
+
<g transform="matrix(58,0,0,58,-25.7856,0)">
|
|
16
|
+
<path d="M0.498,-0.167C0.498,-0.218 0.515,-0.261 0.551,-0.296C0.586,-0.332 0.629,-0.349 0.679,-0.349C0.729,-0.349 0.772,-0.331 0.808,-0.296C0.843,-0.26 0.861,-0.218 0.861,-0.167C0.861,-0.117 0.843,-0.075 0.808,-0.039C0.772,-0.004 0.729,0.014 0.679,0.014C0.629,0.014 0.586,-0.004 0.551,-0.039C0.515,-0.075 0.498,-0.117 0.498,-0.167ZM0.076,-0.395C0.041,-0.43 0.023,-0.473 0.023,-0.523C0.023,-0.573 0.041,-0.616 0.076,-0.651C0.112,-0.687 0.154,-0.705 0.205,-0.705C0.255,-0.705 0.298,-0.687 0.333,-0.651C0.368,-0.616 0.386,-0.573 0.386,-0.523C0.386,-0.473 0.369,-0.43 0.333,-0.395C0.298,-0.359 0.255,-0.341 0.205,-0.341C0.154,-0.341 0.112,-0.359 0.076,-0.395ZM0.281,0.019L0.206,0.019L0.602,-0.708L0.676,-0.708L0.281,0.019ZM0.625,-0.113C0.639,-0.097 0.658,-0.09 0.679,-0.09C0.701,-0.09 0.719,-0.097 0.734,-0.113C0.749,-0.128 0.757,-0.146 0.757,-0.167C0.757,-0.189 0.749,-0.207 0.734,-0.222C0.719,-0.238 0.701,-0.245 0.679,-0.245C0.658,-0.245 0.639,-0.238 0.624,-0.222C0.609,-0.207 0.602,-0.189 0.602,-0.167C0.602,-0.146 0.609,-0.128 0.625,-0.113ZM0.15,-0.468C0.165,-0.453 0.183,-0.445 0.205,-0.445C0.226,-0.445 0.244,-0.453 0.26,-0.468C0.275,-0.483 0.282,-0.501 0.282,-0.523C0.282,-0.544 0.275,-0.563 0.26,-0.578C0.244,-0.593 0.226,-0.601 0.205,-0.601C0.183,-0.601 0.165,-0.593 0.15,-0.578C0.135,-0.563 0.127,-0.544 0.127,-0.523C0.127,-0.501 0.135,-0.483 0.15,-0.468Z" style="fill:rgb(31,41,55);fill-rule:nonzero;"/>
|
|
17
|
+
</g>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 3500 820">
|
|
2
|
+
<path d="M92.375 230.65H52.019a1.897 1.897 0 0 0-1.886 1.886v19.731a1.9 1.9 0 0 0 1.886 1.889h15.743v24.513s-3.535 1.206-13.308 1.206c-11.53 0-27.637-4.214-27.637-39.632 0-35.425 16.772-40.087 32.518-40.087 13.63 0 19.502 2.401 23.238 3.556 1.174.36 2.26-.808 2.26-1.851l4.502-19.063c0-.487-.165-1.075-.721-1.474-1.517-1.082-10.774-6.262-34.16-6.262-26.941 0-54.576 11.463-54.576 66.562 0 55.103 31.64 63.313 58.302 63.313 22.076 0 35.468-9.434 35.468-9.434.552-.306.612-1.077.612-1.431v-61.537c0-1.04-.844-1.885-1.885-1.885m207.979-48.986v-.016a1.89 1.89 0 0 0-1.873-1.88h-22.724a1.9 1.9 0 0 0-1.882 1.889v.007l.006 43.913h-35.419V181.65a1.89 1.89 0 0 0-1.875-1.882h-22.722a1.895 1.895 0 0 0-1.877 1.896v118.904c0 1.048.843 1.901 1.877 1.901h22.722c1.039 0 1.875-.854 1.875-1.901v-50.86h35.419l-.062 50.86c0 1.048.844 1.901 1.883 1.901h22.777c1.041 0 1.873-.854 1.875-1.901zm-165.1 15.604c0-8.183-6.56-14.795-14.653-14.795-8.085 0-14.65 6.612-14.65 14.795 0 8.173 6.565 14.802 14.65 14.802 8.093 0 14.653-6.629 14.653-14.802m-1.625 78.218V220.6a1.9 1.9 0 0 0-1.88-1.895h-22.651c-1.039 0-1.969 1.072-1.969 2.115v78.634c0 2.312 1.44 2.998 3.304 2.998h20.408c2.239 0 2.788-1.1 2.788-3.034zm253.081-56.602h-22.549c-1.034 0-1.876.852-1.876 1.901v58.302s-5.729 4.192-13.859 4.192-10.287-3.689-10.287-11.65v-50.844c0-1.049-.841-1.901-1.875-1.901h-22.886c-1.032 0-1.879.852-1.879 1.901v54.693c0 23.646 13.179 29.431 31.31 29.431 14.873 0 26.864-8.216 26.864-8.216s.571 4.329.829 4.843c.259.512.932 1.029 1.659 1.029l14.56-.064c1.032 0 1.879-.854 1.879-1.898l-.008-79.817c0-1.05-.843-1.902-1.882-1.902m52.735 64.323c-7.821-.238-13.126-3.788-13.126-3.788v-37.653s5.233-3.208 11.654-3.782c8.12-.727 15.944 1.726 15.944 21.095.001 20.426-3.53 24.457-14.472 24.128m8.894-66.993c-12.807 0-21.518 5.714-21.518 5.714v-40.263c0-1.05-.839-1.897-1.875-1.897h-22.787a1.896 1.896 0 0 0-1.878 1.887v118.913c0 1.048.842 1.901 1.881 1.901h15.811c.711 0 1.25-.367 1.648-1.009.393-.639.96-5.482.96-5.482s9.318 8.83 26.957 8.83c20.708 0 32.584-10.504 32.584-47.154s-18.967-41.44-31.783-41.44m-249.403 2.481h-17.045l-.026-22.519c0-.852-.439-1.278-1.424-1.278h-23.228c-.903 0-1.388.398-1.388 1.265v23.271s-11.64 2.809-12.427 3.037a1.89 1.89 0 0 0-1.361 1.812v14.623c0 1.052.84 1.898 1.879 1.898h11.909v35.178c0 26.13 18.328 28.697 30.696 28.697 5.651 0 12.411-1.814 13.527-2.228.675-.248 1.067-.947 1.067-1.705l.019-16.086c0-1.05-.886-1.897-1.884-1.897-.993 0-3.534.404-6.15.404-8.372 0-11.209-3.893-11.209-8.932l-.001-33.432h17.046c1.039 0 1.88-.847 1.88-1.898v-18.326a1.893 1.893 0 0 0-1.88-1.884" style="fill:#121110;fill-rule:nonzero" transform="translate(995.503 -839.199)scale(5.205)"/>
|
|
3
|
+
<path d="M127.505 0C57.095 0 0 57.085 0 127.505c0 56.336 36.534 104.13 87.196 120.99 6.372 1.18 8.712-2.766 8.712-6.134 0-3.04-.119-13.085-.173-23.739-35.473 7.713-42.958-15.044-42.958-15.044-5.8-14.738-14.157-18.656-14.157-18.656-11.568-7.914.872-7.752.872-7.752 12.804.9 19.546 13.14 19.546 13.14 11.372 19.493 29.828 13.857 37.104 10.6 1.144-8.242 4.449-13.866 8.095-17.05-28.32-3.225-58.092-14.158-58.092-63.014 0-13.92 4.981-25.295 13.138-34.224-1.324-3.212-5.688-16.18 1.235-33.743 0 0 10.707-3.427 35.073 13.07 10.17-2.826 21.078-4.242 31.914-4.29 10.836.048 21.752 1.464 31.942 4.29 24.337-16.497 35.029-13.07 35.029-13.07 6.94 17.563 2.574 30.531 1.25 33.743 8.175 8.929 13.122 20.303 13.122 34.224 0 48.972-29.828 59.756-58.22 62.912 4.573 3.957 8.648 11.717 8.648 23.612 0 17.06-.148 30.791-.148 34.991 0 3.393 2.295 7.369 8.759 6.117 50.634-16.879 87.122-64.656 87.122-120.973C255.009 57.085 197.922 0 127.505 0" style="fill:#161614;fill-rule:nonzero" transform="translate(4.6 18.364)scale(3.09396)"/>
|
|
4
|
+
<path d="M47.755 181.634c-.28.633-1.278.823-2.185.389-.925-.416-1.445-1.28-1.145-1.916.275-.652 1.273-.834 2.196-.396.927.415 1.455 1.287 1.134 1.923m6.272 5.596c-.608.564-1.797.302-2.604-.589-.834-.889-.99-2.077-.373-2.65.627-.563 1.78-.3 2.616.59.834.899.996 2.08.36 2.65m4.304 7.159c-.782.543-2.06.034-2.849-1.1-.781-1.133-.781-2.493.017-3.038.792-.545 2.05-.055 2.85 1.07.78 1.153.78 2.513-.019 3.069m7.277 8.292c-.699.77-2.187.564-3.277-.488-1.114-1.028-1.425-2.487-.724-3.258.707-.772 2.204-.555 3.302.488 1.107 1.026 1.445 2.496.7 3.258m9.403 2.8c-.307.998-1.741 1.452-3.185 1.028-1.442-.437-2.386-1.607-2.095-2.616.3-1.005 1.74-1.478 3.195-1.024 1.44.435 2.386 1.596 2.086 2.612m10.703 1.187c.036 1.052-1.189 1.924-2.705 1.943-1.525.033-2.758-.818-2.774-1.852 0-1.062 1.197-1.926 2.721-1.951 1.516-.03 2.758.815 2.758 1.86m10.514-.403c.182 1.026-.872 2.08-2.377 2.36-1.48.27-2.85-.363-3.039-1.38-.184-1.052.89-2.105 2.367-2.378 1.508-.262 2.857.355 3.049 1.398" style="fill:#161614;fill-rule:nonzero" transform="translate(4.6 18.364)scale(3.09396)"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 3500 820">
|
|
2
|
+
<path d="M92.375 230.65H52.019a1.897 1.897 0 0 0-1.886 1.886v19.731a1.9 1.9 0 0 0 1.886 1.889h15.743v24.513s-3.535 1.206-13.308 1.206c-11.53 0-27.637-4.214-27.637-39.632 0-35.425 16.772-40.087 32.518-40.087 13.63 0 19.502 2.401 23.238 3.556 1.174.36 2.26-.808 2.26-1.851l4.502-19.063c0-.487-.165-1.075-.721-1.474-1.517-1.082-10.774-6.262-34.16-6.262-26.941 0-54.576 11.463-54.576 66.562 0 55.103 31.64 63.313 58.302 63.313 22.076 0 35.468-9.434 35.468-9.434.552-.306.612-1.077.612-1.431v-61.537c0-1.04-.844-1.885-1.885-1.885m207.979-48.986v-.016a1.89 1.89 0 0 0-1.873-1.88h-22.724a1.9 1.9 0 0 0-1.882 1.889v.007l.006 43.913h-35.419V181.65a1.89 1.89 0 0 0-1.875-1.882h-22.722a1.895 1.895 0 0 0-1.877 1.896v118.904c0 1.048.843 1.901 1.877 1.901h22.722c1.039 0 1.875-.854 1.875-1.901v-50.86h35.419l-.062 50.86c0 1.048.844 1.901 1.883 1.901h22.777c1.041 0 1.873-.854 1.875-1.901zm-165.1 15.604c0-8.183-6.56-14.795-14.653-14.795-8.085 0-14.65 6.612-14.65 14.795 0 8.173 6.565 14.802 14.65 14.802 8.093 0 14.653-6.629 14.653-14.802m-1.625 78.218V220.6a1.9 1.9 0 0 0-1.88-1.895h-22.651c-1.039 0-1.969 1.072-1.969 2.115v78.634c0 2.312 1.44 2.998 3.304 2.998h20.408c2.239 0 2.788-1.1 2.788-3.034zm253.081-56.602h-22.549c-1.034 0-1.876.852-1.876 1.901v58.302s-5.729 4.192-13.859 4.192-10.287-3.689-10.287-11.65v-50.844c0-1.049-.841-1.901-1.875-1.901h-22.886c-1.032 0-1.879.852-1.879 1.901v54.693c0 23.646 13.179 29.431 31.31 29.431 14.873 0 26.864-8.216 26.864-8.216s.571 4.329.829 4.843c.259.512.932 1.029 1.659 1.029l14.56-.064c1.032 0 1.879-.854 1.879-1.898l-.008-79.817c0-1.05-.843-1.902-1.882-1.902m52.735 64.323c-7.821-.238-13.126-3.788-13.126-3.788v-37.653s5.233-3.208 11.654-3.782c8.12-.727 15.944 1.726 15.944 21.095.001 20.426-3.53 24.457-14.472 24.128m8.894-66.993c-12.807 0-21.518 5.714-21.518 5.714v-40.263c0-1.05-.839-1.897-1.875-1.897h-22.787a1.896 1.896 0 0 0-1.878 1.887v118.913c0 1.048.842 1.901 1.881 1.901h15.811c.711 0 1.25-.367 1.648-1.009.393-.639.96-5.482.96-5.482s9.318 8.83 26.957 8.83c20.708 0 32.584-10.504 32.584-47.154s-18.967-41.44-31.783-41.44m-249.403 2.481h-17.045l-.026-22.519c0-.852-.439-1.278-1.424-1.278h-23.228c-.903 0-1.388.398-1.388 1.265v23.271s-11.64 2.809-12.427 3.037a1.89 1.89 0 0 0-1.361 1.812v14.623c0 1.052.84 1.898 1.879 1.898h11.909v35.178c0 26.13 18.328 28.697 30.696 28.697 5.651 0 12.411-1.814 13.527-2.228.675-.248 1.067-.947 1.067-1.705l.019-16.086c0-1.05-.886-1.897-1.884-1.897-.993 0-3.534.404-6.15.404-8.372 0-11.209-3.893-11.209-8.932l-.001-33.432h17.046c1.039 0 1.88-.847 1.88-1.898v-18.326a1.893 1.893 0 0 0-1.88-1.884" style="fill:#e2e2e2;fill-rule:nonzero" transform="translate(974.94 -839.199)scale(5.205)"/>
|
|
3
|
+
<path d="M127.505 0C57.095 0 0 57.085 0 127.505c0 56.336 36.534 104.13 87.196 120.99 6.372 1.18 8.712-2.766 8.712-6.134 0-3.04-.119-13.085-.173-23.739-35.473 7.713-42.958-15.044-42.958-15.044-5.8-14.738-14.157-18.656-14.157-18.656-11.568-7.914.872-7.752.872-7.752 12.804.9 19.546 13.14 19.546 13.14 11.372 19.493 29.828 13.857 37.104 10.6 1.144-8.242 4.449-13.866 8.095-17.05-28.32-3.225-58.092-14.158-58.092-63.014 0-13.92 4.981-25.295 13.138-34.224-1.324-3.212-5.688-16.18 1.235-33.743 0 0 10.707-3.427 35.073 13.07 10.17-2.826 21.078-4.242 31.914-4.29 10.836.048 21.752 1.464 31.942 4.29 24.337-16.497 35.029-13.07 35.029-13.07 6.94 17.563 2.574 30.531 1.25 33.743 8.175 8.929 13.122 20.303 13.122 34.224 0 48.972-29.828 59.756-58.22 62.912 4.573 3.957 8.648 11.717 8.648 23.612 0 17.06-.148 30.791-.148 34.991 0 3.393 2.295 7.369 8.759 6.117 50.634-16.879 87.122-64.656 87.122-120.973C255.009 57.085 197.922 0 127.505 0" style="fill:#e2e2e2;fill-rule:nonzero" transform="translate(28.199 18.364)scale(3.09396)"/>
|
|
4
|
+
<path d="M47.755 181.634c-.28.633-1.278.823-2.185.389-.925-.416-1.445-1.28-1.145-1.916.275-.652 1.273-.834 2.196-.396.927.415 1.455 1.287 1.134 1.923m6.272 5.596c-.608.564-1.797.302-2.604-.589-.834-.889-.99-2.077-.373-2.65.627-.563 1.78-.3 2.616.59.834.899.996 2.08.36 2.65m4.304 7.159c-.782.543-2.06.034-2.849-1.1-.781-1.133-.781-2.493.017-3.038.792-.545 2.05-.055 2.85 1.07.78 1.153.78 2.513-.019 3.069m7.277 8.292c-.699.77-2.187.564-3.277-.488-1.114-1.028-1.425-2.487-.724-3.258.707-.772 2.204-.555 3.302.488 1.107 1.026 1.445 2.496.7 3.258m9.403 2.8c-.307.998-1.741 1.452-3.185 1.028-1.442-.437-2.386-1.607-2.095-2.616.3-1.005 1.74-1.478 3.195-1.024 1.44.435 2.386 1.596 2.086 2.612m10.703 1.187c.036 1.052-1.189 1.924-2.705 1.943-1.525.033-2.758-.818-2.774-1.852 0-1.062 1.197-1.926 2.721-1.951 1.516-.03 2.758.815 2.758 1.86m10.514-.403c.182 1.026-.872 2.08-2.377 2.36-1.48.27-2.85-.363-3.039-1.38-.184-1.052.89-2.105 2.367-2.378 1.508-.262 2.857.355 3.049 1.398" style="fill:#e2e2e2;fill-rule:nonzero" transform="translate(28.199 18.364)scale(3.09396)"/>
|
|
5
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="540px" height="210px" viewBox="0 0 18 7">
|
|
4
|
+
<path fill="#CB3837" d="M0,0h18v6H9v1H5V6H0V0z M1,5h2V2h1v3h1V1H1V5z M6,1v5h2V5h2V1H6z M8,2h1v2H8V2z M11,1v4h2V2h1v3h1V2h1v3h1V1H11z"/>
|
|
5
|
+
<polygon fill="#FFFFFF" points="1,5 3,5 3,2 4,2 4,5 5,5 5,1 1,1 "/>
|
|
6
|
+
<path fill="#FFFFFF" d="M6,1v5h2V5h2V1H6z M9,4H8V2h1V4z"/>
|
|
7
|
+
<polygon fill="#FFFFFF" points="11,1 11,5 13,5 13,2 14,2 14,5 15,5 15,2 16,2 16,5 17,5 17,1 "/>
|
|
8
|
+
</svg>
|
package/dist/dom.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
export declare
|
|
1
|
+
export declare function $(selector: string): Element | null;
|
|
2
|
+
export declare function $(el: Element, selector: string): Element | null;
|
|
3
|
+
export declare function $$(selector: string): Element[];
|
|
4
|
+
export declare function $$(el: Element, selector: string): Element[];
|
|
3
5
|
export declare const $create: (tag: string, attrs?: Record<string, any>) => HTMLElement;
|
|
4
6
|
export declare function isSafeUrl(value: string): boolean;
|
|
5
7
|
export declare function sanitizeHTML(html: string): string;
|
package/dist/jq79.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var O=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var pt=Object.prototype.hasOwnProperty;var ht=(t,e,n)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var mt=(t,e)=>{for(var n in e)O(t,n,{get:e[n],enumerable:!0})},gt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ut(e))!pt.call(t,s)&&s!==n&&O(t,s,{get:()=>e[s],enumerable:!(r=ft(e,s))||r.enumerable});return t};var yt=t=>gt(O({},"__esModule",{value:!0}),t);var b=(t,e,n)=>ht(t,typeof e!="symbol"?e+"":e,n);var zt={};mt(zt,{$:()=>T,$$:()=>A,$create:()=>M,$reactive:()=>_,Component79:()=>C,parseComponent:()=>qt,renderComponent:()=>Mt});module.exports=yt(zt);
|
|
1
|
+
var O=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var ut=Object.getOwnPropertyNames;var pt=Object.prototype.hasOwnProperty;var ht=(t,e,n)=>e in t?O(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var mt=(t,e)=>{for(var n in e)O(t,n,{get:e[n],enumerable:!0})},gt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ut(e))!pt.call(t,s)&&s!==n&&O(t,s,{get:()=>e[s],enumerable:!(r=ft(e,s))||r.enumerable});return t};var yt=t=>gt(O({},"__esModule",{value:!0}),t);var b=(t,e,n)=>ht(t,typeof e!="symbol"?e+"":e,n);var zt={};mt(zt,{$:()=>T,$$:()=>A,$create:()=>M,$reactive:()=>_,Component79:()=>C,parseComponent:()=>qt,renderComponent:()=>Mt});module.exports=yt(zt);function T(t,e){return typeof t=="string"?document.querySelector(t):t.querySelector(e)}function A(t,e){return Array.from(typeof t=="string"?document.querySelectorAll(t):t.querySelectorAll(e))}var M=(t,e={})=>{let n=document.createElement(t);for(let[r,s]of Object.entries(e))if(r==="className")n.className=Array.isArray(s)?s.join(" "):s;else if(r==="textContent")n.textContent=s;else if(r==="children")for(let i of s)n.appendChild(i);else n.setAttribute(r,s);return n},Et=new Set(["a","b","i","em","strong","p","br","ul","ol","li","blockquote","code","pre","span","div","h1","h2","h3","h4","h5","h6","img"]),G={a:new Set(["href","title"]),img:new Set(["src","alt"]),"*":new Set(["class"])},St=new Set(["http:","https:","mailto:"]);function bt(t){try{let e=new URL(t,"https://example.com");return St.has(e.protocol)}catch{return!1}}function K(t,e){for(let n of Array.from(t.childNodes))if(n.nodeType===Node.ELEMENT_NODE){let r=$t(n);r&&e.appendChild(r)}else n.nodeType===Node.TEXT_NODE&&e.appendChild(n.cloneNode())}function $t(t){let e=t.tagName.toLowerCase();if(!Et.has(e))return null;let n=document.createElement(e);for(let r of Array.from(t.attributes)){let s=r.name.toLowerCase(),i=G[e]?.has(s),o=G["*"]?.has(s);!i&&!o||(s==="href"||s==="src")&&!bt(r.value)||n.setAttribute(s,r.value)}return e==="a"&&n.setAttribute("rel","noopener noreferrer"),K(t,n),n}function V(t){let e=new DOMParser().parseFromString(t,"text/html"),n=document.createElement("div");return K(e.body,n),n.innerHTML}var wt=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),P=t=>{if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},Z=(t,e,n)=>{Object.entries(t).forEach(([r,s])=>{let i=e?`${e}.${r}`:r;s&&typeof s=="object"&&P(s)?Z(s,i,n):n(i,s)})},xt=(t,e)=>t===e||t.startsWith(`${e}.`)||e.startsWith(`${t}.`),v=[],X=t=>{v.push(new Set);try{return t()}finally{v.pop()}},_=t=>{let e=new Map,n=new Set,r=new Set,s=new WeakSet,i=(a,d,p=!1)=>{e.get(a)?.forEach(m=>m(d,a)),n.forEach(m=>m(a,d)),r.forEach(m=>{(p||Array.from(m.deps).some(g=>xt(g,a)))&&m.run()})},o=(a,d)=>{if(s.has(a))return a;Object.entries(a).forEach(([m,g])=>{g&&typeof g=="object"&&P(g)&&(a[m]=o(g,d?`${d}.${m}`:m))});let p=new Proxy(a,{get(m,g,u){return typeof g=="string"&&v[v.length-1]?.add(d?`${d}.${g}`:g),Reflect.get(m,g,u)},set(m,g,u,y){if(y!==p&&!Object.prototype.hasOwnProperty.call(m,g))return Reflect.set(m,g,u,y);let S=d?`${d}.${g}`:g;u&&typeof u=="object"&&P(u)&&(u=o(u,S));let x=!Object.prototype.hasOwnProperty.call(m,g);return m[g]=u,i(S,u,x),!0}});return s.add(p),p},c=o(t,""),f=(a,d,{immediate:p=!1}={})=>(e.has(a)||e.set(a,new Set),e.get(a).add(d),p&&d(wt(c,a),a),()=>e.get(a)?.delete(d)),h=(a,{immediate:d=!1}={})=>(n.add(a),d&&Z(c,"",(p,m)=>a(p,m)),()=>n.delete(a)),l=a=>{let d={deps:new Set,run:()=>{let p=new Set;v.push(p);try{a()}finally{v.pop(),d.deps=p}}};return r.add(d),d.run(),()=>{r.delete(d)}};return Object.defineProperty(c,"$on",{value:f,enumerable:!1}),Object.defineProperty(c,"$onAny",{value:h,enumerable:!1}),Object.defineProperty(c,"$effect",{value:l,enumerable:!1}),c},N=t=>{let e=[];return{effect:n=>{e.push(t.$effect(n))},onDispose:n=>{e.push(n)},dispose:()=>{e.splice(0).forEach(n=>n())}}};var J=/(?:let|var|const)\s+([A-Za-z_$][\w$]*)/y,Y=/\$:\s*/y,D=/import(?=\s*\()/y,Q=/\$:\s*([A-Za-z_$][\w$]*)\s*=(?!=)/y,k=(t,e)=>{let n=t[e],r=e+1;for(;r<t.length;){if(t[r]==="\\"){r+=2;continue}if(t[r]===n)return r+1;r++}return t.length},F=(t,e)=>{let n=t.indexOf(`
|
|
2
2
|
`,e);return n===-1?t.length:n},B=(t,e)=>{let n=t.indexOf("*/",e+2);return n===-1?t.length:n+2},Rt=(t,e)=>{let n=0,r=e;for(;r<t.length;){let s=t[r];if(s==="'"||s==='"'||s==="`"){r=k(t,r);continue}if(s==="/"&&t[r+1]==="/"){r=F(t,r);continue}if(s==="/"&&t[r+1]==="*"){r=B(t,r);continue}if("([{".includes(s))n++;else if(")]}".includes(s))n--;else if(n<=0&&(s===`
|
|
3
3
|
`||s===";"))return r;r++}return t.length},nt=t=>{let e=[],n="",r=0,s=0,i=!0;for(;r<t.length;){let o=t[r],c=t[r+1];if(o==="'"||o==='"'||o==="`"){let f=k(t,r);n+=t.slice(r,f),r=f,i=!1;continue}if(o==="/"&&(c==="/"||c==="*")){let f=c==="/"?F(t,r):B(t,r);n+=t.slice(r,f),r=f;continue}if(o==="i"&&(r===0||!/[\w$.]/.test(t[r-1]))&&(D.lastIndex=r,D.test(t))){n+="$__import",r+=6,i=!1;continue}if(s===0&&i){J.lastIndex=r;let f=J.exec(t);if(f){e.push(f[1]),n+=f[1],r+=f[0].length,i=!1;continue}Y.lastIndex=r;let h=Y.exec(t);if(h){Q.lastIndex=r;let l=Q.exec(t);l&&e.push(l[1]);let a=r+h[0].length,d=Rt(t,a);n+=`$__effect(() => { ${t.slice(a,d)} });`,r=d;continue}}"([{".includes(o)?s++:")]}".includes(o)&&(s=Math.max(0,s-1)),o===`
|
|
4
4
|
`||o===";"||o==="}"?i=!0:/\s/.test(o)||(i=!1),n+=o,r++}return{vars:e,code:n}},tt=/export\s+default(?![\w$])/y,et=/import\s*(?:([\w$\s,{}*]+?)\s*from\s*)?(["'])([^"'\n]+)\2/y,Ct=t=>{let e=[],n=0,r=0;for(let s=0;s<=t.length;s++){let i=t[s];if(i==="{")n++;else if(i==="}")n--;else if(s===t.length||i===","&&n===0){let o=t.slice(r,s).trim();o&&e.push(o),r=s+1}}return e},Tt=(t,e,n)=>{let r=`await $__import(${JSON.stringify(e)})`;if(t===void 0)return r;let s=Ct(t),i=[],o=r;if(s.length>1){let c=`$__mod${n}`;i.push(`${c} = ${r}`),o=c}for(let c of s)c.startsWith("{")?i.push(`${c.replace(/\s+as\s+/g,": ")} = ${o}`):c.startsWith("*")?i.push(`${c.replace(/^\*\s*as\s+/,"")} = ${o}`):i.push(`${c} = $__default(${o})`);return`const ${i.join(", ")}`},rt=t=>{let e="",n=0,r=0,s=!0,i=!1,o=0;for(;n<t.length;){let c=t[n],f=t[n+1],h=n===0||!/[\w$.]/.test(t[n-1]);if(c==="'"||c==='"'||c==="`"){let l=k(t,n);e+=t.slice(n,l),n=l,s=!1;continue}if(c==="/"&&(f==="/"||f==="*")){let l=f==="/"?F(t,n):B(t,n);e+=t.slice(n,l),n=l;continue}if(c==="i"&&h){if(D.lastIndex=n,D.test(t)){e+="$__import",n+=6,s=!1;continue}if(r===0&&s){et.lastIndex=n;let l=et.exec(t);if(l){e+=Tt(l[1],l[3],o++),n+=l[0].length,s=!1;continue}}}if(c==="e"&&h&&r===0&&s){tt.lastIndex=n;let l=tt.exec(t);if(l){i=!0,e+="$__exports.default =",n+=l[0].length,s=!1;continue}}"([{".includes(c)?r++:")]}".includes(c)&&(r=Math.max(0,r-1)),c===`
|
|
5
|
-
`||c===";"||c==="}"?s=!0:/\s/.test(c)||(s=!1),e+=c,n++}return i?e:null};var ct=t=>Object.fromEntries(Array.from(t.attributes).map(e=>[e.name,e.value])),at=t=>({tag:t.tagName.toLowerCase(),attrs:ct(t),children:Array.from(t.childNodes).flatMap(e=>{if(e.nodeType===Node.TEXT_NODE){let n=e.textContent?.trim()??"";return n?[n]:[]}return e.nodeType===Node.ELEMENT_NODE?[at(e)]:[]})}),$=(t,e,n)=>{try{return new Function("$scope",...Object.keys(n??{}),`with ($scope) { return (${t}); }`)(e,...Object.values(n??{}))}catch{return}},vt=(t,e)=>t.replace(/{{\s*(.+?)\s*}}/g,(n,r)=>$(r,e)??""),lt=new Set([":attrs",":if",":elseif",":else",":each",":key",":with",":text",":html"]),Nt=/^\s*(\w+)\s+in\s+(.+)$/,Lt=(t,e,n,r)=>{let[s,...i]=e.slice(1).split("."),o=new Set(i);t.addEventListener(s,c=>{if(o.has("self")&&c.target!==t)return;o.has("prevent")&&c.preventDefault(),o.has("stop")&&c.stopPropagation();let f=$(n,r,{$event:c});typeof f=="function"&&f.call(t,c)},{once:o.has("once"),capture:o.has("capture")})},st=t=>t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()),ot=(t,e)=>{let n=e.replace(/-/g,"").toLowerCase();for(let r=t;r&&r!==Object.prototype;r=Object.getPrototypeOf(r))for(let s of Object.keys(r))if(/^[A-Z]/.test(s)&&s.replace(/-/g,"").toLowerCase()===n)return s;return null},it=(t,e,n,r)=>{let s=document.createComment(t),i=document.createDocumentFragment();i.appendChild(s);let o={};Object.entries(e.attrs).forEach(([l,a])=>{if(!(lt.has(l)||l.startsWith("@")))if(l.startsWith(":")){let d=st(l.slice(1));o[d]=a||d}else o[st(l)]=JSON.stringify(a)});let c=null,f=null,h=null;return r.effect(()=>{let l=$(t,n),a=l instanceof C?l:null;if(a===f||(h?.dispose(),h=null,c?.destroy(),c=null,f=a,!a))return;let d=new C({template:a.template,scripts:a.scripts,styles:a.styles,modules:a.modules}),
|
|
5
|
+
`||c===";"||c==="}"?s=!0:/\s/.test(c)||(s=!1),e+=c,n++}return i?e:null};var ct=t=>Object.fromEntries(Array.from(t.attributes).map(e=>[e.name,e.value])),at=t=>({tag:t.tagName.toLowerCase(),attrs:ct(t),children:Array.from(t.childNodes).flatMap(e=>{if(e.nodeType===Node.TEXT_NODE){let n=e.textContent?.trim()??"";return n?[n]:[]}return e.nodeType===Node.ELEMENT_NODE?[at(e)]:[]})}),$=(t,e,n)=>{try{return new Function("$scope",...Object.keys(n??{}),`with ($scope) { return (${t}); }`)(e,...Object.values(n??{}))}catch{return}},vt=(t,e)=>t.replace(/{{\s*(.+?)\s*}}/g,(n,r)=>$(r,e)??""),lt=new Set([":attrs",":if",":elseif",":else",":each",":key",":with",":text",":html"]),Nt=/^\s*(\w+)\s+in\s+(.+)$/,Lt=(t,e,n,r)=>{let[s,...i]=e.slice(1).split("."),o=new Set(i);t.addEventListener(s,c=>{if(o.has("self")&&c.target!==t)return;o.has("prevent")&&c.preventDefault(),o.has("stop")&&c.stopPropagation();let f=$(n,r,{$event:c});typeof f=="function"&&f.call(t,c)},{once:o.has("once"),capture:o.has("capture")})},st=t=>t.replace(/-(\w)/g,(e,n)=>n.toUpperCase()),ot=(t,e)=>{let n=e.replace(/-/g,"").toLowerCase();for(let r=t;r&&r!==Object.prototype;r=Object.getPrototypeOf(r))for(let s of Object.keys(r))if(/^[A-Z]/.test(s)&&s.replace(/-/g,"").toLowerCase()===n)return s;return null},it=(t,e,n,r)=>{let s=document.createComment(t),i=document.createDocumentFragment();i.appendChild(s);let o={};Object.entries(e.attrs).forEach(([l,a])=>{if(!(lt.has(l)||l.startsWith("@")))if(l.startsWith(":")){let d=st(l.slice(1));o[d]=a||d}else o[st(l)]=JSON.stringify(a)});let c=null,f=null,h=null;return r.effect(()=>{let l=$(t,n),a=l instanceof C?l:null;if(a===f||(h?.dispose(),h=null,c?.destroy(),c=null,f=a,!a))return;let d=new C({template:a.template,scripts:a.scripts,styles:a.styles,modules:a.modules}),p=X(()=>Object.fromEntries(Object.entries(o).map(([u,y])=>[u,$(y,n)]))),m=document.createDocumentFragment();d.render(p).mount(m),s.parentNode.insertBefore(m,s.nextSibling);let g=N(n);Object.entries(o).forEach(([u,y])=>{g.effect(()=>{d.data[u]=$(y,n)})}),h=g,c=d}),r.onDispose(()=>{h?.dispose(),c?.destroy()}),i},_t=(t,e)=>{let n=()=>{let r=$(t,e);return r!==null&&typeof r=="object"?r:null};return new Proxy(e,{has(r,s){let i=n();return i!==null&&Reflect.has(i,s)||Reflect.has(r,s)},get(r,s){let i=n();return i!==null&&Reflect.has(i,s)?i[s]:Reflect.get(r,s)},set(r,s,i){let o=n();return o!==null&&Reflect.has(o,s)?(o[s]=i,!0):Reflect.set(r,s,i)}})},W=(t,e,n)=>{let r=t.attrs[":with"],s=r!==void 0?_t(r,e):e,i=ot(s,t.tag);if(i)return it(i,t,s,n);let o=document.createElement(t.tag);if(o instanceof HTMLUnknownElement||t.tag.includes("-")){let l=!1;n.effect(()=>{if(l)return;let a=ot(s,t.tag);a&&(l=!0,o.replaceWith(it(a,t,s,n)))})}Object.entries(t.attrs).forEach(([l,a])=>{l.startsWith("@")?Lt(o,l,a,s):lt.has(l)||o.setAttribute(l,a)});let c=t.attrs[":attrs"];if(c!==void 0){let l=[];n.effect(()=>{l.forEach(d=>o.removeAttribute(d));let a=$(c,s);l=a&&typeof a=="object"?Object.keys(a):[],l.forEach(d=>{let p=a[d];p!=null&&p!==!1&&o.setAttribute(d,String(p))})})}let f=t.attrs[":text"],h=t.attrs[":html"];return f!==void 0?n.effect(()=>{o.textContent=String($(f,s)??"")}):h!==void 0?n.effect(()=>{o.innerHTML=V(String($(h,s)??""))}):o.appendChild(U(t.children,s,n)),o},Ot=(t,e,n)=>{let r=document.createComment("if"),s=document.createDocumentFragment();s.appendChild(r);let i=null,o=null,c=null;return n.effect(()=>{let f=t.find(h=>h.expr===void 0||$(h.expr,e))??null;f!==o&&(c?.dispose(),i&&i.parentNode?.removeChild(i),i=null,o=f,f&&(c=N(e),i=W(f.node,e,c),r.parentNode.insertBefore(i,r.nextSibling)))}),s},I=(t,e,n)=>{Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})},At=(t,e,n)=>{let r=t.attrs[":each"].match(Nt);if(!r)return document.createComment(`invalid :each expression "${t.attrs[":each"]}"`);let[,s,i]=r,o=t.attrs[":key"],{[":each"]:c,[":key"]:f,...h}=t.attrs,l={...t,attrs:h},a=document.createComment("each"),d=document.createDocumentFragment();d.appendChild(a);let p=[];return n.effect(()=>{let m=$(i,e),g=Array.isArray(m)?m:[],u=new Map(p.map(E=>[E.key,E])),y=g.map((E,L)=>{let w=Object.create(e);I(w,s,E),I(w,"$index",L);let q=o!==void 0?$(o,w):L,R=u.get(q);if(R&&Object.is(R.item,E))return I(R.scope,"$index",L),R;R?.fx.dispose(),R?.node.parentNode?.removeChild(R.node);let z=N(e);return{key:q,item:E,scope:w,fx:z,node:W(l,w,z)}}),S=new Set(y.map(E=>E.key));p.forEach(E=>{S.has(E.key)||(E.fx.dispose(),E.node.parentNode?.removeChild(E.node))});let x=a;y.forEach(E=>{x.nextSibling!==E.node&&a.parentNode.insertBefore(E.node,x.nextSibling),x=E.node}),p=y}),d},U=(t,e,n)=>{let r=document.createDocumentFragment(),s=0;for(;s<t.length;){let i=t[s];if(typeof i=="string"){let o=document.createTextNode("");n.effect(()=>{o.textContent=vt(i,e)}),r.appendChild(o),s++;continue}if(":each"in i.attrs){r.appendChild(At(i,e,n)),s++;continue}if(":if"in i.attrs){let o=[{expr:i.attrs[":if"],node:i}];for(s++;s<t.length&&typeof t[s]!="string"&&":elseif"in t[s].attrs;){let c=t[s];o.push({expr:c.attrs[":elseif"],node:c}),s++}s<t.length&&typeof t[s]!="string"&&":else"in t[s].attrs&&(o.push({node:t[s]}),s++),r.appendChild(Ot(o,e,n));continue}r.appendChild(W(i,e,n)),s++}return r},Mt=(t,e)=>U(t.template,e,N(e)),Dt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),jt=/<([A-Za-z][\w-]*)((?:"[^"]*"|'[^']*'|[^>"'])*?)\/>/g,Pt=/(<script[\s\S]*?<\/script\s*>|<style[\s\S]*?<\/style\s*>)/gi,kt=t=>t.split(Pt).map((e,n)=>n%2===1?e:e.replace(jt,(r,s,i)=>Dt.has(s.toLowerCase())?r:`<${s}${i}></${s}>`)).join(""),Ft=t=>{let n=new DOMParser().parseFromString(`<template>${kt(t)}</template>`,"text/html").querySelector("template"),r=[],s=[],i=[];return Array.from(n.content.children).forEach(o=>{let c={attrs:ct(o),content:o.textContent??""};o.tagName==="SCRIPT"?r.push(c):o.tagName==="STYLE"?s.push(c):i.push(at(o))}),{template:i,scripts:r,styles:s}},H=t=>/\.html?([?#]|$)/.test(t)?C.fetch(t):import(t),j=new Map,Bt=t=>{let e=j.get(t);if(!e){let n=document.createElement("style");n.textContent=t,document.head.appendChild(n),e={el:n,count:0},j.set(t,e)}e.count++},It=t=>{let e=j.get(t);e&&--e.count<=0&&(e.el.remove(),j.delete(t))},dt={$:T,$$:A,$create:M,$reactive:_},Wt=(t,e,n,r={},s=H)=>{let i={...dt,...r},o=new Proxy(e,{has:(f,h)=>h!=="$__effect"&&h!=="$__import"&&(Reflect.has(f,h)||!(h in globalThis)&&!(h in i))});new Function("$scope","$__effect","$__import",...Object.keys(i),`return (async () => { with ($scope) { ${t} } })()`)(o,n,s,...Object.values(i)).catch(f=>console.error("jq79: error in :setup script",f))},Ut=t=>t&&t.default!==void 0?t.default:t,Ht=(t,e,n,r={},s=H)=>{let i={...dt,...r},o={},c=new Function("$__exports","$__default","$__import",...Object.keys(i),`return (async () => { "use strict";
|
|
6
6
|
${t}
|
|
7
|
-
;$__exports.done = true })()`)(o,Ut,s,...Object.values(i)),f=a=>console.error("jq79: error in factory script",a),h=!1,l=()=>{if(h)return;h=!0;let a=o.default;if(typeof a!="function")return;let d=p=>{p&&typeof p=="object"&&Object.assign(e,p)}
|
|
8
|
-
${S}`:S;Ht(w,r,s.effect,y,
|
|
9
|
-
${E}`:E;Wt(L,r,s.effect,y,
|
|
7
|
+
;$__exports.done = true })()`)(o,Ut,s,...Object.values(i)),f=a=>console.error("jq79: error in factory script",a),h=!1,l=()=>{if(h)return;h=!0;let a=o.default;if(typeof a!="function")return;let d=p=>{p&&typeof p=="object"&&Object.assign(e,p)};try{let p=a({$data:e,$effect:n,...r});p instanceof Promise?p.then(d).catch(f):d(p)}catch(p){f(p)}};c.then(l,f),o.done&&l()},C=class t{constructor(e,n={}){b(this,"template");b(this,"scripts");b(this,"styles");b(this,"modules");b(this,"data",null);b(this,"fx",null);b(this,"content",null);b(this,"startMarker",null);b(this,"endMarker",null);b(this,"styleEls",[]);b(this,"ownsSharedStyles",!1);b(this,"useShadow",!1);b(this,"mountRoot",null);b(this,"resolveMounted",null);b(this,"emitListeners",new Map);let r=typeof e=="string"?Ft(e):e;this.template=r.template,this.scripts=r.scripts,this.styles=r.styles,this.modules=n.modules??(typeof e=="string"?void 0:e.modules)}static async fetch(e){let n=await fetch(e);if(!n.ok)throw new Error(`failed to fetch component from ${e}: ${n.status}`);return new t(await n.text())}on(e,n){return this.emitListeners.has(e)||this.emitListeners.set(e,new Set),this.emitListeners.get(e).add(n),this}off(e,n){return this.emitListeners.get(e)?.delete(n),this}render(e={}){return this.renderWith(e,!1)}renderShadow(e={}){return this.renderWith(e,!0)}renderWith(e,n){this.destroy();let r=_({...e}),s=N(r);this.data=r,this.fx=s,this.useShadow=n,this.startMarker=document.createComment("jq79"),this.endMarker=document.createComment("/jq79");let i=this.startMarker,o=(u,y)=>{let S=new CustomEvent(u,{detail:y,bubbles:!0,composed:!0}),x=i.dispatchEvent(S);return i===this.startMarker&&this.emitListeners.get(u)?.forEach(E=>E(S,y)),x},c,f=new Promise(u=>{c=u});this.resolveMounted=c;let h=()=>f,l=this.endMarker,a=u=>{let y=[];for(let S=i.nextSibling;S&&S!==l;S=S.nextSibling)S instanceof Element&&(S.matches(u)&&y.push(S),y.push(...Array.from(S.querySelectorAll(u))));return y},d=u=>a(u)[0]??null,p=this.modules,m=u=>p&&u in p?Promise.resolve(p[u]):H(u);this.scripts.forEach(u=>{let y={$emit:o,$mounted:h,$self:d,$$self:a},S=rt(u.content);if(S!==null){let w=":mounted"in u.attrs?`await $mounted();
|
|
8
|
+
${S}`:S;Ht(w,r,s.effect,y,m);return}let{vars:x,code:E}=nt(u.content);x.forEach(w=>{w in r||(r[w]=void 0)});let L=":mounted"in u.attrs?`await $mounted();
|
|
9
|
+
${E}`:E;Wt(L,r,s.effect,y,m)});let g=document.createDocumentFragment();return g.append(this.startMarker,U(this.template,r,s),this.endMarker),this.content=g,n?this.styleEls=this.styles.map(u=>{let y=document.createElement("style");return y.textContent=u.content,y}):(this.styles.forEach(u=>Bt(u.content)),this.ownsSharedStyles=!0),this}mount(e,n){let r=typeof e=="string"?T(e):e;if(!r)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0)&&this.renderWith(n??{},this.useShadow),this.attach(r)}mountShadow(e,n){let r=typeof e=="string"?T(e):e;if(!r)throw new Error(`mount target not found: ${e}`);return(!this.content||n!==void 0||!this.useShadow)&&this.renderWith(n??{},!0),this.attach(r)}attach(e){this.mountRoot&&this.detach();let n=this.useShadow&&e instanceof Element?e.shadowRoot??e.attachShadow({mode:"open"}):e;return this.useShadow&&this.styleEls.forEach(r=>n.appendChild(r)),n.appendChild(this.content),this.mountRoot=n,this.resolveMounted?.(),this}detach(){if(!this.mountRoot||!this.content||!this.startMarker||!this.endMarker)return this;let e=this.startMarker;for(;e;){let n=e.nextSibling;if(this.content.appendChild(e),e===this.endMarker)break;e=n}return this.mountRoot=null,this}destroy(){return this.detach(),this.fx?.dispose(),this.fx=null,this.styleEls.forEach(e=>e.parentNode?.removeChild(e)),this.styleEls=[],this.ownsSharedStyles&&(this.styles.forEach(e=>It(e.content)),this.ownsSharedStyles=!1),this.content=null,this.startMarker=null,this.endMarker=null,this.data=null,this.resolveMounted=null,this}},qt=t=>new C(t);0&&(module.exports={$,$$,$create,$reactive,Component79,parseComponent,renderComponent});
|
|
10
10
|
//# sourceMappingURL=jq79.cjs.map
|