@madgex/design-system-ce 5.6.2 → 5.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,19 @@
1
1
  <!-- eslint-disable vue/multi-word-component-names -->
2
2
  <template>
3
3
  <div
4
- ref="$el"
5
4
  class="mds-combobox"
6
- :class="{ 'mds-combobox--active': !listBoxHidden }"
7
- @keydown.down="onKeyDown"
8
- @keydown.up="onKeyUp"
9
- @keydown.home="onKeyHome"
10
- @keydown.end="onKeyEnd"
11
- @keydown.esc="makeInactive"
5
+ :class="{ 'mds-combobox--active': expanded }"
6
+ @keydown.down="handleKeyDown"
7
+ @keydown.up="handleKeyUp"
8
+ @keydown.home="handleKeyHome"
9
+ @keydown.end="handleKeyEnd"
10
+ @keydown.esc="handleKeyEsc"
12
11
  @keydown.enter="handleKeyDownEnter"
13
12
  >
14
13
  <input
15
14
  :id="comboboxid"
16
15
  ref="$comboInput"
17
- :value="inputValue"
16
+ :value="searchValue"
18
17
  class="mds-form-control"
19
18
  autocomplete="off"
20
19
  type="text"
@@ -25,61 +24,92 @@
25
24
  :aria-expanded="ariaExpanded"
26
25
  aria-autocomplete="list"
27
26
  :aria-describedby="describedbyId"
28
- :aria-activedescendant="selectedOptionId"
27
+ :aria-activedescendant="getOptionIdByIndex(selectedIndex)"
29
28
  :aria-invalid="ariaInvalid"
30
29
  @input="handleInput"
31
30
  @change="handleChange"
32
- @blur="onInputBlur"
31
+ @blur="handleBlur"
33
32
  @focus="handleFocus"
34
33
  />
35
-
36
34
  <ComboboxClear v-if="searchValue.length > 0" @clear="handleClear" />
37
- <ListBox :id="listBoxId" :hidden="listBoxHidden" :aria-labelledby="`${comboboxid}-label`" :is-loading="isLoading">
35
+ <ListBox :id="listBoxId" :hidden="!expanded" :aria-labelledby="`${comboboxid}-label`" :is-loading="isLoading">
38
36
  <ListBoxOption
39
37
  v-for="(option, index) in visibleOptions"
40
- :id="`${optionId}-${index}`"
38
+ :id="getOptionIdByIndex(index)"
41
39
  :key="index"
42
- :option="option"
43
- :focused="selectedOption?.value === option?.value"
40
+ :option-label="getOptionLabel(option)"
41
+ :focused="selectedIndex === index"
44
42
  :search-value="searchValue"
45
- @mousedown="clickOption(option)"
43
+ @mousedown="handleMouseDownOption(option)"
46
44
  />
47
45
  </ListBox>
48
- <div aria-live="polite" role="status" class="mds-visually-hidden">
49
- {{ resultCountMessage }}
50
- </div>
46
+ <ComboboxAriaLive
47
+ :visible-options="visibleOptions"
48
+ :expanded="expanded"
49
+ :results-message="i18nText.resultsMessage"
50
+ :results-message_plural="i18nText.resultsMessage_plural"
51
+ />
52
+ <!-- No default <slot/> used, so fallback child content is destroyed on mount -->
53
+ <!-- target-inputs <slot/> so we can easily find inputs to populate with option selection -->
54
+ <span ref="$targetInputs"><slot name="target-inputs"></slot></span>
51
55
  </div>
52
56
  </template>
53
57
 
54
58
  <script setup>
55
- import { computed, onMounted, provide, ref, useTemplateRef } from 'vue';
59
+ import { computed, provide, ref, useTemplateRef } from 'vue';
60
+ import safeGet from 'just-safe-get';
61
+ import debounce from 'just-debounce-it';
62
+ import Bourne from '@hapi/bourne';
56
63
  import ComboboxClear from './ComboboxClear.vue';
57
64
  import ListBox from './ListBox.vue';
58
65
  import ListBoxOption from './ListBoxOption.vue';
66
+ import ComboboxAriaLive from './ComboboxAriaLive.vue';
59
67
 
68
+ /*
69
+ * as this is a Web Component, all props are string-ish types, hence why `options` is JSON parsed, see `parsedPropOptions`.
70
+ * https://vuejs.org/guide/extras/web-components.html#props
71
+ */
60
72
  const props = defineProps({
61
73
  comboboxid: { type: String, required: true },
62
74
  placeholder: { type: String, default: '' },
63
75
  name: { type: [String, Boolean], default: false },
64
76
  value: { type: String, default: '' },
65
- options: { type: Array, default: () => [] },
66
- filterOptions: { type: Boolean, default: true },
77
+ options: { type: String, default: '[]' },
67
78
  iconpath: { type: String, default: '/assets/icons.svg' },
68
79
  dataAriaInvalid: { type: String, default: '' },
69
80
  i18n: { type: String, default: '' },
70
81
  describedbyId: { type: String, default: '' },
71
82
  minSearchCharacters: { type: Number, default: 2 },
83
+ /** the api endpoint to fetch options on search input */
84
+ apiUrl: { type: String, default: undefined },
85
+ /** the query key name for the api endpoint */
86
+ apiQueryKey: { type: String, default: 'searchText' },
87
+ /** where to grab an array of options on api response, e.g. `data.options` would be an array of options, empty to use api response as array */
88
+ apiOptionsPath: { type: String, default: undefined },
89
+ /** where to grab the visual label from the option object e.g. 'label' or 'title' or 'nested.object.label' */
90
+ optionLabelPath: { type: String, default: 'label' },
72
91
  });
73
- const emit = defineEmits(['search', 'select-option', 'clear-all']);
74
92
 
75
- const $el = useTemplateRef('$el');
76
93
  const $comboInput = useTemplateRef('$comboInput');
94
+ const $targetInputs = useTemplateRef('$targetInputs');
77
95
 
78
96
  const expanded = ref(false);
79
- const selected = ref(null);
80
- const chosen = ref(null);
97
+ /** `selectedIndex` aka "highlighted option", set by using keyboard controls */
98
+ const selectedIndex = ref(null);
81
99
  const searchValue = ref(props.value);
82
- const resultCountMessage = ref(null);
100
+ const isLoading = ref(false);
101
+ /** used if apiUrl is set, otherwise `parsedPropOptions` is used */
102
+ const apiOptions = ref([]);
103
+
104
+ // as props must be string-ish types, we parse the `options` into a real array
105
+ const parsedPropOptions = computed(() => {
106
+ try {
107
+ return Bourne.parse(props.options);
108
+ } catch (e) {
109
+ console.error(e);
110
+ return [];
111
+ }
112
+ });
83
113
 
84
114
  const i18nText = computed(() => {
85
115
  return props.i18n
@@ -91,45 +121,28 @@ const i18nText = computed(() => {
91
121
  clearInput: 'clear input',
92
122
  };
93
123
  });
94
- const inputValue = computed(() => {
95
- if (chosenOption.value) {
96
- return chosenOption.value.label;
97
- }
98
124
 
99
- return searchValue.value;
100
- });
101
125
  const visibleOptions = computed(() => {
102
- if (props.filterOptions) {
103
- return props.options.filter((opt) => opt.label.toLowerCase().includes(searchValue.value.toLowerCase()));
126
+ if (!props.apiUrl) {
127
+ return parsedPropOptions.value.filter((opt) =>
128
+ getOptionLabel(opt).toLowerCase().includes(searchValue.value.toLowerCase()),
129
+ );
104
130
  }
105
131
 
106
- return props.options;
132
+ return apiOptions.value;
107
133
  });
108
134
  const listBoxId = computed(() => {
109
135
  return `${props.comboboxid}-listbox`;
110
136
  });
111
- const optionId = computed(() => {
112
- return `${props.comboboxid}-option`;
113
- });
114
- const isLoading = computed(() => {
115
- return props.options.length === 0 && expanded.value;
116
- });
117
- const selectedOptionId = computed(() => {
118
- // make sure comparison is treated as strings (in case option value Number etc)
119
- const index = visibleOptions.value.findIndex((obj) => String(obj.value) === String(selectedOption.value?.value));
120
137
 
121
- if (index > -1) {
122
- return `${optionId.value}-${index}`;
138
+ /** generate an DOM `id` for a option, based on index number */
139
+ function getOptionIdByIndex(index) {
140
+ if (typeof index === 'number' && index > -1) {
141
+ return `${props.comboboxid}-option-${index}`;
123
142
  }
124
-
125
143
  return undefined;
126
- });
127
- const listBoxHidden = computed(() => {
128
- return !expanded.value;
129
- });
130
- const lastOptionIndex = computed(() => {
131
- return visibleOptions.value.length - 1;
132
- });
144
+ }
145
+
133
146
  const ariaExpanded = computed(() => {
134
147
  // These must be strings to apply as an aria attribute of the same name
135
148
  return expanded.value ? 'true' : 'false';
@@ -139,136 +152,162 @@ const ariaInvalid = computed(() => {
139
152
  return props.dataAriaInvalid ? 'true' : 'false';
140
153
  });
141
154
 
142
- const selectedOption = computed({
143
- get() {
144
- return selected.value;
145
- },
146
- set(newOption) {
147
- selected.value = newOption;
148
- },
149
- });
150
- const chosenOption = computed({
151
- get() {
152
- return chosen.value;
153
- },
154
- set(newOption) {
155
- chosen.value = newOption;
156
- selectedOption.value = newOption;
157
- emit('select-option', chosen.value);
158
- },
159
- });
160
-
161
- onMounted(() => {
162
- // TODO: Get rid of code which couples to the nunjucks MdsCombobox template!
163
- const fallbackInput = $el.value?.parentElement?.parentElement?.querySelector('.mds-form-element__fallback input');
164
- const fallbackSelect = $el.value?.parentElement?.parentElement?.querySelector('.mds-form-element__fallback select');
165
-
166
- if (fallbackInput) fallbackInput.remove();
167
- if (fallbackSelect) fallbackSelect.removeAttribute('id');
168
- });
155
+ /**
156
+ * When user chooses an option:
157
+ * - set search input to chosen option's label
158
+ * - set any hidden target input values based on option
159
+ * - close list menu
160
+ * - reset selectedIndex
161
+ * @param newOption
162
+ */
163
+ function chooseOption(newOption) {
164
+ searchValue.value = getOptionLabel(newOption);
165
+ setTargetValues(newOption);
166
+ makeInactive();
167
+ selectedIndex.value = null;
168
+ }
169
169
 
170
+ /**
171
+ * Update target inputs with value from an option.
172
+ * If option is not supplied, target input values will be cleared
173
+ * @param {object?} option
174
+ */
175
+ function setTargetValues(option) {
176
+ const targetInputs = Array.from($targetInputs.value?.querySelectorAll('[data-key]'));
177
+ for (const el of targetInputs) {
178
+ // if no option, clear target value
179
+ el.value = option ? safeGet(option, el.getAttribute('data-key')) : '';
180
+ // ensure external code like htmx reacts to the new value
181
+ el.dispatchEvent(new Event('input', { bubbles: true }));
182
+ }
183
+ }
170
184
  function makeActive() {
171
185
  expanded.value = true;
172
186
  }
173
187
  function makeInactive() {
174
188
  expanded.value = false;
175
189
  }
190
+ function clearField() {
191
+ searchValue.value = '';
192
+ setTargetValues();
193
+ }
194
+
195
+ /**
196
+ * if props.apiUrl is set, we fetch options from the API.
197
+ * `apiOptions` should always be populated with an array of objects.
198
+ */
199
+ const debouncedFetchApiOptions = debounce(async function fetchApiOptions() {
200
+ if (!props.apiUrl) return;
201
+ if (isLoading.value) return; // prevent overlapping fetch
202
+ const searchQuery = searchValue?.value?.trim();
203
+ try {
204
+ isLoading.value = true;
205
+ let res = await fetch(`${props.apiUrl}?${props.apiQueryKey}=${encodeURIComponent(searchQuery)}`);
206
+ if (!res.ok) return;
207
+ res = await res.json();
208
+
209
+ //where is the array of options on the api response?
210
+ // default to root if props.apiOptionsPath is not set
211
+ const data = props.apiOptionsPath ? safeGet(res, props.apiOptionsPath) : res;
212
+ apiOptions.value = data || [];
213
+ } finally {
214
+ isLoading.value = false;
215
+ }
216
+ }, 200);
217
+
218
+ /**
219
+ * where do we grab the label from the option object?
220
+ * option.label or option['nested.object.label.path']
221
+ * @param {object} option
222
+ * @returns {string} label
223
+ */
224
+ function getOptionLabel(option) {
225
+ const label = safeGet(option, props.optionLabelPath);
226
+ return String(label);
227
+ }
228
+
229
+ /**
230
+ * - reset selectedIndex
231
+ * - copies the existing value into `searchValue` (because we manually handle input/change events)
232
+ * - fetch from api if applicable
233
+ * @param event input event
234
+ */
176
235
  function handleInput(event) {
177
- // Reset any chosen option if user is typing again
178
- chosenOption.value = null;
236
+ selectedIndex.value = null;
179
237
  searchValue.value = event.target ? event.target.value : '';
180
238
  handleChange();
181
- emit('search', searchValue.value);
182
- if (visibleOptions.value.length > 0) {
183
- updateCount();
184
- }
239
+ debouncedFetchApiOptions();
185
240
  }
186
241
  function handleChange() {
187
242
  if (searchValue.value.length === 0) clearField();
188
243
  if (searchValue.value.length >= props.minSearchCharacters) {
189
244
  makeActive();
190
- updateCount();
191
245
  } else {
192
246
  makeInactive();
193
247
  }
194
248
  }
195
249
  function handleFocus() {
196
250
  handleChange();
197
- if (visibleOptions.value.length > 1) {
198
- updateCount();
199
- }
200
251
  }
201
252
  function handleClear() {
202
253
  clearField();
203
254
  $comboInput.value?.focus();
204
255
  }
205
- function clearField() {
206
- searchValue.value = '';
207
- chosenOption.value = null;
208
- emit('clear-all');
209
- }
210
- function clickOption(option = selectedOption.value) {
211
- chosenOption.value = option;
212
- makeInactive();
256
+ /**
257
+ * As the `Enter` key is handled seperately (see `handleKeyDownEnter`),
258
+ * we need this handler for mouse clicks on an option
259
+ * @param option
260
+ */
261
+ function handleMouseDownOption(option) {
262
+ chooseOption(option);
213
263
  }
214
- /* When expanded then enter key down selects an option, otherwise enter key will be native behaviour, eg submit form */
264
+ /**
265
+ * When expanded then enter key down selects an option,
266
+ * otherwise enter key will be native behaviour, eg submit form
267
+ * @param event
268
+ */
215
269
  function handleKeyDownEnter(event) {
216
270
  if (expanded.value) {
217
271
  event.preventDefault();
218
- chooseOption();
272
+ const selectedOption = visibleOptions.value?.[selectedIndex.value];
273
+ chooseOption(selectedOption);
219
274
  }
220
275
  }
221
- function chooseOption() {
222
- chosenOption.value = selectedOption.value;
223
- makeInactive();
224
- clearCount();
225
- }
226
-
227
- function onInputBlur() {
276
+ function handleBlur() {
228
277
  makeInactive();
229
- clearCount();
230
278
  }
231
- function onKeyDown() {
232
- if (listBoxHidden.value) return;
233
- if (selectedOption.value) {
234
- const currentIndex = visibleOptions.value.findIndex((item) => item.value === selectedOption.value.value);
235
- const nextIndex = currentIndex === lastOptionIndex.value ? currentIndex : currentIndex + 1;
236
-
237
- selectedOption.value = visibleOptions.value[nextIndex];
279
+ /** move down the list, selecting an option */
280
+ function handleKeyDown() {
281
+ if (!expanded.value) return;
282
+ if (selectedIndex.value !== null) {
283
+ selectedIndex.value = Math.min(selectedIndex.value + 1, visibleOptions.value.length - 1);
238
284
  } else {
239
- [selectedOption.value] = visibleOptions.value;
285
+ // nothing selected, start at top of the list
286
+ selectedIndex.value = 0;
240
287
  }
241
288
  }
242
- function onKeyUp() {
243
- if (listBoxHidden.value) return;
244
- if (selectedOption.value) {
245
- const currentIndex = visibleOptions.value.findIndex((item) => item.value === selectedOption.value.value);
246
- const nextIndex = currentIndex === 0 ? currentIndex : currentIndex - 1;
247
-
248
- selectedOption.value = visibleOptions.value[nextIndex];
289
+ /** move up the list, selecting an option */
290
+ function handleKeyUp() {
291
+ if (!expanded.value) return;
292
+ if (selectedIndex.value !== null) {
293
+ selectedIndex.value = Math.max(selectedIndex.value - 1, 0);
249
294
  } else {
250
- selectedOption.value = visibleOptions.value[lastOptionIndex.value];
295
+ // nothing selected, start at bottom of the list
296
+ selectedIndex.value = visibleOptions.value.length - 1;
251
297
  }
252
298
  }
253
- function onKeyHome() {
254
- if (listBoxHidden.value) return;
255
- [selectedOption.value] = visibleOptions.value;
299
+ /** jump to top of list, selecting an option */
300
+ function handleKeyHome() {
301
+ if (!expanded.value) return;
302
+ selectedIndex.value = 0;
256
303
  }
257
- function onKeyEnd() {
258
- if (listBoxHidden.value) return;
259
- selectedOption.value = visibleOptions.value[lastOptionIndex.value];
304
+ /** jump to bottom of list, selecting an option */
305
+ function handleKeyEnd() {
306
+ if (!expanded.value) return;
307
+ selectedIndex.value = visibleOptions.value.length - 1;
260
308
  }
261
- function updateCount() {
262
- clearCount();
263
- setTimeout(() => {
264
- const message =
265
- visibleOptions.value.length === 1 ? i18nText.value.resultsMessage : i18nText.value.resultsMessage_plural;
266
-
267
- resultCountMessage.value = message.replace('{count}', visibleOptions.value.length);
268
- }, 1400);
269
- }
270
- function clearCount() {
271
- resultCountMessage.value = null;
309
+ function handleKeyEsc() {
310
+ makeInactive();
272
311
  }
273
312
 
274
313
  provide('iconPath', props.iconpath);
@@ -0,0 +1,40 @@
1
+ <template>
2
+ <div role="status" class="mds-visually-hidden">
3
+ {{ resultCountMessage }}
4
+ </div>
5
+ </template>
6
+
7
+ <script setup>
8
+ import { ref, watch } from 'vue';
9
+ import debounce from 'just-debounce-it';
10
+
11
+ const props = defineProps({
12
+ visibleOptions: { type: Array, default: () => [] },
13
+ expanded: { type: Boolean, default: false },
14
+ resultsMessage: { type: String },
15
+ resultsMessage_plural: { type: String },
16
+ });
17
+
18
+ watch(
19
+ [() => props.expanded, () => props.visibleOptions],
20
+ () => {
21
+ updateResultCount();
22
+ },
23
+ { deep: true },
24
+ );
25
+
26
+ const resultCountMessage = ref(null);
27
+
28
+ /** debounced so there is a delay, so screen readers react properly to updates */
29
+ const debounceUpdateResultCountMessage = debounce(function updateResultCountMessage() {
30
+ const messageTemplate = props.visibleOptions.length === 1 ? props.resultsMessage : props.resultsMessage_plural;
31
+ resultCountMessage.value = messageTemplate.replace('{count}', props.visibleOptions.length);
32
+ }, 1400);
33
+ /** immediately clear message, then proceed to update message. This process get the best screen reader results */
34
+ function updateResultCount() {
35
+ resultCountMessage.value = null;
36
+ if (props.expanded) {
37
+ debounceUpdateResultCountMessage();
38
+ }
39
+ }
40
+ </script>
@@ -14,7 +14,7 @@
14
14
  import { useTemplateRef, watch } from 'vue';
15
15
 
16
16
  const props = defineProps({
17
- option: { type: Object, required: true },
17
+ optionLabel: { type: String, required: true },
18
18
  focused: { type: Boolean, default: false },
19
19
  searchValue: { type: String, default: '' },
20
20
  });
@@ -30,7 +30,7 @@ watch(
30
30
  },
31
31
  );
32
32
  function highlightOption() {
33
- const optionLabelHtml = props.option.label.replace(
33
+ const optionLabelHtml = props.optionLabel.replace(
34
34
  new RegExp(props.searchValue, 'gi'),
35
35
  (match) => `<span class="mds-combobox__option--marked">${match}</span>`,
36
36
  );
@@ -1 +1 @@
1
- import{v as C,a as p,i as r,f as I,u as _,q as b,b as D,x as oe,t as F,y as E,z as se,e as N,r as y,A as s,B as ue,C as O,p as q,j as ie,D as re,F as ce,l as de,s as ve}from"../runtime-dom.esm-bundler.js";const fe=["aria-label","title"],pe={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},me=["href"],be={__name:"ComboboxClear",setup(l){const c=C("iconPath"),t=C("clearInput");return(i,o)=>(r(),p("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:o[0]||(o[0]=u=>i.$emit("clear",u)),onKeydown:o[1]||(o[1]=b(u=>i.$emit("clear",u),["enter"])),"aria-label":_(t),title:_(t)},[(r(),p("svg",pe,[I("use",{href:`${_(c)}#icon-close`},null,8,me)]))],40,fe))}},he=["hidden"],ge={key:0,class:"mds-combobox-loading"},xe={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},ye=["href"],_e={class:"mds-visually-hidden"},Ie={__name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0}},setup(l){const c=C("iconPath"),t=C("loadingText");return(i,o)=>(r(),p("ul",{class:"mds-combobox__listbox",role:"listbox",hidden:l.hidden},[l.isLoading?(r(),p("li",ge,[(r(),p("svg",xe,[I("use",{href:`${_(c)}#icon-spinner`},null,8,ye)])),I("span",_e,F(_(t)),1)])):D("",!0),oe(i.$slots,"default")],8,he))}},$e=["aria-selected","innerHTML"],Ce={__name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},setup(l){const c=l,t=E("$listItem");se(()=>c.focused,o=>{o&&t.value?.scrollIntoView({block:"nearest",inline:"nearest"})});function i(){return c.option.label.replace(new RegExp(c.searchValue,"gi"),u=>`<span class="mds-combobox__option--marked">${u}</span>`)}return(o,u)=>(r(),p("li",{ref_key:"$listItem",ref:t,class:N(["mds-combobox__option",{"mds-combobox__option--focused":l.focused}]),role:"option","aria-selected":l.focused.toString(),onMousedown:u[0]||(u[0]=f=>o.$emit("mousedown",f)),innerHTML:i()},null,42,$e))}},Se=["id","value","name","placeholder","aria-controls","aria-expanded","aria-describedby","aria-activedescendant","aria-invalid"],ke={"aria-live":"polite",role:"status",class:"mds-visually-hidden"},we={__name:"Combobox.ce",props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:""},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:Array,default:()=>[]},filterOptions:{type:Boolean,default:!0},iconpath:{type:String,default:"/assets/icons.svg"},dataAriaInvalid:{type:String,default:""},i18n:{type:String,default:""},describedbyId:{type:String,default:""},minSearchCharacters:{type:Number,default:2}},emits:["search","select-option","clear-all"],setup(l,{emit:c}){const t=l,i=c,o=E("$el"),u=E("$comboInput"),f=y(!1),T=y(null),S=y(null),d=y(t.value),k=y(null),$=s(()=>t.i18n?JSON.parse(t.i18n):{loadingText:"Loading",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}),P=s(()=>g.value?g.value.label:d.value),a=s(()=>t.filterOptions?t.options.filter(e=>e.label.toLowerCase().includes(d.value.toLowerCase())):t.options),K=s(()=>`${t.comboboxid}-listbox`),V=s(()=>`${t.comboboxid}-option`),j=s(()=>t.options.length===0&&f.value),R=s(()=>{const e=a.value.findIndex(v=>String(v.value)===String(n.value?.value));if(e>-1)return`${V.value}-${e}`}),h=s(()=>!f.value),w=s(()=>a.value.length-1),z=s(()=>f.value?"true":"false"),J=s(()=>t.dataAriaInvalid?"true":"false"),n=s({get(){return T.value},set(e){T.value=e}}),g=s({get(){return S.value},set(e){S.value=e,n.value=e,i("select-option",S.value)}});ue(()=>{const e=o.value?.parentElement?.parentElement?.querySelector(".mds-form-element__fallback input"),v=o.value?.parentElement?.parentElement?.querySelector(".mds-form-element__fallback select");e&&e.remove(),v&&v.removeAttribute("id")});function U(){f.value=!0}function x(){f.value=!1}function G(e){g.value=null,d.value=e.target?e.target.value:"",B(),i("search",d.value),a.value.length>0&&L()}function B(){d.value.length===0&&A(),d.value.length>=t.minSearchCharacters?(U(),L()):x()}function Q(){B(),a.value.length>1&&L()}function W(){A(),u.value?.focus()}function A(){d.value="",g.value=null,i("clear-all")}function X(e=n.value){g.value=e,x()}function Y(e){f.value&&(e.preventDefault(),Z())}function Z(){g.value=n.value,x(),M()}function ee(){x(),M()}function te(){if(!h.value)if(n.value){const e=a.value.findIndex(m=>m.value===n.value.value),v=e===w.value?e:e+1;n.value=a.value[v]}else[n.value]=a.value}function ae(){if(!h.value)if(n.value){const e=a.value.findIndex(m=>m.value===n.value.value),v=e===0?e:e-1;n.value=a.value[v]}else n.value=a.value[w.value]}function ne(){h.value||([n.value]=a.value)}function le(){h.value||(n.value=a.value[w.value])}function L(){M(),setTimeout(()=>{const e=a.value.length===1?$.value.resultsMessage:$.value.resultsMessage_plural;k.value=e.replace("{count}",a.value.length)},1400)}function M(){k.value=null}return O("iconPath",t.iconpath),O("loadingText",$.value.loadingText),O("clearInput",$.value.clearInput),(e,v)=>(r(),p("div",{ref_key:"$el",ref:o,class:N(["mds-combobox",{"mds-combobox--active":!h.value}]),onKeydown:[b(te,["down"]),b(ae,["up"]),b(ne,["home"]),b(le,["end"]),b(x,["esc"]),b(Y,["enter"])]},[I("input",{id:l.comboboxid,ref_key:"$comboInput",ref:u,value:P.value,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",name:l.name,placeholder:l.placeholder,"aria-controls":K.value,"aria-expanded":z.value,"aria-autocomplete":"list","aria-describedby":l.describedbyId,"aria-activedescendant":R.value,"aria-invalid":J.value,onInput:G,onChange:B,onBlur:ee,onFocus:Q},null,40,Se),d.value.length>0?(r(),q(be,{key:0,onClear:W})):D("",!0),ie(Ie,{id:K.value,hidden:h.value,"aria-labelledby":`${l.comboboxid}-label`,"is-loading":j.value},{default:re(()=>[(r(!0),p(ce,null,de(a.value,(m,H)=>(r(),q(Ce,{id:`${V.value}-${H}`,key:H,option:m,focused:n.value?.value===m?.value,"search-value":d.value,onMousedown:Be=>X(m)},null,8,["id","option","focused","search-value","onMousedown"]))),128))]),_:1},8,["id","hidden","aria-labelledby","is-loading"]),I("div",ke,F(k.value),1)],34))}},Me=ve(we,{shadowRoot:!1});export{Me as default};
1
+ import{v as I,a as p,i as c,f as x,u as _,q as b,b as j,x as D,t as N,y as k,z as U,e as q,r as y,A as h,B as C,p as A,j as K,C as se,F as re,l as ie,s as ue}from"../runtime-dom.esm-bundler.js";function ce(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var L=de;function de(n,e,l){if(!n)return l;var a,t;if(Array.isArray(e)&&(a=e.slice(0)),typeof e=="string"&&(a=e.split(".")),typeof e=="symbol"&&(a=[e]),!Array.isArray(a))throw new Error("props arg must be an array, a string or a symbol");for(;a.length;)if(t=a.shift(),!n||(n=n[t],n===void 0))return l;return n}var V=pe;function pe(n,e,l){var a=null,t=null,o=function(){a&&(clearTimeout(a),t=null,a=null)},s=function(){var d=t;o(),d&&d()},i=function(){if(!e)return n.apply(this,arguments);var d=this,w=arguments,m=l&&!a;if(o(),t=function(){n.apply(d,w)},a=setTimeout(function(){if(a=null,!m){var f=t;return t=null,f()}},e),m)return t()};return i.cancel=o,i.flush=s,i}var M={},R;function fe(){return R||(R=1,(function(n){const e={suspectRx:/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*\:/};n.parse=function(l,...a){const t=typeof a[0]=="object"&&a[0],o=a.length>1||!t?a[0]:void 0,s=a.length>1&&a[1]||t||{},i=JSON.parse(l,o);return s.protoAction==="ignore"||!i||typeof i!="object"||!l.match(e.suspectRx)||n.scan(i,s),i},n.scan=function(l,a={}){let t=[l];for(;t.length;){const o=t;t=[];for(const s of o){if(Object.prototype.hasOwnProperty.call(s,"__proto__")){if(a.protoAction!=="remove")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}for(const i in s){const d=s[i];d&&typeof d=="object"&&t.push(s[i])}}}},n.safeParse=function(l,a){try{return n.parse(l,a)}catch{return null}}})(M)),M}var ve=fe();const me=ce(ve),be=["aria-label","title"],he={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},ye=["href"],ge={__name:"ComboboxClear",setup(n){const e=I("iconPath"),l=I("clearInput");return(a,t)=>(c(),p("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:t[0]||(t[0]=o=>a.$emit("clear",o)),onKeydown:t[1]||(t[1]=b(o=>a.$emit("clear",o),["enter"])),"aria-label":_(l),title:_(l)},[(c(),p("svg",he,[x("use",{href:`${_(e)}#icon-close`},null,8,ye)]))],40,be))}},_e=["hidden"],xe={key:0,class:"mds-combobox-loading"},$e={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},Ie=["href"],we={class:"mds-visually-hidden"},Se={__name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0}},setup(n){const e=I("iconPath"),l=I("loadingText");return(a,t)=>(c(),p("ul",{class:"mds-combobox__listbox",role:"listbox",hidden:n.hidden},[n.isLoading?(c(),p("li",xe,[(c(),p("svg",$e,[x("use",{href:`${_(e)}#icon-spinner`},null,8,Ie)])),x("span",we,N(_(l)),1)])):j("",!0),D(a.$slots,"default")],8,_e))}},Oe=["aria-selected","innerHTML"],Ce={__name:"ListBoxOption",props:{optionLabel:{type:String,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},setup(n){const e=n,l=k("$listItem");U(()=>e.focused,t=>{t&&l.value?.scrollIntoView({block:"nearest",inline:"nearest"})});function a(){return e.optionLabel.replace(new RegExp(e.searchValue,"gi"),o=>`<span class="mds-combobox__option--marked">${o}</span>`)}return(t,o)=>(c(),p("li",{ref_key:"$listItem",ref:l,class:q(["mds-combobox__option",{"mds-combobox__option--focused":n.focused}]),role:"option","aria-selected":n.focused.toString(),onMousedown:o[0]||(o[0]=s=>t.$emit("mousedown",s)),innerHTML:a()},null,42,Oe))}},Le={role:"status",class:"mds-visually-hidden"},Me={__name:"ComboboxAriaLive",props:{visibleOptions:{type:Array,default:()=>[]},expanded:{type:Boolean,default:!1},resultsMessage:{type:String},resultsMessage_plural:{type:String}},setup(n){const e=n;U([()=>e.expanded,()=>e.visibleOptions],()=>{t()},{deep:!0});const l=y(null),a=V(function(){const s=e.visibleOptions.length===1?e.resultsMessage:e.resultsMessage_plural;l.value=s.replace("{count}",e.visibleOptions.length)},1400);function t(){l.value=null,e.expanded&&a()}return(o,s)=>(c(),p("div",Le,N(l.value),1))}},ke=["id","value","name","placeholder","aria-controls","aria-expanded","aria-describedby","aria-activedescendant","aria-invalid"],Be={__name:"Combobox.ce",props:{comboboxid:{type:String,required:!0},placeholder:{type:String,default:""},name:{type:[String,Boolean],default:!1},value:{type:String,default:""},options:{type:String,default:"[]"},iconpath:{type:String,default:"/assets/icons.svg"},dataAriaInvalid:{type:String,default:""},i18n:{type:String,default:""},describedbyId:{type:String,default:""},minSearchCharacters:{type:Number,default:2},apiUrl:{type:String,default:void 0},apiQueryKey:{type:String,default:"searchText"},apiOptionsPath:{type:String,default:void 0},optionLabelPath:{type:String,default:"label"}},setup(n){const e=n,l=k("$comboInput"),a=k("$targetInputs"),t=y(!1),o=y(null),s=y(e.value),i=y(!1),d=y([]),w=h(()=>{try{return me.parse(e.options)}catch(r){return console.error(r),[]}}),m=h(()=>e.i18n?JSON.parse(e.i18n):{loadingText:"Loading",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}),f=h(()=>e.apiUrl?d.value:w.value.filter(r=>S(r).toLowerCase().includes(s.value.toLowerCase()))),B=h(()=>`${e.comboboxid}-listbox`);function E(r){if(typeof r=="number"&&r>-1)return`${e.comboboxid}-option-${r}`}const H=h(()=>t.value?"true":"false"),Q=h(()=>e.dataAriaInvalid?"true":"false");function F(r){s.value=S(r),P(r),$(),o.value=null}function P(r){const v=Array.from(a.value?.querySelectorAll("[data-key]"));for(const u of v)u.value=r?L(r,u.getAttribute("data-key")):"",u.dispatchEvent(new Event("input",{bubbles:!0}))}function z(){t.value=!0}function $(){t.value=!1}function T(){s.value="",P()}const J=V(async function(){if(!e.apiUrl||i.value)return;const v=s?.value?.trim();try{i.value=!0;let u=await fetch(`${e.apiUrl}?${e.apiQueryKey}=${encodeURIComponent(v)}`);if(!u.ok)return;u=await u.json();const g=e.apiOptionsPath?L(u,e.apiOptionsPath):u;d.value=g||[]}finally{i.value=!1}},200);function S(r){const v=L(r,e.optionLabelPath);return String(v)}function G(r){o.value=null,s.value=r.target?r.target.value:"",O(),J()}function O(){s.value.length===0&&T(),s.value.length>=e.minSearchCharacters?z():$()}function W(){O()}function X(){T(),l.value?.focus()}function Y(r){F(r)}function Z(r){if(t.value){r.preventDefault();const v=f.value?.[o.value];F(v)}}function ee(){$()}function te(){t.value&&(o.value!==null?o.value=Math.min(o.value+1,f.value.length-1):o.value=0)}function ne(){t.value&&(o.value!==null?o.value=Math.max(o.value-1,0):o.value=f.value.length-1)}function ae(){t.value&&(o.value=0)}function oe(){t.value&&(o.value=f.value.length-1)}function le(){$()}return C("iconPath",e.iconpath),C("loadingText",m.value.loadingText),C("clearInput",m.value.clearInput),(r,v)=>(c(),p("div",{class:q(["mds-combobox",{"mds-combobox--active":t.value}]),onKeydown:[b(te,["down"]),b(ne,["up"]),b(ae,["home"]),b(oe,["end"]),b(le,["esc"]),b(Z,["enter"])]},[x("input",{id:n.comboboxid,ref_key:"$comboInput",ref:l,value:s.value,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",name:n.name,placeholder:n.placeholder,"aria-controls":B.value,"aria-expanded":H.value,"aria-autocomplete":"list","aria-describedby":n.describedbyId,"aria-activedescendant":E(o.value),"aria-invalid":Q.value,onInput:G,onChange:O,onBlur:ee,onFocus:W},null,40,ke),s.value.length>0?(c(),A(ge,{key:0,onClear:X})):j("",!0),K(Se,{id:B.value,hidden:!t.value,"aria-labelledby":`${n.comboboxid}-label`,"is-loading":i.value},{default:se(()=>[(c(!0),p(re,null,ie(f.value,(u,g)=>(c(),A(Ce,{id:E(g),key:g,"option-label":S(u),focused:o.value===g,"search-value":s.value,onMousedown:Ee=>Y(u)},null,8,["id","option-label","focused","search-value","onMousedown"]))),128))]),_:1},8,["id","hidden","aria-labelledby","is-loading"]),K(Me,{"visible-options":f.value,expanded:t.value,"results-message":m.value.resultsMessage,"results-message_plural":m.value.resultsMessage_plural},null,8,["visible-options","expanded","results-message","results-message_plural"]),x("span",{ref_key:"$targetInputs",ref:a},[D(r.$slots,"target-inputs")],512)],34))}},Pe=ue(Be,{shadowRoot:!1});export{Pe as default};
@@ -11,8 +11,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11
11
  * @vue/runtime-core v3.5.18
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
- **/function Ze(t,e,s,n){try{return n?t(...n):t()}catch(r){Es(r,e,s)}}function qt(t,e,s,n){if(D(t)){const r=Ze(t,e,s,n);return r&&or(r)&&r.catch(i=>{Es(i,e,s)}),r}if(I(t)){const r=[];for(let i=0;i<t.length;i++)r.push(qt(t[i],e,s,n));return r}}function Es(t,e,s,n=!0){const r=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Q;if(e){let l=e.parent;const c=e.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](t,c,d)===!1)return}l=l.parent}if(i){zt(),Ze(i,null,10,[t,c,d]),Qt();return}}no(t,s,r,n,o)}function no(t,e,s,n=!0,r=!1){if(r)throw t;console.error(t)}const vt=[];let Kt=-1;const Re=[];let ie=null,Te=0;const Pr=Promise.resolve();let ds=null;function Rr(t){const e=ds||Pr;return t?e.then(this?t.bind(this):t):e}function ro(t){let e=Kt+1,s=vt.length;for(;e<s;){const n=e+s>>>1,r=vt[n],i=ke(r);i<t||i===t&&r.flags&2?e=n+1:s=n}return e}function bn(t){if(!(t.flags&1)){const e=ke(t),s=vt[vt.length-1];!s||!(t.flags&2)&&e>=ke(s)?vt.push(t):vt.splice(ro(e),0,t),t.flags|=1,Mr()}}function Mr(){ds||(ds=Pr.then(Nr))}function io(t){I(t)?Re.push(...t):ie&&t.id===-1?ie.splice(Te+1,0,t):t.flags&1||(Re.push(t),t.flags|=1),Mr()}function In(t,e,s=Kt+1){for(;s<vt.length;s++){const n=vt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;vt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(t){if(Re.length){const e=[...new Set(Re)].sort((s,n)=>ke(s)-ke(n));if(Re.length=0,ie){ie.push(...e);return}for(ie=e,Te=0;Te<ie.length;Te++){const s=ie[Te];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ie=null,Te=0}}const ke=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Nr(t){try{for(Kt=0;Kt<vt.length;Kt++){const e=vt[Kt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ze(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Kt<vt.length;Kt++){const e=vt[Kt];e&&(e.flags&=-2)}Kt=-1,vt.length=0,Ir(),ds=null,(vt.length||Re.length)&&Nr()}}let yt=null,Fr=null;function ps(t){const e=yt;return yt=t,Fr=t&&t.type.__scopeId||null,e}function oo(t,e=yt,s){if(!e||t._n)return t;const n=(...r)=>{n._d&&Kn(-1);const i=ps(e);let o;try{o=t(...r)}finally{ps(i),n._d&&Kn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function me(t,e,s,n){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[n];c&&(zt(),qt(c,s,8,[t.el,l,t,e]),Qt())}}const lo=Symbol("_vte"),fo=t=>t.__isTeleport;function mn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,mn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function co(t,e){return D(t)?ct({name:t.name},e,{setup:t}):t}function Dr(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ql(t){const e=ii(),s=ki(null);if(e){const r=e.refs===Q?e.refs={}:e.refs;Object.defineProperty(r,t,{enumerable:!0,get:()=>s.value,set:i=>s.value=i})}return s}function We(t,e,s,n,r=!1){if(I(t)){t.forEach((K,$)=>We(K,e&&(I(e)?e[$]:e),s,n,r));return}if(Me(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&We(t,e,s,n.component.subTree);return}const i=n.shapeFlag&4?Sn(n.component):n.el,o=r?null:i,{i:l,r:c}=t,d=e&&e.r,a=l.refs===Q?l.refs={}:l.refs,p=l.setupState,T=k(p),A=p===Q?()=>!1:K=>G(T,K);if(d!=null&&d!==c&&(nt(d)?(a[d]=null,A(d)&&(p[d]=null)):_t(d)&&(d.value=null)),D(c))Ze(c,l,12,[o,a]);else{const K=nt(c),$=_t(c);if(K||$){const rt=()=>{if(t.f){const q=K?A(c)?p[c]:a[c]:c.value;r?I(q)&&on(q,i):I(q)?q.includes(i)||q.push(i):K?(a[c]=[i],A(c)&&(p[c]=a[c])):(c.value=[i],t.k&&(a[t.k]=c.value))}else K?(a[c]=o,A(c)&&(p[c]=o)):$&&(c.value=o,t.k&&(a[t.k]=o))};o?(rt.id=-1,Mt(rt,s)):rt()}}}ws().requestIdleCallback;ws().cancelIdleCallback;const Me=t=>!!t.type.__asyncLoader,jr=t=>t.type.__isKeepAlive;function uo(t,e){Hr(t,"a",e)}function ao(t,e){Hr(t,"da",e)}function Hr(t,e,s=gt){const n=t.__wdc||(t.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Ts(e,n,s),s){let r=s.parent;for(;r&&r.parent;)jr(r.parent.vnode)&&ho(n,e,s,r),r=r.parent}}function ho(t,e,s,n){const r=Ts(e,t,n,!0);$r(()=>{on(n[e],r)},s)}function Ts(t,e,s=gt,n=!1){if(s){const r=s[t]||(s[t]=[]),i=e.__weh||(e.__weh=(...o)=>{zt();const l=ts(s),c=qt(e,s,t,o);return l(),Qt(),c});return n?r.unshift(i):r.push(i),i}}const te=t=>(e,s=gt)=>{(!Xe||t==="sp")&&Ts(t,(...n)=>e(...n),s)},po=te("bm"),go=te("m"),_o=te("bu"),bo=te("u"),mo=te("bum"),$r=te("um"),vo=te("sp"),yo=te("rtg"),xo=te("rtc");function wo(t,e=gt){Ts("ec",t,e)}const So="components";function Gl(t,e){return Eo(So,t,!0,e)||t}const Co=Symbol.for("v-ndc");function Eo(t,e,s=!0,n=!1){const r=yt||gt;if(r){const i=r.type;{const l=dl(i,!1);if(l&&(l===e||l===wt(e)||l===xs(wt(e))))return i}const o=Nn(r[t]||i[t],e)||Nn(r.appContext[t],e);return!o&&n?i:o}}function Nn(t,e){return t&&(t[e]||t[wt(e)]||t[xs(wt(e))])}function Jl(t,e,s,n){let r;const i=s,o=I(t);if(o||nt(t)){const l=o&&Pe(t);let c=!1,d=!1;l&&(c=!jt(t),d=ce(t),t=Cs(t)),r=new Array(t.length);for(let a=0,p=t.length;a<p;a++)r[a]=e(c?d?as(at(t[a])):at(t[a]):t[a],a,void 0,i)}else if(typeof t=="number"){r=new Array(t);for(let l=0;l<t;l++)r[l]=e(l+1,l,void 0,i)}else if(tt(t))if(t[Symbol.iterator])r=Array.from(t,(l,c)=>e(l,c,void 0,i));else{const l=Object.keys(t);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const a=l[c];r[c]=e(t[a],a,c,i)}}else r=[];return r}function Yl(t,e,s={},n,r){if(yt.ce||yt.parent&&Me(yt.parent)&&yt.parent.ce)return Zs(),tn(Dt,null,[xt("slot",s,n)],64);let i=t[e];i&&i._c&&(i._d=!1),Zs();const o=i&&Lr(i(s)),l=s.key||o&&o.key,c=tn(Dt,{key:(l&&!Zt(l)?l:`_${e}`)+(!o&&n?"_fb":"")},o||[],o&&t._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Lr(t){return t.some(e=>Qe(e)?!(e.type===Xt||e.type===Dt&&!Lr(e.children)):!0)?t:null}const ks=t=>t?oi(t)?Sn(t):ks(t.parent):null,qe=ct(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ks(t.parent),$root:t=>ks(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ur(t),$forceUpdate:t=>t.f||(t.f=()=>{bn(t.update)}),$nextTick:t=>t.n||(t.n=Rr.bind(t.proxy)),$watch:t=>Jo.bind(t)}),$s=(t,e)=>t!==Q&&!t.__isScriptSetup&&G(t,e),To={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=t;let d;if(e[0]!=="$"){const A=o[e];if(A!==void 0)switch(A){case 1:return n[e];case 2:return r[e];case 4:return s[e];case 3:return i[e]}else{if($s(n,e))return o[e]=1,n[e];if(r!==Q&&G(r,e))return o[e]=2,r[e];if((d=t.propsOptions[0])&&G(d,e))return o[e]=3,i[e];if(s!==Q&&G(s,e))return o[e]=4,s[e];zs&&(o[e]=0)}}const a=qe[e];let p,T;if(a)return e==="$attrs"&&pt(t.attrs,"get",""),a(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(s!==Q&&G(s,e))return o[e]=4,s[e];if(T=c.config.globalProperties,G(T,e))return T[e]},set({_:t},e,s){const{data:n,setupState:r,ctx:i}=t;return $s(r,e)?(r[e]=s,!0):n!==Q&&G(n,e)?(n[e]=s,!0):G(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:r,propsOptions:i}},o){let l;return!!s[o]||t!==Q&&G(t,o)||$s(e,o)||(l=i[0])&&G(l,o)||G(n,o)||G(qe,o)||G(r.config.globalProperties,o)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:G(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function Fn(t){return I(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let zs=!0;function Ao(t){const e=Ur(t),s=t.proxy,n=t.ctx;zs=!1,e.beforeCreate&&Dn(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:T,beforeUpdate:A,updated:K,activated:$,deactivated:rt,beforeDestroy:q,beforeUnmount:V,destroyed:U,unmounted:R,render:et,renderTracked:Et,renderTriggered:Tt,errorCaptured:Vt,serverPrefetch:ue,expose:Gt,inheritAttrs:ee,components:ae,directives:he,filters:Fe}=e;if(d&&Oo(d,n,null),o)for(const Z in o){const W=o[Z];D(W)&&(n[Z]=W.bind(s))}if(r){const Z=r.call(s,s);tt(Z)&&(t.data=pn(Z))}if(zs=!0,i)for(const Z in i){const W=i[Z],At=D(W)?W.bind(s,s):D(W.get)?W.get.bind(s,s):Wt,pe=!D(W)&&D(W.set)?W.set.bind(s):Wt,Ht=gl({get:At,set:pe});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>Ht.value,set:Ot=>Ht.value=Ot})}if(l)for(const Z in l)Vr(l[Z],n,s,Z);if(c){const Z=D(c)?c.call(s):c;Reflect.ownKeys(Z).forEach(W=>{Fo(W,Z[W])})}a&&Dn(a,t,"c");function ut(Z,W){I(W)?W.forEach(At=>Z(At.bind(s))):W&&Z(W.bind(s))}if(ut(po,p),ut(go,T),ut(_o,A),ut(bo,K),ut(uo,$),ut(ao,rt),ut(wo,Vt),ut(xo,Et),ut(yo,Tt),ut(mo,V),ut($r,R),ut(vo,ue),I(Gt))if(Gt.length){const Z=t.exposed||(t.exposed={});Gt.forEach(W=>{Object.defineProperty(Z,W,{get:()=>s[W],set:At=>s[W]=At,enumerable:!0})})}else t.exposed||(t.exposed={});et&&t.render===Wt&&(t.render=et),ee!=null&&(t.inheritAttrs=ee),ae&&(t.components=ae),he&&(t.directives=he),ue&&Dr(t)}function Oo(t,e,s=Wt){I(t)&&(t=Qs(t));for(const n in t){const r=t[n];let i;tt(r)?"default"in r?i=fs(r.from||n,r.default,!0):i=fs(r.from||n):i=fs(r),_t(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[n]=i}}function Dn(t,e,s){qt(I(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function Vr(t,e,s,n){let r=n.includes(".")?Zr(s,n):()=>s[n];if(nt(t)){const i=e[t];D(i)&&Vs(r,i)}else if(D(t))Vs(r,t.bind(s));else if(tt(t))if(I(t))t.forEach(i=>Vr(i,e,s,n));else{const i=D(t.handler)?t.handler.bind(s):e[t.handler];D(i)&&Vs(r,i,t)}}function Ur(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,l=i.get(e);let c;return l?c=l:!r.length&&!s&&!n?c=e:(c={},r.length&&r.forEach(d=>gs(c,d,o,!0)),gs(c,e,o)),tt(e)&&i.set(e,c),c}function gs(t,e,s,n=!1){const{mixins:r,extends:i}=e;i&&gs(t,i,s,!0),r&&r.forEach(o=>gs(t,o,s,!0));for(const o in e)if(!(n&&o==="expose")){const l=Po[o]||s&&s[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Po={data:jn,props:Hn,emits:Hn,methods:Ve,computed:Ve,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:Ve,directives:Ve,watch:Mo,provide:jn,inject:Ro};function jn(t,e){return e?t?function(){return ct(D(t)?t.call(this,this):t,D(e)?e.call(this,this):e)}:e:t}function Ro(t,e){return Ve(Qs(t),Qs(e))}function Qs(t){if(I(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function mt(t,e){return t?[...new Set([].concat(t,e))]:e}function Ve(t,e){return t?ct(Object.create(null),t,e):e}function Hn(t,e){return t?I(t)&&I(e)?[...new Set([...t,...e])]:ct(Object.create(null),Fn(t),Fn(e??{})):e}function Mo(t,e){if(!t)return e;if(!e)return t;const s=ct(Object.create(null),t);for(const n in e)s[n]=mt(t[n],e[n]);return s}function Kr(){return{app:null,config:{isNativeTag:pi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Io=0;function No(t,e){return function(n,r=null){D(n)||(n=ct({},n)),r!=null&&!tt(r)&&(r=null);const i=Kr(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:Io++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_l,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&D(a.install)?(o.add(a),a.install(d,...p)):D(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,T){if(!c){const A=d._ceVNode||xt(n,r);return A.appContext=i,T===!0?T="svg":T===!1&&(T=void 0),t(A,a,T),c=!0,d._container=a,a.__vue_app__=d,Sn(A.component)}},onUnmount(a){l.push(a)},unmount(){c&&(qt(l,d._instance,16),t(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=Ie;Ie=d;try{return a()}finally{Ie=p}}};return d}}let Ie=null;function Fo(t,e){if(gt){let s=gt.provides;const n=gt.parent&&gt.parent.provides;n===s&&(s=gt.provides=Object.create(n)),s[t]=e}}function fs(t,e,s=!1){const n=ii();if(n||Ie){let r=Ie?Ie._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return s&&D(e)?e.call(n&&n.proxy):e}}const Br={},Wr=()=>Object.create(Br),qr=t=>Object.getPrototypeOf(t)===Br;function Do(t,e,s,n=!1){const r={},i=Wr();t.propsDefaults=Object.create(null),Gr(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);s?t.props=n?r:Ji(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function jo(t,e,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,l=k(r),[c]=t.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=t.vnode.dynamicProps;for(let p=0;p<a.length;p++){let T=a[p];if(As(t.emitsOptions,T))continue;const A=e[T];if(c)if(G(i,T))A!==i[T]&&(i[T]=A,d=!0);else{const K=wt(T);r[K]=Xs(c,l,K,A,t,!1)}else A!==i[T]&&(i[T]=A,d=!0)}}}else{Gr(t,e,r,i)&&(d=!0);let a;for(const p in l)(!e||!G(e,p)&&((a=It(p))===p||!G(e,a)))&&(c?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=Xs(c,l,p,void 0,t,!0)):delete r[p]);if(i!==l)for(const p in i)(!e||!G(e,p))&&(delete i[p],d=!0)}d&&kt(t.attrs,"set","")}function Gr(t,e,s,n){const[r,i]=t.propsOptions;let o=!1,l;if(e)for(let c in e){if(Ue(c))continue;const d=e[c];let a;r&&G(r,a=wt(c))?!i||!i.includes(a)?s[a]=d:(l||(l={}))[a]=d:As(t.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,o=!0)}if(i){const c=k(s),d=l||Q;for(let a=0;a<i.length;a++){const p=i[a];s[p]=Xs(r,c,p,d[p],t,!G(d,p))}}return o}function Xs(t,e,s,n,r,i){const o=t[s];if(o!=null){const l=G(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&D(c)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const a=ts(r);n=d[s]=c.call(null,e),a()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===It(s))&&(n=!0))}return n}const Ho=new WeakMap;function Jr(t,e,s=!1){const n=s?Ho:e.propsCache,r=n.get(t);if(r)return r;const i=t.props,o={},l=[];let c=!1;if(!D(t)){const a=p=>{c=!0;const[T,A]=Jr(p,e,!0);ct(o,T),A&&l.push(...A)};!s&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}if(!i&&!c)return tt(t)&&n.set(t,Ae),Ae;if(I(i))for(let a=0;a<i.length;a++){const p=wt(i[a]);$n(p)&&(o[p]=Q)}else if(i)for(const a in i){const p=wt(a);if($n(p)){const T=i[a],A=o[p]=I(T)||D(T)?{type:T}:ct({},T),K=A.type;let $=!1,rt=!0;if(I(K))for(let q=0;q<K.length;++q){const V=K[q],U=D(V)&&V.name;if(U==="Boolean"){$=!0;break}else U==="String"&&(rt=!1)}else $=D(K)&&K.name==="Boolean";A[0]=$,A[1]=rt,($||G(A,"default"))&&l.push(p)}}const d=[o,l];return tt(t)&&n.set(t,d),d}function $n(t){return t[0]!=="$"&&!Ue(t)}const vn=t=>t==="_"||t==="__"||t==="_ctx"||t==="$stable",yn=t=>I(t)?t.map(Bt):[Bt(t)],$o=(t,e,s)=>{if(e._n)return e;const n=oo((...r)=>yn(e(...r)),s);return n._c=!1,n},Yr=(t,e,s)=>{const n=t._ctx;for(const r in t){if(vn(r))continue;const i=t[r];if(D(i))e[r]=$o(r,i,n);else if(i!=null){const o=yn(i);e[r]=()=>o}}},kr=(t,e)=>{const s=yn(e);t.slots.default=()=>s},zr=(t,e,s)=>{for(const n in e)(s||!vn(n))&&(t[n]=e[n])},Lo=(t,e,s)=>{const n=t.slots=Wr();if(t.vnode.shapeFlag&32){const r=e.__;r&&Ws(n,"__",r,!0);const i=e._;i?(zr(n,e,s),s&&Ws(n,"_",i,!0)):Yr(e,n)}else e&&kr(t,e)},Vo=(t,e,s)=>{const{vnode:n,slots:r}=t;let i=!0,o=Q;if(n.shapeFlag&32){const l=e._;l?s&&l===1?i=!1:zr(r,e,s):(i=!e.$stable,Yr(e,r)),o=e}else e&&(kr(t,e),o={default:1});if(i)for(const l in r)!vn(l)&&o[l]==null&&delete r[l]},Mt=tl;function Uo(t){return Ko(t)}function Ko(t,e){const s=ws();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:T,setScopeId:A=Wt,insertStaticContent:K}=t,$=(f,u,h,m=null,g=null,b=null,C=void 0,x=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!Le(f,u)&&(m=ge(f),Ot(f,g,b,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:v,ref:P,shapeFlag:E}=u;switch(v){case Os:rt(f,u,h,m);break;case Xt:q(f,u,h,m);break;case Us:f==null&&V(u,h,m,C);break;case Dt:ae(f,u,h,m,g,b,C,x,y);break;default:E&1?et(f,u,h,m,g,b,C,x,y):E&6?he(f,u,h,m,g,b,C,x,y):(E&64||E&128)&&v.process(f,u,h,m,g,b,C,x,y,_e)}P!=null&&g?We(P,f&&f.ref,b,u||f,!u):P==null&&f&&f.ref!=null&&We(f.ref,null,b,f,!0)},rt=(f,u,h,m)=>{if(f==null)n(u.el=l(u.children),h,m);else{const g=u.el=f.el;u.children!==f.children&&d(g,u.children)}},q=(f,u,h,m)=>{f==null?n(u.el=c(u.children||""),h,m):u.el=f.el},V=(f,u,h,m)=>{[f.el,f.anchor]=K(f.children,u,h,m,f.el,f.anchor)},U=({el:f,anchor:u},h,m)=>{let g;for(;f&&f!==u;)g=T(f),n(f,h,m),f=g;n(u,h,m)},R=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=T(f),r(f),f=h;r(u)},et=(f,u,h,m,g,b,C,x,y)=>{u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),f==null?Et(u,h,m,g,b,C,x,y):ue(f,u,g,b,C,x,y)},Et=(f,u,h,m,g,b,C,x)=>{let y,v;const{props:P,shapeFlag:E,transition:O,dirs:M}=f;if(y=f.el=o(f.type,b,P&&P.is,P),E&8?a(y,f.children):E&16&&Vt(f.children,y,null,m,g,Ls(f,b),C,x),M&&me(f,null,m,"created"),Tt(y,f,f.scopeId,C,m),P){for(const J in P)J!=="value"&&!Ue(J)&&i(y,J,null,P[J],b,m);"value"in P&&i(y,"value",null,P.value,b),(v=P.onVnodeBeforeMount)&&Ut(v,m,f)}M&&me(f,null,m,"beforeMount");const L=Bo(g,O);L&&O.beforeEnter(y),n(y,u,h),((v=P&&P.onVnodeMounted)||L||M)&&Mt(()=>{v&&Ut(v,m,f),L&&O.enter(y),M&&me(f,null,m,"mounted")},g)},Tt=(f,u,h,m,g)=>{if(h&&A(f,h),m)for(let b=0;b<m.length;b++)A(f,m[b]);if(g){let b=g.subTree;if(u===b||ei(b.type)&&(b.ssContent===u||b.ssFallback===u)){const C=g.vnode;Tt(f,C,C.scopeId,C.slotScopeIds,g.parent)}}},Vt=(f,u,h,m,g,b,C,x,y=0)=>{for(let v=y;v<f.length;v++){const P=f[v]=x?oe(f[v]):Bt(f[v]);$(null,P,u,h,m,g,b,C,x)}},ue=(f,u,h,m,g,b,C)=>{const x=u.el=f.el;let{patchFlag:y,dynamicChildren:v,dirs:P}=u;y|=f.patchFlag&16;const E=f.props||Q,O=u.props||Q;let M;if(h&&ve(h,!1),(M=O.onVnodeBeforeUpdate)&&Ut(M,h,u,f),P&&me(u,f,h,"beforeUpdate"),h&&ve(h,!0),(E.innerHTML&&O.innerHTML==null||E.textContent&&O.textContent==null)&&a(x,""),v?Gt(f.dynamicChildren,v,x,h,m,Ls(u,g),b):C||W(f,u,x,null,h,m,Ls(u,g),b,!1),y>0){if(y&16)ee(x,E,O,h,g);else if(y&2&&E.class!==O.class&&i(x,"class",null,O.class,g),y&4&&i(x,"style",E.style,O.style,g),y&8){const L=u.dynamicProps;for(let J=0;J<L.length;J++){const B=L[J],it=E[B],ot=O[B];(ot!==it||B==="value")&&i(x,B,it,ot,g,h)}}y&1&&f.children!==u.children&&a(x,u.children)}else!C&&v==null&&ee(x,E,O,h,g);((M=O.onVnodeUpdated)||P)&&Mt(()=>{M&&Ut(M,h,u,f),P&&me(u,f,h,"updated")},m)},Gt=(f,u,h,m,g,b,C)=>{for(let x=0;x<u.length;x++){const y=f[x],v=u[x],P=y.el&&(y.type===Dt||!Le(y,v)||y.shapeFlag&198)?p(y.el):h;$(y,v,P,null,m,g,b,C,!0)}},ee=(f,u,h,m,g)=>{if(u!==h){if(u!==Q)for(const b in u)!Ue(b)&&!(b in h)&&i(f,b,u[b],null,g,m);for(const b in h){if(Ue(b))continue;const C=h[b],x=u[b];C!==x&&b!=="value"&&i(f,b,x,C,g,m)}"value"in h&&i(f,"value",u.value,h.value,g)}},ae=(f,u,h,m,g,b,C,x,y)=>{const v=u.el=f?f.el:l(""),P=u.anchor=f?f.anchor:l("");let{patchFlag:E,dynamicChildren:O,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(n(v,h,m),n(P,h,m),Vt(u.children||[],h,P,g,b,C,x,y)):E>0&&E&64&&O&&f.dynamicChildren?(Gt(f.dynamicChildren,O,h,g,b,C,x),(u.key!=null||g&&u===g.subTree)&&Qr(f,u,!0)):W(f,u,h,P,g,b,C,x,y)},he=(f,u,h,m,g,b,C,x,y)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?g.ctx.activate(u,h,m,C,y):Fe(u,h,m,g,b,C,y):de(f,u,y)},Fe=(f,u,h,m,g,b,C)=>{const x=f.component=fl(f,m,g);if(jr(f)&&(x.ctx.renderer=_e),cl(x,!1,C),x.asyncDep){if(g&&g.registerDep(x,ut,C),!f.el){const y=x.subTree=xt(Xt);q(null,y,u,h),f.placeholder=y.el}}else ut(x,f,u,h,g,b,C)},de=(f,u,h)=>{const m=u.component=f.component;if(Xo(f,u,h))if(m.asyncDep&&!m.asyncResolved){Z(m,u,h);return}else m.next=u,m.update();else u.el=f.el,m.vnode=u},ut=(f,u,h,m,g,b,C)=>{const x=()=>{if(f.isMounted){let{next:E,bu:O,u:M,parent:L,vnode:J}=f;{const bt=Xr(f);if(bt){E&&(E.el=J.el,Z(f,E,C)),bt.asyncDep.then(()=>{f.isUnmounted||x()});return}}let B=E,it;ve(f,!1),E?(E.el=J.el,Z(f,E,C)):E=J,O&&Ns(O),(it=E.props&&E.props.onVnodeBeforeUpdate)&&Ut(it,L,E,J),ve(f,!0);const ot=Vn(f),Pt=f.subTree;f.subTree=ot,$(Pt,ot,p(Pt.el),ge(Pt),f,g,b),E.el=ot.el,B===null&&Zo(f,ot.el),M&&Mt(M,g),(it=E.props&&E.props.onVnodeUpdated)&&Mt(()=>Ut(it,L,E,J),g)}else{let E;const{el:O,props:M}=u,{bm:L,m:J,parent:B,root:it,type:ot}=f,Pt=Me(u);ve(f,!1),L&&Ns(L),!Pt&&(E=M&&M.onVnodeBeforeMount)&&Ut(E,B,u),ve(f,!0);{it.ce&&it.ce._def.shadowRoot!==!1&&it.ce._injectChildStyle(ot);const bt=f.subTree=Vn(f);$(null,bt,h,m,f,g,b),u.el=bt.el}if(J&&Mt(J,g),!Pt&&(E=M&&M.onVnodeMounted)){const bt=u;Mt(()=>Ut(E,B,bt),g)}(u.shapeFlag&256||B&&Me(B.vnode)&&B.vnode.shapeFlag&256)&&f.a&&Mt(f.a,g),f.isMounted=!0,u=h=m=null}};f.scope.on();const y=f.effect=new ar(x);f.scope.off();const v=f.update=y.run.bind(y),P=f.job=y.runIfDirty.bind(y);P.i=f,P.id=f.uid,y.scheduler=()=>bn(P),ve(f,!0),v()},Z=(f,u,h)=>{u.component=f;const m=f.vnode.props;f.vnode=u,f.next=null,jo(f,u.props,m,h),Vo(f,u.children,h),zt(),In(f),Qt()},W=(f,u,h,m,g,b,C,x,y=!1)=>{const v=f&&f.children,P=f?f.shapeFlag:0,E=u.children,{patchFlag:O,shapeFlag:M}=u;if(O>0){if(O&128){pe(v,E,h,m,g,b,C,x,y);return}else if(O&256){At(v,E,h,m,g,b,C,x,y);return}}M&8?(P&16&&$t(v,g,b),E!==v&&a(h,E)):P&16?M&16?pe(v,E,h,m,g,b,C,x,y):$t(v,g,b,!0):(P&8&&a(h,""),M&16&&Vt(E,h,m,g,b,C,x,y))},At=(f,u,h,m,g,b,C,x,y)=>{f=f||Ae,u=u||Ae;const v=f.length,P=u.length,E=Math.min(v,P);let O;for(O=0;O<E;O++){const M=u[O]=y?oe(u[O]):Bt(u[O]);$(f[O],M,h,null,g,b,C,x,y)}v>P?$t(f,g,b,!0,!1,E):Vt(u,h,m,g,b,C,x,y,E)},pe=(f,u,h,m,g,b,C,x,y)=>{let v=0;const P=u.length;let E=f.length-1,O=P-1;for(;v<=E&&v<=O;){const M=f[v],L=u[v]=y?oe(u[v]):Bt(u[v]);if(Le(M,L))$(M,L,h,null,g,b,C,x,y);else break;v++}for(;v<=E&&v<=O;){const M=f[E],L=u[O]=y?oe(u[O]):Bt(u[O]);if(Le(M,L))$(M,L,h,null,g,b,C,x,y);else break;E--,O--}if(v>E){if(v<=O){const M=O+1,L=M<P?u[M].el:m;for(;v<=O;)$(null,u[v]=y?oe(u[v]):Bt(u[v]),h,L,g,b,C,x,y),v++}}else if(v>O)for(;v<=E;)Ot(f[v],g,b,!0),v++;else{const M=v,L=v,J=new Map;for(v=L;v<=O;v++){const ht=u[v]=y?oe(u[v]):Bt(u[v]);ht.key!=null&&J.set(ht.key,v)}let B,it=0;const ot=O-L+1;let Pt=!1,bt=0;const se=new Array(ot);for(v=0;v<ot;v++)se[v]=0;for(v=M;v<=E;v++){const ht=f[v];if(it>=ot){Ot(ht,g,b,!0);continue}let Ft;if(ht.key!=null)Ft=J.get(ht.key);else for(B=L;B<=O;B++)if(se[B-L]===0&&Le(ht,u[B])){Ft=B;break}Ft===void 0?Ot(ht,g,b,!0):(se[Ft-L]=v+1,Ft>=bt?bt=Ft:Pt=!0,$(ht,u[Ft],h,null,g,b,C,x,y),it++)}const be=Pt?Wo(se):Ae;for(B=be.length-1,v=ot-1;v>=0;v--){const ht=L+v,Ft=u[ht],ns=u[ht+1],He=ht+1<P?ns.el||ns.placeholder:m;se[v]===0?$(null,Ft,h,He,g,b,C,x,y):Pt&&(B<0||v!==be[B]?Ht(Ft,h,He,2):B--)}}},Ht=(f,u,h,m,g=null)=>{const{el:b,type:C,transition:x,children:y,shapeFlag:v}=f;if(v&6){Ht(f.component.subTree,u,h,m);return}if(v&128){f.suspense.move(u,h,m);return}if(v&64){C.move(f,u,h,_e);return}if(C===Dt){n(b,u,h);for(let E=0;E<y.length;E++)Ht(y[E],u,h,m);n(f.anchor,u,h);return}if(C===Us){U(f,u,h);return}if(m!==2&&v&1&&x)if(m===0)x.beforeEnter(b),n(b,u,h),Mt(()=>x.enter(b),g);else{const{leave:E,delayLeave:O,afterLeave:M}=x,L=()=>{f.ctx.isUnmounted?r(b):n(b,u,h)},J=()=>{E(b,()=>{L(),M&&M()})};O?O(b,L,J):J()}else n(b,u,h)},Ot=(f,u,h,m=!1,g=!1)=>{const{type:b,props:C,ref:x,children:y,dynamicChildren:v,shapeFlag:P,patchFlag:E,dirs:O,cacheIndex:M}=f;if(E===-2&&(g=!1),x!=null&&(zt(),We(x,null,h,f,!0),Qt()),M!=null&&(u.renderCache[M]=void 0),P&256){u.ctx.deactivate(f);return}const L=P&1&&O,J=!Me(f);let B;if(J&&(B=C&&C.onVnodeBeforeUnmount)&&Ut(B,u,f),P&6)es(f.component,h,m);else{if(P&128){f.suspense.unmount(h,m);return}L&&me(f,null,u,"beforeUnmount"),P&64?f.type.remove(f,u,h,_e,m):v&&!v.hasOnce&&(b!==Dt||E>0&&E&64)?$t(v,u,h,!1,!0):(b===Dt&&E&384||!g&&P&16)&&$t(y,u,h),m&&we(f)}(J&&(B=C&&C.onVnodeUnmounted)||L)&&Mt(()=>{B&&Ut(B,u,f),L&&me(f,null,u,"unmounted")},h)},we=f=>{const{type:u,el:h,anchor:m,transition:g}=f;if(u===Dt){Se(h,m);return}if(u===Us){R(f);return}const b=()=>{r(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(f.shapeFlag&1&&g&&!g.persisted){const{leave:C,delayLeave:x}=g,y=()=>C(h,b);x?x(f.el,b,y):y()}else b()},Se=(f,u)=>{let h;for(;f!==u;)h=T(f),r(f),f=h;r(u)},es=(f,u,h)=>{const{bum:m,scope:g,job:b,subTree:C,um:x,m:y,a:v,parent:P,slots:{__:E}}=f;Ln(y),Ln(v),m&&Ns(m),P&&I(E)&&E.forEach(O=>{P.renderCache[O]=void 0}),g.stop(),b&&(b.flags|=8,Ot(C,f,u,h)),x&&Mt(x,u),Mt(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},$t=(f,u,h,m=!1,g=!1,b=0)=>{for(let C=b;C<f.length;C++)Ot(f[C],u,h,m,g)},ge=f=>{if(f.shapeFlag&6)return ge(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=T(f.anchor||f.el),h=u&&u[lo];return h?T(h):u};let De=!1;const ss=(f,u,h)=>{f==null?u._vnode&&Ot(u._vnode,null,null,!0):$(u._vnode||null,f,u,null,null,null,h),u._vnode=f,De||(De=!0,In(),Ir(),De=!1)},_e={p:$,um:Ot,m:Ht,r:we,mt:Fe,mc:Vt,pc:W,pbc:Gt,n:ge,o:t};return{render:ss,hydrate:void 0,createApp:No(ss)}}function Ls({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function ve({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Bo(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Qr(t,e,s=!1){const n=t.children,r=e.children;if(I(n)&&I(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=oe(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Qr(o,l)),l.type===Os&&(l.el=o.el),l.type===Xt&&!l.el&&(l.el=o.el)}}function Wo(t){const e=t.slice(),s=[0];let n,r,i,o,l;const c=t.length;for(n=0;n<c;n++){const d=t[n];if(d!==0){if(r=s[s.length-1],t[r]<d){e[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,t[s[l]]<d?i=l+1:o=l;d<t[s[i]]&&(i>0&&(e[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=e[o];return s}function Xr(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Xr(e)}function Ln(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const qo=Symbol.for("v-scx"),Go=()=>fs(qo);function kl(t,e){return xn(t,null,e)}function Vs(t,e,s){return xn(t,e,s)}function xn(t,e,s=Q){const{immediate:n,deep:r,flush:i,once:o}=s,l=ct({},s),c=e&&n||!e&&i!=="post";let d;if(Xe){if(i==="sync"){const A=Go();d=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=Wt,A.resume=Wt,A.pause=Wt,A}}const a=gt;l.call=(A,K,$)=>qt(A,a,K,$);let p=!1;i==="post"?l.scheduler=A=>{Mt(A,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(A,K)=>{K?A():bn(A)}),l.augmentJob=A=>{e&&(A.flags|=4),p&&(A.flags|=2,a&&(A.id=a.uid,A.i=a))};const T=so(t,e,l);return Xe&&(d?d.push(T):c&&T()),T}function Jo(t,e,s){const n=this.proxy,r=nt(t)?t.includes(".")?Zr(n,t):()=>n[t]:t.bind(n,n);let i;D(e)?i=e:(i=e.handler,s=e);const o=ts(this),l=xn(r,i.bind(n),s);return o(),l}function Zr(t,e){const s=e.split(".");return()=>{let n=t;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Yo=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${wt(e)}Modifiers`]||t[`${It(e)}Modifiers`];function ko(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Q;let r=s;const i=e.startsWith("update:"),o=i&&Yo(n,e.slice(7));o&&(o.trim&&(r=s.map(a=>nt(a)?a.trim():a)),o.number&&(r=s.map(vi)));let l,c=n[l=Is(e)]||n[l=Is(wt(e))];!c&&i&&(c=n[l=Is(It(e))]),c&&qt(c,t,6,r);const d=n[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,qt(d,t,6,r)}}function ti(t,e,s=!1){const n=e.emitsCache,r=n.get(t);if(r!==void 0)return r;const i=t.emits;let o={},l=!1;if(!D(t)){const c=d=>{const a=ti(d,e,!0);a&&(l=!0,ct(o,a))};!s&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!i&&!l?(tt(t)&&n.set(t,null),null):(I(i)?i.forEach(c=>o[c]=null):ct(o,i),tt(t)&&n.set(t,o),o)}function As(t,e){return!t||!bs(e)?!1:(e=e.slice(2).replace(/Once$/,""),G(t,e[0].toLowerCase()+e.slice(1))||G(t,It(e))||G(t,e))}function Vn(t){const{type:e,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:a,props:p,data:T,setupState:A,ctx:K,inheritAttrs:$}=t,rt=ps(t);let q,V;try{if(s.shapeFlag&4){const R=r||n,et=R;q=Bt(d.call(et,R,a,p,A,T,K)),V=l}else{const R=e;q=Bt(R.length>1?R(p,{attrs:l,slots:o,emit:c}):R(p,null)),V=e.props?l:zo(l)}}catch(R){Ge.length=0,Es(R,t,1),q=xt(Xt)}let U=q;if(V&&$!==!1){const R=Object.keys(V),{shapeFlag:et}=U;R.length&&et&7&&(i&&R.some(rn)&&(V=Qo(V,i)),U=Ne(U,V,!1,!0))}return s.dirs&&(U=Ne(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition&&mn(U,s.transition),q=U,ps(rt),q}const zo=t=>{let e;for(const s in t)(s==="class"||s==="style"||bs(s))&&((e||(e={}))[s]=t[s]);return e},Qo=(t,e)=>{const s={};for(const n in t)(!rn(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function Xo(t,e,s){const{props:n,children:r,component:i}=t,{props:o,children:l,patchFlag:c}=e,d=i.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Un(n,o,d):!!o;if(c&8){const a=e.dynamicProps;for(let p=0;p<a.length;p++){const T=a[p];if(o[T]!==n[T]&&!As(d,T))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Un(n,o,d):!0:!!o;return!1}function Un(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(e[i]!==t[i]&&!As(s,i))return!0}return!1}function Zo({vnode:t,parent:e},s){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=s,e=e.parent;else break}}const ei=t=>t.__isSuspense;function tl(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):io(t)}const Dt=Symbol.for("v-fgt"),Os=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),Ge=[];let Nt=null;function Zs(t=!1){Ge.push(Nt=t?null:[])}function el(){Ge.pop(),Nt=Ge[Ge.length-1]||null}let ze=1;function Kn(t,e=!1){ze+=t,t<0&&Nt&&e&&(Nt.hasOnce=!0)}function si(t){return t.dynamicChildren=ze>0?Nt||Ae:null,el(),ze>0&&Nt&&Nt.push(t),t}function zl(t,e,s,n,r,i){return si(ri(t,e,s,n,r,i,!0))}function tn(t,e,s,n,r){return si(xt(t,e,s,n,r,!0))}function Qe(t){return t?t.__v_isVNode===!0:!1}function Le(t,e){return t.type===e.type&&t.key===e.key}const ni=({key:t})=>t??null,cs=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?nt(t)||_t(t)||D(t)?{i:yt,r:t,k:e,f:!!s}:t:null);function ri(t,e=null,s=null,n=0,r=null,i=t===Dt?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ni(e),ref:e&&cs(e),scopeId:Fr,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:yt};return l?(wn(c,s),i&128&&t.normalize(c)):s&&(c.shapeFlag|=nt(s)?8:16),ze>0&&!o&&Nt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Nt.push(c),c}const xt=sl;function sl(t,e=null,s=null,n=0,r=null,i=!1){if((!t||t===Co)&&(t=Xt),Qe(t)){const l=Ne(t,e,!0);return s&&wn(l,s),ze>0&&!i&&Nt&&(l.shapeFlag&6?Nt[Nt.indexOf(t)]=l:Nt.push(l)),l.patchFlag=-2,l}if(pl(t)&&(t=t.__vccOpts),e){e=nl(e);let{class:l,style:c}=e;l&&!nt(l)&&(e.class=cn(l)),tt(c)&&(_n(c)&&!I(c)&&(c=ct({},c)),e.style=fn(c))}const o=nt(t)?1:ei(t)?128:fo(t)?64:tt(t)?4:D(t)?2:0;return ri(t,e,s,n,r,o,i,!0)}function nl(t){return t?_n(t)||qr(t)?ct({},t):t:null}function Ne(t,e,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=t,d=e?il(r||{},e):r,a={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&ni(d),ref:e&&e.ref?s&&i?I(i)?i.concat(cs(e)):[i,cs(e)]:cs(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Dt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ne(t.ssContent),ssFallback:t.ssFallback&&Ne(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&n&&mn(a,c.clone(a)),a}function rl(t=" ",e=0){return xt(Os,null,t,e)}function Ql(t="",e=!1){return e?(Zs(),tn(Xt,null,t)):xt(Xt,null,t)}function Bt(t){return t==null||typeof t=="boolean"?xt(Xt):I(t)?xt(Dt,null,t.slice()):Qe(t)?oe(t):xt(Os,null,String(t))}function oe(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ne(t)}function wn(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(I(e))s=16;else if(typeof e=="object")if(n&65){const r=e.default;r&&(r._c&&(r._d=!1),wn(t,r()),r._c&&(r._d=!0));return}else{s=32;const r=e._;!r&&!qr(e)?e._ctx=yt:r===3&&yt&&(yt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else D(e)?(e={default:e,_ctx:yt},s=32):(e=String(e),n&64?(s=16,e=[rl(e)]):s=8);t.children=e,t.shapeFlag|=s}function il(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const r in n)if(r==="class")e.class!==n.class&&(e.class=cn([e.class,n.class]));else if(r==="style")e.style=fn([e.style,n.style]);else if(bs(r)){const i=e[r],o=n[r];o&&i!==o&&!(I(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=n[r])}return e}function Ut(t,e,s,n=null){qt(t,e,7,[s,n])}const ol=Kr();let ll=0;function fl(t,e,s){const n=t.type,r=(e?e.appContext:t.appContext)||ol,i={uid:ll++,vnode:t,type:n,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jr(n,r),emitsOptions:ti(n,r),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:n.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=ko.bind(null,i),t.ce&&t.ce(i),i}let gt=null;const ii=()=>gt||yt;let _s,en;{const t=ws(),e=(s,n)=>{let r;return(r=t[s])||(r=t[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};_s=e("__VUE_INSTANCE_SETTERS__",s=>gt=s),en=e("__VUE_SSR_SETTERS__",s=>Xe=s)}const ts=t=>{const e=gt;return _s(t),t.scope.on(),()=>{t.scope.off(),_s(e)}},Bn=()=>{gt&&gt.scope.off(),_s(null)};function oi(t){return t.vnode.shapeFlag&4}let Xe=!1;function cl(t,e=!1,s=!1){e&&en(e);const{props:n,children:r}=t.vnode,i=oi(t);Do(t,n,i,e),Lo(t,r,s||e);const o=i?ul(t,e):void 0;return e&&en(!1),o}function ul(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,To);const{setup:n}=s;if(n){zt();const r=t.setupContext=n.length>1?hl(t):null,i=ts(t),o=Ze(n,t,0,[t.props,r]),l=or(o);if(Qt(),i(),(l||t.sp)&&!Me(t)&&Dr(t),l){if(o.then(Bn,Bn),e)return o.then(c=>{Wn(t,c)}).catch(c=>{Es(c,t,0)});t.asyncDep=o}else Wn(t,o)}else li(t)}function Wn(t,e,s){D(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:tt(e)&&(t.setupState=Or(e)),li(t)}function li(t,e,s){const n=t.type;t.render||(t.render=n.render||Wt);{const r=ts(t);zt();try{Ao(t)}finally{Qt(),r()}}}const al={get(t,e){return pt(t,"get",""),t[e]}};function hl(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,al),slots:t.slots,emit:t.emit,expose:e}}function Sn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Or(Yi(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in qe)return qe[s](t)},has(e,s){return s in e||s in qe}})):t.proxy}function dl(t,e=!0){return D(t)?t.displayName||t.name:t.name||e&&t.__name}function pl(t){return D(t)&&"__vccOpts"in t}const gl=(t,e)=>to(t,e,Xe);function Xl(t,e,s){const n=arguments.length;return n===2?tt(e)&&!I(e)?Qe(e)?xt(t,null,[e]):xt(t,e):xt(t,null,e):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Qe(s)&&(s=[s]),xt(t,e,s))}const _l="3.5.18";/**
14
+ **/function Ze(t,e,s,n){try{return n?t(...n):t()}catch(r){Es(r,e,s)}}function qt(t,e,s,n){if(D(t)){const r=Ze(t,e,s,n);return r&&or(r)&&r.catch(i=>{Es(i,e,s)}),r}if(I(t)){const r=[];for(let i=0;i<t.length;i++)r.push(qt(t[i],e,s,n));return r}}function Es(t,e,s,n=!0){const r=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Q;if(e){let l=e.parent;const c=e.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](t,c,d)===!1)return}l=l.parent}if(i){zt(),Ze(i,null,10,[t,c,d]),Qt();return}}no(t,s,r,n,o)}function no(t,e,s,n=!0,r=!1){if(r)throw t;console.error(t)}const vt=[];let Kt=-1;const Re=[];let ie=null,Te=0;const Pr=Promise.resolve();let ds=null;function Rr(t){const e=ds||Pr;return t?e.then(this?t.bind(this):t):e}function ro(t){let e=Kt+1,s=vt.length;for(;e<s;){const n=e+s>>>1,r=vt[n],i=ke(r);i<t||i===t&&r.flags&2?e=n+1:s=n}return e}function bn(t){if(!(t.flags&1)){const e=ke(t),s=vt[vt.length-1];!s||!(t.flags&2)&&e>=ke(s)?vt.push(t):vt.splice(ro(e),0,t),t.flags|=1,Mr()}}function Mr(){ds||(ds=Pr.then(Nr))}function io(t){I(t)?Re.push(...t):ie&&t.id===-1?ie.splice(Te+1,0,t):t.flags&1||(Re.push(t),t.flags|=1),Mr()}function In(t,e,s=Kt+1){for(;s<vt.length;s++){const n=vt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;vt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ir(t){if(Re.length){const e=[...new Set(Re)].sort((s,n)=>ke(s)-ke(n));if(Re.length=0,ie){ie.push(...e);return}for(ie=e,Te=0;Te<ie.length;Te++){const s=ie[Te];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}ie=null,Te=0}}const ke=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Nr(t){try{for(Kt=0;Kt<vt.length;Kt++){const e=vt[Kt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Ze(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Kt<vt.length;Kt++){const e=vt[Kt];e&&(e.flags&=-2)}Kt=-1,vt.length=0,Ir(),ds=null,(vt.length||Re.length)&&Nr()}}let yt=null,Fr=null;function ps(t){const e=yt;return yt=t,Fr=t&&t.type.__scopeId||null,e}function oo(t,e=yt,s){if(!e||t._n)return t;const n=(...r)=>{n._d&&Kn(-1);const i=ps(e);let o;try{o=t(...r)}finally{ps(i),n._d&&Kn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function me(t,e,s,n){const r=t.dirs,i=e&&e.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[n];c&&(zt(),qt(c,s,8,[t.el,l,t,e]),Qt())}}const lo=Symbol("_vte"),fo=t=>t.__isTeleport;function mn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,mn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}/*! #__NO_SIDE_EFFECTS__ */function co(t,e){return D(t)?ct({name:t.name},e,{setup:t}):t}function Dr(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ql(t){const e=ii(),s=ki(null);if(e){const r=e.refs===Q?e.refs={}:e.refs;Object.defineProperty(r,t,{enumerable:!0,get:()=>s.value,set:i=>s.value=i})}return s}function We(t,e,s,n,r=!1){if(I(t)){t.forEach((K,$)=>We(K,e&&(I(e)?e[$]:e),s,n,r));return}if(Me(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&We(t,e,s,n.component.subTree);return}const i=n.shapeFlag&4?Sn(n.component):n.el,o=r?null:i,{i:l,r:c}=t,d=e&&e.r,a=l.refs===Q?l.refs={}:l.refs,p=l.setupState,T=k(p),A=p===Q?()=>!1:K=>G(T,K);if(d!=null&&d!==c&&(nt(d)?(a[d]=null,A(d)&&(p[d]=null)):_t(d)&&(d.value=null)),D(c))Ze(c,l,12,[o,a]);else{const K=nt(c),$=_t(c);if(K||$){const rt=()=>{if(t.f){const q=K?A(c)?p[c]:a[c]:c.value;r?I(q)&&on(q,i):I(q)?q.includes(i)||q.push(i):K?(a[c]=[i],A(c)&&(p[c]=a[c])):(c.value=[i],t.k&&(a[t.k]=c.value))}else K?(a[c]=o,A(c)&&(p[c]=o)):$&&(c.value=o,t.k&&(a[t.k]=o))};o?(rt.id=-1,Mt(rt,s)):rt()}}}ws().requestIdleCallback;ws().cancelIdleCallback;const Me=t=>!!t.type.__asyncLoader,jr=t=>t.type.__isKeepAlive;function uo(t,e){Hr(t,"a",e)}function ao(t,e){Hr(t,"da",e)}function Hr(t,e,s=gt){const n=t.__wdc||(t.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(Ts(e,n,s),s){let r=s.parent;for(;r&&r.parent;)jr(r.parent.vnode)&&ho(n,e,s,r),r=r.parent}}function ho(t,e,s,n){const r=Ts(e,t,n,!0);$r(()=>{on(n[e],r)},s)}function Ts(t,e,s=gt,n=!1){if(s){const r=s[t]||(s[t]=[]),i=e.__weh||(e.__weh=(...o)=>{zt();const l=ts(s),c=qt(e,s,t,o);return l(),Qt(),c});return n?r.unshift(i):r.push(i),i}}const te=t=>(e,s=gt)=>{(!Xe||t==="sp")&&Ts(t,(...n)=>e(...n),s)},po=te("bm"),go=te("m"),_o=te("bu"),bo=te("u"),mo=te("bum"),$r=te("um"),vo=te("sp"),yo=te("rtg"),xo=te("rtc");function wo(t,e=gt){Ts("ec",t,e)}const So="components";function Gl(t,e){return Eo(So,t,!0,e)||t}const Co=Symbol.for("v-ndc");function Eo(t,e,s=!0,n=!1){const r=yt||gt;if(r){const i=r.type;{const l=dl(i,!1);if(l&&(l===e||l===wt(e)||l===xs(wt(e))))return i}const o=Nn(r[t]||i[t],e)||Nn(r.appContext[t],e);return!o&&n?i:o}}function Nn(t,e){return t&&(t[e]||t[wt(e)]||t[xs(wt(e))])}function Jl(t,e,s,n){let r;const i=s,o=I(t);if(o||nt(t)){const l=o&&Pe(t);let c=!1,d=!1;l&&(c=!jt(t),d=ce(t),t=Cs(t)),r=new Array(t.length);for(let a=0,p=t.length;a<p;a++)r[a]=e(c?d?as(at(t[a])):at(t[a]):t[a],a,void 0,i)}else if(typeof t=="number"){r=new Array(t);for(let l=0;l<t;l++)r[l]=e(l+1,l,void 0,i)}else if(tt(t))if(t[Symbol.iterator])r=Array.from(t,(l,c)=>e(l,c,void 0,i));else{const l=Object.keys(t);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const a=l[c];r[c]=e(t[a],a,c,i)}}else r=[];return r}function Yl(t,e,s={},n,r){if(yt.ce||yt.parent&&Me(yt.parent)&&yt.parent.ce)return e!=="default"&&(s.name=e),Zs(),tn(Dt,null,[xt("slot",s,n)],64);let i=t[e];i&&i._c&&(i._d=!1),Zs();const o=i&&Lr(i(s)),l=s.key||o&&o.key,c=tn(Dt,{key:(l&&!Zt(l)?l:`_${e}`)+(!o&&n?"_fb":"")},o||[],o&&t._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Lr(t){return t.some(e=>Qe(e)?!(e.type===Xt||e.type===Dt&&!Lr(e.children)):!0)?t:null}const ks=t=>t?oi(t)?Sn(t):ks(t.parent):null,qe=ct(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ks(t.parent),$root:t=>ks(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Ur(t),$forceUpdate:t=>t.f||(t.f=()=>{bn(t.update)}),$nextTick:t=>t.n||(t.n=Rr.bind(t.proxy)),$watch:t=>Jo.bind(t)}),$s=(t,e)=>t!==Q&&!t.__isScriptSetup&&G(t,e),To={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:c}=t;let d;if(e[0]!=="$"){const A=o[e];if(A!==void 0)switch(A){case 1:return n[e];case 2:return r[e];case 4:return s[e];case 3:return i[e]}else{if($s(n,e))return o[e]=1,n[e];if(r!==Q&&G(r,e))return o[e]=2,r[e];if((d=t.propsOptions[0])&&G(d,e))return o[e]=3,i[e];if(s!==Q&&G(s,e))return o[e]=4,s[e];zs&&(o[e]=0)}}const a=qe[e];let p,T;if(a)return e==="$attrs"&&pt(t.attrs,"get",""),a(t);if((p=l.__cssModules)&&(p=p[e]))return p;if(s!==Q&&G(s,e))return o[e]=4,s[e];if(T=c.config.globalProperties,G(T,e))return T[e]},set({_:t},e,s){const{data:n,setupState:r,ctx:i}=t;return $s(r,e)?(r[e]=s,!0):n!==Q&&G(n,e)?(n[e]=s,!0):G(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:r,propsOptions:i}},o){let l;return!!s[o]||t!==Q&&G(t,o)||$s(e,o)||(l=i[0])&&G(l,o)||G(n,o)||G(qe,o)||G(r.config.globalProperties,o)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:G(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function Fn(t){return I(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let zs=!0;function Ao(t){const e=Ur(t),s=t.proxy,n=t.ctx;zs=!1,e.beforeCreate&&Dn(e.beforeCreate,t,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:T,beforeUpdate:A,updated:K,activated:$,deactivated:rt,beforeDestroy:q,beforeUnmount:V,destroyed:U,unmounted:R,render:et,renderTracked:Et,renderTriggered:Tt,errorCaptured:Vt,serverPrefetch:ue,expose:Gt,inheritAttrs:ee,components:ae,directives:he,filters:Fe}=e;if(d&&Oo(d,n,null),o)for(const Z in o){const W=o[Z];D(W)&&(n[Z]=W.bind(s))}if(r){const Z=r.call(s,s);tt(Z)&&(t.data=pn(Z))}if(zs=!0,i)for(const Z in i){const W=i[Z],At=D(W)?W.bind(s,s):D(W.get)?W.get.bind(s,s):Wt,pe=!D(W)&&D(W.set)?W.set.bind(s):Wt,Ht=gl({get:At,set:pe});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>Ht.value,set:Ot=>Ht.value=Ot})}if(l)for(const Z in l)Vr(l[Z],n,s,Z);if(c){const Z=D(c)?c.call(s):c;Reflect.ownKeys(Z).forEach(W=>{Fo(W,Z[W])})}a&&Dn(a,t,"c");function ut(Z,W){I(W)?W.forEach(At=>Z(At.bind(s))):W&&Z(W.bind(s))}if(ut(po,p),ut(go,T),ut(_o,A),ut(bo,K),ut(uo,$),ut(ao,rt),ut(wo,Vt),ut(xo,Et),ut(yo,Tt),ut(mo,V),ut($r,R),ut(vo,ue),I(Gt))if(Gt.length){const Z=t.exposed||(t.exposed={});Gt.forEach(W=>{Object.defineProperty(Z,W,{get:()=>s[W],set:At=>s[W]=At,enumerable:!0})})}else t.exposed||(t.exposed={});et&&t.render===Wt&&(t.render=et),ee!=null&&(t.inheritAttrs=ee),ae&&(t.components=ae),he&&(t.directives=he),ue&&Dr(t)}function Oo(t,e,s=Wt){I(t)&&(t=Qs(t));for(const n in t){const r=t[n];let i;tt(r)?"default"in r?i=fs(r.from||n,r.default,!0):i=fs(r.from||n):i=fs(r),_t(i)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[n]=i}}function Dn(t,e,s){qt(I(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function Vr(t,e,s,n){let r=n.includes(".")?Zr(s,n):()=>s[n];if(nt(t)){const i=e[t];D(i)&&Vs(r,i)}else if(D(t))Vs(r,t.bind(s));else if(tt(t))if(I(t))t.forEach(i=>Vr(i,e,s,n));else{const i=D(t.handler)?t.handler.bind(s):e[t.handler];D(i)&&Vs(r,i,t)}}function Ur(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,l=i.get(e);let c;return l?c=l:!r.length&&!s&&!n?c=e:(c={},r.length&&r.forEach(d=>gs(c,d,o,!0)),gs(c,e,o)),tt(e)&&i.set(e,c),c}function gs(t,e,s,n=!1){const{mixins:r,extends:i}=e;i&&gs(t,i,s,!0),r&&r.forEach(o=>gs(t,o,s,!0));for(const o in e)if(!(n&&o==="expose")){const l=Po[o]||s&&s[o];t[o]=l?l(t[o],e[o]):e[o]}return t}const Po={data:jn,props:Hn,emits:Hn,methods:Ve,computed:Ve,beforeCreate:mt,created:mt,beforeMount:mt,mounted:mt,beforeUpdate:mt,updated:mt,beforeDestroy:mt,beforeUnmount:mt,destroyed:mt,unmounted:mt,activated:mt,deactivated:mt,errorCaptured:mt,serverPrefetch:mt,components:Ve,directives:Ve,watch:Mo,provide:jn,inject:Ro};function jn(t,e){return e?t?function(){return ct(D(t)?t.call(this,this):t,D(e)?e.call(this,this):e)}:e:t}function Ro(t,e){return Ve(Qs(t),Qs(e))}function Qs(t){if(I(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function mt(t,e){return t?[...new Set([].concat(t,e))]:e}function Ve(t,e){return t?ct(Object.create(null),t,e):e}function Hn(t,e){return t?I(t)&&I(e)?[...new Set([...t,...e])]:ct(Object.create(null),Fn(t),Fn(e??{})):e}function Mo(t,e){if(!t)return e;if(!e)return t;const s=ct(Object.create(null),t);for(const n in e)s[n]=mt(t[n],e[n]);return s}function Kr(){return{app:null,config:{isNativeTag:pi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Io=0;function No(t,e){return function(n,r=null){D(n)||(n=ct({},n)),r!=null&&!tt(r)&&(r=null);const i=Kr(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:Io++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_l,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&D(a.install)?(o.add(a),a.install(d,...p)):D(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,T){if(!c){const A=d._ceVNode||xt(n,r);return A.appContext=i,T===!0?T="svg":T===!1&&(T=void 0),t(A,a,T),c=!0,d._container=a,a.__vue_app__=d,Sn(A.component)}},onUnmount(a){l.push(a)},unmount(){c&&(qt(l,d._instance,16),t(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=Ie;Ie=d;try{return a()}finally{Ie=p}}};return d}}let Ie=null;function Fo(t,e){if(gt){let s=gt.provides;const n=gt.parent&&gt.parent.provides;n===s&&(s=gt.provides=Object.create(n)),s[t]=e}}function fs(t,e,s=!1){const n=ii();if(n||Ie){let r=Ie?Ie._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return s&&D(e)?e.call(n&&n.proxy):e}}const Br={},Wr=()=>Object.create(Br),qr=t=>Object.getPrototypeOf(t)===Br;function Do(t,e,s,n=!1){const r={},i=Wr();t.propsDefaults=Object.create(null),Gr(t,e,r,i);for(const o in t.propsOptions[0])o in r||(r[o]=void 0);s?t.props=n?r:Ji(r):t.type.props?t.props=r:t.props=i,t.attrs=i}function jo(t,e,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=t,l=k(r),[c]=t.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=t.vnode.dynamicProps;for(let p=0;p<a.length;p++){let T=a[p];if(As(t.emitsOptions,T))continue;const A=e[T];if(c)if(G(i,T))A!==i[T]&&(i[T]=A,d=!0);else{const K=wt(T);r[K]=Xs(c,l,K,A,t,!1)}else A!==i[T]&&(i[T]=A,d=!0)}}}else{Gr(t,e,r,i)&&(d=!0);let a;for(const p in l)(!e||!G(e,p)&&((a=It(p))===p||!G(e,a)))&&(c?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=Xs(c,l,p,void 0,t,!0)):delete r[p]);if(i!==l)for(const p in i)(!e||!G(e,p))&&(delete i[p],d=!0)}d&&kt(t.attrs,"set","")}function Gr(t,e,s,n){const[r,i]=t.propsOptions;let o=!1,l;if(e)for(let c in e){if(Ue(c))continue;const d=e[c];let a;r&&G(r,a=wt(c))?!i||!i.includes(a)?s[a]=d:(l||(l={}))[a]=d:As(t.emitsOptions,c)||(!(c in n)||d!==n[c])&&(n[c]=d,o=!0)}if(i){const c=k(s),d=l||Q;for(let a=0;a<i.length;a++){const p=i[a];s[p]=Xs(r,c,p,d[p],t,!G(d,p))}}return o}function Xs(t,e,s,n,r,i){const o=t[s];if(o!=null){const l=G(o,"default");if(l&&n===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&D(c)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const a=ts(r);n=d[s]=c.call(null,e),a()}}else n=c;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===It(s))&&(n=!0))}return n}const Ho=new WeakMap;function Jr(t,e,s=!1){const n=s?Ho:e.propsCache,r=n.get(t);if(r)return r;const i=t.props,o={},l=[];let c=!1;if(!D(t)){const a=p=>{c=!0;const[T,A]=Jr(p,e,!0);ct(o,T),A&&l.push(...A)};!s&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}if(!i&&!c)return tt(t)&&n.set(t,Ae),Ae;if(I(i))for(let a=0;a<i.length;a++){const p=wt(i[a]);$n(p)&&(o[p]=Q)}else if(i)for(const a in i){const p=wt(a);if($n(p)){const T=i[a],A=o[p]=I(T)||D(T)?{type:T}:ct({},T),K=A.type;let $=!1,rt=!0;if(I(K))for(let q=0;q<K.length;++q){const V=K[q],U=D(V)&&V.name;if(U==="Boolean"){$=!0;break}else U==="String"&&(rt=!1)}else $=D(K)&&K.name==="Boolean";A[0]=$,A[1]=rt,($||G(A,"default"))&&l.push(p)}}const d=[o,l];return tt(t)&&n.set(t,d),d}function $n(t){return t[0]!=="$"&&!Ue(t)}const vn=t=>t==="_"||t==="__"||t==="_ctx"||t==="$stable",yn=t=>I(t)?t.map(Bt):[Bt(t)],$o=(t,e,s)=>{if(e._n)return e;const n=oo((...r)=>yn(e(...r)),s);return n._c=!1,n},Yr=(t,e,s)=>{const n=t._ctx;for(const r in t){if(vn(r))continue;const i=t[r];if(D(i))e[r]=$o(r,i,n);else if(i!=null){const o=yn(i);e[r]=()=>o}}},kr=(t,e)=>{const s=yn(e);t.slots.default=()=>s},zr=(t,e,s)=>{for(const n in e)(s||!vn(n))&&(t[n]=e[n])},Lo=(t,e,s)=>{const n=t.slots=Wr();if(t.vnode.shapeFlag&32){const r=e.__;r&&Ws(n,"__",r,!0);const i=e._;i?(zr(n,e,s),s&&Ws(n,"_",i,!0)):Yr(e,n)}else e&&kr(t,e)},Vo=(t,e,s)=>{const{vnode:n,slots:r}=t;let i=!0,o=Q;if(n.shapeFlag&32){const l=e._;l?s&&l===1?i=!1:zr(r,e,s):(i=!e.$stable,Yr(e,r)),o=e}else e&&(kr(t,e),o={default:1});if(i)for(const l in r)!vn(l)&&o[l]==null&&delete r[l]},Mt=tl;function Uo(t){return Ko(t)}function Ko(t,e){const s=ws();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:T,setScopeId:A=Wt,insertStaticContent:K}=t,$=(f,u,h,m=null,g=null,b=null,C=void 0,x=null,y=!!u.dynamicChildren)=>{if(f===u)return;f&&!Le(f,u)&&(m=ge(f),Ot(f,g,b,!0),f=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:v,ref:P,shapeFlag:E}=u;switch(v){case Os:rt(f,u,h,m);break;case Xt:q(f,u,h,m);break;case Us:f==null&&V(u,h,m,C);break;case Dt:ae(f,u,h,m,g,b,C,x,y);break;default:E&1?et(f,u,h,m,g,b,C,x,y):E&6?he(f,u,h,m,g,b,C,x,y):(E&64||E&128)&&v.process(f,u,h,m,g,b,C,x,y,_e)}P!=null&&g?We(P,f&&f.ref,b,u||f,!u):P==null&&f&&f.ref!=null&&We(f.ref,null,b,f,!0)},rt=(f,u,h,m)=>{if(f==null)n(u.el=l(u.children),h,m);else{const g=u.el=f.el;u.children!==f.children&&d(g,u.children)}},q=(f,u,h,m)=>{f==null?n(u.el=c(u.children||""),h,m):u.el=f.el},V=(f,u,h,m)=>{[f.el,f.anchor]=K(f.children,u,h,m,f.el,f.anchor)},U=({el:f,anchor:u},h,m)=>{let g;for(;f&&f!==u;)g=T(f),n(f,h,m),f=g;n(u,h,m)},R=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=T(f),r(f),f=h;r(u)},et=(f,u,h,m,g,b,C,x,y)=>{u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),f==null?Et(u,h,m,g,b,C,x,y):ue(f,u,g,b,C,x,y)},Et=(f,u,h,m,g,b,C,x)=>{let y,v;const{props:P,shapeFlag:E,transition:O,dirs:M}=f;if(y=f.el=o(f.type,b,P&&P.is,P),E&8?a(y,f.children):E&16&&Vt(f.children,y,null,m,g,Ls(f,b),C,x),M&&me(f,null,m,"created"),Tt(y,f,f.scopeId,C,m),P){for(const J in P)J!=="value"&&!Ue(J)&&i(y,J,null,P[J],b,m);"value"in P&&i(y,"value",null,P.value,b),(v=P.onVnodeBeforeMount)&&Ut(v,m,f)}M&&me(f,null,m,"beforeMount");const L=Bo(g,O);L&&O.beforeEnter(y),n(y,u,h),((v=P&&P.onVnodeMounted)||L||M)&&Mt(()=>{v&&Ut(v,m,f),L&&O.enter(y),M&&me(f,null,m,"mounted")},g)},Tt=(f,u,h,m,g)=>{if(h&&A(f,h),m)for(let b=0;b<m.length;b++)A(f,m[b]);if(g){let b=g.subTree;if(u===b||ei(b.type)&&(b.ssContent===u||b.ssFallback===u)){const C=g.vnode;Tt(f,C,C.scopeId,C.slotScopeIds,g.parent)}}},Vt=(f,u,h,m,g,b,C,x,y=0)=>{for(let v=y;v<f.length;v++){const P=f[v]=x?oe(f[v]):Bt(f[v]);$(null,P,u,h,m,g,b,C,x)}},ue=(f,u,h,m,g,b,C)=>{const x=u.el=f.el;let{patchFlag:y,dynamicChildren:v,dirs:P}=u;y|=f.patchFlag&16;const E=f.props||Q,O=u.props||Q;let M;if(h&&ve(h,!1),(M=O.onVnodeBeforeUpdate)&&Ut(M,h,u,f),P&&me(u,f,h,"beforeUpdate"),h&&ve(h,!0),(E.innerHTML&&O.innerHTML==null||E.textContent&&O.textContent==null)&&a(x,""),v?Gt(f.dynamicChildren,v,x,h,m,Ls(u,g),b):C||W(f,u,x,null,h,m,Ls(u,g),b,!1),y>0){if(y&16)ee(x,E,O,h,g);else if(y&2&&E.class!==O.class&&i(x,"class",null,O.class,g),y&4&&i(x,"style",E.style,O.style,g),y&8){const L=u.dynamicProps;for(let J=0;J<L.length;J++){const B=L[J],it=E[B],ot=O[B];(ot!==it||B==="value")&&i(x,B,it,ot,g,h)}}y&1&&f.children!==u.children&&a(x,u.children)}else!C&&v==null&&ee(x,E,O,h,g);((M=O.onVnodeUpdated)||P)&&Mt(()=>{M&&Ut(M,h,u,f),P&&me(u,f,h,"updated")},m)},Gt=(f,u,h,m,g,b,C)=>{for(let x=0;x<u.length;x++){const y=f[x],v=u[x],P=y.el&&(y.type===Dt||!Le(y,v)||y.shapeFlag&198)?p(y.el):h;$(y,v,P,null,m,g,b,C,!0)}},ee=(f,u,h,m,g)=>{if(u!==h){if(u!==Q)for(const b in u)!Ue(b)&&!(b in h)&&i(f,b,u[b],null,g,m);for(const b in h){if(Ue(b))continue;const C=h[b],x=u[b];C!==x&&b!=="value"&&i(f,b,x,C,g,m)}"value"in h&&i(f,"value",u.value,h.value,g)}},ae=(f,u,h,m,g,b,C,x,y)=>{const v=u.el=f?f.el:l(""),P=u.anchor=f?f.anchor:l("");let{patchFlag:E,dynamicChildren:O,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(n(v,h,m),n(P,h,m),Vt(u.children||[],h,P,g,b,C,x,y)):E>0&&E&64&&O&&f.dynamicChildren?(Gt(f.dynamicChildren,O,h,g,b,C,x),(u.key!=null||g&&u===g.subTree)&&Qr(f,u,!0)):W(f,u,h,P,g,b,C,x,y)},he=(f,u,h,m,g,b,C,x,y)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?g.ctx.activate(u,h,m,C,y):Fe(u,h,m,g,b,C,y):de(f,u,y)},Fe=(f,u,h,m,g,b,C)=>{const x=f.component=fl(f,m,g);if(jr(f)&&(x.ctx.renderer=_e),cl(x,!1,C),x.asyncDep){if(g&&g.registerDep(x,ut,C),!f.el){const y=x.subTree=xt(Xt);q(null,y,u,h),f.placeholder=y.el}}else ut(x,f,u,h,g,b,C)},de=(f,u,h)=>{const m=u.component=f.component;if(Xo(f,u,h))if(m.asyncDep&&!m.asyncResolved){Z(m,u,h);return}else m.next=u,m.update();else u.el=f.el,m.vnode=u},ut=(f,u,h,m,g,b,C)=>{const x=()=>{if(f.isMounted){let{next:E,bu:O,u:M,parent:L,vnode:J}=f;{const bt=Xr(f);if(bt){E&&(E.el=J.el,Z(f,E,C)),bt.asyncDep.then(()=>{f.isUnmounted||x()});return}}let B=E,it;ve(f,!1),E?(E.el=J.el,Z(f,E,C)):E=J,O&&Ns(O),(it=E.props&&E.props.onVnodeBeforeUpdate)&&Ut(it,L,E,J),ve(f,!0);const ot=Vn(f),Pt=f.subTree;f.subTree=ot,$(Pt,ot,p(Pt.el),ge(Pt),f,g,b),E.el=ot.el,B===null&&Zo(f,ot.el),M&&Mt(M,g),(it=E.props&&E.props.onVnodeUpdated)&&Mt(()=>Ut(it,L,E,J),g)}else{let E;const{el:O,props:M}=u,{bm:L,m:J,parent:B,root:it,type:ot}=f,Pt=Me(u);ve(f,!1),L&&Ns(L),!Pt&&(E=M&&M.onVnodeBeforeMount)&&Ut(E,B,u),ve(f,!0);{it.ce&&it.ce._def.shadowRoot!==!1&&it.ce._injectChildStyle(ot);const bt=f.subTree=Vn(f);$(null,bt,h,m,f,g,b),u.el=bt.el}if(J&&Mt(J,g),!Pt&&(E=M&&M.onVnodeMounted)){const bt=u;Mt(()=>Ut(E,B,bt),g)}(u.shapeFlag&256||B&&Me(B.vnode)&&B.vnode.shapeFlag&256)&&f.a&&Mt(f.a,g),f.isMounted=!0,u=h=m=null}};f.scope.on();const y=f.effect=new ar(x);f.scope.off();const v=f.update=y.run.bind(y),P=f.job=y.runIfDirty.bind(y);P.i=f,P.id=f.uid,y.scheduler=()=>bn(P),ve(f,!0),v()},Z=(f,u,h)=>{u.component=f;const m=f.vnode.props;f.vnode=u,f.next=null,jo(f,u.props,m,h),Vo(f,u.children,h),zt(),In(f),Qt()},W=(f,u,h,m,g,b,C,x,y=!1)=>{const v=f&&f.children,P=f?f.shapeFlag:0,E=u.children,{patchFlag:O,shapeFlag:M}=u;if(O>0){if(O&128){pe(v,E,h,m,g,b,C,x,y);return}else if(O&256){At(v,E,h,m,g,b,C,x,y);return}}M&8?(P&16&&$t(v,g,b),E!==v&&a(h,E)):P&16?M&16?pe(v,E,h,m,g,b,C,x,y):$t(v,g,b,!0):(P&8&&a(h,""),M&16&&Vt(E,h,m,g,b,C,x,y))},At=(f,u,h,m,g,b,C,x,y)=>{f=f||Ae,u=u||Ae;const v=f.length,P=u.length,E=Math.min(v,P);let O;for(O=0;O<E;O++){const M=u[O]=y?oe(u[O]):Bt(u[O]);$(f[O],M,h,null,g,b,C,x,y)}v>P?$t(f,g,b,!0,!1,E):Vt(u,h,m,g,b,C,x,y,E)},pe=(f,u,h,m,g,b,C,x,y)=>{let v=0;const P=u.length;let E=f.length-1,O=P-1;for(;v<=E&&v<=O;){const M=f[v],L=u[v]=y?oe(u[v]):Bt(u[v]);if(Le(M,L))$(M,L,h,null,g,b,C,x,y);else break;v++}for(;v<=E&&v<=O;){const M=f[E],L=u[O]=y?oe(u[O]):Bt(u[O]);if(Le(M,L))$(M,L,h,null,g,b,C,x,y);else break;E--,O--}if(v>E){if(v<=O){const M=O+1,L=M<P?u[M].el:m;for(;v<=O;)$(null,u[v]=y?oe(u[v]):Bt(u[v]),h,L,g,b,C,x,y),v++}}else if(v>O)for(;v<=E;)Ot(f[v],g,b,!0),v++;else{const M=v,L=v,J=new Map;for(v=L;v<=O;v++){const ht=u[v]=y?oe(u[v]):Bt(u[v]);ht.key!=null&&J.set(ht.key,v)}let B,it=0;const ot=O-L+1;let Pt=!1,bt=0;const se=new Array(ot);for(v=0;v<ot;v++)se[v]=0;for(v=M;v<=E;v++){const ht=f[v];if(it>=ot){Ot(ht,g,b,!0);continue}let Ft;if(ht.key!=null)Ft=J.get(ht.key);else for(B=L;B<=O;B++)if(se[B-L]===0&&Le(ht,u[B])){Ft=B;break}Ft===void 0?Ot(ht,g,b,!0):(se[Ft-L]=v+1,Ft>=bt?bt=Ft:Pt=!0,$(ht,u[Ft],h,null,g,b,C,x,y),it++)}const be=Pt?Wo(se):Ae;for(B=be.length-1,v=ot-1;v>=0;v--){const ht=L+v,Ft=u[ht],ns=u[ht+1],He=ht+1<P?ns.el||ns.placeholder:m;se[v]===0?$(null,Ft,h,He,g,b,C,x,y):Pt&&(B<0||v!==be[B]?Ht(Ft,h,He,2):B--)}}},Ht=(f,u,h,m,g=null)=>{const{el:b,type:C,transition:x,children:y,shapeFlag:v}=f;if(v&6){Ht(f.component.subTree,u,h,m);return}if(v&128){f.suspense.move(u,h,m);return}if(v&64){C.move(f,u,h,_e);return}if(C===Dt){n(b,u,h);for(let E=0;E<y.length;E++)Ht(y[E],u,h,m);n(f.anchor,u,h);return}if(C===Us){U(f,u,h);return}if(m!==2&&v&1&&x)if(m===0)x.beforeEnter(b),n(b,u,h),Mt(()=>x.enter(b),g);else{const{leave:E,delayLeave:O,afterLeave:M}=x,L=()=>{f.ctx.isUnmounted?r(b):n(b,u,h)},J=()=>{E(b,()=>{L(),M&&M()})};O?O(b,L,J):J()}else n(b,u,h)},Ot=(f,u,h,m=!1,g=!1)=>{const{type:b,props:C,ref:x,children:y,dynamicChildren:v,shapeFlag:P,patchFlag:E,dirs:O,cacheIndex:M}=f;if(E===-2&&(g=!1),x!=null&&(zt(),We(x,null,h,f,!0),Qt()),M!=null&&(u.renderCache[M]=void 0),P&256){u.ctx.deactivate(f);return}const L=P&1&&O,J=!Me(f);let B;if(J&&(B=C&&C.onVnodeBeforeUnmount)&&Ut(B,u,f),P&6)es(f.component,h,m);else{if(P&128){f.suspense.unmount(h,m);return}L&&me(f,null,u,"beforeUnmount"),P&64?f.type.remove(f,u,h,_e,m):v&&!v.hasOnce&&(b!==Dt||E>0&&E&64)?$t(v,u,h,!1,!0):(b===Dt&&E&384||!g&&P&16)&&$t(y,u,h),m&&we(f)}(J&&(B=C&&C.onVnodeUnmounted)||L)&&Mt(()=>{B&&Ut(B,u,f),L&&me(f,null,u,"unmounted")},h)},we=f=>{const{type:u,el:h,anchor:m,transition:g}=f;if(u===Dt){Se(h,m);return}if(u===Us){R(f);return}const b=()=>{r(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(f.shapeFlag&1&&g&&!g.persisted){const{leave:C,delayLeave:x}=g,y=()=>C(h,b);x?x(f.el,b,y):y()}else b()},Se=(f,u)=>{let h;for(;f!==u;)h=T(f),r(f),f=h;r(u)},es=(f,u,h)=>{const{bum:m,scope:g,job:b,subTree:C,um:x,m:y,a:v,parent:P,slots:{__:E}}=f;Ln(y),Ln(v),m&&Ns(m),P&&I(E)&&E.forEach(O=>{P.renderCache[O]=void 0}),g.stop(),b&&(b.flags|=8,Ot(C,f,u,h)),x&&Mt(x,u),Mt(()=>{f.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},$t=(f,u,h,m=!1,g=!1,b=0)=>{for(let C=b;C<f.length;C++)Ot(f[C],u,h,m,g)},ge=f=>{if(f.shapeFlag&6)return ge(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=T(f.anchor||f.el),h=u&&u[lo];return h?T(h):u};let De=!1;const ss=(f,u,h)=>{f==null?u._vnode&&Ot(u._vnode,null,null,!0):$(u._vnode||null,f,u,null,null,null,h),u._vnode=f,De||(De=!0,In(),Ir(),De=!1)},_e={p:$,um:Ot,m:Ht,r:we,mt:Fe,mc:Vt,pc:W,pbc:Gt,n:ge,o:t};return{render:ss,hydrate:void 0,createApp:No(ss)}}function Ls({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function ve({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Bo(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Qr(t,e,s=!1){const n=t.children,r=e.children;if(I(n)&&I(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=oe(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Qr(o,l)),l.type===Os&&(l.el=o.el),l.type===Xt&&!l.el&&(l.el=o.el)}}function Wo(t){const e=t.slice(),s=[0];let n,r,i,o,l;const c=t.length;for(n=0;n<c;n++){const d=t[n];if(d!==0){if(r=s[s.length-1],t[r]<d){e[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,t[s[l]]<d?i=l+1:o=l;d<t[s[i]]&&(i>0&&(e[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=e[o];return s}function Xr(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Xr(e)}function Ln(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const qo=Symbol.for("v-scx"),Go=()=>fs(qo);function kl(t,e){return xn(t,null,e)}function Vs(t,e,s){return xn(t,e,s)}function xn(t,e,s=Q){const{immediate:n,deep:r,flush:i,once:o}=s,l=ct({},s),c=e&&n||!e&&i!=="post";let d;if(Xe){if(i==="sync"){const A=Go();d=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=Wt,A.resume=Wt,A.pause=Wt,A}}const a=gt;l.call=(A,K,$)=>qt(A,a,K,$);let p=!1;i==="post"?l.scheduler=A=>{Mt(A,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(A,K)=>{K?A():bn(A)}),l.augmentJob=A=>{e&&(A.flags|=4),p&&(A.flags|=2,a&&(A.id=a.uid,A.i=a))};const T=so(t,e,l);return Xe&&(d?d.push(T):c&&T()),T}function Jo(t,e,s){const n=this.proxy,r=nt(t)?t.includes(".")?Zr(n,t):()=>n[t]:t.bind(n,n);let i;D(e)?i=e:(i=e.handler,s=e);const o=ts(this),l=xn(r,i.bind(n),s);return o(),l}function Zr(t,e){const s=e.split(".");return()=>{let n=t;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Yo=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${wt(e)}Modifiers`]||t[`${It(e)}Modifiers`];function ko(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Q;let r=s;const i=e.startsWith("update:"),o=i&&Yo(n,e.slice(7));o&&(o.trim&&(r=s.map(a=>nt(a)?a.trim():a)),o.number&&(r=s.map(vi)));let l,c=n[l=Is(e)]||n[l=Is(wt(e))];!c&&i&&(c=n[l=Is(It(e))]),c&&qt(c,t,6,r);const d=n[l+"Once"];if(d){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,qt(d,t,6,r)}}function ti(t,e,s=!1){const n=e.emitsCache,r=n.get(t);if(r!==void 0)return r;const i=t.emits;let o={},l=!1;if(!D(t)){const c=d=>{const a=ti(d,e,!0);a&&(l=!0,ct(o,a))};!s&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}return!i&&!l?(tt(t)&&n.set(t,null),null):(I(i)?i.forEach(c=>o[c]=null):ct(o,i),tt(t)&&n.set(t,o),o)}function As(t,e){return!t||!bs(e)?!1:(e=e.slice(2).replace(/Once$/,""),G(t,e[0].toLowerCase()+e.slice(1))||G(t,It(e))||G(t,e))}function Vn(t){const{type:e,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:a,props:p,data:T,setupState:A,ctx:K,inheritAttrs:$}=t,rt=ps(t);let q,V;try{if(s.shapeFlag&4){const R=r||n,et=R;q=Bt(d.call(et,R,a,p,A,T,K)),V=l}else{const R=e;q=Bt(R.length>1?R(p,{attrs:l,slots:o,emit:c}):R(p,null)),V=e.props?l:zo(l)}}catch(R){Ge.length=0,Es(R,t,1),q=xt(Xt)}let U=q;if(V&&$!==!1){const R=Object.keys(V),{shapeFlag:et}=U;R.length&&et&7&&(i&&R.some(rn)&&(V=Qo(V,i)),U=Ne(U,V,!1,!0))}return s.dirs&&(U=Ne(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition&&mn(U,s.transition),q=U,ps(rt),q}const zo=t=>{let e;for(const s in t)(s==="class"||s==="style"||bs(s))&&((e||(e={}))[s]=t[s]);return e},Qo=(t,e)=>{const s={};for(const n in t)(!rn(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function Xo(t,e,s){const{props:n,children:r,component:i}=t,{props:o,children:l,patchFlag:c}=e,d=i.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Un(n,o,d):!!o;if(c&8){const a=e.dynamicProps;for(let p=0;p<a.length;p++){const T=a[p];if(o[T]!==n[T]&&!As(d,T))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?Un(n,o,d):!0:!!o;return!1}function Un(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(e[i]!==t[i]&&!As(s,i))return!0}return!1}function Zo({vnode:t,parent:e},s){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=s,e=e.parent;else break}}const ei=t=>t.__isSuspense;function tl(t,e){e&&e.pendingBranch?I(t)?e.effects.push(...t):e.effects.push(t):io(t)}const Dt=Symbol.for("v-fgt"),Os=Symbol.for("v-txt"),Xt=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),Ge=[];let Nt=null;function Zs(t=!1){Ge.push(Nt=t?null:[])}function el(){Ge.pop(),Nt=Ge[Ge.length-1]||null}let ze=1;function Kn(t,e=!1){ze+=t,t<0&&Nt&&e&&(Nt.hasOnce=!0)}function si(t){return t.dynamicChildren=ze>0?Nt||Ae:null,el(),ze>0&&Nt&&Nt.push(t),t}function zl(t,e,s,n,r,i){return si(ri(t,e,s,n,r,i,!0))}function tn(t,e,s,n,r){return si(xt(t,e,s,n,r,!0))}function Qe(t){return t?t.__v_isVNode===!0:!1}function Le(t,e){return t.type===e.type&&t.key===e.key}const ni=({key:t})=>t??null,cs=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?nt(t)||_t(t)||D(t)?{i:yt,r:t,k:e,f:!!s}:t:null);function ri(t,e=null,s=null,n=0,r=null,i=t===Dt?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ni(e),ref:e&&cs(e),scopeId:Fr,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:yt};return l?(wn(c,s),i&128&&t.normalize(c)):s&&(c.shapeFlag|=nt(s)?8:16),ze>0&&!o&&Nt&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Nt.push(c),c}const xt=sl;function sl(t,e=null,s=null,n=0,r=null,i=!1){if((!t||t===Co)&&(t=Xt),Qe(t)){const l=Ne(t,e,!0);return s&&wn(l,s),ze>0&&!i&&Nt&&(l.shapeFlag&6?Nt[Nt.indexOf(t)]=l:Nt.push(l)),l.patchFlag=-2,l}if(pl(t)&&(t=t.__vccOpts),e){e=nl(e);let{class:l,style:c}=e;l&&!nt(l)&&(e.class=cn(l)),tt(c)&&(_n(c)&&!I(c)&&(c=ct({},c)),e.style=fn(c))}const o=nt(t)?1:ei(t)?128:fo(t)?64:tt(t)?4:D(t)?2:0;return ri(t,e,s,n,r,o,i,!0)}function nl(t){return t?_n(t)||qr(t)?ct({},t):t:null}function Ne(t,e,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=t,d=e?il(r||{},e):r,a={__v_isVNode:!0,__v_skip:!0,type:t.type,props:d,key:d&&ni(d),ref:e&&e.ref?s&&i?I(i)?i.concat(cs(e)):[i,cs(e)]:cs(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Dt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ne(t.ssContent),ssFallback:t.ssFallback&&Ne(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&n&&mn(a,c.clone(a)),a}function rl(t=" ",e=0){return xt(Os,null,t,e)}function Ql(t="",e=!1){return e?(Zs(),tn(Xt,null,t)):xt(Xt,null,t)}function Bt(t){return t==null||typeof t=="boolean"?xt(Xt):I(t)?xt(Dt,null,t.slice()):Qe(t)?oe(t):xt(Os,null,String(t))}function oe(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ne(t)}function wn(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(I(e))s=16;else if(typeof e=="object")if(n&65){const r=e.default;r&&(r._c&&(r._d=!1),wn(t,r()),r._c&&(r._d=!0));return}else{s=32;const r=e._;!r&&!qr(e)?e._ctx=yt:r===3&&yt&&(yt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else D(e)?(e={default:e,_ctx:yt},s=32):(e=String(e),n&64?(s=16,e=[rl(e)]):s=8);t.children=e,t.shapeFlag|=s}function il(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const r in n)if(r==="class")e.class!==n.class&&(e.class=cn([e.class,n.class]));else if(r==="style")e.style=fn([e.style,n.style]);else if(bs(r)){const i=e[r],o=n[r];o&&i!==o&&!(I(i)&&i.includes(o))&&(e[r]=i?[].concat(i,o):o)}else r!==""&&(e[r]=n[r])}return e}function Ut(t,e,s,n=null){qt(t,e,7,[s,n])}const ol=Kr();let ll=0;function fl(t,e,s){const n=t.type,r=(e?e.appContext:t.appContext)||ol,i={uid:ll++,vnode:t,type:n,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ai(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Jr(n,r),emitsOptions:ti(n,r),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:n.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=ko.bind(null,i),t.ce&&t.ce(i),i}let gt=null;const ii=()=>gt||yt;let _s,en;{const t=ws(),e=(s,n)=>{let r;return(r=t[s])||(r=t[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};_s=e("__VUE_INSTANCE_SETTERS__",s=>gt=s),en=e("__VUE_SSR_SETTERS__",s=>Xe=s)}const ts=t=>{const e=gt;return _s(t),t.scope.on(),()=>{t.scope.off(),_s(e)}},Bn=()=>{gt&&gt.scope.off(),_s(null)};function oi(t){return t.vnode.shapeFlag&4}let Xe=!1;function cl(t,e=!1,s=!1){e&&en(e);const{props:n,children:r}=t.vnode,i=oi(t);Do(t,n,i,e),Lo(t,r,s||e);const o=i?ul(t,e):void 0;return e&&en(!1),o}function ul(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,To);const{setup:n}=s;if(n){zt();const r=t.setupContext=n.length>1?hl(t):null,i=ts(t),o=Ze(n,t,0,[t.props,r]),l=or(o);if(Qt(),i(),(l||t.sp)&&!Me(t)&&Dr(t),l){if(o.then(Bn,Bn),e)return o.then(c=>{Wn(t,c)}).catch(c=>{Es(c,t,0)});t.asyncDep=o}else Wn(t,o)}else li(t)}function Wn(t,e,s){D(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:tt(e)&&(t.setupState=Or(e)),li(t)}function li(t,e,s){const n=t.type;t.render||(t.render=n.render||Wt);{const r=ts(t);zt();try{Ao(t)}finally{Qt(),r()}}}const al={get(t,e){return pt(t,"get",""),t[e]}};function hl(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,al),slots:t.slots,emit:t.emit,expose:e}}function Sn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Or(Yi(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in qe)return qe[s](t)},has(e,s){return s in e||s in qe}})):t.proxy}function dl(t,e=!0){return D(t)?t.displayName||t.name:t.name||e&&t.__name}function pl(t){return D(t)&&"__vccOpts"in t}const gl=(t,e)=>to(t,e,Xe);function Xl(t,e,s){const n=arguments.length;return n===2?tt(e)&&!I(e)?Qe(e)?xt(t,null,[e]):xt(t,e):xt(t,null,e):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Qe(s)&&(s=[s]),xt(t,e,s))}const _l="3.5.18";/**
15
15
  * @vue/runtime-dom v3.5.18
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let sn;const qn=typeof window<"u"&&window.trustedTypes;if(qn)try{sn=qn.createPolicy("vue",{createHTML:t=>t})}catch{}const fi=sn?t=>sn.createHTML(t):t=>t,bl="http://www.w3.org/2000/svg",ml="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,Gn=Yt&&Yt.createElement("template"),vl={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const r=e==="svg"?Yt.createElementNS(bl,t):e==="mathml"?Yt.createElementNS(ml,t):s?Yt.createElement(t,{is:s}):Yt.createElement(t);return t==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:t=>Yt.createTextNode(t),createComment:t=>Yt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Yt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,r,i){const o=s?s.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Gn.innerHTML=fi(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const l=Gn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}e.insertBefore(l,s)}return[o?o.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},yl=Symbol("_vtc");function xl(t,e,s){const n=t[yl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Jn=Symbol("_vod"),wl=Symbol("_vsh"),Sl=Symbol(""),Cl=/(^|;)\s*display\s*:/;function El(t,e,s){const n=t.style,r=nt(s);let i=!1;if(s&&!r){if(e)if(nt(e))for(const o of e.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&us(n,l,"")}else for(const o in e)s[o]==null&&us(n,o,"");for(const o in s)o==="display"&&(i=!0),us(n,o,s[o])}else if(r){if(e!==s){const o=n[Sl];o&&(s+=";"+o),n.cssText=s,i=Cl.test(s)}}else e&&t.removeAttribute("style");Jn in t&&(t[Jn]=i?n.display:"",t[wl]&&(n.display="none"))}const Yn=/\s*!important$/;function us(t,e,s){if(I(s))s.forEach(n=>us(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const n=Tl(t,e);Yn.test(s)?t.setProperty(It(n),s.replace(Yn,""),"important"):t[n]=s}}const kn=["Webkit","Moz","ms"],Ks={};function Tl(t,e){const s=Ks[e];if(s)return s;let n=wt(e);if(n!=="filter"&&n in t)return Ks[e]=n;n=xs(n);for(let r=0;r<kn.length;r++){const i=kn[r]+n;if(i in t)return Ks[e]=i}return e}const zn="http://www.w3.org/1999/xlink";function Qn(t,e,s,n,r,i=Ei(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(zn,e.slice(6,e.length)):t.setAttributeNS(zn,e,s):s==null||i&&!fr(s)?t.removeAttribute(e):t.setAttribute(e,i?"":Zt(s)?String(s):s)}function Xn(t,e,s,n,r){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?fi(s):s);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?t.getAttribute("value")||"":t.value,c=s==null?t.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in t))&&(t.value=c),s==null&&t.removeAttribute(e),t._value=s;return}let o=!1;if(s===""||s==null){const l=typeof t[e];l==="boolean"?s=fr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{t[e]=s}catch{}o&&t.removeAttribute(r||e)}function Al(t,e,s,n){t.addEventListener(e,s,n)}function Ol(t,e,s,n){t.removeEventListener(e,s,n)}const Zn=Symbol("_vei");function Pl(t,e,s,n,r=null){const i=t[Zn]||(t[Zn]={}),o=i[e];if(n&&o)o.value=n;else{const[l,c]=Rl(e);if(n){const d=i[e]=Nl(n,r);Al(t,l,d,c)}else o&&(Ol(t,l,o,c),i[e]=void 0)}}const tr=/(?:Once|Passive|Capture)$/;function Rl(t){let e;if(tr.test(t)){e={};let n;for(;n=t.match(tr);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):It(t.slice(2)),e]}let Bs=0;const Ml=Promise.resolve(),Il=()=>Bs||(Ml.then(()=>Bs=0),Bs=Date.now());function Nl(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;qt(Fl(n,s.value),e,5,[n])};return s.value=t,s.attached=Il(),s}function Fl(t,e){if(I(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(n=>r=>!r._stopped&&n&&n(r))}else return e}const er=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Dl=(t,e,s,n,r,i)=>{const o=r==="svg";e==="class"?xl(t,n,o):e==="style"?El(t,s,n):bs(e)?rn(e)||Pl(t,e,s,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):jl(t,e,n,o))?(Xn(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Qn(t,e,n,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!nt(n))?Xn(t,wt(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Qn(t,e,n,o))};function jl(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&er(e)&&D(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return er(e)&&nt(s)?!1:e in t}const sr={};/*! #__NO_SIDE_EFFECTS__ */function Zl(t,e,s){const n=co(t,e);vs(n)&&ct(n,e);class r extends Cn{constructor(o){super(n,o,s)}}return r.def=n,r}const Hl=typeof HTMLElement<"u"?HTMLElement:class{};class Cn extends Hl{constructor(e,s={},n=rr){super(),this._def=e,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==rr?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Cn){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Rr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const r of n)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let l;if(i&&!I(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=On(this._props[c])),(l||(l=Object.create(null)))[wt(c)]=!0)}this._numberProps=l,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)G(this,n)||Object.defineProperty(this,n,{get:()=>Ar(s[n])})}_resolveProps(e){const{props:s}=e,n=I(s)?s:Object.keys(s||{});for(const r of Object.keys(this))r[0]!=="_"&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(wt))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const s=this.hasAttribute(e);let n=s?this.getAttribute(e):sr;const r=wt(e);s&&this._numberProps&&this._numberProps[r]&&(n=On(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,s,n=!0,r=!1){if(s!==this._props[e]&&(s===sr?delete this._props[e]:(this._props[e]=s,e==="key"&&this._app&&(this._app._ceVNode.key=s)),r&&this._instance&&this._update(),n)){const i=this._ob;i&&i.disconnect(),s===!0?this.setAttribute(It(e),""):typeof s=="string"||typeof s=="number"?this.setAttribute(It(e),s+""):s||this.removeAttribute(It(e)),i&&i.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Vl(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const s=xt(this._def,ct(e,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,vs(o[0])?ct({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{r(i,o),It(i)!==i&&r(It(i),o)},this._setParent()}),s}_applyStyles(e,s){if(!e)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce;for(let r=e.length-1;r>=0;r--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=e[r],this.shadowRoot.prepend(i)}}_parseSlots(){const e=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),s=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("name")||"default",o=this._slots[i],l=r.parentNode;if(o)for(const c of o){if(s&&c.nodeType===1){const d=s+"-s",a=document.createTreeWalker(c,1);c.setAttribute(d,"");let p;for(;p=a.nextNode();)p.setAttribute(d,"")}l.insertBefore(c,r)}else for(;r.firstChild;)l.insertBefore(r.firstChild,r);l.removeChild(r)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}const $l={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},tf=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=r=>{if(!("key"in r))return;const i=It(r.key);if(e.some(o=>o===i||$l[o]===i))return t(r)})},Ll=ct({patchProp:Dl},vl);let nr;function ci(){return nr||(nr=Uo(Ll))}const Vl=(...t)=>{ci().render(...t)},rr=(...t)=>{const e=ci().createApp(...t),{mount:s}=e;return e.mount=n=>{const r=Kl(n);if(!r)return;const i=e._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Ul(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function Ul(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Kl(t){return nt(t)?document.querySelector(t):t}export{gl as A,go as B,Fo as C,oo as D,Dt as F,zl as a,Ql as b,Wl as c,co as d,cn as e,ri as f,ii as g,Xl as h,Zs as i,xt as j,Gl as k,Jl as l,Yi as m,Rr as n,mo as o,tn as p,tf as q,Bl as r,Zl as s,Ti as t,Ar as u,fs as v,kl as w,Yl as x,ql as y,Vs as z};
18
+ **/let sn;const qn=typeof window<"u"&&window.trustedTypes;if(qn)try{sn=qn.createPolicy("vue",{createHTML:t=>t})}catch{}const fi=sn?t=>sn.createHTML(t):t=>t,bl="http://www.w3.org/2000/svg",ml="http://www.w3.org/1998/Math/MathML",Yt=typeof document<"u"?document:null,Gn=Yt&&Yt.createElement("template"),vl={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const r=e==="svg"?Yt.createElementNS(bl,t):e==="mathml"?Yt.createElementNS(ml,t):s?Yt.createElement(t,{is:s}):Yt.createElement(t);return t==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:t=>Yt.createTextNode(t),createComment:t=>Yt.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Yt.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,r,i){const o=s?s.previousSibling:e.lastChild;if(r&&(r===i||r.nextSibling))for(;e.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Gn.innerHTML=fi(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const l=Gn.content;if(n==="svg"||n==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}e.insertBefore(l,s)}return[o?o.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},yl=Symbol("_vtc");function xl(t,e,s){const n=t[yl];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Jn=Symbol("_vod"),wl=Symbol("_vsh"),Sl=Symbol(""),Cl=/(^|;)\s*display\s*:/;function El(t,e,s){const n=t.style,r=nt(s);let i=!1;if(s&&!r){if(e)if(nt(e))for(const o of e.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&us(n,l,"")}else for(const o in e)s[o]==null&&us(n,o,"");for(const o in s)o==="display"&&(i=!0),us(n,o,s[o])}else if(r){if(e!==s){const o=n[Sl];o&&(s+=";"+o),n.cssText=s,i=Cl.test(s)}}else e&&t.removeAttribute("style");Jn in t&&(t[Jn]=i?n.display:"",t[wl]&&(n.display="none"))}const Yn=/\s*!important$/;function us(t,e,s){if(I(s))s.forEach(n=>us(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const n=Tl(t,e);Yn.test(s)?t.setProperty(It(n),s.replace(Yn,""),"important"):t[n]=s}}const kn=["Webkit","Moz","ms"],Ks={};function Tl(t,e){const s=Ks[e];if(s)return s;let n=wt(e);if(n!=="filter"&&n in t)return Ks[e]=n;n=xs(n);for(let r=0;r<kn.length;r++){const i=kn[r]+n;if(i in t)return Ks[e]=i}return e}const zn="http://www.w3.org/1999/xlink";function Qn(t,e,s,n,r,i=Ei(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(zn,e.slice(6,e.length)):t.setAttributeNS(zn,e,s):s==null||i&&!fr(s)?t.removeAttribute(e):t.setAttribute(e,i?"":Zt(s)?String(s):s)}function Xn(t,e,s,n,r){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?fi(s):s);return}const i=t.tagName;if(e==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?t.getAttribute("value")||"":t.value,c=s==null?t.type==="checkbox"?"on":"":String(s);(l!==c||!("_value"in t))&&(t.value=c),s==null&&t.removeAttribute(e),t._value=s;return}let o=!1;if(s===""||s==null){const l=typeof t[e];l==="boolean"?s=fr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{t[e]=s}catch{}o&&t.removeAttribute(r||e)}function Al(t,e,s,n){t.addEventListener(e,s,n)}function Ol(t,e,s,n){t.removeEventListener(e,s,n)}const Zn=Symbol("_vei");function Pl(t,e,s,n,r=null){const i=t[Zn]||(t[Zn]={}),o=i[e];if(n&&o)o.value=n;else{const[l,c]=Rl(e);if(n){const d=i[e]=Nl(n,r);Al(t,l,d,c)}else o&&(Ol(t,l,o,c),i[e]=void 0)}}const tr=/(?:Once|Passive|Capture)$/;function Rl(t){let e;if(tr.test(t)){e={};let n;for(;n=t.match(tr);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):It(t.slice(2)),e]}let Bs=0;const Ml=Promise.resolve(),Il=()=>Bs||(Ml.then(()=>Bs=0),Bs=Date.now());function Nl(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;qt(Fl(n,s.value),e,5,[n])};return s.value=t,s.attached=Il(),s}function Fl(t,e){if(I(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(n=>r=>!r._stopped&&n&&n(r))}else return e}const er=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Dl=(t,e,s,n,r,i)=>{const o=r==="svg";e==="class"?xl(t,n,o):e==="style"?El(t,s,n):bs(e)?rn(e)||Pl(t,e,s,n,i):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):jl(t,e,n,o))?(Xn(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Qn(t,e,n,o,i,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!nt(n))?Xn(t,wt(e),n,i,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Qn(t,e,n,o))};function jl(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&er(e)&&D(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return er(e)&&nt(s)?!1:e in t}const sr={};/*! #__NO_SIDE_EFFECTS__ */function Zl(t,e,s){const n=co(t,e);vs(n)&&ct(n,e);class r extends Cn{constructor(o){super(n,o,s)}}return r.def=n,r}const Hl=typeof HTMLElement<"u"?HTMLElement:class{};class Cn extends Hl{constructor(e,s={},n=rr){super(),this._def=e,this._props=s,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==rr?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Cn){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Rr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const r of n)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:o}=n;let l;if(i&&!I(i))for(const c in i){const d=i[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=On(this._props[c])),(l||(l=Object.create(null)))[wt(c)]=!0)}this._numberProps=l,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},s=this._def.__asyncLoader;s?this._pendingResolve=s().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const s=this._instance&&this._instance.exposed;if(s)for(const n in s)G(this,n)||Object.defineProperty(this,n,{get:()=>Ar(s[n])})}_resolveProps(e){const{props:s}=e,n=I(s)?s:Object.keys(s||{});for(const r of Object.keys(this))r[0]!=="_"&&n.includes(r)&&this._setProp(r,this[r]);for(const r of n.map(wt))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const s=this.hasAttribute(e);let n=s?this.getAttribute(e):sr;const r=wt(e);s&&this._numberProps&&this._numberProps[r]&&(n=On(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,s,n=!0,r=!1){if(s!==this._props[e]&&(s===sr?delete this._props[e]:(this._props[e]=s,e==="key"&&this._app&&(this._app._ceVNode.key=s)),r&&this._instance&&this._update(),n)){const i=this._ob;i&&i.disconnect(),s===!0?this.setAttribute(It(e),""):typeof s=="string"||typeof s=="number"?this.setAttribute(It(e),s+""):s||this.removeAttribute(It(e)),i&&i.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Vl(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const s=xt(this._def,ct(e,this._props));return this._instance||(s.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const r=(i,o)=>{this.dispatchEvent(new CustomEvent(i,vs(o[0])?ct({detail:o},o[0]):{detail:o}))};n.emit=(i,...o)=>{r(i,o),It(i)!==i&&r(It(i),o)},this._setParent()}),s}_applyStyles(e,s){if(!e)return;if(s){if(s===this._def||this._styleChildren.has(s))return;this._styleChildren.add(s)}const n=this._nonce;for(let r=e.length-1;r>=0;r--){const i=document.createElement("style");n&&i.setAttribute("nonce",n),i.textContent=e[r],this.shadowRoot.prepend(i)}}_parseSlots(){const e=this._slots={};let s;for(;s=this.firstChild;){const n=s.nodeType===1&&s.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(s),this.removeChild(s)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),s=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const r=e[n],i=r.getAttribute("name")||"default",o=this._slots[i],l=r.parentNode;if(o)for(const c of o){if(s&&c.nodeType===1){const d=s+"-s",a=document.createTreeWalker(c,1);c.setAttribute(d,"");let p;for(;p=a.nextNode();)p.setAttribute(d,"")}l.insertBefore(c,r)}else for(;r.firstChild;)l.insertBefore(r.firstChild,r);l.removeChild(r)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}const $l={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},tf=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=r=>{if(!("key"in r))return;const i=It(r.key);if(e.some(o=>o===i||$l[o]===i))return t(r)})},Ll=ct({patchProp:Dl},vl);let nr;function ci(){return nr||(nr=Uo(Ll))}const Vl=(...t)=>{ci().render(...t)},rr=(...t)=>{const e=ci().createApp(...t),{mount:s}=e;return e.mount=n=>{const r=Kl(n);if(!r)return;const i=e._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Ul(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},e};function Ul(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Kl(t){return nt(t)?document.querySelector(t):t}export{gl as A,Fo as B,oo as C,Dt as F,zl as a,Ql as b,Wl as c,co as d,cn as e,ri as f,ii as g,Xl as h,Zs as i,xt as j,Gl as k,Jl as l,Yi as m,Rr as n,mo as o,tn as p,tf as q,Bl as r,Zl as s,Ti as t,Ar as u,fs as v,kl as w,Yl as x,ql as y,Vs as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system-ce",
3
- "version": "5.6.2",
3
+ "version": "5.6.3",
4
4
  "description": "Custom Elements built in Vue3",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -25,7 +25,10 @@
25
25
  "peerDependencies": {
26
26
  "@popperjs/core": ">=2.11.8",
27
27
  "@ungap/custom-elements": ">=1.3.0",
28
- "vue": ">=3.5.18"
28
+ "vue": ">=3.5.18",
29
+ "@hapi/bourne": "^3.0.0",
30
+ "just-safe-get": "^4.2.0",
31
+ "just-debounce-it": "^3.2.0"
29
32
  },
30
33
  "devDependencies": {
31
34
  "@tiptap/extension-link": "^2.0.0-beta.202",
@@ -41,6 +44,6 @@
41
44
  "author": "",
42
45
  "license": "UNLICENSED",
43
46
  "engines": {
44
- "node": ">=22"
47
+ "node": ">=22.12"
45
48
  }
46
49
  }