@beterdichtbij/component-library 0.57.0 → 0.57.2

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,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");function L3(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const xc=L3(l),It=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))}}),rs=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))}}),bn=l.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["row",t.class])},[l.renderSlot(e.$slots,"default")],2))}}),lt={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},Co=l.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=/^https:/i,r=l.computed(()=>typeof e.to=="string"&&n.test(e.to)?"a":typeof e.to!="string"&&typeof l.resolveComponent("router-link")!="string"?"router-link":"div"),o=l.computed(()=>{if(typeof e.to=="string"&&n.test(e.to)){const{to:i,target:s,rel:c}=e;return{href:i,target:s,rel:c}}else{const{to:i}=e;return{to:i}}});return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r.value),l.mergeProps({class:"bd-link"},o.value),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(e.text),1)])]),_:3},16))}}),D3={PRIMARY:"primary"},Re=l.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:D3.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=e,o=l.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",disabled:n.disabled})),i=l.computed(()=>n.to?Co:"button"),s=l.computed(()=>{const a={};return n.to?(a.to=n.to,a.role="button"):a.type="submit",a}),c=a=>{r("click",a)};return(a,u)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value),l.mergeProps({class:["bd-btn",o.value]},s.value,{onClick:c}),{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),me=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},P3={};function B3(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"}),[...e[0]||(e[0]=[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)])],16)}const Od=me(P3,[["render",B3]]),R3={},V3={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return l.openBlock(),l.createElementBlock("svg",V3,[...e[0]||(e[0]=[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)])])}const za=me(R3,[["render",$3]]),F3={},z3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return l.openBlock(),l.createElementBlock("svg",z3,[...e[0]||(e[0]=[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)])])}const Md=me(F3,[["render",U3]]),H3={},j3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return l.openBlock(),l.createElementBlock("svg",j3,[...e[0]||(e[0]=[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)])])}const Ld=me(H3,[["render",W3]]),K3={},Y3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return l.openBlock(),l.createElementBlock("svg",Y3,[...e[0]||(e[0]=[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)])])}const Dr=me(K3,[["render",G3]]),Q3={},Z3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"};function J3(t,e){return l.openBlock(),l.createElementBlock("svg",Z3,[...e[0]||(e[0]=[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)])])}const Dd=me(Q3,[["render",J3]]),X3={},q3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"};function eb(t,e){return l.openBlock(),l.createElementBlock("svg",q3,[...e[0]||(e[0]=[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)])])}const Pd=me(X3,[["render",eb]]),tb={},nb={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"};function rb(t,e){return l.openBlock(),l.createElementBlock("svg",nb,[...e[0]||(e[0]=[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)])])}const E0=me(tb,[["render",rb]]),ob={},ib={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"};function sb(t,e){return l.openBlock(),l.createElementBlock("svg",ib,[...e[0]||(e[0]=[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)])])}const Ua=me(ob,[["render",sb]]),ab={},lb={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"};function cb(t,e){return l.openBlock(),l.createElementBlock("svg",lb,[...e[0]||(e[0]=[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)])])}const Bd=me(ab,[["render",cb]]),ub={},db={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"};function fb(t,e){return l.openBlock(),l.createElementBlock("svg",db,[...e[0]||(e[0]=[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)])])}const k0=me(ub,[["render",fb]]),hb={},pb={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"};function mb(t,e){return l.openBlock(),l.createElementBlock("svg",pb,[...e[0]||(e[0]=[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)])])}const Hl=me(hb,[["render",mb]]),gb={},vb={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"};function yb(t,e){return l.openBlock(),l.createElementBlock("svg",vb,[...e[0]||(e[0]=[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)])])}const Rd=me(gb,[["render",yb]]),bb={},Cb={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"};function Eb(t,e){return l.openBlock(),l.createElementBlock("svg",Cb,[...e[0]||(e[0]=[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)])])}const Vd=me(bb,[["render",Eb]]),kb={},wb={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"};function Sb(t,e){return l.openBlock(),l.createElementBlock("svg",wb,[...e[0]||(e[0]=[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)])])}const gi=me(kb,[["render",Sb]]),Ab={},xb={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"};function Tb(t,e){return l.openBlock(),l.createElementBlock("svg",xb,[...e[0]||(e[0]=[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)])])}const w0=me(Ab,[["render",Tb]]),Ib={},_b={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"};function Nb(t,e){return l.openBlock(),l.createElementBlock("svg",_b,[...e[0]||(e[0]=[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)])])}const jl=me(Ib,[["render",Nb]]),Ob={},Mb={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function Lb(t,e){return l.openBlock(),l.createElementBlock("svg",Mb,[...e[0]||(e[0]=[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)])])}const $d=me(Ob,[["render",Lb]]),Db={},Pb={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function Bb(t,e){return l.openBlock(),l.createElementBlock("svg",Pb,[...e[0]||(e[0]=[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)])])}const S0=me(Db,[["render",Bb]]),Rb={},Vb={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function $b(t,e){return l.openBlock(),l.createElementBlock("svg",Vb,[...e[0]||(e[0]=[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)])])}const A0=me(Rb,[["render",$b]]),Fb={},zb={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"};function Ub(t,e){return l.openBlock(),l.createElementBlock("svg",zb,[...e[0]||(e[0]=[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
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue");function L3(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const xc=L3(l),It=l.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xl:{},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-xl-${e.xl}`]:e.xl,[`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))}}),rs=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))}}),bn=l.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["row",t.class])},[l.renderSlot(e.$slots,"default")],2))}}),lt={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},Co=l.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=/^https:/i,r=l.computed(()=>typeof e.to=="string"&&n.test(e.to)?"a":typeof e.to!="string"&&typeof l.resolveComponent("router-link")!="string"?"router-link":"div"),o=l.computed(()=>{if(typeof e.to=="string"&&n.test(e.to)){const{to:i,target:s,rel:c}=e;return{href:i,target:s,rel:c}}else{const{to:i}=e;return{to:i}}});return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r.value),l.mergeProps({class:"bd-link"},o.value),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(e.text),1)])]),_:3},16))}}),D3={PRIMARY:"primary"},Re=l.defineComponent({__name:"BDButton",props:{size:{default:lt.MD},variant:{default:D3.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=e,o=l.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",disabled:n.disabled})),i=l.computed(()=>n.to?Co:"button"),s=l.computed(()=>{const a={};return n.to?(a.to=n.to,a.role="button"):a.type="submit",a}),c=a=>{r("click",a)};return(a,u)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.value),l.mergeProps({class:["bd-btn",o.value]},s.value,{onClick:c}),{default:l.withCtx(()=>[l.renderSlot(a.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),me=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},P3={};function B3(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"}),[...e[0]||(e[0]=[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)])],16)}const Od=me(P3,[["render",B3]]),R3={},V3={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"};function $3(t,e){return l.openBlock(),l.createElementBlock("svg",V3,[...e[0]||(e[0]=[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)])])}const za=me(R3,[["render",$3]]),F3={},z3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};function U3(t,e){return l.openBlock(),l.createElementBlock("svg",z3,[...e[0]||(e[0]=[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)])])}const Md=me(F3,[["render",U3]]),H3={},j3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"};function W3(t,e){return l.openBlock(),l.createElementBlock("svg",j3,[...e[0]||(e[0]=[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)])])}const Ld=me(H3,[["render",W3]]),K3={},Y3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"};function G3(t,e){return l.openBlock(),l.createElementBlock("svg",Y3,[...e[0]||(e[0]=[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)])])}const Dr=me(K3,[["render",G3]]),Q3={},Z3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"};function J3(t,e){return l.openBlock(),l.createElementBlock("svg",Z3,[...e[0]||(e[0]=[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)])])}const Dd=me(Q3,[["render",J3]]),X3={},q3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"};function eb(t,e){return l.openBlock(),l.createElementBlock("svg",q3,[...e[0]||(e[0]=[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)])])}const Pd=me(X3,[["render",eb]]),tb={},nb={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"};function rb(t,e){return l.openBlock(),l.createElementBlock("svg",nb,[...e[0]||(e[0]=[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)])])}const E0=me(tb,[["render",rb]]),ob={},ib={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"};function sb(t,e){return l.openBlock(),l.createElementBlock("svg",ib,[...e[0]||(e[0]=[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)])])}const Ua=me(ob,[["render",sb]]),ab={},lb={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"};function cb(t,e){return l.openBlock(),l.createElementBlock("svg",lb,[...e[0]||(e[0]=[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)])])}const Bd=me(ab,[["render",cb]]),ub={},db={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"};function fb(t,e){return l.openBlock(),l.createElementBlock("svg",db,[...e[0]||(e[0]=[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)])])}const k0=me(ub,[["render",fb]]),hb={},pb={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"};function mb(t,e){return l.openBlock(),l.createElementBlock("svg",pb,[...e[0]||(e[0]=[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)])])}const Hl=me(hb,[["render",mb]]),gb={},vb={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"};function yb(t,e){return l.openBlock(),l.createElementBlock("svg",vb,[...e[0]||(e[0]=[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)])])}const Rd=me(gb,[["render",yb]]),bb={},Cb={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"};function Eb(t,e){return l.openBlock(),l.createElementBlock("svg",Cb,[...e[0]||(e[0]=[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)])])}const Vd=me(bb,[["render",Eb]]),kb={},wb={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"};function Sb(t,e){return l.openBlock(),l.createElementBlock("svg",wb,[...e[0]||(e[0]=[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)])])}const gi=me(kb,[["render",Sb]]),Ab={},xb={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"};function Tb(t,e){return l.openBlock(),l.createElementBlock("svg",xb,[...e[0]||(e[0]=[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)])])}const w0=me(Ab,[["render",Tb]]),Ib={},_b={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"};function Nb(t,e){return l.openBlock(),l.createElementBlock("svg",_b,[...e[0]||(e[0]=[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)])])}const jl=me(Ib,[["render",Nb]]),Ob={},Mb={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function Lb(t,e){return l.openBlock(),l.createElementBlock("svg",Mb,[...e[0]||(e[0]=[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)])])}const $d=me(Ob,[["render",Lb]]),Db={},Pb={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function Bb(t,e){return l.openBlock(),l.createElementBlock("svg",Pb,[...e[0]||(e[0]=[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)])])}const S0=me(Db,[["render",Bb]]),Rb={},Vb={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function $b(t,e){return l.openBlock(),l.createElementBlock("svg",Vb,[...e[0]||(e[0]=[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)])])}const A0=me(Rb,[["render",$b]]),Fb={},zb={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"};function Ub(t,e){return l.openBlock(),l.createElementBlock("svg",zb,[...e[0]||(e[0]=[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
2
  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
3
3
  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
4
4
  C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)])])}const x0=me(Fb,[["render",Ub]]),Hb={},jb={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"};function Wb(t,e){return l.openBlock(),l.createElementBlock("svg",jb,[...e[0]||(e[0]=[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
@@ -9,7 +9,7 @@
9
9
  c0.504-0.252,0.709-0.869,0.457-1.374l-4.226-8.451c-0.099-0.197-0.261-0.36-0.458-0.459C17.564,12.036,17.41,12,17.252,12z`}),l.createElementVNode("path",{d:`M2.249,21c-1.241,0-2.25-1.009-2.25-2.25V2.25c0-1.241,1.009-2.25,2.25-2.25h10.629c0.601,0,1.165,0.234,1.59,0.658
10
10
  l2.872,2.872c0.425,0.425,0.659,0.99,0.659,1.59V8.25c0,0.414-0.336,0.75-0.75,0.75s-0.75-0.336-0.75-0.75V5.121
11
11
  c0-0.197-0.08-0.39-0.219-0.53l-2.872-2.872c-0.142-0.141-0.33-0.219-0.53-0.219H2.249c-0.414,0-0.75,0.336-0.75,0.75v16.5
12
- c0,0.414,0.336,0.75,0.75,0.75h6c0.414,0,0.75,0.336,0.75,0.75S8.663,21,8.249,21H2.249z`})],-1)])])}const T0=me(Hb,[["render",Wb]]),Kb={},Yb={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"};function Gb(t,e){return l.openBlock(),l.createElementBlock("svg",Yb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M6.375 7.75C4.43359 7.75 2.875 6.19141 2.875 4.25C2.875 2.33594 4.43359 0.75 6.375 0.75C8.28906 0.75 9.875 2.33594 9.875 4.25C9.875 6.19141 8.28906 7.75 6.375 7.75ZM6.375 2.0625C5.14453 2.0625 4.1875 3.04688 4.1875 4.25C4.1875 5.48047 5.14453 6.4375 6.375 6.4375C7.57812 6.4375 8.5625 5.48047 8.5625 4.25C8.5625 3.04688 7.57812 2.0625 6.375 2.0625ZM7.74219 9.0625C10.3672 9.0625 12.5 11.1953 12.5 13.8203C12.5 14.3398 12.0625 14.75 11.543 14.75H1.17969C0.660156 14.75 0.25 14.3398 0.25 13.8203C0.25 11.1953 2.35547 9.0625 4.98047 9.0625H7.74219ZM1.5625 13.4375H11.1602C10.9414 11.7422 9.51953 10.375 7.74219 10.375H4.98047C3.20312 10.375 1.75391 11.7422 1.5625 13.4375ZM13.3477 9.5C15.7812 9.5 17.75 11.4688 17.75 13.875C17.75 14.3672 17.3398 14.75 16.875 14.75H13.1016C13.2656 14.4766 13.375 14.1758 13.375 13.8203C13.375 12.0977 12.582 10.5391 11.3242 9.5H13.3477ZM12.0625 7.75C11.1875 7.75 10.4219 7.42188 9.875 6.84766C10.4219 6.13672 10.75 5.23438 10.75 4.25C10.75 3.53906 10.5312 2.85547 10.2305 2.25391C10.7227 1.87109 11.3516 1.625 12.0625 1.625C13.7305 1.625 15.125 3.01953 15.125 4.6875C15.125 6.38281 13.7305 7.75 12.0625 7.75Z",fill:"#394156"},null,-1)])])}const I0=me(Kb,[["render",Gb]]),Qb={},Zb={class:"icon icon-copy",width:"11",height:"14",viewBox:"0 0 11 14",xmlns:"http://www.w3.org/2000/svg"};function Jb(t,e){return l.openBlock(),l.createElementBlock("svg",Zb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9 10V5a3 3 0 0 0-3-3H4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2zM2 3h4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"},null,-1)])])}const _0=me(Qb,[["render",Jb]]),Xb={},qb={class:"icon icon-delete",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"20",viewBox:"0 0 16 20"};function e7(t,e){return l.openBlock(),l.createElementBlock("svg",qb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M5.293 1.75A.749.749 0 0 1 6 .75h4a.75.75 0 0 1 .707 1H12.7a2.355 2.355 0 0 1 2.35 2.35v12.8a2.355 2.355 0 0 1-2.35 2.35H3.1A2.355 2.355 0 0 1 .75 16.9V4.1A2.355 2.355 0 0 1 3.1 1.75h2.193zM2.25 6.25V16.9c0 .466.384.85.85.85h9.6c.466 0 .85-.384.85-.85V6.25H2.25zm0-1.5h11.3V4.1a.855.855 0 0 0-.85-.85H3.1a.855.855 0 0 0-.85.85v.65zm5 4.75a.75.75 0 0 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6zm3 0a.75.75 0 1 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6zm-6 0a.75.75 0 0 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6z"},null,-1)])])}const Fd=me(Xb,[["render",e7]]),t7={},n7={class:"icon icon-double-check",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"13",viewBox:"0 0 24 13"};function r7(t,e){return l.openBlock(),l.createElementBlock("svg",n7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M6 10.586L16.293.293a1 1 0 0 1 1.414 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L6 10.586zm6 0L22.293.293a1 1 0 0 1 1.414 1.414l-11 11a1 1 0 0 1-1.414 0l-1-1a1 1 0 0 1 1.414-1.414l.293.293z"},null,-1)])])}const N0=me(t7,[["render",r7]]),o7={},i7={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"};function s7(t,e){return l.openBlock(),l.createElementBlock("svg",i7,[...e[0]||(e[0]=[l.createStaticVNode('<g transform="matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"><path d="M11.250 17.250 A6.000 6.000 0 1 0 23.250 17.250 A6.000 6.000 0 1 0 11.250 17.250 Z" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 14.25L17.25 20.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L15 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L19.5 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25,20.25h-6a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75H12.879a1.5,1.5,0,0,1,1.06.439l2.872,2.872a1.5,1.5,0,0,1,.439,1.06V8.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M5.25,5.625A.375.375,0,1,1,4.875,6a.375.375,0,0,1,.375-.375" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12.085,9.586,11.25,8.25a.749.749,0,0,0-1.238-.014l-2,2.851L6.78,10.1a.75.75,0,0,0-1.093.169L3.75,14.25h4.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)])])}const zd=me(o7,[["render",s7]]),a7={},l7={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18"};function c7(t,e){return l.openBlock(),l.createElementBlock("svg",l7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M8.967 3.528L8.94 3.5 10 2.44l.028.027L12.025.47a.75.75 0 0 1 1.06 0l4.445 4.444a.75.75 0 0 1 0 1.06L5.975 17.53a.75.75 0 0 1-.53.22H1A.75.75 0 0 1 .25 17v-4.444a.75.75 0 0 1 .22-.53l8.497-8.498zm1.06 1.06L1.75 12.866v3.384h3.384l8.278-8.278-3.384-3.384zm1.061-1.06l3.384 3.384 1.467-1.468-3.383-3.383-1.468 1.467z"},null,-1)])])}const Ud=me(a7,[["render",c7]]),u7={},d7={class:"icon icon-end-call",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};function f7(t,e){return l.openBlock(),l.createElementBlock("svg",d7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.05664 14.8926L4.10352 15.5957C4.42578 15.6836 4.77734 15.5078 4.92383 15.1855L6.33008 11.9043C6.44727 11.6113 6.35938 11.2891 6.125 11.084L4.33789 9.61914C5.39258 7.39258 7.23828 5.51758 9.52344 4.43359L10.9883 6.2207C11.1934 6.45508 11.5156 6.54297 11.8086 6.42578L15.0898 5.01953C15.4121 4.87305 15.5586 4.52148 15.5 4.19922L14.7969 1.15234C14.709 0.830078 14.4453 0.625 14.0938 0.625C6.59375 0.625 0.5 6.68945 0.5 14.2188C0.5 14.541 0.734375 14.8047 1.05664 14.8926Z"},null,-1)])])}const O0=me(u7,[["render",f7]]),h7={},p7={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function m7(t,e){return l.openBlock(),l.createElementBlock("svg",p7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.542-7.01l.102-7.654h-1.42l.094 7.654h1.224zm-1.37 2.329c0 .22.067.401.201.546.135.144.334.216.597.216.264 0 .464-.072.6-.216a.761.761 0 0 0 .206-.546.787.787 0 0 0-.205-.553c-.137-.15-.337-.224-.6-.224-.264 0-.463.075-.598.224a.795.795 0 0 0-.201.553z"},null,-1)])])}const Wl=me(h7,[["render",m7]]),g7={},v7={class:"icon icon-external",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"};function y7(t,e){return l.openBlock(),l.createElementBlock("svg",v7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1 .25h7.352a.75.75 0 0 1 .101 1.493l-.101.007H1.75v14.5h14.5V9.52a.75.75 0 0 1 1.493-.101l.007.101V17a.75.75 0 0 1-.648.743L17 17.75H1a.75.75 0 0 1-.743-.648L.25 17V1A.75.75 0 0 1 .898.257L1 .25h7.352H1zm10.352 0h5.665c.02 0 .04.002.06.004L17 .25a.754.754 0 0 1 .53.22L17.452.4a.754.754 0 0 1 .291.497l.003.028c.002.015.003.03.003.046L17.75 1v5.56a.75.75 0 0 1-1.493.101l-.007-.101V2.81l-9.173 9.174a.75.75 0 0 1-.976.072l-.085-.072a.75.75 0 0 1 0-1.061l9.172-9.173h-3.836A.75.75 0 0 1 11.25.257l.102-.007H17h-5.648z"},null,-1)])])}const Hd=me(g7,[["render",y7]]),b7={},C7={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"};function E7(t,e){return l.openBlock(),l.createElementBlock("svg",C7,[...e[0]||(e[0]=[l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0001 5.25C9.22586 5.25 6.79699 6.91121 5.12801 8.44832C4.28012 9.22922 3.59626 10.0078 3.12442 10.5906C2.88804 10.8825 2.70368 11.1268 2.57736 11.2997C2.51417 11.3862 2.46542 11.4549 2.43187 11.5029C2.41509 11.5269 2.4021 11.5457 2.393 11.559L2.38227 11.5747L2.37911 11.5794L2.10547 12.0132L2.37809 12.4191L2.37911 12.4206L2.38227 12.4253L2.393 12.441C2.4021 12.4543 2.41509 12.4731 2.43187 12.4971C2.46542 12.5451 2.51417 12.6138 2.57736 12.7003C2.70368 12.8732 2.88804 13.1175 3.12442 13.4094C3.59626 13.9922 4.28012 14.7708 5.12801 15.5517C6.79699 17.0888 9.22586 18.75 12.0001 18.75C14.7743 18.75 17.2031 17.0888 18.8721 15.5517C19.72 14.7708 20.4039 13.9922 20.8757 13.4094C21.1121 13.1175 21.2964 12.8732 21.4228 12.7003C21.4859 12.6138 21.5347 12.5451 21.5682 12.4971C21.585 12.4731 21.598 12.4543 21.6071 12.441L21.6178 12.4253L21.621 12.4206L21.6224 12.4186L21.9035 12L21.622 11.5809L21.621 11.5794L21.6178 11.5747L21.6071 11.559C21.598 11.5457 21.585 11.5269 21.5682 11.5029C21.5347 11.4549 21.4859 11.3862 21.4228 11.2997C21.2964 11.1268 21.1121 10.8825 20.8757 10.5906C20.4039 10.0078 19.72 9.22922 18.8721 8.44832C17.2031 6.91121 14.7743 5.25 12.0001 5.25ZM4.29022 12.4656C4.14684 12.2885 4.02478 12.1311 3.92575 12C4.02478 11.8689 4.14684 11.7115 4.29022 11.5344C4.72924 10.9922 5.36339 10.2708 6.14419 9.55168C7.73256 8.08879 9.80369 6.75 12.0001 6.75C14.1964 6.75 16.2676 8.08879 17.8559 9.55168C18.6367 10.2708 19.2709 10.9922 19.7099 11.5344C19.8533 11.7115 19.9753 11.8689 20.0744 12C19.9753 12.1311 19.8533 12.2885 19.7099 12.4656C19.2709 13.0078 18.6367 13.7292 17.8559 14.4483C16.2676 15.9112 14.1964 17.25 12.0001 17.25C9.80369 17.25 7.73256 15.9112 6.14419 14.4483C5.36339 13.7292 4.72924 13.0078 4.29022 12.4656ZM14.25 12C14.25 13.2426 13.2427 14.25 12 14.25C10.7574 14.25 9.75005 13.2426 9.75005 12C9.75005 10.7574 10.7574 9.75 12 9.75C13.2427 9.75 14.25 10.7574 14.25 12ZM15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92898 15.75 8.25005 14.0711 8.25005 12C8.25005 9.92893 9.92898 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z",fill:"#080341"},null,-1)])])}const M0=me(b7,[["render",E7]]),k7={},w7={fill:"#000000",width:"30px",height:"30px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-slash"};function S7(t,e){return l.openBlock(),l.createElementBlock("svg",w7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M18.822 22.904c-5.215 1.275-10.524-1.051-15.818-6.904 1.337-1.501 2.79-2.843 4.364-4.034l0.076-0.055c0.186-0.138 0.305-0.357 0.305-0.604 0-0.414-0.336-0.75-0.75-0.75-0.166 0-0.32 0.054-0.444 0.146l0.002-0.001c-1.91 1.447-3.588 3.024-5.086 4.761l-0.036 0.042c-0.115 0.131-0.185 0.305-0.185 0.494s0.070 0.363 0.186 0.495l-0.001-0.001c4.803 5.488 9.693 8.254 14.582 8.254 1.123-0.001 2.212-0.142 3.252-0.406l-0.092 0.020c0.332-0.082 0.573-0.377 0.573-0.729 0-0.414-0.336-0.75-0.75-0.75-0.064 0-0.125 0.008-0.184 0.023l0.005-0.001zM16.75 20c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75 0.336-0.75 0.75v0c0.003 2.622 2.128 4.747 4.75 4.75h0c0.414-0 0.75-0.336 0.75-0.75v0zM23.565 22.503c2.701-1.672 5.010-3.665 6.965-5.967l0.034-0.042c0.116-0.131 0.186-0.304 0.186-0.494s-0.070-0.363-0.187-0.495l0.001 0.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414 0-0.75 0.336-0.75 0.75 0 0.203 0.081 0.388 0.213 0.523l27.999 28.001c0.136 0.136 0.324 0.22 0.531 0.22 0.415 0 0.751-0.336 0.751-0.751 0-0.207-0.084-0.395-0.22-0.531v0zM28.996 16c-1.852 2.121-4.004 3.919-6.402 5.345l-0.121 0.067-2.636-2.635c0.569-0.767 0.911-1.731 0.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045 0.002-2.009 0.344-2.789 0.921l0.013-0.009-2.29-2.29c6.027-2.647 11.95-0.64 18.062 6.127zM14.301 13.239c0.486-0.307 1.077-0.489 1.711-0.489 1.788 0 3.238 1.45 3.238 3.238 0 0.634-0.182 1.225-0.497 1.724l0.008-0.013z"},null,-1)])])}const L0=me(k7,[["render",S7]]),A7={},x7={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-file"};function T7(t,e){return l.openBlock(),l.createElementBlock("svg",x7,[...e[0]||(e[0]=[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
12
+ c0,0.414,0.336,0.75,0.75,0.75h6c0.414,0,0.75,0.336,0.75,0.75S8.663,21,8.249,21H2.249z`})],-1)])])}const T0=me(Hb,[["render",Wb]]),Kb={},Yb={xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 18 15",fill:"none"};function Gb(t,e){return l.openBlock(),l.createElementBlock("svg",Yb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M6.375 7.75C4.43359 7.75 2.875 6.19141 2.875 4.25C2.875 2.33594 4.43359 0.75 6.375 0.75C8.28906 0.75 9.875 2.33594 9.875 4.25C9.875 6.19141 8.28906 7.75 6.375 7.75ZM6.375 2.0625C5.14453 2.0625 4.1875 3.04688 4.1875 4.25C4.1875 5.48047 5.14453 6.4375 6.375 6.4375C7.57812 6.4375 8.5625 5.48047 8.5625 4.25C8.5625 3.04688 7.57812 2.0625 6.375 2.0625ZM7.74219 9.0625C10.3672 9.0625 12.5 11.1953 12.5 13.8203C12.5 14.3398 12.0625 14.75 11.543 14.75H1.17969C0.660156 14.75 0.25 14.3398 0.25 13.8203C0.25 11.1953 2.35547 9.0625 4.98047 9.0625H7.74219ZM1.5625 13.4375H11.1602C10.9414 11.7422 9.51953 10.375 7.74219 10.375H4.98047C3.20312 10.375 1.75391 11.7422 1.5625 13.4375ZM13.3477 9.5C15.7812 9.5 17.75 11.4688 17.75 13.875C17.75 14.3672 17.3398 14.75 16.875 14.75H13.1016C13.2656 14.4766 13.375 14.1758 13.375 13.8203C13.375 12.0977 12.582 10.5391 11.3242 9.5H13.3477ZM12.0625 7.75C11.1875 7.75 10.4219 7.42188 9.875 6.84766C10.4219 6.13672 10.75 5.23438 10.75 4.25C10.75 3.53906 10.5312 2.85547 10.2305 2.25391C10.7227 1.87109 11.3516 1.625 12.0625 1.625C13.7305 1.625 15.125 3.01953 15.125 4.6875C15.125 6.38281 13.7305 7.75 12.0625 7.75Z",fill:"#394156"},null,-1)])])}const I0=me(Kb,[["render",Gb]]),Qb={},Zb={class:"icon icon-copy",width:"11",height:"14",viewBox:"0 0 11 14",xmlns:"http://www.w3.org/2000/svg"};function Jb(t,e){return l.openBlock(),l.createElementBlock("svg",Zb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9 10V5a3 3 0 0 0-3-3H4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2zM2 3h4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"},null,-1)])])}const _0=me(Qb,[["render",Jb]]),Xb={},qb={xmlns:"http://www.w3.org/2000/svg",class:"icon icon-delete",width:"16",height:"20",viewBox:"0 0 16 20"};function e7(t,e){return l.openBlock(),l.createElementBlock("svg",qb,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M5.293 1.75A.749.749 0 0 1 6 .75h4a.75.75 0 0 1 .707 1H12.7a2.355 2.355 0 0 1 2.35 2.35v12.8a2.355 2.355 0 0 1-2.35 2.35H3.1A2.355 2.355 0 0 1 .75 16.9V4.1A2.355 2.355 0 0 1 3.1 1.75h2.193zM2.25 6.25V16.9c0 .466.384.85.85.85h9.6c.466 0 .85-.384.85-.85V6.25H2.25zm0-1.5h11.3V4.1a.855.855 0 0 0-.85-.85H3.1a.855.855 0 0 0-.85.85v.65zm5 4.75a.75.75 0 0 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6zm3 0a.75.75 0 1 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6zm-6 0a.75.75 0 0 1 1.5 0v6a.75.75 0 1 1-1.5 0v-6z"},null,-1)])])}const Fd=me(Xb,[["render",e7]]),t7={},n7={class:"icon icon-double-check",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"13",viewBox:"0 0 24 13"};function r7(t,e){return l.openBlock(),l.createElementBlock("svg",n7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M6 10.586L16.293.293a1 1 0 0 1 1.414 1.414l-11 11a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L6 10.586zm6 0L22.293.293a1 1 0 0 1 1.414 1.414l-11 11a1 1 0 0 1-1.414 0l-1-1a1 1 0 0 1 1.414-1.414l.293.293z"},null,-1)])])}const N0=me(t7,[["render",r7]]),o7={},i7={viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-download-link"};function s7(t,e){return l.openBlock(),l.createElementBlock("svg",i7,[...e[0]||(e[0]=[l.createStaticVNode('<g transform="matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"><path d="M11.250 17.250 A6.000 6.000 0 1 0 23.250 17.250 A6.000 6.000 0 1 0 11.250 17.250 Z" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 14.25L17.25 20.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L15 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M17.25 20.25L19.5 18" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M8.25,20.25h-6a1.5,1.5,0,0,1-1.5-1.5V2.25A1.5,1.5,0,0,1,2.25.75H12.879a1.5,1.5,0,0,1,1.06.439l2.872,2.872a1.5,1.5,0,0,1,.439,1.06V8.25" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M5.25,5.625A.375.375,0,1,1,4.875,6a.375.375,0,0,1,.375-.375" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M12.085,9.586,11.25,8.25a.749.749,0,0,0-1.238-.014l-2,2.851L6.78,10.1a.75.75,0,0,0-1.093.169L3.75,14.25h4.5" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)])])}const zd=me(o7,[["render",s7]]),a7={},l7={xmlns:"http://www.w3.org/2000/svg",class:"icon icon-edit",width:"18",height:"18"};function c7(t,e){return l.openBlock(),l.createElementBlock("svg",l7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M8.967 3.528L8.94 3.5 10 2.44l.028.027L12.025.47a.75.75 0 0 1 1.06 0l4.445 4.444a.75.75 0 0 1 0 1.06L5.975 17.53a.75.75 0 0 1-.53.22H1A.75.75 0 0 1 .25 17v-4.444a.75.75 0 0 1 .22-.53l8.497-8.498zm1.06 1.06L1.75 12.866v3.384h3.384l8.278-8.278-3.384-3.384zm1.061-1.06l3.384 3.384 1.467-1.468-3.383-3.383-1.468 1.467z"},null,-1)])])}const Ud=me(a7,[["render",c7]]),u7={},d7={class:"icon icon-end-call",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"};function f7(t,e){return l.openBlock(),l.createElementBlock("svg",d7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1.05664 14.8926L4.10352 15.5957C4.42578 15.6836 4.77734 15.5078 4.92383 15.1855L6.33008 11.9043C6.44727 11.6113 6.35938 11.2891 6.125 11.084L4.33789 9.61914C5.39258 7.39258 7.23828 5.51758 9.52344 4.43359L10.9883 6.2207C11.1934 6.45508 11.5156 6.54297 11.8086 6.42578L15.0898 5.01953C15.4121 4.87305 15.5586 4.52148 15.5 4.19922L14.7969 1.15234C14.709 0.830078 14.4453 0.625 14.0938 0.625C6.59375 0.625 0.5 6.68945 0.5 14.2188C0.5 14.541 0.734375 14.8047 1.05664 14.8926Z"},null,-1)])])}const O0=me(u7,[["render",f7]]),h7={},p7={class:"icon icon-error",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"};function m7(t,e){return l.openBlock(),l.createElementBlock("svg",p7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zm.542-7.01l.102-7.654h-1.42l.094 7.654h1.224zm-1.37 2.329c0 .22.067.401.201.546.135.144.334.216.597.216.264 0 .464-.072.6-.216a.761.761 0 0 0 .206-.546.787.787 0 0 0-.205-.553c-.137-.15-.337-.224-.6-.224-.264 0-.463.075-.598.224a.795.795 0 0 0-.201.553z"},null,-1)])])}const Wl=me(h7,[["render",m7]]),g7={},v7={class:"icon icon-external",width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"};function y7(t,e){return l.openBlock(),l.createElementBlock("svg",v7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M1 .25h7.352a.75.75 0 0 1 .101 1.493l-.101.007H1.75v14.5h14.5V9.52a.75.75 0 0 1 1.493-.101l.007.101V17a.75.75 0 0 1-.648.743L17 17.75H1a.75.75 0 0 1-.743-.648L.25 17V1A.75.75 0 0 1 .898.257L1 .25h7.352H1zm10.352 0h5.665c.02 0 .04.002.06.004L17 .25a.754.754 0 0 1 .53.22L17.452.4a.754.754 0 0 1 .291.497l.003.028c.002.015.003.03.003.046L17.75 1v5.56a.75.75 0 0 1-1.493.101l-.007-.101V2.81l-9.173 9.174a.75.75 0 0 1-.976.072l-.085-.072a.75.75 0 0 1 0-1.061l9.172-9.173h-3.836A.75.75 0 0 1 11.25.257l.102-.007H17h-5.648z"},null,-1)])])}const Hd=me(g7,[["render",y7]]),b7={},C7={width:"30px",height:"30px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-show"};function E7(t,e){return l.openBlock(),l.createElementBlock("svg",C7,[...e[0]||(e[0]=[l.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0001 5.25C9.22586 5.25 6.79699 6.91121 5.12801 8.44832C4.28012 9.22922 3.59626 10.0078 3.12442 10.5906C2.88804 10.8825 2.70368 11.1268 2.57736 11.2997C2.51417 11.3862 2.46542 11.4549 2.43187 11.5029C2.41509 11.5269 2.4021 11.5457 2.393 11.559L2.38227 11.5747L2.37911 11.5794L2.10547 12.0132L2.37809 12.4191L2.37911 12.4206L2.38227 12.4253L2.393 12.441C2.4021 12.4543 2.41509 12.4731 2.43187 12.4971C2.46542 12.5451 2.51417 12.6138 2.57736 12.7003C2.70368 12.8732 2.88804 13.1175 3.12442 13.4094C3.59626 13.9922 4.28012 14.7708 5.12801 15.5517C6.79699 17.0888 9.22586 18.75 12.0001 18.75C14.7743 18.75 17.2031 17.0888 18.8721 15.5517C19.72 14.7708 20.4039 13.9922 20.8757 13.4094C21.1121 13.1175 21.2964 12.8732 21.4228 12.7003C21.4859 12.6138 21.5347 12.5451 21.5682 12.4971C21.585 12.4731 21.598 12.4543 21.6071 12.441L21.6178 12.4253L21.621 12.4206L21.6224 12.4186L21.9035 12L21.622 11.5809L21.621 11.5794L21.6178 11.5747L21.6071 11.559C21.598 11.5457 21.585 11.5269 21.5682 11.5029C21.5347 11.4549 21.4859 11.3862 21.4228 11.2997C21.2964 11.1268 21.1121 10.8825 20.8757 10.5906C20.4039 10.0078 19.72 9.22922 18.8721 8.44832C17.2031 6.91121 14.7743 5.25 12.0001 5.25ZM4.29022 12.4656C4.14684 12.2885 4.02478 12.1311 3.92575 12C4.02478 11.8689 4.14684 11.7115 4.29022 11.5344C4.72924 10.9922 5.36339 10.2708 6.14419 9.55168C7.73256 8.08879 9.80369 6.75 12.0001 6.75C14.1964 6.75 16.2676 8.08879 17.8559 9.55168C18.6367 10.2708 19.2709 10.9922 19.7099 11.5344C19.8533 11.7115 19.9753 11.8689 20.0744 12C19.9753 12.1311 19.8533 12.2885 19.7099 12.4656C19.2709 13.0078 18.6367 13.7292 17.8559 14.4483C16.2676 15.9112 14.1964 17.25 12.0001 17.25C9.80369 17.25 7.73256 15.9112 6.14419 14.4483C5.36339 13.7292 4.72924 13.0078 4.29022 12.4656ZM14.25 12C14.25 13.2426 13.2427 14.25 12 14.25C10.7574 14.25 9.75005 13.2426 9.75005 12C9.75005 10.7574 10.7574 9.75 12 9.75C13.2427 9.75 14.25 10.7574 14.25 12ZM15.75 12C15.75 14.0711 14.0711 15.75 12 15.75C9.92898 15.75 8.25005 14.0711 8.25005 12C8.25005 9.92893 9.92898 8.25 12 8.25C14.0711 8.25 15.75 9.92893 15.75 12Z",fill:"#080341"},null,-1)])])}const M0=me(b7,[["render",E7]]),k7={},w7={fill:"#000000",width:"30px",height:"30px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-eye-slash"};function S7(t,e){return l.openBlock(),l.createElementBlock("svg",w7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M18.822 22.904c-5.215 1.275-10.524-1.051-15.818-6.904 1.337-1.501 2.79-2.843 4.364-4.034l0.076-0.055c0.186-0.138 0.305-0.357 0.305-0.604 0-0.414-0.336-0.75-0.75-0.75-0.166 0-0.32 0.054-0.444 0.146l0.002-0.001c-1.91 1.447-3.588 3.024-5.086 4.761l-0.036 0.042c-0.115 0.131-0.185 0.305-0.185 0.494s0.070 0.363 0.186 0.495l-0.001-0.001c4.803 5.488 9.693 8.254 14.582 8.254 1.123-0.001 2.212-0.142 3.252-0.406l-0.092 0.020c0.332-0.082 0.573-0.377 0.573-0.729 0-0.414-0.336-0.75-0.75-0.75-0.064 0-0.125 0.008-0.184 0.023l0.005-0.001zM16.75 20c-0-0.414-0.336-0.75-0.75-0.75v0c-1.794-0.002-3.248-1.456-3.25-3.25v-0c0-0.414-0.336-0.75-0.75-0.75s-0.75 0.336-0.75 0.75v0c0.003 2.622 2.128 4.747 4.75 4.75h0c0.414-0 0.75-0.336 0.75-0.75v0zM23.565 22.503c2.701-1.672 5.010-3.665 6.965-5.967l0.034-0.042c0.116-0.131 0.186-0.304 0.186-0.494s-0.070-0.363-0.187-0.495l0.001 0.001c-6.844-7.82-13.822-10.081-20.758-6.76l-7.277-7.276c-0.135-0.131-0.32-0.212-0.523-0.212-0.414 0-0.75 0.336-0.75 0.75 0 0.203 0.081 0.388 0.213 0.523l27.999 28.001c0.136 0.136 0.324 0.22 0.531 0.22 0.415 0 0.751-0.336 0.751-0.751 0-0.207-0.084-0.395-0.22-0.531v0zM28.996 16c-1.852 2.121-4.004 3.919-6.402 5.345l-0.121 0.067-2.636-2.635c0.569-0.767 0.911-1.731 0.912-2.776v-0c-0.003-2.622-2.128-4.747-4.75-4.75h-0c-1.045 0.002-2.009 0.344-2.789 0.921l0.013-0.009-2.29-2.29c6.027-2.647 11.95-0.64 18.062 6.127zM14.301 13.239c0.486-0.307 1.077-0.489 1.711-0.489 1.788 0 3.238 1.45 3.238 3.238 0 0.634-0.182 1.225-0.497 1.724l0.008-0.013z"},null,-1)])])}const L0=me(k7,[["render",S7]]),A7={},x7={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-file"};function T7(t,e){return l.openBlock(),l.createElementBlock("svg",x7,[...e[0]||(e[0]=[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
13
13
  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
14
14
  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
15
15
  C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)])])}const jd=me(A7,[["render",T7]]),I7={},_7={class:"icon icon-file-added",width:"14",height:"18",viewBox:"0 0 14 18",xmlns:"http://www.w3.org/2000/svg"};function N7(t,e){return l.openBlock(),l.createElementBlock("svg",_7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M9.235.25c.2 0 .393.08.534.223l3.764 3.808a.75.75 0 0 1 .217.528V17a.75.75 0 0 1-.75.75H1A.75.75 0 0 1 .25 17V1A.75.75 0 0 1 1 .25h8.235zM8.08 1.75H1.75v14.5h10.5V6.085H8.83a.75.75 0 0 1-.744-.648l-.007-.102V1.75zm.349 7.047a.75.75 0 1 1 1.253.824L7.19 13.412a.75.75 0 0 1-1.12.153l-1.562-1.364a.75.75 0 1 1 .986-1.13l.915.799 2.02-3.073zm1.151-6.382v2.17h2.146l-2.146-2.17z"},null,-1)])])}const D0=me(I7,[["render",N7]]),O7={},M7={class:"icon icon-forward",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"14",viewBox:"0 0 16 14"};function L7(t,e){return l.openBlock(),l.createElementBlock("svg",M7,[...e[0]||(e[0]=[l.createElementVNode("path",{d:"M15.782.14a.588.588 0 0 0-.61-.081L.572 6.426a.947.947 0 0 0-.57.93.94.94 0 0 0 .675.857l3.6 1.088a.59.59 0 0 0 .341-1.128l-3.013-.911L13.01 2.288 6.284 9.003c-.004.003-.007.01-.014.013l-.026.026a.1.1 0 0 0-.016.023c-.003.007-.01.013-.013.02-.004.003-.004.006-.004.006-.006.007-.01.017-.016.023-.007.01-.01.02-.016.03-.004.006-.007.016-.01.023-.007.01-.01.023-.017.033-.003.006-.006.013-.006.02-.003.012-.01.022-.013.035-.004.007-.004.013-.007.02l-.01.04c0 .006-.003.012-.003.019-.003.013-.003.026-.003.04v.075l.177 3.36a.91.91 0 0 0 1.583.561l1.348-1.488 2.656 1.839a.963.963 0 0 0 .898.101.95.95 0 0 0 .58-.688L15.985.721a.593.593 0 0 0-.203-.58zM7.434 12.102l-.078-1.511.888.616-.81.895zm4.836.456L7.618 9.334l6.764-6.75-2.112 9.973z"},null,-1)])])}const P0=me(O7,[["render",L7]]),D7={},P7={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function B7(t,e){return l.openBlock(),l.createElementBlock("svg",P7,[...e[0]||(e[0]=[l.createElementVNode("rect",{width:"20",height:"20",fill:"url(#pattern0)"},null,-1),l.createElementVNode("defs",null,[l.createElementVNode("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[l.createElementVNode("use",{"xlink:href":"#image0",transform:"translate(-0.00125313) scale(0.00250627)"})]),l.createElementVNode("image",{id:"image0",width:"400",height:"399","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGPEAYAAAAir1rBAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAWH5JREFUeNrsvX10VNd9qP0bWZYJxmJEKAYbpAE7iWPAHnBy22BiBtm59Qc1Q+vYvXlXa8nUaRs3RazmTa5Wb4O4vXcpzkoWcr/Sxhcj3751Y/e2DGlMfJtUDLZDGic2Y8COnTgwwnyZYDRgjLEQ0vvH2VuaOcxIM6MzM+fs/Tz/7BnxoTl777PPfmb/fnuHRkZGRkZGBAAAAAAAoOLUUQUAAAAAAFAt6t0/CIVCoVCIigEAsI1jR+++++q5EfVOl7Ey/7eMKlOqTMvsOd/+9uFDaSraJxABAQC1IuQegBAQAAAzyQx89WGRiAwNHXyzsTEmF4aPHZs6dcXIyPDg4CX1MZd4VOxTuMRkp3riJJWgJGkoBAQAEBAAAAieaMTVuxUjF4aPHJ02LS5DQ0eOTJsWkZHhc+cuqfftpxctJA7b1BMpoQQlQwMjIACAgAAAQO1EI6re3a9G8jYZHj71zmVTwjI0tH//9EaR4eF3z1zaYMpVJ1T5eMgRkgQdAQEBAAQEAAC8F42wehdX5To1ckdH/54TWiUyNHTw4BWN1tSOKh9RT65eck0QEABAQAAAoHThiLhEo029D2f9zaGhujqR80M//0XTDJELQ2+fmDKF+tMi4qBXSpJUCQICAAgIAABcLBwbXMKRD0c8Bgf3vjJzpmkhVpVCC8hGhAQBAQAEBAAA4RhfOHIZW/F469jUqdQnQoKAAAACAgAAHgqHZmho/4HpYVG7WVGvCAkCAgAICAAAiDtpXAtHR9n/n7Orlcjg4N49M2dSv9UVkvaQqUntCAgAICAAAEaIR5d6p5PHw5P4H51cj/cHf/LilbNFRoad91ALelW5PmTKeSQICAAgIAAAgRSOuHq3SY2kEc/+f3I9fNnqqtShWj0ICAAAAgIAUEnh0IKxRY2cMc9/DyFXQSKlyvWByx1BQAAAAQEA8LV4dKl3Gyo+ZXt/8Ccvzp4tMjJ87twl9dR/sOh1CUkGAQEAQEAAAIoRjph6t8Xz0KpCXBg+cnTaNJHzg/v3Tw/TDgHvRar0b6gWAgIACAgAQE2FQ8/4N5W9TW75kGxuPklV+mdXLQQEAGoFjzgAsFw84urdgRqIh9YPZ+UD8TCZ2Gg/O3b07ruvnttFlQCAtbACAgCWCUdYvdOhVfEafiJWPiClSr0ykqrab2YFBABqBY86ALBEPLRoHPCBeGj9YOUDoqrczcoIAFgDKyAAYKhwhNW7Lb4Rjmz1YOUDxielysqtjLACAgC1gkceABgmHlo0DvhQPLR+sPIBExFV5Q61MtJBlQCAMbACAgABF46weqfP5/DzRI2VD5gsSVVOfjctVkAAoFbw6AOAgIpHVL3bHQDxcLgwfHJgyhTEAyZDbLTfOysjcaoEAAIHKyAAEDDx6FLvNgTuu1tOOIfK0avK4k9gZwUEABAQAIC8whFR73QyeSxw13Fh+Pgvp04VOT/4s581zaBdoZKkVblmwuR1BAQAagVBAADgU/GIq3e7AyseowIy9NbxqVNpV6gGkdH7hm19AcCvsAICAD4RjrB6t6lmJ5J7zYi8+96lDSLvn9v90qxZtDPUkqQq14yGaLECAgC1ghUQAKixeETVux3GiIdmaOjIkWnTaGfwAzFVHlArIzGqBABqBisgAFAj8dCioVc8wgZdoZ3b7V7asGDBqcxYkv2F4ZMnPzCFpHt/s1GtiHRRFQBQMS7yDQQEAKojHGGXcLQZe70Xhp2DBs8P7t8/PWx++9bVTQ+/f06koWHxwhMnLv7z4eFT71w2ReTC8PHjU6eKXBh66xg5MX4jqco1Re+iBQCAgACAT8Ujqt7pXayixl+3bdvtNjQsvuHECZG6uulXvH+uiAeRvD94Sb3IhaG33rp8qsiF4SNHLudkeL/ctS4RSVIlAOC5gDDUA0CFxCOu3u2wRjz0N/22iIde+ShWPDQhuazhwpBIfX3zvNOnRS5r+NhNbx0Tqa9vbn7ntEiorr5+eJj7qDaER+9bdtECgErBCggAeCwemwJzMrnXnB/6+S+aZtgTYlTqykfxOCshQ0NOKNvQ0MGDVzRyf9WWhCrbCdECgJIhBAsAPBaOsHpnz0pHoQnzuXP/8aM5V9lyzUmZMmX5zYcP6fexyj24VMjW0NDBNxsbySGpLWlVTnzQIQBAIQEhBAsAyhQPPeE8YLF4OFwYPjkwZYptV/14KLesHDpk69L6D10zcDJn5SXs7coLTExk9AsHJ0SrjSoBgNLHdVZAAKA08ehQ7zZxhJlicHD3y7NmiQwPv3vm0gbTrzYtzjff80O5/UKLaKQGAnj8l1OnigwNObuOkcxeC3pVv2hnBgEAF+H2DXZmB4AJhCPsEo42KkYPqCo0yA7x0BRa8XgkVCsxvaRu1q+cPStyScOMpnPnnFCtKxo5CLK6tImzIhJV7b+SXBEAKAjfEQFAAfGIqHc7EI8CXBg6fNi+CW5PgZ/3+uCzObtn1dcvmH8qkx2qdfm084P01+oQVaU+cT1KlQAAAgIAE4lHTL3bbX1ux4QCok76tgMdYpO56E/CTV/80tj5Eb2++cR6d66GhiU3Hj8+ts0vVIPw6DhCrggAICAAUEA89ARBr3iEqZgCDA+/PTDFovM+HIpNNn/EtzkAo+eOTPn4x48dI4m9umxRIrKF3DEAIAkdAPHYQohVidh13sfFSefF9avgrKBdGM49b4Qk9mqQVOUackUALIBteAGsF46wa4KIeJTK8PDbJ+zZdrfcFY3HA/NV1iV1V805c0akoWHJkuPHWRmpDjFV7iZXBMBCEBAAa8QjOvrAd0oe+KWit3u16xvy3ir/u9qhzxtpaFi88MQJckaqQ0SV+lyROFUCgIAAQPDFo230AZ/7wIdSGR5+++QHrDmBOyHlhsb4NSm9VMZyRpYsdVZG2E2rcoRVuVWJSAdVAoCAAEDwxKNLvdtCUvmkcVY8LgzZFHrlVQjVtsBnFYbk8g+cH8zeTeuqq86c4a6oLJtIWgcwGJLQAYwRjvDog9sp26gYj9ChV+cHf/azphnG9ya18tEU8rZ/HjBuBW54+NQ7l00ROT/001dnzCB5vbKkVMkBhwBBhCR0AGPFgwMDKzfRtCn0qrdC/2/CuJrS54xc1vCxm946JnJJ/QdnniN5vUJEVUnSOoAR4ydVABBU8Rh7IOc+oMErRmRw8JL6XkKvPOERg9fWnRPYL63/6EfePiFSV3dF4+Bgj75buZE8JaJKktYBEBAAqKJ4xEcfwLkPZPCollW5JvT+uRd+PHv2TkuCUlMq9Crl+f/sJKWnR3+P6TQ03Lj4l8f7Vb9ZGbLluqtLWJVbOWkdAAEBgMqJR9voAzf3AQzekFTl/JAzYU6o9+ssSYKt1rkdj1sidPeP5AqdFpFebrWKwEnrAEGCJHQA34sHJ5VXlo1KOLpGf+JMZCLq3QFLJjTzVXJvusL92b56zV0B0v1L38+b+EKhIugvENpJWgfwASShA/heOMKIR2VrWZUrLxKPXGKW1IcOvUpX/DflTsQTltRv/KKfOPXdO9oPdTtAJepd54ogeAB+AgEB8JF46Acm4lGZibaD/kY6OcHfX23JN/S1Sg7fZk0oVqE/IUSrGkRVye5ZAH6CECyAmouHfiBuJam8IvSob97XTziy5X5TOmCJgDRVPUQlV7gHrA3FGr8f6i8gyGnwuPepco3q90mqBKAKEIIF4DvxYDerSk0wihWPXOKW1FNCahUb77RLZvRz2EHx/So3RGuJ6r9pbm1vet/ouMvuWQC1AwEBqLp46AfebpJPPSWlypWuXaxKxZbQK7+EQNkSirWi5H6VG6KlRSTBre4pevesDqoCAAEBMFk8CKnwll6XeKRK/h9yQ6/iltRbgs9RVeKu0LNSRSSjyjVKRDYSLO0pm9jGFwABATBJPPQDjQebt6xXwtEeyg3pKX+CaIt4+GVbUkKxysNpvy71TgtJhiHBE9rUFxJb2T0LAAEBCLJ4tFEh3tSqKvVKR4/H/z+hV3yuauBdP3NEJDF6XzhliqHCU1FkG18ABATA18Khz+/YjXh4ip5QLSly+9xyiVlSnwk+V40ntuWGYo0vIimXiCQEvCDqEpEIVQKAgAD4Qzz0Ayr3gQWTo3d0QlXs9qWl4kwo4upd2PD69E/olRs7Q7G8F15yRaohIpwnAoCAANRUPMYeSIiHl3id2zERhF7xOWtB5fsduSIV0WVV7kBEABAQgFqIB+d3eFSrqqxUbsdExCyp5wSf01fEq/abyBWppIjs5jwRAAQEoJLiEXeJR5iKmRQpl3gkq/abc7+5NF0g/Rt6ddGUzqpQLJ0zVj0Bzp8rkhTwgi2ICAACAuCleOgHylbEw6MJca54pGr0Oe4n9IrP7QOqHwKYmyuiRaSXoclTEemiKgAQEIDJiAfnd3hDj/qGe02VcjsmImZJvScDLqqmE6/5J3BEpF2JSDtJ656wgYMNARAQgFLEYxMHB3qKTiZfX/OJTe42mlHD6z2lJpbpwH1yu0KxImrcifhERHrVu5UkrXuCPtiQ5wkAAgKQVzz0A6KDCplcbapSn9vR67PPF7ekHR435JvsnZZ8I++ffumISNIlIimGNk9EhIMNARAQYKrMieUekhqdsNQ2t2MiVljyTWSC6wgU/tsOmqT1ShBTJSICdhMaGRkZGcka9kKhUChEBCgYLRx6wNfiEadiJoWekPglt+Nich/0A4YLiA69WhIy67615bydJt/eR7n3E1/ceHW/asELym51AOXg9g1WQMBC8diBeHhCr4rVX+n7CZNDzDIhNI1thGL5hNyk9fV8ZTkpoqPPpdwcNQCzQUDAQvGIUjGTYuyk8mB9bltOPH/c0AlhwpL7Kzghgo6I9Kh37SSteyIiuzlhHRAQAMQDxiYU7TU6qdwrYoa3U9oVs28OuTlFacPbMR64T8zuWZ729tHnFiICCAhAoMQjinh4Kh4rfbqb1cTYdeJ50pJ+mTB+Apo7jgVNRLQoLmH3LEQEAAEBxAOKJeUSj6BPIGKWtJstORJsyxsMEUmPjiOICCICgICABeIRpmIQjyzMz/1wJnwJ86diTV/80tgKSMbwqw1+v9W7OuXuytbLUOuJiLRRJYCAACAeQabXJR7Bn9jlbrsbM7z9Epb226Th1xd15bKZIsrtiIgnIrIFEQEEBADxCKZ46N2sTBGPXGKWtOM2S7dBZVteM0SknW18JwUiAggIAOIRCIK6jW6p2LLtbtLSfpyw5DpXGNuPc3fPYhtfRAQQEABfiUcc8fCEoG+jWyoxw68v5Ur2tYfcFbuU4VcbN7492cYXEQEEBMBH4qEH0K2IR3m1OPpAD+o2uqXCtrs2YnooVnC35S1PRFKICCICCAhALcVjywg14oV42DZRjTHxtoqEJdcZt6ZFc0VkPtv4IiKAgABUUjyiiMekSLnEw9YHtum5H3pb06T1PT63n2cMv9oV1o2LehtfPa4hIogIICAAFRCPHYgH4uEBMcOvD/HIT8L4fm3atryTE5EEXR4RAQQEwAvxCFMxkxKPjLU14TxQ45ZcLaFX+bHlhPSYtS2ce7DhGs4TQUQAAQFAPKpHL+KRF1tCVBI0tdX1soKV4hwh4WBDRAQQEADEo6LiYfbBgZMlZvj1pVyhKKBhW15EZExE1rNCOCkRoX8BAgKIB7jEg7rIxXlgRtS7qOFXm6TBi8L0ELWIGlcjNHVeEelR7xgvJyciUaoCEBAIqniEEY9J0R5CPIohxsQaskjQ7xGRPCesQ3GMPbcREUBAAPGwUjx6qYqiWMG2u+CMNFZty7uaXJCSRISDDRERQEDAEvFgwEI8qkHM8OtDPKg3G/u91yKSREQQEUBAAPGAsQcg4lEquQ/CiOFXu5MQkrIwPWQt7Mqxg+JEJIWIeCIiYaoEEBCoNYhHeeKxEvGYFDFLrjNBU5dFkvsAEBFEBBAQMGoKPfDVh0W2IB6TEo8UVTIpTM/9SKuJUpqmLnWK1PTFL4mkR+vRbMgF8VZEGJeLI4qIAAICtRKPNioE8aghMcOvL0kTe0KC+wAQEUQEEBBAPBAPKI/c3A/TH3Rsu+sN5ufQOOMzIuKNiGQQkUmJyCZW5AABAa8ebB2CeJRCGvGoKHFLrjNJU1OPJYCAICJ+oE19UbQFEQEEBMoVDy0cfKNRHPoBtQTxqCim536kXBMgKBfnPsxYIiIrGKcREUQEEBAwQTwYOEoTD73iwcSxssQMv74kTVwRTA/FitHEiIiPRaSDqgAEBAqJRxTxQDx8ifMAs2WCRe4HYjeZcTxOUyMiPmSTSlJvoyoAAQG3eOxAPBAPH2O+gOSe2Axe4dynttQroVjVEhGnXBKyRXC9YQsiAggI4uEWjzAVg3gwsaoZTGCqQwJRhwqwhhWRktArIlGqAgEBe8RDi8YWxAPxYGLlG3YSekU9e0DUNc5DpSE0qxx0/9yBiCAgYI947OAEc8QjENiV+5GkwalnhB0RsVxEEGcEBAxkK+JRnK6pcg3iwUSqihMXBKTiU52c7bFNv6/JBUFEEBFAQKBWU+mcE8xjVEhR4qFXPNJUCROpKoB4UO+IOyICDlFEBAGB4IuHPkCwjQopSTx4QDCRqibkflDvlZnIkQuCiARfRDgIGQGBAImHFo4OKgTxCCTkfgD17vVEDvwpIhkqZlw4UR0BgQCJBzcq4mEC5gsIuR+1wa5ckBgNjogYJCJtVAUCAv4Rj6h6x1JlcaxBPAIBuR9AO3AfmS4iKUSkJDjIEAEBH4kHBwkWR3vIrhORg07M8Osj94N24D4CRKQ8OMgQAYEaiEd49JsAxKMU8eilKnwOuR9AO1TquYGIBFNEID963sNBhggIVBEOEkQ8TMb8fk3uh0+mMOSCgO9FpB0RKUpEtrBtLwIClSD3PA/EY3w2Ih6BhtwPoF24r8ARkV5EpCj0vGgH/RwBAe/Eo0u9a6NCxqVXfaPZRVUEmpjh10fuB+1SywkaICJm93O27UVAYNLioYVjAzdSUeLBwBxUcmN4w4ZfbZIG9yUpw68v7Nq8BIItIj1UyLjobXu7qAoEBIoXD/2AwODHJ4F4GIX5EyNyP3w6Nbdqd7wYDW7EOLJePfd6qZBx2cC2vQgIFC8exDCOT0qViIdZkPsBtBP3GZQmIu2ISFFsYbcsBAQuFo/w6A3ilGEqZlzx0CeYZ6gSo4hZ0n/B35ALAkEWEcaZ8WHbXgQEstjK7lbjaxriYSi52yZGmNiCD0gafn0R9cVXhKY2kpWIyLjo5w3b9iIgtk6pc7bVjVEhiIfF2NL/kzS136cm5IJAgHFWQjKISFFEVbmVkEQExCbx6FDv2qiQosSDAdRsTI9JT7kmBhCUdjObG5l4WSEiOjSL8aeQiLNtLwJigXjE1btNdPRxWY94WEWUiSz4kKTxEy+wQUT0+LMSERkXvW1vG1WBgJgkHnqChWGPTzsnmFuJ6RMhcj9oN8Qf/CIiaxiPxkXnhiDoCEigxSPsEo8wFZOXjYiHZdg1wCdp8ECSsuQ5xUTLLhHR4xHb2I/PViUiEaoCAQlmB3bKKFWRF32CeRdVYSWm3xcZ9cBP09QBwxmXdLuZ3n4IiJ0i0qverUdE8o8CLhEJUyUIiM+nHANffXgsx4OBPT9JTjAH4eBBCAYpw6+PZHS7RaRHveulQvISVSUh9AiIr8WjTb3roELGfZATgwrZA7upvEw/NwLTc0FiNDEiknWQYYIKyUtchQ53URUeERoZGRkZyfK6UCgUCvHYLFE89ERqN4acv5ZUOZ/zPCwndyl7wPD7ZWUoN+YaLqa1tbu72AmwHmfDFf5MY+31+3/QEtn1w6j8xl1Xznpl36aR5uYPfGAgI9Lc/IEpAydNaws9PqfplozPIrKDEPJxWaPGd4StWC7yDQRkMuKhb9QDJJmPKx6c5wHZD7i4emfuAVDOgynII2lra3d3RL2OuP7MLQzTJ5ioxIzv14tvaGw8elRkemN9/XvnRJqbPzB14KQjKpmMyOLFjY1HjqifZ0QWL7ri8qNH/DehcsZpJlSM09kior9YjVAxBeY3ubuMQbECUk+VTIYdiEdRDzRuTMgmavj11bK/5xOHsKveCwlDjK5ZJnv3nD49Z07Oj07K/OLFZfGiKxqPHBFZfvOMGQfSIsuXz2jav7/aKy06JyvBV5CWow8ydEREh0wz38lF14PetleLSIaqKRIEpFTnzUkyj1IhedHneSSpChhnomMqXvT77NCkiQTCLRwQNHHR5RNPHD50001jf97c/IGpAwMid626ctarrzqCsn+/yF13zvqVV1/liwGohoikCogI5N43OkmdHNdiIQSrJPFoc3U0yKVH7W7Ftn6QH+dBNmD4N2ntobFtLltbu7ujLpGIFRAJ998DyM/08KUN594X+cxnrr7qxZ+I/OHvt7T8YNfkV0yc8ZsZAIw3fjMPGp+NavzvoipckANSlnjoiQFLkPnpZVtdKOLBFVHvDhj74LrzrvfOffqetLz00oWhK6+M0PBQVZYvnzFj/wGR//qla6/99++PhXKVxhJCZ6GI8VxHgnRQIXkhSX0iAWEb3nHFQ4vGVsQjL/oBxYoHFEPM2Cs7fXpELmsQxANqyvPPnzy5YL7Iqt944YUHHxRZ9Rsv/PjBz4ocPPjeuaYZxf4vUSoSxsWZWOvnfi8VkpctnKQ+AQjIBB3IKelAuaRVuZJtdaEEzD3wbN++4eGZM2lh8KeQfHLFrh/+8R+LfONv+9+8eflE/2oFoTVQAlpEUlRFDmFVcpI6AlIkzspHl3oXp0Jya0eVaxAPKIOosVe264cXhq6eSwuDPzmVOT845TKRzs6fvrrqLpH/53d2v/w7vyty6vTQ0JQp9tyn4C25uz6tDOXOEyD3ftqE2CMg44lHTL3bQEfJSzuxwTAJYsZe2SuvsgICweHp77x17PqPOiFan/2sW0QQEEBEvKfNlcQP1gtI/lwPyGU9B1RBiTi7P639vV+//b98psP4q92168Lw1XNodQgWevtft4g8/PBf/mVbW4eIPLa5vz9CRUEJIpIanTdQI/nYpEKyEH3OARERdrcqhN7dqoeqgCyx0BOSqKvUseOx0b995oxIQ4O5tfHmoRFpbBQ5lRkZvmwKvQPMEJHFi1aunDNHh4xsUiKSUX9bTzB3umL/kyLywNqWlgwVioh8+/ChXr37oeonRJbkzjM5wNBaAeFAwfFIsa2ulWIRdgmFFokbXWJRvKgvWlhX98vj5tbaK/suDBF6BaaJyN49zz7XFBYR+dStg4MiIg0NDQ1h17gQyzOhfGxzf396HFF5YG1LS5KKtkpEupSItKiftlExOc9Zew8wtE5AHPGIq3cd3AM56AfHSsTDSMEoJBZRqZSIL7y+ru7ECXNrdd8r5H6AiQycHMiIiOx87rlnHRG59bZi/23EVcZHcgVFXIKiheTl0Nj7B9a2tKRpBqPQIVlRvvjNIa4ErUMJW481V27NQYSOeOgBcTchV7m1MyoeJJkHUSzCLoHQgnFxSFS1OXZ02rS/+mtza/83f+u9c2viIrt2XRi6+mp6I5jKDTcsXiQicsPixTdU+7lUSFCSNEvAyN2O9gDzsALzsNxcGnOw9iR0R0B21HxC5k/07la9VIUvBSPiEgt3SFTUd5960aK6uhNvi3z/e1Onfutb5rbORz767tkH15IDArZw11133C4i0hQu/mDDSqNFRE/YdrpEJUOz+VJE9HNrN7khOaRcImJO/3X7hvEhWLnneiAeuWxEPHwhGNEJBCMSuKtauOiSepNDr0g+Bzv5yYsvvSRSWkhWpYm5yg5XyFdqAkFJ06xVRn/D74iIzjXdgoiIyMXnhpibi2vsCkjuuR476Ng5JFSS+RpyPWoiGCvKTuoOCn/+55dNee45kQd/79L6l/eY16rPPDM0tGCBSFv7uXN33kEvB9tYtuzXfk1EZMH8BQuCfi1aQJIISo1wREQLSBsVksMatRKSCPyVGL8CknuuB0adS0pMN2oEwx+Ynny+64cXhq++it4PtrJnz949pghIRHInvm2uFZS06/npFpQU3WGSOBPs9pDatpdQ+Rz0dr0pJSLmCHG9qQ2WO7DYTmZUPJyVjwxVgmBUlGXLLqk7fMTc69u3j92vwGbOnHn3rIjIW8ePHxcRuXLWrFmmXmvEVcYLCEqygKCk6S4loSMzSFLPvX59UPYSY75ANiYEy1n56FDvNrHy4bqhOcl8PMEYfbAgGJNkXnNd3TvviPz4R1OnPv6/zb3O2XPOnPmjh2hv4I6fO1dEZMUnb7mF2sgPglIqJKmPx8aQPl8laBi3Cxbb647fUR3x6LK4DvLtIrUi8EnefuWOO+vr9x8Q2bJ5ypTt2827Pp18/vGPv3vmd3+H9gZwuPfT99wj4hxYSG2UJyiJAoKSsVxE2tQ7QupzWRK47XoNzQHZinjkkBR7xCP7HIxCghGlS1QJ03M/OPkcIB+HDh86JGJGTki1iaiyQ5cFdvHaZt05KM4Eu1eJyAr10za6jJr3OvWyJLDb9QZWQHK312WC6ZBWpYm7W2XnYsQLiAbUmmWfuKT+8CFzr4+TzwHy8eYhBKRS6OeePkF8g+SeKJ9QpbnJ8blJ6pykniuuG1R9rA/cvC9wAuKIR9RV8aDFI7hJ5uOFSmnhCNPEPmdec13dO2fMvb5du9j9CiCPgBw8dIhaqA36+ThRcvw2Q0K79BeshNw7dKgVop0StO16A5MDkru97g4MOIcgnWTe2trdrQVjNaFShjA9HKp7/5zI6z+9fOqjm829Tk4+BxiPFSucZPR5c53kdPAvKZeYJCQoKyfOhDvmmg/ajhbK+b4NyQp4DsgGxCOHXvGfeORbyVjNrlKGs/D6uroTb5t7fZx8DlAMAwMDJxGQYKDnUe7QLj1xTahyp0tQaj+xdSbYSSUiG0O580Nb0fMqnazv/1B83wtI7onmHYwZOd9c1DLmLzsn435WMixn0SKSz6HSpF1ltSdqYZpgQvS5IBD8iWybLtXzfYsSlKT6+baa55zo7Whzk9RjlrdfXNVH3PchWb4VEE40z1srqqzGgYL5dpdaTU4G5GXhwkuMFhCSz4shWUAY+l1flKRc41n23+/r6+xM+/gas8dFLSYRV2nz5hhvHXsLATEc3a9jBXJO9IR3Z8gRk2pNgDnAMBd9gnrStyFZPl8B2cCJ5jmsV+Lh5TcN4x3EF6fKoSjmzQ3VnT5t7vW98qrJAuIWAv3+VCj/nwdBFCpFX19nZ6aAcI0Syh1f9Ti6ziIxGcg4oVhN4aYZjI92oOcRHbocyQ3p0vfLNs9DuvQE25lwaxHZQUiWEpFcQfMPvktCz93lihMwHXSuR/skWibfNraryakBTzh2dNq0v/prc6/v47969uz9vyvy5sHh4Suu8Nunc4uDFgO98pB2/TzlmkhD9Wht7e5uc00MTIRkdCgWPW497hKT8r/gcESkS71jt1QtILUOyfL9SeiOgOxmYpxzY64sIeQqX25G3PUNBYA3LFrkJJ9//3tTp37rW+Zd3+nTI3JZg8iHP/LumQcfrPZ9rx/AL+cRib6+zs4kHTDQIqIFpM3A67vhhsWLRERuWLz4BlobJjMOJrMEpbRcE0dEdnBeWM7zo3YHF/p2FywOFsypDVWOl+uRvbRPbgbUhnnNdUaHXu3b50XoVdL1AOgPXfxzW0OabOYR1Q/aDPyGdiAzkKGFYTJEXaUO6dLjZKJIMSE3xCGiSv8cXFhzAXHEQ1fMOpbKRERkY1auB6IB/mXh9YbvfpU39yPlEoqXEQookb6+zk49vqddEwQTGBw8P0grQyUn0h0TisnsOY6YkBuSjT64cNvodsbWCojDFut3LXjqqSNHo9G0fPb39+y5774bR0RaW0UGEA3wNYsWmi0gt912SV06vT70Z3/W17d9ew8NDhUg4ZpQmcDASVZAwC9iMnuOc5/9yz8//4M/+nxSli07ceKll2KW19cmNe9eUrOVkLpa/WJn5SOu3tnTEZ5//uTAggUin3to7yv33CPSMv/fd2zoEiUe+gZqQzwgEJgegjU/Uld36nSKhoYK8nLIvGsaHBxkBQR8Jia/+VvLb/6rv4zJK69OD3/oWtvrJapWQjpq9gmqvgKSe77HJmOXwvbue+fdOVeJPPGPhw/dtFTk6e+8dfz660UOHnzvbFMTQwKYgekhWLVeogYbSBt8be+effeMiMjlUy+fRkuDP1i3bumS//anIv/yz8//4KHPizQ2nh88c8bW2tigzgvprXpyeo1WQDpcZhpcDh5871zTDJFv/G3/mzcvF7nhxp3PffGLIp/85A+e/+PPi3zjb9Lpm29GPMAs9O5XTAwBJoPpu5mdOfPuWVoZ/MW+fdMbP/Rhka99/brr1rbbXhthVVZ/QaBqKyC5yebB25f51OmhoSlTRJ7+zlu/XLjIWdlYulTk+edPnlwwnxsa7ML00CuHFA0NAGAo3/zmNfPv+22RZZ84cWL3yyK33370yLPP2lobbSok6/GqrfxXOQQrOAcv6VyNJ/7x8JGlS0We3n78+MJFIqcy5wenXMaNC3ZjeuiVg4mx+eBf9AM/ZtA1vfuuDm2ZNYsWBn+ybr0TkvXjZf924jdfIiRLjUcVf/5VPATLWfmI+XZg1Ssb7hCqVb/xwgsPPijyxBOHD910E+IBNpJSZa8q29WAtCT0hT9paHjhhV5Lrh8AyuPMmXfPUAvgb05lLq2fNm1MROwmplZC2ir+m6q0AuKfZHP3yoYWDAB7yLgm2Dtd51ikxIlNz4zzf9x999VzI4bXU5quAjAp9uzZu29jyDkRvWd0guMQVeUKTqoGX/Dd7XNm33KLyJNPNTffeafIffcePLh9u621oVdCeiu2ElIxAXFWPtpcA00VjdaVs/GNv+tP37xMZO+e06fnzOFGAxsmzkmXYGixSHn0e8ydMDgxsCm6ElQRfZ/GDNwd8oG1LS0Z9TrhKiVrgvPY5v7+qGt80YKifx6hq0BF+fKGxYs71oksW3bixO6XRObNPXv26DHbaiGiVkK61POwKzgCkmtQlUfvRvXEPx4+fNNSkW/8bf/Bm5cTOgUmkppAMNIV+83OgBSxpH4BoPqiknLdhz0uQYlMIChRqhEmxWhIlmu7XjtZp7bp7fF8m17PBSR35aNyExUtHF95+I1f3NpKKBWYRD6x0D+fKDSqGpguIGm6IIBntOgvIj0I5XhgbUuLvj97dekSlHABQYkhKFASu3bNnLlkqcij/+uaa++7V+TB3/vFG08+ZVst6PupQ5Vd/hUQB+9XPnTuxlcefuONW29j+1swSTC0WCQD8vlNf4Cz+xWAd0Sq+LvyhnohKDApvvb16z6ydq2TE/L0dlt3yfJ+JcQzAfF65QPhAATDr4QNb78UXRjASBAUKB33LllbNv/oR/+107Za0PdFhyq7/CMgDuWvfOzd9867c64S6ez86aurViEcEIQJaiHRyBh+/StGzL6+DF0cAEFBUCAHvUvWM8/MueqWW2w9uNC7lZBJC0i5Kx96l6rOzp++vmoVORzgJ9IuwdhmmWBMRNjYK6vWCbAAYKqgRCYQlAjVGPQpuNUHF+rnf4cqu2onINqIiv2bX3n4jV/cdhu7VEEtyUwgGGmqaFyihosnAEC5gqLHkV5dFhCUeAFBCVONPkeHZH3t69ddt7Zd5L9v3Lvnkb+0rRbuV/22q+ycybIFJPeE88ITEh1a9bmH9u759D2cwwHVRAuGDpFKiLfnYNiDHdvvIiAAUC1B6dGlS1D0vEqXq0cmmmdBbfjmN6+Zf99vi9z+60ePPPcD59yQl16y5eojoyemO5EDvdUTEIfCKx/f+Nv+N29ernI67qKjQiUnjFo0CJWq9IBjNogpANRaUJKu51pXKDf3JK5KQrv8wpc3LF687vMi3//ejh33t9t29feXfWJ6yQLirHxEXDfCWE7H5x7a+8qn7xV5+jtvHbv+o3RM8IJCgsGEsbpEDb++frbfBQCfiklGve6Viyd8+U6QX+0SFKgU+/ZNb/zQh0WefKq5+c47ne16t2+35epjaiUkqlZCip+XlbkC0naReKz6jRd+/NnPEmIF5ZCeQDQyVJEvCBt+fQgtAARVUFKucaxngpWTuCXjevX48obFizvWidxx+9Fjzz5rW3K6XglJFf1FXn25vwjxgPIneNvIyQgkNxq+/W6aJoYaYur21ozvtRWTjHrdq0v1/G2X3JWT+9lOeJLYnZzepsr1Rf+LogXECb3SHTKCeMA4JFyikRR2lzKBsLFX5iwd0z8BKjAtI7TR14KiBTFV5G5dcaptAnRy+oMP/uKNp/5JZN7cs2ePHjN/fuCEYsXV8zThnYBoQ+7809deX7UK8bCbTB7R6Ovr7ExQNUYTNfS6UjQtAECOmKTV6x5dhvIfxLiakK4CfO3r131k7VqRRza9tPt//E9brlr3h8SEXzwULSDf+/4v3/7IdXH5xt+k0zffTMeyg7RLNB4PETJlM6Y+WDI0LQBAUWKScc0LEq6QLi0i7hWTiHW19eS3nKT0zz74iwNPPimy8PpTmZ+/YfpV6/aeeDuwCQVEh17dcOPO51bfHeH+MxItFElEA3LQu1uYzU5CRADBB/BEUNxisl7y55rYIyZ/9meLF3asE/mXf37+Bw993vxxzJk3xFQoVrJ8AVl607PPfeELMTl48L2zTU3cXmaIxuOuJPA0VQNMjABqSpQqAIPFRM8/UtaJya5dM2cuWeqUS5facmChDsVKhsoWkP37z5794AfXjXADIRrAxMhMkjQxQMWfRwB2i8mT/9Q87847bBGQ2IR/YxwBaW3t7o4aZ6JmkXaJRi+iARUgTBUAQJlkqAJATGQsJ+QLf/La65s3m747VjSrvbLbsygByW5g8IdoJLKEgxwNqBYtxo4DE8WoAlSW1tbu7hjVAOC5mLSp92HfXcWjj15z7b2fNv+ckN//gzd+8a1v3T/yd3+b3V5FCwgDY3XJFBANJkhQSyJUAQAABFBM4urn/tku+Mmnmufdtcp8AZk16/3Bt98u7BETCEiUfl1RtGjoczR6qRKAqoHYA1SeFFUANRQTPc9KqHNM9EndWkTcJ8BXHn1i+pNPOSFZ99178OD27ebVfsOlw8NDQ9FSBIQlYe9Jq/IRksIhgDAeAHB/lUNfX2dnhiYGHwmJ7o+9ugzlnvze5hKTSMU+zTP/d86cWz5proCMnXvy2Ob+fj3OJccTEBGSTieL7tiEUAH4F87/AACA7JPfu3QZyp04u3NLJs++fdMbP3StLXV8sVcUEJAo/bEodId9xLULVYaqgUDjHCQUoSIAKo6pmzzwHAQTxCSpXiddIVxaRNaVvFJy3287Kx5/vnHvKz2PmFt7ixadOv2zn7m9IjGRgEB+ElnCwcoGmI7pApKiiYH7jPsLoAQh0WLdo8tQbrL7utGckunh80NnzojcfvvRI88+a8v2u2M0Np4fPHOm8J8jIC6mhy9tOPe+yF13zpr1yj6R9vZ5c194oUc+/rHw9IMHN4bCTV/8Et/sAJgA9zEAAHghJgkVOZAM7dkTDl933aaRSOTds4cOtU04EbcV6wVEC8cf/kFL8w+eF/nDP4y0PP+8yPTG+vpz5/Tf6lBl20hm4KsPj+V4PKKEJE1PAgOJGn593LfgB2LcXwABxBEO/ZxcN5ojcsMNmcxrr1E/CEhZwlGIsEtIOpSQJF1CkqBngQGEjb0y5wBCJkgAlaOfTR7AINHQz8O4SziiVFABXnl1eni8JPsCAmLug1mLx3/90rXXfP/7Xv2vMV0qIdH19/hocjorJQAA4NDa2t3NxAXAv8IRdYmGFo8wFVQkpzKX1l/RWNgr6mwTkKe3Hz9+/fWV/i0RVW5QHfeAEpMdqmyjZ0IAMHV3niRNCz7A9IlMiiaGAIhGWJUdqtytnnu7XdvuIh6l8uahqVNnzy7sFdatgOzdc/r0nDkiBw++d65phkhz8wemDJys1m+P6VKJyCb1PqHKx1UIFxMk8AMRqgCgYkQNv74MTQw+FI64ene/a2UDvOaVV6aHP3RNYa/IswJixwndT/zj4cM3La31p9BGrQ1br5DoFZNNqmQiCABgFmHDry9NE0MNRSOqyi0jTjmghGMr4lEldu2a+cGlS0VyD3ocY4Ik9KQqY+YJyBOHjyxd6nUuiFdo4ejQpRKRlHqvc0sS5JYAlAwnoIMfMDXEUcSWLzLBH6Lh4F7RiFBBNeL06Usbpk1TJ71/OFnw700gICljBeTgwffONjWJPPHE4aM3fUzkM5+5es6LP/H7p9Y3WlTdaJskdxcut5hkuBPAg/4GAN7DBAmgeNHQ90vcJRw8p/zGd5+ZM/uWW9weUbKA6G8KO4z9puYbf9efvnlZUASkEFoQY6qdtigxSaifb0NMoAzCVAEAgl8iSZoWEA2LefTRa66579NujyhZQMwfSHRS+vPPnxxYsEBk+fIZTfv3m3J1+gaOIyYATJAAwQdANKAi7No1c+bSpTr0auLn7TgC0tfX2ZkRZ7/ylJjeMb7y8Btv3HqbyHeW/6eP7/+m6d2kkJgkC4hJmjsLAGDS2HD+BzlWkC0aUde8YzWiYShf+/p1H1nbrt+lxEk+z5QjINno3IKosaFYzz9/8uSC+aauhBRLTJeuHJOUqx8gJgAA5RGmCsBg0SAZ3DYe/V/XXHvfvc4KyJLR3WW3TfhFRJECkrSmIj/30N5999wjsuflFZ/86lfpWEo8JVdAtZhoAUmMCoojJimqLNAPEh4YAJUjZvj1Mf6b/XzQYrGaE8It581DU6fOma1WPta6/zQx4b8vQkD6+jo7U2JLKFYwd8eqFXqi2qFLtV1wxtUBtykxSVBlgWpXJkgA3jN9xOzry9DEgRaMiEuUV3NuBuSgt9ltb//VX/1Kt8ipzKX106bpP02LE3o18XO2vrRfa34olqbzT197bdUqkbtWXfkrr+wTmd5YX3/uHB2vOMKqbNOlEhO3Ge8kpAuqyuw53/724UNMkKCWRA2+tr6+zs4kTRwI0dD9MO4SjSgVBOOKR1v7r3784W53srnmkaJzwEoUED1x3GR8RZ/KnB+ccpnIN76R7l++3K8HFgYVPeDFC+Sa6AeYXjnhgQYAphChCqAKghFW72IuwYjRD6Es8fjN31p+81//ZSHxcHuCpwKiTzZtbe3uTrgmkubyla+88catt4p85r9cffWLL4k0N39gysBJOmRliLpKd0jXmJjo96ycAAAC4geSNG1NRCM6gWgAlIfO8dChVhOLxwNrW1qKn4/Vl/exdChWfMSWhuj809deX7VK5B/+fsmNf/+/6ZjVJewS3rF+x8oJAPgfG7bfhcoIRngCwYhQUeApzzwz56pbbhFZt37pkv/2p+4cj4m8oHjKEJC+vs7OhBpQ09bcAE9/561j139U5Ontx6+6/nqRu+6c9SuvvkpH9QdRV1lo5YScEwCoFaY/Jzn/Y3KioZ9fcVWuYCUDqoIOsdLC8d3tc2bfckux/zotzspHouTfWz+5j71RDThb7FkJ6fzpa6tWjZ0TQnK6nwm7BvR4gW2EtaC4Q7syVCEAeETU8OtjvBxfMCITCEaYioKqos/v0NvoFrfS4eaRsr94mKSAaOPZZM0NpLfpJTndBPQDoU2XhHYBQIVoMfyLupTlghGeQDAi3AJQU3btmjlz6VKRL29YvHjd5yfK6Sj2C4fesj/PJASkr6+zMyNOKJY2oA3WrITo5PS77rpy9iuviixedMXlR4/Qwc0i6io7XNsJaxHZ6Vo5QVAAwI3pE9C0JYIRKyAYUbo4+FI4vvb16z6ytt19UvlkeSTkhF5laiEg2fSocp0qw9Y08Oce2rvn0/eIPLdz2Sf+4i/o8HahHzwx9SDaIOPnnmhBSVF1ANaOFyaid8lEMABqhftk8ie/1dx8551e/5aMa95fPh4IiN0rIXv3nD49Z47IVx5+4xe33UZIFmQLeFyXrtAuBAXADlpbu7sjhl+j/8crBANMRK9wPLr5mmvu/XSpyePlMvmVDw8FJBttRPathHBeCHgvKKkCgpKkCgECg+kCkkYwAKqA3h73m49eM/++T3sdUjURGdc8f/J4KCB2r4RoPvfQ3r333CPynX/9Tx9/9JvcMDAZQdEPTneIlyZ5kaBocWEXLwC/YPrE9+WKb7+bu4uUWzCiCAYYhd4W97vPOCsaOofjzYNTp865qlafyruVjwoISDbakOxbCXn++ZMnF8wnJAuqwcWCMvpdRd5dvF4u8gT5FFUL4Bmm736V9kgwohMIRoSuBEaiczceffSaa+/9tMiTTzXPu2tVudviek3GNa/3jgoISPZKiD4nZJN1KyHskgW1J+oqxRXqlXYJh7OScvhQSs6de/4HV8+lBgG8uw/tE5D8oVFRl2DE6CJgFTqU6sl/ap535x3Vyt0ol42er3xoQiMjIyMjWXoQCoVCIU8XVFtbu7sPjNj6DcbiGxobjx5llywIFmYLyMrQ7Dnf/vbhQ0kaGipMa2t394B6/oWNu7pjR6dN+6u/XhLKFYkbOf8CQMZWNp580tmN6smnHOGobShVKV8sPLC2pWW+Z0bg9o366lzIenUBW61bCWGXLAAAG8VDT7yDJx7zmuvq3nlHZNGiurpfnhBZ9olL6g8fEll4fV3diRMiy5ZdUnd4dEV/9wjtDSDy5FNKNJ5snnfXHdVOEq/UvL1yVEFA+vo6OxNqQE6qn8Ws65g6JGv5zTNm7N8vsnz5jKb9+7lhwZ+E6qZMuTAkMjJ87twl9aZdXYQGBiv72fRwqO79c0ogjmYJhRKMRYuc942NIXl/kBYEyMcrr04Pf+hatRvVfWMhVf7I2ZgsSXFWPhIV/01Vnlq0K6M6YO03Jp97aO++e+4Ree65mz/xF38hMr2xvv7cOW5o8JmAyGVThoZERgQBASiPWNXFYuH1dXUn3h5boVi00BGKhYsuqT9xQmTe3JCcPk3LABRDsEOoyqXyKx81EBB9Umpra3d3j/pZh3Ud+uDB9842NYl0dv709VWrRP7mrxcv/D//hxsdoHqM7koUoi6gCv2sbHQo1Ly5obrTpxELgEqgt7198qnm5rtUCNWdd4js2ze98UMftqUWesRZ+UhV7TfW6LtNvTtW3Nrk9CeeOHzopptEYis+OOONN9Jy771XzUmlIowE4Avq6i6fen5IZHj4VOYy464uSgNDTfvZokXOSsW85rq606cJhQKoHhnp67ty9id+LSN//w+RltWrIz7fhary9ZE7L68eVdgFqxCtrd3dcfV664jtN0Q8Pnv23r0rQ71bojc+8YR+cK1W9RJnzICqMjR08M3GRpGhoYMHr2g09Sqb1G5YGRocJkXudrNR+fKG9wc/uXzHyMKFl9SpFYqcFQwAqNbEOqHKbaHZc+Krd/0gpd7vNnZ3utJYE6pWzsdFvlE7AckWkR3sBy4iznkMfX2dnUtGW8A5r0HfIHHEBKrC8PDbA1OmiAwO/vTVD840d+B1BCRBg8M4YqGfSxFXuWIk/88BoLaiUWhcf2xzfz/zTYekOOKxsmoz/hptwzsROjnddiONKiHrUiLSpU6s1jdYry5DiAlUlvp685cl9f2SIBcEoUAoAIwRjXzi0SWIR3Y9ttf8ueeDFRBNa2t3d4d6vYl9xUVEZGXIEZFk6V1s4KsPFxaTMFULRWHHiejz1YMsTYMHSiTcoqAnFtPVeBcVhAIgaKQLiEayjP/rsc39/Xpc2MG8UkTGTjbvqvpv9mEIVj4R2e16gNhuqvOViGQm/z/miMkKl5jwgIZc3h/8yYuzZ5t6HogmNSr85ITUQiT0OB92iYS4xin951EqDsCYcXdbSAuHM/6mPPi/H9vc36/HiwPkeozW9wNrW1qW1GyG79MQLDfukCxb0TeMTtKffKyeE9Klv1nQoSfrlZjoB7sWktWIoOWYfR6IuCa0B0acCbG+Px4JefdANFEcCglBIYFw13eYigQwHj2e7nSJRrrCv3cr4pF3Xu2j+YX/VkA0OhdCRGQDS2ci4iydObkh1cIRk4hrYkGuiS3YsRvWhHeBKlOuB6n75xnxm7Dk5jy4ibhKTUuB7dERBwAoND5q0dArGkmp/opydq4H88axeWNtQq7cBCAEK5+IEJKVS/m5IZURFC0ihHSZhh27YVWLtKssl7AwHgJAdUm5BCPhoy9cyPXI3161DbkyRED0g3Y3HSvnG4clobET5n32CXNCuvTAsJrt7wLH0FBdnci5c//xozlXURsAAGbPK5Iu0UiKfzfpINejMEtC1T7Z3EAByRaRLvWapbUxw809N8T3Q1zO9sGFxCRC0/qMwcHdL8+aJTI8/O6ZSxuoDwCA4M4bckWj/F2m/CAgRMjk4p+QK4MEJFtEOEgmlx4lIusDf55B/pWTFeSc1Jihof0HpodFhoaOHJk2jfoAAPDpU1SVCVW6k78zBlzjY5v7+/VxDR00+ahY+ivkylABiajXu1lyy6FdhWT1mju0Dnz14cIrJ1G6QIUgFwQAwE8kVekOlUoZfM2Pbe7vj6vXW4mEyRHOlb4LuTJQQLJFRJsvBxde3BH7+jo7U/Zced6T4VcQ2uUx7w86uSAjw05uCAAAVIKUSzR2lnDyt4niEVWvd/DFcw7rlXj0+P6TGiQg2SKylRCdvAPXSs8OMDRDUPQAFisgKAxoE3F+6Oe/aJohcmHorWNTp1IfAADlkb5IMJzSpFApL8Qj7BKPKNUy2m8eWNvSsjIwM/aAHERYKvqAlRhmnHODblH1sSZk+63qHMCYcglaT2h8QWHXLjf19VdddeYMAgIAMD5aIBIuwfDzrlJ+ZAvikbdfBX9eZ8AKiKa1tbs75jJlcKj+AYbG3fI5uSe6XGGtoLArFgAwEXSEIr9gpKiisuFAwcKsUSFXicB9cgNDsPKJCLsjFO64fX2dnQmqAkGZFBeGj/9y6lSR84M/+1nTDNofABAM8EI84uo1Sea59IgjHsHd7dQCAckWEfaHzj+g2pekjqBUhvcHf/Li7NkiI8Pnzl1STzsDQFBIqzKFYPhCPPQ8jSTzXFJZ87YH1ra0ZAJ7JZYJCB164g5Nkrr/BCVaQFD813+Hh0+9c9kUkcHBvXtmsj0vAPhOMJIFBCNNFflCPMKueVqUanFmBS7xCL4QWyQg2SLSpl5vYUkvh4Q4AkKSejAERQ/MWkhu9M02w+eHfvr6B2eKXBh6+8SUKbQXAFSa1ASCkaGKAiEg7GKan3YlHr3GXJGFApItIlpA2ujbOfSIKSep2y0oWkC0qKxwfaMUq+AncM4FeX/wJy9eOZtzQgCg7NHMJRYvu8QiSRUZIR5d6jVJ5rkkxBEP874YtlxAwuo1S32Fjdvsk9QRlfFCvfT7SPkDjLz73qUNIu+f2/3SrFnUNwC4SRUQjBS5F1aIR5t6TURKLmlVLgl8rkfZAmI6odCtt37lK1GXiITp+zksIUndakGJuASlkKgUvm/YJQvA1gmUfm7sdIlFkiqyWjyYd0007xoZaX+gudmeeZeFAqJXeMgNGWcaqsr5JKnDOKLiFpQbLwr5QkQATHkeXCwWDuRcwHjioUXjAOKRl7FcD+vm4/YKiIbckMLoBwy7ZcHkROVfv3PwzXvuWTfyqdsOHvzhf3CfAdSS06dH5LIGkX37hodnzhTZ9cMLQ1fP1X/aK1/4k4aGF17YGGK3KJi8eBDynp9eccSjfXRGatt8nJ37RUREJ19HuVFy0PWgD3ZsJ0kdSiLc9MUvOSL72Oavf31n6L7fnvnB7dvbRh7Z9NLu//E/qR+AaojFK6867/ftGx7+lZkibx4cHr7iikL/y87Q1772zDNb/wXxgMmwiflUXlKueae9sAIyCueGTEyPsFsWlEd2DPDukWXLTpzY/ZJI75Yf/fhLnSKNjecHz5yhlgDyoQXizYPDw42NIvteUYKx68Lw1VepP/+gyKnMyPBlk94GmxxAmMw436Ves7tVLhlVFj7XgxAsawUkW0Ti6vVWbqC8sFsWTOYBNTbiTA+fHzpzRkSviNx++9Ejzz5LLYHZuFcqRgXjTSUY+0YFY+jqq6v5yfr6OjtDfMEEZYzrbeo1ObWF503jn+uBgFgvINkiopcQO7h38sI3ZVDOg2qH6wDFMe648+ixZ58V+e8b9+595BGReXPPnj16jFqDYKBXJN48NDLc2OgIxRWNeX4+bghUrUgqAVmJgEAJ43lUvSZyJD894ojHxJEjCAgCkkdECk+Y7CajypWICJTwwCpe7O/77YMHt28X+cKfvPb65s0ICdRifEvJv35naOjaa6Py+uvDwzNmhAMiFOVMlAixhWLH8Yh6vRvxKCj0D6xtaSle6ElChzzoEyn1jRahSnIGnC0jjqixWxYUg97Gs2PCofbJbzU333nnWKlzR+677+CbT39X5I7bnRUTckhgYlIusdD9MC25ZSrPtrKtrX/0kOlTg52IBxQhHvq5vxXxGPeLizXcTwjIZNET6tbW7m63iIBDVJV6pWgJNx4UMREsnV27Zs5csnSs/HL4/NCZdY6YvPSSyO2/fvTos8+NiQorJiY+2N0i8XIBkUjL5LeRzd6chPsSYEw8olRFXlYae5K51xCCVdYDqU29JtkqP71K3Ni2Fwrx2Ob+/oGKf4M2r/ns2aNHlJCkRBYtPPXOz38usvD6U5mfvzEmLlDNCW7GJQr9oUKC4QhELSfGra3d3R3q9SZDx/uMGq+bGK9hnPGa89LGZ+Ik84kgBAsmQO/+1Nra3b1CuCHz0abqJzNCTDFMPCGNVew3vHlw6tQ5V4k8ebC5ec5VIk9OICrz5p49e+yYyLJlJ95+affYny/7hCMw+f6+OSssaVfpplCITvKiCW3txcFLbjR8SpBkKIJxxKOLec649MpkxcNWWAGZNK2t3d27WZKc8JsBtu2FQg828/aLb2196/gPd6XliX/44Q//5P+t/UqgIwRMNMsb3w8Ynvu3UY3PXTQ3ZI3PWjiI9MhPSomHdyHnrIBAGawkSX1cdJJ6Wj3omAiByNg3rxuMu7K+vitnfWJZRGbPia/e9QP9oMrQ5IESj7DYMZ4zHkO2eMQQj3HJuOZ9UC51VMHkpxpjuz6tccUyQy5bR+xK6oTxSVlynfT3YBLjPgSLxCOa9ZyGwpBkjoD4UkT0QE7OQ37CqtyhRCRClVhL9gBu+gQoRnMjjj4VD7ZNRzyyn8vZz2nIRSeZI+wIiK9FpFe97qE6xhURvSLCgGc3pg/oK/hGkXbjvgPEI5D0CEnmCEgARUSvhCSojrxEswZARMReXjZ8xTBGE9NuPoSDB+1mB5vnjEtCiQcRLQhIoNG74KSoinFFZBPfFFtJ0oJrzI6xBv/CwYNg+ji0BfEo6r7gHDMEJPCQpF48bWoCwO4b9pAdU2v6fRGjuWknH5CR3JxFsEs82qiOgveFFg+SzBEQ40QkrV6zfVtxItJFVViF6RMickFoJ+4zqLZ4dAjiUQwrSTJHQGwQkVSWaUNhNqjcEAZOOzA9Jj1KEweCGPcZGCAe+rlJaPP4sLsVAmKliPSq1z1Ux7hsQUSsIGn49UXUxCBCU/uO7G3Bw9xnYIB4EMo8Pj3C7lYICCIyulsWN0JxIhKlKowkZcl1xmhq2qWGzxsExEzx0M9FVjzGJyHsboWAwEWsZ7esotiBiBiHTQcTkgtCuyD44LV4cJ5Hcf2f0HcEBFxk75alk9TTVEtewoiI0SQNv74YTUy7cF8B4lEVsudV7G6FgECRIsK2vcWJCCeqm4XpSbIRyT2JGGpHdu5HhPsKAiAeetzYgnggHggIVEpEUi4RgcITOhFOVDeFlCXXGaOpfUHUkutM0tRGiAcnmBcHu1shIOCBiCSzbiiYeCKBiASXB9a2tKTV67Th10ouCO1QDdKSu7IOiIcN4pGgKhAQ8E5EetXrHqoDEbGApOHXF6OJaQfuI5iArYhHUfQI2+oiIFBxEWHb3tJEhG0Jg4kNBxOSC1Ibsr+YiHIfgc94bHN/v87xiFEd49IrbKuLgEDVRaSdbXuLok1NODiYKVgkLblOJhjUO/cRuMWjjeoYFz3vQTwQEKghKxERRMQwyAUB6n1ypMX5oipNUyMeBooHu1shIFBj2LYXEbHlgWMqMZqYeq8ASZoY8TCI7HkO4oGAgM9EJJ31zQAiUryIkCPib8gFAa8g9wP8Ih5tgniUIh56xSNNlSAg4F8RSWV9UwAT06EmJjwI/EnSkuuM0dTUM/eNNeLBCnxxrOE8DwQEgici+gHE+SHFsWUEEfEb2Q+ejOHXSi4I9ewFaSH3A/EIPvo8D0QaAYEAi0gvIoKIGIDpD6IYTVwV4twngHj4lvUhzvNAQMBYEeHGRkSCCLkgUC6trd3dEfU6wn0CiIfv6BVHPHqoCgQEzBWRdg4yREQCSNKS64zT1BUhxn0CiIdvxYMIDQQELBQRHliIiN8hFwSo1/FJC7kfiEdwSCEeCAjAGg4yREQChOnCHKOJqVfuC8TDYPEQGTsuABAQsJTsgww5UR0RCQLbDH9wRdTEJkJTTxpyPwDx8J94cJAgICAwrogwQCAifiRpyXXGaGpPiHNfAOJRM/Q8ghPMAQEBRAQRCSzZJ+GmDb/W1UxwPIHcD0A8aicenGAOCAiULCIpRAQR8TFJw68vRhNTj9wHiEfAxSNFlQACAl6JCJQmIpt4cFUE02Pew2oCFKWpS6a1tbs7mlWP3AdQqnh0IB5lsQbxAAQEKiUibJtXGh1qQsSDzFuSllxnjKYui7gl15mgqT0VDz1O88VRabQr8UhSFYCAQKVEpBcRKYs2RMQzyAWBiTA99yMluTl74I14tFEdZYlHL1UBCAggIoiITSQMv74YTVw0ra3d3WFL6i1JcyMeiAcgIICIiGxERMoSka0juRMnKA0bYuAf29zfH6epETbL+j3i4T96BPEABAR8JiJd6jUDU2noieUORKQskpZc5wpWzKgnC/u9V8IRVuVuxKMsepV4rEd8AQEBv4qIDslCREojioiUTPbBVilLRBXsrqekkPtRqnjocTV7nIXSxINQa0BAABFBRCAP2wx/QEbUhCpCU19Ea2t3dySrnkyG0CvEA/EABAQAEam4iBwYyT3XAPKTtOQ6YzR1XuKWXGeCph5XPPQ4uRvxQDwAAQHIFhEeoKURVuUORKQg2fvPZwy/VrblzY/puR8ZyT2PCfKLh17xiFAtJZFCPAABAdPRAxwP0smJSIwqyUvS8Ouj3fMTp18jHlnjJBQvHiIiKxEPQEDAZLKTJ1ciIp6ISBtVkoPpMfJhNfFCRJz+H7fkWrcxQcwRDz3u7UY8Ji0e2Zt5ACAggIhAUWxBRHJIWHKdhGI5sO2uneLBQa6IByAgAIiIj0Rkk8UP5gfWtrSk1eu04dcao8uLiPmhV2k1TqYtbuPHNvf3dyEeiAcgIACIiH/pEEdEbH9QJw2/vqjYuy2vTdvuJiwXDz2ObUA8EA9AQAAQEf/TpiZqWy09T8SWmPm4pf3bluu26dyP7BPLt3BiOeIBCAgAIhL8iZptBxsmLbnOFZZ+M2zDdff1dXYmLBIPPU4hHogHICAAiIghRF0iEjX4WrMfvKaLSNyiPpwt0KZfty3iEXGJR1QA8QAEBMDHIpKgWhCRIrAhFOuxzf39tohIzJLrNDn0ihPLvSOJeAACAlA9Eenr6+xcox7QvVRLWYRdItJm+APadGzZlteW60wYLsocHDg5esURDsQDEBCAGglJOyLiiYiYeJ7IA2tbWlLqddrwdoxZ0l/jhl9fWszbdjf7/I6tiIcn4tHOwZSAgAAgIiahRcS0bXyThrdbRHJDW0wiO1TQ9IlrwjDx0OcScX4H4gGAgAAiAhPSJmMiYsLuWWzLG2zut2QCG+Tcj3zb6HYwlCIeAAgI2Cgi6xm4Jy0iIsHfxjdpSXuZmiMRs2TcSgRYPPQ4kT1uQHlsDCEegIAABPqB3qNeM5BPjqgqdwdw96zsJM2EBe1kygnp2SeeRw1vt6CKR9QlHqa3U6VpV+LRRVUAAgJghoj0IiKeEMmacLS2dnfHAvb5dxKKxXX4kCCFCD62ub8/hnhURDx6qQpAQADsEJEM1VIWYZeItAXkcycsaR9TQrFs2XY3GRDxaHOJR5ihEPEAKJnQyMjIyIhFe1OEQqFQiO+/YZTsUCIeqN7QK7k5OH6dSB1Q7R0xvD2aAnhOQHau0YDhT6iUul+W+Px+2URSuSfo+3CNui+TVAmIiIht83FWQMBy+vo6O1Pq9UpWRDyhTU0g/Z60nrCkPeJ8bl/jxwlo9m5WWxEPT8VjJeIBgIAAjCciaaplUsRUqUUk4rPP97gla6FBDWGyJfTKT/0we/MCvSJsiwhWSzxSVAmAEIIFUIDsb+5JsvT2Qbwm5Ahf0icTrgFLQu+CEIplU+hVWpz7YH7IH/dB1DXemX4/VJpU1nj3wNqWljRVAuNCCBYAqImBnqjpFZEU1TIpsoXOT0nrCUvqPxaQzxm3pD38IuD6PtyNeHgqHisRDwAEBMBLEUlQLZ6gT1jfUuPvfLYRisXntKzfZZ9UvsWi71yrIZQrA7jpA0D1IQQLoCyyJ85tVIcnpLIe4NniV+mJWFi9Nj3kJyPOxKgp5O/7yvSQuIw4/bua7ZDdz3VSeYwhxxN6hRPLwQsIwQKAIsjeZraH6vCEqCqredK6TSekh9VENO5T8YiL2eKhSVbxd2XnduxGPBAPAAQEwBwRWa8eQDyIvCGiymrnihCKxecypZ/lOzAwwtDiCfrgQMZ7AAQEwBci0iu5IpKhWiZFWJU6V2RThSeoCUvqNc7nqimV7GfZBwZuIam8IuLRS1UAeAA5IAAVgRPWK0dSlWsqkCvy2Ob+/t2WbLustwdN1Pg+0eKx1fAnUUKc/rom5G1/DbvqL8YQ4QkZ132SpEqgopADAgAewMGGlUNPsA5UKFeEAwrt/ByVZqfH4qH7PbkdlREPTiwHQEAAjBCRJZwn4inhrAmYl7kiCUvqL87nqCpe9Kt853ZEGAo8QY/L8zmxHKAKEIIFUFWyT3omZKIy9Kpy/SRCtAjFqvx9oCfSpp9DkRKnHy4JldcP9XixiW2/KyoenN8BtYUQLACoIHpC3NfX2alDs3qpFk/RE7QdkwzRIhTLzN9bbR4vUzwiWf0Y8fCeXnGEYwniAYCAANgoJHrXrPWszXlK1CUi8RL/fcIiYcv+pr2SZK8Axi2p31L6UfY5LbaswFWbjWyjC4CAAMCYiPSo1zwYvUVPeLeWsJ3vA2tbWtLqdcqSeoob9ntqTUrd1+kixUP3y63smlcR9Da6XVQFAAICABeLSK96vYTzRCpChzgiopPXIxP8fUKxgvl7as14/UaHWGXnGnVwa3qKHjdXcn4HAAICAMWLSCrrASrC7lleE1Xl7glCtBKW1EdcKheKlS16cUvqM1FAPOJZ/S67H4I3pF3ikaRKABAQAEBE/IaecGeHaOlcBRtDsdoqKDg2kJKLQ68IsapOvYs4K8dsowuAgACARyKSkdztPHuplorQoUr3Llq2hGLdPxKs/9dvPB4aOyiQEKvKo8dBttEFQEAAoApCwu5ZlSWaJSLP/N9/+7eWEXuuO3sb2MmQLXBRC+ru9l//z/9Z95MdhFhVlOzdrBAPAAQEAKosIj3qdTtJ6xUhLCInTpw40SEiO5979lkRkcHBwUHTr3udR8Jlw8pH04ymsIjIzJkzZ3Zk9RvwjkzWOMduVgAICAD4RER61euViEjFePPgoUMiIolt3/62iMibh5z3JhL36P9ps6BfXLNgwQLujsqKB7tZASAgAOBjEUmp1/NJWq8YegVk505nReQnL774k+yfm0BEcndtKoXsXcXCFvSHBfPnIyAekz2OkVQOgIAAQEBEJKNeryRpveK89trrPxMR2f7d724XEXnr+PHjplxbuSFUNoRezWueO1dEpKGhoYG7wBt6s8YtcjsATCU0MjIyMjJi0QWHQqEQKbtgLa2t3d0d6vWmEeqj0txww+JFIiI3LF58Q9CvpamICWH2eR8HLOhfy5b92q+JiCyYTwjWZNlIbgdYjW3zcVZAAKwiO2l9DbkiFWfPnr37RESeVisjA5mBk0G9lrYi/17covade7WzAgKlk8kahxAPANtAQACsFZGEes0Bh5Vn4ORARkTk6ae/+4xIMHNGit0Va50F3+Fdc62z4kHoVemks8adB9a2tCSoEgAEBADsE5GUS0SYEFSeIOaMRMRJSo/l+bPspPOIBe3HykfpJFXJSeUAgIAAwKiIZFSpQ7M2ki1Vcc6cefesiMj3vvf974uI/PBH//EfIv5eGSmUXG5D0vm0aZdPFRGZNxcBKZYecYSDpHIAGIMkdAAYh+xvtreokSJMtVQcHdrzsY8tXSrizyTn+SGR/+8fnnhCv7ch6fy66z7yYRGRj91008fopfnRgrGeczsASoAkdACAUcgVqQ16BWTXLmdF5Hv//u/fF/FXEnubq7SBj370uuvonflJZ40TiAcAICAA4ImIpFwikqBaqsZbx946LjKWxF7rUK3BwcFBnWxuQ9J504ymsIjI5VMvn0ZvzEWPA+R2AEDxEIIFAJOAc0Vqiw7V0qFB1TpvZP+B/ftFxlZoTIfzPi6GczsAvIQQLACAosk+V2Ql54pUHb0Cos8bSWzblsgWhEqxZ8/ePTYJHrtejd3XKxEPAEBAAMAvIpJUr+eTK1Iz9K5aemXCayHR/4/+PaYzr9kRD5vP+9D3sQ6xSnKbAcCkIQQLACpIa2t3tw7N6qA6ao7eRvaGG5xQLf3NfrETbC00tgjIXXfdcbuISFO4aYZtfaVHHOFYzxMToApYNx9HQACgOiISV6/Zztc/aPFYsGB+RETkmmucHAf3hNu2nA+ddH7XHXfcaUtfyKiynRPKARAQBAQBATBNRCLq9VY18kSpFt+hV0rmqgP3Dh06dEjEnpUPm5LOUy7xSNH9ARAQBAQBATBdSAjRAr+gV4Tiq+++O/u9ifTIyEj7A83NhFgBQPUhCR0AakhfX2enngCtYRctqDE6FM1E8dD31ZoQuR0AgIAAAOScuK530UpSLVBlTDzpPKXKJeR2AIBvIAQLAHxMa2t3d5d6vYGDDqFC6O12V3zylltMuaaJDwq07fkPAP6BFRAA8DF9fZ2degK1RH11kKZawGOu+0jwVz70fcFBgQCAgAAAeCQiKZeI9FItMEn0drtXzpo1K6jXkMi6LzgoEACCASFYABBgOF8EJkMQt9vNqHLy53UQggUAtYIVEAAIMPmS1xNUC0yAPuckSOKRVCXJ5AAQfFgBAQADaW3t7u5QrzewMgIugrDykVGlTibv8fw3sAICALWCFRAAMJC+vs5OPWFbwra+oAjCykcyq99WRjwAAGoNKyAAYBGsjNiNH1c+MqrcWHXhYAUEAGoFKyAAYBGsjNiJH1c+kln9kJUOALALVkAAANhNy3D8sPKRUeV6JRy9Na8VVkAAoFawAgIAkHc3rV6qJfBcOfvKWbUWj+x+5Q/xAACoNayAAAAUpLW1uzumXuuVkQjVEhg+9anbbhOp7kGDaVW2+/5gQFZAAAABQUAAIBBC0qVeryNUy7dcc62z4vGJX3VCrypJRpWPKOHoCkwtISAAUCsIwQIAKJq+vs5OPcFcQqiW72hoaGgQEblpydKllf5diax+ECzxAACoNayAAABMmuxQLb29b4xqqTorVtxyi4jIvLlz53r9f6dUud73oVXFwgoIACAgCAgAGCUkbS4hiVAtFaMSIVdpVW40NnkcAQEABAQBAQCEBEqiaUZTWETkU7feepvIWAhWOWRU+Yg1IVUICAAgIAgIAFghImH1ukOVJLOXjhaN+Oq77y5XPLKFQ0SkRxzxyFhTiwgIACAgCAgAWC0mbeo1KyQTi8enPnVrq4hIU7hpRrH/Nq3Kx60VDgQEABAQBAQAoAghuZ+kdpk27fKpImNJ5sWIhxaOjRwAiIAAAAKCgAAAlC4kUfVah2zF1fuwwdc9r9nZzUonl48XaqUF43FjdqlCQAAAAUFAAAB8JCRaPLSImLBSolc6brrppo+J5N9ON5UlGlo87A6lQkAAAAFBQAAAaigmEZeYrHCtmPhROK677rrrREQWzJ+/QMRZ6Uiqv7NNjdgJJRppmhkBAQAEBAEBAAiOoMTU65hLUKLqfbgCv1dvl3vlrFmzREQaGxsbkyLy4Q996MMp9Xd2qpE5KaxoICAAgIAgIAAA1giKFpCo689iRfx7fSDg0NDQUFpEPnnz8uVp9WdpYQUDAQEAsFJAAAAAAACgdtRRBQAAAAAAUC3+/wEAWqSPG/h9+3cAAAAASUVORK5CYII="})],-1)])])}const B0=me(D7,[["render",B7]]),R7={},V7={class:"icon icon-hyperlink",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 20 20",width:"20",height:"20"};function $7(t,e){return l.openBlock(),l.createElementBlock("svg",V7,[...e[0]||(e[0]=[l.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[l.createElementVNode("path",{d:"M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"}),l.createElementVNode("path",{d:"M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)])])}const Kl=me(R7,[["render",$7]]),F7={},z7={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"};function U7(t,e){return l.openBlock(),l.createElementBlock("svg",z7,[...e[0]||(e[0]=[l.createElementVNode("title",null,"image-file-landscape",-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
@@ -57,7 +57,7 @@
57
57
  `,D6="\u2028",P6="\u2029";function B6(t){const e=t;let n=0,r=1,o=1,i=0;const s=T=>e[T]===L6&&e[T+1]===xt,c=T=>e[T]===xt,a=T=>e[T]===P6,u=T=>e[T]===D6,d=T=>s(T)||c(T)||a(T)||u(T),f=()=>n,h=()=>r,p=()=>o,m=()=>i,g=T=>s(T)||a(T)||u(T)?xt:e[T],v=()=>g(n),y=()=>g(n+i);function b(){return i=0,d(n)&&(r++,o=0),s(n)&&n++,n++,o++,e[n]}function E(){return s(n+i)&&i++,i++,e[n+i]}function C(){n=0,r=1,o=1,i=0}function S(T=0){i=T}function _(){const T=n+i;for(;T!==n;)b();i=0}return{index:f,line:h,column:p,peekOffset:m,charAt:g,currentChar:v,currentPeek:y,next:b,peek:E,reset:C,resetPeek:S,skipToPeek:_}}const Yn=void 0,R6=".",Qh="'",V6="tokenizer";function $6(t,e={}){const n=e.location!==!1,r=B6(t),o=()=>r.index(),i=()=>T6(r.line(),r.column(),r.index()),s=i(),c=o(),a={currentType:13,offset:c,startLoc:s,endLoc:s,lastType:13,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},u=()=>a,{onError:d}=e;function f(A,x,B,...Q){const X=u();if(x.column+=B,x.offset+=B,d){const ee=n?Tu(X.startLoc,x):null,ie=yi(A,ee,{domain:V6,args:Q});d(ie)}}function h(A,x,B){A.endLoc=i(),A.currentType=x;const Q={type:x};return n&&(Q.loc=Tu(A.startLoc,A.endLoc)),B!=null&&(Q.value=B),Q}const p=A=>h(A,13);function m(A,x){return A.currentChar()===x?(A.next(),x):(f(Te.EXPECTED_TOKEN,i(),0,x),"")}function g(A){let x="";for(;A.currentPeek()===_n||A.currentPeek()===xt;)x+=A.currentPeek(),A.peek();return x}function v(A){const x=g(A);return A.skipToPeek(),x}function y(A){if(A===Yn)return!1;const x=A.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x===95}function b(A){if(A===Yn)return!1;const x=A.charCodeAt(0);return x>=48&&x<=57}function E(A,x){const{currentType:B}=x;if(B!==2)return!1;g(A);const Q=y(A.currentPeek());return A.resetPeek(),Q}function C(A,x){const{currentType:B}=x;if(B!==2)return!1;g(A);const Q=A.currentPeek()==="-"?A.peek():A.currentPeek(),X=b(Q);return A.resetPeek(),X}function S(A,x){const{currentType:B}=x;if(B!==2)return!1;g(A);const Q=A.currentPeek()===Qh;return A.resetPeek(),Q}function _(A,x){const{currentType:B}=x;if(B!==7)return!1;g(A);const Q=A.currentPeek()===".";return A.resetPeek(),Q}function T(A,x){const{currentType:B}=x;if(B!==8)return!1;g(A);const Q=y(A.currentPeek());return A.resetPeek(),Q}function D(A,x){const{currentType:B}=x;if(!(B===7||B===11))return!1;g(A);const Q=A.currentPeek()===":";return A.resetPeek(),Q}function Y(A,x){const{currentType:B}=x;if(B!==9)return!1;const Q=()=>{const ee=A.currentPeek();return ee==="{"?y(A.peek()):ee==="@"||ee==="|"||ee===":"||ee==="."||ee===_n||!ee?!1:ee===xt?(A.peek(),Q()):H(A,!1)},X=Q();return A.resetPeek(),X}function V(A){g(A);const x=A.currentPeek()==="|";return A.resetPeek(),x}function H(A,x=!0){const B=(X=!1,ee="")=>{const ie=A.currentPeek();return ie==="{"||ie==="@"||!ie?X:ie==="|"?!(ee===_n||ee===xt):ie===_n?(A.peek(),B(!0,_n)):ie===xt?(A.peek(),B(!0,xt)):!0},Q=B();return x&&A.resetPeek(),Q}function j(A,x){const B=A.currentChar();return B===Yn?Yn:x(B)?(A.next(),B):null}function K(A){const x=A.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36}function F(A){return j(A,K)}function z(A){const x=A.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36||x===45}function $(A){return j(A,z)}function J(A){const x=A.charCodeAt(0);return x>=48&&x<=57}function U(A){return j(A,J)}function q(A){const x=A.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102}function te(A){return j(A,q)}function se(A){let x="",B="";for(;x=U(A);)B+=x;return B}function he(A){let x="";for(;;){const B=A.currentChar();if(B==="{"||B==="}"||B==="@"||B==="|"||!B)break;if(B===_n||B===xt)if(H(A))x+=B,A.next();else{if(V(A))break;x+=B,A.next()}else x+=B,A.next()}return x}function pe(A){v(A);let x="",B="";for(;x=$(A);)B+=x;const Q=A.currentChar();if(Q&&Q!=="}"&&Q!==Yn&&Q!==_n&&Q!==xt&&Q!==" "){const X=I(A);return f(Te.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,B+X),B+X}return A.currentChar()===Yn&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),B}function ye(A){v(A);let x="";return A.currentChar()==="-"?(A.next(),x+=`-${se(A)}`):x+=se(A),A.currentChar()===Yn&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Ce(A){return A!==Qh&&A!==xt}function Ae(A){v(A),m(A,"'");let x="",B="";for(;x=j(A,Ce);)x==="\\"?B+=ge(A):B+=x;const Q=A.currentChar();return Q===xt||Q===Yn?(f(Te.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),Q===xt&&(A.next(),m(A,"'")),B):(m(A,"'"),B)}function ge(A){const x=A.currentChar();switch(x){case"\\":case"'":return A.next(),`\\${x}`;case"u":return N(A,x,4);case"U":return N(A,x,6);default:return f(Te.UNKNOWN_ESCAPE_SEQUENCE,i(),0,x),""}}function N(A,x,B){m(A,x);let Q="";for(let X=0;X<B;X++){const ee=te(A);if(!ee){f(Te.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${x}${Q}${A.currentChar()}`);break}Q+=ee}return`\\${x}${Q}`}function M(A){return A!=="{"&&A!=="}"&&A!==_n&&A!==xt}function I(A){v(A);let x="",B="";for(;x=j(A,M);)B+=x;return B}function O(A){let x="",B="";for(;x=F(A);)B+=x;return B}function k(A){const x=B=>{const Q=A.currentChar();return Q==="{"||Q==="@"||Q==="|"||Q==="("||Q===")"||!Q||Q===_n?B:(B+=Q,A.next(),x(B))};return x("")}function w(A){v(A);const x=m(A,"|");return v(A),x}function P(A,x){let B=null;switch(A.currentChar()){case"{":return x.braceNest>=1&&f(Te.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),A.next(),B=h(x,2,"{"),v(A),x.braceNest++,B;case"}":return x.braceNest>0&&x.currentType===2&&f(Te.EMPTY_PLACEHOLDER,i(),0),A.next(),B=h(x,3,"}"),x.braceNest--,x.braceNest>0&&v(A),x.inLinked&&x.braceNest===0&&(x.inLinked=!1),B;case"@":return x.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),B=R(A,x)||p(x),x.braceNest=0,B;default:{let X=!0,ee=!0,ie=!0;if(V(A))return x.braceNest>0&&f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),B=h(x,1,w(A)),x.braceNest=0,x.inLinked=!1,B;if(x.braceNest>0&&(x.currentType===4||x.currentType===5||x.currentType===6))return f(Te.UNTERMINATED_CLOSING_BRACE,i(),0),x.braceNest=0,W(A,x);if(X=E(A,x))return B=h(x,4,pe(A)),v(A),B;if(ee=C(A,x))return B=h(x,5,ye(A)),v(A),B;if(ie=S(A,x))return B=h(x,6,Ae(A)),v(A),B;if(!X&&!ee&&!ie)return B=h(x,12,I(A)),f(Te.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,B.value),v(A),B;break}}return B}function R(A,x){const{currentType:B}=x;let Q=null;const X=A.currentChar();switch((B===7||B===8||B===11||B===9)&&(X===xt||X===_n)&&f(Te.INVALID_LINKED_FORMAT,i(),0),X){case"@":return A.next(),Q=h(x,7,"@"),x.inLinked=!0,Q;case".":return v(A),A.next(),h(x,8,".");case":":return v(A),A.next(),h(x,9,":");default:return V(A)?(Q=h(x,1,w(A)),x.braceNest=0,x.inLinked=!1,Q):_(A,x)||D(A,x)?(v(A),R(A,x)):T(A,x)?(v(A),h(x,11,O(A))):Y(A,x)?(v(A),X==="{"?P(A,x)||Q:h(x,10,k(A))):(B===7&&f(Te.INVALID_LINKED_FORMAT,i(),0),x.braceNest=0,x.inLinked=!1,W(A,x))}}function W(A,x){let B={type:13};if(x.braceNest>0)return P(A,x)||p(x);if(x.inLinked)return R(A,x)||p(x);switch(A.currentChar()){case"{":return P(A,x)||p(x);case"}":return f(Te.UNBALANCED_CLOSING_BRACE,i(),0),A.next(),h(x,3,"}");case"@":return R(A,x)||p(x);default:{if(V(A))return B=h(x,1,w(A)),x.braceNest=0,x.inLinked=!1,B;if(H(A))return h(x,0,he(A));break}}return B}function G(){const{currentType:A,offset:x,startLoc:B,endLoc:Q}=a;return a.lastType=A,a.lastOffset=x,a.lastStartLoc=B,a.lastEndLoc=Q,a.offset=o(),a.startLoc=i(),r.currentChar()===Yn?h(a,13):W(r,a)}return{nextToken:G,currentOffset:o,currentPosition:i,context:u}}const F6="parser",z6=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function U6(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 H6(t={}){const e=t.location!==!1,{onError:n}=t;function r(y,b,E,C,...S){const _=y.currentPosition();if(_.offset+=C,_.column+=C,n){const T=e?Tu(E,_):null,D=yi(b,T,{domain:F6,args:S});n(D)}}function o(y,b,E){const C={type:y};return e&&(C.start=b,C.end=b,C.loc={start:E,end:E}),C}function i(y,b,E,C){e&&(y.end=b,y.loc&&(y.loc.end=E))}function s(y,b){const E=y.context(),C=o(3,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function c(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:S}=E,_=o(5,C,S);return _.index=parseInt(b,10),y.nextToken(),i(_,y.currentOffset(),y.currentPosition()),_}function a(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:S}=E,_=o(4,C,S);return _.key=b,y.nextToken(),i(_,y.currentOffset(),y.currentPosition()),_}function u(y,b){const E=y.context(),{lastOffset:C,lastStartLoc:S}=E,_=o(9,C,S);return _.value=b.replace(z6,U6),y.nextToken(),i(_,y.currentOffset(),y.currentPosition()),_}function d(y){const b=y.nextToken(),E=y.context(),{lastOffset:C,lastStartLoc:S}=E,_=o(8,C,S);return b.type!==11?(r(y,Te.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),_.value="",i(_,C,S),{nextConsumeToken:b,node:_}):(b.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,Nn(b)),_.value=b.value||"",i(_,y.currentOffset(),y.currentPosition()),{node:_})}function f(y,b){const E=y.context(),C=o(7,E.offset,E.startLoc);return C.value=b,i(C,y.currentOffset(),y.currentPosition()),C}function h(y){const b=y.context(),E=o(6,b.offset,b.startLoc);let C=y.nextToken();if(C.type===8){const S=d(y);E.modifier=S.node,C=S.nextConsumeToken||y.nextToken()}switch(C.type!==9&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),C=y.nextToken(),C.type===2&&(C=y.nextToken()),C.type){case 10:C.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=f(y,C.value||"");break;case 4:C.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=a(y,C.value||"");break;case 5:C.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=c(y,C.value||"");break;case 6:C.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(C)),E.key=u(y,C.value||"");break;default:{r(y,Te.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const S=y.context(),_=o(7,S.offset,S.startLoc);return _.value="",i(_,S.offset,S.startLoc),E.key=_,i(E,S.offset,S.startLoc),{nextConsumeToken:C,node:E}}}return i(E,y.currentOffset(),y.currentPosition()),{node:E}}function p(y){const b=y.context(),E=b.currentType===1?y.currentOffset():b.offset,C=b.currentType===1?b.endLoc:b.startLoc,S=o(2,E,C);S.items=[];let _=null;do{const Y=_||y.nextToken();switch(_=null,Y.type){case 0:Y.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(Y)),S.items.push(s(y,Y.value||""));break;case 5:Y.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(Y)),S.items.push(c(y,Y.value||""));break;case 4:Y.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(Y)),S.items.push(a(y,Y.value||""));break;case 6:Y.value==null&&r(y,Te.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Nn(Y)),S.items.push(u(y,Y.value||""));break;case 7:{const V=h(y);S.items.push(V.node),_=V.nextConsumeToken||null;break}}}while(b.currentType!==13&&b.currentType!==1);const T=b.currentType===1?b.lastOffset:y.currentOffset(),D=b.currentType===1?b.lastEndLoc:y.currentPosition();return i(S,T,D),S}function m(y,b,E,C){const S=y.context();let _=C.items.length===0;const T=o(1,b,E);T.cases=[],T.cases.push(C);do{const D=p(y);_||(_=D.items.length===0),T.cases.push(D)}while(S.currentType!==13);return _&&r(y,Te.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(T,y.currentOffset(),y.currentPosition()),T}function g(y){const b=y.context(),{offset:E,startLoc:C}=b,S=p(y);return b.currentType===13?S:m(y,E,C,S)}function v(y){const b=$6(y,vt({},t)),E=b.context(),C=o(0,E.offset,E.startLoc);return e&&C.loc&&(C.loc.source=y),C.body=g(b),t.onCacheKey&&(C.cacheKey=t.onCacheKey(y)),E.currentType!==13&&r(b,Te.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,y[E.offset]||""),i(C,b.currentOffset(),b.currentPosition()),C}return{parse:v}}function Nn(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>10?e.slice(0,9)+"…":e}function j6(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Zh(t,e){for(let n=0;n<t.length;n++)of(t[n],e)}function of(t,e){switch(t.type){case 1:Zh(t.cases,e),e.helper("plural");break;case 2:Zh(t.items,e);break;case 6:{of(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 W6(t,e={}){const n=j6(t);n.helper("normalize"),t.body&&of(t.body,n);const r=n.context();t.helpers=Array.from(r.helpers)}function K6(t){const e=t.body;return e.type===2?Jh(e):e.cases.forEach(n=>Jh(n)),t}function Jh(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=rf(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 Y6="minifier";function jo(t){switch(t.t=t.type,t.type){case 0:{const e=t;jo(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++)jo(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++)jo(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;jo(e.key),e.k=e.key,delete e.key,e.modifier&&(jo(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:if(process.env.NODE_ENV!=="production")throw yi(Te.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Y6,args:[t.type]})}delete t.type}const G6="parser";function Q6(t,e){const{filename:n,breakLineCode:r,needIndent:o}=e,i=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:o,indentLevel:0};i&&t.loc&&(s.source=t.loc.source);const c=()=>s;function a(g,v){s.code+=g}function u(g,v=!0){const y=v?r:"";a(o?y+" ".repeat(g):y)}function d(g=!0){const v=++s.indentLevel;g&&u(v)}function f(g=!0){const v=--s.indentLevel;g&&u(v)}function h(){u(s.indentLevel)}return{context:c,push:a,indent:d,deindent:f,newline:h,helper:g=>`_${g}`,needIndent:()=>s.needIndent}}function Z6(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),oi(t,e.key),e.modifier?(t.push(", "),oi(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function J6(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&&(oi(t,e.items[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}function X6(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&&(oi(t,e.cases[i]),i!==o-1);i++)t.push(", ");t.deindent(r()),t.push("])")}}function q6(t,e){e.body?oi(t,e.body):t.push("null")}function oi(t,e){const{helper:n}=t;switch(e.type){case 0:q6(t,e);break;case 1:X6(t,e);break;case 2:J6(t,e);break;case 6:Z6(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:if(process.env.NODE_ENV!=="production")throw yi(Te.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:G6,args:[e.type]})}}const eC=(t,e={})=>{const n=be(e.mode)?e.mode:"normal",r=be(e.filename)?e.filename:"message.intl";e.sourceMap;const o=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
58
58
  `,i=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],c=Q6(t,{filename:r,breakLineCode:o,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),s.length>0&&(c.push(`const { ${rf(s.map(d=>`${d}: _${d}`),", ")} } = ctx`),c.newline()),c.push("return "),oi(c,t),c.deindent(i),c.push("}"),delete t.helpers;const{code:a,map:u}=c.context();return{ast:t,code:a,map:u?u.toJSON():void 0}};function tC(t,e={}){const n=vt({},e),r=!!n.jit,o=!!n.minify,i=n.optimize==null?!0:n.optimize,c=H6(n).parse(t);return r?(i&&K6(c),o&&jo(c),{ast:c,code:""}):(W6(c,n),eC(c,n))}function nC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ro().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ro().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function wn(t){return Ue(t)&&sf(t)===0&&(En(t,"b")||En(t,"body"))}const pg=["b","body"];function rC(t){return Hr(t,pg)}const mg=["c","cases"];function oC(t){return Hr(t,mg,[])}const gg=["s","static"];function iC(t){return Hr(t,gg)}const vg=["i","items"];function sC(t){return Hr(t,vg,[])}const yg=["t","type"];function sf(t){return Hr(t,yg)}const bg=["v","value"];function ea(t,e){const n=Hr(t,bg);if(n!=null)return n;throw is(e)}const Cg=["m","modifier"];function aC(t){return Hr(t,Cg)}const Eg=["k","key"];function lC(t){const e=Hr(t,Eg);if(e)return e;throw is(6)}function Hr(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(En(t,o)&&t[o]!=null)return t[o]}return n}const kg=[...pg,...mg,...gg,...vg,...Eg,...Cg,...bg,...yg];function is(t){return new Error(`unhandled node type: ${t}`)}function Ic(t){return n=>cC(n,t)}function cC(t,e){const n=rC(e);if(n==null)throw is(0);if(sf(n)===1){const i=oC(n);return t.plural(i.reduce((s,c)=>[...s,Xh(t,c)],[]))}else return Xh(t,n)}function Xh(t,e){const n=iC(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=sC(e).reduce((o,i)=>[...o,Iu(t,i)],[]);return t.normalize(r)}}function Iu(t,e){const n=sf(e);switch(n){case 3:return ea(e,n);case 9:return ea(e,n);case 4:{const r=e;if(En(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(En(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw is(n)}case 5:{const r=e;if(En(r,"i")&&gt(r.i))return t.interpolate(t.list(r.i));if(En(r,"index")&&gt(r.index))return t.interpolate(t.list(r.index));throw is(n)}case 6:{const r=e,o=aC(r),i=lC(r);return t.linked(Iu(t,i),o?Iu(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 uC="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function dC(t,e){e&&M6(t)&&Fn(Ql(uC,{source:t}))}const fC=t=>t;let ta=je();function hC(t,e={}){let n=!1;const r=e.onError||N6;return e.onError=o=>{n=!0,r(o)},{...tC(t,e),detectError:n}}function pC(t,e){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&be(t)){const n=ot(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&dC(t,n);const o=(e.onCacheKey||fC)(t),i=ta[o];if(i)return i;const{ast:s,detectError:c}=hC(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),a=Ic(s);return c?a:ta[o]=a}else{if(process.env.NODE_ENV!=="production"&&!wn(t))return Fn(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),(()=>t);const n=t.cacheKey;if(n){const r=ta[n];return r||(ta[n]=Ic(t))}else return Ic(t)}}let ss=null;function mC(t){ss=t}function gC(t,e,n){ss&&ss.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const vC=yC("function:translate");function yC(t){return e=>ss&&ss.emit(t,e)}const _t={INVALID_ARGUMENT:I6,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},bC=24;function er(t){return yi(t,null,process.env.NODE_ENV!=="production"?{messages:CC}:void 0)}const CC={[_t.INVALID_ARGUMENT]:"Invalid arguments",[_t.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[_t.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[_t.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[_t.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[_t.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[_t.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function af(t,e){return e.locale!=null?qh(e.locale):qh(t.locale)}let _c;function qh(t){if(be(t))return t;if(Ze(t)){if(t.resolvedOnce&&_c!=null)return _c;if(t.constructor.name==="Function"){const e=t();if(w6(e))throw er(_t.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _c=e}else throw er(_t.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw er(_t.NOT_SUPPORT_LOCALE_TYPE)}function EC(t,e,n){return[...new Set([n,...it(e)?e:Ue(e)?Object.keys(e):be(e)?[e]:[n]])]}function wg(t,e,n){const r=be(n)?n:Wa,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;it(s);)s=ep(i,s,e);const c=it(e)||!ze(e)?e:e.default?e.default:null;s=be(c)?[c]:c,it(s)&&ep(i,s,!1),o.__localeChainCache.set(r,i)}return i}function ep(t,e,n){let r=!0;for(let o=0;o<e.length&&ot(r);o++){const i=e[o];be(i)&&(r=kC(t,e[o],n))}return r}function kC(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=wC(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function wC(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),(it(n)||ze(n))&&n[o]&&(r=n[o])}return r}const jr=[];jr[0]={w:[0],i:[3,0],"[":[4],o:[7]};jr[1]={w:[1],".":[2],"[":[4],o:[7]};jr[2]={w:[2],i:[3,0],0:[3,0]};jr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};jr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};jr[5]={"'":[4,0],o:8,l:[5,0]};jr[6]={'"':[4,0],o:8,l:[6,0]};const SC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function AC(t){return SC.test(t)}function xC(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 TC(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 IC(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:AC(e)?xC(e):"*"+e}function _C(t){const e=[];let n=-1,r=0,o=0,i,s,c,a,u,d,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=IC(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=TC(i),f=jr[r],u=f[a]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=h[u[1]],d&&(c=i,d()===!1))))return;if(r===7)return e}}const tp=new Map;function NC(t,e){return Ue(t)?t[e]:null}function OC(t,e){if(!Ue(t))return null;let n=tp.get(e);if(n||(n=_C(e),n&&tp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(kg.includes(s)&&wn(o))return null;const c=o[s];if(c===void 0||Ze(o))return null;o=c,i++}return o}const zt={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},MC=8,LC={[zt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[zt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[zt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[zt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[zt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[zt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[zt.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 wo(t,...e){return Ql(LC[t],...e)}const DC="11.2.8",Jl=-1,Wa="en-US",Ka="",np=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function PC(){return{upper:(t,e)=>e==="text"&&be(t)?t.toUpperCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&be(t)?t.toLowerCase():e==="vnode"&&Ue(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&be(t)?np(t):e==="vnode"&&Ue(t)&&"__v_isVNode"in t?np(t.children):t}}let Sg;function BC(t){Sg=t}let Ag;function RC(t){Ag=t}let xg;function VC(t){xg=t}let Tg=null;const $C=t=>{Tg=t},FC=()=>Tg;let Ig=null;const rp=t=>{Ig=t},zC=()=>Ig;let op=0;function UC(t={}){const e=Ze(t.onWarn)?t.onWarn:Fn,n=be(t.version)?t.version:DC,r=be(t.locale)||Ze(t.locale)?t.locale:Wa,o=Ze(r)?Wa:r,i=it(t.fallbackLocale)||ze(t.fallbackLocale)||be(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=ze(t.messages)?t.messages:Nc(o),c=ze(t.datetimeFormats)?t.datetimeFormats:Nc(o),a=ze(t.numberFormats)?t.numberFormats:Nc(o),u=vt(je(),t.modifiers,PC()),d=t.pluralRules||je(),f=Ze(t.missing)?t.missing:null,h=ot(t.missingWarn)||ja(t.missingWarn)?t.missingWarn:!0,p=ot(t.fallbackWarn)||ja(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,v=Ze(t.postTranslation)?t.postTranslation:null,y=ze(t.processor)?t.processor:null,b=ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0,E=!!t.escapeParameter,C=Ze(t.messageCompiler)?t.messageCompiler:Sg;process.env.NODE_ENV!=="production"&&Ze(t.messageCompiler)&&m6(wo(zt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const S=Ze(t.messageResolver)?t.messageResolver:Ag||NC,_=Ze(t.localeFallbacker)?t.localeFallbacker:xg||EC,T=Ue(t.fallbackContext)?t.fallbackContext:void 0,D=t,Y=Ue(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,V=Ue(D.__numberFormatters)?D.__numberFormatters:new Map,H=Ue(D.__meta)?D.__meta:{};op++;const j={version:n,cid:op,locale:r,fallbackLocale:i,messages:s,modifiers:u,pluralRules:d,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:v,processor:y,warnHtmlMessage:b,escapeParameter:E,messageCompiler:C,messageResolver:S,localeFallbacker:_,fallbackContext:T,onWarn:e,__meta:H};return j.datetimeFormats=c,j.numberFormats=a,j.__datetimeFormatters=Y,j.__numberFormatters=V,process.env.NODE_ENV!=="production"&&(j.__v_emitter=D.__v_emitter!=null?D.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&gC(j,n,H),j}const Nc=t=>({[t]:je()});function Xl(t,e){return t instanceof RegExp?t.test(e):t}function _g(t,e){return t instanceof RegExp?t.test(e):t}function lf(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 be(c)?c:e}else return process.env.NODE_ENV!=="production"&&_g(r,e)&&s(wo(zt.NOT_FOUND_KEY,{key:e,locale:n})),e}function xi(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function Ng(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function HC(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(Ng(t,e[r]))return!0;return!1}const ip=typeof Intl<"u",Og={dateTimeFormat:ip&&typeof Intl.DateTimeFormat<"u",numberFormat:ip&&typeof Intl.NumberFormat<"u"};function sp(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!Og.dateTimeFormat)return i(wo(zt.CANNOT_FORMAT_DATE)),Ka;const[a,u,d,f]=_u(...e),h=ot(d.missingWarn)?d.missingWarn:t.missingWarn,p=ot(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,m=!!d.part,g=af(t,d),v=s(t,o,g);if(!be(a)||a==="")return new Intl.DateTimeFormat(g,f).format(u);let y={},b,E=null,C=g,S=null;const _="datetime format";for(let Y=0;Y<v.length;Y++){if(b=S=v[Y],process.env.NODE_ENV!=="production"&&g!==b&&Xl(p,a)&&i(wo(zt.FALLBACK_TO_DATE_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const V=t.__v_emitter;V&&V.emit("fallback",{type:_,key:a,from:C,to:S,groupId:`${_}:${a}`})}if(y=n[b]||{},E=y[a],ze(E))break;lf(t,a,b,h,_),C=S}if(!ze(E)||!be(b))return r?Jl:a;let T=`${b}__${a}`;Zl(f)||(T=`${T}__${JSON.stringify(f)}`);let D=c.get(T);return D||(D=new Intl.DateTimeFormat(b,vt({},E,f)),c.set(T,D)),m?D.formatToParts(u):D.format(u)}const Mg=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function _u(...t){const[e,n,r,o]=t,i=je();let s=je(),c;if(be(e)){const a=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!a)throw er(_t.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{c.toISOString()}catch{throw er(_t.INVALID_ISO_DATE_ARGUMENT)}}else if(b6(e)){if(isNaN(e.getTime()))throw er(_t.INVALID_DATE_ARGUMENT);c=e}else if(gt(e))c=e;else throw er(_t.INVALID_ARGUMENT);return be(n)?i.key=n:ze(n)&&Object.keys(n).forEach(a=>{Mg.includes(a)?s[a]=n[a]:i[a]=n[a]}),be(r)?i.locale=r:ze(r)&&(s=r),ze(o)&&(s=o),[i.key||"",c,i,s]}function ap(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function lp(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!Og.numberFormat)return i(wo(zt.CANNOT_FORMAT_NUMBER)),Ka;const[a,u,d,f]=Nu(...e),h=ot(d.missingWarn)?d.missingWarn:t.missingWarn,p=ot(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,m=!!d.part,g=af(t,d),v=s(t,o,g);if(!be(a)||a==="")return new Intl.NumberFormat(g,f).format(u);let y={},b,E=null,C=g,S=null;const _="number format";for(let Y=0;Y<v.length;Y++){if(b=S=v[Y],process.env.NODE_ENV!=="production"&&g!==b&&Xl(p,a)&&i(wo(zt.FALLBACK_TO_NUMBER_FORMAT,{key:a,target:b})),process.env.NODE_ENV!=="production"&&g!==b){const V=t.__v_emitter;V&&V.emit("fallback",{type:_,key:a,from:C,to:S,groupId:`${_}:${a}`})}if(y=n[b]||{},E=y[a],ze(E))break;lf(t,a,b,h,_),C=S}if(!ze(E)||!be(b))return r?Jl:a;let T=`${b}__${a}`;Zl(f)||(T=`${T}__${JSON.stringify(f)}`);let D=c.get(T);return D||(D=new Intl.NumberFormat(b,vt({},E,f)),c.set(T,D)),m?D.formatToParts(u):D.format(u)}const Lg=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nu(...t){const[e,n,r,o]=t,i=je();let s=je();if(!gt(e))throw er(_t.INVALID_ARGUMENT);const c=e;return be(n)?i.key=n:ze(n)&&Object.keys(n).forEach(a=>{Lg.includes(a)?s[a]=n[a]:i[a]=n[a]}),be(r)?i.locale=r:ze(r)&&(s=r),ze(o)&&(s=o),[i.key||"",c,i,s]}function cp(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const jC=t=>t,WC=t=>"",KC="text",YC=t=>t.length===0?"":rf(t),GC=S6;function up(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=gt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(gt(t.named.count)||gt(t.named.n))?gt(t.named.count)?t.named.count:gt(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=Ue(t.pluralRules)&&be(e)&&Ze(t.pluralRules[e])?t.pluralRules[e]:up,o=Ue(t.pluralRules)&&be(e)&&Ze(t.pluralRules[e])?up:void 0,i=y=>y[r(n,y.length,o)],s=t.list||[],c=y=>s[y],a=t.named||je();gt(t.pluralIndex)&&ZC(n,a);const u=y=>a[y];function d(y,b){const E=Ze(t.messages)?t.messages(y,!!b):Ue(t.messages)?t.messages[y]:!1;return E||(t.parent?t.parent.message(y):WC)}const f=y=>t.modifiers?t.modifiers[y]:jC,h=ze(t.processor)&&Ze(t.processor.normalize)?t.processor.normalize:YC,p=ze(t.processor)&&Ze(t.processor.interpolate)?t.processor.interpolate:GC,m=ze(t.processor)&&be(t.processor.type)?t.processor.type:KC,v={list:c,named:u,plural:i,linked:(y,...b)=>{const[E,C]=b;let S="text",_="";b.length===1?Ue(E)?(_=E.modifier||_,S=E.type||S):be(E)&&(_=E||_):b.length===2&&(be(E)&&(_=E||_),be(C)&&(S=C||S));const T=d(y,!0)(v),D=S==="vnode"&&it(T)&&_?T[0]:T;return _?f(_)(D,S):D},message:d,type:m,interpolate:p,normalize:h,values:vt(je(),s,a)};return v}const dp=()=>"",ln=t=>Ze(t);function fp(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[a,u]=Ou(...e),d=ot(u.missingWarn)?u.missingWarn:t.missingWarn,f=ot(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,h=ot(u.escapeParameter)?u.escapeParameter:t.escapeParameter,p=!!u.resolvedMessage,m=be(u.default)||ot(u.default)?ot(u.default)?i?a:()=>a:u.default:n?i?a:()=>a:null,g=n||m!=null&&(be(m)||Ze(m)),v=af(t,u);h&&XC(u);let[y,b,E]=p?[a,v,c[v]||je()]:Dg(t,a,v,s,f,d),C=y,S=a;if(!p&&!(be(C)||wn(C)||ln(C))&&g&&(C=m,S=C),!p&&(!(be(C)||wn(C)||ln(C))||!be(b)))return o?Jl:a;if(process.env.NODE_ENV!=="production"&&be(C)&&t.messageCompiler==null)return Fn(`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 T=()=>{_=!0},D=ln(C)?C:Pg(t,a,b,C,S,T);if(_)return C;const Y=n9(t,b,E,u),V=JC(Y),H=qC(t,D,V);let j=r?r(H,a):H;if(h&&be(j)&&(j=E6(j)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const K={timestamp:Date.now(),key:be(a)?a:ln(C)?C.key:"",locale:b||(ln(C)?C.locale:""),format:be(C)?C:ln(C)?C.source:"",message:j};K.meta=vt({},t.__meta,FC()||{}),vC(K)}return j}function XC(t){it(t.list)?t.list=t.list.map(e=>be(e)?Kh(e):e):Ue(t.named)&&Object.keys(t.named).forEach(e=>{be(t.named[e])&&(t.named[e]=Kh(t.named[e]))})}function Dg(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:a,localeFallbacker:u}=t,d=u(t,r,n);let f=je(),h,p=null,m=n,g=null;const v="translate";for(let y=0;y<d.length;y++){if(h=g=d[y],process.env.NODE_ENV!=="production"&&n!==h&&!Ng(n,h)&&Xl(o,e)&&c(wo(zt.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const S=t.__v_emitter;S&&S.emit("fallback",{type:v,key:e,from:m,to:g,groupId:`${v}:${e}`})}f=s[h]||je();let b=null,E,C;if(process.env.NODE_ENV!=="production"&&sr&&(b=window.performance.now(),E="intlify-message-resolve-start",C="intlify-message-resolve-end",Zt&&Zt(E)),(p=a(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&sr){const S=window.performance.now(),_=t.__v_emitter;_&&b&&p&&_.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:S-b,groupId:`${v}:${e}`}),E&&C&&Zt&&ko&&(Zt(C),ko("intlify message resolve",E,C))}if(be(p)||wn(p)||ln(p))break;if(!HC(h,d)){const S=lf(t,e,h,i,v);S!==e&&(p=S)}m=g}return[p,h,f]}function Pg(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,u,d;process.env.NODE_ENV!=="production"&&sr&&(a=window.performance.now(),u="intlify-message-compilation-start",d="intlify-message-compilation-end",Zt&&Zt(u));const f=s(r,e9(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&sr){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}`}),u&&d&&Zt&&ko&&(Zt(d),ko("intlify message compilation",u,d))}return f.locale=n,f.key=e,f.source=r,f}function qC(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&sr&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",Zt&&Zt(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&sr){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&&Zt&&ko&&(Zt(i),ko("intlify message evaluation",o,i))}return s}function Ou(...t){const[e,n,r]=t,o=je();if(!be(e)&&!gt(e)&&!ln(e)&&!wn(e))throw er(_t.INVALID_ARGUMENT);const i=gt(e)?String(e):(ln(e),e);return gt(n)?o.plural=n:be(n)?o.default=n:ze(n)&&!Zl(n)?o.named=n:it(n)&&(o.list=n),gt(r)?o.plural=r:be(r)?o.default=r:ze(r)&&vt(o,r),[i,o]}function e9(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=t9(r),a=`Message compilation error: ${s.message}`,u=s.location&&c&&A6(c,s.location.start.offset,s.location.end.offset),d=t.__v_emitter;d&&c&&d.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(u?`${a}
59
59
  ${u}`:a)}else throw s},onCacheKey:s=>v6(e,n,s)}}function t9(t){if(be(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function n9(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:a,missingWarn:u,fallbackContext:d}=t,h={locale:e,modifiers:o,pluralRules:i,messages:(p,m)=>{let g=s(n,p);if(g==null&&(d||m)){const[,,v]=Dg(d||t,p,e,c,a,u);g=s(v,p)}if(be(g)||wn(g)){let v=!1;const b=Pg(t,p,e,g,p,()=>{v=!0});return v?dp:b}else return ln(g)?g:dp}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),gt(r.plural)&&(h.pluralIndex=r.plural),h}nC();const r9="11.2.8";function o9(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ro().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ro().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ro().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ro().__INTLIFY_PROD_DEVTOOLS__=!1)}const kt={UNEXPECTED_RETURN_TYPE:bC,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function as(t,...e){return yi(t,null,process.env.NODE_ENV!=="production"?{messages:i9,args:e}:void 0)}const i9={[kt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[kt.INVALID_ARGUMENT]:"Invalid argument",[kt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[kt.NOT_INSTALLED]:"Need to install with `app.use` function",[kt.UNEXPECTED_ERROR]:"Unexpected error",[kt.REQUIRED_VALUE]:"Required in value: {0}",[kt.INVALID_VALUE]:"Invalid value",[kt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[kt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[kt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[kt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Mu=lr("__translateVNode"),Lu=lr("__datetimeParts"),Du=lr("__numberParts"),Pu=lr("__enableEmitter"),Bu=lr("__disableEmitter"),s9=lr("__setPluralRules"),Bg=lr("__injectWithOption"),Ru=lr("__dispose"),Pn={FALLBACK_TO_ROOT:MC,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12,DUPLICATE_USE_I18N_CALLING:13},a9={[Pn.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Pn.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Pn.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Pn.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
60
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Pn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Pn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ya(t,...e){return Ql(a9[t],...e)}function ls(t){if(!Ue(t)||wn(t))return t;for(const e in t)if(En(t,e))if(!e.includes("."))Ue(t[e])&&ls(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]]=je()),!Ue(o[n[s]])){process.env.NODE_ENV!=="production"&&Fn(Ya(Pn.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(wn(o)?kg.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!wn(o)){const s=o[n[r]];Ue(s)&&ls(s)}}return t}function Rg(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=ze(n)?n:it(r)?je():{[t]:je()};if(it(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:u}=c;a?(s[a]=s[a]||je(),xa(u,s[a])):xa(u,s)}else be(c)&&xa(JSON.parse(c),s)}),o==null&&i)for(const c in s)En(s,c)&&ls(s[c]);return s}function Vg(t){return t.type}function l9(t,e,n){let r=Ue(e.messages)?e.messages:je();"__i18nGlobal"in n&&(r=Rg(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ue(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ue(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function hp(t){return l.createVNode(l.Text,null,t,0)}function cf(){const t="currentInstance";return t in xc?xc[t]:xc.getCurrentInstance()}const pp="__INTLIFY_META__",mp=()=>[],c9=()=>!1;let gp=0;function vp(t){return((e,n,r,o)=>t(n,r,cf()||void 0,o))}const u9=()=>{const t=cf();let e=null;return t&&(e=Vg(t)[pp])?{[pp]:e}:null};function d9(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,i=sr?l.ref:l.shallowRef;let s=ot(t.inheritLocale)?t.inheritLocale:!0;const c=i(e&&s?e.locale.value:be(t.locale)?t.locale:Wa),a=i(e&&s?e.fallbackLocale.value:be(t.fallbackLocale)||it(t.fallbackLocale)||ze(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),u=i(Rg(c.value,t)),d=i(ze(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=i(ze(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=e?e.missingWarn:ot(t.missingWarn)||ja(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:ot(t.fallbackWarn)||ja(t.fallbackWarn)?t.fallbackWarn:!0,m=e?e.fallbackRoot:ot(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,v=Ze(t.missing)?t.missing:null,y=Ze(t.missing)?vp(t.missing):null,b=Ze(t.postTranslation)?t.postTranslation:null,E=e?e.warnHtmlMessage:ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const S=e?e.modifiers:ze(t.modifiers)?t.modifiers:{};let _=t.pluralRules||e&&e.pluralRules,T;T=(()=>{r&&rp(null);const Z={version:r9,locale:c.value,fallbackLocale:a.value,messages:u.value,modifiers:S,pluralRules:_,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:C,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=d.value,Z.numberFormats=f.value,Z.__datetimeFormatters=ze(T)?T.__datetimeFormatters:void 0,Z.__numberFormatters=ze(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=ze(T)?T.__v_emitter:void 0);const ne=UC(Z);return r&&rp(ne),ne})(),xi(T,c.value,a.value);function Y(){return[c.value,a.value,u.value,d.value,f.value]}const V=l.computed({get:()=>c.value,set:Z=>{T.locale=Z,c.value=Z}}),H=l.computed({get:()=>a.value,set:Z=>{T.fallbackLocale=Z,a.value=Z,xi(T,c.value,Z)}}),j=l.computed(()=>u.value),K=l.computed(()=>d.value),F=l.computed(()=>f.value);function z(){return Ze(b)?b:null}function $(Z){b=Z,T.postTranslation=Z}function J(){return v}function U(Z){Z!==null&&(y=vp(Z)),v=Z,T.missing=y}function q(Z,ne){return Z!=="translate"||!ne.resolvedMessage}const te=(Z,ne,we,Ie,Ne,Xe)=>{Y();let ht;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=e?zC():void 0),ht=Z(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=void 0)}if(we!=="translate exists"&&gt(ht)&&ht===Jl||we==="translate exists"&&!ht){const[qe,fr]=ne();if(process.env.NODE_ENV!=="production"&&e&&be(qe)&&q(we,fr)&&(m&&(Xl(p,qe)||_g(h,qe))&&Fn(Ya(Pn.FALLBACK_TO_ROOT,{key:qe,type:we})),process.env.NODE_ENV!=="production")){const{__v_emitter:gn}=T;gn&&m&&gn.emit("fallback",{type:we,key:qe,to:"global",groupId:`${we}:${qe}`})}return e&&m?Ie(e):Ne(qe)}else{if(Xe(ht))return ht;throw as(kt.UNEXPECTED_RETURN_TYPE)}};function se(...Z){return te(ne=>Reflect.apply(fp,null,[ne,...Z]),()=>Ou(...Z),"translate",ne=>Reflect.apply(ne.t,ne,[...Z]),ne=>ne,ne=>be(ne))}function he(...Z){const[ne,we,Ie]=Z;if(Ie&&!Ue(Ie))throw as(kt.INVALID_ARGUMENT);return se(ne,we,vt({resolvedMessage:!0},Ie||{}))}function pe(...Z){return te(ne=>Reflect.apply(sp,null,[ne,...Z]),()=>_u(...Z),"datetime format",ne=>Reflect.apply(ne.d,ne,[...Z]),()=>Ka,ne=>be(ne)||it(ne))}function ye(...Z){return te(ne=>Reflect.apply(lp,null,[ne,...Z]),()=>Nu(...Z),"number format",ne=>Reflect.apply(ne.n,ne,[...Z]),()=>Ka,ne=>be(ne)||it(ne))}function Ce(Z){return Z.map(ne=>be(ne)||gt(ne)||ot(ne)?hp(String(ne)):ne)}const ge={normalize:Ce,interpolate:Z=>Z,type:"vnode"};function N(...Z){return te(ne=>{let we;const Ie=ne;try{Ie.processor=ge,we=Reflect.apply(fp,null,[Ie,...Z])}finally{Ie.processor=null}return we},()=>Ou(...Z),"translate",ne=>ne[Mu](...Z),ne=>[hp(ne)],ne=>it(ne))}function M(...Z){return te(ne=>Reflect.apply(lp,null,[ne,...Z]),()=>Nu(...Z),"number format",ne=>ne[Du](...Z),mp,ne=>be(ne)||it(ne))}function I(...Z){return te(ne=>Reflect.apply(sp,null,[ne,...Z]),()=>_u(...Z),"datetime format",ne=>ne[Lu](...Z),mp,ne=>be(ne)||it(ne))}function O(Z){_=Z,T.pluralRules=_}function k(Z,ne){return te(()=>{if(!Z)return!1;const we=be(ne)?ne:c.value,Ie=R(we),Ne=T.messageResolver(Ie,Z);return wn(Ne)||ln(Ne)||be(Ne)},()=>[Z],"translate exists",we=>Reflect.apply(we.te,we,[Z,ne]),c9,we=>ot(we))}function w(Z){let ne=null;const we=wg(T,a.value,c.value);for(let Ie=0;Ie<we.length;Ie++){const Ne=u.value[we[Ie]]||{},Xe=T.messageResolver(Ne,Z);if(Xe!=null){ne=Xe;break}}return ne}function P(Z){const ne=w(Z);return ne??(e?e.tm(Z)||{}:{})}function R(Z){return u.value[Z]||{}}function W(Z,ne){if(o){const we={[Z]:ne};for(const Ie in we)En(we,Ie)&&ls(we[Ie]);ne=we[Z]}u.value[Z]=ne,T.messages=u.value}function G(Z,ne){u.value[Z]=u.value[Z]||{};const we={[Z]:ne};if(o)for(const Ie in we)En(we,Ie)&&ls(we[Ie]);ne=we[Z],xa(ne,u.value[Z]),T.messages=u.value}function A(Z){return d.value[Z]||{}}function x(Z,ne){d.value[Z]=ne,T.datetimeFormats=d.value,ap(T,Z,ne)}function B(Z,ne){d.value[Z]=vt(d.value[Z]||{},ne),T.datetimeFormats=d.value,ap(T,Z,ne)}function Q(Z){return f.value[Z]||{}}function X(Z,ne){f.value[Z]=ne,T.numberFormats=f.value,cp(T,Z,ne)}function ee(Z,ne){f.value[Z]=vt(f.value[Z]||{},ne),T.numberFormats=f.value,cp(T,Z,ne)}gp++,e&&sr&&(l.watch(e.locale,Z=>{s&&(c.value=Z,T.locale=Z,xi(T,c.value,a.value))}),l.watch(e.fallbackLocale,Z=>{s&&(a.value=Z,T.fallbackLocale=Z,xi(T,c.value,a.value))}));const ie={id:gp,locale:V,fallbackLocale:H,get inheritLocale(){return s},set inheritLocale(Z){s=Z,Z&&e&&(c.value=e.locale.value,a.value=e.fallbackLocale.value,xi(T,c.value,a.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:j,get modifiers(){return S},get pluralRules(){return _||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(Z){h=Z,T.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(Z){p=Z,T.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(Z){m=Z},get fallbackFormat(){return g},set fallbackFormat(Z){g=Z,T.fallbackFormat=g},get warnHtmlMessage(){return E},set warnHtmlMessage(Z){E=Z,T.warnHtmlMessage=Z},get escapeParameter(){return C},set escapeParameter(Z){C=Z,T.escapeParameter=Z},t:se,getLocaleMessage:R,setLocaleMessage:W,mergeLocaleMessage:G,getPostTranslationHandler:z,setPostTranslationHandler:$,getMissingHandler:J,setMissingHandler:U,[s9]:O};return ie.datetimeFormats=K,ie.numberFormats=F,ie.rt=he,ie.te=k,ie.tm=P,ie.d=pe,ie.n=ye,ie.getDateTimeFormat=A,ie.setDateTimeFormat=x,ie.mergeDateTimeFormat=B,ie.getNumberFormat=Q,ie.setNumberFormat=X,ie.mergeNumberFormat=ee,ie[Bg]=n,ie[Mu]=N,ie[Lu]=I,ie[Du]=M,process.env.NODE_ENV!=="production"&&(ie[Pu]=Z=>{T.__v_emitter=Z},ie[Bu]=()=>{T.__v_emitter=void 0}),ie}function yp(t,e){}const uf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function f9({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},je())}function $g(){return l.Fragment}vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>gt(t)||!isNaN(t)}},uf);function h9(t){return it(t)&&!be(t[0])}function Fg(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=je();t.locale&&(s.locale=t.locale),be(t.format)?s.key=t.format:Ue(t.format)&&(be(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?vt(je(),h,{[p]:t.format[p]}):h,je()));const a=r(t.value,s,c);let u=[s.key];it(a)?u=a.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return h9(g)&&(g[0].key=`${h.type}-${p}`),g}):be(a)&&(u=[a]);const d=vt(je(),i),f=be(t.tag)||Ue(t.tag)?t.tag:$g();return l.h(f,d,u)}}vt({value:{type:Number,required:!0},format:{type:[String,Object]}},uf);const p9=lr("global-vue-i18n");function $t(t={}){const e=cf();if(e==null)throw as(kt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw as(kt.NOT_INSTALLED);const n=m9(e),r=v9(n),o=Vg(e),i=g9(t,o);if(i==="global")return l9(r,t,o),r;if(i==="parent"){let a=y9(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&Fn(Ya(Pn.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=vt({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=d9(a),s.__composerExtend&&(c[Ru]=s.__composerExtend(c)),C9(s,e,c),s.__setInstance(e,c)}else process.env.NODE_ENV!=="production"&&i==="local"&&Fn(Ya(Pn.DUPLICATE_USE_I18N_CALLING));return c}function m9(t){const e=l.inject(t.isCE?p9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw as(t.isCE?kt.NOT_INSTALLED_WITH_PROVIDE:kt.UNEXPECTED_ERROR);return e}function g9(t,e){return Zl(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function v9(t){return t.mode==="composition"?t.global:t.global.__composer}function y9(t,e,n=!1){let r=null;const o=e.root;let i=b9(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[Bg]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function b9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function C9(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"){e.__VUE_I18N__=n,r=x6();const o=n;o[Pu]&&o[Pu](r),r.on("*",yp)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",yp),o[Bu]&&o[Bu](),delete e.__VUE_I18N__),t.__deleteInstance(e);const i=o[Ru];i&&(i(),delete o[Ru])},e)}vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},uf);o9();BC(pC);RC(OC);VC(wg);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=ro();t.__INTLIFY__=!0,mC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Sn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function df(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Fe(t){return!Sn(t)}function Tr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function bp(t,e){let n=-1;if(Fe(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function Lt(t,...e){return df(t)?t(...e):t}function jt(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Bn(t){return jt(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function ff(t,e="",n={}){let r=Bn(e).split("."),o=r.shift();if(o){if(Tr(t)){let i=Object.keys(t).find(s=>Bn(s)===o)||"";return ff(Lt(t[i],n),r.join("."),n)}return}return Lt(t,n)}function zg(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function E9(t){return Fe(t)&&!isNaN(t)}function k9(t=""){return Fe(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 $i(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 w9(t){return jt(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ug(t){return jt(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}function hf(){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 Fi(...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)?[Fi(...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 S9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function A9(t,e){if(t&&e){let n=r=>{S9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Oc(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 Cp(t){for(let e of document?.styleSheets)try{for(let n of e?.cssRules)for(let r of n?.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function x9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display],o=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",e.width=o.width||t.offsetWidth,e.height=o.height||t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function Hg(){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 Vu(t){return t?Math.abs(t.scrollLeft):0}function T9(){let t=document.documentElement;return(window.pageXOffset||Vu(t))-(t.clientLeft||0)}function I9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function _9(t){return t?getComputedStyle(t).direction==="rtl":!1}function N9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:x9(t),a=c.height,u=c.width,d=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=I9(),m=T9(),g=Hg(),v,y,b="top";h.top+d+a>g.height?(v=h.top+p-a,b="bottom",v<0&&(v=p)):v=d+h.top+p,h.left+u>g.width?y=Math.max(0,h.left+m+f-u):y=h.left+m,_9(t)?t.style.insetInlineEnd=y+"px":t.style.insetInlineStart=y+"px",t.style.top=v+"px",t.style.transformOrigin=b,n&&(t.style.marginTop=b==="bottom"?`calc(${(o=(r=Cp(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=Cp(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function jg(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function zi(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Wg(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function O9(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Wg(t))}function Rs(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Mc;function Ep(t){{if(Mc!=null)return Mc;let e=document.createElement("div");jg(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),Mc=n,n}}function Ga(t,e={}){if(Rs(t)){let n=(r,o)=>{var i,s;let c=(i=t?.$attrs)!=null&&i[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")a.push(u);else if(d==="object"){let f=Array.isArray(u)?n(r,u):Object.entries(u).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"?Ga(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 M9(t,e={},...n){{let r=document.createElement(t);return Ga(r,e),r.append(...n),r}}function Ui(t,e){return Rs(t)?t.matches(e)?t:t.querySelector(e):null}function qr(t,e){t&&document.activeElement!==t&&t.focus(e)}function L9(t,e){if(Rs(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function kp(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 D9(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 P9(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 Kg(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||Vu(document.documentElement)||Vu(document.body)||0)}}return{top:"auto",left:"auto"}}function Yg(t,e){return t?t.offsetHeight:0}function Gg(t,e=[]){let n=Wg(t);return n===null?e:Gg(n,e.concat([n]))}function B9(t){let e=[];if(t){let n=Gg(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 u=Ui(i,a);u&&o(u)&&e.push(u)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function wp(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 Qg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function R9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function V9(t,e){var n,r;if(t){let o=t.parentElement,i=Kg(o),s=Hg(),c=t.offsetParent?t.offsetWidth:P9(t),a=t.offsetParent?t.offsetHeight:D9(t),u=zi((n=o?.children)==null?void 0:n[0]),d=Yg((r=o?.children)==null?void 0:r[0]),f="",h="";i.left+u+c>s.width-Ep()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-Ep()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+d+a>s.height?h=`-${a-d}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function $9(t,e="",n){Rs(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var na={};function F9(t="pui_id_"){return Object.hasOwn(na,t)||(na[t]=0),na[t]++,`${t}${na[t]}`}function z9(){let t=[],e=(s,c,a=999)=>{let u=o(s,c,a),d=u.value+(u.key===s?0:a)+1;return t.push({key:s,value:d}),d},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s).value,o=(s,c,a=0)=>[...t].reverse().find(u=>!0)||{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)}}var Lc=z9(),U9=Object.defineProperty,H9=Object.defineProperties,j9=Object.getOwnPropertyDescriptors,Qa=Object.getOwnPropertySymbols,Zg=Object.prototype.hasOwnProperty,Jg=Object.prototype.propertyIsEnumerable,Sp=(t,e,n)=>e in t?U9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yn=(t,e)=>{for(var n in e||(e={}))Zg.call(e,n)&&Sp(t,n,e[n]);if(Qa)for(var n of Qa(e))Jg.call(e,n)&&Sp(t,n,e[n]);return t},Dc=(t,e)=>H9(t,j9(e)),Gn=(t,e)=>{var n={};for(var r in t)Zg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Qa)for(var r of Qa(t))e.indexOf(r)<0&&Jg.call(t,r)&&(n[r]=t[r]);return n},W9=hf(),Mt=W9,cs=/{([^}]*)}/g,Xg=/(\d+\s+[\+\-\*\/]\s+\d+)/g,qg=/var\([^)]+\)/g;function Ap(t){return jt(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function K9(t){return Tr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Y9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function $u(t="",e=""){return Y9(`${jt(t,!1)&&jt(e,!1)?`${t}-`:t}${e}`)}function ev(t="",e=""){return`--${$u(t,e)}`}function G9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function tv(t,e="",n="",r=[],o){if(jt(t)){let i=t.trim();if(G9(i))return;if(fo(i,cs)){let s=i.replaceAll(cs,c=>{let a=c.replace(/{|}/g,"").split(".").filter(u=>!r.some(d=>fo(u,d)));return`var(${ev(n,Ug(a.join("-")))}${Fe(o)?`, ${o}`:""})`});return fo(s.replace(qg,"0"),Xg)?`calc(${s})`:s}return i}else if(E9(t))return t}function Q9(t,e,n){jt(e,!1)&&t.push(`${e}:${n};`)}function Wo(t,e){return t?`${t}{${e}}`:""}function nv(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],u=0,d="",f=null,h=0;for(;u<=s.length;){let p=s[u];if((p==='"'||p==="'"||p==="`")&&s[u-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||u===s.length)&&h===0)){let m=d.trim();m.startsWith("dt(")?a.push(nv(m,c)):a.push(r(m)),d="",u++;continue}p!==void 0&&(d+=p),u++}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],u=t.slice(c+3,a),d=n(u,e),f=e(...d);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ho=(...t)=>Z9(Ge.getTheme(),...t),Z9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ge.defaults||{},{prefix:s,transform:c}=t?.options||i||{},a=fo(e,cs)?e:`{${e}}`;return r==="value"||Sn(r)&&c==="strict"?Ge.getTokenValue(e):tv(a,void 0,s,[o.excludedKeyRegex],n)}return""};function ra(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=Lt(e[i],{dt:ho}))!=null?s:"")},"");return nv(n,ho)}return Lt(t,{dt:ho})}function J9(t,e={}){let n=Ge.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:d,path:f}=a.pop();for(let h in d){let p=d[h],m=K9(p),g=fo(h,i)?$u(f):$u(f,Ug(h));if(Tr(m))a.push({node:m,path:g});else{let v=ev(g),y=tv(m,g,r,[i]);Q9(c,v,y);let b=g;r&&b.startsWith(r+"-")&&(b=b.slice(r.length+1)),s.push(b.replace(/-/g,"."))}}}let u=c.join("");return{value:c,tokens:s,declarations:u,css:Wo(o,u)}}var vn={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},:host${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 J9(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,u,d,f;let{preset:h,options:p}=e,m,g,v,y,b,E,C;if(Fe(h)&&p.transform!=="strict"){let{primitive:S,semantic:_,extend:T}=h,D=_||{},{colorScheme:Y}=D,V=Gn(D,["colorScheme"]),H=T||{},{colorScheme:j}=H,K=Gn(H,["colorScheme"]),F=Y||{},{dark:z}=F,$=Gn(F,["dark"]),J=j||{},{dark:U}=J,q=Gn(J,["dark"]),te=Fe(S)?this._toVariables({primitive:S},p):{},se=Fe(V)?this._toVariables({semantic:V},p):{},he=Fe($)?this._toVariables({light:$},p):{},pe=Fe(z)?this._toVariables({dark:z},p):{},ye=Fe(K)?this._toVariables({semantic:K},p):{},Ce=Fe(q)?this._toVariables({light:q},p):{},Ae=Fe(U)?this._toVariables({dark:U},p):{},[ge,N]=[(i=te.declarations)!=null?i:"",te.tokens],[M,I]=[(s=se.declarations)!=null?s:"",se.tokens||[]],[O,k]=[(c=he.declarations)!=null?c:"",he.tokens||[]],[w,P]=[(a=pe.declarations)!=null?a:"",pe.tokens||[]],[R,W]=[(u=ye.declarations)!=null?u:"",ye.tokens||[]],[G,A]=[(d=Ce.declarations)!=null?d:"",Ce.tokens||[]],[x,B]=[(f=Ae.declarations)!=null?f:"",Ae.tokens||[]];m=this.transformCSS(t,ge,"light","variable",p,r,o),g=N;let Q=this.transformCSS(t,`${M}${O}`,"light","variable",p,r,o),X=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);v=`${Q}${X}`,y=[...new Set([...I,...k,...P])];let ee=this.transformCSS(t,`${R}${G}color-scheme:light`,"light","variable",p,r,o),ie=this.transformCSS(t,`${x}color-scheme:dark`,"dark","variable",p,r,o);b=`${ee}${ie}`,E=[...new Set([...W,...A,...B])],C=Lt(h.css,{dt:ho})}return{primitive:{css:m,tokens:g},semantic:{css:v,tokens:y},global:{css:b,tokens:E},style:C}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,u;let d,f,h;if(Fe(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:v,css:y}=m,b=Gn(m,["colorScheme","extend","css"]),E=v||{},{colorScheme:C}=E,S=Gn(E,["colorScheme"]),_=g||{},{dark:T}=_,D=Gn(_,["dark"]),Y=C||{},{dark:V}=Y,H=Gn(Y,["dark"]),j=Fe(b)?this._toVariables({[p]:yn(yn({},b),S)},n):{},K=Fe(D)?this._toVariables({[p]:yn(yn({},D),H)},n):{},F=Fe(T)?this._toVariables({[p]:yn(yn({},T),V)},n):{},[z,$]=[(c=j.declarations)!=null?c:"",j.tokens||[]],[J,U]=[(a=K.declarations)!=null?a:"",K.tokens||[]],[q,te]=[(u=F.declarations)!=null?u:"",F.tokens||[]],se=this.transformCSS(p,`${z}${J}`,"light","variable",n,o,i,s),he=this.transformCSS(p,q,"dark","variable",n,o,i,s);d=`${se}${he}`,f=[...new Set([...$,...U,...te])],h=Lt(y,{dt:ho})}return{css:d,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?.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:u}=e,d=((i=a?.components)==null?void 0:i[c])||((s=a?.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:d,options:u,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 ${Lt(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,[u,d])=>a.push(`${u}="${d}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[u,d])=>{if(Tr(d)&&Object.hasOwn(d,"css")){let f=$i(d.css),h=`${u}-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,u=Object.entries(r).reduce((d,[f,h])=>d.push(`${f}="${h}"`)&&d,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${$i(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};u.push(this.path),a.name=this.path,a.binding||(a.binding={});let d=this.value;if(typeof this.value=="string"&&cs.test(this.value)){let f=this.value.trim().replace(cs,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 v=g.computed(c,a,u);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(p=v?.value)!=null?p:"__UNRESOLVED__"});d=Xg.test(f.replace(qg,"0"))?`calc(${f})`:f}return Sn(a.binding)&&delete a.binding,u.pop(),{colorScheme:c,path:this.path,paths:a,value:d.includes("__UNRESOLVED__")?void 0:d}},s=(c,a,u)=>{Object.entries(c).forEach(([d,f])=>{let h=fo(d,e.variable.excludedKeyRegex)?a:a?`${a}.${Ap(d)}`:Ap(d),p=u?`${u}.${d}`:d;Tr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},v=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,v);if(m&&m!=="none")for(let y=0;y<o[h].paths.length;y++){let b=o[h].paths[y];if(b.scheme===m)return b.computed(m,g.binding,v)}return o[h].paths.map(y=>y.computed(y.scheme,g[y.scheme],v))}}),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 u=a,{colorScheme:d}=u,f=Gn(u,["colorScheme"]);return c[d]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Wo(Fe(e)?`${t}${e},${t} ${e}`:t,r):Wo(t,Wo(e??":root,:host",r))},transformCSS(t,e,n,r,o={},i,s,c){if(Fe(e)){let{cssLayer:a}=o;if(r!=="style"){let u=this.getColorSchemeOption(o,s);e=n==="dark"?u.reduce((d,{type:f,selector:h})=>(Fe(h)&&(d+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),d),""):Wo(c??":root,:host",e)}if(a){let u={name:"primeui"};Tr(a)&&(u.name=Lt(a.name,{name:t,type:r})),Fe(u.name)&&(e=Wo(`@layer ${u.name}`,e),i?.layerNames(u.name))}return e}return""}},Ge={defaults:{variable:{prefix:"p",selector:":root,:host",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=Dc(yn({},e),{options:yn(yn({},this.defaults.options),e.options)}),this._tokens=vn.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}),Mt.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Dc(yn({},this.theme),{preset:t}),this._tokens=vn.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Mt.emit("preset:change",t),Mt.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Dc(yn({},this.theme),{options:t}),this.clearLoadedStyleNames(),Mt.emit("options:change",t),Mt.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 vn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return vn.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 vn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return vn.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 vn.getPreset(o)},getLayerOrderCSS(t=""){return vn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return vn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return vn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return vn.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),Mt.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Mt.emit("theme:load"))}},Er={_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()}},X9=`
60
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[Pn.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",[Pn.DUPLICATE_USE_I18N_CALLING]:"Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."};function Ya(t,...e){return Ql(a9[t],...e)}function ls(t){if(!Ue(t)||wn(t))return t;for(const e in t)if(En(t,e))if(!e.includes("."))Ue(t[e])&&ls(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]]=je()),!Ue(o[n[s]])){process.env.NODE_ENV!=="production"&&Fn(Ya(Pn.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(wn(o)?kg.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!wn(o)){const s=o[n[r]];Ue(s)&&ls(s)}}return t}function Rg(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=ze(n)?n:it(r)?je():{[t]:je()};if(it(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:a,resource:u}=c;a?(s[a]=s[a]||je(),xa(u,s[a])):xa(u,s)}else be(c)&&xa(JSON.parse(c),s)}),o==null&&i)for(const c in s)En(s,c)&&ls(s[c]);return s}function Vg(t){return t.type}function l9(t,e,n){let r=Ue(e.messages)?e.messages:je();"__i18nGlobal"in n&&(r=Rg(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ue(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ue(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function hp(t){return l.createVNode(l.Text,null,t,0)}function cf(){const t="currentInstance";return t in xc?xc[t]:xc.getCurrentInstance()}const pp="__INTLIFY_META__",mp=()=>[],c9=()=>!1;let gp=0;function vp(t){return((e,n,r,o)=>t(n,r,cf()||void 0,o))}const u9=()=>{const t=cf();let e=null;return t&&(e=Vg(t)[pp])?{[pp]:e}:null};function d9(t={}){const{__root:e,__injectWithOption:n}=t,r=e===void 0,o=t.flatJson,i=sr?l.ref:l.shallowRef;let s=ot(t.inheritLocale)?t.inheritLocale:!0;const c=i(e&&s?e.locale.value:be(t.locale)?t.locale:Wa),a=i(e&&s?e.fallbackLocale.value:be(t.fallbackLocale)||it(t.fallbackLocale)||ze(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:c.value),u=i(Rg(c.value,t)),d=i(ze(t.datetimeFormats)?t.datetimeFormats:{[c.value]:{}}),f=i(ze(t.numberFormats)?t.numberFormats:{[c.value]:{}});let h=e?e.missingWarn:ot(t.missingWarn)||ja(t.missingWarn)?t.missingWarn:!0,p=e?e.fallbackWarn:ot(t.fallbackWarn)||ja(t.fallbackWarn)?t.fallbackWarn:!0,m=e?e.fallbackRoot:ot(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.fallbackFormat,v=Ze(t.missing)?t.missing:null,y=Ze(t.missing)?vp(t.missing):null,b=Ze(t.postTranslation)?t.postTranslation:null,E=e?e.warnHtmlMessage:ot(t.warnHtmlMessage)?t.warnHtmlMessage:!0,C=!!t.escapeParameter;const S=e?e.modifiers:ze(t.modifiers)?t.modifiers:{};let _=t.pluralRules||e&&e.pluralRules,T;T=(()=>{r&&rp(null);const Z={version:r9,locale:c.value,fallbackLocale:a.value,messages:u.value,modifiers:S,pluralRules:_,missing:y===null?void 0:y,missingWarn:h,fallbackWarn:p,fallbackFormat:g,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:C,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};Z.datetimeFormats=d.value,Z.numberFormats=f.value,Z.__datetimeFormatters=ze(T)?T.__datetimeFormatters:void 0,Z.__numberFormatters=ze(T)?T.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(Z.__v_emitter=ze(T)?T.__v_emitter:void 0);const ne=UC(Z);return r&&rp(ne),ne})(),xi(T,c.value,a.value);function Y(){return[c.value,a.value,u.value,d.value,f.value]}const V=l.computed({get:()=>c.value,set:Z=>{T.locale=Z,c.value=Z}}),H=l.computed({get:()=>a.value,set:Z=>{T.fallbackLocale=Z,a.value=Z,xi(T,c.value,Z)}}),j=l.computed(()=>u.value),K=l.computed(()=>d.value),F=l.computed(()=>f.value);function z(){return Ze(b)?b:null}function $(Z){b=Z,T.postTranslation=Z}function J(){return v}function U(Z){Z!==null&&(y=vp(Z)),v=Z,T.missing=y}function q(Z,ne){return Z!=="translate"||!ne.resolvedMessage}const te=(Z,ne,we,_e,Ne,Xe)=>{Y();let ht;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=e?zC():void 0),ht=Z(T)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(T.fallbackContext=void 0)}if(we!=="translate exists"&&gt(ht)&&ht===Jl||we==="translate exists"&&!ht){const[qe,fr]=ne();if(process.env.NODE_ENV!=="production"&&e&&be(qe)&&q(we,fr)&&(m&&(Xl(p,qe)||_g(h,qe))&&Fn(Ya(Pn.FALLBACK_TO_ROOT,{key:qe,type:we})),process.env.NODE_ENV!=="production")){const{__v_emitter:gn}=T;gn&&m&&gn.emit("fallback",{type:we,key:qe,to:"global",groupId:`${we}:${qe}`})}return e&&m?_e(e):Ne(qe)}else{if(Xe(ht))return ht;throw as(kt.UNEXPECTED_RETURN_TYPE)}};function se(...Z){return te(ne=>Reflect.apply(fp,null,[ne,...Z]),()=>Ou(...Z),"translate",ne=>Reflect.apply(ne.t,ne,[...Z]),ne=>ne,ne=>be(ne))}function he(...Z){const[ne,we,_e]=Z;if(_e&&!Ue(_e))throw as(kt.INVALID_ARGUMENT);return se(ne,we,vt({resolvedMessage:!0},_e||{}))}function pe(...Z){return te(ne=>Reflect.apply(sp,null,[ne,...Z]),()=>_u(...Z),"datetime format",ne=>Reflect.apply(ne.d,ne,[...Z]),()=>Ka,ne=>be(ne)||it(ne))}function ye(...Z){return te(ne=>Reflect.apply(lp,null,[ne,...Z]),()=>Nu(...Z),"number format",ne=>Reflect.apply(ne.n,ne,[...Z]),()=>Ka,ne=>be(ne)||it(ne))}function Ce(Z){return Z.map(ne=>be(ne)||gt(ne)||ot(ne)?hp(String(ne)):ne)}const ge={normalize:Ce,interpolate:Z=>Z,type:"vnode"};function N(...Z){return te(ne=>{let we;const _e=ne;try{_e.processor=ge,we=Reflect.apply(fp,null,[_e,...Z])}finally{_e.processor=null}return we},()=>Ou(...Z),"translate",ne=>ne[Mu](...Z),ne=>[hp(ne)],ne=>it(ne))}function M(...Z){return te(ne=>Reflect.apply(lp,null,[ne,...Z]),()=>Nu(...Z),"number format",ne=>ne[Du](...Z),mp,ne=>be(ne)||it(ne))}function I(...Z){return te(ne=>Reflect.apply(sp,null,[ne,...Z]),()=>_u(...Z),"datetime format",ne=>ne[Lu](...Z),mp,ne=>be(ne)||it(ne))}function O(Z){_=Z,T.pluralRules=_}function k(Z,ne){return te(()=>{if(!Z)return!1;const we=be(ne)?ne:c.value,_e=R(we),Ne=T.messageResolver(_e,Z);return wn(Ne)||ln(Ne)||be(Ne)},()=>[Z],"translate exists",we=>Reflect.apply(we.te,we,[Z,ne]),c9,we=>ot(we))}function w(Z){let ne=null;const we=wg(T,a.value,c.value);for(let _e=0;_e<we.length;_e++){const Ne=u.value[we[_e]]||{},Xe=T.messageResolver(Ne,Z);if(Xe!=null){ne=Xe;break}}return ne}function P(Z){const ne=w(Z);return ne??(e?e.tm(Z)||{}:{})}function R(Z){return u.value[Z]||{}}function W(Z,ne){if(o){const we={[Z]:ne};for(const _e in we)En(we,_e)&&ls(we[_e]);ne=we[Z]}u.value[Z]=ne,T.messages=u.value}function G(Z,ne){u.value[Z]=u.value[Z]||{};const we={[Z]:ne};if(o)for(const _e in we)En(we,_e)&&ls(we[_e]);ne=we[Z],xa(ne,u.value[Z]),T.messages=u.value}function A(Z){return d.value[Z]||{}}function x(Z,ne){d.value[Z]=ne,T.datetimeFormats=d.value,ap(T,Z,ne)}function B(Z,ne){d.value[Z]=vt(d.value[Z]||{},ne),T.datetimeFormats=d.value,ap(T,Z,ne)}function Q(Z){return f.value[Z]||{}}function X(Z,ne){f.value[Z]=ne,T.numberFormats=f.value,cp(T,Z,ne)}function ee(Z,ne){f.value[Z]=vt(f.value[Z]||{},ne),T.numberFormats=f.value,cp(T,Z,ne)}gp++,e&&sr&&(l.watch(e.locale,Z=>{s&&(c.value=Z,T.locale=Z,xi(T,c.value,a.value))}),l.watch(e.fallbackLocale,Z=>{s&&(a.value=Z,T.fallbackLocale=Z,xi(T,c.value,a.value))}));const ie={id:gp,locale:V,fallbackLocale:H,get inheritLocale(){return s},set inheritLocale(Z){s=Z,Z&&e&&(c.value=e.locale.value,a.value=e.fallbackLocale.value,xi(T,c.value,a.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:j,get modifiers(){return S},get pluralRules(){return _||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(Z){h=Z,T.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(Z){p=Z,T.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(Z){m=Z},get fallbackFormat(){return g},set fallbackFormat(Z){g=Z,T.fallbackFormat=g},get warnHtmlMessage(){return E},set warnHtmlMessage(Z){E=Z,T.warnHtmlMessage=Z},get escapeParameter(){return C},set escapeParameter(Z){C=Z,T.escapeParameter=Z},t:se,getLocaleMessage:R,setLocaleMessage:W,mergeLocaleMessage:G,getPostTranslationHandler:z,setPostTranslationHandler:$,getMissingHandler:J,setMissingHandler:U,[s9]:O};return ie.datetimeFormats=K,ie.numberFormats=F,ie.rt=he,ie.te=k,ie.tm=P,ie.d=pe,ie.n=ye,ie.getDateTimeFormat=A,ie.setDateTimeFormat=x,ie.mergeDateTimeFormat=B,ie.getNumberFormat=Q,ie.setNumberFormat=X,ie.mergeNumberFormat=ee,ie[Bg]=n,ie[Mu]=N,ie[Lu]=I,ie[Du]=M,process.env.NODE_ENV!=="production"&&(ie[Pu]=Z=>{T.__v_emitter=Z},ie[Bu]=()=>{T.__v_emitter=void 0}),ie}function yp(t,e){}const uf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function f9({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},je())}function $g(){return l.Fragment}vt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>gt(t)||!isNaN(t)}},uf);function h9(t){return it(t)&&!be(t[0])}function Fg(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=je();t.locale&&(s.locale=t.locale),be(t.format)?s.key=t.format:Ue(t.format)&&(be(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?vt(je(),h,{[p]:t.format[p]}):h,je()));const a=r(t.value,s,c);let u=[s.key];it(a)?u=a.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:a}):[h.value];return h9(g)&&(g[0].key=`${h.type}-${p}`),g}):be(a)&&(u=[a]);const d=vt(je(),i),f=be(t.tag)||Ue(t.tag)?t.tag:$g();return l.h(f,d,u)}}vt({value:{type:Number,required:!0},format:{type:[String,Object]}},uf);const p9=lr("global-vue-i18n");function Ot(t={}){const e=cf();if(e==null)throw as(kt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw as(kt.NOT_INSTALLED);const n=m9(e),r=v9(n),o=Vg(e),i=g9(t,o);if(i==="global")return l9(r,t,o),r;if(i==="parent"){let a=y9(n,e,t.__useComponent);return a==null&&(process.env.NODE_ENV!=="production"&&Fn(Ya(Pn.NOT_FOUND_PARENT_SCOPE)),a=r),a}const s=n;let c=s.__getInstance(e);if(c==null){const a=vt({},t);"__i18n"in o&&(a.__i18n=o.__i18n),r&&(a.__root=r),c=d9(a),s.__composerExtend&&(c[Ru]=s.__composerExtend(c)),C9(s,e,c),s.__setInstance(e,c)}else process.env.NODE_ENV!=="production"&&i==="local"&&Fn(Ya(Pn.DUPLICATE_USE_I18N_CALLING));return c}function m9(t){const e=l.inject(t.isCE?p9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw as(t.isCE?kt.NOT_INSTALLED_WITH_PROVIDE:kt.UNEXPECTED_ERROR);return e}function g9(t,e){return Zl(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function v9(t){return t.mode==="composition"?t.global:t.global.__composer}function y9(t,e,n=!1){let r=null;const o=e.root;let i=b9(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[Bg]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function b9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function C9(t,e,n){let r=null;l.onMounted(()=>{if(process.env.NODE_ENV!=="production"){e.__VUE_I18N__=n,r=x6();const o=n;o[Pu]&&o[Pu](r),r.on("*",yp)}},e),l.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&(r&&r.off("*",yp),o[Bu]&&o[Bu](),delete e.__VUE_I18N__),t.__deleteInstance(e);const i=o[Ru];i&&(i(),delete o[Ru])},e)}vt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},uf);o9();BC(pC);RC(OC);VC(wg);if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=ro();t.__INTLIFY__=!0,mC(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function Sn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function df(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Fe(t){return!Sn(t)}function Tr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function bp(t,e){let n=-1;if(Fe(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function Dt(t,...e){return df(t)?t(...e):t}function jt(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Bn(t){return jt(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function ff(t,e="",n={}){let r=Bn(e).split("."),o=r.shift();if(o){if(Tr(t)){let i=Object.keys(t).find(s=>Bn(s)===o)||"";return ff(Dt(t[i],n),r.join("."),n)}return}return Dt(t,n)}function zg(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function E9(t){return Fe(t)&&!isNaN(t)}function k9(t=""){return Fe(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 $i(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 w9(t){return jt(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ug(t){return jt(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}function hf(){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 Fi(...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)?[Fi(...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 S9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function A9(t,e){if(t&&e){let n=r=>{S9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Oc(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 Cp(t){for(let e of document?.styleSheets)try{for(let n of e?.cssRules)for(let r of n?.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function x9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display],o=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",e.width=o.width||t.offsetWidth,e.height=o.height||t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function Hg(){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 Vu(t){return t?Math.abs(t.scrollLeft):0}function T9(){let t=document.documentElement;return(window.pageXOffset||Vu(t))-(t.clientLeft||0)}function I9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function _9(t){return t?getComputedStyle(t).direction==="rtl":!1}function N9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:x9(t),a=c.height,u=c.width,d=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=I9(),m=T9(),g=Hg(),v,y,b="top";h.top+d+a>g.height?(v=h.top+p-a,b="bottom",v<0&&(v=p)):v=d+h.top+p,h.left+u>g.width?y=Math.max(0,h.left+m+f-u):y=h.left+m,_9(t)?t.style.insetInlineEnd=y+"px":t.style.insetInlineStart=y+"px",t.style.top=v+"px",t.style.transformOrigin=b,n&&(t.style.marginTop=b==="bottom"?`calc(${(o=(r=Cp(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=Cp(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function jg(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function zi(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Wg(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function O9(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Wg(t))}function Rs(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Mc;function Ep(t){{if(Mc!=null)return Mc;let e=document.createElement("div");jg(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),Mc=n,n}}function Ga(t,e={}){if(Rs(t)){let n=(r,o)=>{var i,s;let c=(i=t?.$attrs)!=null&&i[r]?[(s=t?.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((a,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")a.push(u);else if(d==="object"){let f=Array.isArray(u)?n(r,u):Object.entries(u).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"?Ga(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 M9(t,e={},...n){{let r=document.createElement(t);return Ga(r,e),r.append(...n),r}}function Ui(t,e){return Rs(t)?t.matches(e)?t:t.querySelector(e):null}function qr(t,e){t&&document.activeElement!==t&&t.focus(e)}function L9(t,e){if(Rs(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function kp(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 D9(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 P9(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 Kg(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||Vu(document.documentElement)||Vu(document.body)||0)}}return{top:"auto",left:"auto"}}function Yg(t,e){return t?t.offsetHeight:0}function Gg(t,e=[]){let n=Wg(t);return n===null?e:Gg(n,e.concat([n]))}function B9(t){let e=[];if(t){let n=Gg(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 u=Ui(i,a);u&&o(u)&&e.push(u)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function wp(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 Qg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function R9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function V9(t,e){var n,r;if(t){let o=t.parentElement,i=Kg(o),s=Hg(),c=t.offsetParent?t.offsetWidth:P9(t),a=t.offsetParent?t.offsetHeight:D9(t),u=zi((n=o?.children)==null?void 0:n[0]),d=Yg((r=o?.children)==null?void 0:r[0]),f="",h="";i.left+u+c>s.width-Ep()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-Ep()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+d+a>s.height?h=`-${a-d}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function $9(t,e="",n){Rs(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var na={};function F9(t="pui_id_"){return Object.hasOwn(na,t)||(na[t]=0),na[t]++,`${t}${na[t]}`}function z9(){let t=[],e=(s,c,a=999)=>{let u=o(s,c,a),d=u.value+(u.key===s?0:a)+1;return t.push({key:s,value:d}),d},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s).value,o=(s,c,a=0)=>[...t].reverse().find(u=>!0)||{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)}}var Lc=z9(),U9=Object.defineProperty,H9=Object.defineProperties,j9=Object.getOwnPropertyDescriptors,Qa=Object.getOwnPropertySymbols,Zg=Object.prototype.hasOwnProperty,Jg=Object.prototype.propertyIsEnumerable,Sp=(t,e,n)=>e in t?U9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yn=(t,e)=>{for(var n in e||(e={}))Zg.call(e,n)&&Sp(t,n,e[n]);if(Qa)for(var n of Qa(e))Jg.call(e,n)&&Sp(t,n,e[n]);return t},Dc=(t,e)=>H9(t,j9(e)),Gn=(t,e)=>{var n={};for(var r in t)Zg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Qa)for(var r of Qa(t))e.indexOf(r)<0&&Jg.call(t,r)&&(n[r]=t[r]);return n},W9=hf(),Lt=W9,cs=/{([^}]*)}/g,Xg=/(\d+\s+[\+\-\*\/]\s+\d+)/g,qg=/var\([^)]+\)/g;function Ap(t){return jt(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function K9(t){return Tr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Y9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function $u(t="",e=""){return Y9(`${jt(t,!1)&&jt(e,!1)?`${t}-`:t}${e}`)}function ev(t="",e=""){return`--${$u(t,e)}`}function G9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function tv(t,e="",n="",r=[],o){if(jt(t)){let i=t.trim();if(G9(i))return;if(fo(i,cs)){let s=i.replaceAll(cs,c=>{let a=c.replace(/{|}/g,"").split(".").filter(u=>!r.some(d=>fo(u,d)));return`var(${ev(n,Ug(a.join("-")))}${Fe(o)?`, ${o}`:""})`});return fo(s.replace(qg,"0"),Xg)?`calc(${s})`:s}return i}else if(E9(t))return t}function Q9(t,e,n){jt(e,!1)&&t.push(`${e}:${n};`)}function Wo(t,e){return t?`${t}{${e}}`:""}function nv(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let a=[],u=0,d="",f=null,h=0;for(;u<=s.length;){let p=s[u];if((p==='"'||p==="'"||p==="`")&&s[u-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||u===s.length)&&h===0)){let m=d.trim();m.startsWith("dt(")?a.push(nv(m,c)):a.push(r(m)),d="",u++;continue}p!==void 0&&(d+=p),u++}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],u=t.slice(c+3,a),d=n(u,e),f=e(...d);t=t.slice(0,c)+f+t.slice(a+1)}return t}var ho=(...t)=>Z9(Ge.getTheme(),...t),Z9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ge.defaults||{},{prefix:s,transform:c}=t?.options||i||{},a=fo(e,cs)?e:`{${e}}`;return r==="value"||Sn(r)&&c==="strict"?Ge.getTokenValue(e):tv(a,void 0,s,[o.excludedKeyRegex],n)}return""};function ra(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=Dt(e[i],{dt:ho}))!=null?s:"")},"");return nv(n,ho)}return Dt(t,{dt:ho})}function J9(t,e={}){let n=Ge.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:d,path:f}=a.pop();for(let h in d){let p=d[h],m=K9(p),g=fo(h,i)?$u(f):$u(f,Ug(h));if(Tr(m))a.push({node:m,path:g});else{let v=ev(g),y=tv(m,g,r,[i]);Q9(c,v,y);let b=g;r&&b.startsWith(r+"-")&&(b=b.slice(r.length+1)),s.push(b.replace(/-/g,"."))}}}let u=c.join("");return{value:c,tokens:s,declarations:u,css:Wo(o,u)}}var vn={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},:host${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 J9(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,a,u,d,f;let{preset:h,options:p}=e,m,g,v,y,b,E,C;if(Fe(h)&&p.transform!=="strict"){let{primitive:S,semantic:_,extend:T}=h,D=_||{},{colorScheme:Y}=D,V=Gn(D,["colorScheme"]),H=T||{},{colorScheme:j}=H,K=Gn(H,["colorScheme"]),F=Y||{},{dark:z}=F,$=Gn(F,["dark"]),J=j||{},{dark:U}=J,q=Gn(J,["dark"]),te=Fe(S)?this._toVariables({primitive:S},p):{},se=Fe(V)?this._toVariables({semantic:V},p):{},he=Fe($)?this._toVariables({light:$},p):{},pe=Fe(z)?this._toVariables({dark:z},p):{},ye=Fe(K)?this._toVariables({semantic:K},p):{},Ce=Fe(q)?this._toVariables({light:q},p):{},Ae=Fe(U)?this._toVariables({dark:U},p):{},[ge,N]=[(i=te.declarations)!=null?i:"",te.tokens],[M,I]=[(s=se.declarations)!=null?s:"",se.tokens||[]],[O,k]=[(c=he.declarations)!=null?c:"",he.tokens||[]],[w,P]=[(a=pe.declarations)!=null?a:"",pe.tokens||[]],[R,W]=[(u=ye.declarations)!=null?u:"",ye.tokens||[]],[G,A]=[(d=Ce.declarations)!=null?d:"",Ce.tokens||[]],[x,B]=[(f=Ae.declarations)!=null?f:"",Ae.tokens||[]];m=this.transformCSS(t,ge,"light","variable",p,r,o),g=N;let Q=this.transformCSS(t,`${M}${O}`,"light","variable",p,r,o),X=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);v=`${Q}${X}`,y=[...new Set([...I,...k,...P])];let ee=this.transformCSS(t,`${R}${G}color-scheme:light`,"light","variable",p,r,o),ie=this.transformCSS(t,`${x}color-scheme:dark`,"dark","variable",p,r,o);b=`${ee}${ie}`,E=[...new Set([...W,...A,...B])],C=Dt(h.css,{dt:ho})}return{primitive:{css:m,tokens:g},semantic:{css:v,tokens:y},global:{css:b,tokens:E},style:C}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,a,u;let d,f,h;if(Fe(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:v,css:y}=m,b=Gn(m,["colorScheme","extend","css"]),E=v||{},{colorScheme:C}=E,S=Gn(E,["colorScheme"]),_=g||{},{dark:T}=_,D=Gn(_,["dark"]),Y=C||{},{dark:V}=Y,H=Gn(Y,["dark"]),j=Fe(b)?this._toVariables({[p]:yn(yn({},b),S)},n):{},K=Fe(D)?this._toVariables({[p]:yn(yn({},D),H)},n):{},F=Fe(T)?this._toVariables({[p]:yn(yn({},T),V)},n):{},[z,$]=[(c=j.declarations)!=null?c:"",j.tokens||[]],[J,U]=[(a=K.declarations)!=null?a:"",K.tokens||[]],[q,te]=[(u=F.declarations)!=null?u:"",F.tokens||[]],se=this.transformCSS(p,`${z}${J}`,"light","variable",n,o,i,s),he=this.transformCSS(p,q,"dark","variable",n,o,i,s);d=`${se}${he}`,f=[...new Set([...$,...U,...te])],h=Dt(y,{dt:ho})}return{css:d,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?.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:u}=e,d=((i=a?.components)==null?void 0:i[c])||((s=a?.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:d,options:u,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 ${Dt(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,[u,d])=>a.push(`${u}="${d}"`)&&a,[]).join(" ");return Object.entries(s||{}).reduce((a,[u,d])=>{if(Tr(d)&&Object.hasOwn(d,"css")){let f=$i(d.css),h=`${u}-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,u=Object.entries(r).reduce((d,[f,h])=>d.push(`${f}="${h}"`)&&d,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${$i(a)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,a={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:a,value:void 0};u.push(this.path),a.name=this.path,a.binding||(a.binding={});let d=this.value;if(typeof this.value=="string"&&cs.test(this.value)){let f=this.value.trim().replace(cs,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 v=g.computed(c,a,u);return Array.isArray(v)&&v.length===2?`light-dark(${v[0].value},${v[1].value})`:(p=v?.value)!=null?p:"__UNRESOLVED__"});d=Xg.test(f.replace(qg,"0"))?`calc(${f})`:f}return Sn(a.binding)&&delete a.binding,u.pop(),{colorScheme:c,path:this.path,paths:a,value:d.includes("__UNRESOLVED__")?void 0:d}},s=(c,a,u)=>{Object.entries(c).forEach(([d,f])=>{let h=fo(d,e.variable.excludedKeyRegex)?a:a?`${a}.${Ap(d)}`:Ap(d),p=u?`${u}.${d}`:d;Tr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},v=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,v);if(m&&m!=="none")for(let y=0;y<o[h].paths.length;y++){let b=o[h].paths[y];if(b.scheme===m)return b.computed(m,g.binding,v)}return o[h].paths.map(y=>y.computed(y.scheme,g[y.scheme],v))}}),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 u=a,{colorScheme:d}=u,f=Gn(u,["colorScheme"]);return c[d]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?Wo(Fe(e)?`${t}${e},${t} ${e}`:t,r):Wo(t,Wo(e??":root,:host",r))},transformCSS(t,e,n,r,o={},i,s,c){if(Fe(e)){let{cssLayer:a}=o;if(r!=="style"){let u=this.getColorSchemeOption(o,s);e=n==="dark"?u.reduce((d,{type:f,selector:h})=>(Fe(h)&&(d+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),d),""):Wo(c??":root,:host",e)}if(a){let u={name:"primeui"};Tr(a)&&(u.name=Dt(a.name,{name:t,type:r})),Fe(u.name)&&(e=Wo(`@layer ${u.name}`,e),i?.layerNames(u.name))}return e}return""}},Ge={defaults:{variable:{prefix:"p",selector:":root,:host",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=Dc(yn({},e),{options:yn(yn({},this.defaults.options),e.options)}),this._tokens=vn.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=Dc(yn({},this.theme),{preset:t}),this._tokens=vn.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=Dc(yn({},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 vn.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return vn.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 vn.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return vn.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 vn.getPreset(o)},getLayerOrderCSS(t=""){return vn.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return vn.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return vn.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return vn.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"))}},Er={_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()}},X9=`
61
61
  *,
62
62
  ::before,
63
63
  ::after {
@@ -189,8 +189,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
189
189
  overflow: hidden;
190
190
  padding-right: `.concat(n("scrollbar.width"),`;
191
191
  }
192
- `)},hE={},pE={},ct={name:"base",css:fE,style:X9,classes:hE,inlineStyles:pE,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(ra(Ip||(Ip=oa(["",""])),e));return Fe(o)?oE($i(o),Pc({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 Ge.transformCSS(n.name||e.name,"".concat(o).concat(ra(_p||(_p=oa(["",""])),r)))})},getCommonTheme:function(e){return Ge.getCommon(this.name,e)},getComponentTheme:function(e){return Ge.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ge.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ge.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ge.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=Lt(this.css,{dt:ho})||"",o=$i(ra(Np||(Np=oa(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var a=Mp(c,2),u=a[0],d=a[1];return s.push("".concat(u,'="').concat(d,'"'))&&s},[]).join(" ");return Fe(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 Ge.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ge.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=ra(Op||(Op=oa(["",""])),Lt(this.style,{dt:ho})),s=$i(Ge.transformCSS(o,i)),c=Object.entries(n).reduce(function(a,u){var d=Mp(u,2),f=d[0],h=d[1];return a.push("".concat(f,'="').concat(h,'"'))&&a},[]).join(" ");Fe(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 Pc(Pc({},this),{},{css:void 0,style:void 0},e)}};function mE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=l.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Pp=ct.extend({name:"common"});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 gE(t){return iv(t)||vE(t)||ov(t)||rv()}function vE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ti(t,e){return iv(t)||yE(t,e)||ov(t,e)||rv()}function rv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
193
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(t,e){if(t){if(typeof t=="string")return Fu(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)?Fu(t,e):void 0}}function Fu(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 yE(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,u=!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(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function iv(t){if(Array.isArray(t))return t}function Bp(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 Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bp(Object(n),!0).forEach(function(r){Li(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Li(t,e,n){return(e=bE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bE(t){var e=CE(t,"string");return fs(e)=="symbol"?e:e+""}function CE(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 bi={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){Mt.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var r=this;Mt.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,u,d,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,v=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,y=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:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||v)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=mE(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Ui(Rs(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ve({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?.(),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 df(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){Er.isStyleNameLoaded("base")||(ct.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Er.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Er.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Pp.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Er.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Fe(e)&&ct.load(e,Ve({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ge.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,u=i.style;ct.load(s?.css,Ve({name:"primitive-variables"},this.$styleOptions)),ct.load(c?.css,Ve({name:"semantic-variables"},this.$styleOptions)),ct.load(a?.css,Ve({name:"global-variables"},this.$styleOptions)),ct.loadStyle(Ve({name:"global-style"},this.$styleOptions),u),Ge.setLoadedStyleName("common")}if(!Ge.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,h,p,m=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},g=m.css,v=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ve({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ve({name:"".concat(this.$style.name,"-style")},this.$styleOptions),v),Ge.setLoadedStyleName(this.$style.name)}if(!Ge.isStyleNameLoaded("layer-order")){var y,b,E=(y=this.$style)===null||y===void 0||(b=y.getLayerOrderThemeCSS)===null||b===void 0?void 0:b.call(y);ct.load(E,Ve({name:"layer-order",first:!0},this.$styleOptions)),Ge.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,Ve({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(){};Er.clearLoadedStyleNames(),Mt.on("theme:change",e)},_removeThemeListeners:function(){Mt.off("theme:change",this._loadCoreStyles),Mt.off("theme:change",this._load),Mt.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 ff(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,u=a===void 0?!0:a,d=c.mergeProps,f=d===void 0?!1:d,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,Ve(Ve({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return u||!u&&p?f?this._mergeProps(f,h,p,m):Ve(Ve(Ve({},h),p),m):Ve(Ve({},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"&&Fe((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ve(Ve({},r==="root"&&Ve(Ve(Li({},"".concat(o,"name"),Bn(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Li({},"".concat(o,"extend"),Bn(this.$.type.name))),{},Li({},"".concat(this.$attrSelector),""))),{},Li({},"".concat(o,"section"),Bn(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return jt(e)||zg(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,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(c):c,f=Bn(r),h=Bn(n.$name);return(a=u?f!==h?d?.[f]:void 0:d?.[f])!==null&&a!==void 0?a:d};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,u=a===void 0?!0:a,d=c.mergeProps,f=d===void 0?!1:d,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:jt(p)?p:jt(h)?h:u||!u&&p?f?this._mergeProps(f,h,p):Ve(Ve({},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,Ve(Ve({},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?.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,Ve({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,Ve(Ve({},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,Ve(Ve({},this.$params),r)),i=this._getOptionValue(Pp.inlineStyles,e,Ve(Ve({},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 Lt(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,Ve({},n.$params))||Lt(r,Ve({},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=Ti(r,1),i=o[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ve(Ve({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?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ti(e,1),r=n[0];return r?.startsWith("pt:")}).reduce(function(e,n){var r=Ti(n,2),o=r[0],i=r[1],s=o.split(":"),c=gE(s),a=Fu(c).slice(1);return a?.reduce(function(u,d,f,h){return!u[d]&&(u[d]=f===h.length-1?i:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ti(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Ti(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},EE=`
192
+ `)},hE={},pE={},ct={name:"base",css:fE,style:X9,classes:hE,inlineStyles:pE,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(ra(Ip||(Ip=oa(["",""])),e));return Fe(o)?oE($i(o),Pc({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 Ge.transformCSS(n.name||e.name,"".concat(o).concat(ra(_p||(_p=oa(["",""])),r)))})},getCommonTheme:function(e){return Ge.getCommon(this.name,e)},getComponentTheme:function(e){return Ge.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ge.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ge.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ge.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=Dt(this.css,{dt:ho})||"",o=$i(ra(Np||(Np=oa(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var a=Mp(c,2),u=a[0],d=a[1];return s.push("".concat(u,'="').concat(d,'"'))&&s},[]).join(" ");return Fe(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 Ge.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ge.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=ra(Op||(Op=oa(["",""])),Dt(this.style,{dt:ho})),s=$i(Ge.transformCSS(o,i)),c=Object.entries(n).reduce(function(a,u){var d=Mp(u,2),f=d[0],h=d[1];return a.push("".concat(f,'="').concat(h,'"'))&&a},[]).join(" ");Fe(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 Pc(Pc({},this),{},{css:void 0,style:void 0},e)}};function mE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=l.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Pp=ct.extend({name:"common"});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 gE(t){return iv(t)||vE(t)||ov(t)||rv()}function vE(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ti(t,e){return iv(t)||yE(t,e)||ov(t,e)||rv()}function rv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
193
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(t,e){if(t){if(typeof t=="string")return Fu(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)?Fu(t,e):void 0}}function Fu(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 yE(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,u=!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(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function iv(t){if(Array.isArray(t))return t}function Bp(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 Ve(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Bp(Object(n),!0).forEach(function(r){Li(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bp(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Li(t,e,n){return(e=bE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bE(t){var e=CE(t,"string");return fs(e)=="symbol"?e:e+""}function CE(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 bi={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,u,d,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,v=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,y=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:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||v)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=mE(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Ui(Rs(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ve({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?.(),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 df(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_load:function(){Er.isStyleNameLoaded("base")||(ct.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Er.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Er.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Pp.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Er.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Fe(e)&&ct.load(e,Ve({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ge.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,u=i.style;ct.load(s?.css,Ve({name:"primitive-variables"},this.$styleOptions)),ct.load(c?.css,Ve({name:"semantic-variables"},this.$styleOptions)),ct.load(a?.css,Ve({name:"global-variables"},this.$styleOptions)),ct.loadStyle(Ve({name:"global-style"},this.$styleOptions),u),Ge.setLoadedStyleName("common")}if(!Ge.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,h,p,m=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},g=m.css,v=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ve({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ve({name:"".concat(this.$style.name,"-style")},this.$styleOptions),v),Ge.setLoadedStyleName(this.$style.name)}if(!Ge.isStyleNameLoaded("layer-order")){var y,b,E=(y=this.$style)===null||y===void 0||(b=y.getLayerOrderThemeCSS)===null||b===void 0?void 0:b.call(y);ct.load(E,Ve({name:"layer-order",first:!0},this.$styleOptions)),Ge.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,Ve({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(){};Er.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 ff(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,u=a===void 0?!0:a,d=c.mergeProps,f=d===void 0?!1:d,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,Ve(Ve({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return u||!u&&p?f?this._mergeProps(f,h,p,m):Ve(Ve(Ve({},h),p),m):Ve(Ve({},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"&&Fe((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ve(Ve({},r==="root"&&Ve(Ve(Li({},"".concat(o,"name"),Bn(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&Li({},"".concat(o,"extend"),Bn(this.$.type.name))),{},Li({},"".concat(this.$attrSelector),""))),{},Li({},"".concat(o,"section"),Bn(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return jt(e)||zg(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,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(c):c,f=Bn(r),h=Bn(n.$name);return(a=u?f!==h?d?.[f]:void 0:d?.[f])!==null&&a!==void 0?a:d};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,u=a===void 0?!0:a,d=c.mergeProps,f=d===void 0?!1:d,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:jt(p)?p:jt(h)?h:u||!u&&p?f?this._mergeProps(f,h,p):Ve(Ve({},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,Ve(Ve({},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?.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,Ve({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,Ve(Ve({},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,Ve(Ve({},this.$params),r)),i=this._getOptionValue(Pp.inlineStyles,e,Ve(Ve({},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 Dt(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,Ve({},n.$params))||Dt(r,Ve({},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=Ti(r,1),i=o[0];return n?.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ve(Ve({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?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ti(e,1),r=n[0];return r?.startsWith("pt:")}).reduce(function(e,n){var r=Ti(n,2),o=r[0],i=r[1],s=o.split(":"),c=gE(s),a=Fu(c).slice(1);return a?.reduce(function(u,d,f,h){return!u[d]&&(u[d]=f===h.length-1?i:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Ti(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Ti(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},EE=`
194
194
  .p-icon {
195
195
  display: inline-block;
196
196
  vertical-align: baseline;
@@ -301,7 +301,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
301
301
  height: dt('badge.xl.height');
302
302
  }
303
303
  `,$E={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-circle":Fe(n.value)&&String(n.value).length===1,"p-badge-dot":Sn(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"}]}},FE=ct.extend({name:"badge",style:VE,classes:$E}),zE={name:"BaseBadge",extends:bi,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:FE,provide:function(){return{$pcBadge:this,$parentInstance:this}}};function ps(t){"@babel/helpers - typeof";return ps=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},ps(t)}function $p(t,e,n){return(e=UE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function UE(t){var e=HE(t,"string");return ps(e)=="symbol"?e:e+""}function HE(t,e){if(ps(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lv={name:"Badge",extends:zE,inheritAttrs:!1,computed:{dataP:function(){return Fi($p($p({circle:this.value!=null&&String(this.value).length===1,empty:this.value==null&&!this.$slots.default},this.severity,this.severity),this.size,this.size))}}},jE=["data-p"];function WE(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,jE)}lv.render=WE;var ia=hf();function ms(t){"@babel/helpers - typeof";return ms=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},ms(t)}function Fp(t,e){return QE(t)||GE(t,e)||YE(t,e)||KE()}function KE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
304
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YE(t,e){if(t){if(typeof t=="string")return zp(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)?zp(t,e):void 0}}function zp(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 GE(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,u=!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(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function QE(t){if(Array.isArray(t))return t}function Up(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 $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Up(Object(n),!0).forEach(function(r){Hu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hu(t,e,n){return(e=ZE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZE(t){var e=JE(t,"string");return ms(e)=="symbol"?e:e+""}function JE(t,e){if(ms(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var De={_getMeta:function(){return[Tr(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Lt(Tr(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:ff,_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 b=De._getOptionValue.apply(De,arguments);return jt(b)||zg(b)?{class:b}:b},u=((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)||{},d=u.mergeSections,f=d===void 0?!0:d,h=u.mergeProps,p=h===void 0?!1:h,m=c?De._useDefaultPT(r,r.defaultPT(),a,i,s):void 0,g=De._usePT(r,De._getPT(o,r.$name),a,i,$e($e({},s),{},{global:m||{}})),v=De._getPTDatasets(r,i);return f||!f&&g?p?De._mergeProps(r,p,m,g,v):$e($e($e({},m),g),v):$e($e({},g),v)},_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 $e($e({},n==="root"&&Hu({},"".concat(r,"name"),Bn(e.$name))),{},Hu({},"".concat(r,"section"),Bn(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,u=Bn(n);return(c=a?.[u])!==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(v){return r(v,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,a=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},u=a.mergeSections,d=u===void 0?!0:u,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:jt(m)?m:jt(p)?p:d||!d&&m?h?De._mergeProps(e,h,p,m):$e($e({},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 De._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=De._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};De._loadCoreStyles(n,s),De._loadThemeStyles(n,s),De._loadScopedThemeStyles(n,s),De._removeThemeListeners(n),n.$loadStyles=function(){return De._loadThemeStyles(n,s)},De._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(!Er.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;ct.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),Er.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(!Ge.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))||{},u=a.primitive,d=a.semantic,f=a.global,h=a.style;ct.load(u?.css,$e({name:"primitive-variables"},i)),ct.load(d?.css,$e({name:"semantic-variables"},i)),ct.load(f?.css,$e({name:"global-variables"},i)),ct.loadStyle($e({name:"global-style"},i),h),Ge.setLoadedStyleName("common")}if(!Ge.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,v,y=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},b=y.css,E=y.style;(g=o.$style)===null||g===void 0||g.load(b,$e({name:"".concat(o.$style.name,"-variables")},i)),(v=o.$style)===null||v===void 0||v.loadStyle($e({name:"".concat(o.$style.name,"-style")},i),E),Ge.setLoadedStyleName(o.$style.name)}if(!Ge.isStyleNameLoaded("layer-order")){var C,S,_=(C=o.$style)===null||C===void 0||(S=C.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(C);ct.load(_,$e({name:"layer-order",first:!0},i)),Ge.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,u=(s=e.$style)===null||s===void 0?void 0:s.load(a,$e({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Er.clearLoadedStyleNames(),Mt.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mt.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,r,o,i,s){var c,a,u="on".concat(w9(n)),d=De._getConfig(o,i),f=r?.$instance,h=De._usePT(f,De._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),De._getOptionValue,"hooks.".concat(u)),p=De._useDefaultPT(f,d==null||(a=d.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],De._getOptionValue,"hooks.".concat(u)),m={el:r,binding:o,vnode:i,prevVnode:s};h?.(f,m),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 df(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,u,d,f){var h,p,m,g;a._$instances=a._$instances||{};var v=De._getConfig(u,d),y=a._$instances[e]||{},b=Sn(y)?$e($e({},n),n?.methods):{};a._$instances[e]=$e($e({},y),{},{$name:e,$host:a,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||a||void 0,$style:$e({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:v,$attrSelector:(h=a.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return De._getPT(v?.pt,void 0,function(C){var S;return C==null||(S=C.directives)===null||S===void 0?void 0:S[e]})},isUnstyled:function(){var C,S;return((C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(S=a._$instances[e])===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled:v?.unstyled},theme:function(){var C;return(C=a._$instances[e])===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return De._getPTValue(a._$instances[e],(C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,S,$e({},_))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return De._getPTValue(a._$instances[e],C,S,_,!1)},cx:function(){var C,S,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a._$instances[e])!==null&&C!==void 0&&C.isUnstyled()?void 0:De._getOptionValue((S=a._$instances[e])===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.classes,_,$e({},T))},sx:function(){var C,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?De._getOptionValue((C=a._$instances[e])===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,S,$e({},T)):void 0}},b),a.$instance=a._$instances[e],(p=(m=a.$instance)[c])===null||p===void 0||p.call(m,a,u,d,f),a["$".concat(e)]=a.$instance,De._hook(e,c,a,u,d,f),a.$pd||(a.$pd={}),a.$pd[e]=$e($e({},(g=a.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:a._$instances[e]})},o=function(c){var a,u,d,f=c._$instances[e],h=f?.watch,p=function(v){var y,b=v.newValue,E=v.oldValue;return h==null||(y=h.config)===null||y===void 0?void 0:y.call(f,b,E)},m=function(v){var y,b=v.newValue,E=v.oldValue;return h==null||(y=h["config.ripple"])===null||y===void 0?void 0:y.call(f,b,E)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(a=h.config)===null||a===void 0||a.call(f,f?.$primevueConfig),ia.on("config:change",p),h==null||(u=h["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),ia.on("config:ripple:change",m)},i=function(c){var a=c._$instances[e].$watchersCallback;a&&(ia.off("config:change",a.config),ia.off("config:ripple:change",a["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,a,u,d){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:F9("pd")},r("created",c,a,u,d)},beforeMount:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("beforeMount",c,a,u,d),o(c)},mounted:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("mounted",c,a,u,d)},beforeUpdate:function(c,a,u,d){r("beforeUpdate",c,a,u,d)},updated:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("updated",c,a,u,d)},beforeUnmount:function(c,a,u,d){var f;i(c),De._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,a,u,d)},unmounted:function(c,a,u,d){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,u,d)}}},extend:function(){var e=De._getMeta.apply(De,arguments),n=Fp(e,2),r=n[0],o=n[1];return $e({extend:function(){var s=De._getMeta.apply(De,arguments),c=Fp(s,2),a=c[0],u=c[1];return De.extend(a,$e($e($e({},o),o?.methods),u))}},De._extend(r,o))}},XE=`
304
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YE(t,e){if(t){if(typeof t=="string")return zp(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)?zp(t,e):void 0}}function zp(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 GE(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,u=!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(d){u=!0,o=d}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function QE(t){if(Array.isArray(t))return t}function Up(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 $e(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Up(Object(n),!0).forEach(function(r){Hu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Up(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Hu(t,e,n){return(e=ZE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZE(t){var e=JE(t,"string");return ms(e)=="symbol"?e:e+""}function JE(t,e){if(ms(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var De={_getMeta:function(){return[Tr(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Dt(Tr(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:ff,_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 b=De._getOptionValue.apply(De,arguments);return jt(b)||zg(b)?{class:b}:b},u=((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)||{},d=u.mergeSections,f=d===void 0?!0:d,h=u.mergeProps,p=h===void 0?!1:h,m=c?De._useDefaultPT(r,r.defaultPT(),a,i,s):void 0,g=De._usePT(r,De._getPT(o,r.$name),a,i,$e($e({},s),{},{global:m||{}})),v=De._getPTDatasets(r,i);return f||!f&&g?p?De._mergeProps(r,p,m,g,v):$e($e($e({},m),g),v):$e($e({},g),v)},_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 $e($e({},n==="root"&&Hu({},"".concat(r,"name"),Bn(e.$name))),{},Hu({},"".concat(r,"section"),Bn(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,u=Bn(n);return(c=a?.[u])!==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(v){return r(v,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,a=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},u=a.mergeSections,d=u===void 0?!0:u,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:jt(m)?m:jt(p)?p:d||!d&&m?h?De._mergeProps(e,h,p,m):$e($e({},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 De._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=De._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};De._loadCoreStyles(n,s),De._loadThemeStyles(n,s),De._loadScopedThemeStyles(n,s),De._removeThemeListeners(n),n.$loadStyles=function(){return De._loadThemeStyles(n,s)},De._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(!Er.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;ct.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),Er.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(!Ge.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))||{},u=a.primitive,d=a.semantic,f=a.global,h=a.style;ct.load(u?.css,$e({name:"primitive-variables"},i)),ct.load(d?.css,$e({name:"semantic-variables"},i)),ct.load(f?.css,$e({name:"global-variables"},i)),ct.loadStyle($e({name:"global-style"},i),h),Ge.setLoadedStyleName("common")}if(!Ge.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,v,y=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},b=y.css,E=y.style;(g=o.$style)===null||g===void 0||g.load(b,$e({name:"".concat(o.$style.name,"-variables")},i)),(v=o.$style)===null||v===void 0||v.loadStyle($e({name:"".concat(o.$style.name,"-style")},i),E),Ge.setLoadedStyleName(o.$style.name)}if(!Ge.isStyleNameLoaded("layer-order")){var C,S,_=(C=o.$style)===null||C===void 0||(S=C.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(C);ct.load(_,$e({name:"layer-order",first:!0},i)),Ge.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,u=(s=e.$style)===null||s===void 0?void 0:s.load(a,$e({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Er.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,u="on".concat(w9(n)),d=De._getConfig(o,i),f=r?.$instance,h=De._usePT(f,De._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),De._getOptionValue,"hooks.".concat(u)),p=De._useDefaultPT(f,d==null||(a=d.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],De._getOptionValue,"hooks.".concat(u)),m={el:r,binding:o,vnode:i,prevVnode:s};h?.(f,m),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 df(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,u,d,f){var h,p,m,g;a._$instances=a._$instances||{};var v=De._getConfig(u,d),y=a._$instances[e]||{},b=Sn(y)?$e($e({},n),n?.methods):{};a._$instances[e]=$e($e({},y),{},{$name:e,$host:a,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||a||void 0,$style:$e({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:v,$attrSelector:(h=a.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return De._getPT(v?.pt,void 0,function(C){var S;return C==null||(S=C.directives)===null||S===void 0?void 0:S[e]})},isUnstyled:function(){var C,S;return((C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(S=a._$instances[e])===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled:v?.unstyled},theme:function(){var C;return(C=a._$instances[e])===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return De._getPTValue(a._$instances[e],(C=a._$instances[e])===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,S,$e({},_))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return De._getPTValue(a._$instances[e],C,S,_,!1)},cx:function(){var C,S,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a._$instances[e])!==null&&C!==void 0&&C.isUnstyled()?void 0:De._getOptionValue((S=a._$instances[e])===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.classes,_,$e({},T))},sx:function(){var C,S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?De._getOptionValue((C=a._$instances[e])===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,S,$e({},T)):void 0}},b),a.$instance=a._$instances[e],(p=(m=a.$instance)[c])===null||p===void 0||p.call(m,a,u,d,f),a["$".concat(e)]=a.$instance,De._hook(e,c,a,u,d,f),a.$pd||(a.$pd={}),a.$pd[e]=$e($e({},(g=a.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:a._$instances[e]})},o=function(c){var a,u,d,f=c._$instances[e],h=f?.watch,p=function(v){var y,b=v.newValue,E=v.oldValue;return h==null||(y=h.config)===null||y===void 0?void 0:y.call(f,b,E)},m=function(v){var y,b=v.newValue,E=v.oldValue;return h==null||(y=h["config.ripple"])===null||y===void 0?void 0:y.call(f,b,E)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(a=h.config)===null||a===void 0||a.call(f,f?.$primevueConfig),ia.on("config:change",p),h==null||(u=h["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),ia.on("config:ripple:change",m)},i=function(c){var a=c._$instances[e].$watchersCallback;a&&(ia.off("config:change",a.config),ia.off("config:ripple:change",a["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,a,u,d){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:F9("pd")},r("created",c,a,u,d)},beforeMount:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("beforeMount",c,a,u,d),o(c)},mounted:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("mounted",c,a,u,d)},beforeUpdate:function(c,a,u,d){r("beforeUpdate",c,a,u,d)},updated:function(c,a,u,d){var f;De._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,a,u),r("updated",c,a,u,d)},beforeUnmount:function(c,a,u,d){var f;i(c),De._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,a,u,d)},unmounted:function(c,a,u,d){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,u,d)}}},extend:function(){var e=De._getMeta.apply(De,arguments),n=Fp(e,2),r=n[0],o=n[1];return $e({extend:function(){var s=De._getMeta.apply(De,arguments),c=Fp(s,2),a=c[0],u=c[1];return De.extend(a,$e($e($e({},o),o?.methods),u))}},De._extend(r,o))}},XE=`
305
305
  .p-ink {
306
306
  display: block;
307
307
  position: absolute;
@@ -1121,7 +1121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1121
1121
  transform: rotate(-90deg);
1122
1122
  }
1123
1123
  `,_k={submenu:function(e){var n=e.instance,r=e.processedItem;return{display:n.isItemActive(r)?"flex":"none"}}},Nk={root:function(e){var n=e.props,r=e.instance;return["p-tieredmenu p-component",{"p-tieredmenu-overlay":n.popup,"p-tieredmenu-mobile":r.queryMatches}]},start:"p-tieredmenu-start",rootList:"p-tieredmenu-root-list",item:function(e){var n=e.instance,r=e.processedItem;return["p-tieredmenu-item",{"p-tieredmenu-item-active":n.isItemActive(r),"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},itemContent:"p-tieredmenu-item-content",itemLink:"p-tieredmenu-item-link",itemIcon:"p-tieredmenu-item-icon",itemLabel:"p-tieredmenu-item-label",submenuIcon:"p-tieredmenu-submenu-icon",submenu:"p-tieredmenu-submenu",separator:"p-tieredmenu-separator",end:"p-tieredmenu-end"},Ok=ct.extend({name:"tieredmenu",style:Ik,classes:Nk,inlineStyles:_k}),fv={name:"AngleRightIcon",extends:pf};function Mk(t){return Bk(t)||Pk(t)||Dk(t)||Lk()}function Lk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1124
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dk(t,e){if(t){if(typeof t=="string")return Wu(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)?Wu(t,e):void 0}}function Pk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bk(t){if(Array.isArray(t))return Wu(t)}function Wu(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 Rk(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()),Mk(e[0]||(e[0]=[l.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)])),16)}fv.render=Rk;var Vk={name:"BaseTieredMenu",extends:bi,props:{popup:{type:Boolean,default:!1},model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},breakpoint:{type:String,default:"960px"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Ok,provide:function(){return{$pcTieredMenu:this,$parentInstance:this}}},hv={name:"TieredMenuSub",hostName:"TieredMenu",extends:bi,emits:["item-click","item-mouseenter","item-mousemove"],container:null,props:{menuId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Lt(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,n,r){return this.ptm(r,{context:{item:e.item,index:n,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return Fe(e.items)},onEnter:function(){V9(this.container,this.level)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-click",{originalEvent:e,processedItem:n,isFocus:!0})},onItemMouseEnter:function(e,n){this.$emit("item-mouseenter",{originalEvent:e,processedItem:n})},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:l.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,n,"itemLink")),icon:l.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,n,"itemIcon")),label:l.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,n,"itemLabel")),submenuicon:l.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,n,"submenuIcon"))}},containerRef:function(e){this.container=e}},components:{AngleRightIcon:fv},directives:{ripple:cv}},$k=["tabindex"],Fk=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],zk=["onClick","onMouseenter","onMousemove"],Uk=["href","target"],Hk=["id"],jk=["id"];function Wk(t,e,n,r,o,i){var s=l.resolveComponent("AngleRightIcon"),c=l.resolveComponent("TieredMenuSub",!0),a=l.resolveDirective("ripple");return l.openBlock(),l.createBlock(l.Transition,l.mergeProps({name:"p-anchored-overlay",onEnter:i.onEnter},t.ptm("menu.transition")),{default:l.withCtx(function(){return[n.level===0||n.visible?(l.openBlock(),l.createElementBlock("ul",{key:0,ref:i.containerRef,tabindex:n.tabindex},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,function(u,d){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getItemKey(u)},[i.isItemVisible(u)&&!i.getItemProp(u,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:0,id:i.getItemId(u),style:i.getItemProp(u,"style"),class:[t.cx("item",{processedItem:u}),i.getItemProp(u,"class")],role:"menuitem","aria-label":i.getItemLabel(u),"aria-disabled":i.isItemDisabled(u)||void 0,"aria-expanded":i.isItemGroup(u)?i.isItemActive(u):void 0,"aria-haspopup":i.isItemGroup(u)&&!i.getItemProp(u,"to")?"menu":void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},{ref_for:!0},i.getPTOptions(u,d,"item"),{"data-p-active":i.isItemActive(u),"data-p-focused":i.isItemFocused(u),"data-p-disabled":i.isItemDisabled(u)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,u)},onMouseenter:function(h){return i.onItemMouseEnter(h,u)},onMousemove:function(h){return i.onItemMouseMove(h,u)}},{ref_for:!0},i.getPTOptions(u,d,"itemContent")),[n.templates.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.item),{key:1,item:u.item,hasSubmenu:i.getItemProp(u,"items"),label:i.getItemLabel(u),props:i.getMenuItemProps(u,d)},null,8,["item","hasSubmenu","label","props"])):l.withDirectives((l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(u,"url"),class:t.cx("itemLink"),target:i.getItemProp(u,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions(u,d,"itemLink")),[n.templates.itemicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.itemicon),{key:0,item:u.item,class:l.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(u,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:[t.cx("itemIcon"),i.getItemProp(u,"icon")]},{ref_for:!0},i.getPTOptions(u,d,"itemIcon")),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({id:i.getItemLabelId(u),class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions(u,d,"itemLabel")),l.toDisplayString(i.getItemLabel(u)),17,Hk),i.getItemProp(u,"items")?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[n.templates.submenuicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.submenuicon),l.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(u)},{ref_for:!0},i.getPTOptions(u,d,"submenuIcon")),null,16,["class","active"])):(l.openBlock(),l.createBlock(s,l.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions(u,d,"submenuIcon")),null,16,["class"]))],64)):l.createCommentVNode("",!0)],16,Uk)),[[a]])],16,zk),i.isItemVisible(u)&&i.isItemGroup(u)?(l.openBlock(),l.createBlock(c,l.mergeProps({key:0,id:i.getItemId(u)+"_list",class:t.cx("submenu"),style:t.sx("submenu",!0,{processedItem:u}),"aria-labelledby":i.getItemLabelId(u),role:"menu",menuId:n.menuId,focusedItemId:n.focusedItemId,items:u.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:i.isItemActive(u)&&i.isItemGroup(u),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(f){return t.$emit("item-click",f)}),onItemMouseenter:e[1]||(e[1]=function(f){return t.$emit("item-mouseenter",f)}),onItemMousemove:e[2]||(e[2]=function(f){return t.$emit("item-mousemove",f)})},{ref_for:!0},t.ptm("submenu")),null,16,["id","class","style","aria-labelledby","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled"])):l.createCommentVNode("",!0)],16,Fk)):l.createCommentVNode("",!0),i.isItemVisible(u)&&i.getItemProp(u,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:1,id:i.getItemId(u),style:i.getItemProp(u,"style"),class:[t.cx("separator"),i.getItemProp(u,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,jk)):l.createCommentVNode("",!0)],64)}),128))],8,$k)):l.createCommentVNode("",!0)]}),_:1},16,["onEnter"])}hv.render=Wk;var pv={name:"TieredMenu",extends:Vk,inheritAttrs:!1,emits:["focus","blur","before-show","before-hide","hide","show"],outsideClickListener:null,matchMediaListener:null,scrollHandler:null,resizeListener:null,target:null,container:null,menubar:null,searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!this.popup,submenuVisible:!1,dirty:!1,query:null,queryMatches:!1}},watch:{activeItemPath:function(e){this.popup||(Fe(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener()))}},mounted:function(){this.bindMatchMediaListener()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Lc.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,n){return e?Lt(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return Fe(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&Fe(e.items)},toggle:function(e){this.visible?this.hide(e,!0):this.show(e)},show:function(e,n){this.popup&&(this.$emit("before-show"),this.visible=!0,this.target=this.target||e.currentTarget,this.relatedTarget=e.relatedTarget||null),n&&qr(this.menubar)},hide:function(e,n){this.popup&&(this.$emit("before-hide"),this.visible=!1),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},n&&qr(this.relatedTarget||this.target||this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.popup||(this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""}),this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&k9(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,n){var r=e.processedItem,o=e.isFocus;if(!Sn(r)){var i=r.index,s=r.key,c=r.level,a=r.parentKey,u=r.items,d=Fe(u),f=this.activeItemPath.filter(function(h){return h.parentKey!==a&&h.parentKey!==s});d&&(f.push(r),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:c,parentKey:a},d&&(this.dirty=!0),o&&qr(this.menubar),!(n==="hover"&&this.queryMatches)&&(this.activeItemPath=f)}},onOverlayClick:function(e){xk.emit("overlay-click",{originalEvent:e,target:this.target})},onItemClick:function(e){var n=e.originalEvent,r=e.processedItem,o=this.isProccessedItemGroup(r),i=Sn(r.parent),s=this.isSelected(r);if(s){var c=r.index,a=r.key,u=r.level,d=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(h){return a!==h.key&&a.startsWith(h.key)}),this.focusedItemInfo={index:c,level:u,parentKey:d},this.dirty=!i,qr(this.menubar)}else if(o)this.onItemChange(e);else{var f=i?r:this.activeItemPath.find(function(h){return h.parentKey===""});this.hide(n),this.changeFocusedItemIndex(n,f?f.index:-1),qr(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},onArrowDownKey:function(e){var n=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(this.focusedItemInfo.index!==-1){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);!r&&this.onItemChange({originalEvent:e,processedItem:n})}this.popup&&this.hide(e,!0),e.preventDefault()}else{var o=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onArrowLeftKey:function(e){var n=this,r=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find(function(s){return s.key===r.parentKey}),i=Sn(r.parent);i||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter(function(s){return s.parentKey!==n.focusedItemInfo.parentKey}),e.preventDefault()},onArrowRightKey:function(e){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);r&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo={index:-1,parentKey:n.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var n=Ui(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&Ui(n,'[data-pc-section="itemlink"]');if(r?r.click():n&&n.click(),!this.popup){var o=this.visibleItems[this.focusedItemInfo.index],i=this.isProccessedItemGroup(o);!i&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.popup||this.focusedItemInfo.level!==0){var n=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(n.parentKey.split("_")[0]),level:0,parentKey:""},this.popup&&qr(this.target)}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);!r&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()},onEnter:function(e){this.autoZIndex&&Lc.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),jg(e,{position:"absolute",top:"0"}),this.alignOverlay(),qr(this.menubar),this.scrollInView()},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.container=null,this.dirty=!1},onAfterLeave:function(e){this.autoZIndex&&Lc.clear(e)},alignOverlay:function(){N9(this.container,this.target);var e=zi(this.target);e>zi(this.container)&&(this.container.style.minWidth=zi(this.target)+"px")},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){var r=e.container&&!e.container.contains(n.target),o=e.popup?!(e.target&&(e.target===n.target||e.target.contains(n.target))):!0;r&&o&&e.hide()},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Ak(this.target,function(n){e.hide(n,!0)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(n){R9()||e.hide(n,!0)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var n=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=n,this.queryMatches=n.matches,this.matchMediaListener=function(){e.queryMatches=n.matches},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getProccessedItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(n){return e.isValidItem(n)})},findLastItemIndex:function(){var e=this;return bp(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItemIndex:function(e){var n=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(o){return n.isValidItem(o)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var n=this,r=e>0?bp(this.visibleItems.slice(0,e),function(o){return n.isValidItem(o)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(n){return e.isValidSelectedItem(n)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=-1,i=!1;return this.focusedItemInfo.index!==-1?(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(s){return r.isItemMatched(s)}),o=o===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(s){return r.isItemMatched(s)}):o+this.focusedItemInfo.index):o=this.visibleItems.findIndex(function(s){return r.isItemMatched(s)}),o!==-1&&(i=!0),o===-1&&this.focusedItemInfo.index===-1&&(o=this.findFirstFocusedItemIndex()),o!==-1&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItemIndex:function(e,n){this.focusedItemInfo.index!==n&&(this.focusedItemInfo.index=n,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,n=e!==-1?"".concat(this.$id,"_").concat(e):this.focusedItemId,r=Ui(this.menubar,'li[id="'.concat(n,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(c,a){var u=(i!==""?i+"_":"")+a,d={item:c,index:a,level:r,key:u,parent:o,parentKey:i};d.items=n.createProcessedItems(c.items,r+1,d,u),s.push(d)}),s},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,n=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return n?n.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.$id).concat(Fe(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{TieredMenuSub:hv,Portal:dv}},Kk=["id"];function Yk(t,e,n,r,o,i){var s=l.resolveComponent("TieredMenuSub"),c=l.resolveComponent("Portal");return l.openBlock(),l.createBlock(c,{appendTo:t.appendTo,disabled:!t.popup},{default:l.withCtx(function(){return[l.createVNode(l.Transition,l.mergeProps({name:"p-anchored-overlay",onEnter:i.onEnter,onAfterEnter:i.onAfterEnter,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave},t.ptm("transition")),{default:l.withCtx(function(){return[o.visible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:i.containerRef,id:t.$id,class:t.cx("root"),onClick:e[0]||(e[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},t.ptmi("root")),[t.$slots.start?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[l.renderSlot(t.$slots,"start")],16)):l.createCommentVNode("",!0),l.createVNode(s,l.mergeProps({ref:i.menubarRef,id:t.$id+"_list",class:t.cx("rootList"),tabindex:t.disabled?-1:t.tabindex,role:"menubar","aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-disabled":t.disabled||void 0,"aria-orientation":"vertical","aria-activedescendant":o.focused?i.focusedItemId:void 0,menuId:t.$id,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:t.$slots,activeItemPath:o.activeItemPath,level:0,visible:o.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemClick:i.onItemClick,onItemMouseenter:i.onItemMouseEnter,onItemMousemove:i.onItemMouseMove},t.ptm("rootList")),null,16,["id","class","tabindex","aria-label","aria-labelledby","aria-disabled","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),t.$slots.end?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[l.renderSlot(t.$slots,"end")],16)):l.createCommentVNode("",!0)],16,Kk)):l.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}pv.render=Yk;var Gk=`
1124
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dk(t,e){if(t){if(typeof t=="string")return Wu(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)?Wu(t,e):void 0}}function Pk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bk(t){if(Array.isArray(t))return Wu(t)}function Wu(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 Rk(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()),Mk(e[0]||(e[0]=[l.createElementVNode("path",{d:"M5.25 11.1728C5.14929 11.1694 5.05033 11.1455 4.9592 11.1025C4.86806 11.0595 4.78666 10.9984 4.72 10.9228C4.57955 10.7822 4.50066 10.5916 4.50066 10.3928C4.50066 10.1941 4.57955 10.0035 4.72 9.86283L7.72 6.86283L4.72 3.86283C4.66067 3.71882 4.64765 3.55991 4.68275 3.40816C4.71785 3.25642 4.79932 3.11936 4.91585 3.01602C5.03238 2.91268 5.17819 2.84819 5.33305 2.83149C5.4879 2.81479 5.64411 2.84671 5.78 2.92283L9.28 6.42283C9.42045 6.56346 9.49934 6.75408 9.49934 6.95283C9.49934 7.15158 9.42045 7.34221 9.28 7.48283L5.78 10.9228C5.71333 10.9984 5.63193 11.0595 5.5408 11.1025C5.44966 11.1455 5.35071 11.1694 5.25 11.1728Z",fill:"currentColor"},null,-1)])),16)}fv.render=Rk;var Vk={name:"BaseTieredMenu",extends:bi,props:{popup:{type:Boolean,default:!1},model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},breakpoint:{type:String,default:"960px"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},disabled:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:Ok,provide:function(){return{$pcTieredMenu:this,$parentInstance:this}}},hv={name:"TieredMenuSub",hostName:"TieredMenu",extends:bi,emits:["item-click","item-mouseenter","item-mousemove"],container:null,props:{menuId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},visible:{type:Boolean,default:!1},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:0}},methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Dt(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,n,r){return this.ptm(r,{context:{item:e.item,index:n,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return Fe(e.items)},onEnter:function(){V9(this.container,this.level)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-click",{originalEvent:e,processedItem:n,isFocus:!0})},onItemMouseEnter:function(e,n){this.$emit("item-mouseenter",{originalEvent:e,processedItem:n})},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:l.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,n,"itemLink")),icon:l.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,n,"itemIcon")),label:l.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,n,"itemLabel")),submenuicon:l.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,n,"submenuIcon"))}},containerRef:function(e){this.container=e}},components:{AngleRightIcon:fv},directives:{ripple:cv}},$k=["tabindex"],Fk=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],zk=["onClick","onMouseenter","onMousemove"],Uk=["href","target"],Hk=["id"],jk=["id"];function Wk(t,e,n,r,o,i){var s=l.resolveComponent("AngleRightIcon"),c=l.resolveComponent("TieredMenuSub",!0),a=l.resolveDirective("ripple");return l.openBlock(),l.createBlock(l.Transition,l.mergeProps({name:"p-anchored-overlay",onEnter:i.onEnter},t.ptm("menu.transition")),{default:l.withCtx(function(){return[n.level===0||n.visible?(l.openBlock(),l.createElementBlock("ul",{key:0,ref:i.containerRef,tabindex:n.tabindex},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,function(u,d){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getItemKey(u)},[i.isItemVisible(u)&&!i.getItemProp(u,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:0,id:i.getItemId(u),style:i.getItemProp(u,"style"),class:[t.cx("item",{processedItem:u}),i.getItemProp(u,"class")],role:"menuitem","aria-label":i.getItemLabel(u),"aria-disabled":i.isItemDisabled(u)||void 0,"aria-expanded":i.isItemGroup(u)?i.isItemActive(u):void 0,"aria-haspopup":i.isItemGroup(u)&&!i.getItemProp(u,"to")?"menu":void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},{ref_for:!0},i.getPTOptions(u,d,"item"),{"data-p-active":i.isItemActive(u),"data-p-focused":i.isItemFocused(u),"data-p-disabled":i.isItemDisabled(u)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,u)},onMouseenter:function(h){return i.onItemMouseEnter(h,u)},onMousemove:function(h){return i.onItemMouseMove(h,u)}},{ref_for:!0},i.getPTOptions(u,d,"itemContent")),[n.templates.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.item),{key:1,item:u.item,hasSubmenu:i.getItemProp(u,"items"),label:i.getItemLabel(u),props:i.getMenuItemProps(u,d)},null,8,["item","hasSubmenu","label","props"])):l.withDirectives((l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(u,"url"),class:t.cx("itemLink"),target:i.getItemProp(u,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions(u,d,"itemLink")),[n.templates.itemicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.itemicon),{key:0,item:u.item,class:l.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(u,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:1,class:[t.cx("itemIcon"),i.getItemProp(u,"icon")]},{ref_for:!0},i.getPTOptions(u,d,"itemIcon")),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({id:i.getItemLabelId(u),class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions(u,d,"itemLabel")),l.toDisplayString(i.getItemLabel(u)),17,Hk),i.getItemProp(u,"items")?(l.openBlock(),l.createElementBlock(l.Fragment,{key:2},[n.templates.submenuicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.submenuicon),l.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(u)},{ref_for:!0},i.getPTOptions(u,d,"submenuIcon")),null,16,["class","active"])):(l.openBlock(),l.createBlock(s,l.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions(u,d,"submenuIcon")),null,16,["class"]))],64)):l.createCommentVNode("",!0)],16,Uk)),[[a]])],16,zk),i.isItemVisible(u)&&i.isItemGroup(u)?(l.openBlock(),l.createBlock(c,l.mergeProps({key:0,id:i.getItemId(u)+"_list",class:t.cx("submenu"),style:t.sx("submenu",!0,{processedItem:u}),"aria-labelledby":i.getItemLabelId(u),role:"menu",menuId:n.menuId,focusedItemId:n.focusedItemId,items:u.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:i.isItemActive(u)&&i.isItemGroup(u),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(f){return t.$emit("item-click",f)}),onItemMouseenter:e[1]||(e[1]=function(f){return t.$emit("item-mouseenter",f)}),onItemMousemove:e[2]||(e[2]=function(f){return t.$emit("item-mousemove",f)})},{ref_for:!0},t.ptm("submenu")),null,16,["id","class","style","aria-labelledby","menuId","focusedItemId","items","templates","activeItemPath","level","visible","pt","unstyled"])):l.createCommentVNode("",!0)],16,Fk)):l.createCommentVNode("",!0),i.isItemVisible(u)&&i.getItemProp(u,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:1,id:i.getItemId(u),style:i.getItemProp(u,"style"),class:[t.cx("separator"),i.getItemProp(u,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,jk)):l.createCommentVNode("",!0)],64)}),128))],8,$k)):l.createCommentVNode("",!0)]}),_:1},16,["onEnter"])}hv.render=Wk;var pv={name:"TieredMenu",extends:Vk,inheritAttrs:!1,emits:["focus","blur","before-show","before-hide","hide","show"],outsideClickListener:null,matchMediaListener:null,scrollHandler:null,resizeListener:null,target:null,container:null,menubar:null,searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],visible:!this.popup,submenuVisible:!1,dirty:!1,query:null,queryMatches:!1}},watch:{activeItemPath:function(e){this.popup||(Fe(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener()))}},mounted:function(){this.bindMatchMediaListener()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&Lc.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,n){return e?Dt(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return Fe(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&Fe(e.items)},toggle:function(e){this.visible?this.hide(e,!0):this.show(e)},show:function(e,n){this.popup&&(this.$emit("before-show"),this.visible=!0,this.target=this.target||e.currentTarget,this.relatedTarget=e.relatedTarget||null),n&&qr(this.menubar)},hide:function(e,n){this.popup&&(this.$emit("before-hide"),this.visible=!1),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},n&&qr(this.relatedTarget||this.target||this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.popup||(this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""}),this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&k9(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,n){var r=e.processedItem,o=e.isFocus;if(!Sn(r)){var i=r.index,s=r.key,c=r.level,a=r.parentKey,u=r.items,d=Fe(u),f=this.activeItemPath.filter(function(h){return h.parentKey!==a&&h.parentKey!==s});d&&(f.push(r),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:c,parentKey:a},d&&(this.dirty=!0),o&&qr(this.menubar),!(n==="hover"&&this.queryMatches)&&(this.activeItemPath=f)}},onOverlayClick:function(e){xk.emit("overlay-click",{originalEvent:e,target:this.target})},onItemClick:function(e){var n=e.originalEvent,r=e.processedItem,o=this.isProccessedItemGroup(r),i=Sn(r.parent),s=this.isSelected(r);if(s){var c=r.index,a=r.key,u=r.level,d=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(h){return a!==h.key&&a.startsWith(h.key)}),this.focusedItemInfo={index:c,level:u,parentKey:d},this.dirty=!i,qr(this.menubar)}else if(o)this.onItemChange(e);else{var f=i?r:this.activeItemPath.find(function(h){return h.parentKey===""});this.hide(n),this.changeFocusedItemIndex(n,f?f.index:-1),qr(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},onArrowDownKey:function(e){var n=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,n),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey){if(this.focusedItemInfo.index!==-1){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);!r&&this.onItemChange({originalEvent:e,processedItem:n})}this.popup&&this.hide(e,!0),e.preventDefault()}else{var o=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onArrowLeftKey:function(e){var n=this,r=this.visibleItems[this.focusedItemInfo.index],o=this.activeItemPath.find(function(s){return s.key===r.parentKey}),i=Sn(r.parent);i||(this.focusedItemInfo={index:-1,parentKey:o?o.parentKey:""},this.searchValue="",this.onArrowDownKey(e)),this.activeItemPath=this.activeItemPath.filter(function(s){return s.parentKey!==n.focusedItemInfo.parentKey}),e.preventDefault()},onArrowRightKey:function(e){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);r&&(this.onItemChange({originalEvent:e,processedItem:n}),this.focusedItemInfo={index:-1,parentKey:n.key},this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var n=Ui(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&Ui(n,'[data-pc-section="itemlink"]');if(r?r.click():n&&n.click(),!this.popup){var o=this.visibleItems[this.focusedItemInfo.index],i=this.isProccessedItemGroup(o);!i&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.popup||this.focusedItemInfo.level!==0){var n=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(n.parentKey.split("_")[0]),level:0,parentKey:""},this.popup&&qr(this.target)}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var n=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(n);!r&&this.onItemChange({originalEvent:e,processedItem:n})}this.hide()},onEnter:function(e){this.autoZIndex&&Lc.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),jg(e,{position:"absolute",top:"0"}),this.alignOverlay(),qr(this.menubar),this.scrollInView()},onAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.container=null,this.dirty=!1},onAfterLeave:function(e){this.autoZIndex&&Lc.clear(e)},alignOverlay:function(){N9(this.container,this.target);var e=zi(this.target);e>zi(this.container)&&(this.container.style.minWidth=zi(this.target)+"px")},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){var r=e.container&&!e.container.contains(n.target),o=e.popup?!(e.target&&(e.target===n.target||e.target.contains(n.target))):!0;r&&o&&e.hide()},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Ak(this.target,function(n){e.hide(n,!0)})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(n){R9()||e.hide(n,!0)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var n=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=n,this.queryMatches=n.matches,this.matchMediaListener=function(){e.queryMatches=n.matches},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getProccessedItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(n){return e.isValidItem(n)})},findLastItemIndex:function(){var e=this;return bp(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItemIndex:function(e){var n=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(o){return n.isValidItem(o)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var n=this,r=e>0?bp(this.visibleItems.slice(0,e),function(o){return n.isValidItem(o)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(n){return e.isValidSelectedItem(n)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=-1,i=!1;return this.focusedItemInfo.index!==-1?(o=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(s){return r.isItemMatched(s)}),o=o===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(s){return r.isItemMatched(s)}):o+this.focusedItemInfo.index):o=this.visibleItems.findIndex(function(s){return r.isItemMatched(s)}),o!==-1&&(i=!0),o===-1&&this.focusedItemInfo.index===-1&&(o=this.findFirstFocusedItemIndex()),o!==-1&&this.changeFocusedItemIndex(e,o),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItemIndex:function(e,n){this.focusedItemInfo.index!==n&&(this.focusedItemInfo.index=n,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,n=e!==-1?"".concat(this.$id,"_").concat(e):this.focusedItemId,r=Ui(this.menubar,'li[id="'.concat(n,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(c,a){var u=(i!==""?i+"_":"")+a,d={item:c,index:a,level:r,key:u,parent:o,parentKey:i};d.items=n.createProcessedItems(c.items,r+1,d,u),s.push(d)}),s},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,n=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return n?n.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.$id).concat(Fe(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{TieredMenuSub:hv,Portal:dv}},Kk=["id"];function Yk(t,e,n,r,o,i){var s=l.resolveComponent("TieredMenuSub"),c=l.resolveComponent("Portal");return l.openBlock(),l.createBlock(c,{appendTo:t.appendTo,disabled:!t.popup},{default:l.withCtx(function(){return[l.createVNode(l.Transition,l.mergeProps({name:"p-anchored-overlay",onEnter:i.onEnter,onAfterEnter:i.onAfterEnter,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave},t.ptm("transition")),{default:l.withCtx(function(){return[o.visible?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,ref:i.containerRef,id:t.$id,class:t.cx("root"),onClick:e[0]||(e[0]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)})},t.ptmi("root")),[t.$slots.start?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[l.renderSlot(t.$slots,"start")],16)):l.createCommentVNode("",!0),l.createVNode(s,l.mergeProps({ref:i.menubarRef,id:t.$id+"_list",class:t.cx("rootList"),tabindex:t.disabled?-1:t.tabindex,role:"menubar","aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-disabled":t.disabled||void 0,"aria-orientation":"vertical","aria-activedescendant":o.focused?i.focusedItemId:void 0,menuId:t.$id,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:t.$slots,activeItemPath:o.activeItemPath,level:0,visible:o.submenuVisible,pt:t.pt,unstyled:t.unstyled,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemClick:i.onItemClick,onItemMouseenter:i.onItemMouseEnter,onItemMousemove:i.onItemMouseMove},t.ptm("rootList")),null,16,["id","class","tabindex","aria-label","aria-labelledby","aria-disabled","aria-activedescendant","menuId","focusedItemId","items","templates","activeItemPath","visible","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),t.$slots.end?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[l.renderSlot(t.$slots,"end")],16)):l.createCommentVNode("",!0)],16,Kk)):l.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}pv.render=Yk;var Gk=`
1125
1125
  .p-splitbutton {
1126
1126
  display: inline-flex;
1127
1127
  position: relative;
@@ -1170,23 +1170,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1170
1170
  .p-splitbutton-raised {
1171
1171
  box-shadow: dt('splitbutton.raised.shadow');
1172
1172
  }
1173
- `,Qk={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"},Zk=ct.extend({name:"splitbutton",style:Gk,classes:Qk}),Jk={name:"BaseSplitButton",extends:bi,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:Zk,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},mv={name:"SplitButton",extends:Jk,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 Sn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:uv,PVSMenu:pv,ChevronDownIcon:sv}},Xk=["data-p-severity"];function qk(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":o.isExpanded?t.$id+"_overlay":void 0,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,Xk)}mv.render=qk;const ew=["src"],tw={class:"menu-item"},nw=["src"],gv={__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const{t:n}=$t(),r=t,o=e,i=l.computed(()=>r.contentLibraryProviders.map(f=>({label:f.label,image:f.img,value:f.value,command:()=>o("content-library",f.value)}))),s=l.computed(()=>{let f=i.value;return f.length!==0&&r.isExternalOnly&&(f=f.slice(1)),f}),c=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0?f[0].label:n("contentLibrarySplitButton.messageTemplatesTitle")}),a=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0}),u=l.computed(()=>{const f=i.value;return f.length>0?f[0].image:""}),d=()=>{const f=i.value;let h="message-template";r.isExternalOnly&&f.length>0&&(h=f[0].value),o("content-library",h)};return(f,h)=>(l.openBlock(),l.createBlock(l.unref(mv),{class:"bd-content-library-split-button",model:s.value,outlined:"",severity:"secondary",onClick:d},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:u.value,alt:""},null,8,ew)):(l.openBlock(),l.createBlock($d,{key:1})),l.createElementVNode("span",null,l.toDisplayString(c.value),1)]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",tw,[l.createElementVNode("img",{src:p.image,alt:"",class:"icon-image"},null,8,nw),l.createElementVNode("span",null,l.toDisplayString(p.label),1)])]),_:1},8,["model"]))}},rw={class:"invalid-feedback bd-invalid-feedback"},ql=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",rw,[e.state?(l.openBlock(),l.createBlock(l.unref(gi),{key:0})):(l.openBlock(),l.createBlock(l.unref(Wl),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});var ow=Object.defineProperty,iw=(t,e,n)=>e in t?ow(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hi=(t,e,n)=>iw(t,typeof e!="symbol"?e+"":e,n);const jp={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Wp=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Kp=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},sw=(t,e=!0,n)=>{var r,o,i,s;const c=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",a=((o=n.number)==null?void 0:o.fraction)??0;let u=Kp(0,a,n);const d=u.formatToParts(1000.12),f=((i=d.find(v=>v.type==="group"))==null?void 0:i.value)??" ",h=((s=d.find(v=>v.type==="decimal"))==null?void 0:s.value)??".",p=Wp(t,f,h);if(Number.isNaN(parseFloat(p)))return c;const m=p.split(".");if(m[1]!=null&&m[1].length>=1){const v=m[1].length<=a?m[1].length:a;u=Kp(v,a,n)}let g=u.format(parseFloat(p));return e?a>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(g+=h):g=Wp(g,f,h),c+g},vv=t=>JSON.parse(t.replaceAll("'",'"')),aw=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=lw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=sa(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=sa(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=sa(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=cw(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=sa(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},sa=t=>t!==""?!!JSON.parse(t):!0,lw=t=>t.startsWith("[")&&t.endsWith("]")?vv(t):t,cw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return vv(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:yv()?new RegExp(r[1],"u"):new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e},yv=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};class uw{constructor(e={}){Hi(this,"opts",{}),Hi(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...jp,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=yv()?new RegExp(r.pattern,"u"):new RegExp(r.pattern))}else n.tokens=jp;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(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(String(e));if(this.opts.mask==null||n==null)return!1;const r=this.process(String(e),n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.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(this.opts.number!=null)return sw(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${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:{},u=this.isReversed()?-1:1,d=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&y>-1:()=>v<i.length&&y<e.length,p=E=>!this.isReversed()&&E<=f||this.isReversed()&&E>=f;let m,g=-1,v=this.isReversed()?i.length-1:0,y=this.isReversed()?e.length-1:0,b=!1;for(;h();){const E=i.charAt(v),C=a[E],S=C?.transform!=null?C.transform(e.charAt(y)):e.charAt(y);if(!s.includes(v)&&C!=null?(S.match(C.pattern)!=null?(c[d](S),C.repeated?(g===-1?g=v:v===f&&v!==g&&(v=g-u),f===g&&(v-=u)):C.multiple&&(b=!0,v-=u),v+=u):C.multiple?b&&(v+=u,y-=u,b=!1):S===m?m=void 0:C.optional&&(v+=u,y-=u),y+=u):(r&&!this.isEager()&&c[d](E),S===E&&!this.isEager()?y+=u:m=E,this.isEager()||(v+=u)),this.isEager())for(;p(v)&&(a[i.charAt(v)]==null||s.includes(v));){if(r){if(c[d](i.charAt(v)),e.charAt(y)===i.charAt(v)){v+=u,y+=u;continue}}else i.charAt(v)===e.charAt(y)&&(y+=u);v+=u}}return this.memo.set(o,c.join("")),this.memo.get(o)}}let dw=class{constructor(e,n={}){Hi(this,"items",new Map),Hi(this,"eventAbortController"),Hi(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,i=this.items.get(o);if(i===void 0)return;const s="inputType"in r&&r.inputType.startsWith("delete"),c=i.isEager(),a=s&&c&&i.unmasked(o.value)===""?"":o.value;this.fixCursor(o,s,()=>this.setValue(o,a))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){var n;e.value!==""&&e.value!==((n=this.processInput(e))==null?void 0:n.masked)&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:i}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:i})}const o=new uw(aw(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}fixCursor(e,n,r){var o,i;const s=e.selectionStart,c=e.value;if(r(),s===null||s===c.length&&!n)return;const a=e.value,u=c.slice(0,s),d=a.slice(0,s),f=(o=this.processInput(e,u))==null?void 0:o.unmasked,h=(i=this.processInput(e,d))==null?void 0:i.unmasked;if(f===void 0||h===void 0)return;let p=s;u!==d&&(p+=n?a.length-c.length:f.length-h.length),e.setSelectionRange(p,p)}setValue(e,n){const r=this.processInput(e,n);r!==void 0&&(e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked})))}processInput(e,n){const r=this.items.get(e);if(r===void 0)return;let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let i=r.masked(o);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Bc=new WeakMap,fw=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},hw=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||r?.type==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const i=s=>{const c=e.modifiers.unmasked?s.unmasked:e.modifiers.completed?s.completed:s.masked;fw(e,c)};o.onMaska=o.onMaska==null?i:Array.isArray(o.onMaska)?[...o.onMaska,i]:[o.onMaska,i]}Bc.has(r)?(n=Bc.get(r))==null||n.update(o):Bc.set(r,new dw(r,o))},pw=["value","type"],Ir=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:lt.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,r=e,{uniqueIdentifier:o}=vi(),i=Oo(n,"modelValue",r),s=`__BD__FORM__LABEL__${o.value}`,c=`__BD__FORM__GROUP__${o.value}`,a=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():o.value}`,u=`validationFeedback${n.label?n.label.replace(/ /g,""):o.value}`,d=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),h=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?u:null,"data-maska":n.mask})),p=t6(m=>{i.value=m.target.value},n.delayTimeMs);return(m,g)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",t.formGroupClass]),id:c},[l.renderSlot(m.$slots,"label",{},()=>[t.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:a,id:s,class:l.normalizeClass(["form-label",t.labelClass])},l.toDisplayString(t.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(t.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:t.modelValue,type:t.type,id:a,class:["form-control",d.value]},h.value,{onInput:g[0]||(g[0]=(...v)=>l.unref(p)&&l.unref(p)(...v)),onClick:g[1]||(g[1]=v=>m.$emit("click")),onBlur:g[2]||(g[2]=v=>m.$emit("blur")),onKeydown:g[3]||(g[3]=l.withKeys(v=>m.$emit("enter"),["enter"]))}),null,16,pw),[[l.unref(hw)]]),l.renderSlot(m.$slots,"default")],2),l.createVNode(ql,{text:t.invalidFeedbackText,class:l.normalizeClass(f.value),state:t.state,id:u},null,8,["text","class","state"])],2))}}),mw={class:"input-group bd-input-group"},gw=["for"],Cs=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=l.useAttrs(),n=t;return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",mw,[n.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:n.labelForId,class:"form-label"},l.toDisplayString(n.label),9,gw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(e).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),vw={key:0},yw={key:1},bv=l.defineComponent({__name:"BDBadge",props:{variant:{default:Yl.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)},[t.variant==="danger"?(l.openBlock(),l.createElementBlock("span",vw,[l.createVNode(l.unref(Ur))])):l.createCommentVNode("",!0),t.variant==="success"?(l.openBlock(),l.createElementBlock("span",yw,[l.createVNode(l.unref(gi))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),Cv=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){const n=e;function r(){n("submit")}function o(){n("reset")}return(i,s)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(r,["prevent"]),onReset:l.withModifiers(o,["prevent"])},[l.renderSlot(i.$slots,"default")],32))}}),bw={"aria-label":"Page navigation",class:"bd-pagination"},Cw={class:"page-item"},Ew=["data-page"],kw=["data-page"],ww={class:"page-item"},Sw=["data-page"],mf=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=e,o=Oo(n,"modelValue",r),i=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),s=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{i.value=Math.ceil(n.totalRows/n.rowsPerPage),s.value=f(o.value)}),l.onMounted(()=>{s.value=f(o.value)});const c=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),a=h=>{const p=h.currentTarget.getAttribute("data-page"),m=Number(p);isNaN(Number(m))||(o.value=m,s.value=f(m)),r("click",m)},u=(h,p,m)=>m<=p?m:h==1?6:h<=4?5:1,d=(h,p,m)=>m<=p?0:h==m?6:h>m-4?5:1,f=h=>{const p=[],g=u(h,7,i.value),v=i.value>7&&h>4,y=i.value>7&&h<i.value-3,b=v&&y,E=d(h,7,i.value);for(let C=1;C<=g;C++)p.push(C);if(v&&p.push("..."),b)for(let C=h-1;C<=h+1;C++)p.push(C);y&&p.push("...");for(let C=1;C<=E;C++)p.push(i.value-E+C);return p};return(h,p)=>(l.openBlock(),l.createElementBlock("div",bw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",c.value])},[l.withDirectives(l.createElementVNode("li",Cw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:a,"data-page":l.unref(o)-1},[l.createVNode(l.unref(Rd))],8,Ew)],512),[[l.vShow,l.unref(o)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(o)===m,disabled:typeof m=="string"}]),key:m},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:a,"data-page":m},l.toDisplayString(m),9,kw)],2))),128)),l.withDirectives(l.createElementVNode("li",ww,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:a,"data-page":l.unref(o)+1},[l.createVNode(l.unref(Vd))],8,Sw)],512),[[l.vShow,l.unref(o)<i.value]])],2)]))}}),Aw=["disabled"],xw=["label"],Tw=["value"],Iw=["value"],Ev=l.defineComponent({__name:"BDFormSelect",props:{size:{default:lt.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=e,o=Oo(n,"modelValue",r),i=l.ref(null),{focused:s}=i6(i,{initialValue:n.autofocus}),c=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,f=>{f&&(s.value=!0)});const a=f=>{o.value=f.target.value;let h=d(f.target.value);r("input",h)},u=f=>{let h=d(f.target.value);r("change",h)},d=f=>{try{return JSON.parse(f)}catch{return f}};return(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(c.value),"onUpdate:modelValue":h[0]||(h[0]=p=>l.isRef(o)?o.value=p:null),disabled:n.disabled,ref_key:"input",ref:i,onInput:a,onChange:u},[l.renderSlot(f.$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,p=>(l.openBlock(),l.createElementBlock("optgroup",{label:p.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,m=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(m.value),key:m.value},l.toDisplayString(m.text),9,Tw))),128))],8,xw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("option",{value:p.value,key:p.value},l.toDisplayString(p.text),9,Iw))),128))],42,Aw)),[[l.vModelSelect,l.unref(o)]])}}),_w=["value","true-value","false-value","data-checked"],Pr=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{uniqueIdentifier:n}=vi(),r=t,o=e,i=Oo(r,"modelValue",o),s=`form-check-input-${n.value}`,c=l.computed(()=>["form-check","bd-form-checkbox"]),a=l.computed(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),u=d=>o("change",d.target.value);return(d,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(i)?i.value=h:null),id:s,class:l.normalizeClass(a.value),type:"checkbox",value:t.value,"true-value":t.value,"false-value":t.uncheckedValue,"data-checked":l.unref(i)===t.value,onChange:u},null,42,_w),[[l.vModelCheckbox,l.unref(i)]]),l.createElementVNode("label",{class:"form-check-label",for:s},[l.renderSlot(d.$slots,"default")]),l.renderSlot(d.$slots,"last")],2))}}),Nw={key:0,class:"bd-article__body"},Ow={key:1},kv=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=e,o=i=>r("click",{event:i,identifier:n.identifier});return(i,s)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:o},[l.createElementVNode("header",null,[l.renderSlot(i.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Nw,[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",Ow,[l.renderSlot(i.$slots,"footer")]))]))}}),Xo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},Mw=["id"],Lw={class:"toast-header"},Dw={class:"toast-body"},gf=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Xo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Xo.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",Lw,[r.value?(l.openBlock(),l.createBlock(l.unref(Ur),{key:0})):(l.openBlock(),l.createBlock(l.unref(gi),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),i[0]||(i[0]=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1))]),l.createElementVNode("div",Dw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,Mw))}}),_e="",aa=t=>typeof t=="string"||t instanceof String,Pw={class:"bd-pill"},Bw=["src"],Rw={class:"bd-pill__description"},Vw=["href"],$w=["id","textContent","title"],Fw=["id","textContent","title"],ec=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:_e},uri:{default:_e},uriDisplayName:{default:_e},title:{default:_e},subtitle:{default:_e},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const{uniqueIdentifier:n}=vi(),r=t,o=l.computed(()=>r.uri),i=l.computed(()=>r.uriDisplayName!==_e?r.uriDisplayName:r.uri),s=l.computed(()=>r.imgSrc),c=l.computed(()=>r.title),a=l.computed(()=>r.subtitle),u=l.computed(()=>`bd-pill-title-${n.value}`),d=l.computed(()=>`bd-pill-subtitle-${n.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",Pw,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,Bw),l.createElementVNode("div",Rw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(Kl),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Vw),l.createElementVNode("span",{class:"bd-pill__title",id:u.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,$w),l.createElementVNode("span",{class:"bd-pill__subtitle",id:d.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Fw)])]))}});function zw(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}function Uw(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(d){try{u(r.next(d))}catch(f){s(f)}}function a(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(c,a)}u((r=r.apply(t,e||[])).next())})}const Hw=t=>Array.isArray(t)&&t.length>0,jw=t=>Object.keys(t).map(e=>t[e]),Rc=t=>Array.isArray(t)&&t.length>0,wv=t=>!t||Array.isArray(t)&&!t.length,vf={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=zw(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),u=l.h("small",null,jw(o).filter(f=>f).join(" • ")),d=l.h("div",{class:"bd-user-information__detail"},[a,u]);return l.h("div",{class:"bd-user-information"},[i,d])}},Yp={displayTime:!0,format:"numeric"};function Ci(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ta={exports:{}},Ww=Ta.exports,Gp;function Sv(){return Gp||(Gp=1,(function(t,e){(function(n,r){t.exports=r()})(Ww,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",u="day",d="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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(F){var z=["th","st","nd","rd"],$=F%100;return"["+F+(z[($-20)%10]||z[$]||z[0])+"]"}},E=function(F,z,$){var J=String(F);return!J||J.length>=z?F:""+Array(z+1-J.length).join($)+F},C={s:E,z:function(F){var z=-F.utcOffset(),$=Math.abs(z),J=Math.floor($/60),U=$%60;return(z<=0?"+":"-")+E(J,2,"0")+":"+E(U,2,"0")},m:function F(z,$){if(z.date()<$.date())return-F($,z);var J=12*($.year()-z.year())+($.month()-z.month()),U=z.clone().add(J,f),q=$-U<0,te=z.clone().add(J+(q?-1:1),f);return+(-(J+($-U)/(q?U-te:te-U))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:p,w:d,d:u,D:m,h:a,m:c,s,ms:i,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},S="en",_={};_[S]=b;var T="$isDayjsObject",D=function(F){return F instanceof j||!(!F||!F[T])},Y=function F(z,$,J){var U;if(!z)return S;if(typeof z=="string"){var q=z.toLowerCase();_[q]&&(U=q),$&&(_[q]=$,U=q);var te=z.split("-");if(!U&&te.length>1)return F(te[0])}else{var se=z.name;_[se]=z,U=se}return!J&&U&&(S=U),U||!J&&S},V=function(F,z){if(D(F))return F.clone();var $=typeof z=="object"?z:{};return $.date=F,$.args=arguments,new j($)},H=C;H.l=Y,H.i=D,H.w=function(F,z){return V(F,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var j=(function(){function F($){this.$L=Y($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var z=F.prototype;return z.parse=function($){this.$d=(function(J){var U=J.date,q=J.utc;if(U===null)return new Date(NaN);if(H.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var te=U.match(v);if(te){var se=te[2]-1||0,he=(te[7]||"0").substring(0,3);return q?new Date(Date.UTC(te[1],se,te[3]||1,te[4]||0,te[5]||0,te[6]||0,he)):new Date(te[1],se,te[3]||1,te[4]||0,te[5]||0,te[6]||0,he)}}return new Date(U)})($),this.init()},z.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},z.$utils=function(){return H},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function($,J){var U=V($);return this.startOf(J)<=U&&U<=this.endOf(J)},z.isAfter=function($,J){return V($)<this.startOf(J)},z.isBefore=function($,J){return this.endOf(J)<V($)},z.$g=function($,J,U){return H.u($)?this[J]:this.set(U,$)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function($,J){var U=this,q=!!H.u(J)||J,te=H.p($),se=function(M,I){var O=H.w(U.$u?Date.UTC(U.$y,I,M):new Date(U.$y,I,M),U);return q?O:O.endOf(u)},he=function(M,I){return H.w(U.toDate()[M].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(I)),U)},pe=this.$W,ye=this.$M,Ce=this.$D,Ae="set"+(this.$u?"UTC":"");switch(te){case p:return q?se(1,0):se(31,11);case f:return q?se(1,ye):se(0,ye+1);case d:var ge=this.$locale().weekStart||0,N=(pe<ge?pe+7:pe)-ge;return se(q?Ce-N:Ce+(6-N),ye);case u:case m:return he(Ae+"Hours",0);case a:return he(Ae+"Minutes",1);case c:return he(Ae+"Seconds",2);case s:return he(Ae+"Milliseconds",3);default:return this.clone()}},z.endOf=function($){return this.startOf($,!1)},z.$set=function($,J){var U,q=H.p($),te="set"+(this.$u?"UTC":""),se=(U={},U[u]=te+"Date",U[m]=te+"Date",U[f]=te+"Month",U[p]=te+"FullYear",U[a]=te+"Hours",U[c]=te+"Minutes",U[s]=te+"Seconds",U[i]=te+"Milliseconds",U)[q],he=q===u?this.$D+(J-this.$W):J;if(q===f||q===p){var pe=this.clone().set(m,1);pe.$d[se](he),pe.init(),this.$d=pe.set(m,Math.min(this.$D,pe.daysInMonth())).$d}else se&&this.$d[se](he);return this.init(),this},z.set=function($,J){return this.clone().$set($,J)},z.get=function($){return this[H.p($)]()},z.add=function($,J){var U,q=this;$=Number($);var te=H.p(J),se=function(ye){var Ce=V(q);return H.w(Ce.date(Ce.date()+Math.round(ye*$)),q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===u)return se(1);if(te===d)return se(7);var he=(U={},U[c]=r,U[a]=o,U[s]=n,U)[te]||1,pe=this.$d.getTime()+$*he;return H.w(pe,this)},z.subtract=function($,J){return this.add(-1*$,J)},z.format=function($){var J=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",te=H.z(this),se=this.$H,he=this.$m,pe=this.$M,ye=U.weekdays,Ce=U.months,Ae=U.meridiem,ge=function(I,O,k,w){return I&&(I[O]||I(J,q))||k[O].slice(0,w)},N=function(I){return H.s(se%12||12,I,"0")},M=Ae||function(I,O,k){var w=I<12?"AM":"PM";return k?w.toLowerCase():w};return q.replace(y,(function(I,O){return O||(function(k){switch(k){case"YY":return String(J.$y).slice(-2);case"YYYY":return H.s(J.$y,4,"0");case"M":return pe+1;case"MM":return H.s(pe+1,2,"0");case"MMM":return ge(U.monthsShort,pe,Ce,3);case"MMMM":return ge(Ce,pe);case"D":return J.$D;case"DD":return H.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return ge(U.weekdaysMin,J.$W,ye,2);case"ddd":return ge(U.weekdaysShort,J.$W,ye,3);case"dddd":return ye[J.$W];case"H":return String(se);case"HH":return H.s(se,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return M(se,he,!0);case"A":return M(se,he,!1);case"m":return String(he);case"mm":return H.s(he,2,"0");case"s":return String(J.$s);case"ss":return H.s(J.$s,2,"0");case"SSS":return H.s(J.$ms,3,"0");case"Z":return te}return null})(I)||te.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function($,J,U){var q,te=this,se=H.p(J),he=V($),pe=(he.utcOffset()-this.utcOffset())*r,ye=this-he,Ce=function(){return H.m(te,he)};switch(se){case p:q=Ce()/12;break;case f:q=Ce();break;case h:q=Ce()/3;break;case d:q=(ye-pe)/6048e5;break;case u:q=(ye-pe)/864e5;break;case a:q=ye/o;break;case c:q=ye/r;break;case s:q=ye/n;break;default:q=ye}return U?q:H.a(q)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return _[this.$L]},z.locale=function($,J){if(!$)return this.$L;var U=this.clone(),q=Y($,J,!0);return q&&(U.$L=q),U},z.clone=function(){return H.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},F})(),K=j.prototype;return V.prototype=K,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",u],["$M",f],["$y",p],["$D",m]].forEach((function(F){K[F[1]]=function(z){return this.$g(z,F[0],F[1])}})),V.extend=function(F,z){return F.$i||(F(z,j,V),F.$i=!0),V},V.locale=Y,V.isDayjs=D,V.unix=function(F){return V(1e3*F)},V.en=_[S],V.Ls=_,V.p={},V}))})(Ta)),Ta.exports}var Kw=Sv();const Kt=Ci(Kw);var Ia={exports:{}},Yw=Ia.exports,Qp;function Gw(){return Qp||(Qp=1,(function(t,e){(function(n,r){t.exports=r(Sv())})(Yw,(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}))})(Ia)),Ia.exports}Gw();var _a={exports:{}},Qw=_a.exports,Zp;function Zw(){return Zp||(Zp=1,(function(t,e){(function(n,r){t.exports=r()})(Qw,(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={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),E=60*b[1]+(+b[2]||0);return E===0?0:b[0]==="+"?-E:E})(v)}],h=function(v){var y=a[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,E=a.meridiem;if(E){for(var C=1;C<=24;C+=1)if(v.indexOf(E(C,0,y))>-1){b=C>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[c,function(v){this.afternoon=p(v,!1)}],a:[c,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[i,d("day")],Do:[c,function(v){var y=a.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[c,function(v){var y=h("months"),b=(h("monthsShort")||y.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[c,function(v){var y=h("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(v){var y,b;y=v,b=a&&a.formats;for(var E=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,H,j){var K=j&&j.toUpperCase();return H||b[j]||n[j]||b[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,z,$){return z||$.slice(1)}))}))).match(r),C=E.length,S=0;S<C;S+=1){var _=E[S],T=m[_],D=T&&T[0],Y=T&&T[1];E[S]=Y?{regex:D,parser:Y}:_.replace(/^\[|\]$/g,"")}return function(V){for(var H={},j=0,K=0;j<C;j+=1){var F=E[j];if(typeof F=="string")K+=F.length;else{var z=F.regex,$=F.parser,J=V.slice(K),U=z.exec(J)[0];$.call(H,U),V=V.replace(U,"")}}return(function(q){var te=q.afternoon;if(te!==void 0){var se=q.hours;te?se<12&&(q.hours+=12):se===12&&(q.hours=0),delete q.afternoon}})(H),H}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var E=y.prototype,C=E.parse;E.parse=function(S){var _=S.date,T=S.utc,D=S.args;this.$u=T;var Y=D[1];if(typeof Y=="string"){var V=D[2]===!0,H=D[3]===!0,j=V||H,K=D[2];H&&(K=D[2]),a=this.$locale(),!V&&K&&(a=b.Ls[K]),this.$d=(function(J,U,q,te){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*J);var se=g(U)(J),he=se.year,pe=se.month,ye=se.day,Ce=se.hours,Ae=se.minutes,ge=se.seconds,N=se.milliseconds,M=se.zone,I=se.week,O=new Date,k=ye||(he||pe?1:O.getDate()),w=he||O.getFullYear(),P=0;he&&!pe||(P=pe>0?pe-1:O.getMonth());var R,W=Ce||0,G=Ae||0,A=ge||0,x=N||0;return M?new Date(Date.UTC(w,P,k,W,G,A,x+60*M.offset*1e3)):q?new Date(Date.UTC(w,P,k,W,G,A,x)):(R=new Date(w,P,k,W,G,A,x),I&&(R=te(R).week(I).toDate()),R)}catch{return new Date("")}})(_,Y,T,b),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),j&&_!=this.format(Y)&&(this.$d=new Date("")),a={}}else if(Y instanceof Array)for(var F=Y.length,z=1;z<=F;z+=1){D[1]=Y[z-1];var $=b.apply(this,D);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}z===F&&(this.$d=new Date(""))}else C.call(this,S)}}}))})(_a)),_a.exports}var Jw=Zw();const Xw=Ci(Jw);var Na={exports:{}},qw=Na.exports,Jp;function eS(){return Jp||(Jp=1,(function(t,e){(function(n,r){t.exports=r()})(qw,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(Na)),Na.exports}var tS=eS();const nS=Ci(tS);var Oa={exports:{}},rS=Oa.exports,Xp;function oS(){return Xp||(Xp=1,(function(t,e){(function(n,r){t.exports=r()})(rS,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(Oa)),Oa.exports}var iS=oS();const sS=Ci(iS);var Ma={exports:{}},aS=Ma.exports,qp;function lS(){return qp||(qp=1,(function(t,e){(function(n,r){t.exports=r()})(aS,(function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(r).add(1,r).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var h=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},c.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}}))})(Ma)),Ma.exports}var cS=lS();const uS=Ci(cS);Kt.extend(Xw);Kt.locale("nl");Kt.extend(nS);Kt.extend(sS);Kt.extend(uS);const Ku=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function Av(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0);if(!n.isValid())return"";const r=e.startOf("day");if(n.isSame(r,"day"))return"Vandaag";const o=r.subtract(1,"day");if(n.isSame(o,"day"))return"Gisteren";const i=r.subtract(6,"day");if(n.isSameOrAfter(i)&&n.isBefore(r))return Ku(n.format("dddd"));const s=r.subtract(7,"day");return n.isSame(s)||n.isSame(e,"year")?n.format("D MMMM"):n.format("DD-MM-YYYY")}function xv(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0),r=t.includes(" ")&&t.includes(":");if(!n.isValid())return"";const o=e.startOf("day");if(n.isSame(o,"day"))return r?n.format("H:mm"):"Vandaag";const i=o.subtract(1,"day");if(n.isSame(i,"day"))return r?`Gisteren ${n.format("H:mm")}`:"Gisteren";const s=o.subtract(6,"day");if(n.isSameOrAfter(s)&&n.isBefore(o))return Ku(r?n.format("dddd H:mm"):n.format("dddd"));const c=o.subtract(7,"day");return n.isSame(c)||n.isSame(e,"year")?r?n.format("D MMM H:mm"):n.format("D MMMM"):n.format("DD-MM-YYYY")}function Yu(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0),n=t.includes(" ")&&t.includes(":");return e.isValid()?n&&e.isSame(Kt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function Gu(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0);return e.isValid()?e.format("DD-MM-YYYY"):""}const dS={class:"bd-date"},Tv=l.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:Yp.displayTime},format:{default:Yp.format}},setup(t){const e=t,n=l.computed(()=>e.date?e.format==="textual"?e.displayTime?xv(e.date):Av(e.date):(e.format==="numeric",e.displayTime?Yu(e.date):Gu(e.date)):"");return(r,o)=>(l.openBlock(),l.createElementBlock("span",dS,l.toDisplayString(n.value),1))}}),Za=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,o=()=>{r("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},i.$attrs),[l.createVNode(Co,l.mergeProps({class:"dropdown-item",onClick:o},n),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var Vc={exports:{}},e1;function fS(){return e1||(e1=1,(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 u=a(111);s.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}}),1223:(function(s,c,a){var u=a(5112),d=a(30),f=a(3070),h=u("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:d(null)}),s.exports=function(m){p[h][m]=!0}}),1530:(function(s,c,a){var u=a(8710).charAt;s.exports=function(d,f,h){return f+(h?u(d,f).length:1)}}),5787:(function(s){s.exports=function(c,a,u){if(!(c instanceof a))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}}),9670:(function(s,c,a){var u=a(111);s.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}}),4019:(function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(s,c,a){var u=a(4019),d=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),v=a(1320),y=a(3070).f,b=a(9518),E=a(7674),C=a(5112),S=a(9711),_=f.Int8Array,T=_&&_.prototype,D=f.Uint8ClampedArray,Y=D&&D.prototype,V=_&&b(_),H=T&&b(T),j=Object.prototype,K=j.isPrototypeOf,F=C("toStringTag"),z=S("TYPED_ARRAY_TAG"),$=u&&!!E&&m(f.opera)!=="Opera",J=!1,U,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},se=function(N){if(!h(N))return!1;var M=m(N);return M==="DataView"||p(q,M)||p(te,M)},he=function(ge){if(!h(ge))return!1;var N=m(ge);return p(q,N)||p(te,N)},pe=function(ge){if(he(ge))return ge;throw TypeError("Target is not a typed array")},ye=function(ge){if(E){if(K.call(V,ge))return ge}else for(var N in q)if(p(q,U)){var M=f[N];if(M&&(ge===M||K.call(M,ge)))return ge}throw TypeError("Target is not a typed array constructor")},Ce=function(ge,N,M){if(d){if(M)for(var I in q){var O=f[I];O&&p(O.prototype,ge)&&delete O.prototype[ge]}(!H[ge]||M)&&v(H,ge,M?N:$&&T[ge]||N)}},Ae=function(ge,N,M){var I,O;if(d){if(E){if(M)for(I in q)O=f[I],O&&p(O,ge)&&delete O[ge];if(!V[ge]||M)try{return v(V,ge,M?N:$&&_[ge]||N)}catch{}else return}for(I in q)O=f[I],O&&(!O[ge]||M)&&v(O,ge,N)}};for(U in q)f[U]||($=!1);if((!$||typeof V!="function"||V===Function.prototype)&&(V=function(){throw TypeError("Incorrect invocation")},$))for(U in q)f[U]&&E(f[U],V);if((!$||!H||H===j)&&(H=V.prototype,$))for(U in q)f[U]&&E(f[U].prototype,H);if($&&b(Y)!==H&&E(Y,H),d&&!p(H,F)){J=!0,y(H,F,{get:function(){return h(this)?this[z]:void 0}});for(U in q)f[U]&&g(f[U],z,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:J&&z,aTypedArray:pe,aTypedArrayConstructor:ye,exportTypedArrayMethod:Ce,exportTypedArrayStaticMethod:Ae,isView:se,isTypedArray:he,TypedArray:V,TypedArrayPrototype:H}}),3331:(function(s,c,a){var u=a(7854),d=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),v=a(9958),y=a(7466),b=a(7067),E=a(1179),C=a(9518),S=a(7674),_=a(8006).f,T=a(3070).f,D=a(1285),Y=a(8003),V=a(9909),H=V.get,j=V.set,K="ArrayBuffer",F="DataView",z="prototype",$="Wrong length",J="Wrong index",U=u[K],q=U,te=u[F],se=te&&te[z],he=Object.prototype,pe=u.RangeError,ye=E.pack,Ce=E.unpack,Ae=function(Q){return[Q&255]},ge=function(Q){return[Q&255,Q>>8&255]},N=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},M=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},I=function(Q){return ye(Q,23,4)},O=function(Q){return ye(Q,52,8)},k=function(Q,X){T(Q[z],X,{get:function(){return H(this)[X]}})},w=function(Q,X,ee,ie){var Z=b(ee),ne=H(Q);if(Z+X>ne.byteLength)throw pe(J);var we=H(ne.buffer).bytes,Ie=Z+ne.byteOffset,Ne=we.slice(Ie,Ie+X);return ie?Ne:Ne.reverse()},P=function(Q,X,ee,ie,Z,ne){var we=b(ee),Ie=H(Q);if(we+X>Ie.byteLength)throw pe(J);for(var Ne=H(Ie.buffer).bytes,Xe=we+Ie.byteOffset,ht=ie(+Z),qe=0;qe<X;qe++)Ne[Xe+qe]=ht[ne?qe:X-qe-1]};if(!f)q=function(X){g(this,q,K);var ee=b(X);j(this,{bytes:D.call(new Array(ee),0),byteLength:ee}),d||(this.byteLength=ee)},te=function(X,ee,ie){g(this,te,F),g(X,q,F);var Z=H(X).byteLength,ne=v(ee);if(ne<0||ne>Z)throw pe("Wrong offset");if(ie=ie===void 0?Z-ne:y(ie),ne+ie>Z)throw pe($);j(this,{buffer:X,byteLength:ie,byteOffset:ne}),d||(this.buffer=X,this.byteLength=ie,this.byteOffset=ne)},d&&(k(q,"byteLength"),k(te,"buffer"),k(te,"byteLength"),k(te,"byteOffset")),p(te[z],{getInt8:function(X){return w(this,1,X)[0]<<24>>24},getUint8:function(X){return w(this,1,X)[0]},getInt16:function(X){var ee=w(this,2,X,arguments.length>1?arguments[1]:void 0);return(ee[1]<<8|ee[0])<<16>>16},getUint16:function(X){var ee=w(this,2,X,arguments.length>1?arguments[1]:void 0);return ee[1]<<8|ee[0]},getInt32:function(X){return M(w(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return M(w(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return Ce(w(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return Ce(w(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,ee){P(this,1,X,Ae,ee)},setUint8:function(X,ee){P(this,1,X,Ae,ee)},setInt16:function(X,ee){P(this,2,X,ge,ee,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,ee){P(this,2,X,ge,ee,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,ee){P(this,4,X,N,ee,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ee){P(this,4,X,N,ee,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,ee){P(this,4,X,I,ee,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,ee){P(this,8,X,O,ee,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!=K})){q=function(X){return g(this,q),new U(b(X))};for(var R=q[z]=U[z],W=_(U),G=0,A;W.length>G;)(A=W[G++])in q||h(q,A,U[A]);R.constructor=q}S&&C(se)!==he&&S(se,he);var x=new te(new q(2)),B=se.setInt8;x.setInt8(0,2147483648),x.setInt8(1,2147483649),(x.getInt8(0)||!x.getInt8(1))&&p(se,{setInt8:function(X,ee){B.call(this,X,ee<<24>>24)},setUint8:function(X,ee){B.call(this,X,ee<<24>>24)}},{unsafe:!0})}Y(q,K),Y(te,F),s.exports={ArrayBuffer:q,DataView:te}}),1048:(function(s,c,a){var u=a(7908),d=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var v=u(this),y=f(v.length),b=d(m,y),E=d(g,y),C=arguments.length>2?arguments[2]:void 0,S=h((C===void 0?y:d(C,y))-E,y-b),_=1;for(E<b&&b<E+S&&(_=-1,E+=S-1,b+=S-1);S-- >0;)E in v?v[b]=v[E]:delete v[b],b+=_,E+=_;return v}}),1285:(function(s,c,a){var u=a(7908),d=a(1400),f=a(7466);s.exports=function(p){for(var m=u(this),g=f(m.length),v=arguments.length,y=d(v>1?arguments[1]:void 0,g),b=v>2?arguments[2]:void 0,E=b===void 0?g:d(b,g);E>y;)m[y++]=p;return m}}),8533:(function(s,c,a){var u=a(2092).forEach,d=a(9341),f=d("forEach");s.exports=f?[].forEach:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}}),8457:(function(s,c,a){var u=a(9974),d=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(y){var b=d(y),E=typeof this=="function"?this:Array,C=arguments.length,S=C>1?arguments[1]:void 0,_=S!==void 0,T=g(b),D=0,Y,V,H,j,K,F;if(_&&(S=u(S,C>2?arguments[2]:void 0,2)),T!=null&&!(E==Array&&h(T)))for(j=T.call(b),K=j.next,V=new E;!(H=K.call(j)).done;D++)F=_?f(j,S,[H.value,D],!0):H.value,m(V,D,F);else for(Y=p(b.length),V=new E(Y);Y>D;D++)F=_?S(b[D],D):b[D],m(V,D,F);return V.length=D,V}}),1318:(function(s,c,a){var u=a(5656),d=a(7466),f=a(1400),h=function(p){return function(m,g,v){var y=u(m),b=d(y.length),E=f(v,b),C;if(p&&g!=g){for(;b>E;)if(C=y[E++],C!=C)return!0}else for(;b>E;E++)if((p||E in y)&&y[E]===g)return p||E||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}}),2092:(function(s,c,a){var u=a(9974),d=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(v){var y=v==1,b=v==2,E=v==3,C=v==4,S=v==6,_=v==7,T=v==5||S;return function(D,Y,V,H){for(var j=f(D),K=d(j),F=u(Y,V,3),z=h(K.length),$=0,J=H||p,U=y?J(D,z):b||_?J(D,0):void 0,q,te;z>$;$++)if((T||$ in K)&&(q=K[$],te=F(q,$,j),v))if(y)U[$]=te;else if(te)switch(v){case 3:return!0;case 5:return q;case 6:return $;case 2:m.call(U,q)}else switch(v){case 4:return!1;case 7:m.call(U,q)}return S?-1:E||C?C: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 u=a(5656),d=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),y=g||!v;s.exports=y?function(E){if(g)return m.apply(this,arguments)||0;var C=u(this),S=f(C.length),_=S-1;for(arguments.length>1&&(_=p(_,d(arguments[1]))),_<0&&(_=S+_);_>=0;_--)if(_ in C&&C[_]===E)return _||0;return-1}:m}),1194:(function(s,c,a){var u=a(7293),d=a(5112),f=a(7392),h=d("species");s.exports=function(p){return f>=51||!u(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}}),9341:(function(s,c,a){var u=a(7293);s.exports=function(d,f){var h=[][d];return!!h&&u(function(){h.call(null,f||function(){throw 1},1)})}}),3671:(function(s,c,a){var u=a(3099),d=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,v,y,b){u(v);var E=d(g),C=f(E),S=h(E.length),_=m?S-1:0,T=m?-1:1;if(y<2)for(;;){if(_ in C){b=C[_],_+=T;break}if(_+=T,m?_<0:S<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:S>_;_+=T)_ in C&&(b=v(b,C[_],_,E));return b}};s.exports={left:p(!1),right:p(!0)}}),5417:(function(s,c,a){var u=a(111),d=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return d(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||d(g.prototype))?g=void 0:u(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 u=a(9670),d=a(9212);s.exports=function(f,h,p,m){try{return m?h(u(p)[0],p[1]):h(p)}catch(g){throw d(f),g}}}),7072:(function(s,c,a){var u=a(5112),d=u("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[d]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var v=!1;try{var y={};y[d]=function(){return{next:function(){return{done:v=!0}}}},m(y)}catch{}return v}}),4326:(function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}}),648:(function(s,c,a){var u=a(1694),d=a(4326),f=a(5112),h=f("toStringTag"),p=d((function(){return arguments})())=="Arguments",m=function(g,v){try{return g[v]}catch{}};s.exports=u?d:function(g){var v,y,b;return g===void 0?"Undefined":g===null?"Null":typeof(y=m(v=Object(g),h))=="string"?y:p?d(v):(b=d(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}}),9920:(function(s,c,a){var u=a(6656),d=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=d(m),v=h.f,y=f.f,b=0;b<g.length;b++){var E=g[b];u(p,E)||v(p,E,y(m,E))}}}),8544:(function(s,c,a){var u=a(7293);s.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})}),4994:(function(s,c,a){var u=a(3383).IteratorPrototype,d=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,v,y){var b=v+" Iterator";return g.prototype=d(u,{next:f(1,y)}),h(g,b,!1,!0),p[b]=m,g}}),8880:(function(s,c,a){var u=a(9781),d=a(3070),f=a(9114);s.exports=u?function(h,p,m){return d.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 u=a(7593),d=a(3070),f=a(9114);s.exports=function(h,p,m){var g=u(p);g in h?d.f(h,g,f(0,m)):h[g]=m}}),654:(function(s,c,a){var u=a(2109),d=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),v=a(5112),y=a(1913),b=a(7497),E=a(3383),C=E.IteratorPrototype,S=E.BUGGY_SAFARI_ITERATORS,_=v("iterator"),T="keys",D="values",Y="entries",V=function(){return this};s.exports=function(H,j,K,F,z,$,J){d(K,j,F);var U=function(N){if(N===z&&pe)return pe;if(!S&&N in se)return se[N];switch(N){case T:return function(){return new K(this,N)};case D:return function(){return new K(this,N)};case Y:return function(){return new K(this,N)}}return function(){return new K(this)}},q=j+" Iterator",te=!1,se=H.prototype,he=se[_]||se["@@iterator"]||z&&se[z],pe=!S&&he||U(z),ye=j=="Array"&&se.entries||he,Ce,Ae,ge;if(ye&&(Ce=f(ye.call(new H)),C!==Object.prototype&&Ce.next&&(!y&&f(Ce)!==C&&(h?h(Ce,C):typeof Ce[_]!="function"&&m(Ce,_,V)),p(Ce,q,!0,!0),y&&(b[q]=V))),z==D&&he&&he.name!==D&&(te=!0,pe=function(){return he.call(this)}),(!y||J)&&se[_]!==pe&&m(se,_,pe),b[j]=pe,z)if(Ae={values:U(D),keys:$?pe:U(T),entries:U(Y)},J)for(ge in Ae)(S||te||!(ge in se))&&g(se,ge,Ae[ge]);else u({target:j,proto:!0,forced:S||te},Ae);return Ae}}),9781:(function(s,c,a){var u=a(7293);s.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(s,c,a){var u=a(7854),d=a(111),f=u.document,h=d(f)&&d(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 u=a(5005);s.exports=u("navigator","userAgent")||""}),7392:(function(s,c,a){var u=a(7854),d=a(8113),f=u.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):d&&(m=d.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=d.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 u=a(7854),d=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(v,y){var b=v.target,E=v.global,C=v.stat,S,_,T,D,Y,V;if(E?_=u:C?_=u[b]||p(b,{}):_=(u[b]||{}).prototype,_)for(T in y){if(Y=y[T],v.noTargetGet?(V=d(_,T),D=V&&V.value):D=_[T],S=g(E?T:b+(C?".":"#")+T,v.forced),!S&&D!==void 0){if(typeof Y==typeof D)continue;m(Y,D)}(v.sham||D&&D.sham)&&f(Y,"sham",!0),h(_,T,Y,v)}}}),7293:(function(s){s.exports=function(c){try{return!!c()}catch{return!0}}}),7007:(function(s,c,a){a(4916);var u=a(1320),d=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!d(function(){var C=/./;return C.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(C,"$<a>")!=="7"}),v=(function(){return"a".replace(/./,"$0")==="$0"})(),y=f("replace"),b=(function(){return/./[y]?/./[y]("a","$0")==="":!1})(),E=!d(function(){var C=/(?:)/,S=C.exec;C.exec=function(){return S.apply(this,arguments)};var _="ab".split(C);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(C,S,_,T){var D=f(C),Y=!d(function(){var z={};return z[D]=function(){return 7},""[C](z)!=7}),V=Y&&!d(function(){var z=!1,$=/a/;return C==="split"&&($={},$.constructor={},$.constructor[m]=function(){return $},$.flags="",$[D]=/./[D]),$.exec=function(){return z=!0,null},$[D](""),!z});if(!Y||!V||C==="replace"&&!(g&&v&&!b)||C==="split"&&!E){var H=/./[D],j=_(D,""[C],function(z,$,J,U,q){return $.exec===h?Y&&!q?{done:!0,value:H.call($,J,U)}:{done:!0,value:z.call(J,$,U)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),K=j[0],F=j[1];u(String.prototype,C,K),u(RegExp.prototype,D,S==2?function(z,$){return F.call(z,this,$)}:function(z){return F.call(z,this)})}T&&p(RegExp.prototype[D],"sham",!0)}}),9974:(function(s,c,a){var u=a(3099);s.exports=function(d,f,h){if(u(d),f===void 0)return d;switch(h){case 0:return function(){return d.call(f)};case 1:return function(p){return d.call(f,p)};case 2:return function(p,m){return d.call(f,p,m)};case 3:return function(p,m,g){return d.call(f,p,m,g)}}return function(){return d.apply(f,arguments)}}}),5005:(function(s,c,a){var u=a(857),d=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(u[h])||f(d[h]):u[h]&&u[h][p]||d[h]&&d[h][p]}}),1246:(function(s,c,a){var u=a(648),d=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||d[u(p)]}}),8554:(function(s,c,a){var u=a(9670),d=a(1246);s.exports=function(f){var h=d(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return u(h.call(f))}}),647:(function(s,c,a){var u=a(7908),d=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,v,y,b,E){var C=v+m.length,S=y.length,_=p;return b!==void 0&&(b=u(b),_=h),f.call(E,_,function(T,D){var Y;switch(D.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,v);case"'":return g.slice(C);case"<":Y=b[D.slice(1,-1)];break;default:var V=+D;if(V===0)return T;if(V>S){var H=d(V/10);return H===0?T:H<=S?y[H-1]===void 0?D.charAt(1):y[H-1]+D.charAt(1):T}Y=y[V-1]}return Y===void 0?"":Y})}}),7854:(function(s,c,a){var u=function(d){return d&&d.Math==Math&&d};s.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof a.g=="object"&&a.g)||(function(){return this})()||Function("return this")()}),6656:(function(s){var c={}.hasOwnProperty;s.exports=function(a,u){return c.call(a,u)}}),3501:(function(s){s.exports={}}),490:(function(s,c,a){var u=a(5005);s.exports=u("document","documentElement")}),4664:(function(s,c,a){var u=a(9781),d=a(7293),f=a(317);s.exports=!u&&!d(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(s){var c=Math.abs,a=Math.pow,u=Math.floor,d=Math.log,f=Math.LN2,h=function(m,g,v){var y=new Array(v),b=v*8-g-1,E=(1<<b)-1,C=E>>1,S=g===23?a(2,-24)-a(2,-77):0,_=m<0||m===0&&1/m<0?1:0,T=0,D,Y,V;for(m=c(m),m!=m||m===1/0?(Y=m!=m?1:0,D=E):(D=u(d(m)/f),m*(V=a(2,-D))<1&&(D--,V*=2),D+C>=1?m+=S/V:m+=S*a(2,1-C),m*V>=2&&(D++,V/=2),D+C>=E?(Y=0,D=E):D+C>=1?(Y=(m*V-1)*a(2,g),D=D+C):(Y=m*a(2,C-1)*a(2,g),D=0));g>=8;y[T++]=Y&255,Y/=256,g-=8);for(D=D<<g|Y,b+=g;b>0;y[T++]=D&255,D/=256,b-=8);return y[--T]|=_*128,y},p=function(m,g){var v=m.length,y=v*8-g-1,b=(1<<y)-1,E=b>>1,C=y-7,S=v-1,_=m[S--],T=_&127,D;for(_>>=7;C>0;T=T*256+m[S],S--,C-=8);for(D=T&(1<<-C)-1,T>>=-C,C+=g;C>0;D=D*256+m[S],S--,C-=8);if(T===0)T=1-E;else{if(T===b)return D?NaN:_?-1/0:1/0;D=D+a(2,g),T=T-E}return(_?-1:1)*D*a(2,T-g)};s.exports={pack:h,unpack:p}}),8361:(function(s,c,a){var u=a(7293),d=a(4326),f="".split;s.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return d(h)=="String"?f.call(h,""):Object(h)}:Object}),9587:(function(s,c,a){var u=a(111),d=a(7674);s.exports=function(f,h,p){var m,g;return d&&typeof(m=h.constructor)=="function"&&m!==p&&u(g=m.prototype)&&g!==p.prototype&&d(f,g),f}}),2788:(function(s,c,a){var u=a(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(f){return d.call(f)}),s.exports=u.inspectSource}),9909:(function(s,c,a){var u=a(8536),d=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),v=a(3501),y=d.WeakMap,b,E,C,S=function(j){return C(j)?E(j):b(j,{})},_=function(j){return function(K){var F;if(!f(K)||(F=E(K)).type!==j)throw TypeError("Incompatible receiver, "+j+" required");return F}};if(u){var T=m.state||(m.state=new y),D=T.get,Y=T.has,V=T.set;b=function(j,K){return K.facade=j,V.call(T,j,K),K},E=function(j){return D.call(T,j)||{}},C=function(j){return Y.call(T,j)}}else{var H=g("state");v[H]=!0,b=function(j,K){return K.facade=j,h(j,H,K),K},E=function(j){return p(j,H)?j[H]:{}},C=function(j){return p(j,H)}}s.exports={set:b,get:E,has:C,enforce:S,getterFor:_}}),7659:(function(s,c,a){var u=a(5112),d=a(7497),f=u("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(d.Array===p||h[f]===p)}}),3157:(function(s,c,a){var u=a(4326);s.exports=Array.isArray||function(f){return u(f)=="Array"}}),4705:(function(s,c,a){var u=a(7293),d=/#|\.prototype\./,f=function(v,y){var b=p[h(v)];return b==g?!0:b==m?!1:typeof y=="function"?u(y):!!y},h=f.normalize=function(v){return String(v).replace(d,".").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 u=a(111),d=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return u(p)&&((m=p[h])!==void 0?!!m:d(p)=="RegExp")}}),9212:(function(s,c,a){var u=a(9670);s.exports=function(d){var f=d.return;if(f!==void 0)return u(f.call(d)).value}}),3383:(function(s,c,a){var u=a(7293),d=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),v=!1,y=function(){return this},b,E,C;[].keys&&(C=[].keys(),"next"in C?(E=d(d(C)),E!==Object.prototype&&(b=E)):v=!0);var S=b==null||u(function(){var _={};return b[g].call(_)!==_});S&&(b={}),(!m||S)&&!h(b,g)&&f(b,g,y),s.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:v}}),7497:(function(s){s.exports={}}),133:(function(s,c,a){var u=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})}),590:(function(s,c,a){var u=a(7293),d=a(5112),f=a(1913),h=d("iterator");s.exports=!u(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(v,y){m.delete("b"),g+=y+v}),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 u=a(7854),d=a(2788),f=u.WeakMap;s.exports=typeof f=="function"&&/native code/.test(d(f))}),1574:(function(s,c,a){var u=a(9781),d=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),v=Object.assign,y=Object.defineProperty;s.exports=!v||d(function(){if(u&&v({b:1},v(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},E={},C=Symbol(),S="abcdefghijklmnopqrst";return b[C]=7,S.split("").forEach(function(_){E[_]=_}),v({},b)[C]!=7||f(v({},E)).join("")!=S})?function(E,C){for(var S=m(E),_=arguments.length,T=1,D=h.f,Y=p.f;_>T;)for(var V=g(arguments[T++]),H=D?f(V).concat(D(V)):f(V),j=H.length,K=0,F;j>K;)F=H[K++],(!u||Y.call(V,F))&&(S[F]=V[F]);return S}:v}),30:(function(s,c,a){var u=a(9670),d=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),v=">",y="<",b="prototype",E="script",C=g("IE_PROTO"),S=function(){},_=function(H){return y+E+v+H+y+"/"+E+v},T=function(H){H.write(_("")),H.close();var j=H.parentWindow.Object;return H=null,j},D=function(){var H=m("iframe"),j="java"+E+":",K;return H.style.display="none",p.appendChild(H),H.src=String(j),K=H.contentWindow.document,K.open(),K.write(_("document.F=Object")),K.close(),K.F},Y,V=function(){try{Y=document.domain&&new ActiveXObject("htmlfile")}catch{}V=Y?T(Y):D();for(var H=f.length;H--;)delete V[b][f[H]];return V()};h[C]=!0,s.exports=Object.create||function(j,K){var F;return j!==null?(S[b]=u(j),F=new S,S[b]=null,F[C]=j):F=V(),K===void 0?F:d(F,K)}}),6048:(function(s,c,a){var u=a(9781),d=a(3070),f=a(9670),h=a(1956);s.exports=u?Object.defineProperties:function(m,g){f(m);for(var v=h(g),y=v.length,b=0,E;y>b;)d.f(m,E=v[b++],g[E]);return m}}),3070:(function(s,c,a){var u=a(9781),d=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=u?p:function(g,v,y){if(f(g),v=h(v,!0),f(y),d)try{return p(g,v,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported");return"value"in y&&(g[v]=y.value),g}}),1236:(function(s,c,a){var u=a(9781),d=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;c.f=u?v:function(b,E){if(b=h(b),E=p(E,!0),g)try{return v(b,E)}catch{}if(m(b,E))return f(!d.f.call(b,E),b[E])}}),8006:(function(s,c,a){var u=a(6324),d=a(748),f=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return u(p,f)}}),5181:(function(s,c){c.f=Object.getOwnPropertySymbols}),9518:(function(s,c,a){var u=a(6656),d=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=d(g),u(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 u=a(6656),d=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=d(p),v=0,y=[],b;for(b in g)!u(h,b)&&u(g,b)&&y.push(b);for(;m.length>v;)u(g,b=m[v++])&&(~f(y,b)||y.push(b));return y}}),1956:(function(s,c,a){var u=a(6324),d=a(748);s.exports=Object.keys||function(h){return u(h,d)}}),5296:(function(s,c){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!a.call({1:2},1);c.f=d?function(h){var p=u(this,h);return!!p&&p.enumerable}:a}),7674:(function(s,c,a){var u=a(9670),d=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,v){return u(g),d(v),f?p.call(g,v):g.__proto__=v,g}})():void 0)}),288:(function(s,c,a){var u=a(1694),d=a(648);s.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}}),3887:(function(s,c,a){var u=a(5005),d=a(8006),f=a(5181),h=a(9670);s.exports=u("Reflect","ownKeys")||function(m){var g=d.f(h(m)),v=f.f;return v?g.concat(v(m)):g}}),857:(function(s,c,a){var u=a(7854);s.exports=u}),2248:(function(s,c,a){var u=a(1320);s.exports=function(d,f,h){for(var p in f)u(d,p,f[p],h);return d}}),1320:(function(s,c,a){var u=a(7854),d=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,v=m.enforce,y=String(String).split("String");(s.exports=function(b,E,C,S){var _=S?!!S.unsafe:!1,T=S?!!S.enumerable:!1,D=S?!!S.noTargetGet:!1,Y;if(typeof C=="function"&&(typeof E=="string"&&!f(C,"name")&&d(C,"name",E),Y=v(C),Y.source||(Y.source=y.join(typeof E=="string"?E:""))),b===u){T?b[E]=C:h(E,C);return}else _?!D&&b[E]&&(T=!0):delete b[E];T?b[E]=C:d(b,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})}),7651:(function(s,c,a){var u=a(4326),d=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(u(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(f,h)}}),2261:(function(s,c,a){var u=a(7066),d=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=(function(){var b=/a/,E=/b*/g;return f.call(b,"a"),f.call(E,"a"),b.lastIndex!==0||E.lastIndex!==0})(),g=d.UNSUPPORTED_Y||d.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,y=m||v||g;y&&(p=function(E){var C=this,S,_,T,D,Y=g&&C.sticky,V=u.call(C),H=C.source,j=0,K=E;return Y&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),K=String(E).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&E[C.lastIndex-1]!==`
1174
- `)&&(H="(?: "+H+")",K=" "+K,j++),_=new RegExp("^(?:"+H+")",V)),v&&(_=new RegExp("^"+H+"$(?!\\s)",V)),m&&(S=C.lastIndex),T=f.call(Y?_:C,K),Y?T?(T.input=T.input.slice(j),T[0]=T[0].slice(j),T.index=C.lastIndex,C.lastIndex+=T[0].length):C.lastIndex=0:m&&T&&(C.lastIndex=C.global?T.index+T[0].length:S),v&&T&&T.length>1&&h.call(T[0],_,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(T[D]=void 0)}),T}),s.exports=p}),7066:(function(s,c,a){var u=a(9670);s.exports=function(){var d=u(this),f="";return d.global&&(f+="g"),d.ignoreCase&&(f+="i"),d.multiline&&(f+="m"),d.dotAll&&(f+="s"),d.unicode&&(f+="u"),d.sticky&&(f+="y"),f}}),2999:(function(s,c,a){var u=a(7293);function d(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=u(function(){var f=d("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var f=d("^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 u=a(7854),d=a(8880);s.exports=function(f,h){try{d(u,f,h)}catch{u[f]=h}return h}}),6340:(function(s,c,a){var u=a(5005),d=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=u(m),v=d.f;h&&g&&!g[p]&&v(g,p,{configurable:!0,get:function(){return this}})}}),8003:(function(s,c,a){var u=a(3070).f,d=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!d(p=g?p:p.prototype,h)&&u(p,h,{configurable:!0,value:m})}}),6200:(function(s,c,a){var u=a(2309),d=a(9711),f=u("keys");s.exports=function(h){return f[h]||(f[h]=d(h))}}),5465:(function(s,c,a){var u=a(7854),d=a(3505),f="__core-js_shared__",h=u[f]||d(f,{});s.exports=h}),2309:(function(s,c,a){var u=a(1913),d=a(5465);(s.exports=function(f,h){return d[f]||(d[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),6707:(function(s,c,a){var u=a(9670),d=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=u(p).constructor,v;return g===void 0||(v=u(g)[h])==null?m:d(v)}}),8710:(function(s,c,a){var u=a(9958),d=a(4488),f=function(h){return function(p,m){var g=String(d(p)),v=u(m),y=g.length,b,E;return v<0||v>=y?h?"":void 0:(b=g.charCodeAt(v),b<55296||b>56319||v+1===y||(E=g.charCodeAt(v+1))<56320||E>57343?h?g.charAt(v):b:h?g.slice(v,v+2):(b-55296<<10)+(E-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}}),3197:(function(s){var c=2147483647,a=36,u=1,d=26,f=38,h=700,p=72,m=128,g="-",v=/[^\0-\u007E]/,y=/[.\u3002\uFF0E\uFF61]/g,b="Overflow: input needs wider integers to process",E=a-u,C=Math.floor,S=String.fromCharCode,_=function(V){for(var H=[],j=0,K=V.length;j<K;){var F=V.charCodeAt(j++);if(F>=55296&&F<=56319&&j<K){var z=V.charCodeAt(j++);(z&64512)==56320?H.push(((F&1023)<<10)+(z&1023)+65536):(H.push(F),j--)}else H.push(F)}return H},T=function(V){return V+22+75*(V<26)},D=function(V,H,j){var K=0;for(V=j?C(V/h):V>>1,V+=C(V/H);V>E*d>>1;K+=a)V=C(V/E);return C(K+(E+1)*V/(V+f))},Y=function(V){var H=[];V=_(V);var j=V.length,K=m,F=0,z=p,$,J;for($=0;$<V.length;$++)J=V[$],J<128&&H.push(S(J));var U=H.length,q=U;for(U&&H.push(g);q<j;){var te=c;for($=0;$<V.length;$++)J=V[$],J>=K&&J<te&&(te=J);var se=q+1;if(te-K>C((c-F)/se))throw RangeError(b);for(F+=(te-K)*se,K=te,$=0;$<V.length;$++){if(J=V[$],J<K&&++F>c)throw RangeError(b);if(J==K){for(var he=F,pe=a;;pe+=a){var ye=pe<=z?u:pe>=z+d?d:pe-z;if(he<ye)break;var Ce=he-ye,Ae=a-ye;H.push(S(T(ye+Ce%Ae))),he=C(Ce/Ae)}H.push(S(T(he))),z=D(F,se,q==U),F=0,++q}}++F,++K}return H.join("")};s.exports=function(V){var H=[],j=V.toLowerCase().replace(y,".").split("."),K,F;for(K=0;K<j.length;K++)F=j[K],H.push(v.test(F)?"xn--"+Y(F):F);return H.join(".")}}),6091:(function(s,c,a){var u=a(7293),d=a(1361),f="​…᠎";s.exports=function(h){return u(function(){return!!d[h]()||f[h]()!=f||d[h].name!==h})}}),3111:(function(s,c,a){var u=a(4488),d=a(1361),f="["+d+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(v){var y=String(u(v));return g&1&&(y=y.replace(h,"")),g&2&&(y=y.replace(p,"")),y}};s.exports={start:m(1),end:m(2),trim:m(3)}}),1400:(function(s,c,a){var u=a(9958),d=Math.max,f=Math.min;s.exports=function(h,p){var m=u(h);return m<0?d(m+p,0):f(m,p)}}),7067:(function(s,c,a){var u=a(9958),d=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=u(f),p=d(h);if(h!==p)throw RangeError("Wrong length or index");return p}}),5656:(function(s,c,a){var u=a(8361),d=a(4488);s.exports=function(f){return u(d(f))}}),9958:(function(s){var c=Math.ceil,a=Math.floor;s.exports=function(u){return isNaN(u=+u)?0:(u>0?a:c)(u)}}),7466:(function(s,c,a){var u=a(9958),d=Math.min;s.exports=function(f){return f>0?d(u(f),9007199254740991):0}}),7908:(function(s,c,a){var u=a(4488);s.exports=function(d){return Object(u(d))}}),4590:(function(s,c,a){var u=a(3002);s.exports=function(d,f){var h=u(d);if(h%f)throw RangeError("Wrong offset");return h}}),3002:(function(s,c,a){var u=a(9958);s.exports=function(d){var f=u(d);if(f<0)throw RangeError("The argument can't be less than 0");return f}}),7593:(function(s,c,a){var u=a(111);s.exports=function(d,f){if(!u(d))return d;var h,p;if(f&&typeof(h=d.toString)=="function"&&!u(p=h.call(d))||typeof(h=d.valueOf)=="function"&&!u(p=h.call(d))||!f&&typeof(h=d.toString)=="function"&&!u(p=h.call(d)))return p;throw TypeError("Can't convert object to primitive value")}}),1694:(function(s,c,a){var u=a(5112),d=u("toStringTag"),f={};f[d]="z",s.exports=String(f)==="[object z]"}),9843:(function(s,c,a){var u=a(2109),d=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),g=a(5787),v=a(9114),y=a(8880),b=a(7466),E=a(7067),C=a(4590),S=a(7593),_=a(6656),T=a(648),D=a(111),Y=a(30),V=a(7674),H=a(8006).f,j=a(7321),K=a(2092).forEach,F=a(6340),z=a(3070),$=a(1236),J=a(9909),U=a(9587),q=J.get,te=J.set,se=z.f,he=$.f,pe=Math.round,ye=d.RangeError,Ce=m.ArrayBuffer,Ae=m.DataView,ge=p.NATIVE_ARRAY_BUFFER_VIEWS,N=p.TYPED_ARRAY_TAG,M=p.TypedArray,I=p.TypedArrayPrototype,O=p.aTypedArrayConstructor,k=p.isTypedArray,w="BYTES_PER_ELEMENT",P="Wrong length",R=function(Q,X){for(var ee=0,ie=X.length,Z=new(O(Q))(ie);ie>ee;)Z[ee]=X[ee++];return Z},W=function(Q,X){se(Q,X,{get:function(){return q(this)[X]}})},G=function(Q){var X;return Q instanceof Ce||(X=T(Q))=="ArrayBuffer"||X=="SharedArrayBuffer"},A=function(Q,X){return k(Q)&&typeof X!="symbol"&&X in Q&&String(+X)==String(X)},x=function(X,ee){return A(X,ee=S(ee,!0))?v(2,X[ee]):he(X,ee)},B=function(X,ee,ie){return A(X,ee=S(ee,!0))&&D(ie)&&_(ie,"value")&&!_(ie,"get")&&!_(ie,"set")&&!ie.configurable&&(!_(ie,"writable")||ie.writable)&&(!_(ie,"enumerable")||ie.enumerable)?(X[ee]=ie.value,X):se(X,ee,ie)};f?(ge||($.f=x,z.f=B,W(I,"buffer"),W(I,"byteOffset"),W(I,"byteLength"),W(I,"length")),u({target:"Object",stat:!0,forced:!ge},{getOwnPropertyDescriptor:x,defineProperty:B}),s.exports=function(Q,X,ee){var ie=Q.match(/\d+$/)[0]/8,Z=Q+(ee?"Clamped":"")+"Array",ne="get"+Q,we="set"+Q,Ie=d[Z],Ne=Ie,Xe=Ne&&Ne.prototype,ht={},qe=function(Qe,Be){var st=q(Qe);return st.view[ne](Be*ie+st.byteOffset,!0)},fr=function(Qe,Be,st){var Gt=q(Qe);ee&&(st=(st=pe(st))<0?0:st>255?255:st&255),Gt.view[we](Be*ie+Gt.byteOffset,st,!0)},gn=function(Qe,Be){se(Qe,Be,{get:function(){return qe(this,Be)},set:function(st){return fr(this,Be,st)},enumerable:!0})};ge?h&&(Ne=X(function(Qe,Be,st,Gt){return g(Qe,Ne,Z),U((function(){return D(Be)?G(Be)?Gt!==void 0?new Ie(Be,C(st,ie),Gt):st!==void 0?new Ie(Be,C(st,ie)):new Ie(Be):k(Be)?R(Ne,Be):j.call(Ne,Be):new Ie(E(Be))})(),Qe,Ne)}),V&&V(Ne,M),K(H(Ie),function(Qe){Qe in Ne||y(Ne,Qe,Ie[Qe])}),Ne.prototype=Xe):(Ne=X(function(Qe,Be,st,Gt){g(Qe,Ne,Z);var Zr=0,hr=0,pr,tn,jn;if(!D(Be))jn=E(Be),tn=jn*ie,pr=new Ce(tn);else if(G(Be)){pr=Be,hr=C(st,ie);var Ro=Be.byteLength;if(Gt===void 0){if(Ro%ie||(tn=Ro-hr,tn<0))throw ye(P)}else if(tn=b(Gt)*ie,tn+hr>Ro)throw ye(P);jn=tn/ie}else return k(Be)?R(Ne,Be):j.call(Ne,Be);for(te(Qe,{buffer:pr,byteOffset:hr,byteLength:tn,length:jn,view:new Ae(pr)});Zr<jn;)gn(Qe,Zr++)}),V&&V(Ne,M),Xe=Ne.prototype=Y(I)),Xe.constructor!==Ne&&y(Xe,"constructor",Ne),N&&y(Xe,N,Z),ht[Z]=Ne,u({global:!0,forced:Ne!=Ie,sham:!ge},ht),w in Ne||y(Ne,w,ie),w in Xe||y(Xe,w,ie),F(Z)}):s.exports=function(){}}),3832:(function(s,c,a){var u=a(7854),d=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=u.ArrayBuffer,m=u.Int8Array;s.exports=!h||!d(function(){m(1)})||!d(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||d(function(){return new m(new p(2),1,void 0).length!==1})}),3074:(function(s,c,a){var u=a(260).aTypedArrayConstructor,d=a(6707);s.exports=function(f,h){for(var p=d(f,f.constructor),m=0,g=h.length,v=new(u(p))(g);g>m;)v[m]=h[m++];return v}}),7321:(function(s,c,a){var u=a(7908),d=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(v){var y=u(v),b=arguments.length,E=b>1?arguments[1]:void 0,C=E!==void 0,S=f(y),_,T,D,Y,V,H;if(S!=null&&!h(S))for(V=S.call(y),H=V.next,y=[];!(Y=H.call(V)).done;)y.push(Y.value);for(C&&b>2&&(E=p(E,arguments[2],2)),T=d(y.length),D=new(m(this))(T),_=0;T>_;_++)D[_]=C?E(y[_],_):y[_];return D}}),9711:(function(s){var c=0,a=Math.random();s.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+a).toString(36)}}),3307:(function(s,c,a){var u=a(133);s.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),5112:(function(s,c,a){var u=a(7854),d=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=d("wks"),v=u.Symbol,y=m?v:v&&v.withoutSetter||h;s.exports=function(b){return f(g,b)||(p&&f(v,b)?g[b]=v[b]:g[b]=y("Symbol."+b)),g[b]}}),1361:(function(s){s.exports=`
1175
- \v\f\r                 \u2028\u2029\uFEFF`}),8264:(function(s,c,a){var u=a(2109),d=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=d[p];u({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)}),2222:(function(s,c,a){var u=a(2109),d=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),v=a(5417),y=a(1194),b=a(5112),E=a(7392),C=b("isConcatSpreadable"),S=9007199254740991,_="Maximum allowed index exceeded",T=E>=51||!d(function(){var H=[];return H[C]=!1,H.concat()[0]!==H}),D=y("concat"),Y=function(H){if(!h(H))return!1;var j=H[C];return j!==void 0?!!j:f(H)},V=!T||!D;u({target:"Array",proto:!0,forced:V},{concat:function(j){var K=p(this),F=v(K,0),z=0,$,J,U,q,te;for($=-1,U=arguments.length;$<U;$++)if(te=$===-1?K:arguments[$],Y(te)){if(q=m(te.length),z+q>S)throw TypeError(_);for(J=0;J<q;J++,z++)J in te&&g(F,z,te[J])}else{if(z>=S)throw TypeError(_);g(F,z++,te)}return F.length=z,F}})}),7327:(function(s,c,a){var u=a(2109),d=a(2092).filter,f=a(1194),h=f("filter");u({target:"Array",proto:!0,forced:!h},{filter:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(s,c,a){var u=a(2109),d=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");u({target:"Array",proto:!0,forced:p||!m},{indexOf:function(v){return p?h.apply(this,arguments)||0:d(this,v,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(s,c,a){var u=a(5656),d=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,v=h.getterFor(m);s.exports=p(Array,"Array",function(y,b){g(this,{type:m,target:u(y),index:0,kind:b})},function(){var y=v(this),b=y.target,E=y.kind,C=y.index++;return!b||C>=b.length?(y.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:b[C],done:!1}:{value:[C,b[C]],done:!1}},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")}),1249:(function(s,c,a){var u=a(2109),d=a(2092).map,f=a(1194),h=f("map");u({target:"Array",proto:!0,forced:!h},{map:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(s,c,a){var u=a(2109),d=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),v=a(5112),y=a(1194),b=y("slice"),E=v("species"),C=[].slice,S=Math.max;u({target:"Array",proto:!0,forced:!b},{slice:function(T,D){var Y=m(this),V=p(Y.length),H=h(T,V),j=h(D===void 0?V:D,V),K,F,z;if(f(Y)&&(K=Y.constructor,typeof K=="function"&&(K===Array||f(K.prototype))?K=void 0:d(K)&&(K=K[E],K===null&&(K=void 0)),K===Array||K===void 0))return C.call(Y,H,j);for(F=new(K===void 0?Array:K)(S(j-H,0)),z=0;H<j;H++,z++)H in Y&&g(F,z,Y[H]);return F.length=z,F}})}),561:(function(s,c,a){var u=a(2109),d=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),v=a(1194),y=v("splice"),b=Math.max,E=Math.min,C=9007199254740991,S="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!y},{splice:function(T,D){var Y=p(this),V=h(Y.length),H=d(T,V),j=arguments.length,K,F,z,$,J,U;if(j===0?K=F=0:j===1?(K=0,F=V-H):(K=j-2,F=E(b(f(D),0),V-H)),V+K-F>C)throw TypeError(S);for(z=m(Y,F),$=0;$<F;$++)J=H+$,J in Y&&g(z,$,Y[J]);if(z.length=F,K<F){for($=H;$<V-F;$++)J=$+F,U=$+K,J in Y?Y[U]=Y[J]:delete Y[U];for($=V;$>V-F+K;$--)delete Y[$-1]}else if(K>F)for($=V-F;$>H;$--)J=$+F-1,U=$+K-1,J in Y?Y[U]=Y[J]:delete Y[U];for($=0;$<K;$++)Y[$+H]=arguments[$+2];return Y.length=V-F+K,z}})}),8309:(function(s,c,a){var u=a(9781),d=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";u&&!(m in f)&&d(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})}),489:(function(s,c,a){var u=a(2109),d=a(7293),f=a(7908),h=a(9518),p=a(8544),m=d(function(){h(1)});u({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(v){return h(f(v))}})}),1539:(function(s,c,a){var u=a(1694),d=a(1320),f=a(288);u||d(Object.prototype,"toString",f,{unsafe:!0})}),4916:(function(s,c,a){var u=a(2109),d=a(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})}),9714:(function(s,c,a){var u=a(1320),d=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],v=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),y=g.name!=p;(v||y)&&u(RegExp.prototype,p,function(){var E=d(this),C=String(E.source),S=E.flags,_=String(S===void 0&&E instanceof RegExp&&!("flags"in m)?h.call(E):S);return"/"+C+"/"+_},{unsafe:!0})}),8783:(function(s,c,a){var u=a(8710).charAt,d=a(9909),f=a(654),h="String Iterator",p=d.set,m=d.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var v=m(this),y=v.string,b=v.index,E;return b>=y.length?{value:void 0,done:!0}:(E=u(y,b),v.index+=E.length,{value:E,done:!1})})}),4723:(function(s,c,a){var u=a(7007),d=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);u("match",1,function(g,v,y){return[function(E){var C=h(this),S=E?.[g];return S!==void 0?S.call(E,C):new RegExp(E)[g](String(C))},function(b){var E=y(v,b,this);if(E.done)return E.value;var C=d(b),S=String(this);if(!C.global)return m(C,S);var _=C.unicode;C.lastIndex=0;for(var T=[],D=0,Y;(Y=m(C,S))!==null;){var V=String(Y[0]);T[D]=V,V===""&&(C.lastIndex=p(S,f(C.lastIndex),_)),D++}return D===0?null:T}]})}),5306:(function(s,c,a){var u=a(7007),d=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),v=a(7651),y=Math.max,b=Math.min,E=function(C){return C===void 0?C:String(C)};u("replace",2,function(C,S,_,T){var D=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Y=T.REPLACE_KEEPS_$0,V=D?"$":"$0";return[function(j,K){var F=p(this),z=j?.[C];return z!==void 0?z.call(j,F,K):S.call(String(F),j,K)},function(H,j){if(!D&&Y||typeof j=="string"&&j.indexOf(V)===-1){var K=_(S,H,this,j);if(K.done)return K.value}var F=d(H),z=String(this),$=typeof j=="function";$||(j=String(j));var J=F.global;if(J){var U=F.unicode;F.lastIndex=0}for(var q=[];;){var te=v(F,z);if(te===null||(q.push(te),!J))break;var se=String(te[0]);se===""&&(F.lastIndex=m(z,f(F.lastIndex),U))}for(var he="",pe=0,ye=0;ye<q.length;ye++){te=q[ye];for(var Ce=String(te[0]),Ae=y(b(h(te.index),z.length),0),ge=[],N=1;N<te.length;N++)ge.push(E(te[N]));var M=te.groups;if($){var I=[Ce].concat(ge,Ae,z);M!==void 0&&I.push(M);var O=String(j.apply(void 0,I))}else O=g(Ce,z,Ae,ge,M,j);Ae>=pe&&(he+=z.slice(pe,Ae)+O,pe=Ae+Ce.length)}return he+z.slice(pe)}]})}),3123:(function(s,c,a){var u=a(7007),d=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),v=a(7651),y=a(2261),b=a(7293),E=[].push,C=Math.min,S=4294967295,_=!b(function(){return!RegExp(S,"y")});u("split",2,function(T,D,Y){var V;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?V=function(H,j){var K=String(h(this)),F=j===void 0?S:j>>>0;if(F===0)return[];if(H===void 0)return[K];if(!d(H))return D.call(K,H,F);for(var z=[],$=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),J=0,U=new RegExp(H.source,$+"g"),q,te,se;(q=y.call(U,K))&&(te=U.lastIndex,!(te>J&&(z.push(K.slice(J,q.index)),q.length>1&&q.index<K.length&&E.apply(z,q.slice(1)),se=q[0].length,J=te,z.length>=F)));)U.lastIndex===q.index&&U.lastIndex++;return J===K.length?(se||!U.test(""))&&z.push(""):z.push(K.slice(J)),z.length>F?z.slice(0,F):z}:"0".split(void 0,0).length?V=function(H,j){return H===void 0&&j===0?[]:D.call(this,H,j)}:V=D,[function(j,K){var F=h(this),z=j?.[T];return z!==void 0?z.call(j,F,K):V.call(String(F),j,K)},function(H,j){var K=Y(V,H,this,j,V!==D);if(K.done)return K.value;var F=f(H),z=String(this),$=p(F,RegExp),J=F.unicode,U=(F.ignoreCase?"i":"")+(F.multiline?"m":"")+(F.unicode?"u":"")+(_?"y":"g"),q=new $(_?F:"^(?:"+F.source+")",U),te=j===void 0?S:j>>>0;if(te===0)return[];if(z.length===0)return v(q,z)===null?[z]:[];for(var se=0,he=0,pe=[];he<z.length;){q.lastIndex=_?he:0;var ye=v(q,_?z:z.slice(he)),Ce;if(ye===null||(Ce=C(g(q.lastIndex+(_?0:he)),z.length))===se)he=m(z,he,J);else{if(pe.push(z.slice(se,he)),pe.length===te)return pe;for(var Ae=1;Ae<=ye.length-1;Ae++)if(pe.push(ye[Ae]),pe.length===te)return pe;he=se=Ce}}return pe.push(z.slice(se)),pe}]},!_)}),3210:(function(s,c,a){var u=a(2109),d=a(3111).trim,f=a(6091);u({target:"String",proto:!0,forced:f("trim")},{trim:function(){return d(this)}})}),2990:(function(s,c,a){var u=a(260),d=a(1048),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("copyWithin",function(m,g){return d.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})}),8927:(function(s,c,a){var u=a(260),d=a(2092).every,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("every",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3105:(function(s,c,a){var u=a(260),d=a(1285),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("fill",function(m){return d.apply(f(this),arguments)})}),5035:(function(s,c,a){var u=a(260),d=a(2092).filter,f=a(3074),h=u.aTypedArray,p=u.exportTypedArrayMethod;p("filter",function(g){var v=d(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,v)})}),7174:(function(s,c,a){var u=a(260),d=a(2092).findIndex,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("findIndex",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4345:(function(s,c,a){var u=a(260),d=a(2092).find,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("find",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),2846:(function(s,c,a){var u=a(260),d=a(2092).forEach,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("forEach",function(m){d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4731:(function(s,c,a){var u=a(260),d=a(1318).includes,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("includes",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),7209:(function(s,c,a){var u=a(260),d=a(1318).indexOf,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("indexOf",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),6319:(function(s,c,a){var u=a(7854),d=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=u.Uint8Array,g=f.values,v=f.keys,y=f.entries,b=d.aTypedArray,E=d.exportTypedArrayMethod,C=m&&m.prototype[p],S=!!C&&(C.name=="values"||C.name==null),_=function(){return g.call(b(this))};E("entries",function(){return y.call(b(this))}),E("keys",function(){return v.call(b(this))}),E("values",_,!S),E(p,_,!S)}),8867:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(d(this),arguments)})}),7789:(function(s,c,a){var u=a(260),d=a(6583),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("lastIndexOf",function(m){return d.apply(f(this),arguments)})}),3739:(function(s,c,a){var u=a(260),d=a(2092).map,f=a(6707),h=u.aTypedArray,p=u.aTypedArrayConstructor,m=u.exportTypedArrayMethod;m("map",function(v){return d(h(this),v,arguments.length>1?arguments[1]:void 0,function(y,b){return new(p(f(y,y.constructor)))(b)})})}),4483:(function(s,c,a){var u=a(260),d=a(3671).right,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("reduceRight",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(s,c,a){var u=a(260),d=a(3671).left,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("reduce",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=d(m).length,v=h(g/2),y=0,b;y<v;)b=m[y],m[y++]=m[--g],m[g]=b;return m})}),3462:(function(s,c,a){var u=a(260),d=a(7466),f=a(4590),h=a(7908),p=a(7293),m=u.aTypedArray,g=u.exportTypedArrayMethod,v=p(function(){new Int8Array(1).set({})});g("set",function(b){m(this);var E=f(arguments.length>1?arguments[1]:void 0,1),C=this.length,S=h(b),_=d(S.length),T=0;if(_+E>C)throw RangeError("Wrong length");for(;T<_;)this[E+T]=S[T++]},v)}),678:(function(s,c,a){var u=a(260),d=a(6707),f=a(7293),h=u.aTypedArray,p=u.aTypedArrayConstructor,m=u.exportTypedArrayMethod,g=[].slice,v=f(function(){new Int8Array(1).slice()});m("slice",function(b,E){for(var C=g.call(h(this),b,E),S=d(this,this.constructor),_=0,T=C.length,D=new(p(S))(T);T>_;)D[_]=C[_++];return D},v)}),7462:(function(s,c,a){var u=a(260),d=a(2092).some,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("some",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3824:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(d(this),m)})}),5021:(function(s,c,a){var u=a(260),d=a(7466),f=a(1400),h=a(6707),p=u.aTypedArray,m=u.exportTypedArrayMethod;m("subarray",function(v,y){var b=p(this),E=b.length,C=f(v,E);return new(h(b,b.constructor))(b.buffer,b.byteOffset+C*b.BYTES_PER_ELEMENT,d((y===void 0?E:f(y,E))-C))})}),2974:(function(s,c,a){var u=a(7854),d=a(260),f=a(7293),h=u.Int8Array,p=d.aTypedArray,m=d.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,y=!!h&&f(function(){g.call(new h(1))}),b=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(y?v.call(p(this)):p(this),arguments)},b)}),5016:(function(s,c,a){var u=a(260).exportTypedArrayMethod,d=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;d(function(){m.call({})})&&(m=function(){return g.call(this)});var v=p.toString!=m;u("toString",m,v)}),2472:(function(s,c,a){var u=a(9843);u("Uint8",function(d){return function(h,p,m){return d(this,h,p,m)}})}),4747:(function(s,c,a){var u=a(7854),d=a(8324),f=a(8533),h=a(8880);for(var p in d){var m=u[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 u=a(7854),d=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),v=f.values;for(var y in d){var b=u[y],E=b&&b.prototype;if(E){if(E[m]!==v)try{h(E,m,v)}catch{E[m]=v}if(E[g]||h(E,g,y),d[y]){for(var C in f)if(E[C]!==f[C])try{h(E,C,f[C])}catch{E[C]=f[C]}}}}}),1637:(function(s,c,a){a(6992);var u=a(2109),d=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),v=a(9909),y=a(5787),b=a(6656),E=a(9974),C=a(648),S=a(9670),_=a(111),T=a(30),D=a(9114),Y=a(8554),V=a(1246),H=a(5112),j=d("fetch"),K=d("Headers"),F=H("iterator"),z="URLSearchParams",$=z+"Iterator",J=v.set,U=v.getterFor(z),q=v.getterFor($),te=/\+/g,se=Array(4),he=function(R){return se[R-1]||(se[R-1]=RegExp("((?:%[\\da-f]{2}){"+R+"})","gi"))},pe=function(R){try{return decodeURIComponent(R)}catch{return R}},ye=function(R){var W=R.replace(te," "),G=4;try{return decodeURIComponent(W)}catch{for(;G;)W=W.replace(he(G--),pe);return W}},Ce=/[!'()~]|%20/g,Ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ge=function(R){return Ae[R]},N=function(R){return encodeURIComponent(R).replace(Ce,ge)},M=function(R,W){if(W)for(var G=W.split("&"),A=0,x,B;A<G.length;)x=G[A++],x.length&&(B=x.split("="),R.push({key:ye(B.shift()),value:ye(B.join("="))}))},I=function(R){this.entries.length=0,M(this.entries,R)},O=function(R,W){if(R<W)throw TypeError("Not enough arguments")},k=g(function(W,G){J(this,{type:$,iterator:Y(U(W).entries),kind:G})},"Iterator",function(){var W=q(this),G=W.kind,A=W.iterator.next(),x=A.value;return A.done||(A.value=G==="keys"?x.key:G==="values"?x.value:[x.key,x.value]),A}),w=function(){y(this,w,z);var W=arguments.length>0?arguments[0]:void 0,G=this,A=[],x,B,Q,X,ee,ie,Z,ne,we;if(J(G,{type:z,entries:A,updateURL:function(){},updateSearchParams:I}),W!==void 0)if(_(W))if(x=V(W),typeof x=="function")for(B=x.call(W),Q=B.next;!(X=Q.call(B)).done;){if(ee=Y(S(X.value)),ie=ee.next,(Z=ie.call(ee)).done||(ne=ie.call(ee)).done||!ie.call(ee).done)throw TypeError("Expected sequence with length 2");A.push({key:Z.value+"",value:ne.value+""})}else for(we in W)b(W,we)&&A.push({key:we,value:W[we]+""});else M(A,typeof W=="string"?W.charAt(0)==="?"?W.slice(1):W:W+"")},P=w.prototype;p(P,{append:function(W,G){O(arguments.length,2);var A=U(this);A.entries.push({key:W+"",value:G+""}),A.updateURL()},delete:function(R){O(arguments.length,1);for(var W=U(this),G=W.entries,A=R+"",x=0;x<G.length;)G[x].key===A?G.splice(x,1):x++;W.updateURL()},get:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=0;x<G.length;x++)if(G[x].key===A)return G[x].value;return null},getAll:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=[],B=0;B<G.length;B++)G[B].key===A&&x.push(G[B].value);return x},has:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=0;x<G.length;)if(G[x++].key===A)return!0;return!1},set:function(W,G){O(arguments.length,1);for(var A=U(this),x=A.entries,B=!1,Q=W+"",X=G+"",ee=0,ie;ee<x.length;ee++)ie=x[ee],ie.key===Q&&(B?x.splice(ee--,1):(B=!0,ie.value=X));B||x.push({key:Q,value:X}),A.updateURL()},sort:function(){var W=U(this),G=W.entries,A=G.slice(),x,B,Q;for(G.length=0,Q=0;Q<A.length;Q++){for(x=A[Q],B=0;B<Q;B++)if(G[B].key>x.key){G.splice(B,0,x);break}B===Q&&G.push(x)}W.updateURL()},forEach:function(W){for(var G=U(this).entries,A=E(W,arguments.length>1?arguments[1]:void 0,3),x=0,B;x<G.length;)B=G[x++],A(B.value,B.key,this)},keys:function(){return new k(this,"keys")},values:function(){return new k(this,"values")},entries:function(){return new k(this,"entries")}},{enumerable:!0}),h(P,F,P.entries),h(P,"toString",function(){for(var W=U(this).entries,G=[],A=0,x;A<W.length;)x=W[A++],G.push(N(x.key)+"="+N(x.value));return G.join("&")},{enumerable:!0}),m(w,z),u({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof j=="function"&&typeof K=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(W){var G=[W],A,x,B;return arguments.length>1&&(A=arguments[1],_(A)&&(x=A.body,C(x)===z&&(B=A.headers?new K(A.headers):new K,B.has("content-type")||B.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),A=T(A,{body:D(0,String(x)),headers:D(0,B)}))),G.push(A)),j.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}}),285:(function(s,c,a){a(8783);var u=a(2109),d=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),v=a(6656),y=a(1574),b=a(8457),E=a(8710).codeAt,C=a(3197),S=a(8003),_=a(1637),T=a(9909),D=h.URL,Y=_.URLSearchParams,V=_.getState,H=T.set,j=T.getterFor("URL"),K=Math.floor,F=Math.pow,z="Invalid authority",$="Invalid scheme",J="Invalid host",U="Invalid port",q=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,se=/\d/,he=/^(0x|0X)/,pe=/^[0-7]+$/,ye=/^\d+$/,Ce=/^[\dA-Fa-f]+$/,Ae=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ge=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,I,O=function(L,oe){var re,ae,de;if(oe.charAt(0)=="["){if(oe.charAt(oe.length-1)!="]"||(re=w(oe.slice(1,-1)),!re))return J;L.host=re}else if(X(L)){if(oe=C(oe),Ae.test(oe)||(re=k(oe),re===null))return J;L.host=re}else{if(ge.test(oe))return J;for(re="",ae=b(oe),de=0;de<ae.length;de++)re+=B(ae[de],W);L.host=re}},k=function(L){var oe=L.split("."),re,ae,de,Oe,Ee,He,et;if(oe.length&&oe[oe.length-1]==""&&oe.pop(),re=oe.length,re>4)return L;for(ae=[],de=0;de<re;de++){if(Oe=oe[de],Oe=="")return L;if(Ee=10,Oe.length>1&&Oe.charAt(0)=="0"&&(Ee=he.test(Oe)?16:8,Oe=Oe.slice(Ee==8?1:2)),Oe==="")He=0;else{if(!(Ee==10?ye:Ee==8?pe:Ce).test(Oe))return L;He=parseInt(Oe,Ee)}ae.push(He)}for(de=0;de<re;de++)if(He=ae[de],de==re-1){if(He>=F(256,5-re))return null}else if(He>255)return null;for(et=ae.pop(),de=0;de<ae.length;de++)et+=ae[de]*F(256,3-de);return et},w=function(L){var oe=[0,0,0,0,0,0,0,0],re=0,ae=null,de=0,Oe,Ee,He,et,at,rn,ue,pt=function(){return L.charAt(de)};if(pt()==":"){if(L.charAt(1)!=":")return;de+=2,re++,ae=re}for(;pt();){if(re==8)return;if(pt()==":"){if(ae!==null)return;de++,re++,ae=re;continue}for(Oe=Ee=0;Ee<4&&Ce.test(pt());)Oe=Oe*16+parseInt(pt(),16),de++,Ee++;if(pt()=="."){if(Ee==0||(de-=Ee,re>6))return;for(He=0;pt();){if(et=null,He>0)if(pt()=="."&&He<4)de++;else return;if(!se.test(pt()))return;for(;se.test(pt());){if(at=parseInt(pt(),10),et===null)et=at;else{if(et==0)return;et=et*10+at}if(et>255)return;de++}oe[re]=oe[re]*256+et,He++,(He==2||He==4)&&re++}if(He!=4)return;break}else if(pt()==":"){if(de++,!pt())return}else if(pt())return;oe[re++]=Oe}if(ae!==null)for(rn=re-ae,re=7;re!=0&&rn>0;)ue=oe[re],oe[re--]=oe[ae+rn-1],oe[ae+--rn]=ue;else if(re!=8)return;return oe},P=function(L){for(var oe=null,re=1,ae=null,de=0,Oe=0;Oe<8;Oe++)L[Oe]!==0?(de>re&&(oe=ae,re=de),ae=null,de=0):(ae===null&&(ae=Oe),++de);return de>re&&(oe=ae,re=de),oe},R=function(L){var oe,re,ae,de;if(typeof L=="number"){for(oe=[],re=0;re<4;re++)oe.unshift(L%256),L=K(L/256);return oe.join(".")}else if(typeof L=="object"){for(oe="",ae=P(L),re=0;re<8;re++)de&&L[re]===0||(de&&(de=!1),ae===re?(oe+=re?":":"::",de=!0):(oe+=L[re].toString(16),re<7&&(oe+=":")));return"["+oe+"]"}return L},W={},G=y({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),A=y({},G,{"#":1,"?":1,"{":1,"}":1}),x=y({},A,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),B=function(L,oe){var re=E(L,0);return re>32&&re<127&&!v(oe,L)?L:encodeURIComponent(L)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(L){return v(Q,L.scheme)},ee=function(L){return L.username!=""||L.password!=""},ie=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},Z=function(L,oe){var re;return L.length==2&&q.test(L.charAt(0))&&((re=L.charAt(1))==":"||!oe&&re=="|")},ne=function(L){var oe;return L.length>1&&Z(L.slice(0,2))&&(L.length==2||(oe=L.charAt(2))==="/"||oe==="\\"||oe==="?"||oe==="#")},we=function(L){var oe=L.path,re=oe.length;re&&(L.scheme!="file"||re!=1||!Z(oe[0],!0))&&oe.pop()},Ie=function(L){return L==="."||L.toLowerCase()==="%2e"},Ne=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Xe={},ht={},qe={},fr={},gn={},Qe={},Be={},st={},Gt={},Zr={},hr={},pr={},tn={},jn={},Ro={},kc={},Vo={},Tn={},Ah={},Jr={},Wn={},In=function(L,oe,re,ae){var de=re||Xe,Oe=0,Ee="",He=!1,et=!1,at=!1,rn,ue,pt,Kn;for(re||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,oe=oe.replace(N,"")),oe=oe.replace(M,""),rn=b(oe);Oe<=rn.length;){switch(ue=rn[Oe],de){case Xe:if(ue&&q.test(ue))Ee+=ue.toLowerCase(),de=ht;else{if(re)return $;de=qe;continue}break;case ht:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ee+=ue.toLowerCase();else if(ue==":"){if(re&&(X(L)!=v(Q,Ee)||Ee=="file"&&(ee(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=Ee,re){X(L)&&Q[L.scheme]==L.port&&(L.port=null);return}Ee="",L.scheme=="file"?de=jn:X(L)&&ae&&ae.scheme==L.scheme?de=fr:X(L)?de=st:rn[Oe+1]=="/"?(de=gn,Oe++):(L.cannotBeABaseURL=!0,L.path.push(""),de=Ah)}else{if(re)return $;Ee="",de=qe,Oe=0;continue}break;case qe:if(!ae||ae.cannotBeABaseURL&&ue!="#")return $;if(ae.cannotBeABaseURL&&ue=="#"){L.scheme=ae.scheme,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",L.cannotBeABaseURL=!0,de=Wn;break}de=ae.scheme=="file"?jn:Qe;continue;case fr:if(ue=="/"&&rn[Oe+1]=="/")de=Gt,Oe++;else{de=Qe;continue}break;case gn:if(ue=="/"){de=Zr;break}else{de=Tn;continue}case Qe:if(L.scheme=ae.scheme,ue==I)L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query=ae.query;else if(ue=="/"||ue=="\\"&&X(L))de=Be;else if(ue=="?")L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query="",de=Jr;else if(ue=="#")L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",de=Wn;else{L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.path.pop(),de=Tn;continue}break;case Be:if(X(L)&&(ue=="/"||ue=="\\"))de=Gt;else if(ue=="/")de=Zr;else{L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,de=Tn;continue}break;case st:if(de=Gt,ue!="/"||Ee.charAt(Oe+1)!="/")continue;Oe++;break;case Gt:if(ue!="/"&&ue!="\\"){de=Zr;continue}break;case Zr:if(ue=="@"){He&&(Ee="%40"+Ee),He=!0,pt=b(Ee);for(var Sc=0;Sc<pt.length;Sc++){var $h=pt[Sc];if($h==":"&&!at){at=!0;continue}var Fh=B($h,x);at?L.password+=Fh:L.username+=Fh}Ee=""}else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)){if(He&&Ee=="")return z;Oe-=b(Ee).length+1,Ee="",de=hr}else Ee+=ue;break;case hr:case pr:if(re&&L.scheme=="file"){de=kc;continue}else if(ue==":"&&!et){if(Ee=="")return J;if(Kn=O(L,Ee),Kn)return Kn;if(Ee="",de=tn,re==pr)return}else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)){if(X(L)&&Ee=="")return J;if(re&&Ee==""&&(ee(L)||L.port!==null))return;if(Kn=O(L,Ee),Kn)return Kn;if(Ee="",de=Vo,re)return;continue}else ue=="["?et=!0:ue=="]"&&(et=!1),Ee+=ue;break;case tn:if(se.test(ue))Ee+=ue;else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)||re){if(Ee!=""){var Ac=parseInt(Ee,10);if(Ac>65535)return U;L.port=X(L)&&Ac===Q[L.scheme]?null:Ac,Ee=""}if(re)return;de=Vo;continue}else return U;break;case jn:if(L.scheme="file",ue=="/"||ue=="\\")de=Ro;else if(ae&&ae.scheme=="file")if(ue==I)L.host=ae.host,L.path=ae.path.slice(),L.query=ae.query;else if(ue=="?")L.host=ae.host,L.path=ae.path.slice(),L.query="",de=Jr;else if(ue=="#")L.host=ae.host,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",de=Wn;else{ne(rn.slice(Oe).join(""))||(L.host=ae.host,L.path=ae.path.slice(),we(L)),de=Tn;continue}else{de=Tn;continue}break;case Ro:if(ue=="/"||ue=="\\"){de=kc;break}ae&&ae.scheme=="file"&&!ne(rn.slice(Oe).join(""))&&(Z(ae.path[0],!0)?L.path.push(ae.path[0]):L.host=ae.host),de=Tn;continue;case kc:if(ue==I||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!re&&Z(Ee))de=Tn;else if(Ee==""){if(L.host="",re)return;de=Vo}else{if(Kn=O(L,Ee),Kn)return Kn;if(L.host=="localhost"&&(L.host=""),re)return;Ee="",de=Vo}continue}else Ee+=ue;break;case Vo:if(X(L)){if(de=Tn,ue!="/"&&ue!="\\")continue}else if(!re&&ue=="?")L.query="",de=Jr;else if(!re&&ue=="#")L.fragment="",de=Wn;else if(ue!=I&&(de=Tn,ue!="/"))continue;break;case Tn:if(ue==I||ue=="/"||ue=="\\"&&X(L)||!re&&(ue=="?"||ue=="#")){if(Ne(Ee)?(we(L),ue!="/"&&!(ue=="\\"&&X(L))&&L.path.push("")):Ie(Ee)?ue!="/"&&!(ue=="\\"&&X(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&Z(Ee)&&(L.host&&(L.host=""),Ee=Ee.charAt(0)+":"),L.path.push(Ee)),Ee="",L.scheme=="file"&&(ue==I||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Jr):ue=="#"&&(L.fragment="",de=Wn)}else Ee+=B(ue,A);break;case Ah:ue=="?"?(L.query="",de=Jr):ue=="#"?(L.fragment="",de=Wn):ue!=I&&(L.path[0]+=B(ue,W));break;case Jr:!re&&ue=="#"?(L.fragment="",de=Wn):ue!=I&&(ue=="'"&&X(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=B(ue,W));break;case Wn:ue!=I&&(L.fragment+=B(ue,G));break}Oe++}},Xr=function(oe){var re=g(this,Xr,"URL"),ae=arguments.length>1?arguments[1]:void 0,de=String(oe),Oe=H(re,{type:"URL"}),Ee,He;if(ae!==void 0){if(ae instanceof Xr)Ee=j(ae);else if(He=In(Ee={},String(ae)),He)throw TypeError(He)}if(He=In(Oe,de,null,Ee),He)throw TypeError(He);var et=Oe.searchParams=new Y,at=V(et);at.updateSearchParams(Oe.query),at.updateURL=function(){Oe.query=String(et)||null},d||(re.href=Js.call(re),re.origin=xh.call(re),re.protocol=Th.call(re),re.username=Ih.call(re),re.password=_h.call(re),re.host=Nh.call(re),re.hostname=Oh.call(re),re.port=Mh.call(re),re.pathname=Lh.call(re),re.search=Dh.call(re),re.searchParams=Ph.call(re),re.hash=Bh.call(re))},wc=Xr.prototype,Js=function(){var L=j(this),oe=L.scheme,re=L.username,ae=L.password,de=L.host,Oe=L.port,Ee=L.path,He=L.query,et=L.fragment,at=oe+":";return de!==null?(at+="//",ee(L)&&(at+=re+(ae?":"+ae:"")+"@"),at+=R(de),Oe!==null&&(at+=":"+Oe)):oe=="file"&&(at+="//"),at+=L.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",He!==null&&(at+="?"+He),et!==null&&(at+="#"+et),at},xh=function(){var L=j(this),oe=L.scheme,re=L.port;if(oe=="blob")try{return new URL(oe.path[0]).origin}catch{return"null"}return oe=="file"||!X(L)?"null":oe+"://"+R(L.host)+(re!==null?":"+re:"")},Th=function(){return j(this).scheme+":"},Ih=function(){return j(this).username},_h=function(){return j(this).password},Nh=function(){var L=j(this),oe=L.host,re=L.port;return oe===null?"":re===null?R(oe):R(oe)+":"+re},Oh=function(){var L=j(this).host;return L===null?"":R(L)},Mh=function(){var L=j(this).port;return L===null?"":String(L)},Lh=function(){var L=j(this),oe=L.path;return L.cannotBeABaseURL?oe[0]:oe.length?"/"+oe.join("/"):""},Dh=function(){var L=j(this).query;return L?"?"+L:""},Ph=function(){return j(this).searchParams},Bh=function(){var L=j(this).fragment;return L?"#"+L:""},nn=function(L,oe){return{get:L,set:oe,configurable:!0,enumerable:!0}};if(d&&p(wc,{href:nn(Js,function(L){var oe=j(this),re=String(L),ae=In(oe,re);if(ae)throw TypeError(ae);V(oe.searchParams).updateSearchParams(oe.query)}),origin:nn(xh),protocol:nn(Th,function(L){var oe=j(this);In(oe,String(L)+":",Xe)}),username:nn(Ih,function(L){var oe=j(this),re=b(String(L));if(!ie(oe)){oe.username="";for(var ae=0;ae<re.length;ae++)oe.username+=B(re[ae],x)}}),password:nn(_h,function(L){var oe=j(this),re=b(String(L));if(!ie(oe)){oe.password="";for(var ae=0;ae<re.length;ae++)oe.password+=B(re[ae],x)}}),host:nn(Nh,function(L){var oe=j(this);oe.cannotBeABaseURL||In(oe,String(L),hr)}),hostname:nn(Oh,function(L){var oe=j(this);oe.cannotBeABaseURL||In(oe,String(L),pr)}),port:nn(Mh,function(L){var oe=j(this);ie(oe)||(L=String(L),L==""?oe.port=null:In(oe,L,tn))}),pathname:nn(Lh,function(L){var oe=j(this);oe.cannotBeABaseURL||(oe.path=[],In(oe,L+"",Vo))}),search:nn(Dh,function(L){var oe=j(this);L=String(L),L==""?oe.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),oe.query="",In(oe,L,Jr)),V(oe.searchParams).updateSearchParams(oe.query)}),searchParams:nn(Ph),hash:nn(Bh,function(L){var oe=j(this);if(L=String(L),L==""){oe.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),oe.fragment="",In(oe,L,Wn)})}),m(wc,"toJSON",function(){return Js.call(this)},{enumerable:!0}),m(wc,"toString",function(){return Js.call(this)},{enumerable:!0}),D){var Rh=D.createObjectURL,Vh=D.revokeObjectURL;Rh&&m(Xr,"createObjectURL",function(oe){return Rh.apply(D,arguments)}),Vh&&m(Xr,"revokeObjectURL",function(oe){return Vh.apply(D,arguments)})}S(Xr,"URL"),u({global:!0,forced:!f,sham:!d},{URL:Xr})})},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 ge}}),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(N,M){var I;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=c(N))||N&&typeof N.length=="number"){I&&(N=I);var O=0,k=function(){};return{s:k,n:function(){return O>=N.length?{done:!0}:{done:!1,value:N[O++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1173
+ `,Qk={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"},Zk=ct.extend({name:"splitbutton",style:Gk,classes:Qk}),Jk={name:"BaseSplitButton",extends:bi,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:Zk,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},mv={name:"SplitButton",extends:Jk,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 Sn(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:uv,PVSMenu:pv,ChevronDownIcon:sv}},Xk=["data-p-severity"];function qk(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":o.isExpanded?t.$id+"_overlay":void 0,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,Xk)}mv.render=qk;const ew=["src"],tw={class:"menu-item"},nw=["src"],gv={__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>r.contentLibraryProviders.map(f=>({label:f.label,image:f.img,value:f.value,command:()=>o("content-library",f.value)}))),s=l.computed(()=>{let f=i.value;return f.length!==0&&r.isExternalOnly&&(f=f.slice(1)),f}),c=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0?f[0].label:n("contentLibrarySplitButton.messageTemplatesTitle")}),a=l.computed(()=>{const f=i.value;return r.isExternalOnly&&f.length>0}),u=l.computed(()=>{const f=i.value;return f.length>0?f[0].image:""}),d=()=>{const f=i.value;let h="message-template";r.isExternalOnly&&f.length>0&&(h=f[0].value),o("content-library",h)};return(f,h)=>(l.openBlock(),l.createBlock(l.unref(mv),{class:"bd-content-library-split-button",model:s.value,outlined:"",severity:"secondary",onClick:d},{default:l.withCtx(()=>[a.value?(l.openBlock(),l.createElementBlock("img",{key:0,src:u.value,alt:""},null,8,ew)):(l.openBlock(),l.createBlock($d,{key:1})),l.createElementVNode("span",null,l.toDisplayString(c.value),1)]),item:l.withCtx(({item:p})=>[l.createElementVNode("div",tw,[l.createElementVNode("img",{src:p.image,alt:"",class:"icon-image"},null,8,nw),l.createElementVNode("span",null,l.toDisplayString(p.label),1)])]),_:1},8,["model"]))}},rw={class:"invalid-feedback bd-invalid-feedback"},ql=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",rw,[e.state?(l.openBlock(),l.createBlock(l.unref(gi),{key:0})):(l.openBlock(),l.createBlock(l.unref(Wl),{key:1})),l.createTextVNode(" "+l.toDisplayString(e.text),1)]))}});var ow=Object.defineProperty,iw=(t,e,n)=>e in t?ow(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Hi=(t,e,n)=>iw(t,typeof e!="symbol"?e+"":e,n);const jp={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Wp=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Kp=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},sw=(t,e=!0,n)=>{var r,o,i,s;const c=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",a=((o=n.number)==null?void 0:o.fraction)??0;let u=Kp(0,a,n);const d=u.formatToParts(1000.12),f=((i=d.find(v=>v.type==="group"))==null?void 0:i.value)??" ",h=((s=d.find(v=>v.type==="decimal"))==null?void 0:s.value)??".",p=Wp(t,f,h);if(Number.isNaN(parseFloat(p)))return c;const m=p.split(".");if(m[1]!=null&&m[1].length>=1){const v=m[1].length<=a?m[1].length:a;u=Kp(v,a,n)}let g=u.format(parseFloat(p));return e?a>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(g+=h):g=Wp(g,f,h),c+g},vv=t=>JSON.parse(t.replaceAll("'",'"')),aw=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=lw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=sa(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=sa(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=sa(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=cw(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=sa(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},sa=t=>t!==""?!!JSON.parse(t):!0,lw=t=>t.startsWith("[")&&t.endsWith("]")?vv(t):t,cw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return vv(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:yv()?new RegExp(r[1],"u"):new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e},yv=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};class uw{constructor(e={}){Hi(this,"opts",{}),Hi(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...jp,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=yv()?new RegExp(r.pattern,"u"):new RegExp(r.pattern))}else n.tokens=jp;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(String(e),this.findMask(String(e)))}unmasked(e){return this.process(String(e),this.findMask(String(e)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(String(e));if(this.opts.mask==null||n==null)return!1;const r=this.process(String(e),n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.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(this.opts.number!=null)return sw(e,r,this.opts);if(n==null)return e;const o=`v=${e},mr=${n},m=${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:{},u=this.isReversed()?-1:1,d=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>v>-1&&y>-1:()=>v<i.length&&y<e.length,p=E=>!this.isReversed()&&E<=f||this.isReversed()&&E>=f;let m,g=-1,v=this.isReversed()?i.length-1:0,y=this.isReversed()?e.length-1:0,b=!1;for(;h();){const E=i.charAt(v),C=a[E],S=C?.transform!=null?C.transform(e.charAt(y)):e.charAt(y);if(!s.includes(v)&&C!=null?(S.match(C.pattern)!=null?(c[d](S),C.repeated?(g===-1?g=v:v===f&&v!==g&&(v=g-u),f===g&&(v-=u)):C.multiple&&(b=!0,v-=u),v+=u):C.multiple?b&&(v+=u,y-=u,b=!1):S===m?m=void 0:C.optional&&(v+=u,y-=u),y+=u):(r&&!this.isEager()&&c[d](E),S===E&&!this.isEager()?y+=u:m=E,this.isEager()||(v+=u)),this.isEager())for(;p(v)&&(a[i.charAt(v)]==null||s.includes(v));){if(r){if(c[d](i.charAt(v)),e.charAt(y)===i.charAt(v)){v+=u,y+=u;continue}}else i.charAt(v)===e.charAt(y)&&(y+=u);v+=u}}return this.memo.set(o,c.join("")),this.memo.get(o)}}let dw=class{constructor(e,n={}){Hi(this,"items",new Map),Hi(this,"eventAbortController"),Hi(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const o=r.target,i=this.items.get(o);if(i===void 0)return;const s="inputType"in r&&r.inputType.startsWith("delete"),c=i.isEager(),a=s&&c&&i.unmasked(o.value)===""?"":o.value;this.fixCursor(o,s,()=>this.setValue(o,a))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){var n;e.value!==""&&e.value!==((n=this.processInput(e))==null?void 0:n.masked)&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:i}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:i})}const o=new uw(aw(r,n));this.items.set(r,o),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&o.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}fixCursor(e,n,r){var o,i;const s=e.selectionStart,c=e.value;if(r(),s===null||s===c.length&&!n)return;const a=e.value,u=c.slice(0,s),d=a.slice(0,s),f=(o=this.processInput(e,u))==null?void 0:o.unmasked,h=(i=this.processInput(e,d))==null?void 0:i.unmasked;if(f===void 0||h===void 0)return;let p=s;u!==d&&(p+=n?a.length-c.length:f.length-h.length),e.setSelectionRange(p,p)}setValue(e,n){const r=this.processInput(e,n);r!==void 0&&(e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(o=>o(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked})))}processInput(e,n){const r=this.items.get(e);if(r===void 0)return;let o=n??e.value;this.options.preProcess!=null&&(o=this.options.preProcess(o));let i=r.masked(o);return this.options.postProcess!=null&&(i=this.options.postProcess(i)),{masked:i,unmasked:r.unmasked(o),completed:r.completed(o)}}};const Bc=new WeakMap,fw=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},hw=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||r?.type==="file")return;let o={};if(e.value!=null&&(o=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const i=s=>{const c=e.modifiers.unmasked?s.unmasked:e.modifiers.completed?s.completed:s.masked;fw(e,c)};o.onMaska=o.onMaska==null?i:Array.isArray(o.onMaska)?[...o.onMaska,i]:[o.onMaska,i]}Bc.has(r)?(n=Bc.get(r))==null||n.update(o):Bc.set(r,new dw(r,o))},pw=["value","type"],Ir=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:lt.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,r=e,{uniqueIdentifier:o}=vi(),i=Oo(n,"modelValue",r),s=`__BD__FORM__LABEL__${o.value}`,c=`__BD__FORM__GROUP__${o.value}`,a=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():o.value}`,u=`validationFeedback${n.label?n.label.replace(/ /g,""):o.value}`,d=l.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),f=l.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),h=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?u:null,"data-maska":n.mask})),p=t6(m=>{i.value=m.target.value},n.delayTimeMs);return(m,g)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-form-input",t.formGroupClass]),id:c},[l.renderSlot(m.$slots,"label",{},()=>[t.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:a,id:s,class:l.normalizeClass(["form-label",t.labelClass])},l.toDisplayString(t.label),3)):l.createCommentVNode("",!0)]),l.createElementVNode("div",{class:l.normalizeClass(t.formFieldClass)},[l.withDirectives(l.createElementVNode("input",l.mergeProps({value:t.modelValue,type:t.type,id:a,class:["form-control",d.value]},h.value,{onInput:g[0]||(g[0]=(...v)=>l.unref(p)&&l.unref(p)(...v)),onClick:g[1]||(g[1]=v=>m.$emit("click")),onBlur:g[2]||(g[2]=v=>m.$emit("blur")),onKeydown:g[3]||(g[3]=l.withKeys(v=>m.$emit("enter"),["enter"]))}),null,16,pw),[[l.unref(hw)]]),l.renderSlot(m.$slots,"default")],2),l.createVNode(ql,{text:t.invalidFeedbackText,class:l.normalizeClass(f.value),state:t.state,id:u},null,8,["text","class","state"])],2))}}),mw={class:"input-group bd-input-group"},gw=["for"],Cs=l.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=l.useAttrs(),n=t;return(r,o)=>(l.openBlock(),l.createElementBlock("fieldset",mw,[n.label?(l.openBlock(),l.createElementBlock("label",{key:0,for:n.labelForId,class:"form-label"},l.toDisplayString(n.label),9,gw)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:l.normalizeClass(l.unref(e).class)},[l.renderSlot(r.$slots,"default")],2)]))}}),vw={key:0},yw={key:1},bv=l.defineComponent({__name:"BDBadge",props:{variant:{default:Yl.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)},[t.variant==="danger"?(l.openBlock(),l.createElementBlock("span",vw,[l.createVNode(l.unref(Ur))])):l.createCommentVNode("",!0),t.variant==="success"?(l.openBlock(),l.createElementBlock("span",yw,[l.createVNode(l.unref(gi))])):l.createCommentVNode("",!0),l.renderSlot(r.$slots,"default")],2))}}),Cv=l.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){const n=e;function r(){n("submit")}function o(){n("reset")}return(i,s)=>(l.openBlock(),l.createElementBlock("form",{onSubmit:l.withModifiers(r,["prevent"]),onReset:l.withModifiers(o,["prevent"])},[l.renderSlot(i.$slots,"default")],32))}}),bw={"aria-label":"Page navigation",class:"bd-pagination"},Cw={class:"page-item"},Ew=["data-page"],kw=["data-page"],ww={class:"page-item"},Sw=["data-page"],mf=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=e,o=Oo(n,"modelValue",r),i=l.ref(Math.ceil(n.totalRows/n.rowsPerPage)),s=l.ref([]);l.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{i.value=Math.ceil(n.totalRows/n.rowsPerPage),s.value=f(o.value)}),l.onMounted(()=>{s.value=f(o.value)});const c=l.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),a=h=>{const p=h.currentTarget.getAttribute("data-page"),m=Number(p);isNaN(Number(m))||(o.value=m,s.value=f(m)),r("click",m)},u=(h,p,m)=>m<=p?m:h==1?6:h<=4?5:1,d=(h,p,m)=>m<=p?0:h==m?6:h>m-4?5:1,f=h=>{const p=[],g=u(h,7,i.value),v=i.value>7&&h>4,y=i.value>7&&h<i.value-3,b=v&&y,E=d(h,7,i.value);for(let C=1;C<=g;C++)p.push(C);if(v&&p.push("..."),b)for(let C=h-1;C<=h+1;C++)p.push(C);y&&p.push("...");for(let C=1;C<=E;C++)p.push(i.value-E+C);return p};return(h,p)=>(l.openBlock(),l.createElementBlock("div",bw,[l.createElementVNode("ul",{class:l.normalizeClass(["pagination",c.value])},[l.withDirectives(l.createElementVNode("li",Cw,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:a,"data-page":l.unref(o)-1},[l.createVNode(l.unref(Rd))],8,Ew)],512),[[l.vShow,l.unref(o)>1]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,m=>(l.openBlock(),l.createElementBlock("li",{class:l.normalizeClass(["page-item",{active:l.unref(o)===m,disabled:typeof m=="string"}]),key:m},[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:a,"data-page":m},l.toDisplayString(m),9,kw)],2))),128)),l.withDirectives(l.createElementVNode("li",ww,[l.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:a,"data-page":l.unref(o)+1},[l.createVNode(l.unref(Vd))],8,Sw)],512),[[l.vShow,l.unref(o)<i.value]])],2)]))}}),Aw=["disabled"],xw=["label"],Tw=["value"],Iw=["value"],Ev=l.defineComponent({__name:"BDFormSelect",props:{size:{default:lt.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=e,o=Oo(n,"modelValue",r),i=l.ref(null),{focused:s}=i6(i,{initialValue:n.autofocus}),c=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,f=>{f&&(s.value=!0)});const a=f=>{o.value=f.target.value;let h=d(f.target.value);r("input",h)},u=f=>{let h=d(f.target.value);r("change",h)},d=f=>{try{return JSON.parse(f)}catch{return f}};return(f,h)=>l.withDirectives((l.openBlock(),l.createElementBlock("select",{class:l.normalizeClass(c.value),"onUpdate:modelValue":h[0]||(h[0]=p=>l.isRef(o)?o.value=p:null),disabled:n.disabled,ref_key:"input",ref:i,onInput:a,onChange:u},[l.renderSlot(f.$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,p=>(l.openBlock(),l.createElementBlock("optgroup",{label:p.label},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(p.options,m=>(l.openBlock(),l.createElementBlock("option",{value:JSON.stringify(m.value),key:m.value},l.toDisplayString(m.text),9,Tw))),128))],8,xw))),256)):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(n.options,p=>(l.openBlock(),l.createElementBlock("option",{value:p.value,key:p.value},l.toDisplayString(p.text),9,Iw))),128))],42,Aw)),[[l.vModelSelect,l.unref(o)]])}}),_w=["value","true-value","false-value","data-checked","disabled"],Pr=l.defineComponent({__name:"BDFormCheckbox",props:{disabled:{type:Boolean,default:!1},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{uniqueIdentifier:n}=vi(),r=t,o=e,i=Oo(r,"modelValue",o),s=`form-check-input-${n.value}`,c=l.computed(()=>["form-check","bd-form-checkbox"]),a=l.computed(()=>({"form-check-input":!0,"is-invalid":r.state===!1})),u=d=>o("change",d.target.value);return(d,f)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(c.value)},[l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>l.isRef(i)?i.value=h:null),id:s,class:l.normalizeClass(a.value),type:"checkbox",value:t.value,"true-value":t.value,"false-value":t.uncheckedValue,"data-checked":l.unref(i)===t.value,disabled:r.disabled,onChange:u},null,42,_w),[[l.vModelCheckbox,l.unref(i)]]),l.createElementVNode("label",{class:"form-check-label",for:s},[l.renderSlot(d.$slots,"default")]),l.renderSlot(d.$slots,"last")],2))}}),Nw={key:0,class:"bd-article__body"},Ow={key:1},kv=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=e,o=i=>r("click",{event:i,identifier:n.identifier});return(i,s)=>(l.openBlock(),l.createElementBlock("article",{class:"bd-article",onClick:o},[l.createElementVNode("header",null,[l.renderSlot(i.$slots,"header",{},()=>[l.createElementVNode("h5",null,l.toDisplayString(n.title),1)])]),n.hideBody?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",Nw,[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])])),n.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("footer",Ow,[l.renderSlot(i.$slots,"footer")]))]))}}),Xo={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},Mw=["id"],Lw={class:"toast-header"},Dw={class:"toast-body"},gf=l.defineComponent({__name:"BDToast",props:{id:{},variant:{default:Xo.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=l.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=l.computed(()=>e.variant!==Xo.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",Lw,[r.value?(l.openBlock(),l.createBlock(l.unref(Ur),{key:0})):(l.openBlock(),l.createBlock(l.unref(gi),{key:1})),l.createElementVNode("h5",null,l.toDisplayString(e.title),1),i[0]||(i[0]=l.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1))]),l.createElementVNode("div",Dw,[l.createElementVNode("span",null,l.toDisplayString(e.text),1)])],10,Mw))}}),Ie="",aa=t=>typeof t=="string"||t instanceof String,Pw={class:"bd-pill"},Bw=["src"],Rw={class:"bd-pill__description"},Vw=["href"],$w=["id","textContent","title"],Fw=["id","textContent","title"],ec=l.defineComponent({__name:"BDPill",props:{imgSrc:{default:Ie},uri:{default:Ie},uriDisplayName:{default:Ie},title:{default:Ie},subtitle:{default:Ie},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const{uniqueIdentifier:n}=vi(),r=t,o=l.computed(()=>r.uri),i=l.computed(()=>r.uriDisplayName!==Ie?r.uriDisplayName:r.uri),s=l.computed(()=>r.imgSrc),c=l.computed(()=>r.title),a=l.computed(()=>r.subtitle),u=l.computed(()=>`bd-pill-title-${n.value}`),d=l.computed(()=>`bd-pill-subtitle-${n.value}`);return(f,h)=>(l.openBlock(),l.createElementBlock("div",Pw,[l.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,Bw),l.createElementVNode("div",Rw,[l.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[l.createVNode(l.unref(Kl),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),l.createTextVNode(" "+l.toDisplayString(i.value),1)],8,Vw),l.createElementVNode("span",{class:"bd-pill__title",id:u.value,textContent:l.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,$w),l.createElementVNode("span",{class:"bd-pill__subtitle",id:d.value,textContent:l.toDisplayString(a.value),"data-bs-toggle":"tooltip",title:a.value},null,8,Fw)])]))}});function zw(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}function Uw(t,e,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(d){try{u(r.next(d))}catch(f){s(f)}}function a(d){try{u(r.throw(d))}catch(f){s(f)}}function u(d){d.done?i(d.value):o(d.value).then(c,a)}u((r=r.apply(t,e||[])).next())})}const Hw=t=>Array.isArray(t)&&t.length>0,jw=t=>Object.keys(t).map(e=>t[e]),Rc=t=>Array.isArray(t)&&t.length>0,wv=t=>!t||Array.isArray(t)&&!t.length,vf={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=zw(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),u=l.h("small",null,jw(o).filter(f=>f).join(" • ")),d=l.h("div",{class:"bd-user-information__detail"},[a,u]);return l.h("div",{class:"bd-user-information"},[i,d])}},Yp={displayTime:!0,format:"numeric"};function Ci(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ta={exports:{}},Ww=Ta.exports,Gp;function Sv(){return Gp||(Gp=1,(function(t,e){(function(n,r){t.exports=r()})(Ww,(function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",a="hour",u="day",d="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,b={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(F){var z=["th","st","nd","rd"],$=F%100;return"["+F+(z[($-20)%10]||z[$]||z[0])+"]"}},E=function(F,z,$){var J=String(F);return!J||J.length>=z?F:""+Array(z+1-J.length).join($)+F},C={s:E,z:function(F){var z=-F.utcOffset(),$=Math.abs(z),J=Math.floor($/60),U=$%60;return(z<=0?"+":"-")+E(J,2,"0")+":"+E(U,2,"0")},m:function F(z,$){if(z.date()<$.date())return-F($,z);var J=12*($.year()-z.year())+($.month()-z.month()),U=z.clone().add(J,f),q=$-U<0,te=z.clone().add(J+(q?-1:1),f);return+(-(J+($-U)/(q?U-te:te-U))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y:p,w:d,d:u,D:m,h:a,m:c,s,ms:i,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},S="en",_={};_[S]=b;var T="$isDayjsObject",D=function(F){return F instanceof j||!(!F||!F[T])},Y=function F(z,$,J){var U;if(!z)return S;if(typeof z=="string"){var q=z.toLowerCase();_[q]&&(U=q),$&&(_[q]=$,U=q);var te=z.split("-");if(!U&&te.length>1)return F(te[0])}else{var se=z.name;_[se]=z,U=se}return!J&&U&&(S=U),U||!J&&S},V=function(F,z){if(D(F))return F.clone();var $=typeof z=="object"?z:{};return $.date=F,$.args=arguments,new j($)},H=C;H.l=Y,H.i=D,H.w=function(F,z){return V(F,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var j=(function(){function F($){this.$L=Y($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[T]=!0}var z=F.prototype;return z.parse=function($){this.$d=(function(J){var U=J.date,q=J.utc;if(U===null)return new Date(NaN);if(H.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var te=U.match(v);if(te){var se=te[2]-1||0,he=(te[7]||"0").substring(0,3);return q?new Date(Date.UTC(te[1],se,te[3]||1,te[4]||0,te[5]||0,te[6]||0,he)):new Date(te[1],se,te[3]||1,te[4]||0,te[5]||0,te[6]||0,he)}}return new Date(U)})($),this.init()},z.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},z.$utils=function(){return H},z.isValid=function(){return this.$d.toString()!==g},z.isSame=function($,J){var U=V($);return this.startOf(J)<=U&&U<=this.endOf(J)},z.isAfter=function($,J){return V($)<this.startOf(J)},z.isBefore=function($,J){return this.endOf(J)<V($)},z.$g=function($,J,U){return H.u($)?this[J]:this.set(U,$)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function($,J){var U=this,q=!!H.u(J)||J,te=H.p($),se=function(M,I){var O=H.w(U.$u?Date.UTC(U.$y,I,M):new Date(U.$y,I,M),U);return q?O:O.endOf(u)},he=function(M,I){return H.w(U.toDate()[M].apply(U.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(I)),U)},pe=this.$W,ye=this.$M,Ce=this.$D,Ae="set"+(this.$u?"UTC":"");switch(te){case p:return q?se(1,0):se(31,11);case f:return q?se(1,ye):se(0,ye+1);case d:var ge=this.$locale().weekStart||0,N=(pe<ge?pe+7:pe)-ge;return se(q?Ce-N:Ce+(6-N),ye);case u:case m:return he(Ae+"Hours",0);case a:return he(Ae+"Minutes",1);case c:return he(Ae+"Seconds",2);case s:return he(Ae+"Milliseconds",3);default:return this.clone()}},z.endOf=function($){return this.startOf($,!1)},z.$set=function($,J){var U,q=H.p($),te="set"+(this.$u?"UTC":""),se=(U={},U[u]=te+"Date",U[m]=te+"Date",U[f]=te+"Month",U[p]=te+"FullYear",U[a]=te+"Hours",U[c]=te+"Minutes",U[s]=te+"Seconds",U[i]=te+"Milliseconds",U)[q],he=q===u?this.$D+(J-this.$W):J;if(q===f||q===p){var pe=this.clone().set(m,1);pe.$d[se](he),pe.init(),this.$d=pe.set(m,Math.min(this.$D,pe.daysInMonth())).$d}else se&&this.$d[se](he);return this.init(),this},z.set=function($,J){return this.clone().$set($,J)},z.get=function($){return this[H.p($)]()},z.add=function($,J){var U,q=this;$=Number($);var te=H.p(J),se=function(ye){var Ce=V(q);return H.w(Ce.date(Ce.date()+Math.round(ye*$)),q)};if(te===f)return this.set(f,this.$M+$);if(te===p)return this.set(p,this.$y+$);if(te===u)return se(1);if(te===d)return se(7);var he=(U={},U[c]=r,U[a]=o,U[s]=n,U)[te]||1,pe=this.$d.getTime()+$*he;return H.w(pe,this)},z.subtract=function($,J){return this.add(-1*$,J)},z.format=function($){var J=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var q=$||"YYYY-MM-DDTHH:mm:ssZ",te=H.z(this),se=this.$H,he=this.$m,pe=this.$M,ye=U.weekdays,Ce=U.months,Ae=U.meridiem,ge=function(I,O,k,w){return I&&(I[O]||I(J,q))||k[O].slice(0,w)},N=function(I){return H.s(se%12||12,I,"0")},M=Ae||function(I,O,k){var w=I<12?"AM":"PM";return k?w.toLowerCase():w};return q.replace(y,(function(I,O){return O||(function(k){switch(k){case"YY":return String(J.$y).slice(-2);case"YYYY":return H.s(J.$y,4,"0");case"M":return pe+1;case"MM":return H.s(pe+1,2,"0");case"MMM":return ge(U.monthsShort,pe,Ce,3);case"MMMM":return ge(Ce,pe);case"D":return J.$D;case"DD":return H.s(J.$D,2,"0");case"d":return String(J.$W);case"dd":return ge(U.weekdaysMin,J.$W,ye,2);case"ddd":return ge(U.weekdaysShort,J.$W,ye,3);case"dddd":return ye[J.$W];case"H":return String(se);case"HH":return H.s(se,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return M(se,he,!0);case"A":return M(se,he,!1);case"m":return String(he);case"mm":return H.s(he,2,"0");case"s":return String(J.$s);case"ss":return H.s(J.$s,2,"0");case"SSS":return H.s(J.$ms,3,"0");case"Z":return te}return null})(I)||te.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function($,J,U){var q,te=this,se=H.p(J),he=V($),pe=(he.utcOffset()-this.utcOffset())*r,ye=this-he,Ce=function(){return H.m(te,he)};switch(se){case p:q=Ce()/12;break;case f:q=Ce();break;case h:q=Ce()/3;break;case d:q=(ye-pe)/6048e5;break;case u:q=(ye-pe)/864e5;break;case a:q=ye/o;break;case c:q=ye/r;break;case s:q=ye/n;break;default:q=ye}return U?q:H.a(q)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return _[this.$L]},z.locale=function($,J){if(!$)return this.$L;var U=this.clone(),q=Y($,J,!0);return q&&(U.$L=q),U},z.clone=function(){return H.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},F})(),K=j.prototype;return V.prototype=K,[["$ms",i],["$s",s],["$m",c],["$H",a],["$W",u],["$M",f],["$y",p],["$D",m]].forEach((function(F){K[F[1]]=function(z){return this.$g(z,F[0],F[1])}})),V.extend=function(F,z){return F.$i||(F(z,j,V),F.$i=!0),V},V.locale=Y,V.isDayjs=D,V.unix=function(F){return V(1e3*F)},V.en=_[S],V.Ls=_,V.p={},V}))})(Ta)),Ta.exports}var Kw=Sv();const Kt=Ci(Kw);var Ia={exports:{}},Yw=Ia.exports,Qp;function Gw(){return Qp||(Qp=1,(function(t,e){(function(n,r){t.exports=r(Sv())})(Yw,(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}))})(Ia)),Ia.exports}Gw();var _a={exports:{}},Qw=_a.exports,Zp;function Zw(){return Zp||(Zp=1,(function(t,e){(function(n,r){t.exports=r()})(Qw,(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={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),E=60*b[1]+(+b[2]||0);return E===0?0:b[0]==="+"?-E:E})(v)}],h=function(v){var y=a[v];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(v,y){var b,E=a.meridiem;if(E){for(var C=1;C<=24;C+=1)if(v.indexOf(E(C,0,y))>-1){b=C>12;break}}else b=v===(y?"pm":"PM");return b},m={A:[c,function(v){this.afternoon=p(v,!1)}],a:[c,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[i,d("day")],Do:[c,function(v){var y=a.ordinal,b=v.match(/\d+/);if(this.day=b[0],y)for(var E=1;E<=31;E+=1)y(E).replace(/\[|\]/g,"")===v&&(this.day=E)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[c,function(v){var y=h("months"),b=(h("monthsShort")||y.map((function(E){return E.slice(0,3)}))).indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[c,function(v){var y=h("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(v){var y,b;y=v,b=a&&a.formats;for(var E=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(V,H,j){var K=j&&j.toUpperCase();return H||b[j]||n[j]||b[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,z,$){return z||$.slice(1)}))}))).match(r),C=E.length,S=0;S<C;S+=1){var _=E[S],T=m[_],D=T&&T[0],Y=T&&T[1];E[S]=Y?{regex:D,parser:Y}:_.replace(/^\[|\]$/g,"")}return function(V){for(var H={},j=0,K=0;j<C;j+=1){var F=E[j];if(typeof F=="string")K+=F.length;else{var z=F.regex,$=F.parser,J=V.slice(K),U=z.exec(J)[0];$.call(H,U),V=V.replace(U,"")}}return(function(q){var te=q.afternoon;if(te!==void 0){var se=q.hours;te?se<12&&(q.hours+=12):se===12&&(q.hours=0),delete q.afternoon}})(H),H}}return function(v,y,b){b.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var E=y.prototype,C=E.parse;E.parse=function(S){var _=S.date,T=S.utc,D=S.args;this.$u=T;var Y=D[1];if(typeof Y=="string"){var V=D[2]===!0,H=D[3]===!0,j=V||H,K=D[2];H&&(K=D[2]),a=this.$locale(),!V&&K&&(a=b.Ls[K]),this.$d=(function(J,U,q,te){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*J);var se=g(U)(J),he=se.year,pe=se.month,ye=se.day,Ce=se.hours,Ae=se.minutes,ge=se.seconds,N=se.milliseconds,M=se.zone,I=se.week,O=new Date,k=ye||(he||pe?1:O.getDate()),w=he||O.getFullYear(),P=0;he&&!pe||(P=pe>0?pe-1:O.getMonth());var R,W=Ce||0,G=Ae||0,A=ge||0,x=N||0;return M?new Date(Date.UTC(w,P,k,W,G,A,x+60*M.offset*1e3)):q?new Date(Date.UTC(w,P,k,W,G,A,x)):(R=new Date(w,P,k,W,G,A,x),I&&(R=te(R).week(I).toDate()),R)}catch{return new Date("")}})(_,Y,T,b),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),j&&_!=this.format(Y)&&(this.$d=new Date("")),a={}}else if(Y instanceof Array)for(var F=Y.length,z=1;z<=F;z+=1){D[1]=Y[z-1];var $=b.apply(this,D);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}z===F&&(this.$d=new Date(""))}else C.call(this,S)}}}))})(_a)),_a.exports}var Jw=Zw();const Xw=Ci(Jw);var Na={exports:{}},qw=Na.exports,Jp;function eS(){return Jp||(Jp=1,(function(t,e){(function(n,r){t.exports=r()})(qw,(function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}}))})(Na)),Na.exports}var tS=eS();const nS=Ci(tS);var Oa={exports:{}},rS=Oa.exports,Xp;function oS(){return Xp||(Xp=1,(function(t,e){(function(n,r){t.exports=r()})(rS,(function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}}))})(Oa)),Oa.exports}var iS=oS();const sS=Ci(iS);var Ma={exports:{}},aS=Ma.exports,qp;function lS(){return qp||(qp=1,(function(t,e){(function(n,r){t.exports=r()})(aS,(function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=s(this).startOf(r).add(1,r).date(u),f=s(this).endOf(n);if(d.isBefore(f))return 1}var h=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},c.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}}))})(Ma)),Ma.exports}var cS=lS();const uS=Ci(cS);Kt.extend(Xw);Kt.locale("nl");Kt.extend(nS);Kt.extend(sS);Kt.extend(uS);const Ku=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function Av(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0);if(!n.isValid())return"";const r=e.startOf("day");if(n.isSame(r,"day"))return"Vandaag";const o=r.subtract(1,"day");if(n.isSame(o,"day"))return"Gisteren";const i=r.subtract(6,"day");if(n.isSameOrAfter(i)&&n.isBefore(r))return Ku(n.format("dddd"));const s=r.subtract(7,"day");return n.isSame(s)||n.isSame(e,"year")?n.format("D MMMM"):n.format("DD-MM-YYYY")}function xv(t,e=Kt()){const n=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0),r=t.includes(" ")&&t.includes(":");if(!n.isValid())return"";const o=e.startOf("day");if(n.isSame(o,"day"))return r?n.format("H:mm"):"Vandaag";const i=o.subtract(1,"day");if(n.isSame(i,"day"))return r?`Gisteren ${n.format("H:mm")}`:"Gisteren";const s=o.subtract(6,"day");if(n.isSameOrAfter(s)&&n.isBefore(o))return Ku(r?n.format("dddd H:mm"):n.format("dddd"));const c=o.subtract(7,"day");return n.isSame(c)||n.isSame(e,"year")?r?n.format("D MMM H:mm"):n.format("D MMMM"):n.format("DD-MM-YYYY")}function Yu(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0),n=t.includes(" ")&&t.includes(":");return e.isValid()?n&&e.isSame(Kt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function Gu(t){const e=Kt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY","YYYY-MM-DDTHH:mm:ss"],!0);return e.isValid()?e.format("DD-MM-YYYY"):""}const dS={class:"bd-date"},Tv=l.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:Yp.displayTime},format:{default:Yp.format}},setup(t){const e=t,n=l.computed(()=>e.date?e.format==="textual"?e.displayTime?xv(e.date):Av(e.date):(e.format==="numeric",e.displayTime?Yu(e.date):Gu(e.date)):"");return(r,o)=>(l.openBlock(),l.createElementBlock("span",dS,l.toDisplayString(n.value),1))}}),Za=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,o=()=>{r("click")};return(i,s)=>(l.openBlock(),l.createElementBlock("li",l.mergeProps({class:"bd-dropdown-item"},i.$attrs),[l.createVNode(Co,l.mergeProps({class:"dropdown-item",onClick:o},n),{default:l.withCtx(()=>[l.renderSlot(i.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(n.text),1)])]),_:3},16)],16))}});var Vc={exports:{}},e1;function fS(){return e1||(e1=1,(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 u=a(111);s.exports=function(d){if(!u(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}}),1223:(function(s,c,a){var u=a(5112),d=a(30),f=a(3070),h=u("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:d(null)}),s.exports=function(m){p[h][m]=!0}}),1530:(function(s,c,a){var u=a(8710).charAt;s.exports=function(d,f,h){return f+(h?u(d,f).length:1)}}),5787:(function(s){s.exports=function(c,a,u){if(!(c instanceof a))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return c}}),9670:(function(s,c,a){var u=a(111);s.exports=function(d){if(!u(d))throw TypeError(String(d)+" is not an object");return d}}),4019:(function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"}),260:(function(s,c,a){var u=a(4019),d=a(9781),f=a(7854),h=a(111),p=a(6656),m=a(648),g=a(8880),v=a(1320),y=a(3070).f,b=a(9518),E=a(7674),C=a(5112),S=a(9711),_=f.Int8Array,T=_&&_.prototype,D=f.Uint8ClampedArray,Y=D&&D.prototype,V=_&&b(_),H=T&&b(T),j=Object.prototype,K=j.isPrototypeOf,F=C("toStringTag"),z=S("TYPED_ARRAY_TAG"),$=u&&!!E&&m(f.opera)!=="Opera",J=!1,U,q={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},te={BigInt64Array:8,BigUint64Array:8},se=function(N){if(!h(N))return!1;var M=m(N);return M==="DataView"||p(q,M)||p(te,M)},he=function(ge){if(!h(ge))return!1;var N=m(ge);return p(q,N)||p(te,N)},pe=function(ge){if(he(ge))return ge;throw TypeError("Target is not a typed array")},ye=function(ge){if(E){if(K.call(V,ge))return ge}else for(var N in q)if(p(q,U)){var M=f[N];if(M&&(ge===M||K.call(M,ge)))return ge}throw TypeError("Target is not a typed array constructor")},Ce=function(ge,N,M){if(d){if(M)for(var I in q){var O=f[I];O&&p(O.prototype,ge)&&delete O.prototype[ge]}(!H[ge]||M)&&v(H,ge,M?N:$&&T[ge]||N)}},Ae=function(ge,N,M){var I,O;if(d){if(E){if(M)for(I in q)O=f[I],O&&p(O,ge)&&delete O[ge];if(!V[ge]||M)try{return v(V,ge,M?N:$&&_[ge]||N)}catch{}else return}for(I in q)O=f[I],O&&(!O[ge]||M)&&v(O,ge,N)}};for(U in q)f[U]||($=!1);if((!$||typeof V!="function"||V===Function.prototype)&&(V=function(){throw TypeError("Incorrect invocation")},$))for(U in q)f[U]&&E(f[U],V);if((!$||!H||H===j)&&(H=V.prototype,$))for(U in q)f[U]&&E(f[U].prototype,H);if($&&b(Y)!==H&&E(Y,H),d&&!p(H,F)){J=!0,y(H,F,{get:function(){return h(this)?this[z]:void 0}});for(U in q)f[U]&&g(f[U],z,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:$,TYPED_ARRAY_TAG:J&&z,aTypedArray:pe,aTypedArrayConstructor:ye,exportTypedArrayMethod:Ce,exportTypedArrayStaticMethod:Ae,isView:se,isTypedArray:he,TypedArray:V,TypedArrayPrototype:H}}),3331:(function(s,c,a){var u=a(7854),d=a(9781),f=a(4019),h=a(8880),p=a(2248),m=a(7293),g=a(5787),v=a(9958),y=a(7466),b=a(7067),E=a(1179),C=a(9518),S=a(7674),_=a(8006).f,T=a(3070).f,D=a(1285),Y=a(8003),V=a(9909),H=V.get,j=V.set,K="ArrayBuffer",F="DataView",z="prototype",$="Wrong length",J="Wrong index",U=u[K],q=U,te=u[F],se=te&&te[z],he=Object.prototype,pe=u.RangeError,ye=E.pack,Ce=E.unpack,Ae=function(Q){return[Q&255]},ge=function(Q){return[Q&255,Q>>8&255]},N=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},M=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},I=function(Q){return ye(Q,23,4)},O=function(Q){return ye(Q,52,8)},k=function(Q,X){T(Q[z],X,{get:function(){return H(this)[X]}})},w=function(Q,X,ee,ie){var Z=b(ee),ne=H(Q);if(Z+X>ne.byteLength)throw pe(J);var we=H(ne.buffer).bytes,_e=Z+ne.byteOffset,Ne=we.slice(_e,_e+X);return ie?Ne:Ne.reverse()},P=function(Q,X,ee,ie,Z,ne){var we=b(ee),_e=H(Q);if(we+X>_e.byteLength)throw pe(J);for(var Ne=H(_e.buffer).bytes,Xe=we+_e.byteOffset,ht=ie(+Z),qe=0;qe<X;qe++)Ne[Xe+qe]=ht[ne?qe:X-qe-1]};if(!f)q=function(X){g(this,q,K);var ee=b(X);j(this,{bytes:D.call(new Array(ee),0),byteLength:ee}),d||(this.byteLength=ee)},te=function(X,ee,ie){g(this,te,F),g(X,q,F);var Z=H(X).byteLength,ne=v(ee);if(ne<0||ne>Z)throw pe("Wrong offset");if(ie=ie===void 0?Z-ne:y(ie),ne+ie>Z)throw pe($);j(this,{buffer:X,byteLength:ie,byteOffset:ne}),d||(this.buffer=X,this.byteLength=ie,this.byteOffset=ne)},d&&(k(q,"byteLength"),k(te,"buffer"),k(te,"byteLength"),k(te,"byteOffset")),p(te[z],{getInt8:function(X){return w(this,1,X)[0]<<24>>24},getUint8:function(X){return w(this,1,X)[0]},getInt16:function(X){var ee=w(this,2,X,arguments.length>1?arguments[1]:void 0);return(ee[1]<<8|ee[0])<<16>>16},getUint16:function(X){var ee=w(this,2,X,arguments.length>1?arguments[1]:void 0);return ee[1]<<8|ee[0]},getInt32:function(X){return M(w(this,4,X,arguments.length>1?arguments[1]:void 0))},getUint32:function(X){return M(w(this,4,X,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(X){return Ce(w(this,4,X,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(X){return Ce(w(this,8,X,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(X,ee){P(this,1,X,Ae,ee)},setUint8:function(X,ee){P(this,1,X,Ae,ee)},setInt16:function(X,ee){P(this,2,X,ge,ee,arguments.length>2?arguments[2]:void 0)},setUint16:function(X,ee){P(this,2,X,ge,ee,arguments.length>2?arguments[2]:void 0)},setInt32:function(X,ee){P(this,4,X,N,ee,arguments.length>2?arguments[2]:void 0)},setUint32:function(X,ee){P(this,4,X,N,ee,arguments.length>2?arguments[2]:void 0)},setFloat32:function(X,ee){P(this,4,X,I,ee,arguments.length>2?arguments[2]:void 0)},setFloat64:function(X,ee){P(this,8,X,O,ee,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!=K})){q=function(X){return g(this,q),new U(b(X))};for(var R=q[z]=U[z],W=_(U),G=0,A;W.length>G;)(A=W[G++])in q||h(q,A,U[A]);R.constructor=q}S&&C(se)!==he&&S(se,he);var x=new te(new q(2)),B=se.setInt8;x.setInt8(0,2147483648),x.setInt8(1,2147483649),(x.getInt8(0)||!x.getInt8(1))&&p(se,{setInt8:function(X,ee){B.call(this,X,ee<<24>>24)},setUint8:function(X,ee){B.call(this,X,ee<<24>>24)}},{unsafe:!0})}Y(q,K),Y(te,F),s.exports={ArrayBuffer:q,DataView:te}}),1048:(function(s,c,a){var u=a(7908),d=a(1400),f=a(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var v=u(this),y=f(v.length),b=d(m,y),E=d(g,y),C=arguments.length>2?arguments[2]:void 0,S=h((C===void 0?y:d(C,y))-E,y-b),_=1;for(E<b&&b<E+S&&(_=-1,E+=S-1,b+=S-1);S-- >0;)E in v?v[b]=v[E]:delete v[b],b+=_,E+=_;return v}}),1285:(function(s,c,a){var u=a(7908),d=a(1400),f=a(7466);s.exports=function(p){for(var m=u(this),g=f(m.length),v=arguments.length,y=d(v>1?arguments[1]:void 0,g),b=v>2?arguments[2]:void 0,E=b===void 0?g:d(b,g);E>y;)m[y++]=p;return m}}),8533:(function(s,c,a){var u=a(2092).forEach,d=a(9341),f=d("forEach");s.exports=f?[].forEach:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}}),8457:(function(s,c,a){var u=a(9974),d=a(7908),f=a(3411),h=a(7659),p=a(7466),m=a(6135),g=a(1246);s.exports=function(y){var b=d(y),E=typeof this=="function"?this:Array,C=arguments.length,S=C>1?arguments[1]:void 0,_=S!==void 0,T=g(b),D=0,Y,V,H,j,K,F;if(_&&(S=u(S,C>2?arguments[2]:void 0,2)),T!=null&&!(E==Array&&h(T)))for(j=T.call(b),K=j.next,V=new E;!(H=K.call(j)).done;D++)F=_?f(j,S,[H.value,D],!0):H.value,m(V,D,F);else for(Y=p(b.length),V=new E(Y);Y>D;D++)F=_?S(b[D],D):b[D],m(V,D,F);return V.length=D,V}}),1318:(function(s,c,a){var u=a(5656),d=a(7466),f=a(1400),h=function(p){return function(m,g,v){var y=u(m),b=d(y.length),E=f(v,b),C;if(p&&g!=g){for(;b>E;)if(C=y[E++],C!=C)return!0}else for(;b>E;E++)if((p||E in y)&&y[E]===g)return p||E||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}}),2092:(function(s,c,a){var u=a(9974),d=a(8361),f=a(7908),h=a(7466),p=a(5417),m=[].push,g=function(v){var y=v==1,b=v==2,E=v==3,C=v==4,S=v==6,_=v==7,T=v==5||S;return function(D,Y,V,H){for(var j=f(D),K=d(j),F=u(Y,V,3),z=h(K.length),$=0,J=H||p,U=y?J(D,z):b||_?J(D,0):void 0,q,te;z>$;$++)if((T||$ in K)&&(q=K[$],te=F(q,$,j),v))if(y)U[$]=te;else if(te)switch(v){case 3:return!0;case 5:return q;case 6:return $;case 2:m.call(U,q)}else switch(v){case 4:return!1;case 7:m.call(U,q)}return S?-1:E||C?C: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 u=a(5656),d=a(9958),f=a(7466),h=a(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,v=h("lastIndexOf"),y=g||!v;s.exports=y?function(E){if(g)return m.apply(this,arguments)||0;var C=u(this),S=f(C.length),_=S-1;for(arguments.length>1&&(_=p(_,d(arguments[1]))),_<0&&(_=S+_);_>=0;_--)if(_ in C&&C[_]===E)return _||0;return-1}:m}),1194:(function(s,c,a){var u=a(7293),d=a(5112),f=a(7392),h=d("species");s.exports=function(p){return f>=51||!u(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}}),9341:(function(s,c,a){var u=a(7293);s.exports=function(d,f){var h=[][d];return!!h&&u(function(){h.call(null,f||function(){throw 1},1)})}}),3671:(function(s,c,a){var u=a(3099),d=a(7908),f=a(8361),h=a(7466),p=function(m){return function(g,v,y,b){u(v);var E=d(g),C=f(E),S=h(E.length),_=m?S-1:0,T=m?-1:1;if(y<2)for(;;){if(_ in C){b=C[_],_+=T;break}if(_+=T,m?_<0:S<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:S>_;_+=T)_ in C&&(b=v(b,C[_],_,E));return b}};s.exports={left:p(!1),right:p(!0)}}),5417:(function(s,c,a){var u=a(111),d=a(3157),f=a(5112),h=f("species");s.exports=function(p,m){var g;return d(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||d(g.prototype))?g=void 0:u(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 u=a(9670),d=a(9212);s.exports=function(f,h,p,m){try{return m?h(u(p)[0],p[1]):h(p)}catch(g){throw d(f),g}}}),7072:(function(s,c,a){var u=a(5112),d=u("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[d]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var v=!1;try{var y={};y[d]=function(){return{next:function(){return{done:v=!0}}}},m(y)}catch{}return v}}),4326:(function(s){var c={}.toString;s.exports=function(a){return c.call(a).slice(8,-1)}}),648:(function(s,c,a){var u=a(1694),d=a(4326),f=a(5112),h=f("toStringTag"),p=d((function(){return arguments})())=="Arguments",m=function(g,v){try{return g[v]}catch{}};s.exports=u?d:function(g){var v,y,b;return g===void 0?"Undefined":g===null?"Null":typeof(y=m(v=Object(g),h))=="string"?y:p?d(v):(b=d(v))=="Object"&&typeof v.callee=="function"?"Arguments":b}}),9920:(function(s,c,a){var u=a(6656),d=a(3887),f=a(1236),h=a(3070);s.exports=function(p,m){for(var g=d(m),v=h.f,y=f.f,b=0;b<g.length;b++){var E=g[b];u(p,E)||v(p,E,y(m,E))}}}),8544:(function(s,c,a){var u=a(7293);s.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})}),4994:(function(s,c,a){var u=a(3383).IteratorPrototype,d=a(30),f=a(9114),h=a(8003),p=a(7497),m=function(){return this};s.exports=function(g,v,y){var b=v+" Iterator";return g.prototype=d(u,{next:f(1,y)}),h(g,b,!1,!0),p[b]=m,g}}),8880:(function(s,c,a){var u=a(9781),d=a(3070),f=a(9114);s.exports=u?function(h,p,m){return d.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 u=a(7593),d=a(3070),f=a(9114);s.exports=function(h,p,m){var g=u(p);g in h?d.f(h,g,f(0,m)):h[g]=m}}),654:(function(s,c,a){var u=a(2109),d=a(4994),f=a(9518),h=a(7674),p=a(8003),m=a(8880),g=a(1320),v=a(5112),y=a(1913),b=a(7497),E=a(3383),C=E.IteratorPrototype,S=E.BUGGY_SAFARI_ITERATORS,_=v("iterator"),T="keys",D="values",Y="entries",V=function(){return this};s.exports=function(H,j,K,F,z,$,J){d(K,j,F);var U=function(N){if(N===z&&pe)return pe;if(!S&&N in se)return se[N];switch(N){case T:return function(){return new K(this,N)};case D:return function(){return new K(this,N)};case Y:return function(){return new K(this,N)}}return function(){return new K(this)}},q=j+" Iterator",te=!1,se=H.prototype,he=se[_]||se["@@iterator"]||z&&se[z],pe=!S&&he||U(z),ye=j=="Array"&&se.entries||he,Ce,Ae,ge;if(ye&&(Ce=f(ye.call(new H)),C!==Object.prototype&&Ce.next&&(!y&&f(Ce)!==C&&(h?h(Ce,C):typeof Ce[_]!="function"&&m(Ce,_,V)),p(Ce,q,!0,!0),y&&(b[q]=V))),z==D&&he&&he.name!==D&&(te=!0,pe=function(){return he.call(this)}),(!y||J)&&se[_]!==pe&&m(se,_,pe),b[j]=pe,z)if(Ae={values:U(D),keys:$?pe:U(T),entries:U(Y)},J)for(ge in Ae)(S||te||!(ge in se))&&g(se,ge,Ae[ge]);else u({target:j,proto:!0,forced:S||te},Ae);return Ae}}),9781:(function(s,c,a){var u=a(7293);s.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),317:(function(s,c,a){var u=a(7854),d=a(111),f=u.document,h=d(f)&&d(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 u=a(5005);s.exports=u("navigator","userAgent")||""}),7392:(function(s,c,a){var u=a(7854),d=a(8113),f=u.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):d&&(m=d.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=d.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 u=a(7854),d=a(1236).f,f=a(8880),h=a(1320),p=a(3505),m=a(9920),g=a(4705);s.exports=function(v,y){var b=v.target,E=v.global,C=v.stat,S,_,T,D,Y,V;if(E?_=u:C?_=u[b]||p(b,{}):_=(u[b]||{}).prototype,_)for(T in y){if(Y=y[T],v.noTargetGet?(V=d(_,T),D=V&&V.value):D=_[T],S=g(E?T:b+(C?".":"#")+T,v.forced),!S&&D!==void 0){if(typeof Y==typeof D)continue;m(Y,D)}(v.sham||D&&D.sham)&&f(Y,"sham",!0),h(_,T,Y,v)}}}),7293:(function(s){s.exports=function(c){try{return!!c()}catch{return!0}}}),7007:(function(s,c,a){a(4916);var u=a(1320),d=a(7293),f=a(5112),h=a(2261),p=a(8880),m=f("species"),g=!d(function(){var C=/./;return C.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(C,"$<a>")!=="7"}),v=(function(){return"a".replace(/./,"$0")==="$0"})(),y=f("replace"),b=(function(){return/./[y]?/./[y]("a","$0")==="":!1})(),E=!d(function(){var C=/(?:)/,S=C.exec;C.exec=function(){return S.apply(this,arguments)};var _="ab".split(C);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(C,S,_,T){var D=f(C),Y=!d(function(){var z={};return z[D]=function(){return 7},""[C](z)!=7}),V=Y&&!d(function(){var z=!1,$=/a/;return C==="split"&&($={},$.constructor={},$.constructor[m]=function(){return $},$.flags="",$[D]=/./[D]),$.exec=function(){return z=!0,null},$[D](""),!z});if(!Y||!V||C==="replace"&&!(g&&v&&!b)||C==="split"&&!E){var H=/./[D],j=_(D,""[C],function(z,$,J,U,q){return $.exec===h?Y&&!q?{done:!0,value:H.call($,J,U)}:{done:!0,value:z.call(J,$,U)}:{done:!1}},{REPLACE_KEEPS_$0:v,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:b}),K=j[0],F=j[1];u(String.prototype,C,K),u(RegExp.prototype,D,S==2?function(z,$){return F.call(z,this,$)}:function(z){return F.call(z,this)})}T&&p(RegExp.prototype[D],"sham",!0)}}),9974:(function(s,c,a){var u=a(3099);s.exports=function(d,f,h){if(u(d),f===void 0)return d;switch(h){case 0:return function(){return d.call(f)};case 1:return function(p){return d.call(f,p)};case 2:return function(p,m){return d.call(f,p,m)};case 3:return function(p,m,g){return d.call(f,p,m,g)}}return function(){return d.apply(f,arguments)}}}),5005:(function(s,c,a){var u=a(857),d=a(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(u[h])||f(d[h]):u[h]&&u[h][p]||d[h]&&d[h][p]}}),1246:(function(s,c,a){var u=a(648),d=a(7497),f=a(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||d[u(p)]}}),8554:(function(s,c,a){var u=a(9670),d=a(1246);s.exports=function(f){var h=d(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return u(h.call(f))}}),647:(function(s,c,a){var u=a(7908),d=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,v,y,b,E){var C=v+m.length,S=y.length,_=p;return b!==void 0&&(b=u(b),_=h),f.call(E,_,function(T,D){var Y;switch(D.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,v);case"'":return g.slice(C);case"<":Y=b[D.slice(1,-1)];break;default:var V=+D;if(V===0)return T;if(V>S){var H=d(V/10);return H===0?T:H<=S?y[H-1]===void 0?D.charAt(1):y[H-1]+D.charAt(1):T}Y=y[V-1]}return Y===void 0?"":Y})}}),7854:(function(s,c,a){var u=function(d){return d&&d.Math==Math&&d};s.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof a.g=="object"&&a.g)||(function(){return this})()||Function("return this")()}),6656:(function(s){var c={}.hasOwnProperty;s.exports=function(a,u){return c.call(a,u)}}),3501:(function(s){s.exports={}}),490:(function(s,c,a){var u=a(5005);s.exports=u("document","documentElement")}),4664:(function(s,c,a){var u=a(9781),d=a(7293),f=a(317);s.exports=!u&&!d(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})}),1179:(function(s){var c=Math.abs,a=Math.pow,u=Math.floor,d=Math.log,f=Math.LN2,h=function(m,g,v){var y=new Array(v),b=v*8-g-1,E=(1<<b)-1,C=E>>1,S=g===23?a(2,-24)-a(2,-77):0,_=m<0||m===0&&1/m<0?1:0,T=0,D,Y,V;for(m=c(m),m!=m||m===1/0?(Y=m!=m?1:0,D=E):(D=u(d(m)/f),m*(V=a(2,-D))<1&&(D--,V*=2),D+C>=1?m+=S/V:m+=S*a(2,1-C),m*V>=2&&(D++,V/=2),D+C>=E?(Y=0,D=E):D+C>=1?(Y=(m*V-1)*a(2,g),D=D+C):(Y=m*a(2,C-1)*a(2,g),D=0));g>=8;y[T++]=Y&255,Y/=256,g-=8);for(D=D<<g|Y,b+=g;b>0;y[T++]=D&255,D/=256,b-=8);return y[--T]|=_*128,y},p=function(m,g){var v=m.length,y=v*8-g-1,b=(1<<y)-1,E=b>>1,C=y-7,S=v-1,_=m[S--],T=_&127,D;for(_>>=7;C>0;T=T*256+m[S],S--,C-=8);for(D=T&(1<<-C)-1,T>>=-C,C+=g;C>0;D=D*256+m[S],S--,C-=8);if(T===0)T=1-E;else{if(T===b)return D?NaN:_?-1/0:1/0;D=D+a(2,g),T=T-E}return(_?-1:1)*D*a(2,T-g)};s.exports={pack:h,unpack:p}}),8361:(function(s,c,a){var u=a(7293),d=a(4326),f="".split;s.exports=u(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return d(h)=="String"?f.call(h,""):Object(h)}:Object}),9587:(function(s,c,a){var u=a(111),d=a(7674);s.exports=function(f,h,p){var m,g;return d&&typeof(m=h.constructor)=="function"&&m!==p&&u(g=m.prototype)&&g!==p.prototype&&d(f,g),f}}),2788:(function(s,c,a){var u=a(5465),d=Function.toString;typeof u.inspectSource!="function"&&(u.inspectSource=function(f){return d.call(f)}),s.exports=u.inspectSource}),9909:(function(s,c,a){var u=a(8536),d=a(7854),f=a(111),h=a(8880),p=a(6656),m=a(5465),g=a(6200),v=a(3501),y=d.WeakMap,b,E,C,S=function(j){return C(j)?E(j):b(j,{})},_=function(j){return function(K){var F;if(!f(K)||(F=E(K)).type!==j)throw TypeError("Incompatible receiver, "+j+" required");return F}};if(u){var T=m.state||(m.state=new y),D=T.get,Y=T.has,V=T.set;b=function(j,K){return K.facade=j,V.call(T,j,K),K},E=function(j){return D.call(T,j)||{}},C=function(j){return Y.call(T,j)}}else{var H=g("state");v[H]=!0,b=function(j,K){return K.facade=j,h(j,H,K),K},E=function(j){return p(j,H)?j[H]:{}},C=function(j){return p(j,H)}}s.exports={set:b,get:E,has:C,enforce:S,getterFor:_}}),7659:(function(s,c,a){var u=a(5112),d=a(7497),f=u("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(d.Array===p||h[f]===p)}}),3157:(function(s,c,a){var u=a(4326);s.exports=Array.isArray||function(f){return u(f)=="Array"}}),4705:(function(s,c,a){var u=a(7293),d=/#|\.prototype\./,f=function(v,y){var b=p[h(v)];return b==g?!0:b==m?!1:typeof y=="function"?u(y):!!y},h=f.normalize=function(v){return String(v).replace(d,".").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 u=a(111),d=a(4326),f=a(5112),h=f("match");s.exports=function(p){var m;return u(p)&&((m=p[h])!==void 0?!!m:d(p)=="RegExp")}}),9212:(function(s,c,a){var u=a(9670);s.exports=function(d){var f=d.return;if(f!==void 0)return u(f.call(d)).value}}),3383:(function(s,c,a){var u=a(7293),d=a(9518),f=a(8880),h=a(6656),p=a(5112),m=a(1913),g=p("iterator"),v=!1,y=function(){return this},b,E,C;[].keys&&(C=[].keys(),"next"in C?(E=d(d(C)),E!==Object.prototype&&(b=E)):v=!0);var S=b==null||u(function(){var _={};return b[g].call(_)!==_});S&&(b={}),(!m||S)&&!h(b,g)&&f(b,g,y),s.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:v}}),7497:(function(s){s.exports={}}),133:(function(s,c,a){var u=a(7293);s.exports=!!Object.getOwnPropertySymbols&&!u(function(){return!String(Symbol())})}),590:(function(s,c,a){var u=a(7293),d=a(5112),f=a(1913),h=d("iterator");s.exports=!u(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(v,y){m.delete("b"),g+=y+v}),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 u=a(7854),d=a(2788),f=u.WeakMap;s.exports=typeof f=="function"&&/native code/.test(d(f))}),1574:(function(s,c,a){var u=a(9781),d=a(7293),f=a(1956),h=a(5181),p=a(5296),m=a(7908),g=a(8361),v=Object.assign,y=Object.defineProperty;s.exports=!v||d(function(){if(u&&v({b:1},v(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},E={},C=Symbol(),S="abcdefghijklmnopqrst";return b[C]=7,S.split("").forEach(function(_){E[_]=_}),v({},b)[C]!=7||f(v({},E)).join("")!=S})?function(E,C){for(var S=m(E),_=arguments.length,T=1,D=h.f,Y=p.f;_>T;)for(var V=g(arguments[T++]),H=D?f(V).concat(D(V)):f(V),j=H.length,K=0,F;j>K;)F=H[K++],(!u||Y.call(V,F))&&(S[F]=V[F]);return S}:v}),30:(function(s,c,a){var u=a(9670),d=a(6048),f=a(748),h=a(3501),p=a(490),m=a(317),g=a(6200),v=">",y="<",b="prototype",E="script",C=g("IE_PROTO"),S=function(){},_=function(H){return y+E+v+H+y+"/"+E+v},T=function(H){H.write(_("")),H.close();var j=H.parentWindow.Object;return H=null,j},D=function(){var H=m("iframe"),j="java"+E+":",K;return H.style.display="none",p.appendChild(H),H.src=String(j),K=H.contentWindow.document,K.open(),K.write(_("document.F=Object")),K.close(),K.F},Y,V=function(){try{Y=document.domain&&new ActiveXObject("htmlfile")}catch{}V=Y?T(Y):D();for(var H=f.length;H--;)delete V[b][f[H]];return V()};h[C]=!0,s.exports=Object.create||function(j,K){var F;return j!==null?(S[b]=u(j),F=new S,S[b]=null,F[C]=j):F=V(),K===void 0?F:d(F,K)}}),6048:(function(s,c,a){var u=a(9781),d=a(3070),f=a(9670),h=a(1956);s.exports=u?Object.defineProperties:function(m,g){f(m);for(var v=h(g),y=v.length,b=0,E;y>b;)d.f(m,E=v[b++],g[E]);return m}}),3070:(function(s,c,a){var u=a(9781),d=a(4664),f=a(9670),h=a(7593),p=Object.defineProperty;c.f=u?p:function(g,v,y){if(f(g),v=h(v,!0),f(y),d)try{return p(g,v,y)}catch{}if("get"in y||"set"in y)throw TypeError("Accessors not supported");return"value"in y&&(g[v]=y.value),g}}),1236:(function(s,c,a){var u=a(9781),d=a(5296),f=a(9114),h=a(5656),p=a(7593),m=a(6656),g=a(4664),v=Object.getOwnPropertyDescriptor;c.f=u?v:function(b,E){if(b=h(b),E=p(E,!0),g)try{return v(b,E)}catch{}if(m(b,E))return f(!d.f.call(b,E),b[E])}}),8006:(function(s,c,a){var u=a(6324),d=a(748),f=d.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return u(p,f)}}),5181:(function(s,c){c.f=Object.getOwnPropertySymbols}),9518:(function(s,c,a){var u=a(6656),d=a(7908),f=a(6200),h=a(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=d(g),u(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 u=a(6656),d=a(5656),f=a(1318).indexOf,h=a(3501);s.exports=function(p,m){var g=d(p),v=0,y=[],b;for(b in g)!u(h,b)&&u(g,b)&&y.push(b);for(;m.length>v;)u(g,b=m[v++])&&(~f(y,b)||y.push(b));return y}}),1956:(function(s,c,a){var u=a(6324),d=a(748);s.exports=Object.keys||function(h){return u(h,d)}}),5296:(function(s,c){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!a.call({1:2},1);c.f=d?function(h){var p=u(this,h);return!!p&&p.enumerable}:a}),7674:(function(s,c,a){var u=a(9670),d=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,v){return u(g),d(v),f?p.call(g,v):g.__proto__=v,g}})():void 0)}),288:(function(s,c,a){var u=a(1694),d=a(648);s.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}}),3887:(function(s,c,a){var u=a(5005),d=a(8006),f=a(5181),h=a(9670);s.exports=u("Reflect","ownKeys")||function(m){var g=d.f(h(m)),v=f.f;return v?g.concat(v(m)):g}}),857:(function(s,c,a){var u=a(7854);s.exports=u}),2248:(function(s,c,a){var u=a(1320);s.exports=function(d,f,h){for(var p in f)u(d,p,f[p],h);return d}}),1320:(function(s,c,a){var u=a(7854),d=a(8880),f=a(6656),h=a(3505),p=a(2788),m=a(9909),g=m.get,v=m.enforce,y=String(String).split("String");(s.exports=function(b,E,C,S){var _=S?!!S.unsafe:!1,T=S?!!S.enumerable:!1,D=S?!!S.noTargetGet:!1,Y;if(typeof C=="function"&&(typeof E=="string"&&!f(C,"name")&&d(C,"name",E),Y=v(C),Y.source||(Y.source=y.join(typeof E=="string"?E:""))),b===u){T?b[E]=C:h(E,C);return}else _?!D&&b[E]&&(T=!0):delete b[E];T?b[E]=C:d(b,E,C)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})}),7651:(function(s,c,a){var u=a(4326),d=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(u(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(f,h)}}),2261:(function(s,c,a){var u=a(7066),d=a(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=(function(){var b=/a/,E=/b*/g;return f.call(b,"a"),f.call(E,"a"),b.lastIndex!==0||E.lastIndex!==0})(),g=d.UNSUPPORTED_Y||d.BROKEN_CARET,v=/()??/.exec("")[1]!==void 0,y=m||v||g;y&&(p=function(E){var C=this,S,_,T,D,Y=g&&C.sticky,V=u.call(C),H=C.source,j=0,K=E;return Y&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),K=String(E).slice(C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&E[C.lastIndex-1]!==`
1174
+ `)&&(H="(?: "+H+")",K=" "+K,j++),_=new RegExp("^(?:"+H+")",V)),v&&(_=new RegExp("^"+H+"$(?!\\s)",V)),m&&(S=C.lastIndex),T=f.call(Y?_:C,K),Y?T?(T.input=T.input.slice(j),T[0]=T[0].slice(j),T.index=C.lastIndex,C.lastIndex+=T[0].length):C.lastIndex=0:m&&T&&(C.lastIndex=C.global?T.index+T[0].length:S),v&&T&&T.length>1&&h.call(T[0],_,function(){for(D=1;D<arguments.length-2;D++)arguments[D]===void 0&&(T[D]=void 0)}),T}),s.exports=p}),7066:(function(s,c,a){var u=a(9670);s.exports=function(){var d=u(this),f="";return d.global&&(f+="g"),d.ignoreCase&&(f+="i"),d.multiline&&(f+="m"),d.dotAll&&(f+="s"),d.unicode&&(f+="u"),d.sticky&&(f+="y"),f}}),2999:(function(s,c,a){var u=a(7293);function d(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=u(function(){var f=d("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=u(function(){var f=d("^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 u=a(7854),d=a(8880);s.exports=function(f,h){try{d(u,f,h)}catch{u[f]=h}return h}}),6340:(function(s,c,a){var u=a(5005),d=a(3070),f=a(5112),h=a(9781),p=f("species");s.exports=function(m){var g=u(m),v=d.f;h&&g&&!g[p]&&v(g,p,{configurable:!0,get:function(){return this}})}}),8003:(function(s,c,a){var u=a(3070).f,d=a(6656),f=a(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!d(p=g?p:p.prototype,h)&&u(p,h,{configurable:!0,value:m})}}),6200:(function(s,c,a){var u=a(2309),d=a(9711),f=u("keys");s.exports=function(h){return f[h]||(f[h]=d(h))}}),5465:(function(s,c,a){var u=a(7854),d=a(3505),f="__core-js_shared__",h=u[f]||d(f,{});s.exports=h}),2309:(function(s,c,a){var u=a(1913),d=a(5465);(s.exports=function(f,h){return d[f]||(d[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:u?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),6707:(function(s,c,a){var u=a(9670),d=a(3099),f=a(5112),h=f("species");s.exports=function(p,m){var g=u(p).constructor,v;return g===void 0||(v=u(g)[h])==null?m:d(v)}}),8710:(function(s,c,a){var u=a(9958),d=a(4488),f=function(h){return function(p,m){var g=String(d(p)),v=u(m),y=g.length,b,E;return v<0||v>=y?h?"":void 0:(b=g.charCodeAt(v),b<55296||b>56319||v+1===y||(E=g.charCodeAt(v+1))<56320||E>57343?h?g.charAt(v):b:h?g.slice(v,v+2):(b-55296<<10)+(E-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}}),3197:(function(s){var c=2147483647,a=36,u=1,d=26,f=38,h=700,p=72,m=128,g="-",v=/[^\0-\u007E]/,y=/[.\u3002\uFF0E\uFF61]/g,b="Overflow: input needs wider integers to process",E=a-u,C=Math.floor,S=String.fromCharCode,_=function(V){for(var H=[],j=0,K=V.length;j<K;){var F=V.charCodeAt(j++);if(F>=55296&&F<=56319&&j<K){var z=V.charCodeAt(j++);(z&64512)==56320?H.push(((F&1023)<<10)+(z&1023)+65536):(H.push(F),j--)}else H.push(F)}return H},T=function(V){return V+22+75*(V<26)},D=function(V,H,j){var K=0;for(V=j?C(V/h):V>>1,V+=C(V/H);V>E*d>>1;K+=a)V=C(V/E);return C(K+(E+1)*V/(V+f))},Y=function(V){var H=[];V=_(V);var j=V.length,K=m,F=0,z=p,$,J;for($=0;$<V.length;$++)J=V[$],J<128&&H.push(S(J));var U=H.length,q=U;for(U&&H.push(g);q<j;){var te=c;for($=0;$<V.length;$++)J=V[$],J>=K&&J<te&&(te=J);var se=q+1;if(te-K>C((c-F)/se))throw RangeError(b);for(F+=(te-K)*se,K=te,$=0;$<V.length;$++){if(J=V[$],J<K&&++F>c)throw RangeError(b);if(J==K){for(var he=F,pe=a;;pe+=a){var ye=pe<=z?u:pe>=z+d?d:pe-z;if(he<ye)break;var Ce=he-ye,Ae=a-ye;H.push(S(T(ye+Ce%Ae))),he=C(Ce/Ae)}H.push(S(T(he))),z=D(F,se,q==U),F=0,++q}}++F,++K}return H.join("")};s.exports=function(V){var H=[],j=V.toLowerCase().replace(y,".").split("."),K,F;for(K=0;K<j.length;K++)F=j[K],H.push(v.test(F)?"xn--"+Y(F):F);return H.join(".")}}),6091:(function(s,c,a){var u=a(7293),d=a(1361),f="​…᠎";s.exports=function(h){return u(function(){return!!d[h]()||f[h]()!=f||d[h].name!==h})}}),3111:(function(s,c,a){var u=a(4488),d=a(1361),f="["+d+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(v){var y=String(u(v));return g&1&&(y=y.replace(h,"")),g&2&&(y=y.replace(p,"")),y}};s.exports={start:m(1),end:m(2),trim:m(3)}}),1400:(function(s,c,a){var u=a(9958),d=Math.max,f=Math.min;s.exports=function(h,p){var m=u(h);return m<0?d(m+p,0):f(m,p)}}),7067:(function(s,c,a){var u=a(9958),d=a(7466);s.exports=function(f){if(f===void 0)return 0;var h=u(f),p=d(h);if(h!==p)throw RangeError("Wrong length or index");return p}}),5656:(function(s,c,a){var u=a(8361),d=a(4488);s.exports=function(f){return u(d(f))}}),9958:(function(s){var c=Math.ceil,a=Math.floor;s.exports=function(u){return isNaN(u=+u)?0:(u>0?a:c)(u)}}),7466:(function(s,c,a){var u=a(9958),d=Math.min;s.exports=function(f){return f>0?d(u(f),9007199254740991):0}}),7908:(function(s,c,a){var u=a(4488);s.exports=function(d){return Object(u(d))}}),4590:(function(s,c,a){var u=a(3002);s.exports=function(d,f){var h=u(d);if(h%f)throw RangeError("Wrong offset");return h}}),3002:(function(s,c,a){var u=a(9958);s.exports=function(d){var f=u(d);if(f<0)throw RangeError("The argument can't be less than 0");return f}}),7593:(function(s,c,a){var u=a(111);s.exports=function(d,f){if(!u(d))return d;var h,p;if(f&&typeof(h=d.toString)=="function"&&!u(p=h.call(d))||typeof(h=d.valueOf)=="function"&&!u(p=h.call(d))||!f&&typeof(h=d.toString)=="function"&&!u(p=h.call(d)))return p;throw TypeError("Can't convert object to primitive value")}}),1694:(function(s,c,a){var u=a(5112),d=u("toStringTag"),f={};f[d]="z",s.exports=String(f)==="[object z]"}),9843:(function(s,c,a){var u=a(2109),d=a(7854),f=a(9781),h=a(3832),p=a(260),m=a(3331),g=a(5787),v=a(9114),y=a(8880),b=a(7466),E=a(7067),C=a(4590),S=a(7593),_=a(6656),T=a(648),D=a(111),Y=a(30),V=a(7674),H=a(8006).f,j=a(7321),K=a(2092).forEach,F=a(6340),z=a(3070),$=a(1236),J=a(9909),U=a(9587),q=J.get,te=J.set,se=z.f,he=$.f,pe=Math.round,ye=d.RangeError,Ce=m.ArrayBuffer,Ae=m.DataView,ge=p.NATIVE_ARRAY_BUFFER_VIEWS,N=p.TYPED_ARRAY_TAG,M=p.TypedArray,I=p.TypedArrayPrototype,O=p.aTypedArrayConstructor,k=p.isTypedArray,w="BYTES_PER_ELEMENT",P="Wrong length",R=function(Q,X){for(var ee=0,ie=X.length,Z=new(O(Q))(ie);ie>ee;)Z[ee]=X[ee++];return Z},W=function(Q,X){se(Q,X,{get:function(){return q(this)[X]}})},G=function(Q){var X;return Q instanceof Ce||(X=T(Q))=="ArrayBuffer"||X=="SharedArrayBuffer"},A=function(Q,X){return k(Q)&&typeof X!="symbol"&&X in Q&&String(+X)==String(X)},x=function(X,ee){return A(X,ee=S(ee,!0))?v(2,X[ee]):he(X,ee)},B=function(X,ee,ie){return A(X,ee=S(ee,!0))&&D(ie)&&_(ie,"value")&&!_(ie,"get")&&!_(ie,"set")&&!ie.configurable&&(!_(ie,"writable")||ie.writable)&&(!_(ie,"enumerable")||ie.enumerable)?(X[ee]=ie.value,X):se(X,ee,ie)};f?(ge||($.f=x,z.f=B,W(I,"buffer"),W(I,"byteOffset"),W(I,"byteLength"),W(I,"length")),u({target:"Object",stat:!0,forced:!ge},{getOwnPropertyDescriptor:x,defineProperty:B}),s.exports=function(Q,X,ee){var ie=Q.match(/\d+$/)[0]/8,Z=Q+(ee?"Clamped":"")+"Array",ne="get"+Q,we="set"+Q,_e=d[Z],Ne=_e,Xe=Ne&&Ne.prototype,ht={},qe=function(Qe,Be){var st=q(Qe);return st.view[ne](Be*ie+st.byteOffset,!0)},fr=function(Qe,Be,st){var Gt=q(Qe);ee&&(st=(st=pe(st))<0?0:st>255?255:st&255),Gt.view[we](Be*ie+Gt.byteOffset,st,!0)},gn=function(Qe,Be){se(Qe,Be,{get:function(){return qe(this,Be)},set:function(st){return fr(this,Be,st)},enumerable:!0})};ge?h&&(Ne=X(function(Qe,Be,st,Gt){return g(Qe,Ne,Z),U((function(){return D(Be)?G(Be)?Gt!==void 0?new _e(Be,C(st,ie),Gt):st!==void 0?new _e(Be,C(st,ie)):new _e(Be):k(Be)?R(Ne,Be):j.call(Ne,Be):new _e(E(Be))})(),Qe,Ne)}),V&&V(Ne,M),K(H(_e),function(Qe){Qe in Ne||y(Ne,Qe,_e[Qe])}),Ne.prototype=Xe):(Ne=X(function(Qe,Be,st,Gt){g(Qe,Ne,Z);var Zr=0,hr=0,pr,tn,jn;if(!D(Be))jn=E(Be),tn=jn*ie,pr=new Ce(tn);else if(G(Be)){pr=Be,hr=C(st,ie);var Ro=Be.byteLength;if(Gt===void 0){if(Ro%ie||(tn=Ro-hr,tn<0))throw ye(P)}else if(tn=b(Gt)*ie,tn+hr>Ro)throw ye(P);jn=tn/ie}else return k(Be)?R(Ne,Be):j.call(Ne,Be);for(te(Qe,{buffer:pr,byteOffset:hr,byteLength:tn,length:jn,view:new Ae(pr)});Zr<jn;)gn(Qe,Zr++)}),V&&V(Ne,M),Xe=Ne.prototype=Y(I)),Xe.constructor!==Ne&&y(Xe,"constructor",Ne),N&&y(Xe,N,Z),ht[Z]=Ne,u({global:!0,forced:Ne!=_e,sham:!ge},ht),w in Ne||y(Ne,w,ie),w in Xe||y(Xe,w,ie),F(Z)}):s.exports=function(){}}),3832:(function(s,c,a){var u=a(7854),d=a(7293),f=a(7072),h=a(260).NATIVE_ARRAY_BUFFER_VIEWS,p=u.ArrayBuffer,m=u.Int8Array;s.exports=!h||!d(function(){m(1)})||!d(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||d(function(){return new m(new p(2),1,void 0).length!==1})}),3074:(function(s,c,a){var u=a(260).aTypedArrayConstructor,d=a(6707);s.exports=function(f,h){for(var p=d(f,f.constructor),m=0,g=h.length,v=new(u(p))(g);g>m;)v[m]=h[m++];return v}}),7321:(function(s,c,a){var u=a(7908),d=a(7466),f=a(1246),h=a(7659),p=a(9974),m=a(260).aTypedArrayConstructor;s.exports=function(v){var y=u(v),b=arguments.length,E=b>1?arguments[1]:void 0,C=E!==void 0,S=f(y),_,T,D,Y,V,H;if(S!=null&&!h(S))for(V=S.call(y),H=V.next,y=[];!(Y=H.call(V)).done;)y.push(Y.value);for(C&&b>2&&(E=p(E,arguments[2],2)),T=d(y.length),D=new(m(this))(T),_=0;T>_;_++)D[_]=C?E(y[_],_):y[_];return D}}),9711:(function(s){var c=0,a=Math.random();s.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++c+a).toString(36)}}),3307:(function(s,c,a){var u=a(133);s.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),5112:(function(s,c,a){var u=a(7854),d=a(2309),f=a(6656),h=a(9711),p=a(133),m=a(3307),g=d("wks"),v=u.Symbol,y=m?v:v&&v.withoutSetter||h;s.exports=function(b){return f(g,b)||(p&&f(v,b)?g[b]=v[b]:g[b]=y("Symbol."+b)),g[b]}}),1361:(function(s){s.exports=`
1175
+ \v\f\r                 \u2028\u2029\uFEFF`}),8264:(function(s,c,a){var u=a(2109),d=a(7854),f=a(3331),h=a(6340),p="ArrayBuffer",m=f[p],g=d[p];u({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)}),2222:(function(s,c,a){var u=a(2109),d=a(7293),f=a(3157),h=a(111),p=a(7908),m=a(7466),g=a(6135),v=a(5417),y=a(1194),b=a(5112),E=a(7392),C=b("isConcatSpreadable"),S=9007199254740991,_="Maximum allowed index exceeded",T=E>=51||!d(function(){var H=[];return H[C]=!1,H.concat()[0]!==H}),D=y("concat"),Y=function(H){if(!h(H))return!1;var j=H[C];return j!==void 0?!!j:f(H)},V=!T||!D;u({target:"Array",proto:!0,forced:V},{concat:function(j){var K=p(this),F=v(K,0),z=0,$,J,U,q,te;for($=-1,U=arguments.length;$<U;$++)if(te=$===-1?K:arguments[$],Y(te)){if(q=m(te.length),z+q>S)throw TypeError(_);for(J=0;J<q;J++,z++)J in te&&g(F,z,te[J])}else{if(z>=S)throw TypeError(_);g(F,z++,te)}return F.length=z,F}})}),7327:(function(s,c,a){var u=a(2109),d=a(2092).filter,f=a(1194),h=f("filter");u({target:"Array",proto:!0,forced:!h},{filter:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),2772:(function(s,c,a){var u=a(2109),d=a(1318).indexOf,f=a(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");u({target:"Array",proto:!0,forced:p||!m},{indexOf:function(v){return p?h.apply(this,arguments)||0:d(this,v,arguments.length>1?arguments[1]:void 0)}})}),6992:(function(s,c,a){var u=a(5656),d=a(1223),f=a(7497),h=a(9909),p=a(654),m="Array Iterator",g=h.set,v=h.getterFor(m);s.exports=p(Array,"Array",function(y,b){g(this,{type:m,target:u(y),index:0,kind:b})},function(){var y=v(this),b=y.target,E=y.kind,C=y.index++;return!b||C>=b.length?(y.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:C,done:!1}:E=="values"?{value:b[C],done:!1}:{value:[C,b[C]],done:!1}},"values"),f.Arguments=f.Array,d("keys"),d("values"),d("entries")}),1249:(function(s,c,a){var u=a(2109),d=a(2092).map,f=a(1194),h=f("map");u({target:"Array",proto:!0,forced:!h},{map:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),7042:(function(s,c,a){var u=a(2109),d=a(111),f=a(3157),h=a(1400),p=a(7466),m=a(5656),g=a(6135),v=a(5112),y=a(1194),b=y("slice"),E=v("species"),C=[].slice,S=Math.max;u({target:"Array",proto:!0,forced:!b},{slice:function(T,D){var Y=m(this),V=p(Y.length),H=h(T,V),j=h(D===void 0?V:D,V),K,F,z;if(f(Y)&&(K=Y.constructor,typeof K=="function"&&(K===Array||f(K.prototype))?K=void 0:d(K)&&(K=K[E],K===null&&(K=void 0)),K===Array||K===void 0))return C.call(Y,H,j);for(F=new(K===void 0?Array:K)(S(j-H,0)),z=0;H<j;H++,z++)H in Y&&g(F,z,Y[H]);return F.length=z,F}})}),561:(function(s,c,a){var u=a(2109),d=a(1400),f=a(9958),h=a(7466),p=a(7908),m=a(5417),g=a(6135),v=a(1194),y=v("splice"),b=Math.max,E=Math.min,C=9007199254740991,S="Maximum allowed length exceeded";u({target:"Array",proto:!0,forced:!y},{splice:function(T,D){var Y=p(this),V=h(Y.length),H=d(T,V),j=arguments.length,K,F,z,$,J,U;if(j===0?K=F=0:j===1?(K=0,F=V-H):(K=j-2,F=E(b(f(D),0),V-H)),V+K-F>C)throw TypeError(S);for(z=m(Y,F),$=0;$<F;$++)J=H+$,J in Y&&g(z,$,Y[J]);if(z.length=F,K<F){for($=H;$<V-F;$++)J=$+F,U=$+K,J in Y?Y[U]=Y[J]:delete Y[U];for($=V;$>V-F+K;$--)delete Y[$-1]}else if(K>F)for($=V-F;$>H;$--)J=$+F-1,U=$+K-1,J in Y?Y[U]=Y[J]:delete Y[U];for($=0;$<K;$++)Y[$+H]=arguments[$+2];return Y.length=V-F+K,z}})}),8309:(function(s,c,a){var u=a(9781),d=a(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";u&&!(m in f)&&d(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})}),489:(function(s,c,a){var u=a(2109),d=a(7293),f=a(7908),h=a(9518),p=a(8544),m=d(function(){h(1)});u({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(v){return h(f(v))}})}),1539:(function(s,c,a){var u=a(1694),d=a(1320),f=a(288);u||d(Object.prototype,"toString",f,{unsafe:!0})}),4916:(function(s,c,a){var u=a(2109),d=a(2261);u({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})}),9714:(function(s,c,a){var u=a(1320),d=a(9670),f=a(7293),h=a(7066),p="toString",m=RegExp.prototype,g=m[p],v=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),y=g.name!=p;(v||y)&&u(RegExp.prototype,p,function(){var E=d(this),C=String(E.source),S=E.flags,_=String(S===void 0&&E instanceof RegExp&&!("flags"in m)?h.call(E):S);return"/"+C+"/"+_},{unsafe:!0})}),8783:(function(s,c,a){var u=a(8710).charAt,d=a(9909),f=a(654),h="String Iterator",p=d.set,m=d.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var v=m(this),y=v.string,b=v.index,E;return b>=y.length?{value:void 0,done:!0}:(E=u(y,b),v.index+=E.length,{value:E,done:!1})})}),4723:(function(s,c,a){var u=a(7007),d=a(9670),f=a(7466),h=a(4488),p=a(1530),m=a(7651);u("match",1,function(g,v,y){return[function(E){var C=h(this),S=E?.[g];return S!==void 0?S.call(E,C):new RegExp(E)[g](String(C))},function(b){var E=y(v,b,this);if(E.done)return E.value;var C=d(b),S=String(this);if(!C.global)return m(C,S);var _=C.unicode;C.lastIndex=0;for(var T=[],D=0,Y;(Y=m(C,S))!==null;){var V=String(Y[0]);T[D]=V,V===""&&(C.lastIndex=p(S,f(C.lastIndex),_)),D++}return D===0?null:T}]})}),5306:(function(s,c,a){var u=a(7007),d=a(9670),f=a(7466),h=a(9958),p=a(4488),m=a(1530),g=a(647),v=a(7651),y=Math.max,b=Math.min,E=function(C){return C===void 0?C:String(C)};u("replace",2,function(C,S,_,T){var D=T.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,Y=T.REPLACE_KEEPS_$0,V=D?"$":"$0";return[function(j,K){var F=p(this),z=j?.[C];return z!==void 0?z.call(j,F,K):S.call(String(F),j,K)},function(H,j){if(!D&&Y||typeof j=="string"&&j.indexOf(V)===-1){var K=_(S,H,this,j);if(K.done)return K.value}var F=d(H),z=String(this),$=typeof j=="function";$||(j=String(j));var J=F.global;if(J){var U=F.unicode;F.lastIndex=0}for(var q=[];;){var te=v(F,z);if(te===null||(q.push(te),!J))break;var se=String(te[0]);se===""&&(F.lastIndex=m(z,f(F.lastIndex),U))}for(var he="",pe=0,ye=0;ye<q.length;ye++){te=q[ye];for(var Ce=String(te[0]),Ae=y(b(h(te.index),z.length),0),ge=[],N=1;N<te.length;N++)ge.push(E(te[N]));var M=te.groups;if($){var I=[Ce].concat(ge,Ae,z);M!==void 0&&I.push(M);var O=String(j.apply(void 0,I))}else O=g(Ce,z,Ae,ge,M,j);Ae>=pe&&(he+=z.slice(pe,Ae)+O,pe=Ae+Ce.length)}return he+z.slice(pe)}]})}),3123:(function(s,c,a){var u=a(7007),d=a(7850),f=a(9670),h=a(4488),p=a(6707),m=a(1530),g=a(7466),v=a(7651),y=a(2261),b=a(7293),E=[].push,C=Math.min,S=4294967295,_=!b(function(){return!RegExp(S,"y")});u("split",2,function(T,D,Y){var V;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?V=function(H,j){var K=String(h(this)),F=j===void 0?S:j>>>0;if(F===0)return[];if(H===void 0)return[K];if(!d(H))return D.call(K,H,F);for(var z=[],$=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),J=0,U=new RegExp(H.source,$+"g"),q,te,se;(q=y.call(U,K))&&(te=U.lastIndex,!(te>J&&(z.push(K.slice(J,q.index)),q.length>1&&q.index<K.length&&E.apply(z,q.slice(1)),se=q[0].length,J=te,z.length>=F)));)U.lastIndex===q.index&&U.lastIndex++;return J===K.length?(se||!U.test(""))&&z.push(""):z.push(K.slice(J)),z.length>F?z.slice(0,F):z}:"0".split(void 0,0).length?V=function(H,j){return H===void 0&&j===0?[]:D.call(this,H,j)}:V=D,[function(j,K){var F=h(this),z=j?.[T];return z!==void 0?z.call(j,F,K):V.call(String(F),j,K)},function(H,j){var K=Y(V,H,this,j,V!==D);if(K.done)return K.value;var F=f(H),z=String(this),$=p(F,RegExp),J=F.unicode,U=(F.ignoreCase?"i":"")+(F.multiline?"m":"")+(F.unicode?"u":"")+(_?"y":"g"),q=new $(_?F:"^(?:"+F.source+")",U),te=j===void 0?S:j>>>0;if(te===0)return[];if(z.length===0)return v(q,z)===null?[z]:[];for(var se=0,he=0,pe=[];he<z.length;){q.lastIndex=_?he:0;var ye=v(q,_?z:z.slice(he)),Ce;if(ye===null||(Ce=C(g(q.lastIndex+(_?0:he)),z.length))===se)he=m(z,he,J);else{if(pe.push(z.slice(se,he)),pe.length===te)return pe;for(var Ae=1;Ae<=ye.length-1;Ae++)if(pe.push(ye[Ae]),pe.length===te)return pe;he=se=Ce}}return pe.push(z.slice(se)),pe}]},!_)}),3210:(function(s,c,a){var u=a(2109),d=a(3111).trim,f=a(6091);u({target:"String",proto:!0,forced:f("trim")},{trim:function(){return d(this)}})}),2990:(function(s,c,a){var u=a(260),d=a(1048),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("copyWithin",function(m,g){return d.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})}),8927:(function(s,c,a){var u=a(260),d=a(2092).every,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("every",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3105:(function(s,c,a){var u=a(260),d=a(1285),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("fill",function(m){return d.apply(f(this),arguments)})}),5035:(function(s,c,a){var u=a(260),d=a(2092).filter,f=a(3074),h=u.aTypedArray,p=u.exportTypedArrayMethod;p("filter",function(g){var v=d(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,v)})}),7174:(function(s,c,a){var u=a(260),d=a(2092).findIndex,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("findIndex",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4345:(function(s,c,a){var u=a(260),d=a(2092).find,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("find",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),2846:(function(s,c,a){var u=a(260),d=a(2092).forEach,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("forEach",function(m){d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),4731:(function(s,c,a){var u=a(260),d=a(1318).includes,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("includes",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),7209:(function(s,c,a){var u=a(260),d=a(1318).indexOf,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("indexOf",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),6319:(function(s,c,a){var u=a(7854),d=a(260),f=a(6992),h=a(5112),p=h("iterator"),m=u.Uint8Array,g=f.values,v=f.keys,y=f.entries,b=d.aTypedArray,E=d.exportTypedArrayMethod,C=m&&m.prototype[p],S=!!C&&(C.name=="values"||C.name==null),_=function(){return g.call(b(this))};E("entries",function(){return y.call(b(this))}),E("keys",function(){return v.call(b(this))}),E("values",_,!S),E(p,_,!S)}),8867:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(d(this),arguments)})}),7789:(function(s,c,a){var u=a(260),d=a(6583),f=u.aTypedArray,h=u.exportTypedArrayMethod;h("lastIndexOf",function(m){return d.apply(f(this),arguments)})}),3739:(function(s,c,a){var u=a(260),d=a(2092).map,f=a(6707),h=u.aTypedArray,p=u.aTypedArrayConstructor,m=u.exportTypedArrayMethod;m("map",function(v){return d(h(this),v,arguments.length>1?arguments[1]:void 0,function(y,b){return new(p(f(y,y.constructor)))(b)})})}),4483:(function(s,c,a){var u=a(260),d=a(3671).right,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("reduceRight",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),9368:(function(s,c,a){var u=a(260),d=a(3671).left,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("reduce",function(m){return d(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})}),2056:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=d(m).length,v=h(g/2),y=0,b;y<v;)b=m[y],m[y++]=m[--g],m[g]=b;return m})}),3462:(function(s,c,a){var u=a(260),d=a(7466),f=a(4590),h=a(7908),p=a(7293),m=u.aTypedArray,g=u.exportTypedArrayMethod,v=p(function(){new Int8Array(1).set({})});g("set",function(b){m(this);var E=f(arguments.length>1?arguments[1]:void 0,1),C=this.length,S=h(b),_=d(S.length),T=0;if(_+E>C)throw RangeError("Wrong length");for(;T<_;)this[E+T]=S[T++]},v)}),678:(function(s,c,a){var u=a(260),d=a(6707),f=a(7293),h=u.aTypedArray,p=u.aTypedArrayConstructor,m=u.exportTypedArrayMethod,g=[].slice,v=f(function(){new Int8Array(1).slice()});m("slice",function(b,E){for(var C=g.call(h(this),b,E),S=d(this,this.constructor),_=0,T=C.length,D=new(p(S))(T);T>_;)D[_]=C[_++];return D},v)}),7462:(function(s,c,a){var u=a(260),d=a(2092).some,f=u.aTypedArray,h=u.exportTypedArrayMethod;h("some",function(m){return d(f(this),m,arguments.length>1?arguments[1]:void 0)})}),3824:(function(s,c,a){var u=a(260),d=u.aTypedArray,f=u.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(d(this),m)})}),5021:(function(s,c,a){var u=a(260),d=a(7466),f=a(1400),h=a(6707),p=u.aTypedArray,m=u.exportTypedArrayMethod;m("subarray",function(v,y){var b=p(this),E=b.length,C=f(v,E);return new(h(b,b.constructor))(b.buffer,b.byteOffset+C*b.BYTES_PER_ELEMENT,d((y===void 0?E:f(y,E))-C))})}),2974:(function(s,c,a){var u=a(7854),d=a(260),f=a(7293),h=u.Int8Array,p=d.aTypedArray,m=d.exportTypedArrayMethod,g=[].toLocaleString,v=[].slice,y=!!h&&f(function(){g.call(new h(1))}),b=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(y?v.call(p(this)):p(this),arguments)},b)}),5016:(function(s,c,a){var u=a(260).exportTypedArrayMethod,d=a(7293),f=a(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;d(function(){m.call({})})&&(m=function(){return g.call(this)});var v=p.toString!=m;u("toString",m,v)}),2472:(function(s,c,a){var u=a(9843);u("Uint8",function(d){return function(h,p,m){return d(this,h,p,m)}})}),4747:(function(s,c,a){var u=a(7854),d=a(8324),f=a(8533),h=a(8880);for(var p in d){var m=u[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 u=a(7854),d=a(8324),f=a(6992),h=a(8880),p=a(5112),m=p("iterator"),g=p("toStringTag"),v=f.values;for(var y in d){var b=u[y],E=b&&b.prototype;if(E){if(E[m]!==v)try{h(E,m,v)}catch{E[m]=v}if(E[g]||h(E,g,y),d[y]){for(var C in f)if(E[C]!==f[C])try{h(E,C,f[C])}catch{E[C]=f[C]}}}}}),1637:(function(s,c,a){a(6992);var u=a(2109),d=a(5005),f=a(590),h=a(1320),p=a(2248),m=a(8003),g=a(4994),v=a(9909),y=a(5787),b=a(6656),E=a(9974),C=a(648),S=a(9670),_=a(111),T=a(30),D=a(9114),Y=a(8554),V=a(1246),H=a(5112),j=d("fetch"),K=d("Headers"),F=H("iterator"),z="URLSearchParams",$=z+"Iterator",J=v.set,U=v.getterFor(z),q=v.getterFor($),te=/\+/g,se=Array(4),he=function(R){return se[R-1]||(se[R-1]=RegExp("((?:%[\\da-f]{2}){"+R+"})","gi"))},pe=function(R){try{return decodeURIComponent(R)}catch{return R}},ye=function(R){var W=R.replace(te," "),G=4;try{return decodeURIComponent(W)}catch{for(;G;)W=W.replace(he(G--),pe);return W}},Ce=/[!'()~]|%20/g,Ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ge=function(R){return Ae[R]},N=function(R){return encodeURIComponent(R).replace(Ce,ge)},M=function(R,W){if(W)for(var G=W.split("&"),A=0,x,B;A<G.length;)x=G[A++],x.length&&(B=x.split("="),R.push({key:ye(B.shift()),value:ye(B.join("="))}))},I=function(R){this.entries.length=0,M(this.entries,R)},O=function(R,W){if(R<W)throw TypeError("Not enough arguments")},k=g(function(W,G){J(this,{type:$,iterator:Y(U(W).entries),kind:G})},"Iterator",function(){var W=q(this),G=W.kind,A=W.iterator.next(),x=A.value;return A.done||(A.value=G==="keys"?x.key:G==="values"?x.value:[x.key,x.value]),A}),w=function(){y(this,w,z);var W=arguments.length>0?arguments[0]:void 0,G=this,A=[],x,B,Q,X,ee,ie,Z,ne,we;if(J(G,{type:z,entries:A,updateURL:function(){},updateSearchParams:I}),W!==void 0)if(_(W))if(x=V(W),typeof x=="function")for(B=x.call(W),Q=B.next;!(X=Q.call(B)).done;){if(ee=Y(S(X.value)),ie=ee.next,(Z=ie.call(ee)).done||(ne=ie.call(ee)).done||!ie.call(ee).done)throw TypeError("Expected sequence with length 2");A.push({key:Z.value+"",value:ne.value+""})}else for(we in W)b(W,we)&&A.push({key:we,value:W[we]+""});else M(A,typeof W=="string"?W.charAt(0)==="?"?W.slice(1):W:W+"")},P=w.prototype;p(P,{append:function(W,G){O(arguments.length,2);var A=U(this);A.entries.push({key:W+"",value:G+""}),A.updateURL()},delete:function(R){O(arguments.length,1);for(var W=U(this),G=W.entries,A=R+"",x=0;x<G.length;)G[x].key===A?G.splice(x,1):x++;W.updateURL()},get:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=0;x<G.length;x++)if(G[x].key===A)return G[x].value;return null},getAll:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=[],B=0;B<G.length;B++)G[B].key===A&&x.push(G[B].value);return x},has:function(W){O(arguments.length,1);for(var G=U(this).entries,A=W+"",x=0;x<G.length;)if(G[x++].key===A)return!0;return!1},set:function(W,G){O(arguments.length,1);for(var A=U(this),x=A.entries,B=!1,Q=W+"",X=G+"",ee=0,ie;ee<x.length;ee++)ie=x[ee],ie.key===Q&&(B?x.splice(ee--,1):(B=!0,ie.value=X));B||x.push({key:Q,value:X}),A.updateURL()},sort:function(){var W=U(this),G=W.entries,A=G.slice(),x,B,Q;for(G.length=0,Q=0;Q<A.length;Q++){for(x=A[Q],B=0;B<Q;B++)if(G[B].key>x.key){G.splice(B,0,x);break}B===Q&&G.push(x)}W.updateURL()},forEach:function(W){for(var G=U(this).entries,A=E(W,arguments.length>1?arguments[1]:void 0,3),x=0,B;x<G.length;)B=G[x++],A(B.value,B.key,this)},keys:function(){return new k(this,"keys")},values:function(){return new k(this,"values")},entries:function(){return new k(this,"entries")}},{enumerable:!0}),h(P,F,P.entries),h(P,"toString",function(){for(var W=U(this).entries,G=[],A=0,x;A<W.length;)x=W[A++],G.push(N(x.key)+"="+N(x.value));return G.join("&")},{enumerable:!0}),m(w,z),u({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof j=="function"&&typeof K=="function"&&u({global:!0,enumerable:!0,forced:!0},{fetch:function(W){var G=[W],A,x,B;return arguments.length>1&&(A=arguments[1],_(A)&&(x=A.body,C(x)===z&&(B=A.headers?new K(A.headers):new K,B.has("content-type")||B.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),A=T(A,{body:D(0,String(x)),headers:D(0,B)}))),G.push(A)),j.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}}),285:(function(s,c,a){a(8783);var u=a(2109),d=a(9781),f=a(590),h=a(7854),p=a(6048),m=a(1320),g=a(5787),v=a(6656),y=a(1574),b=a(8457),E=a(8710).codeAt,C=a(3197),S=a(8003),_=a(1637),T=a(9909),D=h.URL,Y=_.URLSearchParams,V=_.getState,H=T.set,j=T.getterFor("URL"),K=Math.floor,F=Math.pow,z="Invalid authority",$="Invalid scheme",J="Invalid host",U="Invalid port",q=/[A-Za-z]/,te=/[\d+-.A-Za-z]/,se=/\d/,he=/^(0x|0X)/,pe=/^[0-7]+$/,ye=/^\d+$/,Ce=/^[\dA-Fa-f]+$/,Ae=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ge=/[\u0000\t\u000A\u000D #/:?@[\\]]/,N=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,M=/[\t\u000A\u000D]/g,I,O=function(L,oe){var re,ae,de;if(oe.charAt(0)=="["){if(oe.charAt(oe.length-1)!="]"||(re=w(oe.slice(1,-1)),!re))return J;L.host=re}else if(X(L)){if(oe=C(oe),Ae.test(oe)||(re=k(oe),re===null))return J;L.host=re}else{if(ge.test(oe))return J;for(re="",ae=b(oe),de=0;de<ae.length;de++)re+=B(ae[de],W);L.host=re}},k=function(L){var oe=L.split("."),re,ae,de,Oe,Ee,He,et;if(oe.length&&oe[oe.length-1]==""&&oe.pop(),re=oe.length,re>4)return L;for(ae=[],de=0;de<re;de++){if(Oe=oe[de],Oe=="")return L;if(Ee=10,Oe.length>1&&Oe.charAt(0)=="0"&&(Ee=he.test(Oe)?16:8,Oe=Oe.slice(Ee==8?1:2)),Oe==="")He=0;else{if(!(Ee==10?ye:Ee==8?pe:Ce).test(Oe))return L;He=parseInt(Oe,Ee)}ae.push(He)}for(de=0;de<re;de++)if(He=ae[de],de==re-1){if(He>=F(256,5-re))return null}else if(He>255)return null;for(et=ae.pop(),de=0;de<ae.length;de++)et+=ae[de]*F(256,3-de);return et},w=function(L){var oe=[0,0,0,0,0,0,0,0],re=0,ae=null,de=0,Oe,Ee,He,et,at,rn,ue,pt=function(){return L.charAt(de)};if(pt()==":"){if(L.charAt(1)!=":")return;de+=2,re++,ae=re}for(;pt();){if(re==8)return;if(pt()==":"){if(ae!==null)return;de++,re++,ae=re;continue}for(Oe=Ee=0;Ee<4&&Ce.test(pt());)Oe=Oe*16+parseInt(pt(),16),de++,Ee++;if(pt()=="."){if(Ee==0||(de-=Ee,re>6))return;for(He=0;pt();){if(et=null,He>0)if(pt()=="."&&He<4)de++;else return;if(!se.test(pt()))return;for(;se.test(pt());){if(at=parseInt(pt(),10),et===null)et=at;else{if(et==0)return;et=et*10+at}if(et>255)return;de++}oe[re]=oe[re]*256+et,He++,(He==2||He==4)&&re++}if(He!=4)return;break}else if(pt()==":"){if(de++,!pt())return}else if(pt())return;oe[re++]=Oe}if(ae!==null)for(rn=re-ae,re=7;re!=0&&rn>0;)ue=oe[re],oe[re--]=oe[ae+rn-1],oe[ae+--rn]=ue;else if(re!=8)return;return oe},P=function(L){for(var oe=null,re=1,ae=null,de=0,Oe=0;Oe<8;Oe++)L[Oe]!==0?(de>re&&(oe=ae,re=de),ae=null,de=0):(ae===null&&(ae=Oe),++de);return de>re&&(oe=ae,re=de),oe},R=function(L){var oe,re,ae,de;if(typeof L=="number"){for(oe=[],re=0;re<4;re++)oe.unshift(L%256),L=K(L/256);return oe.join(".")}else if(typeof L=="object"){for(oe="",ae=P(L),re=0;re<8;re++)de&&L[re]===0||(de&&(de=!1),ae===re?(oe+=re?":":"::",de=!0):(oe+=L[re].toString(16),re<7&&(oe+=":")));return"["+oe+"]"}return L},W={},G=y({},W,{" ":1,'"':1,"<":1,">":1,"`":1}),A=y({},G,{"#":1,"?":1,"{":1,"}":1}),x=y({},A,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),B=function(L,oe){var re=E(L,0);return re>32&&re<127&&!v(oe,L)?L:encodeURIComponent(L)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},X=function(L){return v(Q,L.scheme)},ee=function(L){return L.username!=""||L.password!=""},ie=function(L){return!L.host||L.cannotBeABaseURL||L.scheme=="file"},Z=function(L,oe){var re;return L.length==2&&q.test(L.charAt(0))&&((re=L.charAt(1))==":"||!oe&&re=="|")},ne=function(L){var oe;return L.length>1&&Z(L.slice(0,2))&&(L.length==2||(oe=L.charAt(2))==="/"||oe==="\\"||oe==="?"||oe==="#")},we=function(L){var oe=L.path,re=oe.length;re&&(L.scheme!="file"||re!=1||!Z(oe[0],!0))&&oe.pop()},_e=function(L){return L==="."||L.toLowerCase()==="%2e"},Ne=function(L){return L=L.toLowerCase(),L===".."||L==="%2e."||L===".%2e"||L==="%2e%2e"},Xe={},ht={},qe={},fr={},gn={},Qe={},Be={},st={},Gt={},Zr={},hr={},pr={},tn={},jn={},Ro={},kc={},Vo={},Tn={},Ah={},Jr={},Wn={},In=function(L,oe,re,ae){var de=re||Xe,Oe=0,Ee="",He=!1,et=!1,at=!1,rn,ue,pt,Kn;for(re||(L.scheme="",L.username="",L.password="",L.host=null,L.port=null,L.path=[],L.query=null,L.fragment=null,L.cannotBeABaseURL=!1,oe=oe.replace(N,"")),oe=oe.replace(M,""),rn=b(oe);Oe<=rn.length;){switch(ue=rn[Oe],de){case Xe:if(ue&&q.test(ue))Ee+=ue.toLowerCase(),de=ht;else{if(re)return $;de=qe;continue}break;case ht:if(ue&&(te.test(ue)||ue=="+"||ue=="-"||ue=="."))Ee+=ue.toLowerCase();else if(ue==":"){if(re&&(X(L)!=v(Q,Ee)||Ee=="file"&&(ee(L)||L.port!==null)||L.scheme=="file"&&!L.host))return;if(L.scheme=Ee,re){X(L)&&Q[L.scheme]==L.port&&(L.port=null);return}Ee="",L.scheme=="file"?de=jn:X(L)&&ae&&ae.scheme==L.scheme?de=fr:X(L)?de=st:rn[Oe+1]=="/"?(de=gn,Oe++):(L.cannotBeABaseURL=!0,L.path.push(""),de=Ah)}else{if(re)return $;Ee="",de=qe,Oe=0;continue}break;case qe:if(!ae||ae.cannotBeABaseURL&&ue!="#")return $;if(ae.cannotBeABaseURL&&ue=="#"){L.scheme=ae.scheme,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",L.cannotBeABaseURL=!0,de=Wn;break}de=ae.scheme=="file"?jn:Qe;continue;case fr:if(ue=="/"&&rn[Oe+1]=="/")de=Gt,Oe++;else{de=Qe;continue}break;case gn:if(ue=="/"){de=Zr;break}else{de=Tn;continue}case Qe:if(L.scheme=ae.scheme,ue==I)L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query=ae.query;else if(ue=="/"||ue=="\\"&&X(L))de=Be;else if(ue=="?")L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query="",de=Jr;else if(ue=="#")L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",de=Wn;else{L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,L.path=ae.path.slice(),L.path.pop(),de=Tn;continue}break;case Be:if(X(L)&&(ue=="/"||ue=="\\"))de=Gt;else if(ue=="/")de=Zr;else{L.username=ae.username,L.password=ae.password,L.host=ae.host,L.port=ae.port,de=Tn;continue}break;case st:if(de=Gt,ue!="/"||Ee.charAt(Oe+1)!="/")continue;Oe++;break;case Gt:if(ue!="/"&&ue!="\\"){de=Zr;continue}break;case Zr:if(ue=="@"){He&&(Ee="%40"+Ee),He=!0,pt=b(Ee);for(var Sc=0;Sc<pt.length;Sc++){var $h=pt[Sc];if($h==":"&&!at){at=!0;continue}var Fh=B($h,x);at?L.password+=Fh:L.username+=Fh}Ee=""}else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)){if(He&&Ee=="")return z;Oe-=b(Ee).length+1,Ee="",de=hr}else Ee+=ue;break;case hr:case pr:if(re&&L.scheme=="file"){de=kc;continue}else if(ue==":"&&!et){if(Ee=="")return J;if(Kn=O(L,Ee),Kn)return Kn;if(Ee="",de=tn,re==pr)return}else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)){if(X(L)&&Ee=="")return J;if(re&&Ee==""&&(ee(L)||L.port!==null))return;if(Kn=O(L,Ee),Kn)return Kn;if(Ee="",de=Vo,re)return;continue}else ue=="["?et=!0:ue=="]"&&(et=!1),Ee+=ue;break;case tn:if(se.test(ue))Ee+=ue;else if(ue==I||ue=="/"||ue=="?"||ue=="#"||ue=="\\"&&X(L)||re){if(Ee!=""){var Ac=parseInt(Ee,10);if(Ac>65535)return U;L.port=X(L)&&Ac===Q[L.scheme]?null:Ac,Ee=""}if(re)return;de=Vo;continue}else return U;break;case jn:if(L.scheme="file",ue=="/"||ue=="\\")de=Ro;else if(ae&&ae.scheme=="file")if(ue==I)L.host=ae.host,L.path=ae.path.slice(),L.query=ae.query;else if(ue=="?")L.host=ae.host,L.path=ae.path.slice(),L.query="",de=Jr;else if(ue=="#")L.host=ae.host,L.path=ae.path.slice(),L.query=ae.query,L.fragment="",de=Wn;else{ne(rn.slice(Oe).join(""))||(L.host=ae.host,L.path=ae.path.slice(),we(L)),de=Tn;continue}else{de=Tn;continue}break;case Ro:if(ue=="/"||ue=="\\"){de=kc;break}ae&&ae.scheme=="file"&&!ne(rn.slice(Oe).join(""))&&(Z(ae.path[0],!0)?L.path.push(ae.path[0]):L.host=ae.host),de=Tn;continue;case kc:if(ue==I||ue=="/"||ue=="\\"||ue=="?"||ue=="#"){if(!re&&Z(Ee))de=Tn;else if(Ee==""){if(L.host="",re)return;de=Vo}else{if(Kn=O(L,Ee),Kn)return Kn;if(L.host=="localhost"&&(L.host=""),re)return;Ee="",de=Vo}continue}else Ee+=ue;break;case Vo:if(X(L)){if(de=Tn,ue!="/"&&ue!="\\")continue}else if(!re&&ue=="?")L.query="",de=Jr;else if(!re&&ue=="#")L.fragment="",de=Wn;else if(ue!=I&&(de=Tn,ue!="/"))continue;break;case Tn:if(ue==I||ue=="/"||ue=="\\"&&X(L)||!re&&(ue=="?"||ue=="#")){if(Ne(Ee)?(we(L),ue!="/"&&!(ue=="\\"&&X(L))&&L.path.push("")):_e(Ee)?ue!="/"&&!(ue=="\\"&&X(L))&&L.path.push(""):(L.scheme=="file"&&!L.path.length&&Z(Ee)&&(L.host&&(L.host=""),Ee=Ee.charAt(0)+":"),L.path.push(Ee)),Ee="",L.scheme=="file"&&(ue==I||ue=="?"||ue=="#"))for(;L.path.length>1&&L.path[0]==="";)L.path.shift();ue=="?"?(L.query="",de=Jr):ue=="#"&&(L.fragment="",de=Wn)}else Ee+=B(ue,A);break;case Ah:ue=="?"?(L.query="",de=Jr):ue=="#"?(L.fragment="",de=Wn):ue!=I&&(L.path[0]+=B(ue,W));break;case Jr:!re&&ue=="#"?(L.fragment="",de=Wn):ue!=I&&(ue=="'"&&X(L)?L.query+="%27":ue=="#"?L.query+="%23":L.query+=B(ue,W));break;case Wn:ue!=I&&(L.fragment+=B(ue,G));break}Oe++}},Xr=function(oe){var re=g(this,Xr,"URL"),ae=arguments.length>1?arguments[1]:void 0,de=String(oe),Oe=H(re,{type:"URL"}),Ee,He;if(ae!==void 0){if(ae instanceof Xr)Ee=j(ae);else if(He=In(Ee={},String(ae)),He)throw TypeError(He)}if(He=In(Oe,de,null,Ee),He)throw TypeError(He);var et=Oe.searchParams=new Y,at=V(et);at.updateSearchParams(Oe.query),at.updateURL=function(){Oe.query=String(et)||null},d||(re.href=Js.call(re),re.origin=xh.call(re),re.protocol=Th.call(re),re.username=Ih.call(re),re.password=_h.call(re),re.host=Nh.call(re),re.hostname=Oh.call(re),re.port=Mh.call(re),re.pathname=Lh.call(re),re.search=Dh.call(re),re.searchParams=Ph.call(re),re.hash=Bh.call(re))},wc=Xr.prototype,Js=function(){var L=j(this),oe=L.scheme,re=L.username,ae=L.password,de=L.host,Oe=L.port,Ee=L.path,He=L.query,et=L.fragment,at=oe+":";return de!==null?(at+="//",ee(L)&&(at+=re+(ae?":"+ae:"")+"@"),at+=R(de),Oe!==null&&(at+=":"+Oe)):oe=="file"&&(at+="//"),at+=L.cannotBeABaseURL?Ee[0]:Ee.length?"/"+Ee.join("/"):"",He!==null&&(at+="?"+He),et!==null&&(at+="#"+et),at},xh=function(){var L=j(this),oe=L.scheme,re=L.port;if(oe=="blob")try{return new URL(oe.path[0]).origin}catch{return"null"}return oe=="file"||!X(L)?"null":oe+"://"+R(L.host)+(re!==null?":"+re:"")},Th=function(){return j(this).scheme+":"},Ih=function(){return j(this).username},_h=function(){return j(this).password},Nh=function(){var L=j(this),oe=L.host,re=L.port;return oe===null?"":re===null?R(oe):R(oe)+":"+re},Oh=function(){var L=j(this).host;return L===null?"":R(L)},Mh=function(){var L=j(this).port;return L===null?"":String(L)},Lh=function(){var L=j(this),oe=L.path;return L.cannotBeABaseURL?oe[0]:oe.length?"/"+oe.join("/"):""},Dh=function(){var L=j(this).query;return L?"?"+L:""},Ph=function(){return j(this).searchParams},Bh=function(){var L=j(this).fragment;return L?"#"+L:""},nn=function(L,oe){return{get:L,set:oe,configurable:!0,enumerable:!0}};if(d&&p(wc,{href:nn(Js,function(L){var oe=j(this),re=String(L),ae=In(oe,re);if(ae)throw TypeError(ae);V(oe.searchParams).updateSearchParams(oe.query)}),origin:nn(xh),protocol:nn(Th,function(L){var oe=j(this);In(oe,String(L)+":",Xe)}),username:nn(Ih,function(L){var oe=j(this),re=b(String(L));if(!ie(oe)){oe.username="";for(var ae=0;ae<re.length;ae++)oe.username+=B(re[ae],x)}}),password:nn(_h,function(L){var oe=j(this),re=b(String(L));if(!ie(oe)){oe.password="";for(var ae=0;ae<re.length;ae++)oe.password+=B(re[ae],x)}}),host:nn(Nh,function(L){var oe=j(this);oe.cannotBeABaseURL||In(oe,String(L),hr)}),hostname:nn(Oh,function(L){var oe=j(this);oe.cannotBeABaseURL||In(oe,String(L),pr)}),port:nn(Mh,function(L){var oe=j(this);ie(oe)||(L=String(L),L==""?oe.port=null:In(oe,L,tn))}),pathname:nn(Lh,function(L){var oe=j(this);oe.cannotBeABaseURL||(oe.path=[],In(oe,L+"",Vo))}),search:nn(Dh,function(L){var oe=j(this);L=String(L),L==""?oe.query=null:(L.charAt(0)=="?"&&(L=L.slice(1)),oe.query="",In(oe,L,Jr)),V(oe.searchParams).updateSearchParams(oe.query)}),searchParams:nn(Ph),hash:nn(Bh,function(L){var oe=j(this);if(L=String(L),L==""){oe.fragment=null;return}L.charAt(0)=="#"&&(L=L.slice(1)),oe.fragment="",In(oe,L,Wn)})}),m(wc,"toJSON",function(){return Js.call(this)},{enumerable:!0}),m(wc,"toString",function(){return Js.call(this)},{enumerable:!0}),D){var Rh=D.createObjectURL,Vh=D.revokeObjectURL;Rh&&m(Xr,"createObjectURL",function(oe){return Rh.apply(D,arguments)}),Vh&&m(Xr,"revokeObjectURL",function(oe){return Vh.apply(D,arguments)})}S(Xr,"URL"),u({global:!0,forced:!f,sham:!d},{URL:Xr})})},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 ge}}),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(N,M){var I;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=c(N))||N&&typeof N.length=="number"){I&&(N=I);var O=0,k=function(){};return{s:k,n:function(){return O>=N.length?{done:!0}:{done:!1,value:N[O++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1176
1176
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,R;return{s:function(){I=N[Symbol.iterator]()},n:function(){var G=I.next();return w=G.done,G},e:function(G){P=!0,R=G},f:function(){try{!w&&I.return!=null&&I.return()}finally{if(P)throw R}}}}function c(N,M){if(N){if(typeof N=="string")return a(N,M);var I=Object.prototype.toString.call(N).slice(8,-1);if(I==="Object"&&N.constructor&&(I=N.constructor.name),I==="Map"||I==="Set")return Array.from(N);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return a(N,M)}}function a(N,M){(M==null||M>N.length)&&(M=N.length);for(var I=0,O=new Array(M);I<M;I++)O[I]=N[I];return O}function u(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}function d(N,M){for(var I=0;I<M.length;I++){var O=M[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(N,O.key,O)}}function f(N,M,I){return M&&d(N.prototype,M),N}var h=(function(){function N(){u(this,N)}return f(N,[{key:"on",value:function(I,O){return this._callbacks=this._callbacks||{},this._callbacks[I]||(this._callbacks[I]=[]),this._callbacks[I].push(O),this}},{key:"emit",value:function(I){this._callbacks=this._callbacks||{};for(var O=this._callbacks[I],k=arguments.length,w=new Array(k>1?k-1:0),P=1;P<k;P++)w[P-1]=arguments[P];if(O){var R=s(O),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.apply(this,w)}}catch(A){R.e(A)}finally{R.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+I,{args:w})),this}},{key:"makeEvent",value:function(I,O){var k={bubbles:!0,cancelable:!0,detail:O};if(typeof window.CustomEvent=="function")return new CustomEvent(I,k);var w=document.createEvent("CustomEvent");return w.initCustomEvent(I,k.bubbles,k.cancelable,k.detail),w}},{key:"off",value:function(I,O){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var k=this._callbacks[I];if(!k)return this;if(arguments.length===1)return delete this._callbacks[I],this;for(var w=0;w<k.length;w++){var P=k[w];if(P===O){k.splice(w,1);break}}return this}}]),N})(),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(N,M){var I;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=v(N))||N&&typeof N.length=="number"){I&&(N=I);var O=0,k=function(){};return{s:k,n:function(){return O>=N.length?{done:!0}:{done:!1,value:N[O++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1177
1177
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,R;return{s:function(){I=N[Symbol.iterator]()},n:function(){var G=I.next();return w=G.done,G},e:function(G){P=!0,R=G},f:function(){try{!w&&I.return!=null&&I.return()}finally{if(P)throw R}}}}function v(N,M){if(N){if(typeof N=="string")return y(N,M);var I=Object.prototype.toString.call(N).slice(8,-1);if(I==="Object"&&N.constructor&&(I=N.constructor.name),I==="Map"||I==="Set")return Array.from(N);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return y(N,M)}}function y(N,M){(M==null||M>N.length)&&(M=N.length);for(var I=0,O=new Array(M);I<M;I++)O[I]=N[I];return O}var b={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(M,I,O){if(O)return{dzuuid:O.file.upload.uuid,dzchunkindex:O.index,dztotalfilesize:O.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:O.file.upload.totalChunkCount,dzchunkbyteoffset:O.index*this.options.chunkSize}},accept:function(M,I){return I()},chunksUploaded:function(M,I){I()},fallback:function(){var M;this.element.className="".concat(this.element.className," dz-browser-not-supported");var I=g(this.element.getElementsByTagName("div")),O;try{for(I.s();!(O=I.n()).done;){var k=O.value;if(/(^| )dz-message($| )/.test(k.className)){M=k,k.className="dz-message";break}}}catch(P){I.e(P)}finally{I.f()}M||(M=U.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(M));var w=M.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(M,I,O,k){var w={srcX:0,srcY:0,srcWidth:M.width,srcHeight:M.height},P=M.width/M.height;I==null&&O==null?(I=w.srcWidth,O=w.srcHeight):I==null?I=O*P:O==null&&(O=I/P),I=Math.min(I,w.srcWidth),O=Math.min(O,w.srcHeight);var R=I/O;if(w.srcWidth>I||w.srcHeight>O)if(k==="crop")P>R?(w.srcHeight=M.height,w.srcWidth=w.srcHeight*R):(w.srcWidth=M.width,w.srcHeight=w.srcWidth/R);else if(k==="contain")P>R?O=I/P:I=O*P;else throw new Error("Unknown resizeMethod '".concat(k,"'"));return w.srcX=(M.width-w.srcWidth)/2,w.srcY=(M.height-w.srcHeight)/2,w.trgWidth=I,w.trgHeight=O,w},transformFile:function(M,I){return(this.options.resizeWidth||this.options.resizeHeight)&&M.type.match(/image.*/)?this.resizeImage(M,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,I):I(M)},previewTemplate:m,drop:function(M){return this.element.classList.remove("dz-drag-hover")},dragstart:function(M){},dragend:function(M){return this.element.classList.remove("dz-drag-hover")},dragenter:function(M){return this.element.classList.add("dz-drag-hover")},dragover:function(M){return this.element.classList.add("dz-drag-hover")},dragleave:function(M){return this.element.classList.remove("dz-drag-hover")},paste:function(M){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(M){var I=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){M.previewElement=U.createElement(this.options.previewTemplate.trim()),M.previewTemplate=M.previewElement,this.previewsContainer.appendChild(M.previewElement);var O=g(M.previewElement.querySelectorAll("[data-dz-name]")),k;try{for(O.s();!(k=O.n()).done;){var w=k.value;w.textContent=M.name}}catch(B){O.e(B)}finally{O.f()}var P=g(M.previewElement.querySelectorAll("[data-dz-size]")),R;try{for(P.s();!(R=P.n()).done;)w=R.value,w.innerHTML=this.filesize(M.size)}catch(B){P.e(B)}finally{P.f()}this.options.addRemoveLinks&&(M._removeLink=U.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),M.previewElement.appendChild(M._removeLink));var W=function(Q){return Q.preventDefault(),Q.stopPropagation(),M.status===U.UPLOADING?U.confirm(I.options.dictCancelUploadConfirmation,function(){return I.removeFile(M)}):I.options.dictRemoveFileConfirmation?U.confirm(I.options.dictRemoveFileConfirmation,function(){return I.removeFile(M)}):I.removeFile(M)},G=g(M.previewElement.querySelectorAll("[data-dz-remove]")),A;try{for(G.s();!(A=G.n()).done;){var x=A.value;x.addEventListener("click",W)}}catch(B){G.e(B)}finally{G.f()}}},removedfile:function(M){return M.previewElement!=null&&M.previewElement.parentNode!=null&&M.previewElement.parentNode.removeChild(M.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(M,I){if(M.previewElement){M.previewElement.classList.remove("dz-file-preview");var O=g(M.previewElement.querySelectorAll("[data-dz-thumbnail]")),k;try{for(O.s();!(k=O.n()).done;){var w=k.value;w.alt=M.name,w.src=I}}catch(P){O.e(P)}finally{O.f()}return setTimeout(function(){return M.previewElement.classList.add("dz-image-preview")},1)}},error:function(M,I){if(M.previewElement){M.previewElement.classList.add("dz-error"),typeof I!="string"&&I.error&&(I=I.error);var O=g(M.previewElement.querySelectorAll("[data-dz-errormessage]")),k;try{for(O.s();!(k=O.n()).done;){var w=k.value;w.textContent=I}}catch(P){O.e(P)}finally{O.f()}}},errormultiple:function(){},processing:function(M){if(M.previewElement&&(M.previewElement.classList.add("dz-processing"),M._removeLink))return M._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(M,I,O){if(M.previewElement){var k=g(M.previewElement.querySelectorAll("[data-dz-uploadprogress]")),w;try{for(k.s();!(w=k.n()).done;){var P=w.value;P.nodeName==="PROGRESS"?P.value=I:P.style.width="".concat(I,"%")}}catch(R){k.e(R)}finally{k.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(M){if(M.previewElement)return M.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(M){return this.emit("error",M,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(M){if(M._removeLink&&(M._removeLink.innerHTML=this.options.dictRemoveFile),M.previewElement)return M.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},E=b;function C(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(I){return typeof I}:C=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},C(N)}function S(N,M){var I;if(typeof Symbol>"u"||N[Symbol.iterator]==null){if(Array.isArray(N)||(I=_(N))||N&&typeof N.length=="number"){I&&(N=I);var O=0,k=function(){};return{s:k,n:function(){return O>=N.length?{done:!0}:{done:!1,value:N[O++]}},e:function(G){throw G},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1178
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,R;return{s:function(){I=N[Symbol.iterator]()},n:function(){var G=I.next();return w=G.done,G},e:function(G){P=!0,R=G},f:function(){try{!w&&I.return!=null&&I.return()}finally{if(P)throw R}}}}function _(N,M){if(N){if(typeof N=="string")return T(N,M);var I=Object.prototype.toString.call(N).slice(8,-1);if(I==="Object"&&N.constructor&&(I=N.constructor.name),I==="Map"||I==="Set")return Array.from(N);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return T(N,M)}}function T(N,M){(M==null||M>N.length)&&(M=N.length);for(var I=0,O=new Array(M);I<M;I++)O[I]=N[I];return O}function D(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}function Y(N,M){for(var I=0;I<M.length;I++){var O=M[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(N,O.key,O)}}function V(N,M,I){return M&&Y(N.prototype,M),I&&Y(N,I),N}function H(N,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(M&&M.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),M&&j(N,M)}function j(N,M){return j=Object.setPrototypeOf||function(O,k){return O.__proto__=k,O},j(N,M)}function K(N){var M=$();return function(){var O=J(N),k;if(M){var w=J(this).constructor;k=Reflect.construct(O,arguments,w)}else k=O.apply(this,arguments);return F(this,k)}}function F(N,M){return M&&(C(M)==="object"||typeof M=="function")?M:z(N)}function z(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function $(){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 J(N){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},J(N)}var U=(function(N){H(I,N);var M=K(I);function I(O,k){var w;D(this,I),w=M.call(this);var P,R;if(w.element=O,w.version=I.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.");I.instances.push(z(w)),w.element.dropzone=z(w);var W=(R=I.optionsForElement(w.element))!=null?R:{};if(w.options=I.extend({},E,W,k??{}),w.options.previewTemplate=w.options.previewTemplate.replace(/\n*/g,""),w.options.forceFallback||!I.isBrowserSupported())return F(w,w.options.fallback.call(z(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(z(w),G.name,G)}),typeof w.options.method=="string"&&(w.options.method=w.options.method.toUpperCase()),(P=w.getExistingFallback())&&P.parentNode&&P.parentNode.removeChild(P),w.options.previewsContainer!==!1&&(w.options.previewsContainer?w.previewsContainer=I.getElement(w.options.previewsContainer,"previewsContainer"):w.previewsContainer=w.element),w.options.clickable&&(w.options.clickable===!0?w.clickableElements=[w.element]:w.clickableElements=I.getElements(w.options.clickable,"clickable")),w.init(),w}return V(I,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(k){return k.accepted}).map(function(k){return k})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(k){return!k.accepted}).map(function(k){return k})}},{key:"getFilesWithStatus",value:function(k){return this.files.filter(function(w){return w.status===k}).map(function(w){return w})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(I.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(I.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(I.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(k){return k.status===I.UPLOADING||k.status===I.QUEUED}).map(function(k){return k})}},{key:"init",value:function(){var k=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(I.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(){k.hiddenFileInput&&k.hiddenFileInput.parentNode.removeChild(k.hiddenFileInput),k.hiddenFileInput=document.createElement("input"),k.hiddenFileInput.setAttribute("type","file"),(k.options.maxFiles===null||k.options.maxFiles>1)&&k.hiddenFileInput.setAttribute("multiple","multiple"),k.hiddenFileInput.className="dz-hidden-input",k.options.acceptedFiles!==null&&k.hiddenFileInput.setAttribute("accept",k.options.acceptedFiles),k.options.capture!==null&&k.hiddenFileInput.setAttribute("capture",k.options.capture),k.hiddenFileInput.setAttribute("tabindex","-1"),k.hiddenFileInput.style.visibility="hidden",k.hiddenFileInput.style.position="absolute",k.hiddenFileInput.style.top="0",k.hiddenFileInput.style.left="0",k.hiddenFileInput.style.height="0",k.hiddenFileInput.style.width="0",I.getElement(k.options.hiddenInputContainer,"hiddenInputContainer").appendChild(k.hiddenFileInput),k.hiddenFileInput.addEventListener("change",function(){var B=k.hiddenFileInput.files;if(B.length){var Q=S(B),X;try{for(Q.s();!(X=Q.n()).done;){var ee=X.value;k.addFile(ee)}}catch(ie){Q.e(ie)}finally{Q.f()}}k.emit("addedfiles",B),x()})};w()}this.URL=window.URL!==null?window.URL:window.webkitURL;var P=S(this.events),R;try{for(P.s();!(R=P.n()).done;){var W=R.value;this.on(W,this.options[W])}}catch(x){P.e(x)}finally{P.f()}this.on("uploadprogress",function(){return k.updateTotalUploadProgress()}),this.on("removedfile",function(){return k.updateTotalUploadProgress()}),this.on("canceled",function(x){return k.emit("complete",x)}),this.on("complete",function(x){if(k.getAddedFiles().length===0&&k.getUploadingFiles().length===0&&k.getQueuedFiles().length===0)return setTimeout(function(){return k.emit("queuecomplete")},0)});var G=function(B){if(B.dataTransfer.types){for(var Q=0;Q<B.dataTransfer.types.length;Q++)if(B.dataTransfer.types[Q]==="Files")return!0}return!1},A=function(B){if(G(B))return B.stopPropagation(),B.preventDefault?B.preventDefault():B.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(B){return k.emit("dragstart",B)},dragenter:function(B){return A(B),k.emit("dragenter",B)},dragover:function(B){var Q;try{Q=B.dataTransfer.effectAllowed}catch{}return B.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",A(B),k.emit("dragover",B)},dragleave:function(B){return k.emit("dragleave",B)},drop:function(B){return A(B),k.drop(B)},dragend:function(B){return k.emit("dragend",B)}}}],this.clickableElements.forEach(function(x){return k.listeners.push({element:x,events:{click:function(Q){return(x!==k.element||Q.target===k.element||I.elementInside(Q.target,k.element.querySelector(".dz-message")))&&k.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,I.instances.splice(I.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var k,w=0,P=0,R=this.getActiveFiles();if(R.length){var W=S(this.getActiveFiles()),G;try{for(W.s();!(G=W.n()).done;){var A=G.value;w+=A.upload.bytesSent,P+=A.upload.total}}catch(x){W.e(x)}finally{W.f()}k=100*w/P}else k=100;return this.emit("totaluploadprogress",k,P,w)}},{key:"_getParamName",value:function(k){return typeof this.options.paramName=="function"?this.options.paramName(k):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(k,"]"):"")}},{key:"_renameFile",value:function(k){return typeof this.options.renameFile!="function"?k.name:this.options.renameFile(k)}},{key:"getFallbackForm",value:function(){var k,w;if(k=this.getExistingFallback())return k;var P='<div class="dz-fallback">';this.options.dictFallbackText&&(P+="<p>".concat(this.options.dictFallbackText,"</p>")),P+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var R=I.createElement(P);return this.element.tagName!=="FORM"?(w=I.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),w.appendChild(R)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),w??R}},{key:"getExistingFallback",value:function(){for(var k=function(A){var x=S(A),B;try{for(x.s();!(B=x.n()).done;){var Q=B.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(X){x.e(X)}finally{x.f()}},w=0,P=["div","form"];w<P.length;w++){var R=P[w],W;if(W=k(this.element.getElementsByTagName(R)))return W}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var w=[];for(var P in k.events){var R=k.events[P];w.push(k.element.addEventListener(P,R,!1))}return w})()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var w=[];for(var P in k.events){var R=k.events[P];w.push(k.element.removeEventListener(P,R,!1))}return w})()})}},{key:"disable",value:function(){var k=this;return this.clickableElements.forEach(function(w){return w.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(w){return k.cancelUpload(w)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(k){return k.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(k){var w=0,P="b";if(k>0){for(var R=["tb","gb","mb","kb","b"],W=0;W<R.length;W++){var G=R[W],A=Math.pow(this.options.filesizeBase,4-W)/10;if(k>=A){w=k/Math.pow(this.options.filesizeBase,4-W),P=G;break}}w=Math.round(10*w)/10}return"<strong>".concat(w,"</strong> ").concat(this.options.dictFileSizeUnits[P])}},{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(k){if(k.dataTransfer){this.emit("drop",k);for(var w=[],P=0;P<k.dataTransfer.files.length;P++)w[P]=k.dataTransfer.files[P];if(w.length){var R=k.dataTransfer.items;R&&R.length&&R[0].webkitGetAsEntry!=null?this._addFilesFromItems(R):this.handleFiles(w)}this.emit("addedfiles",w)}}},{key:"paste",value:function(k){if(Ce(k?.clipboardData,function(P){return P.items})!=null){this.emit("paste",k);var w=k.clipboardData.items;if(w.length)return this._addFilesFromItems(w)}}},{key:"handleFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;this.addFile(R)}}catch(W){w.e(W)}finally{w.f()}}},{key:"_addFilesFromItems",value:function(k){var w=this;return(function(){var P=[],R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value,A;G.webkitGetAsEntry!=null&&(A=G.webkitGetAsEntry())?A.isFile?P.push(w.addFile(G.getAsFile())):A.isDirectory?P.push(w._addFilesFromDirectory(A,A.name)):P.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?P.push(w.addFile(G.getAsFile())):P.push(void 0)}}catch(x){R.e(x)}finally{R.f()}return P})()}},{key:"_addFilesFromDirectory",value:function(k,w){var P=this,R=k.createReader(),W=function(x){return Ae(console,"log",function(B){return B.log(x)})},G=function A(){return R.readEntries(function(x){if(x.length>0){var B=S(x),Q;try{for(B.s();!(Q=B.n()).done;){var X=Q.value;X.isFile?X.file(function(ee){if(!(P.options.ignoreHiddenFiles&&ee.name.substring(0,1)==="."))return ee.fullPath="".concat(w,"/").concat(ee.name),P.addFile(ee)}):X.isDirectory&&P._addFilesFromDirectory(X,"".concat(w,"/").concat(X.name))}}catch(ee){B.e(ee)}finally{B.f()}A()}return null},W)};return G()}},{key:"accept",value:function(k,w){this.options.maxFilesize&&k.size>this.options.maxFilesize*1024*1024?w(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(k.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):I.isValidFile(k,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",k)):this.options.accept.call(this,k,w):w(this.options.dictInvalidFileType)}},{key:"addFile",value:function(k){var w=this;k.upload={uuid:I.uuidv4(),progress:0,total:k.size,bytesSent:0,filename:this._renameFile(k)},this.files.push(k),k.status=I.ADDED,this.emit("addedfile",k),this._enqueueThumbnail(k),this.accept(k,function(P){P?(k.accepted=!1,w._errorProcessing([k],P)):(k.accepted=!0,w.options.autoQueue&&w.enqueueFile(k)),w._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;this.enqueueFile(R)}}catch(W){w.e(W)}finally{w.f()}return null}},{key:"enqueueFile",value:function(k){var w=this;if(k.status===I.ADDED&&k.accepted===!0){if(k.status=I.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(k){var w=this;if(this.options.createImageThumbnails&&k.type.match(/image.*/)&&k.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(k),setTimeout(function(){return w._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var k=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(P){return k.emit("thumbnail",w,P),k._processingThumbnail=!1,k._processThumbnailQueue()})}}},{key:"removeFile",value:function(k){if(k.status===I.UPLOADING&&this.cancelUpload(k),this.files=q(this.files,k),this.emit("removedfile",k),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(k){k==null&&(k=!1);var w=S(this.files.slice()),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;(R.status!==I.UPLOADING||k)&&this.removeFile(R)}}catch(W){w.e(W)}finally{w.f()}return null}},{key:"resizeImage",value:function(k,w,P,R,W){var G=this;return this.createThumbnail(k,w,P,R,!0,function(A,x){if(x==null)return W(k);var B=G.options.resizeMimeType;B==null&&(B=k.type);var Q=x.toDataURL(B,G.options.resizeQuality);return(B==="image/jpeg"||B==="image/jpg")&&(Q=pe.restore(k.dataURL,Q)),W(I.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(k,w,P,R,W,G){var A=this,x=new FileReader;x.onload=function(){if(k.dataURL=x.result,k.type==="image/svg+xml"){G?.(x.result);return}A.createThumbnailFromUrl(k,w,P,R,W,G)},x.readAsDataURL(k)}},{key:"displayExistingFile",value:function(k,w,P,R){var W=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",k),this.emit("complete",k),!G)this.emit("thumbnail",k,w),P&&P();else{var A=function(B){W.emit("thumbnail",k,B),P&&P()};k.dataURL=w,this.createThumbnailFromUrl(k,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,A,R)}}},{key:"createThumbnailFromUrl",value:function(k,w,P,R,W,G,A){var x=this,B=document.createElement("img");return A&&(B.crossOrigin=A),W=getComputedStyle(document.body).imageOrientation=="from-image"?!1:W,B.onload=function(){var Q=function(ee){return ee(1)};return typeof EXIF<"u"&&EXIF!==null&&W&&(Q=function(ee){return EXIF.getData(B,function(){return ee(EXIF.getTag(this,"Orientation"))})}),Q(function(X){k.width=B.width,k.height=B.height;var ee=x.options.resize.call(x,k,w,P,R),ie=document.createElement("canvas"),Z=ie.getContext("2d");switch(ie.width=ee.trgWidth,ie.height=ee.trgHeight,X>4&&(ie.width=ee.trgHeight,ie.height=ee.trgWidth),X){case 2:Z.translate(ie.width,0),Z.scale(-1,1);break;case 3:Z.translate(ie.width,ie.height),Z.rotate(Math.PI);break;case 4:Z.translate(0,ie.height),Z.scale(1,-1);break;case 5:Z.rotate(.5*Math.PI),Z.scale(1,-1);break;case 6:Z.rotate(.5*Math.PI),Z.translate(0,-ie.width);break;case 7:Z.rotate(.5*Math.PI),Z.translate(ie.height,-ie.width),Z.scale(-1,1);break;case 8:Z.rotate(-.5*Math.PI),Z.translate(-ie.height,0);break}he(Z,B,ee.srcX!=null?ee.srcX:0,ee.srcY!=null?ee.srcY:0,ee.srcWidth,ee.srcHeight,ee.trgX!=null?ee.trgX:0,ee.trgY!=null?ee.trgY:0,ee.trgWidth,ee.trgHeight);var ne=ie.toDataURL("image/png");if(G!=null)return G(ne,ie)})},G!=null&&(B.onerror=G),B.src=k.dataURL}},{key:"processQueue",value:function(){var k=this.options.parallelUploads,w=this.getUploadingFiles().length,P=w;if(!(w>=k)){var R=this.getQueuedFiles();if(R.length>0){if(this.options.uploadMultiple)return this.processFiles(R.slice(0,k-w));for(;P<k;){if(!R.length)return;this.processFile(R.shift()),P++}}}}},{key:"processFile",value:function(k){return this.processFiles([k])}},{key:"processFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;R.processing=!0,R.status=I.UPLOADING,this.emit("processing",R)}}catch(W){w.e(W)}finally{w.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",k),this.uploadFiles(k)}},{key:"_getFilesWithXhr",value:function(k){return this.files.filter(function(w){return w.xhr===k}).map(function(w){return w})}},{key:"cancelUpload",value:function(k){if(k.status===I.UPLOADING){var w=this._getFilesWithXhr(k.xhr),P=S(w),R;try{for(P.s();!(R=P.n()).done;){var W=R.value;W.status=I.CANCELED}}catch(B){P.e(B)}finally{P.f()}typeof k.xhr<"u"&&k.xhr.abort();var G=S(w),A;try{for(G.s();!(A=G.n()).done;){var x=A.value;this.emit("canceled",x)}}catch(B){G.e(B)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",w)}else(k.status===I.ADDED||k.status===I.QUEUED)&&(k.status=I.CANCELED,this.emit("canceled",k),this.options.uploadMultiple&&this.emit("canceledmultiple",[k]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(k){if(typeof k=="function"){for(var w=arguments.length,P=new Array(w>1?w-1:0),R=1;R<w;R++)P[R-1]=arguments[R];return k.apply(this,P)}return k}},{key:"uploadFile",value:function(k){return this.uploadFiles([k])}},{key:"uploadFiles",value:function(k){var w=this;this._transformFiles(k,function(P){if(w.options.chunking){var R=P[0];k[0].upload.chunked=w.options.chunking&&(w.options.forceChunking||R.size>w.options.chunkSize),k[0].upload.totalChunkCount=Math.ceil(R.size/w.options.chunkSize)}if(k[0].upload.chunked){var W=k[0],G=P[0];W.upload.chunks=[];var A=function(){for(var ee=0;W.upload.chunks[ee]!==void 0;)ee++;if(!(ee>=W.upload.totalChunkCount)){var ie=ee*w.options.chunkSize,Z=Math.min(ie+w.options.chunkSize,G.size),ne={name:w._getParamName(0),data:G.webkitSlice?G.webkitSlice(ie,Z):G.slice(ie,Z),filename:W.upload.filename,chunkIndex:ee};W.upload.chunks[ee]={file:W,index:ee,dataBlock:ne,status:I.UPLOADING,progress:0,retries:0},w._uploadData(k,[ne])}};if(W.upload.finishedChunkUpload=function(X,ee){var ie=!0;X.status=I.SUCCESS,X.dataBlock=null,X.xhr=null;for(var Z=0;Z<W.upload.totalChunkCount;Z++){if(W.upload.chunks[Z]===void 0)return A();W.upload.chunks[Z].status!==I.SUCCESS&&(ie=!1)}ie&&w.options.chunksUploaded(W,function(){w._finished(k,ee,null)})},w.options.parallelChunkUploads)for(var x=0;x<W.upload.totalChunkCount;x++)A();else A()}else{for(var B=[],Q=0;Q<k.length;Q++)B[Q]={name:w._getParamName(Q),data:P[Q],filename:k[Q].upload.filename};w._uploadData(k,B)}})}},{key:"_getChunk",value:function(k,w){for(var P=0;P<k.upload.totalChunkCount;P++)if(k.upload.chunks[P]!==void 0&&k.upload.chunks[P].xhr===w)return k.upload.chunks[P]}},{key:"_uploadData",value:function(k,w){var P=this,R=new XMLHttpRequest,W=S(k),G;try{for(W.s();!(G=W.n()).done;){var A=G.value;A.xhr=R}}catch(Be){W.e(Be)}finally{W.f()}k[0].upload.chunked&&(k[0].upload.chunks[w[0].chunkIndex].xhr=R);var x=this.resolveOption(this.options.method,k),B=this.resolveOption(this.options.url,k);R.open(x,B,!0);var Q=this.resolveOption(this.options.timeout,k);Q&&(R.timeout=this.resolveOption(this.options.timeout,k)),R.withCredentials=!!this.options.withCredentials,R.onload=function(Be){P._finishedUploading(k,R,Be)},R.ontimeout=function(){P._handleUploadError(k,R,"Request timedout after ".concat(P.options.timeout/1e3," seconds"))},R.onerror=function(){P._handleUploadError(k,R)};var X=R.upload!=null?R.upload:R;X.onprogress=function(Be){return P._updateFilesUploadProgress(k,R,Be)};var ee={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&I.extend(ee,this.options.headers);for(var ie in ee){var Z=ee[ie];Z&&R.setRequestHeader(ie,Z)}var ne=new FormData;if(this.options.params){var we=this.options.params;typeof we=="function"&&(we=we.call(this,k,R,k[0].upload.chunked?this._getChunk(k[0],R):null));for(var Ie in we){var Ne=we[Ie];if(Array.isArray(Ne))for(var Xe=0;Xe<Ne.length;Xe++)ne.append(Ie,Ne[Xe]);else ne.append(Ie,Ne)}}var ht=S(k),qe;try{for(ht.s();!(qe=ht.n()).done;){var fr=qe.value;this.emit("sending",fr,R,ne)}}catch(Be){ht.e(Be)}finally{ht.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",k,R,ne),this._addFormElementData(ne);for(var gn=0;gn<w.length;gn++){var Qe=w[gn];ne.append(Qe.name,Qe.data,Qe.filename)}this.submitRequest(R,ne,k)}},{key:"_transformFiles",value:function(k,w){for(var P=this,R=[],W=0,G=function(B){P.options.transformFile.call(P,k[B],function(Q){R[B]=Q,++W===k.length&&w(R)})},A=0;A<k.length;A++)G(A)}},{key:"_addFormElementData",value:function(k){if(this.element.tagName==="FORM"){var w=S(this.element.querySelectorAll("input, textarea, select, button")),P;try{for(w.s();!(P=w.n()).done;){var R=P.value,W=R.getAttribute("name"),G=R.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof W>"u"||W===null))if(R.tagName==="SELECT"&&R.hasAttribute("multiple")){var A=S(R.options,!0),x;try{for(A.s();!(x=A.n()).done;){var B=x.value;B.selected&&k.append(W,B.value)}}catch(Q){A.e(Q)}finally{A.f()}}else(!G||G!=="checkbox"&&G!=="radio"||R.checked)&&k.append(W,R.value)}}catch(Q){w.e(Q)}finally{w.f()}}}},{key:"_updateFilesUploadProgress",value:function(k,w,P){if(k[0].upload.chunked){var A=k[0],x=this._getChunk(A,w);P?(x.progress=100*P.loaded/P.total,x.total=P.total,x.bytesSent=P.loaded):(x.progress=100,x.bytesSent=x.total),A.upload.progress=0,A.upload.total=0,A.upload.bytesSent=0;for(var B=0;B<A.upload.totalChunkCount;B++)A.upload.chunks[B]&&typeof A.upload.chunks[B].progress<"u"&&(A.upload.progress+=A.upload.chunks[B].progress,A.upload.total+=A.upload.chunks[B].total,A.upload.bytesSent+=A.upload.chunks[B].bytesSent);A.upload.progress=A.upload.progress/A.upload.totalChunkCount,this.emit("uploadprogress",A,A.upload.progress,A.upload.bytesSent)}else{var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(P?(G.upload.progress=100*P.loaded/P.total,G.upload.total=P.total,G.upload.bytesSent=P.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(Q){R.e(Q)}finally{R.f()}}}},{key:"_finishedUploading",value:function(k,w,P){var R;if(k[0].status!==I.CANCELED&&w.readyState===4){if(w.responseType!=="arraybuffer"&&w.responseType!=="blob"&&(R=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json")))try{R=JSON.parse(R)}catch(W){P=W,R="Invalid JSON response from server."}this._updateFilesUploadProgress(k,w),200<=w.status&&w.status<300?k[0].upload.chunked?k[0].upload.finishedChunkUpload(this._getChunk(k[0],w),R):this._finished(k,R,P):this._handleUploadError(k,w,R)}}},{key:"_handleUploadError",value:function(k,w,P){if(k[0].status!==I.CANCELED){if(k[0].upload.chunked&&this.options.retryChunks){var R=this._getChunk(k[0],w);if(R.retries++<this.options.retryChunksLimit){this._uploadData(k,[R.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(k,P||this.options.dictResponseError.replace("{{statusCode}}",w.status),w)}}},{key:"submitRequest",value:function(k,w,P){if(k.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}k.send(w)}},{key:"_finished",value:function(k,w,P){var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.status=I.SUCCESS,this.emit("success",G,w,P),this.emit("complete",G)}}catch(A){R.e(A)}finally{R.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",k,w,P),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(k,w,P){var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.status=I.ERROR,this.emit("error",G,w,P),this.emit("complete",G)}}catch(A){R.e(A)}finally{R.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",k,w,P),this.emit("completemultiple",k)),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(k){for(var w=arguments.length,P=new Array(w>1?w-1:0),R=1;R<w;R++)P[R-1]=arguments[R];for(var W=0,G=P;W<G.length;W++){var A=G[W];for(var x in A){var B=A[x];k[x]=B}}return k}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(k){var w=Math.random()*16|0,P=k==="x"?w:w&3|8;return P.toString(16)})}}]),I})(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(N){if(N.getAttribute("id"))return U.options[te(N.getAttribute("id"))]},U.instances=[],U.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),N?.dropzone==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 N.dropzone},U.autoDiscover=!0,U.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var M=function(O){return(function(){var k=[],w=S(O),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;/(^| )dropzone($| )/.test(R.className)?k.push(N.push(R)):k.push(void 0)}}catch(W){w.e(W)}finally{w.f()}return k})()};M(document.getElementsByTagName("div")),M(document.getElementsByTagName("form"))}return(function(){var I=[],O=S(N),k;try{for(O.s();!(k=O.n()).done;){var w=k.value;U.optionsForElement(w)!==!1?I.push(new U(w)):I.push(void 0)}}catch(P){O.e(P)}finally{O.f()}return I})()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var M=S(U.blockedBrowsers),I;try{for(M.s();!(I=M.n()).done;){var O=I.value;if(O.test(navigator.userAgent)){N=!1;continue}}}catch(k){M.e(k)}finally{M.f()}}else N=!1;return N},U.dataURItoBlob=function(N){for(var M=atob(N.split(",")[1]),I=N.split(",")[0].split(":")[1].split(";")[0],O=new ArrayBuffer(M.length),k=new Uint8Array(O),w=0,P=M.length,R=0<=P;R?w<=P:w>=P;R?w++:w--)k[w]=M.charCodeAt(w);return new Blob([O],{type:I})};var q=function(M,I){return M.filter(function(O){return O!==I}).map(function(O){return O})},te=function(M){return M.replace(/[\-_](\w)/g,function(I){return I.charAt(1).toUpperCase()})};U.createElement=function(N){var M=document.createElement("div");return M.innerHTML=N,M.childNodes[0]},U.elementInside=function(N,M){if(N===M)return!0;for(;N=N.parentNode;)if(N===M)return!0;return!1},U.getElement=function(N,M){var I;if(typeof N=="string"?I=document.querySelector(N):N.nodeType!=null&&(I=N),I==null)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector or a plain HTML element."));return I},U.getElements=function(N,M){var I,O;if(N instanceof Array){O=[];try{var k=S(N,!0),w;try{for(k.s();!(w=k.n()).done;)I=w.value,O.push(this.getElement(I,M))}catch(W){k.e(W)}finally{k.f()}}catch{O=null}}else if(typeof N=="string"){O=[];var P=S(document.querySelectorAll(N)),R;try{for(P.s();!(R=P.n()).done;)I=R.value,O.push(I)}catch(W){P.e(W)}finally{P.f()}}else N.nodeType!=null&&(O=[N]);if(O==null||!O.length)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return O},U.confirm=function(N,M,I){if(window.confirm(N))return M();if(I!=null)return I()},U.isValidFile=function(N,M){if(!M)return!0;M=M.split(",");var I=N.type,O=I.replace(/\/.*$/,""),k=S(M),w;try{for(k.s();!(w=k.n()).done;){var P=w.value;if(P=P.trim(),P.charAt(0)==="."){if(N.name.toLowerCase().indexOf(P.toLowerCase(),N.name.length-P.length)!==-1)return!0}else if(/\/\*$/.test(P)){if(O===P.replace(/\/.*$/,""))return!0}else if(I===P)return!0}}catch(R){k.e(R)}finally{k.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new U(this,N)})}),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 se=function(M){M.naturalWidth;var I=M.naturalHeight,O=document.createElement("canvas");O.width=1,O.height=I;var k=O.getContext("2d");k.drawImage(M,0,0);for(var w=k.getImageData(1,0,1,I),P=w.data,R=0,W=I,G=I;G>R;){var A=P[(G-1)*4+3];A===0?W=G:R=G,G=W+R>>1}var x=G/I;return x===0?1:x},he=function(M,I,O,k,w,P,R,W,G,A){var x=se(I);return M.drawImage(I,O,k,w,P,R,W,G,A/x)},pe=(function(){function N(){D(this,N)}return V(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(I){for(var O="",k=void 0,w=void 0,P="",R=void 0,W=void 0,G=void 0,A="",x=0;k=I[x++],w=I[x++],P=I[x++],R=k>>2,W=(k&3)<<4|w>>4,G=(w&15)<<2|P>>6,A=P&63,isNaN(w)?G=A=64:isNaN(P)&&(A=64),O=O+this.KEY_STR.charAt(R)+this.KEY_STR.charAt(W)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(A),k=w=P="",R=W=G=A="",x<I.length;);return O}},{key:"restore",value:function(I,O){if(!I.match("data:image/jpeg;base64,"))return O;var k=this.decode64(I.replace("data:image/jpeg;base64,","")),w=this.slice2Segments(k),P=this.exifManipulation(O,w);return"data:image/jpeg;base64,".concat(this.encode64(P))}},{key:"exifManipulation",value:function(I,O){var k=this.getExifArray(O),w=this.insertExif(I,k),P=new Uint8Array(w);return P}},{key:"getExifArray",value:function(I){for(var O=void 0,k=0;k<I.length;){if(O=I[k],O[0]===255&O[1]===225)return O;k++}return[]}},{key:"insertExif",value:function(I,O){var k=I.replace("data:image/jpeg;base64,",""),w=this.decode64(k),P=w.indexOf(255,3),R=w.slice(0,P),W=w.slice(P),G=R;return G=G.concat(O),G=G.concat(W),G}},{key:"slice2Segments",value:function(I){for(var O=0,k=[];;){var w;if(I[O]===255&I[O+1]===218)break;if(I[O]===255&I[O+1]===216)O+=2;else{w=I[O+2]*256+I[O+3];var P=O+w+2,R=I.slice(O,P);k.push(R),O=P}if(O>I.length)break}return k}},{key:"decode64",value:function(I){var O=void 0,k=void 0,w="",P=void 0,R=void 0,W=void 0,G="",A=0,x=[],B=/[^A-Za-z0-9\+\/\=]/g;for(B.exec(I)&&console.warn(`There were invalid base64 characters in the input text.
1178
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,P=!1,R;return{s:function(){I=N[Symbol.iterator]()},n:function(){var G=I.next();return w=G.done,G},e:function(G){P=!0,R=G},f:function(){try{!w&&I.return!=null&&I.return()}finally{if(P)throw R}}}}function _(N,M){if(N){if(typeof N=="string")return T(N,M);var I=Object.prototype.toString.call(N).slice(8,-1);if(I==="Object"&&N.constructor&&(I=N.constructor.name),I==="Map"||I==="Set")return Array.from(N);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return T(N,M)}}function T(N,M){(M==null||M>N.length)&&(M=N.length);for(var I=0,O=new Array(M);I<M;I++)O[I]=N[I];return O}function D(N,M){if(!(N instanceof M))throw new TypeError("Cannot call a class as a function")}function Y(N,M){for(var I=0;I<M.length;I++){var O=M[I];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(N,O.key,O)}}function V(N,M,I){return M&&Y(N.prototype,M),I&&Y(N,I),N}function H(N,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(M&&M.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),M&&j(N,M)}function j(N,M){return j=Object.setPrototypeOf||function(O,k){return O.__proto__=k,O},j(N,M)}function K(N){var M=$();return function(){var O=J(N),k;if(M){var w=J(this).constructor;k=Reflect.construct(O,arguments,w)}else k=O.apply(this,arguments);return F(this,k)}}function F(N,M){return M&&(C(M)==="object"||typeof M=="function")?M:z(N)}function z(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function $(){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 J(N){return J=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},J(N)}var U=(function(N){H(I,N);var M=K(I);function I(O,k){var w;D(this,I),w=M.call(this);var P,R;if(w.element=O,w.version=I.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.");I.instances.push(z(w)),w.element.dropzone=z(w);var W=(R=I.optionsForElement(w.element))!=null?R:{};if(w.options=I.extend({},E,W,k??{}),w.options.previewTemplate=w.options.previewTemplate.replace(/\n*/g,""),w.options.forceFallback||!I.isBrowserSupported())return F(w,w.options.fallback.call(z(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(z(w),G.name,G)}),typeof w.options.method=="string"&&(w.options.method=w.options.method.toUpperCase()),(P=w.getExistingFallback())&&P.parentNode&&P.parentNode.removeChild(P),w.options.previewsContainer!==!1&&(w.options.previewsContainer?w.previewsContainer=I.getElement(w.options.previewsContainer,"previewsContainer"):w.previewsContainer=w.element),w.options.clickable&&(w.options.clickable===!0?w.clickableElements=[w.element]:w.clickableElements=I.getElements(w.options.clickable,"clickable")),w.init(),w}return V(I,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(k){return k.accepted}).map(function(k){return k})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(k){return!k.accepted}).map(function(k){return k})}},{key:"getFilesWithStatus",value:function(k){return this.files.filter(function(w){return w.status===k}).map(function(w){return w})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(I.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(I.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(I.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(k){return k.status===I.UPLOADING||k.status===I.QUEUED}).map(function(k){return k})}},{key:"init",value:function(){var k=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(I.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(){k.hiddenFileInput&&k.hiddenFileInput.parentNode.removeChild(k.hiddenFileInput),k.hiddenFileInput=document.createElement("input"),k.hiddenFileInput.setAttribute("type","file"),(k.options.maxFiles===null||k.options.maxFiles>1)&&k.hiddenFileInput.setAttribute("multiple","multiple"),k.hiddenFileInput.className="dz-hidden-input",k.options.acceptedFiles!==null&&k.hiddenFileInput.setAttribute("accept",k.options.acceptedFiles),k.options.capture!==null&&k.hiddenFileInput.setAttribute("capture",k.options.capture),k.hiddenFileInput.setAttribute("tabindex","-1"),k.hiddenFileInput.style.visibility="hidden",k.hiddenFileInput.style.position="absolute",k.hiddenFileInput.style.top="0",k.hiddenFileInput.style.left="0",k.hiddenFileInput.style.height="0",k.hiddenFileInput.style.width="0",I.getElement(k.options.hiddenInputContainer,"hiddenInputContainer").appendChild(k.hiddenFileInput),k.hiddenFileInput.addEventListener("change",function(){var B=k.hiddenFileInput.files;if(B.length){var Q=S(B),X;try{for(Q.s();!(X=Q.n()).done;){var ee=X.value;k.addFile(ee)}}catch(ie){Q.e(ie)}finally{Q.f()}}k.emit("addedfiles",B),x()})};w()}this.URL=window.URL!==null?window.URL:window.webkitURL;var P=S(this.events),R;try{for(P.s();!(R=P.n()).done;){var W=R.value;this.on(W,this.options[W])}}catch(x){P.e(x)}finally{P.f()}this.on("uploadprogress",function(){return k.updateTotalUploadProgress()}),this.on("removedfile",function(){return k.updateTotalUploadProgress()}),this.on("canceled",function(x){return k.emit("complete",x)}),this.on("complete",function(x){if(k.getAddedFiles().length===0&&k.getUploadingFiles().length===0&&k.getQueuedFiles().length===0)return setTimeout(function(){return k.emit("queuecomplete")},0)});var G=function(B){if(B.dataTransfer.types){for(var Q=0;Q<B.dataTransfer.types.length;Q++)if(B.dataTransfer.types[Q]==="Files")return!0}return!1},A=function(B){if(G(B))return B.stopPropagation(),B.preventDefault?B.preventDefault():B.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(B){return k.emit("dragstart",B)},dragenter:function(B){return A(B),k.emit("dragenter",B)},dragover:function(B){var Q;try{Q=B.dataTransfer.effectAllowed}catch{}return B.dataTransfer.dropEffect=Q==="move"||Q==="linkMove"?"move":"copy",A(B),k.emit("dragover",B)},dragleave:function(B){return k.emit("dragleave",B)},drop:function(B){return A(B),k.drop(B)},dragend:function(B){return k.emit("dragend",B)}}}],this.clickableElements.forEach(function(x){return k.listeners.push({element:x,events:{click:function(Q){return(x!==k.element||Q.target===k.element||I.elementInside(Q.target,k.element.querySelector(".dz-message")))&&k.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,I.instances.splice(I.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var k,w=0,P=0,R=this.getActiveFiles();if(R.length){var W=S(this.getActiveFiles()),G;try{for(W.s();!(G=W.n()).done;){var A=G.value;w+=A.upload.bytesSent,P+=A.upload.total}}catch(x){W.e(x)}finally{W.f()}k=100*w/P}else k=100;return this.emit("totaluploadprogress",k,P,w)}},{key:"_getParamName",value:function(k){return typeof this.options.paramName=="function"?this.options.paramName(k):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(k,"]"):"")}},{key:"_renameFile",value:function(k){return typeof this.options.renameFile!="function"?k.name:this.options.renameFile(k)}},{key:"getFallbackForm",value:function(){var k,w;if(k=this.getExistingFallback())return k;var P='<div class="dz-fallback">';this.options.dictFallbackText&&(P+="<p>".concat(this.options.dictFallbackText,"</p>")),P+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var R=I.createElement(P);return this.element.tagName!=="FORM"?(w=I.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),w.appendChild(R)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),w??R}},{key:"getExistingFallback",value:function(){for(var k=function(A){var x=S(A),B;try{for(x.s();!(B=x.n()).done;){var Q=B.value;if(/(^| )fallback($| )/.test(Q.className))return Q}}catch(X){x.e(X)}finally{x.f()}},w=0,P=["div","form"];w<P.length;w++){var R=P[w],W;if(W=k(this.element.getElementsByTagName(R)))return W}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var w=[];for(var P in k.events){var R=k.events[P];w.push(k.element.addEventListener(P,R,!1))}return w})()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(k){return(function(){var w=[];for(var P in k.events){var R=k.events[P];w.push(k.element.removeEventListener(P,R,!1))}return w})()})}},{key:"disable",value:function(){var k=this;return this.clickableElements.forEach(function(w){return w.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(w){return k.cancelUpload(w)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(k){return k.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(k){var w=0,P="b";if(k>0){for(var R=["tb","gb","mb","kb","b"],W=0;W<R.length;W++){var G=R[W],A=Math.pow(this.options.filesizeBase,4-W)/10;if(k>=A){w=k/Math.pow(this.options.filesizeBase,4-W),P=G;break}}w=Math.round(10*w)/10}return"<strong>".concat(w,"</strong> ").concat(this.options.dictFileSizeUnits[P])}},{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(k){if(k.dataTransfer){this.emit("drop",k);for(var w=[],P=0;P<k.dataTransfer.files.length;P++)w[P]=k.dataTransfer.files[P];if(w.length){var R=k.dataTransfer.items;R&&R.length&&R[0].webkitGetAsEntry!=null?this._addFilesFromItems(R):this.handleFiles(w)}this.emit("addedfiles",w)}}},{key:"paste",value:function(k){if(Ce(k?.clipboardData,function(P){return P.items})!=null){this.emit("paste",k);var w=k.clipboardData.items;if(w.length)return this._addFilesFromItems(w)}}},{key:"handleFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;this.addFile(R)}}catch(W){w.e(W)}finally{w.f()}}},{key:"_addFilesFromItems",value:function(k){var w=this;return(function(){var P=[],R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value,A;G.webkitGetAsEntry!=null&&(A=G.webkitGetAsEntry())?A.isFile?P.push(w.addFile(G.getAsFile())):A.isDirectory?P.push(w._addFilesFromDirectory(A,A.name)):P.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?P.push(w.addFile(G.getAsFile())):P.push(void 0)}}catch(x){R.e(x)}finally{R.f()}return P})()}},{key:"_addFilesFromDirectory",value:function(k,w){var P=this,R=k.createReader(),W=function(x){return Ae(console,"log",function(B){return B.log(x)})},G=function A(){return R.readEntries(function(x){if(x.length>0){var B=S(x),Q;try{for(B.s();!(Q=B.n()).done;){var X=Q.value;X.isFile?X.file(function(ee){if(!(P.options.ignoreHiddenFiles&&ee.name.substring(0,1)==="."))return ee.fullPath="".concat(w,"/").concat(ee.name),P.addFile(ee)}):X.isDirectory&&P._addFilesFromDirectory(X,"".concat(w,"/").concat(X.name))}}catch(ee){B.e(ee)}finally{B.f()}A()}return null},W)};return G()}},{key:"accept",value:function(k,w){this.options.maxFilesize&&k.size>this.options.maxFilesize*1024*1024?w(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(k.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):I.isValidFile(k,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",k)):this.options.accept.call(this,k,w):w(this.options.dictInvalidFileType)}},{key:"addFile",value:function(k){var w=this;k.upload={uuid:I.uuidv4(),progress:0,total:k.size,bytesSent:0,filename:this._renameFile(k)},this.files.push(k),k.status=I.ADDED,this.emit("addedfile",k),this._enqueueThumbnail(k),this.accept(k,function(P){P?(k.accepted=!1,w._errorProcessing([k],P)):(k.accepted=!0,w.options.autoQueue&&w.enqueueFile(k)),w._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;this.enqueueFile(R)}}catch(W){w.e(W)}finally{w.f()}return null}},{key:"enqueueFile",value:function(k){var w=this;if(k.status===I.ADDED&&k.accepted===!0){if(k.status=I.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(k){var w=this;if(this.options.createImageThumbnails&&k.type.match(/image.*/)&&k.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(k),setTimeout(function(){return w._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var k=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(P){return k.emit("thumbnail",w,P),k._processingThumbnail=!1,k._processThumbnailQueue()})}}},{key:"removeFile",value:function(k){if(k.status===I.UPLOADING&&this.cancelUpload(k),this.files=q(this.files,k),this.emit("removedfile",k),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(k){k==null&&(k=!1);var w=S(this.files.slice()),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;(R.status!==I.UPLOADING||k)&&this.removeFile(R)}}catch(W){w.e(W)}finally{w.f()}return null}},{key:"resizeImage",value:function(k,w,P,R,W){var G=this;return this.createThumbnail(k,w,P,R,!0,function(A,x){if(x==null)return W(k);var B=G.options.resizeMimeType;B==null&&(B=k.type);var Q=x.toDataURL(B,G.options.resizeQuality);return(B==="image/jpeg"||B==="image/jpg")&&(Q=pe.restore(k.dataURL,Q)),W(I.dataURItoBlob(Q))})}},{key:"createThumbnail",value:function(k,w,P,R,W,G){var A=this,x=new FileReader;x.onload=function(){if(k.dataURL=x.result,k.type==="image/svg+xml"){G?.(x.result);return}A.createThumbnailFromUrl(k,w,P,R,W,G)},x.readAsDataURL(k)}},{key:"displayExistingFile",value:function(k,w,P,R){var W=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",k),this.emit("complete",k),!G)this.emit("thumbnail",k,w),P&&P();else{var A=function(B){W.emit("thumbnail",k,B),P&&P()};k.dataURL=w,this.createThumbnailFromUrl(k,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,A,R)}}},{key:"createThumbnailFromUrl",value:function(k,w,P,R,W,G,A){var x=this,B=document.createElement("img");return A&&(B.crossOrigin=A),W=getComputedStyle(document.body).imageOrientation=="from-image"?!1:W,B.onload=function(){var Q=function(ee){return ee(1)};return typeof EXIF<"u"&&EXIF!==null&&W&&(Q=function(ee){return EXIF.getData(B,function(){return ee(EXIF.getTag(this,"Orientation"))})}),Q(function(X){k.width=B.width,k.height=B.height;var ee=x.options.resize.call(x,k,w,P,R),ie=document.createElement("canvas"),Z=ie.getContext("2d");switch(ie.width=ee.trgWidth,ie.height=ee.trgHeight,X>4&&(ie.width=ee.trgHeight,ie.height=ee.trgWidth),X){case 2:Z.translate(ie.width,0),Z.scale(-1,1);break;case 3:Z.translate(ie.width,ie.height),Z.rotate(Math.PI);break;case 4:Z.translate(0,ie.height),Z.scale(1,-1);break;case 5:Z.rotate(.5*Math.PI),Z.scale(1,-1);break;case 6:Z.rotate(.5*Math.PI),Z.translate(0,-ie.width);break;case 7:Z.rotate(.5*Math.PI),Z.translate(ie.height,-ie.width),Z.scale(-1,1);break;case 8:Z.rotate(-.5*Math.PI),Z.translate(-ie.height,0);break}he(Z,B,ee.srcX!=null?ee.srcX:0,ee.srcY!=null?ee.srcY:0,ee.srcWidth,ee.srcHeight,ee.trgX!=null?ee.trgX:0,ee.trgY!=null?ee.trgY:0,ee.trgWidth,ee.trgHeight);var ne=ie.toDataURL("image/png");if(G!=null)return G(ne,ie)})},G!=null&&(B.onerror=G),B.src=k.dataURL}},{key:"processQueue",value:function(){var k=this.options.parallelUploads,w=this.getUploadingFiles().length,P=w;if(!(w>=k)){var R=this.getQueuedFiles();if(R.length>0){if(this.options.uploadMultiple)return this.processFiles(R.slice(0,k-w));for(;P<k;){if(!R.length)return;this.processFile(R.shift()),P++}}}}},{key:"processFile",value:function(k){return this.processFiles([k])}},{key:"processFiles",value:function(k){var w=S(k),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;R.processing=!0,R.status=I.UPLOADING,this.emit("processing",R)}}catch(W){w.e(W)}finally{w.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",k),this.uploadFiles(k)}},{key:"_getFilesWithXhr",value:function(k){return this.files.filter(function(w){return w.xhr===k}).map(function(w){return w})}},{key:"cancelUpload",value:function(k){if(k.status===I.UPLOADING){var w=this._getFilesWithXhr(k.xhr),P=S(w),R;try{for(P.s();!(R=P.n()).done;){var W=R.value;W.status=I.CANCELED}}catch(B){P.e(B)}finally{P.f()}typeof k.xhr<"u"&&k.xhr.abort();var G=S(w),A;try{for(G.s();!(A=G.n()).done;){var x=A.value;this.emit("canceled",x)}}catch(B){G.e(B)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",w)}else(k.status===I.ADDED||k.status===I.QUEUED)&&(k.status=I.CANCELED,this.emit("canceled",k),this.options.uploadMultiple&&this.emit("canceledmultiple",[k]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(k){if(typeof k=="function"){for(var w=arguments.length,P=new Array(w>1?w-1:0),R=1;R<w;R++)P[R-1]=arguments[R];return k.apply(this,P)}return k}},{key:"uploadFile",value:function(k){return this.uploadFiles([k])}},{key:"uploadFiles",value:function(k){var w=this;this._transformFiles(k,function(P){if(w.options.chunking){var R=P[0];k[0].upload.chunked=w.options.chunking&&(w.options.forceChunking||R.size>w.options.chunkSize),k[0].upload.totalChunkCount=Math.ceil(R.size/w.options.chunkSize)}if(k[0].upload.chunked){var W=k[0],G=P[0];W.upload.chunks=[];var A=function(){for(var ee=0;W.upload.chunks[ee]!==void 0;)ee++;if(!(ee>=W.upload.totalChunkCount)){var ie=ee*w.options.chunkSize,Z=Math.min(ie+w.options.chunkSize,G.size),ne={name:w._getParamName(0),data:G.webkitSlice?G.webkitSlice(ie,Z):G.slice(ie,Z),filename:W.upload.filename,chunkIndex:ee};W.upload.chunks[ee]={file:W,index:ee,dataBlock:ne,status:I.UPLOADING,progress:0,retries:0},w._uploadData(k,[ne])}};if(W.upload.finishedChunkUpload=function(X,ee){var ie=!0;X.status=I.SUCCESS,X.dataBlock=null,X.xhr=null;for(var Z=0;Z<W.upload.totalChunkCount;Z++){if(W.upload.chunks[Z]===void 0)return A();W.upload.chunks[Z].status!==I.SUCCESS&&(ie=!1)}ie&&w.options.chunksUploaded(W,function(){w._finished(k,ee,null)})},w.options.parallelChunkUploads)for(var x=0;x<W.upload.totalChunkCount;x++)A();else A()}else{for(var B=[],Q=0;Q<k.length;Q++)B[Q]={name:w._getParamName(Q),data:P[Q],filename:k[Q].upload.filename};w._uploadData(k,B)}})}},{key:"_getChunk",value:function(k,w){for(var P=0;P<k.upload.totalChunkCount;P++)if(k.upload.chunks[P]!==void 0&&k.upload.chunks[P].xhr===w)return k.upload.chunks[P]}},{key:"_uploadData",value:function(k,w){var P=this,R=new XMLHttpRequest,W=S(k),G;try{for(W.s();!(G=W.n()).done;){var A=G.value;A.xhr=R}}catch(Be){W.e(Be)}finally{W.f()}k[0].upload.chunked&&(k[0].upload.chunks[w[0].chunkIndex].xhr=R);var x=this.resolveOption(this.options.method,k),B=this.resolveOption(this.options.url,k);R.open(x,B,!0);var Q=this.resolveOption(this.options.timeout,k);Q&&(R.timeout=this.resolveOption(this.options.timeout,k)),R.withCredentials=!!this.options.withCredentials,R.onload=function(Be){P._finishedUploading(k,R,Be)},R.ontimeout=function(){P._handleUploadError(k,R,"Request timedout after ".concat(P.options.timeout/1e3," seconds"))},R.onerror=function(){P._handleUploadError(k,R)};var X=R.upload!=null?R.upload:R;X.onprogress=function(Be){return P._updateFilesUploadProgress(k,R,Be)};var ee={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&I.extend(ee,this.options.headers);for(var ie in ee){var Z=ee[ie];Z&&R.setRequestHeader(ie,Z)}var ne=new FormData;if(this.options.params){var we=this.options.params;typeof we=="function"&&(we=we.call(this,k,R,k[0].upload.chunked?this._getChunk(k[0],R):null));for(var _e in we){var Ne=we[_e];if(Array.isArray(Ne))for(var Xe=0;Xe<Ne.length;Xe++)ne.append(_e,Ne[Xe]);else ne.append(_e,Ne)}}var ht=S(k),qe;try{for(ht.s();!(qe=ht.n()).done;){var fr=qe.value;this.emit("sending",fr,R,ne)}}catch(Be){ht.e(Be)}finally{ht.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",k,R,ne),this._addFormElementData(ne);for(var gn=0;gn<w.length;gn++){var Qe=w[gn];ne.append(Qe.name,Qe.data,Qe.filename)}this.submitRequest(R,ne,k)}},{key:"_transformFiles",value:function(k,w){for(var P=this,R=[],W=0,G=function(B){P.options.transformFile.call(P,k[B],function(Q){R[B]=Q,++W===k.length&&w(R)})},A=0;A<k.length;A++)G(A)}},{key:"_addFormElementData",value:function(k){if(this.element.tagName==="FORM"){var w=S(this.element.querySelectorAll("input, textarea, select, button")),P;try{for(w.s();!(P=w.n()).done;){var R=P.value,W=R.getAttribute("name"),G=R.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof W>"u"||W===null))if(R.tagName==="SELECT"&&R.hasAttribute("multiple")){var A=S(R.options,!0),x;try{for(A.s();!(x=A.n()).done;){var B=x.value;B.selected&&k.append(W,B.value)}}catch(Q){A.e(Q)}finally{A.f()}}else(!G||G!=="checkbox"&&G!=="radio"||R.checked)&&k.append(W,R.value)}}catch(Q){w.e(Q)}finally{w.f()}}}},{key:"_updateFilesUploadProgress",value:function(k,w,P){if(k[0].upload.chunked){var A=k[0],x=this._getChunk(A,w);P?(x.progress=100*P.loaded/P.total,x.total=P.total,x.bytesSent=P.loaded):(x.progress=100,x.bytesSent=x.total),A.upload.progress=0,A.upload.total=0,A.upload.bytesSent=0;for(var B=0;B<A.upload.totalChunkCount;B++)A.upload.chunks[B]&&typeof A.upload.chunks[B].progress<"u"&&(A.upload.progress+=A.upload.chunks[B].progress,A.upload.total+=A.upload.chunks[B].total,A.upload.bytesSent+=A.upload.chunks[B].bytesSent);A.upload.progress=A.upload.progress/A.upload.totalChunkCount,this.emit("uploadprogress",A,A.upload.progress,A.upload.bytesSent)}else{var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(P?(G.upload.progress=100*P.loaded/P.total,G.upload.total=P.total,G.upload.bytesSent=P.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(Q){R.e(Q)}finally{R.f()}}}},{key:"_finishedUploading",value:function(k,w,P){var R;if(k[0].status!==I.CANCELED&&w.readyState===4){if(w.responseType!=="arraybuffer"&&w.responseType!=="blob"&&(R=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json")))try{R=JSON.parse(R)}catch(W){P=W,R="Invalid JSON response from server."}this._updateFilesUploadProgress(k,w),200<=w.status&&w.status<300?k[0].upload.chunked?k[0].upload.finishedChunkUpload(this._getChunk(k[0],w),R):this._finished(k,R,P):this._handleUploadError(k,w,R)}}},{key:"_handleUploadError",value:function(k,w,P){if(k[0].status!==I.CANCELED){if(k[0].upload.chunked&&this.options.retryChunks){var R=this._getChunk(k[0],w);if(R.retries++<this.options.retryChunksLimit){this._uploadData(k,[R.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(k,P||this.options.dictResponseError.replace("{{statusCode}}",w.status),w)}}},{key:"submitRequest",value:function(k,w,P){if(k.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}k.send(w)}},{key:"_finished",value:function(k,w,P){var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.status=I.SUCCESS,this.emit("success",G,w,P),this.emit("complete",G)}}catch(A){R.e(A)}finally{R.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",k,w,P),this.emit("completemultiple",k)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(k,w,P){var R=S(k),W;try{for(R.s();!(W=R.n()).done;){var G=W.value;G.status=I.ERROR,this.emit("error",G,w,P),this.emit("complete",G)}}catch(A){R.e(A)}finally{R.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",k,w,P),this.emit("completemultiple",k)),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(k){for(var w=arguments.length,P=new Array(w>1?w-1:0),R=1;R<w;R++)P[R-1]=arguments[R];for(var W=0,G=P;W<G.length;W++){var A=G[W];for(var x in A){var B=A[x];k[x]=B}}return k}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(k){var w=Math.random()*16|0,P=k==="x"?w:w&3|8;return P.toString(16)})}}]),I})(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(N){if(N.getAttribute("id"))return U.options[te(N.getAttribute("id"))]},U.instances=[],U.forElement=function(N){if(typeof N=="string"&&(N=document.querySelector(N)),N?.dropzone==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 N.dropzone},U.autoDiscover=!0,U.discover=function(){var N;if(document.querySelectorAll)N=document.querySelectorAll(".dropzone");else{N=[];var M=function(O){return(function(){var k=[],w=S(O),P;try{for(w.s();!(P=w.n()).done;){var R=P.value;/(^| )dropzone($| )/.test(R.className)?k.push(N.push(R)):k.push(void 0)}}catch(W){w.e(W)}finally{w.f()}return k})()};M(document.getElementsByTagName("div")),M(document.getElementsByTagName("form"))}return(function(){var I=[],O=S(N),k;try{for(O.s();!(k=O.n()).done;){var w=k.value;U.optionsForElement(w)!==!1?I.push(new U(w)):I.push(void 0)}}catch(P){O.e(P)}finally{O.f()}return I})()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var N=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))N=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var M=S(U.blockedBrowsers),I;try{for(M.s();!(I=M.n()).done;){var O=I.value;if(O.test(navigator.userAgent)){N=!1;continue}}}catch(k){M.e(k)}finally{M.f()}}else N=!1;return N},U.dataURItoBlob=function(N){for(var M=atob(N.split(",")[1]),I=N.split(",")[0].split(":")[1].split(";")[0],O=new ArrayBuffer(M.length),k=new Uint8Array(O),w=0,P=M.length,R=0<=P;R?w<=P:w>=P;R?w++:w--)k[w]=M.charCodeAt(w);return new Blob([O],{type:I})};var q=function(M,I){return M.filter(function(O){return O!==I}).map(function(O){return O})},te=function(M){return M.replace(/[\-_](\w)/g,function(I){return I.charAt(1).toUpperCase()})};U.createElement=function(N){var M=document.createElement("div");return M.innerHTML=N,M.childNodes[0]},U.elementInside=function(N,M){if(N===M)return!0;for(;N=N.parentNode;)if(N===M)return!0;return!1},U.getElement=function(N,M){var I;if(typeof N=="string"?I=document.querySelector(N):N.nodeType!=null&&(I=N),I==null)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector or a plain HTML element."));return I},U.getElements=function(N,M){var I,O;if(N instanceof Array){O=[];try{var k=S(N,!0),w;try{for(k.s();!(w=k.n()).done;)I=w.value,O.push(this.getElement(I,M))}catch(W){k.e(W)}finally{k.f()}}catch{O=null}}else if(typeof N=="string"){O=[];var P=S(document.querySelectorAll(N)),R;try{for(P.s();!(R=P.n()).done;)I=R.value,O.push(I)}catch(W){P.e(W)}finally{P.f()}}else N.nodeType!=null&&(O=[N]);if(O==null||!O.length)throw new Error("Invalid `".concat(M,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return O},U.confirm=function(N,M,I){if(window.confirm(N))return M();if(I!=null)return I()},U.isValidFile=function(N,M){if(!M)return!0;M=M.split(",");var I=N.type,O=I.replace(/\/.*$/,""),k=S(M),w;try{for(k.s();!(w=k.n()).done;){var P=w.value;if(P=P.trim(),P.charAt(0)==="."){if(N.name.toLowerCase().indexOf(P.toLowerCase(),N.name.length-P.length)!==-1)return!0}else if(/\/\*$/.test(P)){if(O===P.replace(/\/.*$/,""))return!0}else if(I===P)return!0}}catch(R){k.e(R)}finally{k.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(N){return this.each(function(){return new U(this,N)})}),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 se=function(M){M.naturalWidth;var I=M.naturalHeight,O=document.createElement("canvas");O.width=1,O.height=I;var k=O.getContext("2d");k.drawImage(M,0,0);for(var w=k.getImageData(1,0,1,I),P=w.data,R=0,W=I,G=I;G>R;){var A=P[(G-1)*4+3];A===0?W=G:R=G,G=W+R>>1}var x=G/I;return x===0?1:x},he=function(M,I,O,k,w,P,R,W,G,A){var x=se(I);return M.drawImage(I,O,k,w,P,R,W,G,A/x)},pe=(function(){function N(){D(this,N)}return V(N,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(I){for(var O="",k=void 0,w=void 0,P="",R=void 0,W=void 0,G=void 0,A="",x=0;k=I[x++],w=I[x++],P=I[x++],R=k>>2,W=(k&3)<<4|w>>4,G=(w&15)<<2|P>>6,A=P&63,isNaN(w)?G=A=64:isNaN(P)&&(A=64),O=O+this.KEY_STR.charAt(R)+this.KEY_STR.charAt(W)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(A),k=w=P="",R=W=G=A="",x<I.length;);return O}},{key:"restore",value:function(I,O){if(!I.match("data:image/jpeg;base64,"))return O;var k=this.decode64(I.replace("data:image/jpeg;base64,","")),w=this.slice2Segments(k),P=this.exifManipulation(O,w);return"data:image/jpeg;base64,".concat(this.encode64(P))}},{key:"exifManipulation",value:function(I,O){var k=this.getExifArray(O),w=this.insertExif(I,k),P=new Uint8Array(w);return P}},{key:"getExifArray",value:function(I){for(var O=void 0,k=0;k<I.length;){if(O=I[k],O[0]===255&O[1]===225)return O;k++}return[]}},{key:"insertExif",value:function(I,O){var k=I.replace("data:image/jpeg;base64,",""),w=this.decode64(k),P=w.indexOf(255,3),R=w.slice(0,P),W=w.slice(P),G=R;return G=G.concat(O),G=G.concat(W),G}},{key:"slice2Segments",value:function(I){for(var O=0,k=[];;){var w;if(I[O]===255&I[O+1]===218)break;if(I[O]===255&I[O+1]===216)O+=2;else{w=I[O+2]*256+I[O+3];var P=O+w+2,R=I.slice(O,P);k.push(R),O=P}if(O>I.length)break}return k}},{key:"decode64",value:function(I){var O=void 0,k=void 0,w="",P=void 0,R=void 0,W=void 0,G="",A=0,x=[],B=/[^A-Za-z0-9\+\/\=]/g;for(B.exec(I)&&console.warn(`There were invalid base64 characters in the input text.
1179
1179
  Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
1180
1180
  Expect errors in decoding.`),I=I.replace(/[^A-Za-z0-9\+\/\=]/g,"");P=this.KEY_STR.indexOf(I.charAt(A++)),R=this.KEY_STR.indexOf(I.charAt(A++)),W=this.KEY_STR.indexOf(I.charAt(A++)),G=this.KEY_STR.indexOf(I.charAt(A++)),O=P<<2|R>>4,k=(R&15)<<4|W>>2,w=(W&3)<<6|G,x.push(O),W!==64&&x.push(k),G!==64&&x.push(w),O=k=w="",P=R=W=G="",A<I.length;);return x}}]),N})();pe.initClass();var ye=function(M,I){var O=!1,k=!0,w=M.document,P=w.documentElement,R=w.addEventListener?"addEventListener":"attachEvent",W=w.addEventListener?"removeEventListener":"detachEvent",G=w.addEventListener?"":"on",A=function B(Q){if(!(Q.type==="readystatechange"&&w.readyState!=="complete")&&((Q.type==="load"?M:w)[W](G+Q.type,B,!1),!O&&(O=!0)))return I.call(M,Q.type||Q)},x=function B(){try{P.doScroll("left")}catch{setTimeout(B,50);return}return A("poll")};if(w.readyState!=="complete"){if(w.createEventObject&&P.doScroll){try{k=!M.frameElement}catch{}k&&x()}return w[R](G+"DOMContentLoaded",A,!1),w[R](G+"readystatechange",A,!1),M[R](G+"load",A,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},ye(window,U._autoDiscoverFunction);function Ce(N,M){return typeof N<"u"&&N!==null?M(N):void 0}function Ae(N,M,I){if(typeof N<"u"&&N!==null&&typeof N[M]=="function")return I(N,M)}window.Dropzone=U;var ge=U})(),i})()})})(Vc)),Vc.exports}var hS=fS();const t1=Ci(hS),pS={class:"fallback"},mS={for:"file"},gS={class:"dz-message","data-dz-message":""},vS={id:"bd-dropzone-theme",style:{display:"none"}},yS={class:"dz-preview dz-file-preview"},bS={class:"dz-details"},CS={class:"dz-success-mark"},ES={class:"dz-error-message text-danger"},yf=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=e,o=l.computed(()=>({variant:Yl.PRIMARY,size:lt.SM})),i=Oo(n,"modelValue",r);let s=null;t1.autoDiscover=!1,l.watch(()=>n.modelValue,()=>{c()}),l.onMounted(()=>{document.getElementById("dropzone")&&a()});const c=()=>{s&&(s.destroy(),a())},a=()=>{s=new t1("#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:document.querySelector("#bd-dropzone-theme")?.innerHTML}),s.on("error",d),s.on("success",u),s.on("removedfile",h)},u=function(m,g){i.value.push({UUID:m.upload?.uuid,CorrelationId:g.CorrelationId,Naam:g.Naam}),f(m)},d=function(m){f(m)},f=function(m){const g=m.name;if(!(g.endsWith(".png")||g.endsWith(".jpg")||g.endsWith(".jpeg")||g.endsWith(".gif"))){const v=m.previewElement.getElementsByClassName("icon-file"),y=m.previewElement.getElementsByClassName("dz-image");v[0].classList.remove("d-none"),y[0].classList.add("d-none")}},h=function(m){const g=i.value.findIndex(v=>v?.UUID===m.upload?.uuid);g!==-1&&i.value.splice(g,1)},p=l.computed(()=>n.tag??"form");return(m,g)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(p.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:l.withCtx(()=>[l.createElementVNode("div",pS,[g[0]||(g[0]=l.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1)),g[1]||(g[1]=l.createTextVNode(" test ",-1)),l.createElementVNode("label",mS,[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)])]),l.createElementVNode("div",gS,[l.createVNode(Re,l.normalizeProps(l.guardReactiveProps(o.value)),{default:l.withCtx(()=>[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),l.createElementVNode("div",vS,[l.createElementVNode("div",yS,[l.createElementVNode("div",bS,[g[2]||(g[2]=l.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1)),l.createVNode(l.unref(jd),{"data-dz-thumbnail":"",class:"d-none"}),g[3]||(g[3]=l.createElementVNode("div",{class:"dz-filename"},[l.createElementVNode("small",{"data-dz-name":""})],-1)),l.createVNode(Re,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:l.withCtx(()=>[l.createVNode(l.unref(Ps))]),_:1})]),g[5]||(g[5]=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)),l.createElementVNode("div",CS,[l.createVNode(l.unref(gi))]),l.createElementVNode("div",ES,[l.createVNode(l.unref(Wl)),g[4]||(g[4]=l.createElementVNode("small",{"data-dz-errormessage":""},null,-1))])])])],64))}});function Et(t){this.content=t}Et.prototype={constructor:Et,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 Et(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 Et(n)},addToStart:function(t,e){return new Et([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Et(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 Et(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=Et.from(t),t.size?new Et(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Et.from(t),t.size?new Et(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Et.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}};Et.from=function(t){if(t instanceof Et)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Et(e)};function Iv(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=Iv(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function _v(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 u=0,d=Math.min(s.text.length,c.text.length);for(;u<d&&s.text[s.text.length-u-1]==c.text[c.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let u=_v(s.content,c.content,n-1,r-1);if(u)return u}n-=a,r-=a}}class le{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],u=c+a.nodeSize;if(u>e&&r(a,o+c,i||null,s)!==!1&&a.content.size){let d=c+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,n-d),r,o+d)}c=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,a)=>{let u=c.isText?c.text.slice(Math.max(e,a)-a,n-a):c.isLeaf?o?typeof o=="function"?o(c):o:c.type.spec.leafText?c.type.spec.leafText(c):"":"";c.isBlock&&(c.isLeaf&&u||c.isTextblock)&&r&&(s?s=!1:i+=r),i+=u},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 le(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 le(r,o)}cutByIndex(e,n){return e==n?le.empty:e==0&&n==this.content.length?this:new le(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 le(o,i)}addToStart(e){return new le([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new le(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 Iv(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return _v(this,e,n,r)}findIndex(e){if(e==0)return la(0,e);if(e==this.size)return la(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let o=this.child(n),i=r+o.nodeSize;if(i>=e)return i==e?la(n+1,i):la(n,r);r=i}}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 le.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new le(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return le.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 le(n||e,r)}static from(e){if(!e)return le.empty;if(e instanceof le)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new le([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}le.empty=new le([],0);const $c={index:0,offset:0};function la(t,e){return $c.index=t,$c.offset=e,$c}function Ja(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(!Ja(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ja(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let Ke=class Qu{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&&Ja(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`);let o=r.create(n.attrs);return r.checkAttrs(o.attrs),o}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 Qu.none;if(e instanceof Qu)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};Ke.none=[];class Xa extends Error{}class ve{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=Ov(this.content,e+this.openStart,n);return r&&new ve(r,this.openStart,this.openEnd)}removeBetween(e,n){return new ve(Nv(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 ve.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 ve(le.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 ve(e,r,o)}}ve.empty=new ve(le.empty,0,0);function Nv(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(Nv(i.content,e-o-1,n-o-1)))}function Ov(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=Ov(s.content,e-i-1,n,s);return c&&t.replaceChild(o,s.copy(c))}function kS(t,e,n){if(n.openStart>t.depth)throw new Xa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Xa("Inconsistent open depths");return Mv(t,e,n,0)}function Mv(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=Mv(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}=wS(n,t);return mo(i,Dv(t,s,c,e,r))}else return mo(i,qa(t,e,r))}function Lv(t,e){if(!e.type.compatibleContent(t.type))throw new Xa("Cannot join "+e.type.name+" onto "+t.type.name)}function Zu(t,e,n){let r=t.node(n);return Lv(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 ji(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 Dv(t,e,n,r,o){let i=t.depth>o&&Zu(t,e,o+1),s=r.depth>o&&Zu(n,r,o+1),c=[];return ji(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(Lv(i,s),po(mo(i,Dv(t,e,n,r,o+1)),c)):(i&&po(mo(i,qa(t,e,o+1)),c),ji(e,n,o,c),s&&po(mo(s,qa(n,r,o+1)),c)),ji(r,null,o,c),new le(c)}function qa(t,e,n){let r=[];if(ji(null,t,n,r),t.depth>n){let o=Zu(t,e,n+1);po(mo(o,qa(t,e,n+1)),r)}return ji(e,null,n,r),new le(r)}function wS(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(le.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class Es{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 Ke.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 el(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),u=i-a;if(r.push(s,c,o+a),!u||(s=s.child(c),s.isText))break;i=u-1,o+=a+1}return new Es(n,r,i)}static resolveCached(e,n){let r=n1.get(e);if(r)for(let i=0;i<r.elts.length;i++){let s=r.elts[i];if(s.pos==n)return s}else n1.set(e,r=new SS);let o=r.elts[r.i]=Es.resolve(e,n);return r.i=(r.i+1)%AS,o}}class SS{constructor(){this.elts=[],this.i=0}}const AS=12,n1=new WeakMap;class el{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 xS=Object.create(null);let _r=class Ju{constructor(e,n,r,o=Ke.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||le.empty}get children(){return this.content.content}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&&Ja(this.attrs,n||e.defaultAttrs||xS)&&Ke.sameSet(this.marks,r||Ke.none)}copy(e=null){return e==this.content?this:new Ju(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ju(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 ve.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),u=o.node(s).content.cut(o.pos-c,i.pos-c);return new ve(u,o.depth-s,i.depth-s)}replace(e,n,r){return kS(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 Es.resolveCached(this,e)}resolveNoCache(e){return Es.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()+")"),Pv(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=le.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),this.type.checkAttrs(this.attrs);let e=Ke.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Ke.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;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=le.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,o,r);return i.type.checkAttrs(i.attrs),i}};_r.prototype.text=void 0;class tl extends _r{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):Pv(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 tl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new tl(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 Pv(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class So{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new TS(e,n);if(r.next==null)return So.empty;let o=Bv(r);r.next&&r.err("Unexpected trailing text");let i=DS(LS(o));return PS(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 le.from(c.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:d,next:f}=s.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(d));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(`
1181
1181
  `)}}So.empty=new So(!0);class TS{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 Bv(t){let e=[];do e.push(IS(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function IS(t){let e=[];do e.push(_S(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function _S(t){let e=MS(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=NS(t,e);else break;return e}function r1(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function NS(t,e){let n=r1(t),r=n;return t.eat(",")&&(t.next!="}"?r=r1(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function OS(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.isInGroup(e)&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function MS(t){if(t.eat("(")){let e=Bv(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=OS(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 LS(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,c,a){let u={term:a,to:c};return e[s].push(u),u}function o(s,c){s.forEach(a=>a.to=c)}function i(s,c){if(s.type=="choice")return s.exprs.reduce((a,u)=>a.concat(i(u,c)),[]);if(s.type=="seq")for(let a=0;;a++){let u=i(s.exprs[a],c);if(a==s.exprs.length-1)return u;o(u,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 u=0;u<s.min;u++){let d=n();o(i(s.expr,a),d),a=d}if(s.max==-1)o(i(s.expr,a),a);else for(let u=s.min;u<s.max;u++){let d=n();r(a,d),o(i(s.expr,a),d),a=d}return[r(a)]}else{if(s.type=="name")return[r(c,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Rv(t,e){return e-t}function o1(t,e){let n=[];return r(e),n.sort(Rv);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 DS(t){let e=Object.create(null);return n(o1(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:c,to:a})=>{if(!c)return;let u;for(let d=0;d<o.length;d++)o[d][0]==c&&(u=o[d][1]);o1(t,a).forEach(d=>{u||o.push([c,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[r.join(",")]=new So(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let c=o[s][1].sort(Rv);i.next.push({type:o[s][0],next:e[c.join(",")]||n(c)})}return i}}function PS(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:u}=o.next[c];s.push(a.name),i&&!(a.isText||a.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Vv(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 $v(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 Fv(t,e,n,r){for(let o in e)if(!(o in t))throw new RangeError(`Unsupported attribute ${o} for ${n} of type ${o}`);for(let o in t){let i=t[o];i.validate&&i.validate(e[o])}}function zv(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new RS(t,r,e[r]);return n}let i1=class Uv{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=zv(e,r.attrs),this.defaultAttrs=Vv(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==So.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}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:$v(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new _r(this,this.computeAttrs(e),le.from(n),Ke.setFrom(r))}createChecked(e=null,n,r){return n=le.from(n),this.checkContent(n),new _r(this,this.computeAttrs(e),n,Ke.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=le.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(le.empty,!0);return i?new _r(this,e,n.append(i),Ke.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)}`)}checkAttrs(e){Fv(this.attrs,e,"node",this.name)}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:Ke.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new Uv(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}};function BS(t,e,n){let r=n.split("|");return o=>{let i=o===null?"null":typeof o;if(r.indexOf(i)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${i}`)}}class RS{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?BS(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class tc{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=zv(e,o.attrs),this.excluded=null;let i=Vv(this.attrs);this.instance=i?new Ke(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ke(this,$v(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new tc(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]}checkAttrs(e){Fv(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Hv{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Et.from(e.nodes),n.marks=Et.from(e.marks||{}),this.nodes=i1.compile(this.spec.nodes,this),this.marks=tc.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;if(i.contentMatch=r[s]||(r[s]=So.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=c=="_"?null:c?s1(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==""?[]:s1(this,s.split(" "))}this.nodeFromJSON=o=>_r.fromJSON(this,o),this.markFromJSON=o=>Ke.fromJSON(this,o),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 i1){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 tl(r,r.defaultAttrs,e,Ke.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function s1(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}function VS(t){return t.tag!=null}function $S(t){return t.style!=null}class Nr{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(o=>{if(VS(o))this.tags.push(o);else if($S(o)){let i=/[^=]*/.exec(o.style)[0];r.indexOf(i)<0&&r.push(i),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let i=e.nodes[o.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let r=new l1(this,n,!1);return r.addAll(e,Ke.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new l1(this,n,!0);return r.addAll(e,Ke.none,n.from,n.to),ve.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(US(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=c1(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=c1(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Nr(e,Nr.schemaRules(e)))}}const jv={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},FS={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Wv={ol:!0,ul:!0},ks=1,Xu=2,Wi=4;function a1(t,e,n){return e!=null?(e?ks:0)|(e==="full"?Xu:0):t&&t.whitespace=="pre"?ks|Xu:n&~Wi}class ca{constructor(e,n,r,o,i,s){this.type=e,this.attrs=n,this.marks=r,this.solid=o,this.options=s,this.content=[],this.activeMarks=Ke.none,this.match=i||(s&Wi?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(le.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&ks)){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=le.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(le.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!jv.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class l1{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=n.topNode,i,s=a1(null,n.preserveWhitespace,0)|(r?Wi:0);o?i=new ca(o.type,o.attrs,Ke.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new ca(null,null,Ke.none,!0,null,s):i=new ca(e.schema.topNodeType,null,Ke.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,o=this.top,i=o.options&Xu?"full":this.localPreserveWS||(o.options&ks)>0,{schema:s}=this.parser;if(i==="full"||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if(i==="full")r=r.replace(/\r\n?/g,`
1182
1182
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let c=r.split(/\r?\n|\r/);for(let a=0;a<c.length;a++)a&&this.insertNode(s.linebreakReplacement.create(),n,!0),c[a]&&this.insertNode(s.text(c[a]),n,!/\S/.test(c[a]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let c=o.content[o.content.length-1],a=e.previousSibling;(!c||a&&a.nodeName=="BR"||c.isText&&/[ \t\r\n\u000c]$/.test(c.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let o=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),c;Wv.hasOwnProperty(s)&&this.parser.normalizeLists&&zS(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(c=this.parser.matchTag(e,this,r));e:if(a?a.ignore:FS.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let u,d=this.needsBlock;if(jv.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),u=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let f=a&&a.skip?n:this.readStyles(e,n);f&&this.addAll(e,f),u&&this.sync(i),this.needsBlock=d}else{let u=this.readStyles(e,n);u&&this.addElementByRule(e,a,u,a.consuming===!1?c:void 0)}this.localPreserveWS=o}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
1183
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let c=void 0;;){let a=this.parser.matchStyle(i,s,this,c);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(u=>!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)c=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let c=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));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,r),this.findAround(e,a,!1)}i&&this.sync(c)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,c=o==null?null:e.childNodes[o];s!=c;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,c=0;s>=0;s--){let a=this.nodes[s],u=a.findWrapping(e);if(u&&(!o||o.length>u.length+c)&&(o=u,i=a,!u.length))break;if(a.solid){if(r)break;c+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let o=this.findPlace(e,n,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=Ke.none;for(let c of o.concat(e.marks))(i.type?i.type.allowsMarkType(c.type):u1(c.type,e.type))&&(s=c.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let c=a1(e,i,s.options);s.options&Wi&&s.content.length==0&&(c|=Wi);let a=Ke.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):u1(u.type,e))?(a=u.addToSet(a),!1):!0),this.nodes.push(new ca(e,n,a,o,null,c)),this.open++,r}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;this.localPreserveWS&&(this.nodes[n].options|=ks)}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 u=n[c];if(u==""){if(c==n.length-1||c==0)continue;for(;a>=i;a--)if(s(c-1,a))return!0;return!1}else{let d=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!d||d.name!=u&&!d.isInGroup(u))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}}}function zS(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Wv.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function US(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function c1(t){let e={};for(let n in t)e[n]=t[n];return e}function u1(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:u,next:d}=c.edge(a);if(u==e||i.indexOf(d)<0&&s(d))return!0}};if(s(o.contentMatch))return!0}}class Mo{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Fc(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 u=s.marks[a];if(!this.marks[u.type.name]){a++;continue}if(!u.eq(i[c][0])||u.type.spec.spanning===!1)break;c++,a++}for(;c<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let u=s.marks[a++],d=this.serializeMark(u,s.isInline,n);d&&(i.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=La(Fc(n),this.nodes[e.type.name](e),null,e.attrs);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&&La(Fc(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return La(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Mo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=d1(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return d1(e.marks)}}function d1(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Fc(t){return t.document||window.document}const f1=new WeakMap;function HS(t){let e=f1.get(t);return e===void 0&&f1.set(t,e=jS(t)),e}function jS(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o<r.length;o++)n(r[o]);else for(let o in r)n(r[o])}return n(t),e}function La(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let o=e[0],i;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=HS(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let c,a=n?t.createElementNS(n,o):t.createElement(o),u=e[1],d=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){d=2;for(let f in u)if(u[f]!=null){let h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),u[f]):f=="style"&&a.style?a.style.cssText=u[f]:a.setAttribute(f,u[f])}}for(let f=d;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:m}=La(t,h,n,r);if(a.appendChild(p),m){if(c)throw new RangeError("Multiple content holes");c=m}}}return{dom:a,contentDOM:c}}const Kv=65535,Yv=Math.pow(2,16);function WS(t,e){return t+e*Yv}function h1(t){return t&Kv}function KS(t){return(t-(t&Kv))/Yv}const Gv=1,Qv=2,Da=4,Zv=8;class qu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Zv)>0}get deletedBefore(){return(this.delInfo&(Gv|Da))>0}get deletedAfter(){return(this.delInfo&(Qv|Da))>0}get deletedAcross(){return(this.delInfo&Da)>0}}class Qt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Qt.empty)return Qt.empty}recover(e){let n=0,r=h1(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+KS(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 u=this.ranges[c+i],d=this.ranges[c+s],f=a+u;if(e<=f){let h=u?e==a?-1:e==f?1:n:n,p=a+o+(h<0?0:d);if(r)return p;let m=e==(n<0?a:f)?null:WS(c/3,e-a),g=e==a?Qv:e==f?Gv:Da;return(n<0?e!=a:e!=f)&&(g|=Zv),new qu(p,g,m)}o+=d-u}return r?e+o:new qu(e+o,0,null)}touches(e,n){let r=0,o=h1(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 u=this.ranges[c+i],d=a+u;if(e<=d&&c==o*3)return!0;r+=this.ranges[c+s]-u}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),u=this.ranges[o+n],d=this.ranges[o+r];e(c,c+u,a,a+d),i+=d-u}}invert(){return new Qt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Qt.empty:new Qt(e<0?[0,-e,0]:[0,0,e])}}Qt.empty=new Qt([]);class ws{constructor(e,n,r=0,o=e?e.length:0){this.mirror=n,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ws(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),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 ws;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 qu(e,o,null)}}const zc=Object.create(null);class Ot{getMap(){return Qt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=zc[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 zc)throw new RangeError("Duplicate use of step JSON ID "+e);return zc[e]=n,n.prototype.jsonID=e,n}}class ut{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ut(e,null)}static fail(e){return new ut(null,e)}static fromReplace(e,n,r,o){try{return ut.ok(e.replace(n,r,o))}catch(i){if(i instanceof Xa)return ut.fail(i.message);throw i}}}function bf(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(bf(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return le.fromArray(r)}class Sr extends Ot{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 ve(bf(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 ut.fromReplace(e,this.from,this.to,i)}invert(){return new kn(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 Sr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Sr(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 Sr(n.from,n.to,e.markFromJSON(n.mark))}}Ot.jsonID("addMark",Sr);class kn extends Ot{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 ve(bf(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ut.fromReplace(e,this.from,this.to,r)}invert(){return new Sr(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 kn(n.pos,r.pos,this.mark)}merge(e){return e instanceof kn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new kn(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 kn(n.from,n.to,e.markFromJSON(n.mark))}}Ot.jsonID("removeMark",kn);class Ar extends Ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ut.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ut.fromReplace(e,this.pos,this.pos+1,new ve(le.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 Ar(this.pos,n.marks[o]);return new Ar(this.pos,this.mark)}}return new Ao(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ar(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 Ar(n.pos,e.markFromJSON(n.mark))}}Ot.jsonID("addNodeMark",Ar);class Ao extends Ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ut.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ut.fromReplace(e,this.pos,this.pos+1,new ve(le.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ar(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ao(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 Ao(n.pos,e.markFromJSON(n.mark))}}Ot.jsonID("removeNodeMark",Ao);class mt extends Ot{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&ed(e,this.from,this.to)?ut.fail("Structure replace would overwrite content"):ut.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Qt([this.from,this.to-this.from,this.slice.size])}invert(e){return new mt(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 mt(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof mt)||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?ve.empty:new ve(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new mt(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?ve.empty:new ve(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new mt(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 mt(n.from,n.to,ve.fromJSON(e,n.slice),!!n.structure)}}Ot.jsonID("replace",mt);class yt extends Ot{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&&(ed(e,this.from,this.gapFrom)||ed(e,this.gapTo,this.to)))return ut.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ut.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ut.fromReplace(e,this.from,this.to,r):ut.fail("Content does not fit in gap")}getMap(){return new Qt([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 yt(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=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new yt(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 yt(n.from,n.to,n.gapFrom,n.gapTo,ve.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ot.jsonID("replaceAround",yt);function ed(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 YS(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(a,u,d)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(u,e),p=Math.min(u+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 kn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new Sr(h,p,r))}}),o.forEach(a=>t.step(a)),i.forEach(a=>t.step(a))}function GS(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 tc){let u=s.marks,d;for(;d=r.isInSet(u);)(a||(a=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(c+s.nodeSize,n);for(let d=0;d<a.length;d++){let f=a[d],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=u,h.step=i):o.push({style:f,from:Math.max(c,e),to:u,step:i})}}}),o.forEach(s=>t.step(new kn(s.from,s.to,s.style)))}function Cf(t,e,n,r=n.contentMatch,o=!0){let i=t.doc.nodeAt(e),s=[],c=e+1;for(let a=0;a<i.childCount;a++){let u=i.child(a),d=c+u.nodeSize,f=r.matchType(u.type);if(!f)s.push(new mt(c,d,ve.empty));else{r=f;for(let h=0;h<u.marks.length;h++)n.allowsMarkType(u.marks[h].type)||t.step(new kn(c,d,u.marks[h]));if(o&&u.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(u.text);)m||(m=new ve(le.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new mt(c+h.index,c+h.index+h[0].length,m))}}c=d}if(!r.validEnd){let a=r.fillBefore(le.empty,!0);t.replace(c,c,new ve(a,0,0))}for(let a=s.length-1;a>=0;a--)t.step(s[a])}function QS(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Ei(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,o=0,i=0;;--r){let s=t.$from.node(r),c=t.$from.index(r)+o,a=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(c,a,n))return r;if(r==0||s.type.spec.isolating||!QS(s,c,a))break;c&&(o=1),a<s.childCount&&(i=1)}return null}function ZS(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),a=s,u=c,d=le.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=le.from(r.node(m).copy(d)),f++):a--;let h=le.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=le.from(o.node(m).copy(h)),p++):u++;t.step(new yt(a,u,s,c,new ve(d.append(h),f,p),d.size-f,!0))}function Ef(t,e,n=null,r=t){let o=JS(t,e),i=o&&XS(r,e);return i?o.map(p1).concat({type:e,attrs:n}).concat(i.map(p1)):null}function p1(t){return{type:t,attrs:null}}function JS(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 XS(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 u=r;a&&u<o;u++)a=a.matchType(n.child(u).type);return!a||!a.validEnd?null:s}function qS(t,e,n){let r=le.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=le.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new yt(o,i,o,i,new ve(r,0,0),n.length,!0))}function eA(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)=>{let a=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,a)&&tA(t.doc,t.mapping.slice(i).map(c),r)){let u=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?u=!1:!p&&m&&(u=!0)}u===!1&&Xv(t,s,c,i),Cf(t,t.mapping.slice(i).map(c,1),r,void 0,u===null);let d=t.mapping.slice(i),f=d.map(c,1),h=d.map(c+s.nodeSize,1);return t.step(new yt(f,h,f+1,h-1,new ve(le.from(r.create(a,null,s.marks)),0,0),1,!0)),u===!0&&Jv(t,s,c,i),!1}})}function Jv(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let s,c=/\r?\n|\r/g;for(;s=c.exec(o.text);){let a=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Xv(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
1184
- `))}})}function tA(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function nA(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 yt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ve(le.from(s),0,0),1,!0))}function nr(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 u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),h=o.index(u);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[d+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[d]||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 rA(t,e,n=1,r){let o=t.doc.resolve(e),i=le.empty,s=le.empty;for(let c=o.depth,a=o.depth-n,u=n-1;c>a;c--,u--){i=le.from(o.node(c).copy(i));let d=r&&r[u];s=le.from(d?d.type.create(d.attrs,s):o.node(c).copy(s))}t.step(new mt(e,e,new ve(i.append(s),n,n),!0))}function Wr(t,e){let n=t.resolve(e),r=n.index();return qv(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function oA(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),s=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function qv(t,e){return!!(t&&e&&!t.isLeaf&&oA(t,e))}function nc(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&&qv(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 iA(t,e,n){let r=null,{linebreakReplacement:o}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(o&&s.inlineContent){let d=s.whitespace=="pre",f=!!s.contentMatch.matchType(o);d&&!f?r=!1:!d&&f&&(r=!0)}let c=t.steps.length;if(r===!1){let d=t.doc.resolve(e+n);Xv(t,d.node(),d.before(),c)}s.inlineContent&&Cf(t,e+n-1,s,i.node().contentMatchAt(i.index()),r==null);let a=t.mapping.slice(c),u=a.map(e-n);if(t.step(new mt(u,a.map(e+n,-1),ve.empty,!0)),r===!0){let d=t.doc.resolve(u);Jv(t,d.node(),d.before(),t.steps.length)}return t}function sA(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 e2(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),u=r.node(s),d=!1;if(i==1)d=u.canReplace(a,a,o);else{let f=u.contentMatchAt(a).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(a,a,f[0])}if(d)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function rc(t,e,n=e,r=ve.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return t2(o,i,r)?new mt(e,n,r):new aA(o,i,r).fit()}function t2(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class aA{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=le.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=le.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):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 ve(i,s,c);return e>-1?new yt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new mt(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=Uc(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:u}=this.frontier[c],d,f=null;if(n==1&&(s?u.matchType(s.type)||(f=u.fillBefore(le.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Uc(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ve(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=Uc(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new ve(Di(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new ve(Di(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,u=0,d=[],{match:f,type:h}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)d.push(o.child(g));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;u<c.childCount;){let g=c.child(u),v=f.matchType(g.type);if(!v)break;u++,(u>1||a==0||g.content.size)&&(f=v,d.push(n2(g.mark(h.allowedMarks(g.marks)),u==1?a:0,u==c.childCount?p:-1)))}let m=u==c.childCount;m||(p=-1),this.placed=Pi(this.placed,n,le.from(d)),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,v=c;g<p;g++){let y=v.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),v=y.content}this.unplaced=m?e==0?ve.empty:new ve(Di(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new ve(Di(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Hc(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=Hc(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:a,type:u}=this.frontier[c],d=Hc(e,c,u,a,!0);if(!d||d.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=Pi(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=Pi(this.placed,this.depth,le.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(le.empty,!0);n.childCount&&(this.placed=Pi(this.placed,this.frontier.length,n))}}function Di(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Di(t.firstChild.content,e-1,n)))}function Pi(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Pi(t.lastChild.content,e-1,n)))}function Uc(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function n2(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,n2(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(le.empty,!0)))),t.copy(r)}function Hc(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&&!lA(n,i.content,s)?c:null}function lA(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function cA(t){return t.spec.defining||t.spec.definingForContent}function uA(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(t2(o,i,r))return t.step(new mt(e,n,r));let s=o2(o,i);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),u=[],d=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(u.push(m),p==r.openStart)break;h=m.content}for(let h=d-1;h>=0;h--){let p=u[h],m=cA(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))d=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+d+1)%(r.openStart+1),m=u[p];if(m)for(let g=0;g<s.length;g++){let v=s[(g+a)%s.length],y=!0;v<0&&(y=!1,v=-v);let b=o.node(v-1),E=o.index(v-1);if(b.canReplaceWith(E,E,m.type,m.marks))return t.replace(o.before(v),y?i.after(v):n,new ve(r2(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 r2(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(r2(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(le.empty,!0))}return t}function dA(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=sA(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new ve(le.from(r),0,0))}function fA(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=o2(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&&r.start(s-1)==o.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),o.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function o2(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 Ot{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 ut.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 ut.fromReplace(e,this.pos,this.pos+1,new ve(le.from(o),0,n.isLeaf?0:1))}getMap(){return Qt.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)}}Ot.jsonID("attr",ti);class Ss extends Ot{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 ut.ok(r)}getMap(){return Qt.empty}invert(e){return new Ss(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 Ss(n.attr,n.value)}}Ot.jsonID("docAttr",Ss);let ii=class extends Error{};ii=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};ii.prototype=Object.create(Error.prototype);ii.prototype.constructor=ii;ii.prototype.name="TransformError";class i2{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ii(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}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let o=this.mapping.maps[r];r&&(e=o.map(e,1),n=o.map(n,-1)),o.forEach((i,s,c,a)=>{e=Math.min(e,c),n=Math.max(n,a)})}return e==1e9?null:{from:e,to:n}}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=ve.empty){let o=rc(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new ve(le.from(r),0,0))}delete(e,n){return this.replace(e,n,ve.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return uA(this,e,n,r),this}replaceRangeWith(e,n,r){return dA(this,e,n,r),this}deleteRange(e,n){return fA(this,e,n),this}lift(e,n){return ZS(this,e,n),this}join(e,n=1){return iA(this,e,n),this}wrap(e,n){return qS(this,e,n),this}setBlockType(e,n=e,r,o=null){return eA(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return nA(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 Ss(e,n)),this}addNodeMark(e,n){return this.step(new Ar(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof Ke)n.isInSet(r.marks)&&this.step(new Ao(e,n));else{let o=r.marks,i,s=[];for(;i=n.isInSet(o);)s.push(new Ao(e,i)),o=i.removeFromSet(o);for(let c=s.length-1;c>=0;c--)this.step(s[c])}return this}split(e,n=1,r){return rA(this,e,n,r),this}addMark(e,n,r){return YS(this,e,n,r),this}removeMark(e,n,r){return GS(this,e,n,r),this}clearIncompatible(e,n,r){return Cf(this,e,n,r),this}}const jc=Object.create(null);class Pe{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new hA(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=ve.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:u}=s[c],d=e.mapping.slice(i);e.replaceRange(d.map(a.pos),d.map(u.pos),c?ve.empty:n),c==0&&v1(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),u=a.map(s.pos),d=a.map(c.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),v1(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Me(e):Ko(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?Ko(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):Ko(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 Jt(e.node(0))}static atStart(e){return Ko(e,e,0,0,1)||new Jt(e)}static atEnd(e){return Ko(e,e,e.content.size,e.childCount,-1)||new Jt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=jc[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 jc)throw new RangeError("Duplicate use of selection JSON ID "+e);return jc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Me.between(this.$anchor,this.$head).getBookmark()}}Pe.prototype.visible=!0;class hA{constructor(e,n){this.$from=e,this.$to=n}}let m1=!1;function g1(t){!m1&&!t.parent.inlineContent&&(m1=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Me extends Pe{constructor(e,n=e){g1(e),g1(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 Pe.near(r);let o=e.resolve(n.map(this.anchor));return new Me(o.parent.inlineContent?o:r,r)}replace(e,n=ve.empty){if(super.replace(e,n),n==ve.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Me&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new oc(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 Me(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=Pe.findFrom(n,r,!0)||Pe.findFrom(n,-r,!0);if(i)n=i.$head;else return Pe.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Pe.findFrom(e,-r,!0)||Pe.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Me(e,n)}}Pe.jsonID("text",Me);class oc{constructor(e,n){this.anchor=e,this.head=n}map(e){return new oc(e.map(this.anchor),e.map(this.head))}resolve(e){return Me.between(e.resolve(this.anchor),e.resolve(this.head))}}class xe extends Pe{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?Pe.near(i):new xe(i)}content(){return new ve(le.from(this.node),0,0)}eq(e){return e instanceof xe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new kf(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xe(e.resolve(n.anchor))}static create(e,n){return new xe(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}xe.prototype.visible=!1;Pe.jsonID("node",xe);class kf{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new oc(r,r):new kf(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&xe.isSelectable(r)?new xe(n):Pe.near(n)}}class Jt extends Pe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=ve.empty){if(n==ve.empty){e.delete(0,e.doc.content.size);let r=Pe.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Jt(e)}map(e){return new Jt(e)}eq(e){return e instanceof Jt}getBookmark(){return pA}}Pe.jsonID("all",Jt);const pA={map(){return this},resolve(t){return new Jt(t)}};function Ko(t,e,n,r,o,i=!1){if(e.inlineContent)return Me.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&&xe.isSelectable(c))return xe.create(t,n-(o<0?c.nodeSize:0))}else{let a=Ko(t,c,n+o,o<0?c.childCount:0,o,i);if(a)return a}n+=c.nodeSize*o}return null}function v1(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof mt||o instanceof yt))return;let i=t.mapping.maps[r],s;i.forEach((c,a,u,d)=>{s==null&&(s=d)}),t.setSelection(Pe.near(t.doc.resolve(s),n))}const y1=1,ua=2,b1=4;class mA extends i2{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|y1)&~ua,this.storedMarks=null,this}get selectionSet(){return(this.updated&y1)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ua,this}ensureMarks(e){return Ke.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&ua)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ua,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)||Ke.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),!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.selection.to==n+e.length&&this.setSelection(Pe.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|=b1,this}get scrolledIntoView(){return(this.updated&b1)>0}}function C1(t,e){return!e||!t?t:t.bind(e)}class Bi{constructor(e,n,r){this.name=e,this.init=C1(n.init,r),this.apply=C1(n.apply,r)}}const gA=[new Bi("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Bi("selection",{init(t,e){return t.selection||Pe.atStart(e.doc)},apply(t){return t.selection}}),new Bi("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Bi("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Wc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=gA.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 Bi(r.key,r.spec.state,r))})}}class qo{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,u=o?o[s].state:this,d=a<n.length&&c.spec.appendTransaction.call(c,a?n.slice(a):n,u,r);if(d&&r.filterTransaction(d,s)){if(d.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(d),r=r.applyInner(d),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 qo(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 mA(this)}static create(e){let n=new Wc(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new qo(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 Wc(this.schema,e.plugins),r=n.fields,o=new qo(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 Wc(e.schema,e.plugins),i=new qo(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=_r.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Pe.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],u=a.spec.state;if(a.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=u.fromJSON.call(a,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function s2(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=s2(o,e,{})),n[r]=o}return n}class rt{constructor(e){this.spec=e,this.props={},e.props&&s2(e.props,this,this.props),this.key=e.key?e.key.key:a2("plugin")}getState(e){return e[this.key]}}const Kc=Object.create(null);function a2(t){return t in Kc?t+"$"+ ++Kc[t]:(Kc[t]=0,t+"$")}class Ct{constructor(e="key"){this.key=a2(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const wf=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function l2(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const c2=(t,e,n)=>{let r=l2(t,n);if(!r)return!1;let o=Sf(r);if(!o){let s=r.blockRange(),c=s&&Ei(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(y2(t,o,e,-1))return!0;if(r.parent.content.size==0&&(si(i,"end")||xe.isSelectable(i)))for(let s=r.depth;;s--){let c=rc(t.doc,r.before(s),r.after(s),ve.empty);if(c&&c.slice.size<c.to-c.from){if(e){let a=t.tr.step(c);a.setSelection(si(i,"end")?Pe.findFrom(a.doc.resolve(a.mapping.map(o.pos,-1)),-1):xe.create(a.doc,o.pos-i.nodeSize)),e(a.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1},vA=(t,e,n)=>{let r=l2(t,n);if(!r)return!1;let o=Sf(r);return o?u2(t,o,e):!1},yA=(t,e,n)=>{let r=f2(t,n);if(!r)return!1;let o=Af(r);return o?u2(t,o,e):!1};function u2(t,e,n){let r=e.nodeBefore,o=r,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let s=e.nodeAfter,c=s,a=e.pos+1;for(;!c.isTextblock;a++){if(c.type.spec.isolating)return!1;let d=c.firstChild;if(!d)return!1;c=d}let u=rc(t.doc,i,a,ve.empty);if(!u||u.from!=i||u instanceof mt&&u.slice.size>=a-i)return!1;if(n){let d=t.tr.step(u);d.setSelection(Me.create(d.doc,i)),n(d.scrollIntoView())}return!0}function si(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 d2=(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=Sf(r)}let s=i&&i.nodeBefore;return!s||!xe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(xe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Sf(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 f2(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const h2=(t,e,n)=>{let r=f2(t,n);if(!r)return!1;let o=Af(r);if(!o)return!1;let i=o.nodeAfter;if(y2(t,o,e,1))return!0;if(r.parent.content.size==0&&(si(i,"start")||xe.isSelectable(i))){let s=rc(t.doc,r.before(),r.after(),ve.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(si(i,"start")?Pe.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):xe.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},p2=(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=Af(r)}let s=i&&i.nodeAfter;return!s||!xe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(xe.create(t.doc,i.pos)).scrollIntoView()),!0)};function Af(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 bA=(t,e)=>{let n=t.selection,r=n instanceof xe,o;if(r){if(n.node.isTextblock||!Wr(t.doc,n.from))return!1;o=n.from}else if(o=nc(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(xe.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},CA=(t,e)=>{let n=t.selection,r;if(n instanceof xe){if(n.node.isTextblock||!Wr(t.doc,n.to))return!1;r=n.to}else if(r=nc(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},EA=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&Ei(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},m2=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
1183
+ `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let o=0;o<this.parser.matchedStyles.length;o++){let i=this.parser.matchedStyles[o],s=r.getPropertyValue(i);if(s)for(let c=void 0;;){let a=this.parser.matchStyle(i,s,this,c);if(!a)break;if(a.ignore)return null;if(a.clearMark?n=n.filter(u=>!a.clearMark(u)):n=n.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)c=a;else break}}return n}addElementByRule(e,n,r,o){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(s,n.attrs||null,r,n.preserveWhitespace);a&&(i=!0,r=a)}else{let a=this.parser.schema.marks[n.mark];r=r.concat(a.create(n.attrs))}let c=this.top;if(s&&s.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));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,r),this.findAround(e,a,!1)}i&&this.sync(c)&&this.open--}addAll(e,n,r,o){let i=r||0;for(let s=r?e.childNodes[r]:e.firstChild,c=o==null?null:e.childNodes[o];s!=c;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,r){let o,i;for(let s=this.open,c=0;s>=0;s--){let a=this.nodes[s],u=a.findWrapping(e);if(u&&(!o||o.length>u.length+c)&&(o=u,i=a,!u.length))break;if(a.solid){if(r)break;c+=2}}if(!o)return null;this.sync(i);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let o=this.findPlace(e,n,r);if(o){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=Ke.none;for(let c of o.concat(e.marks))(i.type?i.type.allowsMarkType(c.type):u1(c.type,e.type))&&(s=c.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,r,o){let i=this.findPlace(e.create(n),r,!1);return i&&(i=this.enterInner(e,n,r,!0,o)),i}enterInner(e,n,r,o=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let c=a1(e,i,s.options);s.options&Wi&&s.content.length==0&&(c|=Wi);let a=Ke.none;return r=r.filter(u=>(s.type?s.type.allowsMarkType(u.type):u1(u.type,e))?(a=u.addToSet(a),!1):!0),this.nodes.push(new ca(e,n,a,o,null,c)),this.open++,r}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;this.localPreserveWS&&(this.nodes[n].options|=ks)}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 u=n[c];if(u==""){if(c==n.length-1||c==0)continue;for(;a>=i;a--)if(s(c-1,a))return!0;return!1}else{let d=a>0||a==0&&o?this.nodes[a].type:r&&a>=i?r.node(a-i).type:null;if(!d||d.name!=u&&!d.isInGroup(u))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}}}function zS(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Wv.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function US(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function c1(t){let e={};for(let n in t)e[n]=t[n];return e}function u1(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:u,next:d}=c.edge(a);if(u==e||i.indexOf(d)<0&&s(d))return!0}};if(s(o.contentMatch))return!0}}class Mo{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Fc(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 u=s.marks[a];if(!this.marks[u.type.name]){a++;continue}if(!u.eq(i[c][0])||u.type.spec.spanning===!1)break;c++,a++}for(;c<i.length;)o=i.pop()[1];for(;a<s.marks.length;){let u=s.marks[a++],d=this.serializeMark(u,s.isInline,n);d&&(i.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=La(Fc(n),this.nodes[e.type.name](e),null,e.attrs);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&&La(Fc(r),o(e,n),null,e.attrs)}static renderSpec(e,n,r=null,o){return La(e,n,r,o)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Mo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=d1(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return d1(e.marks)}}function d1(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Fc(t){return t.document||window.document}const f1=new WeakMap;function HS(t){let e=f1.get(t);return e===void 0&&f1.set(t,e=jS(t)),e}function jS(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let o=0;o<r.length;o++)n(r[o]);else for(let o in r)n(r[o])}return n(t),e}function La(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let o=e[0],i;if(typeof o!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(i=HS(r))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=o.indexOf(" ");s>0&&(n=o.slice(0,s),o=o.slice(s+1));let c,a=n?t.createElementNS(n,o):t.createElement(o),u=e[1],d=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){d=2;for(let f in u)if(u[f]!=null){let h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),u[f]):f=="style"&&a.style?a.style.cssText=u[f]:a.setAttribute(f,u[f])}}for(let f=d;f<e.length;f++){let h=e[f];if(h===0){if(f<e.length-1||f>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:p,contentDOM:m}=La(t,h,n,r);if(a.appendChild(p),m){if(c)throw new RangeError("Multiple content holes");c=m}}}return{dom:a,contentDOM:c}}const Kv=65535,Yv=Math.pow(2,16);function WS(t,e){return t+e*Yv}function h1(t){return t&Kv}function KS(t){return(t-(t&Kv))/Yv}const Gv=1,Qv=2,Da=4,Zv=8;class qu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Zv)>0}get deletedBefore(){return(this.delInfo&(Gv|Da))>0}get deletedAfter(){return(this.delInfo&(Qv|Da))>0}get deletedAcross(){return(this.delInfo&Da)>0}}class Qt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Qt.empty)return Qt.empty}recover(e){let n=0,r=h1(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+KS(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 u=this.ranges[c+i],d=this.ranges[c+s],f=a+u;if(e<=f){let h=u?e==a?-1:e==f?1:n:n,p=a+o+(h<0?0:d);if(r)return p;let m=e==(n<0?a:f)?null:WS(c/3,e-a),g=e==a?Qv:e==f?Gv:Da;return(n<0?e!=a:e!=f)&&(g|=Zv),new qu(p,g,m)}o+=d-u}return r?e+o:new qu(e+o,0,null)}touches(e,n){let r=0,o=h1(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 u=this.ranges[c+i],d=a+u;if(e<=d&&c==o*3)return!0;r+=this.ranges[c+s]-u}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),u=this.ranges[o+n],d=this.ranges[o+r];e(c,c+u,a,a+d),i+=d-u}}invert(){return new Qt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Qt.empty:new Qt(e<0?[0,-e,0]:[0,0,e])}}Qt.empty=new Qt([]);class ws{constructor(e,n,r=0,o=e?e.length:0){this.mirror=n,this.from=r,this.to=o,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ws(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),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 ws;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 qu(e,o,null)}}const zc=Object.create(null);class Mt{getMap(){return Qt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=zc[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 zc)throw new RangeError("Duplicate use of step JSON ID "+e);return zc[e]=n,n.prototype.jsonID=e,n}}class ut{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ut(e,null)}static fail(e){return new ut(null,e)}static fromReplace(e,n,r,o){try{return ut.ok(e.replace(n,r,o))}catch(i){if(i instanceof Xa)return ut.fail(i.message);throw i}}}function bf(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(bf(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return le.fromArray(r)}class Sr extends Mt{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 ve(bf(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 ut.fromReplace(e,this.from,this.to,i)}invert(){return new kn(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 Sr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Sr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Sr(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 Sr(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("addMark",Sr);class kn extends Mt{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 ve(bf(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ut.fromReplace(e,this.from,this.to,r)}invert(){return new Sr(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 kn(n.pos,r.pos,this.mark)}merge(e){return e instanceof kn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new kn(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 kn(n.from,n.to,e.markFromJSON(n.mark))}}Mt.jsonID("removeMark",kn);class Ar extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ut.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ut.fromReplace(e,this.pos,this.pos+1,new ve(le.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 Ar(this.pos,n.marks[o]);return new Ar(this.pos,this.mark)}}return new Ao(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ar(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 Ar(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("addNodeMark",Ar);class Ao extends Mt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ut.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ut.fromReplace(e,this.pos,this.pos+1,new ve(le.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ar(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ao(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 Ao(n.pos,e.markFromJSON(n.mark))}}Mt.jsonID("removeNodeMark",Ao);class mt extends Mt{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&ed(e,this.from,this.to)?ut.fail("Structure replace would overwrite content"):ut.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Qt([this.from,this.to-this.from,this.slice.size])}invert(e){return new mt(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 mt(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof mt)||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?ve.empty:new ve(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new mt(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?ve.empty:new ve(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new mt(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 mt(n.from,n.to,ve.fromJSON(e,n.slice),!!n.structure)}}Mt.jsonID("replace",mt);class yt extends Mt{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&&(ed(e,this.from,this.gapFrom)||ed(e,this.gapTo,this.to)))return ut.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ut.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ut.fromReplace(e,this.from,this.to,r):ut.fail("Content does not fit in gap")}getMap(){return new Qt([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 yt(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=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new yt(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 yt(n.from,n.to,n.gapFrom,n.gapTo,ve.fromJSON(e,n.slice),n.insert,!!n.structure)}}Mt.jsonID("replaceAround",yt);function ed(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 YS(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(a,u,d)=>{if(!a.isInline)return;let f=a.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let h=Math.max(u,e),p=Math.min(u+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 kn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new Sr(h,p,r))}}),o.forEach(a=>t.step(a)),i.forEach(a=>t.step(a))}function GS(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 tc){let u=s.marks,d;for(;d=r.isInSet(u);)(a||(a=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(s.marks)&&(a=[r]):a=s.marks;if(a&&a.length){let u=Math.min(c+s.nodeSize,n);for(let d=0;d<a.length;d++){let f=a[d],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=u,h.step=i):o.push({style:f,from:Math.max(c,e),to:u,step:i})}}}),o.forEach(s=>t.step(new kn(s.from,s.to,s.style)))}function Cf(t,e,n,r=n.contentMatch,o=!0){let i=t.doc.nodeAt(e),s=[],c=e+1;for(let a=0;a<i.childCount;a++){let u=i.child(a),d=c+u.nodeSize,f=r.matchType(u.type);if(!f)s.push(new mt(c,d,ve.empty));else{r=f;for(let h=0;h<u.marks.length;h++)n.allowsMarkType(u.marks[h].type)||t.step(new kn(c,d,u.marks[h]));if(o&&u.isText&&n.whitespace!="pre"){let h,p=/\r?\n|\r/g,m;for(;h=p.exec(u.text);)m||(m=new ve(le.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new mt(c+h.index,c+h.index+h[0].length,m))}}c=d}if(!r.validEnd){let a=r.fillBefore(le.empty,!0);t.replace(c,c,new ve(a,0,0))}for(let a=s.length-1;a>=0;a--)t.step(s[a])}function QS(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Ei(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,o=0,i=0;;--r){let s=t.$from.node(r),c=t.$from.index(r)+o,a=t.$to.indexAfter(r)-i;if(r<t.depth&&s.canReplace(c,a,n))return r;if(r==0||s.type.spec.isolating||!QS(s,c,a))break;c&&(o=1),a<s.childCount&&(i=1)}return null}function ZS(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),a=s,u=c,d=le.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,d=le.from(r.node(m).copy(d)),f++):a--;let h=le.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=le.from(o.node(m).copy(h)),p++):u++;t.step(new yt(a,u,s,c,new ve(d.append(h),f,p),d.size-f,!0))}function Ef(t,e,n=null,r=t){let o=JS(t,e),i=o&&XS(r,e);return i?o.map(p1).concat({type:e,attrs:n}).concat(i.map(p1)):null}function p1(t){return{type:t,attrs:null}}function JS(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 XS(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 u=r;a&&u<o;u++)a=a.matchType(n.child(u).type);return!a||!a.validEnd?null:s}function qS(t,e,n){let r=le.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=le.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new yt(o,i,o,i,new ve(r,0,0),n.length,!0))}function eA(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)=>{let a=typeof o=="function"?o(s):o;if(s.isTextblock&&!s.hasMarkup(r,a)&&tA(t.doc,t.mapping.slice(i).map(c),r)){let u=null;if(r.schema.linebreakReplacement){let p=r.whitespace=="pre",m=!!r.contentMatch.matchType(r.schema.linebreakReplacement);p&&!m?u=!1:!p&&m&&(u=!0)}u===!1&&Xv(t,s,c,i),Cf(t,t.mapping.slice(i).map(c,1),r,void 0,u===null);let d=t.mapping.slice(i),f=d.map(c,1),h=d.map(c+s.nodeSize,1);return t.step(new yt(f,h,f+1,h-1,new ve(le.from(r.create(a,null,s.marks)),0,0),1,!0)),u===!0&&Jv(t,s,c,i),!1}})}function Jv(t,e,n,r){e.forEach((o,i)=>{if(o.isText){let s,c=/\r?\n|\r/g;for(;s=c.exec(o.text);){let a=t.mapping.slice(r).map(n+1+i+s.index);t.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Xv(t,e,n,r){e.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
1184
+ `))}})}function tA(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function nA(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 yt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new ve(le.from(s),0,0),1,!0))}function nr(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 u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),h=o.index(u);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[d+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[d]||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 rA(t,e,n=1,r){let o=t.doc.resolve(e),i=le.empty,s=le.empty;for(let c=o.depth,a=o.depth-n,u=n-1;c>a;c--,u--){i=le.from(o.node(c).copy(i));let d=r&&r[u];s=le.from(d?d.type.create(d.attrs,s):o.node(c).copy(s))}t.step(new mt(e,e,new ve(i.append(s),n,n),!0))}function Wr(t,e){let n=t.resolve(e),r=n.index();return qv(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function oA(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let o=0;o<e.childCount;o++){let i=e.child(o),s=i.type==r?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function qv(t,e){return!!(t&&e&&!t.isLeaf&&oA(t,e))}function nc(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&&qv(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 iA(t,e,n){let r=null,{linebreakReplacement:o}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(o&&s.inlineContent){let d=s.whitespace=="pre",f=!!s.contentMatch.matchType(o);d&&!f?r=!1:!d&&f&&(r=!0)}let c=t.steps.length;if(r===!1){let d=t.doc.resolve(e+n);Xv(t,d.node(),d.before(),c)}s.inlineContent&&Cf(t,e+n-1,s,i.node().contentMatchAt(i.index()),r==null);let a=t.mapping.slice(c),u=a.map(e-n);if(t.step(new mt(u,a.map(e+n,-1),ve.empty,!0)),r===!0){let d=t.doc.resolve(u);Jv(t,d.node(),d.before(),t.steps.length)}return t}function sA(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 e2(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),u=r.node(s),d=!1;if(i==1)d=u.canReplace(a,a,o);else{let f=u.contentMatchAt(a).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(a,a,f[0])}if(d)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function rc(t,e,n=e,r=ve.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return t2(o,i,r)?new mt(e,n,r):new aA(o,i,r).fit()}function t2(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class aA{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=le.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=le.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):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 ve(i,s,c);return e>-1?new yt(r.pos,e,this.$to.pos,this.$to.end(),a,n):a.size||r.pos!=this.$to.pos?new mt(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=Uc(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:u}=this.frontier[c],d,f=null;if(n==1&&(s?u.matchType(s.type)||(f=u.fillBefore(le.from(s),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(d=u.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Uc(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ve(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=Uc(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new ve(Di(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new ve(Di(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,u=0,d=[],{match:f,type:h}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)d.push(o.child(g));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;u<c.childCount;){let g=c.child(u),v=f.matchType(g.type);if(!v)break;u++,(u>1||a==0||g.content.size)&&(f=v,d.push(n2(g.mark(h.allowedMarks(g.marks)),u==1?a:0,u==c.childCount?p:-1)))}let m=u==c.childCount;m||(p=-1),this.placed=Pi(this.placed,n,le.from(d)),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,v=c;g<p;g++){let y=v.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),v=y.content}this.unplaced=m?e==0?ve.empty:new ve(Di(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new ve(Di(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Hc(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=Hc(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:a,type:u}=this.frontier[c],d=Hc(e,c,u,a,!0);if(!d||d.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=Pi(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=Pi(this.placed,this.depth,le.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(le.empty,!0);n.childCount&&(this.placed=Pi(this.placed,this.frontier.length,n))}}function Di(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Di(t.firstChild.content,e-1,n)))}function Pi(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Pi(t.lastChild.content,e-1,n)))}function Uc(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function n2(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,n2(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(le.empty,!0)))),t.copy(r)}function Hc(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&&!lA(n,i.content,s)?c:null}function lA(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function cA(t){return t.spec.defining||t.spec.definingForContent}function uA(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(t2(o,i,r))return t.step(new mt(e,n,r));let s=o2(o,i);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),u=[],d=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(u.push(m),p==r.openStart)break;h=m.content}for(let h=d-1;h>=0;h--){let p=u[h],m=cA(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))d=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+d+1)%(r.openStart+1),m=u[p];if(m)for(let g=0;g<s.length;g++){let v=s[(g+a)%s.length],y=!0;v<0&&(y=!1,v=-v);let b=o.node(v-1),E=o.index(v-1);if(b.canReplaceWith(E,E,m.type,m.marks))return t.replace(o.before(v),y?i.after(v):n,new ve(r2(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 r2(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(r2(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(le.empty,!0))}return t}function dA(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=sA(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new ve(le.from(r),0,0))}function fA(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=o2(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&&r.start(s-1)==o.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),o.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function o2(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 Mt{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 ut.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 ut.fromReplace(e,this.pos,this.pos+1,new ve(le.from(o),0,n.isLeaf?0:1))}getMap(){return Qt.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)}}Mt.jsonID("attr",ti);class Ss extends Mt{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 ut.ok(r)}getMap(){return Qt.empty}invert(e){return new Ss(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 Ss(n.attr,n.value)}}Mt.jsonID("docAttr",Ss);let ii=class extends Error{};ii=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};ii.prototype=Object.create(Error.prototype);ii.prototype.constructor=ii;ii.prototype.name="TransformError";class i2{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ws}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ii(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}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let o=this.mapping.maps[r];r&&(e=o.map(e,1),n=o.map(n,-1)),o.forEach((i,s,c,a)=>{e=Math.min(e,c),n=Math.max(n,a)})}return e==1e9?null:{from:e,to:n}}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=ve.empty){let o=rc(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new ve(le.from(r),0,0))}delete(e,n){return this.replace(e,n,ve.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return uA(this,e,n,r),this}replaceRangeWith(e,n,r){return dA(this,e,n,r),this}deleteRange(e,n){return fA(this,e,n),this}lift(e,n){return ZS(this,e,n),this}join(e,n=1){return iA(this,e,n),this}wrap(e,n){return qS(this,e,n),this}setBlockType(e,n=e,r,o=null){return eA(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return nA(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 Ss(e,n)),this}addNodeMark(e,n){return this.step(new Ar(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof Ke)n.isInSet(r.marks)&&this.step(new Ao(e,n));else{let o=r.marks,i,s=[];for(;i=n.isInSet(o);)s.push(new Ao(e,i)),o=i.removeFromSet(o);for(let c=s.length-1;c>=0;c--)this.step(s[c])}return this}split(e,n=1,r){return rA(this,e,n,r),this}addMark(e,n,r){return YS(this,e,n,r),this}removeMark(e,n,r){return GS(this,e,n,r),this}clearIncompatible(e,n,r){return Cf(this,e,n,r),this}}const jc=Object.create(null);class Pe{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new hA(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=ve.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:u}=s[c],d=e.mapping.slice(i);e.replaceRange(d.map(a.pos),d.map(u.pos),c?ve.empty:n),c==0&&v1(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),u=a.map(s.pos),d=a.map(c.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),v1(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Me(e):Ko(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?Ko(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):Ko(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 Jt(e.node(0))}static atStart(e){return Ko(e,e,0,0,1)||new Jt(e)}static atEnd(e){return Ko(e,e,e.content.size,e.childCount,-1)||new Jt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=jc[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 jc)throw new RangeError("Duplicate use of selection JSON ID "+e);return jc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Me.between(this.$anchor,this.$head).getBookmark()}}Pe.prototype.visible=!0;class hA{constructor(e,n){this.$from=e,this.$to=n}}let m1=!1;function g1(t){!m1&&!t.parent.inlineContent&&(m1=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Me extends Pe{constructor(e,n=e){g1(e),g1(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 Pe.near(r);let o=e.resolve(n.map(this.anchor));return new Me(o.parent.inlineContent?o:r,r)}replace(e,n=ve.empty){if(super.replace(e,n),n==ve.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Me&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new oc(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 Me(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=Pe.findFrom(n,r,!0)||Pe.findFrom(n,-r,!0);if(i)n=i.$head;else return Pe.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Pe.findFrom(e,-r,!0)||Pe.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Me(e,n)}}Pe.jsonID("text",Me);class oc{constructor(e,n){this.anchor=e,this.head=n}map(e){return new oc(e.map(this.anchor),e.map(this.head))}resolve(e){return Me.between(e.resolve(this.anchor),e.resolve(this.head))}}class xe extends Pe{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?Pe.near(i):new xe(i)}content(){return new ve(le.from(this.node),0,0)}eq(e){return e instanceof xe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new kf(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xe(e.resolve(n.anchor))}static create(e,n){return new xe(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}xe.prototype.visible=!1;Pe.jsonID("node",xe);class kf{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new oc(r,r):new kf(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&xe.isSelectable(r)?new xe(n):Pe.near(n)}}class Jt extends Pe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=ve.empty){if(n==ve.empty){e.delete(0,e.doc.content.size);let r=Pe.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Jt(e)}map(e){return new Jt(e)}eq(e){return e instanceof Jt}getBookmark(){return pA}}Pe.jsonID("all",Jt);const pA={map(){return this},resolve(t){return new Jt(t)}};function Ko(t,e,n,r,o,i=!1){if(e.inlineContent)return Me.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&&xe.isSelectable(c))return xe.create(t,n-(o<0?c.nodeSize:0))}else{let a=Ko(t,c,n+o,o<0?c.childCount:0,o,i);if(a)return a}n+=c.nodeSize*o}return null}function v1(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof mt||o instanceof yt))return;let i=t.mapping.maps[r],s;i.forEach((c,a,u,d)=>{s==null&&(s=d)}),t.setSelection(Pe.near(t.doc.resolve(s),n))}const y1=1,ua=2,b1=4;class mA extends i2{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|y1)&~ua,this.storedMarks=null,this}get selectionSet(){return(this.updated&y1)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ua,this}ensureMarks(e){return Ke.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&ua)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ua,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)||Ke.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),!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.selection.to==n+e.length&&this.setSelection(Pe.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|=b1,this}get scrolledIntoView(){return(this.updated&b1)>0}}function C1(t,e){return!e||!t?t:t.bind(e)}class Bi{constructor(e,n,r){this.name=e,this.init=C1(n.init,r),this.apply=C1(n.apply,r)}}const gA=[new Bi("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Bi("selection",{init(t,e){return t.selection||Pe.atStart(e.doc)},apply(t){return t.selection}}),new Bi("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Bi("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Wc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=gA.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 Bi(r.key,r.spec.state,r))})}}class qo{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,u=o?o[s].state:this,d=a<n.length&&c.spec.appendTransaction.call(c,a?n.slice(a):n,u,r);if(d&&r.filterTransaction(d,s)){if(d.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(d),r=r.applyInner(d),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 qo(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 mA(this)}static create(e){let n=new Wc(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new qo(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 Wc(this.schema,e.plugins),r=n.fields,o=new qo(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 Wc(e.schema,e.plugins),i=new qo(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=_r.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Pe.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],u=a.spec.state;if(a.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=u.fromJSON.call(a,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function s2(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=s2(o,e,{})),n[r]=o}return n}class rt{constructor(e){this.spec=e,this.props={},e.props&&s2(e.props,this,this.props),this.key=e.key?e.key.key:a2("plugin")}getState(e){return e[this.key]}}const Kc=Object.create(null);function a2(t){return t in Kc?t+"$"+ ++Kc[t]:(Kc[t]=0,t+"$")}class Ct{constructor(e="key"){this.key=a2(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const wf=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function l2(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const c2=(t,e,n)=>{let r=l2(t,n);if(!r)return!1;let o=Sf(r);if(!o){let s=r.blockRange(),c=s&&Ei(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(y2(t,o,e,-1))return!0;if(r.parent.content.size==0&&(si(i,"end")||xe.isSelectable(i)))for(let s=r.depth;;s--){let c=rc(t.doc,r.before(s),r.after(s),ve.empty);if(c&&c.slice.size<c.to-c.from){if(e){let a=t.tr.step(c);a.setSelection(si(i,"end")?Pe.findFrom(a.doc.resolve(a.mapping.map(o.pos,-1)),-1):xe.create(a.doc,o.pos-i.nodeSize)),e(a.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1},vA=(t,e,n)=>{let r=l2(t,n);if(!r)return!1;let o=Sf(r);return o?u2(t,o,e):!1},yA=(t,e,n)=>{let r=f2(t,n);if(!r)return!1;let o=Af(r);return o?u2(t,o,e):!1};function u2(t,e,n){let r=e.nodeBefore,o=r,i=e.pos-1;for(;!o.isTextblock;i--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let s=e.nodeAfter,c=s,a=e.pos+1;for(;!c.isTextblock;a++){if(c.type.spec.isolating)return!1;let d=c.firstChild;if(!d)return!1;c=d}let u=rc(t.doc,i,a,ve.empty);if(!u||u.from!=i||u instanceof mt&&u.slice.size>=a-i)return!1;if(n){let d=t.tr.step(u);d.setSelection(Me.create(d.doc,i)),n(d.scrollIntoView())}return!0}function si(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 d2=(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=Sf(r)}let s=i&&i.nodeBefore;return!s||!xe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(xe.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function Sf(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 f2(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const h2=(t,e,n)=>{let r=f2(t,n);if(!r)return!1;let o=Af(r);if(!o)return!1;let i=o.nodeAfter;if(y2(t,o,e,1))return!0;if(r.parent.content.size==0&&(si(i,"start")||xe.isSelectable(i))){let s=rc(t.doc,r.before(),r.after(),ve.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(si(i,"start")?Pe.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):xe.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},p2=(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=Af(r)}let s=i&&i.nodeAfter;return!s||!xe.isSelectable(s)?!1:(e&&e(t.tr.setSelection(xe.create(t.doc,i.pos)).scrollIntoView()),!0)};function Af(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 bA=(t,e)=>{let n=t.selection,r=n instanceof xe,o;if(r){if(n.node.isTextblock||!Wr(t.doc,n.from))return!1;o=n.from}else if(o=nc(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(xe.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},CA=(t,e)=>{let n=t.selection,r;if(n instanceof xe){if(n.node.isTextblock||!Wr(t.doc,n.to))return!1;r=n.to}else if(r=nc(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},EA=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&Ei(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},m2=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
1185
1185
  `).scrollIntoView()),!0)};function xf(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 kA=(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=xf(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(Pe.near(a.doc.resolve(c),1)),e(a.scrollIntoView())}return!0},g2=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Jt||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=xf(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(Me.create(c.doc,s+1)),e(c.scrollIntoView())}return!0},v2=(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(nr(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Ei(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)};function wA(t){return(e,n)=>{let{$from:r,$to:o}=e.selection;if(e.selection instanceof xe&&e.selection.node.isBlock)return!r.parentOffset||!nr(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let i=[],s,c,a=!1,u=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){a=r.end(p)==r.pos+(r.depth-p),u=r.start(p)==r.pos-(r.depth-p),c=xf(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),i.unshift(a&&c?{type:c}:null),s=p;break}else{if(p==1)return!1;i.unshift(null)}let d=e.tr;(e.selection instanceof Me||e.selection instanceof Jt)&&d.deleteSelection();let f=d.mapping.map(r.pos),h=nr(d.doc,f,i.length,i);if(h||(i[0]=c?{type:c}:null,h=nr(d.doc,f,i.length,i)),!h)return!1;if(d.split(f,i.length,i),!a&&u&&r.node(s).type!=c){let p=d.mapping.map(r.before(s)),m=d.doc.resolve(p);c&&r.node(s-1).canReplaceWith(m.index(),m.index()+1,c)&&d.setNodeMarkup(d.mapping.map(r.before(s)),c)}return n&&n(d.scrollIntoView()),!0}}const SA=wA(),AA=(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(xe.create(t.doc,o))),!0)};function xA(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||Wr(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function y2(t,e,n,r){let o=e.nodeBefore,i=e.nodeAfter,s,c,a=o.type.spec.isolating||i.type.spec.isolating;if(!a&&xA(t,e,n))return!0;let u=!a&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(s=(c=o.contentMatchAt(o.childCount)).findWrapping(i.type))&&c.matchType(s[0]||i.type).validEnd){if(n){let p=e.pos+i.nodeSize,m=le.empty;for(let y=s.length-1;y>=0;y--)m=le.from(s[y].create(null,m));m=le.from(o.copy(m));let g=t.tr.step(new yt(e.pos-1,p,e.pos,p,new ve(m,1,0),s.length,!0)),v=g.doc.resolve(p+2*s.length);v.nodeAfter&&v.nodeAfter.type==o.type&&Wr(g.doc,v.pos)&&g.join(v.pos),n(g.scrollIntoView())}return!0}let d=i.type.spec.isolating||r>0&&a?null:Pe.findFrom(e,1),f=d&&d.$from.blockRange(d.$to),h=f&&Ei(f);if(h!=null&&h>=e.depth)return n&&n(t.tr.lift(f,h).scrollIntoView()),!0;if(u&&si(i,"start",!0)&&si(o,"end")){let p=o,m=[];for(;m.push(p),!p.isTextblock;)p=p.lastChild;let g=i,v=1;for(;!g.isTextblock;g=g.firstChild)v++;if(p.canReplace(p.childCount,p.childCount,g.content)){if(n){let y=le.empty;for(let E=m.length-1;E>=0;E--)y=le.from(m[E].copy(y));let b=t.tr.step(new yt(e.pos-m.length,e.pos+i.nodeSize,e.pos+v,e.pos+i.nodeSize-v,new ve(y,m.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function b2(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(Me.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const TA=b2(-1),IA=b2(1);function _A(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=s&&Ef(s,t,e);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function E1(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,u)=>{if(o)return!1;if(!(!a.isTextblock||a.hasMarkup(t,e)))if(a.type==t)o=!0;else{let d=n.doc.resolve(u),f=d.index();o=d.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}}function Tf(...t){return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}Tf(wf,c2,d2);Tf(wf,h2,p2);Tf(m2,g2,v2,SA);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function NA(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i);if(!s)return!1;let c=r?n.tr:null;return OA(c,s,t,e)?(r&&r(c.scrollIntoView()),!0):!1}}function OA(t,e,n,r=null){let o=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let a=s.resolve(e.start-2);i=new el(a,a,e.depth),e.endIndex<e.parent.childCount&&(e=new el(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),o=!0}let c=Ef(i,n,r,e);return c?(t&&MA(t,e,c,o,n),!0):!1}function MA(t,e,n,r,o){let i=le.empty;for(let d=n.length-1;d>=0;d--)i=le.from(n[d].type.create(n[d].attrs,i));t.step(new yt(e.start-(r?2:0),e.end,e.start,e.end,new ve(i,0,0),n.length,!0));let s=0;for(let d=0;d<n.length;d++)n[d].type==o&&(s=d+1);let c=n.length-s,a=e.start+n.length-(r?2:0),u=e.parent;for(let d=e.startIndex,f=e.endIndex,h=!0;d<f;d++,h=!1)!h&&nr(t.doc,a,c)&&(t.split(a,c),a+=2*c),a+=u.child(d).nodeSize;return t}function LA(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?DA(e,n,t,i):PA(e,n,i):!0:!1}}function DA(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new yt(i-1,s,i,s,new ve(le.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new el(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const c=Ei(r);if(c==null)return!1;o.lift(r,c);let a=o.doc.resolve(o.mapping.map(i,-1)-1);return Wr(o.doc,a.pos)&&a.nodeBefore.type==a.nodeAfter.type&&o.join(a.pos),e(o.scrollIntoView()),!0}function PA(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,u=i.node(-1),d=i.index(-1);if(!u.canReplace(d+(c?0:1),d+1,s.content.append(a?le.empty:le.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new yt(f-(c?1:0),h+(a?1:0),f+1,h-1,new ve((c?le.empty:le.from(o.copy(le.empty))).append(a?le.empty:le.from(o.copy(le.empty))),c?0:1,a?0:1),c?0:1)),e(r.scrollIntoView()),!0}function BA(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,u=>u.childCount>0&&u.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 u=a.lastChild&&a.lastChild.type==c.type,d=le.from(u?t.create():null),f=new ve(le.from(t.create(null,le.from(c.type.create(null,d)))),u?3:1,0),h=i.start,p=i.end;n(e.tr.step(new yt(h-(u?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}const wt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ai=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let td=null;const qn=function(t,e,n){let r=td||(td=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},RA=function(){td=null},xo=function(t,e,n,r){return n&&(k1(t,e,n,r,-1)||k1(t,e,n,r,1))},VA=/^(img|br|input|textarea|hr)$/i;function k1(t,e,n,r,o){for(var i;;){if(t==n&&e==r)return!0;if(e==(o<0?0:cn(t))){let s=t.parentNode;if(!s||s.nodeType!=1||Vs(t)||VA.test(t.nodeName)||t.contentEditable=="false")return!1;e=wt(t)+(o<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(o<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=o;else return!1;else t=s,e=o<0?cn(t):0}else return!1}}function cn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function $A(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=cn(t)}else if(t.parentNode&&!Vs(t))e=wt(t),t=t.parentNode;else return null}}function FA(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Vs(t))e=wt(t)+1,t=t.parentNode;else return null}}function zA(t,e,n){for(let r=e==0,o=e==cn(t);r||o;){if(t==n)return!0;let i=wt(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==cn(t)}}function Vs(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 ic=function(t){return t.focusNode&&xo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function to(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function UA(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function HA(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(cn(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(cn(r.startContainer),r.startOffset)}}}const zn=typeof navigator<"u"?navigator:null,w1=typeof document<"u"?document:null,Kr=zn&&zn.userAgent||"",nd=/Edge\/(\d+)/.exec(Kr),C2=/MSIE \d/.exec(Kr),rd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kr),Wt=!!(C2||rd||nd),Or=C2?document.documentMode:rd?+rd[1]:nd?+nd[1]:0,un=!Wt&&/gecko\/(\d+)/i.test(Kr);un&&+(/Firefox\/(\d+)/.exec(Kr)||[0,0])[1];const od=!Wt&&/Chrome\/(\d+)/.exec(Kr),At=!!od,E2=od?+od[1]:0,Nt=!Wt&&!!zn&&/Apple Computer/.test(zn.vendor),li=Nt&&(/Mobile\/\w+/.test(Kr)||!!zn&&zn.maxTouchPoints>2),an=li||(zn?/Mac/.test(zn.platform):!1),k2=zn?/Win/.test(zn.platform):!1,tr=/Android \d/.test(Kr),$s=!!w1&&"webkitFontSmoothing"in w1.documentElement.style,jA=$s?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function WA(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Qn(t,e){return typeof t=="number"?t:t[e]}function KA(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 S1(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;){if(s.nodeType!=1){s=ai(s);continue}let c=s,a=c==i.body,u=a?WA(i):KA(c),d=0,f=0;if(e.top<u.top+Qn(r,"top")?f=-(u.top-e.top+Qn(o,"top")):e.bottom>u.bottom-Qn(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+Qn(o,"top")-u.top:e.bottom-u.bottom+Qn(o,"bottom")),e.left<u.left+Qn(r,"left")?d=-(u.left-e.left+Qn(o,"left")):e.right>u.right-Qn(r,"right")&&(d=e.right-u.right+Qn(o,"right")),d||f)if(a)i.defaultView.scrollBy(d,f);else{let p=c.scrollLeft,m=c.scrollTop;f&&(c.scrollTop+=f),d&&(c.scrollLeft+=d);let g=c.scrollLeft-p,v=c.scrollTop-m;e={left:e.left-g,top:e.top-v,right:e.right-g,bottom:e.bottom-v}}let h=a?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(h))break;s=h=="absolute"?s.offsetParent:ai(s)}}function YA(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:w2(t.dom)}}function w2(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=ai(r));return e}function GA({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;S2(n,r==0?0:r-e)}function S2(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 $o=null;function QA(t){if(t.setActive)return t.setActive();if($o)return t.focus($o);let e=w2(t);t.focus($o==null?{get preventScroll(){return $o={preventScroll:!0},!0}}:void 0),$o||($o=!1,S2(e,0))}function A2(t,e){let n,r=2e8,o,i=0,s=e.top,c=e.top,a,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let h;if(d.nodeType==1)h=d.getClientRects();else if(d.nodeType==3)h=qn(d).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=d,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.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=d,u={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=u,r=0),n&&n.nodeType==3?ZA(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:A2(n,o)}function ZA(t,e){let n=t.nodeValue.length,r=document.createRange(),o;for(let i=0;i<n;i++){r.setEnd(t,i+1),r.setStart(t,i);let s=vr(r,1);if(s.top!=s.bottom&&If(e,s)){o={node:t,offset:i+(e.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),o||{node:t,offset:0}}function If(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function JA(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function XA(t,e,n){let{node:r,offset:o}=A2(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 qA(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let c=t.docView.nearestDesc(i,!0),a;if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent||!c.contentDOM)&&((a=c.dom.getBoundingClientRect()).width||a.height)&&(c.node.isBlock&&c.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(c.dom.nodeName)&&(!s&&a.left>r.left||a.top>r.top?o=c.posBefore:(!s&&a.right<r.left||a.bottom<r.top)&&(o=c.posAfter),s=!0),!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 x2(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 u=c[a];if(If(e,u))return x2(s,e,u)}}if((i=(i+1)%r)==o)break}return t}function ex(t,e){let n=t.dom.ownerDocument,r,o=0,i=HA(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 u=t.dom.getBoundingClientRect();if(!If(e,u)||(s=x2(t.dom,e,u),!s))return null}if(Nt)for(let u=s;r&&u;u=ai(u))u.draggable&&(r=void 0);if(s=JA(s,e),r){if(un&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let u;$s&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.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=qA(t,r,o,e))}c==null&&(c=XA(t,s,e));let a=t.docView.nearestDesc(s,!0);return{pos:c,inside:a?a.posAtStart-a.border:-1}}function A1(t){return t.top<t.bottom||t.left<t.right}function vr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(A1(r))return r}return Array.prototype.find.call(n,A1)||t.getBoundingClientRect()}const tx=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function T2(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=$s||un;if(r.nodeType==3)if(s&&(tx.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let a=vr(qn(r,o,o),n);if(un&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let u=vr(qn(r,o-1,o-1),-1);if(u.top==a.top){let d=vr(qn(r,o,o+1),-1);if(d.top!=a.top)return Ii(d,d.left<u.left)}}return a}else{let a=o,u=o,d=n<0?1:-1;return n<0&&!o?(u++,d=-1):n>=0&&o==r.nodeValue.length?(a--,d=1):n<0?a--:u++,Ii(vr(qn(r,a,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==cn(r))){let a=r.childNodes[o-1];if(a.nodeType==1)return Yc(a.getBoundingClientRect(),!1)}if(i==null&&o<cn(r)){let a=r.childNodes[o];if(a.nodeType==1)return Yc(a.getBoundingClientRect(),!0)}return Yc(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==cn(r))){let a=r.childNodes[o-1],u=a.nodeType==3?qn(a,cn(a)-(s?0:1)):a.nodeType==1&&(a.nodeName!="BR"||!a.nextSibling)?a:null;if(u)return Ii(vr(u,1),!1)}if(i==null&&o<cn(r)){let a=r.childNodes[o];for(;a.pmViewDesc&&a.pmViewDesc.ignoreForCoords;)a=a.nextSibling;let u=a?a.nodeType==3?qn(a,0,s?0:1):a.nodeType==1?a:null:null;if(u)return Ii(vr(u,-1),!0)}return Ii(vr(r.nodeType==3?qn(r):r,-n),n>=0)}function Ii(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 Yc(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 I2(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 nx(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return I2(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=T2(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=qn(c,0,c.nodeValue.length).getClientRects();else continue;for(let u=0;u<a.length;u++){let d=a[u];if(d.bottom>d.top+1&&(n=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const rx=/[\u0590-\u08ac]/;function ox(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 c?!rx.test(r.parent.textContent)||!c.modify?n=="left"||n=="backward"?i:s:I2(t,e,()=>{let{focusNode:a,focusOffset:u,anchorNode:d,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(),v=m&&!p.contains(m.nodeType==1?m:m.parentNode)||a==m&&u==g;try{c.collapse(d,f),a&&(a!=d||u!=f)&&c.extend&&c.extend(a,u)}catch{}return h!=null&&(c.caretBidiLevel=h),v}):r.pos==r.start()||r.pos==r.end()}let x1=null,T1=null,I1=!1;function ix(t,e,n){return x1==e&&T1==n?I1:(x1=e,T1=n,I1=n=="up"||n=="down"?nx(t,e,n):ox(t,e,n))}const dn=0,_1=1,oo=2,Un=3;class Fs{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>wt(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;)for(let s=0;s<o.children.length;s++){let c=o.children[s];if(c.size){o=c;break}}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 N2){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 _2&&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?wt(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?wt(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],u=s+a.size;if(o==-1&&e<=u){let d=s+a.border;if(e>=d&&n<=u-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,n,d);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=wt(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(u>n||c==this.children.length-1)){n=u;for(let d=c+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=wt(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}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 p=0,m=0;p<this.children.length;p++){let g=this.children[p],v=m+g.size;if(i>m&&s<v)return g.setSelection(e-m-g.border,n-m-g.border,r,o);m=v}let c=this.domFromPos(e,e?-1:1),a=n==e?c:this.domFromPos(n,n?-1:1),u=r.root.getSelection(),d=r.domSelectionRange(),f=!1;if((un||Nt)&&e==n){let{node:p,offset:m}=c;if(p.nodeType==3){if(f=!!(m&&p.nodeValue[m-1]==`
1186
1186
  `),f&&m==p.nodeValue.length)for(let g=p,v;g;g=g.parentNode){if(v=g.nextSibling){v.nodeName=="BR"&&(c=a={node:v.parentNode,offset:wt(v)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=p.childNodes[m-1];f=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(un&&d.focusNode&&d.focusNode!=a.node&&d.focusNode.nodeType==1){let p=d.focusNode.childNodes[d.focusOffset];p&&p.contentEditable=="false"&&(o=!0)}if(!(o||f&&Nt)&&xo(c.node,c.offset,d.anchorNode,d.anchorOffset)&&xo(a.node,a.offset,d.focusNode,d.focusOffset))return;let h=!1;if((u.extend||e==n)&&!(f&&un)){u.collapse(c.node,c.offset);try{e!=n&&u.extend(a.node,a.offset),h=!0}catch{}}if(!h){if(e>n){let m=c;c=a,a=m}let p=document.createRange();p.setEnd(a.node,a.offset),p.setStart(c.node,c.offset),u.removeAllRanges(),u.addRange(p)}}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?oo:_1,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?oo:Un}r=s}this.dirty=oo}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?oo:_1;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class _2 extends Fs{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 ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class sx extends Fs{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 To extends Fs{constructor(e,n,r,o,i){super(e,[],r,o),this.mark=n,this.spec=i}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=Mo.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new To(e,n,s.dom,s.contentDOM||s.dom,s)}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=To.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=sd(i,n,s,r)),e>0&&(i=sd(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Mr extends Fs{constructor(e,n,r,o,i,s,c,a,u){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,u=c&&c(n,i,()=>{if(!a)return s;if(a.parent)return a.parent.posBeforeChild(a)},r,o),d=u&&u.dom,f=u&&u.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:f}=Mo.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!f&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let h=d;return d=L2(d,r,n),u?a=new ax(e,n,r,o,d,f||null,h,u,i,s+1):n.isText?new sc(e,n,r,o,d,h,i):new Mr(e,n,r,o,d,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=()=>le.empty)}return e}matchesNode(e,n,r){return this.dirty==dn&&e.eq(this.node)&&nl(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 cx(this,s&&s.node,e);fx(this.node,this.innerDeco,(u,d,f)=>{u.spec.marks?a.syncToMarks(u.spec.marks,r,e,d):u.type.side>=0&&!f&&a.syncToMarks(d==this.node.childCount?Ke.none:this.node.child(d).marks,r,e,d),a.placeWidget(u,e,o)},(u,d,f,h)=>{a.syncToMarks(u.marks,r,e,h);let p;a.findNodeMatch(u,d,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+u.nodeSize&&(p=a.findIndexWithChild(i.node))>-1&&a.updateNodeAt(u,d,f,p,e)||a.updateNextNode(u,d,f,e,h,o)||a.addNode(u,d,f,e,o),o+=u.nodeSize}),a.syncToMarks([],r,e,0),this.node.isTextblock&&a.addTextblockHacks(),a.destroyRest(),(a.changed||this.dirty==oo)&&(s&&this.protectLocalComposition(e,s),O2(this.contentDOM,this.children,e),li&&hx(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Me)||r<n||o>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,c=px(this.node.content,s,r-n,o-n);return c<0?null:{node:i,pos:c,text:s}}else return{node:i,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 sx(this,i,n,o);e.input.compositionNodes.push(s),this.children=sd(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(nl(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=M2(this.dom,this.nodeDOM,id(this.outerDeco,this.node,n),id(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.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function N1(t,e,n,r,o){L2(r,e,t);let i=new Mr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class sc extends Mr{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 sc(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}isText(e){return this.node.text==e}}class N2 extends Fs{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 ax extends Mr{constructor(e,n,r,o,i,s,c,a,u,d){super(e,n,r,o,i,s,c,u,d),this.spec=a}update(e,n,r,o){if(this.dirty==Un)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){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.root):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 O2(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=O1(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof To){let a=r?r.previousSibling:t.lastChild;O2(s.contentDOM,s.children,n),r=a?a.nextSibling:t.firstChild}}for(;r;)r=O1(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Ki=function(t){t&&(this.nodeName=t)};Ki.prototype=Object.create(null);const io=[new Ki];function id(t,e,n){if(t.length==0)return io;let r=n?io[0]:new Ki,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Ki(s.nodeName));for(let c in s){let a=s[c];a!=null&&(n&&o.length==1&&o.push(r=new Ki(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 M2(t,e,n,r){if(n==io&&r==io)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=io[0]),o=a}lx(o,c||io[0],s)}return o}function lx(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 L2(t,e,n){return M2(t,t,io,id(e,n,t.nodeType!=1))}function nl(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 O1(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class cx{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=ux(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,o){let i=0,s=this.stack.length>>1,c=Math.min(s,e.length);for(;i<c&&(i==s-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<s;)this.destroyRest(),this.top.dirty=dn,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let a=-1,u=this.top.children.length;o<this.preMatch.index&&(u=Math.min(this.index+3,u));for(let d=this.index;d<u;d++){let f=this.top.children[d];if(f.matchesMark(e[s])&&!this.isLocked(f.dom)){a=d;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let d=To.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,d),this.top=d,this.changed=!0}this.index=0,s++}}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 u=this.top.children[c];if(u.matchesNode(e,n,r)&&!this.preMatch.matched.has(u)){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=oo),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 Mr){let u=this.preMatch.matched.get(a);if(u!=null&&u!=i)return!1;let d=a.dom,f,h=this.isLocked(d)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&a.dirty!=Un&&nl(n,a.outerDeco));if(!h&&a.update(e,n,r,o))return this.destroyBetween(this.index,c),a.dom!=d&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(a,e,n,r,o,s)))return this.destroyBetween(this.index,c),this.top.children[this.index]=f,f.contentDOM&&(f.dirty=oo,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)||!nl(r,e.outerDeco)||!o.eq(e.innerDeco))return null;let c=Mr.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=Mr.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 _2(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 To;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof sc)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Nt||At)&&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 N2(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 ux(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 u=n.children[r-1];if(u instanceof To)n=u,r=u.children.length;else{c=u,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 dx(t,e){return t.type.side-e.type.side}function fx(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let u=0;u<t.childCount;u++){let d=t.child(u);r(d,o,e.forChild(i,d),u),i+=d.nodeSize}return}let s=0,c=[],a=null;for(let u=0;;){let d,f;for(;s<o.length&&o[s].to==i;){let v=o[s++];v.widget&&(d?(f||(f=[d])).push(v):d=v)}if(d)if(f){f.sort(dx);for(let v=0;v<f.length;v++)n(f[v],u,!!a)}else n(d,u,!!a);let h,p;if(a)p=-1,h=a,a=null;else if(u<t.childCount)p=u,h=t.child(u++);else break;for(let v=0;v<c.length;v++)c[v].to<=i&&c.splice(v--,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 v=m;s<o.length&&o[s].from<v&&(v=o[s].from);for(let y=0;y<c.length;y++)c[y].to<v&&(v=c[y].to);v<m&&(a=h.cut(v-i),h=h.cut(0,v-i),m=v,p=-1)}else for(;s<o.length&&o[s].to<m;)s++;let g=h.isInline&&!h.isLeaf?c.filter(v=>!v.inline):c.slice();r(h,g,e.forChild(i,h),p),i=m}}function hx(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 px(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 u=t.child(o++);if(i+=u.nodeSize,!u.isText)break;a+=u.text}if(i>=n){if(i>=r&&a.slice(r-e.length-c,r-c)==e)return r-e.length;let u=c<r?a.lastIndexOf(e,r-c-1):-1;if(u>=0&&u+e.length+c>=n)return c+u;if(n==r&&a.length>=r+e.length-c&&a.slice(r-c,r-c+e.length)==e)return r}}return-1}function sd(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let a=t[s],u=c,d=c+=a.size;u>=n||d<=e?i.push(a):(u<e&&i.push(a.slice(0,e-u,r)),o&&(i.push(o),o=void 0),d>n&&i.push(a.slice(n-u,a.size,r)))}return i}function _f(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,u;if(ic(n)){for(a=s;o&&!o.node;)o=o.parent;let f=o.node;if(o&&f.isAtom&&xe.isSelectable(f)&&o.parent&&!(f.isInline&&zA(n.focusNode,n.focusOffset,o.dom))){let h=o.posBefore;u=new xe(s==h?c:r.resolve(h))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let f=s,h=s;for(let p=0;p<n.rangeCount;p++){let m=n.getRangeAt(p);f=Math.min(f,t.docView.posFromDOM(m.startContainer,m.startOffset,1)),h=Math.max(h,t.docView.posFromDOM(m.endContainer,m.endOffset,-1))}if(f<0)return null;[a,s]=h==t.state.selection.anchor?[h,f]:[f,h],c=r.resolve(s)}else a=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(a<0)return null}let d=r.resolve(a);if(!u){let f=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;u=Nf(t,d,c,f)}return u}function D2(t){return t.editable?t.hasFocus():B2(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function rr(t,e=!1){let n=t.state.selection;if(P2(t,n),!!D2(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&At){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&xo(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)gx(t);else{let{anchor:r,head:o}=n,i,s;M1&&!(n instanceof Me)&&(n.$from.parent.inlineContent||(i=L1(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=L1(t,n.to))),t.docView.setSelection(r,o,t,e),M1&&(i&&D1(i),s&&D1(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&mx(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const M1=Nt||At&&E2<63;function L1(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(Nt&&o&&o.contentEditable=="false")return Gc(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return Gc(o);if(i)return Gc(i)}}function Gc(t){return t.contentEditable="true",Nt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function D1(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function mx(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(()=>{(!D2(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function gx(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,wt(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&Wt&&Or<=11&&(n.disabled=!0,n.disabled=!1)}function P2(t,e){if(e instanceof xe){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(P1(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else P1(t)}function P1(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Nf(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Me.between(e,n,r)}function B1(t){return t.editable&&!t.hasFocus()?!1:B2(t)}function B2(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 vx(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return xo(e.node,e.offset,n.anchorNode,n.anchorOffset)}function ad(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&&Pe.findFrom(i,e)}function yr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function R1(t,e,n){let r=t.state.selection;if(r instanceof Me)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 yr(t,new Me(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=ad(t.state,e);return o&&o instanceof xe?yr(t,o):!1}else if(!(an&&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?xe.isSelectable(i)?yr(t,new xe(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):$s?yr(t,new Me(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof xe&&r.node.isInline)return yr(t,new Me(e>0?r.$to:r.$from));{let o=ad(t.state,e);return o?yr(t,o):!1}}}function rl(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Yi(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Fo(t,e){return e<0?yx(t):bx(t)}function yx(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(un&&n.nodeType==1&&r<rl(n)&&Yi(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(Yi(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(R2(n))break;{let c=n.previousSibling;for(;c&&Yi(c,-1);)o=n.parentNode,i=wt(c),c=c.previousSibling;if(c)n=c,r=rl(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?ld(t,n,r):o&&ld(t,o,i)}function bx(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=rl(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(Yi(c,1))i=n,s=++r;else break}else{if(R2(n))break;{let c=n.nextSibling;for(;c&&Yi(c,1);)i=c.parentNode,s=wt(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=rl(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&ld(t,i,s)}function R2(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Cx(t,e){for(;t&&e==t.childNodes.length&&!Vs(t);)e=wt(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 Ex(t,e){for(;t&&!e&&!Vs(t);)e=wt(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 ld(t,e,n){if(e.nodeType!=3){let i,s;(s=Cx(e,n))?(e=s,n=0):(i=Ex(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(!r)return;if(ic(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&&rr(t)},50)}function V1(t,e){let n=t.state.doc.resolve(e);if(!(At||k2)&&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 $1(t,e,n){let r=t.state.selection;if(r instanceof Me&&!r.empty||n.indexOf("s")>-1||an&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=ad(t.state,e);if(s&&s instanceof xe)return yr(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof Jt?Pe.near(s,e):Pe.findFrom(s,e);return c?yr(t,c):!1}return!1}function F1(t,e){if(!(t.state.selection instanceof Me))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 z1(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function kx(t){if(!Nt||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;z1(t,r,"true"),setTimeout(()=>z1(t,r,"false"),20)}return!1}function wx(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function Sx(t,e){let n=e.keyCode,r=wx(e);if(n==8||an&&n==72&&r=="c")return F1(t,-1)||Fo(t,-1);if(n==46&&!e.shiftKey||an&&n==68&&r=="c")return F1(t,1)||Fo(t,1);if(n==13||n==27)return!0;if(n==37||an&&n==66&&r=="c"){let o=n==37?V1(t,t.state.selection.from)=="ltr"?-1:1:-1;return R1(t,o,r)||Fo(t,o)}else if(n==39||an&&n==70&&r=="c"){let o=n==39?V1(t,t.state.selection.from)=="ltr"?1:-1:1;return R1(t,o,r)||Fo(t,o)}else{if(n==38||an&&n==80&&r=="c")return $1(t,-1,r)||Fo(t,-1);if(n==40||an&&n==78&&r=="c")return kx(t)||$1(t,1,r)||Fo(t,1);if(r==(an?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Of(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")||Mo.fromSchema(t.state.schema),c=H2(),a=c.createElement("div");a.appendChild(s.serializeFragment(r,{document:c}));let u=a.firstChild,d,f=0;for(;u&&u.nodeType==1&&(d=U2[u.nodeName.toLowerCase()]);){for(let p=d.length-1;p>=0;p--){let m=c.createElement(d[p]);for(;a.firstChild;)m.appendChild(a.firstChild);a.appendChild(m),f++}u=a.firstChild}u&&u.nodeType==1&&u.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,`
1187
1187
 
1188
1188
  `);return{dom:a,text:h,slice:e}}function V2(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 c=new ve(le.from(t.state.schema.text(e.replace(/\r\n?/g,`
1189
- `))),0,0),t.someProp("transformPasted",h=>{c=h(c,t,!0)}),c;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=Mo.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=Ix(n),$s&&_x(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[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")||Nr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Ax.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)c=Nx(U1(c,+d[1],+d[2]),d[4]);else if(c=ve.maxOpen(xx(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=U1(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t,a)}),c}const Ax=/^(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 xx(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),u;if(!a)return s=null;if(u=s.length&&i.length&&F2(a,i,c,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=z2(s[s.length-1],i.length));let d=$2(c,a);s.push(d),o=o.matchType(d.type),i=a}}),s)return le.from(s)}return t}function $2(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,le.from(t));return t}function F2(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=F2(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(le.from($2(n,t,o+1))))}}function z2(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,z2(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(le.empty,!0);return t.copy(n.append(r))}function cd(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=cd(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(le.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function U1(t,e,n){return e<t.openStart&&(t=new ve(cd(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new ve(cd(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const U2={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 H1=null;function H2(){return H1||(H1=document.implementation.createHTMLDocument("title"))}let Qc=null;function Tx(t){let e=window.trustedTypes;return e?(Qc||(Qc=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Qc.createHTML(t)):t}function Ix(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=H2().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&U2[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Tx(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function _x(t){let e=t.querySelectorAll(At?"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 Nx(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=le.from(a.create(r[c+1],o)),i++,s++}return new ve(o,i,s)}const Rt={},Vt={},Ox={touchstart:!0,touchmove:!0};class Mx{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Lx(t){for(let e in Rt){let n=Rt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Px(t,r)&&!Mf(t,r)&&(t.editable||!(r.type in Vt))&&n(t,r)},Ox[e]?{passive:!0}:void 0)}Nt&&t.dom.addEventListener("input",()=>null),ud(t)}function xr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Dx(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 ud(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Mf(t,r))})}function Mf(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Px(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 Bx(t,e){!Mf(t,e)&&Rt[e.type]&&(t.editable||!(e.type in Vt))&&Rt[e.type](t,e)}Vt.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!W2(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(tr&&At&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),li&&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,to(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Sx(t,n)?n.preventDefault():xr(t,"key")};Vt.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Vt.keypress=(t,e)=>{let n=e;if(W2(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||an&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Me)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o,i))&&t.dispatch(i()),n.preventDefault()}};function ac(t){return{left:t.clientX,top:t.clientY}}function Rx(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Lf(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 ni(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Vx(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&xe.isSelectable(r)?(ni(t,new xe(n)),!0):!1}function $x(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof xe&&(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(xe.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?(ni(t,xe.create(t.state.doc,o)),!0):!1}function Fx(t,e,n,r,o){return Lf(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?$x(t,n):Vx(t,n))}function zx(t,e,n,r){return Lf(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function Ux(t,e,n,r){return Lf(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||Hx(t,n,r)}function Hx(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ni(t,Me.create(r,0,r.content.size)),!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)ni(t,Me.create(r,c+1,c+1+s.content.size));else if(xe.isSelectable(s))ni(t,xe.create(r,c));else continue;return!0}}function Df(t){return ol(t)}const j2=an?"metaKey":"ctrlKey";Rt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Df(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&Rx(n,t.input.lastClick)&&!n[j2]&&t.input.lastClick.button==n.button&&(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,button:n.button};let s=t.posAtCoords(ac(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new jx(t,s,n,!!r)):(i=="doubleClick"?zx:Ux)(t,s.pos,s.inside,n)?n.preventDefault():xr(t,"pointer"))};class jx{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[j2],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let d=e.state.doc.resolve(n.pos);i=d.parent,s=d.depth?d.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof xe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&un&&!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)),xr(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(()=>rr(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(ac(e))),this.updateAllowDefault(e),this.allowDefault||!n?xr(this.view,"pointer"):Fx(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Nt&&this.mightDrag&&!this.mightDrag.node.isAtom||At&&!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)?(ni(this.view,Pe.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):xr(this.view,"pointer")}move(e){this.updateAllowDefault(e),xr(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)}}Rt.touchstart=t=>{t.input.lastTouch=Date.now(),Df(t),xr(t,"pointer")};Rt.touchmove=t=>{t.input.lastTouch=Date.now(),xr(t,"pointer")};Rt.contextmenu=t=>Df(t);function W2(t,e){return t.composing?!0:Nt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Wx=tr?5e3:-1;Vt.compositionstart=Vt.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Me&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||At&&k2&&Kx(t)))t.markCursor=t.state.storedMarks||n.marks(),ol(t,!0),t.markCursor=null;else if(ol(t,!e.selection.empty),un&&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){let c=t.domSelection();c&&c.collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}K2(t,Wx)};function Kx(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}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.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,K2(t,20))};function K2(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ol(t),e))}function Y2(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Gx());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Yx(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=$A(e.focusNode,e.focusOffset),r=FA(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function Gx(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ol(t,e=!1){if(!(tr&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Y2(t),e||t.docView&&t.docView.dirty){let n=_f(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Qx(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 As=Wt&&Or<15||li&&jA<604;Rt.copy=Vt.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=As?null:n.clipboardData,s=r.content(),{dom:c,text:a}=Of(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):Qx(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Zx(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Jx(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?xs(t,r.value,null,o,e):xs(t,r.textContent,r.innerHTML,o,e)},50)}function xs(t,e,n,r,o){let i=V2(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||ve.empty)))return!0;if(!i)return!1;let s=Zx(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 G2(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&&!tr)return;let r=As?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&xs(t,G2(r),r.getData("text/html"),o,n)?n.preventDefault():Jx(t,n)};class Q2{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Xx=an?"altKey":"ctrlKey";function Z2(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[Xx]}Rt.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(ac(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof xe?o.to-1:o.to))){if(r&&r.mightDrag)s=xe.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=xe.create(t.state.doc,f.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:u,slice:d}=Of(t,c);(!n.dataTransfer.files.length||!At||E2>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(As?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",As||n.dataTransfer.setData("text/plain",u),t.dragging=new Q2(d,Z2(t,n),s)};Rt.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)=>{try{qx(t,e,t.dragging)}finally{t.dragging=null}};function qx(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(ac(e));if(!r)return;let o=t.state.doc.resolve(r.pos),i=n&&n.slice;i?t.someProp("transformPasted",p=>{i=p(i,t,!1)}):i=V2(t,G2(e.dataTransfer),As?null:e.dataTransfer.getData("text/html"),!1,o);let s=!!(n&&Z2(t,e));if(t.someProp("handleDrop",p=>p(t,e,i||ve.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let c=i?e2(t.state.doc,o.pos,i):o.pos;c==null&&(c=o.pos);let a=t.state.tr;if(s){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let u=a.mapping.map(c),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=a.doc;if(d?a.replaceRangeWith(u,u,i.content.firstChild):a.replaceRange(u,u,i),a.doc.eq(f))return;let h=a.doc.resolve(u);if(d&&xe.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new xe(h));else{let p=a.mapping.map(c);a.mapping.maps[a.mapping.maps.length-1].forEach((m,g,v,y)=>p=y),a.setSelection(Nf(t,h,a.doc.resolve(p)))}t.focus(),t.dispatch(a.setMeta("uiEvent","drop"))}Rt.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())&&rr(t)},20))};Rt.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)};Rt.beforeinput=(t,e)=>{if(At&&tr&&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,to(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)Rt[t]=Vt[t];function Ts(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 il{constructor(e,n){this.toDOM=e,this.spec=n||go,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 Dt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof il&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ts(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Lr{constructor(e,n){this.attrs=e,this.spec=n||go}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 Dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Lr&&Ts(this.attrs,e.attrs)&&Ts(this.spec,e.spec)}static is(e){return e.type instanceof Lr}destroy(){}}class Pf{constructor(e,n){this.attrs=e,this.spec=n||go}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 Dt(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 Pf&&Ts(this.attrs,e.attrs)&&Ts(this.spec,e.spec)}destroy(){}}class Dt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Dt(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 Dt(e,e,new il(n,r))}static inline(e,n,r,o){return new Dt(e,n,new Lr(r,o))}static node(e,n,r,o){return new Dt(e,n,new Pf(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Lr}get widget(){return this.type instanceof il}}const Yo=[],go={};class Je{constructor(e,n){this.local=e.length?e:Yo,this.children=n.length?n:Yo}static create(e,n){return n.length?sl(n,e,0,go):Tt}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==Tt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||go)}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?eT(this.children,s||[],e,n,r,o,i):s?new Je(s.sort(vo),Yo):Tt}add(e,n){return n.length?this==Tt?Je.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let u=a+r,d;if(d=X2(n,c,u)){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,d,u+1):o.splice(i,0,a,a+c.nodeSize,sl(d,c,u+1,go)),i+=3}});let s=J2(i?q2(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new Je(s.length?this.local.concat(s).sort(vo):this.local,o||this.children)}remove(e){return e.length==0||this==Tt?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 d=0,f;d<e.length;d++)(f=e[d])&&f.from>c&&f.to<a&&(e[d]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,c+1);u!=Tt?r[i+2]=u:(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 Je(o,r):Tt}forChild(e,n){if(this==Tt)return this;if(n.isLeaf)return Je.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 Lr){let u=Math.max(i,a.from)-i,d=Math.min(s,a.to)-i;u<d&&(o||(o=[])).push(a.copy(u,d))}}if(o){let c=new Je(o.sort(vo),Yo);return r?new kr([c,r]):c}return r||Tt}eq(e){if(this==e)return!0;if(!(e instanceof Je)||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 Bf(this.localsInner(e))}localsInner(e){if(this==Tt)return Yo;if(e.inlineContent||!this.local.some(Lr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Lr||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Je.empty=new Je([],[]);Je.removeOverlap=Bf;const Tt=Je.empty;class kr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,go));return kr.from(r)}forChild(e,n){if(n.isLeaf)return Je.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Tt&&(i instanceof kr?r=r.concat(i.members):r.push(i))}return kr.from(r)}eq(e){if(!(e instanceof kr)||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?Bf(r?n:n.sort(vo)):Yo}static from(e){switch(e.length){case 0:return Tt;case 1:return e[0];default:return new kr(e.every(n=>n instanceof Je)?e:e.reduce((n,r)=>n.concat(r instanceof Je?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function eT(t,e,n,r,o,i,s){let c=t.slice();for(let u=0,d=i;u<n.maps.length;u++){let f=0;n.maps[u].forEach((h,p,m,g)=>{let v=g-m-(p-h);for(let y=0;y<c.length;y+=3){let b=c[y+1];if(b<0||h>b+d-f)continue;let E=c[y]+d-f;p>=E?c[y+1]=h<=E?-2:-1:h>=d&&v&&(c[y]+=v,c[y+1]+=v)}f+=v}),d=n.maps[u].map(d,-1)}let a=!1;for(let u=0;u<c.length;u+=3)if(c[u+1]<0){if(c[u+1]==-2){a=!0,c[u+1]=-1;continue}let d=n.map(t[u]+i),f=d-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[u+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),v=r.maybeChild(m);if(v&&g==f&&g+v.nodeSize==p){let y=c[u+2].mapInner(n,v,d+1,t[u]+i+1,s);y!=Tt?(c[u]=f,c[u+1]=p,c[u+2]=y):(c[u+1]=-2,a=!0)}else a=!0}if(a){let u=tT(c,t,e,n,o,i,s),d=sl(u,r,0,s);e=d.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<d.children.length;f+=3){let p=d.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Je(e.sort(vo),c)}function J2(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 Dt(o.from+e,o.to+e,o.type))}return n}function tT(t,e,n,r,o,i,s){function c(a,u){for(let d=0;d<a.local.length;d++){let f=a.local[d].map(r,o,u);f?n.push(f):s.onRemove&&s.onRemove(a.local[d].spec)}for(let d=0;d<a.children.length;d+=3)c(a.children[d+2],a.children[d]+u+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 X2(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 q2(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function sl(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let u=X2(t,c,a+n);if(u){i=!0;let d=sl(u,c,n+a+1,r);d!=Tt&&o.push(a,a+c.nodeSize,d)}});let s=J2(i?q2(t):t,-n).sort(vo);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 Je(s,o):Tt}function vo(t,e){return t.from-e.from||t.to-e.to}function Bf(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),j1(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),j1(e,o,r.copy(i.from,r.to)));break}}}return e}function j1(t,e,n){for(;e<t.length&&vo(n,t[e])>0;)e++;t.splice(e,0,n)}function Zc(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Tt&&e.push(r)}),t.cursorWrapper&&e.push(Je.create(t.state.doc,[t.cursorWrapper.deco])),kr.from(e)}const nT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rT=Wt&&Or<=11;class oT{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 iT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new oT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Wt&&Or<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():Nt&&e.composing&&r.some(o=>o.type=="childList"&&o.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rT&&(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,nT)),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(B1(this.view)){if(this.suppressingSelectionUpdates)return rr(this.view);if(Wt&&Or<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&xo(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=ai(i))n.add(i);for(let i=e.anchorNode;i;i=ai(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)&&B1(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let d=0;d<n.length;d++){let f=this.registerMutation(n[d],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(a.some(d=>d.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let d of a)if(d.nodeName=="BR"&&d.parentNode){let f=d.nextSibling;f&&f.nodeType==1&&f.contentEditable=="false"&&d.parentNode.removeChild(d)}}else if(un&&a.length){let d=a.filter(f=>f.nodeName=="BR");if(d.length==2){let[f,h]=d;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of d){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||lT(e,f)!=p)&&h.remove()}}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ic(r)&&(u=_f(e))&&u.eq(Pe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,rr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),sT(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,cT(e,a)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||rr(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 d=0;d<e.addedNodes.length;d++){let f=e.addedNodes[d];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}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(Wt&&Or<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:h}=e.addedNodes[d];(!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?wt(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?wt(i):e.target.childNodes.length,u=r.localPosFromDOM(e.target,a,1);return{from:c,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let W1=new WeakMap,K1=!1;function sT(t){if(!W1.has(t)&&(W1.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=un,K1)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."),K1=!0}}function Y1(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return xo(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function aT(t,e){if(e.getComposedRanges){let o=e.getComposedRanges(t.root)[0];if(o)return Y1(t,o)}let n;function r(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Y1(t,n):null}function lT(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function cT(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let c=s;for(;;){let a=c.firstChild;if(!a||a.nodeType!=1||a.contentEditable=="false"||/^(BR|IMG)$/.test(a.nodeName))break;c=a}c.insertBefore(i,c.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}function uT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),u,d=a.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:a.anchorOffset}],ic(a)||u.push({node:a.focusNode,offset:a.focusOffset})),At&&t.input.lastKeyCode===8)for(let v=i;v>o;v--){let y=r.childNodes[v-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){i=v;break}if(!b||b.size)break}let f=t.state.doc,h=t.someProp("domParser")||Nr.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:u,ruleFromNode:dT,context:p});if(u&&u[0].pos!=null){let v=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=v),m={anchor:v+s,head:y+s}}return{doc:g,sel:m,from:s,to:c}}function dT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Nt&&/^(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||Nt&&/^(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 fT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function hT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let T=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,D=_f(t,T);if(D&&!t.state.selection.eq(D)){if(At&&tr&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",V=>V(t,to(13,"Enter"))))return;let Y=t.state.tr.setSelection(D);T=="pointer"?Y.setMeta("pointer",!0):T=="key"&&Y.scrollIntoView(),i&&Y.setMeta("composition",i),t.dispatch(Y)}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,u=uT(t,e,n),d=t.state.doc,f=d.slice(u.from,u.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=gT(f.content,u.doc.content,u.from,h,p);if(m&&t.input.domChangeCount++,(li&&t.input.lastIOSEnter>Date.now()-225||tr)&&o.some(T=>T.nodeType==1&&!fT.test(T.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",T=>T(t,to(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Me&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(u.sel){let T=G1(t,t.state.doc,u.sel);if(T&&!T.eq(t.state.selection)){let D=t.state.tr.setSelection(T);i&&D.setMeta("composition",i),t.dispatch(D)}}return}t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Me&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Wt&&Or<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>u.from&&u.doc.textBetween(m.start-u.from-1,m.start-u.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=u.doc.resolveNoCache(m.start-u.from),v=u.doc.resolveNoCache(m.endB-u.from),y=d.resolve(m.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=m.endA;if((li&&t.input.lastIOSEnter>Date.now()-225&&(!b||o.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!b&&g.pos<u.doc.content.size&&(!g.sameParent(v)||!g.parent.inlineContent)&&g.pos<v.pos&&!/\S/.test(u.doc.textBetween(g.pos,v.pos,"","")))&&t.someProp("handleKeyDown",T=>T(t,to(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&mT(d,m.start,m.endA,g,v)&&t.someProp("handleKeyDown",T=>T(t,to(8,"Backspace")))){tr&&At&&t.domObserver.suppressSelectionUpdates();return}At&&m.endB==m.start&&(t.input.lastChromeDelete=Date.now()),tr&&!b&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==m.endA&&(m.endB-=2,v=u.doc.resolveNoCache(m.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(T){return T(t,to(13,"Enter"))})},20));let E=m.start,C=m.endA,S=T=>{let D=T||t.state.tr.replace(E,C,u.doc.slice(m.start-u.from,m.endB-u.from));if(u.sel){let Y=G1(t,D.doc,u.sel);Y&&!(At&&t.composing&&Y.empty&&(m.start!=m.endB||t.input.lastChromeDelete<Date.now()-100)&&(Y.head==E||Y.head==D.mapping.map(C)-1)||Wt&&Y.empty&&Y.head==E)&&D.setSelection(Y)}return i&&D.setMeta("composition",i),D.scrollIntoView()},_;if(b)if(g.pos==v.pos){Wt&&Or<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>rr(t),20));let T=S(t.state.tr.delete(E,C)),D=d.resolve(m.start).marksAcross(d.resolve(m.endA));D&&T.ensureMarks(D),t.dispatch(T)}else if(m.endA==m.endB&&(_=pT(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start())))){let T=S(t.state.tr);_.type=="add"?T.addMark(E,C,_.mark):T.removeMark(E,C,_.mark),t.dispatch(T)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let T=g.parent.textBetween(g.parentOffset,v.parentOffset),D=()=>S(t.state.tr.insertText(T,E,C));t.someProp("handleTextInput",Y=>Y(t,E,C,T,D))||t.dispatch(D())}else t.dispatch(S());else t.dispatch(S())}function G1(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Nf(t,e.resolve(n.anchor),e.resolve(n.head))}function pT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)i=n[d].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=d=>d.mark(c.addToSet(d.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=d=>d.mark(c.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(a(e.child(d)));if(le.from(u).eq(t))return{mark:c,type:s}}function mT(t,e,n,r,o){if(n-e<=o.pos-r.pos||Jc(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let c=i.nodeAfter;return c!=null&&n==e+c.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Jc(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Jc(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Jc(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 gT(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&&Q1(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&&Q1(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function Q1(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 e5{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 Mx,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(em),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=X1(this),J1(this),this.nodeViews=q1(this),this.docView=N1(this.state.doc,Z1(this),Zc(this),this.dom,this),this.domObserver=new iT(this,(r,o,i,s)=>hT(this,r,o,i,s)),this.domObserver.start(),Lx(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&&ud(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(em),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&&(Y2(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=q1(this);yT(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&ud(this),this.editable=X1(this),J1(this);let a=Zc(this),u=Z1(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&YA(this);if(s){this.domObserver.stop();let p=f&&(Wt||At)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&vT(o.selection,e.selection);if(f){let m=At?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Yx(this)),(i||!this.docView.update(e.doc,u,a,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=N1(e.doc,u,a,this.dom,this)),m&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&vx(this))?rr(this,p):(P2(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),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&GA(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof xe){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&S1(this,n.getBoundingClientRect(),e)}else S1(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 Q2(e.slice,e.move,o<0?void 0:xe.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(Wt){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&&QA(this.dom),rr(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 ex(this,e)}coordsAtPos(e,n=1){return T2(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 ix(this,n||this.state,e)}pasteHTML(e,n){return xs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return xs(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Of(this,e)}destroy(){this.docView&&(Dx(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Zc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,RA())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Bx(this,e)}domSelectionRange(){let e=this.domSelection();return e?Nt&&this.root.nodeType===11&&UA(this.dom.ownerDocument)==this.dom&&aT(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}e5.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Z1(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"),[Dt.node(0,t.state.doc.content.size,e)]}function J1(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:Dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function X1(t){return!t.someProp("editable",e=>e(t.state)===!1)}function vT(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 q1(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 yT(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 em(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")}var Br={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:"'"},al={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},bT=typeof navigator<"u"&&/Mac/.test(navigator.platform),CT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var St=0;St<10;St++)Br[48+St]=Br[96+St]=String(St);for(var St=1;St<=24;St++)Br[St+111]="F"+St;for(var St=65;St<=90;St++)Br[St]=String.fromCharCode(St+32),al[St]=String.fromCharCode(St);for(var Xc in Br)al.hasOwnProperty(Xc)||(al[Xc]=Br[Xc]);function ET(t){var e=bT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||CT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?al:Br)[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 kT=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),wT=typeof navigator<"u"&&/Win/.test(navigator.platform);function ST(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))kT?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 AT(t){let e=Object.create(null);for(let n in t)e[ST(n)]=t[n];return e}function qc(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 xT(t){return new rt({props:{handleKeyDown:t5(t)}})}function t5(t){let e=AT(t);return function(n,r){let o=ET(r),i,s=e[qc(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[qc(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(wT&&r.ctrlKey&&r.altKey)&&(i=Br[r.keyCode])&&i!=o){let c=e[qc(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}var TT=Object.defineProperty,Rf=(t,e)=>{for(var n in e)TT(t,n,{get:e[n],enumerable:!0})};function lc(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),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}}}var cc=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,c])=>[s,(...u)=>{const d=c(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],c=!!t,a=t||o.tr,u=()=>(!c&&e&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(n).map(([f,h])=>[f,(...m)=>{const g=this.buildProps(a,e),v=h(...m)(g);return s.push(v),d}])),run:u};return d}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r);return{...Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...u)=>a(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:t,editor:r,view:i,state:lc({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([c,a])=>[c,(...u)=>a(...u)(s)]))}};return s}},n5={};Rf(n5,{blur:()=>IT,clearContent:()=>_T,clearNodes:()=>NT,command:()=>OT,createParagraphNear:()=>MT,cut:()=>LT,deleteCurrentNode:()=>DT,deleteNode:()=>PT,deleteRange:()=>BT,deleteSelection:()=>RT,enter:()=>VT,exitCode:()=>$T,extendMarkRange:()=>FT,first:()=>zT,focus:()=>HT,forEach:()=>jT,insertContent:()=>WT,insertContentAt:()=>GT,joinBackward:()=>JT,joinDown:()=>ZT,joinForward:()=>XT,joinItemBackward:()=>qT,joinItemForward:()=>eI,joinTextblockBackward:()=>tI,joinTextblockForward:()=>nI,joinUp:()=>QT,keyboardShortcut:()=>oI,lift:()=>iI,liftEmptyBlock:()=>sI,liftListItem:()=>aI,newlineInCode:()=>lI,resetAttributes:()=>cI,scrollIntoView:()=>uI,selectAll:()=>dI,selectNodeBackward:()=>fI,selectNodeForward:()=>hI,selectParentNode:()=>pI,selectTextblockEnd:()=>mI,selectTextblockStart:()=>gI,setContent:()=>vI,setMark:()=>VI,setMeta:()=>$I,setNode:()=>FI,setNodeSelection:()=>zI,setTextDirection:()=>UI,setTextSelection:()=>HI,sinkListItem:()=>jI,splitBlock:()=>WI,splitListItem:()=>KI,toggleList:()=>YI,toggleMark:()=>GI,toggleNode:()=>QI,toggleWrap:()=>ZI,undoInputRule:()=>JI,unsetAllMarks:()=>XI,unsetMark:()=>qI,unsetTextDirection:()=>e_,updateAttributes:()=>t_,wrapIn:()=>n_,wrapInList:()=>r_});var IT=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),_T=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),NT=()=>({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:u,mapping:d}=e,f=u.resolve(d.map(a)),h=u.resolve(d.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=Ei(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},OT=t=>e=>t(e),MT=()=>({state:t,dispatch:e})=>g2(t,e),LT=(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 Me(r.doc.resolve(Math.max(s-1,0)))),!0},DT=()=>({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};function dt(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}var PT=t=>({tr:e,state:n,dispatch:r})=>{const o=dt(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),u=i.after(s);e.delete(a,u).scrollIntoView()}return!0}return!1},BT=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},RT=()=>({state:t,dispatch:e})=>wf(t,e),VT=()=>({commands:t})=>t.keyboardShortcut("Enter"),$T=()=>({state:t,dispatch:e})=>kA(t,e);function Vf(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function ll(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Vf(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function r5(t,e,n={}){return t.find(r=>r.type===e&&ll(Object.fromEntries(Object.keys(n).map(o=>[o,r.attrs[o]])),n))}function tm(t,e,n={}){return!!r5(t,e,n)}function $f(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(d=>d.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(d=>d.type===e)||(n=n||((r=o.node.marks[0])==null?void 0:r.attrs),!r5([...o.node.marks],e,n)))return;let s=o.index,c=t.start()+o.offset,a=s+1,u=c+o.node.nodeSize;for(;s>0&&tm([...t.parent.child(s-1).marks],e,n);)s-=1,c-=t.parent.child(s).nodeSize;for(;a<t.parent.childCount&&tm([...t.parent.child(a).marks],e,n);)u+=t.parent.child(a).nodeSize,a+=1;return{from:c,to:u}}function cr(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}var FT=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=cr(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:u,to:d}=c;if(o){const f=$f(a,i,e);if(f&&f.from<=u&&f.to>=d){const h=Me.create(s,f.from,f.to);n.setSelection(h)}}return!0},zT=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 o5(t){return t instanceof Me}function so(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function i5(t,e=null){if(!e)return null;const n=Pe.atStart(t),r=Pe.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Me.create(t,so(0,o,i),so(t.content.size,o,i)):Me.create(t,so(e,o,i),so(e,o,i))}function nm(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function cl(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function UT(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var HT=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(cl()||nm())&&r.dom.focus(),UT()&&!cl()&&!nm()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!o5(n.state.selection))return s(),!0;const c=i5(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},jT=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),WT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),s5=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&s5(r)}return t};function da(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return s5(n)}function Is(t,e,n){if(t instanceof _r||t instanceof le)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,o=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return le.fromArray(t.map(c=>e.nodeFromJSON(c)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Is("",e,n)}if(o){if(n.errorOnInvalidContent){let s=!1,c="";const a=new Hv({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(s=!0,c=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Nr.fromSchema(a).parseSlice(da(t),n.parseOptions):Nr.fromSchema(a).parse(da(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const i=Nr.fromSchema(e);return n.slice?i.parseSlice(da(t),n.parseOptions).content:i.parse(da(t),n.parseOptions)}return Is("",e,n)}function KT(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof mt||o instanceof yt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,u,d)=>{s===0&&(s=d)}),t.setSelection(Pe.near(t.doc.resolve(s),n))}var YT=t=>!("type"in t),GT=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{var s;if(o){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let c;const a=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Is(e,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(v){a(v)}try{c=Is(e,i.schema,{parseOptions:u,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:i.options.enableContentCheck})}catch(v){return a(v),!1}let{from:d,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,p=!0;if((YT(c)?c:[c]).forEach(v=>{v.check(),h=h?v.isText&&v.marks.length===0:!1,p=p?v.isBlock:!1}),d===f&&p){const{parent:v}=r.doc.resolve(d);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(d-=1,f+=1)}let g;if(h){if(Array.isArray(e))g=e.map(v=>v.text||"").join("");else if(e instanceof le){let v="";e.forEach(y=>{y.text&&(v+=y.text)}),g=v}else typeof e=="object"&&e&&e.text?g=e.text:g=e;r.insertText(g,d,f)}else{g=c;const v=r.doc.resolve(d),y=v.node(),b=v.parentOffset===0,E=y.isText||y.isTextblock,C=y.content.size>0;b&&E&&C&&(d=Math.max(0,d-1)),r.replaceWith(d,f,g)}n.updateSelection&&KT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:d,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:d,text:g})}return!0},QT=()=>({state:t,dispatch:e})=>bA(t,e),ZT=()=>({state:t,dispatch:e})=>CA(t,e),JT=()=>({state:t,dispatch:e})=>c2(t,e),XT=()=>({state:t,dispatch:e})=>h2(t,e),qT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=nc(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},eI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=nc(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},tI=()=>({state:t,dispatch:e})=>vA(t,e),nI=()=>({state:t,dispatch:e})=>yA(t,e);function a5(){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))cl()||a5()?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}var oI=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=rI(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,c))});return a?.steps.forEach(u=>{const d=u.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function Rr(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?dt(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,u=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>ll(f.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((f,h)=>f+h.to-h.from,0)>=a}var iI=(t,e={})=>({state:n,dispatch:r})=>{const o=dt(t,n.schema);return Rr(n,o,e)?EA(n,r):!1},sI=()=>({state:t,dispatch:e})=>v2(t,e),aI=t=>({state:e,dispatch:n})=>{const r=dt(t,e.schema);return LA(r)(e,n)},lI=()=>({state:t,dispatch:e})=>m2(t,e);function uc(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function rm(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}var cI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=uc(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=dt(t,r.schema)),c==="mark"&&(s=cr(t,r.schema));let a=!1;return n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(d,f)=>{i&&i===d.type&&(a=!0,o&&n.setNodeMarkup(f,void 0,rm(d.attrs,e))),s&&d.marks.length&&d.marks.forEach(h=>{s===h.type&&(a=!0,o&&n.addMark(f,f+d.nodeSize,s.create(rm(h.attrs,e))))})})}),a},uI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),dI=()=>({tr:t,dispatch:e})=>{if(e){const n=new Jt(t.doc);t.setSelection(n)}return!0},fI=()=>({state:t,dispatch:e})=>d2(t,e),hI=()=>({state:t,dispatch:e})=>p2(t,e),pI=()=>({state:t,dispatch:e})=>AA(t,e),mI=()=>({state:t,dispatch:e})=>IA(t,e),gI=()=>({state:t,dispatch:e})=>TA(t,e);function dd(t,e,n={},r={}){return Is(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var vI=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:o,tr:i,dispatch:s,commands:c})=>{const{doc:a}=i;if(r.preserveWhitespace!=="full"){const u=dd(t,o.schema,r,{errorOnInvalidContent:e??o.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,u).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),c.insertContentAt({from:0,to:a.content.size},t,{parseOptions:r,errorOnInvalidContent:e??o.options.enableContentCheck})};function l5(t,e){const n=cr(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 c5(t,e){const n=new i2(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function yI(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 bI(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function CI(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 dc(t){return e=>CI(e.$from,t)}function ke(t,e,n){return t.config[e]===void 0&&t.parent?ke(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ke(t.parent,e,n):null}):t.config[e]}function Ff(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ke(e,"addExtensions",n);return r?[e,...Ff(r())]:e}).flat(10)}function zf(t,e){const n=Mo.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function u5(t){return typeof t=="function"}function We(t,e=void 0,...n){return u5(t)?e?t.bind(e)(...n):t(...n):t}function EI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function ci(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 d5(t){const e=[],{nodeExtensions:n,markExtensions:r}=ci(t),o=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(u=>u.name!=="text").map(u=>u.name),c=r.map(u=>u.name),a=[...s,...c];return t.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage,extensions:o},f=ke(u,"addGlobalAttributes",d);if(!f)return;f().forEach(p=>{let m;Array.isArray(p.types)?m=p.types:p.types==="*"?m=a:p.types==="nodes"?m=s:p.types==="marks"?m=c:m=[],m.forEach(g=>{Object.entries(p.attributes).forEach(([v,y])=>{e.push({type:g,name:v,attribute:{...i,...y}})})})})}),o.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage},f=ke(u,"addAttributes",d);if(!f)return;const h=f();Object.entries(h).forEach(([p,m])=>{const g={...i,...m};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:u.name,name:p,attribute:g})})}),e}function Yt(...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?String(i).split(" "):[],a=r[o]?r[o].split(" "):[],u=c.filter(d=>!a.includes(d));r[o]=[...a,...u].join(" ")}else if(o==="style"){const c=i?i.split(";").map(d=>d.trim()).filter(Boolean):[],a=r[o]?r[o].split(";").map(d=>d.trim()).filter(Boolean):[],u=new Map;a.forEach(d=>{const[f,h]=d.split(":").map(p=>p.trim());u.set(f,h)}),c.forEach(d=>{const[f,h]=d.split(":").map(p=>p.trim());u.set(f,h)}),r[o]=Array.from(u.entries()).map(([d,f])=>`${d}: ${f}`).join("; ")}else r[o]=i}),r},{})}function _s(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Yt(n,r),{})}function kI(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function om(t,e){return"style"in t?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):kI(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function im(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&EI(n)?!1:n!=null))}function sm(t){var e,n;const r={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(r.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function wI(t,e){var n;const r=d5(t),{nodeExtensions:o,markExtensions:i}=ci(t),s=(n=o.find(u=>ke(u,"topNode")))==null?void 0:n.name,c=Object.fromEntries(o.map(u=>{const d=r.filter(y=>y.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((y,b)=>{const E=ke(b,"extendNodeSchema",f);return{...y,...E?E(u):{}}},{}),p=im({...h,content:We(ke(u,"content",f)),marks:We(ke(u,"marks",f)),group:We(ke(u,"group",f)),inline:We(ke(u,"inline",f)),atom:We(ke(u,"atom",f)),selectable:We(ke(u,"selectable",f)),draggable:We(ke(u,"draggable",f)),code:We(ke(u,"code",f)),whitespace:We(ke(u,"whitespace",f)),linebreakReplacement:We(ke(u,"linebreakReplacement",f)),defining:We(ke(u,"defining",f)),isolating:We(ke(u,"isolating",f)),attrs:Object.fromEntries(d.map(sm))}),m=We(ke(u,"parseHTML",f));m&&(p.parseDOM=m.map(y=>om(y,d)));const g=ke(u,"renderHTML",f);g&&(p.toDOM=y=>g({node:y,HTMLAttributes:_s(y,d)}));const v=ke(u,"renderText",f);return v&&(p.toText=v),[u.name,p]})),a=Object.fromEntries(i.map(u=>{const d=r.filter(v=>v.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((v,y)=>{const b=ke(y,"extendMarkSchema",f);return{...v,...b?b(u):{}}},{}),p=im({...h,inclusive:We(ke(u,"inclusive",f)),excludes:We(ke(u,"excludes",f)),group:We(ke(u,"group",f)),spanning:We(ke(u,"spanning",f)),code:We(ke(u,"code",f)),attrs:Object.fromEntries(d.map(sm))}),m=We(ke(u,"parseHTML",f));m&&(p.parseDOM=m.map(v=>om(v,d)));const g=ke(u,"renderHTML",f);return g&&(p.toDOM=v=>g({mark:v,HTMLAttributes:_s(v,d)})),[u.name,p]}));return new Hv({topNode:s,nodes:c,marks:a})}function SI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function Gi(t){return t.sort((n,r)=>{const o=ke(n,"priority")||100,i=ke(r,"priority")||100;return o>i?-1:o<i?1:0})}function f5(t){const e=Gi(Ff(t)),n=SI(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function h5(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
1189
+ `))),0,0),t.someProp("transformPasted",h=>{c=h(c,t,!0)}),c;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=Mo.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let v=s.appendChild(document.createElement("p"));g&&v.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=Ix(n),$s&&_x(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let f=+d[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")||Nr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(a||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!Ax.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)c=Nx(U1(c,+d[1],+d[2]),d[4]);else if(c=ve.maxOpen(xx(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=U1(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t,a)}),c}const Ax=/^(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 xx(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),u;if(!a)return s=null;if(u=s.length&&i.length&&F2(a,i,c,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=z2(s[s.length-1],i.length));let d=$2(c,a);s.push(d),o=o.matchType(d.type),i=a}}),s)return le.from(s)}return t}function $2(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,le.from(t));return t}function F2(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=F2(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(le.from($2(n,t,o+1))))}}function z2(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,z2(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(le.empty,!0);return t.copy(n.append(r))}function cd(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=cd(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(le.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function U1(t,e,n){return e<t.openStart&&(t=new ve(cd(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new ve(cd(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const U2={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 H1=null;function H2(){return H1||(H1=document.implementation.createHTMLDocument("title"))}let Qc=null;function Tx(t){let e=window.trustedTypes;return e?(Qc||(Qc=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),Qc.createHTML(t)):t}function Ix(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=H2().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&U2[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Tx(t),o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function _x(t){let e=t.querySelectorAll(At?"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 Nx(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=le.from(a.create(r[c+1],o)),i++,s++}return new ve(o,i,s)}const Vt={},$t={},Ox={touchstart:!0,touchmove:!0};class Mx{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Lx(t){for(let e in Vt){let n=Vt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{Px(t,r)&&!Mf(t,r)&&(t.editable||!(r.type in $t))&&n(t,r)},Ox[e]?{passive:!0}:void 0)}Nt&&t.dom.addEventListener("input",()=>null),ud(t)}function xr(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Dx(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 ud(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Mf(t,r))})}function Mf(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function Px(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 Bx(t,e){!Mf(t,e)&&Vt[e.type]&&(t.editable||!(e.type in $t))&&Vt[e.type](t,e)}$t.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!W2(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(tr&&At&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),li&&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,to(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||Sx(t,n)?n.preventDefault():xr(t,"key")};$t.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};$t.keypress=(t,e)=>{let n=e;if(W2(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||an&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Me)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,o,i))&&t.dispatch(i()),n.preventDefault()}};function ac(t){return{left:t.clientX,top:t.clientY}}function Rx(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Lf(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 ni(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function Vx(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&xe.isSelectable(r)?(ni(t,new xe(n)),!0):!1}function $x(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof xe&&(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(xe.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?(ni(t,xe.create(t.state.doc,o)),!0):!1}function Fx(t,e,n,r,o){return Lf(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?$x(t,n):Vx(t,n))}function zx(t,e,n,r){return Lf(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function Ux(t,e,n,r){return Lf(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||Hx(t,n,r)}function Hx(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(ni(t,Me.create(r,0,r.content.size)),!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)ni(t,Me.create(r,c+1,c+1+s.content.size));else if(xe.isSelectable(s))ni(t,xe.create(r,c));else continue;return!0}}function Df(t){return ol(t)}const j2=an?"metaKey":"ctrlKey";Vt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Df(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&Rx(n,t.input.lastClick)&&!n[j2]&&t.input.lastClick.button==n.button&&(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,button:n.button};let s=t.posAtCoords(ac(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new jx(t,s,n,!!r)):(i=="doubleClick"?zx:Ux)(t,s.pos,s.inside,n)?n.preventDefault():xr(t,"pointer"))};class jx{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[j2],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let d=e.state.doc.resolve(n.pos);i=d.parent,s=d.depth?d.before():0}const c=o?null:r.target,a=c?e.docView.nearestDesc(c,!0):null;this.target=a&&a.nodeDOM.nodeType==1?a.nodeDOM:null;let{selection:u}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof xe&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&un&&!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)),xr(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(()=>rr(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(ac(e))),this.updateAllowDefault(e),this.allowDefault||!n?xr(this.view,"pointer"):Fx(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Nt&&this.mightDrag&&!this.mightDrag.node.isAtom||At&&!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)?(ni(this.view,Pe.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):xr(this.view,"pointer")}move(e){this.updateAllowDefault(e),xr(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)}}Vt.touchstart=t=>{t.input.lastTouch=Date.now(),Df(t),xr(t,"pointer")};Vt.touchmove=t=>{t.input.lastTouch=Date.now(),xr(t,"pointer")};Vt.contextmenu=t=>Df(t);function W2(t,e){return t.composing?!0:Nt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Wx=tr?5e3:-1;$t.compositionstart=$t.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof Me&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||At&&k2&&Kx(t)))t.markCursor=t.state.storedMarks||n.marks(),ol(t,!0),t.markCursor=null;else if(ol(t,!e.selection.empty),un&&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){let c=t.domSelection();c&&c.collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}K2(t,Wx)};function Kx(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}$t.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.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,K2(t,20))};function K2(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ol(t),e))}function Y2(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=Gx());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Yx(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=$A(e.focusNode,e.focusOffset),r=FA(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let o=r.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!o||!o.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function Gx(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ol(t,e=!1){if(!(tr&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Y2(t),e||t.docView&&t.docView.dirty){let n=_f(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Qx(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 As=Wt&&Or<15||li&&jA<604;Vt.copy=$t.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=As?null:n.clipboardData,s=r.content(),{dom:c,text:a}=Of(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",a)):Qx(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Zx(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Jx(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?xs(t,r.value,null,o,e):xs(t,r.textContent,r.innerHTML,o,e)},50)}function xs(t,e,n,r,o){let i=V2(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",a=>a(t,o,i||ve.empty)))return!0;if(!i)return!1;let s=Zx(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 G2(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," "):""}$t.paste=(t,e)=>{let n=e;if(t.composing&&!tr)return;let r=As?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&xs(t,G2(r),r.getData("text/html"),o,n)?n.preventDefault():Jx(t,n)};class Q2{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const Xx=an?"altKey":"ctrlKey";function Z2(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[Xx]}Vt.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(ac(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof xe?o.to-1:o.to))){if(r&&r.mightDrag)s=xe.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let f=t.docView.nearestDesc(n.target,!0);f&&f.node.type.spec.draggable&&f!=t.docView&&(s=xe.create(t.state.doc,f.posBefore))}}let c=(s||t.state.selection).content(),{dom:a,text:u,slice:d}=Of(t,c);(!n.dataTransfer.files.length||!At||E2>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(As?"Text":"text/html",a.innerHTML),n.dataTransfer.effectAllowed="copyMove",As||n.dataTransfer.setData("text/plain",u),t.dragging=new Q2(d,Z2(t,n),s)};Vt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};$t.dragover=$t.dragenter=(t,e)=>e.preventDefault();$t.drop=(t,e)=>{try{qx(t,e,t.dragging)}finally{t.dragging=null}};function qx(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(ac(e));if(!r)return;let o=t.state.doc.resolve(r.pos),i=n&&n.slice;i?t.someProp("transformPasted",p=>{i=p(i,t,!1)}):i=V2(t,G2(e.dataTransfer),As?null:e.dataTransfer.getData("text/html"),!1,o);let s=!!(n&&Z2(t,e));if(t.someProp("handleDrop",p=>p(t,e,i||ve.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let c=i?e2(t.state.doc,o.pos,i):o.pos;c==null&&(c=o.pos);let a=t.state.tr;if(s){let{node:p}=n;p?p.replace(a):a.deleteSelection()}let u=a.mapping.map(c),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,f=a.doc;if(d?a.replaceRangeWith(u,u,i.content.firstChild):a.replaceRange(u,u,i),a.doc.eq(f))return;let h=a.doc.resolve(u);if(d&&xe.isSelectable(i.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(i.content.firstChild))a.setSelection(new xe(h));else{let p=a.mapping.map(c);a.mapping.maps[a.mapping.maps.length-1].forEach((m,g,v,y)=>p=y),a.setSelection(Nf(t,h,a.doc.resolve(p)))}t.focus(),t.dispatch(a.setMeta("uiEvent","drop"))}Vt.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())&&rr(t)},20))};Vt.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)};Vt.beforeinput=(t,e)=>{if(At&&tr&&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,to(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 $t)Vt[t]=$t[t];function Ts(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 il{constructor(e,n){this.toDOM=e,this.spec=n||go,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 Pt(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof il&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ts(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Lr{constructor(e,n){this.attrs=e,this.spec=n||go}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 Pt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Lr&&Ts(this.attrs,e.attrs)&&Ts(this.spec,e.spec)}static is(e){return e.type instanceof Lr}destroy(){}}class Pf{constructor(e,n){this.attrs=e,this.spec=n||go}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 Pt(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 Pf&&Ts(this.attrs,e.attrs)&&Ts(this.spec,e.spec)}destroy(){}}class Pt{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Pt(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 Pt(e,e,new il(n,r))}static inline(e,n,r,o){return new Pt(e,n,new Lr(r,o))}static node(e,n,r,o){return new Pt(e,n,new Pf(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Lr}get widget(){return this.type instanceof il}}const Yo=[],go={};class Je{constructor(e,n){this.local=e.length?e:Yo,this.children=n.length?n:Yo}static create(e,n){return n.length?sl(n,e,0,go):Tt}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==Tt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||go)}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?eT(this.children,s||[],e,n,r,o,i):s?new Je(s.sort(vo),Yo):Tt}add(e,n){return n.length?this==Tt?Je.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,a)=>{let u=a+r,d;if(d=X2(n,c,u)){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,d,u+1):o.splice(i,0,a,a+c.nodeSize,sl(d,c,u+1,go)),i+=3}});let s=J2(i?q2(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new Je(s.length?this.local.concat(s).sort(vo):this.local,o||this.children)}remove(e){return e.length==0||this==Tt?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 d=0,f;d<e.length;d++)(f=e[d])&&f.from>c&&f.to<a&&(e[d]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let u=r[i+2].removeInner(s,c+1);u!=Tt?r[i+2]=u:(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 Je(o,r):Tt}forChild(e,n){if(this==Tt)return this;if(n.isLeaf)return Je.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 Lr){let u=Math.max(i,a.from)-i,d=Math.min(s,a.to)-i;u<d&&(o||(o=[])).push(a.copy(u,d))}}if(o){let c=new Je(o.sort(vo),Yo);return r?new kr([c,r]):c}return r||Tt}eq(e){if(this==e)return!0;if(!(e instanceof Je)||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 Bf(this.localsInner(e))}localsInner(e){if(this==Tt)return Yo;if(e.inlineContent||!this.local.some(Lr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Lr||n.push(this.local[r]);return n}forEachSet(e){e(this)}}Je.empty=new Je([],[]);Je.removeOverlap=Bf;const Tt=Je.empty;class kr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,go));return kr.from(r)}forChild(e,n){if(n.isLeaf)return Je.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Tt&&(i instanceof kr?r=r.concat(i.members):r.push(i))}return kr.from(r)}eq(e){if(!(e instanceof kr)||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?Bf(r?n:n.sort(vo)):Yo}static from(e){switch(e.length){case 0:return Tt;case 1:return e[0];default:return new kr(e.every(n=>n instanceof Je)?e:e.reduce((n,r)=>n.concat(r instanceof Je?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function eT(t,e,n,r,o,i,s){let c=t.slice();for(let u=0,d=i;u<n.maps.length;u++){let f=0;n.maps[u].forEach((h,p,m,g)=>{let v=g-m-(p-h);for(let y=0;y<c.length;y+=3){let b=c[y+1];if(b<0||h>b+d-f)continue;let E=c[y]+d-f;p>=E?c[y+1]=h<=E?-2:-1:h>=d&&v&&(c[y]+=v,c[y+1]+=v)}f+=v}),d=n.maps[u].map(d,-1)}let a=!1;for(let u=0;u<c.length;u+=3)if(c[u+1]<0){if(c[u+1]==-2){a=!0,c[u+1]=-1;continue}let d=n.map(t[u]+i),f=d-o;if(f<0||f>=r.content.size){a=!0;continue}let h=n.map(t[u+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),v=r.maybeChild(m);if(v&&g==f&&g+v.nodeSize==p){let y=c[u+2].mapInner(n,v,d+1,t[u]+i+1,s);y!=Tt?(c[u]=f,c[u+1]=p,c[u+2]=y):(c[u+1]=-2,a=!0)}else a=!0}if(a){let u=tT(c,t,e,n,o,i,s),d=sl(u,r,0,s);e=d.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<d.children.length;f+=3){let p=d.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,d.children[f],d.children[f+1],d.children[f+2])}}return new Je(e.sort(vo),c)}function J2(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 Pt(o.from+e,o.to+e,o.type))}return n}function tT(t,e,n,r,o,i,s){function c(a,u){for(let d=0;d<a.local.length;d++){let f=a.local[d].map(r,o,u);f?n.push(f):s.onRemove&&s.onRemove(a.local[d].spec)}for(let d=0;d<a.children.length;d+=3)c(a.children[d+2],a.children[d]+u+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 X2(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 q2(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function sl(t,e,n,r){let o=[],i=!1;e.forEach((c,a)=>{let u=X2(t,c,a+n);if(u){i=!0;let d=sl(u,c,n+a+1,r);d!=Tt&&o.push(a,a+c.nodeSize,d)}});let s=J2(i?q2(t):t,-n).sort(vo);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 Je(s,o):Tt}function vo(t,e){return t.from-e.from||t.to-e.to}function Bf(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),j1(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),j1(e,o,r.copy(i.from,r.to)));break}}}return e}function j1(t,e,n){for(;e<t.length&&vo(n,t[e])>0;)e++;t.splice(e,0,n)}function Zc(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Tt&&e.push(r)}),t.cursorWrapper&&e.push(Je.create(t.state.doc,[t.cursorWrapper.deco])),kr.from(e)}const nT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},rT=Wt&&Or<=11;class oT{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 iT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new oT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Wt&&Or<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():Nt&&e.composing&&r.some(o=>o.type=="childList"&&o.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),rT&&(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,nT)),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(B1(this.view)){if(this.suppressingSelectionUpdates)return rr(this.view);if(Wt&&Or<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&xo(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=ai(i))n.add(i);for(let i=e.anchorNode;i;i=ai(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)&&B1(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,a=[];if(e.editable)for(let d=0;d<n.length;d++){let f=this.registerMutation(n[d],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(a.some(d=>d.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let d of a)if(d.nodeName=="BR"&&d.parentNode){let f=d.nextSibling;f&&f.nodeType==1&&f.contentEditable=="false"&&d.parentNode.removeChild(d)}}else if(un&&a.length){let d=a.filter(f=>f.nodeName=="BR");if(d.length==2){let[f,h]=d;f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}else{let{focusNode:f}=this.currentSelection;for(let h of d){let p=h.parentNode;p&&p.nodeName=="LI"&&(!f||lT(e,f)!=p)&&h.remove()}}}let u=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ic(r)&&(u=_f(e))&&u.eq(Pe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,rr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),sT(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,cT(e,a)),this.handleDOMChange(i,s,c,a),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||rr(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 d=0;d<e.addedNodes.length;d++){let f=e.addedNodes[d];n.push(f),f.nodeType==3&&(this.lastChangedTextNode=f)}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(Wt&&Or<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:f,nextSibling:h}=e.addedNodes[d];(!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?wt(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),a=i&&i.parentNode==e.target?wt(i):e.target.childNodes.length,u=r.localPosFromDOM(e.target,a,1);return{from:c,to:u}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let W1=new WeakMap,K1=!1;function sT(t){if(!W1.has(t)&&(W1.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=un,K1)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."),K1=!0}}function Y1(t,e){let n=e.startContainer,r=e.startOffset,o=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return xo(s.node,s.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function aT(t,e){if(e.getComposedRanges){let o=e.getComposedRanges(t.root)[0];if(o)return Y1(t,o)}let n;function r(o){o.preventDefault(),o.stopImmediatePropagation(),n=o.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?Y1(t,n):null}function lT(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function cT(t,e){var n;let{focusNode:r,focusOffset:o}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let c=s;for(;;){let a=c.firstChild;if(!a||a.nodeType!=1||a.contentEditable=="false"||/^(BR|IMG)$/.test(a.nodeName))break;c=a}c.insertBefore(i,c.firstChild),r==i&&t.domSelection().collapse(i,o)}else i.parentNode.removeChild(i)}}function uT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),a=t.domSelectionRange(),u,d=a.anchorNode;if(d&&t.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:a.anchorOffset}],ic(a)||u.push({node:a.focusNode,offset:a.focusOffset})),At&&t.input.lastKeyCode===8)for(let v=i;v>o;v--){let y=r.childNodes[v-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){i=v;break}if(!b||b.size)break}let f=t.state.doc,h=t.someProp("domParser")||Nr.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:u,ruleFromNode:dT,context:p});if(u&&u[0].pos!=null){let v=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=v),m={anchor:v+s,head:y+s}}return{doc:g,sel:m,from:s,to:c}}function dT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Nt&&/^(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||Nt&&/^(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 fT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function hT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let T=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,D=_f(t,T);if(D&&!t.state.selection.eq(D)){if(At&&tr&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",V=>V(t,to(13,"Enter"))))return;let Y=t.state.tr.setSelection(D);T=="pointer"?Y.setMeta("pointer",!0):T=="key"&&Y.scrollIntoView(),i&&Y.setMeta("composition",i),t.dispatch(Y)}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,u=uT(t,e,n),d=t.state.doc,f=d.slice(u.from,u.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=gT(f.content,u.doc.content,u.from,h,p);if(m&&t.input.domChangeCount++,(li&&t.input.lastIOSEnter>Date.now()-225||tr)&&o.some(T=>T.nodeType==1&&!fT.test(T.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",T=>T(t,to(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&a instanceof Me&&!a.empty&&a.$head.sameParent(a.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))m={start:a.from,endA:a.to,endB:a.to};else{if(u.sel){let T=G1(t,t.state.doc,u.sel);if(T&&!T.eq(t.state.selection)){let D=t.state.tr.setSelection(T);i&&D.setMeta("composition",i),t.dispatch(D)}}return}t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Me&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Wt&&Or<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>u.from&&u.doc.textBetween(m.start-u.from-1,m.start-u.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let g=u.doc.resolveNoCache(m.start-u.from),v=u.doc.resolveNoCache(m.endB-u.from),y=d.resolve(m.start),b=g.sameParent(v)&&g.parent.inlineContent&&y.end()>=m.endA;if((li&&t.input.lastIOSEnter>Date.now()-225&&(!b||o.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!b&&g.pos<u.doc.content.size&&(!g.sameParent(v)||!g.parent.inlineContent)&&g.pos<v.pos&&!/\S/.test(u.doc.textBetween(g.pos,v.pos,"","")))&&t.someProp("handleKeyDown",T=>T(t,to(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&mT(d,m.start,m.endA,g,v)&&t.someProp("handleKeyDown",T=>T(t,to(8,"Backspace")))){tr&&At&&t.domObserver.suppressSelectionUpdates();return}At&&m.endB==m.start&&(t.input.lastChromeDelete=Date.now()),tr&&!b&&g.start()!=v.start()&&v.parentOffset==0&&g.depth==v.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==m.endA&&(m.endB-=2,v=u.doc.resolveNoCache(m.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(T){return T(t,to(13,"Enter"))})},20));let E=m.start,C=m.endA,S=T=>{let D=T||t.state.tr.replace(E,C,u.doc.slice(m.start-u.from,m.endB-u.from));if(u.sel){let Y=G1(t,D.doc,u.sel);Y&&!(At&&t.composing&&Y.empty&&(m.start!=m.endB||t.input.lastChromeDelete<Date.now()-100)&&(Y.head==E||Y.head==D.mapping.map(C)-1)||Wt&&Y.empty&&Y.head==E)&&D.setSelection(Y)}return i&&D.setMeta("composition",i),D.scrollIntoView()},_;if(b)if(g.pos==v.pos){Wt&&Or<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>rr(t),20));let T=S(t.state.tr.delete(E,C)),D=d.resolve(m.start).marksAcross(d.resolve(m.endA));D&&T.ensureMarks(D),t.dispatch(T)}else if(m.endA==m.endB&&(_=pT(g.parent.content.cut(g.parentOffset,v.parentOffset),y.parent.content.cut(y.parentOffset,m.endA-y.start())))){let T=S(t.state.tr);_.type=="add"?T.addMark(E,C,_.mark):T.removeMark(E,C,_.mark),t.dispatch(T)}else if(g.parent.child(g.index()).isText&&g.index()==v.index()-(v.textOffset?0:1)){let T=g.parent.textBetween(g.parentOffset,v.parentOffset),D=()=>S(t.state.tr.insertText(T,E,C));t.someProp("handleTextInput",Y=>Y(t,E,C,T,D))||t.dispatch(D())}else t.dispatch(S());else t.dispatch(S())}function G1(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Nf(t,e.resolve(n.anchor),e.resolve(n.head))}function pT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,a;for(let d=0;d<r.length;d++)o=r[d].removeFromSet(o);for(let d=0;d<n.length;d++)i=n[d].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",a=d=>d.mark(c.addToSet(d.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",a=d=>d.mark(c.removeFromSet(d.marks));else return null;let u=[];for(let d=0;d<e.childCount;d++)u.push(a(e.child(d)));if(le.from(u).eq(t))return{mark:c,type:s}}function mT(t,e,n,r,o){if(n-e<=o.pos-r.pos||Jc(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(!r.parent.isTextblock){let c=i.nodeAfter;return c!=null&&n==e+c.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Jc(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Jc(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Jc(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 gT(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&&Q1(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&&Q1(t.textBetween(i-1,i+1))&&(i+=a?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function Q1(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 e5{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 Mx,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(em),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=X1(this),J1(this),this.nodeViews=q1(this),this.docView=N1(this.state.doc,Z1(this),Zc(this),this.dom,this),this.domObserver=new iT(this,(r,o,i,s)=>hT(this,r,o,i,s)),this.domObserver.start(),Lx(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&&ud(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(em),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&&(Y2(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=q1(this);yT(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&ud(this),this.editable=X1(this),J1(this);let a=Zc(this),u=Z1(this),d=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,u,a);(f||!e.selection.eq(o.selection))&&(s=!0);let h=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&YA(this);if(s){this.domObserver.stop();let p=f&&(Wt||At)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&vT(o.selection,e.selection);if(f){let m=At?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Yx(this)),(i||!this.docView.update(e.doc,u,a,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=N1(e.doc,u,a,this.dom,this)),m&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&vx(this))?rr(this,p):(P2(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),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&GA(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof xe){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&S1(this,n.getBoundingClientRect(),e)}else S1(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 Q2(e.slice,e.move,o<0?void 0:xe.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(Wt){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&&QA(this.dom),rr(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 ex(this,e)}coordsAtPos(e,n=1){return T2(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 ix(this,n||this.state,e)}pasteHTML(e,n){return xs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return xs(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Of(this,e)}destroy(){this.docView&&(Dx(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Zc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,RA())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Bx(this,e)}domSelectionRange(){let e=this.domSelection();return e?Nt&&this.root.nodeType===11&&UA(this.dom.ownerDocument)==this.dom&&aT(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}e5.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Z1(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"),[Pt.node(0,t.state.doc.content.size,e)]}function J1(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:Pt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function X1(t){return!t.someProp("editable",e=>e(t.state)===!1)}function vT(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 q1(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 yT(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 em(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")}var Br={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:"'"},al={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},bT=typeof navigator<"u"&&/Mac/.test(navigator.platform),CT=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var St=0;St<10;St++)Br[48+St]=Br[96+St]=String(St);for(var St=1;St<=24;St++)Br[St+111]="F"+St;for(var St=65;St<=90;St++)Br[St]=String.fromCharCode(St+32),al[St]=String.fromCharCode(St);for(var Xc in Br)al.hasOwnProperty(Xc)||(al[Xc]=Br[Xc]);function ET(t){var e=bT&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||CT&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?al:Br)[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 kT=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),wT=typeof navigator<"u"&&/Win/.test(navigator.platform);function ST(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))kT?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 AT(t){let e=Object.create(null);for(let n in t)e[ST(n)]=t[n];return e}function qc(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 xT(t){return new rt({props:{handleKeyDown:t5(t)}})}function t5(t){let e=AT(t);return function(n,r){let o=ET(r),i,s=e[qc(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[qc(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(wT&&r.ctrlKey&&r.altKey)&&(i=Br[r.keyCode])&&i!=o){let c=e[qc(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}var TT=Object.defineProperty,Rf=(t,e)=>{for(var n in e)TT(t,n,{get:e[n],enumerable:!0})};function lc(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),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}}}var cc=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:o}=n,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,c])=>[s,(...u)=>{const d=c(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s=[],c=!!t,a=t||o.tr,u=()=>(!c&&e&&!a.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(a),s.every(f=>f===!0)),d={...Object.fromEntries(Object.entries(n).map(([f,h])=>[f,(...m)=>{const g=this.buildProps(a,e),v=h(...m)(g);return s.push(v),d}])),run:u};return d}createCan(t){const{rawCommands:e,state:n}=this,r=!1,o=t||n.tr,i=this.buildProps(o,r);return{...Object.fromEntries(Object.entries(e).map(([c,a])=>[c,(...u)=>a(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,s={tr:t,editor:r,view:i,state:lc({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([c,a])=>[c,(...u)=>a(...u)(s)]))}};return s}},n5={};Rf(n5,{blur:()=>IT,clearContent:()=>_T,clearNodes:()=>NT,command:()=>OT,createParagraphNear:()=>MT,cut:()=>LT,deleteCurrentNode:()=>DT,deleteNode:()=>PT,deleteRange:()=>BT,deleteSelection:()=>RT,enter:()=>VT,exitCode:()=>$T,extendMarkRange:()=>FT,first:()=>zT,focus:()=>HT,forEach:()=>jT,insertContent:()=>WT,insertContentAt:()=>GT,joinBackward:()=>JT,joinDown:()=>ZT,joinForward:()=>XT,joinItemBackward:()=>qT,joinItemForward:()=>eI,joinTextblockBackward:()=>tI,joinTextblockForward:()=>nI,joinUp:()=>QT,keyboardShortcut:()=>oI,lift:()=>iI,liftEmptyBlock:()=>sI,liftListItem:()=>aI,newlineInCode:()=>lI,resetAttributes:()=>cI,scrollIntoView:()=>uI,selectAll:()=>dI,selectNodeBackward:()=>fI,selectNodeForward:()=>hI,selectParentNode:()=>pI,selectTextblockEnd:()=>mI,selectTextblockStart:()=>gI,setContent:()=>vI,setMark:()=>VI,setMeta:()=>$I,setNode:()=>FI,setNodeSelection:()=>zI,setTextDirection:()=>UI,setTextSelection:()=>HI,sinkListItem:()=>jI,splitBlock:()=>WI,splitListItem:()=>KI,toggleList:()=>YI,toggleMark:()=>GI,toggleNode:()=>QI,toggleWrap:()=>ZI,undoInputRule:()=>JI,unsetAllMarks:()=>XI,unsetMark:()=>qI,unsetTextDirection:()=>e_,updateAttributes:()=>t_,wrapIn:()=>n_,wrapInList:()=>r_});var IT=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),_T=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),NT=()=>({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:u,mapping:d}=e,f=u.resolve(d.map(a)),h=u.resolve(d.map(a+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=Ei(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},OT=t=>e=>t(e),MT=()=>({state:t,dispatch:e})=>g2(t,e),LT=(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 Me(r.doc.resolve(Math.max(s-1,0)))),!0},DT=()=>({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};function dt(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}var PT=t=>({tr:e,state:n,dispatch:r})=>{const o=dt(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),u=i.after(s);e.delete(a,u).scrollIntoView()}return!0}return!1},BT=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},RT=()=>({state:t,dispatch:e})=>wf(t,e),VT=()=>({commands:t})=>t.keyboardShortcut("Enter"),$T=()=>({state:t,dispatch:e})=>kA(t,e);function Vf(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function ll(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Vf(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function r5(t,e,n={}){return t.find(r=>r.type===e&&ll(Object.fromEntries(Object.keys(n).map(o=>[o,r.attrs[o]])),n))}function tm(t,e,n={}){return!!r5(t,e,n)}function $f(t,e,n){var r;if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(d=>d.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(d=>d.type===e)||(n=n||((r=o.node.marks[0])==null?void 0:r.attrs),!r5([...o.node.marks],e,n)))return;let s=o.index,c=t.start()+o.offset,a=s+1,u=c+o.node.nodeSize;for(;s>0&&tm([...t.parent.child(s-1).marks],e,n);)s-=1,c-=t.parent.child(s).nodeSize;for(;a<t.parent.childCount&&tm([...t.parent.child(a).marks],e,n);)u+=t.parent.child(a).nodeSize,a+=1;return{from:c,to:u}}function cr(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}var FT=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=cr(t,r.schema),{doc:s,selection:c}=n,{$from:a,from:u,to:d}=c;if(o){const f=$f(a,i,e);if(f&&f.from<=u&&f.to>=d){const h=Me.create(s,f.from,f.to);n.setSelection(h)}}return!0},zT=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 o5(t){return t instanceof Me}function so(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function i5(t,e=null){if(!e)return null;const n=Pe.atStart(t),r=Pe.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Me.create(t,so(0,o,i),so(t.content.size,o,i)):Me.create(t,so(e,o,i),so(e,o,i))}function nm(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function cl(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function UT(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var HT=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(cl()||nm())&&r.dom.focus(),UT()&&!cl()&&!nm()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(i&&t===null&&!o5(n.state.selection))return s(),!0;const c=i5(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},jT=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),WT=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),s5=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&s5(r)}return t};function da(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return s5(n)}function Is(t,e,n){if(t instanceof _r||t instanceof le)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,o=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return le.fromArray(t.map(c=>e.nodeFromJSON(c)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Is("",e,n)}if(o){if(n.errorOnInvalidContent){let s=!1,c="";const a=new Hv({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(s=!0,c=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Nr.fromSchema(a).parseSlice(da(t),n.parseOptions):Nr.fromSchema(a).parse(da(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const i=Nr.fromSchema(e);return n.slice?i.parseSlice(da(t),n.parseOptions).content:i.parse(da(t),n.parseOptions)}return Is("",e,n)}function KT(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof mt||o instanceof yt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,a,u,d)=>{s===0&&(s=d)}),t.setSelection(Pe.near(t.doc.resolve(s),n))}var YT=t=>!("type"in t),GT=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{var s;if(o){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let c;const a=v=>{i.emit("contentError",{editor:i,error:v,disableCollaboration:()=>{"collaboration"in i.storage&&typeof i.storage.collaboration=="object"&&i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Is(e,i.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(v){a(v)}try{c=Is(e,i.schema,{parseOptions:u,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:i.options.enableContentCheck})}catch(v){return a(v),!1}let{from:d,to:f}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},h=!0,p=!0;if((YT(c)?c:[c]).forEach(v=>{v.check(),h=h?v.isText&&v.marks.length===0:!1,p=p?v.isBlock:!1}),d===f&&p){const{parent:v}=r.doc.resolve(d);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(d-=1,f+=1)}let g;if(h){if(Array.isArray(e))g=e.map(v=>v.text||"").join("");else if(e instanceof le){let v="";e.forEach(y=>{y.text&&(v+=y.text)}),g=v}else typeof e=="object"&&e&&e.text?g=e.text:g=e;r.insertText(g,d,f)}else{g=c;const v=r.doc.resolve(d),y=v.node(),b=v.parentOffset===0,E=y.isText||y.isTextblock,C=y.content.size>0;b&&E&&C&&(d=Math.max(0,d-1)),r.replaceWith(d,f,g)}n.updateSelection&&KT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:d,text:g}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:d,text:g})}return!0},QT=()=>({state:t,dispatch:e})=>bA(t,e),ZT=()=>({state:t,dispatch:e})=>CA(t,e),JT=()=>({state:t,dispatch:e})=>c2(t,e),XT=()=>({state:t,dispatch:e})=>h2(t,e),qT=()=>({state:t,dispatch:e,tr:n})=>{try{const r=nc(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},eI=()=>({state:t,dispatch:e,tr:n})=>{try{const r=nc(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},tI=()=>({state:t,dispatch:e})=>vA(t,e),nI=()=>({state:t,dispatch:e})=>yA(t,e);function a5(){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))cl()||a5()?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}var oI=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=rI(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,c))});return a?.steps.forEach(u=>{const d=u.map(r.mapping);d&&o&&r.maybeStep(d)}),!0};function Rr(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?dt(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,u=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>ll(f.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((f,h)=>f+h.to-h.from,0)>=a}var iI=(t,e={})=>({state:n,dispatch:r})=>{const o=dt(t,n.schema);return Rr(n,o,e)?EA(n,r):!1},sI=()=>({state:t,dispatch:e})=>v2(t,e),aI=t=>({state:e,dispatch:n})=>{const r=dt(t,e.schema);return LA(r)(e,n)},lI=()=>({state:t,dispatch:e})=>m2(t,e);function uc(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function rm(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}var cI=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=uc(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=dt(t,r.schema)),c==="mark"&&(s=cr(t,r.schema));let a=!1;return n.selection.ranges.forEach(u=>{r.doc.nodesBetween(u.$from.pos,u.$to.pos,(d,f)=>{i&&i===d.type&&(a=!0,o&&n.setNodeMarkup(f,void 0,rm(d.attrs,e))),s&&d.marks.length&&d.marks.forEach(h=>{s===h.type&&(a=!0,o&&n.addMark(f,f+d.nodeSize,s.create(rm(h.attrs,e))))})})}),a},uI=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),dI=()=>({tr:t,dispatch:e})=>{if(e){const n=new Jt(t.doc);t.setSelection(n)}return!0},fI=()=>({state:t,dispatch:e})=>d2(t,e),hI=()=>({state:t,dispatch:e})=>p2(t,e),pI=()=>({state:t,dispatch:e})=>AA(t,e),mI=()=>({state:t,dispatch:e})=>IA(t,e),gI=()=>({state:t,dispatch:e})=>TA(t,e);function dd(t,e,n={},r={}){return Is(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var vI=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:o,tr:i,dispatch:s,commands:c})=>{const{doc:a}=i;if(r.preserveWhitespace!=="full"){const u=dd(t,o.schema,r,{errorOnInvalidContent:e??o.options.enableContentCheck});return s&&i.replaceWith(0,a.content.size,u).setMeta("preventUpdate",!n),!0}return s&&i.setMeta("preventUpdate",!n),c.insertContentAt({from:0,to:a.content.size},t,{parseOptions:r,errorOnInvalidContent:e??o.options.enableContentCheck})};function l5(t,e){const n=cr(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 c5(t,e){const n=new i2(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function yI(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 bI(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function CI(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 dc(t){return e=>CI(e.$from,t)}function ke(t,e,n){return t.config[e]===void 0&&t.parent?ke(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ke(t.parent,e,n):null}):t.config[e]}function Ff(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ke(e,"addExtensions",n);return r?[e,...Ff(r())]:e}).flat(10)}function zf(t,e){const n=Mo.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function u5(t){return typeof t=="function"}function We(t,e=void 0,...n){return u5(t)?e?t.bind(e)(...n):t(...n):t}function EI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function ci(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 d5(t){const e=[],{nodeExtensions:n,markExtensions:r}=ci(t),o=[...n,...r],i={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(u=>u.name!=="text").map(u=>u.name),c=r.map(u=>u.name),a=[...s,...c];return t.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage,extensions:o},f=ke(u,"addGlobalAttributes",d);if(!f)return;f().forEach(p=>{let m;Array.isArray(p.types)?m=p.types:p.types==="*"?m=a:p.types==="nodes"?m=s:p.types==="marks"?m=c:m=[],m.forEach(g=>{Object.entries(p.attributes).forEach(([v,y])=>{e.push({type:g,name:v,attribute:{...i,...y}})})})})}),o.forEach(u=>{const d={name:u.name,options:u.options,storage:u.storage},f=ke(u,"addAttributes",d);if(!f)return;const h=f();Object.entries(h).forEach(([p,m])=>{const g={...i,...m};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:u.name,name:p,attribute:g})})}),e}function Yt(...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?String(i).split(" "):[],a=r[o]?r[o].split(" "):[],u=c.filter(d=>!a.includes(d));r[o]=[...a,...u].join(" ")}else if(o==="style"){const c=i?i.split(";").map(d=>d.trim()).filter(Boolean):[],a=r[o]?r[o].split(";").map(d=>d.trim()).filter(Boolean):[],u=new Map;a.forEach(d=>{const[f,h]=d.split(":").map(p=>p.trim());u.set(f,h)}),c.forEach(d=>{const[f,h]=d.split(":").map(p=>p.trim());u.set(f,h)}),r[o]=Array.from(u.entries()).map(([d,f])=>`${d}: ${f}`).join("; ")}else r[o]=i}),r},{})}function _s(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>Yt(n,r),{})}function kI(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function om(t,e){return"style"in t?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):kI(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function im(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&EI(n)?!1:n!=null))}function sm(t){var e,n;const r={};return!((e=t?.attribute)!=null&&e.isRequired)&&"default"in(t?.attribute||{})&&(r.default=t.attribute.default),((n=t?.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function wI(t,e){var n;const r=d5(t),{nodeExtensions:o,markExtensions:i}=ci(t),s=(n=o.find(u=>ke(u,"topNode")))==null?void 0:n.name,c=Object.fromEntries(o.map(u=>{const d=r.filter(y=>y.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((y,b)=>{const E=ke(b,"extendNodeSchema",f);return{...y,...E?E(u):{}}},{}),p=im({...h,content:We(ke(u,"content",f)),marks:We(ke(u,"marks",f)),group:We(ke(u,"group",f)),inline:We(ke(u,"inline",f)),atom:We(ke(u,"atom",f)),selectable:We(ke(u,"selectable",f)),draggable:We(ke(u,"draggable",f)),code:We(ke(u,"code",f)),whitespace:We(ke(u,"whitespace",f)),linebreakReplacement:We(ke(u,"linebreakReplacement",f)),defining:We(ke(u,"defining",f)),isolating:We(ke(u,"isolating",f)),attrs:Object.fromEntries(d.map(sm))}),m=We(ke(u,"parseHTML",f));m&&(p.parseDOM=m.map(y=>om(y,d)));const g=ke(u,"renderHTML",f);g&&(p.toDOM=y=>g({node:y,HTMLAttributes:_s(y,d)}));const v=ke(u,"renderText",f);return v&&(p.toText=v),[u.name,p]})),a=Object.fromEntries(i.map(u=>{const d=r.filter(v=>v.type===u.name),f={name:u.name,options:u.options,storage:u.storage,editor:e},h=t.reduce((v,y)=>{const b=ke(y,"extendMarkSchema",f);return{...v,...b?b(u):{}}},{}),p=im({...h,inclusive:We(ke(u,"inclusive",f)),excludes:We(ke(u,"excludes",f)),group:We(ke(u,"group",f)),spanning:We(ke(u,"spanning",f)),code:We(ke(u,"code",f)),attrs:Object.fromEntries(d.map(sm))}),m=We(ke(u,"parseHTML",f));m&&(p.parseDOM=m.map(v=>om(v,d)));const g=ke(u,"renderHTML",f);return g&&(p.toDOM=v=>g({mark:v,HTMLAttributes:_s(v,d)})),[u.name,p]}));return new Hv({topNode:s,nodes:c,marks:a})}function SI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function Gi(t){return t.sort((n,r)=>{const o=ke(n,"priority")||100,i=ke(r,"priority")||100;return o>i?-1:o<i?1:0})}function f5(t){const e=Gi(Ff(t)),n=SI(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function h5(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
1190
1190
 
1191
1191
  `,textSerializers:s={}}=n||{};let c="";return t.nodesBetween(r,o,(a,u,d,f)=>{var h;a.isBlock&&u>r&&(c+=i);const p=s?.[a.type.name];if(p)return d&&(c+=p({node:a,pos:u,parent:d,index:f,range:e})),!1;a.isText&&(c+=(h=a?.text)==null?void 0:h.slice(Math.max(r,u)-u,o-u))}),c}function AI(t,e){const n={from:0,to:t.content.size};return h5(t,n,e)}function p5(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function xI(t,e){const n=dt(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 m5(t,e){const n=uc(typeof e=="string"?e:e.name,t.schema);return n==="node"?xI(t,e):n==="mark"?l5(t,e):{}}function TI(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 II(t){const e=TI(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 g5(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 u=e.slice(i).map(c,-1),d=e.slice(i).map(a),f=e.invert().map(u,-1),h=e.invert().map(d);r.push({oldRange:{from:f,to:h},newRange:{from:u,to:d}})})}),II(r)}function Uf(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t),s=$f(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{!o||o?.nodeSize===void 0||r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}var _I=(t,e,n,r=20)=>{const o=t.doc.resolve(n);let i=r,s=null;for(;i>0&&s===null;){const c=o.node(i);c?.type.name===e?s=c:i-=1}return[s,i]};function _i(t,e){return e.nodes[t]||e.marks[t]||null}function Pa(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}))}var NI=(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,u;const d=((u=(a=o.type.spec).toText)==null?void 0:u.call(a,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?d:d.slice(0,Math.max(0,r-i))}),n};function fd(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?cr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>ll(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,v)=>{if(i&&g.inlineContent&&!g.type.allowsMarkType(i))return!1;if(!g.isText&&!g.marks.length)return;const y=Math.max(p,v),b=Math.min(m,v+g.nodeSize),E=b-y;s+=E,c.push(...g.marks.map(C=>({mark:C,from:y,to:b})))})}),s===0)return!1;const a=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>ll(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),u=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+u:a)>=s}function OI(t,e,n={}){if(!e)return Rr(t,null,n)||fd(t,null,n);const r=uc(e,t.schema);return r==="node"?Rr(t,e,n):r==="mark"?fd(t,e,n):!1}var MI=(t,e)=>{const{$from:n,$to:r,$anchor:o}=t.selection;if(e){const i=dc(c=>c.type.name===e)(t.selection);if(!i)return!1;const s=t.doc.resolve(i.pos+1);return o.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},LI=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function am(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function lm(t,e){const{nodeExtensions:n}=ci(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=We(ke(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function fc(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let o=!0;return t.content.forEach(i=>{o!==!1&&(fc(i,{ignoreWhitespace:n,checkChildren:e})||(o=!1))}),o}return!1}function DI(t){return t instanceof xe}var v5=class y5{constructor(e){this.position=e}static fromJSON(e){return new y5(e.position)}toJSON(){return{position:this.position}}};function PI(t,e){const n=e.mapping.mapResult(t.position);return{position:new v5(n.pos),mapResult:n}}function BI(t){return new v5(t)}function RI(t,e,n){var r;const{selection:o}=e;let i=null;if(o5(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!=null?r:i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(c)||!c.some(u=>u.type.excludes(n)))}const{ranges:s}=o;return s.some(({$from:c,$to:a})=>{let u=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,a.pos,(d,f,h)=>{if(u)return!1;if(d.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(g=>g.type.excludes(n));u=p&&m}return!u}),u})}var VI=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,a=cr(t,r.schema);if(o)if(s){const u=l5(r,a);n.addStoredMark(a.create({...u,...e}))}else c.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;r.doc.nodesBetween(d,f,(h,p)=>{const m=Math.max(p,d),g=Math.min(p+h.nodeSize,f);h.marks.find(y=>y.type===a)?h.marks.forEach(y=>{a===y.type&&n.addMark(m,g,a.create({...y.attrs,...e}))}):n.addMark(m,g,a.create(e))})});return RI(r,n,a)},$I=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),FI=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=dt(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?o().command(({commands:c})=>E1(i,{...s,...e})(n)?!0:c.clearNodes()).command(({state:c})=>E1(i,{...s,...e})(c,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},zI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=so(t,0,r.content.size),i=xe.create(r,o);e.setSelection(i)}return!0},UI=(t,e)=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=r;let s,c;return typeof e=="number"?(s=e,c=e):e&&"from"in e&&"to"in e?(s=e.from,c=e.to):(s=i.from,c=i.to),o&&n.doc.nodesBetween(s,c,(a,u)=>{a.isText||n.setNodeMarkup(u,void 0,{...a.attrs,dir:t})}),!0},HI=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Me.atStart(r).from,c=Me.atEnd(r).to,a=so(o,s,c),u=so(i,s,c),d=Me.create(r,a,u);e.setSelection(d)}return!0},jI=t=>({state:e,dispatch:n})=>{const r=dt(t,e.schema);return BA(r)(e,n)};function cm(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e?.includes(o.type.name));t.tr.ensureMarks(r)}}var WI=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:a}=i,u=o.extensionManager.attributes,d=Pa(u,c.node().type.name,c.node().attrs);if(i instanceof xe&&i.node.isBlock)return!c.parentOffset||!nr(s,c.pos)?!1:(r&&(t&&cm(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const f=a.parentOffset===a.parent.content.size,h=c.depth===0?void 0:yI(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:d}]:void 0,m=nr(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&nr(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:d}]:void 0),r){if(m&&(i instanceof Me&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),v=e.doc.resolve(g);c.node(-1).canReplaceWith(v.index(),v.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&cm(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return m},KI=(t,e={})=>({tr:n,state:r,dispatch:o,editor:i})=>{var s;const c=dt(t,r.schema),{$from:a,$to:u}=r.selection,d=r.selection.node;if(d&&d.isBlock||a.depth<2||!a.sameParent(u))return!1;const f=a.node(-1);if(f.type!==c)return!1;const h=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==c||a.index(-2)!==a.node(-2).childCount-1)return!1;if(o){let y=le.empty;const b=a.index(-1)?1:a.index(-2)?2:3;for(let D=a.depth-b;D>=a.depth-3;D-=1)y=le.from(a.node(D).copy(y));const E=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,C={...Pa(h,a.node().type.name,a.node().attrs),...e},S=((s=c.contentMatch.defaultType)==null?void 0:s.createAndFill(C))||void 0;y=y.append(le.from(c.createAndFill(null,S)||void 0));const _=a.before(a.depth-(b-1));n.replace(_,a.after(-E),new ve(y,4-b,0));let T=-1;n.doc.nodesBetween(_,n.doc.content.size,(D,Y)=>{if(T>-1)return!1;D.isTextblock&&D.content.size===0&&(T=Y+1)}),T>-1&&n.setSelection(Me.near(n.doc.resolve(T))),n.scrollIntoView()}return!0}const p=u.pos===a.end()?f.contentMatchAt(0).defaultType:null,m={...Pa(h,f.type.name,f.attrs),...e},g={...Pa(h,a.node().type.name,a.node().attrs),...e};n.delete(a.pos,u.pos);const v=p?[{type:c,attrs:m},{type:p,attrs:g}]:[{type:c,attrs:m}];if(!nr(n.doc,a.pos,2))return!1;if(o){const{selection:y,storedMarks:b}=r,{splittableMarks:E}=i.extensionManager,C=b||y.$to.parentOffset&&y.$from.marks();if(n.split(a.pos,2,v).scrollIntoView(),!C||!o)return!0;const S=C.filter(_=>E.includes(_.type.name));n.ensureMarks(S)}return!0},eu=(t,e)=>{const n=dc(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?.type&&Wr(t.doc,n.pos)&&t.join(n.pos),!0},tu=(t,e)=>{const n=dc(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?.type&&Wr(t.doc,r)&&t.join(r),!0},YI=(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:a,commands:u,can:d})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=dt(t,s.schema),m=dt(e,s.schema),{selection:g,storedMarks:v}=s,{$from:y,$to:b}=g,E=y.blockRange(b),C=v||g.$to.parentOffset&&g.$from.marks();if(!E)return!1;const S=dc(_=>lm(_.type.name,f))(g);if(E.depth>=1&&S&&E.depth-S.depth<=1){if(S.node.type===p)return u.liftListItem(m);if(lm(S.node.type.name,f)&&p.validContent(S.node.content)&&c)return a().command(()=>(i.setNodeMarkup(S.pos,p),!0)).command(()=>eu(i,p)).command(()=>tu(i,p)).run()}return!n||!C||!c?a().command(()=>d().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>eu(i,p)).command(()=>tu(i,p)).run():a().command(()=>{const _=d().wrapInList(p,r),T=C.filter(D=>h.includes(D.type.name));return i.ensureMarks(T),_?!0:u.clearNodes()}).wrapInList(p,r).command(()=>eu(i,p)).command(()=>tu(i,p)).run()},GI=(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=cr(t,r.schema);return fd(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},QI=(t,e,n={})=>({state:r,commands:o})=>{const i=dt(t,r.schema),s=dt(e,r.schema),c=Rr(r,i,n);let a;return r.selection.$anchor.sameParent(r.selection.$head)&&(a=r.selection.$anchor.parent.attrs),c?o.setNode(s,a):o.setNode(i,{...a,...n})},ZI=(t,e={})=>({state:n,commands:r})=>{const o=dt(t,n.schema);return Rr(n,o,e)?r.lift(o):r.wrapIn(o,e)},JI=()=>({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},XI=()=>({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},qI=(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,a=cr(t,r.schema),{$from:u,empty:d,ranges:f}=c;if(!o)return!0;if(d&&s){let{from:h,to:p}=c;const m=(i=u.marks().find(v=>v.type===a))==null?void 0:i.attrs,g=$f(u,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},e_=t=>({tr:e,state:n,dispatch:r})=>{const{selection:o}=n;let i,s;return typeof t=="number"?(i=t,s=t):t&&"from"in t&&"to"in t?(i=t.from,s=t.to):(i=o.from,s=o.to),r&&e.doc.nodesBetween(i,s,(c,a)=>{if(c.isText)return;const u={...c.attrs};delete u.dir,e.setNodeMarkup(a,void 0,u)}),!0},t_=(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=uc(typeof t=="string"?t:t.name,r.schema);if(!c)return!1;c==="node"&&(i=dt(t,r.schema)),c==="mark"&&(s=cr(t,r.schema));let a=!1;return n.selection.ranges.forEach(u=>{const d=u.$from.pos,f=u.$to.pos;let h,p,m,g;n.selection.empty?r.doc.nodesBetween(d,f,(v,y)=>{i&&i===v.type&&(a=!0,m=Math.max(y,d),g=Math.min(y+v.nodeSize,f),h=y,p=v)}):r.doc.nodesBetween(d,f,(v,y)=>{y<d&&i&&i===v.type&&(a=!0,m=Math.max(y,d),g=Math.min(y+v.nodeSize,f),h=y,p=v),y>=d&&y<=f&&(i&&i===v.type&&(a=!0,o&&n.setNodeMarkup(y,void 0,{...v.attrs,...e})),s&&v.marks.length&&v.marks.forEach(b=>{if(s===b.type&&(a=!0,o)){const E=Math.max(y,d),C=Math.min(y+v.nodeSize,f);n.addMark(E,C,s.create({...b.attrs,...e}))}}))}),p&&(h!==void 0&&o&&n.setNodeMarkup(h,void 0,{...p.attrs,...e}),s&&p.marks.length&&p.marks.forEach(v=>{s===v.type&&o&&n.addMark(m,g,s.create({...v.attrs,...e}))}))}),a},n_=(t,e={})=>({state:n,dispatch:r})=>{const o=dt(t,n.schema);return _A(o,e)(n,r)},r_=(t,e={})=>({state:n,dispatch:r})=>{const o=dt(t,n.schema);return NA(o,e)(n,r)},o_=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},b5=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},i_=(t,e)=>{if(Vf(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 fa(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 u=a.state.doc.resolve(r);if(u.parent.type.spec.code||(e=u.nodeBefore||u.nodeAfter)!=null&&e.marks.find(h=>h.type.spec.code))return!1;let d=!1;const f=NI(u)+i;return s.forEach(h=>{if(d)return;const p=i_(f,h.find);if(!p)return;const m=a.state.tr,g=lc({state:a.state,transaction:m}),v={from:r-(p[0].length-i.length),to:o},{commands:y,chain:b,can:E}=new cc({editor:n,state:g});h.handler({state:g,range:v,match:p,commands:y,chain:b,can:E})===null||!m.steps.length||(h.undoable&&m.setMeta(c,{transform:m,from:r,to:o,text:i}),a.dispatch(m),d=!0)}),d}function s_(t){const{editor:e,rules:n}=t,r=new rt({state:{init(){return null},apply(o,i,s){const c=o.getMeta(r);if(c)return c;const a=o.getMeta("applyInputRules");return a&&setTimeout(()=>{let{text:d}=a;typeof d=="string"?d=d:d=zf(le.from(d),s.schema);const{from:f}=a,h=f+d.length;fa({editor:e,from:f,to:h,text:d,rules:n,plugin:r})}),o.selectionSet||o.docChanged?null:i}},props:{handleTextInput(o,i,s,c){return fa({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&fa({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?fa({editor:e,from:s.pos,to:s.pos,text:`
1192
1192
  `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function a_(t){return Object.prototype.toString.call(t).slice(8,-1)}function ha(t){return a_(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function C5(t,e){const n={...t};return ha(t)&&ha(e)&&Object.keys(e).forEach(r=>{ha(e[r])&&ha(t[r])?n[r]=C5(t[r],e[r]):n[r]=e[r]}),n}var Hf=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...We(ke(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...We(ke(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>C5(this.options,t)});return e.name=this.name,e.parent=this.parent,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},zs=class E5 extends Hf{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new E5(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(u=>u?.type.name===n.name))return!1;const a=s.find(u=>u?.type.name===n.name);return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function l_(t){return typeof t=="number"}var c_=class{constructor(t){this.find=t.find,this.handler=t.handler}},u_=(t,e,n)=>{if(Vf(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(o=>{const i=[o.text];return i.index=o.index,i.input=t,i.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(o.replaceWith)),i}):[]};function d_(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:a,chain:u,can:d}=new cc({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{var g,v,y,b,E;if((v=(g=p.type)==null?void 0:g.spec)!=null&&v.code||!(p.isText||p.isTextblock||p.isInline))return;const C=(E=(b=(y=p.content)==null?void 0:y.size)!=null?b:p.nodeSize)!=null?E:0,S=Math.max(r,m),_=Math.min(o,m+C);if(S>=_)return;const T=p.isText?p.text||"":p.textBetween(S-m,_-m,void 0,"");u_(T,i.find,s).forEach(Y=>{if(Y.index===void 0)return;const V=S+Y.index+1,H=V+Y[0].length,j={from:n.tr.mapping.map(V),to:n.tr.mapping.map(H)},K=i.handler({state:n,range:j,match:Y,commands:a,chain:u,can:d,pasteEvent:s,dropEvent:c});f.push(K)})}),f.every(p=>p!==null)}var pa=null,f_=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function h_(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,c;try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}const a=({state:d,from:f,to:h,rule:p,pasteEvt:m})=>{const g=d.tr,v=lc({state:d,transaction:g});if(!(!d_({editor:e,state:v,from:Math.max(f-1,0),to:h.b-1,rule:p,pasteEvent:m,dropEvent:c})||!g.steps.length)){try{c=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{c=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(d=>new rt({view(f){const h=m=>{var g;r=(g=f.dom.parentElement)!=null&&g.contains(m.target)?f.dom.parentElement:null,r&&(pa=e)},p=()=>{pa&&(pa=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(f,h)=>{if(i=r===f.dom.parentElement,c=h,!i){const p=pa;p?.isEditable&&setTimeout(()=>{const m=p.state.selection;m&&p.commands.deleteRange({from:m.from,to:m.to})},10)}return!1},paste:(f,h)=>{var p;const m=(p=h.clipboardData)==null?void 0:p.getData("text/html");return s=h,o=!!m?.includes("data-pm-slice"),!1}}},appendTransaction:(f,h,p)=>{const m=f[0],g=m.getMeta("uiEvent")==="paste"&&!o,v=m.getMeta("uiEvent")==="drop"&&!i,y=m.getMeta("applyPasteRules"),b=!!y;if(!g&&!v&&!b)return;if(b){let{text:S}=y;typeof S=="string"?S=S:S=zf(le.from(S),p.schema);const{from:_}=y,T=_+S.length,D=f_(S);return a({rule:d,state:p,from:_,to:{b:T},pasteEvt:D})}const E=h.doc.content.findDiffStart(p.doc.content),C=h.doc.content.findDiffEnd(p.doc.content);if(!(!l_(E)||!C||E===C.b))return a({rule:d,state:p,from:E,to:C,pasteEvt:s})}}))}var hc=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=f5(t),this.schema=wI(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:_i(e.name,this.schema)},r=ke(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this;return Gi([...this.extensions].reverse()).flatMap(r=>{const o={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:_i(r.name,this.schema)},i=[],s=ke(r,"addKeyboardShortcuts",o);let c={};if(r.type==="mark"&&ke(r,"exitable",o)&&(c.ArrowRight=()=>zs.handleExit({editor:t,mark:r})),s){const h=Object.fromEntries(Object.entries(s()).map(([p,m])=>[p,()=>m({editor:t})]));c={...c,...h}}const a=xT(c);i.push(a);const u=ke(r,"addInputRules",o);if(am(r,t.options.enableInputRules)&&u){const h=u();if(h&&h.length){const p=s_({editor:t,rules:h}),m=Array.isArray(p)?p:[p];i.push(...m)}}const d=ke(r,"addPasteRules",o);if(am(r,t.options.enablePasteRules)&&d){const h=d();if(h&&h.length){const p=h_({editor:t,rules:h});i.push(...p)}}const f=ke(r,"addProseMirrorPlugins",o);if(f){const h=f();i.push(...h)}return i})}get attributes(){return d5(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ci(this.extensions);return Object.fromEntries(e.filter(n=>!!ke(n,"addNodeView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:dt(n.name,this.schema)},i=ke(n,"addNodeView",o);if(!i)return[];const s=i();if(!s)return[];const c=(a,u,d,f,h)=>{const p=_s(a,r);return s({node:a,view:u,getPos:d,decorations:f,innerDecorations:h,editor:t,extension:n,HTMLAttributes:p})};return[n.name,c]}))}dispatchTransaction(t){const{editor:e}=this;return Gi([...this.extensions].reverse()).reduceRight((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:_i(o.name,this.schema)},s=ke(o,"dispatchTransaction",i);return s?c=>{s.call(i,{transaction:c,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return Gi([...this.extensions]).reduce((r,o)=>{const i={name:o.name,options:o.options,storage:this.editor.extensionStorage[o.name],editor:e,type:_i(o.name,this.schema)},s=ke(o,"transformPastedHTML",i);return s?(c,a)=>{const u=r(c,a);return s.call(i,u)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=ci(this.extensions);return Object.fromEntries(e.filter(n=>!!ke(n,"addMarkView")).map(n=>{const r=this.attributes.filter(c=>c.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:cr(n.name,this.schema)},i=ke(n,"addMarkView",o);if(!i)return[];const s=(c,a,u)=>{const d=_s(c,r);return i()({mark:c,view:a,inline:u,editor:t,extension:n,HTMLAttributes:d,updateAttributes:f=>{A_(c,t,f)}})};return[n.name,s]}))}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:_i(e.name,this.schema)};e.type==="mark"&&((n=We(ke(e,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(e.name);const o=ke(e,"onBeforeCreate",r),i=ke(e,"onCreate",r),s=ke(e,"onUpdate",r),c=ke(e,"onSelectionUpdate",r),a=ke(e,"onTransaction",r),u=ke(e,"onFocus",r),d=ke(e,"onBlur",r),f=ke(e,"onDestroy",r);o&&this.editor.on("beforeCreate",o),i&&this.editor.on("create",i),s&&this.editor.on("update",s),c&&this.editor.on("selectionUpdate",c),a&&this.editor.on("transaction",a),u&&this.editor.on("focus",u),d&&this.editor.on("blur",d),f&&this.editor.on("destroy",f)})}};hc.resolve=f5;hc.sort=Gi;hc.flatten=Ff;var p_={};Rf(p_,{ClipboardTextSerializer:()=>w5,Commands:()=>S5,Delete:()=>A5,Drop:()=>x5,Editable:()=>T5,FocusEvents:()=>_5,Keymap:()=>N5,Paste:()=>O5,Tabindex:()=>M5,TextDirection:()=>L5,focusEventsPluginKey:()=>I5});var ft=class k5 extends Hf{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new k5(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},w5=ft.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new rt({key:new Ct("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(d=>d.$from.pos)),c=Math.max(...i.map(d=>d.$to.pos)),a=p5(n);return h5(r,{from:s,to:c},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:a})}}})]}}),S5=ft.create({name:"commands",addCommands(){return{...n5}}}),A5=ft.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,o;const i=()=>{var s,c,a,u;if((u=(a=(c=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:c.filterTransaction)==null?void 0:a.call(c,t))!=null?u:t.getMeta("y-sync$"))return;const d=c5(t.before,[t,...e]);g5(d).forEach(p=>{d.mapping.mapResult(p.oldRange.from).deletedAfter&&d.mapping.mapResult(p.oldRange.to).deletedBefore&&d.before.nodesBetween(p.oldRange.from,p.oldRange.to,(m,g)=>{const v=g+m.nodeSize-2,y=p.oldRange.from<=g&&v<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:m,from:g,to:v,newFrom:d.mapping.map(g),newTo:d.mapping.map(v),deletedRange:p.oldRange,newRange:p.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:d})})});const h=d.mapping;d.steps.forEach((p,m)=>{var g,v;if(p instanceof kn){const y=h.slice(m).map(p.from,-1),b=h.slice(m).map(p.to),E=h.invert().map(y,-1),C=h.invert().map(b),S=(g=d.doc.nodeAt(y-1))==null?void 0:g.marks.some(T=>T.eq(p.mark)),_=(v=d.doc.nodeAt(b))==null?void 0:v.marks.some(T=>T.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:E,to:C},newRange:{from:y,to:b},partial:!!(_||S),editor:this.editor,transaction:t,combinedTransform:d})}})};(o=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||o?setTimeout(i,0):i()}}),x5=ft.create({name:"drop",addProseMirrorPlugins(){return[new rt({key:new Ct("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),T5=ft.create({name:"editable",addProseMirrorPlugins(){return[new rt({key:new Ct("editable"),props:{editable:()=>this.editor.options.editable}})]}}),I5=new Ct("focusEvents"),_5=ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new rt({key:I5,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}}}})]}}),N5=ft.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:a,doc:u}=c,{empty:d,$anchor:f}=a,{pos:h,parent:p}=f,m=f.parent.isTextblock&&h>0?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,v=f.pos-f.parentOffset,y=g&&m.parent.childCount===1?v===f.pos:Pe.atStart(u).from===h;return!d||!p.type.isTextblock||p.textContent.length||!y||y&&f.parent.type.name==="paragraph"?!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 cl()||a5()?i:o},addProseMirrorPlugins(){return[new rt({key:new Ct("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const r=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),o=t.some(g=>g.getMeta("preventClearDocument"));if(!r||o)return;const{empty:i,from:s,to:c}=e.selection,a=Pe.atStart(e.doc).from,u=Pe.atEnd(e.doc).to;if(i||!(s===a&&c===u)||!fc(n.doc))return;const h=n.tr,p=lc({state:n,transaction:h}),{commands:m}=new cc({editor:this.editor,state:p});if(m.clearNodes(),!!h.steps.length)return h}})]}}),O5=ft.create({name:"paste",addProseMirrorPlugins(){return[new rt({key:new Ct("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),M5=ft.create({name:"tabindex",addProseMirrorPlugins(){return[new rt({key:new Ct("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),L5=ft.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=ci(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new rt({key:new Ct("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),m_=class Ri{constructor(e,n,r=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=o}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Ri(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Ri(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Ri(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const o=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=n.isInline,c=this.pos+r+(i?0:1);if(c<0||c>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(c);if(!o&&!s&&a.depth<=this.depth)return;const u=new Ri(a,this.editor,o,o||s?n:null);o&&(u.actualDepth=this.depth+1),e.push(u)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,o=this.parent;for(;o&&!r;){if(o.node.type.name===e)if(Object.keys(n).length>0){const i=o.node.attrs,s=Object.keys(n);for(let c=0;c<s.length;c+=1){const a=s[c];if(i[a]!==n[a])break}}else r=o;o=o.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let o=[];if(!this.children||this.children.length===0)return o;const i=Object.keys(n);return this.children.forEach(s=>{r&&o.length>0||(s.node.type.name===e&&i.every(a=>n[a]===s.node.attrs[a])&&o.push(s),!(r&&o.length>0)&&(o=o.concat(s.querySelectorAll(e,n,r))))}),o}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},g_=`.ProseMirror {
@@ -1282,7 +1282,7 @@ ${v}
1282
1282
  `,U_="️",H_="‍",su="";let ma=null,ga=null;function j_(t=[]){const e={};Ut.groups=e;const n=new Ut;ma==null&&(ma=pm(B_)),ga==null&&(ga=pm(R_)),fe(n,"'",xl),fe(n,"{",Zi),fe(n,"}",Ji),fe(n,"[",dl),fe(n,"]",fl),fe(n,"(",hl),fe(n,")",pl),fe(n,"<",ml),fe(n,">",gl),fe(n,"(",vl),fe(n,")",yl),fe(n,"「",bl),fe(n,"」",Cl),fe(n,"『",El),fe(n,"』",kl),fe(n,"<",wl),fe(n,">",Sl),fe(n,"&",Al),fe(n,"*",Tl),fe(n,"@",br),fe(n,"`",_l),fe(n,"^",Nl),fe(n,":",wr),fe(n,",",Qf),fe(n,"$",Ol),fe(n,".",Mn),fe(n,"=",Ml),fe(n,"!",Zf),fe(n,"-",sn),fe(n,"%",Xi),fe(n,"|",Ll),fe(n,"+",Dl),fe(n,"#",Pl),fe(n,"?",qi),fe(n,'"',Jf),fe(n,"/",Ln),fe(n,";",Xf),fe(n,"~",es),fe(n,"_",Bl),fe(n,"\\",Il),fe(n,"・",V5);const r=tt(n,Jn,Yf,{[pd]:!0});tt(r,Jn,r);const o=tt(r,Zn,B5,{[Qi]:!0}),i=tt(r,Ni,R5,{[Vi]:!0}),s=tt(n,Zn,Xn,{[md]:!0});tt(s,Jn,o),tt(s,Zn,s),tt(o,Jn,o),tt(o,Zn,o);const c=tt(n,Ni,yd,{[gd]:!0});tt(c,Zn),tt(c,Jn,i),tt(c,Ni,c),tt(i,Jn,i),tt(i,Zn),tt(i,Ni,i);const a=fe(n,iu,Gf,{[nu]:!0}),u=fe(n,hm,Ed,{[nu]:!0}),d=tt(n,ou,Ed,{[nu]:!0});fe(n,su,d),fe(u,iu,a),fe(u,su,d),tt(u,ou,d),fe(d,hm),fe(d,iu),tt(d,ou,d),fe(d,su,d);const f=tt(n,ru,$5,{[P5]:!0});fe(f,"#"),tt(f,ru,f),fe(f,U_,f);const h=fe(f,H_);fe(h,"#"),tt(h,ru,f);const p=[[Zn,s],[Jn,o]],m=[[Zn,null],[Ni,c],[Jn,i]];for(let g=0;g<ma.length;g++)mr(n,ma[g],bd,Xn,p);for(let g=0;g<ga.length;g++)mr(n,ga[g],Cd,yd,m);ao(bd,{tld:!0,ascii:!0},e),ao(Cd,{utld:!0,alpha:!0},e),mr(n,"file",Ba,Xn,p),mr(n,"mailto",Ba,Xn,p),mr(n,"http",Go,Xn,p),mr(n,"https",Go,Xn,p),mr(n,"ftp",Go,Xn,p),mr(n,"ftps",Go,Xn,p),ao(Ba,{scheme:!0,ascii:!0},e),ao(Go,{slashscheme:!0,ascii:!0},e),t=t.sort((g,v)=>g[0]>v[0]?1:-1);for(let g=0;g<t.length;g++){const v=t[g][0],b=t[g][1]?{[V_]:!0}:{[$_]:!0};v.indexOf("-")>=0?b[vd]=!0:Zn.test(v)?Jn.test(v)?b[Qi]=!0:b[md]=!0:b[pd]=!0,fm(n,v,v,b)}return fm(n,"localhost",Ms,{ascii:!0}),n.jd=new Ut(Rl),{start:n,tokens:Object.assign({groups:e},F5)}}function z5(t,e){const n=W_(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,u=0,d=null,f=-1,h=-1;for(;s<r&&(a=c.go(n[s]));)c=a,c.accepts()?(f=0,h=0,d=c):f>=0&&(f+=n[s].length,h++),u+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,u-=f,o.push({t:d.t,v:e.slice(i-u,i),s:i-u,e:i})}return o}function W_(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 mr(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 Ut(r),i.jr=o.slice(),t.j[a]=i),t=i}return i=new Ut(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function pm(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 Ls={defaultProtocol:"http",events:null,format:mm,formatHref:mm,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function qf(t,e=null){let n=Object.assign({},Ls);t&&(n=Object.assign(n,t instanceof qf?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}qf.prototype={o:Ls,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]:Ls[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 mm(t){return t}function U5(t,e){this.t="token",this.v=t,this.tk=e}U5.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=Ls.defaultProtocol){return{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),u=t.get("rel",n,e),d=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),a&&(s.target=a),u&&(s.rel=u),d&&Object.assign(s,d),{tagName:o,attributes:s,content:i,eventListeners:f}}};function pc(t,e){class n extends U5{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 gm=pc("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),vm=pc("text"),K_=pc("nl"),va=pc("url",{isLink:!0,toHref(t=Ls.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ms&&t[1].t===wr}}),on=t=>new Ut(t);function Y_({groups:t}){const e=t.domain.concat([Al,Tl,br,Il,_l,Nl,Ol,Ml,sn,Yf,Xi,Ll,Dl,Pl,Ln,Rl,es,Bl]),n=[xl,wr,Qf,Mn,Zf,Xi,qi,Jf,Xf,ml,gl,Zi,Ji,fl,dl,hl,pl,vl,yl,bl,Cl,El,kl,wl,Sl],r=[Al,xl,Tl,Il,_l,Nl,Ol,Ml,sn,Zi,Ji,Xi,Ll,Dl,Pl,qi,Ln,Rl,es,Bl],o=on(),i=fe(o,es);Le(i,r,i),Le(i,t.domain,i);const s=on(),c=on(),a=on();Le(o,t.domain,s),Le(o,t.scheme,c),Le(o,t.slashscheme,a),Le(s,r,i),Le(s,t.domain,s);const u=fe(s,br);fe(i,br,u),fe(c,br,u),fe(a,br,u);const d=fe(i,Mn);Le(d,r,i),Le(d,t.domain,i);const f=on();Le(u,t.domain,f),Le(f,t.domain,f);const h=fe(f,Mn);Le(h,t.domain,f);const p=on(gm);Le(h,t.tld,p),Le(h,t.utld,p),fe(u,Ms,p);const m=fe(f,sn);fe(m,sn,m),Le(m,t.domain,f),Le(p,t.domain,f),fe(p,Mn,h),fe(p,sn,m);const g=fe(p,wr);Le(g,t.numeric,gm);const v=fe(s,sn),y=fe(s,Mn);fe(v,sn,v),Le(v,t.domain,s),Le(y,r,i),Le(y,t.domain,s);const b=on(va);Le(y,t.tld,b),Le(y,t.utld,b),Le(b,t.domain,s),Le(b,r,i),fe(b,Mn,y),fe(b,sn,v),fe(b,br,u);const E=fe(b,wr),C=on(va);Le(E,t.numeric,C);const S=on(va),_=on();Le(S,e,S),Le(S,n,_),Le(_,e,S),Le(_,n,_),fe(b,Ln,S),fe(C,Ln,S);const T=fe(c,wr),D=fe(a,wr),Y=fe(D,Ln),V=fe(Y,Ln);Le(c,t.domain,s),fe(c,Mn,y),fe(c,sn,v),Le(a,t.domain,s),fe(a,Mn,y),fe(a,sn,v),Le(T,t.domain,S),fe(T,Ln,S),fe(T,qi,S),Le(V,t.domain,S),Le(V,e,S),fe(V,Ln,S);const H=[[Zi,Ji],[dl,fl],[hl,pl],[ml,gl],[vl,yl],[bl,Cl],[El,kl],[wl,Sl]];for(let j=0;j<H.length;j++){const[K,F]=H[j],z=fe(S,K);fe(_,K,z),fe(z,F,S);const $=on(va);Le(z,e,$);const J=on();Le(z,n),Le($,e,$),Le($,n,J),Le(J,e,$),Le(J,n,J),fe($,F,S),fe(J,F,S)}return fe(o,Ms,b),fe(o,Gf,K_),{start:o,tokens:F5}}function G_(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let c=t,a=null,u=null,d=0,f=null,h=-1;for(;o<r&&!(a=c.go(n[o].t));)s.push(n[o++]);for(;o<r&&(u=a||c.go(n[o].t));)a=null,c=u,c.accepts()?(h=0,f=c):h>=0&&h++,o++,d++;if(h<0)o-=d,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(au(vm,e,s)),s=[]),o-=h,d-=h;const p=f.t,m=n.slice(o-d,o);i.push(au(p,e,m))}}return s.length>0&&i.push(au(vm,e,s)),i}function au(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 Q_=typeof console<"u"&&console&&console.warn||(()=>{}),Z_="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ye={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function J_(){return Ut.groups={},Ye.scanner=null,Ye.parser=null,Ye.tokenQueue=[],Ye.pluginQueue=[],Ye.customSchemes=[],Ye.initialized=!1,Ye}function ym(t,e=!1){if(Ye.initialized&&Q_(`linkifyjs: already initialized - will not register custom scheme "${t}" ${Z_}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
1283
1283
  1. Must only contain digits, lowercase ASCII letters or "-"
1284
1284
  2. Cannot start or end with "-"
1285
- 3. "-" cannot repeat`);Ye.customSchemes.push([t,e])}function X_(){Ye.scanner=j_(Ye.customSchemes);for(let t=0;t<Ye.tokenQueue.length;t++)Ye.tokenQueue[t][1]({scanner:Ye.scanner});Ye.parser=Y_(Ye.scanner.tokens);for(let t=0;t<Ye.pluginQueue.length;t++)Ye.pluginQueue[t][1]({scanner:Ye.scanner,parser:Ye.parser});return Ye.initialized=!0,Ye}function eh(t){return Ye.initialized||X_(),G_(Ye.parser.start,t,z5(Ye.scanner.start,t))}eh.scan=z5;function H5(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new qf(n),o=eh(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}var th="[\0-   ᠎ -\u2029  ]",q_=new RegExp(th),eN=new RegExp(`${th}$`),tN=new RegExp(th,"g");function nN(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function rN(t){return new rt({key:new Ct("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=c5(n.doc,[...e]);if(g5(c).forEach(({newRange:u})=>{const d=bI(r.doc,u,p=>p.isTextblock);let f,h;if(d.length>1)f=d[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ");else if(d.length){const p=r.doc.textBetween(u.from,u.to," "," ");if(!eN.test(p))return;f=d[0],h=r.doc.textBetween(f.pos,u.to,void 0," ")}if(f&&h){const p=h.split(q_).filter(Boolean);if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;const v=eh(m).map(y=>y.toObject(t.defaultProtocol));if(!nN(v))return!1;v.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(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Uf(y.from,y.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function oN(t){return new rt({key:new Ct("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const a=r.target;if(!a)return!1;const u=t.editor.view.dom;s=a.closest("a"),s&&!u.contains(s)&&(s=null)}if(!s)return!1;let c=!1;if(t.enableClickSelection&&(c=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const a=m5(e.state,t.type.name),u=(o=s.href)!=null?o:a.href,d=(i=s.target)!=null?i:a.target;u&&(window.open(u,d),c=!0)}return c}}})}function iN(t){return new rt({key:new Ct("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{shouldAutoLink:o}=t,{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let a="";r.content.forEach(d=>{a+=d.textContent});const u=H5(a,{defaultProtocol:t.defaultProtocol}).find(d=>d.isLink&&d.value===a);return!a||!u||o!==void 0&&!o(u.value)?!1:t.editor.commands.setMark(t.type,{href:u.href})}}})}function eo(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(tN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var sN=zs.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){ym(t);return}ym(t.scheme,t.optionalSlashes)})},onDestroy(){J_()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!eo(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const o=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||!/\./.test(o))}}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!eo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!eo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Yt(this.options.HTMLAttributes,t),0]:["a",Yt(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,r,o,i;const s=(r=(n=t.attrs)==null?void 0:n.href)!=null?r:"",c=(i=(o=t.attrs)==null?void 0:o.title)!=null?i:"",a=e.renderChildren(t);return c?`[${a}](${s} "${c}")`:`[${a}](${s})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1: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[Os({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=H5(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!eo(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>{this.options.shouldAutoLink(i.value)&&e.push({text:i.value,data:{href:i.href},index:i.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(rN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!eo(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(oN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(iN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),aN=sN;const lN=aN.extend({addAttributes(){return{...this.parent?.(),title:{default:null,parseHTML:t=>t.getAttribute("title"),renderHTML:t=>({title:t.title})}}}});function cN(t={}){return new rt({view(e){return new uN(e,t)}})}class uN{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let c=e.nodeBefore,a=e.nodeAfter;if(c||a){let u=this.editorView.nodeDOM(this.cursorPos-(c?c.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=c?d.bottom:d.top;c&&a&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let c=this.editorView.coordsAtPos(this.cursorPos);r={left:c.left-this.width/2,right:c.left+this.width/2,top:c.top,bottom:c.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let c=o.getBoundingClientRect();i=c.left-o.scrollLeft,s=c.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let c=e2(this.editorView.state.doc,s,this.editorView.dragging.slice);c!=null&&(s=c)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}class nt extends Pe{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return nt.valid(r)?new nt(r):Pe.near(r)}content(){return ve.empty}eq(e){return e instanceof nt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new nt(e.resolve(n.pos))}getBookmark(){return new nh(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!dN(e)||!fN(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&nt.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let c=e.node(s);if(n>0?e.indexAfter(s)<c.childCount:e.index(s)>0){i=c.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let a=e.doc.resolve(o);if(nt.valid(a))return a}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!xe.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let c=e.doc.resolve(o);if(nt.valid(c))return c}return null}}}nt.prototype.visible=!1;nt.findFrom=nt.findGapCursorFrom;Pe.jsonID("gapcursor",nt);class nh{constructor(e){this.pos=e}map(e){return new nh(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return nt.valid(n)?new nt(n):Pe.near(n)}}function dN(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function fN(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function hN(){return new rt({props:{decorations:vN,createSelectionBetween(t,e,n){return e.pos==n.pos&&nt.valid(n)?new nt(n):null},handleClick:mN,handleKeyDown:pN,handleDOMEvents:{beforeinput:gN}}})}const pN=t5({ArrowLeft:ya("horiz",-1),ArrowRight:ya("horiz",1),ArrowUp:ya("vert",-1),ArrowDown:ya("vert",1)});function ya(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,c=e>0?s.$to:s.$from,a=s.empty;if(s instanceof Me){if(!i.endOfTextblock(n)||c.depth==0)return!1;a=!1,c=r.doc.resolve(e>0?c.after():c.before())}let u=nt.findGapCursorFrom(c,e,a);return u?(o&&o(r.tr.setSelection(new nt(u))),!0):!1}}function mN(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!nt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&xe.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new nt(r))),!0)}function gN(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof nt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=le.empty;for(let s=r.length-1;s>=0;s--)o=le.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new ve(o,0,0));return i.setSelection(Me.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function vN(t){if(!(t.selection instanceof nt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Je.create(t.doc,[Dt.widget(t.selection.head,e,{key:"gapcursor"})])}var Vl=200,bt=function(){};bt.prototype.append=function(e){return e.length?(e=bt.from(e),!this.length&&e||e.length<Vl&&this.leafAppend(e)||this.length<Vl&&e.leafPrepend(this)||this.appendInner(e)):this};bt.prototype.prepend=function(e){return e.length?bt.from(e).append(this):this};bt.prototype.appendInner=function(e){return new yN(this,e)};bt.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?bt.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};bt.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};bt.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};bt.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o};bt.from=function(e){return e instanceof bt?e:e&&e.length?new j5(e):bt.empty};var j5=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,c){for(var a=i;a<s;a++)if(o(this.values[a],c+a)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,c){for(var a=i-1;a>=s;a--)if(o(this.values[a],c+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Vl)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Vl)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(bt);bt.empty=new j5([]);var yN=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var c=this.left.length;if(o<c&&this.left.forEachInner(r,o,Math.min(i,c),s)===!1||i>c&&this.right.forEachInner(r,Math.max(o-c,0),Math.min(this.length,i)-c,s+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var c=this.left.length;if(o>c&&this.right.forEachInvertedInner(r,o-c,Math.max(i,c)-c,s+c)===!1||i<c&&this.left.forEachInvertedInner(r,Math.min(o,c),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(bt);const bN=500;class Cn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,c,a,u=[],d=[];return this.items.forEach((f,h)=>{if(!f.step){o||(o=this.remapping(r,h+1),i=o.maps.length),i--,d.push(f);return}if(o){d.push(new Dn(f.map));let p=f.step.map(o.slice(i)),m;p&&s.maybeStep(p).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],u.push(new Dn(m,void 0,void 0,u.length+d.length))),i--,m&&o.appendMap(m,i)}else s.maybeStep(f.step);if(f.selection)return c=o?f.selection.map(o.slice(i)):f.selection,a=new Cn(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:c}}addTransform(e,n,r,o){let i=[],s=this.eventCount,c=this.items,a=!o&&c.length?c.get(c.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),h=new Dn(e.mapping.maps[d],f,n),p;(p=a&&a.merge(h))&&(h=p,d?i.pop():c=c.slice(0,c.length-1)),i.push(h),n&&(s++,n=void 0),o||(a=h)}let u=s-r.depth;return u>EN&&(c=CN(c,u),s-=u),new Cn(c.append(i),s)}remapping(e,n){let r=new ws;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Cn(this.items.append(e.map(n=>new Dn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,c=this.eventCount;this.items.forEach(h=>{h.selection&&c--},o);let a=n;this.items.forEach(h=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let m=i.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),v=h.selection&&h.selection.map(i.slice(a+1,p));v&&c++,r.push(new Dn(m,g,v))}else r.push(new Dn(m))},o);let u=[];for(let h=n;h<s;h++)u.push(new Dn(i.maps[h]));let d=this.items.slice(0,o).append(u).append(r),f=new Cn(d,c);return f.emptyItemCount()>bN&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,c)=>{if(c>=e)o.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(r)),u=a&&a.getMap();if(r--,u&&n.appendMap(u,r),a){let d=s.selection&&s.selection.map(n.slice(r));d&&i++;let f=new Dn(u.invert(),a,d),h,p=o.length-1;(h=o.length&&o[p].merge(f))?o[p]=h:o.push(f)}}else s.map&&r--},this.items.length,0),new Cn(bt.from(o.reverse()),i)}}Cn.empty=new Cn(bt.empty,0);function CN(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Dn{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Dn(n.getMap().invert(),n,this.selection)}}}class Cr{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const EN=20;function kN(t,e,n,r){let o=n.getMeta(yo),i;if(o)return o.historyState;n.getMeta(AN)&&(t=new Cr(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(yo))return s.getMeta(yo).redo?new Cr(t.done.addTransform(n,void 0,r,Ra(e)),t.undone,bm(n.mapping.maps),t.prevTime,t.prevComposition):new Cr(t.done,t.undone.addTransform(n,void 0,r,Ra(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let c=n.getMeta("composition"),a=t.prevTime==0||!s&&t.prevComposition!=c&&(t.prevTime<(n.time||0)-r.newGroupDelay||!wN(n,t.prevRanges)),u=s?lu(t.prevRanges,n.mapping):bm(n.mapping.maps);return new Cr(t.done.addTransform(n,a?e.selection.getBookmark():void 0,r,Ra(e)),Cn.empty,u,n.time,c??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Cr(t.done.rebased(n,i),t.undone.rebased(n,i),lu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Cr(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),lu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function wN(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function bm(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function lu(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function SN(t,e,n){let r=Ra(e),o=yo.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),c=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),o,r),a=new Cr(n?c:i.remaining,n?i.remaining:c,null,0,-1);return i.transform.setSelection(s).setMeta(yo,{redo:n,historyState:a})}let cu=!1,Cm=null;function Ra(t){let e=t.plugins;if(Cm!=e){cu=!1,Cm=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){cu=!0;break}}return cu}const yo=new Ct("history"),AN=new Ct("closeHistory");function xN(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new rt({key:yo,state:{init(){return new Cr(Cn.empty,Cn.empty,null,0,-1)},apply(e,n,r){return kN(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?K5:r=="historyRedo"?Y5:null;return!o||!e.editable?!1:(n.preventDefault(),o(e.state,e.dispatch))}}}})}function W5(t,e){return(n,r)=>{let o=yo.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=SN(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const K5=W5(!1,!0),Y5=W5(!0,!0);ft.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new rt({key:new Ct("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const o=this.options.limit;if(o==null||o===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>o){const s=i-o,c=0,a=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(c,a);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const o=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||o>r&&i>r&&i<=o)return!0;if(o>r&&i>r&&i>o||!e.getMeta("paste"))return!1;const c=e.selection.$head.pos,a=i-r,u=c-a,d=c;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});ft.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[cN(this.options)]}});ft.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new rt({key:new Ct("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:o}=e,i=[];if(!n||!r)return Je.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((a,u)=>{if(a.isText)return;if(!(o>=u&&o<=u+a.nodeSize-1))return!1;s+=1});let c=0;return t.descendants((a,u)=>{if(a.isText||!(o>=u&&o<=u+a.nodeSize-1))return!1;if(c+=1,this.options.mode==="deepest"&&s-c>0||this.options.mode==="shallowest"&&c>1)return this.options.mode==="deepest";i.push(Dt.node(u,u+a.nodeSize,{class:this.options.className}))}),Je.create(t,i)}}})]}});ft.create({name:"gapCursor",addProseMirrorPlugins(){return[hN()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=We(ke(t,"allowGapCursor",n)))!=null?e:null}}});var Em="placeholder";function TN(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var IN=ft.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Em,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${TN(this.options.dataAttribute)}`:`data-${Em}`;return[new rt({key:new Ct("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((c,a)=>{const u=o>=a&&o<=a+c.nodeSize,d=!c.isLeaf&&fc(c);if((u||!this.options.showOnlyCurrent)&&d){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=Dt.node(a,a+c.nodeSize,{class:f.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:a,hasAnchor:u}):this.options.placeholder});i.push(h)}return this.options.includeChildren}),Je.create(e,i)}}})]}});ft.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new rt({key:new Ct("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||DI(n.selection)||t.view.dragging?null:Je.create(n.doc,[Dt.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function km({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}ft.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new Ct(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,o])=>o).filter(o=>(this.options.notAfter||[]).concat(n).includes(o.name));return[new rt({key:e,appendTransaction:(o,i,s)=>{const{doc:c,tr:a,schema:u}=s,d=e.getState(s),f=c.content.size,h=u.nodes[n];if(d)return a.insert(f,h.create())},state:{init:(o,i)=>{const s=i.tr.doc.lastChild;return!km({node:s,types:r})},apply:(o,i)=>{if(!o.docChanged||o.getMeta("__uniqueIDTransaction"))return i;const s=o.doc.lastChild;return!km({node:s,types:r})}}})]}});ft.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>K5(t,e),redo:()=>({state:t,dispatch:e})=>Y5(t,e)}},addProseMirrorPlugins(){return[xN(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});var _N=IN,wm=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},NN=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,ON=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,MN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,LN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,DN=zs.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return wm("strong",{...Yt(this.options.HTMLAttributes,t),children:wm("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,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[ul({find:NN,type:this.type}),ul({find:MN,type:this.type})]},addPasteRules(){return[Os({find:ON,type:this.type}),Os({find:LN,type:this.type})]}}),PN=DN,BN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,RN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,VN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,$N=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,FN=zs.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Yt(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)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ul({find:BN,type:this.type}),ul({find:VN,type:this.type})]},addPasteRules(){return[Os({find:RN,type:this.type}),Os({find:$N,type:this.type})]}}),zN=FN,UN=zs.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",Yt(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const o=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!o)return;const i=o[2].trim();return{type:"underline",raw:o[0],text:i,tokens:n.inlineTokens(i)}}},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()}}}),HN=UN,jN=Object.defineProperty,WN=(t,e)=>{for(var n in e)jN(t,n,{get:e[n],enumerable:!0})},KN="listItem",Sm="textStyle",Am=/^\s*([-+*])\s$/,G5=ur.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",Yt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
1285
+ 3. "-" cannot repeat`);Ye.customSchemes.push([t,e])}function X_(){Ye.scanner=j_(Ye.customSchemes);for(let t=0;t<Ye.tokenQueue.length;t++)Ye.tokenQueue[t][1]({scanner:Ye.scanner});Ye.parser=Y_(Ye.scanner.tokens);for(let t=0;t<Ye.pluginQueue.length;t++)Ye.pluginQueue[t][1]({scanner:Ye.scanner,parser:Ye.parser});return Ye.initialized=!0,Ye}function eh(t){return Ye.initialized||X_(),G_(Ye.parser.start,t,z5(Ye.scanner.start,t))}eh.scan=z5;function H5(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new qf(n),o=eh(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}var th="[\0-   ᠎ -\u2029  ]",q_=new RegExp(th),eN=new RegExp(`${th}$`),tN=new RegExp(th,"g");function nN(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function rN(t){return new rt({key:new Ct("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(u=>u.docChanged)&&!n.doc.eq(r.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=c5(n.doc,[...e]);if(g5(c).forEach(({newRange:u})=>{const d=bI(r.doc,u,p=>p.isTextblock);let f,h;if(d.length>1)f=d[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ");else if(d.length){const p=r.doc.textBetween(u.from,u.to," "," ");if(!eN.test(p))return;f=d[0],h=r.doc.textBetween(f.pos,u.to,void 0," ")}if(f&&h){const p=h.split(q_).filter(Boolean);if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;const v=eh(m).map(y=>y.toObject(t.defaultProtocol));if(!nN(v))return!1;v.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(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Uf(y.from,y.to,r.doc).some(b=>b.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function oN(t){return new rt({key:new Ct("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||!e.editable)return!1;let s=null;if(r.target instanceof HTMLAnchorElement)s=r.target;else{const a=r.target;if(!a)return!1;const u=t.editor.view.dom;s=a.closest("a"),s&&!u.contains(s)&&(s=null)}if(!s)return!1;let c=!1;if(t.enableClickSelection&&(c=t.editor.commands.extendMarkRange(t.type.name)),t.openOnClick){const a=m5(e.state,t.type.name),u=(o=s.href)!=null?o:a.href,d=(i=s.target)!=null?i:a.target;u&&(window.open(u,d),c=!0)}return c}}})}function iN(t){return new rt({key:new Ct("handlePasteLink"),props:{handlePaste:(e,n,r)=>{const{shouldAutoLink:o}=t,{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let a="";r.content.forEach(d=>{a+=d.textContent});const u=H5(a,{defaultProtocol:t.defaultProtocol}).find(d=>d.isLink&&d.value===a);return!a||!u||o!==void 0&&!o(u.value)?!1:t.editor.commands.setMark(t.type,{href:u.href})}}})}function eo(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(r=>{const o=typeof r=="string"?r:r.scheme;o&&n.push(o)}),!t||t.replace(tN,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var sN=zs.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){ym(t);return}ym(t.scheme,t.optionalSlashes)})},onDestroy(){J_()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!eo(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>{const e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),n=/^[a-z][a-z0-9+.-]*:/i.test(t);if(e||n&&!t.includes("@"))return!0;const o=(t.includes("@")?t.split("@").pop():t).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(o)||!/\./.test(o))}}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!eo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!eo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Yt(this.options.HTMLAttributes,t),0]:["a",Yt(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(t,e)=>e.applyMark("link",e.parseInline(t.tokens||[]),{href:t.href,title:t.title||null}),renderMarkdown:(t,e)=>{var n,r,o,i;const s=(r=(n=t.attrs)==null?void 0:n.href)!=null?r:"",c=(i=(o=t.attrs)==null?void 0:o.title)!=null?i:"",a=e.renderChildren(t);return c?`[${a}](${s} "${c}")`:`[${a}](${s})`},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:r=>!!eo(r,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1: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[Os({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:r}=this.options,o=H5(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!eo(s,n),protocols:n,defaultProtocol:r}));o.length&&o.forEach(i=>{this.options.shouldAutoLink(i.value)&&e.push({text:i.value,data:{href:i.href},index:i.start})})}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)==null?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(rN({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:r=>this.options.isAllowedUri(r,{defaultValidate:o=>!!eo(o,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),t.push(oN({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick==="whenNotEditable"?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&t.push(iN({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),t}}),aN=sN;const lN=aN.extend({addAttributes(){return{...this.parent?.(),title:{default:null,parseHTML:t=>t.getAttribute("title"),renderHTML:t=>({title:t.title})}}}});function cN(t={}){return new rt({view(e){return new uN(e,t)}})}class uN{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(o=>{let i=s=>{this[o](s)};return e.dom.addEventListener(o,i),{name:o,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r;if(n){let c=e.nodeBefore,a=e.nodeAfter;if(c||a){let u=this.editorView.nodeDOM(this.cursorPos-(c?c.nodeSize:0));if(u){let d=u.getBoundingClientRect(),f=c?d.bottom:d.top;c&&a&&(f=(f+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),r={left:d.left,right:d.right,top:f-this.width/2,bottom:f+this.width/2}}}}if(!r){let c=this.editorView.coordsAtPos(this.cursorPos);r={left:c.left-this.width/2,right:c.left+this.width/2,top:c.top,bottom:c.bottom}}let o=this.editorView.dom.offsetParent;this.element||(this.element=o.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let i,s;if(!o||o==document.body&&getComputedStyle(o).position=="static")i=-pageXOffset,s=-pageYOffset;else{let c=o.getBoundingClientRect();i=c.left-o.scrollLeft,s=c.top-o.scrollTop}this.element.style.left=r.left-i+"px",this.element.style.top=r.top-s+"px",this.element.style.width=r.right-r.left+"px",this.element.style.height=r.bottom-r.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),o=r&&r.type.spec.disableDropCursor,i=typeof o=="function"?o(this.editorView,n,e):o;if(n&&!i){let s=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let c=e2(this.editorView.state.doc,s,this.editorView.dragging.slice);c!=null&&(s=c)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){(e.target==this.editorView.dom||!this.editorView.dom.contains(e.relatedTarget))&&this.setCursor(null)}}class nt extends Pe{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return nt.valid(r)?new nt(r):Pe.near(r)}content(){return ve.empty}eq(e){return e instanceof nt&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new nt(e.resolve(n.pos))}getBookmark(){return new nh(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!dN(e)||!fN(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let o=n.contentMatchAt(e.index()).defaultType;return o&&o.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&nt.valid(e))return e;let o=e.pos,i=null;for(let s=e.depth;;s--){let c=e.node(s);if(n>0?e.indexAfter(s)<c.childCount:e.index(s)>0){i=c.child(n>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;o+=n;let a=e.doc.resolve(o);if(nt.valid(a))return a}for(;;){let s=n>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!xe.isSelectable(i)){e=e.doc.resolve(o+i.nodeSize*n),r=!1;continue e}break}i=s,o+=n;let c=e.doc.resolve(o);if(nt.valid(c))return c}return null}}}nt.prototype.visible=!1;nt.findFrom=nt.findGapCursorFrom;Pe.jsonID("gapcursor",nt);class nh{constructor(e){this.pos=e}map(e){return new nh(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return nt.valid(n)?new nt(n):Pe.near(n)}}function dN(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n-1);;o=o.lastChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function fN(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let o=r.child(n);;o=o.firstChild){if(o.childCount==0&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}}return!0}function hN(){return new rt({props:{decorations:vN,createSelectionBetween(t,e,n){return e.pos==n.pos&&nt.valid(n)?new nt(n):null},handleClick:mN,handleKeyDown:pN,handleDOMEvents:{beforeinput:gN}}})}const pN=t5({ArrowLeft:ya("horiz",-1),ArrowRight:ya("horiz",1),ArrowUp:ya("vert",-1),ArrowDown:ya("vert",1)});function ya(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,o,i){let s=r.selection,c=e>0?s.$to:s.$from,a=s.empty;if(s instanceof Me){if(!i.endOfTextblock(n)||c.depth==0)return!1;a=!1,c=r.doc.resolve(e>0?c.after():c.before())}let u=nt.findGapCursorFrom(c,e,a);return u?(o&&o(r.tr.setSelection(new nt(u))),!0):!1}}function mN(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!nt.valid(r))return!1;let o=t.posAtCoords({left:n.clientX,top:n.clientY});return o&&o.inside>-1&&xe.isSelectable(t.state.doc.nodeAt(o.inside))?!1:(t.dispatch(t.state.tr.setSelection(new nt(r))),!0)}function gN(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof nt))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let o=le.empty;for(let s=r.length-1;s>=0;s--)o=le.from(r[s].createAndFill(null,o));let i=t.state.tr.replace(n.pos,n.pos,new ve(o,0,0));return i.setSelection(Me.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function vN(t){if(!(t.selection instanceof nt))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Je.create(t.doc,[Pt.widget(t.selection.head,e,{key:"gapcursor"})])}var Vl=200,bt=function(){};bt.prototype.append=function(e){return e.length?(e=bt.from(e),!this.length&&e||e.length<Vl&&this.leafAppend(e)||this.length<Vl&&e.leafPrepend(this)||this.appendInner(e)):this};bt.prototype.prepend=function(e){return e.length?bt.from(e).append(this):this};bt.prototype.appendInner=function(e){return new yN(this,e)};bt.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?bt.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};bt.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};bt.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};bt.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var o=[];return this.forEach(function(i,s){return o.push(e(i,s))},n,r),o};bt.from=function(e){return e instanceof bt?e:e&&e.length?new j5(e):bt.empty};var j5=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(o,i){return o==0&&i==this.length?this:new e(this.values.slice(o,i))},e.prototype.getInner=function(o){return this.values[o]},e.prototype.forEachInner=function(o,i,s,c){for(var a=i;a<s;a++)if(o(this.values[a],c+a)===!1)return!1},e.prototype.forEachInvertedInner=function(o,i,s,c){for(var a=i-1;a>=s;a--)if(o(this.values[a],c+a)===!1)return!1},e.prototype.leafAppend=function(o){if(this.length+o.length<=Vl)return new e(this.values.concat(o.flatten()))},e.prototype.leafPrepend=function(o){if(this.length+o.length<=Vl)return new e(o.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(bt);bt.empty=new j5([]);var yN=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,o,i,s){var c=this.left.length;if(o<c&&this.left.forEachInner(r,o,Math.min(i,c),s)===!1||i>c&&this.right.forEachInner(r,Math.max(o-c,0),Math.min(this.length,i)-c,s+c)===!1)return!1},e.prototype.forEachInvertedInner=function(r,o,i,s){var c=this.left.length;if(o>c&&this.right.forEachInvertedInner(r,o-c,Math.max(i,c)-c,s+c)===!1||i<c&&this.left.forEachInvertedInner(r,Math.min(o,c),i,s)===!1)return!1},e.prototype.sliceInner=function(r,o){if(r==0&&o==this.length)return this;var i=this.left.length;return o<=i?this.left.slice(r,o):r>=i?this.right.slice(r-i,o-i):this.left.slice(r,i).append(this.right.slice(0,o-i))},e.prototype.leafAppend=function(r){var o=this.right.leafAppend(r);if(o)return new e(this.left,o)},e.prototype.leafPrepend=function(r){var o=this.left.leafPrepend(r);if(o)return new e(o,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(bt);const bN=500;class Cn{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let o,i;n&&(o=this.remapping(r,this.items.length),i=o.maps.length);let s=e.tr,c,a,u=[],d=[];return this.items.forEach((f,h)=>{if(!f.step){o||(o=this.remapping(r,h+1),i=o.maps.length),i--,d.push(f);return}if(o){d.push(new Dn(f.map));let p=f.step.map(o.slice(i)),m;p&&s.maybeStep(p).doc&&(m=s.mapping.maps[s.mapping.maps.length-1],u.push(new Dn(m,void 0,void 0,u.length+d.length))),i--,m&&o.appendMap(m,i)}else s.maybeStep(f.step);if(f.selection)return c=o?f.selection.map(o.slice(i)):f.selection,a=new Cn(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:a,transform:s,selection:c}}addTransform(e,n,r,o){let i=[],s=this.eventCount,c=this.items,a=!o&&c.length?c.get(c.length-1):null;for(let d=0;d<e.steps.length;d++){let f=e.steps[d].invert(e.docs[d]),h=new Dn(e.mapping.maps[d],f,n),p;(p=a&&a.merge(h))&&(h=p,d?i.pop():c=c.slice(0,c.length-1)),i.push(h),n&&(s++,n=void 0),o||(a=h)}let u=s-r.depth;return u>EN&&(c=CN(c,u),s-=u),new Cn(c.append(i),s)}remapping(e,n){let r=new ws;return this.items.forEach((o,i)=>{let s=o.mirrorOffset!=null&&i-o.mirrorOffset>=e?r.maps.length-o.mirrorOffset:void 0;r.appendMap(o.map,s)},e,n),r}addMaps(e){return this.eventCount==0?this:new Cn(this.items.append(e.map(n=>new Dn(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],o=Math.max(0,this.items.length-n),i=e.mapping,s=e.steps.length,c=this.eventCount;this.items.forEach(h=>{h.selection&&c--},o);let a=n;this.items.forEach(h=>{let p=i.getMirror(--a);if(p==null)return;s=Math.min(s,p);let m=i.maps[p];if(h.step){let g=e.steps[p].invert(e.docs[p]),v=h.selection&&h.selection.map(i.slice(a+1,p));v&&c++,r.push(new Dn(m,g,v))}else r.push(new Dn(m))},o);let u=[];for(let h=n;h<s;h++)u.push(new Dn(i.maps[h]));let d=this.items.slice(0,o).append(u).append(r),f=new Cn(d,c);return f.emptyItemCount()>bN&&(f=f.compress(this.items.length-r.length)),f}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,o=[],i=0;return this.items.forEach((s,c)=>{if(c>=e)o.push(s),s.selection&&i++;else if(s.step){let a=s.step.map(n.slice(r)),u=a&&a.getMap();if(r--,u&&n.appendMap(u,r),a){let d=s.selection&&s.selection.map(n.slice(r));d&&i++;let f=new Dn(u.invert(),a,d),h,p=o.length-1;(h=o.length&&o[p].merge(f))?o[p]=h:o.push(f)}}else s.map&&r--},this.items.length,0),new Cn(bt.from(o.reverse()),i)}}Cn.empty=new Cn(bt.empty,0);function CN(t,e){let n;return t.forEach((r,o)=>{if(r.selection&&e--==0)return n=o,!1}),t.slice(n)}class Dn{constructor(e,n,r,o){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=o}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new Dn(n.getMap().invert(),n,this.selection)}}}class Cr{constructor(e,n,r,o,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=o,this.prevComposition=i}}const EN=20;function kN(t,e,n,r){let o=n.getMeta(yo),i;if(o)return o.historyState;n.getMeta(AN)&&(t=new Cr(t.done,t.undone,null,0,-1));let s=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(s&&s.getMeta(yo))return s.getMeta(yo).redo?new Cr(t.done.addTransform(n,void 0,r,Ra(e)),t.undone,bm(n.mapping.maps),t.prevTime,t.prevComposition):new Cr(t.done,t.undone.addTransform(n,void 0,r,Ra(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let c=n.getMeta("composition"),a=t.prevTime==0||!s&&t.prevComposition!=c&&(t.prevTime<(n.time||0)-r.newGroupDelay||!wN(n,t.prevRanges)),u=s?lu(t.prevRanges,n.mapping):bm(n.mapping.maps);return new Cr(t.done.addTransform(n,a?e.selection.getBookmark():void 0,r,Ra(e)),Cn.empty,u,n.time,c??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Cr(t.done.rebased(n,i),t.undone.rebased(n,i),lu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Cr(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),lu(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function wN(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,o)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&o>=e[i]&&(n=!0)}),n}function bm(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,o,i,s)=>e.push(i,s));return e}function lu(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let o=e.map(t[r],1),i=e.map(t[r+1],-1);o<=i&&n.push(o,i)}return n}function SN(t,e,n){let r=Ra(e),o=yo.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let s=i.selection.resolve(i.transform.doc),c=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),o,r),a=new Cr(n?c:i.remaining,n?i.remaining:c,null,0,-1);return i.transform.setSelection(s).setMeta(yo,{redo:n,historyState:a})}let cu=!1,Cm=null;function Ra(t){let e=t.plugins;if(Cm!=e){cu=!1,Cm=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){cu=!0;break}}return cu}const yo=new Ct("history"),AN=new Ct("closeHistory");function xN(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new rt({key:yo,state:{init(){return new Cr(Cn.empty,Cn.empty,null,0,-1)},apply(e,n,r){return kN(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,o=r=="historyUndo"?K5:r=="historyRedo"?Y5:null;return!o||!e.editable?!1:(n.preventDefault(),o(e.state,e.dispatch))}}}})}function W5(t,e){return(n,r)=>{let o=yo.getState(n);if(!o||(t?o.undone:o.done).eventCount==0)return!1;if(r){let i=SN(o,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const K5=W5(!1,!0),Y5=W5(!0,!0);ft.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new rt({key:new Ct("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const o=this.options.limit;if(o==null||o===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>o){const s=i-o,c=0,a=s;console.warn(`[CharacterCount] Initial content exceeded limit of ${o} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(c,a);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const o=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||o>r&&i>r&&i<=o)return!0;if(o>r&&i>r&&i>o||!e.getMeta("paste"))return!1;const c=e.selection.$head.pos,a=i-r,u=c-a,d=c;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});ft.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[cN(this.options)]}});ft.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new rt({key:new Ct("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:o}=e,i=[];if(!n||!r)return Je.create(t,[]);let s=0;this.options.mode==="deepest"&&t.descendants((a,u)=>{if(a.isText)return;if(!(o>=u&&o<=u+a.nodeSize-1))return!1;s+=1});let c=0;return t.descendants((a,u)=>{if(a.isText||!(o>=u&&o<=u+a.nodeSize-1))return!1;if(c+=1,this.options.mode==="deepest"&&s-c>0||this.options.mode==="shallowest"&&c>1)return this.options.mode==="deepest";i.push(Pt.node(u,u+a.nodeSize,{class:this.options.className}))}),Je.create(t,i)}}})]}});ft.create({name:"gapCursor",addProseMirrorPlugins(){return[hN()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=We(ke(t,"allowGapCursor",n)))!=null?e:null}}});var Em="placeholder";function TN(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}var IN=ft.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Em,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${TN(this.options.dataAttribute)}`:`data-${Em}`;return[new rt({key:new Ct("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=n,i=[];if(!r)return null;const s=this.editor.isEmpty;return e.descendants((c,a)=>{const u=o>=a&&o<=a+c.nodeSize,d=!c.isLeaf&&fc(c);if((u||!this.options.showOnlyCurrent)&&d){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=Pt.node(a,a+c.nodeSize,{class:f.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:a,hasAnchor:u}):this.options.placeholder});i.push(h)}return this.options.includeChildren}),Je.create(e,i)}}})]}});ft.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new rt({key:new Ct("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||DI(n.selection)||t.view.dragging?null:Je.create(n.doc,[Pt.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function km({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}ft.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new Ct(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,o])=>o).filter(o=>(this.options.notAfter||[]).concat(n).includes(o.name));return[new rt({key:e,appendTransaction:(o,i,s)=>{const{doc:c,tr:a,schema:u}=s,d=e.getState(s),f=c.content.size,h=u.nodes[n];if(d)return a.insert(f,h.create())},state:{init:(o,i)=>{const s=i.tr.doc.lastChild;return!km({node:s,types:r})},apply:(o,i)=>{if(!o.docChanged||o.getMeta("__uniqueIDTransaction"))return i;const s=o.doc.lastChild;return!km({node:s,types:r})}}})]}});ft.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>K5(t,e),redo:()=>({state:t,dispatch:e})=>Y5(t,e)}},addProseMirrorPlugins(){return[xN(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}});var _N=IN,wm=(t,e)=>{if(t==="slot")return 0;if(t instanceof Function)return t(e);const{children:n,...r}=e??{};if(t==="svg")throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},NN=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,ON=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,MN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,LN=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,DN=zs.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return wm("strong",{...Yt(this.options.HTMLAttributes,t),children:wm("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`**${e.renderChildren(t)}**`,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[ul({find:NN,type:this.type}),ul({find:MN,type:this.type})]},addPasteRules(){return[Os({find:ON,type:this.type}),Os({find:LN,type:this.type})]}}),PN=DN,BN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,RN=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,VN=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,$N=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,FN=zs.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",Yt(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)}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`*${e.renderChildren(t)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[ul({find:BN,type:this.type}),ul({find:VN,type:this.type})]},addPasteRules(){return[Os({find:RN,type:this.type}),Os({find:$N,type:this.type})]}}),zN=FN,UN=zs.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",Yt(this.options.HTMLAttributes,t),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const o=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!o)return;const i=o[2].trim();return{type:"underline",raw:o[0],text:i,tokens:n.inlineTokens(i)}}},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()}}}),HN=UN,jN=Object.defineProperty,WN=(t,e)=>{for(var n in e)jN(t,n,{get:e[n],enumerable:!0})},KN="listItem",Sm="textStyle",Am=/^\s*([-+*])\s$/,G5=ur.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",Yt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>t.type!=="list"||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
1286
1286
  `):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(KN,this.editor.getAttributes(Sm)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=Ns({find:Am,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=Ns({find:Am,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Sm),editor:this.editor})),[t]}}),Q5=ur.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",Yt(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{if(t.type!=="list_item")return[];let n=[];if(t.tokens&&t.tokens.length>0)if(t.tokens.some(o=>o.type==="paragraph"))n=e.parseChildren(t.tokens);else{const o=t.tokens[0];if(o&&o.type==="text"&&o.tokens&&o.tokens.length>0){if(n=[{type:"paragraph",content:e.parseInline(o.tokens)}],t.tokens.length>1){const s=t.tokens.slice(1),c=e.parseChildren(s);n.push(...c)}}else n=e.parseChildren(t.tokens)}return n.length===0&&(n=[{type:"paragraph",content:[]}]),{type:"listItem",content:n}},renderMarkdown:(t,e,n)=>Kf(t,e,r=>{var o,i;return r.parentType==="bulletList"?"- ":r.parentType==="orderedList"?`${(((i=(o=r.meta)==null?void 0:o.parentAttrs)==null?void 0:i.start)||1)+r.index}. `:"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),YN={};WN(YN,{findListItemPos:()=>Us,getNextListDepth:()=>rh,handleBackspace:()=>kd,handleDelete:()=>wd,hasListBefore:()=>Z5,hasListItemAfter:()=>GN,hasListItemBefore:()=>J5,listItemHasSubList:()=>X5,nextListIsDeeper:()=>q5,nextListIsHigher:()=>ey});var Us=(t,e)=>{const{$from:n}=e.selection,r=dt(t,e.schema);let o=null,i=n.depth,s=n.pos,c=null;for(;i>0&&c===null;)o=n.node(i),o.type===r?c=i:(i-=1,s-=1);return c===null?null:{$pos:e.doc.resolve(s),depth:c}},rh=(t,e)=>{const n=Us(t,e);if(!n)return!1;const[,r]=_I(e,t,n.$pos.pos+4);return r},Z5=(t,e,n)=>{const{$anchor:r}=t.selection,o=Math.max(0,r.pos-2),i=t.doc.resolve(o).node();return!(!i||!n.includes(i.type.name))},J5=(t,e)=>{var n;const{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-2);return!(o.index()===0||((n=o.nodeBefore)==null?void 0:n.type.name)!==t)},X5=(t,e,n)=>{if(!n)return!1;const r=dt(t,e.schema);let o=!1;return n.descendants(i=>{i.type===r&&(o=!0)}),o},kd=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!Rr(t.state,e)&&Z5(t.state,e,n)){const{$anchor:c}=t.state.selection,a=t.state.doc.resolve(c.before()-1),u=[];a.node().descendants((h,p)=>{h.type.name===e&&u.push({node:h,pos:p})});const d=u.at(-1);if(!d)return!1;const f=t.state.doc.resolve(a.start()+d.pos+1);return t.chain().cut({from:c.start()-1,to:c.end()+1},f.end()).joinForward().run()}if(!Rr(t.state,e)||!LI(t.state))return!1;const r=Us(e,t.state);if(!r)return!1;const i=t.state.doc.resolve(r.$pos.pos-2).node(r.depth),s=X5(e,t.state,i);return J5(e,t.state)&&!s?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},q5=(t,e)=>{const n=rh(t,e),r=Us(t,e);return!r||!n?!1:n>r.depth},ey=(t,e)=>{const n=rh(t,e),r=Us(t,e);return!r||!n?!1:n<r.depth},wd=(t,e)=>{if(!Rr(t.state,e)||!MI(t.state,e))return!1;const{selection:n}=t.state,{$from:r,$to:o}=n;return!n.empty&&r.sameParent(o)?!1:q5(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():ey(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward()},GN=(t,e)=>{var n;const{$anchor:r}=e.selection,o=e.doc.resolve(r.pos-r.parentOffset-2);return!(o.index()===o.parent.childCount-1||((n=o.nodeAfter)==null?void 0:n.type.name)!==t)},QN=ft.create({name:"listKeymap",addOptions(){return{listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}},addKeyboardShortcuts(){return{Delete:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&wd(t,n)&&(e=!0)}),e},"Mod-Delete":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n})=>{t.state.schema.nodes[n]!==void 0&&wd(t,n)&&(e=!0)}),e},Backspace:({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&kd(t,n,r)&&(e=!0)}),e},"Mod-Backspace":({editor:t})=>{let e=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{t.state.schema.nodes[n]!==void 0&&kd(t,n,r)&&(e=!0)}),e}}}}),xm=/^(\s*)(\d+)\.\s+(.*)$/,ZN=/^\s/;function JN(t){const e=[];let n=0,r=0;for(;n<t.length;){const o=t[n],i=o.match(xm);if(!i)break;const[,s,c,a]=i,u=s.length;let d=a,f=n+1;const h=[o];for(;f<t.length;){const p=t[f];if(p.match(xm))break;if(p.trim()==="")h.push(p),d+=`
1287
1287
  `,f+=1;else if(p.match(ZN))h.push(p),d+=`
1288
1288
  ${p.slice(u+2)}`,f+=1;else break}e.push({indent:u,number:parseInt(c,10),content:d.trim(),raw:h.join(`
@@ -1295,13 +1295,13 @@ ${p.slice(u+2)}`,f+=1;else break}e.push({indent:u,number:parseInt(c,10),content:
1295
1295
  `)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(qN,this.editor.getAttributes(Tm)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=Ns({find:Im,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=Ns({find:Im,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Tm)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),eO=/^\s*(\[([( |x])?\])\s$/,tO=ur.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Yt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const o=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return Kf(t,e,o)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const o=document.createElement("li"),i=document.createElement("label"),s=document.createElement("span"),c=document.createElement("input"),a=document.createElement("div"),u=f=>{var h,p;c.ariaLabel=((p=(h=this.options.a11y)==null?void 0:h.checkboxLabel)==null?void 0:p.call(h,f,c.checked))||`Task item checkbox for ${f.textContent||"empty task item"}`};u(t),i.contentEditable="false",c.type="checkbox",c.addEventListener("mousedown",f=>f.preventDefault()),c.addEventListener("change",f=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){c.checked=!c.checked;return}const{checked:h}=f.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:p})=>{const m=n();if(typeof m!="number")return!1;const g=p.doc.nodeAt(m);return p.setNodeMarkup(m,void 0,{...g?.attrs,checked:h}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,h)||(c.checked=!c.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([f,h])=>{o.setAttribute(f,h)}),o.dataset.checked=t.attrs.checked,c.checked=t.attrs.checked,i.append(c,s),o.append(i,a),Object.entries(e).forEach(([f,h])=>{o.setAttribute(f,h)});let d=new Set(Object.keys(e));return{dom:o,contentDOM:a,update:f=>{if(f.type!==this.type)return!1;o.dataset.checked=f.attrs.checked,c.checked=f.attrs.checked,u(f);const h=r.extensionManager.attributes,p=_s(f,h),m=new Set(Object.keys(p)),g=this.options.HTMLAttributes;return d.forEach(v=>{m.has(v)||(v in g?o.setAttribute(v,g[v]):o.removeAttribute(v))}),Object.entries(p).forEach(([v,y])=>{y==null?v in g?o.setAttribute(v,g[v]):o.removeAttribute(v):o.setAttribute(v,y)}),d=m,!0}}}},addInputRules(){return[Ns({find:eO,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),nO=ur.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Yt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
1296
1296
  `):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const s=hd(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:c=>({indentLevel:c[1].length,mainContent:c[4],checked:c[3].toLowerCase()==="x"}),createToken:(c,a)=>({type:"taskItem",raw:"",mainContent:c.mainContent,indentLevel:c.indentLevel,checked:c.checked,text:c.mainContent,tokens:n.inlineTokens(c.mainContent),nestedTokens:a}),customNestedParser:r},n);return s?[{type:"taskList",raw:s.raw,items:s.items}]:n.blockTokens(i)},o=hd(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,s)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:s}),customNestedParser:r},n);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});ft.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(G5.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(Q5.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(QN.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(ny.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(tO.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(nO.configure(this.options.taskList)),t}});var rO=Q5,oO=G5,iO=ny,sO=ur.create({name:"hardBreak",markdownTokenName:"br",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Yt(this.options.HTMLAttributes,t)]},renderText(){return`
1297
1297
  `},renderMarkdown:()=>`
1298
- `,parseMarkdown:()=>({type:"hardBreak"}),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:u,dispatch:d})=>{if(d&&a&&s){const f=a.filter(h=>c.includes(h.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),aO=sO;const lO={class:"popover bd-link-input-popover show bd-link-input-bottom"},cO={class:"popover-body"},uO={class:"form-label"},dO=l.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.previousUrl??""),i=()=>r("submit",o.value),s=()=>r("cancel");return(c,a)=>(l.openBlock(),l.createElementBlock("div",lO,[a[2]||(a[2]=l.createElementVNode("div",{class:"popover-header"},"Voeg een link toe",-1)),l.createElementVNode("div",cO,[l.createElementVNode("label",uO,[a[1]||(a[1]=l.createTextVNode(" URL: ",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=u=>o.value=u),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[l.vModelText,o.value]])]),l.createElementVNode("div",{class:"d-flex gap-2 mt-2"},[l.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",onClick:i}," Toevoegen "),l.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:s}," Annuleren ")])])]))}}),uu={BASIC:"basic",FULL:"full"},fO={class:"attachment-list"},hO={class:"attachment-link"},pO={key:1,class:"attachment-no-download"},mO=["href"],Hs=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=e,r=o=>{n("delete",o)};return(o,i)=>(l.openBlock(),l.createElementBlock("ul",fO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,s=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[l.createElementVNode("div",hO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove",onClick:c=>r(s),"aria-label":"verwijder"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ps))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.noDownload?(l.openBlock(),l.createElementBlock("div",pO,[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)])):(l.openBlock(),l.createElementBlock("a",{key:2,href:s.downloadUrl},[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)],8,mO))])]))),128))]))}}),gO={class:"attachment-list"},vO={class:"attachment"},yO=["onClick"],bO=["src","alt"],CO=["onClick"],EO=["href"],kO={class:"btn btn-light download-button-image"},wO=["src","alt"],js=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=e,o=s=>{r("delete",s)},i=(s,c)=>{s.target&&s.target.className==="img-preview"&&r("show",c)};return(s,c)=>(l.openBlock(),l.createElementBlock("ul",gO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,a=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:a.CorrelationId},[l.createElementVNode("div",vO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove","aria-label":"verwijder",onClick:l.withModifiers(u=>o(a),["prevent"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Ps))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),n.noDownload?(l.openBlock(),l.createElementBlock("div",{key:1,onClick:u=>i(u,a)},[l.createElementVNode("img",{src:a.previewUrl,class:"img-preview",alt:a.altName,loading:"lazy"},null,8,bO)],8,yO)):(l.openBlock(),l.createElementBlock("div",{key:2,onClick:u=>i(u,a)},[n.fastDownload?(l.openBlock(),l.createElementBlock("a",{key:0,href:a.downloadUrl,class:"download-link"},[l.createElementVNode("button",kO,[l.createVNode(l.unref(zd))])],8,EO)):l.createCommentVNode("",!0),l.createElementVNode("img",{src:a.previewUrl,alt:a.altName,class:"img-preview",loading:"lazy"},null,8,wO)],8,CO))])]))),128))]))}}),SO=t=>t?.map(e=>e.CorrelationId),_m=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),AO=(t,e)=>e.DownloadUrl?e.DownloadUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlage/${e.Id}`:e.FileId?`${t}/Portaal/DownloadStandardMessageAttachment/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlage/${e.CorrelationId}`,ry=(t,e)=>e.ThumbnailUrl?e.ThumbnailUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlageThumbnail/${e.Id}`:e.StandardAttachmentId||e.standardAttachmentId?`${t}/Portaal/DownloadStandardMessageAttachmentThumbnail/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlageThumbnail/${e.CorrelationId}`,xO=(t,e)=>e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:null,TO=(t,e)=>e?_m(t):!_m(t),Io=(t="",e,n)=>e===void 0?void 0:e.filter(o=>TO(o,n)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!=null?o.CorrelationId.toString():"";return{downloadUrl:AO(t,o),previewUrl:ry(t,o),fullImageUrl:xO(t,o),altName:`${o.Naam}`,...o,CorrelationId:i}});var Pt="top",Xt="bottom",qt="right",Bt="left",mc="auto",ki=[Pt,Xt,qt,Bt],_o="start",ui="end",oy="clippingParents",oh="viewport",Qo="popper",iy="reference",Sd=ki.reduce(function(t,e){return t.concat([e+"-"+_o,e+"-"+ui])},[]),ih=[].concat(ki,[mc]).reduce(function(t,e){return t.concat([e,e+"-"+_o,e+"-"+ui])},[]),sy="beforeRead",ay="read",ly="afterRead",cy="beforeMain",uy="main",dy="afterMain",fy="beforeWrite",hy="write",py="afterWrite",my=[sy,ay,ly,cy,uy,dy,fy,hy,py];function Hn(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function No(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function fn(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function sh(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function IO(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];!fn(i)||!Hn(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 _O(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,u){return a[u]="",a},{});!fn(o)||!Hn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const gy={name:"applyStyles",enabled:!0,phase:"write",fn:IO,effect:_O,requires:["computeStyles"]};function Vn(t){return t.split("-")[0]}var bo=Math.max,$l=Math.min,di=Math.round;function Ad(){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 vy(){return!/^((?!chrome|android).)*safari/i.test(Ad())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&fn(t)&&(o=t.offsetWidth>0&&di(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&di(r.height)/t.offsetHeight||1);var s=No(t)?en(t):window,c=s.visualViewport,a=!vy()&&n,u=(r.left+(a&&c?c.offsetLeft:0))/o,d=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function ah(t){var e=fi(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 yy(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&sh(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ar(t){return en(t).getComputedStyle(t)}function NO(t){return["table","td","th"].indexOf(Hn(t))>=0}function Yr(t){return((No(t)?t.ownerDocument:t.document)||window.document).documentElement}function gc(t){return Hn(t)==="html"?t:t.assignedSlot||t.parentNode||(sh(t)?t.host:null)||Yr(t)}function Nm(t){return!fn(t)||ar(t).position==="fixed"?null:t.offsetParent}function OO(t){var e=/firefox/i.test(Ad()),n=/Trident/i.test(Ad());if(n&&fn(t)){var r=ar(t);if(r.position==="fixed")return null}var o=gc(t);for(sh(o)&&(o=o.host);fn(o)&&["html","body"].indexOf(Hn(o))<0;){var i=ar(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 Ws(t){for(var e=en(t),n=Nm(t);n&&NO(n)&&ar(n).position==="static";)n=Nm(n);return n&&(Hn(n)==="html"||Hn(n)==="body"&&ar(n).position==="static")?e:n||OO(t)||e}function lh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ts(t,e,n){return bo(t,$l(e,n))}function MO(t,e,n){var r=ts(t,e,n);return r>n?n:r}function by(){return{top:0,right:0,bottom:0,left:0}}function Cy(t){return Object.assign({},by(),t)}function Ey(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var LO=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Cy(typeof e!="number"?e:Ey(e,ki))};function DO(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Vn(n.placement),a=lh(c),u=[Bt,qt].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!s)){var f=LO(o.padding,n),h=ah(i),p=a==="y"?Pt:Bt,m=a==="y"?Xt:qt,g=n.rects.reference[d]+n.rects.reference[a]-s[a]-n.rects.popper[d],v=s[a]-n.rects.reference[a],y=Ws(i),b=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-v/2,C=f[p],S=b-h[d]-f[m],_=b/2-h[d]/2+E,T=ts(C,_,S),D=a;n.modifiersData[r]=(e={},e[D]=T,e.centerOffset=T-_,e)}}function PO(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||yy(e.elements.popper,o)&&(e.elements.arrow=o))}const ky={name:"arrow",enabled:!0,phase:"main",fn:DO,effect:PO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hi(t){return t.split("-")[1]}var BO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function RO(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:di(n*o)/o||0,y:di(r*o)/o||0}}function Om(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,v=typeof d=="function"?d({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Bt,C=Pt,S=window;if(u){var _=Ws(n),T="clientHeight",D="clientWidth";if(_===en(n)&&(_=Yr(n),ar(_).position!=="static"&&c==="absolute"&&(T="scrollHeight",D="scrollWidth")),_=_,o===Pt||(o===Bt||o===qt)&&i===ui){C=Xt;var Y=f&&_===S&&S.visualViewport?S.visualViewport.height:_[T];g-=Y-r.height,g*=a?1:-1}if(o===Bt||(o===Pt||o===Xt)&&i===ui){E=qt;var V=f&&_===S&&S.visualViewport?S.visualViewport.width:_[D];p-=V-r.width,p*=a?1:-1}}var H=Object.assign({position:c},u&&BO),j=d===!0?RO({x:p,y:g},en(n)):{x:p,y:g};if(p=j.x,g=j.y,a){var K;return Object.assign({},H,(K={},K[C]=b?"0":"",K[E]=y?"0":"",K.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",K))}return Object.assign({},H,(e={},e[C]=b?g+"px":"",e[E]=y?p+"px":"",e.transform="",e))}function VO(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,u={placement:Vn(e.placement),variation:hi(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,Om(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,Om(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 wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VO,data:{}};var ba={passive:!0};function $O(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=en(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ba)}),c&&a.addEventListener("resize",n.update,ba),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ba)}),c&&a.removeEventListener("resize",n.update,ba)}}const Sy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$O,data:{}};var FO={left:"right",right:"left",bottom:"top",top:"bottom"};function Va(t){return t.replace(/left|right|bottom|top/g,function(e){return FO[e]})}var zO={start:"end",end:"start"};function Mm(t){return t.replace(/start|end/g,function(e){return zO[e]})}function ch(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function uh(t){return fi(Yr(t)).left+ch(t).scrollLeft}function UO(t,e){var n=en(t),r=Yr(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var u=vy();(u||!u&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+uh(t),y:a}}function HO(t){var e,n=Yr(t),r=ch(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=bo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=bo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+uh(t),a=-r.scrollTop;return ar(o||n).direction==="rtl"&&(c+=bo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function dh(t){var e=ar(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ay(t){return["html","body","#document"].indexOf(Hn(t))>=0?t.ownerDocument.body:fn(t)&&dh(t)?t:Ay(gc(t))}function ns(t,e){var n;e===void 0&&(e=[]);var r=Ay(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=en(r),s=o?[i].concat(i.visualViewport||[],dh(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(ns(gc(s)))}function xd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function jO(t,e){var n=fi(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 Lm(t,e,n){return e===oh?xd(UO(t,n)):No(e)?jO(e,n):xd(HO(Yr(t)))}function WO(t){var e=ns(gc(t)),n=["absolute","fixed"].indexOf(ar(t).position)>=0,r=n&&fn(t)?Ws(t):t;return No(r)?e.filter(function(o){return No(o)&&yy(o,r)&&Hn(o)!=="body"}):[]}function KO(t,e,n,r){var o=e==="clippingParents"?WO(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,u){var d=Lm(t,u,r);return a.top=bo(d.top,a.top),a.right=$l(d.right,a.right),a.bottom=$l(d.bottom,a.bottom),a.left=bo(d.left,a.left),a},Lm(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 xy(t){var e=t.reference,n=t.element,r=t.placement,o=r?Vn(r):null,i=r?hi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case Pt:a={x:s,y:e.y-n.height};break;case Xt:a={x:s,y:e.y+e.height};break;case qt:a={x:e.x+e.width,y:c};break;case Bt:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var u=o?lh(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case _o:a[u]=a[u]-(e[d]/2-n[d]/2);break;case ui:a[u]=a[u]+(e[d]/2-n[d]/2);break}}return a}function pi(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?oy:c,u=n.rootBoundary,d=u===void 0?oh:u,f=n.elementContext,h=f===void 0?Qo:f,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,y=Cy(typeof v!="number"?v:Ey(v,ki)),b=h===Qo?iy:Qo,E=t.rects.popper,C=t.elements[m?b:h],S=KO(No(C)?C:C.contextElement||Yr(t.elements.popper),a,d,s),_=fi(t.elements.reference),T=xy({reference:_,element:E,placement:o}),D=xd(Object.assign({},E,T)),Y=h===Qo?D:_,V={top:S.top-Y.top+y.top,bottom:Y.bottom-S.bottom+y.bottom,left:S.left-Y.left+y.left,right:Y.right-S.right+y.right},H=t.modifiersData.offset;if(h===Qo&&H){var j=H[o];Object.keys(V).forEach(function(K){var F=[qt,Xt].indexOf(K)>=0?1:-1,z=[Pt,Xt].indexOf(K)>=0?"y":"x";V[K]+=j[z]*F})}return V}function YO(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,u=a===void 0?ih:a,d=hi(r),f=d?c?Sd:Sd.filter(function(m){return hi(m)===d}):ki,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,g){return m[g]=pi(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Vn(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function GO(t){if(Vn(t)===mc)return[];var e=Va(t);return[Mm(t),e,Mm(e)]}function QO(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,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,y=Vn(v),b=y===v,E=a||(b||!m?[Va(v)]:GO(v)),C=[v].concat(E).reduce(function(ye,Ce){return ye.concat(Vn(Ce)===mc?YO(e,{placement:Ce,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):Ce)},[]),S=e.rects.reference,_=e.rects.popper,T=new Map,D=!0,Y=C[0],V=0;V<C.length;V++){var H=C[V],j=Vn(H),K=hi(H)===_o,F=[Pt,Xt].indexOf(j)>=0,z=F?"width":"height",$=pi(e,{placement:H,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),J=F?K?qt:Bt:K?Xt:Pt;S[z]>_[z]&&(J=Va(J));var U=Va(J),q=[];if(i&&q.push($[j]<=0),c&&q.push($[J]<=0,$[U]<=0),q.every(function(ye){return ye})){Y=H,D=!1;break}T.set(H,q)}if(D)for(var te=m?3:1,se=function(Ce){var Ae=C.find(function(ge){var N=T.get(ge);if(N)return N.slice(0,Ce).every(function(M){return M})});if(Ae)return Y=Ae,"break"},he=te;he>0;he--){var pe=se(he);if(pe==="break")break}e.placement!==Y&&(e.modifiersData[r]._skip=!0,e.placement=Y,e.reset=!0)}}const Ty={name:"flip",enabled:!0,phase:"main",fn:QO,requiresIfExists:["offset"],data:{_skip:!1}};function Dm(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 Pm(t){return[Pt,qt,Xt,Bt].some(function(e){return t[e]>=0})}function ZO(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=pi(e,{elementContext:"reference"}),c=pi(e,{altBoundary:!0}),a=Dm(s,r),u=Dm(c,o,i),d=Pm(a),f=Pm(u);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Iy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ZO};function JO(t,e,n){var r=Vn(t),o=[Bt,Pt].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,[Bt,qt].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function XO(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=ih.reduce(function(d,f){return d[f]=JO(f,e.rects,i),d},{}),c=s[e.placement],a=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const _y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:XO};function qO(t){var e=t.state,n=t.name;e.modifiersData[n]=xy({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ny={name:"popperOffsets",enabled:!0,phase:"read",fn:qO,data:{}};function eM(t){return t==="x"?"y":"x"}function tM(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,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,v=pi(e,{boundary:a,rootBoundary:u,padding:f,altBoundary:d}),y=Vn(e.placement),b=hi(e.placement),E=!b,C=lh(y),S=eM(C),_=e.modifiersData.popperOffsets,T=e.rects.reference,D=e.rects.popper,Y=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,V=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(_){if(i){var K,F=C==="y"?Pt:Bt,z=C==="y"?Xt:qt,$=C==="y"?"height":"width",J=_[C],U=J+v[F],q=J-v[z],te=p?-D[$]/2:0,se=b===_o?T[$]:D[$],he=b===_o?-D[$]:-T[$],pe=e.elements.arrow,ye=p&&pe?ah(pe):{width:0,height:0},Ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:by(),Ae=Ce[F],ge=Ce[z],N=ts(0,T[$],ye[$]),M=E?T[$]/2-te-N-Ae-V.mainAxis:se-N-Ae-V.mainAxis,I=E?-T[$]/2+te+N+ge+V.mainAxis:he+N+ge+V.mainAxis,O=e.elements.arrow&&Ws(e.elements.arrow),k=O?C==="y"?O.clientTop||0:O.clientLeft||0:0,w=(K=H?.[C])!=null?K:0,P=J+M-w-k,R=J+I-w,W=ts(p?$l(U,P):U,J,p?bo(q,R):q);_[C]=W,j[C]=W-J}if(c){var G,A=C==="x"?Pt:Bt,x=C==="x"?Xt:qt,B=_[S],Q=S==="y"?"height":"width",X=B+v[A],ee=B-v[x],ie=[Pt,Bt].indexOf(y)!==-1,Z=(G=H?.[S])!=null?G:0,ne=ie?X:B-T[Q]-D[Q]-Z+V.altAxis,we=ie?B+T[Q]+D[Q]-Z-V.altAxis:ee,Ie=p&&ie?MO(ne,B,we):ts(p?ne:X,B,p?we:ee);_[S]=Ie,j[S]=Ie-B}e.modifiersData[r]=j}}const Oy={name:"preventOverflow",enabled:!0,phase:"main",fn:tM,requiresIfExists:["offset"]};function nM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rM(t){return t===en(t)||!fn(t)?ch(t):nM(t)}function oM(t){var e=t.getBoundingClientRect(),n=di(e.width)/t.offsetWidth||1,r=di(e.height)/t.offsetHeight||1;return n!==1||r!==1}function iM(t,e,n){n===void 0&&(n=!1);var r=fn(e),o=fn(e)&&oM(e),i=Yr(e),s=fi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Hn(e)!=="body"||dh(i))&&(c=rM(e)),fn(e)?(a=fi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=uh(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function sM(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 aM(t){var e=sM(t);return my.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function lM(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function cM(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 Bm={placement:"bottom",modifiers:[],strategy:"absolute"};function Rm(){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 My(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Bm:o;return function(c,a,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bm,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(y){var b=typeof y=="function"?y(d.options):y;g(),d.options=Object.assign({},i,d.options,b),d.scrollParents={reference:No(c)?ns(c):c.contextElement?ns(c.contextElement):[],popper:ns(a)};var E=aM(cM([].concat(r,d.options.modifiers)));return d.orderedModifiers=E.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var y=d.elements,b=y.reference,E=y.popper;if(Rm(b,E)){d.rects={reference:iM(b,Ws(E),d.options.strategy==="fixed"),popper:ah(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var S=d.orderedModifiers[C],_=S.fn,T=S.options,D=T===void 0?{}:T,Y=S.name;typeof _=="function"&&(d=_({state:d,options:D,name:Y,instance:p})||d)}}}},update:lM(function(){return new Promise(function(v){p.forceUpdate(),v(d)})}),destroy:function(){g(),h=!0}};if(!Rm(c,a))return p;p.setOptions(u).then(function(v){!h&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var y=v.name,b=v.options,E=b===void 0?{}:b,C=v.effect;if(typeof C=="function"){var S=C({state:d,name:y,instance:p,options:E}),_=function(){};f.push(S||_)}})}function g(){f.forEach(function(v){return v()}),f=[]}return p}}var uM=[Sy,Ny,wy,gy,_y,Ty,Oy,ky,Iy],fh=My({defaultModifiers:uM});const Ly=Object.freeze(Object.defineProperty({__proto__:null,afterMain:dy,afterRead:ly,afterWrite:py,applyStyles:gy,arrow:ky,auto:mc,basePlacements:ki,beforeMain:cy,beforeRead:sy,beforeWrite:fy,bottom:Xt,clippingParents:oy,computeStyles:wy,createPopper:fh,detectOverflow:pi,end:ui,eventListeners:Sy,flip:Ty,hide:Iy,left:Bt,main:uy,modifierPhases:my,offset:_y,placements:ih,popper:Qo,popperGenerator:My,popperOffsets:Ny,preventOverflow:Oy,read:ay,reference:iy,right:qt,start:_o,top:Pt,variationPlacements:Sd,viewport:oh,write:hy},Symbol.toStringTag,{value:"Module"}));const gr=new Map,du={set(t,e,n){gr.has(t)||gr.set(t,new Map);const r=gr.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 gr.has(t)&&gr.get(t).get(e)||null},remove(t,e){if(!gr.has(t))return;const n=gr.get(t);n.delete(e),n.size===0&&gr.delete(t)}},dM=1e6,fM=1e3,Td="transitionend",Dy=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),hM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),pM=t=>{do t+=Math.floor(Math.random()*dM);while(document.getElementById(t));return t},mM=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))*fM)},Py=t=>{t.dispatchEvent(new Event(Td))},or=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Vr=t=>or(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Dy(t)):null,wi=t=>{if(!or(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},$r=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",By=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?By(t.parentNode):null},Fl=()=>{},Ks=t=>{t.offsetHeight},Ry=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,fu=[],gM=t=>{document.readyState==="loading"?(fu.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of fu)e()}),fu.push(t)):t()},hn=()=>document.documentElement.dir==="rtl",mn=t=>{gM(()=>{const e=Ry();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)}})},Ht=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,Vy=(t,e,n=!0)=>{if(!n){Ht(t);return}const o=mM(e)+5;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(Td,s),Ht(t))};e.addEventListener(Td,s),setTimeout(()=>{i||Py(e)},o)},hh=(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))])},vM=/[^.]*(?=\..*)\.|.*/,yM=/\..*/,bM=/::\d+$/,hu={};let Vm=1;const $y={mouseenter:"mouseover",mouseleave:"mouseout"},CM=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 Fy(t,e){return e&&`${e}::${Vm++}`||t.uidEvent||Vm++}function zy(t){const e=Fy(t);return t.uidEvent=e,hu[e]=hu[e]||{},hu[e]}function EM(t,e){return function n(r){return ph(r,{delegateTarget:t}),n.oneOff&&ce.off(t,r.type,e),e.apply(t,[r])}}function kM(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 ph(o,{delegateTarget:s}),r.oneOff&&ce.off(t,o.type,e,n),n.apply(s,[o])}}function Uy(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function Hy(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=jy(t);return CM.has(i)||(i=t),[r,o,i]}function $m(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=Hy(e,n,r);e in $y&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=zy(t),u=a[c]||(a[c]={}),d=Uy(u,s,i?n:null);if(d){d.oneOff=d.oneOff&&o;return}const f=Fy(s,e.replace(vM,"")),h=i?kM(t,n,s):EM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,u[f]=h,t.addEventListener(c,h,i)}function Id(t,e,n,r,o){const i=Uy(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function wM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Id(t,e,n,s.callable,s.delegationSelector)}function jy(t){return t=t.replace(yM,""),$y[t]||t}const ce={on(t,e,n,r){$m(t,e,n,r,!1)},one(t,e,n,r){$m(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=Hy(e,n,r),c=s!==e,a=zy(t),u=a[s]||{},d=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Id(t,a,s,i,o?n:null);return}if(d)for(const f of Object.keys(a))wM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(u)){const p=f.replace(bM,"");(!c||e.includes(p))&&Id(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=Ry(),o=jy(e),i=e!==o;let s=null,c=!0,a=!0,u=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const d=ph(new Event(e,{bubbles:c,cancelable:!0}),n);return u&&d.preventDefault(),a&&t.dispatchEvent(d),d.defaultPrevented&&s&&s.preventDefault(),d}};function ph(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 Fm(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 pu(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ir={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${pu(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${pu(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),e[o]=Fm(t.dataset[r])}return e},getDataAttribute(t,e){return Fm(t.getAttribute(`data-bs-${pu(e)}`))}};class Ys{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=or(n)?ir.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...or(n)?ir.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=or(i)?"element":hM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const SM="5.3.8";class An extends Ys{constructor(e,n){super(),e=Vr(e),e&&(this._element=e,this._config=this._getConfig(n),du.set(this._element,this.constructor.DATA_KEY,this))}dispose(){du.remove(this._element,this.constructor.DATA_KEY),ce.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){Vy(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return du.get(Vr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return SM}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 mu=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 e?e.split(",").map(n=>Dy(n)).join(","):null},Se={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=>!$r(n)&&wi(n))},getSelectorFromElement(t){const e=mu(t);return e&&Se.findOne(e)?e:null},getElementFromSelector(t){const e=mu(t);return e?Se.findOne(e):null},getMultipleElementsFromSelector(t){const e=mu(t);return e?Se.find(e):[]}},vc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;ce.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),$r(this))return;const i=Se.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},AM="alert",xM="bs.alert",Wy=`.${xM}`,TM=`close${Wy}`,IM=`closed${Wy}`,_M="fade",NM="show";class yc extends An{static get NAME(){return AM}close(){if(ce.trigger(this._element,TM).defaultPrevented)return;this._element.classList.remove(NM);const n=this._element.classList.contains(_M);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),ce.trigger(this._element,IM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=yc.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)}})}}vc(yc,"close");mn(yc);const OM="button",MM="bs.button",LM=`.${MM}`,DM=".data-api",PM="active",zm='[data-bs-toggle="button"]',BM=`click${LM}${DM}`;class bc extends An{static get NAME(){return OM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(PM))}static jQueryInterface(e){return this.each(function(){const n=bc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}ce.on(document,BM,zm,t=>{t.preventDefault();const e=t.target.closest(zm);bc.getOrCreateInstance(e).toggle()});mn(bc);const RM="swipe",Si=".bs.swipe",VM=`touchstart${Si}`,$M=`touchmove${Si}`,FM=`touchend${Si}`,zM=`pointerdown${Si}`,UM=`pointerup${Si}`,HM="touch",jM="pen",WM="pointer-event",KM=40,YM={endCallback:null,leftCallback:null,rightCallback:null},GM={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class zl extends Ys{constructor(e,n){super(),this._element=e,!(!e||!zl.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return YM}static get DefaultType(){return GM}static get NAME(){return RM}dispose(){ce.off(this._element,Si)}_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(),Ht(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<=KM)return;const n=e/this._deltaX;this._deltaX=0,n&&Ht(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ce.on(this._element,zM,e=>this._start(e)),ce.on(this._element,UM,e=>this._end(e)),this._element.classList.add(WM)):(ce.on(this._element,VM,e=>this._start(e)),ce.on(this._element,$M,e=>this._move(e)),ce.on(this._element,FM,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===jM||e.pointerType===HM)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const QM="carousel",ZM="bs.carousel",Gr=`.${ZM}`,Ky=".data-api",JM="ArrowLeft",XM="ArrowRight",qM=500,Oi="next",zo="prev",Zo="left",$a="right",eL=`slide${Gr}`,gu=`slid${Gr}`,tL=`keydown${Gr}`,nL=`mouseenter${Gr}`,rL=`mouseleave${Gr}`,oL=`dragstart${Gr}`,iL=`load${Gr}${Ky}`,sL=`click${Gr}${Ky}`,Yy="carousel",Ca="active",aL="slide",lL="carousel-item-end",cL="carousel-item-start",uL="carousel-item-next",dL="carousel-item-prev",Gy=".active",Qy=".carousel-item",fL=Gy+Qy,hL=".carousel-item img",pL=".carousel-indicators",mL="[data-bs-slide], [data-bs-slide-to]",gL='[data-bs-ride="carousel"]',vL={[JM]:$a,[XM]:Zo},yL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},bL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Gs extends An{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Se.findOne(pL,this._element),this._addEventListeners(),this._config.ride===Yy&&this.cycle()}static get Default(){return yL}static get DefaultType(){return bL}static get NAME(){return QM}next(){this._slide(Oi)}nextWhenVisible(){!document.hidden&&wi(this._element)&&this.next()}prev(){this._slide(zo)}pause(){this._isSliding&&Py(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){ce.one(this._element,gu,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){ce.one(this._element,gu,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Oi:zo;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&&ce.on(this._element,tL,e=>this._keydown(e)),this._config.pause==="hover"&&(ce.on(this._element,nL,()=>this.pause()),ce.on(this._element,rL,()=>this._maybeEnableCycle())),this._config.touch&&zl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Se.find(hL,this._element))ce.on(r,oL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Zo)),rightCallback:()=>this._slide(this._directionToOrder($a)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),qM+this._config.interval))}};this._swipeHelper=new zl(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=vL[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=Se.findOne(Gy,this._indicatorsElement);n.classList.remove(Ca),n.removeAttribute("aria-current");const r=Se.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Ca),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===Oi,i=n||hh(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>ce.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(eL).defaultPrevented||!r||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const d=o?cL:lL,f=o?uL:dL;i.classList.add(f),Ks(i),r.classList.add(d),i.classList.add(d);const h=()=>{i.classList.remove(d,f),i.classList.add(Ca),r.classList.remove(Ca,f,d),this._isSliding=!1,c(gu)};this._queueCallback(h,r,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(aL)}_getActive(){return Se.findOne(fL,this._element)}_getItems(){return Se.find(Qy,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return hn()?e===Zo?zo:Oi:e===Zo?Oi:zo}_orderToDirection(e){return hn()?e===zo?Zo:$a:e===zo?$a:Zo}static jQueryInterface(e){return this.each(function(){const n=Gs.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]()}})}}ce.on(document,sL,mL,function(t){const e=Se.getElementFromSelector(this);if(!e||!e.classList.contains(Yy))return;t.preventDefault();const n=Gs.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ir.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});ce.on(window,iL,()=>{const t=Se.find(gL);for(const e of t)Gs.getOrCreateInstance(e)});mn(Gs);const CL="collapse",EL="bs.collapse",Qs=`.${EL}`,kL=".data-api",wL=`show${Qs}`,SL=`shown${Qs}`,AL=`hide${Qs}`,xL=`hidden${Qs}`,TL=`click${Qs}${kL}`,vu="show",ei="collapse",Ea="collapsing",IL="collapsed",_L=`:scope .${ei} .${ei}`,NL="collapse-horizontal",OL="width",ML="height",LL=".collapse.show, .collapse.collapsing",_d='[data-bs-toggle="collapse"]',DL={parent:null,toggle:!0},PL={parent:"(null|element)",toggle:"boolean"};class Ds extends An{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Se.find(_d);for(const o of r){const i=Se.getSelectorFromElement(o),s=Se.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 DL}static get DefaultType(){return PL}static get NAME(){return CL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(LL).filter(c=>c!==this._element).map(c=>Ds.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||ce.trigger(this._element,wL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(ei),this._element.classList.add(Ea),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ea),this._element.classList.add(ei,vu),this._element.style[r]="",ce.trigger(this._element,SL)},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()||ce.trigger(this._element,AL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ks(this._element),this._element.classList.add(Ea),this._element.classList.remove(ei,vu);for(const o of this._triggerArray){const i=Se.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ea),this._element.classList.add(ei),ce.trigger(this._element,xL)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(vu)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Vr(e.parent),e}_getDimension(){return this._element.classList.contains(NL)?OL:ML}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(_d);for(const n of e){const r=Se.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Se.find(_L,this._config.parent);return Se.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(IL,!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=Ds.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ce.on(document,TL,_d,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Se.getMultipleElementsFromSelector(this))Ds.getOrCreateInstance(e,{toggle:!1}).toggle()});mn(Ds);const Um="dropdown",BL="bs.dropdown",Lo=`.${BL}`,mh=".data-api",RL="Escape",Hm="Tab",VL="ArrowUp",jm="ArrowDown",$L=2,FL=`hide${Lo}`,zL=`hidden${Lo}`,UL=`show${Lo}`,HL=`shown${Lo}`,Zy=`click${Lo}${mh}`,Jy=`keydown${Lo}${mh}`,jL=`keyup${Lo}${mh}`,Jo="show",WL="dropup",KL="dropend",YL="dropstart",GL="dropup-center",QL="dropdown-center",lo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ZL=`${lo}.${Jo}`,Fa=".dropdown-menu",JL=".navbar",XL=".navbar-nav",qL=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",eD=hn()?"top-end":"top-start",tD=hn()?"top-start":"top-end",nD=hn()?"bottom-end":"bottom-start",rD=hn()?"bottom-start":"bottom-end",oD=hn()?"left-start":"right-start",iD=hn()?"right-start":"left-start",sD="top",aD="bottom",lD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},cD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class $n extends An{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Se.next(this._element,Fa)[0]||Se.prev(this._element,Fa)[0]||Se.findOne(Fa,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return lD}static get DefaultType(){return cD}static get NAME(){return Um}toggle(){return this._isShown()?this.hide():this.show()}show(){if($r(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ce.trigger(this._element,UL,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(XL))for(const r of[].concat(...document.body.children))ce.on(r,"mouseover",Fl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Jo),this._element.classList.add(Jo),ce.trigger(this._element,HL,e)}}hide(){if($r(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(!ce.trigger(this._element,FL,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ce.off(r,"mouseover",Fl);this._popper&&this._popper.destroy(),this._menu.classList.remove(Jo),this._element.classList.remove(Jo),this._element.setAttribute("aria-expanded","false"),ir.removeDataAttribute(this._menu,"popper"),ce.trigger(this._element,zL,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!or(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Um.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Ly>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:or(this._config.reference)?e=Vr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=fh(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Jo)}_getPlacement(){const e=this._parent;if(e.classList.contains(KL))return oD;if(e.classList.contains(YL))return iD;if(e.classList.contains(GL))return sD;if(e.classList.contains(QL))return aD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(WL)?n?tD:eD:n?rD:nD}_detectNavbar(){return this._element.closest(JL)!==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")&&(ir.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ht(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const r=Se.find(qL,this._menu).filter(o=>wi(o));r.length&&hh(r,n,e===jm,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=$n.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===$L||e.type==="keyup"&&e.key!==Hm)return;const n=Se.find(ZL);for(const r of n){const o=$n.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===Hm||/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===RL,o=[VL,jm].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(lo)?this:Se.prev(this,lo)[0]||Se.next(this,lo)[0]||Se.findOne(lo,e.delegateTarget.parentNode),s=$n.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ce.on(document,Jy,lo,$n.dataApiKeydownHandler);ce.on(document,Jy,Fa,$n.dataApiKeydownHandler);ce.on(document,Zy,$n.clearMenus);ce.on(document,jL,$n.clearMenus);ce.on(document,Zy,lo,function(t){t.preventDefault(),$n.getOrCreateInstance(this).toggle()});mn($n);const Xy="backdrop",uD="fade",Wm="show",Km=`mousedown.bs.${Xy}`,dD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},fD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class qy extends Ys{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return dD}static get DefaultType(){return fD}static get NAME(){return Xy}show(e){if(!this._config.isVisible){Ht(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Ks(n),n.classList.add(Wm),this._emulateAnimation(()=>{Ht(e)})}hide(e){if(!this._config.isVisible){Ht(e);return}this._getElement().classList.remove(Wm),this._emulateAnimation(()=>{this.dispose(),Ht(e)})}dispose(){this._isAppended&&(ce.off(this._element,Km),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(uD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Vr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ce.on(e,Km,()=>{Ht(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Vy(e,this._getElement(),this._config.isAnimated)}}const hD="focustrap",pD="bs.focustrap",Ul=`.${pD}`,mD=`focusin${Ul}`,gD=`keydown.tab${Ul}`,vD="Tab",yD="forward",Ym="backward",bD={autofocus:!0,trapElement:null},CD={autofocus:"boolean",trapElement:"element"};class e3 extends Ys{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return bD}static get DefaultType(){return CD}static get NAME(){return hD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ce.off(document,Ul),ce.on(document,mD,e=>this._handleFocusin(e)),ce.on(document,gD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ce.off(document,Ul))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Se.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Ym?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===vD&&(this._lastTabNavDirection=e.shiftKey?Ym:yD)}}const Gm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qm=".sticky-top",ka="padding-right",Zm="margin-right";class Nd{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,ka,n=>n+e),this._setElementAttributes(Gm,ka,n=>n+e),this._setElementAttributes(Qm,Zm,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ka),this._resetElementAttributes(Gm,ka),this._resetElementAttributes(Qm,Zm)}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&&ir.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=ir.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}ir.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(or(e)){n(e);return}for(const r of Se.find(e,this._element))n(r)}}const ED="modal",kD="bs.modal",pn=`.${kD}`,wD=".data-api",SD="Escape",AD=`hide${pn}`,xD=`hidePrevented${pn}`,t3=`hidden${pn}`,n3=`show${pn}`,TD=`shown${pn}`,ID=`resize${pn}`,_D=`click.dismiss${pn}`,ND=`mousedown.dismiss${pn}`,OD=`keydown.dismiss${pn}`,MD=`click${pn}${wD}`,Jm="modal-open",LD="fade",Xm="show",yu="modal-static",DD=".modal.show",PD=".modal-dialog",BD=".modal-body",RD='[data-bs-toggle="modal"]',VD={backdrop:!0,focus:!0,keyboard:!0},$D={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Fr extends An{constructor(e,n){super(e,n),this._dialog=Se.findOne(PD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Nd,this._addEventListeners()}static get Default(){return VD}static get DefaultType(){return $D}static get NAME(){return ED}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ce.trigger(this._element,n3,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Jm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ce.trigger(this._element,AD).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Xm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ce.off(window,pn),ce.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new qy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new e3({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=Se.findOne(BD,this._dialog);n&&(n.scrollTop=0),Ks(this._element),this._element.classList.add(Xm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ce.trigger(this._element,TD,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ce.on(this._element,OD,e=>{if(e.key===SD){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ce.on(window,ID,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ce.on(this._element,ND,e=>{ce.one(this._element,_D,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(Jm),this._resetAdjustments(),this._scrollBar.reset(),ce.trigger(this._element,t3)})}_isAnimated(){return this._element.classList.contains(LD)}_triggerBackdropTransition(){if(ce.trigger(this._element,xD).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(yu)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(yu),this._queueCallback(()=>{this._element.classList.remove(yu),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=hn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=hn()?"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=Fr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}ce.on(document,MD,RD,function(t){const e=Se.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),ce.one(e,n3,o=>{o.defaultPrevented||ce.one(e,t3,()=>{wi(this)&&this.focus()})});const n=Se.findOne(DD);n&&Fr.getInstance(n).hide(),Fr.getOrCreateInstance(e).toggle(this)});vc(Fr);mn(Fr);const FD="offcanvas",zD="bs.offcanvas",dr=`.${zD}`,r3=".data-api",UD=`load${dr}${r3}`,HD="Escape",qm="show",e0="showing",t0="hiding",jD="offcanvas-backdrop",o3=".offcanvas.show",WD=`show${dr}`,KD=`shown${dr}`,YD=`hide${dr}`,n0=`hidePrevented${dr}`,i3=`hidden${dr}`,GD=`resize${dr}`,QD=`click${dr}${r3}`,ZD=`keydown.dismiss${dr}`,JD='[data-bs-toggle="offcanvas"]',XD={backdrop:!0,keyboard:!0,scroll:!1},qD={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zr extends An{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return XD}static get DefaultType(){return qD}static get NAME(){return FD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ce.trigger(this._element,WD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Nd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(e0);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qm),this._element.classList.remove(e0),ce.trigger(this._element,KD,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ce.trigger(this._element,YD).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(t0),this._backdrop.hide();const n=()=>{this._element.classList.remove(qm,t0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Nd().reset(),ce.trigger(this._element,i3)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ce.trigger(this._element,n0);return}this.hide()},n=!!this._config.backdrop;return new qy({className:jD,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new e3({trapElement:this._element})}_addEventListeners(){ce.on(this._element,ZD,e=>{if(e.key===HD){if(this._config.keyboard){this.hide();return}ce.trigger(this._element,n0)}})}static jQueryInterface(e){return this.each(function(){const n=zr.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)}})}}ce.on(document,QD,JD,function(t){const e=Se.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$r(this))return;ce.one(e,i3,()=>{wi(this)&&this.focus()});const n=Se.findOne(o3);n&&n!==e&&zr.getInstance(n).hide(),zr.getOrCreateInstance(e).toggle(this)});ce.on(window,UD,()=>{for(const t of Se.find(o3))zr.getOrCreateInstance(t).show()});ce.on(window,GD,()=>{for(const t of Se.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&zr.getOrCreateInstance(t).hide()});vc(zr);mn(zr);const eP=/^aria-[\w-]*$/i,s3={"*":["class","dir","id","lang","role",eP],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},tP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),nP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,rP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?tP.has(n)?!!nP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function oP(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),u=[].concat(e["*"]||[],e[c]||[]);for(const d of a)rP(d,u)||s.removeAttribute(d.nodeName)}return o.body.innerHTML}const iP="TemplateFactory",sP={allowList:s3,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},aP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},lP={entry:"(string|element|function|null)",selector:"(string|element)"};class cP extends Ys{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return sP}static get DefaultType(){return aP}static get NAME(){return iP}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},lP)}_setContent(e,n,r){const o=Se.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(or(n)){this._putElementInTemplate(Vr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?oP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ht(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const uP="tooltip",dP=new Set(["sanitize","allowList","sanitizeFn"]),bu="fade",fP="modal",wa="show",hP=".tooltip-inner",r0=`.${fP}`,o0="hide.bs.modal",Mi="hover",Cu="focus",Eu="click",pP="manual",mP="hide",gP="hidden",vP="show",yP="shown",bP="inserted",CP="click",EP="focusin",kP="focusout",wP="mouseenter",SP="mouseleave",AP={AUTO:"auto",TOP:"top",RIGHT:hn()?"left":"right",BOTTOM:"bottom",LEFT:hn()?"right":"left"},xP={allowList:s3,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"},TP={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 Rn extends An{constructor(e,n){if(typeof Ly>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 xP}static get DefaultType(){return TP}static get NAME(){return uP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ce.off(this._element.closest(r0),o0,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=ce.trigger(this._element,this.constructor.eventName(vP)),r=(By(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),ce.trigger(this._element,this.constructor.eventName(bP))),this._popper=this._createPopper(o),o.classList.add(wa),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))ce.on(c,"mouseover",Fl);const s=()=>{ce.trigger(this._element,this.constructor.eventName(yP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ce.trigger(this._element,this.constructor.eventName(mP)).defaultPrevented)return;if(this._getTipElement().classList.remove(wa),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ce.off(o,"mouseover",Fl);this._activeTrigger[Eu]=!1,this._activeTrigger[Cu]=!1,this._activeTrigger[Mi]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ce.trigger(this._element,this.constructor.eventName(gP)))};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(bu,wa),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=pM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(bu),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new cP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[hP]: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(bu)}_isShown(){return this.tip&&this.tip.classList.contains(wa)}_createPopper(e){const n=Ht(this._config.placement,[this,e,this._element]),r=AP[n.toUpperCase()];return fh(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 Ht(e,[this._element,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,...Ht(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")ce.on(this._element,this.constructor.eventName(CP),this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[Eu]=!(o._isShown()&&o._activeTrigger[Eu]),o.toggle()});else if(n!==pP){const r=n===Mi?this.constructor.eventName(wP):this.constructor.eventName(EP),o=n===Mi?this.constructor.eventName(SP):this.constructor.eventName(kP);ce.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Cu:Mi]=!0,s._enter()}),ce.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Cu:Mi]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ce.on(this._element.closest(r0),o0,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=ir.getDataAttributes(this._element);for(const r of Object.keys(n))dP.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:Vr(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=Rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}mn(Rn);const IP="popover",_P=".popover-header",NP=".popover-body",OP={...Rn.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"},MP={...Rn.DefaultType,content:"(null|string|element|function)"};class co extends Rn{static get Default(){return OP}static get DefaultType(){return MP}static get NAME(){return IP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[_P]:this._getTitle(),[NP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=co.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}mn(co);const LP="scrollspy",DP="bs.scrollspy",gh=`.${DP}`,PP=".data-api",BP=`activate${gh}`,i0=`click${gh}`,RP=`load${gh}${PP}`,VP="dropdown-item",Uo="active",$P='[data-bs-spy="scroll"]',ku="[href]",FP=".nav, .list-group",s0=".nav-link",zP=".nav-item",UP=".list-group-item",HP=`${s0}, ${zP} > ${s0}, ${UP}`,jP=".dropdown",WP=".dropdown-toggle",KP={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},YP={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Cc extends An{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 KP}static get DefaultType(){return YP}static get NAME(){return LP}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=Vr(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&&(ce.off(this._config.target,i0),ce.on(this._config.target,i0,ku,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=Se.find(ku,this._config.target);for(const n of e){if(!n.hash||$r(n))continue;const r=Se.findOne(decodeURI(n.hash),this._element);wi(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(Uo),this._activateParents(e),ce.trigger(this._element,BP,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(VP)){Se.findOne(WP,e.closest(jP)).classList.add(Uo);return}for(const n of Se.parents(e,FP))for(const r of Se.prev(n,HP))r.classList.add(Uo)}_clearActiveClass(e){e.classList.remove(Uo);const n=Se.find(`${ku}.${Uo}`,e);for(const r of n)r.classList.remove(Uo)}static jQueryInterface(e){return this.each(function(){const n=Cc.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]()}})}}ce.on(window,RP,()=>{for(const t of Se.find($P))Cc.getOrCreateInstance(t)});mn(Cc);const GP="tab",QP="bs.tab",Do=`.${QP}`,ZP=`hide${Do}`,JP=`hidden${Do}`,XP=`show${Do}`,qP=`shown${Do}`,eB=`click${Do}`,tB=`keydown${Do}`,nB=`load${Do}`,rB="ArrowLeft",a0="ArrowRight",oB="ArrowUp",l0="ArrowDown",wu="Home",c0="End",uo="active",u0="fade",Su="show",iB="dropdown",a3=".dropdown-toggle",sB=".dropdown-menu",Au=`:not(${a3})`,aB='.list-group, .nav, [role="tablist"]',lB=".nav-item, .list-group-item",cB=`.nav-link${Au}, .list-group-item${Au}, [role="tab"]${Au}`,l3='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xu=`${cB}, ${l3}`,uB=`.${uo}[data-bs-toggle="tab"], .${uo}[data-bs-toggle="pill"], .${uo}[data-bs-toggle="list"]`;class mi extends An{constructor(e){super(e),this._parent=this._element.closest(aB),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ce.on(this._element,tB,n=>this._keydown(n)))}static get NAME(){return GP}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?ce.trigger(n,ZP,{relatedTarget:e}):null;ce.trigger(e,XP,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(uo),this._activate(Se.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Su);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ce.trigger(e,qP,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(u0))}_deactivate(e,n){if(!e)return;e.classList.remove(uo),e.blur(),this._deactivate(Se.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Su);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ce.trigger(e,JP,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(u0))}_keydown(e){if(![rB,a0,oB,l0,wu,c0].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(o=>!$r(o));let r;if([wu,c0].includes(e.key))r=n[e.key===wu?0:n.length-1];else{const o=[a0,l0].includes(e.key);r=hh(n,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),mi.getOrCreateInstance(r).show())}_getChildren(){return Se.find(xu,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=Se.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(iB))return;const o=(i,s)=>{const c=Se.findOne(i,r);c&&c.classList.toggle(s,n)};o(a3,uo),o(sB,Su),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(uo)}_getInnerElement(e){return e.matches(xu)?e:Se.findOne(xu,e)}_getOuterElement(e){return e.closest(lB)||e}static jQueryInterface(e){return this.each(function(){const n=mi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ce.on(document,eB,l3,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!$r(this)&&mi.getOrCreateInstance(this).show()});ce.on(window,nB,()=>{for(const t of Se.find(uB))mi.getOrCreateInstance(t)});mn(mi);const dB="toast",fB="bs.toast",Qr=`.${fB}`,hB=`mouseover${Qr}`,pB=`mouseout${Qr}`,mB=`focusin${Qr}`,gB=`focusout${Qr}`,vB=`hide${Qr}`,yB=`hidden${Qr}`,bB=`show${Qr}`,CB=`shown${Qr}`,EB="fade",d0="hide",Sa="show",Aa="showing",kB={animation:"boolean",autohide:"boolean",delay:"number"},wB={animation:!0,autohide:!0,delay:5e3};class Ai extends An{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return wB}static get DefaultType(){return kB}static get NAME(){return dB}show(){if(ce.trigger(this._element,bB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(EB);const n=()=>{this._element.classList.remove(Aa),ce.trigger(this._element,CB),this._maybeScheduleHide()};this._element.classList.remove(d0),Ks(this._element),this._element.classList.add(Sa,Aa),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||ce.trigger(this._element,vB).defaultPrevented)return;const n=()=>{this._element.classList.add(d0),this._element.classList.remove(Aa,Sa),ce.trigger(this._element,yB)};this._element.classList.add(Aa),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Sa),super.dispose()}isShown(){return this._element.classList.contains(Sa)}_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(){ce.on(this._element,hB,e=>this._onInteraction(e,!0)),ce.on(this._element,pB,e=>this._onInteraction(e,!1)),ce.on(this._element,mB,e=>this._onInteraction(e,!0)),ce.on(this._element,gB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Ai.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}vc(Ai);mn(Ai);function f0(t,e){return e.value||t.getAttribute("title")||""}const Po={mounted:(t,e)=>{const n=f0(t,e);n&&t.setAttribute("title",n),new Rn(t)},updated:(t,e)=>{const n=Rn.getInstance(t);n&&n.dispose();const r=f0(t,e);r&&t.setAttribute("title",r),new Rn(t)},unmounted:t=>{const e=Rn.getInstance(t);e&&e.dispose()}},SB={key:0,class:"pills-list__wrapper"},AB={class:"pills-list__ul"},xB={class:"bd-markdown-editor__menu-bottom"},TB={key:0,class:"vr"},c3=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:uu.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("upload")},i=Oo(n,"modelValue",r),s=[N_,L_,P_,_N.configure({placeholder:n.placeholder}),aO,lN.configure({openOnClick:!1,validate:K=>/^(https?:\/\/|www\.)/i.test(K)})];n.variant===uu.FULL&&s.push(PN,zN,HN,rO,oO,iO);const c=I_({content:i.value,extensions:s,onUpdate:({editor:K})=>{const{view:F,state:z}=K,{from:$,to:J}=F.state.selection;if(z.doc.textBetween($-1,J,"")==" "&&K.getAttributes("link").href!=null&&K.chain().setTextSelection({from:$-1,to:J}).toggleLink({href:K.getAttributes("link").href}).setTextSelection({from:J,to:J}).run(),K.getText().trim()===""){r("update:modelValue","");return}r("update:modelValue",K.getHTML())}});l.watch(()=>n.modelValue,K=>{c.value.getHTML()!==K&&c.value.commands.setContent(K,!0,{preserveWhitespace:"full"})});const a=l.computed(()=>n.state===!1?"is-invalid":null),u=l.computed(()=>v("bold")),d=l.computed(()=>v("italic")),f=l.computed(()=>v("underline")),h=l.computed(()=>v("bulletList")),p=l.computed(()=>v("orderedList")),m=l.computed(()=>v("link")),g=l.computed(()=>n.variant===uu.FULL),v=K=>c.value&&c.value.isActive(K)?"active":null,y=l.computed(()=>n.files&&n.files.length>0?Io(n.apiUrl,n.files,!1):null),b=l.computed(()=>n.files&&n.files.length>0?Io(n.apiUrl,n.files,!0):null),E=K=>{r("action",{name:"delete-attachment",obj:K})},C=K=>{r("action",{name:"image-attachment",obj:K})},S=l.computed(()=>{if(!c.value)return!1;const{from:K,to:F}=c.value.state.selection;return K!==F}),_=l.computed(()=>S.value?"Voeg een link toe":"Selecteer eerst tekst"),T=l.ref(!1),D=l.ref(""),Y=l.ref(null),V=()=>{D.value=c.value.getAttributes("link").href||"",T.value=!0},H=K=>{if(T.value=!1,!K){c.value.chain().focus().unsetLink().run();return}/^www\./i.test(K)&&(K=`https://${K}`),c.value.chain().focus().toggleLink({href:K}).run()},j=()=>{T.value=!1};return(K,F)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",a.value])},[l.createVNode(l.unref(T_),{editor:l.unref(c)},null,8,["editor"]),t.pills?(l.openBlock(),l.createElementBlock("div",SB,[l.createElementVNode("ul",AB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(z,$)=>(l.openBlock(),l.createElementBlock("li",{key:$,class:"pills-list__li"},[l.createVNode(ec,l.mergeProps({ref_for:!0},z),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(K.$slots,"default"),y.value?(l.openBlock(),l.createBlock(Hs,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):l.createCommentVNode("",!0),b.value?(l.openBlock(),l.createBlock(js,{key:2,files:b.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:E,onShow:C},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",xB,[l.createVNode(Re,{variant:"light",type:"button",onClick:o},{default:l.withCtx(()=>[l.createVNode(l.unref(Dr))]),_:1}),g.value?(l.openBlock(),l.createElementBlock("div",TB)):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:1,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:F[0]||(F[0]=z=>l.unref(c).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Dd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:2,variant:"light",type:"button",class:l.normalizeClass(d.value),onClick:F[1]||(F[1]=z=>l.unref(c).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Kd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:3,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:F[2]||(F[2]=z=>l.unref(c).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(qd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:4,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:F[3]||(F[3]=z=>l.unref(c).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Pd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:5,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:F[4]||(F[4]=z=>l.unref(c).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gd))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[g.value?(l.openBlock(),l.createBlock(Re,{key:0,ref_key:"linkButton",ref:Y,variant:"light",type:"button",class:l.normalizeClass(m.value),onClick:V,disabled:!S.value},{default:l.withCtx(()=>[l.createVNode(l.unref(Kl))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Po),_.value]])]),T.value?(l.openBlock(),l.createBlock(dO,{key:3,previousUrl:D.value,onSubmit:H,onCancel:j},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(ql,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),IB={class:"header"},_B={class:"icon-close-wrapper"},NB={class:"navbar"},OB={class:"nav navbar-nav w-100"},MB={class:"nav-item"},LB={class:"nav-item"},vh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=e,r=t,o=l.computed(()=>({active:r.active===!0,inactive:r.active===!1})),i=()=>n("hide"),s=()=>n("signout");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",o.value])},[l.createElementVNode("div",IB,[a[0]||(a[0]=l.createElementVNode("div",null,"Menu",-1)),l.createElementVNode("div",_B,[l.createVNode(jl,{onClick:i})])]),l.createElementVNode("nav",NB,[l.createElementVNode("ul",OB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,u=>(l.openBlock(),l.createElementBlock("li",MB,[l.createVNode(Co,l.mergeProps({class:"nav-link"},{ref_for:!0},u,{onClick:i}),null,16)]))),256)),l.renderSlot(c.$slots,"special-options"),l.createElementVNode("li",LB,[l.createVNode(Co,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),DB={class:"bd-user"},PB={class:"bd-user__information"},BB={class:"text-break"},RB={class:"overflow-x-hidden"},u3=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(()=>typeof e.details=="string"?e.details:e.details?.join(" • "));return(r,o)=>(l.openBlock(),l.createElementBlock("div",DB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Bs,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",PB,[l.createElementVNode("header",null,[l.createElementVNode("h5",BB,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",RB,l.toDisplayString(n.value),1)])]))}}),VB={class:"bd-chat-cloud-card"},$B={class:"bd-chat-cloud-card__header"},FB={class:"bd-chat-cloud-card__body"},zB=["innerHTML"],UB={class:"bd-chat-cloud-card__footer"},HB={key:0,class:"pills-list__wrapper"},jB={class:"pills-list__ul"},d3=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},apiUrl:{default:""}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>n.isSender?"sender":_e),i=l.computed(()=>Io(n.apiUrl,n.files,!1)),s=l.computed(()=>Io(n.apiUrl,n.files,!0)),c=()=>{r("action","copy-message")},a=u=>{r("show-attachment",u)};return(u,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",o.value])},[l.createVNode(Bs,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",VB,[l.createElementVNode("div",$B,[l.renderSlot(u.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(t.headerTitle),1)]),l.createVNode(Re,{variant:"outline-primary-dark",size:"sm",onClick:c},{default:l.withCtx(()=>[...d[0]||(d[0]=[l.createTextVNode(" kopieer ",-1)])]),_:1})]),l.createElementVNode("div",FB,[l.renderSlot(u.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,zB)])]),l.createElementVNode("div",UB,[l.renderSlot(u.$slots,"footer",{},()=>[t.pills?(l.openBlock(),l.createElementBlock("div",HB,[l.createElementVNode("ul",jB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"pills-list__li"},[l.createVNode(ec,l.mergeProps({ref_for:!0},f),null,16)]))),128))])])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Hs,{key:1,files:i.value},null,8,["files"])):l.createCommentVNode("",!0),s.value&&s.value.length>0?(l.openBlock(),l.createBlock(js,{key:2,"fast-download":!0,files:s.value,onShow:a},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),WB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.sortDesc),i=()=>{n.active&&(o.value=!o.value)},s=()=>{if(!n.active)return;const a=o.value?"sortDesc":"sortAsc";r(a)},c=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(a,u)=>{a&&!u&&(o.value=!1,r("sortAsc"))}),s(),(a,u)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(c.value),onClick:u[0]||(u[0]=d=>{i(),s()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!o.value?(l.openBlock(),l.createBlock(l.unref(Qd),{key:0})):n.active&&o.value?(l.openBlock(),l.createBlock(l.unref(Zd),{key:1})):(l.openBlock(),l.createBlock(l.unref(Jd),{key:2}))],2))}}),KB={class:"bd-table"},YB={key:0,class:"table"},GB={key:1},QB=["onClick"],ZB={key:0},JB={key:1,class:"empty-text"},f3=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=n,i=l.ref(r.items),s=l.ref(r.sortBy),c=h=>s.value=h,a=(h,p,m)=>{const g=p[h],v=m[h];if(g==null)return 1;if(v==null)return-1;const y=g.toString(),b=v.toString();return y.localeCompare(b,void 0,{numeric:!0})},u=h=>{i.value=i.value.sort((m,g)=>a(h,m,g)),o("sort-changed",{sortBy:h,sortDesc:!1})},d=h=>{i.value=i.value.sort((m,g)=>a(h,g,m)),o("sort-changed",{sortBy:h,sortDesc:!0})},f=()=>{i.value=r.items};return l.watch(()=>r.items,h=>{i.value=h}),e({Refresh:f}),(h,p)=>(l.openBlock(),l.createElementBlock("div",KB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",YB,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[m.sortable?(l.openBlock(),l.createBlock(WB,{key:0,label:m.label,active:m.key==s.value,sortDesc:r.sortDesc,onClick:g=>c(m.key),onSortAsc:g=>u(m.key),onSortDesc:g=>d(m.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(l.openBlock(),l.createElementBlock("th",GB,l.toDisplayString(m.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(m)),onClick:g=>o("row-click",m)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,g=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[g.isVisible?(l.openBlock(),l.createElementBlock("td",ZB,[h.$slots.hasOwnProperty(g.key)?l.renderSlot(h.$slots,g.key,{key:0,row:m,item:m,value:m[g.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(m[g.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,QB))),256))])])):(l.openBlock(),l.createElementBlock("p",JB,l.toDisplayString(r.emptyText),1))]))}}),XB=["id"],qB={key:0,class:"toast-body__title"},eR={class:"actions"},tR=["textContent"],nR=["textContent"],rR={class:"icon-wrapper"},oR=["textContent"],iR=["textContent"],h0=3e4,p0=5e3,h3=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,r=e;let o=l.ref(!1),i=l.ref(!1),s=null,c=null;const a=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),u=l.computed(()=>o.value?[o.value?"is-handled":_e,i.value?"is-handled--success":_e,n.canceled?"is-handled--canceled":_e].join(" "):_e),d=l.computed(()=>n.canceled?n.localization.videoCallCanceled:i.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:i.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{o.value=!0});const h=()=>{const E=a.value,C=document.querySelector(`#${E}`);if(C){C.addEventListener("hide.bs.toast",b);var S={autohide:!0,delay:h0+p0};c=Ai.getOrCreateInstance(C,S),c.show(),s=window.setTimeout(p,h0)}};l.onMounted(h);const p=()=>{o.value||g()},m=()=>{g(),y()},g=()=>{o.value||(o.value=!0,r("reject-video-call",n.id))},v=()=>{o.value=!0,i.value=!0,r("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),p0)},b=()=>{o.value=!1,i.value=!1};return(E,C)=>(l.openBlock(),l.createElementBlock("div",{id:a.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(o)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",qB,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",u.value])},[l.unref(o)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",rR,[l.createVNode(Ua)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(d.value),class:"title"},null,8,oR),l.createElementVNode("p",{textContent:l.toDisplayString(f.value)},null,8,iR)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(vf,{value:t.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",eR,[l.createVNode(Re,{variant:"danger",class:"text-center",onClick:m},{default:l.withCtx(()=>[l.createVNode(Bd),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,tR)]),_:1}),l.createVNode(Re,{variant:"success",class:"text-center",onClick:v},{default:l.withCtx(()=>[l.createVNode(Ua),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,nR)]),_:1})])],64))],2)],8,XB))}}),yh=l.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:Yl.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}=vi(),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(),u=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(d,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:u}),[l.renderSlot(d.$slots,"default")],16)]))}}),sR={class:"row bd-header"},aR={class:"col logo-mix"},lR=["src"],cR={key:1,class:"col header-options"},uR={class:"col bd-btn-settings"},dR={key:2},bh=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=e,o=l.computed(()=>{let f=[];return n.isEmbedded||(n.headerOptions&&(f=f.concat(n.headerOptions)),n.dropdownOptions&&(f=f.concat(n.dropdownOptions))),f}),i=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),s=l.ref(void 0),c=()=>{n.isEmbedded||r("click-logo")},a=()=>r("signout"),u=()=>s.value=!0,d=()=>s.value=!1;return(f,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",sR,[l.createElementVNode("div",aR,[l.createVNode(Od,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:c}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,lR)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:u},[h[0]||(h[0]=l.createElementVNode("div",null,"Menu",-1)),l.createVNode(Yd)])),i.value?(l.openBlock(),l.createElementBlock("div",cR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,p=>(l.openBlock(),l.createBlock(Re,{class:"btn-header",to:p.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",uR,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(f.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(Bs,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",dR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(yh,{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,(p,m)=>(l.openBlock(),l.createBlock(Za,l.mergeProps({key:m},{ref_for:!0},p),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Za,{key:0,text:"Uitloggen",onClick:a})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(vh,{key:0,active:s.value,options:o.value,onHide:d,onSignout:a},{"special-options":l.withCtx(()=>[l.renderSlot(f.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),fR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e",m0=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 Ch(){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 hR=(t,e,n)=>{const{OnWindowLoaded:r}=Ch(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const u=s(),d=localStorage.getItem(t),f=JSON.parse(d)||[],h=await m0(u,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const u=s(),d=await m0(u,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(d)||(h.push(d),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function p3(t){const{OnWindowLoaded:e}=Ch();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=co.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if(t?.value==null)return;co.getInstance(t.value)||new co(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if(t?.value!=null){const i=co.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const pR=["data-bs-title","data-bs-content"],mR=["title"],gR={key:0,class:"number-circle",textContent:1},vR=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>e.getNotification?.linkUrl,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=hR("notificationsRead",e.userId,n),i=l.ref();p3(i);const s=l.computed(()=>{const d=e.getNotification;if(!d)return!1;const{isActive:f,startDate:h,endDate:p}=d;if(!f)return!1;const m=new Date(h),g=new Date(p),v=new Date;return v>=m&&v<=g}),c=l.computed(()=>e.getNotification?.tooltip),a=l.computed(()=>e.getNotification?.title),u=l.computed(()=>{const d=e.getNotification;if(!d)return"";const{text:f,linkUrl:h,linkText:p}=d;return`
1298
+ `,parseMarkdown:()=>({type:"hardBreak"}),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:u,dispatch:d})=>{if(d&&a&&s){const f=a.filter(h=>c.includes(h.type.name));u.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),aO=sO;const lO={class:"popover bd-link-input-popover show bd-link-input-bottom"},cO={class:"popover-body"},uO={class:"form-label"},dO={key:0,class:"validation-text"},fO={class:"d-flex gap-2 mt-2"},hO=["disabled"],pO=l.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.previousUrl??""),i=l.computed(()=>{if(!o.value)return!!n.previousUrl;if(o.value===n.previousUrl)return!1;const d=o.value.trim().toLowerCase();return d.startsWith("http://")||d.startsWith("https://")||d.startsWith("www.")}),s=l.computed(()=>o.value&&o.value===n.previousUrl?"De URL is niet gewijzigd":o.value&&!i.value?"De URL moet beginnen met http://, https:// of www.":""),c=l.computed(()=>n.previousUrl?o.value?"Wijzigen":"Verwijderen":"Toevoegen"),a=()=>r("submit",o.value),u=()=>r("cancel");return(d,f)=>(l.openBlock(),l.createElementBlock("div",lO,[f[2]||(f[2]=l.createElementVNode("div",{class:"popover-header"},"Link beheren",-1)),l.createElementVNode("div",cO,[l.createElementVNode("label",uO,[f[1]||(f[1]=l.createTextVNode(" URL: ",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[l.vModelText,o.value]]),s.value?(l.openBlock(),l.createElementBlock("div",dO,l.toDisplayString(s.value),1)):l.createCommentVNode("",!0)]),l.createElementVNode("div",fO,[l.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",disabled:!i.value,onClick:a},l.toDisplayString(c.value),9,hO),l.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:u}," Annuleren ")])])]))}}),uu={BASIC:"basic",FULL:"full"},mO={class:"attachment-list"},gO={class:"attachment-link"},vO={key:1,class:"attachment-no-download"},yO=["href"],Hs=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=e,r=o=>{n("delete",o)};return(o,i)=>(l.openBlock(),l.createElementBlock("ul",mO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,s=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:s.CorrelationId},[l.createElementVNode("div",gO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove",onClick:c=>r(s),"aria-label":"verwijder"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ps))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),t.noDownload?(l.openBlock(),l.createElementBlock("div",vO,[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)])):(l.openBlock(),l.createElementBlock("a",{key:2,href:s.downloadUrl},[l.createVNode(l.unref(Dr)),l.createTextVNode(" "+l.toDisplayString(s.Naam.trim()),1)],8,yO))])]))),128))]))}}),bO={class:"attachment-list"},CO={class:"attachment"},EO=["onClick"],kO=["src","alt"],wO=["onClick"],SO=["href"],AO={class:"btn btn-light download-button-image"},xO=["src","alt"],js=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=e,o=s=>{r("delete",s)},i=(s,c)=>{s.target&&s.target.className==="img-preview"&&r("show",c)};return(s,c)=>(l.openBlock(),l.createElementBlock("ul",bO,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.files,a=>(l.openBlock(),l.createElementBlock("li",{class:"attachment-list__item",key:a.CorrelationId},[l.createElementVNode("div",CO,[t.showDelete?(l.openBlock(),l.createBlock(Re,{key:0,variant:"remove","aria-label":"verwijder",onClick:l.withModifiers(u=>o(a),["prevent"])},{default:l.withCtx(()=>[l.createVNode(l.unref(Ps))]),_:1},8,["onClick"])):l.createCommentVNode("",!0),n.noDownload?(l.openBlock(),l.createElementBlock("div",{key:1,onClick:u=>i(u,a)},[l.createElementVNode("img",{src:a.previewUrl,class:"img-preview",alt:a.altName,loading:"lazy"},null,8,kO)],8,EO)):(l.openBlock(),l.createElementBlock("div",{key:2,onClick:u=>i(u,a)},[n.fastDownload?(l.openBlock(),l.createElementBlock("a",{key:0,href:a.downloadUrl,class:"download-link"},[l.createElementVNode("button",AO,[l.createVNode(l.unref(zd))])],8,SO)):l.createCommentVNode("",!0),l.createElementVNode("img",{src:a.previewUrl,alt:a.altName,class:"img-preview",loading:"lazy"},null,8,xO)],8,wO))])]))),128))]))}}),TO=t=>t?.map(e=>e.CorrelationId),_m=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),IO=(t,e)=>e.DownloadUrl?e.DownloadUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlage/${e.Id}`:e.FileId?`${t}/Portaal/DownloadStandardMessageAttachment/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlage/${e.CorrelationId}`,ry=(t,e)=>e.ThumbnailUrl?e.ThumbnailUrl:e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:e.url?e.url:e.Id?`${t}/Portaal/DownloadBerichtBijlageThumbnail/${e.Id}`:e.StandardAttachmentId||e.standardAttachmentId?`${t}/Portaal/DownloadStandardMessageAttachmentThumbnail/${e.StandardAttachmentId}/${e.FileId}`:`${t}/Portaal/DownloadBerichtStagingBijlageThumbnail/${e.CorrelationId}`,_O=(t,e)=>e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:null,NO=(t,e)=>e?_m(t):!_m(t),Io=(t="",e,n)=>e===void 0?void 0:e.filter(o=>NO(o,n)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!=null?o.CorrelationId.toString():"";return{downloadUrl:IO(t,o),previewUrl:ry(t,o),fullImageUrl:_O(t,o),altName:`${o.Naam}`,...o,CorrelationId:i}});var Bt="top",Xt="bottom",qt="right",Rt="left",mc="auto",ki=[Bt,Xt,qt,Rt],_o="start",ui="end",oy="clippingParents",oh="viewport",Qo="popper",iy="reference",Sd=ki.reduce(function(t,e){return t.concat([e+"-"+_o,e+"-"+ui])},[]),ih=[].concat(ki,[mc]).reduce(function(t,e){return t.concat([e,e+"-"+_o,e+"-"+ui])},[]),sy="beforeRead",ay="read",ly="afterRead",cy="beforeMain",uy="main",dy="afterMain",fy="beforeWrite",hy="write",py="afterWrite",my=[sy,ay,ly,cy,uy,dy,fy,hy,py];function Hn(t){return t?(t.nodeName||"").toLowerCase():null}function en(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function No(t){var e=en(t).Element;return t instanceof e||t instanceof Element}function fn(t){var e=en(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function sh(t){if(typeof ShadowRoot>"u")return!1;var e=en(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function OO(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];!fn(i)||!Hn(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 MO(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,u){return a[u]="",a},{});!fn(o)||!Hn(o)||(Object.assign(o.style,c),Object.keys(i).forEach(function(a){o.removeAttribute(a)}))})}}const gy={name:"applyStyles",enabled:!0,phase:"write",fn:OO,effect:MO,requires:["computeStyles"]};function Vn(t){return t.split("-")[0]}var bo=Math.max,$l=Math.min,di=Math.round;function Ad(){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 vy(){return!/^((?!chrome|android).)*safari/i.test(Ad())}function fi(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&fn(t)&&(o=t.offsetWidth>0&&di(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&di(r.height)/t.offsetHeight||1);var s=No(t)?en(t):window,c=s.visualViewport,a=!vy()&&n,u=(r.left+(a&&c?c.offsetLeft:0))/o,d=(r.top+(a&&c?c.offsetTop:0))/i,f=r.width/o,h=r.height/i;return{width:f,height:h,top:d,right:u+f,bottom:d+h,left:u,x:u,y:d}}function ah(t){var e=fi(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 yy(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&sh(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ar(t){return en(t).getComputedStyle(t)}function LO(t){return["table","td","th"].indexOf(Hn(t))>=0}function Yr(t){return((No(t)?t.ownerDocument:t.document)||window.document).documentElement}function gc(t){return Hn(t)==="html"?t:t.assignedSlot||t.parentNode||(sh(t)?t.host:null)||Yr(t)}function Nm(t){return!fn(t)||ar(t).position==="fixed"?null:t.offsetParent}function DO(t){var e=/firefox/i.test(Ad()),n=/Trident/i.test(Ad());if(n&&fn(t)){var r=ar(t);if(r.position==="fixed")return null}var o=gc(t);for(sh(o)&&(o=o.host);fn(o)&&["html","body"].indexOf(Hn(o))<0;){var i=ar(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 Ws(t){for(var e=en(t),n=Nm(t);n&&LO(n)&&ar(n).position==="static";)n=Nm(n);return n&&(Hn(n)==="html"||Hn(n)==="body"&&ar(n).position==="static")?e:n||DO(t)||e}function lh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ts(t,e,n){return bo(t,$l(e,n))}function PO(t,e,n){var r=ts(t,e,n);return r>n?n:r}function by(){return{top:0,right:0,bottom:0,left:0}}function Cy(t){return Object.assign({},by(),t)}function Ey(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var BO=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Cy(typeof e!="number"?e:Ey(e,ki))};function RO(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Vn(n.placement),a=lh(c),u=[Rt,qt].indexOf(c)>=0,d=u?"height":"width";if(!(!i||!s)){var f=BO(o.padding,n),h=ah(i),p=a==="y"?Bt:Rt,m=a==="y"?Xt:qt,g=n.rects.reference[d]+n.rects.reference[a]-s[a]-n.rects.popper[d],v=s[a]-n.rects.reference[a],y=Ws(i),b=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-v/2,C=f[p],S=b-h[d]-f[m],_=b/2-h[d]/2+E,T=ts(C,_,S),D=a;n.modifiersData[r]=(e={},e[D]=T,e.centerOffset=T-_,e)}}function VO(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||yy(e.elements.popper,o)&&(e.elements.arrow=o))}const ky={name:"arrow",enabled:!0,phase:"main",fn:RO,effect:VO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hi(t){return t.split("-")[1]}var $O={top:"auto",right:"auto",bottom:"auto",left:"auto"};function FO(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:di(n*o)/o||0,y:di(r*o)/o||0}}function Om(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,c=t.position,a=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,f=t.isFixed,h=s.x,p=h===void 0?0:h,m=s.y,g=m===void 0?0:m,v=typeof d=="function"?d({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Rt,C=Bt,S=window;if(u){var _=Ws(n),T="clientHeight",D="clientWidth";if(_===en(n)&&(_=Yr(n),ar(_).position!=="static"&&c==="absolute"&&(T="scrollHeight",D="scrollWidth")),_=_,o===Bt||(o===Rt||o===qt)&&i===ui){C=Xt;var Y=f&&_===S&&S.visualViewport?S.visualViewport.height:_[T];g-=Y-r.height,g*=a?1:-1}if(o===Rt||(o===Bt||o===Xt)&&i===ui){E=qt;var V=f&&_===S&&S.visualViewport?S.visualViewport.width:_[D];p-=V-r.width,p*=a?1:-1}}var H=Object.assign({position:c},u&&$O),j=d===!0?FO({x:p,y:g},en(n)):{x:p,y:g};if(p=j.x,g=j.y,a){var K;return Object.assign({},H,(K={},K[C]=b?"0":"",K[E]=y?"0":"",K.transform=(S.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",K))}return Object.assign({},H,(e={},e[C]=b?g+"px":"",e[E]=y?p+"px":"",e.transform="",e))}function zO(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,u={placement:Vn(e.placement),variation:hi(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,Om(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,Om(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 wy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:zO,data:{}};var ba={passive:!0};function UO(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=en(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",n.update,ba)}),c&&a.addEventListener("resize",n.update,ba),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",n.update,ba)}),c&&a.removeEventListener("resize",n.update,ba)}}const Sy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:UO,data:{}};var HO={left:"right",right:"left",bottom:"top",top:"bottom"};function Va(t){return t.replace(/left|right|bottom|top/g,function(e){return HO[e]})}var jO={start:"end",end:"start"};function Mm(t){return t.replace(/start|end/g,function(e){return jO[e]})}function ch(t){var e=en(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function uh(t){return fi(Yr(t)).left+ch(t).scrollLeft}function WO(t,e){var n=en(t),r=Yr(t),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,c=0,a=0;if(o){i=o.width,s=o.height;var u=vy();(u||!u&&e==="fixed")&&(c=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:c+uh(t),y:a}}function KO(t){var e,n=Yr(t),r=ch(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=bo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=bo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+uh(t),a=-r.scrollTop;return ar(o||n).direction==="rtl"&&(c+=bo(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:c,y:a}}function dh(t){var e=ar(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ay(t){return["html","body","#document"].indexOf(Hn(t))>=0?t.ownerDocument.body:fn(t)&&dh(t)?t:Ay(gc(t))}function ns(t,e){var n;e===void 0&&(e=[]);var r=Ay(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=en(r),s=o?[i].concat(i.visualViewport||[],dh(r)?r:[]):r,c=e.concat(s);return o?c:c.concat(ns(gc(s)))}function xd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function YO(t,e){var n=fi(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 Lm(t,e,n){return e===oh?xd(WO(t,n)):No(e)?YO(e,n):xd(KO(Yr(t)))}function GO(t){var e=ns(gc(t)),n=["absolute","fixed"].indexOf(ar(t).position)>=0,r=n&&fn(t)?Ws(t):t;return No(r)?e.filter(function(o){return No(o)&&yy(o,r)&&Hn(o)!=="body"}):[]}function QO(t,e,n,r){var o=e==="clippingParents"?GO(t):[].concat(e),i=[].concat(o,[n]),s=i[0],c=i.reduce(function(a,u){var d=Lm(t,u,r);return a.top=bo(d.top,a.top),a.right=$l(d.right,a.right),a.bottom=$l(d.bottom,a.bottom),a.left=bo(d.left,a.left),a},Lm(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 xy(t){var e=t.reference,n=t.element,r=t.placement,o=r?Vn(r):null,i=r?hi(r):null,s=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,a;switch(o){case Bt:a={x:s,y:e.y-n.height};break;case Xt:a={x:s,y:e.y+e.height};break;case qt:a={x:e.x+e.width,y:c};break;case Rt:a={x:e.x-n.width,y:c};break;default:a={x:e.x,y:e.y}}var u=o?lh(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case _o:a[u]=a[u]-(e[d]/2-n[d]/2);break;case ui:a[u]=a[u]+(e[d]/2-n[d]/2);break}}return a}function pi(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?oy:c,u=n.rootBoundary,d=u===void 0?oh:u,f=n.elementContext,h=f===void 0?Qo:f,p=n.altBoundary,m=p===void 0?!1:p,g=n.padding,v=g===void 0?0:g,y=Cy(typeof v!="number"?v:Ey(v,ki)),b=h===Qo?iy:Qo,E=t.rects.popper,C=t.elements[m?b:h],S=QO(No(C)?C:C.contextElement||Yr(t.elements.popper),a,d,s),_=fi(t.elements.reference),T=xy({reference:_,element:E,placement:o}),D=xd(Object.assign({},E,T)),Y=h===Qo?D:_,V={top:S.top-Y.top+y.top,bottom:Y.bottom-S.bottom+y.bottom,left:S.left-Y.left+y.left,right:Y.right-S.right+y.right},H=t.modifiersData.offset;if(h===Qo&&H){var j=H[o];Object.keys(V).forEach(function(K){var F=[qt,Xt].indexOf(K)>=0?1:-1,z=[Bt,Xt].indexOf(K)>=0?"y":"x";V[K]+=j[z]*F})}return V}function ZO(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,u=a===void 0?ih:a,d=hi(r),f=d?c?Sd:Sd.filter(function(m){return hi(m)===d}):ki,h=f.filter(function(m){return u.indexOf(m)>=0});h.length===0&&(h=f);var p=h.reduce(function(m,g){return m[g]=pi(t,{placement:g,boundary:o,rootBoundary:i,padding:s})[Vn(g)],m},{});return Object.keys(p).sort(function(m,g){return p[m]-p[g]})}function JO(t){if(Vn(t)===mc)return[];var e=Va(t);return[Mm(t),e,Mm(e)]}function XO(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,u=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,g=n.allowedAutoPlacements,v=e.options.placement,y=Vn(v),b=y===v,E=a||(b||!m?[Va(v)]:JO(v)),C=[v].concat(E).reduce(function(ye,Ce){return ye.concat(Vn(Ce)===mc?ZO(e,{placement:Ce,boundary:d,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g}):Ce)},[]),S=e.rects.reference,_=e.rects.popper,T=new Map,D=!0,Y=C[0],V=0;V<C.length;V++){var H=C[V],j=Vn(H),K=hi(H)===_o,F=[Bt,Xt].indexOf(j)>=0,z=F?"width":"height",$=pi(e,{placement:H,boundary:d,rootBoundary:f,altBoundary:h,padding:u}),J=F?K?qt:Rt:K?Xt:Bt;S[z]>_[z]&&(J=Va(J));var U=Va(J),q=[];if(i&&q.push($[j]<=0),c&&q.push($[J]<=0,$[U]<=0),q.every(function(ye){return ye})){Y=H,D=!1;break}T.set(H,q)}if(D)for(var te=m?3:1,se=function(Ce){var Ae=C.find(function(ge){var N=T.get(ge);if(N)return N.slice(0,Ce).every(function(M){return M})});if(Ae)return Y=Ae,"break"},he=te;he>0;he--){var pe=se(he);if(pe==="break")break}e.placement!==Y&&(e.modifiersData[r]._skip=!0,e.placement=Y,e.reset=!0)}}const Ty={name:"flip",enabled:!0,phase:"main",fn:XO,requiresIfExists:["offset"],data:{_skip:!1}};function Dm(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 Pm(t){return[Bt,qt,Xt,Rt].some(function(e){return t[e]>=0})}function qO(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=pi(e,{elementContext:"reference"}),c=pi(e,{altBoundary:!0}),a=Dm(s,r),u=Dm(c,o,i),d=Pm(a),f=Pm(u);e.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const Iy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:qO};function eM(t,e,n){var r=Vn(t),o=[Rt,Bt].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,[Rt,qt].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function tM(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,s=ih.reduce(function(d,f){return d[f]=eM(f,e.rects,i),d},{}),c=s[e.placement],a=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const _y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tM};function nM(t){var e=t.state,n=t.name;e.modifiersData[n]=xy({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ny={name:"popperOffsets",enabled:!0,phase:"read",fn:nM,data:{}};function rM(t){return t==="x"?"y":"x"}function oM(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,u=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,m=n.tetherOffset,g=m===void 0?0:m,v=pi(e,{boundary:a,rootBoundary:u,padding:f,altBoundary:d}),y=Vn(e.placement),b=hi(e.placement),E=!b,C=lh(y),S=rM(C),_=e.modifiersData.popperOffsets,T=e.rects.reference,D=e.rects.popper,Y=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,V=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(_){if(i){var K,F=C==="y"?Bt:Rt,z=C==="y"?Xt:qt,$=C==="y"?"height":"width",J=_[C],U=J+v[F],q=J-v[z],te=p?-D[$]/2:0,se=b===_o?T[$]:D[$],he=b===_o?-D[$]:-T[$],pe=e.elements.arrow,ye=p&&pe?ah(pe):{width:0,height:0},Ce=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:by(),Ae=Ce[F],ge=Ce[z],N=ts(0,T[$],ye[$]),M=E?T[$]/2-te-N-Ae-V.mainAxis:se-N-Ae-V.mainAxis,I=E?-T[$]/2+te+N+ge+V.mainAxis:he+N+ge+V.mainAxis,O=e.elements.arrow&&Ws(e.elements.arrow),k=O?C==="y"?O.clientTop||0:O.clientLeft||0:0,w=(K=H?.[C])!=null?K:0,P=J+M-w-k,R=J+I-w,W=ts(p?$l(U,P):U,J,p?bo(q,R):q);_[C]=W,j[C]=W-J}if(c){var G,A=C==="x"?Bt:Rt,x=C==="x"?Xt:qt,B=_[S],Q=S==="y"?"height":"width",X=B+v[A],ee=B-v[x],ie=[Bt,Rt].indexOf(y)!==-1,Z=(G=H?.[S])!=null?G:0,ne=ie?X:B-T[Q]-D[Q]-Z+V.altAxis,we=ie?B+T[Q]+D[Q]-Z-V.altAxis:ee,_e=p&&ie?PO(ne,B,we):ts(p?ne:X,B,p?we:ee);_[S]=_e,j[S]=_e-B}e.modifiersData[r]=j}}const Oy={name:"preventOverflow",enabled:!0,phase:"main",fn:oM,requiresIfExists:["offset"]};function iM(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sM(t){return t===en(t)||!fn(t)?ch(t):iM(t)}function aM(t){var e=t.getBoundingClientRect(),n=di(e.width)/t.offsetWidth||1,r=di(e.height)/t.offsetHeight||1;return n!==1||r!==1}function lM(t,e,n){n===void 0&&(n=!1);var r=fn(e),o=fn(e)&&aM(e),i=Yr(e),s=fi(t,o,n),c={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Hn(e)!=="body"||dh(i))&&(c=sM(e)),fn(e)?(a=fi(e,!0),a.x+=e.clientLeft,a.y+=e.clientTop):i&&(a.x=uh(i))),{x:s.left+c.scrollLeft-a.x,y:s.top+c.scrollTop-a.y,width:s.width,height:s.height}}function cM(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 uM(t){var e=cM(t);return my.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function dM(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function fM(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 Bm={placement:"bottom",modifiers:[],strategy:"absolute"};function Rm(){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 My(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?Bm:o;return function(c,a,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bm,i),modifiersData:{},elements:{reference:c,popper:a},attributes:{},styles:{}},f=[],h=!1,p={state:d,setOptions:function(y){var b=typeof y=="function"?y(d.options):y;g(),d.options=Object.assign({},i,d.options,b),d.scrollParents={reference:No(c)?ns(c):c.contextElement?ns(c.contextElement):[],popper:ns(a)};var E=uM(fM([].concat(r,d.options.modifiers)));return d.orderedModifiers=E.filter(function(C){return C.enabled}),m(),p.update()},forceUpdate:function(){if(!h){var y=d.elements,b=y.reference,E=y.popper;if(Rm(b,E)){d.rects={reference:lM(b,Ws(E),d.options.strategy==="fixed"),popper:ah(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(V){return d.modifiersData[V.name]=Object.assign({},V.data)});for(var C=0;C<d.orderedModifiers.length;C++){if(d.reset===!0){d.reset=!1,C=-1;continue}var S=d.orderedModifiers[C],_=S.fn,T=S.options,D=T===void 0?{}:T,Y=S.name;typeof _=="function"&&(d=_({state:d,options:D,name:Y,instance:p})||d)}}}},update:dM(function(){return new Promise(function(v){p.forceUpdate(),v(d)})}),destroy:function(){g(),h=!0}};if(!Rm(c,a))return p;p.setOptions(u).then(function(v){!h&&u.onFirstUpdate&&u.onFirstUpdate(v)});function m(){d.orderedModifiers.forEach(function(v){var y=v.name,b=v.options,E=b===void 0?{}:b,C=v.effect;if(typeof C=="function"){var S=C({state:d,name:y,instance:p,options:E}),_=function(){};f.push(S||_)}})}function g(){f.forEach(function(v){return v()}),f=[]}return p}}var hM=[Sy,Ny,wy,gy,_y,Ty,Oy,ky,Iy],fh=My({defaultModifiers:hM});const Ly=Object.freeze(Object.defineProperty({__proto__:null,afterMain:dy,afterRead:ly,afterWrite:py,applyStyles:gy,arrow:ky,auto:mc,basePlacements:ki,beforeMain:cy,beforeRead:sy,beforeWrite:fy,bottom:Xt,clippingParents:oy,computeStyles:wy,createPopper:fh,detectOverflow:pi,end:ui,eventListeners:Sy,flip:Ty,hide:Iy,left:Rt,main:uy,modifierPhases:my,offset:_y,placements:ih,popper:Qo,popperGenerator:My,popperOffsets:Ny,preventOverflow:Oy,read:ay,reference:iy,right:qt,start:_o,top:Bt,variationPlacements:Sd,viewport:oh,write:hy},Symbol.toStringTag,{value:"Module"}));const gr=new Map,du={set(t,e,n){gr.has(t)||gr.set(t,new Map);const r=gr.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 gr.has(t)&&gr.get(t).get(e)||null},remove(t,e){if(!gr.has(t))return;const n=gr.get(t);n.delete(e),n.size===0&&gr.delete(t)}},pM=1e6,mM=1e3,Td="transitionend",Dy=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),gM=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),vM=t=>{do t+=Math.floor(Math.random()*pM);while(document.getElementById(t));return t},yM=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))*mM)},Py=t=>{t.dispatchEvent(new Event(Td))},or=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Vr=t=>or(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Dy(t)):null,wi=t=>{if(!or(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},$r=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",By=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?By(t.parentNode):null},Fl=()=>{},Ks=t=>{t.offsetHeight},Ry=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,fu=[],bM=t=>{document.readyState==="loading"?(fu.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of fu)e()}),fu.push(t)):t()},hn=()=>document.documentElement.dir==="rtl",mn=t=>{bM(()=>{const e=Ry();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)}})},Ht=(t,e=[],n=t)=>typeof t=="function"?t.call(...e):n,Vy=(t,e,n=!0)=>{if(!n){Ht(t);return}const o=yM(e)+5;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(Td,s),Ht(t))};e.addEventListener(Td,s),setTimeout(()=>{i||Py(e)},o)},hh=(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))])},CM=/[^.]*(?=\..*)\.|.*/,EM=/\..*/,kM=/::\d+$/,hu={};let Vm=1;const $y={mouseenter:"mouseover",mouseleave:"mouseout"},wM=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 Fy(t,e){return e&&`${e}::${Vm++}`||t.uidEvent||Vm++}function zy(t){const e=Fy(t);return t.uidEvent=e,hu[e]=hu[e]||{},hu[e]}function SM(t,e){return function n(r){return ph(r,{delegateTarget:t}),n.oneOff&&ce.off(t,r.type,e),e.apply(t,[r])}}function AM(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 ph(o,{delegateTarget:s}),r.oneOff&&ce.off(t,o.type,e,n),n.apply(s,[o])}}function Uy(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function Hy(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=jy(t);return wM.has(i)||(i=t),[r,o,i]}function $m(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=Hy(e,n,r);e in $y&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const a=zy(t),u=a[c]||(a[c]={}),d=Uy(u,s,i?n:null);if(d){d.oneOff=d.oneOff&&o;return}const f=Fy(s,e.replace(CM,"")),h=i?AM(t,n,s):SM(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,u[f]=h,t.addEventListener(c,h,i)}function Id(t,e,n,r,o){const i=Uy(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function xM(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Id(t,e,n,s.callable,s.delegationSelector)}function jy(t){return t=t.replace(EM,""),$y[t]||t}const ce={on(t,e,n,r){$m(t,e,n,r,!1)},one(t,e,n,r){$m(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=Hy(e,n,r),c=s!==e,a=zy(t),u=a[s]||{},d=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;Id(t,a,s,i,o?n:null);return}if(d)for(const f of Object.keys(a))xM(t,a,f,e.slice(1));for(const[f,h]of Object.entries(u)){const p=f.replace(kM,"");(!c||e.includes(p))&&Id(t,a,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=Ry(),o=jy(e),i=e!==o;let s=null,c=!0,a=!0,u=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),a=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const d=ph(new Event(e,{bubbles:c,cancelable:!0}),n);return u&&d.preventDefault(),a&&t.dispatchEvent(d),d.defaultPrevented&&s&&s.preventDefault(),d}};function ph(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 Fm(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 pu(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ir={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${pu(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${pu(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),e[o]=Fm(t.dataset[r])}return e},getDataAttribute(t,e){return Fm(t.getAttribute(`data-bs-${pu(e)}`))}};class Ys{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=or(n)?ir.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...or(n)?ir.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=or(i)?"element":gM(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const TM="5.3.8";class An extends Ys{constructor(e,n){super(),e=Vr(e),e&&(this._element=e,this._config=this._getConfig(n),du.set(this._element,this.constructor.DATA_KEY,this))}dispose(){du.remove(this._element,this.constructor.DATA_KEY),ce.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){Vy(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return du.get(Vr(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return TM}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 mu=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 e?e.split(",").map(n=>Dy(n)).join(","):null},Se={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=>!$r(n)&&wi(n))},getSelectorFromElement(t){const e=mu(t);return e&&Se.findOne(e)?e:null},getElementFromSelector(t){const e=mu(t);return e?Se.findOne(e):null},getMultipleElementsFromSelector(t){const e=mu(t);return e?Se.find(e):[]}},vc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;ce.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),$r(this))return;const i=Se.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},IM="alert",_M="bs.alert",Wy=`.${_M}`,NM=`close${Wy}`,OM=`closed${Wy}`,MM="fade",LM="show";class yc extends An{static get NAME(){return IM}close(){if(ce.trigger(this._element,NM).defaultPrevented)return;this._element.classList.remove(LM);const n=this._element.classList.contains(MM);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),ce.trigger(this._element,OM),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=yc.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)}})}}vc(yc,"close");mn(yc);const DM="button",PM="bs.button",BM=`.${PM}`,RM=".data-api",VM="active",zm='[data-bs-toggle="button"]',$M=`click${BM}${RM}`;class bc extends An{static get NAME(){return DM}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(VM))}static jQueryInterface(e){return this.each(function(){const n=bc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}ce.on(document,$M,zm,t=>{t.preventDefault();const e=t.target.closest(zm);bc.getOrCreateInstance(e).toggle()});mn(bc);const FM="swipe",Si=".bs.swipe",zM=`touchstart${Si}`,UM=`touchmove${Si}`,HM=`touchend${Si}`,jM=`pointerdown${Si}`,WM=`pointerup${Si}`,KM="touch",YM="pen",GM="pointer-event",QM=40,ZM={endCallback:null,leftCallback:null,rightCallback:null},JM={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class zl extends Ys{constructor(e,n){super(),this._element=e,!(!e||!zl.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ZM}static get DefaultType(){return JM}static get NAME(){return FM}dispose(){ce.off(this._element,Si)}_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(),Ht(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<=QM)return;const n=e/this._deltaX;this._deltaX=0,n&&Ht(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ce.on(this._element,jM,e=>this._start(e)),ce.on(this._element,WM,e=>this._end(e)),this._element.classList.add(GM)):(ce.on(this._element,zM,e=>this._start(e)),ce.on(this._element,UM,e=>this._move(e)),ce.on(this._element,HM,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===YM||e.pointerType===KM)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const XM="carousel",qM="bs.carousel",Gr=`.${qM}`,Ky=".data-api",eL="ArrowLeft",tL="ArrowRight",nL=500,Oi="next",zo="prev",Zo="left",$a="right",rL=`slide${Gr}`,gu=`slid${Gr}`,oL=`keydown${Gr}`,iL=`mouseenter${Gr}`,sL=`mouseleave${Gr}`,aL=`dragstart${Gr}`,lL=`load${Gr}${Ky}`,cL=`click${Gr}${Ky}`,Yy="carousel",Ca="active",uL="slide",dL="carousel-item-end",fL="carousel-item-start",hL="carousel-item-next",pL="carousel-item-prev",Gy=".active",Qy=".carousel-item",mL=Gy+Qy,gL=".carousel-item img",vL=".carousel-indicators",yL="[data-bs-slide], [data-bs-slide-to]",bL='[data-bs-ride="carousel"]',CL={[eL]:$a,[tL]:Zo},EL={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},kL={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Gs extends An{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Se.findOne(vL,this._element),this._addEventListeners(),this._config.ride===Yy&&this.cycle()}static get Default(){return EL}static get DefaultType(){return kL}static get NAME(){return XM}next(){this._slide(Oi)}nextWhenVisible(){!document.hidden&&wi(this._element)&&this.next()}prev(){this._slide(zo)}pause(){this._isSliding&&Py(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){ce.one(this._element,gu,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){ce.one(this._element,gu,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?Oi:zo;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&&ce.on(this._element,oL,e=>this._keydown(e)),this._config.pause==="hover"&&(ce.on(this._element,iL,()=>this.pause()),ce.on(this._element,sL,()=>this._maybeEnableCycle())),this._config.touch&&zl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Se.find(gL,this._element))ce.on(r,aL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Zo)),rightCallback:()=>this._slide(this._directionToOrder($a)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),nL+this._config.interval))}};this._swipeHelper=new zl(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=CL[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=Se.findOne(Gy,this._indicatorsElement);n.classList.remove(Ca),n.removeAttribute("aria-current");const r=Se.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Ca),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===Oi,i=n||hh(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>ce.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(rL).defaultPrevented||!r||!i)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const d=o?fL:dL,f=o?hL:pL;i.classList.add(f),Ks(i),r.classList.add(d),i.classList.add(d);const h=()=>{i.classList.remove(d,f),i.classList.add(Ca),r.classList.remove(Ca,f,d),this._isSliding=!1,c(gu)};this._queueCallback(h,r,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(uL)}_getActive(){return Se.findOne(mL,this._element)}_getItems(){return Se.find(Qy,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return hn()?e===Zo?zo:Oi:e===Zo?Oi:zo}_orderToDirection(e){return hn()?e===zo?Zo:$a:e===zo?$a:Zo}static jQueryInterface(e){return this.each(function(){const n=Gs.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]()}})}}ce.on(document,cL,yL,function(t){const e=Se.getElementFromSelector(this);if(!e||!e.classList.contains(Yy))return;t.preventDefault();const n=Gs.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ir.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});ce.on(window,lL,()=>{const t=Se.find(bL);for(const e of t)Gs.getOrCreateInstance(e)});mn(Gs);const wL="collapse",SL="bs.collapse",Qs=`.${SL}`,AL=".data-api",xL=`show${Qs}`,TL=`shown${Qs}`,IL=`hide${Qs}`,_L=`hidden${Qs}`,NL=`click${Qs}${AL}`,vu="show",ei="collapse",Ea="collapsing",OL="collapsed",ML=`:scope .${ei} .${ei}`,LL="collapse-horizontal",DL="width",PL="height",BL=".collapse.show, .collapse.collapsing",_d='[data-bs-toggle="collapse"]',RL={parent:null,toggle:!0},VL={parent:"(null|element)",toggle:"boolean"};class Ds extends An{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Se.find(_d);for(const o of r){const i=Se.getSelectorFromElement(o),s=Se.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 RL}static get DefaultType(){return VL}static get NAME(){return wL}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(BL).filter(c=>c!==this._element).map(c=>Ds.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||ce.trigger(this._element,xL).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(ei),this._element.classList.add(Ea),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ea),this._element.classList.add(ei,vu),this._element.style[r]="",ce.trigger(this._element,TL)},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()||ce.trigger(this._element,IL).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ks(this._element),this._element.classList.add(Ea),this._element.classList.remove(ei,vu);for(const o of this._triggerArray){const i=Se.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ea),this._element.classList.add(ei),ce.trigger(this._element,_L)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(vu)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=Vr(e.parent),e}_getDimension(){return this._element.classList.contains(LL)?DL:PL}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(_d);for(const n of e){const r=Se.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Se.find(ML,this._config.parent);return Se.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(OL,!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=Ds.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ce.on(document,NL,_d,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Se.getMultipleElementsFromSelector(this))Ds.getOrCreateInstance(e,{toggle:!1}).toggle()});mn(Ds);const Um="dropdown",$L="bs.dropdown",Lo=`.${$L}`,mh=".data-api",FL="Escape",Hm="Tab",zL="ArrowUp",jm="ArrowDown",UL=2,HL=`hide${Lo}`,jL=`hidden${Lo}`,WL=`show${Lo}`,KL=`shown${Lo}`,Zy=`click${Lo}${mh}`,Jy=`keydown${Lo}${mh}`,YL=`keyup${Lo}${mh}`,Jo="show",GL="dropup",QL="dropend",ZL="dropstart",JL="dropup-center",XL="dropdown-center",lo='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',qL=`${lo}.${Jo}`,Fa=".dropdown-menu",eD=".navbar",tD=".navbar-nav",nD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",rD=hn()?"top-end":"top-start",oD=hn()?"top-start":"top-end",iD=hn()?"bottom-end":"bottom-start",sD=hn()?"bottom-start":"bottom-end",aD=hn()?"left-start":"right-start",lD=hn()?"right-start":"left-start",cD="top",uD="bottom",dD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},fD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class $n extends An{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Se.next(this._element,Fa)[0]||Se.prev(this._element,Fa)[0]||Se.findOne(Fa,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return dD}static get DefaultType(){return fD}static get NAME(){return Um}toggle(){return this._isShown()?this.hide():this.show()}show(){if($r(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ce.trigger(this._element,WL,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(tD))for(const r of[].concat(...document.body.children))ce.on(r,"mouseover",Fl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Jo),this._element.classList.add(Jo),ce.trigger(this._element,KL,e)}}hide(){if($r(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(!ce.trigger(this._element,HL,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ce.off(r,"mouseover",Fl);this._popper&&this._popper.destroy(),this._menu.classList.remove(Jo),this._element.classList.remove(Jo),this._element.setAttribute("aria-expanded","false"),ir.removeDataAttribute(this._menu,"popper"),ce.trigger(this._element,jL,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!or(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Um.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Ly>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:or(this._config.reference)?e=Vr(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=fh(e,this._menu,n)}_isShown(){return this._menu.classList.contains(Jo)}_getPlacement(){const e=this._parent;if(e.classList.contains(QL))return aD;if(e.classList.contains(ZL))return lD;if(e.classList.contains(JL))return cD;if(e.classList.contains(XL))return uD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(GL)?n?oD:rD:n?sD:iD}_detectNavbar(){return this._element.closest(eD)!==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")&&(ir.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ht(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:n}){const r=Se.find(nD,this._menu).filter(o=>wi(o));r.length&&hh(r,n,e===jm,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=$n.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===UL||e.type==="keyup"&&e.key!==Hm)return;const n=Se.find(qL);for(const r of n){const o=$n.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===Hm||/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===FL,o=[zL,jm].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches(lo)?this:Se.prev(this,lo)[0]||Se.next(this,lo)[0]||Se.findOne(lo,e.delegateTarget.parentNode),s=$n.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}ce.on(document,Jy,lo,$n.dataApiKeydownHandler);ce.on(document,Jy,Fa,$n.dataApiKeydownHandler);ce.on(document,Zy,$n.clearMenus);ce.on(document,YL,$n.clearMenus);ce.on(document,Zy,lo,function(t){t.preventDefault(),$n.getOrCreateInstance(this).toggle()});mn($n);const Xy="backdrop",hD="fade",Wm="show",Km=`mousedown.bs.${Xy}`,pD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class qy extends Ys{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return pD}static get DefaultType(){return mD}static get NAME(){return Xy}show(e){if(!this._config.isVisible){Ht(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Ks(n),n.classList.add(Wm),this._emulateAnimation(()=>{Ht(e)})}hide(e){if(!this._config.isVisible){Ht(e);return}this._getElement().classList.remove(Wm),this._emulateAnimation(()=>{this.dispose(),Ht(e)})}dispose(){this._isAppended&&(ce.off(this._element,Km),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(hD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Vr(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ce.on(e,Km,()=>{Ht(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Vy(e,this._getElement(),this._config.isAnimated)}}const gD="focustrap",vD="bs.focustrap",Ul=`.${vD}`,yD=`focusin${Ul}`,bD=`keydown.tab${Ul}`,CD="Tab",ED="forward",Ym="backward",kD={autofocus:!0,trapElement:null},wD={autofocus:"boolean",trapElement:"element"};class e3 extends Ys{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return kD}static get DefaultType(){return wD}static get NAME(){return gD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ce.off(document,Ul),ce.on(document,yD,e=>this._handleFocusin(e)),ce.on(document,bD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ce.off(document,Ul))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Se.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Ym?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===CD&&(this._lastTabNavDirection=e.shiftKey?Ym:ED)}}const Gm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Qm=".sticky-top",ka="padding-right",Zm="margin-right";class Nd{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,ka,n=>n+e),this._setElementAttributes(Gm,ka,n=>n+e),this._setElementAttributes(Qm,Zm,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ka),this._resetElementAttributes(Gm,ka),this._resetElementAttributes(Qm,Zm)}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&&ir.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=ir.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}ir.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(or(e)){n(e);return}for(const r of Se.find(e,this._element))n(r)}}const SD="modal",AD="bs.modal",pn=`.${AD}`,xD=".data-api",TD="Escape",ID=`hide${pn}`,_D=`hidePrevented${pn}`,t3=`hidden${pn}`,n3=`show${pn}`,ND=`shown${pn}`,OD=`resize${pn}`,MD=`click.dismiss${pn}`,LD=`mousedown.dismiss${pn}`,DD=`keydown.dismiss${pn}`,PD=`click${pn}${xD}`,Jm="modal-open",BD="fade",Xm="show",yu="modal-static",RD=".modal.show",VD=".modal-dialog",$D=".modal-body",FD='[data-bs-toggle="modal"]',zD={backdrop:!0,focus:!0,keyboard:!0},UD={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Fr extends An{constructor(e,n){super(e,n),this._dialog=Se.findOne(VD,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Nd,this._addEventListeners()}static get Default(){return zD}static get DefaultType(){return UD}static get NAME(){return SD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ce.trigger(this._element,n3,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Jm),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ce.trigger(this._element,ID).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Xm),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ce.off(window,pn),ce.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new qy({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new e3({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=Se.findOne($D,this._dialog);n&&(n.scrollTop=0),Ks(this._element),this._element.classList.add(Xm);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ce.trigger(this._element,ND,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ce.on(this._element,DD,e=>{if(e.key===TD){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ce.on(window,OD,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ce.on(this._element,LD,e=>{ce.one(this._element,MD,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(Jm),this._resetAdjustments(),this._scrollBar.reset(),ce.trigger(this._element,t3)})}_isAnimated(){return this._element.classList.contains(BD)}_triggerBackdropTransition(){if(ce.trigger(this._element,_D).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(yu)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(yu),this._queueCallback(()=>{this._element.classList.remove(yu),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=hn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=hn()?"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=Fr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}ce.on(document,PD,FD,function(t){const e=Se.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),ce.one(e,n3,o=>{o.defaultPrevented||ce.one(e,t3,()=>{wi(this)&&this.focus()})});const n=Se.findOne(RD);n&&Fr.getInstance(n).hide(),Fr.getOrCreateInstance(e).toggle(this)});vc(Fr);mn(Fr);const HD="offcanvas",jD="bs.offcanvas",dr=`.${jD}`,r3=".data-api",WD=`load${dr}${r3}`,KD="Escape",qm="show",e0="showing",t0="hiding",YD="offcanvas-backdrop",o3=".offcanvas.show",GD=`show${dr}`,QD=`shown${dr}`,ZD=`hide${dr}`,n0=`hidePrevented${dr}`,i3=`hidden${dr}`,JD=`resize${dr}`,XD=`click${dr}${r3}`,qD=`keydown.dismiss${dr}`,eP='[data-bs-toggle="offcanvas"]',tP={backdrop:!0,keyboard:!0,scroll:!1},nP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zr extends An{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return tP}static get DefaultType(){return nP}static get NAME(){return HD}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ce.trigger(this._element,GD,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Nd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(e0);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(qm),this._element.classList.remove(e0),ce.trigger(this._element,QD,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ce.trigger(this._element,ZD).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(t0),this._backdrop.hide();const n=()=>{this._element.classList.remove(qm,t0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Nd().reset(),ce.trigger(this._element,i3)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ce.trigger(this._element,n0);return}this.hide()},n=!!this._config.backdrop;return new qy({className:YD,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new e3({trapElement:this._element})}_addEventListeners(){ce.on(this._element,qD,e=>{if(e.key===KD){if(this._config.keyboard){this.hide();return}ce.trigger(this._element,n0)}})}static jQueryInterface(e){return this.each(function(){const n=zr.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)}})}}ce.on(document,XD,eP,function(t){const e=Se.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),$r(this))return;ce.one(e,i3,()=>{wi(this)&&this.focus()});const n=Se.findOne(o3);n&&n!==e&&zr.getInstance(n).hide(),zr.getOrCreateInstance(e).toggle(this)});ce.on(window,WD,()=>{for(const t of Se.find(o3))zr.getOrCreateInstance(t).show()});ce.on(window,JD,()=>{for(const t of Se.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&zr.getOrCreateInstance(t).hide()});vc(zr);mn(zr);const rP=/^aria-[\w-]*$/i,s3={"*":["class","dir","id","lang","role",rP],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},oP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),iP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,sP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?oP.has(n)?!!iP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function aP(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),u=[].concat(e["*"]||[],e[c]||[]);for(const d of a)sP(d,u)||s.removeAttribute(d.nodeName)}return o.body.innerHTML}const lP="TemplateFactory",cP={allowList:s3,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},uP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},dP={entry:"(string|element|function|null)",selector:"(string|element)"};class fP extends Ys{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return cP}static get DefaultType(){return uP}static get NAME(){return lP}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},dP)}_setContent(e,n,r){const o=Se.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(or(n)){this._putElementInTemplate(Vr(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?aP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ht(e,[void 0,this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const hP="tooltip",pP=new Set(["sanitize","allowList","sanitizeFn"]),bu="fade",mP="modal",wa="show",gP=".tooltip-inner",r0=`.${mP}`,o0="hide.bs.modal",Mi="hover",Cu="focus",Eu="click",vP="manual",yP="hide",bP="hidden",CP="show",EP="shown",kP="inserted",wP="click",SP="focusin",AP="focusout",xP="mouseenter",TP="mouseleave",IP={AUTO:"auto",TOP:"top",RIGHT:hn()?"left":"right",BOTTOM:"bottom",LEFT:hn()?"right":"left"},_P={allowList:s3,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"},NP={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 Rn extends An{constructor(e,n){if(typeof Ly>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 _P}static get DefaultType(){return NP}static get NAME(){return hP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ce.off(this._element.closest(r0),o0,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=ce.trigger(this._element,this.constructor.eventName(CP)),r=(By(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),ce.trigger(this._element,this.constructor.eventName(kP))),this._popper=this._createPopper(o),o.classList.add(wa),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))ce.on(c,"mouseover",Fl);const s=()=>{ce.trigger(this._element,this.constructor.eventName(EP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ce.trigger(this._element,this.constructor.eventName(yP)).defaultPrevented)return;if(this._getTipElement().classList.remove(wa),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ce.off(o,"mouseover",Fl);this._activeTrigger[Eu]=!1,this._activeTrigger[Cu]=!1,this._activeTrigger[Mi]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ce.trigger(this._element,this.constructor.eventName(bP)))};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(bu,wa),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=vM(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(bu),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new fP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[gP]: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(bu)}_isShown(){return this.tip&&this.tip.classList.contains(wa)}_createPopper(e){const n=Ht(this._config.placement,[this,e,this._element]),r=IP[n.toUpperCase()];return fh(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 Ht(e,[this._element,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,...Ht(this._config.popperConfig,[void 0,n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")ce.on(this._element,this.constructor.eventName(wP),this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[Eu]=!(o._isShown()&&o._activeTrigger[Eu]),o.toggle()});else if(n!==vP){const r=n===Mi?this.constructor.eventName(xP):this.constructor.eventName(SP),o=n===Mi?this.constructor.eventName(TP):this.constructor.eventName(AP);ce.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?Cu:Mi]=!0,s._enter()}),ce.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?Cu:Mi]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ce.on(this._element.closest(r0),o0,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=ir.getDataAttributes(this._element);for(const r of Object.keys(n))pP.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:Vr(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=Rn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}mn(Rn);const OP="popover",MP=".popover-header",LP=".popover-body",DP={...Rn.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"},PP={...Rn.DefaultType,content:"(null|string|element|function)"};class co extends Rn{static get Default(){return DP}static get DefaultType(){return PP}static get NAME(){return OP}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[MP]:this._getTitle(),[LP]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=co.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}mn(co);const BP="scrollspy",RP="bs.scrollspy",gh=`.${RP}`,VP=".data-api",$P=`activate${gh}`,i0=`click${gh}`,FP=`load${gh}${VP}`,zP="dropdown-item",Uo="active",UP='[data-bs-spy="scroll"]',ku="[href]",HP=".nav, .list-group",s0=".nav-link",jP=".nav-item",WP=".list-group-item",KP=`${s0}, ${jP} > ${s0}, ${WP}`,YP=".dropdown",GP=".dropdown-toggle",QP={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ZP={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Cc extends An{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 QP}static get DefaultType(){return ZP}static get NAME(){return BP}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=Vr(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&&(ce.off(this._config.target,i0),ce.on(this._config.target,i0,ku,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=Se.find(ku,this._config.target);for(const n of e){if(!n.hash||$r(n))continue;const r=Se.findOne(decodeURI(n.hash),this._element);wi(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(Uo),this._activateParents(e),ce.trigger(this._element,$P,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(zP)){Se.findOne(GP,e.closest(YP)).classList.add(Uo);return}for(const n of Se.parents(e,HP))for(const r of Se.prev(n,KP))r.classList.add(Uo)}_clearActiveClass(e){e.classList.remove(Uo);const n=Se.find(`${ku}.${Uo}`,e);for(const r of n)r.classList.remove(Uo)}static jQueryInterface(e){return this.each(function(){const n=Cc.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]()}})}}ce.on(window,FP,()=>{for(const t of Se.find(UP))Cc.getOrCreateInstance(t)});mn(Cc);const JP="tab",XP="bs.tab",Do=`.${XP}`,qP=`hide${Do}`,eB=`hidden${Do}`,tB=`show${Do}`,nB=`shown${Do}`,rB=`click${Do}`,oB=`keydown${Do}`,iB=`load${Do}`,sB="ArrowLeft",a0="ArrowRight",aB="ArrowUp",l0="ArrowDown",wu="Home",c0="End",uo="active",u0="fade",Su="show",lB="dropdown",a3=".dropdown-toggle",cB=".dropdown-menu",Au=`:not(${a3})`,uB='.list-group, .nav, [role="tablist"]',dB=".nav-item, .list-group-item",fB=`.nav-link${Au}, .list-group-item${Au}, [role="tab"]${Au}`,l3='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',xu=`${fB}, ${l3}`,hB=`.${uo}[data-bs-toggle="tab"], .${uo}[data-bs-toggle="pill"], .${uo}[data-bs-toggle="list"]`;class mi extends An{constructor(e){super(e),this._parent=this._element.closest(uB),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ce.on(this._element,oB,n=>this._keydown(n)))}static get NAME(){return JP}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?ce.trigger(n,qP,{relatedTarget:e}):null;ce.trigger(e,tB,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(uo),this._activate(Se.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Su);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ce.trigger(e,nB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(u0))}_deactivate(e,n){if(!e)return;e.classList.remove(uo),e.blur(),this._deactivate(Se.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Su);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ce.trigger(e,eB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(u0))}_keydown(e){if(![sB,a0,aB,l0,wu,c0].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(o=>!$r(o));let r;if([wu,c0].includes(e.key))r=n[e.key===wu?0:n.length-1];else{const o=[a0,l0].includes(e.key);r=hh(n,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),mi.getOrCreateInstance(r).show())}_getChildren(){return Se.find(xu,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=Se.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(lB))return;const o=(i,s)=>{const c=Se.findOne(i,r);c&&c.classList.toggle(s,n)};o(a3,uo),o(cB,Su),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(uo)}_getInnerElement(e){return e.matches(xu)?e:Se.findOne(xu,e)}_getOuterElement(e){return e.closest(dB)||e}static jQueryInterface(e){return this.each(function(){const n=mi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ce.on(document,rB,l3,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!$r(this)&&mi.getOrCreateInstance(this).show()});ce.on(window,iB,()=>{for(const t of Se.find(hB))mi.getOrCreateInstance(t)});mn(mi);const pB="toast",mB="bs.toast",Qr=`.${mB}`,gB=`mouseover${Qr}`,vB=`mouseout${Qr}`,yB=`focusin${Qr}`,bB=`focusout${Qr}`,CB=`hide${Qr}`,EB=`hidden${Qr}`,kB=`show${Qr}`,wB=`shown${Qr}`,SB="fade",d0="hide",Sa="show",Aa="showing",AB={animation:"boolean",autohide:"boolean",delay:"number"},xB={animation:!0,autohide:!0,delay:5e3};class Ai extends An{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return xB}static get DefaultType(){return AB}static get NAME(){return pB}show(){if(ce.trigger(this._element,kB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(SB);const n=()=>{this._element.classList.remove(Aa),ce.trigger(this._element,wB),this._maybeScheduleHide()};this._element.classList.remove(d0),Ks(this._element),this._element.classList.add(Sa,Aa),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||ce.trigger(this._element,CB).defaultPrevented)return;const n=()=>{this._element.classList.add(d0),this._element.classList.remove(Aa,Sa),ce.trigger(this._element,EB)};this._element.classList.add(Aa),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Sa),super.dispose()}isShown(){return this._element.classList.contains(Sa)}_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(){ce.on(this._element,gB,e=>this._onInteraction(e,!0)),ce.on(this._element,vB,e=>this._onInteraction(e,!1)),ce.on(this._element,yB,e=>this._onInteraction(e,!0)),ce.on(this._element,bB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Ai.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}vc(Ai);mn(Ai);function f0(t,e){return e.value||t.getAttribute("title")||""}const Po={mounted:(t,e)=>{const n=f0(t,e);n&&t.setAttribute("title",n),new Rn(t)},updated:(t,e)=>{const n=Rn.getInstance(t);n&&n.dispose();const r=f0(t,e);r&&t.setAttribute("title",r),new Rn(t)},unmounted:t=>{const e=Rn.getInstance(t);e&&e.dispose()}},TB={key:0,class:"pills-list__wrapper"},IB={class:"pills-list__ul"},_B={class:"bd-markdown-editor__menu-bottom"},NB={key:0,class:"vr"},c3=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:uu.BASIC},files:{default:void 0},pills:{default:void 0},apiUrl:{default:""},modelValue:{}},emits:["update:modelValue","upload","action"],setup(t,{emit:e}){const n=t,r=e,o=()=>{r("upload")},i=Oo(n,"modelValue",r),s=[N_,L_,P_,_N.configure({placeholder:n.placeholder}),aO,lN.configure({openOnClick:!1,validate:K=>/^(https?:\/\/|www\.)/i.test(K)})];n.variant===uu.FULL&&s.push(PN,zN,HN,rO,oO,iO);const c=I_({content:i.value,extensions:s,onUpdate:({editor:K})=>{const{view:F,state:z}=K,{from:$,to:J}=F.state.selection;if(z.doc.textBetween($-1,J,"")==" "&&K.getAttributes("link").href!=null&&K.chain().setTextSelection({from:$-1,to:J}).toggleLink({href:K.getAttributes("link").href}).setTextSelection({from:J,to:J}).run(),K.getText().trim()===""){r("update:modelValue","");return}r("update:modelValue",K.getHTML())}});l.watch(()=>n.modelValue,K=>{c.value.getHTML()!==K&&c.value.commands.setContent(K,!0,{preserveWhitespace:"full"})});const a=l.computed(()=>n.state===!1?"is-invalid":null),u=l.computed(()=>v("bold")),d=l.computed(()=>v("italic")),f=l.computed(()=>v("underline")),h=l.computed(()=>v("bulletList")),p=l.computed(()=>v("orderedList")),m=l.computed(()=>v("link")),g=l.computed(()=>n.variant===uu.FULL),v=K=>c.value&&c.value.isActive(K)?"active":null,y=l.computed(()=>n.files&&n.files.length>0?Io(n.apiUrl,n.files,!1):null),b=l.computed(()=>n.files&&n.files.length>0?Io(n.apiUrl,n.files,!0):null),E=K=>{r("action",{name:"delete-attachment",obj:K})},C=K=>{r("action",{name:"image-attachment",obj:K})},S=l.computed(()=>{if(!c.value)return!1;const{from:K,to:F}=c.value.state.selection;return K!==F}),_=l.computed(()=>S.value?"Voeg een link toe":"Selecteer eerst tekst"),T=l.ref(!1),D=l.ref(""),Y=l.ref(null),V=()=>{D.value=c.value.getAttributes("link").href||"",T.value=!0},H=K=>{if(T.value=!1,!K){c.value.chain().focus().unsetLink().run();return}/^www\./i.test(K)&&(K=`https://${K}`),c.value.chain().focus().toggleLink({href:K}).run()},j=()=>{T.value=!1};return(K,F)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{class:l.normalizeClass(["bd-markdown-editor",a.value])},[l.createVNode(l.unref(T_),{editor:l.unref(c)},null,8,["editor"]),t.pills?(l.openBlock(),l.createElementBlock("div",TB,[l.createElementVNode("ul",IB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(z,$)=>(l.openBlock(),l.createElementBlock("li",{key:$,class:"pills-list__li"},[l.createVNode(ec,l.mergeProps({ref_for:!0},z),null,16)]))),128))])])):l.createCommentVNode("",!0),l.renderSlot(K.$slots,"default"),y.value?(l.openBlock(),l.createBlock(Hs,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):l.createCommentVNode("",!0),b.value?(l.openBlock(),l.createBlock(js,{key:2,files:b.value,"no-download":!0,"show-delete":!0,"fast-download":!1,onDelete:E,onShow:C},null,8,["files"])):l.createCommentVNode("",!0),l.createElementVNode("div",_B,[l.createVNode(Re,{variant:"light",type:"button",onClick:o},{default:l.withCtx(()=>[l.createVNode(l.unref(Dr))]),_:1}),g.value?(l.openBlock(),l.createElementBlock("div",NB)):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:1,variant:"light",type:"button",class:l.normalizeClass(u.value),onClick:F[0]||(F[0]=z=>l.unref(c).chain().focus().toggleBold().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Dd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:2,variant:"light",type:"button",class:l.normalizeClass(d.value),onClick:F[1]||(F[1]=z=>l.unref(c).chain().focus().toggleItalic().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Kd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:3,variant:"light",type:"button",class:l.normalizeClass(f.value),onClick:F[2]||(F[2]=z=>l.unref(c).chain().focus().toggleUnderline().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(qd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:4,variant:"light",type:"button",class:l.normalizeClass(h.value),onClick:F[3]||(F[3]=z=>l.unref(c).chain().focus().toggleBulletList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Pd))]),_:1},8,["class"])):l.createCommentVNode("",!0),g.value?(l.openBlock(),l.createBlock(Re,{key:5,variant:"light",type:"button",class:l.normalizeClass(p.value),onClick:F[4]||(F[4]=z=>l.unref(c).chain().focus().toggleOrderedList().run())},{default:l.withCtx(()=>[l.createVNode(l.unref(Gd))]),_:1},8,["class"])):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createElementBlock("span",null,[g.value?(l.openBlock(),l.createBlock(Re,{key:0,ref_key:"linkButton",ref:Y,variant:"light",type:"button",class:l.normalizeClass(m.value),onClick:V,disabled:!S.value},{default:l.withCtx(()=>[l.createVNode(l.unref(Kl))]),_:1},8,["class","disabled"])):l.createCommentVNode("",!0)])),[[l.unref(Po),_.value]])]),T.value?(l.openBlock(),l.createBlock(pO,{key:3,previousUrl:D.value,onSubmit:H,onCancel:j},null,8,["previousUrl"])):l.createCommentVNode("",!0)],2),l.createVNode(ql,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),OB={class:"header"},MB={class:"icon-close-wrapper"},LB={class:"navbar"},DB={class:"nav navbar-nav w-100"},PB={class:"nav-item"},BB={class:"nav-item"},vh=l.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=e,r=t,o=l.computed(()=>({active:r.active===!0,inactive:r.active===!1})),i=()=>n("hide"),s=()=>n("signout");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-mobile-menu",o.value])},[l.createElementVNode("div",OB,[a[0]||(a[0]=l.createElementVNode("div",null,"Menu",-1)),l.createElementVNode("div",MB,[l.createVNode(jl,{onClick:i})])]),l.createElementVNode("nav",LB,[l.createElementVNode("ul",DB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.options,u=>(l.openBlock(),l.createElementBlock("li",PB,[l.createVNode(Co,l.mergeProps({class:"nav-link"},{ref_for:!0},u,{onClick:i}),null,16)]))),256)),l.renderSlot(c.$slots,"special-options"),l.createElementVNode("li",BB,[l.createVNode(Co,{class:"nav-link",text:"Uitloggen",onClick:s})])])])],2))}}),RB={class:"bd-user"},VB={class:"bd-user__information"},$B={class:"text-break"},FB={class:"overflow-x-hidden"},u3=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(()=>typeof e.details=="string"?e.details:e.details?.join(" • "));return(r,o)=>(l.openBlock(),l.createElementBlock("div",RB,[e.hideImage?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(Bs,l.mergeProps({key:0},e.img,{size:"sm"}),null,16)),l.createElementVNode("div",VB,[l.createElementVNode("header",null,[l.createElementVNode("h5",$B,l.toDisplayString(e.name),1),l.renderSlot(r.$slots,"header-extra")]),l.createElementVNode("span",FB,l.toDisplayString(n.value),1)])]))}}),zB={class:"bd-chat-cloud-card"},UB={class:"bd-chat-cloud-card__header"},HB={class:"bd-chat-cloud-card__body"},jB=["innerHTML"],WB={class:"bd-chat-cloud-card__footer"},KB={key:0,class:"pills-list__wrapper"},YB={class:"pills-list__ul"},d3=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},apiUrl:{default:""}},emits:["show-attachment","action"],setup(t,{emit:e}){const n=t,r=e,o=l.computed(()=>n.isSender?"sender":Ie),i=l.computed(()=>Io(n.apiUrl,n.files,!1)),s=l.computed(()=>Io(n.apiUrl,n.files,!0)),c=()=>{r("action","copy-message")},a=u=>{r("show-attachment",u)};return(u,d)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["bd-chat-cloud",o.value])},[l.createVNode(Bs,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),l.createElementVNode("div",zB,[l.createElementVNode("div",UB,[l.renderSlot(u.$slots,"header",{},()=>[l.createTextVNode(l.toDisplayString(t.headerTitle),1)]),l.createVNode(Re,{variant:"outline-primary-dark",size:"sm",onClick:c},{default:l.withCtx(()=>[...d[0]||(d[0]=[l.createTextVNode(" kopieer ",-1)])]),_:1})]),l.createElementVNode("div",HB,[l.renderSlot(u.$slots,"body",{},()=>[l.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,jB)])]),l.createElementVNode("div",WB,[l.renderSlot(u.$slots,"footer",{},()=>[t.pills?(l.openBlock(),l.createElementBlock("div",KB,[l.createElementVNode("ul",YB,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.pills,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"pills-list__li"},[l.createVNode(ec,l.mergeProps({ref_for:!0},f),null,16)]))),128))])])):l.createCommentVNode("",!0),i.value&&i.value.length>0?(l.openBlock(),l.createBlock(Hs,{key:1,files:i.value},null,8,["files"])):l.createCommentVNode("",!0),s.value&&s.value.length>0?(l.openBlock(),l.createBlock(js,{key:2,"fast-download":!0,files:s.value,onShow:a},null,8,["files"])):l.createCommentVNode("",!0)])])])],2))}}),GB=l.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=e,o=l.ref(n.sortDesc),i=()=>{n.active&&(o.value=!o.value)},s=()=>{if(!n.active)return;const a=o.value?"sortDesc":"sortAsc";r(a)},c=l.computed(()=>({"bd-table-sort":!0,active:n.active}));return l.watch(()=>n.active,(a,u)=>{a&&!u&&(o.value=!1,r("sortAsc"))}),s(),(a,u)=>(l.openBlock(),l.createElementBlock("th",{class:l.normalizeClass(c.value),onClick:u[0]||(u[0]=d=>{i(),s()})},[l.createElementVNode("span",null,l.toDisplayString(n.label),1),n.active&&!o.value?(l.openBlock(),l.createBlock(l.unref(Qd),{key:0})):n.active&&o.value?(l.openBlock(),l.createBlock(l.unref(Zd),{key:1})):(l.openBlock(),l.createBlock(l.unref(Jd),{key:2}))],2))}}),QB={class:"bd-table"},ZB={key:0,class:"table"},JB={key:1},XB={key:2},qB=["onClick"],eR={key:0},tR={key:1,class:"empty-text"},f3=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=n,i=l.ref(r.items),s=l.ref(r.sortBy),c=h=>s.value=h,a=(h,p,m)=>{const g=p[h],v=m[h];if(g==null)return 1;if(v==null)return-1;const y=g.toString(),b=v.toString();return y.localeCompare(b,void 0,{numeric:!0})},u=h=>{i.value=i.value.sort((m,g)=>a(h,m,g)),o("sort-changed",{sortBy:h,sortDesc:!1})},d=h=>{i.value=i.value.sort((m,g)=>a(h,g,m)),o("sort-changed",{sortBy:h,sortDesc:!0})},f=()=>{i.value=r.items};return l.watch(()=>r.items,h=>{i.value=h}),e({Refresh:f}),(h,p)=>(l.openBlock(),l.createElementBlock("div",QB,[r.items&&r.items.length>0?(l.openBlock(),l.createElementBlock("table",ZB,[l.createElementVNode("thead",null,[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.fields,m=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[m.isVisible?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[m.sortable?(l.openBlock(),l.createBlock(GB,{key:0,label:m.label,active:m.key==s.value,sortDesc:r.sortDesc,onClick:g=>c(m.key),onSortAsc:g=>u(m.key),onSortDesc:g=>d(m.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):h.$slots.hasOwnProperty(`header_${m.key}`)?(l.openBlock(),l.createElementBlock("th",JB,[l.renderSlot(h.$slots,`header_${m.key}`)])):(l.openBlock(),l.createElementBlock("th",XB,l.toDisplayString(m.label),1))],64)):l.createCommentVNode("",!0)],64))),256))])]),l.createElementVNode("tbody",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.value,m=>(l.openBlock(),l.createElementBlock("tr",{class:l.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(m)),onClick:g=>o("row-click",m)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,g=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[g.isVisible?(l.openBlock(),l.createElementBlock("td",eR,[h.$slots.hasOwnProperty(g.key)?l.renderSlot(h.$slots,g.key,{key:0,row:m,item:m,value:m[g.key]}):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(m[g.key]),1)],64))])):l.createCommentVNode("",!0)],64))),256))],10,qB))),256))])])):(l.openBlock(),l.createElementBlock("p",tR,l.toDisplayString(r.emptyText),1))]))}}),nR=["id"],rR={key:0,class:"toast-body__title"},oR={class:"actions"},iR=["textContent"],sR=["textContent"],aR={class:"icon-wrapper"},lR=["textContent"],cR=["textContent"],h0=3e4,p0=5e3,h3=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,r=e;let o=l.ref(!1),i=l.ref(!1),s=null,c=null;const a=l.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),u=l.computed(()=>o.value?[o.value?"is-handled":Ie,i.value?"is-handled--success":Ie,n.canceled?"is-handled--canceled":Ie].join(" "):Ie),d=l.computed(()=>n.canceled?n.localization.videoCallCanceled:i.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),f=l.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:i.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));l.watch(()=>n.canceled,()=>{o.value=!0});const h=()=>{const E=a.value,C=document.querySelector(`#${E}`);if(C){C.addEventListener("hide.bs.toast",b);var S={autohide:!0,delay:h0+p0};c=Ai.getOrCreateInstance(C,S),c.show(),s=window.setTimeout(p,h0)}};l.onMounted(h);const p=()=>{o.value||g()},m=()=>{g(),y()},g=()=>{o.value||(o.value=!0,r("reject-video-call",n.id))},v=()=>{o.value=!0,i.value=!0,r("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(s),window.setTimeout(()=>c.hide(),p0)},b=()=>{o.value=!1,i.value=!1};return(E,C)=>(l.openBlock(),l.createElementBlock("div",{id:a.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[l.unref(o)?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",rR,l.toDisplayString(n.localization.incomingVideoCall),1)),l.createElementVNode("div",{class:l.normalizeClass(["toast-body__main",u.value])},[l.unref(o)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createElementVNode("div",aR,[l.createVNode(Ua)]),l.createElementVNode("div",null,[l.createElementVNode("p",{textContent:l.toDisplayString(d.value),class:"title"},null,8,lR),l.createElementVNode("p",{textContent:l.toDisplayString(f.value)},null,8,cR)])],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createVNode(vf,{value:t.contactInfoReceiver},null,8,["value"]),l.createElementVNode("div",oR,[l.createVNode(Re,{variant:"danger",class:"text-center",onClick:m},{default:l.withCtx(()=>[l.createVNode(Bd),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.rejectVideoCall)},null,8,iR)]),_:1}),l.createVNode(Re,{variant:"success",class:"text-center",onClick:v},{default:l.withCtx(()=>[l.createVNode(Ua),l.createElementVNode("span",{textContent:l.toDisplayString(n.localization.acceptVideoCall)},null,8,sR)]),_:1})])],64))],2)],8,nR))}}),yh=l.defineComponent({__name:"BDDropdown",props:{size:{default:lt.MD},variant:{default:Yl.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}=vi(),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(),u=()=>{c.value.classList.remove("show"),a.value.classList.remove("show"),a.value.removeAttribute("aria-expanded")};return(d,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:u}),[l.renderSlot(d.$slots,"default")],16)]))}}),uR={class:"row bd-header"},dR={class:"col logo-mix"},fR=["src"],hR={key:1,class:"col header-options"},pR={class:"col bd-btn-settings"},mR={key:2},bh=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=e,o=l.computed(()=>{let f=[];return n.isEmbedded||(n.headerOptions&&(f=f.concat(n.headerOptions)),n.dropdownOptions&&(f=f.concat(n.dropdownOptions))),f}),i=l.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),s=l.ref(void 0),c=()=>{n.isEmbedded||r("click-logo")},a=()=>r("signout"),u=()=>s.value=!0,d=()=>s.value=!1;return(f,h)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("nav",uR,[l.createElementVNode("div",dR,[l.createVNode(Od,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:c}),n.organizationLogoSrc?(l.openBlock(),l.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,fR)):l.createCommentVNode("",!0)]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:u},[h[0]||(h[0]=l.createElementVNode("div",null,"Menu",-1)),l.createVNode(Yd)])),i.value?(l.openBlock(),l.createElementBlock("div",hR,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.headerOptions,p=>(l.openBlock(),l.createBlock(Re,{class:"btn-header",to:p.to,variant:"neutral"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["to"]))),256))])):l.createCommentVNode("",!0),l.createElementVNode("div",pR,[n.isEmbedded?l.createCommentVNode("",!0):l.renderSlot(f.$slots,"profile-side",{key:0}),n.profileImageSrc?(l.openBlock(),l.createBlock(Bs,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):l.createCommentVNode("",!0),n.isEmbedded?(l.openBlock(),l.createElementBlock("span",mR,l.toDisplayString(n.dropdownMenuTitle),1)):l.createCommentVNode("",!0),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(yh,{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,(p,m)=>(l.openBlock(),l.createBlock(Za,l.mergeProps({key:m},{ref_for:!0},p),null,16))),128)),n.hasLogoutOption?(l.openBlock(),l.createBlock(Za,{key:0,text:"Uitloggen",onClick:a})):l.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(vh,{key:0,active:s.value,options:o.value,onHide:d,onSignout:a},{"special-options":l.withCtx(()=>[l.renderSlot(f.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),gR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20height='800px'%20width='800px'%20viewBox='0%200%20800%20800'%20fill='none'%20version='1.1'%20id='svg2'%20sodipodi:docname='bell-icon.svg'%20inkscape:version='1.4.2%20(ebf0e94,%202025-05-08)'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:svg='http://www.w3.org/2000/svg'%3e%3cdefs%20id='defs2'%20/%3e%3csodipodi:namedview%20id='namedview2'%20pagecolor='%23ffffff'%20bordercolor='%23000000'%20borderopacity='0.25'%20inkscape:showpageshadow='2'%20inkscape:pageopacity='0.0'%20inkscape:pagecheckerboard='0'%20inkscape:deskcolor='%23d1d1d1'%20inkscape:zoom='0.93902601'%20inkscape:cx='361.01236'%20inkscape:cy='425.44082'%20inkscape:window-width='2323'%20inkscape:window-height='1321'%20inkscape:window-x='69'%20inkscape:window-y='-9'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg2'%20inkscape:lockguides='false'%20/%3e%3cpath%20fill='%23394156'%20d='m%20574.7134,517.70839%20c%20-43.02343,-19.42958%20-40.33991,-92.03173%20-40.37166,-94.13603%20l%20-0.86403,-55.08622%20c%20-0.84452,-53.84263%20-32.76289,-101.01787%20-79.52261,-120.73389%20-0.10055,-27.68538%20-26.24787,-50.17713%20-53.95375,-50.17713%20-27.70655,0%20-53.8532,22.49307%20-53.95442,50.17581%20-46.75774,19.71601%20-77.67395,68.62166%20-78.65724,122.46193%20l%20-0.86403,47.31%20c%20-0.0304,2.1043%201.78773,80.75463%20-41.23703,100.1842%20-4.90122,2.21412%20-7.59494,12.9473%20-6.46175,18.20508%201.13187,5.25843%203.98237,14.4119%209.36122,14.4119%20h%20110.87115%20c%202.23595,12.30035%208.05205,23.74336%2016.94754,33.01196%2011.8148,12.30961%2027.4393,19.08888%2043.99257,19.08888%2016.5546,0%2032.1791,-6.77927%2043.99258,-19.08888%208.89681,-9.26925%2014.71291,-20.71294%2016.94754,-33.01196%20h%20110.87115%20c%205.37885,0%208.22869,-9.1528%209.36189,-14.4119%201.13449,-5.25778%20-1.55789,-15.9903%20-6.45912,-18.20375%20z%20m%20-65.45742,-27.74178%20c%204.52282,13.71204%207.25707,16.20673%2016.33845,27.66562%20l%20-250.39475,-0.79275%20c%209.08005,-11.45756%2010.3714,-13.15885%2014.89422,-26.87287%20z%20M%20400.00135,224.00622%20c%2012.53255,0%2019.53015,4.82252%2022.8457,16.30126%20-8.54159,-1.77156%20-13.78747,-2.70563%20-22.8457,-2.70563%20-9.05823,0%20-14.30412,0.93341%20-22.84569,2.70563%203.3162,-11.47808%2010.31381,-16.30126%2022.84569,-16.30126%20z%20m%20-103.58848,199.63494%201.79933,-54.2217%20c%201.96022,-59.06989%2042.68543,-96.67497%20101.78915,-96.67497%2059.10373,0%2099.89499,35.80359%20101.78916,94.87564%20l%201.79933,56.1143%20c%200.0152,1.71731%201.47422,12.5683%201.23243,34.7862%20H%20295.17778%20c%200.71894,-22.23906%201.22119,-33.1218%201.23509,-34.87947%20z%20m%20103.58848,148.96978%20c%20-17.42517,0%20-25.43558,-5.58015%20-30.31694,-22.28624%20h%2060.63257%20c%20-4.88138,16.70609%20-12.88914,22.28624%20-30.31563,22.28624%20z'%20id='path1'%20style='stroke-width:0.899666;stroke-dasharray:none'%20sodipodi:nodetypes='ccscscscccsccsccscccccccscscscsssccccsccs'%20/%3e%3cpath%20fill='%23394156'%20d='m%20397.96944,283.33669%20c%20-49.41855,0%20-89.62361,40.20373%20-89.62361,89.62161%200,6.34354%205.14286,11.4864%2011.48639,11.4864%206.34355,0%2011.48641,-5.14286%2011.48641,-11.4864%200,-36.75076%2029.89938,-66.64948%2066.65148,-66.64948%206.34353,0%2011.48639,-5.14285%2011.48639,-11.4864%20-6.6e-4,-6.3442%20-5.14353,-11.48573%20-11.48706,-11.48573%20z'%20id='path2'%20style='stroke-width:0.904712;stroke-dasharray:none'%20sodipodi:nodetypes='ssssscs'%20/%3e%3c/svg%3e",m0=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 Ch(){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 vR=(t,e,n)=>{const{OnWindowLoaded:r}=Ch(),o="lkj298fhGGJihge",i=l.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const u=s(),d=localStorage.getItem(t),f=JSON.parse(d)||[],h=await m0(u,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const u=s(),d=await m0(u,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(d)||(h.push(d),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function p3(t){const{OnWindowLoaded:e}=Ch();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=co.getInstance(t.value);c&&c.hide()})};l.onMounted(r);const o=()=>{if(t?.value==null)return;co.getInstance(t.value)||new co(t.value)};e(o),l.watch(t,o),l.onUnmounted(()=>{if(t?.value!=null){const i=co.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const yR=["data-bs-title","data-bs-content"],bR=["title"],CR={key:0,class:"number-circle",textContent:1},ER=l.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>e.getNotification?.linkUrl,{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=vR("notificationsRead",e.userId,n),i=l.ref();p3(i);const s=l.computed(()=>{const d=e.getNotification;if(!d)return!1;const{isActive:f,startDate:h,endDate:p}=d;if(!f)return!1;const m=new Date(h),g=new Date(p),v=new Date;return v>=m&&v<=g}),c=l.computed(()=>e.getNotification?.tooltip),a=l.computed(()=>e.getNotification?.title),u=l.computed(()=>{const d=e.getNotification;if(!d)return"";const{text:f,linkUrl:h,linkText:p}=d;return`
1299
1299
  <p>${f}</p>
1300
1300
  <a href='${h}' target='_blank'>${p}</a>
1301
- `});return(d,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":u.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:fR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,mR),[[l.unref(Po)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",gR)):l.createCommentVNode("",!0)],8,pR)):l.createCommentVNode("",!0)}}),yR={class:"profile-side"},bR=["href"],CR={class:"nav-item"},ER=["textContent"],m3=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const{t:e}=$t(),n=t,r=l.computed(()=>e("practitionerHeader.academyTooltip")),o=l.computed(()=>e("practitionerHeader.academyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(bh,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",yR,[l.createVNode(vR,{"user-id":n.userId,"get-notification":n.getNotification},null,8,["user-id","get-notification"]),n.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:n.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(za),{title:r.value},null,8,["title"]),[[l.unref(Po)]])],8,bR)):l.createCommentVNode("",!0)])]),_:2},[n.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",CR,[l.createVNode(Co,{class:"nav-link",to:n.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(za)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,ER)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),kR={class:"modal-dialog"},wR={class:"modal-content"},SR={class:"modal-header"},AR={class:"modal-title"},xR=["src"],TR={class:"modal-body"},IR={key:0,class:"modal-footer"},_R=["disabled"],xn=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=e,o=l.computed(()=>`modal bd-modal modal-${n.size}`),i=()=>r("submit"),s=()=>r("cancel");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),tabindex:"-1"},[l.createElementVNode("div",kR,[l.createElementVNode("div",wR,[l.createElementVNode("div",SR,[l.createElementVNode("h2",AR,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,xR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(c.$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:s},[a[0]||(a[0]=l.createElementVNode("span",null,"Sluiten",-1)),l.createVNode(l.unref(jl))]))]),l.createElementVNode("div",TR,[l.renderSlot(c.$slots,"default")]),t.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",IR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:i},l.toDisplayString(n.submitButtonTitle),9,_R)),l.renderSlot(c.$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:s,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Bo=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Fr.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=Fr.getInstance(o);i&&i.hide()}}}};function Zs(t=void 0){const e=c=>i("Succesvol",c,Xo.SUCCESS),n=c=>i("Waarschuwing",c,Xo.WARNING),r=c=>i("Informatie",c,Xo.INFO),o=c=>i("Mislukt",c,Xo.DANGER);function i(c,a,u){const d=`toast-${fg()}`,f={id:d,variant:u,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(gf,f),g=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${d}`);v&&(Ai.getOrCreateInstance(v,t).show(),s(v))}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 u=new MutationObserver(a),d={attributes:!0};u.observe(c,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:NR}=Zs();function Eh(t){const e=l.ref(null),n=(a,u="serverErrors")=>{let d=[];if(Array.isArray(a?.response?.data)?d=a.response.data.filter(f=>aa(f.ErrorMessage)&&f.ErrorMessage!==_e):a.response.data.ErrorMessage?d=[a.response.data.ErrorMessage]:d=null,aa(u))e.value=d;else if(Array.isArray(u)){let f=e.value;for(let h=0;h<u.length;h++)h===u.length-1?f[u[h]]=d:f=f[u[h]]}r(a),s(e)},r=a=>{if(t==null)return;const d=new URL(a.request.responseURL).pathname;if(d in t.error){const f=t.error[d];f&&NR(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Hw(a.value)?o.value=a.value.map(u=>aa(u)?u:u.ErrorMessage):aa(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=_e}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const OR={key:0},MR={key:1},LR={class:"bd-form-field"},DR={class:"bd-form-field"},g3=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{showSuccessToast:r,showWarningToast:o}=Zs(),{serverErrors:i,errorMessages:s,errorMessageText:c,MapServerErrors:a,ResetServerErrors:u}=Eh(null),{closeModal:d}=Bo("phone-number-edit-modal"),f=t,h=n;let p=_e;const m=l.ref(),g=l.ref(null),v=l.ref(),y=l.ref(),b=l.ref(null),E=l.computed(()=>y.value==null||y.value==""),C=()=>{if(g.value=null,u(),!m.value||m.value==p){g.value=!1;return}const V={newPhonenumber:m.value};f.startPhoneNumberUpdate(V).then(_).catch(a)},S=()=>{if(!y.value){b.value=!1;return}const V={requestIdentifier:v.value,token:y.value};f.confirmPhoneNumberUpdate(V).then(T).catch(a)},_=V=>{g.value=null,r(f.confirmationCodeSentText),v.value=V.data.RequestIdentifier},T=()=>{h("setPhoneNumber",m.value),r(f.editSuccessText),d(),g.value=null,b.value=null},D=V=>{p=V,m.value=p,g.value=null,v.value=void 0,y.value=void 0,b.value=null},Y=()=>{D(p),u(),o(f.editCanceledText)};return e({Reset:D}),(V,H)=>(l.openBlock(),l.createBlock(xn,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(_e)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(i),errorMessages:l.unref(s),errorMessageText:l.unref(c),onSubmit:S,onCancel:Y},{default:l.withCtx(()=>[l.unref(c)||l.unref(s)?(l.openBlock(),l.createBlock(Eo,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(s)?(l.openBlock(),l.createElementBlock("div",OR,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(j,K)=>(l.openBlock(),l.createElementBlock("li",{key:K},[l.createVNode(Ur),l.createElementVNode("span",null,l.toDisplayString(j),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",MR,l.toDisplayString(l.unref(c)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",LR,[l.createVNode(Ir,{id:"form-input-phone-number",label:f.phoneNumberLabel,modelValue:m.value,"onUpdate:modelValue":H[0]||(H[0]=j=>m.value=j),state:g.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":f.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:C},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:C},null,8,["textContent"])]),l.createElementVNode("div",DR,[v.value?(l.openBlock(),l.createBlock(Ir,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":H[1]||(H[1]=j=>y.value=j),state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),v3=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),u=l.ref(null),{showModal:d,closeModal:f}=Bo("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=()=>{u.value=setInterval(y,1e3),r(u.value)},v=()=>{u.value&&clearInterval(u.value)},y=()=>{s.value=Kt().diff(n(),"m"),c.value=Kt().subtract(s.value,"m").diff(n(),"s");const D=t??Number.MAX_SAFE_INTEGER,Y=e??0;s.value>=D?(a.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=b):s.value>=D-Y?d():f()},b=D=>{D.stopPropagation(),C()},E=()=>{o(),v(),s.value=null,c.value=null,g()},C=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},S=()=>{a.value?C():E()},_=()=>{C()},T=()=>{a.value?C():f()};return l.onMounted(()=>{const D=document.getElementById("session-time-out-modal");D&&D.addEventListener("hidden.bs.modal",S),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:T}},y3=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}=v3(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}`),u=l.computed(()=>e.hideCancelButton||n.value),d=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(xn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":d.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"]))}}),b3={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=Bo(n.modalId);let i=l.ref(null);e({Confirm:()=>Uw(this,void 0,void 0,function*(){return o(),new Promise(u=>i.value=u)})});const c=()=>{r(),i.value(!0)},a=()=>i.value(!1);return(u,d)=>(l.openBlock(),l.createBlock(xn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:a},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},C3={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=$t(),r=l.ref(!1),o=l.ref(!1),i=e,s=()=>i("update:isConcluded",r.value),c=()=>i("update:isUnread",o.value);return(a,u)=>(l.openBlock(),l.createBlock(xn,{id:"assign-conversation-modal",title:l.unref(n)("assignConversationModal.title"),submitButtonTitle:l.unref(n)("assignConversationModal.submitButton")},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"body"),l.createVNode(Cs,null,{default:l.withCtx(()=>[l.createVNode(Pr,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),onChange:s},{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(n)("assignConversationModal.conclude")),1),l.withDirectives((l.openBlock(),l.createBlock(Re,{variant:"placeholder",class:"btn-tooltip",title:l.unref(n)("assignConversationModal.concludeTooltip")},{default:l.withCtx(()=>[l.createVNode(Ur)]),_:1},8,["title"])),[[l.unref(Po)]])]),_:1},8,["modelValue"])]),_:1}),l.createVNode(Cs,null,{default:l.withCtx(()=>[l.createVNode(Pr,{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o.value=d),onChange:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),l.renderSlot(a.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},E3=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const{closeModal:n}=Bo("attachment-upload-modal"),{t:r}=$t(),o=t,i=e,s=()=>{i("on-submit",a.value),a.value=[],n()},c=()=>{i("cancel"),a.value=[]},a=l.ref([]),u=l.computed(()=>r("attachmentUploadModal.title")),d=l.computed(()=>r("attachmentUploadModal.submitButton")),f=l.computed(()=>r("attachmentUploadModal.infoMessage")),h=l.computed(()=>r("attachmentUploadModal.addAttachmentButton")),p=l.computed(()=>r("attachmentUploadModal.errorMessage")),m=l.computed(()=>r("attachmentUploadModal.fileTooBigErrorMessage")),g=l.computed(()=>r("attachmentUploadModal.fileSizeExceededMessage"));return(v,y)=>(l.openBlock(),l.createBlock(xn,{id:"attachment-upload-modal",title:u.value,"submit-button-title":d.value,onSubmit:s,onCancel:c},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createVNode(yf,{modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=b=>a.value=b),"button-text":h.value,"error-message":p.value,multiple:!0,"file-size-exceeded-message":m.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:o.dropzoneUrl,tag:"div",token:o.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(g.value),1),l.renderSlot(v.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var PR=Object.defineProperty,BR=Object.defineProperties,RR=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,VR=Object.prototype.hasOwnProperty,$R=Object.prototype.propertyIsEnumerable,v0=(t,e,n)=>e in t?PR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ho=(t,e)=>{for(var n in e||(e={}))VR.call(e,n)&&v0(t,n,e[n]);if(g0)for(var n of g0(e))$R.call(e,n)&&v0(t,n,e[n]);return t},y0=(t,e)=>BR(t,RR(e));const FR={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}}}},zR={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}}},UR={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}}},kh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},HR={},jR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},WR=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),KR=[WR];function YR(t,e){return l.openBlock(),l.createElementBlock("svg",jR,KR)}const GR=kh(HR,[["render",YR]]),QR={},ZR={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),XR=[JR];function qR(t,e){return l.openBlock(),l.createElementBlock("svg",ZR,XR)}const eV=kh(QR,[["render",qR]]),b0={Deselect:GR,OpenIndicator:eV},tV={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 nV(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let rV=0;function oV(){return++rV}const iV={components:Ho({},b0),directives:{appendToBody:tV},mixins:[FR,zR,UR],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)}.
1302
- 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:nV(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.
1303
- 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:()=>oV()}},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:Ho({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:y0(Ho({},t),{deselect:this.deselect}),footer:y0(Ho({},t),{deselect:this.deselect})}},childComponents(){return Ho(Ho({},b0),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)}}},sV=["dir"],aV=["id","aria-expanded","aria-owns"],lV={ref:"selectedOptions",class:"vs__selected-options"},cV=["disabled","title","aria-label","onClick"],uV={ref:"actions",class:"vs__actions"},dV=["disabled"],fV={class:"vs__spinner"},hV=["id"],pV=["id","aria-selected","onMouseover","onClick"],mV={key:0,class:"vs__no-options"},gV=l.createTextVNode(" Sorry, no matching options. "),vV=["id"];function yV(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",lV,[(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:u=>o.deselectButtons[a]=u,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:u=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,cV)):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",uV,[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,dV),[[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",fV,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,aV),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:u=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(u=>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,pV))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",mV,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[gV])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,hV)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,vV))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,sV)}const bV=kh(iV,[["render",yV]]),CV=t=>typeof t=="number",EV=12,kV=["textContent"],wV=["textContent"],SV={key:0,class:"content-library-card__body"},AV=["textContent"],xV={key:1},Ec=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{t:n}=$t(),r=t,o=e,i=l.computed(()=>`Open ${r.provider} in nieuw venster`),s=()=>{o("on-insert",r.itemId)},c=()=>{window.open(r.uri,"_blank","noopener,noreferrer")};return(a,u)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",r.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(a.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(r.title)},null,8,kV),r.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(r.subtitle)},null,8,wV)):l.createCommentVNode("",!0)])]),r.showBody?(l.openBlock(),l.createElementBlock("div",SV,[l.renderSlot(a.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(r.description),class:"content-library-card__description"},null,8,AV)])])):l.createCommentVNode("",!0),r.showFooter?(l.openBlock(),l.createElementBlock("footer",xV,[l.renderSlot(a.$slots,"footer",{},()=>[l.createVNode(Re,{variant:"secondary",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Re,{title:i.value,variant:"icon",onClick:c},{default:l.withCtx(()=>[l.createVNode(Hd)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),TV=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(Ec,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),IV={class:"content-library-card-image__titles"},_V=["textContent"],NV=["textContent"],OV=["src"],MV=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(Ec,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",IV,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,_V),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,NV)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,OV)]),_:1},16))}}),LV=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(Ec,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),k3=t=>t.replace(/<\/?[^>]+(>|$)/g,_e),w3=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),DV=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),PV={class:"content-library-card-message-template__tag"},BV=["textContent"],RV=["textContent"],VV=["textContent"],$V=["id"],FV=["innerHTML"],zV={class:"collapsed-hide"},UV={class:"collapsed-show"},HV={key:2,class:"edit-btn-group"},jV={key:3,class:"attachment-occurence"},WV={class:"number-icon"},KV=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}},apiUrl:{type:String,default:""}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const{t:n}=$t(),r=t,o=e,i=l.ref(null),s=l.ref(!1),c=l.ref(!1),a=l.computed(()=>`collapse-preview-${r.item.itemId}`),u=l.computed(()=>wv(r.item.files)?null:r.item.files.length),d=l.computed(()=>r.variant==="insert"),f=l.computed(()=>r.variant==="edit"),h=l.computed(()=>r.variant==="shared"),p=l.computed(()=>c.value?_e:"content-library-card-not-collapsable"),m=l.computed(()=>r.item.text?DV(r.item.text):_e),g=l.computed(()=>Io(r.apiUrl,r.item.files,!1)),v=l.computed(()=>Io(r.apiUrl,r.item.files,!0)),y=()=>{i.value&&(c.value=s.value||i.value.scrollHeight>i.value.clientHeight||r.item.files&&r.item.files.length>0)},b=()=>{o("on-insert",r.item.itemId)},E=_=>{o("show-attachment",_)},C=()=>{o("on-change",r.item.itemId)},S=()=>{o("delete",r.item.itemId)};return l.watch(()=>r.item,()=>{i.value&&l.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{y()})}),(_,T)=>(l.openBlock(),l.createBlock(Ec,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${p.value}`,onOnInsert:b}),{header:l.withCtx(()=>[l.createElementVNode("div",PV,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,BV)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,RV),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,VV)]),footer:l.withCtx(()=>[d.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"secondary",onClick:b},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),h.value?l.withDirectives((l.openBlock(),l.createBlock(Re,{key:1,variant:"icon",title:l.unref(n)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Wd)]),_:1},8,["title"])),[[l.unref(Po)]]):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("div",HV,[l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:C},{default:l.withCtx(()=>[l.createVNode(Ud)]),_:1},8,["title"]),l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:S},{default:l.withCtx(()=>[l.createVNode(Fd)]),_:1},8,["title"])])):l.createCommentVNode("",!0),u.value?(l.openBlock(),l.createElementBlock("div",jV,[l.createVNode(Dr),l.createElementVNode("div",WV,l.toDisplayString(u.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:a.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:i},[l.createElementVNode("p",{class:"message-text",innerHTML:m.value},null,8,FV),t.item.files?(l.openBlock(),l.createBlock(Hs,{key:0,"no-download":!0,files:g.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(js,{key:1,"no-download":!0,files:v.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,$V),c.value?(l.openBlock(),l.createBlock(Re,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${a.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",zV,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",UV,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),YV={class:"content-library-overview"},GV={__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{t:n}=$t(),r={BDContentLibraryCardBasic:TV,BDContentLibraryCardImage:MV,BDContentLibraryCardTitle:LV,BDContentLibraryCardMessageTemplate:KV},o=t,i=e,s=l.computed(()=>wv(o.items)),c=l.computed(()=>Math.floor(EV/o.cols)),a=h=>{i("on-insert",h)},u=h=>{i("on-change",h)},d=h=>{i("delete",h)},f=h=>{i("show-attachment",h)};return(h,p)=>(l.openBlock(),l.createElementBlock("div",YV,[l.createVNode(bn,null,{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(It,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Eo,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,m=>(l.openBlock(),l.createBlock(It,{class:"card-container",key:m.itemId,sm:12,md:6,lg:c.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r[m.componentToRender]),l.mergeProps({ref_for:!0},m,{item:m,onOnInsert:a,onOnChange:u,onDelete:d,onShowAttachment:f}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},QV=me(GV,[["__scopeId","data-v-de8a1bfb"]]),ZV={class:"content-library-template"},JV={class:"number-of-messages"},XV=["src"],qV=["src"],e$=["id"],t$={class:"collapse-button-container"},n$={class:"collapsed-show"},r$={class:"collapsed-hide"},wh=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{t:n}=$t(),r=t,o=e,i=l.ref(r.modelValue);l.watch(()=>r.modelValue,F=>{i.value=F},{immediate:!0,deep:!0});const s=l.computed(()=>r.modelValue?.provider?.SupportsSearch?n("contentLibraryTemplate.searchPlaceholderSearch"):n("contentLibraryTemplate.searchPlaceholder")),c=l.computed(()=>Rc(r.providerSelectOptions)&&r.providerSelectOptions.length>1),a=l.computed(()=>r.provider&&Rc(r.provider.items)?r.provider.items:[]),u=l.computed(()=>r.provider&&Rc(r.provider.filters)),d=l.computed(()=>{let F=0;return r.provider&&CV(r.provider.totalNumber)&&(F=r.provider.totalNumber),F===1?`${F} ${n("contentLibraryTemplate.message")}`:`${F} ${n("contentLibraryTemplate.messages")}`}),f=l.computed(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),h=l.computed(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),p=l.computed(()=>u.value?9:12),m=l.computed(()=>r.provider&&!u.value?3:2),g=l.computed(()=>r.showAddButton||c.value),v=l.computed(()=>({md:3,lg:3})),y=l.computed(()=>({md:9,lg:9})),b=l.computed(()=>({sm:12,md:12,lg:c.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),E=l.computed(()=>({sm:12,md:g.value?6:3,lg:c.value?5:4})),C=F=>F.replace(/\s/g,"-"),S=()=>{o("create")},_=F=>{o("on-insert",F)},T=F=>{o("on-change",F)},D=F=>{o("delete",F)},Y=()=>{o("update","category")},V=()=>{i.value.currentPage=1,o("on-input",i.value)},H=()=>{o("on-input",i.value)},j=F=>{o("show-attachment",F)},K=F=>{o("provider-changed",F.value)};return(F,z)=>(l.openBlock(),l.createElementBlock("div",ZV,[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(v.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",JV,l.toDisplayString(d.value),1),t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,class:"d-md-none",onClick:S},{default:l.withCtx(()=>[l.createVNode(Ha),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(It,l.mergeProps(y.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(b.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Ir,{type:"text",modelValue:i.value.searchTerm,"onUpdate:modelValue":z[0]||(z[0]=$=>i.value.searchTerm=$),placeholder:s.value,delayTimeMs:500,class:"search-input",onInput:V,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),t.showAddButton?(l.openBlock(),l.createBlock(It,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,onClick:S},{default:l.withCtx(()=>[l.createVNode(Ha),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createBlock(It,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(bV),{modelValue:i.value.provider,"onUpdate:modelValue":z[1]||(z[1]=$=>i.value.provider=$),options:t.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":K},{"open-indicator":l.withCtx(({attributes:$})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps($)),[l.createVNode(Hl)],16)]),option:l.withCtx(({icon:$,label:J,img:U})=>[$?(l.openBlock(),l.createBlock(l.resolveDynamicComponent($),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,XV)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),"selected-option":l.withCtx(({icon:$,label:J,img:U})=>[$?(l.openBlock(),l.createBlock(l.resolveDynamicComponent($),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,qV)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),u.value?(l.openBlock(),l.createBlock(It,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(tf,{title:"Filter","show-on":"md","collapse-on":"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.provider.filters,($,J)=>(l.openBlock(),l.createBlock(Cs,{key:$.label,label:$.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList($.options,(U,q)=>(l.openBlock(),l.createBlock(Pr,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":z[2]||(z[2]=te=>i.value.selectedFilters=te),key:q,value:`${$.id}-${U.item}`,onChange:V},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128)),$.moreOptions?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{id:`collapse-${C($.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList($.moreOptions,(U,q)=>(l.openBlock(),l.createBlock(Pr,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":z[3]||(z[3]=te=>i.value.selectedFilters=te),key:q,value:`${$.id}-${U.item}`,onChange:V},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,e$),l.createElementVNode("div",t$,[l.createVNode(Re,{class:l.normalizeClass(["collapse-button collapsed",{"collapse-button-last":t.provider.filters.length-1===J}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${C($.label)}`},{default:l.withCtx(()=>[l.createVNode(Md,{class:"collapsed-show"}),l.createElementVNode("span",n$,l.toDisplayString(l.unref(n)("contentLibraryTemplate.more")),1),l.createVNode(Ld,{class:"collapsed-hide"}),l.createElementVNode("span",r$,l.toDisplayString(l.unref(n)("contentLibraryTemplate.less")),1)]),_:1},8,["class","data-bs-target"])])],64)):l.createCommentVNode("",!0),$.label==="Categorieën"&&t.editCategory?(l.openBlock(),l.createBlock(Re,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:Y},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(It,{md:12,lg:p.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(QV,{items:a.value,cols:m.value,onOnInsert:_,onOnChange:T,onDelete:D,onShowAttachment:j},null,8,["items","cols"]),l.createVNode(bn,{class:"content-library-pagination"},{default:l.withCtx(()=>[f.value?(l.openBlock(),l.createBlock(mf,{key:0,modelValue:i.value.currentPage,"onUpdate:modelValue":z[4]||(z[4]=$=>i.value.currentPage=$),totalRows:h.value,rowsPerPage:t.provider.pageSize,onClick:H,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),S3={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const{closeModal:n}=Bo("content-library-modal"),r=t,o=e,i=l.ref(r.modelValue),s=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.img)!==null&&g!==void 0?g:null}),c=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.label)!==null&&g!==void 0?g:_e});l.watch(()=>r.modelValue,p=>{i.value=p},{immediate:!0,deep:!0});const a=p=>{n(),o("on-insert",p)},u=()=>{o("cancel")},d=p=>{o("show-attachment",p)},f=()=>{o("shown")},h=p=>{o("provider-changed",p)};return(p,m)=>(l.openBlock(),l.createBlock(xn,{id:"content-library-modal","title-image":s.value,title:c.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:l.withCtx(()=>[l.createVNode(wh,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=g=>i.value=g),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:a,onShowAttachment:d,onProviderChanged:h},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var o$=Object.defineProperty,i$=(t,e,n)=>e in t?o$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C0=(t,e,n)=>(i$(t,typeof e!="symbol"?e+"":e,n),n);class s${constructor(){C0(this,"seed",0),C0(this,"data",new Map)}id(){return Date.now().toString(26)+this.seed++}add(e,n=this.id()){return this.data.set(n,e),n}get(e){return this.data.get(e)}delete(e){this.delete(e)}}const a$="Failed to copy value to clipboard. Unknown type.",l$={asString(t){if(t==null)return console.warn("Clipboard input is empty"),"";if(typeof t!="string")try{return JSON.stringify(t)}catch(e){return console.warn(a$,e),""}return t}},c$="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",u$={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=c$,e}},ri={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await ri.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=u$.createTextarea(t);if(document.body.appendChild(e),navigator.userAgent.match(/ipad|ipod|iphone/i)){e.contentEditable="true",e.readOnly=!0;const r=document.createRange();r.selectNodeContents(e);const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(r),e.setSelectionRange(0,999999))}else e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n},async copy(t){const e=typeof t=="function"?t():t,n=l$.asString(e);if(ri.writeClipboardExecCommand(n))return!0;await ri.writeClipboard(n)}};new s$;const{showSuccessToast:Sh}=Zs(),d$=(t,e,n)=>{const r=`${e}
1301
+ `});return(d,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":u.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>l.unref(o)&&l.unref(o)(...h))},[l.withDirectives(l.createElementVNode("img",{src:gR,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,bR),[[l.unref(Po)]]),l.unref(r)?(l.openBlock(),l.createElementBlock("div",CR)):l.createCommentVNode("",!0)],8,yR)):l.createCommentVNode("",!0)}}),kR={class:"profile-side"},wR=["href"],SR={class:"nav-item"},AR=["textContent"],m3=l.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const{t:e}=Ot(),n=t,r=l.computed(()=>e("practitionerHeader.academyTooltip")),o=l.computed(()=>e("practitionerHeader.academyMenuItem"));return(i,s)=>(l.openBlock(),l.createBlock(bh,null,l.createSlots({"profile-side":l.withCtx(()=>[l.createElementVNode("div",kR,[l.createVNode(ER,{"user-id":n.userId,"get-notification":n.getNotification},null,8,["user-id","get-notification"]),n.academyUrl?(l.openBlock(),l.createElementBlock("a",{key:0,href:n.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[l.withDirectives(l.createVNode(l.unref(za),{title:r.value},null,8,["title"]),[[l.unref(Po)]])],8,wR)):l.createCommentVNode("",!0)])]),_:2},[n.academyUrl?{name:"mobile-menu-special-options",fn:l.withCtx(()=>[l.createElementVNode("li",SR,[l.createVNode(Co,{class:"nav-link",to:n.academyUrl},{default:l.withCtx(()=>[l.createVNode(l.unref(za)),l.createElementVNode("span",{textContent:l.toDisplayString(o.value)},null,8,AR)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),xR={class:"modal-dialog"},TR={class:"modal-content"},IR={class:"modal-header"},_R={class:"modal-title"},NR=["src"],OR={class:"modal-body"},MR={key:0,class:"modal-footer"},LR=["disabled"],xn=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=e,o=l.computed(()=>`modal bd-modal modal-${n.size}`),i=()=>r("submit"),s=()=>r("cancel");return(c,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(o.value),tabindex:"-1"},[l.createElementVNode("div",xR,[l.createElementVNode("div",TR,[l.createElementVNode("div",IR,[l.createElementVNode("h2",_R,[n.titleImage?(l.openBlock(),l.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,NR)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(n.title),1)]),l.renderSlot(c.$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:s},[a[0]||(a[0]=l.createElementVNode("span",null,"Sluiten",-1)),l.createVNode(l.unref(jl))]))]),l.createElementVNode("div",OR,[l.renderSlot(c.$slots,"default")]),t.hideFooter?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",MR,[n.hideFooterSubmitButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:i},l.toDisplayString(n.submitButtonTitle),9,LR)),l.renderSlot(c.$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:s,"aria-label":"Annuleren"},l.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),Bo=t=>{const e=l.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=Fr.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=Fr.getInstance(o);i&&i.hide()}}}};function Zs(t=void 0){const e=c=>i("Succesvol",c,Xo.SUCCESS),n=c=>i("Waarschuwing",c,Xo.WARNING),r=c=>i("Informatie",c,Xo.INFO),o=c=>i("Mislukt",c,Xo.DANGER);function i(c,a,u){const d=`toast-${fg()}`,f={id:d,variant:u,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(gf,f),g=l.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const v=document.querySelector(`#${d}`);v&&(Ai.getOrCreateInstance(v,t).show(),s(v))}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 u=new MutationObserver(a),d={attributes:!0};u.observe(c,d)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:DR}=Zs();function Eh(t){const e=l.ref(null),n=(a,u="serverErrors")=>{let d=[];if(Array.isArray(a?.response?.data)?d=a.response.data.filter(f=>aa(f.ErrorMessage)&&f.ErrorMessage!==Ie):a.response.data.ErrorMessage?d=[a.response.data.ErrorMessage]:d=null,aa(u))e.value=d;else if(Array.isArray(u)){let f=e.value;for(let h=0;h<u.length;h++)h===u.length-1?f[u[h]]=d:f=f[u[h]]}r(a),s(e)},r=a=>{if(t==null)return;const d=new URL(a.request.responseURL).pathname;if(d in t.error){const f=t.error[d];f&&DR(f)}},o=l.ref(null),i=l.ref(""),s=a=>{Hw(a.value)?o.value=a.value.map(u=>aa(u)?u:u.ErrorMessage):aa(a.value)&&(i.value=a.value)};function c(){e.value=null,o.value=null,i.value=Ie}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const PR={key:0},BR={key:1},RR={class:"bd-form-field"},VR={class:"bd-form-field"},g3=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{showSuccessToast:r,showWarningToast:o}=Zs(),{serverErrors:i,errorMessages:s,errorMessageText:c,MapServerErrors:a,ResetServerErrors:u}=Eh(null),{closeModal:d}=Bo("phone-number-edit-modal"),f=t,h=n;let p=Ie;const m=l.ref(),g=l.ref(null),v=l.ref(),y=l.ref(),b=l.ref(null),E=l.computed(()=>y.value==null||y.value==""),C=()=>{if(g.value=null,u(),!m.value||m.value==p){g.value=!1;return}const V={newPhonenumber:m.value};f.startPhoneNumberUpdate(V).then(_).catch(a)},S=()=>{if(!y.value){b.value=!1;return}const V={requestIdentifier:v.value,token:y.value};f.confirmPhoneNumberUpdate(V).then(T).catch(a)},_=V=>{g.value=null,r(f.confirmationCodeSentText),v.value=V.data.RequestIdentifier},T=()=>{h("setPhoneNumber",m.value),r(f.editSuccessText),d(),g.value=null,b.value=null},D=V=>{p=V,m.value=p,g.value=null,v.value=void 0,y.value=void 0,b.value=null},Y=()=>{D(p),u(),o(f.editCanceledText)};return e({Reset:D}),(V,H)=>(l.openBlock(),l.createBlock(xn,{id:"phone-number-edit-modal",class:l.normalizeClass(l.unref(Ie)),title:f.modalTitle,submitButtonTitle:f.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:l.unref(i),errorMessages:l.unref(s),errorMessageText:l.unref(c),onSubmit:S,onCancel:Y},{default:l.withCtx(()=>[l.unref(c)||l.unref(s)?(l.openBlock(),l.createBlock(Eo,{key:0,variant:"danger"},{default:l.withCtx(()=>[l.unref(s)?(l.openBlock(),l.createElementBlock("div",PR,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(s),(j,K)=>(l.openBlock(),l.createElementBlock("li",{key:K},[l.createVNode(Ur),l.createElementVNode("span",null,l.toDisplayString(j),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",BR,l.toDisplayString(l.unref(c)),1))]),_:1})):l.createCommentVNode("",!0),l.createElementVNode("div",RR,[l.createVNode(Ir,{id:"form-input-phone-number",label:f.phoneNumberLabel,modelValue:m.value,"onUpdate:modelValue":H[0]||(H[0]=j=>m.value=j),state:g.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":f.phoneNumberUnchangedText},{default:l.withCtx(()=>[l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:C},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),l.createVNode(Re,{textContent:l.toDisplayString(f.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:C},null,8,["textContent"])]),l.createElementVNode("div",VR,[v.value?(l.openBlock(),l.createBlock(Ir,{key:0,label:f.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":H[1]||(H[1]=j=>y.value=j),state:b.value,"invalid-feedback-text":f.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):l.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),v3=(t,e,n,r,o,i)=>{const s=l.ref(null),c=l.ref(null),a=l.ref(!1),u=l.ref(null),{showModal:d,closeModal:f}=Bo("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=()=>{u.value=setInterval(y,1e3),r(u.value)},v=()=>{u.value&&clearInterval(u.value)},y=()=>{s.value=Kt().diff(n(),"m"),c.value=Kt().subtract(s.value,"m").diff(n(),"s");const D=t??Number.MAX_SAFE_INTEGER,Y=e??0;s.value>=D?(a.value=!0,d(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=b):s.value>=D-Y?d():f()},b=D=>{D.stopPropagation(),C()},E=()=>{o(),v(),s.value=null,c.value=null,g()},C=()=>{v(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},S=()=>{a.value?C():E()},_=()=>{C()},T=()=>{a.value?C():f()};return l.onMounted(()=>{const D=document.getElementById("session-time-out-modal");D&&D.addEventListener("hidden.bs.modal",S),v(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:T}},y3=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}=v3(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}`),u=l.computed(()=>e.hideCancelButton||n.value),d=l.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(l.openBlock(),l.createBlock(xn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":u.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":d.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"]))}}),b3={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=Bo(n.modalId);let i=l.ref(null);e({Confirm:()=>Uw(this,void 0,void 0,function*(){return o(),new Promise(u=>i.value=u)})});const c=()=>{r(),i.value(!0)},a=()=>i.value(!1);return(u,d)=>(l.openBlock(),l.createBlock(xn,{id:n.modalId,title:n.modalTitle,"submit-button-title":n.submitButtonText,"close-button-title":n.cancelButtonText,"hide-close-button":!0,size:"md",onSubmit:c,onCancel:a},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},C3={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Ot(),r=l.ref(!1),o=l.ref(!1),i=e,s=()=>i("update:isConcluded",r.value),c=()=>i("update:isUnread",o.value);return(a,u)=>(l.openBlock(),l.createBlock(xn,{id:"assign-conversation-modal",title:l.unref(n)("assignConversationModal.title"),submitButtonTitle:l.unref(n)("assignConversationModal.submitButton")},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"body"),l.createVNode(Cs,null,{default:l.withCtx(()=>[l.createVNode(Pr,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),onChange:s},{default:l.withCtx(()=>[l.createElementVNode("span",null,l.toDisplayString(l.unref(n)("assignConversationModal.conclude")),1),l.withDirectives((l.openBlock(),l.createBlock(Re,{variant:"placeholder",class:"btn-tooltip",title:l.unref(n)("assignConversationModal.concludeTooltip")},{default:l.withCtx(()=>[l.createVNode(Ur)]),_:1},8,["title"])),[[l.unref(Po)]])]),_:1},8,["modelValue"])]),_:1}),l.createVNode(Cs,null,{default:l.withCtx(()=>[l.createVNode(Pr,{modelValue:o.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o.value=d),onChange:c},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),l.renderSlot(a.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},E3=l.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const{closeModal:n}=Bo("attachment-upload-modal"),{t:r}=Ot(),o=t,i=e,s=()=>{i("on-submit",a.value),a.value=[],n()},c=()=>{i("cancel"),a.value=[]},a=l.ref([]),u=l.computed(()=>r("attachmentUploadModal.title")),d=l.computed(()=>r("attachmentUploadModal.submitButton")),f=l.computed(()=>r("attachmentUploadModal.infoMessage")),h=l.computed(()=>r("attachmentUploadModal.addAttachmentButton")),p=l.computed(()=>r("attachmentUploadModal.errorMessage")),m=l.computed(()=>r("attachmentUploadModal.fileTooBigErrorMessage")),g=l.computed(()=>r("attachmentUploadModal.fileSizeExceededMessage"));return(v,y)=>(l.openBlock(),l.createBlock(xn,{id:"attachment-upload-modal",title:u.value,"submit-button-title":d.value,onSubmit:s,onCancel:c},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createVNode(yf,{modelValue:a.value,"onUpdate:modelValue":y[0]||(y[0]=b=>a.value=b),"button-text":h.value,"error-message":p.value,multiple:!0,"file-size-exceeded-message":m.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:o.dropzoneUrl,tag:"div",token:o.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),l.createElementVNode("p",null,l.toDisplayString(g.value),1),l.renderSlot(v.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var $R=Object.defineProperty,FR=Object.defineProperties,zR=Object.getOwnPropertyDescriptors,g0=Object.getOwnPropertySymbols,UR=Object.prototype.hasOwnProperty,HR=Object.prototype.propertyIsEnumerable,v0=(t,e,n)=>e in t?$R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ho=(t,e)=>{for(var n in e||(e={}))UR.call(e,n)&&v0(t,n,e[n]);if(g0)for(var n of g0(e))HR.call(e,n)&&v0(t,n,e[n]);return t},y0=(t,e)=>FR(t,zR(e));const jR={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}}}},WR={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}}},KR={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}}},kh=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},YR={},GR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},QR=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),ZR=[QR];function JR(t,e){return l.openBlock(),l.createElementBlock("svg",GR,ZR)}const XR=kh(YR,[["render",JR]]),qR={},eV={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},tV=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),nV=[tV];function rV(t,e){return l.openBlock(),l.createElementBlock("svg",eV,nV)}const oV=kh(qR,[["render",rV]]),b0={Deselect:XR,OpenIndicator:oV},iV={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 sV(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let aV=0;function lV(){return++aV}const cV={components:Ho({},b0),directives:{appendToBody:iV},mixins:[jR,WR,KR],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)}.
1302
+ 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:sV(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.
1303
+ 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:()=>lV()}},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:Ho({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:y0(Ho({},t),{deselect:this.deselect}),footer:y0(Ho({},t),{deselect:this.deselect})}},childComponents(){return Ho(Ho({},b0),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)}}},uV=["dir"],dV=["id","aria-expanded","aria-owns"],fV={ref:"selectedOptions",class:"vs__selected-options"},hV=["disabled","title","aria-label","onClick"],pV={ref:"actions",class:"vs__actions"},mV=["disabled"],gV={class:"vs__spinner"},vV=["id"],yV=["id","aria-selected","onMouseover","onClick"],bV={key:0,class:"vs__no-options"},CV=l.createTextVNode(" Sorry, no matching options. "),EV=["id"];function kV(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",fV,[(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:u=>o.deselectButtons[a]=u,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:u=>i.deselect(c)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.childComponents.Deselect)))],8,hV)):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",pV,[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,mV),[[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",gV,"Loading...",512),[[l.vShow,t.mutableLoading]])])],512)],40,dV),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:u=>n.selectable(c)?t.typeAheadPointer=a:null,onClick:l.withModifiers(u=>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,yV))),128)),i.filteredOptions.length===0?(l.openBlock(),l.createElementBlock("li",bV,[l.renderSlot(t.$slots,"no-options",l.normalizeProps(l.guardReactiveProps(i.scope.noOptions)),()=>[CV])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"list-footer",l.normalizeProps(l.guardReactiveProps(i.scope.listFooter)))],40,vV)),[[s]]):(l.openBlock(),l.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,EV))]),_:3},8,["name"]),l.renderSlot(t.$slots,"footer",l.normalizeProps(l.guardReactiveProps(i.scope.footer)))],10,uV)}const wV=kh(cV,[["render",kV]]),SV=t=>typeof t=="number",AV=12,xV=["textContent"],TV=["textContent"],IV={key:0,class:"content-library-card__body"},_V=["textContent"],NV={key:1},Ec=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{t:n}=Ot(),r=t,o=e,i=l.computed(()=>`Open ${r.provider} in nieuw venster`),s=()=>{o("on-insert",r.itemId)},c=()=>{window.open(r.uri,"_blank","noopener,noreferrer")};return(a,u)=>(l.openBlock(),l.createElementBlock("article",{class:l.normalizeClass(["content-library-card",r.cardClass])},[l.createElementVNode("header",null,[l.renderSlot(a.$slots,"header",{},()=>[l.createElementVNode("h6",{textContent:l.toDisplayString(r.title)},null,8,xV),r.subtitle?(l.openBlock(),l.createElementBlock("small",{key:0,textContent:l.toDisplayString(r.subtitle)},null,8,TV)):l.createCommentVNode("",!0)])]),r.showBody?(l.openBlock(),l.createElementBlock("div",IV,[l.renderSlot(a.$slots,"default",{},()=>[l.createElementVNode("p",{textContent:l.toDisplayString(r.description),class:"content-library-card__description"},null,8,_V)])])):l.createCommentVNode("",!0),r.showFooter?(l.openBlock(),l.createElementBlock("footer",NV,[l.renderSlot(a.$slots,"footer",{},()=>[l.createVNode(Re,{variant:"secondary",onClick:s},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCard.insert")),1)]),_:1}),l.createVNode(Re,{title:i.value,variant:"icon",onClick:c},{default:l.withCtx(()=>[l.createVNode(Hd)]),_:1},8,["title"])])])):l.createCommentVNode("",!0)],2))}}),OV=l.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(l.openBlock(),l.createBlock(Ec,l.normalizeProps(l.guardReactiveProps(t.item)),null,16))}}),MV={class:"content-library-card-image__titles"},LV=["textContent"],DV=["textContent"],PV=["src"],BV=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(Ec,l.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:l.withCtx(()=>[l.createElementVNode("div",MV,[l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,LV),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.subtitle)},null,8,DV)]),l.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,PV)]),_:1},16))}}),RV=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(Ec,l.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),k3=t=>t.replace(/<\/?[^>]+(>|$)/g,Ie),w3=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),VV=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),$V={class:"content-library-card-message-template__tag"},FV=["textContent"],zV=["textContent"],UV=["textContent"],HV=["id"],jV=["innerHTML"],WV={class:"collapsed-hide"},KV={class:"collapsed-show"},YV={key:2,class:"edit-btn-group"},GV={key:3,class:"attachment-occurence"},QV={class:"number-icon"},ZV=l.defineComponent({__name:"BDContentLibraryCardMessageTemplate",props:{item:{type:Object,required:!0},variant:{type:String,default:"insert",validator(t){return["insert","edit","shared"].includes(t)}},apiUrl:{type:String,default:""}},emits:["on-insert","show-attachment","on-change","delete"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.ref(null),s=l.ref(!1),c=l.ref(!1),a=l.computed(()=>`collapse-preview-${r.item.itemId}`),u=l.computed(()=>wv(r.item.files)?null:r.item.files.length),d=l.computed(()=>r.variant==="insert"),f=l.computed(()=>r.variant==="edit"),h=l.computed(()=>r.variant==="shared"),p=l.computed(()=>c.value?Ie:"content-library-card-not-collapsable"),m=l.computed(()=>r.item.text?VV(r.item.text):Ie),g=l.computed(()=>Io(r.apiUrl,r.item.files,!1)),v=l.computed(()=>Io(r.apiUrl,r.item.files,!0)),y=()=>{i.value&&(c.value=s.value||i.value.scrollHeight>i.value.clientHeight||r.item.files&&r.item.files.length>0)},b=()=>{o("on-insert",r.item.itemId)},E=_=>{o("show-attachment",_)},C=()=>{o("on-change",r.item.itemId)},S=()=>{o("delete",r.item.itemId)};return l.watch(()=>r.item,()=>{i.value&&l.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),l.onMounted(()=>{l.nextTick(()=>{y()})}),(_,T)=>(l.openBlock(),l.createBlock(Ec,l.mergeProps(t.item,{cardClass:`content-library-card-message-template ${p.value}`,onOnInsert:b}),{header:l.withCtx(()=>[l.createElementVNode("div",$V,[l.createElementVNode("span",{textContent:l.toDisplayString(t.item.category)},null,8,FV)]),l.createElementVNode("h6",{textContent:l.toDisplayString(t.item.title)},null,8,zV),l.createElementVNode("small",{textContent:l.toDisplayString(t.item.practitionerName)},null,8,UV)]),footer:l.withCtx(()=>[d.value?(l.openBlock(),l.createBlock(Re,{key:0,variant:"secondary",onClick:b},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):l.createCommentVNode("",!0),h.value?l.withDirectives((l.openBlock(),l.createBlock(Re,{key:1,variant:"icon",title:l.unref(n)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:l.withCtx(()=>[l.createVNode(Wd)]),_:1},8,["title"])),[[l.unref(Po)]]):l.createCommentVNode("",!0),f.value?(l.openBlock(),l.createElementBlock("div",YV,[l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:C},{default:l.withCtx(()=>[l.createVNode(Ud)]),_:1},8,["title"]),l.createVNode(Re,{title:l.unref(n)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:S},{default:l.withCtx(()=>[l.createVNode(Fd)]),_:1},8,["title"])])):l.createCommentVNode("",!0),u.value?(l.openBlock(),l.createElementBlock("div",GV,[l.createVNode(Dr),l.createElementVNode("div",QV,l.toDisplayString(u.value),1)])):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.createElementVNode("div",{id:a.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:i},[l.createElementVNode("p",{class:"message-text",innerHTML:m.value},null,8,jV),t.item.files?(l.openBlock(),l.createBlock(Hs,{key:0,"no-download":!0,files:g.value},null,8,["files"])):l.createCommentVNode("",!0),t.item.files?(l.openBlock(),l.createBlock(js,{key:1,"no-download":!0,files:v.value,onShow:E},null,8,["files"])):l.createCommentVNode("",!0)],8,HV),c.value?(l.openBlock(),l.createBlock(Re,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${a.value}`},{default:l.withCtx(()=>[l.createElementVNode("span",WV,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseOpen")),1),l.createElementVNode("span",KV,l.toDisplayString(l.unref(n)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):l.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),JV={class:"content-library-overview"},XV={__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{t:n}=Ot(),r={BDContentLibraryCardBasic:OV,BDContentLibraryCardImage:BV,BDContentLibraryCardTitle:RV,BDContentLibraryCardMessageTemplate:ZV},o=t,i=e,s=l.computed(()=>wv(o.items)),c=l.computed(()=>Math.floor(AV/o.cols)),a=h=>{i("on-insert",h)},u=h=>{i("on-change",h)},d=h=>{i("delete",h)},f=h=>{i("show-attachment",h)};return(h,p)=>(l.openBlock(),l.createElementBlock("div",JV,[l.createVNode(bn,null,{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(It,{key:0,sm:12},{default:l.withCtx(()=>[l.createVNode(Eo,{show:""},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.items,m=>(l.openBlock(),l.createBlock(It,{class:"card-container",key:m.itemId,sm:12,md:6,lg:c.value},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(r[m.componentToRender]),l.mergeProps({ref_for:!0},m,{item:m,onOnInsert:a,onOnChange:u,onDelete:d,onShowAttachment:f}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},qV=me(XV,[["__scopeId","data-v-de8a1bfb"]]),e$={class:"content-library-template"},t$={class:"number-of-messages"},n$=["src"],r$=["src"],o$=["id"],i$={class:"collapse-button-container"},s$={class:"collapsed-show"},a$={class:"collapsed-hide"},wh=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{t:n}=Ot(),r=t,o=e,i=l.ref(r.modelValue);l.watch(()=>r.modelValue,F=>{i.value=F},{immediate:!0,deep:!0});const s=l.computed(()=>r.modelValue?.provider?.SupportsSearch?n("contentLibraryTemplate.searchPlaceholderSearch"):n("contentLibraryTemplate.searchPlaceholder")),c=l.computed(()=>Rc(r.providerSelectOptions)&&r.providerSelectOptions.length>1),a=l.computed(()=>r.provider&&Rc(r.provider.items)?r.provider.items:[]),u=l.computed(()=>r.provider&&Rc(r.provider.filters)),d=l.computed(()=>{let F=0;return r.provider&&SV(r.provider.totalNumber)&&(F=r.provider.totalNumber),F===1?`${F} ${n("contentLibraryTemplate.message")}`:`${F} ${n("contentLibraryTemplate.messages")}`}),f=l.computed(()=>r.provider&&r.provider.pageSize&&r.provider.totalNumber&&r.provider.pageSize<=r.provider.totalNumber),h=l.computed(()=>r.provider&&r.provider.totalNumber?r.provider.totalNumber:0),p=l.computed(()=>u.value?9:12),m=l.computed(()=>r.provider&&!u.value?3:2),g=l.computed(()=>r.showAddButton||c.value),v=l.computed(()=>({md:3,lg:3})),y=l.computed(()=>({md:9,lg:9})),b=l.computed(()=>({sm:12,md:12,lg:c.value?7:8,"offset-lg":g.value?0:3,"offset-md":g.value?0:3})),E=l.computed(()=>({sm:12,md:g.value?6:3,lg:c.value?5:4})),C=F=>F.replace(/\s/g,"-"),S=()=>{o("create")},_=F=>{o("on-insert",F)},T=F=>{o("on-change",F)},D=F=>{o("delete",F)},Y=()=>{o("update","category")},V=()=>{i.value.currentPage=1,o("on-input",i.value)},H=()=>{o("on-input",i.value)},j=F=>{o("show-attachment",F)},K=F=>{o("provider-changed",F.value)};return(F,z)=>(l.openBlock(),l.createElementBlock("div",e$,[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(v.value,{class:"content-library-header content-library-header__messages"}),{default:l.withCtx(()=>[l.createElementVNode("span",t$,l.toDisplayString(d.value),1),t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,class:"d-md-none",onClick:S},{default:l.withCtx(()=>[l.createVNode(Ha),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16),l.createVNode(It,l.mergeProps(y.value,{class:"content-library-header"}),{default:l.withCtx(()=>[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,l.mergeProps(b.value,{class:"search-block"}),{default:l.withCtx(()=>[l.createVNode(Ir,{type:"text",modelValue:i.value.searchTerm,"onUpdate:modelValue":z[0]||(z[0]=$=>i.value.searchTerm=$),placeholder:s.value,delayTimeMs:500,class:"search-input",onInput:V,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),t.showAddButton?(l.openBlock(),l.createBlock(It,l.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:l.withCtx(()=>[t.showAddButton?(l.openBlock(),l.createBlock(Re,{key:0,onClick:S},{default:l.withCtx(()=>[l.createVNode(Ha),l.createTextVNode(" "+l.toDisplayString(l.unref(n)("contentLibraryTemplate.newMessageText")),1)]),_:1})):l.createCommentVNode("",!0)]),_:1},16)):l.createCommentVNode("",!0),c.value?(l.openBlock(),l.createBlock(It,l.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:l.withCtx(()=>[l.createVNode(l.unref(wV),{modelValue:i.value.provider,"onUpdate:modelValue":z[1]||(z[1]=$=>i.value.provider=$),options:t.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":K},{"open-indicator":l.withCtx(({attributes:$})=>[l.createElementVNode("span",l.normalizeProps(l.guardReactiveProps($)),[l.createVNode(Hl)],16)]),option:l.withCtx(({icon:$,label:J,img:U})=>[$?(l.openBlock(),l.createBlock(l.resolveDynamicComponent($),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,n$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),"selected-option":l.withCtx(({icon:$,label:J,img:U})=>[$?(l.openBlock(),l.createBlock(l.resolveDynamicComponent($),{key:0})):l.createCommentVNode("",!0),U?(l.openBlock(),l.createElementBlock("img",{key:1,src:U},null,8,r$)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(J),1)]),_:1},8,["modelValue","options"])]),_:1},16)):l.createCommentVNode("",!0)]),_:1})]),_:1},16),u.value?(l.openBlock(),l.createBlock(It,{key:0,md:12,lg:3,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(tf,{title:"Filter","show-on":"md","collapse-on":"md"},{body:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.provider.filters,($,J)=>(l.openBlock(),l.createBlock(Cs,{key:$.label,label:$.label},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList($.options,(U,q)=>(l.openBlock(),l.createBlock(Pr,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":z[2]||(z[2]=te=>i.value.selectedFilters=te),key:q,value:`${$.id}-${U.item}`,onChange:V},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128)),$.moreOptions?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",{id:`collapse-${C($.label)}`,class:"collapse"},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList($.moreOptions,(U,q)=>(l.openBlock(),l.createBlock(Pr,{modelValue:i.value.selectedFilters,"onUpdate:modelValue":z[3]||(z[3]=te=>i.value.selectedFilters=te),key:q,value:`${$.id}-${U.item}`,onChange:V},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,o$),l.createElementVNode("div",i$,[l.createVNode(Re,{class:l.normalizeClass(["collapse-button collapsed",{"collapse-button-last":t.provider.filters.length-1===J}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${C($.label)}`},{default:l.withCtx(()=>[l.createVNode(Md,{class:"collapsed-show"}),l.createElementVNode("span",s$,l.toDisplayString(l.unref(n)("contentLibraryTemplate.more")),1),l.createVNode(Ld,{class:"collapsed-hide"}),l.createElementVNode("span",a$,l.toDisplayString(l.unref(n)("contentLibraryTemplate.less")),1)]),_:1},8,["class","data-bs-target"])])],64)):l.createCommentVNode("",!0),$.label==="Categorieën"&&t.editCategory?(l.openBlock(),l.createBlock(Re,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:Y},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(n)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):l.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(It,{md:12,lg:p.value,class:"content-library-body"},{default:l.withCtx(()=>[l.createVNode(qV,{items:a.value,cols:m.value,onOnInsert:_,onOnChange:T,onDelete:D,onShowAttachment:j},null,8,["items","cols"]),l.createVNode(bn,{class:"content-library-pagination"},{default:l.withCtx(()=>[f.value?(l.openBlock(),l.createBlock(mf,{key:0,modelValue:i.value.currentPage,"onUpdate:modelValue":z[4]||(z[4]=$=>i.value.currentPage=$),totalRows:h.value,rowsPerPage:t.provider.pageSize,onClick:H,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):l.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),S3={__name:"BDContentLibraryModal",props:{modelValue:{type:Object},provider:{type:Object},providerSelectOptions:{type:Array,default:()=>[]},visible:{type:Boolean,default:null},loading:{type:Boolean,default:!1}},emits:["on-insert","cancel","show-attachment","shown","provider-changed"],setup(t,{emit:e}){const{closeModal:n}=Bo("content-library-modal"),r=t,o=e,i=l.ref(r.modelValue),s=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.img)!==null&&g!==void 0?g:null}),c=l.computed(()=>{var p,m,g;return(g=(m=(p=r.modelValue)===null||p===void 0?void 0:p.provider)===null||m===void 0?void 0:m.label)!==null&&g!==void 0?g:Ie});l.watch(()=>r.modelValue,p=>{i.value=p},{immediate:!0,deep:!0});const a=p=>{n(),o("on-insert",p)},u=()=>{o("cancel")},d=p=>{o("show-attachment",p)},f=()=>{o("shown")},h=p=>{o("provider-changed",p)};return(p,m)=>(l.openBlock(),l.createBlock(xn,{id:"content-library-modal","title-image":s.value,title:c.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:u,onShown:f},{default:l.withCtx(()=>[l.createVNode(wh,{modelValue:i.value,"onUpdate:modelValue":m[0]||(m[0]=g=>i.value=g),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:a,onShowAttachment:d,onProviderChanged:h},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var l$=Object.defineProperty,c$=(t,e,n)=>e in t?l$(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,C0=(t,e,n)=>(c$(t,typeof e!="symbol"?e+"":e,n),n);class u${constructor(){C0(this,"seed",0),C0(this,"data",new Map)}id(){return Date.now().toString(26)+this.seed++}add(e,n=this.id()){return this.data.set(n,e),n}get(e){return this.data.get(e)}delete(e){this.delete(e)}}const d$="Failed to copy value to clipboard. Unknown type.",f$={asString(t){if(t==null)return console.warn("Clipboard input is empty"),"";if(typeof t!="string")try{return JSON.stringify(t)}catch(e){return console.warn(d$,e),""}return t}},h$="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",p$={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=h$,e}},ri={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await ri.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=p$.createTextarea(t);if(document.body.appendChild(e),navigator.userAgent.match(/ipad|ipod|iphone/i)){e.contentEditable="true",e.readOnly=!0;const r=document.createRange();r.selectNodeContents(e);const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(r),e.setSelectionRange(0,999999))}else e.select();const n=document.execCommand("copy");return document.body.removeChild(e),n},async copy(t){const e=typeof t=="function"?t():t,n=f$.asString(e);if(ri.writeClipboardExecCommand(n))return!0;await ri.writeClipboard(n)}};new u$;const{showSuccessToast:Sh}=Zs(),m$=(t,e,n)=>{const r=`${e}
1304
1304
  ${t.AfzenderNaam}: \r${t.Datum} \r${k3(w3(t.Tekst))}`;ri.copy(r).then(()=>Sh(n))},A3=(t,e,n)=>{const r=t.filter(i=>i.selected).map(i=>`${i.AfzenderNaam}: \r${i.Datum}\r${k3(w3(i.Tekst))}`).join(`
1305
1305
  -----------------------
1306
1306
  `),o=`${e}
1307
- ${r}`;ri.copy(o).then(()=>Sh(n))},f$=(t,e)=>{ri.copy(t).then(()=>Sh(e))},h$={class:"message-cloud-multi-select"},p$={class:"message-cloud-multi-select__body"},m$={class:"message-content"},g$={class:"message-cloud__header"},v$={class:"message-cloud__title"},y$={key:0},b$=["innerHTML"],x3=l.defineComponent({__name:"BDConversationToTextModal",props:{modelValue:{},extraClass:{}},setup(t){const{t:e}=$t(),n=t,r=l.ref([]),o=l.ref(!0);l.watchEffect(()=>{r.value=n.modelValue}),l.watch(()=>o.value,u=>{r.value.forEach(d=>d.selected=u)});const i=l.computed(()=>e("conversationToTextModal.systemMessage")),s=u=>{const d=u.IsTussentijdseMededeling?", ":"";if(u.AfzenderType===2&&u.AfzenderId!==u.BehandelaarId&&u.BehandelaarId!==null){const f=e("conversationToTextModal.onBehalfOf");return d+f+" "+u.BehandelaarNaam}return _e},c=u=>u.AfzenderType===2?"is-sender":"is-receiver",a=()=>{const u=e("conversationToTextModal.prefix"),d=e("conversationToTextModal.copySuccess");return A3(r.value,u,d)};return(u,d)=>(l.openBlock(),l.createBlock(xn,{id:"conversation-to-text-modal",title:"Tekst versie","modal-class":t.extraClass,"hide-footer":""},{default:l.withCtx(()=>[l.createVNode(Re,{variant:"primary",onClick:a},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(e)("conversationToTextModal.copyButton")),1)]),_:1}),l.createElementVNode("div",h$,[l.createVNode(Pr,{class:"select-all-checkbox",modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(e)("conversationToTextModal.selectAll")),1)]),_:1},8,["modelValue"]),l.createElementVNode("div",p$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(f,h)=>(l.openBlock(),l.createElementBlock("div",{class:"message-cloud-selector",key:h},[l.createVNode(Pr,{class:"select-all-checkbox",modelValue:f.selected,"onUpdate:modelValue":p=>f.selected=p},null,8,["modelValue","onUpdate:modelValue"]),l.createElementVNode("div",m$,[l.createElementVNode("div",{class:l.normalizeClass(["message",c(f)])},[l.createElementVNode("div",g$,[l.createElementVNode("div",v$,[l.createTextVNode(l.toDisplayString(f.AfzenderNaam)+" ",1),f.IsTussentijdseMededeling?(l.openBlock(),l.createElementBlock("span",y$,[l.createElementVNode("i",null,l.toDisplayString(i.value),1)])):l.createCommentVNode("",!0),l.createElementVNode("span",null,[l.createElementVNode("i",null,l.toDisplayString(s(f)),1)]),l.createElementVNode("span",null,l.toDisplayString(f.Datum),1)])]),l.createElementVNode("div",{class:"message-cloud__body",innerHTML:f.Tekst},null,8,b$)],2)])]))),128))])])]),_:1},8,["modal-class"]))}});function T3(){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 u=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");u&&(u.style.cursor="grabbing"),d&&(d.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const u=a.clientX-r.value.x,d=a.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-d,n.value.scrollLeft=r.value.left-u)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),u&&u.style&&(u.style.cursor="grab"),e.value=!1}}}const C$=["src","alt"],E$={key:0,class:"show-spinner"},k$={class:"spinner-border text-primary",role:"status"},w$=["textContent"],S$=["href"],I3=l.defineComponent({__name:"BDImageAttachmentModal",setup(t,{expose:e}){const{showModal:n}=Bo("image-attachment-modal"),{zoom:r,imageHolderRef:o,SetZoom:i,OnMouseDown:s,OnMouseMove:c,OnMouseUp:a}=T3(),{t:u}=$t(),d=l.ref(!0),f=l.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:_e,altName:_e,downloadUrl:_e,fullImageUrl:_e,previewUrl:_e}),h=l.computed(()=>u("imageAttachmentModal.download")),p=l.computed(()=>u("imageAttachmentModal.loading"));e({Show:y=>{f.value=y,r.value=0,n()}});const g=()=>{d.value=!1},v=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:_e,altName:_e,downloadUrl:_e,fullImageUrl:_e,previewUrl:_e}};return(y,b)=>(l.openBlock(),l.createBlock(xn,{id:"image-attachment-modal",class:l.normalizeClass(l.unref(_e)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:v},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:o,onMousedown:b[0]||(b[0]=(...E)=>l.unref(s)&&l.unref(s)(...E)),onMousemove:b[1]||(b[1]=(...E)=>l.unref(c)&&l.unref(c)(...E)),onMouseup:b[2]||(b[2]=(...E)=>l.unref(a)&&l.unref(a)(...E))},[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,C$)):l.createCommentVNode("",!0)],544),d.value?(l.openBlock(),l.createElementBlock("div",E$,[l.createElementVNode("div",k$,[l.createElementVNode("span",{class:"visually-hidden",textContent:l.toDisplayString(p.value)},null,8,w$)])])):l.createCommentVNode("",!0),l.createVNode(ef,{modelValue:l.unref(r),"onUpdate:modelValue":b[3]||(b[3]=E=>l.isRef(r)?r.value=E:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),l.createElementVNode("a",{href:f.value.downloadUrl},[l.createVNode(Re,{variant:"primary",class:"download-image",textContent:l.toDisplayString(h.value)},null,8,["textContent"])],8,S$)]),_:1},8,["class","title"]))}}),A$={key:0},x$={key:1},T$={key:2},I$={key:3},_$={key:1},N$={key:2},O$=["href"],_3=l.defineComponent({__name:"BDVideoCallConfirmationModal",props:["isMissingCameraPermission","isMissingMicrophonePermission","isMissingMobileActivation","isMissingVideoConferencingSupport","participantName","videoTestUrl"],emits:["confirmed"],setup(t,{emit:e}){const{t:n}=$t(),r=t,o=e,i=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,s=l.computed(()=>i()?n("videoCallConfirmationModal.close"):n("videoCallConfirmationModal.cancel")),c=l.computed(()=>`${r.participantName} ${n("videoCallConfirmationModal.noMobileActivationMessage")}`),a=l.computed(()=>`${r.participantName} ${n("videoCallConfirmationModal.noCompatibleDevices")}`),u=l.computed(()=>n("videoCallConfirmationModal.title")),d=l.computed(()=>n("videoCallConfirmationModal.ok")),f=l.computed(()=>n("videoCallConfirmationModal.generalWarning")),h=l.computed(()=>n("videoCallConfirmationModal.cameraPermissionMissing")),p=l.computed(()=>n("videoCallConfirmationModal.microphonePermissionMissing")),m=l.computed(()=>n("videoCallConfirmationModal.message")),g=l.computed(()=>n("videoCallConfirmationModal.participantMessage")),v=l.computed(()=>n("videoCallConfirmationModal.testMessage")),y=l.computed(()=>n("videoCallConfirmationModal.helpMessage")),b=()=>o("confirmed");return(E,C)=>(l.openBlock(),l.createBlock(xn,{id:"video-call-confirmation-modal",title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":i(),onSubmit:b},{default:l.withCtx(()=>[i()?(l.openBlock(),l.createBlock(Eo,{key:0,variant:"warning"},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createElementVNode("ul",null,[r.isMissingCameraPermission?(l.openBlock(),l.createElementBlock("li",A$,l.toDisplayString(h.value),1)):l.createCommentVNode("",!0),r.isMissingMicrophonePermission?(l.openBlock(),l.createElementBlock("li",x$,l.toDisplayString(p.value),1)):l.createCommentVNode("",!0),r.isMissingMobileActivation?(l.openBlock(),l.createElementBlock("li",T$,l.toDisplayString(c.value),1)):l.createCommentVNode("",!0),r.isMissingVideoConferencingSupport?(l.openBlock(),l.createElementBlock("li",I$,l.toDisplayString(a.value),1)):l.createCommentVNode("",!0)])]),_:1})):r.participantName?(l.openBlock(),l.createElementBlock("p",_$,[l.createTextVNode(l.toDisplayString(g.value)+" ",1),l.createElementVNode("b",null,l.toDisplayString(r.participantName),1),C[0]||(C[0]=l.createTextVNode("?",-1))])):(l.openBlock(),l.createElementBlock("p",N$,l.toDisplayString(m.value),1)),l.createElementVNode("p",null,[l.createElementVNode("a",{href:r.videoTestUrl,target:"blank",rel:"noopener noreferrer"},l.toDisplayString(v.value),9,O$),l.createElementVNode("span",null," "+l.toDisplayString(y.value),1)])]),_:1},8,["title","submit-button-title","close-button-title","hide-footer-submit-button"]))}}),N3=()=>({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}}),M$={class:"template change-password-template"},L$={class:"template-title"},D$={key:0},P$={key:1},B$={class:"bd-form-field"},R$={class:"bd-form-field"},V$={class:"bd-form-field"},$$={class:"bd-form-buttons"},O3=l.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const{showDangerToast:e,showSuccessToast:n}=Zs(),{errorMessages:r,errorMessageText:o,MapServerErrors:i,ResetServerErrors:s}=Eh(null),{ValidationObjectIsValid:c}=N3(),a=t;let u=l.ref({password:_e,passwordNew:_e,passwordRepeat:_e}),d=l.ref({password:{state:null,errorLabel:_e},passwordNew:{state:null,errorLabel:_e},passwordRepeat:{state:null,errorLabel:_e}});const f=()=>{if(!h())return;const g=a.submitPassword(u.value);g&&g.then(()=>{n(a.successText),p()}).catch(v=>{e(a.failureText),i(v)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(u.value.passwordNew&&!m.test(u.value.passwordNew))d.value.passwordNew.state=!1,d.value.passwordNew.errorLabel=a.minimalRequirementsText;else{const g=u.value.passwordRepeat===u.value.passwordNew,v=g?a.requiredText:a.incompatibleText;d.value.passwordNew.state=u.value.passwordNew!==_e&&g?null:!1,d.value.passwordNew.errorLabel=v,d.value.passwordRepeat.state=u.value.passwordRepeat!==_e&&g?null:!1,d.value.passwordRepeat.errorLabel=v}return d.value.password.state=u.value.password!==_e?null:!1,d.value.password.errorLabel=d.value.password.state?_e:a.requiredText,c(d.value)},p=()=>{u.value.password=_e,u.value.passwordNew=_e,u.value.passwordRepeat=_e,d.value.password.state=null,d.value.passwordNew.state=null,d.value.passwordRepeat.state=null,s()};return(m,g)=>(l.openBlock(),l.createElementBlock("main",M$,[l.createVNode(rs,{class:"container-xl"},{default:l.withCtx(()=>[l.createVNode(bn,{class:"justify-content-md-center template-header"},{default:l.withCtx(()=>[l.createVNode(It,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createElementVNode("h1",L$,l.toDisplayString(a.templateTitle),1)]),_:1})]),_:1}),l.createVNode(bn,{class:"justify-content-md-center"},{default:l.withCtx(()=>[l.createVNode(It,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createVNode(Gl,{class:"bd-card-template","no-header":!0},{body:l.withCtx(()=>[l.createVNode(rs,{class:"container-fluid"},{default:l.withCtx(()=>[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,null,{default:l.withCtx(()=>[l.createVNode(Eo,{variant:"warning"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.alertText),1)]),_:1})]),_:1})]),_:1}),l.unref(r)||l.unref(o)?(l.openBlock(),l.createBlock(bn,{key:0},{default:l.withCtx(()=>[l.createVNode(It,null,{default:l.withCtx(()=>[l.createVNode(Eo,{variant:"danger"},{default:l.withCtx(()=>[l.unref(r)?(l.openBlock(),l.createElementBlock("div",D$,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(r),(v,y)=>(l.openBlock(),l.createElementBlock("li",{key:y},[l.createVNode(Ur),l.createElementVNode("span",null,l.toDisplayString(v),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",P$,l.toDisplayString(l.unref(o)),1))]),_:1})]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,{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",B$,[l.createVNode(Ir,{modelValue:l.unref(u).password,"onUpdate:modelValue":g[0]||(g[0]=v=>l.unref(u).password=v),label:t.currentPasswordLabel,state:l.unref(d).password.state,type:"password","invalid-feedback-text":l.unref(d).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",R$,[l.createVNode(Ir,{modelValue:l.unref(u).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=v=>l.unref(u).passwordNew=v),label:t.newPasswordLabel,state:l.unref(d).passwordNew.state,type:"password","invalid-feedback-text":l.unref(d).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",V$,[l.createVNode(Ir,{modelValue:l.unref(u).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=v=>l.unref(u).passwordRepeat=v),label:t.confirmNewPasswordLabel,state:l.unref(d).passwordRepeat.state,type:"password","invalid-feedback-text":l.unref(d).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",$$,[l.createVNode(Re,{type:"submit"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.submitButtonText),1)]),_:1}),l.createVNode(Re,{type:"reset",variant:"link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),F$={class:"template not-found-template"},z$={class:"center-screen"},U$={class:"container-warning"},H$=["textContent"],j$=["textContent"],M3=l.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const{t:n}=$t(),r=t,o=e,i=l.computed(()=>r.buttonText||n("notFoundTemplate.buttonDefault")),s=l.computed(()=>n("notFoundTemplate.title")),c=l.computed(()=>n("notFoundTemplate.description")),a=()=>o("navigate");return(u,d)=>(l.openBlock(),l.createElementBlock("main",F$,[l.createVNode(rs,{class:"container-xl"},{default:l.withCtx(()=>[l.createElementVNode("div",z$,[l.createElementVNode("div",U$,[l.createVNode(Xd),l.createElementVNode("h5",{textContent:l.toDisplayString(s.value)},null,8,H$),l.createElementVNode("p",{textContent:l.toDisplayString(c.value)},null,8,j$),l.createVNode(Re,{onClick:a,variant:"primary",type:"button",textContent:l.toDisplayString(i.value)},null,8,["textContent"])])])]),_:1})]))}}),W$=t=>{const e=/<a\b[^>]*>.*?<\/a>/gi,n=[];let r;for(;(r=e.exec(t))!==null;)n.push({start:r.index,end:r.index+r[0].length});const o=/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g;return t.replace(o,(i,s,c)=>n.some(d=>c>=d.start&&c<d.end)?i:`<a href="${i.startsWith("www.")?`http://${i}`:i}" target="_blank" rel="noopener noreferrer">${i}</a>`)},K$=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,Y$=t=>t.startsWith("http://")||t.startsWith("https://"),G$={install:t=>{t.component("BDAlert",Eo),t.component("BDArticle",kv),t.component("BDAssignConversationModal",C3),t.component("BDAttachmentPreviewList",Hs),t.component("BDAttachmentUploadModal",E3),t.component("BDBadge",bv),t.component("BDButton",Re),t.component("BDCard",Gl),t.component("BDChangePasswordTemplate",O3),t.component("BDChatCloud",d3),t.component("BDCol",It),t.component("BDCollapsableCard",tf),t.component("BDConfirmationModal",b3),t.component("BDContentLibraryModal",S3),t.component("BDConversationToTextModal",x3),t.component("BDContentLibrarySplitButton",gv),t.component("BDContentLibraryTemplate",wh),t.component("BDContainer",rs),t.component("BDDropdown",yh),t.component("BDDropdownItem",Za),t.component("BDDropzone",yf),t.component("BDForm",Cv),t.component("BDFormCheckbox",Pr),t.component("BDFormInput",Ir),t.component("BDFormInvalidFeedback",ql),t.component("BDFormSelect",Ev),t.component("BDHeader",bh),t.component("BDImageAttachmentModal",I3),t.component("BDImageAttachmentPreviewList",js),t.component("BDInputGroup",Cs),t.component("BDLink",Co),t.component("BDLogo",Od),t.component("BDMarkdownEditor",c3),t.component("BDMobileMenu",vh),t.component("BDModal",xn),t.component("BDNotFoundTemplate",M3),t.component("BDPagination",mf),t.component("BDPhoneNumberEditModal",g3),t.component("BDPill",ec),t.component("BDPractitionerHeader",m3),t.component("BDProfileImage",Bs),t.component("BDRow",bn),t.component("BDSessionTimeOutModal",y3),t.component("BDTable",f3),t.component("BDToast",gf),t.component("BDUser",u3),t.component("BDUserInformation",vf),t.component("BDVideoCallConfirmationModal",_3),t.component("BDVideoCallToast",h3),t.component("BDZoomslider",ef),t.component("BDDate",Tv),t.component("IconAcademy",za),t.component("IconArrowDown",Md),t.component("IconArrowUp",Ld),t.component("IconAttachment",Dr),t.component("IconBold",Dd),t.component("IconBulletList",Pd),t.component("IconCalendar",E0),t.component("IconCall",Ua),t.component("IconCallReject",Bd),t.component("IconCardView",k0),t.component("IconCaretDown",Hl),t.component("IconCaretLeft",Rd),t.component("IconCaretRight",Vd),t.component("IconCheck",gi),t.component("IconClipboard",w0),t.component("IconClose",jl),t.component("IconComment",$d),t.component("IconCommentActive",S0),t.component("IconCommonFileEmpty",x0),t.component("IconCommonFileWarning",T0),t.component("IconCommentStatic",A0),t.component("IconContactPerson",I0),t.component("IconCopy",_0),t.component("IconDelete",Fd),t.component("IconDoubleCheck",N0),t.component("IconDownloadImage",zd),t.component("IconEdit",Ud),t.component("IconEndCall",O0),t.component("IconError",Wl),t.component("IconExternal",Hd),t.component("IconEyeShow",M0),t.component("IconEyeSlash",L0),t.component("IconFile",jd),t.component("IconFileAdded",D0),t.component("IconForward",P0),t.component("IconHix",B0),t.component("IconHyperlink",Kl),t.component("IconImageFileLandscape",R0),t.component("IconImageFileWarning",V0),t.component("IconInbox",$0),t.component("IconInfo",Ur),t.component("IconInformationCircle",Wd),t.component("IconItalic",Kd),t.component("IconListView",F0),t.component("IconLock",z0),t.component("IconLusciiEscalated",U0),t.component("IconLusciiLogo",H0),t.component("IconLusciiOpen",j0),t.component("IconLusciiPriorityHigh",W0),t.component("IconLusciiPriorityLow",K0),t.component("IconLusciiPriorityMedium",Y0),t.component("IconMenu",Yd),t.component("IconMessage",G0),t.component("IconMessageForward",Q0),t.component("IconMicrophoneSlash",Z0),t.component("IconMicrosoftTeams",J0),t.component("IconMin",X0),t.component("IconOrderedList",Gd),t.component("IconPlus",Ha),t.component("IconRefresh",q0),t.component("IconRemove",Ps),t.component("IconSananetLogo",eg),t.component("IconService",tg),t.component("IconShareScreen",ng),t.component("IconSingleNeutral",rg),t.component("IconSort",og),t.component("IconSortAsc",Qd),t.component("IconSortDesc",Zd),t.component("IconSortNone",Jd),t.component("IconTriangleDown",ig),t.component("IconTriangleExclamation",Xd),t.component("IconUnderline",qd),t.component("IconVideoDisabled",ag),t.component("IconVideocall",sg),t.component("IconWarning",lg),t.component("IconZorgkaart",cg),t.directive("vBDTooltip",Po)}};exports.BDAlert=Eo;exports.BDArticle=kv;exports.BDAssignConversationModal=C3;exports.BDAttachmentPreviewList=Hs;exports.BDAttachmentUploadModal=E3;exports.BDBadge=bv;exports.BDButton=Re;exports.BDCard=Gl;exports.BDChangePasswordTemplate=O3;exports.BDChatCloud=d3;exports.BDCol=It;exports.BDCollapsableCard=tf;exports.BDConfirmationModal=b3;exports.BDContainer=rs;exports.BDContentLibraryModal=S3;exports.BDContentLibrarySplitButton=gv;exports.BDContentLibraryTemplate=wh;exports.BDConversationToTextModal=x3;exports.BDDate=Tv;exports.BDDropdown=yh;exports.BDDropdownItem=Za;exports.BDDropzone=yf;exports.BDForm=Cv;exports.BDFormCheckbox=Pr;exports.BDFormInput=Ir;exports.BDFormInvalidFeedback=ql;exports.BDFormSelect=Ev;exports.BDHeader=bh;exports.BDImageAttachmentModal=I3;exports.BDImageAttachmentPreviewList=js;exports.BDInputGroup=Cs;exports.BDLink=Co;exports.BDLogo=Od;exports.BDMarkdownEditor=c3;exports.BDMobileMenu=vh;exports.BDModal=xn;exports.BDNotFoundTemplate=M3;exports.BDPagination=mf;exports.BDPhoneNumberEditModal=g3;exports.BDPill=ec;exports.BDPractitionerHeader=m3;exports.BDProfileImage=Bs;exports.BDRow=bn;exports.BDSessionTimeOutModal=y3;exports.BDTable=f3;exports.BDToast=gf;exports.BDUser=u3;exports.BDUserInformation=vf;exports.BDVideoCallConfirmationModal=_3;exports.BDVideoCallToast=h3;exports.BDZoomslider=ef;exports.CopyChatMessageToClipboard=d$;exports.CopyChatMessagesToClipboard=A3;exports.CopyHl7MessagesToClipboard=f$;exports.CreateHyperlinkParagraph=K$;exports.CreateThumbnailUri=ry;exports.IconAcademy=za;exports.IconArrowDown=Md;exports.IconArrowUp=Ld;exports.IconAttachment=Dr;exports.IconBold=Dd;exports.IconBulletList=Pd;exports.IconCalendar=E0;exports.IconCall=Ua;exports.IconCallReject=Bd;exports.IconCardView=k0;exports.IconCaretDown=Hl;exports.IconCaretLeft=Rd;exports.IconCaretRight=Vd;exports.IconCheck=gi;exports.IconClipboard=w0;exports.IconClose=jl;exports.IconComment=$d;exports.IconCommentActive=S0;exports.IconCommentStatic=A0;exports.IconCommonFileEmpty=x0;exports.IconCommonFileWarning=T0;exports.IconContactPerson=I0;exports.IconCopy=_0;exports.IconDelete=Fd;exports.IconDoubleCheck=N0;exports.IconDownloadImage=zd;exports.IconEdit=Ud;exports.IconEndCall=O0;exports.IconError=Wl;exports.IconExternal=Hd;exports.IconEyeShow=M0;exports.IconEyeSlash=L0;exports.IconFile=jd;exports.IconFileAdded=D0;exports.IconForward=P0;exports.IconHix=B0;exports.IconHyperlink=Kl;exports.IconImageFileLandscape=R0;exports.IconImageFileWarning=V0;exports.IconInbox=$0;exports.IconInfo=Ur;exports.IconInformationCircle=Wd;exports.IconItalic=Kd;exports.IconListView=F0;exports.IconLock=z0;exports.IconLusciiEscalated=U0;exports.IconLusciiLogo=H0;exports.IconLusciiOpen=j0;exports.IconLusciiPriorityHigh=W0;exports.IconLusciiPriorityLow=K0;exports.IconLusciiPriorityMedium=Y0;exports.IconMenu=Yd;exports.IconMessage=G0;exports.IconMessageForward=Q0;exports.IconMicrophoneSlash=Z0;exports.IconMicrosoftTeams=J0;exports.IconMin=X0;exports.IconOrderedList=Gd;exports.IconPlus=Ha;exports.IconRefresh=q0;exports.IconRemove=Ps;exports.IconSananetLogo=eg;exports.IconService=tg;exports.IconShareScreen=ng;exports.IconSingleNeutral=rg;exports.IconSort=og;exports.IconSortAsc=Qd;exports.IconSortDesc=Zd;exports.IconSortNone=Jd;exports.IconTriangleDown=ig;exports.IconTriangleExclamation=Xd;exports.IconUnderline=qd;exports.IconVideoDisabled=ag;exports.IconVideocall=sg;exports.IconWarning=lg;exports.IconZorgkaart=cg;exports.MapAttachmentsForApi=SO;exports.MapToAttachmentObjects=Io;exports.TransformHyperlinks=W$;exports.ValidateUrl=Y$;exports.default=G$;exports.getDisplayDateNumeric=Gu;exports.getDisplayDateTextual=Av;exports.getDisplayDateTimeNumeric=Yu;exports.getDisplayDateTimeTextual=xv;exports.useModal=Bo;exports.usePopover=p3;exports.useServerErrors=Eh;exports.useSessionTimeOut=v3;exports.useToaster=Zs;exports.useValidation=N3;exports.useWindow=Ch;exports.useZoom=T3;exports.vBdTooltip=Po;
1307
+ ${r}`;ri.copy(o).then(()=>Sh(n))},g$=(t,e)=>{ri.copy(t).then(()=>Sh(e))},v$={class:"message-cloud-multi-select"},y$={class:"message-cloud-multi-select__body"},b$={class:"message-content"},C$={class:"message-cloud__header"},E$={class:"message-cloud__title"},k$={key:0},w$=["innerHTML"],x3=l.defineComponent({__name:"BDConversationToTextModal",props:{modelValue:{},extraClass:{}},setup(t){const{t:e}=Ot(),n=t,r=l.ref([]),o=l.ref(!0);l.watchEffect(()=>{r.value=n.modelValue}),l.watch(()=>o.value,u=>{r.value.forEach(d=>d.selected=u)});const i=l.computed(()=>e("conversationToTextModal.systemMessage")),s=u=>{const d=u.IsTussentijdseMededeling?", ":"";if(u.AfzenderType===2&&u.AfzenderId!==u.BehandelaarId&&u.BehandelaarId!==null){const f=e("conversationToTextModal.onBehalfOf");return d+f+" "+u.BehandelaarNaam}return Ie},c=u=>u.AfzenderType===2?"is-sender":"is-receiver",a=()=>{const u=e("conversationToTextModal.prefix"),d=e("conversationToTextModal.copySuccess");return A3(r.value,u,d)};return(u,d)=>(l.openBlock(),l.createBlock(xn,{id:"conversation-to-text-modal",title:"Tekst versie","modal-class":t.extraClass,"hide-footer":""},{default:l.withCtx(()=>[l.createVNode(Re,{variant:"primary",onClick:a},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(e)("conversationToTextModal.copyButton")),1)]),_:1}),l.createElementVNode("div",v$,[l.createVNode(Pr,{class:"select-all-checkbox",modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(l.unref(e)("conversationToTextModal.selectAll")),1)]),_:1},8,["modelValue"]),l.createElementVNode("div",y$,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(f,h)=>(l.openBlock(),l.createElementBlock("div",{class:"message-cloud-selector",key:h},[l.createVNode(Pr,{class:"select-all-checkbox",modelValue:f.selected,"onUpdate:modelValue":p=>f.selected=p},null,8,["modelValue","onUpdate:modelValue"]),l.createElementVNode("div",b$,[l.createElementVNode("div",{class:l.normalizeClass(["message",c(f)])},[l.createElementVNode("div",C$,[l.createElementVNode("div",E$,[l.createTextVNode(l.toDisplayString(f.AfzenderNaam)+" ",1),f.IsTussentijdseMededeling?(l.openBlock(),l.createElementBlock("span",k$,[l.createElementVNode("i",null,l.toDisplayString(i.value),1)])):l.createCommentVNode("",!0),l.createElementVNode("span",null,[l.createElementVNode("i",null,l.toDisplayString(s(f)),1)]),l.createElementVNode("span",null,l.toDisplayString(f.Datum),1)])]),l.createElementVNode("div",{class:"message-cloud__body",innerHTML:f.Tekst},null,8,w$)],2)])]))),128))])])]),_:1},8,["modal-class"]))}});function T3(){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 u=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");u&&(u.style.cursor="grabbing"),d&&(d.style.cursor="grabbing"),r.value.x=a.clientX,r.value.y=a.clientY,e.value=!0},OnMouseMove:a=>{if(e.value){const u=a.clientX-r.value.x,d=a.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-d,n.value.scrollLeft=r.value.left-u)}},OnMouseUp:()=>{const a=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");a&&a.style&&(a.style.cursor=""),u&&u.style&&(u.style.cursor="grab"),e.value=!1}}}const S$=["src","alt"],A$={key:0,class:"show-spinner"},x$={class:"spinner-border text-primary",role:"status"},T$=["textContent"],I$=["href"],I3=l.defineComponent({__name:"BDImageAttachmentModal",setup(t,{expose:e}){const{showModal:n}=Bo("image-attachment-modal"),{zoom:r,imageHolderRef:o,SetZoom:i,OnMouseDown:s,OnMouseMove:c,OnMouseUp:a}=T3(),{t:u}=Ot(),d=l.ref(!0),f=l.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:Ie,altName:Ie,downloadUrl:Ie,fullImageUrl:Ie,previewUrl:Ie}),h=l.computed(()=>u("imageAttachmentModal.download")),p=l.computed(()=>u("imageAttachmentModal.loading"));e({Show:y=>{f.value=y,r.value=0,n()}});const g=()=>{d.value=!1},v=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:Ie,altName:Ie,downloadUrl:Ie,fullImageUrl:Ie,previewUrl:Ie}};return(y,b)=>(l.openBlock(),l.createBlock(xn,{id:"image-attachment-modal",class:l.normalizeClass(l.unref(Ie)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:v},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:o,onMousedown:b[0]||(b[0]=(...E)=>l.unref(s)&&l.unref(s)(...E)),onMousemove:b[1]||(b[1]=(...E)=>l.unref(c)&&l.unref(c)(...E)),onMouseup:b[2]||(b[2]=(...E)=>l.unref(a)&&l.unref(a)(...E))},[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,S$)):l.createCommentVNode("",!0)],544),d.value?(l.openBlock(),l.createElementBlock("div",A$,[l.createElementVNode("div",x$,[l.createElementVNode("span",{class:"visually-hidden",textContent:l.toDisplayString(p.value)},null,8,T$)])])):l.createCommentVNode("",!0),l.createVNode(ef,{modelValue:l.unref(r),"onUpdate:modelValue":b[3]||(b[3]=E=>l.isRef(r)?r.value=E:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),l.createElementVNode("a",{href:f.value.downloadUrl},[l.createVNode(Re,{variant:"primary",class:"download-image",textContent:l.toDisplayString(h.value)},null,8,["textContent"])],8,I$)]),_:1},8,["class","title"]))}}),_$={key:0},N$={key:1},O$={key:2},M$={key:3},L$={key:1},D$={key:2},P$=["href"],_3=l.defineComponent({__name:"BDVideoCallConfirmationModal",props:["isMissingCameraPermission","isMissingMicrophonePermission","isMissingMobileActivation","isMissingVideoConferencingSupport","participantName","videoTestUrl"],emits:["confirmed"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=()=>r.isMissingCameraPermission||r.isMissingMicrophonePermission||r.isMissingMobileActivation||r.isMissingVideoConferencingSupport,s=l.computed(()=>i()?n("videoCallConfirmationModal.close"):n("videoCallConfirmationModal.cancel")),c=l.computed(()=>`${r.participantName} ${n("videoCallConfirmationModal.noMobileActivationMessage")}`),a=l.computed(()=>`${r.participantName} ${n("videoCallConfirmationModal.noCompatibleDevices")}`),u=l.computed(()=>n("videoCallConfirmationModal.title")),d=l.computed(()=>n("videoCallConfirmationModal.ok")),f=l.computed(()=>n("videoCallConfirmationModal.generalWarning")),h=l.computed(()=>n("videoCallConfirmationModal.cameraPermissionMissing")),p=l.computed(()=>n("videoCallConfirmationModal.microphonePermissionMissing")),m=l.computed(()=>n("videoCallConfirmationModal.message")),g=l.computed(()=>n("videoCallConfirmationModal.participantMessage")),v=l.computed(()=>n("videoCallConfirmationModal.testMessage")),y=l.computed(()=>n("videoCallConfirmationModal.helpMessage")),b=()=>o("confirmed");return(E,C)=>(l.openBlock(),l.createBlock(xn,{id:"video-call-confirmation-modal",title:u.value,"submit-button-title":d.value,"close-button-title":s.value,"hide-footer-submit-button":i(),onSubmit:b},{default:l.withCtx(()=>[i()?(l.openBlock(),l.createBlock(Eo,{key:0,variant:"warning"},{default:l.withCtx(()=>[l.createElementVNode("p",null,l.toDisplayString(f.value),1),l.createElementVNode("ul",null,[r.isMissingCameraPermission?(l.openBlock(),l.createElementBlock("li",_$,l.toDisplayString(h.value),1)):l.createCommentVNode("",!0),r.isMissingMicrophonePermission?(l.openBlock(),l.createElementBlock("li",N$,l.toDisplayString(p.value),1)):l.createCommentVNode("",!0),r.isMissingMobileActivation?(l.openBlock(),l.createElementBlock("li",O$,l.toDisplayString(c.value),1)):l.createCommentVNode("",!0),r.isMissingVideoConferencingSupport?(l.openBlock(),l.createElementBlock("li",M$,l.toDisplayString(a.value),1)):l.createCommentVNode("",!0)])]),_:1})):r.participantName?(l.openBlock(),l.createElementBlock("p",L$,[l.createTextVNode(l.toDisplayString(g.value)+" ",1),l.createElementVNode("b",null,l.toDisplayString(r.participantName),1),C[0]||(C[0]=l.createTextVNode("?",-1))])):(l.openBlock(),l.createElementBlock("p",D$,l.toDisplayString(m.value),1)),l.createElementVNode("p",null,[l.createElementVNode("a",{href:r.videoTestUrl,target:"blank",rel:"noopener noreferrer"},l.toDisplayString(v.value),9,P$),l.createElementVNode("span",null," "+l.toDisplayString(y.value),1)])]),_:1},8,["title","submit-button-title","close-button-title","hide-footer-submit-button"]))}}),N3=()=>({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}}),B$={class:"template change-password-template"},R$={class:"template-title"},V$={key:0},$$={key:1},F$={class:"bd-form-field"},z$={class:"bd-form-field"},U$={class:"bd-form-field"},H$={class:"bd-form-buttons"},O3=l.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const{t:e}=Ot(),{showDangerToast:n,showWarningToast:r,showSuccessToast:o}=Zs(),{errorMessages:i,errorMessageText:s,MapServerErrors:c,ResetServerErrors:a}=Eh(null),{ValidationObjectIsValid:u}=N3(),d=t;let f=l.ref({password:Ie,passwordNew:Ie,passwordRepeat:Ie}),h=l.ref({password:{state:null,errorLabel:Ie},passwordNew:{state:null,errorLabel:Ie},passwordRepeat:{state:null,errorLabel:Ie}});const p=()=>{if(!m())return;const y=d.submitPassword(f.value);y&&y.then(()=>{o(d.successText),g()}).catch(b=>{n(d.failureText),c(b)})},m=()=>{const v=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(f.value.passwordNew&&!v.test(f.value.passwordNew))h.value.passwordNew.state=!1,h.value.passwordNew.errorLabel=d.minimalRequirementsText;else{const y=f.value.passwordRepeat===f.value.passwordNew,b=y?d.requiredText:d.incompatibleText;h.value.passwordNew.state=f.value.passwordNew!==Ie&&y?null:!1,h.value.passwordNew.errorLabel=b,h.value.passwordRepeat.state=f.value.passwordRepeat!==Ie&&y?null:!1,h.value.passwordRepeat.errorLabel=b}return h.value.password.state=f.value.password!==Ie?null:!1,h.value.password.errorLabel=h.value.password.state?Ie:d.requiredText,u(h.value)},g=()=>{if(f.value.password===Ie&&f.value.passwordNew===Ie&&f.value.passwordRepeat===Ie)return;f.value.password=Ie,f.value.passwordNew=Ie,f.value.passwordRepeat=Ie,h.value.password.state=null,h.value.passwordNew.state=null,h.value.passwordRepeat.state=null,a();const v=e("changePasswordTemplate.toasters.reset");r(v)};return(v,y)=>(l.openBlock(),l.createElementBlock("main",B$,[l.createVNode(rs,{class:"container-xl"},{default:l.withCtx(()=>[l.createVNode(bn,{class:"justify-content-md-center template-header"},{default:l.withCtx(()=>[l.createVNode(It,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createElementVNode("h1",R$,l.toDisplayString(d.templateTitle),1)]),_:1})]),_:1}),l.createVNode(bn,{class:"justify-content-md-center"},{default:l.withCtx(()=>[l.createVNode(It,{xs:12,md:10,lg:7},{default:l.withCtx(()=>[l.createVNode(Gl,{class:"bd-card-template","no-header":!0},{body:l.withCtx(()=>[l.createVNode(rs,{class:"container-fluid"},{default:l.withCtx(()=>[l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,null,{default:l.withCtx(()=>[l.createVNode(Eo,{variant:"warning"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.alertText),1)]),_:1})]),_:1})]),_:1}),l.unref(i)||l.unref(s)?(l.openBlock(),l.createBlock(bn,{key:0},{default:l.withCtx(()=>[l.createVNode(It,null,{default:l.withCtx(()=>[l.createVNode(Eo,{variant:"danger"},{default:l.withCtx(()=>[l.unref(i)?(l.openBlock(),l.createElementBlock("div",V$,[l.createElementVNode("ul",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(l.unref(i),(b,E)=>(l.openBlock(),l.createElementBlock("li",{key:E},[l.createVNode(Ur),l.createElementVNode("span",null,l.toDisplayString(b),1)]))),128))])])):(l.openBlock(),l.createElementBlock("div",$$,l.toDisplayString(l.unref(s)),1))]),_:1})]),_:1})]),_:1})):l.createCommentVNode("",!0),l.createVNode(bn,null,{default:l.withCtx(()=>[l.createVNode(It,{class:"bd-card-form",sm:12,md:12},{default:l.withCtx(()=>[l.createElementVNode("form",{onSubmit:l.withModifiers(p,["prevent"]),onReset:l.withModifiers(g,["prevent"]),class:"form"},[l.createElementVNode("div",F$,[l.createVNode(Ir,{modelValue:l.unref(f).password,"onUpdate:modelValue":y[0]||(y[0]=b=>l.unref(f).password=b),label:t.currentPasswordLabel,state:l.unref(h).password.state,type:"password","invalid-feedback-text":l.unref(h).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",z$,[l.createVNode(Ir,{modelValue:l.unref(f).passwordNew,"onUpdate:modelValue":y[1]||(y[1]=b=>l.unref(f).passwordNew=b),label:t.newPasswordLabel,state:l.unref(h).passwordNew.state,type:"password","invalid-feedback-text":l.unref(h).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",U$,[l.createVNode(Ir,{modelValue:l.unref(f).passwordRepeat,"onUpdate:modelValue":y[2]||(y[2]=b=>l.unref(f).passwordRepeat=b),label:t.confirmNewPasswordLabel,state:l.unref(h).passwordRepeat.state,type:"password","invalid-feedback-text":l.unref(h).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),l.createElementVNode("div",H$,[l.createVNode(Re,{type:"submit"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.submitButtonText),1)]),_:1}),l.createVNode(Re,{type:"reset",variant:"link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.cancelButtonText),1)]),_:1})])],32)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),j$={class:"template not-found-template"},W$={class:"center-screen"},K$={class:"container-warning"},Y$=["textContent"],G$=["textContent"],M3=l.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const{t:n}=Ot(),r=t,o=e,i=l.computed(()=>r.buttonText||n("notFoundTemplate.buttonDefault")),s=l.computed(()=>n("notFoundTemplate.title")),c=l.computed(()=>n("notFoundTemplate.description")),a=()=>o("navigate");return(u,d)=>(l.openBlock(),l.createElementBlock("main",j$,[l.createVNode(rs,{class:"container-xl"},{default:l.withCtx(()=>[l.createElementVNode("div",W$,[l.createElementVNode("div",K$,[l.createVNode(Xd),l.createElementVNode("h5",{textContent:l.toDisplayString(s.value)},null,8,Y$),l.createElementVNode("p",{textContent:l.toDisplayString(c.value)},null,8,G$),l.createVNode(Re,{onClick:a,variant:"primary",type:"button",textContent:l.toDisplayString(i.value)},null,8,["textContent"])])])]),_:1})]))}}),Q$=t=>{const e=/<a\b[^>]*>.*?<\/a>/gi,n=[];let r;for(;(r=e.exec(t))!==null;)n.push({start:r.index,end:r.index+r[0].length});const o=/(https?:\/\/[^\s<>"',]+|www\.[^\s<>"',]+)/g;return t.replace(o,(i,s,c)=>n.some(d=>c>=d.start&&c<d.end)?i:`<a href="${i.startsWith("www.")?`http://${i}`:i}" target="_blank" rel="noopener noreferrer">${i}</a>`)},Z$=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,J$=t=>t.startsWith("http://")||t.startsWith("https://"),X$={install:t=>{t.component("BDAlert",Eo),t.component("BDArticle",kv),t.component("BDAssignConversationModal",C3),t.component("BDAttachmentPreviewList",Hs),t.component("BDAttachmentUploadModal",E3),t.component("BDBadge",bv),t.component("BDButton",Re),t.component("BDCard",Gl),t.component("BDChangePasswordTemplate",O3),t.component("BDChatCloud",d3),t.component("BDCol",It),t.component("BDCollapsableCard",tf),t.component("BDConfirmationModal",b3),t.component("BDContentLibraryModal",S3),t.component("BDConversationToTextModal",x3),t.component("BDContentLibrarySplitButton",gv),t.component("BDContentLibraryTemplate",wh),t.component("BDContainer",rs),t.component("BDDropdown",yh),t.component("BDDropdownItem",Za),t.component("BDDropzone",yf),t.component("BDForm",Cv),t.component("BDFormCheckbox",Pr),t.component("BDFormInput",Ir),t.component("BDFormInvalidFeedback",ql),t.component("BDFormSelect",Ev),t.component("BDHeader",bh),t.component("BDImageAttachmentModal",I3),t.component("BDImageAttachmentPreviewList",js),t.component("BDInputGroup",Cs),t.component("BDLink",Co),t.component("BDLogo",Od),t.component("BDMarkdownEditor",c3),t.component("BDMobileMenu",vh),t.component("BDModal",xn),t.component("BDNotFoundTemplate",M3),t.component("BDPagination",mf),t.component("BDPhoneNumberEditModal",g3),t.component("BDPill",ec),t.component("BDPractitionerHeader",m3),t.component("BDProfileImage",Bs),t.component("BDRow",bn),t.component("BDSessionTimeOutModal",y3),t.component("BDTable",f3),t.component("BDToast",gf),t.component("BDUser",u3),t.component("BDUserInformation",vf),t.component("BDVideoCallConfirmationModal",_3),t.component("BDVideoCallToast",h3),t.component("BDZoomslider",ef),t.component("BDDate",Tv),t.component("IconAcademy",za),t.component("IconArrowDown",Md),t.component("IconArrowUp",Ld),t.component("IconAttachment",Dr),t.component("IconBold",Dd),t.component("IconBulletList",Pd),t.component("IconCalendar",E0),t.component("IconCall",Ua),t.component("IconCallReject",Bd),t.component("IconCardView",k0),t.component("IconCaretDown",Hl),t.component("IconCaretLeft",Rd),t.component("IconCaretRight",Vd),t.component("IconCheck",gi),t.component("IconClipboard",w0),t.component("IconClose",jl),t.component("IconComment",$d),t.component("IconCommentActive",S0),t.component("IconCommonFileEmpty",x0),t.component("IconCommonFileWarning",T0),t.component("IconCommentStatic",A0),t.component("IconContactPerson",I0),t.component("IconCopy",_0),t.component("IconDelete",Fd),t.component("IconDoubleCheck",N0),t.component("IconDownloadImage",zd),t.component("IconEdit",Ud),t.component("IconEndCall",O0),t.component("IconError",Wl),t.component("IconExternal",Hd),t.component("IconEyeShow",M0),t.component("IconEyeSlash",L0),t.component("IconFile",jd),t.component("IconFileAdded",D0),t.component("IconForward",P0),t.component("IconHix",B0),t.component("IconHyperlink",Kl),t.component("IconImageFileLandscape",R0),t.component("IconImageFileWarning",V0),t.component("IconInbox",$0),t.component("IconInfo",Ur),t.component("IconInformationCircle",Wd),t.component("IconItalic",Kd),t.component("IconListView",F0),t.component("IconLock",z0),t.component("IconLusciiEscalated",U0),t.component("IconLusciiLogo",H0),t.component("IconLusciiOpen",j0),t.component("IconLusciiPriorityHigh",W0),t.component("IconLusciiPriorityLow",K0),t.component("IconLusciiPriorityMedium",Y0),t.component("IconMenu",Yd),t.component("IconMessage",G0),t.component("IconMessageForward",Q0),t.component("IconMicrophoneSlash",Z0),t.component("IconMicrosoftTeams",J0),t.component("IconMin",X0),t.component("IconOrderedList",Gd),t.component("IconPlus",Ha),t.component("IconRefresh",q0),t.component("IconRemove",Ps),t.component("IconSananetLogo",eg),t.component("IconService",tg),t.component("IconShareScreen",ng),t.component("IconSingleNeutral",rg),t.component("IconSort",og),t.component("IconSortAsc",Qd),t.component("IconSortDesc",Zd),t.component("IconSortNone",Jd),t.component("IconTriangleDown",ig),t.component("IconTriangleExclamation",Xd),t.component("IconUnderline",qd),t.component("IconVideoDisabled",ag),t.component("IconVideocall",sg),t.component("IconWarning",lg),t.component("IconZorgkaart",cg),t.directive("vBDTooltip",Po)}};exports.BDAlert=Eo;exports.BDArticle=kv;exports.BDAssignConversationModal=C3;exports.BDAttachmentPreviewList=Hs;exports.BDAttachmentUploadModal=E3;exports.BDBadge=bv;exports.BDButton=Re;exports.BDCard=Gl;exports.BDChangePasswordTemplate=O3;exports.BDChatCloud=d3;exports.BDCol=It;exports.BDCollapsableCard=tf;exports.BDConfirmationModal=b3;exports.BDContainer=rs;exports.BDContentLibraryModal=S3;exports.BDContentLibrarySplitButton=gv;exports.BDContentLibraryTemplate=wh;exports.BDConversationToTextModal=x3;exports.BDDate=Tv;exports.BDDropdown=yh;exports.BDDropdownItem=Za;exports.BDDropzone=yf;exports.BDForm=Cv;exports.BDFormCheckbox=Pr;exports.BDFormInput=Ir;exports.BDFormInvalidFeedback=ql;exports.BDFormSelect=Ev;exports.BDHeader=bh;exports.BDImageAttachmentModal=I3;exports.BDImageAttachmentPreviewList=js;exports.BDInputGroup=Cs;exports.BDLink=Co;exports.BDLogo=Od;exports.BDMarkdownEditor=c3;exports.BDMobileMenu=vh;exports.BDModal=xn;exports.BDNotFoundTemplate=M3;exports.BDPagination=mf;exports.BDPhoneNumberEditModal=g3;exports.BDPill=ec;exports.BDPractitionerHeader=m3;exports.BDProfileImage=Bs;exports.BDRow=bn;exports.BDSessionTimeOutModal=y3;exports.BDTable=f3;exports.BDToast=gf;exports.BDUser=u3;exports.BDUserInformation=vf;exports.BDVideoCallConfirmationModal=_3;exports.BDVideoCallToast=h3;exports.BDZoomslider=ef;exports.CopyChatMessageToClipboard=m$;exports.CopyChatMessagesToClipboard=A3;exports.CopyHl7MessagesToClipboard=g$;exports.CreateHyperlinkParagraph=Z$;exports.CreateThumbnailUri=ry;exports.IconAcademy=za;exports.IconArrowDown=Md;exports.IconArrowUp=Ld;exports.IconAttachment=Dr;exports.IconBold=Dd;exports.IconBulletList=Pd;exports.IconCalendar=E0;exports.IconCall=Ua;exports.IconCallReject=Bd;exports.IconCardView=k0;exports.IconCaretDown=Hl;exports.IconCaretLeft=Rd;exports.IconCaretRight=Vd;exports.IconCheck=gi;exports.IconClipboard=w0;exports.IconClose=jl;exports.IconComment=$d;exports.IconCommentActive=S0;exports.IconCommentStatic=A0;exports.IconCommonFileEmpty=x0;exports.IconCommonFileWarning=T0;exports.IconContactPerson=I0;exports.IconCopy=_0;exports.IconDelete=Fd;exports.IconDoubleCheck=N0;exports.IconDownloadImage=zd;exports.IconEdit=Ud;exports.IconEndCall=O0;exports.IconError=Wl;exports.IconExternal=Hd;exports.IconEyeShow=M0;exports.IconEyeSlash=L0;exports.IconFile=jd;exports.IconFileAdded=D0;exports.IconForward=P0;exports.IconHix=B0;exports.IconHyperlink=Kl;exports.IconImageFileLandscape=R0;exports.IconImageFileWarning=V0;exports.IconInbox=$0;exports.IconInfo=Ur;exports.IconInformationCircle=Wd;exports.IconItalic=Kd;exports.IconListView=F0;exports.IconLock=z0;exports.IconLusciiEscalated=U0;exports.IconLusciiLogo=H0;exports.IconLusciiOpen=j0;exports.IconLusciiPriorityHigh=W0;exports.IconLusciiPriorityLow=K0;exports.IconLusciiPriorityMedium=Y0;exports.IconMenu=Yd;exports.IconMessage=G0;exports.IconMessageForward=Q0;exports.IconMicrophoneSlash=Z0;exports.IconMicrosoftTeams=J0;exports.IconMin=X0;exports.IconOrderedList=Gd;exports.IconPlus=Ha;exports.IconRefresh=q0;exports.IconRemove=Ps;exports.IconSananetLogo=eg;exports.IconService=tg;exports.IconShareScreen=ng;exports.IconSingleNeutral=rg;exports.IconSort=og;exports.IconSortAsc=Qd;exports.IconSortDesc=Zd;exports.IconSortNone=Jd;exports.IconTriangleDown=ig;exports.IconTriangleExclamation=Xd;exports.IconUnderline=qd;exports.IconVideoDisabled=ag;exports.IconVideocall=sg;exports.IconWarning=lg;exports.IconZorgkaart=cg;exports.MapAttachmentsForApi=TO;exports.MapToAttachmentObjects=Io;exports.TransformHyperlinks=Q$;exports.ValidateUrl=J$;exports.default=X$;exports.getDisplayDateNumeric=Gu;exports.getDisplayDateTextual=Av;exports.getDisplayDateTimeNumeric=Yu;exports.getDisplayDateTimeTextual=xv;exports.useModal=Bo;exports.usePopover=p3;exports.useServerErrors=Eh;exports.useSessionTimeOut=v3;exports.useToaster=Zs;exports.useValidation=N3;exports.useWindow=Ch;exports.useZoom=T3;exports.vBdTooltip=Po;