@madgex/design-system-ce 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.5.0](https://github.com/projects/MDS/repos/mds-branding/compare/diff?targetBranch=refs/tags/@madgex/design-system-ce@5.4.1&sourceBranch=refs/tags/@madgex/design-system-ce@5.5.0) (2023-03-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * aria described by changes to njks and ce components ([d4c9e3a](https://github.com/projects/MDS/repos/mds-branding/commits/d4c9e3a68323648e2fd6b2a2a3dd522173eefbb9))
12
+ * combobox ce aria desc update ([dabc1ab](https://github.com/projects/MDS/repos/mds-branding/commits/dabc1ab37bae85a405d814efcfbee24fe7bc14b7))
13
+
14
+
15
+
16
+ ## [5.4.1](https://github.com/projects/MDS/repos/mds-branding/compare/diff?targetBranch=refs/tags/@madgex/design-system-ce@5.4.0&sourceBranch=refs/tags/@madgex/design-system-ce@5.4.1) (2023-02-13)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * check replaceChildren is supported before using ([b991e5d](https://github.com/projects/MDS/repos/mds-branding/commits/b991e5d66338c0176356531be39b54129da938c6))
22
+
23
+
24
+
6
25
  ## [5.4.0](https://github.com/projects/MDS/repos/mds-branding/compare/diff?targetBranch=refs/tags/@madgex/design-system-ce@5.3.0&sourceBranch=refs/tags/@madgex/design-system-ce@5.4.0) (2023-01-05)
7
26
 
8
27
 
@@ -10,41 +10,40 @@
10
10
  @keydown.enter="handleKeyDownEnter"
11
11
  >
12
12
  <input
13
- @input="handleInput"
13
+ :id="comboboxid"
14
+ ref="comboInput"
14
15
  :value="inputValue"
15
16
  class="mds-form-control"
16
17
  autocomplete="off"
17
18
  type="text"
18
19
  role="combobox"
19
- ref="comboInput"
20
- :id="comboboxid"
21
20
  :name="name"
22
21
  :placeholder="placeholder"
23
22
  :aria-owns="listBoxId"
24
23
  :aria-expanded="ariaExpanded"
25
24
  aria-autocomplete="list"
25
+ :aria-describedby="describedbyId"
26
26
  :aria-activedescendant="selectedOptionId"
27
27
  :aria-invalid="ariaInvalid"
28
- :aria-describedby="describedBy"
28
+ @input="handleInput"
29
29
  @change="handleChange"
30
30
  @blur="onInputBlur"
31
31
  @focus="handleFocus"
32
32
  />
33
33
 
34
34
  <ComboboxClear v-if="searchValue.length > 0" @clear="handleClear" />
35
- <ListBox :id="listBoxId" :hidden="listBoxHidden" :isLoading="isLoading" :comboboxid="comboboxid">
35
+ <ListBox :id="listBoxId" :hidden="listBoxHidden" :is-loading="isLoading" :comboboxid="comboboxid">
36
36
  <ListBoxOption
37
37
  v-for="(option, index) in visibleOptions"
38
+ :id="`${optionId}-${index}`"
38
39
  :key="index"
39
40
  :option="option"
40
- :id="`${optionId}-${index}`"
41
41
  :focused="selectedOption?.value === option?.value"
42
+ :search-value="searchValue"
42
43
  @mousedown="clickOption(option)"
43
- :searchValue="searchValue"
44
44
  />
45
45
  </ListBox>
46
46
  <div aria-live="polite" role="status" class="mds-visually-hidden">{{ resultCountMessage }}</div>
47
- <span :id="describedBy" style="display: none">{{ i18nText.describedByText }} </span>
48
47
  </div>
49
48
  </template>
50
49
 
@@ -60,7 +59,13 @@ export default {
60
59
  ListBox,
61
60
  ListBoxOption,
62
61
  },
63
- emits: ['search', 'select-option', 'clear-all'],
62
+ provide() {
63
+ return {
64
+ iconPath: this.iconpath,
65
+ loadingText: this.i18nText.loadingText,
66
+ clearInput: this.i18nText.clearInput,
67
+ };
68
+ },
64
69
  props: {
65
70
  comboboxid: {
66
71
  type: String,
@@ -98,7 +103,12 @@ export default {
98
103
  type: String,
99
104
  default: '',
100
105
  },
106
+ describedbyId: {
107
+ type: String,
108
+ default: ''
109
+ },
101
110
  },
111
+ emits: ['search', 'select-option', 'clear-all'],
102
112
  data() {
103
113
  return {
104
114
  expanded: false,
@@ -108,21 +118,6 @@ export default {
108
118
  resultCountMessage: null,
109
119
  };
110
120
  },
111
- provide() {
112
- return {
113
- iconPath: this.iconpath,
114
- loadingText: this.i18nText.loadingText,
115
- clearInput: this.i18nText.clearInput,
116
- };
117
- },
118
- mounted() {
119
- // TODO: Get rid of this code which couples this to the nunjucks MdsCombobox template!
120
- const fallbackInput = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback input');
121
- const fallbackSelect = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback select');
122
-
123
- if (fallbackInput) fallbackInput.remove();
124
- if (fallbackSelect) fallbackSelect.removeAttribute('id');
125
- },
126
121
  computed: {
127
122
  inputValue() {
128
123
  if (this.chosenOption) {
@@ -162,9 +157,6 @@ export default {
162
157
  optionId() {
163
158
  return `${this.comboboxid}-option`;
164
159
  },
165
- describedBy() {
166
- return `${this.comboboxid}-assistiveHint`;
167
- },
168
160
  isLoading() {
169
161
  return this.options.length === 0 && this.expanded;
170
162
  },
@@ -195,14 +187,20 @@ export default {
195
187
  ? JSON.parse(this.i18n)
196
188
  : {
197
189
  loadingText: 'Loading',
198
- describedByText:
199
- 'When autocomplete results are available, use up and down arrows to review and enter to select.',
200
190
  resultsMessage: '{count} result available',
201
191
  resultsMessage_plural: '{count} results available',
202
192
  clearInput: 'clear input',
203
193
  };
204
194
  },
205
195
  },
196
+ mounted() {
197
+ // TODO: Get rid of this code which couples this to the nunjucks MdsCombobox template!
198
+ const fallbackInput = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback input');
199
+ const fallbackSelect = this.$el.parentElement?.parentElement?.querySelector('.mds-form-element__fallback select');
200
+
201
+ if (fallbackInput) fallbackInput.remove();
202
+ if (fallbackSelect) fallbackSelect.removeAttribute('id');
203
+ },
206
204
  methods: {
207
205
  makeActive() {
208
206
  this.expanded = true;
@@ -19,6 +19,7 @@ export default {
19
19
  id: this.editorid,
20
20
  customMenuButtons: this.customMenuButtons,
21
21
  i18nText: this.i18nText,
22
+ ariaDescribedBy: this.describedbyId,
22
23
  };
23
24
  },
24
25
  props: {
@@ -42,6 +43,10 @@ export default {
42
43
  type: String,
43
44
  default: '',
44
45
  },
46
+ describedbyId: {
47
+ type: String,
48
+ default: '',
49
+ },
45
50
  },
46
51
  data() {
47
52
  return {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="mds-text-editor" v-if="editor">
2
+ <div v-if="editor" class="mds-text-editor">
3
3
  <TextEditorToolbar :editor="editor" />
4
4
  <EditorContent :editor="editor" />
5
5
  </div>
@@ -17,13 +17,13 @@ export default {
17
17
  EditorContent,
18
18
  TextEditorToolbar,
19
19
  },
20
+ inject: ['id', 'ariaDescribedBy'],
20
21
  props: {
21
22
  modelValue: {
22
23
  type: String,
23
24
  default: '',
24
25
  },
25
26
  },
26
- inject: ['id'],
27
27
 
28
28
  emits: ['update:modelValue'],
29
29
 
@@ -60,6 +60,7 @@ export default {
60
60
  id: this.id,
61
61
  role: 'textbox',
62
62
  [`aria-labelledby`]: `text-editor-label-${this.id}`,
63
+ ...(this.ariaDescribedBy && { [`aria-describedby`]: this.ariaDescribedBy }),
63
64
  },
64
65
  },
65
66
  content: this.modelValue,
@@ -1 +1 @@
1
- import{_ as h,o as a,c as l,a as c,w as r,t as m,b as v,r as I,n as g,d as p,e as x,f as _,g as C,F as B,h as w,i as k}from"../plugin-vue_export-helper.js";const L={name:"ComboboxClear",inject:["iconPath","clearInput"]},V=["aria-label","title"],S={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},T=["href"];function E(t,n,s,u,o,e){return a(),l("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:n[0]||(n[0]=d=>t.$emit("clear",d)),onKeydown:n[1]||(n[1]=r(d=>t.$emit("clear",d),["enter"])),"aria-label":e.clearInput,title:e.clearInput},[(a(),l("svg",S,[c("use",{href:`${e.iconPath}#icon-close`},null,8,T)]))],40,V)}var K=h(L,[["render",E]]);const M={name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0},comboboxid:{type:String,required:!0}},inject:["iconPath","loadingText"]},H=["aria-labelledby","hidden"],F={key:0,class:"mds-combobox-loading"},D={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},A=["href"],q={class:"mds-visually-hidden"};function G(t,n,s,u,o,e){return a(),l("ul",{class:"mds-combobox__listbox",role:"listbox","aria-labelledby":`${s.comboboxid}-label`,hidden:s.hidden},[s.isLoading?(a(),l("li",F,[(a(),l("svg",D,[c("use",{href:`${e.iconPath}#icon-spinner`},null,8,A)])),c("span",q,m(e.loadingText),1)])):v("",!0),I(t.$slots,"default")],8,H)}var P=h(M,[["render",G]]);const N={name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue(t){return t},focused(t){t&&this.$refs.listItem.scrollIntoView(!1)}},methods:{highlightOption(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),n=>`<span class="mds-combobox__option--marked">${n}</span>`)}}},j=["aria-selected","innerHTML"];function R(t,n,s,u,o,e){return a(),l("li",{ref:"listItem",class:g(["mds-combobox__option",{"mds-combobox__option--focused":s.focused}]),role:"option","aria-selected":s.focused.toString(),onMousedown:n[0]||(n[0]=d=>t.$emit("mousedown",d)),innerHTML:e.highlightOption()},null,42,j)}var U=h(N,[["render",R]]);const $={name:"Combobox",components:{ComboboxClear:K,ListBox:P,ListBoxOption:U},emits:["search","select-option","clear-all"],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:""}},data(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value,resultCountMessage:null}},provide(){return{iconPath:this.iconpath,loadingText:this.i18nText.loadingText,clearInput:this.i18nText.clearInput}},mounted(){var s,u,o,e;const t=(u=(s=this.$el.parentElement)==null?void 0:s.parentElement)==null?void 0:u.querySelector(".mds-form-element__fallback input"),n=(e=(o=this.$el.parentElement)==null?void 0:o.parentElement)==null?void 0:e.querySelector(".mds-form-element__fallback select");t&&t.remove(),n&&n.removeAttribute("id")},computed:{inputValue(){return this.chosenOption?this.chosenOption.label:this.searchValue},selectedOption:{get(){return this.selected},set(t){this.selected=t}},chosenOption:{get(){return this.chosen},set(t){this.chosen=t,this.selectedOption=t,this.$emit("select-option",this.chosen)}},visibleOptions(){return this.filterOptions?this.options.filter(t=>t.label.toLowerCase().includes(this.searchValue.toLowerCase())):this.options},listBoxId(){return`${this.comboboxid}-listbox`},optionId(){return`${this.comboboxid}-option`},describedBy(){return`${this.comboboxid}-assistiveHint`},isLoading(){return this.options.length===0&&this.expanded},selectedOptionId(){const t=this.visibleOptions.indexOf(this.selectedOption);if(t>-1)return`${this.optionId}-${t}`},listBoxHidden(){return!this.expanded},lastOptionIndex(){return this.visibleOptions.length-1},ariaExpanded(){return this.expanded?"true":"false"},ariaInvalid(){return this.dataAriaInvalid?"true":"false"},i18nText(){return this.i18n?JSON.parse(this.i18n):{loadingText:"Loading",describedByText:"When autocomplete results are available, use up and down arrows to review and enter to select.",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}}},methods:{makeActive(){this.expanded=!0},makeInactive(){this.expanded=!1},handleInput(t){this.chosenOption=null,this.searchValue=t.target?t.target.value:"",this.handleChange(),this.$emit("search",this.searchValue),this.visibleOptions.length>0&&this.updateCount()},handleChange(){this.searchValue.length===0&&this.clearField(),this.searchValue.length>1?(this.makeActive(),this.updateCount()):this.makeInactive()},handleFocus(){this.handleChange(),this.visibleOptions.length>1&&this.updateCount()},handleClear(){this.clearField(),this.$refs.comboInput.focus()},clearField(){this.searchValue="",this.chosenOption=null,this.$emit("clear-all")},clickOption(t=this.selectedOption){this.chosenOption=t,this.makeInactive()},handleKeyDownEnter(t){this.expanded&&(t.preventDefault(),this.chooseOption())},chooseOption(){this.chosenOption=this.selectedOption,this.makeInactive(),this.clearCount()},hiddenGuard(t){this.listBoxHidden||t.call(this)},onInputBlur(){this.makeInactive(),this.clearCount()},onKeyDown(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===this.lastOptionIndex?t:t+1;this.selectedOption=this.visibleOptions[n]}else[this.selectedOption]=this.visibleOptions},onKeyUp(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===0?t:t-1;this.selectedOption=this.visibleOptions[n]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome(){[this.selectedOption]=this.visibleOptions},onKeyEnd(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]},updateCount(){this.clearCount(),setTimeout(()=>{const t=this.visibleOptions.length===1?this.i18nText.resultsMessage:this.i18nText.resultsMessage_plural;this.resultCountMessage=t.replace("{count}",this.visibleOptions.length)},1400)},clearCount(){this.resultCountMessage=null}}},z=["value","id","name","placeholder","aria-owns","aria-expanded","aria-activedescendant","aria-invalid","aria-describedby"],J={"aria-live":"polite",role:"status",class:"mds-visually-hidden"},W=["id"];function Q(t,n,s,u,o,e){const d=p("ComboboxClear"),O=p("ListBoxOption"),y=p("ListBox");return a(),l("div",{class:g(["mds-combobox",{"mds-combobox--active":!e.listBoxHidden}]),onKeydown:[n[4]||(n[4]=r(i=>e.hiddenGuard(e.onKeyDown),["down"])),n[5]||(n[5]=r(i=>e.hiddenGuard(e.onKeyUp),["up"])),n[6]||(n[6]=r(i=>e.hiddenGuard(e.onKeyHome),["home"])),n[7]||(n[7]=r(i=>e.hiddenGuard(e.onKeyEnd),["end"])),n[8]||(n[8]=r((...i)=>e.makeInactive&&e.makeInactive(...i),["esc"])),n[9]||(n[9]=r((...i)=>e.handleKeyDownEnter&&e.handleKeyDownEnter(...i),["enter"]))]},[c("input",{onInput:n[0]||(n[0]=(...i)=>e.handleInput&&e.handleInput(...i)),value:e.inputValue,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",ref:"comboInput",id:s.comboboxid,name:s.name,placeholder:s.placeholder,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,"aria-autocomplete":"list","aria-activedescendant":e.selectedOptionId,"aria-invalid":e.ariaInvalid,"aria-describedby":e.describedBy,onChange:n[1]||(n[1]=(...i)=>e.handleChange&&e.handleChange(...i)),onBlur:n[2]||(n[2]=(...i)=>e.onInputBlur&&e.onInputBlur(...i)),onFocus:n[3]||(n[3]=(...i)=>e.handleFocus&&e.handleFocus(...i))},null,40,z),o.searchValue.length>0?(a(),x(d,{key:0,onClear:e.handleClear},null,8,["onClear"])):v("",!0),_(y,{id:e.listBoxId,hidden:e.listBoxHidden,isLoading:e.isLoading,comboboxid:s.comboboxid},{default:C(()=>[(a(!0),l(B,null,w(e.visibleOptions,(i,b)=>{var f;return a(),x(O,{key:b,option:i,id:`${e.optionId}-${b}`,focused:((f=e.selectedOption)==null?void 0:f.value)===(i==null?void 0:i.value),onMousedown:Y=>e.clickOption(i),searchValue:o.searchValue},null,8,["option","id","focused","onMousedown","searchValue"])}),128))]),_:1},8,["id","hidden","isLoading","comboboxid"]),c("div",J,m(o.resultCountMessage),1),c("span",{id:e.describedBy,style:{display:"none"}},m(e.i18nText.describedByText),9,W)],34)}var X=h($,[["render",Q]]);const ee=k(X,{shadowRoot:!1});export{ee as default};
1
+ import{_ as h,o as a,c as o,a as c,w as r,t as x,b as v,r as y,n as g,d as p,e as f,f as _,g as C,F as B,h as k,i as w}from"../plugin-vue_export-helper.js";const L={name:"ComboboxClear",inject:["iconPath","clearInput"]},V=["aria-label","title"],S={"aria-hidden":"true",focusable:"false",class:"mds-icon mds-icon--close mds-icon--sm"},E=["href"];function K(t,n,s,u,l,e){return a(),o("button",{class:"mds-combobox__clear mds-button mds-button--plain",type:"button",onClick:n[0]||(n[0]=d=>t.$emit("clear",d)),onKeydown:n[1]||(n[1]=r(d=>t.$emit("clear",d),["enter"])),"aria-label":e.clearInput,title:e.clearInput},[(a(),o("svg",S,[c("use",{href:`${e.iconPath}#icon-close`},null,8,E)]))],40,V)}var M=h(L,[["render",K]]);const T={name:"ListBox",props:{hidden:{type:Boolean,default:!0},isLoading:{type:Boolean,default:!0},comboboxid:{type:String,required:!0}},inject:["iconPath","loadingText"]},H=["aria-labelledby","hidden"],F={key:0,class:"mds-combobox-loading"},D={"aria-hidden":"true",focusable:"true",class:"mds-icon mds-icon--spinner mds-icon--after"},A=["href"],q={class:"mds-visually-hidden"};function G(t,n,s,u,l,e){return a(),o("ul",{class:"mds-combobox__listbox",role:"listbox","aria-labelledby":`${s.comboboxid}-label`,hidden:s.hidden},[s.isLoading?(a(),o("li",F,[(a(),o("svg",D,[c("use",{href:`${e.iconPath}#icon-spinner`},null,8,A)])),c("span",q,x(e.loadingText),1)])):v("",!0),y(t.$slots,"default")],8,H)}var P=h(T,[["render",G]]);const N={name:"ListBoxOption",props:{option:{type:Object,required:!0},focused:{type:Boolean,default:!1},searchValue:{type:String,default:""}},watch:{searchValue(t){return t},focused(t){t&&this.$refs.listItem.scrollIntoView(!1)}},methods:{highlightOption(){return this.option.label.replace(new RegExp(this.searchValue,"gi"),n=>`<span class="mds-combobox__option--marked">${n}</span>`)}}},j=["aria-selected","innerHTML"];function R(t,n,s,u,l,e){return a(),o("li",{ref:"listItem",class:g(["mds-combobox__option",{"mds-combobox__option--focused":s.focused}]),role:"option","aria-selected":s.focused.toString(),onMousedown:n[0]||(n[0]=d=>t.$emit("mousedown",d)),innerHTML:e.highlightOption()},null,42,j)}var U=h(N,[["render",R]]);const $={name:"Combobox",components:{ComboboxClear:M,ListBox:P,ListBoxOption:U},provide(){return{iconPath:this.iconpath,loadingText:this.i18nText.loadingText,clearInput:this.i18nText.clearInput}},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:""}},emits:["search","select-option","clear-all"],data(){return{expanded:!1,selected:null,chosen:null,searchValue:this.$props.value,resultCountMessage:null}},computed:{inputValue(){return this.chosenOption?this.chosenOption.label:this.searchValue},selectedOption:{get(){return this.selected},set(t){this.selected=t}},chosenOption:{get(){return this.chosen},set(t){this.chosen=t,this.selectedOption=t,this.$emit("select-option",this.chosen)}},visibleOptions(){return this.filterOptions?this.options.filter(t=>t.label.toLowerCase().includes(this.searchValue.toLowerCase())):this.options},listBoxId(){return`${this.comboboxid}-listbox`},optionId(){return`${this.comboboxid}-option`},isLoading(){return this.options.length===0&&this.expanded},selectedOptionId(){const t=this.visibleOptions.indexOf(this.selectedOption);if(t>-1)return`${this.optionId}-${t}`},listBoxHidden(){return!this.expanded},lastOptionIndex(){return this.visibleOptions.length-1},ariaExpanded(){return this.expanded?"true":"false"},ariaInvalid(){return this.dataAriaInvalid?"true":"false"},i18nText(){return this.i18n?JSON.parse(this.i18n):{loadingText:"Loading",resultsMessage:"{count} result available",resultsMessage_plural:"{count} results available",clearInput:"clear input"}}},mounted(){var s,u,l,e;const t=(u=(s=this.$el.parentElement)==null?void 0:s.parentElement)==null?void 0:u.querySelector(".mds-form-element__fallback input"),n=(e=(l=this.$el.parentElement)==null?void 0:l.parentElement)==null?void 0:e.querySelector(".mds-form-element__fallback select");t&&t.remove(),n&&n.removeAttribute("id")},methods:{makeActive(){this.expanded=!0},makeInactive(){this.expanded=!1},handleInput(t){this.chosenOption=null,this.searchValue=t.target?t.target.value:"",this.handleChange(),this.$emit("search",this.searchValue),this.visibleOptions.length>0&&this.updateCount()},handleChange(){this.searchValue.length===0&&this.clearField(),this.searchValue.length>1?(this.makeActive(),this.updateCount()):this.makeInactive()},handleFocus(){this.handleChange(),this.visibleOptions.length>1&&this.updateCount()},handleClear(){this.clearField(),this.$refs.comboInput.focus()},clearField(){this.searchValue="",this.chosenOption=null,this.$emit("clear-all")},clickOption(t=this.selectedOption){this.chosenOption=t,this.makeInactive()},handleKeyDownEnter(t){this.expanded&&(t.preventDefault(),this.chooseOption())},chooseOption(){this.chosenOption=this.selectedOption,this.makeInactive(),this.clearCount()},hiddenGuard(t){this.listBoxHidden||t.call(this)},onInputBlur(){this.makeInactive(),this.clearCount()},onKeyDown(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===this.lastOptionIndex?t:t+1;this.selectedOption=this.visibleOptions[n]}else[this.selectedOption]=this.visibleOptions},onKeyUp(){if(this.selectedOption){const t=this.visibleOptions.findIndex(s=>s.value===this.selectedOption.value),n=t===0?t:t-1;this.selectedOption=this.visibleOptions[n]}else this.selectedOption=this.visibleOptions[this.lastOptionIndex]},onKeyHome(){[this.selectedOption]=this.visibleOptions},onKeyEnd(){this.selectedOption=this.visibleOptions[this.lastOptionIndex]},updateCount(){this.clearCount(),setTimeout(()=>{const t=this.visibleOptions.length===1?this.i18nText.resultsMessage:this.i18nText.resultsMessage_plural;this.resultCountMessage=t.replace("{count}",this.visibleOptions.length)},1400)},clearCount(){this.resultCountMessage=null}}},z=["id","value","name","placeholder","aria-owns","aria-expanded","aria-describedby","aria-activedescendant","aria-invalid"],J={"aria-live":"polite",role:"status",class:"mds-visually-hidden"};function Q(t,n,s,u,l,e){const d=p("ComboboxClear"),O=p("ListBoxOption"),I=p("ListBox");return a(),o("div",{class:g(["mds-combobox",{"mds-combobox--active":!e.listBoxHidden}]),onKeydown:[n[4]||(n[4]=r(i=>e.hiddenGuard(e.onKeyDown),["down"])),n[5]||(n[5]=r(i=>e.hiddenGuard(e.onKeyUp),["up"])),n[6]||(n[6]=r(i=>e.hiddenGuard(e.onKeyHome),["home"])),n[7]||(n[7]=r(i=>e.hiddenGuard(e.onKeyEnd),["end"])),n[8]||(n[8]=r((...i)=>e.makeInactive&&e.makeInactive(...i),["esc"])),n[9]||(n[9]=r((...i)=>e.handleKeyDownEnter&&e.handleKeyDownEnter(...i),["enter"]))]},[c("input",{id:s.comboboxid,ref:"comboInput",value:e.inputValue,class:"mds-form-control",autocomplete:"off",type:"text",role:"combobox",name:s.name,placeholder:s.placeholder,"aria-owns":e.listBoxId,"aria-expanded":e.ariaExpanded,"aria-autocomplete":"list","aria-describedby":s.describedbyId,"aria-activedescendant":e.selectedOptionId,"aria-invalid":e.ariaInvalid,onInput:n[0]||(n[0]=(...i)=>e.handleInput&&e.handleInput(...i)),onChange:n[1]||(n[1]=(...i)=>e.handleChange&&e.handleChange(...i)),onBlur:n[2]||(n[2]=(...i)=>e.onInputBlur&&e.onInputBlur(...i)),onFocus:n[3]||(n[3]=(...i)=>e.handleFocus&&e.handleFocus(...i))},null,40,z),l.searchValue.length>0?(a(),f(d,{key:0,onClear:e.handleClear},null,8,["onClear"])):v("",!0),_(I,{id:e.listBoxId,hidden:e.listBoxHidden,"is-loading":e.isLoading,comboboxid:s.comboboxid},{default:C(()=>[(a(!0),o(B,null,k(e.visibleOptions,(i,m)=>{var b;return a(),f(O,{id:`${e.optionId}-${m}`,key:m,option:i,focused:((b=e.selectedOption)==null?void 0:b.value)===(i==null?void 0:i.value),"search-value":l.searchValue,onMousedown:X=>e.clickOption(i)},null,8,["id","option","focused","search-value","onMousedown"])}),128))]),_:1},8,["id","hidden","is-loading","comboboxid"]),c("div",J,x(l.resultCountMessage),1)],34)}var W=h($,[["render",Q]]);const Z=w(W,{shadowRoot:!1});export{Z as default};
@@ -91,4 +91,4 @@ img.ProseMirror-separator {
91
91
  `)),o.setMeta("paste",!0),n.dispatch(o),!0}}})]}}),Jm=Ee.create({name:"doc",topNode:!0,content:"block+"});function Gm(n={}){return new ue({view(e){return new Ym(e,n)}})}class Ym{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let i=s=>{this[r](s)};return e.dom.addEventListener(r,i),{name:r,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t;if(!e.parent.inlineContent){let o=e.nodeBefore,a=e.nodeAfter;if(o||a){let l=this.editorView.nodeDOM(this.cursorPos-(o?o.nodeSize:0)).getBoundingClientRect(),u=o?l.bottom:l.top;o&&a&&(u=(u+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),t={left:l.left,right:l.right,top:u-this.width/2,bottom:u+this.width/2}}}if(!t){let o=this.editorView.coordsAtPos(this.cursorPos);t={left:o.left-this.width/2,right:o.left+this.width/2,top:o.top,bottom:o.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color);let i,s;if(!r||r==document.body&&getComputedStyle(r).position=="static")i=-pageXOffset,s=-pageYOffset;else{let o=r.getBoundingClientRect();i=o.left-r.scrollLeft,s=o.top-r.scrollTop}this.element.style.left=t.left-i+"px",this.element.style.top=t.top-s+"px",this.element.style.width=t.right-t.left+"px",this.element.style.height=t.bottom-t.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=r&&r.type.spec.disableDropCursor,s=typeof i=="function"?i(this.editorView,t):i;if(t&&!s){let o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(o=jl(this.editorView.state.doc,o,this.editorView.dragging.slice),o==null))return this.setCursor(null);this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}const Xm=ve.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Gm(this.options)]}});class G extends P{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return G.valid(r)?new G(r):P.near(r)}content(){return S.empty}eq(e){return e instanceof G&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new G(e.resolve(t.pos))}getBookmark(){return new ho(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!Qm(e)||!Zm(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&G.valid(e))return e;let i=e.pos,s=null;for(let o=e.depth;;o--){let a=e.node(o);if(t>0?e.indexAfter(o)<a.childCount:e.index(o)>0){s=a.child(t>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=t;let l=e.doc.resolve(i);if(G.valid(l))return l}for(;;){let o=t>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!B.isSelectable(s)){e=e.doc.resolve(i+s.nodeSize*t),r=!1;continue e}break}s=o,i+=t;let a=e.doc.resolve(i);if(G.valid(a))return a}return null}}}G.prototype.visible=!1;G.findFrom=G.findGapCursorFrom;P.jsonID("gapcursor",G);class ho{constructor(e){this.pos=e}map(e){return new ho(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return G.valid(t)?new G(t):P.near(t)}}function Qm(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function Zm(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function eg(){return new ue({props:{decorations:ig,createSelectionBetween(n,e,t){return e.pos==t.pos&&G.valid(t)?new G(t):null},handleClick:ng,handleKeyDown:tg,handleDOMEvents:{beforeinput:rg}}})}const tg=Au({ArrowLeft:Br("horiz",-1),ArrowRight:Br("horiz",1),ArrowUp:Br("vert",-1),ArrowDown:Br("vert",1)});function Br(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,s){let o=r.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof L){if(!s.endOfTextblock(t)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=G.findGapCursorFrom(a,e,l);return u?(i&&i(r.tr.setSelection(new G(u))),!0):!1}}function ng(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!G.valid(r))return!1;let i=n.posAtCoords({left:t.clientX,top:t.clientY});return i&&i.inside>-1&&B.isSelectable(n.state.doc.nodeAt(i.inside))?!1:(n.dispatch(n.state.tr.setSelection(new G(r))),!0)}function rg(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof G))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let i=k.empty;for(let o=r.length-1;o>=0;o--)i=k.from(r[o].createAndFill(null,i));let s=n.state.tr.replace(t.pos,t.pos,new S(i,0,0));return s.setSelection(L.near(s.doc.resolve(t.pos+1))),n.dispatch(s),!1}function ig(n){if(!(n.selection instanceof G))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",oe.create(n.doc,[Re.widget(n.selection.head,e,{key:"gapcursor"})])}const sg=ve.create({name:"gapCursor",addProseMirrorPlugins(){return[eg()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=I(O(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),og=Ee.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",pe(this.options.HTMLAttributes,n)]},renderText(){return`
92
92
  `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:i,storedMarks:s}=t;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:a}=r.extensionManager,l=s||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&o){const d=l.filter(f=>a.includes(f.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ag=Ee.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:e}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,pe(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.setNode(this.name,n):!1,toggleHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.toggleNode(this.name,"paragraph",n):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((n,e)=>de(A({},n),{[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(n=>Ps({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var ii=200,le=function(){};le.prototype.append=function(e){return e.length?(e=le.from(e),!this.length&&e||e.length<ii&&this.leafAppend(e)||this.length<ii&&e.leafPrepend(this)||this.appendInner(e)):this};le.prototype.prepend=function(e){return e.length?le.from(e).append(this):this};le.prototype.appendInner=function(e){return new lg(this,e)};le.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?le.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))};le.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};le.prototype.forEach=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)};le.prototype.map=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(s,o){return i.push(e(s,o))},t,r),i};le.from=function(e){return e instanceof le?e:e&&e.length?new Xu(e):le.empty};var Xu=function(n){function e(r){n.call(this),this.values=r}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,s){return i==0&&s==this.length?this:new e(this.values.slice(i,s))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,s,o,a){for(var l=s;l<o;l++)if(i(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,s,o,a){for(var l=s-1;l>=o;l--)if(i(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=ii)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=ii)return new e(i.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(le);le.empty=new Xu([]);var lg=function(n){function e(t,r){n.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,s,o){var a=this.left.length;if(i<a&&this.left.forEachInner(r,i,Math.min(s,a),o)===!1||s>a&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,s)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,s,o){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(s,a)-a,o+a)===!1||s<a&&this.left.forEachInvertedInner(r,Math.min(i,a),s,o)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var s=this.left.length;return i<=s?this.left.slice(r,i):r>=s?this.right.slice(r-s,i-s):this.left.slice(r,s).append(this.right.slice(0,i-s))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(le),Qu=le;const ug=500;class Ve{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,s;t&&(i=this.remapping(r,this.items.length),s=i.maps.length);let o=e.tr,a,l,u=[],c=[];return this.items.forEach((d,f)=>{if(!d.step){i||(i=this.remapping(r,f+1),s=i.maps.length),s--,c.push(d);return}if(i){c.push(new Je(d.map));let h=d.step.map(i.slice(s)),p;h&&o.maybeStep(h).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],u.push(new Je(p,void 0,void 0,u.length+c.length))),s--,p&&i.appendMap(p,s)}else o.maybeStep(d.step);if(d.selection)return a=i?d.selection.map(i.slice(s)):d.selection,l=new Ve(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,t,r,i){let s=[],o=this.eventCount,a=this.items,l=!i&&a.length?a.get(a.length-1):null;for(let c=0;c<e.steps.length;c++){let d=e.steps[c].invert(e.docs[c]),f=new Je(e.mapping.maps[c],d,t),h;(h=l&&l.merge(f))&&(f=h,c?s.pop():a=a.slice(0,a.length-1)),s.push(f),t&&(o++,t=void 0),i||(l=f)}let u=o-r.depth;return u>dg&&(a=cg(a,u),o-=u),new Ve(a.append(s),o)}remapping(e,t){let r=new bn;return this.items.forEach((i,s)=>{let o=i.mirrorOffset!=null&&s-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,t),r}addMaps(e){return this.eventCount==0?this:new Ve(this.items.append(e.map(t=>new Je(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-t),s=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(f=>{f.selection&&a--},i);let l=t;this.items.forEach(f=>{let h=s.getMirror(--l);if(h==null)return;o=Math.min(o,h);let p=s.maps[h];if(f.step){let m=e.steps[h].invert(e.docs[h]),y=f.selection&&f.selection.map(s.slice(l+1,h));y&&a++,r.push(new Je(p,m,y))}else r.push(new Je(p))},i);let u=[];for(let f=t;f<o;f++)u.push(new Je(s.maps[f]));let c=this.items.slice(0,i).append(u).append(r),d=new Ve(c,a);return d.emptyItemCount()>ug&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,i=[],s=0;return this.items.forEach((o,a)=>{if(a>=e)i.push(o),o.selection&&s++;else if(o.step){let l=o.step.map(t.slice(r)),u=l&&l.getMap();if(r--,u&&t.appendMap(u,r),l){let c=o.selection&&o.selection.map(t.slice(r));c&&s++;let d=new Je(u.invert(),l,c),f,h=i.length-1;(f=i.length&&i[h].merge(d))?i[h]=f:i.push(d)}}else o.map&&r--},this.items.length,0),new Ve(Qu.from(i.reverse()),s)}}Ve.empty=new Ve(Qu.empty,0);function cg(n,e){let t;return n.forEach((r,i)=>{if(r.selection&&e--==0)return t=i,!1}),n.slice(t)}class Je{constructor(e,t,r,i){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Je(t.getMap().invert(),t,this.selection)}}}class kt{constructor(e,t,r,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=i}}const dg=20;function fg(n,e,t,r){let i=t.getMeta(Tt),s;if(i)return i.historyState;t.getMeta(pg)&&(n=new kt(n.done,n.undone,null,0));let o=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(o&&o.getMeta(Tt))return o.getMeta(Tt).redo?new kt(n.done.addTransform(t,void 0,r,Hr(e)),n.undone,Ha(t.mapping.maps[t.steps.length-1]),n.prevTime):new kt(n.done,n.undone.addTransform(t,void 0,r,Hr(e)),null,n.prevTime);if(t.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.prevTime==0||!o&&(n.prevTime<(t.time||0)-r.newGroupDelay||!hg(t,n.prevRanges)),l=o?ds(n.prevRanges,t.mapping):Ha(t.mapping.maps[t.steps.length-1]);return new kt(n.done.addTransform(t,a?e.selection.getBookmark():void 0,r,Hr(e)),Ve.empty,l,t.time)}else return(s=t.getMeta("rebased"))?new kt(n.done.rebased(t,s),n.undone.rebased(t,s),ds(n.prevRanges,t.mapping),n.prevTime):new kt(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),ds(n.prevRanges,t.mapping),n.prevTime)}function hg(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((r,i)=>{for(let s=0;s<e.length;s+=2)r<=e[s+1]&&i>=e[s]&&(t=!0)}),t}function Ha(n){let e=[];return n.forEach((t,r,i,s)=>e.push(i,s)),e}function ds(n,e){if(!n)return null;let t=[];for(let r=0;r<n.length;r+=2){let i=e.map(n[r],1),s=e.map(n[r+1],-1);i<=s&&t.push(i,s)}return t}function Zu(n,e,t,r){let i=Hr(e),s=Tt.get(e).spec.config,o=(r?n.undone:n.done).popEvent(e,i);if(!o)return;let a=o.selection.resolve(o.transform.doc),l=(r?n.done:n.undone).addTransform(o.transform,e.selection.getBookmark(),s,i),u=new kt(r?l:o.remaining,r?o.remaining:l,null,0);t(o.transform.setSelection(a).setMeta(Tt,{redo:r,historyState:u}).scrollIntoView())}let fs=!1,ja=null;function Hr(n){let e=n.plugins;if(ja!=e){fs=!1,ja=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){fs=!0;break}}return fs}const Tt=new Me("history"),pg=new Me("closeHistory");function mg(n={}){return n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},new ue({key:Tt,state:{init(){return new kt(Ve.empty,Ve.empty,null,0)},apply(e,t,r){return fg(t,r,e,n)}},config:n,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,i=r=="historyUndo"?ec:r=="historyRedo"?tc:null;return i?(t.preventDefault(),i(e.state,e.dispatch)):!1}}}})}const ec=(n,e)=>{let t=Tt.getState(n);return!t||t.done.eventCount==0?!1:(e&&Zu(t,n,e,!1),!0)},tc=(n,e)=>{let t=Tt.getState(n);return!t||t.undone.eventCount==0?!1:(e&&Zu(t,n,e,!0),!0)},gg=ve.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>ec(n,e),redo:()=>({state:n,dispatch:e})=>tc(n,e)}},addProseMirrorPlugins(){return[mg(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044F":()=>this.editor.commands.undo(),"Shift-Mod-\u044F":()=>this.editor.commands.redo()}}}),yg=Ee.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",pe(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{var r;if(t){const{$to:i}=e.selection,s=i.end();if(i.nodeAfter)e.setSelection(L.create(e.doc,i.pos));else{const o=(r=i.parent.type.contentMatch.defaultType)===null||r===void 0?void 0:r.create();o&&(e.insert(s,o),e.setSelection(L.create(e.doc,s)))}e.scrollIntoView()}return!0}).run()}},addInputRules(){return[Nm({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),Dg=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,bg=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,vg=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,kg=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,Cg=ht.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[On({find:Dg,type:this.type}),On({find:vg,type:this.type})]},addPasteRules(){return[en({find:bg,type:this.type}),en({find:kg,type:this.type})]}}),Eg=Ee.create({name:"listItem",addOptions(){return{HTMLAttributes:{}}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",pe(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),xg=/^(\d+)\.\s$/,Sg=Ee.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const r=n,{start:e}=r,t=Io(r,["start"]);return e===1?["ol",pe(this.options.HTMLAttributes,t),0]:["ol",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[fo({find:xg,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:(n,e)=>e.childCount+e.attrs.start===+n[1]})]}}),Ag=Ee.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),wg=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,Og=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,Mg=ht.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[On({find:wg,type:this.type})]},addPasteRules(){return[en({find:Og,type:this.type})]}}),Tg=Ee.create({name:"text",group:"inline"}),Fg=ve.create({name:"starterKit",addExtensions(){var n,e,t,r,i,s,o,a,l,u,c,d,f,h,p,m,y,D;const v=[];return this.options.blockquote!==!1&&v.push(Rm.configure((n=this.options)===null||n===void 0?void 0:n.blockquote)),this.options.bold!==!1&&v.push(Vm.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&v.push(jm.configure((t=this.options)===null||t===void 0?void 0:t.bulletList)),this.options.code!==!1&&v.push(Wm.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&v.push(Um.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&v.push(Jm.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&v.push(Xm.configure((o=this.options)===null||o===void 0?void 0:o.dropcursor)),this.options.gapcursor!==!1&&v.push(sg.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&v.push(og.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&v.push(ag.configure((u=this.options)===null||u===void 0?void 0:u.heading)),this.options.history!==!1&&v.push(gg.configure((c=this.options)===null||c===void 0?void 0:c.history)),this.options.horizontalRule!==!1&&v.push(yg.configure((d=this.options)===null||d===void 0?void 0:d.horizontalRule)),this.options.italic!==!1&&v.push(Cg.configure((f=this.options)===null||f===void 0?void 0:f.italic)),this.options.listItem!==!1&&v.push(Eg.configure((h=this.options)===null||h===void 0?void 0:h.listItem)),this.options.orderedList!==!1&&v.push(Sg.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&v.push(Ag.configure((m=this.options)===null||m===void 0?void 0:m.paragraph)),this.options.strike!==!1&&v.push(Mg.configure((y=this.options)===null||y===void 0?void 0:y.strike)),this.options.text!==!1&&v.push(Tg.configure((D=this.options)===null||D===void 0?void 0:D.text)),v}});var Ie="top",_e="bottom",We="right",Pe="left",po="auto",kr=[Ie,_e,We,Pe],Mn="start",mo="end",Ng="clippingParents",nc="viewport",_n="popper",Bg="reference",$a=kr.reduce(function(n,e){return n.concat([e+"-"+Mn,e+"-"+mo])},[]),rc=[].concat(kr,[po]).reduce(function(n,e){return n.concat([e,e+"-"+Mn,e+"-"+mo])},[]),Rg="beforeRead",Ig="read",Pg="afterRead",Lg="beforeMain",zg="main",Vg="afterMain",Hg="beforeWrite",jg="write",$g="afterWrite",_g=[Rg,Ig,Pg,Lg,zg,Vg,Hg,jg,$g];function it(n){return n?(n.nodeName||"").toLowerCase():null}function qe(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function pr(n){var e=qe(n).Element;return n instanceof e||n instanceof Element}function Ke(n){var e=qe(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function ic(n){if(typeof ShadowRoot=="undefined")return!1;var e=qe(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function Wg(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},s=e.elements[t];!Ke(s)||!it(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function Kg(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!Ke(i)||!it(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}var sc={name:"applyStyles",enabled:!0,phase:"write",fn:Wg,effect:Kg,requires:["computeStyles"]};function nt(n){return n.split("-")[0]}function Tn(n){var e=n.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function go(n){var e=Tn(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function oc(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&ic(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pt(n){return qe(n).getComputedStyle(n)}function qg(n){return["table","td","th"].indexOf(it(n))>=0}function Pt(n){return((pr(n)?n.ownerDocument:n.document)||window.document).documentElement}function Li(n){return it(n)==="html"?n:n.assignedSlot||n.parentNode||(ic(n)?n.host:null)||Pt(n)}function _a(n){return!Ke(n)||pt(n).position==="fixed"?null:n.offsetParent}function Ug(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&Ke(n)){var r=pt(n);if(r.position==="fixed")return null}for(var i=Li(n);Ke(i)&&["html","body"].indexOf(it(i))<0;){var s=pt(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Cr(n){for(var e=qe(n),t=_a(n);t&&qg(t)&&pt(t).position==="static";)t=_a(t);return t&&(it(t)==="html"||it(t)==="body"&&pt(t).position==="static")?e:t||Ug(n)||e}function yo(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}var Ft=Math.max,mr=Math.min,Rr=Math.round;function jr(n,e,t){return Ft(n,mr(e,t))}function ac(){return{top:0,right:0,bottom:0,left:0}}function lc(n){return Object.assign({},ac(),n)}function uc(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var Jg=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,lc(typeof e!="number"?e:uc(e,kr))};function Gg(n){var e,t=n.state,r=n.name,i=n.options,s=t.elements.arrow,o=t.modifiersData.popperOffsets,a=nt(t.placement),l=yo(a),u=[Pe,We].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=Jg(i.padding,t),f=go(s),h=l==="y"?Ie:Pe,p=l==="y"?_e:We,m=t.rects.reference[c]+t.rects.reference[l]-o[l]-t.rects.popper[c],y=o[l]-t.rects.reference[l],D=Cr(s),v=D?l==="y"?D.clientHeight||0:D.clientWidth||0:0,w=m/2-y/2,g=d[h],M=v-f[c]-d[p],C=v/2-f[c]/2+w,F=jr(g,C,M),x=l;t.modifiersData[r]=(e={},e[x]=F,e.centerOffset=F-C,e)}}function Yg(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!oc(e.elements.popper,i)||(e.elements.arrow=i))}var Xg={name:"arrow",enabled:!0,phase:"main",fn:Gg,effect:Yg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Qg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zg(n){var e=n.x,t=n.y,r=window,i=r.devicePixelRatio||1;return{x:Rr(Rr(e*i)/i)||0,y:Rr(Rr(t*i)/i)||0}}function Wa(n){var e,t=n.popper,r=n.popperRect,i=n.placement,s=n.offsets,o=n.position,a=n.gpuAcceleration,l=n.adaptive,u=n.roundOffsets,c=u===!0?Zg(s):typeof u=="function"?u(s):s,d=c.x,f=d===void 0?0:d,h=c.y,p=h===void 0?0:h,m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),D=Pe,v=Ie,w=window;if(l){var g=Cr(t),M="clientHeight",C="clientWidth";g===qe(t)&&(g=Pt(t),pt(g).position!=="static"&&(M="scrollHeight",C="scrollWidth")),g=g,i===Ie&&(v=_e,p-=g[M]-r.height,p*=a?1:-1),i===Pe&&(D=We,f-=g[C]-r.width,f*=a?1:-1)}var F=Object.assign({position:o},l&&Qg);if(a){var x;return Object.assign({},F,(x={},x[v]=y?"0":"",x[D]=m?"0":"",x.transform=(w.devicePixelRatio||1)<2?"translate("+f+"px, "+p+"px)":"translate3d("+f+"px, "+p+"px, 0)",x))}return Object.assign({},F,(e={},e[v]=y?p+"px":"",e[D]=m?f+"px":"",e.transform="",e))}function e0(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,s=t.adaptive,o=s===void 0?!0:s,a=t.roundOffsets,l=a===void 0?!0:a,u={placement:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Wa(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Wa(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var t0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e0,data:{}},Ir={passive:!0};function n0(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=qe(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",t.update,Ir)}),a&&l.addEventListener("resize",t.update,Ir),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",t.update,Ir)}),a&&l.removeEventListener("resize",t.update,Ir)}}var r0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:n0,data:{}},i0={left:"right",right:"left",bottom:"top",top:"bottom"};function $r(n){return n.replace(/left|right|bottom|top/g,function(e){return i0[e]})}var s0={start:"end",end:"start"};function Ka(n){return n.replace(/start|end/g,function(e){return s0[e]})}function Do(n){var e=qe(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function bo(n){return Tn(Pt(n)).left+Do(n).scrollLeft}function o0(n){var e=qe(n),t=Pt(n),r=e.visualViewport,i=t.clientWidth,s=t.clientHeight,o=0,a=0;return r&&(i=r.width,s=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,a=r.offsetTop)),{width:i,height:s,x:o+bo(n),y:a}}function a0(n){var e,t=Pt(n),r=Do(n),i=(e=n.ownerDocument)==null?void 0:e.body,s=Ft(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ft(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+bo(n),l=-r.scrollTop;return pt(i||t).direction==="rtl"&&(a+=Ft(t.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function vo(n){var e=pt(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function cc(n){return["html","body","#document"].indexOf(it(n))>=0?n.ownerDocument.body:Ke(n)&&vo(n)?n:cc(Li(n))}function nr(n,e){var t;e===void 0&&(e=[]);var r=cc(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),s=qe(r),o=i?[s].concat(s.visualViewport||[],vo(r)?r:[]):r,a=e.concat(o);return i?a:a.concat(nr(Li(o)))}function Ls(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function l0(n){var e=Tn(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function qa(n,e){return e===nc?Ls(o0(n)):Ke(e)?l0(e):Ls(a0(Pt(n)))}function u0(n){var e=nr(Li(n)),t=["absolute","fixed"].indexOf(pt(n).position)>=0,r=t&&Ke(n)?Cr(n):n;return pr(r)?e.filter(function(i){return pr(i)&&oc(i,r)&&it(i)!=="body"}):[]}function c0(n,e,t){var r=e==="clippingParents"?u0(n):[].concat(e),i=[].concat(r,[t]),s=i[0],o=i.reduce(function(a,l){var u=qa(n,l);return a.top=Ft(u.top,a.top),a.right=mr(u.right,a.right),a.bottom=mr(u.bottom,a.bottom),a.left=Ft(u.left,a.left),a},qa(n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function gr(n){return n.split("-")[1]}function dc(n){var e=n.reference,t=n.element,r=n.placement,i=r?nt(r):null,s=r?gr(r):null,o=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Ie:l={x:o,y:e.y-t.height};break;case _e:l={x:o,y:e.y+e.height};break;case We:l={x:e.x+e.width,y:a};break;case Pe:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?yo(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Mn:l[u]=l[u]-(e[c]/2-t[c]/2);break;case mo:l[u]=l[u]+(e[c]/2-t[c]/2);break}}return l}function yr(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,s=t.boundary,o=s===void 0?Ng:s,a=t.rootBoundary,l=a===void 0?nc:a,u=t.elementContext,c=u===void 0?_n:u,d=t.altBoundary,f=d===void 0?!1:d,h=t.padding,p=h===void 0?0:h,m=lc(typeof p!="number"?p:uc(p,kr)),y=c===_n?Bg:_n,D=n.elements.reference,v=n.rects.popper,w=n.elements[f?y:c],g=c0(pr(w)?w:w.contextElement||Pt(n.elements.popper),o,l),M=Tn(D),C=dc({reference:M,element:v,strategy:"absolute",placement:i}),F=Ls(Object.assign({},v,C)),x=c===_n?F:M,V={top:g.top-x.top+m.top,bottom:x.bottom-g.bottom+m.bottom,left:g.left-x.left+m.left,right:x.right-g.right+m.right},U=n.modifiersData.offset;if(c===_n&&U){var ce=U[i];Object.keys(V).forEach(function(J){var j=[We,_e].indexOf(J)>=0?1:-1,Q=[Ie,_e].indexOf(J)>=0?"y":"x";V[J]+=ce[Q]*j})}return V}function d0(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,s=t.rootBoundary,o=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?rc:l,c=gr(r),d=c?a?$a:$a.filter(function(p){return gr(p)===c}):kr,f=d.filter(function(p){return u.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=yr(n,{placement:m,boundary:i,rootBoundary:s,padding:o})[nt(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function f0(n){if(nt(n)===po)return[];var e=$r(n);return[Ka(n),e,Ka(e)]}function h0(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!0:o,l=t.fallbackPlacements,u=t.padding,c=t.boundary,d=t.rootBoundary,f=t.altBoundary,h=t.flipVariations,p=h===void 0?!0:h,m=t.allowedAutoPlacements,y=e.options.placement,D=nt(y),v=D===y,w=l||(v||!p?[$r(y)]:f0(y)),g=[y].concat(w).reduce(function(Ue,Ae){return Ue.concat(nt(Ae)===po?d0(e,{placement:Ae,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}):Ae)},[]),M=e.rects.reference,C=e.rects.popper,F=new Map,x=!0,V=g[0],U=0;U<g.length;U++){var ce=g[U],J=nt(ce),j=gr(ce)===Mn,Q=[Ie,_e].indexOf(J)>=0,Y=Q?"width":"height",ie=yr(e,{placement:ce,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),me=Q?j?We:Pe:j?_e:Ie;M[Y]>C[Y]&&(me=$r(me));var Z=$r(me),q=[];if(s&&q.push(ie[J]<=0),a&&q.push(ie[me]<=0,ie[Z]<=0),q.every(function(Ue){return Ue})){V=ce,x=!1;break}F.set(ce,q)}if(x)for(var K=p?3:1,Se=function(Ae){var mt=g.find(function(In){var gt=F.get(In);if(gt)return gt.slice(0,Ae).every(function(nn){return nn})});if(mt)return V=mt,"break"},Le=K;Le>0;Le--){var Lt=Se(Le);if(Lt==="break")break}e.placement!==V&&(e.modifiersData[r]._skip=!0,e.placement=V,e.reset=!0)}}var p0={name:"flip",enabled:!0,phase:"main",fn:h0,requiresIfExists:["offset"],data:{_skip:!1}};function Ua(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Ja(n){return[Ie,We,_e,Pe].some(function(e){return n[e]>=0})}function m0(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=yr(e,{elementContext:"reference"}),a=yr(e,{altBoundary:!0}),l=Ua(o,r),u=Ua(a,i,s),c=Ja(l),d=Ja(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var g0={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:m0};function y0(n,e,t){var r=nt(n),i=[Pe,Ie].indexOf(r)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Pe,We].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function D0(n){var e=n.state,t=n.options,r=n.name,i=t.offset,s=i===void 0?[0,0]:i,o=rc.reduce(function(c,d){return c[d]=y0(d,e.rects,s),c},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=o}var b0={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:D0};function v0(n){var e=n.state,t=n.name;e.modifiersData[t]=dc({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var k0={name:"popperOffsets",enabled:!0,phase:"read",fn:v0,data:{}};function C0(n){return n==="x"?"y":"x"}function E0(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,s=i===void 0?!0:i,o=t.altAxis,a=o===void 0?!1:o,l=t.boundary,u=t.rootBoundary,c=t.altBoundary,d=t.padding,f=t.tether,h=f===void 0?!0:f,p=t.tetherOffset,m=p===void 0?0:p,y=yr(e,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),D=nt(e.placement),v=gr(e.placement),w=!v,g=yo(D),M=C0(g),C=e.modifiersData.popperOffsets,F=e.rects.reference,x=e.rects.popper,V=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,U={x:0,y:0};if(!!C){if(s||a){var ce=g==="y"?Ie:Pe,J=g==="y"?_e:We,j=g==="y"?"height":"width",Q=C[g],Y=C[g]+y[ce],ie=C[g]-y[J],me=h?-x[j]/2:0,Z=v===Mn?F[j]:x[j],q=v===Mn?-x[j]:-F[j],K=e.elements.arrow,Se=h&&K?go(K):{width:0,height:0},Le=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ac(),Lt=Le[ce],Ue=Le[J],Ae=jr(0,F[j],Se[j]),mt=w?F[j]/2-me-Ae-Lt-V:Z-Ae-Lt-V,In=w?-F[j]/2+me+Ae+Ue+V:q+Ae+Ue+V,gt=e.elements.arrow&&Cr(e.elements.arrow),nn=gt?g==="y"?gt.clientTop||0:gt.clientLeft||0:0,st=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,Pn=C[g]+mt-st-nn,Ln=C[g]+In-st;if(s){var zn=jr(h?mr(Y,Pn):Y,Q,h?Ft(ie,Ln):ie);C[g]=zn,U[g]=zn-Q}if(a){var Er=g==="x"?Ie:Pe,xr=g==="x"?_e:We,zt=C[M],Vn=zt+y[Er],Hn=zt-y[xr],jn=jr(h?mr(Vn,Pn):Vn,zt,h?Ft(Hn,Ln):Hn);C[M]=jn,U[M]=jn-zt}}e.modifiersData[r]=U}}var x0={name:"preventOverflow",enabled:!0,phase:"main",fn:E0,requiresIfExists:["offset"]};function S0(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function A0(n){return n===qe(n)||!Ke(n)?Do(n):S0(n)}function w0(n,e,t){t===void 0&&(t=!1);var r=Pt(e),i=Tn(n),s=Ke(e),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(s||!s&&!t)&&((it(e)!=="body"||vo(r))&&(o=A0(e)),Ke(e)?(a=Tn(e),a.x+=e.clientLeft,a.y+=e.clientTop):r&&(a.x=bo(r))),{x:i.left+o.scrollLeft-a.x,y:i.top+o.scrollTop-a.y,width:i.width,height:i.height}}function O0(n){var e=new Map,t=new Set,r=[];n.forEach(function(s){e.set(s.name,s)});function i(s){t.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(s)}return n.forEach(function(s){t.has(s.name)||i(s)}),r}function M0(n){var e=O0(n);return _g.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function T0(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function F0(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Ga={placement:"bottom",modifiers:[],strategy:"absolute"};function Ya(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function N0(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,s=i===void 0?Ga:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ga,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:c,setOptions:function(D){m(),c.options=Object.assign({},s,c.options,D),c.scrollParents={reference:pr(a)?nr(a):a.contextElement?nr(a.contextElement):[],popper:nr(l)};var v=M0(F0([].concat(r,c.options.modifiers)));return c.orderedModifiers=v.filter(function(w){return w.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var D=c.elements,v=D.reference,w=D.popper;if(!!Ya(v,w)){c.rects={reference:w0(v,Cr(w),c.options.strategy==="fixed"),popper:go(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(U){return c.modifiersData[U.name]=Object.assign({},U.data)});for(var g=0;g<c.orderedModifiers.length;g++){if(c.reset===!0){c.reset=!1,g=-1;continue}var M=c.orderedModifiers[g],C=M.fn,F=M.options,x=F===void 0?{}:F,V=M.name;typeof C=="function"&&(c=C({state:c,options:x,name:V,instance:h})||c)}}}},update:T0(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){m(),f=!0}};if(!Ya(a,l))return h;h.setOptions(u).then(function(y){!f&&u.onFirstUpdate&&u.onFirstUpdate(y)});function p(){c.orderedModifiers.forEach(function(y){var D=y.name,v=y.options,w=v===void 0?{}:v,g=y.effect;if(typeof g=="function"){var M=g({state:c,name:D,instance:h,options:w}),C=function(){};d.push(M||C)}})}function m(){d.forEach(function(y){return y()}),d=[]}return h}}var B0=[r0,k0,t0,sc,b0,p0,x0,Xg,g0],R0=N0({defaultModifiers:B0}),I0="tippy-box",fc="tippy-content",P0="tippy-backdrop",hc="tippy-arrow",pc="tippy-svg-arrow",jt={passive:!0,capture:!0},mc=function(){return document.body};function hs(n,e,t){if(Array.isArray(n)){var r=n[e];return r==null?Array.isArray(t)?t[e]:t:r}return n}function ko(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function gc(n,e){return typeof n=="function"?n.apply(void 0,e):n}function Xa(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function L0(n){return n.split(/\s+/).filter(Boolean)}function un(n){return[].concat(n)}function Qa(n,e){n.indexOf(e)===-1&&n.push(e)}function z0(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function V0(n){return n.split("-")[0]}function si(n){return[].slice.call(n)}function Za(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function rr(){return document.createElement("div")}function zi(n){return["Element","Fragment"].some(function(e){return ko(n,e)})}function H0(n){return ko(n,"NodeList")}function j0(n){return ko(n,"MouseEvent")}function $0(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function _0(n){return zi(n)?[n]:H0(n)?si(n):Array.isArray(n)?n:si(document.querySelectorAll(n))}function ps(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function el(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function W0(n){var e,t=un(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function K0(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var s=i.popperRect,o=i.popperState,a=i.props,l=a.interactiveBorder,u=V0(o.placement),c=o.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,f=u==="top"?c.bottom.y:0,h=u==="right"?c.left.x:0,p=u==="left"?c.right.x:0,m=s.top-r+d>l,y=r-s.bottom-f>l,D=s.left-t+h>l,v=t-s.right-p>l;return m||y||D||v})}function ms(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function tl(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var Ye={isTouch:!1},nl=0;function q0(){Ye.isTouch||(Ye.isTouch=!0,window.performance&&document.addEventListener("mousemove",yc))}function yc(){var n=performance.now();n-nl<20&&(Ye.isTouch=!1,document.removeEventListener("mousemove",yc)),nl=n}function U0(){var n=document.activeElement;if($0(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function J0(){document.addEventListener("touchstart",q0,jt),window.addEventListener("blur",U0)}var G0=typeof window!="undefined"&&typeof document!="undefined",Y0=G0?!!window.msCrypto:!1,X0={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Q0={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},He=Object.assign({appendTo:mc,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},X0,Q0),Z0=Object.keys(He),ey=function(e){var t=Object.keys(e);t.forEach(function(r){He[r]=e[r]})};function Dc(n){var e=n.plugins||[],t=e.reduce(function(r,i){var s=i.name,o=i.defaultValue;if(s){var a;r[s]=n[s]!==void 0?n[s]:(a=He[s])!=null?a:o}return r},{});return Object.assign({},n,t)}function ty(n,e){var t=e?Object.keys(Dc(Object.assign({},He,{plugins:e}))):Z0,r=t.reduce(function(i,s){var o=(n.getAttribute("data-tippy-"+s)||"").trim();if(!o)return i;if(s==="content")i[s]=o;else try{i[s]=JSON.parse(o)}catch{i[s]=o}return i},{});return r}function rl(n,e){var t=Object.assign({},e,{content:gc(e.content,[n])},e.ignoreAttributes?{}:ty(n,e.plugins));return t.aria=Object.assign({},He.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}var ny=function(){return"innerHTML"};function zs(n,e){n[ny()]=e}function il(n){var e=rr();return n===!0?e.className=hc:(e.className=pc,zi(n)?e.appendChild(n):zs(e,n)),e}function sl(n,e){zi(e.content)?(zs(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?zs(n,e.content):n.textContent=e.content)}function Vs(n){var e=n.firstElementChild,t=si(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(fc)}),arrow:t.find(function(r){return r.classList.contains(hc)||r.classList.contains(pc)}),backdrop:t.find(function(r){return r.classList.contains(P0)})}}function bc(n){var e=rr(),t=rr();t.className=I0,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=rr();r.className=fc,r.setAttribute("data-state","hidden"),sl(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props);function i(s,o){var a=Vs(e),l=a.box,u=a.content,c=a.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&sl(u,n.props),o.arrow?c?s.arrow!==o.arrow&&(l.removeChild(c),l.appendChild(il(o.arrow))):l.appendChild(il(o.arrow)):c&&l.removeChild(c)}return{popper:e,onUpdate:i}}bc.$$tippy=!0;var ry=1,Pr=[],gs=[];function iy(n,e){var t=rl(n,Object.assign({},He,Dc(Za(e)))),r,i,s,o=!1,a=!1,l=!1,u=!1,c,d,f,h=[],p=Xa(Er,t.interactiveDebounce),m,y=ry++,D=null,v=z0(t.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:y,reference:n,popper:rr(),popperInstance:D,props:t,state:w,plugins:v,clearDelayTimeouts:Rc,setProps:Ic,setContent:Pc,show:Lc,hide:zc,hideWithInteractivity:Vc,enable:Nc,disable:Bc,unmount:Hc,destroy:jc};if(!t.render)return g;var M=t.render(g),C=M.popper,F=M.onUpdate;C.setAttribute("data-tippy-root",""),C.id="tippy-"+g.id,g.popper=C,n._tippy=g,C._tippy=g;var x=v.map(function(b){return b.fn(g)}),V=n.hasAttribute("aria-expanded");return Pn(),K(),me(),Z("onCreate",[g]),t.showOnCreate&&To(),C.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),C.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&Q().addEventListener("mousemove",p)}),g;function U(){var b=g.props.touch;return Array.isArray(b)?b:[b,0]}function ce(){return U()[0]==="hold"}function J(){var b;return!!((b=g.props.render)!=null&&b.$$tippy)}function j(){return m||n}function Q(){var b=j().parentNode;return b?W0(b):document}function Y(){return Vs(C)}function ie(b){return g.state.isMounted&&!g.state.isVisible||Ye.isTouch||c&&c.type==="focus"?0:hs(g.props.delay,b?0:1,He.delay)}function me(b){b===void 0&&(b=!1),C.style.pointerEvents=g.props.interactive&&!b?"":"none",C.style.zIndex=""+g.props.zIndex}function Z(b,T,R){if(R===void 0&&(R=!0),x.forEach(function(H){H[b]&&H[b].apply(H,T)}),R){var _;(_=g.props)[b].apply(_,T)}}function q(){var b=g.props.aria;if(!!b.content){var T="aria-"+b.content,R=C.id,_=un(g.props.triggerTarget||n);_.forEach(function(H){var ge=H.getAttribute(T);if(g.state.isVisible)H.setAttribute(T,ge?ge+" "+R:R);else{var Te=ge&&ge.replace(R,"").trim();Te?H.setAttribute(T,Te):H.removeAttribute(T)}})}}function K(){if(!(V||!g.props.aria.expanded)){var b=un(g.props.triggerTarget||n);b.forEach(function(T){g.props.interactive?T.setAttribute("aria-expanded",g.state.isVisible&&T===j()?"true":"false"):T.removeAttribute("aria-expanded")})}}function Se(){Q().removeEventListener("mousemove",p),Pr=Pr.filter(function(b){return b!==p})}function Le(b){if(!(Ye.isTouch&&(l||b.type==="mousedown"))){var T=b.composedPath&&b.composedPath()[0]||b.target;if(!(g.props.interactive&&tl(C,T))){if(un(g.props.triggerTarget||n).some(function(R){return tl(R,T)})){if(Ye.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else Z("onClickOutside",[g,b]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),a=!0,setTimeout(function(){a=!1}),g.state.isMounted||mt())}}}function Lt(){l=!0}function Ue(){l=!1}function Ae(){var b=Q();b.addEventListener("mousedown",Le,!0),b.addEventListener("touchend",Le,jt),b.addEventListener("touchstart",Ue,jt),b.addEventListener("touchmove",Lt,jt)}function mt(){var b=Q();b.removeEventListener("mousedown",Le,!0),b.removeEventListener("touchend",Le,jt),b.removeEventListener("touchstart",Ue,jt),b.removeEventListener("touchmove",Lt,jt)}function In(b,T){nn(b,function(){!g.state.isVisible&&C.parentNode&&C.parentNode.contains(C)&&T()})}function gt(b,T){nn(b,T)}function nn(b,T){var R=Y().box;function _(H){H.target===R&&(ms(R,"remove",_),T())}if(b===0)return T();ms(R,"remove",d),ms(R,"add",_),d=_}function st(b,T,R){R===void 0&&(R=!1);var _=un(g.props.triggerTarget||n);_.forEach(function(H){H.addEventListener(b,T,R),h.push({node:H,eventType:b,handler:T,options:R})})}function Pn(){ce()&&(st("touchstart",zn,{passive:!0}),st("touchend",xr,{passive:!0})),L0(g.props.trigger).forEach(function(b){if(b!=="manual")switch(st(b,zn),b){case"mouseenter":st("mouseleave",xr);break;case"focus":st(Y0?"focusout":"blur",zt);break;case"focusin":st("focusout",zt);break}})}function Ln(){h.forEach(function(b){var T=b.node,R=b.eventType,_=b.handler,H=b.options;T.removeEventListener(R,_,H)}),h=[]}function zn(b){var T,R=!1;if(!(!g.state.isEnabled||Vn(b)||a)){var _=((T=c)==null?void 0:T.type)==="focus";c=b,m=b.currentTarget,K(),!g.state.isVisible&&j0(b)&&Pr.forEach(function(H){return H(b)}),b.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||o)&&g.props.hideOnClick!==!1&&g.state.isVisible?R=!0:To(b),b.type==="click"&&(o=!R),R&&!_&&Sr(b)}}function Er(b){var T=b.target,R=j().contains(T)||C.contains(T);if(!(b.type==="mousemove"&&R)){var _=Vi().concat(C).map(function(H){var ge,Te=H._tippy,rn=(ge=Te.popperInstance)==null?void 0:ge.state;return rn?{popperRect:H.getBoundingClientRect(),popperState:rn,props:t}:null}).filter(Boolean);K0(_,b)&&(Se(),Sr(b))}}function xr(b){var T=Vn(b)||g.props.trigger.indexOf("click")>=0&&o;if(!T){if(g.props.interactive){g.hideWithInteractivity(b);return}Sr(b)}}function zt(b){g.props.trigger.indexOf("focusin")<0&&b.target!==j()||g.props.interactive&&b.relatedTarget&&C.contains(b.relatedTarget)||Sr(b)}function Vn(b){return Ye.isTouch?ce()!==b.type.indexOf("touch")>=0:!1}function Hn(){jn();var b=g.props,T=b.popperOptions,R=b.placement,_=b.offset,H=b.getReferenceClientRect,ge=b.moveTransition,Te=J()?Vs(C).arrow:null,rn=H?{getBoundingClientRect:H,contextElement:H.contextElement||j()}:n,Fo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ar){var sn=Ar.state;if(J()){var $c=Y(),ji=$c.box;["placement","reference-hidden","escaped"].forEach(function(wr){wr==="placement"?ji.setAttribute("data-placement",sn.placement):sn.attributes.popper["data-popper-"+wr]?ji.setAttribute("data-"+wr,""):ji.removeAttribute("data-"+wr)}),sn.attributes.popper={}}}},Vt=[{name:"offset",options:{offset:_}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ge}},Fo];J()&&Te&&Vt.push({name:"arrow",options:{element:Te,padding:3}}),Vt.push.apply(Vt,(T==null?void 0:T.modifiers)||[]),g.popperInstance=R0(rn,C,Object.assign({},T,{placement:R,onFirstUpdate:f,modifiers:Vt}))}function jn(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Fc(){var b=g.props.appendTo,T,R=j();g.props.interactive&&b===mc||b==="parent"?T=R.parentNode:T=gc(b,[R]),T.contains(C)||T.appendChild(C),g.state.isMounted=!0,Hn()}function Vi(){return si(C.querySelectorAll("[data-tippy-root]"))}function To(b){g.clearDelayTimeouts(),b&&Z("onTrigger",[g,b]),Ae();var T=ie(!0),R=U(),_=R[0],H=R[1];Ye.isTouch&&_==="hold"&&H&&(T=H),T?r=setTimeout(function(){g.show()},T):g.show()}function Sr(b){if(g.clearDelayTimeouts(),Z("onUntrigger",[g,b]),!g.state.isVisible){mt();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(b.type)>=0&&o)){var T=ie(!1);T?i=setTimeout(function(){g.state.isVisible&&g.hide()},T):s=requestAnimationFrame(function(){g.hide()})}}function Nc(){g.state.isEnabled=!0}function Bc(){g.hide(),g.state.isEnabled=!1}function Rc(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(s)}function Ic(b){if(!g.state.isDestroyed){Z("onBeforeUpdate",[g,b]),Ln();var T=g.props,R=rl(n,Object.assign({},T,Za(b),{ignoreAttributes:!0}));g.props=R,Pn(),T.interactiveDebounce!==R.interactiveDebounce&&(Se(),p=Xa(Er,R.interactiveDebounce)),T.triggerTarget&&!R.triggerTarget?un(T.triggerTarget).forEach(function(_){_.removeAttribute("aria-expanded")}):R.triggerTarget&&n.removeAttribute("aria-expanded"),K(),me(),F&&F(T,R),g.popperInstance&&(Hn(),Vi().forEach(function(_){requestAnimationFrame(_._tippy.popperInstance.forceUpdate)})),Z("onAfterUpdate",[g,b])}}function Pc(b){g.setProps({content:b})}function Lc(){var b=g.state.isVisible,T=g.state.isDestroyed,R=!g.state.isEnabled,_=Ye.isTouch&&!g.props.touch,H=hs(g.props.duration,0,He.duration);if(!(b||T||R||_)&&!j().hasAttribute("disabled")&&(Z("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,J()&&(C.style.visibility="visible"),me(),Ae(),g.state.isMounted||(C.style.transition="none"),J()){var ge=Y(),Te=ge.box,rn=ge.content;ps([Te,rn],0)}f=function(){var Vt;if(!(!g.state.isVisible||u)){if(u=!0,C.offsetHeight,C.style.transition=g.props.moveTransition,J()&&g.props.animation){var Hi=Y(),Ar=Hi.box,sn=Hi.content;ps([Ar,sn],H),el([Ar,sn],"visible")}q(),K(),Qa(gs,g),(Vt=g.popperInstance)==null||Vt.forceUpdate(),Z("onMount",[g]),g.props.animation&&J()&&gt(H,function(){g.state.isShown=!0,Z("onShown",[g])})}},Fc()}}function zc(){var b=!g.state.isVisible,T=g.state.isDestroyed,R=!g.state.isEnabled,_=hs(g.props.duration,1,He.duration);if(!(b||T||R)&&(Z("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,u=!1,o=!1,J()&&(C.style.visibility="hidden"),Se(),mt(),me(!0),J()){var H=Y(),ge=H.box,Te=H.content;g.props.animation&&(ps([ge,Te],_),el([ge,Te],"hidden"))}q(),K(),g.props.animation?J()&&In(_,g.unmount):g.unmount()}}function Vc(b){Q().addEventListener("mousemove",p),Qa(Pr,p),p(b)}function Hc(){g.state.isVisible&&g.hide(),g.state.isMounted&&(jn(),Vi().forEach(function(b){b._tippy.unmount()}),C.parentNode&&C.parentNode.removeChild(C),gs=gs.filter(function(b){return b!==g}),g.state.isMounted=!1,Z("onHidden",[g]))}function jc(){g.state.isDestroyed||(g.clearDelayTimeouts(),g.unmount(),Ln(),delete n._tippy,g.state.isDestroyed=!0,Z("onDestroy",[g]))}}function Rn(n,e){e===void 0&&(e={});var t=He.plugins.concat(e.plugins||[]);J0();var r=Object.assign({},e,{plugins:t}),i=_0(n),s=i.reduce(function(o,a){var l=a&&iy(a,r);return l&&o.push(l),o},[]);return zi(n)?s[0]:s}Rn.defaultProps=He;Rn.setDefaultProps=ey;Rn.currentInput=Ye;Object.assign({},sc,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Rn.setDefaultProps({render:bc});var Lr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function sy(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var vc=sy,oy=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,ay=oy,ly=ay,uy=typeof self=="object"&&self&&self.Object===Object&&self,cy=ly||uy||Function("return this")(),kc=cy,dy=kc,fy=function(){return dy.Date.now()},hy=fy,py=/\s/;function my(n){for(var e=n.length;e--&&py.test(n.charAt(e)););return e}var gy=my,yy=gy,Dy=/^\s+/;function by(n){return n&&n.slice(0,yy(n)+1).replace(Dy,"")}var vy=by,ky=kc,Cy=ky.Symbol,Cc=Cy,ol=Cc,Ec=Object.prototype,Ey=Ec.hasOwnProperty,xy=Ec.toString,Wn=ol?ol.toStringTag:void 0;function Sy(n){var e=Ey.call(n,Wn),t=n[Wn];try{n[Wn]=void 0;var r=!0}catch{}var i=xy.call(n);return r&&(e?n[Wn]=t:delete n[Wn]),i}var Ay=Sy,wy=Object.prototype,Oy=wy.toString;function My(n){return Oy.call(n)}var Ty=My,al=Cc,Fy=Ay,Ny=Ty,By="[object Null]",Ry="[object Undefined]",ll=al?al.toStringTag:void 0;function Iy(n){return n==null?n===void 0?Ry:By:ll&&ll in Object(n)?Fy(n):Ny(n)}var Py=Iy;function Ly(n){return n!=null&&typeof n=="object"}var zy=Ly,Vy=Py,Hy=zy,jy="[object Symbol]";function $y(n){return typeof n=="symbol"||Hy(n)&&Vy(n)==jy}var _y=$y,Wy=vy,ul=vc,Ky=_y,cl=0/0,qy=/^[-+]0x[0-9a-f]+$/i,Uy=/^0b[01]+$/i,Jy=/^0o[0-7]+$/i,Gy=parseInt;function Yy(n){if(typeof n=="number")return n;if(Ky(n))return cl;if(ul(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=ul(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Wy(n);var t=Uy.test(n);return t||Jy.test(n)?Gy(n.slice(2),t?2:8):qy.test(n)?cl:+n}var Xy=Yy,Qy=vc,ys=hy,dl=Xy,Zy="Expected a function",eD=Math.max,tD=Math.min;function nD(n,e,t){var r,i,s,o,a,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(Zy);e=dl(e)||0,Qy(t)&&(c=!!t.leading,d="maxWait"in t,s=d?eD(dl(t.maxWait)||0,e):s,f="trailing"in t?!!t.trailing:f);function h(C){var F=r,x=i;return r=i=void 0,u=C,o=n.apply(x,F),o}function p(C){return u=C,a=setTimeout(D,e),c?h(C):o}function m(C){var F=C-l,x=C-u,V=e-F;return d?tD(V,s-x):V}function y(C){var F=C-l,x=C-u;return l===void 0||F>=e||F<0||d&&x>=s}function D(){var C=ys();if(y(C))return v(C);a=setTimeout(D,m(C))}function v(C){return a=void 0,f&&r?h(C):(r=i=void 0,o)}function w(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function g(){return a===void 0?o:v(ys())}function M(){var C=ys(),F=y(C);if(r=arguments,i=this,l=C,F){if(a===void 0)return p(l);if(d)return clearTimeout(a),a=setTimeout(D,e),h(l)}return a===void 0&&(a=setTimeout(D,e)),o}return M.cancel=w,M.flush=g,M}var rD=nD;class iD{constructor({editor:e,element:t,view:r,tippyOptions:i={},updateDelay:s=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:u,to:c})=>{const{doc:d,selection:f}=l,{empty:h}=f,p=!d.textBetween(u,c).length&&lo(l.selection),m=this.element.contains(document.activeElement);return!(!(a.hasFocus()||m)||h||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}(a==null?void 0:a.relatedTarget)&&((l=this.element.parentNode)===null||l===void 0?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.updateHandler=(a,l)=>{var u,c,d;const{state:f,composing:h}=a,{doc:p,selection:m}=f,y=l&&l.doc.eq(p)&&l.selection.eq(m);if(h||y)return;this.createTooltip();const{ranges:D}=m,v=Math.min(...D.map(M=>M.$from.pos)),w=Math.max(...D.map(M=>M.$to.pos));if(!((u=this.shouldShow)===null||u===void 0?void 0:u.call(this,{editor:this.editor,view:a,state:f,oldState:l,from:v,to:w}))){this.hide();return}(c=this.tippy)===null||c===void 0||c.setProps({getReferenceClientRect:((d=this.tippyOptions)===null||d===void 0?void 0:d.getReferenceClientRect)||(()=>{if(nm(f.selection)){const M=a.nodeDOM(v);if(M)return M.getBoundingClientRect()}return Yu(a,v,w)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=s,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Rn(e,A({duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle"},this.tippyOptions)),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e;r.selection.$from.pos!==r.selection.$to.pos?this.updateDelay>0?rD(this.updateHandler,this.updateDelay)(e,t):this.updateHandler(e,t):this.hide()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const xc=n=>new ue({key:typeof n.pluginKey=="string"?new Me(n.pluginKey):n.pluginKey,view:e=>new iD(A({view:e},n))});ve.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[xc({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class sD{constructor({editor:e,element:t,view:r,tippyOptions:i={},shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:o,state:a})=>{const{selection:l}=a,{$anchor:u,empty:c}=l,d=u.depth===1,f=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent;return!(!o.hasFocus()||!c||!d||!f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.preventHide){this.preventHide=!1;return}(o==null?void 0:o.relatedTarget)&&((a=this.element.parentNode)===null||a===void 0?void 0:a.contains(o.relatedTarget))||this.hide()},this.tippyBlurHandler=o=>{this.blurHandler({event:o})},this.editor=e,this.element=t,this.view=r,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=Rn(e,A({duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle"},this.tippyOptions)),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,i,s;const{state:o}=e,{doc:a,selection:l}=o,{from:u,to:c}=l;if(t&&t.doc.eq(a)&&t.selection.eq(l))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:o,oldState:t}))){this.hide();return}(i=this.tippy)===null||i===void 0||i.setProps({getReferenceClientRect:((s=this.tippyOptions)===null||s===void 0?void 0:s.getReferenceClientRect)||(()=>Yu(e,u,c))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Sc=n=>new ue({key:typeof n.pluginKey=="string"?new Me(n.pluginKey):n.pluginKey,view:e=>new sD(A({view:e},n))});ve.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Sc({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});Dr({name:"BubbleMenu",props:{pluginKey:{type:null,default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=$s(null);return yl(()=>{const{updateDelay:r,editor:i,pluginKey:s,shouldShow:o,tippyOptions:a}=n;i.registerPlugin(xc({updateDelay:r,editor:i,element:t.value,pluginKey:s,shouldShow:o,tippyOptions:a}))}),_s(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return Kt("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function fl(n){return Uc((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class oD extends Fm{constructor(e={}){return super(e),this.vueRenderers=qc(new Map),this.contentComponent=null,this.reactiveState=fl(this.view.state),this.reactiveExtensionStorage=fl(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),Jc(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const aD=Dr({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=$s(),t=Gc();return Yc(()=>{const r=n.editor;r&&r.options.element&&e.value&&Qc(()=>{if(!e.value||!r.options.element.firstChild)return;const i=Zc(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:i}),r.createNodeViews()})}),_s(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const i=document.createElement("div");i.append(...r.options.element.childNodes),r.setOptions({element:i})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=Kt(Xc,{to:e.teleportElement,key:e.id},Kt(e.component,A({ref:e.id},e.props)));n.push(t)}),Kt("div",{ref:e=>{this.rootEl=e}},...n)}});Dr({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=$s(null);return yl(()=>{const{pluginKey:r,editor:i,tippyOptions:s,shouldShow:o}=n;i.registerPlugin(Sc({pluginKey:r,editor:i,element:t.value,tippyOptions:s,shouldShow:o}))}),_s(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return Kt("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});Dr({props:{as:{type:String,default:"div"}},render(){return Kt(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});Dr({props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return Kt(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});function Co(n){this.j={},this.jr=[],this.jd=null,this.t=n}Co.prototype={accepts:function(){return!!this.t},tt:function(e,t){if(t&&t.j)return this.j[e]=t,t;var r=t,i=this.j[e];if(i)return r&&(i.t=r),i;i=W();var s=oi(this,e);return s?(Object.assign(i.j,s.j),i.jr.append(s.jr),i.jr=s.jd,i.t=r||s.t):i.t=r,this.j[e]=i,i}};var W=function(){return new Co},N=function(e){return new Co(e)},E=function(e,t,r){e.j[t]||(e.j[t]=r)},ee=function(e,t,r){e.jr.push([t,r])},oi=function(e,t){var r=e.j[t];if(r)return r;for(var i=0;i<e.jr.length;i++){var s=e.jr[i][0],o=e.jr[i][1];if(s.test(t))return o}return e.jd},z=function(e,t,r){for(var i=0;i<t.length;i++)E(e,t[i],r)},lD=function(e,t){for(var r=0;r<t.length;r++){var i=t[r][0],s=t[r][1];E(e,i,s)}},Ht=function(e,t,r,i){for(var s=0,o=t.length,a;s<o&&(a=e.j[t[s]]);)e=a,s++;if(s>=o)return[];for(;s<o-1;)a=i(),E(e,t[s],a),e=a,s++;E(e,t[o-1],r)},ze="DOMAIN",at="LOCALHOST",Ge="TLD",Fe="NUM",Fn="PROTOCOL",Eo="MAILTO",Ac="WS",xo="NL",pn="OPENBRACE",ir="OPENBRACKET",sr="OPENANGLEBRACKET",or="OPENPAREN",_t="CLOSEBRACE",mn="CLOSEBRACKET",gn="CLOSEANGLEBRACKET",yn="CLOSEPAREN",ai="AMPERSAND",li="APOSTROPHE",ui="ASTERISK",Dn="AT",ci="BACKSLASH",di="BACKTICK",fi="CARET",ar="COLON",So="COMMA",hi="DOLLAR",Ct="DOT",pi="EQUALS",Ao="EXCLAMATION",mi="HYPHEN",gi="PERCENT",yi="PIPE",Di="PLUS",bi="POUND",vi="QUERY",wo="QUOTE",Oo="SEMI",lt="SLASH",ki="TILDE",Ci="UNDERSCORE",Ei="SYM",uD=Object.freeze({__proto__:null,DOMAIN:ze,LOCALHOST:at,TLD:Ge,NUM:Fe,PROTOCOL:Fn,MAILTO:Eo,WS:Ac,NL:xo,OPENBRACE:pn,OPENBRACKET:ir,OPENANGLEBRACKET:sr,OPENPAREN:or,CLOSEBRACE:_t,CLOSEBRACKET:mn,CLOSEANGLEBRACKET:gn,CLOSEPAREN:yn,AMPERSAND:ai,APOSTROPHE:li,ASTERISK:ui,AT:Dn,BACKSLASH:ci,BACKTICK:di,CARET:fi,COLON:ar,COMMA:So,DOLLAR:hi,DOT:Ct,EQUALS:pi,EXCLAMATION:Ao,HYPHEN:mi,PERCENT:gi,PIPE:yi,PLUS:Di,POUND:bi,QUERY:vi,QUOTE:wo,SEMI:Oo,SLASH:lt,TILDE:ki,UNDERSCORE:Ci,SYM:Ei}),hl="aaa aarp abarth abb abbott abbvie abc able abogado abudhabi ac academy accenture accountant accountants aco actor ad adac ads adult ae aeg aero aetna af afamilycompany afl africa ag agakhan agency ai aig airbus airforce airtel akdn al alfaromeo alibaba alipay allfinanz allstate ally alsace alstom am amazon americanexpress americanfamily amex amfam amica amsterdam analytics android anquan anz ao aol apartments app apple aq aquarelle ar arab aramco archi army arpa art arte as asda asia associates at athleta attorney au auction audi audible audio auspost author auto autos avianca aw aws ax axa az azure ba baby baidu banamex bananarepublic band bank bar barcelona barclaycard barclays barefoot bargains baseball basketball bauhaus bayern bb bbc bbt bbva bcg bcn bd be beats beauty beer bentley berlin best bestbuy bet bf bg bh bharti bi bible bid bike bing bingo bio biz bj black blackfriday blockbuster blog bloomberg blue bm bms bmw bn bnpparibas bo boats boehringer bofa bom bond boo book booking bosch bostik boston bot boutique box br bradesco bridgestone broadway broker brother brussels bs bt budapest bugatti build builders business buy buzz bv bw by bz bzh ca cab cafe cal call calvinklein cam camera camp cancerresearch canon capetown capital capitalone car caravan cards care career careers cars casa case cash casino cat catering catholic cba cbn cbre cbs cc cd center ceo cern cf cfa cfd cg ch chanel channel charity chase chat cheap chintai christmas chrome church ci cipriani circle cisco citadel citi citic city cityeats ck cl claims cleaning click clinic clinique clothing cloud club clubmed cm cn co coach codes coffee college cologne com comcast commbank community company compare computer comsec condos construction consulting contact contractors cooking cookingchannel cool coop corsica country coupon coupons courses cpa cr credit creditcard creditunion cricket crown crs cruise cruises csc cu cuisinella cv cw cx cy cymru cyou cz dabur dad dance data date dating datsun day dclk dds de deal dealer deals degree delivery dell deloitte delta democrat dental dentist desi design dev dhl diamonds diet digital direct directory discount discover dish diy dj dk dm dnp do docs doctor dog domains dot download drive dtv dubai duck dunlop dupont durban dvag dvr dz earth eat ec eco edeka edu education ee eg email emerck energy engineer engineering enterprises epson equipment er ericsson erni es esq estate et etisalat eu eurovision eus events exchange expert exposed express extraspace fage fail fairwinds faith family fan fans farm farmers fashion fast fedex feedback ferrari ferrero fi fiat fidelity fido film final finance financial fire firestone firmdale fish fishing fit fitness fj fk flickr flights flir florist flowers fly fm fo foo food foodnetwork football ford forex forsale forum foundation fox fr free fresenius frl frogans frontdoor frontier ftr fujitsu fujixerox fun fund furniture futbol fyi ga gal gallery gallo gallup game games gap garden gay gb gbiz gd gdn ge gea gent genting george gf gg ggee gh gi gift gifts gives giving gl glade glass gle global globo gm gmail gmbh gmo gmx gn godaddy gold goldpoint golf goo goodyear goog google gop got gov gp gq gr grainger graphics gratis green gripe grocery group gs gt gu guardian gucci guge guide guitars guru gw gy hair hamburg hangout haus hbo hdfc hdfcbank health healthcare help helsinki here hermes hgtv hiphop hisamitsu hitachi hiv hk hkt hm hn hockey holdings holiday homedepot homegoods homes homesense honda horse hospital host hosting hot hoteles hotels hotmail house how hr hsbc ht hu hughes hyatt hyundai ibm icbc ice icu id ie ieee ifm ikano il im imamat imdb immo immobilien in inc industries infiniti info ing ink institute insurance insure int international intuit investments io ipiranga iq ir irish is ismaili ist istanbul it itau itv iveco jaguar java jcb je jeep jetzt jewelry jio jll jm jmp jnj jo jobs joburg jot joy jp jpmorgan jprs juegos juniper kaufen kddi ke kerryhotels kerrylogistics kerryproperties kfh kg kh ki kia kim kinder kindle kitchen kiwi km kn koeln komatsu kosher kp kpmg kpn kr krd kred kuokgroup kw ky kyoto kz la lacaixa lamborghini lamer lancaster lancia land landrover lanxess lasalle lat latino latrobe law lawyer lb lc lds lease leclerc lefrak legal lego lexus lgbt li lidl life lifeinsurance lifestyle lighting like lilly limited limo lincoln linde link lipsy live living lixil lk llc llp loan loans locker locus loft lol london lotte lotto love lpl lplfinancial lr ls lt ltd ltda lu lundbeck luxe luxury lv ly ma macys madrid maif maison makeup man management mango map market marketing markets marriott marshalls maserati mattel mba mc mckinsey md me med media meet melbourne meme memorial men menu merckmsd mg mh miami microsoft mil mini mint mit mitsubishi mk ml mlb mls mm mma mn mo mobi mobile moda moe moi mom monash money monster mormon mortgage moscow moto motorcycles mov movie mp mq mr ms msd mt mtn mtr mu museum mutual mv mw mx my mz na nab nagoya name nationwide natura navy nba nc ne nec net netbank netflix network neustar new news next nextdirect nexus nf nfl ng ngo nhk ni nico nike nikon ninja nissan nissay nl no nokia northwesternmutual norton now nowruz nowtv np nr nra nrw ntt nu nyc nz obi observer off office okinawa olayan olayangroup oldnavy ollo om omega one ong onl online onyourside ooo open oracle orange org organic origins osaka otsuka ott ovh pa page panasonic paris pars partners parts party passagens pay pccw pe pet pf pfizer pg ph pharmacy phd philips phone photo photography photos physio pics pictet pictures pid pin ping pink pioneer pizza pk pl place play playstation plumbing plus pm pn pnc pohl poker politie porn post pr pramerica praxi press prime pro prod productions prof progressive promo properties property protection pru prudential ps pt pub pw pwc py qa qpon quebec quest qvc racing radio raid re read realestate realtor realty recipes red redstone redumbrella rehab reise reisen reit reliance ren rent rentals repair report republican rest restaurant review reviews rexroth rich richardli ricoh ril rio rip rmit ro rocher rocks rodeo rogers room rs rsvp ru rugby ruhr run rw rwe ryukyu sa saarland safe safety sakura sale salon samsclub samsung sandvik sandvikcoromant sanofi sap sarl sas save saxo sb sbi sbs sc sca scb schaeffler schmidt scholarships school schule schwarz science scjohnson scot sd se search seat secure security seek select sener services ses seven sew sex sexy sfr sg sh shangrila sharp shaw shell shia shiksha shoes shop shopping shouji show showtime si silk sina singles site sj sk ski skin sky skype sl sling sm smart smile sn sncf so soccer social softbank software sohu solar solutions song sony soy spa space sport spot spreadbetting sr srl ss st stada staples star statebank statefarm stc stcgroup stockholm storage store stream studio study style su sucks supplies supply support surf surgery suzuki sv swatch swiftcover swiss sx sy sydney systems sz tab taipei talk taobao target tatamotors tatar tattoo tax taxi tc tci td tdk team tech technology tel temasek tennis teva tf tg th thd theater theatre tiaa tickets tienda tiffany tips tires tirol tj tjmaxx tjx tk tkmaxx tl tm tmall tn to today tokyo tools top toray toshiba total tours town toyota toys tr trade trading training travel travelchannel travelers travelersinsurance trust trv tt tube tui tunes tushu tv tvs tw tz ua ubank ubs ug uk unicom university uno uol ups us uy uz va vacations vana vanguard vc ve vegas ventures verisign versicherung vet vg vi viajes video vig viking villas vin vip virgin visa vision viva vivo vlaanderen vn vodka volkswagen volvo vote voting voto voyage vu vuelos wales walmart walter wang wanggou watch watches weather weatherchannel webcam weber website wed wedding weibo weir wf whoswho wien wiki williamhill win windows wine winners wme wolterskluwer woodside work works world wow ws wtc wtf xbox xerox xfinity xihuan xin xxx xyz yachts yahoo yamaxun yandex ye yodobashi yoga yokohama you youtube yt yun za zappos zara zero zip zm zone zuerich zw verm\xF6gensberater-ctb verm\xF6gensberatung-pwb \u03B5\u03BB \u03B5\u03C5 \u0431\u0433 \u0431\u0435\u043B \u0434\u0435\u0442\u0438 \u0435\u044E \u043A\u0430\u0442\u043E\u043B\u0438\u043A \u043A\u043E\u043C \u049B\u0430\u0437 \u043C\u043A\u0434 \u043C\u043E\u043D \u043C\u043E\u0441\u043A\u0432\u0430 \u043E\u043D\u043B\u0430\u0439\u043D \u043E\u0440\u0433 \u0440\u0443\u0441 \u0440\u0444 \u0441\u0430\u0439\u0442 \u0441\u0440\u0431 \u0443\u043A\u0440 \u10D2\u10D4 \u0570\u0561\u0575 \u05D9\u05E9\u05E8\u05D0\u05DC \u05E7\u05D5\u05DD \u0627\u0628\u0648\u0638\u0628\u064A \u0627\u062A\u0635\u0627\u0644\u0627\u062A \u0627\u0631\u0627\u0645\u0643\u0648 \u0627\u0644\u0627\u0631\u062F\u0646 \u0627\u0644\u0628\u062D\u0631\u064A\u0646 \u0627\u0644\u062C\u0632\u0627\u0626\u0631 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629 \u0627\u0644\u0639\u0644\u064A\u0627\u0646 \u0627\u0644\u0645\u063A\u0631\u0628 \u0627\u0645\u0627\u0631\u0627\u062A \u0627\u06CC\u0631\u0627\u0646 \u0628\u0627\u0631\u062A \u0628\u0627\u0632\u0627\u0631 \u0628\u06BE\u0627\u0631\u062A \u0628\u064A\u062A\u0643 \u067E\u0627\u06A9\u0633\u062A\u0627\u0646 \u0680\u0627\u0631\u062A \u062A\u0648\u0646\u0633 \u0633\u0648\u062F\u0627\u0646 \u0633\u0648\u0631\u064A\u0629 \u0634\u0628\u0643\u0629 \u0639\u0631\u0627\u0642 \u0639\u0631\u0628 \u0639\u0645\u0627\u0646 \u0641\u0644\u0633\u0637\u064A\u0646 \u0642\u0637\u0631 \u0643\u0627\u062B\u0648\u0644\u064A\u0643 \u0643\u0648\u0645 \u0645\u0635\u0631 \u0645\u0644\u064A\u0633\u064A\u0627 \u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627 \u0645\u0648\u0642\u0639 \u0647\u0645\u0631\u0627\u0647 \u0915\u0949\u092E \u0928\u0947\u091F \u092D\u093E\u0930\u0924 \u092D\u093E\u0930\u0924\u092E\u094D \u092D\u093E\u0930\u094B\u0924 \u0938\u0902\u0917\u0920\u0928 \u09AC\u09BE\u0982\u09B2\u09BE \u09AD\u09BE\u09B0\u09A4 \u09AD\u09BE\u09F0\u09A4 \u0A2D\u0A3E\u0A30\u0A24 \u0AAD\u0ABE\u0AB0\u0AA4 \u0B2D\u0B3E\u0B30\u0B24 \u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE \u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8 \u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD \u0C2D\u0C3E\u0C30\u0C24\u0C4D \u0CAD\u0CBE\u0CB0\u0CA4 \u0D2D\u0D3E\u0D30\u0D24\u0D02 \u0DBD\u0D82\u0D9A\u0DCF \u0E04\u0E2D\u0E21 \u0E44\u0E17\u0E22 \u0EA5\u0EB2\u0EA7 \uB2F7\uB137 \uB2F7\uCEF4 \uC0BC\uC131 \uD55C\uAD6D \u30A2\u30DE\u30BE\u30F3 \u30B0\u30FC\u30B0\u30EB \u30AF\u30E9\u30A6\u30C9 \u30B3\u30E0 \u30B9\u30C8\u30A2 \u30BB\u30FC\u30EB \u30D5\u30A1\u30C3\u30B7\u30E7\u30F3 \u30DD\u30A4\u30F3\u30C8 \u307F\u3093\u306A \u4E16\u754C \u4E2D\u4FE1 \u4E2D\u56FD \u4E2D\u570B \u4E2D\u6587\u7F51 \u4E9A\u9A6C\u900A \u4F01\u4E1A \u4F5B\u5C71 \u4FE1\u606F \u5065\u5EB7 \u516B\u5366 \u516C\u53F8 \u516C\u76CA \u53F0\u6E7E \u53F0\u7063 \u5546\u57CE \u5546\u5E97 \u5546\u6807 \u5609\u91CC \u5609\u91CC\u5927\u9152\u5E97 \u5728\u7EBF \u5927\u4F17\u6C7D\u8F66 \u5927\u62FF \u5929\u4E3B\u6559 \u5A31\u4E50 \u5BB6\u96FB \u5E7F\u4E1C \u5FAE\u535A \u6148\u5584 \u6211\u7231\u4F60 \u624B\u673A \u62DB\u8058 \u653F\u52A1 \u653F\u5E9C \u65B0\u52A0\u5761 \u65B0\u95FB \u65F6\u5C1A \u66F8\u7C4D \u673A\u6784 \u6DE1\u9A6C\u9521 \u6E38\u620F \u6FB3\u9580 \u70B9\u770B \u79FB\u52A8 \u7EC4\u7EC7\u673A\u6784 \u7F51\u5740 \u7F51\u5E97 \u7F51\u7AD9 \u7F51\u7EDC \u8054\u901A \u8BFA\u57FA\u4E9A \u8C37\u6B4C \u8D2D\u7269 \u901A\u8CA9 \u96C6\u56E2 \u96FB\u8A0A\u76C8\u79D1 \u98DE\u5229\u6D66 \u98DF\u54C1 \u9910\u5385 \u9999\u683C\u91CC\u62C9 \u9999\u6E2F".split(" "),Kn=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/,qn=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDD-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE74\uDE78-\uDE7C\uDE80-\uDE86\uDE90-\uDEAC\uDEB0-\uDEBA\uDEC0-\uDEC5\uDED0-\uDED9\uDEE0-\uDEE7\uDEF0-\uDEF6])/,Un=/\uFE0F/,Jn=/\d/,pl=/\s/;function cD(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=W(),t=N(Fe),r=N(ze),i=W(),s=N(Ac),o=[[Jn,r],[Kn,r],[qn,r],[Un,r]],a=function(){var g=N(ze);return g.j={"-":i},g.jr=[].concat(o),g},l=function(g){var M=a();return M.t=g,M};lD(e,[["'",N(li)],["{",N(pn)],["[",N(ir)],["<",N(sr)],["(",N(or)],["}",N(_t)],["]",N(mn)],[">",N(gn)],[")",N(yn)],["&",N(ai)],["*",N(ui)],["@",N(Dn)],["`",N(di)],["^",N(fi)],[":",N(ar)],[",",N(So)],["$",N(hi)],[".",N(Ct)],["=",N(pi)],["!",N(Ao)],["-",N(mi)],["%",N(gi)],["|",N(yi)],["+",N(Di)],["#",N(bi)],["?",N(vi)],['"',N(wo)],["/",N(lt)],[";",N(Oo)],["~",N(ki)],["_",N(Ci)],["\\",N(ci)]]),E(e,`
93
93
  `,N(xo)),ee(e,pl,s),E(s,`
94
- `,W()),ee(s,pl,s);for(var u=0;u<hl.length;u++)Ht(e,hl[u],l(Ge),a);var c=a(),d=a(),f=a(),h=a();Ht(e,"file",c,a),Ht(e,"ftp",d,a),Ht(e,"http",f,a),Ht(e,"mailto",h,a);var p=a(),m=N(Fn),y=N(Eo);E(d,"s",p),E(d,":",m),E(f,"s",p),E(f,":",m),E(c,":",m),E(p,":",m),E(h,":",y);for(var D=a(),v=0;v<n.length;v++)Ht(e,n[v],D,a);return E(D,":",m),Ht(e,"localhost",l(at),a),ee(e,Jn,t),ee(e,Kn,r),ee(e,qn,r),ee(e,Un,r),ee(t,Jn,t),ee(t,Kn,r),ee(t,qn,r),ee(t,Un,r),E(t,"-",i),E(r,"-",i),E(i,"-",i),ee(r,Jn,r),ee(r,Kn,r),ee(r,qn,r),ee(r,Un,r),ee(i,Jn,r),ee(i,Kn,r),ee(i,qn,r),ee(i,Un,r),e.jd=N(Ei),e}function dD(n,e){for(var t=fD(e.replace(/[A-Z]/g,function(h){return h.toLowerCase()})),r=t.length,i=[],s=0,o=0;o<r;){for(var a=n,l=null,u=0,c=null,d=-1,f=-1;o<r&&(l=oi(a,t[o]));)a=l,a.accepts()?(d=0,f=0,c=a):d>=0&&(d+=t[o].length,f++),u+=t[o].length,s+=t[o].length,o++;s-=d,o-=f,u-=d,i.push({t:c.t,v:e.substr(s-u,u),s:s-u,e:s})}return i}function fD(n){for(var e=[],t=n.length,r=0;r<t;){var i=n.charCodeAt(r),s=void 0,o=i<55296||i>56319||r+1===t||(s=n.charCodeAt(r+1))<56320||s>57343?n[r]:n.slice(r,r+2);e.push(o),r+=o.length}return e}var wc={defaultProtocol:"http",events:null,format:ml,formatHref:ml,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function ml(n){return n}function hD(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Object.create(n.prototype);for(var i in t)r[i]=t[i];return r.constructor=e,e.prototype=r,e}function xi(){}xi.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wc.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};function tn(n,e){function t(r,i){this.t=n,this.v=r,this.tk=i}return hD(xi,t,e),t}var Oc=tn("email",{isLink:!0}),Hs=tn("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),js=tn("text"),Mc=tn("nl"),bt=tn("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wc.defaultProtocol,t=this.tk,r=!1,i=!1,s=[],o=0;t[o].t===Fn;)r=!0,s.push(t[o].v),o++;for(;t[o].t===lt;)i=!0,s.push(t[o].v),o++;for(;o<t.length;o++)s.push(t[o].v);return s=s.join(""),r||i||(s="".concat(e,"://").concat(s)),s},hasProtocol:function(){return this.tk[0].t===Fn}}),pD=Object.freeze({__proto__:null,MultiToken:xi,Base:xi,createTokenClass:tn,MailtoEmail:Oc,Email:Hs,Text:js,Nl:Mc,Url:bt});function mD(){var n=W(),e=W(),t=W(),r=W(),i=W(),s=W(),o=W(),a=N(bt),l=W(),u=N(bt),c=N(bt),d=W(),f=W(),h=W(),p=W(),m=W(),y=N(bt),D=N(bt),v=N(bt),w=N(bt),g=W(),M=W(),C=W(),F=W(),x=W(),V=W(),U=N(Hs),ce=W(),J=N(Hs),j=N(Oc),Q=W(),Y=W(),ie=W(),me=W(),Z=N(Mc);E(n,xo,Z),E(n,Fn,e),E(n,Eo,t),E(e,lt,r),E(r,lt,i),E(n,Ge,s),E(n,ze,s),E(n,at,a),E(n,Fe,s),E(i,Ge,c),E(i,ze,c),E(i,Fe,c),E(i,at,c),E(s,Ct,o),E(x,Ct,V),E(o,Ge,a),E(o,ze,s),E(o,Fe,s),E(o,at,s),E(V,Ge,U),E(V,ze,x),E(V,Fe,x),E(V,at,x),E(a,Ct,o),E(U,Ct,V),E(a,ar,l),E(a,lt,c),E(l,Fe,u),E(u,lt,c),E(U,ar,ce),E(ce,Fe,J);var q=[ai,ui,Dn,ci,di,fi,hi,ze,pi,mi,at,Fe,gi,yi,Di,bi,Fn,lt,Ei,ki,Ge,Ci],K=[li,gn,_t,mn,yn,ar,So,Ct,Ao,sr,pn,ir,or,vi,wo,Oo];E(c,pn,f),E(c,ir,h),E(c,sr,p),E(c,or,m),E(d,pn,f),E(d,ir,h),E(d,sr,p),E(d,or,m),E(f,_t,c),E(h,mn,c),E(p,gn,c),E(m,yn,c),E(y,_t,c),E(D,mn,c),E(v,gn,c),E(w,yn,c),E(g,_t,c),E(M,mn,c),E(C,gn,c),E(F,yn,c),z(f,q,y),z(h,q,D),z(p,q,v),z(m,q,w),z(f,K,g),z(h,K,M),z(p,K,C),z(m,K,F),z(y,q,y),z(D,q,D),z(v,q,v),z(w,q,w),z(y,K,y),z(D,K,D),z(v,K,v),z(w,K,w),z(g,q,y),z(M,q,D),z(C,q,v),z(F,q,w),z(g,K,g),z(M,K,M),z(C,K,C),z(F,K,F),z(c,q,c),z(d,q,c),z(c,K,d),z(d,K,d),E(t,Ge,j),E(t,ze,j),E(t,Fe,j),E(t,at,j),z(j,q,j),z(j,K,Q),z(Q,q,j),z(Q,K,Q);var Se=[ai,li,ui,ci,di,fi,_t,hi,ze,pi,mi,Fe,pn,gi,yi,Di,bi,vi,lt,Ei,ki,Ge,Ci];return z(s,Se,Y),E(s,Dn,ie),z(a,Se,Y),E(a,Dn,ie),z(o,Se,Y),z(Y,Se,Y),E(Y,Dn,ie),E(Y,Ct,me),z(me,Se,Y),E(ie,Ge,x),E(ie,ze,x),E(ie,Fe,x),E(ie,at,U),n}function gD(n,e,t){for(var r=t.length,i=0,s=[],o=[];i<r;){for(var a=n,l=null,u=null,c=0,d=null,f=-1;i<r&&!(l=oi(a,t[i].t));)o.push(t[i++]);for(;i<r&&(u=l||oi(a,t[i].t));)l=null,a=u,a.accepts()?(f=0,d=a):f>=0&&f++,i++,c++;if(f<0)for(var h=i-c;h<i;h++)o.push(t[h]);else{o.length>0&&(s.push(Ds(js,e,o)),o=[]),i-=f,c-=f;var p=d.t,m=t.slice(i-c,i);s.push(Ds(p,e,m))}}return o.length>0&&s.push(Ds(js,e,o)),s}function Ds(n,e,t){var r=t[0].s,i=t[t.length-1].e,s=e.substr(r,i-r);return new n(s,t)}var yD=typeof console!="undefined"&&console&&console.warn||function(){},te={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function DD(){te.scanner=null,te.parser=null,te.pluginQueue=[],te.customProtocols=[],te.initialized=!1}function bD(n){if(te.initialized&&yD('linkifyjs: already initialized - will not register custom protocol "'.concat(n,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(n))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");te.customProtocols.push(n)}function vD(){te.scanner={start:cD(te.customProtocols),tokens:uD},te.parser={start:mD(),tokens:pD};for(var n={createTokenClass:tn},e=0;e<te.pluginQueue.length;e++)te.pluginQueue[e][1]({scanner:te.scanner,parser:te.parser,utils:n});te.initialized=!0}function Tc(n){return te.initialized||vD(),gD(te.parser.start,n,dD(te.scanner.start,n))}function Mo(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=Tc(n),r=[],i=0;i<t.length;i++){var s=t[i];s.isLink&&(!e||s.t===e)&&r.push(s.toObject())}return r}function gl(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=Tc(n);return t.length===1&&t[0].isLink&&(!e||t[0].t===e)}function kD(n){return new ue({key:new Me("autolink"),appendTransaction:(e,t,r)=>{const i=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!i||s)return;const{tr:o}=r,a=Wp(t.doc,[...e]),{mapping:l}=a;if(Zp(a).forEach(({oldRange:c,newRange:d})=>{ri(c.from,c.to,t.doc).filter(m=>m.mark.type===n.type).forEach(m=>{const y=l.map(m.from),D=l.map(m.to),v=ri(y,D,r.doc).filter(x=>x.mark.type===n.type);if(!v.length)return;const w=v[0],g=t.doc.textBetween(m.from,m.to,void 0," "),M=r.doc.textBetween(w.from,w.to,void 0," "),C=gl(g),F=gl(M);C&&!F&&o.removeMark(w.from,w.to,n.type)});const f=qp(r.doc,d,m=>m.isTextblock);let h,p;if(f.length>1?(h=f[0],p=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):f.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(h=f[0],p=r.doc.textBetween(h.pos,d.to,void 0," ")),h&&p){const m=p.split(" ").filter(v=>v!=="");if(m.length<=0)return!1;const y=m[m.length-1],D=h.pos+p.lastIndexOf(y);if(!y)return!1;Mo(y).filter(v=>v.isLink).filter(v=>n.validate?n.validate(v.value):!0).map(v=>de(A({},v),{from:D+v.start+1,to:D+v.end+1})).forEach(v=>{o.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!o.steps.length)return o}})}function CD(n){return new ue({key:new Me("handleClickLink"),props:{handleClick:(e,t,r)=>{var i;const s=Gu(e.state,n.type.name);return((i=r.target)===null||i===void 0?void 0:i.closest("a"))&&s.href?(window.open(s.href,s.target),!0):!1}}})}function ED(n){return new ue({key:new Me("handlePasteLink"),props:{handlePaste:(e,t,r)=>{const{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=Mo(a).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(n.editor.commands.setMark(n.type,{href:l.href}),!0)}}})}const xD=ht.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(bD)},onDestroy(){DD()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[en({find:n=>Mo(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:n=>{var e;return{href:(e=n.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(kD({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(CD({type:this.type})),this.options.linkOnPaste&&n.push(ED({editor:this.editor,type:this.type})),n}}),SD={name:"MdsIcon",props:{iconName:{type:String,default:""},classes:{type:String,default:""},visuallyHiddenLabel:{type:String,default:""}},inject:["iconPath"]},AD=["href"],wD={key:0,class:"mds-visually-hidden"};function OD(n,e,t,r,i,s){return ct(),wt("span",null,[(ct(),wt("svg",{"aria-hidden":"true",focusable:"false",class:Dl(["mds-icon",`mds-icon--${t.iconName} ${t.classes}`])},[bl("use",{href:`${s.iconPath}#icon-${t.iconName}`},null,8,AD)],2)),t.visuallyHiddenLabel?(ct(),wt("span",wD,ed(t.visuallyHiddenLabel),1)):vl("",!0)])}var MD=br(SD,[["render",OD]]);const TD={name:"TextEditorButton",components:{MdsIcon:MD},emits:["updateTabIndex"],props:{id:{type:String,required:!0},label:{type:String,default:""},iconName:{type:String,default:""},isActive:{type:Boolean,default:!1},initialTabindex:{type:Number,default:-1},ariaPressed:{type:Boolean,default:!1},disabled:{type:Boolean}},data(){return{tabindex:this.initialTabindex}}},FD=["title","aria-label","tabindex","aria-disabled","aria-pressed"];function ND(n,e,t,r,i,s){const o=lr("MdsIcon");return ct(),wt("button",{type:"button",title:t.label,"aria-label":t.label,class:Dl(["mds-text-editor__button",{"mds-text-editor__button--active":t.isActive}]),tabindex:i.tabindex,"aria-disabled":t.disabled,"aria-pressed":t.ariaPressed,onFocus:e[0]||(e[0]=a=>n.$emit("updateTabIndex",t.id))},[_r(o,{"icon-name":t.iconName},null,8,["icon-name"])],42,FD)}var BD=br(TD,[["render",ND]]);const RD={name:"TextEditorToolbar",components:{TextEditorButton:BD},inject:["id","customMenuButtons","i18nText"],props:{editor:{type:Object,required:!0}},data(){return{defaultMenuButtons:[{id:"bold",label:"Bold",iconName:"text-bold",onClick:n=>n.commands.toggleBold(),isActive:n=>n.isActive("bold")},{id:"italic",label:"Italic",iconName:"text-italic",onClick:n=>n.commands.toggleItalic(),isActive:n=>n.isActive("italic")},{id:"strike",label:"Strike",iconName:"text-strike-through",onClick:n=>n.commands.toggleStrike(),isActive:n=>n.isActive("strike")},{id:"bulletList",label:"Bullet list",iconName:"list-bullets",onClick:n=>n.commands.toggleBulletList(),isActive:n=>n.isActive("bulletList")},{id:"orderedList",label:"Ordered list",iconName:"list-numbers",onClick:n=>n.commands.toggleOrderedList(),isActive:n=>n.isActive("orderedList")},{id:"undo",label:"Undo",iconName:"undo",onClick:n=>n.commands.undo(),isDisabled:n=>!n.can().undo()},{id:"redo",label:"Redo",iconName:"redo",onClick:n=>n.commands.redo(),isDisabled:n=>!n.can().redo()}]}},computed:{menuButtons(){var n;if((n=this.customMenuButtons)!=null&&n.length){const e=[];return this.customMenuButtons.forEach(t=>{const r=this.defaultMenuButtons.find(i=>i.id===t.id);e.push(A(A({},r),t))}),e}return this.defaultMenuButtons},firstFocusableButton(){return this.menuButtons.find(n=>{var e;return!((e=n.isDisabled)!=null&&e.call(n,this.editor))})}},methods:{findSiblings(n,e){let t=e==="previous"?n.previousElementSibling:n.nextElementSibling;return t!=null&&t.hasAttribute("disabled")&&(t=this.findSiblings(t,e)),t},setFocusToSibling(n,e){const t=this.findSiblings(e.target,n);t&&t.focus()},updateTabIndex(n){n||(n=this.firstFocusableButton.id),this.$refs.menuButton.forEach(e=>{e.id===n?e.tabindex=0:e.tabindex=-1})}}},ID=["aria-label","aria-controls"];function PD(n,e,t,r,i,s){const o=lr("TextEditorButton");return ct(),wt("div",{class:"mds-text-editor__menu",role:"toolbar","aria-label":s.i18nText.toolbarLabel,"aria-controls":s.id},[(ct(!0),wt(td,null,nd(s.menuButtons,a=>{var l,u,c,d;return ct(),rd(o,{id:a.id,ref_for:!0,ref:"menuButton",key:a.id,label:a.label,"icon-name":a.iconName,"is-active":(l=a.isActive)==null?void 0:l.call(a,t.editor),disabled:(u=a.isDisabled)==null?void 0:u.call(a,t.editor),"initial-tabindex":s.firstFocusableButton.id===a.id?0:-1,"aria-pressed":a.id==="undo"||a.id==="redo"?null:(c=a.isActive)==null?void 0:c.call(a,t.editor),"aria-expanded":(d=a.ariaExpanded)==null?void 0:d.call(a),onClick:f=>a.onClick(t.editor),onKeyup:[e[0]||(e[0]=Mr(f=>s.setFocusToSibling("previous",f),["left"])),e[1]||(e[1]=Mr(f=>s.setFocusToSibling("previous",f),["up"])),e[2]||(e[2]=Mr(f=>s.setFocusToSibling("next",f),["right"])),e[3]||(e[3]=Mr(f=>s.setFocusToSibling("next",f),["down"]))],onUpdateTabIndex:s.updateTabIndex},null,8,["id","label","icon-name","is-active","disabled","initial-tabindex","aria-pressed","aria-expanded","onClick","onUpdateTabIndex"])}),128))],8,ID)}var LD=br(RD,[["render",PD]]);const zD={name:"TextEditorContent",components:{EditorContent:aD,TextEditorToolbar:LD},props:{modelValue:{type:String,default:""}},inject:["id"],emits:["update:modelValue"],data(){return{editor:null}},watch:{modelValue(n){this.editor.getHTML()!==n&&this.editor.commands.setContent(n,!1)}},mounted(){this.editor=new oD({extensions:[Fg,xD.configure({protocols:["http","https","mailto"],openOnClick:!1})],editorProps:{attributes:{class:"mds-text-editor__content mds-edited-text",id:this.id,role:"textbox",["aria-labelledby"]:`text-editor-label-${this.id}`}},content:this.modelValue,onUpdate:()=>{this.$emit("update:modelValue",this.editor.getHTML())}})},beforeUnmount(){this.editor.destroy()}},VD={key:0,class:"mds-text-editor"};function HD(n,e,t,r,i,s){const o=lr("TextEditorToolbar"),a=lr("EditorContent");return i.editor?(ct(),wt("div",VD,[_r(o,{editor:i.editor},null,8,["editor"]),_r(a,{editor:i.editor},null,8,["editor"])])):vl("",!0)}var jD=br(zD,[["render",HD]]);const $D={name:"TextEditor",components:{TextEditorContent:jD},provide(){return{iconPath:this.iconpath,id:this.editorid,customMenuButtons:this.customMenuButtons,i18nText:this.i18nText}},props:{editorid:{type:String,required:!0},iconpath:{type:String,default:"/assets/icons.svg"},menuButtons:{type:String,default:""},i18n:{type:String,default:""},value:{type:String,default:""}},data(){return{content:this.value}},computed:{customMenuButtons(){return this.menuButtons?JSON.parse(this.menuButtons):null},i18nText(){const n=this.i18n?JSON.parse(this.i18n):{};return A({toolbarLabel:"Text formatting",addLink:"Add link",removeLink:"Remove link",visuallyHiddenLinkUrlLabel:"Link url"},n)}},mounted(){const n=document.querySelector(`#text-editor-fallback-${this.editorid}`);n&&n.remove()}},_D=["name","value"];function WD(n,e,t,r,i,s){const o=lr("TextEditorContent");return ct(),wt("div",null,[_r(o,{modelValue:i.content,"onUpdate:modelValue":e[0]||(e[0]=a=>i.content=a)},null,8,["modelValue"]),bl("input",{type:"hidden",name:t.editorid,value:i.content},null,8,_D)])}var KD=br($D,[["render",WD]]);const JD=id(KD,{shadowRoot:!1});export{JD as default};
94
+ `,W()),ee(s,pl,s);for(var u=0;u<hl.length;u++)Ht(e,hl[u],l(Ge),a);var c=a(),d=a(),f=a(),h=a();Ht(e,"file",c,a),Ht(e,"ftp",d,a),Ht(e,"http",f,a),Ht(e,"mailto",h,a);var p=a(),m=N(Fn),y=N(Eo);E(d,"s",p),E(d,":",m),E(f,"s",p),E(f,":",m),E(c,":",m),E(p,":",m),E(h,":",y);for(var D=a(),v=0;v<n.length;v++)Ht(e,n[v],D,a);return E(D,":",m),Ht(e,"localhost",l(at),a),ee(e,Jn,t),ee(e,Kn,r),ee(e,qn,r),ee(e,Un,r),ee(t,Jn,t),ee(t,Kn,r),ee(t,qn,r),ee(t,Un,r),E(t,"-",i),E(r,"-",i),E(i,"-",i),ee(r,Jn,r),ee(r,Kn,r),ee(r,qn,r),ee(r,Un,r),ee(i,Jn,r),ee(i,Kn,r),ee(i,qn,r),ee(i,Un,r),e.jd=N(Ei),e}function dD(n,e){for(var t=fD(e.replace(/[A-Z]/g,function(h){return h.toLowerCase()})),r=t.length,i=[],s=0,o=0;o<r;){for(var a=n,l=null,u=0,c=null,d=-1,f=-1;o<r&&(l=oi(a,t[o]));)a=l,a.accepts()?(d=0,f=0,c=a):d>=0&&(d+=t[o].length,f++),u+=t[o].length,s+=t[o].length,o++;s-=d,o-=f,u-=d,i.push({t:c.t,v:e.substr(s-u,u),s:s-u,e:s})}return i}function fD(n){for(var e=[],t=n.length,r=0;r<t;){var i=n.charCodeAt(r),s=void 0,o=i<55296||i>56319||r+1===t||(s=n.charCodeAt(r+1))<56320||s>57343?n[r]:n.slice(r,r+2);e.push(o),r+=o.length}return e}var wc={defaultProtocol:"http",events:null,format:ml,formatHref:ml,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:0,className:null,attributes:null,ignoreTags:[]};function ml(n){return n}function hD(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Object.create(n.prototype);for(var i in t)r[i]=t[i];return r.constructor=e,e.prototype=r,e}function xi(){}xi.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wc.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}}};function tn(n,e){function t(r,i){this.t=n,this.v=r,this.tk=i}return hD(xi,t,e),t}var Oc=tn("email",{isLink:!0}),Hs=tn("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),js=tn("text"),Mc=tn("nl"),bt=tn("url",{isLink:!0,toHref:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wc.defaultProtocol,t=this.tk,r=!1,i=!1,s=[],o=0;t[o].t===Fn;)r=!0,s.push(t[o].v),o++;for(;t[o].t===lt;)i=!0,s.push(t[o].v),o++;for(;o<t.length;o++)s.push(t[o].v);return s=s.join(""),r||i||(s="".concat(e,"://").concat(s)),s},hasProtocol:function(){return this.tk[0].t===Fn}}),pD=Object.freeze({__proto__:null,MultiToken:xi,Base:xi,createTokenClass:tn,MailtoEmail:Oc,Email:Hs,Text:js,Nl:Mc,Url:bt});function mD(){var n=W(),e=W(),t=W(),r=W(),i=W(),s=W(),o=W(),a=N(bt),l=W(),u=N(bt),c=N(bt),d=W(),f=W(),h=W(),p=W(),m=W(),y=N(bt),D=N(bt),v=N(bt),w=N(bt),g=W(),M=W(),C=W(),F=W(),x=W(),V=W(),U=N(Hs),ce=W(),J=N(Hs),j=N(Oc),Q=W(),Y=W(),ie=W(),me=W(),Z=N(Mc);E(n,xo,Z),E(n,Fn,e),E(n,Eo,t),E(e,lt,r),E(r,lt,i),E(n,Ge,s),E(n,ze,s),E(n,at,a),E(n,Fe,s),E(i,Ge,c),E(i,ze,c),E(i,Fe,c),E(i,at,c),E(s,Ct,o),E(x,Ct,V),E(o,Ge,a),E(o,ze,s),E(o,Fe,s),E(o,at,s),E(V,Ge,U),E(V,ze,x),E(V,Fe,x),E(V,at,x),E(a,Ct,o),E(U,Ct,V),E(a,ar,l),E(a,lt,c),E(l,Fe,u),E(u,lt,c),E(U,ar,ce),E(ce,Fe,J);var q=[ai,ui,Dn,ci,di,fi,hi,ze,pi,mi,at,Fe,gi,yi,Di,bi,Fn,lt,Ei,ki,Ge,Ci],K=[li,gn,_t,mn,yn,ar,So,Ct,Ao,sr,pn,ir,or,vi,wo,Oo];E(c,pn,f),E(c,ir,h),E(c,sr,p),E(c,or,m),E(d,pn,f),E(d,ir,h),E(d,sr,p),E(d,or,m),E(f,_t,c),E(h,mn,c),E(p,gn,c),E(m,yn,c),E(y,_t,c),E(D,mn,c),E(v,gn,c),E(w,yn,c),E(g,_t,c),E(M,mn,c),E(C,gn,c),E(F,yn,c),z(f,q,y),z(h,q,D),z(p,q,v),z(m,q,w),z(f,K,g),z(h,K,M),z(p,K,C),z(m,K,F),z(y,q,y),z(D,q,D),z(v,q,v),z(w,q,w),z(y,K,y),z(D,K,D),z(v,K,v),z(w,K,w),z(g,q,y),z(M,q,D),z(C,q,v),z(F,q,w),z(g,K,g),z(M,K,M),z(C,K,C),z(F,K,F),z(c,q,c),z(d,q,c),z(c,K,d),z(d,K,d),E(t,Ge,j),E(t,ze,j),E(t,Fe,j),E(t,at,j),z(j,q,j),z(j,K,Q),z(Q,q,j),z(Q,K,Q);var Se=[ai,li,ui,ci,di,fi,_t,hi,ze,pi,mi,Fe,pn,gi,yi,Di,bi,vi,lt,Ei,ki,Ge,Ci];return z(s,Se,Y),E(s,Dn,ie),z(a,Se,Y),E(a,Dn,ie),z(o,Se,Y),z(Y,Se,Y),E(Y,Dn,ie),E(Y,Ct,me),z(me,Se,Y),E(ie,Ge,x),E(ie,ze,x),E(ie,Fe,x),E(ie,at,U),n}function gD(n,e,t){for(var r=t.length,i=0,s=[],o=[];i<r;){for(var a=n,l=null,u=null,c=0,d=null,f=-1;i<r&&!(l=oi(a,t[i].t));)o.push(t[i++]);for(;i<r&&(u=l||oi(a,t[i].t));)l=null,a=u,a.accepts()?(f=0,d=a):f>=0&&f++,i++,c++;if(f<0)for(var h=i-c;h<i;h++)o.push(t[h]);else{o.length>0&&(s.push(Ds(js,e,o)),o=[]),i-=f,c-=f;var p=d.t,m=t.slice(i-c,i);s.push(Ds(p,e,m))}}return o.length>0&&s.push(Ds(js,e,o)),s}function Ds(n,e,t){var r=t[0].s,i=t[t.length-1].e,s=e.substr(r,i-r);return new n(s,t)}var yD=typeof console!="undefined"&&console&&console.warn||function(){},te={scanner:null,parser:null,pluginQueue:[],customProtocols:[],initialized:!1};function DD(){te.scanner=null,te.parser=null,te.pluginQueue=[],te.customProtocols=[],te.initialized=!1}function bD(n){if(te.initialized&&yD('linkifyjs: already initialized - will not register custom protocol "'.concat(n,'" until you manually call linkify.init(). To avoid this warning, please register all custom protocols before invoking linkify the first time.')),!/^[a-z-]+$/.test(n))throw Error("linkifyjs: protocols containing characters other than a-z or - (hyphen) are not supported");te.customProtocols.push(n)}function vD(){te.scanner={start:cD(te.customProtocols),tokens:uD},te.parser={start:mD(),tokens:pD};for(var n={createTokenClass:tn},e=0;e<te.pluginQueue.length;e++)te.pluginQueue[e][1]({scanner:te.scanner,parser:te.parser,utils:n});te.initialized=!0}function Tc(n){return te.initialized||vD(),gD(te.parser.start,n,dD(te.scanner.start,n))}function Mo(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=Tc(n),r=[],i=0;i<t.length;i++){var s=t[i];s.isLink&&(!e||s.t===e)&&r.push(s.toObject())}return r}function gl(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=Tc(n);return t.length===1&&t[0].isLink&&(!e||t[0].t===e)}function kD(n){return new ue({key:new Me("autolink"),appendTransaction:(e,t,r)=>{const i=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!i||s)return;const{tr:o}=r,a=Wp(t.doc,[...e]),{mapping:l}=a;if(Zp(a).forEach(({oldRange:c,newRange:d})=>{ri(c.from,c.to,t.doc).filter(m=>m.mark.type===n.type).forEach(m=>{const y=l.map(m.from),D=l.map(m.to),v=ri(y,D,r.doc).filter(x=>x.mark.type===n.type);if(!v.length)return;const w=v[0],g=t.doc.textBetween(m.from,m.to,void 0," "),M=r.doc.textBetween(w.from,w.to,void 0," "),C=gl(g),F=gl(M);C&&!F&&o.removeMark(w.from,w.to,n.type)});const f=qp(r.doc,d,m=>m.isTextblock);let h,p;if(f.length>1?(h=f[0],p=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):f.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(h=f[0],p=r.doc.textBetween(h.pos,d.to,void 0," ")),h&&p){const m=p.split(" ").filter(v=>v!=="");if(m.length<=0)return!1;const y=m[m.length-1],D=h.pos+p.lastIndexOf(y);if(!y)return!1;Mo(y).filter(v=>v.isLink).filter(v=>n.validate?n.validate(v.value):!0).map(v=>de(A({},v),{from:D+v.start+1,to:D+v.end+1})).forEach(v=>{o.addMark(v.from,v.to,n.type.create({href:v.href}))})}}),!!o.steps.length)return o}})}function CD(n){return new ue({key:new Me("handleClickLink"),props:{handleClick:(e,t,r)=>{var i;const s=Gu(e.state,n.type.name);return((i=r.target)===null||i===void 0?void 0:i.closest("a"))&&s.href?(window.open(s.href,s.target),!0):!1}}})}function ED(n){return new ue({key:new Me("handlePasteLink"),props:{handlePaste:(e,t,r)=>{const{state:i}=e,{selection:s}=i,{empty:o}=s;if(o)return!1;let a="";r.content.forEach(u=>{a+=u.textContent});const l=Mo(a).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(n.editor.commands.setMark(n.type,{href:l.href}),!0)}}})}const xD=ht.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(bD)},onDestroy(){DD()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",pe(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[en({find:n=>Mo(n).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:n=>{var e;return{href:(e=n.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(kD({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(CD({type:this.type})),this.options.linkOnPaste&&n.push(ED({editor:this.editor,type:this.type})),n}}),SD={name:"MdsIcon",props:{iconName:{type:String,default:""},classes:{type:String,default:""},visuallyHiddenLabel:{type:String,default:""}},inject:["iconPath"]},AD=["href"],wD={key:0,class:"mds-visually-hidden"};function OD(n,e,t,r,i,s){return ct(),wt("span",null,[(ct(),wt("svg",{"aria-hidden":"true",focusable:"false",class:Dl(["mds-icon",`mds-icon--${t.iconName} ${t.classes}`])},[bl("use",{href:`${s.iconPath}#icon-${t.iconName}`},null,8,AD)],2)),t.visuallyHiddenLabel?(ct(),wt("span",wD,ed(t.visuallyHiddenLabel),1)):vl("",!0)])}var MD=br(SD,[["render",OD]]);const TD={name:"TextEditorButton",components:{MdsIcon:MD},emits:["updateTabIndex"],props:{id:{type:String,required:!0},label:{type:String,default:""},iconName:{type:String,default:""},isActive:{type:Boolean,default:!1},initialTabindex:{type:Number,default:-1},ariaPressed:{type:Boolean,default:!1},disabled:{type:Boolean}},data(){return{tabindex:this.initialTabindex}}},FD=["title","aria-label","tabindex","aria-disabled","aria-pressed"];function ND(n,e,t,r,i,s){const o=lr("MdsIcon");return ct(),wt("button",{type:"button",title:t.label,"aria-label":t.label,class:Dl(["mds-text-editor__button",{"mds-text-editor__button--active":t.isActive}]),tabindex:i.tabindex,"aria-disabled":t.disabled,"aria-pressed":t.ariaPressed,onFocus:e[0]||(e[0]=a=>n.$emit("updateTabIndex",t.id))},[_r(o,{"icon-name":t.iconName},null,8,["icon-name"])],42,FD)}var BD=br(TD,[["render",ND]]);const RD={name:"TextEditorToolbar",components:{TextEditorButton:BD},inject:["id","customMenuButtons","i18nText"],props:{editor:{type:Object,required:!0}},data(){return{defaultMenuButtons:[{id:"bold",label:"Bold",iconName:"text-bold",onClick:n=>n.commands.toggleBold(),isActive:n=>n.isActive("bold")},{id:"italic",label:"Italic",iconName:"text-italic",onClick:n=>n.commands.toggleItalic(),isActive:n=>n.isActive("italic")},{id:"strike",label:"Strike",iconName:"text-strike-through",onClick:n=>n.commands.toggleStrike(),isActive:n=>n.isActive("strike")},{id:"bulletList",label:"Bullet list",iconName:"list-bullets",onClick:n=>n.commands.toggleBulletList(),isActive:n=>n.isActive("bulletList")},{id:"orderedList",label:"Ordered list",iconName:"list-numbers",onClick:n=>n.commands.toggleOrderedList(),isActive:n=>n.isActive("orderedList")},{id:"undo",label:"Undo",iconName:"undo",onClick:n=>n.commands.undo(),isDisabled:n=>!n.can().undo()},{id:"redo",label:"Redo",iconName:"redo",onClick:n=>n.commands.redo(),isDisabled:n=>!n.can().redo()}]}},computed:{menuButtons(){var n;if((n=this.customMenuButtons)!=null&&n.length){const e=[];return this.customMenuButtons.forEach(t=>{const r=this.defaultMenuButtons.find(i=>i.id===t.id);e.push(A(A({},r),t))}),e}return this.defaultMenuButtons},firstFocusableButton(){return this.menuButtons.find(n=>{var e;return!((e=n.isDisabled)!=null&&e.call(n,this.editor))})}},methods:{findSiblings(n,e){let t=e==="previous"?n.previousElementSibling:n.nextElementSibling;return t!=null&&t.hasAttribute("disabled")&&(t=this.findSiblings(t,e)),t},setFocusToSibling(n,e){const t=this.findSiblings(e.target,n);t&&t.focus()},updateTabIndex(n){n||(n=this.firstFocusableButton.id),this.$refs.menuButton.forEach(e=>{e.id===n?e.tabindex=0:e.tabindex=-1})}}},ID=["aria-label","aria-controls"];function PD(n,e,t,r,i,s){const o=lr("TextEditorButton");return ct(),wt("div",{class:"mds-text-editor__menu",role:"toolbar","aria-label":s.i18nText.toolbarLabel,"aria-controls":s.id},[(ct(!0),wt(td,null,nd(s.menuButtons,a=>{var l,u,c,d;return ct(),rd(o,{id:a.id,ref_for:!0,ref:"menuButton",key:a.id,label:a.label,"icon-name":a.iconName,"is-active":(l=a.isActive)==null?void 0:l.call(a,t.editor),disabled:(u=a.isDisabled)==null?void 0:u.call(a,t.editor),"initial-tabindex":s.firstFocusableButton.id===a.id?0:-1,"aria-pressed":a.id==="undo"||a.id==="redo"?null:(c=a.isActive)==null?void 0:c.call(a,t.editor),"aria-expanded":(d=a.ariaExpanded)==null?void 0:d.call(a),onClick:f=>a.onClick(t.editor),onKeyup:[e[0]||(e[0]=Mr(f=>s.setFocusToSibling("previous",f),["left"])),e[1]||(e[1]=Mr(f=>s.setFocusToSibling("previous",f),["up"])),e[2]||(e[2]=Mr(f=>s.setFocusToSibling("next",f),["right"])),e[3]||(e[3]=Mr(f=>s.setFocusToSibling("next",f),["down"]))],onUpdateTabIndex:s.updateTabIndex},null,8,["id","label","icon-name","is-active","disabled","initial-tabindex","aria-pressed","aria-expanded","onClick","onUpdateTabIndex"])}),128))],8,ID)}var LD=br(RD,[["render",PD]]);const zD={name:"TextEditorContent",components:{EditorContent:aD,TextEditorToolbar:LD},inject:["id","ariaDescribedBy"],props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],data(){return{editor:null}},watch:{modelValue(n){this.editor.getHTML()!==n&&this.editor.commands.setContent(n,!1)}},mounted(){this.editor=new oD({extensions:[Fg,xD.configure({protocols:["http","https","mailto"],openOnClick:!1})],editorProps:{attributes:A({class:"mds-text-editor__content mds-edited-text",id:this.id,role:"textbox",["aria-labelledby"]:`text-editor-label-${this.id}`},this.ariaDescribedBy&&{["aria-describedby"]:this.ariaDescribedBy})},content:this.modelValue,onUpdate:()=>{this.$emit("update:modelValue",this.editor.getHTML())}})},beforeUnmount(){this.editor.destroy()}},VD={key:0,class:"mds-text-editor"};function HD(n,e,t,r,i,s){const o=lr("TextEditorToolbar"),a=lr("EditorContent");return i.editor?(ct(),wt("div",VD,[_r(o,{editor:i.editor},null,8,["editor"]),_r(a,{editor:i.editor},null,8,["editor"])])):vl("",!0)}var jD=br(zD,[["render",HD]]);const $D={name:"TextEditor",components:{TextEditorContent:jD},provide(){return{iconPath:this.iconpath,id:this.editorid,customMenuButtons:this.customMenuButtons,i18nText:this.i18nText,ariaDescribedBy:this.describedbyId}},props:{editorid:{type:String,required:!0},iconpath:{type:String,default:"/assets/icons.svg"},menuButtons:{type:String,default:""},i18n:{type:String,default:""},value:{type:String,default:""},describedbyId:{type:String,default:""}},data(){return{content:this.value}},computed:{customMenuButtons(){return this.menuButtons?JSON.parse(this.menuButtons):null},i18nText(){const n=this.i18n?JSON.parse(this.i18n):{};return A({toolbarLabel:"Text formatting",addLink:"Add link",removeLink:"Remove link",visuallyHiddenLinkUrlLabel:"Link url"},n)}},mounted(){const n=document.querySelector(`#text-editor-fallback-${this.editorid}`);n&&n.remove()}},_D=["name","value"];function WD(n,e,t,r,i,s){const o=lr("TextEditorContent");return ct(),wt("div",null,[_r(o,{modelValue:i.content,"onUpdate:modelValue":e[0]||(e[0]=a=>i.content=a)},null,8,["modelValue"]),bl("input",{type:"hidden",name:t.editorid,value:i.content},null,8,_D)])}var KD=br($D,[["render",WD]]);const JD=id(KD,{shadowRoot:!1});export{JD as default};
@@ -1,2 +1,2 @@
1
1
  /*! (c) Andrea Giammarchi @webreflection ISC */(function(){var e=function(O,p){var x=function(S){for(var D=0,ee=S.length;D<ee;D++)F(S[D])},F=function(S){var D=S.target,ee=S.attributeName,ne=S.oldValue;D.attributeChangedCallback(ee,ne,D.getAttribute(ee))};return function(I,S){var D=I.constructor.observedAttributes;return D&&O(S).then(function(){new p(x).observe(I,{attributes:!0,attributeOldValue:!0,attributeFilter:D});for(var ee=0,ne=D.length;ee<ne;ee++)I.hasAttribute(D[ee])&&F({target:I,attributeName:D[ee],oldValue:null})}),I}};function t(O,p){if(!!O){if(typeof O=="string")return n(O,p);var x=Object.prototype.toString.call(O).slice(8,-1);if(x==="Object"&&O.constructor&&(x=O.constructor.name),x==="Map"||x==="Set")return Array.from(O);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return n(O,p)}}function n(O,p){(p==null||p>O.length)&&(p=O.length);for(var x=0,F=new Array(p);x<p;x++)F[x]=O[x];return F}function r(O,p){var x=typeof Symbol!="undefined"&&O[Symbol.iterator]||O["@@iterator"];if(!x){if(Array.isArray(O)||(x=t(O))||p&&O&&typeof O.length=="number"){x&&(O=x);var F=0,I=function(){};return{s:I,n:function(){return F>=O.length?{done:!0}:{done:!1,value:O[F++]}},e:function(ne){throw ne},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,D=!1,ee;return{s:function(){x=x.call(O)},n:function(){var ne=x.next();return S=ne.done,ne},e:function(ne){D=!0,ee=ne},f:function(){try{!S&&x.return!=null&&x.return()}finally{if(D)throw ee}}}}/*! (c) Andrea Giammarchi - ISC */var s=!0,o=!1,i="querySelectorAll",c=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],S=function ne(Ge,et,Ce,B,te,re){var Oe=r(Ge),yt;try{for(Oe.s();!(yt=Oe.n()).done;){var ae=yt.value;(re||i in ae)&&(te?Ce.has(ae)||(Ce.add(ae),B.delete(ae),p(ae,te)):B.has(ae)||(B.add(ae),Ce.delete(ae),p(ae,te)),re||ne(ae[i](et),et,Ce,B,te,s))}}catch(Tn){Oe.e(Tn)}finally{Oe.f()}},D=new F(function(ne){if(I.length){var Ge=I.join(","),et=new Set,Ce=new Set,B=r(ne),te;try{for(B.s();!(te=B.n()).done;){var re=te.value,Oe=re.addedNodes,yt=re.removedNodes;S(yt,Ge,et,Ce,o,o),S(Oe,Ge,et,Ce,s,o)}}catch(ae){B.e(ae)}finally{B.f()}}}),ee=D.observe;return(D.observe=function(ne){return ee.call(D,ne,{subtree:s,childList:s})})(x),D},f="querySelectorAll",a=self,d=a.document,v=a.Element,E=a.MutationObserver,M=a.Set,R=a.WeakMap,W=function(p){return f in p},L=[].filter,$=function(O){var p=new R,x=function(B){for(var te=0,re=B.length;te<re;te++)p.delete(B[te])},F=function(){for(var B=Ge.takeRecords(),te=0,re=B.length;te<re;te++)D(L.call(B[te].removedNodes,W),!1),D(L.call(B[te].addedNodes,W),!0)},I=function(B){return B.matches||B.webkitMatchesSelector||B.msMatchesSelector},S=function(B,te){var re;if(te)for(var Oe,yt=I(B),ae=0,Tn=ee.length;ae<Tn;ae++)yt.call(B,Oe=ee[ae])&&(p.has(B)||p.set(B,new M),re=p.get(B),re.has(Oe)||(re.add(Oe),O.handle(B,te,Oe)));else p.has(B)&&(re=p.get(B),p.delete(B),re.forEach(function(Vs){O.handle(B,te,Vs)}))},D=function(B){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=0,Oe=B.length;re<Oe;re++)S(B[re],te)},ee=O.query,ne=O.root||d,Ge=c(S,ne,E,ee),et=v.prototype.attachShadow;return et&&(v.prototype.attachShadow=function(Ce){var B=et.call(this,Ce);return Ge.observe(B),B}),ee.length&&D(ne[f](ee)),{drop:x,flush:F,observer:Ge,parse:D}},G=self,J=G.document,X=G.Map,ve=G.MutationObserver,pe=G.Object,ye=G.Set,we=G.WeakMap,fe=G.Element,Re=G.HTMLElement,xe=G.Node,Xe=G.Error,ct=G.TypeError,Yt=G.Reflect,le=pe.defineProperty,ue=pe.keys,Q=pe.getOwnPropertyNames,q=pe.setPrototypeOf,ge=!self.customElements,bt=function(p){for(var x=ue(p),F=[],I=x.length,S=0;S<I;S++)F[S]=p[x[S]],delete p[x[S]];return function(){for(var D=0;D<I;D++)p[x[D]]=F[D]}};if(ge){var qe=function(){var p=this.constructor;if(!Me.has(p))throw new ct("Illegal constructor");var x=Me.get(p);if(Qe)return l(Qe,x);var F=ze.call(J,x);return l(q(F,p.prototype),x)},ze=J.createElement,Me=new X,ft=new X,Vt=new X,ut=new X,Ie=[],vt=function(p,x,F){var I=Vt.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Qe=q(p,I);try{new I.constructor}finally{Qe=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Xt=$({query:Ie,handle:vt}),Ze=Xt.parse,Qe=null,at=function(p){if(!ft.has(p)){var x,F=new Promise(function(I){x=I});ft.set(p,{$:F,_:x})}return ft.get(p).$},l=e(at,ve);le(self,"customElements",{configurable:!0,value:{define:function(p,x){if(ut.has(p))throw new Xe('the name "'.concat(p,'" has already been used with this registry'));Me.set(x,p),Vt.set(p,x.prototype),ut.set(p,x),Ie.push(p),at(p).then(function(){Ze(J.querySelectorAll(p))}),ft.get(p)._(x)},get:function(p){return ut.get(p)},whenDefined:at}}),le(qe.prototype=Re.prototype,"constructor",{value:qe}),le(self,"HTMLElement",{configurable:!0,value:qe}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is,I=F?ut.get(F):ut.get(p);return I?new I:ze.call(J,p)}}),"isConnected"in xe.prototype||le(xe.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else try{var u=function O(){return self.Reflect.construct(HTMLLIElement,[],O)};u.prototype=HTMLLIElement.prototype;var h="extends-li";self.customElements.define("extends-li",u,{extends:"li"}),ge=J.createElement("li",{is:h}).outerHTML.indexOf(h)<0;var g=self.customElements,m=g.get,y=g.whenDefined;le(self.customElements,"whenDefined",{configurable:!0,value:function(p){var x=this;return y.call(this,p).then(function(F){return F||m.call(x,p)})}})}catch{ge=!ge}if(ge){var C=function(p){var x=U.get(p);Rt(x.querySelectorAll(this),p.isConnected)},b=self.customElements,w=J.createElement,_=b.define,A=b.get,T=b.upgrade,P=Yt||{construct:function(p){return p.call(this)}},N=P.construct,U=new we,z=new ye,k=new X,Y=new X,Ee=new X,je=new X,Nt=[],Ue=[],Ft=function(p){return je.get(p)||A.call(b,p)},me=function(p,x,F){var I=Ee.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Zt=q(p,I);try{new I.constructor}finally{Zt=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Ne=$({query:Ue,handle:me}),Rt=Ne.parse,Js=$({query:Nt,handle:function(p,x){U.has(p)&&(x?z.add(p):z.delete(p),Ue.length&&C.call(Ue,p))}}),Ys=Js.parse,yr=fe.prototype.attachShadow;yr&&(fe.prototype.attachShadow=function(O){var p=yr.call(this,O);return U.set(this,p),p});var En=function(p){if(!Y.has(p)){var x,F=new Promise(function(I){x=I});Y.set(p,{$:F,_:x})}return Y.get(p).$},Cn=e(En,ve),Zt=null;Q(self).filter(function(O){return/^HTML.*Element$/.test(O)}).forEach(function(O){var p=self[O];function x(){var F=this.constructor;if(!k.has(F))throw new ct("Illegal constructor");var I=k.get(F),S=I.is,D=I.tag;if(S){if(Zt)return Cn(Zt,S);var ee=w.call(J,D);return ee.setAttribute("is",S),Cn(q(ee,F.prototype),S)}else return N.call(this,p,[],F)}le(x.prototype=p.prototype,"constructor",{value:x}),le(self,O,{value:x})}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is;if(F){var I=je.get(F);if(I&&k.get(I).tag===p)return new I}var S=w.call(J,p);return F&&S.setAttribute("is",F),S}}),le(b,"get",{configurable:!0,value:Ft}),le(b,"whenDefined",{configurable:!0,value:En}),le(b,"upgrade",{configurable:!0,value:function(p){var x=p.getAttribute("is");if(x){var F=je.get(x);if(F){Cn(q(p,F.prototype),x);return}}T.call(b,p)}}),le(b,"define",{configurable:!0,value:function(p,x,F){if(Ft(p))throw new Xe("'".concat(p,"' has already been defined as a custom element"));var I,S=F&&F.extends;k.set(x,S?{is:p,tag:S}:{is:"",tag:p}),S?(I="".concat(S,'[is="').concat(p,'"]'),Ee.set(I,x.prototype),je.set(p,x),Ue.push(I)):(_.apply(b,arguments),Nt.push(I=p)),En(p).then(function(){S?(Rt(J.querySelectorAll(I)),z.forEach(C,[I])):Ys(J.querySelectorAll(I))}),Y.get(p)._(x)}})}})();function Vn(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Xs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zs=Vn(Xs);function Xr(e){return!!e||e===""}function Xn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ie(r)?eo(r):Xn(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(ie(e))return e;if(se(e))return e}}const Qs=/;(?![^(]*\))/g,Gs=/:(.+)/;function eo(e){const t={};return e.split(Qs).forEach(n=>{if(n){const r=n.split(Gs);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Zn(e){let t="";if(ie(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const r=Zn(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tl=e=>ie(e)?e:e==null?"":j(e)||se(e)&&(e.toString===es||!H(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Qr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!j(t)&&!ts(t)?String(t):t,Z={},Ct=[],He=()=>{},to=()=>!1,no=/^on[^a-z]/,dn=e=>no.test(e),Qn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Gn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ro=Object.prototype.hasOwnProperty,K=(e,t)=>ro.call(e,t),j=Array.isArray,Tt=e=>pn(e)==="[object Map]",Qr=e=>pn(e)==="[object Set]",H=e=>typeof e=="function",ie=e=>typeof e=="string",er=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Gr=e=>se(e)&&H(e.then)&&H(e.catch),es=Object.prototype.toString,pn=e=>es.call(e),so=e=>pn(e).slice(8,-1),ts=e=>pn(e)==="[object Object]",tr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oo=/-(\w)/g,Fe=gn(e=>e.replace(oo,(t,n)=>n?n.toUpperCase():"")),io=/\B([A-Z])/g,ke=gn(e=>e.replace(io,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=gn(e=>e?`on${mn(e)}`:""),Kt=(e,t)=>!Object.is(e,t),An=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wr;const lo=()=>wr||(wr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ke;class co{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ke&&(this.parent=Ke,this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function fo(e,t=Ke){t&&t.active&&t.effects.push(e)}const nr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ns=e=>(e.w&it)>0,rs=e=>(e.n&it)>0,uo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];ns(s)&&!rs(s)?s.delete(e):t[n++]=s,s.w&=~it,s.n&=~it}t.length=n}},jn=new WeakMap;let Lt=0,it=1;const Ln=30;let $e;const mt=Symbol(""),$n=Symbol("");class rr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,fo(this,r)}run(){if(!this.active)return this.fn();let t=$e,n=st;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=$e,$e=this,st=!0,it=1<<++Lt,Lt<=Ln?uo(this):xr(this),this.fn()}finally{Lt<=Ln&&ao(this),it=1<<--Lt,$e=this.parent,st=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let st=!0;const ss=[];function Mt(){ss.push(st),st=!1}function It(){const e=ss.pop();st=e===void 0?!0:e}function Pe(e,t,n){if(st&&$e){let r=jn.get(e);r||jn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=nr()),os(s)}}function os(e,t){let n=!1;Lt<=Ln?rs(e)||(e.n|=it,n=!ns(e)):n=!e.has($e),n&&(e.add($e),$e.deps.push(e))}function Ye(e,t,n,r,s,o){const i=jn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&j(e))i.forEach((f,a)=>{(a==="length"||a>=r)&&c.push(f)});else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?tr(n)&&c.push(i.get("length")):(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"delete":j(e)||(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"set":Tt(e)&&c.push(i.get(mt));break}if(c.length===1)c[0]&&Sn(c[0]);else{const f=[];for(const a of c)a&&f.push(...a);Sn(nr(f))}}function Sn(e,t){const n=j(e)?e:[...e];for(const r of n)r.computed&&Er(r);for(const r of n)r.computed||Er(r)}function Er(e,t){(e!==$e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ho=Vn("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(er)),po=sr(),go=sr(!1,!0),mo=sr(!0),Cr=_o();function _o(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=V(this);for(let o=0,i=this.length;o<i;o++)Pe(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(V)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Mt();const r=V(this)[t].apply(this,n);return It(),r}}),e}function sr(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Ro:as:t?us:fs).get(r))return r;const i=j(r);if(!e&&i&&K(Cr,s))return Reflect.get(Cr,s,o);const c=Reflect.get(r,s,o);return(er(s)?is.has(s):ho(s))||(e||Pe(r,"get",s),t)?c:he(c)?i&&tr(s)?c:c.value:se(c)?e?hs(c):lr(c):c}}const bo=ls(),vo=ls(!0);function ls(e=!1){return function(n,r,s,o){let i=n[r];if(Wt(i)&&he(i)&&!he(s))return!1;if(!e&&!Wt(s)&&(Hn(s)||(s=V(s),i=V(i)),!j(n)&&he(i)&&!he(s)))return i.value=s,!0;const c=j(n)&&tr(r)?Number(r)<n.length:K(n,r),f=Reflect.set(n,r,s,o);return n===V(o)&&(c?Kt(s,i)&&Ye(n,"set",r,s):Ye(n,"add",r,s)),f}}function yo(e,t){const n=K(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ye(e,"delete",t,void 0),r}function wo(e,t){const n=Reflect.has(e,t);return(!er(t)||!is.has(t))&&Pe(e,"has",t),n}function xo(e){return Pe(e,"iterate",j(e)?"length":mt),Reflect.ownKeys(e)}const cs={get:po,set:bo,deleteProperty:yo,has:wo,ownKeys:xo},Eo={get:mo,set(e,t){return!0},deleteProperty(e,t){return!0}},Co=ce({},cs,{get:go,set:vo}),or=e=>e,_n=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=V(e),o=V(t);n||(t!==o&&Pe(s,"get",t),Pe(s,"get",o));const{has:i}=_n(s),c=r?or:n?fr:kt;if(i.call(s,t))return c(e.get(t));if(i.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=V(n),s=V(e);return t||(e!==s&&Pe(r,"has",e),Pe(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function en(e,t=!1){return e=e.__v_raw,!t&&Pe(V(e),"iterate",mt),Reflect.get(e,"size",e)}function Tr(e){e=V(e);const t=V(this);return _n(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function Or(e,t){t=V(t);const n=V(this),{has:r,get:s}=_n(n);let o=r.call(n,e);o||(e=V(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Kt(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function Ar(e){const t=V(this),{has:n,get:r}=_n(t);let s=n.call(t,e);s||(e=V(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ye(t,"delete",e,void 0),o}function Pr(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function tn(e,t){return function(r,s){const o=this,i=o.__v_raw,c=V(i),f=t?or:e?fr:kt;return!e&&Pe(c,"iterate",mt),i.forEach((a,d)=>r.call(s,f(a),f(d),o))}}function nn(e,t,n){return function(...r){const s=this.__v_raw,o=V(s),i=Tt(o),c=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=s[e](...r),d=n?or:t?fr:kt;return!t&&Pe(o,"iterate",f?$n:mt),{next(){const{value:v,done:E}=a.next();return E?{value:v,done:E}:{value:c?[d(v[0]),d(v[1])]:d(v),done:E}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return e==="delete"?!1:this}}function To(){const e={get(o){return Qt(this,o)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!1)},t={get(o){return Qt(this,o,!1,!0)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!0)},n={get(o){return Qt(this,o,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!1)},r={get(o){return Qt(this,o,!0,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nn(o,!1,!1),n[o]=nn(o,!0,!1),t[o]=nn(o,!1,!0),r[o]=nn(o,!0,!0)}),[e,n,t,r]}const[Oo,Ao,Po,Mo]=To();function ir(e,t){const n=t?e?Mo:Po:e?Ao:Oo;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(K(n,s)&&s in r?n:r,s,o)}const Io={get:ir(!1,!1)},No={get:ir(!1,!0)},Fo={get:ir(!0,!1)},fs=new WeakMap,us=new WeakMap,as=new WeakMap,Ro=new WeakMap;function jo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lo(e){return e.__v_skip||!Object.isExtensible(e)?0:jo(so(e))}function lr(e){return Wt(e)?e:cr(e,!1,cs,Io,fs)}function $o(e){return cr(e,!1,Co,No,us)}function hs(e){return cr(e,!0,Eo,Fo,as)}function cr(e,t,n,r,s){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Lo(e);if(i===0)return e;const c=new Proxy(e,i===2?r:n);return s.set(e,c),c}function Ot(e){return Wt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function ds(e){return Ot(e)||Wt(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function ps(e){return ln(e,"__v_skip",!0),e}const kt=e=>se(e)?lr(e):e,fr=e=>se(e)?hs(e):e;function ur(e){st&&$e&&(e=V(e),os(e.dep||(e.dep=nr())))}function ar(e,t){e=V(e),e.dep&&Sn(e.dep)}function he(e){return!!(e&&e.__v_isRef===!0)}function Ol(e){return So(e,!1)}function So(e,t){return he(e)?e:new Ho(e,t)}class Ho{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:kt(t)}get value(){return ur(this),this._value}set value(t){t=this.__v_isShallow?t:V(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:kt(t),ar(this))}}function Do(e){return he(e)?e.value:e}const Uo={get:(e,t,n)=>Do(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gs(e){return Ot(e)?e:new Proxy(e,Uo)}class Bo{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ur(this),()=>ar(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Al(e){return new Bo(e)}class Ko{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new rr(t,()=>{this._dirty||(this._dirty=!0,ar(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=V(this);return ur(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Wo(e,t,n=!1){let r,s;const o=H(e);return o?(r=e,s=He):(r=e.get,s=e.set),new Ko(r,s,o||!s,n)}function ot(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){bn(o,t,n)}return s}function De(e,t,n,r){if(H(e)){const o=ot(e,t,n,r);return o&&Gr(o)&&o.catch(i=>{bn(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(De(e[o],t,n,r));return s}function bn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=n;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,c)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){ot(f,null,10,[e,i,c]);return}}ko(e,n,s,r)}function ko(e,t,n,r=!0){console.error(e)}let cn=!1,Dn=!1;const Ae=[];let Je=0;const St=[];let $t=null,wt=0;const Ht=[];let nt=null,xt=0;const ms=Promise.resolve();let hr=null,Un=null;function _s(e){const t=hr||ms;return e?t.then(this?e.bind(this):e):t}function qo(e){let t=Je+1,n=Ae.length;for(;t<n;){const r=t+n>>>1;qt(Ae[r])<e?t=r+1:n=r}return t}function bs(e){(!Ae.length||!Ae.includes(e,cn&&e.allowRecurse?Je+1:Je))&&e!==Un&&(e.id==null?Ae.push(e):Ae.splice(qo(e.id),0,e),vs())}function vs(){!cn&&!Dn&&(Dn=!0,hr=ms.then(xs))}function zo(e){const t=Ae.indexOf(e);t>Je&&Ae.splice(t,1)}function ys(e,t,n,r){j(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),vs()}function Jo(e){ys(e,$t,St,wt)}function Yo(e){ys(e,nt,Ht,xt)}function vn(e,t=null){if(St.length){for(Un=t,$t=[...new Set(St)],St.length=0,wt=0;wt<$t.length;wt++)$t[wt]();$t=null,wt=0,Un=null,vn(e,t)}}function ws(e){if(vn(),Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,nt){nt.push(...t);return}for(nt=t,nt.sort((n,r)=>qt(n)-qt(r)),xt=0;xt<nt.length;xt++)nt[xt]();nt=null,xt=0}}const qt=e=>e.id==null?1/0:e.id;function xs(e){Dn=!1,cn=!0,vn(e),Ae.sort((n,r)=>qt(n)-qt(r));const t=He;try{for(Je=0;Je<Ae.length;Je++){const n=Ae[Je];n&&n.active!==!1&&ot(n,null,14)}}finally{Je=0,Ae.length=0,ws(),cn=!1,hr=null,(Ae.length||St.length||Ht.length)&&xs(e)}}function Vo(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Z;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:v,trim:E}=r[d]||Z;E&&(s=n.map(M=>M.trim())),v&&(s=n.map(Rn))}let c,f=r[c=On(t)]||r[c=On(Fe(t))];!f&&o&&(f=r[c=On(ke(t))]),f&&De(f,e,6,s);const a=r[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,De(a,e,6,s)}}function Es(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},c=!1;if(!H(e)){const f=a=>{const d=Es(a,t,!0);d&&(c=!0,ce(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!c?(r.set(e,null),null):(j(o)?o.forEach(f=>i[f]=null):ce(i,o),r.set(e,i),i)}function yn(e,t){return!e||!dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,ke(t))||K(e,t))}let be=null,Cs=null;function fn(e){const t=be;return be=e,Cs=e&&e.type.__scopeId||null,t}function Xo(e,t=be,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Dr(-1);const o=fn(t),i=e(...s);return fn(o),r._d&&Dr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Pn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:c,attrs:f,emit:a,render:d,renderCache:v,data:E,setupState:M,ctx:R,inheritAttrs:W}=e;let L,$;const G=fn(e);try{if(n.shapeFlag&4){const X=s||r;L=We(d.call(X,X,v,o,M,E,R)),$=f}else{const X=t;L=We(X.length>1?X(o,{attrs:f,slots:c,emit:a}):X(o,null)),$=t.props?f:Zo(f)}}catch(X){Bt.length=0,bn(X,e,1),L=de(lt)}let J=L;if($&&W!==!1){const X=Object.keys($),{shapeFlag:ve}=J;X.length&&ve&7&&(i&&X.some(Qn)&&($=Qo($,i)),J=At(J,$))}return n.dirs&&(J=At(J),J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),L=J,fn(G),L}const Zo=e=>{let t;for(const n in e)(n==="class"||n==="style"||dn(n))&&((t||(t={}))[n]=e[n]);return t},Qo=(e,t)=>{const n={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Go(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:c,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?Mr(r,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const E=d[v];if(i[E]!==r[E]&&!yn(a,E))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?Mr(r,i,a):!0:!!i;return!1}function Mr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!yn(n,o))return!0}return!1}function ei({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ti=e=>e.__isSuspense;function ni(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Yo(e)}function ri(e,t){if(oe){let n=oe.provides;const r=oe.parent&&oe.parent.provides;r===n&&(n=oe.provides=Object.create(r)),n[e]=t}}function Mn(e,t,n=!1){const r=oe||be;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&H(t)?t.call(r.proxy):t}}function Pl(e,t){return dr(e,null,t)}const Ir={};function In(e,t,n){return dr(e,t,n)}function dr(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Z){const c=oe;let f,a=!1,d=!1;if(he(e)?(f=()=>e.value,a=Hn(e)):Ot(e)?(f=()=>e,r=!0):j(e)?(d=!0,a=e.some($=>Ot($)||Hn($)),f=()=>e.map($=>{if(he($))return $.value;if(Ot($))return Et($);if(H($))return ot($,c,2)})):H(e)?t?f=()=>ot(e,c,2):f=()=>{if(!(c&&c.isUnmounted))return v&&v(),De(e,c,3,[E])}:f=He,t&&r){const $=f;f=()=>Et($())}let v,E=$=>{v=L.onStop=()=>{ot($,c,4)}};if(Jt)return E=He,t?n&&De(t,c,3,[f(),d?[]:void 0,E]):f(),He;let M=d?[]:Ir;const R=()=>{if(!!L.active)if(t){const $=L.run();(r||a||(d?$.some((G,J)=>Kt(G,M[J])):Kt($,M)))&&(v&&v(),De(t,c,3,[$,M===Ir?void 0:M,E]),M=$)}else L.run()};R.allowRecurse=!!t;let W;s==="sync"?W=R:s==="post"?W=()=>Te(R,c&&c.suspense):W=()=>Jo(R);const L=new rr(f,W);return t?n?R():M=L.run():s==="post"?Te(L.run.bind(L),c&&c.suspense):L.run(),()=>{L.stop(),c&&c.scope&&Gn(c.scope.effects,L)}}function si(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?Ts(r,e):()=>r[e]:e.bind(r,r);let o;H(t)?o=t:(o=t.handler,n=t);const i=oe;Pt(this);const c=dr(s,o.bind(r),n);return i?Pt(i):_t(),c}function Ts(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Et(e,t){if(!se(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Et(e.value,t);else if(j(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(Qr(e)||Tt(e))e.forEach(n=>{Et(n,t)});else if(ts(e))for(const n in e)Et(e[n],t);return e}function oi(e){return H(e)?{setup:e,name:e.name}:e}const Dt=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive;function ii(e,t){As(e,"a",t)}function li(e,t){As(e,"da",t)}function As(e,t,n=oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&ci(r,t,n,s),s=s.parent}}function ci(e,t,n,r){const s=wn(t,e,r,!0);Ps(()=>{Gn(r[t],s)},n)}function wn(e,t,n=oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),Pt(n);const c=De(t,n,e,i);return _t(),It(),c});return r?s.unshift(o):s.push(o),o}}const Ve=e=>(t,n=oe)=>(!Jt||e==="sp")&&wn(e,t,n),fi=Ve("bm"),ui=Ve("m"),ai=Ve("bu"),hi=Ve("u"),di=Ve("bum"),Ps=Ve("um"),pi=Ve("sp"),gi=Ve("rtg"),mi=Ve("rtc");function _i(e,t=oe){wn("ec",e,t)}function ht(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const c=s[i];o&&(c.oldValue=o[i].value);let f=c.dir[r];f&&(Mt(),De(f,n,8,[e.el,c,e,t]),It())}}const Ms="components";function Ml(e,t){return vi(Ms,e,!0,t)||e}const bi=Symbol();function vi(e,t,n=!0,r=!1){const s=be||oe;if(s){const o=s.type;if(e===Ms){const c=Zi(o,!1);if(c&&(c===t||c===Fe(t)||c===mn(Fe(t))))return o}const i=Nr(s[e]||o[e],t)||Nr(s.appContext[e],t);return!i&&r?o:i}}function Nr(e,t){return e&&(e[t]||e[Fe(t)]||e[mn(Fe(t))])}function Il(e,t,n,r){let s;const o=n&&n[r];if(j(e)||ie(e)){s=new Array(e.length);for(let i=0,c=e.length;i<c;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(se(e))if(e[Symbol.iterator])s=Array.from(e,(i,c)=>t(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);s=new Array(i.length);for(let c=0,f=i.length;c<f;c++){const a=i[c];s[c]=t(e[a],a,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function Nl(e,t,n={},r,s){if(be.isCE||be.parent&&Dt(be.parent)&&be.parent.isCE)return de("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Ds();const i=o&&Is(o(n)),c=Bs(Le,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Is(e){return e.some(t=>hn(t)?!(t.type===lt||t.type===Le&&!Is(t.children)):!0)?e:null}const Bn=e=>e?ks(e)?br(e)||e.proxy:Bn(e.parent):null,un=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>bs(e.update)),$nextTick:e=>e.n||(e.n=_s.bind(e.proxy)),$watch:e=>si.bind(e)}),yi={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:c,appContext:f}=e;let a;if(t[0]!=="$"){const M=i[t];if(M!==void 0)switch(M){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==Z&&K(r,t))return i[t]=1,r[t];if(s!==Z&&K(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&K(a,t))return i[t]=3,o[t];if(n!==Z&&K(n,t))return i[t]=4,n[t];Kn&&(i[t]=0)}}const d=un[t];let v,E;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(n!==Z&&K(n,t))return i[t]=4,n[t];if(E=f.config.globalProperties,K(E,t))return E[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==Z&&K(s,t)?(s[t]=n,!0):r!==Z&&K(r,t)?(r[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let c;return!!n[i]||e!==Z&&K(e,i)||t!==Z&&K(t,i)||(c=o[0])&&K(c,i)||K(r,i)||K(un,i)||K(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Kn=!0;function wi(e){const t=Fs(e),n=e.proxy,r=e.ctx;Kn=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:c,provide:f,inject:a,created:d,beforeMount:v,mounted:E,beforeUpdate:M,updated:R,activated:W,deactivated:L,beforeDestroy:$,beforeUnmount:G,destroyed:J,unmounted:X,render:ve,renderTracked:pe,renderTriggered:ye,errorCaptured:we,serverPrefetch:fe,expose:Re,inheritAttrs:xe,components:Xe,directives:ct,filters:Yt}=t;if(a&&xi(a,r,null,e.appContext.config.unwrapInjectedRef),i)for(const Q in i){const q=i[Q];H(q)&&(r[Q]=q.bind(n))}if(s){const Q=s.call(n,n);se(Q)&&(e.data=lr(Q))}if(Kn=!0,o)for(const Q in o){const q=o[Q],ge=H(q)?q.bind(n,n):H(q.get)?q.get.bind(n,n):He,bt=!H(q)&&H(q.set)?q.set.bind(n):He,qe=Gi({get:ge,set:bt});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ze=>qe.value=ze})}if(c)for(const Q in c)Ns(c[Q],r,n,Q);if(f){const Q=H(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(q=>{ri(q,Q[q])})}d&&Fr(d,e,"c");function ue(Q,q){j(q)?q.forEach(ge=>Q(ge.bind(n))):q&&Q(q.bind(n))}if(ue(fi,v),ue(ui,E),ue(ai,M),ue(hi,R),ue(ii,W),ue(li,L),ue(_i,we),ue(mi,pe),ue(gi,ye),ue(di,G),ue(Ps,X),ue(pi,fe),j(Re))if(Re.length){const Q=e.exposed||(e.exposed={});Re.forEach(q=>{Object.defineProperty(Q,q,{get:()=>n[q],set:ge=>n[q]=ge})})}else e.exposed||(e.exposed={});ve&&e.render===He&&(e.render=ve),xe!=null&&(e.inheritAttrs=xe),Xe&&(e.components=Xe),ct&&(e.directives=ct)}function xi(e,t,n=He,r=!1){j(e)&&(e=Wn(e));for(const s in e){const o=e[s];let i;se(o)?"default"in o?i=Mn(o.from||s,o.default,!0):i=Mn(o.from||s):i=Mn(o),he(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[s]=i}}function Fr(e,t,n){De(j(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ns(e,t,n,r){const s=r.includes(".")?Ts(n,r):()=>n[r];if(ie(e)){const o=t[e];H(o)&&In(s,o)}else if(H(e))In(s,e.bind(n));else if(se(e))if(j(e))e.forEach(o=>Ns(o,t,n,r));else{const o=H(e.handler)?e.handler.bind(n):t[e.handler];H(o)&&In(s,o,e)}}function Fs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let f;return c?f=c:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(a=>an(f,a,i,!0)),an(f,t,i)),o.set(t,f),f}function an(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&an(e,o,n,!0),s&&s.forEach(i=>an(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Ei[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ei={data:Rr,props:pt,emits:pt,methods:pt,computed:pt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:pt,directives:pt,watch:Ti,provide:Rr,inject:Ci};function Rr(e,t){return t?e?function(){return ce(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ci(e,t){return pt(Wn(e),Wn(t))}function Wn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?ce(ce(Object.create(null),e),t):t}function Ti(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const r in t)n[r]=_e(e[r],t[r]);return n}function Oi(e,t,n,r=!1){const s={},o={};ln(o,xn,1),e.propsDefaults=Object.create(null),Rs(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:$o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Ai(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,c=V(s),[f]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let E=d[v];if(yn(e.emitsOptions,E))continue;const M=t[E];if(f)if(K(o,E))M!==o[E]&&(o[E]=M,a=!0);else{const R=Fe(E);s[R]=kn(f,c,R,M,e,!1)}else M!==o[E]&&(o[E]=M,a=!0)}}}else{Rs(e,t,s,o)&&(a=!0);let d;for(const v in c)(!t||!K(t,v)&&((d=ke(v))===v||!K(t,d)))&&(f?n&&(n[v]!==void 0||n[d]!==void 0)&&(s[v]=kn(f,c,v,void 0,e,!0)):delete s[v]);if(o!==c)for(const v in o)(!t||!K(t,v)&&!0)&&(delete o[v],a=!0)}a&&Ye(e,"set","$attrs")}function Rs(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,c;if(t)for(let f in t){if(sn(f))continue;const a=t[f];let d;s&&K(s,d=Fe(f))?!o||!o.includes(d)?n[d]=a:(c||(c={}))[d]=a:yn(e.emitsOptions,f)||(!(f in r)||a!==r[f])&&(r[f]=a,i=!0)}if(o){const f=V(n),a=c||Z;for(let d=0;d<o.length;d++){const v=o[d];n[v]=kn(s,f,v,a[v],e,!K(a,v))}}return i}function kn(e,t,n,r,s,o){const i=e[n];if(i!=null){const c=K(i,"default");if(c&&r===void 0){const f=i.default;if(i.type!==Function&&H(f)){const{propsDefaults:a}=s;n in a?r=a[n]:(Pt(s),r=a[n]=f.call(null,t),_t())}else r=f}i[0]&&(o&&!c?r=!1:i[1]&&(r===""||r===ke(n))&&(r=!0))}return r}function js(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},c=[];let f=!1;if(!H(e)){const d=v=>{f=!0;const[E,M]=js(v,t,!0);ce(i,E),M&&c.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return r.set(e,Ct),Ct;if(j(o))for(let d=0;d<o.length;d++){const v=Fe(o[d]);jr(v)&&(i[v]=Z)}else if(o)for(const d in o){const v=Fe(d);if(jr(v)){const E=o[d],M=i[v]=j(E)||H(E)?{type:E}:E;if(M){const R=Sr(Boolean,M.type),W=Sr(String,M.type);M[0]=R>-1,M[1]=W<0||R<W,(R>-1||K(M,"default"))&&c.push(v)}}}const a=[i,c];return r.set(e,a),a}function jr(e){return e[0]!=="$"}function Lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function $r(e,t){return Lr(e)===Lr(t)}function Sr(e,t){return j(t)?t.findIndex(n=>$r(n,e)):H(t)&&$r(t,e)?0:-1}const Ls=e=>e[0]==="_"||e==="$stable",pr=e=>j(e)?e.map(We):[We(e)],Pi=(e,t,n)=>{if(t._n)return t;const r=Xo((...s)=>pr(t(...s)),n);return r._c=!1,r},$s=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ls(s))continue;const o=e[s];if(H(o))t[s]=Pi(s,o,r);else if(o!=null){const i=pr(o);t[s]=()=>i}}},Ss=(e,t)=>{const n=pr(t);e.slots.default=()=>n},Mi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),ln(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);ln(e.slots,xn,1)},Ii=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Z;if(r.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(ce(s,t),!n&&c===1&&delete s._):(o=!t.$stable,$s(t,s)),i=t}else t&&(Ss(e,t),i={default:1});if(o)for(const c in s)!Ls(c)&&!(c in i)&&delete s[c]};function Hs(){return{app:null,config:{isNativeTag:to,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 Ni=0;function Fi(e,t){return function(r,s=null){H(r)||(r=Object.assign({},r)),s!=null&&!se(s)&&(s=null);const o=Hs(),i=new Set;let c=!1;const f=o.app={_uid:Ni++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:el,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&H(a.install)?(i.add(a),a.install(f,...d)):H(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,v){if(!c){const E=de(r,s);return E.appContext=o,d&&t?t(E,a):e(E,a,v),c=!0,f._container=a,a.__vue_app__=f,br(E.component)||E.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f}};return f}}function qn(e,t,n,r,s=!1){if(j(e)){e.forEach((E,M)=>qn(E,t&&(j(t)?t[M]:t),n,r,s));return}if(Dt(r)&&!s)return;const o=r.shapeFlag&4?br(r.component)||r.component.proxy:r.el,i=s?null:o,{i:c,r:f}=e,a=t&&t.r,d=c.refs===Z?c.refs={}:c.refs,v=c.setupState;if(a!=null&&a!==f&&(ie(a)?(d[a]=null,K(v,a)&&(v[a]=null)):he(a)&&(a.value=null)),H(f))ot(f,c,12,[i,d]);else{const E=ie(f),M=he(f);if(E||M){const R=()=>{if(e.f){const W=E?d[f]:f.value;s?j(W)&&Gn(W,o):j(W)?W.includes(o)||W.push(o):E?(d[f]=[o],K(v,f)&&(v[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else E?(d[f]=i,K(v,f)&&(v[f]=i)):M&&(f.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,Te(R,n)):R()}}}const Te=ni;function Ri(e){return ji(e)}function ji(e,t){const n=lo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:c,createComment:f,setText:a,setElementText:d,parentNode:v,nextSibling:E,setScopeId:M=He,cloneNode:R,insertStaticContent:W}=e,L=(l,u,h,g=null,m=null,y=null,C=!1,b=null,w=!!u.dynamicChildren)=>{if(l===u)return;l&&!jt(l,u)&&(g=vt(l),Me(l,m,y,!0),l=null),u.patchFlag===-2&&(w=!1,u.dynamicChildren=null);const{type:_,ref:A,shapeFlag:T}=u;switch(_){case mr:$(l,u,h,g);break;case lt:G(l,u,h,g);break;case Nn:l==null&&J(u,h,g,C);break;case Le:ct(l,u,h,g,m,y,C,b,w);break;default:T&1?pe(l,u,h,g,m,y,C,b,w):T&6?Yt(l,u,h,g,m,y,C,b,w):(T&64||T&128)&&_.process(l,u,h,g,m,y,C,b,w,Ze)}A!=null&&m&&qn(A,l&&l.ref,y,u||l,!u)},$=(l,u,h,g)=>{if(l==null)r(u.el=c(u.children),h,g);else{const m=u.el=l.el;u.children!==l.children&&a(m,u.children)}},G=(l,u,h,g)=>{l==null?r(u.el=f(u.children||""),h,g):u.el=l.el},J=(l,u,h,g)=>{[l.el,l.anchor]=W(l.children,u,h,g,l.el,l.anchor)},X=({el:l,anchor:u},h,g)=>{let m;for(;l&&l!==u;)m=E(l),r(l,h,g),l=m;r(u,h,g)},ve=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=E(l),s(l),l=h;s(u)},pe=(l,u,h,g,m,y,C,b,w)=>{C=C||u.type==="svg",l==null?ye(u,h,g,m,y,C,b,w):Re(l,u,m,y,C,b,w)},ye=(l,u,h,g,m,y,C,b)=>{let w,_;const{type:A,props:T,shapeFlag:P,transition:N,patchFlag:U,dirs:z}=l;if(l.el&&R!==void 0&&U===-1)w=l.el=R(l.el);else{if(w=l.el=i(l.type,y,T&&T.is,T),P&8?d(w,l.children):P&16&&fe(l.children,w,null,g,m,y&&A!=="foreignObject",C,b),z&&ht(l,null,g,"created"),T){for(const Y in T)Y!=="value"&&!sn(Y)&&o(w,Y,null,T[Y],y,l.children,g,m,Ie);"value"in T&&o(w,"value",null,T.value),(_=T.onVnodeBeforeMount)&&Be(_,g,l)}we(w,l,l.scopeId,C,g)}z&&ht(l,null,g,"beforeMount");const k=(!m||m&&!m.pendingBranch)&&N&&!N.persisted;k&&N.beforeEnter(w),r(w,u,h),((_=T&&T.onVnodeMounted)||k||z)&&Te(()=>{_&&Be(_,g,l),k&&N.enter(w),z&&ht(l,null,g,"mounted")},m)},we=(l,u,h,g,m)=>{if(h&&M(l,h),g)for(let y=0;y<g.length;y++)M(l,g[y]);if(m){let y=m.subTree;if(u===y){const C=m.vnode;we(l,C,C.scopeId,C.slotScopeIds,m.parent)}}},fe=(l,u,h,g,m,y,C,b,w=0)=>{for(let _=w;_<l.length;_++){const A=l[_]=b?rt(l[_]):We(l[_]);L(null,A,u,h,g,m,y,C,b)}},Re=(l,u,h,g,m,y,C)=>{const b=u.el=l.el;let{patchFlag:w,dynamicChildren:_,dirs:A}=u;w|=l.patchFlag&16;const T=l.props||Z,P=u.props||Z;let N;h&&dt(h,!1),(N=P.onVnodeBeforeUpdate)&&Be(N,h,u,l),A&&ht(u,l,h,"beforeUpdate"),h&&dt(h,!0);const U=m&&u.type!=="foreignObject";if(_?xe(l.dynamicChildren,_,b,h,g,U,y):C||ge(l,u,b,null,h,g,U,y,!1),w>0){if(w&16)Xe(b,u,T,P,h,g,m);else if(w&2&&T.class!==P.class&&o(b,"class",null,P.class,m),w&4&&o(b,"style",T.style,P.style,m),w&8){const z=u.dynamicProps;for(let k=0;k<z.length;k++){const Y=z[k],Ee=T[Y],je=P[Y];(je!==Ee||Y==="value")&&o(b,Y,Ee,je,m,l.children,h,g,Ie)}}w&1&&l.children!==u.children&&d(b,u.children)}else!C&&_==null&&Xe(b,u,T,P,h,g,m);((N=P.onVnodeUpdated)||A)&&Te(()=>{N&&Be(N,h,u,l),A&&ht(u,l,h,"updated")},g)},xe=(l,u,h,g,m,y,C)=>{for(let b=0;b<u.length;b++){const w=l[b],_=u[b],A=w.el&&(w.type===Le||!jt(w,_)||w.shapeFlag&70)?v(w.el):h;L(w,_,A,null,g,m,y,C,!0)}},Xe=(l,u,h,g,m,y,C)=>{if(h!==g){for(const b in g){if(sn(b))continue;const w=g[b],_=h[b];w!==_&&b!=="value"&&o(l,b,_,w,C,u.children,m,y,Ie)}if(h!==Z)for(const b in h)!sn(b)&&!(b in g)&&o(l,b,h[b],null,C,u.children,m,y,Ie);"value"in g&&o(l,"value",h.value,g.value)}},ct=(l,u,h,g,m,y,C,b,w)=>{const _=u.el=l?l.el:c(""),A=u.anchor=l?l.anchor:c("");let{patchFlag:T,dynamicChildren:P,slotScopeIds:N}=u;N&&(b=b?b.concat(N):N),l==null?(r(_,h,g),r(A,h,g),fe(u.children,h,A,m,y,C,b,w)):T>0&&T&64&&P&&l.dynamicChildren?(xe(l.dynamicChildren,P,h,m,y,C,b),(u.key!=null||m&&u===m.subTree)&&gr(l,u,!0)):ge(l,u,h,A,m,y,C,b,w)},Yt=(l,u,h,g,m,y,C,b,w)=>{u.slotScopeIds=b,l==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,w):le(u,h,g,m,y,C,w):ue(l,u,w)},le=(l,u,h,g,m,y,C)=>{const b=l.component=zi(l,g,m);if(Os(l)&&(b.ctx.renderer=Ze),Ji(b),b.asyncDep){if(m&&m.registerDep(b,Q),!l.el){const w=b.subTree=de(lt);G(null,w,u,h)}return}Q(b,l,u,h,m,y,C)},ue=(l,u,h)=>{const g=u.component=l.component;if(Go(l,u,h))if(g.asyncDep&&!g.asyncResolved){q(g,u,h);return}else g.next=u,zo(g.update),g.update();else u.el=l.el,g.vnode=u},Q=(l,u,h,g,m,y,C)=>{const b=()=>{if(l.isMounted){let{next:A,bu:T,u:P,parent:N,vnode:U}=l,z=A,k;dt(l,!1),A?(A.el=U.el,q(l,A,C)):A=U,T&&An(T),(k=A.props&&A.props.onVnodeBeforeUpdate)&&Be(k,N,A,U),dt(l,!0);const Y=Pn(l),Ee=l.subTree;l.subTree=Y,L(Ee,Y,v(Ee.el),vt(Ee),l,m,y),A.el=Y.el,z===null&&ei(l,Y.el),P&&Te(P,m),(k=A.props&&A.props.onVnodeUpdated)&&Te(()=>Be(k,N,A,U),m)}else{let A;const{el:T,props:P}=u,{bm:N,m:U,parent:z}=l,k=Dt(u);if(dt(l,!1),N&&An(N),!k&&(A=P&&P.onVnodeBeforeMount)&&Be(A,z,u),dt(l,!0),T&&at){const Y=()=>{l.subTree=Pn(l),at(T,l.subTree,l,m,null)};k?u.type.__asyncLoader().then(()=>!l.isUnmounted&&Y()):Y()}else{const Y=l.subTree=Pn(l);L(null,Y,h,g,l,m,y),u.el=Y.el}if(U&&Te(U,m),!k&&(A=P&&P.onVnodeMounted)){const Y=u;Te(()=>Be(A,z,Y),m)}(u.shapeFlag&256||z&&Dt(z.vnode)&&z.vnode.shapeFlag&256)&&l.a&&Te(l.a,m),l.isMounted=!0,u=h=g=null}},w=l.effect=new rr(b,()=>bs(_),l.scope),_=l.update=()=>w.run();_.id=l.uid,dt(l,!0),_()},q=(l,u,h)=>{u.component=l;const g=l.vnode.props;l.vnode=u,l.next=null,Ai(l,u.props,g,h),Ii(l,u.children,h),Mt(),vn(void 0,l.update),It()},ge=(l,u,h,g,m,y,C,b,w=!1)=>{const _=l&&l.children,A=l?l.shapeFlag:0,T=u.children,{patchFlag:P,shapeFlag:N}=u;if(P>0){if(P&128){qe(_,T,h,g,m,y,C,b,w);return}else if(P&256){bt(_,T,h,g,m,y,C,b,w);return}}N&8?(A&16&&Ie(_,m,y),T!==_&&d(h,T)):A&16?N&16?qe(_,T,h,g,m,y,C,b,w):Ie(_,m,y,!0):(A&8&&d(h,""),N&16&&fe(T,h,g,m,y,C,b,w))},bt=(l,u,h,g,m,y,C,b,w)=>{l=l||Ct,u=u||Ct;const _=l.length,A=u.length,T=Math.min(_,A);let P;for(P=0;P<T;P++){const N=u[P]=w?rt(u[P]):We(u[P]);L(l[P],N,h,null,m,y,C,b,w)}_>A?Ie(l,m,y,!0,!1,T):fe(u,h,g,m,y,C,b,w,T)},qe=(l,u,h,g,m,y,C,b,w)=>{let _=0;const A=u.length;let T=l.length-1,P=A-1;for(;_<=T&&_<=P;){const N=l[_],U=u[_]=w?rt(u[_]):We(u[_]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;_++}for(;_<=T&&_<=P;){const N=l[T],U=u[P]=w?rt(u[P]):We(u[P]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;T--,P--}if(_>T){if(_<=P){const N=P+1,U=N<A?u[N].el:g;for(;_<=P;)L(null,u[_]=w?rt(u[_]):We(u[_]),h,U,m,y,C,b,w),_++}}else if(_>P)for(;_<=T;)Me(l[_],m,y,!0),_++;else{const N=_,U=_,z=new Map;for(_=U;_<=P;_++){const me=u[_]=w?rt(u[_]):We(u[_]);me.key!=null&&z.set(me.key,_)}let k,Y=0;const Ee=P-U+1;let je=!1,Nt=0;const Ue=new Array(Ee);for(_=0;_<Ee;_++)Ue[_]=0;for(_=N;_<=T;_++){const me=l[_];if(Y>=Ee){Me(me,m,y,!0);continue}let Ne;if(me.key!=null)Ne=z.get(me.key);else for(k=U;k<=P;k++)if(Ue[k-U]===0&&jt(me,u[k])){Ne=k;break}Ne===void 0?Me(me,m,y,!0):(Ue[Ne-U]=_+1,Ne>=Nt?Nt=Ne:je=!0,L(me,u[Ne],h,null,m,y,C,b,w),Y++)}const Ft=je?Li(Ue):Ct;for(k=Ft.length-1,_=Ee-1;_>=0;_--){const me=U+_,Ne=u[me],Rt=me+1<A?u[me+1].el:g;Ue[_]===0?L(null,Ne,h,Rt,m,y,C,b,w):je&&(k<0||_!==Ft[k]?ze(Ne,h,Rt,2):k--)}}},ze=(l,u,h,g,m=null)=>{const{el:y,type:C,transition:b,children:w,shapeFlag:_}=l;if(_&6){ze(l.component.subTree,u,h,g);return}if(_&128){l.suspense.move(u,h,g);return}if(_&64){C.move(l,u,h,Ze);return}if(C===Le){r(y,u,h);for(let T=0;T<w.length;T++)ze(w[T],u,h,g);r(l.anchor,u,h);return}if(C===Nn){X(l,u,h);return}if(g!==2&&_&1&&b)if(g===0)b.beforeEnter(y),r(y,u,h),Te(()=>b.enter(y),m);else{const{leave:T,delayLeave:P,afterLeave:N}=b,U=()=>r(y,u,h),z=()=>{T(y,()=>{U(),N&&N()})};P?P(y,U,z):z()}else r(y,u,h)},Me=(l,u,h,g=!1,m=!1)=>{const{type:y,props:C,ref:b,children:w,dynamicChildren:_,shapeFlag:A,patchFlag:T,dirs:P}=l;if(b!=null&&qn(b,null,h,l,!0),A&256){u.ctx.deactivate(l);return}const N=A&1&&P,U=!Dt(l);let z;if(U&&(z=C&&C.onVnodeBeforeUnmount)&&Be(z,u,l),A&6)ut(l.component,h,g);else{if(A&128){l.suspense.unmount(h,g);return}N&&ht(l,null,u,"beforeUnmount"),A&64?l.type.remove(l,u,h,m,Ze,g):_&&(y!==Le||T>0&&T&64)?Ie(_,u,h,!1,!0):(y===Le&&T&384||!m&&A&16)&&Ie(w,u,h),g&&ft(l)}(U&&(z=C&&C.onVnodeUnmounted)||N)&&Te(()=>{z&&Be(z,u,l),N&&ht(l,null,u,"unmounted")},h)},ft=l=>{const{type:u,el:h,anchor:g,transition:m}=l;if(u===Le){Vt(h,g);return}if(u===Nn){ve(l);return}const y=()=>{s(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(l.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:b}=m,w=()=>C(h,y);b?b(l.el,y,w):w()}else y()},Vt=(l,u)=>{let h;for(;l!==u;)h=E(l),s(l),l=h;s(u)},ut=(l,u,h)=>{const{bum:g,scope:m,update:y,subTree:C,um:b}=l;g&&An(g),m.stop(),y&&(y.active=!1,Me(C,l,u,h)),b&&Te(b,u),Te(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(l,u,h,g=!1,m=!1,y=0)=>{for(let C=y;C<l.length;C++)Me(l[C],u,h,g,m)},vt=l=>l.shapeFlag&6?vt(l.component.subTree):l.shapeFlag&128?l.suspense.next():E(l.anchor||l.el),Xt=(l,u,h)=>{l==null?u._vnode&&Me(u._vnode,null,null,!0):L(u._vnode||null,l,u,null,null,null,h),ws(),u._vnode=l},Ze={p:L,um:Me,m:ze,r:ft,mt:le,mc:fe,pc:ge,pbc:xe,n:vt,o:e};let Qe,at;return t&&([Qe,at]=t(Ze)),{render:Xt,hydrate:Qe,createApp:Fi(Xt,Qe)}}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gr(e,t,n=!1){const r=e.children,s=t.children;if(j(r)&&j(s))for(let o=0;o<r.length;o++){const i=r[o];let c=s[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[o]=rt(s[o]),c.el=i.el),n||gr(i,c))}}function Li(e){const t=e.slice(),n=[0];let r,s,o,i,c;const f=e.length;for(r=0;r<f;r++){const a=e[r];if(a!==0){if(s=n[n.length-1],e[s]<a){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const $i=e=>e.__isTeleport,Ut=e=>e&&(e.disabled||e.disabled===""),Hr=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zn=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},Si={__isTeleport:!0,process(e,t,n,r,s,o,i,c,f,a){const{mc:d,pc:v,pbc:E,o:{insert:M,querySelector:R,createText:W,createComment:L}}=a,$=Ut(t.props);let{shapeFlag:G,children:J,dynamicChildren:X}=t;if(e==null){const ve=t.el=W(""),pe=t.anchor=W("");M(ve,n,r),M(pe,n,r);const ye=t.target=zn(t.props,R),we=t.targetAnchor=W("");ye&&(M(we,ye),i=i||Hr(ye));const fe=(Re,xe)=>{G&16&&d(J,Re,xe,s,o,i,c,f)};$?fe(n,pe):ye&&fe(ye,we)}else{t.el=e.el;const ve=t.anchor=e.anchor,pe=t.target=e.target,ye=t.targetAnchor=e.targetAnchor,we=Ut(e.props),fe=we?n:pe,Re=we?ve:ye;if(i=i||Hr(pe),X?(E(e.dynamicChildren,X,fe,s,o,i,c),gr(e,t,!0)):f||v(e,t,fe,Re,s,o,i,c,!1),$)we||rn(t,n,ve,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const xe=t.target=zn(t.props,R);xe&&rn(t,xe,null,a,0)}else we&&rn(t,pe,ye,a,1)}},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:c,children:f,anchor:a,targetAnchor:d,target:v,props:E}=e;if(v&&o(d),(i||!Ut(E))&&(o(a),c&16))for(let M=0;M<f.length;M++){const R=f[M];s(R,t,n,!0,!!R.dynamicChildren)}},move:rn,hydrate:Hi};function rn(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:f,children:a,props:d}=e,v=o===2;if(v&&r(i,t,n),(!v||Ut(d))&&f&16)for(let E=0;E<a.length;E++)s(a[E],t,n,2);v&&r(c,t,n)}function Hi(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:c,querySelector:f}},a){const d=t.target=zn(t.props,f);if(d){const v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Ut(t.props))t.anchor=a(i(e),t,c(e),n,r,s,o),t.targetAnchor=v;else{t.anchor=i(e);let E=v;for(;E;)if(E=i(E),E&&E.nodeType===8&&E.data==="teleport anchor"){t.targetAnchor=E,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(v,t,d,n,r,s,o)}}return t.anchor&&i(t.anchor)}const Fl=Si,Le=Symbol(void 0),mr=Symbol(void 0),lt=Symbol(void 0),Nn=Symbol(void 0),Bt=[];let Se=null;function Ds(e=!1){Bt.push(Se=e?null:[])}function Di(){Bt.pop(),Se=Bt[Bt.length-1]||null}let zt=1;function Dr(e){zt+=e}function Us(e){return e.dynamicChildren=zt>0?Se||Ct:null,Di(),zt>0&&Se&&Se.push(e),e}function Rl(e,t,n,r,s,o){return Us(Ws(e,t,n,r,s,o,!0))}function Bs(e,t,n,r,s){return Us(de(e,t,n,r,s,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",Ks=({key:e})=>e!=null?e:null,on=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||he(e)||H(e)?{i:be,r:e,k:t,f:!!n}:e:null;function Ws(e,t=null,n=null,r=0,s=null,o=e===Le?0:1,i=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&on(t),scopeId:Cs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return c?(_r(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ie(n)?8:16),zt>0&&!i&&Se&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Se.push(f),f}const de=Ui;function Ui(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bi)&&(e=lt),hn(e)){const c=At(e,t,!0);return n&&_r(c,n),zt>0&&!o&&Se&&(c.shapeFlag&6?Se[Se.indexOf(e)]=c:Se.push(c)),c.patchFlag|=-2,c}if(Qi(e)&&(e=e.__vccOpts),t){t=Bi(t);let{class:c,style:f}=t;c&&!ie(c)&&(t.class=Zn(c)),se(f)&&(ds(f)&&!j(f)&&(f=ce({},f)),t.style=Xn(f))}const i=ie(e)?1:ti(e)?128:$i(e)?64:se(e)?4:H(e)?2:0;return Ws(e,t,n,r,s,i,o,!0)}function Bi(e){return e?ds(e)||xn in e?ce({},e):e:null}function At(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,c=t?Wi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ks(c),ref:t&&t.ref?n&&s?j(s)?s.concat(on(t)):[s,on(t)]:on(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),el:e.el,anchor:e.anchor}}function Ki(e=" ",t=0){return de(mr,null,e,t)}function jl(e="",t=!1){return t?(Ds(),Bs(lt,null,e)):de(lt,null,e)}function We(e){return e==null||typeof e=="boolean"?de(lt):j(e)?de(Le,null,e.slice()):typeof e=="object"?rt(e):de(mr,null,String(e))}function rt(e){return e.el===null||e.memo?e:At(e)}function _r(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),_r(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xn in t)?t._ctx=be:s===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[Ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Zn([t.class,r.class]));else if(s==="style")t.style=Xn([t.style,r.style]);else if(dn(s)){const o=t[s],i=r[s];i&&o!==i&&!(j(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Be(e,t,n,r=null){De(e,t,7,[n,r])}const ki=Hs();let qi=0;function zi(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ki,o={uid:qi++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:js(r,s),emitsOptions:Es(r,s),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:r.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Vo.bind(null,o),e.ce&&e.ce(o),o}let oe=null;const Ll=()=>oe||be,Pt=e=>{oe=e,e.scope.on()},_t=()=>{oe&&oe.scope.off(),oe=null};function ks(e){return e.vnode.shapeFlag&4}let Jt=!1;function Ji(e,t=!1){Jt=t;const{props:n,children:r}=e.vnode,s=ks(e);Oi(e,n,s,t),Mi(e,r);const o=s?Yi(e,t):void 0;return Jt=!1,o}function Yi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,yi));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Xi(e):null;Pt(e),Mt();const o=ot(r,e,0,[e.props,s]);if(It(),_t(),Gr(o)){if(o.then(_t,_t),t)return o.then(i=>{Ur(e,i,t)}).catch(i=>{bn(i,e,0)});e.asyncDep=o}else Ur(e,o,t)}else qs(e,t)}function Ur(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=gs(t)),qs(e,n)}let Br;function qs(e,t,n){const r=e.type;if(!e.render){if(!t&&Br&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:f}=r,a=ce(ce({isCustomElement:o,delimiters:c},i),f);r.render=Br(s,a)}}e.render=r.render||He}Pt(e),Mt(),wi(e),It(),_t()}function Vi(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Xi(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Vi(e))},slots:e.slots,emit:e.emit,expose:t}}function br(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gs(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)}}))}function Zi(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e){return H(e)&&"__vccOpts"in e}const Gi=(e,t)=>Wo(e,t,Jt);function $l(e,t,n){const r=arguments.length;return r===2?se(t)&&!j(t)?hn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hn(n)&&(n=[n]),de(e,t,n))}const el="3.2.37";/*! (c) Andrea Giammarchi - ISC */const tl=(()=>{const e="DOMContentLoaded",t=new WeakMap,n=[],r=i=>{do if(i.nextSibling)return!0;while(i=i.parentNode);return!1},s=()=>{n.splice(0).forEach(i=>{t.get(i[0])!==!0&&(t.set(i[0],!0),i[0][i[1]]())})};document.addEventListener(e,s);class o extends HTMLElement{static withParsedCallback(c,f="parsed"){const{prototype:a}=c,{connectedCallback:d}=a,v=f+"Callback",E=(R,W,L,$)=>{W.disconnect(),L.removeEventListener(e,$),M(R)},M=R=>{n.length||requestAnimationFrame(s),n.push([R,v])};return Object.defineProperties(a,{connectedCallback:{configurable:!0,writable:!0,value(){if(d&&d.apply(this,arguments),v in this&&!t.has(this)){const R=this,{ownerDocument:W}=R;if(t.set(R,!1),W.readyState==="complete"||r(R))M(R);else{const L=()=>E(R,$,W,L);W.addEventListener(e,L);const $=new MutationObserver(()=>{r(R)&&E(R,$,W,L)});$.observe(R.parentNode,{childList:!0,subtree:!0})}}}},[f]:{configurable:!0,get(){return t.get(this)===!0}}}),c}}return o.withParsedCallback(o)})(),nl="http://www.w3.org/2000/svg",gt=typeof document!="undefined"?document:null,Kr=gt&&gt.createElement("template"),rl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?gt.createElementNS(nl,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Kr.innerHTML=r?`<svg>${e}</svg>`:e;const c=Kr.content;if(r){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ol(e,t,n){const r=e.style,s=ie(n);if(n&&!s){for(const o in n)Jn(r,o,n[o]);if(t&&!ie(t))for(const o in t)n[o]==null&&Jn(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Wr=/\s*!important$/;function Jn(e,t,n){if(j(n))n.forEach(r=>Jn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=il(e,t);Wr.test(n)?e.setProperty(ke(r),n.replace(Wr,""),"important"):e[r]=n}}const kr=["Webkit","Moz","ms"],Fn={};function il(e,t){const n=Fn[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Fn[t]=r;r=mn(r);for(let s=0;s<kr.length;s++){const o=kr[s]+r;if(o in e)return Fn[t]=o}return t}const qr="http://www.w3.org/1999/xlink";function ll(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n);else{const o=Zs(t);n==null||o&&!Xr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function cl(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Xr(n):n==null&&f==="string"?(n="",c=!0):f==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[zs,fl]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Yn=0;const ul=Promise.resolve(),al=()=>{Yn=0},hl=()=>Yn||(ul.then(al),Yn=zs());function dl(e,t,n,r){e.addEventListener(t,n,r)}function pl(e,t,n,r){e.removeEventListener(t,n,r)}function gl(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[c,f]=ml(t);if(r){const a=o[t]=_l(r,s);dl(e,c,a,f)}else i&&(pl(e,c,i,f),o[t]=void 0)}}const zr=/(?:Once|Passive|Capture)$/;function ml(e){let t;if(zr.test(e)){t={};let n;for(;n=e.match(zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ke(e.slice(2)),t]}function _l(e,t){const n=r=>{const s=r.timeStamp||zs();(fl||s>=n.attached-1)&&De(bl(r,n.value),t,5,[r])};return n.value=e,n.attached=hl(),n}function bl(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Jr=/^on[a-z]/,vl=(e,t,n,r,s=!1,o,i,c,f)=>{t==="class"?sl(e,r,s):t==="style"?ol(e,n,r):dn(t)?Qn(t)||gl(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,r,s))?cl(e,t,r,o,i,c,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ll(e,t,r,s))};function yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Jr.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jr.test(t)&&ie(n)?!1:t in e}const wl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Sl=(e,t)=>n=>{if(!("key"in n))return;const r=ke(n.key);if(t.some(s=>s===r||wl[s]===r))return e(n)},xl=ce({patchProp:vl},rl);let Yr;function El(){return Yr||(Yr=Ri(xl))}const Vr=(...e)=>{El().render(...e)},Cl=typeof HTMLElement!="undefined"?tl:class{};class vr extends Cl{constructor(t,n={},r={},s){super(),this._def=t,this._props=n,this._config=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._config=ce({shadowRoot:!0},this._config),this._config.shadowRoot?this.shadowRoot&&s?s(this._createVNode(),this._root):this.attachShadow({mode:"open"}):s&&s(this._createVNode(),this._root)}get _root(){return this._config.shadowRoot?this.shadowRoot:this}connectedCallback(){this._config.shadowRoot?this._connect():super.connectedCallback()}parsedCallback(){this._config.shadowRoot||this._connect()}_connect(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,_s(()=>{this._connected||(Vr(null,this._root),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:s,styles:o}=r,i=!j(s),c=s?i?Object.keys(s):s:[];let f;if(i&&s)for(const a in this._props){const d=s[a];(d===Number||d&&d.type===Number)&&(this._props[a]=Rn(this._props[a]),(f||(f=Object.create(null)))[a]=!0)}this._numberProps=f;for(const a of Object.keys(this))a[0]!=="_"&&this._setProp(a,this[a],!0,!1);for(const a of c.map(Fe))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(d){this._setProp(a,d)}});this._config.shadowRoot||(this._slots=Array.from(this.children).map(a=>a.cloneNode(!0)),this.replaceChildren()),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Rn(n)),this._setProp(Fe(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ke(t),`${n}`):n||this.removeAttribute(ke(t))))}_update(){Vr(this._createVNode(),this._root)}_createVNode(){let t=null;this._config.shadowRoot||(t=()=>{const r=s=>{const o={};for(let i=0,c=s.length;i<c;i++){const f=s[i];o[f.nodeName]=f.nodeValue}return o};return this._slots.map(s=>{const o=s.attributes?r(s.attributes):{};return o.innerHTML=s.innerHTML,de(s.tagName,o,null)})});const n=de(this._def,ce({},this._props),t);return this._instance||(n.ce=r=>{this._instance=r,this._config.shadowRoot&&(r.isCE=!0),r.emit=(o,...i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof vr){r.parent=s._instance;break}}),n}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this._root.appendChild(r)})}}function Hl(e,t,n){const r=oi(e);class s extends vr{constructor(i){super(r,i,t,n)}}return s.def=r,s}var Dl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};export{Le as F,Fl as T,Dl as _,Ws as a,jl as b,Rl as c,Ml as d,Bs as e,de as f,Xo as g,Il as h,Hl as i,oi as j,Ol as k,ui as l,di as m,Zn as n,Ds as o,$l as p,lr as q,Nl as r,Al as s,Tl as t,ps as u,Ll as v,Sl as w,Pl as x,_s as y,Do as z};
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,D=!1,ee;return{s:function(){x=x.call(O)},n:function(){var ne=x.next();return S=ne.done,ne},e:function(ne){D=!0,ee=ne},f:function(){try{!S&&x.return!=null&&x.return()}finally{if(D)throw ee}}}}/*! (c) Andrea Giammarchi - ISC */var s=!0,o=!1,i="querySelectorAll",c=function(p){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:MutationObserver,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:["*"],S=function ne(Ge,et,Ce,B,te,re){var Oe=r(Ge),yt;try{for(Oe.s();!(yt=Oe.n()).done;){var ae=yt.value;(re||i in ae)&&(te?Ce.has(ae)||(Ce.add(ae),B.delete(ae),p(ae,te)):B.has(ae)||(B.add(ae),Ce.delete(ae),p(ae,te)),re||ne(ae[i](et),et,Ce,B,te,s))}}catch(Tn){Oe.e(Tn)}finally{Oe.f()}},D=new F(function(ne){if(I.length){var Ge=I.join(","),et=new Set,Ce=new Set,B=r(ne),te;try{for(B.s();!(te=B.n()).done;){var re=te.value,Oe=re.addedNodes,yt=re.removedNodes;S(yt,Ge,et,Ce,o,o),S(Oe,Ge,et,Ce,s,o)}}catch(ae){B.e(ae)}finally{B.f()}}}),ee=D.observe;return(D.observe=function(ne){return ee.call(D,ne,{subtree:s,childList:s})})(x),D},f="querySelectorAll",a=self,d=a.document,v=a.Element,E=a.MutationObserver,M=a.Set,R=a.WeakMap,W=function(p){return f in p},L=[].filter,$=function(O){var p=new R,x=function(B){for(var te=0,re=B.length;te<re;te++)p.delete(B[te])},F=function(){for(var B=Ge.takeRecords(),te=0,re=B.length;te<re;te++)D(L.call(B[te].removedNodes,W),!1),D(L.call(B[te].addedNodes,W),!0)},I=function(B){return B.matches||B.webkitMatchesSelector||B.msMatchesSelector},S=function(B,te){var re;if(te)for(var Oe,yt=I(B),ae=0,Tn=ee.length;ae<Tn;ae++)yt.call(B,Oe=ee[ae])&&(p.has(B)||p.set(B,new M),re=p.get(B),re.has(Oe)||(re.add(Oe),O.handle(B,te,Oe)));else p.has(B)&&(re=p.get(B),p.delete(B),re.forEach(function(Vs){O.handle(B,te,Vs)}))},D=function(B){for(var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,re=0,Oe=B.length;re<Oe;re++)S(B[re],te)},ee=O.query,ne=O.root||d,Ge=c(S,ne,E,ee),et=v.prototype.attachShadow;return et&&(v.prototype.attachShadow=function(Ce){var B=et.call(this,Ce);return Ge.observe(B),B}),ee.length&&D(ne[f](ee)),{drop:x,flush:F,observer:Ge,parse:D}},G=self,J=G.document,X=G.Map,ve=G.MutationObserver,pe=G.Object,ye=G.Set,we=G.WeakMap,fe=G.Element,Re=G.HTMLElement,xe=G.Node,Xe=G.Error,ct=G.TypeError,Yt=G.Reflect,le=pe.defineProperty,ue=pe.keys,Q=pe.getOwnPropertyNames,q=pe.setPrototypeOf,ge=!self.customElements,bt=function(p){for(var x=ue(p),F=[],I=x.length,S=0;S<I;S++)F[S]=p[x[S]],delete p[x[S]];return function(){for(var D=0;D<I;D++)p[x[D]]=F[D]}};if(ge){var qe=function(){var p=this.constructor;if(!Me.has(p))throw new ct("Illegal constructor");var x=Me.get(p);if(Qe)return l(Qe,x);var F=ze.call(J,x);return l(q(F,p.prototype),x)},ze=J.createElement,Me=new X,ft=new X,Vt=new X,ut=new X,Ie=[],vt=function(p,x,F){var I=Vt.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Qe=q(p,I);try{new I.constructor}finally{Qe=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Xt=$({query:Ie,handle:vt}),Ze=Xt.parse,Qe=null,at=function(p){if(!ft.has(p)){var x,F=new Promise(function(I){x=I});ft.set(p,{$:F,_:x})}return ft.get(p).$},l=e(at,ve);le(self,"customElements",{configurable:!0,value:{define:function(p,x){if(ut.has(p))throw new Xe('the name "'.concat(p,'" has already been used with this registry'));Me.set(x,p),Vt.set(p,x.prototype),ut.set(p,x),Ie.push(p),at(p).then(function(){Ze(J.querySelectorAll(p))}),ft.get(p)._(x)},get:function(p){return ut.get(p)},whenDefined:at}}),le(qe.prototype=Re.prototype,"constructor",{value:qe}),le(self,"HTMLElement",{configurable:!0,value:qe}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is,I=F?ut.get(F):ut.get(p);return I?new I:ze.call(J,p)}}),"isConnected"in xe.prototype||le(xe.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else try{var u=function O(){return self.Reflect.construct(HTMLLIElement,[],O)};u.prototype=HTMLLIElement.prototype;var h="extends-li";self.customElements.define("extends-li",u,{extends:"li"}),ge=J.createElement("li",{is:h}).outerHTML.indexOf(h)<0;var g=self.customElements,m=g.get,y=g.whenDefined;le(self.customElements,"whenDefined",{configurable:!0,value:function(p){var x=this;return y.call(this,p).then(function(F){return F||m.call(x,p)})}})}catch{ge=!ge}if(ge){var C=function(p){var x=U.get(p);Rt(x.querySelectorAll(this),p.isConnected)},b=self.customElements,w=J.createElement,_=b.define,A=b.get,T=b.upgrade,P=Yt||{construct:function(p){return p.call(this)}},N=P.construct,U=new we,z=new ye,k=new X,Y=new X,Ee=new X,je=new X,Nt=[],Ue=[],Ft=function(p){return je.get(p)||A.call(b,p)},me=function(p,x,F){var I=Ee.get(F);if(x&&!I.isPrototypeOf(p)){var S=bt(p);Zt=q(p,I);try{new I.constructor}finally{Zt=null,S()}}var D="".concat(x?"":"dis","connectedCallback");D in I&&p[D]()},Ne=$({query:Ue,handle:me}),Rt=Ne.parse,Js=$({query:Nt,handle:function(p,x){U.has(p)&&(x?z.add(p):z.delete(p),Ue.length&&C.call(Ue,p))}}),Ys=Js.parse,yr=fe.prototype.attachShadow;yr&&(fe.prototype.attachShadow=function(O){var p=yr.call(this,O);return U.set(this,p),p});var En=function(p){if(!Y.has(p)){var x,F=new Promise(function(I){x=I});Y.set(p,{$:F,_:x})}return Y.get(p).$},Cn=e(En,ve),Zt=null;Q(self).filter(function(O){return/^HTML.*Element$/.test(O)}).forEach(function(O){var p=self[O];function x(){var F=this.constructor;if(!k.has(F))throw new ct("Illegal constructor");var I=k.get(F),S=I.is,D=I.tag;if(S){if(Zt)return Cn(Zt,S);var ee=w.call(J,D);return ee.setAttribute("is",S),Cn(q(ee,F.prototype),S)}else return N.call(this,p,[],F)}le(x.prototype=p.prototype,"constructor",{value:x}),le(self,O,{value:x})}),le(J,"createElement",{configurable:!0,value:function(p,x){var F=x&&x.is;if(F){var I=je.get(F);if(I&&k.get(I).tag===p)return new I}var S=w.call(J,p);return F&&S.setAttribute("is",F),S}}),le(b,"get",{configurable:!0,value:Ft}),le(b,"whenDefined",{configurable:!0,value:En}),le(b,"upgrade",{configurable:!0,value:function(p){var x=p.getAttribute("is");if(x){var F=je.get(x);if(F){Cn(q(p,F.prototype),x);return}}T.call(b,p)}}),le(b,"define",{configurable:!0,value:function(p,x,F){if(Ft(p))throw new Xe("'".concat(p,"' has already been defined as a custom element"));var I,S=F&&F.extends;k.set(x,S?{is:p,tag:S}:{is:"",tag:p}),S?(I="".concat(S,'[is="').concat(p,'"]'),Ee.set(I,x.prototype),je.set(p,x),Ue.push(I)):(_.apply(b,arguments),Nt.push(I=p)),En(p).then(function(){S?(Rt(J.querySelectorAll(I)),z.forEach(C,[I])):Ys(J.querySelectorAll(I))}),Y.get(p)._(x)}})}})();function Vn(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Xs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zs=Vn(Xs);function Xr(e){return!!e||e===""}function Xn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ie(r)?eo(r):Xn(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(ie(e))return e;if(se(e))return e}}const Qs=/;(?![^(]*\))/g,Gs=/:(.+)/;function eo(e){const t={};return e.split(Qs).forEach(n=>{if(n){const r=n.split(Gs);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Zn(e){let t="";if(ie(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const r=Zn(e[n]);r&&(t+=r+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Tl=e=>ie(e)?e:e==null?"":j(e)||se(e)&&(e.toString===es||!H(e.toString))?JSON.stringify(e,Zr,2):String(e),Zr=(e,t)=>t&&t.__v_isRef?Zr(e,t.value):Tt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Qr(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!j(t)&&!ts(t)?String(t):t,Z={},Ct=[],He=()=>{},to=()=>!1,no=/^on[^a-z]/,dn=e=>no.test(e),Qn=e=>e.startsWith("onUpdate:"),ce=Object.assign,Gn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ro=Object.prototype.hasOwnProperty,K=(e,t)=>ro.call(e,t),j=Array.isArray,Tt=e=>pn(e)==="[object Map]",Qr=e=>pn(e)==="[object Set]",H=e=>typeof e=="function",ie=e=>typeof e=="string",er=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Gr=e=>se(e)&&H(e.then)&&H(e.catch),es=Object.prototype.toString,pn=e=>es.call(e),so=e=>pn(e).slice(8,-1),ts=e=>pn(e)==="[object Object]",tr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Vn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oo=/-(\w)/g,Fe=gn(e=>e.replace(oo,(t,n)=>n?n.toUpperCase():"")),io=/\B([A-Z])/g,ke=gn(e=>e.replace(io,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),On=gn(e=>e?`on${mn(e)}`:""),Kt=(e,t)=>!Object.is(e,t),An=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ln=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wr;const lo=()=>wr||(wr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ke;class co{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ke&&(this.parent=Ke,this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ke;try{return Ke=this,t()}finally{Ke=n}}}on(){Ke=this}off(){Ke=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function fo(e,t=Ke){t&&t.active&&t.effects.push(e)}const nr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ns=e=>(e.w&it)>0,rs=e=>(e.n&it)>0,uo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},ao=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];ns(s)&&!rs(s)?s.delete(e):t[n++]=s,s.w&=~it,s.n&=~it}t.length=n}},jn=new WeakMap;let Lt=0,it=1;const Ln=30;let $e;const mt=Symbol(""),$n=Symbol("");class rr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,fo(this,r)}run(){if(!this.active)return this.fn();let t=$e,n=st;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=$e,$e=this,st=!0,it=1<<++Lt,Lt<=Ln?uo(this):xr(this),this.fn()}finally{Lt<=Ln&&ao(this),it=1<<--Lt,$e=this.parent,st=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(xr(this),this.onStop&&this.onStop(),this.active=!1)}}function xr(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let st=!0;const ss=[];function Mt(){ss.push(st),st=!1}function It(){const e=ss.pop();st=e===void 0?!0:e}function Pe(e,t,n){if(st&&$e){let r=jn.get(e);r||jn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=nr()),os(s)}}function os(e,t){let n=!1;Lt<=Ln?rs(e)||(e.n|=it,n=!ns(e)):n=!e.has($e),n&&(e.add($e),$e.deps.push(e))}function Ye(e,t,n,r,s,o){const i=jn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&j(e))i.forEach((f,a)=>{(a==="length"||a>=r)&&c.push(f)});else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?tr(n)&&c.push(i.get("length")):(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"delete":j(e)||(c.push(i.get(mt)),Tt(e)&&c.push(i.get($n)));break;case"set":Tt(e)&&c.push(i.get(mt));break}if(c.length===1)c[0]&&Sn(c[0]);else{const f=[];for(const a of c)a&&f.push(...a);Sn(nr(f))}}function Sn(e,t){const n=j(e)?e:[...e];for(const r of n)r.computed&&Er(r);for(const r of n)r.computed||Er(r)}function Er(e,t){(e!==$e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ho=Vn("__proto__,__v_isRef,__isVue"),is=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(er)),po=sr(),go=sr(!1,!0),mo=sr(!0),Cr=_o();function _o(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=V(this);for(let o=0,i=this.length;o<i;o++)Pe(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(V)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Mt();const r=V(this)[t].apply(this,n);return It(),r}}),e}function sr(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Ro:as:t?us:fs).get(r))return r;const i=j(r);if(!e&&i&&K(Cr,s))return Reflect.get(Cr,s,o);const c=Reflect.get(r,s,o);return(er(s)?is.has(s):ho(s))||(e||Pe(r,"get",s),t)?c:he(c)?i&&tr(s)?c:c.value:se(c)?e?hs(c):lr(c):c}}const bo=ls(),vo=ls(!0);function ls(e=!1){return function(n,r,s,o){let i=n[r];if(Wt(i)&&he(i)&&!he(s))return!1;if(!e&&!Wt(s)&&(Hn(s)||(s=V(s),i=V(i)),!j(n)&&he(i)&&!he(s)))return i.value=s,!0;const c=j(n)&&tr(r)?Number(r)<n.length:K(n,r),f=Reflect.set(n,r,s,o);return n===V(o)&&(c?Kt(s,i)&&Ye(n,"set",r,s):Ye(n,"add",r,s)),f}}function yo(e,t){const n=K(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Ye(e,"delete",t,void 0),r}function wo(e,t){const n=Reflect.has(e,t);return(!er(t)||!is.has(t))&&Pe(e,"has",t),n}function xo(e){return Pe(e,"iterate",j(e)?"length":mt),Reflect.ownKeys(e)}const cs={get:po,set:bo,deleteProperty:yo,has:wo,ownKeys:xo},Eo={get:mo,set(e,t){return!0},deleteProperty(e,t){return!0}},Co=ce({},cs,{get:go,set:vo}),or=e=>e,_n=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=V(e),o=V(t);n||(t!==o&&Pe(s,"get",t),Pe(s,"get",o));const{has:i}=_n(s),c=r?or:n?fr:kt;if(i.call(s,t))return c(e.get(t));if(i.call(s,o))return c(e.get(o));e!==s&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=V(n),s=V(e);return t||(e!==s&&Pe(r,"has",e),Pe(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function en(e,t=!1){return e=e.__v_raw,!t&&Pe(V(e),"iterate",mt),Reflect.get(e,"size",e)}function Tr(e){e=V(e);const t=V(this);return _n(t).has.call(t,e)||(t.add(e),Ye(t,"add",e,e)),this}function Or(e,t){t=V(t);const n=V(this),{has:r,get:s}=_n(n);let o=r.call(n,e);o||(e=V(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?Kt(t,i)&&Ye(n,"set",e,t):Ye(n,"add",e,t),this}function Ar(e){const t=V(this),{has:n,get:r}=_n(t);let s=n.call(t,e);s||(e=V(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ye(t,"delete",e,void 0),o}function Pr(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Ye(e,"clear",void 0,void 0),n}function tn(e,t){return function(r,s){const o=this,i=o.__v_raw,c=V(i),f=t?or:e?fr:kt;return!e&&Pe(c,"iterate",mt),i.forEach((a,d)=>r.call(s,f(a),f(d),o))}}function nn(e,t,n){return function(...r){const s=this.__v_raw,o=V(s),i=Tt(o),c=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=s[e](...r),d=n?or:t?fr:kt;return!t&&Pe(o,"iterate",f?$n:mt),{next(){const{value:v,done:E}=a.next();return E?{value:v,done:E}:{value:c?[d(v[0]),d(v[1])]:d(v),done:E}},[Symbol.iterator](){return this}}}}function tt(e){return function(...t){return e==="delete"?!1:this}}function To(){const e={get(o){return Qt(this,o)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!1)},t={get(o){return Qt(this,o,!1,!0)},get size(){return en(this)},has:Gt,add:Tr,set:Or,delete:Ar,clear:Pr,forEach:tn(!1,!0)},n={get(o){return Qt(this,o,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!1)},r={get(o){return Qt(this,o,!0,!0)},get size(){return en(this,!0)},has(o){return Gt.call(this,o,!0)},add:tt("add"),set:tt("set"),delete:tt("delete"),clear:tt("clear"),forEach:tn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=nn(o,!1,!1),n[o]=nn(o,!0,!1),t[o]=nn(o,!1,!0),r[o]=nn(o,!0,!0)}),[e,n,t,r]}const[Oo,Ao,Po,Mo]=To();function ir(e,t){const n=t?e?Mo:Po:e?Ao:Oo;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(K(n,s)&&s in r?n:r,s,o)}const Io={get:ir(!1,!1)},No={get:ir(!1,!0)},Fo={get:ir(!0,!1)},fs=new WeakMap,us=new WeakMap,as=new WeakMap,Ro=new WeakMap;function jo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Lo(e){return e.__v_skip||!Object.isExtensible(e)?0:jo(so(e))}function lr(e){return Wt(e)?e:cr(e,!1,cs,Io,fs)}function $o(e){return cr(e,!1,Co,No,us)}function hs(e){return cr(e,!0,Eo,Fo,as)}function cr(e,t,n,r,s){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Lo(e);if(i===0)return e;const c=new Proxy(e,i===2?r:n);return s.set(e,c),c}function Ot(e){return Wt(e)?Ot(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function ds(e){return Ot(e)||Wt(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function ps(e){return ln(e,"__v_skip",!0),e}const kt=e=>se(e)?lr(e):e,fr=e=>se(e)?hs(e):e;function ur(e){st&&$e&&(e=V(e),os(e.dep||(e.dep=nr())))}function ar(e,t){e=V(e),e.dep&&Sn(e.dep)}function he(e){return!!(e&&e.__v_isRef===!0)}function Ol(e){return So(e,!1)}function So(e,t){return he(e)?e:new Ho(e,t)}class Ho{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:kt(t)}get value(){return ur(this),this._value}set value(t){t=this.__v_isShallow?t:V(t),Kt(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:kt(t),ar(this))}}function Do(e){return he(e)?e.value:e}const Uo={get:(e,t,n)=>Do(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return he(s)&&!he(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gs(e){return Ot(e)?e:new Proxy(e,Uo)}class Bo{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>ur(this),()=>ar(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Al(e){return new Bo(e)}class Ko{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new rr(t,()=>{this._dirty||(this._dirty=!0,ar(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=V(this);return ur(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Wo(e,t,n=!1){let r,s;const o=H(e);return o?(r=e,s=He):(r=e.get,s=e.set),new Ko(r,s,o||!s,n)}function ot(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){bn(o,t,n)}return s}function De(e,t,n,r){if(H(e)){const o=ot(e,t,n,r);return o&&Gr(o)&&o.catch(i=>{bn(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(De(e[o],t,n,r));return s}function bn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,c=n;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,c)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){ot(f,null,10,[e,i,c]);return}}ko(e,n,s,r)}function ko(e,t,n,r=!0){console.error(e)}let cn=!1,Dn=!1;const Ae=[];let Je=0;const St=[];let $t=null,wt=0;const Ht=[];let nt=null,xt=0;const ms=Promise.resolve();let hr=null,Un=null;function _s(e){const t=hr||ms;return e?t.then(this?e.bind(this):e):t}function qo(e){let t=Je+1,n=Ae.length;for(;t<n;){const r=t+n>>>1;qt(Ae[r])<e?t=r+1:n=r}return t}function bs(e){(!Ae.length||!Ae.includes(e,cn&&e.allowRecurse?Je+1:Je))&&e!==Un&&(e.id==null?Ae.push(e):Ae.splice(qo(e.id),0,e),vs())}function vs(){!cn&&!Dn&&(Dn=!0,hr=ms.then(xs))}function zo(e){const t=Ae.indexOf(e);t>Je&&Ae.splice(t,1)}function ys(e,t,n,r){j(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),vs()}function Jo(e){ys(e,$t,St,wt)}function Yo(e){ys(e,nt,Ht,xt)}function vn(e,t=null){if(St.length){for(Un=t,$t=[...new Set(St)],St.length=0,wt=0;wt<$t.length;wt++)$t[wt]();$t=null,wt=0,Un=null,vn(e,t)}}function ws(e){if(vn(),Ht.length){const t=[...new Set(Ht)];if(Ht.length=0,nt){nt.push(...t);return}for(nt=t,nt.sort((n,r)=>qt(n)-qt(r)),xt=0;xt<nt.length;xt++)nt[xt]();nt=null,xt=0}}const qt=e=>e.id==null?1/0:e.id;function xs(e){Dn=!1,cn=!0,vn(e),Ae.sort((n,r)=>qt(n)-qt(r));const t=He;try{for(Je=0;Je<Ae.length;Je++){const n=Ae[Je];n&&n.active!==!1&&ot(n,null,14)}}finally{Je=0,Ae.length=0,ws(),cn=!1,hr=null,(Ae.length||St.length||Ht.length)&&xs(e)}}function Vo(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Z;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:v,trim:E}=r[d]||Z;E&&(s=n.map(M=>M.trim())),v&&(s=n.map(Rn))}let c,f=r[c=On(t)]||r[c=On(Fe(t))];!f&&o&&(f=r[c=On(ke(t))]),f&&De(f,e,6,s);const a=r[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,De(a,e,6,s)}}function Es(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},c=!1;if(!H(e)){const f=a=>{const d=Es(a,t,!0);d&&(c=!0,ce(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!c?(r.set(e,null),null):(j(o)?o.forEach(f=>i[f]=null):ce(i,o),r.set(e,i),i)}function yn(e,t){return!e||!dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,ke(t))||K(e,t))}let be=null,Cs=null;function fn(e){const t=be;return be=e,Cs=e&&e.type.__scopeId||null,t}function Xo(e,t=be,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Dr(-1);const o=fn(t),i=e(...s);return fn(o),r._d&&Dr(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Pn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:c,attrs:f,emit:a,render:d,renderCache:v,data:E,setupState:M,ctx:R,inheritAttrs:W}=e;let L,$;const G=fn(e);try{if(n.shapeFlag&4){const X=s||r;L=We(d.call(X,X,v,o,M,E,R)),$=f}else{const X=t;L=We(X.length>1?X(o,{attrs:f,slots:c,emit:a}):X(o,null)),$=t.props?f:Zo(f)}}catch(X){Bt.length=0,bn(X,e,1),L=de(lt)}let J=L;if($&&W!==!1){const X=Object.keys($),{shapeFlag:ve}=J;X.length&&ve&7&&(i&&X.some(Qn)&&($=Qo($,i)),J=At(J,$))}return n.dirs&&(J=At(J),J.dirs=J.dirs?J.dirs.concat(n.dirs):n.dirs),n.transition&&(J.transition=n.transition),L=J,fn(G),L}const Zo=e=>{let t;for(const n in e)(n==="class"||n==="style"||dn(n))&&((t||(t={}))[n]=e[n]);return t},Qo=(e,t)=>{const n={};for(const r in e)(!Qn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Go(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:c,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return r?Mr(r,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let v=0;v<d.length;v++){const E=d[v];if(i[E]!==r[E]&&!yn(a,E))return!0}}}else return(s||c)&&(!c||!c.$stable)?!0:r===i?!1:r?i?Mr(r,i,a):!0:!!i;return!1}function Mr(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!yn(n,o))return!0}return!1}function ei({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const ti=e=>e.__isSuspense;function ni(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Yo(e)}function ri(e,t){if(oe){let n=oe.provides;const r=oe.parent&&oe.parent.provides;r===n&&(n=oe.provides=Object.create(r)),n[e]=t}}function Mn(e,t,n=!1){const r=oe||be;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&H(t)?t.call(r.proxy):t}}function Pl(e,t){return dr(e,null,t)}const Ir={};function In(e,t,n){return dr(e,t,n)}function dr(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=Z){const c=oe;let f,a=!1,d=!1;if(he(e)?(f=()=>e.value,a=Hn(e)):Ot(e)?(f=()=>e,r=!0):j(e)?(d=!0,a=e.some($=>Ot($)||Hn($)),f=()=>e.map($=>{if(he($))return $.value;if(Ot($))return Et($);if(H($))return ot($,c,2)})):H(e)?t?f=()=>ot(e,c,2):f=()=>{if(!(c&&c.isUnmounted))return v&&v(),De(e,c,3,[E])}:f=He,t&&r){const $=f;f=()=>Et($())}let v,E=$=>{v=L.onStop=()=>{ot($,c,4)}};if(Jt)return E=He,t?n&&De(t,c,3,[f(),d?[]:void 0,E]):f(),He;let M=d?[]:Ir;const R=()=>{if(!!L.active)if(t){const $=L.run();(r||a||(d?$.some((G,J)=>Kt(G,M[J])):Kt($,M)))&&(v&&v(),De(t,c,3,[$,M===Ir?void 0:M,E]),M=$)}else L.run()};R.allowRecurse=!!t;let W;s==="sync"?W=R:s==="post"?W=()=>Te(R,c&&c.suspense):W=()=>Jo(R);const L=new rr(f,W);return t?n?R():M=L.run():s==="post"?Te(L.run.bind(L),c&&c.suspense):L.run(),()=>{L.stop(),c&&c.scope&&Gn(c.scope.effects,L)}}function si(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?Ts(r,e):()=>r[e]:e.bind(r,r);let o;H(t)?o=t:(o=t.handler,n=t);const i=oe;Pt(this);const c=dr(s,o.bind(r),n);return i?Pt(i):_t(),c}function Ts(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Et(e,t){if(!se(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Et(e.value,t);else if(j(e))for(let n=0;n<e.length;n++)Et(e[n],t);else if(Qr(e)||Tt(e))e.forEach(n=>{Et(n,t)});else if(ts(e))for(const n in e)Et(e[n],t);return e}function oi(e){return H(e)?{setup:e,name:e.name}:e}const Dt=e=>!!e.type.__asyncLoader,Os=e=>e.type.__isKeepAlive;function ii(e,t){As(e,"a",t)}function li(e,t){As(e,"da",t)}function As(e,t,n=oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Os(s.parent.vnode)&&ci(r,t,n,s),s=s.parent}}function ci(e,t,n,r){const s=wn(t,e,r,!0);Ps(()=>{Gn(r[t],s)},n)}function wn(e,t,n=oe,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),Pt(n);const c=De(t,n,e,i);return _t(),It(),c});return r?s.unshift(o):s.push(o),o}}const Ve=e=>(t,n=oe)=>(!Jt||e==="sp")&&wn(e,t,n),fi=Ve("bm"),ui=Ve("m"),ai=Ve("bu"),hi=Ve("u"),di=Ve("bum"),Ps=Ve("um"),pi=Ve("sp"),gi=Ve("rtg"),mi=Ve("rtc");function _i(e,t=oe){wn("ec",e,t)}function ht(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const c=s[i];o&&(c.oldValue=o[i].value);let f=c.dir[r];f&&(Mt(),De(f,n,8,[e.el,c,e,t]),It())}}const Ms="components";function Ml(e,t){return vi(Ms,e,!0,t)||e}const bi=Symbol();function vi(e,t,n=!0,r=!1){const s=be||oe;if(s){const o=s.type;if(e===Ms){const c=Zi(o,!1);if(c&&(c===t||c===Fe(t)||c===mn(Fe(t))))return o}const i=Nr(s[e]||o[e],t)||Nr(s.appContext[e],t);return!i&&r?o:i}}function Nr(e,t){return e&&(e[t]||e[Fe(t)]||e[mn(Fe(t))])}function Il(e,t,n,r){let s;const o=n&&n[r];if(j(e)||ie(e)){s=new Array(e.length);for(let i=0,c=e.length;i<c;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(se(e))if(e[Symbol.iterator])s=Array.from(e,(i,c)=>t(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);s=new Array(i.length);for(let c=0,f=i.length;c<f;c++){const a=i[c];s[c]=t(e[a],a,c,o&&o[c])}}else s=[];return n&&(n[r]=s),s}function Nl(e,t,n={},r,s){if(be.isCE||be.parent&&Dt(be.parent)&&be.parent.isCE)return de("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),Ds();const i=o&&Is(o(n)),c=Bs(Le,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function Is(e){return e.some(t=>hn(t)?!(t.type===lt||t.type===Le&&!Is(t.children)):!0)?e:null}const Bn=e=>e?ks(e)?br(e)||e.proxy:Bn(e.parent):null,un=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>bs(e.update)),$nextTick:e=>e.n||(e.n=_s.bind(e.proxy)),$watch:e=>si.bind(e)}),yi={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:c,appContext:f}=e;let a;if(t[0]!=="$"){const M=i[t];if(M!==void 0)switch(M){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==Z&&K(r,t))return i[t]=1,r[t];if(s!==Z&&K(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&K(a,t))return i[t]=3,o[t];if(n!==Z&&K(n,t))return i[t]=4,n[t];Kn&&(i[t]=0)}}const d=un[t];let v,E;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((v=c.__cssModules)&&(v=v[t]))return v;if(n!==Z&&K(n,t))return i[t]=4,n[t];if(E=f.config.globalProperties,K(E,t))return E[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==Z&&K(s,t)?(s[t]=n,!0):r!==Z&&K(r,t)?(r[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let c;return!!n[i]||e!==Z&&K(e,i)||t!==Z&&K(t,i)||(c=o[0])&&K(c,i)||K(r,i)||K(un,i)||K(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Kn=!0;function wi(e){const t=Fs(e),n=e.proxy,r=e.ctx;Kn=!1,t.beforeCreate&&Fr(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:c,provide:f,inject:a,created:d,beforeMount:v,mounted:E,beforeUpdate:M,updated:R,activated:W,deactivated:L,beforeDestroy:$,beforeUnmount:G,destroyed:J,unmounted:X,render:ve,renderTracked:pe,renderTriggered:ye,errorCaptured:we,serverPrefetch:fe,expose:Re,inheritAttrs:xe,components:Xe,directives:ct,filters:Yt}=t;if(a&&xi(a,r,null,e.appContext.config.unwrapInjectedRef),i)for(const Q in i){const q=i[Q];H(q)&&(r[Q]=q.bind(n))}if(s){const Q=s.call(n,n);se(Q)&&(e.data=lr(Q))}if(Kn=!0,o)for(const Q in o){const q=o[Q],ge=H(q)?q.bind(n,n):H(q.get)?q.get.bind(n,n):He,bt=!H(q)&&H(q.set)?q.set.bind(n):He,qe=Gi({get:ge,set:bt});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>qe.value,set:ze=>qe.value=ze})}if(c)for(const Q in c)Ns(c[Q],r,n,Q);if(f){const Q=H(f)?f.call(n):f;Reflect.ownKeys(Q).forEach(q=>{ri(q,Q[q])})}d&&Fr(d,e,"c");function ue(Q,q){j(q)?q.forEach(ge=>Q(ge.bind(n))):q&&Q(q.bind(n))}if(ue(fi,v),ue(ui,E),ue(ai,M),ue(hi,R),ue(ii,W),ue(li,L),ue(_i,we),ue(mi,pe),ue(gi,ye),ue(di,G),ue(Ps,X),ue(pi,fe),j(Re))if(Re.length){const Q=e.exposed||(e.exposed={});Re.forEach(q=>{Object.defineProperty(Q,q,{get:()=>n[q],set:ge=>n[q]=ge})})}else e.exposed||(e.exposed={});ve&&e.render===He&&(e.render=ve),xe!=null&&(e.inheritAttrs=xe),Xe&&(e.components=Xe),ct&&(e.directives=ct)}function xi(e,t,n=He,r=!1){j(e)&&(e=Wn(e));for(const s in e){const o=e[s];let i;se(o)?"default"in o?i=Mn(o.from||s,o.default,!0):i=Mn(o.from||s):i=Mn(o),he(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[s]=i}}function Fr(e,t,n){De(j(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ns(e,t,n,r){const s=r.includes(".")?Ts(n,r):()=>n[r];if(ie(e)){const o=t[e];H(o)&&In(s,o)}else if(H(e))In(s,e.bind(n));else if(se(e))if(j(e))e.forEach(o=>Ns(o,t,n,r));else{const o=H(e.handler)?e.handler.bind(n):t[e.handler];H(o)&&In(s,o,e)}}function Fs(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let f;return c?f=c:!s.length&&!n&&!r?f=t:(f={},s.length&&s.forEach(a=>an(f,a,i,!0)),an(f,t,i)),o.set(t,f),f}function an(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&an(e,o,n,!0),s&&s.forEach(i=>an(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const c=Ei[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ei={data:Rr,props:pt,emits:pt,methods:pt,computed:pt,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:pt,directives:pt,watch:Ti,provide:Rr,inject:Ci};function Rr(e,t){return t?e?function(){return ce(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ci(e,t){return pt(Wn(e),Wn(t))}function Wn(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _e(e,t){return e?[...new Set([].concat(e,t))]:t}function pt(e,t){return e?ce(ce(Object.create(null),e),t):t}function Ti(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const r in t)n[r]=_e(e[r],t[r]);return n}function Oi(e,t,n,r=!1){const s={},o={};ln(o,xn,1),e.propsDefaults=Object.create(null),Rs(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:$o(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Ai(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,c=V(s),[f]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let v=0;v<d.length;v++){let E=d[v];if(yn(e.emitsOptions,E))continue;const M=t[E];if(f)if(K(o,E))M!==o[E]&&(o[E]=M,a=!0);else{const R=Fe(E);s[R]=kn(f,c,R,M,e,!1)}else M!==o[E]&&(o[E]=M,a=!0)}}}else{Rs(e,t,s,o)&&(a=!0);let d;for(const v in c)(!t||!K(t,v)&&((d=ke(v))===v||!K(t,d)))&&(f?n&&(n[v]!==void 0||n[d]!==void 0)&&(s[v]=kn(f,c,v,void 0,e,!0)):delete s[v]);if(o!==c)for(const v in o)(!t||!K(t,v)&&!0)&&(delete o[v],a=!0)}a&&Ye(e,"set","$attrs")}function Rs(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,c;if(t)for(let f in t){if(sn(f))continue;const a=t[f];let d;s&&K(s,d=Fe(f))?!o||!o.includes(d)?n[d]=a:(c||(c={}))[d]=a:yn(e.emitsOptions,f)||(!(f in r)||a!==r[f])&&(r[f]=a,i=!0)}if(o){const f=V(n),a=c||Z;for(let d=0;d<o.length;d++){const v=o[d];n[v]=kn(s,f,v,a[v],e,!K(a,v))}}return i}function kn(e,t,n,r,s,o){const i=e[n];if(i!=null){const c=K(i,"default");if(c&&r===void 0){const f=i.default;if(i.type!==Function&&H(f)){const{propsDefaults:a}=s;n in a?r=a[n]:(Pt(s),r=a[n]=f.call(null,t),_t())}else r=f}i[0]&&(o&&!c?r=!1:i[1]&&(r===""||r===ke(n))&&(r=!0))}return r}function js(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},c=[];let f=!1;if(!H(e)){const d=v=>{f=!0;const[E,M]=js(v,t,!0);ce(i,E),M&&c.push(...M)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return r.set(e,Ct),Ct;if(j(o))for(let d=0;d<o.length;d++){const v=Fe(o[d]);jr(v)&&(i[v]=Z)}else if(o)for(const d in o){const v=Fe(d);if(jr(v)){const E=o[d],M=i[v]=j(E)||H(E)?{type:E}:E;if(M){const R=Sr(Boolean,M.type),W=Sr(String,M.type);M[0]=R>-1,M[1]=W<0||R<W,(R>-1||K(M,"default"))&&c.push(v)}}}const a=[i,c];return r.set(e,a),a}function jr(e){return e[0]!=="$"}function Lr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function $r(e,t){return Lr(e)===Lr(t)}function Sr(e,t){return j(t)?t.findIndex(n=>$r(n,e)):H(t)&&$r(t,e)?0:-1}const Ls=e=>e[0]==="_"||e==="$stable",pr=e=>j(e)?e.map(We):[We(e)],Pi=(e,t,n)=>{if(t._n)return t;const r=Xo((...s)=>pr(t(...s)),n);return r._c=!1,r},$s=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ls(s))continue;const o=e[s];if(H(o))t[s]=Pi(s,o,r);else if(o!=null){const i=pr(o);t[s]=()=>i}}},Ss=(e,t)=>{const n=pr(t);e.slots.default=()=>n},Mi=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),ln(t,"_",n)):$s(t,e.slots={})}else e.slots={},t&&Ss(e,t);ln(e.slots,xn,1)},Ii=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Z;if(r.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(ce(s,t),!n&&c===1&&delete s._):(o=!t.$stable,$s(t,s)),i=t}else t&&(Ss(e,t),i={default:1});if(o)for(const c in s)!Ls(c)&&!(c in i)&&delete s[c]};function Hs(){return{app:null,config:{isNativeTag:to,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 Ni=0;function Fi(e,t){return function(r,s=null){H(r)||(r=Object.assign({},r)),s!=null&&!se(s)&&(s=null);const o=Hs(),i=new Set;let c=!1;const f=o.app={_uid:Ni++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:el,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&H(a.install)?(i.add(a),a.install(f,...d)):H(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,v){if(!c){const E=de(r,s);return E.appContext=o,d&&t?t(E,a):e(E,a,v),c=!0,f._container=a,a.__vue_app__=f,br(E.component)||E.component.proxy}},unmount(){c&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f}};return f}}function qn(e,t,n,r,s=!1){if(j(e)){e.forEach((E,M)=>qn(E,t&&(j(t)?t[M]:t),n,r,s));return}if(Dt(r)&&!s)return;const o=r.shapeFlag&4?br(r.component)||r.component.proxy:r.el,i=s?null:o,{i:c,r:f}=e,a=t&&t.r,d=c.refs===Z?c.refs={}:c.refs,v=c.setupState;if(a!=null&&a!==f&&(ie(a)?(d[a]=null,K(v,a)&&(v[a]=null)):he(a)&&(a.value=null)),H(f))ot(f,c,12,[i,d]);else{const E=ie(f),M=he(f);if(E||M){const R=()=>{if(e.f){const W=E?d[f]:f.value;s?j(W)&&Gn(W,o):j(W)?W.includes(o)||W.push(o):E?(d[f]=[o],K(v,f)&&(v[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else E?(d[f]=i,K(v,f)&&(v[f]=i)):M&&(f.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,Te(R,n)):R()}}}const Te=ni;function Ri(e){return ji(e)}function ji(e,t){const n=lo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:c,createComment:f,setText:a,setElementText:d,parentNode:v,nextSibling:E,setScopeId:M=He,cloneNode:R,insertStaticContent:W}=e,L=(l,u,h,g=null,m=null,y=null,C=!1,b=null,w=!!u.dynamicChildren)=>{if(l===u)return;l&&!jt(l,u)&&(g=vt(l),Me(l,m,y,!0),l=null),u.patchFlag===-2&&(w=!1,u.dynamicChildren=null);const{type:_,ref:A,shapeFlag:T}=u;switch(_){case mr:$(l,u,h,g);break;case lt:G(l,u,h,g);break;case Nn:l==null&&J(u,h,g,C);break;case Le:ct(l,u,h,g,m,y,C,b,w);break;default:T&1?pe(l,u,h,g,m,y,C,b,w):T&6?Yt(l,u,h,g,m,y,C,b,w):(T&64||T&128)&&_.process(l,u,h,g,m,y,C,b,w,Ze)}A!=null&&m&&qn(A,l&&l.ref,y,u||l,!u)},$=(l,u,h,g)=>{if(l==null)r(u.el=c(u.children),h,g);else{const m=u.el=l.el;u.children!==l.children&&a(m,u.children)}},G=(l,u,h,g)=>{l==null?r(u.el=f(u.children||""),h,g):u.el=l.el},J=(l,u,h,g)=>{[l.el,l.anchor]=W(l.children,u,h,g,l.el,l.anchor)},X=({el:l,anchor:u},h,g)=>{let m;for(;l&&l!==u;)m=E(l),r(l,h,g),l=m;r(u,h,g)},ve=({el:l,anchor:u})=>{let h;for(;l&&l!==u;)h=E(l),s(l),l=h;s(u)},pe=(l,u,h,g,m,y,C,b,w)=>{C=C||u.type==="svg",l==null?ye(u,h,g,m,y,C,b,w):Re(l,u,m,y,C,b,w)},ye=(l,u,h,g,m,y,C,b)=>{let w,_;const{type:A,props:T,shapeFlag:P,transition:N,patchFlag:U,dirs:z}=l;if(l.el&&R!==void 0&&U===-1)w=l.el=R(l.el);else{if(w=l.el=i(l.type,y,T&&T.is,T),P&8?d(w,l.children):P&16&&fe(l.children,w,null,g,m,y&&A!=="foreignObject",C,b),z&&ht(l,null,g,"created"),T){for(const Y in T)Y!=="value"&&!sn(Y)&&o(w,Y,null,T[Y],y,l.children,g,m,Ie);"value"in T&&o(w,"value",null,T.value),(_=T.onVnodeBeforeMount)&&Be(_,g,l)}we(w,l,l.scopeId,C,g)}z&&ht(l,null,g,"beforeMount");const k=(!m||m&&!m.pendingBranch)&&N&&!N.persisted;k&&N.beforeEnter(w),r(w,u,h),((_=T&&T.onVnodeMounted)||k||z)&&Te(()=>{_&&Be(_,g,l),k&&N.enter(w),z&&ht(l,null,g,"mounted")},m)},we=(l,u,h,g,m)=>{if(h&&M(l,h),g)for(let y=0;y<g.length;y++)M(l,g[y]);if(m){let y=m.subTree;if(u===y){const C=m.vnode;we(l,C,C.scopeId,C.slotScopeIds,m.parent)}}},fe=(l,u,h,g,m,y,C,b,w=0)=>{for(let _=w;_<l.length;_++){const A=l[_]=b?rt(l[_]):We(l[_]);L(null,A,u,h,g,m,y,C,b)}},Re=(l,u,h,g,m,y,C)=>{const b=u.el=l.el;let{patchFlag:w,dynamicChildren:_,dirs:A}=u;w|=l.patchFlag&16;const T=l.props||Z,P=u.props||Z;let N;h&&dt(h,!1),(N=P.onVnodeBeforeUpdate)&&Be(N,h,u,l),A&&ht(u,l,h,"beforeUpdate"),h&&dt(h,!0);const U=m&&u.type!=="foreignObject";if(_?xe(l.dynamicChildren,_,b,h,g,U,y):C||ge(l,u,b,null,h,g,U,y,!1),w>0){if(w&16)Xe(b,u,T,P,h,g,m);else if(w&2&&T.class!==P.class&&o(b,"class",null,P.class,m),w&4&&o(b,"style",T.style,P.style,m),w&8){const z=u.dynamicProps;for(let k=0;k<z.length;k++){const Y=z[k],Ee=T[Y],je=P[Y];(je!==Ee||Y==="value")&&o(b,Y,Ee,je,m,l.children,h,g,Ie)}}w&1&&l.children!==u.children&&d(b,u.children)}else!C&&_==null&&Xe(b,u,T,P,h,g,m);((N=P.onVnodeUpdated)||A)&&Te(()=>{N&&Be(N,h,u,l),A&&ht(u,l,h,"updated")},g)},xe=(l,u,h,g,m,y,C)=>{for(let b=0;b<u.length;b++){const w=l[b],_=u[b],A=w.el&&(w.type===Le||!jt(w,_)||w.shapeFlag&70)?v(w.el):h;L(w,_,A,null,g,m,y,C,!0)}},Xe=(l,u,h,g,m,y,C)=>{if(h!==g){for(const b in g){if(sn(b))continue;const w=g[b],_=h[b];w!==_&&b!=="value"&&o(l,b,_,w,C,u.children,m,y,Ie)}if(h!==Z)for(const b in h)!sn(b)&&!(b in g)&&o(l,b,h[b],null,C,u.children,m,y,Ie);"value"in g&&o(l,"value",h.value,g.value)}},ct=(l,u,h,g,m,y,C,b,w)=>{const _=u.el=l?l.el:c(""),A=u.anchor=l?l.anchor:c("");let{patchFlag:T,dynamicChildren:P,slotScopeIds:N}=u;N&&(b=b?b.concat(N):N),l==null?(r(_,h,g),r(A,h,g),fe(u.children,h,A,m,y,C,b,w)):T>0&&T&64&&P&&l.dynamicChildren?(xe(l.dynamicChildren,P,h,m,y,C,b),(u.key!=null||m&&u===m.subTree)&&gr(l,u,!0)):ge(l,u,h,A,m,y,C,b,w)},Yt=(l,u,h,g,m,y,C,b,w)=>{u.slotScopeIds=b,l==null?u.shapeFlag&512?m.ctx.activate(u,h,g,C,w):le(u,h,g,m,y,C,w):ue(l,u,w)},le=(l,u,h,g,m,y,C)=>{const b=l.component=zi(l,g,m);if(Os(l)&&(b.ctx.renderer=Ze),Ji(b),b.asyncDep){if(m&&m.registerDep(b,Q),!l.el){const w=b.subTree=de(lt);G(null,w,u,h)}return}Q(b,l,u,h,m,y,C)},ue=(l,u,h)=>{const g=u.component=l.component;if(Go(l,u,h))if(g.asyncDep&&!g.asyncResolved){q(g,u,h);return}else g.next=u,zo(g.update),g.update();else u.el=l.el,g.vnode=u},Q=(l,u,h,g,m,y,C)=>{const b=()=>{if(l.isMounted){let{next:A,bu:T,u:P,parent:N,vnode:U}=l,z=A,k;dt(l,!1),A?(A.el=U.el,q(l,A,C)):A=U,T&&An(T),(k=A.props&&A.props.onVnodeBeforeUpdate)&&Be(k,N,A,U),dt(l,!0);const Y=Pn(l),Ee=l.subTree;l.subTree=Y,L(Ee,Y,v(Ee.el),vt(Ee),l,m,y),A.el=Y.el,z===null&&ei(l,Y.el),P&&Te(P,m),(k=A.props&&A.props.onVnodeUpdated)&&Te(()=>Be(k,N,A,U),m)}else{let A;const{el:T,props:P}=u,{bm:N,m:U,parent:z}=l,k=Dt(u);if(dt(l,!1),N&&An(N),!k&&(A=P&&P.onVnodeBeforeMount)&&Be(A,z,u),dt(l,!0),T&&at){const Y=()=>{l.subTree=Pn(l),at(T,l.subTree,l,m,null)};k?u.type.__asyncLoader().then(()=>!l.isUnmounted&&Y()):Y()}else{const Y=l.subTree=Pn(l);L(null,Y,h,g,l,m,y),u.el=Y.el}if(U&&Te(U,m),!k&&(A=P&&P.onVnodeMounted)){const Y=u;Te(()=>Be(A,z,Y),m)}(u.shapeFlag&256||z&&Dt(z.vnode)&&z.vnode.shapeFlag&256)&&l.a&&Te(l.a,m),l.isMounted=!0,u=h=g=null}},w=l.effect=new rr(b,()=>bs(_),l.scope),_=l.update=()=>w.run();_.id=l.uid,dt(l,!0),_()},q=(l,u,h)=>{u.component=l;const g=l.vnode.props;l.vnode=u,l.next=null,Ai(l,u.props,g,h),Ii(l,u.children,h),Mt(),vn(void 0,l.update),It()},ge=(l,u,h,g,m,y,C,b,w=!1)=>{const _=l&&l.children,A=l?l.shapeFlag:0,T=u.children,{patchFlag:P,shapeFlag:N}=u;if(P>0){if(P&128){qe(_,T,h,g,m,y,C,b,w);return}else if(P&256){bt(_,T,h,g,m,y,C,b,w);return}}N&8?(A&16&&Ie(_,m,y),T!==_&&d(h,T)):A&16?N&16?qe(_,T,h,g,m,y,C,b,w):Ie(_,m,y,!0):(A&8&&d(h,""),N&16&&fe(T,h,g,m,y,C,b,w))},bt=(l,u,h,g,m,y,C,b,w)=>{l=l||Ct,u=u||Ct;const _=l.length,A=u.length,T=Math.min(_,A);let P;for(P=0;P<T;P++){const N=u[P]=w?rt(u[P]):We(u[P]);L(l[P],N,h,null,m,y,C,b,w)}_>A?Ie(l,m,y,!0,!1,T):fe(u,h,g,m,y,C,b,w,T)},qe=(l,u,h,g,m,y,C,b,w)=>{let _=0;const A=u.length;let T=l.length-1,P=A-1;for(;_<=T&&_<=P;){const N=l[_],U=u[_]=w?rt(u[_]):We(u[_]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;_++}for(;_<=T&&_<=P;){const N=l[T],U=u[P]=w?rt(u[P]):We(u[P]);if(jt(N,U))L(N,U,h,null,m,y,C,b,w);else break;T--,P--}if(_>T){if(_<=P){const N=P+1,U=N<A?u[N].el:g;for(;_<=P;)L(null,u[_]=w?rt(u[_]):We(u[_]),h,U,m,y,C,b,w),_++}}else if(_>P)for(;_<=T;)Me(l[_],m,y,!0),_++;else{const N=_,U=_,z=new Map;for(_=U;_<=P;_++){const me=u[_]=w?rt(u[_]):We(u[_]);me.key!=null&&z.set(me.key,_)}let k,Y=0;const Ee=P-U+1;let je=!1,Nt=0;const Ue=new Array(Ee);for(_=0;_<Ee;_++)Ue[_]=0;for(_=N;_<=T;_++){const me=l[_];if(Y>=Ee){Me(me,m,y,!0);continue}let Ne;if(me.key!=null)Ne=z.get(me.key);else for(k=U;k<=P;k++)if(Ue[k-U]===0&&jt(me,u[k])){Ne=k;break}Ne===void 0?Me(me,m,y,!0):(Ue[Ne-U]=_+1,Ne>=Nt?Nt=Ne:je=!0,L(me,u[Ne],h,null,m,y,C,b,w),Y++)}const Ft=je?Li(Ue):Ct;for(k=Ft.length-1,_=Ee-1;_>=0;_--){const me=U+_,Ne=u[me],Rt=me+1<A?u[me+1].el:g;Ue[_]===0?L(null,Ne,h,Rt,m,y,C,b,w):je&&(k<0||_!==Ft[k]?ze(Ne,h,Rt,2):k--)}}},ze=(l,u,h,g,m=null)=>{const{el:y,type:C,transition:b,children:w,shapeFlag:_}=l;if(_&6){ze(l.component.subTree,u,h,g);return}if(_&128){l.suspense.move(u,h,g);return}if(_&64){C.move(l,u,h,Ze);return}if(C===Le){r(y,u,h);for(let T=0;T<w.length;T++)ze(w[T],u,h,g);r(l.anchor,u,h);return}if(C===Nn){X(l,u,h);return}if(g!==2&&_&1&&b)if(g===0)b.beforeEnter(y),r(y,u,h),Te(()=>b.enter(y),m);else{const{leave:T,delayLeave:P,afterLeave:N}=b,U=()=>r(y,u,h),z=()=>{T(y,()=>{U(),N&&N()})};P?P(y,U,z):z()}else r(y,u,h)},Me=(l,u,h,g=!1,m=!1)=>{const{type:y,props:C,ref:b,children:w,dynamicChildren:_,shapeFlag:A,patchFlag:T,dirs:P}=l;if(b!=null&&qn(b,null,h,l,!0),A&256){u.ctx.deactivate(l);return}const N=A&1&&P,U=!Dt(l);let z;if(U&&(z=C&&C.onVnodeBeforeUnmount)&&Be(z,u,l),A&6)ut(l.component,h,g);else{if(A&128){l.suspense.unmount(h,g);return}N&&ht(l,null,u,"beforeUnmount"),A&64?l.type.remove(l,u,h,m,Ze,g):_&&(y!==Le||T>0&&T&64)?Ie(_,u,h,!1,!0):(y===Le&&T&384||!m&&A&16)&&Ie(w,u,h),g&&ft(l)}(U&&(z=C&&C.onVnodeUnmounted)||N)&&Te(()=>{z&&Be(z,u,l),N&&ht(l,null,u,"unmounted")},h)},ft=l=>{const{type:u,el:h,anchor:g,transition:m}=l;if(u===Le){Vt(h,g);return}if(u===Nn){ve(l);return}const y=()=>{s(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(l.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:b}=m,w=()=>C(h,y);b?b(l.el,y,w):w()}else y()},Vt=(l,u)=>{let h;for(;l!==u;)h=E(l),s(l),l=h;s(u)},ut=(l,u,h)=>{const{bum:g,scope:m,update:y,subTree:C,um:b}=l;g&&An(g),m.stop(),y&&(y.active=!1,Me(C,l,u,h)),b&&Te(b,u),Te(()=>{l.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(l,u,h,g=!1,m=!1,y=0)=>{for(let C=y;C<l.length;C++)Me(l[C],u,h,g,m)},vt=l=>l.shapeFlag&6?vt(l.component.subTree):l.shapeFlag&128?l.suspense.next():E(l.anchor||l.el),Xt=(l,u,h)=>{l==null?u._vnode&&Me(u._vnode,null,null,!0):L(u._vnode||null,l,u,null,null,null,h),ws(),u._vnode=l},Ze={p:L,um:Me,m:ze,r:ft,mt:le,mc:fe,pc:ge,pbc:xe,n:vt,o:e};let Qe,at;return t&&([Qe,at]=t(Ze)),{render:Xt,hydrate:Qe,createApp:Fi(Xt,Qe)}}function dt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gr(e,t,n=!1){const r=e.children,s=t.children;if(j(r)&&j(s))for(let o=0;o<r.length;o++){const i=r[o];let c=s[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=s[o]=rt(s[o]),c.el=i.el),n||gr(i,c))}}function Li(e){const t=e.slice(),n=[0];let r,s,o,i,c;const f=e.length;for(r=0;r<f;r++){const a=e[r];if(a!==0){if(s=n[n.length-1],e[s]<a){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)c=o+i>>1,e[n[c]]<a?o=c+1:i=c;a<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const $i=e=>e.__isTeleport,Ut=e=>e&&(e.disabled||e.disabled===""),Hr=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,zn=(e,t)=>{const n=e&&e.to;return ie(n)?t?t(n):null:n},Si={__isTeleport:!0,process(e,t,n,r,s,o,i,c,f,a){const{mc:d,pc:v,pbc:E,o:{insert:M,querySelector:R,createText:W,createComment:L}}=a,$=Ut(t.props);let{shapeFlag:G,children:J,dynamicChildren:X}=t;if(e==null){const ve=t.el=W(""),pe=t.anchor=W("");M(ve,n,r),M(pe,n,r);const ye=t.target=zn(t.props,R),we=t.targetAnchor=W("");ye&&(M(we,ye),i=i||Hr(ye));const fe=(Re,xe)=>{G&16&&d(J,Re,xe,s,o,i,c,f)};$?fe(n,pe):ye&&fe(ye,we)}else{t.el=e.el;const ve=t.anchor=e.anchor,pe=t.target=e.target,ye=t.targetAnchor=e.targetAnchor,we=Ut(e.props),fe=we?n:pe,Re=we?ve:ye;if(i=i||Hr(pe),X?(E(e.dynamicChildren,X,fe,s,o,i,c),gr(e,t,!0)):f||v(e,t,fe,Re,s,o,i,c,!1),$)we||rn(t,n,ve,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const xe=t.target=zn(t.props,R);xe&&rn(t,xe,null,a,0)}else we&&rn(t,pe,ye,a,1)}},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:c,children:f,anchor:a,targetAnchor:d,target:v,props:E}=e;if(v&&o(d),(i||!Ut(E))&&(o(a),c&16))for(let M=0;M<f.length;M++){const R=f[M];s(R,t,n,!0,!!R.dynamicChildren)}},move:rn,hydrate:Hi};function rn(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:c,shapeFlag:f,children:a,props:d}=e,v=o===2;if(v&&r(i,t,n),(!v||Ut(d))&&f&16)for(let E=0;E<a.length;E++)s(a[E],t,n,2);v&&r(c,t,n)}function Hi(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:c,querySelector:f}},a){const d=t.target=zn(t.props,f);if(d){const v=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Ut(t.props))t.anchor=a(i(e),t,c(e),n,r,s,o),t.targetAnchor=v;else{t.anchor=i(e);let E=v;for(;E;)if(E=i(E),E&&E.nodeType===8&&E.data==="teleport anchor"){t.targetAnchor=E,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(v,t,d,n,r,s,o)}}return t.anchor&&i(t.anchor)}const Fl=Si,Le=Symbol(void 0),mr=Symbol(void 0),lt=Symbol(void 0),Nn=Symbol(void 0),Bt=[];let Se=null;function Ds(e=!1){Bt.push(Se=e?null:[])}function Di(){Bt.pop(),Se=Bt[Bt.length-1]||null}let zt=1;function Dr(e){zt+=e}function Us(e){return e.dynamicChildren=zt>0?Se||Ct:null,Di(),zt>0&&Se&&Se.push(e),e}function Rl(e,t,n,r,s,o){return Us(Ws(e,t,n,r,s,o,!0))}function Bs(e,t,n,r,s){return Us(de(e,t,n,r,s,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function jt(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",Ks=({key:e})=>e!=null?e:null,on=({ref:e,ref_key:t,ref_for:n})=>e!=null?ie(e)||he(e)||H(e)?{i:be,r:e,k:t,f:!!n}:e:null;function Ws(e,t=null,n=null,r=0,s=null,o=e===Le?0:1,i=!1,c=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ks(t),ref:t&&on(t),scopeId:Cs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return c?(_r(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ie(n)?8:16),zt>0&&!i&&Se&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&Se.push(f),f}const de=Ui;function Ui(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bi)&&(e=lt),hn(e)){const c=At(e,t,!0);return n&&_r(c,n),zt>0&&!o&&Se&&(c.shapeFlag&6?Se[Se.indexOf(e)]=c:Se.push(c)),c.patchFlag|=-2,c}if(Qi(e)&&(e=e.__vccOpts),t){t=Bi(t);let{class:c,style:f}=t;c&&!ie(c)&&(t.class=Zn(c)),se(f)&&(ds(f)&&!j(f)&&(f=ce({},f)),t.style=Xn(f))}const i=ie(e)?1:ti(e)?128:$i(e)?64:se(e)?4:H(e)?2:0;return Ws(e,t,n,r,s,i,o,!0)}function Bi(e){return e?ds(e)||xn in e?ce({},e):e:null}function At(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,c=t?Wi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ks(c),ref:t&&t.ref?n&&s?j(s)?s.concat(on(t)):[s,on(t)]:on(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),el:e.el,anchor:e.anchor}}function Ki(e=" ",t=0){return de(mr,null,e,t)}function jl(e="",t=!1){return t?(Ds(),Bs(lt,null,e)):de(lt,null,e)}function We(e){return e==null||typeof e=="boolean"?de(lt):j(e)?de(Le,null,e.slice()):typeof e=="object"?rt(e):de(mr,null,String(e))}function rt(e){return e.el===null||e.memo?e:At(e)}function _r(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),_r(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(xn in t)?t._ctx=be:s===3&&be&&(be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:be},n=32):(t=String(t),r&64?(n=16,t=[Ki(t)]):n=8);e.children=t,e.shapeFlag|=n}function Wi(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Zn([t.class,r.class]));else if(s==="style")t.style=Xn([t.style,r.style]);else if(dn(s)){const o=t[s],i=r[s];i&&o!==i&&!(j(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Be(e,t,n,r=null){De(e,t,7,[n,r])}const ki=Hs();let qi=0;function zi(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ki,o={uid:qi++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new co(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:js(r,s),emitsOptions:Es(r,s),emit:null,emitted:null,propsDefaults:Z,inheritAttrs:r.inheritAttrs,ctx:Z,data:Z,props:Z,attrs:Z,slots:Z,refs:Z,setupState:Z,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Vo.bind(null,o),e.ce&&e.ce(o),o}let oe=null;const Ll=()=>oe||be,Pt=e=>{oe=e,e.scope.on()},_t=()=>{oe&&oe.scope.off(),oe=null};function ks(e){return e.vnode.shapeFlag&4}let Jt=!1;function Ji(e,t=!1){Jt=t;const{props:n,children:r}=e.vnode,s=ks(e);Oi(e,n,s,t),Mi(e,r);const o=s?Yi(e,t):void 0;return Jt=!1,o}function Yi(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,yi));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Xi(e):null;Pt(e),Mt();const o=ot(r,e,0,[e.props,s]);if(It(),_t(),Gr(o)){if(o.then(_t,_t),t)return o.then(i=>{Ur(e,i,t)}).catch(i=>{bn(i,e,0)});e.asyncDep=o}else Ur(e,o,t)}else qs(e,t)}function Ur(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=gs(t)),qs(e,n)}let Br;function qs(e,t,n){const r=e.type;if(!e.render){if(!t&&Br&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:f}=r,a=ce(ce({isCustomElement:o,delimiters:c},i),f);r.render=Br(s,a)}}e.render=r.render||He}Pt(e),Mt(),wi(e),It(),_t()}function Vi(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Xi(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Vi(e))},slots:e.slots,emit:e.emit,expose:t}}function br(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gs(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)}}))}function Zi(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e){return H(e)&&"__vccOpts"in e}const Gi=(e,t)=>Wo(e,t,Jt);function $l(e,t,n){const r=arguments.length;return r===2?se(t)&&!j(t)?hn(t)?de(e,null,[t]):de(e,t):de(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hn(n)&&(n=[n]),de(e,t,n))}const el="3.2.37";/*! (c) Andrea Giammarchi - ISC */const tl=(()=>{const e="DOMContentLoaded",t=new WeakMap,n=[],r=i=>{do if(i.nextSibling)return!0;while(i=i.parentNode);return!1},s=()=>{n.splice(0).forEach(i=>{t.get(i[0])!==!0&&(t.set(i[0],!0),i[0][i[1]]())})};document.addEventListener(e,s);class o extends HTMLElement{static withParsedCallback(c,f="parsed"){const{prototype:a}=c,{connectedCallback:d}=a,v=f+"Callback",E=(R,W,L,$)=>{W.disconnect(),L.removeEventListener(e,$),M(R)},M=R=>{n.length||requestAnimationFrame(s),n.push([R,v])};return Object.defineProperties(a,{connectedCallback:{configurable:!0,writable:!0,value(){if(d&&d.apply(this,arguments),v in this&&!t.has(this)){const R=this,{ownerDocument:W}=R;if(t.set(R,!1),W.readyState==="complete"||r(R))M(R);else{const L=()=>E(R,$,W,L);W.addEventListener(e,L);const $=new MutationObserver(()=>{r(R)&&E(R,$,W,L)});$.observe(R.parentNode,{childList:!0,subtree:!0})}}}},[f]:{configurable:!0,get(){return t.get(this)===!0}}}),c}}return o.withParsedCallback(o)})(),nl="http://www.w3.org/2000/svg",gt=typeof document!="undefined"?document:null,Kr=gt&&gt.createElement("template"),rl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?gt.createElementNS(nl,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Kr.innerHTML=r?`<svg>${e}</svg>`:e;const c=Kr.content;if(r){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ol(e,t,n){const r=e.style,s=ie(n);if(n&&!s){for(const o in n)Jn(r,o,n[o]);if(t&&!ie(t))for(const o in t)n[o]==null&&Jn(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Wr=/\s*!important$/;function Jn(e,t,n){if(j(n))n.forEach(r=>Jn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=il(e,t);Wr.test(n)?e.setProperty(ke(r),n.replace(Wr,""),"important"):e[r]=n}}const kr=["Webkit","Moz","ms"],Fn={};function il(e,t){const n=Fn[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return Fn[t]=r;r=mn(r);for(let s=0;s<kr.length;s++){const o=kr[s]+r;if(o in e)return Fn[t]=o}return t}const qr="http://www.w3.org/1999/xlink";function ll(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(qr,t.slice(6,t.length)):e.setAttributeNS(qr,t,n);else{const o=Zs(t);n==null||o&&!Xr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function cl(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const f=n==null?"":n;(e.value!==f||e.tagName==="OPTION")&&(e.value=f),n==null&&e.removeAttribute(t);return}let c=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Xr(n):n==null&&f==="string"?(n="",c=!0):f==="number"&&(n=0,c=!0)}try{e[t]=n}catch{}c&&e.removeAttribute(t)}const[zs,fl]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Yn=0;const ul=Promise.resolve(),al=()=>{Yn=0},hl=()=>Yn||(ul.then(al),Yn=zs());function dl(e,t,n,r){e.addEventListener(t,n,r)}function pl(e,t,n,r){e.removeEventListener(t,n,r)}function gl(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[c,f]=ml(t);if(r){const a=o[t]=_l(r,s);dl(e,c,a,f)}else i&&(pl(e,c,i,f),o[t]=void 0)}}const zr=/(?:Once|Passive|Capture)$/;function ml(e){let t;if(zr.test(e)){t={};let n;for(;n=e.match(zr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ke(e.slice(2)),t]}function _l(e,t){const n=r=>{const s=r.timeStamp||zs();(fl||s>=n.attached-1)&&De(bl(r,n.value),t,5,[r])};return n.value=e,n.attached=hl(),n}function bl(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Jr=/^on[a-z]/,vl=(e,t,n,r,s=!1,o,i,c,f)=>{t==="class"?sl(e,r,s):t==="style"?ol(e,n,r):dn(t)?Qn(t)||gl(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,r,s))?cl(e,t,r,o,i,c,f):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ll(e,t,r,s))};function yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Jr.test(t)&&H(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Jr.test(t)&&ie(n)?!1:t in e}const wl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Sl=(e,t)=>n=>{if(!("key"in n))return;const r=ke(n.key);if(t.some(s=>s===r||wl[s]===r))return e(n)},xl=ce({patchProp:vl},rl);let Yr;function El(){return Yr||(Yr=Ri(xl))}const Vr=(...e)=>{El().render(...e)},Cl=typeof HTMLElement!="undefined"?tl:class{};class vr extends Cl{constructor(t,n={},r={},s){super(),this._def=t,this._props=n,this._config=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._config=ce({shadowRoot:!0},this._config),this._config.shadowRoot?this.shadowRoot&&s?s(this._createVNode(),this._root):this.attachShadow({mode:"open"}):s&&s(this._createVNode(),this._root)}get _root(){return this._config.shadowRoot?this.shadowRoot:this}connectedCallback(){this._config.shadowRoot?this._connect():super.connectedCallback()}parsedCallback(){this._config.shadowRoot||this._connect()}_connect(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,_s(()=>{this._connected||(Vr(null,this._root),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:s,styles:o}=r,i=!j(s),c=s?i?Object.keys(s):s:[];let f;if(i&&s)for(const a in this._props){const d=s[a];(d===Number||d&&d.type===Number)&&(this._props[a]=Rn(this._props[a]),(f||(f=Object.create(null)))[a]=!0)}this._numberProps=f;for(const a of Object.keys(this))a[0]!=="_"&&this._setProp(a,this[a],!0,!1);for(const a of c.map(Fe))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(d){this._setProp(a,d)}});this._config.shadowRoot||(this._slots=Array.from(this.children).map(a=>a.cloneNode(!0)),Element.prototype.replaceChildren?this.replaceChildren():this.textContent=""),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Rn(n)),this._setProp(Fe(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ke(t),`${n}`):n||this.removeAttribute(ke(t))))}_update(){Vr(this._createVNode(),this._root)}_createVNode(){let t=null;this._config.shadowRoot||(t=()=>{const r=s=>{const o={};for(let i=0,c=s.length;i<c;i++){const f=s[i];o[f.nodeName]=f.nodeValue}return o};return this._slots.map(s=>{const o=s.attributes?r(s.attributes):{};return o.innerHTML=s.innerHTML,de(s.tagName,o,null)})});const n=de(this._def,ce({},this._props),t);return this._instance||(n.ce=r=>{this._instance=r,this._config.shadowRoot&&(r.isCE=!0),r.emit=(o,...i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof vr){r.parent=s._instance;break}}),n}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this._root.appendChild(r)})}}function Hl(e,t,n){const r=oi(e);class s extends vr{constructor(i){super(r,i,t,n)}}return s.def=r,s}var Dl=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};export{Le as F,Fl as T,Dl as _,Ws as a,jl as b,Rl as c,Ml as d,Bs as e,de as f,Xo as g,Il as h,Hl as i,oi as j,Ol as k,ui as l,di as m,Zn as n,Ds as o,$l as p,lr as q,Nl as r,Al as s,Tl as t,ps as u,Ll as v,Sl as w,Pl as x,_s as y,Do as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system-ce",
3
- "version": "5.4.0",
3
+ "version": "5.5.0",
4
4
  "description": "Custom Elements built in Vue3",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -40,5 +40,5 @@
40
40
  },
41
41
  "author": "",
42
42
  "license": "UNLICENSED",
43
- "gitHead": "f0a889d41deb3f991e29e2a1b31825742e4eb099"
43
+ "gitHead": "a778c81350d63b335cc68caab575ba2c2176a398"
44
44
  }
@@ -158,7 +158,12 @@ export class VueElement extends BaseClass {
158
158
  // replace slot
159
159
  if (!this._config.shadowRoot) {
160
160
  this._slots = Array.from(this.children).map((n) => n.cloneNode(true));
161
- this.replaceChildren();
161
+
162
+ if(Element.prototype.replaceChildren) {
163
+ this.replaceChildren();
164
+ } else {
165
+ this.textContent = '';
166
+ }
162
167
  }
163
168
 
164
169
  // apply CSS