From 22979235fa501f2ec53fca6dc9d135aa844ca2c6 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Fri, 19 Sep 2025 14:29:20 +1000 Subject: [PATCH 01/25] chore: wip tide content collection UI --- .gitignore | 1 + .../tide_content_collection_ui/README.md | 13 + .../tide_content_collection_ui/app/.gitignore | 2 + .../app/dist/main.js | 33 + .../app/dist/main.js.map | 1 + .../app/package-lock.json | 1074 +++++++++++++++++ .../app/package.json | 12 + .../app/src/index.html | 47 + .../app/src/index.js | 25 + .../app/vite.config.js | 25 + ...aragraph.content_collection_ui.default.yml | 43 + ...aragraph.content_collection_ui.default.yml | 45 + ...ent_collection_ui.field_paragraph_body.yml | 25 + ...ent_collection_ui.field_paragraph_link.yml | 36 + ...nt_collection_ui.field_paragraph_title.yml | 18 + ....paragraphs_type.content_collection_ui.yml | 13 + .../ContentCollectionUIAutocomplete.php | 105 ++ .../ContentCollectionUIFormatter.php | 36 + .../FieldType/ContentCollectionUIItem.php | 57 + .../ContentCollectionUIDefaultWidget.php | 133 ++ .../tide_content_collection_ui.info.yml | 10 + .../tide_content_collection_ui.libraries.yml | 8 + .../tide_content_collection_ui.module | 6 + .../tide_content_collection_ui.routing.yml | 7 + .../tide_content_collection_ui.services.yml | 4 + ..._term.searchable_content_types.default.yml | 57 + ...axonomy_term.searchable_fields.default.yml | 24 +- ..._term.searchable_content_types.default.yml | 30 + ...axonomy_term.searchable_fields.default.yml | 18 + ...hable_content_types.field_machine_name.yml | 18 + ...hable_fields.field_elasticsearch_field.yml | 4 +- ...archable_fields.field_elasticsearch_id.yml | 18 + ..._fields.field_searchable_content_types.yml | 28 + ...e.taxonomy_term.field_elasticsearch_id.yml | 20 + ...my_term.field_searchable_content_types.yml | 18 + ...my.vocabulary.searchable_content_types.yml | 8 + 36 files changed, 2018 insertions(+), 4 deletions(-) create mode 100644 modules/tide_api/modules/tide_content_collection_ui/README.md create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/.gitignore create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js.map create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/package.json create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/src/index.html create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/src/index.js create mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php create mode 100644 modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php create mode 100644 modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php create mode 100644 modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php create mode 100644 modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module create mode 100644 modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.routing.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.services.yml create mode 100644 modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml create mode 100644 modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml create mode 100644 modules/tide_search/config/optional/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml create mode 100644 modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml create mode 100644 modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml create mode 100644 modules/tide_search/config/optional/field.storage.taxonomy_term.field_elasticsearch_id.yml create mode 100644 modules/tide_search/config/optional/field.storage.taxonomy_term.field_searchable_content_types.yml create mode 100644 modules/tide_search/config/optional/taxonomy.vocabulary.searchable_content_types.yml diff --git a/.gitignore b/.gitignore index b1bbca113..d176ddf50 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ /composer.build.lock /docroot /dpc-sdp +.idea .env.local docker-compose.override.yml screenshots diff --git a/modules/tide_api/modules/tide_content_collection_ui/README.md b/modules/tide_api/modules/tide_content_collection_ui/README.md new file mode 100644 index 000000000..2e6f38c82 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/README.md @@ -0,0 +1,13 @@ +# Tide content collection UI + +Module that provides a custom field type for integrating the content collection UI app. + +## App + +### Updating/building the app + +To update and build the Vue app, update the version of `@dpc-sdp/tide-search-ui` in `app/package.json` and run `npm install && npm run build` from the app directory. + +### Testing the app + +The app can be tested within Drupal by adding the landing page component to a page. It can also be tested outside Drupal for preliminary testing by running `npm run dev` from the app directory. Make sure you have a `.env` file within the app directory with the following: `VITE_API_URL=http://content-sdp.docker.internal/` diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore b/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore new file mode 100644 index 000000000..6ed48a986 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/.gitignore @@ -0,0 +1,2 @@ +.env +node_modules diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js new file mode 100644 index 000000000..3b036a4ac --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js @@ -0,0 +1,33 @@ +(function(){"use strict";var Yr=document.createElement("style");Yr.textContent=`.tide-form :where(input[type=text],input[type=number],textarea,select,button):focus{box-shadow:var(--tide-shadow-focus)}.tide-form__element{width:100%;padding:var(--tide-space-4) var(--tide-space-5);color:var(--tide-colour-text);border:var(--tide-border-width-1) solid var(--tide-border-colour);border-radius:var(--tide-border-radius-1);appearance:none}.tide-form__element:hover{border-color:var(--tide-border-colour-hover);box-shadow:var(--tide-border-shadow-hover)}.tide-form__element:is(select,input[type=text],input[type=number]){min-height:48px;font-size:inherit;background-color:var(--tide-colour-white)}.tide-form__label{display:block;font-size:var(--tide-font-size-3);margin-bottom:var(--tide-space-2);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-3)}.tide-form__description{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);line-height:var(--tide-line-height-3);margin-top:var(--tide-space-2)}.tide-form__error{color:var(--tide-colour-error);font-size:var(--tide-font-size-3)}.tide-fieldset[data-v-da18ce75]{margin:0;position:relative;padding-inline:var(--tide-space-6);padding-block:var(--tide-space-9) var(--tide-space-6);background-color:var(--tide-colour-white);border-radius:var(--tide-border-radius-1);border:var(--tide-border-width-1) solid var(--tide-colour-grey);box-shadow:var(--tide-shadow-2)}.tide-fieldset__legend[data-v-da18ce75]{position:absolute;display:block;width:calc(100% - var(--tide-space-6) * 2);left:var(--tide-space-6);top:var(--tide-space-5);padding-inline:0;padding-block:0 var(--tide-space-3);font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-3);border-bottom:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-fieldset__required[data-v-da18ce75]{color:var(--tide-colour-error);font-weight:var(--tide-font-weight-1)}.tide-fieldset__description[data-v-da18ce75]{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);margin-block:calc(var(--tide-space-4) * -1) var(--tide-space-6)}.tide-fieldset+.tide-fieldset[data-v-da18ce75]{margin-top:var(--tide-space-5)}.tide-fieldset[data-v-da18ce75]>*:last-child{margin-bottom:0}.tide-fieldset[data-v-da18ce75]>*:where(.tide-field-group,.tide-field)+*:where(.tide-field-group,.tide-field){margin-top:var(--tide-space-5);padding-top:var(--tide-space-5);border-top:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-field:has(input:disabled,select:disabled,textarea:disabled){opacity:.5;pointer-events:none}.tide-field__label{font:inherit}.tide-field__required{color:var(--tide-colour-error)}.tide-option-button[data-v-378f24ab]{display:flex;align-items:center;padding-block:var(--tide-space-1);padding-inline:var(--tide-space-1) var(--tide-space-5);min-height:90px;cursor:pointer}.tide-option-button .tide-form__label[data-v-378f24ab]{font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-2)}.tide-option-button[aria-disabled=true][data-v-378f24ab]{opacity:.5;pointer-events:none}.tide-option-button__image[data-v-378f24ab]{display:flex;align-items:center;justify-content:center;align-self:stretch;pointer-events:none;background-image:none;padding:var(--tide-space-6);background-color:var(--tide-colour-grey-light)}.tide-option-button__icon[data-v-378f24ab]{width:50px;height:auto}.tide-option-button__main[data-v-378f24ab]{flex:1;display:flex;flex-direction:column;justify-content:center;padding:var(--tide-space-4) var(--tide-space-3)}.tide-option-button__input[data-v-378f24ab]{outline:none;box-shadow:none;scale:1.5}.tide-option-button[data-v-378f24ab]:focus-within{box-shadow:var(--tide-shadow-focus)}.tide-option-group[data-v-0c7fefd7]{display:grid;gap:var(--tide-space-2) var(--tide-space-5);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.tide-button{font:inherit;margin:0;padding:calc(var(--tide-space-5) - 1px) var(--tide-space-6);display:flex;align-items:center;justify-content:center;text-align:center;border:none;color:var(--tide-colour-text);border-radius:var(--tide-border-radius-1);background-color:var(--tide-colour-grey);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-2);box-shadow:var(--tide-shadow-1);cursor:pointer}.tide-button:focus-visible{outline:none}.tide-button:not([disabled]):hover{filter:brightness(.9)}.tide-button[disabled]{opacity:.5;filter:grayscale(1);cursor:not-allowed}.tide-button--small{font-size:var(--tide-font-size-2);line-height:var(--tide-line-height-1);padding:var(--tide-space-3) var(--tide-space-4)}.tide-button--large{font-size:var(--tide-font-size-4);line-height:var(--tide-line-height-3);padding:var(--tide-space-6) var(--tide-space-7)}.tide-button--primary{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-button--danger{color:var(--tide-colour-white);background-color:var(--tide-colour-error)}.tide-button--plain{all:unset;text-decoration:underline;cursor:pointer}.tide-field-group__content[data-v-787c34d8]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group--repeatable .tide-field-group__content[data-v-787c34d8]{display:block}.tide-field-group__action[data-v-787c34d8]{margin-top:var(--tide-space-6)}.tide-dropdown-list[data-v-af4a810a]{position:relative}.tide-dropdown-list:focus-within .tide-dropdown-list__autocomplete[data-v-af4a810a]{box-shadow:var(--tide-shadow-focus)}.tide-dropdown-list__autocomplete[data-v-af4a810a]{display:flex;flex-wrap:wrap;flex-direction:row;gap:var(--tide-space-4) var(--tide-space-2);padding-block:var(--tide-space-3);padding-right:var(--tide-space-7);background-color:var(--tide-colour-white);min-height:48px}.tide-dropdown-list__input[data-v-af4a810a]{flex:1;padding:0;border:none;width:125px;min-height:auto;font:inherit}.tide-dropdown-list__input[data-v-af4a810a]:focus{border:none;box-shadow:none;outline:none}.tide-dropdown-list__input[data-v-af4a810a]:disabled{background-color:transparent}.tide-dropdown-list__tags[data-v-af4a810a]{display:contents}.tide-dropdown-list__tag[data-v-af4a810a]{display:flex;align-items:center;justify-content:space-between;gap:var(--tide-space-3);font-weight:500;font-size:var(--tide-font-size-2);border-radius:1rem;background-color:var(--tide-colour-grey);padding:var(--tide-space-1) var(--tide-space-4);margin-block:var(--tide-space-1)}.tide-dropdown-list__tag[data-v-af4a810a]:hover{outline:1px solid var(--tide-colour-focus);outline-offset:1px}.tide-dropdown-list__tag-remove[data-v-af4a810a]{display:flex;align-items:center;justify-content:center;border:none;color:var(--tide-colour-grey);background-color:var(--tide-colour-grey-dark);border-radius:50%;margin-right:-4px;cursor:pointer;width:16px;height:16px;padding:var(--tide-space-1);font-size:var(--tide-font-size-1)}.tide-dropdown-list__tag-remove svg[data-v-af4a810a]{stroke:var(--tide-colour-white)}.tide-dropdown-list__tag-remove[data-v-af4a810a]:hover{color:var(--tide-colour-grey-light)}.tide-dropdown-list__loading-icon[data-v-af4a810a]{position:absolute;top:calc(50% - 9px);right:var(--tide-space-4);fill:var(--tide-colour-grey-dark);pointer-events:none;animation:tideSpin-af4a810a 1s linear infinite}.tide-dropdown-list__menu[data-v-af4a810a]{position:absolute;top:calc(100% + 1px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:0;z-index:99;background-color:var(--tide-colour-white);overscroll-behavior:contain;box-shadow:var(--tide-shadow-2)}.tide-dropdown-list__menu-item[data-v-af4a810a]{padding:var(--tide-space-4) var(--tide-space-5);cursor:pointer}.tide-dropdown-list__menu-item[data-v-af4a810a]:hover,.tide-dropdown-list__menu-item[aria-current=true][data-v-af4a810a]{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-dropdown-list__menu-item[data-v-af4a810a]:where([aria-selected=true]){background-color:var(--tide-colour-grey)}.tide-dropdown-list__menu-empty[data-v-af4a810a]{cursor:inherit}.tide-dropdown-list__menu-empty[data-v-af4a810a]:hover{color:var(--tide-colour-text);background-color:var(--tide-colour-white)}.tide-dropdown-list--single .tide-dropdown-list__autocomplete[data-v-af4a810a]{padding-right:var(--tide-space-5)}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-af4a810a]{padding:0;width:100%;font-size:inherit;font-weight:inherit;background-color:transparent}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-af4a810a]:hover{outline:none}.tide-dropdown-list--single .tide-dropdown-list__tag-text[data-v-af4a810a]{max-width:calc(100% - var(--tide-space-8))}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-af4a810a]{background-color:transparent;width:22px;height:22px}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-af4a810a]:hover{background-color:var(--tide-colour-grey-light)}.tide-dropdown-list--single .tide-dropdown-list__tag-remove svg[data-v-af4a810a]{stroke:var(--tide-colour-grey-dark)}@keyframes tideSpin-af4a810a{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tide-field-group-row[data-v-77f91b0d]{display:grid;align-items:center;grid-template-columns:1fr;gap:var(--tide-space-5)}.tide-field-group-row--sortable[data-v-77f91b0d]{grid-template-columns:auto 1fr}.tide-field-group-row--removeable[data-v-77f91b0d]{grid-template-columns:1fr auto}.tide-field-group-row--sortable.tide-field-group-row--removeable[data-v-77f91b0d]{grid-template-columns:auto 1fr auto}.tide-field-group-row+.tide-field-group-row[data-v-77f91b0d]{margin-top:var(--tide-space-3);padding-top:var(--tide-space-3);border-top:var(--tide-border-width-1) solid var(--tide-colour-grey-light)}.tide-field-group-row__content[data-v-77f91b0d]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group__sort[data-v-77f91b0d]{cursor:grab;display:flex;margin-right:calc(var(--tide-space-3) * -1)}.tide-field-group__sort svg[data-v-77f91b0d]{stroke:var(--tide-colour-grey-dark)}.tide-field-group-row__action-button[data-v-77f91b0d]{translate:0 -1px}.tide-radio[data-v-df50077b]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-radio--inline[data-v-df50077b]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-radio__label[data-v-df50077b]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-radio__input[data-v-df50077b]{margin:0;scale:1.25}.tide-radio__input[data-v-df50077b]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-checkbox[data-v-3a00e669]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-checkbox--inline[data-v-3a00e669]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-checkbox__label[data-v-3a00e669]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-checkbox__input[data-v-3a00e669]{scale:1.25}.tide-checkbox__input[data-v-3a00e669]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-collection{--tide-space-1: .125rem;--tide-space-2: .25rem;--tide-space-3: .5rem;--tide-space-4: .75rem;--tide-space-5: 1rem;--tide-space-6: 1.5rem;--tide-space-7: 2.5rem;--tide-space-8: 3.25rem;--tide-space-9: 4.5rem;--tide-font-size-1: .702rem;--tide-font-size-2: .79rem;--tide-font-size-3: .889rem;--tide-font-size-4: 1.125rem;--tide-font-size-5: 1.266rem;--tide-font-size-6: 1.424rem;--tide-font-size-7: 1.602rem;--tide-font-weight-1: 400;--tide-font-weight-2: 600;--tide-font-weight-3: 700;--tide-line-height-1: .9;--tide-line-height-2: 1.1;--tide-line-height-3: 1.3;--tide-line-height-4: 1.6;--tide-line-height-5: 1.9;--tide-colour-primary: #003ecc;--tide-colour-focus: #26a769;--tide-colour-error: #dc2323;--tide-colour-text: #232429;--tide-colour-white: #ffffff;--tide-colour-grey: #dedfe4;--tide-colour-grey-light: #f5f8ff;--tide-colour-grey-dark: #828388;--tide-border-width-1: 1px;--tide-border-width-2: 2px;--tide-border-width-3: 4px;--tide-border-colour: #919297;--tide-border-colour-hover: var(--tide-colour-text);--tide-border-radius-1: 2px;--tide-border-radius-2: 4px;--tide-border-radius-3: 6px;--tide-border-radius-4: 8px;--tide-border-radius-5: 50%;--tide-border-shadow-hover: inset 0 0 0 1px var(--tide-colour-text);--tide-shadow-1: 0 1px 2px rgba(0, 0, 0, .25);--tide-shadow-2: 0 2px 4px rgba(0, 0, 0, .1);--tide-shadow-focus: 0 0 0 2px var(--tide-colour-white), 0 0 0 5px var(--tide-colour-focus);--tide-outline-focus: 2px var(--tide-colour-focus) solid;accent-color:var(--tide-colour-primary);border-radius:var(--tide-border-radius-1)}.tide-collection *,.tide-collection *:before,.tide-collection *:after{box-sizing:border-box}.tide-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;pointer-events:none} +/*$vite$:1*/`,document.head.appendChild(Yr);var Qr={};/** +* @vue/shared v3.5.18 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Ka(e){const a=Object.create(null);for(const t of e.split(","))a[t]=1;return t=>t in a}const de=Qr.NODE_ENV!=="production"?Object.freeze({}):{},Ft=Qr.NODE_ENV!=="production"?Object.freeze([]):[],qe=()=>{},wu=()=>!1,pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hn=e=>e.startsWith("onUpdate:"),$e=Object.assign,Xo=(e,a)=>{const t=e.indexOf(a);t>-1&&e.splice(t,1)},_u=Object.prototype.hasOwnProperty,le=(e,a)=>_u.call(e,a),G=Array.isArray,wt=e=>Kn(e)==="[object Map]",Xr=e=>Kn(e)==="[object Set]",Y=e=>typeof e=="function",Se=e=>typeof e=="string",Ga=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Jo=e=>(be(e)||Y(e))&&Y(e.then)&&Y(e.catch),Jr=Object.prototype.toString,Kn=e=>Jr.call(e),Zo=e=>Kn(e).slice(8,-1),Zr=e=>Kn(e)==="[object Object]",ei=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,un=Ka(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ku=Ka("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Gn=e=>{const a=Object.create(null);return t=>a[t]||(a[t]=e(t))},Eu=/-(\w)/g,Ze=Gn(e=>e.replace(Eu,(a,t)=>t?t.toUpperCase():"")),ju=/\B([A-Z])/g,Ya=Gn(e=>e.replace(ju,"-$1").toLowerCase()),_t=Gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),kt=Gn(e=>e?`on${_t(e)}`:""),st=(e,a)=>!Object.is(e,a),zt=(e,...a)=>{for(let t=0;t{Object.defineProperty(e,a,{configurable:!0,enumerable:!1,writable:n,value:t})},ai=e=>{const a=parseFloat(e);return isNaN(a)?e:a};let es;const mn=()=>es||(es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ti(e){if(G(e)){const a={};for(let t=0;t{if(t){const n=t.split(Nu);n.length>1&&(a[n[0].trim()]=n[1].trim())}}),a}function wa(e){let a="";if(Se(e))a=e;else if(G(e))for(let t=0;t!!(e&&e.__v_isRef===!0),ra=e=>Se(e)?e:e==null?"":G(e)||be(e)&&(e.toString===Jr||!Y(e.toString))?ts(e)?ra(e.value):JSON.stringify(e,ns,2):String(e),ns=(e,a)=>ts(a)?ns(e,a.value):wt(a)?{[`Map(${a.size})`]:[...a.entries()].reduce((t,[n,o],i)=>(t[ni(n,i)+" =>"]=o,t),{})}:Xr(a)?{[`Set(${a.size})`]:[...a.values()].map(t=>ni(t))}:Ga(a)?ni(a):be(a)&&!G(a)&&!Zr(a)?String(a):a,ni=(e,a="")=>{var t;return Ga(e)?`Symbol(${(t=e.description)!=null?t:a})`:e};var ye={};function Na(e,...a){console.warn(`[Vue warn] ${e}`,...a)}let Xe;class Mu{constructor(a=!1){this.detached=a,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Xe,!a&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let a,t;if(this.scopes)for(a=0,t=this.scopes.length;a0&&--this._on===0&&(Xe=this.prevScope,this.prevScope=void 0)}stop(a){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(vn){let a=vn;for(vn=void 0;a;){const t=a.next;a.next=void 0,a.flags&=-9,a=t}}let e;for(;fn;){let a=fn;for(fn=void 0;a;){const t=a.next;if(a.next=void 0,a.flags&=-9,a.flags&1)try{a.trigger()}catch(n){e||(e=n)}a=t}}if(e)throw e}function cs(e){for(let a=e.deps;a;a=a.nextDep)a.version=-1,a.prevActiveLink=a.dep.activeLink,a.dep.activeLink=a}function ls(e){let a,t=e.depsTail,n=t;for(;n;){const o=n.prevDep;n.version===-1?(n===t&&(t=o),ci(n),zu(n)):a=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=o}e.deps=a,e.depsTail=t}function si(e){for(let a=e.deps;a;a=a.nextDep)if(a.dep.version!==a.version||a.dep.computed&&(ps(a.dep.computed)||a.dep.version!==a.version))return!0;return!!e._dirty}function ps(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===hn)||(e.globalVersion=hn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!si(e))))return;e.flags|=2;const a=e.dep,t=ge,n=Sa;ge=e,Sa=!0;try{cs(e);const o=e.fn(e._value);(a.version===0||st(o,e._value))&&(e.flags|=128,e._value=o,a.version++)}catch(o){throw a.version++,o}finally{ge=t,Sa=n,ls(e),e.flags&=-3}}function ci(e,a=!1){const{dep:t,prevSub:n,nextSub:o}=e;if(n&&(n.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=n,e.nextSub=void 0),ye.NODE_ENV!=="production"&&t.subsHead===e&&(t.subsHead=o),t.subs===e&&(t.subs=n,!n&&t.computed)){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)ci(i,!0)}!a&&!--t.sc&&t.map&&t.map.delete(t.key)}function zu(e){const{prevDep:a,nextDep:t}=e;a&&(a.nextDep=t,e.prevDep=void 0),t&&(t.prevDep=a,e.nextDep=void 0)}let Sa=!0;const us=[];function Da(){us.push(Sa),Sa=!1}function Ca(){const e=us.pop();Sa=e===void 0?!0:e}function ds(e){const{cleanup:a}=e;if(e.cleanup=void 0,a){const t=ge;ge=void 0;try{a()}finally{ge=t}}}let hn=0;class Uu{constructor(a,t){this.sub=a,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class li{constructor(a){this.computed=a,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,ye.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(a){if(!ge||!Sa||ge===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ge)t=this.activeLink=new Uu(ge,this),ge.deps?(t.prevDep=ge.depsTail,ge.depsTail.nextDep=t,ge.depsTail=t):ge.deps=ge.depsTail=t,ms(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){const n=t.nextDep;n.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=n),t.prevDep=ge.depsTail,t.nextDep=void 0,ge.depsTail.nextDep=t,ge.depsTail=t,ge.deps===t&&(ge.deps=n)}return ye.NODE_ENV!=="production"&&ge.onTrack&&ge.onTrack($e({effect:ge},a)),t}trigger(a){this.version++,hn++,this.notify(a)}notify(a){ii();try{if(ye.NODE_ENV!=="production")for(let t=this.subsHead;t;t=t.nextSub)t.sub.onTrigger&&!(t.sub.flags&8)&&t.sub.onTrigger($e({effect:t.sub},a));for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{ri()}}}function ms(e){if(e.dep.sc++,e.sub.flags&4){const a=e.dep.computed;if(a&&!e.dep.subs){a.flags|=20;for(let n=a.deps;n;n=n.nextDep)ms(n)}const t=e.dep.subs;t!==e&&(e.prevSub=t,t&&(t.nextSub=e)),ye.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const pi=new WeakMap,Et=Symbol(ye.NODE_ENV!=="production"?"Object iterate":""),ui=Symbol(ye.NODE_ENV!=="production"?"Map keys iterate":""),gn=Symbol(ye.NODE_ENV!=="production"?"Array iterate":"");function Be(e,a,t){if(Sa&&ge){let n=pi.get(e);n||pi.set(e,n=new Map);let o=n.get(t);o||(n.set(t,o=new li),o.map=n,o.key=t),ye.NODE_ENV!=="production"?o.track({target:e,type:a,key:t}):o.track()}}function Ra(e,a,t,n,o,i){const r=pi.get(e);if(!r){hn++;return}const s=c=>{c&&(ye.NODE_ENV!=="production"?c.trigger({target:e,type:a,key:t,newValue:n,oldValue:o,oldTarget:i}):c.trigger())};if(ii(),a==="clear")r.forEach(s);else{const c=G(e),l=c&&ei(t);if(c&&t==="length"){const p=Number(n);r.forEach((u,d)=>{(d==="length"||d===gn||!Ga(d)&&d>=p)&&s(u)})}else switch((t!==void 0||r.has(void 0))&&s(r.get(t)),l&&s(r.get(gn)),a){case"add":c?l&&s(r.get("length")):(s(r.get(Et)),wt(e)&&s(r.get(ui)));break;case"delete":c||(s(r.get(Et)),wt(e)&&s(r.get(ui)));break;case"set":wt(e)&&s(r.get(Et));break}}ri()}function Ut(e){const a=ne(e);return a===e?a:(Be(a,"iterate",gn),ea(e)?a:a.map(Ge))}function Yn(e){return Be(e=ne(e),"iterate",gn),e}const Lu={__proto__:null,[Symbol.iterator](){return di(this,Symbol.iterator,Ge)},concat(...e){return Ut(this).concat(...e.map(a=>G(a)?Ut(a):a))},entries(){return di(this,"entries",e=>(e[1]=Ge(e[1]),e))},every(e,a){return Qa(this,"every",e,a,void 0,arguments)},filter(e,a){return Qa(this,"filter",e,a,t=>t.map(Ge),arguments)},find(e,a){return Qa(this,"find",e,a,Ge,arguments)},findIndex(e,a){return Qa(this,"findIndex",e,a,void 0,arguments)},findLast(e,a){return Qa(this,"findLast",e,a,Ge,arguments)},findLastIndex(e,a){return Qa(this,"findLastIndex",e,a,void 0,arguments)},forEach(e,a){return Qa(this,"forEach",e,a,void 0,arguments)},includes(...e){return mi(this,"includes",e)},indexOf(...e){return mi(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return mi(this,"lastIndexOf",e)},map(e,a){return Qa(this,"map",e,a,void 0,arguments)},pop(){return xn(this,"pop")},push(...e){return xn(this,"push",e)},reduce(e,...a){return fs(this,"reduce",e,a)},reduceRight(e,...a){return fs(this,"reduceRight",e,a)},shift(){return xn(this,"shift")},some(e,a){return Qa(this,"some",e,a,void 0,arguments)},splice(...e){return xn(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return xn(this,"unshift",e)},values(){return di(this,"values",Ge)}};function di(e,a,t){const n=Yn(e),o=n[a]();return n!==e&&!ea(e)&&(o._next=o.next,o.next=()=>{const i=o._next();return i.value&&(i.value=t(i.value)),i}),o}const qu=Array.prototype;function Qa(e,a,t,n,o,i){const r=Yn(e),s=r!==e&&!ea(e),c=r[a];if(c!==qu[a]){const u=c.apply(e,i);return s?Ge(u):u}let l=t;r!==e&&(s?l=function(u,d){return t.call(this,Ge(u),d,e)}:t.length>2&&(l=function(u,d){return t.call(this,u,d,e)}));const p=c.call(r,l,n);return s&&o?o(p):p}function fs(e,a,t,n){const o=Yn(e);let i=t;return o!==e&&(ea(e)?t.length>3&&(i=function(r,s,c){return t.call(this,r,s,c,e)}):i=function(r,s,c){return t.call(this,r,Ge(s),c,e)}),o[a](i,...n)}function mi(e,a,t){const n=ne(e);Be(n,"iterate",gn);const o=n[a](...t);return(o===-1||o===!1)&&ao(t[0])?(t[0]=ne(t[0]),n[a](...t)):o}function xn(e,a,t=[]){Da(),ii();const n=ne(e)[a].apply(e,t);return ri(),Ca(),n}const Bu=Ka("__proto__,__v_isRef,__isVue"),vs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ga));function Wu(e){Ga(e)||(e=String(e));const a=ne(this);return Be(a,"has",e),a.hasOwnProperty(e)}class hs{constructor(a=!1,t=!1){this._isReadonly=a,this._isShallow=t}get(a,t,n){if(t==="__v_skip")return a.__v_skip;const o=this._isReadonly,i=this._isShallow;if(t==="__v_isReactive")return!o;if(t==="__v_isReadonly")return o;if(t==="__v_isShallow")return i;if(t==="__v_raw")return n===(o?i?ks:_s:i?ws:ys).get(a)||Object.getPrototypeOf(a)===Object.getPrototypeOf(n)?a:void 0;const r=G(a);if(!o){let c;if(r&&(c=Lu[t]))return c;if(t==="hasOwnProperty")return Wu}const s=Reflect.get(a,t,Ie(a)?a:n);return(Ga(t)?vs.has(t):Bu(t))||(o||Be(a,"get",t),i)?s:Ie(s)?r&&ei(t)?s:s.value:be(s)?o?vi(s):Zn(s):s}}class gs extends hs{constructor(a=!1){super(!1,a)}set(a,t,n,o){let i=a[t];if(!this._isShallow){const c=Fa(i);if(!ea(n)&&!Fa(n)&&(i=ne(i),n=ne(n)),!G(a)&&Ie(i)&&!Ie(n))return c?!1:(i.value=n,!0)}const r=G(a)&&ei(t)?Number(t)e,Qn=e=>Reflect.getPrototypeOf(e);function Qu(e,a,t){return function(...n){const o=this.__v_raw,i=ne(o),r=wt(i),s=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,l=o[e](...n),p=t?fi:a?to:Ge;return!a&&Be(i,"iterate",c?ui:Et),{next(){const{value:u,done:d}=l.next();return d?{value:u,done:d}:{value:s?[p(u[0]),p(u[1])]:p(u),done:d}},[Symbol.iterator](){return this}}}}function Xn(e){return function(...a){if(ye.NODE_ENV!=="production"){const t=a[0]?`on key "${a[0]}" `:"";Na(`${_t(e)} operation ${t}failed: target is readonly.`,ne(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Xu(e,a){const t={get(n){const o=this.__v_raw,i=ne(o),r=ne(n);e||(st(n,r)&&Be(i,"get",n),Be(i,"get",r));const{has:s}=Qn(i),c=a?fi:e?to:Ge;if(s.call(i,n))return c(o.get(n));if(s.call(i,r))return c(o.get(r));o!==i&&o.get(n)},get size(){const n=this.__v_raw;return!e&&Be(ne(n),"iterate",Et),Reflect.get(n,"size",n)},has(n){const o=this.__v_raw,i=ne(o),r=ne(n);return e||(st(n,r)&&Be(i,"has",n),Be(i,"has",r)),n===r?o.has(n):o.has(n)||o.has(r)},forEach(n,o){const i=this,r=i.__v_raw,s=ne(r),c=a?fi:e?to:Ge;return!e&&Be(s,"iterate",Et),r.forEach((l,p)=>n.call(o,c(l),c(p),i))}};return $e(t,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(n){!a&&!ea(n)&&!Fa(n)&&(n=ne(n));const o=ne(this);return Qn(o).has.call(o,n)||(o.add(n),Ra(o,"add",n,n)),this},set(n,o){!a&&!ea(o)&&!Fa(o)&&(o=ne(o));const i=ne(this),{has:r,get:s}=Qn(i);let c=r.call(i,n);c?ye.NODE_ENV!=="production"&&bs(i,r,n):(n=ne(n),c=r.call(i,n));const l=s.call(i,n);return i.set(n,o),c?st(o,l)&&Ra(i,"set",n,o,l):Ra(i,"add",n,o),this},delete(n){const o=ne(this),{has:i,get:r}=Qn(o);let s=i.call(o,n);s?ye.NODE_ENV!=="production"&&bs(o,i,n):(n=ne(n),s=i.call(o,n));const c=r?r.call(o,n):void 0,l=o.delete(n);return s&&Ra(o,"delete",n,void 0,c),l},clear(){const n=ne(this),o=n.size!==0,i=ye.NODE_ENV!=="production"?wt(n)?new Map(n):new Set(n):void 0,r=n.clear();return o&&Ra(n,"clear",void 0,void 0,i),r}}),["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=Qu(n,e,a)}),t}function Jn(e,a){const t=Xu(e,a);return(n,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?n:Reflect.get(le(t,o)&&o in n?t:n,o,i)}const Ju={get:Jn(!1,!1)},Zu={get:Jn(!1,!0)},ed={get:Jn(!0,!1)},ad={get:Jn(!0,!0)};function bs(e,a,t){const n=ne(t);if(n!==t&&a.call(e,n)){const o=Zo(e);Na(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ys=new WeakMap,ws=new WeakMap,_s=new WeakMap,ks=new WeakMap;function td(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nd(e){return e.__v_skip||!Object.isExtensible(e)?0:td(Zo(e))}function Zn(e){return Fa(e)?e:eo(e,!1,Hu,Ju,ys)}function od(e){return eo(e,!1,Gu,Zu,ws)}function vi(e){return eo(e,!0,Ku,ed,_s)}function Ma(e){return eo(e,!0,Yu,ad,ks)}function eo(e,a,t,n,o){if(!be(e))return ye.NODE_ENV!=="production"&&Na(`value cannot be made ${a?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(a&&e.__v_isReactive))return e;const i=nd(e);if(i===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,i===2?n:t);return o.set(e,s),s}function jt(e){return Fa(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Fa(e){return!!(e&&e.__v_isReadonly)}function ea(e){return!!(e&&e.__v_isShallow)}function ao(e){return e?!!e.__v_raw:!1}function ne(e){const a=e&&e.__v_raw;return a?ne(a):e}function id(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&dn(e,"__v_skip",!0),e}const Ge=e=>be(e)?Zn(e):e,to=e=>be(e)?vi(e):e;function Ie(e){return e?e.__v_isRef===!0:!1}function Ta(e){return js(e,!1)}function Es(e){return js(e,!0)}function js(e,a){return Ie(e)?e:new rd(e,a)}class rd{constructor(a,t){this.dep=new li,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?a:ne(a),this._value=t?a:Ge(a),this.__v_isShallow=t}get value(){return ye.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(a){const t=this._rawValue,n=this.__v_isShallow||ea(a)||Fa(a);a=n?a:ne(a),st(a,t)&&(this._rawValue=a,this._value=n?a:Ge(a),ye.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:a,oldValue:t}):this.dep.trigger())}}function Ot(e){return Ie(e)?e.value:e}function hi(e){return Y(e)?e():Ot(e)}const sd={get:(e,a,t)=>a==="__v_raw"?e:Ot(Reflect.get(e,a,t)),set:(e,a,t,n)=>{const o=e[a];return Ie(o)&&!Ie(t)?(o.value=t,!0):Reflect.set(e,a,t,n)}};function Os(e){return jt(e)?e:new Proxy(e,sd)}class cd{constructor(a,t,n){this.fn=a,this.setter=t,this._value=void 0,this.dep=new li(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return ss(this,!0),!0}get value(){const a=ye.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return ps(this),a&&(a.version=this.dep.version),this._value}set value(a){this.setter?this.setter(a):ye.NODE_ENV!=="production"&&Na("Write operation failed: computed value is readonly")}}function ld(e,a,t=!1){let n,o;return Y(e)?n=e:(n=e.get,o=e.set),new cd(n,o,t)}const no={},oo=new WeakMap;let Nt;function pd(e,a=!1,t=Nt){if(t){let n=oo.get(t);n||oo.set(t,n=[]),n.push(e)}else ye.NODE_ENV!=="production"&&!a&&Na("onWatcherCleanup() was called when there was no active watcher to associate with.")}function ud(e,a,t=de){const{immediate:n,deep:o,once:i,scheduler:r,augmentJob:s,call:c}=t,l=O=>{(t.onWarn||Na)("Invalid watch source: ",O,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},p=O=>o?O:ea(O)||o===!1||o===0?Xa(O,1):Xa(O);let u,d,f,g,h=!1,j=!1;if(Ie(e)?(d=()=>e.value,h=ea(e)):jt(e)?(d=()=>p(e),h=!0):G(e)?(j=!0,h=e.some(O=>jt(O)||ea(O)),d=()=>e.map(O=>{if(Ie(O))return O.value;if(jt(O))return p(O);if(Y(O))return c?c(O,2):O();ye.NODE_ENV!=="production"&&l(O)})):Y(e)?a?d=c?()=>c(e,2):e:d=()=>{if(f){Da();try{f()}finally{Ca()}}const O=Nt;Nt=u;try{return c?c(e,3,[g]):e(g)}finally{Nt=O}}:(d=qe,ye.NODE_ENV!=="production"&&l(e)),a&&o){const O=d,L=o===!0?1/0:o;d=()=>Xa(O(),L)}const y=os(),w=()=>{u.stop(),y&&y.active&&Xo(y.effects,u)};if(i&&a){const O=a;a=(...L)=>{O(...L),w()}}let _=j?new Array(e.length).fill(no):no;const M=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(a){const L=u.run();if(o||h||(j?L.some((F,q)=>st(F,_[q])):st(L,_))){f&&f();const F=Nt;Nt=u;try{const q=[L,_===no?void 0:j&&_[0]===no?[]:_,g];_=L,c?c(a,3,q):a(...q)}finally{Nt=F}}}else u.run()};return s&&s(M),u=new is(d),u.scheduler=r?()=>r(M,!1):M,g=O=>pd(O,!1,u),f=u.onStop=()=>{const O=oo.get(u);if(O){if(c)c(O,4);else for(const L of O)L();oo.delete(u)}},ye.NODE_ENV!=="production"&&(u.onTrack=t.onTrack,u.onTrigger=t.onTrigger),a?n?M(!0):_=u.run():r?r(M.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function Xa(e,a=1/0,t){if(a<=0||!be(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),a--,Ie(e))Xa(e.value,a,t);else if(G(e))for(let n=0;n{Xa(n,a,t)});else if(Zr(e)){for(const n in e)Xa(e[n],a,t);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Xa(e[n],a,t)}return e}var x={};const St=[];function io(e){St.push(e)}function ro(){St.pop()}let gi=!1;function V(e,...a){if(gi)return;gi=!0,Da();const t=St.length?St[St.length-1].component:null,n=t&&t.appContext.config.warnHandler,o=dd();if(n)Lt(n,t,11,[e+a.map(i=>{var r,s;return(s=(r=i.toString)==null?void 0:r.call(i))!=null?s:JSON.stringify(i)}).join(""),t&&t.proxy,o.map(({vnode:i})=>`at <${jo(t,i.type)}>`).join(` +`),o]);else{const i=[`[Vue warn]: ${e}`,...a];o.length&&i.push(` +`,...md(o)),console.warn(...i)}Ca(),gi=!1}function dd(){let e=St[St.length-1];if(!e)return[];const a=[];for(;e;){const t=a[0];t&&t.vnode===e?t.recurseCount++:a.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return a}function md(e){const a=[];return e.forEach((t,n)=>{a.push(...n===0?[]:[` +`],...fd(t))}),a}function fd({vnode:e,recurseCount:a}){const t=a>0?`... (${a} recursive calls)`:"",n=e.component?e.component.parent==null:!1,o=` at <${jo(e.component,e.type,n)}`,i=">"+t;return e.props?[o,...vd(e.props),i]:[o+i]}function vd(e){const a=[],t=Object.keys(e);return t.slice(0,3).forEach(n=>{a.push(...Ns(n,e[n]))}),t.length>3&&a.push(" ..."),a}function Ns(e,a,t){return Se(a)?(a=JSON.stringify(a),t?a:[`${e}=${a}`]):typeof a=="number"||typeof a=="boolean"||a==null?t?a:[`${e}=${a}`]:Ie(a)?(a=Ns(e,ne(a.value),!0),t?a:[`${e}=Ref<`,a,">"]):Y(a)?[`${e}=fn${a.name?`<${a.name}>`:""}`]:(a=ne(a),t?a:[`${e}=`,a])}const xi={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Lt(e,a,t,n){try{return n?e(...n):e()}catch(o){bn(o,a,t)}}function za(e,a,t,n){if(Y(e)){const o=Lt(e,a,t,n);return o&&Jo(o)&&o.catch(i=>{bn(i,a,t)}),o}if(G(e)){const o=[];for(let i=0;i>>1,o=aa[n],i=yn(o);i=yn(t)?aa.push(e):aa.splice(xd(a),0,e),e.flags|=1,Ds()}}function Ds(){so||(so=Ss.then(Is))}function Cs(e){G(e)?qt.push(...e):ct&&e.id===-1?ct.splice(Bt+1,0,e):e.flags&1||(qt.push(e),e.flags|=1),Ds()}function Ts(e,a,t=Ua+1){for(x.NODE_ENV!=="production"&&(a=a||new Map);tyn(t)-yn(n));if(qt.length=0,ct){ct.push(...a);return}for(ct=a,x.NODE_ENV!=="production"&&(e=e||new Map),Bt=0;Bte.id==null?e.flags&2?-1:1/0:e.id;function Is(e){x.NODE_ENV!=="production"&&(e=e||new Map);const a=x.NODE_ENV!=="production"?t=>yi(e,t):qe;try{for(Ua=0;Uagd){const n=a.i,o=n&&Li(n.type);return bn(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(a,t+1),!1}let La=!1;const lo=new Map;x.NODE_ENV!=="production"&&(mn().__VUE_HMR_RUNTIME__={createRecord:wi(Ps),rerender:wi(wd),reload:wi(_d)});const Dt=new Map;function bd(e){const a=e.type.__hmrId;let t=Dt.get(a);t||(Ps(a,e.type),t=Dt.get(a)),t.instances.add(e)}function yd(e){Dt.get(e.type.__hmrId).instances.delete(e)}function Ps(e,a){return Dt.has(e)?!1:(Dt.set(e,{initialDef:po(a),instances:new Set}),!0)}function po(e){return Pc(e)?e.__vccOpts:e}function wd(e,a){const t=Dt.get(e);t&&(t.initialDef.render=a,[...t.instances].forEach(n=>{a&&(n.render=a,po(n.type).render=a),n.renderCache=[],La=!0,n.update(),La=!1}))}function _d(e,a){const t=Dt.get(e);if(!t)return;a=po(a),Vs(t.initialDef,a);const n=[...t.instances];for(let o=0;o{La=!0,i.parent.update(),La=!1,s.delete(i)}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(r)}Cs(()=>{lo.clear()})}function Vs(e,a){$e(e,a);for(const t in e)t!=="__file"&&!(t in a)&&delete e[t]}function wi(e){return(a,t)=>{try{return e(a,t)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let qa,wn=[],_i=!1;function _n(e,...a){qa?qa.emit(e,...a):_i||wn.push({event:e,args:a})}function $s(e,a){var t,n;qa=e,qa?(qa.enabled=!0,wn.forEach(({event:o,args:i})=>qa.emit(o,...i)),wn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(t=window.navigator)==null?void 0:t.userAgent)!=null&&n.includes("jsdom"))?((a.__VUE_DEVTOOLS_HOOK_REPLAY__=a.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{$s(o,a)}),setTimeout(()=>{qa||(a.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_i=!0,wn=[])},3e3)):(_i=!0,wn=[])}function kd(e,a){_n("app:init",e,a,{Fragment:Te,Text:On,Comment:sa,Static:yo})}function Ed(e){_n("app:unmount",e)}const jd=ki("component:added"),Rs=ki("component:updated"),Od=ki("component:removed"),Nd=e=>{qa&&typeof qa.cleanupBuffer=="function"&&!qa.cleanupBuffer(e)&&Od(e)};/*! #__NO_SIDE_EFFECTS__ */function ki(e){return a=>{_n(e,a.appContext.app,a.uid,a.parent?a.parent.uid:void 0,a)}}const Sd=Ms("perf:start"),Dd=Ms("perf:end");function Ms(e){return(a,t,n)=>{_n(e,a.appContext.app,a.uid,a,t,n)}}function Cd(e,a,t){_n("component:emit",e.appContext.app,e,a,t)}let Re=null,Fs=null;function uo(e){const a=Re;return Re=e,Fs=e&&e.type.__scopeId||null,a}function Pe(e,a=Re,t){if(!a||e._n)return e;const n=(...o)=>{n._d&&kc(-1);const i=uo(a);let r;try{r=e(...o)}finally{uo(i),n._d&&kc(1)}return x.NODE_ENV!=="production"&&Rs(a),r};return n._n=!0,n._c=!0,n._d=!0,n}function zs(e){ku(e)&&V("Do not use built-in directive ids as custom directive id: "+e)}function Td(e,a){if(Re===null)return x.NODE_ENV!=="production"&&V("withDirectives can only be used inside render functions."),e;const t=Eo(Re),n=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport;function Ei(e,a){e.shapeFlag&6&&e.component?(e.transition=a,Ei(e.component.subTree,a)):e.shapeFlag&128?(e.ssContent.transition=a.clone(e.ssContent),e.ssFallback.transition=a.clone(e.ssFallback)):e.transition=a}/*! #__NO_SIDE_EFFECTS__ */function Me(e,a){return Y(e)?$e({name:e.name},a,{setup:e}):e}function Us(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ls=new WeakSet;function Pd(e){const a=_o(),t=Es(null);if(a){const o=a.refs===de?a.refs={}:a.refs;let i;x.NODE_ENV!=="production"&&(i=Object.getOwnPropertyDescriptor(o,e))&&!i.configurable?V(`useTemplateRef('${e}') already exists.`):Object.defineProperty(o,e,{enumerable:!0,get:()=>t.value,set:r=>t.value=r})}else x.NODE_ENV!=="production"&&V("useTemplateRef() is called when there is no active component instance to be associated with.");const n=x.NODE_ENV!=="production"?vi(t):t;return x.NODE_ENV!=="production"&&Ls.add(n),n}function kn(e,a,t,n,o=!1){if(G(e)){e.forEach((g,h)=>kn(g,a&&(G(a)?a[h]:a),t,n,o));return}if(Wt(n)&&!o){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kn(e,a,t,n.component.subTree);return}const i=n.shapeFlag&4?Eo(n.component):n.el,r=o?null:i,{i:s,r:c}=e;if(x.NODE_ENV!=="production"&&!s){V("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const l=a&&a.r,p=s.refs===de?s.refs={}:s.refs,u=s.setupState,d=ne(u),f=u===de?()=>!1:g=>x.NODE_ENV!=="production"&&(le(d,g)&&!Ie(d[g])&&V(`Template ref "${g}" used on a non-ref value. It will not work in the production build.`),Ls.has(d[g]))?!1:le(d,g);if(l!=null&&l!==c&&(Se(l)?(p[l]=null,f(l)&&(u[l]=null)):Ie(l)&&(l.value=null)),Y(c))Lt(c,s,12,[r,p]);else{const g=Se(c),h=Ie(c);if(g||h){const j=()=>{if(e.f){const y=g?f(c)?u[c]:p[c]:c.value;o?G(y)&&Xo(y,i):G(y)?y.includes(i)||y.push(i):g?(p[c]=[i],f(c)&&(u[c]=p[c])):(c.value=[i],e.k&&(p[e.k]=c.value))}else g?(p[c]=r,f(c)&&(u[c]=r)):h?(c.value=r,e.k&&(p[e.k]=r)):x.NODE_ENV!=="production"&&V("Invalid template ref type:",c,`(${typeof c})`)};r?(j.id=-1,ma(j,t)):j()}else x.NODE_ENV!=="production"&&V("Invalid template ref type:",c,`(${typeof c})`)}}mn().requestIdleCallback,mn().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,ji=e=>e.type.__isKeepAlive;function Vd(e,a){qs(e,"a",a)}function $d(e,a){qs(e,"da",a)}function qs(e,a,t=He){const n=e.__wdc||(e.__wdc=()=>{let o=t;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(mo(a,n,t),t){let o=t.parent;for(;o&&o.parent;)ji(o.parent.vnode)&&Rd(n,a,t,o),o=o.parent}}function Rd(e,a,t,n){const o=mo(a,e,n,!0);Oi(()=>{Xo(n[a],o)},t)}function mo(e,a,t=He,n=!1){if(t){const o=t[e]||(t[e]=[]),i=a.__weh||(a.__weh=(...r)=>{Da();const s=An(t),c=za(a,t,e,r);return s(),Ca(),c});return n?o.unshift(i):o.push(i),i}else if(x.NODE_ENV!=="production"){const o=kt(xi[e].replace(/ hook$/,""));V(`${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ja=e=>(a,t=He)=>{(!In||e==="sp")&&mo(e,(...n)=>a(...n),t)},Md=Ja("bm"),Ht=Ja("m"),Fd=Ja("bu"),zd=Ja("u"),Ud=Ja("bum"),Oi=Ja("um"),Ld=Ja("sp"),qd=Ja("rtg"),Bd=Ja("rtc");function Wd(e,a=He){mo("ec",e,a)}const Hd="components",Bs=Symbol.for("v-ndc");function Kd(e){return Se(e)?Gd(Hd,e,!1)||e:e||Bs}function Gd(e,a,t=!0,n=!1){const o=Re||He;if(o){const i=o.type;{const s=Li(i,!1);if(s&&(s===a||s===Ze(a)||s===_t(Ze(a))))return i}const r=Ws(o[e]||i[e],a)||Ws(o.appContext[e],a);return!r&&n?i:(x.NODE_ENV!=="production"&&t&&!r&&V(`Failed to resolve ${e.slice(0,-1)}: ${a} +If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`),r)}else x.NODE_ENV!=="production"&&V(`resolve${_t(e.slice(0,-1))} can only be used in render() or setup().`)}function Ws(e,a){return e&&(e[a]||e[Ze(a)]||e[_t(Ze(a))])}function lt(e,a,t,n){let o;const i=t,r=G(e);if(r||Se(e)){const s=r&&jt(e);let c=!1,l=!1;s&&(c=!ea(e),l=Fa(e),e=Yn(e)),o=new Array(e.length);for(let p=0,u=e.length;pa(s,c,void 0,i));else{const s=Object.keys(e);o=new Array(s.length);for(let c=0,l=s.length;c1&&(V("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),W();const r=i&&Hs(i(t)),s=t.key||r&&r.key,c=We(Te,{key:(s&&!Ga(s)?s:`_${a}`)+""},r||[],r&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Hs(e){return e.some(a=>Dn(a)?!(a.type===sa||a.type===Te&&!Hs(a.children)):!0)?e:null}const Ni=e=>e?Cc(e)?Eo(e):Ni(e.parent):null,Tt=$e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>x.NODE_ENV!=="production"?Ma(e.props):e.props,$attrs:e=>x.NODE_ENV!=="production"?Ma(e.attrs):e.attrs,$slots:e=>x.NODE_ENV!=="production"?Ma(e.slots):e.slots,$refs:e=>x.NODE_ENV!=="production"?Ma(e.refs):e.refs,$parent:e=>Ni(e.parent),$root:e=>Ni(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xs(e),$forceUpdate:e=>e.f||(e.f=()=>{co(e.update)}),$nextTick:e=>e.n||(e.n=bi.bind(e.proxy)),$watch:e=>Om.bind(e)}),Si=e=>e==="_"||e==="$",Di=(e,a)=>e!==de&&!e.__isScriptSetup&&le(e,a),Ks={get({_:e},a){if(a==="__v_skip")return!0;const{ctx:t,setupState:n,data:o,props:i,accessCache:r,type:s,appContext:c}=e;if(x.NODE_ENV!=="production"&&a==="__isVue")return!0;let l;if(a[0]!=="$"){const f=r[a];if(f!==void 0)switch(f){case 1:return n[a];case 2:return o[a];case 4:return t[a];case 3:return i[a]}else{if(Di(n,a))return r[a]=1,n[a];if(o!==de&&le(o,a))return r[a]=2,o[a];if((l=e.propsOptions[0])&&le(l,a))return r[a]=3,i[a];if(t!==de&&le(t,a))return r[a]=4,t[a];Ci&&(r[a]=0)}}const p=Tt[a];let u,d;if(p)return a==="$attrs"?(Be(e.attrs,"get",""),x.NODE_ENV!=="production"&&bo()):x.NODE_ENV!=="production"&&a==="$slots"&&Be(e,"get",a),p(e);if((u=s.__cssModules)&&(u=u[a]))return u;if(t!==de&&le(t,a))return r[a]=4,t[a];if(d=c.config.globalProperties,le(d,a))return d[a];x.NODE_ENV!=="production"&&Re&&(!Se(a)||a.indexOf("__v")!==0)&&(o!==de&&Si(a[0])&&le(o,a)?V(`Property ${JSON.stringify(a)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Re&&V(`Property ${JSON.stringify(a)} was accessed during render but is not defined on instance.`))},set({_:e},a,t){const{data:n,setupState:o,ctx:i}=e;return Di(o,a)?(o[a]=t,!0):x.NODE_ENV!=="production"&&o.__isScriptSetup&&le(o,a)?(V(`Cannot mutate + + + +
+ +

Drupal style mock test page

+ +
+
+ +
+
+ + + + + + diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js new file mode 100644 index 000000000..1be89d4c3 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js @@ -0,0 +1,25 @@ +import { getJson, initApp, setJson } from '@dpc-sdp/tide-content-collection-ui' +import '@dpc-sdp/tide-content-collection-ui/styles' + + ;(($) => { + Drupal.behaviors.contentCollection = { + attach: function (context) { + once('content-collection-init', '.content-collection-app', context).forEach(function (container) { + const wrap = container.closest('.field--type-content-collection') + const index = container.getAttribute('data-index') || '0' + const config = container.getAttribute('data-config') || '{}' + const field = wrap?.querySelector(`#content-collection-value-${index}`) + + if (field) { + initApp(container, { + index, + form: getJson(field.value), + config: getJson(config), + update: (form) => (field.value = setJson(form)), + baseUrl: import.meta.env.VITE_API_URL || window.location.origin + }) + } + }) + } + } +})(jQuery) diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js b/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js new file mode 100644 index 000000000..afda75987 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/app/vite.config.js @@ -0,0 +1,25 @@ +import { defineConfig } from 'vite'; +import { resolve } from 'path'; + +export default defineConfig({ + root: './src', + build: { + outDir: '../dist', + rollupOptions: { + input: { + 'main': resolve(__dirname, 'src/index.js'), + }, + output: { + format: 'iife', + entryFileNames: '[name].js', + globals: { + jquery: 'jQuery', + drupal: 'Drupal', + once: 'once', + }, + }, + external: ['jquery', 'drupal', 'once'], + }, + sourcemap: true, + }, +}); diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml new file mode 100644 index 000000000..f8ab97a15 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.paragraph.content_collection_ui.default.yml @@ -0,0 +1,43 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.content_collection_ui.field_paragraph_body + - field.field.paragraph.content_collection_ui.field_paragraph_link + - field.field.paragraph.content_collection_ui.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - text +id: paragraph.content_collection_ui.default +targetEntityType: paragraph +bundle: content_collection_ui +mode: default +content: + field_paragraph_body: + type: text_textarea + weight: 1 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_paragraph_link: + type: link_default + weight: 5 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + field_paragraph_title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + status: true diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml new file mode 100644 index 000000000..eb6e4e3de --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.paragraph.content_collection_ui.default.yml @@ -0,0 +1,45 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.content_collection_ui.field_paragraph_body + - field.field.paragraph.content_collection_ui.field_paragraph_link + - field.field.paragraph.content_collection_ui.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - text +id: paragraph.content_collection_ui.default +targetEntityType: paragraph +bundle: content_collection_ui +mode: default +content: + field_paragraph_body: + type: text_default + label: above + settings: { } + third_party_settings: { } + weight: 2 + region: content + field_paragraph_link: + type: link + label: above + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 5 + region: content + field_paragraph_title: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml new file mode 100644 index 000000000..1fdbb1829 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_body.yml @@ -0,0 +1,25 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_body + - paragraphs.paragraphs_type.content_collection_ui + module: + - allowed_formats + - text +third_party_settings: + allowed_formats: + allowed_formats: { } +id: paragraph.content_collection_ui.field_paragraph_body +field_name: field_paragraph_body +entity_type: paragraph +bundle: content_collection_ui +label: Description +description: 'Description to display below title.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: { } +field_type: text_long diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml new file mode 100644 index 000000000..8b190786f --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_link.yml @@ -0,0 +1,36 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_link + - paragraphs.paragraphs_type.content_collection_ui + module: + - link + - link_field_autocomplete_filter +third_party_settings: + link_field_autocomplete_filter: + negate: null + allowed_content_types: + alert: '0' + event: '0' + grant: '0' + landing_page: '0' + news: '0' + publication: '0' + publication_page: '0' + test: '0' + tide_search_listing: '0' +id: paragraph.content_collection_ui.field_paragraph_link +field_name: field_paragraph_link +entity_type: paragraph +bundle: content_collection_ui +label: Link +description: 'A link to displayed below the content to help navigate uses to more related content.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 1 + link_type: 17 +field_type: link diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml new file mode 100644 index 000000000..c07118d57 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_paragraph_title.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_paragraph_title + - paragraphs.paragraphs_type.content_collection_ui +id: paragraph.content_collection_ui.field_paragraph_title +field_name: field_paragraph_title +entity_type: paragraph +bundle: content_collection_ui +label: Title +description: 'Add a title to display above the content.' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml new file mode 100644 index 000000000..7eb620eae --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml @@ -0,0 +1,13 @@ +langcode: en +status: true +dependencies: + content: + - 'file:file:bd168646-7145-4b4b-b6c8-8552d2d7b0b8' +_core: + default_config_hash: epwlG1_yWnseA1q5W7Ajymn3b3NQEyTjdnCPjXzNFyA +id: content_collection_ui +label: 'Tide Content Collection UI' +icon_uuid: bd168646-7145-4b4b-b6c8-8552d2d7b0b8 +icon_default: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iNzciIHZpZXdCb3g9IjAgMCA2OCA3NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY4IiBoZWlnaHQ9Ijc3IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjIzMiAxMUgxNi43NjhDMTUuMDI1NCAxMSAxMy41NzYgMTEgMTIuMzg3MSAxMS4wOTgyQzcuNzkxMzEgMTEuNDc0NSA0LjQ2NTc3IDE0LjkwNzYgNC4wOTc3MSAxOS40MjczQzQgMjAuNjIxOCA0IDIyLjA4NDcgNCAyMy44MjkxVjUyLjE3MDlDNCA1My45MjE4IDQgNTUuMzc4MiA0LjA5NzcxIDU2LjU3MjdDNC4xOTU0MyA1Ny44MTY0IDQuNDE2OTEgNTguOTgxNSA0Ljk3NzE0IDYwLjA4NDRDNS44MzU5NiA2MS43NzgyIDcuMjA2NDggNjMuMTU1MyA4Ljg5MjIzIDY0LjAxODJDOS45ODk4OSA2NC41ODExIDExLjE0OTQgNjQuODAzNiAxMi4zODcxIDY0LjkwMThDMTMuNTc2IDY1IDE1LjAyNTQgNjUgMTYuNzY0NyA2NUg0OC4yMzUzQzQ5Ljk3NDYgNjUgNTEuNDI3MyA2NSA1Mi42MTI5IDY0LjkwMThDNTMuODUwNiA2NC44MDM2IDU1LjAxMDEgNjQuNTgxMSA1Ni4xMDc4IDY0LjAxODJDNTYuNjYxOCA2My43MTAxIDU3LjA3NTEgNjMuMTk3OSA1Ny4yNjA2IDYyLjU4OTVDNTcuNDQ2MSA2MS45ODEyIDU3LjM4OTIgNjEuMzI0MiA1Ny4xMDE5IDYwLjc1NzJDNTYuODE0NyA2MC4xOTAyIDU2LjMxOTYgNTkuNzU3NCA1NS43MjA5IDU5LjU1QzU1LjEyMjMgNTkuMzQyNyA1NC40NjY5IDU5LjM3NyA1My44OTI5IDU5LjY0NThDNTMuNTk2NSA1OS43OTY0IDUzLjE1MDMgNTkuOTMzOCA1Mi4yMTIyIDYwLjAwOTFDNTEuMjUxNCA2MC4wODc2IDQ5Ljk5NzQgNjAuMDkwOSA0OC4xMzQzIDYwLjA5MDlIMTYuODY1N0MxNS4wMDI2IDYwLjA5MDkgMTMuNzQ4NiA2MC4wOTA5IDEyLjc4NDUgNjAuMDA5MUMxMS44NDk3IDU5LjkzMzggMTEuNDAzNSA1OS43OTY0IDExLjExMDMgNTkuNjQ1OEMxMC4zNDMgNTkuMjUzNCA5LjcxOTI0IDU4LjYyNjYgOS4zMjg2OSA1Ny44NTU2QzkuMTc4ODYgNTcuNTYxMSA5LjA0MjA2IDU3LjExMjcgOC45NjcxNCA1Ni4xNzAyQzguODg4OTcgNTUuMjA0NyA4Ljg4NTcxIDUzLjk0NDcgOC44ODU3MSA1Mi4wNzI3VjI1LjcyNzNINTYuMDY4N0M1Ni4wOTQ3IDI3LjA5MDkgNTYuMTA5OSAyOC40NTQ1IDU2LjExNDMgMjkuODE4MkM1Ni4xMTQzIDMwLjQ2OTIgNTYuMzcxNyAzMS4wOTM1IDU2LjgyOTggMzEuNTUzOEM1Ny4yODc5IDMyLjAxNDEgNTcuOTA5MyAzMi4yNzI3IDU4LjU1NzEgMzIuMjcyN0M1OS4yMDUgMzIuMjcyNyA1OS44MjY0IDMyLjAxNDEgNjAuMjg0NSAzMS41NTM4QzYwLjc0MjYgMzEuMDkzNSA2MSAzMC40NjkyIDYxIDI5LjgxODJDNjEgMjkuMjA3MyA2MC45OTY3IDI4LjU5ODUgNjAuOTkwMiAyNy45OTJDNjAuOTY3NCAyNS43OTkzIDYwLjkwMjMgMjIuMDc4MiA2MC42OTM4IDE5LjQyNEM2MC4zMjU4IDE0Ljc2MzYgNTcuMjAyMiAxMS40NzEzIDUyLjYxMjkgMTEuMDk4MkM1MS40MjQgMTEgNDkuOTc0NiAxMSA0OC4yMzIgMTFaTTU1Ljg5MjggMjAuODE4MkM1NS43MzY1IDE4LjIwOTggNTQuOTg3MyAxNi4yMTY3IDUyLjIxMjIgMTUuOTkwOUM1MS4yNTE0IDE1LjkxMjQgNDkuOTk3NCAxNS45MDkxIDQ4LjEzNDMgMTUuOTA5MUgxNi44NjU3QzE1LjAwMjYgMTUuOTA5MSAxMy43NDg2IDE1LjkwOTEgMTIuNzg0NSAxNS45OTA5QzEwLjEyMDIgMTYuMjEwMiA4Ljk5NjQ2IDE4LjIxNjQgOC45MTE3NyAyMC44MTgySDU1Ljg5MjhaIiBmaWxsPSIjQzRDNEM0Ii8+CjxwYXRoIGQ9Ik0xNi40IDI5QzE1Ljc2MzUgMjkgMTUuMTUzIDI5LjI2MzQgMTQuNzAyOSAyOS43MzIyQzE0LjI1MjkgMzAuMjAxMSAxNCAzMC44MzcgMTQgMzEuNUMxNCAzMi4xNjMgMTQuMjUyOSAzMi43OTg5IDE0LjcwMjkgMzMuMjY3OEMxNS4xNTMgMzMuNzM2NiAxNS43NjM1IDM0IDE2LjQgMzRIMzUuNkMzNi4yMzY1IDM0IDM2Ljg0NyAzMy43MzY2IDM3LjI5NzEgMzMuMjY3OEMzNy43NDcxIDMyLjc5ODkgMzggMzIuMTYzIDM4IDMxLjVDMzggMzAuODM3IDM3Ljc0NzEgMzAuMjAxMSAzNy4yOTcxIDI5LjczMjJDMzYuODQ3IDI5LjI2MzQgMzYuMjM2NSAyOSAzNS42IDI5SDE2LjRaIiBmaWxsPSIjQTJBMkEyIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTAuODA0IDMyQzQ5LjEzMzMgMzIuMDAwNiA0Ny40ODU1IDMyLjM4ODUgNDUuOTkgMzMuMTMzMkM0NC40OTQ1IDMzLjg3NzggNDMuMTkyIDM0Ljk1OSA0Mi4xODQ4IDM2LjI5MThDNDEuMTc3NiAzNy42MjQ1IDQwLjQ5MzIgMzkuMTcyNiA0MC4xODUyIDQwLjgxNDRDMzkuODc3MiA0Mi40NTYyIDM5Ljk1NDEgNDQuMTQ3IDQwLjQwOTkgNDUuNzU0MUM0MC44NjU2IDQ3LjM2MTIgNDEuNjg3OCA0OC44NDA4IDQyLjgxMTggNTAuMDc2NkM0My45MzU4IDUxLjMxMjUgNDUuMzMxIDUyLjI3MSA0Ni44ODggNTIuODc2OUM0OC40NDQ5IDUzLjQ4MjggNTAuMTIxMSA1My43MTk1IDUxLjc4NSA1My41Njg1QzUzLjQ0ODkgNTMuNDE3NiA1NS4wNTUxIDUyLjg4MyA1Ni40Nzc1IDUyLjAwNjhMNjAuNjgxIDU2LjIwNjNDNjAuOTA5NCA1Ni40NTEzIDYxLjE4NDcgNTYuNjQ3OCA2MS40OTA3IDU2Ljc4NDFDNjEuNzk2NiA1Ni45MjA0IDYyLjEyNjkgNTYuOTkzNyA2Mi40NjE4IDU2Ljk5OTZDNjIuNzk2NyA1Ny4wMDU1IDYzLjEyOTQgNTYuOTQzOSA2My40Mzk5IDU2LjgxODVDNjMuNzUwNSA1Ni42OTMxIDY0LjAzMjYgNTYuNTA2NCA2NC4yNjk1IDU2LjI2OTZDNjQuNTA2MyA1Ni4wMzI4IDY0LjY5MyA1NS43NTA3IDY0LjgxODUgNTUuNDQwMkM2NC45NDM5IDU1LjEyOTcgNjUuMDA1NSA1NC43OTcxIDY0Ljk5OTYgNTQuNDYyMkM2NC45OTM3IDU0LjEyNzQgNjQuOTIwNCA1My43OTcyIDY0Ljc4NDEgNTMuNDkxM0M2NC42NDc4IDUzLjE4NTQgNjQuNDUxMiA1Mi45MSA2NC4yMDYyIDUyLjY4MTdMNjAuMDA1OSA0OC40Nzg5QzYxLjAxNTkgNDYuODQxNSA2MS41NzA0IDQ0Ljk2NDMgNjEuNjEyMiA0My4wNDFDNjEuNjU0IDQxLjExNzcgNjEuMTgxNSAzOS4yMTgxIDYwLjI0MzUgMzcuNTM4NUM1OS4zMDU2IDM1Ljg1ODggNTcuOTM2MiAzNC40NTk5IDU2LjI3NjggMzMuNDg2M0M1NC42MTc0IDMyLjUxMjYgNTIuNzI4MSAzMS45OTk1IDUwLjgwNCAzMlpNNDQuOTg0MyA0Mi44MDY0QzQ0Ljk4NDMgNDEuMjYzMSA0NS41OTc0IDM5Ljc4MzEgNDYuNjg4OCAzOC42OTE5QzQ3Ljc4MDMgMzcuNjAwNiA0OS4yNjA1IDM2Ljk4NzYgNTAuODA0IDM2Ljk4NzZDNTIuMzQ3NSAzNi45ODc2IDUzLjgyNzggMzcuNjAwNiA1NC45MTkyIDM4LjY5MTlDNTYuMDEwNyAzOS43ODMxIDU2LjYyMzggNDEuMjYzMSA1Ni42MjM4IDQyLjgwNjRDNTYuNjIzOCA0NC4zNDk2IDU2LjAxMDcgNDUuODI5NyA1NC45MTkyIDQ2LjkyMDlDNTMuODI3OCA0OC4wMTIxIDUyLjM0NzUgNDguNjI1MiA1MC44MDQgNDguNjI1MkM0OS4yNjA1IDQ4LjYyNTIgNDcuNzgwMyA0OC4wMTIxIDQ2LjY4ODggNDYuOTIwOUM0NS41OTc0IDQ1LjgyOTcgNDQuOTg0MyA0NC4zNDk2IDQ0Ljk4NDMgNDIuODA2NFoiIGZpbGw9IiNBMkEyQTIiLz4KPHBhdGggZD0iTTE2LjQyMzEgMzZDMTUuNzgwNCAzNiAxNS4xNjQxIDM2LjI1NTMgMTQuNzA5NyAzNi43MDk3QzE0LjI1NTMgMzcuMTY0MSAxNCAzNy43ODA0IDE0IDM4LjQyMzFDMTQgMzkuMDY1NyAxNC4yNTUzIDM5LjY4MiAxNC43MDk3IDQwLjEzNjRDMTUuMTY0MSA0MC41OTA5IDE1Ljc4MDQgNDAuODQ2MiAxNi40MjMxIDQwLjg0NjJIMjYuMTE1NEMyNi43NTggNDAuODQ2MiAyNy4zNzQzIDQwLjU5MDkgMjcuODI4OCA0MC4xMzY0QzI4LjI4MzIgMzkuNjgyIDI4LjUzODUgMzkuMDY1NyAyOC41Mzg1IDM4LjQyMzFDMjguNTM4NSAzNy43ODA0IDI4LjI4MzIgMzcuMTY0MSAyNy44Mjg4IDM2LjcwOTdDMjcuMzc0MyAzNi4yNTUzIDI2Ljc1OCAzNiAyNi4xMTU0IDM2SDE2LjQyMzFaTTE2LjQyMzEgNDUuNjkyM0MxNS43ODA0IDQ1LjY5MjMgMTUuMTY0MSA0NS45NDc2IDE0LjcwOTcgNDYuNDAyQzE0LjI1NTMgNDYuODU2NCAxNCA0Ny40NzI3IDE0IDQ4LjExNTRDMTQgNDguNzU4IDE0LjI1NTMgNDkuMzc0MyAxNC43MDk3IDQ5LjgyODhDMTUuMTY0MSA1MC4yODMyIDE1Ljc4MDQgNTAuNTM4NSAxNi40MjMxIDUwLjUzODVIMzIuNTc2OUMzMy4yMTk2IDUwLjUzODUgMzMuODM1OSA1MC4yODMyIDM0LjI5MDMgNDkuODI4OEMzNC43NDQ3IDQ5LjM3NDMgMzUgNDguNzU4IDM1IDQ4LjExNTRDMzUgNDcuNDcyNyAzNC43NDQ3IDQ2Ljg1NjQgMzQuMjkwMyA0Ni40MDJDMzMuODM1OSA0NS45NDc2IDMzLjIxOTYgNDUuNjkyMyAzMi41NzY5IDQ1LjY5MjNIMTYuNDIzMVpNMTYuNDIzMSA1Mi4xNTM4QzE1Ljc4MDQgNTIuMTUzOCAxNS4xNjQxIDUyLjQwOTEgMTQuNzA5NyA1Mi44NjM1QzE0LjI1NTMgNTMuMzE4IDE0IDUzLjkzNDMgMTQgNTQuNTc2OUMxNCA1NS4yMTk2IDE0LjI1NTMgNTUuODM1OSAxNC43MDk3IDU2LjI5MDNDMTUuMTY0MSA1Ni43NDQ3IDE1Ljc4MDQgNTcgMTYuNDIzMSA1N0gyNi4xMTU0QzI2Ljc1OCA1NyAyNy4zNzQzIDU2Ljc0NDcgMjcuODI4OCA1Ni4yOTAzQzI4LjI4MzIgNTUuODM1OSAyOC41Mzg1IDU1LjIxOTYgMjguNTM4NSA1NC41NzY5QzI4LjUzODUgNTMuOTM0MyAyOC4yODMyIDUzLjMxOCAyNy44Mjg4IDUyLjg2MzVDMjcuMzc0MyA1Mi40MDkxIDI2Ljc1OCA1Mi4xNTM4IDI2LjExNTQgNTIuMTUzOEgxNi40MjMxWiIgZmlsbD0iI0EyQTJBMiIvPgo8L3N2Zz4K' +description: 'Display an automatic feed of filtered content or manually selected content' +behavior_plugins: { } diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php new file mode 100644 index 000000000..7b0cf255a --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php @@ -0,0 +1,105 @@ +entityTypeManager = $entity_type_manager; + } + + /** + * {@inheritdoc} + */ + public static function create(ContainerInterface $container): ContentCollectionUIAutocomplete|AutowireTrait|static { + return new static( + $container->get('entity_type.manager') + ); + } + + /** + * Only allow authenticated users to access this endpoint. + * Note: we leave this open during local development. + */ + public static function access(AccountInterface $account): AccessResult { + if (Settings::get('environment') === 'local') { + return AccessResult::allowed()->setCacheMaxAge(0); + } + + return AccessResult::allowedIf($account->isAuthenticated() && $account->hasPermission('access content'))->setCacheMaxAge(0); + } + + /** + * Returns node autocomplete suggestions. + */ + public function index(Request $request): JsonResponse { + $results = []; + $query = $request->query->get('q', ''); + $site = $request->query->get('site', ''); + + if (!empty($query)) { + try { + $node_storage = $this->entityTypeManager->getStorage('node'); + } catch (InvalidPluginDefinitionException|PluginNotFoundException) { + return new JsonResponse([]); + } + + $query_builder = $node_storage->getQuery() + ->condition('status', 1) + ->condition('title', $query, 'CONTAINS') + ->range(0, 10) + ->accessCheck(); + + if ($site && is_numeric($site)) { + $query_builder->condition('field_node_site.target_id', $site); + } + + $ids = $query_builder->execute(); + + if (!empty($ids)) { + $nodes = $node_storage->loadMultiple($ids); + + foreach ($nodes as $node) { + /** @var \Drupal\node\NodeInterface $node */ + $results[] = [ + 'id' => $node->id(), + 'uuid' => $node->uuid(), + 'label' => $node->getTitle(), + 'value' => $node->getTitle(), + ]; + } + } + } + + return new JsonResponse($results); + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php new file mode 100644 index 000000000..b9244e8ba --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php @@ -0,0 +1,36 @@ + $item) { + $elements[$delta] = [ + '#type' => 'markup', + '#markup' => $this->t(''), + ]; + } + + return $elements; + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php new file mode 100644 index 000000000..4dd623180 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php @@ -0,0 +1,57 @@ +setLabel(new TranslatableMarkup('JSON')) + ->setRequired(TRUE); + + return $properties; + } + + /** + * {@inheritdoc} + */ + public static function schema(FieldStorageDefinitionInterface $field_definition): array { + return [ + 'columns' => [ + 'value' => [ + 'type' => 'text', + 'size' => 'big', + ], + ], + ]; + } + + /** + * {@inheritdoc} + */ + public function isEmpty(): bool { + $value = $this->get('value')->getValue(); + + return $value === NULL || $value === ''; + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php new file mode 100644 index 000000000..3e1356db4 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php @@ -0,0 +1,133 @@ + 0) { + $id_map = []; + $node_ids = array_map('intval', $value['manualItems']); + + $nodes = Node::loadMultiple($node_ids); + + foreach ($nodes as $node) { + if ($node instanceof NodeInterface) { + $id_map[$node->id()] = $node->getTitle(); + } + } + + $config['contentMap'] = $id_map; + } + + return $config; + } + + /** + * {@inheritdoc} + */ + public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, FormStateInterface $form_state): array { + // Get the index of the parent field. + $index = $element['#field_parents'][1] ?? 0; + + // Setup any needed Drupal supplied data. + $config = $this->getConfig($items[$delta]->value); + + // Add the application container. + $element['tide_content_collection_ui'] = [ + '#type' => 'html_tag', + '#tag' => 'div', + '#attributes' => [ + 'id' => 'content-collection-app-' . $index, + 'class' => ['content-collection-app'], + 'data-type' => $form["#entity_type"] ?? 'default', + 'data-config' => json_encode($config), + 'data-index' => "{$index}", + ], + ]; + + // Add a hidden input to store the JSON data. + $element['value'] = [ + '#type' => 'hidden', + '#default_value' => $items[$delta]->value ?? '{}', + '#attributes' => [ + 'id' => 'content-collection-value-' . $index, + 'class' => ['content-collection-value'], + ], + '#element_validate' => [ + [static::class, 'validateJSON'], + ], + '#required' => TRUE + ]; + + // Attach the application. + //$element['#attached']['library'][] = 'tide_content_collection_ui/tide_content_collection_ui'; + + return $element; + } + + /** + * Element validator for the hidden JSON value. + * + * @param array $element + * The form element render array. + * @param \Drupal\Core\Form\FormStateInterface $form_state + * The form state. + * @param array $form + * The complete form render array. + */ + public static function validateJSON(array &$element, FormStateInterface $form_state, array &$form): void { + $value = $form_state->getValue($element['#parents']); + $data = json_decode($value, TRUE); + + // Make sure we have a source selected. + if (!$data || !is_array($data) || !isset($data['source'])) { + $form_state->setError($element, new TranslatableMarkup('Please select a content source.')); + return; + } + + // Make sure we have a content type selected when using the 'auto' source. + if ($data['source'] === 'auto' && (!isset($data['contentType']) || !$data['contentType'])) { + $form_state->setError($element, new TranslatableMarkup('Please select a content type.')); + } + + // Make sure we have at least one manual item selected. + if ( + $data['source'] === 'manual' && + ( + !isset($data['manualItems']) || + !is_array($data['manualItems']) || + count($data['manualItems']) === 0 || + (count($data['manualItems']) === 1 && !$data['manualItems'][0]) + ) + ) { + $form_state->setError($element, new TranslatableMarkup('Please add at least one content item.')); + } + } + +} diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml new file mode 100644 index 000000000..761617f35 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.info.yml @@ -0,0 +1,10 @@ +name: Tide Content Collection UI +type: module +description: Provides a custom field type to handle content collection UI configuration. +core_version_requirement: ^9 || ^10 +package: Fields +dependencies: + - paragraphs:paragraphs + - dpc-sdp:tide_core + - dpc-sdp:tide_api + - dpc-sdp:tide_search diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml new file mode 100644 index 000000000..5366c3662 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.libraries.yml @@ -0,0 +1,8 @@ +tide_content_collection_ui: + version: 1.x + js: + js/dist/main.js: {} + dependencies: + - core/drupal + - core/once + - core/jquery diff --git a/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module new file mode 100644 index 000000000..c4f147a82 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/tide_content_collection_ui.module @@ -0,0 +1,6 @@ + Date: Fri, 19 Sep 2025 14:40:58 +1000 Subject: [PATCH 02/25] test --- ..._term.searchable_content_types.default.yml | 0 ..._term.searchable_content_types.default.yml | 30 +++++++++++++++++++ ...hable_content_types.field_machine_name.yml | 0 ...archable_fields.field_elasticsearch_id.yml | 0 ..._fields.field_searchable_content_types.yml | 0 ...e.taxonomy_term.field_elasticsearch_id.yml | 0 ...my_term.field_searchable_content_types.yml | 0 ...my.vocabulary.searchable_content_types.yml | 0 ...axonomy_term.searchable_fields.default.yml | 24 ++------------- ...axonomy_term.searchable_fields.default.yml | 18 ----------- ...hable_fields.field_elasticsearch_field.yml | 4 +-- 11 files changed, 34 insertions(+), 42 deletions(-) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml (100%) create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml (100%) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml (100%) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml (100%) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/field.storage.taxonomy_term.field_elasticsearch_id.yml (100%) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/field.storage.taxonomy_term.field_searchable_content_types.yml (100%) rename modules/{tide_search/config/optional => tide_api/modules/tide_content_collection_ui/config/install}/taxonomy.vocabulary.searchable_content_types.yml (100%) diff --git a/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml similarity index 100% rename from modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_form_display.taxonomy_term.searchable_content_types.default.yml diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml new file mode 100644 index 000000000..2dcaa6fc5 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/core.entity_view_display.taxonomy_term.searchable_content_types.default.yml @@ -0,0 +1,30 @@ +langcode: en +status: true +dependencies: + config: + - field.field.taxonomy_term.searchable_content_types.field_machine_name + - taxonomy.vocabulary.searchable_content_types + module: + - text +id: taxonomy_term.searchable_content_types.default +targetEntityType: taxonomy_term +bundle: searchable_content_types +mode: default +content: + description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content + field_machine_name: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 1 + region: content +hidden: + search_api_excerpt: true diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml similarity index 100% rename from modules/tide_search/config/optional/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_content_types.field_machine_name.yml diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml similarity index 100% rename from modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_elasticsearch_id.yml diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml similarity index 100% rename from modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.taxonomy_term.searchable_fields.field_searchable_content_types.yml diff --git a/modules/tide_search/config/optional/field.storage.taxonomy_term.field_elasticsearch_id.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_elasticsearch_id.yml similarity index 100% rename from modules/tide_search/config/optional/field.storage.taxonomy_term.field_elasticsearch_id.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_elasticsearch_id.yml diff --git a/modules/tide_search/config/optional/field.storage.taxonomy_term.field_searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_searchable_content_types.yml similarity index 100% rename from modules/tide_search/config/optional/field.storage.taxonomy_term.field_searchable_content_types.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.taxonomy_term.field_searchable_content_types.yml diff --git a/modules/tide_search/config/optional/taxonomy.vocabulary.searchable_content_types.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/taxonomy.vocabulary.searchable_content_types.yml similarity index 100% rename from modules/tide_search/config/optional/taxonomy.vocabulary.searchable_content_types.yml rename to modules/tide_api/modules/tide_content_collection_ui/config/install/taxonomy.vocabulary.searchable_content_types.yml diff --git a/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml b/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml index 65475bc17..e0254c726 100644 --- a/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml +++ b/modules/tide_search/config/optional/core.entity_form_display.taxonomy_term.searchable_fields.default.yml @@ -3,8 +3,6 @@ status: true dependencies: config: - field.field.taxonomy_term.searchable_fields.field_elasticsearch_field - - field.field.taxonomy_term.searchable_fields.field_elasticsearch_id - - field.field.taxonomy_term.searchable_fields.field_searchable_content_types - field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name - taxonomy.vocabulary.searchable_fields module: @@ -25,33 +23,15 @@ content: third_party_settings: { } field_elasticsearch_field: type: string_textfield - weight: 5 + weight: 101 region: content settings: size: 60 placeholder: '' third_party_settings: { } - field_elasticsearch_id: - type: string_textfield - weight: 4 - region: content - settings: - size: 60 - placeholder: '' - third_party_settings: { } - field_searchable_content_types: - type: entity_reference_autocomplete - weight: 7 - region: content - settings: - match_operator: CONTAINS - match_limit: 10 - size: 60 - placeholder: '' - third_party_settings: { } field_taxonomy_machine_name: type: string_textfield - weight: 6 + weight: 102 region: content settings: size: 60 diff --git a/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml b/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml index fc1e85b02..8ba816985 100644 --- a/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml +++ b/modules/tide_search/config/optional/core.entity_view_display.taxonomy_term.searchable_fields.default.yml @@ -3,8 +3,6 @@ status: true dependencies: config: - field.field.taxonomy_term.searchable_fields.field_elasticsearch_field - - field.field.taxonomy_term.searchable_fields.field_elasticsearch_id - - field.field.taxonomy_term.searchable_fields.field_searchable_content_types - field.field.taxonomy_term.searchable_fields.field_taxonomy_machine_name - taxonomy.vocabulary.searchable_fields module: @@ -29,22 +27,6 @@ content: third_party_settings: { } weight: 1 region: content - field_elasticsearch_id: - type: string - label: above - settings: - link_to_entity: false - third_party_settings: { } - weight: 3 - region: content - field_searchable_content_types: - type: entity_reference_label - label: above - settings: - link: true - third_party_settings: { } - weight: 4 - region: content field_taxonomy_machine_name: type: string label: above diff --git a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml index 7191ced72..9ef32753b 100644 --- a/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml +++ b/modules/tide_search/config/optional/field.field.taxonomy_term.searchable_fields.field_elasticsearch_field.yml @@ -9,8 +9,8 @@ field_name: field_elasticsearch_field entity_type: taxonomy_term bundle: searchable_fields label: 'Elasticsearch field' -description: 'This is the elastic key of the displayed field value, for example this could be a term called "Community".' -required: true +description: '' +required: false translatable: false default_value: { } default_value_callback: '' From e3190e89c709fdaa43e80d5eafd351a46b909a99 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Fri, 19 Sep 2025 15:31:45 +1000 Subject: [PATCH 03/25] chore: testing and text updates --- ...aragraphs.paragraphs_type.content_collection_ui.yml | 2 +- ...plete.php => ContentCollectionNodeAutocomplete.php} | 10 +++------- .../FieldFormatter/ContentCollectionUIFormatter.php | 2 +- .../Plugin/Field/FieldType/ContentCollectionUIItem.php | 4 ++-- .../FieldWidget/ContentCollectionUIDefaultWidget.php | 2 +- 5 files changed, 8 insertions(+), 12 deletions(-) rename modules/tide_api/modules/tide_content_collection_ui/src/Controller/{ContentCollectionUIAutocomplete.php => ContentCollectionNodeAutocomplete.php} (90%) diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml index 7eb620eae..dd627909c 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/paragraphs.paragraphs_type.content_collection_ui.yml @@ -6,7 +6,7 @@ dependencies: _core: default_config_hash: epwlG1_yWnseA1q5W7Ajymn3b3NQEyTjdnCPjXzNFyA id: content_collection_ui -label: 'Tide Content Collection UI' +label: 'Content Collection UI' icon_uuid: bd168646-7145-4b4b-b6c8-8552d2d7b0b8 icon_default: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iNzciIHZpZXdCb3g9IjAgMCA2OCA3NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY4IiBoZWlnaHQ9Ijc3IiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTQ4LjIzMiAxMUgxNi43NjhDMTUuMDI1NCAxMSAxMy41NzYgMTEgMTIuMzg3MSAxMS4wOTgyQzcuNzkxMzEgMTEuNDc0NSA0LjQ2NTc3IDE0LjkwNzYgNC4wOTc3MSAxOS40MjczQzQgMjAuNjIxOCA0IDIyLjA4NDcgNCAyMy44MjkxVjUyLjE3MDlDNCA1My45MjE4IDQgNTUuMzc4MiA0LjA5NzcxIDU2LjU3MjdDNC4xOTU0MyA1Ny44MTY0IDQuNDE2OTEgNTguOTgxNSA0Ljk3NzE0IDYwLjA4NDRDNS44MzU5NiA2MS43NzgyIDcuMjA2NDggNjMuMTU1MyA4Ljg5MjIzIDY0LjAxODJDOS45ODk4OSA2NC41ODExIDExLjE0OTQgNjQuODAzNiAxMi4zODcxIDY0LjkwMThDMTMuNTc2IDY1IDE1LjAyNTQgNjUgMTYuNzY0NyA2NUg0OC4yMzUzQzQ5Ljk3NDYgNjUgNTEuNDI3MyA2NSA1Mi42MTI5IDY0LjkwMThDNTMuODUwNiA2NC44MDM2IDU1LjAxMDEgNjQuNTgxMSA1Ni4xMDc4IDY0LjAxODJDNTYuNjYxOCA2My43MTAxIDU3LjA3NTEgNjMuMTk3OSA1Ny4yNjA2IDYyLjU4OTVDNTcuNDQ2MSA2MS45ODEyIDU3LjM4OTIgNjEuMzI0MiA1Ny4xMDE5IDYwLjc1NzJDNTYuODE0NyA2MC4xOTAyIDU2LjMxOTYgNTkuNzU3NCA1NS43MjA5IDU5LjU1QzU1LjEyMjMgNTkuMzQyNyA1NC40NjY5IDU5LjM3NyA1My44OTI5IDU5LjY0NThDNTMuNTk2NSA1OS43OTY0IDUzLjE1MDMgNTkuOTMzOCA1Mi4yMTIyIDYwLjAwOTFDNTEuMjUxNCA2MC4wODc2IDQ5Ljk5NzQgNjAuMDkwOSA0OC4xMzQzIDYwLjA5MDlIMTYuODY1N0MxNS4wMDI2IDYwLjA5MDkgMTMuNzQ4NiA2MC4wOTA5IDEyLjc4NDUgNjAuMDA5MUMxMS44NDk3IDU5LjkzMzggMTEuNDAzNSA1OS43OTY0IDExLjExMDMgNTkuNjQ1OEMxMC4zNDMgNTkuMjUzNCA5LjcxOTI0IDU4LjYyNjYgOS4zMjg2OSA1Ny44NTU2QzkuMTc4ODYgNTcuNTYxMSA5LjA0MjA2IDU3LjExMjcgOC45NjcxNCA1Ni4xNzAyQzguODg4OTcgNTUuMjA0NyA4Ljg4NTcxIDUzLjk0NDcgOC44ODU3MSA1Mi4wNzI3VjI1LjcyNzNINTYuMDY4N0M1Ni4wOTQ3IDI3LjA5MDkgNTYuMTA5OSAyOC40NTQ1IDU2LjExNDMgMjkuODE4MkM1Ni4xMTQzIDMwLjQ2OTIgNTYuMzcxNyAzMS4wOTM1IDU2LjgyOTggMzEuNTUzOEM1Ny4yODc5IDMyLjAxNDEgNTcuOTA5MyAzMi4yNzI3IDU4LjU1NzEgMzIuMjcyN0M1OS4yMDUgMzIuMjcyNyA1OS44MjY0IDMyLjAxNDEgNjAuMjg0NSAzMS41NTM4QzYwLjc0MjYgMzEuMDkzNSA2MSAzMC40NjkyIDYxIDI5LjgxODJDNjEgMjkuMjA3MyA2MC45OTY3IDI4LjU5ODUgNjAuOTkwMiAyNy45OTJDNjAuOTY3NCAyNS43OTkzIDYwLjkwMjMgMjIuMDc4MiA2MC42OTM4IDE5LjQyNEM2MC4zMjU4IDE0Ljc2MzYgNTcuMjAyMiAxMS40NzEzIDUyLjYxMjkgMTEuMDk4MkM1MS40MjQgMTEgNDkuOTc0NiAxMSA0OC4yMzIgMTFaTTU1Ljg5MjggMjAuODE4MkM1NS43MzY1IDE4LjIwOTggNTQuOTg3MyAxNi4yMTY3IDUyLjIxMjIgMTUuOTkwOUM1MS4yNTE0IDE1LjkxMjQgNDkuOTk3NCAxNS45MDkxIDQ4LjEzNDMgMTUuOTA5MUgxNi44NjU3QzE1LjAwMjYgMTUuOTA5MSAxMy43NDg2IDE1LjkwOTEgMTIuNzg0NSAxNS45OTA5QzEwLjEyMDIgMTYuMjEwMiA4Ljk5NjQ2IDE4LjIxNjQgOC45MTE3NyAyMC44MTgySDU1Ljg5MjhaIiBmaWxsPSIjQzRDNEM0Ii8+CjxwYXRoIGQ9Ik0xNi40IDI5QzE1Ljc2MzUgMjkgMTUuMTUzIDI5LjI2MzQgMTQuNzAyOSAyOS43MzIyQzE0LjI1MjkgMzAuMjAxMSAxNCAzMC44MzcgMTQgMzEuNUMxNCAzMi4xNjMgMTQuMjUyOSAzMi43OTg5IDE0LjcwMjkgMzMuMjY3OEMxNS4xNTMgMzMuNzM2NiAxNS43NjM1IDM0IDE2LjQgMzRIMzUuNkMzNi4yMzY1IDM0IDM2Ljg0NyAzMy43MzY2IDM3LjI5NzEgMzMuMjY3OEMzNy43NDcxIDMyLjc5ODkgMzggMzIuMTYzIDM4IDMxLjVDMzggMzAuODM3IDM3Ljc0NzEgMzAuMjAxMSAzNy4yOTcxIDI5LjczMjJDMzYuODQ3IDI5LjI2MzQgMzYuMjM2NSAyOSAzNS42IDI5SDE2LjRaIiBmaWxsPSIjQTJBMkEyIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTAuODA0IDMyQzQ5LjEzMzMgMzIuMDAwNiA0Ny40ODU1IDMyLjM4ODUgNDUuOTkgMzMuMTMzMkM0NC40OTQ1IDMzLjg3NzggNDMuMTkyIDM0Ljk1OSA0Mi4xODQ4IDM2LjI5MThDNDEuMTc3NiAzNy42MjQ1IDQwLjQ5MzIgMzkuMTcyNiA0MC4xODUyIDQwLjgxNDRDMzkuODc3MiA0Mi40NTYyIDM5Ljk1NDEgNDQuMTQ3IDQwLjQwOTkgNDUuNzU0MUM0MC44NjU2IDQ3LjM2MTIgNDEuNjg3OCA0OC44NDA4IDQyLjgxMTggNTAuMDc2NkM0My45MzU4IDUxLjMxMjUgNDUuMzMxIDUyLjI3MSA0Ni44ODggNTIuODc2OUM0OC40NDQ5IDUzLjQ4MjggNTAuMTIxMSA1My43MTk1IDUxLjc4NSA1My41Njg1QzUzLjQ0ODkgNTMuNDE3NiA1NS4wNTUxIDUyLjg4MyA1Ni40Nzc1IDUyLjAwNjhMNjAuNjgxIDU2LjIwNjNDNjAuOTA5NCA1Ni40NTEzIDYxLjE4NDcgNTYuNjQ3OCA2MS40OTA3IDU2Ljc4NDFDNjEuNzk2NiA1Ni45MjA0IDYyLjEyNjkgNTYuOTkzNyA2Mi40NjE4IDU2Ljk5OTZDNjIuNzk2NyA1Ny4wMDU1IDYzLjEyOTQgNTYuOTQzOSA2My40Mzk5IDU2LjgxODVDNjMuNzUwNSA1Ni42OTMxIDY0LjAzMjYgNTYuNTA2NCA2NC4yNjk1IDU2LjI2OTZDNjQuNTA2MyA1Ni4wMzI4IDY0LjY5MyA1NS43NTA3IDY0LjgxODUgNTUuNDQwMkM2NC45NDM5IDU1LjEyOTcgNjUuMDA1NSA1NC43OTcxIDY0Ljk5OTYgNTQuNDYyMkM2NC45OTM3IDU0LjEyNzQgNjQuOTIwNCA1My43OTcyIDY0Ljc4NDEgNTMuNDkxM0M2NC42NDc4IDUzLjE4NTQgNjQuNDUxMiA1Mi45MSA2NC4yMDYyIDUyLjY4MTdMNjAuMDA1OSA0OC40Nzg5QzYxLjAxNTkgNDYuODQxNSA2MS41NzA0IDQ0Ljk2NDMgNjEuNjEyMiA0My4wNDFDNjEuNjU0IDQxLjExNzcgNjEuMTgxNSAzOS4yMTgxIDYwLjI0MzUgMzcuNTM4NUM1OS4zMDU2IDM1Ljg1ODggNTcuOTM2MiAzNC40NTk5IDU2LjI3NjggMzMuNDg2M0M1NC42MTc0IDMyLjUxMjYgNTIuNzI4MSAzMS45OTk1IDUwLjgwNCAzMlpNNDQuOTg0MyA0Mi44MDY0QzQ0Ljk4NDMgNDEuMjYzMSA0NS41OTc0IDM5Ljc4MzEgNDYuNjg4OCAzOC42OTE5QzQ3Ljc4MDMgMzcuNjAwNiA0OS4yNjA1IDM2Ljk4NzYgNTAuODA0IDM2Ljk4NzZDNTIuMzQ3NSAzNi45ODc2IDUzLjgyNzggMzcuNjAwNiA1NC45MTkyIDM4LjY5MTlDNTYuMDEwNyAzOS43ODMxIDU2LjYyMzggNDEuMjYzMSA1Ni42MjM4IDQyLjgwNjRDNTYuNjIzOCA0NC4zNDk2IDU2LjAxMDcgNDUuODI5NyA1NC45MTkyIDQ2LjkyMDlDNTMuODI3OCA0OC4wMTIxIDUyLjM0NzUgNDguNjI1MiA1MC44MDQgNDguNjI1MkM0OS4yNjA1IDQ4LjYyNTIgNDcuNzgwMyA0OC4wMTIxIDQ2LjY4ODggNDYuOTIwOUM0NS41OTc0IDQ1LjgyOTcgNDQuOTg0MyA0NC4zNDk2IDQ0Ljk4NDMgNDIuODA2NFoiIGZpbGw9IiNBMkEyQTIiLz4KPHBhdGggZD0iTTE2LjQyMzEgMzZDMTUuNzgwNCAzNiAxNS4xNjQxIDM2LjI1NTMgMTQuNzA5NyAzNi43MDk3QzE0LjI1NTMgMzcuMTY0MSAxNCAzNy43ODA0IDE0IDM4LjQyMzFDMTQgMzkuMDY1NyAxNC4yNTUzIDM5LjY4MiAxNC43MDk3IDQwLjEzNjRDMTUuMTY0MSA0MC41OTA5IDE1Ljc4MDQgNDAuODQ2MiAxNi40MjMxIDQwLjg0NjJIMjYuMTE1NEMyNi43NTggNDAuODQ2MiAyNy4zNzQzIDQwLjU5MDkgMjcuODI4OCA0MC4xMzY0QzI4LjI4MzIgMzkuNjgyIDI4LjUzODUgMzkuMDY1NyAyOC41Mzg1IDM4LjQyMzFDMjguNTM4NSAzNy43ODA0IDI4LjI4MzIgMzcuMTY0MSAyNy44Mjg4IDM2LjcwOTdDMjcuMzc0MyAzNi4yNTUzIDI2Ljc1OCAzNiAyNi4xMTU0IDM2SDE2LjQyMzFaTTE2LjQyMzEgNDUuNjkyM0MxNS43ODA0IDQ1LjY5MjMgMTUuMTY0MSA0NS45NDc2IDE0LjcwOTcgNDYuNDAyQzE0LjI1NTMgNDYuODU2NCAxNCA0Ny40NzI3IDE0IDQ4LjExNTRDMTQgNDguNzU4IDE0LjI1NTMgNDkuMzc0MyAxNC43MDk3IDQ5LjgyODhDMTUuMTY0MSA1MC4yODMyIDE1Ljc4MDQgNTAuNTM4NSAxNi40MjMxIDUwLjUzODVIMzIuNTc2OUMzMy4yMTk2IDUwLjUzODUgMzMuODM1OSA1MC4yODMyIDM0LjI5MDMgNDkuODI4OEMzNC43NDQ3IDQ5LjM3NDMgMzUgNDguNzU4IDM1IDQ4LjExNTRDMzUgNDcuNDcyNyAzNC43NDQ3IDQ2Ljg1NjQgMzQuMjkwMyA0Ni40MDJDMzMuODM1OSA0NS45NDc2IDMzLjIxOTYgNDUuNjkyMyAzMi41NzY5IDQ1LjY5MjNIMTYuNDIzMVpNMTYuNDIzMSA1Mi4xNTM4QzE1Ljc4MDQgNTIuMTUzOCAxNS4xNjQxIDUyLjQwOTEgMTQuNzA5NyA1Mi44NjM1QzE0LjI1NTMgNTMuMzE4IDE0IDUzLjkzNDMgMTQgNTQuNTc2OUMxNCA1NS4yMTk2IDE0LjI1NTMgNTUuODM1OSAxNC43MDk3IDU2LjI5MDNDMTUuMTY0MSA1Ni43NDQ3IDE1Ljc4MDQgNTcgMTYuNDIzMSA1N0gyNi4xMTU0QzI2Ljc1OCA1NyAyNy4zNzQzIDU2Ljc0NDcgMjcuODI4OCA1Ni4yOTAzQzI4LjI4MzIgNTUuODM1OSAyOC41Mzg1IDU1LjIxOTYgMjguNTM4NSA1NC41NzY5QzI4LjUzODUgNTMuOTM0MyAyOC4yODMyIDUzLjMxOCAyNy44Mjg4IDUyLjg2MzVDMjcuMzc0MyA1Mi40MDkxIDI2Ljc1OCA1Mi4xNTM4IDI2LjExNTQgNTIuMTUzOEgxNi40MjMxWiIgZmlsbD0iI0EyQTJBMiIvPgo8L3N2Zz4K' description: 'Display an automatic feed of filtered content or manually selected content' diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php similarity index 90% rename from modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php rename to modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php index 7b0cf255a..29380e13d 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionUIAutocomplete.php +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Controller/ContentCollectionNodeAutocomplete.php @@ -13,11 +13,12 @@ use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; +use Drupal\tide_site_restriction\Helper; /** * Controller for Tide Content Collection UI node autocomplete endpoints. */ -class ContentCollectionUIAutocomplete extends ControllerBase { +class ContentCollectionNodeAutocomplete extends ControllerBase { /** * The entity type manager. @@ -39,7 +40,7 @@ public function __construct(EntityTypeManagerInterface $entity_type_manager) { /** * {@inheritdoc} */ - public static function create(ContainerInterface $container): ContentCollectionUIAutocomplete|AutowireTrait|static { + public static function create(ContainerInterface $container): ContentCollectionNodeAutocomplete|AutowireTrait|static { return new static( $container->get('entity_type.manager') ); @@ -63,7 +64,6 @@ public static function access(AccountInterface $account): AccessResult { public function index(Request $request): JsonResponse { $results = []; $query = $request->query->get('q', ''); - $site = $request->query->get('site', ''); if (!empty($query)) { try { @@ -78,10 +78,6 @@ public function index(Request $request): JsonResponse { ->range(0, 10) ->accessCheck(); - if ($site && is_numeric($site)) { - $query_builder->condition('field_node_site.target_id', $site); - } - $ids = $query_builder->execute(); if (!empty($ids)) { diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php index b9244e8ba..c2047021b 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldFormatter/ContentCollectionUIFormatter.php @@ -12,7 +12,7 @@ */ #[FieldFormatter( id: 'tide_content_collection_ui_formatter', - label: new TranslatableMarkup('Tide Content Collection UI'), + label: new TranslatableMarkup('Content Collection UI'), field_types: ['tide_content_collection_ui'], )] class ContentCollectionUIFormatter extends FormatterBase { diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php index 4dd623180..5e5039cb6 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldType/ContentCollectionUIItem.php @@ -13,8 +13,8 @@ */ #[FieldType( id: "tide_content_collection_ui", - label: new TranslatableMarkup("Tide Content Collection UI"), - description: new TranslatableMarkup("Field to store Tide Content Collection UI config as JSON."), + label: new TranslatableMarkup("Content Collection JSON"), + description: new TranslatableMarkup("Field to store Content Collection UI config as JSON."), default_widget: "tide_content_collection_ui_default", default_formatter: "tide_content_collection_ui_formatter" )] diff --git a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php index 3e1356db4..7e92be24b 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php +++ b/modules/tide_api/modules/tide_content_collection_ui/src/Plugin/Field/FieldWidget/ContentCollectionUIDefaultWidget.php @@ -15,7 +15,7 @@ */ #[FieldWidget( id: 'tide_content_collection_ui_default', - label: new TranslatableMarkup('Tide Content Collection UI'), + label: new TranslatableMarkup('Content Collection UI'), field_types: ['tide_content_collection_ui'], )] class ContentCollectionUIDefaultWidget extends WidgetBase { From c11d3c58158213e7fa531f182ae26e1bc4094f95 Mon Sep 17 00:00:00 2001 From: Vincent Gao Date: Fri, 19 Sep 2025 16:35:12 +1000 Subject: [PATCH 04/25] added field_content_collection field configs --- ...collection_ui.field_content_collection.yml | 22 +++++++++++++++++++ ...age.paragraph.field_content_collection.yml | 18 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection.yml create mode 100644 modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection.yml diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection.yml new file mode 100644 index 000000000..fa0183303 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.field.paragraph.content_collection_ui.field_content_collection.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_content_collection + - paragraphs.paragraphs_type.content_collection_ui + module: + - tide_content_collection_ui +id: paragraph.content_collection_ui.field_content_collection +field_name: field_content_collection +entity_type: paragraph +bundle: content_collection_ui +label: 'Content collection' +description: '' +required: false +translatable: false +default_value: + - + value: '{}' +default_value_callback: '' +settings: { } +field_type: tide_content_collection_ui diff --git a/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection.yml b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection.yml new file mode 100644 index 000000000..517bd9237 --- /dev/null +++ b/modules/tide_api/modules/tide_content_collection_ui/config/install/field.storage.paragraph.field_content_collection.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - paragraphs + - tide_content_collection_ui +id: paragraph.field_content_collection +field_name: field_content_collection +entity_type: paragraph +type: tide_content_collection_ui +settings: { } +module: tide_content_collection_ui +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false From 48302c0d4082ce254f240f992fa4317c594734a2 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Fri, 19 Sep 2025 16:38:44 +1000 Subject: [PATCH 05/25] chore: update path and field requirement --- .../tide_content_collection_ui/app/dist/main.js | 3 +-- .../tide_content_collection_ui/app/dist/main.js.map | 1 - .../tide_content_collection_ui/app/src/index.js | 2 +- .../tide_content_collection_ui/app/vite.config.js | 1 - .../FieldWidget/ContentCollectionUIDefaultWidget.php | 11 +++++++---- .../tide_content_collection_ui.libraries.yml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js.map diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js index 3b036a4ac..f953b15eb 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js +++ b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js @@ -29,5 +29,4 @@ Expected function or array of functions, received type ${typeof e}.`),qe)}functi * @author RubaXa * @author owenm * @license MIT - */function Rp(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Wa(e){for(var a=1;a=0)&&(t[o]=e[o]);return t}function Wh(e,a){if(e==null)return{};var t=Bh(e,a),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var Hh="1.15.6";function it(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var rt=it(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vn=it(/Edge/i),Mp=it(/firefox/i),$n=it(/safari/i)&&!it(/chrome/i)&&!it(/android/i),jr=it(/iP(ad|od|hone)/i),Fp=it(/chrome/i)&&it(/android/i),zp={capture:!1,passive:!1};function se(e,a,t){e.addEventListener(a,t,!rt&&zp)}function ie(e,a,t){e.removeEventListener(a,t,!rt&&zp)}function Vo(e,a){if(a){if(a[0]===">"&&(a=a.substring(1)),e)try{if(e.matches)return e.matches(a);if(e.msMatchesSelector)return e.msMatchesSelector(a);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(a)}catch{return!1}return!1}}function Up(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ia(e,a,t,n){if(e){t=t||document;do{if(a!=null&&(a[0]===">"?e.parentNode===t&&Vo(e,a):Vo(e,a))||n&&e===t)return e;if(e===t)break}while(e=Up(e))}return null}var Lp=/\s+/g;function va(e,a,t){if(e&&a)if(e.classList)e.classList[t?"add":"remove"](a);else{var n=(" "+e.className+" ").replace(Lp," ").replace(" "+a+" "," ");e.className=(n+(t?" "+a:"")).replace(Lp," ")}}function X(e,a,t){var n=e&&e.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),a===void 0?t:t[a];!(a in n)&&a.indexOf("webkit")===-1&&(a="-webkit-"+a),n[a]=t+(typeof t=="string"?"":"px")}}function en(e,a){var t="";if(typeof e=="string")t=e;else do{var n=X(e,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!a&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function qp(e,a,t){if(e){var n=e.getElementsByTagName(a),o=0,i=n.length;if(t)for(;o=i,!r)return n;if(n===Ha())break;n=ht(n,!1)}return!1}function an(e,a,t,n){for(var o=0,i=0,r=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},n=t.evt,o=Wh(t,eg);Mn.pluginEvent.bind(J)(e,a,Wa({dragEl:R,parentEl:Ae,ghostEl:ee,rootEl:De,nextEl:Pt,lastDownEl:$o,cloneEl:Ce,cloneHidden:gt,dragStarted:zn,putSortable:Ye,activeSortable:J.active,originalEvent:n,oldIndex:nn,oldDraggableIndex:Fn,newIndex:ha,newDraggableIndex:xt,hideGhostForTarget:tu,unhideGhostForTarget:nu,cloneNowHidden:function(){gt=!0},cloneNowShown:function(){gt=!1},dispatchSortableEvent:function(i){na({sortable:a,name:i,originalEvent:n})}},o))};function na(e){Zh(Wa({putSortable:Ye,cloneEl:Ce,targetEl:R,rootEl:De,oldIndex:nn,oldDraggableIndex:Fn,newIndex:ha,newDraggableIndex:xt},e))}var R,Ae,ee,De,Pt,$o,Ce,gt,nn,ha,Fn,xt,Ro,Ye,on=!1,Mo=!1,Fo=[],Vt,Pa,Dr,Cr,Qp,Xp,zn,rn,Un,Ln=!1,zo=!1,Uo,Je,Tr=[],Ar=!1,Lo=[],qo=typeof document<"u",Bo=jr,Jp=Vn||rt?"cssFloat":"float",ag=qo&&!Fp&&!jr&&"draggable"in document.createElement("div"),Zp=function(){if(qo){if(rt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),eu=function(e,a){var t=X(e),n=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),o=an(e,0,a),i=an(e,1,a),r=o&&X(o),s=i&&X(i),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Fe(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Fe(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===p)?"vertical":"horizontal"}return o&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=n&&t[Jp]==="none"||i&&t[Jp]==="none"&&c+l>n)?"vertical":"horizontal"},tg=function(e,a,t){var n=t?e.left:e.top,o=t?e.right:e.bottom,i=t?e.width:e.height,r=t?a.left:a.top,s=t?a.right:a.bottom,c=t?a.width:a.height;return n===r||o===s||n+i/2===r+c/2},ng=function(e,a){var t;return Fo.some(function(n){var o=n[la].options.emptyInsertThreshold;if(!(!o||Or(n))){var i=Fe(n),r=e>=i.left-o&&e<=i.right+o,s=a>=i.top-o&&a<=i.bottom+o;if(r&&s)return t=n}}),t},au=function(e){function a(o,i){return function(r,s,c,l){var p=r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name;if(o==null&&(i||p))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return a(o(r,s,c,l),i)(r,s,c,l);var u=(i?r:s).options.group.name;return o===!0||typeof o=="string"&&o===u||o.join&&o.indexOf(u)>-1}}var t={},n=e.group;(!n||Po(n)!="object")&&(n={name:n}),t.name=n.name,t.checkPull=a(n.pull,!0),t.checkPut=a(n.put),t.revertClone=n.revertClone,e.group=t},tu=function(){!Zp&&ee&&X(ee,"display","none")},nu=function(){!Zp&&ee&&X(ee,"display","")};qo&&!Fp&&document.addEventListener("click",function(e){if(Mo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Mo=!1,!1},!0);var $t=function(e){if(R){e=e.touches?e.touches[0]:e;var a=ng(e.clientX,e.clientY);if(a){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.target=t.rootEl=a,t.preventDefault=void 0,t.stopPropagation=void 0,a[la]._onDragOver(t)}}},og=function(e){R&&R.parentNode[la]._isOutsideThisEl(e.target)};function J(e,a){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=a=ot({},a),e[la]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return eu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,r){i.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:J.supportPointer!==!1&&"PointerEvent"in window&&(!$n||jr),emptyInsertThreshold:5};Mn.initializePlugins(this,e,t);for(var n in t)!(n in a)&&(a[n]=t[n]);au(a);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=a.forceFallback?!1:ag,this.nativeDraggable&&(this.options.touchStartThreshold=1),a.supportPointer?se(e,"pointerdown",this._onTapStart):(se(e,"mousedown",this._onTapStart),se(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(e,"dragover",this),se(e,"dragenter",this)),Fo.push(this.el),a.store&&a.store.get&&this.sort(a.store.get(this)||[]),ot(this,Qh())}J.prototype={constructor:J,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(rn=null)},_getDirection:function(e,a){return typeof this.options.direction=="function"?this.options.direction.call(this,e,a,R):this.options.direction},_onTapStart:function(e){if(e.cancelable){var a=this,t=this.el,n=this.options,o=n.preventOnFilter,i=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(r||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=n.filter;if(dg(t),!R&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&$n&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Ia(s,n.draggable,t,!1),!(s&&s.animated)&&$o!==s)){if(nn=ka(s),Fn=ka(s,n.draggable),typeof l=="function"){if(l.call(this,e,s,this)){na({sortable:a,rootEl:c,name:"filter",targetEl:s,toEl:t,fromEl:t}),pa("filter",a,{evt:e}),o&&e.preventDefault();return}}else if(l&&(l=l.split(",").some(function(p){if(p=Ia(c,p.trim(),t,!1),p)return na({sortable:a,rootEl:p,name:"filter",targetEl:s,fromEl:t,toEl:t}),pa("filter",a,{evt:e}),!0}),l)){o&&e.preventDefault();return}n.handle&&!Ia(c,n.handle,t,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,a,t){var n=this,o=n.el,i=n.options,r=o.ownerDocument,s;if(t&&!R&&t.parentNode===o){var c=Fe(t);if(De=o,R=t,Ae=R.parentNode,Pt=R.nextSibling,$o=t,Ro=i.group,J.dragged=R,Vt={target:R,clientX:(a||e).clientX,clientY:(a||e).clientY},Qp=Vt.clientX-c.left,Xp=Vt.clientY-c.top,this._lastX=(a||e).clientX,this._lastY=(a||e).clientY,R.style["will-change"]="all",s=function(){if(pa("delayEnded",n,{evt:e}),J.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Mp&&n.nativeDraggable&&(R.draggable=!0),n._triggerDragStart(e,a),na({sortable:n,name:"choose",originalEvent:e}),va(R,i.chosenClass,!0)},i.ignore.split(",").forEach(function(l){qp(R,l.trim(),Ir)}),se(r,"dragover",$t),se(r,"mousemove",$t),se(r,"touchmove",$t),i.supportPointer?(se(r,"pointerup",n._onDrop),!this.nativeDraggable&&se(r,"pointercancel",n._onDrop)):(se(r,"mouseup",n._onDrop),se(r,"touchend",n._onDrop),se(r,"touchcancel",n._onDrop)),Mp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),pa("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Vn||rt))){if(J.eventCanceled){this._onDrop();return}i.supportPointer?(se(r,"pointerup",n._disableDelayedDrag),se(r,"pointercancel",n._disableDelayedDrag)):(se(r,"mouseup",n._disableDelayedDrag),se(r,"touchend",n._disableDelayedDrag),se(r,"touchcancel",n._disableDelayedDrag)),se(r,"mousemove",n._delayedDragTouchMoveHandler),se(r,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&se(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var a=e.touches?e.touches[0]:e;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&Ir(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._disableDelayedDrag),ie(e,"touchend",this._disableDelayedDrag),ie(e,"touchcancel",this._disableDelayedDrag),ie(e,"pointerup",this._disableDelayedDrag),ie(e,"pointercancel",this._disableDelayedDrag),ie(e,"mousemove",this._delayedDragTouchMoveHandler),ie(e,"touchmove",this._delayedDragTouchMoveHandler),ie(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,a){a=a||e.pointerType=="touch"&&e,!this.nativeDraggable||a?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):a?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(R,"dragend",this),se(De,"dragstart",this._onDragStart));try{document.selection?Ho(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,a){if(on=!1,De&&R){pa("dragStarted",this,{evt:a}),this.nativeDraggable&&se(document,"dragover",og);var t=this.options;!e&&va(R,t.dragClass,!1),va(R,t.ghostClass,!0),J.active=this,e&&this._appendGhost(),na({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Pa){this._lastX=Pa.clientX,this._lastY=Pa.clientY,tu();for(var e=document.elementFromPoint(Pa.clientX,Pa.clientY),a=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Pa.clientX,Pa.clientY),e!==a);)a=e;if(R.parentNode[la]._isOutsideThisEl(e),a)do{if(a[la]){var t=void 0;if(t=a[la]._onDragOver({clientX:Pa.clientX,clientY:Pa.clientY,target:e,rootEl:a}),t&&!this.options.dragoverBubble)break}e=a}while(a=Up(a));nu()}},_onTouchMove:function(e){if(Vt){var a=this.options,t=a.fallbackTolerance,n=a.fallbackOffset,o=e.touches?e.touches[0]:e,i=ee&&en(ee,!0),r=ee&&i&&i.a,s=ee&&i&&i.d,c=Bo&&Je&&Wp(Je),l=(o.clientX-Vt.clientX+n.x)/(r||1)+(c?c[0]-Tr[0]:0)/(r||1),p=(o.clientY-Vt.clientY+n.y)/(s||1)+(c?c[1]-Tr[1]:0)/(s||1);if(!J.active&&!on){if(t&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(na({rootEl:Ae,name:"add",toEl:Ae,fromEl:De,originalEvent:e}),na({sortable:this,name:"remove",toEl:Ae,originalEvent:e}),na({rootEl:Ae,name:"sort",toEl:Ae,fromEl:De,originalEvent:e}),na({sortable:this,name:"sort",toEl:Ae,originalEvent:e})),Ye&&Ye.save()):ha!==nn&&ha>=0&&(na({sortable:this,name:"update",toEl:Ae,originalEvent:e}),na({sortable:this,name:"sort",toEl:Ae,originalEvent:e})),J.active&&((ha==null||ha===-1)&&(ha=nn,xt=Fn),na({sortable:this,name:"end",toEl:Ae,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pa("nulling",this),De=R=Ae=ee=Pt=Ce=$o=gt=Vt=Pa=zn=ha=xt=nn=Fn=rn=Un=Ye=Ro=J.dragged=J.ghost=J.clone=J.active=null,Lo.forEach(function(e){e.checked=!0}),Lo.length=Dr=Cr=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":R&&(this._onDragOver(e),ig(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],a,t=this.el.children,n=0,o=t.length,i=this.options;no.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>o.bottom+i||e.clientX>n.right&&e.clientY>n.top}function lg(e,a,t,n,o,i,r,s){var c=n?e.clientY:e.clientX,l=n?t.height:t.width,p=n?t.top:t.left,u=n?t.bottom:t.right,d=!1;if(!r){if(s&&Uop+l*i/2:cu-Uo)return-Un}else if(c>p+l*(1-o)/2&&cu-l*i/2)?c>p+l/2?1:-1:0}function pg(e){return ka(R){ru(a,p.oldIndex,p.newIndex,p)}},s=()=>{const p=typeof e=="string"?o?.querySelector(e):Lh(e);!p||n!==void 0||(n=new J(p,{...r,...i}))},c=()=>{n?.destroy(),n=void 0},l=(p,u)=>{if(u!==void 0)n?.option(p,u);else return n?.option(p)};return zh(s),Rh(c),{stop:c,start:s,option:l}}function vg(e,a,t){const n=e.children[t];e.insertBefore(a,n)}function hg(e){e.parentNode&&e.parentNode.removeChild(e)}function ru(e,a,t,n=null){n!=null&&(hg(n.item),vg(n.from,n.item,a));const o=Ie(e),i=o?[...hi(e)]:hi(e);if(t>=0&&t{i.splice(t,0,r),o&&(e.value=i)})}}const gg=["disabled"],su=Me({__name:"TideButton",props:{variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1}},setup(e){return(a,t)=>(W(),te("button",{type:"button",class:wa(`tide-button tide-button--${a.variant} tide-button--${a.size}`),disabled:a.disabled},[Kt(a.$slots,"default")],10,gg))}}),xg={key:0,class:"tide-field-group__action"},bg=Me({__name:"TideFieldGroup",props:{repeatable:{type:Boolean,default:!1},repeatLabel:{default:"Add +"},sortable:{type:Boolean,default:!1},sortItems:{default:()=>[]}},emits:["add","sort"],setup(e,{emit:a}){const t=e,n=a,o=Es(t.sortItems),i=Pd("content");return t.sortable&&fg(i,o,{onUpdate:r=>{n("sort",r.newIndex,r.oldIndex)}}),(r,s)=>(W(),te("div",{class:wa({"tide-field-group":!0,"tide-field-group--repeatable":r.repeatable})},[Ee("div",{ref_key:"content",ref:i,class:"tide-field-group__content"},[Kt(r.$slots,"default",{},void 0,!0)],512),r.repeatable?(W(),te("div",xg,[xe(su,{onClick:s[0]||(s[0]=c=>r.$emit("add"))},{default:Pe(()=>[Tn(ra(r.repeatLabel),1)]),_:1})])):Ve("",!0)],2))}}),cu=tt(bg,[["__scopeId","data-v-787c34d8"]]),yg={class:wa({"tide-dropdown-list__autocomplete":!0,"tide-form__element":!0})},wg={key:0,class:"tide-dropdown-list__tags"},_g={class:"tide-dropdown-list__tag-text"},kg=["tabindex","aria-label","onClick"],Eg=["name","id","placeholder","aria-expanded","aria-controls","aria-activedescendant","disabled","required","onKeydown"],jg={key:1,class:"tide-dropdown-list__loading-icon",width:"18",height:"18",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Og=["id"],Ng={key:0,class:"tide-dropdown-list__menu-item tide-dropdown-list__menu-empty"},Sg=["id","aria-selected","aria-current","onClick"],Dg=Me({__name:"TideDropdown",props:{id:{},multiple:{type:Boolean,default:!0},options:{default:()=>[]},dynamic:{type:Boolean,default:!1},placeholder:{default:"Type to search..."},value:{},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minQuery:{default:0}},emits:["change","search"],setup(e,{emit:a}){const t=e,n=a,o=Ta(""),i=Ta(!1),r=Ta(null);ut(o,()=>{n("search",o.value),!o.value||!l.value.length?y(null):t.dynamic&&o.value.lengtht.loading,(N,H)=>{!N&&H&&t.dynamic&&O()});const s=ca(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),c=ca(()=>t.multiple||!s.value.length),l=ca(()=>t.dynamic||!o.value?t.options:t.options.filter(N=>N.label.toLowerCase().includes(o.value.toLowerCase()))),p=N=>r.value?N.value===r.value?.value:!1,u=N=>!!s.value.find(H=>H.value===N.value);function d(N){n("change",t.multiple?[...s.value,N]:N),t.multiple||(o.value="",L())}function f(N){n("change",t.multiple?s.value.filter(H=>H.value!==N.value):null)}function g(){!o.value&&s.value.length&&n("change",s.value.slice(0,-1))}function h(){r.value?j(r.value):o.value||O()}function j(N){N&&(s.value.find(H=>H.value===N.value)?f(N):d(N))}function y(N){r.value=N}function w(){return l.value.findIndex(N=>N.value===r.value?.value)}function _(){if(!l.value.length)return;const N=w();N0?y(l.value[N-1]):y(l.value[l.value.length-1])}function O(){t.dynamic&&o.value.length=t.minQuery)&&O()}const q=N=>{N.target?.closest(".tide-dropdown-list")||L()};return Ht(()=>window.addEventListener("pointerdown",q)),Oi(()=>window.removeEventListener("pointerdown",q)),(N,H)=>(W(),te("div",{class:wa({"tide-dropdown-list":!0,"tide-dropdown-list--single":!N.multiple})},[Ee("div",yg,[s.value.length?(W(),te("div",wg,[(W(!0),te(Te,null,lt(s.value,z=>(W(),te("span",{key:z.value,class:"tide-dropdown-list__tag"},[Ee("span",_g,ra(z.label),1),Ee("button",{type:"button",tabindex:N.multiple?-1:0,class:"tide-dropdown-list__tag-remove","aria-label":`Remove ${z.label}`,onClick:ae=>j(z)},H[1]||(H[1]=[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Ee("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ee("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)]),8,kg)]))),128))])):Ve("",!0),Td(Ee("input",{name:N.id,id:N.id,type:"text",class:wa({"tide-dropdown-list__input":!0,"tide-visually-hidden":!c.value}),autocomplete:"off",placeholder:N.placeholder,role:"combobox","aria-expanded":i.value,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i.value?`${N.id}-menu`:void 0,"aria-activedescendant":i.value&&r.value?`${N.id}-menu-${r.value}`:void 0,disabled:N.disabled,required:N.multiple?!1:N.required,"onUpdate:modelValue":H[0]||(H[0]=z=>o.value=z),onFocus:F,onKeydown:[Jt(L,["tab"]),Jt(L,["esc"]),Jt(Ki(M,["prevent"]),["up"]),Jt(Ki(_,["prevent"]),["down"]),Jt(g,["delete"]),Jt(Ki(h,["prevent"]),["enter"])]},null,42,Eg),[[gf,o.value]]),N.loading?(W(),te("svg",jg,H[2]||(H[2]=[Ee("path",{d:"M10,1V3a7,7,0,1,1-7,7H1a9,9,0,1,0,9-9Z"},null,-1)]))):Ve("",!0),i.value?(W(),te("ul",{key:2,id:`${N.id}-menu`,role:"listbox",tabindex:"-1","aria-multiselectable":"true",class:"tide-dropdown-list__menu"},[!l.value.length&&o.value&&!N.loading?(W(),te("li",Ng,H[3]||(H[3]=[Ee("span",null,"No matching results",-1)]))):Ve("",!0),(W(!0),te(Te,null,lt(l.value,z=>(W(),te("li",{key:z.value,id:`${N.id}-menu-${z.value}`,role:"option",class:"tide-dropdown-list__menu-item","aria-selected":u(z),"aria-current":p(z),onClick:ae=>j(z)},ra(z.label),9,Sg))),128))],8,Og)):Ve("",!0)])],2))}}),lu=tt(Dg,[["__scopeId","data-v-af4a810a"]]),Cg=Me({__name:"FiltersSectionTerms",props:{id:{},value:{default:()=>[]},source:{default:void 0}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=Ta([]),i=Ta(!0),r=Ta(!1),s=ca(()=>!t.value.length||!o.value?[]:o.value.filter(l=>t.value.includes(l.value))),c=l=>{n("change",l.map(p=>p.value))};return ut(()=>t.source,async()=>{t.source?(r.value=!0,o.value=await Ih(t.source)):o.value=[],r.value=!1,i.value=!1}),(l,p)=>(W(),We(lu,{id:l.id,value:s.value,options:o.value,disabled:i.value,loading:r.value,onChange:c},null,8,["id","value","options","disabled","loading"]))}}),Tg={key:0,class:"tide-field-group__sort","aria-label":"Drag to sort"},Ag={class:"tide-field-group-row__content"},Ig={key:1,class:"tide-field-group-row__action"},Pg=Me({__name:"TideFieldGroupRow",props:{sortable:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},removeLabel:{default:"Remove row"}},emits:["remove"],setup(e){return(a,t)=>(W(),te("div",{class:wa({"tide-field-group-row":!0,"tide-field-group-row--sortable":a.sortable,"tide-field-group-row--removeable":a.removeable})},[a.sortable?(W(),te("div",Tg,t[1]||(t[1]=[Ee("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Ee("path",{d:"M5.2 9l-3 3 3 3M9 5.2l3-3 3 3M15 18.9l-3 3-3-3M18.9 9l3 3-3 3M3.3 12h17.4M12 3.2v17.6"})],-1)]))):Ve("",!0),Ee("div",Ag,[Kt(a.$slots,"default",{},void 0,!0)]),a.removeable?(W(),te("div",Ig,[xe(su,{size:"medium",class:"tide-field-group-row__action-button",onClick:t[0]||(t[0]=n=>a.$emit("remove"))},{default:Pe(()=>t[2]||(t[2]=[Tn(" Remove ",-1)])),_:1,__:[2]})])):Ve("",!0)],2))}}),pu=tt(Pg,[["__scopeId","data-v-77f91b0d"]]),Vg=Me({__name:"FiltersSection",setup(e){const{form:a,getField:t,setField:n}=ft(),o=Ta([]),i=ca(()=>{const p=t("filters");return p.length?p:[]}),r=()=>{n("filters",[...i.value,{}])},s=p=>{n("filters",i.value.filter((u,d)=>d!==p))},c=p=>o.value.find(u=>u.value===p)?.machineName,l=ca(()=>{const p=t("contentType");return o.value.filter(u=>u.contentTypes.length?u.contentTypes.includes(p):!0)});return ut(()=>a.contentType,p=>{const u=i.value.filter(d=>d.taxonomy?o.value.some(f=>f.value===d.taxonomy&&(!f.contentTypes.length||f.contentTypes.includes(p))):!0);u.length!==i.value.length&&n("filters",u)}),Ht(async()=>{o.value=await Ah()}),(p,u)=>(W(),We(So,{title:"Refine Content",description:"This section allows you to filter content to only the relevant items."},{default:Pe(()=>[xe(cu,{repeatable:!0,"repeat-label":"Add filter",onAdd:r},{default:Pe(()=>[(W(!0),te(Te,null,lt(i.value,(d,f)=>(W(),We(pu,{key:`filters-${f}`,removeable:!0,onRemove:g=>s(f)},{default:Pe(()=>[xe(vt,{id:"filters",index:f,scope:"tax",label:"Filter by",description:"Select a taxonomy term to filter by"},{default:Pe(({id:g,value:h,update:j})=>[xe(Jc,{id:g,value:h?.taxonomy,options:l.value,onChange:y=>j({taxonomy:y},f)},null,8,["id","value","options","onChange"])]),_:2},1032,["index"]),xe(vt,{id:"filters",index:f,scope:"terms",label:"Filter terms",description:"Show content with the selected terms"},{default:Pe(({id:g,value:h,update:j})=>[xe(Cg,{id:g,value:h?.terms,source:c(h.taxonomy),onChange:y=>j({taxonomy:h.taxonomy,terms:y},f)},null,8,["id","value","source","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1})]),_:1}))}}),uu=(e="{}")=>{let a={};if(!e)return a;try{a=JSON.parse(e)}catch(t){console.error("Error parsing JSON value:",t)}return a},$g=e=>{let a="{}";try{a=JSON.stringify(e)}catch(t){console.error("Error stringify-ing value:",t)}return a},Rg=(e,a=300)=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>e(...n),a)}},Mg=Me({__name:"ManualSectionItem",props:{id:{},value:{},source:{default:void 0}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,{getConfig:o,setConfig:i}=ft(),r=Ta([]),s=Ta(!1),c=ca(()=>{const u=o("contentMap");return t.value&&Object.keys(u).length?{label:u[t.value]||"Not found",value:t.value}:null}),l=u=>{const d=typeof u=="object"&&u!==null;d&&i("contentMap",{[u.value]:u.label},!0),n("change",d?u.value:"")},p=Rg(async u=>{u.length>=2?(s.value=!0,r.value=await Vh(u)):r.value=[],s.value=!1});return(u,d)=>(W(),We(lu,{id:u.id,value:c.value,options:r.value,loading:s.value,dynamic:!0,multiple:!1,required:!0,"min-query":2,onChange:l,onSearch:Ot(p)},null,8,["id","value","options","loading","onSearch"]))}}),Fg=Me({__name:"ManualSection",setup(e){const{getField:a,setField:t}=ft(),n=ca(()=>a("manualItems")||[""]),o=()=>{t("manualItems",[...n.value,""])},i=s=>{t("manualItems",n.value.filter((c,l)=>l!==s))},r=(s,c)=>{const l=[...n.value];ru(l,c,s),t("manualItems",l)};return(s,c)=>(W(),We(So,{title:"Select content",description:"Search for individual content items, add them to the list, then drag to reorder or remove as needed.",required:!0},{default:Pe(()=>[xe(cu,{repeatable:!0,"repeat-label":"Add content",sortable:!0,"sort-items":n.value,onAdd:o,onSort:r},{default:Pe(()=>[(W(!0),te(Te,null,lt(n.value,(l,p)=>(W(),We(pu,{key:`manual-${l}-${p}`,removeable:!0,sortable:!0,onRemove:u=>i(p)},{default:Pe(()=>[xe(vt,{id:"manualItems",index:p,label:"Search content","hide-label":!0},{default:Pe(({id:u,value:d,update:f})=>[xe(Mg,{id:u,value:d,onChange:g=>f(g,p)},null,8,["id","value","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1},8,["sort-items"])]),_:1}))}}),zg=["name","type","id","min","max","value","required"],Ug=Me({__name:"TideInput",props:{id:{},type:{default:"text"},value:{default:void 0},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=i=>{let r=i.target.value;t.type==="number"&&(r=Number(r)),n("change",r)};return(i,r)=>(W(),te("input",{name:i.id,type:i.type,id:i.id,min:i.min,max:i.max,value:i.value,required:i.required,class:"tide-input tide-form__element",onInput:o},null,40,zg))}}),Lg={class:"tide-radio__label"},qg=["name","value","checked","required","onChange"],Bg=Me({__name:"TideRadio",props:{id:{},options:{},value:{},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e){return(a,t)=>(W(),te("div",{class:wa(`tide-radio tide-radio--${a.display}`)},[(W(!0),te(Te,null,lt(a.options,n=>(W(),te("label",Lg,[Ee("input",{type:"radio",name:a.id,class:"tide-radio__input",value:n.value,checked:n.value===a.value,required:a.required,onChange:o=>a.$emit("change",n.value)},null,40,qg),Ee("span",null,ra(n.label),1)]))),256))],2))}}),Wg=tt(Bg,[["__scopeId","data-v-df50077b"]]),Hg={class:"tide-checkbox__label"},Kg=["name","value","checked","required","onChange"],Gg=Me({__name:"TideCheckbox",props:{id:{},options:{},value:{type:[String,Boolean]},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=(i,r)=>{const s=t.options.length>1;n("change",s?i:!r)};return(i,r)=>(W(),te("div",{class:wa(`tide-checkbox tide-checkbox--${i.display}`)},[(W(!0),te(Te,null,lt(i.options,s=>(W(),te("label",Hg,[Ee("input",{type:"checkbox",name:i.id,class:"tide-checkbox__input",value:s.value,checked:s.value===i.value,required:i.required,onChange:c=>o(s.value,i.value)},null,40,Kg),Ee("span",null,ra(s.label),1)]))),256))],2))}}),Yg=tt(Gg,[["__scopeId","data-v-3a00e669"]]),Qg=Me({__name:"DisplaySection",setup(e){const{getField:a}=ft();return(t,n)=>(W(),We(So,{title:"Display Options"},{default:Pe(()=>[xe(vt,{id:"displayType",type:"legend",label:"Display type",required:!0,description:"How would you like to display the content?"},{default:Pe(({id:o,value:i,update:r})=>[xe(Wg,{id:o,display:"inline",options:[{value:"grid",label:"Grid"},{value:"list",label:"List"},{value:"carousel",label:"Carousel"}],value:i,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1}),Ot(a)("displayType")==="grid"||Ot(a)("displayType")==="carousel"?(W(),We(vt,{key:0,id:"showImage",type:"legend",label:"Show images"},{default:Pe(({id:o,value:i,update:r})=>[xe(Yg,{id:o,options:[{value:!0,label:"Would you like to display card images?"}],value:i,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Ve("",!0),Ot(a)("source")==="auto"?(W(),We(vt,{key:1,id:"displayNumber",label:"Number of items",description:"How many items would you like display?",required:!0},{default:Pe(({id:o,value:i,update:r})=>[xe(Ug,{id:o,type:"number",value:i,min:1,max:100,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Ve("",!0)]),_:1}))}}),Xg=Me({__name:"ContentForm",setup(e){const{getField:a}=ft(),t=ca(()=>a("source")&&a("contentType")||a("source")==="manual"),n=ca(()=>a("source")==="manual"),o=ca(()=>a("source")==="auto");return(i,r)=>(W(),We(Pf,null,{default:Pe(()=>[xe($h),t.value?(W(),te(Te,{key:0},[n.value?(W(),We(Fg,{key:0})):Ve("",!0),o.value?(W(),We(Vg,{key:1})):Ve("",!0),xe(Qg)],64)):Ve("",!0)]),_:1}))}}),Jg={key:0,class:"tide-collection"},Zg=Me({__name:"App",props:{index:{},form:{},config:{},baseUrl:{},update:{type:Function}},setup(e){const a=e,t=Ta(!1),{form:n}=ft(a.index,{form:a.form,config:a.config});return Ht(()=>{Th(a.baseUrl),t.value=!0}),ut(n,o=>{a.update(o)},{deep:!0}),(o,i)=>t.value?(W(),te("div",Jg,[xe(Xg)])):Ve("",!0)}});function ex(e,a={}){kf(Zg,a).mount(e)}(e=>{Drupal.behaviors.contentCollection={attach:function(a){once("content-collection-init",".content-collection-app",a).forEach(function(t){const n=t.closest(".field--type-content-collection"),o=t.getAttribute("data-index")||"0",i=t.getAttribute("data-config")||"{}",r=n?.querySelector(`#content-collection-value-${o}`);r&&ex(t,{index:o,form:uu(r.value),config:uu(i),update:s=>r.value=$g(s),baseUrl:"http://content-sdp.docker.internal/"})})}}})(jQuery)})(); -//# sourceMappingURL=main.js.map + */function Rp(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,n)}return t}function Wa(e){for(var a=1;a=0)&&(t[o]=e[o]);return t}function Wh(e,a){if(e==null)return{};var t=Bh(e,a),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var Hh="1.15.6";function it(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var rt=it(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vn=it(/Edge/i),Mp=it(/firefox/i),$n=it(/safari/i)&&!it(/chrome/i)&&!it(/android/i),jr=it(/iP(ad|od|hone)/i),Fp=it(/chrome/i)&&it(/android/i),zp={capture:!1,passive:!1};function se(e,a,t){e.addEventListener(a,t,!rt&&zp)}function ie(e,a,t){e.removeEventListener(a,t,!rt&&zp)}function Vo(e,a){if(a){if(a[0]===">"&&(a=a.substring(1)),e)try{if(e.matches)return e.matches(a);if(e.msMatchesSelector)return e.msMatchesSelector(a);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(a)}catch{return!1}return!1}}function Up(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ia(e,a,t,n){if(e){t=t||document;do{if(a!=null&&(a[0]===">"?e.parentNode===t&&Vo(e,a):Vo(e,a))||n&&e===t)return e;if(e===t)break}while(e=Up(e))}return null}var Lp=/\s+/g;function va(e,a,t){if(e&&a)if(e.classList)e.classList[t?"add":"remove"](a);else{var n=(" "+e.className+" ").replace(Lp," ").replace(" "+a+" "," ");e.className=(n+(t?" "+a:"")).replace(Lp," ")}}function X(e,a,t){var n=e&&e.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),a===void 0?t:t[a];!(a in n)&&a.indexOf("webkit")===-1&&(a="-webkit-"+a),n[a]=t+(typeof t=="string"?"":"px")}}function en(e,a){var t="";if(typeof e=="string")t=e;else do{var n=X(e,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!a&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function qp(e,a,t){if(e){var n=e.getElementsByTagName(a),o=0,i=n.length;if(t)for(;o=i,!r)return n;if(n===Ha())break;n=ht(n,!1)}return!1}function an(e,a,t,n){for(var o=0,i=0,r=e.children;i2&&arguments[2]!==void 0?arguments[2]:{},n=t.evt,o=Wh(t,eg);Mn.pluginEvent.bind(J)(e,a,Wa({dragEl:R,parentEl:Ae,ghostEl:ee,rootEl:De,nextEl:Pt,lastDownEl:$o,cloneEl:Ce,cloneHidden:gt,dragStarted:zn,putSortable:Ye,activeSortable:J.active,originalEvent:n,oldIndex:nn,oldDraggableIndex:Fn,newIndex:ha,newDraggableIndex:xt,hideGhostForTarget:tu,unhideGhostForTarget:nu,cloneNowHidden:function(){gt=!0},cloneNowShown:function(){gt=!1},dispatchSortableEvent:function(i){na({sortable:a,name:i,originalEvent:n})}},o))};function na(e){Zh(Wa({putSortable:Ye,cloneEl:Ce,targetEl:R,rootEl:De,oldIndex:nn,oldDraggableIndex:Fn,newIndex:ha,newDraggableIndex:xt},e))}var R,Ae,ee,De,Pt,$o,Ce,gt,nn,ha,Fn,xt,Ro,Ye,on=!1,Mo=!1,Fo=[],Vt,Pa,Dr,Cr,Qp,Xp,zn,rn,Un,Ln=!1,zo=!1,Uo,Je,Tr=[],Ar=!1,Lo=[],qo=typeof document<"u",Bo=jr,Jp=Vn||rt?"cssFloat":"float",ag=qo&&!Fp&&!jr&&"draggable"in document.createElement("div"),Zp=function(){if(qo){if(rt)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),eu=function(e,a){var t=X(e),n=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),o=an(e,0,a),i=an(e,1,a),r=o&&X(o),s=i&&X(i),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Fe(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Fe(i).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return i&&(s.clear==="both"||s.clear===p)?"vertical":"horizontal"}return o&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=n&&t[Jp]==="none"||i&&t[Jp]==="none"&&c+l>n)?"vertical":"horizontal"},tg=function(e,a,t){var n=t?e.left:e.top,o=t?e.right:e.bottom,i=t?e.width:e.height,r=t?a.left:a.top,s=t?a.right:a.bottom,c=t?a.width:a.height;return n===r||o===s||n+i/2===r+c/2},ng=function(e,a){var t;return Fo.some(function(n){var o=n[la].options.emptyInsertThreshold;if(!(!o||Or(n))){var i=Fe(n),r=e>=i.left-o&&e<=i.right+o,s=a>=i.top-o&&a<=i.bottom+o;if(r&&s)return t=n}}),t},au=function(e){function a(o,i){return function(r,s,c,l){var p=r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name;if(o==null&&(i||p))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return a(o(r,s,c,l),i)(r,s,c,l);var u=(i?r:s).options.group.name;return o===!0||typeof o=="string"&&o===u||o.join&&o.indexOf(u)>-1}}var t={},n=e.group;(!n||Po(n)!="object")&&(n={name:n}),t.name=n.name,t.checkPull=a(n.pull,!0),t.checkPut=a(n.put),t.revertClone=n.revertClone,e.group=t},tu=function(){!Zp&&ee&&X(ee,"display","none")},nu=function(){!Zp&&ee&&X(ee,"display","")};qo&&!Fp&&document.addEventListener("click",function(e){if(Mo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Mo=!1,!1},!0);var $t=function(e){if(R){e=e.touches?e.touches[0]:e;var a=ng(e.clientX,e.clientY);if(a){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.target=t.rootEl=a,t.preventDefault=void 0,t.stopPropagation=void 0,a[la]._onDragOver(t)}}},og=function(e){R&&R.parentNode[la]._isOutsideThisEl(e.target)};function J(e,a){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=a=ot({},a),e[la]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return eu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,r){i.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:J.supportPointer!==!1&&"PointerEvent"in window&&(!$n||jr),emptyInsertThreshold:5};Mn.initializePlugins(this,e,t);for(var n in t)!(n in a)&&(a[n]=t[n]);au(a);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=a.forceFallback?!1:ag,this.nativeDraggable&&(this.options.touchStartThreshold=1),a.supportPointer?se(e,"pointerdown",this._onTapStart):(se(e,"mousedown",this._onTapStart),se(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(e,"dragover",this),se(e,"dragenter",this)),Fo.push(this.el),a.store&&a.store.get&&this.sort(a.store.get(this)||[]),ot(this,Qh())}J.prototype={constructor:J,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(rn=null)},_getDirection:function(e,a){return typeof this.options.direction=="function"?this.options.direction.call(this,e,a,R):this.options.direction},_onTapStart:function(e){if(e.cancelable){var a=this,t=this.el,n=this.options,o=n.preventOnFilter,i=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(r||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=n.filter;if(dg(t),!R&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&$n&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Ia(s,n.draggable,t,!1),!(s&&s.animated)&&$o!==s)){if(nn=ka(s),Fn=ka(s,n.draggable),typeof l=="function"){if(l.call(this,e,s,this)){na({sortable:a,rootEl:c,name:"filter",targetEl:s,toEl:t,fromEl:t}),pa("filter",a,{evt:e}),o&&e.preventDefault();return}}else if(l&&(l=l.split(",").some(function(p){if(p=Ia(c,p.trim(),t,!1),p)return na({sortable:a,rootEl:p,name:"filter",targetEl:s,fromEl:t,toEl:t}),pa("filter",a,{evt:e}),!0}),l)){o&&e.preventDefault();return}n.handle&&!Ia(c,n.handle,t,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,a,t){var n=this,o=n.el,i=n.options,r=o.ownerDocument,s;if(t&&!R&&t.parentNode===o){var c=Fe(t);if(De=o,R=t,Ae=R.parentNode,Pt=R.nextSibling,$o=t,Ro=i.group,J.dragged=R,Vt={target:R,clientX:(a||e).clientX,clientY:(a||e).clientY},Qp=Vt.clientX-c.left,Xp=Vt.clientY-c.top,this._lastX=(a||e).clientX,this._lastY=(a||e).clientY,R.style["will-change"]="all",s=function(){if(pa("delayEnded",n,{evt:e}),J.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!Mp&&n.nativeDraggable&&(R.draggable=!0),n._triggerDragStart(e,a),na({sortable:n,name:"choose",originalEvent:e}),va(R,i.chosenClass,!0)},i.ignore.split(",").forEach(function(l){qp(R,l.trim(),Ir)}),se(r,"dragover",$t),se(r,"mousemove",$t),se(r,"touchmove",$t),i.supportPointer?(se(r,"pointerup",n._onDrop),!this.nativeDraggable&&se(r,"pointercancel",n._onDrop)):(se(r,"mouseup",n._onDrop),se(r,"touchend",n._onDrop),se(r,"touchcancel",n._onDrop)),Mp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),pa("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Vn||rt))){if(J.eventCanceled){this._onDrop();return}i.supportPointer?(se(r,"pointerup",n._disableDelayedDrag),se(r,"pointercancel",n._disableDelayedDrag)):(se(r,"mouseup",n._disableDelayedDrag),se(r,"touchend",n._disableDelayedDrag),se(r,"touchcancel",n._disableDelayedDrag)),se(r,"mousemove",n._delayedDragTouchMoveHandler),se(r,"touchmove",n._delayedDragTouchMoveHandler),i.supportPointer&&se(r,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(s,i.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var a=e.touches?e.touches[0]:e;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&Ir(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ie(e,"mouseup",this._disableDelayedDrag),ie(e,"touchend",this._disableDelayedDrag),ie(e,"touchcancel",this._disableDelayedDrag),ie(e,"pointerup",this._disableDelayedDrag),ie(e,"pointercancel",this._disableDelayedDrag),ie(e,"mousemove",this._delayedDragTouchMoveHandler),ie(e,"touchmove",this._delayedDragTouchMoveHandler),ie(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,a){a=a||e.pointerType=="touch"&&e,!this.nativeDraggable||a?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):a?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(R,"dragend",this),se(De,"dragstart",this._onDragStart));try{document.selection?Ho(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,a){if(on=!1,De&&R){pa("dragStarted",this,{evt:a}),this.nativeDraggable&&se(document,"dragover",og);var t=this.options;!e&&va(R,t.dragClass,!1),va(R,t.ghostClass,!0),J.active=this,e&&this._appendGhost(),na({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Pa){this._lastX=Pa.clientX,this._lastY=Pa.clientY,tu();for(var e=document.elementFromPoint(Pa.clientX,Pa.clientY),a=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Pa.clientX,Pa.clientY),e!==a);)a=e;if(R.parentNode[la]._isOutsideThisEl(e),a)do{if(a[la]){var t=void 0;if(t=a[la]._onDragOver({clientX:Pa.clientX,clientY:Pa.clientY,target:e,rootEl:a}),t&&!this.options.dragoverBubble)break}e=a}while(a=Up(a));nu()}},_onTouchMove:function(e){if(Vt){var a=this.options,t=a.fallbackTolerance,n=a.fallbackOffset,o=e.touches?e.touches[0]:e,i=ee&&en(ee,!0),r=ee&&i&&i.a,s=ee&&i&&i.d,c=Bo&&Je&&Wp(Je),l=(o.clientX-Vt.clientX+n.x)/(r||1)+(c?c[0]-Tr[0]:0)/(r||1),p=(o.clientY-Vt.clientY+n.y)/(s||1)+(c?c[1]-Tr[1]:0)/(s||1);if(!J.active&&!on){if(t&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))=0&&(na({rootEl:Ae,name:"add",toEl:Ae,fromEl:De,originalEvent:e}),na({sortable:this,name:"remove",toEl:Ae,originalEvent:e}),na({rootEl:Ae,name:"sort",toEl:Ae,fromEl:De,originalEvent:e}),na({sortable:this,name:"sort",toEl:Ae,originalEvent:e})),Ye&&Ye.save()):ha!==nn&&ha>=0&&(na({sortable:this,name:"update",toEl:Ae,originalEvent:e}),na({sortable:this,name:"sort",toEl:Ae,originalEvent:e})),J.active&&((ha==null||ha===-1)&&(ha=nn,xt=Fn),na({sortable:this,name:"end",toEl:Ae,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){pa("nulling",this),De=R=Ae=ee=Pt=Ce=$o=gt=Vt=Pa=zn=ha=xt=nn=Fn=rn=Un=Ye=Ro=J.dragged=J.ghost=J.clone=J.active=null,Lo.forEach(function(e){e.checked=!0}),Lo.length=Dr=Cr=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":R&&(this._onDragOver(e),ig(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],a,t=this.el.children,n=0,o=t.length,i=this.options;no.right+i||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>o.bottom+i||e.clientX>n.right&&e.clientY>n.top}function lg(e,a,t,n,o,i,r,s){var c=n?e.clientY:e.clientX,l=n?t.height:t.width,p=n?t.top:t.left,u=n?t.bottom:t.right,d=!1;if(!r){if(s&&Uop+l*i/2:cu-Uo)return-Un}else if(c>p+l*(1-o)/2&&cu-l*i/2)?c>p+l/2?1:-1:0}function pg(e){return ka(R){ru(a,p.oldIndex,p.newIndex,p)}},s=()=>{const p=typeof e=="string"?o?.querySelector(e):Lh(e);!p||n!==void 0||(n=new J(p,{...r,...i}))},c=()=>{n?.destroy(),n=void 0},l=(p,u)=>{if(u!==void 0)n?.option(p,u);else return n?.option(p)};return zh(s),Rh(c),{stop:c,start:s,option:l}}function vg(e,a,t){const n=e.children[t];e.insertBefore(a,n)}function hg(e){e.parentNode&&e.parentNode.removeChild(e)}function ru(e,a,t,n=null){n!=null&&(hg(n.item),vg(n.from,n.item,a));const o=Ie(e),i=o?[...hi(e)]:hi(e);if(t>=0&&t{i.splice(t,0,r),o&&(e.value=i)})}}const gg=["disabled"],su=Me({__name:"TideButton",props:{variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1}},setup(e){return(a,t)=>(W(),te("button",{type:"button",class:wa(`tide-button tide-button--${a.variant} tide-button--${a.size}`),disabled:a.disabled},[Kt(a.$slots,"default")],10,gg))}}),xg={key:0,class:"tide-field-group__action"},bg=Me({__name:"TideFieldGroup",props:{repeatable:{type:Boolean,default:!1},repeatLabel:{default:"Add +"},sortable:{type:Boolean,default:!1},sortItems:{default:()=>[]}},emits:["add","sort"],setup(e,{emit:a}){const t=e,n=a,o=Es(t.sortItems),i=Pd("content");return t.sortable&&fg(i,o,{onUpdate:r=>{n("sort",r.newIndex,r.oldIndex)}}),(r,s)=>(W(),te("div",{class:wa({"tide-field-group":!0,"tide-field-group--repeatable":r.repeatable})},[Ee("div",{ref_key:"content",ref:i,class:"tide-field-group__content"},[Kt(r.$slots,"default",{},void 0,!0)],512),r.repeatable?(W(),te("div",xg,[xe(su,{onClick:s[0]||(s[0]=c=>r.$emit("add"))},{default:Pe(()=>[Tn(ra(r.repeatLabel),1)]),_:1})])):Ve("",!0)],2))}}),cu=tt(bg,[["__scopeId","data-v-787c34d8"]]),yg={class:wa({"tide-dropdown-list__autocomplete":!0,"tide-form__element":!0})},wg={key:0,class:"tide-dropdown-list__tags"},_g={class:"tide-dropdown-list__tag-text"},kg=["tabindex","aria-label","onClick"],Eg=["name","id","placeholder","aria-expanded","aria-controls","aria-activedescendant","disabled","required","onKeydown"],jg={key:1,class:"tide-dropdown-list__loading-icon",width:"18",height:"18",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},Og=["id"],Ng={key:0,class:"tide-dropdown-list__menu-item tide-dropdown-list__menu-empty"},Sg=["id","aria-selected","aria-current","onClick"],Dg=Me({__name:"TideDropdown",props:{id:{},multiple:{type:Boolean,default:!0},options:{default:()=>[]},dynamic:{type:Boolean,default:!1},placeholder:{default:"Type to search..."},value:{},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minQuery:{default:0}},emits:["change","search"],setup(e,{emit:a}){const t=e,n=a,o=Ta(""),i=Ta(!1),r=Ta(null);ut(o,()=>{n("search",o.value),!o.value||!l.value.length?y(null):t.dynamic&&o.value.lengtht.loading,(N,H)=>{!N&&H&&t.dynamic&&O()});const s=ca(()=>t.value?Array.isArray(t.value)?t.value:[t.value]:[]),c=ca(()=>t.multiple||!s.value.length),l=ca(()=>t.dynamic||!o.value?t.options:t.options.filter(N=>N.label.toLowerCase().includes(o.value.toLowerCase()))),p=N=>r.value?N.value===r.value?.value:!1,u=N=>!!s.value.find(H=>H.value===N.value);function d(N){n("change",t.multiple?[...s.value,N]:N),t.multiple||(o.value="",L())}function f(N){n("change",t.multiple?s.value.filter(H=>H.value!==N.value):null)}function g(){!o.value&&s.value.length&&n("change",s.value.slice(0,-1))}function h(){r.value?j(r.value):o.value||O()}function j(N){N&&(s.value.find(H=>H.value===N.value)?f(N):d(N))}function y(N){r.value=N}function w(){return l.value.findIndex(N=>N.value===r.value?.value)}function _(){if(!l.value.length)return;const N=w();N0?y(l.value[N-1]):y(l.value[l.value.length-1])}function O(){t.dynamic&&o.value.length=t.minQuery)&&O()}const q=N=>{N.target?.closest(".tide-dropdown-list")||L()};return Ht(()=>window.addEventListener("pointerdown",q)),Oi(()=>window.removeEventListener("pointerdown",q)),(N,H)=>(W(),te("div",{class:wa({"tide-dropdown-list":!0,"tide-dropdown-list--single":!N.multiple})},[Ee("div",yg,[s.value.length?(W(),te("div",wg,[(W(!0),te(Te,null,lt(s.value,z=>(W(),te("span",{key:z.value,class:"tide-dropdown-list__tag"},[Ee("span",_g,ra(z.label),1),Ee("button",{type:"button",tabindex:N.multiple?-1:0,class:"tide-dropdown-list__tag-remove","aria-label":`Remove ${z.label}`,onClick:ae=>j(z)},H[1]||(H[1]=[Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Ee("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Ee("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)]),8,kg)]))),128))])):Ve("",!0),Td(Ee("input",{name:N.id,id:N.id,type:"text",class:wa({"tide-dropdown-list__input":!0,"tide-visually-hidden":!c.value}),autocomplete:"off",placeholder:N.placeholder,role:"combobox","aria-expanded":i.value,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":i.value?`${N.id}-menu`:void 0,"aria-activedescendant":i.value&&r.value?`${N.id}-menu-${r.value}`:void 0,disabled:N.disabled,required:N.multiple?!1:N.required,"onUpdate:modelValue":H[0]||(H[0]=z=>o.value=z),onFocus:F,onKeydown:[Jt(L,["tab"]),Jt(L,["esc"]),Jt(Ki(M,["prevent"]),["up"]),Jt(Ki(_,["prevent"]),["down"]),Jt(g,["delete"]),Jt(Ki(h,["prevent"]),["enter"])]},null,42,Eg),[[gf,o.value]]),N.loading?(W(),te("svg",jg,H[2]||(H[2]=[Ee("path",{d:"M10,1V3a7,7,0,1,1-7,7H1a9,9,0,1,0,9-9Z"},null,-1)]))):Ve("",!0),i.value?(W(),te("ul",{key:2,id:`${N.id}-menu`,role:"listbox",tabindex:"-1","aria-multiselectable":"true",class:"tide-dropdown-list__menu"},[!l.value.length&&o.value&&!N.loading?(W(),te("li",Ng,H[3]||(H[3]=[Ee("span",null,"No matching results",-1)]))):Ve("",!0),(W(!0),te(Te,null,lt(l.value,z=>(W(),te("li",{key:z.value,id:`${N.id}-menu-${z.value}`,role:"option",class:"tide-dropdown-list__menu-item","aria-selected":u(z),"aria-current":p(z),onClick:ae=>j(z)},ra(z.label),9,Sg))),128))],8,Og)):Ve("",!0)])],2))}}),lu=tt(Dg,[["__scopeId","data-v-af4a810a"]]),Cg=Me({__name:"FiltersSectionTerms",props:{id:{},value:{default:()=>[]},source:{default:void 0}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=Ta([]),i=Ta(!0),r=Ta(!1),s=ca(()=>!t.value.length||!o.value?[]:o.value.filter(l=>t.value.includes(l.value))),c=l=>{n("change",l.map(p=>p.value))};return ut(()=>t.source,async()=>{t.source?(r.value=!0,o.value=await Ih(t.source)):o.value=[],r.value=!1,i.value=!1}),(l,p)=>(W(),We(lu,{id:l.id,value:s.value,options:o.value,disabled:i.value,loading:r.value,onChange:c},null,8,["id","value","options","disabled","loading"]))}}),Tg={key:0,class:"tide-field-group__sort","aria-label":"Drag to sort"},Ag={class:"tide-field-group-row__content"},Ig={key:1,class:"tide-field-group-row__action"},Pg=Me({__name:"TideFieldGroupRow",props:{sortable:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},removeLabel:{default:"Remove row"}},emits:["remove"],setup(e){return(a,t)=>(W(),te("div",{class:wa({"tide-field-group-row":!0,"tide-field-group-row--sortable":a.sortable,"tide-field-group-row--removeable":a.removeable})},[a.sortable?(W(),te("div",Tg,t[1]||(t[1]=[Ee("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[Ee("path",{d:"M5.2 9l-3 3 3 3M9 5.2l3-3 3 3M15 18.9l-3 3-3-3M18.9 9l3 3-3 3M3.3 12h17.4M12 3.2v17.6"})],-1)]))):Ve("",!0),Ee("div",Ag,[Kt(a.$slots,"default",{},void 0,!0)]),a.removeable?(W(),te("div",Ig,[xe(su,{size:"medium",class:"tide-field-group-row__action-button",onClick:t[0]||(t[0]=n=>a.$emit("remove"))},{default:Pe(()=>t[2]||(t[2]=[Tn(" Remove ",-1)])),_:1,__:[2]})])):Ve("",!0)],2))}}),pu=tt(Pg,[["__scopeId","data-v-77f91b0d"]]),Vg=Me({__name:"FiltersSection",setup(e){const{form:a,getField:t,setField:n}=ft(),o=Ta([]),i=ca(()=>{const p=t("filters");return p.length?p:[]}),r=()=>{n("filters",[...i.value,{}])},s=p=>{n("filters",i.value.filter((u,d)=>d!==p))},c=p=>o.value.find(u=>u.value===p)?.machineName,l=ca(()=>{const p=t("contentType");return o.value.filter(u=>u.contentTypes.length?u.contentTypes.includes(p):!0)});return ut(()=>a.contentType,p=>{const u=i.value.filter(d=>d.taxonomy?o.value.some(f=>f.value===d.taxonomy&&(!f.contentTypes.length||f.contentTypes.includes(p))):!0);u.length!==i.value.length&&n("filters",u)}),Ht(async()=>{o.value=await Ah()}),(p,u)=>(W(),We(So,{title:"Refine Content",description:"This section allows you to filter content to only the relevant items."},{default:Pe(()=>[xe(cu,{repeatable:!0,"repeat-label":"Add filter",onAdd:r},{default:Pe(()=>[(W(!0),te(Te,null,lt(i.value,(d,f)=>(W(),We(pu,{key:`filters-${f}`,removeable:!0,onRemove:g=>s(f)},{default:Pe(()=>[xe(vt,{id:"filters",index:f,scope:"tax",label:"Filter by",description:"Select a taxonomy term to filter by"},{default:Pe(({id:g,value:h,update:j})=>[xe(Jc,{id:g,value:h?.taxonomy,options:l.value,onChange:y=>j({taxonomy:y},f)},null,8,["id","value","options","onChange"])]),_:2},1032,["index"]),xe(vt,{id:"filters",index:f,scope:"terms",label:"Filter terms",description:"Show content with the selected terms"},{default:Pe(({id:g,value:h,update:j})=>[xe(Cg,{id:g,value:h?.terms,source:c(h.taxonomy),onChange:y=>j({taxonomy:h.taxonomy,terms:y},f)},null,8,["id","value","source","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1})]),_:1}))}}),uu=(e="{}")=>{let a={};if(!e)return a;try{a=JSON.parse(e)}catch(t){console.error("Error parsing JSON value:",t)}return a},$g=e=>{let a="{}";try{a=JSON.stringify(e)}catch(t){console.error("Error stringify-ing value:",t)}return a},Rg=(e,a=300)=>{let t;return(...n)=>{clearTimeout(t),t=setTimeout(()=>e(...n),a)}},Mg=Me({__name:"ManualSectionItem",props:{id:{},value:{},source:{default:void 0}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,{getConfig:o,setConfig:i}=ft(),r=Ta([]),s=Ta(!1),c=ca(()=>{const u=o("contentMap");return t.value&&Object.keys(u).length?{label:u[t.value]||"Not found",value:t.value}:null}),l=u=>{const d=typeof u=="object"&&u!==null;d&&i("contentMap",{[u.value]:u.label},!0),n("change",d?u.value:"")},p=Rg(async u=>{u.length>=2?(s.value=!0,r.value=await Vh(u)):r.value=[],s.value=!1});return(u,d)=>(W(),We(lu,{id:u.id,value:c.value,options:r.value,loading:s.value,dynamic:!0,multiple:!1,required:!0,"min-query":2,onChange:l,onSearch:Ot(p)},null,8,["id","value","options","loading","onSearch"]))}}),Fg=Me({__name:"ManualSection",setup(e){const{getField:a,setField:t}=ft(),n=ca(()=>a("manualItems")||[""]),o=()=>{t("manualItems",[...n.value,""])},i=s=>{t("manualItems",n.value.filter((c,l)=>l!==s))},r=(s,c)=>{const l=[...n.value];ru(l,c,s),t("manualItems",l)};return(s,c)=>(W(),We(So,{title:"Select content",description:"Search for individual content items, add them to the list, then drag to reorder or remove as needed.",required:!0},{default:Pe(()=>[xe(cu,{repeatable:!0,"repeat-label":"Add content",sortable:!0,"sort-items":n.value,onAdd:o,onSort:r},{default:Pe(()=>[(W(!0),te(Te,null,lt(n.value,(l,p)=>(W(),We(pu,{key:`manual-${l}-${p}`,removeable:!0,sortable:!0,onRemove:u=>i(p)},{default:Pe(()=>[xe(vt,{id:"manualItems",index:p,label:"Search content","hide-label":!0},{default:Pe(({id:u,value:d,update:f})=>[xe(Mg,{id:u,value:d,onChange:g=>f(g,p)},null,8,["id","value","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1},8,["sort-items"])]),_:1}))}}),zg=["name","type","id","min","max","value","required"],Ug=Me({__name:"TideInput",props:{id:{},type:{default:"text"},value:{default:void 0},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=i=>{let r=i.target.value;t.type==="number"&&(r=Number(r)),n("change",r)};return(i,r)=>(W(),te("input",{name:i.id,type:i.type,id:i.id,min:i.min,max:i.max,value:i.value,required:i.required,class:"tide-input tide-form__element",onInput:o},null,40,zg))}}),Lg={class:"tide-radio__label"},qg=["name","value","checked","required","onChange"],Bg=Me({__name:"TideRadio",props:{id:{},options:{},value:{},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e){return(a,t)=>(W(),te("div",{class:wa(`tide-radio tide-radio--${a.display}`)},[(W(!0),te(Te,null,lt(a.options,n=>(W(),te("label",Lg,[Ee("input",{type:"radio",name:a.id,class:"tide-radio__input",value:n.value,checked:n.value===a.value,required:a.required,onChange:o=>a.$emit("change",n.value)},null,40,qg),Ee("span",null,ra(n.label),1)]))),256))],2))}}),Wg=tt(Bg,[["__scopeId","data-v-df50077b"]]),Hg={class:"tide-checkbox__label"},Kg=["name","value","checked","required","onChange"],Gg=Me({__name:"TideCheckbox",props:{id:{},options:{},value:{type:[String,Boolean]},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e,{emit:a}){const t=e,n=a,o=(i,r)=>{const s=t.options.length>1;n("change",s?i:!r)};return(i,r)=>(W(),te("div",{class:wa(`tide-checkbox tide-checkbox--${i.display}`)},[(W(!0),te(Te,null,lt(i.options,s=>(W(),te("label",Hg,[Ee("input",{type:"checkbox",name:i.id,class:"tide-checkbox__input",value:s.value,checked:s.value===i.value,required:i.required,onChange:c=>o(s.value,i.value)},null,40,Kg),Ee("span",null,ra(s.label),1)]))),256))],2))}}),Yg=tt(Gg,[["__scopeId","data-v-3a00e669"]]),Qg=Me({__name:"DisplaySection",setup(e){const{getField:a}=ft();return(t,n)=>(W(),We(So,{title:"Display Options"},{default:Pe(()=>[xe(vt,{id:"displayType",type:"legend",label:"Display type",required:!0,description:"How would you like to display the content?"},{default:Pe(({id:o,value:i,update:r})=>[xe(Wg,{id:o,display:"inline",options:[{value:"grid",label:"Grid"},{value:"list",label:"List"},{value:"carousel",label:"Carousel"}],value:i,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1}),Ot(a)("displayType")==="grid"||Ot(a)("displayType")==="carousel"?(W(),We(vt,{key:0,id:"showImage",type:"legend",label:"Show images"},{default:Pe(({id:o,value:i,update:r})=>[xe(Yg,{id:o,options:[{value:!0,label:"Would you like to display card images?"}],value:i,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Ve("",!0),Ot(a)("source")==="auto"?(W(),We(vt,{key:1,id:"displayNumber",label:"Number of items",description:"How many items would you like display?",required:!0},{default:Pe(({id:o,value:i,update:r})=>[xe(Ug,{id:o,type:"number",value:i,min:1,max:100,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Ve("",!0)]),_:1}))}}),Xg=Me({__name:"ContentForm",setup(e){const{getField:a}=ft(),t=ca(()=>a("source")&&a("contentType")||a("source")==="manual"),n=ca(()=>a("source")==="manual"),o=ca(()=>a("source")==="auto");return(i,r)=>(W(),We(Pf,null,{default:Pe(()=>[xe($h),t.value?(W(),te(Te,{key:0},[n.value?(W(),We(Fg,{key:0})):Ve("",!0),o.value?(W(),We(Vg,{key:1})):Ve("",!0),xe(Qg)],64)):Ve("",!0)]),_:1}))}}),Jg={key:0,class:"tide-collection"},Zg=Me({__name:"App",props:{index:{},form:{},config:{},baseUrl:{},update:{type:Function}},setup(e){const a=e,t=Ta(!1),{form:n}=ft(a.index,{form:a.form,config:a.config});return Ht(()=>{Th(a.baseUrl),t.value=!0}),ut(n,o=>{a.update(o)},{deep:!0}),(o,i)=>t.value?(W(),te("div",Jg,[xe(Xg)])):Ve("",!0)}});function ex(e,a={}){kf(Zg,a).mount(e)}(e=>{Drupal.behaviors.contentCollection={attach:function(a){once("content-collection-init",".content-collection-app",a).forEach(function(t){const n=t.closest(".field--type-tide-content-collection-ui"),o=t.getAttribute("data-index")||"0",i=t.getAttribute("data-config")||"{}",r=n?.querySelector(`#content-collection-value-${o}`);r&&ex(t,{index:o,form:uu(r.value),config:uu(i),update:s=>r.value=$g(s),baseUrl:"http://content-sdp.docker.internal/"})})}}})(jQuery)})(); diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js.map b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js.map deleted file mode 100644 index 90c1fcf70..000000000 --- a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.js","sources":["../node_modules/@dpc-sdp/tide-content-collection-ui/dist/main.js","../src/index.js"],"sourcesContent":["var bl = {};\n/**\n* @vue/shared v3.5.18\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction ni(e) {\n const t = /* @__PURE__ */ Object.create(null);\n for (const i of e.split(\",\")) t[i] = 1;\n return (i) => i in t;\n}\nconst he = bl.NODE_ENV !== \"production\" ? Object.freeze({}) : {}, Zi = bl.NODE_ENV !== \"production\" ? Object.freeze([]) : [], Ue = () => {\n}, wu = () => !1, Fn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter\n(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ga = (e) => e.startsWith(\"onUpdate:\"), qe = Object.assign, zr = (e, t) => {\n const i = e.indexOf(t);\n i > -1 && e.splice(i, 1);\n}, _u = Object.prototype.hasOwnProperty, ue = (e, t) => _u.call(e, t), Y = Array.isArray, Ci = (e) => $a(e) === \"[object Map]\", yl = (e) => $a(e) === \"[object Set]\", Q = (e) => typeof e == \"function\", je = (e) => typeof e == \"string\", ai = (e) => typeof e == \"symbol\", we = (e) => e !== null && typeof e == \"object\", Ur = (e) => (we(e) || Q(e)) && Q(e.then) && Q(e.catch), wl = Object.prototype.toString, $a = (e) => wl.call(e), Br = (e) => $a(e).slice(8, -1), _l = (e) => $a(e) === \"[object Object]\", Hr = (e) => je(e) && e !== \"NaN\" && e[0] !== \"-\" && \"\" + parseInt(e, 10) === e, yn = /* @__PURE__ */ ni(\n // the leading comma is intentional so empty string \"\" is also included\n \",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted\"\n), Eu = /* @__PURE__ */ ni(\n \"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo\"\n), Ia = (e) => {\n const t = /* @__PURE__ */ Object.create(null);\n return (i) => t[i] || (t[i] = e(i));\n}, Su = /-(\\w)/g, at = Ia(\n (e) => e.replace(Su, (t, i) => i ? i.toUpperCase() : \"\")\n), Ou = /\\B([A-Z])/g, ei = Ia(\n (e) => e.replace(Ou, \"-$1\").toLowerCase()\n), Mi = Ia((e) => e.charAt(0).toUpperCase() + e.slice(1)), Ti = Ia(\n (e) => e ? `on${Mi(e)}` : \"\"\n), vi = (e, t) => !Object.is(e, t), Gi = (e, ...t) => {\n for (let i = 0; i < e.length; i++)\n e[i](...t);\n}, An = (e, t, i, n = !1) => {\n Object.defineProperty(e, t, {\n configurable: !0,\n enumerable: !1,\n writable: n,\n value: i\n });\n}, wr = (e) => {\n const t = parseFloat(e);\n return isNaN(t) ? e : t;\n};\nlet Ns;\nconst Mn = () => Ns || (Ns = typeof globalThis < \"u\" ? globalThis : typeof self < \"u\" ? self : typeof window < \"u\" ? window : typeof global < \"u\" ? global : {});\nfunction Wr(e) {\n if (Y(e)) {\n const t = {};\n for (let i = 0; i < e.length; i++) {\n const n = e[i], a = je(n) ? ju(n) : Wr(n);\n if (a)\n for (const o in a)\n t[o] = a[o];\n }\n return t;\n } else if (je(e) || we(e))\n return e;\n}\nconst Nu = /;(?![^(]*\\))/g, Du = /:([^]+)/, Tu = /\\/\\*[^]*?\\*\\//g;\nfunction ju(e) {\n const t = {};\n return e.replace(Tu, \"\").split(Nu).forEach((i) => {\n if (i) {\n const n = i.split(Du);\n n.length > 1 && (t[n[0].trim()] = n[1].trim());\n }\n }), t;\n}\nfunction Nt(e) {\n let t = \"\";\n if (je(e))\n t = e;\n else if (Y(e))\n for (let i = 0; i < e.length; i++) {\n const n = Nt(e[i]);\n n && (t += n + \" \");\n }\n else if (we(e))\n for (const i in e)\n e[i] && (t += i + \" \");\n return t.trim();\n}\nconst ku = \"html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot\", Au = \"svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view\", Cu = \"annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics\", $u = /* @__PURE__ */ ni(ku), Iu = /* @__PURE__ */ ni(Au), Pu = /* @__PURE__ */ ni(Cu), Ru = \"itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly\", Fu = /* @__PURE__ */ ni(Ru);\nfunction El(e) {\n return !!e || e === \"\";\n}\nconst Sl = (e) => !!(e && e.__v_isRef === !0), ut = (e) => je(e) ? e : e == null ? \"\" : Y(e) || we(e) && (e.toString === wl || !Q(e.toString)) ? Sl(e) ? ut(e.value) : JSON.stringify(e, Ol, 2) : String(e), Ol = (e, t) => Sl(t) ? Ol(e, t.value) : Ci(t) ? {\n [`Map(${t.size})`]: [...t.entries()].reduce(\n (i, [n, a], o) => (i[no(n, o) + \" =>\"] = a, i),\n {}\n )\n} : yl(t) ? {\n [`Set(${t.size})`]: [...t.values()].map((i) => no(i))\n} : ai(t) ? no(t) : we(t) && !Y(t) && !_l(t) ? String(t) : t, no = (e, t = \"\") => {\n var i;\n return (\n // Symbol.description in es2019+ so we need to cast here to pass\n // the lib: es2016 check\n ai(e) ? `Symbol(${(i = e.description) != null ? i : t})` : e\n );\n};\nvar _e = {};\nfunction It(e, ...t) {\n console.warn(`[Vue warn] ${e}`, ...t);\n}\nlet et;\nclass Mu {\n constructor(t = !1) {\n this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.parent = et, !t && et && (this.index = (et.scopes || (et.scopes = [])).push(\n this\n ) - 1);\n }\n get active() {\n return this._active;\n }\n pause() {\n if (this._active) {\n this._isPaused = !0;\n let t, i;\n if (this.scopes)\n for (t = 0, i = this.scopes.length; t < i; t++)\n this.scopes[t].pause();\n for (t = 0, i = this.effects.length; t < i; t++)\n this.effects[t].pause();\n }\n }\n /**\n * Resumes the effect scope, including all child scopes and effects.\n */\n resume() {\n if (this._active && this._isPaused) {\n this._isPaused = !1;\n let t, i;\n if (this.scopes)\n for (t = 0, i = this.scopes.length; t < i; t++)\n this.scopes[t].resume();\n for (t = 0, i = this.effects.length; t < i; t++)\n this.effects[t].resume();\n }\n }\n run(t) {\n if (this._active) {\n const i = et;\n try {\n return et = this, t();\n } finally {\n et = i;\n }\n } else _e.NODE_ENV !== \"production\" && It(\"cannot run an inactive effect scope.\");\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n on() {\n ++this._on === 1 && (this.prevScope = et, et = this);\n }\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n off() {\n this._on > 0 && --this._on === 0 && (et = this.prevScope, this.prevScope = void 0);\n }\n stop(t) {\n if (this._active) {\n this._active = !1;\n let i, n;\n for (i = 0, n = this.effects.length; i < n; i++)\n this.effects[i].stop();\n for (this.effects.length = 0, i = 0, n = this.cleanups.length; i < n; i++)\n this.cleanups[i]();\n if (this.cleanups.length = 0, this.scopes) {\n for (i = 0, n = this.scopes.length; i < n; i++)\n this.scopes[i].stop(!0);\n this.scopes.length = 0;\n }\n if (!this.detached && this.parent && !t) {\n const a = this.parent.scopes.pop();\n a && a !== this && (this.parent.scopes[this.index] = a, a.index = this.index);\n }\n this.parent = void 0;\n }\n }\n}\nfunction Nl() {\n return et;\n}\nfunction Vu(e, t = !1) {\n et ? et.cleanups.push(e) : _e.NODE_ENV !== \"production\" && !t && It(\n \"onScopeDispose() is called when there is no active effect scope to be associated with.\"\n );\n}\nlet ve;\nconst ao = /* @__PURE__ */ new WeakSet();\nclass Dl {\n constructor(t) {\n this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, et && et.active && et.effects.push(this);\n }\n pause() {\n this.flags |= 64;\n }\n resume() {\n this.flags & 64 && (this.flags &= -65, ao.has(this) && (ao.delete(this), this.trigger()));\n }\n /**\n * @internal\n */\n notify() {\n this.flags & 2 && !(this.flags & 32) || this.flags & 8 || jl(this);\n }\n run() {\n if (!(this.flags & 1))\n return this.fn();\n this.flags |= 2, Ds(this), kl(this);\n const t = ve, i = Ct;\n ve = this, Ct = !0;\n try {\n return this.fn();\n } finally {\n _e.NODE_ENV !== \"production\" && ve !== this && It(\n \"Active effect was not restored correctly - this is likely a Vue internal bug.\"\n ), Al(this), ve = t, Ct = i, this.flags &= -3;\n }\n }\n stop() {\n if (this.flags & 1) {\n for (let t = this.deps; t; t = t.nextDep)\n Yr(t);\n this.deps = this.depsTail = void 0, Ds(this), this.onStop && this.onStop(), this.flags &= -2;\n }\n }\n trigger() {\n this.flags & 64 ? ao.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();\n }\n /**\n * @internal\n */\n runIfDirty() {\n _r(this) && this.run();\n }\n get dirty() {\n return _r(this);\n }\n}\nlet Tl = 0, wn, _n;\nfunction jl(e, t = !1) {\n if (e.flags |= 8, t) {\n e.next = _n, _n = e;\n return;\n }\n e.next = wn, wn = e;\n}\nfunction Kr() {\n Tl++;\n}\nfunction Gr() {\n if (--Tl > 0)\n return;\n if (_n) {\n let t = _n;\n for (_n = void 0; t; ) {\n const i = t.next;\n t.next = void 0, t.flags &= -9, t = i;\n }\n }\n let e;\n for (; wn; ) {\n let t = wn;\n for (wn = void 0; t; ) {\n const i = t.next;\n if (t.next = void 0, t.flags &= -9, t.flags & 1)\n try {\n t.trigger();\n } catch (n) {\n e || (e = n);\n }\n t = i;\n }\n }\n if (e) throw e;\n}\nfunction kl(e) {\n for (let t = e.deps; t; t = t.nextDep)\n t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;\n}\nfunction Al(e) {\n let t, i = e.depsTail, n = i;\n for (; n; ) {\n const a = n.prevDep;\n n.version === -1 ? (n === i && (i = a), Yr(n), qu(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = a;\n }\n e.deps = t, e.depsTail = i;\n}\nfunction _r(e) {\n for (let t = e.deps; t; t = t.nextDep)\n if (t.dep.version !== t.version || t.dep.computed && (Cl(t.dep.computed) || t.dep.version !== t.version))\n return !0;\n return !!e._dirty;\n}\nfunction Cl(e) {\n if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === Cn) || (e.globalVersion = Cn, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !_r(e))))\n return;\n e.flags |= 2;\n const t = e.dep, i = ve, n = Ct;\n ve = e, Ct = !0;\n try {\n kl(e);\n const a = e.fn(e._value);\n (t.version === 0 || vi(a, e._value)) && (e.flags |= 128, e._value = a, t.version++);\n } catch (a) {\n throw t.version++, a;\n } finally {\n ve = i, Ct = n, Al(e), e.flags &= -3;\n }\n}\nfunction Yr(e, t = !1) {\n const { dep: i, prevSub: n, nextSub: a } = e;\n if (n && (n.nextSub = a, e.prevSub = void 0), a && (a.prevSub = n, e.nextSub = void 0), _e.NODE_ENV !== \"production\" && i.subsHead === e && (i.subsHead = a), i.subs === e && (i.subs = n, !n && i.computed)) {\n i.computed.flags &= -5;\n for (let o = i.computed.deps; o; o = o.nextDep)\n Yr(o, !0);\n }\n !t && !--i.sc && i.map && i.map.delete(i.key);\n}\nfunction qu(e) {\n const { prevDep: t, nextDep: i } = e;\n t && (t.nextDep = i, e.prevDep = void 0), i && (i.prevDep = t, e.nextDep = void 0);\n}\nlet Ct = !0;\nconst $l = [];\nfunction Pt() {\n $l.push(Ct), Ct = !1;\n}\nfunction Rt() {\n const e = $l.pop();\n Ct = e === void 0 ? !0 : e;\n}\nfunction Ds(e) {\n const { cleanup: t } = e;\n if (e.cleanup = void 0, t) {\n const i = ve;\n ve = void 0;\n try {\n t();\n } finally {\n ve = i;\n }\n }\n}\nlet Cn = 0;\nclass Lu {\n constructor(t, i) {\n this.sub = t, this.dep = i, this.version = i.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;\n }\n}\nclass Qr {\n // TODO isolatedDeclarations \"__v_skip\"\n constructor(t) {\n this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, _e.NODE_ENV !== \"production\" && (this.subsHead = void 0);\n }\n track(t) {\n if (!ve || !Ct || ve === this.computed)\n return;\n let i = this.activeLink;\n if (i === void 0 || i.sub !== ve)\n i = this.activeLink = new Lu(ve, this), ve.deps ? (i.prevDep = ve.depsTail, ve.depsTail.nextDep = i, ve.depsTail = i) : ve.deps = ve.depsTail = i, Il(i);\n else if (i.version === -1 && (i.version = this.version, i.nextDep)) {\n const n = i.nextDep;\n n.prevDep = i.prevDep, i.prevDep && (i.prevDep.nextDep = n), i.prevDep = ve.depsTail, i.nextDep = void 0, ve.depsTail.nextDep = i, ve.depsTail = i, ve.deps === i && (ve.deps = n);\n }\n return _e.NODE_ENV !== \"production\" && ve.onTrack && ve.onTrack(\n qe(\n {\n effect: ve\n },\n t\n )\n ), i;\n }\n trigger(t) {\n this.version++, Cn++, this.notify(t);\n }\n notify(t) {\n Kr();\n try {\n if (_e.NODE_ENV !== \"production\")\n for (let i = this.subsHead; i; i = i.nextSub)\n i.sub.onTrigger && !(i.sub.flags & 8) && i.sub.onTrigger(\n qe(\n {\n effect: i.sub\n },\n t\n )\n );\n for (let i = this.subs; i; i = i.prevSub)\n i.sub.notify() && i.sub.dep.notify();\n } finally {\n Gr();\n }\n }\n}\nfunction Il(e) {\n if (e.dep.sc++, e.sub.flags & 4) {\n const t = e.dep.computed;\n if (t && !e.dep.subs) {\n t.flags |= 20;\n for (let n = t.deps; n; n = n.nextDep)\n Il(n);\n }\n const i = e.dep.subs;\n i !== e && (e.prevSub = i, i && (i.nextSub = e)), _e.NODE_ENV !== \"production\" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;\n }\n}\nconst Er = /* @__PURE__ */ new WeakMap(), $i = Symbol(\n _e.NODE_ENV !== \"production\" ? \"Object iterate\" : \"\"\n), Sr = Symbol(\n _e.NODE_ENV !== \"production\" ? \"Map keys iterate\" : \"\"\n), $n = Symbol(\n _e.NODE_ENV !== \"production\" ? \"Array iterate\" : \"\"\n);\nfunction ze(e, t, i) {\n if (Ct && ve) {\n let n = Er.get(e);\n n || Er.set(e, n = /* @__PURE__ */ new Map());\n let a = n.get(i);\n a || (n.set(i, a = new Qr()), a.map = n, a.key = i), _e.NODE_ENV !== \"production\" ? a.track({\n target: e,\n type: t,\n key: i\n }) : a.track();\n }\n}\nfunction Vt(e, t, i, n, a, o) {\n const r = Er.get(e);\n if (!r) {\n Cn++;\n return;\n }\n const s = (c) => {\n c && (_e.NODE_ENV !== \"production\" ? c.trigger({\n target: e,\n type: t,\n key: i,\n newValue: n,\n oldValue: a,\n oldTarget: o\n }) : c.trigger());\n };\n if (Kr(), t === \"clear\")\n r.forEach(s);\n else {\n const c = Y(e), l = c && Hr(i);\n if (c && i === \"length\") {\n const p = Number(n);\n r.forEach((u, m) => {\n (m === \"length\" || m === $n || !ai(m) && m >= p) && s(u);\n });\n } else\n switch ((i !== void 0 || r.has(void 0)) && s(r.get(i)), l && s(r.get($n)), t) {\n case \"add\":\n c ? l && s(r.get(\"length\")) : (s(r.get($i)), Ci(e) && s(r.get(Sr)));\n break;\n case \"delete\":\n c || (s(r.get($i)), Ci(e) && s(r.get(Sr)));\n break;\n case \"set\":\n Ci(e) && s(r.get($i));\n break;\n }\n }\n Gr();\n}\nfunction zi(e) {\n const t = ne(e);\n return t === e ? t : (ze(t, \"iterate\", $n), ot(e) ? t : t.map(Xe));\n}\nfunction Pa(e) {\n return ze(e = ne(e), \"iterate\", $n), e;\n}\nconst zu = {\n __proto__: null,\n [Symbol.iterator]() {\n return oo(this, Symbol.iterator, Xe);\n },\n concat(...e) {\n return zi(this).concat(\n ...e.map((t) => Y(t) ? zi(t) : t)\n );\n },\n entries() {\n return oo(this, \"entries\", (e) => (e[1] = Xe(e[1]), e));\n },\n every(e, t) {\n return Gt(this, \"every\", e, t, void 0, arguments);\n },\n filter(e, t) {\n return Gt(this, \"filter\", e, t, (i) => i.map(Xe), arguments);\n },\n find(e, t) {\n return Gt(this, \"find\", e, t, Xe, arguments);\n },\n findIndex(e, t) {\n return Gt(this, \"findIndex\", e, t, void 0, arguments);\n },\n findLast(e, t) {\n return Gt(this, \"findLast\", e, t, Xe, arguments);\n },\n findLastIndex(e, t) {\n return Gt(this, \"findLastIndex\", e, t, void 0, arguments);\n },\n // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement\n forEach(e, t) {\n return Gt(this, \"forEach\", e, t, void 0, arguments);\n },\n includes(...e) {\n return ro(this, \"includes\", e);\n },\n indexOf(...e) {\n return ro(this, \"indexOf\", e);\n },\n join(e) {\n return zi(this).join(e);\n },\n // keys() iterator only reads `length`, no optimisation required\n lastIndexOf(...e) {\n return ro(this, \"lastIndexOf\", e);\n },\n map(e, t) {\n return Gt(this, \"map\", e, t, void 0, arguments);\n },\n pop() {\n return un(this, \"pop\");\n },\n push(...e) {\n return un(this, \"push\", e);\n },\n reduce(e, ...t) {\n return Ts(this, \"reduce\", e, t);\n },\n reduceRight(e, ...t) {\n return Ts(this, \"reduceRight\", e, t);\n },\n shift() {\n return un(this, \"shift\");\n },\n // slice could use ARRAY_ITERATE but also seems to beg for range tracking\n some(e, t) {\n return Gt(this, \"some\", e, t, void 0, arguments);\n },\n splice(...e) {\n return un(this, \"splice\", e);\n },\n toReversed() {\n return zi(this).toReversed();\n },\n toSorted(e) {\n return zi(this).toSorted(e);\n },\n toSpliced(...e) {\n return zi(this).toSpliced(...e);\n },\n unshift(...e) {\n return un(this, \"unshift\", e);\n },\n values() {\n return oo(this, \"values\", Xe);\n }\n};\nfunction oo(e, t, i) {\n const n = Pa(e), a = n[t]();\n return n !== e && !ot(e) && (a._next = a.next, a.next = () => {\n const o = a._next();\n return o.value && (o.value = i(o.value)), o;\n }), a;\n}\nconst Uu = Array.prototype;\nfunction Gt(e, t, i, n, a, o) {\n const r = Pa(e), s = r !== e && !ot(e), c = r[t];\n if (c !== Uu[t]) {\n const u = c.apply(e, o);\n return s ? Xe(u) : u;\n }\n let l = i;\n r !== e && (s ? l = function(u, m) {\n return i.call(this, Xe(u), m, e);\n } : i.length > 2 && (l = function(u, m) {\n return i.call(this, u, m, e);\n }));\n const p = c.call(r, l, n);\n return s && a ? a(p) : p;\n}\nfunction Ts(e, t, i, n) {\n const a = Pa(e);\n let o = i;\n return a !== e && (ot(e) ? i.length > 3 && (o = function(r, s, c) {\n return i.call(this, r, s, c, e);\n }) : o = function(r, s, c) {\n return i.call(this, r, Xe(s), c, e);\n }), a[t](o, ...n);\n}\nfunction ro(e, t, i) {\n const n = ne(e);\n ze(n, \"iterate\", $n);\n const a = n[t](...i);\n return (a === -1 || a === !1) && xa(i[0]) ? (i[0] = ne(i[0]), n[t](...i)) : a;\n}\nfunction un(e, t, i = []) {\n Pt(), Kr();\n const n = ne(e)[t].apply(e, i);\n return Gr(), Rt(), n;\n}\nconst Bu = /* @__PURE__ */ ni(\"__proto__,__v_isRef,__isVue\"), Pl = new Set(\n /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== \"arguments\" && e !== \"caller\").map((e) => Symbol[e]).filter(ai)\n);\nfunction Hu(e) {\n ai(e) || (e = String(e));\n const t = ne(this);\n return ze(t, \"has\", e), t.hasOwnProperty(e);\n}\nclass Rl {\n constructor(t = !1, i = !1) {\n this._isReadonly = t, this._isShallow = i;\n }\n get(t, i, n) {\n if (i === \"__v_skip\") return t.__v_skip;\n const a = this._isReadonly, o = this._isShallow;\n if (i === \"__v_isReactive\")\n return !a;\n if (i === \"__v_isReadonly\")\n return a;\n if (i === \"__v_isShallow\")\n return o;\n if (i === \"__v_raw\")\n return n === (a ? o ? zl : Ll : o ? ql : Vl).get(t) || // receiver is not the reactive proxy, but has the same prototype\n // this means the receiver is a user proxy of the reactive proxy\n Object.getPrototypeOf(t) === Object.getPrototypeOf(n) ? t : void 0;\n const r = Y(t);\n if (!a) {\n let c;\n if (r && (c = zu[i]))\n return c;\n if (i === \"hasOwnProperty\")\n return Hu;\n }\n const s = Reflect.get(\n t,\n i,\n // if this is a proxy wrapping a ref, return methods using the raw ref\n // as receiver so that we don't have to call `toRaw` on the ref in all\n // its class methods\n Re(t) ? t : n\n );\n return (ai(i) ? Pl.has(i) : Bu(i)) || (a || ze(t, \"get\", i), o) ? s : Re(s) ? r && Hr(i) ? s : s.value : we(s) ? a ? Xr(s) : Fa(s) : s;\n }\n}\nclass Fl extends Rl {\n constructor(t = !1) {\n super(!1, t);\n }\n set(t, i, n, a) {\n let o = t[i];\n if (!this._isShallow) {\n const c = Bt(o);\n if (!ot(n) && !Bt(n) && (o = ne(o), n = ne(n)), !Y(t) && Re(o) && !Re(n))\n return c ? !1 : (o.value = n, !0);\n }\n const r = Y(t) && Hr(i) ? Number(i) < t.length : ue(t, i), s = Reflect.set(\n t,\n i,\n n,\n Re(t) ? t : a\n );\n return t === ne(a) && (r ? vi(n, o) && Vt(t, \"set\", i, n, o) : Vt(t, \"add\", i, n)), s;\n }\n deleteProperty(t, i) {\n const n = ue(t, i), a = t[i], o = Reflect.deleteProperty(t, i);\n return o && n && Vt(t, \"delete\", i, void 0, a), o;\n }\n has(t, i) {\n const n = Reflect.has(t, i);\n return (!ai(i) || !Pl.has(i)) && ze(t, \"has\", i), n;\n }\n ownKeys(t) {\n return ze(\n t,\n \"iterate\",\n Y(t) ? \"length\" : $i\n ), Reflect.ownKeys(t);\n }\n}\nclass Ml extends Rl {\n constructor(t = !1) {\n super(!0, t);\n }\n set(t, i) {\n return _e.NODE_ENV !== \"production\" && It(\n `Set operation on key \"${String(i)}\" failed: target is readonly.`,\n t\n ), !0;\n }\n deleteProperty(t, i) {\n return _e.NODE_ENV !== \"production\" && It(\n `Delete operation on key \"${String(i)}\" failed: target is readonly.`,\n t\n ), !0;\n }\n}\nconst Wu = /* @__PURE__ */ new Fl(), Ku = /* @__PURE__ */ new Ml(), Gu = /* @__PURE__ */ new Fl(!0), Yu = /* @__PURE__ */ new Ml(!0), Or = (e) => e, Yn = (e) => Reflect.getPrototypeOf(e);\nfunction Qu(e, t, i) {\n return function(...n) {\n const a = this.__v_raw, o = ne(a), r = Ci(o), s = e === \"entries\" || e === Symbol.iterator && r, c = e === \"keys\" && r, l = a[e](...n), p = i ? Or : t ? ba : Xe;\n return !t && ze(\n o,\n \"iterate\",\n c ? Sr : $i\n ), {\n // iterator protocol\n next() {\n const { value: u, done: m } = l.next();\n return m ? { value: u, done: m } : {\n value: s ? [p(u[0]), p(u[1])] : p(u),\n done: m\n };\n },\n // iterable protocol\n [Symbol.iterator]() {\n return this;\n }\n };\n };\n}\nfunction Qn(e) {\n return function(...t) {\n if (_e.NODE_ENV !== \"production\") {\n const i = t[0] ? `on key \"${t[0]}\" ` : \"\";\n It(\n `${Mi(e)} operation ${i}failed: target is readonly.`,\n ne(this)\n );\n }\n return e === \"delete\" ? !1 : e === \"clear\" ? void 0 : this;\n };\n}\nfunction Xu(e, t) {\n const i = {\n get(a) {\n const o = this.__v_raw, r = ne(o), s = ne(a);\n e || (vi(a, s) && ze(r, \"get\", a), ze(r, \"get\", s));\n const { has: c } = Yn(r), l = t ? Or : e ? ba : Xe;\n if (c.call(r, a))\n return l(o.get(a));\n if (c.call(r, s))\n return l(o.get(s));\n o !== r && o.get(a);\n },\n get size() {\n const a = this.__v_raw;\n return !e && ze(ne(a), \"iterate\", $i), Reflect.get(a, \"size\", a);\n },\n has(a) {\n const o = this.__v_raw, r = ne(o), s = ne(a);\n return e || (vi(a, s) && ze(r, \"has\", a), ze(r, \"has\", s)), a === s ? o.has(a) : o.has(a) || o.has(s);\n },\n forEach(a, o) {\n const r = this, s = r.__v_raw, c = ne(s), l = t ? Or : e ? ba : Xe;\n return !e && ze(c, \"iterate\", $i), s.forEach((p, u) => a.call(o, l(p), l(u), r));\n }\n };\n return qe(\n i,\n e ? {\n add: Qn(\"add\"),\n set: Qn(\"set\"),\n delete: Qn(\"delete\"),\n clear: Qn(\"clear\")\n } : {\n add(a) {\n !t && !ot(a) && !Bt(a) && (a = ne(a));\n const o = ne(this);\n return Yn(o).has.call(o, a) || (o.add(a), Vt(o, \"add\", a, a)), this;\n },\n set(a, o) {\n !t && !ot(o) && !Bt(o) && (o = ne(o));\n const r = ne(this), { has: s, get: c } = Yn(r);\n let l = s.call(r, a);\n l ? _e.NODE_ENV !== \"production\" && js(r, s, a) : (a = ne(a), l = s.call(r, a));\n const p = c.call(r, a);\n return r.set(a, o), l ? vi(o, p) && Vt(r, \"set\", a, o, p) : Vt(r, \"add\", a, o), this;\n },\n delete(a) {\n const o = ne(this), { has: r, get: s } = Yn(o);\n let c = r.call(o, a);\n c ? _e.NODE_ENV !== \"production\" && js(o, r, a) : (a = ne(a), c = r.call(o, a));\n const l = s ? s.call(o, a) : void 0, p = o.delete(a);\n return c && Vt(o, \"delete\", a, void 0, l), p;\n },\n clear() {\n const a = ne(this), o = a.size !== 0, r = _e.NODE_ENV !== \"production\" ? Ci(a) ? new Map(a) : new Set(a) : void 0, s = a.clear();\n return o && Vt(\n a,\n \"clear\",\n void 0,\n void 0,\n r\n ), s;\n }\n }\n ), [\n \"keys\",\n \"values\",\n \"entries\",\n Symbol.iterator\n ].forEach((a) => {\n i[a] = Qu(a, e, t);\n }), i;\n}\nfunction Ra(e, t) {\n const i = Xu(e, t);\n return (n, a, o) => a === \"__v_isReactive\" ? !e : a === \"__v_isReadonly\" ? e : a === \"__v_raw\" ? n : Reflect.get(\n ue(i, a) && a in n ? i : n,\n a,\n o\n );\n}\nconst Ju = {\n get: /* @__PURE__ */ Ra(!1, !1)\n}, Zu = {\n get: /* @__PURE__ */ Ra(!1, !0)\n}, ed = {\n get: /* @__PURE__ */ Ra(!0, !1)\n}, td = {\n get: /* @__PURE__ */ Ra(!0, !0)\n};\nfunction js(e, t, i) {\n const n = ne(i);\n if (n !== i && t.call(e, n)) {\n const a = Br(e);\n It(\n `Reactive ${a} contains both the raw and reactive versions of the same object${a === \"Map\" ? \" as keys\" : \"\"}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`\n );\n }\n}\nconst Vl = /* @__PURE__ */ new WeakMap(), ql = /* @__PURE__ */ new WeakMap(), Ll = /* @__PURE__ */ new WeakMap(), zl = /* @__PURE__ */ new WeakMap();\nfunction id(e) {\n switch (e) {\n case \"Object\":\n case \"Array\":\n return 1;\n case \"Map\":\n case \"Set\":\n case \"WeakMap\":\n case \"WeakSet\":\n return 2;\n default:\n return 0;\n }\n}\nfunction nd(e) {\n return e.__v_skip || !Object.isExtensible(e) ? 0 : id(Br(e));\n}\nfunction Fa(e) {\n return Bt(e) ? e : Ma(\n e,\n !1,\n Wu,\n Ju,\n Vl\n );\n}\nfunction ad(e) {\n return Ma(\n e,\n !1,\n Gu,\n Zu,\n ql\n );\n}\nfunction Xr(e) {\n return Ma(\n e,\n !0,\n Ku,\n ed,\n Ll\n );\n}\nfunction Lt(e) {\n return Ma(\n e,\n !0,\n Yu,\n td,\n zl\n );\n}\nfunction Ma(e, t, i, n, a) {\n if (!we(e))\n return _e.NODE_ENV !== \"production\" && It(\n `value cannot be made ${t ? \"readonly\" : \"reactive\"}: ${String(\n e\n )}`\n ), e;\n if (e.__v_raw && !(t && e.__v_isReactive))\n return e;\n const o = nd(e);\n if (o === 0)\n return e;\n const r = a.get(e);\n if (r)\n return r;\n const s = new Proxy(\n e,\n o === 2 ? n : i\n );\n return a.set(e, s), s;\n}\nfunction Ii(e) {\n return Bt(e) ? Ii(e.__v_raw) : !!(e && e.__v_isReactive);\n}\nfunction Bt(e) {\n return !!(e && e.__v_isReadonly);\n}\nfunction ot(e) {\n return !!(e && e.__v_isShallow);\n}\nfunction xa(e) {\n return e ? !!e.__v_raw : !1;\n}\nfunction ne(e) {\n const t = e && e.__v_raw;\n return t ? ne(t) : e;\n}\nfunction od(e) {\n return !ue(e, \"__v_skip\") && Object.isExtensible(e) && An(e, \"__v_skip\", !0), e;\n}\nconst Xe = (e) => we(e) ? Fa(e) : e, ba = (e) => we(e) ? Xr(e) : e;\nfunction Re(e) {\n return e ? e.__v_isRef === !0 : !1;\n}\nfunction $t(e) {\n return Bl(e, !1);\n}\nfunction Ul(e) {\n return Bl(e, !0);\n}\nfunction Bl(e, t) {\n return Re(e) ? e : new rd(e, t);\n}\nclass rd {\n constructor(t, i) {\n this.dep = new Qr(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = i ? t : ne(t), this._value = i ? t : Xe(t), this.__v_isShallow = i;\n }\n get value() {\n return _e.NODE_ENV !== \"production\" ? this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n }) : this.dep.track(), this._value;\n }\n set value(t) {\n const i = this._rawValue, n = this.__v_isShallow || ot(t) || Bt(t);\n t = n ? t : ne(t), vi(t, i) && (this._rawValue = t, this._value = n ? t : Xe(t), _e.NODE_ENV !== \"production\" ? this.dep.trigger({\n target: this,\n type: \"set\",\n key: \"value\",\n newValue: t,\n oldValue: i\n }) : this.dep.trigger());\n }\n}\nfunction Pi(e) {\n return Re(e) ? e.value : e;\n}\nfunction Nr(e) {\n return Q(e) ? e() : Pi(e);\n}\nconst sd = {\n get: (e, t, i) => t === \"__v_raw\" ? e : Pi(Reflect.get(e, t, i)),\n set: (e, t, i, n) => {\n const a = e[t];\n return Re(a) && !Re(i) ? (a.value = i, !0) : Reflect.set(e, t, i, n);\n }\n};\nfunction Hl(e) {\n return Ii(e) ? e : new Proxy(e, sd);\n}\nclass cd {\n constructor(t, i, n) {\n this.fn = t, this.setter = i, this._value = void 0, this.dep = new Qr(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Cn - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !i, this.isSSR = n;\n }\n /**\n * @internal\n */\n notify() {\n if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion\n ve !== this)\n return jl(this, !0), !0;\n }\n get value() {\n const t = _e.NODE_ENV !== \"production\" ? this.dep.track({\n target: this,\n type: \"get\",\n key: \"value\"\n }) : this.dep.track();\n return Cl(this), t && (t.version = this.dep.version), this._value;\n }\n set value(t) {\n this.setter ? this.setter(t) : _e.NODE_ENV !== \"production\" && It(\"Write operation failed: computed value is readonly\");\n }\n}\nfunction ld(e, t, i = !1) {\n let n, a;\n return Q(e) ? n = e : (n = e.get, a = e.set), new cd(n, a, i);\n}\nconst Xn = {}, ya = /* @__PURE__ */ new WeakMap();\nlet ji;\nfunction pd(e, t = !1, i = ji) {\n if (i) {\n let n = ya.get(i);\n n || ya.set(i, n = []), n.push(e);\n } else _e.NODE_ENV !== \"production\" && !t && It(\n \"onWatcherCleanup() was called when there was no active watcher to associate with.\"\n );\n}\nfunction ud(e, t, i = he) {\n const { immediate: n, deep: a, once: o, scheduler: r, augmentJob: s, call: c } = i, l = (O) => {\n (i.onWarn || It)(\n \"Invalid watch source: \",\n O,\n \"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.\"\n );\n }, p = (O) => a ? O : ot(O) || a === !1 || a === 0 ? Xt(O, 1) : Xt(O);\n let u, m, d, h, w = !1, b = !1;\n if (Re(e) ? (m = () => e.value, w = ot(e)) : Ii(e) ? (m = () => p(e), w = !0) : Y(e) ? (b = !0, w = e.some((O) => Ii(O) || ot(O)), m = () => e.map((O) => {\n if (Re(O))\n return O.value;\n if (Ii(O))\n return p(O);\n if (Q(O))\n return c ? c(O, 2) : O();\n _e.NODE_ENV !== \"production\" && l(O);\n })) : Q(e) ? t ? m = c ? () => c(e, 2) : e : m = () => {\n if (d) {\n Pt();\n try {\n d();\n } finally {\n Rt();\n }\n }\n const O = ji;\n ji = u;\n try {\n return c ? c(e, 3, [h]) : e(h);\n } finally {\n ji = O;\n }\n } : (m = Ue, _e.NODE_ENV !== \"production\" && l(e)), t && a) {\n const O = m, P = a === !0 ? 1 / 0 : a;\n m = () => Xt(O(), P);\n }\n const x = Nl(), _ = () => {\n u.stop(), x && x.active && zr(x.effects, u);\n };\n if (o && t) {\n const O = t;\n t = (...P) => {\n O(...P), _();\n };\n }\n let T = b ? new Array(e.length).fill(Xn) : Xn;\n const j = (O) => {\n if (!(!(u.flags & 1) || !u.dirty && !O))\n if (t) {\n const P = u.run();\n if (a || w || (b ? P.some((L, U) => vi(L, T[U])) : vi(P, T))) {\n d && d();\n const L = ji;\n ji = u;\n try {\n const U = [\n P,\n // pass undefined as the old value when it's changed for the first time\n T === Xn ? void 0 : b && T[0] === Xn ? [] : T,\n h\n ];\n T = P, c ? c(t, 3, U) : (\n // @ts-expect-error\n t(...U)\n );\n } finally {\n ji = L;\n }\n }\n } else\n u.run();\n };\n return s && s(j), u = new Dl(m), u.scheduler = r ? () => r(j, !1) : j, h = (O) => pd(O, !1, u), d = u.onStop = () => {\n const O = ya.get(u);\n if (O) {\n if (c)\n c(O, 4);\n else\n for (const P of O) P();\n ya.delete(u);\n }\n }, _e.NODE_ENV !== \"production\" && (u.onTrack = i.onTrack, u.onTrigger = i.onTrigger), t ? n ? j(!0) : T = u.run() : r ? r(j.bind(null, !0), !0) : u.run(), _.pause = u.pause.bind(u), _.resume = u.resume.bind(u), _.stop = _, _;\n}\nfunction Xt(e, t = 1 / 0, i) {\n if (t <= 0 || !we(e) || e.__v_skip || (i = i || /* @__PURE__ */ new Set(), i.has(e)))\n return e;\n if (i.add(e), t--, Re(e))\n Xt(e.value, t, i);\n else if (Y(e))\n for (let n = 0; n < e.length; n++)\n Xt(e[n], t, i);\n else if (yl(e) || Ci(e))\n e.forEach((n) => {\n Xt(n, t, i);\n });\n else if (_l(e)) {\n for (const n in e)\n Xt(e[n], t, i);\n for (const n of Object.getOwnPropertySymbols(e))\n Object.prototype.propertyIsEnumerable.call(e, n) && Xt(e[n], t, i);\n }\n return e;\n}\nvar g = {};\nconst Ri = [];\nfunction na(e) {\n Ri.push(e);\n}\nfunction aa() {\n Ri.pop();\n}\nlet so = !1;\nfunction R(e, ...t) {\n if (so) return;\n so = !0, Pt();\n const i = Ri.length ? Ri[Ri.length - 1].component : null, n = i && i.appContext.config.warnHandler, a = dd();\n if (n)\n rn(\n n,\n i,\n 11,\n [\n // eslint-disable-next-line no-restricted-syntax\n e + t.map((o) => {\n var r, s;\n return (s = (r = o.toString) == null ? void 0 : r.call(o)) != null ? s : JSON.stringify(o);\n }).join(\"\"),\n i && i.proxy,\n a.map(\n ({ vnode: o }) => `at <${Ba(i, o.type)}>`\n ).join(`\n`),\n a\n ]\n );\n else {\n const o = [`[Vue warn]: ${e}`, ...t];\n a.length && o.push(`\n`, ...fd(a)), console.warn(...o);\n }\n Rt(), so = !1;\n}\nfunction dd() {\n let e = Ri[Ri.length - 1];\n if (!e)\n return [];\n const t = [];\n for (; e; ) {\n const i = t[0];\n i && i.vnode === e ? i.recurseCount++ : t.push({\n vnode: e,\n recurseCount: 0\n });\n const n = e.component && e.component.parent;\n e = n && n.vnode;\n }\n return t;\n}\nfunction fd(e) {\n const t = [];\n return e.forEach((i, n) => {\n t.push(...n === 0 ? [] : [`\n`], ...md(i));\n }), t;\n}\nfunction md({ vnode: e, recurseCount: t }) {\n const i = t > 0 ? `... (${t} recursive calls)` : \"\", n = e.component ? e.component.parent == null : !1, a = ` at <${Ba(\n e.component,\n e.type,\n n\n )}`, o = \">\" + i;\n return e.props ? [a, ...hd(e.props), o] : [a + o];\n}\nfunction hd(e) {\n const t = [], i = Object.keys(e);\n return i.slice(0, 3).forEach((n) => {\n t.push(...Wl(n, e[n]));\n }), i.length > 3 && t.push(\" ...\"), t;\n}\nfunction Wl(e, t, i) {\n return je(t) ? (t = JSON.stringify(t), i ? t : [`${e}=${t}`]) : typeof t == \"number\" || typeof t == \"boolean\" || t == null ? i ? t : [`${e}=${t}`] : Re(t) ? (t = Wl(e, ne(t.value), !0), i ? t : [`${e}=Ref<`, t, \">\"]) : Q(t) ? [`${e}=fn${t.name ? `<${t.name}>` : \"\"}`] : (t = ne(t), i ? t : [`${e}=`, t]);\n}\nconst Jr = {\n sp: \"serverPrefetch hook\",\n bc: \"beforeCreate hook\",\n c: \"created hook\",\n bm: \"beforeMount hook\",\n m: \"mounted hook\",\n bu: \"beforeUpdate hook\",\n u: \"updated\",\n bum: \"beforeUnmount hook\",\n um: \"unmounted hook\",\n a: \"activated hook\",\n da: \"deactivated hook\",\n ec: \"errorCaptured hook\",\n rtc: \"renderTracked hook\",\n rtg: \"renderTriggered hook\",\n 0: \"setup function\",\n 1: \"render function\",\n 2: \"watcher getter\",\n 3: \"watcher callback\",\n 4: \"watcher cleanup function\",\n 5: \"native event handler\",\n 6: \"component event handler\",\n 7: \"vnode hook\",\n 8: \"directive hook\",\n 9: \"transition hook\",\n 10: \"app errorHandler\",\n 11: \"app warnHandler\",\n 12: \"ref function\",\n 13: \"async component loader\",\n 14: \"scheduler flush\",\n 15: \"component update\",\n 16: \"app unmount cleanup function\"\n};\nfunction rn(e, t, i, n) {\n try {\n return n ? e(...n) : e();\n } catch (a) {\n Vn(a, t, i);\n }\n}\nfunction Ht(e, t, i, n) {\n if (Q(e)) {\n const a = rn(e, t, i, n);\n return a && Ur(a) && a.catch((o) => {\n Vn(o, t, i);\n }), a;\n }\n if (Y(e)) {\n const a = [];\n for (let o = 0; o < e.length; o++)\n a.push(Ht(e[o], t, i, n));\n return a;\n } else g.NODE_ENV !== \"production\" && R(\n `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`\n );\n}\nfunction Vn(e, t, i, n = !0) {\n const a = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: r } = t && t.appContext.config || he;\n if (t) {\n let s = t.parent;\n const c = t.proxy, l = g.NODE_ENV !== \"production\" ? Jr[i] : `https://vuejs.org/error-reference/#runtime-${i}`;\n for (; s; ) {\n const p = s.ec;\n if (p) {\n for (let u = 0; u < p.length; u++)\n if (p[u](e, c, l) === !1)\n return;\n }\n s = s.parent;\n }\n if (o) {\n Pt(), rn(o, null, 10, [\n e,\n c,\n l\n ]), Rt();\n return;\n }\n }\n vd(e, i, a, n, r);\n}\nfunction vd(e, t, i, n = !0, a = !1) {\n if (g.NODE_ENV !== \"production\") {\n const o = Jr[t];\n if (i && na(i), R(`Unhandled error${o ? ` during execution of ${o}` : \"\"}`), i && aa(), n)\n throw e;\n console.error(e);\n } else {\n if (a)\n throw e;\n console.error(e);\n }\n}\nconst nt = [];\nlet Mt = -1;\nconst en = [];\nlet pi = null, Yi = 0;\nconst Kl = /* @__PURE__ */ Promise.resolve();\nlet wa = null;\nconst gd = 100;\nfunction Zr(e) {\n const t = wa || Kl;\n return e ? t.then(this ? e.bind(this) : e) : t;\n}\nfunction xd(e) {\n let t = Mt + 1, i = nt.length;\n for (; t < i; ) {\n const n = t + i >>> 1, a = nt[n], o = In(a);\n o < e || o === e && a.flags & 2 ? t = n + 1 : i = n;\n }\n return t;\n}\nfunction Va(e) {\n if (!(e.flags & 1)) {\n const t = In(e), i = nt[nt.length - 1];\n !i || // fast path when the job id is larger than the tail\n !(e.flags & 2) && t >= In(i) ? nt.push(e) : nt.splice(xd(t), 0, e), e.flags |= 1, Gl();\n }\n}\nfunction Gl() {\n wa || (wa = Kl.then(Xl));\n}\nfunction Yl(e) {\n Y(e) ? en.push(...e) : pi && e.id === -1 ? pi.splice(Yi + 1, 0, e) : e.flags & 1 || (en.push(e), e.flags |= 1), Gl();\n}\nfunction ks(e, t, i = Mt + 1) {\n for (g.NODE_ENV !== \"production\" && (t = t || /* @__PURE__ */ new Map()); i < nt.length; i++) {\n const n = nt[i];\n if (n && n.flags & 2) {\n if (e && n.id !== e.uid || g.NODE_ENV !== \"production\" && es(t, n))\n continue;\n nt.splice(i, 1), i--, n.flags & 4 && (n.flags &= -2), n(), n.flags & 4 || (n.flags &= -2);\n }\n }\n}\nfunction Ql(e) {\n if (en.length) {\n const t = [...new Set(en)].sort(\n (i, n) => In(i) - In(n)\n );\n if (en.length = 0, pi) {\n pi.push(...t);\n return;\n }\n for (pi = t, g.NODE_ENV !== \"production\" && (e = e || /* @__PURE__ */ new Map()), Yi = 0; Yi < pi.length; Yi++) {\n const i = pi[Yi];\n g.NODE_ENV !== \"production\" && es(e, i) || (i.flags & 4 && (i.flags &= -2), i.flags & 8 || i(), i.flags &= -2);\n }\n pi = null, Yi = 0;\n }\n}\nconst In = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;\nfunction Xl(e) {\n g.NODE_ENV !== \"production\" && (e = e || /* @__PURE__ */ new Map());\n const t = g.NODE_ENV !== \"production\" ? (i) => es(e, i) : Ue;\n try {\n for (Mt = 0; Mt < nt.length; Mt++) {\n const i = nt[Mt];\n if (i && !(i.flags & 8)) {\n if (g.NODE_ENV !== \"production\" && t(i))\n continue;\n i.flags & 4 && (i.flags &= -2), rn(\n i,\n i.i,\n i.i ? 15 : 14\n ), i.flags & 4 || (i.flags &= -2);\n }\n }\n } finally {\n for (; Mt < nt.length; Mt++) {\n const i = nt[Mt];\n i && (i.flags &= -2);\n }\n Mt = -1, nt.length = 0, Ql(e), wa = null, (nt.length || en.length) && Xl(e);\n }\n}\nfunction es(e, t) {\n const i = e.get(t) || 0;\n if (i > gd) {\n const n = t.i, a = n && ps(n.type);\n return Vn(\n `Maximum recursive updates exceeded${a ? ` in component <${a}>` : \"\"}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,\n null,\n 10\n ), !0;\n }\n return e.set(t, i + 1), !1;\n}\nlet zt = !1;\nconst oa = /* @__PURE__ */ new Map();\ng.NODE_ENV !== \"production\" && (Mn().__VUE_HMR_RUNTIME__ = {\n createRecord: co(Jl),\n rerender: co(wd),\n reload: co(_d)\n});\nconst Vi = /* @__PURE__ */ new Map();\nfunction bd(e) {\n const t = e.type.__hmrId;\n let i = Vi.get(t);\n i || (Jl(t, e.type), i = Vi.get(t)), i.instances.add(e);\n}\nfunction yd(e) {\n Vi.get(e.type.__hmrId).instances.delete(e);\n}\nfunction Jl(e, t) {\n return Vi.has(e) ? !1 : (Vi.set(e, {\n initialDef: _a(t),\n instances: /* @__PURE__ */ new Set()\n }), !0);\n}\nfunction _a(e) {\n return Pp(e) ? e.__vccOpts : e;\n}\nfunction wd(e, t) {\n const i = Vi.get(e);\n i && (i.initialDef.render = t, [...i.instances].forEach((n) => {\n t && (n.render = t, _a(n.type).render = t), n.renderCache = [], zt = !0, n.update(), zt = !1;\n }));\n}\nfunction _d(e, t) {\n const i = Vi.get(e);\n if (!i) return;\n t = _a(t), As(i.initialDef, t);\n const n = [...i.instances];\n for (let a = 0; a < n.length; a++) {\n const o = n[a], r = _a(o.type);\n let s = oa.get(r);\n s || (r !== i.initialDef && As(r, t), oa.set(r, s = /* @__PURE__ */ new Set())), s.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (s.add(o), o.ceReload(t.styles), s.delete(o)) : o.parent ? Va(() => {\n zt = !0, o.parent.update(), zt = !1, s.delete(o);\n }) : o.appContext.reload ? o.appContext.reload() : typeof window < \"u\" ? window.location.reload() : console.warn(\n \"[HMR] Root or manually mounted instance modified. Full reload required.\"\n ), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(r);\n }\n Yl(() => {\n oa.clear();\n });\n}\nfunction As(e, t) {\n qe(e, t);\n for (const i in e)\n i !== \"__file\" && !(i in t) && delete e[i];\n}\nfunction co(e) {\n return (t, i) => {\n try {\n return e(t, i);\n } catch (n) {\n console.error(n), console.warn(\n \"[HMR] Something went wrong during Vue component hot-reload. Full reload required.\"\n );\n }\n };\n}\nlet qt, hn = [], Dr = !1;\nfunction qn(e, ...t) {\n qt ? qt.emit(e, ...t) : Dr || hn.push({ event: e, args: t });\n}\nfunction Zl(e, t) {\n var i, n;\n qt = e, qt ? (qt.enabled = !0, hn.forEach(({ event: a, args: o }) => qt.emit(a, ...o)), hn = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < \"u\" && // some envs mock window but not fully\n window.HTMLElement && // also exclude jsdom\n // eslint-disable-next-line no-restricted-syntax\n !((n = (i = window.navigator) == null ? void 0 : i.userAgent) != null && n.includes(\"jsdom\")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {\n Zl(o, t);\n }), setTimeout(() => {\n qt || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Dr = !0, hn = []);\n }, 3e3)) : (Dr = !0, hn = []);\n}\nfunction Ed(e, t) {\n qn(\"app:init\", e, t, {\n Fragment: Ce,\n Text: Ln,\n Comment: dt,\n Static: sa\n });\n}\nfunction Sd(e) {\n qn(\"app:unmount\", e);\n}\nconst Od = /* @__PURE__ */ ts(\n \"component:added\"\n /* COMPONENT_ADDED */\n), ep = /* @__PURE__ */ ts(\n \"component:updated\"\n /* COMPONENT_UPDATED */\n), Nd = /* @__PURE__ */ ts(\n \"component:removed\"\n /* COMPONENT_REMOVED */\n), Dd = (e) => {\n qt && typeof qt.cleanupBuffer == \"function\" && // remove the component if it wasn't buffered\n !qt.cleanupBuffer(e) && Nd(e);\n};\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction ts(e) {\n return (t) => {\n qn(\n e,\n t.appContext.app,\n t.uid,\n t.parent ? t.parent.uid : void 0,\n t\n );\n };\n}\nconst Td = /* @__PURE__ */ tp(\n \"perf:start\"\n /* PERFORMANCE_START */\n), jd = /* @__PURE__ */ tp(\n \"perf:end\"\n /* PERFORMANCE_END */\n);\nfunction tp(e) {\n return (t, i, n) => {\n qn(e, t.appContext.app, t.uid, t, i, n);\n };\n}\nfunction kd(e, t, i) {\n qn(\n \"component:emit\",\n e.appContext.app,\n e,\n t,\n i\n );\n}\nlet Ve = null, ip = null;\nfunction Ea(e) {\n const t = Ve;\n return Ve = e, ip = e && e.type.__scopeId || null, t;\n}\nfunction Ie(e, t = Ve, i) {\n if (!t || e._n)\n return e;\n const n = (...a) => {\n n._d && Bs(-1);\n const o = Ea(t);\n let r;\n try {\n r = e(...a);\n } finally {\n Ea(o), n._d && Bs(1);\n }\n return g.NODE_ENV !== \"production\" && ep(t), r;\n };\n return n._n = !0, n._c = !0, n._d = !0, n;\n}\nfunction np(e) {\n Eu(e) && R(\"Do not use built-in directive ids as custom directive id: \" + e);\n}\nfunction Ad(e, t) {\n if (Ve === null)\n return g.NODE_ENV !== \"production\" && R(\"withDirectives can only be used inside render functions.\"), e;\n const i = Ua(Ve), n = e.dirs || (e.dirs = []);\n for (let a = 0; a < t.length; a++) {\n let [o, r, s, c = he] = t[a];\n o && (Q(o) && (o = {\n mounted: o,\n updated: o\n }), o.deep && Xt(r), n.push({\n dir: o,\n instance: i,\n value: r,\n oldValue: void 0,\n arg: s,\n modifiers: c\n }));\n }\n return e;\n}\nfunction Si(e, t, i, n) {\n const a = e.dirs, o = t && t.dirs;\n for (let r = 0; r < a.length; r++) {\n const s = a[r];\n o && (s.oldValue = o[r].value);\n let c = s.dir[n];\n c && (Pt(), Ht(c, i, 8, [\n e.el,\n s,\n e,\n t\n ]), Rt());\n }\n}\nconst Cd = Symbol(\"_vte\"), $d = (e) => e.__isTeleport;\nfunction is(e, t) {\n e.shapeFlag & 6 && e.component ? (e.transition = t, is(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;\n}\n/*! #__NO_SIDE_EFFECTS__ */\n// @__NO_SIDE_EFFECTS__\nfunction Le(e, t) {\n return Q(e) ? (\n // #8236: extend call and options.name access are considered side-effects\n // by Rollup, so we have to wrap it in a pure-annotated IIFE.\n qe({ name: e.name }, t, { setup: e })\n ) : e;\n}\nfunction ap(e) {\n e.ids = [e.ids[0] + e.ids[2]++ + \"-\", 0, 0];\n}\nconst op = /* @__PURE__ */ new WeakSet();\nfunction Id(e) {\n const t = za(), i = Ul(null);\n if (t) {\n const a = t.refs === he ? t.refs = {} : t.refs;\n let o;\n g.NODE_ENV !== \"production\" && (o = Object.getOwnPropertyDescriptor(a, e)) && !o.configurable ? R(`useTemplateRef('${e}') already exists.`) : Object.defineProperty(a, e, {\n enumerable: !0,\n get: () => i.value,\n set: (r) => i.value = r\n });\n } else g.NODE_ENV !== \"production\" && R(\n \"useTemplateRef() is called when there is no active component instance to be associated with.\"\n );\n const n = g.NODE_ENV !== \"production\" ? Xr(i) : i;\n return g.NODE_ENV !== \"production\" && op.add(n), n;\n}\nfunction En(e, t, i, n, a = !1) {\n if (Y(e)) {\n e.forEach(\n (h, w) => En(\n h,\n t && (Y(t) ? t[w] : t),\n i,\n n,\n a\n )\n );\n return;\n }\n if (tn(n) && !a) {\n n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && En(e, t, i, n.component.subTree);\n return;\n }\n const o = n.shapeFlag & 4 ? Ua(n.component) : n.el, r = a ? null : o, { i: s, r: c } = e;\n if (g.NODE_ENV !== \"production\" && !s) {\n R(\n \"Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.\"\n );\n return;\n }\n const l = t && t.r, p = s.refs === he ? s.refs = {} : s.refs, u = s.setupState, m = ne(u), d = u === he ? () => !1 : (h) => g.NODE_ENV !== \"production\" && (ue(m, h) && !Re(m[h]) && R(\n `Template ref \"${h}\" used on a non-ref value. It will not work in the production build.`\n ), op.has(m[h])) ? !1 : ue(m, h);\n if (l != null && l !== c && (je(l) ? (p[l] = null, d(l) && (u[l] = null)) : Re(l) && (l.value = null)), Q(c))\n rn(c, s, 12, [r, p]);\n else {\n const h = je(c), w = Re(c);\n if (h || w) {\n const b = () => {\n if (e.f) {\n const x = h ? d(c) ? u[c] : p[c] : c.value;\n a ? Y(x) && zr(x, o) : Y(x) ? x.includes(o) || x.push(o) : h ? (p[c] = [o], d(c) && (u[c] = p[c])) : (c.value = [o], e.k && (p[e.k] = c.value));\n } else h ? (p[c] = r, d(c) && (u[c] = r)) : w ? (c.value = r, e.k && (p[e.k] = r)) : g.NODE_ENV !== \"production\" && R(\"Invalid template ref type:\", c, `(${typeof c})`);\n };\n r ? (b.id = -1, gt(b, i)) : b();\n } else g.NODE_ENV !== \"production\" && R(\"Invalid template ref type:\", c, `(${typeof c})`);\n }\n}\nMn().requestIdleCallback;\nMn().cancelIdleCallback;\nconst tn = (e) => !!e.type.__asyncLoader, ns = (e) => e.type.__isKeepAlive;\nfunction Pd(e, t) {\n rp(e, \"a\", t);\n}\nfunction Rd(e, t) {\n rp(e, \"da\", t);\n}\nfunction rp(e, t, i = We) {\n const n = e.__wdc || (e.__wdc = () => {\n let a = i;\n for (; a; ) {\n if (a.isDeactivated)\n return;\n a = a.parent;\n }\n return e();\n });\n if (qa(t, n, i), i) {\n let a = i.parent;\n for (; a && a.parent; )\n ns(a.parent.vnode) && Fd(n, t, i, a), a = a.parent;\n }\n}\nfunction Fd(e, t, i, n) {\n const a = qa(\n t,\n e,\n n,\n !0\n /* prepend */\n );\n as(() => {\n zr(n[t], a);\n }, i);\n}\nfunction qa(e, t, i = We, n = !1) {\n if (i) {\n const a = i[e] || (i[e] = []), o = t.__weh || (t.__weh = (...r) => {\n Pt();\n const s = Bn(i), c = Ht(t, i, e, r);\n return s(), Rt(), c;\n });\n return n ? a.unshift(o) : a.push(o), o;\n } else if (g.NODE_ENV !== \"production\") {\n const a = Ti(Jr[e].replace(/ hook$/, \"\"));\n R(\n `${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`\n );\n }\n}\nconst oi = (e) => (t, i = We) => {\n (!Rn || e === \"sp\") && qa(e, (...n) => t(...n), i);\n}, Md = oi(\"bm\"), sn = oi(\"m\"), Vd = oi(\n \"bu\"\n), qd = oi(\"u\"), Ld = oi(\n \"bum\"\n), as = oi(\"um\"), zd = oi(\n \"sp\"\n), Ud = oi(\"rtg\"), Bd = oi(\"rtc\");\nfunction Hd(e, t = We) {\n qa(\"ec\", e, t);\n}\nconst Wd = \"components\", sp = Symbol.for(\"v-ndc\");\nfunction Kd(e) {\n return je(e) ? Gd(Wd, e, !1) || e : e || sp;\n}\nfunction Gd(e, t, i = !0, n = !1) {\n const a = Ve || We;\n if (a) {\n const o = a.type;\n {\n const s = ps(\n o,\n !1\n );\n if (s && (s === t || s === at(t) || s === Mi(at(t))))\n return o;\n }\n const r = (\n // local registration\n // check instance[type] first which is resolved for options API\n Cs(a[e] || o[e], t) || // global registration\n Cs(a.appContext[e], t)\n );\n return !r && n ? o : (g.NODE_ENV !== \"production\" && i && !r && R(`Failed to resolve ${e.slice(0, -1)}: ${t}\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`), r);\n } else g.NODE_ENV !== \"production\" && R(\n `resolve${Mi(e.slice(0, -1))} can only be used in render() or setup().`\n );\n}\nfunction Cs(e, t) {\n return e && (e[t] || e[at(t)] || e[Mi(at(t))]);\n}\nfunction bi(e, t, i, n) {\n let a;\n const o = i, r = Y(e);\n if (r || je(e)) {\n const s = r && Ii(e);\n let c = !1, l = !1;\n s && (c = !ot(e), l = Bt(e), e = Pa(e)), a = new Array(e.length);\n for (let p = 0, u = e.length; p < u; p++)\n a[p] = t(\n c ? l ? ba(Xe(e[p])) : Xe(e[p]) : e[p],\n p,\n void 0,\n o\n );\n } else if (typeof e == \"number\") {\n g.NODE_ENV !== \"production\" && !Number.isInteger(e) && R(`The v-for range expect an integer value but got ${e}.`), a = new Array(e);\n for (let s = 0; s < e; s++)\n a[s] = t(s + 1, s, void 0, o);\n } else if (we(e))\n if (e[Symbol.iterator])\n a = Array.from(\n e,\n (s, c) => t(s, c, void 0, o)\n );\n else {\n const s = Object.keys(e);\n a = new Array(s.length);\n for (let c = 0, l = s.length; c < l; c++) {\n const p = s[c];\n a[c] = t(e[p], p, c, o);\n }\n }\n else\n a = [];\n return a;\n}\nfunction cn(e, t, i = {}, n, a) {\n if (Ve.ce || Ve.parent && tn(Ve.parent) && Ve.parent.ce)\n return K(), Be(\n Ce,\n null,\n [ge(\"slot\", i, n)],\n 64\n );\n let o = e[t];\n g.NODE_ENV !== \"production\" && o && o.length > 1 && (R(\n \"SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.\"\n ), o = () => []), o && o._c && (o._d = !1), K();\n const r = o && cp(o(i)), s = i.key || // slot content array of a dynamic conditional slot may have a branch\n // key attached in the `createSlots` helper, respect that\n r && r.key, c = Be(\n Ce,\n {\n key: (s && !ai(s) ? s : `_${t}`) + // #7256 force differentiate fallback content from actual content\n \"\"\n },\n r || [],\n r && e._ === 1 ? 64 : -2\n );\n return !a && c.scopeId && (c.slotScopeIds = [c.scopeId + \"-s\"]), o && o._c && (o._d = !0), c;\n}\nfunction cp(e) {\n return e.some((t) => zn(t) ? !(t.type === dt || t.type === Ce && !cp(t.children)) : !0) ? e : null;\n}\nconst Tr = (e) => e ? $p(e) ? Ua(e) : Tr(e.parent) : null, Fi = (\n // Move PURE marker to new line to workaround compiler discarding it\n // due to type annotation\n /* @__PURE__ */ qe(/* @__PURE__ */ Object.create(null), {\n $: (e) => e,\n $el: (e) => e.vnode.el,\n $data: (e) => e.data,\n $props: (e) => g.NODE_ENV !== \"production\" ? Lt(e.props) : e.props,\n $attrs: (e) => g.NODE_ENV !== \"production\" ? Lt(e.attrs) : e.attrs,\n $slots: (e) => g.NODE_ENV !== \"production\" ? Lt(e.slots) : e.slots,\n $refs: (e) => g.NODE_ENV !== \"production\" ? Lt(e.refs) : e.refs,\n $parent: (e) => Tr(e.parent),\n $root: (e) => Tr(e.root),\n $host: (e) => e.ce,\n $emit: (e) => e.emit,\n $options: (e) => up(e),\n $forceUpdate: (e) => e.f || (e.f = () => {\n Va(e.update);\n }),\n $nextTick: (e) => e.n || (e.n = Zr.bind(e.proxy)),\n $watch: (e) => Df.bind(e)\n })\n), os = (e) => e === \"_\" || e === \"$\", lo = (e, t) => e !== he && !e.__isScriptSetup && ue(e, t), lp = {\n get({ _: e }, t) {\n if (t === \"__v_skip\")\n return !0;\n const { ctx: i, setupState: n, data: a, props: o, accessCache: r, type: s, appContext: c } = e;\n if (g.NODE_ENV !== \"production\" && t === \"__isVue\")\n return !0;\n let l;\n if (t[0] !== \"$\") {\n const d = r[t];\n if (d !== void 0)\n switch (d) {\n case 1:\n return n[t];\n case 2:\n return a[t];\n case 4:\n return i[t];\n case 3:\n return o[t];\n }\n else {\n if (lo(n, t))\n return r[t] = 1, n[t];\n if (a !== he && ue(a, t))\n return r[t] = 2, a[t];\n if (\n // only cache other properties when instance has declared (thus stable)\n // props\n (l = e.propsOptions[0]) && ue(l, t)\n )\n return r[t] = 3, o[t];\n if (i !== he && ue(i, t))\n return r[t] = 4, i[t];\n jr && (r[t] = 0);\n }\n }\n const p = Fi[t];\n let u, m;\n if (p)\n return t === \"$attrs\" ? (ze(e.attrs, \"get\", \"\"), g.NODE_ENV !== \"production\" && Na()) : g.NODE_ENV !== \"production\" && t === \"$slots\" && ze(e, \"get\", t), p(e);\n if (\n // css module (injected by vue-loader)\n (u = s.__cssModules) && (u = u[t])\n )\n return u;\n if (i !== he && ue(i, t))\n return r[t] = 4, i[t];\n if (\n // global properties\n m = c.config.globalProperties, ue(m, t)\n )\n return m[t];\n g.NODE_ENV !== \"production\" && Ve && (!je(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading\n // to infinite warning loop\n t.indexOf(\"__v\") !== 0) && (a !== he && os(t[0]) && ue(a, t) ? R(\n `Property ${JSON.stringify(\n t\n )} must be accessed via $data because it starts with a reserved character (\"$\" or \"_\") and is not proxied on the render context.`\n ) : e === Ve && R(\n `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`\n ));\n },\n set({ _: e }, t, i) {\n const { data: n, setupState: a, ctx: o } = e;\n return lo(a, t) ? (a[t] = i, !0) : g.NODE_ENV !== \"production\" && a.__isScriptSetup && ue(a, t) ? (R(`Cannot mutate + + - - - -
-

Playground

-

This HTML file mimics Drupal's loading behaviour

- -
-
- -
-
- - - - - - diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js index 294130f6c..c51269c9e 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js +++ b/modules/tide_api/modules/tide_content_collection_ui/app/src/index.js @@ -17,7 +17,7 @@ import '@dpc-sdp/tide-content-collection-ui/styles' form: getJson(field.value), config: getJson(config), update: (form) => (field.value = setJson(form)), - baseUrl: import.meta.env.VITE_API_URL || window.location.origin + baseUrl: window.location.origin }) } }) From 948df5e00f1e881ef7a50e06eff6a2b7130c9611 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Tue, 20 Jan 2026 15:30:17 +1100 Subject: [PATCH 24/25] chore: update tide-content-collection-ui package version --- .../tide_content_collection_ui/app/package-lock.json | 8 ++++---- .../modules/tide_content_collection_ui/app/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json index 03e3b6303..b5fa41b19 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@dpc-sdp/tide-content-collection-ui": "0.1.0-alpha.14" + "@dpc-sdp/tide-content-collection-ui": "0.1.1" }, "devDependencies": { "vite": "^7.3.0" @@ -112,9 +112,9 @@ } }, "node_modules/@dpc-sdp/tide-content-collection-ui": { - "version": "0.1.0-alpha.14", - "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-content-collection-ui/0.1.0-alpha.14/b2853827aac0576be213df8a5eb62014f348065c", - "integrity": "sha512-naMuBqTXb/VXZcnY5HP0mxQMH6zLc2IOvnWNT2cSpCQSioon0qvvCIB+5mNkPzPdkCYQbKvRlus9mztYnVogzQ==", + "version": "0.1.1", + "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-content-collection-ui/0.1.1/e8fbfad0a0d6c16962da8800530e5027342142eb", + "integrity": "sha512-qD8DhBTlnUQx0O7CS0a1nS9Na3Od6c63GC9BZrrvlD1lwosEkK9TmE1mE5gI3NyWVFfTcPRKnqsicmmBV3/W2w==", "dependencies": { "@dpc-sdp/tide-api-client": "0.2.0", "@vueuse/integrations": "^14.1.0", diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package.json b/modules/tide_api/modules/tide_content_collection_ui/app/package.json index 76209e26f..21761c73a 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/package.json +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package.json @@ -4,7 +4,7 @@ "build": "vite build" }, "dependencies": { - "@dpc-sdp/tide-content-collection-ui": "0.1.0-alpha.14" + "@dpc-sdp/tide-content-collection-ui": "0.1.1" }, "devDependencies": { "vite": "^7.3.0" From 30a724174fb38b961a897c3a48524143aeca0996 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Tue, 27 Jan 2026 17:00:36 +1100 Subject: [PATCH 25/25] chore: update tide-content-collection-ui package version --- .../app/dist/main.js | 18 +++++++++--------- .../app/package-lock.json | 8 ++++---- .../app/package.json | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js index 7afc391b6..4aa1a4d72 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js +++ b/modules/tide_api/modules/tide_content_collection_ui/app/dist/main.js @@ -1,17 +1,17 @@ -(function(){"use strict";var ys=document.createElement("style");ys.textContent=`.tide-form :where(input[type=text],input[type=number],textarea,select,button):focus{box-shadow:var(--tide-shadow-focus)}.tide-form__element{width:100%;padding:var(--tide-space-4) var(--tide-space-5);color:var(--tide-colour-text);border:var(--tide-border-width-1) solid var(--tide-border-colour);border-radius:var(--tide-border-radius-1);appearance:none}.tide-form__element:hover{border-color:var(--tide-border-colour-hover);box-shadow:var(--tide-border-shadow-hover)}.tide-form__element:is(select,input[type=text],input[type=number]){min-height:48px;font-size:inherit;background-color:var(--tide-colour-white)}.tide-form__label{display:block;font-size:var(--tide-font-size-3);margin-bottom:var(--tide-space-2);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-3)}.tide-form__description{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);line-height:var(--tide-line-height-3);margin-top:var(--tide-space-2)}.tide-form__error{color:var(--tide-colour-error);font-size:var(--tide-font-size-3)}.tide-fieldset[data-v-da18ce75]{margin:0;position:relative;padding-inline:var(--tide-space-6);padding-block:var(--tide-space-9) var(--tide-space-6);background-color:var(--tide-colour-white);border-radius:var(--tide-border-radius-1);border:var(--tide-border-width-1) solid var(--tide-colour-grey);box-shadow:var(--tide-shadow-2)}.tide-fieldset__legend[data-v-da18ce75]{position:absolute;display:block;width:calc(100% - var(--tide-space-6) * 2);left:var(--tide-space-6);top:var(--tide-space-5);padding-inline:0;padding-block:0 var(--tide-space-3);font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-3);border-bottom:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-fieldset__required[data-v-da18ce75]{color:var(--tide-colour-error);font-weight:var(--tide-font-weight-1)}.tide-fieldset__description[data-v-da18ce75]{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);margin-block:calc(var(--tide-space-4) * -1) var(--tide-space-6)}.tide-fieldset+.tide-fieldset[data-v-da18ce75]{margin-top:var(--tide-space-5)}.tide-fieldset[data-v-da18ce75]>*:last-child{margin-bottom:0}.tide-fieldset[data-v-da18ce75]>*:where(.tide-field-group,.tide-field)+*:where(.tide-field-group,.tide-field){margin-top:var(--tide-space-5);padding-top:var(--tide-space-5);border-top:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-field:has(input:disabled,select:disabled,textarea:disabled){opacity:.5;pointer-events:none}.tide-field__label{font:inherit}.tide-field__required{color:var(--tide-colour-error)}.tide-option-button[data-v-378f24ab]{display:flex;align-items:center;padding-block:var(--tide-space-1);padding-inline:var(--tide-space-1) var(--tide-space-5);min-height:90px;cursor:pointer}.tide-option-button .tide-form__label[data-v-378f24ab]{font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-2)}.tide-option-button[aria-disabled=true][data-v-378f24ab]{opacity:.5;pointer-events:none}.tide-option-button__image[data-v-378f24ab]{display:flex;align-items:center;justify-content:center;align-self:stretch;pointer-events:none;background-image:none;padding:var(--tide-space-6);background-color:var(--tide-colour-grey-light)}.tide-option-button__icon[data-v-378f24ab]{width:50px;height:auto}.tide-option-button__main[data-v-378f24ab]{flex:1;display:flex;flex-direction:column;justify-content:center;padding:var(--tide-space-4) var(--tide-space-3)}.tide-option-button__input[data-v-378f24ab]{outline:none;box-shadow:none;scale:1.5}.tide-option-button[data-v-378f24ab]:focus-within{box-shadow:var(--tide-shadow-focus)}.tide-option-group[data-v-0c7fefd7]{display:grid;gap:var(--tide-space-2) var(--tide-space-5);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.tide-button{font:inherit;margin:0;padding:calc(var(--tide-space-5) - 1px) var(--tide-space-6);display:flex;align-items:center;justify-content:center;text-align:center;border:none;color:var(--tide-colour-text);border-radius:var(--tide-border-radius-1);background-color:var(--tide-colour-grey);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-2);box-shadow:var(--tide-shadow-1);cursor:pointer}.tide-button:focus-visible{outline:none}.tide-button:not([disabled]):hover{filter:brightness(.9)}.tide-button[disabled]{opacity:.5;filter:grayscale(1);cursor:not-allowed}.tide-button--small{font-size:var(--tide-font-size-2);line-height:var(--tide-line-height-1);padding:var(--tide-space-3) var(--tide-space-4)}.tide-button--large{font-size:var(--tide-font-size-4);line-height:var(--tide-line-height-3);padding:var(--tide-space-6) var(--tide-space-7)}.tide-button--primary{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-button--danger{color:var(--tide-colour-white);background-color:var(--tide-colour-error)}.tide-button--plain{all:unset;text-decoration:underline;cursor:pointer}.tide-field-group__content[data-v-787c34d8]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group--repeatable .tide-field-group__content[data-v-787c34d8]{display:block}.tide-field-group__action[data-v-787c34d8]{margin-top:var(--tide-space-6)}.tide-dropdown-list[data-v-5ecc9ddc]{position:relative}.tide-dropdown-list:focus-within .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{box-shadow:var(--tide-shadow-focus)}.tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{display:flex;flex-wrap:wrap;flex-direction:row;gap:var(--tide-space-4) var(--tide-space-2);padding-block:var(--tide-space-3);padding-right:var(--tide-space-7);background-color:var(--tide-colour-white);min-height:48px}.tide-dropdown-list__input[data-v-5ecc9ddc]{flex:1;padding:0;border:none;width:125px;min-height:auto;font:inherit}.tide-dropdown-list__input[data-v-5ecc9ddc]:focus{border:none;box-shadow:none;outline:none}.tide-dropdown-list__input[data-v-5ecc9ddc]:disabled{background-color:transparent}.tide-dropdown-list__tags[data-v-5ecc9ddc]{display:contents}.tide-dropdown-list__tag[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:space-between;gap:var(--tide-space-3);font-weight:500;font-size:var(--tide-font-size-2);border-radius:1rem;background-color:var(--tide-colour-grey);padding:var(--tide-space-1) var(--tide-space-4);margin-block:var(--tide-space-1)}.tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:1px solid var(--tide-colour-focus);outline-offset:1px}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:center;border:none;color:var(--tide-colour-grey);background-color:var(--tide-colour-grey-dark);border-radius:50%;margin-right:-4px;cursor:pointer;width:16px;height:16px;padding:var(--tide-space-1);font-size:var(--tide-font-size-1)}.tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-white)}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{color:var(--tide-colour-grey-light)}.tide-dropdown-list__loading-icon[data-v-5ecc9ddc]{position:absolute;top:calc(50% - 9px);right:var(--tide-space-4);fill:var(--tide-colour-grey-dark);pointer-events:none;animation:tideSpin-5ecc9ddc 1s linear infinite}.tide-dropdown-list__menu[data-v-5ecc9ddc]{position:absolute;top:calc(100% + 1px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:0;z-index:99;background-color:var(--tide-colour-white);overscroll-behavior:contain;box-shadow:var(--tide-shadow-2)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]{padding:var(--tide-space-4) var(--tide-space-5);cursor:pointer}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:hover,.tide-dropdown-list__menu-item[aria-current=true][data-v-5ecc9ddc]{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:where([aria-selected=true]){background-color:var(--tide-colour-grey)}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]{cursor:inherit}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]:hover{color:var(--tide-colour-text);background-color:var(--tide-colour-white)}.tide-dropdown-list--single .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{padding-right:var(--tide-space-5)}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]{padding:0;width:100%;font-size:inherit;font-weight:inherit;background-color:transparent}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:none}.tide-dropdown-list--single .tide-dropdown-list__tag-text[data-v-5ecc9ddc]{max-width:calc(100% - var(--tide-space-8))}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{background-color:transparent;width:22px;height:22px}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{background-color:var(--tide-colour-grey-light)}.tide-dropdown-list--single .tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-grey-dark)}@keyframes tideSpin-5ecc9ddc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tide-field-group-row[data-v-375ae602]{display:grid;align-items:center;grid-template-columns:1fr;gap:var(--tide-space-5)}.tide-field-group-row--sortable[data-v-375ae602]{grid-template-columns:auto 1fr}.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:1fr auto}.tide-field-group-row--sortable.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:auto 1fr auto}.tide-field-group-row+.tide-field-group-row[data-v-375ae602]{margin-top:var(--tide-space-3);padding-top:var(--tide-space-3);border-top:var(--tide-border-width-1) solid var(--tide-colour-grey-light)}.tide-field-group-row__content[data-v-375ae602]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group__sort[data-v-375ae602]{cursor:grab;display:flex;margin-right:calc(var(--tide-space-3) * -1)}.tide-field-group__sort svg[data-v-375ae602]{stroke:var(--tide-colour-grey-dark)}.tide-field-group-row__action-button[data-v-375ae602]{translate:0 -1px}.tide-radio[data-v-df50077b]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-radio--inline[data-v-df50077b]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-radio__label[data-v-df50077b]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-radio__input[data-v-df50077b]{margin:0;scale:1.25}.tide-radio__input[data-v-df50077b]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-checkbox[data-v-3a00e669]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-checkbox--inline[data-v-3a00e669]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-checkbox__label[data-v-3a00e669]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-checkbox__input[data-v-3a00e669]{scale:1.25}.tide-checkbox__input[data-v-3a00e669]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-collection{--tide-space-1: .125rem;--tide-space-2: .25rem;--tide-space-3: .5rem;--tide-space-4: .75rem;--tide-space-5: 1rem;--tide-space-6: 1.5rem;--tide-space-7: 2.5rem;--tide-space-8: 3.25rem;--tide-space-9: 4.5rem;--tide-font-size-1: .702rem;--tide-font-size-2: .79rem;--tide-font-size-3: .889rem;--tide-font-size-4: 1.125rem;--tide-font-size-5: 1.266rem;--tide-font-size-6: 1.424rem;--tide-font-size-7: 1.602rem;--tide-font-weight-1: 400;--tide-font-weight-2: 600;--tide-font-weight-3: 700;--tide-line-height-1: .9;--tide-line-height-2: 1.1;--tide-line-height-3: 1.3;--tide-line-height-4: 1.6;--tide-line-height-5: 1.9;--tide-colour-primary: #003ecc;--tide-colour-focus: #26a769;--tide-colour-error: #dc2323;--tide-colour-text: #232429;--tide-colour-white: #ffffff;--tide-colour-grey: #dedfe4;--tide-colour-grey-light: #f5f8ff;--tide-colour-grey-dark: #828388;--tide-border-width-1: 1px;--tide-border-width-2: 2px;--tide-border-width-3: 4px;--tide-border-colour: #919297;--tide-border-colour-hover: var(--tide-colour-text);--tide-border-radius-1: 2px;--tide-border-radius-2: 4px;--tide-border-radius-3: 6px;--tide-border-radius-4: 8px;--tide-border-radius-5: 50%;--tide-border-shadow-hover: inset 0 0 0 1px var(--tide-colour-text);--tide-shadow-1: 0 1px 2px rgba(0, 0, 0, .25);--tide-shadow-2: 0 2px 4px rgba(0, 0, 0, .1);--tide-shadow-focus: 0 0 0 2px var(--tide-colour-white), 0 0 0 5px var(--tide-colour-focus);--tide-outline-focus: 2px var(--tide-colour-focus) solid;accent-color:var(--tide-colour-primary);border-radius:var(--tide-border-radius-1)}.tide-collection *,.tide-collection *:before,.tide-collection *:after{box-sizing:border-box}.tide-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;pointer-events:none} -/*$vite$:1*/`,document.head.appendChild(ys);function so(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},Fn=[],Rt=()=>{},ws=()=>!1,Ka=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),co=e=>e.startsWith("onUpdate:"),He=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uf=Object.prototype.hasOwnProperty,me=(e,t)=>uf.call(e,t),ae=Array.isArray,Ln=e=>Ha(e)==="[object Map]",_s=e=>Ha(e)==="[object Set]",X=e=>typeof e=="function",Pe=e=>typeof e=="string",Jt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",ks=e=>(Se(e)||X(e))&&X(e.then)&&X(e.catch),js=Object.prototype.toString,Ha=e=>js.call(e),df=e=>Ha(e).slice(8,-1),Ss=e=>Ha(e)==="[object Object]",po=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ha=so(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ga=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ff=/-\w/g,yt=Ga(e=>e.replace(ff,t=>t.slice(1).toUpperCase())),mf=/\B([A-Z])/g,cn=Ga(e=>e.replace(mf,"-$1").toLowerCase()),Ya=Ga(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ga(e=>e?`on${Ya(e)}`:""),ln=(e,t)=>!Object.is(e,t),Qa=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Os;const Xa=()=>Os||(Os=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mo(e){if(ae(e)){const t={};for(let n=0;n{if(n){const a=n.split(hf);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function Ot(e){let t="";if(Pe(e))t=e;else if(ae(e))for(let n=0;n!!(e&&e.__v_isRef===!0),st=e=>Pe(e)?e:e==null?"":ae(e)||Se(e)&&(e.toString===js||!X(e.toString))?As(e)?st(e.value):JSON.stringify(e,Is,2):String(e),Is=(e,t)=>As(t)?Is(e,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,i],o)=>(n[vo(a,o)+" =>"]=i,n),{})}:_s(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vo(n))}:Jt(t)?vo(t):Se(t)&&!ae(t)&&!Ss(t)?String(t):t,vo=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ge;class wf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Ge=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(ba){let t=ba;for(ba=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ga;){let t=ga;for(ga=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Ds(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Rs(e){let t,n=e.depsTail,a=n;for(;a;){const i=a.prevDep;a.version===-1?(a===n&&(n=i),yo(a),kf(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=i}e.deps=t,e.depsTail=n}function xo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($s(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $s(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xa)||(e.globalVersion=xa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xo(e))))return;e.flags|=2;const t=e.dep,n=xe,a=zt;xe=e,zt=!0;try{Ds(e);const i=e.fn(e._value);(t.version===0||ln(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{xe=n,zt=a,Rs(e),e.flags&=-3}}function yo(e,t=!1){const{dep:n,prevSub:a,nextSub:i}=e;if(a&&(a.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)yo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function kf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const Ns=[];function $t(){Ns.push(zt),zt=!1}function Nt(){const e=Ns.pop();zt=e===void 0?!0:e}function Fs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let xa=0;class jf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xe||!zt||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new jf(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,Ls(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=a)}return n}trigger(t){this.version++,xa++,this.notify(t)}notify(t){go();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bo()}}}function Ls(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)Ls(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _o=new WeakMap,kn=Symbol(""),ko=Symbol(""),ya=Symbol("");function Ye(e,t,n){if(zt&&xe){let a=_o.get(e);a||_o.set(e,a=new Map);let i=a.get(n);i||(a.set(n,i=new wo),i.map=a,i.key=n),i.track()}}function Kt(e,t,n,a,i,o){const r=_o.get(e);if(!r){xa++;return}const s=c=>{c&&c.trigger()};if(go(),t==="clear")r.forEach(s);else{const c=ae(e),l=c&&po(n);if(c&&n==="length"){const p=Number(a);r.forEach((d,v)=>{(v==="length"||v===ya||!Jt(v)&&v>=p)&&s(d)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),l&&s(r.get(ya)),t){case"add":c?l&&s(r.get("length")):(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"delete":c||(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"set":Ln(e)&&s(r.get(kn));break}}bo()}function Un(e){const t=ue(e);return t===e?t:(Ye(t,"iterate",ya),wt(e)?t:t.map(At))}function ei(e){return Ye(e=ue(e),"iterate",ya),e}function pn(e,t){return Gt(e)?jn(e)?qn(At(t)):qn(t):At(t)}const Sf={__proto__:null,[Symbol.iterator](){return jo(this,Symbol.iterator,e=>pn(this,e))},concat(...e){return Un(this).concat(...e.map(t=>ae(t)?Un(t):t))},entries(){return jo(this,"entries",e=>(e[1]=pn(this,e[1]),e))},every(e,t){return Ht(this,"every",e,t,void 0,arguments)},filter(e,t){return Ht(this,"filter",e,t,n=>n.map(a=>pn(this,a)),arguments)},find(e,t){return Ht(this,"find",e,t,n=>pn(this,n),arguments)},findIndex(e,t){return Ht(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ht(this,"findLast",e,t,n=>pn(this,n),arguments)},findLastIndex(e,t){return Ht(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ht(this,"forEach",e,t,void 0,arguments)},includes(...e){return So(this,"includes",e)},indexOf(...e){return So(this,"indexOf",e)},join(e){return Un(this).join(e)},lastIndexOf(...e){return So(this,"lastIndexOf",e)},map(e,t){return Ht(this,"map",e,t,void 0,arguments)},pop(){return wa(this,"pop")},push(...e){return wa(this,"push",e)},reduce(e,...t){return Us(this,"reduce",e,t)},reduceRight(e,...t){return Us(this,"reduceRight",e,t)},shift(){return wa(this,"shift")},some(e,t){return Ht(this,"some",e,t,void 0,arguments)},splice(...e){return wa(this,"splice",e)},toReversed(){return Un(this).toReversed()},toSorted(e){return Un(this).toSorted(e)},toSpliced(...e){return Un(this).toSpliced(...e)},unshift(...e){return wa(this,"unshift",e)},values(){return jo(this,"values",e=>pn(this,e))}};function jo(e,t,n){const a=ei(e),i=a[t]();return a!==e&&!wt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Ef=Array.prototype;function Ht(e,t,n,a,i,o){const r=ei(e),s=r!==e&&!wt(e),c=r[t];if(c!==Ef[t]){const d=c.apply(e,o);return s?At(d):d}let l=n;r!==e&&(s?l=function(d,v){return n.call(this,pn(e,d),v,e)}:n.length>2&&(l=function(d,v){return n.call(this,d,v,e)}));const p=c.call(r,l,a);return s&&i?i(p):p}function Us(e,t,n,a){const i=ei(e);let o=n;return i!==e&&(wt(e)?n.length>3&&(o=function(r,s,c){return n.call(this,r,s,c,e)}):o=function(r,s,c){return n.call(this,r,pn(e,s),c,e)}),i[t](o,...a)}function So(e,t,n){const a=ue(e);Ye(a,"iterate",ya);const i=a[t](...n);return(i===-1||i===!1)&&zo(n[0])?(n[0]=ue(n[0]),a[t](...n)):i}function wa(e,t,n=[]){$t(),go();const a=ue(e)[t].apply(e,n);return bo(),Nt(),a}const Of=so("__proto__,__v_isRef,__isVue"),qs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt));function zf(e){Jt(e)||(e=String(e));const t=ue(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Bs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return a===(i?o?Hs:Ks:o?Js:Vs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=ae(t);if(!i){let c;if(r&&(c=Sf[n]))return c;if(n==="hasOwnProperty")return zf}const s=Reflect.get(t,n,Ze(t)?t:a);if((Jt(n)?qs.has(n):Of(n))||(i||Ye(t,"get",n),o))return s;if(Ze(s)){const c=r&&po(n)?s:s.value;return i&&Se(c)?Oo(c):c}return Se(s)?i?Oo(s):ii(s):s}}class Zs extends Bs{constructor(t=!1){super(!1,t)}set(t,n,a,i){let o=t[n];const r=ae(t)&&po(n);if(!this._isShallow){const l=Gt(o);if(!wt(a)&&!Gt(a)&&(o=ue(o),a=ue(a)),!r&&Ze(o)&&!Ze(a))return l||(o.value=a),!0}const s=r?Number(n)e,ti=e=>Reflect.getPrototypeOf(e);function Tf(e,t,n){return function(...a){const i=this.__v_raw,o=ue(i),r=Ln(o),s=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,l=i[e](...a),p=n?Eo:t?qn:At;return!t&&Ye(o,"iterate",c?ko:kn),{next(){const{value:d,done:v}=l.next();return v?{value:d,done:v}:{value:s?[p(d[0]),p(d[1])]:p(d),done:v}},[Symbol.iterator](){return this}}}}function ni(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Mf(e,t){const n={get(a){const i=this.__v_raw,o=ue(i),r=ue(a);e||(ln(a,r)&&Ye(o,"get",a),Ye(o,"get",r));const{has:s}=ti(o),c=t?Eo:e?qn:At;if(s.call(o,a))return c(i.get(a));if(s.call(o,r))return c(i.get(r));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!e&&Ye(ue(a),"iterate",kn),a.size},has(a){const i=this.__v_raw,o=ue(i),r=ue(a);return e||(ln(a,r)&&Ye(o,"has",a),Ye(o,"has",r)),a===r?i.has(a):i.has(a)||i.has(r)},forEach(a,i){const o=this,r=o.__v_raw,s=ue(r),c=t?Eo:e?qn:At;return!e&&Ye(s,"iterate",kn),r.forEach((l,p)=>a.call(i,c(l),c(p),o))}};return He(n,e?{add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear")}:{add(a){!t&&!wt(a)&&!Gt(a)&&(a=ue(a));const i=ue(this);return ti(i).has.call(i,a)||(i.add(a),Kt(i,"add",a,a)),this},set(a,i){!t&&!wt(i)&&!Gt(i)&&(i=ue(i));const o=ue(this),{has:r,get:s}=ti(o);let c=r.call(o,a);c||(a=ue(a),c=r.call(o,a));const l=s.call(o,a);return o.set(a,i),c?ln(i,l)&&Kt(o,"set",a,i):Kt(o,"add",a,i),this},delete(a){const i=ue(this),{has:o,get:r}=ti(i);let s=o.call(i,a);s||(a=ue(a),s=o.call(i,a)),r&&r.call(i,a);const c=i.delete(a);return s&&Kt(i,"delete",a,void 0),c},clear(){const a=ue(this),i=a.size!==0,o=a.clear();return i&&Kt(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=Tf(a,e,t)}),n}function ai(e,t){const n=Mf(e,t);return(a,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?a:Reflect.get(me(n,i)&&i in a?n:a,i,o)}const Df={get:ai(!1,!1)},Rf={get:ai(!1,!0)},$f={get:ai(!0,!1)},Nf={get:ai(!0,!0)},Vs=new WeakMap,Js=new WeakMap,Ks=new WeakMap,Hs=new WeakMap;function Ff(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lf(e){return e.__v_skip||!Object.isExtensible(e)?0:Ff(df(e))}function ii(e){return Gt(e)?e:oi(e,!1,Af,Df,Vs)}function Uf(e){return oi(e,!1,Pf,Rf,Js)}function Oo(e){return oi(e,!0,If,$f,Ks)}function R0(e){return oi(e,!0,Cf,Nf,Hs)}function oi(e,t,n,a,i){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Lf(e);if(o===0)return e;const r=i.get(e);if(r)return r;const s=new Proxy(e,o===2?a:n);return i.set(e,s),s}function jn(e){return Gt(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function wt(e){return!!(e&&e.__v_isShallow)}function zo(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function qf(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&Es(e,"__v_skip",!0),e}const At=e=>Se(e)?ii(e):e,qn=e=>Se(e)?Oo(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function It(e){return Ys(e,!1)}function Gs(e){return Ys(e,!0)}function Ys(e,t){return Ze(e)?e:new Bf(e,t)}class Bf{constructor(t,n){this.dep=new wo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||wt(t)||Gt(t);t=a?t:ue(t),ln(t,n)&&(this._rawValue=t,this._value=a?t:At(t),this.dep.trigger())}}function un(e){return Ze(e)?e.value:e}function Ao(e){return X(e)?e():un(e)}const Zf={get:(e,t,n)=>t==="__v_raw"?e:un(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,a)}};function Qs(e){return jn(e)?e:new Proxy(e,Zf)}class Wf{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new wo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return Ms(this,!0),!0}get value(){const t=this.dep.track();return $s(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vf(e,t,n=!1){let a,i;return X(e)?a=e:(a=e.get,i=e.set),new Wf(a,i,n)}const ri={},si=new WeakMap;let Sn;function Jf(e,t=!1,n=Sn){if(n){let a=si.get(n);a||si.set(n,a=[]),a.push(e)}}function Kf(e,t,n=be){const{immediate:a,deep:i,once:o,scheduler:r,augmentJob:s,call:c}=n,l=z=>i?z:wt(z)||i===!1||i===0?Yt(z,1):Yt(z);let p,d,v,u,h=!1,f=!1;if(Ze(e)?(d=()=>e.value,h=wt(e)):jn(e)?(d=()=>l(e),h=!0):ae(e)?(f=!0,h=e.some(z=>jn(z)||wt(z)),d=()=>e.map(z=>{if(Ze(z))return z.value;if(jn(z))return l(z);if(X(z))return c?c(z,2):z()})):X(e)?t?d=c?()=>c(e,2):e:d=()=>{if(v){$t();try{v()}finally{Nt()}}const z=Sn;Sn=p;try{return c?c(e,3,[u]):e(u)}finally{Sn=z}}:d=Rt,t&&i){const z=d,B=i===!0?1/0:i;d=()=>Yt(z(),B)}const T=Ps(),w=()=>{p.stop(),T&&T.active&&lo(T.effects,p)};if(o&&t){const z=t;t=(...B)=>{z(...B),w()}}let _=f?new Array(e.length).fill(ri):ri;const A=z=>{if(!(!(p.flags&1)||!p.dirty&&!z))if(t){const B=p.run();if(i||h||(f?B.some((S,E)=>ln(S,_[E])):ln(B,_))){v&&v();const S=Sn;Sn=p;try{const E=[B,_===ri?void 0:f&&_[0]===ri?[]:_,u];_=B,c?c(t,3,E):t(...E)}finally{Sn=S}}}else p.run()};return s&&s(A),p=new Cs(d),p.scheduler=r?()=>r(A,!1):A,u=z=>Jf(z,!1,p),v=p.onStop=()=>{const z=si.get(p);if(z){if(c)c(z,4);else for(const B of z)B();si.delete(p)}},t?a?A(!0):_=p.run():r?r(A.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function Yt(e,t=1/0,n){if(t<=0||!Se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ze(e))Yt(e.value,t,n);else if(ae(e))for(let a=0;a{Yt(a,t,n)});else if(Ss(e)){for(const a in e)Yt(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Yt(e[a],t,n)}return e}const _a=[];let Io=!1;function $0(e,...t){if(Io)return;Io=!0,$t();const n=_a.length?_a[_a.length-1].component:null,a=n&&n.appContext.config.warnHandler,i=Hf();if(a)Bn(a,n,11,[e+t.map(o=>{var r,s;return(s=(r=o.toString)==null?void 0:r.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Hc(n,o.type)}>`).join(` +(function(){"use strict";var ws=document.createElement("style");ws.textContent=`.tide-form :where(input[type=text],input[type=number],textarea,select,button):focus{box-shadow:var(--tide-shadow-focus)}.tide-form__element{width:100%;padding:var(--tide-space-4) var(--tide-space-5);color:var(--tide-colour-text);border:var(--tide-border-width-1) solid var(--tide-border-colour);border-radius:var(--tide-border-radius-1);appearance:none}.tide-form__element:hover{border-color:var(--tide-border-colour-hover);box-shadow:var(--tide-border-shadow-hover)}.tide-form__element:is(select,input[type=text],input[type=number]){min-height:48px;font-size:inherit;background-color:var(--tide-colour-white)}.tide-form__label{display:block;font-size:var(--tide-font-size-3);margin-bottom:var(--tide-space-2);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-3)}.tide-form__description{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);line-height:var(--tide-line-height-3);margin-top:var(--tide-space-2)}.tide-form__error{color:var(--tide-colour-error);font-size:var(--tide-font-size-3)}.tide-fieldset[data-v-da18ce75]{margin:0;position:relative;padding-inline:var(--tide-space-6);padding-block:var(--tide-space-9) var(--tide-space-6);background-color:var(--tide-colour-white);border-radius:var(--tide-border-radius-1);border:var(--tide-border-width-1) solid var(--tide-colour-grey);box-shadow:var(--tide-shadow-2)}.tide-fieldset__legend[data-v-da18ce75]{position:absolute;display:block;width:calc(100% - var(--tide-space-6) * 2);left:var(--tide-space-6);top:var(--tide-space-5);padding-inline:0;padding-block:0 var(--tide-space-3);font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-3);border-bottom:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-fieldset__required[data-v-da18ce75]{color:var(--tide-colour-error);font-weight:var(--tide-font-weight-1)}.tide-fieldset__description[data-v-da18ce75]{color:var(--tide-colour-grey-dark);font-size:var(--tide-font-size-3);margin-block:calc(var(--tide-space-4) * -1) var(--tide-space-6)}.tide-fieldset+.tide-fieldset[data-v-da18ce75]{margin-top:var(--tide-space-5)}.tide-fieldset[data-v-da18ce75]>*:last-child{margin-bottom:0}.tide-fieldset[data-v-da18ce75]>*:where(.tide-field-group,.tide-field)+*:where(.tide-field-group,.tide-field){margin-top:var(--tide-space-5);padding-top:var(--tide-space-5);border-top:var(--tide-border-width-2) solid var(--tide-colour-grey-light)}.tide-field:has(input:disabled,select:disabled,textarea:disabled){opacity:.5;pointer-events:none}.tide-field__label{font:inherit}.tide-field__required{color:var(--tide-colour-error)}.tide-option-button[data-v-378f24ab]{display:flex;align-items:center;padding-block:var(--tide-space-1);padding-inline:var(--tide-space-1) var(--tide-space-5);min-height:90px;cursor:pointer}.tide-option-button .tide-form__label[data-v-378f24ab]{font-size:var(--tide-font-size-4);font-weight:var(--tide-font-weight-2)}.tide-option-button[aria-disabled=true][data-v-378f24ab]{opacity:.5;pointer-events:none}.tide-option-button__image[data-v-378f24ab]{display:flex;align-items:center;justify-content:center;align-self:stretch;pointer-events:none;background-image:none;padding:var(--tide-space-6);background-color:var(--tide-colour-grey-light)}.tide-option-button__icon[data-v-378f24ab]{width:50px;height:auto}.tide-option-button__main[data-v-378f24ab]{flex:1;display:flex;flex-direction:column;justify-content:center;padding:var(--tide-space-4) var(--tide-space-3)}.tide-option-button__input[data-v-378f24ab]{outline:none;box-shadow:none;scale:1.5}.tide-option-button[data-v-378f24ab]:focus-within{box-shadow:var(--tide-shadow-focus)}.tide-option-group[data-v-0c7fefd7]{display:grid;gap:var(--tide-space-2) var(--tide-space-5);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.tide-dropdown-list[data-v-5ecc9ddc]{position:relative}.tide-dropdown-list:focus-within .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{box-shadow:var(--tide-shadow-focus)}.tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{display:flex;flex-wrap:wrap;flex-direction:row;gap:var(--tide-space-4) var(--tide-space-2);padding-block:var(--tide-space-3);padding-right:var(--tide-space-7);background-color:var(--tide-colour-white);min-height:48px}.tide-dropdown-list__input[data-v-5ecc9ddc]{flex:1;padding:0;border:none;width:125px;min-height:auto;font:inherit}.tide-dropdown-list__input[data-v-5ecc9ddc]:focus{border:none;box-shadow:none;outline:none}.tide-dropdown-list__input[data-v-5ecc9ddc]:disabled{background-color:transparent}.tide-dropdown-list__tags[data-v-5ecc9ddc]{display:contents}.tide-dropdown-list__tag[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:space-between;gap:var(--tide-space-3);font-weight:500;font-size:var(--tide-font-size-2);border-radius:1rem;background-color:var(--tide-colour-grey);padding:var(--tide-space-1) var(--tide-space-4);margin-block:var(--tide-space-1)}.tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:1px solid var(--tide-colour-focus);outline-offset:1px}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{display:flex;align-items:center;justify-content:center;border:none;color:var(--tide-colour-grey);background-color:var(--tide-colour-grey-dark);border-radius:50%;margin-right:-4px;cursor:pointer;width:16px;height:16px;padding:var(--tide-space-1);font-size:var(--tide-font-size-1)}.tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-white)}.tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{color:var(--tide-colour-grey-light)}.tide-dropdown-list__loading-icon[data-v-5ecc9ddc]{position:absolute;top:calc(50% - 9px);right:var(--tide-space-4);fill:var(--tide-colour-grey-dark);pointer-events:none;animation:tideSpin-5ecc9ddc 1s linear infinite}.tide-dropdown-list__menu[data-v-5ecc9ddc]{position:absolute;top:calc(100% + 1px);left:0;right:0;max-height:300px;overflow:auto;margin:0;padding:0;z-index:99;background-color:var(--tide-colour-white);overscroll-behavior:contain;box-shadow:var(--tide-shadow-2)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]{padding:var(--tide-space-4) var(--tide-space-5);cursor:pointer}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:hover,.tide-dropdown-list__menu-item[aria-current=true][data-v-5ecc9ddc]{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-dropdown-list__menu-item[data-v-5ecc9ddc]:where([aria-selected=true]){background-color:var(--tide-colour-grey)}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]{cursor:inherit}.tide-dropdown-list__menu-empty[data-v-5ecc9ddc]:hover{color:var(--tide-colour-text);background-color:var(--tide-colour-white)}.tide-dropdown-list--single .tide-dropdown-list__autocomplete[data-v-5ecc9ddc]{padding-right:var(--tide-space-5)}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]{padding:0;width:100%;font-size:inherit;font-weight:inherit;background-color:transparent}.tide-dropdown-list--single .tide-dropdown-list__tag[data-v-5ecc9ddc]:hover{outline:none}.tide-dropdown-list--single .tide-dropdown-list__tag-text[data-v-5ecc9ddc]{max-width:calc(100% - var(--tide-space-8))}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]{background-color:transparent;width:22px;height:22px}.tide-dropdown-list--single .tide-dropdown-list__tag-remove[data-v-5ecc9ddc]:hover{background-color:var(--tide-colour-grey-light)}.tide-dropdown-list--single .tide-dropdown-list__tag-remove svg[data-v-5ecc9ddc]{stroke:var(--tide-colour-grey-dark)}@keyframes tideSpin-5ecc9ddc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tide-button{font:inherit;margin:0;padding:calc(var(--tide-space-5) - 1px) var(--tide-space-6);display:flex;align-items:center;justify-content:center;text-align:center;border:none;color:var(--tide-colour-text);border-radius:var(--tide-border-radius-1);background-color:var(--tide-colour-grey);font-weight:var(--tide-font-weight-3);line-height:var(--tide-line-height-2);box-shadow:var(--tide-shadow-1);cursor:pointer}.tide-button:focus-visible{outline:none}.tide-button:not([disabled]):hover{filter:brightness(.9)}.tide-button[disabled]{opacity:.5;filter:grayscale(1);cursor:not-allowed}.tide-button--small{font-size:var(--tide-font-size-2);line-height:var(--tide-line-height-1);padding:var(--tide-space-3) var(--tide-space-4)}.tide-button--large{font-size:var(--tide-font-size-4);line-height:var(--tide-line-height-3);padding:var(--tide-space-6) var(--tide-space-7)}.tide-button--primary{color:var(--tide-colour-white);background-color:var(--tide-colour-primary)}.tide-button--danger{color:var(--tide-colour-white);background-color:var(--tide-colour-error)}.tide-button--plain{all:unset;text-decoration:underline;cursor:pointer}.tide-field-group__content[data-v-787c34d8]{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group--repeatable .tide-field-group__content[data-v-787c34d8]{display:block}.tide-field-group__action[data-v-787c34d8]{margin-top:var(--tide-space-6)}.tide-select[data-v-f8930bf0]:invalid{color:var(--tide-colour-grey-dark)}.tide-field-group-row[data-v-375ae602]{display:grid;align-items:center;grid-template-columns:1fr;gap:var(--tide-space-5)}.tide-field-group-row--sortable[data-v-375ae602]{grid-template-columns:auto 1fr}.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:1fr auto}.tide-field-group-row--sortable.tide-field-group-row--removeable[data-v-375ae602]{grid-template-columns:auto 1fr auto}.tide-field-group-row+.tide-field-group-row[data-v-375ae602]{margin-top:var(--tide-space-3);padding-top:var(--tide-space-3);border-top:var(--tide-border-width-1) solid var(--tide-colour-grey-light)}.tide-field-group-row__content[data-v-375ae602]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--tide-space-5) var(--tide-space-6)}.tide-field-group__sort[data-v-375ae602]{cursor:grab;display:flex;margin-right:calc(var(--tide-space-3) * -1)}.tide-field-group__sort svg[data-v-375ae602]{stroke:var(--tide-colour-grey-dark)}.tide-field-group-row__action-button[data-v-375ae602]{translate:0 -1px}.tide-radio[data-v-df50077b]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-radio--inline[data-v-df50077b]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-radio__label[data-v-df50077b]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-radio__input[data-v-df50077b]{margin:0;scale:1.25}.tide-radio__input[data-v-df50077b]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-checkbox[data-v-3a00e669]{display:flex;flex-direction:column;gap:var(--tide-space-3)}.tide-checkbox--inline[data-v-3a00e669]{display:flex;flex-direction:row;gap:var(--tide-space-3) var(--tide-space-6)}.tide-checkbox__label[data-v-3a00e669]{display:flex;align-items:center;gap:var(--tide-space-3)}.tide-checkbox__input[data-v-3a00e669]{scale:1.25}.tide-checkbox__input[data-v-3a00e669]:focus-visible{outline-color:var(--tide-colour-focus)}.tide-collection{--tide-space-1: .125rem;--tide-space-2: .25rem;--tide-space-3: .5rem;--tide-space-4: .75rem;--tide-space-5: 1rem;--tide-space-6: 1.5rem;--tide-space-7: 2.5rem;--tide-space-8: 3.25rem;--tide-space-9: 4.5rem;--tide-font-size-1: .702rem;--tide-font-size-2: .79rem;--tide-font-size-3: .889rem;--tide-font-size-4: 1.125rem;--tide-font-size-5: 1.266rem;--tide-font-size-6: 1.424rem;--tide-font-size-7: 1.602rem;--tide-font-weight-1: 400;--tide-font-weight-2: 600;--tide-font-weight-3: 700;--tide-line-height-1: .9;--tide-line-height-2: 1.1;--tide-line-height-3: 1.3;--tide-line-height-4: 1.6;--tide-line-height-5: 1.9;--tide-colour-primary: #003ecc;--tide-colour-focus: #26a769;--tide-colour-error: #dc2323;--tide-colour-text: #232429;--tide-colour-white: #ffffff;--tide-colour-grey: #dedfe4;--tide-colour-grey-light: #f5f8ff;--tide-colour-grey-dark: #828388;--tide-border-width-1: 1px;--tide-border-width-2: 2px;--tide-border-width-3: 4px;--tide-border-colour: #919297;--tide-border-colour-hover: var(--tide-colour-text);--tide-border-radius-1: 2px;--tide-border-radius-2: 4px;--tide-border-radius-3: 6px;--tide-border-radius-4: 8px;--tide-border-radius-5: 50%;--tide-border-shadow-hover: inset 0 0 0 1px var(--tide-colour-text);--tide-shadow-1: 0 1px 2px rgba(0, 0, 0, .25);--tide-shadow-2: 0 2px 4px rgba(0, 0, 0, .1);--tide-shadow-focus: 0 0 0 2px var(--tide-colour-white), 0 0 0 5px var(--tide-colour-focus);--tide-outline-focus: 2px var(--tide-colour-focus) solid;accent-color:var(--tide-colour-primary);border-radius:var(--tide-border-radius-1)}.tide-collection *,.tide-collection *:before,.tide-collection *:after{box-sizing:border-box}.tide-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0;pointer-events:none} +/*$vite$:1*/`,document.head.appendChild(ws);function so(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},Fn=[],Rt=()=>{},_s=()=>!1,Ka=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),co=e=>e.startsWith("onUpdate:"),He=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pf=Object.prototype.hasOwnProperty,me=(e,t)=>pf.call(e,t),ae=Array.isArray,Ln=e=>Ha(e)==="[object Map]",ks=e=>Ha(e)==="[object Set]",X=e=>typeof e=="function",Pe=e=>typeof e=="string",Kt=e=>typeof e=="symbol",Se=e=>e!==null&&typeof e=="object",js=e=>(Se(e)||X(e))&&X(e.then)&&X(e.catch),Ss=Object.prototype.toString,Ha=e=>Ss.call(e),uf=e=>Ha(e).slice(8,-1),Es=e=>Ha(e)==="[object Object]",po=e=>Pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ha=so(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ga=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},df=/-\w/g,yt=Ga(e=>e.replace(df,t=>t.slice(1).toUpperCase())),ff=/\B([A-Z])/g,cn=Ga(e=>e.replace(ff,"-$1").toLowerCase()),Ya=Ga(e=>e.charAt(0).toUpperCase()+e.slice(1)),uo=Ga(e=>e?`on${Ya(e)}`:""),ln=(e,t)=>!Object.is(e,t),Qa=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zs;const Xa=()=>zs||(zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mo(e){if(ae(e)){const t={};for(let n=0;n{if(n){const a=n.split(vf);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function Ot(e){let t="";if(Pe(e))t=e;else if(ae(e))for(let n=0;n!!(e&&e.__v_isRef===!0),st=e=>Pe(e)?e:e==null?"":ae(e)||Se(e)&&(e.toString===Ss||!X(e.toString))?Is(e)?st(e.value):JSON.stringify(e,Ps,2):String(e),Ps=(e,t)=>Is(t)?Ps(e,t.value):Ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,i],o)=>(n[vo(a,o)+" =>"]=i,n),{})}:ks(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vo(n))}:Kt(t)?vo(t):Se(t)&&!ae(t)&&!Es(t)?String(t):t,vo=(e,t="")=>{var n;return Kt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ge;class yf{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ge,!t&&Ge&&(this.index=(Ge.scopes||(Ge.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Ge=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(ba){let t=ba;for(ba=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ga;){let t=ga;for(ga=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function Rs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $s(e){let t,n=e.depsTail,a=n;for(;a;){const i=a.prevDep;a.version===-1?(a===n&&(n=i),yo(a),_f(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=i}e.deps=t,e.depsTail=n}function xo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ns(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ns(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===xa)||(e.globalVersion=xa,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xo(e))))return;e.flags|=2;const t=e.dep,n=xe,a=zt;xe=e,zt=!0;try{Rs(e);const i=e.fn(e._value);(t.version===0||ln(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{xe=n,zt=a,$s(e),e.flags&=-3}}function yo(e,t=!1){const{dep:n,prevSub:a,nextSub:i}=e;if(a&&(a.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)yo(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function _f(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const Fs=[];function $t(){Fs.push(zt),zt=!1}function Nt(){const e=Fs.pop();zt=e===void 0?!0:e}function Ls(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let xa=0;class kf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class wo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!xe||!zt||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new kf(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,qs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=a)}return n}trigger(t){this.version++,xa++,this.notify(t)}notify(t){go();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{bo()}}}function qs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)qs(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const _o=new WeakMap,kn=Symbol(""),ko=Symbol(""),ya=Symbol("");function Ye(e,t,n){if(zt&&xe){let a=_o.get(e);a||_o.set(e,a=new Map);let i=a.get(n);i||(a.set(n,i=new wo),i.map=a,i.key=n),i.track()}}function Ht(e,t,n,a,i,o){const r=_o.get(e);if(!r){xa++;return}const s=c=>{c&&c.trigger()};if(go(),t==="clear")r.forEach(s);else{const c=ae(e),l=c&&po(n);if(c&&n==="length"){const p=Number(a);r.forEach((d,v)=>{(v==="length"||v===ya||!Kt(v)&&v>=p)&&s(d)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),l&&s(r.get(ya)),t){case"add":c?l&&s(r.get("length")):(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"delete":c||(s(r.get(kn)),Ln(e)&&s(r.get(ko)));break;case"set":Ln(e)&&s(r.get(kn));break}}bo()}function qn(e){const t=ue(e);return t===e?t:(Ye(t,"iterate",ya),wt(e)?t:t.map(At))}function ei(e){return Ye(e=ue(e),"iterate",ya),e}function pn(e,t){return Yt(e)?jn(e)?Un(At(t)):Un(t):At(t)}const jf={__proto__:null,[Symbol.iterator](){return jo(this,Symbol.iterator,e=>pn(this,e))},concat(...e){return qn(this).concat(...e.map(t=>ae(t)?qn(t):t))},entries(){return jo(this,"entries",e=>(e[1]=pn(this,e[1]),e))},every(e,t){return Gt(this,"every",e,t,void 0,arguments)},filter(e,t){return Gt(this,"filter",e,t,n=>n.map(a=>pn(this,a)),arguments)},find(e,t){return Gt(this,"find",e,t,n=>pn(this,n),arguments)},findIndex(e,t){return Gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Gt(this,"findLast",e,t,n=>pn(this,n),arguments)},findLastIndex(e,t){return Gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return So(this,"includes",e)},indexOf(...e){return So(this,"indexOf",e)},join(e){return qn(this).join(e)},lastIndexOf(...e){return So(this,"lastIndexOf",e)},map(e,t){return Gt(this,"map",e,t,void 0,arguments)},pop(){return wa(this,"pop")},push(...e){return wa(this,"push",e)},reduce(e,...t){return Us(this,"reduce",e,t)},reduceRight(e,...t){return Us(this,"reduceRight",e,t)},shift(){return wa(this,"shift")},some(e,t){return Gt(this,"some",e,t,void 0,arguments)},splice(...e){return wa(this,"splice",e)},toReversed(){return qn(this).toReversed()},toSorted(e){return qn(this).toSorted(e)},toSpliced(...e){return qn(this).toSpliced(...e)},unshift(...e){return wa(this,"unshift",e)},values(){return jo(this,"values",e=>pn(this,e))}};function jo(e,t,n){const a=ei(e),i=a[t]();return a!==e&&!wt(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Sf=Array.prototype;function Gt(e,t,n,a,i,o){const r=ei(e),s=r!==e&&!wt(e),c=r[t];if(c!==Sf[t]){const d=c.apply(e,o);return s?At(d):d}let l=n;r!==e&&(s?l=function(d,v){return n.call(this,pn(e,d),v,e)}:n.length>2&&(l=function(d,v){return n.call(this,d,v,e)}));const p=c.call(r,l,a);return s&&i?i(p):p}function Us(e,t,n,a){const i=ei(e);let o=n;return i!==e&&(wt(e)?n.length>3&&(o=function(r,s,c){return n.call(this,r,s,c,e)}):o=function(r,s,c){return n.call(this,r,pn(e,s),c,e)}),i[t](o,...a)}function So(e,t,n){const a=ue(e);Ye(a,"iterate",ya);const i=a[t](...n);return(i===-1||i===!1)&&zo(n[0])?(n[0]=ue(n[0]),a[t](...n)):i}function wa(e,t,n=[]){$t(),go();const a=ue(e)[t].apply(e,n);return bo(),Nt(),a}const Ef=so("__proto__,__v_isRef,__isVue"),Bs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kt));function Of(e){Kt(e)||(e=String(e));const t=ue(this);return Ye(t,"has",e),t.hasOwnProperty(e)}class Zs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return a===(i?o?Gs:Hs:o?Ks:Js).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=ae(t);if(!i){let c;if(r&&(c=jf[n]))return c;if(n==="hasOwnProperty")return Of}const s=Reflect.get(t,n,Ze(t)?t:a);if((Kt(n)?Bs.has(n):Ef(n))||(i||Ye(t,"get",n),o))return s;if(Ze(s)){const c=r&&po(n)?s:s.value;return i&&Se(c)?Oo(c):c}return Se(s)?i?Oo(s):ii(s):s}}class Ws extends Zs{constructor(t=!1){super(!1,t)}set(t,n,a,i){let o=t[n];const r=ae(t)&&po(n);if(!this._isShallow){const l=Yt(o);if(!wt(a)&&!Yt(a)&&(o=ue(o),a=ue(a)),!r&&Ze(o)&&!Ze(a))return l||(o.value=a),!0}const s=r?Number(n)e,ti=e=>Reflect.getPrototypeOf(e);function Cf(e,t,n){return function(...a){const i=this.__v_raw,o=ue(i),r=Ln(o),s=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,l=i[e](...a),p=n?Eo:t?Un:At;return!t&&Ye(o,"iterate",c?ko:kn),{next(){const{value:d,done:v}=l.next();return v?{value:d,done:v}:{value:s?[p(d[0]),p(d[1])]:p(d),done:v}},[Symbol.iterator](){return this}}}}function ni(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Tf(e,t){const n={get(a){const i=this.__v_raw,o=ue(i),r=ue(a);e||(ln(a,r)&&Ye(o,"get",a),Ye(o,"get",r));const{has:s}=ti(o),c=t?Eo:e?Un:At;if(s.call(o,a))return c(i.get(a));if(s.call(o,r))return c(i.get(r));i!==o&&i.get(a)},get size(){const a=this.__v_raw;return!e&&Ye(ue(a),"iterate",kn),a.size},has(a){const i=this.__v_raw,o=ue(i),r=ue(a);return e||(ln(a,r)&&Ye(o,"has",a),Ye(o,"has",r)),a===r?i.has(a):i.has(a)||i.has(r)},forEach(a,i){const o=this,r=o.__v_raw,s=ue(r),c=t?Eo:e?Un:At;return!e&&Ye(s,"iterate",kn),r.forEach((l,p)=>a.call(i,c(l),c(p),o))}};return He(n,e?{add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear")}:{add(a){!t&&!wt(a)&&!Yt(a)&&(a=ue(a));const i=ue(this);return ti(i).has.call(i,a)||(i.add(a),Ht(i,"add",a,a)),this},set(a,i){!t&&!wt(i)&&!Yt(i)&&(i=ue(i));const o=ue(this),{has:r,get:s}=ti(o);let c=r.call(o,a);c||(a=ue(a),c=r.call(o,a));const l=s.call(o,a);return o.set(a,i),c?ln(i,l)&&Ht(o,"set",a,i):Ht(o,"add",a,i),this},delete(a){const i=ue(this),{has:o,get:r}=ti(i);let s=o.call(i,a);s||(a=ue(a),s=o.call(i,a)),r&&r.call(i,a);const c=i.delete(a);return s&&Ht(i,"delete",a,void 0),c},clear(){const a=ue(this),i=a.size!==0,o=a.clear();return i&&Ht(a,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=Cf(a,e,t)}),n}function ai(e,t){const n=Tf(e,t);return(a,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?a:Reflect.get(me(n,i)&&i in a?n:a,i,o)}const Mf={get:ai(!1,!1)},Df={get:ai(!1,!0)},Rf={get:ai(!0,!1)},$f={get:ai(!0,!0)},Js=new WeakMap,Ks=new WeakMap,Hs=new WeakMap,Gs=new WeakMap;function Nf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ff(e){return e.__v_skip||!Object.isExtensible(e)?0:Nf(uf(e))}function ii(e){return Yt(e)?e:oi(e,!1,zf,Mf,Js)}function Lf(e){return oi(e,!1,If,Df,Ks)}function Oo(e){return oi(e,!0,Af,Rf,Hs)}function $0(e){return oi(e,!0,Pf,$f,Gs)}function oi(e,t,n,a,i){if(!Se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ff(e);if(o===0)return e;const r=i.get(e);if(r)return r;const s=new Proxy(e,o===2?a:n);return i.set(e,s),s}function jn(e){return Yt(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function wt(e){return!!(e&&e.__v_isShallow)}function zo(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function qf(e){return!me(e,"__v_skip")&&Object.isExtensible(e)&&Os(e,"__v_skip",!0),e}const At=e=>Se(e)?ii(e):e,Un=e=>Se(e)?Oo(e):e;function Ze(e){return e?e.__v_isRef===!0:!1}function It(e){return Qs(e,!1)}function Ys(e){return Qs(e,!0)}function Qs(e,t){return Ze(e)?e:new Uf(e,t)}class Uf{constructor(t,n){this.dep=new wo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:At(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||wt(t)||Yt(t);t=a?t:ue(t),ln(t,n)&&(this._rawValue=t,this._value=a?t:At(t),this.dep.trigger())}}function un(e){return Ze(e)?e.value:e}function Ao(e){return X(e)?e():un(e)}const Bf={get:(e,t,n)=>t==="__v_raw"?e:un(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const i=e[t];return Ze(i)&&!Ze(n)?(i.value=n,!0):Reflect.set(e,t,n,a)}};function Xs(e){return jn(e)?e:new Proxy(e,Bf)}class Zf{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new wo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=xa-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return Ds(this,!0),!0}get value(){const t=this.dep.track();return Ns(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Wf(e,t,n=!1){let a,i;return X(e)?a=e:(a=e.get,i=e.set),new Zf(a,i,n)}const ri={},si=new WeakMap;let Sn;function Vf(e,t=!1,n=Sn){if(n){let a=si.get(n);a||si.set(n,a=[]),a.push(e)}}function Jf(e,t,n=be){const{immediate:a,deep:i,once:o,scheduler:r,augmentJob:s,call:c}=n,l=z=>i?z:wt(z)||i===!1||i===0?Qt(z,1):Qt(z);let p,d,v,u,h=!1,f=!1;if(Ze(e)?(d=()=>e.value,h=wt(e)):jn(e)?(d=()=>l(e),h=!0):ae(e)?(f=!0,h=e.some(z=>jn(z)||wt(z)),d=()=>e.map(z=>{if(Ze(z))return z.value;if(jn(z))return l(z);if(X(z))return c?c(z,2):z()})):X(e)?t?d=c?()=>c(e,2):e:d=()=>{if(v){$t();try{v()}finally{Nt()}}const z=Sn;Sn=p;try{return c?c(e,3,[u]):e(u)}finally{Sn=z}}:d=Rt,t&&i){const z=d,B=i===!0?1/0:i;d=()=>Qt(z(),B)}const T=Cs(),w=()=>{p.stop(),T&&T.active&&lo(T.effects,p)};if(o&&t){const z=t;t=(...B)=>{z(...B),w()}}let _=f?new Array(e.length).fill(ri):ri;const A=z=>{if(!(!(p.flags&1)||!p.dirty&&!z))if(t){const B=p.run();if(i||h||(f?B.some((S,E)=>ln(S,_[E])):ln(B,_))){v&&v();const S=Sn;Sn=p;try{const E=[B,_===ri?void 0:f&&_[0]===ri?[]:_,u];_=B,c?c(t,3,E):t(...E)}finally{Sn=S}}}else p.run()};return s&&s(A),p=new Ts(d),p.scheduler=r?()=>r(A,!1):A,u=z=>Vf(z,!1,p),v=p.onStop=()=>{const z=si.get(p);if(z){if(c)c(z,4);else for(const B of z)B();si.delete(p)}},t?a?A(!0):_=p.run():r?r(A.bind(null,!0),!0):p.run(),w.pause=p.pause.bind(p),w.resume=p.resume.bind(p),w.stop=w,w}function Qt(e,t=1/0,n){if(t<=0||!Se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ze(e))Qt(e.value,t,n);else if(ae(e))for(let a=0;a{Qt(a,t,n)});else if(Es(e)){for(const a in e)Qt(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&Qt(e[a],t,n)}return e}const _a=[];let Io=!1;function N0(e,...t){if(Io)return;Io=!0,$t();const n=_a.length?_a[_a.length-1].component:null,a=n&&n.appContext.config.warnHandler,i=Kf();if(a)Bn(a,n,11,[e+t.map(o=>{var r,s;return(s=(r=o.toString)==null?void 0:r.call(o))!=null?s:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${Gc(n,o.type)}>`).join(` `),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(` -`,...Gf(i)),console.warn(...o)}Nt(),Io=!1}function Hf(){let e=_a[_a.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const a=e.component&&e.component.parent;e=a&&a.vnode}return t}function Gf(e){const t=[];return e.forEach((n,a)=>{t.push(...a===0?[]:[` -`],...Yf(n))}),t}function Yf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",a=e.component?e.component.parent==null:!1,i=` at <${Hc(e.component,e.type,a)}`,o=">"+n;return e.props?[i,...Qf(e.props),o]:[i+o]}function Qf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(a=>{t.push(...Xs(a,e[a]))}),n.length>3&&t.push(" ..."),t}function Xs(e,t,n){return Pe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ze(t)?(t=Xs(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function Bn(e,t,n,a){try{return a?e(...a):e()}catch(i){ci(i,t,n)}}function Ft(e,t,n,a){if(X(e)){const i=Bn(e,t,n,a);return i&&ks(i)&&i.catch(o=>{ci(o,t,n)}),i}if(ae(e)){const i=[];for(let o=0;o>>1,i=nt[a],o=ka(i);o=ka(n)?nt.push(e):nt.splice(em(t),0,e),e.flags|=1,tc()}}function tc(){li||(li=ec.then(ic))}function tm(e){ae(e)?Zn.push(...e):dn&&e.id===-1?dn.splice(Wn+1,0,e):e.flags&1||(Zn.push(e),e.flags|=1),tc()}function nc(e,t,n=Lt+1){for(!1;nka(n)-ka(a));if(Zn.length=0,dn){dn.push(...t);return}for(dn=t,Wn=0;Wne.id==null?e.flags&2?-1:1/0:e.id;function ic(e){try{for(Lt=0;Lt{a._d&&Lc(-1);const o=pi(t);let r;try{r=e(...i)}finally{pi(o),a._d&&Lc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function nm(e,t){if(Ve===null)return e;const n=bi(Ve),a=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&X(t)?t.call(a&&a.proxy):t}}const am=Symbol.for("v-scx"),im=()=>ja(am);function fn(e,t,n){return sc(e,t,n)}function sc(e,t,n=be){const{immediate:a,deep:i,flush:o,once:r}=n,s=He({},n),c=t&&a||!t&&o!=="post";let l;if(Ta){if(o==="sync"){const u=im();l=u.__watcherHandles||(u.__watcherHandles=[])}else if(!c){const u=()=>{};return u.stop=Rt,u.resume=Rt,u.pause=Rt,u}}const p=Qe;s.call=(u,h,f)=>Ft(u,p,h,f);let d=!1;o==="post"?s.scheduler=u=>{ft(u,p&&p.suspense)}:o!=="sync"&&(d=!0,s.scheduler=(u,h)=>{h?u():Co(u)}),s.augmentJob=u=>{t&&(u.flags|=4),d&&(u.flags|=2,p&&(u.id=p.uid,u.i=p))};const v=Kf(e,t,s);return Ta&&(l?l.push(v):c&&v()),v}function om(e,t,n){const a=this.proxy,i=Pe(e)?e.includes(".")?cc(a,e):()=>a[e]:e.bind(a,a);let o;X(t)?o=t:(o=t.handler,n=t);const r=Ca(this),s=sc(i,o.bind(a),n);return r(),s}function cc(e,t){const n=t.split(".");return()=>{let a=e;for(let i=0;ie.__isTeleport,cm=Symbol("_leaveCb");function To(e,t){e.shapeFlag&6&&e.component?(e.transition=t,To(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 Re(e,t){return X(e)?He({name:e.name},t,{setup:e}):e}function lc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function lm(e){const t=Vo(),n=Gs(null);if(t){const i=t.refs===be?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const ui=new WeakMap;function Sa(e,t,n,a,i=!1){if(ae(e)){e.forEach((h,f)=>Sa(h,t&&(ae(t)?t[f]:t),n,a,i));return}if(Vn(a)&&!i){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Sa(e,t,n,a.component.subTree);return}const o=a.shapeFlag&4?bi(a.component):a.el,r=i?null:o,{i:s,r:c}=e,l=t&&t.r,p=s.refs===be?s.refs={}:s.refs,d=s.setupState,v=ue(d),u=d===be?ws:h=>me(v,h);if(l!=null&&l!==c){if(pc(t),Pe(l))p[l]=null,u(l)&&(d[l]=null);else if(Ze(l)){l.value=null;const h=t;h.k&&(p[h.k]=null)}}if(X(c))Bn(c,s,12,[r,p]);else{const h=Pe(c),f=Ze(c);if(h||f){const T=()=>{if(e.f){const w=h?u(c)?d[c]:p[c]:c.value;if(i)ae(w)&&lo(w,o);else if(ae(w))w.includes(o)||w.push(o);else if(h)p[c]=[o],u(c)&&(d[c]=p[c]);else{const _=[o];c.value=_,e.k&&(p[e.k]=_)}}else h?(p[c]=r,u(c)&&(d[c]=r)):f&&(c.value=r,e.k&&(p[e.k]=r))};if(r){const w=()=>{T(),ui.delete(e)};w.id=-1,ui.set(e,w),ft(w,n)}else pc(e),T()}}}function pc(e){const t=ui.get(e);t&&(t.flags|=8,ui.delete(e))}Xa().requestIdleCallback,Xa().cancelIdleCallback;const Vn=e=>!!e.type.__asyncLoader,uc=e=>e.type.__isKeepAlive;function pm(e,t){dc(e,"a",t)}function um(e,t){dc(e,"da",t)}function dc(e,t,n=Qe){const a=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(di(t,a,n),n){let i=n.parent;for(;i&&i.parent;)uc(i.parent.vnode)&&dm(a,t,n,i),i=i.parent}}function dm(e,t,n,a){const i=di(t,e,a,!0);Mo(()=>{lo(a[t],i)},n)}function di(e,t,n=Qe,a=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{$t();const s=Ca(n),c=Ft(t,n,e,r);return s(),Nt(),c});return a?i.unshift(o):i.push(o),o}}const Qt=e=>(t,n=Qe)=>{(!Ta||e==="sp")&&di(e,(...a)=>t(...a),n)},fm=Qt("bm"),Jn=Qt("m"),mm=Qt("bu"),vm=Qt("u"),hm=Qt("bum"),Mo=Qt("um"),gm=Qt("sp"),bm=Qt("rtg"),xm=Qt("rtc");function ym(e,t=Qe){di("ec",e,t)}const wm="components",fc=Symbol.for("v-ndc");function _m(e){return Pe(e)?km(wm,e,!1)||e:e||fc}function km(e,t,n=!0,a=!1){const i=Ve||Qe;if(i){const o=i.type;{const s=Kc(o,!1);if(s&&(s===t||s===yt(t)||s===Ya(yt(t))))return o}const r=mc(i[e]||o[e],t)||mc(i.appContext[e],t);return!r&&a?o:r}}function mc(e,t){return e&&(e[t]||e[yt(t)]||e[Ya(yt(t))])}function mn(e,t,n,a){let i;const o=n,r=ae(e);if(r||Pe(e)){const s=r&&jn(e);let c=!1,l=!1;s&&(c=!wt(e),l=Gt(e),e=ei(e)),i=new Array(e.length);for(let p=0,d=e.length;pt(s,c,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let c=0,l=s.length;c0;return V(),Ue(Ce,null,[ve("slot",n,a)],l?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),V();const r=o&&vc(o(n)),s=n.key||r&&r.key,c=Ue(Ce,{key:(s&&!Jt(s)?s:`_${t}`)+""},r||[],r&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function vc(e){return e.some(t=>Zo(t)?!(t.type===Xt||t.type===Ce&&!vc(t.children)):!0)?e:null}const Do=e=>e?Wc(e)?bi(e):Do(e.parent):null,Ea=He(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=>Do(e.parent),$root:e=>Do(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>xc(e),$forceUpdate:e=>e.f||(e.f=()=>{Co(e.update)}),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>om.bind(e)}),Ro=(e,t)=>e!==be&&!e.__isScriptSetup&&me(e,t),jm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:i,props:o,accessCache:r,type:s,appContext:c}=e;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Ro(a,t))return r[t]=1,a[t];if(i!==be&&me(i,t))return r[t]=2,i[t];if(me(o,t))return r[t]=3,o[t];if(n!==be&&me(n,t))return r[t]=4,n[t];$o&&(r[t]=0)}}const l=Ea[t];let p,d;if(l)return t==="$attrs"&&Ye(e.attrs,"get",""),l(e);if((p=s.__cssModules)&&(p=p[t]))return p;if(n!==be&&me(n,t))return r[t]=4,n[t];if(d=c.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:a,setupState:i,ctx:o}=e;return Ro(i,t)?(i[t]=n,!0):a!==be&&me(a,t)?(a[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:i,props:o,type:r}},s){let c;return!!(n[s]||e!==be&&s[0]!=="$"&&me(e,s)||Ro(t,s)||me(o,s)||me(a,s)||me(Ea,s)||me(i.config.globalProperties,s)||(c=r.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hc(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $o=!0;function Sm(e){const t=xc(e),n=e.proxy,a=e.ctx;$o=!1,t.beforeCreate&&gc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:s,provide:c,inject:l,created:p,beforeMount:d,mounted:v,beforeUpdate:u,updated:h,activated:f,deactivated:T,beforeDestroy:w,beforeUnmount:_,destroyed:A,unmounted:z,render:B,renderTracked:S,renderTriggered:E,errorCaptured:M,serverPrefetch:j,expose:U,inheritAttrs:Z,components:ee,directives:re,filters:oe}=t;if(l&&Em(l,a,null),r)for(const F in r){const L=r[F];X(L)&&(a[F]=L.bind(n))}if(i){const F=i.call(n,n);Se(F)&&(e.data=ii(F))}if($o=!0,o)for(const F in o){const L=o[F],ze=X(L)?L.bind(n,n):X(L.get)?L.get.bind(n,n):Rt,et=!X(L)&&X(L.set)?L.set.bind(n):Rt,ot=ct({get:ze,set:et});Object.defineProperty(a,F,{enumerable:!0,configurable:!0,get:()=>ot.value,set:Be=>ot.value=Be})}if(s)for(const F in s)bc(s[F],a,n,F);if(c){const F=X(c)?c.call(n):c;Reflect.ownKeys(F).forEach(L=>{rc(L,F[L])})}p&&gc(p,e,"c");function H(F,L){ae(L)?L.forEach(ze=>F(ze.bind(n))):L&&F(L.bind(n))}if(H(fm,d),H(Jn,v),H(mm,u),H(vm,h),H(pm,f),H(um,T),H(ym,M),H(xm,S),H(bm,E),H(hm,_),H(Mo,z),H(gm,j),ae(U))if(U.length){const F=e.exposed||(e.exposed={});U.forEach(L=>{Object.defineProperty(F,L,{get:()=>n[L],set:ze=>n[L]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Rt&&(e.render=B),Z!=null&&(e.inheritAttrs=Z),ee&&(e.components=ee),re&&(e.directives=re),j&&lc(e)}function Em(e,t,n=Rt){ae(e)&&(e=No(e));for(const a in e){const i=e[a];let o;Se(i)?"default"in i?o=ja(i.from||a,i.default,!0):o=ja(i.from||a):o=ja(i),Ze(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[a]=o}}function gc(e,t,n){Ft(ae(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function bc(e,t,n,a){let i=a.includes(".")?cc(n,a):()=>n[a];if(Pe(e)){const o=t[e];X(o)&&fn(i,o)}else if(X(e))fn(i,e.bind(n));else if(Se(e))if(ae(e))e.forEach(o=>bc(o,t,n,a));else{const o=X(e.handler)?e.handler.bind(n):t[e.handler];X(o)&&fn(i,o,e)}}function xc(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,s=o.get(t);let c;return s?c=s:!i.length&&!n&&!a?c=t:(c={},i.length&&i.forEach(l=>fi(c,l,r,!0)),fi(c,t,r)),Se(t)&&o.set(t,c),c}function fi(e,t,n,a=!1){const{mixins:i,extends:o}=t;o&&fi(e,o,n,!0),i&&i.forEach(r=>fi(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=Om[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Om={data:yc,props:wc,emits:wc,methods:Oa,computed:Oa,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Oa,directives:Oa,watch:Am,provide:yc,inject:zm};function yc(e,t){return t?e?function(){return He(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function zm(e,t){return Oa(No(e),No(t))}function No(e){if(ae(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function Tm(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||be;let i=n;const o=t.startsWith("update:"),r=o&&Cm(a,t.slice(7));r&&(r.trim&&(i=n.map(p=>Pe(p)?p.trim():p)),r.number&&(i=n.map(fo)));let s,c=a[s=uo(t)]||a[s=uo(yt(t))];!c&&o&&(c=a[s=uo(cn(t))]),c&&Ft(c,e,6,i);const l=a[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ft(l,e,6,i)}}const Mm=new WeakMap;function kc(e,t,n=!1){const a=n?Mm:t.emitsCache,i=a.get(e);if(i!==void 0)return i;const o=e.emits;let r={},s=!1;if(!X(e)){const c=l=>{const p=kc(l,t,!0);p&&(s=!0,He(r,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!s?(Se(e)&&a.set(e,null),null):(ae(o)?o.forEach(c=>r[c]=null):He(r,o),Se(e)&&a.set(e,r),r)}function mi(e,t){return!e||!Ka(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,cn(t))||me(e,t))}function N0(){}function jc(e){const{type:t,vnode:n,proxy:a,withProxy:i,propsOptions:[o],slots:r,attrs:s,emit:c,render:l,renderCache:p,props:d,data:v,setupState:u,ctx:h,inheritAttrs:f}=e,T=pi(e);let w,_;try{if(n.shapeFlag&4){const z=i||a,B=z;w=Ut(l.call(B,z,p,d,u,v,h)),_=s}else{const z=t;w=Ut(z.length>1?z(d,{attrs:s,slots:r,emit:c}):z(d,null)),_=t.props?s:Dm(s)}}catch(z){za.length=0,ci(z,e,1),w=ve(Xt)}let A=w;if(_&&f!==!1){const z=Object.keys(_),{shapeFlag:B}=A;z.length&&B&7&&(o&&z.some(co)&&(_=Rm(_,o)),A=Gn(A,_,!1,!0))}return n.dirs&&(A=Gn(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&To(A,n.transition),w=A,pi(T),w}const Dm=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ka(n))&&((t||(t={}))[n]=e[n]);return t},Rm=(e,t)=>{const n={};for(const a in e)(!co(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function $m(e,t,n){const{props:a,children:i,component:o}=e,{props:r,children:s,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return a?Sc(a,r,l):!!r;if(c&8){const p=t.dynamicProps;for(let d=0;dObject.create(Ec),zc=e=>Object.getPrototypeOf(e)===Ec;function Fm(e,t,n,a=!1){const i={},o=Oc();e.propsDefaults=Object.create(null),Ac(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=a?i:Uf(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Lm(e,t,n,a){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,s=ue(i),[c]=e.propsOptions;let l=!1;if((a||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[v,u]=Ic(d,t,!0);He(r,v),u&&s.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Se(e)&&a.set(e,Fn),Fn;if(ae(o))for(let p=0;pe==="_"||e==="_ctx"||e==="$stable",Uo=e=>ae(e)?e.map(Ut):[Ut(e)],qm=(e,t,n)=>{if(t._n)return t;const a=De((...i)=>Uo(t(...i)),n);return a._c=!1,a},Cc=(e,t,n)=>{const a=e._ctx;for(const i in e){if(Lo(i))continue;const o=e[i];if(X(o))t[i]=qm(i,o,a);else if(o!=null){const r=Uo(o);t[i]=()=>r}}},Tc=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},Mc=(e,t,n)=>{for(const a in t)(n||!Lo(a))&&(e[a]=t[a])},Bm=(e,t,n)=>{const a=e.slots=Oc();if(e.vnode.shapeFlag&32){const i=t._;i?(Mc(a,t,n),n&&Es(a,"_",i,!0)):Cc(t,a)}else t&&Tc(e,t)},Zm=(e,t,n)=>{const{vnode:a,slots:i}=e;let o=!0,r=be;if(a.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:Mc(i,t,n):(o=!t.$stable,Cc(t,i)),r=t}else t&&(Tc(e,t),r={default:1});if(o)for(const s in i)!Lo(s)&&r[s]==null&&delete i[s]},ft=Hm;function Wm(e){return Vm(e)}function Vm(e,t){const n=Xa();n.__VUE__=!0;const{insert:a,remove:i,patchProp:o,createElement:r,createText:s,createComment:c,setText:l,setElementText:p,parentNode:d,nextSibling:v,setScopeId:u=Rt,insertStaticContent:h}=e,f=(m,g,x,P=null,k=null,C=null,$=void 0,D=null,R=!!g.dynamicChildren)=>{if(m===g)return;m&&!Ia(m,g)&&(P=gt(m),Be(m,k,C,!0),m=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null);const{type:I,ref:W,shapeFlag:q}=g;switch(I){case vi:T(m,g,x,P);break;case Xt:w(m,g,x,P);break;case Bo:m==null&&_(g,x,P,$);break;case Ce:ee(m,g,x,P,k,C,$,D,R);break;default:q&1?B(m,g,x,P,k,C,$,D,R):q&6?re(m,g,x,P,k,C,$,D,R):(q&64||q&128)&&I.process(m,g,x,P,k,C,$,D,R,ge)}W!=null&&k?Sa(W,m&&m.ref,C,g||m,!g):W==null&&m&&m.ref!=null&&Sa(m.ref,null,C,m,!0)},T=(m,g,x,P)=>{if(m==null)a(g.el=s(g.children),x,P);else{const k=g.el=m.el;g.children!==m.children&&l(k,g.children)}},w=(m,g,x,P)=>{m==null?a(g.el=c(g.children||""),x,P):g.el=m.el},_=(m,g,x,P)=>{[m.el,m.anchor]=h(m.children,g,x,P,m.el,m.anchor)},A=({el:m,anchor:g},x,P)=>{let k;for(;m&&m!==g;)k=v(m),a(m,x,P),m=k;a(g,x,P)},z=({el:m,anchor:g})=>{let x;for(;m&&m!==g;)x=v(m),i(m),m=x;i(g)},B=(m,g,x,P,k,C,$,D,R)=>{if(g.type==="svg"?$="svg":g.type==="math"&&($="mathml"),m==null)S(g,x,P,k,C,$,D,R);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),j(m,g,k,C,$,D,R)}finally{I&&I._endPatch()}}},S=(m,g,x,P,k,C,$,D)=>{let R,I;const{props:W,shapeFlag:q,transition:J,dirs:Q}=m;if(R=m.el=r(m.type,C,W&&W.is,W),q&8?p(R,m.children):q&16&&M(m.children,R,null,P,k,qo(m,C),$,D),Q&&En(m,null,P,"created"),E(R,m,m.scopeId,$,P),W){for(const ke in W)ke!=="value"&&!ha(ke)&&o(R,ke,null,W[ke],C,P);"value"in W&&o(R,"value",null,W.value,C),(I=W.onVnodeBeforeMount)&&qt(I,P,m)}Q&&En(m,null,P,"beforeMount");const le=Jm(k,J);le&&J.beforeEnter(R),a(R,g,x),((I=W&&W.onVnodeMounted)||le||Q)&&ft(()=>{I&&qt(I,P,m),le&&J.enter(R),Q&&En(m,null,P,"mounted")},k)},E=(m,g,x,P,k)=>{if(x&&u(m,x),P)for(let C=0;C{for(let I=R;I{const D=g.el=m.el;let{patchFlag:R,dynamicChildren:I,dirs:W}=g;R|=m.patchFlag&16;const q=m.props||be,J=g.props||be;let Q;if(x&&On(x,!1),(Q=J.onVnodeBeforeUpdate)&&qt(Q,x,g,m),W&&En(g,m,x,"beforeUpdate"),x&&On(x,!0),(q.innerHTML&&J.innerHTML==null||q.textContent&&J.textContent==null)&&p(D,""),I?U(m.dynamicChildren,I,D,x,P,qo(g,k),C):$||L(m,g,D,null,x,P,qo(g,k),C,!1),R>0){if(R&16)Z(D,q,J,x,k);else if(R&2&&q.class!==J.class&&o(D,"class",null,J.class,k),R&4&&o(D,"style",q.style,J.style,k),R&8){const le=g.dynamicProps;for(let ke=0;ke{Q&&qt(Q,x,g,m),W&&En(g,m,x,"updated")},P)},U=(m,g,x,P,k,C,$)=>{for(let D=0;D{if(g!==x){if(g!==be)for(const C in g)!ha(C)&&!(C in x)&&o(m,C,g[C],null,k,P);for(const C in x){if(ha(C))continue;const $=x[C],D=g[C];$!==D&&C!=="value"&&o(m,C,D,$,k,P)}"value"in x&&o(m,"value",g.value,x.value,k)}},ee=(m,g,x,P,k,C,$,D,R)=>{const I=g.el=m?m.el:s(""),W=g.anchor=m?m.anchor:s("");let{patchFlag:q,dynamicChildren:J,slotScopeIds:Q}=g;Q&&(D=D?D.concat(Q):Q),m==null?(a(I,x,P),a(W,x,P),M(g.children||[],x,W,k,C,$,D,R)):q>0&&q&64&&J&&m.dynamicChildren&&m.dynamicChildren.length===J.length?(U(m.dynamicChildren,J,x,k,C,$,D),(g.key!=null||k&&g===k.subTree)&&Dc(m,g,!0)):L(m,g,x,W,k,C,$,D,R)},re=(m,g,x,P,k,C,$,D,R)=>{g.slotScopeIds=D,m==null?g.shapeFlag&512?k.ctx.activate(g,x,P,$,R):oe(g,x,P,k,C,$,R):te(m,g,R)},oe=(m,g,x,P,k,C,$)=>{const D=m.component=tv(m,P,k);if(uc(m)&&(D.ctx.renderer=ge),nv(D,!1,$),D.asyncDep){if(k&&k.registerDep(D,H,$),!m.el){const R=D.subTree=ve(Xt);w(null,R,g,x),m.placeholder=R.el}}else H(D,m,g,x,k,C,$)},te=(m,g,x)=>{const P=g.component=m.component;if($m(m,g,x))if(P.asyncDep&&!P.asyncResolved){F(P,g,x);return}else P.next=g,P.update();else g.el=m.el,P.vnode=g},H=(m,g,x,P,k,C,$)=>{const D=()=>{if(m.isMounted){let{next:q,bu:J,u:Q,parent:le,vnode:ke}=m;{const bt=Rc(m);if(bt){q&&(q.el=ke.el,F(m,q,$)),bt.asyncDep.then(()=>{m.isUnmounted||D()});return}}let de=q,tt;On(m,!1),q?(q.el=ke.el,F(m,q,$)):q=ke,J&&Qa(J),(tt=q.props&&q.props.onVnodeBeforeUpdate)&&qt(tt,le,q,ke),On(m,!0);const Le=jc(m),dt=m.subTree;m.subTree=Le,f(dt,Le,d(dt.el),gt(dt),m,k,C),q.el=Le.el,de===null&&Nm(m,Le.el),Q&&ft(Q,k),(tt=q.props&&q.props.onVnodeUpdated)&&ft(()=>qt(tt,le,q,ke),k)}else{let q;const{el:J,props:Q}=g,{bm:le,m:ke,parent:de,root:tt,type:Le}=m,dt=Vn(g);On(m,!1),le&&Qa(le),!dt&&(q=Q&&Q.onVnodeBeforeMount)&&qt(q,de,g),On(m,!0);{tt.ce&&tt.ce._def.shadowRoot!==!1&&tt.ce._injectChildStyle(Le);const bt=m.subTree=jc(m);f(null,bt,x,P,m,k,C),g.el=bt.el}if(ke&&ft(ke,k),!dt&&(q=Q&&Q.onVnodeMounted)){const bt=g;ft(()=>qt(q,de,bt),k)}(g.shapeFlag&256||de&&Vn(de.vnode)&&de.vnode.shapeFlag&256)&&m.a&&ft(m.a,k),m.isMounted=!0,g=x=P=null}};m.scope.on();const R=m.effect=new Cs(D);m.scope.off();const I=m.update=R.run.bind(R),W=m.job=R.runIfDirty.bind(R);W.i=m,W.id=m.uid,R.scheduler=()=>Co(W),On(m,!0),I()},F=(m,g,x)=>{g.component=m;const P=m.vnode.props;m.vnode=g,m.next=null,Lm(m,g.props,P,x),Zm(m,g.children,x),$t(),nc(m),Nt()},L=(m,g,x,P,k,C,$,D,R=!1)=>{const I=m&&m.children,W=m?m.shapeFlag:0,q=g.children,{patchFlag:J,shapeFlag:Q}=g;if(J>0){if(J&128){et(I,q,x,P,k,C,$,D,R);return}else if(J&256){ze(I,q,x,P,k,C,$,D,R);return}}Q&8?(W&16&&We(I,k,C),q!==I&&p(x,q)):W&16?Q&16?et(I,q,x,P,k,C,$,D,R):We(I,k,C,!0):(W&8&&p(x,""),Q&16&&M(q,x,P,k,C,$,D,R))},ze=(m,g,x,P,k,C,$,D,R)=>{m=m||Fn,g=g||Fn;const I=m.length,W=g.length,q=Math.min(I,W);let J;for(J=0;JW?We(m,k,C,!0,!1,q):M(g,x,P,k,C,$,D,R,q)},et=(m,g,x,P,k,C,$,D,R)=>{let I=0;const W=g.length;let q=m.length-1,J=W-1;for(;I<=q&&I<=J;){const Q=m[I],le=g[I]=R?vn(g[I]):Ut(g[I]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;I++}for(;I<=q&&I<=J;){const Q=m[q],le=g[J]=R?vn(g[J]):Ut(g[J]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;q--,J--}if(I>q){if(I<=J){const Q=J+1,le=QJ)for(;I<=q;)Be(m[I],k,C,!0),I++;else{const Q=I,le=I,ke=new Map;for(I=le;I<=J;I++){const Ke=g[I]=R?vn(g[I]):Ut(g[I]);Ke.key!=null&&ke.set(Ke.key,I)}let de,tt=0;const Le=J-le+1;let dt=!1,bt=0;const $n=new Array(Le);for(I=0;I=Le){Be(Ke,k,C,!0);continue}let rt;if(Ke.key!=null)rt=ke.get(Ke.key);else for(de=le;de<=J;de++)if($n[de-le]===0&&Ia(Ke,g[de])){rt=de;break}rt===void 0?Be(Ke,k,C,!0):($n[rt-le]=I+1,rt>=bt?bt=rt:dt=!0,f(Ke,g[rt],x,null,k,C,$,D,R),tt++)}const io=dt?Km($n):Fn;for(de=io.length-1,I=Le-1;I>=0;I--){const Ke=le+I,rt=g[Ke],b=g[Ke+1],y=Ke+1{const{el:C,type:$,transition:D,children:R,shapeFlag:I}=m;if(I&6){ot(m.component.subTree,g,x,P);return}if(I&128){m.suspense.move(g,x,P);return}if(I&64){$.move(m,g,x,ge);return}if($===Ce){a(C,g,x);for(let W=0;WD.enter(C),k);else{const{leave:W,delayLeave:q,afterLeave:J}=D,Q=()=>{m.ctx.isUnmounted?i(C):a(C,g,x)},le=()=>{C._isLeaving&&C[cm](!0),W(C,()=>{Q(),J&&J()})};q?q(C,Q,le):le()}else a(C,g,x)},Be=(m,g,x,P=!1,k=!1)=>{const{type:C,props:$,ref:D,children:R,dynamicChildren:I,shapeFlag:W,patchFlag:q,dirs:J,cacheIndex:Q}=m;if(q===-2&&(k=!1),D!=null&&($t(),Sa(D,null,x,m,!0),Nt()),Q!=null&&(g.renderCache[Q]=void 0),W&256){g.ctx.deactivate(m);return}const le=W&1&&J,ke=!Vn(m);let de;if(ke&&(de=$&&$.onVnodeBeforeUnmount)&&qt(de,g,m),W&6)Mt(m.component,x,P);else{if(W&128){m.suspense.unmount(x,P);return}le&&En(m,null,g,"beforeUnmount"),W&64?m.type.remove(m,g,x,ge,P):I&&!I.hasOnce&&(C!==Ce||q>0&&q&64)?We(I,g,x,!1,!0):(C===Ce&&q&384||!k&&W&16)&&We(R,g,x),P&&Tt(m)}(ke&&(de=$&&$.onVnodeUnmounted)||le)&&ft(()=>{de&&qt(de,g,m),le&&En(m,null,g,"unmounted")},x)},Tt=m=>{const{type:g,el:x,anchor:P,transition:k}=m;if(g===Ce){Vt(x,P);return}if(g===Bo){z(m);return}const C=()=>{i(x),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(m.shapeFlag&1&&k&&!k.persisted){const{leave:$,delayLeave:D}=k,R=()=>$(x,C);D?D(m.el,C,R):R()}else C()},Vt=(m,g)=>{let x;for(;m!==g;)x=v(m),i(m),m=x;i(g)},Mt=(m,g,x)=>{const{bum:P,scope:k,job:C,subTree:$,um:D,m:R,a:I}=m;$c(R),$c(I),P&&Qa(P),k.stop(),C&&(C.flags|=8,Be($,m,g,x)),D&&ft(D,g),ft(()=>{m.isUnmounted=!0},g)},We=(m,g,x,P=!1,k=!1,C=0)=>{for(let $=C;${if(m.shapeFlag&6)return gt(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const g=v(m.anchor||m.el),x=g&&g[rm];return x?v(x):g};let St=!1;const he=(m,g,x)=>{let P;m==null?g._vnode&&(Be(g._vnode,null,null,!0),P=g._vnode.component):f(g._vnode||null,m,g,null,null,null,x),g._vnode=m,St||(St=!0,nc(P),ac(),St=!1)},ge={p:f,um:Be,m:ot,r:Tt,mt:oe,mc:M,pc:L,pbc:U,n:gt,o:e};return{render:he,hydrate:void 0,createApp:Pm(he)}}function qo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function On({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dc(e,t,n=!1){const a=e.children,i=t.children;if(ae(a)&&ae(i))for(let o=0;o>1,e[n[s]]0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function Rc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Rc(t)}function $c(e){if(e)for(let t=0;te.__isSuspense;function Hm(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):tm(e)}const Ce=Symbol.for("v-fgt"),vi=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Bo=Symbol.for("v-stc"),za=[];let mt=null;function V(e=!1){za.push(mt=e?null:[])}function Gm(){za.pop(),mt=za[za.length-1]||null}let Aa=1;function Lc(e,t=!1){Aa+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function Uc(e){return e.dynamicChildren=Aa>0?mt||Fn:null,Gm(),Aa>0&&mt&&mt.push(e),e}function ie(e,t,n,a,i,o){return Uc(_e(e,t,n,a,i,o,!0))}function Ue(e,t,n,a,i){return Uc(ve(e,t,n,a,i,!0))}function Zo(e){return e?e.__v_isVNode===!0:!1}function Ia(e,t){return e.type===t.type&&e.key===t.key}const qc=({key:e})=>e??null,hi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ze(e)||X(e)?{i:Ve,r:e,k:t,f:!!n}:e:null);function _e(e,t=null,n=null,a=0,i=null,o=e===Ce?0:1,r=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qc(t),ref:t&&hi(t),scopeId:oc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(Wo(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Pe(n)?8:16),Aa>0&&!r&&mt&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&mt.push(c),c}const ve=Ym;function Ym(e,t=null,n=null,a=0,i=null,o=!1){if((!e||e===fc)&&(e=Xt),Zo(e)){const s=Gn(e,t,!0);return n&&Wo(s,n),Aa>0&&!o&&mt&&(s.shapeFlag&6?mt[mt.indexOf(e)]=s:mt.push(s)),s.patchFlag=-2,s}if(cv(e)&&(e=e.__vccOpts),t){t=Qm(t);let{class:s,style:c}=t;s&&!Pe(s)&&(t.class=Ot(s)),Se(c)&&(zo(c)&&!ae(c)&&(c=He({},c)),t.style=mo(c))}const r=Pe(e)?1:Fc(e)?128:sm(e)?64:Se(e)?4:X(e)?2:0;return _e(e,t,n,a,i,r,o,!0)}function Qm(e){return e?zo(e)||zc(e)?He({},e):e:null}function Gn(e,t,n=!1,a=!1){const{props:i,ref:o,patchFlag:r,children:s,transition:c}=e,l=t?Bc(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&qc(l),ref:t&&t.ref?n&&o?ae(o)?o.concat(hi(t)):[o,hi(t)]:hi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&a&&To(p,c.clone(p)),p}function Pa(e=" ",t=0){return ve(vi,null,e,t)}function Te(e="",t=!1){return t?(V(),Ue(Xt,null,e)):ve(Xt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?ve(Xt):ae(e)?ve(Ce,null,e.slice()):Zo(e)?vn(e):ve(vi,null,String(e))}function vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gn(e)}function Wo(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(a&65){const i=t.default;i&&(i._c&&(i._d=!1),Wo(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!zc(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ve},n=32):(t=String(t),a&64?(n=16,t=[Pa(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bc(...e){const t={};for(let n=0;nQe||Ve;let gi,Jo;{const e=Xa(),t=(n,a)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(a),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};gi=t("__VUE_INSTANCE_SETTERS__",n=>Qe=n),Jo=t("__VUE_SSR_SETTERS__",n=>Ta=n)}const Ca=e=>{const t=Qe;return gi(e),e.scope.on(),()=>{e.scope.off(),gi(t)}},Zc=()=>{Qe&&Qe.scope.off(),gi(null)};function Wc(e){return e.vnode.shapeFlag&4}let Ta=!1;function nv(e,t=!1,n=!1){t&&Jo(t);const{props:a,children:i}=e.vnode,o=Wc(e);Fm(e,a,o,t),Bm(e,i,n||t);const r=o?av(e,t):void 0;return t&&Jo(!1),r}function av(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jm);const{setup:a}=n;if(a){$t();const i=e.setupContext=a.length>1?ov(e):null,o=Ca(e),r=Bn(a,e,0,[e.props,i]),s=ks(r);if(Nt(),o(),(s||e.sp)&&!Vn(e)&&lc(e),s){if(r.then(Zc,Zc),t)return r.then(c=>{Vc(e,c)}).catch(c=>{ci(c,e,0)});e.asyncDep=r}else Vc(e,r)}else Jc(e)}function Vc(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Qs(t)),Jc(e)}function Jc(e,t,n){const a=e.type;e.render||(e.render=a.render||Rt);{const i=Ca(e);$t();try{Sm(e)}finally{Nt(),i()}}}const iv={get(e,t){return Ye(e,"get",""),e[t]}};function ov(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iv),slots:e.slots,emit:e.emit,expose:t}}function bi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Qs(qf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ea)return Ea[n](e)},has(t,n){return n in t||n in Ea}})):e.proxy}const rv=/(?:^|[-_])\w/g,sv=e=>e.replace(rv,t=>t.toUpperCase()).replace(/[-_]/g,"");function Kc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function Hc(e,t,n=!1){let a=Kc(t);if(!a&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(a=i[1])}if(!a&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};a=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return a?sv(a):n?"App":"Anonymous"}function cv(e){return X(e)&&"__vccOpts"in e}const ct=(e,t)=>Vf(e,t,Ta),lv="3.5.26";let Ko;const Gc=typeof window<"u"&&window.trustedTypes;if(Gc)try{Ko=Gc.createPolicy("vue",{createHTML:e=>e})}catch{}const Yc=Ko?e=>Ko.createHTML(e):e=>e,pv="http://www.w3.org/2000/svg",uv="http://www.w3.org/1998/Math/MathML",en=typeof document<"u"?document:null,Qc=en&&en.createElement("template"),dv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i=t==="svg"?en.createElementNS(pv,e):t==="mathml"?en.createElementNS(uv,e):n?en.createElement(e,{is:n}):en.createElement(e);return e==="select"&&a&&a.multiple!=null&&i.setAttribute("multiple",a.multiple),i},createText:e=>en.createTextNode(e),createComment:e=>en.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>en.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Qc.innerHTML=Yc(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Qc.content;if(a==="svg"||a==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},fv=Symbol("_vtc");function mv(e,t,n){const a=e[fv];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Xc=Symbol("_vod"),vv=Symbol("_vsh"),hv=Symbol(""),gv=/(?:^|;)\s*display\s*:/;function bv(e,t,n){const a=e.style,i=Pe(n);let o=!1;if(n&&!i){if(t)if(Pe(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&xi(a,s,"")}else for(const r in t)n[r]==null&&xi(a,r,"");for(const r in n)r==="display"&&(o=!0),xi(a,r,n[r])}else if(i){if(t!==n){const r=a[hv];r&&(n+=";"+r),a.cssText=n,o=gv.test(n)}}else t&&e.removeAttribute("style");Xc in e&&(e[Xc]=o?a.display:"",e[vv]&&(a.display="none"))}const el=/\s*!important$/;function xi(e,t,n){if(ae(n))n.forEach(a=>xi(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=xv(e,t);el.test(n)?e.setProperty(cn(a),n.replace(el,""),"important"):e[a]=n}}const tl=["Webkit","Moz","ms"],Ho={};function xv(e,t){const n=Ho[t];if(n)return n;let a=yt(t);if(a!=="filter"&&a in e)return Ho[t]=a;a=Ya(a);for(let i=0;iGo||(kv.then(()=>Go=0),Go=Date.now());function Sv(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Ft(Ev(a,n.value),t,5,[a])};return n.value=e,n.attached=jv(),n}function Ev(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>i=>!i._stopped&&a&&a(i))}else return t}const sl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ov=(e,t,n,a,i,o)=>{const r=i==="svg";t==="class"?mv(e,a,r):t==="style"?bv(e,n,a):Ka(t)?co(t)||wv(e,t,n,a,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zv(e,t,a,r))?(il(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&al(e,t,a,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Pe(a))?il(e,yt(t),a,o,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),al(e,t,a,r))};function zv(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&sl(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return sl(t)&&Pe(n)?!1:t in e}const cl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ae(t)?n=>Qa(t,n):t};function Av(e){e.target.composing=!0}function ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yo=Symbol("_assign");function pl(e,t,n){return t&&(e=e.trim()),n&&(e=fo(e)),e}const Iv={created(e,{modifiers:{lazy:t,trim:n,number:a}},i){e[Yo]=cl(i);const o=a||i.props&&i.props.type==="number";Yn(e,t?"change":"input",r=>{r.target.composing||e[Yo](pl(e.value,n,o))}),(n||o)&&Yn(e,"change",()=>{e.value=pl(e.value,n,o)}),t||(Yn(e,"compositionstart",Av),Yn(e,"compositionend",ll),Yn(e,"change",ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:i,number:o}},r){if(e[Yo]=cl(r),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,c=t??"";s!==c&&(document.activeElement===e&&e.type!=="range"&&(a&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Pv=["ctrl","shift","alt","meta"],Cv={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)=>Pv.some(n=>e[`${n}Key`]&&!t.includes(n))},Qo=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=((i,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=(i=>{if(!("key"in i))return;const o=cn(i.key);if(t.some(r=>r===o||Tv[r]===o))return e(i)}))},Mv=He({patchProp:Ov},dv);let ul;function Dv(){return ul||(ul=Wm(Mv))}const Rv=((...e)=>{const t=Dv().createApp(...e),{mount:n}=t;return t.mount=a=>{const i=Nv(a);if(!i)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,$v(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function $v(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Nv(e){return Pe(e)?document.querySelector(e):e}const Fv=e=>{let t={id:"",form:{source:"",contentType:"",filters:[],manualItems:[""],showImage:!0,displayType:"card",displayNumber:6},config:{contentMap:{},termMap:{}}};e?.id&&(t.id=e.id),e?.form&&Object.keys(e.form).length&&(t.form={...t.form,...e.form}),e?.config&&Object.keys(e.config).length&&(t.config={...t.config,...e.config});const n=ii(t),a=(c,l)=>l!==void 0?n.form[c][l]:n.form[c],i=(c,l,p)=>{p!==void 0&&Array.isArray(n.form[c])?n.form[c][p]!==void 0?n.form[c][p]=l:n.form[c].push(l):n.form[c]=l},o=c=>`${n.id}-${c}`,r=c=>n.config[c],s=(c,l,p=!1)=>{p?n.config[c]={...n.config[c],...l}:n.config[c]=l};return{form:n.form,config:n.config,getField:a,setField:i,getScopedId:o,getConfig:r,setConfig:s}};function tn(e){if(e!==void 0){const t=Fv(e);return rc("state",t),t}return ja("state")}const nn=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},Lv={},Uv={class:"tide-form"};function qv(e,t){return V(),ie("div",Uv,[Kn(e.$slots,"default")])}const Bv=nn(Lv,[["render",qv]]),Zv={class:"tide-fieldset"},Wv={class:"tide-fieldset__legend"},Vv={key:0,class:"tide-fieldset__required"},Jv={key:0,class:"tide-fieldset__description"},Kv=Re({__name:"TideFieldset",props:{title:{},description:{default:void 0},required:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("fieldset",Zv,[_e("legend",Wv,[Pa(st(e.title)+" ",1),e.required?(V(),ie("span",Vv,"*")):Te("",!0)]),e.description?(V(),ie("p",Jv,st(e.description),1)):Te("",!0),Kn(t.$slots,"default",{},void 0,!0)]))}}),yi=nn(Kv,[["__scopeId","data-v-da18ce75"]]),Hv={class:"tide-field"},Gv={key:0,class:"tide-field__required"},Yv={key:1,class:"tide-form__description"},Qv={key:2,class:"tide-form__error"},hn=Re({__name:"TideField",props:{id:{},index:{default:void 0},scope:{default:void 0},type:{default:"label"},label:{default:void 0},hideLabel:{type:Boolean,default:!1},description:{default:void 0},required:{type:Boolean,default:!1},error:{default:void 0}},setup(e){const t=e,{getScopedId:n,getField:a,setField:i}=tn(),o=ct(()=>{let c=n(t.id);return t.scope&&(c+=`-${t.scope}`),t.index!==void 0&&(c+=`-${t.index}`),c}),r=ct(()=>{const c=a(t.id);return Array.isArray(c)&&t.index!==void 0?c[t.index]:c}),s=(c,l)=>{i(t.id,c,l)};return(c,l)=>(V(),ie("div",Hv,[e.label?(V(),Ue(_m(e.type),{key:0,for:e.label?o.value:void 0,class:Ot({"tide-form__label":!0,"tide-visually-hidden":e.hideLabel})},{default:De(()=>[Pa(st(e.label)+" ",1),e.required?(V(),ie("span",Gv,"*")):Te("",!0)]),_:1},8,["for","class"])):Te("",!0),Kn(c.$slots,"default",{key:e.id,id:o.value,value:r.value,update:s}),e.description?(V(),ie("div",Yv,st(e.description),1)):Te("",!0),e.error?(V(),ie("div",Qv,st(e.error),1)):Te("",!0)]))}}),Xv=["aria-disabled"],eh={class:"tide-option-button__image"},th=["src"],nh={class:"tide-option-button__main"},ah={class:"tide-option-button__label"},ih=["id"],oh=["id","name","aria-describedby","value","checked","required"],rh=Re({__name:"TideOptionButton",props:{id:{},fieldId:{},label:{},description:{default:void 0},icon:{default:void 0},value:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=t;return(a,i)=>(V(),ie("label",{class:"tide-option-button tide-form__element","aria-disabled":e.disabled},[_e("span",eh,[_e("img",{class:"tide-option-button__icon",role:"presentation",src:e.icon,alt:""},null,8,th)]),_e("span",nh,[_e("span",ah,st(e.label),1),e.description?(V(),ie("span",{key:0,id:`${e.fieldId}-description`,class:"tide-form__description"},st(e.description),9,ih)):Te("",!0)]),_e("input",{type:"radio",id:`${e.fieldId}-${e.id}`,name:e.fieldId,class:"tide-option-button__input","aria-describedby":`${e.fieldId}-description`,value:e.id,checked:e.id===e.value,required:e.required,onChange:i[0]||(i[0]=o=>n("change",e.id))},null,40,oh)],8,Xv))}}),sh=nn(rh,[["__scopeId","data-v-378f24ab"]]),ch={class:"tide-option-group"},lh=Re({__name:"TideOptionGroup",props:{id:{},value:{},required:{type:Boolean,default:!1},options:{}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",ch,[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),Ue(sh,Bc({key:a.id,"field-id":e.id,value:e.value,required:e.required},{ref_for:!0},a,{onChange:n[0]||(n[0]=i=>t.$emit("change",i))}),null,16,["field-id","value","required"]))),128))]))}}),ph=nn(lh,[["__scopeId","data-v-0c7fefd7"]]),uh=["name","id","value","required"],dh=["value"],dl=Re({__name:"TideSelect",props:{id:{},options:{},required:{type:Boolean,default:!1},value:{default:void 0}},emits:["change"],setup(e){return(t,n)=>(V(),ie("select",{name:e.id,id:e.id,class:"tide-select tide-form__element",value:e.value,required:e.required,onChange:n[0]||(n[0]=a=>t.$emit("change",a.target.value))},[n[1]||(n[1]=_e("option",{value:""},"- Select -",-1)),(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("option",{value:a.value},st(a.label),9,dh))),256))],40,uh))}});function fh(e,t,n,a){function i(o){return o instanceof n?o:new n(function(r){r(o)})}return new(n||(n=Promise))(function(o,r){function s(p){try{l(a.next(p))}catch(d){r(d)}}function c(p){try{l(a.throw(p))}catch(d){r(d)}}function l(p){p.done?o(p.value):i(p.value).then(s,c)}l((a=a.apply(e,[])).next())})}function mh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=s(0),r.throw=s(1),r.return=s(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(l){return function(p){return c([l,p])}}function c(l){if(a)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(n=0)),n;)try{if(a=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]bh)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=t[n++],a--,this.bufferLength===_t&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(n.setUint8(this.bufferLength++,128),a%_t>=_t-8){for(var i=this.bufferLength;i<_t;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<_t-8;i++)n.setUint8(i,0);n.setUint32(_t-8,Math.floor(t/4294967296),!0),n.setUint32(_t-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(vh),i=0;i<8;i++)o[i*4]=this.state[i]>>>24&255,o[i*4+1]=this.state[i]>>>16&255,o[i*4+2]=this.state[i]>>>8&255,o[i*4+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,a=t.state,i=a[0],o=a[1],r=a[2],s=a[3],c=a[4],l=a[5],p=a[6],d=a[7],v=0;v<_t;v++){if(v<16)this.temp[v]=(n[v*4]&255)<<24|(n[v*4+1]&255)<<16|(n[v*4+2]&255)<<8|n[v*4+3]&255;else{var u=this.temp[v-2],h=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10;u=this.temp[v-15];var f=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[v]=(h+this.temp[v-7]|0)+(f+this.temp[v-16]|0)}var T=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&p)|0)+(d+(hh[v]+this.temp[v]|0)|0)|0,w=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&r^o&r)|0;d=p,p=l,l=c,c=s+T|0,s=r,r=o,o=i,i=T+w|0}a[0]+=i,a[1]+=o,a[2]+=r,a[3]+=s,a[4]+=c,a[5]+=l,a[6]+=p,a[7]+=d},e})();const xh=e=>new TextEncoder().encode(e);var yh=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:xh;function fl(e){return e instanceof Uint8Array?e:typeof e=="string"?yh(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function wh(e){return typeof e=="string"?e.length===0:e.byteLength===0}var _h=(function(){function e(t){this.secret=t,this.hash=new wi,this.reset()}return e.prototype.update=function(t){if(!(wh(t)||this.error))try{this.hash.update(fl(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return fh(this,void 0,void 0,function(){return mh(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new wi,this.secret){this.outer=new wi;var t=kh(this.secret),n=new Uint8Array(_t);n.set(t);for(var a=0;a<_t;a++)t[a]^=54,n[a]^=92;this.hash.update(t),this.outer.update(n);for(var a=0;a_t){var n=new wi;n.update(t),t=n.digest()}var a=new Uint8Array(_t);return a.set(t),a}const jh=Object.prototype.toString,Sh="[object Uint8Array]";function Eh(e){return e?e.constructor===Uint8Array?!0:jh.call(e)===Sh:!1}function Oh(e){if(!Eh(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}new globalThis.TextDecoder;function ml(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}const zh=new globalThis.TextEncoder;function Ah(e){return ml(e),zh.encode(e)}function Ih(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Ph=65535;function Ch(e,{urlSafe:t=!1}={}){Oh(e);let n;if(e.lengtht.toString(16).padStart(2,"0"));var Mh=Object.defineProperty,Dh=(e,t,n)=>t in e?Mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,an=(e,t,n)=>(Dh(e,typeof t!="symbol"?t+"":t,n),n),vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>(vl(e,t,"read from private field"),t.get(e)),Rh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},$h=(e,t,n,a)=>(vl(e,t,"write to private field"),t.set(e,n),n),hl=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="OAuth",Nh={error(e){console.error("[ERROR]: ",e)},warn(e){console.warn("[WARN]: ",e)},info(e){console.info("[INFO]: ",e)},http(e){console.log("[HTTP]: ",e)},verbose(e){console.log("[LOG]: ",e)},debug(e){console.debug("[DEBUG]: ",e)},silly(e){console.log("[SILLY]: ",e)}},Fh=e=>!!(e!==null&&e&&typeof e=="object"&&"message"in e||e instanceof Error),Lh=e=>Fh(e)?e:new Error("Unknown error"),zn,gl=class{constructor(e,t){if(Rh(this,zn,null),an(this,"baseUrl"),an(this,"apiPrefix"),an(this,"customFetch"),an(this,"authentication"),an(this,"defaultLocale"),an(this,"cache"),an(this,"serializer"),an(this,"logger"),an(this,"debug"),!e)throw new Error("baseUrl is required");let{apiPrefix:n,customFetch:a,authentication:i,cache:o,debug:r,defaultLocale:s,serializer:c,logger:l=Nh}=t||{};this.baseUrl=e,this.apiPrefix=n,this.customFetch=a,this.authentication=i,this.cache=o,this.defaultLocale=s,this.serializer=c,this.logger=l,this.debug=r}async fetch(e,t){let n=t?.credentials==="omit";this.debug&&n&&this.log("verbose",`Disabling authentication for request to ${e}`);try{let a,i=n?t:await this.addAuthorizationHeader(t);return a=fetch,this.customFetch&&(a=this.customFetch),{response:await a(e,i),error:null}}catch(a){let i=Lh(a);return this.debug&&this.log("error",i.message),{response:null,error:i}}}async getAccessToken({grantType:e="client_credentials",clientId:t,clientSecret:n,username:a,password:i}){if(!t||!n||!hl(this.authentication))throw new Error("credentials.clientId or credentials.clientSecret is missing on the authentication option.");let o;if(e==="password"){if(!a||!i||!hl(this.authentication))throw new Error("credentials.username or credentials.password is missing on the authentication option.");o={grant_type:"password",client_id:t,client_secret:n,username:a,password:i}}else o={grant_type:"client_credentials",client_id:t,client_secret:n};let r=`${this.baseUrl}/oauth/token`,s;s=fetch,this.customFetch&&(s=this.customFetch);let c=await s(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o).toString()});if(c.ok){let l=await c.json(),p={accessToken:l.access_token,validUntil:Date.now()+l.expires_in*1e3,tokenType:l.token_type};return $h(this,zn,p),p}throw new Error("Could not authenticate with the provided credentials.")}async addAuthorizationHeader(e){if(!this.authentication)return e||{};let t=new Headers(e?.headers);switch(this.authentication.type){case"Basic":{let n=Th(`${this.authentication?.credentials.username}:${this.authentication?.credentials.password}`);t.set("Authorization",`${this.authentication.type} ${n}`);break}case"OAuth":{let n=_i(this,zn)?.tokenType,a=_i(this,zn)?.accessToken,i=_i(this,zn)?.validUntil&&_i(this,zn).validUntil-10*1e3typeof e=="object"&&e!==null&&"json"in e,Bh=e=>typeof e=="object"&&e!==null&&"entity"in e;const bl={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),bl[e]=t}function Zh(e){let t="";for(let n=0;nt in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xo=(e,t,n)=>(Vh(e,typeof t!="symbol"?t+"":t,n),n),Jh=class Et extends gl{constructor(t,n){super(t,n),Xo(this,"router"),Xo(this,"indexLookup"),Xo(this,"decoupledRouterApiPrefix");let{apiPrefix:a,cache:i,debug:o,indexLookup:r,decoupledRouterApiPrefix:s}=n||{};this.apiPrefix=a||"jsonapi",this.decoupledRouterApiPrefix=s,this.cache=i,this.debug=o||!1;let c={...n};this.decoupledRouterApiPrefix?c.apiPrefix=this.decoupledRouterApiPrefix:delete c.apiPrefix,this.router=new Uh(t,c),this.indexLookup=r||!1}async getCollection(t,n){let{entityTypeId:a,bundleId:i}=Et.getEntityTypeIdAndBundleId(t),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({entityTypeId:a,bundleId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,entityTypeId:a,bundleId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get collection. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResource(t,n,a){let{entityTypeId:i,bundleId:o}=Et.getEntityTypeIdAndBundleId(t),r=a?.locale||this.defaultLocale,s=a?.queryString,c=a?.rawResponse||!1,l=await Et.createCacheKey({entityTypeId:i,bundleId:o,resourceId:n,localeSegment:r,queryString:s});if(!c&&!a?.disableCache){let f=await this.getCachedResponse(l);if(f)return f}let p=await this.createURL({localeSegment:r,entityTypeId:i,bundleId:o,resourceId:n,queryString:s});this.debug&&this.log("verbose",`Fetching endpoint ${p}`);let d=a?.disableAuthentication?{credentials:"omit"}:{},{response:v,error:u}=await this.fetch(p,d);if(u)throw this.debug&&this.log("error",`Failed to get resource. ResourceId: ${n}, Error: ${u.message}`),u;let h=await this.processApiResponseAndParseBody(v.clone(),l,a);return a?.rawResponse?{response:v,json:h}:h}async createURL({localeSegment:t,entityTypeId:n,bundleId:a,viewName:i,viewDisplayId:o,resourceId:r,queryString:s}){if(this.indexLookup){let c=new URL(`${t??""}/${this.apiPrefix}`,this.baseUrl).toString(),l=`${t?`${t}/`:""}${this.apiPrefix}`,p,d=await this.getCachedResponse(l);if(d)p=d;else{this.debug&&this.log("verbose",`Fetching index at ${c}`);let{response:h,error:f}=await this.fetch(c);if(f)throw this.debug&&this.log("error",`Failed to get index. Error: ${f.message}`),f;p=await h.json(),this.cache&&h.status<400&&await this.cache?.set(l,p)}let v=`${n}${a?`--${a}`:""}`,u=p?.links?.[v]?.href;if(u)return`${u}${r?`/${r}`:""}${s?`?${s}`:""}`}return i?new URL(`${t??""}/${this.apiPrefix}/views/${i}/${o}${s?`?${s}`:""}`,this.baseUrl).toString():new URL(`${t??""}/${this.apiPrefix}/${n}/${a}${r?`/${r}`:""}${s?`?${s}`:""}`,this.baseUrl).toString()}async deleteResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,resourceId:n,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating deletion of resource. Type: ${t}, ResourceId: ${n}`);let l=a?.disableAuthentication?{credentials:"omit",method:"DELETE"}:{method:"DELETE"},{response:p,error:d}=await this.fetch(s,l);if(d)throw this.debug&&this.log("error",`Failed to delete resource. ResourceId: ${n}, Error: ${d.message}`),d;p.status===204?this.log("verbose",`Successfully deleted resource. ResourceId: ${n}`):this.log("error",`Failed to delete resource. ResourceId: ${n}, Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}static getEntityTypeIdAndBundleId(t){let[n,a]=t.split("--");return a?{entityTypeId:n,bundleId:a}:{entityTypeId:n,bundleId:""}}static async createCacheKey({entityTypeId:t,bundleId:n,viewName:a,viewDisplayId:i,localeSegment:o,resourceId:r,queryString:s,cacheKey:c}){if(c)return c;let l=o?`${o}--`:"",p="",d=r?`--${r}`:"";if(s){let v=new _h;v.update(s);let u=await v.digest();p=`--${Zh(u)}`}return a?`view--${l}${a}${i?`--${i}`:""}${d}${p}`:`${l}${t}${n?`--${n}`:""}${d}${p}`}async getView(t,n){let[a,i]=t.split("--"),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({viewName:a,viewDisplayId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,viewName:a,viewDisplayId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get view. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResourceByPath(t,n){let a=await this.router.translatePath(t,n),i=qh(a)?a.json:a;return Bh(i)?this.getResource(i.jsonapi.resourceName,i.entity.uuid,n):i}async updateResource(t,n,a,i){let o=i?.locale||this.defaultLocale,{entityTypeId:r,bundleId:s}=Et.getEntityTypeIdAndBundleId(t),c=await this.createURL({entityTypeId:r,bundleId:s,resourceId:n,localeSegment:o}),l=await Et.createCacheKey({entityTypeId:r,bundleId:s,cacheKey:i?.cacheKey});this.debug&&this.log("verbose",`Initiating update of resource. Type: ${t}, ResourceId: ${n}`);let p=new Headers;p.set("Accept","application/vnd.api+json"),p.set("Content-Type","application/vnd.api+json");let{response:d,error:v}=await this.fetch(c,{method:"PATCH",body:typeof a=="object"?JSON.stringify(a):a,credentials:i?.disableAuthentication?"omit":"same-origin",headers:p});if(v)throw this.debug&&this.log("error",`Failed to update resource. ResourceId: ${n}, Error: ${v.message}`),v;d?.status===200?this.log("verbose",`Successfully updated resource. ResourceId: ${n}`):this.log("error",`Failed to update resource. ResourceId: ${n}, Status: ${d?.status}`);let u=await this.processApiResponseAndParseBody(d.clone(),l,i);return i?.rawResponse?{response:d,json:u}:u}async createResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating creation of resource. Type: ${t}`);let l=new Headers;l.set("Accept","application/vnd.api+json"),l.set("Content-Type","application/vnd.api+json");let{response:p,error:d}=await this.fetch(s,{method:"POST",body:typeof n=="object"?JSON.stringify(n):n,credentials:a?.disableAuthentication?"omit":"same-origin",headers:l});if(d)throw this.debug&&this.log("error",`Failed to create resource. Error: ${d.message}`),d;p?.status===201?this.log("verbose",`Successfully created resource of type: ${t}`):this.log("error",`Failed to create resource. Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}async processApiResponseAndParseBody(t,n,a){let i=t.status;if(i===204)return"";let o=await t.json();return o=this.serializer?.deserialize?this.serializer.deserialize(o):o,this.cache&&!a?.disableCache&&i<400&&await this.cache?.set(n,o),o}},xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var i=!1;try{i=this instanceof a}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ma={},yl,wl;function Xn(){return wl||(wl=1,yl=TypeError),yl}const Hh={},Gh=Object.freeze(Object.defineProperty({__proto__:null,default:Hh},Symbol.toStringTag,{value:"Module"})),_l=Kh(Gh);var er,kl;function ki(){if(kl)return er;kl=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,a=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=i&&o&&typeof o.get=="function"?o.get:null,s=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,d=p?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,u=v?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,f=Object.prototype.toString,T=Function.prototype.toString,w=String.prototype.match,_=String.prototype.slice,A=String.prototype.replace,z=String.prototype.toUpperCase,B=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,M=Array.prototype.join,j=Array.prototype.slice,U=Math.floor,Z=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ee=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oe||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(b){return b.__proto__}:null);function L(b,y){if(b===1/0||b===-1/0||b!==b||b&&b>-1e3&&b<1e3||S.call(/e/,y))return y;var fe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof b=="number"){var we=b<0?-U(-b):U(b);if(we!==b){var je=String(we),se=_.call(y,je.length+1);return A.call(je,fe,"$&_")+"."+A.call(A.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(y,fe,"$&_")}var ze=_l,et=ze.custom,ot=P(et)?et:null,Be={__proto__:null,double:'"',single:"'"},Tt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};er=function b(y,fe,we,je){var se=fe||{};if($(se,"quoteStyle")&&!$(Be,se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var wn=$(se,"customInspect")?se.customInspect:!0;if(typeof wn!="boolean"&&wn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Nn=se.numericSeparator;if(typeof y>"u")return"undefined";if(y===null)return"null";if(typeof y=="boolean")return y?"true":"false";if(typeof y=="string")return de(y,se);if(typeof y=="number"){if(y===0)return 1/0/y>0?"0":"-0";var xt=String(y);return Nn?L(y,xt):xt}if(typeof y=="bigint"){var _n=String(y)+"n";return Nn?L(y,_n):_n}var fs=typeof se.depth>"u"?5:se.depth;if(typeof we>"u"&&(we=0),we>=fs&&fs>0&&typeof y=="object")return gt(y)?"[Array]":"[Object]";var ma=io(se,we);if(typeof je>"u")je=[];else if(I(je,y)>=0)return"[Circular]";function Dt(va,ro,D0){if(ro&&(je=j.call(je),je.push(ro)),D0){var lf={depth:se.depth};return $(se,"quoteStyle")&&(lf.quoteStyle=se.quoteStyle),b(va,lf,we+1,je)}return b(va,se,we+1,je)}if(typeof y=="function"&&!he(y)){var tf=R(y),nf=rt(y,Dt);return"[Function"+(tf?": "+tf:" (anonymous)")+"]"+(nf.length>0?" { "+M.call(nf,", ")+" }":"")}if(P(y)){var af=oe?A.call(String(y),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(y);return typeof y=="object"&&!oe?Le(af):af}if(ke(y)){for(var Ja="<"+B.call(String(y.nodeName)),ms=y.attributes||[],oo=0;oo",Ja}if(gt(y)){if(y.length===0)return"[]";var vs=rt(y,Dt);return ma&&!$n(vs)?"["+Ke(vs,ma)+"]":"[ "+M.call(vs,", ")+" ]"}if(ge(y)){var hs=rt(y,Dt);return!("cause"in Error.prototype)&&"cause"in y&&!H.call(y,"cause")?"{ ["+String(y)+"] "+M.call(E.call("[cause]: "+Dt(y.cause),hs),", ")+" }":hs.length===0?"["+String(y)+"]":"{ ["+String(y)+"] "+M.call(hs,", ")+" }"}if(typeof y=="object"&&wn){if(ot&&typeof y[ot]=="function"&&ze)return ze(y,{depth:fs-we});if(wn!=="symbol"&&typeof y.inspect=="function")return y.inspect()}if(W(y)){var of=[];return a&&a.call(y,function(va,ro){of.push(Dt(ro,y,!0)+" => "+Dt(va,y))}),bt("Map",n.call(y),of,ma)}if(Q(y)){var rf=[];return s&&s.call(y,function(va){rf.push(Dt(va,y))}),bt("Set",r.call(y),rf,ma)}if(q(y))return dt("WeakMap");if(le(y))return dt("WeakSet");if(J(y))return dt("WeakRef");if(g(y))return Le(Dt(Number(y)));if(k(y))return Le(Dt(Z.call(y)));if(x(y))return Le(h.call(y));if(m(y))return Le(Dt(String(y)));if(typeof window<"u"&&y===window)return"{ [object Window] }";if(typeof globalThis<"u"&&y===globalThis||typeof xl<"u"&&y===xl)return"{ [object globalThis] }";if(!St(y)&&!he(y)){var gs=rt(y,Dt),sf=F?F(y)===Object.prototype:y instanceof Object||y.constructor===Object,bs=y instanceof Object?"":"null prototype",cf=!sf&&te&&Object(y)===y&&te in y?_.call(D(y),8,-1):bs?"Object":"",M0=sf||typeof y.constructor!="function"?"":y.constructor.name?y.constructor.name+" ":"",xs=M0+(cf||bs?"["+M.call(E.call([],cf||[],bs||[]),": ")+"] ":"");return gs.length===0?xs+"{}":ma?xs+"{"+Ke(gs,ma)+"}":xs+"{ "+M.call(gs,", ")+" }"}return String(y)};function Vt(b,y,fe){var we=fe.quoteStyle||y,je=Be[we];return je+b+je}function Mt(b){return A.call(String(b),/"/g,""")}function We(b){return!te||!(typeof b=="object"&&(te in b||typeof b[te]<"u"))}function gt(b){return D(b)==="[object Array]"&&We(b)}function St(b){return D(b)==="[object Date]"&&We(b)}function he(b){return D(b)==="[object RegExp]"&&We(b)}function ge(b){return D(b)==="[object Error]"&&We(b)}function m(b){return D(b)==="[object String]"&&We(b)}function g(b){return D(b)==="[object Number]"&&We(b)}function x(b){return D(b)==="[object Boolean]"&&We(b)}function P(b){if(oe)return b&&typeof b=="object"&&b instanceof Symbol;if(typeof b=="symbol")return!0;if(!b||typeof b!="object"||!re)return!1;try{return re.call(b),!0}catch{}return!1}function k(b){if(!b||typeof b!="object"||!Z)return!1;try{return Z.call(b),!0}catch{}return!1}var C=Object.prototype.hasOwnProperty||function(b){return b in this};function $(b,y){return C.call(b,y)}function D(b){return f.call(b)}function R(b){if(b.name)return b.name;var y=w.call(T.call(b),/^function\s*([\w$]+)/);return y?y[1]:null}function I(b,y){if(b.indexOf)return b.indexOf(y);for(var fe=0,we=b.length;fey.maxStringLength){var fe=b.length-y.maxStringLength,we="... "+fe+" more character"+(fe>1?"s":"");return de(_.call(b,0,y.maxStringLength),y)+we}var je=Tt[y.quoteStyle||"single"];je.lastIndex=0;var se=A.call(A.call(b,je,"\\$1"),/[\x00-\x1f]/g,tt);return Vt(se,"single",y)}function tt(b){var y=b.charCodeAt(0),fe={8:"b",9:"t",10:"n",12:"f",13:"r"}[y];return fe?"\\"+fe:"\\x"+(y<16?"0":"")+z.call(y.toString(16))}function Le(b){return"Object("+b+")"}function dt(b){return b+" { ? }"}function bt(b,y,fe,we){var je=we?Ke(fe,we):M.call(fe,", ");return b+" ("+y+") {"+je+"}"}function $n(b){for(var y=0;y{t.push(...a===0?[]:[` +`],...Gf(n))}),t}function Gf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",a=e.component?e.component.parent==null:!1,i=` at <${Gc(e.component,e.type,a)}`,o=">"+n;return e.props?[i,...Yf(e.props),o]:[i+o]}function Yf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(a=>{t.push(...ec(a,e[a]))}),n.length>3&&t.push(" ..."),t}function ec(e,t,n){return Pe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ze(t)?(t=ec(e,ue(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ue(t),n?t:[`${e}=`,t])}function Bn(e,t,n,a){try{return a?e(...a):e()}catch(i){ci(i,t,n)}}function Ft(e,t,n,a){if(X(e)){const i=Bn(e,t,n,a);return i&&js(i)&&i.catch(o=>{ci(o,t,n)}),i}if(ae(e)){const i=[];for(let o=0;o>>1,i=nt[a],o=ka(i);o=ka(n)?nt.push(e):nt.splice(Xf(t),0,e),e.flags|=1,nc()}}function nc(){li||(li=tc.then(oc))}function em(e){ae(e)?Zn.push(...e):dn&&e.id===-1?dn.splice(Wn+1,0,e):e.flags&1||(Zn.push(e),e.flags|=1),nc()}function ac(e,t,n=Lt+1){for(!1;nka(n)-ka(a));if(Zn.length=0,dn){dn.push(...t);return}for(dn=t,Wn=0;Wne.id==null?e.flags&2?-1:1/0:e.id;function oc(e){try{for(Lt=0;Lt{a._d&&qc(-1);const o=pi(t);let r;try{r=e(...i)}finally{pi(o),a._d&&qc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function tm(e,t){if(Ve===null)return e;const n=bi(Ve),a=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&X(t)?t.call(a&&a.proxy):t}}const nm=Symbol.for("v-scx"),am=()=>ja(nm);function fn(e,t,n){return cc(e,t,n)}function cc(e,t,n=be){const{immediate:a,deep:i,flush:o,once:r}=n,s=He({},n),c=t&&a||!t&&o!=="post";let l;if(Ta){if(o==="sync"){const u=am();l=u.__watcherHandles||(u.__watcherHandles=[])}else if(!c){const u=()=>{};return u.stop=Rt,u.resume=Rt,u.pause=Rt,u}}const p=Qe;s.call=(u,h,f)=>Ft(u,p,h,f);let d=!1;o==="post"?s.scheduler=u=>{ft(u,p&&p.suspense)}:o!=="sync"&&(d=!0,s.scheduler=(u,h)=>{h?u():Co(u)}),s.augmentJob=u=>{t&&(u.flags|=4),d&&(u.flags|=2,p&&(u.id=p.uid,u.i=p))};const v=Jf(e,t,s);return Ta&&(l?l.push(v):c&&v()),v}function im(e,t,n){const a=this.proxy,i=Pe(e)?e.includes(".")?lc(a,e):()=>a[e]:e.bind(a,a);let o;X(t)?o=t:(o=t.handler,n=t);const r=Ca(this),s=cc(i,o.bind(a),n);return r(),s}function lc(e,t){const n=t.split(".");return()=>{let a=e;for(let i=0;ie.__isTeleport,sm=Symbol("_leaveCb");function To(e,t){e.shapeFlag&6&&e.component?(e.transition=t,To(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 Re(e,t){return X(e)?He({name:e.name},t,{setup:e}):e}function pc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cm(e){const t=Vo(),n=Ys(null);if(t){const i=t.refs===be?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}const ui=new WeakMap;function Sa(e,t,n,a,i=!1){if(ae(e)){e.forEach((h,f)=>Sa(h,t&&(ae(t)?t[f]:t),n,a,i));return}if(Vn(a)&&!i){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Sa(e,t,n,a.component.subTree);return}const o=a.shapeFlag&4?bi(a.component):a.el,r=i?null:o,{i:s,r:c}=e,l=t&&t.r,p=s.refs===be?s.refs={}:s.refs,d=s.setupState,v=ue(d),u=d===be?_s:h=>me(v,h);if(l!=null&&l!==c){if(uc(t),Pe(l))p[l]=null,u(l)&&(d[l]=null);else if(Ze(l)){l.value=null;const h=t;h.k&&(p[h.k]=null)}}if(X(c))Bn(c,s,12,[r,p]);else{const h=Pe(c),f=Ze(c);if(h||f){const T=()=>{if(e.f){const w=h?u(c)?d[c]:p[c]:c.value;if(i)ae(w)&&lo(w,o);else if(ae(w))w.includes(o)||w.push(o);else if(h)p[c]=[o],u(c)&&(d[c]=p[c]);else{const _=[o];c.value=_,e.k&&(p[e.k]=_)}}else h?(p[c]=r,u(c)&&(d[c]=r)):f&&(c.value=r,e.k&&(p[e.k]=r))};if(r){const w=()=>{T(),ui.delete(e)};w.id=-1,ui.set(e,w),ft(w,n)}else uc(e),T()}}}function uc(e){const t=ui.get(e);t&&(t.flags|=8,ui.delete(e))}Xa().requestIdleCallback,Xa().cancelIdleCallback;const Vn=e=>!!e.type.__asyncLoader,dc=e=>e.type.__isKeepAlive;function lm(e,t){fc(e,"a",t)}function pm(e,t){fc(e,"da",t)}function fc(e,t,n=Qe){const a=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(di(t,a,n),n){let i=n.parent;for(;i&&i.parent;)dc(i.parent.vnode)&&um(a,t,n,i),i=i.parent}}function um(e,t,n,a){const i=di(t,e,a,!0);Mo(()=>{lo(a[t],i)},n)}function di(e,t,n=Qe,a=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{$t();const s=Ca(n),c=Ft(t,n,e,r);return s(),Nt(),c});return a?i.unshift(o):i.push(o),o}}const Xt=e=>(t,n=Qe)=>{(!Ta||e==="sp")&&di(e,(...a)=>t(...a),n)},dm=Xt("bm"),Jn=Xt("m"),fm=Xt("bu"),mm=Xt("u"),vm=Xt("bum"),Mo=Xt("um"),hm=Xt("sp"),gm=Xt("rtg"),bm=Xt("rtc");function xm(e,t=Qe){di("ec",e,t)}const ym="components",mc=Symbol.for("v-ndc");function wm(e){return Pe(e)?_m(ym,e,!1)||e:e||mc}function _m(e,t,n=!0,a=!1){const i=Ve||Qe;if(i){const o=i.type;{const s=Hc(o,!1);if(s&&(s===t||s===yt(t)||s===Ya(yt(t))))return o}const r=vc(i[e]||o[e],t)||vc(i.appContext[e],t);return!r&&a?o:r}}function vc(e,t){return e&&(e[t]||e[yt(t)]||e[Ya(yt(t))])}function mn(e,t,n,a){let i;const o=n,r=ae(e);if(r||Pe(e)){const s=r&&jn(e);let c=!1,l=!1;s&&(c=!wt(e),l=Yt(e),e=ei(e)),i=new Array(e.length);for(let p=0,d=e.length;pt(s,c,void 0,o));else{const s=Object.keys(e);i=new Array(s.length);for(let c=0,l=s.length;c0;return V(),qe(Ce,null,[ve("slot",n,a)],l?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),V();const r=o&&hc(o(n)),s=n.key||r&&r.key,c=qe(Ce,{key:(s&&!Kt(s)?s:`_${t}`)+""},r||[],r&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function hc(e){return e.some(t=>Zo(t)?!(t.type===en||t.type===Ce&&!hc(t.children)):!0)?e:null}const Do=e=>e?Vc(e)?bi(e):Do(e.parent):null,Ea=He(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=>Do(e.parent),$root:e=>Do(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>yc(e),$forceUpdate:e=>e.f||(e.f=()=>{Co(e.update)}),$nextTick:e=>e.n||(e.n=Po.bind(e.proxy)),$watch:e=>im.bind(e)}),Ro=(e,t)=>e!==be&&!e.__isScriptSetup&&me(e,t),km={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:i,props:o,accessCache:r,type:s,appContext:c}=e;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Ro(a,t))return r[t]=1,a[t];if(i!==be&&me(i,t))return r[t]=2,i[t];if(me(o,t))return r[t]=3,o[t];if(n!==be&&me(n,t))return r[t]=4,n[t];$o&&(r[t]=0)}}const l=Ea[t];let p,d;if(l)return t==="$attrs"&&Ye(e.attrs,"get",""),l(e);if((p=s.__cssModules)&&(p=p[t]))return p;if(n!==be&&me(n,t))return r[t]=4,n[t];if(d=c.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:a,setupState:i,ctx:o}=e;return Ro(i,t)?(i[t]=n,!0):a!==be&&me(a,t)?(a[t]=n,!0):me(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:i,props:o,type:r}},s){let c;return!!(n[s]||e!==be&&s[0]!=="$"&&me(e,s)||Ro(t,s)||me(o,s)||me(a,s)||me(Ea,s)||me(i.config.globalProperties,s)||(c=r.__cssModules)&&c[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function gc(e){return ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let $o=!0;function jm(e){const t=yc(e),n=e.proxy,a=e.ctx;$o=!1,t.beforeCreate&&bc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:s,provide:c,inject:l,created:p,beforeMount:d,mounted:v,beforeUpdate:u,updated:h,activated:f,deactivated:T,beforeDestroy:w,beforeUnmount:_,destroyed:A,unmounted:z,render:B,renderTracked:S,renderTriggered:E,errorCaptured:M,serverPrefetch:j,expose:q,inheritAttrs:Z,components:ee,directives:re,filters:oe}=t;if(l&&Sm(l,a,null),r)for(const F in r){const L=r[F];X(L)&&(a[F]=L.bind(n))}if(i){const F=i.call(n,n);Se(F)&&(e.data=ii(F))}if($o=!0,o)for(const F in o){const L=o[F],ze=X(L)?L.bind(n,n):X(L.get)?L.get.bind(n,n):Rt,et=!X(L)&&X(L.set)?L.set.bind(n):Rt,ot=ct({get:ze,set:et});Object.defineProperty(a,F,{enumerable:!0,configurable:!0,get:()=>ot.value,set:Be=>ot.value=Be})}if(s)for(const F in s)xc(s[F],a,n,F);if(c){const F=X(c)?c.call(n):c;Reflect.ownKeys(F).forEach(L=>{sc(L,F[L])})}p&&bc(p,e,"c");function H(F,L){ae(L)?L.forEach(ze=>F(ze.bind(n))):L&&F(L.bind(n))}if(H(dm,d),H(Jn,v),H(fm,u),H(mm,h),H(lm,f),H(pm,T),H(xm,M),H(bm,S),H(gm,E),H(vm,_),H(Mo,z),H(hm,j),ae(q))if(q.length){const F=e.exposed||(e.exposed={});q.forEach(L=>{Object.defineProperty(F,L,{get:()=>n[L],set:ze=>n[L]=ze,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Rt&&(e.render=B),Z!=null&&(e.inheritAttrs=Z),ee&&(e.components=ee),re&&(e.directives=re),j&&pc(e)}function Sm(e,t,n=Rt){ae(e)&&(e=No(e));for(const a in e){const i=e[a];let o;Se(i)?"default"in i?o=ja(i.from||a,i.default,!0):o=ja(i.from||a):o=ja(i),Ze(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[a]=o}}function bc(e,t,n){Ft(ae(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function xc(e,t,n,a){let i=a.includes(".")?lc(n,a):()=>n[a];if(Pe(e)){const o=t[e];X(o)&&fn(i,o)}else if(X(e))fn(i,e.bind(n));else if(Se(e))if(ae(e))e.forEach(o=>xc(o,t,n,a));else{const o=X(e.handler)?e.handler.bind(n):t[e.handler];X(o)&&fn(i,o,e)}}function yc(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,s=o.get(t);let c;return s?c=s:!i.length&&!n&&!a?c=t:(c={},i.length&&i.forEach(l=>fi(c,l,r,!0)),fi(c,t,r)),Se(t)&&o.set(t,c),c}function fi(e,t,n,a=!1){const{mixins:i,extends:o}=t;o&&fi(e,o,n,!0),i&&i.forEach(r=>fi(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=Em[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const Em={data:wc,props:_c,emits:_c,methods:Oa,computed:Oa,beforeCreate:at,created:at,beforeMount:at,mounted:at,beforeUpdate:at,updated:at,beforeDestroy:at,beforeUnmount:at,destroyed:at,unmounted:at,activated:at,deactivated:at,errorCaptured:at,serverPrefetch:at,components:Oa,directives:Oa,watch:zm,provide:wc,inject:Om};function wc(e,t){return t?e?function(){return He(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Om(e,t){return Oa(No(e),No(t))}function No(e){if(ae(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${yt(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function Cm(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||be;let i=n;const o=t.startsWith("update:"),r=o&&Pm(a,t.slice(7));r&&(r.trim&&(i=n.map(p=>Pe(p)?p.trim():p)),r.number&&(i=n.map(fo)));let s,c=a[s=uo(t)]||a[s=uo(yt(t))];!c&&o&&(c=a[s=uo(cn(t))]),c&&Ft(c,e,6,i);const l=a[s+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Ft(l,e,6,i)}}const Tm=new WeakMap;function jc(e,t,n=!1){const a=n?Tm:t.emitsCache,i=a.get(e);if(i!==void 0)return i;const o=e.emits;let r={},s=!1;if(!X(e)){const c=l=>{const p=jc(l,t,!0);p&&(s=!0,He(r,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!s?(Se(e)&&a.set(e,null),null):(ae(o)?o.forEach(c=>r[c]=null):He(r,o),Se(e)&&a.set(e,r),r)}function mi(e,t){return!e||!Ka(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,cn(t))||me(e,t))}function F0(){}function Sc(e){const{type:t,vnode:n,proxy:a,withProxy:i,propsOptions:[o],slots:r,attrs:s,emit:c,render:l,renderCache:p,props:d,data:v,setupState:u,ctx:h,inheritAttrs:f}=e,T=pi(e);let w,_;try{if(n.shapeFlag&4){const z=i||a,B=z;w=qt(l.call(B,z,p,d,u,v,h)),_=s}else{const z=t;w=qt(z.length>1?z(d,{attrs:s,slots:r,emit:c}):z(d,null)),_=t.props?s:Mm(s)}}catch(z){za.length=0,ci(z,e,1),w=ve(en)}let A=w;if(_&&f!==!1){const z=Object.keys(_),{shapeFlag:B}=A;z.length&&B&7&&(o&&z.some(co)&&(_=Dm(_,o)),A=Gn(A,_,!1,!0))}return n.dirs&&(A=Gn(A,null,!1,!0),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&To(A,n.transition),w=A,pi(T),w}const Mm=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ka(n))&&((t||(t={}))[n]=e[n]);return t},Dm=(e,t)=>{const n={};for(const a in e)(!co(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function Rm(e,t,n){const{props:a,children:i,component:o}=e,{props:r,children:s,patchFlag:c}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return a?Ec(a,r,l):!!r;if(c&8){const p=t.dynamicProps;for(let d=0;dObject.create(Oc),Ac=e=>Object.getPrototypeOf(e)===Oc;function Nm(e,t,n,a=!1){const i={},o=zc();e.propsDefaults=Object.create(null),Ic(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=a?i:Lf(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Fm(e,t,n,a){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,s=ue(i),[c]=e.propsOptions;let l=!1;if((a||r>0)&&!(r&16)){if(r&8){const p=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[v,u]=Pc(d,t,!0);He(r,v),u&&s.push(...u)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return Se(e)&&a.set(e,Fn),Fn;if(ae(o))for(let p=0;pe==="_"||e==="_ctx"||e==="$stable",qo=e=>ae(e)?e.map(qt):[qt(e)],qm=(e,t,n)=>{if(t._n)return t;const a=De((...i)=>qo(t(...i)),n);return a._c=!1,a},Tc=(e,t,n)=>{const a=e._ctx;for(const i in e){if(Lo(i))continue;const o=e[i];if(X(o))t[i]=qm(i,o,a);else if(o!=null){const r=qo(o);t[i]=()=>r}}},Mc=(e,t)=>{const n=qo(t);e.slots.default=()=>n},Dc=(e,t,n)=>{for(const a in t)(n||!Lo(a))&&(e[a]=t[a])},Um=(e,t,n)=>{const a=e.slots=zc();if(e.vnode.shapeFlag&32){const i=t._;i?(Dc(a,t,n),n&&Os(a,"_",i,!0)):Tc(t,a)}else t&&Mc(e,t)},Bm=(e,t,n)=>{const{vnode:a,slots:i}=e;let o=!0,r=be;if(a.shapeFlag&32){const s=t._;s?n&&s===1?o=!1:Dc(i,t,n):(o=!t.$stable,Tc(t,i)),r=t}else t&&(Mc(e,t),r={default:1});if(o)for(const s in i)!Lo(s)&&r[s]==null&&delete i[s]},ft=Km;function Zm(e){return Wm(e)}function Wm(e,t){const n=Xa();n.__VUE__=!0;const{insert:a,remove:i,patchProp:o,createElement:r,createText:s,createComment:c,setText:l,setElementText:p,parentNode:d,nextSibling:v,setScopeId:u=Rt,insertStaticContent:h}=e,f=(m,g,x,P=null,k=null,C=null,$=void 0,D=null,R=!!g.dynamicChildren)=>{if(m===g)return;m&&!Ia(m,g)&&(P=gt(m),Be(m,k,C,!0),m=null),g.patchFlag===-2&&(R=!1,g.dynamicChildren=null);const{type:I,ref:W,shapeFlag:U}=g;switch(I){case vi:T(m,g,x,P);break;case en:w(m,g,x,P);break;case Bo:m==null&&_(g,x,P,$);break;case Ce:ee(m,g,x,P,k,C,$,D,R);break;default:U&1?B(m,g,x,P,k,C,$,D,R):U&6?re(m,g,x,P,k,C,$,D,R):(U&64||U&128)&&I.process(m,g,x,P,k,C,$,D,R,ge)}W!=null&&k?Sa(W,m&&m.ref,C,g||m,!g):W==null&&m&&m.ref!=null&&Sa(m.ref,null,C,m,!0)},T=(m,g,x,P)=>{if(m==null)a(g.el=s(g.children),x,P);else{const k=g.el=m.el;g.children!==m.children&&l(k,g.children)}},w=(m,g,x,P)=>{m==null?a(g.el=c(g.children||""),x,P):g.el=m.el},_=(m,g,x,P)=>{[m.el,m.anchor]=h(m.children,g,x,P,m.el,m.anchor)},A=({el:m,anchor:g},x,P)=>{let k;for(;m&&m!==g;)k=v(m),a(m,x,P),m=k;a(g,x,P)},z=({el:m,anchor:g})=>{let x;for(;m&&m!==g;)x=v(m),i(m),m=x;i(g)},B=(m,g,x,P,k,C,$,D,R)=>{if(g.type==="svg"?$="svg":g.type==="math"&&($="mathml"),m==null)S(g,x,P,k,C,$,D,R);else{const I=m.el&&m.el._isVueCE?m.el:null;try{I&&I._beginPatch(),j(m,g,k,C,$,D,R)}finally{I&&I._endPatch()}}},S=(m,g,x,P,k,C,$,D)=>{let R,I;const{props:W,shapeFlag:U,transition:J,dirs:Q}=m;if(R=m.el=r(m.type,C,W&&W.is,W),U&8?p(R,m.children):U&16&&M(m.children,R,null,P,k,Uo(m,C),$,D),Q&&En(m,null,P,"created"),E(R,m,m.scopeId,$,P),W){for(const ke in W)ke!=="value"&&!ha(ke)&&o(R,ke,null,W[ke],C,P);"value"in W&&o(R,"value",null,W.value,C),(I=W.onVnodeBeforeMount)&&Ut(I,P,m)}Q&&En(m,null,P,"beforeMount");const le=Vm(k,J);le&&J.beforeEnter(R),a(R,g,x),((I=W&&W.onVnodeMounted)||le||Q)&&ft(()=>{I&&Ut(I,P,m),le&&J.enter(R),Q&&En(m,null,P,"mounted")},k)},E=(m,g,x,P,k)=>{if(x&&u(m,x),P)for(let C=0;C{for(let I=R;I{const D=g.el=m.el;let{patchFlag:R,dynamicChildren:I,dirs:W}=g;R|=m.patchFlag&16;const U=m.props||be,J=g.props||be;let Q;if(x&&On(x,!1),(Q=J.onVnodeBeforeUpdate)&&Ut(Q,x,g,m),W&&En(g,m,x,"beforeUpdate"),x&&On(x,!0),(U.innerHTML&&J.innerHTML==null||U.textContent&&J.textContent==null)&&p(D,""),I?q(m.dynamicChildren,I,D,x,P,Uo(g,k),C):$||L(m,g,D,null,x,P,Uo(g,k),C,!1),R>0){if(R&16)Z(D,U,J,x,k);else if(R&2&&U.class!==J.class&&o(D,"class",null,J.class,k),R&4&&o(D,"style",U.style,J.style,k),R&8){const le=g.dynamicProps;for(let ke=0;ke{Q&&Ut(Q,x,g,m),W&&En(g,m,x,"updated")},P)},q=(m,g,x,P,k,C,$)=>{for(let D=0;D{if(g!==x){if(g!==be)for(const C in g)!ha(C)&&!(C in x)&&o(m,C,g[C],null,k,P);for(const C in x){if(ha(C))continue;const $=x[C],D=g[C];$!==D&&C!=="value"&&o(m,C,D,$,k,P)}"value"in x&&o(m,"value",g.value,x.value,k)}},ee=(m,g,x,P,k,C,$,D,R)=>{const I=g.el=m?m.el:s(""),W=g.anchor=m?m.anchor:s("");let{patchFlag:U,dynamicChildren:J,slotScopeIds:Q}=g;Q&&(D=D?D.concat(Q):Q),m==null?(a(I,x,P),a(W,x,P),M(g.children||[],x,W,k,C,$,D,R)):U>0&&U&64&&J&&m.dynamicChildren&&m.dynamicChildren.length===J.length?(q(m.dynamicChildren,J,x,k,C,$,D),(g.key!=null||k&&g===k.subTree)&&Rc(m,g,!0)):L(m,g,x,W,k,C,$,D,R)},re=(m,g,x,P,k,C,$,D,R)=>{g.slotScopeIds=D,m==null?g.shapeFlag&512?k.ctx.activate(g,x,P,$,R):oe(g,x,P,k,C,$,R):te(m,g,R)},oe=(m,g,x,P,k,C,$)=>{const D=m.component=ev(m,P,k);if(dc(m)&&(D.ctx.renderer=ge),tv(D,!1,$),D.asyncDep){if(k&&k.registerDep(D,H,$),!m.el){const R=D.subTree=ve(en);w(null,R,g,x),m.placeholder=R.el}}else H(D,m,g,x,k,C,$)},te=(m,g,x)=>{const P=g.component=m.component;if(Rm(m,g,x))if(P.asyncDep&&!P.asyncResolved){F(P,g,x);return}else P.next=g,P.update();else g.el=m.el,P.vnode=g},H=(m,g,x,P,k,C,$)=>{const D=()=>{if(m.isMounted){let{next:U,bu:J,u:Q,parent:le,vnode:ke}=m;{const bt=$c(m);if(bt){U&&(U.el=ke.el,F(m,U,$)),bt.asyncDep.then(()=>{m.isUnmounted||D()});return}}let de=U,tt;On(m,!1),U?(U.el=ke.el,F(m,U,$)):U=ke,J&&Qa(J),(tt=U.props&&U.props.onVnodeBeforeUpdate)&&Ut(tt,le,U,ke),On(m,!0);const Le=Sc(m),dt=m.subTree;m.subTree=Le,f(dt,Le,d(dt.el),gt(dt),m,k,C),U.el=Le.el,de===null&&$m(m,Le.el),Q&&ft(Q,k),(tt=U.props&&U.props.onVnodeUpdated)&&ft(()=>Ut(tt,le,U,ke),k)}else{let U;const{el:J,props:Q}=g,{bm:le,m:ke,parent:de,root:tt,type:Le}=m,dt=Vn(g);On(m,!1),le&&Qa(le),!dt&&(U=Q&&Q.onVnodeBeforeMount)&&Ut(U,de,g),On(m,!0);{tt.ce&&tt.ce._def.shadowRoot!==!1&&tt.ce._injectChildStyle(Le);const bt=m.subTree=Sc(m);f(null,bt,x,P,m,k,C),g.el=bt.el}if(ke&&ft(ke,k),!dt&&(U=Q&&Q.onVnodeMounted)){const bt=g;ft(()=>Ut(U,de,bt),k)}(g.shapeFlag&256||de&&Vn(de.vnode)&&de.vnode.shapeFlag&256)&&m.a&&ft(m.a,k),m.isMounted=!0,g=x=P=null}};m.scope.on();const R=m.effect=new Ts(D);m.scope.off();const I=m.update=R.run.bind(R),W=m.job=R.runIfDirty.bind(R);W.i=m,W.id=m.uid,R.scheduler=()=>Co(W),On(m,!0),I()},F=(m,g,x)=>{g.component=m;const P=m.vnode.props;m.vnode=g,m.next=null,Fm(m,g.props,P,x),Bm(m,g.children,x),$t(),ac(m),Nt()},L=(m,g,x,P,k,C,$,D,R=!1)=>{const I=m&&m.children,W=m?m.shapeFlag:0,U=g.children,{patchFlag:J,shapeFlag:Q}=g;if(J>0){if(J&128){et(I,U,x,P,k,C,$,D,R);return}else if(J&256){ze(I,U,x,P,k,C,$,D,R);return}}Q&8?(W&16&&We(I,k,C),U!==I&&p(x,U)):W&16?Q&16?et(I,U,x,P,k,C,$,D,R):We(I,k,C,!0):(W&8&&p(x,""),Q&16&&M(U,x,P,k,C,$,D,R))},ze=(m,g,x,P,k,C,$,D,R)=>{m=m||Fn,g=g||Fn;const I=m.length,W=g.length,U=Math.min(I,W);let J;for(J=0;JW?We(m,k,C,!0,!1,U):M(g,x,P,k,C,$,D,R,U)},et=(m,g,x,P,k,C,$,D,R)=>{let I=0;const W=g.length;let U=m.length-1,J=W-1;for(;I<=U&&I<=J;){const Q=m[I],le=g[I]=R?vn(g[I]):qt(g[I]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;I++}for(;I<=U&&I<=J;){const Q=m[U],le=g[J]=R?vn(g[J]):qt(g[J]);if(Ia(Q,le))f(Q,le,x,null,k,C,$,D,R);else break;U--,J--}if(I>U){if(I<=J){const Q=J+1,le=QJ)for(;I<=U;)Be(m[I],k,C,!0),I++;else{const Q=I,le=I,ke=new Map;for(I=le;I<=J;I++){const Ke=g[I]=R?vn(g[I]):qt(g[I]);Ke.key!=null&&ke.set(Ke.key,I)}let de,tt=0;const Le=J-le+1;let dt=!1,bt=0;const $n=new Array(Le);for(I=0;I=Le){Be(Ke,k,C,!0);continue}let rt;if(Ke.key!=null)rt=ke.get(Ke.key);else for(de=le;de<=J;de++)if($n[de-le]===0&&Ia(Ke,g[de])){rt=de;break}rt===void 0?Be(Ke,k,C,!0):($n[rt-le]=I+1,rt>=bt?bt=rt:dt=!0,f(Ke,g[rt],x,null,k,C,$,D,R),tt++)}const io=dt?Jm($n):Fn;for(de=io.length-1,I=Le-1;I>=0;I--){const Ke=le+I,rt=g[Ke],b=g[Ke+1],y=Ke+1{const{el:C,type:$,transition:D,children:R,shapeFlag:I}=m;if(I&6){ot(m.component.subTree,g,x,P);return}if(I&128){m.suspense.move(g,x,P);return}if(I&64){$.move(m,g,x,ge);return}if($===Ce){a(C,g,x);for(let W=0;WD.enter(C),k);else{const{leave:W,delayLeave:U,afterLeave:J}=D,Q=()=>{m.ctx.isUnmounted?i(C):a(C,g,x)},le=()=>{C._isLeaving&&C[sm](!0),W(C,()=>{Q(),J&&J()})};U?U(C,Q,le):le()}else a(C,g,x)},Be=(m,g,x,P=!1,k=!1)=>{const{type:C,props:$,ref:D,children:R,dynamicChildren:I,shapeFlag:W,patchFlag:U,dirs:J,cacheIndex:Q}=m;if(U===-2&&(k=!1),D!=null&&($t(),Sa(D,null,x,m,!0),Nt()),Q!=null&&(g.renderCache[Q]=void 0),W&256){g.ctx.deactivate(m);return}const le=W&1&&J,ke=!Vn(m);let de;if(ke&&(de=$&&$.onVnodeBeforeUnmount)&&Ut(de,g,m),W&6)Mt(m.component,x,P);else{if(W&128){m.suspense.unmount(x,P);return}le&&En(m,null,g,"beforeUnmount"),W&64?m.type.remove(m,g,x,ge,P):I&&!I.hasOnce&&(C!==Ce||U>0&&U&64)?We(I,g,x,!1,!0):(C===Ce&&U&384||!k&&W&16)&&We(R,g,x),P&&Tt(m)}(ke&&(de=$&&$.onVnodeUnmounted)||le)&&ft(()=>{de&&Ut(de,g,m),le&&En(m,null,g,"unmounted")},x)},Tt=m=>{const{type:g,el:x,anchor:P,transition:k}=m;if(g===Ce){Jt(x,P);return}if(g===Bo){z(m);return}const C=()=>{i(x),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(m.shapeFlag&1&&k&&!k.persisted){const{leave:$,delayLeave:D}=k,R=()=>$(x,C);D?D(m.el,C,R):R()}else C()},Jt=(m,g)=>{let x;for(;m!==g;)x=v(m),i(m),m=x;i(g)},Mt=(m,g,x)=>{const{bum:P,scope:k,job:C,subTree:$,um:D,m:R,a:I}=m;Nc(R),Nc(I),P&&Qa(P),k.stop(),C&&(C.flags|=8,Be($,m,g,x)),D&&ft(D,g),ft(()=>{m.isUnmounted=!0},g)},We=(m,g,x,P=!1,k=!1,C=0)=>{for(let $=C;${if(m.shapeFlag&6)return gt(m.component.subTree);if(m.shapeFlag&128)return m.suspense.next();const g=v(m.anchor||m.el),x=g&&g[om];return x?v(x):g};let St=!1;const he=(m,g,x)=>{let P;m==null?g._vnode&&(Be(g._vnode,null,null,!0),P=g._vnode.component):f(g._vnode||null,m,g,null,null,null,x),g._vnode=m,St||(St=!0,ac(P),ic(),St=!1)},ge={p:f,um:Be,m:ot,r:Tt,mt:oe,mc:M,pc:L,pbc:q,n:gt,o:e};return{render:he,hydrate:void 0,createApp:Im(he)}}function Uo({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function On({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rc(e,t,n=!1){const a=e.children,i=t.children;if(ae(a)&&ae(i))for(let o=0;o>1,e[n[s]]0&&(t[a]=n[o-1]),n[o]=a)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function $c(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$c(t)}function Nc(e){if(e)for(let t=0;te.__isSuspense;function Km(e,t){t&&t.pendingBranch?ae(e)?t.effects.push(...e):t.effects.push(e):em(e)}const Ce=Symbol.for("v-fgt"),vi=Symbol.for("v-txt"),en=Symbol.for("v-cmt"),Bo=Symbol.for("v-stc"),za=[];let mt=null;function V(e=!1){za.push(mt=e?null:[])}function Hm(){za.pop(),mt=za[za.length-1]||null}let Aa=1;function qc(e,t=!1){Aa+=e,e<0&&mt&&t&&(mt.hasOnce=!0)}function Uc(e){return e.dynamicChildren=Aa>0?mt||Fn:null,Hm(),Aa>0&&mt&&mt.push(e),e}function ie(e,t,n,a,i,o){return Uc(_e(e,t,n,a,i,o,!0))}function qe(e,t,n,a,i){return Uc(ve(e,t,n,a,i,!0))}function Zo(e){return e?e.__v_isVNode===!0:!1}function Ia(e,t){return e.type===t.type&&e.key===t.key}const Bc=({key:e})=>e??null,hi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Pe(e)||Ze(e)||X(e)?{i:Ve,r:e,k:t,f:!!n}:e:null);function _e(e,t=null,n=null,a=0,i=null,o=e===Ce?0:1,r=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bc(t),ref:t&&hi(t),scopeId:rc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ve};return s?(Wo(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=Pe(n)?8:16),Aa>0&&!r&&mt&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&mt.push(c),c}const ve=Gm;function Gm(e,t=null,n=null,a=0,i=null,o=!1){if((!e||e===mc)&&(e=en),Zo(e)){const s=Gn(e,t,!0);return n&&Wo(s,n),Aa>0&&!o&&mt&&(s.shapeFlag&6?mt[mt.indexOf(e)]=s:mt.push(s)),s.patchFlag=-2,s}if(sv(e)&&(e=e.__vccOpts),t){t=Ym(t);let{class:s,style:c}=t;s&&!Pe(s)&&(t.class=Ot(s)),Se(c)&&(zo(c)&&!ae(c)&&(c=He({},c)),t.style=mo(c))}const r=Pe(e)?1:Lc(e)?128:rm(e)?64:Se(e)?4:X(e)?2:0;return _e(e,t,n,a,i,r,o,!0)}function Ym(e){return e?zo(e)||Ac(e)?He({},e):e:null}function Gn(e,t,n=!1,a=!1){const{props:i,ref:o,patchFlag:r,children:s,transition:c}=e,l=t?Zc(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Bc(l),ref:t&&t.ref?n&&o?ae(o)?o.concat(hi(t)):[o,hi(t)]:hi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&a&&To(p,c.clone(p)),p}function Pa(e=" ",t=0){return ve(vi,null,e,t)}function Te(e="",t=!1){return t?(V(),qe(en,null,e)):ve(en,null,e)}function qt(e){return e==null||typeof e=="boolean"?ve(en):ae(e)?ve(Ce,null,e.slice()):Zo(e)?vn(e):ve(vi,null,String(e))}function vn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gn(e)}function Wo(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(ae(t))n=16;else if(typeof t=="object")if(a&65){const i=t.default;i&&(i._c&&(i._d=!1),Wo(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ac(t)?t._ctx=Ve:i===3&&Ve&&(Ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ve},n=32):(t=String(t),a&64?(n=16,t=[Pa(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zc(...e){const t={};for(let n=0;nQe||Ve;let gi,Jo;{const e=Xa(),t=(n,a)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(a),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};gi=t("__VUE_INSTANCE_SETTERS__",n=>Qe=n),Jo=t("__VUE_SSR_SETTERS__",n=>Ta=n)}const Ca=e=>{const t=Qe;return gi(e),e.scope.on(),()=>{e.scope.off(),gi(t)}},Wc=()=>{Qe&&Qe.scope.off(),gi(null)};function Vc(e){return e.vnode.shapeFlag&4}let Ta=!1;function tv(e,t=!1,n=!1){t&&Jo(t);const{props:a,children:i}=e.vnode,o=Vc(e);Nm(e,a,o,t),Um(e,i,n||t);const r=o?nv(e,t):void 0;return t&&Jo(!1),r}function nv(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,km);const{setup:a}=n;if(a){$t();const i=e.setupContext=a.length>1?iv(e):null,o=Ca(e),r=Bn(a,e,0,[e.props,i]),s=js(r);if(Nt(),o(),(s||e.sp)&&!Vn(e)&&pc(e),s){if(r.then(Wc,Wc),t)return r.then(c=>{Jc(e,c)}).catch(c=>{ci(c,e,0)});e.asyncDep=r}else Jc(e,r)}else Kc(e)}function Jc(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Se(t)&&(e.setupState=Xs(t)),Kc(e)}function Kc(e,t,n){const a=e.type;e.render||(e.render=a.render||Rt);{const i=Ca(e);$t();try{jm(e)}finally{Nt(),i()}}}const av={get(e,t){return Ye(e,"get",""),e[t]}};function iv(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,av),slots:e.slots,emit:e.emit,expose:t}}function bi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xs(qf(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ea)return Ea[n](e)},has(t,n){return n in t||n in Ea}})):e.proxy}const ov=/(?:^|[-_])\w/g,rv=e=>e.replace(ov,t=>t.toUpperCase()).replace(/[-_]/g,"");function Hc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function Gc(e,t,n=!1){let a=Hc(t);if(!a&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(a=i[1])}if(!a&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};a=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return a?rv(a):n?"App":"Anonymous"}function sv(e){return X(e)&&"__vccOpts"in e}const ct=(e,t)=>Wf(e,t,Ta),cv="3.5.26";let Ko;const Yc=typeof window<"u"&&window.trustedTypes;if(Yc)try{Ko=Yc.createPolicy("vue",{createHTML:e=>e})}catch{}const Qc=Ko?e=>Ko.createHTML(e):e=>e,lv="http://www.w3.org/2000/svg",pv="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,Xc=tn&&tn.createElement("template"),uv={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const i=t==="svg"?tn.createElementNS(lv,e):t==="mathml"?tn.createElementNS(pv,e):n?tn.createElement(e,{is:n}):tn.createElement(e);return e==="select"&&a&&a.multiple!=null&&i.setAttribute("multiple",a.multiple),i},createText:e=>tn.createTextNode(e),createComment:e=>tn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Xc.innerHTML=Qc(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=Xc.content;if(a==="svg"||a==="mathml"){const c=s.firstChild;for(;c.firstChild;)s.appendChild(c.firstChild);s.removeChild(c)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dv=Symbol("_vtc");function fv(e,t,n){const a=e[dv];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const el=Symbol("_vod"),mv=Symbol("_vsh"),vv=Symbol(""),hv=/(?:^|;)\s*display\s*:/;function gv(e,t,n){const a=e.style,i=Pe(n);let o=!1;if(n&&!i){if(t)if(Pe(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&xi(a,s,"")}else for(const r in t)n[r]==null&&xi(a,r,"");for(const r in n)r==="display"&&(o=!0),xi(a,r,n[r])}else if(i){if(t!==n){const r=a[vv];r&&(n+=";"+r),a.cssText=n,o=hv.test(n)}}else t&&e.removeAttribute("style");el in e&&(e[el]=o?a.display:"",e[mv]&&(a.display="none"))}const tl=/\s*!important$/;function xi(e,t,n){if(ae(n))n.forEach(a=>xi(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=bv(e,t);tl.test(n)?e.setProperty(cn(a),n.replace(tl,""),"important"):e[a]=n}}const nl=["Webkit","Moz","ms"],Ho={};function bv(e,t){const n=Ho[t];if(n)return n;let a=yt(t);if(a!=="filter"&&a in e)return Ho[t]=a;a=Ya(a);for(let i=0;iGo||(_v.then(()=>Go=0),Go=Date.now());function jv(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;Ft(Sv(a,n.value),t,5,[a])};return n.value=e,n.attached=kv(),n}function Sv(e,t){if(ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>i=>!i._stopped&&a&&a(i))}else return t}const cl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ev=(e,t,n,a,i,o)=>{const r=i==="svg";t==="class"?fv(e,a,r):t==="style"?gv(e,n,a):Ka(t)?co(t)||yv(e,t,n,a,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ov(e,t,a,r))?(ol(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&il(e,t,a,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Pe(a))?ol(e,yt(t),a,o,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),il(e,t,a,r))};function Ov(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&cl(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return cl(t)&&Pe(n)?!1:t in e}const ll=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ae(t)?n=>Qa(t,n):t};function zv(e){e.target.composing=!0}function pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Yo=Symbol("_assign");function ul(e,t,n){return t&&(e=e.trim()),n&&(e=fo(e)),e}const Av={created(e,{modifiers:{lazy:t,trim:n,number:a}},i){e[Yo]=ll(i);const o=a||i.props&&i.props.type==="number";Yn(e,t?"change":"input",r=>{r.target.composing||e[Yo](ul(e.value,n,o))}),(n||o)&&Yn(e,"change",()=>{e.value=ul(e.value,n,o)}),t||(Yn(e,"compositionstart",zv),Yn(e,"compositionend",pl),Yn(e,"change",pl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:i,number:o}},r){if(e[Yo]=ll(r),e.composing)return;const s=(o||e.type==="number")&&!/^0\d/.test(e.value)?fo(e.value):e.value,c=t??"";s!==c&&(document.activeElement===e&&e.type!=="range"&&(a&&t===n||i&&e.value.trim()===c)||(e.value=c))}},Iv=["ctrl","shift","alt","meta"],Pv={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)=>Iv.some(n=>e[`${n}Key`]&&!t.includes(n))},Qo=(e,t)=>{const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=((i,...o)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=(i=>{if(!("key"in i))return;const o=cn(i.key);if(t.some(r=>r===o||Cv[r]===o))return e(i)}))},Tv=He({patchProp:Ev},uv);let dl;function Mv(){return dl||(dl=Zm(Tv))}const Dv=((...e)=>{const t=Mv().createApp(...e),{mount:n}=t;return t.mount=a=>{const i=$v(a);if(!i)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,Rv(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function Rv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $v(e){return Pe(e)?document.querySelector(e):e}const Nv=e=>{let t={id:"",form:{source:"",contentType:[],filters:[],manualItems:[""],showImage:!0,displayType:"card",displayNumber:6},config:{contentMap:{},termMap:{}}};e?.id&&(t.id=e.id),e?.form&&Object.keys(e.form).length&&(t.form={...t.form,...e.form}),e?.config&&Object.keys(e.config).length&&(t.config={...t.config,...e.config});const n=ii(t),a=(c,l)=>l!==void 0?n.form[c][l]:n.form[c],i=(c,l,p)=>{p!==void 0&&Array.isArray(n.form[c])?n.form[c][p]!==void 0?n.form[c][p]=l:n.form[c].push(l):n.form[c]=l},o=c=>`${n.id}-${c}`,r=c=>n.config[c],s=(c,l,p=!1)=>{p?n.config[c]={...n.config[c],...l}:n.config[c]=l};return{form:n.form,config:n.config,getField:a,setField:i,getScopedId:o,getConfig:r,setConfig:s}};function nn(e){if(e!==void 0){const t=Nv(e);return sc("state",t),t}return ja("state")}const Bt=(e,t)=>{const n=e.__vccOpts||e;for(const[a,i]of t)n[a]=i;return n},Fv={},Lv={class:"tide-form"};function qv(e,t){return V(),ie("div",Lv,[Kn(e.$slots,"default")])}const Uv=Bt(Fv,[["render",qv]]),Bv={class:"tide-fieldset"},Zv={class:"tide-fieldset__legend"},Wv={key:0,class:"tide-fieldset__required"},Vv={key:0,class:"tide-fieldset__description"},Jv=Re({__name:"TideFieldset",props:{title:{},description:{default:void 0},required:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("fieldset",Bv,[_e("legend",Zv,[Pa(st(e.title)+" ",1),e.required?(V(),ie("span",Wv,"*")):Te("",!0)]),e.description?(V(),ie("p",Vv,st(e.description),1)):Te("",!0),Kn(t.$slots,"default",{},void 0,!0)]))}}),yi=Bt(Jv,[["__scopeId","data-v-da18ce75"]]),Kv={class:"tide-field"},Hv={key:0,class:"tide-field__required"},Gv={key:1,class:"tide-form__description"},Yv={key:2,class:"tide-form__error"},hn=Re({__name:"TideField",props:{id:{},index:{default:void 0},scope:{default:void 0},type:{default:"label"},label:{default:void 0},hideLabel:{type:Boolean,default:!1},description:{default:void 0},required:{type:Boolean,default:!1},error:{default:void 0}},setup(e){const t=e,{getScopedId:n,getField:a,setField:i}=nn(),o=ct(()=>{let c=n(t.id);return t.scope&&(c+=`-${t.scope}`),t.index!==void 0&&(c+=`-${t.index}`),c}),r=ct(()=>{const c=a(t.id);return Array.isArray(c)&&t.index!==void 0?c[t.index]:c}),s=(c,l)=>{i(t.id,c,l)};return(c,l)=>(V(),ie("div",Kv,[e.label?(V(),qe(wm(e.type),{key:0,for:e.label?o.value:void 0,class:Ot({"tide-form__label":!0,"tide-visually-hidden":e.hideLabel})},{default:De(()=>[Pa(st(e.label)+" ",1),e.required?(V(),ie("span",Hv,"*")):Te("",!0)]),_:1},8,["for","class"])):Te("",!0),Kn(c.$slots,"default",{key:e.id,id:o.value,value:r.value,update:s}),e.description?(V(),ie("div",Gv,st(e.description),1)):Te("",!0),e.error?(V(),ie("div",Yv,st(e.error),1)):Te("",!0)]))}}),Qv=["aria-disabled"],Xv={class:"tide-option-button__image"},eh=["src"],th={class:"tide-option-button__main"},nh={class:"tide-option-button__label"},ah=["id"],ih=["id","name","aria-describedby","value","checked","required"],oh=Re({__name:"TideOptionButton",props:{id:{},fieldId:{},label:{},description:{default:void 0},icon:{default:void 0},value:{},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=t;return(a,i)=>(V(),ie("label",{class:"tide-option-button tide-form__element","aria-disabled":e.disabled},[_e("span",Xv,[_e("img",{class:"tide-option-button__icon",role:"presentation",src:e.icon,alt:""},null,8,eh)]),_e("span",th,[_e("span",nh,st(e.label),1),e.description?(V(),ie("span",{key:0,id:`${e.fieldId}-description`,class:"tide-form__description"},st(e.description),9,ah)):Te("",!0)]),_e("input",{type:"radio",id:`${e.fieldId}-${e.id}`,name:e.fieldId,class:"tide-option-button__input","aria-describedby":`${e.fieldId}-description`,value:e.id,checked:e.id===e.value,required:e.required,onChange:i[0]||(i[0]=o=>n("change",e.id))},null,40,ih)],8,Qv))}}),rh=Bt(oh,[["__scopeId","data-v-378f24ab"]]),sh={class:"tide-option-group"},ch=Re({__name:"TideOptionGroup",props:{id:{},value:{},required:{type:Boolean,default:!1},options:{}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",sh,[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),qe(rh,Zc({key:a.id,"field-id":e.id,value:e.value,required:e.required},{ref_for:!0},a,{onChange:n[0]||(n[0]=i=>t.$emit("change",i))}),null,16,["field-id","value","required"]))),128))]))}}),lh=Bt(ch,[["__scopeId","data-v-0c7fefd7"]]),ph={class:Ot({"tide-dropdown-list__autocomplete":!0,"tide-form__element":!0})},uh={key:0,class:"tide-dropdown-list__tags"},dh={class:"tide-dropdown-list__tag-text"},fh=["tabindex","aria-label","onClick"],mh=["name","id","placeholder","aria-expanded","aria-controls","aria-activedescendant","disabled","required","onKeydown"],vh={key:2,class:"tide-dropdown-list__loading-icon",width:"18",height:"18",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},hh=["id"],gh={key:0,class:"tide-dropdown-list__menu-item tide-dropdown-list__menu-empty"},bh=["id","aria-selected","aria-current","onClick"],xh=Re({__name:"TideDropdown",props:{id:{},multiple:{type:Boolean,default:!0},options:{default:()=>[]},dynamic:{type:Boolean,default:!1},placeholder:{default:"Type to search..."},value:{},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minQuery:{default:0}},emits:["change","search"],setup(e,{emit:t}){const n=e,a=t,i=It(""),o=It(!1),r=It(null);fn(i,()=>{a("search",i.value),!i.value||!l.value.length?w(null):n.dynamic&&i.value.lengthn.loading,(j,q)=>{!j&&q&&n.dynamic&&B()});const s=ct(()=>n.value?Array.isArray(n.value)?n.value:[n.value]:[]),c=ct(()=>n.multiple||!s.value.length),l=ct(()=>n.dynamic||!i.value?n.options:n.options.filter(j=>j.label.toLowerCase().includes(i.value.toLowerCase()))),p=j=>r.value?j.value===r.value?.value:!1,d=j=>!!s.value.find(q=>q.value===j.value);function v(j){a("change",n.multiple?[...s.value,j]:j),n.multiple||(i.value="",S())}function u(j){a("change",n.multiple?s.value.filter(q=>q.value!==j.value):null)}function h(){!i.value&&s.value.length&&a("change",s.value.slice(0,-1))}function f(){r.value?T(r.value):i.value||B()}function T(j){j&&(s.value.find(q=>q.value===j.value)?u(j):v(j))}function w(j){r.value=j}function _(){return l.value.findIndex(j=>j.value===r.value?.value)}function A(){if(!l.value.length)return;const j=_();j0?w(l.value[j-1]):w(l.value[l.value.length-1])}function B(){n.dynamic&&i.value.length=n.minQuery)&&B()}const M=j=>{j.target?.closest(".tide-dropdown-list")||S()};return Jn(()=>window.addEventListener("pointerdown",M)),Mo(()=>window.removeEventListener("pointerdown",M)),(j,q)=>(V(),ie("div",{class:Ot({"tide-dropdown-list":!0,"tide-dropdown-list--single":!e.multiple})},[_e("div",ph,[s.value.length?(V(),ie("div",uh,[(V(!0),ie(Ce,null,mn(s.value,Z=>(V(),ie("span",{key:Z.value,class:"tide-dropdown-list__tag"},[_e("span",dh,st(Z.label),1),_e("button",{type:"button",tabindex:e.multiple?-1:0,class:"tide-dropdown-list__tag-remove","aria-label":`Remove ${Z.label}`,onClick:ee=>T(Z)},[...q[1]||(q[1]=[_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,fh)]))),128))])):Te("",!0),c.value?tm((V(),ie("input",{key:1,name:e.id,id:e.id,type:"text",class:"tide-dropdown-list__input",autocomplete:"off",placeholder:e.placeholder,role:"combobox","aria-expanded":o.value,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":o.value?`${e.id}-menu`:void 0,"aria-activedescendant":o.value&&r.value?`${e.id}-menu-${r.value}`:void 0,disabled:e.disabled,required:e.required,"onUpdate:modelValue":q[0]||(q[0]=Z=>i.value=Z),onFocus:E,onKeydown:[Qn(S,["tab"]),Qn(S,["esc"]),Qn(Qo(z,["prevent"]),["up"]),Qn(Qo(A,["prevent"]),["down"]),Qn(h,["delete"]),Qn(Qo(f,["prevent"]),["enter"])]},null,40,mh)),[[Av,i.value]]):Te("",!0),e.loading?(V(),ie("svg",vh,[...q[2]||(q[2]=[_e("path",{d:"M10,1V3a7,7,0,1,1-7,7H1a9,9,0,1,0,9-9Z"},null,-1)])])):Te("",!0),o.value?(V(),ie("ul",{key:3,id:`${e.id}-menu`,role:"listbox",tabindex:"-1","aria-multiselectable":"true",class:"tide-dropdown-list__menu"},[!l.value.length&&i.value&&!e.loading?(V(),ie("li",gh,[...q[3]||(q[3]=[_e("span",null,"No matching results",-1)])])):Te("",!0),(V(!0),ie(Ce,null,mn(l.value,Z=>(V(),ie("li",{key:Z.value,id:`${e.id}-menu-${Z.value}`,role:"option",class:"tide-dropdown-list__menu-item","aria-selected":d(Z),"aria-current":p(Z),onClick:ee=>T(Z)},st(Z.label),9,bh))),128))],8,hh)):Te("",!0)])],2))}}),Xo=Bt(xh,[["__scopeId","data-v-5ecc9ddc"]]);function yh(e,t,n,a){function i(o){return o instanceof n?o:new n(function(r){r(o)})}return new(n||(n=Promise))(function(o,r){function s(p){try{l(a.next(p))}catch(d){r(d)}}function c(p){try{l(a.throw(p))}catch(d){r(d)}}function l(p){p.done?o(p.value):i(p.value).then(s,c)}l((a=a.apply(e,[])).next())})}function wh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,r=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return r.next=s(0),r.throw=s(1),r.return=s(2),typeof Symbol=="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(l){return function(p){return c([l,p])}}function c(l){if(a)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(n=0)),n;)try{if(a=1,i&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]Sh)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=t[n++],a--,this.bufferLength===_t&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(n.setUint8(this.bufferLength++,128),a%_t>=_t-8){for(var i=this.bufferLength;i<_t;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<_t-8;i++)n.setUint8(i,0);n.setUint32(_t-8,Math.floor(t/4294967296),!0),n.setUint32(_t-4,t),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(_h),i=0;i<8;i++)o[i*4]=this.state[i]>>>24&255,o[i*4+1]=this.state[i]>>>16&255,o[i*4+2]=this.state[i]>>>8&255,o[i*4+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,a=t.state,i=a[0],o=a[1],r=a[2],s=a[3],c=a[4],l=a[5],p=a[6],d=a[7],v=0;v<_t;v++){if(v<16)this.temp[v]=(n[v*4]&255)<<24|(n[v*4+1]&255)<<16|(n[v*4+2]&255)<<8|n[v*4+3]&255;else{var u=this.temp[v-2],h=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10;u=this.temp[v-15];var f=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[v]=(h+this.temp[v-7]|0)+(f+this.temp[v-16]|0)}var T=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&p)|0)+(d+(kh[v]+this.temp[v]|0)|0)|0,w=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&r^o&r)|0;d=p,p=l,l=c,c=s+T|0,s=r,r=o,o=i,i=T+w|0}a[0]+=i,a[1]+=o,a[2]+=r,a[3]+=s,a[4]+=c,a[5]+=l,a[6]+=p,a[7]+=d},e})();const Eh=e=>new TextEncoder().encode(e);var Oh=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Eh;function fl(e){return e instanceof Uint8Array?e:typeof e=="string"?Oh(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function zh(e){return typeof e=="string"?e.length===0:e.byteLength===0}var Ah=(function(){function e(t){this.secret=t,this.hash=new wi,this.reset()}return e.prototype.update=function(t){if(!(zh(t)||this.error))try{this.hash.update(fl(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return yh(this,void 0,void 0,function(){return wh(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new wi,this.secret){this.outer=new wi;var t=Ih(this.secret),n=new Uint8Array(_t);n.set(t);for(var a=0;a<_t;a++)t[a]^=54,n[a]^=92;this.hash.update(t),this.outer.update(n);for(var a=0;a_t){var n=new wi;n.update(t),t=n.digest()}var a=new Uint8Array(_t);return a.set(t),a}const Ph=Object.prototype.toString,Ch="[object Uint8Array]";function Th(e){return e?e.constructor===Uint8Array?!0:Ph.call(e)===Ch:!1}function Mh(e){if(!Th(e))throw new TypeError(`Expected \`Uint8Array\`, got \`${typeof e}\``)}new globalThis.TextDecoder;function ml(e){if(typeof e!="string")throw new TypeError(`Expected \`string\`, got \`${typeof e}\``)}const Dh=new globalThis.TextEncoder;function Rh(e){return ml(e),Dh.encode(e)}function $h(e){return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const Nh=65535;function Fh(e,{urlSafe:t=!1}={}){Mh(e);let n;if(e.lengtht.toString(16).padStart(2,"0"));var qh=Object.defineProperty,Uh=(e,t,n)=>t in e?qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,an=(e,t,n)=>(Uh(e,typeof t!="symbol"?t+"":t,n),n),vl=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},_i=(e,t,n)=>(vl(e,t,"read from private field"),t.get(e)),Bh=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Zh=(e,t,n,a)=>(vl(e,t,"write to private field"),t.set(e,n),n),hl=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="OAuth",Wh={error(e){console.error("[ERROR]: ",e)},warn(e){console.warn("[WARN]: ",e)},info(e){console.info("[INFO]: ",e)},http(e){console.log("[HTTP]: ",e)},verbose(e){console.log("[LOG]: ",e)},debug(e){console.debug("[DEBUG]: ",e)},silly(e){console.log("[SILLY]: ",e)}},Vh=e=>!!(e!==null&&e&&typeof e=="object"&&"message"in e||e instanceof Error),Jh=e=>Vh(e)?e:new Error("Unknown error"),zn,gl=class{constructor(e,t){if(Bh(this,zn,null),an(this,"baseUrl"),an(this,"apiPrefix"),an(this,"customFetch"),an(this,"authentication"),an(this,"defaultLocale"),an(this,"cache"),an(this,"serializer"),an(this,"logger"),an(this,"debug"),!e)throw new Error("baseUrl is required");let{apiPrefix:n,customFetch:a,authentication:i,cache:o,debug:r,defaultLocale:s,serializer:c,logger:l=Wh}=t||{};this.baseUrl=e,this.apiPrefix=n,this.customFetch=a,this.authentication=i,this.cache=o,this.defaultLocale=s,this.serializer=c,this.logger=l,this.debug=r}async fetch(e,t){let n=t?.credentials==="omit";this.debug&&n&&this.log("verbose",`Disabling authentication for request to ${e}`);try{let a,i=n?t:await this.addAuthorizationHeader(t);return a=fetch,this.customFetch&&(a=this.customFetch),{response:await a(e,i),error:null}}catch(a){let i=Jh(a);return this.debug&&this.log("error",i.message),{response:null,error:i}}}async getAccessToken({grantType:e="client_credentials",clientId:t,clientSecret:n,username:a,password:i}){if(!t||!n||!hl(this.authentication))throw new Error("credentials.clientId or credentials.clientSecret is missing on the authentication option.");let o;if(e==="password"){if(!a||!i||!hl(this.authentication))throw new Error("credentials.username or credentials.password is missing on the authentication option.");o={grant_type:"password",client_id:t,client_secret:n,username:a,password:i}}else o={grant_type:"client_credentials",client_id:t,client_secret:n};let r=`${this.baseUrl}/oauth/token`,s;s=fetch,this.customFetch&&(s=this.customFetch);let c=await s(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(o).toString()});if(c.ok){let l=await c.json(),p={accessToken:l.access_token,validUntil:Date.now()+l.expires_in*1e3,tokenType:l.token_type};return Zh(this,zn,p),p}throw new Error("Could not authenticate with the provided credentials.")}async addAuthorizationHeader(e){if(!this.authentication)return e||{};let t=new Headers(e?.headers);switch(this.authentication.type){case"Basic":{let n=Lh(`${this.authentication?.credentials.username}:${this.authentication?.credentials.password}`);t.set("Authorization",`${this.authentication.type} ${n}`);break}case"OAuth":{let n=_i(this,zn)?.tokenType,a=_i(this,zn)?.accessToken,i=_i(this,zn)?.validUntil&&_i(this,zn).validUntil-10*1e3typeof e=="object"&&e!==null&&"json"in e,Gh=e=>typeof e=="object"&&e!==null&&"entity"in e;const bl={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),bl[e]=t}function Yh(e){let t="";for(let n=0;nt in e?Qh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,er=(e,t,n)=>(Xh(e,typeof t!="symbol"?t+"":t,n),n),eg=class Et extends gl{constructor(t,n){super(t,n),er(this,"router"),er(this,"indexLookup"),er(this,"decoupledRouterApiPrefix");let{apiPrefix:a,cache:i,debug:o,indexLookup:r,decoupledRouterApiPrefix:s}=n||{};this.apiPrefix=a||"jsonapi",this.decoupledRouterApiPrefix=s,this.cache=i,this.debug=o||!1;let c={...n};this.decoupledRouterApiPrefix?c.apiPrefix=this.decoupledRouterApiPrefix:delete c.apiPrefix,this.router=new Kh(t,c),this.indexLookup=r||!1}async getCollection(t,n){let{entityTypeId:a,bundleId:i}=Et.getEntityTypeIdAndBundleId(t),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({entityTypeId:a,bundleId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,entityTypeId:a,bundleId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get collection. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResource(t,n,a){let{entityTypeId:i,bundleId:o}=Et.getEntityTypeIdAndBundleId(t),r=a?.locale||this.defaultLocale,s=a?.queryString,c=a?.rawResponse||!1,l=await Et.createCacheKey({entityTypeId:i,bundleId:o,resourceId:n,localeSegment:r,queryString:s});if(!c&&!a?.disableCache){let f=await this.getCachedResponse(l);if(f)return f}let p=await this.createURL({localeSegment:r,entityTypeId:i,bundleId:o,resourceId:n,queryString:s});this.debug&&this.log("verbose",`Fetching endpoint ${p}`);let d=a?.disableAuthentication?{credentials:"omit"}:{},{response:v,error:u}=await this.fetch(p,d);if(u)throw this.debug&&this.log("error",`Failed to get resource. ResourceId: ${n}, Error: ${u.message}`),u;let h=await this.processApiResponseAndParseBody(v.clone(),l,a);return a?.rawResponse?{response:v,json:h}:h}async createURL({localeSegment:t,entityTypeId:n,bundleId:a,viewName:i,viewDisplayId:o,resourceId:r,queryString:s}){if(this.indexLookup){let c=new URL(`${t??""}/${this.apiPrefix}`,this.baseUrl).toString(),l=`${t?`${t}/`:""}${this.apiPrefix}`,p,d=await this.getCachedResponse(l);if(d)p=d;else{this.debug&&this.log("verbose",`Fetching index at ${c}`);let{response:h,error:f}=await this.fetch(c);if(f)throw this.debug&&this.log("error",`Failed to get index. Error: ${f.message}`),f;p=await h.json(),this.cache&&h.status<400&&await this.cache?.set(l,p)}let v=`${n}${a?`--${a}`:""}`,u=p?.links?.[v]?.href;if(u)return`${u}${r?`/${r}`:""}${s?`?${s}`:""}`}return i?new URL(`${t??""}/${this.apiPrefix}/views/${i}/${o}${s?`?${s}`:""}`,this.baseUrl).toString():new URL(`${t??""}/${this.apiPrefix}/${n}/${a}${r?`/${r}`:""}${s?`?${s}`:""}`,this.baseUrl).toString()}async deleteResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,resourceId:n,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating deletion of resource. Type: ${t}, ResourceId: ${n}`);let l=a?.disableAuthentication?{credentials:"omit",method:"DELETE"}:{method:"DELETE"},{response:p,error:d}=await this.fetch(s,l);if(d)throw this.debug&&this.log("error",`Failed to delete resource. ResourceId: ${n}, Error: ${d.message}`),d;p.status===204?this.log("verbose",`Successfully deleted resource. ResourceId: ${n}`):this.log("error",`Failed to delete resource. ResourceId: ${n}, Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}static getEntityTypeIdAndBundleId(t){let[n,a]=t.split("--");return a?{entityTypeId:n,bundleId:a}:{entityTypeId:n,bundleId:""}}static async createCacheKey({entityTypeId:t,bundleId:n,viewName:a,viewDisplayId:i,localeSegment:o,resourceId:r,queryString:s,cacheKey:c}){if(c)return c;let l=o?`${o}--`:"",p="",d=r?`--${r}`:"";if(s){let v=new Ah;v.update(s);let u=await v.digest();p=`--${Yh(u)}`}return a?`view--${l}${a}${i?`--${i}`:""}${d}${p}`:`${l}${t}${n?`--${n}`:""}${d}${p}`}async getView(t,n){let[a,i]=t.split("--"),o=n?.locale||this.defaultLocale,r=n?.queryString,s=n?.rawResponse||!1,c=await Et.createCacheKey({viewName:a,viewDisplayId:i,localeSegment:o,queryString:r,cacheKey:n?.cacheKey});if(!s&&!n?.disableCache){let h=await this.getCachedResponse(c);if(h)return h}let l=await this.createURL({localeSegment:o,viewName:a,viewDisplayId:i,queryString:r});this.debug&&this.log("verbose",`Fetching endpoint ${l}`);let p=n?.disableAuthentication?{credentials:"omit"}:{},{response:d,error:v}=await this.fetch(l,p);if(v)throw this.debug&&this.log("error",`Failed to get view. Type: ${t}, Error: ${v.message}`),v;let u=await this.processApiResponseAndParseBody(d.clone(),c,n);return n?.rawResponse?{response:d,json:u}:u}async getResourceByPath(t,n){let a=await this.router.translatePath(t,n),i=Hh(a)?a.json:a;return Gh(i)?this.getResource(i.jsonapi.resourceName,i.entity.uuid,n):i}async updateResource(t,n,a,i){let o=i?.locale||this.defaultLocale,{entityTypeId:r,bundleId:s}=Et.getEntityTypeIdAndBundleId(t),c=await this.createURL({entityTypeId:r,bundleId:s,resourceId:n,localeSegment:o}),l=await Et.createCacheKey({entityTypeId:r,bundleId:s,cacheKey:i?.cacheKey});this.debug&&this.log("verbose",`Initiating update of resource. Type: ${t}, ResourceId: ${n}`);let p=new Headers;p.set("Accept","application/vnd.api+json"),p.set("Content-Type","application/vnd.api+json");let{response:d,error:v}=await this.fetch(c,{method:"PATCH",body:typeof a=="object"?JSON.stringify(a):a,credentials:i?.disableAuthentication?"omit":"same-origin",headers:p});if(v)throw this.debug&&this.log("error",`Failed to update resource. ResourceId: ${n}, Error: ${v.message}`),v;d?.status===200?this.log("verbose",`Successfully updated resource. ResourceId: ${n}`):this.log("error",`Failed to update resource. ResourceId: ${n}, Status: ${d?.status}`);let u=await this.processApiResponseAndParseBody(d.clone(),l,i);return i?.rawResponse?{response:d,json:u}:u}async createResource(t,n,a){let i=a?.locale||this.defaultLocale,{entityTypeId:o,bundleId:r}=Et.getEntityTypeIdAndBundleId(t),s=await this.createURL({entityTypeId:o,bundleId:r,localeSegment:i}),c=await Et.createCacheKey({entityTypeId:o,bundleId:r,cacheKey:a?.cacheKey});this.debug&&this.log("verbose",`Initiating creation of resource. Type: ${t}`);let l=new Headers;l.set("Accept","application/vnd.api+json"),l.set("Content-Type","application/vnd.api+json");let{response:p,error:d}=await this.fetch(s,{method:"POST",body:typeof n=="object"?JSON.stringify(n):n,credentials:a?.disableAuthentication?"omit":"same-origin",headers:l});if(d)throw this.debug&&this.log("error",`Failed to create resource. Error: ${d.message}`),d;p?.status===201?this.log("verbose",`Successfully created resource of type: ${t}`):this.log("error",`Failed to create resource. Status: ${p?.status}`);let v=await this.processApiResponseAndParseBody(p.clone(),c,a);return a?.rawResponse?{response:p,json:v}:v}async processApiResponseAndParseBody(t,n,a){let i=t.status;if(i===204)return"";let o=await t.json();return o=this.serializer?.deserialize?this.serializer.deserialize(o):o,this.cache&&!a?.disableCache&&i<400&&await this.cache?.set(n,o),o}},xl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tg(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var i=!1;try{i=this instanceof a}catch{}return i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:function(){return e[a]}})}),n}var Ma={},yl,wl;function Xn(){return wl||(wl=1,yl=TypeError),yl}const ng={},ag=Object.freeze(Object.defineProperty({__proto__:null,default:ng},Symbol.toStringTag,{value:"Module"})),_l=tg(ag);var tr,kl;function ki(){if(kl)return tr;kl=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&typeof t.get=="function"?t.get:null,a=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,r=i&&o&&typeof o.get=="function"?o.get:null,s=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,l=c?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,d=p?WeakSet.prototype.has:null,v=typeof WeakRef=="function"&&WeakRef.prototype,u=v?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,f=Object.prototype.toString,T=Function.prototype.toString,w=String.prototype.match,_=String.prototype.slice,A=String.prototype.replace,z=String.prototype.toUpperCase,B=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,M=Array.prototype.join,j=Array.prototype.slice,q=Math.floor,Z=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ee=Object.getOwnPropertySymbols,re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",te=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oe||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,F=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(b){return b.__proto__}:null);function L(b,y){if(b===1/0||b===-1/0||b!==b||b&&b>-1e3&&b<1e3||S.call(/e/,y))return y;var fe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof b=="number"){var we=b<0?-q(-b):q(b);if(we!==b){var je=String(we),se=_.call(y,je.length+1);return A.call(je,fe,"$&_")+"."+A.call(A.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return A.call(y,fe,"$&_")}var ze=_l,et=ze.custom,ot=P(et)?et:null,Be={__proto__:null,double:'"',single:"'"},Tt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};tr=function b(y,fe,we,je){var se=fe||{};if($(se,"quoteStyle")&&!$(Be,se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var wn=$(se,"customInspect")?se.customInspect:!0;if(typeof wn!="boolean"&&wn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Nn=se.numericSeparator;if(typeof y>"u")return"undefined";if(y===null)return"null";if(typeof y=="boolean")return y?"true":"false";if(typeof y=="string")return de(y,se);if(typeof y=="number"){if(y===0)return 1/0/y>0?"0":"-0";var xt=String(y);return Nn?L(y,xt):xt}if(typeof y=="bigint"){var _n=String(y)+"n";return Nn?L(y,_n):_n}var ms=typeof se.depth>"u"?5:se.depth;if(typeof we>"u"&&(we=0),we>=ms&&ms>0&&typeof y=="object")return gt(y)?"[Array]":"[Object]";var ma=io(se,we);if(typeof je>"u")je=[];else if(I(je,y)>=0)return"[Circular]";function Dt(va,ro,R0){if(ro&&(je=j.call(je),je.push(ro)),R0){var cf={depth:se.depth};return $(se,"quoteStyle")&&(cf.quoteStyle=se.quoteStyle),b(va,cf,we+1,je)}return b(va,se,we+1,je)}if(typeof y=="function"&&!he(y)){var ef=R(y),tf=rt(y,Dt);return"[Function"+(ef?": "+ef:" (anonymous)")+"]"+(tf.length>0?" { "+M.call(tf,", ")+" }":"")}if(P(y)){var nf=oe?A.call(String(y),/^(Symbol\(.*\))_[^)]*$/,"$1"):re.call(y);return typeof y=="object"&&!oe?Le(nf):nf}if(ke(y)){for(var Ja="<"+B.call(String(y.nodeName)),vs=y.attributes||[],oo=0;oo",Ja}if(gt(y)){if(y.length===0)return"[]";var hs=rt(y,Dt);return ma&&!$n(hs)?"["+Ke(hs,ma)+"]":"[ "+M.call(hs,", ")+" ]"}if(ge(y)){var gs=rt(y,Dt);return!("cause"in Error.prototype)&&"cause"in y&&!H.call(y,"cause")?"{ ["+String(y)+"] "+M.call(E.call("[cause]: "+Dt(y.cause),gs),", ")+" }":gs.length===0?"["+String(y)+"]":"{ ["+String(y)+"] "+M.call(gs,", ")+" }"}if(typeof y=="object"&&wn){if(ot&&typeof y[ot]=="function"&&ze)return ze(y,{depth:ms-we});if(wn!=="symbol"&&typeof y.inspect=="function")return y.inspect()}if(W(y)){var af=[];return a&&a.call(y,function(va,ro){af.push(Dt(ro,y,!0)+" => "+Dt(va,y))}),bt("Map",n.call(y),af,ma)}if(Q(y)){var of=[];return s&&s.call(y,function(va){of.push(Dt(va,y))}),bt("Set",r.call(y),of,ma)}if(U(y))return dt("WeakMap");if(le(y))return dt("WeakSet");if(J(y))return dt("WeakRef");if(g(y))return Le(Dt(Number(y)));if(k(y))return Le(Dt(Z.call(y)));if(x(y))return Le(h.call(y));if(m(y))return Le(Dt(String(y)));if(typeof window<"u"&&y===window)return"{ [object Window] }";if(typeof globalThis<"u"&&y===globalThis||typeof xl<"u"&&y===xl)return"{ [object globalThis] }";if(!St(y)&&!he(y)){var bs=rt(y,Dt),rf=F?F(y)===Object.prototype:y instanceof Object||y.constructor===Object,xs=y instanceof Object?"":"null prototype",sf=!rf&&te&&Object(y)===y&&te in y?_.call(D(y),8,-1):xs?"Object":"",D0=rf||typeof y.constructor!="function"?"":y.constructor.name?y.constructor.name+" ":"",ys=D0+(sf||xs?"["+M.call(E.call([],sf||[],xs||[]),": ")+"] ":"");return bs.length===0?ys+"{}":ma?ys+"{"+Ke(bs,ma)+"}":ys+"{ "+M.call(bs,", ")+" }"}return String(y)};function Jt(b,y,fe){var we=fe.quoteStyle||y,je=Be[we];return je+b+je}function Mt(b){return A.call(String(b),/"/g,""")}function We(b){return!te||!(typeof b=="object"&&(te in b||typeof b[te]<"u"))}function gt(b){return D(b)==="[object Array]"&&We(b)}function St(b){return D(b)==="[object Date]"&&We(b)}function he(b){return D(b)==="[object RegExp]"&&We(b)}function ge(b){return D(b)==="[object Error]"&&We(b)}function m(b){return D(b)==="[object String]"&&We(b)}function g(b){return D(b)==="[object Number]"&&We(b)}function x(b){return D(b)==="[object Boolean]"&&We(b)}function P(b){if(oe)return b&&typeof b=="object"&&b instanceof Symbol;if(typeof b=="symbol")return!0;if(!b||typeof b!="object"||!re)return!1;try{return re.call(b),!0}catch{}return!1}function k(b){if(!b||typeof b!="object"||!Z)return!1;try{return Z.call(b),!0}catch{}return!1}var C=Object.prototype.hasOwnProperty||function(b){return b in this};function $(b,y){return C.call(b,y)}function D(b){return f.call(b)}function R(b){if(b.name)return b.name;var y=w.call(T.call(b),/^function\s*([\w$]+)/);return y?y[1]:null}function I(b,y){if(b.indexOf)return b.indexOf(y);for(var fe=0,we=b.length;fey.maxStringLength){var fe=b.length-y.maxStringLength,we="... "+fe+" more character"+(fe>1?"s":"");return de(_.call(b,0,y.maxStringLength),y)+we}var je=Tt[y.quoteStyle||"single"];je.lastIndex=0;var se=A.call(A.call(b,je,"\\$1"),/[\x00-\x1f]/g,tt);return Jt(se,"single",y)}function tt(b){var y=b.charCodeAt(0),fe={8:"b",9:"t",10:"n",12:"f",13:"r"}[y];return fe?"\\"+fe:"\\x"+(y<16?"0":"")+z.call(y.toString(16))}function Le(b){return"Object("+b+")"}function dt(b){return b+" { ? }"}function bt(b,y,fe,we){var je=we?Ke(fe,we):M.call(fe,", ");return b+" ("+y+") {"+je+"}"}function $n(b){for(var y=0;y=0)return!1;return!0}function io(b,y){var fe;if(b.indent===" ")fe=" ";else if(typeof b.indent=="number"&&b.indent>0)fe=M.call(Array(b.indent+1)," ");else return null;return{base:fe,prev:M.call(Array(y+1),fe)}}function Ke(b,y){if(b.length===0)return"";var fe=` `+y.prev+y.base;return fe+M.call(b,","+fe)+` -`+y.prev}function rt(b,y){var fe=gt(b),we=[];if(fe){we.length=b.length;for(var je=0;je"u"||!E?e:E(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":B,"%TypedArray%":re,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Z,"%Function.prototype.apply%":U,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":M,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":u,"%Math.round%":h,"%Math.sign%":f,"%Reflect.getPrototypeOf%":j};if(E)try{null.error}catch(he){var te=E(E(he));oe["%Error.prototype%"]=te}var H=function he(ge){var m;if(ge==="%AsyncFunction%")m=w("async function () {}");else if(ge==="%GeneratorFunction%")m=w("function* () {}");else if(ge==="%AsyncGeneratorFunction%")m=w("async function* () {}");else if(ge==="%AsyncGenerator%"){var g=he("%AsyncGeneratorFunction%");g&&(m=g.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var x=he("%AsyncGenerator%");x&&E&&(m=E(x.prototype))}return oe[ge]=m,m},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=ji(),ze=wg(),et=L.call(Z,Array.prototype.concat),ot=L.call(U,Array.prototype.splice),Be=L.call(Z,String.prototype.replace),Tt=L.call(Z,String.prototype.slice),Vt=L.call(Z,RegExp.prototype.exec),Mt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,We=/\\(\\)?/g,gt=function(he){var ge=Tt(he,0,1),m=Tt(he,-1);if(ge==="%"&&m!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&ge!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var g=[];return Be(he,Mt,function(x,P,k,C){g[g.length]=k?Be(C,We,"$1"):P||x}),g},St=function(he,ge){var m=he,g;if(ze(F,m)&&(g=F[m],m="%"+g[0]+"%"),ze(oe,m)){var x=oe[m];if(x===ee&&(x=H(m)),typeof x>"u"&&!ge)throw new s("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:g,name:m,value:x}}throw new r("intrinsic "+he+" does not exist!")};return vr=function(he,ge){if(typeof he!="string"||he.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ge!="boolean")throw new s('"allowMissing" argument must be a boolean');if(Vt(/^%?[^%]*%?$/,he)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=gt(he),g=m.length>0?m[0]:"",x=St("%"+g+"%",ge),P=x.name,k=x.value,C=!1,$=x.alias;$&&(g=$[0],ot(m,et([0,1],$)));for(var D=1,R=!0;D=m.length){var J=_(k,I);R=!!J,R&&"get"in J&&!("originalValue"in J.get)?k=J.get:k=k[I]}else R=ze(k,I),k=k[I];R&&!C&&(oe[P]=k)}}return k},vr}var gr,Ip;function Pp(){if(Ip)return gr;Ip=1;var e=hr(),t=Sp(),n=t([e("%String.prototype.indexOf%")]);return gr=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},gr}var br,Cp;function Tp(){if(Cp)return br;Cp=1;var e=hr(),t=Pp(),n=ki(),a=Xn(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),r=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return br=!!i&&function(){var p,d={assert:function(v){if(!d.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(p){var u=c(p,v);return l(p)===0&&(p=void 0),u}return!1},get:function(v){if(p)return o(p,v)},has:function(v){return p?s(p,v):!1},set:function(v,u){p||(p=new i),r(p,v,u)}};return d},br}var xr,Mp;function _g(){if(Mp)return xr;Mp=1;var e=hr(),t=Pp(),n=ki(),a=Tp(),i=Xn(),o=e("%WeakMap%",!0),r=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return xr=o?(function(){var p,d,v={assert:function(u){if(!v.has(u))throw new i("Side channel does not contain "+n(u))},delete:function(u){if(o&&u&&(typeof u=="object"||typeof u=="function")){if(p)return l(p,u)}else if(a&&d)return d.delete(u);return!1},get:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?r(p,u):d&&d.get(u)},has:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?c(p,u):!!d&&d.has(u)},set:function(u,h){o&&u&&(typeof u=="object"||typeof u=="function")?(p||(p=new o),s(p,u,h)):a&&(d||(d=a()),d.set(u,h))}};return v}):a,xr}var yr,Dp;function Rp(){if(Dp)return yr;Dp=1;var e=Xn(),t=ki(),n=Yh(),a=Tp(),i=_g(),o=i||a||n;return yr=function(){var r,s={assert:function(c){if(!s.has(c))throw new e("Side channel does not contain "+t(c))},delete:function(c){return!!r&&r.delete(c)},get:function(c){return r&&r.get(c)},has:function(c){return!!r&&r.has(c)},set:function(c,l){r||(r=o()),r.set(c,l)}};return s},yr}var wr,$p;function _r(){if($p)return wr;$p=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return wr={default:n.RFC3986,formatters:{RFC1738:function(a){return e.call(a,t,"+")},RFC3986:function(a){return String(a)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},wr}var kr,Np;function Fp(){if(Np)return kr;Np=1;var e=_r(),t=Rp(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i=t(),o=function(S,E){return i.set(S,E),S},r=function(S){return i.has(S)},s=function(S){return i.get(S)},c=function(S,E){i.set(S,E)},l=(function(){for(var S=[],E=0;E<256;++E)S.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return S})(),p=function(S){for(;S.length>1;){var E=S.pop(),M=E.obj[E.prop];if(a(M)){for(var j=[],U=0;U=f?Z.slice(re,re+f):Z,te=[],H=0;H=48&&F<=57||F>=65&&F<=90||F>=97&&F<=122||U===e.RFC1738&&(F===40||F===41)){te[te.length]=oe.charAt(H);continue}if(F<128){te[te.length]=l[F];continue}if(F<2048){te[te.length]=l[192|F>>6]+l[128|F&63];continue}if(F<55296||F>=57344){te[te.length]=l[224|F>>12]+l[128|F>>6&63]+l[128|F&63];continue}H+=1,F=65536+((F&1023)<<10|oe.charCodeAt(H)&1023),te[te.length]=l[240|F>>18]+l[128|F>>12&63]+l[128|F>>6&63]+l[128|F&63]}ee+=te.join("")}return ee},w=function(S){for(var E=[{obj:{o:S},prop:"o"}],M=[],j=0;jM?o(d(Z,{plainObjects:j}),Z.length-1):Z},B=function(S,E){if(a(S)){for(var M=[],j=0;j"u"&&(et=0)}if(typeof j=="function"?L=j(w,L):L instanceof Date?L=ee(L):_==="comma"&&o(L)&&(L=t.maybeMap(L,function(k){return k instanceof Date?ee(k):k})),L===null){if(B)return M&&!te?M(w,p.encoder,H,"key",re):w;L=""}if(d(L)||t.isBuffer(L)){if(M){var Tt=te?w:M(w,p.encoder,H,"key",re);return[oe(Tt)+"="+oe(M(L,p.encoder,H,"value",re))]}return[oe(w)+"="+oe(String(L))]}var Vt=[];if(typeof L>"u")return Vt;var Mt;if(_==="comma"&&o(L))te&&M&&(L=t.maybeMap(L,M)),Mt=[{value:L.length>0?L.join(",")||null:void 0}];else if(o(j))Mt=j;else{var We=Object.keys(L);Mt=U?We.sort(U):We}var gt=E?String(w).replace(/\./g,"%2E"):String(w),St=A&&o(L)&&L.length===1?gt+"[]":gt;if(z&&o(L)&&L.length===0)return St+"[]";for(var he=0;he"u"?f.encodeDotInKeys===!0?!0:p.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:p.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:z,charset:T,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?p.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:p.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:p.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:p.encodeValuesOnly,filter:A,format:w,formatter:_,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:p.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:p.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:p.strictNullHandling}};return jr=function(f,T){var w=f,_=h(T),A,z;typeof _.filter=="function"?(z=_.filter,w=z("",w)):o(_.filter)&&(z=_.filter,A=z);var B=[];if(typeof w!="object"||w===null)return"";var S=i[_.arrayFormat],E=S==="comma"&&_.commaRoundTrip;A||(A=Object.keys(w)),_.sort&&A.sort(_.sort);for(var M=e(),j=0;j0?re+ee:""},jr}var Sr,Up;function jg(){if(Up)return Sr;Up=1;var e=Fp(),t=Object.prototype.hasOwnProperty,n=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(u){return u.replace(/&#(\d+);/g,function(h,f){return String.fromCharCode(parseInt(f,10))})},o=function(u,h,f){if(u&&typeof u=="string"&&h.comma&&u.indexOf(",")>-1)return u.split(",");if(h.throwOnLimitExceeded&&f>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return u},r="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",c=function(u,h){var f={__proto__:null},T=h.ignoreQueryPrefix?u.replace(/^\?/,""):u;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=h.parameterLimit===1/0?void 0:h.parameterLimit,_=T.split(h.delimiter,h.throwOnLimitExceeded?w+1:w);if(h.throwOnLimitExceeded&&_.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var A=-1,z,B=h.charset;if(h.charsetSentinel)for(z=0;z<_.length;++z)_[z].indexOf("utf8=")===0&&(_[z]===s?B="utf-8":_[z]===r&&(B="iso-8859-1"),A=z,z=_.length);for(z=0;z<_.length;++z)if(z!==A){var S=_[z],E=S.indexOf("]="),M=E===-1?S.indexOf("="):E+1,j,U;if(M===-1?(j=h.decoder(S,a.decoder,B,"key"),U=h.strictNullHandling?null:""):(j=h.decoder(S.slice(0,M),a.decoder,B,"key"),j!==null&&(U=e.maybeMap(o(S.slice(M+1),h,n(f[j])?f[j].length:0),function(ee){return h.decoder(ee,a.decoder,B,"value")}))),U&&h.interpretNumericEntities&&B==="iso-8859-1"&&(U=i(String(U))),S.indexOf("[]=")>-1&&(U=n(U)?[U]:U),j!==null){var Z=t.call(f,j);Z&&h.duplicates==="combine"?f[j]=e.combine(f[j],U,h.arrayLimit,h.plainObjects):(!Z||h.duplicates==="last")&&(f[j]=U)}}return f},l=function(u,h,f,T){var w=0;if(u.length>0&&u[u.length-1]==="[]"){var _=u.slice(0,-1).join("");w=Array.isArray(h)&&h[_]?h[_].length:0}for(var A=T?h:o(h,f,w),z=u.length-1;z>=0;--z){var B,S=u[z];if(S==="[]"&&f.parseArrays)e.isOverflow(A)?B=A:B=f.allowEmptyArrays&&(A===""||f.strictNullHandling&&A===null)?[]:e.combine([],A,f.arrayLimit,f.plainObjects);else{B=f.plainObjects?{__proto__:null}:{};var E=S.charAt(0)==="["&&S.charAt(S.length-1)==="]"?S.slice(1,-1):S,M=f.decodeDotInKeys?E.replace(/%2E/g,"."):E,j=parseInt(M,10);!f.parseArrays&&M===""?B={0:A}:!isNaN(j)&&S!==M&&String(j)===M&&j>=0&&f.parseArrays&&j<=f.arrayLimit?(B=[],B[j]=A):M!=="__proto__"&&(B[M]=A)}A=B}return A},p=function(u,h){var f=h.allowDots?u.replace(/\.([^.[]+)/g,"[$1]"):u;if(h.depth<=0)return!h.plainObjects&&t.call(Object.prototype,f)&&!h.allowPrototypes?void 0:[f];var T=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,_=T.exec(f),A=_?f.slice(0,_.index):f,z=[];if(A){if(!h.plainObjects&&t.call(Object.prototype,A)&&!h.allowPrototypes)return;z.push(A)}for(var B=0;(_=w.exec(f))!==null&&B"u"?a.charset:u.charset,f=typeof u.duplicates>"u"?a.duplicates:u.duplicates;if(f!=="combine"&&f!=="first"&&f!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof u.allowDots>"u"?u.decodeDotInKeys===!0?!0:a.allowDots:!!u.allowDots;return{allowDots:T,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof u.allowPrototypes=="boolean"?u.allowPrototypes:a.allowPrototypes,allowSparse:typeof u.allowSparse=="boolean"?u.allowSparse:a.allowSparse,arrayLimit:typeof u.arrayLimit=="number"?u.arrayLimit:a.arrayLimit,charset:h,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:a.charsetSentinel,comma:typeof u.comma=="boolean"?u.comma:a.comma,decodeDotInKeys:typeof u.decodeDotInKeys=="boolean"?u.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof u.decoder=="function"?u.decoder:a.decoder,delimiter:typeof u.delimiter=="string"||e.isRegExp(u.delimiter)?u.delimiter:a.delimiter,depth:typeof u.depth=="number"||u.depth===!1?+u.depth:a.depth,duplicates:f,ignoreQueryPrefix:u.ignoreQueryPrefix===!0,interpretNumericEntities:typeof u.interpretNumericEntities=="boolean"?u.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof u.parameterLimit=="number"?u.parameterLimit:a.parameterLimit,parseArrays:u.parseArrays!==!1,plainObjects:typeof u.plainObjects=="boolean"?u.plainObjects:a.plainObjects,strictDepth:typeof u.strictDepth=="boolean"?!!u.strictDepth:a.strictDepth,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof u.throwOnLimitExceeded=="boolean"?u.throwOnLimitExceeded:!1}};return Sr=function(u,h){var f=v(h);if(u===""||u===null||typeof u>"u")return f.plainObjects?{__proto__:null}:{};for(var T=typeof u=="string"?c(u,f):u,w=f.plainObjects?{__proto__:null}:{},_=Object.keys(T),A=0;A<_.length;++A){var z=_[A],B=d(z,T[z],f,typeof u=="string");w=e.merge(w,B,f)}return f.allowSparse===!0?w:e.compact(w)},Sr}var Er,qp;function Sg(){if(qp)return Er;qp=1;var e=kg(),t=jg(),n=_r();return Er={formats:n,parse:t,stringify:e},Er}var Bp;function Eg(){if(Bp)return Ma;Bp=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.DrupalJsonApiParams=void 0;const e=Sg();class t{constructor(a,i){this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this.qsOptions={},this.config={useShortCutForQueryGeneration:!0,alwaysUseFieldNameForKeys:!1},i!==void 0&&(this.config=i),this.initialize(a)}addCustomParam(a){return this.data=Object.assign(Object.assign({},this.data),a),this}addFields(a,i){return this.data.fields[a]=i.join(","),this}addSort(a,i){let o="";return i!==void 0&&i==="DESC"&&(o="-"),this.data.sort=this.data.sort.concat(o+a),this}addPageLimit(a){return this.data.page===void 0?this.data.page={limit:a}:this.data.page.limit=a,this}addPageOffset(a){return this.data.page===void 0?this.data.page={offset:a}:this.data.page.offset=a,this}addInclude(a){return this.data.include=this.data.include.concat(a),this}addGroup(a,i="OR",o){return this.data.filter[a]={group:Object.assign({conjunction:i},o!==void 0&&{memberOf:o})},this}addFilter(a,i,o="=",r,s){const c=this.getIndexId(this.data.filter,s||a,!!s);if((o==="IS NULL"||o==="IS NOT NULL")&&(i=null),i===null){if(!(o==="IS NULL"||o==="IS NOT NULL"))throw new TypeError(`Value cannot be null for the operator "${o}"`);return this.data.filter[c]={condition:Object.assign(Object.assign({path:a},{operator:o}),r!==void 0&&{memberOf:r})},this}if(Array.isArray(i)){switch(o){case"BETWEEN":case"NOT BETWEEN":if(i.length!==2)throw new TypeError(`Value must consists of 2 items for the "${o}"`);break;case"IN":case"NOT IN":break;default:throw new TypeError(`Value cannot be an array for the operator "${o}"`)}return this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},{operator:o}),r!==void 0&&{memberOf:r})},this}return this.config.useShortCutForQueryGeneration&&r===void 0&&a===c&&this.data.filter[a]===void 0?(o==="="?this.data.filter[c]=i:this.data.filter[c]={value:i,operator:o},this):(this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},this.config.useShortCutForQueryGeneration?o!=="="&&{operator:o}:{operator:o}),r!==void 0&&{memberOf:r})},this)}getIndexId(a,i,o){o=o||this.config.alwaysUseFieldNameForKeys;let r;return a[i]===void 0?r=i:r=this.generateKeyName(a,i,o),r}generateKeyName(a,i,o=!1){const r=Object.keys(a).length;if(o)for(let s=1;s<=r;s++){const c=`${i}--${s}`;if(a[c]===void 0)return c}return r.toString()}getQueryObject(){const a=JSON.parse(JSON.stringify(this.data));return this.data.include.length>0?a.include=this.data.include.join(","):delete a.include,this.data.sort.length>0?a.sort=this.data.sort.join(","):delete a.sort,a}getQueryString(a){const i=this.getQueryObject(),o=a||this.getQsOption();return e.stringify(i,o)}clear(){return this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this}initializeWithQueryObject(a){return this.clear(),Object.keys(a).forEach(i=>{switch(i){case"sort":a.sort.length&&(this.data.sort=a.sort.split(","));break;case"include":a.include.length&&(this.data.include=a.include.split(","));break;default:this.data[i]=a[i]}}),this}initializeWithQueryString(a,i){this.clear();const o=i||this.getQsOption();return this.initializeWithQueryObject(e.parse(a,o)),this}clone(a){const i=JSON.parse(JSON.stringify(a.getQueryObject()));return this.initializeWithQueryObject(i),this}setQsOption(a){return this.qsOptions=a,this}getQsOption(){return this.qsOptions}initialize(a){if(a===void 0)this.initializeWithQueryString("");else if(typeof a=="object")try{a.getQueryObject(),this.clone(a)}catch{this.initializeWithQueryObject(a)}else this.initializeWithQueryString(a);return this}}return Ma.DrupalJsonApiParams=t,Ma}var Zp=Eg(),Wp={},Or={},Bt={};Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.isPlainObject=Bt.jsonParse=Bt.createIncludeNamesTree=void 0;function Vp(e,t){var n=e.split("."),a=n.shift(),i=n.length,o=null;i&&(o=t[a]||{},Vp(n.join("."),o)),t[a]=o}Bt.createIncludeNamesTree=Vp;function Og(e){var t;try{t=JSON.parse(e)}catch(n){t={},console.warn(n)}return t}Bt.jsonParse=Og;var zg=function(e){return!!e&&typeof e=="object"&&e.constructor===Object};Bt.isPlainObject=zg;var ea={},zr=function(e,t){return zr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},zr(e,t)};function Jp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zr(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Si=function(){return Si=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;s--)(r=e[s])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Gp(e,t){return function(n,a){t(n,a,e)}}function Yp(e,t,n,a,i,o){function r(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var s=a.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?a.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),d,v=!1,u=n.length-1;u>=0;u--){var h={};for(var f in a)h[f]=f==="access"?{}:a[f];for(var f in a.access)h.access[f]=a.access[f];h.addInitializer=function(w){if(v)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(w||null))};var T=(0,n[u])(s==="accessor"?{get:p.get,set:p.set}:p[c],h);if(s==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(d=r(T.get))&&(p.get=d),(d=r(T.set))&&(p.set=d),(d=r(T.init))&&i.unshift(d)}else(d=r(T))&&(s==="field"?i.unshift(d):p[c]=d)}l&&Object.defineProperty(l,a.name,p),v=!0}function Qp(e,t,n){for(var a=arguments.length>2,i=0;i0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ar(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,o=[],r;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function ou(){for(var e=[],t=0;t1||c(u,f)})},h&&(i[u]=h(i[u])))}function c(u,h){try{l(a[u](h))}catch(f){v(o[0][3],f)}}function l(u){u.value instanceof ta?Promise.resolve(u.value.v).then(p,d):v(o[0][2],u)}function p(u){c("next",u)}function d(u){c("throw",u)}function v(u,h){u(h),o.shift(),o.length&&c(o[0][0],o[0][1])}}function lu(e){var t,n;return t={},a("next"),a("throw",function(i){throw i}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(i,o){t[i]=e[i]?function(r){return(n=!n)?{value:ta(e[i](r)),done:!1}:o?o(r):r}:o}}function pu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oi=="function"?Oi(e):e[Symbol.iterator](),n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n);function a(o){n[o]=e[o]&&function(r){return new Promise(function(s,c){r=e[o](r),i(s,c,r.done,r.value)})}}function i(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function uu(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Ag=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Ir=function(e){return Ir=Object.getOwnPropertyNames||function(t){var n=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[n.length]=a);return n},Ir(e)};function du(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Ir(e),a=0;a"u"?{}:{id:n})},e.prototype.buildRelationshipsByModel=function(t){var n=this,a=this.propertiesMapper.getRelationships(t);if(!(!a||!Object.keys(a).length)){var i={};return Object.keys(a).forEach(function(o){var r=a[o];if(Array.isArray(r)){for(var s=[],c=0,l=r;c"u"||!E?e:E(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":S&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S&&E?E(""[Symbol.iterator]()):e,"%Symbol%":S?Symbol:e,"%SyntaxError%":r,"%ThrowTypeError%":B,"%TypedArray%":re,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":Z,"%Function.prototype.apply%":q,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":M,"%Math.abs%":l,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":v,"%Math.pow%":u,"%Math.round%":h,"%Math.sign%":f,"%Reflect.getPrototypeOf%":j};if(E)try{null.error}catch(he){var te=E(E(he));oe["%Error.prototype%"]=te}var H=function he(ge){var m;if(ge==="%AsyncFunction%")m=w("async function () {}");else if(ge==="%GeneratorFunction%")m=w("function* () {}");else if(ge==="%AsyncGeneratorFunction%")m=w("async function* () {}");else if(ge==="%AsyncGenerator%"){var g=he("%AsyncGeneratorFunction%");g&&(m=g.prototype)}else if(ge==="%AsyncIteratorPrototype%"){var x=he("%AsyncGenerator%");x&&E&&(m=E(x.prototype))}return oe[ge]=m,m},F={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=ji(),ze=zg(),et=L.call(Z,Array.prototype.concat),ot=L.call(q,Array.prototype.splice),Be=L.call(Z,String.prototype.replace),Tt=L.call(Z,String.prototype.slice),Jt=L.call(Z,RegExp.prototype.exec),Mt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,We=/\\(\\)?/g,gt=function(he){var ge=Tt(he,0,1),m=Tt(he,-1);if(ge==="%"&&m!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&ge!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var g=[];return Be(he,Mt,function(x,P,k,C){g[g.length]=k?Be(C,We,"$1"):P||x}),g},St=function(he,ge){var m=he,g;if(ze(F,m)&&(g=F[m],m="%"+g[0]+"%"),ze(oe,m)){var x=oe[m];if(x===ee&&(x=H(m)),typeof x>"u"&&!ge)throw new s("intrinsic "+he+" exists, but is not available. Please file an issue!");return{alias:g,name:m,value:x}}throw new r("intrinsic "+he+" does not exist!")};return hr=function(he,ge){if(typeof he!="string"||he.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ge!="boolean")throw new s('"allowMissing" argument must be a boolean');if(Jt(/^%?[^%]*%?$/,he)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=gt(he),g=m.length>0?m[0]:"",x=St("%"+g+"%",ge),P=x.name,k=x.value,C=!1,$=x.alias;$&&(g=$[0],ot(m,et([0,1],$)));for(var D=1,R=!0;D=m.length){var J=_(k,I);R=!!J,R&&"get"in J&&!("originalValue"in J.get)?k=J.get:k=k[I]}else R=ze(k,I),k=k[I];R&&!C&&(oe[P]=k)}}return k},hr}var br,Ip;function Pp(){if(Ip)return br;Ip=1;var e=gr(),t=Sp(),n=t([e("%String.prototype.indexOf%")]);return br=function(a,i){var o=e(a,!!i);return typeof o=="function"&&n(a,".prototype.")>-1?t([o]):o},br}var xr,Cp;function Tp(){if(Cp)return xr;Cp=1;var e=gr(),t=Pp(),n=ki(),a=Xn(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),r=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),l=t("Map.prototype.size",!0);return xr=!!i&&function(){var p,d={assert:function(v){if(!d.has(v))throw new a("Side channel does not contain "+n(v))},delete:function(v){if(p){var u=c(p,v);return l(p)===0&&(p=void 0),u}return!1},get:function(v){if(p)return o(p,v)},has:function(v){return p?s(p,v):!1},set:function(v,u){p||(p=new i),r(p,v,u)}};return d},xr}var yr,Mp;function Ag(){if(Mp)return yr;Mp=1;var e=gr(),t=Pp(),n=ki(),a=Tp(),i=Xn(),o=e("%WeakMap%",!0),r=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),l=t("WeakMap.prototype.delete",!0);return yr=o?(function(){var p,d,v={assert:function(u){if(!v.has(u))throw new i("Side channel does not contain "+n(u))},delete:function(u){if(o&&u&&(typeof u=="object"||typeof u=="function")){if(p)return l(p,u)}else if(a&&d)return d.delete(u);return!1},get:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?r(p,u):d&&d.get(u)},has:function(u){return o&&u&&(typeof u=="object"||typeof u=="function")&&p?c(p,u):!!d&&d.has(u)},set:function(u,h){o&&u&&(typeof u=="object"||typeof u=="function")?(p||(p=new o),s(p,u,h)):a&&(d||(d=a()),d.set(u,h))}};return v}):a,yr}var wr,Dp;function Rp(){if(Dp)return wr;Dp=1;var e=Xn(),t=ki(),n=ig(),a=Tp(),i=Ag(),o=i||a||n;return wr=function(){var r,s={assert:function(c){if(!s.has(c))throw new e("Side channel does not contain "+t(c))},delete:function(c){return!!r&&r.delete(c)},get:function(c){return r&&r.get(c)},has:function(c){return!!r&&r.has(c)},set:function(c,l){r||(r=o()),r.set(c,l)}};return s},wr}var _r,$p;function kr(){if($p)return _r;$p=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return _r={default:n.RFC3986,formatters:{RFC1738:function(a){return e.call(a,t,"+")},RFC3986:function(a){return String(a)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},_r}var jr,Np;function Fp(){if(Np)return jr;Np=1;var e=kr(),t=Rp(),n=Object.prototype.hasOwnProperty,a=Array.isArray,i=t(),o=function(S,E){return i.set(S,E),S},r=function(S){return i.has(S)},s=function(S){return i.get(S)},c=function(S,E){i.set(S,E)},l=(function(){for(var S=[],E=0;E<256;++E)S.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return S})(),p=function(S){for(;S.length>1;){var E=S.pop(),M=E.obj[E.prop];if(a(M)){for(var j=[],q=0;q=f?Z.slice(re,re+f):Z,te=[],H=0;H=48&&F<=57||F>=65&&F<=90||F>=97&&F<=122||q===e.RFC1738&&(F===40||F===41)){te[te.length]=oe.charAt(H);continue}if(F<128){te[te.length]=l[F];continue}if(F<2048){te[te.length]=l[192|F>>6]+l[128|F&63];continue}if(F<55296||F>=57344){te[te.length]=l[224|F>>12]+l[128|F>>6&63]+l[128|F&63];continue}H+=1,F=65536+((F&1023)<<10|oe.charCodeAt(H)&1023),te[te.length]=l[240|F>>18]+l[128|F>>12&63]+l[128|F>>6&63]+l[128|F&63]}ee+=te.join("")}return ee},w=function(S){for(var E=[{obj:{o:S},prop:"o"}],M=[],j=0;jM?o(d(Z,{plainObjects:j}),Z.length-1):Z},B=function(S,E){if(a(S)){for(var M=[],j=0;j"u"&&(et=0)}if(typeof j=="function"?L=j(w,L):L instanceof Date?L=ee(L):_==="comma"&&o(L)&&(L=t.maybeMap(L,function(k){return k instanceof Date?ee(k):k})),L===null){if(B)return M&&!te?M(w,p.encoder,H,"key",re):w;L=""}if(d(L)||t.isBuffer(L)){if(M){var Tt=te?w:M(w,p.encoder,H,"key",re);return[oe(Tt)+"="+oe(M(L,p.encoder,H,"value",re))]}return[oe(w)+"="+oe(String(L))]}var Jt=[];if(typeof L>"u")return Jt;var Mt;if(_==="comma"&&o(L))te&&M&&(L=t.maybeMap(L,M)),Mt=[{value:L.length>0?L.join(",")||null:void 0}];else if(o(j))Mt=j;else{var We=Object.keys(L);Mt=q?We.sort(q):We}var gt=E?String(w).replace(/\./g,"%2E"):String(w),St=A&&o(L)&&L.length===1?gt+"[]":gt;if(z&&o(L)&&L.length===0)return St+"[]";for(var he=0;he"u"?f.encodeDotInKeys===!0?!0:p.allowDots:!!f.allowDots;return{addQueryPrefix:typeof f.addQueryPrefix=="boolean"?f.addQueryPrefix:p.addQueryPrefix,allowDots:B,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:z,charset:T,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!f.commaRoundTrip,delimiter:typeof f.delimiter>"u"?p.delimiter:f.delimiter,encode:typeof f.encode=="boolean"?f.encode:p.encode,encodeDotInKeys:typeof f.encodeDotInKeys=="boolean"?f.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof f.encoder=="function"?f.encoder:p.encoder,encodeValuesOnly:typeof f.encodeValuesOnly=="boolean"?f.encodeValuesOnly:p.encodeValuesOnly,filter:A,format:w,formatter:_,serializeDate:typeof f.serializeDate=="function"?f.serializeDate:p.serializeDate,skipNulls:typeof f.skipNulls=="boolean"?f.skipNulls:p.skipNulls,sort:typeof f.sort=="function"?f.sort:null,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:p.strictNullHandling}};return Sr=function(f,T){var w=f,_=h(T),A,z;typeof _.filter=="function"?(z=_.filter,w=z("",w)):o(_.filter)&&(z=_.filter,A=z);var B=[];if(typeof w!="object"||w===null)return"";var S=i[_.arrayFormat],E=S==="comma"&&_.commaRoundTrip;A||(A=Object.keys(w)),_.sort&&A.sort(_.sort);for(var M=e(),j=0;j0?re+ee:""},Sr}var Er,qp;function Pg(){if(qp)return Er;qp=1;var e=Fp(),t=Object.prototype.hasOwnProperty,n=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(u){return u.replace(/&#(\d+);/g,function(h,f){return String.fromCharCode(parseInt(f,10))})},o=function(u,h,f){if(u&&typeof u=="string"&&h.comma&&u.indexOf(",")>-1)return u.split(",");if(h.throwOnLimitExceeded&&f>=h.arrayLimit)throw new RangeError("Array limit exceeded. Only "+h.arrayLimit+" element"+(h.arrayLimit===1?"":"s")+" allowed in an array.");return u},r="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",c=function(u,h){var f={__proto__:null},T=h.ignoreQueryPrefix?u.replace(/^\?/,""):u;T=T.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=h.parameterLimit===1/0?void 0:h.parameterLimit,_=T.split(h.delimiter,h.throwOnLimitExceeded?w+1:w);if(h.throwOnLimitExceeded&&_.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var A=-1,z,B=h.charset;if(h.charsetSentinel)for(z=0;z<_.length;++z)_[z].indexOf("utf8=")===0&&(_[z]===s?B="utf-8":_[z]===r&&(B="iso-8859-1"),A=z,z=_.length);for(z=0;z<_.length;++z)if(z!==A){var S=_[z],E=S.indexOf("]="),M=E===-1?S.indexOf("="):E+1,j,q;if(M===-1?(j=h.decoder(S,a.decoder,B,"key"),q=h.strictNullHandling?null:""):(j=h.decoder(S.slice(0,M),a.decoder,B,"key"),j!==null&&(q=e.maybeMap(o(S.slice(M+1),h,n(f[j])?f[j].length:0),function(ee){return h.decoder(ee,a.decoder,B,"value")}))),q&&h.interpretNumericEntities&&B==="iso-8859-1"&&(q=i(String(q))),S.indexOf("[]=")>-1&&(q=n(q)?[q]:q),j!==null){var Z=t.call(f,j);Z&&h.duplicates==="combine"?f[j]=e.combine(f[j],q,h.arrayLimit,h.plainObjects):(!Z||h.duplicates==="last")&&(f[j]=q)}}return f},l=function(u,h,f,T){var w=0;if(u.length>0&&u[u.length-1]==="[]"){var _=u.slice(0,-1).join("");w=Array.isArray(h)&&h[_]?h[_].length:0}for(var A=T?h:o(h,f,w),z=u.length-1;z>=0;--z){var B,S=u[z];if(S==="[]"&&f.parseArrays)e.isOverflow(A)?B=A:B=f.allowEmptyArrays&&(A===""||f.strictNullHandling&&A===null)?[]:e.combine([],A,f.arrayLimit,f.plainObjects);else{B=f.plainObjects?{__proto__:null}:{};var E=S.charAt(0)==="["&&S.charAt(S.length-1)==="]"?S.slice(1,-1):S,M=f.decodeDotInKeys?E.replace(/%2E/g,"."):E,j=parseInt(M,10);!f.parseArrays&&M===""?B={0:A}:!isNaN(j)&&S!==M&&String(j)===M&&j>=0&&f.parseArrays&&j<=f.arrayLimit?(B=[],B[j]=A):M!=="__proto__"&&(B[M]=A)}A=B}return A},p=function(u,h){var f=h.allowDots?u.replace(/\.([^.[]+)/g,"[$1]"):u;if(h.depth<=0)return!h.plainObjects&&t.call(Object.prototype,f)&&!h.allowPrototypes?void 0:[f];var T=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,_=T.exec(f),A=_?f.slice(0,_.index):f,z=[];if(A){if(!h.plainObjects&&t.call(Object.prototype,A)&&!h.allowPrototypes)return;z.push(A)}for(var B=0;(_=w.exec(f))!==null&&B"u"?a.charset:u.charset,f=typeof u.duplicates>"u"?a.duplicates:u.duplicates;if(f!=="combine"&&f!=="first"&&f!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var T=typeof u.allowDots>"u"?u.decodeDotInKeys===!0?!0:a.allowDots:!!u.allowDots;return{allowDots:T,allowEmptyArrays:typeof u.allowEmptyArrays=="boolean"?!!u.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof u.allowPrototypes=="boolean"?u.allowPrototypes:a.allowPrototypes,allowSparse:typeof u.allowSparse=="boolean"?u.allowSparse:a.allowSparse,arrayLimit:typeof u.arrayLimit=="number"?u.arrayLimit:a.arrayLimit,charset:h,charsetSentinel:typeof u.charsetSentinel=="boolean"?u.charsetSentinel:a.charsetSentinel,comma:typeof u.comma=="boolean"?u.comma:a.comma,decodeDotInKeys:typeof u.decodeDotInKeys=="boolean"?u.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof u.decoder=="function"?u.decoder:a.decoder,delimiter:typeof u.delimiter=="string"||e.isRegExp(u.delimiter)?u.delimiter:a.delimiter,depth:typeof u.depth=="number"||u.depth===!1?+u.depth:a.depth,duplicates:f,ignoreQueryPrefix:u.ignoreQueryPrefix===!0,interpretNumericEntities:typeof u.interpretNumericEntities=="boolean"?u.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof u.parameterLimit=="number"?u.parameterLimit:a.parameterLimit,parseArrays:u.parseArrays!==!1,plainObjects:typeof u.plainObjects=="boolean"?u.plainObjects:a.plainObjects,strictDepth:typeof u.strictDepth=="boolean"?!!u.strictDepth:a.strictDepth,strictNullHandling:typeof u.strictNullHandling=="boolean"?u.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof u.throwOnLimitExceeded=="boolean"?u.throwOnLimitExceeded:!1}};return Er=function(u,h){var f=v(h);if(u===""||u===null||typeof u>"u")return f.plainObjects?{__proto__:null}:{};for(var T=typeof u=="string"?c(u,f):u,w=f.plainObjects?{__proto__:null}:{},_=Object.keys(T),A=0;A<_.length;++A){var z=_[A],B=d(z,T[z],f,typeof u=="string");w=e.merge(w,B,f)}return f.allowSparse===!0?w:e.compact(w)},Er}var Or,Up;function Cg(){if(Up)return Or;Up=1;var e=Ig(),t=Pg(),n=kr();return Or={formats:n,parse:t,stringify:e},Or}var Bp;function Tg(){if(Bp)return Ma;Bp=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.DrupalJsonApiParams=void 0;const e=Cg();class t{constructor(a,i){this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this.qsOptions={},this.config={useShortCutForQueryGeneration:!0,alwaysUseFieldNameForKeys:!1},i!==void 0&&(this.config=i),this.initialize(a)}addCustomParam(a){return this.data=Object.assign(Object.assign({},this.data),a),this}addFields(a,i){return this.data.fields[a]=i.join(","),this}addSort(a,i){let o="";return i!==void 0&&i==="DESC"&&(o="-"),this.data.sort=this.data.sort.concat(o+a),this}addPageLimit(a){return this.data.page===void 0?this.data.page={limit:a}:this.data.page.limit=a,this}addPageOffset(a){return this.data.page===void 0?this.data.page={offset:a}:this.data.page.offset=a,this}addInclude(a){return this.data.include=this.data.include.concat(a),this}addGroup(a,i="OR",o){return this.data.filter[a]={group:Object.assign({conjunction:i},o!==void 0&&{memberOf:o})},this}addFilter(a,i,o="=",r,s){const c=this.getIndexId(this.data.filter,s||a,!!s);if((o==="IS NULL"||o==="IS NOT NULL")&&(i=null),i===null){if(!(o==="IS NULL"||o==="IS NOT NULL"))throw new TypeError(`Value cannot be null for the operator "${o}"`);return this.data.filter[c]={condition:Object.assign(Object.assign({path:a},{operator:o}),r!==void 0&&{memberOf:r})},this}if(Array.isArray(i)){switch(o){case"BETWEEN":case"NOT BETWEEN":if(i.length!==2)throw new TypeError(`Value must consists of 2 items for the "${o}"`);break;case"IN":case"NOT IN":break;default:throw new TypeError(`Value cannot be an array for the operator "${o}"`)}return this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},{operator:o}),r!==void 0&&{memberOf:r})},this}return this.config.useShortCutForQueryGeneration&&r===void 0&&a===c&&this.data.filter[a]===void 0?(o==="="?this.data.filter[c]=i:this.data.filter[c]={value:i,operator:o},this):(this.data.filter[c]={condition:Object.assign(Object.assign({path:a,value:i},this.config.useShortCutForQueryGeneration?o!=="="&&{operator:o}:{operator:o}),r!==void 0&&{memberOf:r})},this)}getIndexId(a,i,o){o=o||this.config.alwaysUseFieldNameForKeys;let r;return a[i]===void 0?r=i:r=this.generateKeyName(a,i,o),r}generateKeyName(a,i,o=!1){const r=Object.keys(a).length;if(o)for(let s=1;s<=r;s++){const c=`${i}--${s}`;if(a[c]===void 0)return c}return r.toString()}getQueryObject(){const a=JSON.parse(JSON.stringify(this.data));return this.data.include.length>0?a.include=this.data.include.join(","):delete a.include,this.data.sort.length>0?a.sort=this.data.sort.join(","):delete a.sort,a}getQueryString(a){const i=this.getQueryObject(),o=a||this.getQsOption();return e.stringify(i,o)}clear(){return this.data={filter:{},include:[],page:void 0,sort:[],fields:{}},this}initializeWithQueryObject(a){return this.clear(),Object.keys(a).forEach(i=>{switch(i){case"sort":a.sort.length&&(this.data.sort=a.sort.split(","));break;case"include":a.include.length&&(this.data.include=a.include.split(","));break;default:this.data[i]=a[i]}}),this}initializeWithQueryString(a,i){this.clear();const o=i||this.getQsOption();return this.initializeWithQueryObject(e.parse(a,o)),this}clone(a){const i=JSON.parse(JSON.stringify(a.getQueryObject()));return this.initializeWithQueryObject(i),this}setQsOption(a){return this.qsOptions=a,this}getQsOption(){return this.qsOptions}initialize(a){if(a===void 0)this.initializeWithQueryString("");else if(typeof a=="object")try{a.getQueryObject(),this.clone(a)}catch{this.initializeWithQueryObject(a)}else this.initializeWithQueryString(a);return this}}return Ma.DrupalJsonApiParams=t,Ma}var Zp=Tg(),Wp={},zr={},Zt={};Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.isPlainObject=Zt.jsonParse=Zt.createIncludeNamesTree=void 0;function Vp(e,t){var n=e.split("."),a=n.shift(),i=n.length,o=null;i&&(o=t[a]||{},Vp(n.join("."),o)),t[a]=o}Zt.createIncludeNamesTree=Vp;function Mg(e){var t;try{t=JSON.parse(e)}catch(n){t={},console.warn(n)}return t}Zt.jsonParse=Mg;var Dg=function(e){return!!e&&typeof e=="object"&&e.constructor===Object};Zt.isPlainObject=Dg;var ea={},Ar=function(e,t){return Ar=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},Ar(e,t)};function Jp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ar(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Si=function(){return Si=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=0;s--)(r=e[s])&&(o=(i<3?r(o):i>3?r(t,n,o):r(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function Gp(e,t){return function(n,a){t(n,a,e)}}function Yp(e,t,n,a,i,o){function r(w){if(w!==void 0&&typeof w!="function")throw new TypeError("Function expected");return w}for(var s=a.kind,c=s==="getter"?"get":s==="setter"?"set":"value",l=!t&&e?a.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),d,v=!1,u=n.length-1;u>=0;u--){var h={};for(var f in a)h[f]=f==="access"?{}:a[f];for(var f in a.access)h.access[f]=a.access[f];h.addInitializer=function(w){if(v)throw new TypeError("Cannot add initializers after decoration has completed");o.push(r(w||null))};var T=(0,n[u])(s==="accessor"?{get:p.get,set:p.set}:p[c],h);if(s==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(d=r(T.get))&&(p.get=d),(d=r(T.set))&&(p.set=d),(d=r(T.init))&&i.unshift(d)}else(d=r(T))&&(s==="field"?i.unshift(d):p[c]=d)}l&&Object.defineProperty(l,a.name,p),v=!0}function Qp(e,t,n){for(var a=arguments.length>2,i=0;i0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ir(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var a=n.call(e),i,o=[],r;try{for(;(t===void 0||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function ou(){for(var e=[],t=0;t1||c(u,f)})},h&&(i[u]=h(i[u])))}function c(u,h){try{l(a[u](h))}catch(f){v(o[0][3],f)}}function l(u){u.value instanceof ta?Promise.resolve(u.value.v).then(p,d):v(o[0][2],u)}function p(u){c("next",u)}function d(u){c("throw",u)}function v(u,h){u(h),o.shift(),o.length&&c(o[0][0],o[0][1])}}function lu(e){var t,n;return t={},a("next"),a("throw",function(i){throw i}),a("return"),t[Symbol.iterator]=function(){return this},t;function a(i,o){t[i]=e[i]?function(r){return(n=!n)?{value:ta(e[i](r)),done:!1}:o?o(r):r}:o}}function pu(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Oi=="function"?Oi(e):e[Symbol.iterator](),n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n);function a(o){n[o]=e[o]&&function(r){return new Promise(function(s,c){r=e[o](r),i(s,c,r.done,r.value)})}}function i(o,r,s,c){Promise.resolve(c).then(function(l){o({value:l,done:s})},r)}}function uu(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Rg=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Pr=function(e){return Pr=Object.getOwnPropertyNames||function(t){var n=[];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[n.length]=a);return n},Pr(e)};function du(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Pr(e),a=0;a"u"?{}:{id:n})},e.prototype.buildRelationshipsByModel=function(t){var n=this,a=this.propertiesMapper.getRelationships(t);if(!(!a||!Object.keys(a).length)){var i={};return Object.keys(a).forEach(function(o){var r=a[o];if(Array.isArray(r)){for(var s=[],c=0,l=r;cw?h:f}function v(u,h,f){var T=["nginx","apache",void 0,"iana"],w=h?T.indexOf(t[h].source):0,_=f?T.indexOf(t[f].source):0;return e.types[c]!=="application/octet-stream"&&(w>_||w===_&&e.types[c]?.slice(0,12)==="application/")||w>_?h:f}})(Su)),Su}Kg();function Hg(e,t,n){if(!e||!t)return n;const a=Array.isArray(t)?t:t.toString().split(".");let i=e;for(let o=0;ot in e?Gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ii=(e,t,n)=>Yg(e,typeof t!="symbol"?t+"":t,n);function Qg(){function e(t={}){return t instanceof Headers?t:new Headers(t)}return async(t,n={})=>{const a=e(n.headers);typeof t=="string"&&(t=t.replace(/([^:]\/)\/+/g,"$1"));const i=a.get("Authorization");return i&&(a.set("X-OAuth2-Authorization",i),a.set("Authorization","Basic ZHBjOnNkcA==")),fetch(t,{...n,headers:a})}}class Xg extends Jh{constructor(t,n,a){if(!t.endsWith("/"))throw new Error("baseUrl needs to have trailing slash");if(!t.startsWith("http://")&&!t.startsWith("https://"))throw new Error("baseUrl must start with http:// or https://");super(t,{apiPrefix:a?.apiPrefix||"api/v1",customFetch:a?.customFetch||Qg(),authentication:{type:"Basic",credentials:{username:"dpc",password:"sdp"}},serializer:new Wp.Jsona,logger:console,...a}),Ii(this,"site"),Ii(this,"siteQuery"),Ii(this,"isDev"),Ii(this,"handleError"),this.handleError=a?.handleError||this.defaultErrorHandler.bind(this),this.isDev=typeof process<"u"&&(process==null?void 0:"production")==="dev",this.site=n,this.siteQuery=`site=${this.site}`}createQueryBuilder(){return new Zp.DrupalJsonApiParams}defaultErrorHandler(t,n,a,i){var o,r;if(t instanceof kd)throw t;let s=i||"Unknown error";t instanceof Error&&(s=t.message);const c=[s];n&&c.push(`Status: ${n}`),a&&c.push(`URL: ${a}`);const l=c.join(" - ");throw(r=(o=this.logger)==null?void 0:o.error)==null||r.call(o,l),new kd(l,n||500,t)}async getMappedData(t={},n={}){const a={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const o=t[i];if(!o||typeof o=="number")continue;if(typeof o=="string"||Array.isArray(o))a[i]=Hg(n,o);else if(typeof o=="function"&&o.constructor&&o.constructor.name==="AsyncFunction")a[i]=await o(n,this);else if(typeof o=="function"){const r=o.bind(this);a[i]=r(n)}else typeof o=="object"&&(a[i]=await this.getMappedData(o,n))}return a}async getTideResource(t,n,a,i={}){const o=this.isQueryBuilder(a)?a:this.createQueryBuilder();return o.addCustomParam({site:this.site}),await this.getResource(t,n,{queryString:o.getQueryString(),...i})}isQueryBuilder(t){return t instanceof Zp.DrupalJsonApiParams}async getTideCollection(t,{query:n,limit:a,offset:i,options:o}={}){const r=this.isQueryBuilder(n)?n:this.createQueryBuilder();return r.addCustomParam({site:this.site}),a&&r.addPageLimit(a),i&&r.addPageOffset(i),this.getCollection(t,{queryString:r.getQueryString(),...o})}async getTideResourceRevision(t,n,a,i){const o=this.isQueryBuilder(i)?i:this.createQueryBuilder();return o.addCustomParam({resourceVersion:a}),await this.getTideResource(t,n,o)}}function O(e,t,n){function a(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:r,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=r.prototype,p=Object.keys(l);for(let d=0;d{var c,l;return n?.Parent&&s instanceof n.Parent?!0:(l=(c=s?._zod)==null?void 0:c.traits)==null?void 0:l.has(e)}}),Object.defineProperty(r,"name",{value:e}),r}class oa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Iu extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Pu={};function An(e){return Pu}function eb(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function Rr(e,t){return typeof t=="bigint"?t.toString():t}function $r(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Nr(e){return e==null}function Fr(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function tb(e,t){const n=(e.toString().split(".")[1]||"").length,a=t.toString();let i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){const c=a.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}const o=n>i?n:i,r=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return r%s/10**o}const Cu=Symbol("evaluating");function ye(e,t,n){let a;Object.defineProperty(e,t,{get(){if(a!==Cu)return a===void 0&&(a=Cu,a=n()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function In(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pn(...e){const t={};for(const n of e){const a=Object.getOwnPropertyDescriptors(n);Object.assign(t,a)}return Object.defineProperties({},t)}function Tu(e){return JSON.stringify(e)}function nb(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Mu="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ab=$r(()=>{var e;if(typeof navigator<"u"&&(e=navigator?.userAgent)!=null&&e.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Da(e){if(Pi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pi(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Du(e){return Da(e)?{...e}:Array.isArray(e)?[...e]:e}const ib=new Set(["string","number","symbol"]);function Ci(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gn(e,t,n){const a=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(a._zod.parent=e),a}function K(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ob(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const rb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function sb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function cb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function lb(e,t){if(!Da(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return In(this,"shape",i),i},checks:[]});return gn(e,a)}function pb(e,t){if(!Da(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return In(this,"shape",a),a},checks:e._zod.def.checks};return gn(e,n)}function ub(e,t){const n=Pn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return In(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return gn(e,n)}function db(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=e?new e({type:"optional",innerType:i[r]}):i[r])}else for(const r in i)o[r]=e?new e({type:"optional",innerType:i[r]}):i[r];return In(this,"shape",o),o},checks:[]});return gn(t,a)}function fb(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in o))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=new e({type:"nonoptional",innerType:i[r]}))}else for(const r in i)o[r]=new e({type:"nonoptional",innerType:i[r]});return In(this,"shape",o),o},checks:[]});return gn(t,a)}function ra(e,t=0){var n;if(e.aborted===!0)return!0;for(let a=t;a{var a;return(a=n).path??(a.path=[]),n.path.unshift(e),n})}function Ti(e){return typeof e=="string"?e:e?.message}function Cn(e,t,n){var a,i,o,r,s,c;const l={...e,path:e.path??[]};if(!e.message){const p=Ti((o=(i=(a=e.inst)==null?void 0:a._zod.def)==null?void 0:i.error)==null?void 0:o.call(i,e))??Ti((r=t?.error)==null?void 0:r.call(t,e))??Ti((s=n.customError)==null?void 0:s.call(n,e))??Ti((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";l.message=p}return delete l.inst,delete l.continue,t?.reportInput||delete l.input,l}function Lr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ra(...e){const[t,n,a]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:a}:{...t}}const mb=/^[cC][^\s-]{8,}$/,vb=/^[0-9a-z]+$/,hb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,gb=/^[0-9a-vA-V]{20}$/,bb=/^[A-Za-z0-9]{27}$/,xb=/^[a-zA-Z0-9_-]{21}$/,yb=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,wb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$u=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,_b=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function jb(){return new RegExp(kb,"u")}const Sb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Eb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ob=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,zb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ab=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nu=/^[A-Za-z0-9_-]*$/,Ib=/^\+(?:[0-9]){6,14}[0-9]$/,Fu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pb=new RegExp(`^${Fu}$`);function Lu(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Cb(e){return new RegExp(`^${Lu(e)}$`)}function Tb(e){const t=Lu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${n.join("|")})`;return new RegExp(`^${Fu}T(?:${a})$`)}const Mb=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Db=/^-?\d+$/,Rb=/^-?\d+(?:\.\d+)?/,$b=/^[^A-Z]*$/,Nb=/^[^a-z]*$/,lt=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Uu={number:"number",bigint:"bigint",object:"date"},qu=O("$ZodCheckLessThan",(e,t)=>{lt.init(e,t);const n=Uu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?a.value<=t.value:a.value{lt.init(e,t);const n=Uu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:n,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fb=O("$ZodCheckMultipleOf",(e,t)=>{lt.init(e,t),e._zod.onattach.push(n=>{var a;(a=n._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):tb(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Lb=O("$ZodCheckNumberFormat",(e,t)=>{var n;lt.init(e,t),t.format=t.format||"float64";const a=(n=t.format)==null?void 0:n.includes("int"),i=a?"int":"number",[o,r]=rb[t.format];e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=t.format,c.minimum=o,c.maximum=r,a&&(c.pattern=Db)}),e._zod.check=s=>{const c=s.value;if(a){if(!Number.isInteger(c)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}cr&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inst:e})}}),Ub=O("$ZodCheckMaxLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=a.value;if(i.length<=t.maximum)return;const o=Lr(i);a.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qb=O("$ZodCheckMinLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const i=a.value;if(i.length>=t.minimum)return;const o=Lr(i);a.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Bb=O("$ZodCheckLengthEquals",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Nr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{const i=a.value,o=i.length;if(o===t.length)return;const r=Lr(i),s=o>t.length;a.issues.push({origin:r,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Mi=O("$ZodCheckStringFormat",(e,t)=>{var n,a;lt.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),Zb=O("$ZodCheckRegex",(e,t)=>{Mi.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wb=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=$b),Mi.init(e,t)}),Vb=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nb),Mi.init(e,t)}),Jb=O("$ZodCheckIncludes",(e,t)=>{lt.init(e,t);const n=Ci(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=a,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Kb=O("$ZodCheckStartsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`^${Ci(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),Hb=O("$ZodCheckEndsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`.*${Ci(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),Gb=O("$ZodCheckOverwrite",(e,t)=>{lt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Yb{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` + isn't array of relationship names`),r[e.RELATIONSHIP_NAMES_PROP]);return}var c={};return s.forEach(function(l){r[l]!==void 0&&(c[l]=r[l])}),c}},o})();e.ModelPropertiesMapper=n;function a(o,r,s){Object.defineProperty(o,r,{enumerable:!0,configurable:!0,set:function(c){delete o[r],o[r]=c},get:function(){return delete o[r],o[r]=s()}})}e.defineRelationGetter=a;var i=(function(){function o(){}return o.prototype.createModel=function(r){return{type:r}},o.prototype.setId=function(r,s){r.id=s},o.prototype.setAttributes=function(r,s){Object.keys(s).forEach(function(c){r[c]=s[c]})},o.prototype.setMeta=function(r,s){r.meta=s},o.prototype.setLinks=function(r,s){r.links=s},o.prototype.setResourceIdObjMeta=function(r,s){r.resourceIdObjMeta=s},o.prototype.setRelationships=function(r,s){Object.keys(s).forEach(function(p){typeof s[p]=="function"?a(r,p,s[p]):r[p]=s[p]});var c=Object.keys(s),l=r[e.RELATIONSHIP_NAMES_PROP];l&&l.length?r[e.RELATIONSHIP_NAMES_PROP]=t.__spreadArray(t.__spreadArray([],l,!0),c,!0).filter(function(p,d,v){return v.indexOf(p)===d}):r[e.RELATIONSHIP_NAMES_PROP]=c},o.prototype.setRelationshipLinks=function(r,s,c){},o.prototype.setRelationshipMeta=function(r,s,c){},o})();e.JsonPropertiesMapper=i})(zi);var aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.DeserializeCache=aa.jsonStringify=void 0;function Dr(e){var t;try{t=JSON.stringify(e)}catch(n){t="",console.warn(n)}return t}aa.jsonStringify=Dr;var Bg=(function(){function e(){this.cachedModels={}}return e.prototype.getCachedModel=function(t,n){var a=this.createCacheKey(t,n);return this.cachedModels[a]||null},e.prototype.handleModel=function(t,n,a){var i=this.createCacheKey(n,a),o=n.attributes||n.relationships;i&&o&&(this.cachedModels[i]=t)},e.prototype.createCacheKey=function(t,n){if(!(!t.id||!t.type)){var a=n?"".concat(n.type,"-").concat(n.id):"";return n?.meta&&(a+="-".concat(Dr(n.meta))),t.meta?"".concat(t.type,"-").concat(t.id,"-").concat(Dr(t.meta),"-").concat(a):"".concat(t.type,"-").concat(t.id,"-").concat(a)}},e})();aa.DeserializeCache=Bg,Object.defineProperty(zr,"__esModule",{value:!0});var Zg=Zt,Wg=ea,Vg=na,Jg=Mr,_u=zi,Kg=aa,Hg=(function(){function e(t){this.modelPropertiesMapper=new _u.ModelPropertiesMapper,this.jsonPropertiesMapper=new _u.JsonPropertiesMapper,this.DeserializeCache=Kg.DeserializeCache,this.ModelsSerializer=Wg.default,this.JsonDeserializer=Vg.default,t&&t.modelPropertiesMapper&&(this.modelPropertiesMapper=t.modelPropertiesMapper),t&&t.jsonPropertiesMapper&&(this.jsonPropertiesMapper=t.jsonPropertiesMapper),t&&t.DeserializeCache&&(this.DeserializeCache=t.DeserializeCache),t&&t.ModelsSerializer&&(this.ModelsSerializer=t.ModelsSerializer),t&&t.JsonDeserializer&&(this.JsonDeserializer=t.JsonDeserializer)}return e.prototype.serialize=function(t){var n=t.stuff,a=t.includeNames;if(!n)throw new Error("Jsona can not serialize, stuff is not passed");var i=new this.ModelsSerializer(this.modelPropertiesMapper);return i.setStuff(n),a&&i.setIncludeNames(a),i.build()},e.prototype.deserialize=function(t,n){if(!t)throw new Error("Jsona can not deserialize, body is not passed");var a=new this.DeserializeCache,i=new this.JsonDeserializer(this.jsonPropertiesMapper,a,n);return typeof t=="string"?i.setJsonParsedObject((0,Zg.jsonParse)(t)):i.setJsonParsedObject(t),i.build()},e.prototype.denormalizeReduxObject=function(t){var n=t.reduxObject,a=t.entityType,i=t.entityIds,o=t.returnBuilderInRelations,r=o===void 0?!1:o;if(!n)throw new Error("Jsona can not denormalize ReduxObject, incorrect reduxObject passed");if(!a)throw new Error("Jsona can not denormalize ReduxObject, entityType is not passed");if(!n[a])return null;var s=new Jg.default(this.jsonPropertiesMapper);return s.setReduxObject(n),s.setEntityType(a),s.setReturnBuilderInRelations(r),i&&s.setEntityIds(Array.isArray(i)?i:i.toString()),s.build()},e})();zr.default=Hg;var ia={};Object.defineProperty(ia,"__esModule",{value:!0}),ia.SwitchCaseJsonMapper=ia.SwitchCaseModelMapper=void 0;var ku=Cr,Ai=zi,ju=Zt,Gg=(function(e){ku.__extends(t,e);function t(n){var a=e.call(this)||this,i=n||{},o=i.switchAttributes,r=o===void 0?!0:o,s=i.switchRelationships,c=s===void 0?!0:s,l=i.switchType,p=l===void 0?!0:l,d=i.switchChar,v=d===void 0?"-":d;return a.switchAttributes=r,a.switchRelationships=c,a.switchType=p,a.switchChar=v,a.regex=new RegExp(/([a-z][A-Z0-9])/g),a}return t.prototype.getType=function(n){var a=e.prototype.getType.call(this,n);return!this.switchType||!a?a:this.convertFromCamelCaseString(a)},t.prototype.getAttributes=function(n){var a=e.prototype.getAttributes.call(this,n);return!this.switchAttributes||!a?a:this.convertFromCamelCase(a)},t.prototype.getRelationships=function(n){var a=e.prototype.getRelationships.call(this,n);return!this.switchRelationships||!a?a:this.convertFromCamelCase(a)},t.prototype.convertFromCamelCase=function(n){var a=this;if(Array.isArray(n))return n.map(function(o){return a.convertFromCamelCase(o)});if((0,ju.isPlainObject)(n)){var i={};return Object.entries(n).forEach(function(o){var r=o[0],s=o[1],c=a.convertFromCamelCaseString(r);i[c]=a.convertFromCamelCase(s)}),i}return n},t.prototype.convertFromCamelCaseString=function(n){var a=this;return n.replace(this.regex,function(i){return i[0]+a.switchChar+i[1].toLowerCase()})},t})(Ai.ModelPropertiesMapper);ia.SwitchCaseModelMapper=Gg;var Yg=(function(e){ku.__extends(t,e);function t(n){var a=e.call(this)||this,i=n||{},o=i.camelizeAttributes,r=o===void 0?!0:o,s=i.camelizeRelationships,c=s===void 0?!0:s,l=i.camelizeType,p=l===void 0?!0:l,d=i.camelizeMeta,v=d===void 0?!1:d,u=i.switchChar,h=u===void 0?"-":u;return a.camelizeAttributes=r,a.camelizeRelationships=c,a.camelizeType=p,a.camelizeMeta=v,a.switchChar=h,a.regex=new RegExp("".concat(a.switchChar,"([a-z0-9])"),"g"),a}return t.prototype.createModel=function(n){if(!this.camelizeType)return{type:n};var a=this.convertToCamelCaseString(n);return{type:a}},t.prototype.setAttributes=function(n,a){if(!this.camelizeAttributes)return e.prototype.setAttributes.call(this,n,a);Object.assign(n,this.convertToCamelCase(a))},t.prototype.setMeta=function(n,a){if(!this.camelizeMeta)return e.prototype.setMeta.call(this,n,a);n.meta=this.convertToCamelCase(a)},t.prototype.setRelationships=function(n,a){var i=this;e.prototype.setRelationships.call(this,n,a),this.camelizeRelationships&&n[Ai.RELATIONSHIP_NAMES_PROP].forEach(function(o,r){var s=i.convertToCamelCaseString(o);s!==o&&(n[s]=n[o],delete n[o],n[Ai.RELATIONSHIP_NAMES_PROP][r]=s)})},t.prototype.convertToCamelCase=function(n){var a=this;if(Array.isArray(n))return n.map(function(o){return a.convertToCamelCase(o)});if((0,ju.isPlainObject)(n)){var i={};return Object.entries(n).forEach(function(o){var r=o[0],s=o[1],c=a.convertToCamelCaseString(r);i[c]=a.convertToCamelCase(s)}),i}return n},t.prototype.convertToCamelCaseString=function(n){return n.replace(this.regex,function(a){return a[1].toUpperCase()})},t})(Ai.JsonPropertiesMapper);ia.SwitchCaseJsonMapper=Yg,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SwitchCaseJsonMapper=e.SwitchCaseModelMapper=e.JsonPropertiesMapper=e.ModelPropertiesMapper=e.JsonDeserializer=e.ModelsSerializer=e.Jsona=void 0;var t=zr;e.Jsona=t.default;var n=ea;e.ModelsSerializer=n.default;var a=na;e.JsonDeserializer=a.default;var i=zi;Object.defineProperty(e,"ModelPropertiesMapper",{enumerable:!0,get:function(){return i.ModelPropertiesMapper}}),Object.defineProperty(e,"JsonPropertiesMapper",{enumerable:!0,get:function(){return i.JsonPropertiesMapper}});var o=ia;Object.defineProperty(e,"SwitchCaseModelMapper",{enumerable:!0,get:function(){return o.SwitchCaseModelMapper}}),Object.defineProperty(e,"SwitchCaseJsonMapper",{enumerable:!0,get:function(){return o.SwitchCaseJsonMapper}}),e.default=t.default})(Wp);var Su={};const Qg={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/ace+json":{source:"iana",compressible:!0},"application/ace-groupcomm+cbor":{source:"iana"},"application/ace-trl+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/aif+cbor":{source:"iana"},"application/aif+json":{source:"iana",compressible:!0},"application/alto-cdni+json":{source:"iana",compressible:!0},"application/alto-cdnifilter+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-propmap+json":{source:"iana",compressible:!0},"application/alto-propmapparams+json":{source:"iana",compressible:!0},"application/alto-tips+json":{source:"iana",compressible:!0},"application/alto-tipsparams+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/appinstaller":{compressible:!1,extensions:["appinstaller"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/appx":{compressible:!1,extensions:["appx"]},"application/appxbundle":{compressible:!1,extensions:["appxbundle"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/automationml-aml+xml":{source:"iana",compressible:!0,extensions:["aml"]},"application/automationml-amlx+zip":{source:"iana",compressible:!1,extensions:["amlx"]},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/bufr":{source:"iana"},"application/c2pa":{source:"iana"},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/ce+cbor":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/cid-edhoc+cbor-seq":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/city+json-seq":{source:"iana"},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-eap":{source:"iana"},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/concise-problem-details+cbor":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cose-x509":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwl":{source:"iana",extensions:["cwl"]},"application/cwl+json":{source:"iana",compressible:!0},"application/cwl+yaml":{source:"iana"},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana",extensions:["dcm"]},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dpop+jwt":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/eat+cwt":{source:"iana"},"application/eat+jwt":{source:"iana"},"application/eat-bun+cbor":{source:"iana"},"application/eat-bun+json":{source:"iana",compressible:!0},"application/eat-ucs+cbor":{source:"iana"},"application/eat-ucs+json":{source:"iana",compressible:!0},"application/ecmascript":{source:"apache",compressible:!0,extensions:["ecma"]},"application/edhoc+cbor-seq":{source:"iana"},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.legacyesn+json":{source:"iana",compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/entity-statement+jwt":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdf":{source:"iana",extensions:["fdf"]},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geopose+json":{source:"iana",compressible:!0},"application/geoxacml+json":{source:"iana",compressible:!0},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gnap-binding-jws":{source:"iana"},"application/gnap-binding-jwsd":{source:"iana"},"application/gnap-binding-rotation-jws":{source:"iana"},"application/gnap-binding-rotation-jwsd":{source:"iana"},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/grib":{source:"iana"},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"iana",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"apache",charset:"UTF-8",compressible:!0,extensions:["js"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/jscontact+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jsonpath":{source:"iana"},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwk-set+jwt":{source:"iana"},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/linkset":{source:"iana"},"application/linkset+json":{source:"iana",compressible:!0},"application/load-control+xml":{source:"iana",compressible:!0},"application/logout+jwt":{source:"iana"},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4","mpg4","mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msix":{compressible:!1,extensions:["msix"]},"application/msixbundle":{compressible:!1,extensions:["msixbundle"]},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!0,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/ohttp-keys":{source:"iana"},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg","one","onea"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["sig","asc"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/private-token-issuer-directory":{source:"iana"},"application/private-token-request":{source:"iana"},"application/private-token-response":{source:"iana"},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/provided-claims+jwt":{source:"iana"},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.implied-document+xml":{source:"iana",compressible:!0},"application/prs.implied-executable":{source:"iana"},"application/prs.implied-object+json":{source:"iana",compressible:!0},"application/prs.implied-object+json-seq":{source:"iana"},"application/prs.implied-object+yaml":{source:"iana"},"application/prs.implied-structure":{source:"iana"},"application/prs.mayfile":{source:"iana"},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.vcfbzip2":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0,extensions:["xsf"]},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"apache"},"application/reputon+json":{source:"iana",compressible:!0},"application/resolve-response+jwt":{source:"iana"},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-checklist":{source:"iana"},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-signed-tal":{source:"iana"},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"apache"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana",extensions:["sql"]},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/sslkeylogfile":{source:"iana"},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/st2110-41":{source:"iana"},"application/stix+json":{source:"iana",compressible:!0},"application/stratum":{source:"iana"},"application/swid+cbor":{source:"iana"},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tm+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/toc+cbor":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{source:"iana",compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/trust-chain+json":{source:"iana",compressible:!0},"application/trust-mark+jwt":{source:"iana"},"application/trust-mark-delegation+jwt":{source:"iana"},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/uccs+cbor":{source:"iana"},"application/ujcs+json":{source:"iana",compressible:!0},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vc":{source:"iana"},"application/vc+cose":{source:"iana"},"application/vc+jwt":{source:"iana"},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.1ob":{source:"iana"},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.5gsa2x":{source:"iana"},"application/vnd.3gpp.5gsa2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gsv2x":{source:"iana"},"application/vnd.3gpp.5gsv2x-local-service-information":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.crs+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.pinapp-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.seal-group-doc+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.v2x":{source:"iana"},"application/vnd.3gpp.vae-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acm.addressxfer+json":{source:"iana",compressible:!0},"application/vnd.acm.chatbot+json":{source:"iana",compressible:!0},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"apache",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"apache"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.parquet":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.apexlang":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"apache"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autodesk.fbx":{extensions:["fbx"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:"iana",compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:"iana",compressible:!1},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.bzip3":{source:"iana"},"application/vnd.c3voc.schedule+xml":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:"iana"},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:"iana"},"application/vnd.cncf.helm.config.v1+json":{source:"iana",compressible:!0},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datalog":{source:"iana"},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.dcmp+xml":{source:"iana",compressible:!0,extensions:["dcmp"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.eln+zip":{source:"iana",compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.erofs":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"apache",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.fdsn.stationxml+xml":{source:"iana",charset:"XML-BASED",compressible:!0},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.freelog.comic":{source:"iana"},"application/vnd.frogans.fnc":{source:"apache",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"apache",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.ga4gh.passport+jwt":{source:"iana"},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.genozip":{source:"iana"},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.ebuild":{source:"iana"},"application/vnd.gentoo.eclass":{source:"iana"},"application/vnd.gentoo.gpkg":{source:"iana"},"application/vnd.gentoo.manifest":{source:"iana"},"application/vnd.gentoo.pkgmetadata+xml":{source:"iana",compressible:!0},"application/vnd.gentoo.xpak":{source:"iana"},"application/vnd.geo+json":{source:"apache",compressible:!0},"application/vnd.geocube+xml":{source:"apache",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.pinboard":{source:"iana"},"application/vnd.geogebra.slides":{source:"iana",extensions:["ggs"]},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.gnu.taler.exchange+json":{source:"iana",compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:"iana",compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:["gdraw"]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:["gform"]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:["gjam"]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:["gmap"]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.script":{compressible:!1,extensions:["gscript"]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:["gsite"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"apache",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0,extensions:["xdcf"]},"application/vnd.gpxsee.map+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.hsl":{source:"iana"},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"apache"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"apache",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"apache"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.ipfs.ipns-record":{source:"iana"},"application/vnd.ipld.car":{source:"iana"},"application/vnd.ipld.dag-cbor":{source:"iana"},"application/vnd.ipld.dag-json":{source:"iana"},"application/vnd.ipld.raw":{source:"iana"},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kdl":{source:"iana"},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.keyman.kmp+zip":{source:"iana",compressible:!1},"application/vnd.keyman.kmx":{source:"iana"},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.ldev.productlicensing":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.mdl":{source:"iana"},"application/vnd.mdl-mbsdf":{source:"iana"},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.medicalholodeck.recordxr":{source:"iana"},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mermaid":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.modl":{source:"iana"},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-visio.viewer":{extensions:["vdx"]},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msgpack":{source:"iana"},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:"iana"},"application/vnd.nato.bindingdataobject+json":{source:"iana",compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:"iana",compressible:!0,extensions:["bdo"]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:"iana",compressible:!1},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"apache",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oai.workflows":{source:"iana"},"application/vnd.oai.workflows+json":{source:"iana",compressible:!0},"application/vnd.oai.workflows+yaml":{source:"iana"},"application/vnd.oasis.opendocument.base":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"apache",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-master-template":{source:"iana"},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"apache",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.onvif.metadata":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openvpi.dspx+json":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.procrate.brushset":{extensions:["brushset"]},"application/vnd.procreate.brush":{extensions:["brush"]},"application/vnd.procreate.dream":{extensions:["drm"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.pt.mundusmundi":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0,extensions:["xhtm"]},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.relpipe":{source:"iana"},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.sketchometry":{source:"iana"},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.smintio.portals.archive":{source:"iana"},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sybyl.mol2":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uic.osdm+json":{source:"iana",compressible:!0},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml","uo"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:"iana"},"application/vnd.veraison.tsm-report+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw","vsdx","vtx"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vocalshaper.vsp4":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.wasmflow.wafl":{source:"iana"},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordlift":{source:"iana"},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xarin.cpj":{source:"iana"},"application/vnd.xecrets-encrypted":{source:"iana"},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/voucher-jws+json":{source:"iana",compressible:!0},"application/vp":{source:"iana"},"application/vp+cose":{source:"iana"},"application/vp+jwt":{source:"iana"},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blender":{extensions:["blend"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-compressed":{extensions:["rar"]},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-ipynb+json":{compressible:!0,extensions:["ipynb"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zip-compressed":{extensions:["zip"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xfdf":{source:"iana",extensions:["xfdf"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yaml":{source:"iana"},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+cbor":{source:"iana"},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yang-sid+json":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zip+dotlottie":{extensions:["lottie"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana",extensions:["adts","aac"]},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flac":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/matroska":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/midi-clip":{source:"iana"},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a","m4b"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"apache"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{source:"iana",compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp","dib"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/dpx":{source:"iana",extensions:["dpx"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/j2c":{source:"iana"},"image/jaii":{source:"iana",extensions:["jaii"]},"image/jais":{source:"iana",extensions:["jais"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpg","jpeg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm","jpgm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxl":{source:"iana",extensions:["jxl"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1,extensions:["jfif"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif","btf"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.clip":{source:"iana"},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"iana",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-adobe-dng":{extensions:["dng"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-emf":{source:"iana"},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-wmf":{source:"iana"},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/bhttp":{source:"iana"},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/mls":{source:"iana"},"message/news":{source:"apache"},"message/ohttp-req":{source:"iana"},"message/ohttp-res":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime","mht","mhtml"]},"message/s-http":{source:"apache"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"apache"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/jt":{source:"iana",extensions:["jt"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/prc":{source:"iana",extensions:["prc"]},"model/step":{source:"iana",extensions:["step","stp","stpnc","p21","210"]},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/u3d":{source:"iana",extensions:["u3d"]},"model/vnd.bary":{source:"iana",extensions:["bary"]},"model/vnd.cld":{source:"iana",extensions:["cld"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana",extensions:["pyo","pyox"]},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usda":{source:"iana",extensions:["usda"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"apache"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/hl7v2":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["md","markdown"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/prs.texi":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.exchangeable":{source:"iana"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"apache"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.vcf":{source:"iana"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vnd.zoo.kcl":{source:"iana"},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/wgsl":{source:"iana",extensions:["wgsl"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/evc":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/h266":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/lottie+json":{source:"iana",compressible:!0},"video/matroska":{source:"iana"},"video/matroska-3d":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts","m2t","m2ts","mts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.planar":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"apache"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};var Eu,Ou;function Xg(){return Ou||(Ou=1,Eu=Qg),Eu}var Rr,zu;function eb(){if(zu)return Rr;zu=1;var e={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},t={nginx:10,apache:20,iana:40,default:30},n={application:1,font:2,audio:2,video:3,default:0};return Rr=function(a,i="default"){if(a==="application/octet-stream")return 0;const[o,r]=a.split("/"),s=r.replace(/(\.|x-).*/,"$1"),c=e[s]||e.default,l=t[i]||t.default,p=n[o]||n.default,d=1-a.length/100;return c+l+p+d},Rr}var Au;function tb(){return Au||(Au=1,(function(e){var t=Xg(),n=_l.extname,a=eb(),i=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=r,e.charsets={lookup:r},e.contentType=s,e.extension=c,e.extensions=Object.create(null),e.lookup=l,e.types=Object.create(null),e._extensionConflicts=[],p(e.extensions,e.types);function r(u){if(!u||typeof u!="string")return!1;var h=i.exec(u),f=h&&t[h[1].toLowerCase()];return f&&f.charset?f.charset:h&&o.test(h[1])?"UTF-8":!1}function s(u){if(!u||typeof u!="string")return!1;var h=u.indexOf("/")===-1?e.lookup(u):u;if(!h)return!1;if(h.indexOf("charset")===-1){var f=e.charset(h);f&&(h+="; charset="+f.toLowerCase())}return h}function c(u){if(!u||typeof u!="string")return!1;var h=i.exec(u),f=h&&e.extensions[h[1].toLowerCase()];return!f||!f.length?!1:f[0]}function l(u){if(!u||typeof u!="string")return!1;var h=n("x."+u).toLowerCase().slice(1);return h&&e.types[h]||!1}function p(u,h){Object.keys(t).forEach(function(f){var T=t[f],w=T.extensions;if(!(!w||!w.length)){u[f]=w;for(var _=0;_w?h:f}function v(u,h,f){var T=["nginx","apache",void 0,"iana"],w=h?T.indexOf(t[h].source):0,_=f?T.indexOf(t[f].source):0;return e.types[c]!=="application/octet-stream"&&(w>_||w===_&&e.types[c]?.slice(0,12)==="application/")||w>_?h:f}})(Su)),Su}tb();function nb(e,t,n){if(!e||!t)return n;const a=Array.isArray(t)?t:t.toString().split(".");let i=e;for(let o=0;ot in e?ab(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ii=(e,t,n)=>ib(e,typeof t!="symbol"?t+"":t,n);function ob(){function e(t={}){return t instanceof Headers?t:new Headers(t)}return async(t,n={})=>{const a=e(n.headers);typeof t=="string"&&(t=t.replace(/([^:]\/)\/+/g,"$1"));const i=a.get("Authorization");return i&&(a.set("X-OAuth2-Authorization",i),a.set("Authorization","Basic ZHBjOnNkcA==")),fetch(t,{...n,headers:a})}}class rb extends eg{constructor(t,n,a){if(!t.endsWith("/"))throw new Error("baseUrl needs to have trailing slash");if(!t.startsWith("http://")&&!t.startsWith("https://"))throw new Error("baseUrl must start with http:// or https://");super(t,{apiPrefix:a?.apiPrefix||"api/v1",customFetch:a?.customFetch||ob(),authentication:{type:"Basic",credentials:{username:"dpc",password:"sdp"}},serializer:new Wp.Jsona,logger:console,...a}),Ii(this,"site"),Ii(this,"siteQuery"),Ii(this,"isDev"),Ii(this,"handleError"),this.handleError=a?.handleError||this.defaultErrorHandler.bind(this),this.isDev=typeof process<"u"&&(process==null?void 0:"production")==="dev",this.site=n,this.siteQuery=`site=${this.site}`}createQueryBuilder(){return new Zp.DrupalJsonApiParams}defaultErrorHandler(t,n,a,i){var o,r;if(t instanceof kd)throw t;let s=i||"Unknown error";t instanceof Error&&(s=t.message);const c=[s];n&&c.push(`Status: ${n}`),a&&c.push(`URL: ${a}`);const l=c.join(" - ");throw(r=(o=this.logger)==null?void 0:o.error)==null||r.call(o,l),new kd(l,n||500,t)}async getMappedData(t={},n={}){const a={};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const o=t[i];if(!o||typeof o=="number")continue;if(typeof o=="string"||Array.isArray(o))a[i]=nb(n,o);else if(typeof o=="function"&&o.constructor&&o.constructor.name==="AsyncFunction")a[i]=await o(n,this);else if(typeof o=="function"){const r=o.bind(this);a[i]=r(n)}else typeof o=="object"&&(a[i]=await this.getMappedData(o,n))}return a}async getTideResource(t,n,a,i={}){const o=this.isQueryBuilder(a)?a:this.createQueryBuilder();return o.addCustomParam({site:this.site}),await this.getResource(t,n,{queryString:o.getQueryString(),...i})}isQueryBuilder(t){return t instanceof Zp.DrupalJsonApiParams}async getTideCollection(t,{query:n,limit:a,offset:i,options:o}={}){const r=this.isQueryBuilder(n)?n:this.createQueryBuilder();return r.addCustomParam({site:this.site}),a&&r.addPageLimit(a),i&&r.addPageOffset(i),this.getCollection(t,{queryString:r.getQueryString(),...o})}async getTideResourceRevision(t,n,a,i){const o=this.isQueryBuilder(i)?i:this.createQueryBuilder();return o.addCustomParam({resourceVersion:a}),await this.getTideResource(t,n,o)}}function O(e,t,n){function a(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:r,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);const l=r.prototype,p=Object.keys(l);for(let d=0;d{var c,l;return n?.Parent&&s instanceof n.Parent?!0:(l=(c=s?._zod)==null?void 0:c.traits)==null?void 0:l.has(e)}}),Object.defineProperty(r,"name",{value:e}),r}class oa extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Iu extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Pu={};function An(e){return Pu}function sb(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function $r(e,t){return typeof t=="bigint"?t.toString():t}function Nr(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Fr(e){return e==null}function Lr(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function cb(e,t){const n=(e.toString().split(".")[1]||"").length,a=t.toString();let i=(a.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(a)){const c=a.match(/\d?e-(\d?)/);c?.[1]&&(i=Number.parseInt(c[1]))}const o=n>i?n:i,r=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return r%s/10**o}const Cu=Symbol("evaluating");function ye(e,t,n){let a;Object.defineProperty(e,t,{get(){if(a!==Cu)return a===void 0&&(a=Cu,a=n()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function In(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Pn(...e){const t={};for(const n of e){const a=Object.getOwnPropertyDescriptors(n);Object.assign(t,a)}return Object.defineProperties({},t)}function Tu(e){return JSON.stringify(e)}function lb(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Mu="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const pb=Nr(()=>{var e;if(typeof navigator<"u"&&(e=navigator?.userAgent)!=null&&e.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function Da(e){if(Pi(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Pi(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Du(e){return Da(e)?{...e}:Array.isArray(e)?[...e]:e}const ub=new Set(["string","number","symbol"]);function Ci(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gn(e,t,n){const a=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(a._zod.parent=e),a}function K(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function db(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const fb={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function mb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function vb(e,t){const n=e._zod.def,a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return In(this,"shape",i),i},checks:[]});return gn(e,a)}function hb(e,t){if(!Da(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const a=Pn(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return In(this,"shape",i),i},checks:[]});return gn(e,a)}function gb(e,t){if(!Da(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const a={...e._zod.def.shape,...t};return In(this,"shape",a),a},checks:e._zod.def.checks};return gn(e,n)}function bb(e,t){const n=Pn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return In(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return gn(e,n)}function xb(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in i))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=e?new e({type:"optional",innerType:i[r]}):i[r])}else for(const r in i)o[r]=e?new e({type:"optional",innerType:i[r]}):i[r];return In(this,"shape",o),o},checks:[]});return gn(t,a)}function yb(e,t,n){const a=Pn(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const r in n){if(!(r in o))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(o[r]=new e({type:"nonoptional",innerType:i[r]}))}else for(const r in i)o[r]=new e({type:"nonoptional",innerType:i[r]});return In(this,"shape",o),o},checks:[]});return gn(t,a)}function ra(e,t=0){var n;if(e.aborted===!0)return!0;for(let a=t;a{var a;return(a=n).path??(a.path=[]),n.path.unshift(e),n})}function Ti(e){return typeof e=="string"?e:e?.message}function Cn(e,t,n){var a,i,o,r,s,c;const l={...e,path:e.path??[]};if(!e.message){const p=Ti((o=(i=(a=e.inst)==null?void 0:a._zod.def)==null?void 0:i.error)==null?void 0:o.call(i,e))??Ti((r=t?.error)==null?void 0:r.call(t,e))??Ti((s=n.customError)==null?void 0:s.call(n,e))??Ti((c=n.localeError)==null?void 0:c.call(n,e))??"Invalid input";l.message=p}return delete l.inst,delete l.continue,t?.reportInput||delete l.input,l}function qr(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ra(...e){const[t,n,a]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:a}:{...t}}const wb=/^[cC][^\s-]{8,}$/,_b=/^[0-9a-z]+$/,kb=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,jb=/^[0-9a-vA-V]{20}$/,Sb=/^[A-Za-z0-9]{27}$/,Eb=/^[a-zA-Z0-9_-]{21}$/,Ob=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,zb=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$u=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Ab=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ib="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pb(){return new RegExp(Ib,"u")}const Cb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tb=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Mb=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Db=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Rb=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Nu=/^[A-Za-z0-9_-]*$/,$b=/^\+(?:[0-9]){6,14}[0-9]$/,Fu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Nb=new RegExp(`^${Fu}$`);function Lu(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Fb(e){return new RegExp(`^${Lu(e)}$`)}function Lb(e){const t=Lu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const a=`${t}(?:${n.join("|")})`;return new RegExp(`^${Fu}T(?:${a})$`)}const qb=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ub=/^-?\d+$/,Bb=/^-?\d+(?:\.\d+)?/,Zb=/^[^A-Z]*$/,Wb=/^[^a-z]*$/,lt=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),qu={number:"number",bigint:"bigint",object:"date"},Uu=O("$ZodCheckLessThan",(e,t)=>{lt.init(e,t);const n=qu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value{(t.inclusive?a.value<=t.value:a.value{lt.init(e,t);const n=qu[typeof t.value];e._zod.onattach.push(a=>{const i=a._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:n,code:"too_small",minimum:t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vb=O("$ZodCheckMultipleOf",(e,t)=>{lt.init(e,t),e._zod.onattach.push(n=>{var a;(a=n._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):cb(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Jb=O("$ZodCheckNumberFormat",(e,t)=>{var n;lt.init(e,t),t.format=t.format||"float64";const a=(n=t.format)==null?void 0:n.includes("int"),i=a?"int":"number",[o,r]=fb[t.format];e._zod.onattach.push(s=>{const c=s._zod.bag;c.format=t.format,c.minimum=o,c.maximum=r,a&&(c.pattern=Ub)}),e._zod.check=s=>{const c=s.value;if(a){if(!Number.isInteger(c)){s.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}cr&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inst:e})}}),Kb=O("$ZodCheckMaxLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Fr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum{const i=a.value;if(i.length<=t.maximum)return;const o=qr(i);a.issues.push({origin:o,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Hb=O("$ZodCheckMinLength",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Fr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{const i=a.value;if(i.length>=t.minimum)return;const o=qr(i);a.issues.push({origin:o,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Gb=O("$ZodCheckLengthEquals",(e,t)=>{var n;lt.init(e,t),(n=e._zod.def).when??(n.when=a=>{const i=a.value;return!Fr(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{const i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{const i=a.value,o=i.length;if(o===t.length)return;const r=qr(i),s=o>t.length;a.issues.push({origin:r,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),Mi=O("$ZodCheckStringFormat",(e,t)=>{var n,a;lt.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),Yb=O("$ZodCheckRegex",(e,t)=>{Mi.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Qb=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Zb),Mi.init(e,t)}),Xb=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Wb),Mi.init(e,t)}),ex=O("$ZodCheckIncludes",(e,t)=>{lt.init(e,t);const n=Ci(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=a,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),tx=O("$ZodCheckStartsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`^${Ci(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),nx=O("$ZodCheckEndsWith",(e,t)=>{lt.init(e,t);const n=new RegExp(`.*${Ci(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(a=>{const i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}}),ax=O("$ZodCheckOverwrite",(e,t)=>{lt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ix{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(` `).filter(o=>o),a=Math.min(...n.map(o=>o.length-o.trimStart().length)),i=n.map(o=>o.slice(a)).map(o=>" ".repeat(this.indent*2)+o);for(const o of i)this.content.push(o)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(i=>` ${i}`)];return new t(...n,a.join(` -`))}}const Zu=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Rr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wu=O("$ZodError",Zu),Vu=O("$ZodError",Zu,{Parent:Error});function Qb(e,t=n=>n.message){const n={},a=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:n}}function Xb(e,t=n=>n.message){const n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(r=>a({issues:r}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let r=n,s=0;for(;s(t,n,a,i)=>{const o=a?Object.assign(a,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise)throw new oa;if(r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},qr=e=>async(t,n,a,i)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise&&(r=await r),r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},Di=e=>(t,n,a)=>{const i=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new oa;return o.issues.length?{success:!1,error:new(e??Wu)(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},ex=Di(Vu),Ri=e=>async(t,n,a)=>{const i=a?Object.assign(a,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},tx=Ri(Vu),nx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,n,i)},ax=e=>(t,n,a)=>Ur(e)(t,n,a),ix=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return qr(e)(t,n,i)},ox=e=>async(t,n,a)=>qr(e)(t,n,a),rx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Di(e)(t,n,i)},sx=e=>(t,n,a)=>Di(e)(t,n,a),cx=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ri(e)(t,n,i)},lx=e=>async(t,n,a)=>Ri(e)(t,n,a),px={major:4,minor:1,patch:13},$e=O("$ZodType",(e,t)=>{var n,a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=px;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const r of o._zod.onattach)r(e);if(i.length===0)(a=e._zod).deferred??(a.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,c,l)=>{let p=ra(s),d;for(const v of c){if(v._zod.def.when){if(!v._zod.def.when(s))continue}else if(p)continue;const u=s.issues.length,h=v._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new oa;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,s.issues.length!==u&&(p||(p=ra(s,u)))});else{if(s.issues.length===u)continue;p||(p=ra(s,u))}}return d?d.then(()=>s):s},r=(s,c,l)=>{if(ra(s))return s.aborted=!0,s;const p=o(c,i,l);if(p instanceof Promise){if(l.async===!1)throw new oa;return p.then(d=>e._zod.parse(d,l))}return e._zod.parse(p,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){const p=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(d=>r(d,s,c)):r(p,s,c)}const l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new oa;return l.then(p=>o(p,i,c))}return o(l,i,c)}}e["~standard"]={validate:o=>{var r;try{const s=ex(e,o);return s.success?{value:s.data}:{issues:(r=s.error)==null?void 0:r.issues}}catch{return tx(e,o).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Br=O("$ZodString",(e,t)=>{var n;$e.init(e,t),e._zod.pattern=[...((n=e?._zod.bag)==null?void 0:n.patterns)??[]].pop()??Mb(e._zod.bag),e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Ee=O("$ZodStringFormat",(e,t)=>{Mi.init(e,t),Br.init(e,t)}),ux=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=wb),Ee.init(e,t)}),dx=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$u(n))}else t.pattern??(t.pattern=$u());Ee.init(e,t)}),fx=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=_b),Ee.init(e,t)}),mx=O("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const a=n.value.trim(),i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),vx=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=jb()),Ee.init(e,t)}),hx=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=xb),Ee.init(e,t)}),gx=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=mb),Ee.init(e,t)}),bx=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vb),Ee.init(e,t)}),xx=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hb),Ee.init(e,t)}),yx=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=gb),Ee.init(e,t)}),wx=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=bb),Ee.init(e,t)}),_x=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Tb(t)),Ee.init(e,t)}),kx=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pb),Ee.init(e,t)}),jx=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Cb(t)),Ee.init(e,t)}),Sx=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yb),Ee.init(e,t)}),Ex=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Sb),Ee.init(e,t),e._zod.bag.format="ipv4"}),Ox=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Eb),Ee.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),zx=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ob),Ee.init(e,t)}),Ax=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zb),Ee.init(e,t),e._zod.check=n=>{const a=n.value.split("/");try{if(a.length!==2)throw new Error;const[i,o]=a;if(!o)throw new Error;const r=Number(o);if(`${r}`!==o)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ju(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Ix=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ab),Ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ju(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Px(e){if(!Nu.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ju(n)}const Cx=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Nu),Ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Px(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Tx=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ib),Ee.init(e,t)});function Mx(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[a]=n;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Dx=O("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{Mx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ku=O("$ZodNumber",(e,t)=>{$e.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rb,e._zod.parse=(n,a)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Rx=O("$ZodNumberFormat",(e,t)=>{Lb.init(e,t),Ku.init(e,t)}),$x=O("$ZodUnknown",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),Nx=O("$ZodNever",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Hu(e,t,n){e.issues.length&&t.issues.push(...Ru(n,e.issues)),t.value[n]=e.value}const Fx=O("$ZodArray",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let r=0;rHu(l,n,r))):Hu(c,n,r)}return o.length?Promise.all(o).then(()=>n):n}});function $i(e,t,n,a){e.issues.length&&t.issues.push(...Ru(n,e.issues)),e.value===void 0?n in a&&(t.value[n]=void 0):t.value[n]=e.value}function Gu(e){var t,n,a,i;const o=Object.keys(e.shape);for(const s of o)if(!((i=(a=(n=(t=e.shape)==null?void 0:t[s])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=ob(e.shape);return{...e,keys:o,keySet:new Set(o),numKeys:o.length,optionalKeys:new Set(r)}}function Yu(e,t,n,a,i,o){const r=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(const p in t){if(s.has(p))continue;if(l==="never"){r.push(p);continue}const d=c.run({value:t[p],issues:[]},a);d instanceof Promise?e.push(d.then(v=>$i(v,n,p,t))):$i(d,n,p,t)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Lx=O("$ZodObject",(e,t)=>{if($e.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const a=$r(()=>Gu(t));ye(e._zod,"propValues",()=>{const s=t.shape,c={};for(const l in s){const p=s[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(const d of p.values)c[l].add(d)}}return c});const i=Pi,o=t.catchall;let r;e._zod.parse=(s,c)=>{r??(r=a.value);const l=s.value;if(!i(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const p=[],d=r.shape;for(const v of r.keys){const u=d[v]._zod.run({value:l[v],issues:[]},c);u instanceof Promise?p.push(u.then(h=>$i(h,s,v,l))):$i(u,s,v,l)}return o?Yu(p,l,s,c,a.value,e):p.length?Promise.all(p).then(()=>s):s}}),Ux=O("$ZodObjectJIT",(e,t)=>{Lx.init(e,t);const n=e._zod.parse,a=$r(()=>Gu(t)),i=d=>{const v=new Yb(["shape","payload","ctx"]),u=a.value,h=_=>{const A=Tu(_);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};v.write("const input = payload.value;");const f=Object.create(null);let T=0;for(const _ of u.keys)f[_]=`key_${T++}`;v.write("const newResult = {};");for(const _ of u.keys){const A=f[_],z=Tu(_);v.write(`const ${A} = ${h(_)};`),v.write(` +`))}}const Zu=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,$r,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wu=O("$ZodError",Zu),Vu=O("$ZodError",Zu,{Parent:Error});function ox(e,t=n=>n.message){const n={},a=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:n}}function rx(e,t=n=>n.message){const n={_errors:[]},a=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(r=>a({issues:r}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let r=n,s=0;for(;s(t,n,a,i)=>{const o=a?Object.assign(a,{async:!1}):{async:!1},r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise)throw new oa;if(r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},Br=e=>async(t,n,a,i)=>{const o=a?Object.assign(a,{async:!0}):{async:!0};let r=t._zod.run({value:n,issues:[]},o);if(r instanceof Promise&&(r=await r),r.issues.length){const s=new(i?.Err??e)(r.issues.map(c=>Cn(c,o,An())));throw Mu(s,i?.callee),s}return r.value},Di=e=>(t,n,a)=>{const i=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new oa;return o.issues.length?{success:!1,error:new(e??Wu)(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},sx=Di(Vu),Ri=e=>async(t,n,a)=>{const i=a?Object.assign(a,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(r=>Cn(r,i,An())))}:{success:!0,data:o.value}},cx=Ri(Vu),lx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ur(e)(t,n,i)},px=e=>(t,n,a)=>Ur(e)(t,n,a),ux=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Br(e)(t,n,i)},dx=e=>async(t,n,a)=>Br(e)(t,n,a),fx=e=>(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Di(e)(t,n,i)},mx=e=>(t,n,a)=>Di(e)(t,n,a),vx=e=>async(t,n,a)=>{const i=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ri(e)(t,n,i)},hx=e=>async(t,n,a)=>Ri(e)(t,n,a),gx={major:4,minor:1,patch:13},$e=O("$ZodType",(e,t)=>{var n,a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gx;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const r of o._zod.onattach)r(e);if(i.length===0)(a=e._zod).deferred??(a.deferred=[]),(n=e._zod.deferred)==null||n.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,c,l)=>{let p=ra(s),d;for(const v of c){if(v._zod.def.when){if(!v._zod.def.when(s))continue}else if(p)continue;const u=s.issues.length,h=v._zod.check(s);if(h instanceof Promise&&l?.async===!1)throw new oa;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,s.issues.length!==u&&(p||(p=ra(s,u)))});else{if(s.issues.length===u)continue;p||(p=ra(s,u))}}return d?d.then(()=>s):s},r=(s,c,l)=>{if(ra(s))return s.aborted=!0,s;const p=o(c,i,l);if(p instanceof Promise){if(l.async===!1)throw new oa;return p.then(d=>e._zod.parse(d,l))}return e._zod.parse(p,l)};e._zod.run=(s,c)=>{if(c.skipChecks)return e._zod.parse(s,c);if(c.direction==="backward"){const p=e._zod.parse({value:s.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(d=>r(d,s,c)):r(p,s,c)}const l=e._zod.parse(s,c);if(l instanceof Promise){if(c.async===!1)throw new oa;return l.then(p=>o(p,i,c))}return o(l,i,c)}}e["~standard"]={validate:o=>{var r;try{const s=sx(e,o);return s.success?{value:s.data}:{issues:(r=s.error)==null?void 0:r.issues}}catch{return cx(e,o).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Zr=O("$ZodString",(e,t)=>{var n;$e.init(e,t),e._zod.pattern=[...((n=e?._zod.bag)==null?void 0:n.patterns)??[]].pop()??qb(e._zod.bag),e._zod.parse=(a,i)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Ee=O("$ZodStringFormat",(e,t)=>{Mi.init(e,t),Zr.init(e,t)}),bx=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=zb),Ee.init(e,t)}),xx=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=$u(n))}else t.pattern??(t.pattern=$u());Ee.init(e,t)}),yx=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ab),Ee.init(e,t)}),wx=O("$ZodURL",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{try{const a=n.value.trim(),i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),_x=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Pb()),Ee.init(e,t)}),kx=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Eb),Ee.init(e,t)}),jx=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=wb),Ee.init(e,t)}),Sx=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=_b),Ee.init(e,t)}),Ex=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=kb),Ee.init(e,t)}),Ox=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=jb),Ee.init(e,t)}),zx=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sb),Ee.init(e,t)}),Ax=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Lb(t)),Ee.init(e,t)}),Ix=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Nb),Ee.init(e,t)}),Px=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Fb(t)),Ee.init(e,t)}),Cx=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ob),Ee.init(e,t)}),Tx=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Cb),Ee.init(e,t),e._zod.bag.format="ipv4"}),Mx=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Tb),Ee.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Dx=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Mb),Ee.init(e,t)}),Rx=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Db),Ee.init(e,t),e._zod.check=n=>{const a=n.value.split("/");try{if(a.length!==2)throw new Error;const[i,o]=a;if(!o)throw new Error;const r=Number(o);if(`${r}`!==o)throw new Error;if(r<0||r>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ju(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const $x=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Rb),Ee.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ju(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Nx(e){if(!Nu.test(e))return!1;const t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ju(n)}const Fx=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Nu),Ee.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Nx(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Lx=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$b),Ee.init(e,t)});function qx(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[a]=n;if(!a)return!1;const i=JSON.parse(atob(a));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Ux=O("$ZodJWT",(e,t)=>{Ee.init(e,t),e._zod.check=n=>{qx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Ku=O("$ZodNumber",(e,t)=>{$e.init(e,t),e._zod.pattern=e._zod.bag.pattern??Bb,e._zod.parse=(n,a)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Bx=O("$ZodNumberFormat",(e,t)=>{Jb.init(e,t),Ku.init(e,t)}),Zx=O("$ZodUnknown",(e,t)=>{$e.init(e,t),e._zod.parse=n=>n}),Wx=O("$ZodNever",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Hu(e,t,n){e.issues.length&&t.issues.push(...Ru(n,e.issues)),t.value[n]=e.value}const Vx=O("$ZodArray",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let r=0;rHu(l,n,r))):Hu(c,n,r)}return o.length?Promise.all(o).then(()=>n):n}});function $i(e,t,n,a){e.issues.length&&t.issues.push(...Ru(n,e.issues)),e.value===void 0?n in a&&(t.value[n]=void 0):t.value[n]=e.value}function Gu(e){var t,n,a,i;const o=Object.keys(e.shape);for(const s of o)if(!((i=(a=(n=(t=e.shape)==null?void 0:t[s])==null?void 0:n._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const r=db(e.shape);return{...e,keys:o,keySet:new Set(o),numKeys:o.length,optionalKeys:new Set(r)}}function Yu(e,t,n,a,i,o){const r=[],s=i.keySet,c=i.catchall._zod,l=c.def.type;for(const p in t){if(s.has(p))continue;if(l==="never"){r.push(p);continue}const d=c.run({value:t[p],issues:[]},a);d instanceof Promise?e.push(d.then(v=>$i(v,n,p,t))):$i(d,n,p,t)}return r.length&&n.issues.push({code:"unrecognized_keys",keys:r,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const Jx=O("$ZodObject",(e,t)=>{if($e.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}const a=Nr(()=>Gu(t));ye(e._zod,"propValues",()=>{const s=t.shape,c={};for(const l in s){const p=s[l]._zod;if(p.values){c[l]??(c[l]=new Set);for(const d of p.values)c[l].add(d)}}return c});const i=Pi,o=t.catchall;let r;e._zod.parse=(s,c)=>{r??(r=a.value);const l=s.value;if(!i(l))return s.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),s;s.value={};const p=[],d=r.shape;for(const v of r.keys){const u=d[v]._zod.run({value:l[v],issues:[]},c);u instanceof Promise?p.push(u.then(h=>$i(h,s,v,l))):$i(u,s,v,l)}return o?Yu(p,l,s,c,a.value,e):p.length?Promise.all(p).then(()=>s):s}}),Kx=O("$ZodObjectJIT",(e,t)=>{Jx.init(e,t);const n=e._zod.parse,a=Nr(()=>Gu(t)),i=d=>{const v=new ix(["shape","payload","ctx"]),u=a.value,h=_=>{const A=Tu(_);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};v.write("const input = payload.value;");const f=Object.create(null);let T=0;for(const _ of u.keys)f[_]=`key_${T++}`;v.write("const newResult = {};");for(const _ of u.keys){const A=f[_],z=Tu(_);v.write(`const ${A} = ${h(_)};`),v.write(` if (${A}.issues.length) { payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ ...iss, @@ -28,4 +28,4 @@ newResult[${z}] = ${A}.value; } - `)}v.write("payload.value = newResult;"),v.write("return payload;");const w=v.compile();return(_,A)=>w(d,_,A)};let o;const r=Pi,s=!Pu.jitless,c=s&&ab.value,l=t.catchall;let p;e._zod.parse=(d,v)=>{p??(p=a.value);const u=d.value;return r(u)?s&&c&&v?.async===!1&&v.jitless!==!0?(o||(o=i(t.shape)),d=o(d,v),l?Yu([],u,d,v,p,e):d):n(d,v):(d.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),d)}});function Qu(e,t,n,a){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!ra(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(r=>Cn(r,a,An())))}),t)}const qx=O("$ZodUnion",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ye(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ye(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ye(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Fr(o.source)).join("|")})$`)}});const n=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return a(i,o);let r=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:i.value,issues:[]},o);if(l instanceof Promise)s.push(l),r=!0;else{if(l.issues.length===0)return l;s.push(l)}}return r?Promise.all(s).then(c=>Qu(c,i,e,o)):Qu(s,i,e,o)}}),Bx=O("$ZodIntersection",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},a),r=t.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||r instanceof Promise?Promise.all([o,r]).then(([s,c])=>Xu(n,s,c)):Xu(n,o,r)}});function Zr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Da(e)&&Da(t)){const n=Object.keys(t),a=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of a){const r=Zr(e[o],t[o]);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};i[o]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let a=0;a{$e.init(e,t);const n=eb(t.entries),a=new Set(n);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.filter(i=>ib.has(typeof i)).map(i=>typeof i=="string"?Ci(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const r=i.value;return a.has(r)||i.issues.push({code:"invalid_value",values:n,input:r,inst:e}),i}}),Wx=O("$ZodTransform",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);const i=t.transform(n.value,n);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new oa;return n.value=i,n}});function ed(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Vx=O("$ZodOptional",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Fr(n.source)})?$`):void 0}),e._zod.parse=(n,a)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>ed(o,n.value)):ed(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,a)}}),Jx=O("$ZodNullable",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Fr(n.source)}|null)$`):void 0}),ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,a)=>n.value===null?n:t.innerType._zod.run(n,a)}),Kx=O("$ZodDefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>td(o,t)):td(i,t)}});function td(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Hx=O("$ZodPrefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>(a.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,a))}),Gx=O("$ZodNonOptional",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,a)=>{const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>nd(o,e)):nd(i,e)}});function nd(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Yx=O("$ZodCatch",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(r=>Cn(r,a,An()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Cn(o,a,An()))},input:n.value}),n.issues=[]),n)}}),Qx=O("$ZodPipe",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>t.in._zod.values),ye(e._zod,"optin",()=>t.in._zod.optin),ye(e._zod,"optout",()=>t.out._zod.optout),ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,a)=>{if(a.direction==="backward"){const o=t.out._zod.run(n,a);return o instanceof Promise?o.then(r=>Ni(r,t.in,a)):Ni(o,t.in,a)}const i=t.in._zod.run(n,a);return i instanceof Promise?i.then(o=>Ni(o,t.out,a)):Ni(i,t.out,a)}});function Ni(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Xx=O("$ZodReadonly",(e,t)=>{$e.init(e,t),ye(e._zod,"propValues",()=>t.innerType._zod.propValues),ye(e._zod,"values",()=>t.innerType._zod.values),ye(e._zod,"optin",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),ye(e._zod,"optout",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(ad):ad(i)}});function ad(e){return e.value=Object.freeze(e.value),e}const ey=O("$ZodCustom",(e,t)=>{lt.init(e,t),$e.init(e,t),e._zod.parse=(n,a)=>n,e._zod.check=n=>{const a=n.value,i=t.fn(a);if(i instanceof Promise)return i.then(o=>id(o,n,a,e));id(i,n,a,e)}});function id(e,t,n,a){if(!e){const i={code:"custom",input:n,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),t.issues.push(Ra(i))}}var od;class ty{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const a=n[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const a={...this.get(n)??{}};delete a.id;const i={...a,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ny(){return new ty}(od=globalThis).__zod_globalRegistry??(od.__zod_globalRegistry=ny());const Fi=globalThis.__zod_globalRegistry;function ay(e,t){return new e({type:"string",...K(t)})}function iy(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...K(t)})}function rd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...K(t)})}function oy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...K(t)})}function ry(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(t)})}function sy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(t)})}function cy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(t)})}function ly(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...K(t)})}function py(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...K(t)})}function uy(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(t)})}function dy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...K(t)})}function fy(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(t)})}function my(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...K(t)})}function vy(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...K(t)})}function hy(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(t)})}function gy(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(t)})}function by(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(t)})}function xy(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(t)})}function yy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(t)})}function wy(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...K(t)})}function _y(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...K(t)})}function ky(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...K(t)})}function jy(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...K(t)})}function Sy(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(t)})}function Ey(e,t){return new e({type:"string",format:"date",check:"string_format",...K(t)})}function Oy(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...K(t)})}function zy(e,t){return new e({type:"string",format:"duration",check:"string_format",...K(t)})}function Ay(e,t){return new e({type:"number",checks:[],...K(t)})}function Iy(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...K(t)})}function Py(e){return new e({type:"unknown"})}function Cy(e,t){return new e({type:"never",...K(t)})}function sd(e,t){return new qu({check:"less_than",...K(t),value:e,inclusive:!1})}function Wr(e,t){return new qu({check:"less_than",...K(t),value:e,inclusive:!0})}function cd(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!1})}function Vr(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!0})}function ld(e,t){return new Fb({check:"multiple_of",...K(t),value:e})}function pd(e,t){return new Ub({check:"max_length",...K(t),maximum:e})}function Li(e,t){return new qb({check:"min_length",...K(t),minimum:e})}function ud(e,t){return new Bb({check:"length_equals",...K(t),length:e})}function Ty(e,t){return new Zb({check:"string_format",format:"regex",...K(t),pattern:e})}function My(e){return new Wb({check:"string_format",format:"lowercase",...K(e)})}function Dy(e){return new Vb({check:"string_format",format:"uppercase",...K(e)})}function Ry(e,t){return new Jb({check:"string_format",format:"includes",...K(t),includes:e})}function $y(e,t){return new Kb({check:"string_format",format:"starts_with",...K(t),prefix:e})}function Ny(e,t){return new Hb({check:"string_format",format:"ends_with",...K(t),suffix:e})}function sa(e){return new Gb({check:"overwrite",tx:e})}function Fy(e){return sa(t=>t.normalize(e))}function Ly(){return sa(e=>e.trim())}function Uy(){return sa(e=>e.toLowerCase())}function qy(){return sa(e=>e.toUpperCase())}function By(){return sa(e=>nb(e))}function Zy(e,t,n){return new e({type:"array",element:t,...K(n)})}function Wy(e,t,n){return new e({type:"custom",check:"custom",fn:t,...K(n)})}function Vy(e){const t=Jy(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(Ra(a,n.value,t._zod.def));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Ra(i))}},e(n.value,n)));return t}function Jy(e,t){const n=new lt({check:"custom",...K(t)});return n._zod.check=e,n}const Ky=O("ZodISODateTime",(e,t)=>{_x.init(e,t),Ae.init(e,t)});function Hy(e){return Sy(Ky,e)}const Gy=O("ZodISODate",(e,t)=>{kx.init(e,t),Ae.init(e,t)});function Yy(e){return Ey(Gy,e)}const Qy=O("ZodISOTime",(e,t)=>{jx.init(e,t),Ae.init(e,t)});function Xy(e){return Oy(Qy,e)}const ew=O("ZodISODuration",(e,t)=>{Sx.init(e,t),Ae.init(e,t)});function tw(e){return zy(ew,e)}const nw=(e,t)=>{Wu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Xb(e,n)},flatten:{value:n=>Qb(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Rr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Rr,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=O("ZodError",nw,{Parent:Error}),aw=Ur(kt),iw=qr(kt),ow=Di(kt),rw=Ri(kt),sw=nx(kt),cw=ax(kt),lw=ix(kt),pw=ox(kt),uw=rx(kt),dw=sx(kt),fw=cx(kt),mw=lx(kt),qe=O("ZodType",(e,t)=>($e.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Pn(t,{checks:[...t.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(n,a)=>gn(e,n,a),e.brand=()=>e,e.register=(n,a)=>(n.add(e,a),e),e.parse=(n,a)=>aw(e,n,a,{callee:e.parse}),e.safeParse=(n,a)=>ow(e,n,a),e.parseAsync=async(n,a)=>iw(e,n,a,{callee:e.parseAsync}),e.safeParseAsync=async(n,a)=>rw(e,n,a),e.spa=e.safeParseAsync,e.encode=(n,a)=>sw(e,n,a),e.decode=(n,a)=>cw(e,n,a),e.encodeAsync=async(n,a)=>lw(e,n,a),e.decodeAsync=async(n,a)=>pw(e,n,a),e.safeEncode=(n,a)=>uw(e,n,a),e.safeDecode=(n,a)=>dw(e,n,a),e.safeEncodeAsync=async(n,a)=>fw(e,n,a),e.safeDecodeAsync=async(n,a)=>mw(e,n,a),e.refine=(n,a)=>e.check(r_(n,a)),e.superRefine=n=>e.check(s_(n)),e.overwrite=n=>e.check(sa(n)),e.optional=()=>bd(e),e.nullable=()=>xd(e),e.nullish=()=>bd(xd(e)),e.nonoptional=n=>Xw(e,n),e.array=()=>Nw(e),e.or=n=>qw([e,n]),e.and=n=>Zw(e,n),e.transform=n=>wd(e,Jw(n)),e.default=n=>Gw(e,n),e.prefault=n=>Qw(e,n),e.catch=n=>t_(e,n),e.pipe=n=>wd(e,n),e.readonly=()=>i_(e),e.describe=n=>{const a=e.clone();return Fi.add(a,{description:n}),a},Object.defineProperty(e,"description",{get(){var n;return(n=Fi.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fi.get(e);const a=e.clone();return Fi.add(a,n[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),dd=O("_ZodString",(e,t)=>{Br.init(e,t),qe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...a)=>e.check(Ty(...a)),e.includes=(...a)=>e.check(Ry(...a)),e.startsWith=(...a)=>e.check($y(...a)),e.endsWith=(...a)=>e.check(Ny(...a)),e.min=(...a)=>e.check(Li(...a)),e.max=(...a)=>e.check(pd(...a)),e.length=(...a)=>e.check(ud(...a)),e.nonempty=(...a)=>e.check(Li(1,...a)),e.lowercase=a=>e.check(My(a)),e.uppercase=a=>e.check(Dy(a)),e.trim=()=>e.check(Ly()),e.normalize=(...a)=>e.check(Fy(...a)),e.toLowerCase=()=>e.check(Uy()),e.toUpperCase=()=>e.check(qy()),e.slugify=()=>e.check(By())}),vw=O("ZodString",(e,t)=>{Br.init(e,t),dd.init(e,t),e.email=n=>e.check(iy(hw,n)),e.url=n=>e.check(ly(gw,n)),e.jwt=n=>e.check(jy(Cw,n)),e.emoji=n=>e.check(py(bw,n)),e.guid=n=>e.check(rd(fd,n)),e.uuid=n=>e.check(oy(qi,n)),e.uuidv4=n=>e.check(ry(qi,n)),e.uuidv6=n=>e.check(sy(qi,n)),e.uuidv7=n=>e.check(cy(qi,n)),e.nanoid=n=>e.check(uy(xw,n)),e.guid=n=>e.check(rd(fd,n)),e.cuid=n=>e.check(dy(yw,n)),e.cuid2=n=>e.check(fy(ww,n)),e.ulid=n=>e.check(my(_w,n)),e.base64=n=>e.check(wy(Aw,n)),e.base64url=n=>e.check(_y(Iw,n)),e.xid=n=>e.check(vy(kw,n)),e.ksuid=n=>e.check(hy(jw,n)),e.ipv4=n=>e.check(gy(Sw,n)),e.ipv6=n=>e.check(by(Ew,n)),e.cidrv4=n=>e.check(xy(Ow,n)),e.cidrv6=n=>e.check(yy(zw,n)),e.e164=n=>e.check(ky(Pw,n)),e.datetime=n=>e.check(Hy(n)),e.date=n=>e.check(Yy(n)),e.time=n=>e.check(Xy(n)),e.duration=n=>e.check(tw(n))});function Ui(e){return ay(vw,e)}const Ae=O("ZodStringFormat",(e,t)=>{Ee.init(e,t),dd.init(e,t)}),hw=O("ZodEmail",(e,t)=>{fx.init(e,t),Ae.init(e,t)}),fd=O("ZodGUID",(e,t)=>{ux.init(e,t),Ae.init(e,t)}),qi=O("ZodUUID",(e,t)=>{dx.init(e,t),Ae.init(e,t)}),gw=O("ZodURL",(e,t)=>{mx.init(e,t),Ae.init(e,t)}),bw=O("ZodEmoji",(e,t)=>{vx.init(e,t),Ae.init(e,t)}),xw=O("ZodNanoID",(e,t)=>{hx.init(e,t),Ae.init(e,t)}),yw=O("ZodCUID",(e,t)=>{gx.init(e,t),Ae.init(e,t)}),ww=O("ZodCUID2",(e,t)=>{bx.init(e,t),Ae.init(e,t)}),_w=O("ZodULID",(e,t)=>{xx.init(e,t),Ae.init(e,t)}),kw=O("ZodXID",(e,t)=>{yx.init(e,t),Ae.init(e,t)}),jw=O("ZodKSUID",(e,t)=>{wx.init(e,t),Ae.init(e,t)}),Sw=O("ZodIPv4",(e,t)=>{Ex.init(e,t),Ae.init(e,t)}),Ew=O("ZodIPv6",(e,t)=>{Ox.init(e,t),Ae.init(e,t)}),Ow=O("ZodCIDRv4",(e,t)=>{zx.init(e,t),Ae.init(e,t)}),zw=O("ZodCIDRv6",(e,t)=>{Ax.init(e,t),Ae.init(e,t)}),Aw=O("ZodBase64",(e,t)=>{Ix.init(e,t),Ae.init(e,t)}),Iw=O("ZodBase64URL",(e,t)=>{Cx.init(e,t),Ae.init(e,t)}),Pw=O("ZodE164",(e,t)=>{Tx.init(e,t),Ae.init(e,t)}),Cw=O("ZodJWT",(e,t)=>{Dx.init(e,t),Ae.init(e,t)}),md=O("ZodNumber",(e,t)=>{Ku.init(e,t),qe.init(e,t),e.gt=(a,i)=>e.check(cd(a,i)),e.gte=(a,i)=>e.check(Vr(a,i)),e.min=(a,i)=>e.check(Vr(a,i)),e.lt=(a,i)=>e.check(sd(a,i)),e.lte=(a,i)=>e.check(Wr(a,i)),e.max=(a,i)=>e.check(Wr(a,i)),e.int=a=>e.check(vd(a)),e.safe=a=>e.check(vd(a)),e.positive=a=>e.check(cd(0,a)),e.nonnegative=a=>e.check(Vr(0,a)),e.negative=a=>e.check(sd(0,a)),e.nonpositive=a=>e.check(Wr(0,a)),e.multipleOf=(a,i)=>e.check(ld(a,i)),e.step=(a,i)=>e.check(ld(a,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Jr(e){return Ay(md,e)}const Tw=O("ZodNumberFormat",(e,t)=>{Rx.init(e,t),md.init(e,t)});function vd(e){return Iy(Tw,e)}const Mw=O("ZodUnknown",(e,t)=>{$x.init(e,t),qe.init(e,t)});function hd(){return Py(Mw)}const Dw=O("ZodNever",(e,t)=>{Nx.init(e,t),qe.init(e,t)});function Rw(e){return Cy(Dw,e)}const $w=O("ZodArray",(e,t)=>{Fx.init(e,t),qe.init(e,t),e.element=t.element,e.min=(n,a)=>e.check(Li(n,a)),e.nonempty=n=>e.check(Li(1,n)),e.max=(n,a)=>e.check(pd(n,a)),e.length=(n,a)=>e.check(ud(n,a)),e.unwrap=()=>e.element});function Nw(e,t){return Zy($w,e,t)}const Fw=O("ZodObject",(e,t)=>{Ux.init(e,t),qe.init(e,t),ye(e,"shape",()=>t.shape),e.keyof=()=>Ww(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hd()}),e.loose=()=>e.clone({...e._zod.def,catchall:hd()}),e.strict=()=>e.clone({...e._zod.def,catchall:Rw()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>lb(e,n),e.safeExtend=n=>pb(e,n),e.merge=n=>ub(e,n),e.pick=n=>sb(e,n),e.omit=n=>cb(e,n),e.partial=(...n)=>db(gd,e,n[0]),e.required=(...n)=>fb(yd,e,n[0])});function Lw(e,t){const n={type:"object",shape:e??{},...K(t)};return new Fw(n)}const Uw=O("ZodUnion",(e,t)=>{qx.init(e,t),qe.init(e,t),e.options=t.options});function qw(e,t){return new Uw({type:"union",options:e,...K(t)})}const Bw=O("ZodIntersection",(e,t)=>{Bx.init(e,t),qe.init(e,t)});function Zw(e,t){return new Bw({type:"intersection",left:e,right:t})}const Kr=O("ZodEnum",(e,t)=>{Zx.init(e,t),qe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(a,i)=>{const o={};for(const r of a)if(n.has(r))o[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Kr({...t,checks:[],...K(i),entries:o})},e.exclude=(a,i)=>{const o={...t.entries};for(const r of a)if(n.has(r))delete o[r];else throw new Error(`Key ${r} not found in enum`);return new Kr({...t,checks:[],...K(i),entries:o})}});function Ww(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Kr({type:"enum",entries:n,...K(t)})}const Vw=O("ZodTransform",(e,t)=>{Wx.init(e,t),qe.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ra(o,n.value,t));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(Ra(r))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Jw(e){return new Vw({type:"transform",transform:e})}const gd=O("ZodOptional",(e,t)=>{Vx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bd(e){return new gd({type:"optional",innerType:e})}const Kw=O("ZodNullable",(e,t)=>{Jx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xd(e){return new Kw({type:"nullable",innerType:e})}const Hw=O("ZodDefault",(e,t)=>{Kx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gw(e,t){return new Hw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const Yw=O("ZodPrefault",(e,t)=>{Hx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qw(e,t){return new Yw({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const yd=O("ZodNonOptional",(e,t)=>{Gx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Xw(e,t){return new yd({type:"nonoptional",innerType:e,...K(t)})}const e_=O("ZodCatch",(e,t)=>{Yx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function t_(e,t){return new e_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const n_=O("ZodPipe",(e,t)=>{Qx.init(e,t),qe.init(e,t),e.in=t.in,e.out=t.out});function wd(e,t){return new n_({type:"pipe",in:e,out:t})}const a_=O("ZodReadonly",(e,t)=>{Xx.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i_(e){return new a_({type:"readonly",innerType:e})}const o_=O("ZodCustom",(e,t)=>{ey.init(e,t),qe.init(e,t)});function r_(e,t={}){return Wy(o_,e,t)}function s_(e){return Vy(e)}Lw({title:Ui(),changed:Jr().optional(),created:Jr().optional(),type:Ui(),drupal_internal__nid:Jr(),id:Ui(),langcode:Ui()});var c_=Object.defineProperty,l_=(e,t,n)=>t in e?c_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t,n)=>l_(e,typeof t!="symbol"?t+"":t,n);class kd extends Error{constructor(t,n,a){super(t),_d(this,"status"),_d(this,"body"),this.name="TideApiError",this.status=n,this.body=a}}let Tn,Hr;const p_=!1;let jd="api/v1";const u_=e=>{(!e||p_)&&(e=window.location.origin),Hr=e.endsWith("/")?e:`${e}/`,Tn=new Xg(Hr,"",{apiPrefix:jd})},d_=async()=>{try{const e=Tn.createQueryBuilder();return e.addInclude(["field_searchable_content_types"]),(await Tn.getTideCollection("taxonomy_term--searchable_fields",{query:e})).map(t=>({label:t.name,value:t.field_elasticsearch_id,machineName:t.field_taxonomy_machine_name,elasticField:t.field_elasticsearch_field,contentTypes:t.field_searchable_content_types?.map(n=>n.field_machine_name)||[]}))}catch(e){return console.error("Error getting searchable taxonomies:",e),[]}},f_=async(e,t)=>{try{const n=Tn.createQueryBuilder();return n.addFilter("name",t,"CONTAINS"),(await Tn.getTideCollection(`taxonomy_term--${e}`,{query:n})).map(a=>({label:a.name,value:a.drupal_internal__tid}))}catch(n){return console.error("Error getting taxonomy terms:",n),[]}},m_=async()=>{try{return(await Tn.getTideCollection("taxonomy_term--searchable_content_types")).map(e=>({label:e.name,value:e.field_machine_name}))}catch(e){return console.error("Error getting content type taxonomy:",e),[]}},v_=async e=>{try{const{response:t,error:n}=await Tn.fetch(`${Hr}${jd}/content-collection/node-autocomplete?q=${e}`,{credentials:"include"});return n||!t.ok?(console.error("Error searching for content:",n),[]):(await t.json()).map(a=>({label:a.label,value:a.id}))}catch(t){return console.error("Error searching for content:",t),[]}},h_=Re({__name:"SourceSection",setup(e){const{getField:t}=tn(),n=It([]);return Jn(async()=>{n.value=await m_()}),(a,i)=>(V(),Ue(yi,{title:"Content Source"},{default:De(()=>[ve(hn,{id:"source",type:"legend"},{default:De(({id:o,value:r,update:s})=>[ve(ph,{id:o,options:[{id:"auto",label:"Automatic",description:"Display an automatic feed of content",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"},{id:"manual",label:"Manual",description:"Manually select specific content items",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"}],value:r,required:!0,onChange:c=>s(c)},null,8,["id","value","onChange"])]),_:1}),un(t)("source")==="auto"?(V(),Ue(hn,{key:0,id:"contentType",label:"Content type",description:"Choose the type of content you would like to display",required:!0},{default:De(({id:o,value:r,update:s})=>[ve(dl,{id:o,options:n.value,value:r,required:!0,onChange:c=>s(c)},null,8,["id","options","value","onChange"])]),_:1})):Te("",!0)]),_:1}))}});function g_(e,t){return Ps()?(_f(e,t),!0):!1}const b_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function x_(e){return Vo()}function y_(e,t=!0,n){x_()?Jn(e,n):t?e():Po(e)}const w_=b_?window.document:void 0;function __(e){var t;const n=Ao(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Zt(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function S_(e,t){if(e==null)return{};var n=j_(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var E_="1.15.6";function rn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var sn=rn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$a=rn(/Edge/i),Ed=rn(/firefox/i),Na=rn(/safari/i)&&!rn(/chrome/i)&&!rn(/android/i),Gr=rn(/iP(ad|od|hone)/i),Od=rn(/chrome/i)&&rn(/android/i),zd={capture:!1,passive:!1};function pe(e,t,n){e.addEventListener(t,n,!sn&&zd)}function ce(e,t,n){e.removeEventListener(t,n,!sn&&zd)}function Zi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ad(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pt(e,t,n,a){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Zi(e,t):Zi(e,t))||a&&e===n)return e;if(e===n)break}while(e=Ad(e))}return null}var Id=/\s+/g;function vt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(Id," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(Id," ")}}function G(e,t,n){var a=e&&e.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=n+(typeof n=="string"?"":"px")}}function ca(e,t){var n="";if(typeof e=="string")n=e;else do{var a=G(e,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Pd(e,t,n){if(e){var a=e.getElementsByTagName(t),i=0,o=a.length;if(n)for(;i=o,!r)return a;if(a===Wt())break;a=bn(a,!1)}return!1}function la(e,t,n,a){for(var i=0,o=0,r=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,i=S_(n,M_);La.pluginEvent.bind(Y)(e,t,Zt({dragEl:N,parentEl:Me,ghostEl:ne,rootEl:Oe,nextEl:Mn,lastDownEl:Wi,cloneEl:Ie,cloneHidden:xn,dragStarted:qa,putSortable:Je,activeSortable:Y.active,originalEvent:a,oldIndex:ua,oldDraggableIndex:Ua,newIndex:ht,newDraggableIndex:yn,hideGhostForTarget:Zd,unhideGhostForTarget:Wd,cloneNowHidden:function(){xn=!0},cloneNowShown:function(){xn=!1},dispatchSortableEvent:function(o){it({sortable:t,name:o,originalEvent:a})}},i))};function it(e){T_(Zt({putSortable:Je,cloneEl:Ie,targetEl:N,rootEl:Oe,oldIndex:ua,oldDraggableIndex:Ua,newIndex:ht,newDraggableIndex:yn},e))}var N,Me,ne,Oe,Mn,Wi,Ie,xn,ua,ht,Ua,yn,Vi,Je,da=!1,Ji=!1,Ki=[],Dn,Ct,es,ts,Nd,Fd,qa,fa,Ba,Za=!1,Hi=!1,Gi,Xe,ns=[],as=!1,Yi=[],Qi=typeof document<"u",Xi=Gr,Ld=$a||sn?"cssFloat":"float",D_=Qi&&!Od&&!Gr&&"draggable"in document.createElement("div"),Ud=(function(){if(Qi){if(sn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),qd=function(e,t){var n=G(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=la(e,0,t),o=la(e,1,t),r=i&&G(i),s=o&&G(o),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Ne(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ne(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===p)?"vertical":"horizontal"}return i&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=a&&n[Ld]==="none"||o&&n[Ld]==="none"&&c+l>a)?"vertical":"horizontal"},R_=function(e,t,n){var a=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,r=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return a===r||i===s||a+o/2===r+c/2},$_=function(e,t){var n;return Ki.some(function(a){var i=a[pt].options.emptyInsertThreshold;if(!(!i||Yr(a))){var o=Ne(a),r=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(r&&s)return n=a}}),n},Bd=function(e){function t(i,o){return function(r,s,c,l){var p=r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name;if(i==null&&(o||p))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(r,s,c,l),o)(r,s,c,l);var d=(o?r:s).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var n={},a=e.group;(!a||Bi(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Zd=function(){!Ud&&ne&&G(ne,"display","none")},Wd=function(){!Ud&&ne&&G(ne,"display","")};Qi&&!Od&&document.addEventListener("click",function(e){if(Ji)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ji=!1,!1},!0);var Rn=function(e){if(N){e=e.touches?e.touches[0]:e;var t=$_(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[pt]._onDragOver(n)}}},N_=function(e){N&&N.parentNode[pt]._isOutsideThisEl(e.target)};function Y(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=on({},t),e[pt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qd(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,r){o.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Y.supportPointer!==!1&&"PointerEvent"in window&&(!Na||Gr),emptyInsertThreshold:5};La.initializePlugins(this,e,n);for(var a in n)!(a in t)&&(t[a]=n[a]);Bd(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:D_,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),Ki.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),on(this,I_())}Y.prototype={constructor:Y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(fa=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,N):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,i=a.preventOnFilter,o=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(r||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=a.filter;if(V_(n),!N&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Na&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Pt(s,a.draggable,n,!1),!(s&&s.animated)&&Wi!==s)){if(ua=jt(s),Ua=jt(s,a.draggable),typeof l=="function"){if(l.call(this,e,s,this)){it({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ut("filter",t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(",").some(function(p){if(p=Pt(c,p.trim(),n,!1),p)return it({sortable:t,rootEl:p,name:"filter",targetEl:s,fromEl:n,toEl:n}),ut("filter",t,{evt:e}),!0}),l)){i&&e.preventDefault();return}a.handle&&!Pt(c,a.handle,n,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,n){var a=this,i=a.el,o=a.options,r=i.ownerDocument,s;if(n&&!N&&n.parentNode===i){var c=Ne(n);if(Oe=i,N=n,Me=N.parentNode,Mn=N.nextSibling,Wi=n,Vi=o.group,Y.dragged=N,Dn={target:N,clientX:(t||e).clientX,clientY:(t||e).clientY},Nd=Dn.clientX-c.left,Fd=Dn.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,N.style["will-change"]="all",s=function(){if(ut("delayEnded",a,{evt:e}),Y.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Ed&&a.nativeDraggable&&(N.draggable=!0),a._triggerDragStart(e,t),it({sortable:a,name:"choose",originalEvent:e}),vt(N,o.chosenClass,!0)},o.ignore.split(",").forEach(function(l){Pd(N,l.trim(),is)}),pe(r,"dragover",Rn),pe(r,"mousemove",Rn),pe(r,"touchmove",Rn),o.supportPointer?(pe(r,"pointerup",a._onDrop),!this.nativeDraggable&&pe(r,"pointercancel",a._onDrop)):(pe(r,"mouseup",a._onDrop),pe(r,"touchend",a._onDrop),pe(r,"touchcancel",a._onDrop)),Ed&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),ut("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!($a||sn))){if(Y.eventCanceled){this._onDrop();return}o.supportPointer?(pe(r,"pointerup",a._disableDelayedDrag),pe(r,"pointercancel",a._disableDelayedDrag)):(pe(r,"mouseup",a._disableDelayedDrag),pe(r,"touchend",a._disableDelayedDrag),pe(r,"touchcancel",a._disableDelayedDrag)),pe(r,"mousemove",a._delayedDragTouchMoveHandler),pe(r,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&pe(r,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){N&&is(N),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ce(e,"mouseup",this._disableDelayedDrag),ce(e,"touchend",this._disableDelayedDrag),ce(e,"touchcancel",this._disableDelayedDrag),ce(e,"pointerup",this._disableDelayedDrag),ce(e,"pointercancel",this._disableDelayedDrag),ce(e,"mousemove",this._delayedDragTouchMoveHandler),ce(e,"touchmove",this._delayedDragTouchMoveHandler),ce(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):t?pe(document,"touchmove",this._onTouchMove):pe(document,"mousemove",this._onTouchMove):(pe(N,"dragend",this),pe(Oe,"dragstart",this._onDragStart));try{document.selection?to(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(da=!1,Oe&&N){ut("dragStarted",this,{evt:t}),this.nativeDraggable&&pe(document,"dragover",N_);var n=this.options;!e&&vt(N,n.dragClass,!1),vt(N,n.ghostClass,!0),Y.active=this,e&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ct){this._lastX=Ct.clientX,this._lastY=Ct.clientY,Zd();for(var e=document.elementFromPoint(Ct.clientX,Ct.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ct.clientX,Ct.clientY),e!==t);)t=e;if(N.parentNode[pt]._isOutsideThisEl(e),t)do{if(t[pt]){var n=void 0;if(n=t[pt]._onDragOver({clientX:Ct.clientX,clientY:Ct.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=Ad(t));Wd()}},_onTouchMove:function(e){if(Dn){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ne&&ca(ne,!0),r=ne&&o&&o.a,s=ne&&o&&o.d,c=Xi&&Xe&&Td(Xe),l=(i.clientX-Dn.clientX+a.x)/(r||1)+(c?c[0]-ns[0]:0)/(r||1),p=(i.clientY-Dn.clientY+a.y)/(s||1)+(c?c[1]-ns[1]:0)/(s||1);if(!Y.active&&!da){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(it({rootEl:Me,name:"add",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"remove",toEl:Me,originalEvent:e}),it({rootEl:Me,name:"sort",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Je&&Je.save()):ht!==ua&&ht>=0&&(it({sortable:this,name:"update",toEl:Me,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Y.active&&((ht==null||ht===-1)&&(ht=ua,yn=Ua),it({sortable:this,name:"end",toEl:Me,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ut("nulling",this),Oe=N=Me=ne=Mn=Ie=Wi=xn=Dn=Ct=qa=ht=yn=ua=Ua=fa=Ba=Je=Vi=Y.dragged=Y.ghost=Y.clone=Y.active=null,Yi.forEach(function(e){e.checked=!0}),Yi.length=es=ts=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":N&&(this._onDragOver(e),F_(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,i=n.length,o=this.options;ai.right+o||e.clientY>a.bottom&&e.clientX>a.left:e.clientY>i.bottom+o||e.clientX>a.right&&e.clientY>a.top}function B_(e,t,n,a,i,o,r,s){var c=a?e.clientY:e.clientX,l=a?n.height:n.width,p=a?n.top:n.left,d=a?n.bottom:n.right,v=!1;if(!r){if(s&&Gip+l*o/2:cd-Gi)return-Ba}else if(c>p+l*(1-i)/2&&cd-l*o/2)?c>p+l/2?1:-1:0}function Z_(e){return jt(N){Kd(t,p.oldIndex,p.newIndex,p)}},s=()=>{const p=typeof e=="string"?i?.querySelector(e):__(e);!p||a!==void 0||(a=new Y(p,{...r,...o}))},c=()=>{a?.destroy(),a=void 0},l=(p,d)=>{if(d!==void 0)a?.option(p,d);else return a?.option(p)};return y_(s),g_(c),{stop:c,start:s,option:l}}function H_(e,t,n){const a=e.children[n];e.insertBefore(t,a)}function G_(e){e.parentNode&&e.parentNode.removeChild(e)}function Kd(e,t,n,a=null){a!=null&&(G_(a.item),H_(a.from,a.item,t));const i=Ze(e),o=i?[...Ao(e)]:Ao(e);if(n>=0&&n{o.splice(n,0,r),i&&(e.value=o)})}}const Y_=["disabled"],Hd=Re({__name:"TideButton",props:{variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("button",{type:"button",class:Ot(`tide-button tide-button--${e.variant} tide-button--${e.size}`),disabled:e.disabled},[Kn(t.$slots,"default")],10,Y_))}}),Q_={key:0,class:"tide-field-group__action"},X_=Re({__name:"TideFieldGroup",props:{repeatable:{type:Boolean,default:!1},repeatLabel:{default:"Add +"},sortable:{type:Boolean,default:!1},sortItems:{default:()=>[]}},emits:["add","sort"],setup(e,{emit:t}){const n=e,a=t,i=Gs(n.sortItems),o=lm("content");return n.sortable&&K_(o,i,{onUpdate:r=>{a("sort",r.newIndex,r.oldIndex)}}),(r,s)=>(V(),ie("div",{class:Ot({"tide-field-group":!0,"tide-field-group--repeatable":e.repeatable})},[_e("div",{ref_key:"content",ref:o,class:"tide-field-group__content"},[Kn(r.$slots,"default",{},void 0,!0)],512),e.repeatable?(V(),ie("div",Q_,[ve(Hd,{onClick:s[0]||(s[0]=c=>r.$emit("add"))},{default:De(()=>[Pa(st(e.repeatLabel),1)]),_:1})])):Te("",!0)],2))}}),Gd=nn(X_,[["__scopeId","data-v-787c34d8"]]),e0={class:Ot({"tide-dropdown-list__autocomplete":!0,"tide-form__element":!0})},t0={key:0,class:"tide-dropdown-list__tags"},n0={class:"tide-dropdown-list__tag-text"},a0=["tabindex","aria-label","onClick"],i0=["name","id","placeholder","aria-expanded","aria-controls","aria-activedescendant","disabled","required","onKeydown"],o0={key:2,class:"tide-dropdown-list__loading-icon",width:"18",height:"18",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},r0=["id"],s0={key:0,class:"tide-dropdown-list__menu-item tide-dropdown-list__menu-empty"},c0=["id","aria-selected","aria-current","onClick"],l0=Re({__name:"TideDropdown",props:{id:{},multiple:{type:Boolean,default:!0},options:{default:()=>[]},dynamic:{type:Boolean,default:!1},placeholder:{default:"Type to search..."},value:{},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},minQuery:{default:0}},emits:["change","search"],setup(e,{emit:t}){const n=e,a=t,i=It(""),o=It(!1),r=It(null);fn(i,()=>{a("search",i.value),!i.value||!l.value.length?w(null):n.dynamic&&i.value.lengthn.loading,(j,U)=>{!j&&U&&n.dynamic&&B()});const s=ct(()=>n.value?Array.isArray(n.value)?n.value:[n.value]:[]),c=ct(()=>n.multiple||!s.value.length),l=ct(()=>n.dynamic||!i.value?n.options:n.options.filter(j=>j.label.toLowerCase().includes(i.value.toLowerCase()))),p=j=>r.value?j.value===r.value?.value:!1,d=j=>!!s.value.find(U=>U.value===j.value);function v(j){a("change",n.multiple?[...s.value,j]:j),n.multiple||(i.value="",S())}function u(j){a("change",n.multiple?s.value.filter(U=>U.value!==j.value):null)}function h(){!i.value&&s.value.length&&a("change",s.value.slice(0,-1))}function f(){r.value?T(r.value):i.value||B()}function T(j){j&&(s.value.find(U=>U.value===j.value)?u(j):v(j))}function w(j){r.value=j}function _(){return l.value.findIndex(j=>j.value===r.value?.value)}function A(){if(!l.value.length)return;const j=_();j0?w(l.value[j-1]):w(l.value[l.value.length-1])}function B(){n.dynamic&&i.value.length=n.minQuery)&&B()}const M=j=>{j.target?.closest(".tide-dropdown-list")||S()};return Jn(()=>window.addEventListener("pointerdown",M)),Mo(()=>window.removeEventListener("pointerdown",M)),(j,U)=>(V(),ie("div",{class:Ot({"tide-dropdown-list":!0,"tide-dropdown-list--single":!e.multiple})},[_e("div",e0,[s.value.length?(V(),ie("div",t0,[(V(!0),ie(Ce,null,mn(s.value,Z=>(V(),ie("span",{key:Z.value,class:"tide-dropdown-list__tag"},[_e("span",n0,st(Z.label),1),_e("button",{type:"button",tabindex:e.multiple?-1:0,class:"tide-dropdown-list__tag-remove","aria-label":`Remove ${Z.label}`,onClick:ee=>T(Z)},[...U[1]||(U[1]=[_e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),_e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,a0)]))),128))])):Te("",!0),c.value?nm((V(),ie("input",{key:1,name:e.id,id:e.id,type:"text",class:"tide-dropdown-list__input",autocomplete:"off",placeholder:e.placeholder,role:"combobox","aria-expanded":o.value,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":o.value?`${e.id}-menu`:void 0,"aria-activedescendant":o.value&&r.value?`${e.id}-menu-${r.value}`:void 0,disabled:e.disabled,required:e.required,"onUpdate:modelValue":U[0]||(U[0]=Z=>i.value=Z),onFocus:E,onKeydown:[Qn(S,["tab"]),Qn(S,["esc"]),Qn(Qo(z,["prevent"]),["up"]),Qn(Qo(A,["prevent"]),["down"]),Qn(h,["delete"]),Qn(Qo(f,["prevent"]),["enter"])]},null,40,i0)),[[Iv,i.value]]):Te("",!0),e.loading?(V(),ie("svg",o0,[...U[2]||(U[2]=[_e("path",{d:"M10,1V3a7,7,0,1,1-7,7H1a9,9,0,1,0,9-9Z"},null,-1)])])):Te("",!0),o.value?(V(),ie("ul",{key:3,id:`${e.id}-menu`,role:"listbox",tabindex:"-1","aria-multiselectable":"true",class:"tide-dropdown-list__menu"},[!l.value.length&&i.value&&!e.loading?(V(),ie("li",s0,[...U[3]||(U[3]=[_e("span",null,"No matching results",-1)])])):Te("",!0),(V(!0),ie(Ce,null,mn(l.value,Z=>(V(),ie("li",{key:Z.value,id:`${e.id}-menu-${Z.value}`,role:"option",class:"tide-dropdown-list__menu-item","aria-selected":d(Z),"aria-current":p(Z),onClick:ee=>T(Z)},st(Z.label),9,c0))),128))],8,r0)):Te("",!0)])],2))}}),Yd=nn(l0,[["__scopeId","data-v-5ecc9ddc"]]),Qd=(e="{}")=>{let t={};if(!e)return t;try{t=JSON.parse(e)}catch(n){console.error("Error parsing JSON value:",n)}return t},p0=e=>{let t="{}";try{t=JSON.stringify(e)}catch(n){console.error("Error stringify-ing value:",n)}return t},Xd=(e,t=300)=>{let n;return(...a)=>{clearTimeout(n),n=setTimeout(()=>e(...a),t)}},u0=Re({__name:"FiltersSectionTerms",props:{id:{},value:{default:()=>[]},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=tn(),r=It([]),s=It(!0),c=It(!1),l=ct(()=>{if(!n.value.length)return[];const v=i("termMap");return n.value.map(u=>({label:v[u]||"Not found",value:u}))}),p=v=>{const u=v.reduce((h,f)=>({...h,[f.value]:f.label}),{});o("termMap",u,!0),a("change",v.map(h=>h.value))},d=Xd(async v=>{n.source&&v.length>=2?(c.value=!0,r.value=await f_(n.source,v)):r.value=[],c.value=!1});return fn(()=>n.source,async v=>{s.value=!v,r.value=[]}),(v,u)=>(V(),Ue(Yd,{id:e.id,value:l.value,options:r.value,disabled:s.value,loading:c.value,dynamic:!0,"min-query":2,onChange:p,onSearch:un(d)},null,8,["id","value","options","disabled","loading","onSearch"]))}}),d0={key:0,class:"tide-field-group__sort","aria-label":"Drag to sort"},f0={class:"tide-field-group-row__content"},m0={key:1,class:"tide-field-group-row__action"},v0=Re({__name:"TideFieldGroupRow",props:{sortable:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},removeLabel:{default:"Remove row"}},emits:["remove"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot({"tide-field-group-row":!0,"tide-field-group-row--sortable":e.sortable,"tide-field-group-row--removeable":e.removeable})},[e.sortable?(V(),ie("div",d0,[...n[1]||(n[1]=[_e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("path",{d:"M5.2 9l-3 3 3 3M9 5.2l3-3 3 3M15 18.9l-3 3-3-3M18.9 9l3 3-3 3M3.3 12h17.4M12 3.2v17.6"})],-1)])])):Te("",!0),_e("div",f0,[Kn(t.$slots,"default",{},void 0,!0)]),e.removeable?(V(),ie("div",m0,[ve(Hd,{size:"medium",class:"tide-field-group-row__action-button","aria-label":e.removeLabel,onClick:n[0]||(n[0]=a=>t.$emit("remove"))},{default:De(()=>[...n[2]||(n[2]=[Pa(" Remove ",-1)])]),_:1},8,["aria-label"])])):Te("",!0)],2))}}),ef=nn(v0,[["__scopeId","data-v-375ae602"]]),h0=Re({__name:"FiltersSection",setup(e){const{form:t,getField:n,setField:a}=tn(),i=It([]),o=ct(()=>{const p=n("filters");return p.length?p:[]}),r=()=>{a("filters",[...o.value,{}])},s=p=>{a("filters",o.value.filter((d,v)=>v!==p))},c=p=>i.value.find(d=>d.value===p)?.machineName,l=ct(()=>{const p=n("contentType");return i.value.filter(d=>d.contentTypes.length?d.contentTypes.includes(p):!0)});return fn(()=>t.contentType,p=>{const d=o.value.filter(v=>v.taxonomy?i.value.some(u=>u.value===v.taxonomy&&(!u.contentTypes.length||u.contentTypes.includes(p))):!0);d.length!==o.value.length&&a("filters",d)}),Jn(async()=>{i.value=await d_()}),(p,d)=>(V(),Ue(yi,{title:"Refine Content",description:"This section allows you to filter content to only the relevant items."},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add filter",onAdd:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(o.value,(v,u)=>(V(),Ue(ef,{key:`filters-${u}`,removeable:!0,"remove-label":"Remove filter",onRemove:h=>s(u)},{default:De(()=>[ve(hn,{id:"filters",index:u,scope:"tax",label:"Filter by",required:!0,description:"Select a taxonomy term to filter by"},{default:De(({id:h,value:f,update:T})=>[ve(dl,{id:h,required:!0,value:f?.taxonomy,options:l.value,onChange:w=>T({taxonomy:w},u)},null,8,["id","value","options","onChange"])]),_:2},1032,["index"]),ve(hn,{id:"filters",required:!0,index:u,scope:"terms",label:"Filter terms",description:"Show content with the selected terms"},{default:De(({id:h,value:f,update:T})=>[ve(u0,{id:h,value:f?.terms,source:c(f.taxonomy),onChange:w=>T({taxonomy:f.taxonomy,terms:w},u)},null,8,["id","value","source","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1})]),_:1}))}}),g0=Re({__name:"ManualSectionItem",props:{id:{},value:{},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=tn(),r=It([]),s=It(!1),c=ct(()=>{const d=i("contentMap");return n.value&&Object.keys(d).length?{label:d[n.value]||"Not found",value:n.value}:null}),l=d=>{const v=typeof d=="object"&&d!==null;v&&o("contentMap",{[d.value]:d.label},!0),a("change",v?d.value:"")},p=Xd(async d=>{d.length>=2?(s.value=!0,r.value=await v_(d)):r.value=[],s.value=!1});return(d,v)=>(V(),Ue(Yd,{id:e.id,value:c.value,options:r.value,loading:s.value,dynamic:!0,multiple:!1,required:!0,"min-query":2,onChange:l,onSearch:un(p)},null,8,["id","value","options","loading","onSearch"]))}}),b0=Re({__name:"ManualSection",setup(e){const{getField:t,setField:n}=tn(),a=ct(()=>t("manualItems")||[""]),i=()=>{n("manualItems",[...a.value,""])},o=s=>{n("manualItems",a.value.filter((c,l)=>l!==s))},r=(s,c)=>{const l=[...a.value];Kd(l,c,s),n("manualItems",l)};return(s,c)=>(V(),Ue(yi,{title:"Select Content",description:"Search for individual content items, add them to the list, then drag to reorder or remove as needed.",required:!0},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add content",sortable:!0,"sort-items":a.value,onAdd:i,onSort:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(a.value,(l,p)=>(V(),Ue(ef,{key:`manual-${l}-${p}`,removeable:!0,sortable:!0,"remove-label":"Remove content",onRemove:d=>o(p)},{default:De(()=>[ve(hn,{id:"manualItems",index:p,label:"Search content","hide-label":!0},{default:De(({id:d,value:v,update:u})=>[ve(g0,{id:d,value:v,onChange:h=>u(h,p)},null,8,["id","value","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1},8,["sort-items"])]),_:1}))}}),x0=["name","type","id","min","max","value","required"],y0=Re({__name:"TideInput",props:{id:{},type:{default:"text"},value:{default:void 0},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=o=>{let r=o.target.value;n.type==="number"&&(r=Number(r)),a("change",r)};return(o,r)=>(V(),ie("input",{name:e.id,type:e.type,id:e.id,min:e.min,max:e.max,value:e.value,required:e.required,class:"tide-input tide-form__element",onInput:i},null,40,x0))}}),w0={class:"tide-radio__label"},_0=["name","value","checked","required","onChange"],k0=Re({__name:"TideRadio",props:{id:{},options:{},value:{},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot(`tide-radio tide-radio--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("label",w0,[_e("input",{type:"radio",name:e.id,class:"tide-radio__input",value:a.value,checked:a.value===e.value,required:e.required,onChange:i=>t.$emit("change",a.value)},null,40,_0),_e("span",null,st(a.label),1)]))),256))],2))}}),j0=nn(k0,[["__scopeId","data-v-df50077b"]]),S0={class:"tide-checkbox__label"},E0=["name","value","checked","required","onChange"],O0=Re({__name:"TideCheckbox",props:{id:{},options:{},value:{type:[String,Boolean]},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=(o,r)=>{const s=n.options.length>1;a("change",s?o:!r)};return(o,r)=>(V(),ie("div",{class:Ot(`tide-checkbox tide-checkbox--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,s=>(V(),ie("label",S0,[_e("input",{type:"checkbox",name:e.id,class:"tide-checkbox__input",value:s.value,checked:s.value===e.value,required:e.required,onChange:c=>i(s.value,e.value)},null,40,E0),_e("span",null,st(s.label),1)]))),256))],2))}}),z0=nn(O0,[["__scopeId","data-v-3a00e669"]]),A0=Re({__name:"DisplaySection",setup(e){const{getField:t}=tn();return(n,a)=>(V(),Ue(yi,{title:"Display Options"},{default:De(()=>[ve(hn,{id:"displayType",type:"legend",label:"Display type",required:!0,description:"How would you like to display the content?"},{default:De(({id:i,value:o,update:r})=>[ve(j0,{id:i,display:"inline",options:[{value:"card",label:"Card"},{value:"list",label:"List"},{value:"carousel",label:"Carousel"}],value:o,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1}),un(t)("displayType")==="card"||un(t)("displayType")==="carousel"?(V(),Ue(hn,{key:0,id:"showImage",type:"legend",label:"Show images"},{default:De(({id:i,value:o,update:r})=>[ve(z0,{id:i,options:[{value:!0,label:"Would you like to display images?"}],value:o,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0),un(t)("source")==="auto"?(V(),Ue(hn,{key:1,id:"displayNumber",label:"Number of items",description:"How many items would you like display?",required:!0},{default:De(({id:i,value:o,update:r})=>[ve(y0,{id:i,type:"number",value:o,min:1,max:100,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0)]),_:1}))}}),I0=Re({__name:"ContentForm",setup(e){const{getField:t}=tn(),n=ct(()=>t("source")&&t("contentType")||t("source")==="manual"),a=ct(()=>t("source")==="manual"),i=ct(()=>t("source")==="auto");return(o,r)=>(V(),Ue(Bv,null,{default:De(()=>[ve(h_),n.value?(V(),ie(Ce,{key:0},[a.value?(V(),Ue(b0,{key:0})):Te("",!0),i.value?(V(),Ue(h0,{key:1})):Te("",!0),ve(A0)],64)):Te("",!0)]),_:1}))}}),P0={key:0,class:"tide-collection"},C0=Re({__name:"App",props:{index:{},form:{},config:{},baseUrl:{},update:{type:Function}},setup(e){const t=e,n=It(!1),{form:a}=tn({id:`tide-content-collection-${t.index}`,form:t.form,config:t.config});return Jn(()=>{u_(t.baseUrl),n.value=!0}),fn(a,i=>{t.update(i)},{deep:!0}),(i,o)=>n.value?(V(),ie("div",P0,[ve(I0)])):Te("",!0)}});function T0(e,t={}){Rv(C0,t).mount(e)}(e=>{Drupal.behaviors.contentCollection={attach:function(t){once("content-collection-init",".content-collection-app",t).forEach(function(n){const a=n.closest(".field--type-tide-content-collection-ui"),i=n.getAttribute("data-index")||"0",o=n.getAttribute("data-config")||"{}",r=a?.querySelector(`#content-collection-value-${i}`);!n?.querySelector(".tide-form")&&r&&T0(n,{index:i,form:Qd(r.value),config:Qd(o),update:c=>r.value=p0(c),baseUrl:window.location.origin})})}}})(jQuery)})(); + `)}v.write("payload.value = newResult;"),v.write("return payload;");const w=v.compile();return(_,A)=>w(d,_,A)};let o;const r=Pi,s=!Pu.jitless,c=s&&pb.value,l=t.catchall;let p;e._zod.parse=(d,v)=>{p??(p=a.value);const u=d.value;return r(u)?s&&c&&v?.async===!1&&v.jitless!==!0?(o||(o=i(t.shape)),d=o(d,v),l?Yu([],u,d,v,p,e):d):n(d,v):(d.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),d)}});function Qu(e,t,n,a){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!ra(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(r=>Cn(r,a,An())))}),t)}const Hx=O("$ZodUnion",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ye(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ye(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ye(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Lr(o.source)).join("|")})$`)}});const n=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return a(i,o);let r=!1;const s=[];for(const c of t.options){const l=c._zod.run({value:i.value,issues:[]},o);if(l instanceof Promise)s.push(l),r=!0;else{if(l.issues.length===0)return l;s.push(l)}}return r?Promise.all(s).then(c=>Qu(c,i,e,o)):Qu(s,i,e,o)}}),Gx=O("$ZodIntersection",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},a),r=t.right._zod.run({value:i,issues:[]},a);return o instanceof Promise||r instanceof Promise?Promise.all([o,r]).then(([s,c])=>Xu(n,s,c)):Xu(n,o,r)}});function Wr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Da(e)&&Da(t)){const n=Object.keys(t),a=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of a){const r=Wr(e[o],t[o]);if(!r.valid)return{valid:!1,mergeErrorPath:[o,...r.mergeErrorPath]};i[o]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let a=0;a{$e.init(e,t);const n=sb(t.entries),a=new Set(n);e._zod.values=a,e._zod.pattern=new RegExp(`^(${n.filter(i=>ub.has(typeof i)).map(i=>typeof i=="string"?Ci(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const r=i.value;return a.has(r)||i.issues.push({code:"invalid_value",values:n,input:r,inst:e}),i}}),Qx=O("$ZodTransform",(e,t)=>{$e.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);const i=t.transform(n.value,n);if(a.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new oa;return n.value=i,n}});function ed(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Xx=O("$ZodOptional",(e,t)=>{$e.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Lr(n.source)})?$`):void 0}),e._zod.parse=(n,a)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>ed(o,n.value)):ed(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,a)}}),ey=O("$ZodNullable",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Lr(n.source)}|null)$`):void 0}),ye(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,a)=>n.value===null?n:t.innerType._zod.run(n,a)}),ty=O("$ZodDefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>td(o,t)):td(i,t)}});function td(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ny=O("$ZodPrefault",(e,t)=>{$e.init(e,t),e._zod.optin="optional",ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>(a.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,a))}),ay=O("$ZodNonOptional",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(a=>a!==void 0)):void 0}),e._zod.parse=(n,a)=>{const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>nd(o,e)):nd(i,e)}});function nd(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const iy=O("$ZodCatch",(e,t)=>{$e.init(e,t),ye(e._zod,"optin",()=>t.innerType._zod.optin),ye(e._zod,"optout",()=>t.innerType._zod.optout),ye(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(r=>Cn(r,a,An()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Cn(o,a,An()))},input:n.value}),n.issues=[]),n)}}),oy=O("$ZodPipe",(e,t)=>{$e.init(e,t),ye(e._zod,"values",()=>t.in._zod.values),ye(e._zod,"optin",()=>t.in._zod.optin),ye(e._zod,"optout",()=>t.out._zod.optout),ye(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,a)=>{if(a.direction==="backward"){const o=t.out._zod.run(n,a);return o instanceof Promise?o.then(r=>Ni(r,t.in,a)):Ni(o,t.in,a)}const i=t.in._zod.run(n,a);return i instanceof Promise?i.then(o=>Ni(o,t.out,a)):Ni(i,t.out,a)}});function Ni(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const ry=O("$ZodReadonly",(e,t)=>{$e.init(e,t),ye(e._zod,"propValues",()=>t.innerType._zod.propValues),ye(e._zod,"values",()=>t.innerType._zod.values),ye(e._zod,"optin",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optin}),ye(e._zod,"optout",()=>{var n,a;return(a=(n=t.innerType)==null?void 0:n._zod)==null?void 0:a.optout}),e._zod.parse=(n,a)=>{if(a.direction==="backward")return t.innerType._zod.run(n,a);const i=t.innerType._zod.run(n,a);return i instanceof Promise?i.then(ad):ad(i)}});function ad(e){return e.value=Object.freeze(e.value),e}const sy=O("$ZodCustom",(e,t)=>{lt.init(e,t),$e.init(e,t),e._zod.parse=(n,a)=>n,e._zod.check=n=>{const a=n.value,i=t.fn(a);if(i instanceof Promise)return i.then(o=>id(o,n,a,e));id(i,n,a,e)}});function id(e,t,n,a){if(!e){const i={code:"custom",input:n,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(i.params=a._zod.def.params),t.issues.push(Ra(i))}}var od;class cy{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const a=n[0];if(this._map.set(t,a),a&&typeof a=="object"&&"id"in a){if(this._idmap.has(a.id))throw new Error(`ID ${a.id} already exists in the registry`);this._idmap.set(a.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const a={...this.get(n)??{}};delete a.id;const i={...a,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function ly(){return new cy}(od=globalThis).__zod_globalRegistry??(od.__zod_globalRegistry=ly());const Fi=globalThis.__zod_globalRegistry;function py(e,t){return new e({type:"string",...K(t)})}function uy(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...K(t)})}function rd(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...K(t)})}function dy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...K(t)})}function fy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...K(t)})}function my(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...K(t)})}function vy(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...K(t)})}function hy(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...K(t)})}function gy(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...K(t)})}function by(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...K(t)})}function xy(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...K(t)})}function yy(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...K(t)})}function wy(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...K(t)})}function _y(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...K(t)})}function ky(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...K(t)})}function jy(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...K(t)})}function Sy(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...K(t)})}function Ey(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...K(t)})}function Oy(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...K(t)})}function zy(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...K(t)})}function Ay(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...K(t)})}function Iy(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...K(t)})}function Py(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...K(t)})}function Cy(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...K(t)})}function Ty(e,t){return new e({type:"string",format:"date",check:"string_format",...K(t)})}function My(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...K(t)})}function Dy(e,t){return new e({type:"string",format:"duration",check:"string_format",...K(t)})}function Ry(e,t){return new e({type:"number",checks:[],...K(t)})}function $y(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...K(t)})}function Ny(e){return new e({type:"unknown"})}function Fy(e,t){return new e({type:"never",...K(t)})}function sd(e,t){return new Uu({check:"less_than",...K(t),value:e,inclusive:!1})}function Vr(e,t){return new Uu({check:"less_than",...K(t),value:e,inclusive:!0})}function cd(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!1})}function Jr(e,t){return new Bu({check:"greater_than",...K(t),value:e,inclusive:!0})}function ld(e,t){return new Vb({check:"multiple_of",...K(t),value:e})}function pd(e,t){return new Kb({check:"max_length",...K(t),maximum:e})}function Li(e,t){return new Hb({check:"min_length",...K(t),minimum:e})}function ud(e,t){return new Gb({check:"length_equals",...K(t),length:e})}function Ly(e,t){return new Yb({check:"string_format",format:"regex",...K(t),pattern:e})}function qy(e){return new Qb({check:"string_format",format:"lowercase",...K(e)})}function Uy(e){return new Xb({check:"string_format",format:"uppercase",...K(e)})}function By(e,t){return new ex({check:"string_format",format:"includes",...K(t),includes:e})}function Zy(e,t){return new tx({check:"string_format",format:"starts_with",...K(t),prefix:e})}function Wy(e,t){return new nx({check:"string_format",format:"ends_with",...K(t),suffix:e})}function sa(e){return new ax({check:"overwrite",tx:e})}function Vy(e){return sa(t=>t.normalize(e))}function Jy(){return sa(e=>e.trim())}function Ky(){return sa(e=>e.toLowerCase())}function Hy(){return sa(e=>e.toUpperCase())}function Gy(){return sa(e=>lb(e))}function Yy(e,t,n){return new e({type:"array",element:t,...K(n)})}function Qy(e,t,n){return new e({type:"custom",check:"custom",fn:t,...K(n)})}function Xy(e){const t=ew(n=>(n.addIssue=a=>{if(typeof a=="string")n.issues.push(Ra(a,n.value,t._zod.def));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(Ra(i))}},e(n.value,n)));return t}function ew(e,t){const n=new lt({check:"custom",...K(t)});return n._zod.check=e,n}const tw=O("ZodISODateTime",(e,t)=>{Ax.init(e,t),Ae.init(e,t)});function nw(e){return Cy(tw,e)}const aw=O("ZodISODate",(e,t)=>{Ix.init(e,t),Ae.init(e,t)});function iw(e){return Ty(aw,e)}const ow=O("ZodISOTime",(e,t)=>{Px.init(e,t),Ae.init(e,t)});function rw(e){return My(ow,e)}const sw=O("ZodISODuration",(e,t)=>{Cx.init(e,t),Ae.init(e,t)});function cw(e){return Dy(sw,e)}const lw=(e,t)=>{Wu.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>rx(e,n)},flatten:{value:n=>ox(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,$r,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,$r,2)}},isEmpty:{get(){return e.issues.length===0}}})},kt=O("ZodError",lw,{Parent:Error}),pw=Ur(kt),uw=Br(kt),dw=Di(kt),fw=Ri(kt),mw=lx(kt),vw=px(kt),hw=ux(kt),gw=dx(kt),bw=fx(kt),xw=mx(kt),yw=vx(kt),ww=hx(kt),Ue=O("ZodType",(e,t)=>($e.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Pn(t,{checks:[...t.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]})),e.clone=(n,a)=>gn(e,n,a),e.brand=()=>e,e.register=(n,a)=>(n.add(e,a),e),e.parse=(n,a)=>pw(e,n,a,{callee:e.parse}),e.safeParse=(n,a)=>dw(e,n,a),e.parseAsync=async(n,a)=>uw(e,n,a,{callee:e.parseAsync}),e.safeParseAsync=async(n,a)=>fw(e,n,a),e.spa=e.safeParseAsync,e.encode=(n,a)=>mw(e,n,a),e.decode=(n,a)=>vw(e,n,a),e.encodeAsync=async(n,a)=>hw(e,n,a),e.decodeAsync=async(n,a)=>gw(e,n,a),e.safeEncode=(n,a)=>bw(e,n,a),e.safeDecode=(n,a)=>xw(e,n,a),e.safeEncodeAsync=async(n,a)=>yw(e,n,a),e.safeDecodeAsync=async(n,a)=>ww(e,n,a),e.refine=(n,a)=>e.check(f_(n,a)),e.superRefine=n=>e.check(m_(n)),e.overwrite=n=>e.check(sa(n)),e.optional=()=>bd(e),e.nullable=()=>xd(e),e.nullish=()=>bd(xd(e)),e.nonoptional=n=>r_(e,n),e.array=()=>Ww(e),e.or=n=>Hw([e,n]),e.and=n=>Yw(e,n),e.transform=n=>wd(e,e_(n)),e.default=n=>a_(e,n),e.prefault=n=>o_(e,n),e.catch=n=>c_(e,n),e.pipe=n=>wd(e,n),e.readonly=()=>u_(e),e.describe=n=>{const a=e.clone();return Fi.add(a,{description:n}),a},Object.defineProperty(e,"description",{get(){var n;return(n=Fi.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fi.get(e);const a=e.clone();return Fi.add(a,n[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),dd=O("_ZodString",(e,t)=>{Zr.init(e,t),Ue.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...a)=>e.check(Ly(...a)),e.includes=(...a)=>e.check(By(...a)),e.startsWith=(...a)=>e.check(Zy(...a)),e.endsWith=(...a)=>e.check(Wy(...a)),e.min=(...a)=>e.check(Li(...a)),e.max=(...a)=>e.check(pd(...a)),e.length=(...a)=>e.check(ud(...a)),e.nonempty=(...a)=>e.check(Li(1,...a)),e.lowercase=a=>e.check(qy(a)),e.uppercase=a=>e.check(Uy(a)),e.trim=()=>e.check(Jy()),e.normalize=(...a)=>e.check(Vy(...a)),e.toLowerCase=()=>e.check(Ky()),e.toUpperCase=()=>e.check(Hy()),e.slugify=()=>e.check(Gy())}),_w=O("ZodString",(e,t)=>{Zr.init(e,t),dd.init(e,t),e.email=n=>e.check(uy(kw,n)),e.url=n=>e.check(hy(jw,n)),e.jwt=n=>e.check(Py(Fw,n)),e.emoji=n=>e.check(gy(Sw,n)),e.guid=n=>e.check(rd(fd,n)),e.uuid=n=>e.check(dy(Ui,n)),e.uuidv4=n=>e.check(fy(Ui,n)),e.uuidv6=n=>e.check(my(Ui,n)),e.uuidv7=n=>e.check(vy(Ui,n)),e.nanoid=n=>e.check(by(Ew,n)),e.guid=n=>e.check(rd(fd,n)),e.cuid=n=>e.check(xy(Ow,n)),e.cuid2=n=>e.check(yy(zw,n)),e.ulid=n=>e.check(wy(Aw,n)),e.base64=n=>e.check(zy(Rw,n)),e.base64url=n=>e.check(Ay($w,n)),e.xid=n=>e.check(_y(Iw,n)),e.ksuid=n=>e.check(ky(Pw,n)),e.ipv4=n=>e.check(jy(Cw,n)),e.ipv6=n=>e.check(Sy(Tw,n)),e.cidrv4=n=>e.check(Ey(Mw,n)),e.cidrv6=n=>e.check(Oy(Dw,n)),e.e164=n=>e.check(Iy(Nw,n)),e.datetime=n=>e.check(nw(n)),e.date=n=>e.check(iw(n)),e.time=n=>e.check(rw(n)),e.duration=n=>e.check(cw(n))});function qi(e){return py(_w,e)}const Ae=O("ZodStringFormat",(e,t)=>{Ee.init(e,t),dd.init(e,t)}),kw=O("ZodEmail",(e,t)=>{yx.init(e,t),Ae.init(e,t)}),fd=O("ZodGUID",(e,t)=>{bx.init(e,t),Ae.init(e,t)}),Ui=O("ZodUUID",(e,t)=>{xx.init(e,t),Ae.init(e,t)}),jw=O("ZodURL",(e,t)=>{wx.init(e,t),Ae.init(e,t)}),Sw=O("ZodEmoji",(e,t)=>{_x.init(e,t),Ae.init(e,t)}),Ew=O("ZodNanoID",(e,t)=>{kx.init(e,t),Ae.init(e,t)}),Ow=O("ZodCUID",(e,t)=>{jx.init(e,t),Ae.init(e,t)}),zw=O("ZodCUID2",(e,t)=>{Sx.init(e,t),Ae.init(e,t)}),Aw=O("ZodULID",(e,t)=>{Ex.init(e,t),Ae.init(e,t)}),Iw=O("ZodXID",(e,t)=>{Ox.init(e,t),Ae.init(e,t)}),Pw=O("ZodKSUID",(e,t)=>{zx.init(e,t),Ae.init(e,t)}),Cw=O("ZodIPv4",(e,t)=>{Tx.init(e,t),Ae.init(e,t)}),Tw=O("ZodIPv6",(e,t)=>{Mx.init(e,t),Ae.init(e,t)}),Mw=O("ZodCIDRv4",(e,t)=>{Dx.init(e,t),Ae.init(e,t)}),Dw=O("ZodCIDRv6",(e,t)=>{Rx.init(e,t),Ae.init(e,t)}),Rw=O("ZodBase64",(e,t)=>{$x.init(e,t),Ae.init(e,t)}),$w=O("ZodBase64URL",(e,t)=>{Fx.init(e,t),Ae.init(e,t)}),Nw=O("ZodE164",(e,t)=>{Lx.init(e,t),Ae.init(e,t)}),Fw=O("ZodJWT",(e,t)=>{Ux.init(e,t),Ae.init(e,t)}),md=O("ZodNumber",(e,t)=>{Ku.init(e,t),Ue.init(e,t),e.gt=(a,i)=>e.check(cd(a,i)),e.gte=(a,i)=>e.check(Jr(a,i)),e.min=(a,i)=>e.check(Jr(a,i)),e.lt=(a,i)=>e.check(sd(a,i)),e.lte=(a,i)=>e.check(Vr(a,i)),e.max=(a,i)=>e.check(Vr(a,i)),e.int=a=>e.check(vd(a)),e.safe=a=>e.check(vd(a)),e.positive=a=>e.check(cd(0,a)),e.nonnegative=a=>e.check(Jr(0,a)),e.negative=a=>e.check(sd(0,a)),e.nonpositive=a=>e.check(Vr(0,a)),e.multipleOf=(a,i)=>e.check(ld(a,i)),e.step=(a,i)=>e.check(ld(a,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Kr(e){return Ry(md,e)}const Lw=O("ZodNumberFormat",(e,t)=>{Bx.init(e,t),md.init(e,t)});function vd(e){return $y(Lw,e)}const qw=O("ZodUnknown",(e,t)=>{Zx.init(e,t),Ue.init(e,t)});function hd(){return Ny(qw)}const Uw=O("ZodNever",(e,t)=>{Wx.init(e,t),Ue.init(e,t)});function Bw(e){return Fy(Uw,e)}const Zw=O("ZodArray",(e,t)=>{Vx.init(e,t),Ue.init(e,t),e.element=t.element,e.min=(n,a)=>e.check(Li(n,a)),e.nonempty=n=>e.check(Li(1,n)),e.max=(n,a)=>e.check(pd(n,a)),e.length=(n,a)=>e.check(ud(n,a)),e.unwrap=()=>e.element});function Ww(e,t){return Yy(Zw,e,t)}const Vw=O("ZodObject",(e,t)=>{Kx.init(e,t),Ue.init(e,t),ye(e,"shape",()=>t.shape),e.keyof=()=>Qw(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:hd()}),e.loose=()=>e.clone({...e._zod.def,catchall:hd()}),e.strict=()=>e.clone({...e._zod.def,catchall:Bw()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>hb(e,n),e.safeExtend=n=>gb(e,n),e.merge=n=>bb(e,n),e.pick=n=>mb(e,n),e.omit=n=>vb(e,n),e.partial=(...n)=>xb(gd,e,n[0]),e.required=(...n)=>yb(yd,e,n[0])});function Jw(e,t){const n={type:"object",shape:e??{},...K(t)};return new Vw(n)}const Kw=O("ZodUnion",(e,t)=>{Hx.init(e,t),Ue.init(e,t),e.options=t.options});function Hw(e,t){return new Kw({type:"union",options:e,...K(t)})}const Gw=O("ZodIntersection",(e,t)=>{Gx.init(e,t),Ue.init(e,t)});function Yw(e,t){return new Gw({type:"intersection",left:e,right:t})}const Hr=O("ZodEnum",(e,t)=>{Yx.init(e,t),Ue.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(a,i)=>{const o={};for(const r of a)if(n.has(r))o[r]=t.entries[r];else throw new Error(`Key ${r} not found in enum`);return new Hr({...t,checks:[],...K(i),entries:o})},e.exclude=(a,i)=>{const o={...t.entries};for(const r of a)if(n.has(r))delete o[r];else throw new Error(`Key ${r} not found in enum`);return new Hr({...t,checks:[],...K(i),entries:o})}});function Qw(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Hr({type:"enum",entries:n,...K(t)})}const Xw=O("ZodTransform",(e,t)=>{Qx.init(e,t),Ue.init(e,t),e._zod.parse=(n,a)=>{if(a.direction==="backward")throw new Iu(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ra(o,n.value,t));else{const r=o;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=e),n.issues.push(Ra(r))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function e_(e){return new Xw({type:"transform",transform:e})}const gd=O("ZodOptional",(e,t)=>{Xx.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bd(e){return new gd({type:"optional",innerType:e})}const t_=O("ZodNullable",(e,t)=>{ey.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function xd(e){return new t_({type:"nullable",innerType:e})}const n_=O("ZodDefault",(e,t)=>{ty.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function a_(e,t){return new n_({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const i_=O("ZodPrefault",(e,t)=>{ny.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function o_(e,t){return new i_({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Du(t)}})}const yd=O("ZodNonOptional",(e,t)=>{ay.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function r_(e,t){return new yd({type:"nonoptional",innerType:e,...K(t)})}const s_=O("ZodCatch",(e,t)=>{iy.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function c_(e,t){return new s_({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const l_=O("ZodPipe",(e,t)=>{oy.init(e,t),Ue.init(e,t),e.in=t.in,e.out=t.out});function wd(e,t){return new l_({type:"pipe",in:e,out:t})}const p_=O("ZodReadonly",(e,t)=>{ry.init(e,t),Ue.init(e,t),e.unwrap=()=>e._zod.def.innerType});function u_(e){return new p_({type:"readonly",innerType:e})}const d_=O("ZodCustom",(e,t)=>{sy.init(e,t),Ue.init(e,t)});function f_(e,t={}){return Qy(d_,e,t)}function m_(e){return Xy(e)}Jw({title:qi(),changed:Kr().optional(),created:Kr().optional(),type:qi(),drupal_internal__nid:Kr(),id:qi(),langcode:qi()});var v_=Object.defineProperty,h_=(e,t,n)=>t in e?v_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_d=(e,t,n)=>h_(e,typeof t!="symbol"?t+"":t,n);class kd extends Error{constructor(t,n,a){super(t),_d(this,"status"),_d(this,"body"),this.name="TideApiError",this.status=n,this.body=a}}let Tn,Gr;const g_=!1;let jd="api/v1";const b_=e=>{(!e||g_)&&(e=window.location.origin),Gr=e.endsWith("/")?e:`${e}/`,Tn=new rb(Gr,"",{apiPrefix:jd})},x_=async()=>{try{const e=Tn.createQueryBuilder();return e.addInclude(["field_searchable_content_types"]),(await Tn.getTideCollection("taxonomy_term--searchable_fields",{query:e})).map(t=>({label:t.name,value:t.field_elasticsearch_id,machineName:t.field_taxonomy_machine_name,elasticField:t.field_elasticsearch_field,contentTypes:t.field_searchable_content_types?.map(n=>n.field_machine_name)||[]}))}catch(e){return console.error("Error getting searchable taxonomies:",e),[]}},y_=async(e,t)=>{try{const n=Tn.createQueryBuilder();return n.addFilter("name",t,"CONTAINS"),n.addFilter("status","1"),(await Tn.getTideCollection(`taxonomy_term--${e}`,{query:n})).map(a=>({label:a.name,value:a.drupal_internal__tid}))}catch(n){return console.error("Error getting taxonomy terms:",n),[]}},w_=async()=>{try{return(await Tn.getTideCollection("taxonomy_term--searchable_content_types")).map(e=>({label:e.name,value:e.field_machine_name}))}catch(e){return console.error("Error getting content type taxonomy:",e),[]}},__=async e=>{try{const{response:t,error:n}=await Tn.fetch(`${Gr}${jd}/content-collection/node-autocomplete?q=${e}`,{credentials:"include"});return n||!t.ok?(console.error("Error searching for content:",n),[]):(await t.json()).map(a=>({label:a.label,value:a.id}))}catch(t){return console.error("Error searching for content:",t),[]}},k_=Re({__name:"SourceSection",setup(e){const{getField:t,setField:n}=nn(),a=It([]),i=r=>!a.value?.length||!r?.length?[]:(Array.isArray(r)?r:[r]).map(s=>a.value.find(c=>c.value===s)).filter(Boolean),o=r=>{if(!Array.isArray(r)||!r?.length){n("contentType",[]);return}const s=r.reduce((c,l)=>[...c,l.value],[]);n("contentType",s)};return Jn(async()=>{a.value=await w_()}),(r,s)=>(V(),qe(yi,{title:"Content Source"},{default:De(()=>[ve(hn,{id:"source",type:"legend"},{default:De(({id:c,value:l,update:p})=>[ve(lh,{id:c,options:[{id:"auto",label:"Automatic",description:"Display an automatic feed of content",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Cpath d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/%3E%3C/svg%3E"},{id:"manual",label:"Manual",description:"Manually select specific content items",icon:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2355565b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E"}],value:l,required:!0,onChange:d=>p(d)},null,8,["id","value","onChange"])]),_:1}),un(t)("source")==="auto"?(V(),qe(hn,{key:0,id:"contentType",label:"Content type",description:"Choose the type of content you would like to display",required:!0},{default:De(({id:c,value:l})=>[ve(Xo,{id:c,options:a.value,value:i(l),required:!l?.length,onChange:o},null,8,["id","options","value","required"])]),_:1})):Te("",!0)]),_:1}))}});function j_(e,t){return Cs()?(wf(e,t),!0):!1}const S_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function E_(e){return Vo()}function O_(e,t=!0,n){E_()?Jn(e,n):t?e():Po(e)}const z_=S_?window.document:void 0;function A_(e){var t;const n=Ao(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Sd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,a)}return n}function Wt(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function C_(e,t){if(e==null)return{};var n=P_(e,t),a,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var T_="1.15.6";function rn(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var sn=rn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$a=rn(/Edge/i),Ed=rn(/firefox/i),Na=rn(/safari/i)&&!rn(/chrome/i)&&!rn(/android/i),Yr=rn(/iP(ad|od|hone)/i),Od=rn(/chrome/i)&&rn(/android/i),zd={capture:!1,passive:!1};function pe(e,t,n){e.addEventListener(t,n,!sn&&zd)}function ce(e,t,n){e.removeEventListener(t,n,!sn&&zd)}function Zi(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Ad(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Pt(e,t,n,a){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Zi(e,t):Zi(e,t))||a&&e===n)return e;if(e===n)break}while(e=Ad(e))}return null}var Id=/\s+/g;function vt(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var a=(" "+e.className+" ").replace(Id," ").replace(" "+t+" "," ");e.className=(a+(n?" "+t:"")).replace(Id," ")}}function G(e,t,n){var a=e&&e.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in a)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),a[t]=n+(typeof n=="string"?"":"px")}}function ca(e,t){var n="";if(typeof e=="string")n=e;else do{var a=G(e,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Pd(e,t,n){if(e){var a=e.getElementsByTagName(t),i=0,o=a.length;if(n)for(;i=o,!r)return a;if(a===Vt())break;a=bn(a,!1)}return!1}function la(e,t,n,a){for(var i=0,o=0,r=e.children;o2&&arguments[2]!==void 0?arguments[2]:{},a=n.evt,i=C_(n,q_);La.pluginEvent.bind(Y)(e,t,Wt({dragEl:N,parentEl:Me,ghostEl:ne,rootEl:Oe,nextEl:Mn,lastDownEl:Wi,cloneEl:Ie,cloneHidden:xn,dragStarted:Ua,putSortable:Je,activeSortable:Y.active,originalEvent:a,oldIndex:ua,oldDraggableIndex:qa,newIndex:ht,newDraggableIndex:yn,hideGhostForTarget:Zd,unhideGhostForTarget:Wd,cloneNowHidden:function(){xn=!0},cloneNowShown:function(){xn=!1},dispatchSortableEvent:function(o){it({sortable:t,name:o,originalEvent:a})}},i))};function it(e){L_(Wt({putSortable:Je,cloneEl:Ie,targetEl:N,rootEl:Oe,oldIndex:ua,oldDraggableIndex:qa,newIndex:ht,newDraggableIndex:yn},e))}var N,Me,ne,Oe,Mn,Wi,Ie,xn,ua,ht,qa,yn,Vi,Je,da=!1,Ji=!1,Ki=[],Dn,Ct,ts,ns,Nd,Fd,Ua,fa,Ba,Za=!1,Hi=!1,Gi,Xe,as=[],is=!1,Yi=[],Qi=typeof document<"u",Xi=Yr,Ld=$a||sn?"cssFloat":"float",U_=Qi&&!Od&&!Yr&&"draggable"in document.createElement("div"),qd=(function(){if(Qi){if(sn)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),Ud=function(e,t){var n=G(e),a=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=la(e,0,t),o=la(e,1,t),r=i&&G(i),s=o&&G(o),c=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+Ne(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Ne(o).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&r.float&&r.float!=="none"){var p=r.float==="left"?"left":"right";return o&&(s.clear==="both"||s.clear===p)?"vertical":"horizontal"}return i&&(r.display==="block"||r.display==="flex"||r.display==="table"||r.display==="grid"||c>=a&&n[Ld]==="none"||o&&n[Ld]==="none"&&c+l>a)?"vertical":"horizontal"},B_=function(e,t,n){var a=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,r=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return a===r||i===s||a+o/2===r+c/2},Z_=function(e,t){var n;return Ki.some(function(a){var i=a[pt].options.emptyInsertThreshold;if(!(!i||Qr(a))){var o=Ne(a),r=e>=o.left-i&&e<=o.right+i,s=t>=o.top-i&&t<=o.bottom+i;if(r&&s)return n=a}}),n},Bd=function(e){function t(i,o){return function(r,s,c,l){var p=r.options.group.name&&s.options.group.name&&r.options.group.name===s.options.group.name;if(i==null&&(o||p))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(r,s,c,l),o)(r,s,c,l);var d=(o?r:s).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var n={},a=e.group;(!a||Bi(a)!="object")&&(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Zd=function(){!qd&&ne&&G(ne,"display","none")},Wd=function(){!qd&&ne&&G(ne,"display","")};Qi&&!Od&&document.addEventListener("click",function(e){if(Ji)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ji=!1,!1},!0);var Rn=function(e){if(N){e=e.touches?e.touches[0]:e;var t=Z_(e.clientX,e.clientY);if(t){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=e[a]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[pt]._onDragOver(n)}}},W_=function(e){N&&N.parentNode[pt]._isOutsideThisEl(e.target)};function Y(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=on({},t),e[pt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ud(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,r){o.setData("Text",r.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Y.supportPointer!==!1&&"PointerEvent"in window&&(!Na||Yr),emptyInsertThreshold:5};La.initializePlugins(this,e,n);for(var a in n)!(a in t)&&(t[a]=n[a]);Bd(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:U_,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?pe(e,"pointerdown",this._onTapStart):(pe(e,"mousedown",this._onTapStart),pe(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(pe(e,"dragover",this),pe(e,"dragenter",this)),Ki.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),on(this,$_())}Y.prototype={constructor:Y,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(fa=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,N):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,a=this.options,i=a.preventOnFilter,o=e.type,r=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(r||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=a.filter;if(X_(n),!N&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Na&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=Pt(s,a.draggable,n,!1),!(s&&s.animated)&&Wi!==s)){if(ua=jt(s),qa=jt(s,a.draggable),typeof l=="function"){if(l.call(this,e,s,this)){it({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),ut("filter",t,{evt:e}),i&&e.preventDefault();return}}else if(l&&(l=l.split(",").some(function(p){if(p=Pt(c,p.trim(),n,!1),p)return it({sortable:t,rootEl:p,name:"filter",targetEl:s,fromEl:n,toEl:n}),ut("filter",t,{evt:e}),!0}),l)){i&&e.preventDefault();return}a.handle&&!Pt(c,a.handle,n,!1)||this._prepareDragStart(e,r,s)}}},_prepareDragStart:function(e,t,n){var a=this,i=a.el,o=a.options,r=i.ownerDocument,s;if(n&&!N&&n.parentNode===i){var c=Ne(n);if(Oe=i,N=n,Me=N.parentNode,Mn=N.nextSibling,Wi=n,Vi=o.group,Y.dragged=N,Dn={target:N,clientX:(t||e).clientX,clientY:(t||e).clientY},Nd=Dn.clientX-c.left,Fd=Dn.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,N.style["will-change"]="all",s=function(){if(ut("delayEnded",a,{evt:e}),Y.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Ed&&a.nativeDraggable&&(N.draggable=!0),a._triggerDragStart(e,t),it({sortable:a,name:"choose",originalEvent:e}),vt(N,o.chosenClass,!0)},o.ignore.split(",").forEach(function(l){Pd(N,l.trim(),os)}),pe(r,"dragover",Rn),pe(r,"mousemove",Rn),pe(r,"touchmove",Rn),o.supportPointer?(pe(r,"pointerup",a._onDrop),!this.nativeDraggable&&pe(r,"pointercancel",a._onDrop)):(pe(r,"mouseup",a._onDrop),pe(r,"touchend",a._onDrop),pe(r,"touchcancel",a._onDrop)),Ed&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),ut("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!($a||sn))){if(Y.eventCanceled){this._onDrop();return}o.supportPointer?(pe(r,"pointerup",a._disableDelayedDrag),pe(r,"pointercancel",a._disableDelayedDrag)):(pe(r,"mouseup",a._disableDelayedDrag),pe(r,"touchend",a._disableDelayedDrag),pe(r,"touchcancel",a._disableDelayedDrag)),pe(r,"mousemove",a._delayedDragTouchMoveHandler),pe(r,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&pe(r,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(s,o.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){N&&os(N),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;ce(e,"mouseup",this._disableDelayedDrag),ce(e,"touchend",this._disableDelayedDrag),ce(e,"touchcancel",this._disableDelayedDrag),ce(e,"pointerup",this._disableDelayedDrag),ce(e,"pointercancel",this._disableDelayedDrag),ce(e,"mousemove",this._delayedDragTouchMoveHandler),ce(e,"touchmove",this._delayedDragTouchMoveHandler),ce(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?pe(document,"pointermove",this._onTouchMove):t?pe(document,"touchmove",this._onTouchMove):pe(document,"mousemove",this._onTouchMove):(pe(N,"dragend",this),pe(Oe,"dragstart",this._onDragStart));try{document.selection?to(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(da=!1,Oe&&N){ut("dragStarted",this,{evt:t}),this.nativeDraggable&&pe(document,"dragover",W_);var n=this.options;!e&&vt(N,n.dragClass,!1),vt(N,n.ghostClass,!0),Y.active=this,e&&this._appendGhost(),it({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ct){this._lastX=Ct.clientX,this._lastY=Ct.clientY,Zd();for(var e=document.elementFromPoint(Ct.clientX,Ct.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ct.clientX,Ct.clientY),e!==t);)t=e;if(N.parentNode[pt]._isOutsideThisEl(e),t)do{if(t[pt]){var n=void 0;if(n=t[pt]._onDragOver({clientX:Ct.clientX,clientY:Ct.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=Ad(t));Wd()}},_onTouchMove:function(e){if(Dn){var t=this.options,n=t.fallbackTolerance,a=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=ne&&ca(ne,!0),r=ne&&o&&o.a,s=ne&&o&&o.d,c=Xi&&Xe&&Td(Xe),l=(i.clientX-Dn.clientX+a.x)/(r||1)+(c?c[0]-as[0]:0)/(r||1),p=(i.clientY-Dn.clientY+a.y)/(s||1)+(c?c[1]-as[1]:0)/(s||1);if(!Y.active&&!da){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))=0&&(it({rootEl:Me,name:"add",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"remove",toEl:Me,originalEvent:e}),it({rootEl:Me,name:"sort",toEl:Me,fromEl:Oe,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Je&&Je.save()):ht!==ua&&ht>=0&&(it({sortable:this,name:"update",toEl:Me,originalEvent:e}),it({sortable:this,name:"sort",toEl:Me,originalEvent:e})),Y.active&&((ht==null||ht===-1)&&(ht=ua,yn=qa),it({sortable:this,name:"end",toEl:Me,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ut("nulling",this),Oe=N=Me=ne=Mn=Ie=Wi=xn=Dn=Ct=Ua=ht=yn=ua=qa=fa=Ba=Je=Vi=Y.dragged=Y.ghost=Y.clone=Y.active=null,Yi.forEach(function(e){e.checked=!0}),Yi.length=ts=ns=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":N&&(this._onDragOver(e),V_(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,a=0,i=n.length,o=this.options;ai.right+o||e.clientY>a.bottom&&e.clientX>a.left:e.clientY>i.bottom+o||e.clientX>a.right&&e.clientY>a.top}function G_(e,t,n,a,i,o,r,s){var c=a?e.clientY:e.clientX,l=a?n.height:n.width,p=a?n.top:n.left,d=a?n.bottom:n.right,v=!1;if(!r){if(s&&Gip+l*o/2:cd-Gi)return-Ba}else if(c>p+l*(1-i)/2&&cd-l*o/2)?c>p+l/2?1:-1:0}function Y_(e){return jt(N){Kd(t,p.oldIndex,p.newIndex,p)}},s=()=>{const p=typeof e=="string"?i?.querySelector(e):A_(e);!p||a!==void 0||(a=new Y(p,{...r,...o}))},c=()=>{a?.destroy(),a=void 0},l=(p,d)=>{if(d!==void 0)a?.option(p,d);else return a?.option(p)};return O_(s),j_(c),{stop:c,start:s,option:l}}function n0(e,t,n){const a=e.children[n];e.insertBefore(t,a)}function a0(e){e.parentNode&&e.parentNode.removeChild(e)}function Kd(e,t,n,a=null){a!=null&&(a0(a.item),n0(a.from,a.item,t));const i=Ze(e),o=i?[...Ao(e)]:Ao(e);if(n>=0&&n{o.splice(n,0,r),i&&(e.value=o)})}}const i0=["disabled"],Hd=Re({__name:"TideButton",props:{variant:{default:"default"},size:{default:"medium"},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(V(),ie("button",{type:"button",class:Ot(`tide-button tide-button--${e.variant} tide-button--${e.size}`),disabled:e.disabled},[Kn(t.$slots,"default")],10,i0))}}),o0={key:0,class:"tide-field-group__action"},r0=Re({__name:"TideFieldGroup",props:{repeatable:{type:Boolean,default:!1},repeatLabel:{default:"Add +"},sortable:{type:Boolean,default:!1},sortItems:{default:()=>[]}},emits:["add","sort"],setup(e,{emit:t}){const n=e,a=t,i=Ys(n.sortItems),o=cm("content");return n.sortable&&t0(o,i,{onUpdate:r=>{a("sort",r.newIndex,r.oldIndex)}}),(r,s)=>(V(),ie("div",{class:Ot({"tide-field-group":!0,"tide-field-group--repeatable":e.repeatable})},[_e("div",{ref_key:"content",ref:o,class:"tide-field-group__content"},[Kn(r.$slots,"default",{},void 0,!0)],512),e.repeatable?(V(),ie("div",o0,[ve(Hd,{onClick:s[0]||(s[0]=c=>r.$emit("add"))},{default:De(()=>[Pa(st(e.repeatLabel),1)]),_:1})])):Te("",!0)],2))}}),Gd=Bt(r0,[["__scopeId","data-v-787c34d8"]]),s0=["name","id","value","required"],c0=["value"],l0=Re({__name:"TideSelect",props:{id:{},options:{},required:{type:Boolean,default:!1},value:{default:void 0}},emits:["change"],setup(e){return(t,n)=>(V(),ie("select",{name:e.id,id:e.id,class:"tide-select tide-form__element",value:e.value,required:e.required,onChange:n[0]||(n[0]=a=>t.$emit("change",a.target.value))},[n[1]||(n[1]=_e("option",{value:""},"- Select -",-1)),(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("option",{value:a.value},st(a.label),9,c0))),256))],40,s0))}}),p0=Bt(l0,[["__scopeId","data-v-f8930bf0"]]),Yd=(e="{}")=>{let t={};if(!e)return t;try{t=JSON.parse(e)}catch(n){console.error("Error parsing JSON value:",n)}return t},u0=e=>{let t="{}";try{t=JSON.stringify(e)}catch(n){console.error("Error stringify-ing value:",n)}return t},Qd=(e,t=300)=>{let n;return(...a)=>{clearTimeout(n),n=setTimeout(()=>e(...a),t)}},d0=Re({__name:"FiltersSectionTerms",props:{id:{},value:{default:()=>[]},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=nn(),r=It([]),s=It(!0),c=It(!1),l=ct(()=>{if(!n.value.length)return[];const v=i("termMap");return n.value.map(u=>({label:v[u]||"Not found",value:u}))}),p=v=>{const u=v.reduce((h,f)=>({...h,[f.value]:f.label}),{});o("termMap",u,!0),a("change",v.map(h=>h.value))},d=Qd(async v=>{n.source&&v.length>=2?(c.value=!0,r.value=await y_(n.source,v)):r.value=[],c.value=!1});return fn(()=>n.source,async v=>{s.value=!v,r.value=[]}),(v,u)=>(V(),qe(Xo,{id:e.id,value:l.value,options:r.value,disabled:s.value,loading:c.value,dynamic:!0,"min-query":2,required:!l.value?.length,onChange:p,onSearch:un(d)},null,8,["id","value","options","disabled","loading","required","onSearch"]))}}),f0={key:0,class:"tide-field-group__sort","aria-label":"Drag to sort"},m0={class:"tide-field-group-row__content"},v0={key:1,class:"tide-field-group-row__action"},h0=Re({__name:"TideFieldGroupRow",props:{sortable:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},removeLabel:{default:"Remove row"}},emits:["remove"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot({"tide-field-group-row":!0,"tide-field-group-row--sortable":e.sortable,"tide-field-group-row--removeable":e.removeable})},[e.sortable?(V(),ie("div",f0,[...n[1]||(n[1]=[_e("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[_e("path",{d:"M5.2 9l-3 3 3 3M9 5.2l3-3 3 3M15 18.9l-3 3-3-3M18.9 9l3 3-3 3M3.3 12h17.4M12 3.2v17.6"})],-1)])])):Te("",!0),_e("div",m0,[Kn(t.$slots,"default",{},void 0,!0)]),e.removeable?(V(),ie("div",v0,[ve(Hd,{size:"medium",class:"tide-field-group-row__action-button","aria-label":e.removeLabel,onClick:n[0]||(n[0]=a=>t.$emit("remove"))},{default:De(()=>[...n[2]||(n[2]=[Pa(" Remove ",-1)])]),_:1},8,["aria-label"])])):Te("",!0)],2))}}),Xd=Bt(h0,[["__scopeId","data-v-375ae602"]]),g0=Re({__name:"FiltersSection",setup(e){const{form:t,getField:n,setField:a}=nn(),i=It([]),o=ct(()=>{const p=n("filters");return p.length?p:[]}),r=()=>{a("filters",[...o.value,{}])},s=p=>{a("filters",o.value.filter((d,v)=>v!==p))},c=p=>i.value.find(d=>d.value===p)?.machineName,l=ct(()=>{const p=n("contentType");return i.value.filter(d=>d.contentTypes.length?d.contentTypes.some(v=>p.includes(v)):!0)});return fn(()=>t.contentType,p=>{const d=o.value.filter(v=>v.taxonomy?i.value.some(u=>u.value===v.taxonomy&&(!u.contentTypes.length||u.contentTypes.some(h=>p.includes(h)))):!0);d.length!==o.value.length&&a("filters",d)}),Jn(async()=>{i.value=await x_()}),(p,d)=>(V(),qe(yi,{title:"Refine Content",description:"This section allows you to filter content to only the relevant items."},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add filter",onAdd:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(o.value,(v,u)=>(V(),qe(Xd,{key:`filters-${u}`,removeable:!0,"remove-label":"Remove filter",onRemove:h=>s(u)},{default:De(()=>[ve(hn,{id:"filters",index:u,scope:"tax",label:"Filter by",required:!0,description:"Select a taxonomy term to filter by"},{default:De(({id:h,value:f,update:T})=>[ve(p0,{id:h,required:!0,value:f?.taxonomy,options:l.value,onChange:w=>T({taxonomy:w},u)},null,8,["id","value","options","onChange"])]),_:2},1032,["index"]),ve(hn,{id:"filters",required:!0,index:u,scope:"terms",label:"Filter terms",description:"Show content with the selected terms"},{default:De(({id:h,value:f,update:T})=>[ve(d0,{id:h,value:f?.terms,source:c(f.taxonomy),onChange:w=>T({taxonomy:f.taxonomy,terms:w},u)},null,8,["id","value","source","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1})]),_:1}))}}),b0=Re({__name:"ManualSectionItem",props:{id:{},value:{},source:{default:void 0}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,{getConfig:i,setConfig:o}=nn(),r=It([]),s=It(!1),c=ct(()=>{const d=i("contentMap");return n.value&&Object.keys(d).length?{label:d[n.value]||"Not found",value:n.value}:null}),l=d=>{const v=typeof d=="object"&&d!==null;v&&o("contentMap",{[d.value]:d.label},!0),a("change",v?d.value:"")},p=Qd(async d=>{d.length>=2?(s.value=!0,r.value=await __(d)):r.value=[],s.value=!1});return(d,v)=>(V(),qe(Xo,{id:e.id,value:c.value,options:r.value,loading:s.value,dynamic:!0,multiple:!1,required:!0,"min-query":2,onChange:l,onSearch:un(p)},null,8,["id","value","options","loading","onSearch"]))}}),x0=Re({__name:"ManualSection",setup(e){const{getField:t,setField:n}=nn(),a=ct(()=>t("manualItems")||[""]),i=()=>{n("manualItems",[...a.value,""])},o=s=>{n("manualItems",a.value.filter((c,l)=>l!==s))},r=(s,c)=>{const l=[...a.value];Kd(l,c,s),n("manualItems",l)};return(s,c)=>(V(),qe(yi,{title:"Select Content",description:"Search for individual content items, add them to the list, then drag to reorder or remove as needed.",required:!0},{default:De(()=>[ve(Gd,{repeatable:!0,"repeat-label":"Add content",sortable:!0,"sort-items":a.value,onAdd:i,onSort:r},{default:De(()=>[(V(!0),ie(Ce,null,mn(a.value,(l,p)=>(V(),qe(Xd,{key:`manual-${l}-${p}`,removeable:!0,sortable:!0,"remove-label":"Remove content",onRemove:d=>o(p)},{default:De(()=>[ve(hn,{id:"manualItems",index:p,label:"Search content","hide-label":!0},{default:De(({id:d,value:v,update:u})=>[ve(b0,{id:d,value:v,onChange:h=>u(h,p)},null,8,["id","value","onChange"])]),_:2},1032,["index"])]),_:2},1032,["onRemove"]))),128))]),_:1},8,["sort-items"])]),_:1}))}}),y0=["name","type","id","min","max","value","required"],w0=Re({__name:"TideInput",props:{id:{},type:{default:"text"},value:{default:void 0},min:{default:void 0},max:{default:void 0},required:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=o=>{let r=o.target.value;n.type==="number"&&(r=Number(r)),a("change",r)};return(o,r)=>(V(),ie("input",{name:e.id,type:e.type,id:e.id,min:e.min,max:e.max,value:e.value,required:e.required,class:"tide-input tide-form__element",onInput:i},null,40,y0))}}),_0={class:"tide-radio__label"},k0=["name","value","checked","required","onChange"],j0=Re({__name:"TideRadio",props:{id:{},options:{},value:{},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e){return(t,n)=>(V(),ie("div",{class:Ot(`tide-radio tide-radio--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,a=>(V(),ie("label",_0,[_e("input",{type:"radio",name:e.id,class:"tide-radio__input",value:a.value,checked:a.value===e.value,required:e.required,onChange:i=>t.$emit("change",a.value)},null,40,k0),_e("span",null,st(a.label),1)]))),256))],2))}}),S0=Bt(j0,[["__scopeId","data-v-df50077b"]]),E0={class:"tide-checkbox__label"},O0=["name","value","checked","required","onChange"],z0=Re({__name:"TideCheckbox",props:{id:{},options:{},value:{type:[String,Boolean]},required:{type:Boolean,default:!1},display:{default:"block"}},emits:["change"],setup(e,{emit:t}){const n=e,a=t,i=(o,r)=>{const s=n.options.length>1;a("change",s?o:!r)};return(o,r)=>(V(),ie("div",{class:Ot(`tide-checkbox tide-checkbox--${e.display}`)},[(V(!0),ie(Ce,null,mn(e.options,s=>(V(),ie("label",E0,[_e("input",{type:"checkbox",name:e.id,class:"tide-checkbox__input",value:s.value,checked:s.value===e.value,required:e.required,onChange:c=>i(s.value,e.value)},null,40,O0),_e("span",null,st(s.label),1)]))),256))],2))}}),A0=Bt(z0,[["__scopeId","data-v-3a00e669"]]),I0=Re({__name:"DisplaySection",setup(e){const{getField:t}=nn();return(n,a)=>(V(),qe(yi,{title:"Display Options"},{default:De(()=>[ve(hn,{id:"displayType",type:"legend",label:"Display type",required:!0,description:"How would you like to display the content?"},{default:De(({id:i,value:o,update:r})=>[ve(S0,{id:i,display:"inline",options:[{value:"card",label:"Card"},{value:"list",label:"List"},{value:"carousel",label:"Carousel"}],value:o,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1}),un(t)("displayType")==="card"||un(t)("displayType")==="carousel"?(V(),qe(hn,{key:0,id:"showImage",type:"legend",label:"Show images"},{default:De(({id:i,value:o,update:r})=>[ve(A0,{id:i,options:[{value:!0,label:"Would you like to display images?"}],value:o,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0),un(t)("source")==="auto"?(V(),qe(hn,{key:1,id:"displayNumber",label:"Number of items",description:"How many items would you like display?",required:!0},{default:De(({id:i,value:o,update:r})=>[ve(w0,{id:i,type:"number",value:o,min:1,max:100,required:!0,onChange:s=>r(s)},null,8,["id","value","onChange"])]),_:1})):Te("",!0)]),_:1}))}}),P0=Re({__name:"ContentForm",setup(e){const{getField:t}=nn(),n=ct(()=>t("source")),a=ct(()=>t("source")==="manual"),i=ct(()=>t("source")==="auto");return(o,r)=>(V(),qe(Uv,null,{default:De(()=>[ve(k_),n.value?(V(),ie(Ce,{key:0},[a.value?(V(),qe(x0,{key:0})):Te("",!0),i.value?(V(),qe(g0,{key:1})):Te("",!0),ve(I0)],64)):Te("",!0)]),_:1}))}}),C0={key:0,class:"tide-collection"},T0=Re({__name:"App",props:{index:{},form:{},config:{},baseUrl:{},update:{type:Function}},setup(e){const t=e,n=It(!1),{form:a}=nn({id:`tide-content-collection-${t.index}`,form:t.form,config:t.config});return Jn(()=>{b_(t.baseUrl),n.value=!0}),fn(a,i=>{t.update(i)},{deep:!0}),(i,o)=>n.value?(V(),ie("div",C0,[ve(P0)])):Te("",!0)}});function M0(e,t={}){Dv(T0,t).mount(e)}(e=>{Drupal.behaviors.contentCollection={attach:function(t){once("content-collection-init",".content-collection-app",t).forEach(function(n){const a=n.closest(".field--type-tide-content-collection-ui"),i=n.getAttribute("data-index")||"0",o=n.getAttribute("data-config")||"{}",r=a?.querySelector(`#content-collection-value-${i}`);!n?.querySelector(".tide-form")&&r&&M0(n,{index:i,form:Yd(r.value),config:Yd(o),update:c=>r.value=u0(c),baseUrl:window.location.origin})})}}})(jQuery)})(); diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json index b5fa41b19..e57d7b6e6 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@dpc-sdp/tide-content-collection-ui": "0.1.1" + "@dpc-sdp/tide-content-collection-ui": "0.2.0-alpha.1" }, "devDependencies": { "vite": "^7.3.0" @@ -112,9 +112,9 @@ } }, "node_modules/@dpc-sdp/tide-content-collection-ui": { - "version": "0.1.1", - "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-content-collection-ui/0.1.1/e8fbfad0a0d6c16962da8800530e5027342142eb", - "integrity": "sha512-qD8DhBTlnUQx0O7CS0a1nS9Na3Od6c63GC9BZrrvlD1lwosEkK9TmE1mE5gI3NyWVFfTcPRKnqsicmmBV3/W2w==", + "version": "0.2.0-alpha.1", + "resolved": "https://npm.pkg.github.com/download/@dpc-sdp/tide-content-collection-ui/0.2.0-alpha.1/8f61e8cbc27b01df85278388f013ebeccfbed208", + "integrity": "sha512-DNwQfhpI4OM5W0mkffamBZWCV/gmvhxZYlsGIRx+AlxOgJHTscA3PqvegMf2cVzl0GOvdUEeJIg6OB/tKw8TiA==", "dependencies": { "@dpc-sdp/tide-api-client": "0.2.0", "@vueuse/integrations": "^14.1.0", diff --git a/modules/tide_api/modules/tide_content_collection_ui/app/package.json b/modules/tide_api/modules/tide_content_collection_ui/app/package.json index 21761c73a..52369a924 100644 --- a/modules/tide_api/modules/tide_content_collection_ui/app/package.json +++ b/modules/tide_api/modules/tide_content_collection_ui/app/package.json @@ -4,7 +4,7 @@ "build": "vite build" }, "dependencies": { - "@dpc-sdp/tide-content-collection-ui": "0.1.1" + "@dpc-sdp/tide-content-collection-ui": "0.2.0-alpha.1" }, "devDependencies": { "vite": "^7.3.0"