@beterdichtbij/component-library 0.47.0 → 0.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  (function(te,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(te=typeof globalThis<"u"?globalThis:te||self,l(te.BDComponentLibrary={},te.Vue))})(this,function(te,l){"use strict";var yh=document.createElement("style");yh.textContent=`.menu-item[data-v-44f01785]{display:flex;align-items:center;gap:8px;padding:8px;cursor:pointer;font-size:1rem}.menu-item .icon-image[data-v-44f01785]{width:18px;height:18px}:root{--vs-colors--lightest: rgba(60, 60, 60, .26);--vs-colors--light: rgba(60, 60, 60, .5);--vs-colors--dark: #333;--vs-colors--darkest: rgba(0, 0, 0, .15);--vs-search-input-color: inherit;--vs-search-input-placeholder-color: inherit;--vs-font-size: 1rem;--vs-line-height: 1.4;--vs-state-disabled-bg: rgb(248, 248, 248);--vs-state-disabled-color: var(--vs-colors--light);--vs-state-disabled-controls-color: var(--vs-colors--light);--vs-state-disabled-cursor: not-allowed;--vs-border-color: var(--vs-colors--lightest);--vs-border-width: 1px;--vs-border-style: solid;--vs-border-radius: 4px;--vs-actions-padding: 4px 6px 0 3px;--vs-controls-color: var(--vs-colors--light);--vs-controls-size: 1;--vs-controls--deselect-text-shadow: 0 1px 0 #fff;--vs-selected-bg: #f0f0f0;--vs-selected-color: var(--vs-colors--dark);--vs-selected-border-color: var(--vs-border-color);--vs-selected-border-style: var(--vs-border-style);--vs-selected-border-width: var(--vs-border-width);--vs-dropdown-bg: #fff;--vs-dropdown-color: inherit;--vs-dropdown-z-index: 1000;--vs-dropdown-min-width: 160px;--vs-dropdown-max-height: 350px;--vs-dropdown-box-shadow: 0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg: #000;--vs-dropdown-option-color: var(--vs-dropdown-color);--vs-dropdown-option-padding: 3px 20px;--vs-dropdown-option--active-bg: #5897fb;--vs-dropdown-option--active-color: #fff;--vs-dropdown-option--deselect-bg: #fb5858;--vs-dropdown-option--deselect-color: #fff;--vs-transition-timing-function: cubic-bezier(1, -.115, .975, .855);--vs-transition-duration: .15s}.v-select{position:relative;font-family:inherit}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function: cubic-bezier(1, .5, .8, 1);--vs-transition-duration: .15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg: var(--vs-state-disabled-bg);--vs-disabled-color: var(--vs-state-disabled-color);--vs-disabled-cursor: var(--vs-state-disabled-cursor)}.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__clear,.vs--disabled .vs__search,.vs--disabled .vs__selected,.vs--disabled .vs__open-indicator{cursor:var(--vs-disabled-cursor);background-color:var(--vs-disabled-bg)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:0 0 4px;background:none;border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{display:flex;align-items:center;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);padding:0;border:0;background-color:transparent;cursor:pointer;margin-right:8px}.vs__dropdown-menu{display:block;box-sizing:border-box;position:absolute;top:calc(100% - var(--vs-border-width));left:0;z-index:var(--vs-dropdown-z-index);padding:5px 0;margin:0;width:100%;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;box-shadow:var(--vs-dropdown-box-shadow);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-top-style:none;border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);text-align:left;list-style:none;background:var(--vs-dropdown-bg);color:var(--vs-dropdown-color)}.vs__no-options{text-align:center}.vs__dropdown-option{line-height:1.42857143;display:block;padding:var(--vs-dropdown-option-padding);clear:both;color:var(--vs-dropdown-option-color);white-space:nowrap;cursor:pointer}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{display:flex;align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{display:inline-flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-left:4px;padding:0;border:0;cursor:pointer;background:none;fill:var(--vs-controls-color);text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--open .vs__selected,.vs--single.vs--loading .vs__selected{position:absolute;opacity:.4}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration,.vs__search::-ms-clear{display:none}.vs__search,.vs__search:focus{color:var(--vs-search-input-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:var(--vs-line-height);font-size:var(--vs-font-size);border:1px solid transparent;border-left:none;outline:none;margin:4px 0 0;padding:0 7px;background:none;box-shadow:none;width:0;max-width:100%;flex-grow:1;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;opacity:0;font-size:5px;text-indent:-9999em;overflow:hidden;border-top:.9em solid rgba(100,100,100,.1);border-right:.9em solid rgba(100,100,100,.1);border-bottom:.9em solid rgba(100,100,100,.1);border-left:.9em solid rgba(60,60,60,.45);transform:translateZ(0) scale(var(--vs-controls--spinner-size, var(--vs-controls-size)));-webkit-animation:vSelectSpinner 1.1s infinite linear;animation:vSelectSpinner 1.1s infinite linear;transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;width:5em;height:5em;transform:scale(var(--vs-controls--spinner-size, var(--vs-controls-size)))}.vs--loading .vs__spinner{opacity:1}.alert[data-v-84b05d12]{text-align:center}
2
- `,document.head.appendChild(yh);const Tt=l.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(t){const e=t,n=l.computed(()=>({col:!e.cols&&!e.xs&&!e.sm&&!e.md&&!e.lg&&!e.xxl,[`col-${e.cols}`]:e.cols,[`col-xs-${e.xs}`]:e.xs,[`col-sm-${e.sm}`]:e.sm,[`col-md-${e.md}`]:e.md,[`col-lg-${e.lg}`]:e.lg,[`col-xxl-${e.xxl}`]:e.xxl,[`${e.orderClass}`]:e.orderClass,[`${e.offsetClass}`]:e.offsetClass,[`${e.class}`]:e.class}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value)},[l.renderSlot(r.$slots,"default")],2))}}),Fi=l.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value)},[l.renderSlot(r.$slots,"default")],2))}}),Sn=l.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["row",e.class])},[l.renderSlot(e.$slots,"default")],2))}}),Mt={XS:"xs",SM:"sm",MD:"md",LG:"lg"},vh=/^https:/i,ro=l.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=l.computed(()=>typeof e.to=="string"&&vh.test(e.to)?"a":typeof e.to!="string"&&typeof l.resolveComponent("router-link")!="string"?"router-link":"div"),r=l.computed(()=>{if(typeof e.to=="string"&&vh.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),l.mergeProps({class:"bd-link"},r.value),{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(e.text),1)])]),_:3},16))}}),z5={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",SUCCESS:"success",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove",NEUTRAL:"neutral"},Qe=l.defineComponent({__name:"BDButton",props:{size:{default:Mt.MD},variant:{default:z5.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",[`${n.class}`]:n.class,disabled:n.disabled})),o=l.computed(()=>n.to?ro:"button"),i=l.computed(()=>{const c={};return n.to?(c.to=n.to,c.role="button"):c.type="submit",c}),s=c=>{e("click",c)};return(c,a)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o.value),l.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),Ee=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},U5={},H5=[l.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function W5(t,e){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({class:"bd-logo"},t.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),H5,16)}const Tc=Ee(U5,[["render",W5]]),K5={},Y5={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},G5=[l.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z"},null,-1)];function Q5(t,e){return l.openBlock(),l.createElementBlock("svg",Y5,G5)}const oa=Ee(K5,[["render",Q5]]),Z5={},J5={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},X5=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function q5(t,e){return l.openBlock(),l.createElementBlock("svg",J5,X5)}const Ic=Ee(Z5,[["render",q5]]),e3={},t3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},n3=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function r3(t,e){return l.openBlock(),l.createElementBlock("svg",t3,n3)}const xc=Ee(e3,[["render",r3]]),o3={},i3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},s3=[l.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1)];function a3(t,e){return l.openBlock(),l.createElementBlock("svg",i3,s3)}const Er=Ee(o3,[["render",a3]]),l3={},c3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},d3=[l.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1)];function u3(t,e){return l.openBlock(),l.createElementBlock("svg",c3,d3)}const Oc=Ee(l3,[["render",u3]]),f3={},h3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},p3=[l.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1)];function m3(t,e){return l.openBlock(),l.createElementBlock("svg",h3,p3)}const Nc=Ee(f3,[["render",m3]]),g3={},y3={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},v3=[l.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1)];function b3(t,e){return l.openBlock(),l.createElementBlock("svg",y3,v3)}const bh=Ee(g3,[["render",b3]]),C3={},E3={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},S3=[l.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function _3(t,e){return l.openBlock(),l.createElementBlock("svg",E3,S3)}const ia=Ee(C3,[["render",_3]]),w3={},k3={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},A3=[l.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function T3(t,e){return l.openBlock(),l.createElementBlock("svg",k3,A3)}const Mc=Ee(w3,[["render",T3]]),I3={},x3={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},O3=[l.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1)];function N3(t,e){return l.openBlock(),l.createElementBlock("svg",x3,O3)}const Ch=Ee(I3,[["render",N3]]),M3={},L3={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},D3=[l.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1)];function P3(t,e){return l.openBlock(),l.createElementBlock("svg",L3,D3)}const sa=Ee(M3,[["render",P3]]),B3={},R3={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},$3=[l.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1)];function V3(t,e){return l.openBlock(),l.createElementBlock("svg",R3,$3)}const Lc=Ee(B3,[["render",V3]]),F3={},j3={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},z3=[l.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1)];function U3(t,e){return l.openBlock(),l.createElementBlock("svg",j3,z3)}const Dc=Ee(F3,[["render",U3]]),H3={},W3={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},K3=[l.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1)];function Y3(t,e){return l.openBlock(),l.createElementBlock("svg",W3,K3)}const $o=Ee(H3,[["render",Y3]]),G3={},Q3={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"},Z3=[l.createStaticVNode('<g transform="matrix(2,0,0,2,0,0)"><path d="M20.25,8.249v-3a1.5,1.5,0,0,0-1.5-1.5h-4" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.25,3.749h-4a1.5,1.5,0,0,0-1.5,1.5v16.5a1.5,1.5,0,0,0,1.5,1.5h6" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.421,4.736a.751.751,0,0,1-.712.513H7.291a.751.751,0,0,1-.712-.513l-1-3A.749.749,0,0,1,6.291.749h8.418a.749.749,0,0,1,.712.987Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11.250 11.249 L23.250 11.249 L23.250 23.249 L11.250 23.249 Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 14.249L20.25 14.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 17.249L20.25 17.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 20.249L16.5 20.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)];function J3(t,e){return l.openBlock(),l.createElementBlock("svg",Q3,Z3)}const Eh=Ee(G3,[["render",J3]]),X3={},q3={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},eb=[l.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1)];function tb(t,e){return l.openBlock(),l.createElementBlock("svg",q3,eb)}const aa=Ee(X3,[["render",tb]]),nb={},rb={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},ob=[l.createElementVNode("path",{d:"M1.139 8.555a8.304 8.304 0 0 1 4.59-7.424A8.198 8.198 0 0 1 9.444.25L9.93.25c4.218.233 7.586 3.6 7.82 7.86v.445-.002a8.197 8.197 0 0 1-.88 3.715 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778a8.197 8.197 0 0 1-.742-3.429zm1.047 7.26L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.7 6.7 0 0 0 .719-3.038l.001-.405c-.19-3.454-2.949-6.213-6.362-6.402h-.446a6.703 6.703 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643z"},null,-1)];function ib(t,e){return l.openBlock(),l.createElementBlock("svg",rb,ob)}const Sh=Ee(nb,[["render",ib]]),sb={},ab={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},lb=[l.createElementVNode("g",{"fill-rule":"nonzero",fill:"none"},[l.createElementVNode("path",{fill:"#4D5875",d:"M10.845 1.872a6.686 6.686 0 0 0-.956-.122h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934 8.43 8.43 0 0 1 .32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.199 8.199 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307z"}),l.createElementVNode("path",{fill:"#30B451",d:"M14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})],-1)];function cb(t,e){return l.openBlock(),l.createElementBlock("svg",ab,lb)}const _h=Ee(sb,[["render",cb]]),db={},ub={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},fb=[l.createElementVNode("path",{d:"M9.889 1.75h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934c.175.603.284 1.235.32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.2 8.2 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307 6.687 6.687 0 0 0-.956-.122zM14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"},null,-1)];function hb(t,e){return l.openBlock(),l.createElementBlock("svg",ub,fb)}const wh=Ee(db,[["render",hb]]),pb={},mb={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve",class:"icon icon-common-file-empty"},gb=[l.createElementVNode("title",null,"common-file-empty",-1),l.createElementVNode("g",null,[l.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
2
+ `,document.head.appendChild(yh);const Tt=l.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(t){const e=t,n=l.computed(()=>({col:!e.cols&&!e.xs&&!e.sm&&!e.md&&!e.lg&&!e.xxl,[`col-${e.cols}`]:e.cols,[`col-xs-${e.xs}`]:e.xs,[`col-sm-${e.sm}`]:e.sm,[`col-md-${e.md}`]:e.md,[`col-lg-${e.lg}`]:e.lg,[`col-xxl-${e.xxl}`]:e.xxl,[`${e.orderClass}`]:e.orderClass,[`${e.offsetClass}`]:e.offsetClass,[`${e.class}`]:e.class}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value)},[l.renderSlot(r.$slots,"default")],2))}}),Fi=l.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value)},[l.renderSlot(r.$slots,"default")],2))}}),_n=l.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["row",e.class])},[l.renderSlot(e.$slots,"default")],2))}}),Mt={XS:"xs",SM:"sm",MD:"md",LG:"lg"},vh=/^https:/i,ro=l.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=l.computed(()=>typeof e.to=="string"&&vh.test(e.to)?"a":typeof e.to!="string"&&typeof l.resolveComponent("router-link")!="string"?"router-link":"div"),r=l.computed(()=>{if(typeof e.to=="string"&&vh.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),l.mergeProps({class:"bd-link"},r.value),{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(e.text),1)])]),_:3},16))}}),z5={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",SUCCESS:"success",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove",NEUTRAL:"neutral"},Qe=l.defineComponent({__name:"BDButton",props:{size:{default:Mt.MD},variant:{default:z5.PRIMARY},blockElement:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},to:{},target:{},text:{},rel:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",[`${n.class}`]:n.class,disabled:n.disabled})),o=l.computed(()=>n.to?ro:"button"),i=l.computed(()=>{const c={};return n.to?(c.to=n.to,c.role="button"):c.type="submit",c}),s=c=>{e("click",c)};return(c,a)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o.value),l.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:l.withCtx(()=>[l.renderSlot(c.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),Ee=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},U5={},H5=[l.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function W5(t,e){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({class:"bd-logo"},t.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),H5,16)}const Tc=Ee(U5,[["render",W5]]),K5={},Y5={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},G5=[l.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z"},null,-1)];function Q5(t,e){return l.openBlock(),l.createElementBlock("svg",Y5,G5)}const oa=Ee(K5,[["render",Q5]]),Z5={},J5={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},X5=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function q5(t,e){return l.openBlock(),l.createElementBlock("svg",J5,X5)}const Ic=Ee(Z5,[["render",q5]]),e3={},t3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},n3=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function r3(t,e){return l.openBlock(),l.createElementBlock("svg",t3,n3)}const xc=Ee(e3,[["render",r3]]),o3={},i3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},s3=[l.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1)];function a3(t,e){return l.openBlock(),l.createElementBlock("svg",i3,s3)}const Er=Ee(o3,[["render",a3]]),l3={},c3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},d3=[l.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1)];function u3(t,e){return l.openBlock(),l.createElementBlock("svg",c3,d3)}const Oc=Ee(l3,[["render",u3]]),f3={},h3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},p3=[l.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1)];function m3(t,e){return l.openBlock(),l.createElementBlock("svg",h3,p3)}const Nc=Ee(f3,[["render",m3]]),g3={},y3={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},v3=[l.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1)];function b3(t,e){return l.openBlock(),l.createElementBlock("svg",y3,v3)}const bh=Ee(g3,[["render",b3]]),C3={},E3={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},S3=[l.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function _3(t,e){return l.openBlock(),l.createElementBlock("svg",E3,S3)}const ia=Ee(C3,[["render",_3]]),w3={},k3={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},A3=[l.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function T3(t,e){return l.openBlock(),l.createElementBlock("svg",k3,A3)}const Mc=Ee(w3,[["render",T3]]),I3={},x3={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},O3=[l.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1)];function N3(t,e){return l.openBlock(),l.createElementBlock("svg",x3,O3)}const Ch=Ee(I3,[["render",N3]]),M3={},L3={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},D3=[l.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1)];function P3(t,e){return l.openBlock(),l.createElementBlock("svg",L3,D3)}const sa=Ee(M3,[["render",P3]]),B3={},R3={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},$3=[l.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1)];function V3(t,e){return l.openBlock(),l.createElementBlock("svg",R3,$3)}const Lc=Ee(B3,[["render",V3]]),F3={},j3={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},z3=[l.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1)];function U3(t,e){return l.openBlock(),l.createElementBlock("svg",j3,z3)}const Dc=Ee(F3,[["render",U3]]),H3={},W3={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},K3=[l.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1)];function Y3(t,e){return l.openBlock(),l.createElementBlock("svg",W3,K3)}const $o=Ee(H3,[["render",Y3]]),G3={},Q3={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"},Z3=[l.createStaticVNode('<g transform="matrix(2,0,0,2,0,0)"><path d="M20.25,8.249v-3a1.5,1.5,0,0,0-1.5-1.5h-4" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.25,3.749h-4a1.5,1.5,0,0,0-1.5,1.5v16.5a1.5,1.5,0,0,0,1.5,1.5h6" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.421,4.736a.751.751,0,0,1-.712.513H7.291a.751.751,0,0,1-.712-.513l-1-3A.749.749,0,0,1,6.291.749h8.418a.749.749,0,0,1,.712.987Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11.250 11.249 L23.250 11.249 L23.250 23.249 L11.250 23.249 Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 14.249L20.25 14.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 17.249L20.25 17.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 20.249L16.5 20.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)];function J3(t,e){return l.openBlock(),l.createElementBlock("svg",Q3,Z3)}const Eh=Ee(G3,[["render",J3]]),X3={},q3={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},eb=[l.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1)];function tb(t,e){return l.openBlock(),l.createElementBlock("svg",q3,eb)}const aa=Ee(X3,[["render",tb]]),nb={},rb={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},ob=[l.createElementVNode("path",{d:"M1.139 8.555a8.304 8.304 0 0 1 4.59-7.424A8.198 8.198 0 0 1 9.444.25L9.93.25c4.218.233 7.586 3.6 7.82 7.86v.445-.002a8.197 8.197 0 0 1-.88 3.715 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778a8.197 8.197 0 0 1-.742-3.429zm1.047 7.26L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.7 6.7 0 0 0 .719-3.038l.001-.405c-.19-3.454-2.949-6.213-6.362-6.402h-.446a6.703 6.703 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643z"},null,-1)];function ib(t,e){return l.openBlock(),l.createElementBlock("svg",rb,ob)}const Sh=Ee(nb,[["render",ib]]),sb={},ab={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},lb=[l.createElementVNode("g",{"fill-rule":"nonzero",fill:"none"},[l.createElementVNode("path",{fill:"#4D5875",d:"M10.845 1.872a6.686 6.686 0 0 0-.956-.122h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934 8.43 8.43 0 0 1 .32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.199 8.199 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307z"}),l.createElementVNode("path",{fill:"#30B451",d:"M14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})],-1)];function cb(t,e){return l.openBlock(),l.createElementBlock("svg",ab,lb)}const _h=Ee(sb,[["render",cb]]),db={},ub={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},fb=[l.createElementVNode("path",{d:"M9.889 1.75h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934c.175.603.284 1.235.32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.2 8.2 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307 6.687 6.687 0 0 0-.956-.122zM14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"},null,-1)];function hb(t,e){return l.openBlock(),l.createElementBlock("svg",ub,fb)}const wh=Ee(db,[["render",hb]]),pb={},mb={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve",class:"icon icon-common-file-empty"},gb=[l.createElementVNode("title",null,"common-file-empty",-1),l.createElementVNode("g",null,[l.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
3
3
  c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
4
4
  c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
5
5
  C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)];function yb(t,e){return l.openBlock(),l.createElementBlock("svg",mb,gb)}const kh=Ee(pb,[["render",yb]]),vb={},bb={version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 24 24",style:{"enable-background":"new 0 0 24 24"},"xml:space":"preserve"},Cb=[l.createElementVNode("title",null,"common-file-warning",-1),l.createElementVNode("g",null,[l.createElementVNode("circle",{cx:"17.249",cy:"20.625",r:"1.125"}),l.createElementVNode("path",{d:`M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3
@@ -53,29 +53,29 @@
53
53
  C194.48,8.24,172.09,1.23,148.13,0.16c1.97,26.33,10.08,50.92,22.88,72.4C175.53,73.86,179.51,76.43,182.48,79.9z"></path><path class="st7" d="M182.54,146.67L182.54,146.67c-0.01-0.01-0.01,0-0.02,0c21.62,28.06,34.51,63.19,34.51,101.35
54
54
  c0,4.78-0.25,9.5-0.64,14.18c37.8-23.48,63.72-64.24,66.74-111.25c-26.87-5.02-51.45-16.5-72.1-32.78L182.54,146.67z"></path><path class="st8" d="M182.52,146.67c-21.86,28.14-34.91,63.46-34.91,101.86c0,11.86,1.27,23.43,3.63,34.59
55
55
  c23.8-1.58,46-9.02,65.15-20.91c0.4-4.68,0.64-9.4,0.64-14.18C217.04,209.86,204.14,174.73,182.52,146.67z"></path><path class="st9" d="M272.67,87.44c-22.45,5.72-43.03,16.06-60.78,29.87l-0.86,0.86c20.64,16.28,45.23,27.76,72.1,32.78
56
- c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z"></path></g></g>`,1)];function h7(t,e){return l.openBlock(),l.createElementBlock("svg",u7,f7)}const jh=Ee(d7,[["render",h7]]),p7={},m7={class:"icon icon-luscii-open luscii-open",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g7=[l.createElementVNode("path",{d:"M7 0.5L13.5 11.5H0.5L7 0.5Z",fill:"#FF8800"},null,-1)];function y7(t,e){return l.openBlock(),l.createElementBlock("svg",m7,g7)}const zh=Ee(p7,[["render",y7]]),v7={},b7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C7=[l.createElementVNode("circle",{cx:"12",cy:"12",r:"6",fill:"#FF6266"},null,-1),l.createElementVNode("circle",{cx:"14.5",cy:"9.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function E7(t,e){return l.openBlock(),l.createElementBlock("svg",b7,C7)}const Uh=Ee(v7,[["render",E7]]),S7={},_7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w7=[l.createElementVNode("path",{d:"M4.92892 13.4142C4.14787 12.6332 4.14787 11.3668 4.92892 10.5858L10.5858 4.92893C11.3668 4.14788 12.6332 4.14788 13.4142 4.92893L19.0711 10.5858C19.8521 11.3668 19.8521 12.6332 19.0711 13.4142L13.4142 19.0711C12.6332 19.8521 11.3668 19.8521 10.5858 19.0711L4.92892 13.4142Z",fill:"#9CA3AF"},null,-1),l.createElementVNode("circle",{cx:"12",cy:"7.05029",r:"1.5",transform:"rotate(-45 12 7.05029)",fill:"white","fill-opacity":"0.1"},null,-1)];function k7(t,e){return l.openBlock(),l.createElementBlock("svg",_7,w7)}const Hh=Ee(S7,[["render",k7]]),A7={},T7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I7=[l.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"#FB923C"},null,-1),l.createElementVNode("circle",{cx:"15.5",cy:"8.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function x7(t,e){return l.openBlock(),l.createElementBlock("svg",T7,I7)}const Wh=Ee(A7,[["render",x7]]),O7={},N7={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},M7=[l.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function L7(t,e){return l.openBlock(),l.createElementBlock("svg",N7,M7)}const zc=Ee(O7,[["render",L7]]),D7={},P7={class:"icon icon-message",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},B7=[l.createElementVNode("path",{d:"M17.75 2.587V12.2a2.355 2.355 0 0 1-2.35 2.35H2.6A2.355 2.355 0 0 1 .25 12.2V2.61v-.023A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337zm-1.572-.327a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zm.072 1.78L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h12.8c.466 0 .85-.384.85-.85V4.04z"},null,-1)];function R7(t,e){return l.openBlock(),l.createElementBlock("svg",P7,B7)}const Kh=Ee(D7,[["render",R7]]),$7={},V7={class:"icon icon-message-forward",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"19",viewBox:"0 0 21 19"},F7=[l.createElementVNode("path",{d:"M17.75 8.755a5.25 5.25 0 1 1-7.395 5.795H2.6A2.355 2.355 0 0 1 .25 12.2V2.587A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337v6.168zm-1.5-.452V4.04L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h7.669a5.25 5.25 0 0 1 5.981-4.747zm-.072-6.043a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zM15.5 17.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5zm-.31-3l.84.841a.75.75 0 1 1-1.06 1.06l-2.122-2.12a.75.75 0 0 1 0-1.061l2.122-2.122a.75.75 0 0 1 1.06 1.061l-.84.841h2.431a.75.75 0 1 1 0 1.5H15.19z"},null,-1)];function j7(t,e){return l.openBlock(),l.createElementBlock("svg",V7,F7)}const Yh=Ee($7,[["render",j7]]),z7={},U7=[l.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zM344 430.4c20.4-2.8 39.7-9.1 57.3-18.2l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4z"},null,-1)];function H7(t,e){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"icon"}),U7,16)}const Gh=Ee(z7,[["render",H7]]),W7={},K7={class:"icon icon-microsoft-teams",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 64 64"},Y7=[l.createStaticVNode('<path d="M42 40.531V27.205A1.204 1.204 0 0143.204 26h13.494A2.302 2.302 0 0159 28.302v12.23A8.469 8.469 0 0150.531 49h-.062A8.469 8.469 0 0142 40.531z" fill="#5059c9"></path><circle cx="50.5" cy="17.5" r="5.5" fill="#5059c9"></circle><path d="M49.855 49.622q-.17-.008-.35-.022.174.015.35.022zm.157.005l-.077-.002z" fill="#5059c9"></path><circle cx="33" cy="15" r="8" fill="#7b83eb"></circle><path d="M45.667 26H22.333A2.32 2.32 0 0020 28.308v13.846a14 14 0 0028 0V28.308A2.32 2.32 0 0045.667 26z" fill="#7b83eb"></path><path d="M33 26v20.67a1.734 1.734 0 01-.04.4A2.314 2.314 0 0130.67 49h-8.83a10.81 10.81 0 01-.53-1c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M34 26v18.67A3.362 3.362 0 0130.67 48h-9.36c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67v2.61a8.355 8.355 0 01-2 0A8.02 8.02 0 0125.58 18a8.353 8.353 0 01-.33-1h5.42A3.342 3.342 0 0134 20.33z" opacity=".1"></path><path d="M33 26v18.67A2.326 2.326 0 0130.67 47h-9.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M32 20.33v2.61A8.02 8.02 0 0125.58 18h4.09A2.326 2.326 0 0132 20.33zM22.33 26H32v18.67A2.326 2.326 0 0129.67 47h-8.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26z" opacity=".1"></path><rect x="4" y="18" width="28" height="28" rx="2.333" fill="#4b53bc"></rect><path d="M24.008 26.528h-4.564v13.028h-2.909V26.528h-4.543V24h12.016z" fill="#fff"></path>',11)];function G7(t,e){return l.openBlock(),l.createElementBlock("svg",K7,Y7)}const Qh=Ee(W7,[["render",G7]]),Q7={},Z7={class:"icon icon-min",viewBox:"0 0 21 2",width:"21",height:"2",xmlns:"http://www.w3.org/2000/svg"},J7=[l.createElementVNode("path",{d:"M1.525 2h18.05a1 1 0 0 0 0-2H1.525a1 1 0 0 0 0 2z"},null,-1)];function X7(t,e){return l.openBlock(),l.createElementBlock("svg",Z7,J7)}const Zh=Ee(Q7,[["render",X7]]),q7={},e8={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},t8=[l.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function n8(t,e){return l.openBlock(),l.createElementBlock("svg",e8,t8)}const Uc=Ee(q7,[["render",n8]]),r8={},o8={class:"icon icon-plus",width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"},i8=[l.createElementVNode("path",{d:"M11.604 7.675H7.027v4.807H4.888V7.675h-4.6V5.628h4.6V.844h2.139v4.784h4.577z"},null,-1)];function s8(t,e){return l.openBlock(),l.createElementBlock("svg",o8,i8)}const da=Ee(r8,[["render",s8]]),a8={},l8={class:"icon icon-refresh",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},c8=[l.createElementVNode("path",{d:"M15.107 5.34l-2.012-1.891a5.795 5.795 0 0 0-9.563 2.163.75.75 0 0 1-1.414-.5 7.295 7.295 0 0 1 12.021-2.74l2.111 1.983v-2.63a.75.75 0 1 1 1.5 0V6.09a.75.75 0 0 1-.75.75h-4.364a.75.75 0 0 1 0-1.5h2.47zM1.75 10.731v2.63a.75.75 0 0 1-1.5 0V8.998a.75.75 0 0 1 .75-.75h4.364a.75.75 0 1 1 0 1.5h-2.47l2.011 1.891a5.795 5.795 0 0 0 9.563-2.164.75.75 0 0 1 1.414.5 7.295 7.295 0 0 1-12.021 2.74L1.75 10.733z"},null,-1)];function d8(t,e){return l.openBlock(),l.createElementBlock("svg",l8,c8)}const Jh=Ee(a8,[["render",d8]]),u8={},f8={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},h8=[l.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function p8(t,e){return l.openBlock(),l.createElementBlock("svg",f8,h8)}const ji=Ee(u8,[["render",p8]]),m8={},g8={"xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-sananet",viewBox:"0 0 145.82668 130.58667",height:"130.58667",width:"145.82668","xml:space":"preserve",id:"svg2",version:"1.1"},y8={id:"metadata8"},v8=l.createStaticVNode('<defs id="defs6"><clipPath id="clipPath32" clipPathUnits="userSpaceOnUse"><path id="path30" d="M 0,0 H 1094 V 979 H 0 Z"></path></clipPath><clipPath id="clipPath38" clipPathUnits="userSpaceOnUse"><path id="path36" d="m 726.516,800.508 c 0,-98.836 -80.121,-178.938 -178.938,-178.938 -98.816,0 -178.926,80.102 -178.926,178.938 0,98.808 80.11,178.918 178.926,178.918 98.817,0 178.938,-80.11 178.938,-178.918 z"></path></clipPath><radialGradient id="radialGradient46" spreadMethod="pad" gradientTransform="matrix(390.284,0,0,-390.284,547.578,925.479)" gradientUnits="userSpaceOnUse" r="1" cy="0" cx="0" fy="0.151961" fx="-0.24949799"><stop id="stop40" offset="0" style="stop-opacity:1;stop-color:#ffffff;"></stop><stop id="stop42" offset="0.715" style="stop-opacity:1;stop-color:#f5772a;"></stop><stop id="stop44" offset="1" style="stop-opacity:1;stop-color:#f5772a;"></stop></radialGradient></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,130.58667)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill:#bfc1e2;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="M 546.836,0 C 250.422,0 0,111.121 0,242.648 c 0,43.133 26.418,84.11 72.6016,119.688 -17.586,-23.32 -27.0821,-48.32 -27.0821,-74.328 0,-127.442 220.2035,-227.2736 501.3165,-227.2736 281.102,0 501.304,99.8316 501.304,227.2736 0,26.008 -9.5,51.015 -27.09,74.336 46.19,-35.586 72.61,-76.563 72.61,-119.696 C 1093.66,111.121 843.242,0 546.836,0"></path><path id="path16" style="fill:#9ba1d3;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,125.039 c -195.918,0 -361.433,66.113 -361.433,144.367 0,29.305 22.75,56.942 61.714,80.028 -17.468,-16.329 -27.097,-34.356 -27.097,-53.274 0,-74.39 143.554,-132.664 326.816,-132.664 183.289,0 326.875,58.274 326.875,132.664 0,18.879 -9.59,36.86 -26.98,53.156 38.843,-23.066 61.519,-50.656 61.519,-79.91 0,-78.254 -165.508,-144.367 -361.414,-144.367"></path><path id="path18" style="fill:#516ab4;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,205.82 c -118.73,0 -219.031,39.27 -219.031,85.754 0,12.711 7.39,24.91 20.625,35.906 -3.379,-6.242 -5.156,-12.773 -5.156,-19.5 0,-47.296 89.414,-84.335 203.562,-84.335 114.133,0 203.535,37.039 203.535,84.335 0,6.727 -1.777,13.243 -5.144,19.481 13.211,-10.996 20.593,-23.176 20.593,-35.887 0,-46.484 -100.285,-85.754 -218.984,-85.754"></path><path id="path20" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 423.379,332.805 c -6.934,-6.223 -10.801,-12.989 -10.801,-19.953 0,-28.321 61.387,-52.247 134.043,-52.247 72.637,0 133.992,23.926 133.992,52.247 0,6.925 -3.816,13.652 -10.672,19.843 1.36,-3.152 2.063,-6.418 2.063,-9.765 0,-29.258 -55.078,-52.168 -125.383,-52.168 -70.293,0 -125.351,22.91 -125.351,52.168 0,3.39 0.722,6.687 2.109,9.875"></path><path id="path22" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 358.75,618.84 c 0,0 144.551,-54.758 144.551,-297.871 h -24.102 c 0,0 -2.187,205.886 -124.824,219.019 l 4.375,78.852"></path><path id="path24" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 735.313,618.84 c 0,0 -144.551,-54.758 -144.551,-297.871 h 24.101 c 0,0 2.188,205.886 124.832,219.019 l -4.382,78.852"></path><g id="g26"><g clip-path="url(#clipPath32)" id="g28"><g clip-path="url(#clipPath38)" id="g34"><path id="path48" style="fill:url(#radialGradient46);fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 536,621 v 1 h -11 v 1 h -6 v 1 h -7 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -3 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 3 h -1 v 3 h -1 v 2 h -1 v 3 h -1 v 4 h -1 v 3 h -1 v 4 h -1 v 4 h -1 v 5 h -1 v 6 h -1 v 7 h -1 v 11 h -1 v 21 h 1 v 11 h 1 v 7 h 1 v 6 h 1 v 5 h 1 v 4 h 1 v 4 h 1 v 3 h 1 v 4 h 1 v 3 h 1 v 2 h 1 v 3 h 1 v 3 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 3 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 7 v 1 h 7 v 1 h 44 v -1 h 6 v -1 h 7 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -6 h 1 v -7 h 1 v -10 h 1 v -25 h -1 v -10 h -1 v -7 h -1 v -6 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -7 v -1 h -6 v -1 h -11 v -1"></path></g></g></g></g></g>',2);function b8(t,e){const n=l.resolveComponent("dc:format"),r=l.resolveComponent("dc:type"),o=l.resolveComponent("cc:Work"),i=l.resolveComponent("rdf:RDF");return l.openBlock(),l.createElementBlock("svg",g8,[l.createElementVNode("metadata",y8,[l.createVNode(i,null,{default:l.withCtx(()=>[l.createVNode(o,{"rdf:about":""},{default:l.withCtx(()=>[l.createVNode(n,null,{default:l.withCtx(()=>[l.createTextVNode("image/svg+xml")]),_:1}),l.createVNode(r,{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})]),_:1})]),_:1})]),v8])}const Xh=Ee(m8,[["render",b8]]),C8={},E8={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},S8=[l.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function _8(t,e){return l.openBlock(),l.createElementBlock("svg",E8,S8)}const qh=Ee(C8,[["render",_8]]),w8={},k8={class:"icon icon-share-screen",width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"},A8=[l.createElementVNode("path",{d:"M-1.31134e-07 12.9961C-5.87372e-08 14.6523 1.34375 15.9961 3 15.9961L9 15.9961C10.6562 15.9961 12 14.6523 12 12.9961L12 10.3711C12 10.1836 11.8437 9.99609 11.625 9.99609L10.875 9.99609C10.6875 9.99609 10.5 10.1836 10.5 10.3711L10.5 12.9961C10.5 13.8398 9.84375 14.4961 9 14.4961L3 14.4961C2.1875 14.4961 1.5 13.8398 1.5 12.9961L1.5 10.3711C1.5 10.1836 1.34375 9.99609 1.125 9.99609L0.375 9.99609C0.1875 9.99609 -2.54072e-07 10.1836 -2.45877e-07 10.3711L-1.31134e-07 12.9961ZM0.625 5.77734L1.25 6.40234C1.375 6.55859 1.625 6.55859 1.78125 6.40234L5.1875 2.87109L5.1875 10.6211C5.1875 10.8398 5.375 10.9961 5.5625 10.9961L6.4375 10.9961C6.65625 10.9961 6.8125 10.8398 6.8125 10.6211L6.8125 2.87109L10.25 6.40234C10.4062 6.55859 10.6562 6.55859 10.7812 6.40234L11.4062 5.77734C11.5625 5.65234 11.5625 5.40234 11.4062 5.24609L6.28125 0.121093C6.125 -0.0351565 5.90625 -0.0351565 5.75 0.121093L0.625 5.24609C0.46875 5.40234 0.46875 5.65234 0.625 5.77734Z"},null,-1)];function T8(t,e){return l.openBlock(),l.createElementBlock("svg",k8,A8)}const ep=Ee(w8,[["render",T8]]),I8={},x8={xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 18 18",width:"18",height:"18"},O8=[l.createElementVNode("g",{transform:"matrix(0.75,0,0,0.75,0,0)"},[l.createElementVNode("path",{d:"M6.750 6.000 A5.250 5.250 0 1 0 17.250 6.000 A5.250 5.250 0 1 0 6.750 6.000 Z",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),l.createElementVNode("path",{d:"M2.25,23.25a9.75,9.75,0,0,1,19.5,0",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)];function N8(t,e){return l.openBlock(),l.createElementBlock("svg",x8,O8)}const tp=Ee(I8,[["render",N8]]),M8={},L8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},D8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function P8(t,e){return l.openBlock(),l.createElementBlock("svg",L8,D8)}const np=Ee(M8,[["render",P8]]),B8={},R8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},$8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function V8(t,e){return l.openBlock(),l.createElementBlock("svg",R8,$8)}const Hc=Ee(B8,[["render",V8]]),F8={},j8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},z8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function U8(t,e){return l.openBlock(),l.createElementBlock("svg",j8,z8)}const Wc=Ee(F8,[["render",U8]]),H8={},W8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},K8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function Y8(t,e){return l.openBlock(),l.createElementBlock("svg",W8,K8)}const Kc=Ee(H8,[["render",Y8]]),G8={},Q8={class:"icon icon-triangle-down",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",viewBox:"0 0 12 8"},Z8=[l.createElementVNode("path",{d:"M11.071 2.414L6.414 7.071a1 1 0 0 1-1.414 0L.343 2.414A1 1 0 0 1 1.05.707h9.314a1 1 0 0 1 .707 1.707z"},null,-1)];function J8(t,e){return l.openBlock(),l.createElementBlock("svg",Q8,Z8)}const rp=Ee(G8,[["render",J8]]),X8={},q8={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e6=[l.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function t6(t,e){return l.openBlock(),l.createElementBlock("svg",q8,e6)}const Yc=Ee(X8,[["render",t6]]),n6={},r6={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},o6=[l.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function i6(t,e){return l.openBlock(),l.createElementBlock("svg",r6,o6)}const Gc=Ee(n6,[["render",i6]]),s6={},a6={class:"icon icon-videocall",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14"},l6=[l.createElementVNode("path",{d:"M12.673.25c1.48 0 2.68 1.186 2.68 2.648V4.16l2.76-1.82a.733.733 0 0 1 1.13.502l.007.1v7.703a.73.73 0 0 1-1.035.657l-2.862-1.298v.598c0 1.462-1.2 2.648-2.68 2.648H2.93C1.45 13.25.25 12.064.25 10.602V2.898C.25 1.436 1.45.25 2.93.25h9.743zm0 1.444H2.93a1.21 1.21 0 0 0-1.217 1.204v7.704a1.21 1.21 0 0 0 1.217 1.204h9.744a1.21 1.21 0 0 0 1.218-1.204V5.53 2.898a1.21 1.21 0 0 0-1.218-1.204zm5.115 2.597l-2.435 1.605v2.519l2.435 1.104V4.291z"},null,-1)];function c6(t,e){return l.openBlock(),l.createElementBlock("svg",a6,l6)}const op=Ee(s6,[["render",c6]]),d6={},u6=[l.createElementVNode("path",{d:"M14.1719 4.1875C14.2422 4.1875 14.2773 4.22266 14.3125 4.25781V8.26562L16 9.56641V8.23047L19.9375 5.76953V12.6602L21.5898 13.9609C21.5898 13.8906 21.625 13.8555 21.625 13.7852V4.75C21.625 4.08203 21.0625 3.625 20.4648 3.625C20.2539 3.625 20.043 3.69531 19.832 3.83594L16 6.26172V4.1875C16 3.27344 15.1562 2.5 14.1719 2.5H6.96484L9.10938 4.1875H14.1719ZM22.5391 16.8086L17.0898 12.5898L14.3125 10.4102L4.29297 2.57031L4.22266 2.5L1.51562 0.390625C1.26953 0.179688 0.917969 0.25 0.707031 0.460938L0.355469 0.917969C0.179688 1.16406 0.214844 1.51562 0.460938 1.69141L2.00781 2.92188L3.37891 4.01172L21.4844 18.1445C21.6953 18.3203 22.082 18.2852 22.2578 18.0391L22.6094 17.6172C22.8203 17.3711 22.75 17.0195 22.5391 16.8086ZM3.16797 14.3125C3.09766 14.3125 3.0625 14.3125 3.0625 14.2773V5.875L1.375 4.57422V14.3477C1.375 15.2617 2.18359 16 3.16797 16H14.1719C14.6641 16 15.0859 15.8242 15.4023 15.543L13.8555 14.3125H3.16797Z"},null,-1)];function f6(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{class:"icon icon-video-disabled",width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),u6,16)}const ip=Ee(d6,[["render",f6]]),h6={},p6={width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-zorgkaart-nederland"},m6=[l.createStaticVNode('<path d="M61.5 38.1C60 38.1 58.8 36.9 58.8 35.4C58.8 33.9 60 32.7 61.5 32.7C63 32.7 64.2 33.9 64.2 35.4C64.2 36.9 63 38.1 61.5 38.1Z" fill="#F29018"></path><path d="M68.1 38.1C66.6 38.1 65.4 36.9 65.4 35.4C65.4 33.9 66.6 32.7 68.1 32.7C69.6 32.7 70.8 33.9 70.8 35.4C70.8 36.9 69.6 38.1 68.1 38.1Z" fill="#F29018"></path><path d="M74.6 38.1C73.1 38.1 71.9 36.9 71.9 35.4C71.9 33.9 73.1 32.7 74.6 32.7C76.1 32.7 77.3 33.9 77.3 35.4C77.3 36.9 76.1 38.1 74.6 38.1Z" fill="#F29018"></path><path d="M81.1 38.1C79.6 38.1 78.4 36.9 78.4 35.4C78.4 33.9 79.6 32.7 81.1 32.7C82.6 32.7 83.8 33.9 83.8 35.4C83.8 36.9 82.6 38.1 81.1 38.1Z" fill="#F29018"></path><path d="M61.5 44.6C60 44.6 58.8 43.4 58.8 41.9C58.8 40.4 60 39.2 61.5 39.2C63 39.2 64.2 40.4 64.2 41.9C64.2 43.4 63 44.6 61.5 44.6Z" fill="#F29018"></path><path d="M68.1 44.6C66.6 44.6 65.4 43.4 65.4 41.9C65.4 40.4 66.6 39.2 68.1 39.2C69.6 39.2 70.8 40.4 70.8 41.9C70.8 43.4 69.6 44.6 68.1 44.6Z" fill="#F29018"></path><path d="M74.6 44.6C73.1 44.6 71.9 43.4 71.9 41.9C71.9 40.4 73.1 39.2 74.6 39.2C76.1 39.2 77.3 40.4 77.3 41.9C77.3 43.4 76.1 44.6 74.6 44.6Z" fill="#F29018"></path><path d="M61.5 51.2C60 51.2 58.8 50 58.8 48.5C58.8 47 60 45.8 61.5 45.8C63 45.8 64.2 47 64.2 48.5C64.2 50 63 51.2 61.5 51.2Z" fill="#F29018"></path><path d="M68.1 51.2C66.6 51.2 65.4 50 65.4 48.5C65.4 47 66.6 45.8 68.1 45.8C69.6 45.8 70.8 47 70.8 48.5C70.8 50 69.6 51.2 68.1 51.2Z" fill="#F29018"></path><path d="M74.6 51.2C73.1 51.2 71.9 50 71.9 48.5C71.9 47 73.1 45.8 74.6 45.8C76.1 45.8 77.3 47 77.3 48.5C77.3 50 76.1 51.2 74.6 51.2Z" fill="#F29018"></path><path d="M61.5 57.7C60 57.7 58.8 56.5 58.8 55C58.8 53.5 60 52.3 61.5 52.3C63 52.3 64.2 53.5 64.2 55C64.2 56.5 63 57.7 61.5 57.7Z" fill="#F29018"></path><path d="M68.1 57.7C66.6 57.7 65.4 56.5 65.4 55C65.4 53.5 66.6 52.3 68.1 52.3C69.6 52.3 70.8 53.5 70.8 55C70.8 56.5 69.6 57.7 68.1 57.7Z" fill="#F29018"></path><path d="M74.6 57.7C73.1 57.7 71.9 56.5 71.9 55C71.9 53.5 73.1 52.3 74.6 52.3C76.1 52.3 77.3 53.5 77.3 55C77.3 56.5 76.1 57.7 74.6 57.7Z" fill="#F29018"></path><path d="M41.9 57.7C40.4 57.7 39.2 56.5 39.2 55C39.2 53.5 40.4 52.3 41.9 52.3C43.4 52.3 44.6 53.5 44.6 55C44.6 56.5 43.4 57.7 41.9 57.7Z" fill="#F29018"></path><path d="M35.4 57.7C33.9 57.7 32.7 56.5 32.7 55C32.7 53.5 33.9 52.3 35.4 52.3C36.9 52.3 38.1 53.5 38.1 55C38.1 56.5 36.9 57.7 35.4 57.7Z" fill="#F29018"></path><path d="M41.9 51.2C40.4 51.2 39.2 50 39.2 48.5C39.2 47 40.4 45.8 41.9 45.8C43.4 45.8 44.6 47 44.6 48.5C44.6 50 43.4 51.2 41.9 51.2Z" fill="#F29018"></path><path d="M35.4 51.2C33.9 51.2 32.7 50 32.7 48.5C32.7 47 33.9 45.8 35.4 45.8C36.9 45.8 38.1 47 38.1 48.5C38.1 50 36.9 51.2 35.4 51.2Z" fill="#F29018"></path><path d="M41.9 44.6C40.4 44.6 39.2 43.4 39.2 41.9C39.2 40.4 40.4 39.2 41.9 39.2C43.4 39.2 44.6 40.4 44.6 41.9C44.6 43.4 43.4 44.6 41.9 44.6Z" fill="#F29018"></path><path d="M35.4 44.6C33.9 44.6 32.7 43.4 32.7 41.9C32.7 40.4 33.9 39.2 35.4 39.2C36.9 39.2 38.1 40.4 38.1 41.9C38.1 43.4 36.9 44.6 35.4 44.6Z" fill="#F29018"></path><path d="M41.9 38.1C40.4 38.1 39.2 36.9 39.2 35.4C39.2 33.9 40.4 32.7 41.9 32.7C43.4 32.7 44.6 33.9 44.6 35.4C44.6 36.9 43.4 38.1 41.9 38.1Z" fill="#F29018"></path><path d="M35.4 38.1C33.9 38.1 32.7 36.9 32.7 35.4C32.7 33.9 33.9 32.7 35.4 32.7C36.9 32.7 38.1 33.9 38.1 35.4C38.1 36.9 36.9 38.1 35.4 38.1Z" fill="#F29018"></path><path d="M48.4 57.7C46.9 57.7 45.7 56.5 45.7 55C45.7 53.5 46.9 52.3 48.4 52.3C49.9 52.3 51.1 53.5 51.1 55C51.2 56.5 49.9 57.7 48.4 57.7Z" fill="#F29018"></path><path d="M55 57.7C53.5 57.7 52.3 56.5 52.3 55C52.3 53.5 53.5 52.3 55 52.3C56.5 52.3 57.7 53.5 57.7 55C57.7 56.5 56.5 57.7 55 57.7Z" fill="#F29018"></path><path d="M61.5 64.3C60 64.3 58.8 63.1 58.8 61.6C58.8 60.1 60 58.9 61.5 58.9C63 58.9 64.2 60.1 64.2 61.6C64.2 63 63 64.3 61.5 64.3Z" fill="#F29018"></path><path d="M68.1 64.3C66.6 64.3 65.4 63.1 65.4 61.6C65.4 60.1 66.6 58.9 68.1 58.9C69.6 58.9 70.8 60.1 70.8 61.6C70.8 63 69.6 64.3 68.1 64.3Z" fill="#F29018"></path><path d="M74.6 64.3C73.1 64.3 71.9 63.1 71.9 61.6C71.9 60.1 73.1 58.9 74.6 58.9C76.1 58.9 77.3 60.1 77.3 61.6C77.3 63 76.1 64.3 74.6 64.3Z" fill="#F29018"></path><path d="M41.9 64.3C40.4 64.3 39.2 63.1 39.2 61.6C39.2 60.1 40.4 58.9 41.9 58.9C43.4 58.9 44.6 60.1 44.6 61.6C44.6 63 43.4 64.3 41.9 64.3Z" fill="#F29018"></path><path d="M35.4 64.3C33.9 64.3 32.7 63.1 32.7 61.6C32.7 60.1 33.9 58.9 35.4 58.9C36.9 58.9 38.1 60 38.1 61.5C38.1 63 36.9 64.3 35.4 64.3Z" fill="#F29018"></path><path d="M28.8 64.3C27.3 64.3 26.1 63.1 26.1 61.6C26.1 60.1 27.3 58.9 28.8 58.9C30.3 58.9 31.5 60.1 31.5 61.6C31.5 63 30.3 64.3 28.8 64.3Z" fill="#F29018"></path><path d="M48.4 64.3C46.9 64.3 45.7 63.1 45.7 61.6C45.7 60.1 46.9 58.9 48.4 58.9C49.9 58.9 51.1 60.1 51.1 61.6C51.2 63 49.9 64.3 48.4 64.3Z" fill="#F29018"></path><path d="M55 64.3C53.5 64.3 52.3 63.1 52.3 61.6C52.3 60.1 53.5 58.9 55 58.9C56.5 58.9 57.7 60.1 57.7 61.6C57.7 63 56.5 64.3 55 64.3Z" fill="#F29018"></path><path d="M61.5 70.8C60 70.8 58.8 69.6 58.8 68.1C58.8 66.6 60 65.4 61.5 65.4C63 65.4 64.2 66.6 64.2 68.1C64.2 69.6 63 70.8 61.5 70.8Z" fill="#F29018"></path><path d="M68.1 70.8C66.6 70.8 65.4 69.6 65.4 68.1C65.4 66.6 66.6 65.4 68.1 65.4C69.6 65.4 70.8 66.6 70.8 68.1C70.8 69.6 69.6 70.8 68.1 70.8Z" fill="#F29018"></path><path d="M74.6 70.8C73.1 70.8 71.9 69.6 71.9 68.1C71.9 66.6 73.1 65.4 74.6 65.4C76.1 65.4 77.3 66.6 77.3 68.1C77.3 69.6 76.1 70.8 74.6 70.8Z" fill="#F29018"></path><path d="M41.9 70.8C40.4 70.8 39.2 69.6 39.2 68.1C39.2 66.6 40.4 65.4 41.9 65.4C43.4 65.4 44.6 66.6 44.6 68.1C44.6 69.6 43.4 70.8 41.9 70.8Z" fill="#F29018"></path><path d="M35.4 70.8C33.9 70.8 32.7 69.6 32.7 68.1C32.7 66.6 33.9 65.4 35.4 65.4C36.9 65.4 38.1 66.6 38.1 68.1C38.1 69.6 36.9 70.8 35.4 70.8Z" fill="#F29018"></path><path d="M28.8 70.8C27.3 70.8 26.1 69.6 26.1 68.1C26.1 66.6 27.3 65.4 28.8 65.4C30.3 65.4 31.5 66.6 31.5 68.1C31.5 69.6 30.3 70.8 28.8 70.8Z" fill="#F29018"></path><path d="M48.4 70.8C46.9 70.8 45.7 69.6 45.7 68.1C45.7 66.6 46.9 65.4 48.4 65.4C49.9 65.4 51.1 66.6 51.1 68.1C51.2 69.6 49.9 70.8 48.4 70.8Z" fill="#F29018"></path><path d="M55 70.8C53.5 70.8 52.3 69.6 52.3 68.1C52.3 66.6 53.5 65.4 55 65.4C56.5 65.4 57.7 66.6 57.7 68.1C57.7 69.6 56.5 70.8 55 70.8Z" fill="#F29018"></path><path d="M55 77.3C53.5 77.3 52.3 76.1 52.3 74.6C52.3 73.1 53.5 71.9 55 71.9C56.5 71.9 57.7 73.1 57.7 74.6C57.7 76.1 56.5 77.3 55 77.3Z" fill="#F29018"></path><path d="M61.5 77.3C60 77.3 58.8 76.1 58.8 74.6C58.8 73.1 60 71.9 61.5 71.9C63 71.9 64.2 73.1 64.2 74.6C64.2 76.1 63 77.3 61.5 77.3Z" fill="#F29018"></path><path d="M68.1 77.3C66.6 77.3 65.4 76.1 65.4 74.6C65.4 73.1 66.6 71.9 68.1 71.9C69.6 71.9 70.8 73.1 70.8 74.6C70.8 76.1 69.6 77.3 68.1 77.3Z" fill="#F29018"></path><path d="M35.4 77.3C33.9 77.3 32.7 76.1 32.7 74.6C32.7 73.1 33.9 71.9 35.4 71.9C36.9 71.9 38.1 73.1 38.1 74.6C38.1 76.1 36.9 77.3 35.4 77.3Z" fill="#F29018"></path><path d="M28.8 77.3C27.3 77.3 26.1 76.1 26.1 74.6C26.1 73.1 27.3 71.9 28.8 71.9C30.3 71.9 31.5 73.1 31.5 74.6C31.5 76.1 30.3 77.3 28.8 77.3Z" fill="#F29018"></path><path d="M22.3 77.3C20.8 77.3 19.6 76.1 19.6 74.6C19.6 73.1 20.8 71.9 22.3 71.9C23.8 71.9 25 73.1 25 74.6C25 76.1 23.8 77.3 22.3 77.3Z" fill="#F29018"></path><path d="M41.9 77.3C40.4 77.3 39.2 76.1 39.2 74.6C39.2 73.1 40.4 71.9 41.9 71.9C43.4 71.9 44.6 73.1 44.6 74.6C44.6 76.1 43.4 77.3 41.9 77.3Z" fill="#F29018"></path><path d="M48.4 77.3C46.9 77.3 45.7 76.1 45.7 74.6C45.7 73.1 46.9 71.9 48.4 71.9C49.9 71.9 51.1 73.1 51.1 74.6C51.2 76.1 49.9 77.3 48.4 77.3Z" fill="#F29018"></path><path d="M55 83.9C53.5 83.9 52.3 82.7 52.3 81.2C52.3 79.7 53.5 78.5 55 78.5C56.5 78.5 57.7 79.7 57.7 81.2C57.7 82.7 56.5 83.9 55 83.9Z" fill="#F29018"></path><path d="M61.5 83.9C60 83.9 58.8 82.7 58.8 81.2C58.8 79.7 60 78.5 61.5 78.5C63 78.5 64.2 79.7 64.2 81.2C64.2 82.7 63 83.9 61.5 83.9Z" fill="#F29018"></path><path d="M68.1 83.9C66.6 83.9 65.4 82.7 65.4 81.2C65.4 79.7 66.6 78.5 68.1 78.5C69.6 78.5 70.8 79.7 70.8 81.2C70.8 82.7 69.6 83.9 68.1 83.9Z" fill="#F29018"></path><path d="M35.4 83.9C33.9 83.9 32.7 82.7 32.7 81.2C32.7 79.7 33.9 78.5 35.4 78.5C36.9 78.5 38.1 79.7 38.1 81.2C38.1 82.7 36.9 83.9 35.4 83.9Z" fill="#F29018"></path><path d="M28.8 83.9C27.3 83.9 26.1 82.7 26.1 81.2C26.1 79.7 27.3 78.5 28.8 78.5C30.3 78.5 31.5 79.7 31.5 81.2C31.5 82.7 30.3 83.9 28.8 83.9Z" fill="#F29018"></path><path d="M22.3 83.9C20.8 83.9 19.6 82.7 19.6 81.2C19.6 79.7 20.8 78.5 22.3 78.5C23.8 78.5 25 79.7 25 81.2C25 82.7 23.8 83.9 22.3 83.9Z" fill="#F29018"></path><path d="M41.9 83.9C40.4 83.9 39.2 82.7 39.2 81.2C39.2 79.7 40.4 78.5 41.9 78.5C43.4 78.5 44.6 79.7 44.6 81.2C44.6 82.7 43.4 83.9 41.9 83.9Z" fill="#F29018"></path><path d="M48.4 83.9C46.9 83.9 45.7 82.7 45.7 81.2C45.7 79.7 46.9 78.5 48.4 78.5C49.9 78.5 51.1 79.7 51.1 81.2C51.2 82.7 49.9 83.9 48.4 83.9Z" fill="#F29018"></path><path d="M55 90.4C53.5 90.4 52.3 89.2 52.3 87.7C52.3 86.2 53.5 85 55 85C56.5 85 57.7 86.2 57.7 87.7C57.7 89.2 56.5 90.4 55 90.4Z" fill="#F29018"></path><path d="M61.5 90.4C60 90.4 58.8 89.2 58.8 87.7C58.8 86.2 60 85 61.5 85C63 85 64.2 86.2 64.2 87.7C64.2 89.2 63 90.4 61.5 90.4Z" fill="#F29018"></path><path d="M68.1 90.4C66.6 90.4 65.4 89.2 65.4 87.7C65.4 86.2 66.6 85 68.1 85C69.6 85 70.8 86.2 70.8 87.7C70.8 89.2 69.6 90.4 68.1 90.4Z" fill="#F29018"></path><path d="M74.6 90.4C73.1 90.4 71.9 89.2 71.9 87.7C71.9 86.2 73.1 85 74.6 85C76.1 85 77.3 86.2 77.3 87.7C77.3 89.2 76.1 90.4 74.6 90.4Z" fill="#F29018"></path><path d="M35.4 90.4C33.9 90.4 32.7 89.2 32.7 87.7C32.7 86.2 33.9 85 35.4 85C36.9 85 38.1 86.2 38.1 87.7C38.1 89.2 36.9 90.4 35.4 90.4Z" fill="#F29018"></path><path d="M28.8 90.4C27.3 90.4 26.1 89.2 26.1 87.7C26.1 86.2 27.3 85 28.8 85C30.3 85 31.5 86.2 31.5 87.7C31.5 89.2 30.3 90.4 28.8 90.4Z" fill="#F29018"></path><path d="M22.3 90.4C20.8 90.4 19.6 89.2 19.6 87.7C19.6 86.2 20.8 85 22.3 85C23.8 85 25 86.2 25 87.7C25 89.2 23.8 90.4 22.3 90.4Z" fill="#F29018"></path><path d="M15.8 90.4C14.3 90.4 13.1 89.2 13.1 87.7C13.1 86.2 14.3 85 15.8 85C17.3 85 18.5 86.2 18.5 87.7C18.5 89.2 17.3 90.4 15.8 90.4Z" fill="#F29018"></path><path d="M41.9 90.4C40.4 90.4 39.2 89.2 39.2 87.7C39.2 86.2 40.4 85 41.9 85C43.4 85 44.6 86.2 44.6 87.7C44.6 89.2 43.4 90.4 41.9 90.4Z" fill="#F29018"></path><path d="M48.4 90.4C46.9 90.4 45.7 89.2 45.7 87.7C45.7 86.2 46.9 85 48.4 85C49.9 85 51.1 86.2 51.1 87.7C51.2 89.2 49.9 90.4 48.4 90.4Z" fill="#F29018"></path><path d="M55 96.9C53.5 96.9 52.3 95.7 52.3 94.2C52.3 92.7 53.5 91.5 55 91.5C56.5 91.5 57.7 92.7 57.7 94.2C57.7 95.7 56.5 96.9 55 96.9Z" fill="#F29018"></path><path d="M61.5 96.9C60 96.9 58.8 95.7 58.8 94.2C58.8 92.7 60 91.5 61.5 91.5C63 91.5 64.2 92.7 64.2 94.2C64.2 95.7 63 96.9 61.5 96.9Z" fill="#F29018"></path><path d="M68.1 96.9C66.6 96.9 65.4 95.7 65.4 94.2C65.4 92.7 66.6 91.5 68.1 91.5C69.6 91.5 70.8 92.7 70.8 94.2C70.8 95.7 69.6 96.9 68.1 96.9Z" fill="#F29018"></path><path d="M74.6 96.9C73.1 96.9 71.9 95.7 71.9 94.2C71.9 92.7 73.1 91.5 74.6 91.5C76.1 91.5 77.3 92.7 77.3 94.2C77.3 95.7 76.1 96.9 74.6 96.9Z" fill="#F29018"></path><path d="M68.1 103.5C66.6 103.5 65.4 102.3 65.4 100.8C65.4 99.3 66.6 98.1 68.1 98.1C69.6 98.1 70.8 99.3 70.8 100.8C70.8 102.3 69.6 103.5 68.1 103.5Z" fill="#F29018"></path><path d="M74.6 103.5C73.1 103.5 71.9 102.3 71.9 100.8C71.9 99.3 73.1 98.1 74.6 98.1C76.1 98.1 77.3 99.3 77.3 100.8C77.3 102.3 76.1 103.5 74.6 103.5Z" fill="#F29018"></path><path d="M68.1 116.6C66.6 116.6 65.4 115.4 65.4 113.9C65.4 112.4 66.6 111.2 68.1 111.2C69.6 111.2 70.8 112.4 70.8 113.9C70.8 115.3 69.6 116.6 68.1 116.6Z" fill="#F29018"></path><path d="M74.6 116.6C73.1 116.6 71.9 115.4 71.9 113.9C71.9 112.4 73.1 111.2 74.6 111.2C76.1 111.2 77.3 112.4 77.3 113.9C77.3 115.3 76.1 116.6 74.6 116.6Z" fill="#F29018"></path><path d="M74.6 110C73.1 110 71.9 108.8 71.9 107.3C71.9 105.8 73.1 104.6 74.6 104.6C76.1 104.6 77.3 105.8 77.3 107.3C77.3 108.8 76.1 110 74.6 110Z" fill="#F29018"></path><path d="M68.1 123.1C66.6 123.1 65.4 121.9 65.4 120.4C65.4 118.9 66.6 117.7 68.1 117.7C69.6 117.7 70.8 118.9 70.8 120.4C70.8 121.9 69.6 123.1 68.1 123.1Z" fill="#F29018"></path><path d="M74.6 123.1C73.1 123.1 71.9 121.9 71.9 120.4C71.9 118.9 73.1 117.7 74.6 117.7C76.1 117.7 77.3 118.9 77.3 120.4C77.3 121.9 76.1 123.1 74.6 123.1Z" fill="#F29018"></path><path d="M35.4 96.9C33.9 96.9 32.7 95.7 32.7 94.2C32.7 92.7 33.9 91.5 35.4 91.5C36.9 91.5 38.1 92.7 38.1 94.2C38.1 95.7 36.9 96.9 35.4 96.9Z" fill="#F29018"></path><path d="M28.8 96.9C27.3 96.9 26.1 95.7 26.1 94.2C26.1 92.7 27.3 91.5 28.8 91.5C30.3 91.5 31.5 92.7 31.5 94.2C31.5 95.7 30.3 96.9 28.8 96.9Z" fill="#F29018"></path><path d="M22.3 96.9C20.8 96.9 19.6 95.7 19.6 94.2C19.6 92.7 20.8 91.5 22.3 91.5C23.8 91.5 25 92.7 25 94.2C25 95.7 23.8 96.9 22.3 96.9Z" fill="#F29018"></path><path d="M15.8 96.9C14.3 96.9 13.1 95.7 13.1 94.2C13.1 92.7 14.3 91.5 15.8 91.5C17.3 91.5 18.5 92.7 18.5 94.2C18.5 95.7 17.3 96.9 15.8 96.9Z" fill="#F29018"></path><path d="M9.2 96.9C7.7 96.9 6.5 95.7 6.5 94.2C6.5 92.7 7.7 91.5 9.2 91.5C10.7 91.5 11.9 92.7 11.9 94.2C11.9 95.7 10.7 96.9 9.2 96.9Z" fill="#F29018"></path><path d="M22.3 103.5C20.8 103.5 19.6 102.3 19.6 100.8C19.6 99.3 20.8 98.1 22.3 98.1C23.8 98.1 25 99.3 25 100.8C25 102.3 23.8 103.5 22.3 103.5Z" fill="#F29018"></path><path d="M15.8 103.5C14.3 103.5 13.1 102.3 13.1 100.8C13.1 99.3 14.3 98.1 15.8 98.1C17.3 98.1 18.5 99.3 18.5 100.8C18.5 102.3 17.3 103.5 15.8 103.5Z" fill="#F29018"></path><path d="M9.2 103.5C7.7 103.5 6.5 102.3 6.5 100.8C6.5 99.3 7.7 98.1 9.2 98.1C10.7 98.1 11.9 99.3 11.9 100.8C11.9 102.3 10.7 103.5 9.2 103.5Z" fill="#F29018"></path><path d="M2.7 103.5C1.2 103.5 0 102.3 0 100.8C0 99.3 1.2 98.1 2.7 98.1C4.2 98.1 5.4 99.3 5.4 100.8C5.4 102.3 4.2 103.5 2.7 103.5Z" fill="#F29018"></path><path d="M41.9 96.9C40.4 96.9 39.2 95.7 39.2 94.2C39.2 92.7 40.4 91.5 41.9 91.5C43.4 91.5 44.6 92.7 44.6 94.2C44.6 95.7 43.4 96.9 41.9 96.9Z" fill="#F29018"></path><path d="M48.4 96.9C46.9 96.9 45.7 95.7 45.7 94.2C45.7 92.7 46.9 91.5 48.4 91.5C49.9 91.5 51.1 92.7 51.1 94.2C51.2 95.7 49.9 96.9 48.4 96.9Z" fill="#F29018"></path><path d="M81.1 44.6C79.6 44.6 78.4 43.4 78.4 41.9C78.4 40.4 79.6 39.2 81.1 39.2C82.6 39.2 83.8 40.4 83.8 41.9C83.9 43.4 82.6 44.6 81.1 44.6Z" fill="#F29018"></path><path d="M41.9 31.6C40.4 31.6 39.2 30.4 39.2 28.9C39.2 27.4 40.4 26.2 41.9 26.2C43.4 26.2 44.6 27.4 44.6 28.9C44.6 30.4 43.4 31.6 41.9 31.6Z" fill="#F29018"></path><path d="M61.5 31.6C60 31.6 58.8 30.4 58.8 28.9C58.8 27.4 60 26.2 61.5 26.2C63 26.2 64.2 27.4 64.2 28.9C64.2 30.4 63 31.6 61.5 31.6Z" fill="#F29018"></path><path d="M68.1 31.6C66.6 31.6 65.4 30.4 65.4 28.9C65.4 27.4 66.6 26.2 68.1 26.2C69.6 26.2 70.8 27.4 70.8 28.9C70.8 30.4 69.6 31.6 68.1 31.6Z" fill="#F29018"></path><path d="M74.6 31.6C73.1 31.6 71.9 30.4 71.9 28.9C71.9 27.4 73.1 26.2 74.6 26.2C76.1 26.2 77.3 27.4 77.3 28.9C77.3 30.4 76.1 31.6 74.6 31.6Z" fill="#F29018"></path><path d="M81.1 31.6C79.6 31.6 78.4 30.4 78.4 28.9C78.4 27.4 79.6 26.2 81.1 26.2C82.6 26.2 83.8 27.4 83.8 28.9C83.8 30.4 82.6 31.6 81.1 31.6Z" fill="#F29018"></path><path d="M61.5 25C60 25 58.8 23.8 58.8 22.3C58.8 20.8 60 19.6 61.5 19.6C63 19.6 64.2 20.8 64.2 22.3C64.2 23.8 63 25 61.5 25Z" fill="#F29018"></path><path d="M55 31.6C53.5 31.6 52.3 30.4 52.3 28.9C52.3 27.4 53.5 26.2 55 26.2C56.5 26.2 57.7 27.4 57.7 28.9C57.7 30.4 56.5 31.6 55 31.6Z" fill="#F29018"></path><path d="M55 25C53.5 25 52.3 23.8 52.3 22.3C52.3 20.8 53.5 19.6 55 19.6C56.5 19.6 57.7 20.8 57.7 22.3C57.7 23.8 56.5 25 55 25Z" fill="#F29018"></path><path d="M41.9 18.5C40.4 18.5 39.2 17.3 39.2 15.8C39.2 14.3 40.4 13.1 41.9 13.1C43.4 13.1 44.6 14.3 44.6 15.8C44.6 17.3 43.4 18.5 41.9 18.5Z" fill="#F29018"></path><path d="M48.4 11.9C46.9 11.9 45.7 10.7 45.7 9.2C45.7 7.7 46.9 6.5 48.4 6.5C49.9 6.5 51.1 7.7 51.1 9.2C51.2 10.7 49.9 11.9 48.4 11.9Z" fill="#F29018"></path><path d="M55 5.4C53.5 5.4 52.3 4.2 52.3 2.7C52.3 1.2 53.5 0 55 0C56.5 0 57.7 1.2 57.7 2.7C57.7 4.2 56.5 5.4 55 5.4Z" fill="#F29018"></path><path d="M68.1 25C66.6 25 65.4 23.8 65.4 22.3C65.4 20.8 66.6 19.6 68.1 19.6C69.6 19.6 70.8 20.8 70.8 22.3C70.8 23.8 69.6 25 68.1 25Z" fill="#F29018"></path><path d="M74.6 25C73.1 25 71.9 23.8 71.9 22.3C71.9 20.8 73.1 19.6 74.6 19.6C76.1 19.6 77.3 20.8 77.3 22.3C77.3 23.8 76.1 25 74.6 25Z" fill="#F29018"></path><path d="M81.1 25C79.6 25 78.4 23.8 78.4 22.3C78.4 20.8 79.6 19.6 81.1 19.6C82.6 19.6 83.8 20.8 83.8 22.3C83.8 23.8 82.6 25 81.1 25Z" fill="#F29018"></path><path d="M61.5 18.5C60 18.5 58.8 17.3 58.8 15.8C58.8 14.3 60 13.1 61.5 13.1C63 13.1 64.2 14.3 64.2 15.8C64.2 17.3 63 18.5 61.5 18.5Z" fill="#F29018"></path><path d="M68.1 18.5C66.6 18.5 65.4 17.3 65.4 15.8C65.4 14.3 66.6 13.1 68.1 13.1C69.6 13.1 70.8 14.3 70.8 15.8C70.8 17.3 69.6 18.5 68.1 18.5Z" fill="#F29018"></path><path d="M74.6 18.5C73.1 18.5 71.9 17.3 71.9 15.8C71.9 14.3 73.1 13.1 74.6 13.1C76.1 13.1 77.3 14.3 77.3 15.8C77.3 17.3 76.1 18.5 74.6 18.5Z" fill="#F29018"></path><path d="M81.1 18.5C79.6 18.5 78.4 17.3 78.4 15.8C78.4 14.3 79.6 13.1 81.1 13.1C82.6 13.1 83.8 14.3 83.8 15.8C83.8 17.3 82.6 18.5 81.1 18.5Z" fill="#F29018"></path><path d="M87.7 31.6C86.2 31.6 85 30.4 85 28.9C85 27.4 86.2 26.2 87.7 26.2C89.2 26.2 90.4 27.4 90.4 28.9C90.4 30.4 89.2 31.6 87.7 31.6Z" fill="#F29018"></path><path d="M87.7 25C86.2 25 85 23.8 85 22.3C85 20.8 86.2 19.6 87.7 19.6C89.2 19.6 90.4 20.8 90.4 22.3C90.4 23.8 89.2 25 87.7 25Z" fill="#F29018"></path><path d="M87.7 18.5C86.2 18.5 85 17.3 85 15.8C85 14.3 86.2 13.1 87.7 13.1C89.2 13.1 90.4 14.3 90.4 15.8C90.4 17.3 89.2 18.5 87.7 18.5Z" fill="#F29018"></path><path d="M68.1 11.9C66.6 11.9 65.4 10.7 65.4 9.2C65.4 7.7 66.6 6.5 68.1 6.5C69.6 6.5 70.8 7.7 70.8 9.2C70.8 10.7 69.6 11.9 68.1 11.9Z" fill="#F29018"></path><path d="M74.6 11.9C73.1 11.9 71.9 10.7 71.9 9.2C71.9 7.7 73.1 6.5 74.6 6.5C76.1 6.5 77.3 7.7 77.3 9.2C77.3 10.7 76.1 11.9 74.6 11.9Z" fill="#F29018"></path><path d="M81.1 11.9C79.6 11.9 78.4 10.7 78.4 9.2C78.4 7.7 79.6 6.5 81.1 6.5C82.6 6.5 83.8 7.7 83.8 9.2C83.9 10.7 82.6 11.9 81.1 11.9Z" fill="#F29018"></path><path d="M87.7 11.9C86.2 11.9 85 10.7 85 9.2C85 7.7 86.2 6.5 87.7 6.5C89.2 6.5 90.4 7.7 90.4 9.2C90.4 10.7 89.2 11.9 87.7 11.9Z" fill="#F29018"></path><path d="M94.2 25C92.7 25 91.5 23.8 91.5 22.3C91.5 20.8 92.7 19.6 94.2 19.6C95.7 19.6 96.9 20.8 96.9 22.3C96.9 23.8 95.7 25 94.2 25Z" fill="#F29018"></path><path d="M94.2 18.5C92.7 18.5 91.5 17.3 91.5 15.8C91.5 14.3 92.7 13.1 94.2 13.1C95.7 13.1 96.9 14.3 96.9 15.8C96.9 17.3 95.7 18.5 94.2 18.5Z" fill="#F29018"></path><path d="M135.1 58.6V61.6C135.1 61.6 135.1 64.6 132.1 64.6H120.1V75V76.6C120.1 76.7 120.1 76.8 120.1 76.9C120.1 77 120.1 77 120.1 77.1C120 77.8 119.8 78.3 119.4 78.6C119.4 78.6 119.4 78.7 119.3 78.7C119.2 78.8 119.1 78.9 119 79C118.7 79.3 118.3 79.5 117.7 79.6C117.3 79.7 117.1 79.7 117.1 79.7H114.1C114.1 79.7 113.8 79.7 113.5 79.6C112.9 79.5 112.5 79.3 112.2 79C112.1 78.9 112 78.8 111.9 78.7C111.9 78.7 111.9 78.6 111.8 78.6C111.5 78.2 111.2 77.7 111.1 77.1C111.1 77 111.1 77 111.1 76.9C111.1 76.8 111.1 76.7 111.1 76.6V75V64.6H99.1C96.1 64.6 96.1 61.6 96.1 61.6V58.6C96.1 55.6 99.1 55.6 99.1 55.6H111.1V45.5V43.7C111.1 43.7 111.1 43.4 111.2 43C111.3 42.5 111.5 42.1 111.7 41.8C111.8 41.7 111.9 41.6 112 41.5L112.1 41.4C112.4 41.1 112.9 40.9 113.5 40.8C113.8 40.7 114 40.7 114.1 40.7H117.1C117.1 40.7 117.4 40.7 117.7 40.8C118.3 40.9 118.8 41.1 119.1 41.4L119.2 41.5C119.3 41.6 119.4 41.7 119.5 41.8C119.8 42.1 119.9 42.5 120 43C120.1 43.4 120.1 43.7 120.1 43.7V45.5V55.6H132.1C132.1 55.6 135.1 55.6 135.1 58.6Z" fill="#F29018"></path><path d="M132.1 83.9C119.1 92.9 101.2 89.6 92.3 76.6C83.4 63.6 86.6 45.7 99.6 36.8C112.6 27.8 130.5 31.1 139.4 44.1C148.3 57.1 145.1 74.9 132.1 83.9ZM149.2 37.3C136.5 18.9 111.2 14.2 92.8 27C74.4 39.7 69.7 65 82.5 83.4C93.8 99.8 115 105.2 132.5 97.4L148.1 120C150.4 123.3 154.9 124.1 158.3 121.8C161.6 119.5 162.5 115 160.2 111.7L144.5 89C158.1 75.4 160.5 53.6 149.2 37.3Z" fill="#110E72"></path>',117)];function g6(t,e){return l.openBlock(),l.createElementBlock("svg",p6,m6)}const sp=Ee(h6,[["render",g6]]),ua={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},y6={key:0,class:"b-d-alert-title"},Vo=l.defineComponent({__name:"BDAlert",props:{variant:{default:ua.PRIMARY},title:{default:""}},setup(t){const e=t,n=l.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value),role:"alert"},[r.title?(l.openBlock(),l.createElementBlock("div",y6,[l.createVNode(l.unref(oo)),l.createElementVNode("span",null,[l.createElementVNode("strong",null,l.toDisplayString(e.title),1)])])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}});function v6(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function fa(t){return typeof t=="function"?t():l.unref(t)}const b6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const C6=t=>typeof t<"u",E6=Object.prototype.toString,S6=t=>E6.call(t)==="[object Object]",Qc=()=>{};function _6(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}function w6(t,e={}){let n,r,o=Qc;const i=c=>{clearTimeout(c),o(),o=Qc};return c=>{const a=fa(t),d=fa(e.maxWait);return n&&i(n),a<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(c())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,d&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(c())},d)),n=setTimeout(()=>{r&&i(r),r=null,u(c())},a)})}}function k6(t,e=200,n={}){return _6(w6(e,n),t)}function ap(t){var e;const n=fa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const A6=b6?window:void 0;function lp(...t){let e,n,r,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,o]=t,e=A6):[e,n,r,o]=t,!e)return Qc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},c=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),a=l.watch(()=>[ap(e),fa(o)],([u,f])=>{if(s(),!u)return;const h=S6(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(m=>c(u,p,m,h))))},{immediate:!0,flush:"post"}),d=()=>{a(),s()};return v6(d),d}function T6(t){return JSON.parse(JSON.stringify(t))}function I6(t,e={}){const{initialValue:n=!1,focusVisible:r=!1}=e,o=l.ref(!1),i=l.computed(()=>ap(t));lp(i,"focus",c=>{var a,d;(!r||(d=(a=c.target).matches)!=null&&d.call(a,":focus-visible"))&&(o.value=!0)}),lp(i,"blur",()=>o.value=!1);const s=l.computed({get:()=>o.value,set(c){var a,d;!c&&o.value?(a=i.value)==null||a.blur():c&&!o.value&&((d=i.value)==null||d.focus())}});return l.watch(i,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function io(t,e,n,r={}){var o,i,s;const{clone:c=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=l.getCurrentInstance(),m=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let y=d;e||(e="modelValue"),y=y||`update:${e.toString()}`;const g=C=>c?typeof c=="function"?c(C):T6(C):C,b=()=>C6(t[e])?g(t[e]):f,E=C=>{h?h(C)&&m(y,C):m(y,C)};if(a){const C=b(),v=l.ref(C);let k=!1;return l.watch(()=>t[e],_=>{k||(k=!0,v.value=g(_),l.nextTick(()=>k=!1))}),l.watch(v,_=>{!k&&(_!==t[e]||u)&&E(_)},{deep:u}),v}else return l.computed({get(){return b()},set(C){E(C)}})}const x6={class:"bd-zoom-slider d-flex"},O6=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],N6=["max"],M6=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],Zc=l.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<n.maxValue&&r.value++}return(s,c)=>(l.openBlock(),l.createElementBlock("div",x6,[(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},O6)),l.withDirectives(l.createElementVNode("input",{type:"range","onUpdate:modelValue":c[0]||(c[0]=a=>l.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,N6),[[l.vModelText,l.unref(r)]]),(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},M6))]))}}),L6={class:"bd-profile-picture"},D6=["src","alt"],zi=l.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:Mt.LG},linkText:{default:null}},emits:["click"],setup(t,{emit:e}){const n=t,r=l.computed(()=>`${n.username?`${n.username}'s `:""}profielfoto`),o=()=>{e("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("div",L6,[l.createElementVNode("div",{class:l.normalizeClass(["rounded-circle",n.size])},[l.createElementVNode("img",{src:n.src,alt:r.value,class:"position-absolute top-0 start-0"},null,8,D6)],2),n.linkText?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"link",onClick:o,textContent:l.toDisplayString(n.linkText)},null,8,["textContent"])):l.createCommentVNode("",!0)]))}});for(var so=256,cp=[],dp=256,ha;so--;)cp[so]=(so+256).toString(16).substring(1);function up(t){var e=0,n=t||11;if(!ha||so+n>dp*2)for(ha="",so=0;e<dp;e++)ha+=cp[Math.random()*256|0];return ha.substring(so,so+++n)}function Fo(){return{uniqueIdentifier:l.ref(up())}}const P6=["id"],B6={key:0},pa=l.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=n.value,o=l.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=l.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=l.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(c,a)=>(l.openBlock(),l.createElementBlock("div",{id:l.unref(r),class:l.normalizeClass(o.value)},[!c.noHeader||c.noBody?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(i.value)},[l.renderSlot(c.$slots,"header",{},()=>[c.title?(l.openBlock(),l.createElementBlock("h2",B6,l.toDisplayString(c.title),1)):l.createCommentVNode("",!0)])],2)):l.createCommentVNode("",!0),c.noBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(s.value)},[l.renderSlot(c.$slots,"body")],2))],10,P6))}}),R6={key:0},$6={class:"bd-collapsable-card__actions"},V6=["data-bs-target"],Jc=l.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=n.value,o=l.computed(()=>`bd-collapsable-card__collapse-${r}`),i=l.computed(()=>({"d-block":[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==Mt.SM,"d-lg-none":e.showOn.toLowerCase()==Mt.MD})),s=l.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==Mt.SM,"round-corners-md":e.showOn.toLowerCase()==Mt.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(d=>a[d]).join(" ")}),c=l.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==Mt.SM&&e.visible};return Object.keys(a).filter(d=>a[d]).join(" ")});return(a,d)=>(l.openBlock(),l.createBlock(pa,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":c.value},{header:l.withCtx(()=>[a.title?(l.openBlock(),l.createElementBlock("h2",R6,l.toDisplayString(a.title),1)):l.createCommentVNode("",!0),l.createElementVNode("div",$6,[l.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[l.createVNode(l.unref(sa))],10,V6)):l.createCommentVNode("",!0)])]),body:l.withCtx(()=>[l.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*!
56
+ c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z"></path></g></g>`,1)];function h7(t,e){return l.openBlock(),l.createElementBlock("svg",u7,f7)}const jh=Ee(d7,[["render",h7]]),p7={},m7={class:"icon icon-luscii-open luscii-open",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g7=[l.createElementVNode("path",{d:"M7 0.5L13.5 11.5H0.5L7 0.5Z",fill:"#FF8800"},null,-1)];function y7(t,e){return l.openBlock(),l.createElementBlock("svg",m7,g7)}const zh=Ee(p7,[["render",y7]]),v7={},b7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C7=[l.createElementVNode("circle",{cx:"12",cy:"12",r:"6",fill:"#FF6266"},null,-1),l.createElementVNode("circle",{cx:"14.5",cy:"9.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function E7(t,e){return l.openBlock(),l.createElementBlock("svg",b7,C7)}const Uh=Ee(v7,[["render",E7]]),S7={},_7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},w7=[l.createElementVNode("path",{d:"M4.92892 13.4142C4.14787 12.6332 4.14787 11.3668 4.92892 10.5858L10.5858 4.92893C11.3668 4.14788 12.6332 4.14788 13.4142 4.92893L19.0711 10.5858C19.8521 11.3668 19.8521 12.6332 19.0711 13.4142L13.4142 19.0711C12.6332 19.8521 11.3668 19.8521 10.5858 19.0711L4.92892 13.4142Z",fill:"#9CA3AF"},null,-1),l.createElementVNode("circle",{cx:"12",cy:"7.05029",r:"1.5",transform:"rotate(-45 12 7.05029)",fill:"white","fill-opacity":"0.1"},null,-1)];function k7(t,e){return l.openBlock(),l.createElementBlock("svg",_7,w7)}const Hh=Ee(S7,[["render",k7]]),A7={},T7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},I7=[l.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"#FB923C"},null,-1),l.createElementVNode("circle",{cx:"15.5",cy:"8.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function x7(t,e){return l.openBlock(),l.createElementBlock("svg",T7,I7)}const Wh=Ee(A7,[["render",x7]]),O7={},N7={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},M7=[l.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function L7(t,e){return l.openBlock(),l.createElementBlock("svg",N7,M7)}const zc=Ee(O7,[["render",L7]]),D7={},P7={class:"icon icon-message",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},B7=[l.createElementVNode("path",{d:"M17.75 2.587V12.2a2.355 2.355 0 0 1-2.35 2.35H2.6A2.355 2.355 0 0 1 .25 12.2V2.61v-.023A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337zm-1.572-.327a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zm.072 1.78L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h12.8c.466 0 .85-.384.85-.85V4.04z"},null,-1)];function R7(t,e){return l.openBlock(),l.createElementBlock("svg",P7,B7)}const Kh=Ee(D7,[["render",R7]]),$7={},V7={class:"icon icon-message-forward",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"19",viewBox:"0 0 21 19"},F7=[l.createElementVNode("path",{d:"M17.75 8.755a5.25 5.25 0 1 1-7.395 5.795H2.6A2.355 2.355 0 0 1 .25 12.2V2.587A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337v6.168zm-1.5-.452V4.04L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h7.669a5.25 5.25 0 0 1 5.981-4.747zm-.072-6.043a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zM15.5 17.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5zm-.31-3l.84.841a.75.75 0 1 1-1.06 1.06l-2.122-2.12a.75.75 0 0 1 0-1.061l2.122-2.122a.75.75 0 0 1 1.06 1.061l-.84.841h2.431a.75.75 0 1 1 0 1.5H15.19z"},null,-1)];function j7(t,e){return l.openBlock(),l.createElementBlock("svg",V7,F7)}const Yh=Ee($7,[["render",j7]]),z7={},U7=[l.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zM344 430.4c20.4-2.8 39.7-9.1 57.3-18.2l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4z"},null,-1)];function H7(t,e){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"icon"}),U7,16)}const Gh=Ee(z7,[["render",H7]]),W7={},K7={class:"icon icon-microsoft-teams",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 64 64"},Y7=[l.createStaticVNode('<path d="M42 40.531V27.205A1.204 1.204 0 0143.204 26h13.494A2.302 2.302 0 0159 28.302v12.23A8.469 8.469 0 0150.531 49h-.062A8.469 8.469 0 0142 40.531z" fill="#5059c9"></path><circle cx="50.5" cy="17.5" r="5.5" fill="#5059c9"></circle><path d="M49.855 49.622q-.17-.008-.35-.022.174.015.35.022zm.157.005l-.077-.002z" fill="#5059c9"></path><circle cx="33" cy="15" r="8" fill="#7b83eb"></circle><path d="M45.667 26H22.333A2.32 2.32 0 0020 28.308v13.846a14 14 0 0028 0V28.308A2.32 2.32 0 0045.667 26z" fill="#7b83eb"></path><path d="M33 26v20.67a1.734 1.734 0 01-.04.4A2.314 2.314 0 0130.67 49h-8.83a10.81 10.81 0 01-.53-1c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M34 26v18.67A3.362 3.362 0 0130.67 48h-9.36c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67v2.61a8.355 8.355 0 01-2 0A8.02 8.02 0 0125.58 18a8.353 8.353 0 01-.33-1h5.42A3.342 3.342 0 0134 20.33z" opacity=".1"></path><path d="M33 26v18.67A2.326 2.326 0 0130.67 47h-9.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M32 20.33v2.61A8.02 8.02 0 0125.58 18h4.09A2.326 2.326 0 0132 20.33zM22.33 26H32v18.67A2.326 2.326 0 0129.67 47h-8.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26z" opacity=".1"></path><rect x="4" y="18" width="28" height="28" rx="2.333" fill="#4b53bc"></rect><path d="M24.008 26.528h-4.564v13.028h-2.909V26.528h-4.543V24h12.016z" fill="#fff"></path>',11)];function G7(t,e){return l.openBlock(),l.createElementBlock("svg",K7,Y7)}const Qh=Ee(W7,[["render",G7]]),Q7={},Z7={class:"icon icon-min",viewBox:"0 0 21 2",width:"21",height:"2",xmlns:"http://www.w3.org/2000/svg"},J7=[l.createElementVNode("path",{d:"M1.525 2h18.05a1 1 0 0 0 0-2H1.525a1 1 0 0 0 0 2z"},null,-1)];function X7(t,e){return l.openBlock(),l.createElementBlock("svg",Z7,J7)}const Zh=Ee(Q7,[["render",X7]]),q7={},e8={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},t8=[l.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function n8(t,e){return l.openBlock(),l.createElementBlock("svg",e8,t8)}const Uc=Ee(q7,[["render",n8]]),r8={},o8={class:"icon icon-plus",width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"},i8=[l.createElementVNode("path",{d:"M11.604 7.675H7.027v4.807H4.888V7.675h-4.6V5.628h4.6V.844h2.139v4.784h4.577z"},null,-1)];function s8(t,e){return l.openBlock(),l.createElementBlock("svg",o8,i8)}const da=Ee(r8,[["render",s8]]),a8={},l8={class:"icon icon-refresh",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},c8=[l.createElementVNode("path",{d:"M15.107 5.34l-2.012-1.891a5.795 5.795 0 0 0-9.563 2.163.75.75 0 0 1-1.414-.5 7.295 7.295 0 0 1 12.021-2.74l2.111 1.983v-2.63a.75.75 0 1 1 1.5 0V6.09a.75.75 0 0 1-.75.75h-4.364a.75.75 0 0 1 0-1.5h2.47zM1.75 10.731v2.63a.75.75 0 0 1-1.5 0V8.998a.75.75 0 0 1 .75-.75h4.364a.75.75 0 1 1 0 1.5h-2.47l2.011 1.891a5.795 5.795 0 0 0 9.563-2.164.75.75 0 0 1 1.414.5 7.295 7.295 0 0 1-12.021 2.74L1.75 10.733z"},null,-1)];function d8(t,e){return l.openBlock(),l.createElementBlock("svg",l8,c8)}const Jh=Ee(a8,[["render",d8]]),u8={},f8={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},h8=[l.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function p8(t,e){return l.openBlock(),l.createElementBlock("svg",f8,h8)}const ji=Ee(u8,[["render",p8]]),m8={},g8={"xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-sananet",viewBox:"0 0 145.82668 130.58667",height:"130.58667",width:"145.82668","xml:space":"preserve",id:"svg2",version:"1.1"},y8={id:"metadata8"},v8=l.createStaticVNode('<defs id="defs6"><clipPath id="clipPath32" clipPathUnits="userSpaceOnUse"><path id="path30" d="M 0,0 H 1094 V 979 H 0 Z"></path></clipPath><clipPath id="clipPath38" clipPathUnits="userSpaceOnUse"><path id="path36" d="m 726.516,800.508 c 0,-98.836 -80.121,-178.938 -178.938,-178.938 -98.816,0 -178.926,80.102 -178.926,178.938 0,98.808 80.11,178.918 178.926,178.918 98.817,0 178.938,-80.11 178.938,-178.918 z"></path></clipPath><radialGradient id="radialGradient46" spreadMethod="pad" gradientTransform="matrix(390.284,0,0,-390.284,547.578,925.479)" gradientUnits="userSpaceOnUse" r="1" cy="0" cx="0" fy="0.151961" fx="-0.24949799"><stop id="stop40" offset="0" style="stop-opacity:1;stop-color:#ffffff;"></stop><stop id="stop42" offset="0.715" style="stop-opacity:1;stop-color:#f5772a;"></stop><stop id="stop44" offset="1" style="stop-opacity:1;stop-color:#f5772a;"></stop></radialGradient></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,130.58667)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill:#bfc1e2;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="M 546.836,0 C 250.422,0 0,111.121 0,242.648 c 0,43.133 26.418,84.11 72.6016,119.688 -17.586,-23.32 -27.0821,-48.32 -27.0821,-74.328 0,-127.442 220.2035,-227.2736 501.3165,-227.2736 281.102,0 501.304,99.8316 501.304,227.2736 0,26.008 -9.5,51.015 -27.09,74.336 46.19,-35.586 72.61,-76.563 72.61,-119.696 C 1093.66,111.121 843.242,0 546.836,0"></path><path id="path16" style="fill:#9ba1d3;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,125.039 c -195.918,0 -361.433,66.113 -361.433,144.367 0,29.305 22.75,56.942 61.714,80.028 -17.468,-16.329 -27.097,-34.356 -27.097,-53.274 0,-74.39 143.554,-132.664 326.816,-132.664 183.289,0 326.875,58.274 326.875,132.664 0,18.879 -9.59,36.86 -26.98,53.156 38.843,-23.066 61.519,-50.656 61.519,-79.91 0,-78.254 -165.508,-144.367 -361.414,-144.367"></path><path id="path18" style="fill:#516ab4;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,205.82 c -118.73,0 -219.031,39.27 -219.031,85.754 0,12.711 7.39,24.91 20.625,35.906 -3.379,-6.242 -5.156,-12.773 -5.156,-19.5 0,-47.296 89.414,-84.335 203.562,-84.335 114.133,0 203.535,37.039 203.535,84.335 0,6.727 -1.777,13.243 -5.144,19.481 13.211,-10.996 20.593,-23.176 20.593,-35.887 0,-46.484 -100.285,-85.754 -218.984,-85.754"></path><path id="path20" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 423.379,332.805 c -6.934,-6.223 -10.801,-12.989 -10.801,-19.953 0,-28.321 61.387,-52.247 134.043,-52.247 72.637,0 133.992,23.926 133.992,52.247 0,6.925 -3.816,13.652 -10.672,19.843 1.36,-3.152 2.063,-6.418 2.063,-9.765 0,-29.258 -55.078,-52.168 -125.383,-52.168 -70.293,0 -125.351,22.91 -125.351,52.168 0,3.39 0.722,6.687 2.109,9.875"></path><path id="path22" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 358.75,618.84 c 0,0 144.551,-54.758 144.551,-297.871 h -24.102 c 0,0 -2.187,205.886 -124.824,219.019 l 4.375,78.852"></path><path id="path24" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 735.313,618.84 c 0,0 -144.551,-54.758 -144.551,-297.871 h 24.101 c 0,0 2.188,205.886 124.832,219.019 l -4.382,78.852"></path><g id="g26"><g clip-path="url(#clipPath32)" id="g28"><g clip-path="url(#clipPath38)" id="g34"><path id="path48" style="fill:url(#radialGradient46);fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 536,621 v 1 h -11 v 1 h -6 v 1 h -7 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -3 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 3 h -1 v 3 h -1 v 2 h -1 v 3 h -1 v 4 h -1 v 3 h -1 v 4 h -1 v 4 h -1 v 5 h -1 v 6 h -1 v 7 h -1 v 11 h -1 v 21 h 1 v 11 h 1 v 7 h 1 v 6 h 1 v 5 h 1 v 4 h 1 v 4 h 1 v 3 h 1 v 4 h 1 v 3 h 1 v 2 h 1 v 3 h 1 v 3 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 3 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 7 v 1 h 7 v 1 h 44 v -1 h 6 v -1 h 7 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -6 h 1 v -7 h 1 v -10 h 1 v -25 h -1 v -10 h -1 v -7 h -1 v -6 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -7 v -1 h -6 v -1 h -11 v -1"></path></g></g></g></g></g>',2);function b8(t,e){const n=l.resolveComponent("dc:format"),r=l.resolveComponent("dc:type"),o=l.resolveComponent("cc:Work"),i=l.resolveComponent("rdf:RDF");return l.openBlock(),l.createElementBlock("svg",g8,[l.createElementVNode("metadata",y8,[l.createVNode(i,null,{default:l.withCtx(()=>[l.createVNode(o,{"rdf:about":""},{default:l.withCtx(()=>[l.createVNode(n,null,{default:l.withCtx(()=>[l.createTextVNode("image/svg+xml")]),_:1}),l.createVNode(r,{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})]),_:1})]),_:1})]),v8])}const Xh=Ee(m8,[["render",b8]]),C8={},E8={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},S8=[l.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function _8(t,e){return l.openBlock(),l.createElementBlock("svg",E8,S8)}const qh=Ee(C8,[["render",_8]]),w8={},k8={class:"icon icon-share-screen",width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"},A8=[l.createElementVNode("path",{d:"M-1.31134e-07 12.9961C-5.87372e-08 14.6523 1.34375 15.9961 3 15.9961L9 15.9961C10.6562 15.9961 12 14.6523 12 12.9961L12 10.3711C12 10.1836 11.8437 9.99609 11.625 9.99609L10.875 9.99609C10.6875 9.99609 10.5 10.1836 10.5 10.3711L10.5 12.9961C10.5 13.8398 9.84375 14.4961 9 14.4961L3 14.4961C2.1875 14.4961 1.5 13.8398 1.5 12.9961L1.5 10.3711C1.5 10.1836 1.34375 9.99609 1.125 9.99609L0.375 9.99609C0.1875 9.99609 -2.54072e-07 10.1836 -2.45877e-07 10.3711L-1.31134e-07 12.9961ZM0.625 5.77734L1.25 6.40234C1.375 6.55859 1.625 6.55859 1.78125 6.40234L5.1875 2.87109L5.1875 10.6211C5.1875 10.8398 5.375 10.9961 5.5625 10.9961L6.4375 10.9961C6.65625 10.9961 6.8125 10.8398 6.8125 10.6211L6.8125 2.87109L10.25 6.40234C10.4062 6.55859 10.6562 6.55859 10.7812 6.40234L11.4062 5.77734C11.5625 5.65234 11.5625 5.40234 11.4062 5.24609L6.28125 0.121093C6.125 -0.0351565 5.90625 -0.0351565 5.75 0.121093L0.625 5.24609C0.46875 5.40234 0.46875 5.65234 0.625 5.77734Z"},null,-1)];function T8(t,e){return l.openBlock(),l.createElementBlock("svg",k8,A8)}const ep=Ee(w8,[["render",T8]]),I8={},x8={xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 18 18",width:"18",height:"18"},O8=[l.createElementVNode("g",{transform:"matrix(0.75,0,0,0.75,0,0)"},[l.createElementVNode("path",{d:"M6.750 6.000 A5.250 5.250 0 1 0 17.250 6.000 A5.250 5.250 0 1 0 6.750 6.000 Z",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),l.createElementVNode("path",{d:"M2.25,23.25a9.75,9.75,0,0,1,19.5,0",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)];function N8(t,e){return l.openBlock(),l.createElementBlock("svg",x8,O8)}const tp=Ee(I8,[["render",N8]]),M8={},L8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},D8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function P8(t,e){return l.openBlock(),l.createElementBlock("svg",L8,D8)}const np=Ee(M8,[["render",P8]]),B8={},R8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},$8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function V8(t,e){return l.openBlock(),l.createElementBlock("svg",R8,$8)}const Hc=Ee(B8,[["render",V8]]),F8={},j8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},z8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function U8(t,e){return l.openBlock(),l.createElementBlock("svg",j8,z8)}const Wc=Ee(F8,[["render",U8]]),H8={},W8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},K8=[l.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function Y8(t,e){return l.openBlock(),l.createElementBlock("svg",W8,K8)}const Kc=Ee(H8,[["render",Y8]]),G8={},Q8={class:"icon icon-triangle-down",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",viewBox:"0 0 12 8"},Z8=[l.createElementVNode("path",{d:"M11.071 2.414L6.414 7.071a1 1 0 0 1-1.414 0L.343 2.414A1 1 0 0 1 1.05.707h9.314a1 1 0 0 1 .707 1.707z"},null,-1)];function J8(t,e){return l.openBlock(),l.createElementBlock("svg",Q8,Z8)}const rp=Ee(G8,[["render",J8]]),X8={},q8={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e6=[l.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function t6(t,e){return l.openBlock(),l.createElementBlock("svg",q8,e6)}const Yc=Ee(X8,[["render",t6]]),n6={},r6={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},o6=[l.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function i6(t,e){return l.openBlock(),l.createElementBlock("svg",r6,o6)}const Gc=Ee(n6,[["render",i6]]),s6={},a6={class:"icon icon-videocall",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14"},l6=[l.createElementVNode("path",{d:"M12.673.25c1.48 0 2.68 1.186 2.68 2.648V4.16l2.76-1.82a.733.733 0 0 1 1.13.502l.007.1v7.703a.73.73 0 0 1-1.035.657l-2.862-1.298v.598c0 1.462-1.2 2.648-2.68 2.648H2.93C1.45 13.25.25 12.064.25 10.602V2.898C.25 1.436 1.45.25 2.93.25h9.743zm0 1.444H2.93a1.21 1.21 0 0 0-1.217 1.204v7.704a1.21 1.21 0 0 0 1.217 1.204h9.744a1.21 1.21 0 0 0 1.218-1.204V5.53 2.898a1.21 1.21 0 0 0-1.218-1.204zm5.115 2.597l-2.435 1.605v2.519l2.435 1.104V4.291z"},null,-1)];function c6(t,e){return l.openBlock(),l.createElementBlock("svg",a6,l6)}const op=Ee(s6,[["render",c6]]),d6={},u6=[l.createElementVNode("path",{d:"M14.1719 4.1875C14.2422 4.1875 14.2773 4.22266 14.3125 4.25781V8.26562L16 9.56641V8.23047L19.9375 5.76953V12.6602L21.5898 13.9609C21.5898 13.8906 21.625 13.8555 21.625 13.7852V4.75C21.625 4.08203 21.0625 3.625 20.4648 3.625C20.2539 3.625 20.043 3.69531 19.832 3.83594L16 6.26172V4.1875C16 3.27344 15.1562 2.5 14.1719 2.5H6.96484L9.10938 4.1875H14.1719ZM22.5391 16.8086L17.0898 12.5898L14.3125 10.4102L4.29297 2.57031L4.22266 2.5L1.51562 0.390625C1.26953 0.179688 0.917969 0.25 0.707031 0.460938L0.355469 0.917969C0.179688 1.16406 0.214844 1.51562 0.460938 1.69141L2.00781 2.92188L3.37891 4.01172L21.4844 18.1445C21.6953 18.3203 22.082 18.2852 22.2578 18.0391L22.6094 17.6172C22.8203 17.3711 22.75 17.0195 22.5391 16.8086ZM3.16797 14.3125C3.09766 14.3125 3.0625 14.3125 3.0625 14.2773V5.875L1.375 4.57422V14.3477C1.375 15.2617 2.18359 16 3.16797 16H14.1719C14.6641 16 15.0859 15.8242 15.4023 15.543L13.8555 14.3125H3.16797Z"},null,-1)];function f6(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps(t.$attrs,{class:"icon icon-video-disabled",width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),u6,16)}const ip=Ee(d6,[["render",f6]]),h6={},p6={width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-zorgkaart-nederland"},m6=[l.createStaticVNode('<path d="M61.5 38.1C60 38.1 58.8 36.9 58.8 35.4C58.8 33.9 60 32.7 61.5 32.7C63 32.7 64.2 33.9 64.2 35.4C64.2 36.9 63 38.1 61.5 38.1Z" fill="#F29018"></path><path d="M68.1 38.1C66.6 38.1 65.4 36.9 65.4 35.4C65.4 33.9 66.6 32.7 68.1 32.7C69.6 32.7 70.8 33.9 70.8 35.4C70.8 36.9 69.6 38.1 68.1 38.1Z" fill="#F29018"></path><path d="M74.6 38.1C73.1 38.1 71.9 36.9 71.9 35.4C71.9 33.9 73.1 32.7 74.6 32.7C76.1 32.7 77.3 33.9 77.3 35.4C77.3 36.9 76.1 38.1 74.6 38.1Z" fill="#F29018"></path><path d="M81.1 38.1C79.6 38.1 78.4 36.9 78.4 35.4C78.4 33.9 79.6 32.7 81.1 32.7C82.6 32.7 83.8 33.9 83.8 35.4C83.8 36.9 82.6 38.1 81.1 38.1Z" fill="#F29018"></path><path d="M61.5 44.6C60 44.6 58.8 43.4 58.8 41.9C58.8 40.4 60 39.2 61.5 39.2C63 39.2 64.2 40.4 64.2 41.9C64.2 43.4 63 44.6 61.5 44.6Z" fill="#F29018"></path><path d="M68.1 44.6C66.6 44.6 65.4 43.4 65.4 41.9C65.4 40.4 66.6 39.2 68.1 39.2C69.6 39.2 70.8 40.4 70.8 41.9C70.8 43.4 69.6 44.6 68.1 44.6Z" fill="#F29018"></path><path d="M74.6 44.6C73.1 44.6 71.9 43.4 71.9 41.9C71.9 40.4 73.1 39.2 74.6 39.2C76.1 39.2 77.3 40.4 77.3 41.9C77.3 43.4 76.1 44.6 74.6 44.6Z" fill="#F29018"></path><path d="M61.5 51.2C60 51.2 58.8 50 58.8 48.5C58.8 47 60 45.8 61.5 45.8C63 45.8 64.2 47 64.2 48.5C64.2 50 63 51.2 61.5 51.2Z" fill="#F29018"></path><path d="M68.1 51.2C66.6 51.2 65.4 50 65.4 48.5C65.4 47 66.6 45.8 68.1 45.8C69.6 45.8 70.8 47 70.8 48.5C70.8 50 69.6 51.2 68.1 51.2Z" fill="#F29018"></path><path d="M74.6 51.2C73.1 51.2 71.9 50 71.9 48.5C71.9 47 73.1 45.8 74.6 45.8C76.1 45.8 77.3 47 77.3 48.5C77.3 50 76.1 51.2 74.6 51.2Z" fill="#F29018"></path><path d="M61.5 57.7C60 57.7 58.8 56.5 58.8 55C58.8 53.5 60 52.3 61.5 52.3C63 52.3 64.2 53.5 64.2 55C64.2 56.5 63 57.7 61.5 57.7Z" fill="#F29018"></path><path d="M68.1 57.7C66.6 57.7 65.4 56.5 65.4 55C65.4 53.5 66.6 52.3 68.1 52.3C69.6 52.3 70.8 53.5 70.8 55C70.8 56.5 69.6 57.7 68.1 57.7Z" fill="#F29018"></path><path d="M74.6 57.7C73.1 57.7 71.9 56.5 71.9 55C71.9 53.5 73.1 52.3 74.6 52.3C76.1 52.3 77.3 53.5 77.3 55C77.3 56.5 76.1 57.7 74.6 57.7Z" fill="#F29018"></path><path d="M41.9 57.7C40.4 57.7 39.2 56.5 39.2 55C39.2 53.5 40.4 52.3 41.9 52.3C43.4 52.3 44.6 53.5 44.6 55C44.6 56.5 43.4 57.7 41.9 57.7Z" fill="#F29018"></path><path d="M35.4 57.7C33.9 57.7 32.7 56.5 32.7 55C32.7 53.5 33.9 52.3 35.4 52.3C36.9 52.3 38.1 53.5 38.1 55C38.1 56.5 36.9 57.7 35.4 57.7Z" fill="#F29018"></path><path d="M41.9 51.2C40.4 51.2 39.2 50 39.2 48.5C39.2 47 40.4 45.8 41.9 45.8C43.4 45.8 44.6 47 44.6 48.5C44.6 50 43.4 51.2 41.9 51.2Z" fill="#F29018"></path><path d="M35.4 51.2C33.9 51.2 32.7 50 32.7 48.5C32.7 47 33.9 45.8 35.4 45.8C36.9 45.8 38.1 47 38.1 48.5C38.1 50 36.9 51.2 35.4 51.2Z" fill="#F29018"></path><path d="M41.9 44.6C40.4 44.6 39.2 43.4 39.2 41.9C39.2 40.4 40.4 39.2 41.9 39.2C43.4 39.2 44.6 40.4 44.6 41.9C44.6 43.4 43.4 44.6 41.9 44.6Z" fill="#F29018"></path><path d="M35.4 44.6C33.9 44.6 32.7 43.4 32.7 41.9C32.7 40.4 33.9 39.2 35.4 39.2C36.9 39.2 38.1 40.4 38.1 41.9C38.1 43.4 36.9 44.6 35.4 44.6Z" fill="#F29018"></path><path d="M41.9 38.1C40.4 38.1 39.2 36.9 39.2 35.4C39.2 33.9 40.4 32.7 41.9 32.7C43.4 32.7 44.6 33.9 44.6 35.4C44.6 36.9 43.4 38.1 41.9 38.1Z" fill="#F29018"></path><path d="M35.4 38.1C33.9 38.1 32.7 36.9 32.7 35.4C32.7 33.9 33.9 32.7 35.4 32.7C36.9 32.7 38.1 33.9 38.1 35.4C38.1 36.9 36.9 38.1 35.4 38.1Z" fill="#F29018"></path><path d="M48.4 57.7C46.9 57.7 45.7 56.5 45.7 55C45.7 53.5 46.9 52.3 48.4 52.3C49.9 52.3 51.1 53.5 51.1 55C51.2 56.5 49.9 57.7 48.4 57.7Z" fill="#F29018"></path><path d="M55 57.7C53.5 57.7 52.3 56.5 52.3 55C52.3 53.5 53.5 52.3 55 52.3C56.5 52.3 57.7 53.5 57.7 55C57.7 56.5 56.5 57.7 55 57.7Z" fill="#F29018"></path><path d="M61.5 64.3C60 64.3 58.8 63.1 58.8 61.6C58.8 60.1 60 58.9 61.5 58.9C63 58.9 64.2 60.1 64.2 61.6C64.2 63 63 64.3 61.5 64.3Z" fill="#F29018"></path><path d="M68.1 64.3C66.6 64.3 65.4 63.1 65.4 61.6C65.4 60.1 66.6 58.9 68.1 58.9C69.6 58.9 70.8 60.1 70.8 61.6C70.8 63 69.6 64.3 68.1 64.3Z" fill="#F29018"></path><path d="M74.6 64.3C73.1 64.3 71.9 63.1 71.9 61.6C71.9 60.1 73.1 58.9 74.6 58.9C76.1 58.9 77.3 60.1 77.3 61.6C77.3 63 76.1 64.3 74.6 64.3Z" fill="#F29018"></path><path d="M41.9 64.3C40.4 64.3 39.2 63.1 39.2 61.6C39.2 60.1 40.4 58.9 41.9 58.9C43.4 58.9 44.6 60.1 44.6 61.6C44.6 63 43.4 64.3 41.9 64.3Z" fill="#F29018"></path><path d="M35.4 64.3C33.9 64.3 32.7 63.1 32.7 61.6C32.7 60.1 33.9 58.9 35.4 58.9C36.9 58.9 38.1 60 38.1 61.5C38.1 63 36.9 64.3 35.4 64.3Z" fill="#F29018"></path><path d="M28.8 64.3C27.3 64.3 26.1 63.1 26.1 61.6C26.1 60.1 27.3 58.9 28.8 58.9C30.3 58.9 31.5 60.1 31.5 61.6C31.5 63 30.3 64.3 28.8 64.3Z" fill="#F29018"></path><path d="M48.4 64.3C46.9 64.3 45.7 63.1 45.7 61.6C45.7 60.1 46.9 58.9 48.4 58.9C49.9 58.9 51.1 60.1 51.1 61.6C51.2 63 49.9 64.3 48.4 64.3Z" fill="#F29018"></path><path d="M55 64.3C53.5 64.3 52.3 63.1 52.3 61.6C52.3 60.1 53.5 58.9 55 58.9C56.5 58.9 57.7 60.1 57.7 61.6C57.7 63 56.5 64.3 55 64.3Z" fill="#F29018"></path><path d="M61.5 70.8C60 70.8 58.8 69.6 58.8 68.1C58.8 66.6 60 65.4 61.5 65.4C63 65.4 64.2 66.6 64.2 68.1C64.2 69.6 63 70.8 61.5 70.8Z" fill="#F29018"></path><path d="M68.1 70.8C66.6 70.8 65.4 69.6 65.4 68.1C65.4 66.6 66.6 65.4 68.1 65.4C69.6 65.4 70.8 66.6 70.8 68.1C70.8 69.6 69.6 70.8 68.1 70.8Z" fill="#F29018"></path><path d="M74.6 70.8C73.1 70.8 71.9 69.6 71.9 68.1C71.9 66.6 73.1 65.4 74.6 65.4C76.1 65.4 77.3 66.6 77.3 68.1C77.3 69.6 76.1 70.8 74.6 70.8Z" fill="#F29018"></path><path d="M41.9 70.8C40.4 70.8 39.2 69.6 39.2 68.1C39.2 66.6 40.4 65.4 41.9 65.4C43.4 65.4 44.6 66.6 44.6 68.1C44.6 69.6 43.4 70.8 41.9 70.8Z" fill="#F29018"></path><path d="M35.4 70.8C33.9 70.8 32.7 69.6 32.7 68.1C32.7 66.6 33.9 65.4 35.4 65.4C36.9 65.4 38.1 66.6 38.1 68.1C38.1 69.6 36.9 70.8 35.4 70.8Z" fill="#F29018"></path><path d="M28.8 70.8C27.3 70.8 26.1 69.6 26.1 68.1C26.1 66.6 27.3 65.4 28.8 65.4C30.3 65.4 31.5 66.6 31.5 68.1C31.5 69.6 30.3 70.8 28.8 70.8Z" fill="#F29018"></path><path d="M48.4 70.8C46.9 70.8 45.7 69.6 45.7 68.1C45.7 66.6 46.9 65.4 48.4 65.4C49.9 65.4 51.1 66.6 51.1 68.1C51.2 69.6 49.9 70.8 48.4 70.8Z" fill="#F29018"></path><path d="M55 70.8C53.5 70.8 52.3 69.6 52.3 68.1C52.3 66.6 53.5 65.4 55 65.4C56.5 65.4 57.7 66.6 57.7 68.1C57.7 69.6 56.5 70.8 55 70.8Z" fill="#F29018"></path><path d="M55 77.3C53.5 77.3 52.3 76.1 52.3 74.6C52.3 73.1 53.5 71.9 55 71.9C56.5 71.9 57.7 73.1 57.7 74.6C57.7 76.1 56.5 77.3 55 77.3Z" fill="#F29018"></path><path d="M61.5 77.3C60 77.3 58.8 76.1 58.8 74.6C58.8 73.1 60 71.9 61.5 71.9C63 71.9 64.2 73.1 64.2 74.6C64.2 76.1 63 77.3 61.5 77.3Z" fill="#F29018"></path><path d="M68.1 77.3C66.6 77.3 65.4 76.1 65.4 74.6C65.4 73.1 66.6 71.9 68.1 71.9C69.6 71.9 70.8 73.1 70.8 74.6C70.8 76.1 69.6 77.3 68.1 77.3Z" fill="#F29018"></path><path d="M35.4 77.3C33.9 77.3 32.7 76.1 32.7 74.6C32.7 73.1 33.9 71.9 35.4 71.9C36.9 71.9 38.1 73.1 38.1 74.6C38.1 76.1 36.9 77.3 35.4 77.3Z" fill="#F29018"></path><path d="M28.8 77.3C27.3 77.3 26.1 76.1 26.1 74.6C26.1 73.1 27.3 71.9 28.8 71.9C30.3 71.9 31.5 73.1 31.5 74.6C31.5 76.1 30.3 77.3 28.8 77.3Z" fill="#F29018"></path><path d="M22.3 77.3C20.8 77.3 19.6 76.1 19.6 74.6C19.6 73.1 20.8 71.9 22.3 71.9C23.8 71.9 25 73.1 25 74.6C25 76.1 23.8 77.3 22.3 77.3Z" fill="#F29018"></path><path d="M41.9 77.3C40.4 77.3 39.2 76.1 39.2 74.6C39.2 73.1 40.4 71.9 41.9 71.9C43.4 71.9 44.6 73.1 44.6 74.6C44.6 76.1 43.4 77.3 41.9 77.3Z" fill="#F29018"></path><path d="M48.4 77.3C46.9 77.3 45.7 76.1 45.7 74.6C45.7 73.1 46.9 71.9 48.4 71.9C49.9 71.9 51.1 73.1 51.1 74.6C51.2 76.1 49.9 77.3 48.4 77.3Z" fill="#F29018"></path><path d="M55 83.9C53.5 83.9 52.3 82.7 52.3 81.2C52.3 79.7 53.5 78.5 55 78.5C56.5 78.5 57.7 79.7 57.7 81.2C57.7 82.7 56.5 83.9 55 83.9Z" fill="#F29018"></path><path d="M61.5 83.9C60 83.9 58.8 82.7 58.8 81.2C58.8 79.7 60 78.5 61.5 78.5C63 78.5 64.2 79.7 64.2 81.2C64.2 82.7 63 83.9 61.5 83.9Z" fill="#F29018"></path><path d="M68.1 83.9C66.6 83.9 65.4 82.7 65.4 81.2C65.4 79.7 66.6 78.5 68.1 78.5C69.6 78.5 70.8 79.7 70.8 81.2C70.8 82.7 69.6 83.9 68.1 83.9Z" fill="#F29018"></path><path d="M35.4 83.9C33.9 83.9 32.7 82.7 32.7 81.2C32.7 79.7 33.9 78.5 35.4 78.5C36.9 78.5 38.1 79.7 38.1 81.2C38.1 82.7 36.9 83.9 35.4 83.9Z" fill="#F29018"></path><path d="M28.8 83.9C27.3 83.9 26.1 82.7 26.1 81.2C26.1 79.7 27.3 78.5 28.8 78.5C30.3 78.5 31.5 79.7 31.5 81.2C31.5 82.7 30.3 83.9 28.8 83.9Z" fill="#F29018"></path><path d="M22.3 83.9C20.8 83.9 19.6 82.7 19.6 81.2C19.6 79.7 20.8 78.5 22.3 78.5C23.8 78.5 25 79.7 25 81.2C25 82.7 23.8 83.9 22.3 83.9Z" fill="#F29018"></path><path d="M41.9 83.9C40.4 83.9 39.2 82.7 39.2 81.2C39.2 79.7 40.4 78.5 41.9 78.5C43.4 78.5 44.6 79.7 44.6 81.2C44.6 82.7 43.4 83.9 41.9 83.9Z" fill="#F29018"></path><path d="M48.4 83.9C46.9 83.9 45.7 82.7 45.7 81.2C45.7 79.7 46.9 78.5 48.4 78.5C49.9 78.5 51.1 79.7 51.1 81.2C51.2 82.7 49.9 83.9 48.4 83.9Z" fill="#F29018"></path><path d="M55 90.4C53.5 90.4 52.3 89.2 52.3 87.7C52.3 86.2 53.5 85 55 85C56.5 85 57.7 86.2 57.7 87.7C57.7 89.2 56.5 90.4 55 90.4Z" fill="#F29018"></path><path d="M61.5 90.4C60 90.4 58.8 89.2 58.8 87.7C58.8 86.2 60 85 61.5 85C63 85 64.2 86.2 64.2 87.7C64.2 89.2 63 90.4 61.5 90.4Z" fill="#F29018"></path><path d="M68.1 90.4C66.6 90.4 65.4 89.2 65.4 87.7C65.4 86.2 66.6 85 68.1 85C69.6 85 70.8 86.2 70.8 87.7C70.8 89.2 69.6 90.4 68.1 90.4Z" fill="#F29018"></path><path d="M74.6 90.4C73.1 90.4 71.9 89.2 71.9 87.7C71.9 86.2 73.1 85 74.6 85C76.1 85 77.3 86.2 77.3 87.7C77.3 89.2 76.1 90.4 74.6 90.4Z" fill="#F29018"></path><path d="M35.4 90.4C33.9 90.4 32.7 89.2 32.7 87.7C32.7 86.2 33.9 85 35.4 85C36.9 85 38.1 86.2 38.1 87.7C38.1 89.2 36.9 90.4 35.4 90.4Z" fill="#F29018"></path><path d="M28.8 90.4C27.3 90.4 26.1 89.2 26.1 87.7C26.1 86.2 27.3 85 28.8 85C30.3 85 31.5 86.2 31.5 87.7C31.5 89.2 30.3 90.4 28.8 90.4Z" fill="#F29018"></path><path d="M22.3 90.4C20.8 90.4 19.6 89.2 19.6 87.7C19.6 86.2 20.8 85 22.3 85C23.8 85 25 86.2 25 87.7C25 89.2 23.8 90.4 22.3 90.4Z" fill="#F29018"></path><path d="M15.8 90.4C14.3 90.4 13.1 89.2 13.1 87.7C13.1 86.2 14.3 85 15.8 85C17.3 85 18.5 86.2 18.5 87.7C18.5 89.2 17.3 90.4 15.8 90.4Z" fill="#F29018"></path><path d="M41.9 90.4C40.4 90.4 39.2 89.2 39.2 87.7C39.2 86.2 40.4 85 41.9 85C43.4 85 44.6 86.2 44.6 87.7C44.6 89.2 43.4 90.4 41.9 90.4Z" fill="#F29018"></path><path d="M48.4 90.4C46.9 90.4 45.7 89.2 45.7 87.7C45.7 86.2 46.9 85 48.4 85C49.9 85 51.1 86.2 51.1 87.7C51.2 89.2 49.9 90.4 48.4 90.4Z" fill="#F29018"></path><path d="M55 96.9C53.5 96.9 52.3 95.7 52.3 94.2C52.3 92.7 53.5 91.5 55 91.5C56.5 91.5 57.7 92.7 57.7 94.2C57.7 95.7 56.5 96.9 55 96.9Z" fill="#F29018"></path><path d="M61.5 96.9C60 96.9 58.8 95.7 58.8 94.2C58.8 92.7 60 91.5 61.5 91.5C63 91.5 64.2 92.7 64.2 94.2C64.2 95.7 63 96.9 61.5 96.9Z" fill="#F29018"></path><path d="M68.1 96.9C66.6 96.9 65.4 95.7 65.4 94.2C65.4 92.7 66.6 91.5 68.1 91.5C69.6 91.5 70.8 92.7 70.8 94.2C70.8 95.7 69.6 96.9 68.1 96.9Z" fill="#F29018"></path><path d="M74.6 96.9C73.1 96.9 71.9 95.7 71.9 94.2C71.9 92.7 73.1 91.5 74.6 91.5C76.1 91.5 77.3 92.7 77.3 94.2C77.3 95.7 76.1 96.9 74.6 96.9Z" fill="#F29018"></path><path d="M68.1 103.5C66.6 103.5 65.4 102.3 65.4 100.8C65.4 99.3 66.6 98.1 68.1 98.1C69.6 98.1 70.8 99.3 70.8 100.8C70.8 102.3 69.6 103.5 68.1 103.5Z" fill="#F29018"></path><path d="M74.6 103.5C73.1 103.5 71.9 102.3 71.9 100.8C71.9 99.3 73.1 98.1 74.6 98.1C76.1 98.1 77.3 99.3 77.3 100.8C77.3 102.3 76.1 103.5 74.6 103.5Z" fill="#F29018"></path><path d="M68.1 116.6C66.6 116.6 65.4 115.4 65.4 113.9C65.4 112.4 66.6 111.2 68.1 111.2C69.6 111.2 70.8 112.4 70.8 113.9C70.8 115.3 69.6 116.6 68.1 116.6Z" fill="#F29018"></path><path d="M74.6 116.6C73.1 116.6 71.9 115.4 71.9 113.9C71.9 112.4 73.1 111.2 74.6 111.2C76.1 111.2 77.3 112.4 77.3 113.9C77.3 115.3 76.1 116.6 74.6 116.6Z" fill="#F29018"></path><path d="M74.6 110C73.1 110 71.9 108.8 71.9 107.3C71.9 105.8 73.1 104.6 74.6 104.6C76.1 104.6 77.3 105.8 77.3 107.3C77.3 108.8 76.1 110 74.6 110Z" fill="#F29018"></path><path d="M68.1 123.1C66.6 123.1 65.4 121.9 65.4 120.4C65.4 118.9 66.6 117.7 68.1 117.7C69.6 117.7 70.8 118.9 70.8 120.4C70.8 121.9 69.6 123.1 68.1 123.1Z" fill="#F29018"></path><path d="M74.6 123.1C73.1 123.1 71.9 121.9 71.9 120.4C71.9 118.9 73.1 117.7 74.6 117.7C76.1 117.7 77.3 118.9 77.3 120.4C77.3 121.9 76.1 123.1 74.6 123.1Z" fill="#F29018"></path><path d="M35.4 96.9C33.9 96.9 32.7 95.7 32.7 94.2C32.7 92.7 33.9 91.5 35.4 91.5C36.9 91.5 38.1 92.7 38.1 94.2C38.1 95.7 36.9 96.9 35.4 96.9Z" fill="#F29018"></path><path d="M28.8 96.9C27.3 96.9 26.1 95.7 26.1 94.2C26.1 92.7 27.3 91.5 28.8 91.5C30.3 91.5 31.5 92.7 31.5 94.2C31.5 95.7 30.3 96.9 28.8 96.9Z" fill="#F29018"></path><path d="M22.3 96.9C20.8 96.9 19.6 95.7 19.6 94.2C19.6 92.7 20.8 91.5 22.3 91.5C23.8 91.5 25 92.7 25 94.2C25 95.7 23.8 96.9 22.3 96.9Z" fill="#F29018"></path><path d="M15.8 96.9C14.3 96.9 13.1 95.7 13.1 94.2C13.1 92.7 14.3 91.5 15.8 91.5C17.3 91.5 18.5 92.7 18.5 94.2C18.5 95.7 17.3 96.9 15.8 96.9Z" fill="#F29018"></path><path d="M9.2 96.9C7.7 96.9 6.5 95.7 6.5 94.2C6.5 92.7 7.7 91.5 9.2 91.5C10.7 91.5 11.9 92.7 11.9 94.2C11.9 95.7 10.7 96.9 9.2 96.9Z" fill="#F29018"></path><path d="M22.3 103.5C20.8 103.5 19.6 102.3 19.6 100.8C19.6 99.3 20.8 98.1 22.3 98.1C23.8 98.1 25 99.3 25 100.8C25 102.3 23.8 103.5 22.3 103.5Z" fill="#F29018"></path><path d="M15.8 103.5C14.3 103.5 13.1 102.3 13.1 100.8C13.1 99.3 14.3 98.1 15.8 98.1C17.3 98.1 18.5 99.3 18.5 100.8C18.5 102.3 17.3 103.5 15.8 103.5Z" fill="#F29018"></path><path d="M9.2 103.5C7.7 103.5 6.5 102.3 6.5 100.8C6.5 99.3 7.7 98.1 9.2 98.1C10.7 98.1 11.9 99.3 11.9 100.8C11.9 102.3 10.7 103.5 9.2 103.5Z" fill="#F29018"></path><path d="M2.7 103.5C1.2 103.5 0 102.3 0 100.8C0 99.3 1.2 98.1 2.7 98.1C4.2 98.1 5.4 99.3 5.4 100.8C5.4 102.3 4.2 103.5 2.7 103.5Z" fill="#F29018"></path><path d="M41.9 96.9C40.4 96.9 39.2 95.7 39.2 94.2C39.2 92.7 40.4 91.5 41.9 91.5C43.4 91.5 44.6 92.7 44.6 94.2C44.6 95.7 43.4 96.9 41.9 96.9Z" fill="#F29018"></path><path d="M48.4 96.9C46.9 96.9 45.7 95.7 45.7 94.2C45.7 92.7 46.9 91.5 48.4 91.5C49.9 91.5 51.1 92.7 51.1 94.2C51.2 95.7 49.9 96.9 48.4 96.9Z" fill="#F29018"></path><path d="M81.1 44.6C79.6 44.6 78.4 43.4 78.4 41.9C78.4 40.4 79.6 39.2 81.1 39.2C82.6 39.2 83.8 40.4 83.8 41.9C83.9 43.4 82.6 44.6 81.1 44.6Z" fill="#F29018"></path><path d="M41.9 31.6C40.4 31.6 39.2 30.4 39.2 28.9C39.2 27.4 40.4 26.2 41.9 26.2C43.4 26.2 44.6 27.4 44.6 28.9C44.6 30.4 43.4 31.6 41.9 31.6Z" fill="#F29018"></path><path d="M61.5 31.6C60 31.6 58.8 30.4 58.8 28.9C58.8 27.4 60 26.2 61.5 26.2C63 26.2 64.2 27.4 64.2 28.9C64.2 30.4 63 31.6 61.5 31.6Z" fill="#F29018"></path><path d="M68.1 31.6C66.6 31.6 65.4 30.4 65.4 28.9C65.4 27.4 66.6 26.2 68.1 26.2C69.6 26.2 70.8 27.4 70.8 28.9C70.8 30.4 69.6 31.6 68.1 31.6Z" fill="#F29018"></path><path d="M74.6 31.6C73.1 31.6 71.9 30.4 71.9 28.9C71.9 27.4 73.1 26.2 74.6 26.2C76.1 26.2 77.3 27.4 77.3 28.9C77.3 30.4 76.1 31.6 74.6 31.6Z" fill="#F29018"></path><path d="M81.1 31.6C79.6 31.6 78.4 30.4 78.4 28.9C78.4 27.4 79.6 26.2 81.1 26.2C82.6 26.2 83.8 27.4 83.8 28.9C83.8 30.4 82.6 31.6 81.1 31.6Z" fill="#F29018"></path><path d="M61.5 25C60 25 58.8 23.8 58.8 22.3C58.8 20.8 60 19.6 61.5 19.6C63 19.6 64.2 20.8 64.2 22.3C64.2 23.8 63 25 61.5 25Z" fill="#F29018"></path><path d="M55 31.6C53.5 31.6 52.3 30.4 52.3 28.9C52.3 27.4 53.5 26.2 55 26.2C56.5 26.2 57.7 27.4 57.7 28.9C57.7 30.4 56.5 31.6 55 31.6Z" fill="#F29018"></path><path d="M55 25C53.5 25 52.3 23.8 52.3 22.3C52.3 20.8 53.5 19.6 55 19.6C56.5 19.6 57.7 20.8 57.7 22.3C57.7 23.8 56.5 25 55 25Z" fill="#F29018"></path><path d="M41.9 18.5C40.4 18.5 39.2 17.3 39.2 15.8C39.2 14.3 40.4 13.1 41.9 13.1C43.4 13.1 44.6 14.3 44.6 15.8C44.6 17.3 43.4 18.5 41.9 18.5Z" fill="#F29018"></path><path d="M48.4 11.9C46.9 11.9 45.7 10.7 45.7 9.2C45.7 7.7 46.9 6.5 48.4 6.5C49.9 6.5 51.1 7.7 51.1 9.2C51.2 10.7 49.9 11.9 48.4 11.9Z" fill="#F29018"></path><path d="M55 5.4C53.5 5.4 52.3 4.2 52.3 2.7C52.3 1.2 53.5 0 55 0C56.5 0 57.7 1.2 57.7 2.7C57.7 4.2 56.5 5.4 55 5.4Z" fill="#F29018"></path><path d="M68.1 25C66.6 25 65.4 23.8 65.4 22.3C65.4 20.8 66.6 19.6 68.1 19.6C69.6 19.6 70.8 20.8 70.8 22.3C70.8 23.8 69.6 25 68.1 25Z" fill="#F29018"></path><path d="M74.6 25C73.1 25 71.9 23.8 71.9 22.3C71.9 20.8 73.1 19.6 74.6 19.6C76.1 19.6 77.3 20.8 77.3 22.3C77.3 23.8 76.1 25 74.6 25Z" fill="#F29018"></path><path d="M81.1 25C79.6 25 78.4 23.8 78.4 22.3C78.4 20.8 79.6 19.6 81.1 19.6C82.6 19.6 83.8 20.8 83.8 22.3C83.8 23.8 82.6 25 81.1 25Z" fill="#F29018"></path><path d="M61.5 18.5C60 18.5 58.8 17.3 58.8 15.8C58.8 14.3 60 13.1 61.5 13.1C63 13.1 64.2 14.3 64.2 15.8C64.2 17.3 63 18.5 61.5 18.5Z" fill="#F29018"></path><path d="M68.1 18.5C66.6 18.5 65.4 17.3 65.4 15.8C65.4 14.3 66.6 13.1 68.1 13.1C69.6 13.1 70.8 14.3 70.8 15.8C70.8 17.3 69.6 18.5 68.1 18.5Z" fill="#F29018"></path><path d="M74.6 18.5C73.1 18.5 71.9 17.3 71.9 15.8C71.9 14.3 73.1 13.1 74.6 13.1C76.1 13.1 77.3 14.3 77.3 15.8C77.3 17.3 76.1 18.5 74.6 18.5Z" fill="#F29018"></path><path d="M81.1 18.5C79.6 18.5 78.4 17.3 78.4 15.8C78.4 14.3 79.6 13.1 81.1 13.1C82.6 13.1 83.8 14.3 83.8 15.8C83.8 17.3 82.6 18.5 81.1 18.5Z" fill="#F29018"></path><path d="M87.7 31.6C86.2 31.6 85 30.4 85 28.9C85 27.4 86.2 26.2 87.7 26.2C89.2 26.2 90.4 27.4 90.4 28.9C90.4 30.4 89.2 31.6 87.7 31.6Z" fill="#F29018"></path><path d="M87.7 25C86.2 25 85 23.8 85 22.3C85 20.8 86.2 19.6 87.7 19.6C89.2 19.6 90.4 20.8 90.4 22.3C90.4 23.8 89.2 25 87.7 25Z" fill="#F29018"></path><path d="M87.7 18.5C86.2 18.5 85 17.3 85 15.8C85 14.3 86.2 13.1 87.7 13.1C89.2 13.1 90.4 14.3 90.4 15.8C90.4 17.3 89.2 18.5 87.7 18.5Z" fill="#F29018"></path><path d="M68.1 11.9C66.6 11.9 65.4 10.7 65.4 9.2C65.4 7.7 66.6 6.5 68.1 6.5C69.6 6.5 70.8 7.7 70.8 9.2C70.8 10.7 69.6 11.9 68.1 11.9Z" fill="#F29018"></path><path d="M74.6 11.9C73.1 11.9 71.9 10.7 71.9 9.2C71.9 7.7 73.1 6.5 74.6 6.5C76.1 6.5 77.3 7.7 77.3 9.2C77.3 10.7 76.1 11.9 74.6 11.9Z" fill="#F29018"></path><path d="M81.1 11.9C79.6 11.9 78.4 10.7 78.4 9.2C78.4 7.7 79.6 6.5 81.1 6.5C82.6 6.5 83.8 7.7 83.8 9.2C83.9 10.7 82.6 11.9 81.1 11.9Z" fill="#F29018"></path><path d="M87.7 11.9C86.2 11.9 85 10.7 85 9.2C85 7.7 86.2 6.5 87.7 6.5C89.2 6.5 90.4 7.7 90.4 9.2C90.4 10.7 89.2 11.9 87.7 11.9Z" fill="#F29018"></path><path d="M94.2 25C92.7 25 91.5 23.8 91.5 22.3C91.5 20.8 92.7 19.6 94.2 19.6C95.7 19.6 96.9 20.8 96.9 22.3C96.9 23.8 95.7 25 94.2 25Z" fill="#F29018"></path><path d="M94.2 18.5C92.7 18.5 91.5 17.3 91.5 15.8C91.5 14.3 92.7 13.1 94.2 13.1C95.7 13.1 96.9 14.3 96.9 15.8C96.9 17.3 95.7 18.5 94.2 18.5Z" fill="#F29018"></path><path d="M135.1 58.6V61.6C135.1 61.6 135.1 64.6 132.1 64.6H120.1V75V76.6C120.1 76.7 120.1 76.8 120.1 76.9C120.1 77 120.1 77 120.1 77.1C120 77.8 119.8 78.3 119.4 78.6C119.4 78.6 119.4 78.7 119.3 78.7C119.2 78.8 119.1 78.9 119 79C118.7 79.3 118.3 79.5 117.7 79.6C117.3 79.7 117.1 79.7 117.1 79.7H114.1C114.1 79.7 113.8 79.7 113.5 79.6C112.9 79.5 112.5 79.3 112.2 79C112.1 78.9 112 78.8 111.9 78.7C111.9 78.7 111.9 78.6 111.8 78.6C111.5 78.2 111.2 77.7 111.1 77.1C111.1 77 111.1 77 111.1 76.9C111.1 76.8 111.1 76.7 111.1 76.6V75V64.6H99.1C96.1 64.6 96.1 61.6 96.1 61.6V58.6C96.1 55.6 99.1 55.6 99.1 55.6H111.1V45.5V43.7C111.1 43.7 111.1 43.4 111.2 43C111.3 42.5 111.5 42.1 111.7 41.8C111.8 41.7 111.9 41.6 112 41.5L112.1 41.4C112.4 41.1 112.9 40.9 113.5 40.8C113.8 40.7 114 40.7 114.1 40.7H117.1C117.1 40.7 117.4 40.7 117.7 40.8C118.3 40.9 118.8 41.1 119.1 41.4L119.2 41.5C119.3 41.6 119.4 41.7 119.5 41.8C119.8 42.1 119.9 42.5 120 43C120.1 43.4 120.1 43.7 120.1 43.7V45.5V55.6H132.1C132.1 55.6 135.1 55.6 135.1 58.6Z" fill="#F29018"></path><path d="M132.1 83.9C119.1 92.9 101.2 89.6 92.3 76.6C83.4 63.6 86.6 45.7 99.6 36.8C112.6 27.8 130.5 31.1 139.4 44.1C148.3 57.1 145.1 74.9 132.1 83.9ZM149.2 37.3C136.5 18.9 111.2 14.2 92.8 27C74.4 39.7 69.7 65 82.5 83.4C93.8 99.8 115 105.2 132.5 97.4L148.1 120C150.4 123.3 154.9 124.1 158.3 121.8C161.6 119.5 162.5 115 160.2 111.7L144.5 89C158.1 75.4 160.5 53.6 149.2 37.3Z" fill="#110E72"></path>',117)];function g6(t,e){return l.openBlock(),l.createElementBlock("svg",p6,m6)}const sp=Ee(h6,[["render",g6]]),ua={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},y6={key:0,class:"b-d-alert-title"},Vo=l.defineComponent({__name:"BDAlert",props:{variant:{default:ua.PRIMARY},title:{default:""}},setup(t){const e=t,n=l.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n.value),role:"alert"},[r.title?(l.openBlock(),l.createElementBlock("div",y6,[l.createVNode(l.unref(oo)),l.createElementVNode("span",null,[l.createElementVNode("strong",null,l.toDisplayString(e.title),1)])])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}});function v6(t){return l.getCurrentScope()?(l.onScopeDispose(t),!0):!1}function fa(t){return typeof t=="function"?t():l.unref(t)}const b6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const C6=t=>typeof t<"u",E6=Object.prototype.toString,S6=t=>E6.call(t)==="[object Object]",Qc=()=>{};function _6(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}function w6(t,e={}){let n,r,o=Qc;const i=c=>{clearTimeout(c),o(),o=Qc};return c=>{const a=fa(t),d=fa(e.maxWait);return n&&i(n),a<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(c())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,d&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(c())},d)),n=setTimeout(()=>{r&&i(r),r=null,u(c())},a)})}}function k6(t,e=200,n={}){return _6(w6(e,n),t)}function ap(t){var e;const n=fa(t);return(e=n==null?void 0:n.$el)!=null?e:n}const A6=b6?window:void 0;function lp(...t){let e,n,r,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,o]=t,e=A6):[e,n,r,o]=t,!e)return Qc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},c=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),a=l.watch(()=>[ap(e),fa(o)],([u,f])=>{if(s(),!u)return;const h=S6(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(m=>c(u,p,m,h))))},{immediate:!0,flush:"post"}),d=()=>{a(),s()};return v6(d),d}function T6(t){return JSON.parse(JSON.stringify(t))}function I6(t,e={}){const{initialValue:n=!1,focusVisible:r=!1}=e,o=l.ref(!1),i=l.computed(()=>ap(t));lp(i,"focus",c=>{var a,d;(!r||(d=(a=c.target).matches)!=null&&d.call(a,":focus-visible"))&&(o.value=!0)}),lp(i,"blur",()=>o.value=!1);const s=l.computed({get:()=>o.value,set(c){var a,d;!c&&o.value?(a=i.value)==null||a.blur():c&&!o.value&&((d=i.value)==null||d.focus())}});return l.watch(i,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function io(t,e,n,r={}){var o,i,s;const{clone:c=!1,passive:a=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=l.getCurrentInstance(),m=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let g=d;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=b=>c?typeof c=="function"?c(b):T6(b):b,C=()=>C6(t[e])?y(t[e]):f,E=b=>{h?h(b)&&m(g,b):m(g,b)};if(a){const b=C(),v=l.ref(b);let k=!1;return l.watch(()=>t[e],_=>{k||(k=!0,v.value=y(_),l.nextTick(()=>k=!1))}),l.watch(v,_=>{!k&&(_!==t[e]||u)&&E(_)},{deep:u}),v}else return l.computed({get(){return C()},set(b){E(b)}})}const x6={class:"bd-zoom-slider d-flex"},O6=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],N6=["max"],M6=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],Zc=l.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<n.maxValue&&r.value++}return(s,c)=>(l.openBlock(),l.createElementBlock("div",x6,[(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},O6)),l.withDirectives(l.createElementVNode("input",{type:"range","onUpdate:modelValue":c[0]||(c[0]=a=>l.isRef(r)?r.value=a:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,N6),[[l.vModelText,l.unref(r)]]),(l.openBlock(),l.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},M6))]))}}),L6={class:"bd-profile-picture"},D6=["src","alt"],zi=l.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:Mt.LG},linkText:{default:null}},emits:["click"],setup(t,{emit:e}){const n=t,r=l.computed(()=>`${n.username?`${n.username}'s `:""}profielfoto`),o=()=>{e("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("div",L6,[l.createElementVNode("div",{class:l.normalizeClass(["rounded-circle",n.size])},[l.createElementVNode("img",{src:n.src,alt:r.value,class:"position-absolute top-0 start-0"},null,8,D6)],2),n.linkText?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"link",onClick:o,textContent:l.toDisplayString(n.linkText)},null,8,["textContent"])):l.createCommentVNode("",!0)]))}});for(var so=256,cp=[],dp=256,ha;so--;)cp[so]=(so+256).toString(16).substring(1);function up(t){var e=0,n=t||11;if(!ha||so+n>dp*2)for(ha="",so=0;e<dp;e++)ha+=cp[Math.random()*256|0];return ha.substring(so,so+++n)}function Fo(){return{uniqueIdentifier:l.ref(up())}}const P6=["id"],B6={key:0},pa=l.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=n.value,o=l.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=l.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=l.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(c,a)=>(l.openBlock(),l.createElementBlock("div",{id:l.unref(r),class:l.normalizeClass(o.value)},[!c.noHeader||c.noBody?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(i.value)},[l.renderSlot(c.$slots,"header",{},()=>[c.title?(l.openBlock(),l.createElementBlock("h2",B6,l.toDisplayString(c.title),1)):l.createCommentVNode("",!0)])],2)):l.createCommentVNode("",!0),c.noBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(s.value)},[l.renderSlot(c.$slots,"body")],2))],10,P6))}}),R6={key:0},$6={class:"bd-collapsable-card__actions"},V6=["data-bs-target"],Jc=l.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=n.value,o=l.computed(()=>`bd-collapsable-card__collapse-${r}`),i=l.computed(()=>({"d-block":[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==Mt.SM,"d-lg-none":e.showOn.toLowerCase()==Mt.MD})),s=l.computed(()=>{let a={"round-corners-sm":e.showOn.toLowerCase()==Mt.SM,"round-corners-md":e.showOn.toLowerCase()==Mt.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(a).filter(d=>a[d]).join(" ")}),c=l.computed(()=>{let a={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==Mt.SM&&e.visible};return Object.keys(a).filter(d=>a[d]).join(" ")});return(a,d)=>(l.openBlock(),l.createBlock(pa,{class:"bd-collapsable-card",title:a.title,"header-class":s.value,"body-class":c.value},{header:l.withCtx(()=>[a.title?(l.openBlock(),l.createElementBlock("h2",R6,l.toDisplayString(a.title),1)):l.createCommentVNode("",!0),l.createElementVNode("div",$6,[l.renderSlot(a.$slots,"action"),!a.disabled&&a.visible?(l.openBlock(),l.createElementBlock("button",{key:0,class:l.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[l.createVNode(l.unref(sa))],10,V6)):l.createCommentVNode("",!0)])]),body:l.withCtx(()=>[l.renderSlot(a.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*!
57
57
  * shared v9.14.4
58
58
  * (c) 2025 kazuya kawaguchi
59
59
  * Released under the MIT License.
60
- */const er=typeof window<"u";let qt,ao;if(process.env.NODE_ENV!=="production"){const t=er&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(qt=e=>{t.mark(e)},ao=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const F6=/\{([0-9a-zA-Z]+)\}/g;function Xc(t,...e){return e.length===1&&Ze(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(F6,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const tr=(t,e=!1)=>e?Symbol.for(t):Symbol(t),j6=(t,e,n)=>z6({l:t,k:e,s:n}),z6=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yt=t=>typeof t=="number"&&isFinite(t),U6=t=>mp(t)==="[object Date]",jo=t=>mp(t)==="[object RegExp]",ma=t=>He(t)&&Object.keys(t).length===0,It=Object.assign,H6=Object.create,Xe=(t=null)=>H6(t);let fp;const nr=()=>fp||(fp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xe());function hp(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const W6=Object.prototype.hasOwnProperty;function _n(t,e){return W6.call(t,e)}const ut=Array.isArray,nt=t=>typeof t=="function",Te=t=>typeof t=="string",tt=t=>typeof t=="boolean",Ze=t=>t!==null&&typeof t=="object",K6=t=>Ze(t)&&nt(t.then)&&nt(t.catch),pp=Object.prototype.toString,mp=t=>pp.call(t),He=t=>{if(!Ze(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},Y6=t=>t==null?"":ut(t)||He(t)&&t.toString===pp?JSON.stringify(t,null,2):String(t);function G6(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const gp=2;function Q6(t,e=0,n=t.length){const r=t.split(/\r?\n/);let o=0;const i=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+1,o>=e){for(let c=s-gp;c<=s+gp||n>o;c++){if(c<0||c>=r.length)continue;const a=c+1;i.push(`${a}${" ".repeat(3-String(a).length)}| ${r[c]}`);const d=r[c].length;if(c===s){const u=e-(o-d)+1,f=Math.max(1,n>o?d-u:n-e);i.push(" | "+" ".repeat(u)+"^".repeat(f))}else if(c>s){if(n>o){const u=Math.max(Math.min(n-o,d),1);i.push(" | "+"^".repeat(u))}o+=d+1}}break}return i.join(`
60
+ */const er=typeof window<"u";let qt,ao;if(process.env.NODE_ENV!=="production"){const t=er&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(qt=e=>{t.mark(e)},ao=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const F6=/\{([0-9a-zA-Z]+)\}/g;function Xc(t,...e){return e.length===1&&Ze(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(F6,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const tr=(t,e=!1)=>e?Symbol.for(t):Symbol(t),j6=(t,e,n)=>z6({l:t,k:e,s:n}),z6=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),yt=t=>typeof t=="number"&&isFinite(t),U6=t=>mp(t)==="[object Date]",jo=t=>mp(t)==="[object RegExp]",ma=t=>He(t)&&Object.keys(t).length===0,It=Object.assign,H6=Object.create,Xe=(t=null)=>H6(t);let fp;const nr=()=>fp||(fp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xe());function hp(t){return t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const W6=Object.prototype.hasOwnProperty;function wn(t,e){return W6.call(t,e)}const ut=Array.isArray,nt=t=>typeof t=="function",Te=t=>typeof t=="string",tt=t=>typeof t=="boolean",Ze=t=>t!==null&&typeof t=="object",K6=t=>Ze(t)&&nt(t.then)&&nt(t.catch),pp=Object.prototype.toString,mp=t=>pp.call(t),He=t=>{if(!Ze(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},Y6=t=>t==null?"":ut(t)||He(t)&&t.toString===pp?JSON.stringify(t,null,2):String(t);function G6(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const gp=2;function Q6(t,e=0,n=t.length){const r=t.split(/\r?\n/);let o=0;const i=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+1,o>=e){for(let c=s-gp;c<=s+gp||n>o;c++){if(c<0||c>=r.length)continue;const a=c+1;i.push(`${a}${" ".repeat(3-String(a).length)}| ${r[c]}`);const d=r[c].length;if(c===s){const u=e-(o-d)+1,f=Math.max(1,n>o?d-u:n-e);i.push(" | "+" ".repeat(u)+"^".repeat(f))}else if(c>s){if(n>o){const u=Math.max(Math.min(n-o,d),1);i.push(" | "+"^".repeat(u))}o+=d+1}}break}return i.join(`
61
61
  `)}function ga(t){let e=t;return()=>++e}function rr(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const yp={};function vp(t){yp[t]||(yp[t]=!0,rr(t))}function Z6(){const t=new Map;return{events:t,on(n,r){const o=t.get(n);o&&o.push(r)||t.set(n,[r])},off(n,r){const o=t.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(o=>o(r)),(t.get("*")||[]).slice().map(o=>o(n,r))}}}const ya=t=>!Ze(t)||ut(t);function va(t,e){if(ya(t)||ya(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ze(r[i])&&!Ze(o[i])&&(o[i]=Array.isArray(r[i])?[]:Xe()),ya(o[i])||ya(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}/*!
62
62
  * message-compiler v9.14.4
63
63
  * (c) 2025 kazuya kawaguchi
64
64
  * Released under the MIT License.
65
65
  */function J6(t,e,n){return{line:t,column:e,offset:n}}function ba(t,e,n){const r={start:t,end:e};return n!=null&&(r.source=n),r}const X6=/\{([0-9a-zA-Z]+)\}/g;function bp(t,...e){return e.length===1&&q6(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(X6,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const Cp=Object.assign,Ep=t=>typeof t=="string",q6=t=>t!==null&&typeof t=="object";function Sp(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const Ca={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},eC={[Ca.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function tC(t,e,...n){const r=bp(eC[t]||"",...n||[]),o={message:String(r),code:t};return e&&(o.location=e),o}const Le={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},nC={[Le.EXPECTED_TOKEN]:"Expected token: '{0}'",[Le.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Le.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Le.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Le.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Le.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Le.EMPTY_PLACEHOLDER]:"Empty placeholder",[Le.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Le.INVALID_LINKED_FORMAT]:"Invalid linked format",[Le.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Le.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Le.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Le.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Le.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Le.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function zo(t,e,n={}){const{domain:r,messages:o,args:i}=n,s=bp((o||nC)[t]||"",...i||[]),c=new SyntaxError(String(s));return c.code=t,e&&(c.location=e),c.domain=r,c}function rC(t){throw t}const oC=/<\/?[\w\s="/.':;#-\/]+>/,iC=t=>oC.test(t),or=" ",sC="\r",Lt=`
66
- `,aC=String.fromCharCode(8232),lC=String.fromCharCode(8233);function cC(t){const e=t;let n=0,r=1,o=1,i=0;const s=O=>e[O]===sC&&e[O+1]===Lt,c=O=>e[O]===Lt,a=O=>e[O]===lC,d=O=>e[O]===aC,u=O=>s(O)||c(O)||a(O)||d(O),f=()=>n,h=()=>r,p=()=>o,m=()=>i,y=O=>s(O)||a(O)||d(O)?Lt:e[O],g=()=>y(n),b=()=>y(n+i);function E(){return i=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function C(){return s(n+i)&&i++,i++,e[n+i]}function v(){n=0,r=1,o=1,i=0}function k(O=0){i=O}function _(){const O=n+i;for(;O!==n;)E();i=0}return{index:f,line:h,column:p,peekOffset:m,charAt:y,currentChar:g,currentPeek:b,next:E,peek:C,reset:v,resetPeek:k,skipToPeek:_}}const Sr=void 0,dC=".",_p="'",uC="tokenizer";function fC(t,e={}){const n=e.location!==!1,r=cC(t),o=()=>r.index(),i=()=>J6(r.line(),r.column(),r.index()),s=i(),c=o(),a={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>a,{onError:u}=e;function f(A,T,H,...Z){const le=d();if(T.column+=H,T.offset+=H,u){const ge=n?ba(le.startLoc,T):null,Ae=zo(A,ge,{domain:uC,args:Z});u(Ae)}}function h(A,T,H){A.endLoc=i(),A.currentType=T;const Z={type:T};return n&&(Z.loc=ba(A.startLoc,A.endLoc)),H!=null&&(Z.value=H),Z}const p=A=>h(A,14);function m(A,T){return A.currentChar()===T?(A.next(),T):(f(Le.EXPECTED_TOKEN,i(),0,T),"")}function y(A){let T="";for(;A.currentPeek()===or||A.currentPeek()===Lt;)T+=A.currentPeek(),A.peek();return T}function g(A){const T=y(A);return A.skipToPeek(),T}function b(A){if(A===Sr)return!1;const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function E(A){if(A===Sr)return!1;const T=A.charCodeAt(0);return T>=48&&T<=57}function C(A,T){const{currentType:H}=T;if(H!==2)return!1;y(A);const Z=b(A.currentPeek());return A.resetPeek(),Z}function v(A,T){const{currentType:H}=T;if(H!==2)return!1;y(A);const Z=A.currentPeek()==="-"?A.peek():A.currentPeek(),le=E(Z);return A.resetPeek(),le}function k(A,T){const{currentType:H}=T;if(H!==2)return!1;y(A);const Z=A.currentPeek()===_p;return A.resetPeek(),Z}function _(A,T){const{currentType:H}=T;if(H!==8)return!1;y(A);const Z=A.currentPeek()===".";return A.resetPeek(),Z}function O(A,T){const{currentType:H}=T;if(H!==9)return!1;y(A);const Z=b(A.currentPeek());return A.resetPeek(),Z}function L(A,T){const{currentType:H}=T;if(!(H===8||H===12))return!1;y(A);const Z=A.currentPeek()===":";return A.resetPeek(),Z}function N(A,T){const{currentType:H}=T;if(H!==10)return!1;const Z=()=>{const ge=A.currentPeek();return ge==="{"?b(A.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===or||!ge?!1:ge===Lt?(A.peek(),Z()):P(A,!1)},le=Z();return A.resetPeek(),le}function j(A){y(A);const T=A.currentPeek()==="|";return A.resetPeek(),T}function V(A){const T=y(A),H=A.currentPeek()==="%"&&A.peek()==="{";return A.resetPeek(),{isModulo:H,hasSpace:T.length>0}}function P(A,T=!0){const H=(le=!1,ge="",Ae=!1)=>{const q=A.currentPeek();return q==="{"?ge==="%"?!1:le:q==="@"||!q?ge==="%"?!0:le:q==="%"?(A.peek(),H(le,"%",!0)):q==="|"?ge==="%"||Ae?!0:!(ge===or||ge===Lt):q===or?(A.peek(),H(!0,or,Ae)):q===Lt?(A.peek(),H(!0,Lt,Ae)):!0},Z=H();return T&&A.resetPeek(),Z}function z(A,T){const H=A.currentChar();return H===Sr?Sr:T(H)?(A.next(),H):null}function K(A){const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function F(A){return z(A,K)}function W(A){const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function Q(A){return z(A,W)}function U(A){const T=A.charCodeAt(0);return T>=48&&T<=57}function ee(A){return z(A,U)}function ne(A){const T=A.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function ae(A){return z(A,ne)}function ue(A){let T="",H="";for(;T=ee(A);)H+=T;return H}function me(A){g(A);const T=A.currentChar();return T!=="%"&&f(Le.EXPECTED_TOKEN,i(),0,T),A.next(),"%"}function Ce(A){let T="";for(;;){const H=A.currentChar();if(H==="{"||H==="}"||H==="@"||H==="|"||!H)break;if(H==="%")if(P(A))T+=H,A.next();else break;else if(H===or||H===Lt)if(P(A))T+=H,A.next();else{if(j(A))break;T+=H,A.next()}else T+=H,A.next()}return T}function ke(A){g(A);let T="",H="";for(;T=Q(A);)H+=T;return A.currentChar()===Sr&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H}function Oe(A){g(A);let T="";return A.currentChar()==="-"?(A.next(),T+=`-${ue(A)}`):T+=ue(A),A.currentChar()===Sr&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),T}function Se(A){return A!==_p&&A!==Lt}function D(A){g(A),m(A,"'");let T="",H="";for(;T=z(A,Se);)T==="\\"?H+=R(A):H+=T;const Z=A.currentChar();return Z===Lt||Z===Sr?(f(Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Z===Lt&&(A.next(),m(A,"'")),H):(m(A,"'"),H)}function R(A){const T=A.currentChar();switch(T){case"\\":case"'":return A.next(),`\\${T}`;case"u":return x(A,T,4);case"U":return x(A,T,6);default:return f(Le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,T),""}}function x(A,T,H){m(A,T);let Z="";for(let le=0;le<H;le++){const ge=ae(A);if(!ge){f(Le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${T}${Z}${A.currentChar()}`);break}Z+=ge}return`\\${T}${Z}`}function B(A){return A!=="{"&&A!=="}"&&A!==or&&A!==Lt}function S(A){g(A);let T="",H="";for(;T=z(A,B);)H+=T;return H}function w(A){let T="",H="";for(;T=F(A);)H+=T;return H}function I(A){const T=H=>{const Z=A.currentChar();return Z==="{"||Z==="%"||Z==="@"||Z==="|"||Z==="("||Z===")"||!Z||Z===or?H:(H+=Z,A.next(),T(H))};return T("")}function M(A){g(A);const T=m(A,"|");return g(A),T}function Y(A,T){let H=null;switch(A.currentChar()){case"{":return T.braceNest>=1&&f(Le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),A.next(),H=h(T,2,"{"),g(A),T.braceNest++,H;case"}":return T.braceNest>0&&T.currentType===2&&f(Le.EMPTY_PLACEHOLDER,i(),0),A.next(),H=h(T,3,"}"),T.braceNest--,T.braceNest>0&&g(A),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),H;case"@":return T.braceNest>0&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H=G(A,T)||p(T),T.braceNest=0,H;default:{let le=!0,ge=!0,Ae=!0;if(j(A))return T.braceNest>0&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,H;if(T.braceNest>0&&(T.currentType===5||T.currentType===6||T.currentType===7))return f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),T.braceNest=0,J(A,T);if(le=C(A,T))return H=h(T,5,ke(A)),g(A),H;if(ge=v(A,T))return H=h(T,6,Oe(A)),g(A),H;if(Ae=k(A,T))return H=h(T,7,D(A)),g(A),H;if(!le&&!ge&&!Ae)return H=h(T,13,S(A)),f(Le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,H.value),g(A),H;break}}return H}function G(A,T){const{currentType:H}=T;let Z=null;const le=A.currentChar();switch((H===8||H===9||H===12||H===10)&&(le===Lt||le===or)&&f(Le.INVALID_LINKED_FORMAT,i(),0),le){case"@":return A.next(),Z=h(T,8,"@"),T.inLinked=!0,Z;case".":return g(A),A.next(),h(T,9,".");case":":return g(A),A.next(),h(T,10,":");default:return j(A)?(Z=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,Z):_(A,T)||L(A,T)?(g(A),G(A,T)):O(A,T)?(g(A),h(T,12,w(A))):N(A,T)?(g(A),le==="{"?Y(A,T)||Z:h(T,11,I(A))):(H===8&&f(Le.INVALID_LINKED_FORMAT,i(),0),T.braceNest=0,T.inLinked=!1,J(A,T))}}function J(A,T){let H={type:14};if(T.braceNest>0)return Y(A,T)||p(T);if(T.inLinked)return G(A,T)||p(T);switch(A.currentChar()){case"{":return Y(A,T)||p(T);case"}":return f(Le.UNBALANCED_CLOSING_BRACE,i(),0),A.next(),h(T,3,"}");case"@":return G(A,T)||p(T);default:{if(j(A))return H=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,H;const{isModulo:le,hasSpace:ge}=V(A);if(le)return ge?h(T,0,Ce(A)):h(T,4,me(A));if(P(A))return h(T,0,Ce(A));break}}return H}function X(){const{currentType:A,offset:T,startLoc:H,endLoc:Z}=a;return a.lastType=A,a.lastOffset=T,a.lastStartLoc=H,a.lastEndLoc=Z,a.offset=o(),a.startLoc=i(),r.currentChar()===Sr?h(a,14):J(r,a)}return{nextToken:X,currentOffset:o,currentPosition:i,context:d}}const hC="parser",pC=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function mC(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function gC(t={}){const e=t.location!==!1,{onError:n,onWarn:r}=t;function o(C,v,k,_,...O){const L=C.currentPosition();if(L.offset+=_,L.column+=_,n){const N=e?ba(k,L):null,j=zo(v,N,{domain:hC,args:O});n(j)}}function i(C,v,k,_,...O){const L=C.currentPosition();if(L.offset+=_,L.column+=_,r){const N=e?ba(k,L):null;r(tC(v,N,O))}}function s(C,v,k){const _={type:C};return e&&(_.start=v,_.end=v,_.loc={start:k,end:k}),_}function c(C,v,k,_){_&&(C.type=_),e&&(C.end=v,C.loc&&(C.loc.end=k))}function a(C,v){const k=C.context(),_=s(3,k.offset,k.startLoc);return _.value=v,c(_,C.currentOffset(),C.currentPosition()),_}function d(C,v){const k=C.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(5,_,O);return L.index=parseInt(v,10),C.nextToken(),c(L,C.currentOffset(),C.currentPosition()),L}function u(C,v,k){const _=C.context(),{lastOffset:O,lastStartLoc:L}=_,N=s(4,O,L);return N.key=v,k===!0&&(N.modulo=!0),C.nextToken(),c(N,C.currentOffset(),C.currentPosition()),N}function f(C,v){const k=C.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(9,_,O);return L.value=v.replace(pC,mC),C.nextToken(),c(L,C.currentOffset(),C.currentPosition()),L}function h(C){const v=C.nextToken(),k=C.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(8,_,O);return v.type!==12?(o(C,Le.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),L.value="",c(L,_,O),{nextConsumeToken:v,node:L}):(v.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,wn(v)),L.value=v.value||"",c(L,C.currentOffset(),C.currentPosition()),{node:L})}function p(C,v){const k=C.context(),_=s(7,k.offset,k.startLoc);return _.value=v,c(_,C.currentOffset(),C.currentPosition()),_}function m(C){const v=C.context(),k=s(6,v.offset,v.startLoc);let _=C.nextToken();if(_.type===9){const O=h(C);k.modifier=O.node,_=O.nextConsumeToken||C.nextToken()}switch(_.type!==10&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(_)),_=C.nextToken(),_.type===2&&(_=C.nextToken()),_.type){case 11:_.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(_)),k.key=p(C,_.value||"");break;case 5:_.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(_)),k.key=u(C,_.value||"");break;case 6:_.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(_)),k.key=d(C,_.value||"");break;case 7:_.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(_)),k.key=f(C,_.value||"");break;default:{o(C,Le.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const O=C.context(),L=s(7,O.offset,O.startLoc);return L.value="",c(L,O.offset,O.startLoc),k.key=L,c(k,O.offset,O.startLoc),{nextConsumeToken:_,node:k}}}return c(k,C.currentOffset(),C.currentPosition()),{node:k}}function y(C){const v=C.context(),k=v.currentType===1?C.currentOffset():v.offset,_=v.currentType===1?v.endLoc:v.startLoc,O=s(2,k,_);O.items=[];let L=null,N=null;do{const P=L||C.nextToken();switch(L=null,P.type){case 0:P.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(P)),O.items.push(a(C,P.value||""));break;case 6:P.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(P)),O.items.push(d(C,P.value||""));break;case 4:N=!0;break;case 5:P.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(P)),O.items.push(u(C,P.value||"",!!N)),N&&(i(C,Ca.USE_MODULO_SYNTAX,v.lastStartLoc,0,wn(P)),N=null);break;case 7:P.value==null&&o(C,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,wn(P)),O.items.push(f(C,P.value||""));break;case 8:{const z=m(C);O.items.push(z.node),L=z.nextConsumeToken||null;break}}}while(v.currentType!==14&&v.currentType!==1);const j=v.currentType===1?v.lastOffset:C.currentOffset(),V=v.currentType===1?v.lastEndLoc:C.currentPosition();return c(O,j,V),O}function g(C,v,k,_){const O=C.context();let L=_.items.length===0;const N=s(1,v,k);N.cases=[],N.cases.push(_);do{const j=y(C);L||(L=j.items.length===0),N.cases.push(j)}while(O.currentType!==14);return L&&o(C,Le.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),c(N,C.currentOffset(),C.currentPosition()),N}function b(C){const v=C.context(),{offset:k,startLoc:_}=v,O=y(C);return v.currentType===14?O:g(C,k,_,O)}function E(C){const v=fC(C,Cp({},t)),k=v.context(),_=s(0,k.offset,k.startLoc);return e&&_.loc&&(_.loc.source=C),_.body=b(v),t.onCacheKey&&(_.cacheKey=t.onCacheKey(C)),k.currentType!==14&&o(v,Le.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,C[k.offset]||""),c(_,v.currentOffset(),v.currentPosition()),_}return{parse:E}}function wn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function yC(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function wp(t,e){for(let n=0;n<t.length;n++)qc(t[n],e)}function qc(t,e){switch(t.type){case 1:wp(t.cases,e),e.helper("plural");break;case 2:wp(t.items,e);break;case 6:{qc(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function vC(t,e={}){const n=yC(t);n.helper("normalize"),t.body&&qc(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function bC(t){const e=t.body;return e.type===2?kp(e):e.cases.forEach(n=>kp(n)),t}function kp(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=Sp(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const CC="minifier";function Uo(t){switch(t.t=t.type,t.type){case 0:{const e=t;Uo(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Uo(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Uo(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Uo(e.key),e.k=e.key,delete e.key,e.modifier&&(Uo(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw zo(Le.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:CC,args:[t.type]})}delete t.type}const EC="parser";function SC(t,e){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=e,s=e.location!==!1,c={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};s&&t.loc&&(c.source=t.loc.source);const a=()=>c;function d(g,b){c.code+=g}function u(g,b=!0){const E=b?o:"";d(i?E+" ".repeat(g):E)}function f(g=!0){const b=++c.indentLevel;g&&u(b)}function h(g=!0){const b=--c.indentLevel;g&&u(b)}function p(){u(c.indentLevel)}return{context:a,push:d,indent:f,deindent:h,newline:p,helper:g=>`_${g}`,needIndent:()=>c.needIndent}}function _C(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ho(t,e.key),e.modifier?(t.push(", "),Ho(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function wC(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let i=0;i<o&&(Ho(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function kC(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let i=0;i<o&&(Ho(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function AC(t,e){e.body?Ho(t,e.body):t.push("null")}function Ho(t,e){const{helper:n}=t;switch(e.type){case 0:AC(t,e);break;case 1:kC(t,e);break;case 2:wC(t,e);break;case 6:_C(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw zo(Le.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:EC,args:[e.type]})}}const TC=(t,e={})=>{const n=Ep(e.mode)?e.mode:"normal",r=Ep(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
66
+ `,aC=String.fromCharCode(8232),lC=String.fromCharCode(8233);function cC(t){const e=t;let n=0,r=1,o=1,i=0;const s=O=>e[O]===sC&&e[O+1]===Lt,c=O=>e[O]===Lt,a=O=>e[O]===lC,d=O=>e[O]===aC,u=O=>s(O)||c(O)||a(O)||d(O),f=()=>n,h=()=>r,p=()=>o,m=()=>i,g=O=>s(O)||a(O)||d(O)?Lt:e[O],y=()=>g(n),C=()=>g(n+i);function E(){return i=0,u(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function b(){return s(n+i)&&i++,i++,e[n+i]}function v(){n=0,r=1,o=1,i=0}function k(O=0){i=O}function _(){const O=n+i;for(;O!==n;)E();i=0}return{index:f,line:h,column:p,peekOffset:m,charAt:g,currentChar:y,currentPeek:C,next:E,peek:b,reset:v,resetPeek:k,skipToPeek:_}}const Sr=void 0,dC=".",_p="'",uC="tokenizer";function fC(t,e={}){const n=e.location!==!1,r=cC(t),o=()=>r.index(),i=()=>J6(r.line(),r.column(),r.index()),s=i(),c=o(),a={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},d=()=>a,{onError:u}=e;function f(A,T,H,...Z){const le=d();if(T.column+=H,T.offset+=H,u){const ge=n?ba(le.startLoc,T):null,Ae=zo(A,ge,{domain:uC,args:Z});u(Ae)}}function h(A,T,H){A.endLoc=i(),A.currentType=T;const Z={type:T};return n&&(Z.loc=ba(A.startLoc,A.endLoc)),H!=null&&(Z.value=H),Z}const p=A=>h(A,14);function m(A,T){return A.currentChar()===T?(A.next(),T):(f(Le.EXPECTED_TOKEN,i(),0,T),"")}function g(A){let T="";for(;A.currentPeek()===or||A.currentPeek()===Lt;)T+=A.currentPeek(),A.peek();return T}function y(A){const T=g(A);return A.skipToPeek(),T}function C(A){if(A===Sr)return!1;const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T===95}function E(A){if(A===Sr)return!1;const T=A.charCodeAt(0);return T>=48&&T<=57}function b(A,T){const{currentType:H}=T;if(H!==2)return!1;g(A);const Z=C(A.currentPeek());return A.resetPeek(),Z}function v(A,T){const{currentType:H}=T;if(H!==2)return!1;g(A);const Z=A.currentPeek()==="-"?A.peek():A.currentPeek(),le=E(Z);return A.resetPeek(),le}function k(A,T){const{currentType:H}=T;if(H!==2)return!1;g(A);const Z=A.currentPeek()===_p;return A.resetPeek(),Z}function _(A,T){const{currentType:H}=T;if(H!==8)return!1;g(A);const Z=A.currentPeek()===".";return A.resetPeek(),Z}function O(A,T){const{currentType:H}=T;if(H!==9)return!1;g(A);const Z=C(A.currentPeek());return A.resetPeek(),Z}function L(A,T){const{currentType:H}=T;if(!(H===8||H===12))return!1;g(A);const Z=A.currentPeek()===":";return A.resetPeek(),Z}function N(A,T){const{currentType:H}=T;if(H!==10)return!1;const Z=()=>{const ge=A.currentPeek();return ge==="{"?C(A.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===or||!ge?!1:ge===Lt?(A.peek(),Z()):P(A,!1)},le=Z();return A.resetPeek(),le}function j(A){g(A);const T=A.currentPeek()==="|";return A.resetPeek(),T}function V(A){const T=g(A),H=A.currentPeek()==="%"&&A.peek()==="{";return A.resetPeek(),{isModulo:H,hasSpace:T.length>0}}function P(A,T=!0){const H=(le=!1,ge="",Ae=!1)=>{const q=A.currentPeek();return q==="{"?ge==="%"?!1:le:q==="@"||!q?ge==="%"?!0:le:q==="%"?(A.peek(),H(le,"%",!0)):q==="|"?ge==="%"||Ae?!0:!(ge===or||ge===Lt):q===or?(A.peek(),H(!0,or,Ae)):q===Lt?(A.peek(),H(!0,Lt,Ae)):!0},Z=H();return T&&A.resetPeek(),Z}function z(A,T){const H=A.currentChar();return H===Sr?Sr:T(H)?(A.next(),H):null}function K(A){const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36}function F(A){return z(A,K)}function W(A){const T=A.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36||T===45}function Q(A){return z(A,W)}function U(A){const T=A.charCodeAt(0);return T>=48&&T<=57}function ee(A){return z(A,U)}function ne(A){const T=A.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102}function ae(A){return z(A,ne)}function ue(A){let T="",H="";for(;T=ee(A);)H+=T;return H}function me(A){y(A);const T=A.currentChar();return T!=="%"&&f(Le.EXPECTED_TOKEN,i(),0,T),A.next(),"%"}function Ce(A){let T="";for(;;){const H=A.currentChar();if(H==="{"||H==="}"||H==="@"||H==="|"||!H)break;if(H==="%")if(P(A))T+=H,A.next();else break;else if(H===or||H===Lt)if(P(A))T+=H,A.next();else{if(j(A))break;T+=H,A.next()}else T+=H,A.next()}return T}function ke(A){y(A);let T="",H="";for(;T=Q(A);)H+=T;return A.currentChar()===Sr&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H}function Oe(A){y(A);let T="";return A.currentChar()==="-"?(A.next(),T+=`-${ue(A)}`):T+=ue(A),A.currentChar()===Sr&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),T}function Se(A){return A!==_p&&A!==Lt}function D(A){y(A),m(A,"'");let T="",H="";for(;T=z(A,Se);)T==="\\"?H+=R(A):H+=T;const Z=A.currentChar();return Z===Lt||Z===Sr?(f(Le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Z===Lt&&(A.next(),m(A,"'")),H):(m(A,"'"),H)}function R(A){const T=A.currentChar();switch(T){case"\\":case"'":return A.next(),`\\${T}`;case"u":return x(A,T,4);case"U":return x(A,T,6);default:return f(Le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,T),""}}function x(A,T,H){m(A,T);let Z="";for(let le=0;le<H;le++){const ge=ae(A);if(!ge){f(Le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${T}${Z}${A.currentChar()}`);break}Z+=ge}return`\\${T}${Z}`}function B(A){return A!=="{"&&A!=="}"&&A!==or&&A!==Lt}function S(A){y(A);let T="",H="";for(;T=z(A,B);)H+=T;return H}function w(A){let T="",H="";for(;T=F(A);)H+=T;return H}function I(A){const T=H=>{const Z=A.currentChar();return Z==="{"||Z==="%"||Z==="@"||Z==="|"||Z==="("||Z===")"||!Z||Z===or?H:(H+=Z,A.next(),T(H))};return T("")}function M(A){y(A);const T=m(A,"|");return y(A),T}function Y(A,T){let H=null;switch(A.currentChar()){case"{":return T.braceNest>=1&&f(Le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),A.next(),H=h(T,2,"{"),y(A),T.braceNest++,H;case"}":return T.braceNest>0&&T.currentType===2&&f(Le.EMPTY_PLACEHOLDER,i(),0),A.next(),H=h(T,3,"}"),T.braceNest--,T.braceNest>0&&y(A),T.inLinked&&T.braceNest===0&&(T.inLinked=!1),H;case"@":return T.braceNest>0&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H=G(A,T)||p(T),T.braceNest=0,H;default:{let le=!0,ge=!0,Ae=!0;if(j(A))return T.braceNest>0&&f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),H=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,H;if(T.braceNest>0&&(T.currentType===5||T.currentType===6||T.currentType===7))return f(Le.UNTERMINATED_CLOSING_BRACE,i(),0),T.braceNest=0,J(A,T);if(le=b(A,T))return H=h(T,5,ke(A)),y(A),H;if(ge=v(A,T))return H=h(T,6,Oe(A)),y(A),H;if(Ae=k(A,T))return H=h(T,7,D(A)),y(A),H;if(!le&&!ge&&!Ae)return H=h(T,13,S(A)),f(Le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,H.value),y(A),H;break}}return H}function G(A,T){const{currentType:H}=T;let Z=null;const le=A.currentChar();switch((H===8||H===9||H===12||H===10)&&(le===Lt||le===or)&&f(Le.INVALID_LINKED_FORMAT,i(),0),le){case"@":return A.next(),Z=h(T,8,"@"),T.inLinked=!0,Z;case".":return y(A),A.next(),h(T,9,".");case":":return y(A),A.next(),h(T,10,":");default:return j(A)?(Z=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,Z):_(A,T)||L(A,T)?(y(A),G(A,T)):O(A,T)?(y(A),h(T,12,w(A))):N(A,T)?(y(A),le==="{"?Y(A,T)||Z:h(T,11,I(A))):(H===8&&f(Le.INVALID_LINKED_FORMAT,i(),0),T.braceNest=0,T.inLinked=!1,J(A,T))}}function J(A,T){let H={type:14};if(T.braceNest>0)return Y(A,T)||p(T);if(T.inLinked)return G(A,T)||p(T);switch(A.currentChar()){case"{":return Y(A,T)||p(T);case"}":return f(Le.UNBALANCED_CLOSING_BRACE,i(),0),A.next(),h(T,3,"}");case"@":return G(A,T)||p(T);default:{if(j(A))return H=h(T,1,M(A)),T.braceNest=0,T.inLinked=!1,H;const{isModulo:le,hasSpace:ge}=V(A);if(le)return ge?h(T,0,Ce(A)):h(T,4,me(A));if(P(A))return h(T,0,Ce(A));break}}return H}function X(){const{currentType:A,offset:T,startLoc:H,endLoc:Z}=a;return a.lastType=A,a.lastOffset=T,a.lastStartLoc=H,a.lastEndLoc=Z,a.offset=o(),a.startLoc=i(),r.currentChar()===Sr?h(a,14):J(r,a)}return{nextToken:X,currentOffset:o,currentPosition:i,context:d}}const hC="parser",pC=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function mC(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(e||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function gC(t={}){const e=t.location!==!1,{onError:n,onWarn:r}=t;function o(b,v,k,_,...O){const L=b.currentPosition();if(L.offset+=_,L.column+=_,n){const N=e?ba(k,L):null,j=zo(v,N,{domain:hC,args:O});n(j)}}function i(b,v,k,_,...O){const L=b.currentPosition();if(L.offset+=_,L.column+=_,r){const N=e?ba(k,L):null;r(tC(v,N,O))}}function s(b,v,k){const _={type:b};return e&&(_.start=v,_.end=v,_.loc={start:k,end:k}),_}function c(b,v,k,_){_&&(b.type=_),e&&(b.end=v,b.loc&&(b.loc.end=k))}function a(b,v){const k=b.context(),_=s(3,k.offset,k.startLoc);return _.value=v,c(_,b.currentOffset(),b.currentPosition()),_}function d(b,v){const k=b.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(5,_,O);return L.index=parseInt(v,10),b.nextToken(),c(L,b.currentOffset(),b.currentPosition()),L}function u(b,v,k){const _=b.context(),{lastOffset:O,lastStartLoc:L}=_,N=s(4,O,L);return N.key=v,k===!0&&(N.modulo=!0),b.nextToken(),c(N,b.currentOffset(),b.currentPosition()),N}function f(b,v){const k=b.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(9,_,O);return L.value=v.replace(pC,mC),b.nextToken(),c(L,b.currentOffset(),b.currentPosition()),L}function h(b){const v=b.nextToken(),k=b.context(),{lastOffset:_,lastStartLoc:O}=k,L=s(8,_,O);return v.type!==12?(o(b,Le.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),L.value="",c(L,_,O),{nextConsumeToken:v,node:L}):(v.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,kn(v)),L.value=v.value||"",c(L,b.currentOffset(),b.currentPosition()),{node:L})}function p(b,v){const k=b.context(),_=s(7,k.offset,k.startLoc);return _.value=v,c(_,b.currentOffset(),b.currentPosition()),_}function m(b){const v=b.context(),k=s(6,v.offset,v.startLoc);let _=b.nextToken();if(_.type===9){const O=h(b);k.modifier=O.node,_=O.nextConsumeToken||b.nextToken()}switch(_.type!==10&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(_)),_=b.nextToken(),_.type===2&&(_=b.nextToken()),_.type){case 11:_.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(_)),k.key=p(b,_.value||"");break;case 5:_.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(_)),k.key=u(b,_.value||"");break;case 6:_.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(_)),k.key=d(b,_.value||"");break;case 7:_.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(_)),k.key=f(b,_.value||"");break;default:{o(b,Le.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const O=b.context(),L=s(7,O.offset,O.startLoc);return L.value="",c(L,O.offset,O.startLoc),k.key=L,c(k,O.offset,O.startLoc),{nextConsumeToken:_,node:k}}}return c(k,b.currentOffset(),b.currentPosition()),{node:k}}function g(b){const v=b.context(),k=v.currentType===1?b.currentOffset():v.offset,_=v.currentType===1?v.endLoc:v.startLoc,O=s(2,k,_);O.items=[];let L=null,N=null;do{const P=L||b.nextToken();switch(L=null,P.type){case 0:P.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(P)),O.items.push(a(b,P.value||""));break;case 6:P.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(P)),O.items.push(d(b,P.value||""));break;case 4:N=!0;break;case 5:P.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(P)),O.items.push(u(b,P.value||"",!!N)),N&&(i(b,Ca.USE_MODULO_SYNTAX,v.lastStartLoc,0,kn(P)),N=null);break;case 7:P.value==null&&o(b,Le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,kn(P)),O.items.push(f(b,P.value||""));break;case 8:{const z=m(b);O.items.push(z.node),L=z.nextConsumeToken||null;break}}}while(v.currentType!==14&&v.currentType!==1);const j=v.currentType===1?v.lastOffset:b.currentOffset(),V=v.currentType===1?v.lastEndLoc:b.currentPosition();return c(O,j,V),O}function y(b,v,k,_){const O=b.context();let L=_.items.length===0;const N=s(1,v,k);N.cases=[],N.cases.push(_);do{const j=g(b);L||(L=j.items.length===0),N.cases.push(j)}while(O.currentType!==14);return L&&o(b,Le.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),c(N,b.currentOffset(),b.currentPosition()),N}function C(b){const v=b.context(),{offset:k,startLoc:_}=v,O=g(b);return v.currentType===14?O:y(b,k,_,O)}function E(b){const v=fC(b,Cp({},t)),k=v.context(),_=s(0,k.offset,k.startLoc);return e&&_.loc&&(_.loc.source=b),_.body=C(v),t.onCacheKey&&(_.cacheKey=t.onCacheKey(b)),k.currentType!==14&&o(v,Le.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,b[k.offset]||""),c(_,v.currentOffset(),v.currentPosition()),_}return{parse:E}}function kn(t){if(t.type===14)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function yC(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function wp(t,e){for(let n=0;n<t.length;n++)qc(t[n],e)}function qc(t,e){switch(t.type){case 1:wp(t.cases,e),e.helper("plural");break;case 2:wp(t.items,e);break;case 6:{qc(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function vC(t,e={}){const n=yC(t);n.helper("normalize"),t.body&&qc(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function bC(t){const e=t.body;return e.type===2?kp(e):e.cases.forEach(n=>kp(n)),t}function kp(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const r=t.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;e.push(r.value)}if(e.length===t.items.length){t.static=Sp(e);for(let n=0;n<t.items.length;n++){const r=t.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const CC="minifier";function Uo(t){switch(t.t=t.type,t.type){case 0:{const e=t;Uo(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let r=0;r<n.length;r++)Uo(n[r]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let r=0;r<n.length;r++)Uo(n[r]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;Uo(e.key),e.k=e.key,delete e.key,e.modifier&&(Uo(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}default:throw zo(Le.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:CC,args:[t.type]})}delete t.type}const EC="parser";function SC(t,e){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:i}=e,s=e.location!==!1,c={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:i,indentLevel:0};s&&t.loc&&(c.source=t.loc.source);const a=()=>c;function d(y,C){c.code+=y}function u(y,C=!0){const E=C?o:"";d(i?E+" ".repeat(y):E)}function f(y=!0){const C=++c.indentLevel;y&&u(C)}function h(y=!0){const C=--c.indentLevel;y&&u(C)}function p(){u(c.indentLevel)}return{context:a,push:d,indent:f,deindent:h,newline:p,helper:y=>`_${y}`,needIndent:()=>c.needIndent}}function _C(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ho(t,e.key),e.modifier?(t.push(", "),Ho(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function wC(t,e){const{helper:n,needIndent:r}=t;t.push(`${n("normalize")}([`),t.indent(r());const o=e.items.length;for(let i=0;i<o&&(Ho(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function kC(t,e){const{helper:n,needIndent:r}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(r());const o=e.cases.length;for(let i=0;i<o&&(Ho(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function AC(t,e){e.body?Ho(t,e.body):t.push("null")}function Ho(t,e){const{helper:n}=t;switch(e.type){case 0:AC(t,e);break;case 1:kC(t,e);break;case 2:wC(t,e);break;case 6:_C(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break;default:throw zo(Le.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:EC,args:[e.type]})}}const TC=(t,e={})=>{const n=Ep(e.mode)?e.mode:"normal",r=Ep(e.filename)?e.filename:"message.intl",o=!!e.sourceMap,i=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
67
67
  `,s=e.needIndent?e.needIndent:n!=="arrow",c=t.helpers||[],a=SC(t,{mode:n,filename:r,sourceMap:o,breakLineCode:i,needIndent:s});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(s),c.length>0&&(a.push(`const { ${Sp(c.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),Ho(a,t),a.deindent(s),a.push("}"),delete t.helpers;const{code:d,map:u}=a.context();return{ast:t,code:d,map:u?u.toJSON():void 0}};function IC(t,e={}){const n=Cp({},e),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,c=gC(n).parse(t);return r?(i&&bC(c),o&&Uo(c),{ast:c,code:""}):(vC(c,n),TC(c,n))}/*!
68
68
  * core-base v9.14.4
69
69
  * (c) 2025 kazuya kawaguchi
70
70
  * Released under the MIT License.
71
- */function xC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function kn(t){return Ze(t)&&ed(t)===0&&(_n(t,"b")||_n(t,"body"))}const Ap=["b","body"];function OC(t){return _r(t,Ap)}const Tp=["c","cases"];function NC(t){return _r(t,Tp,[])}const Ip=["s","static"];function MC(t){return _r(t,Ip)}const xp=["i","items"];function LC(t){return _r(t,xp,[])}const Op=["t","type"];function ed(t){return _r(t,Op)}const Np=["v","value"];function Ea(t,e){const n=_r(t,Np);if(n!=null)return n;throw Ui(e)}const Mp=["m","modifier"];function DC(t){return _r(t,Mp)}const Lp=["k","key"];function PC(t){const e=_r(t,Lp);if(e)return e;throw Ui(6)}function _r(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(_n(t,o)&&t[o]!=null)return t[o]}return n}const Dp=[...Ap,...Tp,...Ip,...xp,...Lp,...Mp,...Np,...Op];function Ui(t){return new Error(`unhandled node type: ${t}`)}const wr=[];wr[0]={w:[0],i:[3,0],"[":[4],o:[7]},wr[1]={w:[1],".":[2],"[":[4],o:[7]},wr[2]={w:[2],i:[3,0],0:[3,0]},wr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},wr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},wr[5]={"'":[4,0],o:8,l:[5,0]},wr[6]={'"':[4,0],o:8,l:[6,0]};const BC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function RC(t){return BC.test(t)}function $C(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function VC(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function FC(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:RC(e)?$C(e):"*"+e}function jC(t){const e=[];let n=-1,r=0,o=0,i,s,c,a,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=FC(s),s===!1))return!1;h[1]()}};function p(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,c="\\"+m,h[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(a=VC(i),f=wr[r],d=f[a]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const Pp=new Map;function zC(t,e){return Ze(t)?t[e]:null}function UC(t,e){if(!Ze(t))return null;let n=Pp.get(e);if(n||(n=jC(e),n&&Pp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(Dp.includes(s)&&kn(o))return null;const c=o[s];if(c===void 0||nt(o))return null;o=c,i++}return o}const HC=t=>t,WC=t=>"",KC="text",YC=t=>t.length===0?"":G6(t),GC=Y6;function Bp(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function QC(t){const e=yt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(yt(t.named.count)||yt(t.named.n))?yt(t.named.count)?t.named.count:yt(t.named.n)?t.named.n:e:e}function ZC(t,e){e.count||(e.count=t),e.n||(e.n=t)}function JC(t={}){const e=t.locale,n=QC(t),r=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?t.pluralRules[e]:Bp,o=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?Bp:void 0,i=b=>b[r(n,b.length,o)],s=t.list||[],c=b=>s[b],a=t.named||Xe();yt(t.pluralIndex)&&ZC(n,a);const d=b=>a[b];function u(b){const E=nt(t.messages)?t.messages(b):Ze(t.messages)?t.messages[b]:!1;return E||(t.parent?t.parent.message(b):WC)}const f=b=>t.modifiers?t.modifiers[b]:HC,h=He(t.processor)&&nt(t.processor.normalize)?t.processor.normalize:YC,p=He(t.processor)&&nt(t.processor.interpolate)?t.processor.interpolate:GC,m=He(t.processor)&&Te(t.processor.type)?t.processor.type:KC,g={list:c,named:d,plural:i,linked:(b,...E)=>{const[C,v]=E;let k="text",_="";E.length===1?Ze(C)?(_=C.modifier||_,k=C.type||k):Te(C)&&(_=C||_):E.length===2&&(Te(C)&&(_=C||_),Te(v)&&(k=v||k));const O=u(b)(g),L=k==="vnode"&&ut(O)&&_?O[0]:O;return _?f(_)(L,k):L},message:u,type:m,interpolate:p,normalize:h,values:It(Xe(),s,a)};return g}let Hi=null;function XC(t){Hi=t}function qC(t,e,n){Hi&&Hi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const eE=tE("function:translate");function tE(t){return e=>Hi&&Hi.emit(t,e)}const Rp=Ca.__EXTEND_POINT__,lo=ga(Rp),Dt={NOT_FOUND_KEY:Rp,FALLBACK_TO_TRANSLATE:lo(),CANNOT_FORMAT_NUMBER:lo(),FALLBACK_TO_NUMBER_FORMAT:lo(),CANNOT_FORMAT_DATE:lo(),FALLBACK_TO_DATE_FORMAT:lo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:lo(),__EXTEND_POINT__:lo()},nE={[Dt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Dt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Dt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Dt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function co(t,...e){return Xc(nE[t],...e)}const $p=Le.__EXTEND_POINT__,uo=ga($p),vt={INVALID_ARGUMENT:$p,INVALID_DATE_ARGUMENT:uo(),INVALID_ISO_DATE_ARGUMENT:uo(),NOT_SUPPORT_NON_STRING_MESSAGE:uo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:uo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:uo(),NOT_SUPPORT_LOCALE_TYPE:uo(),__EXTEND_POINT__:uo()};function Rn(t){return zo(t,null,process.env.NODE_ENV!=="production"?{messages:rE}:void 0)}const rE={[vt.INVALID_ARGUMENT]:"Invalid arguments",[vt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[vt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[vt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[vt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function td(t,e){return e.locale!=null?Vp(e.locale):Vp(t.locale)}let nd;function Vp(t){if(Te(t))return t;if(nt(t)){if(t.resolvedOnce&&nd!=null)return nd;if(t.constructor.name==="Function"){const e=t();if(K6(e))throw Rn(vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nd=e}else throw Rn(vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Rn(vt.NOT_SUPPORT_LOCALE_TYPE)}function oE(t,e,n){return[...new Set([n,...ut(e)?e:Ze(e)?Object.keys(e):Te(e)?[e]:[n]])]}function Fp(t,e,n){const r=Te(n)?n:Wi,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;ut(s);)s=jp(i,s,e);const c=ut(e)||!He(e)?e:e.default?e.default:null;s=Te(c)?[c]:c,ut(s)&&jp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function jp(t,e,n){let r=!0;for(let o=0;o<e.length&&tt(r);o++){const i=e[o];Te(i)&&(r=iE(t,e[o],n))}return r}function iE(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=sE(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function sE(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(ut(n)||He(n))&&n[o]&&(r=n[o])}return r}const aE="9.14.4",Sa=-1,Wi="en-US",_a="",zp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function lE(){return{upper:(t,e)=>e==="text"&&Te(t)?t.toUpperCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Te(t)?t.toLowerCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Te(t)?zp(t):e==="vnode"&&Ze(t)&&"__v_isVNode"in t?zp(t.children):t}}let Up;function Hp(t){Up=t}let Wp;function cE(t){Wp=t}let Kp;function dE(t){Kp=t}let Yp=null;const uE=t=>{Yp=t},fE=()=>Yp;let Gp=null;const Qp=t=>{Gp=t},hE=()=>Gp;let Zp=0;function pE(t={}){const e=nt(t.onWarn)?t.onWarn:rr,n=Te(t.version)?t.version:aE,r=Te(t.locale)||nt(t.locale)?t.locale:Wi,o=nt(r)?Wi:r,i=ut(t.fallbackLocale)||He(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=He(t.messages)?t.messages:rd(o),c=He(t.datetimeFormats)?t.datetimeFormats:rd(o),a=He(t.numberFormats)?t.numberFormats:rd(o),d=It(Xe(),t.modifiers,lE()),u=t.pluralRules||Xe(),f=nt(t.missing)?t.missing:null,h=tt(t.missingWarn)||jo(t.missingWarn)?t.missingWarn:!0,p=tt(t.fallbackWarn)||jo(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,y=!!t.unresolving,g=nt(t.postTranslation)?t.postTranslation:null,b=He(t.processor)?t.processor:null,E=tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter,v=nt(t.messageCompiler)?t.messageCompiler:Up;process.env.NODE_ENV!=="production"&&nt(t.messageCompiler)&&vp(co(Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=nt(t.messageResolver)?t.messageResolver:Wp||zC,_=nt(t.localeFallbacker)?t.localeFallbacker:Kp||oE,O=Ze(t.fallbackContext)?t.fallbackContext:void 0,L=t,N=Ze(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,j=Ze(L.__numberFormatters)?L.__numberFormatters:new Map,V=Ze(L.__meta)?L.__meta:{};Zp++;const P={version:n,cid:Zp,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:y,postTranslation:g,processor:b,warnHtmlMessage:E,escapeParameter:C,messageCompiler:v,messageResolver:k,localeFallbacker:_,fallbackContext:O,onWarn:e,__meta:V};return P.datetimeFormats=c,P.numberFormats=a,P.__datetimeFormatters=N,P.__numberFormatters=j,process.env.NODE_ENV!=="production"&&(P.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&qC(P,n,V),P}const rd=t=>({[t]:Xe()});function wa(t,e){return t instanceof RegExp?t.test(e):t}function Jp(t,e){return t instanceof RegExp?t.test(e):t}function od(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Te(c)?c:e}else return process.env.NODE_ENV!=="production"&&Jp(r,e)&&s(co(Dt.NOT_FOUND_KEY,{key:e,locale:n})),e}function Ki(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Xp(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function mE(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(Xp(t,e[r]))return!0;return!1}function id(t){return n=>gE(n,t)}function gE(t,e){const n=OC(e);if(n==null)throw Ui(0);if(ed(n)===1){const i=NC(n);return t.plural(i.reduce((s,c)=>[...s,qp(t,c)],[]))}else return qp(t,n)}function qp(t,e){const n=MC(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=LC(e).reduce((o,i)=>[...o,sd(t,i)],[]);return t.normalize(r)}}function sd(t,e){const n=ed(e);switch(n){case 3:return Ea(e,n);case 9:return Ea(e,n);case 4:{const r=e;if(_n(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(_n(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Ui(n)}case 5:{const r=e;if(_n(r,"i")&&yt(r.i))return t.interpolate(t.list(r.i));if(_n(r,"index")&&yt(r.index))return t.interpolate(t.list(r.index));throw Ui(n)}case 6:{const r=e,o=DC(r),i=PC(r);return t.linked(sd(t,i),o?sd(t,o):void 0,t.type)}case 7:return Ea(e,n);case 8:return Ea(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const yE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function e1(t,e){e&&iC(t)&&rr(Xc(yE,{source:t}))}const t1=t=>t;let Wo=Xe();function n1(t){t.code===Ca.USE_MODULO_SYNTAX&&rr(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
71
+ */function xC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function An(t){return Ze(t)&&ed(t)===0&&(wn(t,"b")||wn(t,"body"))}const Ap=["b","body"];function OC(t){return _r(t,Ap)}const Tp=["c","cases"];function NC(t){return _r(t,Tp,[])}const Ip=["s","static"];function MC(t){return _r(t,Ip)}const xp=["i","items"];function LC(t){return _r(t,xp,[])}const Op=["t","type"];function ed(t){return _r(t,Op)}const Np=["v","value"];function Ea(t,e){const n=_r(t,Np);if(n!=null)return n;throw Ui(e)}const Mp=["m","modifier"];function DC(t){return _r(t,Mp)}const Lp=["k","key"];function PC(t){const e=_r(t,Lp);if(e)return e;throw Ui(6)}function _r(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(wn(t,o)&&t[o]!=null)return t[o]}return n}const Dp=[...Ap,...Tp,...Ip,...xp,...Lp,...Mp,...Np,...Op];function Ui(t){return new Error(`unhandled node type: ${t}`)}const wr=[];wr[0]={w:[0],i:[3,0],"[":[4],o:[7]},wr[1]={w:[1],".":[2],"[":[4],o:[7]},wr[2]={w:[2],i:[3,0],0:[3,0]},wr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},wr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},wr[5]={"'":[4,0],o:8,l:[5,0]},wr[6]={'"':[4,0],o:8,l:[6,0]};const BC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function RC(t){return BC.test(t)}function $C(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function VC(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function FC(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:RC(e)?$C(e):"*"+e}function jC(t){const e=[];let n=-1,r=0,o=0,i,s,c,a,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=FC(s),s===!1))return!1;h[1]()}};function p(){const m=t[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,c="\\"+m,h[0](),!0}for(;r!==null;)if(n++,i=t[n],!(i==="\\"&&p())){if(a=VC(i),f=wr[r],d=f[a]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const Pp=new Map;function zC(t,e){return Ze(t)?t[e]:null}function UC(t,e){if(!Ze(t))return null;let n=Pp.get(e);if(n||(n=jC(e),n&&Pp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(Dp.includes(s)&&An(o))return null;const c=o[s];if(c===void 0||nt(o))return null;o=c,i++}return o}const HC=t=>t,WC=t=>"",KC="text",YC=t=>t.length===0?"":G6(t),GC=Y6;function Bp(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function QC(t){const e=yt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(yt(t.named.count)||yt(t.named.n))?yt(t.named.count)?t.named.count:yt(t.named.n)?t.named.n:e:e}function ZC(t,e){e.count||(e.count=t),e.n||(e.n=t)}function JC(t={}){const e=t.locale,n=QC(t),r=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?t.pluralRules[e]:Bp,o=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?Bp:void 0,i=C=>C[r(n,C.length,o)],s=t.list||[],c=C=>s[C],a=t.named||Xe();yt(t.pluralIndex)&&ZC(n,a);const d=C=>a[C];function u(C){const E=nt(t.messages)?t.messages(C):Ze(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):WC)}const f=C=>t.modifiers?t.modifiers[C]:HC,h=He(t.processor)&&nt(t.processor.normalize)?t.processor.normalize:YC,p=He(t.processor)&&nt(t.processor.interpolate)?t.processor.interpolate:GC,m=He(t.processor)&&Te(t.processor.type)?t.processor.type:KC,y={list:c,named:d,plural:i,linked:(C,...E)=>{const[b,v]=E;let k="text",_="";E.length===1?Ze(b)?(_=b.modifier||_,k=b.type||k):Te(b)&&(_=b||_):E.length===2&&(Te(b)&&(_=b||_),Te(v)&&(k=v||k));const O=u(C)(y),L=k==="vnode"&&ut(O)&&_?O[0]:O;return _?f(_)(L,k):L},message:u,type:m,interpolate:p,normalize:h,values:It(Xe(),s,a)};return y}let Hi=null;function XC(t){Hi=t}function qC(t,e,n){Hi&&Hi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const eE=tE("function:translate");function tE(t){return e=>Hi&&Hi.emit(t,e)}const Rp=Ca.__EXTEND_POINT__,lo=ga(Rp),Dt={NOT_FOUND_KEY:Rp,FALLBACK_TO_TRANSLATE:lo(),CANNOT_FORMAT_NUMBER:lo(),FALLBACK_TO_NUMBER_FORMAT:lo(),CANNOT_FORMAT_DATE:lo(),FALLBACK_TO_DATE_FORMAT:lo(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:lo(),__EXTEND_POINT__:lo()},nE={[Dt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Dt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Dt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Dt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function co(t,...e){return Xc(nE[t],...e)}const $p=Le.__EXTEND_POINT__,uo=ga($p),vt={INVALID_ARGUMENT:$p,INVALID_DATE_ARGUMENT:uo(),INVALID_ISO_DATE_ARGUMENT:uo(),NOT_SUPPORT_NON_STRING_MESSAGE:uo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:uo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:uo(),NOT_SUPPORT_LOCALE_TYPE:uo(),__EXTEND_POINT__:uo()};function Rn(t){return zo(t,null,process.env.NODE_ENV!=="production"?{messages:rE}:void 0)}const rE={[vt.INVALID_ARGUMENT]:"Invalid arguments",[vt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[vt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[vt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[vt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function td(t,e){return e.locale!=null?Vp(e.locale):Vp(t.locale)}let nd;function Vp(t){if(Te(t))return t;if(nt(t)){if(t.resolvedOnce&&nd!=null)return nd;if(t.constructor.name==="Function"){const e=t();if(K6(e))throw Rn(vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return nd=e}else throw Rn(vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Rn(vt.NOT_SUPPORT_LOCALE_TYPE)}function oE(t,e,n){return[...new Set([n,...ut(e)?e:Ze(e)?Object.keys(e):Te(e)?[e]:[n]])]}function Fp(t,e,n){const r=Te(n)?n:Wi,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;ut(s);)s=jp(i,s,e);const c=ut(e)||!He(e)?e:e.default?e.default:null;s=Te(c)?[c]:c,ut(s)&&jp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function jp(t,e,n){let r=!0;for(let o=0;o<e.length&&tt(r);o++){const i=e[o];Te(i)&&(r=iE(t,e[o],n))}return r}function iE(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=sE(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function sE(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(ut(n)||He(n))&&n[o]&&(r=n[o])}return r}const aE="9.14.4",Sa=-1,Wi="en-US",_a="",zp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function lE(){return{upper:(t,e)=>e==="text"&&Te(t)?t.toUpperCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Te(t)?t.toLowerCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Te(t)?zp(t):e==="vnode"&&Ze(t)&&"__v_isVNode"in t?zp(t.children):t}}let Up;function Hp(t){Up=t}let Wp;function cE(t){Wp=t}let Kp;function dE(t){Kp=t}let Yp=null;const uE=t=>{Yp=t},fE=()=>Yp;let Gp=null;const Qp=t=>{Gp=t},hE=()=>Gp;let Zp=0;function pE(t={}){const e=nt(t.onWarn)?t.onWarn:rr,n=Te(t.version)?t.version:aE,r=Te(t.locale)||nt(t.locale)?t.locale:Wi,o=nt(r)?Wi:r,i=ut(t.fallbackLocale)||He(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=He(t.messages)?t.messages:rd(o),c=He(t.datetimeFormats)?t.datetimeFormats:rd(o),a=He(t.numberFormats)?t.numberFormats:rd(o),d=It(Xe(),t.modifiers,lE()),u=t.pluralRules||Xe(),f=nt(t.missing)?t.missing:null,h=tt(t.missingWarn)||jo(t.missingWarn)?t.missingWarn:!0,p=tt(t.fallbackWarn)||jo(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,y=nt(t.postTranslation)?t.postTranslation:null,C=He(t.processor)?t.processor:null,E=tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,v=nt(t.messageCompiler)?t.messageCompiler:Up;process.env.NODE_ENV!=="production"&&nt(t.messageCompiler)&&vp(co(Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=nt(t.messageResolver)?t.messageResolver:Wp||zC,_=nt(t.localeFallbacker)?t.localeFallbacker:Kp||oE,O=Ze(t.fallbackContext)?t.fallbackContext:void 0,L=t,N=Ze(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,j=Ze(L.__numberFormatters)?L.__numberFormatters:new Map,V=Ze(L.__meta)?L.__meta:{};Zp++;const P={version:n,cid:Zp,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:y,processor:C,warnHtmlMessage:E,escapeParameter:b,messageCompiler:v,messageResolver:k,localeFallbacker:_,fallbackContext:O,onWarn:e,__meta:V};return P.datetimeFormats=c,P.numberFormats=a,P.__datetimeFormatters=N,P.__numberFormatters=j,process.env.NODE_ENV!=="production"&&(P.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&qC(P,n,V),P}const rd=t=>({[t]:Xe()});function wa(t,e){return t instanceof RegExp?t.test(e):t}function Jp(t,e){return t instanceof RegExp?t.test(e):t}function od(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Te(c)?c:e}else return process.env.NODE_ENV!=="production"&&Jp(r,e)&&s(co(Dt.NOT_FOUND_KEY,{key:e,locale:n})),e}function Ki(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Xp(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function mE(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(Xp(t,e[r]))return!0;return!1}function id(t){return n=>gE(n,t)}function gE(t,e){const n=OC(e);if(n==null)throw Ui(0);if(ed(n)===1){const i=NC(n);return t.plural(i.reduce((s,c)=>[...s,qp(t,c)],[]))}else return qp(t,n)}function qp(t,e){const n=MC(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=LC(e).reduce((o,i)=>[...o,sd(t,i)],[]);return t.normalize(r)}}function sd(t,e){const n=ed(e);switch(n){case 3:return Ea(e,n);case 9:return Ea(e,n);case 4:{const r=e;if(wn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(wn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Ui(n)}case 5:{const r=e;if(wn(r,"i")&&yt(r.i))return t.interpolate(t.list(r.i));if(wn(r,"index")&&yt(r.index))return t.interpolate(t.list(r.index));throw Ui(n)}case 6:{const r=e,o=DC(r),i=PC(r);return t.linked(sd(t,i),o?sd(t,o):void 0,t.type)}case 7:return Ea(e,n);case 8:return Ea(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const yE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function e1(t,e){e&&iC(t)&&rr(Xc(yE,{source:t}))}const t1=t=>t;let Wo=Xe();function n1(t){t.code===Ca.USE_MODULO_SYNTAX&&rr(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
72
72
  reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
73
- (message compiler warning message: ${t.message})`)}function r1(t,e={}){let n=!1;const r=e.onError||rC;return e.onError=o=>{n=!0,r(o)},{...IC(t,e),detectError:n}}const vE=(t,e)=>{if(!Te(t))throw Rn(vt.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=n1);{const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&e1(t,n);const o=(e.onCacheKey||t1)(t),i=Wo[o];if(i)return i;const{code:s,detectError:c}=r1(t,e),a=new Function(`return ${s}`)();return c?a:Wo[o]=a}};function bE(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=n1),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Te(t)){const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&e1(t,n);const o=(e.onCacheKey||t1)(t),i=Wo[o];if(i)return i;const{ast:s,detectError:c}=r1(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),a=id(s);return c?a:Wo[o]=a}else{if(process.env.NODE_ENV!=="production"&&!kn(t))return rr(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const n=t.cacheKey;if(n){const r=Wo[n];return r||(Wo[n]=id(t))}else return id(t)}}const o1=()=>"",ln=t=>nt(t);function i1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[a,d]=ad(...e),u=tt(d.missingWarn)?d.missingWarn:t.missingWarn,f=tt(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,h=tt(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,m=Te(d.default)||tt(d.default)?tt(d.default)?i?a:()=>a:d.default:n?i?a:()=>a:"",y=n||m!=="",g=td(t,d);h&&CE(d);let[b,E,C]=p?[a,g,c[g]||Xe()]:s1(t,a,g,s,f,u),v=b,k=a;if(!p&&!(Te(v)||kn(v)||ln(v))&&y&&(v=m,k=v),!p&&(!(Te(v)||kn(v)||ln(v))||!Te(E)))return o?Sa:a;if(process.env.NODE_ENV!=="production"&&Te(v)&&t.messageCompiler==null)return rr(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`),a;let _=!1;const O=()=>{_=!0},L=ln(v)?v:a1(t,a,E,v,k,O);if(_)return v;const N=wE(t,E,C,d),j=JC(N),V=EE(t,L,j),P=r?r(V,a):V;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:Te(a)?a:ln(v)?v.key:"",locale:E||(ln(v)?v.locale:""),format:Te(v)?v:ln(v)?v.source:"",message:P};z.meta=It({},t.__meta,fE()||{}),eE(z)}return P}function CE(t){ut(t.list)?t.list=t.list.map(e=>Te(e)?hp(e):e):Ze(t.named)&&Object.keys(t.named).forEach(e=>{Te(t.named[e])&&(t.named[e]=hp(t.named[e]))})}function s1(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:a,localeFallbacker:d}=t,u=d(t,r,n);let f=Xe(),h,p=null,m=n,y=null;const g="translate";for(let b=0;b<u.length;b++){if(h=y=u[b],process.env.NODE_ENV!=="production"&&n!==h&&!Xp(n,h)&&wa(o,e)&&c(co(Dt.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const k=t.__v_emitter;k&&k.emit("fallback",{type:g,key:e,from:m,to:y,groupId:`${g}:${e}`})}f=s[h]||Xe();let E=null,C,v;if(process.env.NODE_ENV!=="production"&&er&&(E=window.performance.now(),C="intlify-message-resolve-start",v="intlify-message-resolve-end",qt&&qt(C)),(p=a(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&er){const k=window.performance.now(),_=t.__v_emitter;_&&E&&p&&_.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:k-E,groupId:`${g}:${e}`}),C&&v&&qt&&ao&&(qt(v),ao("intlify message resolve",C,v))}if(Te(p)||kn(p)||ln(p))break;if(!mE(h,u)){const k=od(t,e,h,i,g);k!==e&&(p=k)}m=y}return[p,h,f]}function a1(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:c}=t;if(ln(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||e,h}if(s==null){const h=()=>r;return h.locale=n,h.key=e,h}let a=null,d,u;process.env.NODE_ENV!=="production"&&er&&(a=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",qt&&qt(d));const f=s(r,SE(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&er){const h=window.performance.now(),p=t.__v_emitter;p&&a&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-a,groupId:`translate:${e}`}),d&&u&&qt&&ao&&(qt(u),ao("intlify message compilation",d,u))}return f.locale=n,f.key=e,f.source=r,f}function EE(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&er&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",qt&&qt(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&er){const c=window.performance.now(),a=t.__v_emitter;a&&r&&a.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${e.key}`}),o&&i&&qt&&ao&&(qt(i),ao("intlify message evaluation",o,i))}return s}function ad(...t){const[e,n,r]=t,o=Xe();if(!Te(e)&&!yt(e)&&!ln(e)&&!kn(e))throw Rn(vt.INVALID_ARGUMENT);const i=yt(e)?String(e):(ln(e),e);return yt(n)?o.plural=n:Te(n)?o.default=n:He(n)&&!ma(n)?o.named=n:ut(n)&&(o.list=n),yt(r)?o.plural=r:Te(r)?o.default=r:He(r)&&It(o,r),[i,o]}function SE(t,e,n,r,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const c=_E(r),a=`Message compilation error: ${s.message}`,d=s.location&&c&&Q6(c,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&c&&u.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${a}
74
- ${d}`:a)}else throw s},onCacheKey:s=>j6(e,n,s)}}function _E(t){if(Te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function wE(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:a,missingWarn:d,fallbackContext:u}=t,h={locale:e,modifiers:o,pluralRules:i,messages:p=>{let m=s(n,p);if(m==null&&u){const[,,y]=s1(u,p,e,c,a,d);m=s(y,p)}if(Te(m)||kn(m)){let y=!1;const b=a1(t,p,e,m,p,()=>{y=!0});return y?o1:b}else return ln(m)?m:o1}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),yt(r.plural)&&(h.pluralIndex=r.plural),h}const l1=typeof Intl<"u",c1={dateTimeFormat:l1&&typeof Intl.DateTimeFormat<"u",numberFormat:l1&&typeof Intl.NumberFormat<"u"};function d1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!c1.dateTimeFormat)return i(co(Dt.CANNOT_FORMAT_DATE)),_a;const[a,d,u,f]=ld(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,y=td(t,u),g=s(t,o,y);if(!Te(a)||a==="")return new Intl.DateTimeFormat(y,f).format(d);let b={},E,C=null,v=y,k=null;const _="datetime format";for(let N=0;N<g.length;N++){if(E=k=g[N],process.env.NODE_ENV!=="production"&&y!==E&&wa(p,a)&&i(co(Dt.FALLBACK_TO_DATE_FORMAT,{key:a,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const j=t.__v_emitter;j&&j.emit("fallback",{type:_,key:a,from:v,to:k,groupId:`${_}:${a}`})}if(b=n[E]||{},C=b[a],He(C))break;od(t,a,E,h,_),v=k}if(!He(C)||!Te(E))return r?Sa:a;let O=`${E}__${a}`;ma(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.DateTimeFormat(E,It({},C,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const u1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ld(...t){const[e,n,r,o]=t,i=Xe();let s=Xe(),c;if(Te(e)){const a=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Rn(vt.INVALID_ISO_DATE_ARGUMENT);const d=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();c=new Date(d);try{c.toISOString()}catch{throw Rn(vt.INVALID_ISO_DATE_ARGUMENT)}}else if(U6(e)){if(isNaN(e.getTime()))throw Rn(vt.INVALID_DATE_ARGUMENT);c=e}else if(yt(e))c=e;else throw Rn(vt.INVALID_ARGUMENT);return Te(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{u1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Te(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function f1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function h1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!c1.numberFormat)return i(co(Dt.CANNOT_FORMAT_NUMBER)),_a;const[a,d,u,f]=cd(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,y=td(t,u),g=s(t,o,y);if(!Te(a)||a==="")return new Intl.NumberFormat(y,f).format(d);let b={},E,C=null,v=y,k=null;const _="number format";for(let N=0;N<g.length;N++){if(E=k=g[N],process.env.NODE_ENV!=="production"&&y!==E&&wa(p,a)&&i(co(Dt.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:E})),process.env.NODE_ENV!=="production"&&y!==E){const j=t.__v_emitter;j&&j.emit("fallback",{type:_,key:a,from:v,to:k,groupId:`${_}:${a}`})}if(b=n[E]||{},C=b[a],He(C))break;od(t,a,E,h,_),v=k}if(!He(C)||!Te(E))return r?Sa:a;let O=`${E}__${a}`;ma(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.NumberFormat(E,It({},C,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const p1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cd(...t){const[e,n,r,o]=t,i=Xe();let s=Xe();if(!yt(e))throw Rn(vt.INVALID_ARGUMENT);const c=e;return Te(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{p1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Te(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function m1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}xC();/*!
73
+ (message compiler warning message: ${t.message})`)}function r1(t,e={}){let n=!1;const r=e.onError||rC;return e.onError=o=>{n=!0,r(o)},{...IC(t,e),detectError:n}}const vE=(t,e)=>{if(!Te(t))throw Rn(vt.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=n1);{const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&e1(t,n);const o=(e.onCacheKey||t1)(t),i=Wo[o];if(i)return i;const{code:s,detectError:c}=r1(t,e),a=new Function(`return ${s}`)();return c?a:Wo[o]=a}};function bE(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=n1),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Te(t)){const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&e1(t,n);const o=(e.onCacheKey||t1)(t),i=Wo[o];if(i)return i;const{ast:s,detectError:c}=r1(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),a=id(s);return c?a:Wo[o]=a}else{if(process.env.NODE_ENV!=="production"&&!An(t))return rr(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const n=t.cacheKey;if(n){const r=Wo[n];return r||(Wo[n]=id(t))}else return id(t)}}const o1=()=>"",ln=t=>nt(t);function i1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[a,d]=ad(...e),u=tt(d.missingWarn)?d.missingWarn:t.missingWarn,f=tt(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,h=tt(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,m=Te(d.default)||tt(d.default)?tt(d.default)?i?a:()=>a:d.default:n?i?a:()=>a:"",g=n||m!=="",y=td(t,d);h&&CE(d);let[C,E,b]=p?[a,y,c[y]||Xe()]:s1(t,a,y,s,f,u),v=C,k=a;if(!p&&!(Te(v)||An(v)||ln(v))&&g&&(v=m,k=v),!p&&(!(Te(v)||An(v)||ln(v))||!Te(E)))return o?Sa:a;if(process.env.NODE_ENV!=="production"&&Te(v)&&t.messageCompiler==null)return rr(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${a}'.`),a;let _=!1;const O=()=>{_=!0},L=ln(v)?v:a1(t,a,E,v,k,O);if(_)return v;const N=wE(t,E,b,d),j=JC(N),V=EE(t,L,j),P=r?r(V,a):V;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:Te(a)?a:ln(v)?v.key:"",locale:E||(ln(v)?v.locale:""),format:Te(v)?v:ln(v)?v.source:"",message:P};z.meta=It({},t.__meta,fE()||{}),eE(z)}return P}function CE(t){ut(t.list)?t.list=t.list.map(e=>Te(e)?hp(e):e):Ze(t.named)&&Object.keys(t.named).forEach(e=>{Te(t.named[e])&&(t.named[e]=hp(t.named[e]))})}function s1(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:a,localeFallbacker:d}=t,u=d(t,r,n);let f=Xe(),h,p=null,m=n,g=null;const y="translate";for(let C=0;C<u.length;C++){if(h=g=u[C],process.env.NODE_ENV!=="production"&&n!==h&&!Xp(n,h)&&wa(o,e)&&c(co(Dt.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const k=t.__v_emitter;k&&k.emit("fallback",{type:y,key:e,from:m,to:g,groupId:`${y}:${e}`})}f=s[h]||Xe();let E=null,b,v;if(process.env.NODE_ENV!=="production"&&er&&(E=window.performance.now(),b="intlify-message-resolve-start",v="intlify-message-resolve-end",qt&&qt(b)),(p=a(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&er){const k=window.performance.now(),_=t.__v_emitter;_&&E&&p&&_.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:k-E,groupId:`${y}:${e}`}),b&&v&&qt&&ao&&(qt(v),ao("intlify message resolve",b,v))}if(Te(p)||An(p)||ln(p))break;if(!mE(h,u)){const k=od(t,e,h,i,y);k!==e&&(p=k)}m=g}return[p,h,f]}function a1(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:c}=t;if(ln(r)){const h=r;return h.locale=h.locale||n,h.key=h.key||e,h}if(s==null){const h=()=>r;return h.locale=n,h.key=e,h}let a=null,d,u;process.env.NODE_ENV!=="production"&&er&&(a=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",qt&&qt(d));const f=s(r,SE(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&er){const h=window.performance.now(),p=t.__v_emitter;p&&a&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-a,groupId:`translate:${e}`}),d&&u&&qt&&ao&&(qt(u),ao("intlify message compilation",d,u))}return f.locale=n,f.key=e,f.source=r,f}function EE(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&er&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",qt&&qt(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&er){const c=window.performance.now(),a=t.__v_emitter;a&&r&&a.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${e.key}`}),o&&i&&qt&&ao&&(qt(i),ao("intlify message evaluation",o,i))}return s}function ad(...t){const[e,n,r]=t,o=Xe();if(!Te(e)&&!yt(e)&&!ln(e)&&!An(e))throw Rn(vt.INVALID_ARGUMENT);const i=yt(e)?String(e):(ln(e),e);return yt(n)?o.plural=n:Te(n)?o.default=n:He(n)&&!ma(n)?o.named=n:ut(n)&&(o.list=n),yt(r)?o.plural=r:Te(r)?o.default=r:He(r)&&It(o,r),[i,o]}function SE(t,e,n,r,o,i){return{locale:e,key:n,warnHtmlMessage:o,onError:s=>{if(i&&i(s),process.env.NODE_ENV!=="production"){const c=_E(r),a=`Message compilation error: ${s.message}`,d=s.location&&c&&Q6(c,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&c&&u.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${a}
74
+ ${d}`:a)}else throw s},onCacheKey:s=>j6(e,n,s)}}function _E(t){if(Te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function wE(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:a,missingWarn:d,fallbackContext:u}=t,h={locale:e,modifiers:o,pluralRules:i,messages:p=>{let m=s(n,p);if(m==null&&u){const[,,g]=s1(u,p,e,c,a,d);m=s(g,p)}if(Te(m)||An(m)){let g=!1;const C=a1(t,p,e,m,p,()=>{g=!0});return g?o1:C}else return ln(m)?m:o1}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),yt(r.plural)&&(h.pluralIndex=r.plural),h}const l1=typeof Intl<"u",c1={dateTimeFormat:l1&&typeof Intl.DateTimeFormat<"u",numberFormat:l1&&typeof Intl.NumberFormat<"u"};function d1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!c1.dateTimeFormat)return i(co(Dt.CANNOT_FORMAT_DATE)),_a;const[a,d,u,f]=ld(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=td(t,u),y=s(t,o,g);if(!Te(a)||a==="")return new Intl.DateTimeFormat(g,f).format(d);let C={},E,b=null,v=g,k=null;const _="datetime format";for(let N=0;N<y.length;N++){if(E=k=y[N],process.env.NODE_ENV!=="production"&&g!==E&&wa(p,a)&&i(co(Dt.FALLBACK_TO_DATE_FORMAT,{key:a,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const j=t.__v_emitter;j&&j.emit("fallback",{type:_,key:a,from:v,to:k,groupId:`${_}:${a}`})}if(C=n[E]||{},b=C[a],He(b))break;od(t,a,E,h,_),v=k}if(!He(b)||!Te(E))return r?Sa:a;let O=`${E}__${a}`;ma(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.DateTimeFormat(E,It({},b,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const u1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ld(...t){const[e,n,r,o]=t,i=Xe();let s=Xe(),c;if(Te(e)){const a=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw Rn(vt.INVALID_ISO_DATE_ARGUMENT);const d=a[3]?a[3].trim().startsWith("T")?`${a[1].trim()}${a[3].trim()}`:`${a[1].trim()}T${a[3].trim()}`:a[1].trim();c=new Date(d);try{c.toISOString()}catch{throw Rn(vt.INVALID_ISO_DATE_ARGUMENT)}}else if(U6(e)){if(isNaN(e.getTime()))throw Rn(vt.INVALID_DATE_ARGUMENT);c=e}else if(yt(e))c=e;else throw Rn(vt.INVALID_ARGUMENT);return Te(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{u1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Te(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function f1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function h1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!c1.numberFormat)return i(co(Dt.CANNOT_FORMAT_NUMBER)),_a;const[a,d,u,f]=cd(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=td(t,u),y=s(t,o,g);if(!Te(a)||a==="")return new Intl.NumberFormat(g,f).format(d);let C={},E,b=null,v=g,k=null;const _="number format";for(let N=0;N<y.length;N++){if(E=k=y[N],process.env.NODE_ENV!=="production"&&g!==E&&wa(p,a)&&i(co(Dt.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const j=t.__v_emitter;j&&j.emit("fallback",{type:_,key:a,from:v,to:k,groupId:`${_}:${a}`})}if(C=n[E]||{},b=C[a],He(b))break;od(t,a,E,h,_),v=k}if(!He(b)||!Te(E))return r?Sa:a;let O=`${E}__${a}`;ma(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.NumberFormat(E,It({},b,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const p1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function cd(...t){const[e,n,r,o]=t,i=Xe();let s=Xe();if(!yt(e))throw Rn(vt.INVALID_ARGUMENT);const c=e;return Te(n)?i.key=n:He(n)&&Object.keys(n).forEach(a=>{p1.includes(a)?s[a]=n[a]:i[a]=n[a]}),Te(r)?i.locale=r:He(r)&&(s=r),He(o)&&(s=o),[i.key||"",c,i,s]}function m1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}xC();/*!
75
75
  * vue-i18n v9.14.4
76
76
  * (c) 2025 kazuya kawaguchi
77
77
  * Released under the MIT License.
78
- */const kE="9.14.4";function AE(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(nr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(nr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1)}const g1=Dt.__EXTEND_POINT__,ir=ga(g1),Kt={FALLBACK_TO_ROOT:g1,NOT_SUPPORTED_PRESERVE:ir(),NOT_SUPPORTED_FORMATTER:ir(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ir(),NOT_SUPPORTED_GET_CHOICE_INDEX:ir(),COMPONENT_NAME_LEGACY_COMPATIBLE:ir(),NOT_FOUND_PARENT_SCOPE:ir(),IGNORE_OBJ_FLATTEN:ir(),NOTICE_DROP_ALLOW_COMPOSITION:ir(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ir()},TE={[Kt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Kt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Kt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Kt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Kt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Kt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Kt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Kt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Kt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Kt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ka(t,...e){return Xc(TE[t],...e)}const y1=vt.__EXTEND_POINT__,Yt=ga(y1),rt={UNEXPECTED_RETURN_TYPE:y1,INVALID_ARGUMENT:Yt(),MUST_BE_CALL_SETUP_TOP:Yt(),NOT_INSTALLED:Yt(),NOT_AVAILABLE_IN_LEGACY_MODE:Yt(),REQUIRED_VALUE:Yt(),INVALID_VALUE:Yt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Yt(),NOT_INSTALLED_WITH_PROVIDE:Yt(),UNEXPECTED_ERROR:Yt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Yt(),BRIDGE_SUPPORT_VUE_2_ONLY:Yt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Yt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Yt(),__EXTEND_POINT__:Yt()};function kr(t,...e){return zo(t,null,process.env.NODE_ENV!=="production"?{messages:IE,args:e}:void 0)}const IE={[rt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[rt.INVALID_ARGUMENT]:"Invalid argument",[rt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[rt.NOT_INSTALLED]:"Need to install with `app.use` function",[rt.UNEXPECTED_ERROR]:"Unexpected error",[rt.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[rt.REQUIRED_VALUE]:"Required in value: {0}",[rt.INVALID_VALUE]:"Invalid value",[rt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[rt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[rt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[rt.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dd=tr("__translateVNode"),ud=tr("__datetimeParts"),fd=tr("__numberParts"),hd=tr("__enableEmitter"),pd=tr("__disableEmitter"),xE=tr("__setPluralRules"),v1=tr("__injectWithOption"),md=tr("__dispose");function Yi(t){if(!Ze(t)||kn(t))return t;for(const e in t)if(_n(t,e))if(!e.includes("."))Ze(t[e])&&Yi(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=Xe()),!Ze(o[n[s]])){process.env.NODE_ENV!=="production"&&rr(ka(Kt.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(kn(o)?Dp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!kn(o)){const s=o[n[r]];Ze(s)&&Yi(s)}}return t}function gd(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=He(n)?n:ut(r)?Xe():{[t]:Xe()};if(ut(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:d}=c;a?(s[a]=s[a]||Xe(),va(d,s[a])):va(d,s)}else Te(c)&&va(JSON.parse(c),s)}),o==null&&i)for(const c in s)_n(s,c)&&Yi(s[c]);return s}function b1(t){return t.type}function OE(t,e,n){let r=Ze(e.messages)?e.messages:Xe();"__i18nGlobal"in n&&(r=gd(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ze(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ze(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function C1(t){return l.createVNode(l.Text,null,t,0)}const E1="__INTLIFY_META__",S1=()=>[],NE=()=>!1;let _1=0;function w1(t){return(e,n,r,o)=>t(n,r,l.getCurrentInstance()||void 0,o)}const ME=()=>{const t=l.getCurrentInstance();let e=null;return t&&(e=b1(t)[E1])?{[E1]:e}:null};function LE(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=er?l.ref:l.shallowRef,c=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&c&&vp(ka(Kt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let a=tt(t.inheritLocale)?t.inheritLocale:!0;const d=s(n&&a?n.locale.value:Te(t.locale)?t.locale:Wi),u=s(n&&a?n.fallbackLocale.value:Te(t.fallbackLocale)||ut(t.fallbackLocale)||He(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),f=s(gd(d.value,t)),h=s(He(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),p=s(He(t.numberFormats)?t.numberFormats:{[d.value]:{}});let m=n?n.missingWarn:tt(t.missingWarn)||jo(t.missingWarn)?t.missingWarn:!0,y=n?n.fallbackWarn:tt(t.fallbackWarn)||jo(t.fallbackWarn)?t.fallbackWarn:!0,g=n?n.fallbackRoot:tt(t.fallbackRoot)?t.fallbackRoot:!0,b=!!t.fallbackFormat,E=nt(t.missing)?t.missing:null,C=nt(t.missing)?w1(t.missing):null,v=nt(t.postTranslation)?t.postTranslation:null,k=n?n.warnHtmlMessage:tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const O=n?n.modifiers:He(t.modifiers)?t.modifiers:{};let L=t.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&Qp(null);const q={version:kE,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:L,missing:C===null?void 0:C,missingWarn:m,fallbackWarn:y,fallbackFormat:b,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:k,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};q.datetimeFormats=h.value,q.numberFormats=p.value,q.__datetimeFormatters=He(N)?N.__datetimeFormatters:void 0,q.__numberFormatters=He(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(q.__v_emitter=He(N)?N.__v_emitter:void 0);const se=pE(q);return o&&Qp(se),se})(),Ki(N,d.value,u.value);function V(){return[d.value,u.value,f.value,h.value,p.value]}const P=l.computed({get:()=>d.value,set:q=>{d.value=q,N.locale=d.value}}),z=l.computed({get:()=>u.value,set:q=>{u.value=q,N.fallbackLocale=u.value,Ki(N,d.value,q)}}),K=l.computed(()=>f.value),F=l.computed(()=>h.value),W=l.computed(()=>p.value);function Q(){return nt(v)?v:null}function U(q){v=q,N.postTranslation=q}function ee(){return E}function ne(q){q!==null&&(C=w1(q)),E=q,N.missing=C}function ae(q,se){return q!=="translate"||!se.resolvedMessage}const ue=(q,se,_e,$e,it,ct)=>{V();let Ut;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?hE():void 0),Ut=q(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(_e!=="translate exists"&&yt(Ut)&&Ut===Sa||_e==="translate exists"&&!Ut){const[re,ve]=se();if(process.env.NODE_ENV!=="production"&&n&&Te(re)&&ae(_e,ve)&&(g&&(wa(y,re)||Jp(m,re))&&rr(ka(Kt.FALLBACK_TO_ROOT,{key:re,type:_e})),process.env.NODE_ENV!=="production")){const{__v_emitter:ye}=N;ye&&g&&ye.emit("fallback",{type:_e,key:re,to:"global",groupId:`${_e}:${re}`})}return n&&g?$e(n):it(re)}else{if(ct(Ut))return Ut;throw kr(rt.UNEXPECTED_RETURN_TYPE)}};function me(...q){return ue(se=>Reflect.apply(i1,null,[se,...q]),()=>ad(...q),"translate",se=>Reflect.apply(se.t,se,[...q]),se=>se,se=>Te(se))}function Ce(...q){const[se,_e,$e]=q;if($e&&!Ze($e))throw kr(rt.INVALID_ARGUMENT);return me(se,_e,It({resolvedMessage:!0},$e||{}))}function ke(...q){return ue(se=>Reflect.apply(d1,null,[se,...q]),()=>ld(...q),"datetime format",se=>Reflect.apply(se.d,se,[...q]),()=>_a,se=>Te(se))}function Oe(...q){return ue(se=>Reflect.apply(h1,null,[se,...q]),()=>cd(...q),"number format",se=>Reflect.apply(se.n,se,[...q]),()=>_a,se=>Te(se))}function Se(q){return q.map(se=>Te(se)||yt(se)||tt(se)?C1(String(se)):se)}const R={normalize:Se,interpolate:q=>q,type:"vnode"};function x(...q){return ue(se=>{let _e;const $e=se;try{$e.processor=R,_e=Reflect.apply(i1,null,[$e,...q])}finally{$e.processor=null}return _e},()=>ad(...q),"translate",se=>se[dd](...q),se=>[C1(se)],se=>ut(se))}function B(...q){return ue(se=>Reflect.apply(h1,null,[se,...q]),()=>cd(...q),"number format",se=>se[fd](...q),S1,se=>Te(se)||ut(se))}function S(...q){return ue(se=>Reflect.apply(d1,null,[se,...q]),()=>ld(...q),"datetime format",se=>se[ud](...q),S1,se=>Te(se)||ut(se))}function w(q){L=q,N.pluralRules=L}function I(q,se){return ue(()=>{if(!q)return!1;const _e=Te(se)?se:d.value,$e=G(_e),it=N.messageResolver($e,q);return c?it!=null:kn(it)||ln(it)||Te(it)},()=>[q],"translate exists",_e=>Reflect.apply(_e.te,_e,[q,se]),NE,_e=>tt(_e))}function M(q){let se=null;const _e=Fp(N,u.value,d.value);for(let $e=0;$e<_e.length;$e++){const it=f.value[_e[$e]]||{},ct=N.messageResolver(it,q);if(ct!=null){se=ct;break}}return se}function Y(q){const se=M(q);return se??(n?n.tm(q)||{}:{})}function G(q){return f.value[q]||{}}function J(q,se){if(i){const _e={[q]:se};for(const $e in _e)_n(_e,$e)&&Yi(_e[$e]);se=_e[q]}f.value[q]=se,N.messages=f.value}function X(q,se){f.value[q]=f.value[q]||{};const _e={[q]:se};if(i)for(const $e in _e)_n(_e,$e)&&Yi(_e[$e]);se=_e[q],va(se,f.value[q]),N.messages=f.value}function A(q){return h.value[q]||{}}function T(q,se){h.value[q]=se,N.datetimeFormats=h.value,f1(N,q,se)}function H(q,se){h.value[q]=It(h.value[q]||{},se),N.datetimeFormats=h.value,f1(N,q,se)}function Z(q){return p.value[q]||{}}function le(q,se){p.value[q]=se,N.numberFormats=p.value,m1(N,q,se)}function ge(q,se){p.value[q]=It(p.value[q]||{},se),N.numberFormats=p.value,m1(N,q,se)}_1++,n&&er&&(l.watch(n.locale,q=>{a&&(d.value=q,N.locale=q,Ki(N,d.value,u.value))}),l.watch(n.fallbackLocale,q=>{a&&(u.value=q,N.fallbackLocale=q,Ki(N,d.value,u.value))}));const Ae={id:_1,locale:P,fallbackLocale:z,get inheritLocale(){return a},set inheritLocale(q){a=q,q&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Ki(N,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(q){m=q,N.missingWarn=m},get fallbackWarn(){return y},set fallbackWarn(q){y=q,N.fallbackWarn=y},get fallbackRoot(){return g},set fallbackRoot(q){g=q},get fallbackFormat(){return b},set fallbackFormat(q){b=q,N.fallbackFormat=b},get warnHtmlMessage(){return k},set warnHtmlMessage(q){k=q,N.warnHtmlMessage=q},get escapeParameter(){return _},set escapeParameter(q){_=q,N.escapeParameter=q},t:me,getLocaleMessage:G,setLocaleMessage:J,mergeLocaleMessage:X,getPostTranslationHandler:Q,setPostTranslationHandler:U,getMissingHandler:ee,setMissingHandler:ne,[xE]:w};return Ae.datetimeFormats=F,Ae.numberFormats=W,Ae.rt=Ce,Ae.te=I,Ae.tm=Y,Ae.d=ke,Ae.n=Oe,Ae.getDateTimeFormat=A,Ae.setDateTimeFormat=T,Ae.mergeDateTimeFormat=H,Ae.getNumberFormat=Z,Ae.setNumberFormat=le,Ae.mergeNumberFormat=ge,Ae[v1]=r,Ae[dd]=x,Ae[ud]=S,Ae[fd]=B,process.env.NODE_ENV!=="production"&&(Ae[hd]=q=>{N.__v_emitter=q},Ae[pd]=()=>{N.__v_emitter=void 0}),Ae}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function DE({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},Xe())}function k1(t){return l.Fragment}It({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>yt(t)||!isNaN(t)}},yd);function PE(t){return ut(t)&&!Te(t[0])}function A1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=Xe();t.locale&&(s.locale=t.locale),Te(t.format)?s.key=t.format:Ze(t.format)&&(Te(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?It(Xe(),h,{[p]:t.format[p]}):h,Xe()));const a=r(t.value,s,c);let d=[s.key];ut(a)?d=a.map((h,p)=>{const m=o[h.type],y=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return PE(y)&&(y[0].key=`${h.type}-${p}`),y}):Te(a)&&(d=[a]);const u=It(Xe(),i),f=Te(t.tag)||Ze(t.tag)?t.tag:k1();return l.h(f,u,d)}}It({value:{type:Number,required:!0},format:{type:[String,Object]}},yd),It({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd);function T1(t,e){}const BE=tr("global-vue-i18n");function An(t={}){const e=l.getCurrentInstance();if(e==null)throw kr(rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw kr(rt.NOT_INSTALLED);const n=RE(e),r=VE(n),o=b1(e),i=$E(t,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw kr(rt.NOT_AVAILABLE_IN_LEGACY_MODE);return UE(e,i,r,t)}if(i==="global")return OE(r,t,o),r;if(i==="parent"){let a=FE(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&rr(ka(Kt.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=It({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=LE(a),s.__composerExtend&&(c[md]=s.__composerExtend(c)),zE(s,e,c),s.__setInstance(e,c)}return c}function RE(t){{const e=l.inject(t.isCE?BE:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw kr(t.isCE?rt.NOT_INSTALLED_WITH_PROVIDE:rt.UNEXPECTED_ERROR);return e}}function $E(t,e){return ma(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function VE(t){return t.mode==="composition"?t.global:t.global.__composer}function FE(t,e,n=!1){let r=null;const o=e.root;let i=jE(e,n);for(;i!=null;){const s=t;if(t.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(i);c!=null&&(r=c.__composer,n&&r&&!r[v1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function jE(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function zE(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=Z6();const o=n;o[hd]&&o[hd](r),r.on("*",T1)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",T1),o[pd]&&o[pd](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[md];i&&(i(),delete o[md])},e)}function UE(t,e,n,r={}){const o=e==="local",i=l.shallowRef(null);if(o&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw kr(rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=tt(r.inheritLocale)?r.inheritLocale:!Te(r.locale),c=l.ref(!o||s?n.locale.value:Te(r.locale)?r.locale:Wi),a=l.ref(!o||s?n.fallbackLocale.value:Te(r.fallbackLocale)||ut(r.fallbackLocale)||He(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:c.value),d=l.ref(gd(c.value,r)),u=l.ref(He(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),f=l.ref(He(r.numberFormats)?r.numberFormats:{[c.value]:{}}),h=o?n.missingWarn:tt(r.missingWarn)||jo(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:tt(r.fallbackWarn)||jo(r.fallbackWarn)?r.fallbackWarn:!0,m=o?n.fallbackRoot:tt(r.fallbackRoot)?r.fallbackRoot:!0,y=!!r.fallbackFormat,g=nt(r.missing)?r.missing:null,b=nt(r.postTranslation)?r.postTranslation:null,E=o?n.warnHtmlMessage:tt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,C=!!r.escapeParameter,v=o?n.modifiers:He(r.modifiers)?r.modifiers:{},k=r.pluralRules||o&&n.pluralRules;function _(){return[c.value,a.value,d.value,u.value,f.value]}const O=l.computed({get:()=>i.value?i.value.locale.value:c.value,set:I=>{i.value&&(i.value.locale.value=I),c.value=I}}),L=l.computed({get:()=>i.value?i.value.fallbackLocale.value:a.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),a.value=I}}),N=l.computed(()=>i.value?i.value.messages.value:d.value),j=l.computed(()=>u.value),V=l.computed(()=>f.value);function P(){return i.value?i.value.getPostTranslationHandler():b}function z(I){i.value&&i.value.setPostTranslationHandler(I)}function K(){return i.value?i.value.getMissingHandler():g}function F(I){i.value&&i.value.setMissingHandler(I)}function W(I){return _(),I()}function Q(...I){return i.value?W(()=>Reflect.apply(i.value.t,null,[...I])):W(()=>"")}function U(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function ee(...I){return i.value?W(()=>Reflect.apply(i.value.d,null,[...I])):W(()=>"")}function ne(...I){return i.value?W(()=>Reflect.apply(i.value.n,null,[...I])):W(()=>"")}function ae(I){return i.value?i.value.tm(I):{}}function ue(I,M){return i.value?i.value.te(I,M):!1}function me(I){return i.value?i.value.getLocaleMessage(I):{}}function Ce(I,M){i.value&&(i.value.setLocaleMessage(I,M),d.value[I]=M)}function ke(I,M){i.value&&i.value.mergeLocaleMessage(I,M)}function Oe(I){return i.value?i.value.getDateTimeFormat(I):{}}function Se(I,M){i.value&&(i.value.setDateTimeFormat(I,M),u.value[I]=M)}function D(I,M){i.value&&i.value.mergeDateTimeFormat(I,M)}function R(I){return i.value?i.value.getNumberFormat(I):{}}function x(I,M){i.value&&(i.value.setNumberFormat(I,M),f.value[I]=M)}function B(I,M){i.value&&i.value.mergeNumberFormat(I,M)}const S={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:L,messages:N,datetimeFormats:j,numberFormats:V,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:v},get pluralRules(){return i.value?i.value.pluralRules:k},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:y},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:Q,getPostTranslationHandler:P,setPostTranslationHandler:z,getMissingHandler:K,setMissingHandler:F,rt:U,d:ee,n:ne,tm:ae,te:ue,getLocaleMessage:me,setLocaleMessage:Ce,mergeLocaleMessage:ke,getDateTimeFormat:Oe,setDateTimeFormat:Se,mergeDateTimeFormat:D,getNumberFormat:R,setNumberFormat:x,mergeNumberFormat:B};function w(I){I.locale.value=c.value,I.fallbackLocale.value=a.value,Object.keys(d.value).forEach(M=>{I.mergeLocaleMessage(M,d.value[M])}),Object.keys(u.value).forEach(M=>{I.mergeDateTimeFormat(M,u.value[M])}),Object.keys(f.value).forEach(M=>{I.mergeNumberFormat(M,f.value[M])}),I.escapeParameter=C,I.fallbackFormat=y,I.fallbackRoot=m,I.fallbackWarn=p,I.missingWarn=h,I.warnHtmlMessage=E}return l.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw kr(rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(c.value=I.locale.value,a.value=I.fallbackLocale.value,d.value=I.messages.value,u.value=I.datetimeFormats.value,f.value=I.numberFormats.value):o&&w(I)}),S}if(AE(),__INTLIFY_JIT_COMPILATION__?Hp(bE):Hp(vE),cE(UC),dE(Fp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=nr();t.__INTLIFY__=!0,XC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Tn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Aa(t){return typeof t=="function"&&"call"in t&&"apply"in t}function ze(t){return!Tn(t)}function Ar(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function I1(t,e){let n=-1;if(ze(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function pt(t,...e){return Aa(t)?t(...e):t}function St(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pt(t){return St(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Ta(t,e="",n={}){let r=Pt(e).split("."),o=r.shift();if(o){if(Ar(t)){let i=Object.keys(t).find(s=>Pt(s)===o)||"";return Ta(pt(t[i],n),r.join("."),n)}return}return pt(t,n)}function vd(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function HE(t){return ze(t)&&!isNaN(t)}function WE(t=""){return ze(t)&&t.length===1&&!!t.match(/\S| /)}function fo(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Tr(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function KE(t){return St(t,!1)?t[0].toUpperCase()+t.slice(1):t}function x1(t){return St(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function bd(){let t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.forEach(o=>{o(n)})},clear(){t.clear()}}}function Gi(...t){if(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")e.push(r);else if(o==="object"){let i=Array.isArray(r)?[Gi(...r)]:Object.entries(r).map(([s,c])=>c?s:void 0);e=i.length?e.concat(i.filter(s=>!!s)):e}}return e.join(" ").trim()}}function YE(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function GE(t,e){if(t&&e){let n=r=>{YE(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Cd(t,e){if(t&&e){let n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function O1(t){for(let e of document==null?void 0:document.styleSheets)try{for(let n of e==null?void 0:e.cssRules)for(let r of n==null?void 0:n.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function QE(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function N1(){let t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0],o=t.innerWidth||n.clientWidth||r.clientWidth,i=t.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}function Ed(t){return t?Math.abs(t.scrollLeft):0}function ZE(){let t=document.documentElement;return(window.pageXOffset||Ed(t))-(t.clientLeft||0)}function JE(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function XE(t){return t?getComputedStyle(t).direction==="rtl":!1}function qE(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:QE(t),a=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=JE(),m=ZE(),y=N1(),g,b,E="top";h.top+u+a>y.height?(g=h.top+p-a,E="bottom",g<0&&(g=p)):g=u+h.top+p,h.left+d>y.width?b=Math.max(0,h.left+m+f-d):b=h.left+m,XE(t)?t.style.insetInlineEnd=b+"px":t.style.insetInlineStart=b+"px",t.style.top=g+"px",t.style.transformOrigin=E,n&&(t.style.marginTop=E==="bottom"?`calc(${(o=(r=O1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=O1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function M1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function Qi(t,e){if(t instanceof HTMLElement){let n=t.offsetWidth;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}function L1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function D1(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&L1(t))}function Ko(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Sd;function P1(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(Sd!=null)return Sd;let e=document.createElement("div");M1(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),Sd=n,n}}function Yo(t,e={}){if(Ko(t)){let n=(r,o)=>{var i,s;let c=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")a.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);a=f.length?a.concat(f.filter(h=>!!h)):a}}return a},c)};Object.entries(e).forEach(([r,o])=>{if(o!=null){let i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"||r==="pBind"?Yo(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function e9(t,e={},...n){if(t){let r=document.createElement(t);return Yo(r,e),r.append(...n),r}}function Go(t,e){return Ko(t)?t.matches(e)?t:t.querySelector(e):null}function ho(t,e){t&&document.activeElement!==t&&t.focus(e)}function t9(t,e){if(Ko(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function B1(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function n9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display=n,t.style.visibility=e,r}return 0}function r9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display=n,t.style.visibility=e,r}return 0}function R1(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||Ed(document.documentElement)||Ed(document.body)||0)}}return{top:"auto",left:"auto"}}function $1(t,e){if(t){let n=t.offsetHeight;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}function V1(t,e=[]){let n=L1(t);return n===null?e:V1(n,e.concat([n]))}function o9(t){let e=[];if(t){let n=V1(t),r=/(auto|scroll)/,o=i=>{try{let s=window.getComputedStyle(i,null);return r.test(s.getPropertyValue("overflow"))||r.test(s.getPropertyValue("overflowX"))||r.test(s.getPropertyValue("overflowY"))}catch{return!1}};for(let i of n){let s=i.nodeType===1&&i.dataset.scrollselectors;if(s){let c=s.split(",");for(let a of c){let d=Go(i,a);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function F1(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function _d(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function i9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function s9(t,e){var n,r;if(t){let o=t.parentElement,i=R1(o),s=N1(),c=t.offsetParent?t.offsetWidth:r9(t),a=t.offsetParent?t.offsetHeight:n9(t),d=Qi((n=o==null?void 0:o.children)==null?void 0:n[0]),u=$1((r=o==null?void 0:o.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-P1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-P1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+a>s.height?h=`-${a-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function j1(t,e="",n){Ko(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var Ia={};function a9(t="pui_id_"){return Object.hasOwn(Ia,t)||(Ia[t]=0),Ia[t]++,`${t}${Ia[t]}`}function l9(){let t=[],e=(s,c,a=999)=>{let d=o(s,c,a),u=d.value+(d.key===s?0:a)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s,c).value,o=(s,c,a=0)=>[...t].reverse().find(d=>c?!0:d.key===s)||{key:s,value:a},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,a)=>{c&&(c.style.zIndex=String(e(s,!0,a)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s,!0)}}var wd=l9(),c9=Object.defineProperty,d9=Object.defineProperties,u9=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable,H1=(t,e,n)=>e in t?c9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,In=(t,e)=>{for(var n in e||(e={}))z1.call(e,n)&&H1(t,n,e[n]);if(xa)for(var n of xa(e))U1.call(e,n)&&H1(t,n,e[n]);return t},kd=(t,e)=>d9(t,u9(e)),sr=(t,e)=>{var n={};for(var r in t)z1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xa)for(var r of xa(t))e.indexOf(r)<0&&U1.call(t,r)&&(n[r]=t[r]);return n},f9=bd(),lt=f9,Zi=/{([^}]*)}/g,W1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,K1=/var\([^)]+\)/g;function Y1(t){return St(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function h9(t){return Ar(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function p9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Ad(t="",e=""){return p9(`${St(t,!1)&&St(e,!1)?`${t}-`:t}${e}`)}function G1(t="",e=""){return`--${Ad(t,e)}`}function m9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function Q1(t,e="",n="",r=[],o){if(St(t)){let i=t.trim();if(m9(i))return;if(fo(i,Zi)){let s=i.replaceAll(Zi,c=>{let a=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>fo(d,u)));return`var(${G1(n,x1(a.join("-")))}${ze(o)?`, ${o}`:""})`});return fo(s.replace(K1,"0"),W1)?`calc(${s})`:s}return i}else if(HE(t))return t}function g9(t,e,n){St(e,!1)&&t.push(`${e}:${n};`)}function Qo(t,e){return t?`${t}{${e}}`:""}function Z1(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?a.push(Z1(m,c)):a.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return a}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let a=Number(s);return isNaN(a)?s:a}let o=[],i=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")i.push(s),s+=2;else if(t[s]===")"&&i.length>0){let c=i.pop();i.length===0&&o.push([c,s])}if(!o.length)return t;for(let s=o.length-1;s>=0;s--){let[c,a]=o[s],d=t.slice(c+3,a),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ar=(...t)=>y9(Ve.getTheme(),...t),y9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ve.defaults||{},{prefix:s,transform:c}=(t==null?void 0:t.options)||i||{},a=fo(e,Zi)?e:`{${e}}`;return r==="value"||Tn(r)&&c==="strict"?Ve.getTokenValue(e):Q1(a,void 0,s,[o.excludedKeyRegex],n)}return""};function Ir(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=pt(e[i],{dt:ar}))!=null?s:"")},"");return Z1(n,ar)}return pt(t,{dt:ar})}function v9(t,e={}){let n=Ve.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],a=[{node:t,path:r}];for(;a.length;){let{node:u,path:f}=a.pop();for(let h in u){let p=u[h],m=h9(p),y=fo(h,i)?Ad(f):Ad(f,x1(h));if(Ar(m))a.push({node:m,path:y});else{let g=G1(y),b=Q1(m,y,r,[i]);g9(c,g,b);let E=y;r&&E.startsWith(r+"-")&&(E=E.slice(r.length+1)),s.push(E.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:Qo(o,d)}}var xn={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return v9(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,d,u,f;let{preset:h,options:p}=e,m,y,g,b,E,C,v;if(ze(h)&&p.transform!=="strict"){let{primitive:k,semantic:_,extend:O}=h,L=_||{},{colorScheme:N}=L,j=sr(L,["colorScheme"]),V=O||{},{colorScheme:P}=V,z=sr(V,["colorScheme"]),K=N||{},{dark:F}=K,W=sr(K,["dark"]),Q=P||{},{dark:U}=Q,ee=sr(Q,["dark"]),ne=ze(k)?this._toVariables({primitive:k},p):{},ae=ze(j)?this._toVariables({semantic:j},p):{},ue=ze(W)?this._toVariables({light:W},p):{},me=ze(F)?this._toVariables({dark:F},p):{},Ce=ze(z)?this._toVariables({semantic:z},p):{},ke=ze(ee)?this._toVariables({light:ee},p):{},Oe=ze(U)?this._toVariables({dark:U},p):{},[Se,D]=[(i=ne.declarations)!=null?i:"",ne.tokens],[R,x]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[B,S]=[(c=ue.declarations)!=null?c:"",ue.tokens||[]],[w,I]=[(a=me.declarations)!=null?a:"",me.tokens||[]],[M,Y]=[(d=Ce.declarations)!=null?d:"",Ce.tokens||[]],[G,J]=[(u=ke.declarations)!=null?u:"",ke.tokens||[]],[X,A]=[(f=Oe.declarations)!=null?f:"",Oe.tokens||[]];m=this.transformCSS(t,Se,"light","variable",p,r,o),y=D;let T=this.transformCSS(t,`${R}${B}`,"light","variable",p,r,o),H=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);g=`${T}${H}`,b=[...new Set([...x,...S,...I])];let Z=this.transformCSS(t,`${M}${G}color-scheme:light`,"light","variable",p,r,o),le=this.transformCSS(t,`${X}color-scheme:dark`,"dark","variable",p,r,o);E=`${Z}${le}`,C=[...new Set([...Y,...J,...A])],v=pt(h.css,{dt:ar})}return{primitive:{css:m,tokens:y},semantic:{css:g,tokens:b},global:{css:E,tokens:C},style:v}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,d;let u,f,h;if(ze(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:y,extend:g,css:b}=m,E=sr(m,["colorScheme","extend","css"]),C=g||{},{colorScheme:v}=C,k=sr(C,["colorScheme"]),_=y||{},{dark:O}=_,L=sr(_,["dark"]),N=v||{},{dark:j}=N,V=sr(N,["dark"]),P=ze(E)?this._toVariables({[p]:In(In({},E),k)},n):{},z=ze(L)?this._toVariables({[p]:In(In({},L),V)},n):{},K=ze(O)?this._toVariables({[p]:In(In({},O),j)},n):{},[F,W]=[(c=P.declarations)!=null?c:"",P.tokens||[]],[Q,U]=[(a=z.declarations)!=null?a:"",z.tokens||[]],[ee,ne]=[(d=K.declarations)!=null?d:"",K.tokens||[]],ae=this.transformCSS(p,`${F}${Q}`,"light","variable",n,o,i,s),ue=this.transformCSS(p,ee,"dark","variable",n,o,i,s);u=`${ae}${ue}`,f=[...new Set([...W,...U,...ne])],h=pt(b,{dt:ar})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,a=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:a,options:c,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s;let c=t.replace("-directive",""),{preset:a,options:d}=e,u=((i=a==null?void 0:a.components)==null?void 0:i[c])||((s=a==null?void 0:a.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${pt(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){let s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),c=Object.entries(r).reduce((a,[d,u])=>a.push(`${d}="${u}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[d,u])=>{if(Ar(u)&&Object.hasOwn(u,"css")){let f=Tr(u.css),h=`${d}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;let c={name:t,theme:e,params:n,set:o,defaults:i},a=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Tr(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};d.push(this.path),a.name=this.path,a.binding||(a.binding={});let u=this.value;if(typeof this.value=="string"&&Zi.test(this.value)){let f=this.value.trim().replace(Zi,h=>{var p;let m=h.slice(1,-1),y=this.tokens[m];if(!y)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let g=y.computed(c,a,d);return Array.isArray(g)&&g.length===2?`light-dark(${g[0].value},${g[1].value})`:(p=g==null?void 0:g.value)!=null?p:"__UNRESOLVED__"});u=W1.test(f.replace(K1,"0"))?`calc(${f})`:f}return Tn(a.binding)&&delete a.binding,d.pop(),{colorScheme:c,path:this.path,paths:a,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,a,d)=>{Object.entries(c).forEach(([u,f])=>{let h=fo(u,e.variable.excludedKeyRegex)?a:a?`${a}.${Y1(u)}`:Y1(u),p=d?`${d}.${u}`:u;Ar(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,y={},g=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,y.binding,g);if(m&&m!=="none")for(let b=0;b<o[h].paths.length;b++){let E=o[h].paths[b];if(E.scheme===m)return E.computed(m,y.binding,g)}return o[h].paths.map(b=>b.computed(b.scheme,y[b.scheme],g))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(a=>!fo(a.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[o])==null?void 0:r.computed(i)].flat().filter(c=>c);return s.length===1?s[0].value:s.reduce((c={},a)=>{let d=a,{colorScheme:u}=d,f=sr(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Qo(ze(e)?`${t}${e},${t} ${e}`:t,r):Qo(t,Qo(e??":root",r))},transformCSS(t,e,n,r,o={},i,s,c){if(ze(e)){let{cssLayer:a}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(ze(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):Qo(c??":root",e)}if(a){let d={name:"primeui",order:"primeui"};Ar(a)&&(d.name=pt(a.name,{name:t,type:r})),ze(d.name)&&(e=Qo(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=kd(In({},e),{options:In(In({},this.defaults.options),e.options)}),this._tokens=xn.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),lt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=kd(In({},this.theme),{preset:t}),this._tokens=xn.createTokens(t,this.defaults),this.clearLoadedStyleNames(),lt.emit("preset:change",t),lt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=kd(In({},this.theme),{options:t}),this.clearLoadedStyleNames(),lt.emit("options:change",t),lt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return xn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xn.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPresetD(n)},getCustomPreset(t="",e,n,r){let o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPreset(o)},getLayerOrderCSS(t=""){return xn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return xn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xn.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),lt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&lt.emit("theme:load"))}},Ji={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},J1=`
78
+ */const kE="9.14.4";function AE(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(nr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(nr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(nr().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(nr().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(nr().__INTLIFY_PROD_DEVTOOLS__=!1)}const g1=Dt.__EXTEND_POINT__,ir=ga(g1),Kt={FALLBACK_TO_ROOT:g1,NOT_SUPPORTED_PRESERVE:ir(),NOT_SUPPORTED_FORMATTER:ir(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ir(),NOT_SUPPORTED_GET_CHOICE_INDEX:ir(),COMPONENT_NAME_LEGACY_COMPATIBLE:ir(),NOT_FOUND_PARENT_SCOPE:ir(),IGNORE_OBJ_FLATTEN:ir(),NOTICE_DROP_ALLOW_COMPOSITION:ir(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ir()},TE={[Kt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Kt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Kt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Kt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Kt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Kt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Kt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Kt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Kt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Kt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ka(t,...e){return Xc(TE[t],...e)}const y1=vt.__EXTEND_POINT__,Yt=ga(y1),rt={UNEXPECTED_RETURN_TYPE:y1,INVALID_ARGUMENT:Yt(),MUST_BE_CALL_SETUP_TOP:Yt(),NOT_INSTALLED:Yt(),NOT_AVAILABLE_IN_LEGACY_MODE:Yt(),REQUIRED_VALUE:Yt(),INVALID_VALUE:Yt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Yt(),NOT_INSTALLED_WITH_PROVIDE:Yt(),UNEXPECTED_ERROR:Yt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Yt(),BRIDGE_SUPPORT_VUE_2_ONLY:Yt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Yt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Yt(),__EXTEND_POINT__:Yt()};function kr(t,...e){return zo(t,null,process.env.NODE_ENV!=="production"?{messages:IE,args:e}:void 0)}const IE={[rt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[rt.INVALID_ARGUMENT]:"Invalid argument",[rt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[rt.NOT_INSTALLED]:"Need to install with `app.use` function",[rt.UNEXPECTED_ERROR]:"Unexpected error",[rt.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[rt.REQUIRED_VALUE]:"Required in value: {0}",[rt.INVALID_VALUE]:"Invalid value",[rt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[rt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[rt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[rt.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dd=tr("__translateVNode"),ud=tr("__datetimeParts"),fd=tr("__numberParts"),hd=tr("__enableEmitter"),pd=tr("__disableEmitter"),xE=tr("__setPluralRules"),v1=tr("__injectWithOption"),md=tr("__dispose");function Yi(t){if(!Ze(t)||An(t))return t;for(const e in t)if(wn(t,e))if(!e.includes("."))Ze(t[e])&&Yi(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=Xe()),!Ze(o[n[s]])){process.env.NODE_ENV!=="production"&&rr(ka(Kt.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(An(o)?Dp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!An(o)){const s=o[n[r]];Ze(s)&&Yi(s)}}return t}function gd(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=He(n)?n:ut(r)?Xe():{[t]:Xe()};if(ut(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:d}=c;a?(s[a]=s[a]||Xe(),va(d,s[a])):va(d,s)}else Te(c)&&va(JSON.parse(c),s)}),o==null&&i)for(const c in s)wn(s,c)&&Yi(s[c]);return s}function b1(t){return t.type}function OE(t,e,n){let r=Ze(e.messages)?e.messages:Xe();"__i18nGlobal"in n&&(r=gd(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ze(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ze(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function C1(t){return l.createVNode(l.Text,null,t,0)}const E1="__INTLIFY_META__",S1=()=>[],NE=()=>!1;let _1=0;function w1(t){return(e,n,r,o)=>t(n,r,l.getCurrentInstance()||void 0,o)}const ME=()=>{const t=l.getCurrentInstance();let e=null;return t&&(e=b1(t)[E1])?{[E1]:e}:null};function LE(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=er?l.ref:l.shallowRef,c=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&c&&vp(ka(Kt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let a=tt(t.inheritLocale)?t.inheritLocale:!0;const d=s(n&&a?n.locale.value:Te(t.locale)?t.locale:Wi),u=s(n&&a?n.fallbackLocale.value:Te(t.fallbackLocale)||ut(t.fallbackLocale)||He(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),f=s(gd(d.value,t)),h=s(He(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),p=s(He(t.numberFormats)?t.numberFormats:{[d.value]:{}});let m=n?n.missingWarn:tt(t.missingWarn)||jo(t.missingWarn)?t.missingWarn:!0,g=n?n.fallbackWarn:tt(t.fallbackWarn)||jo(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:tt(t.fallbackRoot)?t.fallbackRoot:!0,C=!!t.fallbackFormat,E=nt(t.missing)?t.missing:null,b=nt(t.missing)?w1(t.missing):null,v=nt(t.postTranslation)?t.postTranslation:null,k=n?n.warnHtmlMessage:tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const O=n?n.modifiers:He(t.modifiers)?t.modifiers:{};let L=t.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&Qp(null);const q={version:kE,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:L,missing:b===null?void 0:b,missingWarn:m,fallbackWarn:g,fallbackFormat:C,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:k,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};q.datetimeFormats=h.value,q.numberFormats=p.value,q.__datetimeFormatters=He(N)?N.__datetimeFormatters:void 0,q.__numberFormatters=He(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(q.__v_emitter=He(N)?N.__v_emitter:void 0);const se=pE(q);return o&&Qp(se),se})(),Ki(N,d.value,u.value);function V(){return[d.value,u.value,f.value,h.value,p.value]}const P=l.computed({get:()=>d.value,set:q=>{d.value=q,N.locale=d.value}}),z=l.computed({get:()=>u.value,set:q=>{u.value=q,N.fallbackLocale=u.value,Ki(N,d.value,q)}}),K=l.computed(()=>f.value),F=l.computed(()=>h.value),W=l.computed(()=>p.value);function Q(){return nt(v)?v:null}function U(q){v=q,N.postTranslation=q}function ee(){return E}function ne(q){q!==null&&(b=w1(q)),E=q,N.missing=b}function ae(q,se){return q!=="translate"||!se.resolvedMessage}const ue=(q,se,_e,$e,it,ct)=>{V();let Ut;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?hE():void 0),Ut=q(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(_e!=="translate exists"&&yt(Ut)&&Ut===Sa||_e==="translate exists"&&!Ut){const[re,ve]=se();if(process.env.NODE_ENV!=="production"&&n&&Te(re)&&ae(_e,ve)&&(y&&(wa(g,re)||Jp(m,re))&&rr(ka(Kt.FALLBACK_TO_ROOT,{key:re,type:_e})),process.env.NODE_ENV!=="production")){const{__v_emitter:ye}=N;ye&&y&&ye.emit("fallback",{type:_e,key:re,to:"global",groupId:`${_e}:${re}`})}return n&&y?$e(n):it(re)}else{if(ct(Ut))return Ut;throw kr(rt.UNEXPECTED_RETURN_TYPE)}};function me(...q){return ue(se=>Reflect.apply(i1,null,[se,...q]),()=>ad(...q),"translate",se=>Reflect.apply(se.t,se,[...q]),se=>se,se=>Te(se))}function Ce(...q){const[se,_e,$e]=q;if($e&&!Ze($e))throw kr(rt.INVALID_ARGUMENT);return me(se,_e,It({resolvedMessage:!0},$e||{}))}function ke(...q){return ue(se=>Reflect.apply(d1,null,[se,...q]),()=>ld(...q),"datetime format",se=>Reflect.apply(se.d,se,[...q]),()=>_a,se=>Te(se))}function Oe(...q){return ue(se=>Reflect.apply(h1,null,[se,...q]),()=>cd(...q),"number format",se=>Reflect.apply(se.n,se,[...q]),()=>_a,se=>Te(se))}function Se(q){return q.map(se=>Te(se)||yt(se)||tt(se)?C1(String(se)):se)}const R={normalize:Se,interpolate:q=>q,type:"vnode"};function x(...q){return ue(se=>{let _e;const $e=se;try{$e.processor=R,_e=Reflect.apply(i1,null,[$e,...q])}finally{$e.processor=null}return _e},()=>ad(...q),"translate",se=>se[dd](...q),se=>[C1(se)],se=>ut(se))}function B(...q){return ue(se=>Reflect.apply(h1,null,[se,...q]),()=>cd(...q),"number format",se=>se[fd](...q),S1,se=>Te(se)||ut(se))}function S(...q){return ue(se=>Reflect.apply(d1,null,[se,...q]),()=>ld(...q),"datetime format",se=>se[ud](...q),S1,se=>Te(se)||ut(se))}function w(q){L=q,N.pluralRules=L}function I(q,se){return ue(()=>{if(!q)return!1;const _e=Te(se)?se:d.value,$e=G(_e),it=N.messageResolver($e,q);return c?it!=null:An(it)||ln(it)||Te(it)},()=>[q],"translate exists",_e=>Reflect.apply(_e.te,_e,[q,se]),NE,_e=>tt(_e))}function M(q){let se=null;const _e=Fp(N,u.value,d.value);for(let $e=0;$e<_e.length;$e++){const it=f.value[_e[$e]]||{},ct=N.messageResolver(it,q);if(ct!=null){se=ct;break}}return se}function Y(q){const se=M(q);return se??(n?n.tm(q)||{}:{})}function G(q){return f.value[q]||{}}function J(q,se){if(i){const _e={[q]:se};for(const $e in _e)wn(_e,$e)&&Yi(_e[$e]);se=_e[q]}f.value[q]=se,N.messages=f.value}function X(q,se){f.value[q]=f.value[q]||{};const _e={[q]:se};if(i)for(const $e in _e)wn(_e,$e)&&Yi(_e[$e]);se=_e[q],va(se,f.value[q]),N.messages=f.value}function A(q){return h.value[q]||{}}function T(q,se){h.value[q]=se,N.datetimeFormats=h.value,f1(N,q,se)}function H(q,se){h.value[q]=It(h.value[q]||{},se),N.datetimeFormats=h.value,f1(N,q,se)}function Z(q){return p.value[q]||{}}function le(q,se){p.value[q]=se,N.numberFormats=p.value,m1(N,q,se)}function ge(q,se){p.value[q]=It(p.value[q]||{},se),N.numberFormats=p.value,m1(N,q,se)}_1++,n&&er&&(l.watch(n.locale,q=>{a&&(d.value=q,N.locale=q,Ki(N,d.value,u.value))}),l.watch(n.fallbackLocale,q=>{a&&(u.value=q,N.fallbackLocale=q,Ki(N,d.value,u.value))}));const Ae={id:_1,locale:P,fallbackLocale:z,get inheritLocale(){return a},set inheritLocale(q){a=q,q&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Ki(N,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(q){m=q,N.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(q){g=q,N.fallbackWarn=g},get fallbackRoot(){return y},set fallbackRoot(q){y=q},get fallbackFormat(){return C},set fallbackFormat(q){C=q,N.fallbackFormat=C},get warnHtmlMessage(){return k},set warnHtmlMessage(q){k=q,N.warnHtmlMessage=q},get escapeParameter(){return _},set escapeParameter(q){_=q,N.escapeParameter=q},t:me,getLocaleMessage:G,setLocaleMessage:J,mergeLocaleMessage:X,getPostTranslationHandler:Q,setPostTranslationHandler:U,getMissingHandler:ee,setMissingHandler:ne,[xE]:w};return Ae.datetimeFormats=F,Ae.numberFormats=W,Ae.rt=Ce,Ae.te=I,Ae.tm=Y,Ae.d=ke,Ae.n=Oe,Ae.getDateTimeFormat=A,Ae.setDateTimeFormat=T,Ae.mergeDateTimeFormat=H,Ae.getNumberFormat=Z,Ae.setNumberFormat=le,Ae.mergeNumberFormat=ge,Ae[v1]=r,Ae[dd]=x,Ae[ud]=S,Ae[fd]=B,process.env.NODE_ENV!=="production"&&(Ae[hd]=q=>{N.__v_emitter=q},Ae[pd]=()=>{N.__v_emitter=void 0}),Ae}const yd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function DE({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===l.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},Xe())}function k1(t){return l.Fragment}It({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>yt(t)||!isNaN(t)}},yd);function PE(t){return ut(t)&&!Te(t[0])}function A1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=Xe();t.locale&&(s.locale=t.locale),Te(t.format)?s.key=t.format:Ze(t.format)&&(Te(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?It(Xe(),h,{[p]:t.format[p]}):h,Xe()));const a=r(t.value,s,c);let d=[s.key];ut(a)?d=a.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return PE(g)&&(g[0].key=`${h.type}-${p}`),g}):Te(a)&&(d=[a]);const u=It(Xe(),i),f=Te(t.tag)||Ze(t.tag)?t.tag:k1();return l.h(f,u,d)}}It({value:{type:Number,required:!0},format:{type:[String,Object]}},yd),It({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},yd);function T1(t,e){}const BE=tr("global-vue-i18n");function cn(t={}){const e=l.getCurrentInstance();if(e==null)throw kr(rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw kr(rt.NOT_INSTALLED);const n=RE(e),r=VE(n),o=b1(e),i=$E(t,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw kr(rt.NOT_AVAILABLE_IN_LEGACY_MODE);return UE(e,i,r,t)}if(i==="global")return OE(r,t,o),r;if(i==="parent"){let a=FE(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&rr(ka(Kt.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=It({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=LE(a),s.__composerExtend&&(c[md]=s.__composerExtend(c)),zE(s,e,c),s.__setInstance(e,c)}return c}function RE(t){{const e=l.inject(t.isCE?BE:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw kr(t.isCE?rt.NOT_INSTALLED_WITH_PROVIDE:rt.UNEXPECTED_ERROR);return e}}function $E(t,e){return ma(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function VE(t){return t.mode==="composition"?t.global:t.global.__composer}function FE(t,e,n=!1){let r=null;const o=e.root;let i=jE(e,n);for(;i!=null;){const s=t;if(t.mode==="composition")r=s.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(i);c!=null&&(r=c.__composer,n&&r&&!r[v1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function jE(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function zE(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=Z6();const o=n;o[hd]&&o[hd](r),r.on("*",T1)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",T1),o[pd]&&o[pd](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[md];i&&(i(),delete o[md])},e)}function UE(t,e,n,r={}){const o=e==="local",i=l.shallowRef(null);if(o&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw kr(rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=tt(r.inheritLocale)?r.inheritLocale:!Te(r.locale),c=l.ref(!o||s?n.locale.value:Te(r.locale)?r.locale:Wi),a=l.ref(!o||s?n.fallbackLocale.value:Te(r.fallbackLocale)||ut(r.fallbackLocale)||He(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:c.value),d=l.ref(gd(c.value,r)),u=l.ref(He(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),f=l.ref(He(r.numberFormats)?r.numberFormats:{[c.value]:{}}),h=o?n.missingWarn:tt(r.missingWarn)||jo(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:tt(r.fallbackWarn)||jo(r.fallbackWarn)?r.fallbackWarn:!0,m=o?n.fallbackRoot:tt(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,y=nt(r.missing)?r.missing:null,C=nt(r.postTranslation)?r.postTranslation:null,E=o?n.warnHtmlMessage:tt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,v=o?n.modifiers:He(r.modifiers)?r.modifiers:{},k=r.pluralRules||o&&n.pluralRules;function _(){return[c.value,a.value,d.value,u.value,f.value]}const O=l.computed({get:()=>i.value?i.value.locale.value:c.value,set:I=>{i.value&&(i.value.locale.value=I),c.value=I}}),L=l.computed({get:()=>i.value?i.value.fallbackLocale.value:a.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),a.value=I}}),N=l.computed(()=>i.value?i.value.messages.value:d.value),j=l.computed(()=>u.value),V=l.computed(()=>f.value);function P(){return i.value?i.value.getPostTranslationHandler():C}function z(I){i.value&&i.value.setPostTranslationHandler(I)}function K(){return i.value?i.value.getMissingHandler():y}function F(I){i.value&&i.value.setMissingHandler(I)}function W(I){return _(),I()}function Q(...I){return i.value?W(()=>Reflect.apply(i.value.t,null,[...I])):W(()=>"")}function U(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function ee(...I){return i.value?W(()=>Reflect.apply(i.value.d,null,[...I])):W(()=>"")}function ne(...I){return i.value?W(()=>Reflect.apply(i.value.n,null,[...I])):W(()=>"")}function ae(I){return i.value?i.value.tm(I):{}}function ue(I,M){return i.value?i.value.te(I,M):!1}function me(I){return i.value?i.value.getLocaleMessage(I):{}}function Ce(I,M){i.value&&(i.value.setLocaleMessage(I,M),d.value[I]=M)}function ke(I,M){i.value&&i.value.mergeLocaleMessage(I,M)}function Oe(I){return i.value?i.value.getDateTimeFormat(I):{}}function Se(I,M){i.value&&(i.value.setDateTimeFormat(I,M),u.value[I]=M)}function D(I,M){i.value&&i.value.mergeDateTimeFormat(I,M)}function R(I){return i.value?i.value.getNumberFormat(I):{}}function x(I,M){i.value&&(i.value.setNumberFormat(I,M),f.value[I]=M)}function B(I,M){i.value&&i.value.mergeNumberFormat(I,M)}const S={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:L,messages:N,datetimeFormats:j,numberFormats:V,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:v},get pluralRules(){return i.value?i.value.pluralRules:k},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:Q,getPostTranslationHandler:P,setPostTranslationHandler:z,getMissingHandler:K,setMissingHandler:F,rt:U,d:ee,n:ne,tm:ae,te:ue,getLocaleMessage:me,setLocaleMessage:Ce,mergeLocaleMessage:ke,getDateTimeFormat:Oe,setDateTimeFormat:Se,mergeDateTimeFormat:D,getNumberFormat:R,setNumberFormat:x,mergeNumberFormat:B};function w(I){I.locale.value=c.value,I.fallbackLocale.value=a.value,Object.keys(d.value).forEach(M=>{I.mergeLocaleMessage(M,d.value[M])}),Object.keys(u.value).forEach(M=>{I.mergeDateTimeFormat(M,u.value[M])}),Object.keys(f.value).forEach(M=>{I.mergeNumberFormat(M,f.value[M])}),I.escapeParameter=b,I.fallbackFormat=g,I.fallbackRoot=m,I.fallbackWarn=p,I.missingWarn=h,I.warnHtmlMessage=E}return l.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw kr(rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(c.value=I.locale.value,a.value=I.fallbackLocale.value,d.value=I.messages.value,u.value=I.datetimeFormats.value,f.value=I.numberFormats.value):o&&w(I)}),S}if(AE(),__INTLIFY_JIT_COMPILATION__?Hp(bE):Hp(vE),cE(UC),dE(Fp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=nr();t.__INTLIFY__=!0,XC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Tn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Aa(t){return typeof t=="function"&&"call"in t&&"apply"in t}function ze(t){return!Tn(t)}function Ar(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function I1(t,e){let n=-1;if(ze(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function pt(t,...e){return Aa(t)?t(...e):t}function St(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Pt(t){return St(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Ta(t,e="",n={}){let r=Pt(e).split("."),o=r.shift();if(o){if(Ar(t)){let i=Object.keys(t).find(s=>Pt(s)===o)||"";return Ta(pt(t[i],n),r.join("."),n)}return}return pt(t,n)}function vd(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function HE(t){return ze(t)&&!isNaN(t)}function WE(t=""){return ze(t)&&t.length===1&&!!t.match(/\S| /)}function fo(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Tr(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function KE(t){return St(t,!1)?t[0].toUpperCase()+t.slice(1):t}function x1(t){return St(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function bd(){let t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.forEach(o=>{o(n)})},clear(){t.clear()}}}function Gi(...t){if(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];if(!r)continue;let o=typeof r;if(o==="string"||o==="number")e.push(r);else if(o==="object"){let i=Array.isArray(r)?[Gi(...r)]:Object.entries(r).map(([s,c])=>c?s:void 0);e=i.length?e.concat(i.filter(s=>!!s)):e}}return e.join(" ").trim()}}function YE(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function GE(t,e){if(t&&e){let n=r=>{YE(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Cd(t,e){if(t&&e){let n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function O1(t){for(let e of document==null?void 0:document.styleSheets)try{for(let n of e==null?void 0:e.cssRules)for(let r of n==null?void 0:n.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function QE(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function N1(){let t=window,e=document,n=e.documentElement,r=e.getElementsByTagName("body")[0],o=t.innerWidth||n.clientWidth||r.clientWidth,i=t.innerHeight||n.clientHeight||r.clientHeight;return{width:o,height:i}}function Ed(t){return t?Math.abs(t.scrollLeft):0}function ZE(){let t=document.documentElement;return(window.pageXOffset||Ed(t))-(t.clientLeft||0)}function JE(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function XE(t){return t?getComputedStyle(t).direction==="rtl":!1}function qE(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:QE(t),a=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=JE(),m=ZE(),g=N1(),y,C,E="top";h.top+u+a>g.height?(y=h.top+p-a,E="bottom",y<0&&(y=p)):y=u+h.top+p,h.left+d>g.width?C=Math.max(0,h.left+m+f-d):C=h.left+m,XE(t)?t.style.insetInlineEnd=C+"px":t.style.insetInlineStart=C+"px",t.style.top=y+"px",t.style.transformOrigin=E,n&&(t.style.marginTop=E==="bottom"?`calc(${(o=(r=O1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=O1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function M1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function Qi(t,e){if(t instanceof HTMLElement){let n=t.offsetWidth;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}function L1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function D1(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&L1(t))}function Ko(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Sd;function P1(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(Sd!=null)return Sd;let e=document.createElement("div");M1(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),Sd=n,n}}function Yo(t,e={}){if(Ko(t)){let n=(r,o)=>{var i,s;let c=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")a.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);a=f.length?a.concat(f.filter(h=>!!h)):a}}return a},c)};Object.entries(e).forEach(([r,o])=>{if(o!=null){let i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"||r==="pBind"?Yo(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function e9(t,e={},...n){if(t){let r=document.createElement(t);return Yo(r,e),r.append(...n),r}}function Go(t,e){return Ko(t)?t.matches(e)?t:t.querySelector(e):null}function ho(t,e){t&&document.activeElement!==t&&t.focus(e)}function t9(t,e){if(Ko(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function B1(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function n9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetHeight;return t.style.display=n,t.style.visibility=e,r}return 0}function r9(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let r=t.offsetWidth;return t.style.display=n,t.style.visibility=e,r}return 0}function R1(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||Ed(document.documentElement)||Ed(document.body)||0)}}return{top:"auto",left:"auto"}}function $1(t,e){if(t){let n=t.offsetHeight;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}function V1(t,e=[]){let n=L1(t);return n===null?e:V1(n,e.concat([n]))}function o9(t){let e=[];if(t){let n=V1(t),r=/(auto|scroll)/,o=i=>{try{let s=window.getComputedStyle(i,null);return r.test(s.getPropertyValue("overflow"))||r.test(s.getPropertyValue("overflowX"))||r.test(s.getPropertyValue("overflowY"))}catch{return!1}};for(let i of n){let s=i.nodeType===1&&i.dataset.scrollselectors;if(s){let c=s.split(",");for(let a of c){let d=Go(i,a);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function F1(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function _d(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function i9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function s9(t,e){var n,r;if(t){let o=t.parentElement,i=R1(o),s=N1(),c=t.offsetParent?t.offsetWidth:r9(t),a=t.offsetParent?t.offsetHeight:n9(t),d=Qi((n=o==null?void 0:o.children)==null?void 0:n[0]),u=$1((r=o==null?void 0:o.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-P1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-P1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+a>s.height?h=`-${a-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function j1(t,e="",n){Ko(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var Ia={};function a9(t="pui_id_"){return Object.hasOwn(Ia,t)||(Ia[t]=0),Ia[t]++,`${t}${Ia[t]}`}function l9(){let t=[],e=(s,c,a=999)=>{let d=o(s,c,a),u=d.value+(d.key===s?0:a)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s,c).value,o=(s,c,a=0)=>[...t].reverse().find(d=>c?!0:d.key===s)||{key:s,value:a},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,a)=>{c&&(c.style.zIndex=String(e(s,!0,a)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s,!0)}}var wd=l9(),c9=Object.defineProperty,d9=Object.defineProperties,u9=Object.getOwnPropertyDescriptors,xa=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,U1=Object.prototype.propertyIsEnumerable,H1=(t,e,n)=>e in t?c9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,In=(t,e)=>{for(var n in e||(e={}))z1.call(e,n)&&H1(t,n,e[n]);if(xa)for(var n of xa(e))U1.call(e,n)&&H1(t,n,e[n]);return t},kd=(t,e)=>d9(t,u9(e)),sr=(t,e)=>{var n={};for(var r in t)z1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&xa)for(var r of xa(t))e.indexOf(r)<0&&U1.call(t,r)&&(n[r]=t[r]);return n},f9=bd(),lt=f9,Zi=/{([^}]*)}/g,W1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,K1=/var\([^)]+\)/g;function Y1(t){return St(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function h9(t){return Ar(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function p9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Ad(t="",e=""){return p9(`${St(t,!1)&&St(e,!1)?`${t}-`:t}${e}`)}function G1(t="",e=""){return`--${Ad(t,e)}`}function m9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function Q1(t,e="",n="",r=[],o){if(St(t)){let i=t.trim();if(m9(i))return;if(fo(i,Zi)){let s=i.replaceAll(Zi,c=>{let a=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>fo(d,u)));return`var(${G1(n,x1(a.join("-")))}${ze(o)?`, ${o}`:""})`});return fo(s.replace(K1,"0"),W1)?`calc(${s})`:s}return i}else if(HE(t))return t}function g9(t,e,n){St(e,!1)&&t.push(`${e}:${n};`)}function Qo(t,e){return t?`${t}{${e}}`:""}function Z1(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?a.push(Z1(m,c)):a.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return a}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let a=Number(s);return isNaN(a)?s:a}let o=[],i=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")i.push(s),s+=2;else if(t[s]===")"&&i.length>0){let c=i.pop();i.length===0&&o.push([c,s])}if(!o.length)return t;for(let s=o.length-1;s>=0;s--){let[c,a]=o[s],d=t.slice(c+3,a),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ar=(...t)=>y9(Ve.getTheme(),...t),y9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ve.defaults||{},{prefix:s,transform:c}=(t==null?void 0:t.options)||i||{},a=fo(e,Zi)?e:`{${e}}`;return r==="value"||Tn(r)&&c==="strict"?Ve.getTokenValue(e):Q1(a,void 0,s,[o.excludedKeyRegex],n)}return""};function Ir(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=pt(e[i],{dt:ar}))!=null?s:"")},"");return Z1(n,ar)}return pt(t,{dt:ar})}function v9(t,e={}){let n=Ve.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],a=[{node:t,path:r}];for(;a.length;){let{node:u,path:f}=a.pop();for(let h in u){let p=u[h],m=h9(p),g=fo(h,i)?Ad(f):Ad(f,x1(h));if(Ar(m))a.push({node:m,path:g});else{let y=G1(g),C=Q1(m,g,r,[i]);g9(c,y,C);let E=g;r&&E.startsWith(r+"-")&&(E=E.slice(r.length+1)),s.push(E.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:Qo(o,d)}}var xn={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return v9(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,d,u,f;let{preset:h,options:p}=e,m,g,y,C,E,b,v;if(ze(h)&&p.transform!=="strict"){let{primitive:k,semantic:_,extend:O}=h,L=_||{},{colorScheme:N}=L,j=sr(L,["colorScheme"]),V=O||{},{colorScheme:P}=V,z=sr(V,["colorScheme"]),K=N||{},{dark:F}=K,W=sr(K,["dark"]),Q=P||{},{dark:U}=Q,ee=sr(Q,["dark"]),ne=ze(k)?this._toVariables({primitive:k},p):{},ae=ze(j)?this._toVariables({semantic:j},p):{},ue=ze(W)?this._toVariables({light:W},p):{},me=ze(F)?this._toVariables({dark:F},p):{},Ce=ze(z)?this._toVariables({semantic:z},p):{},ke=ze(ee)?this._toVariables({light:ee},p):{},Oe=ze(U)?this._toVariables({dark:U},p):{},[Se,D]=[(i=ne.declarations)!=null?i:"",ne.tokens],[R,x]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[B,S]=[(c=ue.declarations)!=null?c:"",ue.tokens||[]],[w,I]=[(a=me.declarations)!=null?a:"",me.tokens||[]],[M,Y]=[(d=Ce.declarations)!=null?d:"",Ce.tokens||[]],[G,J]=[(u=ke.declarations)!=null?u:"",ke.tokens||[]],[X,A]=[(f=Oe.declarations)!=null?f:"",Oe.tokens||[]];m=this.transformCSS(t,Se,"light","variable",p,r,o),g=D;let T=this.transformCSS(t,`${R}${B}`,"light","variable",p,r,o),H=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);y=`${T}${H}`,C=[...new Set([...x,...S,...I])];let Z=this.transformCSS(t,`${M}${G}color-scheme:light`,"light","variable",p,r,o),le=this.transformCSS(t,`${X}color-scheme:dark`,"dark","variable",p,r,o);E=`${Z}${le}`,b=[...new Set([...Y,...J,...A])],v=pt(h.css,{dt:ar})}return{primitive:{css:m,tokens:g},semantic:{css:y,tokens:C},global:{css:E,tokens:b},style:v}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,d;let u,f,h;if(ze(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:y,css:C}=m,E=sr(m,["colorScheme","extend","css"]),b=y||{},{colorScheme:v}=b,k=sr(b,["colorScheme"]),_=g||{},{dark:O}=_,L=sr(_,["dark"]),N=v||{},{dark:j}=N,V=sr(N,["dark"]),P=ze(E)?this._toVariables({[p]:In(In({},E),k)},n):{},z=ze(L)?this._toVariables({[p]:In(In({},L),V)},n):{},K=ze(O)?this._toVariables({[p]:In(In({},O),j)},n):{},[F,W]=[(c=P.declarations)!=null?c:"",P.tokens||[]],[Q,U]=[(a=z.declarations)!=null?a:"",z.tokens||[]],[ee,ne]=[(d=K.declarations)!=null?d:"",K.tokens||[]],ae=this.transformCSS(p,`${F}${Q}`,"light","variable",n,o,i,s),ue=this.transformCSS(p,ee,"dark","variable",n,o,i,s);u=`${ae}${ue}`,f=[...new Set([...W,...U,...ne])],h=pt(C,{dt:ar})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,a=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:a,options:c,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s;let c=t.replace("-directive",""),{preset:a,options:d}=e,u=((i=a==null?void 0:a.components)==null?void 0:i[c])||((s=a==null?void 0:a.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${pt(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){let s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),c=Object.entries(r).reduce((a,[d,u])=>a.push(`${d}="${u}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[d,u])=>{if(Ar(u)&&Object.hasOwn(u,"css")){let f=Tr(u.css),h=`${d}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;let c={name:t,theme:e,params:n,set:o,defaults:i},a=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Tr(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};d.push(this.path),a.name=this.path,a.binding||(a.binding={});let u=this.value;if(typeof this.value=="string"&&Zi.test(this.value)){let f=this.value.trim().replace(Zi,h=>{var p;let m=h.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let y=g.computed(c,a,d);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(p=y==null?void 0:y.value)!=null?p:"__UNRESOLVED__"});u=W1.test(f.replace(K1,"0"))?`calc(${f})`:f}return Tn(a.binding)&&delete a.binding,d.pop(),{colorScheme:c,path:this.path,paths:a,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,a,d)=>{Object.entries(c).forEach(([u,f])=>{let h=fo(u,e.variable.excludedKeyRegex)?a:a?`${a}.${Y1(u)}`:Y1(u),p=d?`${d}.${u}`:u;Ar(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},y=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,y);if(m&&m!=="none")for(let C=0;C<o[h].paths.length;C++){let E=o[h].paths[C];if(E.scheme===m)return E.computed(m,g.binding,y)}return o[h].paths.map(C=>C.computed(C.scheme,g[C.scheme],y))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(a=>!fo(a.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(r=t[o])==null?void 0:r.computed(i)].flat().filter(c=>c);return s.length===1?s[0].value:s.reduce((c={},a)=>{let d=a,{colorScheme:u}=d,f=sr(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Qo(ze(e)?`${t}${e},${t} ${e}`:t,r):Qo(t,Qo(e??":root",r))},transformCSS(t,e,n,r,o={},i,s,c){if(ze(e)){let{cssLayer:a}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(ze(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):Qo(c??":root",e)}if(a){let d={name:"primeui",order:"primeui"};Ar(a)&&(d.name=pt(a.name,{name:t,type:r})),ze(d.name)&&(e=Qo(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=kd(In({},e),{options:In(In({},this.defaults.options),e.options)}),this._tokens=xn.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),lt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=kd(In({},this.theme),{preset:t}),this._tokens=xn.createTokens(t,this.defaults),this.clearLoadedStyleNames(),lt.emit("preset:change",t),lt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=kd(In({},this.theme),{options:t}),this.clearLoadedStyleNames(),lt.emit("options:change",t),lt.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return xn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return xn.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPresetD(n)},getCustomPreset(t="",e,n,r){let o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return xn.getPreset(o)},getLayerOrderCSS(t=""){return xn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return xn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return xn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return xn.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),lt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&lt.emit("theme:load"))}},Ji={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}},J1=`
79
79
  *,
80
80
  ::before,
81
81
  ::after {
@@ -198,7 +198,7 @@ ${d}`:a)}else throw s},onCacheKey:s=>j6(e,n,s)}}function _E(t){if(Te(t))return t
198
198
  background: transparent;
199
199
  }
200
200
  }
201
- `;function Xi(t){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xi(t)}function X1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X1(Object(n),!0).forEach(function(r){b9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b9(t,e,n){return(e=C9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C9(t){var e=E9(t,"string");return Xi(e)=="symbol"?e:e+""}function E9(t,e){if(Xi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Xi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function S9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var _9=0;function w9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=_d()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++_9):h,m=e.id,y=m===void 0?void 0:m,g=e.media,b=g===void 0?void 0:g,E=e.nonce,C=E===void 0?void 0:E,v=e.first,k=v===void 0?!1:v,_=e.onMounted,O=_===void 0?void 0:_,L=e.onUpdated,N=L===void 0?void 0:L,j=e.onLoad,V=j===void 0?void 0:j,P=e.props,z=P===void 0?{}:P,K=function(){},F=function(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var ne=q1(q1({},z),ee),ae=ne.name||p,ue=ne.id||y,me=ne.nonce||C;o.value=c.querySelector('style[data-primevue-style-id="'.concat(ae,'"]'))||c.getElementById(ue)||c.createElement("style"),o.value.isConnected||(r.value=U||t,Yo(o.value,{type:"text/css",id:ue,media:b,nonce:me}),k?c.head.prepend(o.value):c.head.appendChild(o.value),j1(o.value,"data-primevue-style-id",ae),Yo(o.value,ne),o.value.onload=function(Ce){return V==null?void 0:V(Ce,{name:ae})},O==null||O(ae)),!n.value&&(K=l.watch(r,function(Ce){o.value.textContent=Ce,N==null||N(ae)},{immediate:!0}),n.value=!0)}},W=function(){!c||!n.value||(K(),D1(o.value)&&c.head.removeChild(o.value),n.value=!1,o.value=null)};return d&&!f&&S9(F),{id:y,name:p,el:o,css:r,unload:W,load:F,isLoaded:l.readonly(n)}}function qi(t){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(t)}var em,tm,nm,rm;function om(t,e){return I9(t)||T9(t,e)||A9(t,e)||k9()}function k9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
201
+ `;function Xi(t){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xi(t)}function X1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?X1(Object(n),!0).forEach(function(r){b9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function b9(t,e,n){return(e=C9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C9(t){var e=E9(t,"string");return Xi(e)=="symbol"?e:e+""}function E9(t,e){if(Xi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Xi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function S9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var _9=0;function w9(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=_d()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++_9):h,m=e.id,g=m===void 0?void 0:m,y=e.media,C=y===void 0?void 0:y,E=e.nonce,b=E===void 0?void 0:E,v=e.first,k=v===void 0?!1:v,_=e.onMounted,O=_===void 0?void 0:_,L=e.onUpdated,N=L===void 0?void 0:L,j=e.onLoad,V=j===void 0?void 0:j,P=e.props,z=P===void 0?{}:P,K=function(){},F=function(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var ne=q1(q1({},z),ee),ae=ne.name||p,ue=ne.id||g,me=ne.nonce||b;o.value=c.querySelector('style[data-primevue-style-id="'.concat(ae,'"]'))||c.getElementById(ue)||c.createElement("style"),o.value.isConnected||(r.value=U||t,Yo(o.value,{type:"text/css",id:ue,media:C,nonce:me}),k?c.head.prepend(o.value):c.head.appendChild(o.value),j1(o.value,"data-primevue-style-id",ae),Yo(o.value,ne),o.value.onload=function(Ce){return V==null?void 0:V(Ce,{name:ae})},O==null||O(ae)),!n.value&&(K=l.watch(r,function(Ce){o.value.textContent=Ce,N==null||N(ae)},{immediate:!0}),n.value=!0)}},W=function(){!c||!n.value||(K(),D1(o.value)&&c.head.removeChild(o.value),n.value=!1,o.value=null)};return d&&!f&&S9(F),{id:g,name:p,el:o,css:r,unload:W,load:F,isLoaded:l.readonly(n)}}function qi(t){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qi(t)}var em,tm,nm,rm;function om(t,e){return I9(t)||T9(t,e)||A9(t,e)||k9()}function k9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
202
202
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A9(t,e){if(t){if(typeof t=="string")return im(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?im(t,e):void 0}}function im(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function T9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function I9(t){if(Array.isArray(t))return t}function sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Td(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sm(Object(n),!0).forEach(function(r){x9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function x9(t,e,n){return(e=O9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O9(t){var e=N9(t,"string");return qi(e)=="symbol"?e:e+""}function N9(t,e){if(qi(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(qi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Oa(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var M9=function(e){var n=e.dt;return`
203
203
  .p-hidden-accessible {
204
204
  border: 0;
@@ -219,7 +219,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
219
219
  padding-right: `.concat(n("scrollbar.width"),`;
220
220
  }
221
221
  `)},L9={},D9={},lr={name:"base",css:M9,style:J1,classes:L9,inlineStyles:D9,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},o=r(Ir(em||(em=Oa(["",""])),e));return ze(o)?w9(Tr(o),Td({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ve.transformCSS(n.name||e.name,"".concat(o).concat(Ir(tm||(tm=Oa(["",""])),r)))})},getCommonTheme:function(e){return Ve.getCommon(this.name,e)},getComponentTheme:function(e){return Ve.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ve.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ve.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ve.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=pt(this.css,{dt:ar})||"",o=Tr(Ir(nm||(nm=Oa(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var a=om(c,2),d=a[0],u=a[1];return s.push("".concat(d,'="').concat(u,'"'))&&s},[]).join(" ");return ze(o)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ve.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ve.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Ir(rm||(rm=Oa(["",""])),pt(this.style,{dt:ar})),s=Tr(Ve.transformCSS(o,i)),c=Object.entries(n).reduce(function(a,d){var u=om(d,2),f=u[0],h=u[1];return a.push("".concat(f,'="').concat(h,'"'))&&a},[]).join(" ");ze(s)&&r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(c,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return Td(Td({},this),{},{css:void 0,style:void 0},e)}};function P9(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=l.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var am=lr.extend({name:"common"});function es(t){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},es(t)}function B9(t){return um(t)||R9(t)||cm(t)||lm()}function R9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ts(t,e){return um(t)||$9(t,e)||cm(t,e)||lm()}function lm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
222
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cm(t,e){if(t){if(typeof t=="string")return dm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dm(t,e):void 0}}function dm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function um(t){if(Array.isArray(t))return t}function fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fm(Object(n),!0).forEach(function(r){ns(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ns(t,e,n){return(e=V9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function V9(t){var e=F9(t,"string");return es(e)=="symbol"?e:e+""}function F9(t,e){if(es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j9={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){lt.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var r=this;lt.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return r._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,r,o,i,s,c,a,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var y=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,g=y?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,b=y?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=b||g)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=P9(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Go(Ko(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=We({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){Ji.isStyleNameLoaded("base")||(lr.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ji.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ji.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(am.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ji.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);ze(e)&&lr.load(e,We({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,a=i.global,d=i.style;lr.load(s==null?void 0:s.css,We({name:"primitive-variables"},this.$styleOptions)),lr.load(c==null?void 0:c.css,We({name:"semantic-variables"},this.$styleOptions)),lr.load(a==null?void 0:a.css,We({name:"global-variables"},this.$styleOptions)),lr.loadStyle(We({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},y=m.css,g=m.style;(h=this.$style)===null||h===void 0||h.load(y,We({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(We({name:"".concat(this.$style.name,"-style")},this.$styleOptions),g),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var b,E,C=(b=this.$style)===null||b===void 0||(E=b.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(b);lr.load(C,We({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,We({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ji.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){lt.off("theme:change",this._loadCoreStyles),lt.off("theme:change",this._load),lt.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ta(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,We(We({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):We(We(We({},h),p),m):We(We({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&ze((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&We(We({},r==="root"&&We(We(ns({},"".concat(o,"name"),Pt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&ns({},"".concat(o,"extend"),Pt(this.$.type.name))),{},ns({},"".concat(this.$attrSelector),""))),{},ns({},"".concat(o,"section"),Pt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||vd(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var a,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Pt(r),h=Pt(n.$name);return(a=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&a!==void 0?a:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(y){return n(y,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):We(We({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,We(We({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=l.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,We({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,We(We({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,We(We({},this.$params),r)),i=this._getOptionValue(am.inlineStyles,e,We(We({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,We({},n.$params))||pt(r,We({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ts(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return We(We({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ts(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ts(n,2),o=r[0],i=r[1],s=o.split(":"),c=B9(s),a=c.slice(1);return a==null||a.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ts(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ts(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},z9=`
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cm(t,e){if(t){if(typeof t=="string")return dm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dm(t,e):void 0}}function dm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $9(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function um(t){if(Array.isArray(t))return t}function fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function We(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fm(Object(n),!0).forEach(function(r){ns(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ns(t,e,n){return(e=V9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function V9(t){var e=F9(t,"string");return es(e)=="symbol"?e:e+""}function F9(t,e){if(es(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j9={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){lt.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var r=this;lt.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return r._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,r,o,i,s,c,a,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=P9(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Go(Ko(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=We({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){Ji.isStyleNameLoaded("base")||(lr.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ji.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ji.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(am.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ji.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);ze(e)&&lr.load(e,We({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,a=i.global,d=i.style;lr.load(s==null?void 0:s.css,We({name:"primitive-variables"},this.$styleOptions)),lr.load(c==null?void 0:c.css,We({name:"semantic-variables"},this.$styleOptions)),lr.load(a==null?void 0:a.css,We({name:"global-variables"},this.$styleOptions)),lr.loadStyle(We({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,We({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(We({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);lr.load(b,We({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,We({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ji.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){lt.off("theme:change",this._loadCoreStyles),lt.off("theme:change",this._load),lt.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ta(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,We(We({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):We(We(We({},h),p),m):We(We({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&ze((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&We(We({},r==="root"&&We(We(ns({},"".concat(o,"name"),Pt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&ns({},"".concat(o,"extend"),Pt(this.$.type.name))),{},ns({},"".concat(this.$attrSelector),""))),{},ns({},"".concat(o,"section"),Pt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||vd(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var a,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Pt(r),h=Pt(n.$name);return(a=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&a!==void 0?a:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):We(We({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,We(We({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=l.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,We({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,We(We({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,We(We({},this.$params),r)),i=this._getOptionValue(am.inlineStyles,e,We(We({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,We({},n.$params))||pt(r,We({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ts(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return We(We({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ts(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ts(n,2),o=r[0],i=r[1],s=o.split(":"),c=B9(s),a=c.slice(1);return a==null||a.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ts(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ts(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},z9=`
223
223
  .p-icon {
224
224
  display: inline-block;
225
225
  vertical-align: baseline;
@@ -253,7 +253,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
253
253
  }
254
254
  `,U9=lr.extend({name:"baseicon",css:z9});function rs(t){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rs(t)}function hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(n),!0).forEach(function(r){H9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function H9(t,e,n){return(e=W9(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function W9(t){var e=K9(t,"string");return rs(e)=="symbol"?e:e+""}function K9(t,e){if(rs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Id={name:"BaseIcon",extends:j9,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:U9,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Tn(this.label);return pm(pm({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},mm={name:"ChevronDownIcon",extends:Id};function Y9(t){return J9(t)||Z9(t)||Q9(t)||G9()}function G9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
255
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q9(t,e){if(t){if(typeof t=="string")return xd(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xd(t,e):void 0}}function Z9(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function J9(t){if(Array.isArray(t))return xd(t)}function xd(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function X9(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Y9(e[0]||(e[0]=[l.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)])),16)}mm.render=X9;var gm={name:"SpinnerIcon",extends:Id};function q9(t){return rS(t)||nS(t)||tS(t)||eS()}function eS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
256
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tS(t,e){if(t){if(typeof t=="string")return Od(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Od(t,e):void 0}}function nS(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rS(t){if(Array.isArray(t))return Od(t)}function Od(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function oS(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),q9(e[0]||(e[0]=[l.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1)])),16)}gm.render=oS;var xr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function ym(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ym(Object(n),!0).forEach(function(r){iS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iS(t,e,n){return(e=sS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sS(t){var e=aS(t,"string");return is(e)=="symbol"?e:e+""}function aS(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var cS=0;function dS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=_d()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++cS):h,m=e.id,y=m===void 0?void 0:m,g=e.media,b=g===void 0?void 0:g,E=e.nonce,C=E===void 0?void 0:E,v=e.first,k=v===void 0?!1:v,_=e.onMounted,O=_===void 0?void 0:_,L=e.onUpdated,N=L===void 0?void 0:L,j=e.onLoad,V=j===void 0?void 0:j,P=e.props,z=P===void 0?{}:P,K=function(){},F=function(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var ne=vm(vm({},z),ee),ae=ne.name||p,ue=ne.id||y,me=ne.nonce||C;o.value=c.querySelector('style[data-primevue-style-id="'.concat(ae,'"]'))||c.getElementById(ue)||c.createElement("style"),o.value.isConnected||(r.value=U||t,Yo(o.value,{type:"text/css",id:ue,media:b,nonce:me}),k?c.head.prepend(o.value):c.head.appendChild(o.value),j1(o.value,"data-primevue-style-id",ae),Yo(o.value,ne),o.value.onload=function(Ce){return V==null?void 0:V(Ce,{name:ae})},O==null||O(ae)),!n.value&&(K=l.watch(r,function(Ce){o.value.textContent=Ce,N==null||N(ae)},{immediate:!0}),n.value=!0)}},W=function(){!c||!n.value||(K(),D1(o.value)&&c.head.removeChild(o.value),n.value=!1,o.value=null)};return d&&!f&&lS(F),{id:y,name:p,el:o,css:r,unload:W,load:F,isLoaded:l.readonly(n)}}function ss(t){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(t)}var bm,Cm,Em,Sm;function _m(t,e){return pS(t)||hS(t,e)||fS(t,e)||uS()}function uS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tS(t,e){if(t){if(typeof t=="string")return Od(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Od(t,e):void 0}}function nS(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rS(t){if(Array.isArray(t))return Od(t)}function Od(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function oS(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),q9(e[0]||(e[0]=[l.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1)])),16)}gm.render=oS;var xr={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function ym(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function vm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ym(Object(n),!0).forEach(function(r){iS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iS(t,e,n){return(e=sS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sS(t){var e=aS(t,"string");return is(e)=="symbol"?e:e+""}function aS(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()&&l.getCurrentInstance().components?l.onMounted(t):e?t():l.nextTick(t)}var cS=0;function dS(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=_d()?window.document:void 0,s=e.document,c=s===void 0?i:s,a=e.immediate,d=a===void 0?!0:a,u=e.manual,f=u===void 0?!1:u,h=e.name,p=h===void 0?"style_".concat(++cS):h,m=e.id,g=m===void 0?void 0:m,y=e.media,C=y===void 0?void 0:y,E=e.nonce,b=E===void 0?void 0:E,v=e.first,k=v===void 0?!1:v,_=e.onMounted,O=_===void 0?void 0:_,L=e.onUpdated,N=L===void 0?void 0:L,j=e.onLoad,V=j===void 0?void 0:j,P=e.props,z=P===void 0?{}:P,K=function(){},F=function(U){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var ne=vm(vm({},z),ee),ae=ne.name||p,ue=ne.id||g,me=ne.nonce||b;o.value=c.querySelector('style[data-primevue-style-id="'.concat(ae,'"]'))||c.getElementById(ue)||c.createElement("style"),o.value.isConnected||(r.value=U||t,Yo(o.value,{type:"text/css",id:ue,media:C,nonce:me}),k?c.head.prepend(o.value):c.head.appendChild(o.value),j1(o.value,"data-primevue-style-id",ae),Yo(o.value,ne),o.value.onload=function(Ce){return V==null?void 0:V(Ce,{name:ae})},O==null||O(ae)),!n.value&&(K=l.watch(r,function(Ce){o.value.textContent=Ce,N==null||N(ae)},{immediate:!0}),n.value=!0)}},W=function(){!c||!n.value||(K(),D1(o.value)&&c.head.removeChild(o.value),n.value=!1,o.value=null)};return d&&!f&&lS(F),{id:g,name:p,el:o,css:r,unload:W,load:F,isLoaded:l.readonly(n)}}function ss(t){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(t)}var bm,Cm,Em,Sm;function _m(t,e){return pS(t)||hS(t,e)||fS(t,e)||uS()}function uS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
257
257
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fS(t,e){if(t){if(typeof t=="string")return wm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wm(t,e):void 0}}function wm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function pS(t){if(Array.isArray(t))return t}function km(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Nd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?km(Object(n),!0).forEach(function(r){mS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mS(t,e,n){return(e=gS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gS(t){var e=yS(t,"string");return ss(e)=="symbol"?e:e+""}function yS(t,e){if(ss(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Na(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var vS=function(e){var n=e.dt;return`
258
258
  .p-hidden-accessible {
259
259
  border: 0;
@@ -274,7 +274,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
274
274
  padding-right: `.concat(n("scrollbar.width"),`;
275
275
  }
276
276
  `)},bS={},CS={},mt={name:"base",css:vS,style:J1,classes:bS,inlineStyles:CS,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},o=r(Ir(bm||(bm=Na(["",""])),e));return ze(o)?dS(Tr(o),Nd({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ve.transformCSS(n.name||e.name,"".concat(o).concat(Ir(Cm||(Cm=Na(["",""])),r)))})},getCommonTheme:function(e){return Ve.getCommon(this.name,e)},getComponentTheme:function(e){return Ve.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ve.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ve.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ve.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=pt(this.css,{dt:ar})||"",o=Tr(Ir(Em||(Em=Na(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var a=_m(c,2),d=a[0],u=a[1];return s.push("".concat(d,'="').concat(u,'"'))&&s},[]).join(" ");return ze(o)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ve.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ve.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Ir(Sm||(Sm=Na(["",""])),pt(this.style,{dt:ar})),s=Tr(Ve.transformCSS(o,i)),c=Object.entries(n).reduce(function(a,d){var u=_m(d,2),f=u[0],h=u[1];return a.push("".concat(f,'="').concat(h,'"'))&&a},[]).join(" ");ze(s)&&r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(c,">").concat(s,"</style>"))}return r.join("")},extend:function(e){return Nd(Nd({},this),{},{css:void 0,style:void 0},e)}};function ES(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=l.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Am=mt.extend({name:"common"});function as(t){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(t)}function SS(t){return Om(t)||_S(t)||Im(t)||Tm()}function _S(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ls(t,e){return Om(t)||wS(t,e)||Im(t,e)||Tm()}function Tm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
277
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Im(t,e){if(t){if(typeof t=="string")return xm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xm(t,e):void 0}}function xm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function wS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function Om(t){if(Array.isArray(t))return t}function Nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(n),!0).forEach(function(r){cs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cs(t,e,n){return(e=kS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kS(t){var e=AS(t,"string");return as(e)=="symbol"?e:e+""}function AS(t,e){if(as(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ds={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){lt.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var r=this;lt.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return r._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,r,o,i,s,c,a,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var y=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,g=y?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,b=y?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=b||g)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=ES(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Go(Ko(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ke({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){xr.isStyleNameLoaded("base")||(mt.loadCSS(this.$styleOptions),this._loadGlobalStyles(),xr.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!xr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Am.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),xr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);ze(e)&&mt.load(e,Ke({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,a=i.global,d=i.style;mt.load(s==null?void 0:s.css,Ke({name:"primitive-variables"},this.$styleOptions)),mt.load(c==null?void 0:c.css,Ke({name:"semantic-variables"},this.$styleOptions)),mt.load(a==null?void 0:a.css,Ke({name:"global-variables"},this.$styleOptions)),mt.loadStyle(Ke({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},y=m.css,g=m.style;(h=this.$style)===null||h===void 0||h.load(y,Ke({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ke({name:"".concat(this.$style.name,"-style")},this.$styleOptions),g),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var b,E,C=(b=this.$style)===null||b===void 0||(E=b.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(b);mt.load(C,Ke({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ke({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};xr.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){lt.off("theme:change",this._loadCoreStyles),lt.off("theme:change",this._load),lt.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ta(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ke(Ke({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ke(Ke(Ke({},h),p),m):Ke(Ke({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&ze((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ke(Ke({},r==="root"&&Ke(Ke(cs({},"".concat(o,"name"),Pt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&cs({},"".concat(o,"extend"),Pt(this.$.type.name))),{},cs({},"".concat(this.$attrSelector),""))),{},cs({},"".concat(o,"section"),Pt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||vd(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var a,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Pt(r),h=Pt(n.$name);return(a=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&a!==void 0?a:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(y){return n(y,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ke(Ke({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Ke(Ke({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=l.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ke({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Ke(Ke({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,Ke(Ke({},this.$params),r)),i=this._getOptionValue(Am.inlineStyles,e,Ke(Ke({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Ke({},n.$params))||pt(r,Ke({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ls(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ke(Ke({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ls(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ls(n,2),o=r[0],i=r[1],s=o.split(":"),c=SS(s),a=c.slice(1);return a==null||a.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ls(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ls(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},TS=`
277
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Im(t,e){if(t){if(typeof t=="string")return xm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xm(t,e):void 0}}function xm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function wS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function Om(t){if(Array.isArray(t))return t}function Nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Nm(Object(n),!0).forEach(function(r){cs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cs(t,e,n){return(e=kS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kS(t){var e=AS(t,"string");return as(e)=="symbol"?e:e+""}function AS(t,e){if(as(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ds={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){lt.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var r=this;lt.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return r._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,r,o,i,s,c,a,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=ES(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Go(Ko(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ke({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){xr.isStyleNameLoaded("base")||(mt.loadCSS(this.$styleOptions),this._loadGlobalStyles(),xr.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!xr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Am.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),xr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);ze(e)&&mt.load(e,Ke({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,a=i.global,d=i.style;mt.load(s==null?void 0:s.css,Ke({name:"primitive-variables"},this.$styleOptions)),mt.load(c==null?void 0:c.css,Ke({name:"semantic-variables"},this.$styleOptions)),mt.load(a==null?void 0:a.css,Ke({name:"global-variables"},this.$styleOptions)),mt.loadStyle(Ke({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ke({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ke({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);mt.load(b,Ke({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ke({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};xr.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){lt.off("theme:change",this._loadCoreStyles),lt.off("theme:change",this._load),lt.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ta(e,n,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ke(Ke({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ke(Ke(Ke({},h),p),m):Ke(Ke({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&ze((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ke(Ke({},r==="root"&&Ke(Ke(cs({},"".concat(o,"name"),Pt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&cs({},"".concat(o,"extend"),Pt(this.$.type.name))),{},cs({},"".concat(this.$attrSelector),""))),{},cs({},"".concat(o,"section"),Pt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||vd(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var a,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Pt(r),h=Pt(n.$name);return(a=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&a!==void 0?a:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},a=c.mergeSections,d=a===void 0?!0:a,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ke(Ke({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Ke(Ke({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=l.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ke({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Ke(Ke({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,Ke(Ke({},this.$params),r)),i=this._getOptionValue(Am.inlineStyles,e,Ke(Ke({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Ke({},n.$params))||pt(r,Ke({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ls(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ke(Ke({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ls(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ls(n,2),o=r[0],i=r[1],s=o.split(":"),c=SS(s),a=c.slice(1);return a==null||a.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ls(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ls(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},TS=`
278
278
  .p-badge {
279
279
  display: inline-flex;
280
280
  border-radius: dt('badge.border.radius');
@@ -350,7 +350,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
350
350
  height: dt('badge.xl.height');
351
351
  }
352
352
  `,IS={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-circle":ze(n.value)&&String(n.value).length===1,"p-badge-dot":Tn(n.value)&&!r.$slots.default,"p-badge-sm":n.size==="small","p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warn":n.severity==="warn","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},xS=mt.extend({name:"badge",style:TS,classes:IS}),OS={name:"BaseBadge",extends:ds,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:xS,provide:function(){return{$pcBadge:this,$parentInstance:this}}};function us(t){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(t)}function Mm(t,e,n){return(e=NS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NS(t){var e=MS(t,"string");return us(e)=="symbol"?e:e+""}function MS(t,e){if(us(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Lm={name:"Badge",extends:OS,inheritAttrs:!1,computed:{dataP:function(){return Gi(Mm(Mm({circle:this.value!=null&&String(this.value).length===1,empty:this.value==null&&!this.$slots.default},this.severity,this.severity),this.size,this.size))}}},LS=["data-p"];function DS(t,e,n,r,o,i){return l.openBlock(),l.createElementBlock("span",l.mergeProps({class:t.cx("root"),"data-p":i.dataP},t.ptmi("root")),[l.renderSlot(t.$slots,"default",{},function(){return[l.createTextVNode(l.toDisplayString(t.value),1)]})],16,LS)}Lm.render=DS;var Ma=bd();function fs(t){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fs(t)}function Dm(t,e){return $S(t)||RS(t,e)||BS(t,e)||PS()}function PS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
353
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BS(t,e){if(t){if(typeof t=="string")return Pm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pm(t,e):void 0}}function Pm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function RS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function $S(t){if(Array.isArray(t))return t}function Bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bm(Object(n),!0).forEach(function(r){Md(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Md(t,e,n){return(e=VS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VS(t){var e=FS(t,"string");return fs(e)=="symbol"?e:e+""}function FS(t,e){if(fs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fe={_getMeta:function(){return[Ar(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],pt(Ar(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:Ta,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=function(){var E=Fe._getOptionValue.apply(Fe,arguments);return St(E)||vd(E)?{class:E}:E},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},u=d.mergeSections,f=u===void 0?!0:u,h=d.mergeProps,p=h===void 0?!1:h,m=c?Fe._useDefaultPT(r,r.defaultPT(),a,i,s):void 0,y=Fe._usePT(r,Fe._getPT(o,r.$name),a,i,Je(Je({},s),{},{global:m||{}})),g=Fe._getPTDatasets(r,i);return f||!f&&y?p?Fe._mergeProps(r,p,m,y,g):Je(Je(Je({},m),y),g):Je(Je({},y),g)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Je(Je({},n==="root"&&Md({},"".concat(r,"name"),Pt(e.$name))),{},Md({},"".concat(r,"section"),Pt(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var c,a=r?r(s):s,d=Pt(n);return(c=a==null?void 0:a[d])!==null&&c!==void 0?c:a};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(g){return r(g,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,a=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},d=a.mergeSections,u=d===void 0?!0:d,f=a.mergeProps,h=f===void 0?!1:f,p=s(n.originalValue),m=s(n.value);return p===void 0&&m===void 0?void 0:St(m)?m:St(p)?p:u||!u&&m?h?Fe._mergeProps(e,h,p,m):Je(Je({},p),m):m}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Fe._usePT(e,n,r,o,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=Fe._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};Fe._loadCoreStyles(n,s),Fe._loadThemeStyles(n,s),Fe._loadScopedThemeStyles(n,s),Fe._removeThemeListeners(n),n.$loadStyles=function(){return Fe._loadThemeStyles(n,s)},Fe._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!xr.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;mt.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),xr.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled()||(o==null||(e=o.theme)===null||e===void 0?void 0:e.call(o))==="none")){if(!Ve.isStyleNameLoaded("common")){var s,c,a=((s=o.$style)===null||s===void 0||(c=s.getCommonTheme)===null||c===void 0?void 0:c.call(s))||{},d=a.primitive,u=a.semantic,f=a.global,h=a.style;mt.load(d==null?void 0:d.css,Je({name:"primitive-variables"},i)),mt.load(u==null?void 0:u.css,Je({name:"semantic-variables"},i)),mt.load(f==null?void 0:f.css,Je({name:"global-variables"},i)),mt.loadStyle(Je({name:"global-style"},i),h),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((n=o.$style)===null||n===void 0?void 0:n.name)&&(r=o.$style)!==null&&r!==void 0&&r.name){var p,m,y,g,b=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},E=b.css,C=b.style;(y=o.$style)===null||y===void 0||y.load(E,Je({name:"".concat(o.$style.name,"-variables")},i)),(g=o.$style)===null||g===void 0||g.loadStyle(Je({name:"".concat(o.$style.name,"-style")},i),C),Ve.setLoadedStyleName(o.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var v,k,_=(v=o.$style)===null||v===void 0||(k=v.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(v);mt.load(_,Je({name:"layer-order",first:!0},i)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,c=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},a=c.css,d=(s=e.$style)===null||s===void 0?void 0:s.load(a,Je({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};xr.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lt.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,r,o,i,s){var c,a,d="on".concat(KE(n)),u=Fe._getConfig(o,i),f=r==null?void 0:r.$instance,h=Fe._usePT(f,Fe._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),Fe._getOptionValue,"hooks.".concat(d)),p=Fe._useDefaultPT(f,u==null||(a=u.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],Fe._getOptionValue,"hooks.".concat(d)),m={el:r,binding:o,vnode:i,prevVnode:s};h==null||h(f,m),p==null||p(f,m)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(c,a,d,u,f){var h,p,m,y;a._$instances=a._$instances||{};var g=Fe._getConfig(d,u),b=a._$instances[e]||{},E=Tn(b)?Je(Je({},n),n==null?void 0:n.methods):{};a._$instances[e]=Je(Je({},b),{},{$name:e,$host:a,$binding:d,$modifiers:d==null?void 0:d.modifiers,$value:d==null?void 0:d.value,$el:b.$el||a||void 0,$style:Je({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n==null?void 0:n.style),$primevueConfig:g,$attrSelector:(h=a.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return Fe._getPT(g==null?void 0:g.pt,void 0,function(v){var k;return v==null||(k=v.directives)===null||k===void 0?void 0:k[e]})},isUnstyled:function(){var v,k;return((v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(k=a._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled:g==null?void 0:g.unstyled},theme:function(){var v;return(v=a._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fe._getPTValue(a._$instances[e],(v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,k,Je({},_))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Fe._getPTValue(a._$instances[e],v,k,_,!1)},cx:function(){var v,k,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=a._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:Fe._getOptionValue((k=a._$instances[e])===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.classes,_,Je({},O))},sx:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?Fe._getOptionValue((v=a._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,k,Je({},O)):void 0}},E),a.$instance=a._$instances[e],(p=(m=a.$instance)[c])===null||p===void 0||p.call(m,a,d,u,f),a["$".concat(e)]=a.$instance,Fe._hook(e,c,a,d,u,f),a.$pd||(a.$pd={}),a.$pd[e]=Je(Je({},(y=a.$pd)===null||y===void 0?void 0:y[e]),{},{name:e,instance:a._$instances[e]})},o=function(c){var a,d,u,f=c._$instances[e],h=f==null?void 0:f.watch,p=function(g){var b,E=g.newValue,C=g.oldValue;return h==null||(b=h.config)===null||b===void 0?void 0:b.call(f,E,C)},m=function(g){var b,E=g.newValue,C=g.oldValue;return h==null||(b=h["config.ripple"])===null||b===void 0?void 0:b.call(f,E,C)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(a=h.config)===null||a===void 0||a.call(f,f==null?void 0:f.$primevueConfig),Ma.on("config:change",p),h==null||(d=h["config.ripple"])===null||d===void 0||d.call(f,f==null||(u=f.$primevueConfig)===null||u===void 0?void 0:u.ripple),Ma.on("config:ripple:change",m)},i=function(c){var a=c._$instances[e].$watchersCallback;a&&(Ma.off("config:change",a.config),Ma.off("config:ripple:change",a["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,a,d,u){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:a9("pd")},r("created",c,a,d,u)},beforeMount:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("beforeMount",c,a,d,u),o(c)},mounted:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("mounted",c,a,d,u)},beforeUpdate:function(c,a,d,u){r("beforeUpdate",c,a,d,u)},updated:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("updated",c,a,d,u)},beforeUnmount:function(c,a,d,u){var f;i(c),Fe._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,a,d,u)},unmounted:function(c,a,d,u){var f;(f=c.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",c,a,d,u)}}},extend:function(){var e=Fe._getMeta.apply(Fe,arguments),n=Dm(e,2),r=n[0],o=n[1];return Je({extend:function(){var s=Fe._getMeta.apply(Fe,arguments),c=Dm(s,2),a=c[0],d=c[1];return Fe.extend(a,Je(Je(Je({},o),o==null?void 0:o.methods),d))}},Fe._extend(r,o))}},jS=`
353
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BS(t,e){if(t){if(typeof t=="string")return Pm(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pm(t,e):void 0}}function Pm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function RS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],a=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(u){d=!0,o=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function $S(t){if(Array.isArray(t))return t}function Bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bm(Object(n),!0).forEach(function(r){Md(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Md(t,e,n){return(e=VS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VS(t){var e=FS(t,"string");return fs(e)=="symbol"?e:e+""}function FS(t,e){if(fs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fe={_getMeta:function(){return[Ar(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],pt(Ar(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:Ta,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=function(){var E=Fe._getOptionValue.apply(Fe,arguments);return St(E)||vd(E)?{class:E}:E},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},u=d.mergeSections,f=u===void 0?!0:u,h=d.mergeProps,p=h===void 0?!1:h,m=c?Fe._useDefaultPT(r,r.defaultPT(),a,i,s):void 0,g=Fe._usePT(r,Fe._getPT(o,r.$name),a,i,Je(Je({},s),{},{global:m||{}})),y=Fe._getPTDatasets(r,i);return f||!f&&g?p?Fe._mergeProps(r,p,m,g,y):Je(Je(Je({},m),g),y):Je(Je({},g),y)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Je(Je({},n==="root"&&Md({},"".concat(r,"name"),Pt(e.$name))),{},Md({},"".concat(r,"section"),Pt(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var c,a=r?r(s):s,d=Pt(n);return(c=a==null?void 0:a[d])!==null&&c!==void 0?c:a};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(y){return r(y,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,a=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},d=a.mergeSections,u=d===void 0?!0:d,f=a.mergeProps,h=f===void 0?!1:f,p=s(n.originalValue),m=s(n.value);return p===void 0&&m===void 0?void 0:St(m)?m:St(p)?p:u||!u&&m?h?Fe._mergeProps(e,h,p,m):Je(Je({},p),m):m}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Fe._usePT(e,n,r,o,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=Fe._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};Fe._loadCoreStyles(n,s),Fe._loadThemeStyles(n,s),Fe._loadScopedThemeStyles(n,s),Fe._removeThemeListeners(n),n.$loadStyles=function(){return Fe._loadThemeStyles(n,s)},Fe._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!xr.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;mt.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),xr.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled()||(o==null||(e=o.theme)===null||e===void 0?void 0:e.call(o))==="none")){if(!Ve.isStyleNameLoaded("common")){var s,c,a=((s=o.$style)===null||s===void 0||(c=s.getCommonTheme)===null||c===void 0?void 0:c.call(s))||{},d=a.primitive,u=a.semantic,f=a.global,h=a.style;mt.load(d==null?void 0:d.css,Je({name:"primitive-variables"},i)),mt.load(u==null?void 0:u.css,Je({name:"semantic-variables"},i)),mt.load(f==null?void 0:f.css,Je({name:"global-variables"},i)),mt.loadStyle(Je({name:"global-style"},i),h),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((n=o.$style)===null||n===void 0?void 0:n.name)&&(r=o.$style)!==null&&r!==void 0&&r.name){var p,m,g,y,C=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},E=C.css,b=C.style;(g=o.$style)===null||g===void 0||g.load(E,Je({name:"".concat(o.$style.name,"-variables")},i)),(y=o.$style)===null||y===void 0||y.loadStyle(Je({name:"".concat(o.$style.name,"-style")},i),b),Ve.setLoadedStyleName(o.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var v,k,_=(v=o.$style)===null||v===void 0||(k=v.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(v);mt.load(_,Je({name:"layer-order",first:!0},i)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,c=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},a=c.css,d=(s=e.$style)===null||s===void 0?void 0:s.load(a,Je({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};xr.clearLoadedStyleNames(),lt.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lt.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,r,o,i,s){var c,a,d="on".concat(KE(n)),u=Fe._getConfig(o,i),f=r==null?void 0:r.$instance,h=Fe._usePT(f,Fe._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),Fe._getOptionValue,"hooks.".concat(d)),p=Fe._useDefaultPT(f,u==null||(a=u.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],Fe._getOptionValue,"hooks.".concat(d)),m={el:r,binding:o,vnode:i,prevVnode:s};h==null||h(f,m),p==null||p(f,m)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Aa(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(c,a,d,u,f){var h,p,m,g;a._$instances=a._$instances||{};var y=Fe._getConfig(d,u),C=a._$instances[e]||{},E=Tn(C)?Je(Je({},n),n==null?void 0:n.methods):{};a._$instances[e]=Je(Je({},C),{},{$name:e,$host:a,$binding:d,$modifiers:d==null?void 0:d.modifiers,$value:d==null?void 0:d.value,$el:C.$el||a||void 0,$style:Je({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n==null?void 0:n.style),$primevueConfig:y,$attrSelector:(h=a.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return Fe._getPT(y==null?void 0:y.pt,void 0,function(v){var k;return v==null||(k=v.directives)===null||k===void 0?void 0:k[e]})},isUnstyled:function(){var v,k;return((v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(k=a._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled:y==null?void 0:y.unstyled},theme:function(){var v;return(v=a._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fe._getPTValue(a._$instances[e],(v=a._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,k,Je({},_))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Fe._getPTValue(a._$instances[e],v,k,_,!1)},cx:function(){var v,k,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=a._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:Fe._getOptionValue((k=a._$instances[e])===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.classes,_,Je({},O))},sx:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?Fe._getOptionValue((v=a._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,k,Je({},O)):void 0}},E),a.$instance=a._$instances[e],(p=(m=a.$instance)[c])===null||p===void 0||p.call(m,a,d,u,f),a["$".concat(e)]=a.$instance,Fe._hook(e,c,a,d,u,f),a.$pd||(a.$pd={}),a.$pd[e]=Je(Je({},(g=a.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:a._$instances[e]})},o=function(c){var a,d,u,f=c._$instances[e],h=f==null?void 0:f.watch,p=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h.config)===null||C===void 0?void 0:C.call(f,E,b)},m=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h["config.ripple"])===null||C===void 0?void 0:C.call(f,E,b)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(a=h.config)===null||a===void 0||a.call(f,f==null?void 0:f.$primevueConfig),Ma.on("config:change",p),h==null||(d=h["config.ripple"])===null||d===void 0||d.call(f,f==null||(u=f.$primevueConfig)===null||u===void 0?void 0:u.ripple),Ma.on("config:ripple:change",m)},i=function(c){var a=c._$instances[e].$watchersCallback;a&&(Ma.off("config:change",a.config),Ma.off("config:ripple:change",a["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,a,d,u){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:a9("pd")},r("created",c,a,d,u)},beforeMount:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("beforeMount",c,a,d,u),o(c)},mounted:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("mounted",c,a,d,u)},beforeUpdate:function(c,a,d,u){r("beforeUpdate",c,a,d,u)},updated:function(c,a,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,d),r("updated",c,a,d,u)},beforeUnmount:function(c,a,d,u){var f;i(c),Fe._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,a,d,u)},unmounted:function(c,a,d,u){var f;(f=c.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",c,a,d,u)}}},extend:function(){var e=Fe._getMeta.apply(Fe,arguments),n=Dm(e,2),r=n[0],o=n[1];return Je({extend:function(){var s=Fe._getMeta.apply(Fe,arguments),c=Dm(s,2),a=c[0],d=c[1];return Fe.extend(a,Je(Je(Je({},o),o==null?void 0:o.methods),d))}},Fe._extend(r,o))}},jS=`
354
354
  .p-ink {
355
355
  display: block;
356
356
  position: absolute;
@@ -1226,25 +1226,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1226
1226
  .p-splitbutton-raised {
1227
1227
  box-shadow: dt('splitbutton.raised.shadow');
1228
1228
  }
1229
- `,$_={root:function(e){var n=e.instance,r=e.props;return["p-splitbutton p-component",{"p-splitbutton-raised":r.raised,"p-splitbutton-rounded":r.rounded,"p-splitbutton-fluid":n.hasFluid}]},pcButton:"p-splitbutton-button",pcDropdown:"p-splitbutton-dropdown"},V_=mt.extend({name:"splitbutton",style:R_,classes:$_}),F_={name:"BaseSplitButton",extends:ds,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:V_,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Hm={name:"SplitButton",extends:F_,inheritAttrs:!1,emits:["click"],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch("$refs.menu.visible",function(n){e.isExpanded=n})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code==="ArrowDown"||e.code==="ArrowUp")&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit("click",e)}},computed:{containerClass:function(){return[this.cx("root"),this.class]},hasFluid:function(){return Tn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Vm,PVSMenu:Um,ChevronDownIcon:mm}},j_=["data-p-severity"];function z_(t,e,n,r,o,i){var s=l.resolveComponent("PVSButton"),c=l.resolveComponent("PVSMenu");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[l.createVNode(s,l.mergeProps({type:"button",class:t.cx("pcButton"),label:t.label,disabled:t.disabled,severity:t.severity,text:t.text,icon:t.icon,outlined:t.outlined,size:t.size,fluid:t.fluid,"aria-label":t.label,onClick:i.onDefaultButtonClick},t.buttonProps,{pt:t.ptm("pcButton"),unstyled:t.unstyled}),l.createSlots({default:l.withCtx(function(){return[l.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"icon",{class:l.normalizeClass(a.class)},function(){return[l.createElementVNode("span",l.mergeProps({class:[t.icon,a.class]},t.ptm("pcButton").icon,{"data-pc-section":"buttonicon"}),null,16)]})]}),key:"0"}:void 0]),1040,["class","label","disabled","severity","text","icon","outlined","size","fluid","aria-label","onClick","pt","unstyled"]),l.createVNode(s,l.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":t.$id+"_overlay",onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:l.withCtx(function(a){return[l.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:l.normalizeClass(a.class)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),l.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,a.class]},t.ptm("pcDropdown").icon,{"data-pc-section":"menubuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-expanded","aria-controls","onClick","onKeydown","severity","text","outlined","size","unstyled","pt"]),l.createVNode(c,{ref:"menu",id:t.$id+"_overlay",model:t.model,popup:!0,autoZIndex:t.autoZIndex,baseZIndex:t.baseZIndex,appendTo:t.appendTo,unstyled:t.unstyled,pt:t.ptm("pcMenu")},l.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"menuitemicon",{item:a.item,class:l.normalizeClass(a.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"item",{item:a.item,hasSubmenu:a.hasSubmenu,label:a.label,props:a.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,j_)}Hm.render=z_;const ZF="",U_=["src"],H_={class:"menu-item"},W_=["src"],Wm=Ee({__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const n=t,{t:r}=An(),o=l.computed(()=>n.contentLibraryProviders.map(d=>({label:d.label,image:d.img,value:d.value,command:()=>e("content-library",d.value)}))),i=l.computed(()=>{let d=o.value;return d.length!==0&&n.isExternalOnly&&(d=d.slice(1)),d}),s=l.computed(()=>{const d=o.value;return n.isExternalOnly&&d.length>0?d[0].label:r("contentLibrarySplitButton.messageTemplatesTitle")}),c=l.computed(()=>{const d=o.value;return n.isExternalOnly&&d.length>0?d[0].image:"/Portaal/Zorgverlener/assets/icons/icon-comment.svg"}),a=()=>{const d=o.value;let u="message-template";n.isExternalOnly&&d.length>0&&(u=d[0].value),e("content-library",u)};return(d,u)=>(l.openBlock(),l.createBlock(l.unref(Hm),{model:i.value,outlined:"",severity:"secondary",onClick:a},{default:l.withCtx(()=>[l.createElementVNode("img",{src:c.value,alt:""},null,8,U_),l.createElementVNode("span",null,l.toDisplayString(s.value),1)]),item:l.withCtx(({item:f})=>[l.createElementVNode("div",H_,[l.createElementVNode("img",{src:f.image,alt:"",class:"icon-image"},null,8,W_),l.createElementVNode("span",null,l.toDisplayString(f.label),1)])]),_:1},8,["model"]))}},[["__scopeId","data-v-44f01785"]]),K_={class:"invalid-feedback bd-invalid-feedback"},La=l.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(l.openBlock(),l.createElementBlock("div",K_,[e.state?(l.openBlock(),l.createBlock(l.unref($o),{key:0})):(l.openBlock(),l.createBlock(l.unref(la),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var Y_=Object.defineProperty,G_=(t,e,n)=>e in t?Y_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ys=(t,e,n)=>(G_(t,typeof e!="symbol"?e+"":e,n),n);const Km={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class Ym{constructor(e={}){ys(this,"opts",{}),ys(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Km,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Km;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=n.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(n==null)return e;const o=`value=${e},mask=${n},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],a=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>g>-1&&b>-1:()=>g<i.length&&b<e.length,p=C=>!this.isReversed()&&C<=f||this.isReversed()&&C>=f;let m,y=-1,g=this.isReversed()?i.length-1:0,b=this.isReversed()?e.length-1:0,E=!1;for(;h();){const C=i.charAt(g),v=a[C],k=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(b)):e.charAt(b);if(!s.includes(g)&&v!=null?(k.match(v.pattern)!=null?(c[u](k),v.repeated?(y===-1?y=g:g===f&&g!==y&&(g=y-d),f===y&&(g-=d)):v.multiple&&(E=!0,g-=d),g+=d):v.multiple?E&&(g+=d,b-=d,E=!1):k===m?m=void 0:v.optional&&(g+=d,b-=d),b+=d):(r&&!this.isEager()&&c[u](C),k===C&&!this.isEager()?b+=d:m=C,this.isEager()||(g+=d)),this.isEager())for(;p(g)&&(a[i.charAt(g)]==null||s.includes(g));)r?c[u](i.charAt(g)):i.charAt(g)===e.charAt(b)&&(b+=d),g+=d}return this.memo.set(o,c.join("")),this.memo.get(o)}}const Gm=t=>JSON.parse(t.replaceAll("'",'"')),Qm=(t,e={})=>{const n={...e};return t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Q_(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Pd(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Pd(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Pd(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Z_(t.dataset.maskaTokens)),n},Pd=t=>t!==""?!!JSON.parse(t):!0,Q_=t=>t.startsWith("[")&&t.endsWith("]")?Gm(t):t,Z_=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Gm(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class J_{constructor(e,n={}){ys(this,"items",new Map),ys(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),ys(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,c=o.selectionStart,a=o.selectionEnd;let d=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?d=r.data:f!==i.unmasked(u)&&(d=f)}if(this.setMaskedValue(o,d),"inputType"in r&&(r.inputType.startsWith("delete")||c!=null&&c<s.length))try{o.setSelectionRange(c,a)}catch{}}),this.options=n,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(n)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(n))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,n){const r=this.items.get(e),o=new Ym(Qm(e,this.getMaskOpts(n)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const n=e.dataset.maskaValue;return n==null&&e.value!==""||n!=null&&n!==e.value}getMaskOpts(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}init(e,n){for(const r of e){const o=new Ym(Qm(r,n));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,n){const r=this.items.get(e);this.options.preProcess!=null&&(n=this.options.preProcess(n));const o=r.masked(n),i=r.unmasked(r.isEager()?o:n),s=r.completed(n),c={masked:o,unmasked:i,completed:s};n=o,this.options.postProcess!=null&&(n=this.options.postProcess(n)),e.value=n,e.dataset.maskaValue=n,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(c)):this.options.onMaska(c)),e.dispatchEvent(new CustomEvent("maska",{detail:c})),e.dispatchEvent(new CustomEvent("input",{detail:c}))}}const Bd=new WeakMap,X_=t=>{setTimeout(()=>{var e;((e=Bd.get(t))==null?void 0:e.needUpdateValue(t))===!0&&t.dispatchEvent(new CustomEvent("input"))})},q_=(t,e)=>{const n=t instanceof HTMLInputElement?t:t.querySelector("input"),r={...e.arg};if(n==null||(n==null?void 0:n.type)==="file")return;X_(n);const o=Bd.get(n);if(o!=null){if(!o.needUpdateOptions(n,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=c=>{i.masked=c.masked,i.unmasked=c.unmasked,i.completed=c.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Bd.set(n,new J_(n,r))},ew=["value","type"],Or=l.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:Mt.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=io(n,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,c=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${n.label?n.label.replace(/ /g,""):r.value}`,d=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),u=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),f=l.computed(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?a:null,"data-maska":n.mask})),h=k6(p=>{o.value=p.target.value},n.delayTimeMs);return(p,m)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[l.renderSlot(p.$slots,"label",{},()=>[p.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:c,id:i,class:l.normalizeClass(["form-label",p.labelClass])},l.toDisplayString(p.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(p.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:p.modelValue,type:p.type,id:c,class:["form-control",d.value]},f.value,{onInput:m[0]||(m[0]=(...y)=>l.unref(h)&&l.unref(h)(...y)),onClick:m[1]||(m[1]=y=>p.$emit("click")),onBlur:m[2]||(m[2]=y=>p.$emit("blur")),onKeydown:m[3]||(m[3]=l.withKeys(y=>p.$emit("enter"),["enter"]))}),null,16,ew),[[l.unref(q_)]]),l.renderSlot(p.$slots,"default")],2),l.createVNode(La,{text:p.invalidFeedbackText,class:l.normalizeClass(u.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),tw={class:"input-group bd-input-group"},nw=["for"],Rd=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=t,n=l.useAttrs();return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",tw,[e.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},l.toDisplayString(e.label),9,nw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(n).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),rw={key:0},ow={key:1},Zm=l.defineComponent({__name:"BDBadge",props:{variant:{default:ua.PRIMARY}},setup(t){const e=t,n=l.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("span",{role:"status",class:l.normalizeClass(n.value)},[r.variant==="danger"?(l.openBlock(),l.createElementBlock("span",rw,[l.createVNode(l.unref(oo))])):l.createCommentVNode("",!0),r.variant==="success"?(l.openBlock(),l.createElementBlock("span",ow,[l.createVNode(l.unref($o))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),iw=["onSubmit","onReset"],Jm=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){function n(){e("submit")}function r(){e("reset")}return(o,i)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(n,["prevent"]),onReset:l.withModifiers(r,["prevent"])},[l.renderSlot(o.$slots,"default")],40,iw))}}),sw={"aria-label":"Page navigation",class:"bd-pagination"},aw={class:"page-item"},lw=["data-page"],cw=["data-page"],dw={class:"page-item"},uw=["data-page"],$d=l.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e),o=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),i=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{o.value=Math.ceil(n.totalRows/n.rowsPerPage),i.value=u(r.value)}),l.onMounted(()=>{i.value=u(r.value)});const s=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,i.value=u(p)),e("click",p)},a=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,d=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,u=f=>{const h=[],m=a(f,7,o.value),y=o.value>7&&f>4,g=o.value>7&&f<o.value-3,b=y&&g,E=d(f,7,o.value);for(let C=1;C<=m;C++)h.push(C);if(y&&h.push("..."),b)for(let C=f-1;C<=f+1;C++)h.push(C);g&&h.push("...");for(let C=1;C<=E;C++)h.push(o.value-E+C);return h};return(f,h)=>(l.openBlock(),l.createElementBlock("div",sw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",s.value])},[l.withDirectives(l.createElementVNode("li",aw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:c,"data-page":l.unref(r)-1},[l.createVNode(l.unref(Lc))],8,lw)],512),[[l.vShow,l.unref(r)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,p=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(r)===p,disabled:typeof p=="string"}]),key:p},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:c,"data-page":p},l.toDisplayString(p),9,cw)],2))),128)),l.withDirectives(l.createElementVNode("li",dw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:c,"data-page":l.unref(r)+1},[l.createVNode(l.unref(Dc))],8,uw)],512),[[l.vShow,l.unref(r)<o.value]])],2)]))}}),fw=["disabled"],hw=["label"],pw=["value"],mw=["value"],Xm=l.defineComponent({__name:"BDFormSelect",props:{size:{default:Mt.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e),o=l.ref(null),{focused:i}=I6(o,{initialValue:n.autofocus}),s=l.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));l.watch(()=>n.autofocus,u=>{u&&(i.value=!0)});const c=u=>{r.value=u.target.value;let f=d(u.target.value);e("input",f)},a=u=>{let f=d(u.target.value);e("change",f)},d=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(r)?r.value=h:null),disabled:n.disabled,ref_key:"input",ref:o,onInput:c,onChange:a},[l.renderSlot(u.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.options,h=>(l.openBlock(),l.createElementBlock("optgroup",{label:h.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(h.options,p=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},l.toDisplayString(p.text),9,pw))),128))],8,hw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,h=>(l.openBlock(),l.createElementBlock("option",{value:h.value,key:h.value},l.toDisplayString(h.text),9,mw))),128))],42,fw)),[[l.vModelSelect,l.unref(r)]])}}),gw=["value","true-value","false-value","data-checked"],Da=l.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=io(n,"modelValue",e),i=`form-check-input-${r.value}`,s=l.computed(()=>["form-check","bd-form-checkbox"]),c=l.computed(()=>({"form-check-input":!0,"is-invalid":n.state===!1})),a=d=>e("change",d.target.value);return(d,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(s.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>l.isRef(o)?o.value=f:null),id:i,class:l.normalizeClass(c.value),type:"checkbox",value:d.value,"true-value":d.value,"false-value":d.uncheckedValue,"data-checked":l.unref(o)===d.value,onChange:a},null,42,gw),[[l.vModelCheckbox,l.unref(o)]]),l.createElementVNode("label",{class:"form-check-label",for:i},[l.renderSlot(d.$slots,"default")]),l.renderSlot(d.$slots,"last")],2))}}),yw={key:0,class:"bd-article__body"},vw={key:1},qm=l.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=o=>e("click",{event:o,identifier:n.identifier});return(o,i)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:r},[l.createElementVNode("header",null,[l.renderSlot(o.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",yw,[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",vw,[l.renderSlot(o.$slots,"footer")]))]))}}),Zo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},bw=["id"],Cw={class:"toast-header"},Ew=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),Sw={class:"toast-body"},Vd=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Zo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Zo.SUCCESS);return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[l.createElementVNode("div",Cw,[r.value?(l.openBlock(),l.createBlock(l.unref(oo),{key:0})):(l.openBlock(),l.createBlock(l.unref($o),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),Ew]),l.createElementVNode("div",Sw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,bw))}}),Be="",Pa=t=>typeof t=="string"||t instanceof String,_w={class:"bd-pill"},ww=["src"],kw={class:"bd-pill__description"},Aw=["href"],Tw=["id","textContent","title"],Iw=["id","textContent","title"],Ba=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:Be},uri:{default:Be},uriDisplayName:{default:Be},title:{default:Be},subtitle:{default:Be},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=l.computed(()=>n.uri),i=l.computed(()=>n.uriDisplayName!==Be?n.uriDisplayName:n.uri),s=l.computed(()=>n.imgSrc),c=l.computed(()=>n.title),a=l.computed(()=>n.subtitle),d=l.computed(()=>`bd-pill-title-${r.value}`),u=l.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",_w,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,ww),l.createElementVNode("div",kw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(ca),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Aw),l.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,Tw),l.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Iw)])]))}});function xw(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;const Ow=t=>Array.isArray(t)&&t.length>0,Nw=t=>Object.keys(t).map(e=>t[e]),Fd=t=>Array.isArray(t)&&t.length>0,e0=t=>!t||Array.isArray(t)&&!t.length,jd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=xw(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?l.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[l.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const a=l.h("div",{class:"bd-user-information__header"},c),d=l.h("small",null,Nw(o).filter(f=>f).join(" • ")),u=l.h("div",{class:"bd-user-information__detail"},[a,d]);return l.h("div",{class:"bd-user-information"},[i,u])}},Ra=l.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=()=>{e("click")};return(o,i)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},o.$attrs),[l.createVNode(ro,l.mergeProps({class:"dropdown-item",onClick:r},n),{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ud(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var t0={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(self,function(){return function(){var n={3099:function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,c,a){var d=a(5112),u=a(30),f=a(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,c,a){var d=a(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}},5787:function(s){s.exports=function(c,a,d){if(!(c instanceof a))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}},9670:function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,c,a){var d=a(4019),u=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),y=a(8880),g=a(1320),b=a(3070).f,E=a(9518),C=a(7674),v=a(5112),k=a(9711),_=f.Int8Array,O=_&&_.prototype,L=f.Uint8ClampedArray,N=L&&L.prototype,j=_&&E(_),V=O&&E(O),P=Object.prototype,z=P.isPrototypeOf,K=v("toStringTag"),F=k("TYPED_ARRAY_TAG"),W=d&&!!C&&m(f.opera)!=="Opera",Q=!1,U,ee={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(D){if(!h(D))return!1;var R=m(D);return R==="DataView"||p(ee,R)||p(ne,R)},ue=function(Se){if(!h(Se))return!1;var D=m(Se);return p(ee,D)||p(ne,D)},me=function(Se){if(ue(Se))return Se;throw TypeError("Target is not a typed array")},Ce=function(Se){if(C){if(z.call(j,Se))return Se}else for(var D in ee)if(p(ee,U)){var R=f[D];if(R&&(Se===R||z.call(R,Se)))return Se}throw TypeError("Target is not a typed array constructor")},ke=function(Se,D,R){if(u){if(R)for(var x in ee){var B=f[x];B&&p(B.prototype,Se)&&delete B.prototype[Se]}(!V[Se]||R)&&g(V,Se,R?D:W&&O[Se]||D)}},Oe=function(Se,D,R){var x,B;if(u){if(C){if(R)for(x in ee)B=f[x],B&&p(B,Se)&&delete B[Se];if(!j[Se]||R)try{return g(j,Se,R?D:W&&_[Se]||D)}catch{}else return}for(x in ee)B=f[x],B&&(!B[Se]||R)&&g(B,Se,D)}};for(U in ee)f[U]||(W=!1);if((!W||typeof j!="function"||j===Function.prototype)&&(j=function(){throw TypeError("Incorrect invocation")},W))for(U in ee)f[U]&&C(f[U],j);if((!W||!V||V===P)&&(V=j.prototype,W))for(U in ee)f[U]&&C(f[U].prototype,V);if(W&&E(N)!==V&&C(N,V),u&&!p(V,K)){Q=!0,b(V,K,{get:function(){return h(this)?this[F]:void 0}});for(U in ee)f[U]&&y(f[U],F,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_TAG:Q&&F,aTypedArray:me,aTypedArrayConstructor:Ce,exportTypedArrayMethod:ke,exportTypedArrayStaticMethod:Oe,isView:ae,isTypedArray:ue,TypedArray:j,TypedArrayPrototype:V}},3331:function(s,c,a){var d=a(7854),u=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),y=a(5787),g=a(9958),b=a(7466),E=a(7067),C=a(1179),v=a(9518),k=a(7674),_=a(8006).f,O=a(3070).f,L=a(1285),N=a(8003),j=a(9909),V=j.get,P=j.set,z="ArrayBuffer",K="DataView",F="prototype",W="Wrong length",Q="Wrong index",U=d[z],ee=U,ne=d[K],ae=ne&&ne[F],ue=Object.prototype,me=d.RangeError,Ce=C.pack,ke=C.unpack,Oe=function(T){return[T&255]},Se=function(T){return[T&255,T>>8&255]},D=function(T){return[T&255,T>>8&255,T>>16&255,T>>24&255]},R=function(T){return T[3]<<24|T[2]<<16|T[1]<<8|T[0]},x=function(T){return Ce(T,23,4)},B=function(T){return Ce(T,52,8)},S=function(T,H){O(T[F],H,{get:function(){return V(this)[H]}})},w=function(T,H,Z,le){var ge=E(Z),Ae=V(T);if(ge+H>Ae.byteLength)throw me(Q);var q=V(Ae.buffer).bytes,se=ge+Ae.byteOffset,_e=q.slice(se,se+H);return le?_e:_e.reverse()},I=function(T,H,Z,le,ge,Ae){var q=E(Z),se=V(T);if(q+H>se.byteLength)throw me(Q);for(var _e=V(se.buffer).bytes,$e=q+se.byteOffset,it=le(+ge),ct=0;ct<H;ct++)_e[$e+ct]=it[Ae?ct:H-ct-1]};if(!f)ee=function(H){y(this,ee,z);var Z=E(H);P(this,{bytes:L.call(new Array(Z),0),byteLength:Z}),u||(this.byteLength=Z)},ne=function(H,Z,le){y(this,ne,K),y(H,ee,K);var ge=V(H).byteLength,Ae=g(Z);if(Ae<0||Ae>ge)throw me("Wrong offset");if(le=le===void 0?ge-Ae:b(le),Ae+le>ge)throw me(W);P(this,{buffer:H,byteLength:le,byteOffset:Ae}),u||(this.buffer=H,this.byteLength=le,this.byteOffset=Ae)},u&&(S(ee,"byteLength"),S(ne,"buffer"),S(ne,"byteLength"),S(ne,"byteOffset")),p(ne[F],{getInt8:function(H){return w(this,1,H)[0]<<24>>24},getUint8:function(H){return w(this,1,H)[0]},getInt16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return(Z[1]<<8|Z[0])<<16>>16},getUint16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return Z[1]<<8|Z[0]},getInt32:function(H){return R(w(this,4,H,arguments.length>1?arguments[1]:void 0))},getUint32:function(H){return R(w(this,4,H,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(H){return ke(w(this,4,H,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(H){return ke(w(this,8,H,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(H,Z){I(this,1,H,Oe,Z)},setUint8:function(H,Z){I(this,1,H,Oe,Z)},setInt16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setUint16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setInt32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setUint32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setFloat32:function(H,Z){I(this,4,H,x,Z,arguments.length>2?arguments[2]:void 0)},setFloat64:function(H,Z){I(this,8,H,B,Z,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){U(1)})||!m(function(){new U(-1)})||m(function(){return new U,new U(1.5),new U(NaN),U.name!=z})){ee=function(H){return y(this,ee),new U(E(H))};for(var M=ee[F]=U[F],Y=_(U),G=0,J;Y.length>G;)(J=Y[G++])in ee||h(ee,J,U[J]);M.constructor=ee}k&&v(ae)!==ue&&k(ae,ue);var X=new ne(new ee(2)),A=ae.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),(X.getInt8(0)||!X.getInt8(1))&&p(ae,{setInt8:function(H,Z){A.call(this,H,Z<<24>>24)},setUint8:function(H,Z){A.call(this,H,Z<<24>>24)}},{unsafe:!0})}N(ee,z),N(ne,K),s.exports={ArrayBuffer:ee,DataView:ne}},1048:function(s,c,a){var d=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,y){var g=d(this),b=f(g.length),E=u(m,b),C=u(y,b),v=arguments.length>2?arguments[2]:void 0,k=h((v===void 0?b:u(v,b))-C,b-E),_=1;for(C<E&&E<C+k&&(_=-1,C+=k-1,E+=k-1);k-- >0;)C in g?g[E]=g[C]:delete g[E],E+=_,C+=_;return g}},1285:function(s,c,a){var d=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=d(this),y=f(m.length),g=arguments.length,b=u(g>1?arguments[1]:void 0,y),E=g>2?arguments[2]:void 0,C=E===void 0?y:u(E,y);C>b;)m[b++]=p;return m}},8533:function(s,c,a){var d=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,c,a){var d=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),y=a(1246);s.exports=function(b){var E=u(b),C=typeof this=="function"?this:Array,v=arguments.length,k=v>1?arguments[1]:void 0,_=k!==void 0,O=y(E),L=0,N,j,V,P,z,K;if(_&&(k=d(k,v>2?arguments[2]:void 0,2)),O!=null&&!(C==Array&&h(O)))for(P=O.call(E),z=P.next,j=new C;!(V=z.call(P)).done;L++)K=_?f(P,k,[V.value,L],!0):V.value,m(j,L,K);else for(N=p(E.length),j=new C(N);N>L;L++)K=_?k(E[L],L):E[L],m(j,L,K);return j.length=L,j}},1318:function(s,c,a){var d=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,y,g){var b=d(m),E=u(b.length),C=f(g,E),v;if(p&&y!=y){for(;E>C;)if(v=b[C++],v!=v)return!0}else for(;E>C;C++)if((p||C in b)&&b[C]===y)return p||C||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,c,a){var d=a(9974),u=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,y=function(g){var b=g==1,E=g==2,C=g==3,v=g==4,k=g==6,_=g==7,O=g==5||k;return function(L,N,j,V){for(var P=f(L),z=u(P),K=d(N,j,3),F=h(z.length),W=0,Q=V||p,U=b?Q(L,F):E||_?Q(L,0):void 0,ee,ne;F>W;W++)if((O||W in z)&&(ee=z[W],ne=K(ee,W,P),g))if(b)U[W]=ne;else if(ne)switch(g){case 3:return!0;case 5:return ee;case 6:return W;case 2:m.call(U,ee)}else switch(g){case 4:return!1;case 7:m.call(U,ee)}return k?-1:C||v?v:U}};s.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6),filterOut:y(7)}},6583:function(s,c,a){var d=a(5656),u=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,y=!!m&&1/[1].lastIndexOf(1,-0)<0,g=h("lastIndexOf"),b=y||!g;s.exports=b?function(C){if(y)return m.apply(this,arguments)||0;var v=d(this),k=f(v.length),_=k-1;for(arguments.length>1&&(_=p(_,u(arguments[1]))),_<0&&(_=k+_);_>=0;_--)if(_ in v&&v[_]===C)return _||0;return-1}:m},1194:function(s,c,a){var d=a(7293),u=a(5112),f=a(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],y=m.constructor={};return y[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(s,c,a){var d=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,c,a){var d=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(y,g,b,E){d(g);var C=u(y),v=f(C),k=h(C.length),_=m?k-1:0,O=m?-1:1;if(b<2)for(;;){if(_ in v){E=v[_],_+=O;break}if(_+=O,m?_<0:k<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:k>_;_+=O)_ in v&&(E=g(E,v[_],_,C));return E}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,c,a){var d=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var y;return u(p)&&(y=p.constructor,typeof y=="function"&&(y===Array||u(y.prototype))?y=void 0:d(y)&&(y=y[h],y===null&&(y=void 0))),new(y===void 0?Array:y)(m===0?0:m)}},3411:function(s,c,a){var d=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(y){throw u(f),y}}},7072:function(s,c,a){var d=a(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,y){if(!y&&!f)return!1;var g=!1;try{var b={};b[u]=function(){return{next:function(){return{done:g=!0}}}},m(b)}catch{}return g}},4326:function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}},648:function(s,c,a){var d=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(y,g){try{return y[g]}catch{}};s.exports=d?u:function(y){var g,b,E;return y===void 0?"Undefined":y===null?"Null":typeof(b=m(g=Object(y),h))=="string"?b:p?u(g):(E=u(g))=="Object"&&typeof g.callee=="function"?"Arguments":E}},9920:function(s,c,a){var d=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var y=u(m),g=h.f,b=f.f,E=0;E<y.length;E++){var C=y[E];d(p,C)||g(p,C,b(m,C))}}},8544:function(s,c,a){var d=a(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,c,a){var d=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(y,g,b){var E=g+" Iterator";return y.prototype=u(d,{next:f(1,b)}),h(y,E,!1,!0),p[E]=m,y}},8880:function(s,c,a){var d=a(9781),u=a(3070),f=a(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(c,a){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:a}}},6135:function(s,c,a){var d=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var y=d(p);y in h?u.f(h,y,f(0,m)):h[y]=m}},654:function(s,c,a){var d=a(2109),u=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),y=a(1320),g=a(5112),b=a(1913),E=a(7497),C=a(3383),v=C.IteratorPrototype,k=C.BUGGY_SAFARI_ITERATORS,_=g("iterator"),O="keys",L="values",N="entries",j=function(){return this};s.exports=function(V,P,z,K,F,W,Q){u(z,P,K);var U=function(D){if(D===F&&me)return me;if(!k&&D in ae)return ae[D];switch(D){case O:return function(){return new z(this,D)};case L:return function(){return new z(this,D)};case N:return function(){return new z(this,D)}}return function(){return new z(this)}},ee=P+" Iterator",ne=!1,ae=V.prototype,ue=ae[_]||ae["@@iterator"]||F&&ae[F],me=!k&&ue||U(F),Ce=P=="Array"&&ae.entries||ue,ke,Oe,Se;if(Ce&&(ke=f(Ce.call(new V)),v!==Object.prototype&&ke.next&&(!b&&f(ke)!==v&&(h?h(ke,v):typeof ke[_]!="function"&&m(ke,_,j)),p(ke,ee,!0,!0),b&&(E[ee]=j))),F==L&&ue&&ue.name!==L&&(ne=!0,me=function(){return ue.call(this)}),(!b||Q)&&ae[_]!==me&&m(ae,_,me),E[P]=me,F)if(Oe={values:U(L),keys:W?me:U(O),entries:U(N)},Q)for(Se in Oe)(k||ne||!(Se in ae))&&y(ae,Se,Oe[Se]);else d({target:P,proto:!0,forced:k||ne},Oe);return Oe}},9781:function(s,c,a){var d=a(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,c,a){var d=a(7854),u=a(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,c,a){var d=a(5005);s.exports=d("navigator","userAgent")||""},7392:function(s,c,a){var d=a(7854),u=a(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,y;p?(m=p.split("."),y=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(y=m[1]))),s.exports=y&&+y},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,c,a){var d=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),y=a(4705);s.exports=function(g,b){var E=g.target,C=g.global,v=g.stat,k,_,O,L,N,j;if(C?_=d:v?_=d[E]||p(E,{}):_=(d[E]||{}).prototype,_)for(O in b){if(N=b[O],g.noTargetGet?(j=u(_,O),L=j&&j.value):L=_[O],k=y(C?O:E+(v?".":"#")+O,g.forced),!k&&L!==void 0){if(typeof N==typeof L)continue;m(N,L)}(g.sham||L&&L.sham)&&f(N,"sham",!0),h(_,O,N,g)}}},7293:function(s){s.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(s,c,a){a(4916);var d=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),y=!u(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$<a>")!=="7"}),g=function(){return"a".replace(/./,"$0")==="$0"}(),b=f("replace"),E=function(){return/./[b]?/./[b]("a","$0")==="":!1}(),C=!u(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var _="ab".split(v);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(v,k,_,O){var L=f(v),N=!u(function(){var F={};return F[L]=function(){return 7},""[v](F)!=7}),j=N&&!u(function(){var F=!1,W=/a/;return v==="split"&&(W={},W.constructor={},W.constructor[m]=function(){return W},W.flags="",W[L]=/./[L]),W.exec=function(){return F=!0,null},W[L](""),!F});if(!N||!j||v==="replace"&&!(y&&g&&!E)||v==="split"&&!C){var V=/./[L],P=_(L,""[v],function(F,W,Q,U,ee){return W.exec===h?N&&!ee?{done:!0,value:V.call(W,Q,U)}:{done:!0,value:F.call(Q,W,U)}:{done:!1}},{REPLACE_KEEPS_$0:g,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),z=P[0],K=P[1];d(String.prototype,v,z),d(RegExp.prototype,L,k==2?function(F,W){return K.call(F,this,W)}:function(F){return K.call(F,this)})}O&&p(RegExp.prototype[L],"sham",!0)}},9974:function(s,c,a){var d=a(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,y){return u.call(f,p,m,y)}}return function(){return u.apply(f,arguments)}}},5005:function(s,c,a){var d=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}},1246:function(s,c,a){var d=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}},8554:function(s,c,a){var d=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}},647:function(s,c,a){var d=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,y,g,b,E,C){var v=g+m.length,k=b.length,_=p;return E!==void 0&&(E=d(E),_=h),f.call(C,_,function(O,L){var N;switch(L.charAt(0)){case"$":return"$";case"&":return m;case"`":return y.slice(0,g);case"'":return y.slice(v);case"<":N=E[L.slice(1,-1)];break;default:var j=+L;if(j===0)return O;if(j>k){var V=u(j/10);return V===0?O:V<=k?b[V-1]===void 0?L.charAt(1):b[V-1]+L.charAt(1):O}N=b[j-1]}return N===void 0?"":N})}},7854:function(s,c,a){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(s){var c={}.hasOwnProperty;s.exports=function(a,d){return c.call(a,d)}},3501:function(s){s.exports={}},490:function(s,c,a){var d=a(5005);s.exports=d("document","documentElement")},4664:function(s,c,a){var d=a(9781),u=a(7293),f=a(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var c=Math.abs,a=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,y,g){var b=new Array(g),E=g*8-y-1,C=(1<<E)-1,v=C>>1,k=y===23?a(2,-24)-a(2,-77):0,_=m<0||m===0&&1/m<0?1:0,O=0,L,N,j;for(m=c(m),m!=m||m===1/0?(N=m!=m?1:0,L=C):(L=d(u(m)/f),m*(j=a(2,-L))<1&&(L--,j*=2),L+v>=1?m+=k/j:m+=k*a(2,1-v),m*j>=2&&(L++,j/=2),L+v>=C?(N=0,L=C):L+v>=1?(N=(m*j-1)*a(2,y),L=L+v):(N=m*a(2,v-1)*a(2,y),L=0));y>=8;b[O++]=N&255,N/=256,y-=8);for(L=L<<y|N,E+=y;E>0;b[O++]=L&255,L/=256,E-=8);return b[--O]|=_*128,b},p=function(m,y){var g=m.length,b=g*8-y-1,E=(1<<b)-1,C=E>>1,v=b-7,k=g-1,_=m[k--],O=_&127,L;for(_>>=7;v>0;O=O*256+m[k],k--,v-=8);for(L=O&(1<<-v)-1,O>>=-v,v+=y;v>0;L=L*256+m[k],k--,v-=8);if(O===0)O=1-C;else{if(O===E)return L?NaN:_?-1/0:1/0;L=L+a(2,y),O=O-C}return(_?-1:1)*L*a(2,O-y)};s.exports={pack:h,unpack:p}},8361:function(s,c,a){var d=a(7293),u=a(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,c,a){var d=a(111),u=a(7674);s.exports=function(f,h,p){var m,y;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(y=m.prototype)&&y!==p.prototype&&u(f,y),f}},2788:function(s,c,a){var d=a(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource},9909:function(s,c,a){var d=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),y=a(6200),g=a(3501),b=u.WeakMap,E,C,v,k=function(P){return v(P)?C(P):E(P,{})},_=function(P){return function(z){var K;if(!f(z)||(K=C(z)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return K}};if(d){var O=m.state||(m.state=new b),L=O.get,N=O.has,j=O.set;E=function(P,z){return z.facade=P,j.call(O,P,z),z},C=function(P){return L.call(O,P)||{}},v=function(P){return N.call(O,P)}}else{var V=y("state");g[V]=!0,E=function(P,z){return z.facade=P,h(P,V,z),z},C=function(P){return p(P,V)?P[V]:{}},v=function(P){return p(P,V)}}s.exports={set:E,get:C,has:v,enforce:k,getterFor:_}},7659:function(s,c,a){var d=a(5112),u=a(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,c,a){var d=a(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}},4705:function(s,c,a){var d=a(7293),u=/#|\.prototype\./,f=function(g,b){var E=p[h(g)];return E==y?!0:E==m?!1:typeof b=="function"?d(b):!!b},h=f.normalize=function(g){return String(g).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",y=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(s){s.exports=!1},7850:function(s,c,a){var d=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,c,a){var d=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}},3383:function(s,c,a){var d=a(7293),u=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),y=p("iterator"),g=!1,b=function(){return this},E,C,v;[].keys&&(v=[].keys(),"next"in v?(C=u(u(v)),C!==Object.prototype&&(E=C)):g=!0);var k=E==null||d(function(){var _={};return E[y].call(_)!==_});k&&(E={}),(!m||k)&&!h(E,y)&&f(E,y,b),s.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:g}},7497:function(s){s.exports={}},133:function(s,c,a){var d=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},590:function(s,c,a){var d=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,y="";return p.pathname="c%20d",m.forEach(function(g,b){m.delete("b"),y+=b+g}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||y!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,c,a){var d=a(7854),u=a(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,c,a){var d=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),y=a(8361),g=Object.assign,b=Object.defineProperty;s.exports=!g||u(function(){if(d&&g({b:1},g(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},C={},v=Symbol(),k="abcdefghijklmnopqrst";return E[v]=7,k.split("").forEach(function(_){C[_]=_}),g({},E)[v]!=7||f(g({},C)).join("")!=k})?function(C,v){for(var k=m(C),_=arguments.length,O=1,L=h.f,N=p.f;_>O;)for(var j=y(arguments[O++]),V=L?f(j).concat(L(j)):f(j),P=V.length,z=0,K;P>z;)K=V[z++],(!d||N.call(j,K))&&(k[K]=j[K]);return k}:g},30:function(s,c,a){var d=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),y=a(6200),g=">",b="<",E="prototype",C="script",v=y("IE_PROTO"),k=function(){},_=function(V){return b+C+g+V+b+"/"+C+g},O=function(V){V.write(_("")),V.close();var P=V.parentWindow.Object;return V=null,P},L=function(){var V=m("iframe"),P="java"+C+":",z;return V.style.display="none",p.appendChild(V),V.src=String(P),z=V.contentWindow.document,z.open(),z.write(_("document.F=Object")),z.close(),z.F},N,j=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}j=N?O(N):L();for(var V=f.length;V--;)delete j[E][f[V]];return j()};h[v]=!0,s.exports=Object.create||function(P,z){var K;return P!==null?(k[E]=d(P),K=new k,k[E]=null,K[v]=P):K=j(),z===void 0?K:u(K,z)}},6048:function(s,c,a){var d=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=d?Object.defineProperties:function(m,y){f(m);for(var g=h(y),b=g.length,E=0,C;b>E;)u.f(m,C=g[E++],y[C]);return m}},3070:function(s,c,a){var d=a(9781),u=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=d?p:function(y,g,b){if(f(y),g=h(g,!0),f(b),u)try{return p(y,g,b)}catch{}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(y[g]=b.value),y}},1236:function(s,c,a){var d=a(9781),u=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),y=a(4664),g=Object.getOwnPropertyDescriptor;c.f=d?g:function(E,C){if(E=h(E),C=p(C,!0),y)try{return g(E,C)}catch{}if(m(E,C))return f(!u.f.call(E,C),E[C])}},8006:function(s,c,a){var d=a(6324),u=a(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}},5181:function(s,c){c.f=Object.getOwnPropertySymbols},9518:function(s,c,a){var d=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(y){return y=u(y),d(y,p)?y[p]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?m:null}},6324:function(s,c,a){var d=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var y=u(p),g=0,b=[],E;for(E in y)!d(h,E)&&d(y,E)&&b.push(E);for(;m.length>g;)d(y,E=m[g++])&&(~f(b,E)||b.push(E));return b}},1956:function(s,c,a){var d=a(6324),u=a(748);s.exports=Object.keys||function(h){return d(h,u)}},5296:function(s,c){var a={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!a.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:a},7674:function(s,c,a){var d=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(y,g){return d(y),u(g),f?p.call(y,g):y.__proto__=g,y}}():void 0)},288:function(s,c,a){var d=a(1694),u=a(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,c,a){var d=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=d("Reflect","ownKeys")||function(m){var y=u.f(h(m)),g=f.f;return g?y.concat(g(m)):y}},857:function(s,c,a){var d=a(7854);s.exports=d},2248:function(s,c,a){var d=a(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}},1320:function(s,c,a){var d=a(7854),u=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),y=m.get,g=m.enforce,b=String(String).split("String");(s.exports=function(E,C,v,k){var _=k?!!k.unsafe:!1,O=k?!!k.enumerable:!1,L=k?!!k.noTargetGet:!1,N;if(typeof v=="function"&&(typeof C=="string"&&!f(v,"name")&&u(v,"name",C),N=g(v),N.source||(N.source=b.join(typeof C=="string"?C:""))),E===d){O?E[C]=v:h(C,v);return}else _?!L&&E[C]&&(O=!0):delete E[C];O?E[C]=v:u(E,C,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||p(this)})},7651:function(s,c,a){var d=a(4326),u=a(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}},2261:function(s,c,a){var d=a(7066),u=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var E=/a/,C=/b*/g;return f.call(E,"a"),f.call(C,"a"),E.lastIndex!==0||C.lastIndex!==0}(),y=u.UNSUPPORTED_Y||u.BROKEN_CARET,g=/()??/.exec("")[1]!==void 0,b=m||g||y;b&&(p=function(C){var v=this,k,_,O,L,N=y&&v.sticky,j=d.call(v),V=v.source,P=0,z=C;return N&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),z=String(C).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&C[v.lastIndex-1]!==`
1230
- `)&&(V="(?: "+V+")",z=" "+z,P++),_=new RegExp("^(?:"+V+")",j)),g&&(_=new RegExp("^"+V+"$(?!\\s)",j)),m&&(k=v.lastIndex),O=f.call(N?_:v,z),N?O?(O.input=O.input.slice(P),O[0]=O[0].slice(P),O.index=v.lastIndex,v.lastIndex+=O[0].length):v.lastIndex=0:m&&O&&(v.lastIndex=v.global?O.index+O[0].length:k),g&&O&&O.length>1&&h.call(O[0],_,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(O[L]=void 0)}),O}),s.exports=p},7066:function(s,c,a){var d=a(9670);s.exports=function(){var u=d(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,c,a){var d=a(7293);function u(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=d(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=d(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(s,c,a){var d=a(7854),u=a(8880);s.exports=function(f,h){try{u(d,f,h)}catch{d[f]=h}return h}},6340:function(s,c,a){var d=a(5005),u=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var y=d(m),g=u.f;h&&y&&!y[p]&&g(y,p,{configurable:!0,get:function(){return this}})}},8003:function(s,c,a){var d=a(3070).f,u=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,y){p&&!u(p=y?p:p.prototype,h)&&d(p,h,{configurable:!0,value:m})}},6200:function(s,c,a){var d=a(2309),u=a(9711),f=d("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,c,a){var d=a(7854),u=a(3505),f="__core-js_shared__",h=d[f]||u(f,{});s.exports=h},2309:function(s,c,a){var d=a(1913),u=a(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,c,a){var d=a(9670),u=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var y=d(p).constructor,g;return y===void 0||(g=d(y)[h])==null?m:u(g)}},8710:function(s,c,a){var d=a(9958),u=a(4488),f=function(h){return function(p,m){var y=String(u(p)),g=d(m),b=y.length,E,C;return g<0||g>=b?h?"":void 0:(E=y.charCodeAt(g),E<55296||E>56319||g+1===b||(C=y.charCodeAt(g+1))<56320||C>57343?h?y.charAt(g):E:h?y.slice(g,g+2):(E-55296<<10)+(C-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var c=2147483647,a=36,d=1,u=26,f=38,h=700,p=72,m=128,y="-",g=/[^\0-\u007E]/,b=/[.\u3002\uFF0E\uFF61]/g,E="Overflow: input needs wider integers to process",C=a-d,v=Math.floor,k=String.fromCharCode,_=function(j){for(var V=[],P=0,z=j.length;P<z;){var K=j.charCodeAt(P++);if(K>=55296&&K<=56319&&P<z){var F=j.charCodeAt(P++);(F&64512)==56320?V.push(((K&1023)<<10)+(F&1023)+65536):(V.push(K),P--)}else V.push(K)}return V},O=function(j){return j+22+75*(j<26)},L=function(j,V,P){var z=0;for(j=P?v(j/h):j>>1,j+=v(j/V);j>C*u>>1;z+=a)j=v(j/C);return v(z+(C+1)*j/(j+f))},N=function(j){var V=[];j=_(j);var P=j.length,z=m,K=0,F=p,W,Q;for(W=0;W<j.length;W++)Q=j[W],Q<128&&V.push(k(Q));var U=V.length,ee=U;for(U&&V.push(y);ee<P;){var ne=c;for(W=0;W<j.length;W++)Q=j[W],Q>=z&&Q<ne&&(ne=Q);var ae=ee+1;if(ne-z>v((c-K)/ae))throw RangeError(E);for(K+=(ne-z)*ae,z=ne,W=0;W<j.length;W++){if(Q=j[W],Q<z&&++K>c)throw RangeError(E);if(Q==z){for(var ue=K,me=a;;me+=a){var Ce=me<=F?d:me>=F+u?u:me-F;if(ue<Ce)break;var ke=ue-Ce,Oe=a-Ce;V.push(k(O(Ce+ke%Oe))),ue=v(ke/Oe)}V.push(k(O(ue))),F=L(K,ae,ee==U),K=0,++ee}}++K,++z}return V.join("")};s.exports=function(j){var V=[],P=j.toLowerCase().replace(b,".").split("."),z,K;for(z=0;z<P.length;z++)K=P[z],V.push(g.test(K)?"xn--"+N(K):K);return V.join(".")}},6091:function(s,c,a){var d=a(7293),u=a(1361),f="​…᠎";s.exports=function(h){return d(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,c,a){var d=a(4488),u=a(1361),f="["+u+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(y){return function(g){var b=String(d(g));return y&1&&(b=b.replace(h,"")),y&2&&(b=b.replace(p,"")),b}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,c,a){var d=a(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=d(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,c,a){var d=a(9958),u=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=d(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,c,a){var d=a(8361),u=a(4488);s.exports=function(f){return d(u(f))}},9958:function(s){var c=Math.ceil,a=Math.floor;s.exports=function(d){return isNaN(d=+d)?0:(d>0?a:c)(d)}},7466:function(s,c,a){var d=a(9958),u=Math.min;s.exports=function(f){return f>0?u(d(f),9007199254740991):0}},7908:function(s,c,a){var d=a(4488);s.exports=function(u){return Object(d(u))}},4590:function(s,c,a){var d=a(3002);s.exports=function(u,f){var h=d(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,c,a){var d=a(9958);s.exports=function(u){var f=d(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,c,a){var d=a(111);s.exports=function(u,f){if(!d(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!d(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,c,a){var d=a(5112),u=d("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,c,a){var d=a(2109),u=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),y=a(5787),g=a(9114),b=a(8880),E=a(7466),C=a(7067),v=a(4590),k=a(7593),_=a(6656),O=a(648),L=a(111),N=a(30),j=a(7674),V=a(8006).f,P=a(7321),z=a(2092).forEach,K=a(6340),F=a(3070),W=a(1236),Q=a(9909),U=a(9587),ee=Q.get,ne=Q.set,ae=F.f,ue=W.f,me=Math.round,Ce=u.RangeError,ke=m.ArrayBuffer,Oe=m.DataView,Se=p.NATIVE_ARRAY_BUFFER_VIEWS,D=p.TYPED_ARRAY_TAG,R=p.TypedArray,x=p.TypedArrayPrototype,B=p.aTypedArrayConstructor,S=p.isTypedArray,w="BYTES_PER_ELEMENT",I="Wrong length",M=function(T,H){for(var Z=0,le=H.length,ge=new(B(T))(le);le>Z;)ge[Z]=H[Z++];return ge},Y=function(T,H){ae(T,H,{get:function(){return ee(this)[H]}})},G=function(T){var H;return T instanceof ke||(H=O(T))=="ArrayBuffer"||H=="SharedArrayBuffer"},J=function(T,H){return S(T)&&typeof H!="symbol"&&H in T&&String(+H)==String(H)},X=function(H,Z){return J(H,Z=k(Z,!0))?g(2,H[Z]):ue(H,Z)},A=function(H,Z,le){return J(H,Z=k(Z,!0))&&L(le)&&_(le,"value")&&!_(le,"get")&&!_(le,"set")&&!le.configurable&&(!_(le,"writable")||le.writable)&&(!_(le,"enumerable")||le.enumerable)?(H[Z]=le.value,H):ae(H,Z,le)};f?(Se||(W.f=X,F.f=A,Y(x,"buffer"),Y(x,"byteOffset"),Y(x,"byteLength"),Y(x,"length")),d({target:"Object",stat:!0,forced:!Se},{getOwnPropertyDescriptor:X,defineProperty:A}),s.exports=function(T,H,Z){var le=T.match(/\d+$/)[0]/8,ge=T+(Z?"Clamped":"")+"Array",Ae="get"+T,q="set"+T,se=u[ge],_e=se,$e=_e&&_e.prototype,it={},ct=function(ve,ye){var Me=ee(ve);return Me.view[Ae](ye*le+Me.byteOffset,!0)},Ut=function(ve,ye,Me){var Pe=ee(ve);Z&&(Me=(Me=me(Me))<0?0:Me>255?255:Me&255),Pe.view[q](ye*le+Pe.byteOffset,Me,!0)},re=function(ve,ye){ae(ve,ye,{get:function(){return ct(this,ye)},set:function(Me){return Ut(this,ye,Me)},enumerable:!0})};Se?h&&(_e=H(function(ve,ye,Me,Pe){return y(ve,_e,ge),U(function(){return L(ye)?G(ye)?Pe!==void 0?new se(ye,v(Me,le),Pe):Me!==void 0?new se(ye,v(Me,le)):new se(ye):S(ye)?M(_e,ye):P.call(_e,ye):new se(C(ye))}(),ve,_e)}),j&&j(_e,R),z(V(se),function(ve){ve in _e||b(_e,ve,se[ve])}),_e.prototype=$e):(_e=H(function(ve,ye,Me,Pe){y(ve,_e,ge);var st=0,dt=0,Ht,Wt,At;if(!L(ye))At=C(ye),Wt=At*le,Ht=new ke(Wt);else if(G(ye)){Ht=ye,dt=v(Me,le);var Xn=ye.byteLength;if(Pe===void 0){if(Xn%le||(Wt=Xn-dt,Wt<0))throw Ce(I)}else if(Wt=E(Pe)*le,Wt+dt>Xn)throw Ce(I);At=Wt/le}else return S(ye)?M(_e,ye):P.call(_e,ye);for(ne(ve,{buffer:Ht,byteOffset:dt,byteLength:Wt,length:At,view:new Oe(Ht)});st<At;)re(ve,st++)}),j&&j(_e,R),$e=_e.prototype=N(x)),$e.constructor!==_e&&b($e,"constructor",_e),D&&b($e,D,ge),it[ge]=_e,d({global:!0,forced:_e!=se,sham:!Se},it),w in _e||b(_e,w,le),w in $e||b($e,w,le),K(ge)}):s.exports=function(){}},3832:function(s,c,a){var d=a(7854),u=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=d.ArrayBuffer,m=d.Int8Array;s.exports=!h||!u(function(){m(1)})||!u(function(){new m(-1)})||!f(function(y){new m,new m(null),new m(1.5),new m(y)},!0)||u(function(){return new m(new p(2),1,void 0).length!==1})},3074:function(s,c,a){var d=a(260).aTypedArrayConstructor,u=a(6707);s.exports=function(f,h){for(var p=u(f,f.constructor),m=0,y=h.length,g=new(d(p))(y);y>m;)g[m]=h[m++];return g}},7321:function(s,c,a){var d=a(7908),u=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(g){var b=d(g),E=arguments.length,C=E>1?arguments[1]:void 0,v=C!==void 0,k=f(b),_,O,L,N,j,V;if(k!=null&&!h(k))for(j=k.call(b),V=j.next,b=[];!(N=V.call(j)).done;)b.push(N.value);for(v&&E>2&&(C=p(C,arguments[2],2)),O=u(b.length),L=new(m(this))(O),_=0;O>_;_++)L[_]=v?C(b[_],_):b[_];return L}},9711:function(s){var c=0,a=Math.random();s.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++c+a).toString(36)}},3307:function(s,c,a){var d=a(133);s.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(s,c,a){var d=a(7854),u=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),y=u("wks"),g=d.Symbol,b=m?g:g&&g.withoutSetter||h;s.exports=function(E){return f(y,E)||(p&&f(g,E)?y[E]=g[E]:y[E]=b("Symbol."+E)),y[E]}},1361:function(s){s.exports=`
1231
- \v\f\r                 \u2028\u2029\uFEFF`},8264:function(s,c,a){var d=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],y=u[p];d({global:!0,forced:y!==m},{ArrayBuffer:m}),h(p)},2222:function(s,c,a){var d=a(2109),u=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),y=a(6135),g=a(5417),b=a(1194),E=a(5112),C=a(7392),v=E("isConcatSpreadable"),k=9007199254740991,_="Maximum allowed index exceeded",O=C>=51||!u(function(){var V=[];return V[v]=!1,V.concat()[0]!==V}),L=b("concat"),N=function(V){if(!h(V))return!1;var P=V[v];return P!==void 0?!!P:f(V)},j=!O||!L;d({target:"Array",proto:!0,forced:j},{concat:function(P){var z=p(this),K=g(z,0),F=0,W,Q,U,ee,ne;for(W=-1,U=arguments.length;W<U;W++)if(ne=W===-1?z:arguments[W],N(ne)){if(ee=m(ne.length),F+ee>k)throw TypeError(_);for(Q=0;Q<ee;Q++,F++)Q in ne&&y(K,F,ne[Q])}else{if(F>=k)throw TypeError(_);y(K,F++,ne)}return K.length=F,K}})},7327:function(s,c,a){var d=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,c,a){var d=a(2109),u=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(g){return p?h.apply(this,arguments)||0:u(this,g,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,c,a){var d=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",y=h.set,g=h.getterFor(m);s.exports=p(Array,"Array",function(b,E){y(this,{type:m,target:d(b),index:0,kind:E})},function(){var b=g(this),E=b.target,C=b.kind,v=b.index++;return!E||v>=E.length?(b.target=void 0,{value:void 0,done:!0}):C=="keys"?{value:v,done:!1}:C=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,c,a){var d=a(2109),u=a(2092).map,f=a(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,c,a){var d=a(2109),u=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),y=a(6135),g=a(5112),b=a(1194),E=b("slice"),C=g("species"),v=[].slice,k=Math.max;d({target:"Array",proto:!0,forced:!E},{slice:function(O,L){var N=m(this),j=p(N.length),V=h(O,j),P=h(L===void 0?j:L,j),z,K,F;if(f(N)&&(z=N.constructor,typeof z=="function"&&(z===Array||f(z.prototype))?z=void 0:u(z)&&(z=z[C],z===null&&(z=void 0)),z===Array||z===void 0))return v.call(N,V,P);for(K=new(z===void 0?Array:z)(k(P-V,0)),F=0;V<P;V++,F++)V in N&&y(K,F,N[V]);return K.length=F,K}})},561:function(s,c,a){var d=a(2109),u=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),y=a(6135),g=a(1194),b=g("splice"),E=Math.max,C=Math.min,v=9007199254740991,k="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!b},{splice:function(O,L){var N=p(this),j=h(N.length),V=u(O,j),P=arguments.length,z,K,F,W,Q,U;if(P===0?z=K=0:P===1?(z=0,K=j-V):(z=P-2,K=C(E(f(L),0),j-V)),j+z-K>v)throw TypeError(k);for(F=m(N,K),W=0;W<K;W++)Q=V+W,Q in N&&y(F,W,N[Q]);if(F.length=K,z<K){for(W=V;W<j-K;W++)Q=W+K,U=W+z,Q in N?N[U]=N[Q]:delete N[U];for(W=j;W>j-K+z;W--)delete N[W-1]}else if(z>K)for(W=j-K;W>V;W--)Q=W+K-1,U=W+z-1,Q in N?N[U]=N[Q]:delete N[U];for(W=0;W<z;W++)N[W+V]=arguments[W+2];return N.length=j-K+z,F}})},8309:function(s,c,a){var d=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,c,a){var d=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(g){return h(f(g))}})},1539:function(s,c,a){var d=a(1694),u=a(1320),f=a(288);d||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,c,a){var d=a(2109),u=a(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,c,a){var d=a(1320),u=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,y=m[p],g=f(function(){return y.call({source:"a",flags:"b"})!="/a/b"}),b=y.name!=p;(g||b)&&d(RegExp.prototype,p,function(){var C=u(this),v=String(C.source),k=C.flags,_=String(k===void 0&&C instanceof RegExp&&!("flags"in m)?h.call(C):k);return"/"+v+"/"+_},{unsafe:!0})},8783:function(s,c,a){var d=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(y){p(this,{type:h,string:String(y),index:0})},function(){var g=m(this),b=g.string,E=g.index,C;return E>=b.length?{value:void 0,done:!0}:(C=d(b,E),g.index+=C.length,{value:C,done:!1})})},4723:function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);d("match",1,function(y,g,b){return[function(C){var v=h(this),k=C==null?void 0:C[y];return k!==void 0?k.call(C,v):new RegExp(C)[y](String(v))},function(E){var C=b(g,E,this);if(C.done)return C.value;var v=u(E),k=String(this);if(!v.global)return m(v,k);var _=v.unicode;v.lastIndex=0;for(var O=[],L=0,N;(N=m(v,k))!==null;){var j=String(N[0]);O[L]=j,j===""&&(v.lastIndex=p(k,f(v.lastIndex),_)),L++}return L===0?null:O}]})},5306:function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),y=a(647),g=a(7651),b=Math.max,E=Math.min,C=function(v){return v===void 0?v:String(v)};d("replace",2,function(v,k,_,O){var L=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=O.REPLACE_KEEPS_$0,j=L?"$":"$0";return[function(P,z){var K=p(this),F=P==null?void 0:P[v];return F!==void 0?F.call(P,K,z):k.call(String(K),P,z)},function(V,P){if(!L&&N||typeof P=="string"&&P.indexOf(j)===-1){var z=_(k,V,this,P);if(z.done)return z.value}var K=u(V),F=String(this),W=typeof P=="function";W||(P=String(P));var Q=K.global;if(Q){var U=K.unicode;K.lastIndex=0}for(var ee=[];;){var ne=g(K,F);if(ne===null||(ee.push(ne),!Q))break;var ae=String(ne[0]);ae===""&&(K.lastIndex=m(F,f(K.lastIndex),U))}for(var ue="",me=0,Ce=0;Ce<ee.length;Ce++){ne=ee[Ce];for(var ke=String(ne[0]),Oe=b(E(h(ne.index),F.length),0),Se=[],D=1;D<ne.length;D++)Se.push(C(ne[D]));var R=ne.groups;if(W){var x=[ke].concat(Se,Oe,F);R!==void 0&&x.push(R);var B=String(P.apply(void 0,x))}else B=y(ke,F,Oe,Se,R,P);Oe>=me&&(ue+=F.slice(me,Oe)+B,me=Oe+ke.length)}return ue+F.slice(me)}]})},3123:function(s,c,a){var d=a(7007),u=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),y=a(7466),g=a(7651),b=a(2261),E=a(7293),C=[].push,v=Math.min,k=4294967295,_=!E(function(){return!RegExp(k,"y")});d("split",2,function(O,L,N){var j;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?j=function(V,P){var z=String(h(this)),K=P===void 0?k:P>>>0;if(K===0)return[];if(V===void 0)return[z];if(!u(V))return L.call(z,V,K);for(var F=[],W=(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")+(V.sticky?"y":""),Q=0,U=new RegExp(V.source,W+"g"),ee,ne,ae;(ee=b.call(U,z))&&(ne=U.lastIndex,!(ne>Q&&(F.push(z.slice(Q,ee.index)),ee.length>1&&ee.index<z.length&&C.apply(F,ee.slice(1)),ae=ee[0].length,Q=ne,F.length>=K)));)U.lastIndex===ee.index&&U.lastIndex++;return Q===z.length?(ae||!U.test(""))&&F.push(""):F.push(z.slice(Q)),F.length>K?F.slice(0,K):F}:"0".split(void 0,0).length?j=function(V,P){return V===void 0&&P===0?[]:L.call(this,V,P)}:j=L,[function(P,z){var K=h(this),F=P==null?void 0:P[O];return F!==void 0?F.call(P,K,z):j.call(String(K),P,z)},function(V,P){var z=N(j,V,this,P,j!==L);if(z.done)return z.value;var K=f(V),F=String(this),W=p(K,RegExp),Q=K.unicode,U=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(_?"y":"g"),ee=new W(_?K:"^(?:"+K.source+")",U),ne=P===void 0?k:P>>>0;if(ne===0)return[];if(F.length===0)return g(ee,F)===null?[F]:[];for(var ae=0,ue=0,me=[];ue<F.length;){ee.lastIndex=_?ue:0;var Ce=g(ee,_?F:F.slice(ue)),ke;if(Ce===null||(ke=v(y(ee.lastIndex+(_?0:ue)),F.length))===ae)ue=m(F,ue,Q);else{if(me.push(F.slice(ae,ue)),me.length===ne)return me;for(var Oe=1;Oe<=Ce.length-1;Oe++)if(me.push(Ce[Oe]),me.length===ne)return me;ue=ae=ke}}return me.push(F.slice(ae)),me}]},!_)},3210:function(s,c,a){var d=a(2109),u=a(3111).trim,f=a(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,c,a){var d=a(260),u=a(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,y){return u.call(f(this),m,y,arguments.length>2?arguments[2]:void 0)})},8927:function(s,c,a){var d=a(260),u=a(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,c,a){var d=a(260),u=a(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,c,a){var d=a(260),u=a(2092).filter,f=a(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(y){var g=u(h(this),y,arguments.length>1?arguments[1]:void 0);return f(this,g)})},7174:function(s,c,a){var d=a(260),u=a(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,c,a){var d=a(260),u=a(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,c,a){var d=a(260),u=a(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,c,a){var d=a(260),u=a(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,c,a){var d=a(260),u=a(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,c,a){var d=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=d.Uint8Array,y=f.values,g=f.keys,b=f.entries,E=u.aTypedArray,C=u.exportTypedArrayMethod,v=m&&m.prototype[p],k=!!v&&(v.name=="values"||v.name==null),_=function(){return y.call(E(this))};C("entries",function(){return b.call(E(this))}),C("keys",function(){return g.call(E(this))}),C("values",_,!k),C(p,_,!k)},8867:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,c,a){var d=a(260),u=a(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,c,a){var d=a(260),u=a(2092).map,f=a(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(g){return u(h(this),g,arguments.length>1?arguments[1]:void 0,function(b,E){return new(p(f(b,b.constructor)))(E)})})},4483:function(s,c,a){var d=a(260),u=a(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,c,a){var d=a(260),u=a(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,y=u(m).length,g=h(y/2),b=0,E;b<g;)E=m[b],m[b++]=m[--y],m[y]=E;return m})},3462:function(s,c,a){var d=a(260),u=a(7466),f=a(4590),h=a(7908),p=a(7293),m=d.aTypedArray,y=d.exportTypedArrayMethod,g=p(function(){new Int8Array(1).set({})});y("set",function(E){m(this);var C=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,k=h(E),_=u(k.length),O=0;if(_+C>v)throw RangeError("Wrong length");for(;O<_;)this[C+O]=k[O++]},g)},678:function(s,c,a){var d=a(260),u=a(6707),f=a(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,y=[].slice,g=f(function(){new Int8Array(1).slice()});m("slice",function(E,C){for(var v=y.call(h(this),E,C),k=u(this,this.constructor),_=0,O=v.length,L=new(p(k))(O);O>_;)L[_]=v[_++];return L},g)},7462:function(s,c,a){var d=a(260),u=a(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,c,a){var d=a(260),u=a(7466),f=a(1400),h=a(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(g,b){var E=p(this),C=E.length,v=f(g,C);return new(h(E,E.constructor))(E.buffer,E.byteOffset+v*E.BYTES_PER_ELEMENT,u((b===void 0?C:f(b,C))-v))})},2974:function(s,c,a){var d=a(7854),u=a(260),f=a(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,y=[].toLocaleString,g=[].slice,b=!!h&&f(function(){y.call(new h(1))}),E=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return y.apply(b?g.call(p(this)):p(this),arguments)},E)},5016:function(s,c,a){var d=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,y=[].join;u(function(){m.call({})})&&(m=function(){return y.call(this)});var g=p.toString!=m;d("toString",m,g)},2472:function(s,c,a){var d=a(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,c,a){var d=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=d[p],y=m&&m.prototype;if(y&&y.forEach!==f)try{h(y,"forEach",f)}catch{y.forEach=f}}},3948:function(s,c,a){var d=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),y=p("toStringTag"),g=f.values;for(var b in u){var E=d[b],C=E&&E.prototype;if(C){if(C[m]!==g)try{h(C,m,g)}catch{C[m]=g}if(C[y]||h(C,y,b),u[b]){for(var v in f)if(C[v]!==f[v])try{h(C,v,f[v])}catch{C[v]=f[v]}}}}},1637:function(s,c,a){a(6992);var d=a(2109),u=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),y=a(4994),g=a(9909),b=a(5787),E=a(6656),C=a(9974),v=a(648),k=a(9670),_=a(111),O=a(30),L=a(9114),N=a(8554),j=a(1246),V=a(5112),P=u("fetch"),z=u("Headers"),K=V("iterator"),F="URLSearchParams",W=F+"Iterator",Q=g.set,U=g.getterFor(F),ee=g.getterFor(W),ne=/\+/g,ae=Array(4),ue=function(M){return ae[M-1]||(ae[M-1]=RegExp("((?:%[\\da-f]{2}){"+M+"})","gi"))},me=function(M){try{return decodeURIComponent(M)}catch{return M}},Ce=function(M){var Y=M.replace(ne," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(ue(G--),me);return Y}},ke=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Se=function(M){return Oe[M]},D=function(M){return encodeURIComponent(M).replace(ke,Se)},R=function(M,Y){if(Y)for(var G=Y.split("&"),J=0,X,A;J<G.length;)X=G[J++],X.length&&(A=X.split("="),M.push({key:Ce(A.shift()),value:Ce(A.join("="))}))},x=function(M){this.entries.length=0,R(this.entries,M)},B=function(M,Y){if(M<Y)throw TypeError("Not enough arguments")},S=y(function(Y,G){Q(this,{type:W,iterator:N(U(Y).entries),kind:G})},"Iterator",function(){var Y=ee(this),G=Y.kind,J=Y.iterator.next(),X=J.value;return J.done||(J.value=G==="keys"?X.key:G==="values"?X.value:[X.key,X.value]),J}),w=function(){b(this,w,F);var Y=arguments.length>0?arguments[0]:void 0,G=this,J=[],X,A,T,H,Z,le,ge,Ae,q;if(Q(G,{type:F,entries:J,updateURL:function(){},updateSearchParams:x}),Y!==void 0)if(_(Y))if(X=j(Y),typeof X=="function")for(A=X.call(Y),T=A.next;!(H=T.call(A)).done;){if(Z=N(k(H.value)),le=Z.next,(ge=le.call(Z)).done||(Ae=le.call(Z)).done||!le.call(Z).done)throw TypeError("Expected sequence with length 2");J.push({key:ge.value+"",value:Ae.value+""})}else for(q in Y)E(Y,q)&&J.push({key:q,value:Y[q]+""});else R(J,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},I=w.prototype;p(I,{append:function(Y,G){B(arguments.length,2);var J=U(this);J.entries.push({key:Y+"",value:G+""}),J.updateURL()},delete:function(M){B(arguments.length,1);for(var Y=U(this),G=Y.entries,J=M+"",X=0;X<G.length;)G[X].key===J?G.splice(X,1):X++;Y.updateURL()},get:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;X++)if(G[X].key===J)return G[X].value;return null},getAll:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=[],A=0;A<G.length;A++)G[A].key===J&&X.push(G[A].value);return X},has:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;)if(G[X++].key===J)return!0;return!1},set:function(Y,G){B(arguments.length,1);for(var J=U(this),X=J.entries,A=!1,T=Y+"",H=G+"",Z=0,le;Z<X.length;Z++)le=X[Z],le.key===T&&(A?X.splice(Z--,1):(A=!0,le.value=H));A||X.push({key:T,value:H}),J.updateURL()},sort:function(){var Y=U(this),G=Y.entries,J=G.slice(),X,A,T;for(G.length=0,T=0;T<J.length;T++){for(X=J[T],A=0;A<T;A++)if(G[A].key>X.key){G.splice(A,0,X);break}A===T&&G.push(X)}Y.updateURL()},forEach:function(Y){for(var G=U(this).entries,J=C(Y,arguments.length>1?arguments[1]:void 0,3),X=0,A;X<G.length;)A=G[X++],J(A.value,A.key,this)},keys:function(){return new S(this,"keys")},values:function(){return new S(this,"values")},entries:function(){return new S(this,"entries")}},{enumerable:!0}),h(I,K,I.entries),h(I,"toString",function(){for(var Y=U(this).entries,G=[],J=0,X;J<Y.length;)X=Y[J++],G.push(D(X.key)+"="+D(X.value));return G.join("&")},{enumerable:!0}),m(w,F),d({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof P=="function"&&typeof z=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],J,X,A;return arguments.length>1&&(J=arguments[1],_(J)&&(X=J.body,v(X)===F&&(A=J.headers?new z(J.headers):new z,A.has("content-type")||A.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),J=O(J,{body:L(0,String(X)),headers:L(0,A)}))),G.push(J)),P.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}},285:function(s,c,a){a(8783);var d=a(2109),u=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),y=a(5787),g=a(6656),b=a(1574),E=a(8457),C=a(8710).codeAt,v=a(3197),k=a(8003),_=a(1637),O=a(9909),L=h.URL,N=_.URLSearchParams,j=_.getState,V=O.set,P=O.getterFor("URL"),z=Math.floor,K=Math.pow,F="Invalid authority",W="Invalid scheme",Q="Invalid host",U="Invalid port",ee=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,ue=/^(0x|0X)/,me=/^[0-7]+$/,Ce=/^\d+$/,ke=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Se=/[\u0000\t\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,x,B=function($,ie){var oe,ce,pe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=w(ie.slice(1,-1)),!oe))return Q;$.host=oe}else if(H($)){if(ie=v(ie),Oe.test(ie)||(oe=S(ie),oe===null))return Q;$.host=oe}else{if(Se.test(ie))return Q;for(oe="",ce=E(ie),pe=0;pe<ce.length;pe++)oe+=A(ce[pe],Y);$.host=oe}},S=function($){var ie=$.split("."),oe,ce,pe,Re,xe,et,at;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return $;for(ce=[],pe=0;pe<oe;pe++){if(Re=ie[pe],Re=="")return $;if(xe=10,Re.length>1&&Re.charAt(0)=="0"&&(xe=ue.test(Re)?16:8,Re=Re.slice(xe==8?1:2)),Re==="")et=0;else{if(!(xe==10?Ce:xe==8?me:ke).test(Re))return $;et=parseInt(Re,xe)}ce.push(et)}for(pe=0;pe<oe;pe++)if(et=ce[pe],pe==oe-1){if(et>=K(256,5-oe))return null}else if(et>255)return null;for(at=ce.pop(),pe=0;pe<ce.length;pe++)at+=ce[pe]*K(256,3-pe);return at},w=function($){var ie=[0,0,0,0,0,0,0,0],oe=0,ce=null,pe=0,Re,xe,et,at,ht,En,fe,Et=function(){return $.charAt(pe)};if(Et()==":"){if($.charAt(1)!=":")return;pe+=2,oe++,ce=oe}for(;Et();){if(oe==8)return;if(Et()==":"){if(ce!==null)return;pe++,oe++,ce=oe;continue}for(Re=xe=0;xe<4&&ke.test(Et());)Re=Re*16+parseInt(Et(),16),pe++,xe++;if(Et()=="."){if(xe==0||(pe-=xe,oe>6))return;for(et=0;Et();){if(at=null,et>0)if(Et()=="."&&et<4)pe++;else return;if(!ae.test(Et()))return;for(;ae.test(Et());){if(ht=parseInt(Et(),10),at===null)at=ht;else{if(at==0)return;at=at*10+ht}if(at>255)return;pe++}ie[oe]=ie[oe]*256+at,et++,(et==2||et==4)&&oe++}if(et!=4)return;break}else if(Et()==":"){if(pe++,!Et())return}else if(Et())return;ie[oe++]=Re}if(ce!==null)for(En=oe-ce,oe=7;oe!=0&&En>0;)fe=ie[oe],ie[oe--]=ie[ce+En-1],ie[ce+--En]=fe;else if(oe!=8)return;return ie},I=function($){for(var ie=null,oe=1,ce=null,pe=0,Re=0;Re<8;Re++)$[Re]!==0?(pe>oe&&(ie=ce,oe=pe),ce=null,pe=0):(ce===null&&(ce=Re),++pe);return pe>oe&&(ie=ce,oe=pe),ie},M=function($){var ie,oe,ce,pe;if(typeof $=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift($%256),$=z($/256);return ie.join(".")}else if(typeof $=="object"){for(ie="",ce=I($),oe=0;oe<8;oe++)pe&&$[oe]===0||(pe&&(pe=!1),ce===oe?(ie+=oe?":":"::",pe=!0):(ie+=$[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return $},Y={},G=b({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),J=b({},G,{"#":1,"?":1,"{":1,"}":1}),X=b({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),A=function($,ie){var oe=C($,0);return oe>32&&oe<127&&!g(ie,$)?$:encodeURIComponent($)},T={ftp:21,file:null,http:80,https:443,ws:80,wss:443},H=function($){return g(T,$.scheme)},Z=function($){return $.username!=""||$.password!=""},le=function($){return!$.host||$.cannotBeABaseURL||$.scheme=="file"},ge=function($,ie){var oe;return $.length==2&&ee.test($.charAt(0))&&((oe=$.charAt(1))==":"||!ie&&oe=="|")},Ae=function($){var ie;return $.length>1&&ge($.slice(0,2))&&($.length==2||(ie=$.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},q=function($){var ie=$.path,oe=ie.length;oe&&($.scheme!="file"||oe!=1||!ge(ie[0],!0))&&ie.pop()},se=function($){return $==="."||$.toLowerCase()==="%2e"},_e=function($){return $=$.toLowerCase(),$===".."||$==="%2e."||$===".%2e"||$==="%2e%2e"},$e={},it={},ct={},Ut={},re={},ve={},ye={},Me={},Pe={},st={},dt={},Ht={},Wt={},At={},Xn={},no={},an={},vn={},Vi={},bn={},br={},qn=function($,ie,oe,ce){var pe=oe||$e,Re=0,xe="",et=!1,at=!1,ht=!1,En,fe,Et,Cr;for(oe||($.scheme="",$.username="",$.password="",$.host=null,$.port=null,$.path=[],$.query=null,$.fragment=null,$.cannotBeABaseURL=!1,ie=ie.replace(D,"")),ie=ie.replace(R,""),En=E(ie);Re<=En.length;){switch(fe=En[Re],pe){case $e:if(fe&&ee.test(fe))xe+=fe.toLowerCase(),pe=it;else{if(oe)return W;pe=ct;continue}break;case it:if(fe&&(ne.test(fe)||fe=="+"||fe=="-"||fe=="."))xe+=fe.toLowerCase();else if(fe==":"){if(oe&&(H($)!=g(T,xe)||xe=="file"&&(Z($)||$.port!==null)||$.scheme=="file"&&!$.host))return;if($.scheme=xe,oe){H($)&&T[$.scheme]==$.port&&($.port=null);return}xe="",$.scheme=="file"?pe=At:H($)&&ce&&ce.scheme==$.scheme?pe=Ut:H($)?pe=Me:En[Re+1]=="/"?(pe=re,Re++):($.cannotBeABaseURL=!0,$.path.push(""),pe=Vi)}else{if(oe)return W;xe="",pe=ct,Re=0;continue}break;case ct:if(!ce||ce.cannotBeABaseURL&&fe!="#")return W;if(ce.cannotBeABaseURL&&fe=="#"){$.scheme=ce.scheme,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",$.cannotBeABaseURL=!0,pe=br;break}pe=ce.scheme=="file"?At:ve;continue;case Ut:if(fe=="/"&&En[Re+1]=="/")pe=Pe,Re++;else{pe=ve;continue}break;case re:if(fe=="/"){pe=st;break}else{pe=vn;continue}case ve:if($.scheme=ce.scheme,fe==x)$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query=ce.query;else if(fe=="/"||fe=="\\"&&H($))pe=ye;else if(fe=="?")$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query="",pe=bn;else if(fe=="#")$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",pe=br;else{$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.path.pop(),pe=vn;continue}break;case ye:if(H($)&&(fe=="/"||fe=="\\"))pe=Pe;else if(fe=="/")pe=st;else{$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,pe=vn;continue}break;case Me:if(pe=Pe,fe!="/"||xe.charAt(Re+1)!="/")continue;Re++;break;case Pe:if(fe!="/"&&fe!="\\"){pe=st;continue}break;case st:if(fe=="@"){et&&(xe="%40"+xe),et=!0,Et=E(xe);for(var fh=0;fh<Et.length;fh++){var V5=Et[fh];if(V5==":"&&!ht){ht=!0;continue}var F5=A(V5,X);ht?$.password+=F5:$.username+=F5}xe=""}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)){if(et&&xe=="")return F;Re-=E(xe).length+1,xe="",pe=dt}else xe+=fe;break;case dt:case Ht:if(oe&&$.scheme=="file"){pe=no;continue}else if(fe==":"&&!at){if(xe=="")return Q;if(Cr=B($,xe),Cr)return Cr;if(xe="",pe=Wt,oe==Ht)return}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)){if(H($)&&xe=="")return Q;if(oe&&xe==""&&(Z($)||$.port!==null))return;if(Cr=B($,xe),Cr)return Cr;if(xe="",pe=an,oe)return;continue}else fe=="["?at=!0:fe=="]"&&(at=!1),xe+=fe;break;case Wt:if(ae.test(fe))xe+=fe;else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)||oe){if(xe!=""){var hh=parseInt(xe,10);if(hh>65535)return U;$.port=H($)&&hh===T[$.scheme]?null:hh,xe=""}if(oe)return;pe=an;continue}else return U;break;case At:if($.scheme="file",fe=="/"||fe=="\\")pe=Xn;else if(ce&&ce.scheme=="file")if(fe==x)$.host=ce.host,$.path=ce.path.slice(),$.query=ce.query;else if(fe=="?")$.host=ce.host,$.path=ce.path.slice(),$.query="",pe=bn;else if(fe=="#")$.host=ce.host,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",pe=br;else{Ae(En.slice(Re).join(""))||($.host=ce.host,$.path=ce.path.slice(),q($)),pe=vn;continue}else{pe=vn;continue}break;case Xn:if(fe=="/"||fe=="\\"){pe=no;break}ce&&ce.scheme=="file"&&!Ae(En.slice(Re).join(""))&&(ge(ce.path[0],!0)?$.path.push(ce.path[0]):$.host=ce.host),pe=vn;continue;case no:if(fe==x||fe=="/"||fe=="\\"||fe=="?"||fe=="#"){if(!oe&&ge(xe))pe=vn;else if(xe==""){if($.host="",oe)return;pe=an}else{if(Cr=B($,xe),Cr)return Cr;if($.host=="localhost"&&($.host=""),oe)return;xe="",pe=an}continue}else xe+=fe;break;case an:if(H($)){if(pe=vn,fe!="/"&&fe!="\\")continue}else if(!oe&&fe=="?")$.query="",pe=bn;else if(!oe&&fe=="#")$.fragment="",pe=br;else if(fe!=x&&(pe=vn,fe!="/"))continue;break;case vn:if(fe==x||fe=="/"||fe=="\\"&&H($)||!oe&&(fe=="?"||fe=="#")){if(_e(xe)?(q($),fe!="/"&&!(fe=="\\"&&H($))&&$.path.push("")):se(xe)?fe!="/"&&!(fe=="\\"&&H($))&&$.path.push(""):($.scheme=="file"&&!$.path.length&&ge(xe)&&($.host&&($.host=""),xe=xe.charAt(0)+":"),$.path.push(xe)),xe="",$.scheme=="file"&&(fe==x||fe=="?"||fe=="#"))for(;$.path.length>1&&$.path[0]==="";)$.path.shift();fe=="?"?($.query="",pe=bn):fe=="#"&&($.fragment="",pe=br)}else xe+=A(fe,J);break;case Vi:fe=="?"?($.query="",pe=bn):fe=="#"?($.fragment="",pe=br):fe!=x&&($.path[0]+=A(fe,Y));break;case bn:!oe&&fe=="#"?($.fragment="",pe=br):fe!=x&&(fe=="'"&&H($)?$.query+="%27":fe=="#"?$.query+="%23":$.query+=A(fe,Y));break;case br:fe!=x&&($.fragment+=A(fe,G));break}Re++}},Ro=function(ie){var oe=y(this,Ro,"URL"),ce=arguments.length>1?arguments[1]:void 0,pe=String(ie),Re=V(oe,{type:"URL"}),xe,et;if(ce!==void 0){if(ce instanceof Ro)xe=P(ce);else if(et=qn(xe={},String(ce)),et)throw TypeError(et)}if(et=qn(Re,pe,null,xe),et)throw TypeError(et);var at=Re.searchParams=new N,ht=j(at);ht.updateSearchParams(Re.query),ht.updateURL=function(){Re.query=String(at)||null},u||(oe.href=Ac.call(oe),oe.origin=A5.call(oe),oe.protocol=T5.call(oe),oe.username=I5.call(oe),oe.password=x5.call(oe),oe.host=O5.call(oe),oe.hostname=N5.call(oe),oe.port=M5.call(oe),oe.pathname=L5.call(oe),oe.search=D5.call(oe),oe.searchParams=P5.call(oe),oe.hash=B5.call(oe))},uh=Ro.prototype,Ac=function(){var $=P(this),ie=$.scheme,oe=$.username,ce=$.password,pe=$.host,Re=$.port,xe=$.path,et=$.query,at=$.fragment,ht=ie+":";return pe!==null?(ht+="//",Z($)&&(ht+=oe+(ce?":"+ce:"")+"@"),ht+=M(pe),Re!==null&&(ht+=":"+Re)):ie=="file"&&(ht+="//"),ht+=$.cannotBeABaseURL?xe[0]:xe.length?"/"+xe.join("/"):"",et!==null&&(ht+="?"+et),at!==null&&(ht+="#"+at),ht},A5=function(){var $=P(this),ie=$.scheme,oe=$.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!H($)?"null":ie+"://"+M($.host)+(oe!==null?":"+oe:"")},T5=function(){return P(this).scheme+":"},I5=function(){return P(this).username},x5=function(){return P(this).password},O5=function(){var $=P(this),ie=$.host,oe=$.port;return ie===null?"":oe===null?M(ie):M(ie)+":"+oe},N5=function(){var $=P(this).host;return $===null?"":M($)},M5=function(){var $=P(this).port;return $===null?"":String($)},L5=function(){var $=P(this),ie=$.path;return $.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},D5=function(){var $=P(this).query;return $?"?"+$:""},P5=function(){return P(this).searchParams},B5=function(){var $=P(this).fragment;return $?"#"+$:""},Cn=function($,ie){return{get:$,set:ie,configurable:!0,enumerable:!0}};if(u&&p(uh,{href:Cn(Ac,function($){var ie=P(this),oe=String($),ce=qn(ie,oe);if(ce)throw TypeError(ce);j(ie.searchParams).updateSearchParams(ie.query)}),origin:Cn(A5),protocol:Cn(T5,function($){var ie=P(this);qn(ie,String($)+":",$e)}),username:Cn(I5,function($){var ie=P(this),oe=E(String($));if(!le(ie)){ie.username="";for(var ce=0;ce<oe.length;ce++)ie.username+=A(oe[ce],X)}}),password:Cn(x5,function($){var ie=P(this),oe=E(String($));if(!le(ie)){ie.password="";for(var ce=0;ce<oe.length;ce++)ie.password+=A(oe[ce],X)}}),host:Cn(O5,function($){var ie=P(this);ie.cannotBeABaseURL||qn(ie,String($),dt)}),hostname:Cn(N5,function($){var ie=P(this);ie.cannotBeABaseURL||qn(ie,String($),Ht)}),port:Cn(M5,function($){var ie=P(this);le(ie)||($=String($),$==""?ie.port=null:qn(ie,$,Wt))}),pathname:Cn(L5,function($){var ie=P(this);ie.cannotBeABaseURL||(ie.path=[],qn(ie,$+"",an))}),search:Cn(D5,function($){var ie=P(this);$=String($),$==""?ie.query=null:($.charAt(0)=="?"&&($=$.slice(1)),ie.query="",qn(ie,$,bn)),j(ie.searchParams).updateSearchParams(ie.query)}),searchParams:Cn(P5),hash:Cn(B5,function($){var ie=P(this);if($=String($),$==""){ie.fragment=null;return}$.charAt(0)=="#"&&($=$.slice(1)),ie.fragment="",qn(ie,$,br)})}),m(uh,"toJSON",function(){return Ac.call(this)},{enumerable:!0}),m(uh,"toString",function(){return Ac.call(this)},{enumerable:!0}),L){var R5=L.createObjectURL,$5=L.revokeObjectURL;R5&&m(Ro,"createObjectURL",function(ie){return R5.apply(L,arguments)}),$5&&m(Ro,"revokeObjectURL",function(ie){return $5.apply(L,arguments)})}k(Ro,"URL"),d({global:!0,forced:!f,sham:!u},{URL:Ro})}},r={};function o(s){if(r[s])return r[s].exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}(function(){o.d=function(s,c){for(var a in c)o.o(c,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:c[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return U},default:function(){return Se}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=c(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1232
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function c(D,R){if(D){if(typeof D=="string")return a(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return a(D,R)}}function a(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}function d(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function u(D,R){for(var x=0;x<R.length;x++){var B=R[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function f(D,R,x){return R&&u(D.prototype,R),x&&u(D,x),D}var h=function(){function D(){d(this,D)}return f(D,[{key:"on",value:function(x,B){return this._callbacks=this._callbacks||{},this._callbacks[x]||(this._callbacks[x]=[]),this._callbacks[x].push(B),this}},{key:"emit",value:function(x){this._callbacks=this._callbacks||{};for(var B=this._callbacks[x],S=arguments.length,w=new Array(S>1?S-1:0),I=1;I<S;I++)w[I-1]=arguments[I];if(B){var M=s(B,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.apply(this,w)}}catch(J){M.e(J)}finally{M.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+x,{args:w})),this}},{key:"makeEvent",value:function(x,B){var S={bubbles:!0,cancelable:!0,detail:B};if(typeof window.CustomEvent=="function")return new CustomEvent(x,S);var w=document.createEvent("CustomEvent");return w.initCustomEvent(x,S.bubbles,S.cancelable,S.detail),w}},{key:"off",value:function(x,B){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var S=this._callbacks[x];if(!S)return this;if(arguments.length===1)return delete this._callbacks[x],this;for(var w=0;w<S.length;w++){var I=S[w];if(I===B){S.splice(w,1);break}}return this}}]),D}(),p='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',m=p;function y(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=g(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1233
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function g(D,R){if(D){if(typeof D=="string")return b(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return b(D,R)}}function b(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}var E={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,x,B){if(B)return{dzuuid:B.file.upload.uuid,dzchunkindex:B.index,dztotalfilesize:B.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:B.file.upload.totalChunkCount,dzchunkbyteoffset:B.index*this.options.chunkSize}},accept:function(R,x){return x()},chunksUploaded:function(R,x){x()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var x=y(this.element.getElementsByTagName("div"),!0),B;try{for(x.s();!(B=x.n()).done;){var S=B.value;if(/(^| )dz-message($| )/.test(S.className)){R=S,S.className="dz-message";break}}}catch(I){x.e(I)}finally{x.f()}R||(R=U.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var w=R.getElementsByTagName("span")[0];return w&&(w.textContent!=null?w.textContent=this.options.dictFallbackMessage:w.innerText!=null&&(w.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,x,B,S){var w={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;x==null&&B==null?(x=w.srcWidth,B=w.srcHeight):x==null?x=B*I:B==null&&(B=x/I),x=Math.min(x,w.srcWidth),B=Math.min(B,w.srcHeight);var M=x/B;if(w.srcWidth>x||w.srcHeight>B)if(S==="crop")I>M?(w.srcHeight=R.height,w.srcWidth=w.srcHeight*M):(w.srcWidth=R.width,w.srcHeight=w.srcWidth/M);else if(S==="contain")I>M?B=x/I:x=B*I;else throw new Error("Unknown resizeMethod '".concat(S,"'"));return w.srcX=(R.width-w.srcWidth)/2,w.srcY=(R.height-w.srcHeight)/2,w.trgWidth=x,w.trgHeight=B,w},transformFile:function(R,x){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,x):x(R)},previewTemplate:m,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var x=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=U.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var B=y(R.previewElement.querySelectorAll("[data-dz-name]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=R.name}}catch(A){B.e(A)}finally{B.f()}var I=y(R.previewElement.querySelectorAll("[data-dz-size]"),!0),M;try{for(I.s();!(M=I.n()).done;)w=M.value,w.innerHTML=this.filesize(R.size)}catch(A){I.e(A)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=U.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var Y=function(T){return T.preventDefault(),T.stopPropagation(),R.status===U.UPLOADING?U.confirm(x.options.dictCancelUploadConfirmation,function(){return x.removeFile(R)}):x.options.dictRemoveFileConfirmation?U.confirm(x.options.dictRemoveFileConfirmation,function(){return x.removeFile(R)}):x.removeFile(R)},G=y(R.previewElement.querySelectorAll("[data-dz-remove]"),!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;X.addEventListener("click",Y)}}catch(A){G.e(A)}finally{G.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,x){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var B=y(R.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.alt=R.name,w.src=x}}catch(I){B.e(I)}finally{B.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,x){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof x!="string"&&x.error&&(x=x.error);var B=y(R.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=x}}catch(I){B.e(I)}finally{B.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,x,B){if(R.previewElement){var S=y(R.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;I.nodeName==="PROGRESS"?I.value=x:I.style.width="".concat(x,"%")}}catch(M){S.e(M)}finally{S.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},C=E;function v(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(x){return typeof x}:v=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},v(D)}function k(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=_(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1234
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function _(D,R){if(D){if(typeof D=="string")return O(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return O(D,R)}}function O(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}function L(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function N(D,R){for(var x=0;x<R.length;x++){var B=R[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function j(D,R,x){return R&&N(D.prototype,R),x&&N(D,x),D}function V(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(R&&R.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),R&&P(D,R)}function P(D,R){return P=Object.setPrototypeOf||function(B,S){return B.__proto__=S,B},P(D,R)}function z(D){var R=W();return function(){var B=Q(D),S;if(R){var w=Q(this).constructor;S=Reflect.construct(B,arguments,w)}else S=B.apply(this,arguments);return K(this,S)}}function K(D,R){return R&&(v(R)==="object"||typeof R=="function")?R:F(D)}function F(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q(D){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},Q(D)}var U=function(D){V(x,D);var R=z(x);function x(B,S){var w;L(this,x),w=R.call(this);var I,M;if(w.element=B,w.version=x.version,w.clickableElements=[],w.listeners=[],w.files=[],typeof w.element=="string"&&(w.element=document.querySelector(w.element)),!w.element||w.element.nodeType==null)throw new Error("Invalid dropzone element.");if(w.element.dropzone)throw new Error("Dropzone already attached.");x.instances.push(F(w)),w.element.dropzone=F(w);var Y=(M=x.optionsForElement(w.element))!=null?M:{};if(w.options=x.extend({},C,Y,S??{}),w.options.previewTemplate=w.options.previewTemplate.replace(/\n*/g,""),w.options.forceFallback||!x.isBrowserSupported())return K(w,w.options.fallback.call(F(w)));if(w.options.url==null&&(w.options.url=w.element.getAttribute("action")),!w.options.url)throw new Error("No URL provided.");if(w.options.acceptedFiles&&w.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(w.options.uploadMultiple&&w.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return w.options.acceptedMimeTypes&&(w.options.acceptedFiles=w.options.acceptedMimeTypes,delete w.options.acceptedMimeTypes),w.options.renameFilename!=null&&(w.options.renameFile=function(G){return w.options.renameFilename.call(F(w),G.name,G)}),typeof w.options.method=="string"&&(w.options.method=w.options.method.toUpperCase()),(I=w.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),w.options.previewsContainer!==!1&&(w.options.previewsContainer?w.previewsContainer=x.getElement(w.options.previewsContainer,"previewsContainer"):w.previewsContainer=w.element),w.options.clickable&&(w.options.clickable===!0?w.clickableElements=[w.element]:w.clickableElements=x.getElements(w.options.clickable,"clickable")),w.init(),w}return j(x,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(S){return S.accepted}).map(function(S){return S})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(S){return!S.accepted}).map(function(S){return S})}},{key:"getFilesWithStatus",value:function(S){return this.files.filter(function(w){return w.status===S}).map(function(w){return w})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(x.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(x.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(x.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(S){return S.status===x.UPLOADING||S.status===x.QUEUED}).map(function(S){return S})}},{key:"init",value:function(){var S=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(x.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var w=function X(){S.hiddenFileInput&&S.hiddenFileInput.parentNode.removeChild(S.hiddenFileInput),S.hiddenFileInput=document.createElement("input"),S.hiddenFileInput.setAttribute("type","file"),(S.options.maxFiles===null||S.options.maxFiles>1)&&S.hiddenFileInput.setAttribute("multiple","multiple"),S.hiddenFileInput.className="dz-hidden-input",S.options.acceptedFiles!==null&&S.hiddenFileInput.setAttribute("accept",S.options.acceptedFiles),S.options.capture!==null&&S.hiddenFileInput.setAttribute("capture",S.options.capture),S.hiddenFileInput.setAttribute("tabindex","-1"),S.hiddenFileInput.style.visibility="hidden",S.hiddenFileInput.style.position="absolute",S.hiddenFileInput.style.top="0",S.hiddenFileInput.style.left="0",S.hiddenFileInput.style.height="0",S.hiddenFileInput.style.width="0",x.getElement(S.options.hiddenInputContainer,"hiddenInputContainer").appendChild(S.hiddenFileInput),S.hiddenFileInput.addEventListener("change",function(){var A=S.hiddenFileInput.files;if(A.length){var T=k(A,!0),H;try{for(T.s();!(H=T.n()).done;){var Z=H.value;S.addFile(Z)}}catch(le){T.e(le)}finally{T.f()}}S.emit("addedfiles",A),X()})};w()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=k(this.events,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;this.on(Y,this.options[Y])}}catch(X){I.e(X)}finally{I.f()}this.on("uploadprogress",function(){return S.updateTotalUploadProgress()}),this.on("removedfile",function(){return S.updateTotalUploadProgress()}),this.on("canceled",function(X){return S.emit("complete",X)}),this.on("complete",function(X){if(S.getAddedFiles().length===0&&S.getUploadingFiles().length===0&&S.getQueuedFiles().length===0)return setTimeout(function(){return S.emit("queuecomplete")},0)});var G=function(A){if(A.dataTransfer.types){for(var T=0;T<A.dataTransfer.types.length;T++)if(A.dataTransfer.types[T]==="Files")return!0}return!1},J=function(A){if(G(A))return A.stopPropagation(),A.preventDefault?A.preventDefault():A.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(A){return S.emit("dragstart",A)},dragenter:function(A){return J(A),S.emit("dragenter",A)},dragover:function(A){var T;try{T=A.dataTransfer.effectAllowed}catch{}return A.dataTransfer.dropEffect=T==="move"||T==="linkMove"?"move":"copy",J(A),S.emit("dragover",A)},dragleave:function(A){return S.emit("dragleave",A)},drop:function(A){return J(A),S.drop(A)},dragend:function(A){return S.emit("dragend",A)}}}],this.clickableElements.forEach(function(X){return S.listeners.push({element:X,events:{click:function(T){return(X!==S.element||T.target===S.element||x.elementInside(T.target,S.element.querySelector(".dz-message")))&&S.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,x.instances.splice(x.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var S,w=0,I=0,M=this.getActiveFiles();if(M.length){var Y=k(this.getActiveFiles(),!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;w+=J.upload.bytesSent,I+=J.upload.total}}catch(X){Y.e(X)}finally{Y.f()}S=100*w/I}else S=100;return this.emit("totaluploadprogress",S,I,w)}},{key:"_getParamName",value:function(S){return typeof this.options.paramName=="function"?this.options.paramName(S):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(S,"]"):"")}},{key:"_renameFile",value:function(S){return typeof this.options.renameFile!="function"?S.name:this.options.renameFile(S)}},{key:"getFallbackForm",value:function(){var S,w;if(S=this.getExistingFallback())return S;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var M=x.createElement(I);return this.element.tagName!=="FORM"?(w=x.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),w.appendChild(M)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),w??M}},{key:"getExistingFallback",value:function(){for(var S=function(J){var X=k(J,!0),A;try{for(X.s();!(A=X.n()).done;){var T=A.value;if(/(^| )fallback($| )/.test(T.className))return T}}catch(H){X.e(H)}finally{X.f()}},w=0,I=["div","form"];w<I.length;w++){var M=I[w],Y;if(Y=S(this.element.getElementsByTagName(M)))return Y}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.addEventListener(I,M,!1))}return w}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.removeEventListener(I,M,!1))}return w}()})}},{key:"disable",value:function(){var S=this;return this.clickableElements.forEach(function(w){return w.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(w){return S.cancelUpload(w)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(S){return S.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(S){var w=0,I="b";if(S>0){for(var M=["tb","gb","mb","kb","b"],Y=0;Y<M.length;Y++){var G=M[Y],J=Math.pow(this.options.filesizeBase,4-Y)/10;if(S>=J){w=S/Math.pow(this.options.filesizeBase,4-Y),I=G;break}}w=Math.round(10*w)/10}return"<strong>".concat(w,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(S){if(S.dataTransfer){this.emit("drop",S);for(var w=[],I=0;I<S.dataTransfer.files.length;I++)w[I]=S.dataTransfer.files[I];if(w.length){var M=S.dataTransfer.items;M&&M.length&&M[0].webkitGetAsEntry!=null?this._addFilesFromItems(M):this.handleFiles(w)}this.emit("addedfiles",w)}}},{key:"paste",value:function(S){if(ke(S!=null?S.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",S);var w=S.clipboardData.items;if(w.length)return this._addFilesFromItems(w)}}},{key:"handleFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.addFile(M)}}catch(Y){w.e(Y)}finally{w.f()}}},{key:"_addFilesFromItems",value:function(S){var w=this;return function(){var I=[],M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value,J;G.webkitGetAsEntry!=null&&(J=G.webkitGetAsEntry())?J.isFile?I.push(w.addFile(G.getAsFile())):J.isDirectory?I.push(w._addFilesFromDirectory(J,J.name)):I.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?I.push(w.addFile(G.getAsFile())):I.push(void 0)}}catch(X){M.e(X)}finally{M.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(S,w){var I=this,M=S.createReader(),Y=function(X){return Oe(console,"log",function(A){return A.log(X)})},G=function J(){return M.readEntries(function(X){if(X.length>0){var A=k(X,!0),T;try{for(A.s();!(T=A.n()).done;){var H=T.value;H.isFile?H.file(function(Z){if(!(I.options.ignoreHiddenFiles&&Z.name.substring(0,1)==="."))return Z.fullPath="".concat(w,"/").concat(Z.name),I.addFile(Z)}):H.isDirectory&&I._addFilesFromDirectory(H,"".concat(w,"/").concat(H.name))}}catch(Z){A.e(Z)}finally{A.f()}J()}return null},Y)};return G()}},{key:"accept",value:function(S,w){this.options.maxFilesize&&S.size>this.options.maxFilesize*1024*1024?w(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(S.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):x.isValidFile(S,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(w(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",S)):this.options.accept.call(this,S,w):w(this.options.dictInvalidFileType)}},{key:"addFile",value:function(S){var w=this;S.upload={uuid:x.uuidv4(),progress:0,total:S.size,bytesSent:0,filename:this._renameFile(S)},this.files.push(S),S.status=x.ADDED,this.emit("addedfile",S),this._enqueueThumbnail(S),this.accept(S,function(I){I?(S.accepted=!1,w._errorProcessing([S],I)):(S.accepted=!0,w.options.autoQueue&&w.enqueueFile(S)),w._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.enqueueFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"enqueueFile",value:function(S){var w=this;if(S.status===x.ADDED&&S.accepted===!0){if(S.status=x.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return w.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(S){var w=this;if(this.options.createImageThumbnails&&S.type.match(/image.*/)&&S.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(S),setTimeout(function(){return w._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var S=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var w=this._thumbnailQueue.shift();return this.createThumbnail(w,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return S.emit("thumbnail",w,I),S._processingThumbnail=!1,S._processThumbnailQueue()})}}},{key:"removeFile",value:function(S){if(S.status===x.UPLOADING&&this.cancelUpload(S),this.files=ee(this.files,S),this.emit("removedfile",S),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(S){S==null&&(S=!1);var w=k(this.files.slice(),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;(M.status!==x.UPLOADING||S)&&this.removeFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"resizeImage",value:function(S,w,I,M,Y){var G=this;return this.createThumbnail(S,w,I,M,!0,function(J,X){if(X==null)return Y(S);var A=G.options.resizeMimeType;A==null&&(A=S.type);var T=X.toDataURL(A,G.options.resizeQuality);return(A==="image/jpeg"||A==="image/jpg")&&(T=me.restore(S.dataURL,T)),Y(x.dataURItoBlob(T))})}},{key:"createThumbnail",value:function(S,w,I,M,Y,G){var J=this,X=new FileReader;X.onload=function(){if(S.dataURL=X.result,S.type==="image/svg+xml"){G!=null&&G(X.result);return}J.createThumbnailFromUrl(S,w,I,M,Y,G)},X.readAsDataURL(S)}},{key:"displayExistingFile",value:function(S,w,I,M){var Y=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",S),this.emit("complete",S),!G)this.emit("thumbnail",S,w),I&&I();else{var J=function(A){Y.emit("thumbnail",S,A),I&&I()};S.dataURL=w,this.createThumbnailFromUrl(S,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,J,M)}}},{key:"createThumbnailFromUrl",value:function(S,w,I,M,Y,G,J){var X=this,A=document.createElement("img");return J&&(A.crossOrigin=J),Y=getComputedStyle(document.body).imageOrientation=="from-image"?!1:Y,A.onload=function(){var T=function(Z){return Z(1)};return typeof EXIF<"u"&&EXIF!==null&&Y&&(T=function(Z){return EXIF.getData(A,function(){return Z(EXIF.getTag(this,"Orientation"))})}),T(function(H){S.width=A.width,S.height=A.height;var Z=X.options.resize.call(X,S,w,I,M),le=document.createElement("canvas"),ge=le.getContext("2d");switch(le.width=Z.trgWidth,le.height=Z.trgHeight,H>4&&(le.width=Z.trgHeight,le.height=Z.trgWidth),H){case 2:ge.translate(le.width,0),ge.scale(-1,1);break;case 3:ge.translate(le.width,le.height),ge.rotate(Math.PI);break;case 4:ge.translate(0,le.height),ge.scale(1,-1);break;case 5:ge.rotate(.5*Math.PI),ge.scale(1,-1);break;case 6:ge.rotate(.5*Math.PI),ge.translate(0,-le.width);break;case 7:ge.rotate(.5*Math.PI),ge.translate(le.height,-le.width),ge.scale(-1,1);break;case 8:ge.rotate(-.5*Math.PI),ge.translate(-le.height,0);break}ue(ge,A,Z.srcX!=null?Z.srcX:0,Z.srcY!=null?Z.srcY:0,Z.srcWidth,Z.srcHeight,Z.trgX!=null?Z.trgX:0,Z.trgY!=null?Z.trgY:0,Z.trgWidth,Z.trgHeight);var Ae=le.toDataURL("image/png");if(G!=null)return G(Ae,le)})},G!=null&&(A.onerror=G),A.src=S.dataURL}},{key:"processQueue",value:function(){var S=this.options.parallelUploads,w=this.getUploadingFiles().length,I=w;if(!(w>=S)){var M=this.getQueuedFiles();if(M.length>0){if(this.options.uploadMultiple)return this.processFiles(M.slice(0,S-w));for(;I<S;){if(!M.length)return;this.processFile(M.shift()),I++}}}}},{key:"processFile",value:function(S){return this.processFiles([S])}},{key:"processFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;M.processing=!0,M.status=x.UPLOADING,this.emit("processing",M)}}catch(Y){w.e(Y)}finally{w.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",S),this.uploadFiles(S)}},{key:"_getFilesWithXhr",value:function(S){return this.files.filter(function(w){return w.xhr===S}).map(function(w){return w})}},{key:"cancelUpload",value:function(S){if(S.status===x.UPLOADING){var w=this._getFilesWithXhr(S.xhr),I=k(w,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;Y.status=x.CANCELED}}catch(A){I.e(A)}finally{I.f()}typeof S.xhr<"u"&&S.xhr.abort();var G=k(w,!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;this.emit("canceled",X)}}catch(A){G.e(A)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",w)}else(S.status===x.ADDED||S.status===x.QUEUED)&&(S.status=x.CANCELED,this.emit("canceled",S),this.options.uploadMultiple&&this.emit("canceledmultiple",[S]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(S){if(typeof S=="function"){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];return S.apply(this,I)}return S}},{key:"uploadFile",value:function(S){return this.uploadFiles([S])}},{key:"uploadFiles",value:function(S){var w=this;this._transformFiles(S,function(I){if(w.options.chunking){var M=I[0];S[0].upload.chunked=w.options.chunking&&(w.options.forceChunking||M.size>w.options.chunkSize),S[0].upload.totalChunkCount=Math.ceil(M.size/w.options.chunkSize)}if(S[0].upload.chunked){var Y=S[0],G=I[0];Y.upload.chunks=[];var J=function(){for(var Z=0;Y.upload.chunks[Z]!==void 0;)Z++;if(!(Z>=Y.upload.totalChunkCount)){var le=Z*w.options.chunkSize,ge=Math.min(le+w.options.chunkSize,G.size),Ae={name:w._getParamName(0),data:G.webkitSlice?G.webkitSlice(le,ge):G.slice(le,ge),filename:Y.upload.filename,chunkIndex:Z};Y.upload.chunks[Z]={file:Y,index:Z,dataBlock:Ae,status:x.UPLOADING,progress:0,retries:0},w._uploadData(S,[Ae])}};if(Y.upload.finishedChunkUpload=function(H,Z){var le=!0;H.status=x.SUCCESS,H.dataBlock=null,H.xhr=null;for(var ge=0;ge<Y.upload.totalChunkCount;ge++){if(Y.upload.chunks[ge]===void 0)return J();Y.upload.chunks[ge].status!==x.SUCCESS&&(le=!1)}le&&w.options.chunksUploaded(Y,function(){w._finished(S,Z,null)})},w.options.parallelChunkUploads)for(var X=0;X<Y.upload.totalChunkCount;X++)J();else J()}else{for(var A=[],T=0;T<S.length;T++)A[T]={name:w._getParamName(T),data:I[T],filename:S[T].upload.filename};w._uploadData(S,A)}})}},{key:"_getChunk",value:function(S,w){for(var I=0;I<S.upload.totalChunkCount;I++)if(S.upload.chunks[I]!==void 0&&S.upload.chunks[I].xhr===w)return S.upload.chunks[I]}},{key:"_uploadData",value:function(S,w){var I=this,M=new XMLHttpRequest,Y=k(S,!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;J.xhr=M}}catch(ye){Y.e(ye)}finally{Y.f()}S[0].upload.chunked&&(S[0].upload.chunks[w[0].chunkIndex].xhr=M);var X=this.resolveOption(this.options.method,S),A=this.resolveOption(this.options.url,S);M.open(X,A,!0);var T=this.resolveOption(this.options.timeout,S);T&&(M.timeout=this.resolveOption(this.options.timeout,S)),M.withCredentials=!!this.options.withCredentials,M.onload=function(ye){I._finishedUploading(S,M,ye)},M.ontimeout=function(){I._handleUploadError(S,M,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},M.onerror=function(){I._handleUploadError(S,M)};var H=M.upload!=null?M.upload:M;H.onprogress=function(ye){return I._updateFilesUploadProgress(S,M,ye)};var Z={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&x.extend(Z,this.options.headers);for(var le in Z){var ge=Z[le];ge&&M.setRequestHeader(le,ge)}var Ae=new FormData;if(this.options.params){var q=this.options.params;typeof q=="function"&&(q=q.call(this,S,M,S[0].upload.chunked?this._getChunk(S[0],M):null));for(var se in q){var _e=q[se];if(Array.isArray(_e))for(var $e=0;$e<_e.length;$e++)Ae.append(se,_e[$e]);else Ae.append(se,_e)}}var it=k(S,!0),ct;try{for(it.s();!(ct=it.n()).done;){var Ut=ct.value;this.emit("sending",Ut,M,Ae)}}catch(ye){it.e(ye)}finally{it.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",S,M,Ae),this._addFormElementData(Ae);for(var re=0;re<w.length;re++){var ve=w[re];Ae.append(ve.name,ve.data,ve.filename)}this.submitRequest(M,Ae,S)}},{key:"_transformFiles",value:function(S,w){for(var I=this,M=[],Y=0,G=function(A){I.options.transformFile.call(I,S[A],function(T){M[A]=T,++Y===S.length&&w(M)})},J=0;J<S.length;J++)G(J)}},{key:"_addFormElementData",value:function(S){if(this.element.tagName==="FORM"){var w=k(this.element.querySelectorAll("input, textarea, select, button"),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value,Y=M.getAttribute("name"),G=M.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof Y>"u"||Y===null))if(M.tagName==="SELECT"&&M.hasAttribute("multiple")){var J=k(M.options,!0),X;try{for(J.s();!(X=J.n()).done;){var A=X.value;A.selected&&S.append(Y,A.value)}}catch(T){J.e(T)}finally{J.f()}}else(!G||G!=="checkbox"&&G!=="radio"||M.checked)&&S.append(Y,M.value)}}catch(T){w.e(T)}finally{w.f()}}}},{key:"_updateFilesUploadProgress",value:function(S,w,I){if(S[0].upload.chunked){var J=S[0],X=this._getChunk(J,w);I?(X.progress=100*I.loaded/I.total,X.total=I.total,X.bytesSent=I.loaded):(X.progress=100,X.bytesSent=X.total),J.upload.progress=0,J.upload.total=0,J.upload.bytesSent=0;for(var A=0;A<J.upload.totalChunkCount;A++)J.upload.chunks[A]&&typeof J.upload.chunks[A].progress<"u"&&(J.upload.progress+=J.upload.chunks[A].progress,J.upload.total+=J.upload.chunks[A].total,J.upload.bytesSent+=J.upload.chunks[A].bytesSent);J.upload.progress=J.upload.progress/J.upload.totalChunkCount,this.emit("uploadprogress",J,J.upload.progress,J.upload.bytesSent)}else{var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(I?(G.upload.progress=100*I.loaded/I.total,G.upload.total=I.total,G.upload.bytesSent=I.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(T){M.e(T)}finally{M.f()}}}},{key:"_finishedUploading",value:function(S,w,I){var M;if(S[0].status!==x.CANCELED&&w.readyState===4){if(w.responseType!=="arraybuffer"&&w.responseType!=="blob"&&(M=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json")))try{M=JSON.parse(M)}catch(Y){I=Y,M="Invalid JSON response from server."}this._updateFilesUploadProgress(S,w),200<=w.status&&w.status<300?S[0].upload.chunked?S[0].upload.finishedChunkUpload(this._getChunk(S[0],w),M):this._finished(S,M,I):this._handleUploadError(S,w,M)}}},{key:"_handleUploadError",value:function(S,w,I){if(S[0].status!==x.CANCELED){if(S[0].upload.chunked&&this.options.retryChunks){var M=this._getChunk(S[0],w);if(M.retries++<this.options.retryChunksLimit){this._uploadData(S,[M.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(S,I||this.options.dictResponseError.replace("{{statusCode}}",w.status),w)}}},{key:"submitRequest",value:function(S,w,I){if(S.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}S.send(w)}},{key:"_finished",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.SUCCESS,this.emit("success",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.ERROR,this.emit("error",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(S){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];for(var Y=0,G=I;Y<G.length;Y++){var J=G[Y];for(var X in J){var A=J[X];S[X]=A}}return S}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){var w=Math.random()*16|0,I=S==="x"?w:w&3|8;return I.toString(16)})}}]),x}(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(D){if(D.getAttribute("id"))return U.options[ne(D.getAttribute("id"))]},U.instances=[],U.forElement=function(D){if(typeof D=="string"&&(D=document.querySelector(D)),(D!=null?D.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return D.dropzone},U.autoDiscover=!0,U.discover=function(){var D;if(document.querySelectorAll)D=document.querySelectorAll(".dropzone");else{D=[];var R=function(B){return function(){var S=[],w=k(B,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;/(^| )dropzone($| )/.test(M.className)?S.push(D.push(M)):S.push(void 0)}}catch(Y){w.e(Y)}finally{w.f()}return S}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var x=[],B=k(D,!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;U.optionsForElement(w)!==!1?x.push(new U(w)):x.push(void 0)}}catch(I){B.e(I)}finally{B.f()}return x}()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var D=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))D=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var R=k(U.blockedBrowsers,!0),x;try{for(R.s();!(x=R.n()).done;){var B=x.value;if(B.test(navigator.userAgent)){D=!1;continue}}}catch(S){R.e(S)}finally{R.f()}}else D=!1;return D},U.dataURItoBlob=function(D){for(var R=atob(D.split(",")[1]),x=D.split(",")[0].split(":")[1].split(";")[0],B=new ArrayBuffer(R.length),S=new Uint8Array(B),w=0,I=R.length,M=0<=I;M?w<=I:w>=I;M?w++:w--)S[w]=R.charCodeAt(w);return new Blob([B],{type:x})};var ee=function(R,x){return R.filter(function(B){return B!==x}).map(function(B){return B})},ne=function(R){return R.replace(/[\-_](\w)/g,function(x){return x.charAt(1).toUpperCase()})};U.createElement=function(D){var R=document.createElement("div");return R.innerHTML=D,R.childNodes[0]},U.elementInside=function(D,R){if(D===R)return!0;for(;D=D.parentNode;)if(D===R)return!0;return!1},U.getElement=function(D,R){var x;if(typeof D=="string"?x=document.querySelector(D):D.nodeType!=null&&(x=D),x==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return x},U.getElements=function(D,R){var x,B;if(D instanceof Array){B=[];try{var S=k(D,!0),w;try{for(S.s();!(w=S.n()).done;)x=w.value,B.push(this.getElement(x,R))}catch(Y){S.e(Y)}finally{S.f()}}catch{B=null}}else if(typeof D=="string"){B=[];var I=k(document.querySelectorAll(D),!0),M;try{for(I.s();!(M=I.n()).done;)x=M.value,B.push(x)}catch(Y){I.e(Y)}finally{I.f()}}else D.nodeType!=null&&(B=[D]);if(B==null||!B.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return B},U.confirm=function(D,R,x){if(window.confirm(D))return R();if(x!=null)return x()},U.isValidFile=function(D,R){if(!R)return!0;R=R.split(",");var x=D.type,B=x.replace(/\/.*$/,""),S=k(R,!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;if(I=I.trim(),I.charAt(0)==="."){if(D.name.toLowerCase().indexOf(I.toLowerCase(),D.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(B===I.replace(/\/.*$/,""))return!0}else if(x===I)return!0}}catch(M){S.e(M)}finally{S.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(D){return this.each(function(){return new U(this,D)})}),U.ADDED="added",U.QUEUED="queued",U.ACCEPTED=U.QUEUED,U.UPLOADING="uploading",U.PROCESSING=U.UPLOADING,U.CANCELED="canceled",U.ERROR="error",U.SUCCESS="success";var ae=function(R){R.naturalWidth;var x=R.naturalHeight,B=document.createElement("canvas");B.width=1,B.height=x;var S=B.getContext("2d");S.drawImage(R,0,0);for(var w=S.getImageData(1,0,1,x),I=w.data,M=0,Y=x,G=x;G>M;){var J=I[(G-1)*4+3];J===0?Y=G:M=G,G=Y+M>>1}var X=G/x;return X===0?1:X},ue=function(R,x,B,S,w,I,M,Y,G,J){var X=ae(x);return R.drawImage(x,B,S,w,I,M,Y,G,J/X)},me=function(){function D(){L(this,D)}return j(D,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(x){for(var B="",S=void 0,w=void 0,I="",M=void 0,Y=void 0,G=void 0,J="",X=0;S=x[X++],w=x[X++],I=x[X++],M=S>>2,Y=(S&3)<<4|w>>4,G=(w&15)<<2|I>>6,J=I&63,isNaN(w)?G=J=64:isNaN(I)&&(J=64),B=B+this.KEY_STR.charAt(M)+this.KEY_STR.charAt(Y)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(J),S=w=I="",M=Y=G=J="",X<x.length;);return B}},{key:"restore",value:function(x,B){if(!x.match("data:image/jpeg;base64,"))return B;var S=this.decode64(x.replace("data:image/jpeg;base64,","")),w=this.slice2Segments(S),I=this.exifManipulation(B,w);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(x,B){var S=this.getExifArray(B),w=this.insertExif(x,S),I=new Uint8Array(w);return I}},{key:"getExifArray",value:function(x){for(var B=void 0,S=0;S<x.length;){if(B=x[S],B[0]===255&B[1]===225)return B;S++}return[]}},{key:"insertExif",value:function(x,B){var S=x.replace("data:image/jpeg;base64,",""),w=this.decode64(S),I=w.indexOf(255,3),M=w.slice(0,I),Y=w.slice(I),G=M;return G=G.concat(B),G=G.concat(Y),G}},{key:"slice2Segments",value:function(x){for(var B=0,S=[];;){var w;if(x[B]===255&x[B+1]===218)break;if(x[B]===255&x[B+1]===216)B+=2;else{w=x[B+2]*256+x[B+3];var I=B+w+2,M=x.slice(B,I);S.push(M),B=I}if(B>x.length)break}return S}},{key:"decode64",value:function(x){var B=void 0,S=void 0,w="",I=void 0,M=void 0,Y=void 0,G="",J=0,X=[],A=/[^A-Za-z0-9\+\/\=]/g;for(A.exec(x)&&console.warn(`There were invalid base64 characters in the input text.
1229
+ `,$_={root:function(e){var n=e.instance,r=e.props;return["p-splitbutton p-component",{"p-splitbutton-raised":r.raised,"p-splitbutton-rounded":r.rounded,"p-splitbutton-fluid":n.hasFluid}]},pcButton:"p-splitbutton-button",pcDropdown:"p-splitbutton-dropdown"},V_=mt.extend({name:"splitbutton",style:R_,classes:$_}),F_={name:"BaseSplitButton",extends:ds,props:{label:{type:String,default:null},icon:{type:String,default:null},model:{type:Array,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1},fluid:{type:Boolean,default:null},class:{type:null,default:null},style:{type:null,default:null},buttonProps:{type:null,default:null},menuButtonProps:{type:null,default:null},menuButtonIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:V_,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Hm={name:"SplitButton",extends:F_,inheritAttrs:!1,emits:["click"],inject:{$pcFluid:{default:null}},data:function(){return{isExpanded:!1}},mounted:function(){var e=this;this.$watch("$refs.menu.visible",function(n){e.isExpanded=n})},methods:{onDropdownButtonClick:function(e){e&&e.preventDefault(),this.$refs.menu.toggle({currentTarget:this.$el,relatedTarget:this.$refs.button.$el}),this.isExpanded=this.$refs.menu.visible},onDropdownKeydown:function(e){(e.code==="ArrowDown"||e.code==="ArrowUp")&&(this.onDropdownButtonClick(),e.preventDefault())},onDefaultButtonClick:function(e){this.isExpanded&&this.$refs.menu.hide(e),this.$emit("click",e)}},computed:{containerClass:function(){return[this.cx("root"),this.class]},hasFluid:function(){return Tn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Vm,PVSMenu:Um,ChevronDownIcon:mm}},j_=["data-p-severity"];function z_(t,e,n,r,o,i){var s=l.resolveComponent("PVSButton"),c=l.resolveComponent("PVSMenu");return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[l.createVNode(s,l.mergeProps({type:"button",class:t.cx("pcButton"),label:t.label,disabled:t.disabled,severity:t.severity,text:t.text,icon:t.icon,outlined:t.outlined,size:t.size,fluid:t.fluid,"aria-label":t.label,onClick:i.onDefaultButtonClick},t.buttonProps,{pt:t.ptm("pcButton"),unstyled:t.unstyled}),l.createSlots({default:l.withCtx(function(){return[l.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"icon",{class:l.normalizeClass(a.class)},function(){return[l.createElementVNode("span",l.mergeProps({class:[t.icon,a.class]},t.ptm("pcButton").icon,{"data-pc-section":"buttonicon"}),null,16)]})]}),key:"0"}:void 0]),1040,["class","label","disabled","severity","text","icon","outlined","size","fluid","aria-label","onClick","pt","unstyled"]),l.createVNode(s,l.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":t.$id+"_overlay",onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:l.withCtx(function(a){return[l.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:l.normalizeClass(a.class)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),l.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,a.class]},t.ptm("pcDropdown").icon,{"data-pc-section":"menubuttonicon"}),null,16,["class"]))]})]}),_:3},16,["class","disabled","aria-expanded","aria-controls","onClick","onKeydown","severity","text","outlined","size","unstyled","pt"]),l.createVNode(c,{ref:"menu",id:t.$id+"_overlay",model:t.model,popup:!0,autoZIndex:t.autoZIndex,baseZIndex:t.baseZIndex,appendTo:t.appendTo,unstyled:t.unstyled,pt:t.ptm("pcMenu")},l.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"menuitemicon",{item:a.item,class:l.normalizeClass(a.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:l.withCtx(function(a){return[l.renderSlot(t.$slots,"item",{item:a.item,hasSubmenu:a.hasSubmenu,label:a.label,props:a.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,j_)}Hm.render=z_;const ZF="",U_=["src"],H_={class:"menu-item"},W_=["src"],Wm=Ee({__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o=l.computed(()=>n.contentLibraryProviders.map(d=>({label:d.label,image:d.img,value:d.value,command:()=>e("content-library",d.value)}))),i=l.computed(()=>{let d=o.value;return d.length!==0&&n.isExternalOnly&&(d=d.slice(1)),d}),s=l.computed(()=>{const d=o.value;return n.isExternalOnly&&d.length>0?d[0].label:r("contentLibrarySplitButton.messageTemplatesTitle")}),c=l.computed(()=>{const d=o.value;return n.isExternalOnly&&d.length>0?d[0].image:"/Portaal/Zorgverlener/assets/icons/icon-comment.svg"}),a=()=>{const d=o.value;let u="message-template";n.isExternalOnly&&d.length>0&&(u=d[0].value),e("content-library",u)};return(d,u)=>(l.openBlock(),l.createBlock(l.unref(Hm),{model:i.value,outlined:"",severity:"secondary",onClick:a},{default:l.withCtx(()=>[l.createElementVNode("img",{src:c.value,alt:""},null,8,U_),l.createElementVNode("span",null,l.toDisplayString(s.value),1)]),item:l.withCtx(({item:f})=>[l.createElementVNode("div",H_,[l.createElementVNode("img",{src:f.image,alt:"",class:"icon-image"},null,8,W_),l.createElementVNode("span",null,l.toDisplayString(f.label),1)])]),_:1},8,["model"]))}},[["__scopeId","data-v-44f01785"]]),K_={class:"invalid-feedback bd-invalid-feedback"},La=l.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(l.openBlock(),l.createElementBlock("div",K_,[e.state?(l.openBlock(),l.createBlock(l.unref($o),{key:0})):(l.openBlock(),l.createBlock(l.unref(la),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var Y_=Object.defineProperty,G_=(t,e,n)=>e in t?Y_(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ys=(t,e,n)=>(G_(t,typeof e!="symbol"?e+"":e,n),n);const Km={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class Ym{constructor(e={}){ys(this,"opts",{}),ys(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Km,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Km;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=n.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(n==null)return e;const o=`value=${e},mask=${n},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],a=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<i.length&&C<e.length,p=b=>!this.isReversed()&&b<=f||this.isReversed()&&b>=f;let m,g=-1,y=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,E=!1;for(;h();){const b=i.charAt(y),v=a[b],k=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(C)):e.charAt(C);if(!s.includes(y)&&v!=null?(k.match(v.pattern)!=null?(c[u](k),v.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-d),f===g&&(y-=d)):v.multiple&&(E=!0,y-=d),y+=d):v.multiple?E&&(y+=d,C-=d,E=!1):k===m?m=void 0:v.optional&&(y+=d,C-=d),C+=d):(r&&!this.isEager()&&c[u](b),k===b&&!this.isEager()?C+=d:m=b,this.isEager()||(y+=d)),this.isEager())for(;p(y)&&(a[i.charAt(y)]==null||s.includes(y));)r?c[u](i.charAt(y)):i.charAt(y)===e.charAt(C)&&(C+=d),y+=d}return this.memo.set(o,c.join("")),this.memo.get(o)}}const Gm=t=>JSON.parse(t.replaceAll("'",'"')),Qm=(t,e={})=>{const n={...e};return t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Q_(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Pd(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Pd(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Pd(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Z_(t.dataset.maskaTokens)),n},Pd=t=>t!==""?!!JSON.parse(t):!0,Q_=t=>t.startsWith("[")&&t.endsWith("]")?Gm(t):t,Z_=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Gm(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class J_{constructor(e,n={}){ys(this,"items",new Map),ys(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),ys(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,c=o.selectionStart,a=o.selectionEnd;let d=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?d=r.data:f!==i.unmasked(u)&&(d=f)}if(this.setMaskedValue(o,d),"inputType"in r&&(r.inputType.startsWith("delete")||c!=null&&c<s.length))try{o.setSelectionRange(c,a)}catch{}}),this.options=n,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(n)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(n))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,n){const r=this.items.get(e),o=new Ym(Qm(e,this.getMaskOpts(n)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const n=e.dataset.maskaValue;return n==null&&e.value!==""||n!=null&&n!==e.value}getMaskOpts(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}init(e,n){for(const r of e){const o=new Ym(Qm(r,n));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,n){const r=this.items.get(e);this.options.preProcess!=null&&(n=this.options.preProcess(n));const o=r.masked(n),i=r.unmasked(r.isEager()?o:n),s=r.completed(n),c={masked:o,unmasked:i,completed:s};n=o,this.options.postProcess!=null&&(n=this.options.postProcess(n)),e.value=n,e.dataset.maskaValue=n,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(a=>a(c)):this.options.onMaska(c)),e.dispatchEvent(new CustomEvent("maska",{detail:c})),e.dispatchEvent(new CustomEvent("input",{detail:c}))}}const Bd=new WeakMap,X_=t=>{setTimeout(()=>{var e;((e=Bd.get(t))==null?void 0:e.needUpdateValue(t))===!0&&t.dispatchEvent(new CustomEvent("input"))})},q_=(t,e)=>{const n=t instanceof HTMLInputElement?t:t.querySelector("input"),r={...e.arg};if(n==null||(n==null?void 0:n.type)==="file")return;X_(n);const o=Bd.get(n);if(o!=null){if(!o.needUpdateOptions(n,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=c=>{i.masked=c.masked,i.unmasked=c.unmasked,i.completed=c.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}Bd.set(n,new J_(n,r))},ew=["value","type"],Or=l.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:Mt.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=io(n,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,c=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():r.value}`,a=`validationFeedback${n.label?n.label.replace(/ /g,""):r.value}`,d=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),u=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),f=l.computed(()=>({placeholder:n.placeholder?n.placeholder:null,readonly:n.readonly===!0,disabled:n.disabled===!0,autofocus:n.autofocus===!0,tabindex:n.tabindex?n.tabindex:null,"aria-describedby":n.state===!1&&n.invalidFeedbackText?a:null,"data-maska":n.mask})),h=k6(p=>{o.value=p.target.value},n.delayTimeMs);return(p,m)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[l.renderSlot(p.$slots,"label",{},()=>[p.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:c,id:i,class:l.normalizeClass(["form-label",p.labelClass])},l.toDisplayString(p.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(p.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:p.modelValue,type:p.type,id:c,class:["form-control",d.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>l.unref(h)&&l.unref(h)(...g)),onClick:m[1]||(m[1]=g=>p.$emit("click")),onBlur:m[2]||(m[2]=g=>p.$emit("blur")),onKeydown:m[3]||(m[3]=l.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,ew),[[l.unref(q_)]]),l.renderSlot(p.$slots,"default")],2),l.createVNode(La,{text:p.invalidFeedbackText,class:l.normalizeClass(u.value),state:p.state,id:a},null,8,["text","class","state"])],2))}}),tw={class:"input-group bd-input-group"},nw=["for"],Rd=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=t,n=l.useAttrs();return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",tw,[e.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},l.toDisplayString(e.label),9,nw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(n).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),rw={key:0},ow={key:1},Zm=l.defineComponent({__name:"BDBadge",props:{variant:{default:ua.PRIMARY}},setup(t){const e=t,n=l.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(l.openBlock(),l.createElementBlock("span",{role:"status",class:l.normalizeClass(n.value)},[r.variant==="danger"?(l.openBlock(),l.createElementBlock("span",rw,[l.createVNode(l.unref(oo))])):l.createCommentVNode("",!0),r.variant==="success"?(l.openBlock(),l.createElementBlock("span",ow,[l.createVNode(l.unref($o))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),iw=["onSubmit","onReset"],Jm=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){function n(){e("submit")}function r(){e("reset")}return(o,i)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(n,["prevent"]),onReset:l.withModifiers(r,["prevent"])},[l.renderSlot(o.$slots,"default")],40,iw))}}),sw={"aria-label":"Page navigation",class:"bd-pagination"},aw={class:"page-item"},lw=["data-page"],cw=["data-page"],dw={class:"page-item"},uw=["data-page"],$d=l.defineComponent({__name:"BDPagination",props:{modelValue:{default:1},totalRows:{default:1},rowsPerPage:{default:10},isPatient:{type:Boolean,default:!0}},emits:["click","update:modelValue"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e),o=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),i=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{o.value=Math.ceil(n.totalRows/n.rowsPerPage),i.value=u(r.value)}),l.onMounted(()=>{i.value=u(r.value)});const s=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,i.value=u(p)),e("click",p)},a=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,d=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,u=f=>{const h=[],m=a(f,7,o.value),g=o.value>7&&f>4,y=o.value>7&&f<o.value-3,C=g&&y,E=d(f,7,o.value);for(let b=1;b<=m;b++)h.push(b);if(g&&h.push("..."),C)for(let b=f-1;b<=f+1;b++)h.push(b);y&&h.push("...");for(let b=1;b<=E;b++)h.push(o.value-E+b);return h};return(f,h)=>(l.openBlock(),l.createElementBlock("div",sw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",s.value])},[l.withDirectives(l.createElementVNode("li",aw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:c,"data-page":l.unref(r)-1},[l.createVNode(l.unref(Lc))],8,lw)],512),[[l.vShow,l.unref(r)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,p=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(r)===p,disabled:typeof p=="string"}]),key:p},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:c,"data-page":p},l.toDisplayString(p),9,cw)],2))),128)),l.withDirectives(l.createElementVNode("li",dw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:c,"data-page":l.unref(r)+1},[l.createVNode(l.unref(Dc))],8,uw)],512),[[l.vShow,l.unref(r)<o.value]])],2)]))}}),fw=["disabled"],hw=["label"],pw=["value"],mw=["value"],Xm=l.defineComponent({__name:"BDFormSelect",props:{size:{default:Mt.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,r=io(n,"modelValue",e),o=l.ref(null),{focused:i}=I6(o,{initialValue:n.autofocus}),s=l.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));l.watch(()=>n.autofocus,u=>{u&&(i.value=!0)});const c=u=>{r.value=u.target.value;let f=d(u.target.value);e("input",f)},a=u=>{let f=d(u.target.value);e("change",f)},d=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(r)?r.value=h:null),disabled:n.disabled,ref_key:"input",ref:o,onInput:c,onChange:a},[l.renderSlot(u.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(n.options,h=>(l.openBlock(),l.createElementBlock("optgroup",{label:h.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(h.options,p=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},l.toDisplayString(p.text),9,pw))),128))],8,hw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,h=>(l.openBlock(),l.createElementBlock("option",{value:h.value,key:h.value},l.toDisplayString(h.text),9,mw))),128))],42,fw)),[[l.vModelSelect,l.unref(r)]])}}),gw=["value","true-value","false-value","data-checked"],Da=l.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=io(n,"modelValue",e),i=`form-check-input-${r.value}`,s=l.computed(()=>["form-check","bd-form-checkbox"]),c=l.computed(()=>({"form-check-input":!0,"is-invalid":n.state===!1})),a=d=>e("change",d.target.value);return(d,u)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(s.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>l.isRef(o)?o.value=f:null),id:i,class:l.normalizeClass(c.value),type:"checkbox",value:d.value,"true-value":d.value,"false-value":d.uncheckedValue,"data-checked":l.unref(o)===d.value,onChange:a},null,42,gw),[[l.vModelCheckbox,l.unref(o)]]),l.createElementVNode("label",{class:"form-check-label",for:i},[l.renderSlot(d.$slots,"default")]),l.renderSlot(d.$slots,"last")],2))}}),yw={key:0,class:"bd-article__body"},vw={key:1},qm=l.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=o=>e("click",{event:o,identifier:n.identifier});return(o,i)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:r},[l.createElementVNode("header",null,[l.renderSlot(o.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",yw,[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",vw,[l.renderSlot(o.$slots,"footer")]))]))}}),Zo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},bw=["id"],Cw={class:"toast-header"},Ew=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),Sw={class:"toast-body"},Vd=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Zo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Zo.SUCCESS);return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[l.createElementVNode("div",Cw,[r.value?(l.openBlock(),l.createBlock(l.unref(oo),{key:0})):(l.openBlock(),l.createBlock(l.unref($o),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),Ew]),l.createElementVNode("div",Sw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,bw))}}),Be="",Pa=t=>typeof t=="string"||t instanceof String,_w={class:"bd-pill"},ww=["src"],kw={class:"bd-pill__description"},Aw=["href"],Tw=["id","textContent","title"],Iw=["id","textContent","title"],Ba=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:Be},uri:{default:Be},uriDisplayName:{default:Be},title:{default:Be},subtitle:{default:Be},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Fo(),o=l.computed(()=>n.uri),i=l.computed(()=>n.uriDisplayName!==Be?n.uriDisplayName:n.uri),s=l.computed(()=>n.imgSrc),c=l.computed(()=>n.title),a=l.computed(()=>n.subtitle),d=l.computed(()=>`bd-pill-title-${r.value}`),u=l.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",_w,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,ww),l.createElementVNode("div",kw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(ca),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Aw),l.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,Tw),l.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Iw)])]))}});function xw(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;const Ow=t=>Array.isArray(t)&&t.length>0,Nw=t=>Object.keys(t).map(e=>t[e]),Fd=t=>Array.isArray(t)&&t.length>0,e0=t=>!t||Array.isArray(t)&&!t.length,jd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=xw(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?l.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[l.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const a=l.h("div",{class:"bd-user-information__header"},c),d=l.h("small",null,Nw(o).filter(f=>f).join(" • ")),u=l.h("div",{class:"bd-user-information__detail"},[a,d]);return l.h("div",{class:"bd-user-information"},[i,u])}},Ra=l.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=()=>{e("click")};return(o,i)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},o.$attrs),[l.createVNode(ro,l.mergeProps({class:"dropdown-item",onClick:r},n),{default:l.withCtx(()=>[l.renderSlot(o.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ud(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var t0={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(self,function(){return function(){var n={3099:function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,c,a){var d=a(5112),u=a(30),f=a(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,c,a){var d=a(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}},5787:function(s){s.exports=function(c,a,d){if(!(c instanceof a))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}},9670:function(s,c,a){var d=a(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,c,a){var d=a(4019),u=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),y=a(1320),C=a(3070).f,E=a(9518),b=a(7674),v=a(5112),k=a(9711),_=f.Int8Array,O=_&&_.prototype,L=f.Uint8ClampedArray,N=L&&L.prototype,j=_&&E(_),V=O&&E(O),P=Object.prototype,z=P.isPrototypeOf,K=v("toStringTag"),F=k("TYPED_ARRAY_TAG"),W=d&&!!b&&m(f.opera)!=="Opera",Q=!1,U,ee={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(D){if(!h(D))return!1;var R=m(D);return R==="DataView"||p(ee,R)||p(ne,R)},ue=function(Se){if(!h(Se))return!1;var D=m(Se);return p(ee,D)||p(ne,D)},me=function(Se){if(ue(Se))return Se;throw TypeError("Target is not a typed array")},Ce=function(Se){if(b){if(z.call(j,Se))return Se}else for(var D in ee)if(p(ee,U)){var R=f[D];if(R&&(Se===R||z.call(R,Se)))return Se}throw TypeError("Target is not a typed array constructor")},ke=function(Se,D,R){if(u){if(R)for(var x in ee){var B=f[x];B&&p(B.prototype,Se)&&delete B.prototype[Se]}(!V[Se]||R)&&y(V,Se,R?D:W&&O[Se]||D)}},Oe=function(Se,D,R){var x,B;if(u){if(b){if(R)for(x in ee)B=f[x],B&&p(B,Se)&&delete B[Se];if(!j[Se]||R)try{return y(j,Se,R?D:W&&_[Se]||D)}catch{}else return}for(x in ee)B=f[x],B&&(!B[Se]||R)&&y(B,Se,D)}};for(U in ee)f[U]||(W=!1);if((!W||typeof j!="function"||j===Function.prototype)&&(j=function(){throw TypeError("Incorrect invocation")},W))for(U in ee)f[U]&&b(f[U],j);if((!W||!V||V===P)&&(V=j.prototype,W))for(U in ee)f[U]&&b(f[U].prototype,V);if(W&&E(N)!==V&&b(N,V),u&&!p(V,K)){Q=!0,C(V,K,{get:function(){return h(this)?this[F]:void 0}});for(U in ee)f[U]&&g(f[U],F,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_TAG:Q&&F,aTypedArray:me,aTypedArrayConstructor:Ce,exportTypedArrayMethod:ke,exportTypedArrayStaticMethod:Oe,isView:ae,isTypedArray:ue,TypedArray:j,TypedArrayPrototype:V}},3331:function(s,c,a){var d=a(7854),u=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),y=a(9958),C=a(7466),E=a(7067),b=a(1179),v=a(9518),k=a(7674),_=a(8006).f,O=a(3070).f,L=a(1285),N=a(8003),j=a(9909),V=j.get,P=j.set,z="ArrayBuffer",K="DataView",F="prototype",W="Wrong length",Q="Wrong index",U=d[z],ee=U,ne=d[K],ae=ne&&ne[F],ue=Object.prototype,me=d.RangeError,Ce=b.pack,ke=b.unpack,Oe=function(T){return[T&255]},Se=function(T){return[T&255,T>>8&255]},D=function(T){return[T&255,T>>8&255,T>>16&255,T>>24&255]},R=function(T){return T[3]<<24|T[2]<<16|T[1]<<8|T[0]},x=function(T){return Ce(T,23,4)},B=function(T){return Ce(T,52,8)},S=function(T,H){O(T[F],H,{get:function(){return V(this)[H]}})},w=function(T,H,Z,le){var ge=E(Z),Ae=V(T);if(ge+H>Ae.byteLength)throw me(Q);var q=V(Ae.buffer).bytes,se=ge+Ae.byteOffset,_e=q.slice(se,se+H);return le?_e:_e.reverse()},I=function(T,H,Z,le,ge,Ae){var q=E(Z),se=V(T);if(q+H>se.byteLength)throw me(Q);for(var _e=V(se.buffer).bytes,$e=q+se.byteOffset,it=le(+ge),ct=0;ct<H;ct++)_e[$e+ct]=it[Ae?ct:H-ct-1]};if(!f)ee=function(H){g(this,ee,z);var Z=E(H);P(this,{bytes:L.call(new Array(Z),0),byteLength:Z}),u||(this.byteLength=Z)},ne=function(H,Z,le){g(this,ne,K),g(H,ee,K);var ge=V(H).byteLength,Ae=y(Z);if(Ae<0||Ae>ge)throw me("Wrong offset");if(le=le===void 0?ge-Ae:C(le),Ae+le>ge)throw me(W);P(this,{buffer:H,byteLength:le,byteOffset:Ae}),u||(this.buffer=H,this.byteLength=le,this.byteOffset=Ae)},u&&(S(ee,"byteLength"),S(ne,"buffer"),S(ne,"byteLength"),S(ne,"byteOffset")),p(ne[F],{getInt8:function(H){return w(this,1,H)[0]<<24>>24},getUint8:function(H){return w(this,1,H)[0]},getInt16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return(Z[1]<<8|Z[0])<<16>>16},getUint16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return Z[1]<<8|Z[0]},getInt32:function(H){return R(w(this,4,H,arguments.length>1?arguments[1]:void 0))},getUint32:function(H){return R(w(this,4,H,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(H){return ke(w(this,4,H,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(H){return ke(w(this,8,H,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(H,Z){I(this,1,H,Oe,Z)},setUint8:function(H,Z){I(this,1,H,Oe,Z)},setInt16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setUint16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setInt32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setUint32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setFloat32:function(H,Z){I(this,4,H,x,Z,arguments.length>2?arguments[2]:void 0)},setFloat64:function(H,Z){I(this,8,H,B,Z,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){U(1)})||!m(function(){new U(-1)})||m(function(){return new U,new U(1.5),new U(NaN),U.name!=z})){ee=function(H){return g(this,ee),new U(E(H))};for(var M=ee[F]=U[F],Y=_(U),G=0,J;Y.length>G;)(J=Y[G++])in ee||h(ee,J,U[J]);M.constructor=ee}k&&v(ae)!==ue&&k(ae,ue);var X=new ne(new ee(2)),A=ae.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),(X.getInt8(0)||!X.getInt8(1))&&p(ae,{setInt8:function(H,Z){A.call(this,H,Z<<24>>24)},setUint8:function(H,Z){A.call(this,H,Z<<24>>24)}},{unsafe:!0})}N(ee,z),N(ne,K),s.exports={ArrayBuffer:ee,DataView:ne}},1048:function(s,c,a){var d=a(7908),u=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var y=d(this),C=f(y.length),E=u(m,C),b=u(g,C),v=arguments.length>2?arguments[2]:void 0,k=h((v===void 0?C:u(v,C))-b,C-E),_=1;for(b<E&&E<b+k&&(_=-1,b+=k-1,E+=k-1);k-- >0;)b in y?y[E]=y[b]:delete y[E],E+=_,b+=_;return y}},1285:function(s,c,a){var d=a(7908),u=a(1400),f=a(7466);s.exports=function(p){for(var m=d(this),g=f(m.length),y=arguments.length,C=u(y>1?arguments[1]:void 0,g),E=y>2?arguments[2]:void 0,b=E===void 0?g:u(E,g);b>C;)m[C++]=p;return m}},8533:function(s,c,a){var d=a(2092).forEach,u=a(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,c,a){var d=a(9974),u=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(C){var E=u(C),b=typeof this=="function"?this:Array,v=arguments.length,k=v>1?arguments[1]:void 0,_=k!==void 0,O=g(E),L=0,N,j,V,P,z,K;if(_&&(k=d(k,v>2?arguments[2]:void 0,2)),O!=null&&!(b==Array&&h(O)))for(P=O.call(E),z=P.next,j=new b;!(V=z.call(P)).done;L++)K=_?f(P,k,[V.value,L],!0):V.value,m(j,L,K);else for(N=p(E.length),j=new b(N);N>L;L++)K=_?k(E[L],L):E[L],m(j,L,K);return j.length=L,j}},1318:function(s,c,a){var d=a(5656),u=a(7466),f=a(1400),h=function(p){return function(m,g,y){var C=d(m),E=u(C.length),b=f(y,E),v;if(p&&g!=g){for(;E>b;)if(v=C[b++],v!=v)return!0}else for(;E>b;b++)if((p||b in C)&&C[b]===g)return p||b||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,c,a){var d=a(9974),u=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(y){var C=y==1,E=y==2,b=y==3,v=y==4,k=y==6,_=y==7,O=y==5||k;return function(L,N,j,V){for(var P=f(L),z=u(P),K=d(N,j,3),F=h(z.length),W=0,Q=V||p,U=C?Q(L,F):E||_?Q(L,0):void 0,ee,ne;F>W;W++)if((O||W in z)&&(ee=z[W],ne=K(ee,W,P),y))if(C)U[W]=ne;else if(ne)switch(y){case 3:return!0;case 5:return ee;case 6:return W;case 2:m.call(U,ee)}else switch(y){case 4:return!1;case 7:m.call(U,ee)}return k?-1:b||v?v:U}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(s,c,a){var d=a(5656),u=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,y=h("lastIndexOf"),C=g||!y;s.exports=C?function(b){if(g)return m.apply(this,arguments)||0;var v=d(this),k=f(v.length),_=k-1;for(arguments.length>1&&(_=p(_,u(arguments[1]))),_<0&&(_=k+_);_>=0;_--)if(_ in v&&v[_]===b)return _||0;return-1}:m},1194:function(s,c,a){var d=a(7293),u=a(5112),f=a(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(s,c,a){var d=a(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,c,a){var d=a(3099),u=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,y,C,E){d(y);var b=u(g),v=f(b),k=h(b.length),_=m?k-1:0,O=m?-1:1;if(C<2)for(;;){if(_ in v){E=v[_],_+=O;break}if(_+=O,m?_<0:k<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:k>_;_+=O)_ in v&&(E=y(E,v[_],_,b));return E}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,c,a){var d=a(111),u=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:d(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}},3411:function(s,c,a){var d=a(9670),u=a(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}},7072:function(s,c,a){var d=a(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[u]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}},648:function(s,c,a){var d=a(1694),u=a(4326),f=a(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};s.exports=d?u:function(g){var y,C,E;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?u(y):(E=u(y))=="Object"&&typeof y.callee=="function"?"Arguments":E}},9920:function(s,c,a){var d=a(6656),u=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=u(m),y=h.f,C=f.f,E=0;E<g.length;E++){var b=g[E];d(p,b)||y(p,b,C(m,b))}}},8544:function(s,c,a){var d=a(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,c,a){var d=a(3383).IteratorPrototype,u=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,y,C){var E=y+" Iterator";return g.prototype=u(d,{next:f(1,C)}),h(g,E,!1,!0),p[E]=m,g}},8880:function(s,c,a){var d=a(9781),u=a(3070),f=a(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(c,a){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:a}}},6135:function(s,c,a){var d=a(7593),u=a(3070),f=a(9114);s.exports=function(h,p,m){var g=d(p);g in h?u.f(h,g,f(0,m)):h[g]=m}},654:function(s,c,a){var d=a(2109),u=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),y=a(5112),C=a(1913),E=a(7497),b=a(3383),v=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,_=y("iterator"),O="keys",L="values",N="entries",j=function(){return this};s.exports=function(V,P,z,K,F,W,Q){u(z,P,K);var U=function(D){if(D===F&&me)return me;if(!k&&D in ae)return ae[D];switch(D){case O:return function(){return new z(this,D)};case L:return function(){return new z(this,D)};case N:return function(){return new z(this,D)}}return function(){return new z(this)}},ee=P+" Iterator",ne=!1,ae=V.prototype,ue=ae[_]||ae["@@iterator"]||F&&ae[F],me=!k&&ue||U(F),Ce=P=="Array"&&ae.entries||ue,ke,Oe,Se;if(Ce&&(ke=f(Ce.call(new V)),v!==Object.prototype&&ke.next&&(!C&&f(ke)!==v&&(h?h(ke,v):typeof ke[_]!="function"&&m(ke,_,j)),p(ke,ee,!0,!0),C&&(E[ee]=j))),F==L&&ue&&ue.name!==L&&(ne=!0,me=function(){return ue.call(this)}),(!C||Q)&&ae[_]!==me&&m(ae,_,me),E[P]=me,F)if(Oe={values:U(L),keys:W?me:U(O),entries:U(N)},Q)for(Se in Oe)(k||ne||!(Se in ae))&&g(ae,Se,Oe[Se]);else d({target:P,proto:!0,forced:k||ne},Oe);return Oe}},9781:function(s,c,a){var d=a(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,c,a){var d=a(7854),u=a(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,c,a){var d=a(5005);s.exports=d("navigator","userAgent")||""},7392:function(s,c,a){var d=a(7854),u=a(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,c,a){var d=a(7854),u=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(y,C){var E=y.target,b=y.global,v=y.stat,k,_,O,L,N,j;if(b?_=d:v?_=d[E]||p(E,{}):_=(d[E]||{}).prototype,_)for(O in C){if(N=C[O],y.noTargetGet?(j=u(_,O),L=j&&j.value):L=_[O],k=g(b?O:E+(v?".":"#")+O,y.forced),!k&&L!==void 0){if(typeof N==typeof L)continue;m(N,L)}(y.sham||L&&L.sham)&&f(N,"sham",!0),h(_,O,N,y)}}},7293:function(s){s.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(s,c,a){a(4916);var d=a(1320),u=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!u(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),E=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),b=!u(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var _="ab".split(v);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(v,k,_,O){var L=f(v),N=!u(function(){var F={};return F[L]=function(){return 7},""[v](F)!=7}),j=N&&!u(function(){var F=!1,W=/a/;return v==="split"&&(W={},W.constructor={},W.constructor[m]=function(){return W},W.flags="",W[L]=/./[L]),W.exec=function(){return F=!0,null},W[L](""),!F});if(!N||!j||v==="replace"&&!(g&&y&&!E)||v==="split"&&!b){var V=/./[L],P=_(L,""[v],function(F,W,Q,U,ee){return W.exec===h?N&&!ee?{done:!0,value:V.call(W,Q,U)}:{done:!0,value:F.call(Q,W,U)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),z=P[0],K=P[1];d(String.prototype,v,z),d(RegExp.prototype,L,k==2?function(F,W){return K.call(F,this,W)}:function(F){return K.call(F,this)})}O&&p(RegExp.prototype[L],"sham",!0)}},9974:function(s,c,a){var d=a(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}},5005:function(s,c,a){var d=a(857),u=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}},1246:function(s,c,a){var d=a(648),u=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}},8554:function(s,c,a){var d=a(9670),u=a(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}},647:function(s,c,a){var d=a(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,y,C,E,b){var v=y+m.length,k=C.length,_=p;return E!==void 0&&(E=d(E),_=h),f.call(b,_,function(O,L){var N;switch(L.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(v);case"<":N=E[L.slice(1,-1)];break;default:var j=+L;if(j===0)return O;if(j>k){var V=u(j/10);return V===0?O:V<=k?C[V-1]===void 0?L.charAt(1):C[V-1]+L.charAt(1):O}N=C[j-1]}return N===void 0?"":N})}},7854:function(s,c,a){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(s){var c={}.hasOwnProperty;s.exports=function(a,d){return c.call(a,d)}},3501:function(s){s.exports={}},490:function(s,c,a){var d=a(5005);s.exports=d("document","documentElement")},4664:function(s,c,a){var d=a(9781),u=a(7293),f=a(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var c=Math.abs,a=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),E=y*8-g-1,b=(1<<E)-1,v=b>>1,k=g===23?a(2,-24)-a(2,-77):0,_=m<0||m===0&&1/m<0?1:0,O=0,L,N,j;for(m=c(m),m!=m||m===1/0?(N=m!=m?1:0,L=b):(L=d(u(m)/f),m*(j=a(2,-L))<1&&(L--,j*=2),L+v>=1?m+=k/j:m+=k*a(2,1-v),m*j>=2&&(L++,j/=2),L+v>=b?(N=0,L=b):L+v>=1?(N=(m*j-1)*a(2,g),L=L+v):(N=m*a(2,v-1)*a(2,g),L=0));g>=8;C[O++]=N&255,N/=256,g-=8);for(L=L<<g|N,E+=g;E>0;C[O++]=L&255,L/=256,E-=8);return C[--O]|=_*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,E=(1<<C)-1,b=E>>1,v=C-7,k=y-1,_=m[k--],O=_&127,L;for(_>>=7;v>0;O=O*256+m[k],k--,v-=8);for(L=O&(1<<-v)-1,O>>=-v,v+=g;v>0;L=L*256+m[k],k--,v-=8);if(O===0)O=1-b;else{if(O===E)return L?NaN:_?-1/0:1/0;L=L+a(2,g),O=O-b}return(_?-1:1)*L*a(2,O-g)};s.exports={pack:h,unpack:p}},8361:function(s,c,a){var d=a(7293),u=a(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,c,a){var d=a(111),u=a(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(g=m.prototype)&&g!==p.prototype&&u(f,g),f}},2788:function(s,c,a){var d=a(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource},9909:function(s,c,a){var d=a(8536),u=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),y=a(3501),C=u.WeakMap,E,b,v,k=function(P){return v(P)?b(P):E(P,{})},_=function(P){return function(z){var K;if(!f(z)||(K=b(z)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return K}};if(d){var O=m.state||(m.state=new C),L=O.get,N=O.has,j=O.set;E=function(P,z){return z.facade=P,j.call(O,P,z),z},b=function(P){return L.call(O,P)||{}},v=function(P){return N.call(O,P)}}else{var V=g("state");y[V]=!0,E=function(P,z){return z.facade=P,h(P,V,z),z},b=function(P){return p(P,V)?P[V]:{}},v=function(P){return p(P,V)}}s.exports={set:E,get:b,has:v,enforce:k,getterFor:_}},7659:function(s,c,a){var d=a(5112),u=a(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,c,a){var d=a(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}},4705:function(s,c,a){var d=a(7293),u=/#|\.prototype\./,f=function(y,C){var E=p[h(y)];return E==g?!0:E==m?!1:typeof C=="function"?d(C):!!C},h=f.normalize=function(y){return String(y).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(s){s.exports=!1},7850:function(s,c,a){var d=a(111),u=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,c,a){var d=a(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}},3383:function(s,c,a){var d=a(7293),u=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),y=!1,C=function(){return this},E,b,v;[].keys&&(v=[].keys(),"next"in v?(b=u(u(v)),b!==Object.prototype&&(E=b)):y=!0);var k=E==null||d(function(){var _={};return E[g].call(_)!==_});k&&(E={}),(!m||k)&&!h(E,g)&&f(E,g,C),s.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:y}},7497:function(s){s.exports={}},133:function(s,c,a){var d=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},590:function(s,c,a){var d=a(7293),u=a(5112),f=a(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(y,C){m.delete("b"),g+=C+y}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,c,a){var d=a(7854),u=a(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,c,a){var d=a(9781),u=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),y=Object.assign,C=Object.defineProperty;s.exports=!y||u(function(){if(d&&y({b:1},y(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},b={},v=Symbol(),k="abcdefghijklmnopqrst";return E[v]=7,k.split("").forEach(function(_){b[_]=_}),y({},E)[v]!=7||f(y({},b)).join("")!=k})?function(b,v){for(var k=m(b),_=arguments.length,O=1,L=h.f,N=p.f;_>O;)for(var j=g(arguments[O++]),V=L?f(j).concat(L(j)):f(j),P=V.length,z=0,K;P>z;)K=V[z++],(!d||N.call(j,K))&&(k[K]=j[K]);return k}:y},30:function(s,c,a){var d=a(9670),u=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),y=">",C="<",E="prototype",b="script",v=g("IE_PROTO"),k=function(){},_=function(V){return C+b+y+V+C+"/"+b+y},O=function(V){V.write(_("")),V.close();var P=V.parentWindow.Object;return V=null,P},L=function(){var V=m("iframe"),P="java"+b+":",z;return V.style.display="none",p.appendChild(V),V.src=String(P),z=V.contentWindow.document,z.open(),z.write(_("document.F=Object")),z.close(),z.F},N,j=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}j=N?O(N):L();for(var V=f.length;V--;)delete j[E][f[V]];return j()};h[v]=!0,s.exports=Object.create||function(P,z){var K;return P!==null?(k[E]=d(P),K=new k,k[E]=null,K[v]=P):K=j(),z===void 0?K:u(K,z)}},6048:function(s,c,a){var d=a(9781),u=a(3070),f=a(9670),h=a(1956);s.exports=d?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,E=0,b;C>E;)u.f(m,b=y[E++],g[b]);return m}},3070:function(s,c,a){var d=a(9781),u=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=d?p:function(g,y,C){if(f(g),y=h(y,!0),f(C),u)try{return p(g,y,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[y]=C.value),g}},1236:function(s,c,a){var d=a(9781),u=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),y=Object.getOwnPropertyDescriptor;c.f=d?y:function(E,b){if(E=h(E),b=p(b,!0),g)try{return y(E,b)}catch{}if(m(E,b))return f(!u.f.call(E,b),E[b])}},8006:function(s,c,a){var d=a(6324),u=a(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}},5181:function(s,c){c.f=Object.getOwnPropertySymbols},9518:function(s,c,a){var d=a(6656),u=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),d(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(s,c,a){var d=a(6656),u=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=u(p),y=0,C=[],E;for(E in g)!d(h,E)&&d(g,E)&&C.push(E);for(;m.length>y;)d(g,E=m[y++])&&(~f(C,E)||C.push(E));return C}},1956:function(s,c,a){var d=a(6324),u=a(748);s.exports=Object.keys||function(h){return d(h,u)}},5296:function(s,c){var a={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!a.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:a},7674:function(s,c,a){var d=a(9670),u=a(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,y){return d(g),u(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(s,c,a){var d=a(1694),u=a(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,c,a){var d=a(5005),u=a(8006),f=a(5181),h=a(9670);s.exports=d("Reflect","ownKeys")||function(m){var g=u.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(s,c,a){var d=a(7854);s.exports=d},2248:function(s,c,a){var d=a(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}},1320:function(s,c,a){var d=a(7854),u=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,y=m.enforce,C=String(String).split("String");(s.exports=function(E,b,v,k){var _=k?!!k.unsafe:!1,O=k?!!k.enumerable:!1,L=k?!!k.noTargetGet:!1,N;if(typeof v=="function"&&(typeof b=="string"&&!f(v,"name")&&u(v,"name",b),N=y(v),N.source||(N.source=C.join(typeof b=="string"?b:""))),E===d){O?E[b]=v:h(b,v);return}else _?!L&&E[b]&&(O=!0):delete E[b];O?E[b]=v:u(E,b,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(s,c,a){var d=a(4326),u=a(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}},2261:function(s,c,a){var d=a(7066),u=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var E=/a/,b=/b*/g;return f.call(E,"a"),f.call(b,"a"),E.lastIndex!==0||b.lastIndex!==0}(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(b){var v=this,k,_,O,L,N=g&&v.sticky,j=d.call(v),V=v.source,P=0,z=b;return N&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),z=String(b).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&b[v.lastIndex-1]!==`
1230
+ `)&&(V="(?: "+V+")",z=" "+z,P++),_=new RegExp("^(?:"+V+")",j)),y&&(_=new RegExp("^"+V+"$(?!\\s)",j)),m&&(k=v.lastIndex),O=f.call(N?_:v,z),N?O?(O.input=O.input.slice(P),O[0]=O[0].slice(P),O.index=v.lastIndex,v.lastIndex+=O[0].length):v.lastIndex=0:m&&O&&(v.lastIndex=v.global?O.index+O[0].length:k),y&&O&&O.length>1&&h.call(O[0],_,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(O[L]=void 0)}),O}),s.exports=p},7066:function(s,c,a){var d=a(9670);s.exports=function(){var u=d(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,c,a){var d=a(7293);function u(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=d(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=d(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(s,c,a){var d=a(7854),u=a(8880);s.exports=function(f,h){try{u(d,f,h)}catch{d[f]=h}return h}},6340:function(s,c,a){var d=a(5005),u=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=d(m),y=u.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(s,c,a){var d=a(3070).f,u=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&d(p,h,{configurable:!0,value:m})}},6200:function(s,c,a){var d=a(2309),u=a(9711),f=d("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,c,a){var d=a(7854),u=a(3505),f="__core-js_shared__",h=d[f]||u(f,{});s.exports=h},2309:function(s,c,a){var d=a(1913),u=a(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,c,a){var d=a(9670),u=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=d(p).constructor,y;return g===void 0||(y=d(g)[h])==null?m:u(y)}},8710:function(s,c,a){var d=a(9958),u=a(4488),f=function(h){return function(p,m){var g=String(u(p)),y=d(m),C=g.length,E,b;return y<0||y>=C?h?"":void 0:(E=g.charCodeAt(y),E<55296||E>56319||y+1===C||(b=g.charCodeAt(y+1))<56320||b>57343?h?g.charAt(y):E:h?g.slice(y,y+2):(E-55296<<10)+(b-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var c=2147483647,a=36,d=1,u=26,f=38,h=700,p=72,m=128,g="-",y=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,E="Overflow: input needs wider integers to process",b=a-d,v=Math.floor,k=String.fromCharCode,_=function(j){for(var V=[],P=0,z=j.length;P<z;){var K=j.charCodeAt(P++);if(K>=55296&&K<=56319&&P<z){var F=j.charCodeAt(P++);(F&64512)==56320?V.push(((K&1023)<<10)+(F&1023)+65536):(V.push(K),P--)}else V.push(K)}return V},O=function(j){return j+22+75*(j<26)},L=function(j,V,P){var z=0;for(j=P?v(j/h):j>>1,j+=v(j/V);j>b*u>>1;z+=a)j=v(j/b);return v(z+(b+1)*j/(j+f))},N=function(j){var V=[];j=_(j);var P=j.length,z=m,K=0,F=p,W,Q;for(W=0;W<j.length;W++)Q=j[W],Q<128&&V.push(k(Q));var U=V.length,ee=U;for(U&&V.push(g);ee<P;){var ne=c;for(W=0;W<j.length;W++)Q=j[W],Q>=z&&Q<ne&&(ne=Q);var ae=ee+1;if(ne-z>v((c-K)/ae))throw RangeError(E);for(K+=(ne-z)*ae,z=ne,W=0;W<j.length;W++){if(Q=j[W],Q<z&&++K>c)throw RangeError(E);if(Q==z){for(var ue=K,me=a;;me+=a){var Ce=me<=F?d:me>=F+u?u:me-F;if(ue<Ce)break;var ke=ue-Ce,Oe=a-Ce;V.push(k(O(Ce+ke%Oe))),ue=v(ke/Oe)}V.push(k(O(ue))),F=L(K,ae,ee==U),K=0,++ee}}++K,++z}return V.join("")};s.exports=function(j){var V=[],P=j.toLowerCase().replace(C,".").split("."),z,K;for(z=0;z<P.length;z++)K=P[z],V.push(y.test(K)?"xn--"+N(K):K);return V.join(".")}},6091:function(s,c,a){var d=a(7293),u=a(1361),f="​…᠎";s.exports=function(h){return d(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,c,a){var d=a(4488),u=a(1361),f="["+u+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(y){var C=String(d(y));return g&1&&(C=C.replace(h,"")),g&2&&(C=C.replace(p,"")),C}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,c,a){var d=a(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=d(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,c,a){var d=a(9958),u=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=d(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,c,a){var d=a(8361),u=a(4488);s.exports=function(f){return d(u(f))}},9958:function(s){var c=Math.ceil,a=Math.floor;s.exports=function(d){return isNaN(d=+d)?0:(d>0?a:c)(d)}},7466:function(s,c,a){var d=a(9958),u=Math.min;s.exports=function(f){return f>0?u(d(f),9007199254740991):0}},7908:function(s,c,a){var d=a(4488);s.exports=function(u){return Object(d(u))}},4590:function(s,c,a){var d=a(3002);s.exports=function(u,f){var h=d(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,c,a){var d=a(9958);s.exports=function(u){var f=d(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,c,a){var d=a(111);s.exports=function(u,f){if(!d(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!d(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,c,a){var d=a(5112),u=d("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,c,a){var d=a(2109),u=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),g=a(5787),y=a(9114),C=a(8880),E=a(7466),b=a(7067),v=a(4590),k=a(7593),_=a(6656),O=a(648),L=a(111),N=a(30),j=a(7674),V=a(8006).f,P=a(7321),z=a(2092).forEach,K=a(6340),F=a(3070),W=a(1236),Q=a(9909),U=a(9587),ee=Q.get,ne=Q.set,ae=F.f,ue=W.f,me=Math.round,Ce=u.RangeError,ke=m.ArrayBuffer,Oe=m.DataView,Se=p.NATIVE_ARRAY_BUFFER_VIEWS,D=p.TYPED_ARRAY_TAG,R=p.TypedArray,x=p.TypedArrayPrototype,B=p.aTypedArrayConstructor,S=p.isTypedArray,w="BYTES_PER_ELEMENT",I="Wrong length",M=function(T,H){for(var Z=0,le=H.length,ge=new(B(T))(le);le>Z;)ge[Z]=H[Z++];return ge},Y=function(T,H){ae(T,H,{get:function(){return ee(this)[H]}})},G=function(T){var H;return T instanceof ke||(H=O(T))=="ArrayBuffer"||H=="SharedArrayBuffer"},J=function(T,H){return S(T)&&typeof H!="symbol"&&H in T&&String(+H)==String(H)},X=function(H,Z){return J(H,Z=k(Z,!0))?y(2,H[Z]):ue(H,Z)},A=function(H,Z,le){return J(H,Z=k(Z,!0))&&L(le)&&_(le,"value")&&!_(le,"get")&&!_(le,"set")&&!le.configurable&&(!_(le,"writable")||le.writable)&&(!_(le,"enumerable")||le.enumerable)?(H[Z]=le.value,H):ae(H,Z,le)};f?(Se||(W.f=X,F.f=A,Y(x,"buffer"),Y(x,"byteOffset"),Y(x,"byteLength"),Y(x,"length")),d({target:"Object",stat:!0,forced:!Se},{getOwnPropertyDescriptor:X,defineProperty:A}),s.exports=function(T,H,Z){var le=T.match(/\d+$/)[0]/8,ge=T+(Z?"Clamped":"")+"Array",Ae="get"+T,q="set"+T,se=u[ge],_e=se,$e=_e&&_e.prototype,it={},ct=function(ve,ye){var Me=ee(ve);return Me.view[Ae](ye*le+Me.byteOffset,!0)},Ut=function(ve,ye,Me){var Pe=ee(ve);Z&&(Me=(Me=me(Me))<0?0:Me>255?255:Me&255),Pe.view[q](ye*le+Pe.byteOffset,Me,!0)},re=function(ve,ye){ae(ve,ye,{get:function(){return ct(this,ye)},set:function(Me){return Ut(this,ye,Me)},enumerable:!0})};Se?h&&(_e=H(function(ve,ye,Me,Pe){return g(ve,_e,ge),U(function(){return L(ye)?G(ye)?Pe!==void 0?new se(ye,v(Me,le),Pe):Me!==void 0?new se(ye,v(Me,le)):new se(ye):S(ye)?M(_e,ye):P.call(_e,ye):new se(b(ye))}(),ve,_e)}),j&&j(_e,R),z(V(se),function(ve){ve in _e||C(_e,ve,se[ve])}),_e.prototype=$e):(_e=H(function(ve,ye,Me,Pe){g(ve,_e,ge);var st=0,dt=0,Ht,Wt,At;if(!L(ye))At=b(ye),Wt=At*le,Ht=new ke(Wt);else if(G(ye)){Ht=ye,dt=v(Me,le);var Xn=ye.byteLength;if(Pe===void 0){if(Xn%le||(Wt=Xn-dt,Wt<0))throw Ce(I)}else if(Wt=E(Pe)*le,Wt+dt>Xn)throw Ce(I);At=Wt/le}else return S(ye)?M(_e,ye):P.call(_e,ye);for(ne(ve,{buffer:Ht,byteOffset:dt,byteLength:Wt,length:At,view:new Oe(Ht)});st<At;)re(ve,st++)}),j&&j(_e,R),$e=_e.prototype=N(x)),$e.constructor!==_e&&C($e,"constructor",_e),D&&C($e,D,ge),it[ge]=_e,d({global:!0,forced:_e!=se,sham:!Se},it),w in _e||C(_e,w,le),w in $e||C($e,w,le),K(ge)}):s.exports=function(){}},3832:function(s,c,a){var d=a(7854),u=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=d.ArrayBuffer,m=d.Int8Array;s.exports=!h||!u(function(){m(1)})||!u(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||u(function(){return new m(new p(2),1,void 0).length!==1})},3074:function(s,c,a){var d=a(260).aTypedArrayConstructor,u=a(6707);s.exports=function(f,h){for(var p=u(f,f.constructor),m=0,g=h.length,y=new(d(p))(g);g>m;)y[m]=h[m++];return y}},7321:function(s,c,a){var d=a(7908),u=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(y){var C=d(y),E=arguments.length,b=E>1?arguments[1]:void 0,v=b!==void 0,k=f(C),_,O,L,N,j,V;if(k!=null&&!h(k))for(j=k.call(C),V=j.next,C=[];!(N=V.call(j)).done;)C.push(N.value);for(v&&E>2&&(b=p(b,arguments[2],2)),O=u(C.length),L=new(m(this))(O),_=0;O>_;_++)L[_]=v?b(C[_],_):C[_];return L}},9711:function(s){var c=0,a=Math.random();s.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++c+a).toString(36)}},3307:function(s,c,a){var d=a(133);s.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(s,c,a){var d=a(7854),u=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=u("wks"),y=d.Symbol,C=m?y:y&&y.withoutSetter||h;s.exports=function(E){return f(g,E)||(p&&f(y,E)?g[E]=y[E]:g[E]=C("Symbol."+E)),g[E]}},1361:function(s){s.exports=`
1231
+ \v\f\r                 \u2028\u2029\uFEFF`},8264:function(s,c,a){var d=a(2109),u=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=u[p];d({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(s,c,a){var d=a(2109),u=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),y=a(5417),C=a(1194),E=a(5112),b=a(7392),v=E("isConcatSpreadable"),k=9007199254740991,_="Maximum allowed index exceeded",O=b>=51||!u(function(){var V=[];return V[v]=!1,V.concat()[0]!==V}),L=C("concat"),N=function(V){if(!h(V))return!1;var P=V[v];return P!==void 0?!!P:f(V)},j=!O||!L;d({target:"Array",proto:!0,forced:j},{concat:function(P){var z=p(this),K=y(z,0),F=0,W,Q,U,ee,ne;for(W=-1,U=arguments.length;W<U;W++)if(ne=W===-1?z:arguments[W],N(ne)){if(ee=m(ne.length),F+ee>k)throw TypeError(_);for(Q=0;Q<ee;Q++,F++)Q in ne&&g(K,F,ne[Q])}else{if(F>=k)throw TypeError(_);g(K,F++,ne)}return K.length=F,K}})},7327:function(s,c,a){var d=a(2109),u=a(2092).filter,f=a(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,c,a){var d=a(2109),u=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(y){return p?h.apply(this,arguments)||0:u(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,c,a){var d=a(5656),u=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,y=h.getterFor(m);s.exports=p(Array,"Array",function(C,E){g(this,{type:m,target:d(C),index:0,kind:E})},function(){var C=y(this),E=C.target,b=C.kind,v=C.index++;return!E||v>=E.length?(C.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:v,done:!1}:b=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,c,a){var d=a(2109),u=a(2092).map,f=a(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,c,a){var d=a(2109),u=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),y=a(5112),C=a(1194),E=C("slice"),b=y("species"),v=[].slice,k=Math.max;d({target:"Array",proto:!0,forced:!E},{slice:function(O,L){var N=m(this),j=p(N.length),V=h(O,j),P=h(L===void 0?j:L,j),z,K,F;if(f(N)&&(z=N.constructor,typeof z=="function"&&(z===Array||f(z.prototype))?z=void 0:u(z)&&(z=z[b],z===null&&(z=void 0)),z===Array||z===void 0))return v.call(N,V,P);for(K=new(z===void 0?Array:z)(k(P-V,0)),F=0;V<P;V++,F++)V in N&&g(K,F,N[V]);return K.length=F,K}})},561:function(s,c,a){var d=a(2109),u=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),y=a(1194),C=y("splice"),E=Math.max,b=Math.min,v=9007199254740991,k="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!C},{splice:function(O,L){var N=p(this),j=h(N.length),V=u(O,j),P=arguments.length,z,K,F,W,Q,U;if(P===0?z=K=0:P===1?(z=0,K=j-V):(z=P-2,K=b(E(f(L),0),j-V)),j+z-K>v)throw TypeError(k);for(F=m(N,K),W=0;W<K;W++)Q=V+W,Q in N&&g(F,W,N[Q]);if(F.length=K,z<K){for(W=V;W<j-K;W++)Q=W+K,U=W+z,Q in N?N[U]=N[Q]:delete N[U];for(W=j;W>j-K+z;W--)delete N[W-1]}else if(z>K)for(W=j-K;W>V;W--)Q=W+K-1,U=W+z-1,Q in N?N[U]=N[Q]:delete N[U];for(W=0;W<z;W++)N[W+V]=arguments[W+2];return N.length=j-K+z,F}})},8309:function(s,c,a){var d=a(9781),u=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,c,a){var d=a(2109),u=a(7293),f=a(7908),h=a(9518),p=a(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(s,c,a){var d=a(1694),u=a(1320),f=a(288);d||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,c,a){var d=a(2109),u=a(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,c,a){var d=a(1320),u=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],y=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=p;(y||C)&&d(RegExp.prototype,p,function(){var b=u(this),v=String(b.source),k=b.flags,_=String(k===void 0&&b instanceof RegExp&&!("flags"in m)?h.call(b):k);return"/"+v+"/"+_},{unsafe:!0})},8783:function(s,c,a){var d=a(8710).charAt,u=a(9909),f=a(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=m(this),C=y.string,E=y.index,b;return E>=C.length?{value:void 0,done:!0}:(b=d(C,E),y.index+=b.length,{value:b,done:!1})})},4723:function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);d("match",1,function(g,y,C){return[function(b){var v=h(this),k=b==null?void 0:b[g];return k!==void 0?k.call(b,v):new RegExp(b)[g](String(v))},function(E){var b=C(y,E,this);if(b.done)return b.value;var v=u(E),k=String(this);if(!v.global)return m(v,k);var _=v.unicode;v.lastIndex=0;for(var O=[],L=0,N;(N=m(v,k))!==null;){var j=String(N[0]);O[L]=j,j===""&&(v.lastIndex=p(k,f(v.lastIndex),_)),L++}return L===0?null:O}]})},5306:function(s,c,a){var d=a(7007),u=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),y=a(7651),C=Math.max,E=Math.min,b=function(v){return v===void 0?v:String(v)};d("replace",2,function(v,k,_,O){var L=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=O.REPLACE_KEEPS_$0,j=L?"$":"$0";return[function(P,z){var K=p(this),F=P==null?void 0:P[v];return F!==void 0?F.call(P,K,z):k.call(String(K),P,z)},function(V,P){if(!L&&N||typeof P=="string"&&P.indexOf(j)===-1){var z=_(k,V,this,P);if(z.done)return z.value}var K=u(V),F=String(this),W=typeof P=="function";W||(P=String(P));var Q=K.global;if(Q){var U=K.unicode;K.lastIndex=0}for(var ee=[];;){var ne=y(K,F);if(ne===null||(ee.push(ne),!Q))break;var ae=String(ne[0]);ae===""&&(K.lastIndex=m(F,f(K.lastIndex),U))}for(var ue="",me=0,Ce=0;Ce<ee.length;Ce++){ne=ee[Ce];for(var ke=String(ne[0]),Oe=C(E(h(ne.index),F.length),0),Se=[],D=1;D<ne.length;D++)Se.push(b(ne[D]));var R=ne.groups;if(W){var x=[ke].concat(Se,Oe,F);R!==void 0&&x.push(R);var B=String(P.apply(void 0,x))}else B=g(ke,F,Oe,Se,R,P);Oe>=me&&(ue+=F.slice(me,Oe)+B,me=Oe+ke.length)}return ue+F.slice(me)}]})},3123:function(s,c,a){var d=a(7007),u=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),y=a(7651),C=a(2261),E=a(7293),b=[].push,v=Math.min,k=4294967295,_=!E(function(){return!RegExp(k,"y")});d("split",2,function(O,L,N){var j;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?j=function(V,P){var z=String(h(this)),K=P===void 0?k:P>>>0;if(K===0)return[];if(V===void 0)return[z];if(!u(V))return L.call(z,V,K);for(var F=[],W=(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")+(V.sticky?"y":""),Q=0,U=new RegExp(V.source,W+"g"),ee,ne,ae;(ee=C.call(U,z))&&(ne=U.lastIndex,!(ne>Q&&(F.push(z.slice(Q,ee.index)),ee.length>1&&ee.index<z.length&&b.apply(F,ee.slice(1)),ae=ee[0].length,Q=ne,F.length>=K)));)U.lastIndex===ee.index&&U.lastIndex++;return Q===z.length?(ae||!U.test(""))&&F.push(""):F.push(z.slice(Q)),F.length>K?F.slice(0,K):F}:"0".split(void 0,0).length?j=function(V,P){return V===void 0&&P===0?[]:L.call(this,V,P)}:j=L,[function(P,z){var K=h(this),F=P==null?void 0:P[O];return F!==void 0?F.call(P,K,z):j.call(String(K),P,z)},function(V,P){var z=N(j,V,this,P,j!==L);if(z.done)return z.value;var K=f(V),F=String(this),W=p(K,RegExp),Q=K.unicode,U=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(_?"y":"g"),ee=new W(_?K:"^(?:"+K.source+")",U),ne=P===void 0?k:P>>>0;if(ne===0)return[];if(F.length===0)return y(ee,F)===null?[F]:[];for(var ae=0,ue=0,me=[];ue<F.length;){ee.lastIndex=_?ue:0;var Ce=y(ee,_?F:F.slice(ue)),ke;if(Ce===null||(ke=v(g(ee.lastIndex+(_?0:ue)),F.length))===ae)ue=m(F,ue,Q);else{if(me.push(F.slice(ae,ue)),me.length===ne)return me;for(var Oe=1;Oe<=Ce.length-1;Oe++)if(me.push(Ce[Oe]),me.length===ne)return me;ue=ae=ke}}return me.push(F.slice(ae)),me}]},!_)},3210:function(s,c,a){var d=a(2109),u=a(3111).trim,f=a(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,c,a){var d=a(260),u=a(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,c,a){var d=a(260),u=a(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,c,a){var d=a(260),u=a(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,c,a){var d=a(260),u=a(2092).filter,f=a(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(g){var y=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(s,c,a){var d=a(260),u=a(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,c,a){var d=a(260),u=a(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,c,a){var d=a(260),u=a(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,c,a){var d=a(260),u=a(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,c,a){var d=a(260),u=a(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,c,a){var d=a(7854),u=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=d.Uint8Array,g=f.values,y=f.keys,C=f.entries,E=u.aTypedArray,b=u.exportTypedArrayMethod,v=m&&m.prototype[p],k=!!v&&(v.name=="values"||v.name==null),_=function(){return g.call(E(this))};b("entries",function(){return C.call(E(this))}),b("keys",function(){return y.call(E(this))}),b("values",_,!k),b(p,_,!k)},8867:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,c,a){var d=a(260),u=a(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,c,a){var d=a(260),u=a(2092).map,f=a(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(y){return u(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,E){return new(p(f(C,C.constructor)))(E)})})},4483:function(s,c,a){var d=a(260),u=a(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,c,a){var d=a(260),u=a(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(m).length,y=h(g/2),C=0,E;C<y;)E=m[C],m[C++]=m[--g],m[g]=E;return m})},3462:function(s,c,a){var d=a(260),u=a(7466),f=a(4590),h=a(7908),p=a(7293),m=d.aTypedArray,g=d.exportTypedArrayMethod,y=p(function(){new Int8Array(1).set({})});g("set",function(E){m(this);var b=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,k=h(E),_=u(k.length),O=0;if(_+b>v)throw RangeError("Wrong length");for(;O<_;)this[b+O]=k[O++]},y)},678:function(s,c,a){var d=a(260),u=a(6707),f=a(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,g=[].slice,y=f(function(){new Int8Array(1).slice()});m("slice",function(E,b){for(var v=g.call(h(this),E,b),k=u(this,this.constructor),_=0,O=v.length,L=new(p(k))(O);O>_;)L[_]=v[_++];return L},y)},7462:function(s,c,a){var d=a(260),u=a(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,c,a){var d=a(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,c,a){var d=a(260),u=a(7466),f=a(1400),h=a(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(y,C){var E=p(this),b=E.length,v=f(y,b);return new(h(E,E.constructor))(E.buffer,E.byteOffset+v*E.BYTES_PER_ELEMENT,u((C===void 0?b:f(C,b))-v))})},2974:function(s,c,a){var d=a(7854),u=a(260),f=a(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,g=[].toLocaleString,y=[].slice,C=!!h&&f(function(){g.call(new h(1))}),E=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(C?y.call(p(this)):p(this),arguments)},E)},5016:function(s,c,a){var d=a(260).exportTypedArrayMethod,u=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;d("toString",m,y)},2472:function(s,c,a){var d=a(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,c,a){var d=a(7854),u=a(8324),f=a(8533),h=a(8880);for(var p in u){var m=d[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(s,c,a){var d=a(7854),u=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in u){var E=d[C],b=E&&E.prototype;if(b){if(b[m]!==y)try{h(b,m,y)}catch{b[m]=y}if(b[g]||h(b,g,C),u[C]){for(var v in f)if(b[v]!==f[v])try{h(b,v,f[v])}catch{b[v]=f[v]}}}}},1637:function(s,c,a){a(6992);var d=a(2109),u=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),y=a(9909),C=a(5787),E=a(6656),b=a(9974),v=a(648),k=a(9670),_=a(111),O=a(30),L=a(9114),N=a(8554),j=a(1246),V=a(5112),P=u("fetch"),z=u("Headers"),K=V("iterator"),F="URLSearchParams",W=F+"Iterator",Q=y.set,U=y.getterFor(F),ee=y.getterFor(W),ne=/\+/g,ae=Array(4),ue=function(M){return ae[M-1]||(ae[M-1]=RegExp("((?:%[\\da-f]{2}){"+M+"})","gi"))},me=function(M){try{return decodeURIComponent(M)}catch{return M}},Ce=function(M){var Y=M.replace(ne," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(ue(G--),me);return Y}},ke=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Se=function(M){return Oe[M]},D=function(M){return encodeURIComponent(M).replace(ke,Se)},R=function(M,Y){if(Y)for(var G=Y.split("&"),J=0,X,A;J<G.length;)X=G[J++],X.length&&(A=X.split("="),M.push({key:Ce(A.shift()),value:Ce(A.join("="))}))},x=function(M){this.entries.length=0,R(this.entries,M)},B=function(M,Y){if(M<Y)throw TypeError("Not enough arguments")},S=g(function(Y,G){Q(this,{type:W,iterator:N(U(Y).entries),kind:G})},"Iterator",function(){var Y=ee(this),G=Y.kind,J=Y.iterator.next(),X=J.value;return J.done||(J.value=G==="keys"?X.key:G==="values"?X.value:[X.key,X.value]),J}),w=function(){C(this,w,F);var Y=arguments.length>0?arguments[0]:void 0,G=this,J=[],X,A,T,H,Z,le,ge,Ae,q;if(Q(G,{type:F,entries:J,updateURL:function(){},updateSearchParams:x}),Y!==void 0)if(_(Y))if(X=j(Y),typeof X=="function")for(A=X.call(Y),T=A.next;!(H=T.call(A)).done;){if(Z=N(k(H.value)),le=Z.next,(ge=le.call(Z)).done||(Ae=le.call(Z)).done||!le.call(Z).done)throw TypeError("Expected sequence with length 2");J.push({key:ge.value+"",value:Ae.value+""})}else for(q in Y)E(Y,q)&&J.push({key:q,value:Y[q]+""});else R(J,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},I=w.prototype;p(I,{append:function(Y,G){B(arguments.length,2);var J=U(this);J.entries.push({key:Y+"",value:G+""}),J.updateURL()},delete:function(M){B(arguments.length,1);for(var Y=U(this),G=Y.entries,J=M+"",X=0;X<G.length;)G[X].key===J?G.splice(X,1):X++;Y.updateURL()},get:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;X++)if(G[X].key===J)return G[X].value;return null},getAll:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=[],A=0;A<G.length;A++)G[A].key===J&&X.push(G[A].value);return X},has:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;)if(G[X++].key===J)return!0;return!1},set:function(Y,G){B(arguments.length,1);for(var J=U(this),X=J.entries,A=!1,T=Y+"",H=G+"",Z=0,le;Z<X.length;Z++)le=X[Z],le.key===T&&(A?X.splice(Z--,1):(A=!0,le.value=H));A||X.push({key:T,value:H}),J.updateURL()},sort:function(){var Y=U(this),G=Y.entries,J=G.slice(),X,A,T;for(G.length=0,T=0;T<J.length;T++){for(X=J[T],A=0;A<T;A++)if(G[A].key>X.key){G.splice(A,0,X);break}A===T&&G.push(X)}Y.updateURL()},forEach:function(Y){for(var G=U(this).entries,J=b(Y,arguments.length>1?arguments[1]:void 0,3),X=0,A;X<G.length;)A=G[X++],J(A.value,A.key,this)},keys:function(){return new S(this,"keys")},values:function(){return new S(this,"values")},entries:function(){return new S(this,"entries")}},{enumerable:!0}),h(I,K,I.entries),h(I,"toString",function(){for(var Y=U(this).entries,G=[],J=0,X;J<Y.length;)X=Y[J++],G.push(D(X.key)+"="+D(X.value));return G.join("&")},{enumerable:!0}),m(w,F),d({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof P=="function"&&typeof z=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],J,X,A;return arguments.length>1&&(J=arguments[1],_(J)&&(X=J.body,v(X)===F&&(A=J.headers?new z(J.headers):new z,A.has("content-type")||A.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),J=O(J,{body:L(0,String(X)),headers:L(0,A)}))),G.push(J)),P.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}},285:function(s,c,a){a(8783);var d=a(2109),u=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),y=a(6656),C=a(1574),E=a(8457),b=a(8710).codeAt,v=a(3197),k=a(8003),_=a(1637),O=a(9909),L=h.URL,N=_.URLSearchParams,j=_.getState,V=O.set,P=O.getterFor("URL"),z=Math.floor,K=Math.pow,F="Invalid authority",W="Invalid scheme",Q="Invalid host",U="Invalid port",ee=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,ue=/^(0x|0X)/,me=/^[0-7]+$/,Ce=/^\d+$/,ke=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Se=/[\u0000\t\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,R=/[\t\u000A\u000D]/g,x,B=function($,ie){var oe,ce,pe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=w(ie.slice(1,-1)),!oe))return Q;$.host=oe}else if(H($)){if(ie=v(ie),Oe.test(ie)||(oe=S(ie),oe===null))return Q;$.host=oe}else{if(Se.test(ie))return Q;for(oe="",ce=E(ie),pe=0;pe<ce.length;pe++)oe+=A(ce[pe],Y);$.host=oe}},S=function($){var ie=$.split("."),oe,ce,pe,Re,xe,et,at;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return $;for(ce=[],pe=0;pe<oe;pe++){if(Re=ie[pe],Re=="")return $;if(xe=10,Re.length>1&&Re.charAt(0)=="0"&&(xe=ue.test(Re)?16:8,Re=Re.slice(xe==8?1:2)),Re==="")et=0;else{if(!(xe==10?Ce:xe==8?me:ke).test(Re))return $;et=parseInt(Re,xe)}ce.push(et)}for(pe=0;pe<oe;pe++)if(et=ce[pe],pe==oe-1){if(et>=K(256,5-oe))return null}else if(et>255)return null;for(at=ce.pop(),pe=0;pe<ce.length;pe++)at+=ce[pe]*K(256,3-pe);return at},w=function($){var ie=[0,0,0,0,0,0,0,0],oe=0,ce=null,pe=0,Re,xe,et,at,ht,Sn,fe,Et=function(){return $.charAt(pe)};if(Et()==":"){if($.charAt(1)!=":")return;pe+=2,oe++,ce=oe}for(;Et();){if(oe==8)return;if(Et()==":"){if(ce!==null)return;pe++,oe++,ce=oe;continue}for(Re=xe=0;xe<4&&ke.test(Et());)Re=Re*16+parseInt(Et(),16),pe++,xe++;if(Et()=="."){if(xe==0||(pe-=xe,oe>6))return;for(et=0;Et();){if(at=null,et>0)if(Et()=="."&&et<4)pe++;else return;if(!ae.test(Et()))return;for(;ae.test(Et());){if(ht=parseInt(Et(),10),at===null)at=ht;else{if(at==0)return;at=at*10+ht}if(at>255)return;pe++}ie[oe]=ie[oe]*256+at,et++,(et==2||et==4)&&oe++}if(et!=4)return;break}else if(Et()==":"){if(pe++,!Et())return}else if(Et())return;ie[oe++]=Re}if(ce!==null)for(Sn=oe-ce,oe=7;oe!=0&&Sn>0;)fe=ie[oe],ie[oe--]=ie[ce+Sn-1],ie[ce+--Sn]=fe;else if(oe!=8)return;return ie},I=function($){for(var ie=null,oe=1,ce=null,pe=0,Re=0;Re<8;Re++)$[Re]!==0?(pe>oe&&(ie=ce,oe=pe),ce=null,pe=0):(ce===null&&(ce=Re),++pe);return pe>oe&&(ie=ce,oe=pe),ie},M=function($){var ie,oe,ce,pe;if(typeof $=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift($%256),$=z($/256);return ie.join(".")}else if(typeof $=="object"){for(ie="",ce=I($),oe=0;oe<8;oe++)pe&&$[oe]===0||(pe&&(pe=!1),ce===oe?(ie+=oe?":":"::",pe=!0):(ie+=$[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return $},Y={},G=C({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),J=C({},G,{"#":1,"?":1,"{":1,"}":1}),X=C({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),A=function($,ie){var oe=b($,0);return oe>32&&oe<127&&!y(ie,$)?$:encodeURIComponent($)},T={ftp:21,file:null,http:80,https:443,ws:80,wss:443},H=function($){return y(T,$.scheme)},Z=function($){return $.username!=""||$.password!=""},le=function($){return!$.host||$.cannotBeABaseURL||$.scheme=="file"},ge=function($,ie){var oe;return $.length==2&&ee.test($.charAt(0))&&((oe=$.charAt(1))==":"||!ie&&oe=="|")},Ae=function($){var ie;return $.length>1&&ge($.slice(0,2))&&($.length==2||(ie=$.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},q=function($){var ie=$.path,oe=ie.length;oe&&($.scheme!="file"||oe!=1||!ge(ie[0],!0))&&ie.pop()},se=function($){return $==="."||$.toLowerCase()==="%2e"},_e=function($){return $=$.toLowerCase(),$===".."||$==="%2e."||$===".%2e"||$==="%2e%2e"},$e={},it={},ct={},Ut={},re={},ve={},ye={},Me={},Pe={},st={},dt={},Ht={},Wt={},At={},Xn={},no={},an={},bn={},Vi={},Cn={},br={},qn=function($,ie,oe,ce){var pe=oe||$e,Re=0,xe="",et=!1,at=!1,ht=!1,Sn,fe,Et,Cr;for(oe||($.scheme="",$.username="",$.password="",$.host=null,$.port=null,$.path=[],$.query=null,$.fragment=null,$.cannotBeABaseURL=!1,ie=ie.replace(D,"")),ie=ie.replace(R,""),Sn=E(ie);Re<=Sn.length;){switch(fe=Sn[Re],pe){case $e:if(fe&&ee.test(fe))xe+=fe.toLowerCase(),pe=it;else{if(oe)return W;pe=ct;continue}break;case it:if(fe&&(ne.test(fe)||fe=="+"||fe=="-"||fe=="."))xe+=fe.toLowerCase();else if(fe==":"){if(oe&&(H($)!=y(T,xe)||xe=="file"&&(Z($)||$.port!==null)||$.scheme=="file"&&!$.host))return;if($.scheme=xe,oe){H($)&&T[$.scheme]==$.port&&($.port=null);return}xe="",$.scheme=="file"?pe=At:H($)&&ce&&ce.scheme==$.scheme?pe=Ut:H($)?pe=Me:Sn[Re+1]=="/"?(pe=re,Re++):($.cannotBeABaseURL=!0,$.path.push(""),pe=Vi)}else{if(oe)return W;xe="",pe=ct,Re=0;continue}break;case ct:if(!ce||ce.cannotBeABaseURL&&fe!="#")return W;if(ce.cannotBeABaseURL&&fe=="#"){$.scheme=ce.scheme,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",$.cannotBeABaseURL=!0,pe=br;break}pe=ce.scheme=="file"?At:ve;continue;case Ut:if(fe=="/"&&Sn[Re+1]=="/")pe=Pe,Re++;else{pe=ve;continue}break;case re:if(fe=="/"){pe=st;break}else{pe=bn;continue}case ve:if($.scheme=ce.scheme,fe==x)$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query=ce.query;else if(fe=="/"||fe=="\\"&&H($))pe=ye;else if(fe=="?")$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query="",pe=Cn;else if(fe=="#")$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",pe=br;else{$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,$.path=ce.path.slice(),$.path.pop(),pe=bn;continue}break;case ye:if(H($)&&(fe=="/"||fe=="\\"))pe=Pe;else if(fe=="/")pe=st;else{$.username=ce.username,$.password=ce.password,$.host=ce.host,$.port=ce.port,pe=bn;continue}break;case Me:if(pe=Pe,fe!="/"||xe.charAt(Re+1)!="/")continue;Re++;break;case Pe:if(fe!="/"&&fe!="\\"){pe=st;continue}break;case st:if(fe=="@"){et&&(xe="%40"+xe),et=!0,Et=E(xe);for(var fh=0;fh<Et.length;fh++){var V5=Et[fh];if(V5==":"&&!ht){ht=!0;continue}var F5=A(V5,X);ht?$.password+=F5:$.username+=F5}xe=""}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)){if(et&&xe=="")return F;Re-=E(xe).length+1,xe="",pe=dt}else xe+=fe;break;case dt:case Ht:if(oe&&$.scheme=="file"){pe=no;continue}else if(fe==":"&&!at){if(xe=="")return Q;if(Cr=B($,xe),Cr)return Cr;if(xe="",pe=Wt,oe==Ht)return}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)){if(H($)&&xe=="")return Q;if(oe&&xe==""&&(Z($)||$.port!==null))return;if(Cr=B($,xe),Cr)return Cr;if(xe="",pe=an,oe)return;continue}else fe=="["?at=!0:fe=="]"&&(at=!1),xe+=fe;break;case Wt:if(ae.test(fe))xe+=fe;else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H($)||oe){if(xe!=""){var hh=parseInt(xe,10);if(hh>65535)return U;$.port=H($)&&hh===T[$.scheme]?null:hh,xe=""}if(oe)return;pe=an;continue}else return U;break;case At:if($.scheme="file",fe=="/"||fe=="\\")pe=Xn;else if(ce&&ce.scheme=="file")if(fe==x)$.host=ce.host,$.path=ce.path.slice(),$.query=ce.query;else if(fe=="?")$.host=ce.host,$.path=ce.path.slice(),$.query="",pe=Cn;else if(fe=="#")$.host=ce.host,$.path=ce.path.slice(),$.query=ce.query,$.fragment="",pe=br;else{Ae(Sn.slice(Re).join(""))||($.host=ce.host,$.path=ce.path.slice(),q($)),pe=bn;continue}else{pe=bn;continue}break;case Xn:if(fe=="/"||fe=="\\"){pe=no;break}ce&&ce.scheme=="file"&&!Ae(Sn.slice(Re).join(""))&&(ge(ce.path[0],!0)?$.path.push(ce.path[0]):$.host=ce.host),pe=bn;continue;case no:if(fe==x||fe=="/"||fe=="\\"||fe=="?"||fe=="#"){if(!oe&&ge(xe))pe=bn;else if(xe==""){if($.host="",oe)return;pe=an}else{if(Cr=B($,xe),Cr)return Cr;if($.host=="localhost"&&($.host=""),oe)return;xe="",pe=an}continue}else xe+=fe;break;case an:if(H($)){if(pe=bn,fe!="/"&&fe!="\\")continue}else if(!oe&&fe=="?")$.query="",pe=Cn;else if(!oe&&fe=="#")$.fragment="",pe=br;else if(fe!=x&&(pe=bn,fe!="/"))continue;break;case bn:if(fe==x||fe=="/"||fe=="\\"&&H($)||!oe&&(fe=="?"||fe=="#")){if(_e(xe)?(q($),fe!="/"&&!(fe=="\\"&&H($))&&$.path.push("")):se(xe)?fe!="/"&&!(fe=="\\"&&H($))&&$.path.push(""):($.scheme=="file"&&!$.path.length&&ge(xe)&&($.host&&($.host=""),xe=xe.charAt(0)+":"),$.path.push(xe)),xe="",$.scheme=="file"&&(fe==x||fe=="?"||fe=="#"))for(;$.path.length>1&&$.path[0]==="";)$.path.shift();fe=="?"?($.query="",pe=Cn):fe=="#"&&($.fragment="",pe=br)}else xe+=A(fe,J);break;case Vi:fe=="?"?($.query="",pe=Cn):fe=="#"?($.fragment="",pe=br):fe!=x&&($.path[0]+=A(fe,Y));break;case Cn:!oe&&fe=="#"?($.fragment="",pe=br):fe!=x&&(fe=="'"&&H($)?$.query+="%27":fe=="#"?$.query+="%23":$.query+=A(fe,Y));break;case br:fe!=x&&($.fragment+=A(fe,G));break}Re++}},Ro=function(ie){var oe=g(this,Ro,"URL"),ce=arguments.length>1?arguments[1]:void 0,pe=String(ie),Re=V(oe,{type:"URL"}),xe,et;if(ce!==void 0){if(ce instanceof Ro)xe=P(ce);else if(et=qn(xe={},String(ce)),et)throw TypeError(et)}if(et=qn(Re,pe,null,xe),et)throw TypeError(et);var at=Re.searchParams=new N,ht=j(at);ht.updateSearchParams(Re.query),ht.updateURL=function(){Re.query=String(at)||null},u||(oe.href=Ac.call(oe),oe.origin=A5.call(oe),oe.protocol=T5.call(oe),oe.username=I5.call(oe),oe.password=x5.call(oe),oe.host=O5.call(oe),oe.hostname=N5.call(oe),oe.port=M5.call(oe),oe.pathname=L5.call(oe),oe.search=D5.call(oe),oe.searchParams=P5.call(oe),oe.hash=B5.call(oe))},uh=Ro.prototype,Ac=function(){var $=P(this),ie=$.scheme,oe=$.username,ce=$.password,pe=$.host,Re=$.port,xe=$.path,et=$.query,at=$.fragment,ht=ie+":";return pe!==null?(ht+="//",Z($)&&(ht+=oe+(ce?":"+ce:"")+"@"),ht+=M(pe),Re!==null&&(ht+=":"+Re)):ie=="file"&&(ht+="//"),ht+=$.cannotBeABaseURL?xe[0]:xe.length?"/"+xe.join("/"):"",et!==null&&(ht+="?"+et),at!==null&&(ht+="#"+at),ht},A5=function(){var $=P(this),ie=$.scheme,oe=$.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!H($)?"null":ie+"://"+M($.host)+(oe!==null?":"+oe:"")},T5=function(){return P(this).scheme+":"},I5=function(){return P(this).username},x5=function(){return P(this).password},O5=function(){var $=P(this),ie=$.host,oe=$.port;return ie===null?"":oe===null?M(ie):M(ie)+":"+oe},N5=function(){var $=P(this).host;return $===null?"":M($)},M5=function(){var $=P(this).port;return $===null?"":String($)},L5=function(){var $=P(this),ie=$.path;return $.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},D5=function(){var $=P(this).query;return $?"?"+$:""},P5=function(){return P(this).searchParams},B5=function(){var $=P(this).fragment;return $?"#"+$:""},En=function($,ie){return{get:$,set:ie,configurable:!0,enumerable:!0}};if(u&&p(uh,{href:En(Ac,function($){var ie=P(this),oe=String($),ce=qn(ie,oe);if(ce)throw TypeError(ce);j(ie.searchParams).updateSearchParams(ie.query)}),origin:En(A5),protocol:En(T5,function($){var ie=P(this);qn(ie,String($)+":",$e)}),username:En(I5,function($){var ie=P(this),oe=E(String($));if(!le(ie)){ie.username="";for(var ce=0;ce<oe.length;ce++)ie.username+=A(oe[ce],X)}}),password:En(x5,function($){var ie=P(this),oe=E(String($));if(!le(ie)){ie.password="";for(var ce=0;ce<oe.length;ce++)ie.password+=A(oe[ce],X)}}),host:En(O5,function($){var ie=P(this);ie.cannotBeABaseURL||qn(ie,String($),dt)}),hostname:En(N5,function($){var ie=P(this);ie.cannotBeABaseURL||qn(ie,String($),Ht)}),port:En(M5,function($){var ie=P(this);le(ie)||($=String($),$==""?ie.port=null:qn(ie,$,Wt))}),pathname:En(L5,function($){var ie=P(this);ie.cannotBeABaseURL||(ie.path=[],qn(ie,$+"",an))}),search:En(D5,function($){var ie=P(this);$=String($),$==""?ie.query=null:($.charAt(0)=="?"&&($=$.slice(1)),ie.query="",qn(ie,$,Cn)),j(ie.searchParams).updateSearchParams(ie.query)}),searchParams:En(P5),hash:En(B5,function($){var ie=P(this);if($=String($),$==""){ie.fragment=null;return}$.charAt(0)=="#"&&($=$.slice(1)),ie.fragment="",qn(ie,$,br)})}),m(uh,"toJSON",function(){return Ac.call(this)},{enumerable:!0}),m(uh,"toString",function(){return Ac.call(this)},{enumerable:!0}),L){var R5=L.createObjectURL,$5=L.revokeObjectURL;R5&&m(Ro,"createObjectURL",function(ie){return R5.apply(L,arguments)}),$5&&m(Ro,"revokeObjectURL",function(ie){return $5.apply(L,arguments)})}k(Ro,"URL"),d({global:!0,forced:!f,sham:!u},{URL:Ro})}},r={};function o(s){if(r[s])return r[s].exports;var c=r[s]={exports:{}};return n[s](c,c.exports,o),c.exports}(function(){o.d=function(s,c){for(var a in c)o.o(c,a)&&!o.o(s,a)&&Object.defineProperty(s,a,{enumerable:!0,get:c[a]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return U},default:function(){return Se}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=c(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function c(D,R){if(D){if(typeof D=="string")return a(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return a(D,R)}}function a(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}function d(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function u(D,R){for(var x=0;x<R.length;x++){var B=R[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function f(D,R,x){return R&&u(D.prototype,R),x&&u(D,x),D}var h=function(){function D(){d(this,D)}return f(D,[{key:"on",value:function(x,B){return this._callbacks=this._callbacks||{},this._callbacks[x]||(this._callbacks[x]=[]),this._callbacks[x].push(B),this}},{key:"emit",value:function(x){this._callbacks=this._callbacks||{};for(var B=this._callbacks[x],S=arguments.length,w=new Array(S>1?S-1:0),I=1;I<S;I++)w[I-1]=arguments[I];if(B){var M=s(B,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.apply(this,w)}}catch(J){M.e(J)}finally{M.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+x,{args:w})),this}},{key:"makeEvent",value:function(x,B){var S={bubbles:!0,cancelable:!0,detail:B};if(typeof window.CustomEvent=="function")return new CustomEvent(x,S);var w=document.createEvent("CustomEvent");return w.initCustomEvent(x,S.bubbles,S.cancelable,S.detail),w}},{key:"off",value:function(x,B){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var S=this._callbacks[x];if(!S)return this;if(arguments.length===1)return delete this._callbacks[x],this;for(var w=0;w<S.length;w++){var I=S[w];if(I===B){S.splice(w,1);break}}return this}}]),D}(),p='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',m=p;function g(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=y(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function y(D,R){if(D){if(typeof D=="string")return C(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return C(D,R)}}function C(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}var E={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,x,B){if(B)return{dzuuid:B.file.upload.uuid,dzchunkindex:B.index,dztotalfilesize:B.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:B.file.upload.totalChunkCount,dzchunkbyteoffset:B.index*this.options.chunkSize}},accept:function(R,x){return x()},chunksUploaded:function(R,x){x()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var x=g(this.element.getElementsByTagName("div"),!0),B;try{for(x.s();!(B=x.n()).done;){var S=B.value;if(/(^| )dz-message($| )/.test(S.className)){R=S,S.className="dz-message";break}}}catch(I){x.e(I)}finally{x.f()}R||(R=U.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var w=R.getElementsByTagName("span")[0];return w&&(w.textContent!=null?w.textContent=this.options.dictFallbackMessage:w.innerText!=null&&(w.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,x,B,S){var w={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},I=R.width/R.height;x==null&&B==null?(x=w.srcWidth,B=w.srcHeight):x==null?x=B*I:B==null&&(B=x/I),x=Math.min(x,w.srcWidth),B=Math.min(B,w.srcHeight);var M=x/B;if(w.srcWidth>x||w.srcHeight>B)if(S==="crop")I>M?(w.srcHeight=R.height,w.srcWidth=w.srcHeight*M):(w.srcWidth=R.width,w.srcHeight=w.srcWidth/M);else if(S==="contain")I>M?B=x/I:x=B*I;else throw new Error("Unknown resizeMethod '".concat(S,"'"));return w.srcX=(R.width-w.srcWidth)/2,w.srcY=(R.height-w.srcHeight)/2,w.trgWidth=x,w.trgHeight=B,w},transformFile:function(R,x){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,x):x(R)},previewTemplate:m,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var x=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=U.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var B=g(R.previewElement.querySelectorAll("[data-dz-name]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=R.name}}catch(A){B.e(A)}finally{B.f()}var I=g(R.previewElement.querySelectorAll("[data-dz-size]"),!0),M;try{for(I.s();!(M=I.n()).done;)w=M.value,w.innerHTML=this.filesize(R.size)}catch(A){I.e(A)}finally{I.f()}this.options.addRemoveLinks&&(R._removeLink=U.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var Y=function(T){return T.preventDefault(),T.stopPropagation(),R.status===U.UPLOADING?U.confirm(x.options.dictCancelUploadConfirmation,function(){return x.removeFile(R)}):x.options.dictRemoveFileConfirmation?U.confirm(x.options.dictRemoveFileConfirmation,function(){return x.removeFile(R)}):x.removeFile(R)},G=g(R.previewElement.querySelectorAll("[data-dz-remove]"),!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;X.addEventListener("click",Y)}}catch(A){G.e(A)}finally{G.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,x){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var B=g(R.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.alt=R.name,w.src=x}}catch(I){B.e(I)}finally{B.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,x){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof x!="string"&&x.error&&(x=x.error);var B=g(R.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=x}}catch(I){B.e(I)}finally{B.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,x,B){if(R.previewElement){var S=g(R.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;I.nodeName==="PROGRESS"?I.value=x:I.style.width="".concat(x,"%")}}catch(M){S.e(M)}finally{S.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},b=E;function v(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(x){return typeof x}:v=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},v(D)}function k(D,R){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=_(D))||R&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function _(D,R){if(D){if(typeof D=="string")return O(D,R);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return O(D,R)}}function O(D,R){(R==null||R>D.length)&&(R=D.length);for(var x=0,B=new Array(R);x<R;x++)B[x]=D[x];return B}function L(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function N(D,R){for(var x=0;x<R.length;x++){var B=R[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function j(D,R,x){return R&&N(D.prototype,R),x&&N(D,x),D}function V(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(R&&R.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),R&&P(D,R)}function P(D,R){return P=Object.setPrototypeOf||function(B,S){return B.__proto__=S,B},P(D,R)}function z(D){var R=W();return function(){var B=Q(D),S;if(R){var w=Q(this).constructor;S=Reflect.construct(B,arguments,w)}else S=B.apply(this,arguments);return K(this,S)}}function K(D,R){return R&&(v(R)==="object"||typeof R=="function")?R:F(D)}function F(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q(D){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},Q(D)}var U=function(D){V(x,D);var R=z(x);function x(B,S){var w;L(this,x),w=R.call(this);var I,M;if(w.element=B,w.version=x.version,w.clickableElements=[],w.listeners=[],w.files=[],typeof w.element=="string"&&(w.element=document.querySelector(w.element)),!w.element||w.element.nodeType==null)throw new Error("Invalid dropzone element.");if(w.element.dropzone)throw new Error("Dropzone already attached.");x.instances.push(F(w)),w.element.dropzone=F(w);var Y=(M=x.optionsForElement(w.element))!=null?M:{};if(w.options=x.extend({},b,Y,S??{}),w.options.previewTemplate=w.options.previewTemplate.replace(/\n*/g,""),w.options.forceFallback||!x.isBrowserSupported())return K(w,w.options.fallback.call(F(w)));if(w.options.url==null&&(w.options.url=w.element.getAttribute("action")),!w.options.url)throw new Error("No URL provided.");if(w.options.acceptedFiles&&w.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(w.options.uploadMultiple&&w.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return w.options.acceptedMimeTypes&&(w.options.acceptedFiles=w.options.acceptedMimeTypes,delete w.options.acceptedMimeTypes),w.options.renameFilename!=null&&(w.options.renameFile=function(G){return w.options.renameFilename.call(F(w),G.name,G)}),typeof w.options.method=="string"&&(w.options.method=w.options.method.toUpperCase()),(I=w.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),w.options.previewsContainer!==!1&&(w.options.previewsContainer?w.previewsContainer=x.getElement(w.options.previewsContainer,"previewsContainer"):w.previewsContainer=w.element),w.options.clickable&&(w.options.clickable===!0?w.clickableElements=[w.element]:w.clickableElements=x.getElements(w.options.clickable,"clickable")),w.init(),w}return j(x,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(S){return S.accepted}).map(function(S){return S})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(S){return!S.accepted}).map(function(S){return S})}},{key:"getFilesWithStatus",value:function(S){return this.files.filter(function(w){return w.status===S}).map(function(w){return w})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(x.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(x.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(x.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(S){return S.status===x.UPLOADING||S.status===x.QUEUED}).map(function(S){return S})}},{key:"init",value:function(){var S=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(x.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var w=function X(){S.hiddenFileInput&&S.hiddenFileInput.parentNode.removeChild(S.hiddenFileInput),S.hiddenFileInput=document.createElement("input"),S.hiddenFileInput.setAttribute("type","file"),(S.options.maxFiles===null||S.options.maxFiles>1)&&S.hiddenFileInput.setAttribute("multiple","multiple"),S.hiddenFileInput.className="dz-hidden-input",S.options.acceptedFiles!==null&&S.hiddenFileInput.setAttribute("accept",S.options.acceptedFiles),S.options.capture!==null&&S.hiddenFileInput.setAttribute("capture",S.options.capture),S.hiddenFileInput.setAttribute("tabindex","-1"),S.hiddenFileInput.style.visibility="hidden",S.hiddenFileInput.style.position="absolute",S.hiddenFileInput.style.top="0",S.hiddenFileInput.style.left="0",S.hiddenFileInput.style.height="0",S.hiddenFileInput.style.width="0",x.getElement(S.options.hiddenInputContainer,"hiddenInputContainer").appendChild(S.hiddenFileInput),S.hiddenFileInput.addEventListener("change",function(){var A=S.hiddenFileInput.files;if(A.length){var T=k(A,!0),H;try{for(T.s();!(H=T.n()).done;){var Z=H.value;S.addFile(Z)}}catch(le){T.e(le)}finally{T.f()}}S.emit("addedfiles",A),X()})};w()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=k(this.events,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;this.on(Y,this.options[Y])}}catch(X){I.e(X)}finally{I.f()}this.on("uploadprogress",function(){return S.updateTotalUploadProgress()}),this.on("removedfile",function(){return S.updateTotalUploadProgress()}),this.on("canceled",function(X){return S.emit("complete",X)}),this.on("complete",function(X){if(S.getAddedFiles().length===0&&S.getUploadingFiles().length===0&&S.getQueuedFiles().length===0)return setTimeout(function(){return S.emit("queuecomplete")},0)});var G=function(A){if(A.dataTransfer.types){for(var T=0;T<A.dataTransfer.types.length;T++)if(A.dataTransfer.types[T]==="Files")return!0}return!1},J=function(A){if(G(A))return A.stopPropagation(),A.preventDefault?A.preventDefault():A.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(A){return S.emit("dragstart",A)},dragenter:function(A){return J(A),S.emit("dragenter",A)},dragover:function(A){var T;try{T=A.dataTransfer.effectAllowed}catch{}return A.dataTransfer.dropEffect=T==="move"||T==="linkMove"?"move":"copy",J(A),S.emit("dragover",A)},dragleave:function(A){return S.emit("dragleave",A)},drop:function(A){return J(A),S.drop(A)},dragend:function(A){return S.emit("dragend",A)}}}],this.clickableElements.forEach(function(X){return S.listeners.push({element:X,events:{click:function(T){return(X!==S.element||T.target===S.element||x.elementInside(T.target,S.element.querySelector(".dz-message")))&&S.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,x.instances.splice(x.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var S,w=0,I=0,M=this.getActiveFiles();if(M.length){var Y=k(this.getActiveFiles(),!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;w+=J.upload.bytesSent,I+=J.upload.total}}catch(X){Y.e(X)}finally{Y.f()}S=100*w/I}else S=100;return this.emit("totaluploadprogress",S,I,w)}},{key:"_getParamName",value:function(S){return typeof this.options.paramName=="function"?this.options.paramName(S):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(S,"]"):"")}},{key:"_renameFile",value:function(S){return typeof this.options.renameFile!="function"?S.name:this.options.renameFile(S)}},{key:"getFallbackForm",value:function(){var S,w;if(S=this.getExistingFallback())return S;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var M=x.createElement(I);return this.element.tagName!=="FORM"?(w=x.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),w.appendChild(M)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),w??M}},{key:"getExistingFallback",value:function(){for(var S=function(J){var X=k(J,!0),A;try{for(X.s();!(A=X.n()).done;){var T=A.value;if(/(^| )fallback($| )/.test(T.className))return T}}catch(H){X.e(H)}finally{X.f()}},w=0,I=["div","form"];w<I.length;w++){var M=I[w],Y;if(Y=S(this.element.getElementsByTagName(M)))return Y}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.addEventListener(I,M,!1))}return w}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.removeEventListener(I,M,!1))}return w}()})}},{key:"disable",value:function(){var S=this;return this.clickableElements.forEach(function(w){return w.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(w){return S.cancelUpload(w)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(S){return S.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(S){var w=0,I="b";if(S>0){for(var M=["tb","gb","mb","kb","b"],Y=0;Y<M.length;Y++){var G=M[Y],J=Math.pow(this.options.filesizeBase,4-Y)/10;if(S>=J){w=S/Math.pow(this.options.filesizeBase,4-Y),I=G;break}}w=Math.round(10*w)/10}return"<strong>".concat(w,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(S){if(S.dataTransfer){this.emit("drop",S);for(var w=[],I=0;I<S.dataTransfer.files.length;I++)w[I]=S.dataTransfer.files[I];if(w.length){var M=S.dataTransfer.items;M&&M.length&&M[0].webkitGetAsEntry!=null?this._addFilesFromItems(M):this.handleFiles(w)}this.emit("addedfiles",w)}}},{key:"paste",value:function(S){if(ke(S!=null?S.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",S);var w=S.clipboardData.items;if(w.length)return this._addFilesFromItems(w)}}},{key:"handleFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.addFile(M)}}catch(Y){w.e(Y)}finally{w.f()}}},{key:"_addFilesFromItems",value:function(S){var w=this;return function(){var I=[],M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value,J;G.webkitGetAsEntry!=null&&(J=G.webkitGetAsEntry())?J.isFile?I.push(w.addFile(G.getAsFile())):J.isDirectory?I.push(w._addFilesFromDirectory(J,J.name)):I.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?I.push(w.addFile(G.getAsFile())):I.push(void 0)}}catch(X){M.e(X)}finally{M.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(S,w){var I=this,M=S.createReader(),Y=function(X){return Oe(console,"log",function(A){return A.log(X)})},G=function J(){return M.readEntries(function(X){if(X.length>0){var A=k(X,!0),T;try{for(A.s();!(T=A.n()).done;){var H=T.value;H.isFile?H.file(function(Z){if(!(I.options.ignoreHiddenFiles&&Z.name.substring(0,1)==="."))return Z.fullPath="".concat(w,"/").concat(Z.name),I.addFile(Z)}):H.isDirectory&&I._addFilesFromDirectory(H,"".concat(w,"/").concat(H.name))}}catch(Z){A.e(Z)}finally{A.f()}J()}return null},Y)};return G()}},{key:"accept",value:function(S,w){this.options.maxFilesize&&S.size>this.options.maxFilesize*1024*1024?w(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(S.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):x.isValidFile(S,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(w(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",S)):this.options.accept.call(this,S,w):w(this.options.dictInvalidFileType)}},{key:"addFile",value:function(S){var w=this;S.upload={uuid:x.uuidv4(),progress:0,total:S.size,bytesSent:0,filename:this._renameFile(S)},this.files.push(S),S.status=x.ADDED,this.emit("addedfile",S),this._enqueueThumbnail(S),this.accept(S,function(I){I?(S.accepted=!1,w._errorProcessing([S],I)):(S.accepted=!0,w.options.autoQueue&&w.enqueueFile(S)),w._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.enqueueFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"enqueueFile",value:function(S){var w=this;if(S.status===x.ADDED&&S.accepted===!0){if(S.status=x.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return w.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(S){var w=this;if(this.options.createImageThumbnails&&S.type.match(/image.*/)&&S.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(S),setTimeout(function(){return w._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var S=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var w=this._thumbnailQueue.shift();return this.createThumbnail(w,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return S.emit("thumbnail",w,I),S._processingThumbnail=!1,S._processThumbnailQueue()})}}},{key:"removeFile",value:function(S){if(S.status===x.UPLOADING&&this.cancelUpload(S),this.files=ee(this.files,S),this.emit("removedfile",S),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(S){S==null&&(S=!1);var w=k(this.files.slice(),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;(M.status!==x.UPLOADING||S)&&this.removeFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"resizeImage",value:function(S,w,I,M,Y){var G=this;return this.createThumbnail(S,w,I,M,!0,function(J,X){if(X==null)return Y(S);var A=G.options.resizeMimeType;A==null&&(A=S.type);var T=X.toDataURL(A,G.options.resizeQuality);return(A==="image/jpeg"||A==="image/jpg")&&(T=me.restore(S.dataURL,T)),Y(x.dataURItoBlob(T))})}},{key:"createThumbnail",value:function(S,w,I,M,Y,G){var J=this,X=new FileReader;X.onload=function(){if(S.dataURL=X.result,S.type==="image/svg+xml"){G!=null&&G(X.result);return}J.createThumbnailFromUrl(S,w,I,M,Y,G)},X.readAsDataURL(S)}},{key:"displayExistingFile",value:function(S,w,I,M){var Y=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",S),this.emit("complete",S),!G)this.emit("thumbnail",S,w),I&&I();else{var J=function(A){Y.emit("thumbnail",S,A),I&&I()};S.dataURL=w,this.createThumbnailFromUrl(S,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,J,M)}}},{key:"createThumbnailFromUrl",value:function(S,w,I,M,Y,G,J){var X=this,A=document.createElement("img");return J&&(A.crossOrigin=J),Y=getComputedStyle(document.body).imageOrientation=="from-image"?!1:Y,A.onload=function(){var T=function(Z){return Z(1)};return typeof EXIF<"u"&&EXIF!==null&&Y&&(T=function(Z){return EXIF.getData(A,function(){return Z(EXIF.getTag(this,"Orientation"))})}),T(function(H){S.width=A.width,S.height=A.height;var Z=X.options.resize.call(X,S,w,I,M),le=document.createElement("canvas"),ge=le.getContext("2d");switch(le.width=Z.trgWidth,le.height=Z.trgHeight,H>4&&(le.width=Z.trgHeight,le.height=Z.trgWidth),H){case 2:ge.translate(le.width,0),ge.scale(-1,1);break;case 3:ge.translate(le.width,le.height),ge.rotate(Math.PI);break;case 4:ge.translate(0,le.height),ge.scale(1,-1);break;case 5:ge.rotate(.5*Math.PI),ge.scale(1,-1);break;case 6:ge.rotate(.5*Math.PI),ge.translate(0,-le.width);break;case 7:ge.rotate(.5*Math.PI),ge.translate(le.height,-le.width),ge.scale(-1,1);break;case 8:ge.rotate(-.5*Math.PI),ge.translate(-le.height,0);break}ue(ge,A,Z.srcX!=null?Z.srcX:0,Z.srcY!=null?Z.srcY:0,Z.srcWidth,Z.srcHeight,Z.trgX!=null?Z.trgX:0,Z.trgY!=null?Z.trgY:0,Z.trgWidth,Z.trgHeight);var Ae=le.toDataURL("image/png");if(G!=null)return G(Ae,le)})},G!=null&&(A.onerror=G),A.src=S.dataURL}},{key:"processQueue",value:function(){var S=this.options.parallelUploads,w=this.getUploadingFiles().length,I=w;if(!(w>=S)){var M=this.getQueuedFiles();if(M.length>0){if(this.options.uploadMultiple)return this.processFiles(M.slice(0,S-w));for(;I<S;){if(!M.length)return;this.processFile(M.shift()),I++}}}}},{key:"processFile",value:function(S){return this.processFiles([S])}},{key:"processFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;M.processing=!0,M.status=x.UPLOADING,this.emit("processing",M)}}catch(Y){w.e(Y)}finally{w.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",S),this.uploadFiles(S)}},{key:"_getFilesWithXhr",value:function(S){return this.files.filter(function(w){return w.xhr===S}).map(function(w){return w})}},{key:"cancelUpload",value:function(S){if(S.status===x.UPLOADING){var w=this._getFilesWithXhr(S.xhr),I=k(w,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;Y.status=x.CANCELED}}catch(A){I.e(A)}finally{I.f()}typeof S.xhr<"u"&&S.xhr.abort();var G=k(w,!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;this.emit("canceled",X)}}catch(A){G.e(A)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",w)}else(S.status===x.ADDED||S.status===x.QUEUED)&&(S.status=x.CANCELED,this.emit("canceled",S),this.options.uploadMultiple&&this.emit("canceledmultiple",[S]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(S){if(typeof S=="function"){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];return S.apply(this,I)}return S}},{key:"uploadFile",value:function(S){return this.uploadFiles([S])}},{key:"uploadFiles",value:function(S){var w=this;this._transformFiles(S,function(I){if(w.options.chunking){var M=I[0];S[0].upload.chunked=w.options.chunking&&(w.options.forceChunking||M.size>w.options.chunkSize),S[0].upload.totalChunkCount=Math.ceil(M.size/w.options.chunkSize)}if(S[0].upload.chunked){var Y=S[0],G=I[0];Y.upload.chunks=[];var J=function(){for(var Z=0;Y.upload.chunks[Z]!==void 0;)Z++;if(!(Z>=Y.upload.totalChunkCount)){var le=Z*w.options.chunkSize,ge=Math.min(le+w.options.chunkSize,G.size),Ae={name:w._getParamName(0),data:G.webkitSlice?G.webkitSlice(le,ge):G.slice(le,ge),filename:Y.upload.filename,chunkIndex:Z};Y.upload.chunks[Z]={file:Y,index:Z,dataBlock:Ae,status:x.UPLOADING,progress:0,retries:0},w._uploadData(S,[Ae])}};if(Y.upload.finishedChunkUpload=function(H,Z){var le=!0;H.status=x.SUCCESS,H.dataBlock=null,H.xhr=null;for(var ge=0;ge<Y.upload.totalChunkCount;ge++){if(Y.upload.chunks[ge]===void 0)return J();Y.upload.chunks[ge].status!==x.SUCCESS&&(le=!1)}le&&w.options.chunksUploaded(Y,function(){w._finished(S,Z,null)})},w.options.parallelChunkUploads)for(var X=0;X<Y.upload.totalChunkCount;X++)J();else J()}else{for(var A=[],T=0;T<S.length;T++)A[T]={name:w._getParamName(T),data:I[T],filename:S[T].upload.filename};w._uploadData(S,A)}})}},{key:"_getChunk",value:function(S,w){for(var I=0;I<S.upload.totalChunkCount;I++)if(S.upload.chunks[I]!==void 0&&S.upload.chunks[I].xhr===w)return S.upload.chunks[I]}},{key:"_uploadData",value:function(S,w){var I=this,M=new XMLHttpRequest,Y=k(S,!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;J.xhr=M}}catch(ye){Y.e(ye)}finally{Y.f()}S[0].upload.chunked&&(S[0].upload.chunks[w[0].chunkIndex].xhr=M);var X=this.resolveOption(this.options.method,S),A=this.resolveOption(this.options.url,S);M.open(X,A,!0);var T=this.resolveOption(this.options.timeout,S);T&&(M.timeout=this.resolveOption(this.options.timeout,S)),M.withCredentials=!!this.options.withCredentials,M.onload=function(ye){I._finishedUploading(S,M,ye)},M.ontimeout=function(){I._handleUploadError(S,M,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},M.onerror=function(){I._handleUploadError(S,M)};var H=M.upload!=null?M.upload:M;H.onprogress=function(ye){return I._updateFilesUploadProgress(S,M,ye)};var Z={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&x.extend(Z,this.options.headers);for(var le in Z){var ge=Z[le];ge&&M.setRequestHeader(le,ge)}var Ae=new FormData;if(this.options.params){var q=this.options.params;typeof q=="function"&&(q=q.call(this,S,M,S[0].upload.chunked?this._getChunk(S[0],M):null));for(var se in q){var _e=q[se];if(Array.isArray(_e))for(var $e=0;$e<_e.length;$e++)Ae.append(se,_e[$e]);else Ae.append(se,_e)}}var it=k(S,!0),ct;try{for(it.s();!(ct=it.n()).done;){var Ut=ct.value;this.emit("sending",Ut,M,Ae)}}catch(ye){it.e(ye)}finally{it.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",S,M,Ae),this._addFormElementData(Ae);for(var re=0;re<w.length;re++){var ve=w[re];Ae.append(ve.name,ve.data,ve.filename)}this.submitRequest(M,Ae,S)}},{key:"_transformFiles",value:function(S,w){for(var I=this,M=[],Y=0,G=function(A){I.options.transformFile.call(I,S[A],function(T){M[A]=T,++Y===S.length&&w(M)})},J=0;J<S.length;J++)G(J)}},{key:"_addFormElementData",value:function(S){if(this.element.tagName==="FORM"){var w=k(this.element.querySelectorAll("input, textarea, select, button"),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value,Y=M.getAttribute("name"),G=M.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof Y>"u"||Y===null))if(M.tagName==="SELECT"&&M.hasAttribute("multiple")){var J=k(M.options,!0),X;try{for(J.s();!(X=J.n()).done;){var A=X.value;A.selected&&S.append(Y,A.value)}}catch(T){J.e(T)}finally{J.f()}}else(!G||G!=="checkbox"&&G!=="radio"||M.checked)&&S.append(Y,M.value)}}catch(T){w.e(T)}finally{w.f()}}}},{key:"_updateFilesUploadProgress",value:function(S,w,I){if(S[0].upload.chunked){var J=S[0],X=this._getChunk(J,w);I?(X.progress=100*I.loaded/I.total,X.total=I.total,X.bytesSent=I.loaded):(X.progress=100,X.bytesSent=X.total),J.upload.progress=0,J.upload.total=0,J.upload.bytesSent=0;for(var A=0;A<J.upload.totalChunkCount;A++)J.upload.chunks[A]&&typeof J.upload.chunks[A].progress<"u"&&(J.upload.progress+=J.upload.chunks[A].progress,J.upload.total+=J.upload.chunks[A].total,J.upload.bytesSent+=J.upload.chunks[A].bytesSent);J.upload.progress=J.upload.progress/J.upload.totalChunkCount,this.emit("uploadprogress",J,J.upload.progress,J.upload.bytesSent)}else{var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(I?(G.upload.progress=100*I.loaded/I.total,G.upload.total=I.total,G.upload.bytesSent=I.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(T){M.e(T)}finally{M.f()}}}},{key:"_finishedUploading",value:function(S,w,I){var M;if(S[0].status!==x.CANCELED&&w.readyState===4){if(w.responseType!=="arraybuffer"&&w.responseType!=="blob"&&(M=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json")))try{M=JSON.parse(M)}catch(Y){I=Y,M="Invalid JSON response from server."}this._updateFilesUploadProgress(S,w),200<=w.status&&w.status<300?S[0].upload.chunked?S[0].upload.finishedChunkUpload(this._getChunk(S[0],w),M):this._finished(S,M,I):this._handleUploadError(S,w,M)}}},{key:"_handleUploadError",value:function(S,w,I){if(S[0].status!==x.CANCELED){if(S[0].upload.chunked&&this.options.retryChunks){var M=this._getChunk(S[0],w);if(M.retries++<this.options.retryChunksLimit){this._uploadData(S,[M.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(S,I||this.options.dictResponseError.replace("{{statusCode}}",w.status),w)}}},{key:"submitRequest",value:function(S,w,I){if(S.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}S.send(w)}},{key:"_finished",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.SUCCESS,this.emit("success",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.ERROR,this.emit("error",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(S){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];for(var Y=0,G=I;Y<G.length;Y++){var J=G[Y];for(var X in J){var A=J[X];S[X]=A}}return S}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){var w=Math.random()*16|0,I=S==="x"?w:w&3|8;return I.toString(16)})}}]),x}(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(D){if(D.getAttribute("id"))return U.options[ne(D.getAttribute("id"))]},U.instances=[],U.forElement=function(D){if(typeof D=="string"&&(D=document.querySelector(D)),(D!=null?D.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return D.dropzone},U.autoDiscover=!0,U.discover=function(){var D;if(document.querySelectorAll)D=document.querySelectorAll(".dropzone");else{D=[];var R=function(B){return function(){var S=[],w=k(B,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;/(^| )dropzone($| )/.test(M.className)?S.push(D.push(M)):S.push(void 0)}}catch(Y){w.e(Y)}finally{w.f()}return S}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var x=[],B=k(D,!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;U.optionsForElement(w)!==!1?x.push(new U(w)):x.push(void 0)}}catch(I){B.e(I)}finally{B.f()}return x}()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var D=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))D=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var R=k(U.blockedBrowsers,!0),x;try{for(R.s();!(x=R.n()).done;){var B=x.value;if(B.test(navigator.userAgent)){D=!1;continue}}}catch(S){R.e(S)}finally{R.f()}}else D=!1;return D},U.dataURItoBlob=function(D){for(var R=atob(D.split(",")[1]),x=D.split(",")[0].split(":")[1].split(";")[0],B=new ArrayBuffer(R.length),S=new Uint8Array(B),w=0,I=R.length,M=0<=I;M?w<=I:w>=I;M?w++:w--)S[w]=R.charCodeAt(w);return new Blob([B],{type:x})};var ee=function(R,x){return R.filter(function(B){return B!==x}).map(function(B){return B})},ne=function(R){return R.replace(/[\-_](\w)/g,function(x){return x.charAt(1).toUpperCase()})};U.createElement=function(D){var R=document.createElement("div");return R.innerHTML=D,R.childNodes[0]},U.elementInside=function(D,R){if(D===R)return!0;for(;D=D.parentNode;)if(D===R)return!0;return!1},U.getElement=function(D,R){var x;if(typeof D=="string"?x=document.querySelector(D):D.nodeType!=null&&(x=D),x==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return x},U.getElements=function(D,R){var x,B;if(D instanceof Array){B=[];try{var S=k(D,!0),w;try{for(S.s();!(w=S.n()).done;)x=w.value,B.push(this.getElement(x,R))}catch(Y){S.e(Y)}finally{S.f()}}catch{B=null}}else if(typeof D=="string"){B=[];var I=k(document.querySelectorAll(D),!0),M;try{for(I.s();!(M=I.n()).done;)x=M.value,B.push(x)}catch(Y){I.e(Y)}finally{I.f()}}else D.nodeType!=null&&(B=[D]);if(B==null||!B.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return B},U.confirm=function(D,R,x){if(window.confirm(D))return R();if(x!=null)return x()},U.isValidFile=function(D,R){if(!R)return!0;R=R.split(",");var x=D.type,B=x.replace(/\/.*$/,""),S=k(R,!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;if(I=I.trim(),I.charAt(0)==="."){if(D.name.toLowerCase().indexOf(I.toLowerCase(),D.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(B===I.replace(/\/.*$/,""))return!0}else if(x===I)return!0}}catch(M){S.e(M)}finally{S.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(D){return this.each(function(){return new U(this,D)})}),U.ADDED="added",U.QUEUED="queued",U.ACCEPTED=U.QUEUED,U.UPLOADING="uploading",U.PROCESSING=U.UPLOADING,U.CANCELED="canceled",U.ERROR="error",U.SUCCESS="success";var ae=function(R){R.naturalWidth;var x=R.naturalHeight,B=document.createElement("canvas");B.width=1,B.height=x;var S=B.getContext("2d");S.drawImage(R,0,0);for(var w=S.getImageData(1,0,1,x),I=w.data,M=0,Y=x,G=x;G>M;){var J=I[(G-1)*4+3];J===0?Y=G:M=G,G=Y+M>>1}var X=G/x;return X===0?1:X},ue=function(R,x,B,S,w,I,M,Y,G,J){var X=ae(x);return R.drawImage(x,B,S,w,I,M,Y,G,J/X)},me=function(){function D(){L(this,D)}return j(D,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(x){for(var B="",S=void 0,w=void 0,I="",M=void 0,Y=void 0,G=void 0,J="",X=0;S=x[X++],w=x[X++],I=x[X++],M=S>>2,Y=(S&3)<<4|w>>4,G=(w&15)<<2|I>>6,J=I&63,isNaN(w)?G=J=64:isNaN(I)&&(J=64),B=B+this.KEY_STR.charAt(M)+this.KEY_STR.charAt(Y)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(J),S=w=I="",M=Y=G=J="",X<x.length;);return B}},{key:"restore",value:function(x,B){if(!x.match("data:image/jpeg;base64,"))return B;var S=this.decode64(x.replace("data:image/jpeg;base64,","")),w=this.slice2Segments(S),I=this.exifManipulation(B,w);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(x,B){var S=this.getExifArray(B),w=this.insertExif(x,S),I=new Uint8Array(w);return I}},{key:"getExifArray",value:function(x){for(var B=void 0,S=0;S<x.length;){if(B=x[S],B[0]===255&B[1]===225)return B;S++}return[]}},{key:"insertExif",value:function(x,B){var S=x.replace("data:image/jpeg;base64,",""),w=this.decode64(S),I=w.indexOf(255,3),M=w.slice(0,I),Y=w.slice(I),G=M;return G=G.concat(B),G=G.concat(Y),G}},{key:"slice2Segments",value:function(x){for(var B=0,S=[];;){var w;if(x[B]===255&x[B+1]===218)break;if(x[B]===255&x[B+1]===216)B+=2;else{w=x[B+2]*256+x[B+3];var I=B+w+2,M=x.slice(B,I);S.push(M),B=I}if(B>x.length)break}return S}},{key:"decode64",value:function(x){var B=void 0,S=void 0,w="",I=void 0,M=void 0,Y=void 0,G="",J=0,X=[],A=/[^A-Za-z0-9\+\/\=]/g;for(A.exec(x)&&console.warn(`There were invalid base64 characters in the input text.
1235
1235
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
1236
- Expect errors in decoding.`),x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(x.charAt(J++)),M=this.KEY_STR.indexOf(x.charAt(J++)),Y=this.KEY_STR.indexOf(x.charAt(J++)),G=this.KEY_STR.indexOf(x.charAt(J++)),B=I<<2|M>>4,S=(M&15)<<4|Y>>2,w=(Y&3)<<6|G,X.push(B),Y!==64&&X.push(S),G!==64&&X.push(w),B=S=w="",I=M=Y=G="",J<x.length;);return X}}]),D}();me.initClass();var Ce=function(R,x){var B=!1,S=!0,w=R.document,I=w.documentElement,M=w.addEventListener?"addEventListener":"attachEvent",Y=w.addEventListener?"removeEventListener":"detachEvent",G=w.addEventListener?"":"on",J=function A(T){if(!(T.type==="readystatechange"&&w.readyState!=="complete")&&((T.type==="load"?R:w)[Y](G+T.type,A,!1),!B&&(B=!0)))return x.call(R,T.type||T)},X=function A(){try{I.doScroll("left")}catch{setTimeout(A,50);return}return J("poll")};if(w.readyState!=="complete"){if(w.createEventObject&&I.doScroll){try{S=!R.frameElement}catch{}S&&X()}return w[M](G+"DOMContentLoaded",J,!1),w[M](G+"readystatechange",J,!1),R[M](G+"load",J,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},Ce(window,U._autoDiscoverFunction);function ke(D,R){return typeof D<"u"&&D!==null?R(D):void 0}function Oe(D,R,x){if(typeof D<"u"&&D!==null&&typeof D[R]=="function")return x(D,R)}window.Dropzone=U;var Se=U}(),i}()})})(t0);var Mw=t0.exports;const n0=Ud(Mw),Lw={class:"fallback"},Dw=l.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),Pw={for:"file"},Bw={class:"dz-message","data-dz-message":""},Rw={id:"bd-dropzone-theme",style:{display:"none"}},$w={class:"dz-preview dz-file-preview"},Vw={class:"dz-details"},Fw=l.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),jw=l.createElementVNode("div",{class:"dz-filename"},[l.createElementVNode("small",{"data-dz-name":""})],-1),zw=l.createElementVNode("div",{class:"dz-progress"},[l.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[l.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),Uw={class:"dz-success-mark"},Hw={class:"dz-error-message text-danger"},Ww=l.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Hd=l.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({variant:ua.PRIMARY,size:Mt.SM})),o=io(n,"modelValue",e);let i=null;n0.autoDiscover=!1,l.watch(()=>n.modelValue,()=>{s()}),l.onMounted(()=>{document.getElementById("dropzone")&&c()});const s=()=>{i&&(i.destroy(),c())},c=()=>{var p;i=new n0("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),i.on("error",d),i.on("success",a),i.on("removedfile",f)},a=function(p,m){var y;o.value.push({UUID:(y=p.upload)==null?void 0:y.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),u(p)},d=function(p){u(p)},u=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const y=p.previewElement.getElementsByClassName("icon-file"),g=p.previewElement.getElementsByClassName("dz-image");y[0].classList.remove("d-none"),g[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(y=>{var g;return(y==null?void 0:y.UUID)===((g=p.upload)==null?void 0:g.uuid)});m!==-1&&o.value.splice(m,1)},h=l.computed(()=>n.tag??"form");return(p,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:l.withCtx(()=>[l.createElementVNode("div",Lw,[Dw,l.createTextVNode(" test "),l.createElementVNode("label",Pw,[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)])]),l.createElementVNode("div",Bw,[l.createVNode(Qe,l.normalizeProps(l.guardReactiveProps(r.value)),{default:l.withCtx(()=>[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),l.createElementVNode("div",Rw,[l.createElementVNode("div",$w,[l.createElementVNode("div",Vw,[Fw,l.createVNode(l.unref(Vc),{"data-dz-thumbnail":"",class:"d-none"}),jw,l.createVNode(Qe,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:l.withCtx(()=>[l.createVNode(l.unref(ji))]),_:1})]),zw,l.createElementVNode("div",Uw,[l.createVNode(l.unref($o))]),l.createElementVNode("div",Hw,[l.createVNode(l.unref(la)),Ww])])])],64))}});function _t(t){this.content=t}_t.prototype={constructor:_t,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new _t(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new _t(n)},addToStart:function(t,e){return new _t([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new _t(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new _t(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=_t.from(t),t.size?new _t(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=_t.from(t),t.size?new _t(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=_t.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},_t.from=function(t){if(t instanceof _t)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new _t(e)};function r0(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=r0(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function o0(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),c=e.child(--i),a=s.nodeSize;if(s==c){n-=a,r-=a;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=o0(s.content,c.content,n-1,r-1);if(d)return d}n-=a,r-=a}}class he{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let a=this.content[s],d=c+a.nodeSize;if(d>e&&r(a,o+c,i||null,s)!==!1&&a.content.size){let u=c+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,a)=>{c.isText?(i+=c.text.slice(Math.max(e,a)-a,n-a),s=!r):c.isLeaf?(o?i+=typeof o=="function"?o(c):o:c.type.spec.leafText&&(i+=c.type.spec.leafText(c)),s=!r):!s&&c.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new he(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],a=s+c.nodeSize;a>e&&((s<e||a>n)&&(c.isText?c=c.cut(Math.max(0,e-s),Math.min(c.text.length,n-s)):c=c.cut(Math.max(0,e-s-1),Math.min(c.content.size,n-s-1))),r.push(c),o+=c.nodeSize),s=a}return new he(r,o)}cutByIndex(e,n){return e==n?he.empty:e==0&&n==this.content.length?this:new he(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new he(o,i)}addToStart(e){return new he([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new he(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return r0(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return o0(this,e,n,r)}findIndex(e,n=-1){if(e==0)return $a(0,e);if(e==this.size)return $a(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?$a(r+1,s):$a(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return he.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new he(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return he.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new he(n||e,r)}static from(e){if(!e)return he.empty;if(e instanceof he)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new he([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}he.empty=new he([],0);const Wd={index:0,offset:0};function $a(t,e){return Wd.index=t,Wd.offset=e,Wd}function Va(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Va(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Va(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let qe=class ph{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Va(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ph.none;if(e instanceof ph)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};qe.none=[];class Fa extends Error{}class we{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=s0(this.content,e+this.openStart,n);return r&&new we(r,this.openStart,this.openEnd)}removeBetween(e,n){return new we(i0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return we.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(he.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new we(e,r,o)}}we.empty=new we(he.empty,0,0);function i0(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:c}=t.findIndex(n);if(o==e||i.isText){if(c!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(i0(i.content,e-o-1,n-o-1)))}function s0(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=s0(s.content,e-i-1,n);return c&&t.replaceChild(o,s.copy(c))}function Kw(t,e,n){if(n.openStart>t.depth)throw new Fa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Fa("Inconsistent open depths");return a0(t,e,n,0)}function a0(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=a0(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,c=s.content;return mo(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=Yw(n,t);return mo(i,c0(t,s,c,e,r))}else return mo(i,ja(t,e,r))}function l0(t,e){if(!e.type.compatibleContent(t.type))throw new Fa("Cannot join "+e.type.name+" onto "+t.type.name)}function Kd(t,e,n){let r=t.node(n);return l0(r,e.node(n)),r}function po(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function vs(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(po(t.nodeAfter,r),i++));for(let c=i;c<s;c++)po(o.child(c),r);e&&e.depth==n&&e.textOffset&&po(e.nodeBefore,r)}function mo(t,e){return t.type.checkContent(e),t.copy(e)}function c0(t,e,n,r,o){let i=t.depth>o&&Kd(t,e,o+1),s=r.depth>o&&Kd(n,r,o+1),c=[];return vs(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(l0(i,s),po(mo(i,c0(t,e,n,r,o+1)),c)):(i&&po(mo(i,ja(t,e,o+1)),c),vs(e,n,o,c),s&&po(mo(s,ja(n,r,o+1)),c)),vs(r,null,o,c),new he(c)}function ja(t,e,n){let r=[];if(vs(null,t,n,r),t.depth>n){let o=Kd(t,e,n+1);po(mo(o,ja(t,e,n+1)),r)}return vs(e,null,n,r),new he(r)}function Yw(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(he.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class bs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return qe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new za(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:c,offset:a}=s.content.findIndex(i),d=i-a;if(r.push(s,c,o+a),!d||(s=s.child(c),s.isText))break;i=d-1,o+=a+1}return new bs(n,r,i)}static resolveCached(e,n){for(let o=0;o<Yd.length;o++){let i=Yd[o];if(i.pos==n&&i.doc==e)return i}let r=Yd[Gd]=bs.resolve(e,n);return Gd=(Gd+1)%Gw,r}}let Yd=[],Gd=0,Gw=12;class za{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Qw=Object.create(null);let go=class mh{constructor(e,n,r,o=qe.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||he.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Va(this.attrs,n||e.defaultAttrs||Qw)&&qe.sameSet(this.marks,r||qe.none)}copy(e=null){return e==this.content?this:new mh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new mh(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return we.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new we(d,o.depth-s,i.depth-s)}replace(e,n,r){return Kw(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return bs.resolveCached(this,e)}resolveNoCache(e){return bs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),d0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=he.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=qe.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!qe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=he.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};go.prototype.text=void 0;class Ua extends go{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):d0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ua(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ua(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function d0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class yo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Zw(e,n);if(r.next==null)return yo.empty;let o=u0(r);r.next&&r.err("Unexpected trailing text");let i=rk(nk(o));return ok(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,c){let a=s.matchFragment(e,r);if(a&&(!n||a.validEnd))return he.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:a}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||a.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
1236
+ Expect errors in decoding.`),x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(x.charAt(J++)),M=this.KEY_STR.indexOf(x.charAt(J++)),Y=this.KEY_STR.indexOf(x.charAt(J++)),G=this.KEY_STR.indexOf(x.charAt(J++)),B=I<<2|M>>4,S=(M&15)<<4|Y>>2,w=(Y&3)<<6|G,X.push(B),Y!==64&&X.push(S),G!==64&&X.push(w),B=S=w="",I=M=Y=G="",J<x.length;);return X}}]),D}();me.initClass();var Ce=function(R,x){var B=!1,S=!0,w=R.document,I=w.documentElement,M=w.addEventListener?"addEventListener":"attachEvent",Y=w.addEventListener?"removeEventListener":"detachEvent",G=w.addEventListener?"":"on",J=function A(T){if(!(T.type==="readystatechange"&&w.readyState!=="complete")&&((T.type==="load"?R:w)[Y](G+T.type,A,!1),!B&&(B=!0)))return x.call(R,T.type||T)},X=function A(){try{I.doScroll("left")}catch{setTimeout(A,50);return}return J("poll")};if(w.readyState!=="complete"){if(w.createEventObject&&I.doScroll){try{S=!R.frameElement}catch{}S&&X()}return w[M](G+"DOMContentLoaded",J,!1),w[M](G+"readystatechange",J,!1),R[M](G+"load",J,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},Ce(window,U._autoDiscoverFunction);function ke(D,R){return typeof D<"u"&&D!==null?R(D):void 0}function Oe(D,R,x){if(typeof D<"u"&&D!==null&&typeof D[R]=="function")return x(D,R)}window.Dropzone=U;var Se=U}(),i}()})})(t0);var Mw=t0.exports;const n0=Ud(Mw),Lw={class:"fallback"},Dw=l.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),Pw={for:"file"},Bw={class:"dz-message","data-dz-message":""},Rw={id:"bd-dropzone-theme",style:{display:"none"}},$w={class:"dz-preview dz-file-preview"},Vw={class:"dz-details"},Fw=l.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),jw=l.createElementVNode("div",{class:"dz-filename"},[l.createElementVNode("small",{"data-dz-name":""})],-1),zw=l.createElementVNode("div",{class:"dz-progress"},[l.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[l.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),Uw={class:"dz-success-mark"},Hw={class:"dz-error-message text-danger"},Ww=l.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Hd=l.defineComponent({__name:"BDDropzone",props:{modelValue:{default:[]},buttonText:{default:void 0},multiple:{type:Boolean,default:!1},errorMessage:{default:void 0},fileSizeExceededMessage:{default:void 0},acceptedFiles:{default:".jpg"},url:{default:""},tag:{default:"form"},token:{default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({variant:ua.PRIMARY,size:Mt.SM})),o=io(n,"modelValue",e);let i=null;n0.autoDiscover=!1,l.watch(()=>n.modelValue,()=>{s()}),l.onMounted(()=>{document.getElementById("dropzone")&&c()});const s=()=>{i&&(i.destroy(),c())},c=()=>{var p;i=new n0("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),i.on("error",d),i.on("success",a),i.on("removedfile",f)},a=function(p,m){var g;o.value.push({UUID:(g=p.upload)==null?void 0:g.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),u(p)},d=function(p){u(p)},u=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const g=p.previewElement.getElementsByClassName("icon-file"),y=p.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),y[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(g=>{var y;return(g==null?void 0:g.UUID)===((y=p.upload)==null?void 0:y.uuid)});m!==-1&&o.value.splice(m,1)},h=l.computed(()=>n.tag??"form");return(p,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:l.withCtx(()=>[l.createElementVNode("div",Lw,[Dw,l.createTextVNode(" test "),l.createElementVNode("label",Pw,[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)])]),l.createElementVNode("div",Bw,[l.createVNode(Qe,l.normalizeProps(l.guardReactiveProps(r.value)),{default:l.withCtx(()=>[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),l.createElementVNode("div",Rw,[l.createElementVNode("div",$w,[l.createElementVNode("div",Vw,[Fw,l.createVNode(l.unref(Vc),{"data-dz-thumbnail":"",class:"d-none"}),jw,l.createVNode(Qe,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:l.withCtx(()=>[l.createVNode(l.unref(ji))]),_:1})]),zw,l.createElementVNode("div",Uw,[l.createVNode(l.unref($o))]),l.createElementVNode("div",Hw,[l.createVNode(l.unref(la)),Ww])])])],64))}});function _t(t){this.content=t}_t.prototype={constructor:_t,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new _t(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new _t(n)},addToStart:function(t,e){return new _t([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new _t(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new _t(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=_t.from(t),t.size?new _t(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=_t.from(t),t.size?new _t(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=_t.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},_t.from=function(t){if(t instanceof _t)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new _t(e)};function r0(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let s=0;o.text[s]==i.text[s];s++)n++;return n}if(o.content.size||i.content.size){let s=r0(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function o0(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let s=t.child(--o),c=e.child(--i),a=s.nodeSize;if(s==c){n-=a,r-=a;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=o0(s.content,c.content,n-1,r-1);if(d)return d}n-=a,r-=a}}class he{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let a=this.content[s],d=c+a.nodeSize;if(d>e&&r(a,o+c,i||null,s)!==!1&&a.content.size){let u=c+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,a)=>{c.isText?(i+=c.text.slice(Math.max(e,a)-a,n-a),s=!r):c.isLeaf?(o?i+=typeof o=="function"?o(c):o:c.type.spec.leafText&&(i+=c.type.spec.leafText(c)),s=!r):!s&&c.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new he(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],a=s+c.nodeSize;a>e&&((s<e||a>n)&&(c.isText?c=c.cut(Math.max(0,e-s),Math.min(c.text.length,n-s)):c=c.cut(Math.max(0,e-s-1),Math.min(c.content.size,n-s-1))),r.push(c),o+=c.nodeSize),s=a}return new he(r,o)}cutByIndex(e,n){return e==n?he.empty:e==0&&n==this.content.length?this:new he(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new he(o,i)}addToStart(e){return new he([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new he(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return r0(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return o0(this,e,n,r)}findIndex(e,n=-1){if(e==0)return $a(0,e);if(e==this.size)return $a(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?$a(r+1,s):$a(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return he.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new he(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return he.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new he(n||e,r)}static from(e){if(!e)return he.empty;if(e instanceof he)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new he([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}he.empty=new he([],0);const Wd={index:0,offset:0};function $a(t,e){return Wd.index=t,Wd.offset=e,Wd}function Va(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Va(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Va(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let qe=class ph{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Va(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return ph.none;if(e instanceof ph)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};qe.none=[];class Fa extends Error{}class we{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=s0(this.content,e+this.openStart,n);return r&&new we(r,this.openStart,this.openEnd)}removeBetween(e,n){return new we(i0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return we.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(he.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new we(e,r,o)}}we.empty=new we(he.empty,0,0);function i0(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:s,offset:c}=t.findIndex(n);if(o==e||i.isText){if(c!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(i0(i.content,e-o-1,n-o-1)))}function s0(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),s=t.maybeChild(o);if(i==e||s.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let c=s0(s.content,e-i-1,n);return c&&t.replaceChild(o,s.copy(c))}function Kw(t,e,n){if(n.openStart>t.depth)throw new Fa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Fa("Inconsistent open depths");return a0(t,e,n,0)}function a0(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let s=a0(t,e,n,r+1);return i.copy(i.content.replaceChild(o,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,c=s.content;return mo(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=Yw(n,t);return mo(i,c0(t,s,c,e,r))}else return mo(i,ja(t,e,r))}function l0(t,e){if(!e.type.compatibleContent(t.type))throw new Fa("Cannot join "+e.type.name+" onto "+t.type.name)}function Kd(t,e,n){let r=t.node(n);return l0(r,e.node(n)),r}function po(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function vs(t,e,n,r){let o=(e||t).node(n),i=0,s=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(po(t.nodeAfter,r),i++));for(let c=i;c<s;c++)po(o.child(c),r);e&&e.depth==n&&e.textOffset&&po(e.nodeBefore,r)}function mo(t,e){return t.type.checkContent(e),t.copy(e)}function c0(t,e,n,r,o){let i=t.depth>o&&Kd(t,e,o+1),s=r.depth>o&&Kd(n,r,o+1),c=[];return vs(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(l0(i,s),po(mo(i,c0(t,e,n,r,o+1)),c)):(i&&po(mo(i,ja(t,e,o+1)),c),vs(e,n,o,c),s&&po(mo(s,ja(n,r,o+1)),c)),vs(r,null,o,c),new he(c)}function ja(t,e,n){let r=[];if(vs(null,t,n,r),t.depth>n){let o=Kd(t,e,n+1);po(mo(o,ja(t,e,n+1)),r)}return vs(e,null,n,r),new he(r)}function Yw(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(he.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class bs{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return qe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new za(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let s=e;;){let{index:c,offset:a}=s.content.findIndex(i),d=i-a;if(r.push(s,c,o+a),!d||(s=s.child(c),s.isText))break;i=d-1,o+=a+1}return new bs(n,r,i)}static resolveCached(e,n){for(let o=0;o<Yd.length;o++){let i=Yd[o];if(i.pos==n&&i.doc==e)return i}let r=Yd[Gd]=bs.resolve(e,n);return Gd=(Gd+1)%Gw,r}}let Yd=[],Gd=0,Gw=12;class za{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Qw=Object.create(null);let go=class mh{constructor(e,n,r,o=qe.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||he.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Va(this.attrs,n||e.defaultAttrs||Qw)&&qe.sameSet(this.marks,r||qe.none)}copy(e=null){return e==this.content?this:new mh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new mh(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return we.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new we(d,o.depth-s,i.depth-s)}replace(e,n,r){return Kw(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return bs.resolveCached(this,e)}resolveNoCache(e){return bs.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),d0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=he.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let a=o;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=qe.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!qe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=he.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};go.prototype.text=void 0;class Ua extends go{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):d0(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ua(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ua(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function d0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class yo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Zw(e,n);if(r.next==null)return yo.empty;let o=u0(r);r.next&&r.err("Unexpected trailing text");let i=rk(nk(o));return ok(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(s,c){let a=s.matchFragment(e,r);if(a&&(!n||a.validEnd))return he.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:a}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||a.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
1237
1237
  `)}}yo.empty=new yo(!0);class Zw{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function u0(t){let e=[];do e.push(Jw(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Jw(t){let e=[];do e.push(Xw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Xw(t){let e=tk(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=qw(t,e);else break;return e}function f0(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function qw(t,e){let n=f0(t),r=n;return t.eat(",")&&(t.next!="}"?r=f0(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function ek(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function tk(t){if(t.eat("(")){let e=u0(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=ek(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function nk(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,c,a){let d={term:a,to:c};return e[s].push(d),d}function o(s,c){s.forEach(a=>a.to=c)}function i(s,c){if(s.type=="choice")return s.exprs.reduce((a,d)=>a.concat(i(d,c)),[]);if(s.type=="seq")for(let a=0;;a++){let d=i(s.exprs[a],c);if(a==s.exprs.length-1)return d;o(d,c=n())}else if(s.type=="star"){let a=n();return r(c,a),o(i(s.expr,a),a),[r(a)]}else if(s.type=="plus"){let a=n();return o(i(s.expr,c),a),o(i(s.expr,a),a),[r(a)]}else{if(s.type=="opt")return[r(c)].concat(i(s.expr,c));if(s.type=="range"){let a=c;for(let d=0;d<s.min;d++){let u=n();o(i(s.expr,a),u),a=u}if(s.max==-1)o(i(s.expr,a),a);else for(let d=s.min;d<s.max;d++){let u=n();r(a,u),o(i(s.expr,a),u),a=u}return[r(a)]}else{if(s.type=="name")return[r(c,void 0,s.value)];throw new Error("Unknown expr type")}}}}function h0(t,e){return e-t}function p0(t,e){let n=[];return r(e),n.sort(h0);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let s=0;s<i.length;s++){let{term:c,to:a}=i[s];!c&&n.indexOf(a)==-1&&r(a)}}}function rk(t){let e=Object.create(null);return n(p0(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:c,to:a})=>{if(!c)return;let d;for(let u=0;u<o.length;u++)o[u][0]==c&&(d=o[u][1]);p0(t,a).forEach(u=>{d||o.push([c,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[r.join(",")]=new yo(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let c=o[s][1].sort(h0);i.next.push({type:o[s][0],next:e[c.join(",")]||n(c)})}return i}}function ok(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,s=[];for(let c=0;c<o.next.length;c++){let{type:a,next:d}=o.next[c];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(d)==-1&&r.push(d)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function m0(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function g0(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function y0(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new ik(t[n]);return e}let v0=class j5{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=y0(r.attrs),this.defaultAttrs=m0(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==yo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:g0(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new go(this,this.computeAttrs(e),he.from(n),qe.setFrom(r))}createChecked(e=null,n,r){return n=he.from(n),this.checkContent(n),new go(this,this.computeAttrs(e),n,qe.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=he.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(he.empty,!0);return i?new go(this,e,n.append(i),qe.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:qe.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new j5(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class ik{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Ha{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=y0(o.attrs),this.excluded=null;let i=m0(this.attrs);this.instance=i?new qe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new qe(this,g0(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Ha(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class sk{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=_t.from(e.nodes),n.marks=_t.from(e.marks||{}),this.nodes=v0.compile(this.spec.nodes,this),this.marks=Ha.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",c=i.spec.marks;i.contentMatch=r[s]||(r[s]=yo.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=c=="_"?null:c?b0(this,c.split(" ")):c==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:b0(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof v0){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Ua(r,r.defaultAttrs,e,qe.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return go.fromJSON(this,e)}markFromJSON(e){return qe.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function b0(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let c in t.marks){let a=t.marks[c];(o=="_"||a.spec.group&&a.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=a)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Jo{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new _0(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new _0(this,n,!0);return r.addAll(e,n.from,n.to),we.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(ck(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let s=this.styles[i],c=s.style;if(!(c.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||c.length>e.length&&(c.charCodeAt(e.length)!=61||c.slice(e.length+1)!=n))){if(s.getAttrs){let a=s.getAttrs(n);if(a===!1)continue;s.attrs=a||void 0}return s}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,s=0;for(;s<n.length;s++){let c=n[s];if((c.priority==null?50:c.priority)<i)break}n.splice(s,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(s=>{r(s=w0(s)),s.mark||s.ignore||s.clearMark||(s.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(s=>{r(s=w0(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Jo(e,Jo.schemaRules(e)))}}const C0={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ak={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},E0={ol:!0,ul:!0},Wa=1,Ka=2,Cs=4;function S0(t,e,n){return e!=null?(e?Wa:0)|(e==="full"?Ka:0):t&&t.whitespace=="pre"?Wa|Ka:n&~Cs}class Ya{constructor(e,n,r,o,i,s,c){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=c,this.content=[],this.activeMarks=qe.none,this.stashMarks=[],this.match=s||(c&Cs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(he.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Wa)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=he.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(he.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):uk(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!C0.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class _0{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,s=S0(null,n.preserveWhitespace,0)|(r?Cs:0);o?i=new Ya(o.type,o.attrs,qe.none,qe.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Ya(null,null,qe.none,qe.none,!0,null,s):i=new Ya(e.schema.topNodeType,null,qe.none,qe.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(dk(r));if(!o)return;let[i,s]=o,c=this.top;for(let a=0;a<s.length;a++)this.removePendingMark(s[a],c);for(let a=0;a<i.length;a++)this.addPendingMark(i[a]);n();for(let a=0;a<i.length;a++)this.removePendingMark(i[a],c);for(let a=0;a<s.length;a++)this.addPendingMark(s[a])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Ka||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Wa)r.options&Ka?n=n.replace(/\r\n?/g,`
1238
1238
  `):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;E0.hasOwnProperty(r)&&this.parser.normalizeLists&&lk(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:ak.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,c=this.top,a=this.needsBlock;if(C0.hasOwnProperty(r))c.content.length&&c.content[0].isInline&&this.open&&(this.open--,c=this.top),s=!0,c.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(c),this.needsBlock=a}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
1239
- `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=qe.none,r=qe.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(c=>{s.clearMark(c)&&(r=c.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let c=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(c)&&this.open--,s&&this.removePendingMark(s,c)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=S0(e,o,i.options);i.options&Cs&&i.content.length==0&&(s|=Cs),this.nodes.push(new Ya(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(c,a)=>{for(;c>=0;c--){let d=n[c];if(d==""){if(c==n.length-1||c==0)continue;for(;a>=i;a--)if(s(c-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=d&&u.groups.indexOf(d)==-1)return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=fk(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function lk(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&E0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function ck(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function dk(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function w0(t){let e={};for(let n in t)e[n]=t[n];return e}function uk(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=c=>{i.push(c);for(let a=0;a<c.edgeCount;a++){let{type:d,next:u}=c.edge(a);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function fk(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class Vn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Qd(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let c=0,a=0;for(;c<i.length&&a<s.marks.length;){let d=s.marks[a];if(!this.marks[d.type.name]){a++;continue}if(!d.eq(i[c][0])||d.type.spec.spanning===!1)break;c++,a++}for(;c<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let d=s.marks[a++],u=this.serializeMark(d,s.isInline,n);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=Vn.renderSpec(Qd(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Vn.renderSpec(Qd(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,c=r?e.createElementNS(r,o):e.createElement(o),a=n[1],d=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){d=2;for(let u in a)if(a[u]!=null){let f=u.indexOf(" ");f>0?c.setAttributeNS(u.slice(0,f),u.slice(f+1),a[u]):c.setAttribute(u,a[u])}}for(let u=d;u<n.length;u++){let f=n[u];if(f===0){if(u<n.length-1||u>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:p}=Vn.renderSpec(e,f,r);if(c.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:c,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Vn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=k0(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return k0(e.marks)}}function k0(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Qd(t){return t.document||window.document}const A0=65535,T0=Math.pow(2,16);function hk(t,e){return t+e*T0}function I0(t){return t&A0}function pk(t){return(t-(t&A0))/T0}const x0=1,O0=2,Ga=4,N0=8;class Zd{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&N0)>0}get deletedBefore(){return(this.delInfo&(x0|Ga))>0}get deletedAfter(){return(this.delInfo&(O0|Ga))>0}get deletedAcross(){return(this.delInfo&Ga)>0}}class en{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&en.empty)return en.empty}recover(e){let n=0,r=I0(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+pk(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?o:0);if(a>e)break;let d=this.ranges[c+i],u=this.ranges[c+s],f=a+d;if(e<=f){let h=d?e==a?-1:e==f?1:n:n,p=a+o+(h<0?0:u);if(r)return p;let m=e==(n<0?a:f)?null:hk(c/3,e-a),y=e==a?O0:e==f?x0:Ga;return(n<0?e!=a:e!=f)&&(y|=N0),new Zd(p,y,m)}o+=u-d}return r?e+o:new Zd(e+o,0,null)}touches(e,n){let r=0,o=I0(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?r:0);if(a>e)break;let d=this.ranges[c+i],u=a+d;if(e<=u&&c==o*3)return!0;r+=this.ranges[c+s]-d}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],c=s-(this.inverted?i:0),a=s+(this.inverted?0:i),d=this.ranges[o+n],u=this.ranges[o+r];e(c,c+d,a,a+u),i+=u-d}}invert(){return new en(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?en.empty:new en(e<0?[0,-e,0]:[0,0,e])}}en.empty=new en([]);class Es{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new Es(this.maps,this.mirror,e,n)}copy(){return new Es(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Es;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],c=s.mapResult(e,n);if(c.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(c.recover);continue}}o|=c.delInfo,e=c.pos}return r?e:new Zd(e,o,null)}}const Jd=Object.create(null);class xt{getMap(){return en.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Jd[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Jd)throw new RangeError("Duplicate use of step JSON ID "+e);return Jd[e]=n,n.prototype.jsonID=e,n}}class ft{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ft(e,null)}static fail(e){return new ft(null,e)}static fromReplace(e,n,r,o){try{return ft.ok(e.replace(n,r,o))}catch(i){if(i instanceof Fa)return ft.fail(i.message);throw i}}}function Xd(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Xd(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return he.fromArray(r)}class Nr extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new we(Xd(n.content,(s,c)=>!s.isAtom||!c.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,i)}invert(){return new Fn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Nr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Nr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Nr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Nr(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("addMark",Nr);class Fn extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new we(Xd(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,r)}invert(){return new Nr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Fn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Fn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Fn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Fn(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("removeMark",Fn);class Mr extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Mr(this.pos,n.marks[o]);return new Mr(this.pos,this.mark)}}return new Xo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Mr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Mr(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("addNodeMark",Mr);class Xo extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Mr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Xo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Xo(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("removeNodeMark",Xo);class wt extends xt{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&qd(e,this.from,this.to)?ft.fail("Structure replace would overwrite content"):ft.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new en([this.from,this.to-this.from,this.slice.size])}invert(e){return new wt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new wt(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof wt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?we.empty:new we(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new wt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?we.empty:new we(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new wt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new wt(n.from,n.to,we.fromJSON(e,n.slice),!!n.structure)}}xt.jsonID("replace",wt);class bt extends xt{constructor(e,n,r,o,i,s,c=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=c}apply(e){if(this.structure&&(qd(e,this.from,this.gapFrom)||qd(e,this.gapTo,this.to)))return ft.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ft.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ft.fromReplace(e,this.from,this.to,r):ft.fail("Content does not fit in gap")}getMap(){return new en([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new bt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new bt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new bt(n.from,n.to,n.gapFrom,n.gapTo,we.fromJSON(e,n.slice),n.insert,!!n.structure)}}xt.jsonID("replaceAround",bt);function qd(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function mk(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(a,d,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+a.nodeSize,n),m=r.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(m)||(s&&s.to==h&&s.mark.eq(f[y])?s.to=p:o.push(s=new Fn(h,p,f[y])));c&&c.to==h?c.to=p:i.push(c=new Nr(h,p,r))}}),o.forEach(a=>t.step(a)),i.forEach(a=>t.step(a))}function gk(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,c)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Ha){let d=s.marks,u;for(;u=r.isInSet(d);)(a||(a=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let d=Math.min(c+s.nodeSize,n);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=d,h.step=i):o.push({style:f,from:Math.max(c,e),to:d,step:i})}}}),o.forEach(s=>t.step(new Fn(s.from,s.to,s.style)))}function yk(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let c=0;c<o.childCount;c++){let a=o.child(c),d=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new wt(s,d,we.empty));else{r=u;for(let f=0;f<a.marks.length;f++)n.allowsMarkType(a.marks[f].type)||t.step(new Fn(s,d,a.marks[f]));if(a.isText&&!n.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(a.text);)p||(p=new we(he.from(n.schema.text(" ",n.allowedMarks(a.marks))),0,0)),i.push(new wt(s+f.index,s+f.index+f[0].length,p))}}s=d}if(!r.validEnd){let c=r.fillBefore(he.empty,!0);t.replace(s,s,new we(c,0,0))}for(let c=i.length-1;c>=0;c--)t.step(i[c])}function vk(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function qo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!vk(o,i,s))break}return null}function bk(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),a=s,d=c,u=he.empty,f=0;for(let m=i,y=!1;m>n;m--)y||r.index(m)>0?(y=!0,u=he.from(r.node(m).copy(u)),f++):a--;let h=he.empty,p=0;for(let m=i,y=!1;m>n;m--)y||o.after(m+1)<o.end(m)?(y=!0,h=he.from(o.node(m).copy(h)),p++):d++;t.step(new bt(a,d,s,c,new we(u.append(h),f,p),u.size-f,!0))}function eu(t,e,n=null,r=t){let o=Ck(t,e),i=o&&Ek(r,e);return i?o.map(M0).concat({type:e,attrs:n}).concat(i.map(M0)):null}function M0(t){return{type:t,attrs:null}}function Ck(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function Ek(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;a&&d<o;d++)a=a.matchType(n.child(d).type);return!a||!a.validEnd?null:s}function Sk(t,e,n){let r=he.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let c=n[s].type.contentMatch.matchFragment(r);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=he.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new bt(o,i,o,i,new we(r,0,0),n.length,!0))}function _k(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,c)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&wk(t.doc,t.mapping.slice(i).map(c),r)){t.clearIncompatible(t.mapping.slice(i).map(c,1),r);let a=t.mapping.slice(i),d=a.map(c,1),u=a.map(c+s.nodeSize,1);return t.step(new bt(d,u,d+1,u-1,new we(he.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function wk(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function kk(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new bt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new we(he.from(s),0,0),1,!0))}function ei(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let d=o.depth-1,u=n-2;d>i;d--,u--){let f=o.node(d),h=o.index(d);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let y=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!y.type.validContent(p))return!1}let c=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(c,c,a?a.type:o.node(i+1).type)}function Ak(t,e,n=1,r){let o=t.doc.resolve(e),i=he.empty,s=he.empty;for(let c=o.depth,a=o.depth-n,d=n-1;c>a;c--,d--){i=he.from(o.node(c).copy(i));let u=r&&r[d];s=he.from(u?u.type.create(u.attrs,s):o.node(c).copy(s))}t.step(new wt(e,e,new we(i.append(s),n,n),!0))}function Lr(t,e){let n=t.resolve(e),r=n.index();return L0(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function L0(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Qa(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,c=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),c++,s=r.node(o).maybeChild(c)):(i=r.node(o).maybeChild(c-1),s=r.node(o+1)),i&&!i.isTextblock&&L0(i,s)&&r.node(o).canReplace(c,c+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function Tk(t,e,n){let r=new wt(e-n,e+n,we.empty,!0);t.step(r)}function Ik(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function xk(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let c=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(c>0?1:0),d=r.node(s),u=!1;if(i==1)u=d.canReplace(a,a,o);else{let f=d.contentMatchAt(a).findWrapping(o.firstChild.type);u=f&&d.canReplaceWith(a,a,f[0])}if(u)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function tu(t,e,n=e,r=we.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return D0(o,i,r)?new wt(e,n,r):new Ok(o,i,r).fit()}function D0(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Ok{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=he.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=he.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,c=o.depth;for(;s&&c&&i.childCount==1;)i=i.firstChild.content,s--,c--;let a=new we(i,s,c);return e>-1?new bt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new wt(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=nu(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let c=this.depth;c>=0;c--){let{type:a,match:d}=this.frontier[c],u,f=null;if(n==1&&(s?d.matchType(s.type)||(f=d.fillBefore(he.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(u=d.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=nu(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new we(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=nu(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new we(Ss(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new we(Ss(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,c=r?r.content:s.content,a=s.openStart-e,d=0,u=[],{match:f,type:h}=this.frontier[n];if(o){for(let y=0;y<o.childCount;y++)u.push(o.child(y));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;d<c.childCount;){let y=c.child(d),g=f.matchType(y.type);if(!g)break;d++,(d>1||a==0||y.content.size)&&(f=g,u.push(P0(y.mark(h.allowedMarks(y.marks)),d==1?a:0,d==c.childCount?p:-1)))}let m=d==c.childCount;m||(p=-1),this.placed=_s(this.placed,n,he.from(u)),this.frontier[n].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,g=c;y<p;y++){let b=g.lastChild;this.frontier.push({type:b.type,match:b.contentMatchAt(b.childCount)}),g=b.content}this.unplaced=m?e==0?we.empty:new we(Ss(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new we(Ss(s.content,e,d),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!ru(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=ru(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:a,type:d}=this.frontier[c],u=ru(e,c,d,a,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=_s(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=_s(this.placed,this.depth,he.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(he.empty,!0);n.childCount&&(this.placed=_s(this.placed,this.frontier.length,n))}}function Ss(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ss(t.firstChild.content,e-1,n)))}function _s(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(_s(t.lastChild.content,e-1,n)))}function nu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function P0(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,P0(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(he.empty,!0)))),t.copy(r)}function ru(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let c=r.fillBefore(i.content,!0,s);return c&&!Nk(n,i.content,s)?c:null}function Nk(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function Mk(t){return t.spec.defining||t.spec.definingForContent}function Lk(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(D0(o,i,r))return t.step(new wt(e,n,r));let s=R0(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let c=-(o.depth+1);s.unshift(c);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let m=o.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?c=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(c),d=[],u=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(d.push(m),p==r.openStart)break;h=m.content}for(let h=u-1;h>=0;h--){let p=d[h],m=Mk(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=d[p];if(m)for(let y=0;y<s.length;y++){let g=s[(y+a)%s.length],b=!0;g<0&&(b=!1,g=-g);let E=o.node(g-1),C=o.index(g-1);if(E.canReplaceWith(C,C,m.type,m.marks))return t.replace(o.before(g),b?i.after(g):n,new we(B0(r.content,0,r.openStart,p),p,r.openEnd))}}let f=t.steps.length;for(let h=s.length-1;h>=0&&(t.replace(e,n,r),!(t.steps.length>f));h--){let p=s[h];p<0||(e=o.before(p),n=i.after(p))}}function B0(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(B0(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(he.empty,!0))}return t}function Dk(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=Ik(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new we(he.from(r),0,0))}function Pk(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=R0(r,o);for(let s=0;s<i.length;s++){let c=i[s],a=s==i.length-1;if(a&&c==0||r.node(c).type.contentMatch.validEnd)return t.delete(r.start(c),o.end(c));if(c>0&&(a||r.node(c-1).canReplace(r.index(c-1),o.indexAfter(c-1))))return t.delete(r.before(c),o.after(c))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function R0(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class ti extends xt{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(o),0,n.isLeaf?0:1))}getMap(){return en.empty}invert(e){return new ti(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ti(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ti(n.pos,n.attr,n.value)}}xt.jsonID("attr",ti);class ws extends xt{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return ft.ok(r)}getMap(){return en.empty}invert(e){return new ws(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ws(n.attr,n.value)}}xt.jsonID("docAttr",ws);let ni=class extends Error{};ni=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ni.prototype=Object.create(Error.prototype),ni.prototype.constructor=ni,ni.prototype.name="TransformError";class $0{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Es}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ni(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=we.empty){let o=tu(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new we(he.from(r),0,0))}delete(e,n){return this.replace(e,n,we.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return Lk(this,e,n,r),this}replaceRangeWith(e,n,r){return Dk(this,e,n,r),this}deleteRange(e,n){return Pk(this,e,n),this}lift(e,n){return bk(this,e,n),this}join(e,n=1){return Tk(this,e,n),this}wrap(e,n){return Sk(this,e,n),this}setBlockType(e,n=e,r,o=null){return _k(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return kk(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new ti(e,n,r)),this}setDocAttribute(e,n){return this.step(new ws(e,n)),this}addNodeMark(e,n){return this.step(new Mr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Xo(e,n)),this}split(e,n=1,r){return Ak(this,e,n,r),this}addMark(e,n,r){return mk(this,e,n,r),this}removeMark(e,n,r){return gk(this,e,n,r),this}clearIncompatible(e,n,r){return yk(this,e,n,r),this}}const ou=Object.create(null);class Ye{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Bk(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=we.empty){let r=n.content.lastChild,o=null;for(let c=0;c<n.openEnd;c++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let c=0;c<s.length;c++){let{$from:a,$to:d}=s[c],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(d.pos),c?we.empty:n),c==0&&j0(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:c}=o[i],a=e.mapping.slice(r),d=a.map(s.pos),u=a.map(c.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,n),j0(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Ge(e):ri(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=n<0?ri(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):ri(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new On(e.node(0))}static atStart(e){return ri(e,e,0,0,1)||new On(e)}static atEnd(e){return ri(e,e,e.content.size,e.childCount,-1)||new On(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=ou[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in ou)throw new RangeError("Duplicate use of selection JSON ID "+e);return ou[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ge.between(this.$anchor,this.$head).getBookmark()}}Ye.prototype.visible=!0;class Bk{constructor(e,n){this.$from=e,this.$to=n}}let V0=!1;function F0(t){!V0&&!t.parent.inlineContent&&(V0=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ge extends Ye{constructor(e,n=e){F0(e),F0(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Ye.near(r);let o=e.resolve(n.map(this.anchor));return new Ge(o.parent.inlineContent?o:r,r)}replace(e,n=we.empty){if(super.replace(e,n),n==we.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ge&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Za(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ge(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=Ye.findFrom(n,r,!0)||Ye.findFrom(n,-r,!0);if(i)n=i.$head;else return Ye.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Ye.findFrom(e,-r,!0)||Ye.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Ge(e,n)}}Ye.jsonID("text",Ge);class Za{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Za(e.map(this.anchor),e.map(this.head))}resolve(e){return Ge.between(e.resolve(this.anchor),e.resolve(this.head))}}class De extends Ye{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),i=e.resolve(o);return r?Ye.near(i):new De(i)}content(){return new we(he.from(this.node),0,0)}eq(e){return e instanceof De&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new iu(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new De(e.resolve(n.anchor))}static create(e,n){return new De(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}De.prototype.visible=!1,Ye.jsonID("node",De);class iu{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Za(r,r):new iu(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&De.isSelectable(r)?new De(n):Ye.near(n)}}class On extends Ye{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=we.empty){if(n==we.empty){e.delete(0,e.doc.content.size);let r=Ye.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new On(e)}map(e){return new On(e)}eq(e){return e instanceof On}getBookmark(){return Rk}}Ye.jsonID("all",On);const Rk={map(){return this},resolve(t){return new On(t)}};function ri(t,e,n,r,o,i=!1){if(e.inlineContent)return Ge.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let c=e.child(s);if(c.isAtom){if(!i&&De.isSelectable(c))return De.create(t,n-(o<0?c.nodeSize:0))}else{let a=ri(t,c,n+o,o<0?c.childCount:0,o,i);if(a)return a}n+=c.nodeSize*o}return null}function j0(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;let i=t.mapping.maps[r],s;i.forEach((c,a,d,u)=>{s==null&&(s=u)}),t.setSelection(Ye.near(t.doc.resolve(s),n))}const z0=1,Ja=2,U0=4;class $k extends $0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|z0)&~Ja,this.storedMarks=null,this}get selectionSet(){return(this.updated&z0)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ja,this}ensureMarks(e){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ja)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ja,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(Ye.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=U0,this}get scrolledIntoView(){return(this.updated&U0)>0}}function H0(t,e){return!e||!t?t:t.bind(e)}class ks{constructor(e,n,r){this.name=e,this.init=H0(n.init,r),this.apply=H0(n.apply,r)}}const Vk=[new ks("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ks("selection",{init(t,e){return t.selection||Ye.atStart(e.doc)},apply(t){return t.selection}}),new ks("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new ks("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class su{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Vk.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new ks(r.key,r.spec.state,r))})}}class oi{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let c=this.config.plugins[s];if(c.spec.appendTransaction){let a=o?o[s].n:0,d=o?o[s].state:this,u=a<n.length&&c.spec.appendTransaction.call(c,a?n.slice(a):n,d,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new oi(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new $k(this)}static create(e){let n=new su(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new oi(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new su(this.schema,e.plugins),r=n.fields,o=new oi(n);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new su(e.schema,e.plugins),i=new oi(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=go.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Ye.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let c in r){let a=r[c],d=a.spec.state;if(a.key==s.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=d.fromJSON.call(a,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function W0(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=W0(o,e,{})),n[r]=o}return n}class Qt{constructor(e){this.spec=e,this.props={},e.props&&W0(e.props,this,this.props),this.key=e.key?e.key.key:K0("plugin")}getState(e){return e[this.key]}}const au=Object.create(null);function K0(t){return t in au?t+"$"+ ++au[t]:(au[t]=0,t+"$")}class Nn{constructor(e="key"){this.key=K0(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Bt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},As=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Y0=null;const cr=function(t,e,n){let r=Y0||(Y0=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},vo=function(t,e,n,r){return n&&(G0(t,e,n,r,-1)||G0(t,e,n,r,1))},Fk=/^(img|br|input|textarea|hr)$/i;function G0(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:jn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||lu(t)||Fk.test(t.nodeName)||t.contentEditable=="false")return!1;e=Bt(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?jn(t):0}else return!1}}function jn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function jk(t,e,n){for(let r=e==0,o=e==jn(t);r||o;){if(t==n)return!0;let i=Bt(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==jn(t)}}function lu(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Xa=function(t){return t.focusNode&&vo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function bo(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function zk(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Uk(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const zn=typeof navigator<"u"?navigator:null,Q0=typeof document<"u"?document:null,Dr=zn&&zn.userAgent||"",cu=/Edge\/(\d+)/.exec(Dr),Z0=/MSIE \d/.exec(Dr),du=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dr),Zt=!!(Z0||du||cu),Pr=Z0?document.documentMode:du?+du[1]:cu?+cu[1]:0,Mn=!Zt&&/gecko\/(\d+)/i.test(Dr);Mn&&+(/Firefox\/(\d+)/.exec(Dr)||[0,0])[1];const uu=!Zt&&/Chrome\/(\d+)/.exec(Dr),Ot=!!uu,Hk=uu?+uu[1]:0,Rt=!Zt&&!!zn&&/Apple Computer/.test(zn.vendor),ii=Rt&&(/Mobile\/\w+/.test(Dr)||!!zn&&zn.maxTouchPoints>2),cn=ii||(zn?/Mac/.test(zn.platform):!1),Wk=zn?/Win/.test(zn.platform):!1,Ln=/Android \d/.test(Dr),Ts=!!Q0&&"webkitFontSmoothing"in Q0.documentElement.style,Kk=Ts?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Yk(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function dr(t,e){return typeof t=="number"?t:t[e]}function Gk(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function J0(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=As(s)){if(s.nodeType!=1)continue;let c=s,a=c==i.body,d=a?Yk(i):Gk(c),u=0,f=0;if(e.top<d.top+dr(r,"top")?f=-(d.top-e.top+dr(o,"top")):e.bottom>d.bottom-dr(r,"bottom")&&(f=e.bottom-e.top>d.bottom-d.top?e.top+dr(o,"top")-d.top:e.bottom-d.bottom+dr(o,"bottom")),e.left<d.left+dr(r,"left")?u=-(d.left-e.left+dr(o,"left")):e.right>d.right-dr(r,"right")&&(u=e.right-d.right+dr(o,"right")),u||f)if(a)i.defaultView.scrollBy(u,f);else{let h=c.scrollLeft,p=c.scrollTop;f&&(c.scrollTop+=f),u&&(c.scrollLeft+=u);let m=c.scrollLeft-h,y=c.scrollTop-p;e={left:e.left-m,top:e.top-y,right:e.right-m,bottom:e.bottom-y}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function Qk(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let c=t.root.elementFromPoint(i,s);if(!c||c==t.dom||!t.dom.contains(c))continue;let a=c.getBoundingClientRect();if(a.top>=n-20){r=c,o=a.top;break}}return{refDOM:r,refTop:o,stack:X0(t.dom)}}function X0(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=As(r));return e}function Zk({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;q0(n,r==0?0:r-e)}function q0(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let si=null;function Jk(t){if(t.setActive)return t.setActive();if(si)return t.focus(si);let e=X0(t);t.focus(si==null?{get preventScroll(){return si={preventScroll:!0},!0}}:void 0),si||(si=!1,q0(e,0))}function eg(t,e){let n,r=2e8,o,i=0,s=e.top,c=e.top,a,d;for(let u=t.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=cr(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=c){s=Math.max(m.bottom,s),c=Math.min(m.top,c);let y=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(y<r){n=u,r=y,o=y&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&y&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!a&&m.left<=e.left&&m.right>=e.left&&(a=u,d={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&a&&(n=a,o=d,r=0),n&&n.nodeType==3?Xk(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:eg(n,o)}function Xk(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=Br(r,1);if(i.top!=i.bottom&&fu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function fu(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function qk(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function eA(t,e,n){let{node:r,offset:o}=eg(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function tA(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let c=t.docView.nearestDesc(i,!0);if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent&&!s||!c.contentDOM)){let a=c.dom.getBoundingClientRect();if(c.node.isBlock&&c.parent&&!s&&(s=!0,a.left>r.left||a.top>r.top?o=c.posBefore:(a.right<r.left||a.bottom<r.top)&&(o=c.posAfter)),!c.contentDOM&&o<0&&!c.node.isText)return(c.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?c.posBefore:c.posAfter}i=c.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function tg(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let s=t.childNodes[i];if(s.nodeType==1){let c=s.getClientRects();for(let a=0;a<c.length;a++){let d=c[a];if(fu(e,d))return tg(s,e,d)}}if((i=(i+1)%r)==o)break}return t}function nA(t,e){let n=t.dom.ownerDocument,r,o=0,i=Uk(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),c;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let d=t.dom.getBoundingClientRect();if(!fu(e,d)||(s=tg(t.dom,e,d),!s))return null}if(Rt)for(let d=s;r&&d;d=As(d))d.draggable&&(r=void 0);if(s=qk(s,e),r){if(Mn&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let d;Ts&&o&&r.nodeType==1&&(d=r.childNodes[o-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?c=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(c=tA(t,r,o,e))}c==null&&(c=eA(t,s,e));let a=t.docView.nearestDesc(s,!0);return{pos:c,inside:a?a.posAtStart-a.border:-1}}function ng(t){return t.top<t.bottom||t.left<t.right}function Br(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(ng(r))return r}return Array.prototype.find.call(n,ng)||t.getBoundingClientRect()}const rA=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function rg(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Ts||Mn;if(r.nodeType==3)if(s&&(rA.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let a=Br(cr(r,o,o),n);if(Mn&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let d=Br(cr(r,o-1,o-1),-1);if(d.top==a.top){let u=Br(cr(r,o,o+1),-1);if(u.top!=a.top)return Is(u,u.left<d.left)}}return a}else{let a=o,d=o,u=n<0?1:-1;return n<0&&!o?(d++,u=-1):n>=0&&o==r.nodeValue.length?(a--,u=1):n<0?a--:d++,Is(Br(cr(r,a,d),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==jn(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return hu(a.getBoundingClientRect(),!1)}if(i==null&&o<jn(r)){let a=r.childNodes[o];if(a.nodeType==1)return hu(a.getBoundingClientRect(),!0)}return hu(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==jn(r))){let a=r.childNodes[o-1],d=a.nodeType==3?cr(a,jn(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(d)return Is(Br(d,1),!1)}if(i==null&&o<jn(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let d=a?a.nodeType==3?cr(a,0,s?0:1):a.nodeType==1?a:null:null;if(d)return Is(Br(d,-1),!0)}return Is(Br(r.nodeType==3?cr(r):r,-n),n>=0)}function Is(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function hu(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function og(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function oA(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return og(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let c=t.docView.nearestDesc(i,!0);if(!c)break;if(c.node.isBlock){i=c.contentDOM||c.dom;break}i=c.dom.parentNode}let s=rg(t,o.pos,1);for(let c=i.firstChild;c;c=c.nextSibling){let a;if(c.nodeType==1)a=c.getClientRects();else if(c.nodeType==3)a=cr(c,0,c.nodeValue.length).getClientRects();else continue;for(let d=0;d<a.length;d++){let u=a[d];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const iA=/[\u0590-\u08ac]/;function sA(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,c=t.domSelection();return!iA.test(r.parent.textContent)||!c.modify?n=="left"||n=="backward"?i:s:og(t,e,()=>{let{focusNode:a,focusOffset:d,anchorNode:u,anchorOffset:f}=t.domSelectionRange(),h=c.caretBidiLevel;c.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:y}=t.domSelectionRange(),g=m&&!p.contains(m.nodeType==1?m:m.parentNode)||a==m&&d==y;try{c.collapse(u,f),a&&(a!=u||d!=f)&&c.extend&&c.extend(a,d)}catch{}return h!=null&&(c.caretBidiLevel=h),g})}let ig=null,sg=null,ag=!1;function aA(t,e,n){return ig==e&&sg==n?ag:(ig=e,sg=n,ag=n=="up"||n=="down"?oA(t,e,n):sA(t,e,n))}const dn=0,lg=1,Co=2,Un=3;class xs{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=dn,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>Bt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],c=i+s.size;if(c>e||s instanceof ug){o=e-i;break}i=c}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof cg&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Bt(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?Bt(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,c=0;;c++){let a=this.children[c],d=s+a.size;if(o==-1&&e<=d){let u=s+a.border;if(e>=u&&n<=d-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,u);e=s;for(let f=c;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=Bt(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(d>n||c==this.children.length-1)){n=d;for(let u=c+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=Bt(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=d}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],y=p+m.size;if(i>p&&s<y)return m.setSelection(e-p-m.border,n-p-m.border,r,o);p=y}let c=this.domFromPos(e,e?-1:1),a=n==e?c:this.domFromPos(n,n?-1:1),d=r.getSelection(),u=!1;if((Mn||Rt)&&e==n){let{node:h,offset:p}=c;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
1240
- `),u&&p==h.nodeValue.length)for(let m=h,y;m;m=m.parentNode){if(y=m.nextSibling){y.nodeName=="BR"&&(c=a={node:y.parentNode,offset:Bt(y)+1});break}let g=m.pmViewDesc;if(g&&g.node&&g.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Mn&&d.focusNode&&d.focusNode!=a.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&Rt)&&vo(c.node,c.offset,d.anchorNode,d.anchorOffset)&&vo(a.node,a.offset,d.focusNode,d.focusOffset))return;let f=!1;if((d.extend||e==n)&&!u){d.collapse(c.node,c.offset);try{e!=n&&d.extend(a.node,a.offset),f=!0}catch{}}if(!f){if(e>n){let p=c;c=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let c=r+i.border,a=s-i.border;if(e>=c&&n<=a){this.dirty=e==r||n==s?Co:lg,e==c&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Un:i.markDirty(e-c,n-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Co:Un}r=s}this.dirty=Co}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Co:lg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class cg extends xs{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let c=document.createElement("span");c.appendChild(s),s=c}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==dn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class lA extends xs{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Eo extends xs{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=Vn.renderSpec(document,n.type.spec.toDOM(n,r))),new Eo(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Un||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Un&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=dn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=dn}}slice(e,n,r){let o=Eo.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=gu(i,n,s,r)),e>0&&(i=gu(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}}class Rr extends xs{constructor(e,n,r,o,i,s,c,a,d){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=c}static create(e,n,r,o,i,s){let c=i.nodeViews[n.type.name],a,d=c&&c(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=d&&d.dom,f=d&&d.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=Vn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=pg(u,r,n),d?a=new cA(e,n,r,o,u,f||null,h,d,i,s+1):n.isText?new qa(e,n,r,o,u,h,i):new Rr(e,n,r,o,u,f||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>he.empty)}return e}matchesNode(e,n,r){return this.dirty==dn&&e.eq(this.node)&&mu(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,c=i&&i.pos<0,a=new uA(this,s&&s.node,e);pA(this.node,this.innerDeco,(d,u,f)=>{d.spec.marks?a.syncToMarks(d.spec.marks,r,e):d.type.side>=0&&!f&&a.syncToMarks(u==this.node.childCount?qe.none:this.node.child(u).marks,r,e),a.placeWidget(d,e,o)},(d,u,f,h)=>{a.syncToMarks(d.marks,r,e);let p;a.findNodeMatch(d,u,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+d.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(d,u,f,p,e)||a.updateNextNode(d,u,f,e,h,o)||a.addNode(d,u,f,e,o),o+=d.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Co)&&(s&&this.protectLocalComposition(e,s),fg(this.contentDOM,this.children,e),ii&&mA(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Ge)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=gA(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let c=s.nodeValue,a=yA(this.node.content,c,r-n,o-n);return a<0?null:{node:s,pos:a,text:c}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new lA(this,i,n,o);e.input.compositionNodes.push(s),this.children=gu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Un||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=dn}updateOuterDeco(e){if(mu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=hg(this.dom,this.nodeDOM,pu(this.outerDeco,this.node,n),pu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function dg(t,e,n,r,o){pg(r,e,t);let i=new Rr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class qa extends Rr{constructor(e,n,r,o,i,s,c){super(e,n,r,o,i,null,s,c,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Un||this.dirty!=dn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=dn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=dn,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new qa(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Un)}get domAtom(){return!1}}class ug extends xs{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==dn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class cA extends Rr{constructor(e,n,r,o,i,s,c,a,d,u){super(e,n,r,o,i,s,c,d,u),this.spec=a}update(e,n,r,o){if(this.dirty==Un)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function fg(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],c=s.dom;if(c.parentNode==t){for(;c!=r;)r=mg(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof Eo){let a=r?r.previousSibling:t.lastChild;fg(s.contentDOM,s.children,n),r=a?a.nextSibling:t.firstChild}}for(;r;)r=mg(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Os=function(t){t&&(this.nodeName=t)};Os.prototype=Object.create(null);const So=[new Os];function pu(t,e,n){if(t.length==0)return So;let r=n?So[0]:new Os,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Os(s.nodeName));for(let c in s){let a=s[c];a!=null&&(n&&o.length==1&&o.push(r=new Os(e.isInline?"span":"div")),c=="class"?r.class=(r.class?r.class+" ":"")+a:c=="style"?r.style=(r.style?r.style+";":"")+a:c!="nodeName"&&(r[c]=a))}}}return o}function hg(t,e,n,r){if(n==So&&r==So)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],c=n[i];if(i){let a;c&&c.nodeName==s.nodeName&&o!=t&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),c=So[0]),o=a}dA(o,c||So[0],s)}return o}function dA(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.add(o[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function pg(t,e,n){return hg(t,t,So,pu(e,n,t.nodeType!=1))}function mu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function mg(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class uA{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=fA(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=dn,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let c=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let d=this.top.children[a];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){c=a;break}}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let a=Eo.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let c=this.index,a=Math.min(this.top.children.length,c+5);c<a;c++){let d=this.top.children[c];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==Un&&s.dom==s.contentDOM&&(s.dirty=Co),s.update(e,n,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,i,s){for(let c=this.index;c<this.top.children.length;c++){let a=this.top.children[c];if(a instanceof Rr){let d=this.preMatch.matched.get(a);if(d!=null&&d!=i)return!1;let u=a.dom,f,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=Un&&mu(n,a.outerDeco));if(!h&&a.update(e,n,r,o))return this.destroyBetween(this.index,c),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=Co,f.updateChildren(o,s+1),f.dirty=dn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let c=Rr.create(this.top,n,r,o,i,s);if(c.contentDOM){c.children=e.children,e.children=[];for(let a of c.children)a.parent=c}return e.destroy(),c}addNode(e,n,r,o,i){let s=Rr.create(this.top,e,n,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new cg(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Eo;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof qa)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Rt||Ot)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new ug(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function fA(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let c;for(;;)if(r){let d=n.children[r-1];if(d instanceof Eo)n=d,r=d.children.length;else{c=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let a=c.node;if(a){if(a!=t.child(o-1))break;--o,i.set(c,o),s.push(c)}}return{index:o,matched:i,matches:s.reverse()}}function hA(t,e){return t.type.side-e.type.side}function pA(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let d=0;d<t.childCount;d++){let u=t.child(d);r(u,o,e.forChild(i,u),d),i+=u.nodeSize}return}let s=0,c=[],a=null;for(let d=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let g=o[s++];g.widget&&(u?(f||(f=[u])).push(g):u=g)}if(u)if(f){f.sort(hA);for(let g=0;g<f.length;g++)n(f[g],d,!!a)}else n(u,d,!!a);let h,p;if(a)p=-1,h=a,a=null;else if(d<t.childCount)p=d,h=t.child(d++);else break;for(let g=0;g<c.length;g++)c[g].to<=i&&c.splice(g--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)c.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(let b=0;b<c.length;b++)c[b].to<g&&(g=c[b].to);g<m&&(a=h.cut(g-i),h=h.cut(0,g-i),m=g,p=-1)}let y=h.isInline&&!h.isLeaf?c.filter(g=>!g.inline):c.slice();r(h,y,e.forChild(i,h),p),i=m}}function mA(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function gA(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=jn(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function yA(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let s=t.child(o++),c=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<t.childCount;){let d=t.child(o++);if(i+=d.nodeSize,!d.isText)break;a+=d.text}if(i>=n){if(i>=r&&a.slice(r-e.length-c,r-c)==e)return r-e.length;let d=c<r?a.lastIndexOf(e,r-c-1):-1;if(d>=0&&d+e.length+c>=n)return c+d;if(n==r&&a.length>=r+e.length-c&&a.slice(r-c,r-c+e.length)==e)return r}}return-1}function gu(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let a=t[s],d=c,u=c+=a.size;d>=n||u<=e?i.push(a):(d<e&&i.push(a.slice(0,e-d,r)),o&&(i.push(o),o=void 0),u>n&&i.push(a.slice(n-d,a.size,r)))}return i}function yu(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let c=r.resolve(s),a,d;if(Xa(n)){for(a=c;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&De.isSelectable(u)&&o.parent&&!(u.isInline&&jk(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;d=new De(s==f?c:r.resolve(f))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!d){let u=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;d=bu(t,a,c,u)}return d}function gg(t){return t.editable?t.hasFocus():_g(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function ur(t,e=!1){let n=t.state.selection;if(Cg(t,n),!!gg(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Ot){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&vo(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)bA(t);else{let{anchor:r,head:o}=n,i,s;yg&&!(n instanceof Ge)&&(n.$from.parent.inlineContent||(i=vg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=vg(t,n.to))),t.docView.setSelection(r,o,t.root,e),yg&&(i&&bg(i),s&&bg(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&vA(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const yg=Rt||Ot&&Hk<63;function vg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Rt&&o&&o.contentEditable=="false")return vu(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return vu(o);if(i)return vu(i)}}function vu(t){return t.contentEditable="true",Rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function bg(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function vA(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!gg(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function bA(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Bt(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Zt&&Pr<=11&&(r.disabled=!0,r.disabled=!1)}function Cg(t,e){if(e instanceof De){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Eg(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Eg(t)}function Eg(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function bu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Ge.between(e,n,r)}function Sg(t){return t.editable&&!t.hasFocus()?!1:_g(t)}function _g(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function CA(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return vo(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Cu(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Ye.findFrom(i,e)}function $r(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function wg(t,e,n){let r=t.state.selection;if(r instanceof Ge)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return $r(t,new Ge(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=Cu(t.state,e);return o&&o instanceof De?$r(t,o):!1}else if(!(cn&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let c=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(c))&&!s.contentDOM?De.isSelectable(i)?$r(t,new De(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):Ts?$r(t,new Ge(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof De&&r.node.isInline)return $r(t,new Ge(e>0?r.$to:r.$from));{let o=Cu(t.state,e);return o?$r(t,o):!1}}}function el(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ns(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ai(t,e){return e<0?EA(t):SA(t)}function EA(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Mn&&n.nodeType==1&&r<el(n)&&Ns(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(Ns(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(kg(n))break;{let c=n.previousSibling;for(;c&&Ns(c,-1);)o=n.parentNode,i=Bt(c),c=c.previousSibling;if(c)n=c,r=el(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Eu(t,n,r):o&&Eu(t,o,i)}function SA(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=el(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(Ns(c,1))i=n,s=++r;else break}else{if(kg(n))break;{let c=n.nextSibling;for(;c&&Ns(c,1);)i=c.parentNode,s=Bt(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=el(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Eu(t,i,s)}function kg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function _A(t,e){for(;t&&e==t.childNodes.length&&!lu(t);)e=Bt(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function wA(t,e){for(;t&&!e&&!lu(t);)e=Bt(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Eu(t,e,n){if(e.nodeType!=3){let i,s;(s=_A(e,n))?(e=s,n=0):(i=wA(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(Xa(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&ur(t)},50)}function Ag(t,e){let n=t.state.doc.resolve(e);if(!(Ot||Wk)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Tg(t,e,n){let r=t.state.selection;if(r instanceof Ge&&!r.empty||n.indexOf("s")>-1||cn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Cu(t.state,e);if(s&&s instanceof De)return $r(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof On?Ye.near(s,e):Ye.findFrom(s,e);return c?$r(t,c):!1}return!1}function Ig(t,e){if(!(t.state.selection instanceof Ge))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function xg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function kA(t){if(!Rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;xg(t,r,"true"),setTimeout(()=>xg(t,r,"false"),20)}return!1}function AA(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function TA(t,e){let n=e.keyCode,r=AA(e);if(n==8||cn&&n==72&&r=="c")return Ig(t,-1)||ai(t,-1);if(n==46&&!e.shiftKey||cn&&n==68&&r=="c")return Ig(t,1)||ai(t,1);if(n==13||n==27)return!0;if(n==37||cn&&n==66&&r=="c"){let o=n==37?Ag(t,t.state.selection.from)=="ltr"?-1:1:-1;return wg(t,o,r)||ai(t,o)}else if(n==39||cn&&n==70&&r=="c"){let o=n==39?Ag(t,t.state.selection.from)=="ltr"?1:-1:1;return wg(t,o,r)||ai(t,o)}else{if(n==38||cn&&n==80&&r=="c")return Tg(t,-1,r)||ai(t,-1);if(n==40||cn&&n==78&&r=="c")return kA(t)||Tg(t,1,r)||ai(t,1);if(r==(cn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Og(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=t.someProp("clipboardSerializer")||Vn.fromSchema(t.state.schema),c=$g(),a=c.createElement("div");a.appendChild(s.serializeFragment(r,{document:c}));let d=a.firstChild,u,f=0;for(;d&&d.nodeType==1&&(u=Bg[d.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=c.createElement(u[p]);for(;a.firstChild;)m.appendChild(a.firstChild);a.appendChild(m),f++}d=a.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
1239
+ `))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=qe.none,r=qe.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(c=>{s.clearMark(c)&&(r=c.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let c=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a));else{let a=e;typeof n.contentElement=="string"?a=e.querySelector(n.contentElement):typeof n.contentElement=="function"?a=n.contentElement(e):n.contentElement&&(a=n.contentElement),this.findAround(e,a,!0),this.addAll(a)}o&&this.sync(c)&&this.open--,s&&this.removePendingMark(s,c)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=S0(e,o,i.options);i.options&Cs&&i.content.length==0&&(s|=Cs),this.nodes.push(new Ya(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(c,a)=>{for(;c>=0;c--){let d=n[c];if(d==""){if(c==n.length-1||c==0)continue;for(;a>=i;a--)if(s(c-1,a))return!0;return!1}else{let u=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!u||u.name!=d&&u.groups.indexOf(d)==-1)return!1;a--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=fk(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function lk(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&E0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function ck(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function dk(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function w0(t){let e={};for(let n in t)e[n]=t[n];return e}function uk(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],s=c=>{i.push(c);for(let a=0;a<c.edgeCount;a++){let{type:d,next:u}=c.edge(a);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function fk(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class Vn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Qd(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let c=0,a=0;for(;c<i.length&&a<s.marks.length;){let d=s.marks[a];if(!this.marks[d.type.name]){a++;continue}if(!d.eq(i[c][0])||d.type.spec.spanning===!1)break;c++,a++}for(;c<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let d=s.marks[a++],u=this.serializeMark(d,s.isInline,n);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=Vn.renderSpec(Qd(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&Vn.renderSpec(Qd(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,c=r?e.createElementNS(r,o):e.createElement(o),a=n[1],d=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){d=2;for(let u in a)if(a[u]!=null){let f=u.indexOf(" ");f>0?c.setAttributeNS(u.slice(0,f),u.slice(f+1),a[u]):c.setAttribute(u,a[u])}}for(let u=d;u<n.length;u++){let f=n[u];if(f===0){if(u<n.length-1||u>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:p}=Vn.renderSpec(e,f,r);if(c.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:c,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Vn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=k0(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return k0(e.marks)}}function k0(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Qd(t){return t.document||window.document}const A0=65535,T0=Math.pow(2,16);function hk(t,e){return t+e*T0}function I0(t){return t&A0}function pk(t){return(t-(t&A0))/T0}const x0=1,O0=2,Ga=4,N0=8;class Zd{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&N0)>0}get deletedBefore(){return(this.delInfo&(x0|Ga))>0}get deletedAfter(){return(this.delInfo&(O0|Ga))>0}get deletedAcross(){return(this.delInfo&Ga)>0}}class en{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&en.empty)return en.empty}recover(e){let n=0,r=I0(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+pk(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?o:0);if(a>e)break;let d=this.ranges[c+i],u=this.ranges[c+s],f=a+d;if(e<=f){let h=d?e==a?-1:e==f?1:n:n,p=a+o+(h<0?0:u);if(r)return p;let m=e==(n<0?a:f)?null:hk(c/3,e-a),g=e==a?O0:e==f?x0:Ga;return(n<0?e!=a:e!=f)&&(g|=N0),new Zd(p,g,m)}o+=u-d}return r?e+o:new Zd(e+o,0,null)}touches(e,n){let r=0,o=I0(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let a=this.ranges[c]-(this.inverted?r:0);if(a>e)break;let d=this.ranges[c+i],u=a+d;if(e<=u&&c==o*3)return!0;r+=this.ranges[c+s]-d}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],c=s-(this.inverted?i:0),a=s+(this.inverted?0:i),d=this.ranges[o+n],u=this.ranges[o+r];e(c,c+d,a,a+u),i+=u-d}}invert(){return new en(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?en.empty:new en(e<0?[0,-e,0]:[0,0,e])}}en.empty=new en([]);class Es{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new Es(this.maps,this.mirror,e,n)}copy(){return new Es(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Es;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],c=s.mapResult(e,n);if(c.recover!=null){let a=this.getMirror(i);if(a!=null&&a>i&&a<this.to){i=a,e=this.maps[a].recover(c.recover);continue}}o|=c.delInfo,e=c.pos}return r?e:new Zd(e,o,null)}}const Jd=Object.create(null);class xt{getMap(){return en.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Jd[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Jd)throw new RangeError("Duplicate use of step JSON ID "+e);return Jd[e]=n,n.prototype.jsonID=e,n}}class ft{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ft(e,null)}static fail(e){return new ft(null,e)}static fromReplace(e,n,r,o){try{return ft.ok(e.replace(n,r,o))}catch(i){if(i instanceof Fa)return ft.fail(i.message);throw i}}}function Xd(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(Xd(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return he.fromArray(r)}class Nr extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new we(Xd(n.content,(s,c)=>!s.isAtom||!c.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,i)}invert(){return new Fn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Nr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Nr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Nr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Nr(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("addMark",Nr);class Fn extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new we(Xd(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,r)}invert(){return new Nr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Fn(n.pos,r.pos,this.mark)}merge(e){return e instanceof Fn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Fn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Fn(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("removeMark",Fn);class Mr extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Mr(this.pos,n.marks[o]);return new Mr(this.pos,this.mark)}}return new Xo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Mr(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Mr(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("addNodeMark",Mr);class Xo extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Mr(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Xo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Xo(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("removeNodeMark",Xo);class wt extends xt{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&qd(e,this.from,this.to)?ft.fail("Structure replace would overwrite content"):ft.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new en([this.from,this.to-this.from,this.slice.size])}invert(e){return new wt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new wt(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof wt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?we.empty:new we(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new wt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?we.empty:new we(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new wt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new wt(n.from,n.to,we.fromJSON(e,n.slice),!!n.structure)}}xt.jsonID("replace",wt);class bt extends xt{constructor(e,n,r,o,i,s,c=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=c}apply(e){if(this.structure&&(qd(e,this.from,this.gapFrom)||qd(e,this.gapTo,this.to)))return ft.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ft.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ft.fromReplace(e,this.from,this.to,r):ft.fail("Content does not fit in gap")}getMap(){return new en([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new bt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new bt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new bt(n.from,n.to,n.gapFrom,n.gapTo,we.fromJSON(e,n.slice),n.insert,!!n.structure)}}xt.jsonID("replaceAround",bt);function qd(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let s=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}}return!1}function mk(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(a,d,u)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+a.nodeSize,n),m=r.addToSet(f);for(let g=0;g<f.length;g++)f[g].isInSet(m)||(s&&s.to==h&&s.mark.eq(f[g])?s.to=p:o.push(s=new Fn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new Nr(h,p,r))}}),o.forEach(a=>t.step(a)),i.forEach(a=>t.step(a))}function gk(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,c)=>{if(!s.isInline)return;i++;let a=null;if(r instanceof Ha){let d=s.marks,u;for(;u=r.isInSet(d);)(a||(a=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let d=Math.min(c+s.nodeSize,n);for(let u=0;u<a.length;u++){let f=a[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=d,h.step=i):o.push({style:f,from:Math.max(c,e),to:d,step:i})}}}),o.forEach(s=>t.step(new Fn(s.from,s.to,s.style)))}function yk(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let c=0;c<o.childCount;c++){let a=o.child(c),d=s+a.nodeSize,u=r.matchType(a.type);if(!u)i.push(new wt(s,d,we.empty));else{r=u;for(let f=0;f<a.marks.length;f++)n.allowsMarkType(a.marks[f].type)||t.step(new Fn(s,d,a.marks[f]));if(a.isText&&!n.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(a.text);)p||(p=new we(he.from(n.schema.text(" ",n.allowedMarks(a.marks))),0,0)),i.push(new wt(s+f.index,s+f.index+f[0].length,p))}}s=d}if(!r.validEnd){let c=r.fillBefore(he.empty,!0);t.replace(s,s,new we(c,0,0))}for(let c=i.length-1;c>=0;c--)t.step(i[c])}function vk(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function qo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!vk(o,i,s))break}return null}function bk(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),a=s,d=c,u=he.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=he.from(r.node(m).copy(u)),f++):a--;let h=he.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=he.from(o.node(m).copy(h)),p++):d++;t.step(new bt(a,d,s,c,new we(u.append(h),f,p),u.size-f,!0))}function eu(t,e,n=null,r=t){let o=Ck(t,e),i=o&&Ek(r,e);return i?o.map(M0).concat({type:e,attrs:n}).concat(i.map(M0)):null}function M0(t){return{type:t,attrs:null}}function Ck(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(r,o,s)?i:null}function Ek(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;a&&d<o;d++)a=a.matchType(n.child(d).type);return!a||!a.validEnd?null:s}function Sk(t,e,n){let r=he.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let c=n[s].type.contentMatch.matchFragment(r);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=he.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new bt(o,i,o,i,new we(r,0,0),n.length,!0))}function _k(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,c)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&wk(t.doc,t.mapping.slice(i).map(c),r)){t.clearIncompatible(t.mapping.slice(i).map(c,1),r);let a=t.mapping.slice(i),d=a.map(c,1),u=a.map(c+s.nodeSize,1);return t.step(new bt(d,u,d+1,u-1,new we(he.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function wk(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function kk(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new bt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new we(he.from(s),0,0),1,!0))}function ei(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let d=o.depth-1,u=n-2;d>i;d--,u--){let f=o.node(d),h=o.index(d);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let c=o.indexAfter(i),a=r&&r[0];return o.node(i).canReplaceWith(c,c,a?a.type:o.node(i+1).type)}function Ak(t,e,n=1,r){let o=t.doc.resolve(e),i=he.empty,s=he.empty;for(let c=o.depth,a=o.depth-n,d=n-1;c>a;c--,d--){i=he.from(o.node(c).copy(i));let u=r&&r[d];s=he.from(u?u.type.create(u.attrs,s):o.node(c).copy(s))}t.step(new wt(e,e,new we(i.append(s),n,n),!0))}function Lr(t,e){let n=t.resolve(e),r=n.index();return L0(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function L0(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Qa(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,s,c=r.index(o);if(o==r.depth?(i=r.nodeBefore,s=r.nodeAfter):n>0?(i=r.node(o+1),c++,s=r.node(o).maybeChild(c)):(i=r.node(o).maybeChild(c-1),s=r.node(o+1)),i&&!i.isTextblock&&L0(i,s)&&r.node(o).canReplace(c,c+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function Tk(t,e,n){let r=new wt(e-n,e+n,we.empty,!0);t.step(r)}function Ik(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function xk(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=r.depth;s>=0;s--){let c=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,a=r.index(s)+(c>0?1:0),d=r.node(s),u=!1;if(i==1)u=d.canReplace(a,a,o);else{let f=d.contentMatchAt(a).findWrapping(o.firstChild.type);u=f&&d.canReplaceWith(a,a,f[0])}if(u)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function tu(t,e,n=e,r=we.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return D0(o,i,r)?new wt(e,n,r):new Ok(o,i,r).fit()}function D0(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Ok{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=he.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=he.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,c=o.depth;for(;s&&c&&i.childCount==1;)i=i.firstChild.content,s--,c--;let a=new we(i,s,c);return e>-1?new bt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new wt(r.pos,o.pos,a):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=nu(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let s=o.firstChild;for(let c=this.depth;c>=0;c--){let{type:a,match:d}=this.frontier[c],u,f=null;if(n==1&&(s?d.matchType(s.type)||(f=d.fillBefore(he.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(u=d.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=nu(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new we(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=nu(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new we(Ss(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new we(Ss(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,c=r?r.content:s.content,a=s.openStart-e,d=0,u=[],{match:f,type:h}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;d<c.childCount;){let g=c.child(d),y=f.matchType(g.type);if(!y)break;d++,(d>1||a==0||g.content.size)&&(f=y,u.push(P0(g.mark(h.allowedMarks(g.marks)),d==1?a:0,d==c.childCount?p:-1)))}let m=d==c.childCount;m||(p=-1),this.placed=_s(this.placed,n,he.from(u)),this.frontier[n].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,y=c;g<p;g++){let C=y.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),y=C.content}this.unplaced=m?e==0?we.empty:new we(Ss(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new we(Ss(s.content,e,d),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!ru(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=ru(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:a,type:d}=this.frontier[c],u=ru(e,c,d,a,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=_s(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=_s(this.placed,this.depth,he.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(he.empty,!0);n.childCount&&(this.placed=_s(this.placed,this.frontier.length,n))}}function Ss(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ss(t.firstChild.content,e-1,n)))}function _s(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(_s(t.lastChild.content,e-1,n)))}function nu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function P0(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,P0(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(he.empty,!0)))),t.copy(r)}function ru(t,e,n,r,o){let i=t.node(e),s=o?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let c=r.fillBefore(i.content,!0,s);return c&&!Nk(n,i.content,s)?c:null}function Nk(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function Mk(t){return t.spec.defining||t.spec.definingForContent}function Lk(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(D0(o,i,r))return t.step(new wt(e,n,r));let s=R0(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let c=-(o.depth+1);s.unshift(c);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let m=o.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?c=h:o.before(h)==p&&s.splice(1,0,-h)}let a=s.indexOf(c),d=[],u=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(d.push(m),p==r.openStart)break;h=m.content}for(let h=u-1;h>=0;h--){let p=d[h],m=Mk(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=d[p];if(m)for(let g=0;g<s.length;g++){let y=s[(g+a)%s.length],C=!0;y<0&&(C=!1,y=-y);let E=o.node(y-1),b=o.index(y-1);if(E.canReplaceWith(b,b,m.type,m.marks))return t.replace(o.before(y),C?i.after(y):n,new we(B0(r.content,0,r.openStart,p),p,r.openEnd))}}let f=t.steps.length;for(let h=s.length-1;h>=0&&(t.replace(e,n,r),!(t.steps.length>f));h--){let p=s[h];p<0||(e=o.before(p),n=i.after(p))}}function B0(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(B0(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(he.empty,!0))}return t}function Dk(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=Ik(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new we(he.from(r),0,0))}function Pk(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=R0(r,o);for(let s=0;s<i.length;s++){let c=i[s],a=s==i.length-1;if(a&&c==0||r.node(c).type.contentMatch.validEnd)return t.delete(r.start(c),o.end(c));if(c>0&&(a||r.node(c-1).canReplace(r.index(c-1),o.indexAfter(c-1))))return t.delete(r.before(c),o.after(c))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function R0(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class ti extends xt{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(o),0,n.isLeaf?0:1))}getMap(){return en.empty}invert(e){return new ti(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ti(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ti(n.pos,n.attr,n.value)}}xt.jsonID("attr",ti);class ws extends xt{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return ft.ok(r)}getMap(){return en.empty}invert(e){return new ws(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ws(n.attr,n.value)}}xt.jsonID("docAttr",ws);let ni=class extends Error{};ni=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ni.prototype=Object.create(Error.prototype),ni.prototype.constructor=ni,ni.prototype.name="TransformError";class $0{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Es}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ni(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=we.empty){let o=tu(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new we(he.from(r),0,0))}delete(e,n){return this.replace(e,n,we.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return Lk(this,e,n,r),this}replaceRangeWith(e,n,r){return Dk(this,e,n,r),this}deleteRange(e,n){return Pk(this,e,n),this}lift(e,n){return bk(this,e,n),this}join(e,n=1){return Tk(this,e,n),this}wrap(e,n){return Sk(this,e,n),this}setBlockType(e,n=e,r,o=null){return _k(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return kk(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new ti(e,n,r)),this}setDocAttribute(e,n){return this.step(new ws(e,n)),this}addNodeMark(e,n){return this.step(new Mr(e,n)),this}removeNodeMark(e,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Xo(e,n)),this}split(e,n=1,r){return Ak(this,e,n,r),this}addMark(e,n,r){return mk(this,e,n,r),this}removeMark(e,n,r){return gk(this,e,n,r),this}clearIncompatible(e,n,r){return yk(this,e,n,r),this}}const ou=Object.create(null);class Ye{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new Bk(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=we.empty){let r=n.content.lastChild,o=null;for(let c=0;c<n.openEnd;c++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let c=0;c<s.length;c++){let{$from:a,$to:d}=s[c],u=e.mapping.slice(i);e.replaceRange(u.map(a.pos),u.map(d.pos),c?we.empty:n),c==0&&j0(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:s,$to:c}=o[i],a=e.mapping.slice(r),d=a.map(s.pos),u=a.map(c.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,n),j0(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Ge(e):ri(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let s=n<0?ri(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):ri(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new On(e.node(0))}static atStart(e){return ri(e,e,0,0,1)||new On(e)}static atEnd(e){return ri(e,e,e.content.size,e.childCount,-1)||new On(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=ou[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in ou)throw new RangeError("Duplicate use of selection JSON ID "+e);return ou[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Ge.between(this.$anchor,this.$head).getBookmark()}}Ye.prototype.visible=!0;class Bk{constructor(e,n){this.$from=e,this.$to=n}}let V0=!1;function F0(t){!V0&&!t.parent.inlineContent&&(V0=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Ge extends Ye{constructor(e,n=e){F0(e),F0(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return Ye.near(r);let o=e.resolve(n.map(this.anchor));return new Ge(o.parent.inlineContent?o:r,r)}replace(e,n=we.empty){if(super.replace(e,n),n==we.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ge&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Za(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ge(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=Ye.findFrom(n,r,!0)||Ye.findFrom(n,-r,!0);if(i)n=i.$head;else return Ye.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Ye.findFrom(e,-r,!0)||Ye.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Ge(e,n)}}Ye.jsonID("text",Ge);class Za{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Za(e.map(this.anchor),e.map(this.head))}resolve(e){return Ge.between(e.resolve(this.anchor),e.resolve(this.head))}}class De extends Ye{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),i=e.resolve(o);return r?Ye.near(i):new De(i)}content(){return new we(he.from(this.node),0,0)}eq(e){return e instanceof De&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new iu(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new De(e.resolve(n.anchor))}static create(e,n){return new De(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}De.prototype.visible=!1,Ye.jsonID("node",De);class iu{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Za(r,r):new iu(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&De.isSelectable(r)?new De(n):Ye.near(n)}}class On extends Ye{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=we.empty){if(n==we.empty){e.delete(0,e.doc.content.size);let r=Ye.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new On(e)}map(e){return new On(e)}eq(e){return e instanceof On}getBookmark(){return Rk}}Ye.jsonID("all",On);const Rk={map(){return this},resolve(t){return new On(t)}};function ri(t,e,n,r,o,i=!1){if(e.inlineContent)return Ge.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let c=e.child(s);if(c.isAtom){if(!i&&De.isSelectable(c))return De.create(t,n-(o<0?c.nodeSize:0))}else{let a=ri(t,c,n+o,o<0?c.childCount:0,o,i);if(a)return a}n+=c.nodeSize*o}return null}function j0(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;let i=t.mapping.maps[r],s;i.forEach((c,a,d,u)=>{s==null&&(s=u)}),t.setSelection(Ye.near(t.doc.resolve(s),n))}const z0=1,Ja=2,U0=4;class $k extends $0{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|z0)&~Ja,this.storedMarks=null,this}get selectionSet(){return(this.updated&z0)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ja,this}ensureMarks(e){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ja)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ja,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(Ye.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=U0,this}get scrolledIntoView(){return(this.updated&U0)>0}}function H0(t,e){return!e||!t?t:t.bind(e)}class ks{constructor(e,n,r){this.name=e,this.init=H0(n.init,r),this.apply=H0(n.apply,r)}}const Vk=[new ks("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new ks("selection",{init(t,e){return t.selection||Ye.atStart(e.doc)},apply(t){return t.selection}}),new ks("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new ks("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class su{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Vk.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new ks(r.key,r.spec.state,r))})}}class oi{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let c=this.config.plugins[s];if(c.spec.appendTransaction){let a=o?o[s].n:0,d=o?o[s].state:this,u=a<n.length&&c.spec.appendTransaction.call(c,a?n.slice(a):n,d,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new oi(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new $k(this)}static create(e){let n=new su(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new oi(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new su(this.schema,e.plugins),r=n.fields,o=new oi(n);for(let i=0;i<r.length;i++){let s=r[i].name;o[s]=this.hasOwnProperty(s)?this[s]:r[i].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new su(e.schema,e.plugins),i=new oi(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=go.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Ye.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let c in r){let a=r[c],d=a.spec.state;if(a.key==s.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=d.fromJSON.call(a,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function W0(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=W0(o,e,{})),n[r]=o}return n}class Qt{constructor(e){this.spec=e,this.props={},e.props&&W0(e.props,this,this.props),this.key=e.key?e.key.key:K0("plugin")}getState(e){return e[this.key]}}const au=Object.create(null);function K0(t){return t in au?t+"$"+ ++au[t]:(au[t]=0,t+"$")}class Nn{constructor(e="key"){this.key=K0(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Bt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},As=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Y0=null;const cr=function(t,e,n){let r=Y0||(Y0=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},vo=function(t,e,n,r){return n&&(G0(t,e,n,r,-1)||G0(t,e,n,r,1))},Fk=/^(img|br|input|textarea|hr)$/i;function G0(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:jn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||lu(t)||Fk.test(t.nodeName)||t.contentEditable=="false")return!1;e=Bt(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?jn(t):0}else return!1}}function jn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function jk(t,e,n){for(let r=e==0,o=e==jn(t);r||o;){if(t==n)return!0;let i=Bt(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==jn(t)}}function lu(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Xa=function(t){return t.focusNode&&vo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function bo(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function zk(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Uk(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const zn=typeof navigator<"u"?navigator:null,Q0=typeof document<"u"?document:null,Dr=zn&&zn.userAgent||"",cu=/Edge\/(\d+)/.exec(Dr),Z0=/MSIE \d/.exec(Dr),du=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dr),Zt=!!(Z0||du||cu),Pr=Z0?document.documentMode:du?+du[1]:cu?+cu[1]:0,Mn=!Zt&&/gecko\/(\d+)/i.test(Dr);Mn&&+(/Firefox\/(\d+)/.exec(Dr)||[0,0])[1];const uu=!Zt&&/Chrome\/(\d+)/.exec(Dr),Ot=!!uu,Hk=uu?+uu[1]:0,Rt=!Zt&&!!zn&&/Apple Computer/.test(zn.vendor),ii=Rt&&(/Mobile\/\w+/.test(Dr)||!!zn&&zn.maxTouchPoints>2),dn=ii||(zn?/Mac/.test(zn.platform):!1),Wk=zn?/Win/.test(zn.platform):!1,Ln=/Android \d/.test(Dr),Ts=!!Q0&&"webkitFontSmoothing"in Q0.documentElement.style,Kk=Ts?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Yk(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function dr(t,e){return typeof t=="number"?t:t[e]}function Gk(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function J0(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=As(s)){if(s.nodeType!=1)continue;let c=s,a=c==i.body,d=a?Yk(i):Gk(c),u=0,f=0;if(e.top<d.top+dr(r,"top")?f=-(d.top-e.top+dr(o,"top")):e.bottom>d.bottom-dr(r,"bottom")&&(f=e.bottom-e.top>d.bottom-d.top?e.top+dr(o,"top")-d.top:e.bottom-d.bottom+dr(o,"bottom")),e.left<d.left+dr(r,"left")?u=-(d.left-e.left+dr(o,"left")):e.right>d.right-dr(r,"right")&&(u=e.right-d.right+dr(o,"right")),u||f)if(a)i.defaultView.scrollBy(u,f);else{let h=c.scrollLeft,p=c.scrollTop;f&&(c.scrollTop+=f),u&&(c.scrollLeft+=u);let m=c.scrollLeft-h,g=c.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(a||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function Qk(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let c=t.root.elementFromPoint(i,s);if(!c||c==t.dom||!t.dom.contains(c))continue;let a=c.getBoundingClientRect();if(a.top>=n-20){r=c,o=a.top;break}}return{refDOM:r,refTop:o,stack:X0(t.dom)}}function X0(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=As(r));return e}function Zk({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;q0(n,r==0?0:r-e)}function q0(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let si=null;function Jk(t){if(t.setActive)return t.setActive();if(si)return t.focus(si);let e=X0(t);t.focus(si==null?{get preventScroll(){return si={preventScroll:!0},!0}}:void 0),si||(si=!1,q0(e,0))}function eg(t,e){let n,r=2e8,o,i=0,s=e.top,c=e.top,a,d;for(let u=t.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=cr(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=c){s=Math.max(m.bottom,s),c=Math.min(m.top,c);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){n=u,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&g&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!a&&m.left<=e.left&&m.right>=e.left&&(a=u,d={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&a&&(n=a,o=d,r=0),n&&n.nodeType==3?Xk(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:eg(n,o)}function Xk(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=Br(r,1);if(i.top!=i.bottom&&fu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function fu(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function qk(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function eA(t,e,n){let{node:r,offset:o}=eg(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function tA(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let c=t.docView.nearestDesc(i,!0);if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent&&!s||!c.contentDOM)){let a=c.dom.getBoundingClientRect();if(c.node.isBlock&&c.parent&&!s&&(s=!0,a.left>r.left||a.top>r.top?o=c.posBefore:(a.right<r.left||a.bottom<r.top)&&(o=c.posAfter)),!c.contentDOM&&o<0&&!c.node.isText)return(c.node.isBlock?r.top<(a.top+a.bottom)/2:r.left<(a.left+a.right)/2)?c.posBefore:c.posAfter}i=c.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function tg(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let s=t.childNodes[i];if(s.nodeType==1){let c=s.getClientRects();for(let a=0;a<c.length;a++){let d=c[a];if(fu(e,d))return tg(s,e,d)}}if((i=(i+1)%r)==o)break}return t}function nA(t,e){let n=t.dom.ownerDocument,r,o=0,i=Uk(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),c;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let d=t.dom.getBoundingClientRect();if(!fu(e,d)||(s=tg(t.dom,e,d),!s))return null}if(Rt)for(let d=s;r&&d;d=As(d))d.draggable&&(r=void 0);if(s=qk(s,e),r){if(Mn&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let d;Ts&&o&&r.nodeType==1&&(d=r.childNodes[o-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?c=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(c=tA(t,r,o,e))}c==null&&(c=eA(t,s,e));let a=t.docView.nearestDesc(s,!0);return{pos:c,inside:a?a.posAtStart-a.border:-1}}function ng(t){return t.top<t.bottom||t.left<t.right}function Br(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(ng(r))return r}return Array.prototype.find.call(n,ng)||t.getBoundingClientRect()}const rA=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function rg(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Ts||Mn;if(r.nodeType==3)if(s&&(rA.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let a=Br(cr(r,o,o),n);if(Mn&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let d=Br(cr(r,o-1,o-1),-1);if(d.top==a.top){let u=Br(cr(r,o,o+1),-1);if(u.top!=a.top)return Is(u,u.left<d.left)}}return a}else{let a=o,d=o,u=n<0?1:-1;return n<0&&!o?(d++,u=-1):n>=0&&o==r.nodeValue.length?(a--,u=1):n<0?a--:d++,Is(Br(cr(r,a,d),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==jn(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return hu(a.getBoundingClientRect(),!1)}if(i==null&&o<jn(r)){let a=r.childNodes[o];if(a.nodeType==1)return hu(a.getBoundingClientRect(),!0)}return hu(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==jn(r))){let a=r.childNodes[o-1],d=a.nodeType==3?cr(a,jn(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(d)return Is(Br(d,1),!1)}if(i==null&&o<jn(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let d=a?a.nodeType==3?cr(a,0,s?0:1):a.nodeType==1?a:null:null;if(d)return Is(Br(d,-1),!0)}return Is(Br(r.nodeType==3?cr(r):r,-n),n>=0)}function Is(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function hu(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function og(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function oA(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return og(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let c=t.docView.nearestDesc(i,!0);if(!c)break;if(c.node.isBlock){i=c.contentDOM||c.dom;break}i=c.dom.parentNode}let s=rg(t,o.pos,1);for(let c=i.firstChild;c;c=c.nextSibling){let a;if(c.nodeType==1)a=c.getClientRects();else if(c.nodeType==3)a=cr(c,0,c.nodeValue.length).getClientRects();else continue;for(let d=0;d<a.length;d++){let u=a[d];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const iA=/[\u0590-\u08ac]/;function sA(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,s=o==r.parent.content.size,c=t.domSelection();return!iA.test(r.parent.textContent)||!c.modify?n=="left"||n=="backward"?i:s:og(t,e,()=>{let{focusNode:a,focusOffset:d,anchorNode:u,anchorOffset:f}=t.domSelectionRange(),h=c.caretBidiLevel;c.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:g}=t.domSelectionRange(),y=m&&!p.contains(m.nodeType==1?m:m.parentNode)||a==m&&d==g;try{c.collapse(u,f),a&&(a!=u||d!=f)&&c.extend&&c.extend(a,d)}catch{}return h!=null&&(c.caretBidiLevel=h),y})}let ig=null,sg=null,ag=!1;function aA(t,e,n){return ig==e&&sg==n?ag:(ig=e,sg=n,ag=n=="up"||n=="down"?oA(t,e,n):sA(t,e,n))}const un=0,lg=1,Co=2,Un=3;class xs{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=un,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>Bt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],c=i+s.size;if(c>e||s instanceof ug){o=e-i;break}i=c}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof cg&&i.side>=0;r--);if(n<=0){let i,s=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Bt(i.dom)+1:0}}else{let i,s=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?Bt(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let s=r,c=0;;c++){let a=this.children[c],d=s+a.size;if(o==-1&&e<=d){let u=s+a.border;if(e>=u&&n<=d-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,u);e=s;for(let f=c;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=Bt(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(d>n||c==this.children.length-1)){n=d;for(let u=c+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=Bt(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=d}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(i>p&&s<g)return m.setSelection(e-p-m.border,n-p-m.border,r,o);p=g}let c=this.domFromPos(e,e?-1:1),a=n==e?c:this.domFromPos(n,n?-1:1),d=r.getSelection(),u=!1;if((Mn||Rt)&&e==n){let{node:h,offset:p}=c;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
1240
+ `),u&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(c=a={node:g.parentNode,offset:Bt(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Mn&&d.focusNode&&d.focusNode!=a.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&Rt)&&vo(c.node,c.offset,d.anchorNode,d.anchorOffset)&&vo(a.node,a.offset,d.focusNode,d.focusOffset))return;let f=!1;if((d.extend||e==n)&&!u){d.collapse(c.node,c.offset);try{e!=n&&d.extend(a.node,a.offset),f=!0}catch{}}if(!f){if(e>n){let p=c;c=a,a=p}let h=document.createRange();h.setEnd(a.node,a.offset),h.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let c=r+i.border,a=s-i.border;if(e>=c&&n<=a){this.dirty=e==r||n==s?Co:lg,e==c&&n==a&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Un:i.markDirty(e-c,n-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Co:Un}r=s}this.dirty=Co}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?Co:lg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class cg extends xs{constructor(e,n,r,o){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!i)return o;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let c=document.createElement("span");c.appendChild(s),s=c}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==un&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class lA extends xs{constructor(e,n,r,o){super(e,[],n,null),this.textDOM=r,this.text=o}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Eo extends xs{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=Vn.renderSpec(document,n.type.spec.toDOM(n,r))),new Eo(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Un||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Un&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=un){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=un}}slice(e,n,r){let o=Eo.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=gu(i,n,s,r)),e>0&&(i=gu(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}}class Rr extends xs{constructor(e,n,r,o,i,s,c,a,d){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=c}static create(e,n,r,o,i,s){let c=i.nodeViews[n.type.name],a,d=c&&c(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),u=d&&d.dom,f=d&&d.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=Vn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=pg(u,r,n),d?a=new cA(e,n,r,o,u,f||null,h,d,i,s+1):n.isText?new qa(e,n,r,o,u,h,i):new Rr(e,n,r,o,u,f||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>he.empty)}return e}matchesNode(e,n,r){return this.dirty==un&&e.eq(this.node)&&mu(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let r=this.node.inlineContent,o=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,c=i&&i.pos<0,a=new uA(this,s&&s.node,e);pA(this.node,this.innerDeco,(d,u,f)=>{d.spec.marks?a.syncToMarks(d.spec.marks,r,e):d.type.side>=0&&!f&&a.syncToMarks(u==this.node.childCount?qe.none:this.node.child(u).marks,r,e),a.placeWidget(d,e,o)},(d,u,f,h)=>{a.syncToMarks(d.marks,r,e);let p;a.findNodeMatch(d,u,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+d.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(d,u,f,p,e)||a.updateNextNode(d,u,f,e,h,o)||a.addNode(d,u,f,e,o),o+=d.nodeSize}),a.syncToMarks([],r,e),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==Co)&&(s&&this.protectLocalComposition(e,s),fg(this.contentDOM,this.children,e),ii&&mA(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Ge)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=gA(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let c=s.nodeValue,a=yA(this.node.content,c,r-n,o-n);return a<0?null:{node:s,pos:a,text:c}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new lA(this,i,n,o);e.input.compositionNodes.push(s),this.children=gu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Un||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,o),!0)}updateInner(e,n,r,o){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=un}updateOuterDeco(e){if(mu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=hg(this.dom,this.nodeDOM,pu(this.outerDeco,this.node,n),pu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function dg(t,e,n,r,o){pg(r,e,t);let i=new Rr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class qa extends Rr{constructor(e,n,r,o,i,s,c){super(e,n,r,o,i,null,s,c,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,o){return this.dirty==Un||this.dirty!=un&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=un||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=e,this.dirty=un,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let o=this.node.cut(e,n),i=document.createTextNode(o.text);return new qa(this.parent,o,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Un)}get domAtom(){return!1}}class ug extends xs{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==un&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class cA extends Rr{constructor(e,n,r,o,i,s,c,a,d,u){super(e,n,r,o,i,s,c,d,u),this.spec=a}update(e,n,r,o){if(this.dirty==Un)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function fg(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],c=s.dom;if(c.parentNode==t){for(;c!=r;)r=mg(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof Eo){let a=r?r.previousSibling:t.lastChild;fg(s.contentDOM,s.children,n),r=a?a.nextSibling:t.firstChild}}for(;r;)r=mg(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Os=function(t){t&&(this.nodeName=t)};Os.prototype=Object.create(null);const So=[new Os];function pu(t,e,n){if(t.length==0)return So;let r=n?So[0]:new Os,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Os(s.nodeName));for(let c in s){let a=s[c];a!=null&&(n&&o.length==1&&o.push(r=new Os(e.isInline?"span":"div")),c=="class"?r.class=(r.class?r.class+" ":"")+a:c=="style"?r.style=(r.style?r.style+";":"")+a:c!="nodeName"&&(r[c]=a))}}}return o}function hg(t,e,n,r){if(n==So&&r==So)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],c=n[i];if(i){let a;c&&c.nodeName==s.nodeName&&o!=t&&(a=o.parentNode)&&a.nodeName.toLowerCase()==s.nodeName||(a=document.createElement(s.nodeName),a.pmIsDeco=!0,a.appendChild(o),c=So[0]),o=a}dA(o,c||So[0],s)}return o}function dA(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.remove(r[i]);for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.add(o[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,o;for(;o=r.exec(e.style);)t.style.removeProperty(o[1])}n.style&&(t.style.cssText+=n.style)}}function pg(t,e,n){return hg(t,t,So,pu(e,n,t.nodeType!=1))}function mu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function mg(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class uA{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=fA(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=un,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let c=-1;for(let a=this.index;a<Math.min(this.index+3,this.top.children.length);a++){let d=this.top.children[a];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){c=a;break}}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let a=Eo.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,a),this.top=a,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let c=this.index,a=Math.min(this.top.children.length,c+5);c<a;c++){let d=this.top.children[c];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==Un&&s.dom==s.contentDOM&&(s.dirty=Co),s.update(e,n,r,i)?(this.destroyBetween(this.index,o),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let o=this.index;o<this.top.children.length;o++)if(this.top.children[o]==r)return o}return-1}e=n}}updateNextNode(e,n,r,o,i,s){for(let c=this.index;c<this.top.children.length;c++){let a=this.top.children[c];if(a instanceof Rr){let d=this.preMatch.matched.get(a);if(d!=null&&d!=i)return!1;let u=a.dom,f,h=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=Un&&mu(n,a.outerDeco));if(!h&&a.update(e,n,r,o))return this.destroyBetween(this.index,c),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=Co,f.updateChildren(o,s+1),f.dirty=un),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let c=Rr.create(this.top,n,r,o,i,s);if(c.contentDOM){c.children=e.children,e.children=[];for(let a of c.children)a.parent=c}return e.destroy(),c}addNode(e,n,r,o,i){let s=Rr.create(this.top,e,n,r,o,i);s.contentDOM&&s.updateChildren(o,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let o=this.index<this.top.children.length?this.top.children[this.index]:null;if(o&&o.matchesWidget(e)&&(e==o.widget||!o.widget.type.toDOM.parentNode))this.index++;else{let i=new cg(this.top,e,n,r);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Eo;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof qa)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Rt||Ot)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new ug(this.top,[],r,null);n!=this.top?n.children.push(o):n.children.splice(this.index++,0,o),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function fA(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let c;for(;;)if(r){let d=n.children[r-1];if(d instanceof Eo)n=d,r=d.children.length;else{c=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let a=c.node;if(a){if(a!=t.child(o-1))break;--o,i.set(c,o),s.push(c)}}return{index:o,matched:i,matches:s.reverse()}}function hA(t,e){return t.type.side-e.type.side}function pA(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let d=0;d<t.childCount;d++){let u=t.child(d);r(u,o,e.forChild(i,u),d),i+=u.nodeSize}return}let s=0,c=[],a=null;for(let d=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let y=o[s++];y.widget&&(u?(f||(f=[u])).push(y):u=y)}if(u)if(f){f.sort(hA);for(let y=0;y<f.length;y++)n(f[y],d,!!a)}else n(u,d,!!a);let h,p;if(a)p=-1,h=a,a=null;else if(d<t.childCount)p=d,h=t.child(d++);else break;for(let y=0;y<c.length;y++)c[y].to<=i&&c.splice(y--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)c.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let y=m;s<o.length&&o[s].from<y&&(y=o[s].from);for(let C=0;C<c.length;C++)c[C].to<y&&(y=c[C].to);y<m&&(a=h.cut(y-i),h=h.cut(0,y-i),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?c.filter(y=>!y.inline):c.slice();r(h,g,e.forChild(i,h),p),i=m}}function mA(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function gA(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=jn(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function yA(t,e,n,r){for(let o=0,i=0;o<t.childCount&&i<=r;){let s=t.child(o++),c=i;if(i+=s.nodeSize,!s.isText)continue;let a=s.text;for(;o<t.childCount;){let d=t.child(o++);if(i+=d.nodeSize,!d.isText)break;a+=d.text}if(i>=n){if(i>=r&&a.slice(r-e.length-c,r-c)==e)return r-e.length;let d=c<r?a.lastIndexOf(e,r-c-1):-1;if(d>=0&&d+e.length+c>=n)return c+d;if(n==r&&a.length>=r+e.length-c&&a.slice(r-c,r-c+e.length)==e)return r}}return-1}function gu(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let a=t[s],d=c,u=c+=a.size;d>=n||u<=e?i.push(a):(d<e&&i.push(a.slice(0,e-d,r)),o&&(i.push(o),o=void 0),u>n&&i.push(a.slice(n-d,a.size,r)))}return i}function yu(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let o=t.docView.nearestDesc(n.focusNode),i=o&&o.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let c=r.resolve(s),a,d;if(Xa(n)){for(a=c;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&De.isSelectable(u)&&o.parent&&!(u.isInline&&jk(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;d=new De(s==f?c:r.resolve(f))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;a=r.resolve(u)}if(!d){let u=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;d=bu(t,a,c,u)}return d}function gg(t){return t.editable?t.hasFocus():_g(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function ur(t,e=!1){let n=t.state.selection;if(Cg(t,n),!!gg(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Ot){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&vo(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)bA(t);else{let{anchor:r,head:o}=n,i,s;yg&&!(n instanceof Ge)&&(n.$from.parent.inlineContent||(i=vg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=vg(t,n.to))),t.docView.setSelection(r,o,t.root,e),yg&&(i&&bg(i),s&&bg(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&vA(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const yg=Rt||Ot&&Hk<63;function vg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Rt&&o&&o.contentEditable=="false")return vu(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return vu(o);if(i)return vu(i)}}function vu(t){return t.contentEditable="true",Rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function bg(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function vA(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=o)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!gg(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function bA(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,Bt(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Zt&&Pr<=11&&(r.disabled=!0,r.disabled=!1)}function Cg(t,e){if(e instanceof De){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Eg(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Eg(t)}function Eg(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function bu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Ge.between(e,n,r)}function Sg(t){return t.editable&&!t.hasFocus()?!1:_g(t)}function _g(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function CA(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return vo(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Cu(t,e){let{$anchor:n,$head:r}=t.selection,o=e>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?t.doc.resolve(e>0?o.after():o.before()):null:o;return i&&Ye.findFrom(i,e)}function $r(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function wg(t,e,n){let r=t.state.selection;if(r instanceof Ge)if(n.indexOf("s")>-1){let{$head:o}=r,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(o.pos+i.nodeSize*(e<0?-1:1));return $r(t,new Ge(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=Cu(t.state,e);return o&&o instanceof De?$r(t,o):!1}else if(!(dn&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let c=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(c))&&!s.contentDOM?De.isSelectable(i)?$r(t,new De(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):Ts?$r(t,new Ge(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof De&&r.node.isInline)return $r(t,new Ge(e>0?r.$to:r.$from));{let o=Cu(t.state,e);return o?$r(t,o):!1}}}function el(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ns(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function ai(t,e){return e<0?EA(t):SA(t)}function EA(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Mn&&n.nodeType==1&&r<el(n)&&Ns(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(Ns(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(kg(n))break;{let c=n.previousSibling;for(;c&&Ns(c,-1);)o=n.parentNode,i=Bt(c),c=c.previousSibling;if(c)n=c,r=el(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Eu(t,n,r):o&&Eu(t,o,i)}function SA(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=el(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(Ns(c,1))i=n,s=++r;else break}else{if(kg(n))break;{let c=n.nextSibling;for(;c&&Ns(c,1);)i=c.parentNode,s=Bt(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=el(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Eu(t,i,s)}function kg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function _A(t,e){for(;t&&e==t.childNodes.length&&!lu(t);)e=Bt(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function wA(t,e){for(;t&&!e&&!lu(t);)e=Bt(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Eu(t,e,n){if(e.nodeType!=3){let i,s;(s=_A(e,n))?(e=s,n=0):(i=wA(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(Xa(r)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),r.removeAllRanges(),r.addRange(i)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:o}=t;setTimeout(()=>{t.state==o&&ur(t)},50)}function Ag(t,e){let n=t.state.doc.resolve(e);if(!(Ot||Wk)&&n.parent.inlineContent){let o=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left<o.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>o.top&&s<o.bottom&&Math.abs(i.left-o.left)>1)return i.left>o.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Tg(t,e,n){let r=t.state.selection;if(r instanceof Ge&&!r.empty||n.indexOf("s")>-1||dn&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Cu(t.state,e);if(s&&s instanceof De)return $r(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof On?Ye.near(s,e):Ye.findFrom(s,e);return c?$r(t,c):!1}return!1}function Ig(t,e){if(!(t.state.selection instanceof Ge))return!0;let{$head:n,$anchor:r,empty:o}=t.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function xg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function kA(t){if(!Rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;xg(t,r,"true"),setTimeout(()=>xg(t,r,"false"),20)}return!1}function AA(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function TA(t,e){let n=e.keyCode,r=AA(e);if(n==8||dn&&n==72&&r=="c")return Ig(t,-1)||ai(t,-1);if(n==46&&!e.shiftKey||dn&&n==68&&r=="c")return Ig(t,1)||ai(t,1);if(n==13||n==27)return!0;if(n==37||dn&&n==66&&r=="c"){let o=n==37?Ag(t,t.state.selection.from)=="ltr"?-1:1:-1;return wg(t,o,r)||ai(t,o)}else if(n==39||dn&&n==70&&r=="c"){let o=n==39?Ag(t,t.state.selection.from)=="ltr"?1:-1:1;return wg(t,o,r)||ai(t,o)}else{if(n==38||dn&&n==80&&r=="c")return Tg(t,-1,r)||ai(t,-1);if(n==40||dn&&n==78&&r=="c")return kA(t)||Tg(t,1,r)||ai(t,1);if(r==(dn?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Og(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:r,openStart:o,openEnd:i}=e;for(;o>1&&i>1&&r.childCount==1&&r.firstChild.childCount==1;){o--,i--;let p=r.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),r=p.content}let s=t.someProp("clipboardSerializer")||Vn.fromSchema(t.state.schema),c=$g(),a=c.createElement("div");a.appendChild(s.serializeFragment(r,{document:c}));let d=a.firstChild,u,f=0;for(;d&&d.nodeType==1&&(u=Bg[d.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=c.createElement(u[p]);for(;a.firstChild;)m.appendChild(a.firstChild);a.appendChild(m),f++}d=a.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
1241
1241
 
1242
1242
  `);return{dom:a,text:h}}function Ng(t,e,n,r,o){let i=o.parent.type.spec.code,s,c;if(!n&&!e)return null;let a=e&&(r||i||!n);if(a){if(t.someProp("transformPastedText",h=>{e=h(e,i||r,t)}),i)return e?new we(he.from(t.state.schema.text(e.replace(/\r\n?/g,`
1243
- `))),0,0):we.empty;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=Vn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let g=s.appendChild(document.createElement("p"));y&&g.appendChild(m.serializeNode(p.text(y,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=OA(n),Ts&&NA(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||Jo.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!IA.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=MA(Pg(c,+u[1],+u[2]),u[4]);else if(c=we.maxOpen(xA(c.content,o),!0),c.openStart||c.openEnd){let f=0,h=0;for(let p=c.content.firstChild;f<c.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=c.content.lastChild;h<c.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);c=Pg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t)}),c}const IA=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function xA(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(c=>{if(!s)return;let a=o.findWrapping(c.type),d;if(!a)return s=null;if(d=s.length&&i.length&&Lg(a,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Dg(s[s.length-1],i.length));let u=Mg(c,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return he.from(s)}return t}function Mg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,he.from(t));return t}function Lg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Lg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(he.from(Mg(n,t,o+1))))}}function Dg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Dg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(he.empty,!0);return t.copy(n.append(r))}function Su(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,c=s.content;return t.childCount>1&&(i=0),o<r-1&&(c=Su(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(he.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Pg(t,e,n){return e<t.openStart&&(t=new we(Su(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new we(Su(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Bg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Rg=null;function $g(){return Rg||(Rg=document.implementation.createHTMLDocument("title"))}function OA(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=$g().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Bg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function NA(t){let e=t.querySelectorAll(Ot?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function MA(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let c=r.length-2;c>=0;c-=2){let a=n.nodes[r[c]];if(!a||a.hasRequiredAttrs())break;o=he.from(a.create(r[c+1],o)),i++,s++}return new we(o,i,s)}const $t={},Vt={},LA={touchstart:!0,touchmove:!0};class DA{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function PA(t){for(let e in $t){let n=$t[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{RA(t,r)&&!wu(t,r)&&(t.editable||!(r.type in Vt))&&n(t,r)},LA[e]?{passive:!0}:void 0)}Rt&&t.dom.addEventListener("input",()=>null),_u(t)}function Vr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function BA(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function _u(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>wu(t,r))})}function wu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function RA(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function $A(t,e){!wu(t,e)&&$t[e.type]&&(t.editable||!(e.type in Vt))&&$t[e.type](t,e)}Vt.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Fg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Ln&&Ot&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ii&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,bo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||TA(t,n)?n.preventDefault():Vr(t,"key")},Vt.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Vt.keypress=(t,e)=>{let n=e;if(Fg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||cn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Ge)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function tl(t){return{left:t.clientX,top:t.clientY}}function VA(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function ku(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,c=>s>i.depth?c(t,n,i.nodeAfter,i.before(s),o,!0):c(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function li(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function FA(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&De.isSelectable(r)?(li(t,new De(n),"pointer"),!0):!1}function jA(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof De&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(De.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(li(t,De.create(t.state.doc,o),"pointer"),!0):!1}function zA(t,e,n,r,o){return ku(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?jA(t,n):FA(t,n))}function UA(t,e,n,r){return ku(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function HA(t,e,n,r){return ku(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||WA(t,n,r)}function WA(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(li(t,Ge.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)li(t,Ge.create(r,c+1,c+1+s.content.size),"pointer");else if(De.isSelectable(s))li(t,De.create(r,c),"pointer");else continue;return!0}}function Au(t){return nl(t)}const Vg=cn?"metaKey":"ctrlKey";$t.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Au(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&VA(n,t.input.lastClick)&&!n[Vg]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(tl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new KA(t,s,n,!!r)):(i=="doubleClick"?UA:HA)(t,s.pos,s.inside,n)?n.preventDefault():Vr(t,"pointer"))};class KA{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Vg],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a?a.dom:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof De&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Mn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Vr(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ur(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(tl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Vr(this.view,"pointer"):zA(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Rt&&this.mightDrag&&!this.mightDrag.node.isAtom||Ot&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(li(this.view,Ye.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Vr(this.view,"pointer")}move(e){this.updateAllowDefault(e),Vr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}$t.touchstart=t=>{t.input.lastTouch=Date.now(),Au(t),Vr(t,"pointer")},$t.touchmove=t=>{t.input.lastTouch=Date.now(),Vr(t,"pointer")},$t.contextmenu=t=>Au(t);function Fg(t,e){return t.composing?!0:Rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const YA=Ln?5e3:-1;Vt.compositionstart=Vt.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),nl(t,!0),t.markCursor=null;else if(nl(t),Mn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}jg(t,YA)},Vt.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,jg(t,20))};function jg(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>nl(t),e))}function zg(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=GA());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function GA(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function nl(t,e=!1){if(!(Ln&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),zg(t),e||t.docView&&t.docView.dirty){let n=yu(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function QA(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Ms=Zt&&Pr<15||ii&&Kk<604;$t.copy=Vt.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=Ms?null:n.clipboardData,s=r.content(),{dom:c,text:a}=Og(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):QA(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ZA(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function JA(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ls(t,r.value,null,o,e):Ls(t,r.textContent,r.innerHTML,o,e)},50)}function Ls(t,e,n,r,o){let i=Ng(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||we.empty)))return!0;if(!i)return!1;let s=ZA(i),c=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ug(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Vt.paste=(t,e)=>{let n=e;if(t.composing&&!Ln)return;let r=Ms?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Ls(t,Ug(r),r.getData("text/html"),o,n)?n.preventDefault():JA(t,n)};class Hg{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Wg=cn?"altKey":"ctrlKey";$t.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(tl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof De?o.to-1:o.to))){if(r&&r.mightDrag)s=De.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&(s=De.create(t.state.doc,u.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:d}=Og(t,c);n.dataTransfer.clearData(),n.dataTransfer.setData(Ms?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ms||n.dataTransfer.setData("text/plain",d),t.dragging=new Hg(c,!n[Wg],s)},$t.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Vt.dragover=Vt.dragenter=(t,e)=>e.preventDefault(),Vt.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(tl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Ng(t,Ug(n.dataTransfer),Ms?null:n.dataTransfer.getData("text/html"),!1,i);let c=!!(r&&!n[Wg]);if(t.someProp("handleDrop",m=>m(t,n,s||we.empty,c))){n.preventDefault();return}if(!s)return;n.preventDefault();let a=s?xk(t.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let d=t.state.tr;if(c){let{node:m}=r;m?m.replace(d):d.deleteSelection()}let u=d.mapping.map(a),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=d.doc;if(f?d.replaceRangeWith(u,u,s.content.firstChild):d.replaceRange(u,u,s),d.doc.eq(h))return;let p=d.doc.resolve(u);if(f&&De.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))d.setSelection(new De(p));else{let m=d.mapping.map(a);d.mapping.maps[d.mapping.maps.length-1].forEach((y,g,b,E)=>m=E),d.setSelection(bu(t,p,d.doc.resolve(m)))}t.focus(),t.dispatch(d.setMeta("uiEvent","drop"))},$t.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&ur(t)},20))},$t.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},$t.beforeinput=(t,e)=>{if(Ot&&Ln&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,bo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in Vt)$t[t]=Vt[t];function Ds(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class rl{constructor(e,n){this.toDOM=e,this.spec=n||_o,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new un(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof rl&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ds(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Fr{constructor(e,n){this.attrs=e,this.spec=n||_o}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new un(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Fr&&Ds(this.attrs,e.attrs)&&Ds(this.spec,e.spec)}static is(e){return e.type instanceof Fr}destroy(){}}class Tu{constructor(e,n){this.attrs=e,this.spec=n||_o}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new un(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof Tu&&Ds(this.attrs,e.attrs)&&Ds(this.spec,e.spec)}destroy(){}}class un{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new un(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new un(e,e,new rl(n,r))}static inline(e,n,r,o){return new un(e,n,new Fr(r,o))}static node(e,n,r,o){return new un(e,n,new Tu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Fr}get widget(){return this.type instanceof rl}}const ci=[],_o={};class gt{constructor(e,n){this.local=e.length?e:ci,this.children=n.length?n:ci}static create(e,n){return n.length?ol(n,e,0,_o):Nt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let c=this.local[s];c.from<=n&&c.to>=e&&(!i||i(c.spec))&&r.push(c.copy(c.from+o,c.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let c=this.children[s]+1;this.children[s+2].findInner(e-c,n-c,r,o+c,i)}}map(e,n,r){return this==Nt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||_o)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let a=this.local[c].map(e,r,o);a&&a.type.valid(n,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?XA(this.children,s||[],e,n,r,o,i):s?new gt(s.sort(wo),ci):Nt}add(e,n){return n.length?this==Nt?gt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let d=a+r,u;if(u=Yg(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,a,a+c.nodeSize,ol(u,c,d+1,_o)),i+=3}});let s=Kg(i?Gg(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new gt(s.length?this.local.concat(s).sort(wo):this.local,o||this.children)}remove(e){return e.length==0||this==Nt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,c=r[i]+n,a=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Nt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new gt(o,r):Nt}forChild(e,n){if(this==Nt)return this;if(n.isLeaf)return gt.empty;let r,o;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(r=this.children[c+2]);break}let i=e+1,s=i+n.content.size;for(let c=0;c<this.local.length;c++){let a=this.local[c];if(a.from<s&&a.to>i&&a.type instanceof Fr){let d=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;d<u&&(o||(o=[])).push(a.copy(d,u))}}if(o){let c=new gt(o.sort(wo),ci);return r?new jr([c,r]):c}return r||Nt}eq(e){if(this==e)return!0;if(!(e instanceof gt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Iu(this.localsInner(e))}localsInner(e){if(this==Nt)return ci;if(e.inlineContent||!this.local.some(Fr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Fr||n.push(this.local[r]);return n}}gt.empty=new gt([],[]),gt.removeOverlap=Iu;const Nt=gt.empty;class jr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,_o));return jr.from(r)}forChild(e,n){if(n.isLeaf)return gt.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Nt&&(i instanceof jr?r=r.concat(i.members):r.push(i))}return jr.from(r)}eq(e){if(!(e instanceof jr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?Iu(r?n:n.sort(wo)):ci}static from(e){switch(e.length){case 0:return Nt;case 1:return e[0];default:return new jr(e.every(n=>n instanceof gt)?e:e.reduce((n,r)=>n.concat(r instanceof gt?r:r.members),[]))}}}function XA(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,y)=>{let g=y-m-(p-h);for(let b=0;b<c.length;b+=3){let E=c[b+1];if(E<0||h>E+u-f)continue;let C=c[b]+u-f;p>=C?c[b+1]=h<=C?-2:-1:m>=o&&g&&(c[b]+=g,c[b+1]+=g)}f+=g}),u=n.maps[d].map(u,-1)}let a=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){a=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:y}=r.content.findIndex(f),g=r.maybeChild(m);if(g&&y==f&&y+g.nodeSize==p){let b=c[d+2].mapInner(n,g,u+1,t[d]+i+1,s);b!=Nt?(c[d]=f,c[d+1]=p,c[d+2]=b):(c[d+1]=-2,a=!0)}else a=!0}if(a){let d=qA(c,t,e,n,o,i,s),u=ol(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new gt(e.sort(wo),c)}function Kg(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new un(o.from+e,o.to+e,o.type))}return n}function qA(t,e,n,r,o,i,s){function c(a,d){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)c(a.children[u+2],a.children[u]+d+1)}for(let a=0;a<t.length;a+=3)t[a+1]==-1&&c(t[a+2],e[a]+i+1);return n}function Yg(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function Gg(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function ol(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let d=Yg(t,c,a+n);if(d){i=!0;let u=ol(d,c,n+a+1,r);u!=Nt&&o.push(a,a+c.nodeSize,u)}});let s=Kg(i?Gg(t):t,-n).sort(wo);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||(r.onRemove&&r.onRemove(s[c].spec),s.splice(c--,1));return s.length||o.length?new gt(s,o):Nt}function wo(t,e){return t.from-e.from||t.to-e.to}function Iu(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),Qg(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Qg(e,o,r.copy(i.from,r.to)));break}}}return e}function Qg(t,e,n){for(;e<t.length&&wo(n,t[e])>0;)e++;t.splice(e,0,n)}function xu(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Nt&&e.push(r)}),t.cursorWrapper&&e.push(gt.create(t.state.doc,[t.cursorWrapper.deco])),jr.from(e)}const eT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},tT=Zt&&Pr<=11;class nT{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class rT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new nT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Zt&&Pr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),tT&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,eT)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Sg(this.view)){if(this.suppressingSelectionUpdates)return ur(this.view);if(Zt&&Pr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&vo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=As(i))n.add(i);for(let i=e.anchorNode;i;i=As(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Sg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(c=!0))}if(Mn&&a.length>1){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Xa(r)&&(d=yu(e))&&d.eq(Ye.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ur(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),oT(e)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||ur(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)n.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Zt&&Pr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?Bt(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?Bt(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,a,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Zg=new WeakMap,Jg=!1;function oT(t){if(!Zg.has(t)&&(Zg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Mn,Jg)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Jg=!0}}function iT(t){let e;function n(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,c=t.domAtPos(t.state.selection.anchor);return vo(c.node,c.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function sT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),d,u=a.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:a.anchorOffset}],Xa(a)||d.push({node:a.focusNode,offset:a.focusOffset})),Ot&&t.input.lastKeyCode===8)for(let g=i;g>o;g--){let b=r.childNodes[g-1],E=b.pmViewDesc;if(b.nodeName=="BR"&&!E){i=g;break}if(!E||E.size)break}let f=t.state.doc,h=t.someProp("domParser")||Jo.fromSchema(t.state.schema),p=f.resolve(s),m=null,y=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:aT,context:p});if(d&&d[0].pos!=null){let g=d[0].pos,b=d[1]&&d[1].pos;b==null&&(b=g),m={anchor:g+s,head:b+s}}return{doc:y,sel:m,from:s,to:c}}function aT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Rt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const lT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function cT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,j=yu(t,N);if(j&&!t.state.selection.eq(j)){if(Ot&&Ln&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",P=>P(t,bo(13,"Enter"))))return;let V=t.state.tr.setSelection(j);N=="pointer"?V.setMeta("pointer",!0):N=="key"&&V.scrollIntoView(),i&&V.setMeta("composition",i),t.dispatch(V)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let a=t.state.selection,d=sT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=fT(f.content,d.doc.content,d.from,h,p);if((ii&&t.input.lastIOSEnter>Date.now()-225||Ln)&&o.some(N=>N.nodeType==1&&!lT.test(N.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",N=>N(t,bo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Ge&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(d.sel){let N=Xg(t,t.state.doc,d.sel);if(N&&!N.eq(t.state.selection)){let j=t.state.tr.setSelection(N);i&&j.setMeta("composition",i),t.dispatch(j)}}return}if(Ot&&t.cursorWrapper&&d.sel&&d.sel.anchor==t.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let N=m.endB-m.start;d.sel={anchor:d.sel.anchor+N,head:d.sel.anchor+N}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Ge&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Zt&&Pr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let y=d.doc.resolveNoCache(m.start-d.from),g=d.doc.resolveNoCache(m.endB-d.from),b=u.resolve(m.start),E=y.sameParent(g)&&y.parent.inlineContent&&b.end()>=m.endA,C;if((ii&&t.input.lastIOSEnter>Date.now()-225&&(!E||o.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!E&&y.pos<d.doc.content.size&&!y.sameParent(g)&&(C=Ye.findFrom(d.doc.resolve(y.pos+1),1,!0))&&C.head==g.pos)&&t.someProp("handleKeyDown",N=>N(t,bo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&uT(u,m.start,m.endA,y,g)&&t.someProp("handleKeyDown",N=>N(t,bo(8,"Backspace")))){Ln&&Ot&&t.domObserver.suppressSelectionUpdates();return}Ot&&Ln&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Ln&&!E&&y.start()!=g.start()&&g.parentOffset==0&&y.depth==g.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,g=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,bo(13,"Enter"))})},20));let v=m.start,k=m.endA,_,O,L;if(E){if(y.pos==g.pos)Zt&&Pr<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>ur(t),20)),_=t.state.tr.delete(v,k),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(L=dT(y.parent.content.cut(y.parentOffset,g.parentOffset),b.parent.content.cut(b.parentOffset,m.endA-b.start()))))_=t.state.tr,L.type=="add"?_.addMark(v,k,L.mark):_.removeMark(v,k,L.mark);else if(y.parent.child(y.index()).isText&&y.index()==g.index()-(g.textOffset?0:1)){let N=y.parent.textBetween(y.parentOffset,g.parentOffset);if(t.someProp("handleTextInput",j=>j(t,v,k,N)))return;_=t.state.tr.insertText(N,v,k)}}if(_||(_=t.state.tr.replace(v,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let N=Xg(t,_.doc,d.sel);N&&!(Ot&&Ln&&t.composing&&N.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==v||N.head==_.mapping.map(k)-1)||Zt&&N.empty&&N.head==v)&&_.setSelection(N)}O&&_.ensureMarks(O),i&&_.setMeta("composition",i),t.dispatch(_.scrollIntoView())}function Xg(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:bu(t,e.resolve(n.anchor),e.resolve(n.head))}function dT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(a(e.child(u)));if(he.from(d).eq(t))return{mark:c,type:s}}function uT(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||Ou(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Ou(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Ou(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Ou(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function fT(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:c}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,c));r-=s+a-i}if(s<i&&t.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&qg(e.textBetween(i-1,i+1))&&(i+=a?1:-1),c=i+(c-s),s=i}else if(c<i){let a=r<=i&&r>=c?i-r:0;i-=a,i&&i<t.size&&qg(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function qg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class hT{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new DA,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(o2),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=n2(this),t2(this),this.nodeViews=r2(this),this.docView=dg(this.state.doc,e2(this),xu(this),this.dom,this),this.domObserver=new rT(this,(r,o,i,s)=>cT(this,r,o,i,s)),this.domObserver.start(),PA(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_u(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(o2),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(zg(this),s=!0),this.state=e;let c=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(c||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=r2(this);mT(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&_u(this),this.editable=n2(this),t2(this);let a=xu(this),d=e2(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&Qk(this);if(s){this.domObserver.stop();let p=f&&(Zt||Ot)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&pT(o.selection,e.selection);if(f){let m=Ot?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,d,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=dg(e.doc,d,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&CA(this))?ur(this,p):(Cg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&Zk(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof De){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&J0(this,n.getBoundingClientRect(),e)}else J0(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Hg(e.slice,e.move,o<0?void 0:De.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Zt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Jk(this.dom),ur(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return nA(this,e)}coordsAtPos(e,n=1){return rg(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return aA(this,n||this.state,e)}pasteHTML(e,n){return Ls(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Ls(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(BA(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],xu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return $A(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Rt&&this.root.nodeType===11&&zk(this.dom.ownerDocument)==this.dom?iT(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function e2(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[un.node(0,t.state.doc.content.size,e)]}function t2(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:un.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function n2(t){return!t.someProp("editable",e=>e(t.state)===!1)}function pT(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function r2(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function mT(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function o2(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var zr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},il={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},gT=typeof navigator<"u"&&/Mac/.test(navigator.platform),yT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),kt=0;kt<10;kt++)zr[48+kt]=zr[96+kt]=String(kt);for(var kt=1;kt<=24;kt++)zr[kt+111]="F"+kt;for(var kt=65;kt<=90;kt++)zr[kt]=String.fromCharCode(kt+32),il[kt]=String.fromCharCode(kt);for(var Nu in zr)il.hasOwnProperty(Nu)||(il[Nu]=zr[Nu]);function vT(t){var e=gT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||yT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?il:zr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const bT=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function CT(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c++){let a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))bT?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function ET(t){let e=Object.create(null);for(let n in t)e[CT(n)]=t[n];return e}function Mu(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function ST(t){return new Qt({props:{handleKeyDown:_T(t)}})}function _T(t){let e=ET(t);return function(n,r){let o=vT(r),i,s=e[Mu(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[Mu(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=zr[r.keyCode])&&i!=o){let c=e[Mu(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}const wT=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function kT(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const AT=(t,e,n)=>{let r=kT(t,n);if(!r)return!1;let o=i2(r);if(!o){let s=r.blockRange(),c=s&&qo(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&l2(t,o,e))return!0;if(r.parent.content.size==0&&(di(i,"end")||De.isSelectable(i))){let s=tu(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(di(i,"end")?Ye.findFrom(c.doc.resolve(c.mapping.map(o.pos,-1)),-1):De.create(c.doc,o.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function di(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const TT=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=i2(r)}let s=i&&i.nodeBefore;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function i2(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function IT(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const xT=(t,e,n)=>{let r=IT(t,n);if(!r)return!1;let o=s2(r);if(!o)return!1;let i=o.nodeAfter;if(l2(t,o,e))return!0;if(r.parent.content.size==0&&(di(i,"start")||De.isSelectable(i))){let s=tu(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(di(i,"start")?Ye.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):De.create(c.doc,c.mapping.map(o.pos))),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},OT=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=s2(r)}let s=i&&i.nodeAfter;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos)).scrollIntoView()),!0)};function s2(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const NT=(t,e)=>{let n=t.selection,r=n instanceof De,o;if(r){if(n.node.isTextblock||!Lr(t.doc,n.from))return!1;o=n.from}else if(o=Qa(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(De.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},MT=(t,e)=>{let n=t.selection,r;if(n instanceof De){if(n.node.isTextblock||!Lr(t.doc,n.to))return!1;r=n.to}else if(r=Qa(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},LT=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&qo(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},DT=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
1244
- `).scrollIntoView()),!0)};function a2(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const PT=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=a2(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let c=n.after(),a=t.tr.replaceWith(c,c,s.createAndFill());a.setSelection(Ye.near(a.doc.resolve(c),1)),e(a.scrollIntoView())}return!0},BT=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof On||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=a2(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,c=t.tr.insert(s,i.createAndFill());c.setSelection(Ge.create(c.doc,s+1)),e(c.scrollIntoView())}return!0},RT=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(ei(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&qo(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},$T=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(De.create(t.doc,o))),!0)};function VT(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Lr(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function l2(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(VT(t,e,n))return!0;let c=e.parent.canReplace(e.index(),e.index()+1);if(c&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,h=he.empty;for(let y=i.length-1;y>=0;y--)h=he.from(i[y].create(null,h));h=he.from(r.copy(h));let p=t.tr.step(new bt(e.pos-1,f,e.pos,f,new we(h,1,0),i.length,!0)),m=f+2*i.length;Lr(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let a=Ye.findFrom(e,1),d=a&&a.$from.blockRange(a.$to),u=d&&qo(d);if(u!=null&&u>=e.depth)return n&&n(t.tr.lift(d,u).scrollIntoView()),!0;if(c&&di(o,"start",!0)&&di(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(n){let y=he.empty;for(let b=h.length-1;b>=0;b--)y=he.from(h[b].copy(y));let g=t.tr.step(new bt(e.pos-h.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new we(y,h.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function c2(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(Ge.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const FT=c2(-1),jT=c2(1);function zT(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=s&&eu(s,t,e);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function d2(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:c}}=n.selection.ranges[i];n.doc.nodesBetween(s,c,(a,d)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)o=!0;else{let u=n.doc.resolve(d),f=u.index();o=u.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:c},$to:{pos:a}}=n.selection.ranges[s];i.setBlockType(c,a,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function UT(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);a=new za(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new za(o,n.doc.resolve(i.end(s.depth)),s.depth)),c=!0}let d=eu(a,t,e,s);return d?(r&&r(HT(n.tr,s,d,c,t).scrollIntoView()),!0):!1}}function HT(t,e,n,r,o){let i=he.empty;for(let u=n.length-1;u>=0;u--)i=he.from(n[u].type.create(n[u].attrs,i));t.step(new bt(e.start-(r?2:0),e.end,e.start,e.end,new we(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==o&&(s=u+1);let c=n.length-s,a=e.start+n.length-(r?2:0),d=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&ei(t.doc,a,c)&&(t.split(a,c),a+=2*c),a+=d.child(u).nodeSize;return t}function WT(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?KT(e,n,t,i):YT(e,n,i):!0:!1}}function KT(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new bt(i-1,s,i,s,new we(he.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new za(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const c=qo(r);if(c==null)return!1;o.lift(r,c);let a=o.mapping.map(i,-1)-1;return Lr(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function YT(t,e,n){let r=t.tr,o=n.parent;for(let p=n.end,m=n.endIndex-1,y=n.startIndex;m>y;m--)p-=o.child(m).nodeSize,r.delete(p-1,p+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let c=n.startIndex==0,a=n.endIndex==o.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(c?0:1),u+1,s.content.append(a?he.empty:he.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new bt(f-(c?1:0),h+(a?1:0),f+1,h-1,new we((c?he.empty:he.from(o.copy(he.empty))).append(a?he.empty:he.from(o.copy(he.empty))),c?0:1,a?0:1),c?0:1)),e(r.scrollIntoView()),!0}function GT(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,d=>d.childCount>0&&d.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let c=i.parent,a=c.child(s-1);if(a.type!=t)return!1;if(n){let d=a.lastChild&&a.lastChild.type==c.type,u=he.from(d?t.create():null),f=new we(he.from(t.create(null,he.from(c.type.create(null,u)))),d?3:1,0),h=i.start,p=i.end;n(e.tr.step(new bt(h-(d?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function sl(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class al{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...u)=>{const f=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c=[],a=!!e,d=e||i.tr,u=()=>(!a&&n&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(d),c.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...y)=>{const g=this.buildProps(d,n),b=p(...y)(g);return c.push(b),f}])),run:u};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([a,d])=>[a,(...u)=>d(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c={tr:e,editor:o,view:s,state:sl({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,d])=>[a,(...u)=>d(...u)(c)]))}};return c}}class QT{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ie(t,e,n){return t.config[e]===void 0&&t.parent?Ie(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Ie(t.parent,e,n):null}):t.config[e]}function ll(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function u2(t){const e=[],{nodeExtensions:n,markExtensions:r}=ll(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},a=Ie(s,"addGlobalAttributes",c);if(!a)return;a().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},a=Ie(s,"addAttributes",c);if(!a)return;const d=a();Object.entries(d).forEach(([u,f])=>{const h={...i,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Ct(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Ft(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],d=c.filter(u=>!a.includes(u));r[o]=[...a,...d].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function Lu(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Ft(n,r),{})}function f2(t){return typeof t=="function"}function Ue(t,e=void 0,...n){return f2(t)?e?t.bind(e)(...n):t(...n):t}function ZT(t={}){return Object.keys(t).length===0&&t.constructor===Object}function JT(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function h2(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):JT(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function p2(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&ZT(n)?!1:n!=null))}function XT(t,e){var n;const r=u2(t),{nodeExtensions:o,markExtensions:i}=ll(t),s=(n=o.find(d=>Ie(d,"topNode")))===null||n===void 0?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(b=>b.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((b,E)=>{const C=Ie(E,"extendNodeSchema",f);return{...b,...C?C(d):{}}},{}),p=p2({...h,content:Ue(Ie(d,"content",f)),marks:Ue(Ie(d,"marks",f)),group:Ue(Ie(d,"group",f)),inline:Ue(Ie(d,"inline",f)),atom:Ue(Ie(d,"atom",f)),selectable:Ue(Ie(d,"selectable",f)),draggable:Ue(Ie(d,"draggable",f)),code:Ue(Ie(d,"code",f)),defining:Ue(Ie(d,"defining",f)),isolating:Ue(Ie(d,"isolating",f)),attrs:Object.fromEntries(u.map(b=>{var E;return[b.name,{default:(E=b==null?void 0:b.attribute)===null||E===void 0?void 0:E.default}]}))}),m=Ue(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(b=>h2(b,u)));const y=Ie(d,"renderHTML",f);y&&(p.toDOM=b=>y({node:b,HTMLAttributes:Lu(b,u)}));const g=Ie(d,"renderText",f);return g&&(p.toText=g),[d.name,p]})),a=Object.fromEntries(i.map(d=>{const u=r.filter(g=>g.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((g,b)=>{const E=Ie(b,"extendMarkSchema",f);return{...g,...E?E(d):{}}},{}),p=p2({...h,inclusive:Ue(Ie(d,"inclusive",f)),excludes:Ue(Ie(d,"excludes",f)),group:Ue(Ie(d,"group",f)),spanning:Ue(Ie(d,"spanning",f)),code:Ue(Ie(d,"code",f)),attrs:Object.fromEntries(u.map(g=>{var b;return[g.name,{default:(b=g==null?void 0:g.attribute)===null||b===void 0?void 0:b.default}]}))}),m=Ue(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(g=>h2(g,u)));const y=Ie(d,"renderHTML",f);return y&&(p.toDOM=g=>y({mark:g,HTMLAttributes:Lu(g,u)})),[d.name,p]}));return new sk({topNode:s,nodes:c,marks:a})}function Du(t,e){return e.nodes[t]||e.marks[t]||null}function m2(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const qT=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var a,d;const u=((d=(a=o.type.spec).toText)===null||d===void 0?void 0:d.call(a,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=u.slice(0,Math.max(0,r-i))}),n};function Pu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class g2{constructor(e){this.find=e.find,this.handler=e.handler}}const eI=(t,e)=>{if(Pu(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Bu(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:a}=n;if(a.composing)return!1;const d=a.state.doc.resolve(r);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=qT(d)+i;return s.forEach(h=>{if(u)return;const p=eI(f,h.find);if(!p)return;const m=a.state.tr,y=sl({state:a.state,transaction:m}),g={from:r-(p[0].length-i.length),to:o},{commands:b,chain:E,can:C}=new al({editor:n,state:y});h.handler({state:y,range:g,match:p,commands:b,chain:E,can:C})===null||!m.steps.length||(m.setMeta(c,{transform:m,from:r,to:o,text:i}),a.dispatch(m),u=!0)}),u}function tI(t){const{editor:e,rules:n}=t,r=new Qt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,c){return Bu({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&Bu({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?Bu({editor:e,from:s.pos,to:s.pos,text:`
1245
- `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function nI(t){return typeof t=="number"}class rI{constructor(e){this.find=e.find,this.handler=e.handler}}const oI=(t,e)=>{if(Pu(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function iI(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:a,chain:d,can:u}=new al({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const y=Math.max(r,m),g=Math.min(o,m+p.content.size),b=p.textBetween(y-m,g-m,void 0,"");oI(b,i.find).forEach(C=>{if(C.index===void 0)return;const v=y+C.index+1,k=v+C[0].length,_={from:n.tr.mapping.map(v),to:n.tr.mapping.map(k)},O=i.handler({state:n,range:_,match:C,commands:a,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(O)})}),f.every(p=>p!==null)}function sI(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),c=new DragEvent("drop");return n.map(d=>new Qt({view(u){const f=h=>{var p;r=!((p=u.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(u,f)=>(i=r===u.dom.parentElement,c=f,!1),paste:(u,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,f,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,y=p.getMeta("uiEvent")==="drop"&&!i;if(!m&&!y)return;const g=f.doc.content.findDiffStart(h.doc.content),b=f.doc.content.findDiffEnd(h.doc.content);if(!nI(g)||!b||g===b.b)return;const E=h.tr,C=sl({state:h,transaction:E});if(!(!iI({editor:e,state:C,from:Math.max(g-1,0),to:b.b-1,rule:d,pasteEvent:s,dropEvent:c})||!E.steps.length))return c=new DragEvent("drop"),s=new ClipboardEvent("paste"),E}}))}function aI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class ui{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=ui.resolve(e),this.schema=XT(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Du(r.name,this.schema)};r.type==="mark"&&(!((o=Ue(Ie(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=Ie(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const c=Ie(r,"onCreate",i);c&&this.editor.on("create",c);const a=Ie(r,"onUpdate",i);a&&this.editor.on("update",a);const d=Ie(r,"onSelectionUpdate",i);d&&this.editor.on("selectionUpdate",d);const u=Ie(r,"onTransaction",i);u&&this.editor.on("transaction",u);const f=Ie(r,"onFocus",i);f&&this.editor.on("focus",f);const h=Ie(r,"onBlur",i);h&&this.editor.on("blur",h);const p=Ie(r,"onDestroy",i);p&&this.editor.on("destroy",p)})}static resolve(e){const n=ui.sort(ui.flatten(e)),r=aI(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Ie(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=Ie(r,"priority")||100,s=Ie(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Du(n.name,this.schema)},o=Ie(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=ui.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const c={name:s.name,options:s.options,storage:s.storage,editor:e,type:Du(s.name,this.schema)},a=[],d=Ie(s,"addKeyboardShortcuts",c);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>Hn.handleExit({editor:e,mark:s})),d){const y=Object.fromEntries(Object.entries(d()).map(([g,b])=>[g,()=>b({editor:e})]));u={...u,...y}}const f=ST(u);a.push(f);const h=Ie(s,"addInputRules",c);m2(s,e.options.enableInputRules)&&h&&r.push(...h());const p=Ie(s,"addPasteRules",c);m2(s,e.options.enablePasteRules)&&p&&o.push(...p());const m=Ie(s,"addProseMirrorPlugins",c);if(m){const y=m();a.push(...y)}return a}).flat();return[tI({editor:e,rules:r}),...sI({editor:e,rules:o}),...i]}get attributes(){return u2(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=ll(this.extensions);return Object.fromEntries(n.filter(r=>!!Ie(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ct(r.name,this.schema)},s=Ie(r,"addNodeView",i);if(!s)return[];const c=(a,d,u,f)=>{const h=Lu(a,o);return s()({editor:e,node:a,getPos:u,decorations:f,HTMLAttributes:h,extension:r})};return[r.name,c]}))}}function lI(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ru(t){return lI(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function cl(t,e){const n={...t};return Ru(t)&&Ru(e)&&Object.keys(e).forEach(r=>{Ru(e[r])?r in t?n[r]=cl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class fn{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new fn(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new fn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}}function y2(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
1243
+ `))),0,0):we.empty;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=Vn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=s.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=OA(n),Ts&&NA(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||Jo.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!IA.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=MA(Pg(c,+u[1],+u[2]),u[4]);else if(c=we.maxOpen(xA(c.content,o),!0),c.openStart||c.openEnd){let f=0,h=0;for(let p=c.content.firstChild;f<c.openStart&&!p.type.spec.isolating;f++,p=p.firstChild);for(let p=c.content.lastChild;h<c.openEnd&&!p.type.spec.isolating;h++,p=p.lastChild);c=Pg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t)}),c}const IA=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function xA(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(c=>{if(!s)return;let a=o.findWrapping(c.type),d;if(!a)return s=null;if(d=s.length&&i.length&&Lg(a,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Dg(s[s.length-1],i.length));let u=Mg(c,a);s.push(u),o=o.matchType(u.type),i=a}}),s)return he.from(s)}return t}function Mg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,he.from(t));return t}function Lg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Lg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(he.from(Mg(n,t,o+1))))}}function Dg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Dg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(he.empty,!0);return t.copy(n.append(r))}function Su(t,e,n,r,o,i){let s=e<0?t.firstChild:t.lastChild,c=s.content;return t.childCount>1&&(i=0),o<r-1&&(c=Su(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(he.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Pg(t,e,n){return e<t.openStart&&(t=new we(Su(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new we(Su(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Bg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Rg=null;function $g(){return Rg||(Rg=document.implementation.createHTMLDocument("title"))}function OA(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=$g().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&Bg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function NA(t){let e=t.querySelectorAll(Ot?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function MA(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:o,openStart:i,openEnd:s}=t;for(let c=r.length-2;c>=0;c-=2){let a=n.nodes[r[c]];if(!a||a.hasRequiredAttrs())break;o=he.from(a.create(r[c+1],o)),i++,s++}return new we(o,i,s)}const $t={},Vt={},LA={touchstart:!0,touchmove:!0};class DA{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function PA(t){for(let e in $t){let n=$t[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{RA(t,r)&&!wu(t,r)&&(t.editable||!(r.type in Vt))&&n(t,r)},LA[e]?{passive:!0}:void 0)}Rt&&t.dom.addEventListener("input",()=>null),_u(t)}function Vr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function BA(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function _u(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>wu(t,r))})}function wu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function RA(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function $A(t,e){!wu(t,e)&&$t[e.type]&&(t.editable||!(e.type in Vt))&&$t[e.type](t,e)}Vt.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Fg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Ln&&Ot&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),ii&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",o=>o(t,bo(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||TA(t,n)?n.preventDefault():Vr(t,"key")},Vt.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Vt.keypress=(t,e)=>{let n=e;if(Fg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||dn&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Ge)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function tl(t){return{left:t.clientX,top:t.clientY}}function VA(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function ku(t,e,n,r,o){if(r==-1)return!1;let i=t.state.doc.resolve(r);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,c=>s>i.depth?c(t,n,i.nodeAfter,i.before(s),o,!0):c(t,n,i.node(s),i.before(s),o,!1)))return!0;return!1}function li(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function FA(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&De.isSelectable(r)?(li(t,new De(n),"pointer"),!0):!1}function jA(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof De&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(De.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(li(t,De.create(t.state.doc,o),"pointer"),!0):!1}function zA(t,e,n,r,o){return ku(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?jA(t,n):FA(t,n))}function UA(t,e,n,r){return ku(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function HA(t,e,n,r){return ku(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||WA(t,n,r)}function WA(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(li(t,Ge.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)li(t,Ge.create(r,c+1,c+1+s.content.size),"pointer");else if(De.isSelectable(s))li(t,De.create(r,c),"pointer");else continue;return!0}}function Au(t){return nl(t)}const Vg=dn?"metaKey":"ctrlKey";$t.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Au(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&VA(n,t.input.lastClick)&&!n[Vg]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(tl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new KA(t,s,n,!!r)):(i=="doubleClick"?UA:HA)(t,s.pos,s.inside,n)?n.preventDefault():Vr(t,"pointer"))};class KA{constructor(e,n,r,o){this.view=e,this.pos=n,this.event=r,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Vg],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a?a.dom:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof De&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Mn&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Vr(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>ur(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(tl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Vr(this.view,"pointer"):zA(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Rt&&this.mightDrag&&!this.mightDrag.node.isAtom||Ot&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(li(this.view,Ye.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Vr(this.view,"pointer")}move(e){this.updateAllowDefault(e),Vr(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}$t.touchstart=t=>{t.input.lastTouch=Date.now(),Au(t),Vr(t,"pointer")},$t.touchmove=t=>{t.input.lastTouch=Date.now(),Vr(t,"pointer")},$t.contextmenu=t=>Au(t);function Fg(t,e){return t.composing?!0:Rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const YA=Ln?5e3:-1;Vt.compositionstart=Vt.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),nl(t,!0),t.markCursor=null;else if(nl(t),Mn&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}jg(t,YA)},Vt.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,jg(t,20))};function jg(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>nl(t),e))}function zg(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=GA());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function GA(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function nl(t,e=!1){if(!(Ln&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),zg(t),e||t.docView&&t.docView.dirty){let n=yu(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function QA(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Ms=Zt&&Pr<15||ii&&Kk<604;$t.copy=Vt.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=Ms?null:n.clipboardData,s=r.content(),{dom:c,text:a}=Og(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):QA(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ZA(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function JA(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ls(t,r.value,null,o,e):Ls(t,r.textContent,r.innerHTML,o,e)},50)}function Ls(t,e,n,r,o){let i=Ng(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||we.empty)))return!0;if(!i)return!1;let s=ZA(i),c=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(i);return t.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Ug(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Vt.paste=(t,e)=>{let n=e;if(t.composing&&!Ln)return;let r=Ms?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Ls(t,Ug(r),r.getData("text/html"),o,n)?n.preventDefault():JA(t,n)};class Hg{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Wg=dn?"altKey":"ctrlKey";$t.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o=t.state.selection,i=o.empty?null:t.posAtCoords(tl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof De?o.to-1:o.to))){if(r&&r.mightDrag)s=De.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&(s=De.create(t.state.doc,u.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:d}=Og(t,c);n.dataTransfer.clearData(),n.dataTransfer.setData(Ms?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ms||n.dataTransfer.setData("text/plain",d),t.dragging=new Hg(c,!n[Wg],s)},$t.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Vt.dragover=Vt.dragenter=(t,e)=>e.preventDefault(),Vt.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(tl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Ng(t,Ug(n.dataTransfer),Ms?null:n.dataTransfer.getData("text/html"),!1,i);let c=!!(r&&!n[Wg]);if(t.someProp("handleDrop",m=>m(t,n,s||we.empty,c))){n.preventDefault();return}if(!s)return;n.preventDefault();let a=s?xk(t.state.doc,i.pos,s):i.pos;a==null&&(a=i.pos);let d=t.state.tr;if(c){let{node:m}=r;m?m.replace(d):d.deleteSelection()}let u=d.mapping.map(a),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=d.doc;if(f?d.replaceRangeWith(u,u,s.content.firstChild):d.replaceRange(u,u,s),d.doc.eq(h))return;let p=d.doc.resolve(u);if(f&&De.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))d.setSelection(new De(p));else{let m=d.mapping.map(a);d.mapping.maps[d.mapping.maps.length-1].forEach((g,y,C,E)=>m=E),d.setSelection(bu(t,p,d.doc.resolve(m)))}t.focus(),t.dispatch(d.setMeta("uiEvent","drop"))},$t.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&ur(t)},20))},$t.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},$t.beforeinput=(t,e)=>{if(Ot&&Ln&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,bo(8,"Backspace")))))return;let{$cursor:o}=t.state.selection;o&&o.pos>0&&t.dispatch(t.state.tr.delete(o.pos-1,o.pos).scrollIntoView())},50)}};for(let t in Vt)$t[t]=Vt[t];function Ds(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class rl{constructor(e,n){this.toDOM=e,this.spec=n||_o,this.side=this.spec.side||0}map(e,n,r,o){let{pos:i,deleted:s}=e.mapResult(n.from+o,this.side<0?-1:1);return s?null:new fn(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof rl&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ds(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Fr{constructor(e,n){this.attrs=e,this.spec=n||_o}map(e,n,r,o){let i=e.map(n.from+o,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+o,this.spec.inclusiveEnd?1:-1)-r;return i>=s?null:new fn(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Fr&&Ds(this.attrs,e.attrs)&&Ds(this.spec,e.spec)}static is(e){return e.type instanceof Fr}destroy(){}}class Tu{constructor(e,n){this.attrs=e,this.spec=n||_o}map(e,n,r,o){let i=e.mapResult(n.from+o,1);if(i.deleted)return null;let s=e.mapResult(n.to+o,-1);return s.deleted||s.pos<=i.pos?null:new fn(i.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:o}=e.content.findIndex(n.from),i;return o==n.from&&!(i=e.child(r)).isText&&o+i.nodeSize==n.to}eq(e){return this==e||e instanceof Tu&&Ds(this.attrs,e.attrs)&&Ds(this.spec,e.spec)}destroy(){}}class fn{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new fn(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new fn(e,e,new rl(n,r))}static inline(e,n,r,o){return new fn(e,n,new Fr(r,o))}static node(e,n,r,o){return new fn(e,n,new Tu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Fr}get widget(){return this.type instanceof rl}}const ci=[],_o={};class gt{constructor(e,n){this.local=e.length?e:ci,this.children=n.length?n:ci}static create(e,n){return n.length?ol(n,e,0,_o):Nt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let c=this.local[s];c.from<=n&&c.to>=e&&(!i||i(c.spec))&&r.push(c.copy(c.from+o,c.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let c=this.children[s]+1;this.children[s+2].findInner(e-c,n-c,r,o+c,i)}}map(e,n,r){return this==Nt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||_o)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let a=this.local[c].map(e,r,o);a&&a.type.valid(n,a)?(s||(s=[])).push(a):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?XA(this.children,s||[],e,n,r,o,i):s?new gt(s.sort(wo),ci):Nt}add(e,n){return n.length?this==Nt?gt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let d=a+r,u;if(u=Yg(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<a;)i+=3;o[i]==a?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,a,a+c.nodeSize,ol(u,c,d+1,_o)),i+=3}});let s=Kg(i?Gg(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new gt(s.length?this.local.concat(s).sort(wo):this.local,o||this.children)}remove(e){return e.length==0||this==Nt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,c=r[i]+n,a=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<a&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Nt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new gt(o,r):Nt}forChild(e,n){if(this==Nt)return this;if(n.isLeaf)return gt.empty;let r,o;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(r=this.children[c+2]);break}let i=e+1,s=i+n.content.size;for(let c=0;c<this.local.length;c++){let a=this.local[c];if(a.from<s&&a.to>i&&a.type instanceof Fr){let d=Math.max(i,a.from)-i,u=Math.min(s,a.to)-i;d<u&&(o||(o=[])).push(a.copy(d,u))}}if(o){let c=new gt(o.sort(wo),ci);return r?new jr([c,r]):c}return r||Nt}eq(e){if(this==e)return!0;if(!(e instanceof gt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Iu(this.localsInner(e))}localsInner(e){if(this==Nt)return ci;if(e.inlineContent||!this.local.some(Fr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Fr||n.push(this.local[r]);return n}}gt.empty=new gt([],[]),gt.removeOverlap=Iu;const Nt=gt.empty;class jr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,_o));return jr.from(r)}forChild(e,n){if(n.isLeaf)return gt.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Nt&&(i instanceof jr?r=r.concat(i.members):r.push(i))}return jr.from(r)}eq(e){if(!(e instanceof jr)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let o=0;o<this.members.length;o++){let i=this.members[o].localsInner(e);if(i.length)if(!n)n=i;else{r&&(n=n.slice(),r=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?Iu(r?n:n.sort(wo)):ci}static from(e){switch(e.length){case 0:return Nt;case 1:return e[0];default:return new jr(e.every(n=>n instanceof gt)?e:e.reduce((n,r)=>n.concat(r instanceof gt?r:r.members),[]))}}}function XA(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,g)=>{let y=g-m-(p-h);for(let C=0;C<c.length;C+=3){let E=c[C+1];if(E<0||h>E+u-f)continue;let b=c[C]+u-f;p>=b?c[C+1]=h<=b?-2:-1:m>=o&&y&&(c[C]+=y,c[C+1]+=y)}f+=y}),u=n.maps[d].map(u,-1)}let a=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){a=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),y=r.maybeChild(m);if(y&&g==f&&g+y.nodeSize==p){let C=c[d+2].mapInner(n,y,u+1,t[d]+i+1,s);C!=Nt?(c[d]=f,c[d+1]=p,c[d+2]=C):(c[d+1]=-2,a=!0)}else a=!0}if(a){let d=qA(c,t,e,n,o,i,s),u=ol(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new gt(e.sort(wo),c)}function Kg(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let o=t[r];n.push(new fn(o.from+e,o.to+e,o.type))}return n}function qA(t,e,n,r,o,i,s){function c(a,d){for(let u=0;u<a.local.length;u++){let f=a.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(a.local[u].spec)}for(let u=0;u<a.children.length;u+=3)c(a.children[u+2],a.children[u]+d+1)}for(let a=0;a<t.length;a+=3)t[a+1]==-1&&c(t[a+2],e[a]+i+1);return n}function Yg(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,o=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<r&&((o||(o=[])).push(s),t[i]=null);return o}function Gg(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function ol(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let d=Yg(t,c,a+n);if(d){i=!0;let u=ol(d,c,n+a+1,r);u!=Nt&&o.push(a,a+c.nodeSize,u)}});let s=Kg(i?Gg(t):t,-n).sort(wo);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||(r.onRemove&&r.onRemove(s[c].spec),s.splice(c--,1));return s.length||o.length?new gt(s,o):Nt}function wo(t,e){return t.from-e.from||t.to-e.to}function Iu(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let o=n+1;o<e.length;o++){let i=e[o];if(i.from==r.from){i.to!=r.to&&(e==t&&(e=t.slice()),e[o]=i.copy(i.from,r.to),Qg(e,o+1,i.copy(r.to,i.to)));continue}else{i.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,i.from),Qg(e,o,r.copy(i.from,r.to)));break}}}return e}function Qg(t,e,n){for(;e<t.length&&wo(n,t[e])>0;)e++;t.splice(e,0,n)}function xu(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Nt&&e.push(r)}),t.cursorWrapper&&e.push(gt.create(t.state.doc,[t.cursorWrapper.deco])),jr.from(e)}const eT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},tT=Zt&&Pr<=11;class nT{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class rT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new nT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Zt&&Pr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),tT&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,eT)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Sg(this.view)){if(this.suppressingSelectionUpdates)return ur(this.view);if(Zt&&Pr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&vo(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let i=e.focusNode;i;i=As(i))n.add(i);for(let i=e.anchorNode;i;i=As(i))if(n.has(i)){r=i;break}let o=r&&this.view.docView.nearestDesc(r);if(o&&o.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Sg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],a);f&&(i=i<0?f.from:Math.min(f.from,i),s=s<0?f.to:Math.max(f.to,s),f.typeOver&&(c=!0))}if(Mn&&a.length>1){let u=a.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Xa(r)&&(d=yu(e))&&d.eq(Ye.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ur(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),oT(e)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||ur(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)n.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Zt&&Pr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?Bt(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?Bt(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,a,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let Zg=new WeakMap,Jg=!1;function oT(t){if(!Zg.has(t)&&(Zg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Mn,Jg)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),Jg=!0}}function iT(t){let e;function n(a){a.preventDefault(),a.stopImmediatePropagation(),e=a.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,c=t.domAtPos(t.state.selection.anchor);return vo(c.node,c.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function sT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),d,u=a.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:a.anchorOffset}],Xa(a)||d.push({node:a.focusNode,offset:a.focusOffset})),Ot&&t.input.lastKeyCode===8)for(let y=i;y>o;y--){let C=r.childNodes[y-1],E=C.pmViewDesc;if(C.nodeName=="BR"&&!E){i=y;break}if(!E||E.size)break}let f=t.state.doc,h=t.someProp("domParser")||Jo.fromSchema(t.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:aT,context:p});if(d&&d[0].pos!=null){let y=d[0].pos,C=d[1]&&d[1].pos;C==null&&(C=y),m={anchor:y+s,head:C+s}}return{doc:g,sel:m,from:s,to:c}}function aT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Rt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const lT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function cT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,j=yu(t,N);if(j&&!t.state.selection.eq(j)){if(Ot&&Ln&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",P=>P(t,bo(13,"Enter"))))return;let V=t.state.tr.setSelection(j);N=="pointer"?V.setMeta("pointer",!0):N=="key"&&V.scrollIntoView(),i&&V.setMeta("composition",i),t.dispatch(V)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let a=t.state.selection,d=sT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=fT(f.content,d.doc.content,d.from,h,p);if((ii&&t.input.lastIOSEnter>Date.now()-225||Ln)&&o.some(N=>N.nodeType==1&&!lT.test(N.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",N=>N(t,bo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Ge&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(d.sel){let N=Xg(t,t.state.doc,d.sel);if(N&&!N.eq(t.state.selection)){let j=t.state.tr.setSelection(N);i&&j.setMeta("composition",i),t.dispatch(j)}}return}if(Ot&&t.cursorWrapper&&d.sel&&d.sel.anchor==t.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let N=m.endB-m.start;d.sel={anchor:d.sel.anchor+N,head:d.sel.anchor+N}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Ge&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Zt&&Pr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=d.doc.resolveNoCache(m.start-d.from),y=d.doc.resolveNoCache(m.endB-d.from),C=u.resolve(m.start),E=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,b;if((ii&&t.input.lastIOSEnter>Date.now()-225&&(!E||o.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!E&&g.pos<d.doc.content.size&&!g.sameParent(y)&&(b=Ye.findFrom(d.doc.resolve(g.pos+1),1,!0))&&b.head==y.pos)&&t.someProp("handleKeyDown",N=>N(t,bo(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&uT(u,m.start,m.endA,g,y)&&t.someProp("handleKeyDown",N=>N(t,bo(8,"Backspace")))){Ln&&Ot&&t.domObserver.suppressSelectionUpdates();return}Ot&&Ln&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Ln&&!E&&g.start()!=y.start()&&y.parentOffset==0&&g.depth==y.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,y=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,bo(13,"Enter"))})},20));let v=m.start,k=m.endA,_,O,L;if(E){if(g.pos==y.pos)Zt&&Pr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>ur(t),20)),_=t.state.tr.delete(v,k),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(L=dT(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))_=t.state.tr,L.type=="add"?_.addMark(v,k,L.mark):_.removeMark(v,k,L.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let N=g.parent.textBetween(g.parentOffset,y.parentOffset);if(t.someProp("handleTextInput",j=>j(t,v,k,N)))return;_=t.state.tr.insertText(N,v,k)}}if(_||(_=t.state.tr.replace(v,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let N=Xg(t,_.doc,d.sel);N&&!(Ot&&Ln&&t.composing&&N.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==v||N.head==_.mapping.map(k)-1)||Zt&&N.empty&&N.head==v)&&_.setSelection(N)}O&&_.ensureMarks(O),i&&_.setMeta("composition",i),t.dispatch(_.scrollIntoView())}function Xg(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:bu(t,e.resolve(n.anchor),e.resolve(n.head))}function dT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(a(e.child(u)));if(he.from(d).eq(t))return{mark:c,type:s}}function uT(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||Ou(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Ou(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Ou(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Ou(t,e,n){let r=t.depth,o=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,o++,e=!1;if(n){let i=t.node(r).maybeChild(t.indexAfter(r));for(;i&&!i.isLeaf;)i=i.firstChild,o++}return o}function fT(t,e,n,r,o){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:c}=t.findDiffEnd(e,n+t.size,n+e.size);if(o=="end"){let a=Math.max(0,i-Math.min(s,c));r-=s+a-i}if(s<i&&t.size<e.size){let a=r<=i&&r>=s?i-r:0;i-=a,i&&i<e.size&&qg(e.textBetween(i-1,i+1))&&(i+=a?1:-1),c=i+(c-s),s=i}else if(c<i){let a=r<=i&&r>=c?i-r:0;i-=a,i&&i<t.size&&qg(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function qg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class hT{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new DA,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(o2),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=n2(this),t2(this),this.nodeViews=r2(this),this.docView=dg(this.state.doc,e2(this),xu(this),this.dom,this),this.domObserver=new rT(this,(r,o,i,s)=>cT(this,r,o,i,s)),this.domObserver.start(),PA(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&_u(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(o2),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let o=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(zg(this),s=!0),this.state=e;let c=o.plugins!=e.plugins||this._props.plugins!=n.plugins;if(c||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=r2(this);mT(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&_u(this),this.editable=n2(this),t2(this);let a=xu(this),d=e2(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&Qk(this);if(s){this.domObserver.stop();let p=f&&(Zt||Ot)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&pT(o.selection,e.selection);if(f){let m=Ot?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,d,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=dg(e.doc,d,a,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&CA(this))?ur(this,p):(Cg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&Zk(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof De){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&J0(this,n.getBoundingClientRect(),e)}else J0(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,o=-1;if(this.state.doc.nodeAt(r.from)==r.node)o=r.from;else{let i=r.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==r.node&&(o=i)}this.dragging=new Hg(e.slice,e.move,o<0?void 0:De.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Zt){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Jk(this.dom),ur(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return nA(this,e)}coordsAtPos(e,n=1){return rg(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let o=this.docView.posFromDOM(e,n,r);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(e,n){return aA(this,n||this.state,e)}pasteHTML(e,n){return Ls(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Ls(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(BA(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],xu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return $A(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Rt&&this.root.nodeType===11&&zk(this.dom.ownerDocument)==this.dom?iT(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function e2(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[fn.node(0,t.state.doc.content.size,e)]}function t2(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:fn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function n2(t){return!t.someProp("editable",e=>e(t.state)===!1)}function pT(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function r2(t){let e=Object.create(null);function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(e,o)||(e[o]=r[o])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function mT(t,e){let n=0,r=0;for(let o in t){if(t[o]!=e[o])return!0;n++}for(let o in e)r++;return n!=r}function o2(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var zr={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},il={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},gT=typeof navigator<"u"&&/Mac/.test(navigator.platform),yT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),kt=0;kt<10;kt++)zr[48+kt]=zr[96+kt]=String(kt);for(var kt=1;kt<=24;kt++)zr[kt+111]="F"+kt;for(var kt=65;kt<=90;kt++)zr[kt]=String.fromCharCode(kt+32),il[kt]=String.fromCharCode(kt);for(var Nu in zr)il.hasOwnProperty(Nu)||(il[Nu]=zr[Nu]);function vT(t){var e=gT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||yT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?il:zr)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const bT=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function CT(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c++){let a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))bT?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+a)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function ET(t){let e=Object.create(null);for(let n in t)e[CT(n)]=t[n];return e}function Mu(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function ST(t){return new Qt({props:{handleKeyDown:_T(t)}})}function _T(t){let e=ET(t);return function(n,r){let o=vT(r),i,s=e[Mu(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[Mu(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=zr[r.keyCode])&&i!=o){let c=e[Mu(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}const wT=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function kT(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const AT=(t,e,n)=>{let r=kT(t,n);if(!r)return!1;let o=i2(r);if(!o){let s=r.blockRange(),c=s&&qo(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&l2(t,o,e))return!0;if(r.parent.content.size==0&&(di(i,"end")||De.isSelectable(i))){let s=tu(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(di(i,"end")?Ye.findFrom(c.doc.resolve(c.mapping.map(o.pos,-1)),-1):De.create(c.doc,o.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function di(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const TT=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;i=i2(r)}let s=i&&i.nodeBefore;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function i2(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function IT(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const xT=(t,e,n)=>{let r=IT(t,n);if(!r)return!1;let o=s2(r);if(!o)return!1;let i=o.nodeAfter;if(l2(t,o,e))return!0;if(r.parent.content.size==0&&(di(i,"start")||De.isSelectable(i))){let s=tu(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(di(i,"start")?Ye.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):De.create(c.doc,c.mapping.map(o.pos))),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},OT=(t,e,n)=>{let{$head:r,empty:o}=t.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;i=s2(r)}let s=i&&i.nodeAfter;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos)).scrollIntoView()),!0)};function s2(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const NT=(t,e)=>{let n=t.selection,r=n instanceof De,o;if(r){if(n.node.isTextblock||!Lr(t.doc,n.from))return!1;o=n.from}else if(o=Qa(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(De.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},MT=(t,e)=>{let n=t.selection,r;if(n instanceof De){if(n.node.isTextblock||!Lr(t.doc,n.to))return!1;r=n.to}else if(r=Qa(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},LT=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&qo(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},DT=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
1244
+ `).scrollIntoView()),!0)};function a2(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const PT=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),s=a2(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let c=n.after(),a=t.tr.replaceWith(c,c,s.createAndFill());a.setSelection(Ye.near(a.doc.resolve(c),1)),e(a.scrollIntoView())}return!0},BT=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof On||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=a2(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,c=t.tr.insert(s,i.createAndFill());c.setSelection(Ge.create(c.doc,s+1)),e(c.scrollIntoView())}return!0},RT=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(ei(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&qo(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},$T=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(De.create(t.doc,o))),!0)};function VT(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i=e.index();return!r||!o||!r.type.compatibleContent(o.type)?!1:!r.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(o.isTextblock||Lr(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function l2(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(VT(t,e,n))return!0;let c=e.parent.canReplace(e.index(),e.index()+1);if(c&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,h=he.empty;for(let g=i.length-1;g>=0;g--)h=he.from(i[g].create(null,h));h=he.from(r.copy(h));let p=t.tr.step(new bt(e.pos-1,f,e.pos,f,new we(h,1,0),i.length,!0)),m=f+2*i.length;Lr(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let a=Ye.findFrom(e,1),d=a&&a.$from.blockRange(a.$to),u=d&&qo(d);if(u!=null&&u>=e.depth)return n&&n(t.tr.lift(d,u).scrollIntoView()),!0;if(c&&di(o,"start",!0)&&di(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(n){let g=he.empty;for(let C=h.length-1;C>=0;C--)g=he.from(h[C].copy(g));let y=t.tr.step(new bt(e.pos-h.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new we(g,h.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function c2(t){return function(e,n){let r=e.selection,o=t<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return o.node(i).isTextblock?(n&&n(e.tr.setSelection(Ge.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const FT=c2(-1),jT=c2(1);function zT(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=s&&eu(s,t,e);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function d2(t,e=null){return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:s},$to:{pos:c}}=n.selection.ranges[i];n.doc.nodesBetween(s,c,(a,d)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)o=!0;else{let u=n.doc.resolve(d),f=u.index();o=u.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:c},$to:{pos:a}}=n.selection.ranges[s];i.setBlockType(c,a,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function UT(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=!1,a=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);a=new za(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new za(o,n.doc.resolve(i.end(s.depth)),s.depth)),c=!0}let d=eu(a,t,e,s);return d?(r&&r(HT(n.tr,s,d,c,t).scrollIntoView()),!0):!1}}function HT(t,e,n,r,o){let i=he.empty;for(let u=n.length-1;u>=0;u--)i=he.from(n[u].type.create(n[u].attrs,i));t.step(new bt(e.start-(r?2:0),e.end,e.start,e.end,new we(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==o&&(s=u+1);let c=n.length-s,a=e.start+n.length-(r?2:0),d=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&ei(t.doc,a,c)&&(t.split(a,c),a+=2*c),a+=d.child(u).nodeSize;return t}function WT(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,s=>s.childCount>0&&s.firstChild.type==t);return i?n?r.node(i.depth-1).type==t?KT(e,n,t,i):YT(e,n,i):!0:!1}}function KT(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new bt(i-1,s,i,s,new we(he.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new za(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const c=qo(r);if(c==null)return!1;o.lift(r,c);let a=o.mapping.map(i,-1)-1;return Lr(o.doc,a)&&o.join(a),e(o.scrollIntoView()),!0}function YT(t,e,n){let r=t.tr,o=n.parent;for(let p=n.end,m=n.endIndex-1,g=n.startIndex;m>g;m--)p-=o.child(m).nodeSize,r.delete(p-1,p+1);let i=r.doc.resolve(n.start),s=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let c=n.startIndex==0,a=n.endIndex==o.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(c?0:1),u+1,s.content.append(a?he.empty:he.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new bt(f-(c?1:0),h+(a?1:0),f+1,h-1,new we((c?he.empty:he.from(o.copy(he.empty))).append(a?he.empty:he.from(o.copy(he.empty))),c?0:1,a?0:1),c?0:1)),e(r.scrollIntoView()),!0}function GT(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,d=>d.childCount>0&&d.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let c=i.parent,a=c.child(s-1);if(a.type!=t)return!1;if(n){let d=a.lastChild&&a.lastChild.type==c.type,u=he.from(d?t.create():null),f=new we(he.from(t.create(null,he.from(c.type.create(null,u)))),d?3:1,0),h=i.start,p=i.end;n(e.tr.step(new bt(h-(d?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function sl(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class al{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...u)=>{const f=a(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c=[],a=!!e,d=e||i.tr,u=()=>(!a&&n&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(d),c.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...g)=>{const y=this.buildProps(d,n),C=p(...g)(y);return c.push(C),f}])),run:u};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([a,d])=>[a,(...u)=>d(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c={tr:e,editor:o,view:s,state:sl({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([a,d])=>[a,(...u)=>d(...u)(c)]))}};return c}}class QT{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ie(t,e,n){return t.config[e]===void 0&&t.parent?Ie(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Ie(t.parent,e,n):null}):t.config[e]}function ll(t){const e=t.filter(o=>o.type==="extension"),n=t.filter(o=>o.type==="node"),r=t.filter(o=>o.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function u2(t){const e=[],{nodeExtensions:n,markExtensions:r}=ll(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},a=Ie(s,"addGlobalAttributes",c);if(!a)return;a().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},a=Ie(s,"addAttributes",c);if(!a)return;const d=a();Object.entries(d).forEach(([u,f])=>{const h={...i,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Ct(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Ft(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?i.split(" "):[],a=r[o]?r[o].split(" "):[],d=c.filter(u=>!a.includes(u));r[o]=[...a,...d].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function Lu(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Ft(n,r),{})}function f2(t){return typeof t=="function"}function Ue(t,e=void 0,...n){return f2(t)?e?t.bind(e)(...n):t(...n):t}function ZT(t={}){return Object.keys(t).length===0&&t.constructor===Object}function JT(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function h2(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):JT(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function p2(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&ZT(n)?!1:n!=null))}function XT(t,e){var n;const r=u2(t),{nodeExtensions:o,markExtensions:i}=ll(t),s=(n=o.find(d=>Ie(d,"topNode")))===null||n===void 0?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(C=>C.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((C,E)=>{const b=Ie(E,"extendNodeSchema",f);return{...C,...b?b(d):{}}},{}),p=p2({...h,content:Ue(Ie(d,"content",f)),marks:Ue(Ie(d,"marks",f)),group:Ue(Ie(d,"group",f)),inline:Ue(Ie(d,"inline",f)),atom:Ue(Ie(d,"atom",f)),selectable:Ue(Ie(d,"selectable",f)),draggable:Ue(Ie(d,"draggable",f)),code:Ue(Ie(d,"code",f)),defining:Ue(Ie(d,"defining",f)),isolating:Ue(Ie(d,"isolating",f)),attrs:Object.fromEntries(u.map(C=>{var E;return[C.name,{default:(E=C==null?void 0:C.attribute)===null||E===void 0?void 0:E.default}]}))}),m=Ue(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(C=>h2(C,u)));const g=Ie(d,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:Lu(C,u)}));const y=Ie(d,"renderText",f);return y&&(p.toText=y),[d.name,p]})),a=Object.fromEntries(i.map(d=>{const u=r.filter(y=>y.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((y,C)=>{const E=Ie(C,"extendMarkSchema",f);return{...y,...E?E(d):{}}},{}),p=p2({...h,inclusive:Ue(Ie(d,"inclusive",f)),excludes:Ue(Ie(d,"excludes",f)),group:Ue(Ie(d,"group",f)),spanning:Ue(Ie(d,"spanning",f)),code:Ue(Ie(d,"code",f)),attrs:Object.fromEntries(u.map(y=>{var C;return[y.name,{default:(C=y==null?void 0:y.attribute)===null||C===void 0?void 0:C.default}]}))}),m=Ue(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(y=>h2(y,u)));const g=Ie(d,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:Lu(y,u)})),[d.name,p]}));return new sk({topNode:s,nodes:c,marks:a})}function Du(t,e){return e.nodes[t]||e.marks[t]||null}function m2(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const qT=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var a,d;const u=((d=(a=o.type.spec).toText)===null||d===void 0?void 0:d.call(a,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=u.slice(0,Math.max(0,r-i))}),n};function Pu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class g2{constructor(e){this.find=e.find,this.handler=e.handler}}const eI=(t,e)=>{if(Pu(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Bu(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:a}=n;if(a.composing)return!1;const d=a.state.doc.resolve(r);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=qT(d)+i;return s.forEach(h=>{if(u)return;const p=eI(f,h.find);if(!p)return;const m=a.state.tr,g=sl({state:a.state,transaction:m}),y={from:r-(p[0].length-i.length),to:o},{commands:C,chain:E,can:b}=new al({editor:n,state:g});h.handler({state:g,range:y,match:p,commands:C,chain:E,can:b})===null||!m.steps.length||(m.setMeta(c,{transform:m,from:r,to:o,text:i}),a.dispatch(m),u=!0)}),u}function tI(t){const{editor:e,rules:n}=t,r=new Qt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,c){return Bu({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&Bu({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(o,i){if(i.key!=="Enter")return!1;const{$cursor:s}=o.state.selection;return s?Bu({editor:e,from:s.pos,to:s.pos,text:`
1245
+ `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function nI(t){return typeof t=="number"}class rI{constructor(e){this.find=e.find,this.handler=e.handler}}const oI=(t,e)=>{if(Pu(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function iI(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:a,chain:d,can:u}=new al({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const g=Math.max(r,m),y=Math.min(o,m+p.content.size),C=p.textBetween(g-m,y-m,void 0,"");oI(C,i.find).forEach(b=>{if(b.index===void 0)return;const v=g+b.index+1,k=v+b[0].length,_={from:n.tr.mapping.map(v),to:n.tr.mapping.map(k)},O=i.handler({state:n,range:_,match:b,commands:a,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(O)})}),f.every(p=>p!==null)}function sI(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),c=new DragEvent("drop");return n.map(d=>new Qt({view(u){const f=h=>{var p;r=!((p=u.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(u,f)=>(i=r===u.dom.parentElement,c=f,!1),paste:(u,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,f,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i;if(!m&&!g)return;const y=f.doc.content.findDiffStart(h.doc.content),C=f.doc.content.findDiffEnd(h.doc.content);if(!nI(y)||!C||y===C.b)return;const E=h.tr,b=sl({state:h,transaction:E});if(!(!iI({editor:e,state:b,from:Math.max(y-1,0),to:C.b-1,rule:d,pasteEvent:s,dropEvent:c})||!E.steps.length))return c=new DragEvent("drop"),s=new ClipboardEvent("paste"),E}}))}function aI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class ui{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=ui.resolve(e),this.schema=XT(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Du(r.name,this.schema)};r.type==="mark"&&(!((o=Ue(Ie(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=Ie(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const c=Ie(r,"onCreate",i);c&&this.editor.on("create",c);const a=Ie(r,"onUpdate",i);a&&this.editor.on("update",a);const d=Ie(r,"onSelectionUpdate",i);d&&this.editor.on("selectionUpdate",d);const u=Ie(r,"onTransaction",i);u&&this.editor.on("transaction",u);const f=Ie(r,"onFocus",i);f&&this.editor.on("focus",f);const h=Ie(r,"onBlur",i);h&&this.editor.on("blur",h);const p=Ie(r,"onDestroy",i);p&&this.editor.on("destroy",p)})}static resolve(e){const n=ui.sort(ui.flatten(e)),r=aI(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Ie(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=Ie(r,"priority")||100,s=Ie(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Du(n.name,this.schema)},o=Ie(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=ui.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const c={name:s.name,options:s.options,storage:s.storage,editor:e,type:Du(s.name,this.schema)},a=[],d=Ie(s,"addKeyboardShortcuts",c);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>Hn.handleExit({editor:e,mark:s})),d){const g=Object.fromEntries(Object.entries(d()).map(([y,C])=>[y,()=>C({editor:e})]));u={...u,...g}}const f=ST(u);a.push(f);const h=Ie(s,"addInputRules",c);m2(s,e.options.enableInputRules)&&h&&r.push(...h());const p=Ie(s,"addPasteRules",c);m2(s,e.options.enablePasteRules)&&p&&o.push(...p());const m=Ie(s,"addProseMirrorPlugins",c);if(m){const g=m();a.push(...g)}return a}).flat();return[tI({editor:e,rules:r}),...sI({editor:e,rules:o}),...i]}get attributes(){return u2(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=ll(this.extensions);return Object.fromEntries(n.filter(r=>!!Ie(r,"addNodeView")).map(r=>{const o=this.attributes.filter(a=>a.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Ct(r.name,this.schema)},s=Ie(r,"addNodeView",i);if(!s)return[];const c=(a,d,u,f)=>{const h=Lu(a,o);return s()({editor:e,node:a,getPos:u,decorations:f,HTMLAttributes:h,extension:r})};return[r.name,c]}))}}function lI(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ru(t){return lI(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function cl(t,e){const n={...t};return Ru(t)&&Ru(e)&&Object.keys(e).forEach(r=>{Ru(e[r])?r in t?n[r]=cl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class hn{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new hn(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new hn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}}function y2(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
1246
1246
 
1247
- `,textSerializers:s={}}=n||{};let c="",a=!0;return t.nodesBetween(r,o,(d,u,f,h)=>{var p;const m=s==null?void 0:s[d.type.name];m?(d.isBlock&&!a&&(c+=i,a=!0),f&&(c+=m({node:d,pos:u,parent:f,index:h,range:e}))):d.isText?(c+=(p=d==null?void 0:d.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),a=!1):d.isBlock&&!a&&(c+=i,a=!0)}),c}function v2(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const cI=fn.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Qt({key:new Nn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),a=v2(n);return y2(r,{from:s,to:c},{textSerializers:a})}}})]}}),dI=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),uI=(t=!1)=>({commands:e})=>e.setContent("",t),fI=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(c,a)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(a)),h=d.resolve(u.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=qo(p);if(c.type.isTextblock){const{defaultType:y}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,y)}(m||m===0)&&e.lift(p,m)})}),!0},hI=t=>e=>t(e),pI=()=>({state:t,dispatch:e})=>BT(t,e),mI=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Ge(r.doc.resolve(s-1))),!0},gI=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const c=o.before(i),a=o.after(i);t.delete(c,a).scrollIntoView()}return!0}return!1},yI=t=>({tr:e,state:n,dispatch:r})=>{const o=Ct(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),d=i.after(s);e.delete(a,d).scrollIntoView()}return!0}return!1},vI=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},bI=()=>({state:t,dispatch:e})=>wT(t,e),CI=()=>({commands:t})=>t.keyboardShortcut("Enter"),EI=()=>({state:t,dispatch:e})=>PT(t,e);function dl(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Pu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function $u(t,e,n={}){return t.find(r=>r.type===e&&dl(r.attrs,n))}function SI(t,e,n={}){return!!$u(t,e,n)}function Vu(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=$u([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,c=i+1,a=s+r.node.nodeSize;for($u([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;c<t.parent.childCount&&SI([...t.parent.child(c).marks],e,n);)a+=t.parent.child(c).nodeSize,c+=1;return{from:s,to:a}}function Ur(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const _I=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=Ur(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:d,to:u}=c;if(o){const f=Vu(a,i,e);if(f&&f.from<=d&&f.to>=u){const h=Ge.create(s,f.from,f.to);n.setSelection(h)}}return!0},wI=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function Fu(t){return t instanceof Ge}function fr(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function b2(t,e=null){if(!e)return null;const n=Ye.atStart(t),r=Ye.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Ge.create(t,fr(0,o,i),fr(t.content.size,o,i)):Ge.create(t,fr(e,o,i),fr(e,o,i))}function ju(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const kI=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{ju()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!Fu(n.state.selection))return s(),!0;const c=b2(o.doc,t)||n.state.selection,a=n.state.selection.eq(c);return i&&(a||o.setSelection(c),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},AI=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),TI=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e);function C2(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function ul(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?he.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),ul("",e,n)}if(typeof t=="string"){const r=Jo.fromSchema(e);return n.slice?r.parseSlice(C2(t),n.parseOptions).content:r.parse(C2(t),n.parseOptions)}return ul("",e,n)}function II(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,d,u)=>{s===0&&(s=u)}),t.setSelection(Ye.near(t.doc.resolve(s),n))}const xI=t=>t.toString().startsWith("<"),OI=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=ul(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:c,to:a}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},d=!0,u=!0;if((xI(s)?s:[s]).forEach(h=>{h.check(),d=d?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),c===a&&u){const{parent:h}=r.doc.resolve(c);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(c-=1,a+=1)}d?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),c,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,c,a):r.insertText(e,c,a):r.replaceWith(c,a,s),n.updateSelection&&II(r,r.steps.length-1,-1)}return!0},NI=()=>({state:t,dispatch:e})=>NT(t,e),MI=()=>({state:t,dispatch:e})=>MT(t,e),LI=()=>({state:t,dispatch:e})=>AT(t,e),DI=()=>({state:t,dispatch:e})=>xT(t,e),PI=()=>({tr:t,state:e,dispatch:n})=>{try{const r=Qa(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},BI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}};function E2(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function RI(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c+=1){const a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))ju()||E2()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const $I=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=RI(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return a==null||a.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Ps(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?Ct(e,t.schema):null,c=[];t.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);c.push({node:f,from:p,to:m})});const a=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>dl(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=a}const VI=(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return Ps(n,o,e)?LT(n,r):!1},FI=()=>({state:t,dispatch:e})=>RT(t,e),jI=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return WT(r)(e,n)},zI=()=>({state:t,dispatch:e})=>DT(t,e);function fl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function S2(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const UI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Ur(t,r.schema)),o&&n.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(d,u)=>{i&&i===d.type&&n.setNodeMarkup(u,void 0,S2(d.attrs,e)),s&&d.marks.length&&d.marks.forEach(f=>{s===f.type&&n.addMark(u,u+d.nodeSize,s.create(S2(f.attrs,e)))})})}),!0):!1},HI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),WI=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),KI=()=>({state:t,dispatch:e})=>TT(t,e),YI=()=>({state:t,dispatch:e})=>OT(t,e),GI=()=>({state:t,dispatch:e})=>$T(t,e),QI=()=>({state:t,dispatch:e})=>jT(t,e),ZI=()=>({state:t,dispatch:e})=>FT(t,e);function _2(t,e,n={}){return ul(t,e,{slice:!1,parseOptions:n})}const JI=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,c=_2(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,c).setMeta("preventUpdate",!e),!0};function hl(t,e){const n=Ur(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const c=s.find(a=>a.type.name===n.name);return c?{...c.attrs}:{}}function XI(t,e){const n=new $0(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function qI(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ex(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function tx(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function zu(t){return e=>tx(e.$from,t)}function nx(t,e){const n=Vn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function rx(t,e){const n={from:0,to:t.content.size};return y2(t,n,e)}function ox(t,e){const n=Ct(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,c=>{i.push(c)});const s=i.reverse().find(c=>c.type.name===n.name);return s?{...s.attrs}:{}}function w2(t,e){const n=fl(typeof e=="string"?e:e.name,t.schema);return n==="node"?ox(t,e):n==="mark"?hl(t,e):{}}function ix(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function sx(t){const e=ix(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function ax(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,a)=>{s.push({from:c,to:a})});else{const{from:c,to:a}=n[i];if(c===void 0||a===void 0)return;s.push({from:c,to:a})}s.forEach(({from:c,to:a})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(a),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),sx(r)}function Uu(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=Vu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function pl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Hu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?Ur(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>dl(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(y,g)=>{if(!y.isText&&!y.marks.length)return;const b=Math.max(p,g),E=Math.min(m,g+y.nodeSize),C=E-b;s+=C,c.push(...y.marks.map(v=>({mark:v,from:b,to:E})))})}),s===0)return!1;const a=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>dl(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+d:a)>=s}function lx(t,e,n={}){if(!e)return Ps(t,null,n)||Hu(t,null,n);const r=fl(e,t.schema);return r==="node"?Ps(t,e,n):r==="mark"?Hu(t,e,n):!1}function k2(t,e){const{nodeExtensions:n}=ll(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ue(Ie(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function cx(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function dx(t){return t instanceof De}function A2(t,e,n){const o=t.state.doc.content.size,i=fr(e,0,o),s=fr(n,0,o),c=t.coordsAtPos(i),a=t.coordsAtPos(s,-1),d=Math.min(c.top,a.top),u=Math.max(c.bottom,a.bottom),f=Math.min(c.left,a.left),h=Math.max(c.right,a.right),p=h-f,m=u-d,b={top:d,bottom:u,left:f,right:h,width:p,height:m,x:f,y:d};return{...b,toJSON:()=>b}}function ux(t,e,n){var r;const{selection:o}=e;let i=null;if(Fu(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(c)||!c.some(a=>a.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:c,$to:a})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,a.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(y=>y.type.excludes(n));d=p&&m}return!d}),d})}const fx=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,a=Ur(t,r.schema);if(o)if(s){const d=hl(r,a);n.addStoredMark(a.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),y=Math.min(p+h.nodeSize,f);h.marks.find(b=>b.type===a)?h.marks.forEach(b=>{a===b.type&&n.addMark(m,y,a.create({...b.attrs,...e}))}):n.addMark(m,y,a.create(e))})});return ux(r,n,a)},hx=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),px=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=Ct(t,n.schema);return i.isTextblock?o().command(({commands:s})=>d2(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>d2(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},mx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=fr(t,0,r.content.size),i=De.create(r,o);e.setSelection(i)}return!0},gx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Ge.atStart(r).from,c=Ge.atEnd(r).to,a=fr(o,s,c),d=fr(i,s,c),u=Ge.create(r,a,d);e.setSelection(u)}return!0},yx=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return GT(r)(e,n)};function T2(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const vx=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:a}=i,d=o.extensionManager.attributes,u=pl(d,c.node().type.name,c.node().attrs);if(i instanceof De&&i.node.isBlock)return!c.parentOffset||!ei(s,c.pos)?!1:(r&&(t&&T2(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;if(r){const f=a.parentOffset===a.parent.content.size;i instanceof Ge&&e.deleteSelection();const h=c.depth===0?void 0:qI(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=ei(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&ei(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const y=e.mapping.map(c.before()),g=e.doc.resolve(y);c.node(-1).canReplaceWith(g.index(),g.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&T2(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},bx=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=Ct(t,n.schema),{$from:c,$to:a}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(a))return!1;const u=c.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(r){let g=he.empty;const b=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-b;O>=c.depth-3;O-=1)g=he.from(c.node(O).copy(g));const E=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,C=pl(f,c.node().type.name,c.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(C))||void 0;g=g.append(he.from(s.createAndFill(null,v)||void 0));const k=c.before(c.depth-(b-1));e.replace(k,c.after(-E),new we(g,4-b,0));let _=-1;e.doc.nodesBetween(k,e.doc.content.size,(O,L)=>{if(_>-1)return!1;O.isTextblock&&O.content.size===0&&(_=L+1)}),_>-1&&e.setSelection(Ge.near(e.doc.resolve(_))),e.scrollIntoView()}return!0}const h=a.pos===c.end()?u.contentMatchAt(0).defaultType:null,p=pl(f,u.type.name,u.attrs),m=pl(f,c.node().type.name,c.node().attrs);e.delete(c.pos,a.pos);const y=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!ei(e.doc,c.pos,2))return!1;if(r){const{selection:g,storedMarks:b}=n,{splittableMarks:E}=o.extensionManager,C=b||g.$to.parentOffset&&g.$from.marks();if(e.split(c.pos,2,y).scrollIntoView(),!C||!r)return!0;const v=C.filter(k=>E.includes(k.type.name));e.ensureMarks(v)}return!0},Wu=(t,e)=>{const n=zu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Lr(t.doc,n.pos)&&t.join(n.pos),!0},Ku=(t,e)=>{const n=zu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Lr(t.doc,r)&&t.join(r),!0};var Cx=Object.freeze({__proto__:null,blur:dI,clearContent:uI,clearNodes:fI,command:hI,createParagraphNear:pI,cut:mI,deleteCurrentNode:gI,deleteNode:yI,deleteRange:vI,deleteSelection:bI,enter:CI,exitCode:EI,extendMarkRange:_I,first:wI,focus:kI,forEach:AI,insertContent:TI,insertContentAt:OI,joinUp:NI,joinDown:MI,joinBackward:LI,joinForward:DI,joinItemBackward:PI,joinItemForward:BI,keyboardShortcut:$I,lift:VI,liftEmptyBlock:FI,liftListItem:jI,newlineInCode:zI,resetAttributes:UI,scrollIntoView:HI,selectAll:WI,selectNodeBackward:KI,selectNodeForward:YI,selectParentNode:GI,selectTextblockEnd:QI,selectTextblockStart:ZI,setContent:JI,setMark:fx,setMeta:hx,setNode:px,setNodeSelection:mx,setTextSelection:gx,sinkListItem:yx,splitBlock:vx,splitListItem:bx,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:a,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Ct(t,s.schema),m=Ct(e,s.schema),{selection:y,storedMarks:g}=s,{$from:b,$to:E}=y,C=b.blockRange(E),v=g||y.$to.parentOffset&&y.$from.marks();if(!C)return!1;const k=zu(_=>k2(_.type.name,f))(y);if(C.depth>=1&&k&&C.depth-k.depth<=1){if(k.node.type===p)return d.liftListItem(m);if(k2(k.node.type.name,f)&&p.validContent(k.node.content)&&c)return a().command(()=>(i.setNodeMarkup(k.pos,p),!0)).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run()}return!n||!v||!c?a().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run():a().command(()=>{const _=u().wrapInList(p,r),O=v.filter(L=>h.includes(L.type.name));return i.ensureMarks(O),_?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=Ur(t,r.schema);return Hu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=Ct(t,r.schema),s=Ct(e,r.schema);return Ps(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=Ct(t,n.schema);return Ps(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let a=c.steps.length-1;a>=0;a-=1)s.step(c.steps[a].invert(c.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,a=Ur(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(g=>g.type===a))===null||i===void 0?void 0:i.attrs,y=Vu(d,a,m);y&&(h=y.from,p=y.to),n.removeMark(h,p,a)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,a)});return n.removeStoredMark(a),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Ur(t,r.schema)),o&&n.selection.ranges.forEach(a=>{const d=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(d,u,(f,h)=>{i&&i===f.type&&n.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,d),y=Math.min(h+f.nodeSize,u);n.addMark(m,y,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return zT(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return UT(o,e)(n,r)}});const Ex=fn.create({name:"commands",addCommands(){return{...Cx}}}),Sx=fn.create({name:"editable",addProseMirrorPlugins(){return[new Qt({key:new Nn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),_x=fn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Qt({key:new Nn("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),wx=fn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:a,doc:d}=c,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock?c.doc.resolve(h-1):f,y=m.parent.type.spec.isolating,g=f.pos-f.parentOffset,b=y&&m.parent.childCount===1?g===f.pos:Ye.atStart(d).from===h;return!u||!b||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ju()||E2()?i:o},addProseMirrorPlugins(){return[new Qt({key:new Nn("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,c=Ye.atStart(e.doc).from,a=Ye.atEnd(e.doc).to;if(o||!(i===c&&s===a)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,h=sl({state:n,transaction:f}),{commands:p}=new al({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),kx=fn.create({name:"tabindex",addProseMirrorPlugins(){return[new Qt({key:new Nn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Ax=Object.freeze({__proto__:null,ClipboardTextSerializer:cI,Commands:Ex,Editable:Sx,FocusEvents:_x,Keymap:wx,Tabindex:kx});const Tx=`.ProseMirror {
1247
+ `,textSerializers:s={}}=n||{};let c="",a=!0;return t.nodesBetween(r,o,(d,u,f,h)=>{var p;const m=s==null?void 0:s[d.type.name];m?(d.isBlock&&!a&&(c+=i,a=!0),f&&(c+=m({node:d,pos:u,parent:f,index:h,range:e}))):d.isText?(c+=(p=d==null?void 0:d.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),a=!1):d.isBlock&&!a&&(c+=i,a=!0)}),c}function v2(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const cI=hn.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Qt({key:new Nn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),a=v2(n);return y2(r,{from:s,to:c},{textSerializers:a})}}})]}}),dI=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),uI=(t=!1)=>({commands:e})=>e.setContent("",t),fI=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:o}=r;return n&&o.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(c,a)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(a)),h=d.resolve(u.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=qo(p);if(c.type.isTextblock){const{defaultType:g}=f.parent.contentMatchAt(f.index());e.setNodeMarkup(p.start,g)}(m||m===0)&&e.lift(p,m)})}),!0},hI=t=>e=>t(e),pI=()=>({state:t,dispatch:e})=>BT(t,e),mI=(t,e)=>({editor:n,tr:r})=>{const{state:o}=n,i=o.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,i.content),r.setSelection(new Ge(r.doc.resolve(s-1))),!0},gI=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===r.type){if(e){const c=o.before(i),a=o.after(i);t.delete(c,a).scrollIntoView()}return!0}return!1},yI=t=>({tr:e,state:n,dispatch:r})=>{const o=Ct(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const a=i.before(s),d=i.after(s);e.delete(a,d).scrollIntoView()}return!0}return!1},vI=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},bI=()=>({state:t,dispatch:e})=>wT(t,e),CI=()=>({commands:t})=>t.keyboardShortcut("Enter"),EI=()=>({state:t,dispatch:e})=>PT(t,e);function dl(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Pu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function $u(t,e,n={}){return t.find(r=>r.type===e&&dl(r.attrs,n))}function SI(t,e,n={}){return!!$u(t,e,n)}function Vu(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=$u([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,c=i+1,a=s+r.node.nodeSize;for($u([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;c<t.parent.childCount&&SI([...t.parent.child(c).marks],e,n);)a+=t.parent.child(c).nodeSize,c+=1;return{from:s,to:a}}function Ur(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const _I=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=Ur(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:d,to:u}=c;if(o){const f=Vu(a,i,e);if(f&&f.from<=d&&f.to>=u){const h=Ge.create(s,f.from,f.to);n.setSelection(h)}}return!0},wI=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function Fu(t){return t instanceof Ge}function fr(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function b2(t,e=null){if(!e)return null;const n=Ye.atStart(t),r=Ye.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Ge.create(t,fr(0,o,i),fr(t.content.size,o,i)):Ge.create(t,fr(e,o,i),fr(e,o,i))}function ju(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const kI=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{ju()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!Fu(n.state.selection))return s(),!0;const c=b2(o.doc,t)||n.state.selection,a=n.state.selection.eq(c);return i&&(a||o.setSelection(c),a&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},AI=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),TI=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e);function C2(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function ul(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?he.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),ul("",e,n)}if(typeof t=="string"){const r=Jo.fromSchema(e);return n.slice?r.parseSlice(C2(t),n.parseOptions).content:r.parse(C2(t),n.parseOptions)}return ul("",e,n)}function II(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,d,u)=>{s===0&&(s=u)}),t.setSelection(Ye.near(t.doc.resolve(s),n))}const xI=t=>t.toString().startsWith("<"),OI=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=ul(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:c,to:a}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},d=!0,u=!0;if((xI(s)?s:[s]).forEach(h=>{h.check(),d=d?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),c===a&&u){const{parent:h}=r.doc.resolve(c);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(c-=1,a+=1)}d?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),c,a):typeof e=="object"&&e&&e.text?r.insertText(e.text,c,a):r.insertText(e,c,a):r.replaceWith(c,a,s),n.updateSelection&&II(r,r.steps.length-1,-1)}return!0},NI=()=>({state:t,dispatch:e})=>NT(t,e),MI=()=>({state:t,dispatch:e})=>MT(t,e),LI=()=>({state:t,dispatch:e})=>AT(t,e),DI=()=>({state:t,dispatch:e})=>xT(t,e),PI=()=>({tr:t,state:e,dispatch:n})=>{try{const r=Qa(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},BI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=Qa(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}};function E2(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function RI(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,o,i,s;for(let c=0;c<e.length-1;c+=1){const a=e[c];if(/^(cmd|meta|m)$/i.test(a))s=!0;else if(/^a(lt)?$/i.test(a))r=!0;else if(/^(c|ctrl|control)$/i.test(a))o=!0;else if(/^s(hift)?$/i.test(a))i=!0;else if(/^mod$/i.test(a))ju()||E2()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${a}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const $I=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=RI(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),a=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return a==null||a.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Ps(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?Ct(e,t.schema):null,c=[];t.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);c.push({node:f,from:p,to:m})});const a=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>dl(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=a}const VI=(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return Ps(n,o,e)?LT(n,r):!1},FI=()=>({state:t,dispatch:e})=>RT(t,e),jI=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return WT(r)(e,n)},zI=()=>({state:t,dispatch:e})=>DT(t,e);function fl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function S2(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const UI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Ur(t,r.schema)),o&&n.selection.ranges.forEach(a=>{r.doc.nodesBetween(a.$from.pos,a.$to.pos,(d,u)=>{i&&i===d.type&&n.setNodeMarkup(u,void 0,S2(d.attrs,e)),s&&d.marks.length&&d.marks.forEach(f=>{s===f.type&&n.addMark(u,u+d.nodeSize,s.create(S2(f.attrs,e)))})})}),!0):!1},HI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),WI=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),KI=()=>({state:t,dispatch:e})=>TT(t,e),YI=()=>({state:t,dispatch:e})=>OT(t,e),GI=()=>({state:t,dispatch:e})=>$T(t,e),QI=()=>({state:t,dispatch:e})=>jT(t,e),ZI=()=>({state:t,dispatch:e})=>FT(t,e);function _2(t,e,n={}){return ul(t,e,{slice:!1,parseOptions:n})}const JI=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,c=_2(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,c).setMeta("preventUpdate",!e),!0};function hl(t,e){const n=Ur(e,t.schema),{from:r,to:o,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,o,a=>{s.push(...a.marks)});const c=s.find(a=>a.type.name===n.name);return c?{...c.attrs}:{}}function XI(t,e){const n=new $0(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function qI(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ex(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function tx(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function zu(t){return e=>tx(e.$from,t)}function nx(t,e){const n=Vn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function rx(t,e){const n={from:0,to:t.content.size};return y2(t,n,e)}function ox(t,e){const n=Ct(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,c=>{i.push(c)});const s=i.reverse().find(c=>c.type.name===n.name);return s?{...s.attrs}:{}}function w2(t,e){const n=fl(typeof e=="string"?e:e.name,t.schema);return n==="node"?ox(t,e):n==="mark"?hl(t,e):{}}function ix(t,e=JSON.stringify){const n={};return t.filter(r=>{const o=e(r);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function sx(t){const e=ix(t);return e.length===1?e:e.filter((n,r)=>!e.filter((i,s)=>s!==r).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function ax(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,a)=>{s.push({from:c,to:a})});else{const{from:c,to:a}=n[i];if(c===void 0||a===void 0)return;s.push({from:c,to:a})}s.forEach(({from:c,to:a})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(a),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),sx(r)}function Uu(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=Vu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function pl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Hu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?Ur(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>dl(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(g,y)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(p,y),E=Math.min(m,y+g.nodeSize),b=E-C;s+=b,c.push(...g.marks.map(v=>({mark:v,from:C,to:E})))})}),s===0)return!1;const a=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>dl(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(a>0?a+d:a)>=s}function lx(t,e,n={}){if(!e)return Ps(t,null,n)||Hu(t,null,n);const r=fl(e,t.schema);return r==="node"?Ps(t,e,n):r==="mark"?Hu(t,e,n):!1}function k2(t,e){const{nodeExtensions:n}=ll(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=Ue(Ie(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function cx(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function dx(t){return t instanceof De}function A2(t,e,n){const o=t.state.doc.content.size,i=fr(e,0,o),s=fr(n,0,o),c=t.coordsAtPos(i),a=t.coordsAtPos(s,-1),d=Math.min(c.top,a.top),u=Math.max(c.bottom,a.bottom),f=Math.min(c.left,a.left),h=Math.max(c.right,a.right),p=h-f,m=u-d,C={top:d,bottom:u,left:f,right:h,width:p,height:m,x:f,y:d};return{...C,toJSON:()=>C}}function ux(t,e,n){var r;const{selection:o}=e;let i=null;if(Fu(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(c)||!c.some(a=>a.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:c,$to:a})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,a.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));d=p&&m}return!d}),d})}const fx=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,a=Ur(t,r.schema);if(o)if(s){const d=hl(r,a);n.addStoredMark(a.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(C=>C.type===a)?h.marks.forEach(C=>{a===C.type&&n.addMark(m,g,a.create({...C.attrs,...e}))}):n.addMark(m,g,a.create(e))})});return ux(r,n,a)},hx=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),px=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=Ct(t,n.schema);return i.isTextblock?o().command(({commands:s})=>d2(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>d2(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},mx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=fr(t,0,r.content.size),i=De.create(r,o);e.setSelection(i)}return!0},gx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Ge.atStart(r).from,c=Ge.atEnd(r).to,a=fr(o,s,c),d=fr(i,s,c),u=Ge.create(r,a,d);e.setSelection(u)}return!0},yx=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return GT(r)(e,n)};function T2(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const vx=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:a}=i,d=o.extensionManager.attributes,u=pl(d,c.node().type.name,c.node().attrs);if(i instanceof De&&i.node.isBlock)return!c.parentOffset||!ei(s,c.pos)?!1:(r&&(t&&T2(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;if(r){const f=a.parentOffset===a.parent.content.size;i instanceof Ge&&e.deleteSelection();const h=c.depth===0?void 0:qI(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=ei(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&ei(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),y=e.doc.resolve(g);c.node(-1).canReplaceWith(y.index(),y.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&T2(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},bx=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=Ct(t,n.schema),{$from:c,$to:a}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(a))return!1;const u=c.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(r){let y=he.empty;const C=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-C;O>=c.depth-3;O-=1)y=he.from(c.node(O).copy(y));const E=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,b=pl(f,c.node().type.name,c.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(b))||void 0;y=y.append(he.from(s.createAndFill(null,v)||void 0));const k=c.before(c.depth-(C-1));e.replace(k,c.after(-E),new we(y,4-C,0));let _=-1;e.doc.nodesBetween(k,e.doc.content.size,(O,L)=>{if(_>-1)return!1;O.isTextblock&&O.content.size===0&&(_=L+1)}),_>-1&&e.setSelection(Ge.near(e.doc.resolve(_))),e.scrollIntoView()}return!0}const h=a.pos===c.end()?u.contentMatchAt(0).defaultType:null,p=pl(f,u.type.name,u.attrs),m=pl(f,c.node().type.name,c.node().attrs);e.delete(c.pos,a.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!ei(e.doc,c.pos,2))return!1;if(r){const{selection:y,storedMarks:C}=n,{splittableMarks:E}=o.extensionManager,b=C||y.$to.parentOffset&&y.$from.marks();if(e.split(c.pos,2,g).scrollIntoView(),!b||!r)return!0;const v=b.filter(k=>E.includes(k.type.name));e.ensureMarks(v)}return!0},Wu=(t,e)=>{const n=zu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Lr(t.doc,n.pos)&&t.join(n.pos),!0},Ku=(t,e)=>{const n=zu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&Lr(t.doc,r)&&t.join(r),!0};var Cx=Object.freeze({__proto__:null,blur:dI,clearContent:uI,clearNodes:fI,command:hI,createParagraphNear:pI,cut:mI,deleteCurrentNode:gI,deleteNode:yI,deleteRange:vI,deleteSelection:bI,enter:CI,exitCode:EI,extendMarkRange:_I,first:wI,focus:kI,forEach:AI,insertContent:TI,insertContentAt:OI,joinUp:NI,joinDown:MI,joinBackward:LI,joinForward:DI,joinItemBackward:PI,joinItemForward:BI,keyboardShortcut:$I,lift:VI,liftEmptyBlock:FI,liftListItem:jI,newlineInCode:zI,resetAttributes:UI,scrollIntoView:HI,selectAll:WI,selectNodeBackward:KI,selectNodeForward:YI,selectParentNode:GI,selectTextblockEnd:QI,selectTextblockStart:ZI,setContent:JI,setMark:fx,setMeta:hx,setNode:px,setNodeSelection:mx,setTextSelection:gx,sinkListItem:yx,splitBlock:vx,splitListItem:bx,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:a,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Ct(t,s.schema),m=Ct(e,s.schema),{selection:g,storedMarks:y}=s,{$from:C,$to:E}=g,b=C.blockRange(E),v=y||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const k=zu(_=>k2(_.type.name,f))(g);if(b.depth>=1&&k&&b.depth-k.depth<=1){if(k.node.type===p)return d.liftListItem(m);if(k2(k.node.type.name,f)&&p.validContent(k.node.content)&&c)return a().command(()=>(i.setNodeMarkup(k.pos,p),!0)).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run()}return!n||!v||!c?a().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run():a().command(()=>{const _=u().wrapInList(p,r),O=v.filter(L=>h.includes(L.type.name));return i.ensureMarks(O),_?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Wu(i,p)).command(()=>Ku(i,p)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=Ur(t,r.schema);return Hu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=Ct(t,r.schema),s=Ct(e,r.schema);return Ps(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=Ct(t,n.schema);return Ps(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let a=c.steps.length-1;a>=0;a-=1)s.step(c.steps[a].invert(c.docs[a]));if(i.text){const a=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,a))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,a=Ur(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(y=>y.type===a))===null||i===void 0?void 0:i.attrs,g=Vu(d,a,m);g&&(h=g.from,p=g.to),n.removeMark(h,p,a)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,a)});return n.removeStoredMark(a),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=fl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Ur(t,r.schema)),o&&n.selection.ranges.forEach(a=>{const d=a.$from.pos,u=a.$to.pos;r.doc.nodesBetween(d,u,(f,h)=>{i&&i===f.type&&n.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,d),g=Math.min(h+f.nodeSize,u);n.addMark(m,g,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return zT(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return UT(o,e)(n,r)}});const Ex=hn.create({name:"commands",addCommands(){return{...Cx}}}),Sx=hn.create({name:"editable",addProseMirrorPlugins(){return[new Qt({key:new Nn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),_x=hn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Qt({key:new Nn("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),wx=hn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:a,doc:d}=c,{empty:u,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,C=g&&m.parent.childCount===1?y===f.pos:Ye.atStart(d).from===h;return!u||!C||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ju()||E2()?i:o},addProseMirrorPlugins(){return[new Qt({key:new Nn("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,c=Ye.atStart(e.doc).from,a=Ye.atEnd(e.doc).to;if(o||!(i===c&&s===a)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,h=sl({state:n,transaction:f}),{commands:p}=new al({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),kx=hn.create({name:"tabindex",addProseMirrorPlugins(){return[new Qt({key:new Nn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var Ax=Object.freeze({__proto__:null,ClipboardTextSerializer:cI,Commands:Ex,Editable:Sx,FocusEvents:_x,Keymap:wx,Tabindex:kx});const Tx=`.ProseMirror {
1248
1248
  position: relative;
1249
1249
  }
1250
1250
 
@@ -1320,11 +1320,11 @@ img.ProseMirror-separator {
1320
1320
  opacity: 0
1321
1321
  }`;function Ix(t,e,n){const r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(r!==null)return r;const o=document.createElement("style");return e&&o.setAttribute("nonce",e),o.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),o.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(o),o}let xx=class extends QT{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Ix(Tx,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const r=f2(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],o=this.state.reconfigure({plugins:r});this.view.updateState(o)}unregisterPlugin(e){if(this.isDestroyed)return;const n=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(o=>!o.key.startsWith(n))});this.view.updateState(r)}createExtensionManager(){const n=[...this.options.enableCoreExtensions?Object.values(Ax):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r==null?void 0:r.type));this.extensionManager=new ui(n,this)}createCommandManager(){this.commandManager=new al({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=_2(this.options.content,this.schema,this.options.parseOptions),n=b2(e,this.options.autofocus);this.view=new hT(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:oi.create({doc:e,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const o=this.view.dom;o.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var c;return(c=this.capturedTransaction)===null||c===void 0?void 0:c.step(s)});return}const n=this.state.apply(e),r=!this.state.selection.eq(n.selection);this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const o=e.getMeta("focus"),i=e.getMeta("blur");o&&this.emit("focus",{editor:this,event:o.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return w2(this.state,e)}isActive(e,n){const r=typeof e=="string"?e:null,o=typeof e=="string"?n:e;return lx(this.state,r,o)}getJSON(){return this.state.doc.toJSON()}getHTML(){return nx(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
1322
1322
 
1323
- `,textSerializers:r={}}=e||{};return rx(this.state.doc,{blockSeparator:n,textSerializers:{...v2(this.schema),...r}})}get isEmpty(){return cx(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function ml(t){return new g2({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ue(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],c=r[0];if(s){const a=c.search(/\S/),d=n.from+c.indexOf(s),u=d+s.length;if(Uu(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(y=>y===t.type&&y!==p.mark.type)).filter(p=>p.to>d).length)return null;u<n.to&&i.delete(u,n.to),d>n.from&&i.delete(n.from+a,d);const h=n.from+a+s.length;i.addMark(n.from+a,h,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function gl(t){return new g2({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Ue(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),d=a&&eu(a,t.type,i);if(!d)return null;if(s.wrap(a,d),t.keepMarks&&t.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=t.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const y=m.filter(g=>p.includes(g.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Lr(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&s.join(n.from-1)}})}class Hn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Hn(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new Hn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(d=>(d==null?void 0:d.type.name)===n.name))return!1;const a=s.find(d=>(d==null?void 0:d.type.name)===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let hr=class gh{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new gh(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new gh(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}};function Bs(t){return new rI({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=Ue(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,c=r[r.length-1],a=r[0];let d=n.to;if(c){const u=a.search(/\S/),f=n.from+a.indexOf(c),h=f+c.length;if(Uu(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(g=>g===t.type&&g!==m.mark.type)).filter(m=>m.to>f).length)return null;h<n.to&&s.delete(h,n.to),f>n.from&&s.delete(n.from+u,f),d=n.from+u+c.length,s.addMark(n.from+u,d,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var jt="top",tn="bottom",nn="right",zt="left",Rs="auto",fi=[jt,tn,nn,zt],ko="start",hi="end",I2="clippingParents",Yu="viewport",pi="popper",x2="reference",Gu=fi.reduce(function(t,e){return t.concat([e+"-"+ko,e+"-"+hi])},[]),Qu=[].concat(fi,[Rs]).reduce(function(t,e){return t.concat([e,e+"-"+ko,e+"-"+hi])},[]),O2="beforeRead",N2="read",M2="afterRead",L2="beforeMain",D2="main",P2="afterMain",B2="beforeWrite",R2="write",$2="afterWrite",yl=[O2,N2,M2,L2,D2,P2,B2,R2,$2];function Wn(t){return t?(t.nodeName||"").toLowerCase():null}function rn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ao(t){var e=rn(t).Element;return t instanceof e||t instanceof Element}function on(t){var e=rn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zu(t){if(typeof ShadowRoot>"u")return!1;var e=rn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ox(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!on(i)||!Wn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function Nx(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=s.reduce(function(a,d){return a[d]="",a},{});!on(o)||!Wn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const vl={name:"applyStyles",enabled:!0,phase:"write",fn:Ox,effect:Nx,requires:["computeStyles"]};function Dn(t){return t.split("-")[0]}var To=Math.max,bl=Math.min,mi=Math.round;function Ju(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function V2(){return!/^((?!chrome|android).)*safari/i.test(Ju())}function gi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&on(t)&&(o=t.offsetWidth>0&&mi(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&mi(r.height)/t.offsetHeight||1);var s=Ao(t)?rn(t):window,c=s.visualViewport,a=!V2()&&n,d=(r.left+(a&&c?c.offsetLeft:0))/o,u=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function Xu(t){var e=gi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function F2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Zu(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pn(t){return rn(t).getComputedStyle(t)}function Mx(t){return["table","td","th"].indexOf(Wn(t))>=0}function Hr(t){return((Ao(t)?t.ownerDocument:t.document)||window.document).documentElement}function Cl(t){return Wn(t)==="html"?t:t.assignedSlot||t.parentNode||(Zu(t)?t.host:null)||Hr(t)}function j2(t){return!on(t)||Pn(t).position==="fixed"?null:t.offsetParent}function Lx(t){var e=/firefox/i.test(Ju()),n=/Trident/i.test(Ju());if(n&&on(t)){var r=Pn(t);if(r.position==="fixed")return null}var o=Cl(t);for(Zu(o)&&(o=o.host);on(o)&&["html","body"].indexOf(Wn(o))<0;){var i=Pn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $s(t){for(var e=rn(t),n=j2(t);n&&Mx(n)&&Pn(n).position==="static";)n=j2(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&Pn(n).position==="static")?e:n||Lx(t)||e}function qu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vs(t,e,n){return To(t,bl(e,n))}function Dx(t,e,n){var r=Vs(t,e,n);return r>n?n:r}function z2(){return{top:0,right:0,bottom:0,left:0}}function U2(t){return Object.assign({},z2(),t)}function H2(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Px=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,U2(typeof e!="number"?e:H2(e,fi))};function Bx(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Dn(n.placement),a=qu(c),d=[zt,nn].indexOf(c)>=0,u=d?"height":"width";if(!(!i||!s)){var f=Px(o.padding,n),h=Xu(i),p=a==="y"?jt:zt,m=a==="y"?tn:nn,y=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],g=s[a]-n.rects.reference[a],b=$s(i),E=b?a==="y"?b.clientHeight||0:b.clientWidth||0:0,C=y/2-g/2,v=f[p],k=E-h[u]-f[m],_=E/2-h[u]/2+C,O=Vs(v,_,k),L=a;n.modifiersData[r]=(e={},e[L]=O,e.centerOffset=O-_,e)}}function Rx(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(on(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!F2(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const W2={name:"arrow",enabled:!0,phase:"main",fn:Bx,effect:Rx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yi(t){return t.split("-")[1]}var $x={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vx(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(r*o)/o||0}}function K2(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,y=m===void 0?0:m,g=typeof u=="function"?u({x:p,y}):{x:p,y};p=g.x,y=g.y;var b=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),C=zt,v=jt,k=window;if(d){var _=$s(n),O="clientHeight",L="clientWidth";if(_===rn(n)&&(_=Hr(n),Pn(_).position!=="static"&&c==="absolute"&&(O="scrollHeight",L="scrollWidth")),_=_,o===jt||(o===zt||o===nn)&&i===hi){v=tn;var N=f&&_===k&&k.visualViewport?k.visualViewport.height:_[O];y-=N-r.height,y*=a?1:-1}if(o===zt||(o===jt||o===tn)&&i===hi){C=nn;var j=f&&_===k&&k.visualViewport?k.visualViewport.width:_[L];p-=j-r.width,p*=a?1:-1}}var V=Object.assign({position:c},d&&$x),P=u===!0?Vx({x:p,y},rn(n)):{x:p,y};if(p=P.x,y=P.y,a){var z;return Object.assign({},V,(z={},z[v]=E?"0":"",z[C]=b?"0":"",z.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",z))}return Object.assign({},V,(e={},e[v]=E?y+"px":"",e[C]=b?p+"px":"",e.transform="",e))}function Fx(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,a=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var d=Pn(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return d.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
1323
+ `,textSerializers:r={}}=e||{};return rx(this.state.doc,{blockSeparator:n,textSerializers:{...v2(this.schema),...r}})}get isEmpty(){return cx(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}};function ml(t){return new g2({find:t.find,handler:({state:e,range:n,match:r})=>{const o=Ue(t.getAttributes,void 0,r);if(o===!1||o===null)return null;const{tr:i}=e,s=r[r.length-1],c=r[0];if(s){const a=c.search(/\S/),d=n.from+c.indexOf(s),u=d+s.length;if(Uu(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(g=>g===t.type&&g!==p.mark.type)).filter(p=>p.to>d).length)return null;u<n.to&&i.delete(u,n.to),d>n.from&&i.delete(n.from+a,d);const h=n.from+a+s.length;i.addMark(n.from+a,h,t.type.create(o||{})),i.removeStoredMark(t.type)}}})}function gl(t){return new g2({find:t.find,handler:({state:e,range:n,match:r,chain:o})=>{const i=Ue(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),a=s.doc.resolve(n.from).blockRange(),d=a&&eu(a,t.type,i);if(!d)return null;if(s.wrap(a,d),t.keepMarks&&t.editor){const{selection:f,storedMarks:h}=e,{splittableMarks:p}=t.editor.extensionManager,m=h||f.$to.parentOffset&&f.$from.marks();if(m){const g=m.filter(y=>p.includes(y.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const f=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(f,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Lr(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&s.join(n.from-1)}})}class Hn{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Hn(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new Hn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,o=e.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!!!s.find(d=>(d==null?void 0:d.type.name)===n.name))return!1;const a=s.find(d=>(d==null?void 0:d.type.name)===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}}let hr=class gh{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Ue(Ie(this,"addOptions",{name:this.name}))),this.storage=Ue(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new gh(e)}configure(e={}){const n=this.extend();return n.options=cl(this.options,e),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new gh(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Ue(Ie(n,"addOptions",{name:n.name})),n.storage=Ue(Ie(n,"addStorage",{name:n.name,options:n.options})),n}};function Bs(t){return new rI({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:o})=>{const i=Ue(t.getAttributes,void 0,r,o);if(i===!1||i===null)return null;const{tr:s}=e,c=r[r.length-1],a=r[0];let d=n.to;if(c){const u=a.search(/\S/),f=n.from+a.indexOf(c),h=f+c.length;if(Uu(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(y=>y===t.type&&y!==m.mark.type)).filter(m=>m.to>f).length)return null;h<n.to&&s.delete(h,n.to),f>n.from&&s.delete(n.from+u,f),d=n.from+u+c.length,s.addMark(n.from+u,d,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var jt="top",tn="bottom",nn="right",zt="left",Rs="auto",fi=[jt,tn,nn,zt],ko="start",hi="end",I2="clippingParents",Yu="viewport",pi="popper",x2="reference",Gu=fi.reduce(function(t,e){return t.concat([e+"-"+ko,e+"-"+hi])},[]),Qu=[].concat(fi,[Rs]).reduce(function(t,e){return t.concat([e,e+"-"+ko,e+"-"+hi])},[]),O2="beforeRead",N2="read",M2="afterRead",L2="beforeMain",D2="main",P2="afterMain",B2="beforeWrite",R2="write",$2="afterWrite",yl=[O2,N2,M2,L2,D2,P2,B2,R2,$2];function Wn(t){return t?(t.nodeName||"").toLowerCase():null}function rn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ao(t){var e=rn(t).Element;return t instanceof e||t instanceof Element}function on(t){var e=rn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Zu(t){if(typeof ShadowRoot>"u")return!1;var e=rn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Ox(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!on(i)||!Wn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(s){var c=o[s];c===!1?i.removeAttribute(s):i.setAttribute(s,c===!0?"":c)}))})}function Nx(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=s.reduce(function(a,d){return a[d]="",a},{});!on(o)||!Wn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const vl={name:"applyStyles",enabled:!0,phase:"write",fn:Ox,effect:Nx,requires:["computeStyles"]};function Dn(t){return t.split("-")[0]}var To=Math.max,bl=Math.min,mi=Math.round;function Ju(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function V2(){return!/^((?!chrome|android).)*safari/i.test(Ju())}function gi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&on(t)&&(o=t.offsetWidth>0&&mi(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&mi(r.height)/t.offsetHeight||1);var s=Ao(t)?rn(t):window,c=s.visualViewport,a=!V2()&&n,d=(r.left+(a&&c?c.offsetLeft:0))/o,u=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:u,right:d+f,bottom:u+h,left:d,x:d,y:u}}function Xu(t){var e=gi(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function F2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Zu(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pn(t){return rn(t).getComputedStyle(t)}function Mx(t){return["table","td","th"].indexOf(Wn(t))>=0}function Hr(t){return((Ao(t)?t.ownerDocument:t.document)||window.document).documentElement}function Cl(t){return Wn(t)==="html"?t:t.assignedSlot||t.parentNode||(Zu(t)?t.host:null)||Hr(t)}function j2(t){return!on(t)||Pn(t).position==="fixed"?null:t.offsetParent}function Lx(t){var e=/firefox/i.test(Ju()),n=/Trident/i.test(Ju());if(n&&on(t)){var r=Pn(t);if(r.position==="fixed")return null}var o=Cl(t);for(Zu(o)&&(o=o.host);on(o)&&["html","body"].indexOf(Wn(o))<0;){var i=Pn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function $s(t){for(var e=rn(t),n=j2(t);n&&Mx(n)&&Pn(n).position==="static";)n=j2(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&Pn(n).position==="static")?e:n||Lx(t)||e}function qu(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vs(t,e,n){return To(t,bl(e,n))}function Dx(t,e,n){var r=Vs(t,e,n);return r>n?n:r}function z2(){return{top:0,right:0,bottom:0,left:0}}function U2(t){return Object.assign({},z2(),t)}function H2(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Px=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,U2(typeof e!="number"?e:H2(e,fi))};function Bx(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Dn(n.placement),a=qu(c),d=[zt,nn].indexOf(c)>=0,u=d?"height":"width";if(!(!i||!s)){var f=Px(o.padding,n),h=Xu(i),p=a==="y"?jt:zt,m=a==="y"?tn:nn,g=n.rects.reference[u]+n.rects.reference[a]-s[a]-n.rects.popper[u],y=s[a]-n.rects.reference[a],C=$s(i),E=C?a==="y"?C.clientHeight||0:C.clientWidth||0:0,b=g/2-y/2,v=f[p],k=E-h[u]-f[m],_=E/2-h[u]/2+b,O=Vs(v,_,k),L=a;n.modifiersData[r]=(e={},e[L]=O,e.centerOffset=O-_,e)}}function Rx(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(on(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!F2(e.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=o}}const W2={name:"arrow",enabled:!0,phase:"main",fn:Bx,effect:Rx,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yi(t){return t.split("-")[1]}var $x={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vx(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:mi(n*o)/o||0,y:mi(r*o)/o||0}}function K2(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var C=s.hasOwnProperty("x"),E=s.hasOwnProperty("y"),b=zt,v=jt,k=window;if(d){var _=$s(n),O="clientHeight",L="clientWidth";if(_===rn(n)&&(_=Hr(n),Pn(_).position!=="static"&&c==="absolute"&&(O="scrollHeight",L="scrollWidth")),_=_,o===jt||(o===zt||o===nn)&&i===hi){v=tn;var N=f&&_===k&&k.visualViewport?k.visualViewport.height:_[O];g-=N-r.height,g*=a?1:-1}if(o===zt||(o===jt||o===tn)&&i===hi){b=nn;var j=f&&_===k&&k.visualViewport?k.visualViewport.width:_[L];p-=j-r.width,p*=a?1:-1}}var V=Object.assign({position:c},d&&$x),P=u===!0?Vx({x:p,y:g},rn(n)):{x:p,y:g};if(p=P.x,g=P.y,a){var z;return Object.assign({},V,(z={},z[v]=E?"0":"",z[b]=C?"0":"",z.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",z))}return Object.assign({},V,(e={},e[v]=E?g+"px":"",e[b]=C?p+"px":"",e.transform="",e))}function Fx(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,c=n.roundOffsets,a=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var d=Pn(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return d.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
1324
1324
 
1325
1325
  `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
1326
1326
 
1327
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Dn(e.placement),variation:yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,K2(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,K2(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ef={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fx,data:{}};var El={passive:!0};function jx(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,a=rn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,El)}),c&&a.addEventListener("resize",n.update,El),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,El)}),c&&a.removeEventListener("resize",n.update,El)}}const tf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jx,data:{}};var zx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sl(t){return t.replace(/left|right|bottom|top/g,function(e){return zx[e]})}var Ux={start:"end",end:"start"};function Y2(t){return t.replace(/start|end/g,function(e){return Ux[e]})}function nf(t){var e=rn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rf(t){return gi(Hr(t)).left+nf(t).scrollLeft}function Hx(t,e){var n=rn(t),r=Hr(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var d=V2();(d||!d&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+rf(t),y:a}}function Wx(t){var e,n=Hr(t),r=nf(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=To(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=To(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+rf(t),a=-r.scrollTop;return Pn(o||n).direction==="rtl"&&(c+=To(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function of(t){var e=Pn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G2(t){return["html","body","#document"].indexOf(Wn(t))>=0?t.ownerDocument.body:on(t)&&of(t)?t:G2(Cl(t))}function Fs(t,e){var n;e===void 0&&(e=[]);var r=G2(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=rn(r),s=o?[i].concat(i.visualViewport||[],of(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(Fs(Cl(s)))}function sf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kx(t,e){var n=gi(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Q2(t,e,n){return e===Yu?sf(Hx(t,n)):Ao(e)?Kx(e,n):sf(Wx(Hr(t)))}function Yx(t){var e=Fs(Cl(t)),n=["absolute","fixed"].indexOf(Pn(t).position)>=0,r=n&&on(t)?$s(t):t;return Ao(r)?e.filter(function(o){return Ao(o)&&F2(o,r)&&Wn(o)!=="body"}):[]}function Gx(t,e,n,r){var o=e==="clippingParents"?Yx(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,d){var u=Q2(t,d,r);return a.top=To(u.top,a.top),a.right=bl(u.right,a.right),a.bottom=bl(u.bottom,a.bottom),a.left=To(u.left,a.left),a},Q2(t,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Z2(t){var e=t.reference,n=t.element,r=t.placement,o=r?Dn(r):null,i=r?yi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case jt:a={x:s,y:e.y-n.height};break;case tn:a={x:s,y:e.y+e.height};break;case nn:a={x:e.x+e.width,y:c};break;case zt:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var d=o?qu(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case ko:a[d]=a[d]-(e[u]/2-n[u]/2);break;case hi:a[d]=a[d]+(e[u]/2-n[u]/2);break}}return a}function vi(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,c=n.boundary,a=c===void 0?I2:c,d=n.rootBoundary,u=d===void 0?Yu:d,f=n.elementContext,h=f===void 0?pi:f,p=n.altBoundary,m=p===void 0?!1:p,y=n.padding,g=y===void 0?0:y,b=U2(typeof g!="number"?g:H2(g,fi)),E=h===pi?x2:pi,C=t.rects.popper,v=t.elements[m?E:h],k=Gx(Ao(v)?v:v.contextElement||Hr(t.elements.popper),a,u,s),_=gi(t.elements.reference),O=Z2({reference:_,element:C,strategy:"absolute",placement:o}),L=sf(Object.assign({},C,O)),N=h===pi?L:_,j={top:k.top-N.top+b.top,bottom:N.bottom-k.bottom+b.bottom,left:k.left-N.left+b.left,right:N.right-k.right+b.right},V=t.modifiersData.offset;if(h===pi&&V){var P=V[o];Object.keys(j).forEach(function(z){var K=[nn,tn].indexOf(z)>=0?1:-1,F=[jt,tn].indexOf(z)>=0?"y":"x";j[z]+=P[F]*K})}return j}function Qx(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,a=n.allowedAutoPlacements,d=a===void 0?Qu:a,u=yi(r),f=u?c?Gu:Gu.filter(function(m){return yi(m)===u}):fi,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=h.reduce(function(m,y){return m[y]=vi(t,{placement:y,boundary:o,rootBoundary:i,padding:s})[Dn(y)],m},{});return Object.keys(p).sort(function(m,y){return p[m]-p[y]})}function Zx(t){if(Dn(t)===Rs)return[];var e=Sl(t);return[Y2(t),e,Y2(e)]}function Jx(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,a=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,y=n.allowedAutoPlacements,g=e.options.placement,b=Dn(g),E=b===g,C=a||(E||!m?[Sl(g)]:Zx(g)),v=[g].concat(C).reduce(function(Ce,ke){return Ce.concat(Dn(ke)===Rs?Qx(e,{placement:ke,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:y}):ke)},[]),k=e.rects.reference,_=e.rects.popper,O=new Map,L=!0,N=v[0],j=0;j<v.length;j++){var V=v[j],P=Dn(V),z=yi(V)===ko,K=[jt,tn].indexOf(P)>=0,F=K?"width":"height",W=vi(e,{placement:V,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),Q=K?z?nn:zt:z?tn:jt;k[F]>_[F]&&(Q=Sl(Q));var U=Sl(Q),ee=[];if(i&&ee.push(W[P]<=0),c&&ee.push(W[Q]<=0,W[U]<=0),ee.every(function(Ce){return Ce})){N=V,L=!1;break}O.set(V,ee)}if(L)for(var ne=m?3:1,ae=function(ke){var Oe=v.find(function(Se){var D=O.get(Se);if(D)return D.slice(0,ke).every(function(R){return R})});if(Oe)return N=Oe,"break"},ue=ne;ue>0;ue--){var me=ae(ue);if(me==="break")break}e.placement!==N&&(e.modifiersData[r]._skip=!0,e.placement=N,e.reset=!0)}}const J2={name:"flip",enabled:!0,phase:"main",fn:Jx,requiresIfExists:["offset"],data:{_skip:!1}};function X2(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function q2(t){return[jt,nn,tn,zt].some(function(e){return t[e]>=0})}function Xx(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=vi(e,{elementContext:"reference"}),c=vi(e,{altBoundary:!0}),a=X2(s,r),d=X2(c,o,i),u=q2(a),f=q2(d);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ey={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xx};function qx(t,e,n){var r=Dn(t),o=[zt,jt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[zt,nn].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function eO(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Qu.reduce(function(u,f){return u[f]=qx(f,e.rects,i),u},{}),c=s[e.placement],a=c.x,d=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}const ty={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eO};function tO(t){var e=t.state,n=t.name;e.modifiersData[n]=Z2({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const af={name:"popperOffsets",enabled:!0,phase:"read",fn:tO,data:{}};function nO(t){return t==="x"?"y":"x"}function rO(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,a=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,y=m===void 0?0:m,g=vi(e,{boundary:a,rootBoundary:d,padding:f,altBoundary:u}),b=Dn(e.placement),E=yi(e.placement),C=!E,v=qu(b),k=nO(v),_=e.modifiersData.popperOffsets,O=e.rects.reference,L=e.rects.popper,N=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,j=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(_){if(i){var z,K=v==="y"?jt:zt,F=v==="y"?tn:nn,W=v==="y"?"height":"width",Q=_[v],U=Q+g[K],ee=Q-g[F],ne=p?-L[W]/2:0,ae=E===ko?O[W]:L[W],ue=E===ko?-L[W]:-O[W],me=e.elements.arrow,Ce=p&&me?Xu(me):{width:0,height:0},ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:z2(),Oe=ke[K],Se=ke[F],D=Vs(0,O[W],Ce[W]),R=C?O[W]/2-ne-D-Oe-j.mainAxis:ae-D-Oe-j.mainAxis,x=C?-O[W]/2+ne+D+Se+j.mainAxis:ue+D+Se+j.mainAxis,B=e.elements.arrow&&$s(e.elements.arrow),S=B?v==="y"?B.clientTop||0:B.clientLeft||0:0,w=(z=V==null?void 0:V[v])!=null?z:0,I=Q+R-w-S,M=Q+x-w,Y=Vs(p?bl(U,I):U,Q,p?To(ee,M):ee);_[v]=Y,P[v]=Y-Q}if(c){var G,J=v==="x"?jt:zt,X=v==="x"?tn:nn,A=_[k],T=k==="y"?"height":"width",H=A+g[J],Z=A-g[X],le=[jt,zt].indexOf(b)!==-1,ge=(G=V==null?void 0:V[k])!=null?G:0,Ae=le?H:A-O[T]-L[T]-ge+j.altAxis,q=le?A+O[T]+L[T]-ge-j.altAxis:Z,se=p&&le?Dx(Ae,A,q):Vs(p?Ae:H,A,p?q:Z);_[k]=se,P[k]=se-A}e.modifiersData[r]=P}}const ny={name:"preventOverflow",enabled:!0,phase:"main",fn:rO,requiresIfExists:["offset"]};function oO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function iO(t){return t===rn(t)||!on(t)?nf(t):oO(t)}function sO(t){var e=t.getBoundingClientRect(),n=mi(e.width)/t.offsetWidth||1,r=mi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function aO(t,e,n){n===void 0&&(n=!1);var r=on(e),o=on(e)&&sO(e),i=Hr(e),s=gi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Wn(e)!=="body"||of(i))&&(c=iO(e)),on(e)?(a=gi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=rf(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function lO(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var a=e.get(c);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function cO(t){var e=lO(t);return yl.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function dO(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Wr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Io='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',uO='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ry=["name","enabled","phase","fn","effect","requires","options"];function fO(t){t.forEach(function(e){[].concat(Object.keys(e),ry).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Wr(Io,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Wr(Io,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":yl.indexOf(e.phase)<0&&console.error(Wr(Io,e.name,'"phase"',"either "+yl.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Wr(Io,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Wr(Io,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Wr(Io,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Wr(Io,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+ry.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Wr(uO,String(e.name),r,r))})})})}function hO(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function pO(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var oy="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",mO="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",iy={placement:"bottom",modifiers:[],strategy:"absolute"};function sy(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _l(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?iy:o;return function(c,a,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},iy,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(b){var E=typeof b=="function"?b(u.options):b;y(),u.options=Object.assign({},i,u.options,E),u.scrollParents={reference:Ao(c)?Fs(c):c.contextElement?Fs(c.contextElement):[],popper:Fs(a)};var C=cO(pO([].concat(r,u.options.modifiers)));if(u.orderedModifiers=C.filter(function(V){return V.enabled}),process.env.NODE_ENV!=="production"){var v=hO([].concat(C,u.options.modifiers),function(V){var P=V.name;return P});if(fO(v),Dn(u.options.placement)===Rs){var k=u.orderedModifiers.find(function(V){var P=V.name;return P==="flip"});k||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var _=Pn(a),O=_.marginTop,L=_.marginRight,N=_.marginBottom,j=_.marginLeft;[O,L,N,j].some(function(V){return parseFloat(V)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!h){var b=u.elements,E=b.reference,C=b.popper;if(!sy(E,C)){process.env.NODE_ENV!=="production"&&console.error(oy);return}u.rects={reference:aO(E,$s(C),u.options.strategy==="fixed"),popper:Xu(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(V){return u.modifiersData[V.name]=Object.assign({},V.data)});for(var v=0,k=0;k<u.orderedModifiers.length;k++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(mO);break}if(u.reset===!0){u.reset=!1,k=-1;continue}var _=u.orderedModifiers[k],O=_.fn,L=_.options,N=L===void 0?{}:L,j=_.name;typeof O=="function"&&(u=O({state:u,options:N,name:j,instance:p})||u)}}},update:dO(function(){return new Promise(function(g){p.forceUpdate(),g(u)})}),destroy:function(){y(),h=!0}};if(!sy(c,a))return process.env.NODE_ENV!=="production"&&console.error(oy),p;p.setOptions(d).then(function(g){!h&&d.onFirstUpdate&&d.onFirstUpdate(g)});function m(){u.orderedModifiers.forEach(function(g){var b=g.name,E=g.options,C=E===void 0?{}:E,v=g.effect;if(typeof v=="function"){var k=v({state:u,name:b,instance:p,options:C}),_=function(){};f.push(k||_)}})}function y(){f.forEach(function(g){return g()}),f=[]}return p}}var gO=_l(),yO=[tf,af,ef,vl],vO=_l({defaultModifiers:yO}),bO=[tf,af,ef,vl,ty,J2,ny,W2,ey],wl=_l({defaultModifiers:bO});const ay=Object.freeze(Object.defineProperty({__proto__:null,afterMain:P2,afterRead:M2,afterWrite:$2,applyStyles:vl,arrow:W2,auto:Rs,basePlacements:fi,beforeMain:L2,beforeRead:O2,beforeWrite:B2,bottom:tn,clippingParents:I2,computeStyles:ef,createPopper:wl,createPopperBase:gO,createPopperLite:vO,detectOverflow:vi,end:hi,eventListeners:tf,flip:J2,hide:ey,left:zt,main:D2,modifierPhases:yl,offset:ty,placements:Qu,popper:pi,popperGenerator:_l,popperOffsets:af,preventOverflow:ny,read:N2,reference:x2,right:nn,start:ko,top:jt,variationPlacements:Gu,viewport:Yu,write:R2},Symbol.toStringTag,{value:"Module"}));var CO="tippy-box",ly="tippy-content",EO="tippy-backdrop",cy="tippy-arrow",dy="tippy-svg-arrow",xo={passive:!0,capture:!0},uy=function(){return document.body};function SO(t,e){return{}.hasOwnProperty.call(t,e)}function lf(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function cf(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function fy(t,e){return typeof t=="function"?t.apply(void 0,e):t}function hy(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function _O(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function wO(t){return t.split(/\s+/).filter(Boolean)}function bi(t){return[].concat(t)}function py(t,e){t.indexOf(e)===-1&&t.push(e)}function kO(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function AO(t){return t.split("-")[0]}function kl(t){return[].slice.call(t)}function my(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function js(){return document.createElement("div")}function zs(t){return["Element","Fragment"].some(function(e){return cf(t,e)})}function TO(t){return cf(t,"NodeList")}function IO(t){return cf(t,"MouseEvent")}function xO(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function OO(t){return zs(t)?[t]:TO(t)?kl(t):Array.isArray(t)?t:kl(document.querySelectorAll(t))}function df(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function gy(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function NO(t){var e,n=bi(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function MO(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,c=o.props,a=c.interactiveBorder,d=AO(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=d==="bottom"?u.top.y:0,h=d==="top"?u.bottom.y:0,p=d==="right"?u.left.x:0,m=d==="left"?u.right.x:0,y=i.top-r+f>a,g=r-i.bottom-h>a,b=i.left-n+p>a,E=n-i.right-m>a;return y||g||b||E})}function uf(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function yy(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Kn={isTouch:!1},vy=0;function LO(){Kn.isTouch||(Kn.isTouch=!0,window.performance&&document.addEventListener("mousemove",by))}function by(){var t=performance.now();t-vy<20&&(Kn.isTouch=!1,document.removeEventListener("mousemove",by)),vy=t}function DO(){var t=document.activeElement;if(xO(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function PO(){document.addEventListener("touchstart",LO,xo),window.addEventListener("blur",DO)}var BO=typeof window<"u"&&typeof document<"u",RO=BO?!!window.msCrypto:!1;function Ci(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Cy(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function $O(t){return Cy(`
1327
+ `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:Dn(e.placement),variation:yi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,K2(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:a})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,K2(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ef={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fx,data:{}};var El={passive:!0};function jx(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,s=r.resize,c=s===void 0?!0:s,a=rn(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",n.update,El)}),c&&a.addEventListener("resize",n.update,El),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",n.update,El)}),c&&a.removeEventListener("resize",n.update,El)}}const tf={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jx,data:{}};var zx={left:"right",right:"left",bottom:"top",top:"bottom"};function Sl(t){return t.replace(/left|right|bottom|top/g,function(e){return zx[e]})}var Ux={start:"end",end:"start"};function Y2(t){return t.replace(/start|end/g,function(e){return Ux[e]})}function nf(t){var e=rn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rf(t){return gi(Hr(t)).left+nf(t).scrollLeft}function Hx(t,e){var n=rn(t),r=Hr(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var d=V2();(d||!d&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+rf(t),y:a}}function Wx(t){var e,n=Hr(t),r=nf(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=To(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=To(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+rf(t),a=-r.scrollTop;return Pn(o||n).direction==="rtl"&&(c+=To(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function of(t){var e=Pn(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function G2(t){return["html","body","#document"].indexOf(Wn(t))>=0?t.ownerDocument.body:on(t)&&of(t)?t:G2(Cl(t))}function Fs(t,e){var n;e===void 0&&(e=[]);var r=G2(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=rn(r),s=o?[i].concat(i.visualViewport||[],of(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(Fs(Cl(s)))}function sf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Kx(t,e){var n=gi(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Q2(t,e,n){return e===Yu?sf(Hx(t,n)):Ao(e)?Kx(e,n):sf(Wx(Hr(t)))}function Yx(t){var e=Fs(Cl(t)),n=["absolute","fixed"].indexOf(Pn(t).position)>=0,r=n&&on(t)?$s(t):t;return Ao(r)?e.filter(function(o){return Ao(o)&&F2(o,r)&&Wn(o)!=="body"}):[]}function Gx(t,e,n,r){var o=e==="clippingParents"?Yx(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,d){var u=Q2(t,d,r);return a.top=To(u.top,a.top),a.right=bl(u.right,a.right),a.bottom=bl(u.bottom,a.bottom),a.left=To(u.left,a.left),a},Q2(t,s,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Z2(t){var e=t.reference,n=t.element,r=t.placement,o=r?Dn(r):null,i=r?yi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case jt:a={x:s,y:e.y-n.height};break;case tn:a={x:s,y:e.y+e.height};break;case nn:a={x:e.x+e.width,y:c};break;case zt:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var d=o?qu(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case ko:a[d]=a[d]-(e[u]/2-n[u]/2);break;case hi:a[d]=a[d]+(e[u]/2-n[u]/2);break}}return a}function vi(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,s=i===void 0?t.strategy:i,c=n.boundary,a=c===void 0?I2:c,d=n.rootBoundary,u=d===void 0?Yu:d,f=n.elementContext,h=f===void 0?pi:f,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,y=g===void 0?0:g,C=U2(typeof y!="number"?y:H2(y,fi)),E=h===pi?x2:pi,b=t.rects.popper,v=t.elements[m?E:h],k=Gx(Ao(v)?v:v.contextElement||Hr(t.elements.popper),a,u,s),_=gi(t.elements.reference),O=Z2({reference:_,element:b,strategy:"absolute",placement:o}),L=sf(Object.assign({},b,O)),N=h===pi?L:_,j={top:k.top-N.top+C.top,bottom:N.bottom-k.bottom+C.bottom,left:k.left-N.left+C.left,right:N.right-k.right+C.right},V=t.modifiersData.offset;if(h===pi&&V){var P=V[o];Object.keys(j).forEach(function(z){var K=[nn,tn].indexOf(z)>=0?1:-1,F=[jt,tn].indexOf(z)>=0?"y":"x";j[z]+=P[F]*K})}return j}function Qx(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,c=n.flipVariations,a=n.allowedAutoPlacements,d=a===void 0?Qu:a,u=yi(r),f=u?c?Gu:Gu.filter(function(m){return yi(m)===u}):fi,h=f.filter(function(m){return d.indexOf(m)>=0});h.length===0&&(h=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var p=h.reduce(function(m,g){return m[g]=vi(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Dn(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function Zx(t){if(Dn(t)===Rs)return[];var e=Sl(t);return[Y2(t),e,Y2(e)]}function Jx(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!0:s,a=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,y=e.options.placement,C=Dn(y),E=C===y,b=a||(E||!m?[Sl(y)]:Zx(y)),v=[y].concat(b).reduce(function(Ce,ke){return Ce.concat(Dn(ke)===Rs?Qx(e,{placement:ke,boundary:u,rootBoundary:f,padding:d,flipVariations:m,allowedAutoPlacements:g}):ke)},[]),k=e.rects.reference,_=e.rects.popper,O=new Map,L=!0,N=v[0],j=0;j<v.length;j++){var V=v[j],P=Dn(V),z=yi(V)===ko,K=[jt,tn].indexOf(P)>=0,F=K?"width":"height",W=vi(e,{placement:V,boundary:u,rootBoundary:f,altBoundary:h,padding:d}),Q=K?z?nn:zt:z?tn:jt;k[F]>_[F]&&(Q=Sl(Q));var U=Sl(Q),ee=[];if(i&&ee.push(W[P]<=0),c&&ee.push(W[Q]<=0,W[U]<=0),ee.every(function(Ce){return Ce})){N=V,L=!1;break}O.set(V,ee)}if(L)for(var ne=m?3:1,ae=function(ke){var Oe=v.find(function(Se){var D=O.get(Se);if(D)return D.slice(0,ke).every(function(R){return R})});if(Oe)return N=Oe,"break"},ue=ne;ue>0;ue--){var me=ae(ue);if(me==="break")break}e.placement!==N&&(e.modifiersData[r]._skip=!0,e.placement=N,e.reset=!0)}}const J2={name:"flip",enabled:!0,phase:"main",fn:Jx,requiresIfExists:["offset"],data:{_skip:!1}};function X2(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function q2(t){return[jt,nn,tn,zt].some(function(e){return t[e]>=0})}function Xx(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=vi(e,{elementContext:"reference"}),c=vi(e,{altBoundary:!0}),a=X2(s,r),d=X2(c,o,i),u=q2(a),f=q2(d);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const ey={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xx};function qx(t,e,n){var r=Dn(t),o=[zt,jt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],c=i[1];return s=s||0,c=(c||0)*o,[zt,nn].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function eO(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=Qu.reduce(function(u,f){return u[f]=qx(f,e.rects,i),u},{}),c=s[e.placement],a=c.x,d=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=d),e.modifiersData[r]=s}const ty={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eO};function tO(t){var e=t.state,n=t.name;e.modifiersData[n]=Z2({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const af={name:"popperOffsets",enabled:!0,phase:"read",fn:tO,data:{}};function nO(t){return t==="x"?"y":"x"}function rO(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,s=n.altAxis,c=s===void 0?!1:s,a=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,y=vi(e,{boundary:a,rootBoundary:d,padding:f,altBoundary:u}),C=Dn(e.placement),E=yi(e.placement),b=!E,v=qu(C),k=nO(v),_=e.modifiersData.popperOffsets,O=e.rects.reference,L=e.rects.popper,N=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,j=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(_){if(i){var z,K=v==="y"?jt:zt,F=v==="y"?tn:nn,W=v==="y"?"height":"width",Q=_[v],U=Q+y[K],ee=Q-y[F],ne=p?-L[W]/2:0,ae=E===ko?O[W]:L[W],ue=E===ko?-L[W]:-O[W],me=e.elements.arrow,Ce=p&&me?Xu(me):{width:0,height:0},ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:z2(),Oe=ke[K],Se=ke[F],D=Vs(0,O[W],Ce[W]),R=b?O[W]/2-ne-D-Oe-j.mainAxis:ae-D-Oe-j.mainAxis,x=b?-O[W]/2+ne+D+Se+j.mainAxis:ue+D+Se+j.mainAxis,B=e.elements.arrow&&$s(e.elements.arrow),S=B?v==="y"?B.clientTop||0:B.clientLeft||0:0,w=(z=V==null?void 0:V[v])!=null?z:0,I=Q+R-w-S,M=Q+x-w,Y=Vs(p?bl(U,I):U,Q,p?To(ee,M):ee);_[v]=Y,P[v]=Y-Q}if(c){var G,J=v==="x"?jt:zt,X=v==="x"?tn:nn,A=_[k],T=k==="y"?"height":"width",H=A+y[J],Z=A-y[X],le=[jt,zt].indexOf(C)!==-1,ge=(G=V==null?void 0:V[k])!=null?G:0,Ae=le?H:A-O[T]-L[T]-ge+j.altAxis,q=le?A+O[T]+L[T]-ge-j.altAxis:Z,se=p&&le?Dx(Ae,A,q):Vs(p?Ae:H,A,p?q:Z);_[k]=se,P[k]=se-A}e.modifiersData[r]=P}}const ny={name:"preventOverflow",enabled:!0,phase:"main",fn:rO,requiresIfExists:["offset"]};function oO(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function iO(t){return t===rn(t)||!on(t)?nf(t):oO(t)}function sO(t){var e=t.getBoundingClientRect(),n=mi(e.width)/t.offsetWidth||1,r=mi(e.height)/t.offsetHeight||1;return n!==1||r!==1}function aO(t,e,n){n===void 0&&(n=!1);var r=on(e),o=on(e)&&sO(e),i=Hr(e),s=gi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Wn(e)!=="body"||of(i))&&(c=iO(e)),on(e)?(a=gi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=rf(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function lO(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var a=e.get(c);a&&o(a)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function cO(t){var e=lO(t);return yl.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function dO(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Wr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,i){return o.replace(/%s/,i)},t)}var Io='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',uO='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',ry=["name","enabled","phase","fn","effect","requires","options"];function fO(t){t.forEach(function(e){[].concat(Object.keys(e),ry).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Wr(Io,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Wr(Io,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":yl.indexOf(e.phase)<0&&console.error(Wr(Io,e.name,'"phase"',"either "+yl.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Wr(Io,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Wr(Io,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Wr(Io,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Wr(Io,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+ry.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(r){t.find(function(o){return o.name===r})==null&&console.error(Wr(uO,String(e.name),r,r))})})})}function hO(t,e){var n=new Set;return t.filter(function(r){var o=e(r);if(!n.has(o))return n.add(o),!0})}function pO(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var oy="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",mO="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",iy={placement:"bottom",modifiers:[],strategy:"absolute"};function sy(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function _l(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?iy:o;return function(c,a,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},iy,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:u,setOptions:function(C){var E=typeof C=="function"?C(u.options):C;g(),u.options=Object.assign({},i,u.options,E),u.scrollParents={reference:Ao(c)?Fs(c):c.contextElement?Fs(c.contextElement):[],popper:Fs(a)};var b=cO(pO([].concat(r,u.options.modifiers)));if(u.orderedModifiers=b.filter(function(V){return V.enabled}),process.env.NODE_ENV!=="production"){var v=hO([].concat(b,u.options.modifiers),function(V){var P=V.name;return P});if(fO(v),Dn(u.options.placement)===Rs){var k=u.orderedModifiers.find(function(V){var P=V.name;return P==="flip"});k||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var _=Pn(a),O=_.marginTop,L=_.marginRight,N=_.marginBottom,j=_.marginLeft;[O,L,N,j].some(function(V){return parseFloat(V)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return m(),p.update()},forceUpdate:function(){if(!h){var C=u.elements,E=C.reference,b=C.popper;if(!sy(E,b)){process.env.NODE_ENV!=="production"&&console.error(oy);return}u.rects={reference:aO(E,$s(b),u.options.strategy==="fixed"),popper:Xu(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(V){return u.modifiersData[V.name]=Object.assign({},V.data)});for(var v=0,k=0;k<u.orderedModifiers.length;k++){if(process.env.NODE_ENV!=="production"&&(v+=1,v>100)){console.error(mO);break}if(u.reset===!0){u.reset=!1,k=-1;continue}var _=u.orderedModifiers[k],O=_.fn,L=_.options,N=L===void 0?{}:L,j=_.name;typeof O=="function"&&(u=O({state:u,options:N,name:j,instance:p})||u)}}},update:dO(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){g(),h=!0}};if(!sy(c,a))return process.env.NODE_ENV!=="production"&&console.error(oy),p;p.setOptions(d).then(function(y){!h&&d.onFirstUpdate&&d.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var C=y.name,E=y.options,b=E===void 0?{}:E,v=y.effect;if(typeof v=="function"){var k=v({state:u,name:C,instance:p,options:b}),_=function(){};f.push(k||_)}})}function g(){f.forEach(function(y){return y()}),f=[]}return p}}var gO=_l(),yO=[tf,af,ef,vl],vO=_l({defaultModifiers:yO}),bO=[tf,af,ef,vl,ty,J2,ny,W2,ey],wl=_l({defaultModifiers:bO});const ay=Object.freeze(Object.defineProperty({__proto__:null,afterMain:P2,afterRead:M2,afterWrite:$2,applyStyles:vl,arrow:W2,auto:Rs,basePlacements:fi,beforeMain:L2,beforeRead:O2,beforeWrite:B2,bottom:tn,clippingParents:I2,computeStyles:ef,createPopper:wl,createPopperBase:gO,createPopperLite:vO,detectOverflow:vi,end:hi,eventListeners:tf,flip:J2,hide:ey,left:zt,main:D2,modifierPhases:yl,offset:ty,placements:Qu,popper:pi,popperGenerator:_l,popperOffsets:af,preventOverflow:ny,read:N2,reference:x2,right:nn,start:ko,top:jt,variationPlacements:Gu,viewport:Yu,write:R2},Symbol.toStringTag,{value:"Module"}));var CO="tippy-box",ly="tippy-content",EO="tippy-backdrop",cy="tippy-arrow",dy="tippy-svg-arrow",xo={passive:!0,capture:!0},uy=function(){return document.body};function SO(t,e){return{}.hasOwnProperty.call(t,e)}function lf(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function cf(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function fy(t,e){return typeof t=="function"?t.apply(void 0,e):t}function hy(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function _O(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function wO(t){return t.split(/\s+/).filter(Boolean)}function bi(t){return[].concat(t)}function py(t,e){t.indexOf(e)===-1&&t.push(e)}function kO(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function AO(t){return t.split("-")[0]}function kl(t){return[].slice.call(t)}function my(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function js(){return document.createElement("div")}function zs(t){return["Element","Fragment"].some(function(e){return cf(t,e)})}function TO(t){return cf(t,"NodeList")}function IO(t){return cf(t,"MouseEvent")}function xO(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function OO(t){return zs(t)?[t]:TO(t)?kl(t):Array.isArray(t)?t:kl(document.querySelectorAll(t))}function df(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function gy(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function NO(t){var e,n=bi(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function MO(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,s=o.popperState,c=o.props,a=c.interactiveBorder,d=AO(s.placement),u=s.modifiersData.offset;if(!u)return!0;var f=d==="bottom"?u.top.y:0,h=d==="top"?u.bottom.y:0,p=d==="right"?u.left.x:0,m=d==="left"?u.right.x:0,g=i.top-r+f>a,y=r-i.bottom-h>a,C=i.left-n+p>a,E=n-i.right-m>a;return g||y||C||E})}function uf(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function yy(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Kn={isTouch:!1},vy=0;function LO(){Kn.isTouch||(Kn.isTouch=!0,window.performance&&document.addEventListener("mousemove",by))}function by(){var t=performance.now();t-vy<20&&(Kn.isTouch=!1,document.removeEventListener("mousemove",by)),vy=t}function DO(){var t=document.activeElement;if(xO(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function PO(){document.addEventListener("touchstart",LO,xo),window.addEventListener("blur",DO)}var BO=typeof window<"u"&&typeof document<"u",RO=BO?!!window.msCrypto:!1;function Ci(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Cy(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function $O(t){return Cy(`
1328
1328
  %ctippy.js
1329
1329
 
1330
1330
  %c`+Cy(t)+`
@@ -1333,7 +1333,7 @@ img.ProseMirror-separator {
1333
1333
  `)}function Ey(t){return[$O(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Us;process.env.NODE_ENV!=="production"&&VO();function VO(){Us=new Set}function pr(t,e){if(t&&!Us.has(e)){var n;Us.add(e),(n=console).warn.apply(n,Ey(e))}}function ff(t,e){if(t&&!Us.has(e)){var n;Us.add(e),(n=console).error.apply(n,Ey(e))}}function FO(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;ff(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),ff(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Sy={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},jO={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},sn=Object.assign({appendTo:uy,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},Sy,jO),zO=Object.keys(sn),UO=function(e){process.env.NODE_ENV!=="production"&&ky(e,[]);var n=Object.keys(e);n.forEach(function(r){sn[r]=e[r]})};function _y(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var c;r[i]=t[i]!==void 0?t[i]:(c=sn[i])!=null?c:s}return r},{});return Object.assign({},t,n)}function HO(t,e){var n=e?Object.keys(_y(Object.assign({},sn,{plugins:e}))):zO,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function wy(t,e){var n=Object.assign({},e,{content:fy(e.content,[t])},e.ignoreAttributes?{}:HO(t,e.plugins));return n.aria=Object.assign({},sn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function ky(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=_O(sn,Object.keys(Sy)),i=!SO(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),pr(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
1334
1334
 
1335
1335
  `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
1336
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var WO=function(){return"innerHTML"};function hf(t,e){t[WO()]=e}function Ay(t){var e=js();return t===!0?e.className=cy:(e.className=dy,zs(t)?e.appendChild(t):hf(e,t)),e}function Ty(t,e){zs(e.content)?(hf(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?hf(t,e.content):t.textContent=e.content)}function pf(t){var e=t.firstElementChild,n=kl(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(ly)}),arrow:n.find(function(r){return r.classList.contains(cy)||r.classList.contains(dy)}),backdrop:n.find(function(r){return r.classList.contains(EO)})}}function Iy(t){var e=js(),n=js();n.className=CO,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=js();r.className=ly,r.setAttribute("data-state","hidden"),Ty(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var c=pf(e),a=c.box,d=c.content,u=c.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Ty(d,t.props),s.arrow?u?i.arrow!==s.arrow&&(a.removeChild(u),a.appendChild(Ay(s.arrow))):a.appendChild(Ay(s.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}Iy.$$tippy=!0;var KO=1,Al=[],mf=[];function YO(t,e){var n=wy(t,Object.assign({},sn,_y(my(e)))),r,o,i,s=!1,c=!1,a=!1,d=!1,u,f,h,p=[],m=hy(I,n.interactiveDebounce),y,g=KO++,b=null,E=kO(n.plugins),C={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:g,reference:t,popper:js(),popperInstance:b,props:n,state:C,plugins:E,clearDelayTimeouts:Ae,setProps:q,setContent:se,show:_e,hide:$e,hideWithInteractivity:it,enable:le,disable:ge,unmount:ct,destroy:Ut};if(!n.render)return process.env.NODE_ENV!=="production"&&ff(!0,"render() function has not been supplied."),v;var k=n.render(v),_=k.popper,O=k.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+v.id,v.popper=_,t._tippy=v,_._tippy=v;var L=E.map(function(re){return re.fn(v)}),N=t.hasAttribute("aria-expanded");return B(),ne(),Q(),U("onCreate",[v]),n.showOnCreate&&H(),_.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",m)}),v;function j(){var re=v.props.touch;return Array.isArray(re)?re:[re,0]}function V(){return j()[0]==="hold"}function P(){var re;return!!((re=v.props.render)!=null&&re.$$tippy)}function z(){return y||t}function K(){var re=z().parentNode;return re?NO(re):document}function F(){return pf(_)}function W(re){return v.state.isMounted&&!v.state.isVisible||Kn.isTouch||u&&u.type==="focus"?0:lf(v.props.delay,re?0:1,sn.delay)}function Q(re){re===void 0&&(re=!1),_.style.pointerEvents=v.props.interactive&&!re?"":"none",_.style.zIndex=""+v.props.zIndex}function U(re,ve,ye){if(ye===void 0&&(ye=!0),L.forEach(function(Pe){Pe[re]&&Pe[re].apply(Pe,ve)}),ye){var Me;(Me=v.props)[re].apply(Me,ve)}}function ee(){var re=v.props.aria;if(re.content){var ve="aria-"+re.content,ye=_.id,Me=bi(v.props.triggerTarget||t);Me.forEach(function(Pe){var st=Pe.getAttribute(ve);if(v.state.isVisible)Pe.setAttribute(ve,st?st+" "+ye:ye);else{var dt=st&&st.replace(ye,"").trim();dt?Pe.setAttribute(ve,dt):Pe.removeAttribute(ve)}})}}function ne(){if(!(N||!v.props.aria.expanded)){var re=bi(v.props.triggerTarget||t);re.forEach(function(ve){v.props.interactive?ve.setAttribute("aria-expanded",v.state.isVisible&&ve===z()?"true":"false"):ve.removeAttribute("aria-expanded")})}}function ae(){K().removeEventListener("mousemove",m),Al=Al.filter(function(re){return re!==m})}function ue(re){if(!(Kn.isTouch&&(a||re.type==="mousedown"))){var ve=re.composedPath&&re.composedPath()[0]||re.target;if(!(v.props.interactive&&yy(_,ve))){if(bi(v.props.triggerTarget||t).some(function(ye){return yy(ye,ve)})){if(Kn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[v,re]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),c=!0,setTimeout(function(){c=!1}),v.state.isMounted||Oe())}}}function me(){a=!0}function Ce(){a=!1}function ke(){var re=K();re.addEventListener("mousedown",ue,!0),re.addEventListener("touchend",ue,xo),re.addEventListener("touchstart",Ce,xo),re.addEventListener("touchmove",me,xo)}function Oe(){var re=K();re.removeEventListener("mousedown",ue,!0),re.removeEventListener("touchend",ue,xo),re.removeEventListener("touchstart",Ce,xo),re.removeEventListener("touchmove",me,xo)}function Se(re,ve){R(re,function(){!v.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&ve()})}function D(re,ve){R(re,ve)}function R(re,ve){var ye=F().box;function Me(Pe){Pe.target===ye&&(uf(ye,"remove",Me),ve())}if(re===0)return ve();uf(ye,"remove",f),uf(ye,"add",Me),f=Me}function x(re,ve,ye){ye===void 0&&(ye=!1);var Me=bi(v.props.triggerTarget||t);Me.forEach(function(Pe){Pe.addEventListener(re,ve,ye),p.push({node:Pe,eventType:re,handler:ve,options:ye})})}function B(){V()&&(x("touchstart",w,{passive:!0}),x("touchend",M,{passive:!0})),wO(v.props.trigger).forEach(function(re){if(re!=="manual")switch(x(re,w),re){case"mouseenter":x("mouseleave",M);break;case"focus":x(RO?"focusout":"blur",Y);break;case"focusin":x("focusout",Y);break}})}function S(){p.forEach(function(re){var ve=re.node,ye=re.eventType,Me=re.handler,Pe=re.options;ve.removeEventListener(ye,Me,Pe)}),p=[]}function w(re){var ve,ye=!1;if(!(!v.state.isEnabled||G(re)||c)){var Me=((ve=u)==null?void 0:ve.type)==="focus";u=re,y=re.currentTarget,ne(),!v.state.isVisible&&IO(re)&&Al.forEach(function(Pe){return Pe(re)}),re.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?ye=!0:H(re),re.type==="click"&&(s=!ye),ye&&!Me&&Z(re)}}function I(re){var ve=re.target,ye=z().contains(ve)||_.contains(ve);if(!(re.type==="mousemove"&&ye)){var Me=T().concat(_).map(function(Pe){var st,dt=Pe._tippy,Ht=(st=dt.popperInstance)==null?void 0:st.state;return Ht?{popperRect:Pe.getBoundingClientRect(),popperState:Ht,props:n}:null}).filter(Boolean);MO(Me,re)&&(ae(),Z(re))}}function M(re){var ve=G(re)||v.props.trigger.indexOf("click")>=0&&s;if(!ve){if(v.props.interactive){v.hideWithInteractivity(re);return}Z(re)}}function Y(re){v.props.trigger.indexOf("focusin")<0&&re.target!==z()||v.props.interactive&&re.relatedTarget&&_.contains(re.relatedTarget)||Z(re)}function G(re){return Kn.isTouch?V()!==re.type.indexOf("touch")>=0:!1}function J(){X();var re=v.props,ve=re.popperOptions,ye=re.placement,Me=re.offset,Pe=re.getReferenceClientRect,st=re.moveTransition,dt=P()?pf(_).arrow:null,Ht=Pe?{getBoundingClientRect:Pe,contextElement:Pe.contextElement||z()}:t,Wt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(no){var an=no.state;if(P()){var vn=F(),Vi=vn.box;["placement","reference-hidden","escaped"].forEach(function(bn){bn==="placement"?Vi.setAttribute("data-placement",an.placement):an.attributes.popper["data-popper-"+bn]?Vi.setAttribute("data-"+bn,""):Vi.removeAttribute("data-"+bn)}),an.attributes.popper={}}}},At=[{name:"offset",options:{offset:Me}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!st}},Wt];P()&&dt&&At.push({name:"arrow",options:{element:dt,padding:3}}),At.push.apply(At,(ve==null?void 0:ve.modifiers)||[]),v.popperInstance=wl(Ht,_,Object.assign({},ve,{placement:ye,onFirstUpdate:h,modifiers:At}))}function X(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function A(){var re=v.props.appendTo,ve,ye=z();v.props.interactive&&re===uy||re==="parent"?ve=ye.parentNode:ve=fy(re,[ye]),ve.contains(_)||ve.appendChild(_),v.state.isMounted=!0,J(),process.env.NODE_ENV!=="production"&&pr(v.props.interactive&&re===sn.appendTo&&ye.nextElementSibling!==_,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
1336
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var WO=function(){return"innerHTML"};function hf(t,e){t[WO()]=e}function Ay(t){var e=js();return t===!0?e.className=cy:(e.className=dy,zs(t)?e.appendChild(t):hf(e,t)),e}function Ty(t,e){zs(e.content)?(hf(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?hf(t,e.content):t.textContent=e.content)}function pf(t){var e=t.firstElementChild,n=kl(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(ly)}),arrow:n.find(function(r){return r.classList.contains(cy)||r.classList.contains(dy)}),backdrop:n.find(function(r){return r.classList.contains(EO)})}}function Iy(t){var e=js(),n=js();n.className=CO,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=js();r.className=ly,r.setAttribute("data-state","hidden"),Ty(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var c=pf(e),a=c.box,d=c.content,u=c.arrow;s.theme?a.setAttribute("data-theme",s.theme):a.removeAttribute("data-theme"),typeof s.animation=="string"?a.setAttribute("data-animation",s.animation):a.removeAttribute("data-animation"),s.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?a.setAttribute("role",s.role):a.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Ty(d,t.props),s.arrow?u?i.arrow!==s.arrow&&(a.removeChild(u),a.appendChild(Ay(s.arrow))):a.appendChild(Ay(s.arrow)):u&&a.removeChild(u)}return{popper:e,onUpdate:o}}Iy.$$tippy=!0;var KO=1,Al=[],mf=[];function YO(t,e){var n=wy(t,Object.assign({},sn,_y(my(e)))),r,o,i,s=!1,c=!1,a=!1,d=!1,u,f,h,p=[],m=hy(I,n.interactiveDebounce),g,y=KO++,C=null,E=kO(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:y,reference:t,popper:js(),popperInstance:C,props:n,state:b,plugins:E,clearDelayTimeouts:Ae,setProps:q,setContent:se,show:_e,hide:$e,hideWithInteractivity:it,enable:le,disable:ge,unmount:ct,destroy:Ut};if(!n.render)return process.env.NODE_ENV!=="production"&&ff(!0,"render() function has not been supplied."),v;var k=n.render(v),_=k.popper,O=k.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+v.id,v.popper=_,t._tippy=v,_._tippy=v;var L=E.map(function(re){return re.fn(v)}),N=t.hasAttribute("aria-expanded");return B(),ne(),Q(),U("onCreate",[v]),n.showOnCreate&&H(),_.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",m)}),v;function j(){var re=v.props.touch;return Array.isArray(re)?re:[re,0]}function V(){return j()[0]==="hold"}function P(){var re;return!!((re=v.props.render)!=null&&re.$$tippy)}function z(){return g||t}function K(){var re=z().parentNode;return re?NO(re):document}function F(){return pf(_)}function W(re){return v.state.isMounted&&!v.state.isVisible||Kn.isTouch||u&&u.type==="focus"?0:lf(v.props.delay,re?0:1,sn.delay)}function Q(re){re===void 0&&(re=!1),_.style.pointerEvents=v.props.interactive&&!re?"":"none",_.style.zIndex=""+v.props.zIndex}function U(re,ve,ye){if(ye===void 0&&(ye=!0),L.forEach(function(Pe){Pe[re]&&Pe[re].apply(Pe,ve)}),ye){var Me;(Me=v.props)[re].apply(Me,ve)}}function ee(){var re=v.props.aria;if(re.content){var ve="aria-"+re.content,ye=_.id,Me=bi(v.props.triggerTarget||t);Me.forEach(function(Pe){var st=Pe.getAttribute(ve);if(v.state.isVisible)Pe.setAttribute(ve,st?st+" "+ye:ye);else{var dt=st&&st.replace(ye,"").trim();dt?Pe.setAttribute(ve,dt):Pe.removeAttribute(ve)}})}}function ne(){if(!(N||!v.props.aria.expanded)){var re=bi(v.props.triggerTarget||t);re.forEach(function(ve){v.props.interactive?ve.setAttribute("aria-expanded",v.state.isVisible&&ve===z()?"true":"false"):ve.removeAttribute("aria-expanded")})}}function ae(){K().removeEventListener("mousemove",m),Al=Al.filter(function(re){return re!==m})}function ue(re){if(!(Kn.isTouch&&(a||re.type==="mousedown"))){var ve=re.composedPath&&re.composedPath()[0]||re.target;if(!(v.props.interactive&&yy(_,ve))){if(bi(v.props.triggerTarget||t).some(function(ye){return yy(ye,ve)})){if(Kn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[v,re]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),c=!0,setTimeout(function(){c=!1}),v.state.isMounted||Oe())}}}function me(){a=!0}function Ce(){a=!1}function ke(){var re=K();re.addEventListener("mousedown",ue,!0),re.addEventListener("touchend",ue,xo),re.addEventListener("touchstart",Ce,xo),re.addEventListener("touchmove",me,xo)}function Oe(){var re=K();re.removeEventListener("mousedown",ue,!0),re.removeEventListener("touchend",ue,xo),re.removeEventListener("touchstart",Ce,xo),re.removeEventListener("touchmove",me,xo)}function Se(re,ve){R(re,function(){!v.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&ve()})}function D(re,ve){R(re,ve)}function R(re,ve){var ye=F().box;function Me(Pe){Pe.target===ye&&(uf(ye,"remove",Me),ve())}if(re===0)return ve();uf(ye,"remove",f),uf(ye,"add",Me),f=Me}function x(re,ve,ye){ye===void 0&&(ye=!1);var Me=bi(v.props.triggerTarget||t);Me.forEach(function(Pe){Pe.addEventListener(re,ve,ye),p.push({node:Pe,eventType:re,handler:ve,options:ye})})}function B(){V()&&(x("touchstart",w,{passive:!0}),x("touchend",M,{passive:!0})),wO(v.props.trigger).forEach(function(re){if(re!=="manual")switch(x(re,w),re){case"mouseenter":x("mouseleave",M);break;case"focus":x(RO?"focusout":"blur",Y);break;case"focusin":x("focusout",Y);break}})}function S(){p.forEach(function(re){var ve=re.node,ye=re.eventType,Me=re.handler,Pe=re.options;ve.removeEventListener(ye,Me,Pe)}),p=[]}function w(re){var ve,ye=!1;if(!(!v.state.isEnabled||G(re)||c)){var Me=((ve=u)==null?void 0:ve.type)==="focus";u=re,g=re.currentTarget,ne(),!v.state.isVisible&&IO(re)&&Al.forEach(function(Pe){return Pe(re)}),re.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?ye=!0:H(re),re.type==="click"&&(s=!ye),ye&&!Me&&Z(re)}}function I(re){var ve=re.target,ye=z().contains(ve)||_.contains(ve);if(!(re.type==="mousemove"&&ye)){var Me=T().concat(_).map(function(Pe){var st,dt=Pe._tippy,Ht=(st=dt.popperInstance)==null?void 0:st.state;return Ht?{popperRect:Pe.getBoundingClientRect(),popperState:Ht,props:n}:null}).filter(Boolean);MO(Me,re)&&(ae(),Z(re))}}function M(re){var ve=G(re)||v.props.trigger.indexOf("click")>=0&&s;if(!ve){if(v.props.interactive){v.hideWithInteractivity(re);return}Z(re)}}function Y(re){v.props.trigger.indexOf("focusin")<0&&re.target!==z()||v.props.interactive&&re.relatedTarget&&_.contains(re.relatedTarget)||Z(re)}function G(re){return Kn.isTouch?V()!==re.type.indexOf("touch")>=0:!1}function J(){X();var re=v.props,ve=re.popperOptions,ye=re.placement,Me=re.offset,Pe=re.getReferenceClientRect,st=re.moveTransition,dt=P()?pf(_).arrow:null,Ht=Pe?{getBoundingClientRect:Pe,contextElement:Pe.contextElement||z()}:t,Wt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(no){var an=no.state;if(P()){var bn=F(),Vi=bn.box;["placement","reference-hidden","escaped"].forEach(function(Cn){Cn==="placement"?Vi.setAttribute("data-placement",an.placement):an.attributes.popper["data-popper-"+Cn]?Vi.setAttribute("data-"+Cn,""):Vi.removeAttribute("data-"+Cn)}),an.attributes.popper={}}}},At=[{name:"offset",options:{offset:Me}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!st}},Wt];P()&&dt&&At.push({name:"arrow",options:{element:dt,padding:3}}),At.push.apply(At,(ve==null?void 0:ve.modifiers)||[]),v.popperInstance=wl(Ht,_,Object.assign({},ve,{placement:ye,onFirstUpdate:h,modifiers:At}))}function X(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function A(){var re=v.props.appendTo,ve,ye=z();v.props.interactive&&re===uy||re==="parent"?ve=ye.parentNode:ve=fy(re,[ye]),ve.contains(_)||ve.appendChild(_),v.state.isMounted=!0,J(),process.env.NODE_ENV!=="production"&&pr(v.props.interactive&&re===sn.appendTo&&ye.nextElementSibling!==_,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
1337
1337
 
1338
1338
  `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
1339
1339
 
@@ -1344,18 +1344,18 @@ img.ProseMirror-separator {
1344
1344
  `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
1345
1345
 
1346
1346
  `,`1) content: element.innerHTML
1347
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=o.reduce(function(a,d){var u=d&&YO(d,r);return u&&a.push(u),a},[]);return zs(t)?c[0]:c}Ei.defaultProps=sn,Ei.setDefaultProps=UO,Ei.currentInput=Kn,Object.assign({},vl,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),Ei.setDefaultProps({render:Iy});class GO{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:c,state:a,from:d,to:u})=>{const{doc:f,selection:h}=a,{empty:p}=h,m=!f.textBetween(d,u).length&&Fu(a.selection),y=this.element.contains(document.activeElement);return!(!(c.hasFocus()||y)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:c})=>{var a;if(this.preventHide){this.preventHide=!1;return}c!=null&&c.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(c.relatedTarget))||this.hide()},this.tippyBlurHandler=c=>{this.blurHandler({event:c})},this.handleDebouncedUpdate=(c,a)=>{const d=!(a!=null&&a.selection.eq(c.state.selection)),u=!(a!=null&&a.doc.eq(c.state.doc));!d&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(c,d,u,a)},this.updateDelay))},this.updateHandler=(c,a,d,u)=>{var f,h,p;const{state:m,composing:y}=c,{selection:g}=m;if(y||!a&&!d)return;this.createTooltip();const{ranges:E}=g,C=Math.min(...E.map(_=>_.$from.pos)),v=Math.max(...E.map(_=>_.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:c,state:m,oldState:u,from:C,to:v}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(dx(m.selection)){let _=c.nodeDOM(C);const O=_.dataset.nodeViewWrapper?_:_.querySelector("[data-node-view-wrapper]");if(O&&(_=O.firstChild),_)return _.getBoundingClientRect()}return A2(c,C,v)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),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=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Ei(e,{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,n){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const i=!(n!=null&&n.selection.eq(e.state.selection)),s=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,i,s,n)}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,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.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 xy=t=>new Qt({key:typeof t.pluginKey=="string"?new Nn(t.pluginKey):t.pluginKey,view:e=>new GO({view:e,...t})});fn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[xy({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class QO{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:c})=>{const{selection:a}=c,{$anchor:d,empty:u}=a,f=d.depth===1,h=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent;return!(!s.hasFocus()||!u||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var c;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=n,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Ei(e,{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,n){var r,o,i;const{state:s}=e,{doc:c,selection:a}=s,{from:d,to:u}=a;if(n&&n.doc.eq(c)&&n.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:n}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>A2(e,d,u))}),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,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Oy=t=>new Qt({key:typeof t.pluginKey=="string"?new Nn(t.pluginKey):t.pluginKey,view:e=>new QO({view:e,...t})});fn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Oy({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),l.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=l.ref(null);return l.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:c}=t;o.registerPlugin(xy({updateDelay:r,editor:o,element:n.value,pluginKey:i,shouldShow:s,tippyOptions:c}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Ny(t){return l.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class ZO extends xx{constructor(e={}){return super(e),this.vueRenderers=l.reactive(new Map),this.contentComponent=null,this.reactiveState=Ny(this.view.state),this.reactiveExtensionStorage=Ny(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),l.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const JO=l.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=l.ref(),n=l.getCurrentInstance();return l.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&l.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=l.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),l.onBeforeUnmount(()=>{const r=t.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=l.h(l.Teleport,{to:e.teleportElement,key:e.id},l.h(e.component,{ref:e.id,...e.props}));t.push(n)}),l.h("div",{ref:e=>{this.rootEl=e}},...t)}});l.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=l.ref(null);return l.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=t;o.registerPlugin(Oy({pluginKey:r,editor:o,element:n.value,tippyOptions:i,shouldShow:s}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),l.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),l.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return l.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const XO=(t={})=>{const e=l.shallowRef();return l.onMounted(()=>{e.value=new ZO(t)}),l.onBeforeUnmount(()=>{var n;(n=e.value)===null||n===void 0||n.destroy()}),e},qO=hr.create({name:"doc",topNode:!0,content:"block+"}),eN=hr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tN=hr.create({name:"text",group:"inline"}),nN="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",rN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Si=(t,e)=>{for(const n in e)t[n]=e[n];return t},gf="numeric",yf="ascii",vf="alpha",Tl="asciinumeric",Il="alphanumeric",bf="domain",My="emoji",oN="scheme",iN="slashscheme",Ly="whitespace";function sN(t,e){return t in e||(e[t]=[]),e[t]}function Oo(t,e,n){e[gf]&&(e[Tl]=!0,e[Il]=!0),e[yf]&&(e[Tl]=!0,e[vf]=!0),e[Tl]&&(e[Il]=!0),e[vf]&&(e[Il]=!0),e[Il]&&(e[bf]=!0),e[My]&&(e[bf]=!0);for(const r in e){const o=sN(r,n);o.indexOf(t)<0&&o.push(t)}}function aN(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Jt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}Jt.groups={},Jt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Jt.groups;let o;return e&&e.j?o=e:(o=new Jt(e),n&&r&&Oo(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||Jt.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,c=o.go(t);if(c?(s=new Jt,Si(s.j,c.j),s.jr.push.apply(s.jr,c.jr),s.jd=c.jd,s.t=c.t):s=new Jt,i){if(r)if(s.t&&typeof s.t=="string"){const a=Si(aN(s.t,r),n);Oo(i,a,r)}else n&&Oo(i,n,r);s.t=i}return o.j[t]=s,s}};const je=(t,e,n,r,o)=>t.ta(e,n,r,o),hn=(t,e,n,r,o)=>t.tr(e,n,r,o),Dy=(t,e,n,r,o)=>t.ts(e,n,r,o),be=(t,e,n,r,o)=>t.tt(e,n,r,o),mr="WORD",Cf="UWORD",Hs="LOCALHOST",Ef="TLD",Sf="UTLD",xl="SCHEME",_i="SLASH_SCHEME",_f="NUM",Py="WS",wf="NL",Ws="OPENBRACE",Ks="CLOSEBRACE",Ol="OPENBRACKET",Nl="CLOSEBRACKET",Ml="OPENPAREN",Ll="CLOSEPAREN",Dl="OPENANGLEBRACKET",Pl="CLOSEANGLEBRACKET",Bl="FULLWIDTHLEFTPAREN",Rl="FULLWIDTHRIGHTPAREN",$l="LEFTCORNERBRACKET",Vl="RIGHTCORNERBRACKET",Fl="LEFTWHITECORNERBRACKET",jl="RIGHTWHITECORNERBRACKET",zl="FULLWIDTHLESSTHAN",Ul="FULLWIDTHGREATERTHAN",Hl="AMPERSAND",Wl="APOSTROPHE",Kl="ASTERISK",Kr="AT",Yl="BACKSLASH",Gl="BACKTICK",Ql="CARET",Yr="COLON",kf="COMMA",Zl="DOLLAR",Yn="DOT",Jl="EQUALS",Af="EXCLAMATION",Gn="HYPHEN",Xl="PERCENT",ql="PIPE",ec="PLUS",tc="POUND",nc="QUERY",Tf="QUOTE",If="SEMI",Qn="SLASH",Ys="TILDE",rc="UNDERSCORE",By="EMOJI",oc="SYM";var Ry=Object.freeze({__proto__:null,WORD:mr,UWORD:Cf,LOCALHOST:Hs,TLD:Ef,UTLD:Sf,SCHEME:xl,SLASH_SCHEME:_i,NUM:_f,WS:Py,NL:wf,OPENBRACE:Ws,CLOSEBRACE:Ks,OPENBRACKET:Ol,CLOSEBRACKET:Nl,OPENPAREN:Ml,CLOSEPAREN:Ll,OPENANGLEBRACKET:Dl,CLOSEANGLEBRACKET:Pl,FULLWIDTHLEFTPAREN:Bl,FULLWIDTHRIGHTPAREN:Rl,LEFTCORNERBRACKET:$l,RIGHTCORNERBRACKET:Vl,LEFTWHITECORNERBRACKET:Fl,RIGHTWHITECORNERBRACKET:jl,FULLWIDTHLESSTHAN:zl,FULLWIDTHGREATERTHAN:Ul,AMPERSAND:Hl,APOSTROPHE:Wl,ASTERISK:Kl,AT:Kr,BACKSLASH:Yl,BACKTICK:Gl,CARET:Ql,COLON:Yr,COMMA:kf,DOLLAR:Zl,DOT:Yn,EQUALS:Jl,EXCLAMATION:Af,HYPHEN:Gn,PERCENT:Xl,PIPE:ql,PLUS:ec,POUND:tc,QUERY:nc,QUOTE:Tf,SEMI:If,SLASH:Qn,TILDE:Ys,UNDERSCORE:rc,EMOJI:By,SYM:oc});const wi=/[a-z]/,xf=/\p{L}/u,Of=/\p{Emoji}/u,Nf=/\d/,$y=/\s/,Vy=`
1348
- `,lN="️",cN="‍";let ic=null,sc=null;function dN(t){t===void 0&&(t=[]);const e={};Jt.groups=e;const n=new Jt;ic==null&&(ic=Fy(nN)),sc==null&&(sc=Fy(rN)),be(n,"'",Wl),be(n,"{",Ws),be(n,"}",Ks),be(n,"[",Ol),be(n,"]",Nl),be(n,"(",Ml),be(n,")",Ll),be(n,"<",Dl),be(n,">",Pl),be(n,"(",Bl),be(n,")",Rl),be(n,"「",$l),be(n,"」",Vl),be(n,"『",Fl),be(n,"』",jl),be(n,"<",zl),be(n,">",Ul),be(n,"&",Hl),be(n,"*",Kl),be(n,"@",Kr),be(n,"`",Gl),be(n,"^",Ql),be(n,":",Yr),be(n,",",kf),be(n,"$",Zl),be(n,".",Yn),be(n,"=",Jl),be(n,"!",Af),be(n,"-",Gn),be(n,"%",Xl),be(n,"|",ql),be(n,"+",ec),be(n,"#",tc),be(n,"?",nc),be(n,'"',Tf),be(n,"/",Qn),be(n,";",If),be(n,"~",Ys),be(n,"_",rc),be(n,"\\",Yl);const r=hn(n,Nf,_f,{[gf]:!0});hn(r,Nf,r);const o=hn(n,wi,mr,{[yf]:!0});hn(o,wi,o);const i=hn(n,xf,Cf,{[vf]:!0});hn(i,wi),hn(i,xf,i);const s=hn(n,$y,Py,{[Ly]:!0});be(n,Vy,wf,{[Ly]:!0}),be(s,Vy),hn(s,$y,s);const c=hn(n,Of,By,{[My]:!0});hn(c,Of,c),be(c,lN,c);const a=be(c,cN);hn(a,Of,c);const d=[[wi,o]],u=[[wi,null],[xf,i]];for(let f=0;f<ic.length;f++)Gr(n,ic[f],Ef,mr,d);for(let f=0;f<sc.length;f++)Gr(n,sc[f],Sf,Cf,u);Oo(Ef,{tld:!0,ascii:!0},e),Oo(Sf,{utld:!0,alpha:!0},e),Gr(n,"file",xl,mr,d),Gr(n,"mailto",xl,mr,d),Gr(n,"http",_i,mr,d),Gr(n,"https",_i,mr,d),Gr(n,"ftp",_i,mr,d),Gr(n,"ftps",_i,mr,d),Oo(xl,{scheme:!0,ascii:!0},e),Oo(_i,{slashscheme:!0,ascii:!0},e),t=t.sort((f,h)=>f[0]>h[0]?1:-1);for(let f=0;f<t.length;f++){const h=t[f][0],m=t[f][1]?{[oN]:!0}:{[iN]:!0};h.indexOf("-")>=0?m[bf]=!0:wi.test(h)?Nf.test(h)?m[Tl]=!0:m[yf]=!0:m[gf]=!0,Dy(n,h,h,m)}return Dy(n,"localhost",Hs,{ascii:!0}),n.jd=new Jt(oc),{start:n,tokens:Si({groups:e},Ry)}}function uN(t,e){const n=fN(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let c=t,a=null,d=0,u=null,f=-1,h=-1;for(;s<r&&(a=c.go(n[s]));)c=a,c.accepts()?(f=0,h=0,u=c):f>=0&&(f+=n[s].length,h++),d+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,d-=f,o.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return o}function fN(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Gr(t,e,n,r,o){let i;const s=e.length;for(let c=0;c<s-1;c++){const a=e[c];t.j[a]?i=t.j[a]:(i=new Jt(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Jt(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function Fy(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Gs={defaultProtocol:"http",events:null,format:jy,formatHref:jy,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Mf(t,e){e===void 0&&(e=null);let n=Si({},Gs);t&&(n=Si(n,t instanceof Mf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Mf.prototype={o:Gs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Gs[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function jy(t){return t}function zy(t,e){this.t="token",this.v=t,this.tk=e}zy.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Gs.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},c=t.get("className",n,e),a=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),a&&(s.target=a),d&&(s.rel=d),u&&Si(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function ac(t,e){class n extends zy{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Uy=ac("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Hy=ac("text"),hN=ac("nl"),lc=ac("url",{isLink:!0,toHref(t){return t===void 0&&(t=Gs.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Hs&&t[1].t===Yr}}),pn=t=>new Jt(t);function pN(t){let{groups:e}=t;const n=e.domain.concat([Hl,Kl,Kr,Yl,Gl,Ql,Zl,Jl,Gn,_f,Xl,ql,ec,tc,Qn,oc,Ys,rc]),r=[Wl,Yr,kf,Yn,Af,nc,Tf,If,Dl,Pl,Ws,Ks,Nl,Ol,Ml,Ll,Bl,Rl,$l,Vl,Fl,jl,zl,Ul],o=[Hl,Wl,Kl,Yl,Gl,Ql,Zl,Jl,Gn,Ws,Ks,Xl,ql,ec,tc,nc,Qn,oc,Ys,rc],i=pn(),s=be(i,Ys);je(s,o,s),je(s,e.domain,s);const c=pn(),a=pn(),d=pn();je(i,e.domain,c),je(i,e.scheme,a),je(i,e.slashscheme,d),je(c,o,s),je(c,e.domain,c);const u=be(c,Kr);be(s,Kr,u),be(a,Kr,u),be(d,Kr,u);const f=be(s,Yn);je(f,o,s),je(f,e.domain,s);const h=pn();je(u,e.domain,h),je(h,e.domain,h);const p=be(h,Yn);je(p,e.domain,h);const m=pn(Uy);je(p,e.tld,m),je(p,e.utld,m),be(u,Hs,m);const y=be(h,Gn);je(y,e.domain,h),je(m,e.domain,h),be(m,Yn,p),be(m,Gn,y);const g=be(m,Yr);je(g,e.numeric,Uy);const b=be(c,Gn),E=be(c,Yn);je(b,e.domain,c),je(E,o,s),je(E,e.domain,c);const C=pn(lc);je(E,e.tld,C),je(E,e.utld,C),je(C,e.domain,c),je(C,o,s),be(C,Yn,E),be(C,Gn,b),be(C,Kr,u);const v=be(C,Yr),k=pn(lc);je(v,e.numeric,k);const _=pn(lc),O=pn();je(_,n,_),je(_,r,O),je(O,n,_),je(O,r,O),be(C,Qn,_),be(k,Qn,_);const L=be(a,Yr),N=be(d,Yr),j=be(N,Qn),V=be(j,Qn);je(a,e.domain,c),be(a,Yn,E),be(a,Gn,b),je(d,e.domain,c),be(d,Yn,E),be(d,Gn,b),je(L,e.domain,_),be(L,Qn,_),je(V,e.domain,_),je(V,n,_),be(V,Qn,_);const P=[[Ws,Ks],[Ol,Nl],[Ml,Ll],[Dl,Pl],[Bl,Rl],[$l,Vl],[Fl,jl],[zl,Ul]];for(let z=0;z<P.length;z++){const[K,F]=P[z],W=be(_,K);be(O,K,W),be(W,F,_);const Q=pn(lc);je(W,n,Q);const U=pn();je(W,r),je(Q,n,Q),je(Q,r,U),je(U,n,Q),je(U,r,U),be(Q,F,_),be(U,F,_)}return be(i,Hs,C),be(i,wf,hN),{start:i,tokens:Ry}}function mN(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let c=t,a=null,d=null,u=0,f=null,h=-1;for(;o<r&&!(a=c.go(n[o].t));)s.push(n[o++]);for(;o<r&&(d=a||c.go(n[o].t));)a=null,c=d,c.accepts()?(h=0,f=c):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Lf(Hy,e,s)),s=[]),o-=h,u-=h;const p=f.t,m=n.slice(o-u,o);i.push(Lf(p,e,m))}}return s.length>0&&i.push(Lf(Hy,e,s)),i}function Lf(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const gN=typeof console<"u"&&console&&console.warn||(()=>{}),yN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ot={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function vN(){Jt.groups={},ot.scanner=null,ot.parser=null,ot.tokenQueue=[],ot.pluginQueue=[],ot.customSchemes=[],ot.initialized=!1}function Wy(t,e){if(e===void 0&&(e=!1),ot.initialized&&gN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${yN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
1347
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=o.reduce(function(a,d){var u=d&&YO(d,r);return u&&a.push(u),a},[]);return zs(t)?c[0]:c}Ei.defaultProps=sn,Ei.setDefaultProps=UO,Ei.currentInput=Kn,Object.assign({},vl,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),Ei.setDefaultProps({render:Iy});class GO{constructor({editor:e,element:n,view:r,tippyOptions:o={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:c,state:a,from:d,to:u})=>{const{doc:f,selection:h}=a,{empty:p}=h,m=!f.textBetween(d,u).length&&Fu(a.selection),g=this.element.contains(document.activeElement);return!(!(c.hasFocus()||g)||p||m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:c})=>{var a;if(this.preventHide){this.preventHide=!1;return}c!=null&&c.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(c.relatedTarget))||this.hide()},this.tippyBlurHandler=c=>{this.blurHandler({event:c})},this.handleDebouncedUpdate=(c,a)=>{const d=!(a!=null&&a.selection.eq(c.state.selection)),u=!(a!=null&&a.doc.eq(c.state.doc));!d&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(c,d,u,a)},this.updateDelay))},this.updateHandler=(c,a,d,u)=>{var f,h,p;const{state:m,composing:g}=c,{selection:y}=m;if(g||!a&&!d)return;this.createTooltip();const{ranges:E}=y,b=Math.min(...E.map(_=>_.$from.pos)),v=Math.max(...E.map(_=>_.$to.pos));if(!((f=this.shouldShow)===null||f===void 0?void 0:f.call(this,{editor:this.editor,view:c,state:m,oldState:u,from:b,to:v}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(dx(m.selection)){let _=c.nodeDOM(b);const O=_.dataset.nodeViewWrapper?_:_.querySelector("[data-node-view-wrapper]");if(O&&(_=O.firstChild),_)return _.getBoundingClientRect()}return A2(c,b,v)})}),this.show()},this.editor=e,this.element=n,this.view=r,this.updateDelay=i,s&&(this.shouldShow=s),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=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Ei(e,{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,n){const{state:r}=e,o=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&o){this.handleDebouncedUpdate(e,n);return}const i=!(n!=null&&n.selection.eq(e.state.selection)),s=!(n!=null&&n.doc.eq(e.state.doc));this.updateHandler(e,i,s,n)}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,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.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 xy=t=>new Qt({key:typeof t.pluginKey=="string"?new Nn(t.pluginKey):t.pluginKey,view:e=>new GO({view:e,...t})});hn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[xy({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class QO{constructor({editor:e,element:n,view:r,tippyOptions:o={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:c})=>{const{selection:a}=c,{$anchor:d,empty:u}=a,f=d.depth===1,h=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent;return!(!s.hasFocus()||!u||!f||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var c;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(s.relatedTarget))||this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=n,this.view=r,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,n=!!e.parentElement;this.tippy||!n||(this.tippy=Ei(e,{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,n){var r,o,i;const{state:s}=e,{doc:c,selection:a}=s,{from:d,to:u}=a;if(n&&n.doc.eq(c)&&n.selection.eq(a))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:n}))){this.hide();return}(o=this.tippy)===null||o===void 0||o.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>A2(e,d,u))}),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,n;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Oy=t=>new Qt({key:typeof t.pluginKey=="string"?new Nn(t.pluginKey):t.pluginKey,view:e=>new QO({view:e,...t})});hn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Oy({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),l.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=l.ref(null);return l.onMounted(()=>{const{updateDelay:r,editor:o,pluginKey:i,shouldShow:s,tippyOptions:c}=t;o.registerPlugin(xy({updateDelay:r,editor:o,element:n.value,pluginKey:i,shouldShow:s,tippyOptions:c}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Ny(t){return l.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class ZO extends xx{constructor(e={}){return super(e),this.vueRenderers=l.reactive(new Map),this.contentComponent=null,this.reactiveState=Ny(this.view.state),this.reactiveExtensionStorage=Ny(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),l.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,n){super.registerPlugin(e,n),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const JO=l.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=l.ref(),n=l.getCurrentInstance();return l.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&l.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const o=l.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,r.setOptions({element:o}),r.createNodeViews()})}),l.onBeforeUnmount(()=>{const r=t.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const o=document.createElement("div");o.append(...r.options.element.childNodes),r.setOptions({element:o})}),{rootEl:e}},render(){const t=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const n=l.h(l.Teleport,{to:e.teleportElement,key:e.id},l.h(e.component,{ref:e.id,...e.props}));t.push(n)}),l.h("div",{ref:e=>{this.rootEl=e}},...t)}});l.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(t,{slots:e}){const n=l.ref(null);return l.onMounted(()=>{const{pluginKey:r,editor:o,tippyOptions:i,shouldShow:s}=t;o.registerPlugin(Oy({pluginKey:r,editor:o,element:n.value,tippyOptions:i,shouldShow:s}))}),l.onBeforeUnmount(()=>{const{pluginKey:r,editor:o}=t;o.unregisterPlugin(r)}),()=>{var r;return l.h("div",{ref:n},(r=e.default)===null||r===void 0?void 0:r.call(e))}}}),l.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return l.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),l.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return l.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)===null||e===void 0?void 0:e.call(t))}});const XO=(t={})=>{const e=l.shallowRef();return l.onMounted(()=>{e.value=new ZO(t)}),l.onBeforeUnmount(()=>{var n;(n=e.value)===null||n===void 0||n.destroy()}),e},qO=hr.create({name:"doc",topNode:!0,content:"block+"}),eN=hr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tN=hr.create({name:"text",group:"inline"}),nN="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",rN="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Si=(t,e)=>{for(const n in e)t[n]=e[n];return t},gf="numeric",yf="ascii",vf="alpha",Tl="asciinumeric",Il="alphanumeric",bf="domain",My="emoji",oN="scheme",iN="slashscheme",Ly="whitespace";function sN(t,e){return t in e||(e[t]=[]),e[t]}function Oo(t,e,n){e[gf]&&(e[Tl]=!0,e[Il]=!0),e[yf]&&(e[Tl]=!0,e[vf]=!0),e[Tl]&&(e[Il]=!0),e[vf]&&(e[Il]=!0),e[Il]&&(e[bf]=!0),e[My]&&(e[bf]=!0);for(const r in e){const o=sN(r,n);o.indexOf(t)<0&&o.push(t)}}function aN(t,e){const n={};for(const r in e)e[r].indexOf(t)>=0&&(n[r]=!0);return n}function Jt(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}Jt.groups={},Jt.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let r=0;r<e.jr.length;r++){const o=e.jr[r][0],i=e.jr[r][1];if(i&&o.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,r){for(let o=0;o<t.length;o++)this.tt(t[o],e,n,r)},tr(t,e,n,r){r=r||Jt.groups;let o;return e&&e.j?o=e:(o=new Jt(e),n&&r&&Oo(e,n,r)),this.jr.push([t,o]),o},ts(t,e,n,r){let o=this;const i=t.length;if(!i)return o;for(let s=0;s<i-1;s++)o=o.tt(t[s]);return o.tt(t[i-1],e,n,r)},tt(t,e,n,r){r=r||Jt.groups;const o=this;if(e&&e.j)return o.j[t]=e,e;const i=e;let s,c=o.go(t);if(c?(s=new Jt,Si(s.j,c.j),s.jr.push.apply(s.jr,c.jr),s.jd=c.jd,s.t=c.t):s=new Jt,i){if(r)if(s.t&&typeof s.t=="string"){const a=Si(aN(s.t,r),n);Oo(i,a,r)}else n&&Oo(i,n,r);s.t=i}return o.j[t]=s,s}};const je=(t,e,n,r,o)=>t.ta(e,n,r,o),pn=(t,e,n,r,o)=>t.tr(e,n,r,o),Dy=(t,e,n,r,o)=>t.ts(e,n,r,o),be=(t,e,n,r,o)=>t.tt(e,n,r,o),mr="WORD",Cf="UWORD",Hs="LOCALHOST",Ef="TLD",Sf="UTLD",xl="SCHEME",_i="SLASH_SCHEME",_f="NUM",Py="WS",wf="NL",Ws="OPENBRACE",Ks="CLOSEBRACE",Ol="OPENBRACKET",Nl="CLOSEBRACKET",Ml="OPENPAREN",Ll="CLOSEPAREN",Dl="OPENANGLEBRACKET",Pl="CLOSEANGLEBRACKET",Bl="FULLWIDTHLEFTPAREN",Rl="FULLWIDTHRIGHTPAREN",$l="LEFTCORNERBRACKET",Vl="RIGHTCORNERBRACKET",Fl="LEFTWHITECORNERBRACKET",jl="RIGHTWHITECORNERBRACKET",zl="FULLWIDTHLESSTHAN",Ul="FULLWIDTHGREATERTHAN",Hl="AMPERSAND",Wl="APOSTROPHE",Kl="ASTERISK",Kr="AT",Yl="BACKSLASH",Gl="BACKTICK",Ql="CARET",Yr="COLON",kf="COMMA",Zl="DOLLAR",Yn="DOT",Jl="EQUALS",Af="EXCLAMATION",Gn="HYPHEN",Xl="PERCENT",ql="PIPE",ec="PLUS",tc="POUND",nc="QUERY",Tf="QUOTE",If="SEMI",Qn="SLASH",Ys="TILDE",rc="UNDERSCORE",By="EMOJI",oc="SYM";var Ry=Object.freeze({__proto__:null,WORD:mr,UWORD:Cf,LOCALHOST:Hs,TLD:Ef,UTLD:Sf,SCHEME:xl,SLASH_SCHEME:_i,NUM:_f,WS:Py,NL:wf,OPENBRACE:Ws,CLOSEBRACE:Ks,OPENBRACKET:Ol,CLOSEBRACKET:Nl,OPENPAREN:Ml,CLOSEPAREN:Ll,OPENANGLEBRACKET:Dl,CLOSEANGLEBRACKET:Pl,FULLWIDTHLEFTPAREN:Bl,FULLWIDTHRIGHTPAREN:Rl,LEFTCORNERBRACKET:$l,RIGHTCORNERBRACKET:Vl,LEFTWHITECORNERBRACKET:Fl,RIGHTWHITECORNERBRACKET:jl,FULLWIDTHLESSTHAN:zl,FULLWIDTHGREATERTHAN:Ul,AMPERSAND:Hl,APOSTROPHE:Wl,ASTERISK:Kl,AT:Kr,BACKSLASH:Yl,BACKTICK:Gl,CARET:Ql,COLON:Yr,COMMA:kf,DOLLAR:Zl,DOT:Yn,EQUALS:Jl,EXCLAMATION:Af,HYPHEN:Gn,PERCENT:Xl,PIPE:ql,PLUS:ec,POUND:tc,QUERY:nc,QUOTE:Tf,SEMI:If,SLASH:Qn,TILDE:Ys,UNDERSCORE:rc,EMOJI:By,SYM:oc});const wi=/[a-z]/,xf=/\p{L}/u,Of=/\p{Emoji}/u,Nf=/\d/,$y=/\s/,Vy=`
1348
+ `,lN="️",cN="‍";let ic=null,sc=null;function dN(t){t===void 0&&(t=[]);const e={};Jt.groups=e;const n=new Jt;ic==null&&(ic=Fy(nN)),sc==null&&(sc=Fy(rN)),be(n,"'",Wl),be(n,"{",Ws),be(n,"}",Ks),be(n,"[",Ol),be(n,"]",Nl),be(n,"(",Ml),be(n,")",Ll),be(n,"<",Dl),be(n,">",Pl),be(n,"(",Bl),be(n,")",Rl),be(n,"「",$l),be(n,"」",Vl),be(n,"『",Fl),be(n,"』",jl),be(n,"<",zl),be(n,">",Ul),be(n,"&",Hl),be(n,"*",Kl),be(n,"@",Kr),be(n,"`",Gl),be(n,"^",Ql),be(n,":",Yr),be(n,",",kf),be(n,"$",Zl),be(n,".",Yn),be(n,"=",Jl),be(n,"!",Af),be(n,"-",Gn),be(n,"%",Xl),be(n,"|",ql),be(n,"+",ec),be(n,"#",tc),be(n,"?",nc),be(n,'"',Tf),be(n,"/",Qn),be(n,";",If),be(n,"~",Ys),be(n,"_",rc),be(n,"\\",Yl);const r=pn(n,Nf,_f,{[gf]:!0});pn(r,Nf,r);const o=pn(n,wi,mr,{[yf]:!0});pn(o,wi,o);const i=pn(n,xf,Cf,{[vf]:!0});pn(i,wi),pn(i,xf,i);const s=pn(n,$y,Py,{[Ly]:!0});be(n,Vy,wf,{[Ly]:!0}),be(s,Vy),pn(s,$y,s);const c=pn(n,Of,By,{[My]:!0});pn(c,Of,c),be(c,lN,c);const a=be(c,cN);pn(a,Of,c);const d=[[wi,o]],u=[[wi,null],[xf,i]];for(let f=0;f<ic.length;f++)Gr(n,ic[f],Ef,mr,d);for(let f=0;f<sc.length;f++)Gr(n,sc[f],Sf,Cf,u);Oo(Ef,{tld:!0,ascii:!0},e),Oo(Sf,{utld:!0,alpha:!0},e),Gr(n,"file",xl,mr,d),Gr(n,"mailto",xl,mr,d),Gr(n,"http",_i,mr,d),Gr(n,"https",_i,mr,d),Gr(n,"ftp",_i,mr,d),Gr(n,"ftps",_i,mr,d),Oo(xl,{scheme:!0,ascii:!0},e),Oo(_i,{slashscheme:!0,ascii:!0},e),t=t.sort((f,h)=>f[0]>h[0]?1:-1);for(let f=0;f<t.length;f++){const h=t[f][0],m=t[f][1]?{[oN]:!0}:{[iN]:!0};h.indexOf("-")>=0?m[bf]=!0:wi.test(h)?Nf.test(h)?m[Tl]=!0:m[yf]=!0:m[gf]=!0,Dy(n,h,h,m)}return Dy(n,"localhost",Hs,{ascii:!0}),n.jd=new Jt(oc),{start:n,tokens:Si({groups:e},Ry)}}function uN(t,e){const n=fN(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let c=t,a=null,d=0,u=null,f=-1,h=-1;for(;s<r&&(a=c.go(n[s]));)c=a,c.accepts()?(f=0,h=0,u=c):f>=0&&(f+=n[s].length,h++),d+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,d-=f,o.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return o}function fN(t){const e=[],n=t.length;let r=0;for(;r<n;){let o=t.charCodeAt(r),i,s=o<55296||o>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?t[r]:t.slice(r,r+2);e.push(s),r+=s.length}return e}function Gr(t,e,n,r,o){let i;const s=e.length;for(let c=0;c<s-1;c++){const a=e[c];t.j[a]?i=t.j[a]:(i=new Jt(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Jt(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function Fy(t){const e=[],n=[];let r=0,o="0123456789";for(;r<t.length;){let i=0;for(;o.indexOf(t[r+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(r,r+i),10);s>0;s--)n.pop();r+=i}else n.push(t[r]),r++}return e}const Gs={defaultProtocol:"http",events:null,format:jy,formatHref:jy,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Mf(t,e){e===void 0&&(e=null);let n=Si({},Gs);t&&(n=Si(n,t instanceof Mf?t.o:t));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=o}Mf.prototype={o:Gs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const r=e!=null;let o=this.o[t];return o&&(typeof o=="object"?(o=n.t in o?o[n.t]:Gs[t],typeof o=="function"&&r&&(o=o(e,n))):typeof o=="function"&&r&&(o=o(e,n.t,n)),o)},getObj(t,e,n){let r=this.o[t];return typeof r=="function"&&e!=null&&(r=r(e,n.t,n)),r},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function jy(t){return t}function zy(t,e){this.t="token",this.v=t,this.tk=e}zy.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Gs.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},c=t.get("className",n,e),a=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),a&&(s.target=a),d&&(s.rel=d),u&&Si(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function ac(t,e){class n extends zy{constructor(o,i){super(o,i),this.t=t}}for(const r in e)n.prototype[r]=e[r];return n.t=t,n}const Uy=ac("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Hy=ac("text"),hN=ac("nl"),lc=ac("url",{isLink:!0,toHref(t){return t===void 0&&(t=Gs.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Hs&&t[1].t===Yr}}),mn=t=>new Jt(t);function pN(t){let{groups:e}=t;const n=e.domain.concat([Hl,Kl,Kr,Yl,Gl,Ql,Zl,Jl,Gn,_f,Xl,ql,ec,tc,Qn,oc,Ys,rc]),r=[Wl,Yr,kf,Yn,Af,nc,Tf,If,Dl,Pl,Ws,Ks,Nl,Ol,Ml,Ll,Bl,Rl,$l,Vl,Fl,jl,zl,Ul],o=[Hl,Wl,Kl,Yl,Gl,Ql,Zl,Jl,Gn,Ws,Ks,Xl,ql,ec,tc,nc,Qn,oc,Ys,rc],i=mn(),s=be(i,Ys);je(s,o,s),je(s,e.domain,s);const c=mn(),a=mn(),d=mn();je(i,e.domain,c),je(i,e.scheme,a),je(i,e.slashscheme,d),je(c,o,s),je(c,e.domain,c);const u=be(c,Kr);be(s,Kr,u),be(a,Kr,u),be(d,Kr,u);const f=be(s,Yn);je(f,o,s),je(f,e.domain,s);const h=mn();je(u,e.domain,h),je(h,e.domain,h);const p=be(h,Yn);je(p,e.domain,h);const m=mn(Uy);je(p,e.tld,m),je(p,e.utld,m),be(u,Hs,m);const g=be(h,Gn);je(g,e.domain,h),je(m,e.domain,h),be(m,Yn,p),be(m,Gn,g);const y=be(m,Yr);je(y,e.numeric,Uy);const C=be(c,Gn),E=be(c,Yn);je(C,e.domain,c),je(E,o,s),je(E,e.domain,c);const b=mn(lc);je(E,e.tld,b),je(E,e.utld,b),je(b,e.domain,c),je(b,o,s),be(b,Yn,E),be(b,Gn,C),be(b,Kr,u);const v=be(b,Yr),k=mn(lc);je(v,e.numeric,k);const _=mn(lc),O=mn();je(_,n,_),je(_,r,O),je(O,n,_),je(O,r,O),be(b,Qn,_),be(k,Qn,_);const L=be(a,Yr),N=be(d,Yr),j=be(N,Qn),V=be(j,Qn);je(a,e.domain,c),be(a,Yn,E),be(a,Gn,C),je(d,e.domain,c),be(d,Yn,E),be(d,Gn,C),je(L,e.domain,_),be(L,Qn,_),je(V,e.domain,_),je(V,n,_),be(V,Qn,_);const P=[[Ws,Ks],[Ol,Nl],[Ml,Ll],[Dl,Pl],[Bl,Rl],[$l,Vl],[Fl,jl],[zl,Ul]];for(let z=0;z<P.length;z++){const[K,F]=P[z],W=be(_,K);be(O,K,W),be(W,F,_);const Q=mn(lc);je(W,n,Q);const U=mn();je(W,r),je(Q,n,Q),je(Q,r,U),je(U,n,Q),je(U,r,U),be(Q,F,_),be(U,F,_)}return be(i,Hs,b),be(i,wf,hN),{start:i,tokens:Ry}}function mN(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let c=t,a=null,d=null,u=0,f=null,h=-1;for(;o<r&&!(a=c.go(n[o].t));)s.push(n[o++]);for(;o<r&&(d=a||c.go(n[o].t));)a=null,c=d,c.accepts()?(h=0,f=c):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Lf(Hy,e,s)),s=[]),o-=h,u-=h;const p=f.t,m=n.slice(o-u,o);i.push(Lf(p,e,m))}}return s.length>0&&i.push(Lf(Hy,e,s)),i}function Lf(t,e,n){const r=n[0].s,o=n[n.length-1].e,i=e.slice(r,o);return new t(i,n)}const gN=typeof console<"u"&&console&&console.warn||(()=>{}),yN="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ot={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function vN(){Jt.groups={},ot.scanner=null,ot.parser=null,ot.tokenQueue=[],ot.pluginQueue=[],ot.customSchemes=[],ot.initialized=!1}function Wy(t,e){if(e===void 0&&(e=!1),ot.initialized&&gN(`linkifyjs: already initialized - will not register custom scheme "${t}" ${yN}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
1349
1349
  1. Must only contain digits, lowercase ASCII letters or "-"
1350
1350
  2. Cannot start or end with "-"
1351
- 3. "-" cannot repeat`);ot.customSchemes.push([t,e])}function bN(){ot.scanner=dN(ot.customSchemes);for(let t=0;t<ot.tokenQueue.length;t++)ot.tokenQueue[t][1]({scanner:ot.scanner});ot.parser=pN(ot.scanner.tokens);for(let t=0;t<ot.pluginQueue.length;t++)ot.pluginQueue[t][1]({scanner:ot.scanner,parser:ot.parser});ot.initialized=!0}function CN(t){return ot.initialized||bN(),mN(ot.parser.start,t,uN(ot.scanner.start,t))}function Df(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new Mf(n),o=CN(t),i=[];for(let s=0;s<o.length;s++){const c=o[s];c.isLink&&(!e||c.t===e)&&r.check(c)&&i.push(c.toFormattedObject(r))}return i}function EN(t){return new Qt({key:new Nn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=XI(n.doc,[...e]);if(ax(c).forEach(({newRange:d})=>{const u=ex(r.doc,d,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,d.to,void 0," ")),f&&h){const p=h.split(" ").filter(g=>g!=="");if(p.length<=0)return!1;const m=p[p.length-1],y=f.pos+h.lastIndexOf(m);if(!m)return!1;Df(m).filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>r.schema.marks.code?!r.doc.rangeHasMark(g.from,g.to,r.schema.marks.code):!0).filter(g=>t.validate?t.validate(g.value):!0).forEach(g=>{Uu(g.from,g.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function SN(t){return new Qt({key:new Nn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const c=w2(e.state,t.type.name),a=r.target,d=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:c.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:c.target;return a&&d?(e.editable&&window.open(d,u),!0):!1}}})}function _N(t){return new Qt({key:new Nn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const d=Df(a).find(m=>m.isLink&&m.value===a);if(!a||!d)return!1;const u=(o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:d.href;return t.editor.commands.setMark(t.type,{href:p}),!0}}})}const wN=Hn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Wy(t);return}Wy(t.scheme,t.optionalSlashes)})},onDestroy(){vN()},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},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Bs({find:t=>Df(t).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:(t,e)=>{var n,r;const o=(n=e==null?void 0:e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=t.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(EN({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(SN({type:this.type})),this.options.linkOnPaste&&t.push(_N({editor:this.editor,type:this.type})),t}}).extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),kN=fn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Qt({key:new Nn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=t.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(t))&&i.content.findDiffStart(t.content)===null;return t.descendants((c,a)=>{const d=r>=a&&r<=a+c.nodeSize,u=!c.isLeaf&&!c.childCount;if((d||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=un.node(a,a+c.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:a,hasAnchor:d}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),gt.create(t,o)}}})]}}),AN=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,TN=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,IN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,xN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ON=Hn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ml({find:AN,type:this.type}),ml({find:IN,type:this.type})]},addPasteRules(){return[Bs({find:TN,type:this.type}),Bs({find:xN,type:this.type})]}}),NN=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,MN=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,LN=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,DN=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,PN=Hn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ml({find:NN,type:this.type}),ml({find:LN,type:this.type})]},addPasteRules(){return[Bs({find:MN,type:this.type}),Bs({find:DN,type:this.type})]}}),BN=Hn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),RN=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),$N=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),Ky=Hn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=hl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Yy=/^\s*([-+*])\s$/,VN=hr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes($N.name,this.editor.getAttributes(Ky.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=gl({find:Yy,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=gl({find:Yy,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Ky.name),editor:this.editor})),[t]}}),FN=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),Gy=Hn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=hl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Qy=/^(\d+)\.\s$/,jN=hr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Ft(this.options.HTMLAttributes,n),0]:["ol",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(FN.name,this.editor.getAttributes(Gy.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=gl({find:Qy,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=gl({find:Qy,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Gy.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),zN=hr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ft(this.options.HTMLAttributes,t)]},renderText(){return`
1351
+ 3. "-" cannot repeat`);ot.customSchemes.push([t,e])}function bN(){ot.scanner=dN(ot.customSchemes);for(let t=0;t<ot.tokenQueue.length;t++)ot.tokenQueue[t][1]({scanner:ot.scanner});ot.parser=pN(ot.scanner.tokens);for(let t=0;t<ot.pluginQueue.length;t++)ot.pluginQueue[t][1]({scanner:ot.scanner,parser:ot.parser});ot.initialized=!0}function CN(t){return ot.initialized||bN(),mN(ot.parser.start,t,uN(ot.scanner.start,t))}function Df(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new Mf(n),o=CN(t),i=[];for(let s=0;s<o.length;s++){const c=o[s];c.isLink&&(!e||c.t===e)&&r.check(c)&&i.push(c.toFormattedObject(r))}return i}function EN(t){return new Qt({key:new Nn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=XI(n.doc,[...e]);if(ax(c).forEach(({newRange:d})=>{const u=ex(r.doc,d,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,d.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Df(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate?t.validate(y.value):!0).forEach(y=>{Uu(y.from,y.to,r.doc).some(C=>C.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function SN(t){return new Qt({key:new Nn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const c=w2(e.state,t.type.name),a=r.target,d=(o=a==null?void 0:a.href)!==null&&o!==void 0?o:c.href,u=(i=a==null?void 0:a.target)!==null&&i!==void 0?i:c.target;return a&&d?(e.editable&&window.open(d,u),!0):!1}}})}function _N(t){return new Qt({key:new Nn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let a="";r.content.forEach(m=>{a+=m.textContent});const d=Df(a).find(m=>m.isLink&&m.value===a);if(!a||!d)return!1;const u=(o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:d.href;return t.editor.commands.setMark(t.type,{href:p}),!0}}})}const wN=Hn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Wy(t);return}Wy(t.scheme,t.optionalSlashes)})},onDestroy(){vN()},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},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Bs({find:t=>Df(t).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:(t,e)=>{var n,r;const o=(n=e==null?void 0:e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=t.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(EN({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(SN({type:this.type})),this.options.linkOnPaste&&t.push(_N({editor:this.editor,type:this.type})),t}}).extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),kN=hn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Qt({key:new Nn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=t.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(t))&&i.content.findDiffStart(t.content)===null;return t.descendants((c,a)=>{const d=r>=a&&r<=a+c.nodeSize,u=!c.isLeaf&&!c.childCount;if((d||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=fn.node(a,a+c.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:a,hasAnchor:d}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),gt.create(t,o)}}})]}}),AN=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,TN=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,IN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,xN=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ON=Hn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[ml({find:AN,type:this.type}),ml({find:IN,type:this.type})]},addPasteRules(){return[Bs({find:TN,type:this.type}),Bs({find:xN,type:this.type})]}}),NN=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,MN=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,LN=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,DN=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,PN=Hn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ml({find:NN,type:this.type}),ml({find:LN,type:this.type})]},addPasteRules(){return[Bs({find:MN,type:this.type}),Bs({find:DN,type:this.type})]}}),BN=Hn.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["u",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),RN=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),$N=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),Ky=Hn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=hl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Yy=/^\s*([-+*])\s$/,VN=hr.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:t}){return["ul",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes($N.name,this.editor.getAttributes(Ky.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=gl({find:Yy,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=gl({find:Yy,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Ky.name),editor:this.editor})),[t]}}),FN=hr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Ft(this.options.HTMLAttributes,t),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)}}}),Gy=Hn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=hl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),Qy=/^(\d+)\.\s$/,jN=hr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",Ft(this.options.HTMLAttributes,n),0]:["ol",Ft(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(FN.name,this.editor.getAttributes(Gy.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=gl({find:Qy,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=gl({find:Qy,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Gy.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),zN=hr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ft(this.options.HTMLAttributes,t)]},renderText(){return`
1352
1352
  `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:c}=r.extensionManager,a=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&a&&s){const f=a.filter(h=>c.includes(h.type.name));d.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),UN={class:"popover bd-link-input-popover show bd-link-input-bottom"},HN=l.createElementVNode("div",{class:"popover-header"},"Voeg een link toe",-1),WN={class:"popover-body"},KN={class:"form-label"},YN=l.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=l.ref(n.previousUrl??""),o=()=>e("submit",r.value),i=()=>e("cancel");return(s,c)=>(l.openBlock(),l.createElementBlock("div",UN,[HN,l.createElementVNode("div",WN,[l.createElementVNode("label",KN,[l.createTextVNode(" URL: "),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=a=>r.value=a),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[l.vModelText,r.value]])]),l.createElementVNode("div",{class:"d-flex gap-2 mt-2"},[l.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",onClick:o}," Toevoegen "),l.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:i}," Annuleren ")])])]))}}),Pf={BASIC:"basic",FULL:"full"},GN={class:"attachment-list"},QN={class:"attachment-link"},ZN={key:1,class:"attachment-no-download"},JN=["href"],Qs=l.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(t,{emit:e}){const n=r=>{e("delete",r)};return(r,o)=>(l.openBlock(),l.createElementBlock("ul",GN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.files,i=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[l.createElementVNode("div",QN,[r.showDelete?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"remove",onClick:s=>n(i),"aria-label":"verwijder"},{default:l.withCtx(()=>[l.createVNode(l.unref(ji))]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),r.noDownload?(l.openBlock(),l.createElementBlock("div",ZN,[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(i.Naam.trim()),1)])):(l.openBlock(),l.createElementBlock("a",{key:2,href:i.downloadUrl},[l.createVNode(l.unref(Er)),l.createTextVNode(" "+l.toDisplayString(i.Naam.trim()),1)],8,JN))])]))),128))]))}}),XN={class:"attachment-list"},qN={class:"attachment"},eM=["onClick"],tM=["src","alt"],nM=["onClick"],rM=["href"],oM={class:"btn btn-light download-button-image"},iM=["src","alt"],Zs=l.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(t,{emit:e}){const n=t,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(l.openBlock(),l.createElementBlock("ul",XN,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.files,c=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:c.CorrelationId},[l.createElementVNode("div",qN,[i.showDelete?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"remove","aria-label":"verwijder",onClick:l.withModifiers(a=>r(c),["prevent"])},{default:l.withCtx(()=>[l.createVNode(l.unref(ji))]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),n.noDownload?(l.openBlock(),l.createElementBlock("div",{key:1,onClick:a=>o(a,c)},[l.createElementVNode("img",{src:c.previewUrl,class:"img-preview",alt:c.altName,loading:"lazy"},null,8,tM)],8,eM)):(l.openBlock(),l.createElementBlock("div",{key:2,onClick:a=>o(a,c)},[n.fastDownload?(l.openBlock(),l.createElementBlock("a",{key:0,href:c.downloadUrl,class:"download-link"},[l.createElementVNode("button",oM,[l.createVNode(l.unref(Bc))])],8,rM)):l.createCommentVNode("",!0),l.createElementVNode("img",{src:c.previewUrl,alt:c.altName,class:"img-preview",loading:"lazy"},null,8,iM)],8,nM))])]))),128))]))}}),Zy=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),sM=t=>t.DownloadUrl?t.DownloadUrl:t.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?"/Portaal/DownloadBerichtBijlage/"+t.Id:t.FileId?`/Portaal/DownloadStandardMessageAttachment/${t.StandardAttachmentId}/${t.FileId}`:"/Portaal/DownloadBerichtStagingBijlage/"+t.CorrelationId,aM=t=>t.ThumbnailUrl?t.ThumbnailUrl:t.identifier?`/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:t.url?t.url:t.Id?"/Portaal/DownloadBerichtBijlageThumbnail/"+t.Id:t.StandardAttachmentId||t.standardAttachmentId?`/Portaal/DownloadStandardMessageAttachmentThumbnail/${t.StandardAttachmentId}/${t.FileId}`:"/Portaal/DownloadBerichtStagingBijlageThumbnail/"+t.CorrelationId,lM=t=>t.identifier?`/Collega/api/Conversation/GetConversationAttachment?conversationId=${t.conversationId}&fileMetadataId=${t.identifier}`:null,cM=(t,e)=>e?Zy(t):!Zy(t),ki=(t,e)=>t===void 0?void 0:t.filter(r=>cM(r,e)).map(r=>{const o=typeof r.CorrelationId=="string"?r.CorrelationId:r.CorrelationId!=null?r.CorrelationId.toString():"";return{downloadUrl:sM(r),previewUrl:aM(r),fullImageUrl:lM(r),altName:`${r.Naam}`,...r,CorrelationId:o}});/*!
1353
1353
  * Bootstrap v5.3.0 (https://getbootstrap.com/)
1354
1354
  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
1355
1355
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1356
- */const Qr=new Map,Bf={set(t,e,n){Qr.has(t)||Qr.set(t,new Map);const r=Qr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Qr.has(t)&&Qr.get(t).get(e)||null},remove(t,e){if(!Qr.has(t))return;const n=Qr.get(t);n.delete(e),n.size===0&&Qr.delete(t)}},dM=1e6,uM=1e3,Rf="transitionend",Jy=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),fM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),hM=t=>{do t+=Math.floor(Math.random()*dM);while(document.getElementById(t));return t},pM=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),o=Number.parseFloat(n);return!r&&!o?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*uM)},Xy=t=>{t.dispatchEvent(new Event(Rf))},gr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Zr=t=>gr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Jy(t)):null,Ai=t=>{if(!gr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},Jr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",qy=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?qy(t.parentNode):null},cc=()=>{},Js=t=>{t.offsetHeight},ev=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$f=[],mM=t=>{document.readyState==="loading"?($f.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of $f)e()}),$f.push(t)):t()},mn=()=>document.documentElement.dir==="rtl",gn=t=>{mM(()=>{const e=ev();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Xt=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,tv=(t,e,n=!0)=>{if(!n){Xt(t);return}const r=5,o=pM(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(Rf,s),Xt(t))};e.addEventListener(Rf,s),setTimeout(()=>{i||Xy(e)},o)},Vf=(t,e,n,r)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[o-1]:t[0]:(i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},gM=/[^.]*(?=\..*)\.|.*/,yM=/\..*/,vM=/::\d+$/,Ff={};let nv=1;const rv={mouseenter:"mouseover",mouseleave:"mouseout"},bM=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ov(t,e){return e&&`${e}::${nv++}`||t.uidEvent||nv++}function iv(t){const e=ov(t);return t.uidEvent=e,Ff[e]=Ff[e]||{},Ff[e]}function CM(t,e){return function n(r){return zf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function EM(t,e,n){return function r(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const c of i)if(c===s)return zf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function sv(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function av(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=cv(t);return bM.has(i)||(i=t),[r,o,i]}function lv(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=av(e,n,r);e in rv&&(s=(m=>function(y){if(!y.relatedTarget||y.relatedTarget!==y.delegateTarget&&!y.delegateTarget.contains(y.relatedTarget))return m.call(this,y)})(s));const a=iv(t),d=a[c]||(a[c]={}),u=sv(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=ov(s,e.replace(gM,"")),h=i?EM(t,n,s):CM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function jf(t,e,n,r,o){const i=sv(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function SM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&jf(t,e,n,s.callable,s.delegationSelector)}function cv(t){return t=t.replace(yM,""),rv[t]||t}const de={on(t,e,n,r){lv(t,e,n,r,!1)},one(t,e,n,r){lv(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=av(e,n,r),c=s!==e,a=iv(t),d=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;jf(t,a,s,i,o?n:null);return}if(u)for(const f of Object.keys(a))SM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(vM,"");(!c||e.includes(p))&&jf(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=ev(),o=cv(e),i=e!==o;let s=null,c=!0,a=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=zf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),a&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function zf(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function dv(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Uf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yr={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Uf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Uf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=dv(t.dataset[r])}return e},getDataAttribute(t,e){return dv(t.getAttribute(`data-bs-${Uf(e)}`))}};class Xs{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=gr(n)?yr.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...gr(n)?yr.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,o]of Object.entries(n)){const i=e[r],s=gr(i)?"element":fM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const _M="5.3.0";class Bn extends Xs{constructor(e,n){super(),e=Zr(e),e&&(this._element=e,this._config=this._getConfig(n),Bf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){tv(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Bf.get(Zr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return _M}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Hf=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return Jy(e)},Ne={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Jr(n)&&Ai(n))},getSelectorFromElement(t){const e=Hf(t);return e&&Ne.findOne(e)?e:null},getElementFromSelector(t){const e=Hf(t);return e?Ne.findOne(e):null},getMultipleElementsFromSelector(t){const e=Hf(t);return e?Ne.find(e):[]}},dc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Jr(this))return;const i=Ne.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},wM="alert",uv=".bs.alert",kM=`close${uv}`,AM=`closed${uv}`,TM="fade",IM="show";class uc extends Bn{static get NAME(){return wM}close(){if(de.trigger(this._element,kM).defaultPrevented)return;this._element.classList.remove(IM);const n=this._element.classList.contains(TM);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,AM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=uc.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}dc(uc,"close"),gn(uc);const xM="button",OM=".bs.button",NM=".data-api",MM="active",fv='[data-bs-toggle="button"]',LM=`click${OM}${NM}`;class fc extends Bn{static get NAME(){return xM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(MM))}static jQueryInterface(e){return this.each(function(){const n=fc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,LM,fv,t=>{t.preventDefault();const e=t.target.closest(fv);fc.getOrCreateInstance(e).toggle()}),gn(fc);const DM="swipe",Ti=".bs.swipe",PM=`touchstart${Ti}`,BM=`touchmove${Ti}`,RM=`touchend${Ti}`,$M=`pointerdown${Ti}`,VM=`pointerup${Ti}`,FM="touch",jM="pen",zM="pointer-event",UM=40,HM={endCallback:null,leftCallback:null,rightCallback:null},WM={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class hc extends Xs{constructor(e,n){super(),this._element=e,!(!e||!hc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return HM}static get DefaultType(){return WM}static get NAME(){return DM}dispose(){de.off(this._element,Ti)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Xt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=UM)return;const n=e/this._deltaX;this._deltaX=0,n&&Xt(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,$M,e=>this._start(e)),de.on(this._element,VM,e=>this._end(e)),this._element.classList.add(zM)):(de.on(this._element,PM,e=>this._start(e)),de.on(this._element,BM,e=>this._move(e)),de.on(this._element,RM,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===jM||e.pointerType===FM)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const KM="carousel",Xr=".bs.carousel",hv=".data-api",YM="ArrowLeft",GM="ArrowRight",QM=500,qs="next",Ii="prev",xi="left",pc="right",ZM=`slide${Xr}`,Wf=`slid${Xr}`,JM=`keydown${Xr}`,XM=`mouseenter${Xr}`,qM=`mouseleave${Xr}`,eL=`dragstart${Xr}`,tL=`load${Xr}${hv}`,nL=`click${Xr}${hv}`,pv="carousel",mc="active",rL="slide",oL="carousel-item-end",iL="carousel-item-start",sL="carousel-item-next",aL="carousel-item-prev",mv=".active",gv=".carousel-item",lL=mv+gv,cL=".carousel-item img",dL=".carousel-indicators",uL="[data-bs-slide], [data-bs-slide-to]",fL='[data-bs-ride="carousel"]',hL={[YM]:pc,[GM]:xi},pL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},mL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ea extends Bn{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ne.findOne(dL,this._element),this._addEventListeners(),this._config.ride===pv&&this.cycle()}static get Default(){return pL}static get DefaultType(){return mL}static get NAME(){return KM}next(){this._slide(qs)}nextWhenVisible(){!document.hidden&&Ai(this._element)&&this.next()}prev(){this._slide(Ii)}pause(){this._isSliding&&Xy(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Wf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Wf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?qs:Ii;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,JM,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,XM,()=>this.pause()),de.on(this._element,qM,()=>this._maybeEnableCycle())),this._config.touch&&hc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ne.find(cL,this._element))de.on(r,eL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(xi)),rightCallback:()=>this._slide(this._directionToOrder(pc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),QM+this._config.interval))}};this._swipeHelper=new hc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=hL[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ne.findOne(mv,this._indicatorsElement);n.classList.remove(mc),n.removeAttribute("aria-current");const r=Ne.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(mc),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),o=e===qs,i=n||Vf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(ZM).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?iL:oL,f=o?sL:aL;i.classList.add(f),Js(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(mc),r.classList.remove(mc,f,u),this._isSliding=!1,c(Wf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(rL)}_getActive(){return Ne.findOne(lL,this._element)}_getItems(){return Ne.find(gv,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return mn()?e===xi?Ii:qs:e===xi?qs:Ii}_orderToDirection(e){return mn()?e===Ii?xi:pc:e===Ii?pc:xi}static jQueryInterface(e){return this.each(function(){const n=ea.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,nL,uL,function(t){const e=Ne.getElementFromSelector(this);if(!e||!e.classList.contains(pv))return;t.preventDefault();const n=ea.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(yr.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,tL,()=>{const t=Ne.find(fL);for(const e of t)ea.getOrCreateInstance(e)}),gn(ea);const gL="collapse",ta=".bs.collapse",yL=".data-api",vL=`show${ta}`,bL=`shown${ta}`,CL=`hide${ta}`,EL=`hidden${ta}`,SL=`click${ta}${yL}`,Kf="show",Oi="collapse",gc="collapsing",_L="collapsed",wL=`:scope .${Oi} .${Oi}`,kL="collapse-horizontal",AL="width",TL="height",IL=".collapse.show, .collapse.collapsing",Yf='[data-bs-toggle="collapse"]',xL={parent:null,toggle:!0},OL={parent:"(null|element)",toggle:"boolean"};class na extends Bn{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ne.find(Yf);for(const o of r){const i=Ne.getSelectorFromElement(o),s=Ne.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xL}static get DefaultType(){return OL}static get NAME(){return gL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(IL).filter(c=>c!==this._element).map(c=>na.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,vL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(Oi),this._element.classList.add(gc),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(gc),this._element.classList.add(Oi,Kf),this._element.style[r]="",de.trigger(this._element,bL)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,CL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Js(this._element),this._element.classList.add(gc),this._element.classList.remove(Oi,Kf);for(const o of this._triggerArray){const i=Ne.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(gc),this._element.classList.add(Oi),de.trigger(this._element,EL)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Kf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Zr(e.parent),e}_getDimension(){return this._element.classList.contains(kL)?AL:TL}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Yf);for(const n of e){const r=Ne.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ne.find(wL,this._config.parent);return Ne.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(_L,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=na.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,SL,Yf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Ne.getMultipleElementsFromSelector(this))na.getOrCreateInstance(e,{toggle:!1}).toggle()}),gn(na);const yv="dropdown",No=".bs.dropdown",Gf=".data-api",NL="Escape",vv="Tab",ML="ArrowUp",bv="ArrowDown",LL=2,DL=`hide${No}`,PL=`hidden${No}`,BL=`show${No}`,RL=`shown${No}`,Cv=`click${No}${Gf}`,Ev=`keydown${No}${Gf}`,$L=`keyup${No}${Gf}`,Ni="show",VL="dropup",FL="dropend",jL="dropstart",zL="dropup-center",UL="dropdown-center",Mo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',HL=`${Mo}.${Ni}`,yc=".dropdown-menu",WL=".navbar",KL=".navbar-nav",YL=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",GL=mn()?"top-end":"top-start",QL=mn()?"top-start":"top-end",ZL=mn()?"bottom-end":"bottom-start",JL=mn()?"bottom-start":"bottom-end",XL=mn()?"left-start":"right-start",qL=mn()?"right-start":"left-start",eD="top",tD="bottom",nD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},rD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Zn extends Bn{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ne.next(this._element,yc)[0]||Ne.prev(this._element,yc)[0]||Ne.findOne(yc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return nD}static get DefaultType(){return rD}static get NAME(){return yv}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Jr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,BL,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(KL))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",cc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ni),this._element.classList.add(Ni),de.trigger(this._element,RL,e)}}hide(){if(Jr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,DL,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",cc);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ni),this._element.classList.remove(Ni),this._element.setAttribute("aria-expanded","false"),yr.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,PL,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!gr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${yv.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof ay>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:gr(this._config.reference)?e=Zr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=wl(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Ni)}_getPlacement(){const e=this._parent;if(e.classList.contains(FL))return XL;if(e.classList.contains(jL))return qL;if(e.classList.contains(zL))return eD;if(e.classList.contains(UL))return tD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(VL)?n?QL:GL:n?JL:ZL}_detectNavbar(){return this._element.closest(WL)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Xt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Ne.find(YL,this._menu).filter(o=>Ai(o));r.length&&Vf(r,n,e===bv,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Zn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===LL||e.type==="keyup"&&e.key!==vv)return;const n=Ne.find(HL);for(const r of n){const o=Zn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===vv||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:o._element};e.type==="click"&&(c.clickEvent=e),o._completeHide(c)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===NL,o=[ML,bv].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(Mo)?this:Ne.prev(this,Mo)[0]||Ne.next(this,Mo)[0]||Ne.findOne(Mo,e.delegateTarget.parentNode),s=Zn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,Ev,Mo,Zn.dataApiKeydownHandler),de.on(document,Ev,yc,Zn.dataApiKeydownHandler),de.on(document,Cv,Zn.clearMenus),de.on(document,$L,Zn.clearMenus),de.on(document,Cv,Mo,function(t){t.preventDefault(),Zn.getOrCreateInstance(this).toggle()}),gn(Zn);const Sv="backdrop",oD="fade",_v="show",wv=`mousedown.bs.${Sv}`,iD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},sD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class kv extends Xs{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return iD}static get DefaultType(){return sD}static get NAME(){return Sv}show(e){if(!this._config.isVisible){Xt(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Js(n),n.classList.add(_v),this._emulateAnimation(()=>{Xt(e)})}hide(e){if(!this._config.isVisible){Xt(e);return}this._getElement().classList.remove(_v),this._emulateAnimation(()=>{this.dispose(),Xt(e)})}dispose(){this._isAppended&&(de.off(this._element,wv),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(oD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Zr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,wv,()=>{Xt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tv(e,this._getElement(),this._config.isAnimated)}}const aD="focustrap",vc=".bs.focustrap",lD=`focusin${vc}`,cD=`keydown.tab${vc}`,dD="Tab",uD="forward",Av="backward",fD={autofocus:!0,trapElement:null},hD={autofocus:"boolean",trapElement:"element"};class Tv extends Xs{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fD}static get DefaultType(){return hD}static get NAME(){return aD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,vc),de.on(document,lD,e=>this._handleFocusin(e)),de.on(document,cD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,vc))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ne.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Av?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===dD&&(this._lastTabNavDirection=e.shiftKey?Av:uD)}}const Iv=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xv=".sticky-top",bc="padding-right",Ov="margin-right";class Qf{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,bc,n=>n+e),this._setElementAttributes(Iv,bc,n=>n+e),this._setElementAttributes(xv,Ov,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,bc),this._resetElementAttributes(Iv,bc),this._resetElementAttributes(xv,Ov)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,n);const c=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${r(Number.parseFloat(c))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&yr.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=yr.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}yr.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(gr(e)){n(e);return}for(const r of Ne.find(e,this._element))n(r)}}const pD="modal",yn=".bs.modal",mD=".data-api",gD="Escape",yD=`hide${yn}`,vD=`hidePrevented${yn}`,Nv=`hidden${yn}`,Mv=`show${yn}`,bD=`shown${yn}`,CD=`resize${yn}`,ED=`click.dismiss${yn}`,SD=`mousedown.dismiss${yn}`,_D=`keydown.dismiss${yn}`,wD=`click${yn}${mD}`,Lv="modal-open",kD="fade",Dv="show",Zf="modal-static",AD=".modal.show",TD=".modal-dialog",ID=".modal-body",xD='[data-bs-toggle="modal"]',OD={backdrop:!0,focus:!0,keyboard:!0},ND={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qr extends Bn{constructor(e,n){super(e,n),this._dialog=Ne.findOne(TD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qf,this._addEventListeners()}static get Default(){return OD}static get DefaultType(){return ND}static get NAME(){return pD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Mv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Lv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,yD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Dv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,yn),de.off(this._dialog,yn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new kv({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Tv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ne.findOne(ID,this._dialog);n&&(n.scrollTop=0),Js(this._element),this._element.classList.add(Dv);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,bD,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,_D,e=>{if(e.key===gD){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,CD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,SD,e=>{de.one(this._element,ED,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Lv),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Nv)})}_isAnimated(){return this._element.classList.contains(kD)}_triggerBackdropTransition(){if(de.trigger(this._element,vD).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Zf)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Zf),this._queueCallback(()=>{this._element.classList.remove(Zf),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const o=mn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=mn()?"paddingRight":"paddingLeft";this._element.style[o]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=qr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,wD,xD,function(t){const e=Ne.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Mv,o=>{o.defaultPrevented||de.one(e,Nv,()=>{Ai(this)&&this.focus()})});const n=Ne.findOne(AD);n&&qr.getInstance(n).hide(),qr.getOrCreateInstance(e).toggle(this)}),dc(qr),gn(qr);const MD="offcanvas",vr=".bs.offcanvas",Pv=".data-api",LD=`load${vr}${Pv}`,DD="Escape",Bv="show",Rv="showing",$v="hiding",PD="offcanvas-backdrop",Vv=".offcanvas.show",BD=`show${vr}`,RD=`shown${vr}`,$D=`hide${vr}`,Fv=`hidePrevented${vr}`,jv=`hidden${vr}`,VD=`resize${vr}`,FD=`click${vr}${Pv}`,jD=`keydown.dismiss${vr}`,zD='[data-bs-toggle="offcanvas"]',UD={backdrop:!0,keyboard:!0,scroll:!1},HD={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class eo extends Bn{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return UD}static get DefaultType(){return HD}static get NAME(){return MD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,BD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Qf().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Rv);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Bv),this._element.classList.remove(Rv),de.trigger(this._element,RD,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,$D).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($v),this._backdrop.hide();const n=()=>{this._element.classList.remove(Bv,$v),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Qf().reset(),de.trigger(this._element,jv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,Fv);return}this.hide()},n=!!this._config.backdrop;return new kv({className:PD,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new Tv({trapElement:this._element})}_addEventListeners(){de.on(this._element,jD,e=>{if(e.key===DD){if(this._config.keyboard){this.hide();return}de.trigger(this._element,Fv)}})}static jQueryInterface(e){return this.each(function(){const n=eo.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,FD,zD,function(t){const e=Ne.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Jr(this))return;de.one(e,jv,()=>{Ai(this)&&this.focus()});const n=Ne.findOne(Vv);n&&n!==e&&eo.getInstance(n).hide(),eo.getOrCreateInstance(e).toggle(this)}),de.on(window,LD,()=>{for(const t of Ne.find(Vv))eo.getOrCreateInstance(t).show()}),de.on(window,VD,()=>{for(const t of Ne.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&eo.getOrCreateInstance(t).hide()}),dc(eo),gn(eo);const zv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},WD=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),KD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,YD=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?WD.has(n)?!!KD.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function GD(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const c=s.nodeName.toLowerCase();if(!Object.keys(e).includes(c)){s.remove();continue}const a=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of a)YD(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const QD="TemplateFactory",ZD={allowList:zv,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},JD={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},XD={entry:"(string|element|function|null)",selector:"(string|element)"};class qD extends Xs{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ZD}static get DefaultType(){return JD}static get NAME(){return QD}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},XD)}_setContent(e,n,r){const o=Ne.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(gr(n)){this._putElementInTemplate(Zr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?GD(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Xt(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const eP="tooltip",tP=new Set(["sanitize","allowList","sanitizeFn"]),Jf="fade",nP="modal",Cc="show",rP=".tooltip-inner",Uv=`.${nP}`,Hv="hide.bs.modal",ra="hover",Xf="focus",oP="click",iP="manual",sP="hide",aP="hidden",lP="show",cP="shown",dP="inserted",uP="click",fP="focusin",hP="focusout",pP="mouseenter",mP="mouseleave",gP={AUTO:"auto",TOP:"top",RIGHT:mn()?"left":"right",BOTTOM:"bottom",LEFT:mn()?"right":"left"},yP={allowList:zv,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},vP={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Jn extends Bn{constructor(e,n){if(typeof ay>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return yP}static get DefaultType(){return vP}static get NAME(){return eP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(Uv),Hv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(lP)),r=(qy(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(dP))),this._popper=this._createPopper(o),o.classList.add(Cc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",cc);const s=()=>{de.trigger(this._element,this.constructor.eventName(cP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(sP)).defaultPrevented)return;if(this._getTipElement().classList.remove(Cc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",cc);this._activeTrigger[oP]=!1,this._activeTrigger[Xf]=!1,this._activeTrigger[ra]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(aP)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(Jf,Cc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=hM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Jf),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qD({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[rP]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Jf)}_isShown(){return this.tip&&this.tip.classList.contains(Cc)}_createPopper(e){const n=Xt(this._config.placement,[this,e,this._element]),r=gP[n.toUpperCase()];return wl(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Xt(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...Xt(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(uP),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==iP){const r=n===ra?this.constructor.eventName(pP):this.constructor.eventName(fP),o=n===ra?this.constructor.eventName(mP):this.constructor.eventName(hP);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Xf:ra]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Xf:ra]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(Uv),Hv,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=yr.getDataAttributes(this._element);for(const r of Object.keys(n))tP.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Zr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=Jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}gn(Jn);const bP="popover",CP=".popover-header",EP=".popover-body",SP={...Jn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_P={...Jn.DefaultType,content:"(null|string|element|function)"};class Lo extends Jn{static get Default(){return SP}static get DefaultType(){return _P}static get NAME(){return bP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[CP]:this._getTitle(),[EP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Lo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}gn(Lo);const wP="scrollspy",qf=".bs.scrollspy",kP=".data-api",AP=`activate${qf}`,Wv=`click${qf}`,TP=`load${qf}${kP}`,IP="dropdown-item",Mi="active",xP='[data-bs-spy="scroll"]',eh="[href]",OP=".nav, .list-group",Kv=".nav-link",NP=`${Kv}, .nav-item > ${Kv}, .list-group-item`,MP=".dropdown",LP=".dropdown-toggle",DP={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},PP={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ec extends Bn{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return DP}static get DefaultType(){return PP}static get NAME(){return wP}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Zr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,Wv),de.on(this._config.target,Wv,eh,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ne.find(eh,this._config.target);for(const n of e){if(!n.hash||Jr(n))continue;const r=Ne.findOne(decodeURI(n.hash),this._element);Ai(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Mi),this._activateParents(e),de.trigger(this._element,AP,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(IP)){Ne.findOne(LP,e.closest(MP)).classList.add(Mi);return}for(const n of Ne.parents(e,OP))for(const r of Ne.prev(n,NP))r.classList.add(Mi)}_clearActiveClass(e){e.classList.remove(Mi);const n=Ne.find(`${eh}.${Mi}`,e);for(const r of n)r.classList.remove(Mi)}static jQueryInterface(e){return this.each(function(){const n=Ec.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,TP,()=>{for(const t of Ne.find(xP))Ec.getOrCreateInstance(t)}),gn(Ec);const BP="tab",Do=".bs.tab",RP=`hide${Do}`,$P=`hidden${Do}`,VP=`show${Do}`,FP=`shown${Do}`,jP=`click${Do}`,zP=`keydown${Do}`,UP=`load${Do}`,HP="ArrowLeft",Yv="ArrowRight",WP="ArrowUp",Gv="ArrowDown",Po="active",Qv="fade",th="show",KP="dropdown",YP=".dropdown-toggle",GP=".dropdown-menu",nh=":not(.dropdown-toggle)",QP='.list-group, .nav, [role="tablist"]',ZP=".nav-item, .list-group-item",JP=`.nav-link${nh}, .list-group-item${nh}, [role="tab"]${nh}`,Zv='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',rh=`${JP}, ${Zv}`,XP=`.${Po}[data-bs-toggle="tab"], .${Po}[data-bs-toggle="pill"], .${Po}[data-bs-toggle="list"]`;class Li extends Bn{constructor(e){super(e),this._parent=this._element.closest(QP),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,zP,n=>this._keydown(n)))}static get NAME(){return BP}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,RP,{relatedTarget:e}):null;de.trigger(e,VP,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Po),this._activate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(th);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,FP,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Qv))}_deactivate(e,n){if(!e)return;e.classList.remove(Po),e.blur(),this._deactivate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(th);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,$P,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Qv))}_keydown(e){if(![HP,Yv,WP,Gv].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[Yv,Gv].includes(e.key),r=Vf(this._getChildren().filter(o=>!Jr(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Li.getOrCreateInstance(r).show())}_getChildren(){return Ne.find(rh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Ne.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(KP))return;const o=(i,s)=>{const c=Ne.findOne(i,r);c&&c.classList.toggle(s,n)};o(YP,Po),o(GP,th),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Po)}_getInnerElement(e){return e.matches(rh)?e:Ne.findOne(rh,e)}_getOuterElement(e){return e.closest(ZP)||e}static jQueryInterface(e){return this.each(function(){const n=Li.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,jP,Zv,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Jr(this)&&Li.getOrCreateInstance(this).show()}),de.on(window,UP,()=>{for(const t of Ne.find(XP))Li.getOrCreateInstance(t)}),gn(Li);const qP="toast",to=".bs.toast",eB=`mouseover${to}`,tB=`mouseout${to}`,nB=`focusin${to}`,rB=`focusout${to}`,oB=`hide${to}`,iB=`hidden${to}`,sB=`show${to}`,aB=`shown${to}`,lB="fade",Jv="hide",Sc="show",_c="showing",cB={animation:"boolean",autohide:"boolean",delay:"number"},dB={animation:!0,autohide:!0,delay:5e3};class Di extends Bn{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return dB}static get DefaultType(){return cB}static get NAME(){return qP}show(){if(de.trigger(this._element,sB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(lB);const n=()=>{this._element.classList.remove(_c),de.trigger(this._element,aB),this._maybeScheduleHide()};this._element.classList.remove(Jv),Js(this._element),this._element.classList.add(Sc,_c),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,oB).defaultPrevented)return;const n=()=>{this._element.classList.add(Jv),this._element.classList.remove(_c,Sc),de.trigger(this._element,iB)};this._element.classList.add(_c),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Sc),super.dispose()}isShown(){return this._element.classList.contains(Sc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,eB,e=>this._onInteraction(e,!0)),de.on(this._element,tB,e=>this._onInteraction(e,!1)),de.on(this._element,nB,e=>this._onInteraction(e,!0)),de.on(this._element,rB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Di.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}dc(Di),gn(Di);function Xv(t,e){return e.value||t.getAttribute("title")||""}const Pi={mounted:(t,e)=>{const n=Xv(t,e);n&&t.setAttribute("title",n),new Jn(t)},updated:(t,e)=>{const n=Jn.getInstance(t);n&&n.dispose();const r=Xv(t,e);r&&t.setAttribute("title",r),new Jn(t)},unmounted:t=>{const e=Jn.getInstance(t);e&&e.dispose()}},uB={key:0,class:"pills-list__wrapper"},fB={class:"pills-list__ul"},hB={class:"bd-markdown-editor__menu-bottom"},pB={key:0,class:"vr"},qv=l.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:Pf.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=()=>{e("upload")},o=io(n,"modelValue",e),i=[qO,eN,tN,kN.configure({placeholder:n.placeholder}),zN,wN.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===Pf.FULL&&i.push(ON,PN,BN,RN,VN,jN);const s=XO({content:o.value,extensions:i,onUpdate:({editor:P})=>{const{view:z,state:K}=P,{from:F,to:W}=z.state.selection;if(K.doc.textBetween(F-1,W,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:F-1,to:W}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:W,to:W}).run(),P.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",P.getHTML())}});l.watch(()=>n.modelValue,P=>{s.value.getHTML()!==P&&s.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const c=l.computed(()=>n.state===!1?"is-invalid":null),a=l.computed(()=>y("bold")),d=l.computed(()=>y("italic")),u=l.computed(()=>y("underline")),f=l.computed(()=>y("bulletList")),h=l.computed(()=>y("orderedList")),p=l.computed(()=>y("link")),m=l.computed(()=>n.variant===Pf.FULL),y=P=>s.value&&s.value.isActive(P)?"active":null,g=l.computed(()=>n.files&&n.files.length>0?ki(n.files,!1):null),b=l.computed(()=>n.files&&n.files.length>0?ki(n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},C=P=>{e("action",{name:"image-attachment",obj:P})},v=l.computed(()=>{if(!s.value)return!1;const{from:P,to:z}=s.value.state.selection;return P!==z}),k=l.computed(()=>v.value?"Voeg een link toe":"Selecteer eerst tekst"),_=l.ref(!1),O=l.ref(""),L=l.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",_.value=!0},j=P=>{if(_.value=!1,!P){s.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),s.value.chain().focus().toggleLink({href:P}).run()},V=()=>{_.value=!1};return(P,z)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",c.value])},[l.createVNode(l.unref(JO),{editor:l.unref(s)},null,8,["editor"]),P.pills?(l.openBlock(),l.createElementBlock("div",uB,[l.createElementVNode("ul",fB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(P.pills,(K,F)=>(l.openBlock(),l.createElementBlock("li",{key:F,class:"pills-list__li"},[l.createVNode(Ba,l.normalizeProps(l.guardReactiveProps(K)),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(P.$slots,"default"),g.value?(l.openBlock(),l.createBlock(Qs,{key:1,files:g.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):l.createCommentVNode("",!0),b.value?(l.openBlock(),l.createBlock(Zs,{key:2,files:b.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:C},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",hB,[l.createVNode(Qe,{variant:"light",type:"button",onClick:r},{default:l.withCtx(()=>[l.createVNode(l.unref(Er))]),_:1}),m.value?(l.openBlock(),l.createElementBlock("div",pB)):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:1,variant:"light",type:"button",class:l.normalizeClass(a.value),onClick:z[0]||(z[0]=K=>l.unref(s).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Oc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:2,variant:"light",type:"button",class:l.normalizeClass(d.value),onClick:z[1]||(z[1]=K=>l.unref(s).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(jc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:3,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:z[2]||(z[2]=K=>l.unref(s).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:4,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:z[3]||(z[3]=K=>l.unref(s).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Nc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:5,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:z[4]||(z[4]=K=>l.unref(s).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Uc))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[m.value?(l.openBlock(),l.createBlock(Qe,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:N,disabled:!v.value},{default:l.withCtx(()=>[l.createVNode(l.unref(ca))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Pi),k.value]])]),_.value?(l.openBlock(),l.createBlock(YN,{key:3,previousUrl:O.value,onSubmit:j,onCancel:V},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(La,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),mB={class:"header"},gB=l.createElementVNode("div",null,"Menu",-1),yB={class:"icon-close-wrapper"},vB={class:"navbar"},bB={class:"nav navbar-nav w-100"},CB={class:"nav-item"},EB={class:"nav-item"},oh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({active:n.active===!0,inactive:n.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",r.value])},[l.createElementVNode("div",mB,[gB,l.createElementVNode("div",yB,[l.createVNode(aa,{onClick:o})])]),l.createElementVNode("nav",vB,[l.createElementVNode("ul",bB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,a=>(l.openBlock(),l.createElementBlock("li",CB,[l.createVNode(ro,l.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),l.renderSlot(s.$slots,"special-options"),l.createElementVNode("li",EB,[l.createVNode(ro,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),SB={class:"bd-user"},_B={class:"bd-user__information"},wB={class:"text-break"},kB={class:"overflow-x-hidden"},e5=l.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(l.openBlock(),l.createElementBlock("div",SB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(zi,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",_B,[l.createElementVNode("header",null,[l.createElementVNode("h5",wB,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",kB,l.toDisplayString(n.value),1)])]))}}),AB={class:"bd-chat-cloud-card"},TB={class:"bd-chat-cloud-card__header"},IB={class:"bd-chat-cloud-card__body"},xB=["innerHTML"],OB={class:"bd-chat-cloud-card__footer"},NB={key:0,class:"pills-list__wrapper"},MB={class:"pills-list__ul"},t5=l.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=l.computed(()=>n.isSender?"sender":Be),o=l.computed(()=>ki(n.files,!1)),i=l.computed(()=>ki(n.files,!0)),s=()=>{e("action","copy-message")},c=a=>{e("show-attachment",a)};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",r.value])},[l.createVNode(zi,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",AB,[l.createElementVNode("div",TB,[l.renderSlot(a.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(a.headerTitle),1)]),l.createVNode(Qe,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(" kopieer ")]),_:1})]),l.createElementVNode("div",IB,[l.renderSlot(a.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,xB)])]),l.createElementVNode("div",OB,[l.renderSlot(a.$slots,"footer",{},()=>[a.pills?(l.openBlock(),l.createElementBlock("div",NB,[l.createElementVNode("ul",MB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.pills,(u,f)=>(l.openBlock(),l.createElementBlock("li",{key:f,class:"pills-list__li"},[l.createVNode(Ba,l.normalizeProps(l.guardReactiveProps(u)),null,16)]))),128))])])):l.createCommentVNode("",!0),o.value&&o.value.length>0?(l.openBlock(),l.createBlock(Qs,{key:1,files:o.value},null,8,["files"])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Zs,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),LB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=l.ref(n.sortDesc),o=()=>{n.active&&(r.value=!r.value)},i=()=>{if(!n.active)return;const c=r.value?"sortDesc":"sortAsc";e(c)},s=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(c,a)=>{c&&!a&&(r.value=!1,e("sortAsc"))}),i(),(c,a)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(s.value),onClick:a[0]||(a[0]=d=>{o(),i()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!r.value?(l.openBlock(),l.createBlock(l.unref(Hc),{key:0})):n.active&&r.value?(l.openBlock(),l.createBlock(l.unref(Wc),{key:1})):(l.openBlock(),l.createBlock(l.unref(Kc),{key:2}))],2))}}),DB={class:"bd-table"},PB={key:0,class:"table"},BB={key:1},RB=["onClick"],$B={key:0},VB={key:1,class:"empty-text"},n5=l.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(t,{expose:e,emit:n}){const r=t,o=l.ref(r.items),i=l.ref(r.sortBy),s=f=>i.value=f,c=(f,h,p)=>{const m=h[f],y=p[f];if(m==null)return 1;if(y==null)return-1;const g=m.toString(),b=y.toString();return g.localeCompare(b,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>c(f,p,m)),n("sort-changed",{sortBy:f,sortDesc:!1})},d=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return l.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(l.openBlock(),l.createElementBlock("div",DB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",PB,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,p=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[p.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[p.sortable?(l.openBlock(),l.createBlock(LB,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>d(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(l.openBlock(),l.createElementBlock("th",BB,l.toDisplayString(p.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,p=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>n("row-click",p)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock("td",$B,[f.$slots.hasOwnProperty(m.key)?l.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(p[m.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,RB))),256))])])):(l.openBlock(),l.createElementBlock("p",VB,l.toDisplayString(r.emptyText),1))]))}}),FB=["id"],jB={key:0,class:"toast-body__title"},zB={class:"actions"},UB=["textContent"],HB=["textContent"],WB={class:"icon-wrapper"},KB=["textContent"],YB=["textContent"],r5=3e4,o5=5e3,i5=l.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t;let r=l.ref(!1),o=l.ref(!1),i=null,s=null;const c=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),a=l.computed(()=>r.value?[r.value?"is-handled":Be,o.value?"is-handled--success":Be,n.canceled?"is-handled--canceled":Be].join(" "):Be),d=l.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),u=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:o.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{r.value=!0});const f=()=>{const E=c.value,C=document.querySelector(`#${E}`);if(C){C.addEventListener("hide.bs.toast",b);var v={autohide:!0,delay:r5+o5};s=Di.getOrCreateInstance(C,v),s.show(),i=window.setTimeout(h,r5)}};l.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),g()},m=()=>{r.value||(r.value=!0,e("reject-video-call",n.id))},y=()=>{r.value=!0,o.value=!0,e("accept-video-call",n.id),g()},g=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),o5)},b=()=>{r.value=!1,o.value=!1};return(E,C)=>(l.openBlock(),l.createElementBlock("div",{id:c.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(r)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",jB,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",a.value])},[l.unref(r)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",WB,[l.createVNode(ia)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(d.value),class:"title"},null,8,KB),l.createElementVNode("p",{textContent:l.toDisplayString(u.value)},null,8,YB)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(jd,{value:E.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",zB,[l.createVNode(Qe,{variant:"danger",class:"text-center",onClick:p},{default:l.withCtx(()=>[l.createVNode(Mc),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,UB)]),_:1}),l.createVNode(Qe,{variant:"success",class:"text-center",onClick:y},{default:l.withCtx(()=>[l.createVNode(ia),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,HB)]),_:1})])],64))],2)],8,FB))}}),ih=l.defineComponent({__name:"BDDropdown",props:{size:{default:Mt.MD},variant:{default:ua.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=`__BD__DROPDOWN__${n.value}`,o=l.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=l.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=l.computed(()=>({"aria-labelledby":r})),c=l.ref(),a=l.ref(),d=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.toggleTag),l.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(e.text),1)]),_:1},16)),l.createElementVNode("ul",l.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[l.renderSlot(u.$slots,"default")],16)]))}}),GB={class:"row bd-header"},QB={class:"col logo-mix"},ZB=["src"],JB=l.createElementVNode("div",null,"Menu",-1),XB={key:1,class:"col header-options"},qB={class:"col bd-btn-settings"},eR={key:2},sh=l.defineComponent({__name:"BDHeader",props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:["click-logo","signout"],setup(t,{emit:e}){const n=t,r=l.computed(()=>{let u=[];return n.isEmbedded||(n.headerOptions&&(u=u.concat(n.headerOptions)),n.dropdownOptions&&(u=u.concat(n.dropdownOptions))),u}),o=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),i=l.ref(void 0),s=()=>{n.isEmbedded||e("click-logo")},c=()=>e("signout"),a=()=>i.value=!0,d=()=>i.value=!1;return(u,f)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",GB,[l.createElementVNode("div",QB,[l.createVNode(Tc,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,ZB)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:a},[JB,l.createVNode(zc)])),o.value?(l.openBlock(),l.createElementBlock("div",XB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,h=>(l.openBlock(),l.createBlock(Qe,{class:"btn-header",to:h.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",qB,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(u.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(zi,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",eR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ih,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.dropdownOptions,(h,p)=>(l.openBlock(),l.createBlock(Ra,l.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Ra,{key:0,text:"Uitloggen",onClick:c})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(oh,{key:0,active:i.value,options:r.value,onHide:d,onSignout:c},{"special-options":l.withCtx(()=>[l.renderSlot(u.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),tR="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",s5=async(t,e)=>{const n=t+e,o=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(i)).map(c=>c.toString(16).padStart(2,"0")).join("")};function ah(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{l.onMounted(()=>t().then(n))}}}const nR=(t,e,n)=>{const{OnWindowLoaded:r}=ah(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await s5(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await s5(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function a5(t){const{OnWindowLoaded:e}=ah();let n;const r=()=>{n=document.addEventListener("click",i=>{if(!i||!i.target)return;let s=null;if(i.target instanceof Element&&(s=i.target.closest(".popover")),s)return;const c=Lo.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;Lo.getInstance(t.value)||new Lo(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=Lo.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const rR=["data-bs-title","data-bs-content"],oR=["title"],iR={key:0,class:"number-circle",textContent:1},sR=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var u;return(u=e.getNotification)==null?void 0:u.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=nR("notificationsRead",e.userId,n),i=l.ref();a5(i);const s=l.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),y=new Date(p),g=new Date;return g>=m&&g<=y}),c=l.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.tooltip}),a=l.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.title}),d=l.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
1356
+ */const Qr=new Map,Bf={set(t,e,n){Qr.has(t)||Qr.set(t,new Map);const r=Qr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return Qr.has(t)&&Qr.get(t).get(e)||null},remove(t,e){if(!Qr.has(t))return;const n=Qr.get(t);n.delete(e),n.size===0&&Qr.delete(t)}},dM=1e6,uM=1e3,Rf="transitionend",Jy=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),fM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),hM=t=>{do t+=Math.floor(Math.random()*dM);while(document.getElementById(t));return t},pM=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),o=Number.parseFloat(n);return!r&&!o?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*uM)},Xy=t=>{t.dispatchEvent(new Event(Rf))},gr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Zr=t=>gr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Jy(t)):null,Ai=t=>{if(!gr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},Jr=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",qy=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?qy(t.parentNode):null},cc=()=>{},Js=t=>{t.offsetHeight},ev=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$f=[],mM=t=>{document.readyState==="loading"?($f.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of $f)e()}),$f.push(t)):t()},gn=()=>document.documentElement.dir==="rtl",yn=t=>{mM(()=>{const e=ev();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},Xt=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,tv=(t,e,n=!0)=>{if(!n){Xt(t);return}const r=5,o=pM(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(Rf,s),Xt(t))};e.addEventListener(Rf,s),setTimeout(()=>{i||Xy(e)},o)},Vf=(t,e,n,r)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!n&&r?t[o-1]:t[0]:(i+=n?1:-1,r&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},gM=/[^.]*(?=\..*)\.|.*/,yM=/\..*/,vM=/::\d+$/,Ff={};let nv=1;const rv={mouseenter:"mouseover",mouseleave:"mouseout"},bM=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ov(t,e){return e&&`${e}::${nv++}`||t.uidEvent||nv++}function iv(t){const e=ov(t);return t.uidEvent=e,Ff[e]=Ff[e]||{},Ff[e]}function CM(t,e){return function n(r){return zf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function EM(t,e,n){return function r(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const c of i)if(c===s)return zf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function sv(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function av(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=cv(t);return bM.has(i)||(i=t),[r,o,i]}function lv(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=av(e,n,r);e in rv&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=iv(t),d=a[c]||(a[c]={}),u=sv(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=ov(s,e.replace(gM,"")),h=i?EM(t,n,s):CM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function jf(t,e,n,r,o){const i=sv(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function SM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&jf(t,e,n,s.callable,s.delegationSelector)}function cv(t){return t=t.replace(yM,""),rv[t]||t}const de={on(t,e,n,r){lv(t,e,n,r,!1)},one(t,e,n,r){lv(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=av(e,n,r),c=s!==e,a=iv(t),d=a[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;jf(t,a,s,i,o?n:null);return}if(u)for(const f of Object.keys(a))SM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(vM,"");(!c||e.includes(p))&&jf(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=ev(),o=cv(e),i=e!==o;let s=null,c=!0,a=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=zf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),a&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function zf(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function dv(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Uf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const yr={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Uf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Uf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=dv(t.dataset[r])}return e},getDataAttribute(t,e){return dv(t.getAttribute(`data-bs-${Uf(e)}`))}};class Xs{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=gr(n)?yr.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...gr(n)?yr.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,o]of Object.entries(n)){const i=e[r],s=gr(i)?"element":fM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const _M="5.3.0";class Bn extends Xs{constructor(e,n){super(),e=Zr(e),e&&(this._element=e,this._config=this._getConfig(n),Bf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){tv(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Bf.get(Zr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return _M}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Hf=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?n.trim():null}return Jy(e)},Ne={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!Jr(n)&&Ai(n))},getSelectorFromElement(t){const e=Hf(t);return e&&Ne.findOne(e)?e:null},getElementFromSelector(t){const e=Hf(t);return e?Ne.findOne(e):null},getMultipleElementsFromSelector(t){const e=Hf(t);return e?Ne.find(e):[]}},dc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Jr(this))return;const i=Ne.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},wM="alert",uv=".bs.alert",kM=`close${uv}`,AM=`closed${uv}`,TM="fade",IM="show";class uc extends Bn{static get NAME(){return wM}close(){if(de.trigger(this._element,kM).defaultPrevented)return;this._element.classList.remove(IM);const n=this._element.classList.contains(TM);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,AM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=uc.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}dc(uc,"close"),yn(uc);const xM="button",OM=".bs.button",NM=".data-api",MM="active",fv='[data-bs-toggle="button"]',LM=`click${OM}${NM}`;class fc extends Bn{static get NAME(){return xM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(MM))}static jQueryInterface(e){return this.each(function(){const n=fc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,LM,fv,t=>{t.preventDefault();const e=t.target.closest(fv);fc.getOrCreateInstance(e).toggle()}),yn(fc);const DM="swipe",Ti=".bs.swipe",PM=`touchstart${Ti}`,BM=`touchmove${Ti}`,RM=`touchend${Ti}`,$M=`pointerdown${Ti}`,VM=`pointerup${Ti}`,FM="touch",jM="pen",zM="pointer-event",UM=40,HM={endCallback:null,leftCallback:null,rightCallback:null},WM={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class hc extends Xs{constructor(e,n){super(),this._element=e,!(!e||!hc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return HM}static get DefaultType(){return WM}static get NAME(){return DM}dispose(){de.off(this._element,Ti)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Xt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=UM)return;const n=e/this._deltaX;this._deltaX=0,n&&Xt(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,$M,e=>this._start(e)),de.on(this._element,VM,e=>this._end(e)),this._element.classList.add(zM)):(de.on(this._element,PM,e=>this._start(e)),de.on(this._element,BM,e=>this._move(e)),de.on(this._element,RM,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===jM||e.pointerType===FM)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const KM="carousel",Xr=".bs.carousel",hv=".data-api",YM="ArrowLeft",GM="ArrowRight",QM=500,qs="next",Ii="prev",xi="left",pc="right",ZM=`slide${Xr}`,Wf=`slid${Xr}`,JM=`keydown${Xr}`,XM=`mouseenter${Xr}`,qM=`mouseleave${Xr}`,eL=`dragstart${Xr}`,tL=`load${Xr}${hv}`,nL=`click${Xr}${hv}`,pv="carousel",mc="active",rL="slide",oL="carousel-item-end",iL="carousel-item-start",sL="carousel-item-next",aL="carousel-item-prev",mv=".active",gv=".carousel-item",lL=mv+gv,cL=".carousel-item img",dL=".carousel-indicators",uL="[data-bs-slide], [data-bs-slide-to]",fL='[data-bs-ride="carousel"]',hL={[YM]:pc,[GM]:xi},pL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},mL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ea extends Bn{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ne.findOne(dL,this._element),this._addEventListeners(),this._config.ride===pv&&this.cycle()}static get Default(){return pL}static get DefaultType(){return mL}static get NAME(){return KM}next(){this._slide(qs)}nextWhenVisible(){!document.hidden&&Ai(this._element)&&this.next()}prev(){this._slide(Ii)}pause(){this._isSliding&&Xy(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Wf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Wf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?qs:Ii;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,JM,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,XM,()=>this.pause()),de.on(this._element,qM,()=>this._maybeEnableCycle())),this._config.touch&&hc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ne.find(cL,this._element))de.on(r,eL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(xi)),rightCallback:()=>this._slide(this._directionToOrder(pc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),QM+this._config.interval))}};this._swipeHelper=new hc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=hL[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ne.findOne(mv,this._indicatorsElement);n.classList.remove(mc),n.removeAttribute("aria-current");const r=Ne.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(mc),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),o=e===qs,i=n||Vf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(ZM).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?iL:oL,f=o?sL:aL;i.classList.add(f),Js(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(mc),r.classList.remove(mc,f,u),this._isSliding=!1,c(Wf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(rL)}_getActive(){return Ne.findOne(lL,this._element)}_getItems(){return Ne.find(gv,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return gn()?e===xi?Ii:qs:e===xi?qs:Ii}_orderToDirection(e){return gn()?e===Ii?xi:pc:e===Ii?pc:xi}static jQueryInterface(e){return this.each(function(){const n=ea.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,nL,uL,function(t){const e=Ne.getElementFromSelector(this);if(!e||!e.classList.contains(pv))return;t.preventDefault();const n=ea.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(yr.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,tL,()=>{const t=Ne.find(fL);for(const e of t)ea.getOrCreateInstance(e)}),yn(ea);const gL="collapse",ta=".bs.collapse",yL=".data-api",vL=`show${ta}`,bL=`shown${ta}`,CL=`hide${ta}`,EL=`hidden${ta}`,SL=`click${ta}${yL}`,Kf="show",Oi="collapse",gc="collapsing",_L="collapsed",wL=`:scope .${Oi} .${Oi}`,kL="collapse-horizontal",AL="width",TL="height",IL=".collapse.show, .collapse.collapsing",Yf='[data-bs-toggle="collapse"]',xL={parent:null,toggle:!0},OL={parent:"(null|element)",toggle:"boolean"};class na extends Bn{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ne.find(Yf);for(const o of r){const i=Ne.getSelectorFromElement(o),s=Ne.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xL}static get DefaultType(){return OL}static get NAME(){return gL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(IL).filter(c=>c!==this._element).map(c=>na.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,vL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(Oi),this._element.classList.add(gc),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(gc),this._element.classList.add(Oi,Kf),this._element.style[r]="",de.trigger(this._element,bL)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,CL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Js(this._element),this._element.classList.add(gc),this._element.classList.remove(Oi,Kf);for(const o of this._triggerArray){const i=Ne.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(gc),this._element.classList.add(Oi),de.trigger(this._element,EL)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Kf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Zr(e.parent),e}_getDimension(){return this._element.classList.contains(kL)?AL:TL}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Yf);for(const n of e){const r=Ne.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ne.find(wL,this._config.parent);return Ne.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(_L,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=na.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,SL,Yf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Ne.getMultipleElementsFromSelector(this))na.getOrCreateInstance(e,{toggle:!1}).toggle()}),yn(na);const yv="dropdown",No=".bs.dropdown",Gf=".data-api",NL="Escape",vv="Tab",ML="ArrowUp",bv="ArrowDown",LL=2,DL=`hide${No}`,PL=`hidden${No}`,BL=`show${No}`,RL=`shown${No}`,Cv=`click${No}${Gf}`,Ev=`keydown${No}${Gf}`,$L=`keyup${No}${Gf}`,Ni="show",VL="dropup",FL="dropend",jL="dropstart",zL="dropup-center",UL="dropdown-center",Mo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',HL=`${Mo}.${Ni}`,yc=".dropdown-menu",WL=".navbar",KL=".navbar-nav",YL=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",GL=gn()?"top-end":"top-start",QL=gn()?"top-start":"top-end",ZL=gn()?"bottom-end":"bottom-start",JL=gn()?"bottom-start":"bottom-end",XL=gn()?"left-start":"right-start",qL=gn()?"right-start":"left-start",eD="top",tD="bottom",nD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},rD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Zn extends Bn{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ne.next(this._element,yc)[0]||Ne.prev(this._element,yc)[0]||Ne.findOne(yc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return nD}static get DefaultType(){return rD}static get NAME(){return yv}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Jr(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,BL,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(KL))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",cc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ni),this._element.classList.add(Ni),de.trigger(this._element,RL,e)}}hide(){if(Jr(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,DL,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",cc);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ni),this._element.classList.remove(Ni),this._element.setAttribute("aria-expanded","false"),yr.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,PL,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!gr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${yv.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof ay>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:gr(this._config.reference)?e=Zr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=wl(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Ni)}_getPlacement(){const e=this._parent;if(e.classList.contains(FL))return XL;if(e.classList.contains(jL))return qL;if(e.classList.contains(zL))return eD;if(e.classList.contains(UL))return tD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(VL)?n?QL:GL:n?JL:ZL}_detectNavbar(){return this._element.closest(WL)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(yr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Xt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Ne.find(YL,this._menu).filter(o=>Ai(o));r.length&&Vf(r,n,e===bv,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Zn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===LL||e.type==="keyup"&&e.key!==vv)return;const n=Ne.find(HL);for(const r of n){const o=Zn.getInstance(r);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===vv||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const c={relatedTarget:o._element};e.type==="click"&&(c.clickEvent=e),o._completeHide(c)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===NL,o=[ML,bv].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(Mo)?this:Ne.prev(this,Mo)[0]||Ne.next(this,Mo)[0]||Ne.findOne(Mo,e.delegateTarget.parentNode),s=Zn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,Ev,Mo,Zn.dataApiKeydownHandler),de.on(document,Ev,yc,Zn.dataApiKeydownHandler),de.on(document,Cv,Zn.clearMenus),de.on(document,$L,Zn.clearMenus),de.on(document,Cv,Mo,function(t){t.preventDefault(),Zn.getOrCreateInstance(this).toggle()}),yn(Zn);const Sv="backdrop",oD="fade",_v="show",wv=`mousedown.bs.${Sv}`,iD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},sD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class kv extends Xs{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return iD}static get DefaultType(){return sD}static get NAME(){return Sv}show(e){if(!this._config.isVisible){Xt(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Js(n),n.classList.add(_v),this._emulateAnimation(()=>{Xt(e)})}hide(e){if(!this._config.isVisible){Xt(e);return}this._getElement().classList.remove(_v),this._emulateAnimation(()=>{this.dispose(),Xt(e)})}dispose(){this._isAppended&&(de.off(this._element,wv),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(oD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Zr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,wv,()=>{Xt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){tv(e,this._getElement(),this._config.isAnimated)}}const aD="focustrap",vc=".bs.focustrap",lD=`focusin${vc}`,cD=`keydown.tab${vc}`,dD="Tab",uD="forward",Av="backward",fD={autofocus:!0,trapElement:null},hD={autofocus:"boolean",trapElement:"element"};class Tv extends Xs{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return fD}static get DefaultType(){return hD}static get NAME(){return aD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,vc),de.on(document,lD,e=>this._handleFocusin(e)),de.on(document,cD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,vc))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ne.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Av?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===dD&&(this._lastTabNavDirection=e.shiftKey?Av:uD)}}const Iv=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xv=".sticky-top",bc="padding-right",Ov="margin-right";class Qf{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,bc,n=>n+e),this._setElementAttributes(Iv,bc,n=>n+e),this._setElementAttributes(xv,Ov,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,bc),this._resetElementAttributes(Iv,bc),this._resetElementAttributes(xv,Ov)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,n);const c=window.getComputedStyle(s).getPropertyValue(n);s.style.setProperty(n,`${r(Number.parseFloat(c))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&yr.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=yr.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}yr.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(gr(e)){n(e);return}for(const r of Ne.find(e,this._element))n(r)}}const pD="modal",vn=".bs.modal",mD=".data-api",gD="Escape",yD=`hide${vn}`,vD=`hidePrevented${vn}`,Nv=`hidden${vn}`,Mv=`show${vn}`,bD=`shown${vn}`,CD=`resize${vn}`,ED=`click.dismiss${vn}`,SD=`mousedown.dismiss${vn}`,_D=`keydown.dismiss${vn}`,wD=`click${vn}${mD}`,Lv="modal-open",kD="fade",Dv="show",Zf="modal-static",AD=".modal.show",TD=".modal-dialog",ID=".modal-body",xD='[data-bs-toggle="modal"]',OD={backdrop:!0,focus:!0,keyboard:!0},ND={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class qr extends Bn{constructor(e,n){super(e,n),this._dialog=Ne.findOne(TD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Qf,this._addEventListeners()}static get Default(){return OD}static get DefaultType(){return ND}static get NAME(){return pD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Mv,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Lv),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,yD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Dv),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,vn),de.off(this._dialog,vn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new kv({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Tv({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ne.findOne(ID,this._dialog);n&&(n.scrollTop=0),Js(this._element),this._element.classList.add(Dv);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,bD,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,_D,e=>{if(e.key===gD){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,CD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,SD,e=>{de.one(this._element,ED,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Lv),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Nv)})}_isAnimated(){return this._element.classList.contains(kD)}_triggerBackdropTransition(){if(de.trigger(this._element,vD).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Zf)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Zf),this._queueCallback(()=>{this._element.classList.remove(Zf),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const o=gn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=gn()?"paddingRight":"paddingLeft";this._element.style[o]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=qr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,wD,xD,function(t){const e=Ne.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Mv,o=>{o.defaultPrevented||de.one(e,Nv,()=>{Ai(this)&&this.focus()})});const n=Ne.findOne(AD);n&&qr.getInstance(n).hide(),qr.getOrCreateInstance(e).toggle(this)}),dc(qr),yn(qr);const MD="offcanvas",vr=".bs.offcanvas",Pv=".data-api",LD=`load${vr}${Pv}`,DD="Escape",Bv="show",Rv="showing",$v="hiding",PD="offcanvas-backdrop",Vv=".offcanvas.show",BD=`show${vr}`,RD=`shown${vr}`,$D=`hide${vr}`,Fv=`hidePrevented${vr}`,jv=`hidden${vr}`,VD=`resize${vr}`,FD=`click${vr}${Pv}`,jD=`keydown.dismiss${vr}`,zD='[data-bs-toggle="offcanvas"]',UD={backdrop:!0,keyboard:!0,scroll:!1},HD={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class eo extends Bn{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return UD}static get DefaultType(){return HD}static get NAME(){return MD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,BD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Qf().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Rv);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Bv),this._element.classList.remove(Rv),de.trigger(this._element,RD,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,$D).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($v),this._backdrop.hide();const n=()=>{this._element.classList.remove(Bv,$v),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Qf().reset(),de.trigger(this._element,jv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,Fv);return}this.hide()},n=!!this._config.backdrop;return new kv({className:PD,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new Tv({trapElement:this._element})}_addEventListeners(){de.on(this._element,jD,e=>{if(e.key===DD){if(this._config.keyboard){this.hide();return}de.trigger(this._element,Fv)}})}static jQueryInterface(e){return this.each(function(){const n=eo.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,FD,zD,function(t){const e=Ne.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Jr(this))return;de.one(e,jv,()=>{Ai(this)&&this.focus()});const n=Ne.findOne(Vv);n&&n!==e&&eo.getInstance(n).hide(),eo.getOrCreateInstance(e).toggle(this)}),de.on(window,LD,()=>{for(const t of Ne.find(Vv))eo.getOrCreateInstance(t).show()}),de.on(window,VD,()=>{for(const t of Ne.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&eo.getOrCreateInstance(t).hide()}),dc(eo),yn(eo);const zv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},WD=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),KD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,YD=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?WD.has(n)?!!KD.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function GD(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const c=s.nodeName.toLowerCase();if(!Object.keys(e).includes(c)){s.remove();continue}const a=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of a)YD(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const QD="TemplateFactory",ZD={allowList:zv,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},JD={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},XD={entry:"(string|element|function|null)",selector:"(string|element)"};class qD extends Xs{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ZD}static get DefaultType(){return JD}static get NAME(){return QD}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},XD)}_setContent(e,n,r){const o=Ne.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(gr(n)){this._putElementInTemplate(Zr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?GD(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Xt(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const eP="tooltip",tP=new Set(["sanitize","allowList","sanitizeFn"]),Jf="fade",nP="modal",Cc="show",rP=".tooltip-inner",Uv=`.${nP}`,Hv="hide.bs.modal",ra="hover",Xf="focus",oP="click",iP="manual",sP="hide",aP="hidden",lP="show",cP="shown",dP="inserted",uP="click",fP="focusin",hP="focusout",pP="mouseenter",mP="mouseleave",gP={AUTO:"auto",TOP:"top",RIGHT:gn()?"left":"right",BOTTOM:"bottom",LEFT:gn()?"right":"left"},yP={allowList:zv,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},vP={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Jn extends Bn{constructor(e,n){if(typeof ay>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return yP}static get DefaultType(){return vP}static get NAME(){return eP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(Uv),Hv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(lP)),r=(qy(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(dP))),this._popper=this._createPopper(o),o.classList.add(Cc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",cc);const s=()=>{de.trigger(this._element,this.constructor.eventName(cP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(sP)).defaultPrevented)return;if(this._getTipElement().classList.remove(Cc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",cc);this._activeTrigger[oP]=!1,this._activeTrigger[Xf]=!1,this._activeTrigger[ra]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(aP)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(Jf,Cc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=hM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Jf),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new qD({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[rP]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Jf)}_isShown(){return this.tip&&this.tip.classList.contains(Cc)}_createPopper(e){const n=Xt(this._config.placement,[this,e,this._element]),r=gP[n.toUpperCase()];return wl(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return Xt(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...Xt(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(uP),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==iP){const r=n===ra?this.constructor.eventName(pP):this.constructor.eventName(fP),o=n===ra?this.constructor.eventName(mP):this.constructor.eventName(hP);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Xf:ra]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Xf:ra]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(Uv),Hv,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=yr.getDataAttributes(this._element);for(const r of Object.keys(n))tP.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Zr(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=Jn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}yn(Jn);const bP="popover",CP=".popover-header",EP=".popover-body",SP={...Jn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},_P={...Jn.DefaultType,content:"(null|string|element|function)"};class Lo extends Jn{static get Default(){return SP}static get DefaultType(){return _P}static get NAME(){return bP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[CP]:this._getTitle(),[EP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Lo.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}yn(Lo);const wP="scrollspy",qf=".bs.scrollspy",kP=".data-api",AP=`activate${qf}`,Wv=`click${qf}`,TP=`load${qf}${kP}`,IP="dropdown-item",Mi="active",xP='[data-bs-spy="scroll"]',eh="[href]",OP=".nav, .list-group",Kv=".nav-link",NP=`${Kv}, .nav-item > ${Kv}, .list-group-item`,MP=".dropdown",LP=".dropdown-toggle",DP={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},PP={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ec extends Bn{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return DP}static get DefaultType(){return PP}static get NAME(){return wP}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Zr(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,Wv),de.on(this._config.target,Wv,eh,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ne.find(eh,this._config.target);for(const n of e){if(!n.hash||Jr(n))continue;const r=Ne.findOne(decodeURI(n.hash),this._element);Ai(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Mi),this._activateParents(e),de.trigger(this._element,AP,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(IP)){Ne.findOne(LP,e.closest(MP)).classList.add(Mi);return}for(const n of Ne.parents(e,OP))for(const r of Ne.prev(n,NP))r.classList.add(Mi)}_clearActiveClass(e){e.classList.remove(Mi);const n=Ne.find(`${eh}.${Mi}`,e);for(const r of n)r.classList.remove(Mi)}static jQueryInterface(e){return this.each(function(){const n=Ec.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,TP,()=>{for(const t of Ne.find(xP))Ec.getOrCreateInstance(t)}),yn(Ec);const BP="tab",Do=".bs.tab",RP=`hide${Do}`,$P=`hidden${Do}`,VP=`show${Do}`,FP=`shown${Do}`,jP=`click${Do}`,zP=`keydown${Do}`,UP=`load${Do}`,HP="ArrowLeft",Yv="ArrowRight",WP="ArrowUp",Gv="ArrowDown",Po="active",Qv="fade",th="show",KP="dropdown",YP=".dropdown-toggle",GP=".dropdown-menu",nh=":not(.dropdown-toggle)",QP='.list-group, .nav, [role="tablist"]',ZP=".nav-item, .list-group-item",JP=`.nav-link${nh}, .list-group-item${nh}, [role="tab"]${nh}`,Zv='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',rh=`${JP}, ${Zv}`,XP=`.${Po}[data-bs-toggle="tab"], .${Po}[data-bs-toggle="pill"], .${Po}[data-bs-toggle="list"]`;class Li extends Bn{constructor(e){super(e),this._parent=this._element.closest(QP),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,zP,n=>this._keydown(n)))}static get NAME(){return BP}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,RP,{relatedTarget:e}):null;de.trigger(e,VP,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Po),this._activate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(th);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,FP,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Qv))}_deactivate(e,n){if(!e)return;e.classList.remove(Po),e.blur(),this._deactivate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(th);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,$P,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(Qv))}_keydown(e){if(![HP,Yv,WP,Gv].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[Yv,Gv].includes(e.key),r=Vf(this._getChildren().filter(o=>!Jr(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Li.getOrCreateInstance(r).show())}_getChildren(){return Ne.find(rh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Ne.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(KP))return;const o=(i,s)=>{const c=Ne.findOne(i,r);c&&c.classList.toggle(s,n)};o(YP,Po),o(GP,th),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Po)}_getInnerElement(e){return e.matches(rh)?e:Ne.findOne(rh,e)}_getOuterElement(e){return e.closest(ZP)||e}static jQueryInterface(e){return this.each(function(){const n=Li.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,jP,Zv,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Jr(this)&&Li.getOrCreateInstance(this).show()}),de.on(window,UP,()=>{for(const t of Ne.find(XP))Li.getOrCreateInstance(t)}),yn(Li);const qP="toast",to=".bs.toast",eB=`mouseover${to}`,tB=`mouseout${to}`,nB=`focusin${to}`,rB=`focusout${to}`,oB=`hide${to}`,iB=`hidden${to}`,sB=`show${to}`,aB=`shown${to}`,lB="fade",Jv="hide",Sc="show",_c="showing",cB={animation:"boolean",autohide:"boolean",delay:"number"},dB={animation:!0,autohide:!0,delay:5e3};class Di extends Bn{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return dB}static get DefaultType(){return cB}static get NAME(){return qP}show(){if(de.trigger(this._element,sB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(lB);const n=()=>{this._element.classList.remove(_c),de.trigger(this._element,aB),this._maybeScheduleHide()};this._element.classList.remove(Jv),Js(this._element),this._element.classList.add(Sc,_c),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,oB).defaultPrevented)return;const n=()=>{this._element.classList.add(Jv),this._element.classList.remove(_c,Sc),de.trigger(this._element,iB)};this._element.classList.add(_c),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Sc),super.dispose()}isShown(){return this._element.classList.contains(Sc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,eB,e=>this._onInteraction(e,!0)),de.on(this._element,tB,e=>this._onInteraction(e,!1)),de.on(this._element,nB,e=>this._onInteraction(e,!0)),de.on(this._element,rB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Di.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}dc(Di),yn(Di);function Xv(t,e){return e.value||t.getAttribute("title")||""}const Pi={mounted:(t,e)=>{const n=Xv(t,e);n&&t.setAttribute("title",n),new Jn(t)},updated:(t,e)=>{const n=Jn.getInstance(t);n&&n.dispose();const r=Xv(t,e);r&&t.setAttribute("title",r),new Jn(t)},unmounted:t=>{const e=Jn.getInstance(t);e&&e.dispose()}},uB={key:0,class:"pills-list__wrapper"},fB={class:"pills-list__ul"},hB={class:"bd-markdown-editor__menu-bottom"},pB={key:0,class:"vr"},qv=l.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:Pf.BASIC},files:{default:void 0},pills:{default:void 0},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=()=>{e("upload")},o=io(n,"modelValue",e),i=[qO,eN,tN,kN.configure({placeholder:n.placeholder}),zN,wN.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===Pf.FULL&&i.push(ON,PN,BN,RN,VN,jN);const s=XO({content:o.value,extensions:i,onUpdate:({editor:P})=>{const{view:z,state:K}=P,{from:F,to:W}=z.state.selection;if(K.doc.textBetween(F-1,W,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:F-1,to:W}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:W,to:W}).run(),P.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",P.getHTML())}});l.watch(()=>n.modelValue,P=>{s.value.getHTML()!==P&&s.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const c=l.computed(()=>n.state===!1?"is-invalid":null),a=l.computed(()=>g("bold")),d=l.computed(()=>g("italic")),u=l.computed(()=>g("underline")),f=l.computed(()=>g("bulletList")),h=l.computed(()=>g("orderedList")),p=l.computed(()=>g("link")),m=l.computed(()=>n.variant===Pf.FULL),g=P=>s.value&&s.value.isActive(P)?"active":null,y=l.computed(()=>n.files&&n.files.length>0?ki(n.files,!1):null),C=l.computed(()=>n.files&&n.files.length>0?ki(n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},b=P=>{e("action",{name:"image-attachment",obj:P})},v=l.computed(()=>{if(!s.value)return!1;const{from:P,to:z}=s.value.state.selection;return P!==z}),k=l.computed(()=>v.value?"Voeg een link toe":"Selecteer eerst tekst"),_=l.ref(!1),O=l.ref(""),L=l.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",_.value=!0},j=P=>{if(_.value=!1,!P){s.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),s.value.chain().focus().toggleLink({href:P}).run()},V=()=>{_.value=!1};return(P,z)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",c.value])},[l.createVNode(l.unref(JO),{editor:l.unref(s)},null,8,["editor"]),P.pills?(l.openBlock(),l.createElementBlock("div",uB,[l.createElementVNode("ul",fB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(P.pills,(K,F)=>(l.openBlock(),l.createElementBlock("li",{key:F,class:"pills-list__li"},[l.createVNode(Ba,l.normalizeProps(l.guardReactiveProps(K)),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(P.$slots,"default"),y.value?(l.openBlock(),l.createBlock(Qs,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):l.createCommentVNode("",!0),C.value?(l.openBlock(),l.createBlock(Zs,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:b},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",hB,[l.createVNode(Qe,{variant:"light",type:"button",onClick:r},{default:l.withCtx(()=>[l.createVNode(l.unref(Er))]),_:1}),m.value?(l.openBlock(),l.createElementBlock("div",pB)):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:1,variant:"light",type:"button",class:l.normalizeClass(a.value),onClick:z[0]||(z[0]=K=>l.unref(s).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Oc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:2,variant:"light",type:"button",class:l.normalizeClass(d.value),onClick:z[1]||(z[1]=K=>l.unref(s).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(jc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:3,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:z[2]||(z[2]=K=>l.unref(s).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:4,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:z[3]||(z[3]=K=>l.unref(s).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Nc))]),_:1},8,["class"])):l.createCommentVNode("",!0),m.value?(l.openBlock(),l.createBlock(Qe,{key:5,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:z[4]||(z[4]=K=>l.unref(s).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Uc))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[m.value?(l.openBlock(),l.createBlock(Qe,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:N,disabled:!v.value},{default:l.withCtx(()=>[l.createVNode(l.unref(ca))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Pi),k.value]])]),_.value?(l.openBlock(),l.createBlock(YN,{key:3,previousUrl:O.value,onSubmit:j,onCancel:V},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(La,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),mB={class:"header"},gB=l.createElementVNode("div",null,"Menu",-1),yB={class:"icon-close-wrapper"},vB={class:"navbar"},bB={class:"nav navbar-nav w-100"},CB={class:"nav-item"},EB={class:"nav-item"},oh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=t,r=l.computed(()=>({active:n.active===!0,inactive:n.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",r.value])},[l.createElementVNode("div",mB,[gB,l.createElementVNode("div",yB,[l.createVNode(aa,{onClick:o})])]),l.createElementVNode("nav",vB,[l.createElementVNode("ul",bB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.options,a=>(l.openBlock(),l.createElementBlock("li",CB,[l.createVNode(ro,l.mergeProps({class:"nav-link"},a,{onClick:o}),null,16)]))),256)),l.renderSlot(s.$slots,"special-options"),l.createElementVNode("li",EB,[l.createVNode(ro,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),SB={class:"bd-user"},_B={class:"bd-user__information"},wB={class:"text-break"},kB={class:"overflow-x-hidden"},e5=l.defineComponent({__name:"BDUser",props:{name:{default:""},img:{default:void 0},details:{default:void 0},hideImage:{type:Boolean,default:!1}},setup(t){const e=t,n=l.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(l.openBlock(),l.createElementBlock("div",SB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(zi,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",_B,[l.createElementVNode("header",null,[l.createElementVNode("h5",wB,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",kB,l.toDisplayString(n.value),1)])]))}}),AB={class:"bd-chat-cloud-card"},TB={class:"bd-chat-cloud-card__header"},IB={class:"bd-chat-cloud-card__body"},xB=["innerHTML"],OB={class:"bd-chat-cloud-card__footer"},NB={key:0,class:"pills-list__wrapper"},MB={class:"pills-list__ul"},t5=l.defineComponent({__name:"BDChatCloud",props:{headerTitle:{default:""},src:{default:void 0},username:{default:null},message:{default:""},isSender:{type:Boolean,default:!1},files:{default:void 0},pills:{default:void 0}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=l.computed(()=>n.isSender?"sender":Be),o=l.computed(()=>ki(n.files,!1)),i=l.computed(()=>ki(n.files,!0)),s=()=>{e("action","copy-message")},c=a=>{e("show-attachment",a)};return(a,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",r.value])},[l.createVNode(zi,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",AB,[l.createElementVNode("div",TB,[l.renderSlot(a.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(a.headerTitle),1)]),l.createVNode(Qe,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(" kopieer ")]),_:1})]),l.createElementVNode("div",IB,[l.renderSlot(a.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,xB)])]),l.createElementVNode("div",OB,[l.renderSlot(a.$slots,"footer",{},()=>[a.pills?(l.openBlock(),l.createElementBlock("div",NB,[l.createElementVNode("ul",MB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.pills,(u,f)=>(l.openBlock(),l.createElementBlock("li",{key:f,class:"pills-list__li"},[l.createVNode(Ba,l.normalizeProps(l.guardReactiveProps(u)),null,16)]))),128))])])):l.createCommentVNode("",!0),o.value&&o.value.length>0?(l.openBlock(),l.createBlock(Qs,{key:1,files:o.value},null,8,["files"])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Zs,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),LB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=l.ref(n.sortDesc),o=()=>{n.active&&(r.value=!r.value)},i=()=>{if(!n.active)return;const c=r.value?"sortDesc":"sortAsc";e(c)},s=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(c,a)=>{c&&!a&&(r.value=!1,e("sortAsc"))}),i(),(c,a)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(s.value),onClick:a[0]||(a[0]=d=>{o(),i()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!r.value?(l.openBlock(),l.createBlock(l.unref(Hc),{key:0})):n.active&&r.value?(l.openBlock(),l.createBlock(l.unref(Wc),{key:1})):(l.openBlock(),l.createBlock(l.unref(Kc),{key:2}))],2))}}),DB={class:"bd-table"},PB={key:0,class:"table"},BB={key:1},RB=["onClick"],$B={key:0},VB={key:1,class:"empty-text"},n5=l.defineComponent({__name:"BDTable",props:["fields","items","sortBy","sortDesc","tbodyTrClass","emptyText"],emits:["row-click","sort-changed"],setup(t,{expose:e,emit:n}){const r=t,o=l.ref(r.items),i=l.ref(r.sortBy),s=f=>i.value=f,c=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},a=f=>{o.value=o.value.sort((p,m)=>c(f,p,m)),n("sort-changed",{sortBy:f,sortDesc:!1})},d=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return l.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(l.openBlock(),l.createElementBlock("div",DB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",PB,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,p=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[p.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[p.sortable?(l.openBlock(),l.createBlock(LB,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>a(p.key),onSortDesc:m=>d(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(l.openBlock(),l.createElementBlock("th",BB,l.toDisplayString(p.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,p=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>n("row-click",p)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock("td",$B,[f.$slots.hasOwnProperty(m.key)?l.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(p[m.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,RB))),256))])])):(l.openBlock(),l.createElementBlock("p",VB,l.toDisplayString(r.emptyText),1))]))}}),FB=["id"],jB={key:0,class:"toast-body__title"},zB={class:"actions"},UB=["textContent"],HB=["textContent"],WB={class:"icon-wrapper"},KB=["textContent"],YB=["textContent"],r5=3e4,o5=5e3,i5=l.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t;let r=l.ref(!1),o=l.ref(!1),i=null,s=null;const c=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),a=l.computed(()=>r.value?[r.value?"is-handled":Be,o.value?"is-handled--success":Be,n.canceled?"is-handled--canceled":Be].join(" "):Be),d=l.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),u=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:o.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{r.value=!0});const f=()=>{const E=c.value,b=document.querySelector(`#${E}`);if(b){b.addEventListener("hide.bs.toast",C);var v={autohide:!0,delay:r5+o5};s=Di.getOrCreateInstance(b,v),s.show(),i=window.setTimeout(h,r5)}};l.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),y()},m=()=>{r.value||(r.value=!0,e("reject-video-call",n.id))},g=()=>{r.value=!0,o.value=!0,e("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),o5)},C=()=>{r.value=!1,o.value=!1};return(E,b)=>(l.openBlock(),l.createElementBlock("div",{id:c.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(r)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",jB,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",a.value])},[l.unref(r)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",WB,[l.createVNode(ia)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(d.value),class:"title"},null,8,KB),l.createElementVNode("p",{textContent:l.toDisplayString(u.value)},null,8,YB)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(jd,{value:E.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",zB,[l.createVNode(Qe,{variant:"danger",class:"text-center",onClick:p},{default:l.withCtx(()=>[l.createVNode(Mc),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,UB)]),_:1}),l.createVNode(Qe,{variant:"success",class:"text-center",onClick:g},{default:l.withCtx(()=>[l.createVNode(ia),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,HB)]),_:1})])],64))],2)],8,FB))}}),ih=l.defineComponent({__name:"BDDropdown",props:{size:{default:Mt.MD},variant:{default:ua.PRIMARY},right:{type:Boolean,default:void 0},noFlip:{type:Boolean,default:void 0},toggleTag:{default:"button"},toggleClass:{},actionToggle:{type:Boolean,default:void 0},text:{default:""},offset:{default:void 0}},setup(t){const e=t,{uniqueIdentifier:n}=Fo(),r=`__BD__DROPDOWN__${n.value}`,o=l.computed(()=>({class:{btn:e.toggleTag==="button",[`btn-${e.variant}`]:e.toggleTag==="button"&&e.variant,[`btn-${e.size}`]:e.toggleTag==="button"&&e.size,[`${e.toggleClass}`]:e.toggleClass!==void 0,"dropdown-toggle-action":e.actionToggle},"data-bs-display":e.noFlip?"static":null,"data-bs-offset":e.offset?e.offset:null,id:r})),i=l.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=l.computed(()=>({"aria-labelledby":r})),c=l.ref(),a=l.ref(),d=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(u,f)=>(l.openBlock(),l.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=l.withModifiers(()=>{},["stop"]))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.toggleTag),l.mergeProps({ref_key:"dropdownToggle",ref:a,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(e.text),1)]),_:1},16)),l.createElementVNode("ul",l.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[l.renderSlot(u.$slots,"default")],16)]))}}),GB={class:"row bd-header"},QB={class:"col logo-mix"},ZB=["src"],JB=l.createElementVNode("div",null,"Menu",-1),XB={key:1,class:"col header-options"},qB={class:"col bd-btn-settings"},eR={key:2},sh=l.defineComponent({__name:"BDHeader",props:{isEmbedded:{type:Boolean},dropdownMenuTitle:{},dropdownOptions:{},headerOptions:{},profileImageSrc:{},profileImageAlt:{},organizationLogoSrc:{},hasLogoutOption:{type:Boolean,default:!0}},emits:["click-logo","signout"],setup(t,{emit:e}){const n=t,r=l.computed(()=>{let u=[];return n.isEmbedded||(n.headerOptions&&(u=u.concat(n.headerOptions)),n.dropdownOptions&&(u=u.concat(n.dropdownOptions))),u}),o=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),i=l.ref(void 0),s=()=>{n.isEmbedded||e("click-logo")},c=()=>e("signout"),a=()=>i.value=!0,d=()=>i.value=!1;return(u,f)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",GB,[l.createElementVNode("div",QB,[l.createVNode(Tc,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,ZB)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:a},[JB,l.createVNode(zc)])),o.value?(l.openBlock(),l.createElementBlock("div",XB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,h=>(l.openBlock(),l.createBlock(Qe,{class:"btn-header",to:h.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(h.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",qB,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(u.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(zi,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",eR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(ih,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.dropdownOptions,(h,p)=>(l.openBlock(),l.createBlock(Ra,l.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Ra,{key:0,text:"Uitloggen",onClick:c})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(oh,{key:0,active:i.value,options:r.value,onHide:d,onSignout:c},{"special-options":l.withCtx(()=>[l.renderSlot(u.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),tR="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",s5=async(t,e)=>{const n=t+e,o=new TextEncoder().encode(n),i=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(i)).map(c=>c.toString(16).padStart(2,"0")).join("")};function ah(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{l.onMounted(()=>t().then(n))}}}const nR=(t,e,n)=>{const{OnWindowLoaded:r}=ah(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await s5(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await s5(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function a5(t){const{OnWindowLoaded:e}=ah();let n;const r=()=>{n=document.addEventListener("click",i=>{if(!i||!i.target)return;let s=null;if(i.target instanceof Element&&(s=i.target.closest(".popover")),s)return;const c=Lo.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;Lo.getInstance(t.value)||new Lo(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=Lo.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const rR=["data-bs-title","data-bs-content"],oR=["title"],iR={key:0,class:"number-circle",textContent:1},sR=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var u;return(u=e.getNotification)==null?void 0:u.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=nR("notificationsRead",e.userId,n),i=l.ref();a5(i);const s=l.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),y=new Date;return y>=m&&y<=g}),c=l.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.tooltip}),a=l.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.title}),d=l.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
1357
1357
  <p>${f}</p>
1358
1358
  <a href='${h}' target='_blank'>${p}</a>
1359
- `});return(u,f)=>s.value?(l.openBlock(),l.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":a.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:tR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,oR),[[l.unref(Pi)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",iR)):l.createCommentVNode("",!0)],8,rR)):l.createCommentVNode("",!0)}}),aR={class:"profile-side"},lR=["href"],cR={class:"nav-item"},dR=["textContent"],l5=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=An(),r=l.computed(()=>n("practitionerHeader.academyTooltip")),o=l.computed(()=>n("practitionerHeader.AcademyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(sh,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",aR,[l.createVNode(sR,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(oa),{title:r.value},null,8,["title"]),[[l.unref(Pi)]])],8,lR)):l.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",cR,[l.createVNode(ro,{class:"nav-link",to:e.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(oa)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,dR)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),uR={class:"modal-dialog"},fR={class:"modal-content"},hR={class:"modal-header"},pR={class:"modal-title"},mR=["src"],gR=l.createElementVNode("span",null,"Sluiten",-1),yR={class:"modal-body"},vR={key:0,class:"modal-footer"},bR=["disabled"],Bo=l.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=l.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),tabindex:"-1"},[l.createElementVNode("div",uR,[l.createElementVNode("div",fR,[l.createElementVNode("div",hR,[l.createElementVNode("h2",pR,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,mR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[gR,l.createVNode(l.unref(aa))]))]),l.createElementVNode("div",yR,[l.renderSlot(s.$slots,"default")]),s.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",vR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},l.toDisplayString(n.submitButtonTitle),9,bR)),l.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Bi=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=qr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=qr.getInstance(o);i&&i.hide()}}}};function c5(){const t=l.ref(0),e=l.ref(!0),n=l.ref(null),r=l.ref({top:0,left:0,x:0,y:0}),o=l.computed(()=>t.value>0?`zoom-${t.value}`:"");return{zoom:t,mouseDown:e,imageHolderRef:n,pos:r,SetZoom:o,OnMouseDown:a=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;const d=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");d&&(d.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const d=a.clientX-r.value.x,u=a.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-u,n.value.scrollLeft=r.value.left-d)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),d&&d.style&&(d.style.cursor="grab"),e.value=!1}}}const CR=["src","alt"],ER={key:0,class:"show-spinner"},SR={class:"spinner-border text-primary",role:"status"},_R={class:"visually-hidden"},wR=["href"],d5=l.defineComponent({__name:"BDImageAttachmentModal",props:["loadingText","downloadText"],setup(t,{expose:e}){const n=t,{showModal:r}=Bi("image-attachment-modal"),{zoom:o,imageHolderRef:i,SetZoom:s,OnMouseDown:c,OnMouseMove:a,OnMouseUp:d}=c5(),u=l.ref(!0),f=l.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be});e({Show:y=>{f.value=y,o.value=0,r()}});const p=()=>{u.value=!1},m=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}};return(y,g)=>(l.openBlock(),l.createBlock(Bo,{id:"image-attachment-modal",class:l.normalizeClass(l.unref(Be)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:m},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:i,onMousedown:g[0]||(g[0]=(...b)=>l.unref(c)&&l.unref(c)(...b)),onMousemove:g[1]||(g[1]=(...b)=>l.unref(a)&&l.unref(a)(...b)),onMouseup:g[2]||(g[2]=(...b)=>l.unref(d)&&l.unref(d)(...b))},[f.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:l.normalizeClass(["image-preview-modal",l.unref(s)]),onLoad:p,draggable:!1},null,42,CR)):l.createCommentVNode("",!0)],544),u.value?(l.openBlock(),l.createElementBlock("div",ER,[l.createElementVNode("div",SR,[l.createElementVNode("span",_R,l.toDisplayString(n.loadingText),1)])])):l.createCommentVNode("",!0),l.createVNode(Zc,{modelValue:l.unref(o),"onUpdate:modelValue":g[3]||(g[3]=b=>l.isRef(o)?o.value=b:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),l.createElementVNode("a",{href:f.value.downloadUrl},[l.createVNode(Qe,{variant:"primary",class:"download-image"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(n.downloadText),1)]),_:1})],8,wR)]),_:1},8,["class","title"]))}});function wc(t=void 0){const e=c=>i("Succesvol",c,Zo.SUCCESS),n=c=>i("Waarschuwing",c,Zo.WARNING),r=c=>i("Informatie",c,Zo.INFO),o=c=>i("Mislukt",c,Zo.DANGER);function i(c,a,d){const u=`toast-${up()}`,f={id:u,variant:d,title:c,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=l.h(Vd,f),y=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(y.$el);const g=document.querySelector(`#${u}`);g&&(Di.getOrCreateInstance(g,t).show(),s(g))}function s(c){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(a),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:kR}=wc();function lh(t){const e=l.ref(null),n=(a,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>Pa(h.ErrorMessage)&&h.ErrorMessage!==Be):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,Pa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(a),s(e)},r=a=>{if(t==null)return;const u=new URL(a.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&kR(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Ow(a.value)?o.value=a.value.map(d=>Pa(d)?d:d.ErrorMessage):Pa(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const AR={key:0},TR={key:1},IR={class:"bd-form-field"},xR={class:"bd-form-field"},u5=l.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=wc(),{serverErrors:s,errorMessages:c,errorMessageText:a,MapServerErrors:d,ResetServerErrors:u}=lh(null),{closeModal:f}=Bi("phone-number-edit-modal");let h=Be;const p=l.ref(),m=l.ref(null),y=l.ref(),g=l.ref(),b=l.ref(null),E=l.computed(()=>g.value==null||g.value==""),C=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!g.value){b.value=!1;return}const N={requestIdentifier:y.value,token:g.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),y.value=N.data.RequestIdentifier},_=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,b.value=null},O=N=>{h=N,p.value=h,m.value=null,y.value=void 0,g.value=void 0,b.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,j)=>(l.openBlock(),l.createBlock(Bo,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(Be)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(s),errorMessages:l.unref(c),errorMessageText:l.unref(a),onSubmit:v,onCancel:L},{default:l.withCtx(()=>[l.unref(a)||l.unref(c)?(l.openBlock(),l.createBlock(Vo,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(c)?(l.openBlock(),l.createElementBlock("div",AR,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(c),(V,P)=>(l.openBlock(),l.createElementBlock("li",{key:P},[l.createVNode(oo),l.createElementVNode("span",null,l.toDisplayString(V),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",TR,l.toDisplayString(l.unref(a)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",IR,[l.createVNode(Or,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":j[0]||(j[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Qe,{textContent:l.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:C},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Qe,{textContent:l.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:C},null,8,["textContent"])]),l.createElementVNode("div",xR,[y.value?(l.openBlock(),l.createBlock(Or,{key:0,label:r.confirmationCodeLabel,modelValue:g.value,"onUpdate:modelValue":j[1]||(j[1]=V=>g.value=V),state:b.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}});var f5={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zd,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var F=["th","st","nd","rd"],W=K%100;return"["+K+(F[(W-20)%10]||F[W]||F[0])+"]"}},C=function(K,F,W){var Q=String(K);return!Q||Q.length>=F?K:""+Array(F+1-Q.length).join(W)+K},v={s:C,z:function(K){var F=-K.utcOffset(),W=Math.abs(F),Q=Math.floor(W/60),U=W%60;return(F<=0?"+":"-")+C(Q,2,"0")+":"+C(U,2,"0")},m:function K(F,W){if(F.date()<W.date())return-K(W,F);var Q=12*(W.year()-F.year())+(W.month()-F.month()),U=F.clone().add(Q,f),ee=W-U<0,ne=F.clone().add(Q+(ee?-1:1),f);return+(-(Q+(W-U)/(ee?U-ne:ne-U))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:u,d,D:m,h:a,m:c,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},k="en",_={};_[k]=E;var O="$isDayjsObject",L=function(K){return K instanceof P||!(!K||!K[O])},N=function K(F,W,Q){var U;if(!F)return k;if(typeof F=="string"){var ee=F.toLowerCase();_[ee]&&(U=ee),W&&(_[ee]=W,U=ee);var ne=F.split("-");if(!U&&ne.length>1)return K(ne[0])}else{var ae=F.name;_[ae]=F,U=ae}return!Q&&U&&(k=U),U||!Q&&k},j=function(K,F){if(L(K))return K.clone();var W=typeof F=="object"?F:{};return W.date=K,W.args=arguments,new P(W)},V=v;V.l=N,V.i=L,V.w=function(K,F){return j(K,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function K(W){this.$L=N(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var F=K.prototype;return F.parse=function(W){this.$d=function(Q){var U=Q.date,ee=Q.utc;if(U===null)return new Date(NaN);if(V.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ne=U.match(g);if(ne){var ae=ne[2]-1||0,ue=(ne[7]||"0").substring(0,3);return ee?new Date(Date.UTC(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)):new Date(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)}}return new Date(U)}(W),this.init()},F.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},F.$utils=function(){return V},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(W,Q){var U=j(W);return this.startOf(Q)<=U&&U<=this.endOf(Q)},F.isAfter=function(W,Q){return j(W)<this.startOf(Q)},F.isBefore=function(W,Q){return this.endOf(Q)<j(W)},F.$g=function(W,Q,U){return V.u(W)?this[Q]:this.set(U,W)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(W,Q){var U=this,ee=!!V.u(Q)||Q,ne=V.p(W),ae=function(R,x){var B=V.w(U.$u?Date.UTC(U.$y,x,R):new Date(U.$y,x,R),U);return ee?B:B.endOf(d)},ue=function(R,x){return V.w(U.toDate()[R].apply(U.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(x)),U)},me=this.$W,Ce=this.$M,ke=this.$D,Oe="set"+(this.$u?"UTC":"");switch(ne){case p:return ee?ae(1,0):ae(31,11);case f:return ee?ae(1,Ce):ae(0,Ce+1);case u:var Se=this.$locale().weekStart||0,D=(me<Se?me+7:me)-Se;return ae(ee?ke-D:ke+(6-D),Ce);case d:case m:return ue(Oe+"Hours",0);case a:return ue(Oe+"Minutes",1);case c:return ue(Oe+"Seconds",2);case s:return ue(Oe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(W){return this.startOf(W,!1)},F.$set=function(W,Q){var U,ee=V.p(W),ne="set"+(this.$u?"UTC":""),ae=(U={},U[d]=ne+"Date",U[m]=ne+"Date",U[f]=ne+"Month",U[p]=ne+"FullYear",U[a]=ne+"Hours",U[c]=ne+"Minutes",U[s]=ne+"Seconds",U[i]=ne+"Milliseconds",U)[ee],ue=ee===d?this.$D+(Q-this.$W):Q;if(ee===f||ee===p){var me=this.clone().set(m,1);me.$d[ae](ue),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](ue);return this.init(),this},F.set=function(W,Q){return this.clone().$set(W,Q)},F.get=function(W){return this[V.p(W)]()},F.add=function(W,Q){var U,ee=this;W=Number(W);var ne=V.p(Q),ae=function(Ce){var ke=j(ee);return V.w(ke.date(ke.date()+Math.round(Ce*W)),ee)};if(ne===f)return this.set(f,this.$M+W);if(ne===p)return this.set(p,this.$y+W);if(ne===d)return ae(1);if(ne===u)return ae(7);var ue=(U={},U[c]=r,U[a]=o,U[s]=n,U)[ne]||1,me=this.$d.getTime()+W*ue;return V.w(me,this)},F.subtract=function(W,Q){return this.add(-1*W,Q)},F.format=function(W){var Q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||y;var ee=W||"YYYY-MM-DDTHH:mm:ssZ",ne=V.z(this),ae=this.$H,ue=this.$m,me=this.$M,Ce=U.weekdays,ke=U.months,Oe=U.meridiem,Se=function(x,B,S,w){return x&&(x[B]||x(Q,ee))||S[B].slice(0,w)},D=function(x){return V.s(ae%12||12,x,"0")},R=Oe||function(x,B,S){var w=x<12?"AM":"PM";return S?w.toLowerCase():w};return ee.replace(b,function(x,B){return B||function(S){switch(S){case"YY":return String(Q.$y).slice(-2);case"YYYY":return V.s(Q.$y,4,"0");case"M":return me+1;case"MM":return V.s(me+1,2,"0");case"MMM":return Se(U.monthsShort,me,ke,3);case"MMMM":return Se(ke,me);case"D":return Q.$D;case"DD":return V.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return Se(U.weekdaysMin,Q.$W,Ce,2);case"ddd":return Se(U.weekdaysShort,Q.$W,Ce,3);case"dddd":return Ce[Q.$W];case"H":return String(ae);case"HH":return V.s(ae,2,"0");case"h":return D(1);case"hh":return D(2);case"a":return R(ae,ue,!0);case"A":return R(ae,ue,!1);case"m":return String(ue);case"mm":return V.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return V.s(Q.$s,2,"0");case"SSS":return V.s(Q.$ms,3,"0");case"Z":return ne}return null}(x)||ne.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(W,Q,U){var ee,ne=this,ae=V.p(Q),ue=j(W),me=(ue.utcOffset()-this.utcOffset())*r,Ce=this-ue,ke=function(){return V.m(ne,ue)};switch(ae){case p:ee=ke()/12;break;case f:ee=ke();break;case h:ee=ke()/3;break;case u:ee=(Ce-me)/6048e5;break;case d:ee=(Ce-me)/864e5;break;case a:ee=Ce/o;break;case c:ee=Ce/r;break;case s:ee=Ce/n;break;default:ee=Ce}return U?ee:V.a(ee)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return _[this.$L]},F.locale=function(W,Q){if(!W)return this.$L;var U=this.clone(),ee=N(W,Q,!0);return ee&&(U.$L=ee),U},F.clone=function(){return V.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},K}(),z=P.prototype;return j.prototype=z,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",d],["$M",f],["$y",p],["$D",m]].forEach(function(K){z[K[1]]=function(F){return this.$g(F,K[0],K[1])}}),j.extend=function(K,F){return K.$i||(K(F,P,j),K.$i=!0),j},j.locale=N,j.isDayjs=L,j.unix=function(K){return j(1e3*K)},j.en=_[k],j.Ls=_,j.p={},j})})(f5);var h5=f5.exports;const Ri=Ud(h5),p5=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),d=l.ref(null),{showModal:u,closeModal:f}=Bi("session-time-out-modal"),h=l.computed(()=>s.value&&t?t-(s.value+1):0),p=l.computed(()=>c.value?60-c.value:0),m=l.computed(()=>a.value),y=()=>{d.value=setInterval(b,1e3),r(d.value)},g=()=>{d.value&&clearInterval(d.value)},b=()=>{s.value=Ri().diff(n(),"m"),c.value=Ri().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(a.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},C=()=>{o(),g(),s.value=null,c.value=null,y()},v=()=>{g(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{a.value?v():C()},_=()=>{v()},O=()=>{a.value?v():f()};return l.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),g(),y()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},m5=l.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=p5(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=l.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),a=l.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=l.computed(()=>e.hideCancelButton||n.value),u=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(Bo,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:l.unref(s),onCancel:l.unref(i)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),g5=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=Bi("attachment-upload-modal"),{t:o}=An(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=l.ref([]),a=l.computed(()=>o("attachmentUploadModal.title")),d=l.computed(()=>o("attachmentUploadModal.submitButton")),u=l.computed(()=>o("attachmentUploadModal.infoMessage")),f=l.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=l.computed(()=>o("attachmentUploadModal.errorMessage")),p=l.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=l.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage")),y=l.computed(()=>o("attachmentUploadModal.officeDocumentsNotSupportedByMobileMessage"));return(g,b)=>(l.openBlock(),l.createBlock(Bo,{id:"attachment-upload-modal",title:a.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(u.value),1),l.createVNode(Hd,{modelValue:c.value,"onUpdate:modelValue":b[0]||(b[0]=E=>c.value=E),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(m.value),1),l.createElementVNode("p",null,l.toDisplayString(y.value),1)]),_:1},8,["title","submit-button-title"]))}});var OR=Object.defineProperty,NR=Object.defineProperties,MR=Object.getOwnPropertyDescriptors,y5=Object.getOwnPropertySymbols,LR=Object.prototype.hasOwnProperty,DR=Object.prototype.propertyIsEnumerable,v5=(t,e,n)=>e in t?OR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$i=(t,e)=>{for(var n in e||(e={}))LR.call(e,n)&&v5(t,n,e[n]);if(y5)for(var n of y5(e))DR.call(e,n)&&v5(t,n,e[n]);return t},b5=(t,e)=>NR(t,MR(e));const PR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},BR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},RR={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},ch=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},$R={},VR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},FR=l.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),jR=[FR];function zR(t,e){return l.openBlock(),l.createElementBlock("svg",VR,jR)}const UR=ch($R,[["render",zR]]),HR={},WR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},KR=l.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),YR=[KR];function GR(t,e){return l.openBlock(),l.createElementBlock("svg",WR,YR)}const QR=ch(HR,[["render",GR]]),C5={Deselect:UR,OpenIndicator:QR},ZR={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function JR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let XR=0;function qR(){return++XR}const e$={components:$i({},C5),directives:{appendToBody:ZR},mixins:[PR,BR,RR],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
1360
- https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:JR(t)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
1361
- https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>qR()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:$i({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:b5($i({},t),{deselect:this.deselect}),footer:b5($i({},t),{deselect:this.deselect})}},childComponents(){return $i($i({},C5),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,e){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(e=>this.reduce(e)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const e=t.target!==this.searchEl;e&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(r=>r.contains(t.target)||r===t.target)){t.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(e=>this.optionComparator(e,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue(t){const e=r=>JSON.stringify(this.reduce(r))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(e);return n.length===1?n[0]:n.find(r=>this.optionComparator(r,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(e=>this.optionComparator(e,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const e=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>n[o]=e);const r=this.mapKeydown(n,this);if(typeof r[t.keyCode]=="function")return r[t.keyCode](t)}}},t$=["dir"],n$=["id","aria-expanded","aria-owns"],r$={ref:"selectedOptions",class:"vs__selected-options"},o$=["disabled","title","aria-label","onClick"],i$={ref:"actions",class:"vs__actions"},s$=["disabled"],a$={class:"vs__spinner"},l$=["id"],c$=["id","aria-selected","onMouseover","onClick"],d$={key:0,class:"vs__no-options"},u$=l.createTextVNode(" Sorry, no matching options. "),f$=["id"];function h$(t,e,n,r,o,i){const s=l.resolveDirective("append-to-body");return l.openBlock(),l.createElementBlock("div",{dir:n.dir,class:l.normalizeClass(["v-select",i.stateClasses])},[l.renderSlot(t.$slots,"header",l.normalizeProps(l.guardReactiveProps(i.scope.header))),l.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=c=>i.toggleDropdown(c))},[l.createElementVNode("div",r$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.selectedValue,(c,a)=>l.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(l.openBlock(),l.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[l.renderSlot(t.$slots,"selected-option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(l.openBlock(),l.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[a]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,o$)):l.createCommentVNode("",!0)]))])),256)),l.renderSlot(t.$slots,"search",l.normalizeProps(l.guardReactiveProps(i.scope.search)),()=>[l.createElementVNode("input",l.mergeProps({class:"vs__search"},i.scope.search.attributes,l.toHandlers(i.scope.search.events)),null,16)])],512),l.createElementVNode("div",i$,[l.withDirectives(l.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...c)=>i.clearSelection&&i.clearSelection(...c))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,s$),[[l.vShow,i.showClearButton]]),l.renderSlot(t.$slots,"open-indicator",l.normalizeProps(l.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.OpenIndicator),l.normalizeProps(l.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),l.renderSlot(t.$slots,"spinner",l.normalizeProps(l.guardReactiveProps(i.scope.spinner)),()=>[l.withDirectives(l.createElementVNode("div",a$,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,n$),l.createVNode(l.Transition,{name:n.transition},{default:l.withCtx(()=>[i.dropdownOpen?l.withDirectives((l.openBlock(),l.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=l.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[l.renderSlot(t.$slots,"list-header",l.normalizeProps(l.guardReactiveProps(i.scope.listHeader))),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.filteredOptions,(c,a)=>(l.openBlock(),l.createElementBlock("li",{id:`vs${n.uid}__option-${a}`,key:n.getOptionKey(c),role:"option",class:l.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&a===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":a===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":a===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[l.renderSlot(t.$slots,"option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)])],42,c$))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",d$,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[u$])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,l$)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,f$))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,t$)}const p$=ch(e$,[["render",h$]]),_j="",m$=t=>typeof t=="number",g$=12,y$=["textContent"],v$=["textContent"],b$={key:0,class:"content-library-card__body"},C$=["textContent"],E$={key:1},kc=l.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const n=t,{t:r}=An(),o=l.computed(()=>`Open ${n.provider} in nieuw venster`),i=()=>{e("on-insert",n.itemId)},s=()=>{window.open(n.uri,"_blank","noopener,noreferrer")};return(c,a)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",n.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(c.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(n.title)},null,8,y$),n.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(n.subtitle)},null,8,v$)):l.createCommentVNode("",!0)])]),n.showBody?(l.openBlock(),l.createElementBlock("div",b$,[l.renderSlot(c.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(n.description),class:"content-library-card__description"},null,8,C$)])])):l.createCommentVNode("",!0),n.showFooter?(l.openBlock(),l.createElementBlock("footer",E$,[l.renderSlot(c.$slots,"footer",{},()=>[l.createVNode(Qe,{variant:"secondary",onClick:i},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Qe,{title:o.value,variant:"icon",onClick:s},{default:l.withCtx(()=>[l.createVNode($c)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),S$=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(kc,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),_$={class:"content-library-card-image__titles"},w$=["textContent"],k$=["textContent"],A$=["src"],T$=l.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",_$,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,w$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,k$)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,A$)]),_:1},16))}}),I$=l.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,title:o,subtitle:i,uri:s,provider:c}=e.item;return{itemId:r,title:o,subtitle:i,uri:s,provider:c}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),x$=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),O$={class:"content-library-card-message-template__tag"},N$=["textContent"],M$=["textContent"],L$=["textContent"],D$=["id"],P$=["innerHTML"],B$={class:"collapsed-hide"},R$={class:"collapsed-show"},$$={key:2,class:"edit-btn-group"},V$={key:3,class:"attachment-occurence"},F$={class:"number-icon"},j$=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const n=t,{t:r}=An(),o=l.ref(null),i=l.ref(!1),s=l.ref(!1),c=l.computed(()=>`collapse-preview-${n.item.itemId}`),a=l.computed(()=>e0(n.item.files)?null:n.item.files.length),d=l.computed(()=>n.variant==="insert"),u=l.computed(()=>n.variant==="edit"),f=l.computed(()=>n.variant==="shared"),h=l.computed(()=>s.value?Be:"content-library-card-not-collapsable"),p=l.computed(()=>n.item.text?x$(n.item.text):Be),m=l.computed(()=>ki(n.item.files,!1)),y=l.computed(()=>ki(n.item.files,!0)),g=()=>{o.value&&(s.value=i.value||o.value.scrollHeight>o.value.clientHeight||n.item.files&&n.item.files.length>0)},b=()=>{e("on-insert",n.item.itemId)},E=k=>{e("show-attachment",k)},C=()=>{e("on-change",n.item.itemId)},v=()=>{e("delete",n.item.itemId)};return l.watch(()=>n.item,()=>{o.value&&l.nextTick().then(()=>{g()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{g()})}),(k,_)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${h.value}`,onOnInsert:b}),{header:l.withCtx(()=>[l.createElementVNode("div",O$,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,N$)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,M$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,L$)]),footer:l.withCtx(()=>[d.value?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"secondary",onClick:b},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),f.value?l.withDirectives((l.openBlock(),l.createBlock(Qe,{key:1,variant:"icon",title:l.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Fc)]),_:1},8,["title"])),[[l.unref(Pi)]]):l.createCommentVNode("",!0),u.value?(l.openBlock(),l.createElementBlock("div",$$,[l.createVNode(Qe,{title:l.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:C},{default:l.withCtx(()=>[l.createVNode(Rc)]),_:1},8,["title"]),l.createVNode(Qe,{title:l.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:v},{default:l.withCtx(()=>[l.createVNode(Pc)]),_:1},8,["title"])])):l.createCommentVNode("",!0),a.value?(l.openBlock(),l.createElementBlock("div",V$,[l.createVNode(Er),l.createElementVNode("div",F$,l.toDisplayString(a.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:c.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:o},[l.createElementVNode("p",{class:"message-text",innerHTML:p.value},null,8,P$),t.item.files?(l.openBlock(),l.createBlock(Qs,{key:0,"no-download":!0,files:m.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(Zs,{key:1,"no-download":!0,files:y.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,D$),s.value?(l.openBlock(),l.createBlock(Qe,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${c.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",B$,l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",R$,l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),wj="",z$={class:"content-library-overview"},U$=Ee({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const n=t,{t:r}=An(),o={BDContentLibraryCardBasic:S$,BDContentLibraryCardImage:T$,BDContentLibraryCardTitle:I$,BDContentLibraryCardMessageTemplate:j$},i=l.computed(()=>e0(n.items)),s=l.computed(()=>Math.floor(g$/n.cols)),c=f=>{e("on-insert",f)},a=f=>{e("on-change",f)},d=f=>{e("delete",f)},u=f=>{e("show-attachment",f)};return(f,h)=>(l.openBlock(),l.createElementBlock("div",z$,[l.createVNode(Sn,null,{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createBlock(Tt,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Vo,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,p=>(l.openBlock(),l.createBlock(Tt,{key:p.itemId,sm:12,md:6,lg:s.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o[p.componentToRender]),l.mergeProps(p,{item:p,onOnInsert:c,onOnChange:a,onDelete:d,onShowAttachment:u}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-84b05d12"]]),H$={class:"content-library-template"},W$={class:"number-of-messages"},K$=["src"],Y$=["src"],G$=["id"],Q$={key:1},Z$={class:"collapsed-show"},J$={class:"collapsed-hide"},dh=l.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const n=t,{t:r}=An(),o=l.ref(n.modelValue);l.watch(()=>n.modelValue,z=>{o.value=z},{immediate:!0,deep:!0});const i=l.computed(()=>{var z,K;return(K=(z=n.modelValue)==null?void 0:z.provider)!=null&&K.SupportsSearch?r("contentLibraryTemplate.searchPlaceholderSearch"):r("contentLibraryTemplate.searchPlaceholder")}),s=l.computed(()=>Fd(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=l.computed(()=>n.provider&&Fd(n.provider.items)?n.provider.items:[]),a=l.computed(()=>n.provider&&Fd(n.provider.filters)),d=l.computed(()=>{let z=0;return n.provider&&m$(n.provider.totalNumber)&&(z=n.provider.totalNumber),z===1?`${z} ${r("contentLibraryTemplate.message")}`:`${z} ${r("contentLibraryTemplate.messages")}`}),u=l.computed(()=>!!(n.provider&&n.provider.pageSize&&n.provider.totalNumber&&n.provider.pageSize<=n.provider.totalNumber)),f=l.computed(()=>n.provider&&n.provider.totalNumber?n.provider.totalNumber:0),h=l.computed(()=>a.value?9:12),p=l.computed(()=>n.provider&&!a.value?3:2),m=l.computed(()=>n.showAddButton||s.value),y=l.computed(()=>({md:3,lg:3})),g=l.computed(()=>({md:9,lg:9})),b=l.computed(()=>({sm:12,md:12,lg:s.value?7:8,"offset-lg":m.value?0:3,"offset-md":m.value?0:3})),E=l.computed(()=>({sm:12,md:m.value?6:3,lg:s.value?5:4})),C=z=>z.replace(/\s/g,"-"),v=()=>{e("create")},k=z=>{e("on-insert",z)},_=z=>{e("on-change",z)},O=z=>{e("delete",z)},L=()=>{e("update","category")},N=()=>{o.value.currentPage=1,e("on-input",o.value)},j=()=>{e("on-input",o.value)},V=z=>{e("show-attachment",z)},P=z=>{e("provider-changed",z.value)};return(z,K)=>(l.openBlock(),l.createElementBlock("div",H$,[l.createVNode(Sn,null,{default:l.withCtx(()=>[l.createVNode(Tt,l.mergeProps(y.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",W$,l.toDisplayString(d.value),1),z.showAddButton?(l.openBlock(),l.createBlock(Qe,{key:0,class:"d-md-none",onClick:v},{default:l.withCtx(()=>[l.createVNode(da),l.createTextVNode(" "+l.toDisplayString(l.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(Tt,l.mergeProps(g.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(Sn,null,{default:l.withCtx(()=>[l.createVNode(Tt,l.mergeProps(b.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Or,{type:"text",modelValue:o.value.searchTerm,"onUpdate:modelValue":K[0]||(K[0]=F=>o.value.searchTerm=F),placeholder:i.value,delayTimeMs:500,class:"search-input",onInput:N,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),z.showAddButton?(l.openBlock(),l.createBlock(Tt,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[z.showAddButton?(l.openBlock(),l.createBlock(Qe,{key:0,onClick:v},{default:l.withCtx(()=>[l.createVNode(da),l.createTextVNode(" "+l.toDisplayString(l.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createBlock(Tt,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(p$),{modelValue:o.value.provider,"onUpdate:modelValue":K[1]||(K[1]=F=>o.value.provider=F),options:z.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":P},{"open-indicator":l.withCtx(({attributes:F})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps(F)),[l.createVNode(sa)],16)]),option:l.withCtx(({icon:F,label:W,img:Q})=>[F?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(F),{key:0})):l.createCommentVNode("",!0),Q?(l.openBlock(),l.createElementBlock("img",{key:1,src:Q},null,8,K$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(W),1)]),"selected-option":l.withCtx(({icon:F,label:W,img:Q})=>[F?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(F),{key:0})):l.createCommentVNode("",!0),Q?(l.openBlock(),l.createElementBlock("img",{key:1,src:Q},null,8,Y$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(W),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),a.value?(l.openBlock(),l.createBlock(Tt,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(Jc,{title:"Filter",showOn:"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(z.provider.filters,F=>(l.openBlock(),l.createBlock(Rd,{key:F.label,label:F.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.options,(W,Q)=>(l.openBlock(),l.createBlock(Da,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=U=>o.value.selectedFilters=U),key:Q,value:`${F.id}-${W.item}`,onChange:N},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(W.name),1)]),_:2},1032,["modelValue","value"]))),128)),F.moreOptions?(l.openBlock(),l.createElementBlock("div",{key:0,id:`collapse-${C(F.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.moreOptions,(W,Q)=>(l.openBlock(),l.createBlock(Da,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=U=>o.value.selectedFilters=U),key:Q,value:`${F.id}-${W.item}`,onChange:N},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(W.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,G$)):l.createCommentVNode("",!0),F.moreOptions?(l.openBlock(),l.createElementBlock("div",Q$,[l.createVNode(Qe,{class:"collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${C(F.label)}`},{default:l.withCtx(()=>[l.createVNode(Ic,{class:"collapsed-show"}),l.createElementVNode("span",Z$,l.toDisplayString(l.unref(r)("contentLibraryTemplate.more")),1),l.createVNode(xc,{class:"collapsed-hide"}),l.createElementVNode("span",J$,l.toDisplayString(l.unref(r)("contentLibraryTemplate.less")),1)]),_:2},1032,["data-bs-target"])])):l.createCommentVNode("",!0),F.label==="Categorieën"&&z.editCategory?(l.openBlock(),l.createBlock(Qe,{key:2,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:L},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(Tt,{md:12,lg:h.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(U$,{items:c.value,cols:p.value,onOnInsert:k,onOnChange:_,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),l.createVNode(Sn,{class:"content-library-pagination"},{default:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock($d,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":K[4]||(K[4]=F=>o.value.currentPage=F),totalRows:f.value,rowsPerPage:z.provider.pageSize,onClick:j,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),E5={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},modalTitle:{type:String,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const n=t,{closeModal:r}=Bi("content-library-modal"),o=l.ref(n.modelValue),i=l.computed(()=>{var h,p;return!((p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0)&&p.img?n.modelValue.provider.img:null}),s=l.computed(()=>{var h,p;return!((p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0)&&p.label?n.modelValue.provider.label:Be});l.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},a=()=>{e("cancel")},d=h=>{e("show-attachment",h)},u=()=>{e("shown")},f=h=>{e("provider-changed",h)};return(h,p)=>(l.openBlock(),l.createBlock(Bo,{id:"content-library-modal","title-image":i.value,title:s.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:a,onShown:u},{default:l.withCtx(()=>[l.createVNode(dh,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}},S5=()=>({ResetValidation:n=>{for(const r in n.value)n.value[r].state=null},ValidationObjectIsValid:n=>{for(let r in n)if(n[r].state===!1)return!1;return!0}}),X$={class:"template change-password-template"},q$={class:"template-title"},eV={key:0},tV={key:1},nV=["onSubmit","onReset"],rV={class:"bd-form-field"},oV={class:"bd-form-field"},iV={class:"bd-form-field"},sV={class:"bd-form-buttons"},_5=l.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const e=t,{showDangerToast:n,showSuccessToast:r}=wc(),{errorMessages:o,errorMessageText:i,MapServerErrors:s,ResetServerErrors:c}=lh(null),{ValidationObjectIsValid:a}=S5();let d=l.ref({password:Be,passwordNew:Be,passwordRepeat:Be}),u=l.ref({password:{state:null,errorLabel:Be},passwordNew:{state:null,errorLabel:Be},passwordRepeat:{state:null,errorLabel:Be}});const f=()=>{if(!h())return;const y=e.submitPassword(d.value);y&&y.then(()=>{r(e.successText),p()}).catch(g=>{n(e.failureText),s(g)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(d.value.passwordNew&&!m.test(d.value.passwordNew))u.value.passwordNew.state=!1,u.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const y=d.value.passwordRepeat===d.value.passwordNew,g=y?e.requiredText:e.incompatibleText;u.value.passwordNew.state=d.value.passwordNew!==Be&&y?null:!1,u.value.passwordNew.errorLabel=g,u.value.passwordRepeat.state=d.value.passwordRepeat!==Be&&y?null:!1,u.value.passwordRepeat.errorLabel=g}return u.value.password.state=d.value.password!==Be?null:!1,u.value.password.errorLabel=u.value.password.state?Be:e.requiredText,a(u.value)},p=()=>{d.value.password=Be,d.value.passwordNew=Be,d.value.passwordRepeat=Be,u.value.password.state=null,u.value.passwordNew.state=null,u.value.passwordRepeat.state=null,c()};return(m,y)=>(l.openBlock(),l.createElementBlock("main",X$,[l.createVNode(Fi,{class:"container-xl"},{default:l.withCtx(()=>[l.createVNode(Sn,{class:"justify-content-md-center template-header"},{default:l.withCtx(()=>[l.createVNode(Tt,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createElementVNode("h1",q$,l.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),l.createVNode(Sn,{class:"justify-content-md-center"},{default:l.withCtx(()=>[l.createVNode(Tt,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createVNode(pa,{class:"bd-card-template","no-header":!0},{body:l.withCtx(()=>[l.createVNode(Fi,{class:"container-fluid"},{default:l.withCtx(()=>[l.createVNode(Sn,null,{default:l.withCtx(()=>[l.createVNode(Tt,null,{default:l.withCtx(()=>[l.createVNode(Vo,{variant:"warning"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),l.unref(o)||l.unref(i)?(l.openBlock(),l.createBlock(Sn,{key:0},{default:l.withCtx(()=>[l.createVNode(Tt,null,{default:l.withCtx(()=>[l.createVNode(Vo,{variant:"danger"},{default:l.withCtx(()=>[l.unref(o)?(l.openBlock(),l.createElementBlock("div",eV,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(g,b)=>(l.openBlock(),l.createElementBlock("li",{key:b},[l.createVNode(oo),l.createElementVNode("span",null,l.toDisplayString(g),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",tV,l.toDisplayString(l.unref(i)),1))]),_:1})]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(Sn,null,{default:l.withCtx(()=>[l.createVNode(Tt,{class:"bd-card-form",sm:12,md:12},{default:l.withCtx(()=>[l.createElementVNode("form",{onSubmit:l.withModifiers(f,["prevent"]),onReset:l.withModifiers(p,["prevent"]),class:"form"},[l.createElementVNode("div",rV,[l.createVNode(Or,{modelValue:l.unref(d).password,"onUpdate:modelValue":y[0]||(y[0]=g=>l.unref(d).password=g),label:m.currentPasswordLabel,state:l.unref(u).password.state,type:"password","invalid-feedback-text":l.unref(u).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",oV,[l.createVNode(Or,{modelValue:l.unref(d).passwordNew,"onUpdate:modelValue":y[1]||(y[1]=g=>l.unref(d).passwordNew=g),label:m.newPasswordLabel,state:l.unref(u).passwordNew.state,type:"password","invalid-feedback-text":l.unref(u).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",iV,[l.createVNode(Or,{modelValue:l.unref(d).passwordRepeat,"onUpdate:modelValue":y[2]||(y[2]=g=>l.unref(d).passwordRepeat=g),label:m.confirmNewPasswordLabel,state:l.unref(u).passwordRepeat.state,type:"password","invalid-feedback-text":l.unref(u).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",sV,[l.createVNode(Qe,{type:"submit"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.submitButtonText),1)]),_:1}),l.createVNode(Qe,{type:"reset",variant:"link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,nV)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),aV={class:"template not-found-template"},lV={class:"center-screen"},cV={class:"container-warning"},dV=["textContent"],uV=["textContent"],w5=l.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const n=t,{t:r}=An(),o=l.computed(()=>n.buttonText||r("notFoundTemplate.buttonDefault")),i=l.computed(()=>r("notFoundTemplate.title")),s=l.computed(()=>r("notFoundTemplate.description")),c=()=>e("navigate");return(a,d)=>(l.openBlock(),l.createElementBlock("main",aV,[l.createVNode(Fi,{class:"container-xl"},{default:l.withCtx(()=>[l.createElementVNode("div",lV,[l.createElementVNode("div",cV,[l.createVNode(Yc),l.createElementVNode("h5",{textContent:l.toDisplayString(i.value)},null,8,dV),l.createElementVNode("p",{textContent:l.toDisplayString(s.value)},null,8,uV),l.createVNode(Qe,{onClick:c,variant:"primary",type:"button",textContent:l.toDisplayString(o.value)},null,8,["textContent"])])])]),_:1})]))}});var fV={exports:{}};(function(t,e){(function(n,r){t.exports=r(h5)})(zd,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i})})(fV);var k5={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zd,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,a={},d=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var E=b.match(/([+-]|\d\d)/g),C=60*E[1]+(+E[2]||0);return C===0?0:E[0]==="+"?-C:C}(g)}],h=function(g){var b=a[g];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(g,b){var E,C=a.meridiem;if(C){for(var v=1;v<=24;v+=1)if(g.indexOf(C(v,0,b))>-1){E=v>12;break}}else E=g===(b?"pm":"PM");return E},m={A:[c,function(g){this.afternoon=p(g,!1)}],a:[c,function(g){this.afternoon=p(g,!0)}],Q:[o,function(g){this.month=3*(g-1)+1}],S:[o,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(g){var b=a.ordinal,E=g.match(/\d+/);if(this.day=E[0],b)for(var C=1;C<=31;C+=1)b(C).replace(/\[|\]/g,"")===g&&(this.day=C)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(g){var b=h("months"),E=(h("monthsShort")||b.map(function(C){return C.slice(0,3)})).indexOf(g)+1;if(E<1)throw new Error;this.month=E%12||E}],MMMM:[c,function(g){var b=h("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(g){this.year=d(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function y(g){var b,E;b=g,E=a&&a.formats;for(var C=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,V,P){var z=P&&P.toUpperCase();return V||E[P]||n[P]||E[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,F,W){return F||W.slice(1)})})).match(r),v=C.length,k=0;k<v;k+=1){var _=C[k],O=m[_],L=O&&O[0],N=O&&O[1];C[k]=N?{regex:L,parser:N}:_.replace(/^\[|\]$/g,"")}return function(j){for(var V={},P=0,z=0;P<v;P+=1){var K=C[P];if(typeof K=="string")z+=K.length;else{var F=K.regex,W=K.parser,Q=j.slice(z),U=F.exec(Q)[0];W.call(V,U),j=j.replace(U,"")}}return function(ee){var ne=ee.afternoon;if(ne!==void 0){var ae=ee.hours;ne?ae<12&&(ee.hours+=12):ae===12&&(ee.hours=0),delete ee.afternoon}}(V),V}}return function(g,b,E){E.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var C=b.prototype,v=C.parse;C.parse=function(k){var _=k.date,O=k.utc,L=k.args;this.$u=O;var N=L[1];if(typeof N=="string"){var j=L[2]===!0,V=L[3]===!0,P=j||V,z=L[2];V&&(z=L[2]),a=this.$locale(),!j&&z&&(a=E.Ls[z]),this.$d=function(Q,U,ee,ne){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*Q);var ae=y(U)(Q),ue=ae.year,me=ae.month,Ce=ae.day,ke=ae.hours,Oe=ae.minutes,Se=ae.seconds,D=ae.milliseconds,R=ae.zone,x=ae.week,B=new Date,S=Ce||(ue||me?1:B.getDate()),w=ue||B.getFullYear(),I=0;ue&&!me||(I=me>0?me-1:B.getMonth());var M,Y=ke||0,G=Oe||0,J=Se||0,X=D||0;return R?new Date(Date.UTC(w,I,S,Y,G,J,X+60*R.offset*1e3)):ee?new Date(Date.UTC(w,I,S,Y,G,J,X)):(M=new Date(w,I,S,Y,G,J,X),x&&(M=ne(M).week(x).toDate()),M)}catch{return new Date("")}}(_,N,O,E),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),P&&_!=this.format(N)&&(this.$d=new Date("")),a={}}else if(N instanceof Array)for(var K=N.length,F=1;F<=K;F+=1){L[1]=N[F-1];var W=E.apply(this,L);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}F===K&&(this.$d=new Date(""))}else v.call(this,k)}}})})(k5);var hV=k5.exports;const pV=Ud(hV);Ri.extend(pV),Ri.locale("nl");function mV(t,e=Ri().startOf("day")){const n="DD-MM-YYYY",r=Ri(t,n);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))return"gister";const c=e.subtract(2,"day");if(r.isSame(c))return"eergister";const d=e.subtract(7,"day");if(r.isAfter(d)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(n)}const gV=t=>{const e=new RegExp("(?<=^|a>)((?:(?!<a).)*?)"),n=/((https?:\/\/|www\.)[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{2,24}\b([-a-zA-Z0-9()!@:%_+.~#?&/=]*))/;let r=new RegExp(e.source+n.source,"g");return t.replace(r,(o,i,s)=>{const c=s.startsWith("www.")?`http://${s}`:s;return`${i}<a href="${c}" target="_blank" rel="noopener noreferrer">${s}</a>`})},yV=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,vV=t=>t.startsWith("http://")||t.startsWith("https://"),bV={install:t=>{t.component("BDAlert",Vo),t.component("BDArticle",qm),t.component("BDAttachmentPreviewList",Qs),t.component("BDAttachmentUploadModal",g5),t.component("BDBadge",Zm),t.component("BDButton",Qe),t.component("BDCard",pa),t.component("BDChangePasswordTemplate",_5),t.component("BDChatCloud",t5),t.component("BDCol",Tt),t.component("BDCollapsableCard",Jc),t.component("BDContentLibraryModal",E5),t.component("BDContentLibrarySplitButton",Wm),t.component("BDContentLibraryTemplate",dh),t.component("BDContainer",Fi),t.component("BDDropdown",ih),t.component("BDDropdownItem",Ra),t.component("BDDropzone",Hd),t.component("BDForm",Jm),t.component("BDFormCheckbox",Da),t.component("BDFormInput",Or),t.component("BDFormInvalidFeedback",La),t.component("BDFormSelect",Xm),t.component("BDHeader",sh),t.component("BDImageAttachmentModal",d5),t.component("BDImageAttachmentPreviewList",Zs),t.component("BDInputGroup",Rd),t.component("BDLink",ro),t.component("BDLogo",Tc),t.component("BDMarkdownEditor",qv),t.component("BDMobileMenu",oh),t.component("BDModal",Bo),t.component("BDNotFoundTemplate",w5),t.component("BDPagination",$d),t.component("BDPhoneNumberEditModal",u5),t.component("BDPill",Ba),t.component("BDPractitionerHeader",l5),t.component("BDProfileImage",zi),t.component("BDRow",Sn),t.component("BDSessionTimeOutModal",m5),t.component("BDTable",n5),t.component("BDToast",Vd),t.component("BDUser",e5),t.component("BDUserInformation",jd),t.component("BDVideoCallToast",i5),t.component("BDZoomslider",Zc),t.component("IconAcademy",oa),t.component("IconArrowDown",Ic),t.component("IconArrowUp",xc),t.component("IconAttachment",Er),t.component("IconBold",Oc),t.component("IconBulletList",Nc),t.component("IconCalendar",bh),t.component("IconCall",ia),t.component("IconCallReject",Mc),t.component("IconCardView",Ch),t.component("IconCaretDown",sa),t.component("IconCaretLeft",Lc),t.component("IconCaretRight",Dc),t.component("IconCheck",$o),t.component("IconClipboard",Eh),t.component("IconClose",aa),t.component("IconComment",Sh),t.component("IconCommentActive",_h),t.component("IconCommonFileEmpty",kh),t.component("IconCommonFileWarning",Ah),t.component("IconCommentStatic",wh),t.component("IconContactPerson",Th),t.component("IconCopy",Ih),t.component("IconDelete",Pc),t.component("IconDoubleCheck",xh),t.component("IconDownloadImage",Bc),t.component("IconEdit",Rc),t.component("IconEndCall",Oh),t.component("IconError",la),t.component("IconExternal",$c),t.component("IconEyeShow",Nh),t.component("IconEyeSlash",Mh),t.component("IconFile",Vc),t.component("IconFileAdded",Lh),t.component("IconForward",Dh),t.component("IconHix",Ph),t.component("IconHyperlink",ca),t.component("IconImageFileLandscape",Bh),t.component("IconImageFileWarning",Rh),t.component("IconInfo",oo),t.component("IconInformationCircle",Fc),t.component("IconItalic",jc),t.component("IconListView",$h),t.component("IconLock",Vh),t.component("IconLusciiEscalated",Fh),t.component("IconLusciiLogo",jh),t.component("IconLusciiOpen",zh),t.component("IconLusciiPriorityHigh",Uh),t.component("IconLusciiPriorityLow",Hh),t.component("IconLusciiPriorityMedium",Wh),t.component("IconMenu",zc),t.component("IconMessage",Kh),t.component("IconMessageForward",Yh),t.component("IconMicrophoneSlash",Gh),t.component("IconMicrosoftTeams",Qh),t.component("IconMin",Zh),t.component("IconOrderedList",Uc),t.component("IconPlus",da),t.component("IconRefresh",Jh),t.component("IconRemove",ji),t.component("IconSananetLogo",Xh),t.component("IconService",qh),t.component("IconShareScreen",ep),t.component("IconSingleNeutral",tp),t.component("IconSort",np),t.component("IconSortAsc",Hc),t.component("IconSortDesc",Wc),t.component("IconSortNone",Kc),t.component("IconTriangleDown",rp),t.component("IconTriangleExclamation",Yc),t.component("IconUnderline",Gc),t.component("IconVideoDisabled",ip),t.component("IconVideocall",op),t.component("IconZorgkaart",sp),t.directive("vBDTooltip",Pi)}};te.BDAlert=Vo,te.BDArticle=qm,te.BDAttachmentPreviewList=Qs,te.BDAttachmentUploadModal=g5,te.BDBadge=Zm,te.BDButton=Qe,te.BDCard=pa,te.BDChangePasswordTemplate=_5,te.BDChatCloud=t5,te.BDCol=Tt,te.BDCollapsableCard=Jc,te.BDContainer=Fi,te.BDContentLibraryModal=E5,te.BDContentLibrarySplitButton=Wm,te.BDContentLibraryTemplate=dh,te.BDDropdown=ih,te.BDDropdownItem=Ra,te.BDDropzone=Hd,te.BDForm=Jm,te.BDFormCheckbox=Da,te.BDFormInput=Or,te.BDFormInvalidFeedback=La,te.BDFormSelect=Xm,te.BDHeader=sh,te.BDImageAttachmentModal=d5,te.BDImageAttachmentPreviewList=Zs,te.BDInputGroup=Rd,te.BDLink=ro,te.BDLogo=Tc,te.BDMarkdownEditor=qv,te.BDMobileMenu=oh,te.BDModal=Bo,te.BDNotFoundTemplate=w5,te.BDPagination=$d,te.BDPhoneNumberEditModal=u5,te.BDPill=Ba,te.BDPractitionerHeader=l5,te.BDProfileImage=zi,te.BDRow=Sn,te.BDSessionTimeOutModal=m5,te.BDTable=n5,te.BDToast=Vd,te.BDUser=e5,te.BDUserInformation=jd,te.BDVideoCallToast=i5,te.BDZoomslider=Zc,te.CreateHyperlinkParagraph=yV,te.IconAcademy=oa,te.IconArrowDown=Ic,te.IconArrowUp=xc,te.IconAttachment=Er,te.IconBold=Oc,te.IconBulletList=Nc,te.IconCalendar=bh,te.IconCall=ia,te.IconCallReject=Mc,te.IconCardView=Ch,te.IconCaretDown=sa,te.IconCaretLeft=Lc,te.IconCaretRight=Dc,te.IconCheck=$o,te.IconClipboard=Eh,te.IconClose=aa,te.IconComment=Sh,te.IconCommentActive=_h,te.IconCommentStatic=wh,te.IconCommonFileEmpty=kh,te.IconCommonFileWarning=Ah,te.IconContactPerson=Th,te.IconCopy=Ih,te.IconDelete=Pc,te.IconDoubleCheck=xh,te.IconDownloadImage=Bc,te.IconEdit=Rc,te.IconEndCall=Oh,te.IconError=la,te.IconExternal=$c,te.IconEyeShow=Nh,te.IconEyeSlash=Mh,te.IconFile=Vc,te.IconFileAdded=Lh,te.IconForward=Dh,te.IconHix=Ph,te.IconHyperlink=ca,te.IconImageFileLandscape=Bh,te.IconImageFileWarning=Rh,te.IconInfo=oo,te.IconInformationCircle=Fc,te.IconItalic=jc,te.IconListView=$h,te.IconLock=Vh,te.IconLusciiEscalated=Fh,te.IconLusciiLogo=jh,te.IconLusciiOpen=zh,te.IconLusciiPriorityHigh=Uh,te.IconLusciiPriorityLow=Hh,te.IconLusciiPriorityMedium=Wh,te.IconMenu=zc,te.IconMessage=Kh,te.IconMessageForward=Yh,te.IconMicrophoneSlash=Gh,te.IconMicrosoftTeams=Qh,te.IconMin=Zh,te.IconOrderedList=Uc,te.IconPlus=da,te.IconRefresh=Jh,te.IconRemove=ji,te.IconSananetLogo=Xh,te.IconService=qh,te.IconShareScreen=ep,te.IconSingleNeutral=tp,te.IconSort=np,te.IconSortAsc=Hc,te.IconSortDesc=Wc,te.IconSortNone=Kc,te.IconTriangleDown=rp,te.IconTriangleExclamation=Yc,te.IconUnderline=Gc,te.IconVideoDisabled=ip,te.IconVideocall=op,te.IconZorgkaart=sp,te.TransformHyperlinks=gV,te.ValidateUrl=vV,te.default=bV,te.getDisplayDate=mV,te.useModal=Bi,te.usePopover=a5,te.useServerErrors=lh,te.useSessionTimeOut=p5,te.useToaster=wc,te.useValidation=S5,te.useWindow=ah,te.useZoom=c5,te.vBdTooltip=Pi,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1359
+ `});return(u,f)=>s.value?(l.openBlock(),l.createElementBlock("a",{key:0,ref_key:"notificationButton",ref:i,tabindex:"0",class:"bd-notification-button",role:"button","data-bs-toggle":"popover","data-bs-placement":"bottom","data-bs-title":a.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:tR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,oR),[[l.unref(Pi)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",iR)):l.createCommentVNode("",!0)],8,rR)):l.createCommentVNode("",!0)}}),aR={class:"profile-side"},lR=["href"],cR={class:"nav-item"},dR=["textContent"],l5=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=cn(),r=l.computed(()=>n("practitionerHeader.academyTooltip")),o=l.computed(()=>n("practitionerHeader.AcademyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(sh,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",aR,[l.createVNode(sR,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(oa),{title:r.value},null,8,["title"]),[[l.unref(Pi)]])],8,lR)):l.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",cR,[l.createVNode(ro,{class:"nav-link",to:e.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(oa)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,dR)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),uR={class:"modal-dialog"},fR={class:"modal-content"},hR={class:"modal-header"},pR={class:"modal-title"},mR=["src"],gR=l.createElementVNode("span",null,"Sluiten",-1),yR={class:"modal-body"},vR={key:0,class:"modal-footer"},bR=["disabled"],Bo=l.defineComponent({__name:"BDModal",props:{title:{default:""},titleImage:{default:""},submitButtonTitle:{default:"Opslaan"},closeButtonTitle:{default:"Annuleren"},hideFooterCancelButton:{type:Boolean,default:!1},hideFooterSubmitButton:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideCloseButton:{type:Boolean,default:!1},disableSubmitButton:{type:Boolean,default:!1},size:{default:"lg"}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=l.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),tabindex:"-1"},[l.createElementVNode("div",uR,[l.createElementVNode("div",fR,[l.createElementVNode("div",hR,[l.createElementVNode("h2",pR,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,mR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[gR,l.createVNode(l.unref(aa))]))]),l.createElementVNode("div",yR,[l.renderSlot(s.$slots,"default")]),s.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",vR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},l.toDisplayString(n.submitButtonTitle),9,bR)),l.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Bi=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=qr.getOrCreateInstance(o),e.value.show()):console.error(`Modal '${t}' niet gevonden.`)},closeModal:()=>{if(e.value){e.value.hide();return}const o=document.getElementById(t);if(o instanceof HTMLElement){const i=qr.getInstance(o);i&&i.hide()}}}};function wc(t=void 0){const e=c=>i("Succesvol",c,Zo.SUCCESS),n=c=>i("Waarschuwing",c,Zo.WARNING),r=c=>i("Informatie",c,Zo.INFO),o=c=>i("Mislukt",c,Zo.DANGER);function i(c,a,d){const u=`toast-${up()}`,f={id:u,variant:d,title:c,text:a},h=document.querySelector(".toast-container");if(!h){console.error("There was no element with class 'toast-container' found, which is required for useToaster.");return}const p=l.h(Vd,f),g=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Di.getOrCreateInstance(y,t).show(),s(y))}function s(c){function a(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(a),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:CR}=wc();function lh(t){const e=l.ref(null),n=(a,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)?u=a.response.data.filter(h=>Pa(h.ErrorMessage)&&h.ErrorMessage!==Be):a.response.data.ErrorMessage?u=[a.response.data.ErrorMessage]:u=null,Pa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(a),s(e)},r=a=>{if(t==null)return;const u=new URL(a.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&CR(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Ow(a.value)?o.value=a.value.map(d=>Pa(d)?d:d.ErrorMessage):Pa(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const ER={key:0},SR={key:1},_R={class:"bd-form-field"},wR={class:"bd-form-field"},c5=l.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=wc(),{serverErrors:s,errorMessages:c,errorMessageText:a,MapServerErrors:d,ResetServerErrors:u}=lh(null),{closeModal:f}=Bi("phone-number-edit-modal");let h=Be;const p=l.ref(),m=l.ref(null),g=l.ref(),y=l.ref(),C=l.ref(null),E=l.computed(()=>y.value==null||y.value==""),b=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!y.value){C.value=!1;return}const N={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},_=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},O=N=>{h=N,p.value=h,m.value=null,g.value=void 0,y.value=void 0,C.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,j)=>(l.openBlock(),l.createBlock(Bo,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(Be)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(s),errorMessages:l.unref(c),errorMessageText:l.unref(a),onSubmit:v,onCancel:L},{default:l.withCtx(()=>[l.unref(a)||l.unref(c)?(l.openBlock(),l.createBlock(Vo,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(c)?(l.openBlock(),l.createElementBlock("div",ER,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(c),(V,P)=>(l.openBlock(),l.createElementBlock("li",{key:P},[l.createVNode(oo),l.createElementVNode("span",null,l.toDisplayString(V),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",SR,l.toDisplayString(l.unref(a)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",_R,[l.createVNode(Or,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":j[0]||(j[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Qe,{textContent:l.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:b},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Qe,{textContent:l.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),l.createElementVNode("div",wR,[g.value?(l.openBlock(),l.createBlock(Or,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":j[1]||(j[1]=V=>y.value=V),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}});var d5={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zd,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var F=["th","st","nd","rd"],W=K%100;return"["+K+(F[(W-20)%10]||F[W]||F[0])+"]"}},b=function(K,F,W){var Q=String(K);return!Q||Q.length>=F?K:""+Array(F+1-Q.length).join(W)+K},v={s:b,z:function(K){var F=-K.utcOffset(),W=Math.abs(F),Q=Math.floor(W/60),U=W%60;return(F<=0?"+":"-")+b(Q,2,"0")+":"+b(U,2,"0")},m:function K(F,W){if(F.date()<W.date())return-K(W,F);var Q=12*(W.year()-F.year())+(W.month()-F.month()),U=F.clone().add(Q,f),ee=W-U<0,ne=F.clone().add(Q+(ee?-1:1),f);return+(-(Q+(W-U)/(ee?U-ne:ne-U))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:u,d,D:m,h:a,m:c,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},k="en",_={};_[k]=E;var O="$isDayjsObject",L=function(K){return K instanceof P||!(!K||!K[O])},N=function K(F,W,Q){var U;if(!F)return k;if(typeof F=="string"){var ee=F.toLowerCase();_[ee]&&(U=ee),W&&(_[ee]=W,U=ee);var ne=F.split("-");if(!U&&ne.length>1)return K(ne[0])}else{var ae=F.name;_[ae]=F,U=ae}return!Q&&U&&(k=U),U||!Q&&k},j=function(K,F){if(L(K))return K.clone();var W=typeof F=="object"?F:{};return W.date=K,W.args=arguments,new P(W)},V=v;V.l=N,V.i=L,V.w=function(K,F){return j(K,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function K(W){this.$L=N(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var F=K.prototype;return F.parse=function(W){this.$d=function(Q){var U=Q.date,ee=Q.utc;if(U===null)return new Date(NaN);if(V.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ne=U.match(y);if(ne){var ae=ne[2]-1||0,ue=(ne[7]||"0").substring(0,3);return ee?new Date(Date.UTC(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)):new Date(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)}}return new Date(U)}(W),this.init()},F.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},F.$utils=function(){return V},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(W,Q){var U=j(W);return this.startOf(Q)<=U&&U<=this.endOf(Q)},F.isAfter=function(W,Q){return j(W)<this.startOf(Q)},F.isBefore=function(W,Q){return this.endOf(Q)<j(W)},F.$g=function(W,Q,U){return V.u(W)?this[Q]:this.set(U,W)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(W,Q){var U=this,ee=!!V.u(Q)||Q,ne=V.p(W),ae=function(R,x){var B=V.w(U.$u?Date.UTC(U.$y,x,R):new Date(U.$y,x,R),U);return ee?B:B.endOf(d)},ue=function(R,x){return V.w(U.toDate()[R].apply(U.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(x)),U)},me=this.$W,Ce=this.$M,ke=this.$D,Oe="set"+(this.$u?"UTC":"");switch(ne){case p:return ee?ae(1,0):ae(31,11);case f:return ee?ae(1,Ce):ae(0,Ce+1);case u:var Se=this.$locale().weekStart||0,D=(me<Se?me+7:me)-Se;return ae(ee?ke-D:ke+(6-D),Ce);case d:case m:return ue(Oe+"Hours",0);case a:return ue(Oe+"Minutes",1);case c:return ue(Oe+"Seconds",2);case s:return ue(Oe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(W){return this.startOf(W,!1)},F.$set=function(W,Q){var U,ee=V.p(W),ne="set"+(this.$u?"UTC":""),ae=(U={},U[d]=ne+"Date",U[m]=ne+"Date",U[f]=ne+"Month",U[p]=ne+"FullYear",U[a]=ne+"Hours",U[c]=ne+"Minutes",U[s]=ne+"Seconds",U[i]=ne+"Milliseconds",U)[ee],ue=ee===d?this.$D+(Q-this.$W):Q;if(ee===f||ee===p){var me=this.clone().set(m,1);me.$d[ae](ue),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](ue);return this.init(),this},F.set=function(W,Q){return this.clone().$set(W,Q)},F.get=function(W){return this[V.p(W)]()},F.add=function(W,Q){var U,ee=this;W=Number(W);var ne=V.p(Q),ae=function(Ce){var ke=j(ee);return V.w(ke.date(ke.date()+Math.round(Ce*W)),ee)};if(ne===f)return this.set(f,this.$M+W);if(ne===p)return this.set(p,this.$y+W);if(ne===d)return ae(1);if(ne===u)return ae(7);var ue=(U={},U[c]=r,U[a]=o,U[s]=n,U)[ne]||1,me=this.$d.getTime()+W*ue;return V.w(me,this)},F.subtract=function(W,Q){return this.add(-1*W,Q)},F.format=function(W){var Q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var ee=W||"YYYY-MM-DDTHH:mm:ssZ",ne=V.z(this),ae=this.$H,ue=this.$m,me=this.$M,Ce=U.weekdays,ke=U.months,Oe=U.meridiem,Se=function(x,B,S,w){return x&&(x[B]||x(Q,ee))||S[B].slice(0,w)},D=function(x){return V.s(ae%12||12,x,"0")},R=Oe||function(x,B,S){var w=x<12?"AM":"PM";return S?w.toLowerCase():w};return ee.replace(C,function(x,B){return B||function(S){switch(S){case"YY":return String(Q.$y).slice(-2);case"YYYY":return V.s(Q.$y,4,"0");case"M":return me+1;case"MM":return V.s(me+1,2,"0");case"MMM":return Se(U.monthsShort,me,ke,3);case"MMMM":return Se(ke,me);case"D":return Q.$D;case"DD":return V.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return Se(U.weekdaysMin,Q.$W,Ce,2);case"ddd":return Se(U.weekdaysShort,Q.$W,Ce,3);case"dddd":return Ce[Q.$W];case"H":return String(ae);case"HH":return V.s(ae,2,"0");case"h":return D(1);case"hh":return D(2);case"a":return R(ae,ue,!0);case"A":return R(ae,ue,!1);case"m":return String(ue);case"mm":return V.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return V.s(Q.$s,2,"0");case"SSS":return V.s(Q.$ms,3,"0");case"Z":return ne}return null}(x)||ne.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(W,Q,U){var ee,ne=this,ae=V.p(Q),ue=j(W),me=(ue.utcOffset()-this.utcOffset())*r,Ce=this-ue,ke=function(){return V.m(ne,ue)};switch(ae){case p:ee=ke()/12;break;case f:ee=ke();break;case h:ee=ke()/3;break;case u:ee=(Ce-me)/6048e5;break;case d:ee=(Ce-me)/864e5;break;case a:ee=Ce/o;break;case c:ee=Ce/r;break;case s:ee=Ce/n;break;default:ee=Ce}return U?ee:V.a(ee)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return _[this.$L]},F.locale=function(W,Q){if(!W)return this.$L;var U=this.clone(),ee=N(W,Q,!0);return ee&&(U.$L=ee),U},F.clone=function(){return V.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},K}(),z=P.prototype;return j.prototype=z,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",d],["$M",f],["$y",p],["$D",m]].forEach(function(K){z[K[1]]=function(F){return this.$g(F,K[0],K[1])}}),j.extend=function(K,F){return K.$i||(K(F,P,j),K.$i=!0),j},j.locale=N,j.isDayjs=L,j.unix=function(K){return j(1e3*K)},j.en=_[k],j.Ls=_,j.p={},j})})(d5);var u5=d5.exports;const Ri=Ud(u5),f5=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),d=l.ref(null),{showModal:u,closeModal:f}=Bi("session-time-out-modal"),h=l.computed(()=>s.value&&t?t-(s.value+1):0),p=l.computed(()=>c.value?60-c.value:0),m=l.computed(()=>a.value),g=()=>{d.value=setInterval(C,1e3),r(d.value)},y=()=>{d.value&&clearInterval(d.value)},C=()=>{s.value=Ri().diff(n(),"m"),c.value=Ri().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(a.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},b=()=>{o(),y(),s.value=null,c.value=null,g()},v=()=>{y(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{a.value?v():b()},_=()=>{v()},O=()=>{a.value?v():f()};return l.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},h5=l.defineComponent({__name:"BDSessionTimeOutModal",props:["expiredTitle","expiredMessage","expiredButtonText","almostExpiredTitle","almostExpiredMessage","almostExpiredButtonText","almostExpiredCancelButtonText","threshold","warningThreshold","getTime","setTaskId","setNewTime","logout","hideCancelButton"],setup(t){const e=t,{IsExpired:n,Minutes:r,Seconds:o,OnLogOut:i,OnSubmit:s}=f5(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=l.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),a=l.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=l.computed(()=>e.hideCancelButton||n.value),u=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(Bo,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:l.unref(s),onCancel:l.unref(i)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(a.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),p5=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=Bi("attachment-upload-modal"),{t:o}=cn(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=l.ref([]),a=l.computed(()=>o("attachmentUploadModal.title")),d=l.computed(()=>o("attachmentUploadModal.submitButton")),u=l.computed(()=>o("attachmentUploadModal.infoMessage")),f=l.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=l.computed(()=>o("attachmentUploadModal.errorMessage")),p=l.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=l.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage")),g=l.computed(()=>o("attachmentUploadModal.officeDocumentsNotSupportedByMobileMessage"));return(y,C)=>(l.openBlock(),l.createBlock(Bo,{id:"attachment-upload-modal",title:a.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(u.value),1),l.createVNode(Hd,{modelValue:c.value,"onUpdate:modelValue":C[0]||(C[0]=E=>c.value=E),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(m.value),1),l.createElementVNode("p",null,l.toDisplayString(g.value),1)]),_:1},8,["title","submit-button-title"]))}});var kR=Object.defineProperty,AR=Object.defineProperties,TR=Object.getOwnPropertyDescriptors,m5=Object.getOwnPropertySymbols,IR=Object.prototype.hasOwnProperty,xR=Object.prototype.propertyIsEnumerable,g5=(t,e,n)=>e in t?kR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$i=(t,e)=>{for(var n in e||(e={}))IR.call(e,n)&&g5(t,n,e[n]);if(m5)for(var n of m5(e))xR.call(e,n)&&g5(t,n,e[n]);return t},y5=(t,e)=>AR(t,TR(e));const OR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},NR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},MR={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},ch=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},LR={},DR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},PR=l.createElementVNode("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1),BR=[PR];function RR(t,e){return l.openBlock(),l.createElementBlock("svg",DR,BR)}const $R=ch(LR,[["render",RR]]),VR={},FR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},jR=l.createElementVNode("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1),zR=[jR];function UR(t,e){return l.openBlock(),l.createElementBlock("svg",FR,zR)}const HR=ch(VR,[["render",UR]]),v5={Deselect:$R,OpenIndicator:HR},WR={mounted(t,{instance:e}){if(e.appendToBody){const{height:n,top:r,left:o,width:i}=e.$refs.toggle.getBoundingClientRect();let s=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=e.calculatePosition(t,e,{width:i+"px",left:s+o+"px",top:c+r+n+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:e}){e.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function KR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let YR=0;function GR(){return++YR}const QR={components:$i({},v5),directives:{appendToBody:WR},mixins:[OR,NR,MR],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
1360
+ https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:KR(t)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
1361
+ https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>GR()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:$i({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:e=>this.search=e.target.value}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:y5($i({},t),{deselect:this.deselect}),footer:y5($i({},t),{deselect:this.deselect})}},childComponents(){return $i($i({},v5),this.components)},stateClasses(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,e){const n=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,e,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&n()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(e=>this.findOptionFromReducedValue(e)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(e=>!this.optionComparator(e,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(e=>this.reduce(e)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const e=t.target!==this.searchEl;e&&t.preventDefault();const n=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||n.filter(Boolean).some(r=>r.contains(t.target)||r===t.target)){t.preventDefault();return}this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(e=>this.optionComparator(e,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue(t){const e=r=>JSON.stringify(this.reduce(r))===JSON.stringify(t),n=[...this.options,...this.pushedTags].filter(e);return n.length===1?n[0]:n.find(r=>this.optionComparator(r,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(e=>this.optionComparator(e,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:e}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const e=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),n={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>n[o]=e);const r=this.mapKeydown(n,this);if(typeof r[t.keyCode]=="function")return r[t.keyCode](t)}}},ZR=["dir"],JR=["id","aria-expanded","aria-owns"],XR={ref:"selectedOptions",class:"vs__selected-options"},qR=["disabled","title","aria-label","onClick"],e$={ref:"actions",class:"vs__actions"},t$=["disabled"],n$={class:"vs__spinner"},r$=["id"],o$=["id","aria-selected","onMouseover","onClick"],i$={key:0,class:"vs__no-options"},s$=l.createTextVNode(" Sorry, no matching options. "),a$=["id"];function l$(t,e,n,r,o,i){const s=l.resolveDirective("append-to-body");return l.openBlock(),l.createElementBlock("div",{dir:n.dir,class:l.normalizeClass(["v-select",i.stateClasses])},[l.renderSlot(t.$slots,"header",l.normalizeProps(l.guardReactiveProps(i.scope.header))),l.createElementVNode("div",{id:`vs${n.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${n.uid}__listbox`,"aria-label":"Search for option",onMousedown:e[1]||(e[1]=c=>i.toggleDropdown(c))},[l.createElementVNode("div",XR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.selectedValue,(c,a)=>l.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(l.openBlock(),l.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[l.renderSlot(t.$slots,"selected-option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(l.openBlock(),l.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[a]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,qR)):l.createCommentVNode("",!0)]))])),256)),l.renderSlot(t.$slots,"search",l.normalizeProps(l.guardReactiveProps(i.scope.search)),()=>[l.createElementVNode("input",l.mergeProps({class:"vs__search"},i.scope.search.attributes,l.toHandlers(i.scope.search.events)),null,16)])],512),l.createElementVNode("div",e$,[l.withDirectives(l.createElementVNode("button",{ref:"clearButton",disabled:n.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:e[0]||(e[0]=(...c)=>i.clearSelection&&i.clearSelection(...c))},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,t$),[[l.vShow,i.showClearButton]]),l.renderSlot(t.$slots,"open-indicator",l.normalizeProps(l.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.OpenIndicator),l.normalizeProps(l.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),l.renderSlot(t.$slots,"spinner",l.normalizeProps(l.guardReactiveProps(i.scope.spinner)),()=>[l.withDirectives(l.createElementVNode("div",n$,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,JR),l.createVNode(l.Transition,{name:n.transition},{default:l.withCtx(()=>[i.dropdownOpen?l.withDirectives((l.openBlock(),l.createElementBlock("ul",{id:`vs${n.uid}__listbox`,ref:"dropdownMenu",key:`vs${n.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:e[2]||(e[2]=l.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[l.renderSlot(t.$slots,"list-header",l.normalizeProps(l.guardReactiveProps(i.scope.listHeader))),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.filteredOptions,(c,a)=>(l.openBlock(),l.createElementBlock("li",{id:`vs${n.uid}__option-${a}`,key:n.getOptionKey(c),role:"option",class:l.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&a===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":a===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":a===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[l.renderSlot(t.$slots,"option",l.normalizeProps(l.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[l.createTextVNode(l.toDisplayString(n.getOptionLabel(c)),1)])],42,o$))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",i$,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[s$])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,r$)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,a$))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,ZR)}const c$=ch(QR,[["render",l$]]),_j="",d$=t=>typeof t=="number",u$=12,f$=["textContent"],h$=["textContent"],p$={key:0,class:"content-library-card__body"},m$=["textContent"],g$={key:1},kc=l.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o=l.computed(()=>`Open ${n.provider} in nieuw venster`),i=()=>{e("on-insert",n.itemId)},s=()=>{window.open(n.uri,"_blank","noopener,noreferrer")};return(c,a)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",n.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(c.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(n.title)},null,8,f$),n.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(n.subtitle)},null,8,h$)):l.createCommentVNode("",!0)])]),n.showBody?(l.openBlock(),l.createElementBlock("div",p$,[l.renderSlot(c.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(n.description),class:"content-library-card__description"},null,8,m$)])])):l.createCommentVNode("",!0),n.showFooter?(l.openBlock(),l.createElementBlock("footer",g$,[l.renderSlot(c.$slots,"footer",{},()=>[l.createVNode(Qe,{variant:"secondary",onClick:i},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Qe,{title:o.value,variant:"icon",onClick:s},{default:l.withCtx(()=>[l.createVNode($c)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),y$=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(kc,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),v$={class:"content-library-card-image__titles"},b$=["textContent"],C$=["textContent"],E$=["src"],S$=l.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",v$,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,b$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,C$)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,E$)]),_:1},16))}}),_$=l.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=l.computed(()=>{const{itemId:r,title:o,subtitle:i,uri:s,provider:c}=e.item;return{itemId:r,title:o,subtitle:i,uri:s,provider:c}});return(r,o)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),w$=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),k$={class:"content-library-card-message-template__tag"},A$=["textContent"],T$=["textContent"],I$=["textContent"],x$=["id"],O$=["innerHTML"],N$={class:"collapsed-hide"},M$={class:"collapsed-show"},L$={key:2,class:"edit-btn-group"},D$={key:3,class:"attachment-occurence"},P$={class:"number-icon"},B$=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o=l.ref(null),i=l.ref(!1),s=l.ref(!1),c=l.computed(()=>`collapse-preview-${n.item.itemId}`),a=l.computed(()=>e0(n.item.files)?null:n.item.files.length),d=l.computed(()=>n.variant==="insert"),u=l.computed(()=>n.variant==="edit"),f=l.computed(()=>n.variant==="shared"),h=l.computed(()=>s.value?Be:"content-library-card-not-collapsable"),p=l.computed(()=>n.item.text?w$(n.item.text):Be),m=l.computed(()=>ki(n.item.files,!1)),g=l.computed(()=>ki(n.item.files,!0)),y=()=>{o.value&&(s.value=i.value||o.value.scrollHeight>o.value.clientHeight||n.item.files&&n.item.files.length>0)},C=()=>{e("on-insert",n.item.itemId)},E=k=>{e("show-attachment",k)},b=()=>{e("on-change",n.item.itemId)},v=()=>{e("delete",n.item.itemId)};return l.watch(()=>n.item,()=>{o.value&&l.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{y()})}),(k,_)=>(l.openBlock(),l.createBlock(kc,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${h.value}`,onOnInsert:C}),{header:l.withCtx(()=>[l.createElementVNode("div",k$,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,A$)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,T$),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,I$)]),footer:l.withCtx(()=>[d.value?(l.openBlock(),l.createBlock(Qe,{key:0,variant:"secondary",onClick:C},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),f.value?l.withDirectives((l.openBlock(),l.createBlock(Qe,{key:1,variant:"icon",title:l.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Fc)]),_:1},8,["title"])),[[l.unref(Pi)]]):l.createCommentVNode("",!0),u.value?(l.openBlock(),l.createElementBlock("div",L$,[l.createVNode(Qe,{title:l.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:b},{default:l.withCtx(()=>[l.createVNode(Rc)]),_:1},8,["title"]),l.createVNode(Qe,{title:l.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:v},{default:l.withCtx(()=>[l.createVNode(Pc)]),_:1},8,["title"])])):l.createCommentVNode("",!0),a.value?(l.openBlock(),l.createElementBlock("div",D$,[l.createVNode(Er),l.createElementVNode("div",P$,l.toDisplayString(a.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:c.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:o},[l.createElementVNode("p",{class:"message-text",innerHTML:p.value},null,8,O$),t.item.files?(l.openBlock(),l.createBlock(Qs,{key:0,"no-download":!0,files:m.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(Zs,{key:1,"no-download":!0,files:g.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,x$),s.value?(l.openBlock(),l.createBlock(Qe,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${c.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",N$,l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",M$,l.toDisplayString(l.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),wj="",R$={class:"content-library-overview"},$$=Ee({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o={BDContentLibraryCardBasic:y$,BDContentLibraryCardImage:S$,BDContentLibraryCardTitle:_$,BDContentLibraryCardMessageTemplate:B$},i=l.computed(()=>e0(n.items)),s=l.computed(()=>Math.floor(u$/n.cols)),c=f=>{e("on-insert",f)},a=f=>{e("on-change",f)},d=f=>{e("delete",f)},u=f=>{e("show-attachment",f)};return(f,h)=>(l.openBlock(),l.createElementBlock("div",R$,[l.createVNode(_n,null,{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createBlock(Tt,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Vo,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,p=>(l.openBlock(),l.createBlock(Tt,{key:p.itemId,sm:12,md:6,lg:s.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(o[p.componentToRender]),l.mergeProps(p,{item:p,onOnInsert:c,onOnChange:a,onDelete:d,onShowAttachment:u}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-84b05d12"]]),V$={class:"content-library-template"},F$={class:"number-of-messages"},j$=["src"],z$=["src"],U$=["id"],H$={key:1},W$={class:"collapsed-show"},K$={class:"collapsed-hide"},dh=l.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o=l.ref(n.modelValue);l.watch(()=>n.modelValue,z=>{o.value=z},{immediate:!0,deep:!0});const i=l.computed(()=>{var z,K;return(K=(z=n.modelValue)==null?void 0:z.provider)!=null&&K.SupportsSearch?r("contentLibraryTemplate.searchPlaceholderSearch"):r("contentLibraryTemplate.searchPlaceholder")}),s=l.computed(()=>Fd(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=l.computed(()=>n.provider&&Fd(n.provider.items)?n.provider.items:[]),a=l.computed(()=>n.provider&&Fd(n.provider.filters)),d=l.computed(()=>{let z=0;return n.provider&&d$(n.provider.totalNumber)&&(z=n.provider.totalNumber),z===1?`${z} ${r("contentLibraryTemplate.message")}`:`${z} ${r("contentLibraryTemplate.messages")}`}),u=l.computed(()=>!!(n.provider&&n.provider.pageSize&&n.provider.totalNumber&&n.provider.pageSize<=n.provider.totalNumber)),f=l.computed(()=>n.provider&&n.provider.totalNumber?n.provider.totalNumber:0),h=l.computed(()=>a.value?9:12),p=l.computed(()=>n.provider&&!a.value?3:2),m=l.computed(()=>n.showAddButton||s.value),g=l.computed(()=>({md:3,lg:3})),y=l.computed(()=>({md:9,lg:9})),C=l.computed(()=>({sm:12,md:12,lg:s.value?7:8,"offset-lg":m.value?0:3,"offset-md":m.value?0:3})),E=l.computed(()=>({sm:12,md:m.value?6:3,lg:s.value?5:4})),b=z=>z.replace(/\s/g,"-"),v=()=>{e("create")},k=z=>{e("on-insert",z)},_=z=>{e("on-change",z)},O=z=>{e("delete",z)},L=()=>{e("update","category")},N=()=>{o.value.currentPage=1,e("on-input",o.value)},j=()=>{e("on-input",o.value)},V=z=>{e("show-attachment",z)},P=z=>{e("provider-changed",z.value)};return(z,K)=>(l.openBlock(),l.createElementBlock("div",V$,[l.createVNode(_n,null,{default:l.withCtx(()=>[l.createVNode(Tt,l.mergeProps(g.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",F$,l.toDisplayString(d.value),1),z.showAddButton?(l.openBlock(),l.createBlock(Qe,{key:0,class:"d-md-none",onClick:v},{default:l.withCtx(()=>[l.createVNode(da),l.createTextVNode(" "+l.toDisplayString(l.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(Tt,l.mergeProps(y.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(_n,null,{default:l.withCtx(()=>[l.createVNode(Tt,l.mergeProps(C.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Or,{type:"text",modelValue:o.value.searchTerm,"onUpdate:modelValue":K[0]||(K[0]=F=>o.value.searchTerm=F),placeholder:i.value,delayTimeMs:500,class:"search-input",onInput:N,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),z.showAddButton?(l.openBlock(),l.createBlock(Tt,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[z.showAddButton?(l.openBlock(),l.createBlock(Qe,{key:0,onClick:v},{default:l.withCtx(()=>[l.createVNode(da),l.createTextVNode(" "+l.toDisplayString(l.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),s.value?(l.openBlock(),l.createBlock(Tt,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(c$),{modelValue:o.value.provider,"onUpdate:modelValue":K[1]||(K[1]=F=>o.value.provider=F),options:z.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":P},{"open-indicator":l.withCtx(({attributes:F})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps(F)),[l.createVNode(sa)],16)]),option:l.withCtx(({icon:F,label:W,img:Q})=>[F?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(F),{key:0})):l.createCommentVNode("",!0),Q?(l.openBlock(),l.createElementBlock("img",{key:1,src:Q},null,8,j$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(W),1)]),"selected-option":l.withCtx(({icon:F,label:W,img:Q})=>[F?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(F),{key:0})):l.createCommentVNode("",!0),Q?(l.openBlock(),l.createElementBlock("img",{key:1,src:Q},null,8,z$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(W),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),a.value?(l.openBlock(),l.createBlock(Tt,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(Jc,{title:"Filter",showOn:"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(z.provider.filters,F=>(l.openBlock(),l.createBlock(Rd,{key:F.label,label:F.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.options,(W,Q)=>(l.openBlock(),l.createBlock(Da,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=U=>o.value.selectedFilters=U),key:Q,value:`${F.id}-${W.item}`,onChange:N},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(W.name),1)]),_:2},1032,["modelValue","value"]))),128)),F.moreOptions?(l.openBlock(),l.createElementBlock("div",{key:0,id:`collapse-${b(F.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(F.moreOptions,(W,Q)=>(l.openBlock(),l.createBlock(Da,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=U=>o.value.selectedFilters=U),key:Q,value:`${F.id}-${W.item}`,onChange:N},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(W.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,U$)):l.createCommentVNode("",!0),F.moreOptions?(l.openBlock(),l.createElementBlock("div",H$,[l.createVNode(Qe,{class:"collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${b(F.label)}`},{default:l.withCtx(()=>[l.createVNode(Ic,{class:"collapsed-show"}),l.createElementVNode("span",W$,l.toDisplayString(l.unref(r)("contentLibraryTemplate.more")),1),l.createVNode(xc,{class:"collapsed-hide"}),l.createElementVNode("span",K$,l.toDisplayString(l.unref(r)("contentLibraryTemplate.less")),1)]),_:2},1032,["data-bs-target"])])):l.createCommentVNode("",!0),F.label==="Categorieën"&&z.editCategory?(l.openBlock(),l.createBlock(Qe,{key:2,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:L},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(r)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(Tt,{md:12,lg:h.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode($$,{items:c.value,cols:p.value,onOnInsert:k,onOnChange:_,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),l.createVNode(_n,{class:"content-library-pagination"},{default:l.withCtx(()=>[u.value?(l.openBlock(),l.createBlock($d,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":K[4]||(K[4]=F=>o.value.currentPage=F),totalRows:f.value,rowsPerPage:z.provider.pageSize,onClick:j,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),b5={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},modalTitle:{type:String,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const n=t,{closeModal:r}=Bi("content-library-modal"),o=l.ref(n.modelValue),i=l.computed(()=>{var h,p;return!((p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0)&&p.img?n.modelValue.provider.img:null}),s=l.computed(()=>{var h,p;return!((p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0)&&p.label?n.modelValue.provider.label:Be});l.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},a=()=>{e("cancel")},d=h=>{e("show-attachment",h)},u=()=>{e("shown")},f=h=>{e("provider-changed",h)};return(h,p)=>(l.openBlock(),l.createBlock(Bo,{id:"content-library-modal","title-image":i.value,title:s.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:a,onShown:u},{default:l.withCtx(()=>[l.createVNode(dh,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};function C5(){const t=l.ref(0),e=l.ref(!0),n=l.ref(null),r=l.ref({top:0,left:0,x:0,y:0}),o=l.computed(()=>t.value>0?`zoom-${t.value}`:"");return{zoom:t,mouseDown:e,imageHolderRef:n,pos:r,SetZoom:o,OnMouseDown:a=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;const d=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");d&&(d.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const d=a.clientX-r.value.x,u=a.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-u,n.value.scrollLeft=r.value.left-d)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),d&&d.style&&(d.style.cursor="grab"),e.value=!1}}}const Y$=["src","alt"],G$={key:0,class:"show-spinner"},Q$={class:"spinner-border text-primary",role:"status"},Z$=["textContent"],J$=["href"],E5=l.defineComponent({__name:"BDImageAttachmentModal",setup(t,{expose:e}){const{showModal:n}=Bi("image-attachment-modal"),{zoom:r,imageHolderRef:o,SetZoom:i,OnMouseDown:s,OnMouseMove:c,OnMouseUp:a}=C5(),{t:d}=cn(),u=l.ref(!0),f=l.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}),h=l.computed(()=>d("imageAttachmentModal.download")),p=l.computed(()=>d("imageAttachmentModal.loading"));e({Show:C=>{f.value=C,r.value=0,n()}});const g=()=>{u.value=!1},y=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}};return(C,E)=>(l.openBlock(),l.createBlock(Bo,{id:"image-attachment-modal",class:l.normalizeClass(l.unref(Be)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:y},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:o,onMousedown:E[0]||(E[0]=(...b)=>l.unref(s)&&l.unref(s)(...b)),onMousemove:E[1]||(E[1]=(...b)=>l.unref(c)&&l.unref(c)(...b)),onMouseup:E[2]||(E[2]=(...b)=>l.unref(a)&&l.unref(a)(...b))},[f.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:l.normalizeClass(["image-preview-modal",l.unref(i)]),onLoad:g,draggable:!1},null,42,Y$)):l.createCommentVNode("",!0)],544),u.value?(l.openBlock(),l.createElementBlock("div",G$,[l.createElementVNode("div",Q$,[l.createElementVNode("span",{class:"visually-hidden",textContent:l.toDisplayString(p.value)},null,8,Z$)])])):l.createCommentVNode("",!0),l.createVNode(Zc,{modelValue:l.unref(r),"onUpdate:modelValue":E[3]||(E[3]=b=>l.isRef(r)?r.value=b:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),l.createElementVNode("a",{href:f.value.downloadUrl},[l.createVNode(Qe,{variant:"primary",class:"download-image",textContent:l.toDisplayString(h.value)},null,8,["textContent"])],8,J$)]),_:1},8,["class","title"]))}}),S5=()=>({ResetValidation:n=>{for(const r in n.value)n.value[r].state=null},ValidationObjectIsValid:n=>{for(let r in n)if(n[r].state===!1)return!1;return!0}}),X$={class:"template change-password-template"},q$={class:"template-title"},eV={key:0},tV={key:1},nV=["onSubmit","onReset"],rV={class:"bd-form-field"},oV={class:"bd-form-field"},iV={class:"bd-form-field"},sV={class:"bd-form-buttons"},_5=l.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const e=t,{showDangerToast:n,showSuccessToast:r}=wc(),{errorMessages:o,errorMessageText:i,MapServerErrors:s,ResetServerErrors:c}=lh(null),{ValidationObjectIsValid:a}=S5();let d=l.ref({password:Be,passwordNew:Be,passwordRepeat:Be}),u=l.ref({password:{state:null,errorLabel:Be},passwordNew:{state:null,errorLabel:Be},passwordRepeat:{state:null,errorLabel:Be}});const f=()=>{if(!h())return;const g=e.submitPassword(d.value);g&&g.then(()=>{r(e.successText),p()}).catch(y=>{n(e.failureText),s(y)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(d.value.passwordNew&&!m.test(d.value.passwordNew))u.value.passwordNew.state=!1,u.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const g=d.value.passwordRepeat===d.value.passwordNew,y=g?e.requiredText:e.incompatibleText;u.value.passwordNew.state=d.value.passwordNew!==Be&&g?null:!1,u.value.passwordNew.errorLabel=y,u.value.passwordRepeat.state=d.value.passwordRepeat!==Be&&g?null:!1,u.value.passwordRepeat.errorLabel=y}return u.value.password.state=d.value.password!==Be?null:!1,u.value.password.errorLabel=u.value.password.state?Be:e.requiredText,a(u.value)},p=()=>{d.value.password=Be,d.value.passwordNew=Be,d.value.passwordRepeat=Be,u.value.password.state=null,u.value.passwordNew.state=null,u.value.passwordRepeat.state=null,c()};return(m,g)=>(l.openBlock(),l.createElementBlock("main",X$,[l.createVNode(Fi,{class:"container-xl"},{default:l.withCtx(()=>[l.createVNode(_n,{class:"justify-content-md-center template-header"},{default:l.withCtx(()=>[l.createVNode(Tt,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createElementVNode("h1",q$,l.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),l.createVNode(_n,{class:"justify-content-md-center"},{default:l.withCtx(()=>[l.createVNode(Tt,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createVNode(pa,{class:"bd-card-template","no-header":!0},{body:l.withCtx(()=>[l.createVNode(Fi,{class:"container-fluid"},{default:l.withCtx(()=>[l.createVNode(_n,null,{default:l.withCtx(()=>[l.createVNode(Tt,null,{default:l.withCtx(()=>[l.createVNode(Vo,{variant:"warning"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),l.unref(o)||l.unref(i)?(l.openBlock(),l.createBlock(_n,{key:0},{default:l.withCtx(()=>[l.createVNode(Tt,null,{default:l.withCtx(()=>[l.createVNode(Vo,{variant:"danger"},{default:l.withCtx(()=>[l.unref(o)?(l.openBlock(),l.createElementBlock("div",eV,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(o),(y,C)=>(l.openBlock(),l.createElementBlock("li",{key:C},[l.createVNode(oo),l.createElementVNode("span",null,l.toDisplayString(y),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",tV,l.toDisplayString(l.unref(i)),1))]),_:1})]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(_n,null,{default:l.withCtx(()=>[l.createVNode(Tt,{class:"bd-card-form",sm:12,md:12},{default:l.withCtx(()=>[l.createElementVNode("form",{onSubmit:l.withModifiers(f,["prevent"]),onReset:l.withModifiers(p,["prevent"]),class:"form"},[l.createElementVNode("div",rV,[l.createVNode(Or,{modelValue:l.unref(d).password,"onUpdate:modelValue":g[0]||(g[0]=y=>l.unref(d).password=y),label:m.currentPasswordLabel,state:l.unref(u).password.state,type:"password","invalid-feedback-text":l.unref(u).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",oV,[l.createVNode(Or,{modelValue:l.unref(d).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=y=>l.unref(d).passwordNew=y),label:m.newPasswordLabel,state:l.unref(u).passwordNew.state,type:"password","invalid-feedback-text":l.unref(u).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",iV,[l.createVNode(Or,{modelValue:l.unref(d).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=y=>l.unref(d).passwordRepeat=y),label:m.confirmNewPasswordLabel,state:l.unref(u).passwordRepeat.state,type:"password","invalid-feedback-text":l.unref(u).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",sV,[l.createVNode(Qe,{type:"submit"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.submitButtonText),1)]),_:1}),l.createVNode(Qe,{type:"reset",variant:"link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,nV)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),aV={class:"template not-found-template"},lV={class:"center-screen"},cV={class:"container-warning"},dV=["textContent"],uV=["textContent"],w5=l.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const n=t,{t:r}=cn(),o=l.computed(()=>n.buttonText||r("notFoundTemplate.buttonDefault")),i=l.computed(()=>r("notFoundTemplate.title")),s=l.computed(()=>r("notFoundTemplate.description")),c=()=>e("navigate");return(a,d)=>(l.openBlock(),l.createElementBlock("main",aV,[l.createVNode(Fi,{class:"container-xl"},{default:l.withCtx(()=>[l.createElementVNode("div",lV,[l.createElementVNode("div",cV,[l.createVNode(Yc),l.createElementVNode("h5",{textContent:l.toDisplayString(i.value)},null,8,dV),l.createElementVNode("p",{textContent:l.toDisplayString(s.value)},null,8,uV),l.createVNode(Qe,{onClick:c,variant:"primary",type:"button",textContent:l.toDisplayString(o.value)},null,8,["textContent"])])])]),_:1})]))}});var fV={exports:{}};(function(t,e){(function(n,r){t.exports=r(u5)})(zd,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),i={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(s){return"["+s+(s===1||s===8||s>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return o.default.locale(i,null,!0),i})})(fV);var k5={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(zd,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,s=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,a={},d=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var E=C.match(/([+-]|\d\d)/g),b=60*E[1]+(+E[2]||0);return b===0?0:E[0]==="+"?-b:b}(y)}],h=function(y){var C=a[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var E,b=a.meridiem;if(b){for(var v=1;v<=24;v+=1)if(y.indexOf(b(v,0,C))>-1){E=v>12;break}}else E=y===(C?"pm":"PM");return E},m={A:[c,function(y){this.afternoon=p(y,!1)}],a:[c,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(y){var C=a.ordinal,E=y.match(/\d+/);if(this.day=E[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(y){var C=h("months"),E=(h("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(E<1)throw new Error;this.month=E%12||E}],MMMM:[c,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(y){this.year=d(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var C,E;C=y,E=a&&a.formats;for(var b=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,V,P){var z=P&&P.toUpperCase();return V||E[P]||n[P]||E[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,F,W){return F||W.slice(1)})})).match(r),v=b.length,k=0;k<v;k+=1){var _=b[k],O=m[_],L=O&&O[0],N=O&&O[1];b[k]=N?{regex:L,parser:N}:_.replace(/^\[|\]$/g,"")}return function(j){for(var V={},P=0,z=0;P<v;P+=1){var K=b[P];if(typeof K=="string")z+=K.length;else{var F=K.regex,W=K.parser,Q=j.slice(z),U=F.exec(Q)[0];W.call(V,U),j=j.replace(U,"")}}return function(ee){var ne=ee.afternoon;if(ne!==void 0){var ae=ee.hours;ne?ae<12&&(ee.hours+=12):ae===12&&(ee.hours=0),delete ee.afternoon}}(V),V}}return function(y,C,E){E.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var b=C.prototype,v=b.parse;b.parse=function(k){var _=k.date,O=k.utc,L=k.args;this.$u=O;var N=L[1];if(typeof N=="string"){var j=L[2]===!0,V=L[3]===!0,P=j||V,z=L[2];V&&(z=L[2]),a=this.$locale(),!j&&z&&(a=E.Ls[z]),this.$d=function(Q,U,ee,ne){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*Q);var ae=g(U)(Q),ue=ae.year,me=ae.month,Ce=ae.day,ke=ae.hours,Oe=ae.minutes,Se=ae.seconds,D=ae.milliseconds,R=ae.zone,x=ae.week,B=new Date,S=Ce||(ue||me?1:B.getDate()),w=ue||B.getFullYear(),I=0;ue&&!me||(I=me>0?me-1:B.getMonth());var M,Y=ke||0,G=Oe||0,J=Se||0,X=D||0;return R?new Date(Date.UTC(w,I,S,Y,G,J,X+60*R.offset*1e3)):ee?new Date(Date.UTC(w,I,S,Y,G,J,X)):(M=new Date(w,I,S,Y,G,J,X),x&&(M=ne(M).week(x).toDate()),M)}catch{return new Date("")}}(_,N,O,E),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),P&&_!=this.format(N)&&(this.$d=new Date("")),a={}}else if(N instanceof Array)for(var K=N.length,F=1;F<=K;F+=1){L[1]=N[F-1];var W=E.apply(this,L);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}F===K&&(this.$d=new Date(""))}else v.call(this,k)}}})})(k5);var hV=k5.exports;const pV=Ud(hV);Ri.extend(pV),Ri.locale("nl");function mV(t,e=Ri().startOf("day")){const n="DD-MM-YYYY",r=Ri(t,n);if(r.isSame(e))return"vandaag";const i=e.subtract(1,"day");if(r.isSame(i))return"gister";const c=e.subtract(2,"day");if(r.isSame(c))return"eergister";const d=e.subtract(7,"day");if(r.isAfter(d)){const h="dddd";return r.format(h)}if(r.year()==e.year()){const h="D MMM";return r.format(h)}return r.format(n)}const gV=t=>{const e=new RegExp("(?<=^|a>)((?:(?!<a).)*?)"),n=/((https?:\/\/|www\.)[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{2,24}\b([-a-zA-Z0-9()!@:%_+.~#?&/=]*))/;let r=new RegExp(e.source+n.source,"g");return t.replace(r,(o,i,s)=>{const c=s.startsWith("www.")?`http://${s}`:s;return`${i}<a href="${c}" target="_blank" rel="noopener noreferrer">${s}</a>`})},yV=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,vV=t=>t.startsWith("http://")||t.startsWith("https://"),bV={install:t=>{t.component("BDAlert",Vo),t.component("BDArticle",qm),t.component("BDAttachmentPreviewList",Qs),t.component("BDAttachmentUploadModal",p5),t.component("BDBadge",Zm),t.component("BDButton",Qe),t.component("BDCard",pa),t.component("BDChangePasswordTemplate",_5),t.component("BDChatCloud",t5),t.component("BDCol",Tt),t.component("BDCollapsableCard",Jc),t.component("BDContentLibraryModal",b5),t.component("BDContentLibrarySplitButton",Wm),t.component("BDContentLibraryTemplate",dh),t.component("BDContainer",Fi),t.component("BDDropdown",ih),t.component("BDDropdownItem",Ra),t.component("BDDropzone",Hd),t.component("BDForm",Jm),t.component("BDFormCheckbox",Da),t.component("BDFormInput",Or),t.component("BDFormInvalidFeedback",La),t.component("BDFormSelect",Xm),t.component("BDHeader",sh),t.component("BDImageAttachmentModal",E5),t.component("BDImageAttachmentPreviewList",Zs),t.component("BDInputGroup",Rd),t.component("BDLink",ro),t.component("BDLogo",Tc),t.component("BDMarkdownEditor",qv),t.component("BDMobileMenu",oh),t.component("BDModal",Bo),t.component("BDNotFoundTemplate",w5),t.component("BDPagination",$d),t.component("BDPhoneNumberEditModal",c5),t.component("BDPill",Ba),t.component("BDPractitionerHeader",l5),t.component("BDProfileImage",zi),t.component("BDRow",_n),t.component("BDSessionTimeOutModal",h5),t.component("BDTable",n5),t.component("BDToast",Vd),t.component("BDUser",e5),t.component("BDUserInformation",jd),t.component("BDVideoCallToast",i5),t.component("BDZoomslider",Zc),t.component("IconAcademy",oa),t.component("IconArrowDown",Ic),t.component("IconArrowUp",xc),t.component("IconAttachment",Er),t.component("IconBold",Oc),t.component("IconBulletList",Nc),t.component("IconCalendar",bh),t.component("IconCall",ia),t.component("IconCallReject",Mc),t.component("IconCardView",Ch),t.component("IconCaretDown",sa),t.component("IconCaretLeft",Lc),t.component("IconCaretRight",Dc),t.component("IconCheck",$o),t.component("IconClipboard",Eh),t.component("IconClose",aa),t.component("IconComment",Sh),t.component("IconCommentActive",_h),t.component("IconCommonFileEmpty",kh),t.component("IconCommonFileWarning",Ah),t.component("IconCommentStatic",wh),t.component("IconContactPerson",Th),t.component("IconCopy",Ih),t.component("IconDelete",Pc),t.component("IconDoubleCheck",xh),t.component("IconDownloadImage",Bc),t.component("IconEdit",Rc),t.component("IconEndCall",Oh),t.component("IconError",la),t.component("IconExternal",$c),t.component("IconEyeShow",Nh),t.component("IconEyeSlash",Mh),t.component("IconFile",Vc),t.component("IconFileAdded",Lh),t.component("IconForward",Dh),t.component("IconHix",Ph),t.component("IconHyperlink",ca),t.component("IconImageFileLandscape",Bh),t.component("IconImageFileWarning",Rh),t.component("IconInfo",oo),t.component("IconInformationCircle",Fc),t.component("IconItalic",jc),t.component("IconListView",$h),t.component("IconLock",Vh),t.component("IconLusciiEscalated",Fh),t.component("IconLusciiLogo",jh),t.component("IconLusciiOpen",zh),t.component("IconLusciiPriorityHigh",Uh),t.component("IconLusciiPriorityLow",Hh),t.component("IconLusciiPriorityMedium",Wh),t.component("IconMenu",zc),t.component("IconMessage",Kh),t.component("IconMessageForward",Yh),t.component("IconMicrophoneSlash",Gh),t.component("IconMicrosoftTeams",Qh),t.component("IconMin",Zh),t.component("IconOrderedList",Uc),t.component("IconPlus",da),t.component("IconRefresh",Jh),t.component("IconRemove",ji),t.component("IconSananetLogo",Xh),t.component("IconService",qh),t.component("IconShareScreen",ep),t.component("IconSingleNeutral",tp),t.component("IconSort",np),t.component("IconSortAsc",Hc),t.component("IconSortDesc",Wc),t.component("IconSortNone",Kc),t.component("IconTriangleDown",rp),t.component("IconTriangleExclamation",Yc),t.component("IconUnderline",Gc),t.component("IconVideoDisabled",ip),t.component("IconVideocall",op),t.component("IconZorgkaart",sp),t.directive("vBDTooltip",Pi)}};te.BDAlert=Vo,te.BDArticle=qm,te.BDAttachmentPreviewList=Qs,te.BDAttachmentUploadModal=p5,te.BDBadge=Zm,te.BDButton=Qe,te.BDCard=pa,te.BDChangePasswordTemplate=_5,te.BDChatCloud=t5,te.BDCol=Tt,te.BDCollapsableCard=Jc,te.BDContainer=Fi,te.BDContentLibraryModal=b5,te.BDContentLibrarySplitButton=Wm,te.BDContentLibraryTemplate=dh,te.BDDropdown=ih,te.BDDropdownItem=Ra,te.BDDropzone=Hd,te.BDForm=Jm,te.BDFormCheckbox=Da,te.BDFormInput=Or,te.BDFormInvalidFeedback=La,te.BDFormSelect=Xm,te.BDHeader=sh,te.BDImageAttachmentModal=E5,te.BDImageAttachmentPreviewList=Zs,te.BDInputGroup=Rd,te.BDLink=ro,te.BDLogo=Tc,te.BDMarkdownEditor=qv,te.BDMobileMenu=oh,te.BDModal=Bo,te.BDNotFoundTemplate=w5,te.BDPagination=$d,te.BDPhoneNumberEditModal=c5,te.BDPill=Ba,te.BDPractitionerHeader=l5,te.BDProfileImage=zi,te.BDRow=_n,te.BDSessionTimeOutModal=h5,te.BDTable=n5,te.BDToast=Vd,te.BDUser=e5,te.BDUserInformation=jd,te.BDVideoCallToast=i5,te.BDZoomslider=Zc,te.CreateHyperlinkParagraph=yV,te.IconAcademy=oa,te.IconArrowDown=Ic,te.IconArrowUp=xc,te.IconAttachment=Er,te.IconBold=Oc,te.IconBulletList=Nc,te.IconCalendar=bh,te.IconCall=ia,te.IconCallReject=Mc,te.IconCardView=Ch,te.IconCaretDown=sa,te.IconCaretLeft=Lc,te.IconCaretRight=Dc,te.IconCheck=$o,te.IconClipboard=Eh,te.IconClose=aa,te.IconComment=Sh,te.IconCommentActive=_h,te.IconCommentStatic=wh,te.IconCommonFileEmpty=kh,te.IconCommonFileWarning=Ah,te.IconContactPerson=Th,te.IconCopy=Ih,te.IconDelete=Pc,te.IconDoubleCheck=xh,te.IconDownloadImage=Bc,te.IconEdit=Rc,te.IconEndCall=Oh,te.IconError=la,te.IconExternal=$c,te.IconEyeShow=Nh,te.IconEyeSlash=Mh,te.IconFile=Vc,te.IconFileAdded=Lh,te.IconForward=Dh,te.IconHix=Ph,te.IconHyperlink=ca,te.IconImageFileLandscape=Bh,te.IconImageFileWarning=Rh,te.IconInfo=oo,te.IconInformationCircle=Fc,te.IconItalic=jc,te.IconListView=$h,te.IconLock=Vh,te.IconLusciiEscalated=Fh,te.IconLusciiLogo=jh,te.IconLusciiOpen=zh,te.IconLusciiPriorityHigh=Uh,te.IconLusciiPriorityLow=Hh,te.IconLusciiPriorityMedium=Wh,te.IconMenu=zc,te.IconMessage=Kh,te.IconMessageForward=Yh,te.IconMicrophoneSlash=Gh,te.IconMicrosoftTeams=Qh,te.IconMin=Zh,te.IconOrderedList=Uc,te.IconPlus=da,te.IconRefresh=Jh,te.IconRemove=ji,te.IconSananetLogo=Xh,te.IconService=qh,te.IconShareScreen=ep,te.IconSingleNeutral=tp,te.IconSort=np,te.IconSortAsc=Hc,te.IconSortDesc=Wc,te.IconSortNone=Kc,te.IconTriangleDown=rp,te.IconTriangleExclamation=Yc,te.IconUnderline=Gc,te.IconVideoDisabled=ip,te.IconVideocall=op,te.IconZorgkaart=sp,te.TransformHyperlinks=gV,te.ValidateUrl=vV,te.default=bV,te.getDisplayDate=mV,te.useModal=Bi,te.usePopover=a5,te.useServerErrors=lh,te.useSessionTimeOut=f5,te.useToaster=wc,te.useValidation=S5,te.useWindow=ah,te.useZoom=C5,te.vBdTooltip=Pi,Object.defineProperties(te,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});