codex 1.4.0a1__py3-none-any.whl → 1.4.1__py3-none-any.whl
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.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/config_default.yaml +12 -4
- codex/db_functions.py +4 -2
- codex/integrity.py +17 -6
- codex/librarian/covers/create.py +6 -8
- codex/librarian/importer/aggregate_metadata.py +75 -41
- codex/librarian/importer/clean_metadata.py +30 -7
- codex/librarian/importer/create_fks.py +154 -55
- codex/librarian/importer/deleted.py +11 -2
- codex/librarian/importer/failed_imports.py +41 -5
- codex/librarian/importer/importerd.py +34 -11
- codex/librarian/importer/link_comics.py +54 -31
- codex/librarian/importer/moved.py +55 -11
- codex/librarian/importer/query_fks.py +210 -48
- codex/librarian/importer/tasks.py +7 -7
- codex/librarian/janitor/cleanup.py +17 -5
- codex/librarian/librariand.py +10 -0
- codex/librarian/watchdog/events.py +11 -14
- codex/librarian/watchdog/observers.py +5 -1
- codex/logger/loggerd.py +7 -3
- codex/logger/logging.py +1 -1
- codex/migrations/0024_comic_gtin_comic_story_arc_number.py +24 -0
- codex/migrations/0025_add_story_arc_number.py +83 -0
- codex/models.py +21 -11
- codex/search/backend.py +1 -1
- codex/search/indexes.py +1 -1
- codex/serializers/browser.py +1 -0
- codex/serializers/metadata.py +5 -1
- codex/serializers/models.py +16 -1
- codex/serializers/opds/v1.py +1 -0
- codex/serializers/opds/v2.py +5 -2
- codex/serializers/reader.py +55 -16
- codex/settings/settings.py +1 -1
- codex/static_root/assets/admin-12749881.ef0f50bac290.js +41 -0
- codex/static_root/assets/admin-12749881.ef0f50bac290.js.br +0 -0
- codex/static_root/assets/admin-12749881.ef0f50bac290.js.gz +0 -0
- codex/static_root/assets/admin-12749881.js +41 -0
- codex/static_root/assets/admin-12749881.js.br +0 -0
- codex/static_root/assets/admin-12749881.js.gz +0 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css +1 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css.br +0 -0
- codex/static_root/assets/admin-beda768d.a614eee46307.css.gz +0 -0
- codex/static_root/assets/admin-beda768d.css +1 -0
- codex/static_root/assets/admin-beda768d.css.br +0 -0
- codex/static_root/assets/admin-beda768d.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css +1 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.3f84583b435b.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css +1 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css.br +0 -0
- codex/static_root/assets/admin-drawer-panel-41c225cc.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js +1 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.089d70878270.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js +1 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-522f1e6c.js.gz +0 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css +1 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css.br +0 -0
- codex/static_root/assets/browser-7f7d7134.0fe3749b0f2f.css.gz +0 -0
- codex/static_root/assets/browser-7f7d7134.css +1 -0
- codex/static_root/assets/browser-7f7d7134.css.br +0 -0
- codex/static_root/assets/browser-7f7d7134.css.gz +0 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js +1 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js.br +0 -0
- codex/static_root/assets/browser-af622672.d51aca96d64d.js.gz +0 -0
- codex/static_root/assets/browser-af622672.js +1 -0
- codex/static_root/assets/browser-af622672.js.br +0 -0
- codex/static_root/assets/browser-af622672.js.gz +0 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js +1 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js.br +0 -0
- codex/static_root/assets/http-error-5e17b794.77ceeb2d4641.js.gz +0 -0
- codex/static_root/assets/http-error-5e17b794.js +1 -0
- codex/static_root/assets/http-error-5e17b794.js.br +0 -0
- codex/static_root/assets/http-error-5e17b794.js.gz +0 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js +1 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js.br +0 -0
- codex/static_root/assets/main-9e76a4c3.6844a407d14c.js.gz +0 -0
- codex/static_root/assets/main-9e76a4c3.js +1 -0
- codex/static_root/assets/main-9e76a4c3.js.br +0 -0
- codex/static_root/assets/main-9e76a4c3.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js +1 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js.br +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.8418785c0453.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js +1 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js.br +0 -0
- codex/static_root/assets/metadata-dialog-62c29ce0.js.gz +0 -0
- codex/static_root/assets/{metadata-dialog-785c4cfc.694a251cda37.css → metadata-dialog-cb306ffd.cc304996d7bb.css} +1 -1
- codex/static_root/assets/metadata-dialog-cb306ffd.cc304996d7bb.css.br +0 -0
- codex/static_root/assets/metadata-dialog-cb306ffd.cc304996d7bb.css.gz +0 -0
- codex/static_root/assets/{metadata-dialog-785c4cfc.css → metadata-dialog-cb306ffd.css} +1 -1
- codex/static_root/assets/metadata-dialog-cb306ffd.css.br +0 -0
- codex/static_root/assets/metadata-dialog-cb306ffd.css.gz +0 -0
- codex/static_root/assets/{page-pdf-c603e996.ab2d147c9ae1.js → page-pdf-157ba97e.613d7c2beb77.js} +61 -51
- codex/static_root/assets/page-pdf-157ba97e.613d7c2beb77.js.br +0 -0
- codex/static_root/assets/page-pdf-157ba97e.613d7c2beb77.js.gz +0 -0
- codex/static_root/assets/{page-pdf-c603e996.js → page-pdf-157ba97e.js} +61 -51
- codex/static_root/assets/page-pdf-157ba97e.js.br +0 -0
- codex/static_root/assets/page-pdf-157ba97e.js.gz +0 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js +1 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js.br +0 -0
- codex/static_root/assets/reader-36266549.0b2cf1291f27.js.gz +0 -0
- codex/static_root/assets/reader-36266549.js +1 -0
- codex/static_root/assets/reader-36266549.js.br +0 -0
- codex/static_root/assets/reader-36266549.js.gz +0 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css +1 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css.br +0 -0
- codex/static_root/assets/reader-7f004141.506eecc6954b.css.gz +0 -0
- codex/static_root/assets/reader-7f004141.css +1 -0
- codex/static_root/assets/reader-7f004141.css.br +0 -0
- codex/static_root/assets/reader-7f004141.css.gz +0 -0
- codex/static_root/js/choices.8c58714cf5b2.json +1 -0
- codex/static_root/js/choices.8c58714cf5b2.json.br +5 -0
- codex/static_root/js/choices.8c58714cf5b2.json.gz +0 -0
- codex/static_root/js/choices.json +1 -1
- codex/static_root/js/choices.json.br +0 -0
- codex/static_root/js/choices.json.gz +0 -0
- codex/static_root/{manifest.c0e270b2e6b6.json → manifest.d2f93a519ada.json} +32 -32
- codex/static_root/manifest.d2f93a519ada.json.br +0 -0
- codex/static_root/manifest.d2f93a519ada.json.gz +0 -0
- codex/static_root/manifest.json +32 -32
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/templates/headers-script-globals.html +1 -1
- codex/templates/{opds → opds_v1}/index.xml +3 -1
- codex/templates/{opds/opensearch.xml → opds_v1/opensearch_v1.xml} +1 -1
- codex/templates/search/indexes/codex/comic_text.txt +2 -2
- codex/urls/converters.py +1 -1
- codex/urls/opds/authentication.py +1 -1
- codex/urls/opds/root.py +8 -12
- codex/urls/opds/v1.py +12 -5
- codex/urls/opds/v2.py +2 -2
- codex/views/bookmark.py +2 -2
- codex/views/browser/base.py +23 -7
- codex/views/browser/browser.py +51 -41
- codex/views/browser/browser_annotations.py +159 -50
- codex/views/browser/browser_order_by.py +50 -106
- codex/views/browser/choices.py +75 -38
- codex/views/browser/filters/bookmark.py +6 -9
- codex/views/browser/filters/field.py +9 -6
- codex/views/browser/filters/group.py +12 -27
- codex/views/browser/filters/search.py +5 -10
- codex/views/browser/metadata.py +44 -19
- codex/views/download.py +1 -1
- codex/views/frontend.py +2 -3
- codex/views/mixins.py +15 -2
- codex/views/opds/const.py +8 -1
- codex/views/opds/util.py +37 -1
- codex/views/opds/v1/__init__.py +1 -1
- codex/views/opds/v1/data.py +21 -0
- codex/views/opds/v1/entry/__init__.py +1 -0
- codex/views/opds/v1/entry/data.py +23 -0
- codex/views/opds/v1/entry/entry.py +151 -0
- codex/views/opds/v1/entry/links.py +135 -0
- codex/views/opds/v1/facets.py +190 -0
- codex/views/opds/v1/feed.py +199 -0
- codex/views/opds/v1/links.py +198 -0
- codex/views/opds/{opensearch.py → v1/opensearch_v1.py} +3 -3
- codex/views/opds/v2/__init__.py +1 -1
- codex/views/opds/v2/const.py +10 -2
- codex/views/opds/v2/feed.py +82 -21
- codex/views/opds/v2/links.py +1 -1
- codex/views/opds/v2/publications.py +1 -1
- codex/views/opds/v2/top_links.py +1 -1
- codex/views/reader/page.py +6 -7
- codex/views/reader/reader.py +191 -61
- codex/views/session.py +2 -1
- {codex-1.4.0a1.dist-info → codex-1.4.1.dist-info}/METADATA +10 -41
- {codex-1.4.0a1.dist-info → codex-1.4.1.dist-info}/RECORD +172 -170
- codex/librarian/importer/db_ops.py +0 -251
- codex/pdf.py +0 -115
- codex/static_root/assets/admin-75c007ce.199fccf24c8d.js +0 -48
- codex/static_root/assets/admin-75c007ce.199fccf24c8d.js.br +0 -0
- codex/static_root/assets/admin-75c007ce.199fccf24c8d.js.gz +0 -0
- codex/static_root/assets/admin-75c007ce.js +0 -48
- codex/static_root/assets/admin-75c007ce.js.br +0 -0
- codex/static_root/assets/admin-75c007ce.js.gz +0 -0
- codex/static_root/assets/admin-848d48b1.5de8a0c45636.css +0 -1
- codex/static_root/assets/admin-848d48b1.5de8a0c45636.css.br +0 -0
- codex/static_root/assets/admin-848d48b1.5de8a0c45636.css.gz +0 -0
- codex/static_root/assets/admin-848d48b1.css +0 -1
- codex/static_root/assets/admin-848d48b1.css.br +0 -0
- codex/static_root/assets/admin-848d48b1.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-a110c068.edf187333272.js +0 -1
- codex/static_root/assets/admin-drawer-panel-a110c068.edf187333272.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-a110c068.edf187333272.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-a110c068.js +0 -1
- codex/static_root/assets/admin-drawer-panel-a110c068.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-a110c068.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css +0 -1
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css.br +0 -2
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.2c0814fa2a9b.css.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css +0 -1
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css.br +0 -2
- codex/static_root/assets/admin-drawer-panel-cce8c0aa.css.gz +0 -0
- codex/static_root/assets/browser-2c2380fd.8b515af7a743.js +0 -1
- codex/static_root/assets/browser-2c2380fd.8b515af7a743.js.br +0 -0
- codex/static_root/assets/browser-2c2380fd.8b515af7a743.js.gz +0 -0
- codex/static_root/assets/browser-2c2380fd.js +0 -1
- codex/static_root/assets/browser-2c2380fd.js.br +0 -0
- codex/static_root/assets/browser-2c2380fd.js.gz +0 -0
- codex/static_root/assets/browser-7325db61.css +0 -1
- codex/static_root/assets/browser-7325db61.css.br +0 -0
- codex/static_root/assets/browser-7325db61.css.gz +0 -0
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css +0 -1
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css.br +0 -0
- codex/static_root/assets/browser-7325db61.ed2cfbf8e8ee.css.gz +0 -0
- codex/static_root/assets/http-error-402decbe.9ea8de1df13f.js +0 -1
- codex/static_root/assets/http-error-402decbe.9ea8de1df13f.js.br +0 -0
- codex/static_root/assets/http-error-402decbe.9ea8de1df13f.js.gz +0 -0
- codex/static_root/assets/http-error-402decbe.js +0 -1
- codex/static_root/assets/http-error-402decbe.js.br +0 -0
- codex/static_root/assets/http-error-402decbe.js.gz +0 -0
- codex/static_root/assets/main-a7f327e9.6641fe833335.js +0 -1
- codex/static_root/assets/main-a7f327e9.6641fe833335.js.br +0 -0
- codex/static_root/assets/main-a7f327e9.6641fe833335.js.gz +0 -0
- codex/static_root/assets/main-a7f327e9.js +0 -1
- codex/static_root/assets/main-a7f327e9.js.br +0 -0
- codex/static_root/assets/main-a7f327e9.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.694a251cda37.css.br +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.694a251cda37.css.gz +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.css.br +0 -0
- codex/static_root/assets/metadata-dialog-785c4cfc.css.gz +0 -0
- codex/static_root/assets/metadata-dialog-8a0bd8e1.c213b08d582f.js +0 -1
- codex/static_root/assets/metadata-dialog-8a0bd8e1.c213b08d582f.js.br +0 -0
- codex/static_root/assets/metadata-dialog-8a0bd8e1.c213b08d582f.js.gz +0 -0
- codex/static_root/assets/metadata-dialog-8a0bd8e1.js +0 -1
- codex/static_root/assets/metadata-dialog-8a0bd8e1.js.br +0 -0
- codex/static_root/assets/metadata-dialog-8a0bd8e1.js.gz +0 -0
- codex/static_root/assets/page-pdf-c603e996.ab2d147c9ae1.js.br +0 -0
- codex/static_root/assets/page-pdf-c603e996.ab2d147c9ae1.js.gz +0 -0
- codex/static_root/assets/page-pdf-c603e996.js.br +0 -0
- codex/static_root/assets/page-pdf-c603e996.js.gz +0 -0
- codex/static_root/assets/reader-c2965a5f.b011260169f7.js +0 -1
- codex/static_root/assets/reader-c2965a5f.b011260169f7.js.br +0 -0
- codex/static_root/assets/reader-c2965a5f.b011260169f7.js.gz +0 -0
- codex/static_root/assets/reader-c2965a5f.js +0 -1
- codex/static_root/assets/reader-c2965a5f.js.br +0 -0
- codex/static_root/assets/reader-c2965a5f.js.gz +0 -0
- codex/static_root/assets/reader-d8534888.2821de925986.css +0 -1
- codex/static_root/assets/reader-d8534888.2821de925986.css.br +0 -0
- codex/static_root/assets/reader-d8534888.2821de925986.css.gz +0 -0
- codex/static_root/assets/reader-d8534888.css +0 -1
- codex/static_root/assets/reader-d8534888.css.br +0 -0
- codex/static_root/assets/reader-d8534888.css.gz +0 -0
- codex/static_root/js/choices.6bfc2a3d293f.json +0 -1
- codex/static_root/js/choices.6bfc2a3d293f.json.br +0 -0
- codex/static_root/js/choices.6bfc2a3d293f.json.gz +0 -0
- codex/static_root/manifest.c0e270b2e6b6.json.br +0 -0
- codex/static_root/manifest.c0e270b2e6b6.json.gz +0 -0
- codex/urls/opds/opensearch.py +0 -18
- codex/views/opds/v1/browser.py +0 -346
- codex/views/opds/v1/entry.py +0 -278
- codex/views/opds/v1/start.py +0 -28
- codex/views/opds/v1/util.py +0 -162
- codex/views/opds/v2/start.py +0 -28
- {codex-1.4.0a1.dist-info → codex-1.4.1.dist-info}/LICENSE +0 -0
- {codex-1.4.0a1.dist-info → codex-1.4.1.dist-info}/WHEEL +0 -0
- {codex-1.4.0a1.dist-info → codex-1.4.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
function Hu(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const Ok="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Vk=Hu(Ok);function Va(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Bt(r)?Dk(r):Va(r);if(i)for(const o in i)t[o]=i[o]}return t}else{if(Bt(e))return e;if(Rt(e))return e}}const Fk=/;(?![^(]*\))/g,Mk=/:([^]+)/,Bk=/\/\*.*?\*\//gs;function Dk(e){const t={};return e.replace(Bk,"").split(Fk).forEach(n=>{if(n){const r=n.split(Mk);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Cr(e){let t="";if(Bt(e))t=e;else if(Re(e))for(let n=0;n<e.length;n++){const r=Cr(e[n]);r&&(t+=r+" ")}else if(Rt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function dh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Bt(t)&&(e.class=Cr(t)),n&&(e.style=Va(n)),e}const $k="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Hk=Hu($k);function py(e){return!!e||e===""}function Nk(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ns(e[r],t[r]);return n}function Ns(e,t){if(e===t)return!0;let n=lp(e),r=lp(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ba(e),r=ba(t),n||r)return e===t;if(n=Re(e),r=Re(t),n||r)return n&&r?Nk(e,t):!1;if(n=Rt(e),r=Rt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const u=e.hasOwnProperty(l),f=t.hasOwnProperty(l);if(u&&!f||!u&&f||!Ns(e[l],t[l]))return!1}}return String(e)===String(t)}function Nu(e,t){return e.findIndex(n=>Ns(n,t))}const be=e=>Bt(e)?e:e==null?"":Re(e)||Rt(e)&&(e.toString===by||!qe(e.toString))?JSON.stringify(e,yy,2):String(e),yy=(e,t)=>t&&t.__v_isRef?yy(e,t.value):co(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Ti(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!Re(t)&&!_y(t)?String(t):t,xt={},uo=[],wr=()=>{},Uk=()=>!1,zk=/^on[^a-z]/,Fa=e=>zk.test(e),hh=e=>e.startsWith("onUpdate:"),Ut=Object.assign,mh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wk=Object.prototype.hasOwnProperty,ft=(e,t)=>Wk.call(e,t),Re=Array.isArray,co=e=>Eo(e)==="[object Map]",Ti=e=>Eo(e)==="[object Set]",lp=e=>Eo(e)==="[object Date]",Gk=e=>Eo(e)==="[object RegExp]",qe=e=>typeof e=="function",Bt=e=>typeof e=="string",ba=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",vh=e=>Rt(e)&&qe(e.then)&&qe(e.catch),by=Object.prototype.toString,Eo=e=>by.call(e),jk=e=>Eo(e).slice(8,-1),_y=e=>Eo(e)==="[object Object]",gh=e=>Bt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ua=Hu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Uu=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Kk=/-(\w)/g,vn=Uu(e=>e.replace(Kk,(t,n)=>n?n.toUpperCase():"")),qk=/\B([A-Z])/g,ir=Uu(e=>e.replace(qk,"-$1").toLowerCase()),ki=Uu(e=>e.charAt(0).toUpperCase()+e.slice(1)),ca=Uu(e=>e?`on${ki(e)}`:""),go=(e,t)=>!Object.is(e,t),fo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},gu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},pu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yu=e=>{const t=Bt(e)?Number(e):NaN;return isNaN(t)?e:t};let up;const Yk=()=>up||(up=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Hn;class ph{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Hn,!t&&Hn&&(this.index=(Hn.scopes||(Hn.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Hn;try{return Hn=this,t()}finally{Hn=n}}}on(){Hn=this}off(){Hn=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function To(e){return new ph(e)}function wy(e,t=Hn){t&&t.active&&t.effects.push(e)}function yh(){return Hn}function Sn(e){Hn&&Hn.cleanups.push(e)}const bh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Cy=e=>(e.w&Us)>0,Sy=e=>(e.n&Us)>0,Zk=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Us},Xk=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Cy(i)&&!Sy(i)?i.delete(e):t[n++]=i,i.w&=~Us,i.n&=~Us}t.length=n}},bu=new WeakMap;let aa=0,Us=1;const yd=30;let yr;const bi=Symbol(""),bd=Symbol("");class Ma{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,wy(this,r)}run(){if(!this.active)return this.fn();let t=yr,n=Ds;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=yr,yr=this,Ds=!0,Us=1<<++aa,aa<=yd?Zk(this):cp(this),this.fn()}finally{aa<=yd&&Xk(this),Us=1<<--aa,yr=this.parent,Ds=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){yr===this?this.deferStop=!0:this.active&&(cp(this),this.onStop&&this.onStop(),this.active=!1)}}function cp(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Jk(e,t){e.effect&&(e=e.effect.fn);const n=new Ma(e);t&&(Ut(n,t),t.scope&&wy(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function Qk(e){e.effect.stop()}let Ds=!0;const xy=[];function ko(){xy.push(Ds),Ds=!1}function Po(){const e=xy.pop();Ds=e===void 0?!0:e}function Ln(e,t,n){if(Ds&&yr){let r=bu.get(e);r||bu.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=bh()),Ay(i)}}function Ay(e,t){let n=!1;aa<=yd?Sy(e)||(e.n|=Us,n=!Cy(e)):n=!e.has(yr),n&&(e.add(yr),yr.deps.push(e))}function ds(e,t,n,r,i,o){const l=bu.get(e);if(!l)return;let u=[];if(t==="clear")u=[...l.values()];else if(n==="length"&&Re(e)){const f=Number(r);l.forEach((d,h)=>{(h==="length"||h>=f)&&u.push(d)})}else switch(n!==void 0&&u.push(l.get(n)),t){case"add":Re(e)?gh(n)&&u.push(l.get("length")):(u.push(l.get(bi)),co(e)&&u.push(l.get(bd)));break;case"delete":Re(e)||(u.push(l.get(bi)),co(e)&&u.push(l.get(bd)));break;case"set":co(e)&&u.push(l.get(bi));break}if(u.length===1)u[0]&&_d(u[0]);else{const f=[];for(const d of u)d&&f.push(...d);_d(bh(f))}}function _d(e,t){const n=Re(e)?e:[...e];for(const r of n)r.computed&&fp(r);for(const r of n)r.computed||fp(r)}function fp(e,t){(e!==yr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function eP(e,t){var n;return(n=bu.get(e))===null||n===void 0?void 0:n.get(t)}const tP=Hu("__proto__,__v_isRef,__isVue"),Ey=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ba)),nP=zu(),rP=zu(!1,!0),sP=zu(!0),iP=zu(!0,!0),dp=oP();function oP(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ze(this);for(let o=0,l=this.length;o<l;o++)Ln(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(Ze)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ko();const r=Ze(this)[t].apply(this,n);return Po(),r}}),e}function aP(e){const t=Ze(this);return Ln(t,"has",e),t.hasOwnProperty(e)}function zu(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?Oy:Ly:t?Iy:Ry).get(r))return r;const l=Re(r);if(!e){if(l&&ft(dp,i))return Reflect.get(dp,i,o);if(i==="hasOwnProperty")return aP}const u=Reflect.get(r,i,o);return(ba(i)?Ey.has(i):tP(i))||(e||Ln(r,"get",i),t)?u:At(u)?l&&gh(i)?u:u.value:Rt(u)?e?Ro(u):Qt(u):u}}const lP=Ty(),uP=Ty(!0);function Ty(e=!1){return function(n,r,i,o){let l=n[r];if(Si(l)&&At(l)&&!At(i))return!1;if(!e&&(!_a(i)&&!Si(i)&&(l=Ze(l),i=Ze(i)),!Re(n)&&At(l)&&!At(i)))return l.value=i,!0;const u=Re(n)&&gh(r)?Number(r)<n.length:ft(n,r),f=Reflect.set(n,r,i,o);return n===Ze(o)&&(u?go(i,l)&&ds(n,"set",r,i):ds(n,"add",r,i)),f}}function cP(e,t){const n=ft(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&ds(e,"delete",t,void 0),r}function fP(e,t){const n=Reflect.has(e,t);return(!ba(t)||!Ey.has(t))&&Ln(e,"has",t),n}function dP(e){return Ln(e,"iterate",Re(e)?"length":bi),Reflect.ownKeys(e)}const ky={get:nP,set:lP,deleteProperty:cP,has:fP,ownKeys:dP},Py={get:sP,set(e,t){return!0},deleteProperty(e,t){return!0}},hP=Ut({},ky,{get:rP,set:uP}),mP=Ut({},Py,{get:iP}),_h=e=>e,Wu=e=>Reflect.getPrototypeOf(e);function Wl(e,t,n=!1,r=!1){e=e.__v_raw;const i=Ze(e),o=Ze(t);n||(t!==o&&Ln(i,"get",t),Ln(i,"get",o));const{has:l}=Wu(i),u=r?_h:n?Ch:wa;if(l.call(i,t))return u(e.get(t));if(l.call(i,o))return u(e.get(o));e!==i&&e.get(t)}function Gl(e,t=!1){const n=this.__v_raw,r=Ze(n),i=Ze(e);return t||(e!==i&&Ln(r,"has",e),Ln(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function jl(e,t=!1){return e=e.__v_raw,!t&&Ln(Ze(e),"iterate",bi),Reflect.get(e,"size",e)}function hp(e){e=Ze(e);const t=Ze(this);return Wu(t).has.call(t,e)||(t.add(e),ds(t,"add",e,e)),this}function mp(e,t){t=Ze(t);const n=Ze(this),{has:r,get:i}=Wu(n);let o=r.call(n,e);o||(e=Ze(e),o=r.call(n,e));const l=i.call(n,e);return n.set(e,t),o?go(t,l)&&ds(n,"set",e,t):ds(n,"add",e,t),this}function vp(e){const t=Ze(this),{has:n,get:r}=Wu(t);let i=n.call(t,e);i||(e=Ze(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&ds(t,"delete",e,void 0),o}function gp(){const e=Ze(this),t=e.size!==0,n=e.clear();return t&&ds(e,"clear",void 0,void 0),n}function Kl(e,t){return function(r,i){const o=this,l=o.__v_raw,u=Ze(l),f=t?_h:e?Ch:wa;return!e&&Ln(u,"iterate",bi),l.forEach((d,h)=>r.call(i,f(d),f(h),o))}}function ql(e,t,n){return function(...r){const i=this.__v_raw,o=Ze(i),l=co(o),u=e==="entries"||e===Symbol.iterator&&l,f=e==="keys"&&l,d=i[e](...r),h=n?_h:t?Ch:wa;return!t&&Ln(o,"iterate",f?bd:bi),{next(){const{value:m,done:v}=d.next();return v?{value:m,done:v}:{value:u?[h(m[0]),h(m[1])]:h(m),done:v}},[Symbol.iterator](){return this}}}}function Ps(e){return function(...t){return e==="delete"?!1:this}}function vP(){const e={get(o){return Wl(this,o)},get size(){return jl(this)},has:Gl,add:hp,set:mp,delete:vp,clear:gp,forEach:Kl(!1,!1)},t={get(o){return Wl(this,o,!1,!0)},get size(){return jl(this)},has:Gl,add:hp,set:mp,delete:vp,clear:gp,forEach:Kl(!1,!0)},n={get(o){return Wl(this,o,!0)},get size(){return jl(this,!0)},has(o){return Gl.call(this,o,!0)},add:Ps("add"),set:Ps("set"),delete:Ps("delete"),clear:Ps("clear"),forEach:Kl(!0,!1)},r={get(o){return Wl(this,o,!0,!0)},get size(){return jl(this,!0)},has(o){return Gl.call(this,o,!0)},add:Ps("add"),set:Ps("set"),delete:Ps("delete"),clear:Ps("clear"),forEach:Kl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ql(o,!1,!1),n[o]=ql(o,!0,!1),t[o]=ql(o,!1,!0),r[o]=ql(o,!0,!0)}),[e,n,t,r]}const[gP,pP,yP,bP]=vP();function Gu(e,t){const n=t?e?bP:yP:e?pP:gP;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ft(n,i)&&i in r?n:r,i,o)}const _P={get:Gu(!1,!1)},wP={get:Gu(!1,!0)},CP={get:Gu(!0,!1)},SP={get:Gu(!0,!0)},Ry=new WeakMap,Iy=new WeakMap,Ly=new WeakMap,Oy=new WeakMap;function xP(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AP(e){return e.__v_skip||!Object.isExtensible(e)?0:xP(jk(e))}function Qt(e){return Si(e)?e:ju(e,!1,ky,_P,Ry)}function Vy(e){return ju(e,!1,hP,wP,Iy)}function Ro(e){return ju(e,!0,Py,CP,Ly)}function EP(e){return ju(e,!0,mP,SP,Oy)}function ju(e,t,n,r,i){if(!Rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const l=AP(e);if(l===0)return e;const u=new Proxy(e,l===2?r:n);return i.set(e,u),u}function ls(e){return Si(e)?ls(e.__v_raw):!!(e&&e.__v_isReactive)}function Si(e){return!!(e&&e.__v_isReadonly)}function _a(e){return!!(e&&e.__v_isShallow)}function wh(e){return ls(e)||Si(e)}function Ze(e){const t=e&&e.__v_raw;return t?Ze(t):e}function Wn(e){return gu(e,"__v_skip",!0),e}const wa=e=>Rt(e)?Qt(e):e,Ch=e=>Rt(e)?Ro(e):e;function Sh(e){Ds&&yr&&(e=Ze(e),Ay(e.dep||(e.dep=bh())))}function Ku(e,t){e=Ze(e);const n=e.dep;n&&_d(n)}function At(e){return!!(e&&e.__v_isRef===!0)}function J(e){return Fy(e,!1)}function qu(e){return Fy(e,!0)}function Fy(e,t){return At(e)?e:new TP(e,t)}class TP{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ze(t),this._value=n?t:wa(t)}get value(){return Sh(this),this._value}set value(t){const n=this.__v_isShallow||_a(t)||Si(t);t=n?t:Ze(t),go(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:wa(t),Ku(this))}}function kP(e){Ku(e)}function mn(e){return At(e)?e.value:e}const PP={get:(e,t,n)=>mn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return At(i)&&!At(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function xh(e){return ls(e)?e:new Proxy(e,PP)}class RP{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Sh(this),()=>Ku(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function IP(e){return new RP(e)}function Ba(e){const t=Re(e)?new Array(e.length):{};for(const n in e)t[n]=Se(e,n);return t}class LP{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return eP(Ze(this._object),this._key)}}function Se(e,t,n){const r=e[t];return At(r)?r:new LP(e,t,n)}var My;class OP{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[My]=!1,this._dirty=!0,this.effect=new Ma(t,()=>{this._dirty||(this._dirty=!0,Ku(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Ze(this);return Sh(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}My="__v_isReadonly";function VP(e,t,n=!1){let r,i;const o=qe(e);return o?(r=e,i=wr):(r=e.get,i=e.set),new OP(r,i,o||!i,n)}function FP(e,...t){}function MP(e,t){}function us(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Pi(o,t,n)}return i}function zn(e,t,n,r){if(qe(e)){const o=us(e,t,n,r);return o&&vh(o)&&o.catch(l=>{Pi(l,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(zn(e[o],t,n,r));return i}function Pi(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const l=t.proxy,u=n;for(;o;){const d=o.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,l,u)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){us(f,null,10,[e,l,u]);return}}BP(e,n,i,r)}function BP(e,t,n,r=!0){console.error(e)}let Ca=!1,wd=!1;const hn=[];let Mr=0;const ho=[];let ss=null,hi=0;const By=Promise.resolve();let Ah=null;function Yt(e){const t=Ah||By;return e?t.then(this?e.bind(this):e):t}function DP(e){let t=Mr+1,n=hn.length;for(;t<n;){const r=t+n>>>1;Sa(hn[r])<e?t=r+1:n=r}return t}function Yu(e){(!hn.length||!hn.includes(e,Ca&&e.allowRecurse?Mr+1:Mr))&&(e.id==null?hn.push(e):hn.splice(DP(e.id),0,e),Dy())}function Dy(){!Ca&&!wd&&(wd=!0,Ah=By.then($y))}function $P(e){const t=hn.indexOf(e);t>Mr&&hn.splice(t,1)}function Eh(e){Re(e)?ho.push(...e):(!ss||!ss.includes(e,e.allowRecurse?hi+1:hi))&&ho.push(e),Dy()}function pp(e,t=Ca?Mr+1:0){for(;t<hn.length;t++){const n=hn[t];n&&n.pre&&(hn.splice(t,1),t--,n())}}function _u(e){if(ho.length){const t=[...new Set(ho)];if(ho.length=0,ss){ss.push(...t);return}for(ss=t,ss.sort((n,r)=>Sa(n)-Sa(r)),hi=0;hi<ss.length;hi++)ss[hi]();ss=null,hi=0}}const Sa=e=>e.id==null?1/0:e.id,HP=(e,t)=>{const n=Sa(e)-Sa(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function $y(e){wd=!1,Ca=!0,hn.sort(HP);const t=wr;try{for(Mr=0;Mr<hn.length;Mr++){const n=hn[Mr];n&&n.active!==!1&&us(n,null,14)}}finally{Mr=0,hn.length=0,_u(),Ca=!1,Ah=null,(hn.length||ho.length)&&$y()}}let so,Yl=[];function Hy(e,t){var n,r;so=e,so?(so.enabled=!0,Yl.forEach(({event:i,args:o})=>so.emit(i,...o)),Yl=[]):typeof window<"u"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{Hy(o,t)}),setTimeout(()=>{so||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Yl=[])},3e3)):Yl=[]}function NP(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xt;let i=n;const o=t.startsWith("update:"),l=o&&t.slice(7);if(l&&l in r){const h=`${l==="modelValue"?"model":l}Modifiers`,{number:m,trim:v}=r[h]||xt;v&&(i=n.map(p=>Bt(p)?p.trim():p)),m&&(i=n.map(pu))}let u,f=r[u=ca(t)]||r[u=ca(vn(t))];!f&&o&&(f=r[u=ca(ir(t))]),f&&zn(f,e,6,i);const d=r[u+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,zn(d,e,6,i)}}function Ny(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let l={},u=!1;if(!qe(e)){const f=d=>{const h=Ny(d,t,!0);h&&(u=!0,Ut(l,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!u?(Rt(e)&&r.set(e,null),null):(Re(o)?o.forEach(f=>l[f]=null):Ut(l,o),Rt(e)&&r.set(e,l),l)}function Zu(e,t){return!e||!Fa(t)?!1:(t=t.slice(2).replace(/Once$/,""),ft(e,t[0].toLowerCase()+t.slice(1))||ft(e,ir(t))||ft(e,t))}let ln=null,Xu=null;function xa(e){const t=ln;return ln=e,Xu=e&&e.type.__scopeId||null,t}function Ri(e){Xu=e}function Ii(){Xu=null}const UP=e=>se;function se(e,t=ln,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&kd(-1);const o=xa(t);let l;try{l=e(...i)}finally{xa(o),r._d&&kd(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function ou(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[l],slots:u,attrs:f,emit:d,render:h,renderCache:m,data:v,setupState:p,ctx:b,inheritAttrs:S}=e;let T,A;const w=xa(e);try{if(n.shapeFlag&4){const V=i||r;T=Nn(h.call(V,V,m,o,p,v,b)),A=f}else{const V=t;T=Nn(V.length>1?V(o,{attrs:f,slots:u,emit:d}):V(o,null)),A=t.props?f:WP(f)}}catch(V){ha.length=0,Pi(V,e,1),T=y(gn)}let C=T;if(A&&S!==!1){const V=Object.keys(A),{shapeFlag:L}=C;V.length&&L&7&&(l&&V.some(hh)&&(A=GP(A,l)),C=xr(C,A))}return n.dirs&&(C=xr(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),T=C,xa(w),T}function zP(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(Ws(r)){if(r.type!==gn||r.children==="v-if"){if(t)return;t=r}}else return}return t}const WP=e=>{let t;for(const n in e)(n==="class"||n==="style"||Fa(n))&&((t||(t={}))[n]=e[n]);return t},GP=(e,t)=>{const n={};for(const r in e)(!hh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jP(e,t,n){const{props:r,children:i,component:o}=e,{props:l,children:u,patchFlag:f}=t,d=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?yp(r,l,d):!!l;if(f&8){const h=t.dynamicProps;for(let m=0;m<h.length;m++){const v=h[m];if(l[v]!==r[v]&&!Zu(d,v))return!0}}}else return(i||u)&&(!u||!u.$stable)?!0:r===l?!1:r?l?yp(r,l,d):!0:!!l;return!1}function yp(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Zu(n,o))return!0}return!1}function Th({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Uy=e=>e.__isSuspense,KP={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,l,u,f,d){e==null?YP(t,n,r,i,o,l,u,f,d):ZP(e,t,n,r,i,l,u,f,d)},hydrate:XP,create:kh,normalize:JP},qP=KP;function Aa(e,t){const n=e.props&&e.props[t];qe(n)&&n()}function YP(e,t,n,r,i,o,l,u,f){const{p:d,o:{createElement:h}}=f,m=h("div"),v=e.suspense=kh(e,i,r,t,m,n,o,l,u,f);d(null,v.pendingBranch=e.ssContent,m,null,r,v,o,l),v.deps>0?(Aa(e,"onPending"),Aa(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,o,l),mo(v,e.ssFallback)):v.resolve()}function ZP(e,t,n,r,i,o,l,u,{p:f,um:d,o:{createElement:h}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const v=t.ssContent,p=t.ssFallback,{activeBranch:b,pendingBranch:S,isInFallback:T,isHydrating:A}=m;if(S)m.pendingBranch=v,br(v,S)?(f(S,v,m.hiddenContainer,null,i,m,o,l,u),m.deps<=0?m.resolve():T&&(f(b,p,n,r,i,null,o,l,u),mo(m,p))):(m.pendingId++,A?(m.isHydrating=!1,m.activeBranch=S):d(S,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=h("div"),T?(f(null,v,m.hiddenContainer,null,i,m,o,l,u),m.deps<=0?m.resolve():(f(b,p,n,r,i,null,o,l,u),mo(m,p))):b&&br(v,b)?(f(b,v,n,r,i,m,o,l,u),m.resolve(!0)):(f(null,v,m.hiddenContainer,null,i,m,o,l,u),m.deps<=0&&m.resolve()));else if(b&&br(v,b))f(b,v,n,r,i,m,o,l,u),mo(m,v);else if(Aa(t,"onPending"),m.pendingBranch=v,m.pendingId++,f(null,v,m.hiddenContainer,null,i,m,o,l,u),m.deps<=0)m.resolve();else{const{timeout:w,pendingId:C}=m;w>0?setTimeout(()=>{m.pendingId===C&&m.fallback(p)},w):w===0&&m.fallback(p)}}function kh(e,t,n,r,i,o,l,u,f,d,h=!1){const{p:m,m:v,um:p,n:b,o:{parentNode:S,remove:T}}=d,A=e.props?yu(e.props.timeout):void 0,w={vnode:e,parent:t,parentComponent:n,isSVG:l,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof A=="number"?A:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:h,isUnmounted:!1,effects:[],resolve(C=!1){const{vnode:V,activeBranch:L,pendingBranch:F,pendingId:O,effects:k,parentComponent:z,container:W}=w;if(w.isHydrating)w.isHydrating=!1;else if(!C){const q=L&&F.transition&&F.transition.mode==="out-in";q&&(L.transition.afterLeave=()=>{O===w.pendingId&&v(F,W,G,0)});let{anchor:G}=w;L&&(G=b(L),p(L,z,w,!0)),q||v(F,W,G,0)}mo(w,F),w.pendingBranch=null,w.isInFallback=!1;let H=w.parent,U=!1;for(;H;){if(H.pendingBranch){H.effects.push(...k),U=!0;break}H=H.parent}U||Eh(k),w.effects=[],Aa(V,"onResolve")},fallback(C){if(!w.pendingBranch)return;const{vnode:V,activeBranch:L,parentComponent:F,container:O,isSVG:k}=w;Aa(V,"onFallback");const z=b(L),W=()=>{w.isInFallback&&(m(null,C,O,z,F,null,k,u,f),mo(w,C))},H=C.transition&&C.transition.mode==="out-in";H&&(L.transition.afterLeave=W),w.isInFallback=!0,p(L,F,null,!0),H||W()},move(C,V,L){w.activeBranch&&v(w.activeBranch,C,V,L),w.container=C},next(){return w.activeBranch&&b(w.activeBranch)},registerDep(C,V){const L=!!w.pendingBranch;L&&w.deps++;const F=C.vnode.el;C.asyncDep.catch(O=>{Pi(O,C,0)}).then(O=>{if(C.isUnmounted||w.isUnmounted||w.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:k}=C;Pd(C,O,!1),F&&(k.el=F);const z=!F&&C.subTree.el;V(C,k,S(F||C.subTree.el),F?null:b(C.subTree),w,l,f),z&&T(z),Th(C,k.el),L&&--w.deps===0&&w.resolve()})},unmount(C,V){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,C,V),w.pendingBranch&&p(w.pendingBranch,n,C,V)}};return w}function XP(e,t,n,r,i,o,l,u,f){const d=t.suspense=kh(t,r,n,e.parentNode,document.createElement("div"),null,i,o,l,u,!0),h=f(e,d.pendingBranch=t.ssContent,n,d,o,l);return d.deps===0&&d.resolve(),h}function JP(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=bp(r?n.default:n),e.ssFallback=r?bp(n.fallback):y(gn)}function bp(e){let t;if(qe(e)){const n=Ai&&e._c;n&&(e._d=!1,ie()),e=e(),n&&(e._d=!0,t=In,h0())}return Re(e)&&(e=zP(e)),e=Nn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function zy(e,t){t&&t.pendingBranch?Re(e)?t.effects.push(...e):t.effects.push(e):Eh(e)}function mo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,Th(r,i))}function Pt(e,t){if(Nt){let n=Nt.provides;const r=Nt.parent&&Nt.parent.provides;r===n&&(n=Nt.provides=Object.create(r)),n[e]=t}}function rt(e,t,n=!1){const r=Nt||ln;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&qe(t)?t.call(r.proxy):t}}function Nr(e,t){return Da(e,null,t)}function Wy(e,t){return Da(e,null,{flush:"post"})}function QP(e,t){return Da(e,null,{flush:"sync"})}const Zl={};function De(e,t,n){return Da(e,t,n)}function Da(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:l}=xt){const u=yh()===(Nt==null?void 0:Nt.scope)?Nt:null;let f,d=!1,h=!1;if(At(e)?(f=()=>e.value,d=_a(e)):ls(e)?(f=()=>e,r=!0):Re(e)?(h=!0,d=e.some(C=>ls(C)||_a(C)),f=()=>e.map(C=>{if(At(C))return C.value;if(ls(C))return gi(C);if(qe(C))return us(C,u,2)})):qe(e)?t?f=()=>us(e,u,2):f=()=>{if(!(u&&u.isUnmounted))return m&&m(),zn(e,u,3,[v])}:f=wr,t&&r){const C=f;f=()=>gi(C())}let m,v=C=>{m=A.onStop=()=>{us(C,u,4)}},p;if(yo)if(v=wr,t?n&&zn(t,u,3,[f(),h?[]:void 0,v]):f(),i==="sync"){const C=S0();p=C.__watcherHandles||(C.__watcherHandles=[])}else return wr;let b=h?new Array(e.length).fill(Zl):Zl;const S=()=>{if(A.active)if(t){const C=A.run();(r||d||(h?C.some((V,L)=>go(V,b[L])):go(C,b)))&&(m&&m(),zn(t,u,3,[C,b===Zl?void 0:h&&b[0]===Zl?[]:b,v]),b=C)}else A.run()};S.allowRecurse=!!t;let T;i==="sync"?T=S:i==="post"?T=()=>an(S,u&&u.suspense):(S.pre=!0,u&&(S.id=u.uid),T=()=>Yu(S));const A=new Ma(f,T);t?n?S():b=A.run():i==="post"?an(A.run.bind(A),u&&u.suspense):A.run();const w=()=>{A.stop(),u&&u.scope&&mh(u.scope.effects,A)};return p&&p.push(w),w}function eR(e,t,n){const r=this.proxy,i=Bt(e)?e.includes(".")?Gy(r,e):()=>r[e]:e.bind(r,r);let o;qe(t)?o=t:(o=t.handler,n=t);const l=Nt;Gs(this);const u=Da(i,o.bind(r),n);return l?Gs(l):$s(),u}function Gy(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function gi(e,t){if(!Rt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),At(e))gi(e.value,t);else if(Re(e))for(let n=0;n<e.length;n++)gi(e[n],t);else if(Ti(e)||co(e))e.forEach(n=>{gi(n,t)});else if(_y(e))for(const n in e)gi(e[n],t);return e}function Ph(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ar(()=>{e.isMounted=!0}),On(()=>{e.isUnmounting=!0}),e}const rr=[Function,Array],tR={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:rr,onEnter:rr,onAfterEnter:rr,onEnterCancelled:rr,onBeforeLeave:rr,onLeave:rr,onAfterLeave:rr,onLeaveCancelled:rr,onBeforeAppear:rr,onAppear:rr,onAfterAppear:rr,onAppearCancelled:rr},setup(e,{slots:t}){const n=Ur(),r=Ph();let i;return()=>{const o=t.default&&Ju(t.default(),!0);if(!o||!o.length)return;let l=o[0];if(o.length>1){for(const S of o)if(S.type!==gn){l=S;break}}const u=Ze(e),{mode:f}=u;if(r.isLeaving)return Wf(l);const d=_p(l);if(!d)return Wf(l);const h=po(d,u,r,n);xi(d,h);const m=n.subTree,v=m&&_p(m);let p=!1;const{getTransitionKey:b}=d.type;if(b){const S=b();i===void 0?i=S:S!==i&&(i=S,p=!0)}if(v&&v.type!==gn&&(!br(d,v)||p)){const S=po(v,u,r,n);if(xi(v,S),f==="out-in")return r.isLeaving=!0,S.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Wf(l);f==="in-out"&&d.type!==gn&&(S.delayLeave=(T,A,w)=>{const C=jy(r,v);C[String(v.key)]=v,T._leaveCb=()=>{A(),T._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=w})}return l}}},Rh=tR;function jy(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function po(e,t,n,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:u,onEnter:f,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:m,onLeave:v,onAfterLeave:p,onLeaveCancelled:b,onBeforeAppear:S,onAppear:T,onAfterAppear:A,onAppearCancelled:w}=t,C=String(e.key),V=jy(n,e),L=(k,z)=>{k&&zn(k,r,9,z)},F=(k,z)=>{const W=z[1];L(k,z),Re(k)?k.every(H=>H.length<=1)&&W():k.length<=1&&W()},O={mode:o,persisted:l,beforeEnter(k){let z=u;if(!n.isMounted)if(i)z=S||u;else return;k._leaveCb&&k._leaveCb(!0);const W=V[C];W&&br(e,W)&&W.el._leaveCb&&W.el._leaveCb(),L(z,[k])},enter(k){let z=f,W=d,H=h;if(!n.isMounted)if(i)z=T||f,W=A||d,H=w||h;else return;let U=!1;const q=k._enterCb=G=>{U||(U=!0,G?L(H,[k]):L(W,[k]),O.delayedLeave&&O.delayedLeave(),k._enterCb=void 0)};z?F(z,[k,q]):q()},leave(k,z){const W=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return z();L(m,[k]);let H=!1;const U=k._leaveCb=q=>{H||(H=!0,z(),q?L(b,[k]):L(p,[k]),k._leaveCb=void 0,V[W]===e&&delete V[W])};V[W]=e,v?F(v,[k,U]):U()},clone(k){return po(k,t,n,r)}};return O}function Wf(e){if($a(e))return e=xr(e),e.children=null,e}function _p(e){return $a(e)?e.children?e.children[0]:void 0:e}function xi(e,t){e.shapeFlag&6&&e.component?xi(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ju(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let l=e[o];const u=n==null?l.key:String(n)+String(l.key!=null?l.key:o);l.type===Ke?(l.patchFlag&128&&i++,r=r.concat(Ju(l.children,t,u))):(t||l.type!==gn)&&r.push(u!=null?xr(l,{key:u}):l)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Io(e){return qe(e)?{setup:e,name:e.name}:e}const _i=e=>!!e.type.__asyncLoader;function Ih(e){qe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:l=!0,onError:u}=e;let f=null,d,h=0;const m=()=>(h++,f=null,v()),v=()=>{let p;return f||(p=f=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),u)return new Promise((S,T)=>{u(b,()=>S(m()),()=>T(b),h+1)});throw b}).then(b=>p!==f&&f?f:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),d=b,b)))};return Io({name:"AsyncComponentWrapper",__asyncLoader:v,get __asyncResolved(){return d},setup(){const p=Nt;if(d)return()=>Gf(d,p);const b=w=>{f=null,Pi(w,p,13,!r)};if(l&&p.suspense||yo)return v().then(w=>()=>Gf(w,p)).catch(w=>(b(w),()=>r?y(r,{error:w}):null));const S=J(!1),T=J(),A=J(!!i);return i&&setTimeout(()=>{A.value=!1},i),o!=null&&setTimeout(()=>{if(!S.value&&!T.value){const w=new Error(`Async component timed out after ${o}ms.`);b(w),T.value=w}},o),v().then(()=>{S.value=!0,p.parent&&$a(p.parent.vnode)&&Yu(p.parent.update)}).catch(w=>{b(w),T.value=w}),()=>{if(S.value&&d)return Gf(d,p);if(T.value&&r)return y(r,{error:T.value});if(n&&!A.value)return y(n)}}})}function Gf(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,l=y(e,r,i);return l.ref=n,l.ce=o,delete t.vnode.ce,l}const $a=e=>e.type.__isKeepAlive,nR={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ur(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const i=new Map,o=new Set;let l=null;const u=n.suspense,{renderer:{p:f,m:d,um:h,o:{createElement:m}}}=r,v=m("div");r.activate=(w,C,V,L,F)=>{const O=w.component;d(w,C,V,0,u),f(O.vnode,w,C,V,O,u,L,w.slotScopeIds,F),an(()=>{O.isDeactivated=!1,O.a&&fo(O.a);const k=w.props&&w.props.onVnodeMounted;k&&Rn(k,O.parent,w)},u)},r.deactivate=w=>{const C=w.component;d(w,v,null,1,u),an(()=>{C.da&&fo(C.da);const V=w.props&&w.props.onVnodeUnmounted;V&&Rn(V,C.parent,w),C.isDeactivated=!0},u)};function p(w){jf(w),h(w,n,u,!0)}function b(w){i.forEach((C,V)=>{const L=Id(C.type);L&&(!w||!w(L))&&S(V)})}function S(w){const C=i.get(w);!l||!br(C,l)?p(C):l&&jf(l),i.delete(w),o.delete(w)}De(()=>[e.include,e.exclude],([w,C])=>{w&&b(V=>la(w,V)),C&&b(V=>!la(C,V))},{flush:"post",deep:!0});let T=null;const A=()=>{T!=null&&i.set(T,Kf(n.subTree))};return ar(A),ec(A),On(()=>{i.forEach(w=>{const{subTree:C,suspense:V}=n,L=Kf(C);if(w.type===L.type&&w.key===L.key){jf(L);const F=L.component.da;F&&an(F,V);return}p(w)})}),()=>{if(T=null,!t.default)return null;const w=t.default(),C=w[0];if(w.length>1)return l=null,w;if(!Ws(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return l=null,C;let V=Kf(C);const L=V.type,F=Id(_i(V)?V.type.__asyncResolved||{}:L),{include:O,exclude:k,max:z}=e;if(O&&(!F||!la(O,F))||k&&F&&la(k,F))return l=V,C;const W=V.key==null?L:V.key,H=i.get(W);return V.el&&(V=xr(V),C.shapeFlag&128&&(C.ssContent=V)),T=W,H?(V.el=H.el,V.component=H.component,V.transition&&xi(V,V.transition),V.shapeFlag|=512,o.delete(W),o.add(W)):(o.add(W),z&&o.size>parseInt(z,10)&&S(o.values().next().value)),V.shapeFlag|=256,l=V,Uy(C.type)?C:V}}},rR=nR;function la(e,t){return Re(e)?e.some(n=>la(n,t)):Bt(e)?e.split(",").includes(t):Gk(e)?e.test(t):!1}function Lh(e,t){Ky(e,"a",t)}function Oh(e,t){Ky(e,"da",t)}function Ky(e,t,n=Nt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Qu(t,r,n),n){let i=n.parent;for(;i&&i.parent;)$a(i.parent.vnode)&&sR(r,t,n,i),i=i.parent}}function sR(e,t,n,r){const i=Qu(t,e,r,!0);tc(()=>{mh(r[t],i)},n)}function jf(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Kf(e){return e.shapeFlag&128?e.ssContent:e}function Qu(e,t,n=Nt,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;ko(),Gs(n);const u=zn(t,n,e,l);return $s(),Po(),u});return r?i.unshift(o):i.push(o),o}}const ms=e=>(t,n=Nt)=>(!yo||e==="sp")&&Qu(e,(...r)=>t(...r),n),Ha=ms("bm"),ar=ms("m"),qy=ms("bu"),ec=ms("u"),On=ms("bum"),tc=ms("um"),Yy=ms("sp"),Zy=ms("rtg"),Xy=ms("rtc");function Jy(e,t=Nt){Qu("ec",e,t)}function qt(e,t){const n=ln;if(n===null)return e;const r=rc(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[l,u,f,d=xt]=t[o];l&&(qe(l)&&(l={mounted:l,updated:l}),l.deep&&gi(u),i.push({dir:l,instance:r,value:u,oldValue:void 0,arg:f,modifiers:d}))}return e}function Fr(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let l=0;l<i.length;l++){const u=i[l];o&&(u.oldValue=o[l].value);let f=u.dir[r];f&&(ko(),zn(f,n,8,[e.el,u,e,t]),Po())}}const Vh="components",iR="directives";function Vt(e,t){return Fh(Vh,e,!0,t)||e}const Qy=Symbol();function Li(e){return Bt(e)?Fh(Vh,e,!1)||e:e||Qy}function Sr(e){return Fh(iR,e)}function Fh(e,t,n=!0,r=!1){const i=ln||Nt;if(i){const o=i.type;if(e===Vh){const u=Id(o,!1);if(u&&(u===t||u===vn(t)||u===ki(vn(t))))return o}const l=wp(i[e]||o[e],t)||wp(i.appContext[e],t);return!l&&r?o:l}}function wp(e,t){return e&&(e[t]||e[vn(t)]||e[ki(vn(t))])}function Dr(e,t,n,r){let i;const o=n&&n[r];if(Re(e)||Bt(e)){i=new Array(e.length);for(let l=0,u=e.length;l<u;l++)i[l]=t(e[l],l,void 0,o&&o[l])}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,o&&o[l])}else if(Rt(e))if(e[Symbol.iterator])i=Array.from(e,(l,u)=>t(l,u,void 0,o&&o[u]));else{const l=Object.keys(e);i=new Array(l.length);for(let u=0,f=l.length;u<f;u++){const d=l[u];i[u]=t(e[d],d,u,o&&o[u])}}else i=[];return n&&(n[r]=i),i}function oR(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Re(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function aR(e,t,n={},r,i){if(ln.isCE||ln.parent&&_i(ln.parent)&&ln.parent.isCE)return t!=="default"&&(n.name=t),y("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),ie();const l=o&&e0(o(n)),u=je(Ke,{key:n.key||l&&l.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!i&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function e0(e){return e.some(t=>Ws(t)?!(t.type===gn||t.type===Ke&&!e0(t.children)):!0)?e:null}function au(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ca(r)]=e[r];return n}const Cd=e=>e?p0(e)?rc(e)||e.proxy:Cd(e.parent):null,fa=Ut(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Cd(e.parent),$root:e=>Cd(e.root),$emit:e=>e.emit,$options:e=>Mh(e),$forceUpdate:e=>e.f||(e.f=()=>Yu(e.update)),$nextTick:e=>e.n||(e.n=Yt.bind(e.proxy)),$watch:e=>eR.bind(e)}),qf=(e,t)=>e!==xt&&!e.__isScriptSetup&&ft(e,t),Sd={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:l,type:u,appContext:f}=e;let d;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(qf(r,t))return l[t]=1,r[t];if(i!==xt&&ft(i,t))return l[t]=2,i[t];if((d=e.propsOptions[0])&&ft(d,t))return l[t]=3,o[t];if(n!==xt&&ft(n,t))return l[t]=4,n[t];xd&&(l[t]=0)}}const h=fa[t];let m,v;if(h)return t==="$attrs"&&Ln(e,"get",t),h(e);if((m=u.__cssModules)&&(m=m[t]))return m;if(n!==xt&&ft(n,t))return l[t]=4,n[t];if(v=f.config.globalProperties,ft(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return qf(i,t)?(i[t]=n,!0):r!==xt&&ft(r,t)?(r[t]=n,!0):ft(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},l){let u;return!!n[l]||e!==xt&&ft(e,l)||qf(t,l)||(u=o[0])&&ft(u,l)||ft(r,l)||ft(fa,l)||ft(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ft(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},lR=Ut({},Sd,{get(e,t){if(t!==Symbol.unscopables)return Sd.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Vk(t)}});let xd=!0;function uR(e){const t=Mh(e),n=e.proxy,r=e.ctx;xd=!1,t.beforeCreate&&Cp(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:l,watch:u,provide:f,inject:d,created:h,beforeMount:m,mounted:v,beforeUpdate:p,updated:b,activated:S,deactivated:T,beforeDestroy:A,beforeUnmount:w,destroyed:C,unmounted:V,render:L,renderTracked:F,renderTriggered:O,errorCaptured:k,serverPrefetch:z,expose:W,inheritAttrs:H,components:U,directives:q,filters:G}=t;if(d&&cR(d,r,null,e.appContext.config.unwrapInjectedRef),l)for(const he in l){const fe=l[he];qe(fe)&&(r[he]=fe.bind(n))}if(i){const he=i.call(n,n);Rt(he)&&(e.data=Qt(he))}if(xd=!0,o)for(const he in o){const fe=o[he],_e=qe(fe)?fe.bind(n,n):qe(fe.get)?fe.get.bind(n,n):wr,ve=!qe(fe)&&qe(fe.set)?fe.set.bind(n):wr,pe=R({get:_e,set:ve});Object.defineProperty(r,he,{enumerable:!0,configurable:!0,get:()=>pe.value,set:le=>pe.value=le})}if(u)for(const he in u)t0(u[he],r,n,he);if(f){const he=qe(f)?f.call(n):f;Reflect.ownKeys(he).forEach(fe=>{Pt(fe,he[fe])})}h&&Cp(h,e,"c");function ce(he,fe){Re(fe)?fe.forEach(_e=>he(_e.bind(n))):fe&&he(fe.bind(n))}if(ce(Ha,m),ce(ar,v),ce(qy,p),ce(ec,b),ce(Lh,S),ce(Oh,T),ce(Jy,k),ce(Xy,F),ce(Zy,O),ce(On,w),ce(tc,V),ce(Yy,z),Re(W))if(W.length){const he=e.exposed||(e.exposed={});W.forEach(fe=>{Object.defineProperty(he,fe,{get:()=>n[fe],set:_e=>n[fe]=_e})})}else e.exposed||(e.exposed={});L&&e.render===wr&&(e.render=L),H!=null&&(e.inheritAttrs=H),U&&(e.components=U),q&&(e.directives=q)}function cR(e,t,n=wr,r=!1){Re(e)&&(e=Ad(e));for(const i in e){const o=e[i];let l;Rt(o)?"default"in o?l=rt(o.from||i,o.default,!0):l=rt(o.from||i):l=rt(o),At(l)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):t[i]=l}}function Cp(e,t,n){zn(Re(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function t0(e,t,n,r){const i=r.includes(".")?Gy(n,r):()=>n[r];if(Bt(e)){const o=t[e];qe(o)&&De(i,o)}else if(qe(e))De(i,e.bind(n));else if(Rt(e))if(Re(e))e.forEach(o=>t0(o,t,n,r));else{const o=qe(e.handler)?e.handler.bind(n):t[e.handler];qe(o)&&De(i,o,e)}}function Mh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:l}}=e.appContext,u=o.get(t);let f;return u?f=u:!i.length&&!n&&!r?f=t:(f={},i.length&&i.forEach(d=>wu(f,d,l,!0)),wu(f,t,l)),Rt(t)&&o.set(t,f),f}function wu(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&wu(e,o,n,!0),i&&i.forEach(l=>wu(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const u=fR[l]||n&&n[l];e[l]=u?u(e[l],t[l]):t[l]}return e}const fR={data:Sp,props:di,emits:di,methods:di,computed:di,beforeCreate:wn,created:wn,beforeMount:wn,mounted:wn,beforeUpdate:wn,updated:wn,beforeDestroy:wn,beforeUnmount:wn,destroyed:wn,unmounted:wn,activated:wn,deactivated:wn,errorCaptured:wn,serverPrefetch:wn,components:di,directives:di,watch:hR,provide:Sp,inject:dR};function Sp(e,t){return t?e?function(){return Ut(qe(e)?e.call(this,this):e,qe(t)?t.call(this,this):t)}:t:e}function dR(e,t){return di(Ad(e),Ad(t))}function Ad(e){if(Re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function wn(e,t){return e?[...new Set([].concat(e,t))]:t}function di(e,t){return e?Ut(Ut(Object.create(null),e),t):t}function hR(e,t){if(!e)return t;if(!t)return e;const n=Ut(Object.create(null),e);for(const r in t)n[r]=wn(e[r],t[r]);return n}function mR(e,t,n,r=!1){const i={},o={};gu(o,nc,1),e.propsDefaults=Object.create(null),n0(e,t,i,o);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:Vy(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function vR(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:l}}=e,u=Ze(i),[f]=e.propsOptions;let d=!1;if((r||l>0)&&!(l&16)){if(l&8){const h=e.vnode.dynamicProps;for(let m=0;m<h.length;m++){let v=h[m];if(Zu(e.emitsOptions,v))continue;const p=t[v];if(f)if(ft(o,v))p!==o[v]&&(o[v]=p,d=!0);else{const b=vn(v);i[b]=Ed(f,u,b,p,e,!1)}else p!==o[v]&&(o[v]=p,d=!0)}}}else{n0(e,t,i,o)&&(d=!0);let h;for(const m in u)(!t||!ft(t,m)&&((h=ir(m))===m||!ft(t,h)))&&(f?n&&(n[m]!==void 0||n[h]!==void 0)&&(i[m]=Ed(f,u,m,void 0,e,!0)):delete i[m]);if(o!==u)for(const m in o)(!t||!ft(t,m))&&(delete o[m],d=!0)}d&&ds(e,"set","$attrs")}function n0(e,t,n,r){const[i,o]=e.propsOptions;let l=!1,u;if(t)for(let f in t){if(ua(f))continue;const d=t[f];let h;i&&ft(i,h=vn(f))?!o||!o.includes(h)?n[h]=d:(u||(u={}))[h]=d:Zu(e.emitsOptions,f)||(!(f in r)||d!==r[f])&&(r[f]=d,l=!0)}if(o){const f=Ze(n),d=u||xt;for(let h=0;h<o.length;h++){const m=o[h];n[m]=Ed(i,f,m,d[m],e,!ft(d,m))}}return l}function Ed(e,t,n,r,i,o){const l=e[n];if(l!=null){const u=ft(l,"default");if(u&&r===void 0){const f=l.default;if(l.type!==Function&&qe(f)){const{propsDefaults:d}=i;n in d?r=d[n]:(Gs(i),r=d[n]=f.call(null,t),$s())}else r=f}l[0]&&(o&&!u?r=!1:l[1]&&(r===""||r===ir(n))&&(r=!0))}return r}function r0(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,l={},u=[];let f=!1;if(!qe(e)){const h=m=>{f=!0;const[v,p]=r0(m,t,!0);Ut(l,v),p&&u.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!o&&!f)return Rt(e)&&r.set(e,uo),uo;if(Re(o))for(let h=0;h<o.length;h++){const m=vn(o[h]);xp(m)&&(l[m]=xt)}else if(o)for(const h in o){const m=vn(h);if(xp(m)){const v=o[h],p=l[m]=Re(v)||qe(v)?{type:v}:Object.assign({},v);if(p){const b=Tp(Boolean,p.type),S=Tp(String,p.type);p[0]=b>-1,p[1]=S<0||b<S,(b>-1||ft(p,"default"))&&u.push(m)}}}const d=[l,u];return Rt(e)&&r.set(e,d),d}function xp(e){return e[0]!=="$"}function Ap(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ep(e,t){return Ap(e)===Ap(t)}function Tp(e,t){return Re(t)?t.findIndex(n=>Ep(n,e)):qe(t)&&Ep(t,e)?0:-1}const s0=e=>e[0]==="_"||e==="$stable",Bh=e=>Re(e)?e.map(Nn):[Nn(e)],gR=(e,t,n)=>{if(t._n)return t;const r=se((...i)=>Bh(t(...i)),n);return r._c=!1,r},i0=(e,t,n)=>{const r=e._ctx;for(const i in e){if(s0(i))continue;const o=e[i];if(qe(o))t[i]=gR(i,o,r);else if(o!=null){const l=Bh(o);t[i]=()=>l}}},o0=(e,t)=>{const n=Bh(t);e.slots.default=()=>n},pR=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ze(t),gu(t,"_",n)):i0(t,e.slots={})}else e.slots={},t&&o0(e,t);gu(e.slots,nc,1)},yR=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,l=xt;if(r.shapeFlag&32){const u=t._;u?n&&u===1?o=!1:(Ut(i,t),!n&&u===1&&delete i._):(o=!t.$stable,i0(t,i)),l=t}else t&&(o0(e,t),l={default:1});if(o)for(const u in i)!s0(u)&&!(u in l)&&delete i[u]};function a0(){return{app:null,config:{isNativeTag:Uk,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bR=0;function _R(e,t){return function(r,i=null){qe(r)||(r=Object.assign({},r)),i!=null&&!Rt(i)&&(i=null);const o=a0(),l=new Set;let u=!1;const f=o.app={_uid:bR++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:A0,get config(){return o.config},set config(d){},use(d,...h){return l.has(d)||(d&&qe(d.install)?(l.add(d),d.install(f,...h)):qe(d)&&(l.add(d),d(f,...h))),f},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),f},component(d,h){return h?(o.components[d]=h,f):o.components[d]},directive(d,h){return h?(o.directives[d]=h,f):o.directives[d]},mount(d,h,m){if(!u){const v=y(r,i);return v.appContext=o,h&&t?t(v,d):e(v,d,m),u=!0,f._container=d,d.__vue_app__=f,rc(v.component)||v.component.proxy}},unmount(){u&&(e(null,f._container),delete f._container.__vue_app__)},provide(d,h){return o.provides[d]=h,f}};return f}}function Cu(e,t,n,r,i=!1){if(Re(e)){e.forEach((v,p)=>Cu(v,t&&(Re(t)?t[p]:t),n,r,i));return}if(_i(r)&&!i)return;const o=r.shapeFlag&4?rc(r.component)||r.component.proxy:r.el,l=i?null:o,{i:u,r:f}=e,d=t&&t.r,h=u.refs===xt?u.refs={}:u.refs,m=u.setupState;if(d!=null&&d!==f&&(Bt(d)?(h[d]=null,ft(m,d)&&(m[d]=null)):At(d)&&(d.value=null)),qe(f))us(f,u,12,[l,h]);else{const v=Bt(f),p=At(f);if(v||p){const b=()=>{if(e.f){const S=v?ft(m,f)?m[f]:h[f]:f.value;i?Re(S)&&mh(S,o):Re(S)?S.includes(o)||S.push(o):v?(h[f]=[o],ft(m,f)&&(m[f]=h[f])):(f.value=[o],e.k&&(h[e.k]=f.value))}else v?(h[f]=l,ft(m,f)&&(m[f]=l)):p&&(f.value=l,e.k&&(h[e.k]=l))};l?(b.id=-1,an(b,n)):b()}}}let Rs=!1;const Xl=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Jl=e=>e.nodeType===8;function wR(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:l,remove:u,insert:f,createComment:d}}=e,h=(A,w)=>{if(!w.hasChildNodes()){n(null,A,w),_u(),w._vnode=A;return}Rs=!1,m(w.firstChild,A,null,null,null),_u(),w._vnode=A,Rs&&console.error("Hydration completed but contains mismatches.")},m=(A,w,C,V,L,F=!1)=>{const O=Jl(A)&&A.data==="[",k=()=>S(A,w,C,V,L,O),{type:z,ref:W,shapeFlag:H,patchFlag:U}=w;let q=A.nodeType;w.el=A,U===-2&&(F=!1,w.dynamicChildren=null);let G=null;switch(z){case zs:q!==3?w.children===""?(f(w.el=i(""),l(A),A),G=A):G=k():(A.data!==w.children&&(Rs=!0,A.data=w.children),G=o(A));break;case gn:q!==8||O?G=k():G=o(A);break;case wi:if(O&&(A=o(A),q=A.nodeType),q===1||q===3){G=A;const me=!w.children.length;for(let ce=0;ce<w.staticCount;ce++)me&&(w.children+=G.nodeType===1?G.outerHTML:G.data),ce===w.staticCount-1&&(w.anchor=G),G=o(G);return O?o(G):G}else k();break;case Ke:O?G=b(A,w,C,V,L,F):G=k();break;default:if(H&1)q!==1||w.type.toLowerCase()!==A.tagName.toLowerCase()?G=k():G=v(A,w,C,V,L,F);else if(H&6){w.slotScopeIds=L;const me=l(A);if(t(w,me,null,C,V,Xl(me),F),G=O?T(A):o(A),G&&Jl(G)&&G.data==="teleport end"&&(G=o(G)),_i(w)){let ce;O?(ce=y(Ke),ce.anchor=G?G.previousSibling:me.lastChild):ce=A.nodeType===3?Te(""):y("div"),ce.el=A,w.component.subTree=ce}}else H&64?q!==8?G=k():G=w.type.hydrate(A,w,C,V,L,F,e,p):H&128&&(G=w.type.hydrate(A,w,C,V,Xl(l(A)),L,F,e,m))}return W!=null&&Cu(W,null,V,w),G},v=(A,w,C,V,L,F)=>{F=F||!!w.dynamicChildren;const{type:O,props:k,patchFlag:z,shapeFlag:W,dirs:H}=w,U=O==="input"&&H||O==="option";if(U||z!==-1){if(H&&Fr(w,null,C,"created"),k)if(U||!F||z&48)for(const G in k)(U&&G.endsWith("value")||Fa(G)&&!ua(G))&&r(A,G,null,k[G],!1,void 0,C);else k.onClick&&r(A,"onClick",null,k.onClick,!1,void 0,C);let q;if((q=k&&k.onVnodeBeforeMount)&&Rn(q,C,w),H&&Fr(w,null,C,"beforeMount"),((q=k&&k.onVnodeMounted)||H)&&zy(()=>{q&&Rn(q,C,w),H&&Fr(w,null,C,"mounted")},V),W&16&&!(k&&(k.innerHTML||k.textContent))){let G=p(A.firstChild,w,A,C,V,L,F);for(;G;){Rs=!0;const me=G;G=G.nextSibling,u(me)}}else W&8&&A.textContent!==w.children&&(Rs=!0,A.textContent=w.children)}return A.nextSibling},p=(A,w,C,V,L,F,O)=>{O=O||!!w.dynamicChildren;const k=w.children,z=k.length;for(let W=0;W<z;W++){const H=O?k[W]:k[W]=Nn(k[W]);if(A)A=m(A,H,V,L,F,O);else{if(H.type===zs&&!H.children)continue;Rs=!0,n(null,H,C,null,V,L,Xl(C),F)}}return A},b=(A,w,C,V,L,F)=>{const{slotScopeIds:O}=w;O&&(L=L?L.concat(O):O);const k=l(A),z=p(o(A),w,k,C,V,L,F);return z&&Jl(z)&&z.data==="]"?o(w.anchor=z):(Rs=!0,f(w.anchor=d("]"),k,z),z)},S=(A,w,C,V,L,F)=>{if(Rs=!0,w.el=null,F){const z=T(A);for(;;){const W=o(A);if(W&&W!==z)u(W);else break}}const O=o(A),k=l(A);return u(A),n(null,w,k,O,C,V,Xl(k),L),O},T=A=>{let w=0;for(;A;)if(A=o(A),A&&Jl(A)&&(A.data==="["&&w++,A.data==="]")){if(w===0)return o(A);w--}return A};return[h,m]}const an=zy;function l0(e){return c0(e)}function u0(e){return c0(e,wR)}function c0(e,t){const n=Yk();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:l,createText:u,createComment:f,setText:d,setElementText:h,parentNode:m,nextSibling:v,setScopeId:p=wr,insertStaticContent:b}=e,S=(P,B,K,Q=null,oe=null,de=null,Ce=!1,ge=null,ye=!!B.dynamicChildren)=>{if(P===B)return;P&&!br(P,B)&&(Q=ue(P),le(P,oe,de,!0),P=null),B.patchFlag===-2&&(ye=!1,B.dynamicChildren=null);const{type:re,ref:Le,shapeFlag:Ee}=B;switch(re){case zs:T(P,B,K,Q);break;case gn:A(P,B,K,Q);break;case wi:P==null&&w(B,K,Q,Ce);break;case Ke:U(P,B,K,Q,oe,de,Ce,ge,ye);break;default:Ee&1?L(P,B,K,Q,oe,de,Ce,ge,ye):Ee&6?q(P,B,K,Q,oe,de,Ce,ge,ye):(Ee&64||Ee&128)&&re.process(P,B,K,Q,oe,de,Ce,ge,ye,He)}Le!=null&&oe&&Cu(Le,P&&P.ref,de,B||P,!B)},T=(P,B,K,Q)=>{if(P==null)r(B.el=u(B.children),K,Q);else{const oe=B.el=P.el;B.children!==P.children&&d(oe,B.children)}},A=(P,B,K,Q)=>{P==null?r(B.el=f(B.children||""),K,Q):B.el=P.el},w=(P,B,K,Q)=>{[P.el,P.anchor]=b(P.children,B,K,Q,P.el,P.anchor)},C=({el:P,anchor:B},K,Q)=>{let oe;for(;P&&P!==B;)oe=v(P),r(P,K,Q),P=oe;r(B,K,Q)},V=({el:P,anchor:B})=>{let K;for(;P&&P!==B;)K=v(P),i(P),P=K;i(B)},L=(P,B,K,Q,oe,de,Ce,ge,ye)=>{Ce=Ce||B.type==="svg",P==null?F(B,K,Q,oe,de,Ce,ge,ye):z(P,B,oe,de,Ce,ge,ye)},F=(P,B,K,Q,oe,de,Ce,ge)=>{let ye,re;const{type:Le,props:Ee,shapeFlag:Me,transition:ze,dirs:st}=P;if(ye=P.el=l(P.type,de,Ee&&Ee.is,Ee),Me&8?h(ye,P.children):Me&16&&k(P.children,ye,null,Q,oe,de&&Le!=="foreignObject",Ce,ge),st&&Fr(P,null,Q,"created"),O(ye,P,P.scopeId,Ce,Q),Ee){for(const ut in Ee)ut!=="value"&&!ua(ut)&&o(ye,ut,null,Ee[ut],de,P.children,Q,oe,Z);"value"in Ee&&o(ye,"value",null,Ee.value),(re=Ee.onVnodeBeforeMount)&&Rn(re,Q,P)}st&&Fr(P,null,Q,"beforeMount");const mt=(!oe||oe&&!oe.pendingBranch)&&ze&&!ze.persisted;mt&&ze.beforeEnter(ye),r(ye,B,K),((re=Ee&&Ee.onVnodeMounted)||mt||st)&&an(()=>{re&&Rn(re,Q,P),mt&&ze.enter(ye),st&&Fr(P,null,Q,"mounted")},oe)},O=(P,B,K,Q,oe)=>{if(K&&p(P,K),Q)for(let de=0;de<Q.length;de++)p(P,Q[de]);if(oe){let de=oe.subTree;if(B===de){const Ce=oe.vnode;O(P,Ce,Ce.scopeId,Ce.slotScopeIds,oe.parent)}}},k=(P,B,K,Q,oe,de,Ce,ge,ye=0)=>{for(let re=ye;re<P.length;re++){const Le=P[re]=ge?Ms(P[re]):Nn(P[re]);S(null,Le,B,K,Q,oe,de,Ce,ge)}},z=(P,B,K,Q,oe,de,Ce)=>{const ge=B.el=P.el;let{patchFlag:ye,dynamicChildren:re,dirs:Le}=B;ye|=P.patchFlag&16;const Ee=P.props||xt,Me=B.props||xt;let ze;K&&ai(K,!1),(ze=Me.onVnodeBeforeUpdate)&&Rn(ze,K,B,P),Le&&Fr(B,P,K,"beforeUpdate"),K&&ai(K,!0);const st=oe&&B.type!=="foreignObject";if(re?W(P.dynamicChildren,re,ge,K,Q,st,de):Ce||fe(P,B,ge,null,K,Q,st,de,!1),ye>0){if(ye&16)H(ge,B,Ee,Me,K,Q,oe);else if(ye&2&&Ee.class!==Me.class&&o(ge,"class",null,Me.class,oe),ye&4&&o(ge,"style",Ee.style,Me.style,oe),ye&8){const mt=B.dynamicProps;for(let ut=0;ut<mt.length;ut++){const Ft=mt[ut],pn=Ee[Ft],Ir=Me[Ft];(Ir!==pn||Ft==="value")&&o(ge,Ft,pn,Ir,oe,P.children,K,Q,Z)}}ye&1&&P.children!==B.children&&h(ge,B.children)}else!Ce&&re==null&&H(ge,B,Ee,Me,K,Q,oe);((ze=Me.onVnodeUpdated)||Le)&&an(()=>{ze&&Rn(ze,K,B,P),Le&&Fr(B,P,K,"updated")},Q)},W=(P,B,K,Q,oe,de,Ce)=>{for(let ge=0;ge<B.length;ge++){const ye=P[ge],re=B[ge],Le=ye.el&&(ye.type===Ke||!br(ye,re)||ye.shapeFlag&70)?m(ye.el):K;S(ye,re,Le,null,Q,oe,de,Ce,!0)}},H=(P,B,K,Q,oe,de,Ce)=>{if(K!==Q){if(K!==xt)for(const ge in K)!ua(ge)&&!(ge in Q)&&o(P,ge,K[ge],null,Ce,B.children,oe,de,Z);for(const ge in Q){if(ua(ge))continue;const ye=Q[ge],re=K[ge];ye!==re&&ge!=="value"&&o(P,ge,re,ye,Ce,B.children,oe,de,Z)}"value"in Q&&o(P,"value",K.value,Q.value)}},U=(P,B,K,Q,oe,de,Ce,ge,ye)=>{const re=B.el=P?P.el:u(""),Le=B.anchor=P?P.anchor:u("");let{patchFlag:Ee,dynamicChildren:Me,slotScopeIds:ze}=B;ze&&(ge=ge?ge.concat(ze):ze),P==null?(r(re,K,Q),r(Le,K,Q),k(B.children,K,Le,oe,de,Ce,ge,ye)):Ee>0&&Ee&64&&Me&&P.dynamicChildren?(W(P.dynamicChildren,Me,K,oe,de,Ce,ge),(B.key!=null||oe&&B===oe.subTree)&&Dh(P,B,!0)):fe(P,B,K,Le,oe,de,Ce,ge,ye)},q=(P,B,K,Q,oe,de,Ce,ge,ye)=>{B.slotScopeIds=ge,P==null?B.shapeFlag&512?oe.ctx.activate(B,K,Q,Ce,ye):G(B,K,Q,oe,de,Ce,ye):me(P,B,ye)},G=(P,B,K,Q,oe,de,Ce)=>{const ge=P.component=g0(P,Q,oe);if($a(P)&&(ge.ctx.renderer=He),y0(ge),ge.asyncDep){if(oe&&oe.registerDep(ge,ce),!P.el){const ye=ge.subTree=y(gn);A(null,ye,B,K)}return}ce(ge,P,B,K,oe,de,Ce)},me=(P,B,K)=>{const Q=B.component=P.component;if(jP(P,B,K))if(Q.asyncDep&&!Q.asyncResolved){he(Q,B,K);return}else Q.next=B,$P(Q.update),Q.update();else B.el=P.el,Q.vnode=B},ce=(P,B,K,Q,oe,de,Ce)=>{const ge=()=>{if(P.isMounted){let{next:Le,bu:Ee,u:Me,parent:ze,vnode:st}=P,mt=Le,ut;ai(P,!1),Le?(Le.el=st.el,he(P,Le,Ce)):Le=st,Ee&&fo(Ee),(ut=Le.props&&Le.props.onVnodeBeforeUpdate)&&Rn(ut,ze,Le,st),ai(P,!0);const Ft=ou(P),pn=P.subTree;P.subTree=Ft,S(pn,Ft,m(pn.el),ue(pn),P,oe,de),Le.el=Ft.el,mt===null&&Th(P,Ft.el),Me&&an(Me,oe),(ut=Le.props&&Le.props.onVnodeUpdated)&&an(()=>Rn(ut,ze,Le,st),oe)}else{let Le;const{el:Ee,props:Me}=B,{bm:ze,m:st,parent:mt}=P,ut=_i(B);if(ai(P,!1),ze&&fo(ze),!ut&&(Le=Me&&Me.onVnodeBeforeMount)&&Rn(Le,mt,B),ai(P,!0),Ee&&Be){const Ft=()=>{P.subTree=ou(P),Be(Ee,P.subTree,P,oe,null)};ut?B.type.__asyncLoader().then(()=>!P.isUnmounted&&Ft()):Ft()}else{const Ft=P.subTree=ou(P);S(null,Ft,K,Q,P,oe,de),B.el=Ft.el}if(st&&an(st,oe),!ut&&(Le=Me&&Me.onVnodeMounted)){const Ft=B;an(()=>Rn(Le,mt,Ft),oe)}(B.shapeFlag&256||mt&&_i(mt.vnode)&&mt.vnode.shapeFlag&256)&&P.a&&an(P.a,oe),P.isMounted=!0,B=K=Q=null}},ye=P.effect=new Ma(ge,()=>Yu(re),P.scope),re=P.update=()=>ye.run();re.id=P.uid,ai(P,!0),re()},he=(P,B,K)=>{B.component=P;const Q=P.vnode.props;P.vnode=B,P.next=null,vR(P,B.props,Q,K),yR(P,B.children,K),ko(),pp(),Po()},fe=(P,B,K,Q,oe,de,Ce,ge,ye=!1)=>{const re=P&&P.children,Le=P?P.shapeFlag:0,Ee=B.children,{patchFlag:Me,shapeFlag:ze}=B;if(Me>0){if(Me&128){ve(re,Ee,K,Q,oe,de,Ce,ge,ye);return}else if(Me&256){_e(re,Ee,K,Q,oe,de,Ce,ge,ye);return}}ze&8?(Le&16&&Z(re,oe,de),Ee!==re&&h(K,Ee)):Le&16?ze&16?ve(re,Ee,K,Q,oe,de,Ce,ge,ye):Z(re,oe,de,!0):(Le&8&&h(K,""),ze&16&&k(Ee,K,Q,oe,de,Ce,ge,ye))},_e=(P,B,K,Q,oe,de,Ce,ge,ye)=>{P=P||uo,B=B||uo;const re=P.length,Le=B.length,Ee=Math.min(re,Le);let Me;for(Me=0;Me<Ee;Me++){const ze=B[Me]=ye?Ms(B[Me]):Nn(B[Me]);S(P[Me],ze,K,null,oe,de,Ce,ge,ye)}re>Le?Z(P,oe,de,!0,!1,Ee):k(B,K,Q,oe,de,Ce,ge,ye,Ee)},ve=(P,B,K,Q,oe,de,Ce,ge,ye)=>{let re=0;const Le=B.length;let Ee=P.length-1,Me=Le-1;for(;re<=Ee&&re<=Me;){const ze=P[re],st=B[re]=ye?Ms(B[re]):Nn(B[re]);if(br(ze,st))S(ze,st,K,null,oe,de,Ce,ge,ye);else break;re++}for(;re<=Ee&&re<=Me;){const ze=P[Ee],st=B[Me]=ye?Ms(B[Me]):Nn(B[Me]);if(br(ze,st))S(ze,st,K,null,oe,de,Ce,ge,ye);else break;Ee--,Me--}if(re>Ee){if(re<=Me){const ze=Me+1,st=ze<Le?B[ze].el:Q;for(;re<=Me;)S(null,B[re]=ye?Ms(B[re]):Nn(B[re]),K,st,oe,de,Ce,ge,ye),re++}}else if(re>Me)for(;re<=Ee;)le(P[re],oe,de,!0),re++;else{const ze=re,st=re,mt=new Map;for(re=st;re<=Me;re++){const rn=B[re]=ye?Ms(B[re]):Nn(B[re]);rn.key!=null&&mt.set(rn.key,re)}let ut,Ft=0;const pn=Me-st+1;let Ir=!1,Mi=0;const Gr=new Array(pn);for(re=0;re<pn;re++)Gr[re]=0;for(re=ze;re<=Ee;re++){const rn=P[re];if(Ft>=pn){le(rn,oe,de,!0);continue}let An;if(rn.key!=null)An=mt.get(rn.key);else for(ut=st;ut<=Me;ut++)if(Gr[ut-st]===0&&br(rn,B[ut])){An=ut;break}An===void 0?le(rn,oe,de,!0):(Gr[An-st]=re+1,An>=Mi?Mi=An:Ir=!0,S(rn,B[An],K,null,oe,de,Ce,ge,ye),Ft++)}const Bi=Ir?CR(Gr):uo;for(ut=Bi.length-1,re=pn-1;re>=0;re--){const rn=st+re,An=B[rn],Di=rn+1<Le?B[rn+1].el:Q;Gr[re]===0?S(null,An,K,Di,oe,de,Ce,ge,ye):Ir&&(ut<0||re!==Bi[ut]?pe(An,K,Di,2):ut--)}}},pe=(P,B,K,Q,oe=null)=>{const{el:de,type:Ce,transition:ge,children:ye,shapeFlag:re}=P;if(re&6){pe(P.component.subTree,B,K,Q);return}if(re&128){P.suspense.move(B,K,Q);return}if(re&64){Ce.move(P,B,K,He);return}if(Ce===Ke){r(de,B,K);for(let Ee=0;Ee<ye.length;Ee++)pe(ye[Ee],B,K,Q);r(P.anchor,B,K);return}if(Ce===wi){C(P,B,K);return}if(Q!==2&&re&1&&ge)if(Q===0)ge.beforeEnter(de),r(de,B,K),an(()=>ge.enter(de),oe);else{const{leave:Ee,delayLeave:Me,afterLeave:ze}=ge,st=()=>r(de,B,K),mt=()=>{Ee(de,()=>{st(),ze&&ze()})};Me?Me(de,st,mt):mt()}else r(de,B,K)},le=(P,B,K,Q=!1,oe=!1)=>{const{type:de,props:Ce,ref:ge,children:ye,dynamicChildren:re,shapeFlag:Le,patchFlag:Ee,dirs:Me}=P;if(ge!=null&&Cu(ge,null,K,P,!0),Le&256){B.ctx.deactivate(P);return}const ze=Le&1&&Me,st=!_i(P);let mt;if(st&&(mt=Ce&&Ce.onVnodeBeforeUnmount)&&Rn(mt,B,P),Le&6)Y(P.component,K,Q);else{if(Le&128){P.suspense.unmount(K,Q);return}ze&&Fr(P,null,B,"beforeUnmount"),Le&64?P.type.remove(P,B,K,oe,He,Q):re&&(de!==Ke||Ee>0&&Ee&64)?Z(re,B,K,!1,!0):(de===Ke&&Ee&384||!oe&&Le&16)&&Z(ye,B,K),Q&&Ne(P)}(st&&(mt=Ce&&Ce.onVnodeUnmounted)||ze)&&an(()=>{mt&&Rn(mt,B,P),ze&&Fr(P,null,B,"unmounted")},K)},Ne=P=>{const{type:B,el:K,anchor:Q,transition:oe}=P;if(B===Ke){gt(K,Q);return}if(B===wi){V(P);return}const de=()=>{i(K),oe&&!oe.persisted&&oe.afterLeave&&oe.afterLeave()};if(P.shapeFlag&1&&oe&&!oe.persisted){const{leave:Ce,delayLeave:ge}=oe,ye=()=>Ce(K,de);ge?ge(P.el,de,ye):ye()}else de()},gt=(P,B)=>{let K;for(;P!==B;)K=v(P),i(P),P=K;i(B)},Y=(P,B,K)=>{const{bum:Q,scope:oe,update:de,subTree:Ce,um:ge}=P;Q&&fo(Q),oe.stop(),de&&(de.active=!1,le(Ce,P,B,K)),ge&&an(ge,B),an(()=>{P.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&P.asyncDep&&!P.asyncResolved&&P.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},Z=(P,B,K,Q=!1,oe=!1,de=0)=>{for(let Ce=de;Ce<P.length;Ce++)le(P[Ce],B,K,Q,oe)},ue=P=>P.shapeFlag&6?ue(P.component.subTree):P.shapeFlag&128?P.suspense.next():v(P.anchor||P.el),Ae=(P,B,K)=>{P==null?B._vnode&&le(B._vnode,null,null,!0):S(B._vnode||null,P,B,null,null,null,K),pp(),_u(),B._vnode=P},He={p:S,um:le,m:pe,r:Ne,mt:G,mc:k,pc:fe,pbc:W,n:ue,o:e};let pt,Be;return t&&([pt,Be]=t(He)),{render:Ae,hydrate:pt,createApp:_R(Ae,pt)}}function ai({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Dh(e,t,n=!1){const r=e.children,i=t.children;if(Re(r)&&Re(i))for(let o=0;o<r.length;o++){const l=r[o];let u=i[o];u.shapeFlag&1&&!u.dynamicChildren&&((u.patchFlag<=0||u.patchFlag===32)&&(u=i[o]=Ms(i[o]),u.el=l.el),n||Dh(l,u)),u.type===zs&&(u.el=l.el)}}function CR(e){const t=e.slice(),n=[0];let r,i,o,l,u;const f=e.length;for(r=0;r<f;r++){const d=e[r];if(d!==0){if(i=n[n.length-1],e[i]<d){t[r]=i,n.push(r);continue}for(o=0,l=n.length-1;o<l;)u=o+l>>1,e[n[u]]<d?o=u+1:l=u;d<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,l=n[o-1];o-- >0;)n[o]=l,l=t[l];return n}const SR=e=>e.__isTeleport,da=e=>e&&(e.disabled||e.disabled===""),kp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Td=(e,t)=>{const n=e&&e.to;return Bt(n)?t?t(n):null:n},xR={__isTeleport:!0,process(e,t,n,r,i,o,l,u,f,d){const{mc:h,pc:m,pbc:v,o:{insert:p,querySelector:b,createText:S,createComment:T}}=d,A=da(t.props);let{shapeFlag:w,children:C,dynamicChildren:V}=t;if(e==null){const L=t.el=S(""),F=t.anchor=S("");p(L,n,r),p(F,n,r);const O=t.target=Td(t.props,b),k=t.targetAnchor=S("");O&&(p(k,O),l=l||kp(O));const z=(W,H)=>{w&16&&h(C,W,H,i,o,l,u,f)};A?z(n,F):O&&z(O,k)}else{t.el=e.el;const L=t.anchor=e.anchor,F=t.target=e.target,O=t.targetAnchor=e.targetAnchor,k=da(e.props),z=k?n:F,W=k?L:O;if(l=l||kp(F),V?(v(e.dynamicChildren,V,z,i,o,l,u),Dh(e,t,!0)):f||m(e,t,z,W,i,o,l,u,!1),A)k||Ql(t,n,L,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const H=t.target=Td(t.props,b);H&&Ql(t,H,null,d,0)}else k&&Ql(t,F,O,d,1)}d0(t)},remove(e,t,n,r,{um:i,o:{remove:o}},l){const{shapeFlag:u,children:f,anchor:d,targetAnchor:h,target:m,props:v}=e;if(m&&o(h),(l||!da(v))&&(o(d),u&16))for(let p=0;p<f.length;p++){const b=f[p];i(b,t,n,!0,!!b.dynamicChildren)}},move:Ql,hydrate:AR};function Ql(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:l,anchor:u,shapeFlag:f,children:d,props:h}=e,m=o===2;if(m&&r(l,t,n),(!m||da(h))&&f&16)for(let v=0;v<d.length;v++)i(d[v],t,n,2);m&&r(u,t,n)}function AR(e,t,n,r,i,o,{o:{nextSibling:l,parentNode:u,querySelector:f}},d){const h=t.target=Td(t.props,f);if(h){const m=h._lpa||h.firstChild;if(t.shapeFlag&16)if(da(t.props))t.anchor=d(l(e),t,u(e),n,r,i,o),t.targetAnchor=m;else{t.anchor=l(e);let v=m;for(;v;)if(v=l(v),v&&v.nodeType===8&&v.data==="teleport anchor"){t.targetAnchor=v,h._lpa=t.targetAnchor&&l(t.targetAnchor);break}d(m,t,h,n,r,i,o)}d0(t)}return t.anchor&&l(t.anchor)}const f0=xR;function d0(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ke=Symbol(void 0),zs=Symbol(void 0),gn=Symbol(void 0),wi=Symbol(void 0),ha=[];let In=null;function ie(e=!1){ha.push(In=e?null:[])}function h0(){ha.pop(),In=ha[ha.length-1]||null}let Ai=1;function kd(e){Ai+=e}function m0(e){return e.dynamicChildren=Ai>0?In||uo:null,h0(),Ai>0&&In&&In.push(e),e}function Fe(e,t,n,r,i,o){return m0(D(e,t,n,r,i,o,!0))}function je(e,t,n,r,i){return m0(y(e,t,n,r,i,!0))}function Ws(e){return e?e.__v_isVNode===!0:!1}function br(e,t){return e.type===t.type&&e.key===t.key}function ER(e){}const nc="__vInternal",v0=({key:e})=>e??null,lu=({ref:e,ref_key:t,ref_for:n})=>e!=null?Bt(e)||At(e)||qe(e)?{i:ln,r:e,k:t,f:!!n}:e:null;function D(e,t=null,n=null,r=0,i=null,o=e===Ke?0:1,l=!1,u=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&v0(t),ref:t&&lu(t),scopeId:Xu,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ln};return u?(Hh(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=Bt(n)?8:16),Ai>0&&!l&&In&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&In.push(f),f}const y=TR;function TR(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===Qy)&&(e=gn),Ws(e)){const u=xr(e,t,!0);return n&&Hh(u,n),Ai>0&&!o&&In&&(u.shapeFlag&6?In[In.indexOf(e)]=u:In.push(u)),u.patchFlag|=-2,u}if(FR(e)&&(e=e.__vccOpts),t){t=$h(t);let{class:u,style:f}=t;u&&!Bt(u)&&(t.class=Cr(u)),Rt(f)&&(wh(f)&&!Re(f)&&(f=Ut({},f)),t.style=Va(f))}const l=Bt(e)?1:Uy(e)?128:SR(e)?64:Rt(e)?4:qe(e)?2:0;return D(e,t,n,r,i,l,o,!0)}function $h(e){return e?wh(e)||nc in e?Ut({},e):e:null}function xr(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:l}=e,u=t?Oe(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&v0(u),ref:t&&t.ref?n&&i?Re(i)?i.concat(lu(t)):[i,lu(t)]:lu(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xr(e.ssContent),ssFallback:e.ssFallback&&xr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Te(e=" ",t=0){return y(zs,null,e,t)}function kR(e,t){const n=y(wi,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(ie(),je(gn,null,e)):y(gn,null,e)}function Nn(e){return e==null||typeof e=="boolean"?y(gn):Re(e)?y(Ke,null,e.slice()):typeof e=="object"?Ms(e):y(zs,null,String(e))}function Ms(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xr(e)}function Hh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Re(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Hh(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(nc in t)?t._ctx=ln:i===3&&ln&&(ln.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else qe(t)?(t={default:t,_ctx:ln},n=32):(t=String(t),r&64?(n=16,t=[Te(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oe(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Cr([t.class,r.class]));else if(i==="style")t.style=Va([t.style,r.style]);else if(Fa(i)){const o=t[i],l=r[i];l&&o!==l&&!(Re(o)&&o.includes(l))&&(t[i]=o?[].concat(o,l):l)}else i!==""&&(t[i]=r[i])}return t}function Rn(e,t,n,r=null){zn(e,t,7,[n,r])}const PR=a0();let RR=0;function g0(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||PR,o={uid:RR++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new ph(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:r0(r,i),emitsOptions:Ny(r,i),emit:null,emitted:null,propsDefaults:xt,inheritAttrs:r.inheritAttrs,ctx:xt,data:xt,props:xt,attrs:xt,slots:xt,refs:xt,setupState:xt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=NP.bind(null,o),e.ce&&e.ce(o),o}let Nt=null;const Ur=()=>Nt||ln,Gs=e=>{Nt=e,e.scope.on()},$s=()=>{Nt&&Nt.scope.off(),Nt=null};function p0(e){return e.vnode.shapeFlag&4}let yo=!1;function y0(e,t=!1){yo=t;const{props:n,children:r}=e.vnode,i=p0(e);mR(e,n,i,t),pR(e,r);const o=i?IR(e,t):void 0;return yo=!1,o}function IR(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wn(new Proxy(e.ctx,Sd));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?_0(e):null;Gs(e),ko();const o=us(r,e,0,[e.props,i]);if(Po(),$s(),vh(o)){if(o.then($s,$s),t)return o.then(l=>{Pd(e,l,t)}).catch(l=>{Pi(l,e,0)});e.asyncDep=o}else Pd(e,o,t)}else b0(e,t)}function Pd(e,t,n){qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)&&(e.setupState=xh(t)),b0(e,n)}let Su,Rd;function LR(e){Su=e,Rd=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,lR))}}const OR=()=>!Su;function b0(e,t,n){const r=e.type;if(!e.render){if(!t&&Su&&!r.render){const i=r.template||Mh(e).template;if(i){const{isCustomElement:o,compilerOptions:l}=e.appContext.config,{delimiters:u,compilerOptions:f}=r,d=Ut(Ut({isCustomElement:o,delimiters:u},l),f);r.render=Su(i,d)}}e.render=r.render||wr,Rd&&Rd(e)}Gs(e),ko(),uR(e),Po(),$s()}function VR(e){return new Proxy(e.attrs,{get(t,n){return Ln(e,"get","$attrs"),t[n]}})}function _0(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=VR(e))},slots:e.slots,emit:e.emit,expose:t}}function rc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(xh(Wn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fa)return fa[n](e)},has(t,n){return n in t||n in fa}}))}function Id(e,t=!0){return qe(e)?e.displayName||e.name:e.name||t&&e.__name}function FR(e){return qe(e)&&"__vccOpts"in e}const R=(e,t)=>VP(e,t,yo);function MR(){return null}function BR(){return null}function DR(e){}function $R(e,t){return null}function HR(){return w0().slots}function NR(){return w0().attrs}function w0(){const e=Ur();return e.setupContext||(e.setupContext=_0(e))}function UR(e,t){const n=Re(e)?e.reduce((r,i)=>(r[i]={},r),{}):e;for(const r in t){const i=n[r];i?Re(i)||qe(i)?n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(n[r]={default:t[r]})}return n}function zR(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function WR(e){const t=Ur();let n=e();return $s(),vh(n)&&(n=n.catch(r=>{throw Gs(t),r})),[n,()=>Gs(t)]}function vs(e,t,n){const r=arguments.length;return r===2?Rt(t)&&!Re(t)?Ws(t)?y(e,null,[t]):y(e,t):y(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ws(n)&&(n=[n]),y(e,t,n))}const C0=Symbol(""),S0=()=>rt(C0);function GR(){}function jR(e,t,n,r){const i=n[r];if(i&&x0(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function x0(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(go(n[r],t[r]))return!1;return Ai>0&&In&&In.push(e),!0}const A0="3.2.47",KR={createComponentInstance:g0,setupComponent:y0,renderComponentRoot:ou,setCurrentRenderingInstance:xa,isVNode:Ws,normalizeVNode:Nn},qR=KR,YR=null,ZR=null,XR="http://www.w3.org/2000/svg",mi=typeof document<"u"?document:null,Pp=mi&&mi.createElement("template"),JR={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?mi.createElementNS(XR,e):mi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const l=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Pp.innerHTML=r?`<svg>${e}</svg>`:e;const u=Pp.content;if(r){const f=u.firstChild;for(;f.firstChild;)u.appendChild(f.firstChild);u.removeChild(f)}t.insertBefore(u,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function QR(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function eI(e,t,n){const r=e.style,i=Bt(n);if(n&&!i){if(t&&!Bt(t))for(const o in t)n[o]==null&&Ld(r,o,"");for(const o in n)Ld(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Rp=/\s*!important$/;function Ld(e,t,n){if(Re(n))n.forEach(r=>Ld(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tI(e,t);Rp.test(n)?e.setProperty(ir(r),n.replace(Rp,""),"important"):e[r]=n}}const Ip=["Webkit","Moz","ms"],Yf={};function tI(e,t){const n=Yf[t];if(n)return n;let r=vn(t);if(r!=="filter"&&r in e)return Yf[t]=r;r=ki(r);for(let i=0;i<Ip.length;i++){const o=Ip[i]+r;if(o in e)return Yf[t]=o}return t}const Lp="http://www.w3.org/1999/xlink";function nI(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Lp,t.slice(6,t.length)):e.setAttributeNS(Lp,t,n);else{const o=Hk(t);n==null||o&&!py(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function rI(e,t,n,r,i,o,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,i,o),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n??"";(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let u=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=py(n):n==null&&f==="string"?(n="",u=!0):f==="number"&&(n=0,u=!0)}try{e[t]=n}catch{}u&&e.removeAttribute(t)}function is(e,t,n,r){e.addEventListener(t,n,r)}function sI(e,t,n,r){e.removeEventListener(t,n,r)}function iI(e,t,n,r,i=null){const o=e._vei||(e._vei={}),l=o[t];if(r&&l)l.value=r;else{const[u,f]=oI(t);if(r){const d=o[t]=uI(r,i);is(e,u,d,f)}else l&&(sI(e,u,l,f),o[t]=void 0)}}const Op=/(?:Once|Passive|Capture)$/;function oI(e){let t;if(Op.test(e)){t={};let r;for(;r=e.match(Op);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ir(e.slice(2)),t]}let Zf=0;const aI=Promise.resolve(),lI=()=>Zf||(aI.then(()=>Zf=0),Zf=Date.now());function uI(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;zn(cI(r,n.value),t,5,[r])};return n.value=e,n.attached=lI(),n}function cI(e,t){if(Re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Vp=/^on[a-z]/,fI=(e,t,n,r,i=!1,o,l,u,f)=>{t==="class"?QR(e,r,i):t==="style"?eI(e,n,r):Fa(t)?hh(t)||iI(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dI(e,t,r,i))?rI(e,t,r,o,l,u,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nI(e,t,r,i))};function dI(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Vp.test(t)&&qe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vp.test(t)&&Bt(n)?!1:t in e}function E0(e,t){const n=Io(e);class r extends sc{constructor(o){super(n,o,t)}}return r.def=n,r}const hI=e=>E0(e,U0),mI=typeof HTMLElement<"u"?HTMLElement:class{};class sc extends mI{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Yt(()=>{this._connected||(Md(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:o,styles:l}=r;let u;if(o&&!Re(o))for(const f in o){const d=o[f];(d===Number||d&&d.type===Number)&&(f in this._props&&(this._props[f]=yu(this._props[f])),(u||(u=Object.create(null)))[vn(f)]=!0)}this._numberProps=u,i&&this._resolveProps(r),this._applyStyles(l),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=Re(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(vn))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(t){let n=this.getAttribute(t);const r=vn(t);this._numberProps&&this._numberProps[r]&&(n=yu(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ir(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ir(t),n+""):n||this.removeAttribute(ir(t))))}_update(){Md(this._createVNode(),this.shadowRoot)}_createVNode(){const t=y(this._def,Ut({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,l)=>{this.dispatchEvent(new CustomEvent(o,{detail:l}))};n.emit=(o,...l)=>{r(o,l),ir(o)!==o&&r(ir(o),l)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof sc){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function vI(e="$style"){{const t=Ur();if(!t)return xt;const n=t.type.__cssModules;if(!n)return xt;const r=n[e];return r||xt}}function gI(e){const t=Ur();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Vd(o,i))},r=()=>{const i=e(t.proxy);Od(t.subTree,i),n(i)};Wy(r),ar(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),tc(()=>i.disconnect())})}function Od(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Od(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Vd(e.el,t);else if(e.type===Ke)e.children.forEach(n=>Od(n,t));else if(e.type===wi){let{el:n,anchor:r}=e;for(;n&&(Vd(n,t),n!==r);)n=n.nextSibling}}function Vd(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Is="transition",ta="animation",Ar=(e,{slots:t})=>vs(Rh,k0(e),t);Ar.displayName="Transition";const T0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},pI=Ar.props=Ut({},Rh.props,T0),li=(e,t=[])=>{Re(e)?e.forEach(n=>n(...t)):e&&e(...t)},Fp=e=>e?Re(e)?e.some(t=>t.length>1):e.length>1:!1;function k0(e){const t={};for(const U in e)U in T0||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:u=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:d=l,appearToClass:h=u,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,b=yI(i),S=b&&b[0],T=b&&b[1],{onBeforeEnter:A,onEnter:w,onEnterCancelled:C,onLeave:V,onLeaveCancelled:L,onBeforeAppear:F=A,onAppear:O=w,onAppearCancelled:k=C}=t,z=(U,q,G)=>{Vs(U,q?h:u),Vs(U,q?d:l),G&&G()},W=(U,q)=>{U._isLeaving=!1,Vs(U,m),Vs(U,p),Vs(U,v),q&&q()},H=U=>(q,G)=>{const me=U?O:w,ce=()=>z(q,U,G);li(me,[q,ce]),Mp(()=>{Vs(q,U?f:o),rs(q,U?h:u),Fp(me)||Bp(q,r,S,ce)})};return Ut(t,{onBeforeEnter(U){li(A,[U]),rs(U,o),rs(U,l)},onBeforeAppear(U){li(F,[U]),rs(U,f),rs(U,d)},onEnter:H(!1),onAppear:H(!0),onLeave(U,q){U._isLeaving=!0;const G=()=>W(U,q);rs(U,m),R0(),rs(U,v),Mp(()=>{U._isLeaving&&(Vs(U,m),rs(U,p),Fp(V)||Bp(U,r,T,G))}),li(V,[U,G])},onEnterCancelled(U){z(U,!1),li(C,[U])},onAppearCancelled(U){z(U,!0),li(k,[U])},onLeaveCancelled(U){W(U),li(L,[U])}})}function yI(e){if(e==null)return null;if(Rt(e))return[Xf(e.enter),Xf(e.leave)];{const t=Xf(e);return[t,t]}}function Xf(e){return yu(e)}function rs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Vs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Mp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bI=0;function Bp(e,t,n,r){const i=e._endId=++bI,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:l,timeout:u,propCount:f}=P0(e,t);if(!l)return r();const d=l+"end";let h=0;const m=()=>{e.removeEventListener(d,v),o()},v=p=>{p.target===e&&++h>=f&&m()};setTimeout(()=>{h<f&&m()},u+1),e.addEventListener(d,v)}function P0(e,t){const n=window.getComputedStyle(e),r=b=>(n[b]||"").split(", "),i=r(`${Is}Delay`),o=r(`${Is}Duration`),l=Dp(i,o),u=r(`${ta}Delay`),f=r(`${ta}Duration`),d=Dp(u,f);let h=null,m=0,v=0;t===Is?l>0&&(h=Is,m=l,v=o.length):t===ta?d>0&&(h=ta,m=d,v=f.length):(m=Math.max(l,d),h=m>0?l>d?Is:ta:null,v=h?h===Is?o.length:f.length:0);const p=h===Is&&/\b(transform|all)(,|$)/.test(r(`${Is}Property`).toString());return{type:h,timeout:m,propCount:v,hasTransform:p}}function Dp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>$p(n)+$p(e[r])))}function $p(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function R0(){return document.body.offsetHeight}const I0=new WeakMap,L0=new WeakMap,O0={name:"TransitionGroup",props:Ut({},pI,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ur(),r=Ph();let i,o;return ec(()=>{if(!i.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!xI(i[0].el,n.vnode.el,l))return;i.forEach(wI),i.forEach(CI);const u=i.filter(SI);R0(),u.forEach(f=>{const d=f.el,h=d.style;rs(d,l),h.transform=h.webkitTransform=h.transitionDuration="";const m=d._moveCb=v=>{v&&v.target!==d||(!v||/transform$/.test(v.propertyName))&&(d.removeEventListener("transitionend",m),d._moveCb=null,Vs(d,l))};d.addEventListener("transitionend",m)})}),()=>{const l=Ze(e),u=k0(l);let f=l.tag||Ke;i=o,o=t.default?Ju(t.default()):[];for(let d=0;d<o.length;d++){const h=o[d];h.key!=null&&xi(h,po(h,u,r,n))}if(i)for(let d=0;d<i.length;d++){const h=i[d];xi(h,po(h,u,r,n)),I0.set(h,h.el.getBoundingClientRect())}return y(f,null,o)}}},_I=e=>delete e.mode;O0.props;const V0=O0;function wI(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function CI(e){L0.set(e,e.el.getBoundingClientRect())}function SI(e){const t=I0.get(e),n=L0.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function xI(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(l=>{l.split(/\s+/).forEach(u=>u&&r.classList.remove(u))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=P0(r);return i.removeChild(r),o}const js=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Re(t)?n=>fo(t,n):t};function AI(e){e.target.composing=!0}function Hp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xu={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=js(i);const o=r||i.props&&i.props.type==="number";is(e,t?"change":"input",l=>{if(l.target.composing)return;let u=e.value;n&&(u=u.trim()),o&&(u=pu(u)),e._assign(u)}),n&&is(e,"change",()=>{e.value=e.value.trim()}),t||(is(e,"compositionstart",AI),is(e,"compositionend",Hp),is(e,"change",Hp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=js(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&pu(e.value)===t))return;const l=t??"";e.value!==l&&(e.value=l)}},Nh={deep:!0,created(e,t,n){e._assign=js(n),is(e,"change",()=>{const r=e._modelValue,i=bo(e),o=e.checked,l=e._assign;if(Re(r)){const u=Nu(r,i),f=u!==-1;if(o&&!f)l(r.concat(i));else if(!o&&f){const d=[...r];d.splice(u,1),l(d)}}else if(Ti(r)){const u=new Set(r);o?u.add(i):u.delete(i),l(u)}else l(M0(e,o))})},mounted:Np,beforeUpdate(e,t,n){e._assign=js(n),Np(e,t,n)}};function Np(e,{value:t,oldValue:n},r){e._modelValue=t,Re(t)?e.checked=Nu(t,r.props.value)>-1:Ti(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Ns(t,M0(e,!0)))}const Uh={created(e,{value:t},n){e.checked=Ns(t,n.props.value),e._assign=js(n),is(e,"change",()=>{e._assign(bo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=js(r),t!==n&&(e.checked=Ns(t,r.props.value))}},F0={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ti(t);is(e,"change",()=>{const o=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?pu(bo(l)):bo(l));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=js(r)},mounted(e,{value:t}){Up(e,t)},beforeUpdate(e,t,n){e._assign=js(n)},updated(e,{value:t}){Up(e,t)}};function Up(e,t){const n=e.multiple;if(!(n&&!Re(t)&&!Ti(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=bo(o);if(n)Re(t)?o.selected=Nu(t,l)>-1:o.selected=t.has(l);else if(Ns(bo(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bo(e){return"_value"in e?e._value:e.value}function M0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const B0={created(e,t,n){eu(e,t,n,null,"created")},mounted(e,t,n){eu(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){eu(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){eu(e,t,n,r,"updated")}};function D0(e,t){switch(e){case"SELECT":return F0;case"TEXTAREA":return xu;default:switch(t){case"checkbox":return Nh;case"radio":return Uh;default:return xu}}}function eu(e,t,n,r,i){const l=D0(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}function EI(){xu.getSSRProps=({value:e})=>({value:e}),Uh.getSSRProps=({value:e},t)=>{if(t.props&&Ns(t.props.value,e))return{checked:!0}},Nh.getSSRProps=({value:e},t)=>{if(Re(e)){if(t.props&&Nu(e,t.props.value)>-1)return{checked:!0}}else if(Ti(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},B0.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=D0(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TI=["ctrl","shift","alt","meta"],kI={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>TI.some(n=>e[`${n}Key`]&&!t.includes(n))},Fd=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const o=kI[t[i]];if(o&&o(n,t))return}return e(n,...r)},PI={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cs=(e,t)=>n=>{if(!("key"in n))return;const r=ir(n.key);if(t.some(i=>i===r||PI[i]===r))return e(n)},lr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):na(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),na(e,!0),r.enter(e)):r.leave(e,()=>{na(e,!1)}):na(e,t))},beforeUnmount(e,{value:t}){na(e,t)}};function na(e,t){e.style.display=t?e._vod:"none"}function RI(){lr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const $0=Ut({patchProp:fI},JR);let ma,zp=!1;function H0(){return ma||(ma=l0($0))}function N0(){return ma=zp?ma:u0($0),zp=!0,ma}const Md=(...e)=>{H0().render(...e)},U0=(...e)=>{N0().hydrate(...e)},II=(...e)=>{const t=H0().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=z0(r);if(!i)return;const o=t._component;!qe(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const l=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t},LI=(...e)=>{const t=N0().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=z0(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function z0(e){return Bt(e)?document.querySelector(e):e}let Wp=!1;const OI=()=>{Wp||(Wp=!0,EI(),RI())},VI=()=>{},QD=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Rh,Comment:gn,EffectScope:ph,Fragment:Ke,KeepAlive:rR,ReactiveEffect:Ma,Static:wi,Suspense:qP,Teleport:f0,Text:zs,Transition:Ar,TransitionGroup:V0,VueElement:sc,assertNumber:MP,callWithAsyncErrorHandling:zn,callWithErrorHandling:us,camelize:vn,capitalize:ki,cloneVNode:xr,compatUtils:ZR,compile:VI,computed:R,createApp:II,createBlock:je,createCommentVNode:Lt,createElementBlock:Fe,createElementVNode:D,createHydrationRenderer:u0,createPropsRestProxy:zR,createRenderer:l0,createSSRApp:LI,createSlots:oR,createStaticVNode:kR,createTextVNode:Te,createVNode:y,customRef:IP,defineAsyncComponent:Ih,defineComponent:Io,defineCustomElement:E0,defineEmits:BR,defineExpose:DR,defineProps:MR,defineSSRCustomElement:hI,get devtools(){return so},effect:Jk,effectScope:To,getCurrentInstance:Ur,getCurrentScope:yh,getTransitionRawChildren:Ju,guardReactiveProps:$h,h:vs,handleError:Pi,hydrate:U0,initCustomFormatter:GR,initDirectivesForSSR:OI,inject:rt,isMemoSame:x0,isProxy:wh,isReactive:ls,isReadonly:Si,isRef:At,isRuntimeOnly:OR,isShallow:_a,isVNode:Ws,markRaw:Wn,mergeDefaults:UR,mergeProps:Oe,nextTick:Yt,normalizeClass:Cr,normalizeProps:dh,normalizeStyle:Va,onActivated:Lh,onBeforeMount:Ha,onBeforeUnmount:On,onBeforeUpdate:qy,onDeactivated:Oh,onErrorCaptured:Jy,onMounted:ar,onRenderTracked:Xy,onRenderTriggered:Zy,onScopeDispose:Sn,onServerPrefetch:Yy,onUnmounted:tc,onUpdated:ec,openBlock:ie,popScopeId:Ii,provide:Pt,proxyRefs:xh,pushScopeId:Ri,queuePostFlushCb:Eh,reactive:Qt,readonly:Ro,ref:J,registerRuntimeCompiler:LR,render:Md,renderList:Dr,renderSlot:aR,resolveComponent:Vt,resolveDirective:Sr,resolveDynamicComponent:Li,resolveFilter:YR,resolveTransitionHooks:po,setBlockTracking:kd,setDevtoolsHook:Hy,setTransitionHooks:xi,shallowReactive:Vy,shallowReadonly:EP,shallowRef:qu,ssrContextKey:C0,ssrUtils:qR,stop:Qk,toDisplayString:be,toHandlerKey:ca,toHandlers:au,toRaw:Ze,toRef:Se,toRefs:Ba,transformVNodeArgs:ER,triggerRef:kP,unref:mn,useAttrs:NR,useCssModule:vI,useCssVars:gI,useSSRContext:S0,useSlots:HR,useTransitionState:Ph,vModelCheckbox:Nh,vModelDynamic:B0,vModelRadio:Uh,vModelSelect:F0,vModelText:xu,vShow:lr,version:A0,warn:FP,watch:De,watchEffect:Nr,watchPostEffect:Wy,watchSyncEffect:QP,withAsyncContext:WR,withCtx:se,withDefaults:$R,withDirectives:qt,withKeys:cs,withMemo:jR,withModifiers:Fd,withScopeId:UP},Symbol.toStringTag,{value:"Module"}));var FI=!1;/*!
|
|
2
|
-
* pinia v2.0.35
|
|
3
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/let W0;const ic=e=>W0=e,G0=Symbol();function Bd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var va;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(va||(va={}));function e8(){const e=To(!0),t=e.run(()=>J({}));let n=[],r=[];const i=Wn({install(o){ic(i),i._a=o,o.provide(G0,i),o.config.globalProperties.$pinia=i,r.forEach(l=>n.push(l)),r=[]},use(o){return!this._a&&!FI?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const j0=()=>{};function Gp(e,t,n,r=j0){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&yh()&&Sn(i),i}function Qi(e,...t){e.slice().forEach(n=>{n(...t)})}function Dd(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Bd(i)&&Bd(r)&&e.hasOwnProperty(n)&&!At(r)&&!ls(r)?e[n]=Dd(i,r):e[n]=r}return e}const MI=Symbol();function BI(e){return!Bd(e)||!e.hasOwnProperty(MI)}const{assign:Fs}=Object;function DI(e){return!!(At(e)&&e.effect)}function $I(e,t,n,r){const{state:i,actions:o,getters:l}=t,u=n.state.value[e];let f;function d(){u||(n.state.value[e]=i?i():{});const h=Ba(n.state.value[e]);return Fs(h,o,Object.keys(l||{}).reduce((m,v)=>(m[v]=Wn(R(()=>{ic(n);const p=n._s.get(e);return l[v].call(p,p)})),m),{}))}return f=K0(e,d,t,n,r,!0),f}function K0(e,t,n={},r,i,o){let l;const u=Fs({actions:{}},n),f={deep:!0};let d,h,m=Wn([]),v=Wn([]),p;const b=r.state.value[e];!o&&!b&&(r.state.value[e]={}),J({});let S;function T(O){let k;d=h=!1,typeof O=="function"?(O(r.state.value[e]),k={type:va.patchFunction,storeId:e,events:p}):(Dd(r.state.value[e],O),k={type:va.patchObject,payload:O,storeId:e,events:p});const z=S=Symbol();Yt().then(()=>{S===z&&(d=!0)}),h=!0,Qi(m,k,r.state.value[e])}const A=o?function(){const{state:k}=n,z=k?k():{};this.$patch(W=>{Fs(W,z)})}:j0;function w(){l.stop(),m=[],v=[],r._s.delete(e)}function C(O,k){return function(){ic(r);const z=Array.from(arguments),W=[],H=[];function U(me){W.push(me)}function q(me){H.push(me)}Qi(v,{args:z,name:O,store:L,after:U,onError:q});let G;try{G=k.apply(this&&this.$id===e?this:L,z)}catch(me){throw Qi(H,me),me}return G instanceof Promise?G.then(me=>(Qi(W,me),me)).catch(me=>(Qi(H,me),Promise.reject(me))):(Qi(W,G),G)}}const V={_p:r,$id:e,$onAction:Gp.bind(null,v),$patch:T,$reset:A,$subscribe(O,k={}){const z=Gp(m,O,k.detached,()=>W()),W=l.run(()=>De(()=>r.state.value[e],H=>{(k.flush==="sync"?h:d)&&O({storeId:e,type:va.direct,events:p},H)},Fs({},f,k)));return z},$dispose:w},L=Qt(V);r._s.set(e,L);const F=r._e.run(()=>(l=To(),l.run(()=>t())));for(const O in F){const k=F[O];if(At(k)&&!DI(k)||ls(k))o||(b&&BI(k)&&(At(k)?k.value=b[O]:Dd(k,b[O])),r.state.value[e][O]=k);else if(typeof k=="function"){const z=C(O,k);F[O]=z,u.actions[O]=k}}return Fs(L,F),Fs(Ze(L),F),Object.defineProperty(L,"$state",{get:()=>r.state.value[e],set:O=>{T(k=>{Fs(k,O)})}}),r._p.forEach(O=>{Fs(L,l.run(()=>O({store:L,app:r._a,pinia:r,options:u})))}),b&&o&&n.hydrate&&n.hydrate(L.$state,b),d=!0,h=!0,L}function Na(e,t,n){let r,i;const o=typeof t=="function";typeof e=="string"?(r=e,i=o?n:t):(i=e,r=e.id);function l(u,f){const d=Ur();return u=u||d&&rt(G0,null),u&&ic(u),u=W0,u._s.has(r)||(o?K0(r,t,i,u):$I(r,i,u)),u._s.get(r)}return l.$id=r,l}function Et(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(){return e(this.$pinia)[r]},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(){const i=e(this.$pinia),o=t[r];return typeof o=="function"?o.call(this,i):i[o]},n),{})}const Rr=Et;function Gt(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]=function(...i){return e(this.$pinia)[r](...i)},n),{}):Object.keys(t).reduce((n,r)=>(n[r]=function(...i){return e(this.$pinia)[t[r]](...i)},n),{})}function zh(e,t){return Array.isArray(t)?t.reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[r]},set(i){return e(this.$pinia)[r]=i}},n),{}):Object.keys(t).reduce((n,r)=>(n[r]={get(){return e(this.$pinia)[t[r]]},set(i){return e(this.$pinia)[t[r]]=i}},n),{})}const q0=["detail","oldPassword","password","username","passwordConfirm","path"];Object.freeze(q0);const HI=e=>{let t=[];if(e&&e.response&&e.response.data){let n=e.response.data;for(const r of q0)if(r in n){n=n[r];break}t=Array.isArray(n)?n.flat():[n]}else console.warn("Unable to parse error",e);return t.length===0&&(t=["Unknown error"]),t},kt=Na("common",{state:()=>({form:{errors:[],success:""},versions:{installed:"1.4.0-a1",latest:void 0},timestamp:Date.now(),isSettingsDrawerOpen:!1}),getters:{isMobile:function(){return window.orientation!==void 0||navigator.userAgent.includes("IEMobile")}},actions:{async loadVersions(){await n1.getVersions(this.timestamp).then(e=>{const t=e.data;return this.versions=t}).catch(console.error)},downloadIOSPWAFix(e,t){n1.downloadIOSPWAFix(e,t)},setErrors(e){const t=HI(e);this.$patch(n=>{n.form.errors=t,n.form.success=""})},setSuccess(e){this.$patch(t=>{t.form.errors=[],t.form.success=e})},clearErrors(){this.$patch(e=>{e.form.errors=[],e.form.success=""})},setTimestamp(){this.timestamp=Date.now()}}});function Y0(e,t){return function(){return e.apply(t,arguments)}}const{toString:NI}=Object.prototype,{getPrototypeOf:Wh}=Object,oc=(e=>t=>{const n=NI.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gs=e=>(e=e.toLowerCase(),t=>oc(t)===e),ac=e=>t=>typeof t===e,{isArray:Lo}=Array,Ea=ac("undefined");function UI(e){return e!==null&&!Ea(e)&&e.constructor!==null&&!Ea(e.constructor)&&hs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Z0=gs("ArrayBuffer");function zI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Z0(e.buffer),t}const WI=ac("string"),hs=ac("function"),X0=ac("number"),Gh=e=>e!==null&&typeof e=="object",GI=e=>e===!0||e===!1,uu=e=>{if(oc(e)!=="object")return!1;const t=Wh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jI=gs("Date"),KI=gs("File"),qI=gs("Blob"),YI=gs("FileList"),ZI=e=>Gh(e)&&hs(e.pipe),XI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||hs(e.append)&&((t=oc(e))==="formdata"||t==="object"&&hs(e.toString)&&e.toString()==="[object FormData]"))},JI=gs("URLSearchParams"),QI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ua(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Lo(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),l=o.length;let u;for(r=0;r<l;r++)u=o[r],t.call(null,e[u],u,e)}}function J0(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Q0=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),eb=e=>!Ea(e)&&e!==Q0;function $d(){const{caseless:e}=eb(this)&&this||{},t={},n=(r,i)=>{const o=e&&J0(t,i)||i;uu(t[o])&&uu(r)?t[o]=$d(t[o],r):uu(r)?t[o]=$d({},r):Lo(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Ua(arguments[r],n);return t}const e5=(e,t,n,{allOwnKeys:r}={})=>(Ua(t,(i,o)=>{n&&hs(i)?e[o]=Y0(i,n):e[o]=i},{allOwnKeys:r}),e),t5=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),n5=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},r5=(e,t,n,r)=>{let i,o,l;const u={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)l=i[o],(!r||r(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&Wh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},s5=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},i5=e=>{if(!e)return null;if(Lo(e))return e;let t=e.length;if(!X0(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},o5=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wh(Uint8Array)),a5=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},l5=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u5=gs("HTMLFormElement"),c5=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),jp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f5=gs("RegExp"),tb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ua(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},d5=e=>{tb(e,(t,n)=>{if(hs(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(hs(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},h5=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Lo(e)?r(e):r(String(e).split(t)),n},m5=()=>{},v5=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Jf="abcdefghijklmnopqrstuvwxyz",Kp="0123456789",nb={DIGIT:Kp,ALPHA:Jf,ALPHA_DIGIT:Jf+Jf.toUpperCase()+Kp},g5=(e=16,t=nb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function p5(e){return!!(e&&hs(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const y5=e=>{const t=new Array(10),n=(r,i)=>{if(Gh(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Lo(r)?[]:{};return Ua(r,(l,u)=>{const f=n(l,i+1);!Ea(f)&&(o[u]=f)}),t[i]=void 0,o}}return r};return n(e,0)},ee={isArray:Lo,isArrayBuffer:Z0,isBuffer:UI,isFormData:XI,isArrayBufferView:zI,isString:WI,isNumber:X0,isBoolean:GI,isObject:Gh,isPlainObject:uu,isUndefined:Ea,isDate:jI,isFile:KI,isBlob:qI,isRegExp:f5,isFunction:hs,isStream:ZI,isURLSearchParams:JI,isTypedArray:o5,isFileList:YI,forEach:Ua,merge:$d,extend:e5,trim:QI,stripBOM:t5,inherits:n5,toFlatObject:r5,kindOf:oc,kindOfTest:gs,endsWith:s5,toArray:i5,forEachEntry:a5,matchAll:l5,isHTMLForm:u5,hasOwnProperty:jp,hasOwnProp:jp,reduceDescriptors:tb,freezeMethods:d5,toObjectSet:h5,toCamelCase:c5,noop:m5,toFiniteNumber:v5,findKey:J0,global:Q0,isContextDefined:eb,ALPHABET:nb,generateString:g5,isSpecCompliantForm:p5,toJSONObject:y5};function dt(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}ee.inherits(dt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rb=dt.prototype,sb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{sb[e]={value:e}});Object.defineProperties(dt,sb);Object.defineProperty(rb,"isAxiosError",{value:!0});dt.from=(e,t,n,r,i,o)=>{const l=Object.create(rb);return ee.toFlatObject(e,l,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),dt.call(l,e.message,t,n,r,i),l.cause=e,l.name=e.name,o&&Object.assign(l,o),l};const b5=null;function Hd(e){return ee.isPlainObject(e)||ee.isArray(e)}function ib(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function qp(e,t,n){return e?e.concat(t).map(function(i,o){return i=ib(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function _5(e){return ee.isArray(e)&&!e.some(Hd)}const w5=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function lc(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!ee.isUndefined(T[S])});const r=n.metaTokens,i=n.visitor||h,o=n.dots,l=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(i))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ee.isDate(b))return b.toISOString();if(!f&&ee.isBlob(b))throw new dt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(b)||ee.isTypedArray(b)?f&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,S,T){let A=b;if(b&&!T&&typeof b=="object"){if(ee.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(ee.isArray(b)&&_5(b)||(ee.isFileList(b)||ee.endsWith(S,"[]"))&&(A=ee.toArray(b)))return S=ib(S),A.forEach(function(C,V){!(ee.isUndefined(C)||C===null)&&t.append(l===!0?qp([S],V,o):l===null?S:S+"[]",d(C))}),!1}return Hd(b)?!0:(t.append(qp(T,S,o),d(b)),!1)}const m=[],v=Object.assign(w5,{defaultVisitor:h,convertValue:d,isVisitable:Hd});function p(b,S){if(!ee.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(b),ee.forEach(b,function(A,w){(!(ee.isUndefined(A)||A===null)&&i.call(t,A,ee.isString(w)?w.trim():w,S,v))===!0&&p(A,S?S.concat(w):[w])}),m.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Yp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function jh(e,t){this._pairs=[],e&&lc(e,this,t)}const ob=jh.prototype;ob.append=function(t,n){this._pairs.push([t,n])};ob.toString=function(t){const n=t?function(r){return t.call(this,r,Yp)}:Yp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function C5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ab(e,t,n){if(!t)return e;const r=n&&n.encode||C5,i=n&&n.serialize;let o;if(i?o=i(t,n):o=ee.isURLSearchParams(t)?t.toString():new jh(t,n).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class S5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zp=S5,lb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},x5=typeof URLSearchParams<"u"?URLSearchParams:jh,A5=typeof FormData<"u"?FormData:null,E5=typeof Blob<"u"?Blob:null,T5=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),k5=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Br={isBrowser:!0,classes:{URLSearchParams:x5,FormData:A5,Blob:E5},isStandardBrowserEnv:T5,isStandardBrowserWebWorkerEnv:k5,protocols:["http","https","file","blob","url","data"]};function P5(e,t){return lc(e,new Br.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Br.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function R5(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function I5(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function ub(e){function t(n,r,i,o){let l=n[o++];const u=Number.isFinite(+l),f=o>=n.length;return l=!l&&ee.isArray(i)?i.length:l,f?(ee.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!u):((!i[l]||!ee.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],o)&&ee.isArray(i[l])&&(i[l]=I5(i[l])),!u)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,i)=>{t(R5(r),i,n,0)}),n}return null}const L5={"Content-Type":void 0};function O5(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uc={transitional:lb,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=ee.isObject(t);if(o&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return i&&i?JSON.stringify(ub(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return P5(t,this.formSerializer).toString();if((u=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return lc(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),O5(t)):t}],transformResponse:[function(t){const n=this.transitional||uc.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ee.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(u){if(l)throw u.name==="SyntaxError"?dt.from(u,dt.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Br.classes.FormData,Blob:Br.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ee.forEach(["delete","get","head"],function(t){uc.headers[t]={}});ee.forEach(["post","put","patch"],function(t){uc.headers[t]=ee.merge(L5)});const Kh=uc,V5=ee.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),F5=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
6
|
-
`).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&V5[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Xp=Symbol("internals");function ra(e){return e&&String(e).trim().toLowerCase()}function cu(e){return e===!1||e==null?e:ee.isArray(e)?e.map(cu):String(e)}function M5(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const B5=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qf(e,t,n,r,i){if(ee.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function D5(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $5(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,l){return this[r].call(this,t,i,o,l)},configurable:!0})})}class cc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(u,f,d){const h=ra(f);if(!h)throw new Error("header name must be a non-empty string");const m=ee.findKey(i,h);(!m||i[m]===void 0||d===!0||d===void 0&&i[m]!==!1)&&(i[m||f]=cu(u))}const l=(u,f)=>ee.forEach(u,(d,h)=>o(d,h,f));return ee.isPlainObject(t)||t instanceof this.constructor?l(t,n):ee.isString(t)&&(t=t.trim())&&!B5(t)?l(F5(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=ra(t),t){const r=ee.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return M5(i);if(ee.isFunction(n))return n.call(this,i,r);if(ee.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ra(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Qf(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(l){if(l=ra(l),l){const u=ee.findKey(r,l);u&&(!n||Qf(r,r[u],u,n))&&(delete r[u],i=!0)}}return ee.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Qf(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return ee.forEach(this,(i,o)=>{const l=ee.findKey(r,o);if(l){n[l]=cu(i),delete n[o];return}const u=t?D5(o):String(o).trim();u!==o&&delete n[o],n[u]=cu(i),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ee.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
7
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Xp]=this[Xp]={accessors:{}}).accessors,i=this.prototype;function o(l){const u=ra(l);r[u]||($5(i,l),r[u]=!0)}return ee.isArray(t)?t.forEach(o):o(t),this}}cc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.freezeMethods(cc.prototype);ee.freezeMethods(cc);const fs=cc;function ed(e,t){const n=this||Kh,r=t||n,i=fs.from(r.headers);let o=r.data;return ee.forEach(e,function(u){o=u.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function cb(e){return!!(e&&e.__CANCEL__)}function za(e,t,n){dt.call(this,e??"canceled",dt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(za,dt,{__CANCEL__:!0});function H5(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new dt("Request failed with status code "+n.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const N5=Br.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,l,u){const f=[];f.push(n+"="+encodeURIComponent(r)),ee.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),ee.isString(o)&&f.push("path="+o),ee.isString(l)&&f.push("domain="+l),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function U5(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function z5(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function fb(e,t){return e&&!U5(t)?z5(e,t):t}const W5=Br.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let l=o;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(l){const u=ee.isString(l)?i(l):l;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function G5(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function j5(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,l;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),h=r[o];l||(l=d),n[i]=f,r[i]=d;let m=o,v=0;for(;m!==i;)v+=n[m++],m=m%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),d-l<t)return;const p=h&&d-h;return p?Math.round(v*1e3/p):void 0}}function Jp(e,t){let n=0;const r=j5(50,250);return i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,u=o-n,f=r(u),d=o<=l;n=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l&&d?(l-o)/f:void 0,event:i};h[t?"download":"upload"]=!0,e(h)}}const K5=typeof XMLHttpRequest<"u",q5=K5&&function(e){return new Promise(function(n,r){let i=e.data;const o=fs.from(e.headers).normalize(),l=e.responseType;let u;function f(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}ee.isFormData(i)&&(Br.isStandardBrowserEnv||Br.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let d=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(p+":"+b))}const h=fb(e.baseURL,e.url);d.open(e.method.toUpperCase(),ab(h,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function m(){if(!d)return;const p=fs.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:p,config:e,request:d};H5(function(A){n(A),f()},function(A){r(A),f()},S),d=null}if("onloadend"in d?d.onloadend=m:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(m)},d.onabort=function(){d&&(r(new dt("Request aborted",dt.ECONNABORTED,e,d)),d=null)},d.onerror=function(){r(new dt("Network Error",dt.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const S=e.transitional||lb;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new dt(b,S.clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,e,d)),d=null},Br.isStandardBrowserEnv){const p=(e.withCredentials||W5(h))&&e.xsrfCookieName&&N5.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}i===void 0&&o.setContentType(null),"setRequestHeader"in d&&ee.forEach(o.toJSON(),function(b,S){d.setRequestHeader(S,b)}),ee.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),l&&l!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Jp(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Jp(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=p=>{d&&(r(!p||p.type?new za(null,e,d):p),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const v=G5(h);if(v&&Br.protocols.indexOf(v)===-1){r(new dt("Unsupported protocol "+v+":",dt.ERR_BAD_REQUEST,e));return}d.send(i||null)})},fu={http:b5,xhr:q5};ee.forEach(fu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Y5={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=ee.isString(n)?fu[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new dt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ee.hasOwnProp(fu,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ee.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:fu};function td(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new za(null,e)}function Qp(e){return td(e),e.headers=fs.from(e.headers),e.data=ed.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Y5.getAdapter(e.adapter||Kh.adapter)(e).then(function(r){return td(e),r.data=ed.call(e,e.transformResponse,r),r.headers=fs.from(r.headers),r},function(r){return cb(r)||(td(e),r&&r.response&&(r.response.data=ed.call(e,e.transformResponse,r.response),r.response.headers=fs.from(r.response.headers))),Promise.reject(r)})}const e1=e=>e instanceof fs?e.toJSON():e;function _o(e,t){t=t||{};const n={};function r(d,h,m){return ee.isPlainObject(d)&&ee.isPlainObject(h)?ee.merge.call({caseless:m},d,h):ee.isPlainObject(h)?ee.merge({},h):ee.isArray(h)?h.slice():h}function i(d,h,m){if(ee.isUndefined(h)){if(!ee.isUndefined(d))return r(void 0,d,m)}else return r(d,h,m)}function o(d,h){if(!ee.isUndefined(h))return r(void 0,h)}function l(d,h){if(ee.isUndefined(h)){if(!ee.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function u(d,h,m){if(m in t)return r(d,h);if(m in e)return r(void 0,d)}const f={url:o,method:o,data:o,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(d,h)=>i(e1(d),e1(h),!0)};return ee.forEach(Object.keys(e).concat(Object.keys(t)),function(h){const m=f[h]||i,v=m(e[h],t[h],h);ee.isUndefined(v)&&m!==u||(n[h]=v)}),n}const db="1.3.6",qh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const t1={};qh.transitional=function(t,n,r){function i(o,l){return"[Axios v"+db+"] Transitional option '"+o+"'"+l+(r?". "+r:"")}return(o,l,u)=>{if(t===!1)throw new dt(i(l," has been removed"+(n?" in "+n:"")),dt.ERR_DEPRECATED);return n&&!t1[l]&&(t1[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,l,u):!0}};function Z5(e,t,n){if(typeof e!="object")throw new dt("options must be an object",dt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],l=t[o];if(l){const u=e[o],f=u===void 0||l(u,o,e);if(f!==!0)throw new dt("option "+o+" must be "+f,dt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new dt("Unknown option "+o,dt.ERR_BAD_OPTION)}}const Nd={assertOptions:Z5,validators:qh},Ls=Nd.validators;class Au{constructor(t){this.defaults=t,this.interceptors={request:new Zp,response:new Zp}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=_o(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Nd.assertOptions(r,{silentJSONParsing:Ls.transitional(Ls.boolean),forcedJSONParsing:Ls.transitional(Ls.boolean),clarifyTimeoutError:Ls.transitional(Ls.boolean)},!1),i!=null&&(ee.isFunction(i)?n.paramsSerializer={serialize:i}:Nd.assertOptions(i,{encode:Ls.function,serialize:Ls.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=o&&ee.merge(o.common,o[n.method]),l&&ee.forEach(["delete","get","head","post","put","patch","common"],b=>{delete o[b]}),n.headers=fs.concat(l,o);const u=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(f=f&&S.synchronous,u.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,m=0,v;if(!f){const b=[Qp.bind(this),void 0];for(b.unshift.apply(b,u),b.push.apply(b,d),v=b.length,h=Promise.resolve(n);m<v;)h=h.then(b[m++],b[m++]);return h}v=u.length;let p=n;for(m=0;m<v;){const b=u[m++],S=u[m++];try{p=b(p)}catch(T){S.call(this,T);break}}try{h=Qp.call(this,p)}catch(b){return Promise.reject(b)}for(m=0,v=d.length;m<v;)h=h.then(d[m++],d[m++]);return h}getUri(t){t=_o(this.defaults,t);const n=fb(t.baseURL,t.url);return ab(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){Au.prototype[t]=function(n,r){return this.request(_o(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(o,l,u){return this.request(_o(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:l}))}}Au.prototype[t]=n(),Au.prototype[t+"Form"]=n(!0)});const du=Au;class Yh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const l=new Promise(u=>{r.subscribe(u),o=u}).then(i);return l.cancel=function(){r.unsubscribe(o)},l},t(function(o,l,u){r.reason||(r.reason=new za(o,l,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Yh(function(i){t=i}),cancel:t}}}const X5=Yh;function J5(e){return function(n){return e.apply(null,n)}}function Q5(e){return ee.isObject(e)&&e.isAxiosError===!0}const Ud={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ud).forEach(([e,t])=>{Ud[t]=e});const eL=Ud;function hb(e){const t=new du(e),n=Y0(du.prototype.request,t);return ee.extend(n,du.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return hb(_o(e,i))},n}const en=hb(Kh);en.Axios=du;en.CanceledError=za;en.CancelToken=X5;en.isCancel=cb;en.VERSION=db;en.toFormData=lc;en.AxiosError=dt;en.Cancel=en.CanceledError;en.all=function(t){return Promise.all(t)};en.spread=J5;en.isAxiosError=Q5;en.mergeConfig=_o;en.AxiosHeaders=fs;en.formToJSON=e=>ub(ee.isHTMLForm(e)?new FormData(e):e);en.HttpStatusCode=eL;en.default=en;const tL=en,nL={baseURL:window.CODEX.API_V3_PATH,withCredentials:!0,xsrfCookieName:"csrftoken",xsrfHeaderName:"X-CSRFTOKEN"},et=tL.create(nL),rL=(e,t)=>{et.get(e,{responseType:"blob"}).then(n=>{const r=document.createElement("a"),i=new Blob([n.data],{type:"application/octet-stream"});return r.href=window.URL.createObjectURL(i),r.download=t,r.click(),window.URL.revokeObjectURL(n.data)}).catch(console.warn)},fc=e=>`c/${e}`,Zh=e=>window.CODEX.API_V3_PATH+fc(e),jn=()=>({ts:kt().timestamp}),sL=e=>{const t={ts:e};return et.get("/version",{params:t})},n1={downloadIOSPWAFix:rL,getReaderBasePath:Zh,getReaderPath:fc,getTSParams:jn,getVersions:sL},iL=async()=>await et.get("/auth/flags/"),oL=()=>Intl.DateTimeFormat().resolvedOptions().timeZone,aL=async()=>{const e={timezone:oL()};return await et.post("/auth/timezone/",e)},lL=async e=>(e.login=e.username,await et.post("/auth/register/",e)),uL=async e=>(e.login=e.username,await et.post("/auth/login/",e)),cL=async()=>{const e=jn();return await et.get("/auth/profile/",{params:e})},fL=async()=>await et.post("/auth/logout/"),dL=async e=>await et.post("/auth/change-password/",e),ui={changePassword:dL,getAdminFlags:iL,getProfile:cL,login:uL,logout:fL,register:lL,setTimezone:aL},xn=Na("auth",{state:()=>({adminFlags:{registration:void 0,nonUsers:void 0},user:void 0,MIN_PASSWORD_LENGTH:4}),getters:{isCodexViewable(){return!!(this.user||this.adminFlags.nonUsers)},isUserAdmin(){return this.user&&(this.user.isStaff||this.user.isSuperuser)}},actions:{async loadAdminFlags(){await ui.getAdminFlags().then(e=>(this.adminFlags=e.data,!0)).catch(console.error)},async loadProfile(){return ui.getProfile().then(e=>(this.user=e.data,!0)).catch(console.debug)},async login(e,t=!0){const n=kt();await ui.login(e).then(()=>(t&&n.clearErrors(),this.loadProfile())).catch(n.setErrors)},async register(e){const t=kt();await ui.register(e).then(()=>(t.clearErrors(),this.login(e))).catch(t.setErrors)},logout(){ui.logout().then(()=>(this.user=void 0,!0)).catch(console.error)},async changePassword(e){const t={username:this.user.username,password:e.password},n=kt();await ui.changePassword(e).then(r=>(n.setSuccess(r.data.detail),this.login(t,!1))).catch(n.setErrors)},async setTimezone(){await ui.setTimezone().catch(console.error)}}}),hL={bookmarkFilter:[{title:"All",value:"ALL",default:!0},{title:"Unread",value:"UNREAD"},{title:"In Progress",value:"IN_PROGRESS"},{title:"Read",value:"READ"}],q:"",topGroup:[{title:"Publishers",value:"p",default:!0},{title:"Imprints",value:"i"},{title:"Series",value:"s"},{title:"Volumes",value:"v"},{title:"Issues",value:"c"},{title:"Folder View",value:"f"}],settingsGroup:[{title:"Publishers",value:"p",default:!0},{title:"Imprints",value:"i"},{title:"Series",value:"s",default:!0},{title:"Volumes",value:"v"}],orderBy:[{title:"Name",value:"sort_name",default:!0},{title:"Publish Date",value:"date"},{title:"Added Time",value:"created_at"},{title:"Updated Time",value:"updated_at"},{title:"Page Count",value:"page_count"},{title:"File Size",value:"size"},{title:"Filename",value:"path"},{title:"Critical Rating",value:"critical_rating"},{title:"Community Rating",value:"community_rating"},{title:"Age Rating",value:"age_rating"},{title:"Search Score",value:"search_score"}],vuetifyNullCode:-1,groupNames:{p:"Publishers",i:"Imprints",s:"Series",v:"Volumes",c:"Issues",f:"Folders"},route:{group:"r",pk:0,page:1}},mL={fitTo:[{title:"Fit to Screen",value:"S",default:!0},{title:"Fit to Width",value:"W"},{title:"Fit to Height",value:"H"},{title:"Original Size",value:"O"},{title:"",value:""}]},vL={LIBRARY_CHANGED:"LIBRARY_CHANGED",LIBRARIAN_STATUS:"LIBRARIAN_STATUS",FAILED_IMPORTS:"FAILED_IMPORTS"},sr={browser:hL,reader:mL,websockets:vL},gL="modulepreload",pL=function(e){return window.CODEX.APP_PATH + "static"+"/"+e},r1={},ur=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=pL(o),o in r1)return;r1[o]=!0;const l=o.endsWith(".css"),u=l?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const m=i[h];if(m.href===o&&(!l||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":gL,l||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),l)return new Promise((h,m)=>{d.addEventListener("load",h),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};/*!
|
|
8
|
-
* vue-router v4.1.6
|
|
9
|
-
* (c) 2022 Eduardo San Martin Morote
|
|
10
|
-
* @license MIT
|
|
11
|
-
*/const io=typeof window<"u";function yL(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ct=Object.assign;function nd(e,t){const n={};for(const r in t){const i=t[r];n[r]=Er(i)?i.map(e):e(i)}return n}const ga=()=>{},Er=Array.isArray,bL=/\/$/,_L=e=>e.replace(bL,"");function rd(e,t,n="/"){let r,i={},o="",l="";const u=t.indexOf("#");let f=t.indexOf("?");return u<f&&u>=0&&(f=-1),f>-1&&(r=t.slice(0,f),o=t.slice(f+1,u>-1?u:t.length),i=e(o)),u>-1&&(r=r||t.slice(0,u),l=t.slice(u,t.length)),r=xL(r??t,n),{fullPath:r+(o&&"?")+o+l,path:r,query:i,hash:l}}function wL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function s1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function CL(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&wo(t.matched[r],n.matched[i])&&mb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function wo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function mb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!SL(e[n],t[n]))return!1;return!0}function SL(e,t){return Er(e)?i1(e,t):Er(t)?i1(t,e):e===t}function i1(e,t){return Er(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function xL(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,o,l;for(o=0;o<r.length;o++)if(l=r[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Ta;(function(e){e.pop="pop",e.push="push"})(Ta||(Ta={}));var pa;(function(e){e.back="back",e.forward="forward",e.unknown=""})(pa||(pa={}));function AL(e){if(!e)if(io){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),_L(e)}const EL=/^[^#]+#/;function TL(e,t){return e.replace(EL,"#")+t}function kL(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const dc=()=>({left:window.pageXOffset,top:window.pageYOffset});function PL(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=kL(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function o1(e,t){return(history.state?history.state.position-t:-1)+e}const zd=new Map;function RL(e,t){zd.set(e,t)}function IL(e){const t=zd.get(e);return zd.delete(e),t}let LL=()=>location.protocol+"//"+location.host;function vb(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let u=i.includes(e.slice(o))?e.slice(o).length:1,f=i.slice(u);return f[0]!=="/"&&(f="/"+f),s1(f,"")}return s1(n,e)+r+i}function OL(e,t,n,r){let i=[],o=[],l=null;const u=({state:v})=>{const p=vb(e,location),b=n.value,S=t.value;let T=0;if(v){if(n.value=p,t.value=v,l&&l===b){l=null;return}T=S?v.position-S.position:0}else r(p);i.forEach(A=>{A(n.value,b,{delta:T,type:Ta.pop,direction:T?T>0?pa.forward:pa.back:pa.unknown})})};function f(){l=n.value}function d(v){i.push(v);const p=()=>{const b=i.indexOf(v);b>-1&&i.splice(b,1)};return o.push(p),p}function h(){const{history:v}=window;v.state&&v.replaceState(Ct({},v.state,{scroll:dc()}),"")}function m(){for(const v of o)v();o=[],window.removeEventListener("popstate",u),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",u),window.addEventListener("beforeunload",h),{pauseListeners:f,listen:d,destroy:m}}function a1(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?dc():null}}function VL(e){const{history:t,location:n}=window,r={value:vb(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(f,d,h){const m=e.indexOf("#"),v=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+f:LL()+e+f;try{t[h?"replaceState":"pushState"](d,"",v),i.value=d}catch(p){console.error(p),n[h?"replace":"assign"](v)}}function l(f,d){const h=Ct({},t.state,a1(i.value.back,f,i.value.forward,!0),d,{position:i.value.position});o(f,h,!0),r.value=f}function u(f,d){const h=Ct({},i.value,t.state,{forward:f,scroll:dc()});o(h.current,h,!0);const m=Ct({},a1(r.value,f,null),{position:h.position+1},d);o(f,m,!1),r.value=f}return{location:r,state:i,push:u,replace:l}}function FL(e){e=AL(e);const t=VL(e),n=OL(e,t.state,t.location,t.replace);function r(o,l=!0){l||n.pauseListeners(),history.go(o)}const i=Ct({location:"",base:e,go:r,createHref:TL.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ML(e){return typeof e=="string"||e&&typeof e=="object"}function gb(e){return typeof e=="string"||typeof e=="symbol"}const Os={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pb=Symbol("");var l1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(l1||(l1={}));function Co(e,t){return Ct(new Error,{type:e,[pb]:!0},t)}function ts(e,t){return e instanceof Error&&pb in e&&(t==null||!!(e.type&t))}const u1="[^/]+?",BL={sensitive:!1,strict:!1,start:!0,end:!0},DL=/[.+*?^${}()[\]/\\]/g;function $L(e,t){const n=Ct({},BL,t),r=[];let i=n.start?"^":"";const o=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(i+="/");for(let m=0;m<d.length;m++){const v=d[m];let p=40+(n.sensitive?.25:0);if(v.type===0)m||(i+="/"),i+=v.value.replace(DL,"\\$&"),p+=40;else if(v.type===1){const{value:b,repeatable:S,optional:T,regexp:A}=v;o.push({name:b,repeatable:S,optional:T});const w=A||u1;if(w!==u1){p+=10;try{new RegExp(`(${w})`)}catch(V){throw new Error(`Invalid custom RegExp for param "${b}" (${w}): `+V.message)}}let C=S?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;m||(C=T&&d.length<2?`(?:/${C})`:"/"+C),T&&(C+="?"),i+=C,p+=20,T&&(p+=-8),S&&(p+=-20),w===".*"&&(p+=-50)}h.push(p)}r.push(h)}if(n.strict&&n.end){const d=r.length-1;r[d][r[d].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const l=new RegExp(i,n.sensitive?"":"i");function u(d){const h=d.match(l),m={};if(!h)return null;for(let v=1;v<h.length;v++){const p=h[v]||"",b=o[v-1];m[b.name]=p&&b.repeatable?p.split("/"):p}return m}function f(d){let h="",m=!1;for(const v of e){(!m||!h.endsWith("/"))&&(h+="/"),m=!1;for(const p of v)if(p.type===0)h+=p.value;else if(p.type===1){const{value:b,repeatable:S,optional:T}=p,A=b in d?d[b]:"";if(Er(A)&&!S)throw new Error(`Provided param "${b}" is an array but it is not repeatable (* or + modifiers)`);const w=Er(A)?A.join("/"):A;if(!w)if(T)v.length<2&&(h.endsWith("/")?h=h.slice(0,-1):m=!0);else throw new Error(`Missing required param "${b}"`);h+=w}}return h||"/"}return{re:l,score:r,keys:o,parse:u,stringify:f}}function HL(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function NL(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=HL(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(c1(r))return 1;if(c1(i))return-1}return i.length-r.length}function c1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const UL={type:0,value:""},zL=/[a-zA-Z0-9_]/;function WL(e){if(!e)return[[]];if(e==="/")return[[UL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${d}": ${p}`)}let n=0,r=n;const i=[];let o;function l(){o&&i.push(o),o=[]}let u=0,f,d="",h="";function m(){d&&(n===0?o.push({type:0,value:d}):n===1||n===2||n===3?(o.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:d,regexp:h,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),d="")}function v(){d+=f}for(;u<e.length;){if(f=e[u++],f==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:f==="/"?(d&&m(),l()):f===":"?(m(),n=1):v();break;case 4:v(),n=r;break;case 1:f==="("?n=2:zL.test(f)?v():(m(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--);break;case 2:f===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+f:n=3:h+=f;break;case 3:m(),n=0,f!=="*"&&f!=="?"&&f!=="+"&&u--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${d}"`),m(),l(),i}function GL(e,t,n){const r=$L(WL(e.path),n),i=Ct(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function jL(e,t){const n=[],r=new Map;t=h1({strict:!1,end:!0,sensitive:!1},t);function i(h){return r.get(h)}function o(h,m,v){const p=!v,b=KL(h);b.aliasOf=v&&v.record;const S=h1(t,h),T=[b];if("alias"in h){const C=typeof h.alias=="string"?[h.alias]:h.alias;for(const V of C)T.push(Ct({},b,{components:v?v.record.components:b.components,path:V,aliasOf:v?v.record:b}))}let A,w;for(const C of T){const{path:V}=C;if(m&&V[0]!=="/"){const L=m.record.path,F=L[L.length-1]==="/"?"":"/";C.path=m.record.path+(V&&F+V)}if(A=GL(C,m,S),v?v.alias.push(A):(w=w||A,w!==A&&w.alias.push(A),p&&h.name&&!d1(A)&&l(h.name)),b.children){const L=b.children;for(let F=0;F<L.length;F++)o(L[F],A,v&&v.children[F])}v=v||A,(A.record.components&&Object.keys(A.record.components).length||A.record.name||A.record.redirect)&&f(A)}return w?()=>{l(w)}:ga}function l(h){if(gb(h)){const m=r.get(h);m&&(r.delete(h),n.splice(n.indexOf(m),1),m.children.forEach(l),m.alias.forEach(l))}else{const m=n.indexOf(h);m>-1&&(n.splice(m,1),h.record.name&&r.delete(h.record.name),h.children.forEach(l),h.alias.forEach(l))}}function u(){return n}function f(h){let m=0;for(;m<n.length&&NL(h,n[m])>=0&&(h.record.path!==n[m].record.path||!yb(h,n[m]));)m++;n.splice(m,0,h),h.record.name&&!d1(h)&&r.set(h.record.name,h)}function d(h,m){let v,p={},b,S;if("name"in h&&h.name){if(v=r.get(h.name),!v)throw Co(1,{location:h});S=v.record.name,p=Ct(f1(m.params,v.keys.filter(w=>!w.optional).map(w=>w.name)),h.params&&f1(h.params,v.keys.map(w=>w.name))),b=v.stringify(p)}else if("path"in h)b=h.path,v=n.find(w=>w.re.test(b)),v&&(p=v.parse(b),S=v.record.name);else{if(v=m.name?r.get(m.name):n.find(w=>w.re.test(m.path)),!v)throw Co(1,{location:h,currentLocation:m});S=v.record.name,p=Ct({},m.params,h.params),b=v.stringify(p)}const T=[];let A=v;for(;A;)T.unshift(A.record),A=A.parent;return{name:S,path:b,params:p,matched:T,meta:YL(T)}}return e.forEach(h=>o(h)),{addRoute:o,resolve:d,removeRoute:l,getRoutes:u,getRecordMatcher:i}}function f1(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function KL(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qL(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qL(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function d1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function YL(e){return e.reduce((t,n)=>Ct(t,n.meta),{})}function h1(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yb(e,t){return t.children.some(n=>n===e||yb(e,n))}const bb=/#/g,ZL=/&/g,XL=/\//g,JL=/=/g,QL=/\?/g,_b=/\+/g,eO=/%5B/g,tO=/%5D/g,wb=/%5E/g,nO=/%60/g,Cb=/%7B/g,rO=/%7C/g,Sb=/%7D/g,sO=/%20/g;function Xh(e){return encodeURI(""+e).replace(rO,"|").replace(eO,"[").replace(tO,"]")}function iO(e){return Xh(e).replace(Cb,"{").replace(Sb,"}").replace(wb,"^")}function Wd(e){return Xh(e).replace(_b,"%2B").replace(sO,"+").replace(bb,"%23").replace(ZL,"%26").replace(nO,"`").replace(Cb,"{").replace(Sb,"}").replace(wb,"^")}function oO(e){return Wd(e).replace(JL,"%3D")}function aO(e){return Xh(e).replace(bb,"%23").replace(QL,"%3F")}function lO(e){return e==null?"":aO(e).replace(XL,"%2F")}function Eu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function uO(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(_b," "),l=o.indexOf("="),u=Eu(l<0?o:o.slice(0,l)),f=l<0?null:Eu(o.slice(l+1));if(u in t){let d=t[u];Er(d)||(d=t[u]=[d]),d.push(f)}else t[u]=f}return t}function m1(e){let t="";for(let n in e){const r=e[n];if(n=oO(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Er(r)?r.map(o=>o&&Wd(o)):[r&&Wd(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function cO(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Er(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const fO=Symbol(""),v1=Symbol(""),Jh=Symbol(""),xb=Symbol(""),Gd=Symbol("");function sa(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Bs(e,t,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((l,u)=>{const f=m=>{m===!1?u(Co(4,{from:n,to:t})):m instanceof Error?u(m):ML(m)?u(Co(2,{from:t,to:m})):(o&&r.enterCallbacks[i]===o&&typeof m=="function"&&o.push(m),l())},d=e.call(r&&r.instances[i],t,n,f);let h=Promise.resolve(d);e.length<3&&(h=h.then(f)),h.catch(m=>u(m))})}function sd(e,t,n,r){const i=[];for(const o of e)for(const l in o.components){let u=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(dO(u)){const d=(u.__vccOpts||u)[t];d&&i.push(Bs(d,n,r,o,l))}else{let f=u();i.push(()=>f.then(d=>{if(!d)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const h=yL(d)?d.default:d;o.components[l]=h;const v=(h.__vccOpts||h)[t];return v&&Bs(v,n,r,o,l)()}))}}return i}function dO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function g1(e){const t=rt(Jh),n=rt(xb),r=R(()=>t.resolve(mn(e.to))),i=R(()=>{const{matched:f}=r.value,{length:d}=f,h=f[d-1],m=n.matched;if(!h||!m.length)return-1;const v=m.findIndex(wo.bind(null,h));if(v>-1)return v;const p=p1(f[d-2]);return d>1&&p1(h)===p&&m[m.length-1].path!==p?m.findIndex(wo.bind(null,f[d-2])):v}),o=R(()=>i.value>-1&&gO(n.params,r.value.params)),l=R(()=>i.value>-1&&i.value===n.matched.length-1&&mb(n.params,r.value.params));function u(f={}){return vO(f)?t[mn(e.replace)?"replace":"push"](mn(e.to)).catch(ga):Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:o,isExactActive:l,navigate:u}}const hO=Io({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:g1,setup(e,{slots:t}){const n=Qt(g1(e)),{options:r}=rt(Jh),i=R(()=>({[y1(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[y1(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:vs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),mO=hO;function vO(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gO(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Er(i)||i.length!==r.length||r.some((o,l)=>o!==i[l]))return!1}return!0}function p1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const y1=(e,t,n)=>e??t??n,pO=Io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rt(Gd),i=R(()=>e.route||r.value),o=rt(v1,0),l=R(()=>{let d=mn(o);const{matched:h}=i.value;let m;for(;(m=h[d])&&!m.components;)d++;return d}),u=R(()=>i.value.matched[l.value]);Pt(v1,R(()=>l.value+1)),Pt(fO,u),Pt(Gd,i);const f=J();return De(()=>[f.value,u.value,e.name],([d,h,m],[v,p,b])=>{h&&(h.instances[m]=d,p&&p!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=p.leaveGuards),h.updateGuards.size||(h.updateGuards=p.updateGuards))),d&&h&&(!p||!wo(h,p)||!v)&&(h.enterCallbacks[m]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=i.value,h=e.name,m=u.value,v=m&&m.components[h];if(!v)return b1(n.default,{Component:v,route:d});const p=m.props[h],b=p?p===!0?d.params:typeof p=="function"?p(d):p:null,T=vs(v,Ct({},b,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(m.instances[h]=null)},ref:f}));return b1(n.default,{Component:T,route:d})||T}}});function b1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yO=pO;function bO(e){const t=jL(e.routes,e),n=e.parseQuery||uO,r=e.stringifyQuery||m1,i=e.history,o=sa(),l=sa(),u=sa(),f=qu(Os);let d=Os;io&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=nd.bind(null,Y=>""+Y),m=nd.bind(null,lO),v=nd.bind(null,Eu);function p(Y,Z){let ue,Ae;return gb(Y)?(ue=t.getRecordMatcher(Y),Ae=Z):Ae=Y,t.addRoute(Ae,ue)}function b(Y){const Z=t.getRecordMatcher(Y);Z&&t.removeRoute(Z)}function S(){return t.getRoutes().map(Y=>Y.record)}function T(Y){return!!t.getRecordMatcher(Y)}function A(Y,Z){if(Z=Ct({},Z||f.value),typeof Y=="string"){const P=rd(n,Y,Z.path),B=t.resolve({path:P.path},Z),K=i.createHref(P.fullPath);return Ct(P,B,{params:v(B.params),hash:Eu(P.hash),redirectedFrom:void 0,href:K})}let ue;if("path"in Y)ue=Ct({},Y,{path:rd(n,Y.path,Z.path).path});else{const P=Ct({},Y.params);for(const B in P)P[B]==null&&delete P[B];ue=Ct({},Y,{params:m(Y.params)}),Z.params=m(Z.params)}const Ae=t.resolve(ue,Z),He=Y.hash||"";Ae.params=h(v(Ae.params));const pt=wL(r,Ct({},Y,{hash:iO(He),path:Ae.path})),Be=i.createHref(pt);return Ct({fullPath:pt,hash:He,query:r===m1?cO(Y.query):Y.query||{}},Ae,{redirectedFrom:void 0,href:Be})}function w(Y){return typeof Y=="string"?rd(n,Y,f.value.path):Ct({},Y)}function C(Y,Z){if(d!==Y)return Co(8,{from:Z,to:Y})}function V(Y){return O(Y)}function L(Y){return V(Ct(w(Y),{replace:!0}))}function F(Y){const Z=Y.matched[Y.matched.length-1];if(Z&&Z.redirect){const{redirect:ue}=Z;let Ae=typeof ue=="function"?ue(Y):ue;return typeof Ae=="string"&&(Ae=Ae.includes("?")||Ae.includes("#")?Ae=w(Ae):{path:Ae},Ae.params={}),Ct({query:Y.query,hash:Y.hash,params:"path"in Ae?{}:Y.params},Ae)}}function O(Y,Z){const ue=d=A(Y),Ae=f.value,He=Y.state,pt=Y.force,Be=Y.replace===!0,P=F(ue);if(P)return O(Ct(w(P),{state:typeof P=="object"?Ct({},He,P.state):He,force:pt,replace:Be}),Z||ue);const B=ue;B.redirectedFrom=Z;let K;return!pt&&CL(r,Ae,ue)&&(K=Co(16,{to:B,from:Ae}),ve(Ae,Ae,!0,!1)),(K?Promise.resolve(K):z(B,Ae)).catch(Q=>ts(Q)?ts(Q,2)?Q:_e(Q):he(Q,B,Ae)).then(Q=>{if(Q){if(ts(Q,2))return O(Ct({replace:Be},w(Q.to),{state:typeof Q.to=="object"?Ct({},He,Q.to.state):He,force:pt}),Z||B)}else Q=H(B,Ae,!0,Be,He);return W(B,Ae,Q),Q})}function k(Y,Z){const ue=C(Y,Z);return ue?Promise.reject(ue):Promise.resolve()}function z(Y,Z){let ue;const[Ae,He,pt]=_O(Y,Z);ue=sd(Ae.reverse(),"beforeRouteLeave",Y,Z);for(const P of Ae)P.leaveGuards.forEach(B=>{ue.push(Bs(B,Y,Z))});const Be=k.bind(null,Y,Z);return ue.push(Be),eo(ue).then(()=>{ue=[];for(const P of o.list())ue.push(Bs(P,Y,Z));return ue.push(Be),eo(ue)}).then(()=>{ue=sd(He,"beforeRouteUpdate",Y,Z);for(const P of He)P.updateGuards.forEach(B=>{ue.push(Bs(B,Y,Z))});return ue.push(Be),eo(ue)}).then(()=>{ue=[];for(const P of Y.matched)if(P.beforeEnter&&!Z.matched.includes(P))if(Er(P.beforeEnter))for(const B of P.beforeEnter)ue.push(Bs(B,Y,Z));else ue.push(Bs(P.beforeEnter,Y,Z));return ue.push(Be),eo(ue)}).then(()=>(Y.matched.forEach(P=>P.enterCallbacks={}),ue=sd(pt,"beforeRouteEnter",Y,Z),ue.push(Be),eo(ue))).then(()=>{ue=[];for(const P of l.list())ue.push(Bs(P,Y,Z));return ue.push(Be),eo(ue)}).catch(P=>ts(P,8)?P:Promise.reject(P))}function W(Y,Z,ue){for(const Ae of u.list())Ae(Y,Z,ue)}function H(Y,Z,ue,Ae,He){const pt=C(Y,Z);if(pt)return pt;const Be=Z===Os,P=io?history.state:{};ue&&(Ae||Be?i.replace(Y.fullPath,Ct({scroll:Be&&P&&P.scroll},He)):i.push(Y.fullPath,He)),f.value=Y,ve(Y,Z,ue,Be),_e()}let U;function q(){U||(U=i.listen((Y,Z,ue)=>{const Ae=A(Y),He=F(Ae);if(He){O(Ct(He,{replace:!0}),Ae).catch(ga);return}d=Ae;const pt=f.value;io&&RL(o1(pt.fullPath,ue.delta),dc()),z(Ae,pt).catch(Be=>ts(Be,12)?Be:ts(Be,2)?(O(Be.to,Ae).then(P=>{ts(P,20)&&!ue.delta&&ue.type===Ta.pop&&i.go(-1,!1)}).catch(ga),Promise.reject()):(ue.delta&&i.go(-ue.delta,!1),he(Be,Ae,pt))).then(Be=>{Be=Be||H(Ae,pt,!1),Be&&(ue.delta&&!ts(Be,8)?i.go(-ue.delta,!1):ue.type===Ta.pop&&ts(Be,20)&&i.go(-1,!1)),W(Ae,pt,Be)}).catch(ga)}))}let G=sa(),me=sa(),ce;function he(Y,Z,ue){_e(Y);const Ae=me.list();return Ae.length?Ae.forEach(He=>He(Y,Z,ue)):console.error(Y),Promise.reject(Y)}function fe(){return ce&&f.value!==Os?Promise.resolve():new Promise((Y,Z)=>{G.add([Y,Z])})}function _e(Y){return ce||(ce=!Y,q(),G.list().forEach(([Z,ue])=>Y?ue(Y):Z()),G.reset()),Y}function ve(Y,Z,ue,Ae){const{scrollBehavior:He}=e;if(!io||!He)return Promise.resolve();const pt=!ue&&IL(o1(Y.fullPath,0))||(Ae||!ue)&&history.state&&history.state.scroll||null;return Yt().then(()=>He(Y,Z,pt)).then(Be=>Be&&PL(Be)).catch(Be=>he(Be,Y,Z))}const pe=Y=>i.go(Y);let le;const Ne=new Set;return{currentRoute:f,listening:!0,addRoute:p,removeRoute:b,hasRoute:T,getRoutes:S,resolve:A,options:e,push:V,replace:L,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:l.add,afterEach:u.add,onError:me.add,isReady:fe,install(Y){const Z=this;Y.component("RouterLink",mO),Y.component("RouterView",yO),Y.config.globalProperties.$router=Z,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>mn(f)}),io&&!le&&f.value===Os&&(le=!0,V(i.location).catch(He=>{}));const ue={};for(const He in Os)ue[He]=R(()=>f.value[He]);Y.provide(Jh,Z),Y.provide(xb,Qt(ue)),Y.provide(Gd,f);const Ae=Y.unmount;Ne.add(Y),Y.unmount=function(){Ne.delete(Y),Ne.size<1&&(d=Os,U&&U(),U=null,f.value=Os,le=!1,ce=!1),Ae()}}}}function eo(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function _O(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let l=0;l<o;l++){const u=t.matched[l];u&&(e.matched.find(d=>wo(d,u))?r.push(u):n.push(u));const f=e.matched[l];f&&(t.matched.find(d=>wo(d,f))||i.push(f))}return[n,r,i]}const wO=()=>ur(()=>Promise.resolve().then(()=>zM),void 0),CO=()=>ur(()=>import("./browser-2c2380fd.js"),["assets/browser-2c2380fd.js","assets/metadata-dialog-8a0bd8e1.js","assets/metadata-dialog-785c4cfc.css","assets/browser-7325db61.css"]),SO=()=>ur(()=>import("./http-error-402decbe.js"),["assets/http-error-402decbe.js","assets/http-error-40ce966f.css"]),xO=()=>ur(()=>import("./reader-c2965a5f.js"),["assets/reader-c2965a5f.js","assets/metadata-dialog-8a0bd8e1.js","assets/metadata-dialog-785c4cfc.css","assets/reader-d8534888.css"]),AO=()=>ur(()=>Promise.resolve().then(()=>uB),void 0),EO=()=>ur(()=>Promise.resolve().then(()=>YB),void 0),TO=()=>ur(()=>Promise.resolve().then(()=>o6),void 0),kO=()=>ur(()=>Promise.resolve().then(()=>M6),void 0),PO=()=>ur(()=>Promise.resolve().then(()=>q6),void 0),RO=()=>ur(()=>Promise.resolve().then(()=>JD),void 0),IO={name:"browser",params:window.CODEX.LAST_ROUTE||sr.browser.route},LO=[{name:"home",path:"/",redirect:IO},{name:"reader",path:"/c/:pk/:page",component:xO},{name:"browser",path:"/:group/:pk/:page",component:CO},{name:"admin",path:"/admin",component:wO,redirect:"/admin/libraries",children:[{name:"admin-users",path:"users",component:EO},{name:"admin-groups",path:"groups",component:TO},{name:"admin-libraries",path:"libraries",component:kO},{name:"admin-flags",path:"flags",component:AO},{name:"admin-tasks",path:"tasks",component:PO},{name:"admin-stats",path:"stats",component:RO}]},{name:"error",path:"/error/:code",component:SO,props:!0},{name:"404",path:"/:pathMatch(.*)*",redirect:"/error/404"}],pr=new bO({history:FL(window.CODEX.APP_PATH),routes:LO}),OO=e=>et.post("/admin/user",e),VO=()=>{const e=jn();return et.get("/admin/user",{params:e})},FO=(e,t)=>et.put(`/admin/user/${e}/`,t),MO=(e,t)=>et.put(`/admin/user/${e}/password`,t),BO=e=>et.delete(`/admin/user/${e}/`),DO=e=>et.post("/admin/group",e),$O=()=>{const e=jn();return et.get("/admin/group",{params:e})},HO=(e,t)=>et.put(`/admin/group/${e}/`,t),NO=e=>et.delete(`/admin/group/${e}/`),UO=e=>et.post("/admin/library",e),zO=()=>{const e=jn();return et.get("/admin/library",{params:e})},WO=(e,t)=>et.put(`/admin/library/${e}/`,t),GO=e=>et.delete(`/admin/library/${e}/`),jO=(e,t)=>{const n={...jn(),path:e,showHidden:t};return et.get("/admin/folders",{params:n})},KO=()=>{const e=jn();return et.get("/admin/failed-import",{params:e})},qO=()=>{const e=jn();return et.get("/admin/flag",{params:e})},YO=(e,t)=>et.put(`/admin/flag/${e}/`,t),ZO=async e=>await et.post("/admin/librarian/task",{task:e}),XO=()=>{const e={ts:Date.now()};return et.get("/admin/librarian/status",{params:e})},JO=(e,t)=>et.post("/admin/librarian/task",{task:e,library_id:t}),QO=()=>et.get("/admin/stats"),eV=()=>et.post("/admin/api_key"),ns={changeUserPassword:MO,createGroup:DO,createLibrary:UO,createUser:OO,deleteLibrary:GO,deleteGroup:NO,deleteUser:BO,getFailedImports:KO,getFlags:qO,getFolders:jO,getGroups:$O,getLibrarianStatuses:XO,getLibraries:zO,getStats:QO,getUsers:VO,librarianTask:JO,postLibrarianTask:ZO,updateAPIKey:eV,updateFlag:YO,updateGroup:HO,updateLibrary:WO,updateUser:FO},tV=e=>console.warn(e),id=(e,t)=>{const n=[];for(const r of e)n.push({value:r.pk,title:r[t]});return n},_1={LibrarianStatus:"LibrarianStatuses",Library:"Libraries"},nV=e=>e in _1?_1[e]:e+"s",od=(e,t)=>{const n={};for(const r of e)n[r.pk]=r[t];return n},vt=Na("admin",{state:()=>({librarianStatuses:[],unseenFailedImports:!1,users:[],groups:[],libraries:[],failedImports:[],flags:{},folderPicker:{root:void 0,folders:[]},stats:void 0}),getters:{isUserAdmin(){return xn().isUserAdmin},userMap(){return od(this.users,"username")},groupMap(){return od(this.groups,"name")},libraryMap(){return od(this.libraries,"path")},vuetifyUsers(){return id(this.users,"username")},vuetifyGroups(){return id(this.groups,"name")},vuetifyLibraries(){return id(this.libraries,"path")},librariesExist(){return this.libraries&&this.libraries.length>0}},actions:{async loadTable(e){if(!this.isUserAdmin)return!1;const t=nV(e),n="get"+t;await ns[n]().then(r=>{const i=t.charAt(0).toLowerCase()+t.slice(1);return Array.isArray(r.data)?(this[i]=r.data,!0):(console.warn(i,"response not an array"),!1)}).catch(tV)},loadTables(e){for(const t of e)this.loadTable(t)},async loadFolders(e,t){if(!this.isUserAdmin)return!1;await ns.getFolders(e,t).then(n=>(this.folderPicker=n.data,!0)).catch(kt().setErrors)},async clearFolders(e){if(!this.isUserAdmin)return!1;this.folderPicker={root:e,folders:[""]}},async createRow(e,t){if(!this.isUserAdmin)return!1;const n="create"+e,r=kt();await ns[n](t).then(()=>(r.clearErrors(),this.loadTable(e))).catch(r.setErrors)},async updateRow(e,t,n){if(!this.isUserAdmin)return!1;const r="update"+e,i=kt();await ns[r](t,n).then(()=>(i.clearErrors(),this.loadTable(e))).catch(i.setErrors)},async changeUserPassword(e,t){if(!this.isUserAdmin)return!1;const n=kt();await ns.changeUserPassword(e,t).then(r=>(n.setSuccess(r.data.detail),!0)).catch(n.setErrors)},async deleteRow(e,t){if(!this.isUserAdmin)return!1;const n="delete"+e,r=kt();await ns[n](t).then(()=>(r.clearErrors(),this.loadTable(e))).catch(r.setErrors)},async librarianTask(e,t,n){if(!this.isUserAdmin)return!1;const r=kt();await ns.librarianTask(e,n).then(()=>r.setSuccess(t)).catch(r.setErrors)},nameSet(e,t,n,r){const i=new Set;if(e)for(const o of e)(!r||!n||o[t]!==n[t])&&i.add(o[t]);return i},async loadStats(){await ns.getStats().then(e=>(this.stats=e.data,!0)).catch(console.warn)},async updateAPIKey(){await ns.updateAPIKey().then(()=>!0).catch(console.warn)}}});var oo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ab(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t8(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Tu={exports:{}};/**
|
|
12
|
-
* @license
|
|
13
|
-
* Lodash <https://lodash.com/>
|
|
14
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
15
|
-
* Released under MIT license <https://lodash.com/license>
|
|
16
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
17
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
18
|
-
*/Tu.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",m=1,v=2,p=4,b=1,S=2,T=1,A=2,w=4,C=8,V=16,L=32,F=64,O=128,k=256,z=512,W=30,H="...",U=800,q=16,G=1,me=2,ce=3,he=1/0,fe=9007199254740991,_e=17976931348623157e292,ve=0/0,pe=4294967295,le=pe-1,Ne=pe>>>1,gt=[["ary",O],["bind",T],["bindKey",A],["curry",C],["curryRight",V],["flip",z],["partial",L],["partialRight",F],["rearg",k]],Y="[object Arguments]",Z="[object Array]",ue="[object AsyncFunction]",Ae="[object Boolean]",He="[object Date]",pt="[object DOMException]",Be="[object Error]",P="[object Function]",B="[object GeneratorFunction]",K="[object Map]",Q="[object Number]",oe="[object Null]",de="[object Object]",Ce="[object Promise]",ge="[object Proxy]",ye="[object RegExp]",re="[object Set]",Le="[object String]",Ee="[object Symbol]",Me="[object Undefined]",ze="[object WeakMap]",st="[object WeakSet]",mt="[object ArrayBuffer]",ut="[object DataView]",Ft="[object Float32Array]",pn="[object Float64Array]",Ir="[object Int8Array]",Mi="[object Int16Array]",Gr="[object Int32Array]",Bi="[object Uint8Array]",rn="[object Uint8ClampedArray]",An="[object Uint16Array]",Di="[object Uint32Array]",eC=/\b__p \+= '';/g,tC=/\b(__p \+=) '' \+/g,nC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Om=/&(?:amp|lt|gt|quot|#39);/g,Vm=/[&<>"']/g,rC=RegExp(Om.source),sC=RegExp(Vm.source),iC=/<%-([\s\S]+?)%>/g,oC=/<%([\s\S]+?)%>/g,Fm=/<%=([\s\S]+?)%>/g,aC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lC=/^\w*$/,uC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ic=/[\\^$.*+?()[\]{}|]/g,cC=RegExp(Ic.source),Lc=/^\s+/,fC=/\s/,dC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,hC=/\{\n\/\* \[wrapped with (.+)\] \*/,mC=/,? & /,vC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,gC=/[()=,{}\[\]\/\s]/,pC=/\\(\\)?/g,yC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mm=/\w*$/,bC=/^[-+]0x[0-9a-f]+$/i,_C=/^0b[01]+$/i,wC=/^\[object .+?Constructor\]$/,CC=/^0o[0-7]+$/i,SC=/^(?:0|[1-9]\d*)$/,xC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nl=/($^)/,AC=/['\n\r\u2028\u2029\\]/g,rl="\\ud800-\\udfff",EC="\\u0300-\\u036f",TC="\\ufe20-\\ufe2f",kC="\\u20d0-\\u20ff",Bm=EC+TC+kC,Dm="\\u2700-\\u27bf",$m="a-z\\xdf-\\xf6\\xf8-\\xff",PC="\\xac\\xb1\\xd7\\xf7",RC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",IC="\\u2000-\\u206f",LC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hm="A-Z\\xc0-\\xd6\\xd8-\\xde",Nm="\\ufe0e\\ufe0f",Um=PC+RC+IC+LC,Oc="['’]",OC="["+rl+"]",zm="["+Um+"]",sl="["+Bm+"]",Wm="\\d+",VC="["+Dm+"]",Gm="["+$m+"]",jm="[^"+rl+Um+Wm+Dm+$m+Hm+"]",Vc="\\ud83c[\\udffb-\\udfff]",FC="(?:"+sl+"|"+Vc+")",Km="[^"+rl+"]",Fc="(?:\\ud83c[\\udde6-\\uddff]){2}",Mc="[\\ud800-\\udbff][\\udc00-\\udfff]",$i="["+Hm+"]",qm="\\u200d",Ym="(?:"+Gm+"|"+jm+")",MC="(?:"+$i+"|"+jm+")",Zm="(?:"+Oc+"(?:d|ll|m|re|s|t|ve))?",Xm="(?:"+Oc+"(?:D|LL|M|RE|S|T|VE))?",Jm=FC+"?",Qm="["+Nm+"]?",BC="(?:"+qm+"(?:"+[Km,Fc,Mc].join("|")+")"+Qm+Jm+")*",DC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$C="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ev=Qm+Jm+BC,HC="(?:"+[VC,Fc,Mc].join("|")+")"+ev,NC="(?:"+[Km+sl+"?",sl,Fc,Mc,OC].join("|")+")",UC=RegExp(Oc,"g"),zC=RegExp(sl,"g"),Bc=RegExp(Vc+"(?="+Vc+")|"+NC+ev,"g"),WC=RegExp([$i+"?"+Gm+"+"+Zm+"(?="+[zm,$i,"$"].join("|")+")",MC+"+"+Xm+"(?="+[zm,$i+Ym,"$"].join("|")+")",$i+"?"+Ym+"+"+Zm,$i+"+"+Xm,$C,DC,Wm,HC].join("|"),"g"),GC=RegExp("["+qm+rl+Bm+Nm+"]"),jC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,KC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qC=-1,Ot={};Ot[Ft]=Ot[pn]=Ot[Ir]=Ot[Mi]=Ot[Gr]=Ot[Bi]=Ot[rn]=Ot[An]=Ot[Di]=!0,Ot[Y]=Ot[Z]=Ot[mt]=Ot[Ae]=Ot[ut]=Ot[He]=Ot[Be]=Ot[P]=Ot[K]=Ot[Q]=Ot[de]=Ot[ye]=Ot[re]=Ot[Le]=Ot[ze]=!1;var It={};It[Y]=It[Z]=It[mt]=It[ut]=It[Ae]=It[He]=It[Ft]=It[pn]=It[Ir]=It[Mi]=It[Gr]=It[K]=It[Q]=It[de]=It[ye]=It[re]=It[Le]=It[Ee]=It[Bi]=It[rn]=It[An]=It[Di]=!0,It[Be]=It[P]=It[ze]=!1;var YC={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ZC={"&":"&","<":"<",">":">",'"':""","'":"'"},XC={"&":"&","<":"<",">":">",""":'"',"'":"'"},JC={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},QC=parseFloat,e2=parseInt,tv=typeof oo=="object"&&oo&&oo.Object===Object&&oo,t2=typeof self=="object"&&self&&self.Object===Object&&self,sn=tv||t2||Function("return this")(),Dc=t&&!t.nodeType&&t,Js=Dc&&!0&&e&&!e.nodeType&&e,nv=Js&&Js.exports===Dc,$c=nv&&tv.process,Yn=function(){try{var $=Js&&Js.require&&Js.require("util").types;return $||$c&&$c.binding&&$c.binding("util")}catch{}}(),rv=Yn&&Yn.isArrayBuffer,sv=Yn&&Yn.isDate,iv=Yn&&Yn.isMap,ov=Yn&&Yn.isRegExp,av=Yn&&Yn.isSet,lv=Yn&&Yn.isTypedArray;function Vn($,X,j){switch(j.length){case 0:return $.call(X);case 1:return $.call(X,j[0]);case 2:return $.call(X,j[0],j[1]);case 3:return $.call(X,j[0],j[1],j[2])}return $.apply(X,j)}function n2($,X,j,xe){for(var Ye=-1,yt=$==null?0:$.length;++Ye<yt;){var Xt=$[Ye];X(xe,Xt,j(Xt),$)}return xe}function Zn($,X){for(var j=-1,xe=$==null?0:$.length;++j<xe&&X($[j],j,$)!==!1;);return $}function r2($,X){for(var j=$==null?0:$.length;j--&&X($[j],j,$)!==!1;);return $}function uv($,X){for(var j=-1,xe=$==null?0:$.length;++j<xe;)if(!X($[j],j,$))return!1;return!0}function _s($,X){for(var j=-1,xe=$==null?0:$.length,Ye=0,yt=[];++j<xe;){var Xt=$[j];X(Xt,j,$)&&(yt[Ye++]=Xt)}return yt}function il($,X){var j=$==null?0:$.length;return!!j&&Hi($,X,0)>-1}function Hc($,X,j){for(var xe=-1,Ye=$==null?0:$.length;++xe<Ye;)if(j(X,$[xe]))return!0;return!1}function Mt($,X){for(var j=-1,xe=$==null?0:$.length,Ye=Array(xe);++j<xe;)Ye[j]=X($[j],j,$);return Ye}function ws($,X){for(var j=-1,xe=X.length,Ye=$.length;++j<xe;)$[Ye+j]=X[j];return $}function Nc($,X,j,xe){var Ye=-1,yt=$==null?0:$.length;for(xe&&yt&&(j=$[++Ye]);++Ye<yt;)j=X(j,$[Ye],Ye,$);return j}function s2($,X,j,xe){var Ye=$==null?0:$.length;for(xe&&Ye&&(j=$[--Ye]);Ye--;)j=X(j,$[Ye],Ye,$);return j}function Uc($,X){for(var j=-1,xe=$==null?0:$.length;++j<xe;)if(X($[j],j,$))return!0;return!1}var i2=zc("length");function o2($){return $.split("")}function a2($){return $.match(vC)||[]}function cv($,X,j){var xe;return j($,function(Ye,yt,Xt){if(X(Ye,yt,Xt))return xe=yt,!1}),xe}function ol($,X,j,xe){for(var Ye=$.length,yt=j+(xe?1:-1);xe?yt--:++yt<Ye;)if(X($[yt],yt,$))return yt;return-1}function Hi($,X,j){return X===X?b2($,X,j):ol($,fv,j)}function l2($,X,j,xe){for(var Ye=j-1,yt=$.length;++Ye<yt;)if(xe($[Ye],X))return Ye;return-1}function fv($){return $!==$}function dv($,X){var j=$==null?0:$.length;return j?Gc($,X)/j:ve}function zc($){return function(X){return X==null?n:X[$]}}function Wc($){return function(X){return $==null?n:$[X]}}function hv($,X,j,xe,Ye){return Ye($,function(yt,Xt,Tt){j=xe?(xe=!1,yt):X(j,yt,Xt,Tt)}),j}function u2($,X){var j=$.length;for($.sort(X);j--;)$[j]=$[j].value;return $}function Gc($,X){for(var j,xe=-1,Ye=$.length;++xe<Ye;){var yt=X($[xe]);yt!==n&&(j=j===n?yt:j+yt)}return j}function jc($,X){for(var j=-1,xe=Array($);++j<$;)xe[j]=X(j);return xe}function c2($,X){return Mt(X,function(j){return[j,$[j]]})}function mv($){return $&&$.slice(0,yv($)+1).replace(Lc,"")}function Fn($){return function(X){return $(X)}}function Kc($,X){return Mt(X,function(j){return $[j]})}function Ho($,X){return $.has(X)}function vv($,X){for(var j=-1,xe=$.length;++j<xe&&Hi(X,$[j],0)>-1;);return j}function gv($,X){for(var j=$.length;j--&&Hi(X,$[j],0)>-1;);return j}function f2($,X){for(var j=$.length,xe=0;j--;)$[j]===X&&++xe;return xe}var d2=Wc(YC),h2=Wc(ZC);function m2($){return"\\"+JC[$]}function v2($,X){return $==null?n:$[X]}function Ni($){return GC.test($)}function g2($){return jC.test($)}function p2($){for(var X,j=[];!(X=$.next()).done;)j.push(X.value);return j}function qc($){var X=-1,j=Array($.size);return $.forEach(function(xe,Ye){j[++X]=[Ye,xe]}),j}function pv($,X){return function(j){return $(X(j))}}function Cs($,X){for(var j=-1,xe=$.length,Ye=0,yt=[];++j<xe;){var Xt=$[j];(Xt===X||Xt===h)&&($[j]=h,yt[Ye++]=j)}return yt}function al($){var X=-1,j=Array($.size);return $.forEach(function(xe){j[++X]=xe}),j}function y2($){var X=-1,j=Array($.size);return $.forEach(function(xe){j[++X]=[xe,xe]}),j}function b2($,X,j){for(var xe=j-1,Ye=$.length;++xe<Ye;)if($[xe]===X)return xe;return-1}function _2($,X,j){for(var xe=j+1;xe--;)if($[xe]===X)return xe;return xe}function Ui($){return Ni($)?C2($):i2($)}function hr($){return Ni($)?S2($):o2($)}function yv($){for(var X=$.length;X--&&fC.test($.charAt(X)););return X}var w2=Wc(XC);function C2($){for(var X=Bc.lastIndex=0;Bc.test($);)++X;return X}function S2($){return $.match(Bc)||[]}function x2($){return $.match(WC)||[]}var A2=function $(X){X=X==null?sn:zi.defaults(sn.Object(),X,zi.pick(sn,KC));var j=X.Array,xe=X.Date,Ye=X.Error,yt=X.Function,Xt=X.Math,Tt=X.Object,Yc=X.RegExp,E2=X.String,Xn=X.TypeError,ll=j.prototype,T2=yt.prototype,Wi=Tt.prototype,ul=X["__core-js_shared__"],cl=T2.toString,wt=Wi.hasOwnProperty,k2=0,bv=function(){var s=/[^.]+$/.exec(ul&&ul.keys&&ul.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fl=Wi.toString,P2=cl.call(Tt),R2=sn._,I2=Yc("^"+cl.call(wt).replace(Ic,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dl=nv?X.Buffer:n,Ss=X.Symbol,hl=X.Uint8Array,_v=dl?dl.allocUnsafe:n,ml=pv(Tt.getPrototypeOf,Tt),wv=Tt.create,Cv=Wi.propertyIsEnumerable,vl=ll.splice,Sv=Ss?Ss.isConcatSpreadable:n,No=Ss?Ss.iterator:n,Qs=Ss?Ss.toStringTag:n,gl=function(){try{var s=si(Tt,"defineProperty");return s({},"",{}),s}catch{}}(),L2=X.clearTimeout!==sn.clearTimeout&&X.clearTimeout,O2=xe&&xe.now!==sn.Date.now&&xe.now,V2=X.setTimeout!==sn.setTimeout&&X.setTimeout,pl=Xt.ceil,yl=Xt.floor,Zc=Tt.getOwnPropertySymbols,F2=dl?dl.isBuffer:n,xv=X.isFinite,M2=ll.join,B2=pv(Tt.keys,Tt),Jt=Xt.max,fn=Xt.min,D2=xe.now,$2=X.parseInt,Av=Xt.random,H2=ll.reverse,Xc=si(X,"DataView"),Uo=si(X,"Map"),Jc=si(X,"Promise"),Gi=si(X,"Set"),zo=si(X,"WeakMap"),Wo=si(Tt,"create"),bl=zo&&new zo,ji={},N2=ii(Xc),U2=ii(Uo),z2=ii(Jc),W2=ii(Gi),G2=ii(zo),_l=Ss?Ss.prototype:n,Go=_l?_l.valueOf:n,Ev=_l?_l.toString:n;function x(s){if(Ht(s)&&!Xe(s)&&!(s instanceof lt)){if(s instanceof Jn)return s;if(wt.call(s,"__wrapped__"))return Tg(s)}return new Jn(s)}var Ki=function(){function s(){}return function(a){if(!Dt(a))return{};if(wv)return wv(a);s.prototype=a;var c=new s;return s.prototype=n,c}}();function wl(){}function Jn(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=n}x.templateSettings={escape:iC,evaluate:oC,interpolate:Fm,variable:"",imports:{_:x}},x.prototype=wl.prototype,x.prototype.constructor=x,Jn.prototype=Ki(wl.prototype),Jn.prototype.constructor=Jn;function lt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pe,this.__views__=[]}function j2(){var s=new lt(this.__wrapped__);return s.__actions__=En(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=En(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=En(this.__views__),s}function K2(){if(this.__filtered__){var s=new lt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function q2(){var s=this.__wrapped__.value(),a=this.__dir__,c=Xe(s),g=a<0,_=c?s.length:0,E=ox(0,_,this.__views__),I=E.start,M=E.end,N=M-I,te=g?M:I-1,ne=this.__iteratees__,ae=ne.length,we=0,Ie=fn(N,this.__takeCount__);if(!c||!g&&_==N&&Ie==N)return Zv(s,this.__actions__);var We=[];e:for(;N--&&we<Ie;){te+=a;for(var Qe=-1,Ge=s[te];++Qe<ae;){var it=ne[Qe],ct=it.iteratee,Dn=it.type,_n=ct(Ge);if(Dn==me)Ge=_n;else if(!_n){if(Dn==G)continue e;break e}}We[we++]=Ge}return We}lt.prototype=Ki(wl.prototype),lt.prototype.constructor=lt;function ei(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var g=s[a];this.set(g[0],g[1])}}function Y2(){this.__data__=Wo?Wo(null):{},this.size=0}function Z2(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function X2(s){var a=this.__data__;if(Wo){var c=a[s];return c===f?n:c}return wt.call(a,s)?a[s]:n}function J2(s){var a=this.__data__;return Wo?a[s]!==n:wt.call(a,s)}function Q2(s,a){var c=this.__data__;return this.size+=this.has(s)?0:1,c[s]=Wo&&a===n?f:a,this}ei.prototype.clear=Y2,ei.prototype.delete=Z2,ei.prototype.get=X2,ei.prototype.has=J2,ei.prototype.set=Q2;function jr(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var g=s[a];this.set(g[0],g[1])}}function eS(){this.__data__=[],this.size=0}function tS(s){var a=this.__data__,c=Cl(a,s);if(c<0)return!1;var g=a.length-1;return c==g?a.pop():vl.call(a,c,1),--this.size,!0}function nS(s){var a=this.__data__,c=Cl(a,s);return c<0?n:a[c][1]}function rS(s){return Cl(this.__data__,s)>-1}function sS(s,a){var c=this.__data__,g=Cl(c,s);return g<0?(++this.size,c.push([s,a])):c[g][1]=a,this}jr.prototype.clear=eS,jr.prototype.delete=tS,jr.prototype.get=nS,jr.prototype.has=rS,jr.prototype.set=sS;function Kr(s){var a=-1,c=s==null?0:s.length;for(this.clear();++a<c;){var g=s[a];this.set(g[0],g[1])}}function iS(){this.size=0,this.__data__={hash:new ei,map:new(Uo||jr),string:new ei}}function oS(s){var a=Vl(this,s).delete(s);return this.size-=a?1:0,a}function aS(s){return Vl(this,s).get(s)}function lS(s){return Vl(this,s).has(s)}function uS(s,a){var c=Vl(this,s),g=c.size;return c.set(s,a),this.size+=c.size==g?0:1,this}Kr.prototype.clear=iS,Kr.prototype.delete=oS,Kr.prototype.get=aS,Kr.prototype.has=lS,Kr.prototype.set=uS;function ti(s){var a=-1,c=s==null?0:s.length;for(this.__data__=new Kr;++a<c;)this.add(s[a])}function cS(s){return this.__data__.set(s,f),this}function fS(s){return this.__data__.has(s)}ti.prototype.add=ti.prototype.push=cS,ti.prototype.has=fS;function mr(s){var a=this.__data__=new jr(s);this.size=a.size}function dS(){this.__data__=new jr,this.size=0}function hS(s){var a=this.__data__,c=a.delete(s);return this.size=a.size,c}function mS(s){return this.__data__.get(s)}function vS(s){return this.__data__.has(s)}function gS(s,a){var c=this.__data__;if(c instanceof jr){var g=c.__data__;if(!Uo||g.length<i-1)return g.push([s,a]),this.size=++c.size,this;c=this.__data__=new Kr(g)}return c.set(s,a),this.size=c.size,this}mr.prototype.clear=dS,mr.prototype.delete=hS,mr.prototype.get=mS,mr.prototype.has=vS,mr.prototype.set=gS;function Tv(s,a){var c=Xe(s),g=!c&&oi(s),_=!c&&!g&&ks(s),E=!c&&!g&&!_&&Xi(s),I=c||g||_||E,M=I?jc(s.length,E2):[],N=M.length;for(var te in s)(a||wt.call(s,te))&&!(I&&(te=="length"||_&&(te=="offset"||te=="parent")||E&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Xr(te,N)))&&M.push(te);return M}function kv(s){var a=s.length;return a?s[cf(0,a-1)]:n}function pS(s,a){return Fl(En(s),ni(a,0,s.length))}function yS(s){return Fl(En(s))}function Qc(s,a,c){(c!==n&&!vr(s[a],c)||c===n&&!(a in s))&&qr(s,a,c)}function jo(s,a,c){var g=s[a];(!(wt.call(s,a)&&vr(g,c))||c===n&&!(a in s))&&qr(s,a,c)}function Cl(s,a){for(var c=s.length;c--;)if(vr(s[c][0],a))return c;return-1}function bS(s,a,c,g){return xs(s,function(_,E,I){a(g,_,c(_),I)}),g}function Pv(s,a){return s&&Or(a,nn(a),s)}function _S(s,a){return s&&Or(a,kn(a),s)}function qr(s,a,c){a=="__proto__"&&gl?gl(s,a,{configurable:!0,enumerable:!0,value:c,writable:!0}):s[a]=c}function ef(s,a){for(var c=-1,g=a.length,_=j(g),E=s==null;++c<g;)_[c]=E?n:Ff(s,a[c]);return _}function ni(s,a,c){return s===s&&(c!==n&&(s=s<=c?s:c),a!==n&&(s=s>=a?s:a)),s}function Qn(s,a,c,g,_,E){var I,M=a&m,N=a&v,te=a&p;if(c&&(I=_?c(s,g,_,E):c(s)),I!==n)return I;if(!Dt(s))return s;var ne=Xe(s);if(ne){if(I=lx(s),!M)return En(s,I)}else{var ae=dn(s),we=ae==P||ae==B;if(ks(s))return Qv(s,M);if(ae==de||ae==Y||we&&!_){if(I=N||we?{}:yg(s),!M)return N?XS(s,_S(I,s)):ZS(s,Pv(I,s))}else{if(!It[ae])return _?s:{};I=ux(s,ae,M)}}E||(E=new mr);var Ie=E.get(s);if(Ie)return Ie;E.set(s,I),Kg(s)?s.forEach(function(Ge){I.add(Qn(Ge,a,c,Ge,s,E))}):Gg(s)&&s.forEach(function(Ge,it){I.set(it,Qn(Ge,a,c,it,s,E))});var We=te?N?wf:_f:N?kn:nn,Qe=ne?n:We(s);return Zn(Qe||s,function(Ge,it){Qe&&(it=Ge,Ge=s[it]),jo(I,it,Qn(Ge,a,c,it,s,E))}),I}function wS(s){var a=nn(s);return function(c){return Rv(c,s,a)}}function Rv(s,a,c){var g=c.length;if(s==null)return!g;for(s=Tt(s);g--;){var _=c[g],E=a[_],I=s[_];if(I===n&&!(_ in s)||!E(I))return!1}return!0}function Iv(s,a,c){if(typeof s!="function")throw new Xn(l);return Qo(function(){s.apply(n,c)},a)}function Ko(s,a,c,g){var _=-1,E=il,I=!0,M=s.length,N=[],te=a.length;if(!M)return N;c&&(a=Mt(a,Fn(c))),g?(E=Hc,I=!1):a.length>=i&&(E=Ho,I=!1,a=new ti(a));e:for(;++_<M;){var ne=s[_],ae=c==null?ne:c(ne);if(ne=g||ne!==0?ne:0,I&&ae===ae){for(var we=te;we--;)if(a[we]===ae)continue e;N.push(ne)}else E(a,ae,g)||N.push(ne)}return N}var xs=sg(Lr),Lv=sg(nf,!0);function CS(s,a){var c=!0;return xs(s,function(g,_,E){return c=!!a(g,_,E),c}),c}function Sl(s,a,c){for(var g=-1,_=s.length;++g<_;){var E=s[g],I=a(E);if(I!=null&&(M===n?I===I&&!Bn(I):c(I,M)))var M=I,N=E}return N}function SS(s,a,c,g){var _=s.length;for(c=Je(c),c<0&&(c=-c>_?0:_+c),g=g===n||g>_?_:Je(g),g<0&&(g+=_),g=c>g?0:Yg(g);c<g;)s[c++]=a;return s}function Ov(s,a){var c=[];return xs(s,function(g,_,E){a(g,_,E)&&c.push(g)}),c}function on(s,a,c,g,_){var E=-1,I=s.length;for(c||(c=fx),_||(_=[]);++E<I;){var M=s[E];a>0&&c(M)?a>1?on(M,a-1,c,g,_):ws(_,M):g||(_[_.length]=M)}return _}var tf=ig(),Vv=ig(!0);function Lr(s,a){return s&&tf(s,a,nn)}function nf(s,a){return s&&Vv(s,a,nn)}function xl(s,a){return _s(a,function(c){return Jr(s[c])})}function ri(s,a){a=Es(a,s);for(var c=0,g=a.length;s!=null&&c<g;)s=s[Vr(a[c++])];return c&&c==g?s:n}function Fv(s,a,c){var g=a(s);return Xe(s)?g:ws(g,c(s))}function yn(s){return s==null?s===n?Me:oe:Qs&&Qs in Tt(s)?ix(s):yx(s)}function rf(s,a){return s>a}function xS(s,a){return s!=null&&wt.call(s,a)}function AS(s,a){return s!=null&&a in Tt(s)}function ES(s,a,c){return s>=fn(a,c)&&s<Jt(a,c)}function sf(s,a,c){for(var g=c?Hc:il,_=s[0].length,E=s.length,I=E,M=j(E),N=1/0,te=[];I--;){var ne=s[I];I&&a&&(ne=Mt(ne,Fn(a))),N=fn(ne.length,N),M[I]=!c&&(a||_>=120&&ne.length>=120)?new ti(I&&ne):n}ne=s[0];var ae=-1,we=M[0];e:for(;++ae<_&&te.length<N;){var Ie=ne[ae],We=a?a(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(we?Ho(we,We):g(te,We,c))){for(I=E;--I;){var Qe=M[I];if(!(Qe?Ho(Qe,We):g(s[I],We,c)))continue e}we&&we.push(We),te.push(Ie)}}return te}function TS(s,a,c,g){return Lr(s,function(_,E,I){a(g,c(_),E,I)}),g}function qo(s,a,c){a=Es(a,s),s=Cg(s,a);var g=s==null?s:s[Vr(tr(a))];return g==null?n:Vn(g,s,c)}function Mv(s){return Ht(s)&&yn(s)==Y}function kS(s){return Ht(s)&&yn(s)==mt}function PS(s){return Ht(s)&&yn(s)==He}function Yo(s,a,c,g,_){return s===a?!0:s==null||a==null||!Ht(s)&&!Ht(a)?s!==s&&a!==a:RS(s,a,c,g,Yo,_)}function RS(s,a,c,g,_,E){var I=Xe(s),M=Xe(a),N=I?Z:dn(s),te=M?Z:dn(a);N=N==Y?de:N,te=te==Y?de:te;var ne=N==de,ae=te==de,we=N==te;if(we&&ks(s)){if(!ks(a))return!1;I=!0,ne=!1}if(we&&!ne)return E||(E=new mr),I||Xi(s)?vg(s,a,c,g,_,E):rx(s,a,N,c,g,_,E);if(!(c&b)){var Ie=ne&&wt.call(s,"__wrapped__"),We=ae&&wt.call(a,"__wrapped__");if(Ie||We){var Qe=Ie?s.value():s,Ge=We?a.value():a;return E||(E=new mr),_(Qe,Ge,c,g,E)}}return we?(E||(E=new mr),sx(s,a,c,g,_,E)):!1}function IS(s){return Ht(s)&&dn(s)==K}function of(s,a,c,g){var _=c.length,E=_,I=!g;if(s==null)return!E;for(s=Tt(s);_--;){var M=c[_];if(I&&M[2]?M[1]!==s[M[0]]:!(M[0]in s))return!1}for(;++_<E;){M=c[_];var N=M[0],te=s[N],ne=M[1];if(I&&M[2]){if(te===n&&!(N in s))return!1}else{var ae=new mr;if(g)var we=g(te,ne,N,s,a,ae);if(!(we===n?Yo(ne,te,b|S,g,ae):we))return!1}}return!0}function Bv(s){if(!Dt(s)||hx(s))return!1;var a=Jr(s)?I2:wC;return a.test(ii(s))}function LS(s){return Ht(s)&&yn(s)==ye}function OS(s){return Ht(s)&&dn(s)==re}function VS(s){return Ht(s)&&Nl(s.length)&&!!Ot[yn(s)]}function Dv(s){return typeof s=="function"?s:s==null?Pn:typeof s=="object"?Xe(s)?Nv(s[0],s[1]):Hv(s):op(s)}function af(s){if(!Jo(s))return B2(s);var a=[];for(var c in Tt(s))wt.call(s,c)&&c!="constructor"&&a.push(c);return a}function FS(s){if(!Dt(s))return px(s);var a=Jo(s),c=[];for(var g in s)g=="constructor"&&(a||!wt.call(s,g))||c.push(g);return c}function lf(s,a){return s<a}function $v(s,a){var c=-1,g=Tn(s)?j(s.length):[];return xs(s,function(_,E,I){g[++c]=a(_,E,I)}),g}function Hv(s){var a=Sf(s);return a.length==1&&a[0][2]?_g(a[0][0],a[0][1]):function(c){return c===s||of(c,s,a)}}function Nv(s,a){return Af(s)&&bg(a)?_g(Vr(s),a):function(c){var g=Ff(c,s);return g===n&&g===a?Mf(c,s):Yo(a,g,b|S)}}function Al(s,a,c,g,_){s!==a&&tf(a,function(E,I){if(_||(_=new mr),Dt(E))MS(s,a,I,c,Al,g,_);else{var M=g?g(Tf(s,I),E,I+"",s,a,_):n;M===n&&(M=E),Qc(s,I,M)}},kn)}function MS(s,a,c,g,_,E,I){var M=Tf(s,c),N=Tf(a,c),te=I.get(N);if(te){Qc(s,c,te);return}var ne=E?E(M,N,c+"",s,a,I):n,ae=ne===n;if(ae){var we=Xe(N),Ie=!we&&ks(N),We=!we&&!Ie&&Xi(N);ne=N,we||Ie||We?Xe(M)?ne=M:zt(M)?ne=En(M):Ie?(ae=!1,ne=Qv(N,!0)):We?(ae=!1,ne=eg(N,!0)):ne=[]:ea(N)||oi(N)?(ne=M,oi(M)?ne=Zg(M):(!Dt(M)||Jr(M))&&(ne=yg(N))):ae=!1}ae&&(I.set(N,ne),_(ne,N,g,E,I),I.delete(N)),Qc(s,c,ne)}function Uv(s,a){var c=s.length;if(c)return a+=a<0?c:0,Xr(a,c)?s[a]:n}function zv(s,a,c){a.length?a=Mt(a,function(E){return Xe(E)?function(I){return ri(I,E.length===1?E[0]:E)}:E}):a=[Pn];var g=-1;a=Mt(a,Fn(Ue()));var _=$v(s,function(E,I,M){var N=Mt(a,function(te){return te(E)});return{criteria:N,index:++g,value:E}});return u2(_,function(E,I){return YS(E,I,c)})}function BS(s,a){return Wv(s,a,function(c,g){return Mf(s,g)})}function Wv(s,a,c){for(var g=-1,_=a.length,E={};++g<_;){var I=a[g],M=ri(s,I);c(M,I)&&Zo(E,Es(I,s),M)}return E}function DS(s){return function(a){return ri(a,s)}}function uf(s,a,c,g){var _=g?l2:Hi,E=-1,I=a.length,M=s;for(s===a&&(a=En(a)),c&&(M=Mt(s,Fn(c)));++E<I;)for(var N=0,te=a[E],ne=c?c(te):te;(N=_(M,ne,N,g))>-1;)M!==s&&vl.call(M,N,1),vl.call(s,N,1);return s}function Gv(s,a){for(var c=s?a.length:0,g=c-1;c--;){var _=a[c];if(c==g||_!==E){var E=_;Xr(_)?vl.call(s,_,1):hf(s,_)}}return s}function cf(s,a){return s+yl(Av()*(a-s+1))}function $S(s,a,c,g){for(var _=-1,E=Jt(pl((a-s)/(c||1)),0),I=j(E);E--;)I[g?E:++_]=s,s+=c;return I}function ff(s,a){var c="";if(!s||a<1||a>fe)return c;do a%2&&(c+=s),a=yl(a/2),a&&(s+=s);while(a);return c}function nt(s,a){return kf(wg(s,a,Pn),s+"")}function HS(s){return kv(Ji(s))}function NS(s,a){var c=Ji(s);return Fl(c,ni(a,0,c.length))}function Zo(s,a,c,g){if(!Dt(s))return s;a=Es(a,s);for(var _=-1,E=a.length,I=E-1,M=s;M!=null&&++_<E;){var N=Vr(a[_]),te=c;if(N==="__proto__"||N==="constructor"||N==="prototype")return s;if(_!=I){var ne=M[N];te=g?g(ne,N,M):n,te===n&&(te=Dt(ne)?ne:Xr(a[_+1])?[]:{})}jo(M,N,te),M=M[N]}return s}var jv=bl?function(s,a){return bl.set(s,a),s}:Pn,US=gl?function(s,a){return gl(s,"toString",{configurable:!0,enumerable:!1,value:Df(a),writable:!0})}:Pn;function zS(s){return Fl(Ji(s))}function er(s,a,c){var g=-1,_=s.length;a<0&&(a=-a>_?0:_+a),c=c>_?_:c,c<0&&(c+=_),_=a>c?0:c-a>>>0,a>>>=0;for(var E=j(_);++g<_;)E[g]=s[g+a];return E}function WS(s,a){var c;return xs(s,function(g,_,E){return c=a(g,_,E),!c}),!!c}function El(s,a,c){var g=0,_=s==null?g:s.length;if(typeof a=="number"&&a===a&&_<=Ne){for(;g<_;){var E=g+_>>>1,I=s[E];I!==null&&!Bn(I)&&(c?I<=a:I<a)?g=E+1:_=E}return _}return df(s,a,Pn,c)}function df(s,a,c,g){var _=0,E=s==null?0:s.length;if(E===0)return 0;a=c(a);for(var I=a!==a,M=a===null,N=Bn(a),te=a===n;_<E;){var ne=yl((_+E)/2),ae=c(s[ne]),we=ae!==n,Ie=ae===null,We=ae===ae,Qe=Bn(ae);if(I)var Ge=g||We;else te?Ge=We&&(g||we):M?Ge=We&&we&&(g||!Ie):N?Ge=We&&we&&!Ie&&(g||!Qe):Ie||Qe?Ge=!1:Ge=g?ae<=a:ae<a;Ge?_=ne+1:E=ne}return fn(E,le)}function Kv(s,a){for(var c=-1,g=s.length,_=0,E=[];++c<g;){var I=s[c],M=a?a(I):I;if(!c||!vr(M,N)){var N=M;E[_++]=I===0?0:I}}return E}function qv(s){return typeof s=="number"?s:Bn(s)?ve:+s}function Mn(s){if(typeof s=="string")return s;if(Xe(s))return Mt(s,Mn)+"";if(Bn(s))return Ev?Ev.call(s):"";var a=s+"";return a=="0"&&1/s==-he?"-0":a}function As(s,a,c){var g=-1,_=il,E=s.length,I=!0,M=[],N=M;if(c)I=!1,_=Hc;else if(E>=i){var te=a?null:tx(s);if(te)return al(te);I=!1,_=Ho,N=new ti}else N=a?[]:M;e:for(;++g<E;){var ne=s[g],ae=a?a(ne):ne;if(ne=c||ne!==0?ne:0,I&&ae===ae){for(var we=N.length;we--;)if(N[we]===ae)continue e;a&&N.push(ae),M.push(ne)}else _(N,ae,c)||(N!==M&&N.push(ae),M.push(ne))}return M}function hf(s,a){return a=Es(a,s),s=Cg(s,a),s==null||delete s[Vr(tr(a))]}function Yv(s,a,c,g){return Zo(s,a,c(ri(s,a)),g)}function Tl(s,a,c,g){for(var _=s.length,E=g?_:-1;(g?E--:++E<_)&&a(s[E],E,s););return c?er(s,g?0:E,g?E+1:_):er(s,g?E+1:0,g?_:E)}function Zv(s,a){var c=s;return c instanceof lt&&(c=c.value()),Nc(a,function(g,_){return _.func.apply(_.thisArg,ws([g],_.args))},c)}function mf(s,a,c){var g=s.length;if(g<2)return g?As(s[0]):[];for(var _=-1,E=j(g);++_<g;)for(var I=s[_],M=-1;++M<g;)M!=_&&(E[_]=Ko(E[_]||I,s[M],a,c));return As(on(E,1),a,c)}function Xv(s,a,c){for(var g=-1,_=s.length,E=a.length,I={};++g<_;){var M=g<E?a[g]:n;c(I,s[g],M)}return I}function vf(s){return zt(s)?s:[]}function gf(s){return typeof s=="function"?s:Pn}function Es(s,a){return Xe(s)?s:Af(s,a)?[s]:Eg(_t(s))}var GS=nt;function Ts(s,a,c){var g=s.length;return c=c===n?g:c,!a&&c>=g?s:er(s,a,c)}var Jv=L2||function(s){return sn.clearTimeout(s)};function Qv(s,a){if(a)return s.slice();var c=s.length,g=_v?_v(c):new s.constructor(c);return s.copy(g),g}function pf(s){var a=new s.constructor(s.byteLength);return new hl(a).set(new hl(s)),a}function jS(s,a){var c=a?pf(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.byteLength)}function KS(s){var a=new s.constructor(s.source,Mm.exec(s));return a.lastIndex=s.lastIndex,a}function qS(s){return Go?Tt(Go.call(s)):{}}function eg(s,a){var c=a?pf(s.buffer):s.buffer;return new s.constructor(c,s.byteOffset,s.length)}function tg(s,a){if(s!==a){var c=s!==n,g=s===null,_=s===s,E=Bn(s),I=a!==n,M=a===null,N=a===a,te=Bn(a);if(!M&&!te&&!E&&s>a||E&&I&&N&&!M&&!te||g&&I&&N||!c&&N||!_)return 1;if(!g&&!E&&!te&&s<a||te&&c&&_&&!g&&!E||M&&c&&_||!I&&_||!N)return-1}return 0}function YS(s,a,c){for(var g=-1,_=s.criteria,E=a.criteria,I=_.length,M=c.length;++g<I;){var N=tg(_[g],E[g]);if(N){if(g>=M)return N;var te=c[g];return N*(te=="desc"?-1:1)}}return s.index-a.index}function ng(s,a,c,g){for(var _=-1,E=s.length,I=c.length,M=-1,N=a.length,te=Jt(E-I,0),ne=j(N+te),ae=!g;++M<N;)ne[M]=a[M];for(;++_<I;)(ae||_<E)&&(ne[c[_]]=s[_]);for(;te--;)ne[M++]=s[_++];return ne}function rg(s,a,c,g){for(var _=-1,E=s.length,I=-1,M=c.length,N=-1,te=a.length,ne=Jt(E-M,0),ae=j(ne+te),we=!g;++_<ne;)ae[_]=s[_];for(var Ie=_;++N<te;)ae[Ie+N]=a[N];for(;++I<M;)(we||_<E)&&(ae[Ie+c[I]]=s[_++]);return ae}function En(s,a){var c=-1,g=s.length;for(a||(a=j(g));++c<g;)a[c]=s[c];return a}function Or(s,a,c,g){var _=!c;c||(c={});for(var E=-1,I=a.length;++E<I;){var M=a[E],N=g?g(c[M],s[M],M,c,s):n;N===n&&(N=s[M]),_?qr(c,M,N):jo(c,M,N)}return c}function ZS(s,a){return Or(s,xf(s),a)}function XS(s,a){return Or(s,gg(s),a)}function kl(s,a){return function(c,g){var _=Xe(c)?n2:bS,E=a?a():{};return _(c,s,Ue(g,2),E)}}function qi(s){return nt(function(a,c){var g=-1,_=c.length,E=_>1?c[_-1]:n,I=_>2?c[2]:n;for(E=s.length>3&&typeof E=="function"?(_--,E):n,I&&bn(c[0],c[1],I)&&(E=_<3?n:E,_=1),a=Tt(a);++g<_;){var M=c[g];M&&s(a,M,g,E)}return a})}function sg(s,a){return function(c,g){if(c==null)return c;if(!Tn(c))return s(c,g);for(var _=c.length,E=a?_:-1,I=Tt(c);(a?E--:++E<_)&&g(I[E],E,I)!==!1;);return c}}function ig(s){return function(a,c,g){for(var _=-1,E=Tt(a),I=g(a),M=I.length;M--;){var N=I[s?M:++_];if(c(E[N],N,E)===!1)break}return a}}function JS(s,a,c){var g=a&T,_=Xo(s);function E(){var I=this&&this!==sn&&this instanceof E?_:s;return I.apply(g?c:this,arguments)}return E}function og(s){return function(a){a=_t(a);var c=Ni(a)?hr(a):n,g=c?c[0]:a.charAt(0),_=c?Ts(c,1).join(""):a.slice(1);return g[s]()+_}}function Yi(s){return function(a){return Nc(sp(rp(a).replace(UC,"")),s,"")}}function Xo(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var c=Ki(s.prototype),g=s.apply(c,a);return Dt(g)?g:c}}function QS(s,a,c){var g=Xo(s);function _(){for(var E=arguments.length,I=j(E),M=E,N=Zi(_);M--;)I[M]=arguments[M];var te=E<3&&I[0]!==N&&I[E-1]!==N?[]:Cs(I,N);if(E-=te.length,E<c)return fg(s,a,Pl,_.placeholder,n,I,te,n,n,c-E);var ne=this&&this!==sn&&this instanceof _?g:s;return Vn(ne,this,I)}return _}function ag(s){return function(a,c,g){var _=Tt(a);if(!Tn(a)){var E=Ue(c,3);a=nn(a),c=function(M){return E(_[M],M,_)}}var I=s(a,c,g);return I>-1?_[E?a[I]:I]:n}}function lg(s){return Zr(function(a){var c=a.length,g=c,_=Jn.prototype.thru;for(s&&a.reverse();g--;){var E=a[g];if(typeof E!="function")throw new Xn(l);if(_&&!I&&Ol(E)=="wrapper")var I=new Jn([],!0)}for(g=I?g:c;++g<c;){E=a[g];var M=Ol(E),N=M=="wrapper"?Cf(E):n;N&&Ef(N[0])&&N[1]==(O|C|L|k)&&!N[4].length&&N[9]==1?I=I[Ol(N[0])].apply(I,N[3]):I=E.length==1&&Ef(E)?I[M]():I.thru(E)}return function(){var te=arguments,ne=te[0];if(I&&te.length==1&&Xe(ne))return I.plant(ne).value();for(var ae=0,we=c?a[ae].apply(this,te):ne;++ae<c;)we=a[ae].call(this,we);return we}})}function Pl(s,a,c,g,_,E,I,M,N,te){var ne=a&O,ae=a&T,we=a&A,Ie=a&(C|V),We=a&z,Qe=we?n:Xo(s);function Ge(){for(var it=arguments.length,ct=j(it),Dn=it;Dn--;)ct[Dn]=arguments[Dn];if(Ie)var _n=Zi(Ge),$n=f2(ct,_n);if(g&&(ct=ng(ct,g,_,Ie)),E&&(ct=rg(ct,E,I,Ie)),it-=$n,Ie&&it<te){var Wt=Cs(ct,_n);return fg(s,a,Pl,Ge.placeholder,c,ct,Wt,M,N,te-it)}var gr=ae?c:this,es=we?gr[s]:s;return it=ct.length,M?ct=bx(ct,M):We&&it>1&&ct.reverse(),ne&&N<it&&(ct.length=N),this&&this!==sn&&this instanceof Ge&&(es=Qe||Xo(es)),es.apply(gr,ct)}return Ge}function ug(s,a){return function(c,g){return TS(c,s,a(g),{})}}function Rl(s,a){return function(c,g){var _;if(c===n&&g===n)return a;if(c!==n&&(_=c),g!==n){if(_===n)return g;typeof c=="string"||typeof g=="string"?(c=Mn(c),g=Mn(g)):(c=qv(c),g=qv(g)),_=s(c,g)}return _}}function yf(s){return Zr(function(a){return a=Mt(a,Fn(Ue())),nt(function(c){var g=this;return s(a,function(_){return Vn(_,g,c)})})})}function Il(s,a){a=a===n?" ":Mn(a);var c=a.length;if(c<2)return c?ff(a,s):a;var g=ff(a,pl(s/Ui(a)));return Ni(a)?Ts(hr(g),0,s).join(""):g.slice(0,s)}function ex(s,a,c,g){var _=a&T,E=Xo(s);function I(){for(var M=-1,N=arguments.length,te=-1,ne=g.length,ae=j(ne+N),we=this&&this!==sn&&this instanceof I?E:s;++te<ne;)ae[te]=g[te];for(;N--;)ae[te++]=arguments[++M];return Vn(we,_?c:this,ae)}return I}function cg(s){return function(a,c,g){return g&&typeof g!="number"&&bn(a,c,g)&&(c=g=n),a=Qr(a),c===n?(c=a,a=0):c=Qr(c),g=g===n?a<c?1:-1:Qr(g),$S(a,c,g,s)}}function Ll(s){return function(a,c){return typeof a=="string"&&typeof c=="string"||(a=nr(a),c=nr(c)),s(a,c)}}function fg(s,a,c,g,_,E,I,M,N,te){var ne=a&C,ae=ne?I:n,we=ne?n:I,Ie=ne?E:n,We=ne?n:E;a|=ne?L:F,a&=~(ne?F:L),a&w||(a&=~(T|A));var Qe=[s,a,_,Ie,ae,We,we,M,N,te],Ge=c.apply(n,Qe);return Ef(s)&&Sg(Ge,Qe),Ge.placeholder=g,xg(Ge,s,a)}function bf(s){var a=Xt[s];return function(c,g){if(c=nr(c),g=g==null?0:fn(Je(g),292),g&&xv(c)){var _=(_t(c)+"e").split("e"),E=a(_[0]+"e"+(+_[1]+g));return _=(_t(E)+"e").split("e"),+(_[0]+"e"+(+_[1]-g))}return a(c)}}var tx=Gi&&1/al(new Gi([,-0]))[1]==he?function(s){return new Gi(s)}:Nf;function dg(s){return function(a){var c=dn(a);return c==K?qc(a):c==re?y2(a):c2(a,s(a))}}function Yr(s,a,c,g,_,E,I,M){var N=a&A;if(!N&&typeof s!="function")throw new Xn(l);var te=g?g.length:0;if(te||(a&=~(L|F),g=_=n),I=I===n?I:Jt(Je(I),0),M=M===n?M:Je(M),te-=_?_.length:0,a&F){var ne=g,ae=_;g=_=n}var we=N?n:Cf(s),Ie=[s,a,c,g,_,ne,ae,E,I,M];if(we&&gx(Ie,we),s=Ie[0],a=Ie[1],c=Ie[2],g=Ie[3],_=Ie[4],M=Ie[9]=Ie[9]===n?N?0:s.length:Jt(Ie[9]-te,0),!M&&a&(C|V)&&(a&=~(C|V)),!a||a==T)var We=JS(s,a,c);else a==C||a==V?We=QS(s,a,M):(a==L||a==(T|L))&&!_.length?We=ex(s,a,c,g):We=Pl.apply(n,Ie);var Qe=we?jv:Sg;return xg(Qe(We,Ie),s,a)}function hg(s,a,c,g){return s===n||vr(s,Wi[c])&&!wt.call(g,c)?a:s}function mg(s,a,c,g,_,E){return Dt(s)&&Dt(a)&&(E.set(a,s),Al(s,a,n,mg,E),E.delete(a)),s}function nx(s){return ea(s)?n:s}function vg(s,a,c,g,_,E){var I=c&b,M=s.length,N=a.length;if(M!=N&&!(I&&N>M))return!1;var te=E.get(s),ne=E.get(a);if(te&&ne)return te==a&&ne==s;var ae=-1,we=!0,Ie=c&S?new ti:n;for(E.set(s,a),E.set(a,s);++ae<M;){var We=s[ae],Qe=a[ae];if(g)var Ge=I?g(Qe,We,ae,a,s,E):g(We,Qe,ae,s,a,E);if(Ge!==n){if(Ge)continue;we=!1;break}if(Ie){if(!Uc(a,function(it,ct){if(!Ho(Ie,ct)&&(We===it||_(We,it,c,g,E)))return Ie.push(ct)})){we=!1;break}}else if(!(We===Qe||_(We,Qe,c,g,E))){we=!1;break}}return E.delete(s),E.delete(a),we}function rx(s,a,c,g,_,E,I){switch(c){case ut:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case mt:return!(s.byteLength!=a.byteLength||!E(new hl(s),new hl(a)));case Ae:case He:case Q:return vr(+s,+a);case Be:return s.name==a.name&&s.message==a.message;case ye:case Le:return s==a+"";case K:var M=qc;case re:var N=g&b;if(M||(M=al),s.size!=a.size&&!N)return!1;var te=I.get(s);if(te)return te==a;g|=S,I.set(s,a);var ne=vg(M(s),M(a),g,_,E,I);return I.delete(s),ne;case Ee:if(Go)return Go.call(s)==Go.call(a)}return!1}function sx(s,a,c,g,_,E){var I=c&b,M=_f(s),N=M.length,te=_f(a),ne=te.length;if(N!=ne&&!I)return!1;for(var ae=N;ae--;){var we=M[ae];if(!(I?we in a:wt.call(a,we)))return!1}var Ie=E.get(s),We=E.get(a);if(Ie&&We)return Ie==a&&We==s;var Qe=!0;E.set(s,a),E.set(a,s);for(var Ge=I;++ae<N;){we=M[ae];var it=s[we],ct=a[we];if(g)var Dn=I?g(ct,it,we,a,s,E):g(it,ct,we,s,a,E);if(!(Dn===n?it===ct||_(it,ct,c,g,E):Dn)){Qe=!1;break}Ge||(Ge=we=="constructor")}if(Qe&&!Ge){var _n=s.constructor,$n=a.constructor;_n!=$n&&"constructor"in s&&"constructor"in a&&!(typeof _n=="function"&&_n instanceof _n&&typeof $n=="function"&&$n instanceof $n)&&(Qe=!1)}return E.delete(s),E.delete(a),Qe}function Zr(s){return kf(wg(s,n,Rg),s+"")}function _f(s){return Fv(s,nn,xf)}function wf(s){return Fv(s,kn,gg)}var Cf=bl?function(s){return bl.get(s)}:Nf;function Ol(s){for(var a=s.name+"",c=ji[a],g=wt.call(ji,a)?c.length:0;g--;){var _=c[g],E=_.func;if(E==null||E==s)return _.name}return a}function Zi(s){var a=wt.call(x,"placeholder")?x:s;return a.placeholder}function Ue(){var s=x.iteratee||$f;return s=s===$f?Dv:s,arguments.length?s(arguments[0],arguments[1]):s}function Vl(s,a){var c=s.__data__;return dx(a)?c[typeof a=="string"?"string":"hash"]:c.map}function Sf(s){for(var a=nn(s),c=a.length;c--;){var g=a[c],_=s[g];a[c]=[g,_,bg(_)]}return a}function si(s,a){var c=v2(s,a);return Bv(c)?c:n}function ix(s){var a=wt.call(s,Qs),c=s[Qs];try{s[Qs]=n;var g=!0}catch{}var _=fl.call(s);return g&&(a?s[Qs]=c:delete s[Qs]),_}var xf=Zc?function(s){return s==null?[]:(s=Tt(s),_s(Zc(s),function(a){return Cv.call(s,a)}))}:Uf,gg=Zc?function(s){for(var a=[];s;)ws(a,xf(s)),s=ml(s);return a}:Uf,dn=yn;(Xc&&dn(new Xc(new ArrayBuffer(1)))!=ut||Uo&&dn(new Uo)!=K||Jc&&dn(Jc.resolve())!=Ce||Gi&&dn(new Gi)!=re||zo&&dn(new zo)!=ze)&&(dn=function(s){var a=yn(s),c=a==de?s.constructor:n,g=c?ii(c):"";if(g)switch(g){case N2:return ut;case U2:return K;case z2:return Ce;case W2:return re;case G2:return ze}return a});function ox(s,a,c){for(var g=-1,_=c.length;++g<_;){var E=c[g],I=E.size;switch(E.type){case"drop":s+=I;break;case"dropRight":a-=I;break;case"take":a=fn(a,s+I);break;case"takeRight":s=Jt(s,a-I);break}}return{start:s,end:a}}function ax(s){var a=s.match(hC);return a?a[1].split(mC):[]}function pg(s,a,c){a=Es(a,s);for(var g=-1,_=a.length,E=!1;++g<_;){var I=Vr(a[g]);if(!(E=s!=null&&c(s,I)))break;s=s[I]}return E||++g!=_?E:(_=s==null?0:s.length,!!_&&Nl(_)&&Xr(I,_)&&(Xe(s)||oi(s)))}function lx(s){var a=s.length,c=new s.constructor(a);return a&&typeof s[0]=="string"&&wt.call(s,"index")&&(c.index=s.index,c.input=s.input),c}function yg(s){return typeof s.constructor=="function"&&!Jo(s)?Ki(ml(s)):{}}function ux(s,a,c){var g=s.constructor;switch(a){case mt:return pf(s);case Ae:case He:return new g(+s);case ut:return jS(s,c);case Ft:case pn:case Ir:case Mi:case Gr:case Bi:case rn:case An:case Di:return eg(s,c);case K:return new g;case Q:case Le:return new g(s);case ye:return KS(s);case re:return new g;case Ee:return qS(s)}}function cx(s,a){var c=a.length;if(!c)return s;var g=c-1;return a[g]=(c>1?"& ":"")+a[g],a=a.join(c>2?", ":" "),s.replace(dC,`{
|
|
19
|
-
/* [wrapped with `+a+`] */
|
|
20
|
-
`)}function fx(s){return Xe(s)||oi(s)||!!(Sv&&s&&s[Sv])}function Xr(s,a){var c=typeof s;return a=a??fe,!!a&&(c=="number"||c!="symbol"&&SC.test(s))&&s>-1&&s%1==0&&s<a}function bn(s,a,c){if(!Dt(c))return!1;var g=typeof a;return(g=="number"?Tn(c)&&Xr(a,c.length):g=="string"&&a in c)?vr(c[a],s):!1}function Af(s,a){if(Xe(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||Bn(s)?!0:lC.test(s)||!aC.test(s)||a!=null&&s in Tt(a)}function dx(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function Ef(s){var a=Ol(s),c=x[a];if(typeof c!="function"||!(a in lt.prototype))return!1;if(s===c)return!0;var g=Cf(c);return!!g&&s===g[0]}function hx(s){return!!bv&&bv in s}var mx=ul?Jr:zf;function Jo(s){var a=s&&s.constructor,c=typeof a=="function"&&a.prototype||Wi;return s===c}function bg(s){return s===s&&!Dt(s)}function _g(s,a){return function(c){return c==null?!1:c[s]===a&&(a!==n||s in Tt(c))}}function vx(s){var a=$l(s,function(g){return c.size===d&&c.clear(),g}),c=a.cache;return a}function gx(s,a){var c=s[1],g=a[1],_=c|g,E=_<(T|A|O),I=g==O&&c==C||g==O&&c==k&&s[7].length<=a[8]||g==(O|k)&&a[7].length<=a[8]&&c==C;if(!(E||I))return s;g&T&&(s[2]=a[2],_|=c&T?0:w);var M=a[3];if(M){var N=s[3];s[3]=N?ng(N,M,a[4]):M,s[4]=N?Cs(s[3],h):a[4]}return M=a[5],M&&(N=s[5],s[5]=N?rg(N,M,a[6]):M,s[6]=N?Cs(s[5],h):a[6]),M=a[7],M&&(s[7]=M),g&O&&(s[8]=s[8]==null?a[8]:fn(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=_,s}function px(s){var a=[];if(s!=null)for(var c in Tt(s))a.push(c);return a}function yx(s){return fl.call(s)}function wg(s,a,c){return a=Jt(a===n?s.length-1:a,0),function(){for(var g=arguments,_=-1,E=Jt(g.length-a,0),I=j(E);++_<E;)I[_]=g[a+_];_=-1;for(var M=j(a+1);++_<a;)M[_]=g[_];return M[a]=c(I),Vn(s,this,M)}}function Cg(s,a){return a.length<2?s:ri(s,er(a,0,-1))}function bx(s,a){for(var c=s.length,g=fn(a.length,c),_=En(s);g--;){var E=a[g];s[g]=Xr(E,c)?_[E]:n}return s}function Tf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var Sg=Ag(jv),Qo=V2||function(s,a){return sn.setTimeout(s,a)},kf=Ag(US);function xg(s,a,c){var g=a+"";return kf(s,cx(g,_x(ax(g),c)))}function Ag(s){var a=0,c=0;return function(){var g=D2(),_=q-(g-c);if(c=g,_>0){if(++a>=U)return arguments[0]}else a=0;return s.apply(n,arguments)}}function Fl(s,a){var c=-1,g=s.length,_=g-1;for(a=a===n?g:a;++c<a;){var E=cf(c,_),I=s[E];s[E]=s[c],s[c]=I}return s.length=a,s}var Eg=vx(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(uC,function(c,g,_,E){a.push(_?E.replace(pC,"$1"):g||c)}),a});function Vr(s){if(typeof s=="string"||Bn(s))return s;var a=s+"";return a=="0"&&1/s==-he?"-0":a}function ii(s){if(s!=null){try{return cl.call(s)}catch{}try{return s+""}catch{}}return""}function _x(s,a){return Zn(gt,function(c){var g="_."+c[0];a&c[1]&&!il(s,g)&&s.push(g)}),s.sort()}function Tg(s){if(s instanceof lt)return s.clone();var a=new Jn(s.__wrapped__,s.__chain__);return a.__actions__=En(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function wx(s,a,c){(c?bn(s,a,c):a===n)?a=1:a=Jt(Je(a),0);var g=s==null?0:s.length;if(!g||a<1)return[];for(var _=0,E=0,I=j(pl(g/a));_<g;)I[E++]=er(s,_,_+=a);return I}function Cx(s){for(var a=-1,c=s==null?0:s.length,g=0,_=[];++a<c;){var E=s[a];E&&(_[g++]=E)}return _}function Sx(){var s=arguments.length;if(!s)return[];for(var a=j(s-1),c=arguments[0],g=s;g--;)a[g-1]=arguments[g];return ws(Xe(c)?En(c):[c],on(a,1))}var xx=nt(function(s,a){return zt(s)?Ko(s,on(a,1,zt,!0)):[]}),Ax=nt(function(s,a){var c=tr(a);return zt(c)&&(c=n),zt(s)?Ko(s,on(a,1,zt,!0),Ue(c,2)):[]}),Ex=nt(function(s,a){var c=tr(a);return zt(c)&&(c=n),zt(s)?Ko(s,on(a,1,zt,!0),n,c):[]});function Tx(s,a,c){var g=s==null?0:s.length;return g?(a=c||a===n?1:Je(a),er(s,a<0?0:a,g)):[]}function kx(s,a,c){var g=s==null?0:s.length;return g?(a=c||a===n?1:Je(a),a=g-a,er(s,0,a<0?0:a)):[]}function Px(s,a){return s&&s.length?Tl(s,Ue(a,3),!0,!0):[]}function Rx(s,a){return s&&s.length?Tl(s,Ue(a,3),!0):[]}function Ix(s,a,c,g){var _=s==null?0:s.length;return _?(c&&typeof c!="number"&&bn(s,a,c)&&(c=0,g=_),SS(s,a,c,g)):[]}function kg(s,a,c){var g=s==null?0:s.length;if(!g)return-1;var _=c==null?0:Je(c);return _<0&&(_=Jt(g+_,0)),ol(s,Ue(a,3),_)}function Pg(s,a,c){var g=s==null?0:s.length;if(!g)return-1;var _=g-1;return c!==n&&(_=Je(c),_=c<0?Jt(g+_,0):fn(_,g-1)),ol(s,Ue(a,3),_,!0)}function Rg(s){var a=s==null?0:s.length;return a?on(s,1):[]}function Lx(s){var a=s==null?0:s.length;return a?on(s,he):[]}function Ox(s,a){var c=s==null?0:s.length;return c?(a=a===n?1:Je(a),on(s,a)):[]}function Vx(s){for(var a=-1,c=s==null?0:s.length,g={};++a<c;){var _=s[a];g[_[0]]=_[1]}return g}function Ig(s){return s&&s.length?s[0]:n}function Fx(s,a,c){var g=s==null?0:s.length;if(!g)return-1;var _=c==null?0:Je(c);return _<0&&(_=Jt(g+_,0)),Hi(s,a,_)}function Mx(s){var a=s==null?0:s.length;return a?er(s,0,-1):[]}var Bx=nt(function(s){var a=Mt(s,vf);return a.length&&a[0]===s[0]?sf(a):[]}),Dx=nt(function(s){var a=tr(s),c=Mt(s,vf);return a===tr(c)?a=n:c.pop(),c.length&&c[0]===s[0]?sf(c,Ue(a,2)):[]}),$x=nt(function(s){var a=tr(s),c=Mt(s,vf);return a=typeof a=="function"?a:n,a&&c.pop(),c.length&&c[0]===s[0]?sf(c,n,a):[]});function Hx(s,a){return s==null?"":M2.call(s,a)}function tr(s){var a=s==null?0:s.length;return a?s[a-1]:n}function Nx(s,a,c){var g=s==null?0:s.length;if(!g)return-1;var _=g;return c!==n&&(_=Je(c),_=_<0?Jt(g+_,0):fn(_,g-1)),a===a?_2(s,a,_):ol(s,fv,_,!0)}function Ux(s,a){return s&&s.length?Uv(s,Je(a)):n}var zx=nt(Lg);function Lg(s,a){return s&&s.length&&a&&a.length?uf(s,a):s}function Wx(s,a,c){return s&&s.length&&a&&a.length?uf(s,a,Ue(c,2)):s}function Gx(s,a,c){return s&&s.length&&a&&a.length?uf(s,a,n,c):s}var jx=Zr(function(s,a){var c=s==null?0:s.length,g=ef(s,a);return Gv(s,Mt(a,function(_){return Xr(_,c)?+_:_}).sort(tg)),g});function Kx(s,a){var c=[];if(!(s&&s.length))return c;var g=-1,_=[],E=s.length;for(a=Ue(a,3);++g<E;){var I=s[g];a(I,g,s)&&(c.push(I),_.push(g))}return Gv(s,_),c}function Pf(s){return s==null?s:H2.call(s)}function qx(s,a,c){var g=s==null?0:s.length;return g?(c&&typeof c!="number"&&bn(s,a,c)?(a=0,c=g):(a=a==null?0:Je(a),c=c===n?g:Je(c)),er(s,a,c)):[]}function Yx(s,a){return El(s,a)}function Zx(s,a,c){return df(s,a,Ue(c,2))}function Xx(s,a){var c=s==null?0:s.length;if(c){var g=El(s,a);if(g<c&&vr(s[g],a))return g}return-1}function Jx(s,a){return El(s,a,!0)}function Qx(s,a,c){return df(s,a,Ue(c,2),!0)}function eA(s,a){var c=s==null?0:s.length;if(c){var g=El(s,a,!0)-1;if(vr(s[g],a))return g}return-1}function tA(s){return s&&s.length?Kv(s):[]}function nA(s,a){return s&&s.length?Kv(s,Ue(a,2)):[]}function rA(s){var a=s==null?0:s.length;return a?er(s,1,a):[]}function sA(s,a,c){return s&&s.length?(a=c||a===n?1:Je(a),er(s,0,a<0?0:a)):[]}function iA(s,a,c){var g=s==null?0:s.length;return g?(a=c||a===n?1:Je(a),a=g-a,er(s,a<0?0:a,g)):[]}function oA(s,a){return s&&s.length?Tl(s,Ue(a,3),!1,!0):[]}function aA(s,a){return s&&s.length?Tl(s,Ue(a,3)):[]}var lA=nt(function(s){return As(on(s,1,zt,!0))}),uA=nt(function(s){var a=tr(s);return zt(a)&&(a=n),As(on(s,1,zt,!0),Ue(a,2))}),cA=nt(function(s){var a=tr(s);return a=typeof a=="function"?a:n,As(on(s,1,zt,!0),n,a)});function fA(s){return s&&s.length?As(s):[]}function dA(s,a){return s&&s.length?As(s,Ue(a,2)):[]}function hA(s,a){return a=typeof a=="function"?a:n,s&&s.length?As(s,n,a):[]}function Rf(s){if(!(s&&s.length))return[];var a=0;return s=_s(s,function(c){if(zt(c))return a=Jt(c.length,a),!0}),jc(a,function(c){return Mt(s,zc(c))})}function Og(s,a){if(!(s&&s.length))return[];var c=Rf(s);return a==null?c:Mt(c,function(g){return Vn(a,n,g)})}var mA=nt(function(s,a){return zt(s)?Ko(s,a):[]}),vA=nt(function(s){return mf(_s(s,zt))}),gA=nt(function(s){var a=tr(s);return zt(a)&&(a=n),mf(_s(s,zt),Ue(a,2))}),pA=nt(function(s){var a=tr(s);return a=typeof a=="function"?a:n,mf(_s(s,zt),n,a)}),yA=nt(Rf);function bA(s,a){return Xv(s||[],a||[],jo)}function _A(s,a){return Xv(s||[],a||[],Zo)}var wA=nt(function(s){var a=s.length,c=a>1?s[a-1]:n;return c=typeof c=="function"?(s.pop(),c):n,Og(s,c)});function Vg(s){var a=x(s);return a.__chain__=!0,a}function CA(s,a){return a(s),s}function Ml(s,a){return a(s)}var SA=Zr(function(s){var a=s.length,c=a?s[0]:0,g=this.__wrapped__,_=function(E){return ef(E,s)};return a>1||this.__actions__.length||!(g instanceof lt)||!Xr(c)?this.thru(_):(g=g.slice(c,+c+(a?1:0)),g.__actions__.push({func:Ml,args:[_],thisArg:n}),new Jn(g,this.__chain__).thru(function(E){return a&&!E.length&&E.push(n),E}))});function xA(){return Vg(this)}function AA(){return new Jn(this.value(),this.__chain__)}function EA(){this.__values__===n&&(this.__values__=qg(this.value()));var s=this.__index__>=this.__values__.length,a=s?n:this.__values__[this.__index__++];return{done:s,value:a}}function TA(){return this}function kA(s){for(var a,c=this;c instanceof wl;){var g=Tg(c);g.__index__=0,g.__values__=n,a?_.__wrapped__=g:a=g;var _=g;c=c.__wrapped__}return _.__wrapped__=s,a}function PA(){var s=this.__wrapped__;if(s instanceof lt){var a=s;return this.__actions__.length&&(a=new lt(this)),a=a.reverse(),a.__actions__.push({func:Ml,args:[Pf],thisArg:n}),new Jn(a,this.__chain__)}return this.thru(Pf)}function RA(){return Zv(this.__wrapped__,this.__actions__)}var IA=kl(function(s,a,c){wt.call(s,c)?++s[c]:qr(s,c,1)});function LA(s,a,c){var g=Xe(s)?uv:CS;return c&&bn(s,a,c)&&(a=n),g(s,Ue(a,3))}function OA(s,a){var c=Xe(s)?_s:Ov;return c(s,Ue(a,3))}var VA=ag(kg),FA=ag(Pg);function MA(s,a){return on(Bl(s,a),1)}function BA(s,a){return on(Bl(s,a),he)}function DA(s,a,c){return c=c===n?1:Je(c),on(Bl(s,a),c)}function Fg(s,a){var c=Xe(s)?Zn:xs;return c(s,Ue(a,3))}function Mg(s,a){var c=Xe(s)?r2:Lv;return c(s,Ue(a,3))}var $A=kl(function(s,a,c){wt.call(s,c)?s[c].push(a):qr(s,c,[a])});function HA(s,a,c,g){s=Tn(s)?s:Ji(s),c=c&&!g?Je(c):0;var _=s.length;return c<0&&(c=Jt(_+c,0)),Ul(s)?c<=_&&s.indexOf(a,c)>-1:!!_&&Hi(s,a,c)>-1}var NA=nt(function(s,a,c){var g=-1,_=typeof a=="function",E=Tn(s)?j(s.length):[];return xs(s,function(I){E[++g]=_?Vn(a,I,c):qo(I,a,c)}),E}),UA=kl(function(s,a,c){qr(s,c,a)});function Bl(s,a){var c=Xe(s)?Mt:$v;return c(s,Ue(a,3))}function zA(s,a,c,g){return s==null?[]:(Xe(a)||(a=a==null?[]:[a]),c=g?n:c,Xe(c)||(c=c==null?[]:[c]),zv(s,a,c))}var WA=kl(function(s,a,c){s[c?0:1].push(a)},function(){return[[],[]]});function GA(s,a,c){var g=Xe(s)?Nc:hv,_=arguments.length<3;return g(s,Ue(a,4),c,_,xs)}function jA(s,a,c){var g=Xe(s)?s2:hv,_=arguments.length<3;return g(s,Ue(a,4),c,_,Lv)}function KA(s,a){var c=Xe(s)?_s:Ov;return c(s,Hl(Ue(a,3)))}function qA(s){var a=Xe(s)?kv:HS;return a(s)}function YA(s,a,c){(c?bn(s,a,c):a===n)?a=1:a=Je(a);var g=Xe(s)?pS:NS;return g(s,a)}function ZA(s){var a=Xe(s)?yS:zS;return a(s)}function XA(s){if(s==null)return 0;if(Tn(s))return Ul(s)?Ui(s):s.length;var a=dn(s);return a==K||a==re?s.size:af(s).length}function JA(s,a,c){var g=Xe(s)?Uc:WS;return c&&bn(s,a,c)&&(a=n),g(s,Ue(a,3))}var QA=nt(function(s,a){if(s==null)return[];var c=a.length;return c>1&&bn(s,a[0],a[1])?a=[]:c>2&&bn(a[0],a[1],a[2])&&(a=[a[0]]),zv(s,on(a,1),[])}),Dl=O2||function(){return sn.Date.now()};function eE(s,a){if(typeof a!="function")throw new Xn(l);return s=Je(s),function(){if(--s<1)return a.apply(this,arguments)}}function Bg(s,a,c){return a=c?n:a,a=s&&a==null?s.length:a,Yr(s,O,n,n,n,n,a)}function Dg(s,a){var c;if(typeof a!="function")throw new Xn(l);return s=Je(s),function(){return--s>0&&(c=a.apply(this,arguments)),s<=1&&(a=n),c}}var If=nt(function(s,a,c){var g=T;if(c.length){var _=Cs(c,Zi(If));g|=L}return Yr(s,g,a,c,_)}),$g=nt(function(s,a,c){var g=T|A;if(c.length){var _=Cs(c,Zi($g));g|=L}return Yr(a,g,s,c,_)});function Hg(s,a,c){a=c?n:a;var g=Yr(s,C,n,n,n,n,n,a);return g.placeholder=Hg.placeholder,g}function Ng(s,a,c){a=c?n:a;var g=Yr(s,V,n,n,n,n,n,a);return g.placeholder=Ng.placeholder,g}function Ug(s,a,c){var g,_,E,I,M,N,te=0,ne=!1,ae=!1,we=!0;if(typeof s!="function")throw new Xn(l);a=nr(a)||0,Dt(c)&&(ne=!!c.leading,ae="maxWait"in c,E=ae?Jt(nr(c.maxWait)||0,a):E,we="trailing"in c?!!c.trailing:we);function Ie(Wt){var gr=g,es=_;return g=_=n,te=Wt,I=s.apply(es,gr),I}function We(Wt){return te=Wt,M=Qo(it,a),ne?Ie(Wt):I}function Qe(Wt){var gr=Wt-N,es=Wt-te,ap=a-gr;return ae?fn(ap,E-es):ap}function Ge(Wt){var gr=Wt-N,es=Wt-te;return N===n||gr>=a||gr<0||ae&&es>=E}function it(){var Wt=Dl();if(Ge(Wt))return ct(Wt);M=Qo(it,Qe(Wt))}function ct(Wt){return M=n,we&&g?Ie(Wt):(g=_=n,I)}function Dn(){M!==n&&Jv(M),te=0,g=N=_=M=n}function _n(){return M===n?I:ct(Dl())}function $n(){var Wt=Dl(),gr=Ge(Wt);if(g=arguments,_=this,N=Wt,gr){if(M===n)return We(N);if(ae)return Jv(M),M=Qo(it,a),Ie(N)}return M===n&&(M=Qo(it,a)),I}return $n.cancel=Dn,$n.flush=_n,$n}var tE=nt(function(s,a){return Iv(s,1,a)}),nE=nt(function(s,a,c){return Iv(s,nr(a)||0,c)});function rE(s){return Yr(s,z)}function $l(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new Xn(l);var c=function(){var g=arguments,_=a?a.apply(this,g):g[0],E=c.cache;if(E.has(_))return E.get(_);var I=s.apply(this,g);return c.cache=E.set(_,I)||E,I};return c.cache=new($l.Cache||Kr),c}$l.Cache=Kr;function Hl(s){if(typeof s!="function")throw new Xn(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function sE(s){return Dg(2,s)}var iE=GS(function(s,a){a=a.length==1&&Xe(a[0])?Mt(a[0],Fn(Ue())):Mt(on(a,1),Fn(Ue()));var c=a.length;return nt(function(g){for(var _=-1,E=fn(g.length,c);++_<E;)g[_]=a[_].call(this,g[_]);return Vn(s,this,g)})}),Lf=nt(function(s,a){var c=Cs(a,Zi(Lf));return Yr(s,L,n,a,c)}),zg=nt(function(s,a){var c=Cs(a,Zi(zg));return Yr(s,F,n,a,c)}),oE=Zr(function(s,a){return Yr(s,k,n,n,n,a)});function aE(s,a){if(typeof s!="function")throw new Xn(l);return a=a===n?a:Je(a),nt(s,a)}function lE(s,a){if(typeof s!="function")throw new Xn(l);return a=a==null?0:Jt(Je(a),0),nt(function(c){var g=c[a],_=Ts(c,0,a);return g&&ws(_,g),Vn(s,this,_)})}function uE(s,a,c){var g=!0,_=!0;if(typeof s!="function")throw new Xn(l);return Dt(c)&&(g="leading"in c?!!c.leading:g,_="trailing"in c?!!c.trailing:_),Ug(s,a,{leading:g,maxWait:a,trailing:_})}function cE(s){return Bg(s,1)}function fE(s,a){return Lf(gf(a),s)}function dE(){if(!arguments.length)return[];var s=arguments[0];return Xe(s)?s:[s]}function hE(s){return Qn(s,p)}function mE(s,a){return a=typeof a=="function"?a:n,Qn(s,p,a)}function vE(s){return Qn(s,m|p)}function gE(s,a){return a=typeof a=="function"?a:n,Qn(s,m|p,a)}function pE(s,a){return a==null||Rv(s,a,nn(a))}function vr(s,a){return s===a||s!==s&&a!==a}var yE=Ll(rf),bE=Ll(function(s,a){return s>=a}),oi=Mv(function(){return arguments}())?Mv:function(s){return Ht(s)&&wt.call(s,"callee")&&!Cv.call(s,"callee")},Xe=j.isArray,_E=rv?Fn(rv):kS;function Tn(s){return s!=null&&Nl(s.length)&&!Jr(s)}function zt(s){return Ht(s)&&Tn(s)}function wE(s){return s===!0||s===!1||Ht(s)&&yn(s)==Ae}var ks=F2||zf,CE=sv?Fn(sv):PS;function SE(s){return Ht(s)&&s.nodeType===1&&!ea(s)}function xE(s){if(s==null)return!0;if(Tn(s)&&(Xe(s)||typeof s=="string"||typeof s.splice=="function"||ks(s)||Xi(s)||oi(s)))return!s.length;var a=dn(s);if(a==K||a==re)return!s.size;if(Jo(s))return!af(s).length;for(var c in s)if(wt.call(s,c))return!1;return!0}function AE(s,a){return Yo(s,a)}function EE(s,a,c){c=typeof c=="function"?c:n;var g=c?c(s,a):n;return g===n?Yo(s,a,n,c):!!g}function Of(s){if(!Ht(s))return!1;var a=yn(s);return a==Be||a==pt||typeof s.message=="string"&&typeof s.name=="string"&&!ea(s)}function TE(s){return typeof s=="number"&&xv(s)}function Jr(s){if(!Dt(s))return!1;var a=yn(s);return a==P||a==B||a==ue||a==ge}function Wg(s){return typeof s=="number"&&s==Je(s)}function Nl(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=fe}function Dt(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function Ht(s){return s!=null&&typeof s=="object"}var Gg=iv?Fn(iv):IS;function kE(s,a){return s===a||of(s,a,Sf(a))}function PE(s,a,c){return c=typeof c=="function"?c:n,of(s,a,Sf(a),c)}function RE(s){return jg(s)&&s!=+s}function IE(s){if(mx(s))throw new Ye(o);return Bv(s)}function LE(s){return s===null}function OE(s){return s==null}function jg(s){return typeof s=="number"||Ht(s)&&yn(s)==Q}function ea(s){if(!Ht(s)||yn(s)!=de)return!1;var a=ml(s);if(a===null)return!0;var c=wt.call(a,"constructor")&&a.constructor;return typeof c=="function"&&c instanceof c&&cl.call(c)==P2}var Vf=ov?Fn(ov):LS;function VE(s){return Wg(s)&&s>=-fe&&s<=fe}var Kg=av?Fn(av):OS;function Ul(s){return typeof s=="string"||!Xe(s)&&Ht(s)&&yn(s)==Le}function Bn(s){return typeof s=="symbol"||Ht(s)&&yn(s)==Ee}var Xi=lv?Fn(lv):VS;function FE(s){return s===n}function ME(s){return Ht(s)&&dn(s)==ze}function BE(s){return Ht(s)&&yn(s)==st}var DE=Ll(lf),$E=Ll(function(s,a){return s<=a});function qg(s){if(!s)return[];if(Tn(s))return Ul(s)?hr(s):En(s);if(No&&s[No])return p2(s[No]());var a=dn(s),c=a==K?qc:a==re?al:Ji;return c(s)}function Qr(s){if(!s)return s===0?s:0;if(s=nr(s),s===he||s===-he){var a=s<0?-1:1;return a*_e}return s===s?s:0}function Je(s){var a=Qr(s),c=a%1;return a===a?c?a-c:a:0}function Yg(s){return s?ni(Je(s),0,pe):0}function nr(s){if(typeof s=="number")return s;if(Bn(s))return ve;if(Dt(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=Dt(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=mv(s);var c=_C.test(s);return c||CC.test(s)?e2(s.slice(2),c?2:8):bC.test(s)?ve:+s}function Zg(s){return Or(s,kn(s))}function HE(s){return s?ni(Je(s),-fe,fe):s===0?s:0}function _t(s){return s==null?"":Mn(s)}var NE=qi(function(s,a){if(Jo(a)||Tn(a)){Or(a,nn(a),s);return}for(var c in a)wt.call(a,c)&&jo(s,c,a[c])}),Xg=qi(function(s,a){Or(a,kn(a),s)}),zl=qi(function(s,a,c,g){Or(a,kn(a),s,g)}),UE=qi(function(s,a,c,g){Or(a,nn(a),s,g)}),zE=Zr(ef);function WE(s,a){var c=Ki(s);return a==null?c:Pv(c,a)}var GE=nt(function(s,a){s=Tt(s);var c=-1,g=a.length,_=g>2?a[2]:n;for(_&&bn(a[0],a[1],_)&&(g=1);++c<g;)for(var E=a[c],I=kn(E),M=-1,N=I.length;++M<N;){var te=I[M],ne=s[te];(ne===n||vr(ne,Wi[te])&&!wt.call(s,te))&&(s[te]=E[te])}return s}),jE=nt(function(s){return s.push(n,mg),Vn(Jg,n,s)});function KE(s,a){return cv(s,Ue(a,3),Lr)}function qE(s,a){return cv(s,Ue(a,3),nf)}function YE(s,a){return s==null?s:tf(s,Ue(a,3),kn)}function ZE(s,a){return s==null?s:Vv(s,Ue(a,3),kn)}function XE(s,a){return s&&Lr(s,Ue(a,3))}function JE(s,a){return s&&nf(s,Ue(a,3))}function QE(s){return s==null?[]:xl(s,nn(s))}function eT(s){return s==null?[]:xl(s,kn(s))}function Ff(s,a,c){var g=s==null?n:ri(s,a);return g===n?c:g}function tT(s,a){return s!=null&&pg(s,a,xS)}function Mf(s,a){return s!=null&&pg(s,a,AS)}var nT=ug(function(s,a,c){a!=null&&typeof a.toString!="function"&&(a=fl.call(a)),s[a]=c},Df(Pn)),rT=ug(function(s,a,c){a!=null&&typeof a.toString!="function"&&(a=fl.call(a)),wt.call(s,a)?s[a].push(c):s[a]=[c]},Ue),sT=nt(qo);function nn(s){return Tn(s)?Tv(s):af(s)}function kn(s){return Tn(s)?Tv(s,!0):FS(s)}function iT(s,a){var c={};return a=Ue(a,3),Lr(s,function(g,_,E){qr(c,a(g,_,E),g)}),c}function oT(s,a){var c={};return a=Ue(a,3),Lr(s,function(g,_,E){qr(c,_,a(g,_,E))}),c}var aT=qi(function(s,a,c){Al(s,a,c)}),Jg=qi(function(s,a,c,g){Al(s,a,c,g)}),lT=Zr(function(s,a){var c={};if(s==null)return c;var g=!1;a=Mt(a,function(E){return E=Es(E,s),g||(g=E.length>1),E}),Or(s,wf(s),c),g&&(c=Qn(c,m|v|p,nx));for(var _=a.length;_--;)hf(c,a[_]);return c});function uT(s,a){return Qg(s,Hl(Ue(a)))}var cT=Zr(function(s,a){return s==null?{}:BS(s,a)});function Qg(s,a){if(s==null)return{};var c=Mt(wf(s),function(g){return[g]});return a=Ue(a),Wv(s,c,function(g,_){return a(g,_[0])})}function fT(s,a,c){a=Es(a,s);var g=-1,_=a.length;for(_||(_=1,s=n);++g<_;){var E=s==null?n:s[Vr(a[g])];E===n&&(g=_,E=c),s=Jr(E)?E.call(s):E}return s}function dT(s,a,c){return s==null?s:Zo(s,a,c)}function hT(s,a,c,g){return g=typeof g=="function"?g:n,s==null?s:Zo(s,a,c,g)}var ep=dg(nn),tp=dg(kn);function mT(s,a,c){var g=Xe(s),_=g||ks(s)||Xi(s);if(a=Ue(a,4),c==null){var E=s&&s.constructor;_?c=g?new E:[]:Dt(s)?c=Jr(E)?Ki(ml(s)):{}:c={}}return(_?Zn:Lr)(s,function(I,M,N){return a(c,I,M,N)}),c}function vT(s,a){return s==null?!0:hf(s,a)}function gT(s,a,c){return s==null?s:Yv(s,a,gf(c))}function pT(s,a,c,g){return g=typeof g=="function"?g:n,s==null?s:Yv(s,a,gf(c),g)}function Ji(s){return s==null?[]:Kc(s,nn(s))}function yT(s){return s==null?[]:Kc(s,kn(s))}function bT(s,a,c){return c===n&&(c=a,a=n),c!==n&&(c=nr(c),c=c===c?c:0),a!==n&&(a=nr(a),a=a===a?a:0),ni(nr(s),a,c)}function _T(s,a,c){return a=Qr(a),c===n?(c=a,a=0):c=Qr(c),s=nr(s),ES(s,a,c)}function wT(s,a,c){if(c&&typeof c!="boolean"&&bn(s,a,c)&&(a=c=n),c===n&&(typeof a=="boolean"?(c=a,a=n):typeof s=="boolean"&&(c=s,s=n)),s===n&&a===n?(s=0,a=1):(s=Qr(s),a===n?(a=s,s=0):a=Qr(a)),s>a){var g=s;s=a,a=g}if(c||s%1||a%1){var _=Av();return fn(s+_*(a-s+QC("1e-"+((_+"").length-1))),a)}return cf(s,a)}var CT=Yi(function(s,a,c){return a=a.toLowerCase(),s+(c?np(a):a)});function np(s){return Bf(_t(s).toLowerCase())}function rp(s){return s=_t(s),s&&s.replace(xC,d2).replace(zC,"")}function ST(s,a,c){s=_t(s),a=Mn(a);var g=s.length;c=c===n?g:ni(Je(c),0,g);var _=c;return c-=a.length,c>=0&&s.slice(c,_)==a}function xT(s){return s=_t(s),s&&sC.test(s)?s.replace(Vm,h2):s}function AT(s){return s=_t(s),s&&cC.test(s)?s.replace(Ic,"\\$&"):s}var ET=Yi(function(s,a,c){return s+(c?"-":"")+a.toLowerCase()}),TT=Yi(function(s,a,c){return s+(c?" ":"")+a.toLowerCase()}),kT=og("toLowerCase");function PT(s,a,c){s=_t(s),a=Je(a);var g=a?Ui(s):0;if(!a||g>=a)return s;var _=(a-g)/2;return Il(yl(_),c)+s+Il(pl(_),c)}function RT(s,a,c){s=_t(s),a=Je(a);var g=a?Ui(s):0;return a&&g<a?s+Il(a-g,c):s}function IT(s,a,c){s=_t(s),a=Je(a);var g=a?Ui(s):0;return a&&g<a?Il(a-g,c)+s:s}function LT(s,a,c){return c||a==null?a=0:a&&(a=+a),$2(_t(s).replace(Lc,""),a||0)}function OT(s,a,c){return(c?bn(s,a,c):a===n)?a=1:a=Je(a),ff(_t(s),a)}function VT(){var s=arguments,a=_t(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var FT=Yi(function(s,a,c){return s+(c?"_":"")+a.toLowerCase()});function MT(s,a,c){return c&&typeof c!="number"&&bn(s,a,c)&&(a=c=n),c=c===n?pe:c>>>0,c?(s=_t(s),s&&(typeof a=="string"||a!=null&&!Vf(a))&&(a=Mn(a),!a&&Ni(s))?Ts(hr(s),0,c):s.split(a,c)):[]}var BT=Yi(function(s,a,c){return s+(c?" ":"")+Bf(a)});function DT(s,a,c){return s=_t(s),c=c==null?0:ni(Je(c),0,s.length),a=Mn(a),s.slice(c,c+a.length)==a}function $T(s,a,c){var g=x.templateSettings;c&&bn(s,a,c)&&(a=n),s=_t(s),a=zl({},a,g,hg);var _=zl({},a.imports,g.imports,hg),E=nn(_),I=Kc(_,E),M,N,te=0,ne=a.interpolate||nl,ae="__p += '",we=Yc((a.escape||nl).source+"|"+ne.source+"|"+(ne===Fm?yC:nl).source+"|"+(a.evaluate||nl).source+"|$","g"),Ie="//# sourceURL="+(wt.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qC+"]")+`
|
|
21
|
-
`;s.replace(we,function(Ge,it,ct,Dn,_n,$n){return ct||(ct=Dn),ae+=s.slice(te,$n).replace(AC,m2),it&&(M=!0,ae+=`' +
|
|
22
|
-
__e(`+it+`) +
|
|
23
|
-
'`),_n&&(N=!0,ae+=`';
|
|
24
|
-
`+_n+`;
|
|
25
|
-
__p += '`),ct&&(ae+=`' +
|
|
26
|
-
((__t = (`+ct+`)) == null ? '' : __t) +
|
|
27
|
-
'`),te=$n+Ge.length,Ge}),ae+=`';
|
|
28
|
-
`;var We=wt.call(a,"variable")&&a.variable;if(!We)ae=`with (obj) {
|
|
29
|
-
`+ae+`
|
|
30
|
-
}
|
|
31
|
-
`;else if(gC.test(We))throw new Ye(u);ae=(N?ae.replace(eC,""):ae).replace(tC,"$1").replace(nC,"$1;"),ae="function("+(We||"obj")+`) {
|
|
32
|
-
`+(We?"":`obj || (obj = {});
|
|
33
|
-
`)+"var __t, __p = ''"+(M?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
|
|
34
|
-
function print() { __p += __j.call(arguments, '') }
|
|
35
|
-
`:`;
|
|
36
|
-
`)+ae+`return __p
|
|
37
|
-
}`;var Qe=ip(function(){return yt(E,Ie+"return "+ae).apply(n,I)});if(Qe.source=ae,Of(Qe))throw Qe;return Qe}function HT(s){return _t(s).toLowerCase()}function NT(s){return _t(s).toUpperCase()}function UT(s,a,c){if(s=_t(s),s&&(c||a===n))return mv(s);if(!s||!(a=Mn(a)))return s;var g=hr(s),_=hr(a),E=vv(g,_),I=gv(g,_)+1;return Ts(g,E,I).join("")}function zT(s,a,c){if(s=_t(s),s&&(c||a===n))return s.slice(0,yv(s)+1);if(!s||!(a=Mn(a)))return s;var g=hr(s),_=gv(g,hr(a))+1;return Ts(g,0,_).join("")}function WT(s,a,c){if(s=_t(s),s&&(c||a===n))return s.replace(Lc,"");if(!s||!(a=Mn(a)))return s;var g=hr(s),_=vv(g,hr(a));return Ts(g,_).join("")}function GT(s,a){var c=W,g=H;if(Dt(a)){var _="separator"in a?a.separator:_;c="length"in a?Je(a.length):c,g="omission"in a?Mn(a.omission):g}s=_t(s);var E=s.length;if(Ni(s)){var I=hr(s);E=I.length}if(c>=E)return s;var M=c-Ui(g);if(M<1)return g;var N=I?Ts(I,0,M).join(""):s.slice(0,M);if(_===n)return N+g;if(I&&(M+=N.length-M),Vf(_)){if(s.slice(M).search(_)){var te,ne=N;for(_.global||(_=Yc(_.source,_t(Mm.exec(_))+"g")),_.lastIndex=0;te=_.exec(ne);)var ae=te.index;N=N.slice(0,ae===n?M:ae)}}else if(s.indexOf(Mn(_),M)!=M){var we=N.lastIndexOf(_);we>-1&&(N=N.slice(0,we))}return N+g}function jT(s){return s=_t(s),s&&rC.test(s)?s.replace(Om,w2):s}var KT=Yi(function(s,a,c){return s+(c?" ":"")+a.toUpperCase()}),Bf=og("toUpperCase");function sp(s,a,c){return s=_t(s),a=c?n:a,a===n?g2(s)?x2(s):a2(s):s.match(a)||[]}var ip=nt(function(s,a){try{return Vn(s,n,a)}catch(c){return Of(c)?c:new Ye(c)}}),qT=Zr(function(s,a){return Zn(a,function(c){c=Vr(c),qr(s,c,If(s[c],s))}),s});function YT(s){var a=s==null?0:s.length,c=Ue();return s=a?Mt(s,function(g){if(typeof g[1]!="function")throw new Xn(l);return[c(g[0]),g[1]]}):[],nt(function(g){for(var _=-1;++_<a;){var E=s[_];if(Vn(E[0],this,g))return Vn(E[1],this,g)}})}function ZT(s){return wS(Qn(s,m))}function Df(s){return function(){return s}}function XT(s,a){return s==null||s!==s?a:s}var JT=lg(),QT=lg(!0);function Pn(s){return s}function $f(s){return Dv(typeof s=="function"?s:Qn(s,m))}function ek(s){return Hv(Qn(s,m))}function tk(s,a){return Nv(s,Qn(a,m))}var nk=nt(function(s,a){return function(c){return qo(c,s,a)}}),rk=nt(function(s,a){return function(c){return qo(s,c,a)}});function Hf(s,a,c){var g=nn(a),_=xl(a,g);c==null&&!(Dt(a)&&(_.length||!g.length))&&(c=a,a=s,s=this,_=xl(a,nn(a)));var E=!(Dt(c)&&"chain"in c)||!!c.chain,I=Jr(s);return Zn(_,function(M){var N=a[M];s[M]=N,I&&(s.prototype[M]=function(){var te=this.__chain__;if(E||te){var ne=s(this.__wrapped__),ae=ne.__actions__=En(this.__actions__);return ae.push({func:N,args:arguments,thisArg:s}),ne.__chain__=te,ne}return N.apply(s,ws([this.value()],arguments))})}),s}function sk(){return sn._===this&&(sn._=R2),this}function Nf(){}function ik(s){return s=Je(s),nt(function(a){return Uv(a,s)})}var ok=yf(Mt),ak=yf(uv),lk=yf(Uc);function op(s){return Af(s)?zc(Vr(s)):DS(s)}function uk(s){return function(a){return s==null?n:ri(s,a)}}var ck=cg(),fk=cg(!0);function Uf(){return[]}function zf(){return!1}function dk(){return{}}function hk(){return""}function mk(){return!0}function vk(s,a){if(s=Je(s),s<1||s>fe)return[];var c=pe,g=fn(s,pe);a=Ue(a),s-=pe;for(var _=jc(g,a);++c<s;)a(c);return _}function gk(s){return Xe(s)?Mt(s,Vr):Bn(s)?[s]:En(Eg(_t(s)))}function pk(s){var a=++k2;return _t(s)+a}var yk=Rl(function(s,a){return s+a},0),bk=bf("ceil"),_k=Rl(function(s,a){return s/a},1),wk=bf("floor");function Ck(s){return s&&s.length?Sl(s,Pn,rf):n}function Sk(s,a){return s&&s.length?Sl(s,Ue(a,2),rf):n}function xk(s){return dv(s,Pn)}function Ak(s,a){return dv(s,Ue(a,2))}function Ek(s){return s&&s.length?Sl(s,Pn,lf):n}function Tk(s,a){return s&&s.length?Sl(s,Ue(a,2),lf):n}var kk=Rl(function(s,a){return s*a},1),Pk=bf("round"),Rk=Rl(function(s,a){return s-a},0);function Ik(s){return s&&s.length?Gc(s,Pn):0}function Lk(s,a){return s&&s.length?Gc(s,Ue(a,2)):0}return x.after=eE,x.ary=Bg,x.assign=NE,x.assignIn=Xg,x.assignInWith=zl,x.assignWith=UE,x.at=zE,x.before=Dg,x.bind=If,x.bindAll=qT,x.bindKey=$g,x.castArray=dE,x.chain=Vg,x.chunk=wx,x.compact=Cx,x.concat=Sx,x.cond=YT,x.conforms=ZT,x.constant=Df,x.countBy=IA,x.create=WE,x.curry=Hg,x.curryRight=Ng,x.debounce=Ug,x.defaults=GE,x.defaultsDeep=jE,x.defer=tE,x.delay=nE,x.difference=xx,x.differenceBy=Ax,x.differenceWith=Ex,x.drop=Tx,x.dropRight=kx,x.dropRightWhile=Px,x.dropWhile=Rx,x.fill=Ix,x.filter=OA,x.flatMap=MA,x.flatMapDeep=BA,x.flatMapDepth=DA,x.flatten=Rg,x.flattenDeep=Lx,x.flattenDepth=Ox,x.flip=rE,x.flow=JT,x.flowRight=QT,x.fromPairs=Vx,x.functions=QE,x.functionsIn=eT,x.groupBy=$A,x.initial=Mx,x.intersection=Bx,x.intersectionBy=Dx,x.intersectionWith=$x,x.invert=nT,x.invertBy=rT,x.invokeMap=NA,x.iteratee=$f,x.keyBy=UA,x.keys=nn,x.keysIn=kn,x.map=Bl,x.mapKeys=iT,x.mapValues=oT,x.matches=ek,x.matchesProperty=tk,x.memoize=$l,x.merge=aT,x.mergeWith=Jg,x.method=nk,x.methodOf=rk,x.mixin=Hf,x.negate=Hl,x.nthArg=ik,x.omit=lT,x.omitBy=uT,x.once=sE,x.orderBy=zA,x.over=ok,x.overArgs=iE,x.overEvery=ak,x.overSome=lk,x.partial=Lf,x.partialRight=zg,x.partition=WA,x.pick=cT,x.pickBy=Qg,x.property=op,x.propertyOf=uk,x.pull=zx,x.pullAll=Lg,x.pullAllBy=Wx,x.pullAllWith=Gx,x.pullAt=jx,x.range=ck,x.rangeRight=fk,x.rearg=oE,x.reject=KA,x.remove=Kx,x.rest=aE,x.reverse=Pf,x.sampleSize=YA,x.set=dT,x.setWith=hT,x.shuffle=ZA,x.slice=qx,x.sortBy=QA,x.sortedUniq=tA,x.sortedUniqBy=nA,x.split=MT,x.spread=lE,x.tail=rA,x.take=sA,x.takeRight=iA,x.takeRightWhile=oA,x.takeWhile=aA,x.tap=CA,x.throttle=uE,x.thru=Ml,x.toArray=qg,x.toPairs=ep,x.toPairsIn=tp,x.toPath=gk,x.toPlainObject=Zg,x.transform=mT,x.unary=cE,x.union=lA,x.unionBy=uA,x.unionWith=cA,x.uniq=fA,x.uniqBy=dA,x.uniqWith=hA,x.unset=vT,x.unzip=Rf,x.unzipWith=Og,x.update=gT,x.updateWith=pT,x.values=Ji,x.valuesIn=yT,x.without=mA,x.words=sp,x.wrap=fE,x.xor=vA,x.xorBy=gA,x.xorWith=pA,x.zip=yA,x.zipObject=bA,x.zipObjectDeep=_A,x.zipWith=wA,x.entries=ep,x.entriesIn=tp,x.extend=Xg,x.extendWith=zl,Hf(x,x),x.add=yk,x.attempt=ip,x.camelCase=CT,x.capitalize=np,x.ceil=bk,x.clamp=bT,x.clone=hE,x.cloneDeep=vE,x.cloneDeepWith=gE,x.cloneWith=mE,x.conformsTo=pE,x.deburr=rp,x.defaultTo=XT,x.divide=_k,x.endsWith=ST,x.eq=vr,x.escape=xT,x.escapeRegExp=AT,x.every=LA,x.find=VA,x.findIndex=kg,x.findKey=KE,x.findLast=FA,x.findLastIndex=Pg,x.findLastKey=qE,x.floor=wk,x.forEach=Fg,x.forEachRight=Mg,x.forIn=YE,x.forInRight=ZE,x.forOwn=XE,x.forOwnRight=JE,x.get=Ff,x.gt=yE,x.gte=bE,x.has=tT,x.hasIn=Mf,x.head=Ig,x.identity=Pn,x.includes=HA,x.indexOf=Fx,x.inRange=_T,x.invoke=sT,x.isArguments=oi,x.isArray=Xe,x.isArrayBuffer=_E,x.isArrayLike=Tn,x.isArrayLikeObject=zt,x.isBoolean=wE,x.isBuffer=ks,x.isDate=CE,x.isElement=SE,x.isEmpty=xE,x.isEqual=AE,x.isEqualWith=EE,x.isError=Of,x.isFinite=TE,x.isFunction=Jr,x.isInteger=Wg,x.isLength=Nl,x.isMap=Gg,x.isMatch=kE,x.isMatchWith=PE,x.isNaN=RE,x.isNative=IE,x.isNil=OE,x.isNull=LE,x.isNumber=jg,x.isObject=Dt,x.isObjectLike=Ht,x.isPlainObject=ea,x.isRegExp=Vf,x.isSafeInteger=VE,x.isSet=Kg,x.isString=Ul,x.isSymbol=Bn,x.isTypedArray=Xi,x.isUndefined=FE,x.isWeakMap=ME,x.isWeakSet=BE,x.join=Hx,x.kebabCase=ET,x.last=tr,x.lastIndexOf=Nx,x.lowerCase=TT,x.lowerFirst=kT,x.lt=DE,x.lte=$E,x.max=Ck,x.maxBy=Sk,x.mean=xk,x.meanBy=Ak,x.min=Ek,x.minBy=Tk,x.stubArray=Uf,x.stubFalse=zf,x.stubObject=dk,x.stubString=hk,x.stubTrue=mk,x.multiply=kk,x.nth=Ux,x.noConflict=sk,x.noop=Nf,x.now=Dl,x.pad=PT,x.padEnd=RT,x.padStart=IT,x.parseInt=LT,x.random=wT,x.reduce=GA,x.reduceRight=jA,x.repeat=OT,x.replace=VT,x.result=fT,x.round=Pk,x.runInContext=$,x.sample=qA,x.size=XA,x.snakeCase=FT,x.some=JA,x.sortedIndex=Yx,x.sortedIndexBy=Zx,x.sortedIndexOf=Xx,x.sortedLastIndex=Jx,x.sortedLastIndexBy=Qx,x.sortedLastIndexOf=eA,x.startCase=BT,x.startsWith=DT,x.subtract=Rk,x.sum=Ik,x.sumBy=Lk,x.template=$T,x.times=vk,x.toFinite=Qr,x.toInteger=Je,x.toLength=Yg,x.toLower=HT,x.toNumber=nr,x.toSafeInteger=HE,x.toString=_t,x.toUpper=NT,x.trim=UT,x.trimEnd=zT,x.trimStart=WT,x.truncate=GT,x.unescape=jT,x.uniqueId=pk,x.upperCase=KT,x.upperFirst=Bf,x.each=Fg,x.eachRight=Mg,x.first=Ig,Hf(x,function(){var s={};return Lr(x,function(a,c){wt.call(x.prototype,c)||(s[c]=a)}),s}(),{chain:!1}),x.VERSION=r,Zn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){x[s].placeholder=x}),Zn(["drop","take"],function(s,a){lt.prototype[s]=function(c){c=c===n?1:Jt(Je(c),0);var g=this.__filtered__&&!a?new lt(this):this.clone();return g.__filtered__?g.__takeCount__=fn(c,g.__takeCount__):g.__views__.push({size:fn(c,pe),type:s+(g.__dir__<0?"Right":"")}),g},lt.prototype[s+"Right"]=function(c){return this.reverse()[s](c).reverse()}}),Zn(["filter","map","takeWhile"],function(s,a){var c=a+1,g=c==G||c==ce;lt.prototype[s]=function(_){var E=this.clone();return E.__iteratees__.push({iteratee:Ue(_,3),type:c}),E.__filtered__=E.__filtered__||g,E}}),Zn(["head","last"],function(s,a){var c="take"+(a?"Right":"");lt.prototype[s]=function(){return this[c](1).value()[0]}}),Zn(["initial","tail"],function(s,a){var c="drop"+(a?"":"Right");lt.prototype[s]=function(){return this.__filtered__?new lt(this):this[c](1)}}),lt.prototype.compact=function(){return this.filter(Pn)},lt.prototype.find=function(s){return this.filter(s).head()},lt.prototype.findLast=function(s){return this.reverse().find(s)},lt.prototype.invokeMap=nt(function(s,a){return typeof s=="function"?new lt(this):this.map(function(c){return qo(c,s,a)})}),lt.prototype.reject=function(s){return this.filter(Hl(Ue(s)))},lt.prototype.slice=function(s,a){s=Je(s);var c=this;return c.__filtered__&&(s>0||a<0)?new lt(c):(s<0?c=c.takeRight(-s):s&&(c=c.drop(s)),a!==n&&(a=Je(a),c=a<0?c.dropRight(-a):c.take(a-s)),c)},lt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},lt.prototype.toArray=function(){return this.take(pe)},Lr(lt.prototype,function(s,a){var c=/^(?:filter|find|map|reject)|While$/.test(a),g=/^(?:head|last)$/.test(a),_=x[g?"take"+(a=="last"?"Right":""):a],E=g||/^find/.test(a);_&&(x.prototype[a]=function(){var I=this.__wrapped__,M=g?[1]:arguments,N=I instanceof lt,te=M[0],ne=N||Xe(I),ae=function(it){var ct=_.apply(x,ws([it],M));return g&&we?ct[0]:ct};ne&&c&&typeof te=="function"&&te.length!=1&&(N=ne=!1);var we=this.__chain__,Ie=!!this.__actions__.length,We=E&&!we,Qe=N&&!Ie;if(!E&&ne){I=Qe?I:new lt(this);var Ge=s.apply(I,M);return Ge.__actions__.push({func:Ml,args:[ae],thisArg:n}),new Jn(Ge,we)}return We&&Qe?s.apply(this,M):(Ge=this.thru(ae),We?g?Ge.value()[0]:Ge.value():Ge)})}),Zn(["pop","push","shift","sort","splice","unshift"],function(s){var a=ll[s],c=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",g=/^(?:pop|shift)$/.test(s);x.prototype[s]=function(){var _=arguments;if(g&&!this.__chain__){var E=this.value();return a.apply(Xe(E)?E:[],_)}return this[c](function(I){return a.apply(Xe(I)?I:[],_)})}}),Lr(lt.prototype,function(s,a){var c=x[a];if(c){var g=c.name+"";wt.call(ji,g)||(ji[g]=[]),ji[g].push({name:a,func:c})}}),ji[Pl(n,A).name]=[{name:"wrapper",func:n}],lt.prototype.clone=j2,lt.prototype.reverse=K2,lt.prototype.value=q2,x.prototype.at=SA,x.prototype.chain=xA,x.prototype.commit=AA,x.prototype.next=EA,x.prototype.plant=kA,x.prototype.reverse=PA,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=RA,x.prototype.first=x.prototype.head,No&&(x.prototype[No]=TA),x},zi=A2();Js?((Js.exports=zi)._=zi,Dc._=zi):sn._=zi}).call(oo)})(Tu,Tu.exports);var rV=Tu.exports;const _r=Ab(rV),Eb=["filters","show"];Object.freeze(Eb);const Tb=e=>{const t=Array.isArray(e),n=t?[]:{};for(const[r,i]of Object.entries(e)){if(i==null)continue;const o=i&&typeof i=="object",l=o?Tb(i):i;(!o||Object.keys(l).length>0)&&(t?n.push(l):n[r]=l)}return n},Wa=e=>{const t=Tb(e);t.q===""&&delete t.q;for(const n of Eb)t[n]&&(t[n]=JSON.stringify(t[n]));return t.ts=kt().timestamp,t},sV=({group:e,pk:t},n)=>{const r=Wa(n);return et.get(`/${e}/${t}/choices_available`,{params:r})},iV=({group:e,pk:t},n,r)=>{const i=Wa(r);return et.get(`/${e}/${t}/choices/${n}`,{params:i})},oV=({group:e,pk:t,page:n},r)=>{const i=Wa(r);return et.get(`/${e}/${t}/${n}`,{params:i})},aV=({group:e,pk:t},n)=>{const r=Wa(n);return et.get(`/${e}/${t}/metadata`,{params:r})},lV=()=>{const e=Wa({});return et.get("/r/settings",{params:e})},uV=({group:e,pk:t},n)=>(n.fitTo===null&&(n.fitTo=""),et.patch(`${e}/${t}/bookmark`,n)),vi={getAvailableFilterChoices:sV,getFilterChoices:iV,getMetadata:aV,getSettings:lV,loadBrowserPage:oV,setGroupBookmarks:uV},cV=["communityRating","criticalRating","decade","year"];Object.freeze(cV);const fV=["ageRating","country","fileType","language","originalFormat"];Object.freeze(fV);const ku="rpisvc";Object.freeze(ku);const ao=[...ku].reverse().join("");Object.freeze(ao);const Qh={};for(let e of sr.browser.settingsGroup)Qh[e.value]=e.default===!0;Object.freeze(Qh);const kb=new Set([301,302,303,307,308]);Object.freeze(kb);const Pb=new Set([void 0,null,sr.browser.bookmarkFilter[0].value]);Object.freeze(Pb);const dV=function(e){return!e||e<1?1:Math.floor(Math.log10(e))+1},ad=function(e){e&&e.params&&pr.push(e).catch(console.warn)},hc=Na("browser",{state:()=>({choices:{static:Object.freeze({bookmark:sr.browser.bookmarkFilter,groupNames:sr.browser.groupNames,settingsGroup:sr.browser.settingsGroup}),dynamic:void 0},settings:{filters:{},q:"",topGroup:void 0,orderBy:void 0,orderReverse:void 0,show:{...Qh},twentyFourHourTime:void 0},page:{adminFlags:{folderView:void 0},browserTitle:{parentName:void 0,groupName:void 0,groupCount:void 0},coversTimestamp:0,librariesExist:void 0,modelGroup:void 0,numPages:1,groups:[],books:[],routes:{up:void 0,last:void 0}},filterMode:"base",zeroPad:0,browserPageLoaded:!1}),getters:{topGroupChoices(){const e=[];for(const t of sr.browser.topGroup)this._isRootGroupEnabled(t.value)&&e.push(t);return e},topGroupChoicesMaxLen(){return this._maxLenChoices(sr.browser.topGroup)},orderByChoices(e){const t=[];for(const n of sr.browser.orderBy)n.value==="path"?e.page.adminFlags.folderView&&t.push(n):t.push(n);return t},orderByChoicesMaxLen(){return this._maxLenChoices(sr.browser.orderBy)},filterByChoicesMaxLen(){return this._maxLenChoices(sr.browser.bookmarkFilter)},isCodexViewable(){return xn().isCodexViewable},isDefaultBookmarkValueSelected(e){return Pb.has(e.settings.filters.bookmark)},lowestShownGroup(e){let t="r";const n=ao.indexOf(e.settings.topGroup);for(const[r,i]of[...ao].entries())if(e.settings.show[i]){r<=n&&(t=i);break}return t},parentModelGroup(e){let t="";if(!e.page||!e.page.routes||!e.page.routes.up)return t;const n=e.page.routes.up.group,r=ku.indexOf(n)+1,i=ku.slice(r);for(t of i)if(e.settings.show[t])break;return t}},actions:{_maxLenChoices(e){let t=0;for(const n of e)n&&n.title&&n.title.length>t&&(t=n.title.length);return t},_isRootGroupEnabled(e){return e==="c"||e==="f"?this.page.adminFlags.folderView:this.settings.show[e]},_validateFirstSearch(e){if(this.q||!e.q)return;e.orderBy="search_score",e.orderReverse=!0;const t=pr.currentRoute.value.params;if(!["f",this.lowestShownGroup].includes(t.group))return{params:{group:this.lowestShownGroup,pk:0,page:1}}},_validateNewTopGroupIsParent(e,t){const r=(t||pr.currentRoute.value).params,i=ao.indexOf(this.settings.topGroup);if(r.group!=="r"||!this.settings.topGroup||i>=ao.indexOf(e.topGroup))return t;const o=ao.slice(i+1);let l;for(l of o)if(this.settings.show[l])break;return{params:{...r,group:l}}},_addSettings(e){this.$patch(t=>{for(let[n,r]of Object.entries(e))t.settings[n]=typeof t.settings[n]=="object"?{...t.settings[n],...r}:t.settings[n]=r})},_validateAndSaveSettings(e){let t=this._validateFirstSearch(e);return t=this._validateNewTopGroupIsParent(e,t),e&&this._addSettings(e),this.filterMode="base",t},async clearFilters(){this.settings.filters={},await this.setSettings({})},async setSettings(e){const t=this._validateAndSaveSettings(e);kt().setTimestamp(),await(t?ad(t):this.loadBrowserPage())},async setBookmarkFinished(e,t){this.isCodexViewable&&await vi.setGroupBookmarks(e,{finished:t}).then(()=>(kt().setTimestamp(),this.loadBrowserPage(),!0))},routeToPage(e){const t=_r.cloneDeep(pr.currentRoute.value);t.params.page=e,pr.push(t).catch(console.warn)},handlePageError(e){if(kb.has(e.response.status)){console.debug(e);const t=e.response.data;t.settings&&this.setSettings(t.settings),t.route&&ad(t.route)}else return console.error(e)},async loadSettings(){this.isCodexViewable&&(this.$patch(e=>{e.browserPageLoaded=!1,e.choices.dynamic=void 0}),await vi.getSettings().then(e=>{const t=e.data,n=this._validateAndSaveSettings(t);return this.browserPageLoaded=!0,n?ad(n):this.loadBrowserPage()}).catch(e=>(this.browserPageLoaded=!0,this.handlePageError(e))))},async loadBrowserPage(){if(!this.isCodexViewable)return;if(!this.browserPageLoaded)return this.loadSettings();const e=pr.currentRoute.value.params;await vi.loadBrowserPage(e,this.settings).then(t=>{const n=t.data;return this.$patch(r=>{const i={...t.data};delete i.upRoute,delete i.issueMax,i.routes={up:n.upRoute,last:e},i.zeroPad=dV(n.issueMax),r.page=Object.freeze(i),r.choices.dynamic=void 0}),!0}).catch(this.handlePageError)},async loadAvailableFilterChoices(){return await vi.getAvailableFilterChoices(pr.currentRoute.value.params,this.settings).then(e=>(this.choices.dynamic=e.data,!0)).catch(console.error)},async loadFilterChoices(e){return await vi.getFilterChoices(pr.currentRoute.value.params,e,this.settings).then(t=>(this.choices.dynamic[e]=Object.freeze(t.data),!0)).catch(console.error)}}}),ot=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Zt=typeof window<"u",em=Zt&&"IntersectionObserver"in window,hV=Zt&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),jd=Zt&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports("selector(:focus-visible)");function ka(e){const t=J(),n=J();if(Zt){const r=new ResizeObserver(i=>{e==null||e(i,r),i.length&&(n.value=i[0].contentRect)});On(()=>{r.disconnect()}),De(t,(i,o)=>{o&&(r.unobserve(o),n.value=void 0),i&&r.observe(i)},{flush:"post"})}return{resizeRef:t,contentRect:Ro(n)}}function w1(e,t,n){mV(e,t),t.set(e,n)}function mV(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vV(e,t,n){var r=Rb(e,t,"set");return gV(e,r,n),n}function gV(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function ci(e,t){var n=Rb(e,t,"get");return pV(e,n)}function Rb(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function pV(e,t){return t.get?t.get.call(e):t.value}function Ib(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let i=0;i<r;i++){if(e==null)return n;e=e[t[i]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function Oi(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime()||e!==Object(e)||t!==Object(t))return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(r=>Oi(e[r],t[r]))}function So(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),Ib(e,t.split("."),n))}function or(e,t,n){if(t==null)return e===void 0?n:e;if(e!==Object(e)){if(typeof t!="function")return n;const i=t(e,n);return typeof i>"u"?n:i}if(typeof t=="string")return So(e,t,n);if(Array.isArray(t))return Ib(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Kd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(n,r)=>t+r)}function ke(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${t}`:void 0}function qd(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function yV(e){return e==null?void 0:e.$el}const C1=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),n8=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Lb(e){return Object.keys(e)}function Ga(e,t,n){const r=Object.create(null),i=Object.create(null);for(const o in e)t.some(l=>l instanceof RegExp?l.test(o):l===o)&&!(n!=null&&n.some(l=>l===o))?r[o]=e[o]:i[o]=e[o];return[r,i]}function ja(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}function mc(e){return Ga(e,["class","style","id",/^data-/])}function $r(e){return e==null?[]:Array.isArray(e)?e:[e]}function Pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(t,Math.min(n,e))}function r8(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function S1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function bV(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function Ks(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const i in e)r[i]=e[i];for(const i in t){const o=e[i],l=t[i];if(qd(o)&&qd(l)){r[i]=Ks(o,l,n);continue}if(Array.isArray(o)&&Array.isArray(l)&&n){r[i]=n(o,l);continue}r[i]=l}return r}function Hs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(Hs.cache.has(e))return Hs.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return Hs.cache.set(e,t),t}Hs.cache=new Map;function ya(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>ya(e,n)).flat(1);if(Array.isArray(t.children))return t.children.map(n=>ya(e,n)).flat(1);if(t.component){if(Object.getOwnPropertySymbols(t.component.provides).includes(e))return[t.component];if(t.component.subTree)return ya(e,t.component.subTree).flat(1)}return[]}var tu=new WeakMap,to=new WeakMap;class _V{constructor(t){w1(this,tu,{writable:!0,value:[]}),w1(this,to,{writable:!0,value:0}),this.size=t}push(t){ci(this,tu)[ci(this,to)]=t,vV(this,to,(ci(this,to)+1)%this.size)}values(){return ci(this,tu).slice(ci(this,to)).concat(ci(this,tu).slice(0,ci(this,to)))}}function tm(e){const t=Qt({}),n=R(e);return Nr(()=>{for(const r in n.value)t[r]=n.value[r]},{flush:"sync"}),Ba(t)}function Ru(e,t){return e.includes(t)}const wV=/^on[^a-z]/,CV=e=>wV.test(e),Hr=()=>[Function,Array];function x1(e,t){return t="on"+ki(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function SV(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const i of e)i(...n);else typeof e=="function"&&e(...n)}function nm(e){const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(n=>`${n}:not([tabindex="-1"]):not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function Ob(e,t){var i,o,l;const n=nm(e),r=n.indexOf(document.activeElement);if(!t)e.contains(document.activeElement)||(i=n[0])==null||i.focus();else if(t==="first")(o=n[0])==null||o.focus();else if(t==="last")(l=n.at(-1))==null||l.focus();else{let u,f=r;const d=t==="next"?1:-1;do f+=d,u=n[f];while((!u||u.offsetParent==null)&&f<n.length&&f>=0);u?u.focus():Ob(e,t==="next"?"first":"last")}}const Vb=["top","bottom"],xV=["start","end","left","right"];function Yd(e,t){let[n,r]=e.split(" ");return r||(r=Ru(Vb,n)?"start":Ru(xV,n)?"top":"center"),{side:Zd(n,t),align:Zd(r,t)}}function Zd(e,t){return e==="start"?t?"right":"left":e==="end"?t?"left":"right":e}function ld(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ud(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function A1(e){return{side:e.align,align:e.side}}function E1(e){return Ru(Vb,e.side)?"y":"x"}class vo{constructor(t){let{x:n,y:r,width:i,height:o}=t;this.x=n,this.y=r,this.width=i,this.height=o}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function T1(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function rm(e){const t=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let i,o,l,u,f;if(r.startsWith("matrix3d("))i=r.slice(9,-1).split(/, /),o=+i[0],l=+i[5],u=+i[12],f=+i[13];else if(r.startsWith("matrix("))i=r.slice(7,-1).split(/, /),o=+i[0],l=+i[3],u=+i[4],f=+i[5];else return new vo(t);const d=n.transformOrigin,h=t.x-u-(1-o)*parseFloat(d),m=t.y-f-(1-l)*parseFloat(d.slice(d.indexOf(" ")+1)),v=o?t.width/o:e.offsetWidth+1,p=l?t.height/l:e.offsetHeight+1;return new vo({x:h,y:m,width:v,height:p})}else return new vo(t)}function pi(e,t,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(i=>{r.onfinish=()=>{i(r)}})),r}function Fb(e,t,n){if(n&&(t={__isVue:!0,$parent:n,$options:t}),t){if(t.$_alreadyWarned=t.$_alreadyWarned||[],t.$_alreadyWarned.includes(e))return;t.$_alreadyWarned.push(e)}return`[Vuetify] ${e}`+(t?TV(t):"")}function Ci(e,t,n){const r=Fb(e,t,n);r!=null&&console.warn(r)}function Xd(e,t,n){const r=Fb(e,t,n);r!=null&&console.error(r)}const AV=/(?:^|[-_])(\w)/g,EV=e=>e.replace(AV,t=>t.toUpperCase()).replace(/[-_]/g,"");function cd(e,t){if(e.$root===e)return"<Root>";const n=typeof e=="function"&&e.cid!=null?e.options:e.__isVue?e.$options||e.constructor.options:e||{};let r=n.name||n._componentTag;const i=n.__file;if(!r&&i){const o=i.match(/([^/\\]+)\.vue$/);r=o==null?void 0:o[1]}return(r?`<${EV(r)}>`:"<Anonymous>")+(i&&t!==!1?` at ${i}`:"")}function TV(e){if(e.__isVue&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return`
|
|
38
|
-
|
|
39
|
-
found in
|
|
40
|
-
|
|
41
|
-
`+t.map((r,i)=>`${i===0?"---> ":" ".repeat(5+i*2)}${Array.isArray(r)?`${cd(r[0])}... (${r[1]} recursive calls)`:cd(r)}`).join(`
|
|
42
|
-
`)}else return`
|
|
43
|
-
|
|
44
|
-
(found in ${cd(e)})`}const kV=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],PV=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,RV=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],IV=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Mb(e){const t=Array(3),n=PV,r=kV;for(let i=0;i<3;++i)t[i]=Math.round(Pu(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function sm(e){let{r:t,g:n,b:r}=e;const i=[0,0,0],o=IV,l=RV;t=o(t/255),n=o(n/255),r=o(r/255);for(let u=0;u<3;++u)i[u]=l[u][0]*t+l[u][1]*n+l[u][2]*r;return i}const Iu=.20689655172413793,LV=e=>e>Iu**3?Math.cbrt(e):e/(3*Iu**2)+4/29,OV=e=>e>Iu?e**3:3*Iu**2*(e-4/29);function Bb(e){const t=LV,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function Db(e){const t=OV,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}function k1(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function yi(e){if(typeof e=="number")return(isNaN(e)||e<0||e>16777215)&&Ci(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map(r=>r+r).join(""):[6,8].includes(t.length)||Ci(`'${e}' is not a valid hex(a) color`);const n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&Ci(`'${e}' is not a valid hex(a) color`),FV(t)}else throw new TypeError(`Colors can only be numbers or strings, recieved ${e==null?e:e.constructor.name} instead`)}function nu(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function VV(e){let{r:t,g:n,b:r,a:i}=e;return`#${[nu(t),nu(n),nu(r),i!==void 0?nu(Math.round(i*255)):""].join("")}`}function FV(e){e=MV(e);let[t,n,r,i]=bV(e,2).map(o=>parseInt(o,16));return i=i===void 0?i:i/255,{r:t,g:n,b:r,a:i}}function MV(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=S1(S1(e,6),8,"F")),e}function BV(e,t){const n=Bb(sm(e));return n[0]=n[0]+t*10,Mb(Db(n))}function DV(e,t){const n=Bb(sm(e));return n[0]=n[0]-t*10,Mb(Db(n))}function $V(e){const t=yi(e);return sm(t)[1]}function Ve(e,t){return n=>Object.keys(e).reduce((r,i)=>{const l=typeof e[i]=="object"&&e[i]!=null&&!Array.isArray(e[i])?e[i]:{type:e[i]};return n&&i in n?r[i]={...l,default:n[i]}:r[i]=l,t&&!r[i].source&&(r[i].source=t),r},{})}const tt=Ve({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component");function Ei(e,t){let n;function r(){n=To(),n.run(()=>t.length?t(()=>{n==null||n.stop(),r()}):t())}De(e,i=>{i&&!n?r():i||(n==null||n.stop(),n=void 0)},{immediate:!0}),Sn(()=>{n==null||n.stop()})}const im=Symbol.for("vuetify:defaults");function s8(e){return J(e)}function om(){const e=rt(im);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Kn(e,t){const n=om(),r=J(e),i=R(()=>{if(mn(t==null?void 0:t.disabled))return n.value;const l=mn(t==null?void 0:t.scoped),u=mn(t==null?void 0:t.reset),f=mn(t==null?void 0:t.root);let d=Ks(r.value,{prev:n.value});if(l)return d;if(u||f){const h=Number(u||1/0);for(let m=0;m<=h&&!(!d||!("prev"in d));m++)d=d.prev;return d}return d.prev?Ks(d.prev,d):d});return Pt(im,i),i}function HV(e,t){var n,r;return typeof((n=e.props)==null?void 0:n[t])<"u"||typeof((r=e.props)==null?void 0:r[Hs(t)])<"u"}function NV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:om();const r=cn("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const i=R(()=>{var f;return(f=n.value)==null?void 0:f[e._as??t]}),o=new Proxy(e,{get(f,d){var m,v,p,b;const h=Reflect.get(f,d);return d==="class"||d==="style"?[(m=i.value)==null?void 0:m[d],h].filter(S=>S!=null):typeof d=="string"&&!HV(r.vnode,d)?((v=i.value)==null?void 0:v[d])??((b=(p=n.value)==null?void 0:p.global)==null?void 0:b[d])??h:h}}),l=qu();Nr(()=>{if(i.value){const f=Object.entries(i.value).filter(d=>{let[h]=d;return h.startsWith(h[0].toUpperCase())});f.length&&(l.value=Object.fromEntries(f))}});function u(){Ei(l,()=>{var f;Kn(Ks(((f=jV(im))==null?void 0:f.value)??{},l.value))})}return{props:o,provideSubDefaults:u}}function Oo(e){if(e._setup=e._setup??e.setup,!e.name)return Ci("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=Ve(e.props??{},Hs(e.name))();const t=Object.keys(e.props);e.filterProps=function(r){return Ga(r,t,["class","style"])},e.props._as=String,e.setup=function(r,i){const o=om();if(!o.value)return e._setup(r,i);const{props:l,provideSubDefaults:u}=NV(r,r._as??e.name,o),f=e._setup(l,i);return u(),f}}return e}function Pe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return t=>(e?Oo:Io)(t)}function UV(e,t){return t.props=e,t}function $b(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return Pe()({name:n??ki(vn(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...tt()},setup(r,i){let{slots:o}=i;return()=>{var l;return vs(r.tag,{class:[e,r.class],style:r.style},(l=o.default)==null?void 0:l.call(o))}}})}function Hb(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}const Pa="cubic-bezier(0.4, 0, 0.2, 1)",zV="cubic-bezier(0.0, 0, 0.2, 1)",WV="cubic-bezier(0.4, 0, 1, 1)";function cn(e,t){const n=Ur();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function ps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const t=cn(e).type;return Hs((t==null?void 0:t.aliasName)||(t==null?void 0:t.name))}let Nb=0,hu=new WeakMap;function cr(){const e=cn("getUid");if(hu.has(e))return hu.get(e);{const t=Nb++;return hu.set(e,t),t}}cr.reset=()=>{Nb=0,hu=new WeakMap};function GV(e){for(;e;){if(am(e))return e;e=e.parentElement}return document.scrollingElement}function Lu(e,t){const n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(am(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function am(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return t.overflowY==="scroll"||t.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function jV(e){const{provides:t}=cn("injectSelf");if(t&&e in t)return t[e]}function KV(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function $e(e){const t=cn("useRender");t.render=e}const Ou=Symbol.for("vuetify:layout"),Ub=Symbol.for("vuetify:layout-item"),P1=1e3,i8=Ve({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),zb=Ve({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function qV(){const e=rt(Ou);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function Wb(e){const t=rt(Ou);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${cr()}`,r=cn("useLayoutItem");Pt(Ub,{id:n});const i=J(!1);Oh(()=>i.value=!0),Lh(()=>i.value=!1);const{layoutItemStyles:o,layoutItemScrimStyles:l}=t.register(r,{...e,active:R(()=>i.value?!1:e.active.value),id:n});return On(()=>t.unregister(n)),{layoutItemStyles:o,layoutRect:t.layoutRect,layoutItemScrimStyles:l}}const YV=(e,t,n,r)=>{let i={top:0,left:0,right:0,bottom:0};const o=[{id:"",layer:{...i}}];for(const l of e){const u=t.get(l),f=n.get(l),d=r.get(l);if(!u||!f||!d)continue;const h={...i,[u.value]:parseInt(i[u.value],10)+(d.value?parseInt(f.value,10):0)};o.push({id:l,layer:h}),i=h}return o};function o8(e){const t=rt(Ou,null),n=R(()=>t?t.rootZIndex.value-100:P1),r=J([]),i=Qt(new Map),o=Qt(new Map),l=Qt(new Map),u=Qt(new Map),f=Qt(new Map),{resizeRef:d,contentRect:h}=ka(),m=R(()=>{const F=new Map,O=e.overlaps??[];for(const k of O.filter(z=>z.includes(":"))){const[z,W]=k.split(":");if(!r.value.includes(z)||!r.value.includes(W))continue;const H=i.get(z),U=i.get(W),q=o.get(z),G=o.get(W);!H||!U||!q||!G||(F.set(W,{position:H.value,amount:parseInt(q.value,10)}),F.set(z,{position:U.value,amount:-parseInt(G.value,10)}))}return F}),v=R(()=>{const F=[...new Set([...l.values()].map(k=>k.value))].sort((k,z)=>k-z),O=[];for(const k of F){const z=r.value.filter(W=>{var H;return((H=l.get(W))==null?void 0:H.value)===k});O.push(...z)}return YV(O,i,o,u)}),p=R(()=>!Array.from(f.values()).some(F=>F.value)),b=R(()=>v.value[v.value.length-1].layer),S=R(()=>({"--v-layout-left":ke(b.value.left),"--v-layout-right":ke(b.value.right),"--v-layout-top":ke(b.value.top),"--v-layout-bottom":ke(b.value.bottom),...p.value?void 0:{transition:"none"}})),T=R(()=>v.value.slice(1).map((F,O)=>{let{id:k}=F;const{layer:z}=v.value[O],W=o.get(k),H=i.get(k);return{id:k,...z,size:Number(W.value),position:H.value}})),A=F=>T.value.find(O=>O.id===F),w=cn("createLayout"),C=J(!1);ar(()=>{C.value=!0}),Pt(Ou,{register:(F,O)=>{let{id:k,order:z,position:W,layoutSize:H,elementSize:U,active:q,disableTransitions:G,absolute:me}=O;l.set(k,z),i.set(k,W),o.set(k,H),u.set(k,q),G&&f.set(k,G);const he=ya(Ub,w==null?void 0:w.vnode).indexOf(F);he>-1?r.value.splice(he,0,k):r.value.push(k);const fe=R(()=>T.value.findIndex(le=>le.id===k)),_e=R(()=>n.value+v.value.length*2-fe.value*2),ve=R(()=>{const le=W.value==="left"||W.value==="right",Ne=W.value==="right",gt=W.value==="bottom",Y={[W.value]:0,zIndex:_e.value,transform:`translate${le?"X":"Y"}(${(q.value?0:-110)*(Ne||gt?-1:1)}%)`,position:me.value||n.value!==P1?"absolute":"fixed",...p.value?void 0:{transition:"none"}};if(!C.value)return Y;const Z=T.value[fe.value];if(!Z)throw new Error(`[Vuetify] Could not find layout item "${k}"`);const ue=m.value.get(k);return ue&&(Z[ue.position]+=ue.amount),{...Y,height:le?`calc(100% - ${Z.top}px - ${Z.bottom}px)`:U.value?`${U.value}px`:void 0,left:Ne?void 0:`${Z.left}px`,right:Ne?`${Z.right}px`:void 0,top:W.value!=="bottom"?`${Z.top}px`:void 0,bottom:W.value!=="top"?`${Z.bottom}px`:void 0,width:le?U.value?`${U.value}px`:void 0:`calc(100% - ${Z.left}px - ${Z.right}px)`}}),pe=R(()=>({zIndex:_e.value-1}));return{layoutItemStyles:ve,layoutItemScrimStyles:pe,zIndex:_e}},unregister:F=>{l.delete(F),i.delete(F),o.delete(F),u.delete(F),f.delete(F),r.value=r.value.filter(O=>O!==F)},mainRect:b,mainStyles:S,getLayoutItem:A,items:T,layoutRect:h,rootZIndex:n});const V=R(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),L=R(()=>({zIndex:n.value,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:V,layoutStyles:L,getLayoutItem:A,items:T,layoutRect:h,layoutRef:d}}const no=2.4,R1=.2126729,I1=.7151522,L1=.072175,ZV=.55,XV=.58,JV=.57,QV=.62,ru=.03,O1=1.45,e3=5e-4,t3=1.25,n3=1.25,V1=.078,F1=12.82051282051282,su=.06,M1=.001;function B1(e,t){const n=(e.r/255)**no,r=(e.g/255)**no,i=(e.b/255)**no,o=(t.r/255)**no,l=(t.g/255)**no,u=(t.b/255)**no;let f=n*R1+r*I1+i*L1,d=o*R1+l*I1+u*L1;if(f<=ru&&(f+=(ru-f)**O1),d<=ru&&(d+=(ru-d)**O1),Math.abs(d-f)<e3)return 0;let h;if(d>f){const m=(d**ZV-f**XV)*t3;h=m<M1?0:m<V1?m-m*F1*su:m-su}else{const m=(d**QV-f**JV)*n3;h=m>-M1?0:m>-V1?m-m*F1*su:m+su}return h*100}const D1=Symbol.for("vuetify:theme"),jt=Ve({theme:String},"theme"),ia={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-variant":"#BDBDBD","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function r3(){var n,r;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ia;if(!e)return{...ia,isDisabled:!0};const t={};for(const[i,o]of Object.entries(e.themes??{})){const l=o.dark||i==="dark"?(n=ia.themes)==null?void 0:n.dark:(r=ia.themes)==null?void 0:r.light;t[i]=Ks(l,o)}return Ks(ia,{...e,themes:t})}function a8(e){const t=Qt(r3(e)),n=J(t.defaultTheme),r=J(t.themes),i=R(()=>{const h={};for(const[m,v]of Object.entries(r.value)){const p=h[m]={...v,colors:{...v.colors}};if(t.variations)for(const b of t.variations.colors){const S=p.colors[b];if(S)for(const T of["lighten","darken"]){const A=T==="lighten"?BV:DV;for(const w of Kd(t.variations[T],1))p.colors[`${b}-${T}-${w}`]=VV(A(yi(S),w))}}for(const b of Object.keys(p.colors)){if(/^on-[a-z]/.test(b)||p.colors[`on-${b}`])continue;const S=`on-${b}`,T=yi(p.colors[b]),A=Math.abs(B1(yi(0),T)),w=Math.abs(B1(yi(16777215),T));p.colors[S]=w>Math.min(A,50)?"#fff":"#000"}}return h}),o=R(()=>i.value[n.value]),l=R(()=>{const h=[];o.value.dark&&fi(h,":root",["color-scheme: dark"]),fi(h,":root",$1(o.value));for(const[b,S]of Object.entries(i.value))fi(h,`.v-theme--${b}`,[`color-scheme: ${S.dark?"dark":"normal"}`,...$1(S)]);const m=[],v=[],p=new Set(Object.values(i.value).flatMap(b=>Object.keys(b.colors)));for(const b of p)/^on-[a-z]/.test(b)?fi(v,`.${b}`,[`color: rgb(var(--v-theme-${b})) !important`]):(fi(m,`.bg-${b}`,[`--v-theme-overlay-multiplier: var(--v-theme-${b}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${b})) !important`,`color: rgb(var(--v-theme-on-${b})) !important`]),fi(v,`.text-${b}`,[`color: rgb(var(--v-theme-${b})) !important`]),fi(v,`.border-${b}`,[`--v-border-color: var(--v-theme-${b})`]));return h.push(...m,...v),h.map((b,S)=>S===0?b:` ${b}`).join("")});function u(){return{style:[{children:l.value,id:"vuetify-theme-stylesheet",nonce:t.cspNonce||!1}]}}function f(h){const m=h._context.provides.usehead;if(m)if(m.push){const v=m.push(u);De(l,()=>{v.patch(u)})}else Zt?(m.addHeadObjs(R(u)),Nr(()=>m.updateDOM())):m.addHeadObjs(u());else{let p=function(){if(!t.isDisabled){if(typeof document<"u"&&!v){const b=document.createElement("style");b.type="text/css",b.id="vuetify-theme-stylesheet",t.cspNonce&&b.setAttribute("nonce",t.cspNonce),v=b,document.head.appendChild(v)}v&&(v.innerHTML=l.value)}},v=Zt?document.getElementById("vuetify-theme-stylesheet"):null;De(l,p,{immediate:!0})}}const d=R(()=>t.isDisabled?void 0:`v-theme--${n.value}`);return{install:f,isDisabled:t.isDisabled,name:n,themes:r,current:o,computedThemes:i,themeClasses:d,styles:l,global:{name:n,current:o}}}function tn(e){cn("provideTheme");const t=rt(D1,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=R(()=>e.theme??(t==null?void 0:t.name.value)),r=R(()=>t.isDisabled?void 0:`v-theme--${n.value}`),i={...t,name:n,themeClasses:r};return Pt(D1,i),i}function fi(e,t,n){e.push(`${t} {
|
|
45
|
-
`,...n.map(r=>` ${r};
|
|
46
|
-
`),`}
|
|
47
|
-
`)}function $1(e){const t=e.dark?2:1,n=e.dark?1:2,r=[];for(const[i,o]of Object.entries(e.colors)){const l=yi(o);r.push(`--v-theme-${i}: ${l.r},${l.g},${l.b}`),i.startsWith("on-")||r.push(`--v-theme-${i}-overlay-multiplier: ${$V(o)>.18?t:n}`)}for(const[i,o]of Object.entries(e.variables)){const l=typeof o=="string"&&o.startsWith("#")?yi(o):void 0,u=l?`${l.r}, ${l.g}, ${l.b}`:void 0;r.push(`--v-${i}: ${u??o}`)}return r}function bt(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m=>m,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:m=>m;const o=cn("useProxiedModel"),l=J(e[t]!==void 0?e[t]:n),u=Hs(t),d=R(u!==t?()=>{var m,v,p,b;return e[t],!!(((m=o.vnode.props)!=null&&m.hasOwnProperty(t)||(v=o.vnode.props)!=null&&v.hasOwnProperty(u))&&((p=o.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${t}`)||(b=o.vnode.props)!=null&&b.hasOwnProperty(`onUpdate:${u}`)))}:()=>{var m,v;return e[t],!!((m=o.vnode.props)!=null&&m.hasOwnProperty(t)&&((v=o.vnode.props)!=null&&v.hasOwnProperty(`onUpdate:${t}`)))});Ei(()=>!d.value,()=>{De(()=>e[t],m=>{l.value=m})});const h=R({get(){const m=e[t];return r(d.value?m:l.value)},set(m){const v=i(m),p=Ze(d.value?e[t]:l.value);p===v||r(p)===m||(l.value=v,o==null||o.emit(`update:${t}`,v))}});return Object.defineProperty(h,"externalValue",{get:()=>d.value?e[t]:l.value}),h}const s3={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},H1="$vuetify.",N1=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[+r])),Gb=(e,t,n)=>function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),l=1;l<i;l++)o[l-1]=arguments[l];if(!r.startsWith(H1))return N1(r,o);const u=r.replace(H1,""),f=e.value&&n.value[e.value],d=t.value&&n.value[t.value];let h=So(f,u,null);return h||(Ci(`Translation key "${r}" not found in "${e.value}", trying fallback locale`),h=So(d,u,null)),h||(Xd(`Translation key "${r}" not found in fallback`),h=r),typeof h!="string"&&(Xd(`Translation key "${r}" has a non-string value`),h=r),N1(h,o)};function jb(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function fd(e,t,n){const r=bt(e,t,e[t]??n.value);return r.value=e[t]??n.value,De(n,i=>{e[t]==null&&(r.value=n.value)}),r}function Kb(e){return t=>{const n=fd(t,"locale",e.current),r=fd(t,"fallback",e.fallback),i=fd(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:i,t:Gb(n,r,i),n:jb(n,r),provide:Kb({current:n,fallback:r,messages:i})}}}function i3(e){const t=J((e==null?void 0:e.locale)??"en"),n=J((e==null?void 0:e.fallback)??"en"),r=J({en:s3,...e==null?void 0:e.messages});return{name:"vuetify",current:t,fallback:n,messages:r,t:Gb(t,n,r),n:jb(t,n),provide:Kb({current:t,fallback:n,messages:r})}}const o3={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1},qb=Symbol.for("vuetify:locale");function a3(e){return e.name!=null}function l8(e){const t=e!=null&&e.adapter&&a3(e==null?void 0:e.adapter)?e==null?void 0:e.adapter:i3(e),n=l3(t,e);return{...t,...n}}function Vi(){const e=rt(qb);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function l3(e,t){const n=J((t==null?void 0:t.rtl)??o3),r=R(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:R(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function Vo(){const e=rt(qb);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const u3=Symbol.for("vuetify:display"),U1={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},c3=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U1;return Ks(U1,e)};function z1(e){return Zt&&!e?window.innerWidth:0}function W1(e){return Zt&&!e?window.innerHeight:0}function G1(e){const t=Zt&&!e?window.navigator.userAgent:"ssr";function n(b){return!!t.match(b)}const r=n(/android/i),i=n(/iphone|ipad|ipod/i),o=n(/cordova/i),l=n(/electron/i),u=n(/chrome/i),f=n(/edge/i),d=n(/firefox/i),h=n(/opera/i),m=n(/win/i),v=n(/mac/i),p=n(/linux/i);return{android:r,ios:i,cordova:o,electron:l,chrome:u,edge:f,firefox:d,opera:h,win:m,mac:v,linux:p,touch:hV,ssr:t==="ssr"}}function u8(e,t){const{thresholds:n,mobileBreakpoint:r}=c3(e),i=J(W1(t)),o=qu(G1(t)),l=Qt({}),u=J(z1(t));function f(){i.value=W1(),u.value=z1()}function d(){f(),o.value=G1()}return Nr(()=>{const h=u.value<n.sm,m=u.value<n.md&&!h,v=u.value<n.lg&&!(m||h),p=u.value<n.xl&&!(v||m||h),b=u.value<n.xxl&&!(p||v||m||h),S=u.value>=n.xxl,T=h?"xs":m?"sm":v?"md":p?"lg":b?"xl":"xxl",A=typeof r=="number"?r:n[r],w=u.value<A;l.xs=h,l.sm=m,l.md=v,l.lg=p,l.xl=b,l.xxl=S,l.smAndUp=!h,l.mdAndUp=!(h||m),l.lgAndUp=!(h||m||v),l.xlAndUp=!(h||m||v||p),l.smAndDown=!(v||p||b||S),l.mdAndDown=!(p||b||S),l.lgAndDown=!(b||S),l.xlAndDown=!S,l.name=T,l.height=i.value,l.width=u.value,l.mobile=w,l.mobileBreakpoint=r,l.platform=o.value,l.thresholds=n}),Zt&&window.addEventListener("resize",f,{passive:!0}),{...Ba(l),update:d,ssr:!!t}}function lm(){const e=rt(u3);if(!e)throw new Error("Could not find Vuetify display injection");return e}const f3={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},d3={component:e=>vs(Zb,{...e,class:"mdi"})},St=[String,Function,Object,Array],h3=Symbol.for("vuetify:icons"),vc=Ve({icon:{type:St},tag:{type:String,required:!0}},"icon"),j1=Pe()({name:"VComponentIcon",props:vc(),setup(e,t){let{slots:n}=t;return()=>{const r=e.icon;return y(e.tag,null,{default:()=>{var i;return[e.icon?y(r,null,null):(i=n.default)==null?void 0:i.call(n)]}})}}}),Yb=Oo({name:"VSvgIcon",inheritAttrs:!1,props:vc(),setup(e,t){let{attrs:n}=t;return()=>y(e.tag,Oe(n,{style:null}),{default:()=>[y("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?y("path",{d:r[0],"fill-opacity":r[1]},null):y("path",{d:r},null)):y("path",{d:e.icon},null)])]})}});Oo({name:"VLigatureIcon",props:vc(),setup(e){return()=>y(e.tag,null,{default:()=>[e.icon]})}});const Zb=Oo({name:"VClassIcon",props:vc(),setup(e){return()=>y(e.tag,{class:e.icon},null)}}),m3={svg:{component:Yb},class:{component:Zb}};function c8(e){return Ks({defaultSet:"mdi",sets:{...m3,mdi:d3},aliases:f3},e)}const v3=e=>{const t=rt(h3);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:R(()=>{var f;const r=At(e)?e.value:e.icon;if(!r)return{component:j1};let i=r;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=(f=t.aliases)==null?void 0:f[i.slice(1)])),!i)throw new Error(`Could not find aliased icon "${r}"`);if(Array.isArray(i))return{component:Yb,icon:i};if(typeof i!="string")return{component:j1,icon:i};const o=Object.keys(t.sets).find(d=>typeof i=="string"&&i.startsWith(`${d}:`)),l=o?i.slice(o.length+1):i;return{component:t.sets[o??t.defaultSet].component,icon:l}})}};var f8="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",d8="M15,18V12H17.17L12,6.83L6.83,12H9V18H15M12,4L22,14H17V20H7V14H2L12,4Z",h8="M13.04 10C12.64 10.25 12.26 10.55 11.9 10.9C11.57 11.24 11.27 11.61 11.03 12H8V10.5C8 10.22 8.22 10 8.5 10H13.04M20 8H2V2H20V8M18 4H4V6H18V4M5 18V9H3V20H11.82C11.24 19.4 10.8 18.72 10.5 18H5M23.39 21L22 22.39L18.88 19.32C18.19 19.75 17.37 20 16.5 20C14 20 12 18 12 15.5S14 11 16.5 11 21 13 21 15.5C21 16.38 20.75 17.21 20.31 17.9L23.39 21M19 15.5C19 14.12 17.88 13 16.5 13S14 14.12 14 15.5 15.12 18 16.5 18 19 16.88 19 15.5Z",m8="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",g3="M18 4V20C18 21.11 17.11 22 16 22H4C2.9 22 2 21.11 2 20V4C2 2.9 2.9 2 4 2H5V9L7.5 7.5L10 9V2H16C17.1 2 18 2.89 18 4M20 17H22V15H20V17M20 7V13H22V7H20Z",v8="M13 19C13 20.1 13.3 21.12 13.81 22H6C4.89 22 4 21.11 4 20V4C4 2.9 4.89 2 6 2H7V9L9.5 7.5L12 9V2H18C19.1 2 20 2.89 20 4V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M20 20V16H18V20H16L19 23L22 20H20Z",g8="M13 19C13 20.1 13.3 21.12 13.81 22H6C4.89 22 4 21.11 4 20V4C4 2.9 4.89 2 6 2H7V9L9.5 7.5L12 9V2H18C19.1 2 20 2.89 20 4V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M19 15L16 18H18V22H20V18H22L19 15Z",p3="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",p8="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",y8="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",b8="M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M10,18L16,12L10,6L8.6,7.4L13.2,12L8.6,16.6L10,18Z",Xb="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M7.5,13.5L9,12L11,14L15.5,9.5L17,11L11,17L7.5,13.5Z",Jb="M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7Z",y3="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",_8="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",w8="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2C6.47,2 2,6.47 2,12C2,17.53 6.47,22 12,22C17.53,22 22,17.53 22,12C22,6.47 17.53,2 12,2M14.59,8L12,10.59L9.41,8L8,9.41L10.59,12L8,14.59L9.41,16L12,13.41L14.59,16L16,14.59L13.41,12L16,9.41L14.59,8Z",C8="M12,8A4,4 0 0,1 16,12A4,4 0 0,1 12,16A4,4 0 0,1 8,12A4,4 0 0,1 12,8M12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12A2,2 0 0,0 12,10M10,22C9.75,22 9.54,21.82 9.5,21.58L9.13,18.93C8.5,18.68 7.96,18.34 7.44,17.94L4.95,18.95C4.73,19.03 4.46,18.95 4.34,18.73L2.34,15.27C2.21,15.05 2.27,14.78 2.46,14.63L4.57,12.97L4.5,12L4.57,11L2.46,9.37C2.27,9.22 2.21,8.95 2.34,8.73L4.34,5.27C4.46,5.05 4.73,4.96 4.95,5.05L7.44,6.05C7.96,5.66 8.5,5.32 9.13,5.07L9.5,2.42C9.54,2.18 9.75,2 10,2H14C14.25,2 14.46,2.18 14.5,2.42L14.87,5.07C15.5,5.32 16.04,5.66 16.56,6.05L19.05,5.05C19.27,4.96 19.54,5.05 19.66,5.27L21.66,8.73C21.79,8.95 21.73,9.22 21.54,9.37L19.43,11L19.5,12L19.43,13L21.54,14.63C21.73,14.78 21.79,15.05 21.66,15.27L19.66,18.73C19.54,18.95 19.27,19.04 19.05,18.95L16.56,17.95C16.04,18.34 15.5,18.68 14.87,18.93L14.5,21.58C14.46,21.82 14.25,22 14,22H10M11.25,4L10.88,6.61C9.68,6.86 8.62,7.5 7.85,8.39L5.44,7.35L4.69,8.65L6.8,10.2C6.4,11.37 6.4,12.64 6.8,13.8L4.68,15.36L5.43,16.66L7.86,15.62C8.63,16.5 9.68,17.14 10.87,17.38L11.24,20H12.76L13.13,17.39C14.32,17.14 15.37,16.5 16.14,15.62L18.57,16.66L19.32,15.36L17.2,13.81C17.6,12.64 17.6,11.37 17.2,10.2L19.31,8.65L18.56,7.35L16.15,8.39C15.38,7.5 14.32,6.86 13.12,6.62L12.75,4H11.25Z",b3="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",_3="M16.5 16.25L19.36 17.94L18.61 19.16L15 17V12H16.5V16.25M23 16C23 19.87 19.87 23 16 23C13.61 23 11.5 21.8 10.25 20C6.19 19.79 3 18.08 3 16V6C3 3.79 6.58 2 11 2S19 3.79 19 6V9.68C21.36 10.81 23 13.21 23 16M17 9.08V8.64C16.77 8.77 16.5 8.9 16.24 9C16.5 9 16.75 9.04 17 9.08M5 6C5 6.5 7.13 8 11 8S17 6.5 17 6 14.87 4 11 4 5 5.5 5 6M5 11.45C6.07 12.23 7.8 12.76 9.72 12.93C10.33 11.67 11.32 10.62 12.54 9.92C12.04 9.97 11.53 10 11 10C8.61 10 6.47 9.47 5 8.64V11.45M9.26 17.87C9.1 17.27 9 16.65 9 16C9 15.61 9.04 15.23 9.1 14.86C7.56 14.69 6.15 14.33 5 13.77V16C5 16.42 6.5 17.5 9.26 17.87M21 16C21 13.24 18.76 11 16 11S11 13.24 11 16 13.24 21 16 21 21 18.76 21 16Z",w3="M8.84 12L3.92 16.92L2.5 15.5L5 13H0V11H5L2.5 8.5L3.92 7.08L8.84 12M12 3C8.59 3 5.68 4.07 4.53 5.57L5 6L6.03 7.07C6 7.05 6 7 6 7C6 6.5 8.13 5 12 5S18 6.5 18 7 15.87 9 12 9C9.38 9 7.58 8.31 6.68 7.72L9.8 10.84C10.5 10.94 11.24 11 12 11C14.39 11 16.53 10.47 18 9.64V12.45C16.7 13.4 14.42 14 12 14C11.04 14 10.1 13.9 9.24 13.73L7.59 15.37C8.91 15.77 10.41 16 12 16C14.28 16 16.39 15.55 18 14.77V17C18 17.5 15.87 19 12 19S6 17.5 6 17V16.96L5 18L4.54 18.43C5.69 19.93 8.6 21 12 21C16.41 21 20 19.21 20 17V7C20 4.79 16.42 3 12 3Z",S8="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",x8="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",A8="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",E8="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",T8="M12 1A2.5 2.5 0 0 0 9.5 3.5A2.5 2.5 0 0 0 11 5.79V7H7A2 2 0 0 0 5 9V9.71A2.5 2.5 0 0 0 3.5 12A2.5 2.5 0 0 0 5 14.29V15H4A2 2 0 0 0 2 17V18.21A2.5 2.5 0 0 0 .5 20.5A2.5 2.5 0 0 0 3 23A2.5 2.5 0 0 0 5.5 20.5A2.5 2.5 0 0 0 4 18.21V17H8V18.21A2.5 2.5 0 0 0 6.5 20.5A2.5 2.5 0 0 0 9 23A2.5 2.5 0 0 0 11.5 20.5A2.5 2.5 0 0 0 10 18.21V17A2 2 0 0 0 8 15H7V14.29A2.5 2.5 0 0 0 8.5 12A2.5 2.5 0 0 0 7 9.71V9H17V9.71A2.5 2.5 0 0 0 15.5 12A2.5 2.5 0 0 0 17 14.29V15H16A2 2 0 0 0 14 17V18.21A2.5 2.5 0 0 0 12.5 20.5A2.5 2.5 0 0 0 15 23A2.5 2.5 0 0 0 17.5 20.5A2.5 2.5 0 0 0 16 18.21V17H20V18.21A2.5 2.5 0 0 0 18.5 20.5A2.5 2.5 0 0 0 21 23A2.5 2.5 0 0 0 23.5 20.5A2.5 2.5 0 0 0 22 18.21V17A2 2 0 0 0 20 15H19V14.29A2.5 2.5 0 0 0 20.5 12A2.5 2.5 0 0 0 19 9.71V9A2 2 0 0 0 17 7H13V5.79A2.5 2.5 0 0 0 14.5 3.5A2.5 2.5 0 0 0 12 1M12 2.5A1 1 0 0 1 13 3.5A1 1 0 0 1 12 4.5A1 1 0 0 1 11 3.5A1 1 0 0 1 12 2.5M6 11A1 1 0 0 1 7 12A1 1 0 0 1 6 13A1 1 0 0 1 5 12A1 1 0 0 1 6 11M18 11A1 1 0 0 1 19 12A1 1 0 0 1 18 13A1 1 0 0 1 17 12A1 1 0 0 1 18 11M3 19.5A1 1 0 0 1 4 20.5A1 1 0 0 1 3 21.5A1 1 0 0 1 2 20.5A1 1 0 0 1 3 19.5M9 19.5A1 1 0 0 1 10 20.5A1 1 0 0 1 9 21.5A1 1 0 0 1 8 20.5A1 1 0 0 1 9 19.5M15 19.5A1 1 0 0 1 16 20.5A1 1 0 0 1 15 21.5A1 1 0 0 1 14 20.5A1 1 0 0 1 15 19.5M21 19.5A1 1 0 0 1 22 20.5A1 1 0 0 1 21 21.5A1 1 0 0 1 20 20.5A1 1 0 0 1 21 19.5Z",k8="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",P8="M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z",R8="M3.47 5C3.25 5 3.04 5.08 2.87 5.21C2.43 5.55 2.35 6.18 2.69 6.61L2.69 6.62L7 12.14V18.05L10.64 21.71C11 22.1 11.66 22.1 12.05 21.71L12.05 21.71C12.44 21.32 12.44 20.69 12.06 20.3L9 17.22V11.45L4.27 5.39C4.08 5.14 3.78 5 3.47 5M21.62 3.22C21.43 3.08 21.22 3 21 3H7C6.78 3 6.57 3.08 6.38 3.22C5.95 3.56 5.87 4.19 6.21 4.62L11 10.75V15.87C10.96 16.16 11.06 16.47 11.29 16.7L15.3 20.71C15.69 21.1 16.32 21.1 16.71 20.71C16.94 20.5 17.04 20.18 17 19.88V10.75L21.79 4.62C22.13 4.19 22.05 3.56 21.62 3.22M15 10.05V17.58L13 15.58V10.06L9.04 5H18.96L15 10.05Z",I8="M8,11H11V21H13V11H16L12,7L8,11M4,3V5H20V3H4Z",L8="M4,5A2,2 0 0,0 2,7V17A2,2 0 0,0 4,19H20A2,2 0 0,0 22,17V7A2,2 0 0,0 20,5H4M4,7H20V17H4V7M5,8V10H7V8H5M8,8V10H10V8H8M11,8V10H13V8H11M14,8V10H16V8H14M17,8V10H19V8H17M5,11V13H7V11H5M8,11V13H10V11H8M11,11V13H13V11H11M14,11V13H16V11H14M17,11V13H19V11H17M8,14V16H16V14H8Z",O8="M3 15H5V19H19V15H21V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V15Z",V8="M12,17C10.89,17 10,16.1 10,15C10,13.89 10.89,13 12,13A2,2 0 0,1 14,15A2,2 0 0,1 12,17M18,20V10H6V20H18M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10C4,8.89 4.89,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",C3="M6 20V10H18V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V10C20 8.9 19.11 8 18 8H17V6C17 3.24 14.76 1 12 1S7 3.24 7 6V8H6C4.89 8 4 8.89 4 10V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.22 20.72 13.09 20H6M9 6C9 4.34 10.34 3 12 3S15 4.34 15 6V8H9V6M14 15C14 16.11 13.11 17 12 17C10.89 17 10 16.1 10 15C10 13.89 10.89 13 12 13C13.11 13 14 13.9 14 15M23 18V20H20V23H18V20H15V18H18V15H20V18H23Z",S3="M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z",x3="M10,17V14H3V10H10V7L15,12L10,17M10,2H19A2,2 0 0,1 21,4V20A2,2 0 0,1 19,22H10A2,2 0 0,1 8,20V18H10V20H19V4H10V6H8V4A2,2 0 0,1 10,2Z",A3="M16,17V14H9V10H16V7L21,12L16,17M14,2A2,2 0 0,1 16,4V6H14V4H5V20H14V18H16V20A2,2 0 0,1 14,22H5A2,2 0 0,1 3,20V4A2,2 0 0,1 5,2H14Z",F8="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",E3="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",M8="M14,7L9,12L14,17V7Z",B8="M10,17L15,12L10,7V17Z",gc="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",T3="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",Qb="M6.18,15.64A2.18,2.18 0 0,1 8.36,17.82C8.36,19 7.38,20 6.18,20C5,20 4,19 4,17.82A2.18,2.18 0 0,1 6.18,15.64M4,4.44A15.56,15.56 0 0,1 19.56,20H16.73A12.73,12.73 0 0,0 4,7.27V4.44M4,10.1A9.9,9.9 0 0,1 13.9,20H11.07A7.07,7.07 0 0,0 4,12.93V10.1Z",D8="M3 11H15V13H3M3 18V16H21V18M3 6H9V8H3Z",$8="M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z",k3="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12.75,13.5C15.5,13.5 16.24,11.47 16.43,10.4C17.34,10.11 18,9.26 18,8.25C18,7 17,6 15.75,6C14.5,6 13.5,7 13.5,8.25C13.5,9.19 14.07,10 14.89,10.33C14.67,11 14,12 12,12C10.62,12 9.66,12.35 9,12.84V8.87C9.87,8.56 10.5,7.73 10.5,6.75C10.5,5.5 9.5,4.5 8.25,4.5C7,4.5 6,5.5 6,6.75C6,7.73 6.63,8.56 7.5,8.87V15.13C6.63,15.44 6,16.27 6,17.25C6,18.5 7,19.5 8.25,19.5C9.5,19.5 10.5,18.5 10.5,17.25C10.5,16.32 9.94,15.5 9.13,15.18C9.41,14.5 10.23,13.5 12.75,13.5M8.25,16.5A0.75,0.75 0 0,1 9,17.25A0.75,0.75 0 0,1 8.25,18A0.75,0.75 0 0,1 7.5,17.25A0.75,0.75 0 0,1 8.25,16.5M8.25,6A0.75,0.75 0 0,1 9,6.75A0.75,0.75 0 0,1 8.25,7.5A0.75,0.75 0 0,1 7.5,6.75A0.75,0.75 0 0,1 8.25,6M15.75,7.5A0.75,0.75 0 0,1 16.5,8.25A0.75,0.75 0 0,1 15.75,9A0.75,0.75 0 0,1 15,8.25A0.75,0.75 0 0,1 15.75,7.5Z",H8="M21.41 11.58L12.41 2.58A2 2 0 0 0 11 2H4A2 2 0 0 0 2 4V11A2 2 0 0 0 2.59 12.42L11.59 21.42A2 2 0 0 0 13 22A2 2 0 0 0 14.41 21.41L21.41 14.41A2 2 0 0 0 22 13A2 2 0 0 0 21.41 11.58M13 20L4 11V4H11L20 13M6.5 5A1.5 1.5 0 1 1 5 6.5A1.5 1.5 0 0 1 6.5 5Z",P3="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z";const qs=Ve({border:[Boolean,Number,String]},"border");function Ys(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return{borderClasses:R(()=>{const r=At(e)?e.value:e.border,i=[];if(r===!0||r==="")i.push(`${t}--border`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`border-${o}`);return i})}}const ys=Ve({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function bs(e){return{elevationClasses:R(()=>{const n=At(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const fr=Ve({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function dr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return{roundedClasses:R(()=>{const r=At(e)?e.value:e.rounded,i=[];if(r===!0||r==="")i.push(`${t}--rounded`);else if(typeof r=="string"||r===0)for(const o of String(r).split(" "))i.push(`rounded-${o}`);return i})}}const $t=Ve({tag:{type:String,default:"div"}},"tag");function um(e){return tm(()=>{const t=[],n={};return e.value.background&&(k1(e.value.background)?n.backgroundColor=e.value.background:t.push(`bg-${e.value.background}`)),e.value.text&&(k1(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):t.push(`text-${e.value.text}`)),{colorClasses:t,colorStyles:n}})}function Tr(e,t){const n=R(()=>({text:At(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:i}=um(n);return{textColorClasses:r,textColorStyles:i}}function Gn(e,t){const n=R(()=>({background:At(e)?e.value:t?e[t]:null})),{colorClasses:r,colorStyles:i}=um(n);return{backgroundColorClasses:r,backgroundColorStyles:i}}const e_=Pe()({name:"VFooter",props:{app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...qs(),...tt(),...ys(),...zb(),...fr(),...$t({tag:"footer"}),...jt()},setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{backgroundColorClasses:i,backgroundColorStyles:o}=Gn(Se(e,"color")),{borderClasses:l}=Ys(e),{elevationClasses:u}=bs(e),{roundedClasses:f}=dr(e),d=J(32),{resizeRef:h}=ka(p=>{p.length&&(d.value=p[0].target.clientHeight)}),m=R(()=>e.height==="auto"?d.value:parseInt(e.height,10)),{layoutItemStyles:v}=Wb({id:e.name,order:R(()=>parseInt(e.order,10)),position:R(()=>"bottom"),layoutSize:m,elementSize:R(()=>e.height==="auto"?void 0:m.value),active:R(()=>e.app),absolute:Se(e,"absolute")});return $e(()=>y(e.tag,{ref:h,class:["v-footer",r.value,i.value,l.value,u.value,f.value,e.class],style:[o.value,e.app?v.value:void 0,e.style]},n)),{}}}),R3={name:"VersionFooter",data(){return{mdiOpenInNew:gc,mdiContentCopy:b3}},computed:{...Et(kt,{versions:e=>e.versions}),...Rr(xn,["isUserAdmin"]),outdated:function(){return this.isUserAdmin&&this.versions.latest>this.versions.installed},versionTitle:function(){return this.outdated?`v${this.versions.latest} is availble`:"up to date"}},created(){this.loadVersions()},methods:{...Gt(kt,["loadVersions"])}},I3={key:0};function L3(e,t,n,r,i,o){return ie(),je(e_,{id:"version-footer",title:o.versionTitle},{default:se(()=>[D("div",{id:"version",class:Cr({outdated:o.outdated})}," codex v"+be(e.versions.installed),3),o.outdated?(ie(),Fe("div",I3,"codex v"+be(e.versions.latest)+" is available",1)):Lt("",!0)]),_:1},8,["title"])}const t_=ot(R3,[["render",L3],["__scopeId","data-v-31a9c653"]]),n_=function(e,t){navigator.clipboard.writeText(e).then(()=>(t.show=!0,setTimeout(()=>{t.show=!1},5e3),!0)).catch(console.warn)};const O3=["x-small","small","default","large","x-large"],Ka=Ve({size:{type:[String,Number],default:"default"}},"size");function qa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return tm(()=>{let n,r;return Ru(O3,e.size)?n=`${t}--size-${e.size}`:e.size&&(r={width:ke(e.size),height:ke(e.size)}),{sizeClasses:n,sizeStyles:r}})}const V3=Ve({color:String,start:Boolean,end:Boolean,icon:St,...tt(),...Ka(),...$t({tag:"i"}),...jt()},"v-icon"),ht=Pe()({name:"VIcon",props:V3(),setup(e,t){let{attrs:n,slots:r}=t,i;r.default&&(i=R(()=>{var m,v;const h=(m=r.default)==null?void 0:m.call(r);if(h)return(v=h.filter(p=>p.type===zs&&p.children&&typeof p.children=="string")[0])==null?void 0:v.children}));const{themeClasses:o}=tn(e),{iconData:l}=v3(i||e),{sizeClasses:u}=qa(e),{textColorClasses:f,textColorStyles:d}=Tr(Se(e,"color"));return $e(()=>y(l.value.component,{tag:e.tag,icon:l.value.icon,class:["v-icon","notranslate",o.value,u.value,f.value,{"v-icon--clickable":!!n.onClick,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[u.value?void 0:{fontSize:ke(e.size),height:ke(e.size),width:ke(e.size)},d.value,e.style],role:n.onClick?"button":void 0,"aria-hidden":!n.onClick},{default:()=>{var h;return[(h=r.default)==null?void 0:h.call(r)]}})),{}}});function qn(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"center center",n=arguments.length>2?arguments[2]:void 0;return Pe()({name:e,props:{disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:{type:String,default:n},origin:{type:String,default:t}},setup(r,i){let{slots:o}=i;const l={onBeforeEnter(u){u.style.transformOrigin=r.origin},onLeave(u){if(r.leaveAbsolute){const{offsetTop:f,offsetLeft:d,offsetWidth:h,offsetHeight:m}=u;u._transitionInitialStyles={position:u.style.position,top:u.style.top,left:u.style.left,width:u.style.width,height:u.style.height},u.style.position="absolute",u.style.top=`${f}px`,u.style.left=`${d}px`,u.style.width=`${h}px`,u.style.height=`${m}px`}r.hideOnLeave&&u.style.setProperty("display","none","important")},onAfterLeave(u){if(r.leaveAbsolute&&(u!=null&&u._transitionInitialStyles)){const{position:f,top:d,left:h,width:m,height:v}=u._transitionInitialStyles;delete u._transitionInitialStyles,u.style.position=f||"",u.style.top=d||"",u.style.left=h||"",u.style.width=m||"",u.style.height=v||""}}};return()=>{const u=r.group?V0:Ar;return vs(u,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:l},o.default)}}})}function r_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Pe()({name:e,props:{mode:{type:String,default:n},disabled:Boolean},setup(r,i){let{slots:o}=i;return()=>vs(Ar,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:t},o.default)}})}function s_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=vn(`offset-${n}`);return{onBeforeEnter(l){l._parent=l.parentNode,l._initialStyle={transition:l.style.transition,overflow:l.style.overflow,[n]:l.style[n]}},onEnter(l){const u=l._initialStyle;l.style.setProperty("transition","none","important"),l.style.overflow="hidden";const f=`${l[r]}px`;l.style[n]="0",l.offsetHeight,l.style.transition=u.transition,e&&l._parent&&l._parent.classList.add(e),requestAnimationFrame(()=>{l.style[n]=f})},onAfterEnter:o,onEnterCancelled:o,onLeave(l){l._initialStyle={transition:"",overflow:l.style.overflow,[n]:l.style[n]},l.style.overflow="hidden",l.style[n]=`${l[r]}px`,l.offsetHeight,requestAnimationFrame(()=>l.style[n]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(l){e&&l._parent&&l._parent.classList.remove(e),o(l)}function o(l){const u=l._initialStyle[n];l.style.overflow=l._initialStyle.overflow,u!=null&&(l.style[n]=u),delete l._initialStyle}}const cm=Pe()({name:"VDialogTransition",props:{target:Object},setup(e,t){let{slots:n}=t;const r={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,o){var v;await new Promise(p=>requestAnimationFrame(p)),await new Promise(p=>requestAnimationFrame(p)),i.style.visibility="";const{x:l,y:u,sx:f,sy:d,speed:h}=q1(e.target,i),m=pi(i,[{transform:`translate(${l}px, ${u}px) scale(${f}, ${d})`,opacity:0},{}],{duration:225*h,easing:zV});(v=K1(i))==null||v.forEach(p=>{pi(p,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*h,easing:Pa})}),m.finished.then(()=>o())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,o){var v;await new Promise(p=>requestAnimationFrame(p));const{x:l,y:u,sx:f,sy:d,speed:h}=q1(e.target,i);pi(i,[{},{transform:`translate(${l}px, ${u}px) scale(${f}, ${d})`,opacity:0}],{duration:125*h,easing:WV}).finished.then(()=>o()),(v=K1(i))==null||v.forEach(p=>{pi(p,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*h,easing:Pa})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>e.target?y(Ar,Oe({name:"dialog-transition"},r,{css:!1}),n):y(Ar,{name:"dialog-transition"},n)}});function K1(e){var n;const t=(n=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:n.children;return t&&[...t]}function q1(e,t){const n=e.getBoundingClientRect(),r=rm(t),[i,o]=getComputedStyle(t).transformOrigin.split(" ").map(A=>parseFloat(A)),[l,u]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let f=n.left+n.width/2;l==="left"||u==="left"?f-=n.width/2:(l==="right"||u==="right")&&(f+=n.width/2);let d=n.top+n.height/2;l==="top"||u==="top"?d-=n.height/2:(l==="bottom"||u==="bottom")&&(d+=n.height/2);const h=n.width/r.width,m=n.height/r.height,v=Math.max(1,h,m),p=h/v||0,b=m/v||0,S=r.width*r.height/(window.innerWidth*window.innerHeight),T=S>.12?Math.min(1.5,(S-.12)*10+1):1;return{x:f-(i+r.left),y:d-(o+r.top),sx:p,sy:b,speed:T}}qn("fab-transition","center center","out-in");qn("dialog-bottom-transition");qn("dialog-top-transition");const Vu=qn("fade-transition"),N8=qn("scale-transition");qn("scroll-x-transition");qn("scroll-x-reverse-transition");qn("scroll-y-transition");qn("scroll-y-reverse-transition");const U8=qn("slide-x-transition"),z8=qn("slide-x-reverse-transition"),i_=qn("slide-y-transition"),W8=qn("slide-y-reverse-transition"),Ya=r_("expand-transition",s_()),o_=r_("expand-x-transition",s_("",!0)),F3={name:"OPDSUrl",props:{title:{type:String,required:!0},subtitle:{type:String,default:void 0},url:{type:String,required:!0}},data(){return{mdiRss:Qb,showTooltip:{show:!1}}},computed:{clipBoardIcon(){return this.showTooltip.show?Xb:Jb}},methods:{onClickURL(){n_(this.url,this.showTooltip)}}},M3={class:"copied"},B3={key:0,class:"subtitle"},D3={class:"opdsUrl"};function $3(e,t,n,r,i,o){return ie(),Fe("div",{class:"opdsVersion",title:"Copy OPDS URL to Clipboard",onClick:t[0]||(t[0]=(...l)=>o.onClickURL&&o.onClickURL(...l))},[D("h3",null,[Te(be(n.title)+" ",1),y(ht,{class:"clipBoardIcon",size:"small"},{default:se(()=>[Te(be(o.clipBoardIcon),1)]),_:1}),y(Vu,null,{default:se(()=>[qt(D("span",M3,"Copied",512),[[lr,i.showTooltip.show]])]),_:1})]),n.subtitle?(ie(),Fe("div",B3,be(n.subtitle),1)):Lt("",!0),D("div",D3,be(n.url),1)])}const H3=ot(F3,[["render",$3],["__scopeId","data-v-ae03fb46"]]);const N3=[null,"default","comfortable","compact"],zr=Ve({density:{type:String,default:"default",validator:e=>N3.includes(e)}},"density");function Wr(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return{densityClasses:R(()=>`${t}--density-${e.density}`)}}const U3=["elevated","flat","tonal","outlined","text","plain"];function pc(e,t){return y(Ke,null,[e&&y("span",{key:"overlay",class:`${t}__overlay`},null),y("span",{key:"underlay",class:`${t}__underlay`},null)])}const Zs=Ve({color:String,variant:{type:String,default:"elevated",validator:e=>U3.includes(e)}},"variant");function yc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();const n=R(()=>{const{variant:o}=mn(e);return`${t}--variant-${o}`}),{colorClasses:r,colorStyles:i}=um(R(()=>{const{variant:o,color:l}=mn(e);return{[["elevated","flat"].includes(o)?"background":"text"]:l}}));return{colorClasses:r,colorStyles:i,variantClasses:n}}const a_=Ve({divided:Boolean,...qs(),...tt(),...zr(),...ys(),...fr(),...$t(),...jt(),...Zs()},"v-btn-group"),Y1=Pe()({name:"VBtnGroup",props:a_(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{densityClasses:i}=Wr(e),{borderClasses:o}=Ys(e),{elevationClasses:l}=bs(e),{roundedClasses:u}=dr(e);Kn({VBtn:{height:"auto",color:Se(e,"color"),density:Se(e,"density"),flat:!0,variant:Se(e,"variant")}}),$e(()=>y(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,o.value,i.value,l.value,u.value,e.class],style:e.style},n))}}),bc=Ve({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),_c=Ve({value:null,disabled:Boolean,selectedClass:String},"group-item");function wc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=cn("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=cr();Pt(Symbol.for(`${t.description}:id`),i);const o=rt(t,null);if(!o){if(!n)return o;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const l=Se(e,"value"),u=R(()=>o.disabled.value||e.disabled);o.register({id:i,value:l,disabled:u},r),On(()=>{o.unregister(i)});const f=R(()=>o.isSelected(i)),d=R(()=>f.value&&[o.selectedClass.value,e.selectedClass]);return De(f,h=>{r.emit("group:selected",{value:h})}),{id:i,isSelected:f,toggle:()=>o.select(i,!f.value),select:h=>o.select(i,h),selectedClass:d,value:l,disabled:u,group:o}}function Za(e,t){let n=!1;const r=Qt([]),i=bt(e,"modelValue",[],v=>v==null?[]:l_(r,$r(v)),v=>{const p=W3(r,v);return e.multiple?p:p[0]}),o=cn("useGroup");function l(v,p){const b=v,S=Symbol.for(`${t.description}:id`),A=ya(S,o==null?void 0:o.vnode).indexOf(p);A>-1?r.splice(A,0,b):r.push(b)}function u(v){if(n)return;f();const p=r.findIndex(b=>b.id===v);r.splice(p,1)}function f(){const v=r.find(p=>!p.disabled);v&&e.mandatory==="force"&&!i.value.length&&(i.value=[v.id])}ar(()=>{f()}),On(()=>{n=!0});function d(v,p){const b=r.find(S=>S.id===v);if(!(p&&(b!=null&&b.disabled)))if(e.multiple){const S=i.value.slice(),T=S.findIndex(w=>w===v),A=~T;if(p=p??!A,A&&e.mandatory&&S.length<=1||!A&&e.max!=null&&S.length+1>e.max)return;T<0&&p?S.push(v):T>=0&&!p&&S.splice(T,1),i.value=S}else{const S=i.value.includes(v);if(e.mandatory&&S)return;i.value=p??!S?[v]:[]}}function h(v){if(e.multiple&&Ci('This method is not supported when using "multiple" prop'),i.value.length){const p=i.value[0],b=r.findIndex(A=>A.id===p);let S=(b+v)%r.length,T=r[S];for(;T.disabled&&S!==b;)S=(S+v)%r.length,T=r[S];if(T.disabled)return;i.value=[r[S].id]}else{const p=r.find(b=>!b.disabled);p&&(i.value=[p.id])}}const m={register:l,unregister:u,selected:i,select:d,disabled:Se(e,"disabled"),prev:()=>h(r.length-1),next:()=>h(1),isSelected:v=>i.value.includes(v),selectedClass:R(()=>e.selectedClass),items:R(()=>r),getItemIndex:v=>z3(r,v)};return Pt(t,m),m}function z3(e,t){const n=l_(e,[t]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function l_(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];i.value!=null?t.find(o=>Oi(o,i.value))!=null&&n.push(i.id):t.includes(r)&&n.push(i.id)}return n}function W3(e,t){const n=[];for(let r=0;r<e.length;r++){const i=e[r];t.includes(i.id)&&n.push(i.value!=null?i.value:r)}return n}const u_=Symbol.for("vuetify:v-btn-toggle");Pe()({name:"VBtnToggle",props:{...a_(),...bc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,next:i,prev:o,select:l,selected:u}=Za(e,u_);return $e(()=>{const[f]=Y1.filterProps(e);return y(Y1,Oe({class:["v-btn-toggle",e.class]},f,{style:e.style}),{default:()=>{var d;return[(d=n.default)==null?void 0:d.call(n,{isSelected:r,next:i,prev:o,select:l,selected:u})]}})}),{next:i,prev:o,select:l}}});const un=Pe(!1)({name:"VDefaultsProvider",props:{defaults:Object,disabled:Boolean,reset:[Number,String],root:Boolean,scoped:Boolean},setup(e,t){let{slots:n}=t;const{defaults:r,disabled:i,reset:o,root:l,scoped:u}=Ba(e);return Kn(r,{reset:o,root:l,scoped:u,disabled:i}),()=>{var f;return(f=n.default)==null?void 0:f.call(n)}}});function c_(e,t){const n=J(),r=J(!1);if(em){const i=new IntersectionObserver(o=>{e==null||e(o,i),r.value=!!o.find(l=>l.isIntersecting)},t);On(()=>{i.disconnect()}),De(n,(o,l)=>{l&&(i.unobserve(l),r.value=!1),o&&i.observe(o)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}const f_=Pe()({name:"VProgressCircular",props:{bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...tt(),...Ka(),...$t({tag:"div"}),...jt()},setup(e,t){let{slots:n}=t;const r=20,i=2*Math.PI*r,o=J(),{themeClasses:l}=tn(e),{sizeClasses:u,sizeStyles:f}=qa(e),{textColorClasses:d,textColorStyles:h}=Tr(Se(e,"color")),{textColorClasses:m,textColorStyles:v}=Tr(Se(e,"bgColor")),{intersectionRef:p,isIntersecting:b}=c_(),{resizeRef:S,contentRect:T}=ka(),A=R(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),w=R(()=>Number(e.width)),C=R(()=>f.value?Number(e.size):T.value?T.value.width:Math.max(w.value,32)),V=R(()=>r/(1-w.value/C.value)*2),L=R(()=>w.value/C.value*V.value),F=R(()=>ke((100-A.value)/100*i));return Nr(()=>{p.value=o.value,S.value=o.value}),$e(()=>y(e.tag,{ref:o,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":b.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},l.value,u.value,d.value,e.class],style:[f.value,h.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:A.value},{default:()=>[y("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${V.value} ${V.value}`},[y("circle",{class:["v-progress-circular__underlay",m.value],style:v.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":L.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),y("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":L.value,"stroke-dasharray":i,"stroke-dashoffset":F.value},null)]),n.default&&y("div",{class:"v-progress-circular__content"},[n.default({value:A.value})])]})),{}}});const Jd=Symbol("rippleStop"),G3=80;function Z1(e,t){e.style.transform=t,e.style.webkitTransform=t}function Qd(e){return e.constructor.name==="TouchEvent"}function d_(e){return e.constructor.name==="KeyboardEvent"}const j3=function(e,t){var m;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,i=0;if(!d_(e)){const v=t.getBoundingClientRect(),p=Qd(e)?e.touches[e.touches.length-1]:e;r=p.clientX-v.left,i=p.clientY-v.top}let o=0,l=.3;(m=t._ripple)!=null&&m.circle?(l=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(i-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const u=`${(t.clientWidth-o*2)/2}px`,f=`${(t.clientHeight-o*2)/2}px`,d=n.center?u:`${r-o}px`,h=n.center?f:`${i-o}px`;return{radius:o,scale:l,x:d,y:h,centerX:u,centerY:f}},Fu={show(e,t){var p;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((p=t==null?void 0:t._ripple)!=null&&p.enabled))return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:o,scale:l,x:u,y:f,centerX:d,centerY:h}=j3(e,t,n),m=`${o*2}px`;i.className="v-ripple__animation",i.style.width=m,i.style.height=m,t.appendChild(r);const v=window.getComputedStyle(t);v&&v.position==="static"&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),Z1(i,`translate(${u}, ${f}) scale3d(${l},${l},${l})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),Z1(i,`translate(${d}, ${h}) scale3d(1,1,1)`)},0)},hide(e){var o;if(!((o=e==null?void 0:e._ripple)!=null&&o.enabled))return;const t=e.getElementsByClassName("v-ripple__animation");if(t.length===0)return;const n=t[t.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var u;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((u=n.parentNode)==null?void 0:u.parentNode)===e&&e.removeChild(n.parentNode)},300)},i)}};function h_(e){return typeof e>"u"||!!e}function Ra(e){const t={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[Jd])){if(e[Jd]=!0,Qd(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||d_(e),n._ripple.class&&(t.class=n._ripple.class),Qd(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Fu.show(e,n,t)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},G3)}else Fu.show(e,n,t)}}function X1(e){e[Jd]=!0}function Un(e){const t=e.currentTarget;if(t!=null&&t._ripple){if(window.clearTimeout(t._ripple.showTimer),e.type==="touchend"&&t._ripple.showTimerCommit){t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,t._ripple.showTimer=window.setTimeout(()=>{Un(e)});return}window.setTimeout(()=>{t._ripple&&(t._ripple.touched=!1)}),Fu.hide(t)}}function m_(e){const t=e.currentTarget;t!=null&&t._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let Ia=!1;function v_(e){!Ia&&(e.keyCode===C1.enter||e.keyCode===C1.space)&&(Ia=!0,Ra(e))}function g_(e){Ia=!1,Un(e)}function p_(e){Ia&&(Ia=!1,Un(e))}function y_(e,t,n){const{value:r,modifiers:i}=t,o=h_(r);if(o||Fu.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=i.center,e._ripple.circle=i.circle,qd(r)&&r.class&&(e._ripple.class=r.class),o&&!n){if(i.stop){e.addEventListener("touchstart",X1,{passive:!0}),e.addEventListener("mousedown",X1);return}e.addEventListener("touchstart",Ra,{passive:!0}),e.addEventListener("touchend",Un,{passive:!0}),e.addEventListener("touchmove",m_,{passive:!0}),e.addEventListener("touchcancel",Un),e.addEventListener("mousedown",Ra),e.addEventListener("mouseup",Un),e.addEventListener("mouseleave",Un),e.addEventListener("keydown",v_),e.addEventListener("keyup",g_),e.addEventListener("blur",p_),e.addEventListener("dragstart",Un,{passive:!0})}else!o&&n&&b_(e)}function b_(e){e.removeEventListener("mousedown",Ra),e.removeEventListener("touchstart",Ra),e.removeEventListener("touchend",Un),e.removeEventListener("touchmove",m_),e.removeEventListener("touchcancel",Un),e.removeEventListener("mouseup",Un),e.removeEventListener("mouseleave",Un),e.removeEventListener("keydown",v_),e.removeEventListener("keyup",g_),e.removeEventListener("dragstart",Un),e.removeEventListener("blur",p_)}function K3(e,t){y_(e,t,!1)}function q3(e){delete e._ripple,b_(e)}function Y3(e,t){if(t.value===t.oldValue)return;const n=h_(t.oldValue);y_(e,t,n)}const Xa={mounted:K3,unmounted:q3,updated:Y3},Ja=Ve({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Qa(e){return{dimensionStyles:R(()=>({height:ke(e.height),maxHeight:ke(e.maxHeight),maxWidth:ke(e.maxWidth),minHeight:ke(e.minHeight),minWidth:ke(e.minWidth),width:ke(e.width)}))}}const J1={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},__=Ve({location:String},"location");function w_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=Vo();return{locationStyles:R(()=>{if(!e.location)return{};const{side:o,align:l}=Yd(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function u(d){return n?n(d):0}const f={};return o!=="center"&&(t?f[J1[o]]=`calc(100% - ${u(o)}px)`:f[o]=0),l!=="center"?t?f[J1[l]]=`calc(100% - ${u(l)}px)`:f[l]=0:(o==="center"?f.top=f.left="50%":f[{top:"left",bottom:"left",left:"top",right:"top"}[o]]="50%",f.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[o]),f})}}const Z3=Pe()({name:"VProgressLinear",props:{absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...tt(),...__({location:"top"}),...fr(),...$t(),...jt()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"modelValue"),{isRtl:i}=Vo(),{themeClasses:o}=tn(e),{locationStyles:l}=w_(e),{textColorClasses:u,textColorStyles:f}=Tr(e,"color"),{backgroundColorClasses:d,backgroundColorStyles:h}=Gn(R(()=>e.bgColor||e.color)),{backgroundColorClasses:m,backgroundColorStyles:v}=Gn(e,"color"),{roundedClasses:p}=dr(e),{intersectionRef:b,isIntersecting:S}=c_(),T=R(()=>parseInt(e.max,10)),A=R(()=>parseInt(e.height,10)),w=R(()=>parseFloat(e.bufferValue)/T.value*100),C=R(()=>parseFloat(r.value)/T.value*100),V=R(()=>i.value!==e.reverse),L=R(()=>e.indeterminate?"fade-transition":"slide-x-transition"),F=R(()=>e.bgOpacity==null?e.bgOpacity:parseFloat(e.bgOpacity));function O(k){if(!b.value)return;const{left:z,right:W,width:H}=b.value.getBoundingClientRect(),U=V.value?H-k.clientX+(W-H):k.clientX-z;r.value=Math.round(U/H*T.value)}return $e(()=>y(e.tag,{ref:b,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&S.value,"v-progress-linear--reverse":V.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},p.value,o.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?ke(A.value):0,"--v-progress-linear-height":ke(A.value),...l.value},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:C.value,onClick:e.clickable&&O},{default:()=>[e.stream&&y("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...f.value,[V.value?"left":"right"]:ke(-A.value),borderTop:`${ke(A.value/2)} dotted`,opacity:F.value,top:`calc(50% - ${ke(A.value/4)})`,width:ke(100-w.value,"%"),"--v-progress-linear-stream-to":ke(A.value*(V.value?1:-1))}},null),y("div",{class:["v-progress-linear__background",d.value],style:[h.value,{opacity:F.value,width:ke(e.stream?w.value:100,"%")}]},null),y(Ar,{name:L.value},{default:()=>[e.indeterminate?y("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(k=>y("div",{key:k,class:["v-progress-linear__indeterminate",k,m.value],style:v.value},null))]):y("div",{class:["v-progress-linear__determinate",m.value],style:[v.value,{width:ke(C.value,"%")}]},null)]}),n.default&&y("div",{class:"v-progress-linear__content"},[n.default({value:C.value,buffer:w.value})])]})),{}}}),fm=Ve({loading:[Boolean,String]},"loader");function Cc(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return{loaderClasses:R(()=>({[`${t}--loading`]:e.loading}))}}function dm(e,t){var r;let{slots:n}=t;return y("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||y(Z3,{active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const X3=["static","relative","fixed","absolute","sticky"],J3=Ve({position:{type:String,validator:e=>X3.includes(e)}},"position");function Q3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();return{positionClasses:R(()=>e.position?`${t}--${e.position}`:void 0)}}function C_(){var e,t;return(t=(e=cn("useRouter"))==null?void 0:e.proxy)==null?void 0:t.$router}function hm(e,t){const n=Li("RouterLink"),r=R(()=>!!(e.href||e.to)),i=R(()=>(r==null?void 0:r.value)||x1(t,"click")||x1(e,"click"));if(typeof n=="string")return{isLink:r,isClickable:i,href:Se(e,"href")};const o=e.to?n.useLink(e):void 0;return{isLink:r,isClickable:i,route:o==null?void 0:o.route,navigate:o==null?void 0:o.navigate,isActive:o&&R(()=>{var l,u;return e.exact?(l=o.isExactActive)==null?void 0:l.value:(u=o.isActive)==null?void 0:u.value}),href:R(()=>e.to?o==null?void 0:o.route.value.href:e.href)}}const mm=Ve({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let dd=!1;function e4(e,t){let n=!1,r,i;Zt&&(Yt(()=>{window.addEventListener("popstate",o),r=e==null?void 0:e.beforeEach((l,u,f)=>{dd?n?t(f):f():setTimeout(()=>n?t(f):f()),dd=!0}),i=e==null?void 0:e.afterEach(()=>{dd=!1})}),Sn(()=>{window.removeEventListener("popstate",o),r==null||r(),i==null||i()}));function o(l){var u;(u=l.state)!=null&&u.replaced||(n=!0,setTimeout(()=>n=!1))}}function t4(e,t){De(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&t&&Yt(()=>{t(!0)})},{immediate:!0})}const S_=Ve({active:{type:Boolean,default:void 0},symbol:{type:null,default:u_},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:St,appendIcon:St,block:Boolean,stacked:Boolean,ripple:{type:Boolean,default:!0},text:String,...qs(),...tt(),...zr(),...Ja(),...ys(),..._c(),...fm(),...__(),...J3(),...fr(),...mm(),...Ka(),...$t({tag:"button"}),...jt(),...Zs({variant:"elevated"})},"VBtn"),Kt=Pe()({name:"VBtn",directives:{Ripple:Xa},props:S_(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{themeClasses:i}=tn(e),{borderClasses:o}=Ys(e),{colorClasses:l,colorStyles:u,variantClasses:f}=yc(e),{densityClasses:d}=Wr(e),{dimensionStyles:h}=Qa(e),{elevationClasses:m}=bs(e),{loaderClasses:v}=Cc(e),{locationStyles:p}=w_(e),{positionClasses:b}=Q3(e),{roundedClasses:S}=dr(e),{sizeClasses:T,sizeStyles:A}=qa(e),w=wc(e,e.symbol,!1),C=hm(e,n),V=R(()=>{var k;return e.active!==void 0?e.active:C.isLink.value?(k=C.isActive)==null?void 0:k.value:w==null?void 0:w.isSelected.value}),L=R(()=>(w==null?void 0:w.disabled.value)||e.disabled),F=R(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),O=R(()=>{if(e.value!==void 0)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});return t4(C,w==null?void 0:w.select),$e(()=>{var q,G;const k=C.isLink.value?"a":e.tag,z=!!(e.prependIcon||r.prepend),W=!!(e.appendIcon||r.append),H=!!(e.icon&&e.icon!==!0),U=(w==null?void 0:w.isSelected.value)&&(!C.isLink.value||((q=C.isActive)==null?void 0:q.value))||!w||((G=C.isActive)==null?void 0:G.value);return qt(y(k,{type:k==="a"?void 0:"button",class:["v-btn",w==null?void 0:w.selectedClass.value,{"v-btn--active":V.value,"v-btn--block":e.block,"v-btn--disabled":L.value,"v-btn--elevated":F.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--stacked":e.stacked},i.value,o.value,U?l.value:void 0,d.value,m.value,v.value,b.value,S.value,T.value,f.value,e.class],style:[U?u.value:void 0,h.value,p.value,A.value,e.style],disabled:L.value||void 0,href:C.href.value,onClick:me=>{var ce;L.value||((ce=C.navigate)==null||ce.call(C,me),w==null||w.toggle())},value:O.value},{default:()=>{var me;return[pc(!0,"v-btn"),!e.icon&&z&&y("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?y(un,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):y(ht,{key:"prepend-icon",icon:e.prependIcon},null)]),y("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&H?y(ht,{key:"content-icon",icon:e.icon},null):y(un,{key:"content-defaults",disabled:!H,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var ce;return[((ce=r.default)==null?void 0:ce.call(r))??e.text]}})]),!e.icon&&W&&y("span",{key:"append",class:"v-btn__append"},[r.append?y(un,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):y(ht,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&y("span",{key:"loader",class:"v-btn__loader"},[((me=r.loader)==null?void 0:me.call(r))??y(f_,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Sr("ripple"),!L.value&&e.ripple,null]])}),{}}});const n4=Ve({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function r4(e,t){const n={},r=i=>()=>{if(!Zt)return Promise.resolve(!0);const o=i==="openDelay";return n.closeDelay&&window.clearTimeout(n.closeDelay),delete n.closeDelay,n.openDelay&&window.clearTimeout(n.openDelay),delete n.openDelay,new Promise(l=>{const u=parseInt(e[i]??0,10);n[i]=window.setTimeout(()=>{t==null||t(o),l(o)},u)})};return{runCloseDelay:r("closeDelay"),runOpenDelay:r("openDelay")}}const eh=Symbol.for("vuetify:v-menu"),s4=Ve({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...n4()},"v-overlay-activator");function i4(e,t){let{isActive:n,isTop:r}=t;const i=J();let o=!1,l=!1,u=!0;const f=R(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),d=R(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!f.value),{runOpenDelay:h,runCloseDelay:m}=r4(e,C=>{C===(e.openOnHover&&o||f.value&&l)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==C&&(u=!0),n.value=C)}),v={click:C=>{C.stopPropagation(),i.value=C.currentTarget||C.target,n.value=!n.value},mouseenter:C=>{var V;(V=C.sourceCapabilities)!=null&&V.firesTouchEvents||(o=!0,i.value=C.currentTarget||C.target,h())},mouseleave:C=>{o=!1,m()},focus:C=>{jd&&!C.target.matches(":focus-visible")||(l=!0,C.stopPropagation(),i.value=C.currentTarget||C.target,h())},blur:C=>{l=!1,C.stopPropagation(),m()}},p=R(()=>{const C={};return d.value&&(C.click=v.click),e.openOnHover&&(C.mouseenter=v.mouseenter,C.mouseleave=v.mouseleave),f.value&&(C.focus=v.focus,C.blur=v.blur),C}),b=R(()=>{const C={};if(e.openOnHover&&(C.mouseenter=()=>{o=!0,h()},C.mouseleave=()=>{o=!1,m()}),e.closeOnContentClick){const V=rt(eh,null);C.click=()=>{n.value=!1,V==null||V.closeParents()}}return C}),S=R(()=>{const C={};return e.openOnHover&&(C.mouseenter=()=>{u&&(o=!0,u=!1,h())},C.mouseleave=()=>{o=!1,m()}),C});De(r,C=>{C&&(e.openOnHover&&!o&&(!f.value||!l)||f.value&&!l&&(!e.openOnHover||!o))&&(n.value=!1)});const T=J();Nr(()=>{T.value&&Yt(()=>{const C=T.value;i.value=yV(C)?C.$el:C})});const A=cn("useActivator");let w;return De(()=>!!e.activator,C=>{C&&Zt?(w=To(),w.run(()=>{o4(e,A,{activatorEl:i,activatorEvents:p})})):w&&w.stop()},{flush:"post",immediate:!0}),Sn(()=>{w==null||w.stop()}),{activatorEl:i,activatorRef:T,activatorEvents:p,contentEvents:b,scrimEvents:S}}function o4(e,t,n){let{activatorEl:r,activatorEvents:i}=n;De(()=>e.activator,(f,d)=>{if(d&&f!==d){const h=u(d);h&&l(h)}f&&Yt(()=>o())},{immediate:!0}),De(()=>e.activatorProps,()=>{o()}),Sn(()=>{l()});function o(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u(),d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&(Object.entries(i.value).forEach(h=>{let[m,v]=h;f.addEventListener(m,v)}),Object.keys(d).forEach(h=>{d[h]==null?f.removeAttribute(h):f.setAttribute(h,d[h])}))}function l(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:u(),d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;f&&(Object.entries(i.value).forEach(h=>{let[m,v]=h;f.removeEventListener(m,v)}),Object.keys(d).forEach(h=>{f.removeAttribute(h)}))}function u(){var h,m;let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator,d;if(f)if(f==="parent"){let v=(m=(h=t==null?void 0:t.proxy)==null?void 0:h.$el)==null?void 0:m.parentNode;for(;v.hasAttribute("data-no-activator");)v=v.parentNode;d=v}else typeof f=="string"?d=document.querySelector(f):"$el"in f?d=f.$el:d=f;return r.value=(d==null?void 0:d.nodeType)===Node.ELEMENT_NODE?d:null,r.value}}const Sc=Ve({eager:Boolean},"lazy");function vm(e,t){const n=J(!1),r=R(()=>n.value||e.eager||t.value);De(t,()=>n.value=!0);function i(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:i}}function hd(e,t){return{x:e.x+t.x,y:e.y+t.y}}function a4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Q1(e,t){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,i=r==="left"?0:r==="center"?t.width/2:r==="right"?t.width:r,o=n==="top"?0:n==="bottom"?t.height:n;return hd({x:i,y:o},t)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,i=n==="left"?0:n==="right"?t.width:n,o=r==="top"?0:r==="center"?t.height/2:r==="bottom"?t.height:r;return hd({x:i,y:o},t)}return hd({x:t.width/2,y:t.height/2},t)}const x_={static:c4,connected:d4},l4=Ve({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in x_},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"v-overlay-location-strategies");function u4(e,t){const n=J({}),r=J();Zt&&(Ei(()=>!!(t.isActive.value&&e.locationStrategy),o=>{var l,u;De(()=>e.locationStrategy,o),Sn(()=>{r.value=void 0}),typeof e.locationStrategy=="function"?r.value=(l=e.locationStrategy(t,e,n))==null?void 0:l.updateLocation:r.value=(u=x_[e.locationStrategy](t,e,n))==null?void 0:u.updateLocation}),window.addEventListener("resize",i,{passive:!0}),Sn(()=>{window.removeEventListener("resize",i),r.value=void 0}));function i(o){var l;(l=r.value)==null||l.call(r,o)}return{contentStyles:n,updateLocation:r}}function c4(){}function f4(e,t){const n=rm(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function d4(e,t,n){KV(e.activatorEl.value)&&Object.assign(n.value,{position:"fixed"});const{preferredAnchor:i,preferredOrigin:o}=tm(()=>{const b=Yd(t.location,e.isRtl.value),S=t.origin==="overlap"?b:t.origin==="auto"?ld(b):Yd(t.origin,e.isRtl.value);return b.side===S.side&&b.align===ud(S).align?{preferredAnchor:A1(b),preferredOrigin:A1(S)}:{preferredAnchor:b,preferredOrigin:S}}),[l,u,f,d]=["minWidth","minHeight","maxWidth","maxHeight"].map(b=>R(()=>{const S=parseFloat(t[b]);return isNaN(S)?1/0:S})),h=R(()=>{if(Array.isArray(t.offset))return t.offset;if(typeof t.offset=="string"){const b=t.offset.split(" ").map(parseFloat);return b.length<2&&b.push(0),b}return typeof t.offset=="number"?[t.offset,0]:[0,0]});let m=!1;const v=new ResizeObserver(()=>{m&&p()});De([e.activatorEl,e.contentEl],(b,S)=>{let[T,A]=b,[w,C]=S;w&&v.unobserve(w),T&&v.observe(T),C&&v.unobserve(C),A&&v.observe(A)},{immediate:!0}),Sn(()=>{v.disconnect()});function p(){if(m=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>m=!0)}),!e.activatorEl.value||!e.contentEl.value)return;const b=e.activatorEl.value.getBoundingClientRect(),S=f4(e.contentEl.value,e.isRtl.value),T=Lu(e.contentEl.value),A=12;T.length||(T.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(S.x+=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),S.y+=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const w=T.reduce((H,U)=>{const q=U.getBoundingClientRect(),G=new vo({x:U===document.documentElement?0:q.x,y:U===document.documentElement?0:q.y,width:U.clientWidth,height:U.clientHeight});return H?new vo({x:Math.max(H.left,G.left),y:Math.max(H.top,G.top),width:Math.min(H.right,G.right)-Math.max(H.left,G.left),height:Math.min(H.bottom,G.bottom)-Math.max(H.top,G.top)}):G},void 0);w.x+=A,w.y+=A,w.width-=A*2,w.height-=A*2;let C={anchor:i.value,origin:o.value};function V(H){const U=new vo(S),q=Q1(H.anchor,b),G=Q1(H.origin,U);let{x:me,y:ce}=a4(q,G);switch(H.anchor.side){case"top":ce-=h.value[0];break;case"bottom":ce+=h.value[0];break;case"left":me-=h.value[0];break;case"right":me+=h.value[0];break}switch(H.anchor.align){case"top":ce-=h.value[1];break;case"bottom":ce+=h.value[1];break;case"left":me-=h.value[1];break;case"right":me+=h.value[1];break}return U.x+=me,U.y+=ce,U.width=Math.min(U.width,f.value),U.height=Math.min(U.height,d.value),{overflows:T1(U,w),x:me,y:ce}}let L=0,F=0;const O={x:0,y:0},k={x:!1,y:!1};let z=-1;for(;;){if(z++>10){Xd("Infinite loop detected in connectedLocationStrategy");break}const{x:H,y:U,overflows:q}=V(C);L+=H,F+=U,S.x+=H,S.y+=U;{const G=E1(C.anchor),me=q.x.before||q.x.after,ce=q.y.before||q.y.after;let he=!1;if(["x","y"].forEach(fe=>{if(fe==="x"&&me&&!k.x||fe==="y"&&ce&&!k.y){const _e={anchor:{...C.anchor},origin:{...C.origin}},ve=fe==="x"?G==="y"?ud:ld:G==="y"?ld:ud;_e.anchor=ve(_e.anchor),_e.origin=ve(_e.origin);const{overflows:pe}=V(_e);(pe[fe].before<=q[fe].before&&pe[fe].after<=q[fe].after||pe[fe].before+pe[fe].after<(q[fe].before+q[fe].after)/2)&&(C=_e,he=k[fe]=!0)}}),he)continue}q.x.before&&(L+=q.x.before,S.x+=q.x.before),q.x.after&&(L-=q.x.after,S.x-=q.x.after),q.y.before&&(F+=q.y.before,S.y+=q.y.before),q.y.after&&(F-=q.y.after,S.y-=q.y.after);{const G=T1(S,w);O.x=w.width-G.x.before-G.x.after,O.y=w.height-G.y.before-G.y.after,L+=G.x.before,S.x+=G.x.before,F+=G.y.before,S.y+=G.y.before}break}const W=E1(C.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${C.anchor.side} ${C.anchor.align}`,transformOrigin:`${C.origin.side} ${C.origin.align}`,top:ke(md(F)),left:e.isRtl.value?void 0:ke(md(L)),right:e.isRtl.value?ke(md(-L)):void 0,minWidth:ke(W==="y"?Math.min(l.value,b.width):l.value),maxWidth:ke(ey(Pu(O.x,l.value===1/0?0:l.value,f.value))),maxHeight:ke(ey(Pu(O.y,u.value===1/0?0:u.value,d.value)))}),{available:O,contentBox:S}}return De(()=>[i.value,o.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight],()=>p()),Yt(()=>{const b=p();if(!b)return;const{available:S,contentBox:T}=b;T.height>S.y&&requestAnimationFrame(()=>{p(),requestAnimationFrame(()=>{p()})})}),{updateLocation:p}}function md(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function ey(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let th=!0;const Mu=[];function h4(e){!th||Mu.length?(Mu.push(e),nh()):(th=!1,e(),nh())}let ty=-1;function nh(){cancelAnimationFrame(ty),ty=requestAnimationFrame(()=>{const e=Mu.shift();e&&e(),Mu.length?nh():th=!0})}const mu={none:null,close:g4,block:p4,reposition:y4},m4=Ve({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in mu}},"v-overlay-scroll-strategies");function v4(e,t){if(!Zt)return;let n;Nr(async()=>{n==null||n.stop(),t.isActive.value&&e.scrollStrategy&&(n=To(),await Yt(),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(t,e,n):(r=mu[e.scrollStrategy])==null||r.call(mu,t,e,n)}))}),Sn(()=>{n==null||n.stop()})}function g4(e){function t(n){e.isActive.value=!1}A_(e.activatorEl.value??e.contentEl.value,t)}function p4(e,t){var l;const n=(l=e.root.value)==null?void 0:l.offsetParent,r=[...new Set([...Lu(e.activatorEl.value,t.contained?n:void 0),...Lu(e.contentEl.value,t.contained?n:void 0)])].filter(u=>!u.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,o=(u=>am(u)&&u)(n||document.documentElement);o&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((u,f)=>{u.style.setProperty("--v-body-scroll-x",ke(-u.scrollLeft)),u.style.setProperty("--v-body-scroll-y",ke(-u.scrollTop)),u.style.setProperty("--v-scrollbar-offset",ke(i)),u.classList.add("v-overlay-scroll-blocked")}),Sn(()=>{r.forEach((u,f)=>{const d=parseFloat(u.style.getPropertyValue("--v-body-scroll-x")),h=parseFloat(u.style.getPropertyValue("--v-body-scroll-y"));u.style.removeProperty("--v-body-scroll-x"),u.style.removeProperty("--v-body-scroll-y"),u.style.removeProperty("--v-scrollbar-offset"),u.classList.remove("v-overlay-scroll-blocked"),u.scrollLeft=-d,u.scrollTop=-h}),o&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function y4(e,t,n){let r=!1,i=-1,o=-1;function l(u){h4(()=>{var h,m;const f=performance.now();(m=(h=e.updateLocation).value)==null||m.call(h,u),r=(performance.now()-f)/(1e3/60)>2})}o=(typeof requestIdleCallback>"u"?u=>u():requestIdleCallback)(()=>{n.run(()=>{A_(e.activatorEl.value??e.contentEl.value,u=>{r?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{l(u)})})):l(u)})})}),Sn(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(o),cancelAnimationFrame(i)})}function A_(e,t){const n=[document,...Lu(e)];n.forEach(r=>{r.addEventListener("scroll",t,{passive:!0})}),Sn(()=>{n.forEach(r=>{r.removeEventListener("scroll",t)})})}const Fo=Ve({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),as=(e,t)=>{let{slots:n}=t;const{transition:r,...i}=e,{component:o=Ar,...l}=typeof r=="object"?r:{};return vs(o,Oe(typeof r=="string"?{name:r}:l,i),n)};function b4(){if(!Zt)return J(!1);const{ssr:e}=lm();if(e){const t=J(!1);return ar(()=>{t.value=!0}),t}else return J(!0)}function gm(){const t=cn("useScopeId").vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}const ny=Symbol.for("vuetify:stack"),oa=Qt([]);function _4(e,t,n){const r=cn("useStack"),i=!n,o=rt(ny,void 0),l=Qt({activeChildren:new Set});Pt(ny,l);const u=J(+t.value);Ei(e,()=>{var m;const h=(m=oa.at(-1))==null?void 0:m[1];u.value=h?h+10:+t.value,i&&oa.push([r.uid,u.value]),o==null||o.activeChildren.add(r.uid),Sn(()=>{if(i){const v=Ze(oa).findIndex(p=>p[0]===r.uid);oa.splice(v,1)}o==null||o.activeChildren.delete(r.uid)})});const f=J(!0);i&&Nr(()=>{var m;const h=((m=oa.at(-1))==null?void 0:m[0])===r.uid;setTimeout(()=>f.value=h)});const d=R(()=>!l.activeChildren.size);return{globalTop:Ro(f),localTop:d,stackStyles:R(()=>({zIndex:u.value}))}}function w4(e){return{teleportTarget:R(()=>{const n=e.value;if(n===!0||!Zt)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null)return;let i=r.querySelector(":scope > .v-overlay-container");return i||(i=document.createElement("div"),i.className="v-overlay-container",r.appendChild(i)),i})}}function C4(){return!0}function E_(e,t,n){if(!e||T_(e,n)===!1)return!1;const r=Hb(t);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const i=(typeof n.value=="object"&&n.value.include||(()=>[]))();return i.push(t),!i.some(o=>o==null?void 0:o.contains(e.target))}function T_(e,t){return(typeof t.value=="object"&&t.value.closeConditional||C4)(e)}function S4(e,t,n){const r=typeof n.value=="function"?n.value:n.value.handler;t._clickOutside.lastMousedownWasOutside&&E_(e,t,n)&&setTimeout(()=>{T_(e,n)&&r&&r(e)},0)}function ry(e,t){const n=Hb(e);t(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&t(n)}const x4={mounted(e,t){const n=i=>S4(i,e,t),r=i=>{e._clickOutside.lastMousedownWasOutside=E_(i,e,t)};ry(e,i=>{i.addEventListener("click",n,!0),i.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!0}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},unmounted(e,t){e._clickOutside&&(ry(e,n=>{var o;if(!n||!((o=e._clickOutside)!=null&&o[t.instance.$.uid]))return;const{onClick:r,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",i,!0)}),delete e._clickOutside[t.instance.$.uid])}};function A4(e){const{modelValue:t,color:n,...r}=e;return y(Ar,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&y("div",Oe({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const pm=Ve({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[String,Boolean],default:!0},zIndex:{type:[Number,String],default:2e3},...s4(),...tt(),...Ja(),...Sc(),...l4(),...m4(),...jt(),...Fo()},"v-overlay"),Bu=Pe()({name:"VOverlay",directives:{ClickOutside:x4},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...pm()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:r,emit:i}=t;const o=bt(e,"modelValue"),l=R({get:()=>o.value,set:_e=>{_e&&e.disabled||(o.value=_e)}}),{teleportTarget:u}=w4(R(()=>e.attach||e.contained)),{themeClasses:f}=tn(e),{rtlClasses:d,isRtl:h}=Vo(),{hasContent:m,onAfterLeave:v}=vm(e,l),p=Gn(R(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:b,localTop:S,stackStyles:T}=_4(l,Se(e,"zIndex"),e._disableGlobalStack),{activatorEl:A,activatorRef:w,activatorEvents:C,contentEvents:V,scrimEvents:L}=i4(e,{isActive:l,isTop:S}),{dimensionStyles:F}=Qa(e),O=b4(),{scopeId:k}=gm();De(()=>e.disabled,_e=>{_e&&(l.value=!1)});const z=J(),W=J(),{contentStyles:H,updateLocation:U}=u4(e,{isRtl:h,contentEl:W,activatorEl:A,isActive:l});v4(e,{root:z,contentEl:W,activatorEl:A,isActive:l,updateLocation:U});function q(_e){i("click:outside",_e),e.persistent?fe():l.value=!1}function G(){return l.value&&b.value}Zt&&De(l,_e=>{_e?window.addEventListener("keydown",me):window.removeEventListener("keydown",me)},{immediate:!0});function me(_e){_e.key==="Escape"&&b.value&&(e.persistent?fe():l.value=!1)}const ce=C_();Ei(()=>e.closeOnBack,()=>{e4(ce,_e=>{b.value&&l.value?(_e(!1),e.persistent?fe():l.value=!1):_e()})});const he=J();De(()=>l.value&&(e.absolute||e.contained)&&u.value==null,_e=>{if(_e){const ve=GV(z.value);ve&&ve!==document.scrollingElement&&(he.value=ve.scrollTop)}});function fe(){e.noClickAnimation||W.value&&pi(W.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Pa})}return $e(()=>{var _e;return y(Ke,null,[(_e=n.activator)==null?void 0:_e.call(n,{isActive:l.value,props:Oe({ref:w},au(C.value),e.activatorProps)}),O.value&&y(f0,{disabled:!u.value,to:u.value},{default:()=>[m.value&&y("div",Oe({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":l.value,"v-overlay--contained":e.contained},f.value,d.value,e.class],style:[T.value,{top:ke(he.value)},e.style],ref:z},k,r),[y(A4,Oe({color:p,modelValue:l.value&&!!e.scrim},au(L.value)),null),y(as,{appear:!0,persisted:!0,transition:e.transition,target:A.value,onAfterLeave:()=>{v(),i("afterLeave")}},{default:()=>{var ve;return[qt(y("div",Oe({ref:W,class:["v-overlay__content",e.contentClass],style:[F.value,H.value]},au(V.value),e.contentProps),[(ve=n.default)==null?void 0:ve.call(n,{isActive:l})]),[[lr,l.value],[Sr("click-outside"),{handler:q,closeConditional:G,include:()=>[A.value]}]])]}})])]})])}),{activatorEl:A,animateClick:fe,contentEl:W,globalTop:b,localTop:S,updateLocation:U}}}),vd=Symbol("Forwarded refs");function gd(e,t){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Mo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e[vd]=n,new Proxy(e,{get(i,o){if(Reflect.has(i,o))return Reflect.get(i,o);if(!(typeof o=="symbol"||o.startsWith("__"))){for(const l of n)if(l.value&&Reflect.has(l.value,o)){const u=Reflect.get(l.value,o);return typeof u=="function"?u.bind(l.value):u}}},has(i,o){if(Reflect.has(i,o))return!0;if(typeof o=="symbol"||o.startsWith("__"))return!1;for(const l of n)if(l.value&&Reflect.has(l.value,o))return!0;return!1},getOwnPropertyDescriptor(i,o){var u;const l=Reflect.getOwnPropertyDescriptor(i,o);if(l)return l;if(!(typeof o=="symbol"||o.startsWith("__"))){for(const f of n){if(!f.value)continue;const d=gd(f.value,o)??("_"in f.value?gd((u=f.value._)==null?void 0:u.setupState,o):void 0);if(d)return d}for(const f of n){const d=f.value&&f.value[vd];if(!d)continue;const h=d.slice();for(;h.length;){const m=h.shift(),v=gd(m.value,o);if(v)return v;const p=m.value&&m.value[vd];p&&h.push(...p)}}}}})}const el=Pe()({name:"VDialog",props:{fullscreen:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,...pm({origin:"center center",scrollStrategy:"block",transition:{component:cm},zIndex:2400})},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"modelValue"),{scopeId:i}=gm(),o=J();function l(f){var m,v;const d=f.relatedTarget,h=f.target;if(d!==h&&((m=o.value)!=null&&m.contentEl)&&((v=o.value)!=null&&v.globalTop)&&![document,o.value.contentEl].includes(h)&&!o.value.contentEl.contains(h)){const p=nm(o.value.contentEl);if(!p.length)return;const b=p[0],S=p[p.length-1];d===b?S.focus():b.focus()}}Zt&&De(()=>r.value&&e.retainFocus,f=>{f?document.addEventListener("focusin",l):document.removeEventListener("focusin",l)},{immediate:!0}),De(r,async f=>{var d,h;await Yt(),f?(d=o.value.contentEl)==null||d.focus({preventScroll:!0}):(h=o.value.activatorEl)==null||h.focus({preventScroll:!0})});const u=R(()=>Oe({"aria-haspopup":"dialog","aria-expanded":String(r.value)},e.activatorProps));return $e(()=>{const[f]=Bu.filterProps(e);return y(Bu,Oe({ref:o,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},f,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,"aria-modal":"true",activatorProps:u.value,role:"dialog"},i),{activator:n.activator,default:function(){for(var d=arguments.length,h=new Array(d),m=0;m<d;m++)h[m]=arguments[m];return y(un,{root:!0},{default:()=>{var v;return[(v=n.default)==null?void 0:v.call(n,...h)]}})}})}),Mo({},o)}}),E4={name:"OPDSDialog",components:{OPDSUrl:H3},data(){return{mdiRss:Qb,opdsV1URL:window.origin+window.CODEX.OPDS_V1_PATH,opdsV2URL:window.origin+window.CODEX.OPDS_V2_PATH}}},T4={id:"opds"};function k4(e,t,n,r,i,o){const l=Vt("OPDSUrl");return ie(),je(el,{"max-width":"30em"},{activator:se(({props:u})=>[y(Kt,Oe({id:"opdsButton",icon:"",size:"small",variant:"plain"},u),{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiRss),1)]),_:1}),Te(" OPDS ")]),_:2},1040)]),default:se(()=>[D("div",T4,[D("h2",null,[y(ht,{size:"x=small",class:"inline"},{default:se(()=>[Te(be(i.mdiRss),1)]),_:1}),Te(" OPDS ")]),y(l,{title:"v1.2",url:i.opdsV1URL},null,8,["url"]),y(l,{title:"v2.0",url:i.opdsV2URL,subtitle:"OPDS v2 is experimental and not widely or well supported by clients"},null,8,["url"])])]),_:1})}const P4=ot(E4,[["render",k4],["__scopeId","data-v-b21152f5"]]);const R4={name:"SettingsFooter",components:{OPDSDialog:P4},data(){return{mdiOpenInNew:gc,mdiSourceRepository:k3}}},I4={id:"repo",href:"https://github.com/ajslater/codex",title:"Codex Source Repository",target:"_blank"};function L4(e,t,n,r,i,o){const l=Vt("OPDSDialog");return ie(),je(e_,{id:"settingsFooter"},{default:se(()=>[y(l),D("a",I4,[y(ht,{id:"repoIcon",size:"x-small"},{default:se(()=>[Te(be(i.mdiSourceRepository),1)]),_:1}),Te(" repository"),y(ht,{color:e.$vuetify.theme.current.colors.iconsInactive,size:"x-small"},{default:se(()=>[Te(be(i.mdiOpenInNew),1)]),_:1},8,["color"])])]),_:1})}const k_=ot(R4,[["render",L4],["__scopeId","data-v-eff6c877"]]);const O4={name:"ConfirmFooter",props:{confirmText:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["confirm","cancel"]},V4={class:"confirmFooter"};function F4(e,t,n,r,i,o){return ie(),Fe("footer",V4,[y(Kt,{class:"confirmButton",disabled:n.disabled,onClick:t[0]||(t[0]=l=>e.$emit("confirm"))},{default:se(()=>[Te(be(n.confirmText),1)]),_:1},8,["disabled"]),y(Kt,{class:"cancelButton",onClick:t[1]||(t[1]=l=>e.$emit("cancel"))},{default:se(()=>[Te("Cancel")]),_:1})])}const xc=ot(O4,[["render",F4],["__scopeId","data-v-1663262a"]]);const M4={name:"SubmitFooter",components:{ConfirmFooter:xc},props:{verb:{type:String,required:!0},table:{type:String,required:!0},disabled:{type:Boolean,default:!1}},emits:["cancel","submit"],computed:{...Et(kt,{errors:e=>e.form.errors,success:e=>e.form.success})},beforeMount(){this.clearErrors()},methods:{...Gt(kt,["clearErrors"])}},B4={key:0,class:"errors"},D4={key:1,class:"success"},$4={key:2};function H4(e,t,n,r,i,o){const l=xc;return ie(),Fe("footer",null,[D("div",null,[e.errors&&e.errors.length>0?(ie(),Fe("small",B4,[(ie(!0),Fe(Ke,null,Dr(e.errors,(u,f)=>(ie(),Fe("div",{key:f},be(u),1))),128))])):e.success?(ie(),Fe("small",D4,be(e.success),1)):(ie(),Fe("small",$4," "))]),y(l,{"confirm-text":`${n.verb} ${n.table}`,disabled:n.disabled,onConfirm:t[0]||(t[0]=u=>e.$emit("submit")),onCancel:t[1]||(t[1]=u=>e.$emit("cancel"))},null,8,["confirm-text","disabled"])])}const Bo=ot(M4,[["render",H4],["__scopeId","data-v-04c721a9"]]);const N4={name:"CloseButton",data(){return{mdiClose:y3}}};function U4(e,t,n,r,i,o){return ie(),je(Kt,Oe({class:"closeButton",icon:""},e.$attrs),{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiClose),1)]),_:1})]),_:1},16)}const P_=ot(N4,[["render",U4],["__scopeId","data-v-b81ec955"]]);const R_=Symbol.for("vuetify:form"),z4=Ve({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function W4(e){const t=bt(e,"modelValue"),n=R(()=>e.disabled),r=R(()=>e.readonly),i=J(!1),o=J([]),l=J([]);async function u(){const h=[];let m=!0;l.value=[],i.value=!0;for(const v of o.value){const p=await v.validate();if(p.length>0&&(m=!1,h.push({id:v.id,errorMessages:p})),!m&&e.fastFail)break}return l.value=h,i.value=!1,{valid:m,errors:l.value}}function f(){o.value.forEach(h=>h.reset()),t.value=null}function d(){o.value.forEach(h=>h.resetValidation()),l.value=[],t.value=null}return De(o,()=>{let h=0,m=0;const v=[];for(const p of o.value)p.isValid===!1?(m++,v.push({id:p.id,errorMessages:p.errorMessages})):p.isValid===!0&&h++;l.value=v,t.value=m>0?!1:h===o.value.length?!0:null},{deep:!0}),Pt(R_,{register:h=>{let{id:m,validate:v,reset:p,resetValidation:b}=h;o.value.some(S=>S.id===m)&&Ci(`Duplicate input name "${m}"`),o.value.push({id:m,validate:v,reset:p,resetValidation:b,isValid:null,errorMessages:[]})},unregister:h=>{o.value=o.value.filter(m=>m.id!==h)},update:(h,m,v)=>{const p=o.value.find(b=>b.id===h);p&&(p.isValid=m,p.errorMessages=v)},isDisabled:n,isReadonly:r,isValidating:i,items:o,validateOn:Se(e,"validateOn")}),{errors:l,isDisabled:n,isReadonly:r,isValidating:i,items:o,validate:u,reset:f,resetValidation:d}}function ym(){return rt(R_,null)}const bm=Pe()({name:"VForm",props:{...tt(),...z4()},emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:r}=t;const i=W4(e),o=J();function l(f){f.preventDefault(),i.reset()}function u(f){const d=f,h=i.validate();d.then=h.then.bind(h),d.catch=h.catch.bind(h),d.finally=h.finally.bind(h),r("submit",d),d.defaultPrevented||h.then(m=>{var p;let{valid:v}=m;v&&((p=o.value)==null||p.submit())}),d.preventDefault()}return $e(()=>{var f;return y("form",{ref:o,class:["v-form",e.class],style:e.style,novalidate:!0,onReset:l,onSubmit:u},[(f=n.default)==null?void 0:f.call(n,i)])}),Mo(i,o)}});const Du=Pe()({name:"VDivider",props:{color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...tt(),...jt()},setup(e,t){let{attrs:n}=t;const{themeClasses:r}=tn(e),{textColorClasses:i,textColorStyles:o}=Tr(Se(e,"color")),l=R(()=>{const u={};return e.length&&(u[e.vertical?"maxHeight":"maxWidth"]=ke(e.length)),e.thickness&&(u[e.vertical?"borderRightWidth":"borderTopWidth"]=ke(e.thickness)),u});return $e(()=>y("hr",{class:[{"v-divider":!0,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},r.value,i.value,e.class],style:[l.value,o.value,e.style],"aria-orientation":!n.role||n.role==="separator"?e.vertical?"vertical":"horizontal":void 0,role:`${n.role||"separator"}`},null)),{}}}),rh=Symbol.for("vuetify:list");function I_(){const e=rt(rh,{hasPrepend:J(!1),updateHasPrepend:()=>null}),t={hasPrepend:J(!1),updateHasPrepend:n=>{n&&(t.hasPrepend.value=n)}};return Pt(rh,t),e}function L_(){return rt(rh,null)}const G4={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){const o=new Set;o.add(t);let l=i.get(t);for(;l!=null;)o.add(l),l=i.get(l);return o}else return r.delete(t),r},select:()=>null},O_={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){let o=i.get(t);for(r.add(t);o!=null&&o!==t;)r.add(o),o=i.get(o);return r}else r.delete(t);return r},select:()=>null},j4={open:O_.open,select:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(!n)return r;const o=[];let l=i.get(t);for(;l!=null;)o.push(l),l=i.get(l);return new Set(o)}},_m=e=>{const t={select:n=>{let{id:r,value:i,selected:o}=n;if(r=Ze(r),e&&!i){const l=Array.from(o.entries()).reduce((u,f)=>{let[d,h]=f;return h==="on"?[...u,d]:u},[]);if(l.length===1&&l[0]===r)return o}return o.set(r,i?"on":"off"),o},in:(n,r,i)=>{let o=new Map;for(const l of n||[])o=t.select({id:l,value:!0,selected:new Map(o),children:r,parents:i});return o},out:n=>{const r=[];for(const[i,o]of n.entries())o==="on"&&r.push(i);return r}};return t},V_=e=>{const t=_m(e);return{select:r=>{let{selected:i,id:o,...l}=r;o=Ze(o);const u=i.has(o)?new Map([[o,i.get(o)]]):new Map;return t.select({...l,id:o,selected:u})},in:(r,i,o)=>{let l=new Map;return r!=null&&r.length&&(l=t.in(r.slice(0,1),i,o)),l},out:(r,i,o)=>t.out(r,i,o)}},K4=e=>{const t=_m(e);return{select:r=>{let{id:i,selected:o,children:l,...u}=r;return i=Ze(i),l.has(i)?o:t.select({id:i,selected:o,children:l,...u})},in:t.in,out:t.out}},q4=e=>{const t=V_(e);return{select:r=>{let{id:i,selected:o,children:l,...u}=r;return i=Ze(i),l.has(i)?o:t.select({id:i,selected:o,children:l,...u})},in:t.in,out:t.out}},Y4=e=>{const t={select:n=>{let{id:r,value:i,selected:o,children:l,parents:u}=n;r=Ze(r);const f=new Map(o),d=[r];for(;d.length;){const m=d.shift();o.set(m,i?"on":"off"),l.has(m)&&d.push(...l.get(m))}let h=u.get(r);for(;h;){const m=l.get(h),v=m.every(b=>o.get(b)==="on"),p=m.every(b=>!o.has(b)||o.get(b)==="off");o.set(h,v?"on":p?"off":"indeterminate"),h=u.get(h)}return e&&!i&&Array.from(o.entries()).reduce((v,p)=>{let[b,S]=p;return S==="on"?[...v,b]:v},[]).length===0?f:o},in:(n,r,i)=>{let o=new Map;for(const l of n||[])o=t.select({id:l,value:!0,selected:new Map(o),children:r,parents:i});return o},out:(n,r)=>{const i=[];for(const[o,l]of n.entries())l==="on"&&!r.has(o)&&i.push(o);return i}};return t},La=Symbol.for("vuetify:nested"),F_={id:J(),root:{register:()=>null,unregister:()=>null,parents:J(new Map),children:J(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:J(new Set),selected:J(new Map),selectedValues:J([])}},Z4=Ve({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),X4=e=>{let t=!1;const n=J(new Map),r=J(new Map),i=bt(e,"opened",e.opened,m=>new Set(m),m=>[...m.values()]),o=R(()=>{if(typeof e.selectStrategy=="object")return e.selectStrategy;switch(e.selectStrategy){case"single-leaf":return q4(e.mandatory);case"leaf":return K4(e.mandatory);case"independent":return _m(e.mandatory);case"single-independent":return V_(e.mandatory);case"classic":default:return Y4(e.mandatory)}}),l=R(()=>{if(typeof e.openStrategy=="object")return e.openStrategy;switch(e.openStrategy){case"list":return j4;case"single":return G4;case"multiple":default:return O_}}),u=bt(e,"selected",e.selected,m=>o.value.in(m,n.value,r.value),m=>o.value.out(m,n.value,r.value));On(()=>{t=!0});function f(m){const v=[];let p=m;for(;p!=null;)v.unshift(p),p=r.value.get(p);return v}const d=cn("nested"),h={id:J(),root:{opened:i,selected:u,selectedValues:R(()=>{const m=[];for(const[v,p]of u.value.entries())p==="on"&&m.push(v);return m}),register:(m,v,p)=>{v&&m!==v&&r.value.set(m,v),p&&n.value.set(m,[]),v!=null&&n.value.set(v,[...n.value.get(v)||[],m])},unregister:m=>{if(t)return;n.value.delete(m);const v=r.value.get(m);if(v){const p=n.value.get(v)??[];n.value.set(v,p.filter(b=>b!==m))}r.value.delete(m),i.value.delete(m)},open:(m,v,p)=>{d.emit("click:open",{id:m,value:v,path:f(m),event:p});const b=l.value.open({id:m,value:v,opened:new Set(i.value),children:n.value,parents:r.value,event:p});b&&(i.value=b)},openOnSelect:(m,v,p)=>{const b=l.value.select({id:m,value:v,selected:new Map(u.value),opened:new Set(i.value),children:n.value,parents:r.value,event:p});b&&(i.value=b)},select:(m,v,p)=>{d.emit("click:select",{id:m,value:v,path:f(m),event:p});const b=o.value.select({id:m,value:v,selected:new Map(u.value),children:n.value,parents:r.value,event:p});b&&(u.value=b),h.root.openOnSelect(m,v,p)},children:n,parents:r}};return Pt(La,h),h.root},M_=(e,t)=>{const n=rt(La,F_),r=Symbol(cr()),i=R(()=>e.value??r),o={...n,id:i,open:(l,u)=>n.root.open(i.value,l,u),openOnSelect:(l,u)=>n.root.openOnSelect(i.value,l,u),isOpen:R(()=>n.root.opened.value.has(i.value)),parent:R(()=>n.root.parents.value.get(i.value)),select:(l,u)=>n.root.select(i.value,l,u),isSelected:R(()=>n.root.selected.value.get(Ze(i.value))==="on"),isIndeterminate:R(()=>n.root.selected.value.get(i.value)==="indeterminate"),isLeaf:R(()=>!n.root.children.value.get(i.value)),isGroupActivator:n.isGroupActivator};return!n.isGroupActivator&&n.root.register(i.value,n.id.value,t),On(()=>{!n.isGroupActivator&&n.root.unregister(i.value)}),t&&Pt(La,o),o},J4=()=>{const e=rt(La,F_);Pt(La,{...e,isGroupActivator:!0})};function Ac(){const e=J(!1);return ar(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:R(()=>e.value?void 0:{transition:"none !important"}),isBooted:Ro(e)}}const Q4=Oo({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return J4(),()=>{var r;return(r=n.default)==null?void 0:r.call(n)}}}),eF=Ve({activeColor:String,color:String,collapseIcon:{type:St,default:"$collapse"},expandIcon:{type:St,default:"$expand"},prependIcon:St,appendIcon:St,fluid:Boolean,subgroup:Boolean,value:null,...tt(),...$t()},"v-list-group"),sy=Pe()({name:"VListGroup",props:{title:String,...eF()},setup(e,t){let{slots:n}=t;const{isOpen:r,open:i,id:o}=M_(Se(e,"value"),!0),l=R(()=>`v-list-group--id-${String(o.value)}`),u=L_(),{isBooted:f}=Ac();function d(p){i(!r.value,p)}const h=R(()=>({onClick:d,class:"v-list-group__header",id:l.value})),m=R(()=>r.value?e.collapseIcon:e.expandIcon),v=R(()=>({VListItem:{active:r.value,activeColor:e.activeColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&m.value,appendIcon:e.appendIcon||!e.subgroup&&m.value,title:e.title,value:e.value}}));return $e(()=>y(e.tag,{class:["v-list-group",{"v-list-group--prepend":u==null?void 0:u.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":r.value},e.class],style:e.style},{default:()=>[n.activator&&y(un,{defaults:v.value},{default:()=>[y(Q4,null,{default:()=>[n.activator({props:h.value,isOpen:r.value})]})]}),y(as,{transition:{component:Ya},disabled:!f.value},{default:()=>{var p;return[qt(y("div",{class:"v-list-group__items",role:"group","aria-labelledby":l.value},[(p=n.default)==null?void 0:p.call(n)]),[[lr,r.value]])]}})]})),{}}});function tF(e){return{aspectStyles:R(()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0})}}const nF=Pe()({name:"VResponsive",props:{aspectRatio:[String,Number],contentClass:String,...tt(),...Ja()},setup(e,t){let{slots:n}=t;const{aspectStyles:r}=tF(e),{dimensionStyles:i}=Qa(e);return $e(()=>{var o;return y("div",{class:["v-responsive",e.class],style:[i.value,e.style]},[y("div",{class:"v-responsive__sizer",style:r.value},null),(o=n.additional)==null?void 0:o.call(n),n.default&&y("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}});function rF(e,t){if(!em)return;const n=t.modifiers||{},r=t.value,{handler:i,options:o}=typeof r=="object"?r:{handler:r,options:{}},l=new IntersectionObserver(function(){var m;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=arguments.length>1?arguments[1]:void 0;const d=(m=e._observe)==null?void 0:m[t.instance.$.uid];if(!d)return;const h=u.some(v=>v.isIntersecting);i&&(!n.quiet||d.init)&&(!n.once||h||d.init)&&i(h,u,f),h&&n.once?B_(e,t):d.init=!0},o);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:l},l.observe(e)}function B_(e,t){var r;const n=(r=e._observe)==null?void 0:r[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const D_={mounted:rF,unmounted:B_},$_=Pe()({name:"VImg",directives:{intersect:D_},props:{aspectRatio:[String,Number],alt:String,cover:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},srcset:String,width:[String,Number],...tt(),...Fo()},emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:r}=t;const i=J(""),o=J(),l=J(e.eager?"loading":"idle"),u=J(),f=J(),d=R(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),h=R(()=>d.value.aspect||u.value/f.value||0);De(()=>e.src,()=>{m(l.value!=="idle")}),De(h,(k,z)=>{!k&&z&&o.value&&T(o.value)}),Ha(()=>m());function m(k){if(!(e.eager&&k)&&!(em&&!k&&!e.eager)){if(l.value="loading",d.value.lazySrc){const z=new Image;z.src=d.value.lazySrc,T(z,null)}d.value.src&&Yt(()=>{var z,W;if(n("loadstart",((z=o.value)==null?void 0:z.currentSrc)||d.value.src),(W=o.value)!=null&&W.complete){if(o.value.naturalWidth||p(),l.value==="error")return;h.value||T(o.value,null),v()}else h.value||T(o.value),b()})}}function v(){var k;b(),l.value="loaded",n("load",((k=o.value)==null?void 0:k.currentSrc)||d.value.src)}function p(){var k;l.value="error",n("error",((k=o.value)==null?void 0:k.currentSrc)||d.value.src)}function b(){const k=o.value;k&&(i.value=k.currentSrc||k.src)}let S=-1;function T(k){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const W=()=>{clearTimeout(S);const{naturalHeight:H,naturalWidth:U}=k;H||U?(u.value=U,f.value=H):!k.complete&&l.value==="loading"&&z!=null?S=window.setTimeout(W,z):(k.currentSrc.endsWith(".svg")||k.currentSrc.startsWith("data:image/svg+xml"))&&(u.value=1,f.value=1)};W()}const A=R(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),w=()=>{var W;if(!d.value.src||l.value==="idle")return null;const k=y("img",{class:["v-img__img",A.value],src:d.value.src,srcset:d.value.srcset,alt:e.alt,sizes:e.sizes,ref:o,onLoad:v,onError:p},null),z=(W=r.sources)==null?void 0:W.call(r);return y(as,{transition:e.transition,appear:!0},{default:()=>[qt(z?y("picture",{class:"v-img__picture"},[z,k]):k,[[lr,l.value==="loaded"]])]})},C=()=>y(as,{transition:e.transition},{default:()=>[d.value.lazySrc&&l.value!=="loaded"&&y("img",{class:["v-img__img","v-img__img--preload",A.value],src:d.value.lazySrc,alt:e.alt},null)]}),V=()=>r.placeholder?y(as,{transition:e.transition,appear:!0},{default:()=>[(l.value==="loading"||l.value==="error"&&!r.error)&&y("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,L=()=>r.error?y(as,{transition:e.transition,appear:!0},{default:()=>[l.value==="error"&&y("div",{class:"v-img__error"},[r.error()])]}):null,F=()=>e.gradient?y("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,O=J(!1);{const k=De(h,z=>{z&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),k())})}return $e(()=>qt(y(nF,{class:["v-img",{"v-img--booting":!O.value},e.class],style:[{width:ke(e.width==="auto"?u.value:e.width)},e.style],aspectRatio:h.value,"aria-label":e.alt,role:e.alt?"img":void 0},{additional:()=>y(Ke,null,[y(w,null,null),y(C,null,null),y(F,null,null),y(V,null,null),y(L,null,null)]),default:r.default}),[[Sr("intersect"),{handler:m,options:e.options},null,{once:!0}]])),{currentSrc:i,image:o,state:l,naturalWidth:u,naturalHeight:f}}}),sF=Ve({start:Boolean,end:Boolean,icon:St,image:String,...tt(),...zr(),...fr(),...Ka(),...$t(),...jt(),...Zs({variant:"flat"})},"v-avatar"),$u=Pe()({name:"VAvatar",props:sF(),setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{colorClasses:i,colorStyles:o,variantClasses:l}=yc(e),{densityClasses:u}=Wr(e),{roundedClasses:f}=dr(e),{sizeClasses:d,sizeStyles:h}=qa(e);return $e(()=>y(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,i.value,u.value,f.value,d.value,l.value,e.class],style:[o.value,h.value,e.style]},{default:()=>{var m;return[e.image?y($_,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?y(ht,{key:"icon",icon:e.icon},null):(m=n.default)==null?void 0:m.call(n),pc(!1,"v-avatar")]}})),{}}}),iF=$b("v-list-item-subtitle"),tl=$b("v-list-item-title"),kr=Pe()({name:"VListItem",directives:{Ripple:Xa},props:{active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:St,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:St,ripple:{type:Boolean,default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:Hr(),onClickOnce:Hr(),...qs(),...tt(),...zr(),...Ja(),...ys(),...fr(),...mm(),...$t(),...jt(),...Zs({variant:"text"})},emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const o=hm(e,n),l=R(()=>e.value??o.href.value),{select:u,isSelected:f,isIndeterminate:d,isGroupActivator:h,root:m,parent:v,openOnSelect:p}=M_(l,!1),b=L_(),S=R(()=>{var he;return e.active!==!1&&(e.active||((he=o.isActive)==null?void 0:he.value)||f.value)}),T=R(()=>e.link!==!1&&o.isLink.value),A=R(()=>!e.disabled&&e.link!==!1&&(e.link||o.isClickable.value||e.value!=null&&!!b)),w=R(()=>e.rounded||e.nav),C=R(()=>({color:S.value?e.activeColor??e.color:e.color,variant:e.variant}));De(()=>{var he;return(he=o.isActive)==null?void 0:he.value},he=>{he&&v.value!=null&&m.open(v.value,!0),he&&p(he)},{immediate:!0});const{themeClasses:V}=tn(e),{borderClasses:L}=Ys(e),{colorClasses:F,colorStyles:O,variantClasses:k}=yc(C),{densityClasses:z}=Wr(e),{dimensionStyles:W}=Qa(e),{elevationClasses:H}=bs(e),{roundedClasses:U}=dr(w),q=R(()=>e.lines?`v-list-item--${e.lines}-line`:void 0),G=R(()=>({isActive:S.value,select:u,isSelected:f.value,isIndeterminate:d.value}));function me(he){var fe;i("click",he),!(h||!A.value)&&((fe=o.navigate)==null||fe.call(o,he),e.value!=null&&u(!f.value,he))}function ce(he){(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),me(he))}return $e(()=>{const he=T.value?"a":e.tag,fe=!b||f.value||S.value,_e=r.title||e.title,ve=r.subtitle||e.subtitle,pe=!!(e.appendAvatar||e.appendIcon),le=!!(pe||r.append),Ne=!!(e.prependAvatar||e.prependIcon),gt=!!(Ne||r.prepend);return b==null||b.updateHasPrepend(gt),qt(y(he,{class:["v-list-item",{"v-list-item--active":S.value,"v-list-item--disabled":e.disabled,"v-list-item--link":A.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!gt&&(b==null?void 0:b.hasPrepend.value),[`${e.activeClass}`]:e.activeClass&&S.value},V.value,L.value,fe?F.value:void 0,z.value,H.value,q.value,U.value,k.value,e.class],style:[fe?O.value:void 0,W.value,e.style],href:o.href.value,tabindex:A.value?0:void 0,onClick:me,onKeydown:A.value&&!T.value&&ce},{default:()=>{var Y;return[pc(A.value||S.value,"v-list-item"),gt&&y("div",{key:"prepend",class:"v-list-item__prepend"},[r.prepend?y(un,{key:"prepend-defaults",disabled:!Ne,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var Z;return[(Z=r.prepend)==null?void 0:Z.call(r,G.value)]}}):y(Ke,null,[e.prependAvatar&&y($u,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&y(ht,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),y("div",{class:"v-list-item__content","data-no-activator":""},[_e&&y(tl,{key:"title"},{default:()=>{var Z;return[((Z=r.title)==null?void 0:Z.call(r,{title:e.title}))??e.title]}}),ve&&y(iF,{key:"subtitle"},{default:()=>{var Z;return[((Z=r.subtitle)==null?void 0:Z.call(r,{subtitle:e.subtitle}))??e.subtitle]}}),(Y=r.default)==null?void 0:Y.call(r,G.value)]),le&&y("div",{key:"append",class:"v-list-item__append"},[r.append?y(un,{key:"append-defaults",disabled:!pe,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var Z;return[(Z=r.append)==null?void 0:Z.call(r,G.value)]}}):y(Ke,null,[e.appendIcon&&y(ht,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&y($u,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]}}),[[Sr("ripple"),A.value&&e.ripple]])}),{}}}),oF=Pe()({name:"VListSubheader",props:{color:String,inset:Boolean,sticky:Boolean,title:String,...tt(),...$t()},setup(e,t){let{slots:n}=t;const{textColorClasses:r,textColorStyles:i}=Tr(Se(e,"color"));return $e(()=>{const o=!!(n.default||e.title);return y(e.tag,{class:["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},r.value,e.class],style:[{textColorStyles:i},e.style]},{default:()=>{var l;return[o&&y("div",{class:"v-list-subheader__text"},[((l=n.default)==null?void 0:l.call(n))??e.title])]}})}),{}}}),H_=Pe()({name:"VListChildren",props:{items:Array},setup(e,t){let{slots:n}=t;return I_(),()=>{var r,i;return((r=n.default)==null?void 0:r.call(n))??((i=e.items)==null?void 0:i.map(o=>{var p,b;let{children:l,props:u,type:f,raw:d}=o;if(f==="divider")return((p=n.divider)==null?void 0:p.call(n,{props:u}))??y(Du,u,null);if(f==="subheader")return((b=n.subheader)==null?void 0:b.call(n,{props:u}))??y(oF,u,{default:n.subheader});const h={subtitle:n.subtitle?S=>{var T;return(T=n.subtitle)==null?void 0:T.call(n,{...S,item:d})}:void 0,prepend:n.prepend?S=>{var T;return(T=n.prepend)==null?void 0:T.call(n,{...S,item:d})}:void 0,append:n.append?S=>{var T;return(T=n.append)==null?void 0:T.call(n,{...S,item:d})}:void 0,default:n.default?S=>{var T;return(T=n.default)==null?void 0:T.call(n,{...S,item:d})}:void 0,title:n.title?S=>{var T;return(T=n.title)==null?void 0:T.call(n,{...S,item:d})}:void 0},[m,v]=sy.filterProps(u);return l?y(sy,Oe({value:u==null?void 0:u.value},m),{activator:S=>{let{props:T}=S;return n.header?n.header({props:{...u,...T}}):y(kr,Oe(u,T),h)},default:()=>y(H_,{items:l},n)}):n.item?n.item(u):y(kr,u,h)}))}}}),wm=Ve({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean},"item");function lo(e,t){const n=or(t,e.itemTitle,t),r=e.returnObject?t:or(t,e.itemValue,n),i=or(t,e.itemChildren),o=e.itemProps===!0?typeof t=="object"&&t!=null&&!Array.isArray(t)?"children"in t?Ga(t,["children"])[1]:t:void 0:or(t,e.itemProps),l={title:n,value:r,...o};return{title:String(l.title??""),value:l.value,props:l,children:Array.isArray(i)?N_(e,i):void 0,raw:t}}function N_(e,t){const n=[];for(const r of t)n.push(lo(e,r));return n}function Cm(e){const t=R(()=>N_(e,e.items));function n(i){return i.map(o=>t.value.find(u=>Oi(o,u.value))??lo(e,o))}function r(i){return i.map(o=>{let{props:l}=o;return l.value})}return{items:t,transformIn:n,transformOut:r}}function aF(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function lF(e,t){const n=or(t,e.itemType,"item"),r=aF(t)?t:or(t,e.itemTitle),i=or(t,e.itemValue,void 0),o=or(t,e.itemChildren),l=e.itemProps===!0?Ga(t,["children"])[1]:or(t,e.itemProps),u={title:r,value:i,...l};return{type:n,title:u.title,value:u.value,props:u,children:n==="item"&&o?U_(e,o):void 0,raw:t}}function U_(e,t){const n=[];for(const r of t)n.push(lF(e,r));return n}function uF(e){return{items:R(()=>U_(e,e.items))}}const z_=Pe()({name:"VList",props:{activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Z4({selectStrategy:"single-leaf",openStrategy:"list"}),...qs(),...tt(),...zr(),...Ja(),...ys(),itemType:{type:String,default:"type"},...wm(),...fr(),...$t(),...jt(),...Zs({variant:"text"})},emits:{"update:selected":e=>!0,"update:opened":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n}=t;const{items:r}=uF(e),{themeClasses:i}=tn(e),{backgroundColorClasses:o,backgroundColorStyles:l}=Gn(Se(e,"bgColor")),{borderClasses:u}=Ys(e),{densityClasses:f}=Wr(e),{dimensionStyles:d}=Qa(e),{elevationClasses:h}=bs(e),{roundedClasses:m}=dr(e),{open:v,select:p}=X4(e),b=R(()=>e.lines?`v-list--${e.lines}-line`:void 0),S=Se(e,"activeColor"),T=Se(e,"color");I_(),Kn({VListGroup:{activeColor:S,color:T},VListItem:{activeClass:Se(e,"activeClass"),activeColor:S,color:T,density:Se(e,"density"),disabled:Se(e,"disabled"),lines:Se(e,"lines"),nav:Se(e,"nav"),variant:Se(e,"variant")}});const A=J(!1),w=J();function C(k){A.value=!0}function V(k){A.value=!1}function L(k){var z;!A.value&&!(k.relatedTarget&&((z=w.value)!=null&&z.contains(k.relatedTarget)))&&O()}function F(k){if(w.value){if(k.key==="ArrowDown")O("next");else if(k.key==="ArrowUp")O("prev");else if(k.key==="Home")O("first");else if(k.key==="End")O("last");else return;k.preventDefault()}}function O(k){if(w.value)return Ob(w.value,k)}return $e(()=>y(e.tag,{ref:w,class:["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav},i.value,o.value,u.value,f.value,h.value,b.value,m.value,e.class],style:[l.value,d.value,e.style],role:"listbox","aria-activedescendant":void 0,onFocusin:C,onFocusout:V,onFocus:L,onKeydown:F},{default:()=>[y(H_,{items:r.value},n)]})),{open:v,select:p,focus:O}}});function W_(e){const{t}=Vi();function n(r){let{name:i}=r;const o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],l=e[`onClick:${i}`],u=l&&o?t(`$vuetify.input.${o}`,e.label??""):void 0;return y(ht,{icon:e[`${i}Icon`],"aria-label":u,onClick:l},null)}return{InputIcon:n}}const G_=Pe()({name:"VLabel",props:{text:String,clickable:Boolean,...tt(),...jt()},setup(e,t){let{slots:n}=t;return $e(()=>{var r;return y("label",{class:["v-label",{"v-label--clickable":e.clickable},e.class],style:e.style},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}}),iu=Pe()({name:"VFieldLabel",props:{floating:Boolean,...tt()},setup(e,t){let{slots:n}=t;return $e(()=>y(G_,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}}),j_=Ve({focused:Boolean,"onUpdate:focused":Hr()},"focus");function Ec(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps();const n=bt(e,"focused"),r=R(()=>({[`${t}--focused`]:n.value}));function i(){n.value=!0}function o(){n.value=!1}return{focusClasses:r,isFocused:n,focus:i,blur:o}}const cF=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],K_=Ve({appendInnerIcon:St,bgColor:String,clearable:Boolean,clearIcon:{type:St,default:"$clear"},active:Boolean,color:String,baseColor:String,dirty:Boolean,disabled:Boolean,error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:St,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>cF.includes(e)},"onClick:clear":Hr(),"onClick:appendInner":Hr(),"onClick:prependInner":Hr(),...tt(),...fm(),...fr(),...jt()},"v-field"),q_=Pe()({name:"VField",inheritAttrs:!1,props:{id:String,...j_(),...K_()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{themeClasses:o}=tn(e),{loaderClasses:l}=Cc(e),{focusClasses:u,isFocused:f,focus:d,blur:h}=Ec(e),{InputIcon:m}=W_(e),{roundedClasses:v}=dr(e),p=R(()=>e.dirty||e.active),b=R(()=>!e.singleLine&&!!(e.label||i.label)),S=cr(),T=R(()=>e.id||`input-${S}`),A=R(()=>`${T.value}-messages`),w=J(),C=J(),V=J(),{backgroundColorClasses:L,backgroundColorStyles:F}=Gn(Se(e,"bgColor")),{textColorClasses:O,textColorStyles:k}=Tr(R(()=>e.error||e.disabled?void 0:p.value&&f.value?e.color:e.baseColor));De(p,H=>{if(b.value){const U=w.value.$el,q=C.value.$el;requestAnimationFrame(()=>{const G=rm(U),me=q.getBoundingClientRect(),ce=me.x-G.x,he=me.y-G.y-(G.height/2-me.height/2),fe=me.width/.75,_e=Math.abs(fe-G.width)>1?{maxWidth:ke(fe)}:void 0,ve=getComputedStyle(U),pe=getComputedStyle(q),le=parseFloat(ve.transitionDuration)*1e3||150,Ne=parseFloat(pe.getPropertyValue("--v-field-label-scale")),gt=pe.getPropertyValue("color");U.style.visibility="visible",q.style.visibility="hidden",pi(U,{transform:`translate(${ce}px, ${he}px) scale(${Ne})`,color:gt,..._e},{duration:le,easing:Pa,direction:H?"normal":"reverse"}).finished.then(()=>{U.style.removeProperty("visibility"),q.style.removeProperty("visibility")})})}},{flush:"post"});const z=R(()=>({isActive:p,isFocused:f,controlRef:V,blur:h,focus:d}));function W(H){H.target!==document.activeElement&&H.preventDefault()}return $e(()=>{var ce,he,fe;const H=e.variant==="outlined",U=i["prepend-inner"]||e.prependInnerIcon,q=!!(e.clearable||i.clear),G=!!(i["append-inner"]||e.appendInnerIcon||q),me=i.label?i.label({label:e.label,props:{for:T.value}}):e.label;return y("div",Oe({class:["v-field",{"v-field--active":p.value,"v-field--appended":G,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":U,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!me,[`v-field--variant-${e.variant}`]:!0},o.value,L.value,u.value,l.value,v.value,e.class],style:[F.value,k.value,e.style],onClick:W},n),[y("div",{class:"v-field__overlay"},null),y(dm,{name:"v-field",active:!!e.loading,color:e.error?"error":e.color},{default:i.loader}),U&&y("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&y(m,{key:"prepend-icon",name:"prependInner"},null),(ce=i["prepend-inner"])==null?void 0:ce.call(i,z.value)]),y("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&b.value&&y(iu,{key:"floating-label",ref:C,class:[O.value],floating:!0,for:T.value},{default:()=>[me]}),y(iu,{ref:w,for:T.value},{default:()=>[me]}),(he=i.default)==null?void 0:he.call(i,{...z.value,props:{id:T.value,class:"v-field__input","aria-describedby":A.value},focus:d,blur:h})]),q&&y(o_,{key:"clear"},{default:()=>[qt(y("div",{class:"v-field__clearable",onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()}},[i.clear?i.clear():y(m,{name:"clear"},null)]),[[lr,e.dirty]])]}),G&&y("div",{key:"append",class:"v-field__append-inner"},[(fe=i["append-inner"])==null?void 0:fe.call(i,z.value),e.appendInnerIcon&&y(m,{key:"append-icon",name:"appendInner"},null)]),y("div",{class:["v-field__outline",O.value]},[H&&y(Ke,null,[y("div",{class:"v-field__outline__start"},null),b.value&&y("div",{class:"v-field__outline__notch"},[y(iu,{ref:C,floating:!0,for:T.value},{default:()=>[me]})]),y("div",{class:"v-field__outline__end"},null)]),["plain","underlined"].includes(e.variant)&&b.value&&y(iu,{ref:C,floating:!0,for:T.value},{default:()=>[me]})])])}),{controlRef:V}}});function fF(e){const t=Object.keys(q_.props).filter(n=>!CV(n)&&n!=="class"&&n!=="style");return Ga(e,t)}const dF=Pe()({name:"VMessages",props:{active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...tt(),...Fo({transition:{component:i_,leaveAbsolute:!0,group:!0}})},setup(e,t){let{slots:n}=t;const r=R(()=>$r(e.messages)),{textColorClasses:i,textColorStyles:o}=Tr(R(()=>e.color));return $e(()=>y(as,{transition:e.transition,tag:"div",class:["v-messages",i.value,e.class],style:[o.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((l,u)=>y("div",{class:"v-messages__message",key:`${u}-${r.value}`},[n.message?n.message({message:l}):l]))]})),{}}}),hF=Ve({disabled:Boolean,error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:Boolean,rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...j_()},"validation");function mF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ps(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cr();const r=bt(e,"modelValue"),i=R(()=>e.validationValue===void 0?r.value:e.validationValue),o=ym(),l=J([]),u=J(!0),f=R(()=>!!($r(r.value===""?null:r.value).length||$r(i.value===""?null:i.value).length)),d=R(()=>!!(e.disabled||o!=null&&o.isDisabled.value)),h=R(()=>!!(e.readonly||o!=null&&o.isReadonly.value)),m=R(()=>e.errorMessages.length?$r(e.errorMessages).slice(0,Math.max(0,+e.maxErrors)):l.value),v=R(()=>e.error||m.value.length?!1:e.rules.length&&u.value?null:!0),p=J(!1),b=R(()=>({[`${t}--error`]:v.value===!1,[`${t}--dirty`]:f.value,[`${t}--disabled`]:d.value,[`${t}--readonly`]:h.value})),S=R(()=>e.name??mn(n));Ha(()=>{o==null||o.register({id:S.value,validate:C,reset:A,resetValidation:w})}),On(()=>{o==null||o.unregister(S.value)});const T=R(()=>e.validateOn||(o==null?void 0:o.validateOn.value)||"input");ar(()=>o==null?void 0:o.update(S.value,v.value,m.value)),Ei(()=>T.value==="input",()=>{De(i,()=>{if(i.value!=null)C();else if(e.focused){const V=De(()=>e.focused,L=>{L||C(),V()})}})}),Ei(()=>T.value==="blur",()=>{De(()=>e.focused,V=>{V||C()})}),De(v,()=>{o==null||o.update(S.value,v.value,m.value)});function A(){w(),r.value=null}function w(){u.value=!0,l.value=[]}async function C(){const V=[];p.value=!0;for(const L of e.rules){if(V.length>=+(e.maxErrors??1))break;const O=await(typeof L=="function"?L:()=>L)(i.value);if(O!==!0){if(typeof O!="string"){console.warn(`${O} is not a valid value. Rule functions must return boolean true or a string.`);continue}V.push(O)}}return l.value=V,p.value=!1,u.value=!1,l.value}return{errorMessages:m,isDirty:f,isDisabled:d,isReadonly:h,isPristine:u,isValid:v,isValidating:p,reset:A,resetValidation:w,validate:C,validationClasses:b}}const Tc=Ve({id:String,appendIcon:St,prependIcon:St,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Hr(),"onClick:append":Hr(),...tt(),...zr(),...hF()},"v-input"),xo=Pe()({name:"VInput",props:{...Tc()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r,emit:i}=t;const{densityClasses:o}=Wr(e),{InputIcon:l}=W_(e),u=cr(),f=R(()=>e.id||`input-${u}`),d=R(()=>`${f.value}-messages`),{errorMessages:h,isDirty:m,isDisabled:v,isReadonly:p,isPristine:b,isValid:S,isValidating:T,reset:A,resetValidation:w,validate:C,validationClasses:V}=mF(e,"v-input",f),L=R(()=>({id:f,messagesId:d,isDirty:m,isDisabled:v,isReadonly:p,isPristine:b,isValid:S,isValidating:T,reset:A,resetValidation:w,validate:C})),F=R(()=>h.value.length>0?h.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages);return $e(()=>{var H,U,q,G;const O=!!(r.prepend||e.prependIcon),k=!!(r.append||e.appendIcon),z=F.value.length>0,W=!e.hideDetails||e.hideDetails==="auto"&&(z||!!r.details);return y("div",{class:["v-input",`v-input--${e.direction}`,o.value,V.value,e.class],style:e.style},[O&&y("div",{key:"prepend",class:"v-input__prepend"},[(H=r.prepend)==null?void 0:H.call(r,L.value),e.prependIcon&&y(l,{key:"prepend-icon",name:"prepend"},null)]),r.default&&y("div",{class:"v-input__control"},[(U=r.default)==null?void 0:U.call(r,L.value)]),k&&y("div",{key:"append",class:"v-input__append"},[e.appendIcon&&y(l,{key:"append-icon",name:"append"},null),(q=r.append)==null?void 0:q.call(r,L.value)]),W&&y("div",{class:"v-input__details"},[y(dF,{id:d.value,active:z,messages:F.value},{message:r.message}),(G=r.details)==null?void 0:G.call(r,L.value)])])}),{reset:A,resetValidation:w,validate:C}}});const vF=Pe()({name:"VCounter",functional:!0,props:{active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...tt(),...Fo({transition:{component:i_}})},setup(e,t){let{slots:n}=t;const r=R(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return $e(()=>y(as,{transition:e.transition},{default:()=>[qt(y("div",{class:["v-counter",e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[lr,e.active]])]})),{}}}),gF=["color","file","time","date","datetime-local","week","month"],Sm=Ve({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,type:{type:String,default:"text"},modelModifiers:Object,...Tc(),...K_()},"v-text-field"),Cn=Pe()({name:"VTextField",directives:{Intersect:D_},inheritAttrs:!1,props:Sm(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const o=bt(e,"modelValue"),{isFocused:l,focus:u,blur:f}=Ec(e),d=R(()=>typeof e.counterValue=="function"?e.counterValue(o.value):(o.value??"").toString().length),h=R(()=>{if(n.maxlength)return n.maxlength;if(!(!e.counter||typeof e.counter!="number"&&typeof e.counter!="string"))return e.counter});function m(L,F){var O,k;!e.autofocus||!L||(k=(O=F[0].target)==null?void 0:O.focus)==null||k.call(O)}const v=J(),p=J(),b=J(),S=R(()=>gF.includes(e.type)||e.persistentPlaceholder||l.value);function T(){var L;b.value!==document.activeElement&&((L=b.value)==null||L.focus()),l.value||u()}function A(L){r("mousedown:control",L),L.target!==b.value&&(T(),L.preventDefault())}function w(L){T(),r("click:control",L)}function C(L){L.stopPropagation(),T(),Yt(()=>{o.value=null,SV(e["onClick:clear"],L)})}function V(L){var O;const F=L.target;if(o.value=F.value,(O=e.modelModifiers)!=null&&O.trim&&["text","search","password","tel","url"].includes(e.type)){const k=[F.selectionStart,F.selectionEnd];Yt(()=>{F.selectionStart=k[0],F.selectionEnd=k[1]})}}return $e(()=>{const L=!!(i.counter||e.counter||e.counterValue),F=!!(L||i.details),[O,k]=mc(n),[{modelValue:z,...W}]=xo.filterProps(e),[H]=fF(e);return y(xo,Oe({ref:v,modelValue:o.value,"onUpdate:modelValue":U=>o.value=U,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-text-field--flush-details":["plain","underlined"].includes(e.variant)},e.class],style:e.style},O,W,{focused:l.value}),{...i,default:U=>{let{id:q,isDisabled:G,isDirty:me,isReadonly:ce,isValid:he}=U;return y(q_,Oe({ref:p,onMousedown:A,onClick:w,"onClick:clear":C,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"],role:"textbox"},H,{id:q.value,active:S.value||me.value,dirty:me.value||e.dirty,disabled:G.value,focused:l.value,error:he.value===!1}),{...i,default:fe=>{let{props:{class:_e,...ve}}=fe;const pe=qt(y("input",Oe({ref:b,value:o.value,onInput:V,autofocus:e.autofocus,readonly:ce.value,disabled:G.value,name:e.name,placeholder:e.placeholder,size:1,type:e.type,onFocus:T,onBlur:f},ve,k),null),[[Sr("intersect"),{handler:m},null,{once:!0}]]);return y(Ke,null,[e.prefix&&y("span",{class:"v-text-field__prefix"},[e.prefix]),i.default?y("div",{class:_e,"data-no-activator":""},[i.default(),pe]):xr(pe,{class:_e}),e.suffix&&y("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:F?U=>{var q;return y(Ke,null,[(q=i.details)==null?void 0:q.call(i,U),L&&y(Ke,null,[y("span",null,null),y(vF,{active:e.persistentCounter||l.value,value:d.value,max:h.value},i.counter)])])}:void 0})}),Mo({},v,p,b)}}),pF={name:"ChangePasswordDialog",components:{SubmitFooter:Bo,CloseButton:P_},props:{user:{type:Object,required:!0},isAdminMode:{type:Boolean,default:!1},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{rules:{oldPassword:[e=>!!e||"Old Password is required"],password:[e=>e?e.length<this.MIN_PASSWORD_LENGTH?`Password must be ${this.MIN_PASSWORD_LENGTH} characters long`:e===this.credentials.oldPassword?"New password must be different than old password":!0:"New Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},credentials:{oldPassword:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,showDialog:!1,mdiLockReset:S3,mdiLockPlusOutline:C3}},computed:{...Et(kt,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN})},watch:{showDialog(e){if(e){const t=this.$refs.form;t&&t.reset(),this.clearErrors()}},credentials:{handler(){const e=this.$refs.form;if(!e){this.submitButtonEnabled=!1;return}e.validate().then(({valid:t})=>this.submitButtonEnabled=t).catch(()=>{this.submitButtonEnabled=!1})},deep:!0}},mounted(){window.addEventListener("keyup",this._keyListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyListener)},methods:{...Gt(xn,["changePassword"]),...Gt(kt,["clearErrors"]),doUserChange(){return vt().changeUserPassword(this.user.pk,this.credentials).catch(console.error)},doSelfChange(){return this.changePassword(this.credentials).catch(console.error)},submit(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.isAdminMode?this.doUserChange():this.doSelfChange()}).catch(console.error)},_keyListener(e){e.stopImmediatePropagation()}}},yF={key:0,class:"codexFormSuccess"},bF=["value"];function _F(e,t,n,r,i,o){const l=P_,u=Bo;return n.user?(ie(),je(el,{key:0,modelValue:i.showDialog,"onUpdate:modelValue":t[7]||(t[7]=f=>i.showDialog=f),origin:"center-top",transition:"slide-y-transition","max-width":"22em"},{activator:se(({props:f})=>[n.isAdminMode?(ie(),je(Kt,Oe({key:0,icon:""},f,{size:n.size,density:n.density,title:"Change Password"}),{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiLockPlusOutline),1)]),_:1})]),_:2},1040,["size","density"])):(ie(),je(kr,dh(Oe({key:1},f)),{default:se(()=>[y(tl,null,{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiLockReset),1)]),_:1}),Te("Change Password ")]),_:1})]),_:2},1040))]),default:se(()=>[e.formSuccess?(ie(),Fe("div",yF,[Te(be(e.formSuccess)+" ",1),y(l,{onClick:t[0]||(t[0]=f=>i.showDialog=!1)})])):(ie(),je(bm,{key:1,ref:"form",class:"changePasswordForm"},{default:se(()=>[D("h2",null,"User "+be(n.user.username),1),D("input",{name:"username",autocomplete:"username",disabled:"",type:"text",class:"hidden",value:n.user.username},null,8,bF),n.isAdminMode?Lt("",!0):(ie(),je(Cn,{key:0,ref:"oldPassword",modelValue:i.credentials.oldPassword,"onUpdate:modelValue":t[1]||(t[1]=f=>i.credentials.oldPassword=f),autocomplete:"current-password",label:"Old Password",rules:i.rules.oldPassword,clearable:"",type:"password",autofocus:"",onKeydown:t[2]||(t[2]=cs(f=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"])),y(Cn,{ref:"password",modelValue:i.credentials.password,"onUpdate:modelValue":t[3]||(t[3]=f=>i.credentials.password=f),autocomplete:"new-password",label:"New Password",rules:i.rules.password,clearable:"",type:"password",autofocus:n.isAdminMode,onKeydown:t[4]||(t[4]=cs(f=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules","autofocus"]),y(Cn,{ref:"passwordConfirm",modelValue:i.credentials.passwordConfirm,"onUpdate:modelValue":t[5]||(t[5]=f=>i.credentials.passwordConfirm=f),autocomplete:"new-password",label:"Confirm Password",rules:i.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"]),y(u,{verb:"Change",table:"Password",disabled:!i.submitButtonEnabled,onSubmit:o.submit,onCancel:t[6]||(t[6]=f=>i.showDialog=!1)},null,8,["disabled","onSubmit"])]),_:1},512))]),_:1},8,["modelValue"])):Lt("",!0)}const kc=ot(pF,[["render",_F],["__scopeId","data-v-19b56e24"]]);const Y_=Symbol.for("vuetify:selection-control-group"),Z_=Ve({color:String,disabled:Boolean,error:Boolean,id:String,inline:Boolean,falseIcon:St,trueIcon:St,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:Oi},...jt(),...zr()},"v-selection-control-group"),G8=Pe()({name:"VSelectionControlGroup",props:{defaultsTarget:{type:String,default:"VSelectionControl"},...tt(),...Z_()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"modelValue"),i=cr(),o=R(()=>e.id||`v-selection-control-group-${i}`),l=R(()=>e.name||o.value),u=new Set;return Pt(Y_,{modelValue:r,forceUpdate:()=>{u.forEach(f=>f())},onForceUpdate:f=>{u.add(f),Sn(()=>{u.delete(f)})}}),Kn({[e.defaultsTarget]:{color:Se(e,"color"),disabled:Se(e,"disabled"),density:Se(e,"density"),error:Se(e,"error"),inline:Se(e,"inline"),modelValue:r,multiple:R(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),name:l,falseIcon:Se(e,"falseIcon"),trueIcon:Se(e,"trueIcon"),readonly:Se(e,"readonly"),ripple:Se(e,"ripple"),type:Se(e,"type"),valueComparator:Se(e,"valueComparator")}}),$e(()=>{var f;return y("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class],style:e.style,role:e.type==="radio"?"radiogroup":void 0},[(f=n.default)==null?void 0:f.call(n)])}),{}}}),xm=Ve({label:String,trueValue:null,falseValue:null,value:null,...tt(),...Z_()},"v-selection-control");function wF(e){const t=rt(Y_,void 0),{densityClasses:n}=Wr(e),r=bt(e,"modelValue"),i=R(()=>e.trueValue!==void 0?e.trueValue:e.value!==void 0?e.value:!0),o=R(()=>e.falseValue!==void 0?e.falseValue:!1),l=R(()=>!!e.multiple||e.multiple==null&&Array.isArray(r.value)),u=R({get(){const m=t?t.modelValue.value:r.value;return l.value?m.some(v=>e.valueComparator(v,i.value)):e.valueComparator(m,i.value)},set(m){if(e.readonly)return;const v=m?i.value:o.value;let p=v;l.value&&(p=m?[...$r(r.value),v]:$r(r.value).filter(b=>!e.valueComparator(b,i.value))),t?t.modelValue.value=p:r.value=p}}),{textColorClasses:f,textColorStyles:d}=Tr(R(()=>u.value&&!e.error&&!e.disabled?e.color:void 0)),h=R(()=>u.value?e.trueIcon:e.falseIcon);return{group:t,densityClasses:n,trueValue:i,falseValue:o,model:u,textColorClasses:f,textColorStyles:d,icon:h}}const sh=Pe()({name:"VSelectionControl",directives:{Ripple:Xa},inheritAttrs:!1,props:xm(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{group:i,densityClasses:o,icon:l,model:u,textColorClasses:f,textColorStyles:d,trueValue:h}=wF(e),m=cr(),v=R(()=>e.id||`input-${m}`),p=J(!1),b=J(!1),S=J();i==null||i.onForceUpdate(()=>{S.value&&(S.value.checked=u.value)});function T(C){p.value=!0,(!jd||jd&&C.target.matches(":focus-visible"))&&(b.value=!0)}function A(){p.value=!1,b.value=!1}function w(C){e.readonly&&i&&Yt(()=>i.forceUpdate()),u.value=C.target.checked}return $e(()=>{var F,O;const C=r.label?r.label({label:e.label,props:{for:v.value}}):e.label,[V,L]=mc(n);return y("div",Oe({class:["v-selection-control",{"v-selection-control--dirty":u.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":p.value,"v-selection-control--focus-visible":b.value,"v-selection-control--inline":e.inline},o.value,e.class]},V,{style:e.style}),[y("div",{class:["v-selection-control__wrapper",f.value],style:d.value},[(F=r.default)==null?void 0:F.call(r),qt(y("div",{class:["v-selection-control__input"]},[l.value&&y(ht,{key:"icon",icon:l.value},null),y("input",Oe({ref:S,checked:u.value,disabled:e.disabled,id:v.value,onBlur:A,onFocus:T,onInput:w,"aria-disabled":e.readonly,type:e.type,value:h.value,name:e.name,"aria-checked":e.type==="checkbox"?u.value:void 0},L),null),(O=r.input)==null?void 0:O.call(r,{model:u,textColorClasses:f,textColorStyles:d,props:{onFocus:T,onBlur:A,id:v.value}})]),[[Sr("ripple"),e.ripple&&[!e.disabled&&!e.readonly,null,["center","circle"]]]])]),C&&y(G_,{for:v.value,clickable:!0},{default:()=>[C]})])}),{isFocused:p,input:S}}}),CF=Pe()({name:"VSwitch",inheritAttrs:!1,props:{indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Tc(),...xm()},emits:{"update:focused":e=>!0,"update:modelValue":()=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const i=bt(e,"indeterminate"),o=bt(e,"modelValue"),{loaderClasses:l}=Cc(e),{isFocused:u,focus:f,blur:d}=Ec(e),h=R(()=>typeof e.loading=="string"&&e.loading!==""?e.loading:e.color),m=cr(),v=R(()=>e.id||`switch-${m}`);function p(){i.value&&(i.value=!1)}return $e(()=>{const[b,S]=mc(n),[T,A]=xo.filterProps(e),[w,C]=sh.filterProps(e),V=J();function L(F){var O,k;F.stopPropagation(),F.preventDefault(),(k=(O=V.value)==null?void 0:O.input)==null||k.click()}return y(xo,Oe({class:["v-switch",{"v-switch--inset":e.inset},{"v-switch--indeterminate":i.value},l.value,e.class],style:e.style},b,T,{id:v.value,focused:u.value}),{...r,default:F=>{let{id:O,messagesId:k,isDisabled:z,isReadonly:W,isValid:H}=F;return y(sh,Oe({ref:V},w,{modelValue:o.value,"onUpdate:modelValue":[U=>o.value=U,p],id:O.value,"aria-describedby":k.value,type:"checkbox","aria-checked":i.value?"mixed":void 0,disabled:z.value,readonly:W.value,onFocus:f,onBlur:d},S),{...r,default:()=>y("div",{class:"v-switch__track",onClick:L},null),input:U=>{let{textColorClasses:q,textColorStyles:G}=U;return y("div",{class:["v-switch__thumb",q.value],style:G.value},[e.loading&&y(dm,{name:"v-switch",active:!0,color:H.value===!1?void 0:h.value},{default:me=>r.loader?r.loader(me):y(f_,{active:me.isActive,color:me.color,indeterminate:!0,size:"16",width:"2"},null)})])}})}})}),{}}}),SF={name:"AuthLoginDialog",components:{SubmitFooter:Bo},data(){return{rules:{username:[e=>!!e||"Username is required"],password:[e=>e?this.registerMode&&e.length<this.MIN_PASSWORD_LEN?`Password must be ${this.MIN_PASSWORD_LEN} characters long`:!0:"Password is required"],passwordConfirm:[e=>e===this.credentials.password||"Passwords must match"]},formModel:{},credentials:{username:"",password:"",passwordConfirm:""},submitButtonEnabled:!1,showDialog:!1,registerMode:!1,mdiLogin:x3}},computed:{...Et(kt,{formErrors:e=>e.form.errors,formSuccess:e=>e.form.success}),...Et(xn,{adminFlags:e=>e.adminFlags,MIN_PASSWORD_LEN:e=>e.MIN_PASSWORD_LEN}),submitButtonLabel:function(){return this.registerMode?"Register":"Login"}},watch:{showDialog(e){e&&(this.loadAdminFlags(),this.$refs.form&&this.$refs.form.reset())},credentials:{handler(){const e=this.$refs.form;e?e.validate().then(({valid:t})=>this.submitButtonEnabled=t).catch(console.error):this.submitButtonEnabled=!1},deep:!0}},mounted(){window.addEventListener("keyup",this._keyListener)},beforeUnmount(){window.removeEventListener("keyup",this._keyListener)},methods:{...Gt(xn,["loadAdminFlags","login","register"]),doAuth(e){return this[e](this.credentials).then(()=>this.showDialog=this.formErrors&&this.formErrors.length>0).catch(console.error)},submit(){this.$refs.form.validate().then(({valid:t})=>{if(!t)return;const n=this.registerMode?"register":"login";return this.doAuth(n)}).catch(console.error)},_keyListener(e){e.stopImmediatePropagation()}}};function xF(e,t,n,r,i,o){const l=Bo;return ie(),je(el,{modelValue:i.showDialog,"onUpdate:modelValue":t[7]||(t[7]=u=>i.showDialog=u),origin:"center-top",transition:"slide-y-transition","max-width":"20em"},{activator:se(({props:u})=>[y(kr,dh($h(u)),{default:se(()=>[y(tl,null,{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiLogin),1)]),_:1}),Te(" Login ")]),_:1})]),_:2},1040)]),default:se(()=>[y(bm,{id:"authDialog",ref:"form"},{default:se(()=>[y(Cn,{modelValue:i.credentials.username,"onUpdate:modelValue":t[0]||(t[0]=u=>i.credentials.username=u),autocomplete:"username",label:"Username",rules:i.rules.username,clearable:"",autofocus:"",onKeydown:t[1]||(t[1]=cs(u=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),y(Cn,{ref:"password",modelValue:i.credentials.password,"onUpdate:modelValue":t[2]||(t[2]=u=>i.credentials.password=u),autocomplete:i.registerMode?"new-password":"current-password",label:"Password",rules:i.rules.password,clearable:"",type:"password",onKeydown:t[3]||(t[3]=cs(u=>{i.registerMode?e.$refs.passwordConfirm.focus():o.submit()},["enter"]))},null,8,["modelValue","autocomplete","rules"]),y(Ya,null,{default:se(()=>[i.registerMode?(ie(),je(Cn,{key:0,ref:"passwordConfirm",modelValue:i.credentials.passwordConfirm,"onUpdate:modelValue":t[4]||(t[4]=u=>i.credentials.passwordConfirm=u),autocomplete:"new-password",label:"Confirm Password",rules:i.rules.passwordConfirm,clearable:"",type:"password",onKeydown:cs(o.submit,["enter"])},null,8,["modelValue","rules","onKeydown"])):Lt("",!0)]),_:1}),e.adminFlags.registration?(ie(),je(CF,{key:0,modelValue:i.registerMode,"onUpdate:modelValue":t[5]||(t[5]=u=>i.registerMode=u),label:"Register"},{default:se(()=>[Te(" Register ")]),_:1},8,["modelValue"])):Lt("",!0),y(l,{verb:i.registerMode?"Register":"Login",table:"",disabled:!i.submitButtonEnabled,onSubmit:o.submit,onCancel:t[6]||(t[6]=u=>i.showDialog=!1)},null,8,["verb","disabled","onSubmit"])]),_:1},512)]),_:1},8,["modelValue"])}const AF=ot(SF,[["render",xF],["__scopeId","data-v-ef06f84f"]]),EF={name:"AuthLogoutItem",data:function(){return{mdiLogout:A3}},computed:{...Et(xn,{username:e=>e.user.username})},methods:{...Gt(xn,["logout"])}};function TF(e,t,n,r,i,o){return ie(),je(kr,{onClick:e.logout},{default:se(()=>[y(tl,null,{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(e.mdiLogout),1)]),_:1}),Te("Logout "+be(e.username),1)]),_:1})]),_:1},8,["onClick"])}const kF=ot(EF,[["render",TF]]),PF={name:"AuthMenu",components:{ChangePasswordDialog:kc,AuthLoginDialog:AF,AuthLogoutItem:kF},computed:{...Et(xn,{user:e=>e.user})},methods:{...Gt(xn,["logout"])}};function RF(e,t,n,r,i,o){const l=Vt("AuthLogoutItem"),u=kc,f=Vt("AuthLoginDialog");return ie(),Fe(Ke,null,[e.user?(ie(),je(l,{key:0})):Lt("",!0),e.user?(ie(),je(u,{key:1,user:e.user},null,8,["user"])):(ie(),je(f,{key:2}))],64)}const X_=ot(PF,[["render",RF]]);const iy=Wn(Ih(()=>ur(()=>import("./admin-drawer-panel-a110c068.js").then(e=>e.a),["assets/admin-drawer-panel-a110c068.js","assets/admin-drawer-panel-cce8c0aa.css"]))),IF={name:"SettingsCommonPanel",components:{AuthMenu:X_,AdminMenu:iy},props:{adminMenu:{type:Boolean,default:!0}},data(){return{AdminMenu:iy}},computed:{...Rr(xn,["isUserAdmin"])}},LF={id:"commonPanel"};function OF(e,t,n,r,i,o){const l=X_;return ie(),Fe("div",LF,[y(l),e.isUserAdmin?(ie(),je(Du,{key:0})):Lt("",!0),e.isUserAdmin?(ie(),je(Li(i.AdminMenu),{key:1,menu:n.adminMenu},null,8,["menu"])):Lt("",!0)])}const VF=ot(IF,[["render",OF],["__scopeId","data-v-5cc55029"]]),FF=e=>{const t=jn();return et.get(`c/${e}`,{params:t})},MF=()=>{const e=jn();return et.get("c/settings",{params:e})},BF=e=>et.put("c/settings",e),j8=e=>{const t=fc(e),n=jn().ts;return`${t}/download/comic-${e}.cbz?ts=${n}`},K8=({pk:e,page:t})=>{const n=fc(e),r=jn().ts;return`${n}/${t}/page.jpg?ts=${r}`},q8=({pk:e,page:t})=>{const n=Zh(e),r=jn().ts;return`${n}/${t}/page.jpg?ts=${r}`},pd={getReaderBasePath:Zh,getReaderInfo:FF,getReaderSettings:MF,setReaderSettings:BF},DF=function(e){let t;return e?t=e.length===4&&!Number.isNaN(e)?" ("+e+")":" v"+e:t="",t},$F=function({issue:e,issueSuffix:t},n){let r;try{e==null&&!t&&(e=0);const i=Number.parseFloat(e),o=Math.floor(i);n===void 0&&(n=0),i===o?r=o.toString():(r=i.toString(),n+=r.split(".")[1].length+1),r=r.padStart(n,"0")}catch{r=""}return t&&(r+=t),r},HF=function({issue:e,issueSuffix:t,issueCount:n},r){let i="#"+$F({issue:e,issueSuffix:t},r);return n&&(i+=` of ${n}`),i},NF=function({seriesName:e,volumeName:t,issue:n,issueSuffix:r,issueCount:i},o){const l=DF(t),u=HF({issue:n,issueSuffix:r,issueCount:i},o);return[e,l,u].filter(Boolean).join(" ")},J_={fitTo:"",twoPages:null,vertical:null,readInReverse:null};Object.freeze(J_);const vu=new Set(["",null,void 0]);Object.freeze(vu);const Q_={prev:"next",next:"prev"};Object.freeze(Q_);const UF=()=>Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>600?"HEIGHT":"WIDTH",zF=Na("reader",{state:()=>({choices:{fitTo:sr.reader.fitTo,nullValues:vu},readerSettings:{fitTo:UF(),twoPages:!1,readInReverse:!1,readRtlInReverse:!1,vertical:!0},books:new Map,seriesCount:0,pk:void 0,page:void 0,routes:{prev:!1,next:!1,books:{prev:!1,next:!1}},bookChange:void 0,reactWithScroll:!1}),getters:{activeBook(e){return e.books.get(e.pk)},activeSettings(e){return this.getSettings(e.activeBook)},activeTitle(e){const t=e.activeBook;return t?NF(t):""},prevBookChangeShow(e){return e.page===0},nextBookChangeShow(e){const t=e.activeBook?e.activeBook.maxPage:0,n=e.activeSettings.twoPages&&!e.activeSettings.vertical?1:0,r=t+n;return e.page>=r},isOnCoverPage(e){return this._isCoverPage(e.activeBook,e.page)}},actions:{getSettings(e){const t=e?e.settings:{},n={};for(const[i,o]of Object.entries(this.readerSettings)){const l=t[i],u=vu.has(l)?o:l;n[i]=u}return(e?e.readLtr:void 0)===!1&&vu.has(n.readInReverse)&&(n.readInReverse=this.readerSettings.readRtlInReverse),n.twoPages=n.twoPages&&!n.vertical,n},_isCoverPage(e,t){return e.readLtr!==!1&&t===0||e.readLtr&&t===e.maxPage},_numericValues(e){if(!e)return e;const t={};for(const[n,r]of Object.entries(e))t[n]=+r;return t},_getRouteParams(e,t){const n=t==="prev"?-1:1;let r=1;this.activeSettings.twoPages&&!this._isCoverPage(this.activeBook,+e+n)&&(r=2),r=r*n;const i=+e+r;let o=!1;return i>=0&&i<=this.activeBook.maxPage&&(o={pk:this.pk,page:i}),o},_updateSettings(e,t){if(e===0)this.readerSettings={...this.readerSettings,...t};else{const n=this.books.get(e);n.settings={...n.settings,...t}}},_setRoutes(e){this.$patch(t=>{t.routes.prev=this._getRouteParams(e,"prev"),t.routes.next=this._getRouteParams(e,"next")})},_getBookRoutePage(e,t,n){const r=e.books.get(t);let i=0;if(n&&r.readLtr!==!1||!n&&r.readLtr===!1){const l=this.getSettings(r).twoPages?-1:0;i=r.maxPage+l}return i},_getBookRoutes(e,t,n){let r=!1;if(t){const o=this._getBookRoutePage(e,t,!0);r={pk:t,page:o}}let i=!1;if(n){const o=this._getBookRoutePage(e,n,!1);i={pk:n,page:o}}return{prev:r,next:i}},async setRoutesAndBookmarkPage(e){this._setRoutes(e),await this._setBookmarkPage(e).then(()=>(this.bookChange=void 0,!0))},setActivePage(e,t=!0){if(e<0)return console.warn("Page out of bounds. Redirecting to 0."),this.routeToPage(0);if(e>this.activeBook.maxPage)return console.warn(`Page out of bounds. Redirecting to ${this.activeBook.maxPage}.`),this.routeToPage(this.activeBook.maxPage);if(this.reactWithScroll=!!t,this.page=+e,this.setRoutesAndBookmarkPage(e),this.activeSettings.vertical){const n={params:{pk:this.pk,page:e}},{href:r}=pr.resolve(n);window.history.pushState({},void 0,r)}else window.scrollTo(0,0)},async loadReaderSettings(){return pd.getReaderSettings().then(e=>{const t=e.data;return this._updateSettings(0,t),!0}).catch(console.error)},async loadBooks(e){const t=this._numericValues(e);await pd.getReaderInfo(t.pk).then(n=>{const r=n.data;let i=!1,o=!1;return this.$patch(l=>{const u=new Map;for(const[f,d]of r.books.entries())d.pk!==t.pk&&(f===0?i=d.pk:o=d.pk),u.set(d.pk,Qt(d));l.books=u,l.seriesCount=r.seriesCount,l.pk=t.pk,l.routes.books=this._getBookRoutes(l,i,o)}),this._setRoutes(t.page),!0}).catch(n=>{console.debug(n);const r=hc().page,i=r&&r.routes?r.routes.last:{name:"home"};return pr.push(i)})},async _setBookmarkPage(e){const t={group:"c",pk:this.pk};e=Math.max(Math.min(this.activeBook.maxPage,e),0);const n={page:e};await vi.setGroupBookmarks(t,n)},async setSettingsLocal(e,t){const n=this._numericValues(e);this._updateSettings(n.pk,t),await vi.setGroupBookmarks({group:"c",pk:n.pk},this.activeBook.settings)},async clearSettingsLocal(e){const t=this._numericValues(e);await this.setSettingsLocal(t,J_)},async setSettingsGlobal(e,t){const n=this._numericValues(e);this._updateSettings(0,t),await pd.setReaderSettings(this.readerSettings),await this.clearSettingsLocal(n)},setBookChangeFlag(e){this.bookChange=this.routes.books[e]?e:void 0},normalizeDirection(e){return this.activeSettings.readInReverse?Q_[e]:e},_validateRoute(e){const t=this.books.get(e.pk);if(!t)return{};const n=t.maxPage??0;return e.page>n?(e.page=n,console.warn("Tried to navigate past the end of the book.")):e.page<0&&(e.page=0,console.warn("Tried to navigate before the beginning of the book.")),e},_routeTo(e){if(e=this._validateRoute(e),this.activeSettings.vertical&&+e.pk===this.pk)this.setActivePage(+e.page,!0);else{const t={name:"reader",params:e};pr.push(t).catch(console.debug)}},routeToDirectionOne(e){e=this.normalizeDirection(e);const t=e==="prev"?-1:1,n=this.page+=t;if(n<0||n>this.activeBook.maxPage)return;const r={pk:this.pk,page:n};this._routeTo(r)},routeToDirection(e){if(e=this.normalizeDirection(e),this.routes[e]){const t=this.routes[e];this._routeTo(t)}else this.routes.books[e]?this.bookChange===e?this._routeTo(this.routes.books[e]):this.setBookChangeFlag(e):console.debug("No route to direction",e)},routeToPage(e){const t={pk:this.pk,page:e};this._routeTo(t)},routeToBook(e){this._routeTo(this.routes.books[e])}}});function WF(e){let{rootEl:t,isSticky:n,layoutItemStyles:r}=e;const i=J(!1),o=J(0),l=R(()=>{const d=typeof i.value=="boolean"?"top":i.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,i.value?{[d]:ke(o.value)}:{top:r.value.top}]});ar(()=>{De(n,d=>{d?window.addEventListener("scroll",f,{passive:!0}):window.removeEventListener("scroll",f)},{immediate:!0})}),On(()=>{document.removeEventListener("scroll",f)});let u=0;function f(){const d=u>window.scrollY?"up":"down",h=t.value.getBoundingClientRect(),m=parseFloat(r.value.top??0),v=window.scrollY-Math.max(0,o.value-m),p=h.height+Math.max(o.value,m)-window.scrollY-window.innerHeight;h.height<window.innerHeight-m?(i.value="top",o.value=m):d==="up"&&i.value==="bottom"||d==="down"&&i.value==="top"?(o.value=window.scrollY+h.top,i.value=!0):d==="down"&&p<=0?(o.value=0,i.value="bottom"):d==="up"&&v<=0&&(o.value=h.top+v,i.value="top"),u=window.scrollY}return{isStuck:i,stickyStyles:l}}const GF=100,jF=20;function oy(e){const t=1.41421356237;return(e<0?-1:1)*Math.sqrt(Math.abs(e))*t}function ay(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const r=oy(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return oy(t)*1e3}function KF(){const e={};function t(i){Array.from(i.changedTouches).forEach(o=>{(e[o.identifier]??(e[o.identifier]=new _V(jF))).push([i.timeStamp,o])})}function n(i){Array.from(i.changedTouches).forEach(o=>{delete e[o.identifier]})}function r(i){var d;const o=(d=e[i])==null?void 0:d.values().reverse();if(!o)throw new Error(`No samples for touch id ${i}`);const l=o[0],u=[],f=[];for(const h of o){if(l[0]-h[0]>GF)break;u.push({t:h[0],d:h[1].clientX}),f.push({t:h[0],d:h[1].clientY})}return{x:ay(u),y:ay(f),get direction(){const{x:h,y:m}=this,[v,p]=[Math.abs(h),Math.abs(m)];return v>p&&h>=0?"right":v>p&&h<=0?"left":p>v&&m>=0?"down":p>v&&m<=0?"up":qF()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function qF(){throw new Error}function YF(e){let{isActive:t,isTemporary:n,width:r,touchless:i,position:o}=e;ar(()=>{window.addEventListener("touchstart",A,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",C,{passive:!0})}),On(()=>{window.removeEventListener("touchstart",A),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",C)});const l=R(()=>["left","right"].includes(o.value)),{addMovement:u,endTouch:f,getVelocity:d}=KF();let h=!1;const m=J(!1),v=J(0),p=J(0);let b;function S(L,F){return(o.value==="left"?L:o.value==="right"?document.documentElement.clientWidth-L:o.value==="top"?L:o.value==="bottom"?document.documentElement.clientHeight-L:ro())-(F?r.value:0)}function T(L){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const O=o.value==="left"?(L-p.value)/r.value:o.value==="right"?(document.documentElement.clientWidth-L-p.value)/r.value:o.value==="top"?(L-p.value)/r.value:o.value==="bottom"?(document.documentElement.clientHeight-L-p.value)/r.value:ro();return F?Math.max(0,Math.min(1,O)):O}function A(L){if(i.value)return;const F=L.changedTouches[0].clientX,O=L.changedTouches[0].clientY,k=25,z=o.value==="left"?F<k:o.value==="right"?F>document.documentElement.clientWidth-k:o.value==="top"?O<k:o.value==="bottom"?O>document.documentElement.clientHeight-k:ro(),W=t.value&&(o.value==="left"?F<r.value:o.value==="right"?F>document.documentElement.clientWidth-r.value:o.value==="top"?O<r.value:o.value==="bottom"?O>document.documentElement.clientHeight-r.value:ro());(z||W||t.value&&n.value)&&(h=!0,b=[F,O],p.value=S(l.value?F:O,t.value),v.value=T(l.value?F:O),f(L),u(L))}function w(L){const F=L.changedTouches[0].clientX,O=L.changedTouches[0].clientY;if(h){if(!L.cancelable){h=!1;return}const z=Math.abs(F-b[0]),W=Math.abs(O-b[1]);(l.value?z>W&&z>3:W>z&&W>3)?(m.value=!0,h=!1):(l.value?W:z)>3&&(h=!1)}if(!m.value)return;L.preventDefault(),u(L);const k=T(l.value?F:O,!1);v.value=Math.max(0,Math.min(1,k)),k>1?p.value=S(l.value?F:O,!0):k<0&&(p.value=S(l.value?F:O,!1))}function C(L){if(h=!1,!m.value)return;u(L),m.value=!1;const F=d(L.changedTouches[0].identifier),O=Math.abs(F.x),k=Math.abs(F.y);(l.value?O>k&&O>400:k>O&&k>3)?t.value=F.direction===({left:"right",right:"left",top:"down",bottom:"up"}[o.value]||ro()):t.value=v.value>.5}const V=R(()=>m.value?{transform:o.value==="left"?`translateX(calc(-100% + ${v.value*r.value}px))`:o.value==="right"?`translateX(calc(100% - ${v.value*r.value}px))`:o.value==="top"?`translateY(calc(-100% + ${v.value*r.value}px))`:o.value==="bottom"?`translateY(calc(100% - ${v.value*r.value}px))`:ro(),transition:"none"}:void 0);return{isDragging:m,dragProgress:v,dragStyles:V}}function ro(){throw new Error}const ZF=["start","end","left","right","top","bottom"],XF=Pe()({name:"VNavigationDrawer",props:{color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[String,Boolean],default:!0},image:String,temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>ZF.includes(e)},sticky:Boolean,...qs(),...tt(),...ys(),...zb(),...fr(),...$t({tag:"nav"}),...jt()},emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{isRtl:o}=Vo(),{themeClasses:l}=tn(e),{borderClasses:u}=Ys(e),{backgroundColorClasses:f,backgroundColorStyles:d}=Gn(Se(e,"color")),{elevationClasses:h}=bs(e),{mobile:m}=lm(),{roundedClasses:v}=dr(e),p=C_(),b=bt(e,"modelValue",null,_e=>!!_e),{ssrBootStyles:S}=Ac(),T=J(),A=J(!1),w=R(()=>e.rail&&e.expandOnHover&&A.value?Number(e.width):Number(e.rail?e.railWidth:e.width)),C=R(()=>Zd(e.location,o.value)),V=R(()=>!e.permanent&&(m.value||e.temporary)),L=R(()=>e.sticky&&!V.value&&C.value!=="bottom");e.expandOnHover&&e.rail!=null&&De(A,_e=>r("update:rail",!_e)),e.disableResizeWatcher||De(V,_e=>!e.permanent&&Yt(()=>b.value=!_e)),!e.disableRouteWatcher&&p&&De(p.currentRoute,()=>V.value&&(b.value=!1)),De(()=>e.permanent,_e=>{_e&&(b.value=!0)}),Ha(()=>{e.modelValue!=null||V.value||(b.value=e.permanent||!m.value)});const{isDragging:F,dragProgress:O,dragStyles:k}=YF({isActive:b,isTemporary:V,width:w,touchless:Se(e,"touchless"),position:C}),z=R(()=>{const _e=V.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):w.value;return F.value?_e*O.value:_e}),{layoutItemStyles:W,layoutRect:H,layoutItemScrimStyles:U}=Wb({id:e.name,order:R(()=>parseInt(e.order,10)),position:C,layoutSize:z,elementSize:w,active:R(()=>b.value||F.value),disableTransitions:R(()=>F.value),absolute:R(()=>e.absolute||L.value&&typeof q.value!="string")}),{isStuck:q,stickyStyles:G}=WF({rootEl:T,isSticky:L,layoutItemStyles:W}),me=Gn(R(()=>typeof e.scrim=="string"?e.scrim:null)),ce=R(()=>({...F.value?{opacity:O.value*.2,transition:"none"}:void 0,...H.value?{left:ke(H.value.left),right:ke(H.value.right),top:ke(H.value.top),bottom:ke(H.value.bottom)}:void 0,...U.value}));Kn({VList:{bgColor:"transparent"}});function he(){A.value=!0}function fe(){A.value=!1}return $e(()=>{const _e=i.image||e.image;return y(Ke,null,[y(e.tag,Oe({ref:T,onMouseenter:he,onMouseleave:fe,class:["v-navigation-drawer",`v-navigation-drawer--${C.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":A.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":V.value,"v-navigation-drawer--active":b.value,"v-navigation-drawer--sticky":L.value},l.value,f.value,u.value,h.value,v.value,e.class],style:[d.value,W.value,k.value,S.value,G.value,e.style]},n),{default:()=>{var ve,pe,le,Ne;return[_e&&y("div",{key:"image",class:"v-navigation-drawer__img"},[i.image?(ve=i.image)==null?void 0:ve.call(i,{image:e.image}):y("img",{src:e.image,alt:""},null)]),i.prepend&&y("div",{class:"v-navigation-drawer__prepend"},[(pe=i.prepend)==null?void 0:pe.call(i)]),y("div",{class:"v-navigation-drawer__content"},[(le=i.default)==null?void 0:le.call(i)]),i.append&&y("div",{class:"v-navigation-drawer__append"},[(Ne=i.append)==null?void 0:Ne.call(i)])]}}),y(Ar,{name:"fade-transition"},{default:()=>[V.value&&(F.value||b.value)&&!!e.scrim&&y("div",{class:["v-navigation-drawer__scrim",me.backgroundColorClasses.value],style:[ce.value,me.backgroundColorStyles.value],onClick:()=>b.value=!1},null)]})])}),{isStuck:q}}}),JF={name:"SettingsDrawer",components:{SettingsCommonPanel:VF,SettingsFooter:k_,VersionFooter:t_},props:{title:{type:String,required:!0},panel:{type:Object,required:!0},admin:{type:Boolean,default:!1}},computed:{...Rr(xn,["isCodexViewable"]),...zh(kt,["isSettingsDrawerOpen"]),...Et(zF,{invisibleHack:e=>e.bookChange==="next"}),adminAndNotSmall(){return this.admin&&!this.$vuetify.display.smAndDown}},mounted(){this.isSettingsDrawerOpen=this.adminAndNotSmall}},QF={class:"settingsDrawerContainer"},eM={id:"topBlock"},tM={class:"settingsHeader"},nM={id:"footerGroup"};function rM(e,t,n,r,i,o){const l=Vt("SettingsCommonPanel"),u=k_,f=t_;return ie(),je(XF,Oe(e.$attrs,{modelValue:e.isSettingsDrawerOpen,"onUpdate:modelValue":t[0]||(t[0]=d=>e.isSettingsDrawerOpen=d),"disable-resize-watcher":"","disable-route-watcher":"",location:"right",scrim:!o.adminAndNotSmall,temporary:!o.adminAndNotSmall,touchless:""}),{append:se(()=>[y(f)]),default:se(()=>[D("div",QF,[D("div",eM,[D("header",tM,[D("h3",null,be(n.title),1)]),e.isCodexViewable?(ie(),je(Li(n.panel),{key:0})):Lt("",!0),e.isCodexViewable?(ie(),je(Du,{key:1})):Lt("",!0),y(l,{"admin-menu":!n.admin},null,8,["admin-menu"]),y(Du)]),D("div",nM,[y(u)])])]),_:1},16,["modelValue","scrim","temporary"])}const ew=ot(JF,[["render",rM],["__scopeId","data-v-881e9ee1"]]),ly=Wn(Ih(()=>ur(()=>import("./admin-drawer-panel-a110c068.js").then(e=>e.b),["assets/admin-drawer-panel-a110c068.js","assets/admin-drawer-panel-cce8c0aa.css"]))),sM={name:"SettingsDrawerButton",components:{AdminSettingsButtonProgress:ly},data(){return{mdiMenu:E3,AdminSettingsButtonProgress:ly}},computed:{...Et(xn,["isUserAdmin"])}};function iM(e,t,n,r,i,o){return ie(),je(Kt,Oe(e.$attrs,{icon:"",title:"Settings"}),{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiMenu),1)]),_:1}),e.isUserAdmin?(ie(),je(Li(i.AdminSettingsButtonProgress),{key:0})):Lt("",!0)]),_:1},16)}const oM=ot(sM,[["render",iM]]);const aM=Ve({text:String,...tt(),...$t()},"v-toolbar-title"),tw=Pe()({name:"VToolbarTitle",props:aM(),setup(e,t){let{slots:n}=t;return $e(()=>{const r=!!(n.default||n.text||e.text);return y(e.tag,{class:["v-toolbar-title",e.class],style:e.style},{default:()=>{var i;return[r&&y("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,(i=n.default)==null?void 0:i.call(n)])]}})}),{}}}),lM=[null,"prominent","default","comfortable","compact"],uM=Ve({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:e=>lM.includes(e)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...qs(),...tt(),...ys(),...fr(),...$t({tag:"header"}),...jt()},"v-toolbar"),cM=Pe()({name:"VToolbar",props:uM(),setup(e,t){var v;let{slots:n}=t;const{backgroundColorClasses:r,backgroundColorStyles:i}=Gn(Se(e,"color")),{borderClasses:o}=Ys(e),{elevationClasses:l}=bs(e),{roundedClasses:u}=dr(e),{themeClasses:f}=tn(e),d=J(!!(e.extended||(v=n.extension)!=null&&v.call(n))),h=R(()=>parseInt(Number(e.height)+(e.density==="prominent"?Number(e.height):0)-(e.density==="comfortable"?8:0)-(e.density==="compact"?16:0),10)),m=R(()=>d.value?parseInt(Number(e.extensionHeight)+(e.density==="prominent"?Number(e.extensionHeight):0)-(e.density==="comfortable"?4:0)-(e.density==="compact"?8:0),10):0);return Kn({VBtn:{variant:"text"}}),$e(()=>{var T;const p=!!(e.title||n.title),b=!!(n.image||e.image),S=(T=n.extension)==null?void 0:T.call(n);return d.value=!!(e.extended||S),y(e.tag,{class:["v-toolbar",{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,o.value,l.value,u.value,f.value,e.class],style:[i.value,e.style]},{default:()=>[b&&y("div",{key:"image",class:"v-toolbar__image"},[n.image?y(un,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):y($_,{key:"image-img",cover:!0,src:e.image},null)]),y(un,{defaults:{VTabs:{height:ke(h.value)}}},{default:()=>{var A,w,C;return[y("div",{class:"v-toolbar__content",style:{height:ke(h.value)}},[n.prepend&&y("div",{class:"v-toolbar__prepend"},[(A=n.prepend)==null?void 0:A.call(n)]),p&&y(tw,{key:"title",text:e.title},{text:n.title}),(w=n.default)==null?void 0:w.call(n),n.append&&y("div",{class:"v-toolbar__append"},[(C=n.append)==null?void 0:C.call(n)])])]}}),y(un,{defaults:{VTabs:{height:ke(m.value)}}},{default:()=>[y(Ya,null,{default:()=>[d.value&&y("div",{class:"v-toolbar__extension",style:{height:ke(m.value)}},[S])]})]})]})}),{contentHeight:h,extensionHeight:m}}}),Y8=Pe()({name:"VToolbarItems",props:{...tt(),...Zs({variant:"text"})},setup(e,t){let{slots:n}=t;return Kn({VBtn:{color:Se(e,"color"),height:"inherit",variant:Se(e,"variant")}}),$e(()=>{var r;return y("div",{class:["v-toolbar-items",e.class],style:e.style},[(r=n.default)==null?void 0:r.call(n)])}),{}}}),fM={name:"AdminTitleToolbar",components:{SettingsDrawerButton:oM},computed:{...zh(kt,["isSettingsDrawerOpen"])}};function dM(e,t,n,r,i,o){const l=Vt("SettingsDrawerButton");return ie(),je(cM,{id:"titleBar",class:Cr(["codexToolbar",{drawerMargin:!e.$vuetify.display.mdAndDown}]),density:"compact",elevation:"8"},{default:se(()=>[y(tw,{class:"codexToolbarTitle"},{default:se(()=>[Te(" Codex Administration ")]),_:1}),y(l,{class:Cr({invisible:e.isSettingsDrawerOpen}),disabled:e.isSettingsDrawerOpen,plain:e.isSettingsDrawerOpen,onClick:t[0]||(t[0]=u=>e.isSettingsDrawerOpen=!0)},null,8,["class","disabled","plain"])]),_:1},8,["class"])}const nw=ot(fM,[["render",dM],["__scopeId","data-v-15c77dc3"]]),hM={name:"AdminSettingsPanel",data(){return{mdiBookshelf:p3}},computed:{...Et(hc,{browserRoute:e=>e.page.routes.last?{name:"browser",params:e.page.routes.last}:{name:"home"}})}};function mM(e,t,n,r,i,o){return ie(),je(kr,{ref:"browserLink",to:e.browserRoute},{default:se(()=>[y(tl,null,{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(i.mdiBookshelf),1)]),_:1}),Te("Browser ")]),_:1})]),_:1},8,["to"])}const vM=ot(hM,[["render",mM]]);function uy(e){const n=Math.abs(e);return Math.sign(e)*(n/((1/.501-2)*(1-n)+1))}function cy(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:i,currentScrollOffset:o,isHorizontal:l}=e;const u=l?t.clientWidth:t.clientHeight,f=l?t.offsetLeft:t.offsetTop,d=i&&l?r-f-u:f,h=n+o,m=u+d,v=u*.4;return d<=o?o=Math.max(d-v,0):h<=m&&(o=Math.min(o-(h-m-v),r-n)),o}function gM(e){let{selectedElement:t,containerSize:n,contentSize:r,isRtl:i,isHorizontal:o}=e;const l=o?t.clientWidth:t.clientHeight,u=o?t.offsetLeft:t.offsetTop,f=i&&o?r-u-l/2-n/2:u+l/2-n/2;return Math.min(r-n,Math.max(0,f))}const pM=Symbol.for("vuetify:v-slide-group"),rw=Ve({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:pM},nextIcon:{type:St,default:"$next"},prevIcon:{type:St,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...tt(),...$t(),...bc({selectedClass:"v-slide-group-item--active"})},"v-slide-group"),fy=Pe()({name:"VSlideGroup",props:rw(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:r}=Vo(),{mobile:i}=lm(),o=Za(e,e.symbol),l=J(!1),u=J(0),f=J(0),d=J(0),h=R(()=>e.direction==="horizontal"),{resizeRef:m,contentRect:v}=ka(),{resizeRef:p,contentRect:b}=ka(),S=R(()=>o.selected.value.length?o.items.value.findIndex(ve=>ve.id===o.selected.value[0]):-1),T=R(()=>o.selected.value.length?o.items.value.findIndex(ve=>ve.id===o.selected.value[o.selected.value.length-1]):-1);if(Zt){let ve=-1;De(()=>[o.selected.value,v.value,b.value,h.value],()=>{cancelAnimationFrame(ve),ve=requestAnimationFrame(()=>{if(v.value&&b.value){const pe=h.value?"width":"height";f.value=v.value[pe],d.value=b.value[pe],l.value=f.value+1<d.value}if(S.value>=0&&p.value){const pe=p.value.children[T.value];S.value===0||!l.value?u.value=0:e.centerActive?u.value=gM({selectedElement:pe,containerSize:f.value,contentSize:d.value,isRtl:r.value,isHorizontal:h.value}):l.value&&(u.value=cy({selectedElement:pe,containerSize:f.value,contentSize:d.value,isRtl:r.value,currentScrollOffset:u.value,isHorizontal:h.value}))}})})}const A=J(!1);let w=0,C=0;function V(ve){const pe=h.value?"clientX":"clientY";C=(r.value&&h.value?-1:1)*u.value,w=ve.touches[0][pe],A.value=!0}function L(ve){if(!l.value)return;const pe=h.value?"clientX":"clientY",le=r.value&&h.value?-1:1;u.value=le*(C+w-ve.touches[0][pe])}function F(ve){const pe=d.value-f.value;u.value<0||!l.value?u.value=0:u.value>=pe&&(u.value=pe),A.value=!1}function O(){m.value&&(m.value[h.value?"scrollLeft":"scrollTop"]=0)}const k=J(!1);function z(ve){if(k.value=!0,!(!l.value||!p.value)){for(const pe of ve.composedPath())for(const le of p.value.children)if(le===pe){u.value=cy({selectedElement:le,containerSize:f.value,contentSize:d.value,isRtl:r.value,currentScrollOffset:u.value,isHorizontal:h.value});return}}}function W(ve){k.value=!1}function H(ve){var pe;!k.value&&!(ve.relatedTarget&&((pe=p.value)!=null&&pe.contains(ve.relatedTarget)))&&q()}function U(ve){p.value&&(h.value?ve.key==="ArrowRight"?q(r.value?"prev":"next"):ve.key==="ArrowLeft"&&q(r.value?"next":"prev"):ve.key==="ArrowDown"?q("next"):ve.key==="ArrowUp"&&q("prev"),ve.key==="Home"?q("first"):ve.key==="End"&&q("last"))}function q(ve){var pe,le,Ne,gt,Y;if(p.value)if(!ve)(pe=nm(p.value)[0])==null||pe.focus();else if(ve==="next"){const Z=(le=p.value.querySelector(":focus"))==null?void 0:le.nextElementSibling;Z?Z.focus():q("first")}else if(ve==="prev"){const Z=(Ne=p.value.querySelector(":focus"))==null?void 0:Ne.previousElementSibling;Z?Z.focus():q("last")}else ve==="first"?(gt=p.value.firstElementChild)==null||gt.focus():ve==="last"&&((Y=p.value.lastElementChild)==null||Y.focus())}function G(ve){const pe=u.value+(ve==="prev"?-1:1)*f.value;u.value=Pu(pe,0,d.value-f.value)}const me=R(()=>{let ve=u.value>d.value-f.value?-(d.value-f.value)+uy(d.value-f.value-u.value):-u.value;u.value<=0&&(ve=uy(-u.value));const pe=r.value&&h.value?-1:1;return{transform:`translate${h.value?"X":"Y"}(${pe*ve}px)`,transition:A.value?"none":"",willChange:A.value?"transform":""}}),ce=R(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),he=R(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!i.value;case!0:return l.value||Math.abs(u.value)>0;case"mobile":return i.value||l.value||Math.abs(u.value)>0;default:return!i.value&&(l.value||Math.abs(u.value)>0)}}),fe=R(()=>Math.abs(u.value)>0),_e=R(()=>d.value>Math.abs(u.value)+f.value);return $e(()=>y(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!h.value,"v-slide-group--has-affixes":he.value,"v-slide-group--is-overflowing":l.value},e.class],style:e.style,tabindex:k.value||o.selected.value.length?-1:0,onFocus:H},{default:()=>{var ve,pe,le;return[he.value&&y("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!fe.value}],onClick:()=>G("prev")},[((ve=n.prev)==null?void 0:ve.call(n,ce.value))??y(Vu,null,{default:()=>[y(ht,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),y("div",{key:"container",ref:m,class:"v-slide-group__container",onScroll:O},[y("div",{ref:p,class:"v-slide-group__content",style:me.value,onTouchstartPassive:V,onTouchmovePassive:L,onTouchendPassive:F,onFocusin:z,onFocusout:W,onKeydown:U},[(pe=n.default)==null?void 0:pe.call(n,ce.value)])]),he.value&&y("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!_e.value}],onClick:()=>G("next")},[((le=n.next)==null?void 0:le.call(n,ce.value))??y(Vu,null,{default:()=>[y(ht,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:o.selected,scrollTo:G,scrollOffset:u,focus:q}}});const sw=Symbol.for("vuetify:v-tabs"),iw=Pe()({name:"VTab",props:{fixed:Boolean,sliderColor:String,hideSlider:Boolean,direction:{type:String,default:"horizontal"},...ja(S_({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},setup(e,t){let{slots:n,attrs:r}=t;const{textColorClasses:i,textColorStyles:o}=Tr(e,"sliderColor"),l=R(()=>e.direction==="horizontal"),u=J(!1),f=J(),d=J();function h(m){var p,b;let{value:v}=m;if(u.value=v,v){const S=(b=(p=f.value)==null?void 0:p.$el.parentElement)==null?void 0:b.querySelector(".v-tab--selected .v-tab__slider"),T=d.value;if(!S||!T)return;const A=getComputedStyle(S).color,w=S.getBoundingClientRect(),C=T.getBoundingClientRect(),V=l.value?"x":"y",L=l.value?"X":"Y",F=l.value?"right":"bottom",O=l.value?"width":"height",k=w[V],z=C[V],W=k>z?w[F]-C[F]:w[V]-C[V],H=Math.sign(W)>0?l.value?"right":"bottom":Math.sign(W)<0?l.value?"left":"top":"center",q=(Math.abs(W)+(Math.sign(W)<0?w[O]:C[O]))/Math.max(w[O],C[O]),G=w[O]/C[O],me=1.5;pi(T,{backgroundColor:[A,""],transform:[`translate${L}(${W}px) scale${L}(${G})`,`translate${L}(${W/me}px) scale${L}(${(q-1)/me+1})`,""],transformOrigin:Array(3).fill(H)},{duration:225,easing:Pa})}}return $e(()=>{const[m]=Kt.filterProps(e);return y(Kt,Oe({symbol:sw,ref:f,class:["v-tab",e.class],style:e.style,tabindex:u.value?0:-1,role:"tab","aria-selected":String(u.value),active:!1,block:e.fixed,maxWidth:e.fixed?300:void 0,rounded:0},m,r,{"onGroup:selected":h}),{default:()=>{var v;return[((v=n.default)==null?void 0:v.call(n))??e.text,!e.hideSlider&&y("div",{ref:d,class:["v-tab__slider",i.value],style:o.value},null)]}})}),{}}});function yM(e){return e?e.map(t=>typeof t=="string"?{title:t,value:t}:t):[]}const bM=Pe()({name:"VTabs",props:{alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,sliderColor:String,...rw({mandatory:"force"}),...zr(),...$t()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"modelValue"),i=R(()=>yM(e.items)),{densityClasses:o}=Wr(e),{backgroundColorClasses:l,backgroundColorStyles:u}=Gn(Se(e,"bgColor"));return Kn({VTab:{color:Se(e,"color"),direction:Se(e,"direction"),stacked:Se(e,"stacked"),fixed:Se(e,"fixedTabs"),sliderColor:Se(e,"sliderColor"),hideSlider:Se(e,"hideSlider")}}),$e(()=>{const[f]=fy.filterProps(e);return y(fy,Oe(f,{modelValue:r.value,"onUpdate:modelValue":d=>r.value=d,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--stacked":e.stacked},o.value,l.value,e.class],style:[{"--v-tabs-height":ke(e.height)},u.value,e.style],role:"tablist",symbol:sw}),{default:()=>[n.default?n.default():i.value.map(d=>y(iw,Oe(d,{key:d.title}),null))]})}),{}}});const _M=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,o=.5,l=16;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<o*Math.abs(e.offsetX)&&(e.left&&n<t-l&&e.left(e),e.right&&n>t+l&&e.right(e)),Math.abs(e.offsetX)<o*Math.abs(e.offsetY)&&(e.up&&i<r-l&&e.up(e),e.down&&i>r+l&&e.down(e))};function wM(e,t){var r;const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,(r=t.start)==null||r.call(t,{originalEvent:e,...t})}function CM(e,t){var r;const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,(r=t.end)==null||r.call(t,{originalEvent:e,...t}),_M(t)}function SM(e,t){var r;const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,(r=t.move)==null||r.call(t,{originalEvent:e,...t})}function xM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:n=>wM(n,t),touchend:n=>CM(n,t),touchmove:n=>SM(n,t)}}function AM(e,t){var u;const n=t.value,r=n!=null&&n.parent?e.parentElement:e,i=(n==null?void 0:n.options)??{passive:!0},o=(u=t.instance)==null?void 0:u.$.uid;if(!r||!o)return;const l=xM(t.value);r._touchHandlers=r._touchHandlers??Object.create(null),r._touchHandlers[o]=l,Lb(l).forEach(f=>{r.addEventListener(f,l[f],i)})}function EM(e,t){var o,l;const n=(o=t.value)!=null&&o.parent?e.parentElement:e,r=(l=t.instance)==null?void 0:l.$.uid;if(!(n!=null&&n._touchHandlers)||!r)return;const i=n._touchHandlers[r];Lb(i).forEach(u=>{n.removeEventListener(u,i[u])}),delete n._touchHandlers[r]}const ow={mounted:AM,unmounted:EM},TM=ow,aw=Symbol.for("vuetify:v-window"),lw=Symbol.for("vuetify:v-window-group"),kM=Ve({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||e==="hover"},touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{default:"force"},...tt(),...$t(),...jt()},"v-window"),PM=Pe()({name:"VWindow",directives:{Touch:ow},props:kM(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{isRtl:i}=Vo(),{t:o}=Vi(),l=Za(e,lw),u=J(),f=R(()=>i.value?!e.reverse:e.reverse),d=J(!1),h=R(()=>{const V=e.direction==="vertical"?"y":"x",F=(f.value?!d.value:d.value)?"-reverse":"";return`v-window-${V}${F}-transition`}),m=J(0),v=J(void 0),p=R(()=>l.items.value.findIndex(V=>l.selected.value.includes(V.id)));De(p,(V,L)=>{const F=l.items.value.length,O=F-1;F<=2?d.value=V<L:V===O&&L===0?d.value=!0:V===0&&L===O?d.value=!1:d.value=V<L}),Pt(aw,{transition:h,isReversed:d,transitionCount:m,transitionHeight:v,rootRef:u});const b=R(()=>e.continuous||p.value!==0),S=R(()=>e.continuous||p.value!==l.items.value.length-1);function T(){b.value&&l.prev()}function A(){S.value&&l.next()}const w=R(()=>{const V=[],L={icon:i.value?e.nextIcon:e.prevIcon,class:`v-window__${f.value?"right":"left"}`,onClick:l.prev,ariaLabel:o("$vuetify.carousel.prev")};V.push(b.value?n.prev?n.prev({props:L}):y(Kt,L,null):y("div",null,null));const F={icon:i.value?e.prevIcon:e.nextIcon,class:`v-window__${f.value?"left":"right"}`,onClick:l.next,ariaLabel:o("$vuetify.carousel.next")};return V.push(S.value?n.next?n.next({props:F}):y(Kt,F,null):y("div",null,null)),V}),C=R(()=>e.touch===!1?e.touch:{...{left:()=>{f.value?T():A()},right:()=>{f.value?A():T()},start:L=>{let{originalEvent:F}=L;F.stopPropagation()}},...e.touch===!0?{}:e.touch});return $e(()=>qt(y(e.tag,{ref:u,class:["v-window",{"v-window--show-arrows-on-hover":e.showArrows==="hover"},r.value,e.class],style:e.style},{default:()=>{var V,L;return[y("div",{class:"v-window__container",style:{height:v.value}},[(V=n.default)==null?void 0:V.call(n,{group:l}),e.showArrows!==!1&&y("div",{class:"v-window__controls"},[w.value])]),(L=n.additional)==null?void 0:L.call(n,{group:l})]}}),[[Sr("touch"),C.value]])),{group:l}}}),RM=Pe()({name:"VWindowItem",directives:{Touch:TM},props:{reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...tt(),..._c(),...Sc()},emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=rt(aw),i=wc(e,lw),{isBooted:o}=Ac();if(!r||!i)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const l=J(!1),u=R(()=>r.isReversed.value?e.reverseTransition!==!1:e.transition!==!1);function f(){!l.value||!r||(l.value=!1,r.transitionCount.value>0&&(r.transitionCount.value-=1,r.transitionCount.value===0&&(r.transitionHeight.value=void 0)))}function d(){var b;l.value||!r||(l.value=!0,r.transitionCount.value===0&&(r.transitionHeight.value=ke((b=r.rootRef.value)==null?void 0:b.clientHeight)),r.transitionCount.value+=1)}function h(){f()}function m(b){l.value&&Yt(()=>{!u.value||!l.value||!r||(r.transitionHeight.value=ke(b.clientHeight))})}const v=R(()=>{const b=r.isReversed.value?e.reverseTransition:e.transition;return u.value?{name:typeof b!="string"?r.transition.value:b,onBeforeEnter:d,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:d,onAfterLeave:f,onLeaveCancelled:h,onEnter:m}:!1}),{hasContent:p}=vm(e,i.isSelected);return $e(()=>y(as,{transition:v.value,disabled:!o.value},{default:()=>{var b;return[qt(y("div",{class:["v-window-item",i.selectedClass.value,e.class],style:e.style},[p.value&&((b=n.default)==null?void 0:b.call(n))]),[[lr,i.isSelected.value]])]}})),{}}}),IM={name:"AdminTabs",data(){return{activeTab:"Libraries",tabs:["Users","Groups","Libraries","Flags","Tasks","Stats"]}},computed:{...Rr(vt,["librariesExist"])},watch:{$route(e){const n=e.path.split("/").at(-1);this.activeTab=n[0].toUpperCase()+n.slice(1)}},mounted(){this.librariesExist||this.loadTables(["Library"])},methods:{...Gt(vt,["loadTables"])}},LM={id:"tabContainer"},OM={key:0,id:"noLibraries"};function VM(e,t,n,r,i,o){const l=Vt("router-view");return ie(),Fe("div",LM,[y(bM,{id:"tabs",class:Cr({rightMargin:!e.$vuetify.display.mdAndDown}),centered:"",grow:"","show-arrows":""},{default:se(()=>[(ie(!0),Fe(Ke,null,Dr(i.tabs,u=>(ie(),je(iw,{key:u,modelValue:i.activeTab,"onUpdate:modelValue":t[0]||(t[0]=f=>i.activeTab=f),to:u.toLowerCase()},{default:se(()=>[Te(be(u),1)]),_:2},1032,["modelValue","to"]))),128))]),_:1},8,["class"]),y(PM,{id:"tabItems",modelValue:i.activeTab,"onUpdate:modelValue":t[1]||(t[1]=u=>i.activeTab=u),touch:!1},{default:se(()=>[(ie(!0),Fe(Ke,null,Dr(i.tabs,u=>(ie(),je(l,{key:u},{default:se(({Component:f})=>[y(RM,{value:u,class:"tabItemContainer"},{default:se(()=>[(ie(),je(Li(f)))]),_:2},1032,["value"])]),_:2},1024))),128))]),_:1},8,["modelValue"]),e.librariesExist?Lt("",!0):(ie(),Fe("div",OM," Codex has no libraries. Select the Libraries tab and add a comic library. "))])}const FM=ot(IM,[["render",VM],["__scopeId","data-v-bf0bbe16"]]);const MM=Pe()({name:"VMain",props:{scrollable:Boolean,...tt(),...$t({tag:"main"})},setup(e,t){let{slots:n}=t;const{mainStyles:r}=qV(),{ssrBootStyles:i}=Ac();return $e(()=>y(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[r.value,i.value,e.style]},{default:()=>{var o,l;return[e.scrollable?y("div",{class:"v-main__scroller"},[(o=n.default)==null?void 0:o.call(n)]):(l=n.default)==null?void 0:l.call(n)]}})),{}}}),BM={name:"MainAdmin",components:{AdminTitleToolbar:nw,AdminTabs:FM,SettingsDrawer:ew},data(){return{AdminSettingsPanel:Wn(vM)}},computed:{...Rr(xn,["isUserAdmin"])}},DM={id:"adminWrapper"},$M={key:0,id:"adminContainer"},HM={key:1,id:"announcement"};function NM(e,t,n,r,i,o){const l=nw,u=Vt("AdminTabs"),f=ew,d=Vt("router-link");return ie(),Fe("div",DM,[e.isUserAdmin?(ie(),Fe("div",$M,[y(MM,null,{default:se(()=>[y(l),y(u)]),_:1}),y(f,{title:"Admin Status",admin:!0,panel:i.AdminSettingsPanel},null,8,["panel"])])):(ie(),Fe("div",HM,[D("h1",null,[y(d,{to:{name:"home"}},{default:se(()=>[Te(" Log in ")]),_:1}),Te(" as an Administrator to use this panel ")])]))])}const UM=ot(BM,[["render",NM],["__scopeId","data-v-0605704c"]]),zM=Object.freeze(Object.defineProperty({__proto__:null,default:UM},Symbol.toStringTag,{value:"Module"}));const os=Pe()({name:"VTable",props:{fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...tt(),...zr(),...$t(),...jt()},setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{densityClasses:i}=Wr(e);return $e(()=>y(e.tag,{class:["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover},r.value,i.value,e.class],style:e.style},{default:()=>{var o,l,u;return[(o=n.top)==null?void 0:o.call(n),n.default?y("div",{class:"v-table__wrapper",style:{height:ke(e.height)}},[y("table",null,[n.default()])]):(l=n.wrapper)==null?void 0:l.call(n),(u=n.bottom)==null?void 0:u.call(n)]}})),{}}});const uw=Ve({indeterminate:Boolean,indeterminateIcon:{type:St,default:"$checkboxIndeterminate"},...xm({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"v-checkbox-btn"),Pr=Pe()({name:"VCheckboxBtn",props:uw(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"indeterminate"),i=bt(e,"modelValue");function o(f){r.value&&(r.value=!1)}const l=R(()=>e.indeterminate?e.indeterminateIcon:e.falseIcon),u=R(()=>e.indeterminate?e.indeterminateIcon:e.trueIcon);return $e(()=>y(sh,Oe(e,{modelValue:i.value,"onUpdate:modelValue":[f=>i.value=f,o],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",inline:!0,falseIcon:l.value,trueIcon:u.value,"aria-checked":e.indeterminate?"mixed":void 0}),n)),{}}}),Ao=Pe()({name:"VCheckbox",inheritAttrs:!1,props:{...Tc(),...ja(uw(),["inline"])},emits:{"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:r}=t;const{isFocused:i,focus:o,blur:l}=Ec(e),u=cr(),f=R(()=>e.id||`checkbox-${u}`);return $e(()=>{const[d,h]=mc(n),[m,v]=xo.filterProps(e),[p,b]=Pr.filterProps(e);return y(xo,Oe({class:["v-checkbox",e.class]},d,m,{id:f.value,focused:i.value,style:e.style}),{...r,default:S=>{let{id:T,messagesId:A,isDisabled:w,isReadonly:C}=S;return y(Pr,Oe(p,{id:T.value,"aria-describedby":A.value,disabled:w.value,readonly:C.value},h,{onFocus:o,onBlur:l}),r)}})}),{}}});const cw=Symbol.for("vuetify:v-chip-group"),Z8=Pe()({name:"VChipGroup",props:{column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Oi},...tt(),...bc({selectedClass:"v-chip--selected"}),...$t(),...jt(),...Zs({variant:"tonal"})},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:r}=tn(e),{isSelected:i,select:o,next:l,prev:u,selected:f}=Za(e,cw);return Kn({VChip:{color:Se(e,"color"),disabled:Se(e,"disabled"),filter:Se(e,"filter"),variant:Se(e,"variant")}}),$e(()=>y(e.tag,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style},{default:()=>{var d;return[(d=n.default)==null?void 0:d.call(n,{isSelected:i,select:o,next:l,prev:u,selected:f.value})]}})),{}}}),Am=Pe()({name:"VChip",directives:{Ripple:Xa},props:{activeClass:String,appendAvatar:String,appendIcon:St,closable:Boolean,closeIcon:{type:St,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:St,ripple:{type:Boolean,default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Hr(),onClickOnce:Hr(),...qs(),...tt(),...zr(),...ys(),..._c(),...fr(),...mm(),...Ka(),...$t({tag:"span"}),...jt(),...Zs({variant:"tonal"})},emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:r,slots:i}=t;const{t:o}=Vi(),{borderClasses:l}=Ys(e),{colorClasses:u,colorStyles:f,variantClasses:d}=yc(e),{densityClasses:h}=Wr(e),{elevationClasses:m}=bs(e),{roundedClasses:v}=dr(e),{sizeClasses:p}=qa(e),{themeClasses:b}=tn(e),S=bt(e,"modelValue"),T=wc(e,cw,!1),A=hm(e,n),w=R(()=>e.link!==!1&&A.isLink.value),C=R(()=>!e.disabled&&e.link!==!1&&(!!T||e.link||A.isClickable.value)),V=R(()=>({"aria-label":o(e.closeLabel),onClick(O){S.value=!1,r("click:close",O)}}));function L(O){var k;r("click",O),C.value&&((k=A.navigate)==null||k.call(A,O),T==null||T.toggle())}function F(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),L(O))}return()=>{const O=A.isLink.value?"a":e.tag,k=!!(e.appendIcon||e.appendAvatar),z=!!(k||i.append),W=!!(i.close||e.closable),H=!!(i.filter||e.filter)&&T,U=!!(e.prependIcon||e.prependAvatar),q=!!(U||i.prepend),G=!T||T.isSelected.value;return S.value&&qt(y(O,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":C.value,"v-chip--filter":H,"v-chip--pill":e.pill},b.value,l.value,G?u.value:void 0,h.value,m.value,v.value,p.value,d.value,T==null?void 0:T.selectedClass.value,e.class],style:[G?f.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:A.href.value,tabindex:C.value?0:void 0,onClick:L,onKeydown:C.value&&!w.value&&F},{default:()=>{var me;return[pc(C.value,"v-chip"),H&&y(o_,{key:"filter"},{default:()=>[qt(y("div",{class:"v-chip__filter"},[i.filter?qt(y(un,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},null),[[Sr("slot"),i.filter,"default"]]):y(ht,{key:"filter-icon",icon:e.filterIcon},null)]),[[lr,T.isSelected.value]])]}),q&&y("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?y(un,{key:"prepend-defaults",disabled:!U,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):y(Ke,null,[e.prependIcon&&y(ht,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&y($u,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),((me=i.default)==null?void 0:me.call(i,{isSelected:T==null?void 0:T.isSelected.value,selectedClass:T==null?void 0:T.selectedClass.value,select:T==null?void 0:T.select,toggle:T==null?void 0:T.toggle,value:T==null?void 0:T.value.value,disabled:e.disabled}))??e.text,z&&y("div",{key:"append",class:"v-chip__append"},[i.append?y(un,{key:"append-defaults",disabled:!k,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):y(Ke,null,[e.appendIcon&&y(ht,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&y($u,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),W&&y("div",Oe({key:"close",class:"v-chip__close"},V.value),[i.close?y(un,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},i.close):y(ht,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[Sr("ripple"),C.value&&e.ripple,null]])}}});const fw=Pe()({name:"VMenu",props:{id:String,...ja(pm({closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:cm}}),["absolute"])},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=bt(e,"modelValue"),{scopeId:i}=gm(),o=cr(),l=R(()=>e.id||`v-menu-${o}`),u=J(),f=rt(eh,null),d=J(0);Pt(eh,{register(){++d.value},unregister(){--d.value},closeParents(){setTimeout(()=>{d.value||(r.value=!1,f==null||f.closeParents())},40)}}),De(r,v=>{v?f==null||f.register():f==null||f.unregister()});function h(){f==null||f.closeParents()}const m=R(()=>Oe({"aria-haspopup":"menu","aria-expanded":String(r.value),"aria-owns":l.value},e.activatorProps));return $e(()=>{const[v]=Bu.filterProps(e);return y(Bu,Oe({ref:u,class:["v-menu",e.class],style:e.style},v,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,absolute:!0,activatorProps:m.value,"onClick:outside":h},i),{activator:n.activator,default:function(){for(var p=arguments.length,b=new Array(p),S=0;S<p;S++)b[S]=arguments[S];return y(un,{root:!0},{default:()=>{var T;return[(T=n.default)==null?void 0:T.call(n,...b)]}})}})}),Mo({id:l,ΨopenChildren:d},u)}}),dw=Ve({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:St,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,valueComparator:{type:Function,default:Oi},...wm({itemChildren:!1})},"v-select"),hw=Pe()({name:"VSelect",props:{...dw(),...ja(Sm({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...Fo({transition:{component:cm}})},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0},setup(e,t){let{slots:n}=t;const{t:r}=Vi(),i=J(),o=J(),l=bt(e,"menu"),u=R({get:()=>l.value,set:H=>{var U;l.value&&!H&&((U=o.value)!=null&&U.ΨopenChildren)||(l.value=H)}}),{items:f,transformIn:d,transformOut:h}=Cm(e),m=bt(e,"modelValue",[],H=>d($r(H)),H=>{const U=h(H);return e.multiple?U:U[0]??null}),v=ym(),p=R(()=>m.value.map(H=>f.value.find(U=>e.valueComparator(U.value,H.value))||H)),b=R(()=>p.value.map(H=>H.props.value)),S=J(!1);let T="",A;const w=R(()=>e.hideSelected?f.value.filter(H=>!p.value.some(U=>U===H)):f.value),C=J();function V(H){e.openOnClear&&(u.value=!0)}function L(){e.hideNoData&&!f.value.length||e.readonly||v!=null&&v.isReadonly.value||(u.value=!u.value)}function F(H){var ce,he,fe,_e;if(e.readonly||v!=null&&v.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(H.key)&&H.preventDefault(),["Enter","ArrowDown"," "].includes(H.key)&&(u.value=!0),["Escape","Tab"].includes(H.key)&&(u.value=!1),H.key==="ArrowDown"?(ce=C.value)==null||ce.focus("next"):H.key==="ArrowUp"?(he=C.value)==null||he.focus("prev"):H.key==="Home"?(fe=C.value)==null||fe.focus("first"):H.key==="End"&&((_e=C.value)==null||_e.focus("last"));const U=1e3;function q(ve){const pe=ve.key.length===1,le=!ve.ctrlKey&&!ve.metaKey&&!ve.altKey;return pe&&le}if(e.multiple||!q(H))return;const G=performance.now();G-A>U&&(T=""),T+=H.key.toLowerCase(),A=G;const me=f.value.find(ve=>ve.title.toLowerCase().startsWith(T));me!==void 0&&(m.value=[me])}function O(H){if(e.multiple){const U=b.value.findIndex(q=>e.valueComparator(q,H.value));if(U===-1)m.value=[...m.value,H];else{const q=[...m.value];q.splice(U,1),m.value=q}}else m.value=[H],u.value=!1}function k(H){var U;(U=C.value)!=null&&U.$el.contains(H.relatedTarget)||(u.value=!1)}function z(H){S.value=!0}function W(H){var U;H.relatedTarget==null&&((U=i.value)==null||U.focus())}return $e(()=>{const H=!!(e.chips||n.chip),U=!!(!e.hideNoData||w.value.length||n.prepend||n.append||n["no-data"]),q=m.value.length>0,[G]=Cn.filterProps(e),me=q||!S.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder;return y(Cn,Oe({ref:i},G,{modelValue:m.value.map(ce=>ce.props.value).join(", "),"onUpdate:modelValue":ce=>{ce==null&&(m.value=[])},focused:S.value,"onUpdate:focused":ce=>S.value=ce,validationValue:m.externalValue,dirty:q,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":m.value.length},e.class],style:e.style,appendInnerIcon:e.menuIcon,readonly:!0,placeholder:me,"onClick:clear":V,"onMousedown:control":L,onBlur:k,onKeydown:F}),{...n,default:()=>y(Ke,null,[y(fw,Oe({ref:o,modelValue:u.value,"onUpdate:modelValue":ce=>u.value=ce,activator:"parent",contentClass:"v-select__content",eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition},e.menuProps),{default:()=>[U&&y(z_,{ref:C,selected:b.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:ce=>ce.preventDefault(),onFocusin:z,onFocusout:W},{default:()=>{var ce,he,fe;return[!w.value.length&&!e.hideNoData&&(((ce=n["no-data"])==null?void 0:ce.call(n))??y(kr,{title:r(e.noDataText)},null)),(he=n["prepend-item"])==null?void 0:he.call(n),w.value.map((_e,ve)=>{var pe;return n.item?(pe=n.item)==null?void 0:pe.call(n,{item:_e,index:ve,props:Oe(_e.props,{onClick:()=>O(_e)})}):y(kr,Oe({key:ve},_e.props,{onClick:()=>O(_e)}),{prepend:le=>{let{isSelected:Ne}=le;return e.multiple&&!e.hideSelected?y(Pr,{modelValue:Ne,ripple:!1,tabindex:"-1"},null):void 0}})}),(fe=n["append-item"])==null?void 0:fe.call(n)]}})]}),p.value.map((ce,he)=>{var ve;function fe(pe){pe.stopPropagation(),pe.preventDefault(),O(ce)}const _e={"onClick:close":fe,modelValue:!0,"onUpdate:modelValue":void 0};return y("div",{key:ce.value,class:"v-select__selection"},[H?n.chip?y(un,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:ce.title}}},{default:()=>{var pe;return[(pe=n.chip)==null?void 0:pe.call(n,{item:ce,index:he,props:_e})]}}):y(Am,Oe({key:"chip",closable:e.closableChips,size:"small",text:ce.title},_e),null):((ve=n.selection)==null?void 0:ve.call(n,{item:ce,index:he}))??y("span",{class:"v-select__selection-text"},[ce.title,e.multiple&&he<p.value.length-1&&y("span",{class:"v-select__selection-comma"},[Te(",")])])])})])})}),Mo({isFocused:S,menu:u,select:O},i)}});const WM=(e,t,n)=>e==null||t==null?-1:e.toString().toLocaleLowerCase().indexOf(t.toString().toLocaleLowerCase()),Em=Ve({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function GM(e,t,n){var u;const r=[],i=(n==null?void 0:n.default)??WM,o=n!=null&&n.filterKeys?$r(n.filterKeys):!1,l=Object.keys((n==null?void 0:n.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return r;e:for(let f=0;f<e.length;f++){const d=e[f],h={},m={};let v=-1;if(t&&!(n!=null&&n.noFilter)){if(typeof d=="object"){const S=o||Object.keys(d);for(const T of S){const A=or(d,T,d),w=(u=n==null?void 0:n.customKeyFilter)==null?void 0:u[T];if(v=w?w(A,t,d):i(A,t,d),v!==-1&&v!==!1)w?h[T]=v:m[T]=v;else if((n==null?void 0:n.filterMode)==="every")continue e}}else v=i(d,t,d),v!==-1&&v!==!1&&(m.title=v);const p=Object.keys(m).length,b=Object.keys(h).length;if(!p&&!b||(n==null?void 0:n.filterMode)==="union"&&b!==l&&!p||(n==null?void 0:n.filterMode)==="intersection"&&(b!==l||!p))continue}r.push({index:f,matches:{...m,...h}})}return r}function Tm(e,t,n,r){const i=R(()=>typeof(n==null?void 0:n.value)!="string"&&typeof(n==null?void 0:n.value)!="number"?"":String(n.value)),o=J([]),l=J(new Map);Nr(()=>{o.value=[],l.value=new Map;const f=mn(t);GM(f,i.value,{customKeyFilter:e.customKeyFilter,default:e.customFilter,filterKeys:mn(r==null?void 0:r.filterKeys)??e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}).forEach(h=>{let{index:m,matches:v}=h;const p=f[m];o.value.push(p),l.value.set(p.value,v)})});function u(f){return l.value.get(f.value)}return{filteredItems:o,filteredMatches:l,getMatches:u}}function jM(e,t,n){if(t==null)return e;if(Array.isArray(t))throw new Error("Multiple matches is not implemented");return typeof t=="number"&&~t?y(Ke,null,[y("span",{class:"v-combobox__unmask"},[e.substr(0,t)]),y("span",{class:"v-combobox__mask"},[e.substr(t,n)]),y("span",{class:"v-combobox__unmask"},[e.substr(t+n)])]):e}const KM=Pe()({name:"VCombobox",props:{delimiters:Array,...Em({filterKeys:["title"]}),...dw({hideNoData:!0,returnObject:!0}),...ja(Sm({modelValue:null}),["validationValue","dirty","appendInnerIcon"]),...Fo({transition:!1})},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0},setup(e,t){var pe;let{emit:n,slots:r}=t;const{t:i}=Vi(),o=J(),l=J(!1),u=J(!0),f=J(),d=bt(e,"menu"),h=R({get:()=>d.value,set:le=>{var Ne;d.value&&!le&&((Ne=f.value)!=null&&Ne.ΨopenChildren)||(d.value=le)}}),m=J(-1);let v=!1;const p=R(()=>{var le;return(le=o.value)==null?void 0:le.color}),{items:b,transformIn:S,transformOut:T}=Cm(e),{textColorClasses:A,textColorStyles:w}=Tr(p),C=bt(e,"modelValue",[],le=>S($r(le)),le=>{const Ne=T(le);return e.multiple?Ne:Ne[0]??null}),V=ym(),L=J(e.multiple?"":((pe=C.value[0])==null?void 0:pe.title)??""),F=R({get:()=>L.value,set:le=>{var Ne;if(L.value=le,e.multiple||(C.value=[lo(e,le)]),le&&e.multiple&&((Ne=e.delimiters)!=null&&Ne.length)){const gt=le.split(new RegExp(`(?:${e.delimiters.join("|")})+`));gt.length>1&&(gt.forEach(Y=>{Y=Y.trim(),Y&&fe(lo(e,Y))}),L.value="")}le||(m.value=-1),u.value=!le}});De(L,le=>{v?Yt(()=>v=!1):l.value&&!h.value&&(h.value=!0),n("update:search",le)}),De(C,le=>{var Ne;e.multiple||(L.value=((Ne=le[0])==null?void 0:Ne.title)??"")});const{filteredItems:O,getMatches:k}=Tm(e,b,R(()=>u.value?void 0:F.value)),z=R(()=>C.value.map(le=>b.value.find(Ne=>e.valueComparator(Ne.value,le.value))||le)),W=R(()=>e.hideSelected?O.value.filter(le=>!z.value.some(Ne=>Ne.value===le.value)):O.value),H=R(()=>z.value.map(le=>le.props.value)),U=R(()=>z.value[m.value]),q=J();function G(le){v=!0,e.openOnClear&&(h.value=!0)}function me(){e.hideNoData&&!b.value.length||e.readonly||V!=null&&V.isReadonly.value||(h.value=!0)}function ce(le){var Y,Z;if(e.readonly||V!=null&&V.isReadonly.value)return;const Ne=o.value.selectionStart,gt=H.value.length;if((m.value>-1||["Enter","ArrowDown","ArrowUp"].includes(le.key))&&le.preventDefault(),["Enter","ArrowDown"].includes(le.key)&&(h.value=!0),["Escape"].includes(le.key)&&(h.value=!1),["Enter","Escape","Tab"].includes(le.key)&&(u.value=!0),le.key==="ArrowDown"?(Y=q.value)==null||Y.focus("next"):le.key==="ArrowUp"&&((Z=q.value)==null||Z.focus("prev")),!!e.multiple){if(["Backspace","Delete"].includes(le.key)){if(m.value<0){le.key==="Backspace"&&!F.value&&(m.value=gt-1);return}const ue=m.value;U.value&&fe(U.value),m.value=ue>=gt-1?gt-2:ue}if(le.key==="ArrowLeft"){if(m.value<0&&Ne>0)return;const ue=m.value>-1?m.value-1:gt-1;z.value[ue]?m.value=ue:(m.value=-1,o.value.setSelectionRange(F.value.length,F.value.length))}if(le.key==="ArrowRight"){if(m.value<0)return;const ue=m.value+1;z.value[ue]?m.value=ue:(m.value=-1,o.value.setSelectionRange(0,0))}le.key==="Enter"&&F.value&&(fe(lo(e,F.value)),F.value="")}}function he(){l.value&&(u.value=!0)}function fe(le){if(e.multiple){const Ne=H.value.findIndex(gt=>e.valueComparator(gt,le.value));if(Ne===-1)C.value=[...C.value,le];else{const gt=[...C.value];gt.splice(Ne,1),C.value=gt}F.value=""}else C.value=[le],L.value=le.title,Yt(()=>{h.value=!1,u.value=!0})}function _e(le){l.value=!0}function ve(le){var Ne;le.relatedTarget==null&&((Ne=o.value)==null||Ne.focus())}return De(O,le=>{!le.length&&e.hideNoData&&(h.value=!1)}),De(l,le=>{if(le)m.value=-1;else{if(h.value=!1,!e.multiple||!F.value)return;C.value=[...C.value,lo(e,F.value)],F.value=""}}),$e(()=>{const le=!!(e.chips||r.chip),Ne=!!(!e.hideNoData||W.value.length||r.prepend||r.append||r["no-data"]),gt=C.value.length>0,[Y]=Cn.filterProps(e);return y(Cn,Oe({ref:o},Y,{modelValue:F.value,"onUpdate:modelValue":[Z=>F.value=Z,Z=>{Z==null&&(C.value=[])}],focused:l.value,"onUpdate:focused":Z=>l.value=Z,validationValue:C.externalValue,dirty:gt,class:["v-combobox",{"v-combobox--active-menu":h.value,"v-combobox--chips":!!e.chips,"v-combobox--selecting-index":m.value>-1,[`v-combobox--${e.multiple?"multiple":"single"}`]:!0},e.class],style:e.style,appendInnerIcon:e.items.length?e.menuIcon:void 0,readonly:e.readonly,placeholder:gt?void 0:e.placeholder,"onClick:clear":G,"onMousedown:control":me,onKeydown:ce}),{...r,default:()=>y(Ke,null,[y(fw,Oe({ref:f,modelValue:h.value,"onUpdate:modelValue":Z=>h.value=Z,activator:"parent",contentClass:"v-combobox__content",eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterLeave:he},e.menuProps),{default:()=>[Ne&&y(z_,{ref:q,selected:H.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:Z=>Z.preventDefault(),onFocusin:_e,onFocusout:ve},{default:()=>{var Z,ue,Ae;return[!W.value.length&&!e.hideNoData&&(((Z=r["no-data"])==null?void 0:Z.call(r))??y(kr,{title:i(e.noDataText)},null)),(ue=r["prepend-item"])==null?void 0:ue.call(r),W.value.map(He=>{var pt;return((pt=r.item)==null?void 0:pt.call(r,{item:He,props:Oe(He.props,{onClick:()=>fe(He)})}))??y(kr,Oe({key:He.value},He.props,{onClick:()=>fe(He)}),{prepend:Be=>{let{isSelected:P}=Be;return e.multiple&&!e.hideSelected?y(Pr,{modelValue:P,ripple:!1,tabindex:"-1"},null):void 0},title:()=>{var Be,P;return u.value?He.title:jM(He.title,(Be=k(He))==null?void 0:Be.title,((P=F.value)==null?void 0:P.length)??0)}})}),(Ae=r["append-item"])==null?void 0:Ae.call(r)]}})]}),z.value.map((Z,ue)=>{var pt;function Ae(Be){Be.stopPropagation(),Be.preventDefault(),fe(Z)}const He={"onClick:close":Ae,modelValue:!0,"onUpdate:modelValue":void 0};return y("div",{key:Z.value,class:["v-combobox__selection",ue===m.value&&["v-combobox__selection--selected",A.value]],style:ue===m.value?w.value:{}},[le?r.chip?y(un,{key:"chip-defaults",defaults:{VChip:{closable:e.closableChips,size:"small",text:Z.title}}},{default:()=>{var Be;return[(Be=r.chip)==null?void 0:Be.call(r,{item:Z,index:ue,props:He})]}}):y(Am,Oe({key:"chip",closable:e.closableChips,size:"small",text:Z.title},He),null):((pt=r.selection)==null?void 0:pt.call(r,{item:Z,index:ue}))??y("span",{class:"v-combobox__selection-text"},[Z.title,e.multiple&&ue<z.value.length-1&&y("span",{class:"v-combobox__selection-comma"},[Te(",")])])])})])})}),Mo({isFocused:l,isPristine:u,menu:h,search:F,selectionIndex:m,filteredItems:O,select:fe},o)}});var ih={exports:{}};(function(e,t){(function(){var n=this,r=n.humanize,i={};e.exports&&(t=e.exports=i),t.humanize=i,i.noConflict=function(){return n.humanize=r,this},i.pad=function(u,f,d,h){if(u+="",d?d.length>1&&(d=d.charAt(0)):d=" ",h=h===void 0?"left":"right",h==="right")for(;u.length<f;)u=u+d;else for(;u.length<f;)u=d+u;return u},i.time=function(){return new Date().getTime()/1e3};var o=[0,0,31,59,90,120,151,181,212,243,273,304,334],l=[0,0,31,60,91,121,152,182,213,244,274,305,335];i.date=function(u,f){var d=f===void 0?new Date:f instanceof Date?new Date(f):new Date(f*1e3),h=/\\?([a-z])/gi,m=function(S,T){return b[S]?b[S]():T},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],p=["January","February","March","April","May","June","July","August","September","October","November","December"],b={d:function(){return i.pad(b.j(),2,"0")},D:function(){return b.l().slice(0,3)},j:function(){return d.getDate()},l:function(){return v[b.w()]},N:function(){return b.w()||7},S:function(){var S=b.j();return S>4&&S<21?"th":{1:"st",2:"nd",3:"rd"}[S%10]||"th"},w:function(){return d.getDay()},z:function(){return(b.L()?l[b.n()]:o[b.n()])+b.j()-1},W:function(){var S=b.z()-b.N()+1.5;return i.pad(1+Math.floor(Math.abs(S)/7)+(S%7>3.5?1:0),2,"0")},F:function(){return p[d.getMonth()]},m:function(){return i.pad(b.n(),2,"0")},M:function(){return b.F().slice(0,3)},n:function(){return d.getMonth()+1},t:function(){return new Date(b.Y(),b.n(),0).getDate()},L:function(){return new Date(b.Y(),1,29).getMonth()===1?1:0},o:function(){var S=b.n(),T=b.W();return b.Y()+(S===12&&T<9?-1:S===1&&T>9)},Y:function(){return d.getFullYear()},y:function(){return String(b.Y()).slice(-2)},a:function(){return d.getHours()>11?"pm":"am"},A:function(){return b.a().toUpperCase()},B:function(){var S=d.getTime()/1e3,T=S%86400+3600;T<0&&(T+=86400);var A=T/86.4%1e3;return S<0?Math.ceil(A):Math.floor(A)},g:function(){return b.G()%12||12},G:function(){return d.getHours()},h:function(){return i.pad(b.g(),2,"0")},H:function(){return i.pad(b.G(),2,"0")},i:function(){return i.pad(d.getMinutes(),2,"0")},s:function(){return i.pad(d.getSeconds(),2,"0")},u:function(){return i.pad(d.getMilliseconds()*1e3,6,"0")},O:function(){var S=d.getTimezoneOffset(),T=Math.abs(S);return(S>0?"-":"+")+i.pad(Math.floor(T/60)*100+T%60,4,"0")},P:function(){var S=b.O();return S.substr(0,3)+":"+S.substr(3,2)},Z:function(){return-d.getTimezoneOffset()*60},c:function(){return"Y-m-d\\TH:i:sP".replace(h,m)},r:function(){return"D, d M Y H:i:s O".replace(h,m)},U:function(){return d.getTime()/1e3||0}};return u.replace(h,m)},i.numberFormat=function(u,f,d,h){f=isNaN(f)?2:Math.abs(f),d=d===void 0?".":d,h=h===void 0?",":h;var m=u<0?"-":"";u=Math.abs(+u||0);var v=parseInt(u.toFixed(f),10)+"",p=v.length>3?v.length%3:0;return m+(p?v.substr(0,p)+h:"")+v.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+h)+(f?d+Math.abs(u-v).toFixed(f).slice(2):"")},i.naturalDay=function(u,f){u=u===void 0?i.time():u,f=f===void 0?"Y-m-d":f;var d=86400,h=new Date,m=new Date(h.getFullYear(),h.getMonth(),h.getDate()).getTime()/1e3;return u<m&&u>=m-d?"yesterday":u>=m&&u<m+d?"today":u>=m+d&&u<m+2*d?"tomorrow":i.date(f,u)},i.relativeTime=function(u){u=u===void 0?i.time():u;var f=i.time(),d=f-u;if(d<2&&d>-2)return(d>=0?"just ":"")+"now";if(d<60&&d>-60)return d>=0?Math.floor(d)+" seconds ago":"in "+Math.floor(-d)+" seconds";if(d<120&&d>-120)return d>=0?"about a minute ago":"in about a minute";if(d<3600&&d>-3600)return d>=0?Math.floor(d/60)+" minutes ago":"in "+Math.floor(-d/60)+" minutes";if(d<7200&&d>-7200)return d>=0?"about an hour ago":"in about an hour";if(d<86400&&d>-86400)return d>=0?Math.floor(d/3600)+" hours ago":"in "+Math.floor(-d/3600)+" hours";var h=2*86400;if(d<h&&d>-h)return d>=0?"1 day ago":"in 1 day";var m=29*86400;if(d<m&&d>-m)return d>=0?Math.floor(d/86400)+" days ago":"in "+Math.floor(-d/86400)+" days";var v=60*86400;if(d<v&&d>-v)return d>=0?"about a month ago":"in about a month";var p=parseInt(i.date("Y",f),10),b=parseInt(i.date("Y",u),10),S=p*12+parseInt(i.date("n",f),10),T=b*12+parseInt(i.date("n",u),10),A=S-T;if(A<12&&A>-12)return A>=0?A+" months ago":"in "+-A+" months";var w=p-b;return w<2&&w>-2?w>=0?"a year ago":"in a year":w>=0?w+" years ago":"in "+-w+" years"},i.ordinal=function(u){u=parseInt(u,10),u=isNaN(u)?0:u;var f=u<0?"-":"";u=Math.abs(u);var d=u%100;return f+u+(d>4&&d<21?"th":{1:"st",2:"nd",3:"rd"}[u%10]||"th")},i.filesize=function(u,f,d,h,m,v){return f=f===void 0?1024:f,u<=0?"0 bytes":(u<f&&d===void 0&&(d=0),v===void 0&&(v=" "),i.intword(u,["bytes","KB","MB","GB","TB","PB"],f,d,h,m,v))},i.intword=function(u,f,d,h,m,v,p){var b,S;f=f||["","K","M","B","T"],S=f.length-1,d=d||1e3,h=isNaN(h)?2:Math.abs(h),m=m||".",v=v||",",p=p||"";for(var T=0;T<f.length;T++)if(u<Math.pow(d,T+1)){S=T;break}b=u/Math.pow(d,S);var A=f[S]?p+f[S]:"";return i.numberFormat(b,h,m,v)+A},i.linebreaks=function(u){return u=u.replace(/^([\n|\r]*)/,""),u=u.replace(/([\n|\r]*)$/,""),u=u.replace(/(\r\n|\n|\r)/g,`
|
|
48
|
-
`),u=u.replace(/(\n{2,})/g,"</p><p>"),u=u.replace(/\n/g,"<br />"),"<p>"+u+"</p>"},i.nl2br=function(u){return u.replace(/(\r\n|\n|\r)/g,"<br />")},i.truncatechars=function(u,f){return u.length<=f?u:u.substr(0,f)+"…"},i.truncatewords=function(u,f){var d=u.split(" ");return d.length<f?u:d.slice(0,f).join(" ")+"…"}}).call(oo)})(ih,ih.exports);var mw=ih.exports;const X8=Ab(mw),qM="en-NZ",vw="sv-SE",gw=new Intl.DateTimeFormat(vw),pw=function(e){const t=e?vw:qM;return new Intl.DateTimeFormat(t,{timeStyle:"medium"})},YM=function(e,t,n=!1){const r=new Date(e),i=gw.format(r),l=pw(t).format(r);return i+(n?"<br />":", ")+l};const ZM={name:"ConfirmDialog",components:{ConfirmFooter:xc},props:{icon:{type:String,default:""},buttonText:{type:String,default:""},titleText:{type:String,required:!0},objectName:{type:String,required:!0},confirmText:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{showDialog:!1}},methods:{close(e){this.$emit(e),this.showDialog=!1}}},XM={class:"confirmDialog"};function JM(e,t,n,r,i,o){const l=xc;return ie(),je(el,{modelValue:i.showDialog,"onUpdate:modelValue":t[2]||(t[2]=u=>i.showDialog=u),transition:"fab-transition","max-width":"20em","overlay-opacity":"0.5"},{activator:se(({props:u})=>[n.icon?(ie(),je(Kt,Oe({key:0,icon:""},u,{size:n.size,density:n.density,title:n.titleText}),{default:se(()=>[y(ht,null,{default:se(()=>[Te(be(n.icon),1)]),_:1})]),_:2},1040,["size","density","title"])):(ie(),je(Kt,Oe({key:1,block:""},u),{default:se(()=>[Te(be(n.buttonText),1)]),_:2},1040))]),default:se(()=>[D("div",XM,[D("h3",null,be(n.titleText),1),Te(" "+be(n.objectName)+" ",1),y(l,{"confirm-text":n.confirmText,onConfirm:t[0]||(t[0]=u=>o.close("confirm")),onCancel:t[1]||(t[1]=u=>o.close("cancel"))},null,8,["confirm-text"])])]),_:1},8,["modelValue"])}const Xs=ot(ZM,[["render",JM],["__scopeId","data-v-996f6e3c"]]);const Oa=Symbol.for("vuetify:v-expansion-panel"),QM=["default","accordion","inset","popout"],dy=Pe()({name:"VExpansionPanels",props:{color:String,variant:{type:String,default:"default",validator:e=>QM.includes(e)},readonly:Boolean,...tt(),...bc(),...$t(),...jt()},emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;Za(e,Oa);const{themeClasses:r}=tn(e),i=R(()=>e.variant&&`v-expansion-panels--variant-${e.variant}`);return Kn({VExpansionPanel:{color:Se(e,"color")},VExpansionPanelTitle:{readonly:Se(e,"readonly")}}),$e(()=>y(e.tag,{class:["v-expansion-panels",r.value,i.value,e.class],style:e.style},n)),{}}}),yw=Ve({color:String,expandIcon:{type:St,default:"$expand"},collapseIcon:{type:St,default:"$collapse"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean},"v-expansion-panel-title"),oh=Pe()({name:"VExpansionPanelTitle",directives:{Ripple:Xa},props:{...tt(),...yw()},setup(e,t){let{slots:n}=t;const r=rt(Oa);if(!r)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:o}=Gn(e,"color"),l=R(()=>({collapseIcon:e.collapseIcon,disabled:r.disabled.value,expanded:r.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}));return $e(()=>{var u;return qt(y("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":r.isSelected.value},i.value,e.class],style:[o.value,e.style],type:"button",tabindex:r.disabled.value?-1:void 0,disabled:r.disabled.value,"aria-expanded":r.isSelected.value,onClick:e.readonly?void 0:r.toggle},[y("span",{class:"v-expansion-panel-title__overlay"},null),(u=n.default)==null?void 0:u.call(n,l.value),!e.hideActions&&y("span",{class:"v-expansion-panel-title__icon"},[n.actions?n.actions(l.value):y(ht,{icon:r.isSelected.value?e.collapseIcon:e.expandIcon},null)])]),[[Sr("ripple"),e.ripple]])}),{}}}),ah=Pe()({name:"VExpansionPanelText",props:{...tt(),...Sc()},setup(e,t){let{slots:n}=t;const r=rt(Oa);if(!r)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:o}=vm(e,r.isSelected);return $e(()=>y(Ya,{onAfterLeave:o},{default:()=>{var l;return[qt(y("div",{class:["v-expansion-panel-text",e.class],style:e.style},[n.default&&i.value&&y("div",{class:"v-expansion-panel-text__wrapper"},[(l=n.default)==null?void 0:l.call(n)])]),[[lr,r.isSelected.value]])]}})),{}}}),hy=Pe()({name:"VExpansionPanel",props:{title:String,text:String,bgColor:String,...tt(),...ys(),..._c(),...Sc(),...fr(),...$t(),...yw()},emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=wc(e,Oa),{backgroundColorClasses:i,backgroundColorStyles:o}=Gn(e,"bgColor"),{elevationClasses:l}=bs(e),{roundedClasses:u}=dr(e),f=R(()=>(r==null?void 0:r.disabled.value)||e.disabled),d=R(()=>r.group.items.value.reduce((v,p,b)=>(r.group.selected.value.includes(p.id)&&v.push(b),v),[])),h=R(()=>{const v=r.group.items.value.findIndex(p=>p.id===r.id);return!r.isSelected.value&&d.value.some(p=>p-v===1)}),m=R(()=>{const v=r.group.items.value.findIndex(p=>p.id===r.id);return!r.isSelected.value&&d.value.some(p=>p-v===-1)});return Pt(Oa,r),$e(()=>{const v=!!(n.text||e.text),p=!!(n.title||e.title);return y(e.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":r.isSelected.value,"v-expansion-panel--before-active":h.value,"v-expansion-panel--after-active":m.value,"v-expansion-panel--disabled":f.value},u.value,i.value,e.class],style:[o.value,e.style],"aria-expanded":r.isSelected.value},{default:()=>{var b;return[y("div",{class:["v-expansion-panel__shadow",...l.value]},null),p&&y(oh,{key:"title",collapseIcon:e.collapseIcon,color:e.color,expandIcon:e.expandIcon,hideActions:e.hideActions,ripple:e.ripple},{default:()=>[n.title?n.title():e.title]}),v&&y(ah,{key:"text",eager:e.eager},{default:()=>[n.text?n.text():e.text]}),(b=n.default)==null?void 0:b.call(n)]}})}),{}}}),J8={CCC:"Create Covers",CCD:"Remove Covers",CFO:"Find Orphan Covers",IDM:"Move Folders",IFM:"Move Books",ITR:"Read Book Tags",ITQ:"Discover Missing Tags",ITC:"Create Missing Tags",IDU:"Modify Folders",IFU:"Modify Books",IFC:"Create Books",IMQ:"Prepare Tags for Linking",IMC:"Link Books to Tags",IDD:"Remove Folders",IFD:"Remove Books",IFI:"Record Failed Imports",JTD:"Cleanup Stale Tags",JCU:"Update Codex Software",JCR:"Restart Codex",JCS:"Stop Codex",JDO:"Optimize Database",JDB:"Backup Database",JSD:"Cleanup Expired Sessions",SIX:"Search Index Clear",SIU:"Search Index Update",SID:"Search Index Remove Stale Records",SIM:"Search Index Optimize",WPO:"Poll Library"},eB=[{title:"Libraries",tasks:[{value:"poll",title:"Poll All Libraries",desc:"Update Libraries if changes detected"},{value:"poll_force",title:"Force Update All Libraries",desc:"Forcibly update all comics in all libraries",confirm:"This can take a long time"},{value:"force_update_all_failed_imports",title:"Update All Failed Imports",desc:"Forcibly update all failed imports in all libraries",confirm:"This can take a long time"}]},{title:"Covers",tasks:[{value:"purge_comic_covers",title:"Remove Comic Covers",desc:"from every library",confirm:"Are you sure?"},{value:"create_all_comic_covers",title:"Create All Comic Covers",desc:"Pre-generate covers for every comic in every library",confirm:"Are you sure?"}]},{title:"Search Index",tasks:[{value:"search_index_update",title:"Update Search Index",desc:"with recently changed comics"},{value:"search_index_rebuild",title:"Rebuild Search Index",desc:"Delete and rebuild the search index from scratch",confirm:"This can take a long time"},{value:"search_index_remove_stale",title:"Remove Stale Index Entries",desc:"Remove search index entries that are no longer in the library."},{value:"search_index_merge_small",title:"Merge Small Search Index Segments",desc:"Improves search lookup times. Runs nightly if the Optimize Admin Flag is off."},{value:"search_index_optimize",title:"Merge Search Index Into One Segment",desc:"Reduces disk space and improves search lookup times. Runs nightly if the Optimize Admin Flag is on.",confirm:"This can take a long time."},{value:"search_index_abort",title:"Abort Search Indexing",desc:"Aborts search index update and remove tasks."}]},{title:"Database",tasks:[{value:"db_vacuum",title:"Optimize & Compact Database",desc:"Run the sqlite3 optimize & vacuum and pragmas. Runs nightly"},{value:"db_backup",title:"Backup Database",desc:"Runs nightly"},{value:"db_search_sync",title:"Sync Search Index to DB",desc:"Check to see if this database matches the current search index. If there is a mismatch, rebuild the search index. Runs on startup."},{value:"watchdog_sync",title:"Sync Watchdog with DB",desc:"Ensure the Watchdog file watcher is enabled per database preferences for each library"}]},{title:"Codex Software",tasks:[{value:"codex_update",title:"Update Codex",desc:"If Codex updates to a new version, it will restart",confirm:"Are you sure?"},{value:"codex_restart",title:"Restart Codex Server",desc:"Immediately",confirm:"Are you sure?"},{value:"codex_shutdown",title:"Shutdown Codex Server",desc:"Immediately",confirm:"Are you sure?"}]},{title:"Notify",tasks:[{value:"notify_library_changed",title:"Notify Library Changed ",desc:"Signal all clients that the libraries have changed and the browser should fetch new data."},{value:"notify_librarian_status",title:"Notify Librarian Status",desc:"Signal Admin clients to fetch librarian status."}]},{title:"Cleanup",tasks:[{value:"cleanup_fks",title:"Remove Orphan Tags",desc:"After deleting comics, unused linked objects remain in case new comics use them. Runs nightly."},{value:"cleanup_sessions",title:"Cleanup Sessions",desc:"Remove corrupt and expired sessoions. Runs nightly."},{value:"cleanup_covers",title:"Remove Orphan Covers",desc:"from comics that no longer exist. Runs nightly."},{value:"librarian_clear_status",title:"Clear Librarian Statuses",desc:"Mark all Librarian tasks finished."},{value:"janitor_nightly",title:"Run Nightly Maintenance",desc:"Runs several tasks above that also run nightly.",confirm:"Launches several tasks that run nightly anyway."}]}],tB={FV:"Folder View",RG:"Registration",NU:"Non Users",AU:"Auto Update",SO:"Search Index Full Optimization"};const bw={AU:"If enabled, codex will attempt to update the codex python package once a day and restart the server if an update occurred. Not advisable if running from Docker as running containers aren't meant to hold state and will be rebuilt if you update the image. Look into services that automatically update docker images instead.",NU:"By default all Codex features, including bookmarking, are available to users who are not logged in. You may disable this feature and Codex will hide its browser and reader and disable its API from anyone who is not logged in as a user.",RG:"By default users' bookmarks and preferences are saved in an anonymous browser session. Users can create a username and password to save their bookmarks between browsers. You may disable this feature. Admins may still create users.",FV:`By default, codex provides a "Folder View" which mimics the directory hierarchy of the libraries that you've added to Codex. You may disable this feature. The database style browser view is always available. This flag also enables and disables the "Filename" sort option.`,SO:"Fully optimize the search index each night. Disabling this flag will instead run a partial optimization which only merges small files. You should only disable this if the nightly optimization stresses your system too much."};Object.freeze(bw);const nB={name:"AdminFlagsTab",components:{},data(){return{lastUpdate:{name:"",field:void 0},DESC:bw}},computed:{...Et(kt,["formErrors"]),...Et(vt,["flags"])},mounted(){this.loadTables(["Flag"])},methods:{...Gt(vt,["updateRow","clearErrors","loadTables"]),changeCol(e,t,n){this.lastUpdate.name=e,this.lastUpdate.field=t;const r={[t]:n};this.updateRow("Flag",e,r)},getFormErrors(e,t){if(e===this.lastUpdate.name&&t===this.lastUpdate.field)return this.formErrors},title(e){return tB[e.key]}}},rB=e=>(Ri("data-v-1bf15713"),e=e(),Ii(),e),sB=rB(()=>D("thead",null,[D("tr",null,[D("th",null,"Description"),D("th",null,"Enabled")])],-1)),iB={class:"nameCol"},oB={class:"desc"};function aB(e,t,n,r,i,o){return ie(),je(os,{class:"highlight-table flags-table",items:e.flags,"fixed-header":""},{default:se(()=>[sB,D("tbody",null,[(ie(!0),Fe(Ke,null,Dr(e.flags,l=>(ie(),Fe("tr",{key:`f${l.key}`},[D("td",iB,[D("h4",null,be(o.title(l)),1),D("p",oB,be(i.DESC[l.key]),1)]),D("td",null,[y(Ao,{"model-value":l.on,"true-value":!0,"error-messages":o.getFormErrors(l.key,"on"),"hide-details":"auto","onUpdate:modelValue":u=>o.changeCol(l.key,"on",u)},null,8,["model-value","error-messages","onUpdate:modelValue"])])]))),128))])]),_:1},8,["items"])}const lB=ot(nB,[["render",aB],["__scopeId","data-v-1bf15713"]]),uB=Object.freeze(Object.defineProperty({__proto__:null,default:lB},Symbol.toStringTag,{value:"Module"}));const km=UV({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(e,t)=>{let{slots:n,attrs:r}=t;const i=e.tag??"td";return y(i,Oe({class:["v-data-table__td",{"v-data-table-column--fixed":e.fixed,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--no-padding":e.noPadding},`v-data-table-column--align-${e.align}`],style:{height:ke(e.height),width:ke(e.width),left:ke(e.fixedOffset||null)}},r),{default:()=>{var o;return[(o=n.default)==null?void 0:o.call(n)]}})}),_w=Ve({headers:{type:Array,default:()=>[]}},"v-data-table-header"),ww=Symbol.for("vuetify:data-table-headers");function Cw(e,t){const n=J([]),r=J([]);De(()=>e.headers,()=>{var b,S,T;const o=e.headers.length?Array.isArray(e.headers[0])?e.headers:[e.headers]:[],l=o.flatMap((A,w)=>A.map(C=>({column:C,row:w}))),u=o.length,f={title:"",sortable:!1},d={...f,width:48};if((b=t==null?void 0:t.groupBy)!=null&&b.value.length){const A=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-group"});A<0?l.unshift({column:{...f,key:"data-table-group",title:"Group",rowspan:u},row:0}):l.splice(A,1,{column:{...f,...l[A].column},row:l[A].row})}if((S=t==null?void 0:t.showSelect)!=null&&S.value){const A=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-select"});A<0?l.unshift({column:{...d,key:"data-table-select",rowspan:u},row:0}):l.splice(A,1,{column:{...d,...l[A].column},row:l[A].row})}if((T=t==null?void 0:t.showExpand)!=null&&T.value){const A=l.findIndex(w=>{let{column:C}=w;return C.key==="data-table-expand"});A<0?l.push({column:{...d,key:"data-table-expand",rowspan:u},row:0}):l.splice(A,1,{column:{...d,...l[A].column},row:l[A].row})}const h=Kd(u).map(()=>[]),m=Kd(u).fill(0);let v=0;l.forEach(A=>{let{column:w,row:C}=A;const V=w.key??`data-table-column-${v++}`;for(let L=C;L<=C+(w.rowspan??1)-1;L++)h[L].push({...w,key:V,fixedOffset:m[L],sortable:w.sortable??!!w.key}),m[L]+=w.width??0}),h.forEach(A=>{for(let w=A.length;w--;w>=0)if(A[w].fixed){A[w].lastFixed=!0;return}});const p=new Set;n.value=h.map(A=>{const w=[];for(const C of A)p.has(C.key)||(p.add(C.key),w.push(C));return w}),r.value=h.at(-1)??[]},{deep:!0,immediate:!0});const i={headers:n,columns:r};return Pt(ww,i),i}function Pc(){const e=rt(ww);if(!e)throw new Error("Missing headers!");return e}const Sw=Ve({showSelect:Boolean,modelValue:{type:Array,default:()=>[]}},"v-data-table-select"),xw=Symbol.for("vuetify:data-table-selection");function Aw(e,t){const n=bt(e,"modelValue",e.modelValue,m=>new Set(m),m=>[...m.values()]);function r(m){return m.every(v=>n.value.has(v.value))}function i(m){return m.some(v=>n.value.has(v.value))}function o(m,v){const p=new Set(n.value);for(const b of m)v?p.add(b.value):p.delete(b.value);n.value=p}function l(m){o([m],!r([m]))}function u(m){o(t.value,m)}const f=R(()=>n.value.size>0),d=R(()=>r(t.value)),h={toggleSelect:l,select:o,selectAll:u,isSelected:r,isSomeSelected:i,someSelected:f,allSelected:d};return Pt(xw,h),h}function Rc(){const e=rt(xw);if(!e)throw new Error("Missing selection!");return e}const Ew=Ve({sortBy:{type:Array,default:()=>[]},multiSort:Boolean,mustSort:Boolean},"v-data-table-sort"),Tw=Symbol.for("vuetify:data-table-sort");function kw(e){const t=bt(e,"sortBy"),n=Se(e,"mustSort"),r=Se(e,"multiSort");return{sortBy:t,mustSort:n,multiSort:r}}function Pw(e){const{sortBy:t,mustSort:n,multiSort:r,page:i}=e,l={sortBy:t,toggleSort:u=>{let f=t.value.map(h=>({...h}))??[];const d=f.find(h=>h.key===u);d?d.order==="desc"?n.value?d.order="asc":f=f.filter(h=>h.key!==u):d.order="desc":r.value?f=[...f,{key:u,order:"asc"}]:f=[{key:u,order:"asc"}],t.value=f,i&&(i.value=1)}};return Pt(Tw,l),l}function cB(){const e=rt(Tw);if(!e)throw new Error("Missing sort!");return e}function Rw(e,t,n){const r=R(()=>n.value.reduce((o,l)=>(l.sort&&(o[l.key]=l.sort),o),{}));return{sortedItems:R(()=>t.value.length?fB(e.value,t.value,"en",r.value):e.value)}}function fB(e,t,n,r){const i=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"});return[...e].sort((o,l)=>{for(let u=0;u<t.length;u++){const f=t[u].key,d=t[u].order;if(d===!1)continue;let h=So(o.raw,f),m=So(l.raw,f);if(d==="desc"&&([h,m]=[m,h]),r!=null&&r[f]){const v=r[f](h,m);if(!v)continue;return v}if(!(h==null||m==null)){if(h instanceof Date&&m instanceof Date)return h.getTime()-m.getTime();if([h,m]=[h,m].map(v=>(v||"").toString().toLocaleLowerCase()),h!==m)return!isNaN(h)&&!isNaN(m)?Number(h)-Number(m):i.compare(h,m)}}return 0})}const Iw=Pe()({name:"VDataTableHeaders",props:{color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:St,default:"$sortAsc"},sortDescIcon:{type:St,default:"$sortDesc"},...fm()},setup(e,t){let{slots:n,emit:r}=t;const{toggleSort:i,sortBy:o}=cB(),{someSelected:l,allSelected:u,selectAll:f}=Rc(),{columns:d,headers:h}=Pc(),{loaderClasses:m}=Cc(e),v=(w,C)=>!e.sticky&&!w.fixed?null:{position:"sticky",zIndex:w.fixed?4:e.sticky?3:void 0,left:w.fixed?ke(w.fixedOffset):void 0,top:e.sticky?`calc(var(--v-table-header-height) * ${C})`:void 0};function p(w){const C=o.value.find(V=>V.key===w);return C?C.order==="asc"?e.sortAscIcon:e.sortDescIcon:e.sortAscIcon}const{backgroundColorClasses:b,backgroundColorStyles:S}=Gn(e,"color"),T=R(()=>({headers:h.value,columns:d.value,toggleSort:i,sortBy:o.value,someSelected:l.value,allSelected:u.value,selectAll:f,getSortIcon:p,getFixedStyles:v})),A=w=>{let{column:C,x:V,y:L}=w;const F=!!o.value.find(k=>k.key===C.key),O=C.key==="data-table-select"||C.key==="data-table-expand";return y(km,{tag:"th",align:C.align,class:["v-data-table__th",{"v-data-table__th--sortable":C.sortable,"v-data-table__th--sorted":F},m.value],style:{width:ke(C.width),minWidth:ke(C.width),...v(C,L)},colspan:C.colspan,rowspan:C.rowspan,onClick:C.sortable?()=>i(C.key):void 0,lastFixed:C.lastFixed,noPadding:O},{default:()=>{var W;const k=`column.${C.key}`,z={column:C,selectAll:f};return n[k]?n[k](z):C.key==="data-table-select"?((W=n["column.data-table-select"])==null?void 0:W.call(n,z))??y(Pr,{modelValue:u.value,indeterminate:l.value&&!u.value,"onUpdate:modelValue":f},null):y("div",{class:"v-data-table-header__content"},[y("span",null,[C.title]),C.sortable&&y(ht,{key:"icon",class:"v-data-table-header__sort-icon",icon:p(C.key)},null),e.multiSort&&F&&y("div",{key:"badge",class:["v-data-table-header__sort-badge",...b.value],style:S.value},[o.value.findIndex(H=>H.key===C.key)+1])])}})};$e(()=>y(Ke,null,[n.headers?n.headers(T.value):h.value.map((w,C)=>y("tr",null,[w.map((V,L)=>y(A,{column:V,x:L,y:C},null))])),e.loading&&y("tr",{class:"v-data-table__progress"},[y("th",{colspan:d.value.length},[y(dm,{name:"v-data-table-headers",active:!0,color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0},{default:n.loader})])])]))}}),Lw=Ve({groupBy:{type:Array,default:()=>[]}},"data-table-group"),Ow=Symbol.for("vuetify:data-table-group");function Vw(e){return{groupBy:bt(e,"groupBy")}}function Fw(e){const{groupBy:t,sortBy:n}=e,r=J(new Set),i=R(()=>t.value.map(d=>({...d,order:d.order??!1})).concat(n.value));function o(d){return r.value.has(d.id)}function l(d){const h=new Set(r.value);o(d)?h.delete(d.id):h.add(d.id),r.value=h}function u(d){function h(m){const v=[];for(const p of m.items)p.type==="item"?v.push(p):v.push(...h(p));return v}return h({type:"group-header",items:d,id:"dummy",key:"dummy",value:"dummy",depth:0})}const f={sortByWithGroups:i,toggleGroup:l,opened:r,groupBy:t,extractRows:u,isGroupOpen:o};return Pt(Ow,f),f}function Mw(){const e=rt(Ow);if(!e)throw new Error("Missing group!");return e}function dB(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const i=So(r.raw,t);n.has(i)||n.set(i,[]),n.get(i).push(r)}return n}function Bw(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!t.length)return[];const i=dB(e,t[0]),o=[],l=t.slice(1);return i.forEach((u,f)=>{const d=t[0],h=`${r}_${d}_${f}`;o.push({depth:n,id:h,key:d,value:f,items:l.length?Bw(u,l,n+1,h):u,type:"group-header"})}),o}function Dw(e,t){const n=[];for(const r of e)r.type==="group-header"?(r.value!=null&&n.push(r),(t.has(r.id)||r.value==null)&&n.push(...Dw(r.items,t))):n.push(r);return n}function $w(e,t,n){return{flatItems:R(()=>{if(!t.value.length)return e.value;const i=Bw(e.value,t.value.map(o=>o.key));return Dw(i,n.value)})}}const hB=Pe()({name:"VDataTableGroupHeaderRow",props:{item:{type:Object,required:!0}},setup(e,t){let{slots:n}=t;const{isGroupOpen:r,toggleGroup:i,extractRows:o}=Mw(),{isSelected:l,isSomeSelected:u,select:f}=Rc(),{columns:d}=Pc(),h=R(()=>o([e.item]));return()=>y("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[d.value.map(m=>{var v,p;if(m.key==="data-table-group"){const b=r(e.item)?"$expand":"$next",S=()=>i(e.item);return((v=n["data-table-group"])==null?void 0:v.call(n,{item:e.item,count:h.value.length,props:{icon:b,onClick:S}}))??y(km,{class:"v-data-table-group-header-row__column"},{default:()=>[y(Kt,{size:"small",variant:"text",icon:b,onClick:S},null),y("span",null,[e.item.value]),y("span",null,[Te("("),h.value.length,Te(")")])]})}if(m.key==="data-table-select"){const b=l(h.value),S=u(h.value)&&!b,T=A=>f(h.value,A);return((p=n["data-table-select"])==null?void 0:p.call(n,{props:{modelValue:b,indeterminate:S,"onUpdate:modelValue":T}}))??y("td",null,[y(Pr,{modelValue:b,indeterminate:S,"onUpdate:modelValue":T},null)])}return y("td",null,null)})])}}),Hw=Ve({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"v-data-table-expand"),Nw=Symbol.for("vuetify:datatable:expanded");function Uw(e){const t=Se(e,"expandOnClick"),n=bt(e,"expanded",e.expanded,u=>new Set(u),u=>[...u.values()]);function r(u,f){const d=new Set(n.value);f?d.add(u.value):d.delete(u.value),n.value=d}function i(u){return n.value.has(u.value)}function o(u){r(u,!i(u))}const l={expand:r,expanded:n,expandOnClick:t,isExpanded:i,toggleExpand:o};return Pt(Nw,l),l}function zw(){const e=rt(Nw);if(!e)throw new Error("foo");return e}const mB=Oo({name:"VDataTableRow",props:{index:Number,item:Object,onClick:Function},setup(e,t){let{slots:n}=t;const{isSelected:r,toggleSelect:i}=Rc(),{isExpanded:o,toggleExpand:l}=zw(),{columns:u}=Pc();$e(()=>y("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!e.onClick}],onClick:e.onClick},[e.item&&u.value.map((f,d)=>y(km,{align:f.align,fixed:f.fixed,fixedOffset:f.fixedOffset,lastFixed:f.lastFixed,noPadding:f.key==="data-table-select"||f.key==="data-table-expand",width:f.width},{default:()=>{var p,b;const h=e.item,m=`item.${f.key}`,v={index:e.index,item:e.item,columns:u.value,isSelected:r,toggleSelect:i,isExpanded:o,toggleExpand:l};return n[m]?n[m](v):f.key==="data-table-select"?((p=n["item.data-table-select"])==null?void 0:p.call(n,v))??y(Pr,{modelValue:r([h]),onClick:Fd(()=>i(h),["stop"])},null):f.key==="data-table-expand"?((b=n["item.data-table-expand"])==null?void 0:b.call(n,v))??y(Kt,{icon:o(h)?"$collapse":"$expand",size:"small",variant:"text",onClick:Fd(()=>l(h),["stop"])},null):or(h.columns,f.key)}}))]))}}),Ww=Pe()({name:"VDataTableRows",props:{loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowHeight:Number,"onClick:row":Function},setup(e,t){let{emit:n,slots:r}=t;const{columns:i}=Pc(),{expandOnClick:o,toggleExpand:l,isExpanded:u}=zw(),{isSelected:f,toggleSelect:d}=Rc(),{toggleGroup:h,isGroupOpen:m}=Mw(),{t:v}=Vi();return $e(()=>{var p;return e.loading&&r.loading?y("tr",{class:"v-data-table-rows-loading",key:"loading"},[y("td",{colspan:i.value.length},[r.loading()])]):!e.loading&&!e.items.length&&!e.hideNoData?y("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[y("td",{colspan:i.value.length},[((p=r["no-data"])==null?void 0:p.call(r))??v(e.noDataText)])]):y(Ke,null,[e.items.map((b,S)=>{var A;if(b.type==="group-header")return r["group-header"]?r["group-header"]({index:S,item:b,columns:i.value,isExpanded:u,toggleExpand:l,isSelected:f,toggleSelect:d,toggleGroup:h,isGroupOpen:m}):y(hB,{key:`group-header_${b.id}`,item:b},r);const T={index:S,item:b,columns:i.value,isExpanded:u,toggleExpand:l,isSelected:f,toggleSelect:d};return y(Ke,null,[r.item?r.item(T):y(mB,{key:`item_${b.value}`,onClick:o.value||e["onClick:row"]?w=>{var C;o.value&&l(b),(C=e["onClick:row"])==null||C.call(e,w,{item:b})}:void 0,index:S,item:b},r),u(b)&&((A=r["expanded-row"])==null?void 0:A.call(r,T))])})])}),{}}});const vB=Ve({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"v-data-table-paginate"),Gw=Symbol.for("vuetify:data-table-pagination");function gB(e){const t=bt(e,"page",void 0,r=>+(r??1)),n=bt(e,"itemsPerPage",void 0,r=>+(r??10));return{page:t,itemsPerPage:n}}function pB(e){const{page:t,itemsPerPage:n,itemsLength:r}=e,i=R(()=>n.value===-1?0:n.value*(t.value-1)),o=R(()=>n.value===-1?r.value:Math.min(r.value,i.value+n.value)),l=R(()=>n.value===-1||r.value===0?1:Math.ceil(r.value/n.value));function u(d){n.value=d,t.value=1}const f={page:t,itemsPerPage:n,itemsLength:r,startIndex:i,stopIndex:o,pageCount:l,setItemsPerPage:u};return Pt(Gw,f),f}function yB(){const e=rt(Gw);if(!e)throw new Error("Missing pagination!");return e}function bB(e){const{items:t,startIndex:n,stopIndex:r,itemsPerPage:i}=e;return{paginatedItems:R(()=>i.value<=0?t.value:t.value.slice(n.value,r.value))}}const _B=Pe()({name:"VDataTableFooter",props:{prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},setup(e,t){let{slots:n}=t;const{t:r}=Vi(),{page:i,pageCount:o,startIndex:l,stopIndex:u,itemsLength:f,itemsPerPage:d,setItemsPerPage:h}=yB(),m=R(()=>e.itemsPerPageOptions.map(v=>({...v,title:r(v.title)})));return()=>{var v;return y("div",{class:"v-data-table-footer"},[(v=n.prepend)==null?void 0:v.call(n),y("div",{class:"v-data-table-footer__items-per-page"},[y("span",null,[r(e.itemsPerPageText)]),y(hw,{items:m.value,modelValue:d.value,"onUpdate:modelValue":p=>h(Number(p)),density:"compact",variant:"outlined","hide-details":!0},null)]),y("div",{class:"v-data-table-footer__info"},[y("div",null,[r(e.pageText,f.value?l.value+1:0,u.value,f.value)])]),y("div",{class:"v-data-table-footer__pagination"},[y(Kt,{icon:e.firstIcon,variant:"plain",onClick:()=>i.value=1,disabled:i.value===1,"aria-label":r(e.firstPageLabel)},null),y(Kt,{icon:e.prevIcon,variant:"plain",onClick:()=>i.value=Math.max(1,i.value-1),disabled:i.value===1,"aria-label":r(e.prevPageLabel)},null),e.showCurrentPage&&y("span",{key:"page",class:"v-data-table-footer__page"},[i.value]),y(Kt,{icon:e.nextIcon,variant:"plain",onClick:()=>i.value=Math.min(o.value,i.value+1),disabled:i.value===o.value,"aria-label":r(e.nextPageLabel)},null),y(Kt,{icon:e.lastIcon,variant:"plain",onClick:()=>i.value=o.value,disabled:i.value===o.value,"aria-label":r(e.lastPageLabel)},null)])])}}}),jw=Ve({...wm({itemValue:"id"})},"v-data-table-item");function wB(e,t,n){const r=t.split(".");for(;r.length>1;){const i=r.shift();e[i]==null&&(e[i]={}),typeof e[i]=="object"&&(e=e[i])}e[r[0]]=n}function Kw(e,t){const{items:n}=Cm(e);return{items:R(()=>n.value.map(i=>({...i,type:"item",columns:t.value.reduce((o,l)=>(wB(o,l.key,or(i.raw,l.value??l.key)),o),{})})))}}function qw(e){let{page:t,itemsPerPage:n,sortBy:r,groupBy:i,search:o}=e;const l=cn("VDataTable"),u=R(()=>({page:t.value,itemsPerPage:n.value,sortBy:r.value,groupBy:i.value,search:o.value}));De(()=>o==null?void 0:o.value,()=>{t.value=1});let f=null;De(u,()=>{Oi(f,u.value)||(l.emit("update:options",u.value),f=u.value)},{deep:!0,immediate:!0})}const lh=Ve({...jw(),..._w(),hideNoData:Boolean,hover:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},height:[String,Number],width:[String,Number],fixedHeader:Boolean,fixedFooter:Boolean,"onClick:row":Function,search:String},"v-data-table");Pe()({name:"VDataTable",props:{...lh(),...Hw(),...Lw(),...Sw(),...Ew(),...vB(),...Em()},emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0},setup(e,t){let{emit:n,slots:r}=t;const{groupBy:i}=Vw(e),{sortBy:o,multiSort:l,mustSort:u}=kw(e),{page:f,itemsPerPage:d}=gB(e),{columns:h}=Cw(e,{groupBy:i,showSelect:Se(e,"showSelect"),showExpand:Se(e,"showExpand")}),{items:m}=Kw(e,h),v=R(()=>h.value.map(z=>"columns."+z.key)),p=Se(e,"search"),{filteredItems:b}=Tm(e,m,p,{filterKeys:v});Pw({sortBy:o,multiSort:l,mustSort:u,page:f});const{sortByWithGroups:S,opened:T,extractRows:A}=Fw({groupBy:i,sortBy:o}),{sortedItems:w}=Rw(b,S,h),{flatItems:C}=$w(w,i,T),V=R(()=>C.value.length),{startIndex:L,stopIndex:F}=pB({page:f,itemsPerPage:d,itemsLength:V}),{paginatedItems:O}=bB({items:C,startIndex:L,stopIndex:F,itemsPerPage:d}),k=R(()=>A(O.value));return Aw(e,k),Uw(e),qw({page:f,itemsPerPage:d,sortBy:o,groupBy:i,search:p}),Kn({VDataTableRows:{hideNoData:Se(e,"hideNoData"),noDataText:Se(e,"noDataText")}}),$e(()=>y(os,{class:["v-data-table",{"v-data-table--show-select":e.showSelect}],fixedHeader:e.fixedHeader,fixedFooter:e.fixedFooter,height:e.height,hover:e.hover},{top:r.top,default:r.default??(()=>{var z,W,H,U;return y(Ke,null,[(z=r.colgroup)==null?void 0:z.call(r,{columns:h}),y("thead",null,[y(Iw,{sticky:e.fixedHeader,multiSort:e.multiSort},r)]),(W=r.thead)==null?void 0:W.call(r),y("tbody",null,[r.body?r.body():y(Ww,{items:O.value,"onClick:row":e["onClick:row"]},r)]),(H=r.tbody)==null?void 0:H.call(r),(U=r.tfoot)==null?void 0:U.call(r)])}),bottom:r.bottom??(()=>y(_B,null,{prepend:r["footer.prepend"]}))})),{}}});const CB=Ve({visibleItems:{type:[String,Number],default:20},itemHeight:{type:[String,Number],default:52}},"virtual"),my=-1,vy=1;function SB(e,t){const n=J(0),r=R(()=>parseInt(e.itemHeight,10)),i=R(()=>parseInt(e.visibleItems,10)),o=J(),l=J(!1);function u(S){return S*r.value}function f(S){let T=0,A=t.value.length;for(;T<=A;){const w=T+Math.floor((A-T)/2),C=u(w);if(C===S)return w;C<S?T=w+1:C>S&&(A=w-1)}return T}let d=0,h;function m(){if(!o.value)return;l.value=!0,clearTimeout(h),h=setTimeout(()=>{l.value=!1},100);const S=o.value.scrollTop,T=S<d?my:vy,A=f(S),w=Math.round(i.value/3);T===my&&A<=n.value?n.value=Math.max(A-w,0):T===vy&&A>=n.value+w*2&&(n.value=Math.min(Math.max(0,A-w),t.value.length-i.value)),d=o.value.scrollTop}const v=R(()=>Math.min(t.value.length,n.value+i.value)),p=R(()=>u(n.value)),b=R(()=>u(t.value.length)-u(v.value));return{startIndex:n,stopIndex:v,paddingTop:p,paddingBottom:b,handleScroll:m,containerRef:o,itemHeight:r,isScrolling:l}}const Do=Pe()({name:"VDataTableVirtual",props:{...lh(),...lh(),...Lw(),...Hw(),..._w(),...jw(),...Sw(),...Ew(),...CB(),...Em()},emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"click:row":(e,t)=>!0},setup(e,t){let{emit:n,slots:r}=t;const{groupBy:i}=Vw(e),{sortBy:o,multiSort:l,mustSort:u}=kw(e),{columns:f}=Cw(e,{groupBy:i,showSelect:Se(e,"showSelect"),showExpand:Se(e,"showExpand")}),{items:d}=Kw(e,f),h=R(()=>f.value.map(H=>"columns."+H.key)),m=Se(e,"search"),{filteredItems:v}=Tm(e,d,m,{filterKeys:h});Pw({sortBy:o,multiSort:l,mustSort:u});const{sortByWithGroups:p,opened:b,extractRows:S}=Fw({groupBy:i,sortBy:o}),{sortedItems:T}=Rw(v,p,f),{flatItems:A}=$w(T,i,b),w=R(()=>S(A.value));Aw(e,w),Uw(e);const{containerRef:C,paddingTop:V,paddingBottom:L,startIndex:F,stopIndex:O,itemHeight:k,handleScroll:z}=SB(e,A),W=R(()=>A.value.slice(F.value,O.value));qw({sortBy:o,page:J(1),itemsPerPage:J(-1),groupBy:i,search:m}),Kn({VDataTableRows:{hideNoData:Se(e,"hideNoData"),noDataText:Se(e,"noDataText")}}),$e(()=>y(os,{class:"v-data-table",style:{"--v-table-row-height":ke(k.value)},fixedHeader:e.fixedHeader,fixedFooter:e.fixedFooter,height:e.height,hover:e.hover},{top:r.top,wrapper:()=>y("div",{ref:C,onScroll:z,class:"v-table__wrapper",style:{height:ke(e.height)}},[y("table",null,[y("thead",null,[y(Iw,{sticky:e.fixedHeader,multiSort:e.multiSort},r)]),y("tbody",null,[y("tr",{style:{height:ke(V.value),border:0}},[y("td",{colspan:f.value.length,style:{height:ke(V.value),border:0}},null)]),y(Ww,{items:W.value,"onClick:row":e["onClick:row"]},r),y("tr",{style:{height:ke(L.value),border:0}},[y("td",{colspan:f.value.length,style:{height:ke(L.value),border:0}},null)])])])]),bottom:r.bottom}))}}),xB={name:"RelationChips",props:{pks:{type:Array,required:!0},map:{type:Object,required:!0}}};function AB(e,t,n,r,i,o){return ie(),Fe("span",null,[(ie(!0),Fe(Ke,null,Dr(n.pks,l=>(ie(),je(Am,{key:l,size:"small"},{default:se(()=>[Te(be(n.map[l]),1)]),_:2},1024))),128))])}const $o=ot(xB,[["render",AB]]),EB={name:"AdminCreateUpdateButton",props:{update:{type:Boolean,default:!1},table:{type:String,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{mdiPencil:T3}}},TB={key:1};function kB(e,t,n,r,i,o){return ie(),je(Kt,Oe({rounded:"",icon:n.update},e.$attrs,{size:n.size,density:n.density}),{default:se(()=>[n.update?(ie(),je(ht,{key:0},{default:se(()=>[Te(be(i.mdiPencil),1)]),_:1})):(ie(),Fe("span",TB,"+ "+be(n.table),1))]),_:1},16,["icon","size","density"])}const PB=ot(EB,[["render",kB]]);const RB={name:"AdminCreateUpdateDialog",components:{AdminCreateUpdateButton:PB,SubmitFooter:Bo},props:{table:{type:String,required:!0},oldRow:{type:[Object,Boolean],default:!1},inputs:{type:Object,required:!0},size:{type:String,default:"default"},density:{type:String,default:"default"}},data(){return{row:{},showDialog:!1,submitButtonEnabled:!1}},computed:{verb(){return this.oldRow?"Update":"Add"},title(){return(this.oldRow?"Edit":"Add")+" "+this.table}},watch:{showDialog(e){this.row=this.getRow(e)}},methods:{...Gt(vt,["createRow","updateRow"]),validate(){let e=!1;for(const[n,r]of Object.entries(this.row))if(!_r.isEqual(this.oldRow[n],r)){e=!0;break}if(!e)return!1;const t=this.$refs.form;return t?t.validate().then(({valid:n})=>n).catch(()=>!1):!1},change(e){this.row=e,this.submitButtonEnabled=this.validate()},getRow(e){if(!e||!this.oldRow)return _r.cloneDeep(this.inputs.EMPTY_ROW);const t={};for(const n of this.inputs.UPDATE_KEYS)t[n]=_r.cloneDeep(this.oldRow[n]);return t},doUpdate:function(){const e={};for(const[t,n]of Object.entries(this.row))_r.isEqual(this.oldRow[t],n)||(e[t]=n);this.updateRow(this.table,this.oldRow.pk,e).then(()=>(this.showDialog=!1,!0)).catch(console.error)},doCreate:function(){this.createRow(this.table,this.row).then(()=>(this.showDialog=!1,!0)).catch(console.error)},submit:function(){const e=this.$refs.form;e&&e.validate().then(({valid:t})=>{if(t)return this.oldRow?this.doUpdate():this.doCreate()}).catch(console.warn)}}};function IB(e,t,n,r,i,o){const l=Vt("AdminCreateUpdateButton"),u=Bo;return ie(),je(el,Oe({modelValue:i.showDialog,"onUpdate:modelValue":t[1]||(t[1]=f=>i.showDialog=f),transition:"scale-transition"},e.$attrs),{activator:se(({props:f})=>[y(l,Oe({update:!!n.oldRow,table:n.table},f,{size:n.size,density:n.density,title:o.title}),null,16,["update","table","size","density","title"])]),default:se(()=>[y(bm,{ref:"form",class:"cuForm"},{default:se(()=>[D("h2",null,be(n.table),1),(ie(),je(Li(n.inputs),{"old-row":n.oldRow,onChange:o.change},null,40,["old-row","onChange"])),y(u,{verb:o.verb,table:n.table,disabled:!i.submitButtonEnabled,onSubmit:o.submit,onCancel:t[0]||(t[0]=f=>i.showDialog=!1)},null,8,["verb","table","disabled","onSubmit"])]),_:1},512)]),_:1},16,["modelValue"])}const Pm=ot(RB,[["render",IB],["__scopeId","data-v-1643bf88"]]);const LB={name:"DateTimeColumn",props:{dttm:{type:String,default:""}},data(){return{date:new Date(this.dttm)}},computed:{...Et(hc,{twentyFourHourTime:e=>e.settings.twentyFourHourTime}),formattedDate:function(){return gw.format(this.date)},formattedTime:function(){return pw(this.twentyFourHourTime).format(this.date)}},created(){}},OB={key:0},VB={class:"colTime"};function FB(e,t,n,r,i,o){return n.dttm?(ie(),Fe("div",OB,[Te(be(o.formattedDate)+" ",1),D("div",VB,be(o.formattedTime),1)])):Lt("",!0)}const Rm=ot(LB,[["render",FB],["__scopeId","data-v-b06bd477"]]),MB={name:"AdminDeleteRowDialog",components:{ConfirmDialog:Xs},props:{table:{type:String,required:!0},pk:{type:Number,required:!0},name:{type:String,required:!0}},data(){return{mdiTrashCan:P3}},computed:{titleText(){return`Delete ${this.table}`}},methods:{...Gt(vt,["deleteRow"]),confirm(){this.deleteRow(this.table,this.pk),this.showDialog=!1}}};function BB(e,t,n,r,i,o){const l=Xs;return ie(),je(l,{icon:i.mdiTrashCan,"title-text":o.titleText,"object-name":n.name,"confirm-text":o.titleText,onConfirm:o.confirm},null,8,["icon","title-text","object-name","confirm-text","onConfirm"])}const Im=ot(MB,[["render",BB]]),DB={name:"AdminRelationPicker"};function $B(e,t,n,r,i,o){return ie(),je(hw,Oe({chips:!0,"closable-chips":!0,density:"compact",multiple:!0},e.$attrs),null,16)}const Lm=ot(DB,[["render",$B]]),Yw=["username","isStaff","isActive","groups"];Object.freeze(Yw);const uh={username:"",password:"",passwordConfirm:"",isStaff:!1,isActive:!0,groups:[]};Object.freeze(uh);const HB={name:"AdminUserCreateUpdateInputs",components:{AdminRelationPicker:Lm},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{username:[e=>!!e||"Username is required",e=>!!e&&!this.usernames.has(e.trim())||"Username already used"],password:[e=>!!e||"Password is required"],passwordConfirm:[e=>e===this.row.password||"Passwords must match"]},row:_r.cloneDeep(this.oldRow||uh)}},computed:{...Rr(vt,["vuetifyGroups"]),...Et(vt,{users:e=>e.users}),usernames(){return this.nameSet(this.users,"username",this.oldRow,!0)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=_r.cloneDeep(e)},deep:!0}},methods:{...Gt(vt,["nameSet"])},UPDATE_KEYS:Yw,EMPTY_ROW:uh},NB={key:0};function UB(e,t,n,r,i,o){const l=Vt("AdminRelationPicker");return ie(),Fe("div",null,[y(Cn,{modelValue:i.row.username,"onUpdate:modelValue":t[0]||(t[0]=u=>i.row.username=u),autocomplete:"username",label:"Username",rules:i.rules.username,clearable:"",autofocus:"",onKeydown:t[1]||(t[1]=cs(u=>e.$refs.password.focus(),["enter"]))},null,8,["modelValue","rules"]),n.oldRow?Lt("",!0):(ie(),Fe("div",NB,[y(Cn,{ref:"password",modelValue:i.row.password,"onUpdate:modelValue":t[2]||(t[2]=u=>i.row.password=u),autocomplete:"new-password",label:"Password",rules:i.rules.password,clearable:"",type:"password",onKeydown:t[3]||(t[3]=cs(u=>e.$refs.passwordConfirm.focus(),["enter"]))},null,8,["modelValue","rules"]),y(Cn,{ref:"passwordConfirm",modelValue:i.row.passwordConfirm,"onUpdate:modelValue":t[4]||(t[4]=u=>i.row.passwordConfirm=u),autocomplete:"new-password",label:"Confirm Password",rules:i.rules.passwordConfirm,clearable:"",type:"password"},null,8,["modelValue","rules"])])),y(Ao,{modelValue:i.row.isStaff,"onUpdate:modelValue":t[5]||(t[5]=u=>i.row.isStaff=u),label:"Is Staff"},null,8,["modelValue"]),y(Ao,{modelValue:i.row.isActive,"onUpdate:modelValue":t[6]||(t[6]=u=>i.row.isActive=u),label:"Is Active"},null,8,["modelValue"]),y(l,{modelValue:i.row.groups,"onUpdate:modelValue":t[7]||(t[7]=u=>i.row.groups=u),label:"Groups",items:e.vuetifyGroups},null,8,["modelValue","items"])])}const zB=ot(HB,[["render",UB]]),WB={name:"AdminUsersTab",components:{AdminDeleteRowDialog:Im,ChangePasswordDialog:kc,AdminCreateUpdateDialog:Pm,DateTimeColumn:Rm,RelationChips:$o,VDataTableVirtual:Do},data(){return{AdminUserCreateUpdateInputs:Wn(zB),headers:[{title:"Username",key:"username",align:"start"},{title:"Staff",key:"isStaff"},{title:"Active",key:"isActive"},{title:"Groups",key:"groups"},{title:"Last Active",key:"lastActive"},{title:"Last Login",key:"lastLogin"},{title:"Joined",key:"dateJoined"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...Rr(vt,["groupMap"]),...Et(vt,{users:e=>e.users}),...Et(xn,{me:e=>e.user})},mounted(){this.loadTables(["Group","User"])},methods:{...Gt(vt,["loadTables"])}},GB={class:"tabHeader"},jB=D("td",{class:"adminNoData",colspan:"100%"},[Te(" No Users. "),D("div",null,[Te(" This is an error. There should always be at least one Staff user."),D("br"),Te(" You should not be able to see this page"),D("br"),Te(" You should restart Codex with the CODEX_RESET_ADMIN=1 variable set."),D("br"),Te(" See the "),D("a",{href:"https://github.com/ajslater/codex#reset-the-admin-password",target:"_blank"}," README ")])],-1);function KB(e,t,n,r,i,o){const l=Vt("AdminCreateUpdateDialog"),u=$o,f=Vt("DateTimeColumn"),d=kc,h=Vt("AdminDeleteRowDialog"),m=Do;return ie(),Fe("div",null,[D("header",GB,[y(l,{table:"User",inputs:i.AdminUserCreateUpdateInputs,"max-width":"20em"},null,8,["inputs"])]),y(m,{"fixed-headers":"","item-value":"pk","item-title":"username",headers:i.headers,items:e.users,class:"adminTable"},{"no-data":se(()=>[jB]),["item.isStaff"]:se(({item:v})=>[y(Pr,{"model-value":v.raw.isStaff,disabled:""},null,8,["model-value"])]),["item.isActive"]:se(({item:v})=>[y(Pr,{"model-value":v.raw.isActive,disabled:""},null,8,["model-value"])]),["item.groups"]:se(({item:v})=>[y(u,{pks:v.raw.groups,map:e.groupMap},null,8,["pks","map"])]),["item.lastActive"]:se(({item:v})=>[y(f,{dttm:v.raw.lastActive},null,8,["dttm"])]),["item.lastLogin"]:se(({item:v})=>[y(f,{dttm:v.raw.lastLogin},null,8,["dttm"])]),["item.dateJoined"]:se(({item:v})=>[y(f,{dttm:v.raw.dateJoined},null,8,["dttm"])]),["item.actions"]:se(({item:v})=>[y(l,{table:"User",inputs:i.AdminUserCreateUpdateInputs,"old-row":v.raw,"max-width":"20em",size:"small",density:"compact"},null,8,["inputs","old-row"]),y(d,{user:v.raw,"is-admin-mode":!0,size:"small",density:"compact"},null,8,["user"]),e.me.id!==v.raw.pk?(ie(),je(h,{key:0,table:"User",pk:v.raw.pk,name:v.raw.username,size:"small",density:"compact"},null,8,["pk","name"])):Lt("",!0)]),_:2},1032,["headers","items"])])}const qB=ot(WB,[["render",KB]]),YB=Object.freeze(Object.defineProperty({__proto__:null,default:qB},Symbol.toStringTag,{value:"Module"})),Zw=["name","userSet","librarySet"];Object.freeze(Zw);const ch={name:"",userSet:[],librarySet:[]};Object.freeze(ch);const ZB={name:"AdminGroupCreateUpdateInputs",components:{AdminRelationPicker:Lm},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{name:[e=>!!e||"Name is required",e=>!!e&&!this.names.has(e.trim())||"Name already used"]},row:_r.cloneDeep(this.oldRow||ch)}},computed:{...Rr(vt,["vuetifyLibraries","vuetifyUsers"]),...Et(vt,{groups:e=>e.groups}),names(){return this.nameSet(this.groups,"name",this.oldRow,!0)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=_r.cloneDeep(e)},deep:!0}},methods:{...Gt(vt,["nameSet"])},UPDATE_KEYS:Zw,EMPTY_ROW:ch};function XB(e,t,n,r,i,o){const l=Vt("AdminRelationPicker");return ie(),Fe("div",null,[y(Cn,{modelValue:i.row.name,"onUpdate:modelValue":t[0]||(t[0]=u=>i.row.name=u),label:"Group Name",rules:i.rules.name,clearable:"",autofocus:""},null,8,["modelValue","rules"]),y(l,{"model-value":i.row.userSet,label:"Users",items:e.vuetifyUsers,"onUpdate:modelValue":t[1]||(t[1]=u=>i.row.userSet=u)},null,8,["model-value","items"]),y(l,{"model-value":i.row.librarySet,label:"Libraries",items:e.vuetifyLibraries,"onUpdate:modelValue":t[2]||(t[2]=u=>i.row.librarySet=u)},null,8,["model-value","items"])])}const JB=ot(ZB,[["render",XB]]);const QB=180,e6={name:"AdminGroupsTab",components:{AdminDeleteRowDialog:Im,AdminCreateUpdateDialog:Pm,RelationChips:$o,VDataTableVirtual:Do},data(){return{lastUpdate:{pk:0,field:void 0},AdminGroupCreateUpdateInputs:Wn(JB),GROUP_HELP_HEIGHT:QB,headers:[{title:"Name",key:"name",align:"start"},{title:"Users",key:"userSet"},{title:"Libraries",key:"librarySet"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...Et(vt,{groups:e=>e.groups}),...Rr(vt,["libraryMap","userMap"])},mounted(){this.loadTables(["User","Library","Group"])},methods:{...Gt(vt,["loadTables"])}},Xw=e=>(Ri("data-v-75e1ab4e"),e=e(),Ii(),e),t6={class:"tabHeader"},n6=Xw(()=>D("td",{class:"adminNoData",colspan:"100%"},"No groups",-1)),r6=Xw(()=>D("div",{id:"groupHelp"},[D("h3",null,"Group Logic"),D("p",null," A library with no groups is accessible to every user and non-users if those are enabled. "),D("p",null,[Te(" A library with "),D("em",null,"any"),Te(" groups is accessible "),D("em",null,"only"),Te(" to users who are in those groups. ")]),D("p",null," If you have libraries added and you do not see them in your browser, check to see if the library and your user are in the same group. ")],-1));function s6(e,t,n,r,i,o){const l=Vt("AdminCreateUpdateDialog"),u=$o,f=Vt("AdminDeleteRowDialog"),d=Do;return ie(),Fe("div",null,[D("header",t6,[y(l,{table:"Group","max-width":"20em",inputs:i.AdminGroupCreateUpdateInputs},null,8,["inputs"])]),y(d,{class:"adminTable","fixed-headers":"","item-value":"pk","item-title":"name",headers:i.headers,items:e.groups},{"no-data":se(()=>[n6]),["item.userSet"]:se(({item:h})=>[y(u,{pks:h.raw.userSet,map:e.userMap},null,8,["pks","map"])]),["item.librarySet"]:se(({item:h})=>[y(u,{pks:h.raw.librarySet,map:e.libraryMap},null,8,["pks","map"])]),["item.actions"]:se(({item:h})=>[y(l,{table:"Group","old-row":h.raw,"max-width":"20em",inputs:i.AdminGroupCreateUpdateInputs,size:"small",density:"compact"},null,8,["old-row","inputs"]),y(f,{table:"Group",pk:h.raw.pk,name:h.raw.name,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),r6])}const i6=ot(e6,[["render",s6],["__scopeId","data-v-75e1ab4e"]]),o6=Object.freeze(Object.defineProperty({__proto__:null,default:i6},Symbol.toStringTag,{value:"Module"}));const a6={name:"AdminFailedImportsPanel",components:{DateTimeColumn:Rm},data(){return{mdiBookAlert:g3,mdiOpenInNew:gc}},computed:{...Et(vt,["failedImports"]),...zh(vt,["unseenFailedImports"])},created(){this.unseenFailedImports=!0}},Fi=e=>(Ri("data-v-bc6470a2"),e=e(),Ii(),e),l6={key:0,id:"failedImports"},u6=Fi(()=>D("thead",null,[D("tr",null,[D("th",null,"Path"),D("th",null,"Created")])],-1)),c6={class:"dateCol"},f6=Fi(()=>D("h4",null,"Failed Imports Help",-1)),d6=Fi(()=>D("p",null," These are Comic archives that have failed to import. This list is updated every time the library updates. You should probably review these files and fix or remove them. ",-1)),h6=Fi(()=>D("h4",null,"Fixing comics",-1)),m6=Fi(()=>D("p",null,[Te(" Try using the zip fixer to fix comics: "),D("code",{class:"cli"},[Te(" cp problem-comic.cbz /somewhere/safe/problem-comic.cbz.backup"),D("br"),Te(" zip -F problem-comic.cbz --out fixed.zip"),D("br"),Te(" mv fixed.zip problem-comic.cbz ")]),Te(" You may also try "),D("code",null,"zip -FF"),Te(" to fix comics which uses a different (not necissarily better) algorithm. If you fix some imports, and Codex does not immediately detect the change, poll the library which contains the fixed comics. ")],-1)),v6=Fi(()=>D("h4",null,"Reporting Issues",-1)),g6={href:"https://github.com/ajslater/codex/issues/",target:"_blank"},p6=Fi(()=>D("code",null,"config/logs/codex.log",-1));function y6(e,t,n,r,i,o){const l=Vt("DateTimeColumn");return e.failedImports&&e.failedImports.length>0?(ie(),Fe("div",l6,[y(dy,null,{default:se(()=>[y(hy,{id:"failedImportsPanel",onClick:t[0]||(t[0]=u=>e.unseenFailedImports=!1)},{default:se(()=>[y(oh,null,{default:se(()=>[D("h4",null,"Failed Imports: "+be(e.failedImports.length),1),e.unseenFailedImports?(ie(),je(ht,{key:0,id:"failedImportsIcon",title:"New Failed Imports"},{default:se(()=>[Te(be(i.mdiBookAlert),1)]),_:1})):Lt("",!0)]),_:1}),y(ah,null,{default:se(()=>[y(os,{class:"highlight-table"},{default:se(()=>[u6,D("tbody",null,[(ie(!0),Fe(Ke,null,Dr(e.failedImports,u=>(ie(),Fe("tr",{key:`fi:${u.path}`},[D("td",null,be(u.path),1),D("td",c6,[y(l,{dttm:u.createdAt},null,8,["dttm"])])]))),128))])]),_:1}),y(dy,null,{default:se(()=>[y(hy,{id:"failedImportsHelp"},{default:se(()=>[y(oh,null,{default:se(()=>[f6]),_:1}),y(ah,null,{default:se(()=>[d6,h6,m6,v6,D("p",null,[Te(" If the comic looks good to you, but still shows up as a failed import, it might be Codex's fault for not importing it correctly. Please file an "),D("a",g6,[Te("Issue Report"),y(ht,{size:"small"},{default:se(()=>[Te(be(i.mdiOpenInNew),1)]),_:1})]),Te(" and include the stack trace from the logs at "),p6,Te(" if you can. ")])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])):Lt("",!0)}const b6=ot(a6,[["render",y6],["__scopeId","data-v-bc6470a2"]]),_6={name:"TimeTextField",data(){return{FORMAT:"DDD HH:mm:SS",timeRules:[e=>/^(\d{1,3} )?([01]\d|2[0-3]):([0-5]\d):([0-5]\d)$/.test(e)||`Invalid time format ${this.FORMAT}`]}}};function w6(e,t,n,r,i,o){return ie(),je(Cn,Oe({ref:"timeField",density:"compact",filled:"",hint:i.FORMAT,round:"",rules:i.timeRules},e.$attrs),null,16,["hint","rules"])}const Jw=ot(_6,[["render",w6]]);const C6={name:"AdminServerFolderPicker",emits:["change","menu"],data(){return{path:"",originalPath:"",showHidden:!1,menuOpen:!1}},computed:{...Et(vt,{folders:e=>e.folderPicker.folders,rootFolder:e=>e.folderPicker.rootFolder}),...Et(kt,{formErrors:e=>e.form.errors}),appendOuterIcon(){return this.showHidden?this.mdiFolderHidden:this.mdiFolderOutline},showHiddenTooltipPrefix(){return this.showHidden?"Hide":"Show"}},watch:{menuOpen(e){e&&this.$emit("menu",e)}},created(){this.loadFolders().then(()=>(this.path=this.rootFolder,this.originalPath=this.rootFolder,!0)).catch(console.warn)},methods:{...Gt(vt,["clearFolders","loadFolders"]),...Gt(kt,["clearErrors"]),change(e){const t=e?e.startsWith("/")||e.startsWith("\\")?e:[this.rootFolder,e].join("/"):this.rootFolder,n=this.menuOpen;this.clearErrors(),this.loadFolders(t,this.showHidden).then(()=>{this.menuOpen=n;let r="";return this.formErrors.length===0&&(this.path=r=this.rootFolder),this.$emit("change",r)}).catch(console.warn)},onBlur(){this.menuOpen=!1,this.change(this.path)},onClear(){this.clearFolders(this.orignalPath).then(()=>this.change(this.orginalPath)).catch(console.error)},onKeyDownEnter(){this.change(this.path)},onItemClick(e){this.change(e)}}},S6={id:"folderPicker"};function x6(e,t,n,r,i,o){return ie(),Fe("div",S6,[y(KM,Oe({modelValue:i.path,"onUpdate:modelValue":t[0]||(t[0]=l=>i.path=l),menu:i.menuOpen,"onUpdate:menu":t[1]||(t[1]=l=>i.menuOpen=l)},e.$attrs,{"aria-label":"Library folder",clearable:"","error-messages":e.formErrors,"full-width":"","hide-details":"auto",items:e.folders,"menu-props":{maxHeight:"370px"},"validate-on":"blur",variant:"filled",onBlur:o.onBlur,"onClick:clear":o.onClear,onKeydown:cs(o.onKeyDownEnter,["enter"])}),{item:se(({item:l,props:u})=>[y(kr,Oe(u,{title:l.title,value:l.value,onClick:f=>o.onItemClick(l.value)}),null,16,["title","value","onClick"])]),_:1},16,["modelValue","menu","error-messages","items","onBlur","onClick:clear","onKeydown"]),y(Ao,{modelValue:i.showHidden,"onUpdate:modelValue":t[2]||(t[2]=l=>i.showHidden=l),density:"compact",class:"showHidden","hide-details":"auto",label:"Show Hidden Folders"},null,8,["modelValue"])])}const A6=ot(C6,[["render",x6],["__scopeId","data-v-3cf2705f"]]),Qw=["events","poll","pollEvery","groups"];Object.freeze(Qw);const fh={path:"",events:!0,poll:!0,pollEvery:"01:00:00",groups:[]};Object.freeze(fh);const gy=(e,t)=>(e=e.replaceAll("\\","/"),t=t.replaceAll("\\","/"),e.endsWith("/")||(e+="/"),t.endsWith("/")||(t+="/"),t.startsWith(e)),E6={name:"AdminLibraryCreateUpdateInputs",components:{AdminRelationPicker:Lm,AdminServerFolderPicker:A6,TimeTextField:Jw},props:{oldRow:{type:[Object,Boolean],default:!1}},emits:["change"],data(){return{rules:{path:[e=>!!e||"Path is required",e=>{if(!e)return!1;for(const t of this.paths){if(gy(t,e))return"Path is a child of an existing library";if(gy(e,t))return"Path is a parent of an existing library"}return!0}]},row:_r.cloneDeep(this.oldRow||fh)}},computed:{...Rr(vt,["vuetifyGroups"]),...Et(vt,{libraries:e=>e.libraries}),paths(){return this.nameSet(this.libraries,"path",this.oldRow,!1)}},watch:{row:{handler(e){this.$emit("change",e)},deep:!0},oldRow:{handler(e){this.row=_r.cloneDeep(e)},deep:!0}},methods:{...Gt(vt,["nameSet"])},UPDATE_KEYS:Qw,EMPTY_ROW:fh},T6={key:1};function k6(e,t,n,r,i,o){const l=Vt("AdminServerFolderPicker"),u=Jw,f=Vt("AdminRelationPicker");return ie(),Fe(Ke,null,[n.oldRow?(ie(),Fe("div",T6,be(n.oldRow.path),1)):(ie(),je(l,{key:0,rules:i.rules.path,autofocus:"",label:"Library Folder",onChange:t[0]||(t[0]=d=>i.row.path=d)},null,8,["rules"])),y(Ao,{modelValue:i.row.events,"onUpdate:modelValue":t[1]||(t[1]=d=>i.row.events=d),"hide-details":"auto",hint:"Update Codex instantly when the filesystem changes",label:"Watch Filesystem Events","persistent-hint":!0},null,8,["modelValue"]),y(Ao,{modelValue:i.row.poll,"onUpdate:modelValue":t[2]||(t[2]=d=>i.row.poll=d),label:"Poll Filesystem Periodically","hide-details":"auto",hint:"Periodically poll the library for changes","persistent-hint":!0},null,8,["modelValue"]),y(u,{modelValue:i.row.pollEvery,"onUpdate:modelValue":t[3]||(t[3]=d=>i.row.pollEvery=d),label:"Poll Every",disabled:!i.row.poll},null,8,["modelValue","disabled"]),y(f,{modelValue:i.row.groups,"onUpdate:modelValue":t[4]||(t[4]=d=>i.row.groups=d),label:"Groups",items:e.vuetifyGroups},null,8,["modelValue","items"])],64)}const P6=ot(E6,[["render",k6]]);const R6={name:"AdminLibrariesTab",components:{VDataTableVirtual:Do,AdminDeleteRowDialog:Im,AdminFailedImportsPanel:b6,AdminCreateUpdateDialog:Pm,RelationChips:$o,ConfirmDialog:Xs,DateTimeColumn:Rm},data(){return{lastUpdate:{pk:0,field:void 0},mdiDatabaseClockOutline:_3,mdiDatabaseImportOutline:w3,mdiOpenInNew:gc,AdminLibraryCreateUpdateInputs:Wn(P6),headers:[{title:"Path",key:"path",align:"start"},{title:"Watch File Events",key:"events"},{title:"Poll Files Periodically",key:"poll"},{title:"Poll Every",key:"pollEvery"},{title:"Last Poll",key:"lastPoll"},{title:"Groups",key:"groups"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{...Rr(vt,["groupMap"]),...Et(vt,{libraries:e=>e.libraries,formErrors:e=>e.form.errors}),...Et(hc,{twentyFourHourTime:e=>e.settings.twentyFourHourTime})},mounted(){this.loadTables(["Group","Library","FailedImport"])},methods:{...Gt(vt,["updateRow","clearErrors","librarianTask","loadTables"]),formatDateTime:e=>e?YM(e,globalThis.twentyFourHourTime):"",changeCol(e,t,n){this.lastUpdate.pk=e,this.lastUpdate.field=t;const r={[t]:n};this.updateRow("Library",e,r)},getFormErrors(e,t){if(e===this.lastUpdate.pk&&t===this.lastUpdate.field)return this.formErrors},poll(e){this.librarianTask("poll",`Poll Library ${e}`,e)},forcePoll(e){this.librarianTask("poll_force",`Force Poll Library ${e}`,e)}}},I6=e=>(Ri("data-v-9c876310"),e=e(),Ii(),e),L6={class:"tabHeader"},O6=I6(()=>D("td",{class:"adminNoData",colspan:"100%"}," Add a Library to start using Codex ",-1));function V6(e,t,n,r,i,o){const l=Vt("AdminCreateUpdateDialog"),u=Vt("DateTimeColumn"),f=$o,d=Xs,h=Vt("AdminDeleteRowDialog"),m=Do,v=Vt("AdminFailedImportsPanel");return ie(),Fe("div",null,[D("header",L6,[y(l,{table:"Library",inputs:i.AdminLibraryCreateUpdateInputs},null,8,["inputs"])]),y(m,{class:"adminTable","fixed-headers":"","item-value":"pk","item-title":"path",headers:i.headers,items:e.libraries,"sort-by":[{key:"path",order:"asc"}]},{"no-data":se(()=>[O6]),["item.events"]:se(({item:p})=>[y(Pr,{"model-value":p.raw.events,disabled:""},null,8,["model-value"])]),["item.poll"]:se(({item:p})=>[y(Pr,{"model-value":p.raw.poll,disabled:""},null,8,["model-value"])]),["item.pollEvery"]:se(({item:p})=>[D("span",{class:Cr({disabled:!p.raw.poll})},be(p.raw.pollEvery),3)]),["item.lastPoll"]:se(({item:p})=>[y(u,{dttm:p.raw.lastPoll},null,8,["dttm"])]),["item.groups"]:se(({item:p})=>[y(f,{pks:p.raw.groups,map:e.groupMap},null,8,["pks","map"])]),["item.actions"]:se(({item:p})=>[y(d,{icon:i.mdiDatabaseClockOutline,"title-text":"Poll for updated comics in","object-name":p.raw.path,"confirm-text":"Poll Library",size:"small",density:"compact",onConfirm:b=>o.poll(p.raw.pk)},null,8,["icon","object-name","onConfirm"]),y(d,{icon:i.mdiDatabaseImportOutline,"title-text":"Force update every comic in","object-name":p.raw.path,"confirm-text":"Force Update",size:"small",density:"compact",onConfirm:b=>o.forcePoll(p.raw.pk)},null,8,["icon","object-name","onConfirm"]),y(l,{table:"Library","old-row":p.raw,inputs:i.AdminLibraryCreateUpdateInputs,"max-width":"22em",size:"small",density:"compact"},null,8,["old-row","inputs"]),y(h,{table:"Library",pk:p.raw.pk,name:p.raw.path,size:"small",density:"compact"},null,8,["pk","name"])]),_:2},1032,["headers","items"]),y(Ya,null,{default:se(()=>[y(v)]),_:1})])}const F6=ot(R6,[["render",V6],["__scopeId","data-v-9c876310"]]),M6=Object.freeze(Object.defineProperty({__proto__:null,default:F6},Symbol.toStringTag,{value:"Module"}));const B6={name:"AdminTasksTab",components:{ConfirmDialog:Xs},data(){return{tasks:eB}},computed:{...Et(kt,{formSuccess:e=>e.form.success,formErrors:e=>e.form.errors})},methods:{...Gt(vt,["librarianTask"])}},D6=e=>(Ri("data-v-91b96721"),e=e(),Ii(),e),$6={id:"tasks"},H6=D6(()=>D("span",{id:"lastTaskLabel"},"Last Task Queued:",-1)),N6={key:0,id:"success"},U6={key:1,id:"error"},z6={key:2,id:"noRecentTask"},W6={class:"taskBox"},G6={class:"taskDesc"};function j6(e,t,n,r,i,o){const l=Xs;return ie(),Fe("div",$6,[D("div",null,[H6,D("span",null,[e.formSuccess?(ie(),Fe("span",N6,be(e.formSuccess),1)):e.formErrors&&e.formErrors.length>0?(ie(),Fe("span",U6,[(ie(!0),Fe(Ke,null,Dr(e.formErrors,u=>(ie(),Fe("span",{key:u},be(u),1))),128))])):(ie(),Fe("span",z6,"No recent task"))])]),(ie(!0),Fe(Ke,null,Dr(i.tasks,u=>(ie(),Fe("div",{key:u.title,"fixed-header":"",class:"taskGroup"},[D("h3",null,be(u.title),1),(ie(!0),Fe(Ke,null,Dr(u.tasks,f=>(ie(),Fe("div",{key:f.value,class:Cr(["trow",{selected:!1}])},[D("div",W6,[f.confirm?(ie(),je(l,{key:0,"button-text":f.title,"title-text":f.title,"object-name":f.confirm,"confirm-text":"Confirm",onConfirm:d=>e.librarianTask(f.value,f.title)},null,8,["button-text","title-text","object-name","onConfirm"])):(ie(),je(Kt,{key:1,block:"",onClick:d=>e.librarianTask(f.value,f.title)},{default:se(()=>[Te(be(f.title),1)]),_:2},1032,["onClick"])),D("div",G6,be(f.desc),1)])]))),128))]))),128))])}const K6=ot(B6,[["render",j6],["__scopeId","data-v-91b96721"]]),q6=Object.freeze(Object.defineProperty({__proto__:null,default:K6},Symbol.toStringTag,{value:"Module"}));const Y6={name:"AdminTasksTab",components:{ConfirmDialog:Xs},data(){return{showTooltip:{show:!1},apiSchemaURL:window.CODEX.API_V3_PATH}},computed:{...Et(kt,{}),...Et(vt,{stats:e=>e.stats}),clipBoardIcon(){return this.showTooltip?Xb:Jb}},created(){this.loadStats()},methods:{...Gt(vt,["loadStats","updateAPIKey"]),regenAPIKey(){this.updateAPIKey().then(this.loadStats).catch(console.warn)},nf(e){return mw.numberFormat(e,0)},onClickAPIKey(){n_(this.stats.config.apiKey,this.showTooltip)}}},at=e=>(Ri("data-v-2c39476d"),e=e(),Ii(),e),Z6={key:0,id:"stats"},X6={class:"statBlock"},J6=at(()=>D("h3",null,"Platform",-1)),Q6=at(()=>D("td",null,"Docker",-1)),eD=at(()=>D("td",null,"Machine",-1)),tD=at(()=>D("td",null,"System",-1)),nD=at(()=>D("td",null,"Python",-1)),rD=at(()=>D("td",null,"Codex",-1)),sD={class:"statBlock"},iD=at(()=>D("h3",null,"Config",-1)),oD=at(()=>D("td",null,"Libraries",-1)),aD=at(()=>D("td",null,"Anonymous Users",-1)),lD=at(()=>D("td",null,"Registered Users",-1)),uD=at(()=>D("td",null,"Groups",-1)),cD={class:"statBlock"},fD=at(()=>D("h3",null,"Groups",-1)),dD=at(()=>D("td",null,"Folders",-1)),hD=at(()=>D("td",null,"Publishers",-1)),mD=at(()=>D("td",null,"Imprints",-1)),vD=at(()=>D("td",null,"Series",-1)),gD=at(()=>D("td",null,"Volumes",-1)),pD=at(()=>D("td",null,"Issues",-1)),yD={key:0},bD=at(()=>D("td",{class:"indent"},"CBZ",-1)),_D={key:1},wD=at(()=>D("td",{class:"indent"},"CBR",-1)),CD={key:2},SD=at(()=>D("td",{class:"indent"},"CBX",-1)),xD={key:3},AD=at(()=>D("td",{class:"indent"},"CBT",-1)),ED={key:4},TD=at(()=>D("td",{class:"indent"},"PDF",-1)),kD={key:5},PD=at(()=>D("td",{class:"indent"},"Unknown",-1)),RD={class:"statBlock"},ID=at(()=>D("h3",null,"Metadata",-1)),LD=at(()=>D("td",null,"Characters",-1)),OD=at(()=>D("td",null,"Genres",-1)),VD=at(()=>D("td",null,"Locations",-1)),FD=at(()=>D("td",null,"Series Groups",-1)),MD=at(()=>D("td",null,"Story Arcs",-1)),BD=at(()=>D("td",null,"Tags",-1)),DD=at(()=>D("td",null,"Teams",-1)),$D=at(()=>D("td",null,"Credits",-1)),HD=at(()=>D("td",{class:"indent"},"Roles",-1)),ND=at(()=>D("td",{class:"indent"},"Creators",-1)),UD={class:"statBlock"},zD=at(()=>D("h3",null,"API",-1)),WD=at(()=>D("td",null,"Schema Documentation:",-1)),GD={id:"schemaDocValue"},jD=["href"],KD={class:"copied"},qD={id:"apiKey"},YD={colspan:"2"};function ZD(e,t,n,r,i,o){const l=Xs;return e.stats?(ie(),Fe("div",Z6,[D("div",X6,[J6,y(os,{class:"highlight-table"},{default:se(()=>[D("tbody",null,[D("tr",null,[Q6,D("td",null,be(e.stats.platform.docker),1)]),D("tr",null,[eD,D("td",null,be(e.stats.platform.machine),1)]),D("tr",null,[tD,D("td",null,be(e.stats.platform.system)+" "+be(e.stats.platform.systemRelease),1)]),D("tr",null,[nD,D("td",null,be(e.stats.platform.python),1)]),D("tr",null,[rD,D("td",null,be(e.stats.platform.codex),1)])])]),_:1})]),D("div",sD,[iD,y(os,{class:"highlight-table"},{default:se(()=>[D("tbody",null,[D("tr",null,[oD,D("td",null,be(o.nf(e.stats.config.libraryCount)),1)]),D("tr",null,[aD,D("td",null,be(o.nf(e.stats.config.sessionAnonCount)),1)]),D("tr",null,[lD,D("td",null,be(o.nf(e.stats.config.userCount)),1)]),D("tr",null,[uD,D("td",null,be(o.nf(e.stats.config.groupCount)),1)])])]),_:1})]),D("div",cD,[fD,y(os,{class:"highlight-table"},{default:se(()=>[D("tbody",null,[D("tr",null,[dD,D("td",null,be(o.nf(e.stats.groups.folderCount)),1)]),D("tr",null,[hD,D("td",null,be(o.nf(e.stats.groups.publisherCount)),1)]),D("tr",null,[mD,D("td",null,be(o.nf(e.stats.groups.imprintCount)),1)]),D("tr",null,[vD,D("td",null,be(o.nf(e.stats.groups.seriesCount)),1)]),D("tr",null,[gD,D("td",null,be(o.nf(e.stats.groups.volumeCount)),1)]),D("tr",null,[pD,D("td",null,be(o.nf(e.stats.groups.comicCount)),1)]),e.stats.fileTypes.cbzCount?(ie(),Fe("tr",yD,[bD,D("td",null,be(o.nf(e.stats.fileTypes.cbzCount)),1)])):Lt("",!0),e.stats.fileTypes.cbrCount?(ie(),Fe("tr",_D,[wD,D("td",null,be(o.nf(e.stats.fileTypes.cbrCount)),1)])):Lt("",!0),e.stats.fileTypes.cbxCount?(ie(),Fe("tr",CD,[SD,D("td",null,be(o.nf(e.stats.fileTypes.cbxCount)),1)])):Lt("",!0),e.stats.fileTypes.cbtCount?(ie(),Fe("tr",xD,[AD,D("td",null,be(o.nf(e.stats.fileTypes.cbtCount)),1)])):Lt("",!0),e.stats.fileTypes.pdfCount?(ie(),Fe("tr",ED,[TD,D("td",null,be(o.nf(e.stats.fileTypes.pdfCount)),1)])):Lt("",!0),e.stats.fileTypes.unknownCount?(ie(),Fe("tr",kD,[PD,D("td",null,be(o.nf(e.stats.fileTypes.unknownCount)),1)])):Lt("",!0)])]),_:1})]),D("div",RD,[ID,y(os,{class:"highlight-table"},{default:se(()=>[D("tbody",null,[D("tr",null,[LD,D("td",null,be(o.nf(e.stats.metadata.characterCount)),1)]),D("tr",null,[OD,D("td",null,be(o.nf(e.stats.metadata.genreCount)),1)]),D("tr",null,[VD,D("td",null,be(o.nf(e.stats.metadata.locationCount)),1)]),D("tr",null,[FD,D("td",null,be(o.nf(e.stats.metadata.seriesGroupCount)),1)]),D("tr",null,[MD,D("td",null,be(o.nf(e.stats.metadata.storyArcCount)),1)]),D("tr",null,[BD,D("td",null,be(o.nf(e.stats.metadata.tagCount)),1)]),D("tr",null,[DD,D("td",null,be(o.nf(e.stats.metadata.teamCount)),1)]),D("tr",null,[$D,D("td",null,be(o.nf(e.stats.metadata.creatorCount)),1)]),D("tr",null,[HD,D("td",null,be(o.nf(e.stats.metadata.creatorRoleCount)),1)]),D("tr",null,[ND,D("td",null,be(o.nf(e.stats.metadata.creatorPersonCount)),1)])])]),_:1})]),D("div",UD,[zD,y(os,{class:"highlight-table"},{default:se(()=>[D("tbody",null,[D("tr",null,[WD,D("td",GD,[Te(" The only endpoint accessible with API Key access is "),D("a",{href:`${i.apiSchemaURL}#/api/api_v3_admin_stats_retrieve`,target:"_blank"},"/admin/stats",8,jD)])]),D("tr",{id:"apiKeyRow",onClick:t[0]||(t[0]=(...u)=>o.onClickAPIKey&&o.onClickAPIKey(...u))},[D("td",null,[Te(" API Key "),y(ht,{class:"clipBoardIcon",size:"small"},{default:se(()=>[Te(be(o.clipBoardIcon),1)]),_:1}),y(Vu,null,{default:se(()=>[qt(D("span",KD,"Copied",512),[[lr,i.showTooltip.show]])]),_:1})]),D("td",qD,be(e.stats.config.apiKey),1)]),D("tr",null,[D("td",YD,[y(l,{"button-text":"Regenerate API Key","title-text":"Regenerate","object-name":"API Key","confirm-text":"Regenerate",onConfirm:o.regenAPIKey},null,8,["onConfirm"])])])])]),_:1})])])):Lt("",!0)}const XD=ot(Y6,[["render",ZD],["__scopeId","data-v-2c39476d"]]),JD=Object.freeze(Object.defineProperty({__proto__:null,default:XD},Symbol.toStringTag,{value:"Module"}));export{u8 as $,C8 as A,Rr as B,xn as C,Vt as D,ht as E,Ke as F,f_ as G,e8 as H,Na as I,sr as J,kt as K,pr as L,hc as M,Pe as N,tt as O,i8 as P,jt as Q,tn as R,o8 as S,Vo as T,$e as U,Du as V,Ab as W,Kd as X,Ks as Y,s8 as Z,P_ as _,Et as a,gw as a$,a8 as a0,c8 as a1,l8 as a2,Oo as a3,im as a4,u3 as a5,D1 as a6,h3 as a7,qb as a8,Zt as a9,os as aA,el as aB,Ao as aC,oR as aD,aR as aE,Oe as aF,hw as aG,y8 as aH,b8 as aI,zh as aJ,fV as aK,cV as aL,U8 as aM,Cn as aN,z_ as aO,z8 as aP,R8 as aQ,_8 as aR,$8 as aS,D8 as aT,F8 as aU,cs as aV,KM as aW,$b as aX,oM as aY,T8 as aZ,Y8 as a_,Yt as aa,cr as ab,Qt as ac,Yb as ad,Ur as ae,rt as af,J as ag,Nr as ah,De as ai,On as aj,Oh as ak,Lh as al,mn as am,A0 as an,II as ao,p8 as ap,Cr as aq,I8 as ar,m8 as as,Kt as at,DF as au,tw as av,cM as aw,h8 as ax,dh as ay,$h as az,Gt as b,L8 as b$,YM as b0,X8 as b1,Xs as b2,S8 as b3,Fd as b4,fw as b5,A8 as b6,E8 as b7,NF as b8,HF as b9,ka as bA,Ei as bB,ec as bC,R as bD,lm as bE,ar as bF,ke as bG,Pu as bH,y3 as bI,XF as bJ,x8 as bK,k8 as bL,K8 as bM,j8 as bN,xm as bO,sh as bP,Tc as bQ,ja as bR,Z_ as bS,St as bT,mc as bU,xo as bV,G_ as bW,G8 as bX,CF as bY,M8 as bZ,B8 as b_,D_ as ba,Ja as bb,$t as bc,Fo as bd,Qa as be,bt as bf,qt as bg,Sr as bh,as as bi,lr as bj,E3 as bk,MM as bl,ew as bm,Wn as bn,zF as bo,g8 as bp,v8 as bq,q8 as br,V8 as bs,f8 as bt,Ih as bu,Li as bv,ur as bw,_r as bx,RM as by,PM as bz,ot as c,O8 as c0,d8 as c1,hy as c2,oh as c3,ah as c4,dy as c5,i_ as c6,W8 as c7,Ve as c8,fr as c9,ys as ca,r8 as cb,Se as cc,Pt as cd,Xa as ce,Tr as cf,bs as cg,N8 as ch,n8 as ci,dr as cj,Gn as ck,j_ as cl,Ec as cm,Zh as cn,$_ as co,P8 as cp,Am as cq,Z8 as cr,vi as cs,H8 as ct,$F as cu,t8 as cv,QD as cw,Fe as d,je as e,Lt as f,y as g,mw as h,Ya as i,D as j,Te as k,Z3 as l,w8 as m,tl as n,ie as o,kr as p,Ri as q,Dr as r,J8 as s,be as t,vt as u,Ii as v,se as w,g3 as x,gc as y,_3 as z};
|