@beterdichtbij/component-library 0.56.0 → 0.56.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.
- package/dist/bd-component-lib.cjs.js +55 -55
- package/dist/bd-component-lib.css +1 -1
- package/dist/bd-component-lib.es.js +3246 -3211
- package/dist/bd-component-lib.umd.js +37 -37
- package/dist/components/atoms/BDContentLibrarySplitButton/BDContentLibrarySplitButton.vue.d.ts +20 -3
- package/dist/components/atoms/BDContentLibrarySplitButton/BDContentLibrarySplitButton.vue.d.ts.map +1 -1
- package/dist/locales/nl.json +2 -3
- package/dist/scss/_collapsable-card.scss +4 -29
- package/dist/scss/_content-library-modal.scss +0 -26
- package/dist/scss/_content-library-split-button.scss +20 -0
- package/dist/scss/_header.scss +6 -0
- package/dist/scss/_modal.scss +8 -0
- package/dist/scss/component-library-styling.scss +1 -0
- package/dist/src/components/atoms/BDCollapsableCard/BDCollapsableCard.vue.d.ts +11 -0
- package/dist/src/interfaces/BDCollapsableCardProps.d.ts +1 -0
- package/dist/src/types/BootstrapSizes.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q.BDComponentLibrary={},q.Vue))})(this,function(q,a){"use strict";var _h=document.createElement("style");_h.textContent
|
|
2
|
-
`,document.head.appendChild(_h);const Tt=a.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(t){const e=t,n=a.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)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value)},[a.renderSlot(r.$slots,"default")],2))}}),Hi=a.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(t){const e=t,n=a.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value)},[a.renderSlot(r.$slots,"default")],2))}}),wn=a.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["row",e.class])},[a.renderSlot(e.$slots,"default")],2))}}),Mt={XS:"xs",SM:"sm",MD:"md",LG:"lg"},wh=/^https:/i,ao=a.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=a.computed(()=>typeof e.to=="string"&&wh.test(e.to)?"a":typeof e.to!="string"&&typeof a.resolveComponent("router-link")!="string"?"router-link":"div"),r=a.computed(()=>{if(typeof e.to=="string"&&wh.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),a.mergeProps({class:"bd-link"},r.value),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(e.text),1)])]),_:3},16))}}),u3={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",SUCCESS:"success",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove",NEUTRAL:"neutral",ICON:"icon"},ze=a.defineComponent({__name:"BDButton",props:{size:{default:Mt.MD},variant:{default:u3.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=a.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",disabled:n.disabled})),o=a.computed(()=>n.to?ao:"button"),i=a.computed(()=>{const c={};return n.to?(c.to=n.to,c.role="button"):c.type="submit",c}),s=c=>{e("click",c)};return(c,l)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),a.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),Ce=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},f3={},h3=[a.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function p3(t,e){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({class:"bd-logo"},t.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),h3,16)}const Nc=Ce(f3,[["render",p3]]),m3={},g3={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},y3=[a.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z"},null,-1)];function v3(t,e){return a.openBlock(),a.createElementBlock("svg",g3,y3)}const da=Ce(m3,[["render",v3]]),b3={},C3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},E3=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function S3(t,e){return a.openBlock(),a.createElementBlock("svg",C3,E3)}const Mc=Ce(b3,[["render",S3]]),_3={},w3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},k3=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function A3(t,e){return a.openBlock(),a.createElementBlock("svg",w3,k3)}const Lc=Ce(_3,[["render",A3]]),T3={},I3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},x3=[a.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1)];function O3(t,e){return a.openBlock(),a.createElementBlock("svg",I3,x3)}const _r=Ce(T3,[["render",O3]]),N3={},M3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},L3=[a.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1)];function D3(t,e){return a.openBlock(),a.createElementBlock("svg",M3,L3)}const Dc=Ce(N3,[["render",D3]]),P3={},B3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},$3=[a.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1)];function R3(t,e){return a.openBlock(),a.createElementBlock("svg",B3,$3)}const Pc=Ce(P3,[["render",R3]]),V3={},F3={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},j3=[a.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1)];function z3(t,e){return a.openBlock(),a.createElementBlock("svg",F3,j3)}const kh=Ce(V3,[["render",z3]]),U3={},H3={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},W3=[a.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function K3(t,e){return a.openBlock(),a.createElementBlock("svg",H3,W3)}const ua=Ce(U3,[["render",K3]]),Y3={},G3={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},Q3=[a.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function Z3(t,e){return a.openBlock(),a.createElementBlock("svg",G3,Q3)}const Bc=Ce(Y3,[["render",Z3]]),J3={},X3={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},q3=[a.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1)];function eb(t,e){return a.openBlock(),a.createElementBlock("svg",X3,q3)}const Ah=Ce(J3,[["render",eb]]),tb={},nb={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},rb=[a.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1)];function ob(t,e){return a.openBlock(),a.createElementBlock("svg",nb,rb)}const fa=Ce(tb,[["render",ob]]),ib={},sb={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},ab=[a.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1)];function lb(t,e){return a.openBlock(),a.createElementBlock("svg",sb,ab)}const $c=Ce(ib,[["render",lb]]),cb={},db={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},ub=[a.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1)];function fb(t,e){return a.openBlock(),a.createElementBlock("svg",db,ub)}const Rc=Ce(cb,[["render",fb]]),hb={},pb={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},mb=[a.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1)];function gb(t,e){return a.openBlock(),a.createElementBlock("svg",pb,mb)}const Ho=Ce(hb,[["render",gb]]),yb={},vb={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"},bb=[a.createStaticVNode('<g transform="matrix(2,0,0,2,0,0)"><path d="M20.25,8.249v-3a1.5,1.5,0,0,0-1.5-1.5h-4" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.25,3.749h-4a1.5,1.5,0,0,0-1.5,1.5v16.5a1.5,1.5,0,0,0,1.5,1.5h6" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.421,4.736a.751.751,0,0,1-.712.513H7.291a.751.751,0,0,1-.712-.513l-1-3A.749.749,0,0,1,6.291.749h8.418a.749.749,0,0,1,.712.987Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11.250 11.249 L23.250 11.249 L23.250 23.249 L11.250 23.249 Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 14.249L20.25 14.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 17.249L20.25 17.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 20.249L16.5 20.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)];function Cb(t,e){return a.openBlock(),a.createElementBlock("svg",vb,bb)}const Th=Ce(yb,[["render",Cb]]),Eb={},Sb={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},_b=[a.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1)];function wb(t,e){return a.openBlock(),a.createElementBlock("svg",Sb,_b)}const ha=Ce(Eb,[["render",wb]]),kb={},Ab={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Tb=[a.createElementVNode("path",{d:"M1.139 8.555a8.304 8.304 0 0 1 4.59-7.424A8.198 8.198 0 0 1 9.444.25L9.93.25c4.218.233 7.586 3.6 7.82 7.86v.445-.002a8.197 8.197 0 0 1-.88 3.715 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778a8.197 8.197 0 0 1-.742-3.429zm1.047 7.26L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.7 6.7 0 0 0 .719-3.038l.001-.405c-.19-3.454-2.949-6.213-6.362-6.402h-.446a6.703 6.703 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643z"},null,-1)];function Ib(t,e){return a.openBlock(),a.createElementBlock("svg",Ab,Tb)}const Vc=Ce(kb,[["render",Ib]]),xb={},Ob={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Nb=[a.createElementVNode("g",{"fill-rule":"nonzero",fill:"none"},[a.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"}),a.createElementVNode("path",{fill:"#30B451",d:"M14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})],-1)];function Mb(t,e){return a.openBlock(),a.createElementBlock("svg",Ob,Nb)}const Ih=Ce(xb,[["render",Mb]]),Lb={},Db={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Pb=[a.createElementVNode("path",{d:"M9.889 1.75h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934c.175.603.284 1.235.32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.2 8.2 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307 6.687 6.687 0 0 0-.956-.122zM14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"},null,-1)];function Bb(t,e){return a.openBlock(),a.createElementBlock("svg",Db,Pb)}const xh=Ce(Lb,[["render",Bb]]),$b={},Rb={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"},Vb=[a.createElementVNode("title",null,"common-file-empty",-1),a.createElementVNode("g",null,[a.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
|
+
(function(q,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(q=typeof globalThis<"u"?globalThis:q||self,a(q.BDComponentLibrary={},q.Vue))})(this,function(q,a){"use strict";var _h=document.createElement("style");_h.textContent=`:root{--vs-colors--lightest: rgba(60, 60, 60, .26);--vs-colors--light: rgba(60, 60, 60, .5);--vs-colors--dark: #333;--vs-colors--darkest: rgba(0, 0, 0, .15);--vs-search-input-color: inherit;--vs-search-input-placeholder-color: inherit;--vs-font-size: 1rem;--vs-line-height: 1.4;--vs-state-disabled-bg: rgb(248, 248, 248);--vs-state-disabled-color: var(--vs-colors--light);--vs-state-disabled-controls-color: var(--vs-colors--light);--vs-state-disabled-cursor: not-allowed;--vs-border-color: var(--vs-colors--lightest);--vs-border-width: 1px;--vs-border-style: solid;--vs-border-radius: 4px;--vs-actions-padding: 4px 6px 0 3px;--vs-controls-color: var(--vs-colors--light);--vs-controls-size: 1;--vs-controls--deselect-text-shadow: 0 1px 0 #fff;--vs-selected-bg: #f0f0f0;--vs-selected-color: var(--vs-colors--dark);--vs-selected-border-color: var(--vs-border-color);--vs-selected-border-style: var(--vs-border-style);--vs-selected-border-width: var(--vs-border-width);--vs-dropdown-bg: #fff;--vs-dropdown-color: inherit;--vs-dropdown-z-index: 1000;--vs-dropdown-min-width: 160px;--vs-dropdown-max-height: 350px;--vs-dropdown-box-shadow: 0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg: #000;--vs-dropdown-option-color: var(--vs-dropdown-color);--vs-dropdown-option-padding: 3px 20px;--vs-dropdown-option--active-bg: #5897fb;--vs-dropdown-option--active-color: #fff;--vs-dropdown-option--deselect-bg: #fb5858;--vs-dropdown-option--deselect-color: #fff;--vs-transition-timing-function: cubic-bezier(1, -.115, .975, .855);--vs-transition-duration: .15s}.v-select{position:relative;font-family:inherit}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function: cubic-bezier(1, .5, .8, 1);--vs-transition-duration: .15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes vSelectSpinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg: var(--vs-state-disabled-bg);--vs-disabled-color: var(--vs-state-disabled-color);--vs-disabled-cursor: var(--vs-state-disabled-cursor)}.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__clear,.vs--disabled .vs__search,.vs--disabled .vs__selected,.vs--disabled .vs__open-indicator{cursor:var(--vs-disabled-cursor);background-color:var(--vs-disabled-bg)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;padding:0 0 4px;background:none;border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{display:flex;align-items:center;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);padding:0;border:0;background-color:transparent;cursor:pointer;margin-right:8px}.vs__dropdown-menu{display:block;box-sizing:border-box;position:absolute;top:calc(100% - var(--vs-border-width));left:0;z-index:var(--vs-dropdown-z-index);padding:5px 0;margin:0;width:100%;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;box-shadow:var(--vs-dropdown-box-shadow);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-top-style:none;border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);text-align:left;list-style:none;background:var(--vs-dropdown-bg);color:var(--vs-dropdown-color)}.vs__no-options{text-align:center}.vs__dropdown-option{line-height:1.42857143;display:block;padding:var(--vs-dropdown-option-padding);clear:both;color:var(--vs-dropdown-option-color);white-space:nowrap;cursor:pointer}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{display:flex;align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{display:inline-flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-left:4px;padding:0;border:0;cursor:pointer;background:none;fill:var(--vs-controls-color);text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--open .vs__selected,.vs--single.vs--loading .vs__selected{position:absolute;opacity:.4}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration,.vs__search::-ms-clear{display:none}.vs__search,.vs__search:focus{color:var(--vs-search-input-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:var(--vs-line-height);font-size:var(--vs-font-size);border:1px solid transparent;border-left:none;outline:none;margin:4px 0 0;padding:0 7px;background:none;box-shadow:none;width:0;max-width:100%;flex-grow:1;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;opacity:0;font-size:5px;text-indent:-9999em;overflow:hidden;border-top:.9em solid rgba(100,100,100,.1);border-right:.9em solid rgba(100,100,100,.1);border-bottom:.9em solid rgba(100,100,100,.1);border-left:.9em solid rgba(60,60,60,.45);transform:translateZ(0) scale(var(--vs-controls--spinner-size, var(--vs-controls-size)));-webkit-animation:vSelectSpinner 1.1s infinite linear;animation:vSelectSpinner 1.1s infinite linear;transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;width:5em;height:5em;transform:scale(var(--vs-controls--spinner-size, var(--vs-controls-size)))}.vs--loading .vs__spinner{opacity:1}.alert[data-v-de8a1bfb]{text-align:center}
|
|
2
|
+
`,document.head.appendChild(_h);const It=a.defineComponent({__name:"BDCol",props:{class:{},cols:{},xs:{},sm:{},md:{},lg:{},xxl:{},orderClass:{},offsetClass:{}},setup(t){const e=t,n=a.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)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value)},[a.renderSlot(r.$slots,"default")],2))}}),Hi=a.defineComponent({__name:"BDContainer",props:{class:{default:""},fluid:{type:Boolean,default:!1}},setup(t){const e=t,n=a.computed(()=>({container:!e.fluid,"container-fluid":e.fluid===!0,[`container-${e.fluid}`]:e.fluid&&e.fluid!==!0,[e.class]:!0}));return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value)},[a.renderSlot(r.$slots,"default")],2))}}),wn=a.defineComponent({__name:"BDRow",props:{class:{}},setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["row",e.class])},[a.renderSlot(e.$slots,"default")],2))}}),ut={XS:"xs",SM:"sm",MD:"md",LG:"lg",XL:"xl"},wh=/^https:/i,ao=a.defineComponent({__name:"BDLink",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},setup(t){const e=t,n=a.computed(()=>typeof e.to=="string"&&wh.test(e.to)?"a":typeof e.to!="string"&&typeof a.resolveComponent("router-link")!="string"?"router-link":"div"),r=a.computed(()=>{if(typeof e.to=="string"&&wh.test(e.to)){const{to:o,target:i,rel:s}=e;return{href:o,target:i,rel:s}}else{const{to:o}=e;return{to:o}}});return(o,i)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),a.mergeProps({class:"bd-link"},r.value),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(e.text),1)])]),_:3},16))}}),u3={PRIMARY:"primary",SECONDARY:"secondary",COLLEAGUE:"colleague",SUCCESS:"success",DANGER:"danger",OUT_PRIMARY:"outline-primary",OUT_PRIMARY_DARK:"outline-primary-dark",OUT_TERTIARY:"outline-tertiary",OUT_LINK:"link",LIGHT:"light",DARK:"dark",REMOVE:"remove",NEUTRAL:"neutral",ICON:"icon"},ze=a.defineComponent({__name:"BDButton",props:{size:{default:ut.MD},variant:{default:u3.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=a.computed(()=>({btn:!0,[`btn-${n.variant}`]:n.variant,[`btn-${n.size}`]:!0,"d-grid":n.blockElement&&typeof n.to=="string",disabled:n.disabled})),o=a.computed(()=>n.to?ao:"button"),i=a.computed(()=>{const c={};return n.to?(c.to=n.to,c.role="button"):c.type="submit",c}),s=c=>{e("click",c)};return(c,l)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o.value),a.mergeProps({class:["bd-btn",r.value]},i.value,{onClick:s}),{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])]),_:3},16,["class"]))}}),Ce=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},f3={},h3=[a.createStaticVNode('<title>BeterDichtbij logo</title><g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Group-3-Copy-2" transform="translate(0.000000, -14.000000)"><g id="Master-Copy" transform="translate(0.000000, 21.000000)" fill="#E1523D"><g id="Group-36-Copy-2"><path d="M0,7.07801038 C0,4.71449972 1.60969434,3.38479666 3.84879725,3.38479666 L13.2067282,3.38479666 C18.2745524,3.38479666 22.3693254,6.83325734 22.3693254,12.0497847 C22.3693254,15.4945924 20.9549647,17.8069606 17.8368602,19.2827849 L17.8368602,19.3814167 C21.978658,19.9732076 25.2450714,23.4655047 25.2450714,27.7468563 C25.2450714,34.687614 20.6619642,38.4283171 13.9374209,38.4283171 L3.89943932,38.4283171 C1.65671912,38.4283171 0,36.9999822 0,34.687614 L0,7.07801038 Z M7.3105444,17.2663121 L11.1123169,17.2663121 C13.4997287,17.2663121 15.058781,15.8379772 15.058781,13.3758348 C15.058781,11.0634665 13.2537529,9.88353771 11.1123169,9.88353771 L7.3105444,9.88353771 L7.3105444,17.2663121 Z M7.3105444,31.9332291 L13.0620365,31.9332291 C15.6918068,31.9332291 17.6415265,30.4062624 17.6415265,27.6482244 C17.6415265,25.3358562 15.8871405,23.7614001 12.4760354,23.7614001 L7.3105444,23.7614001 L7.3105444,31.9332291 Z" id="Fill-10"></path><path d="M33.6758908,27.6990016 C34.164225,31.1912986 37.0399711,32.8168971 40.3027672,32.8168971 C43.909206,32.8168971 46.3942847,29.9638804 48.2463375,29.9638804 C49.758365,29.9638804 51.1220836,31.4871941 51.1220836,33.0141608 C51.1220836,36.0644411 44.8858745,39.0197427 39.6697414,39.0197427 C31.7768132,39.0197427 26.5136553,33.2114244 26.5136553,25.3866333 C26.5136553,18.2011226 31.6791463,11.6548921 39.0873576,11.6548921 C46.6872852,11.6548921 51.7080846,18.6431393 51.7080846,24.5500894 C51.7080846,26.665194 50.7820582,27.6990016 48.6370049,27.6990016 L33.6758908,27.6990016 Z M44.6905408,22.9756333 C44.2998734,19.8742105 42.3501537,17.5618423 39.0873576,17.5618423 C35.9656357,17.5618423 33.8712245,19.9728423 33.5311991,22.9756333 L44.6905408,22.9756333 Z" id="Fill-12"></path><path d="M55.9001628,18.4462409 L54.3411105,18.4462409 C52.4384156,18.4462409 51.2700307,17.2663121 51.2700307,15.3448181 C51.2700307,13.5730984 52.5867245,12.2470484 54.3411105,12.2470484 L55.9001628,12.2470484 L55.9001628,8.01318615 C55.9001628,5.6496755 57.3615482,4.0752194 59.4089347,4.0752194 C61.4563212,4.0752194 62.9177066,5.6496755 62.9177066,8.01318615 L62.9177066,12.2470484 L64.9144511,12.2470484 C66.7194791,12.2470484 68.2785314,13.0799393 68.2785314,15.3448181 C68.2785314,17.5585545 66.7194791,18.4462409 64.9144511,18.4462409 L62.9177066,18.4462409 L62.9177066,34.7862458 C62.9177066,37.1497565 61.4563212,38.7205595 59.4089347,38.7205595 C57.3615482,38.7205595 55.9001628,37.1497565 55.9001628,34.7862458 L55.9001628,18.4462409 Z" id="Fill-14"></path><path d="M74.2727437,27.6990016 C74.761078,31.1912986 77.636824,32.8168971 80.8996202,32.8168971 C84.506059,32.8168971 86.9911376,29.9638804 88.8431905,29.9638804 C90.3552179,29.9638804 91.7189365,31.4871941 91.7189365,33.0141608 C91.7189365,36.0644411 85.4827274,39.0197427 80.2665943,39.0197427 C72.3736661,39.0197427 67.1105082,33.2114244 67.1105082,25.3866333 C67.1105082,18.2011226 72.2759993,11.6548921 79.6805932,11.6548921 C87.2841382,11.6548921 92.3049376,18.6431393 92.3049376,24.5500894 C92.3049376,26.665194 91.3789112,27.6990016 89.2338578,27.6990016 L74.2727437,27.6990016 Z M85.2873937,22.9756333 C84.8967264,19.8742105 82.9470067,17.5618423 79.6805932,17.5618423 C76.5624887,17.5618423 74.4680774,19.9728423 74.1280521,22.9756333 L85.2873937,22.9756333 Z" id="Fill-16"></path><path d="M94.6934346,15.4934965 C94.6934346,13.1299858 96.5454874,11.950057 98.2998734,11.950057 C100.151926,11.950057 101.710978,12.6404797 101.710978,14.9017055 L101.808645,14.9017055 C103.125339,12.9327222 104.5397,11.950057 106.731778,11.950057 C108.435522,11.950057 110.142883,13.1811282 110.142883,15.7382495 C110.142883,18.0506177 108.044854,18.200392 105.950443,19.1830571 C103.856032,20.1693753 101.710978,21.1045511 101.710978,23.9100785 L101.710978,34.7851499 C101.710978,37.1486606 100.249593,38.7231166 98.2022065,38.7231166 C96.15482,38.7231166 94.6934346,37.1486606 94.6934346,34.7851499 L94.6934346,15.4934965 Z" id="Fill-18"></path><path d="M114.139266,7.17591159 C114.139266,4.91103276 115.698318,3.38771909 117.890396,3.38771909 L125.982275,3.38771909 C136.899258,3.38771909 143.135468,10.474598 143.135468,21.4008119 C143.135468,31.7352348 136.508591,38.4275865 126.47061,38.4275865 L117.988063,38.4275865 C116.381986,38.4275865 114.139266,37.5435531 114.139266,34.7380258 L114.139266,7.17591159 Z M121.44981,31.636603 L126.369325,31.636603 C132.659794,31.636603 135.531923,26.9607241 135.531923,21.053774 C135.531923,14.7559496 132.609152,10.1787026 125.884608,10.1787026 L121.44981,10.1787026 L121.44981,31.636603 Z" id="Fill-20"></path><path d="M153.809731,5.20729352 C153.809731,7.42102993 152.055345,9.29138148 149.863266,9.29138148 C147.765238,9.29138148 145.913185,7.37354053 145.913185,5.20729352 C145.913185,3.19082075 147.765238,1.32046919 149.863266,1.32046919 C151.957678,1.32046919 153.809731,3.13967832 153.809731,5.20729352 L153.809731,5.20729352 Z M146.354494,15.8887543 C146.354494,13.5252437 147.81588,11.9507876 149.863266,11.9507876 C151.910653,11.9507876 153.372038,13.5252437 153.372038,15.8887543 L153.372038,34.7858805 C153.372038,37.1493912 151.910653,38.7238473 149.863266,38.7238473 C147.81588,38.7238473 146.354494,37.1493912 146.354494,34.7858805 L146.354494,15.8887543 Z" id="Fill-22"></path><path d="M174.716947,19.5289991 C172.962561,19.5289991 171.403509,18.1518067 169.160789,18.1518067 C165.163682,18.1518067 163.264605,21.7427355 163.264605,25.3848068 C163.264605,28.8807569 165.359016,32.5228282 169.160789,32.5228282 C170.915175,32.5228282 173.548562,31.0470039 174.376922,31.0470039 C176.033641,31.0470039 177.397359,32.4716858 177.397359,34.1447737 C177.397359,37.786845 171.352867,39.0179162 168.820763,39.0179162 C161.26786,39.0179162 156.247061,32.7675812 156.247061,25.3848068 C156.247061,18.1992961 161.412552,11.6530656 168.820763,11.6530656 C171.598842,11.6530656 177.397359,12.6868732 177.397359,16.1316809 C177.397359,17.6075051 176.373666,19.5289991 174.716947,19.5289991" id="Fill-24"></path><path d="M179.83469,4.46901608 C179.83469,2.10550542 181.296075,0.531049329 183.343462,0.531049329 C185.390848,0.531049329 186.852234,2.10550542 186.852234,4.46901608 L186.852234,14.1166693 L186.949901,14.1166693 C188.411286,12.2938072 191.14234,11.6545268 193.334419,11.6545268 C198.839935,11.6545268 202.934708,15.1979663 202.934708,21.2035482 L202.934708,34.7855152 C202.934708,37.1490259 201.473322,38.723482 199.425936,38.723482 C197.378549,38.723482 195.917164,37.1490259 195.917164,34.7855152 L195.917164,22.4346195 C195.917164,19.1359331 193.869778,17.561477 191.337674,17.561477 C188.461928,17.561477 186.852234,19.6765816 186.852234,22.4346195 L186.852234,34.7855152 C186.852234,37.1490259 185.390848,38.723482 183.343462,38.723482 C181.296075,38.723482 179.83469,37.1490259 179.83469,34.7855152 L179.83469,4.46901608 Z" id="Fill-26"></path><path d="M208.63809,18.4462409 L207.079038,18.4462409 C205.17996,18.4462409 204.007958,17.2663121 204.007958,15.3448181 C204.007958,13.5730984 205.324652,12.2470484 207.079038,12.2470484 L208.63809,12.2470484 L208.63809,8.01318615 C208.63809,5.6496755 210.099475,4.0752194 212.146862,4.0752194 C214.194249,4.0752194 215.655634,5.6496755 215.655634,8.01318615 L215.655634,12.2470484 L217.652378,12.2470484 C219.457406,12.2470484 221.016459,13.0799393 221.016459,15.3448181 C221.016459,17.5585545 219.457406,18.4462409 217.652378,18.4462409 L215.655634,18.4462409 L215.655634,34.7862458 C215.655634,37.1497565 214.194249,38.7205595 212.146862,38.7205595 C210.099475,38.7205595 208.63809,37.1497565 208.63809,34.7862458 L208.63809,18.4462409 Z" id="Fill-28"></path><path d="M222.820402,4.46865078 C222.820402,2.10514012 224.281787,0.530684026 226.329173,0.530684026 C228.37656,0.530684026 229.837945,2.10514012 229.837945,4.46865078 L229.837945,14.116304 C231.689998,12.4907055 234.07741,11.6541615 236.515464,11.6541615 C244.068367,11.6541615 247.819497,18.7921829 247.819497,25.6817982 C247.819497,32.3741498 243.337674,39.0190121 236.269488,39.0190121 C233.882076,39.0190121 231.154639,37.9340621 229.837945,35.7714681 C229.400253,37.6418197 228.278893,38.7231166 226.329173,38.7231166 C224.281787,38.7231166 222.820402,37.1486606 222.820402,34.7851499 L222.820402,4.46865078 Z M235.343462,32.5202711 C239.000543,32.5202711 240.801953,28.6845892 240.801953,25.3859027 C240.801953,22.0397269 239.000543,18.1492495 235.343462,18.1492495 C231.592331,18.1492495 229.837945,21.692689 229.837945,25.1411497 C229.837945,28.5859573 231.494664,32.5202711 235.343462,32.5202711 L235.343462,32.5202711 Z" id="Fill-30"></path><path d="M258.153735,5.20729352 C258.153735,7.42102993 256.399349,9.29138148 254.207271,9.29138148 C252.109242,9.29138148 250.257189,7.37354053 250.257189,5.20729352 C250.257189,3.19082075 252.109242,1.32046919 254.207271,1.32046919 C256.301682,1.32046919 258.153735,3.13967832 258.153735,5.20729352 L258.153735,5.20729352 Z M250.698499,15.8887543 C250.698499,13.5252437 252.159884,11.9507876 254.207271,11.9507876 C256.254657,11.9507876 257.716043,13.5252437 257.716043,15.8887543 L257.716043,34.7858805 C257.716043,37.1493912 256.254657,38.7238473 254.207271,38.7238473 C252.159884,38.7238473 250.698499,37.1493912 250.698499,34.7858805 L250.698499,15.8887543 Z" id="Fill-32"></path><path d="M268.972689,5.20729352 C268.972689,7.42102993 267.218303,9.29138148 265.026225,9.29138148 C262.928197,9.29138148 261.076144,7.37354053 261.076144,5.20729352 C261.076144,3.19082075 262.928197,1.32046919 265.026225,1.32046919 C267.120637,1.32046919 268.972689,3.13967832 268.972689,5.20729352 L268.972689,5.20729352 Z M261.517453,15.8887543 C261.517453,13.5252437 262.978839,11.9507876 265.026225,11.9507876 C267.073612,11.9507876 268.534997,13.5252437 268.534997,15.8887543 L268.534997,45.2189353 C268.534997,47.5824459 267.073612,49.156902 265.026225,49.156902 C262.978839,49.156902 261.517453,47.5824459 261.517453,45.2189353 L261.517453,15.8887543 Z" id="Fill-34"></path></g></g><polyline id="Path" stroke="#E1523D" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(346.970563, 44.470563) rotate(-45.000000) translate(-346.970563, -44.470563) " points="334.970563 56.4705627 334.970563 32.4705627 334.970563 32.4705627 358.970563 32.4705627"></polyline><g id="Group-2" transform="translate(319.970563, 44.500000) rotate(90.000000) translate(-319.970563, -44.500000) translate(275.970563, 27.500000)" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.4"><polyline id="Path-Copy-2" stroke="#418FDE" transform="translate(70.970563, 17.000000) rotate(-45.000000) translate(-70.970563, -17.000000) " points="58.9705627 29 58.9705627 5 82.9705627 5"></polyline><polyline id="Path-Copy-3" stroke="#FFC72C" transform="translate(16.970563, 17.000000) scale(-1, 1) rotate(-45.000000) translate(-16.970563, -17.000000) " points="4.97056275 29 4.97056275 5 28.9705627 5"></polyline></g><polyline id="Path-Copy" stroke="#00BF6F" stroke-width="6.4" stroke-linecap="round" stroke-linejoin="round" transform="translate(292.970563, 44.470563) scale(-1, 1) rotate(-45.000000) translate(-292.970563, -44.470563) " points="280.970563 56.4705627 280.970563 32.4705627 280.970563 32.4705627 304.970563 32.4705627"></polyline></g></g>',2)];function p3(t,e){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({class:"bd-logo"},t.$attrs,{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),h3,16)}const Nc=Ce(f3,[["render",p3]]),m3={},g3={class:"icon icon-academy",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg"},y3=[a.createElementVNode("path",{d:"M30.6523 16.0664C31.0039 16.207 31.25 16.5234 31.25 16.875C31.25 17.2617 31.0039 17.5781 30.6523 17.7188L20.7383 21.2695C20.4922 21.3398 20.2461 21.375 20 21.375C19.7188 21.375 19.4727 21.3398 19.2266 21.2695L12.5469 18.8789C12.125 19.3359 11.8086 19.8984 11.668 20.5312C11.9141 20.707 12.125 21.0234 12.125 21.375C12.125 21.7266 11.9492 22.043 11.7031 22.2539L12.5469 27.4922C12.6172 27.8438 12.3359 28.125 12.0195 28.125H9.94531C9.62891 28.125 9.34766 27.8438 9.41797 27.4922L10.2617 22.2539C10.0156 22.043 9.875 21.7266 9.875 21.375C9.875 20.918 10.1562 20.5312 10.543 20.3555C10.6836 19.6523 11 19.0195 11.4219 18.457L9.3125 17.7188C8.96094 17.5781 8.75 17.2617 8.75 16.875C8.75 16.5234 8.96094 16.207 9.3125 16.0664L19.2266 12.5156C19.4727 12.4453 19.7188 12.375 20 12.375C20.2461 12.375 20.4922 12.4453 20.7031 12.5156L30.6523 16.0664ZM20.1758 19.6875L27.9453 16.875L20.1406 14.0977C20.0703 14.0977 19.9297 14.0625 19.7891 14.0977L12.0195 16.875L13.1445 17.2969L19.8242 15.2227C20.1055 15.1172 20.4219 15.293 20.5273 15.6094C20.5977 15.8906 20.457 16.207 20.1406 16.3125L14.9023 17.9297L19.8242 19.6875C19.8594 19.6875 20 19.7227 20.1758 19.6875ZM24.6406 21.0586L26.2578 20.4961L26.7148 24.9258C26.75 27.0703 23.3398 28.125 20 28.125C16.625 28.125 13.25 27.0703 13.25 24.9258L13.707 20.4961L15.3242 21.0586L14.9375 24.9961C14.9375 25.3828 16.6602 26.4375 20 26.4375C23.3047 26.4375 25.0625 25.3828 25.0625 24.9961L24.6406 21.0586Z"},null,-1)];function v3(t,e){return a.openBlock(),a.createElementBlock("svg",g3,y3)}const da=Ce(m3,[["render",v3]]),b3={},C3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},E3=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M12,19.5a2.3,2.3,0,0,1-1.729-.78L.46,7.568A1.847,1.847,0,0,1,3.233,5.129l8.579,9.752a.25.25,0,0,0,.376,0l8.579-9.752A1.847,1.847,0,1,1,23.54,7.568L13.732,18.716A2.31,2.31,0,0,1,12,19.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function S3(t,e){return a.openBlock(),a.createElementBlock("svg",C3,E3)}const Mc=Ce(b3,[["render",S3]]),_3={},w3={class:"icon",viewBox:"0 0 20 20",height:"20",width:"20",xmlns:"http://www.w3.org/2000/svg"},k3=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M12,4.5a2.3,2.3,0,0,1,1.729.78l9.811,11.15a1.847,1.847,0,1,1-2.773,2.439L12.188,9.119a.25.25,0,0,0-.376,0L3.233,18.871A1.847,1.847,0,1,1,.46,16.432L10.268,5.284A2.31,2.31,0,0,1,12,4.5Z",stroke:"none","stroke-linecap":"round","stroke-linejoin":"round"})],-1)];function A3(t,e){return a.openBlock(),a.createElementBlock("svg",w3,k3)}const Lc=Ce(_3,[["render",A3]]),T3={},I3={class:"icon icon-attachment",width:"17",height:"18",viewBox:"0 0 17 18",xmlns:"http://www.w3.org/2000/svg"},x3=[a.createElementVNode("path",{d:"M15.56 7.97l-7.135 7.135a3.91 3.91 0 0 1-5.53-5.53L10.03 2.44a2.357 2.357 0 0 1 3.333 3.334L6.22 12.907a.804.804 0 1 1-1.137-1.136l6.591-6.582a.75.75 0 0 0-1.06-1.062l-6.59 6.583a2.304 2.304 0 1 0 3.256 3.258l7.142-7.134A3.857 3.857 0 1 0 8.97 1.38L1.835 8.514a5.41 5.41 0 0 0 7.651 7.651l7.134-7.134a.75.75 0 1 0-1.06-1.06z"},null,-1)];function O3(t,e){return a.openBlock(),a.createElementBlock("svg",I3,x3)}const _r=Ce(T3,[["render",O3]]),N3={},M3={width:"11",height:"13",viewBox:"0 0 11 13",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bold"},L3=[a.createElementVNode("path",{d:"M8.85547 6.25781C9.21094 5.84766 9.53906 5.05469 9.59375 4.48047C9.78516 2.40234 8.17188 0.625 6.12109 0.625H0.679688C0.433594 0.625 0.242188 0.84375 0.242188 1.0625V2.375C0.242188 2.62109 0.433594 2.8125 0.679688 2.8125H1.52734V10.6875H0.679688C0.433594 10.6875 0.242188 10.9062 0.242188 11.125V12.4375C0.242188 12.6836 0.433594 12.875 0.679688 12.875H6.39453C8.33594 12.875 10.0586 11.4805 10.25 9.53906C10.3867 8.22656 9.78516 7.02344 8.85547 6.25781ZM3.71484 2.8125H6.12109C6.83203 2.8125 7.43359 3.41406 7.43359 4.125C7.43359 4.86328 6.83203 5.4375 6.12109 5.4375H3.71484V2.8125ZM6.12109 10.6875H3.71484V7.625H6.12109C6.96875 7.625 7.65234 8.33594 7.65234 9.15625C7.65234 10.0039 6.96875 10.6875 6.12109 10.6875Z"},null,-1)];function D3(t,e){return a.openBlock(),a.createElementBlock("svg",M3,L3)}const Dc=Ce(N3,[["render",D3]]),P3={},B3={width:"16",height:"14",viewBox:"0 0 16 14",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-bullet-list"},$3=[a.createElementVNode("path",{d:"M2.5 5.5H0.5C0.21875 5.5 0 5.75 0 6V8C0 8.28125 0.21875 8.5 0.5 8.5H2.5C2.75 8.5 3 8.28125 3 8V6C3 5.75 2.75 5.5 2.5 5.5ZM2.5 10.5H0.5C0.21875 10.5 0 10.75 0 11V13C0 13.2812 0.21875 13.5 0.5 13.5H2.5C2.75 13.5 3 13.2812 3 13V11C3 10.75 2.75 10.5 2.5 10.5ZM2.5 0.5H0.5C0.21875 0.5 0 0.75 0 1V3C0 3.28125 0.21875 3.5 0.5 3.5H2.5C2.75 3.5 3 3.28125 3 3V1C3 0.75 2.75 0.5 2.5 0.5ZM15.25 6.25H5.71875C5.3125 6.25 5 6.59375 5 7C5 7.4375 5.3125 7.75 5.71875 7.75H15.25C15.6562 7.75 16 7.4375 16 7C16 6.59375 15.6562 6.25 15.25 6.25ZM15.25 1.25H5.71875C5.3125 1.25 5 1.59375 5 2C5 2.375 5.3125 2.75 5.71875 2.75H15.25C15.6562 2.75 16 2.4375 16 2.03125C16 1.65625 15.6562 1.25 15.25 1.25ZM15.25 11.25H5.71875C5.3125 11.25 5 11.5938 5 12C5 12.4375 5.3125 12.75 5.71875 12.75H15.25C15.6562 12.75 16 12.4375 16 12C16 11.5938 15.6562 11.25 15.25 11.25Z"},null,-1)];function R3(t,e){return a.openBlock(),a.createElementBlock("svg",B3,$3)}const Pc=Ce(P3,[["render",R3]]),V3={},F3={class:"icon icon-calendar",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"18",viewBox:"0 0 17 18"},j3=[a.createElementVNode("path",{d:"M4.25 3.35H3c-.69 0-1.25.56-1.25 1.25v2.05h12.9V4.6c0-.69-.56-1.25-1.25-1.25h-1.25v.85a.75.75 0 1 1-1.5 0v-.85h-4.9v.85a.75.75 0 0 1-1.5 0v-.85zm1.5-1.5h4.9V1a.75.75 0 1 1 1.5 0v.85h1.25a2.75 2.75 0 0 1 2.75 2.75V15a2.75 2.75 0 0 1-2.75 2.75H3A2.75 2.75 0 0 1 .25 15V4.6A2.75 2.75 0 0 1 3 1.85h1.25V1a.75.75 0 0 1 1.5 0v.85zm8.9 6.3H1.75V15c0 .69.56 1.25 1.25 1.25h10.4c.69 0 1.25-.56 1.25-1.25V8.15z"},null,-1)];function z3(t,e){return a.openBlock(),a.createElementBlock("svg",F3,j3)}const kh=Ce(V3,[["render",z3]]),U3={},H3={class:"icon icon-call",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},W3=[a.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function K3(t,e){return a.openBlock(),a.createElementBlock("svg",H3,W3)}const ua=Ce(U3,[["render",K3]]),Y3={},G3={class:"icon icon-call-reject",width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg"},Q3=[a.createElementVNode("path",{d:"M5.80469 1.60731C5.59961 1.05067 4.98438 0.787001 4.42773 0.933486L1.84961 1.63661C1.35156 1.7831 1 2.22255 1 2.74989C1 10.0155 6.85938 15.8749 14.125 15.8749C14.6523 15.8749 15.0918 15.5233 15.2383 15.0253L15.9414 12.4472C16.0879 11.8905 15.8242 11.2753 15.2676 11.0702L12.4551 9.89833C11.9863 9.69325 11.4297 9.81044 11.1074 10.2206L9.90625 11.6561C7.85547 10.6893 6.18555 9.01942 5.21875 6.96864L6.6543 5.76747C7.06445 5.4452 7.18164 4.88856 6.97656 4.41981L5.80469 1.60731Z"},null,-1)];function Z3(t,e){return a.openBlock(),a.createElementBlock("svg",G3,Q3)}const Bc=Ce(Y3,[["render",Z3]]),J3={},X3={class:"icon icon-card-view",viewBox:"0 0 24 19",fill:"red",xmlns:"http://www.w3.org/2000/svg"},q3=[a.createElementVNode("path",{d:"M21.375 0.75H2.625C1.57031 0.75 0.75 1.60938 0.75 2.625V16.375C0.75 17.4297 1.57031 18.25 2.625 18.25H21.375C22.3906 18.25 23.25 17.4297 23.25 16.375V2.625C23.25 1.60938 22.3906 0.75 21.375 0.75ZM21.375 16.375H2.625V2.625H21.375V16.375ZM8.875 9.5C10.2422 9.5 11.375 8.40625 11.375 7C11.375 5.63281 10.2422 4.5 8.875 4.5C7.46875 4.5 6.375 5.63281 6.375 7C6.375 8.40625 7.46875 9.5 8.875 9.5ZM5.35938 14.5H12.3516C12.8594 14.5 13.25 14.1875 13.25 13.7578V13.0156C13.25 11.7656 12.0391 10.75 10.5938 10.75C10.2031 10.75 9.89062 11.0625 8.875 11.0625C7.82031 11.0625 7.54688 10.75 7.11719 10.75C5.67188 10.75 4.5 11.7656 4.5 13.0156V13.7578C4.5 14.1875 4.89062 14.5 5.35938 14.5ZM14.8125 12H19.1875C19.3438 12 19.5 11.8828 19.5 11.6875V11.0625C19.5 10.9062 19.3438 10.75 19.1875 10.75H14.8125C14.6172 10.75 14.5 10.9062 14.5 11.0625V11.6875C14.5 11.8828 14.6172 12 14.8125 12ZM14.8125 9.5H19.1875C19.3438 9.5 19.5 9.38281 19.5 9.1875V8.5625C19.5 8.40625 19.3438 8.25 19.1875 8.25H14.8125C14.6172 8.25 14.5 8.40625 14.5 8.5625V9.1875C14.5 9.38281 14.6172 9.5 14.8125 9.5ZM14.8125 7H19.1875C19.3438 7 19.5 6.88281 19.5 6.6875V6.0625C19.5 5.90625 19.3438 5.75 19.1875 5.75H14.8125C14.6172 5.75 14.5 5.90625 14.5 6.0625V6.6875C14.5 6.88281 14.6172 7 14.8125 7Z",fill:"#6B758A"},null,-1)];function eb(t,e){return a.openBlock(),a.createElementBlock("svg",X3,q3)}const Ah=Ce(J3,[["render",eb]]),tb={},nb={xmlns:"http://www.w3.org/2000/svg",width:"18",height:"10"},rb=[a.createElementVNode("path",{d:"M8.828 6.207L14.632.404a1 1 0 0 1 1.414 0l.707.707a1 1 0 0 1 0 1.414L9.682 9.596a.999.999 0 0 1-.854.282.999.999 0 0 1-.853-.282L.904 2.526a1 1 0 0 1 0-1.415L1.61.404a1 1 0 0 1 1.414 0l5.803 5.803z",fill:"#3594CF"},null,-1)];function ob(t,e){return a.openBlock(),a.createElementBlock("svg",nb,rb)}const fa=Ce(tb,[["render",ob]]),ib={},sb={class:"icon icon-caret-left",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10"},ab=[a.createElementVNode("path",{d:"M2.276 4.897l3.27 3.27A.9.9 0 1 1 4.273 9.44L.454 5.62a.898.898 0 0 1-.259-.724.898.898 0 0 1 .26-.724L4.272.354a.9.9 0 1 1 1.273 1.273l-3.27 3.27z"},null,-1)];function lb(t,e){return a.openBlock(),a.createElementBlock("svg",sb,ab)}const $c=Ce(ib,[["render",lb]]),cb={},db={class:"icon icon-caret-right",xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11"},ub=[a.createElementVNode("path",{d:"M4.324 5.703l-3.27-3.27A.9.9 0 1 1 2.327 1.16L6.146 4.98a.898.898 0 0 1 .259.724.898.898 0 0 1-.26.724l-3.818 3.819a.9.9 0 1 1-1.273-1.273l3.27-3.27z"},null,-1)];function fb(t,e){return a.openBlock(),a.createElementBlock("svg",db,ub)}const Rc=Ce(cb,[["render",fb]]),hb={},pb={class:"icon icon-check",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"13",viewBox:"0 0 18 13"},mb=[a.createElementVNode("path",{d:"M6 10.586L1.707 6.293A1 1 0 0 0 .293 7.707l5 5a1 1 0 0 0 1.414 0l11-11A1 1 0 1 0 16.293.293L6 10.586z"},null,-1)];function gb(t,e){return a.openBlock(),a.createElementBlock("svg",pb,mb)}const Ho=Ce(hb,[["render",gb]]),yb={},vb={class:"icon icon-clipboard",viewBox:"0 0 48 48",height:"48",width:"48",xmlns:"http://www.w3.org/2000/svg"},bb=[a.createStaticVNode('<g transform="matrix(2,0,0,2,0,0)"><path d="M20.25,8.249v-3a1.5,1.5,0,0,0-1.5-1.5h-4" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M6.25,3.749h-4a1.5,1.5,0,0,0-1.5,1.5v16.5a1.5,1.5,0,0,0,1.5,1.5h6" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.421,4.736a.751.751,0,0,1-.712.513H7.291a.751.751,0,0,1-.712-.513l-1-3A.749.749,0,0,1,6.291.749h8.418a.749.749,0,0,1,.712.987Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M11.250 11.249 L23.250 11.249 L23.250 23.249 L11.250 23.249 Z" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 14.249L20.25 14.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 17.249L20.25 17.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M14.25 20.249L16.5 20.249" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></g>',1)];function Cb(t,e){return a.openBlock(),a.createElementBlock("svg",vb,bb)}const Th=Ce(yb,[["render",Cb]]),Eb={},Sb={class:"icon icon-close",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"-4 -4 22 22"},_b=[a.createElementVNode("path",{d:"M8.414 7l5.293 5.293a1 1 0 0 1-1.414 1.414L7 8.414l-5.293 5.293a1 1 0 1 1-1.414-1.414L5.586 7 .293 1.707A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 0 1 1.414 1.414L8.414 7z"},null,-1)];function wb(t,e){return a.openBlock(),a.createElementBlock("svg",Sb,_b)}const ha=Ce(Eb,[["render",wb]]),kb={},Ab={class:"icon icon-comment",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Tb=[a.createElementVNode("path",{d:"M1.139 8.555a8.304 8.304 0 0 1 4.59-7.424A8.198 8.198 0 0 1 9.444.25L9.93.25c4.218.233 7.586 3.6 7.82 7.86v.445-.002a8.197 8.197 0 0 1-.88 3.715 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778a8.197 8.197 0 0 1-.742-3.429zm1.047 7.26L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.7 6.7 0 0 0 .719-3.038l.001-.405c-.19-3.454-2.949-6.213-6.362-6.402h-.446a6.703 6.703 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643z"},null,-1)];function Ib(t,e){return a.openBlock(),a.createElementBlock("svg",Ab,Tb)}const Vc=Ce(kb,[["render",Ib]]),xb={},Ob={class:"icon icon-comment-active",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Nb=[a.createElementVNode("g",{"fill-rule":"nonzero",fill:"none"},[a.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"}),a.createElementVNode("path",{fill:"#30B451",d:"M14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"})],-1)];function Mb(t,e){return a.openBlock(),a.createElementBlock("svg",Ob,Nb)}const Ih=Ce(xb,[["render",Mb]]),Lb={},Db={class:"icon icon-comment-static",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18"},Pb=[a.createElementVNode("path",{d:"M9.889 1.75h-.446a6.704 6.704 0 0 0-3.041.72 6.806 6.806 0 0 0-3.763 6.088 6.699 6.699 0 0 0 .72 3.037.75.75 0 0 1 .041.576l-1.214 3.643L5.829 14.6a.75.75 0 0 1 .576.042 6.7 6.7 0 0 0 3.04.72 6.807 6.807 0 0 0 6.086-3.767 6.702 6.702 0 0 0 .72-3.04v-.403a6.83 6.83 0 0 0-.128-.995 4.01 4.01 0 0 0 1.307-.934c.175.603.284 1.235.32 1.888v.444a8.198 8.198 0 0 1-.88 3.714 8.305 8.305 0 0 1-7.424 4.592 8.199 8.199 0 0 1-3.43-.742l-4.779 1.593a.75.75 0 0 1-.949-.95l1.593-4.778A8.304 8.304 0 0 1 5.728 1.13 8.2 8.2 0 0 1 9.445.25L9.93.25c.64.035 1.26.143 1.852.314a4.01 4.01 0 0 0-.937 1.307 6.687 6.687 0 0 0-.956-.122zM14.5 6.5a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"},null,-1)];function Bb(t,e){return a.openBlock(),a.createElementBlock("svg",Db,Pb)}const xh=Ce(Lb,[["render",Bb]]),$b={},Rb={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"},Vb=[a.createElementVNode("title",null,"common-file-empty",-1),a.createElementVNode("g",null,[a.createElementVNode("path",{d:`M3.023,24c-1.241,0-2.25-1.009-2.25-2.25V2.25C0.773,1.009,1.782,0,3.023,0h15c0.59,0,1.147,0.227,1.571,0.639l2.955,2.883
|
|
3
3
|
c0.431,0.422,0.678,1.009,0.678,1.611V21.75c0,1.241-1.009,2.25-2.25,2.25H3.023z M3.023,1.5c-0.414,0-0.75,0.336-0.75,0.75v19.5
|
|
4
4
|
c0,0.414,0.336,0.75,0.75,0.75h17.954c0.414,0,0.75-0.336,0.75-0.75V5.133c0-0.201-0.082-0.397-0.226-0.537l-2.955-2.883
|
|
5
5
|
C18.406,1.576,18.22,1.5,18.023,1.5H3.023z`})],-1)];function Fb(t,e){return a.openBlock(),a.createElementBlock("svg",Rb,Vb)}const Oh=Ce($b,[["render",Fb]]),jb={},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"},Ub=[a.createElementVNode("title",null,"common-file-warning",-1),a.createElementVNode("g",null,[a.createElementVNode("circle",{cx:"17.249",cy:"20.625",r:"1.125"}),a.createElementVNode("path",{d:`M17.249,18.75c-0.414,0-0.75-0.336-0.75-0.75v-3c0-0.414,0.336-0.75,0.75-0.75s0.75,0.336,0.75,0.75v3
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
C194.48,8.24,172.09,1.23,148.13,0.16c1.97,26.33,10.08,50.92,22.88,72.4C175.53,73.86,179.51,76.43,182.48,79.9z"></path><path class="st7" d="M182.54,146.67L182.54,146.67c-0.01-0.01-0.01,0-0.02,0c21.62,28.06,34.51,63.19,34.51,101.35
|
|
54
54
|
c0,4.78-0.25,9.5-0.64,14.18c37.8-23.48,63.72-64.24,66.74-111.25c-26.87-5.02-51.45-16.5-72.1-32.78L182.54,146.67z"></path><path class="st8" d="M182.52,146.67c-21.86,28.14-34.91,63.46-34.91,101.86c0,11.86,1.27,23.43,3.63,34.59
|
|
55
55
|
c23.8-1.58,46-9.02,65.15-20.91c0.4-4.68,0.64-9.4,0.64-14.18C217.04,209.86,204.14,174.73,182.52,146.67z"></path><path class="st9" d="M272.67,87.44c-22.45,5.72-43.03,16.06-60.78,29.87l-0.86,0.86c20.64,16.28,45.23,27.76,72.1,32.78
|
|
56
|
-
c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z"></path></g></g>`,1)];function F7(t,e){return a.openBlock(),a.createElementBlock("svg",R7,V7)}const Yh=Ce($7,[["render",F7]]),j7={},z7={class:"icon icon-luscii-open luscii-open",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U7=[a.createElementVNode("path",{d:"M7 0.5L13.5 11.5H0.5L7 0.5Z",fill:"#FF8800"},null,-1)];function H7(t,e){return a.openBlock(),a.createElementBlock("svg",z7,U7)}const Gh=Ce(j7,[["render",H7]]),W7={},K7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y7=[a.createElementVNode("circle",{cx:"12",cy:"12",r:"6",fill:"#FF6266"},null,-1),a.createElementVNode("circle",{cx:"14.5",cy:"9.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function G7(t,e){return a.openBlock(),a.createElementBlock("svg",K7,Y7)}const Qh=Ce(W7,[["render",G7]]),Q7={},Z7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J7=[a.createElementVNode("path",{d:"M4.92892 13.4142C4.14787 12.6332 4.14787 11.3668 4.92892 10.5858L10.5858 4.92893C11.3668 4.14788 12.6332 4.14788 13.4142 4.92893L19.0711 10.5858C19.8521 11.3668 19.8521 12.6332 19.0711 13.4142L13.4142 19.0711C12.6332 19.8521 11.3668 19.8521 10.5858 19.0711L4.92892 13.4142Z",fill:"#9CA3AF"},null,-1),a.createElementVNode("circle",{cx:"12",cy:"7.05029",r:"1.5",transform:"rotate(-45 12 7.05029)",fill:"white","fill-opacity":"0.1"},null,-1)];function X7(t,e){return a.openBlock(),a.createElementBlock("svg",Z7,J7)}const Zh=Ce(Q7,[["render",X7]]),q7={},e8={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t8=[a.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"#FB923C"},null,-1),a.createElementVNode("circle",{cx:"15.5",cy:"8.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function n8(t,e){return a.openBlock(),a.createElementBlock("svg",e8,t8)}const Jh=Ce(q7,[["render",n8]]),r8={},o8={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},i8=[a.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function s8(t,e){return a.openBlock(),a.createElementBlock("svg",o8,i8)}const Yc=Ce(r8,[["render",s8]]),a8={},l8={class:"icon icon-message",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},c8=[a.createElementVNode("path",{d:"M17.75 2.587V12.2a2.355 2.355 0 0 1-2.35 2.35H2.6A2.355 2.355 0 0 1 .25 12.2V2.61v-.023A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337zm-1.572-.327a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zm.072 1.78L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h12.8c.466 0 .85-.384.85-.85V4.04z"},null,-1)];function d8(t,e){return a.openBlock(),a.createElementBlock("svg",l8,c8)}const Xh=Ce(a8,[["render",d8]]),u8={},f8={class:"icon icon-message-forward",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"19",viewBox:"0 0 21 19"},h8=[a.createElementVNode("path",{d:"M17.75 8.755a5.25 5.25 0 1 1-7.395 5.795H2.6A2.355 2.355 0 0 1 .25 12.2V2.587A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337v6.168zm-1.5-.452V4.04L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h7.669a5.25 5.25 0 0 1 5.981-4.747zm-.072-6.043a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zM15.5 17.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5zm-.31-3l.84.841a.75.75 0 1 1-1.06 1.06l-2.122-2.12a.75.75 0 0 1 0-1.061l2.122-2.122a.75.75 0 0 1 1.06 1.061l-.84.841h2.431a.75.75 0 1 1 0 1.5H15.19z"},null,-1)];function p8(t,e){return a.openBlock(),a.createElementBlock("svg",f8,h8)}const qh=Ce(u8,[["render",p8]]),m8={},g8=[a.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zM344 430.4c20.4-2.8 39.7-9.1 57.3-18.2l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4z"},null,-1)];function y8(t,e){return a.openBlock(),a.createElementBlock("svg",a.mergeProps(t.$attrs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"icon"}),g8,16)}const ep=Ce(m8,[["render",y8]]),v8={},b8={class:"icon icon-microsoft-teams",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 64 64"},C8=[a.createStaticVNode('<path d="M42 40.531V27.205A1.204 1.204 0 0143.204 26h13.494A2.302 2.302 0 0159 28.302v12.23A8.469 8.469 0 0150.531 49h-.062A8.469 8.469 0 0142 40.531z" fill="#5059c9"></path><circle cx="50.5" cy="17.5" r="5.5" fill="#5059c9"></circle><path d="M49.855 49.622q-.17-.008-.35-.022.174.015.35.022zm.157.005l-.077-.002z" fill="#5059c9"></path><circle cx="33" cy="15" r="8" fill="#7b83eb"></circle><path d="M45.667 26H22.333A2.32 2.32 0 0020 28.308v13.846a14 14 0 0028 0V28.308A2.32 2.32 0 0045.667 26z" fill="#7b83eb"></path><path d="M33 26v20.67a1.734 1.734 0 01-.04.4A2.314 2.314 0 0130.67 49h-8.83a10.81 10.81 0 01-.53-1c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M34 26v18.67A3.362 3.362 0 0130.67 48h-9.36c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67v2.61a8.355 8.355 0 01-2 0A8.02 8.02 0 0125.58 18a8.353 8.353 0 01-.33-1h5.42A3.342 3.342 0 0134 20.33z" opacity=".1"></path><path d="M33 26v18.67A2.326 2.326 0 0130.67 47h-9.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M32 20.33v2.61A8.02 8.02 0 0125.58 18h4.09A2.326 2.326 0 0132 20.33zM22.33 26H32v18.67A2.326 2.326 0 0129.67 47h-8.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26z" opacity=".1"></path><rect x="4" y="18" width="28" height="28" rx="2.333" fill="#4b53bc"></rect><path d="M24.008 26.528h-4.564v13.028h-2.909V26.528h-4.543V24h12.016z" fill="#fff"></path>',11)];function E8(t,e){return a.openBlock(),a.createElementBlock("svg",b8,C8)}const tp=Ce(v8,[["render",E8]]),S8={},_8={class:"icon icon-min",viewBox:"0 0 21 2",width:"21",height:"2",xmlns:"http://www.w3.org/2000/svg"},w8=[a.createElementVNode("path",{d:"M1.525 2h18.05a1 1 0 0 0 0-2H1.525a1 1 0 0 0 0 2z"},null,-1)];function k8(t,e){return a.openBlock(),a.createElementBlock("svg",_8,w8)}const np=Ce(S8,[["render",k8]]),A8={},T8={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},I8=[a.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function x8(t,e){return a.openBlock(),a.createElementBlock("svg",T8,I8)}const Gc=Ce(A8,[["render",x8]]),O8={},N8={class:"icon icon-plus",width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"},M8=[a.createElementVNode("path",{d:"M11.604 7.675H7.027v4.807H4.888V7.675h-4.6V5.628h4.6V.844h2.139v4.784h4.577z"},null,-1)];function L8(t,e){return a.openBlock(),a.createElementBlock("svg",N8,M8)}const ga=Ce(O8,[["render",L8]]),D8={},P8={class:"icon icon-refresh",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},B8=[a.createElementVNode("path",{d:"M15.107 5.34l-2.012-1.891a5.795 5.795 0 0 0-9.563 2.163.75.75 0 0 1-1.414-.5 7.295 7.295 0 0 1 12.021-2.74l2.111 1.983v-2.63a.75.75 0 1 1 1.5 0V6.09a.75.75 0 0 1-.75.75h-4.364a.75.75 0 0 1 0-1.5h2.47zM1.75 10.731v2.63a.75.75 0 0 1-1.5 0V8.998a.75.75 0 0 1 .75-.75h4.364a.75.75 0 1 1 0 1.5h-2.47l2.011 1.891a5.795 5.795 0 0 0 9.563-2.164.75.75 0 0 1 1.414.5 7.295 7.295 0 0 1-12.021 2.74L1.75 10.733z"},null,-1)];function $8(t,e){return a.openBlock(),a.createElementBlock("svg",P8,B8)}const rp=Ce(D8,[["render",$8]]),R8={},V8={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},F8=[a.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function j8(t,e){return a.openBlock(),a.createElementBlock("svg",V8,F8)}const Wi=Ce(R8,[["render",j8]]),z8={},U8={"xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-sananet",viewBox:"0 0 145.82668 130.58667",height:"130.58667",width:"145.82668","xml:space":"preserve",id:"svg2",version:"1.1"},H8={id:"metadata8"},W8=a.createStaticVNode('<defs id="defs6"><clipPath id="clipPath32" clipPathUnits="userSpaceOnUse"><path id="path30" d="M 0,0 H 1094 V 979 H 0 Z"></path></clipPath><clipPath id="clipPath38" clipPathUnits="userSpaceOnUse"><path id="path36" d="m 726.516,800.508 c 0,-98.836 -80.121,-178.938 -178.938,-178.938 -98.816,0 -178.926,80.102 -178.926,178.938 0,98.808 80.11,178.918 178.926,178.918 98.817,0 178.938,-80.11 178.938,-178.918 z"></path></clipPath><radialGradient id="radialGradient46" spreadMethod="pad" gradientTransform="matrix(390.284,0,0,-390.284,547.578,925.479)" gradientUnits="userSpaceOnUse" r="1" cy="0" cx="0" fy="0.151961" fx="-0.24949799"><stop id="stop40" offset="0" style="stop-opacity:1;stop-color:#ffffff;"></stop><stop id="stop42" offset="0.715" style="stop-opacity:1;stop-color:#f5772a;"></stop><stop id="stop44" offset="1" style="stop-opacity:1;stop-color:#f5772a;"></stop></radialGradient></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,130.58667)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill:#bfc1e2;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="M 546.836,0 C 250.422,0 0,111.121 0,242.648 c 0,43.133 26.418,84.11 72.6016,119.688 -17.586,-23.32 -27.0821,-48.32 -27.0821,-74.328 0,-127.442 220.2035,-227.2736 501.3165,-227.2736 281.102,0 501.304,99.8316 501.304,227.2736 0,26.008 -9.5,51.015 -27.09,74.336 46.19,-35.586 72.61,-76.563 72.61,-119.696 C 1093.66,111.121 843.242,0 546.836,0"></path><path id="path16" style="fill:#9ba1d3;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,125.039 c -195.918,0 -361.433,66.113 -361.433,144.367 0,29.305 22.75,56.942 61.714,80.028 -17.468,-16.329 -27.097,-34.356 -27.097,-53.274 0,-74.39 143.554,-132.664 326.816,-132.664 183.289,0 326.875,58.274 326.875,132.664 0,18.879 -9.59,36.86 -26.98,53.156 38.843,-23.066 61.519,-50.656 61.519,-79.91 0,-78.254 -165.508,-144.367 -361.414,-144.367"></path><path id="path18" style="fill:#516ab4;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,205.82 c -118.73,0 -219.031,39.27 -219.031,85.754 0,12.711 7.39,24.91 20.625,35.906 -3.379,-6.242 -5.156,-12.773 -5.156,-19.5 0,-47.296 89.414,-84.335 203.562,-84.335 114.133,0 203.535,37.039 203.535,84.335 0,6.727 -1.777,13.243 -5.144,19.481 13.211,-10.996 20.593,-23.176 20.593,-35.887 0,-46.484 -100.285,-85.754 -218.984,-85.754"></path><path id="path20" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 423.379,332.805 c -6.934,-6.223 -10.801,-12.989 -10.801,-19.953 0,-28.321 61.387,-52.247 134.043,-52.247 72.637,0 133.992,23.926 133.992,52.247 0,6.925 -3.816,13.652 -10.672,19.843 1.36,-3.152 2.063,-6.418 2.063,-9.765 0,-29.258 -55.078,-52.168 -125.383,-52.168 -70.293,0 -125.351,22.91 -125.351,52.168 0,3.39 0.722,6.687 2.109,9.875"></path><path id="path22" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 358.75,618.84 c 0,0 144.551,-54.758 144.551,-297.871 h -24.102 c 0,0 -2.187,205.886 -124.824,219.019 l 4.375,78.852"></path><path id="path24" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 735.313,618.84 c 0,0 -144.551,-54.758 -144.551,-297.871 h 24.101 c 0,0 2.188,205.886 124.832,219.019 l -4.382,78.852"></path><g id="g26"><g clip-path="url(#clipPath32)" id="g28"><g clip-path="url(#clipPath38)" id="g34"><path id="path48" style="fill:url(#radialGradient46);fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 536,621 v 1 h -11 v 1 h -6 v 1 h -7 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -3 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 3 h -1 v 3 h -1 v 2 h -1 v 3 h -1 v 4 h -1 v 3 h -1 v 4 h -1 v 4 h -1 v 5 h -1 v 6 h -1 v 7 h -1 v 11 h -1 v 21 h 1 v 11 h 1 v 7 h 1 v 6 h 1 v 5 h 1 v 4 h 1 v 4 h 1 v 3 h 1 v 4 h 1 v 3 h 1 v 2 h 1 v 3 h 1 v 3 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 3 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 7 v 1 h 7 v 1 h 44 v -1 h 6 v -1 h 7 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -6 h 1 v -7 h 1 v -10 h 1 v -25 h -1 v -10 h -1 v -7 h -1 v -6 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -7 v -1 h -6 v -1 h -11 v -1"></path></g></g></g></g></g>',2);function K8(t,e){const n=a.resolveComponent("dc:format"),r=a.resolveComponent("dc:type"),o=a.resolveComponent("cc:Work"),i=a.resolveComponent("rdf:RDF");return a.openBlock(),a.createElementBlock("svg",U8,[a.createElementVNode("metadata",H8,[a.createVNode(i,null,{default:a.withCtx(()=>[a.createVNode(o,{"rdf:about":""},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createTextVNode("image/svg+xml")]),_:1}),a.createVNode(r,{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})]),_:1})]),_:1})]),W8])}const op=Ce(z8,[["render",K8]]),Y8={},G8={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},Q8=[a.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function Z8(t,e){return a.openBlock(),a.createElementBlock("svg",G8,Q8)}const ip=Ce(Y8,[["render",Z8]]),J8={},X8={class:"icon icon-share-screen",width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"},q8=[a.createElementVNode("path",{d:"M-1.31134e-07 12.9961C-5.87372e-08 14.6523 1.34375 15.9961 3 15.9961L9 15.9961C10.6562 15.9961 12 14.6523 12 12.9961L12 10.3711C12 10.1836 11.8437 9.99609 11.625 9.99609L10.875 9.99609C10.6875 9.99609 10.5 10.1836 10.5 10.3711L10.5 12.9961C10.5 13.8398 9.84375 14.4961 9 14.4961L3 14.4961C2.1875 14.4961 1.5 13.8398 1.5 12.9961L1.5 10.3711C1.5 10.1836 1.34375 9.99609 1.125 9.99609L0.375 9.99609C0.1875 9.99609 -2.54072e-07 10.1836 -2.45877e-07 10.3711L-1.31134e-07 12.9961ZM0.625 5.77734L1.25 6.40234C1.375 6.55859 1.625 6.55859 1.78125 6.40234L5.1875 2.87109L5.1875 10.6211C5.1875 10.8398 5.375 10.9961 5.5625 10.9961L6.4375 10.9961C6.65625 10.9961 6.8125 10.8398 6.8125 10.6211L6.8125 2.87109L10.25 6.40234C10.4062 6.55859 10.6562 6.55859 10.7812 6.40234L11.4062 5.77734C11.5625 5.65234 11.5625 5.40234 11.4062 5.24609L6.28125 0.121093C6.125 -0.0351565 5.90625 -0.0351565 5.75 0.121093L0.625 5.24609C0.46875 5.40234 0.46875 5.65234 0.625 5.77734Z"},null,-1)];function e6(t,e){return a.openBlock(),a.createElementBlock("svg",X8,q8)}const sp=Ce(J8,[["render",e6]]),t6={},n6={xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 18 18",width:"18",height:"18"},r6=[a.createElementVNode("g",{transform:"matrix(0.75,0,0,0.75,0,0)"},[a.createElementVNode("path",{d:"M6.750 6.000 A5.250 5.250 0 1 0 17.250 6.000 A5.250 5.250 0 1 0 6.750 6.000 Z",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),a.createElementVNode("path",{d:"M2.25,23.25a9.75,9.75,0,0,1,19.5,0",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)];function o6(t,e){return a.openBlock(),a.createElementBlock("svg",n6,r6)}const ap=Ce(t6,[["render",o6]]),i6={},s6={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},a6=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function l6(t,e){return a.openBlock(),a.createElementBlock("svg",s6,a6)}const lp=Ce(i6,[["render",l6]]),c6={},d6={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},u6=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function f6(t,e){return a.openBlock(),a.createElementBlock("svg",d6,u6)}const Qc=Ce(c6,[["render",f6]]),h6={},p6={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},m6=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function g6(t,e){return a.openBlock(),a.createElementBlock("svg",p6,m6)}const Zc=Ce(h6,[["render",g6]]),y6={},v6={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},b6=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function C6(t,e){return a.openBlock(),a.createElementBlock("svg",v6,b6)}const Jc=Ce(y6,[["render",C6]]),E6={},S6={class:"icon icon-triangle-down",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",viewBox:"0 0 12 8"},_6=[a.createElementVNode("path",{d:"M11.071 2.414L6.414 7.071a1 1 0 0 1-1.414 0L.343 2.414A1 1 0 0 1 1.05.707h9.314a1 1 0 0 1 .707 1.707z"},null,-1)];function w6(t,e){return a.openBlock(),a.createElementBlock("svg",S6,_6)}const cp=Ce(E6,[["render",w6]]),k6={},A6={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T6=[a.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function I6(t,e){return a.openBlock(),a.createElementBlock("svg",A6,T6)}const Xc=Ce(k6,[["render",I6]]),x6={},O6={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},N6=[a.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function M6(t,e){return a.openBlock(),a.createElementBlock("svg",O6,N6)}const qc=Ce(x6,[["render",M6]]),L6={},D6={class:"icon icon-videocall",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14"},P6=[a.createElementVNode("path",{d:"M12.673.25c1.48 0 2.68 1.186 2.68 2.648V4.16l2.76-1.82a.733.733 0 0 1 1.13.502l.007.1v7.703a.73.73 0 0 1-1.035.657l-2.862-1.298v.598c0 1.462-1.2 2.648-2.68 2.648H2.93C1.45 13.25.25 12.064.25 10.602V2.898C.25 1.436 1.45.25 2.93.25h9.743zm0 1.444H2.93a1.21 1.21 0 0 0-1.217 1.204v7.704a1.21 1.21 0 0 0 1.217 1.204h9.744a1.21 1.21 0 0 0 1.218-1.204V5.53 2.898a1.21 1.21 0 0 0-1.218-1.204zm5.115 2.597l-2.435 1.605v2.519l2.435 1.104V4.291z"},null,-1)];function B6(t,e){return a.openBlock(),a.createElementBlock("svg",D6,P6)}const dp=Ce(L6,[["render",B6]]),$6={},R6=[a.createElementVNode("path",{d:"M14.1719 4.1875C14.2422 4.1875 14.2773 4.22266 14.3125 4.25781V8.26562L16 9.56641V8.23047L19.9375 5.76953V12.6602L21.5898 13.9609C21.5898 13.8906 21.625 13.8555 21.625 13.7852V4.75C21.625 4.08203 21.0625 3.625 20.4648 3.625C20.2539 3.625 20.043 3.69531 19.832 3.83594L16 6.26172V4.1875C16 3.27344 15.1562 2.5 14.1719 2.5H6.96484L9.10938 4.1875H14.1719ZM22.5391 16.8086L17.0898 12.5898L14.3125 10.4102L4.29297 2.57031L4.22266 2.5L1.51562 0.390625C1.26953 0.179688 0.917969 0.25 0.707031 0.460938L0.355469 0.917969C0.179688 1.16406 0.214844 1.51562 0.460938 1.69141L2.00781 2.92188L3.37891 4.01172L21.4844 18.1445C21.6953 18.3203 22.082 18.2852 22.2578 18.0391L22.6094 17.6172C22.8203 17.3711 22.75 17.0195 22.5391 16.8086ZM3.16797 14.3125C3.09766 14.3125 3.0625 14.3125 3.0625 14.2773V5.875L1.375 4.57422V14.3477C1.375 15.2617 2.18359 16 3.16797 16H14.1719C14.6641 16 15.0859 15.8242 15.4023 15.543L13.8555 14.3125H3.16797Z"},null,-1)];function V6(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps(t.$attrs,{class:"icon icon-video-disabled",width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),R6,16)}const up=Ce($6,[["render",V6]]),F6={},j6={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-exclamation-triangle",viewBox:"0 0 16 16"},z6=[a.createElementVNode("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"},null,-1),a.createElementVNode("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"},null,-1)];function U6(t,e){return a.openBlock(),a.createElementBlock("svg",j6,z6)}const fp=Ce(F6,[["render",U6]]),H6={},W6={width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-zorgkaart-nederland"},K6=[a.createStaticVNode('<path d="M61.5 38.1C60 38.1 58.8 36.9 58.8 35.4C58.8 33.9 60 32.7 61.5 32.7C63 32.7 64.2 33.9 64.2 35.4C64.2 36.9 63 38.1 61.5 38.1Z" fill="#F29018"></path><path d="M68.1 38.1C66.6 38.1 65.4 36.9 65.4 35.4C65.4 33.9 66.6 32.7 68.1 32.7C69.6 32.7 70.8 33.9 70.8 35.4C70.8 36.9 69.6 38.1 68.1 38.1Z" fill="#F29018"></path><path d="M74.6 38.1C73.1 38.1 71.9 36.9 71.9 35.4C71.9 33.9 73.1 32.7 74.6 32.7C76.1 32.7 77.3 33.9 77.3 35.4C77.3 36.9 76.1 38.1 74.6 38.1Z" fill="#F29018"></path><path d="M81.1 38.1C79.6 38.1 78.4 36.9 78.4 35.4C78.4 33.9 79.6 32.7 81.1 32.7C82.6 32.7 83.8 33.9 83.8 35.4C83.8 36.9 82.6 38.1 81.1 38.1Z" fill="#F29018"></path><path d="M61.5 44.6C60 44.6 58.8 43.4 58.8 41.9C58.8 40.4 60 39.2 61.5 39.2C63 39.2 64.2 40.4 64.2 41.9C64.2 43.4 63 44.6 61.5 44.6Z" fill="#F29018"></path><path d="M68.1 44.6C66.6 44.6 65.4 43.4 65.4 41.9C65.4 40.4 66.6 39.2 68.1 39.2C69.6 39.2 70.8 40.4 70.8 41.9C70.8 43.4 69.6 44.6 68.1 44.6Z" fill="#F29018"></path><path d="M74.6 44.6C73.1 44.6 71.9 43.4 71.9 41.9C71.9 40.4 73.1 39.2 74.6 39.2C76.1 39.2 77.3 40.4 77.3 41.9C77.3 43.4 76.1 44.6 74.6 44.6Z" fill="#F29018"></path><path d="M61.5 51.2C60 51.2 58.8 50 58.8 48.5C58.8 47 60 45.8 61.5 45.8C63 45.8 64.2 47 64.2 48.5C64.2 50 63 51.2 61.5 51.2Z" fill="#F29018"></path><path d="M68.1 51.2C66.6 51.2 65.4 50 65.4 48.5C65.4 47 66.6 45.8 68.1 45.8C69.6 45.8 70.8 47 70.8 48.5C70.8 50 69.6 51.2 68.1 51.2Z" fill="#F29018"></path><path d="M74.6 51.2C73.1 51.2 71.9 50 71.9 48.5C71.9 47 73.1 45.8 74.6 45.8C76.1 45.8 77.3 47 77.3 48.5C77.3 50 76.1 51.2 74.6 51.2Z" fill="#F29018"></path><path d="M61.5 57.7C60 57.7 58.8 56.5 58.8 55C58.8 53.5 60 52.3 61.5 52.3C63 52.3 64.2 53.5 64.2 55C64.2 56.5 63 57.7 61.5 57.7Z" fill="#F29018"></path><path d="M68.1 57.7C66.6 57.7 65.4 56.5 65.4 55C65.4 53.5 66.6 52.3 68.1 52.3C69.6 52.3 70.8 53.5 70.8 55C70.8 56.5 69.6 57.7 68.1 57.7Z" fill="#F29018"></path><path d="M74.6 57.7C73.1 57.7 71.9 56.5 71.9 55C71.9 53.5 73.1 52.3 74.6 52.3C76.1 52.3 77.3 53.5 77.3 55C77.3 56.5 76.1 57.7 74.6 57.7Z" fill="#F29018"></path><path d="M41.9 57.7C40.4 57.7 39.2 56.5 39.2 55C39.2 53.5 40.4 52.3 41.9 52.3C43.4 52.3 44.6 53.5 44.6 55C44.6 56.5 43.4 57.7 41.9 57.7Z" fill="#F29018"></path><path d="M35.4 57.7C33.9 57.7 32.7 56.5 32.7 55C32.7 53.5 33.9 52.3 35.4 52.3C36.9 52.3 38.1 53.5 38.1 55C38.1 56.5 36.9 57.7 35.4 57.7Z" fill="#F29018"></path><path d="M41.9 51.2C40.4 51.2 39.2 50 39.2 48.5C39.2 47 40.4 45.8 41.9 45.8C43.4 45.8 44.6 47 44.6 48.5C44.6 50 43.4 51.2 41.9 51.2Z" fill="#F29018"></path><path d="M35.4 51.2C33.9 51.2 32.7 50 32.7 48.5C32.7 47 33.9 45.8 35.4 45.8C36.9 45.8 38.1 47 38.1 48.5C38.1 50 36.9 51.2 35.4 51.2Z" fill="#F29018"></path><path d="M41.9 44.6C40.4 44.6 39.2 43.4 39.2 41.9C39.2 40.4 40.4 39.2 41.9 39.2C43.4 39.2 44.6 40.4 44.6 41.9C44.6 43.4 43.4 44.6 41.9 44.6Z" fill="#F29018"></path><path d="M35.4 44.6C33.9 44.6 32.7 43.4 32.7 41.9C32.7 40.4 33.9 39.2 35.4 39.2C36.9 39.2 38.1 40.4 38.1 41.9C38.1 43.4 36.9 44.6 35.4 44.6Z" fill="#F29018"></path><path d="M41.9 38.1C40.4 38.1 39.2 36.9 39.2 35.4C39.2 33.9 40.4 32.7 41.9 32.7C43.4 32.7 44.6 33.9 44.6 35.4C44.6 36.9 43.4 38.1 41.9 38.1Z" fill="#F29018"></path><path d="M35.4 38.1C33.9 38.1 32.7 36.9 32.7 35.4C32.7 33.9 33.9 32.7 35.4 32.7C36.9 32.7 38.1 33.9 38.1 35.4C38.1 36.9 36.9 38.1 35.4 38.1Z" fill="#F29018"></path><path d="M48.4 57.7C46.9 57.7 45.7 56.5 45.7 55C45.7 53.5 46.9 52.3 48.4 52.3C49.9 52.3 51.1 53.5 51.1 55C51.2 56.5 49.9 57.7 48.4 57.7Z" fill="#F29018"></path><path d="M55 57.7C53.5 57.7 52.3 56.5 52.3 55C52.3 53.5 53.5 52.3 55 52.3C56.5 52.3 57.7 53.5 57.7 55C57.7 56.5 56.5 57.7 55 57.7Z" fill="#F29018"></path><path d="M61.5 64.3C60 64.3 58.8 63.1 58.8 61.6C58.8 60.1 60 58.9 61.5 58.9C63 58.9 64.2 60.1 64.2 61.6C64.2 63 63 64.3 61.5 64.3Z" fill="#F29018"></path><path d="M68.1 64.3C66.6 64.3 65.4 63.1 65.4 61.6C65.4 60.1 66.6 58.9 68.1 58.9C69.6 58.9 70.8 60.1 70.8 61.6C70.8 63 69.6 64.3 68.1 64.3Z" fill="#F29018"></path><path d="M74.6 64.3C73.1 64.3 71.9 63.1 71.9 61.6C71.9 60.1 73.1 58.9 74.6 58.9C76.1 58.9 77.3 60.1 77.3 61.6C77.3 63 76.1 64.3 74.6 64.3Z" fill="#F29018"></path><path d="M41.9 64.3C40.4 64.3 39.2 63.1 39.2 61.6C39.2 60.1 40.4 58.9 41.9 58.9C43.4 58.9 44.6 60.1 44.6 61.6C44.6 63 43.4 64.3 41.9 64.3Z" fill="#F29018"></path><path d="M35.4 64.3C33.9 64.3 32.7 63.1 32.7 61.6C32.7 60.1 33.9 58.9 35.4 58.9C36.9 58.9 38.1 60 38.1 61.5C38.1 63 36.9 64.3 35.4 64.3Z" fill="#F29018"></path><path d="M28.8 64.3C27.3 64.3 26.1 63.1 26.1 61.6C26.1 60.1 27.3 58.9 28.8 58.9C30.3 58.9 31.5 60.1 31.5 61.6C31.5 63 30.3 64.3 28.8 64.3Z" fill="#F29018"></path><path d="M48.4 64.3C46.9 64.3 45.7 63.1 45.7 61.6C45.7 60.1 46.9 58.9 48.4 58.9C49.9 58.9 51.1 60.1 51.1 61.6C51.2 63 49.9 64.3 48.4 64.3Z" fill="#F29018"></path><path d="M55 64.3C53.5 64.3 52.3 63.1 52.3 61.6C52.3 60.1 53.5 58.9 55 58.9C56.5 58.9 57.7 60.1 57.7 61.6C57.7 63 56.5 64.3 55 64.3Z" fill="#F29018"></path><path d="M61.5 70.8C60 70.8 58.8 69.6 58.8 68.1C58.8 66.6 60 65.4 61.5 65.4C63 65.4 64.2 66.6 64.2 68.1C64.2 69.6 63 70.8 61.5 70.8Z" fill="#F29018"></path><path d="M68.1 70.8C66.6 70.8 65.4 69.6 65.4 68.1C65.4 66.6 66.6 65.4 68.1 65.4C69.6 65.4 70.8 66.6 70.8 68.1C70.8 69.6 69.6 70.8 68.1 70.8Z" fill="#F29018"></path><path d="M74.6 70.8C73.1 70.8 71.9 69.6 71.9 68.1C71.9 66.6 73.1 65.4 74.6 65.4C76.1 65.4 77.3 66.6 77.3 68.1C77.3 69.6 76.1 70.8 74.6 70.8Z" fill="#F29018"></path><path d="M41.9 70.8C40.4 70.8 39.2 69.6 39.2 68.1C39.2 66.6 40.4 65.4 41.9 65.4C43.4 65.4 44.6 66.6 44.6 68.1C44.6 69.6 43.4 70.8 41.9 70.8Z" fill="#F29018"></path><path d="M35.4 70.8C33.9 70.8 32.7 69.6 32.7 68.1C32.7 66.6 33.9 65.4 35.4 65.4C36.9 65.4 38.1 66.6 38.1 68.1C38.1 69.6 36.9 70.8 35.4 70.8Z" fill="#F29018"></path><path d="M28.8 70.8C27.3 70.8 26.1 69.6 26.1 68.1C26.1 66.6 27.3 65.4 28.8 65.4C30.3 65.4 31.5 66.6 31.5 68.1C31.5 69.6 30.3 70.8 28.8 70.8Z" fill="#F29018"></path><path d="M48.4 70.8C46.9 70.8 45.7 69.6 45.7 68.1C45.7 66.6 46.9 65.4 48.4 65.4C49.9 65.4 51.1 66.6 51.1 68.1C51.2 69.6 49.9 70.8 48.4 70.8Z" fill="#F29018"></path><path d="M55 70.8C53.5 70.8 52.3 69.6 52.3 68.1C52.3 66.6 53.5 65.4 55 65.4C56.5 65.4 57.7 66.6 57.7 68.1C57.7 69.6 56.5 70.8 55 70.8Z" fill="#F29018"></path><path d="M55 77.3C53.5 77.3 52.3 76.1 52.3 74.6C52.3 73.1 53.5 71.9 55 71.9C56.5 71.9 57.7 73.1 57.7 74.6C57.7 76.1 56.5 77.3 55 77.3Z" fill="#F29018"></path><path d="M61.5 77.3C60 77.3 58.8 76.1 58.8 74.6C58.8 73.1 60 71.9 61.5 71.9C63 71.9 64.2 73.1 64.2 74.6C64.2 76.1 63 77.3 61.5 77.3Z" fill="#F29018"></path><path d="M68.1 77.3C66.6 77.3 65.4 76.1 65.4 74.6C65.4 73.1 66.6 71.9 68.1 71.9C69.6 71.9 70.8 73.1 70.8 74.6C70.8 76.1 69.6 77.3 68.1 77.3Z" fill="#F29018"></path><path d="M35.4 77.3C33.9 77.3 32.7 76.1 32.7 74.6C32.7 73.1 33.9 71.9 35.4 71.9C36.9 71.9 38.1 73.1 38.1 74.6C38.1 76.1 36.9 77.3 35.4 77.3Z" fill="#F29018"></path><path d="M28.8 77.3C27.3 77.3 26.1 76.1 26.1 74.6C26.1 73.1 27.3 71.9 28.8 71.9C30.3 71.9 31.5 73.1 31.5 74.6C31.5 76.1 30.3 77.3 28.8 77.3Z" fill="#F29018"></path><path d="M22.3 77.3C20.8 77.3 19.6 76.1 19.6 74.6C19.6 73.1 20.8 71.9 22.3 71.9C23.8 71.9 25 73.1 25 74.6C25 76.1 23.8 77.3 22.3 77.3Z" fill="#F29018"></path><path d="M41.9 77.3C40.4 77.3 39.2 76.1 39.2 74.6C39.2 73.1 40.4 71.9 41.9 71.9C43.4 71.9 44.6 73.1 44.6 74.6C44.6 76.1 43.4 77.3 41.9 77.3Z" fill="#F29018"></path><path d="M48.4 77.3C46.9 77.3 45.7 76.1 45.7 74.6C45.7 73.1 46.9 71.9 48.4 71.9C49.9 71.9 51.1 73.1 51.1 74.6C51.2 76.1 49.9 77.3 48.4 77.3Z" fill="#F29018"></path><path d="M55 83.9C53.5 83.9 52.3 82.7 52.3 81.2C52.3 79.7 53.5 78.5 55 78.5C56.5 78.5 57.7 79.7 57.7 81.2C57.7 82.7 56.5 83.9 55 83.9Z" fill="#F29018"></path><path d="M61.5 83.9C60 83.9 58.8 82.7 58.8 81.2C58.8 79.7 60 78.5 61.5 78.5C63 78.5 64.2 79.7 64.2 81.2C64.2 82.7 63 83.9 61.5 83.9Z" fill="#F29018"></path><path d="M68.1 83.9C66.6 83.9 65.4 82.7 65.4 81.2C65.4 79.7 66.6 78.5 68.1 78.5C69.6 78.5 70.8 79.7 70.8 81.2C70.8 82.7 69.6 83.9 68.1 83.9Z" fill="#F29018"></path><path d="M35.4 83.9C33.9 83.9 32.7 82.7 32.7 81.2C32.7 79.7 33.9 78.5 35.4 78.5C36.9 78.5 38.1 79.7 38.1 81.2C38.1 82.7 36.9 83.9 35.4 83.9Z" fill="#F29018"></path><path d="M28.8 83.9C27.3 83.9 26.1 82.7 26.1 81.2C26.1 79.7 27.3 78.5 28.8 78.5C30.3 78.5 31.5 79.7 31.5 81.2C31.5 82.7 30.3 83.9 28.8 83.9Z" fill="#F29018"></path><path d="M22.3 83.9C20.8 83.9 19.6 82.7 19.6 81.2C19.6 79.7 20.8 78.5 22.3 78.5C23.8 78.5 25 79.7 25 81.2C25 82.7 23.8 83.9 22.3 83.9Z" fill="#F29018"></path><path d="M41.9 83.9C40.4 83.9 39.2 82.7 39.2 81.2C39.2 79.7 40.4 78.5 41.9 78.5C43.4 78.5 44.6 79.7 44.6 81.2C44.6 82.7 43.4 83.9 41.9 83.9Z" fill="#F29018"></path><path d="M48.4 83.9C46.9 83.9 45.7 82.7 45.7 81.2C45.7 79.7 46.9 78.5 48.4 78.5C49.9 78.5 51.1 79.7 51.1 81.2C51.2 82.7 49.9 83.9 48.4 83.9Z" fill="#F29018"></path><path d="M55 90.4C53.5 90.4 52.3 89.2 52.3 87.7C52.3 86.2 53.5 85 55 85C56.5 85 57.7 86.2 57.7 87.7C57.7 89.2 56.5 90.4 55 90.4Z" fill="#F29018"></path><path d="M61.5 90.4C60 90.4 58.8 89.2 58.8 87.7C58.8 86.2 60 85 61.5 85C63 85 64.2 86.2 64.2 87.7C64.2 89.2 63 90.4 61.5 90.4Z" fill="#F29018"></path><path d="M68.1 90.4C66.6 90.4 65.4 89.2 65.4 87.7C65.4 86.2 66.6 85 68.1 85C69.6 85 70.8 86.2 70.8 87.7C70.8 89.2 69.6 90.4 68.1 90.4Z" fill="#F29018"></path><path d="M74.6 90.4C73.1 90.4 71.9 89.2 71.9 87.7C71.9 86.2 73.1 85 74.6 85C76.1 85 77.3 86.2 77.3 87.7C77.3 89.2 76.1 90.4 74.6 90.4Z" fill="#F29018"></path><path d="M35.4 90.4C33.9 90.4 32.7 89.2 32.7 87.7C32.7 86.2 33.9 85 35.4 85C36.9 85 38.1 86.2 38.1 87.7C38.1 89.2 36.9 90.4 35.4 90.4Z" fill="#F29018"></path><path d="M28.8 90.4C27.3 90.4 26.1 89.2 26.1 87.7C26.1 86.2 27.3 85 28.8 85C30.3 85 31.5 86.2 31.5 87.7C31.5 89.2 30.3 90.4 28.8 90.4Z" fill="#F29018"></path><path d="M22.3 90.4C20.8 90.4 19.6 89.2 19.6 87.7C19.6 86.2 20.8 85 22.3 85C23.8 85 25 86.2 25 87.7C25 89.2 23.8 90.4 22.3 90.4Z" fill="#F29018"></path><path d="M15.8 90.4C14.3 90.4 13.1 89.2 13.1 87.7C13.1 86.2 14.3 85 15.8 85C17.3 85 18.5 86.2 18.5 87.7C18.5 89.2 17.3 90.4 15.8 90.4Z" fill="#F29018"></path><path d="M41.9 90.4C40.4 90.4 39.2 89.2 39.2 87.7C39.2 86.2 40.4 85 41.9 85C43.4 85 44.6 86.2 44.6 87.7C44.6 89.2 43.4 90.4 41.9 90.4Z" fill="#F29018"></path><path d="M48.4 90.4C46.9 90.4 45.7 89.2 45.7 87.7C45.7 86.2 46.9 85 48.4 85C49.9 85 51.1 86.2 51.1 87.7C51.2 89.2 49.9 90.4 48.4 90.4Z" fill="#F29018"></path><path d="M55 96.9C53.5 96.9 52.3 95.7 52.3 94.2C52.3 92.7 53.5 91.5 55 91.5C56.5 91.5 57.7 92.7 57.7 94.2C57.7 95.7 56.5 96.9 55 96.9Z" fill="#F29018"></path><path d="M61.5 96.9C60 96.9 58.8 95.7 58.8 94.2C58.8 92.7 60 91.5 61.5 91.5C63 91.5 64.2 92.7 64.2 94.2C64.2 95.7 63 96.9 61.5 96.9Z" fill="#F29018"></path><path d="M68.1 96.9C66.6 96.9 65.4 95.7 65.4 94.2C65.4 92.7 66.6 91.5 68.1 91.5C69.6 91.5 70.8 92.7 70.8 94.2C70.8 95.7 69.6 96.9 68.1 96.9Z" fill="#F29018"></path><path d="M74.6 96.9C73.1 96.9 71.9 95.7 71.9 94.2C71.9 92.7 73.1 91.5 74.6 91.5C76.1 91.5 77.3 92.7 77.3 94.2C77.3 95.7 76.1 96.9 74.6 96.9Z" fill="#F29018"></path><path d="M68.1 103.5C66.6 103.5 65.4 102.3 65.4 100.8C65.4 99.3 66.6 98.1 68.1 98.1C69.6 98.1 70.8 99.3 70.8 100.8C70.8 102.3 69.6 103.5 68.1 103.5Z" fill="#F29018"></path><path d="M74.6 103.5C73.1 103.5 71.9 102.3 71.9 100.8C71.9 99.3 73.1 98.1 74.6 98.1C76.1 98.1 77.3 99.3 77.3 100.8C77.3 102.3 76.1 103.5 74.6 103.5Z" fill="#F29018"></path><path d="M68.1 116.6C66.6 116.6 65.4 115.4 65.4 113.9C65.4 112.4 66.6 111.2 68.1 111.2C69.6 111.2 70.8 112.4 70.8 113.9C70.8 115.3 69.6 116.6 68.1 116.6Z" fill="#F29018"></path><path d="M74.6 116.6C73.1 116.6 71.9 115.4 71.9 113.9C71.9 112.4 73.1 111.2 74.6 111.2C76.1 111.2 77.3 112.4 77.3 113.9C77.3 115.3 76.1 116.6 74.6 116.6Z" fill="#F29018"></path><path d="M74.6 110C73.1 110 71.9 108.8 71.9 107.3C71.9 105.8 73.1 104.6 74.6 104.6C76.1 104.6 77.3 105.8 77.3 107.3C77.3 108.8 76.1 110 74.6 110Z" fill="#F29018"></path><path d="M68.1 123.1C66.6 123.1 65.4 121.9 65.4 120.4C65.4 118.9 66.6 117.7 68.1 117.7C69.6 117.7 70.8 118.9 70.8 120.4C70.8 121.9 69.6 123.1 68.1 123.1Z" fill="#F29018"></path><path d="M74.6 123.1C73.1 123.1 71.9 121.9 71.9 120.4C71.9 118.9 73.1 117.7 74.6 117.7C76.1 117.7 77.3 118.9 77.3 120.4C77.3 121.9 76.1 123.1 74.6 123.1Z" fill="#F29018"></path><path d="M35.4 96.9C33.9 96.9 32.7 95.7 32.7 94.2C32.7 92.7 33.9 91.5 35.4 91.5C36.9 91.5 38.1 92.7 38.1 94.2C38.1 95.7 36.9 96.9 35.4 96.9Z" fill="#F29018"></path><path d="M28.8 96.9C27.3 96.9 26.1 95.7 26.1 94.2C26.1 92.7 27.3 91.5 28.8 91.5C30.3 91.5 31.5 92.7 31.5 94.2C31.5 95.7 30.3 96.9 28.8 96.9Z" fill="#F29018"></path><path d="M22.3 96.9C20.8 96.9 19.6 95.7 19.6 94.2C19.6 92.7 20.8 91.5 22.3 91.5C23.8 91.5 25 92.7 25 94.2C25 95.7 23.8 96.9 22.3 96.9Z" fill="#F29018"></path><path d="M15.8 96.9C14.3 96.9 13.1 95.7 13.1 94.2C13.1 92.7 14.3 91.5 15.8 91.5C17.3 91.5 18.5 92.7 18.5 94.2C18.5 95.7 17.3 96.9 15.8 96.9Z" fill="#F29018"></path><path d="M9.2 96.9C7.7 96.9 6.5 95.7 6.5 94.2C6.5 92.7 7.7 91.5 9.2 91.5C10.7 91.5 11.9 92.7 11.9 94.2C11.9 95.7 10.7 96.9 9.2 96.9Z" fill="#F29018"></path><path d="M22.3 103.5C20.8 103.5 19.6 102.3 19.6 100.8C19.6 99.3 20.8 98.1 22.3 98.1C23.8 98.1 25 99.3 25 100.8C25 102.3 23.8 103.5 22.3 103.5Z" fill="#F29018"></path><path d="M15.8 103.5C14.3 103.5 13.1 102.3 13.1 100.8C13.1 99.3 14.3 98.1 15.8 98.1C17.3 98.1 18.5 99.3 18.5 100.8C18.5 102.3 17.3 103.5 15.8 103.5Z" fill="#F29018"></path><path d="M9.2 103.5C7.7 103.5 6.5 102.3 6.5 100.8C6.5 99.3 7.7 98.1 9.2 98.1C10.7 98.1 11.9 99.3 11.9 100.8C11.9 102.3 10.7 103.5 9.2 103.5Z" fill="#F29018"></path><path d="M2.7 103.5C1.2 103.5 0 102.3 0 100.8C0 99.3 1.2 98.1 2.7 98.1C4.2 98.1 5.4 99.3 5.4 100.8C5.4 102.3 4.2 103.5 2.7 103.5Z" fill="#F29018"></path><path d="M41.9 96.9C40.4 96.9 39.2 95.7 39.2 94.2C39.2 92.7 40.4 91.5 41.9 91.5C43.4 91.5 44.6 92.7 44.6 94.2C44.6 95.7 43.4 96.9 41.9 96.9Z" fill="#F29018"></path><path d="M48.4 96.9C46.9 96.9 45.7 95.7 45.7 94.2C45.7 92.7 46.9 91.5 48.4 91.5C49.9 91.5 51.1 92.7 51.1 94.2C51.2 95.7 49.9 96.9 48.4 96.9Z" fill="#F29018"></path><path d="M81.1 44.6C79.6 44.6 78.4 43.4 78.4 41.9C78.4 40.4 79.6 39.2 81.1 39.2C82.6 39.2 83.8 40.4 83.8 41.9C83.9 43.4 82.6 44.6 81.1 44.6Z" fill="#F29018"></path><path d="M41.9 31.6C40.4 31.6 39.2 30.4 39.2 28.9C39.2 27.4 40.4 26.2 41.9 26.2C43.4 26.2 44.6 27.4 44.6 28.9C44.6 30.4 43.4 31.6 41.9 31.6Z" fill="#F29018"></path><path d="M61.5 31.6C60 31.6 58.8 30.4 58.8 28.9C58.8 27.4 60 26.2 61.5 26.2C63 26.2 64.2 27.4 64.2 28.9C64.2 30.4 63 31.6 61.5 31.6Z" fill="#F29018"></path><path d="M68.1 31.6C66.6 31.6 65.4 30.4 65.4 28.9C65.4 27.4 66.6 26.2 68.1 26.2C69.6 26.2 70.8 27.4 70.8 28.9C70.8 30.4 69.6 31.6 68.1 31.6Z" fill="#F29018"></path><path d="M74.6 31.6C73.1 31.6 71.9 30.4 71.9 28.9C71.9 27.4 73.1 26.2 74.6 26.2C76.1 26.2 77.3 27.4 77.3 28.9C77.3 30.4 76.1 31.6 74.6 31.6Z" fill="#F29018"></path><path d="M81.1 31.6C79.6 31.6 78.4 30.4 78.4 28.9C78.4 27.4 79.6 26.2 81.1 26.2C82.6 26.2 83.8 27.4 83.8 28.9C83.8 30.4 82.6 31.6 81.1 31.6Z" fill="#F29018"></path><path d="M61.5 25C60 25 58.8 23.8 58.8 22.3C58.8 20.8 60 19.6 61.5 19.6C63 19.6 64.2 20.8 64.2 22.3C64.2 23.8 63 25 61.5 25Z" fill="#F29018"></path><path d="M55 31.6C53.5 31.6 52.3 30.4 52.3 28.9C52.3 27.4 53.5 26.2 55 26.2C56.5 26.2 57.7 27.4 57.7 28.9C57.7 30.4 56.5 31.6 55 31.6Z" fill="#F29018"></path><path d="M55 25C53.5 25 52.3 23.8 52.3 22.3C52.3 20.8 53.5 19.6 55 19.6C56.5 19.6 57.7 20.8 57.7 22.3C57.7 23.8 56.5 25 55 25Z" fill="#F29018"></path><path d="M41.9 18.5C40.4 18.5 39.2 17.3 39.2 15.8C39.2 14.3 40.4 13.1 41.9 13.1C43.4 13.1 44.6 14.3 44.6 15.8C44.6 17.3 43.4 18.5 41.9 18.5Z" fill="#F29018"></path><path d="M48.4 11.9C46.9 11.9 45.7 10.7 45.7 9.2C45.7 7.7 46.9 6.5 48.4 6.5C49.9 6.5 51.1 7.7 51.1 9.2C51.2 10.7 49.9 11.9 48.4 11.9Z" fill="#F29018"></path><path d="M55 5.4C53.5 5.4 52.3 4.2 52.3 2.7C52.3 1.2 53.5 0 55 0C56.5 0 57.7 1.2 57.7 2.7C57.7 4.2 56.5 5.4 55 5.4Z" fill="#F29018"></path><path d="M68.1 25C66.6 25 65.4 23.8 65.4 22.3C65.4 20.8 66.6 19.6 68.1 19.6C69.6 19.6 70.8 20.8 70.8 22.3C70.8 23.8 69.6 25 68.1 25Z" fill="#F29018"></path><path d="M74.6 25C73.1 25 71.9 23.8 71.9 22.3C71.9 20.8 73.1 19.6 74.6 19.6C76.1 19.6 77.3 20.8 77.3 22.3C77.3 23.8 76.1 25 74.6 25Z" fill="#F29018"></path><path d="M81.1 25C79.6 25 78.4 23.8 78.4 22.3C78.4 20.8 79.6 19.6 81.1 19.6C82.6 19.6 83.8 20.8 83.8 22.3C83.8 23.8 82.6 25 81.1 25Z" fill="#F29018"></path><path d="M61.5 18.5C60 18.5 58.8 17.3 58.8 15.8C58.8 14.3 60 13.1 61.5 13.1C63 13.1 64.2 14.3 64.2 15.8C64.2 17.3 63 18.5 61.5 18.5Z" fill="#F29018"></path><path d="M68.1 18.5C66.6 18.5 65.4 17.3 65.4 15.8C65.4 14.3 66.6 13.1 68.1 13.1C69.6 13.1 70.8 14.3 70.8 15.8C70.8 17.3 69.6 18.5 68.1 18.5Z" fill="#F29018"></path><path d="M74.6 18.5C73.1 18.5 71.9 17.3 71.9 15.8C71.9 14.3 73.1 13.1 74.6 13.1C76.1 13.1 77.3 14.3 77.3 15.8C77.3 17.3 76.1 18.5 74.6 18.5Z" fill="#F29018"></path><path d="M81.1 18.5C79.6 18.5 78.4 17.3 78.4 15.8C78.4 14.3 79.6 13.1 81.1 13.1C82.6 13.1 83.8 14.3 83.8 15.8C83.8 17.3 82.6 18.5 81.1 18.5Z" fill="#F29018"></path><path d="M87.7 31.6C86.2 31.6 85 30.4 85 28.9C85 27.4 86.2 26.2 87.7 26.2C89.2 26.2 90.4 27.4 90.4 28.9C90.4 30.4 89.2 31.6 87.7 31.6Z" fill="#F29018"></path><path d="M87.7 25C86.2 25 85 23.8 85 22.3C85 20.8 86.2 19.6 87.7 19.6C89.2 19.6 90.4 20.8 90.4 22.3C90.4 23.8 89.2 25 87.7 25Z" fill="#F29018"></path><path d="M87.7 18.5C86.2 18.5 85 17.3 85 15.8C85 14.3 86.2 13.1 87.7 13.1C89.2 13.1 90.4 14.3 90.4 15.8C90.4 17.3 89.2 18.5 87.7 18.5Z" fill="#F29018"></path><path d="M68.1 11.9C66.6 11.9 65.4 10.7 65.4 9.2C65.4 7.7 66.6 6.5 68.1 6.5C69.6 6.5 70.8 7.7 70.8 9.2C70.8 10.7 69.6 11.9 68.1 11.9Z" fill="#F29018"></path><path d="M74.6 11.9C73.1 11.9 71.9 10.7 71.9 9.2C71.9 7.7 73.1 6.5 74.6 6.5C76.1 6.5 77.3 7.7 77.3 9.2C77.3 10.7 76.1 11.9 74.6 11.9Z" fill="#F29018"></path><path d="M81.1 11.9C79.6 11.9 78.4 10.7 78.4 9.2C78.4 7.7 79.6 6.5 81.1 6.5C82.6 6.5 83.8 7.7 83.8 9.2C83.9 10.7 82.6 11.9 81.1 11.9Z" fill="#F29018"></path><path d="M87.7 11.9C86.2 11.9 85 10.7 85 9.2C85 7.7 86.2 6.5 87.7 6.5C89.2 6.5 90.4 7.7 90.4 9.2C90.4 10.7 89.2 11.9 87.7 11.9Z" fill="#F29018"></path><path d="M94.2 25C92.7 25 91.5 23.8 91.5 22.3C91.5 20.8 92.7 19.6 94.2 19.6C95.7 19.6 96.9 20.8 96.9 22.3C96.9 23.8 95.7 25 94.2 25Z" fill="#F29018"></path><path d="M94.2 18.5C92.7 18.5 91.5 17.3 91.5 15.8C91.5 14.3 92.7 13.1 94.2 13.1C95.7 13.1 96.9 14.3 96.9 15.8C96.9 17.3 95.7 18.5 94.2 18.5Z" fill="#F29018"></path><path d="M135.1 58.6V61.6C135.1 61.6 135.1 64.6 132.1 64.6H120.1V75V76.6C120.1 76.7 120.1 76.8 120.1 76.9C120.1 77 120.1 77 120.1 77.1C120 77.8 119.8 78.3 119.4 78.6C119.4 78.6 119.4 78.7 119.3 78.7C119.2 78.8 119.1 78.9 119 79C118.7 79.3 118.3 79.5 117.7 79.6C117.3 79.7 117.1 79.7 117.1 79.7H114.1C114.1 79.7 113.8 79.7 113.5 79.6C112.9 79.5 112.5 79.3 112.2 79C112.1 78.9 112 78.8 111.9 78.7C111.9 78.7 111.9 78.6 111.8 78.6C111.5 78.2 111.2 77.7 111.1 77.1C111.1 77 111.1 77 111.1 76.9C111.1 76.8 111.1 76.7 111.1 76.6V75V64.6H99.1C96.1 64.6 96.1 61.6 96.1 61.6V58.6C96.1 55.6 99.1 55.6 99.1 55.6H111.1V45.5V43.7C111.1 43.7 111.1 43.4 111.2 43C111.3 42.5 111.5 42.1 111.7 41.8C111.8 41.7 111.9 41.6 112 41.5L112.1 41.4C112.4 41.1 112.9 40.9 113.5 40.8C113.8 40.7 114 40.7 114.1 40.7H117.1C117.1 40.7 117.4 40.7 117.7 40.8C118.3 40.9 118.8 41.1 119.1 41.4L119.2 41.5C119.3 41.6 119.4 41.7 119.5 41.8C119.8 42.1 119.9 42.5 120 43C120.1 43.4 120.1 43.7 120.1 43.7V45.5V55.6H132.1C132.1 55.6 135.1 55.6 135.1 58.6Z" fill="#F29018"></path><path d="M132.1 83.9C119.1 92.9 101.2 89.6 92.3 76.6C83.4 63.6 86.6 45.7 99.6 36.8C112.6 27.8 130.5 31.1 139.4 44.1C148.3 57.1 145.1 74.9 132.1 83.9ZM149.2 37.3C136.5 18.9 111.2 14.2 92.8 27C74.4 39.7 69.7 65 82.5 83.4C93.8 99.8 115 105.2 132.5 97.4L148.1 120C150.4 123.3 154.9 124.1 158.3 121.8C161.6 119.5 162.5 115 160.2 111.7L144.5 89C158.1 75.4 160.5 53.6 149.2 37.3Z" fill="#110E72"></path>',117)];function Y6(t,e){return a.openBlock(),a.createElementBlock("svg",W6,K6)}const hp=Ce(H6,[["render",Y6]]),ya={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},G6={key:0,class:"b-d-alert-title"},lo=a.defineComponent({__name:"BDAlert",props:{variant:{default:ya.PRIMARY},title:{default:""}},setup(t){const e=t,n=a.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value),role:"alert"},[r.title?(a.openBlock(),a.createElementBlock("div",G6,[a.createVNode(a.unref(wr)),a.createElementVNode("span",null,[a.createElementVNode("strong",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default")],2))}});function Q6(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function va(t){return typeof t=="function"?t():a.unref(t)}const Z6=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J6=t=>typeof t<"u",X6=Object.prototype.toString,q6=t=>X6.call(t)==="[object Object]",ed=()=>{};function eC(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}function tC(t,e={}){let n,r,o=ed;const i=c=>{clearTimeout(c),o(),o=ed};return c=>{const l=va(t),d=va(e.maxWait);return n&&i(n),l<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(c())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,d&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(c())},d)),n=setTimeout(()=>{r&&i(r),r=null,u(c())},l)})}}function nC(t,e=200,n={}){return eC(tC(e,n),t)}function pp(t){var e;const n=va(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rC=Z6?window:void 0;function mp(...t){let e,n,r,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,o]=t,e=rC):[e,n,r,o]=t,!e)return ed;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},c=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),l=a.watch(()=>[pp(e),va(o)],([u,f])=>{if(s(),!u)return;const h=q6(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(m=>c(u,p,m,h))))},{immediate:!0,flush:"post"}),d=()=>{l(),s()};return Q6(d),d}function oC(t){return JSON.parse(JSON.stringify(t))}function iC(t,e={}){const{initialValue:n=!1,focusVisible:r=!1}=e,o=a.ref(!1),i=a.computed(()=>pp(t));mp(i,"focus",c=>{var l,d;(!r||(d=(l=c.target).matches)!=null&&d.call(l,":focus-visible"))&&(o.value=!0)}),mp(i,"blur",()=>o.value=!1);const s=a.computed({get:()=>o.value,set(c){var l,d;!c&&o.value?(l=i.value)==null||l.blur():c&&!o.value&&((d=i.value)==null||d.focus())}});return a.watch(i,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function co(t,e,n,r={}){var o,i,s;const{clone:c=!1,passive:l=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=a.getCurrentInstance(),m=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let g=d;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=b=>c?typeof c=="function"?c(b):oC(b):b,C=()=>J6(t[e])?y(t[e]):f,E=b=>{h?h(b)&&m(g,b):m(g,b)};if(l){const b=C(),v=a.ref(b);let k=!1;return a.watch(()=>t[e],_=>{k||(k=!0,v.value=y(_),a.nextTick(()=>k=!1))}),a.watch(v,_=>{!k&&(_!==t[e]||u)&&E(_)},{deep:u}),v}else return a.computed({get(){return C()},set(b){E(b)}})}const sC={class:"bd-zoom-slider d-flex"},aC=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],lC=["max"],cC=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],td=a.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=co(n,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<n.maxValue&&r.value++}return(s,c)=>(a.openBlock(),a.createElementBlock("div",sC,[(a.openBlock(),a.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},aC)),a.withDirectives(a.createElementVNode("input",{type:"range","onUpdate:modelValue":c[0]||(c[0]=l=>a.isRef(r)?r.value=l:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,lC),[[a.vModelText,a.unref(r)]]),(a.openBlock(),a.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},cC))]))}}),dC={class:"bd-profile-picture"},uC=["src","alt"],Ki=a.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:Mt.LG},linkText:{default:null}},emits:["click"],setup(t,{emit:e}){const n=t,r=a.computed(()=>`${n.username?`${n.username}'s `:""}profielfoto`),o=()=>{e("click")};return(i,s)=>(a.openBlock(),a.createElementBlock("div",dC,[a.createElementVNode("div",{class:a.normalizeClass(["rounded-circle",n.size])},[a.createElementVNode("img",{src:n.src,alt:r.value},null,8,uC)],2),n.linkText?(a.openBlock(),a.createBlock(ze,{key:0,variant:"link",onClick:o,textContent:a.toDisplayString(n.linkText)},null,8,["textContent"])):a.createCommentVNode("",!0)]))}});for(var uo=256,gp=[],yp=256,ba;uo--;)gp[uo]=(uo+256).toString(16).substring(1);function vp(t){var e=0,n=t||11;if(!ba||uo+n>yp*2)for(ba="",uo=0;e<yp;e++)ba+=gp[Math.random()*256|0];return ba.substring(uo,uo+++n)}function Wo(){return{uniqueIdentifier:a.ref(vp())}}const fC=["id"],hC={key:0},Ca=a.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(t){const e=t,{uniqueIdentifier:n}=Wo(),r=n.value,o=a.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=a.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=a.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(c,l)=>(a.openBlock(),a.createElementBlock("div",{id:a.unref(r),class:a.normalizeClass(o.value)},[!c.noHeader||c.noBody?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.value)},[a.renderSlot(c.$slots,"header",{},()=>[c.title?(a.openBlock(),a.createElementBlock("h2",hC,a.toDisplayString(c.title),1)):a.createCommentVNode("",!0)])],2)):a.createCommentVNode("",!0),c.noBody?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(s.value)},[a.renderSlot(c.$slots,"body")],2))],10,fC))}}),pC={key:0},mC={class:"bd-collapsable-card__actions"},gC=["data-bs-target"],nd=a.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(t){const e=t,{uniqueIdentifier:n}=Wo(),r=n.value,o=a.computed(()=>`bd-collapsable-card__collapse-${r}`),i=a.computed(()=>({"d-block":[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==Mt.SM,"d-lg-none":e.showOn.toLowerCase()==Mt.MD})),s=a.computed(()=>{let l={"round-corners-sm":e.showOn.toLowerCase()==Mt.SM,"round-corners-md":e.showOn.toLowerCase()==Mt.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(l).filter(d=>l[d]).join(" ")}),c=a.computed(()=>{let l={collapse:!0,show:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[Mt.SM,Mt.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==Mt.SM&&e.visible};return Object.keys(l).filter(d=>l[d]).join(" ")});return(l,d)=>(a.openBlock(),a.createBlock(Ca,{class:"bd-collapsable-card",title:l.title,"header-class":s.value,"body-class":c.value},{header:a.withCtx(()=>[l.title?(a.openBlock(),a.createElementBlock("h2",pC,a.toDisplayString(l.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",mC,[a.renderSlot(l.$slots,"action"),!l.disabled&&l.visible?(a.openBlock(),a.createElementBlock("button",{key:0,class:a.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":"true"},[a.createVNode(a.unref(fa))],10,gC)):a.createCommentVNode("",!0)])]),body:a.withCtx(()=>[a.renderSlot(l.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*!
|
|
56
|
+
c0.2-3.05,0.33-6.12,0.33-9.22C283.46,122.5,279.61,104.17,272.67,87.44z"></path></g></g>`,1)];function F7(t,e){return a.openBlock(),a.createElementBlock("svg",R7,V7)}const Yh=Ce($7,[["render",F7]]),j7={},z7={class:"icon icon-luscii-open luscii-open",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U7=[a.createElementVNode("path",{d:"M7 0.5L13.5 11.5H0.5L7 0.5Z",fill:"#FF8800"},null,-1)];function H7(t,e){return a.openBlock(),a.createElementBlock("svg",z7,U7)}const Gh=Ce(j7,[["render",H7]]),W7={},K7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Y7=[a.createElementVNode("circle",{cx:"12",cy:"12",r:"6",fill:"#FF6266"},null,-1),a.createElementVNode("circle",{cx:"14.5",cy:"9.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function G7(t,e){return a.openBlock(),a.createElementBlock("svg",K7,Y7)}const Qh=Ce(W7,[["render",G7]]),Q7={},Z7={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J7=[a.createElementVNode("path",{d:"M4.92892 13.4142C4.14787 12.6332 4.14787 11.3668 4.92892 10.5858L10.5858 4.92893C11.3668 4.14788 12.6332 4.14788 13.4142 4.92893L19.0711 10.5858C19.8521 11.3668 19.8521 12.6332 19.0711 13.4142L13.4142 19.0711C12.6332 19.8521 11.3668 19.8521 10.5858 19.0711L4.92892 13.4142Z",fill:"#9CA3AF"},null,-1),a.createElementVNode("circle",{cx:"12",cy:"7.05029",r:"1.5",transform:"rotate(-45 12 7.05029)",fill:"white","fill-opacity":"0.1"},null,-1)];function X7(t,e){return a.openBlock(),a.createElementBlock("svg",Z7,J7)}const Zh=Ce(Q7,[["render",X7]]),q7={},e6={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t6=[a.createElementVNode("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2",fill:"#FB923C"},null,-1),a.createElementVNode("circle",{cx:"15.5",cy:"8.5",r:"1.5",fill:"white","fill-opacity":"0.1"},null,-1)];function n6(t,e){return a.openBlock(),a.createElementBlock("svg",e6,t6)}const Jh=Ce(q7,[["render",n6]]),r6={},o6={class:"icon icon-menu",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"12",viewBox:"0 0 19 12"},i6=[a.createElementVNode("path",{d:"M1.386 2a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 1 1 0-2H18a1 1 0 0 1 0 2H1.386zm0 5a1 1 0 0 1 0-2H18a1 1 0 0 1 0 2H1.386z"},null,-1)];function s6(t,e){return a.openBlock(),a.createElementBlock("svg",o6,i6)}const Yc=Ce(r6,[["render",s6]]),a6={},l6={class:"icon icon-message",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},c6=[a.createElementVNode("path",{d:"M17.75 2.587V12.2a2.355 2.355 0 0 1-2.35 2.35H2.6A2.355 2.355 0 0 1 .25 12.2V2.61v-.023A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337zm-1.572-.327a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zm.072 1.78L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h12.8c.466 0 .85-.384.85-.85V4.04z"},null,-1)];function d6(t,e){return a.openBlock(),a.createElementBlock("svg",l6,c6)}const Xh=Ce(a6,[["render",d6]]),u6={},f6={class:"icon icon-message-forward",xmlns:"http://www.w3.org/2000/svg",width:"21",height:"19",viewBox:"0 0 21 19"},h6=[a.createElementVNode("path",{d:"M17.75 8.755a5.25 5.25 0 1 1-7.395 5.795H2.6A2.355 2.355 0 0 1 .25 12.2V2.587A2.355 2.355 0 0 1 2.6.25h12.8a2.355 2.355 0 0 1 2.35 2.337v6.168zm-1.5-.452V4.04L9.43 8.814a.75.75 0 0 1-.86 0L1.75 4.04v8.16c0 .466.384.85.85.85h7.669a5.25 5.25 0 0 1 5.981-4.747zm-.072-6.043a.855.855 0 0 0-.778-.51H2.6a.855.855 0 0 0-.778.51L9 7.285l7.178-5.025zM15.5 17.25a3.75 3.75 0 1 0 0-7.5 3.75 3.75 0 0 0 0 7.5zm-.31-3l.84.841a.75.75 0 1 1-1.06 1.06l-2.122-2.12a.75.75 0 0 1 0-1.061l2.122-2.122a.75.75 0 0 1 1.06 1.061l-.84.841h2.431a.75.75 0 1 1 0 1.5H15.19z"},null,-1)];function p6(t,e){return a.openBlock(),a.createElementBlock("svg",f6,h6)}const qh=Ce(u6,[["render",p6]]),m6={},g6=[a.createElementVNode("path",{d:"M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L472.1 344.7c15.2-26 23.9-56.3 23.9-88.7V216c0-13.3-10.7-24-24-24s-24 10.7-24 24v40c0 21.2-5.1 41.1-14.2 58.7L416 300.8V96c0-53-43-96-96-96s-96 43-96 96v54.3L38.8 5.1zM344 430.4c20.4-2.8 39.7-9.1 57.3-18.2l-43.1-33.9C346.1 382 333.3 384 320 384c-70.7 0-128-57.3-128-128v-8.7L144.7 210c-.5 1.9-.7 3.9-.7 6v40c0 89.1 66.2 162.7 152 174.4V464H248c-13.3 0-24 10.7-24 24s10.7 24 24 24h72 72c13.3 0 24-10.7 24-24s-10.7-24-24-24H344V430.4z"},null,-1)];function y6(t,e){return a.openBlock(),a.createElementBlock("svg",a.mergeProps(t.$attrs,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"icon"}),g6,16)}const ep=Ce(m6,[["render",y6]]),v6={},b6={class:"icon icon-microsoft-teams",xmlns:"http://www.w3.org/2000/svg",width:"18px",height:"18px",viewBox:"0 0 64 64"},C6=[a.createStaticVNode('<path d="M42 40.531V27.205A1.204 1.204 0 0143.204 26h13.494A2.302 2.302 0 0159 28.302v12.23A8.469 8.469 0 0150.531 49h-.062A8.469 8.469 0 0142 40.531z" fill="#5059c9"></path><circle cx="50.5" cy="17.5" r="5.5" fill="#5059c9"></circle><path d="M49.855 49.622q-.17-.008-.35-.022.174.015.35.022zm.157.005l-.077-.002z" fill="#5059c9"></path><circle cx="33" cy="15" r="8" fill="#7b83eb"></circle><path d="M45.667 26H22.333A2.32 2.32 0 0020 28.308v13.846a14 14 0 0028 0V28.308A2.32 2.32 0 0045.667 26z" fill="#7b83eb"></path><path d="M33 26v20.67a1.734 1.734 0 01-.04.4A2.314 2.314 0 0130.67 49h-8.83a10.81 10.81 0 01-.53-1c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M34 26v18.67A3.362 3.362 0 0130.67 48h-9.36c-.16-.33-.3-.66-.43-1a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67v2.61a8.355 8.355 0 01-2 0A8.02 8.02 0 0125.58 18a8.353 8.353 0 01-.33-1h5.42A3.342 3.342 0 0134 20.33z" opacity=".1"></path><path d="M33 26v18.67A2.326 2.326 0 0130.67 47h-9.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26zm0-5.67V23a8.257 8.257 0 01-1-.06A8.02 8.02 0 0125.58 18h5.09A2.326 2.326 0 0133 20.33z" opacity=".2"></path><path d="M32 20.33v2.61A8.02 8.02 0 0125.58 18h4.09A2.326 2.326 0 0132 20.33zM22.33 26H32v18.67A2.326 2.326 0 0129.67 47h-8.79a13.69 13.69 0 01-.88-4.85V28.31A2.316 2.316 0 0122.33 26z" opacity=".1"></path><rect x="4" y="18" width="28" height="28" rx="2.333" fill="#4b53bc"></rect><path d="M24.008 26.528h-4.564v13.028h-2.909V26.528h-4.543V24h12.016z" fill="#fff"></path>',11)];function E6(t,e){return a.openBlock(),a.createElementBlock("svg",b6,C6)}const tp=Ce(v6,[["render",E6]]),S6={},_6={class:"icon icon-min",viewBox:"0 0 21 2",width:"21",height:"2",xmlns:"http://www.w3.org/2000/svg"},w6=[a.createElementVNode("path",{d:"M1.525 2h18.05a1 1 0 0 0 0-2H1.525a1 1 0 0 0 0 2z"},null,-1)];function k6(t,e){return a.openBlock(),a.createElementBlock("svg",_6,w6)}const np=Ce(S6,[["render",k6]]),A6={},T6={width:"17",height:"15",viewBox:"0 0 17 15",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-ordered-list"},I6=[a.createElementVNode("path",{d:"M7.75 3.75H16.25C16.6562 3.75 17 3.4375 17 3C17 2.59375 16.6562 2.25 16.25 2.25H7.75C7.3125 2.25 7 2.59375 7 3C7 3.4375 7.3125 3.75 7.75 3.75ZM16.25 12.25H7.75C7.3125 12.25 7 12.5938 7 13C7 13.4375 7.3125 13.75 7.75 13.75H16.25C16.6562 13.75 17 13.4375 17 13C17 12.5938 16.6562 12.25 16.25 12.25ZM16.25 7.25H7.75C7.3125 7.25 7 7.59375 7 8C7 8.4375 7.3125 8.75 7.75 8.75H16.25C16.6562 8.75 17 8.4375 17 8C17 7.59375 16.6562 7.25 16.25 7.25ZM2.25 7H4.75C5.15625 7 5.5 6.6875 5.5 6.25C5.5 5.78125 5.15625 5.5 4.75 5.5H4.25V1.75C4.25 1.5 4.09375 1.25 3.84375 1.125C3.625 0.96875 3.34375 0.96875 3.09375 1.125L2.09375 1.6875C1.75 1.90625 1.625 2.375 1.84375 2.71875C2.03125 3.03125 2.40625 3.1875 2.75 3.0625V5.5H2.25C1.8125 5.5 1.5 5.84375 1.5 6.25C1.5 6.6875 1.8125 7 2.25 7ZM5.25 13.5H3.6875L4.84375 12.5C5.78125 11.6875 5.875 10.2812 5.09375 9.34375C4.6875 8.84375 4.125 8.5625 3.5 8.53125C2.90625 8.46875 2.28125 8.65625 1.8125 9.0625L1.4375 9.40625C1.125 9.6875 1.09375 10.1562 1.34375 10.4688C1.625 10.7812 2.09375 10.8125 2.40625 10.5625L2.8125 10.2188C2.96875 10.0625 3.1875 10 3.40625 10.0312C3.625 10.0312 3.8125 10.125 3.9375 10.3125C4.21875 10.625 4.1875 11.0938 3.84375 11.375L1.25 13.7188C1 13.9062 0.9375 14.25 1.03125 14.5312C1.15625 14.8125 1.4375 15 1.71875 15H5.25C5.65625 15 6 14.6875 6 14.2812C6 13.8438 5.65625 13.5 5.25 13.5Z"},null,-1)];function x6(t,e){return a.openBlock(),a.createElementBlock("svg",T6,I6)}const Gc=Ce(A6,[["render",x6]]),O6={},N6={class:"icon icon-plus",width:"12",height:"13",viewBox:"0 0 12 13",xmlns:"http://www.w3.org/2000/svg"},M6=[a.createElementVNode("path",{d:"M11.604 7.675H7.027v4.807H4.888V7.675h-4.6V5.628h4.6V.844h2.139v4.784h4.577z"},null,-1)];function L6(t,e){return a.openBlock(),a.createElementBlock("svg",N6,M6)}const ga=Ce(O6,[["render",L6]]),D6={},P6={class:"icon icon-refresh",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15"},B6=[a.createElementVNode("path",{d:"M15.107 5.34l-2.012-1.891a5.795 5.795 0 0 0-9.563 2.163.75.75 0 0 1-1.414-.5 7.295 7.295 0 0 1 12.021-2.74l2.111 1.983v-2.63a.75.75 0 1 1 1.5 0V6.09a.75.75 0 0 1-.75.75h-4.364a.75.75 0 0 1 0-1.5h2.47zM1.75 10.731v2.63a.75.75 0 0 1-1.5 0V8.998a.75.75 0 0 1 .75-.75h4.364a.75.75 0 1 1 0 1.5h-2.47l2.011 1.891a5.795 5.795 0 0 0 9.563-2.164.75.75 0 0 1 1.414.5 7.295 7.295 0 0 1-12.021 2.74L1.75 10.733z"},null,-1)];function $6(t,e){return a.openBlock(),a.createElementBlock("svg",P6,B6)}const rp=Ce(D6,[["render",$6]]),R6={},V6={class:"icon icon-remove",width:"11",height:"11",viewBox:"0 0 11 11",xmlns:"http://www.w3.org/2000/svg"},F6=[a.createElementVNode("path",{d:"M.893.893a1 1 0 0 1 1.414 0L5.5 4.085 8.693.893a1 1 0 0 1 1.32-.083l.094.083a1 1 0 0 1 0 1.414L6.915 5.5l3.192 3.193a1 1 0 0 1 .083 1.32l-.083.094a1 1 0 0 1-1.414 0L5.5 6.915l-3.193 3.192a1 1 0 0 1-1.32.083l-.094-.083a1 1 0 0 1 0-1.414L4.085 5.5.893 2.307A1 1 0 0 1 .81.987L.893.893z"},null,-1)];function j6(t,e){return a.openBlock(),a.createElementBlock("svg",V6,F6)}const Wi=Ce(R6,[["render",j6]]),z6={},U6={"xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:cc":"http://creativecommons.org/ns#","xmlns:rdf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#","xmlns:svg":"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-sananet",viewBox:"0 0 145.82668 130.58667",height:"130.58667",width:"145.82668","xml:space":"preserve",id:"svg2",version:"1.1"},H6={id:"metadata8"},W6=a.createStaticVNode('<defs id="defs6"><clipPath id="clipPath32" clipPathUnits="userSpaceOnUse"><path id="path30" d="M 0,0 H 1094 V 979 H 0 Z"></path></clipPath><clipPath id="clipPath38" clipPathUnits="userSpaceOnUse"><path id="path36" d="m 726.516,800.508 c 0,-98.836 -80.121,-178.938 -178.938,-178.938 -98.816,0 -178.926,80.102 -178.926,178.938 0,98.808 80.11,178.918 178.926,178.918 98.817,0 178.938,-80.11 178.938,-178.918 z"></path></clipPath><radialGradient id="radialGradient46" spreadMethod="pad" gradientTransform="matrix(390.284,0,0,-390.284,547.578,925.479)" gradientUnits="userSpaceOnUse" r="1" cy="0" cx="0" fy="0.151961" fx="-0.24949799"><stop id="stop40" offset="0" style="stop-opacity:1;stop-color:#ffffff;"></stop><stop id="stop42" offset="0.715" style="stop-opacity:1;stop-color:#f5772a;"></stop><stop id="stop44" offset="1" style="stop-opacity:1;stop-color:#f5772a;"></stop></radialGradient></defs><g transform="matrix(1.3333333,0,0,-1.3333333,0,130.58667)" id="g10"><g transform="scale(0.1)" id="g12"><path id="path14" style="fill:#bfc1e2;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="M 546.836,0 C 250.422,0 0,111.121 0,242.648 c 0,43.133 26.418,84.11 72.6016,119.688 -17.586,-23.32 -27.0821,-48.32 -27.0821,-74.328 0,-127.442 220.2035,-227.2736 501.3165,-227.2736 281.102,0 501.304,99.8316 501.304,227.2736 0,26.008 -9.5,51.015 -27.09,74.336 46.19,-35.586 72.61,-76.563 72.61,-119.696 C 1093.66,111.121 843.242,0 546.836,0"></path><path id="path16" style="fill:#9ba1d3;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,125.039 c -195.918,0 -361.433,66.113 -361.433,144.367 0,29.305 22.75,56.942 61.714,80.028 -17.468,-16.329 -27.097,-34.356 -27.097,-53.274 0,-74.39 143.554,-132.664 326.816,-132.664 183.289,0 326.875,58.274 326.875,132.664 0,18.879 -9.59,36.86 -26.98,53.156 38.843,-23.066 61.519,-50.656 61.519,-79.91 0,-78.254 -165.508,-144.367 -361.414,-144.367"></path><path id="path18" style="fill:#516ab4;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 546.621,205.82 c -118.73,0 -219.031,39.27 -219.031,85.754 0,12.711 7.39,24.91 20.625,35.906 -3.379,-6.242 -5.156,-12.773 -5.156,-19.5 0,-47.296 89.414,-84.335 203.562,-84.335 114.133,0 203.535,37.039 203.535,84.335 0,6.727 -1.777,13.243 -5.144,19.481 13.211,-10.996 20.593,-23.176 20.593,-35.887 0,-46.484 -100.285,-85.754 -218.984,-85.754"></path><path id="path20" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 423.379,332.805 c -6.934,-6.223 -10.801,-12.989 -10.801,-19.953 0,-28.321 61.387,-52.247 134.043,-52.247 72.637,0 133.992,23.926 133.992,52.247 0,6.925 -3.816,13.652 -10.672,19.843 1.36,-3.152 2.063,-6.418 2.063,-9.765 0,-29.258 -55.078,-52.168 -125.383,-52.168 -70.293,0 -125.351,22.91 -125.351,52.168 0,3.39 0.722,6.687 2.109,9.875"></path><path id="path22" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 358.75,618.84 c 0,0 144.551,-54.758 144.551,-297.871 h -24.102 c 0,0 -2.187,205.886 -124.824,219.019 l 4.375,78.852"></path><path id="path24" style="fill:#2350a1;fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 735.313,618.84 c 0,0 -144.551,-54.758 -144.551,-297.871 h 24.101 c 0,0 2.188,205.886 124.832,219.019 l -4.382,78.852"></path><g id="g26"><g clip-path="url(#clipPath32)" id="g28"><g clip-path="url(#clipPath38)" id="g34"><path id="path48" style="fill:url(#radialGradient46);fill-opacity:1;fill-rule:nonzero;stroke:none;" d="m 536,621 v 1 h -11 v 1 h -6 v 1 h -7 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -4 v 1 h -3 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -3 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -3 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -2 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -2 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 1 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 2 h -1 v 3 h -1 v 3 h -1 v 3 h -1 v 2 h -1 v 3 h -1 v 4 h -1 v 3 h -1 v 4 h -1 v 4 h -1 v 5 h -1 v 6 h -1 v 7 h -1 v 11 h -1 v 21 h 1 v 11 h 1 v 7 h 1 v 6 h 1 v 5 h 1 v 4 h 1 v 4 h 1 v 3 h 1 v 4 h 1 v 3 h 1 v 2 h 1 v 3 h 1 v 3 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 3 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 2 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 2 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 1 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 2 v 1 h 2 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 2 v 1 h 3 v 1 h 3 v 1 h 3 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 4 v 1 h 7 v 1 h 7 v 1 h 44 v -1 h 6 v -1 h 7 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 4 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 3 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 2 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -1 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -2 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -3 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -4 h 1 v -6 h 1 v -7 h 1 v -10 h 1 v -25 h -1 v -10 h -1 v -7 h -1 v -6 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -4 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -3 h -1 v -3 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -2 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -1 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -2 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -3 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -4 v -1 h -7 v -1 h -6 v -1 h -11 v -1"></path></g></g></g></g></g>',2);function K6(t,e){const n=a.resolveComponent("dc:format"),r=a.resolveComponent("dc:type"),o=a.resolveComponent("cc:Work"),i=a.resolveComponent("rdf:RDF");return a.openBlock(),a.createElementBlock("svg",U6,[a.createElementVNode("metadata",H6,[a.createVNode(i,null,{default:a.withCtx(()=>[a.createVNode(o,{"rdf:about":""},{default:a.withCtx(()=>[a.createVNode(n,null,{default:a.withCtx(()=>[a.createTextVNode("image/svg+xml")]),_:1}),a.createVNode(r,{"rdf:resource":"http://purl.org/dc/dcmitype/StillImage"})]),_:1})]),_:1})]),W6])}const op=Ce(z6,[["render",K6]]),Y6={},G6={class:"icon icon-service",viewBox:"0 0 20 21",xmlns:"http://www.w3.org/2000/svg"},Q6=[a.createElementVNode("path",{d:"M1.875 10.5V12.0625C1.875 12.6094 1.44531 13 0.9375 13C0.390625 13 0 12.6094 0 12.0625V10.5C0 4.99219 4.45312 0.5 10 0.5C15.5078 0.5 20 4.99219 20 10.5V16.1641C20 18.0391 18.4375 19.6016 16.5625 19.6016L12.2266 19.5625C11.9141 20.1484 11.2891 20.5 10.625 20.5H9.375C8.32031 20.5 7.5 19.6797 7.5 18.625C7.5 17.6094 8.32031 16.75 9.375 16.75H10.625C11.2891 16.75 11.9141 17.1406 12.2266 17.6875L16.5625 17.7266C17.4219 17.7266 18.125 17.0234 18.125 16.1641V10.5C18.125 6.04688 14.4531 2.375 10 2.375C5.50781 2.375 1.875 6.04688 1.875 10.5ZM6.25 9.25C5.54688 9.25 5 9.83594 5 10.5V12.375C5 13.0781 5.54688 13.625 6.25 13.625V9.25ZM3.125 10.5C3.125 8.78125 4.49219 7.375 6.25 7.375H6.875C7.53906 7.375 8.125 7.96094 8.125 8.625V14.25C8.125 14.9531 7.53906 15.5 6.875 15.5H6.25C4.49219 15.5 3.125 14.1328 3.125 12.375V10.5ZM13.75 9.25V13.625C14.4141 13.625 15 13.0781 15 12.375V10.5C15 9.83594 14.4141 9.25 13.75 9.25ZM16.875 10.5V12.375C16.875 14.1328 15.4688 15.5 13.75 15.5H13.125C12.4219 15.5 11.875 14.9531 11.875 14.25V8.625C11.875 7.96094 12.4219 7.375 13.125 7.375H13.75C15.4688 7.375 16.875 8.78125 16.875 10.5Z"},null,-1)];function Z6(t,e){return a.openBlock(),a.createElementBlock("svg",G6,Q6)}const ip=Ce(Y6,[["render",Z6]]),J6={},X6={class:"icon icon-share-screen",width:"12",height:"16",viewBox:"0 0 12 16",xmlns:"http://www.w3.org/2000/svg"},q6=[a.createElementVNode("path",{d:"M-1.31134e-07 12.9961C-5.87372e-08 14.6523 1.34375 15.9961 3 15.9961L9 15.9961C10.6562 15.9961 12 14.6523 12 12.9961L12 10.3711C12 10.1836 11.8437 9.99609 11.625 9.99609L10.875 9.99609C10.6875 9.99609 10.5 10.1836 10.5 10.3711L10.5 12.9961C10.5 13.8398 9.84375 14.4961 9 14.4961L3 14.4961C2.1875 14.4961 1.5 13.8398 1.5 12.9961L1.5 10.3711C1.5 10.1836 1.34375 9.99609 1.125 9.99609L0.375 9.99609C0.1875 9.99609 -2.54072e-07 10.1836 -2.45877e-07 10.3711L-1.31134e-07 12.9961ZM0.625 5.77734L1.25 6.40234C1.375 6.55859 1.625 6.55859 1.78125 6.40234L5.1875 2.87109L5.1875 10.6211C5.1875 10.8398 5.375 10.9961 5.5625 10.9961L6.4375 10.9961C6.65625 10.9961 6.8125 10.8398 6.8125 10.6211L6.8125 2.87109L10.25 6.40234C10.4062 6.55859 10.6562 6.55859 10.7812 6.40234L11.4062 5.77734C11.5625 5.65234 11.5625 5.40234 11.4062 5.24609L6.28125 0.121093C6.125 -0.0351565 5.90625 -0.0351565 5.75 0.121093L0.625 5.24609C0.46875 5.40234 0.46875 5.65234 0.625 5.77734Z"},null,-1)];function e8(t,e){return a.openBlock(),a.createElementBlock("svg",X6,q6)}const sp=Ce(J6,[["render",e8]]),t8={},n8={xmlns:"http://www.w3.org/2000/svg",version:"1.1","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:svgjs":"http://svgjs.com/svgjs",viewBox:"0 0 18 18",width:"18",height:"18"},r8=[a.createElementVNode("g",{transform:"matrix(0.75,0,0,0.75,0,0)"},[a.createElementVNode("path",{d:"M6.750 6.000 A5.250 5.250 0 1 0 17.250 6.000 A5.250 5.250 0 1 0 6.750 6.000 Z",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"}),a.createElementVNode("path",{d:"M2.25,23.25a9.75,9.75,0,0,1,19.5,0",fill:"none",stroke:"#ffffff","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5"})],-1)];function o8(t,e){return a.openBlock(),a.createElementBlock("svg",n8,r8)}const ap=Ce(t8,[["render",o8]]),i8={},s8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},a8=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#4D5875" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function l8(t,e){return a.openBlock(),a.createElementBlock("svg",s8,a8)}const lp=Ce(i8,[["render",l8]]),c8={},d8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},u8=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="#ABB0BE" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function f8(t,e){return a.openBlock(),a.createElementBlock("svg",d8,u8)}const Qc=Ce(c8,[["render",f8]]),h8={},p8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},m8=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" fill="#ABB0BE" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" fill="rgb(57, 65, 86)" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function g8(t,e){return a.openBlock(),a.createElementBlock("svg",p8,m8)}const Zc=Ce(h8,[["render",g8]]),y8={},v8={xmlns:"http://www.w3.org/2000/svg",width:"9",height:"14",viewBox:"0 0 9 14"},b8=[a.createStaticVNode('<g id="Symbols" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="icon/sort" fill="#ABB0BE" transform="translate(-6 -4)"><g id="Group" transform="translate(5 3)"><path id="Rectangle" d="M8.585786,8.32943141 L8.585786,12.585786 C8.585786,13.1380707 8.13807075,13.585786 7.585786,13.585786 L3.32943141,13.585786 C2.77714666,13.585786 2.32943141,13.1380707 2.32943141,12.585786 C2.32943141,12.3205695 2.43478825,12.0662156 2.62232463,11.8786792 L6.87867922,7.62232463 C7.26920351,7.23180034 7.90236849,7.23180034 8.29289278,7.62232463 C8.48042916,7.80986101 8.585786,8.06421492 8.585786,8.32943141 Z" transform="rotate(45 5.293 10.293)"></path><path id="Rectangle" d="M8.585786,3.32943141 L8.585786,7.585786 C8.585786,8.13807075 8.13807075,8.585786 7.585786,8.585786 L3.32943141,8.585786 C2.77714666,8.585786 2.32943141,8.13807075 2.32943141,7.585786 C2.32943141,7.32056951 2.43478825,7.0662156 2.62232463,6.87867922 L6.87867922,2.62232463 C7.26920351,2.23180034 7.90236849,2.23180034 8.29289278,2.62232463 C8.48042916,2.80986101 8.585786,3.06421492 8.585786,3.32943141 Z" transform="rotate(-135 5.293 5.293)"></path></g></g></g>',1)];function C8(t,e){return a.openBlock(),a.createElementBlock("svg",v8,b8)}const Jc=Ce(y8,[["render",C8]]),E8={},S8={class:"icon icon-triangle-down",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"8",viewBox:"0 0 12 8"},_8=[a.createElementVNode("path",{d:"M11.071 2.414L6.414 7.071a1 1 0 0 1-1.414 0L.343 2.414A1 1 0 0 1 1.05.707h9.314a1 1 0 0 1 .707 1.707z"},null,-1)];function w8(t,e){return a.openBlock(),a.createElementBlock("svg",S8,_8)}const cp=Ce(E8,[["render",w8]]),k8={},A8={width:"40",height:"34",viewBox:"0 0 40 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T8=[a.createElementVNode("path",{d:"M38.5547 28.6992C39.7422 30.7773 38.2578 33.375 35.8086 33.375H4.11719C1.66797 33.375 0.183594 30.7773 1.29688 28.6992L17.1797 1.68359C17.8477 0.644531 18.8867 0.125 20 0.125C21.0391 0.125 22.0781 0.644531 22.7461 1.68359L38.5547 28.6992ZM4.85938 29.8125H35.0664L19.9258 4.05859L4.85938 29.8125ZM20 22.8359C21.2617 22.8359 22.3008 23.875 22.3008 25.1367C22.3008 26.3984 21.2617 27.4375 20 27.4375C18.6641 27.4375 17.625 26.3984 17.625 25.1367C17.625 23.875 18.6641 22.8359 20 22.8359ZM18.2188 11.4062C18.2188 10.4414 18.9609 9.625 20 9.625C20.9648 9.625 21.7812 10.4414 21.7812 11.4062V18.5312C21.7812 19.5703 20.9648 20.3125 20 20.3125C18.9609 20.3125 18.2188 19.5703 18.2188 18.5312V11.4062Z",fill:"#F65139"},null,-1)];function I8(t,e){return a.openBlock(),a.createElementBlock("svg",A8,T8)}const Xc=Ce(k8,[["render",I8]]),x8={},O8={width:"14",height:"16",viewBox:"0 0 14 16",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-underline"},N8=[a.createElementVNode("path",{d:"M1.25 1.5H2V7.5C2 10.2812 4.21875 12.5 7 12.5C9.75 12.5 12 10.2812 12 7.5V1.5H12.75C13.1562 1.5 13.5 1.1875 13.5 0.75C13.5 0.34375 13.1562 0 12.75 0H9.75C9.3125 0 9 0.34375 9 0.75C9 1.1875 9.3125 1.5 9.75 1.5H10.5V7.5C10.5 9.4375 8.90625 11 7 11C5.0625 11 3.5 9.4375 3.5 7.5V1.5H4.25C4.65625 1.5 5 1.1875 5 0.75C5 0.34375 4.65625 0 4.25 0H1.25C0.8125 0 0.5 0.34375 0.5 0.75C0.5 1.1875 0.8125 1.5 1.25 1.5ZM13.25 14.5H0.75C0.3125 14.5 0 14.8438 0 15.25C0 15.6875 0.3125 16 0.75 16H13.25C13.6562 16 14 15.6875 14 15.25C14 14.8438 13.6562 14.5 13.25 14.5Z"},null,-1)];function M8(t,e){return a.openBlock(),a.createElementBlock("svg",O8,N8)}const qc=Ce(x8,[["render",M8]]),L8={},D8={class:"icon icon-videocall",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"14",viewBox:"0 0 20 14"},P8=[a.createElementVNode("path",{d:"M12.673.25c1.48 0 2.68 1.186 2.68 2.648V4.16l2.76-1.82a.733.733 0 0 1 1.13.502l.007.1v7.703a.73.73 0 0 1-1.035.657l-2.862-1.298v.598c0 1.462-1.2 2.648-2.68 2.648H2.93C1.45 13.25.25 12.064.25 10.602V2.898C.25 1.436 1.45.25 2.93.25h9.743zm0 1.444H2.93a1.21 1.21 0 0 0-1.217 1.204v7.704a1.21 1.21 0 0 0 1.217 1.204h9.744a1.21 1.21 0 0 0 1.218-1.204V5.53 2.898a1.21 1.21 0 0 0-1.218-1.204zm5.115 2.597l-2.435 1.605v2.519l2.435 1.104V4.291z"},null,-1)];function B8(t,e){return a.openBlock(),a.createElementBlock("svg",D8,P8)}const dp=Ce(L8,[["render",B8]]),$8={},R8=[a.createElementVNode("path",{d:"M14.1719 4.1875C14.2422 4.1875 14.2773 4.22266 14.3125 4.25781V8.26562L16 9.56641V8.23047L19.9375 5.76953V12.6602L21.5898 13.9609C21.5898 13.8906 21.625 13.8555 21.625 13.7852V4.75C21.625 4.08203 21.0625 3.625 20.4648 3.625C20.2539 3.625 20.043 3.69531 19.832 3.83594L16 6.26172V4.1875C16 3.27344 15.1562 2.5 14.1719 2.5H6.96484L9.10938 4.1875H14.1719ZM22.5391 16.8086L17.0898 12.5898L14.3125 10.4102L4.29297 2.57031L4.22266 2.5L1.51562 0.390625C1.26953 0.179688 0.917969 0.25 0.707031 0.460938L0.355469 0.917969C0.179688 1.16406 0.214844 1.51562 0.460938 1.69141L2.00781 2.92188L3.37891 4.01172L21.4844 18.1445C21.6953 18.3203 22.082 18.2852 22.2578 18.0391L22.6094 17.6172C22.8203 17.3711 22.75 17.0195 22.5391 16.8086ZM3.16797 14.3125C3.09766 14.3125 3.0625 14.3125 3.0625 14.2773V5.875L1.375 4.57422V14.3477C1.375 15.2617 2.18359 16 3.16797 16H14.1719C14.6641 16 15.0859 15.8242 15.4023 15.543L13.8555 14.3125H3.16797Z"},null,-1)];function V8(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps(t.$attrs,{class:"icon icon-video-disabled",width:"23",height:"19",viewBox:"0 0 23 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),R8,16)}const up=Ce($8,[["render",V8]]),F8={},j8={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-exclamation-triangle",viewBox:"0 0 16 16"},z8=[a.createElementVNode("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.15.15 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.2.2 0 0 1-.054.06.1.1 0 0 1-.066.017H1.146a.1.1 0 0 1-.066-.017.2.2 0 0 1-.054-.06.18.18 0 0 1 .002-.183L7.884 2.073a.15.15 0 0 1 .054-.057m1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767z"},null,-1),a.createElementVNode("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0M7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0z"},null,-1)];function U8(t,e){return a.openBlock(),a.createElementBlock("svg",j8,z8)}const fp=Ce(F8,[["render",U8]]),H8={},W8={width:"162",height:"124",viewBox:"0 0 162 124",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"icon icon-zorgkaart-nederland"},K8=[a.createStaticVNode('<path d="M61.5 38.1C60 38.1 58.8 36.9 58.8 35.4C58.8 33.9 60 32.7 61.5 32.7C63 32.7 64.2 33.9 64.2 35.4C64.2 36.9 63 38.1 61.5 38.1Z" fill="#F29018"></path><path d="M68.1 38.1C66.6 38.1 65.4 36.9 65.4 35.4C65.4 33.9 66.6 32.7 68.1 32.7C69.6 32.7 70.8 33.9 70.8 35.4C70.8 36.9 69.6 38.1 68.1 38.1Z" fill="#F29018"></path><path d="M74.6 38.1C73.1 38.1 71.9 36.9 71.9 35.4C71.9 33.9 73.1 32.7 74.6 32.7C76.1 32.7 77.3 33.9 77.3 35.4C77.3 36.9 76.1 38.1 74.6 38.1Z" fill="#F29018"></path><path d="M81.1 38.1C79.6 38.1 78.4 36.9 78.4 35.4C78.4 33.9 79.6 32.7 81.1 32.7C82.6 32.7 83.8 33.9 83.8 35.4C83.8 36.9 82.6 38.1 81.1 38.1Z" fill="#F29018"></path><path d="M61.5 44.6C60 44.6 58.8 43.4 58.8 41.9C58.8 40.4 60 39.2 61.5 39.2C63 39.2 64.2 40.4 64.2 41.9C64.2 43.4 63 44.6 61.5 44.6Z" fill="#F29018"></path><path d="M68.1 44.6C66.6 44.6 65.4 43.4 65.4 41.9C65.4 40.4 66.6 39.2 68.1 39.2C69.6 39.2 70.8 40.4 70.8 41.9C70.8 43.4 69.6 44.6 68.1 44.6Z" fill="#F29018"></path><path d="M74.6 44.6C73.1 44.6 71.9 43.4 71.9 41.9C71.9 40.4 73.1 39.2 74.6 39.2C76.1 39.2 77.3 40.4 77.3 41.9C77.3 43.4 76.1 44.6 74.6 44.6Z" fill="#F29018"></path><path d="M61.5 51.2C60 51.2 58.8 50 58.8 48.5C58.8 47 60 45.8 61.5 45.8C63 45.8 64.2 47 64.2 48.5C64.2 50 63 51.2 61.5 51.2Z" fill="#F29018"></path><path d="M68.1 51.2C66.6 51.2 65.4 50 65.4 48.5C65.4 47 66.6 45.8 68.1 45.8C69.6 45.8 70.8 47 70.8 48.5C70.8 50 69.6 51.2 68.1 51.2Z" fill="#F29018"></path><path d="M74.6 51.2C73.1 51.2 71.9 50 71.9 48.5C71.9 47 73.1 45.8 74.6 45.8C76.1 45.8 77.3 47 77.3 48.5C77.3 50 76.1 51.2 74.6 51.2Z" fill="#F29018"></path><path d="M61.5 57.7C60 57.7 58.8 56.5 58.8 55C58.8 53.5 60 52.3 61.5 52.3C63 52.3 64.2 53.5 64.2 55C64.2 56.5 63 57.7 61.5 57.7Z" fill="#F29018"></path><path d="M68.1 57.7C66.6 57.7 65.4 56.5 65.4 55C65.4 53.5 66.6 52.3 68.1 52.3C69.6 52.3 70.8 53.5 70.8 55C70.8 56.5 69.6 57.7 68.1 57.7Z" fill="#F29018"></path><path d="M74.6 57.7C73.1 57.7 71.9 56.5 71.9 55C71.9 53.5 73.1 52.3 74.6 52.3C76.1 52.3 77.3 53.5 77.3 55C77.3 56.5 76.1 57.7 74.6 57.7Z" fill="#F29018"></path><path d="M41.9 57.7C40.4 57.7 39.2 56.5 39.2 55C39.2 53.5 40.4 52.3 41.9 52.3C43.4 52.3 44.6 53.5 44.6 55C44.6 56.5 43.4 57.7 41.9 57.7Z" fill="#F29018"></path><path d="M35.4 57.7C33.9 57.7 32.7 56.5 32.7 55C32.7 53.5 33.9 52.3 35.4 52.3C36.9 52.3 38.1 53.5 38.1 55C38.1 56.5 36.9 57.7 35.4 57.7Z" fill="#F29018"></path><path d="M41.9 51.2C40.4 51.2 39.2 50 39.2 48.5C39.2 47 40.4 45.8 41.9 45.8C43.4 45.8 44.6 47 44.6 48.5C44.6 50 43.4 51.2 41.9 51.2Z" fill="#F29018"></path><path d="M35.4 51.2C33.9 51.2 32.7 50 32.7 48.5C32.7 47 33.9 45.8 35.4 45.8C36.9 45.8 38.1 47 38.1 48.5C38.1 50 36.9 51.2 35.4 51.2Z" fill="#F29018"></path><path d="M41.9 44.6C40.4 44.6 39.2 43.4 39.2 41.9C39.2 40.4 40.4 39.2 41.9 39.2C43.4 39.2 44.6 40.4 44.6 41.9C44.6 43.4 43.4 44.6 41.9 44.6Z" fill="#F29018"></path><path d="M35.4 44.6C33.9 44.6 32.7 43.4 32.7 41.9C32.7 40.4 33.9 39.2 35.4 39.2C36.9 39.2 38.1 40.4 38.1 41.9C38.1 43.4 36.9 44.6 35.4 44.6Z" fill="#F29018"></path><path d="M41.9 38.1C40.4 38.1 39.2 36.9 39.2 35.4C39.2 33.9 40.4 32.7 41.9 32.7C43.4 32.7 44.6 33.9 44.6 35.4C44.6 36.9 43.4 38.1 41.9 38.1Z" fill="#F29018"></path><path d="M35.4 38.1C33.9 38.1 32.7 36.9 32.7 35.4C32.7 33.9 33.9 32.7 35.4 32.7C36.9 32.7 38.1 33.9 38.1 35.4C38.1 36.9 36.9 38.1 35.4 38.1Z" fill="#F29018"></path><path d="M48.4 57.7C46.9 57.7 45.7 56.5 45.7 55C45.7 53.5 46.9 52.3 48.4 52.3C49.9 52.3 51.1 53.5 51.1 55C51.2 56.5 49.9 57.7 48.4 57.7Z" fill="#F29018"></path><path d="M55 57.7C53.5 57.7 52.3 56.5 52.3 55C52.3 53.5 53.5 52.3 55 52.3C56.5 52.3 57.7 53.5 57.7 55C57.7 56.5 56.5 57.7 55 57.7Z" fill="#F29018"></path><path d="M61.5 64.3C60 64.3 58.8 63.1 58.8 61.6C58.8 60.1 60 58.9 61.5 58.9C63 58.9 64.2 60.1 64.2 61.6C64.2 63 63 64.3 61.5 64.3Z" fill="#F29018"></path><path d="M68.1 64.3C66.6 64.3 65.4 63.1 65.4 61.6C65.4 60.1 66.6 58.9 68.1 58.9C69.6 58.9 70.8 60.1 70.8 61.6C70.8 63 69.6 64.3 68.1 64.3Z" fill="#F29018"></path><path d="M74.6 64.3C73.1 64.3 71.9 63.1 71.9 61.6C71.9 60.1 73.1 58.9 74.6 58.9C76.1 58.9 77.3 60.1 77.3 61.6C77.3 63 76.1 64.3 74.6 64.3Z" fill="#F29018"></path><path d="M41.9 64.3C40.4 64.3 39.2 63.1 39.2 61.6C39.2 60.1 40.4 58.9 41.9 58.9C43.4 58.9 44.6 60.1 44.6 61.6C44.6 63 43.4 64.3 41.9 64.3Z" fill="#F29018"></path><path d="M35.4 64.3C33.9 64.3 32.7 63.1 32.7 61.6C32.7 60.1 33.9 58.9 35.4 58.9C36.9 58.9 38.1 60 38.1 61.5C38.1 63 36.9 64.3 35.4 64.3Z" fill="#F29018"></path><path d="M28.8 64.3C27.3 64.3 26.1 63.1 26.1 61.6C26.1 60.1 27.3 58.9 28.8 58.9C30.3 58.9 31.5 60.1 31.5 61.6C31.5 63 30.3 64.3 28.8 64.3Z" fill="#F29018"></path><path d="M48.4 64.3C46.9 64.3 45.7 63.1 45.7 61.6C45.7 60.1 46.9 58.9 48.4 58.9C49.9 58.9 51.1 60.1 51.1 61.6C51.2 63 49.9 64.3 48.4 64.3Z" fill="#F29018"></path><path d="M55 64.3C53.5 64.3 52.3 63.1 52.3 61.6C52.3 60.1 53.5 58.9 55 58.9C56.5 58.9 57.7 60.1 57.7 61.6C57.7 63 56.5 64.3 55 64.3Z" fill="#F29018"></path><path d="M61.5 70.8C60 70.8 58.8 69.6 58.8 68.1C58.8 66.6 60 65.4 61.5 65.4C63 65.4 64.2 66.6 64.2 68.1C64.2 69.6 63 70.8 61.5 70.8Z" fill="#F29018"></path><path d="M68.1 70.8C66.6 70.8 65.4 69.6 65.4 68.1C65.4 66.6 66.6 65.4 68.1 65.4C69.6 65.4 70.8 66.6 70.8 68.1C70.8 69.6 69.6 70.8 68.1 70.8Z" fill="#F29018"></path><path d="M74.6 70.8C73.1 70.8 71.9 69.6 71.9 68.1C71.9 66.6 73.1 65.4 74.6 65.4C76.1 65.4 77.3 66.6 77.3 68.1C77.3 69.6 76.1 70.8 74.6 70.8Z" fill="#F29018"></path><path d="M41.9 70.8C40.4 70.8 39.2 69.6 39.2 68.1C39.2 66.6 40.4 65.4 41.9 65.4C43.4 65.4 44.6 66.6 44.6 68.1C44.6 69.6 43.4 70.8 41.9 70.8Z" fill="#F29018"></path><path d="M35.4 70.8C33.9 70.8 32.7 69.6 32.7 68.1C32.7 66.6 33.9 65.4 35.4 65.4C36.9 65.4 38.1 66.6 38.1 68.1C38.1 69.6 36.9 70.8 35.4 70.8Z" fill="#F29018"></path><path d="M28.8 70.8C27.3 70.8 26.1 69.6 26.1 68.1C26.1 66.6 27.3 65.4 28.8 65.4C30.3 65.4 31.5 66.6 31.5 68.1C31.5 69.6 30.3 70.8 28.8 70.8Z" fill="#F29018"></path><path d="M48.4 70.8C46.9 70.8 45.7 69.6 45.7 68.1C45.7 66.6 46.9 65.4 48.4 65.4C49.9 65.4 51.1 66.6 51.1 68.1C51.2 69.6 49.9 70.8 48.4 70.8Z" fill="#F29018"></path><path d="M55 70.8C53.5 70.8 52.3 69.6 52.3 68.1C52.3 66.6 53.5 65.4 55 65.4C56.5 65.4 57.7 66.6 57.7 68.1C57.7 69.6 56.5 70.8 55 70.8Z" fill="#F29018"></path><path d="M55 77.3C53.5 77.3 52.3 76.1 52.3 74.6C52.3 73.1 53.5 71.9 55 71.9C56.5 71.9 57.7 73.1 57.7 74.6C57.7 76.1 56.5 77.3 55 77.3Z" fill="#F29018"></path><path d="M61.5 77.3C60 77.3 58.8 76.1 58.8 74.6C58.8 73.1 60 71.9 61.5 71.9C63 71.9 64.2 73.1 64.2 74.6C64.2 76.1 63 77.3 61.5 77.3Z" fill="#F29018"></path><path d="M68.1 77.3C66.6 77.3 65.4 76.1 65.4 74.6C65.4 73.1 66.6 71.9 68.1 71.9C69.6 71.9 70.8 73.1 70.8 74.6C70.8 76.1 69.6 77.3 68.1 77.3Z" fill="#F29018"></path><path d="M35.4 77.3C33.9 77.3 32.7 76.1 32.7 74.6C32.7 73.1 33.9 71.9 35.4 71.9C36.9 71.9 38.1 73.1 38.1 74.6C38.1 76.1 36.9 77.3 35.4 77.3Z" fill="#F29018"></path><path d="M28.8 77.3C27.3 77.3 26.1 76.1 26.1 74.6C26.1 73.1 27.3 71.9 28.8 71.9C30.3 71.9 31.5 73.1 31.5 74.6C31.5 76.1 30.3 77.3 28.8 77.3Z" fill="#F29018"></path><path d="M22.3 77.3C20.8 77.3 19.6 76.1 19.6 74.6C19.6 73.1 20.8 71.9 22.3 71.9C23.8 71.9 25 73.1 25 74.6C25 76.1 23.8 77.3 22.3 77.3Z" fill="#F29018"></path><path d="M41.9 77.3C40.4 77.3 39.2 76.1 39.2 74.6C39.2 73.1 40.4 71.9 41.9 71.9C43.4 71.9 44.6 73.1 44.6 74.6C44.6 76.1 43.4 77.3 41.9 77.3Z" fill="#F29018"></path><path d="M48.4 77.3C46.9 77.3 45.7 76.1 45.7 74.6C45.7 73.1 46.9 71.9 48.4 71.9C49.9 71.9 51.1 73.1 51.1 74.6C51.2 76.1 49.9 77.3 48.4 77.3Z" fill="#F29018"></path><path d="M55 83.9C53.5 83.9 52.3 82.7 52.3 81.2C52.3 79.7 53.5 78.5 55 78.5C56.5 78.5 57.7 79.7 57.7 81.2C57.7 82.7 56.5 83.9 55 83.9Z" fill="#F29018"></path><path d="M61.5 83.9C60 83.9 58.8 82.7 58.8 81.2C58.8 79.7 60 78.5 61.5 78.5C63 78.5 64.2 79.7 64.2 81.2C64.2 82.7 63 83.9 61.5 83.9Z" fill="#F29018"></path><path d="M68.1 83.9C66.6 83.9 65.4 82.7 65.4 81.2C65.4 79.7 66.6 78.5 68.1 78.5C69.6 78.5 70.8 79.7 70.8 81.2C70.8 82.7 69.6 83.9 68.1 83.9Z" fill="#F29018"></path><path d="M35.4 83.9C33.9 83.9 32.7 82.7 32.7 81.2C32.7 79.7 33.9 78.5 35.4 78.5C36.9 78.5 38.1 79.7 38.1 81.2C38.1 82.7 36.9 83.9 35.4 83.9Z" fill="#F29018"></path><path d="M28.8 83.9C27.3 83.9 26.1 82.7 26.1 81.2C26.1 79.7 27.3 78.5 28.8 78.5C30.3 78.5 31.5 79.7 31.5 81.2C31.5 82.7 30.3 83.9 28.8 83.9Z" fill="#F29018"></path><path d="M22.3 83.9C20.8 83.9 19.6 82.7 19.6 81.2C19.6 79.7 20.8 78.5 22.3 78.5C23.8 78.5 25 79.7 25 81.2C25 82.7 23.8 83.9 22.3 83.9Z" fill="#F29018"></path><path d="M41.9 83.9C40.4 83.9 39.2 82.7 39.2 81.2C39.2 79.7 40.4 78.5 41.9 78.5C43.4 78.5 44.6 79.7 44.6 81.2C44.6 82.7 43.4 83.9 41.9 83.9Z" fill="#F29018"></path><path d="M48.4 83.9C46.9 83.9 45.7 82.7 45.7 81.2C45.7 79.7 46.9 78.5 48.4 78.5C49.9 78.5 51.1 79.7 51.1 81.2C51.2 82.7 49.9 83.9 48.4 83.9Z" fill="#F29018"></path><path d="M55 90.4C53.5 90.4 52.3 89.2 52.3 87.7C52.3 86.2 53.5 85 55 85C56.5 85 57.7 86.2 57.7 87.7C57.7 89.2 56.5 90.4 55 90.4Z" fill="#F29018"></path><path d="M61.5 90.4C60 90.4 58.8 89.2 58.8 87.7C58.8 86.2 60 85 61.5 85C63 85 64.2 86.2 64.2 87.7C64.2 89.2 63 90.4 61.5 90.4Z" fill="#F29018"></path><path d="M68.1 90.4C66.6 90.4 65.4 89.2 65.4 87.7C65.4 86.2 66.6 85 68.1 85C69.6 85 70.8 86.2 70.8 87.7C70.8 89.2 69.6 90.4 68.1 90.4Z" fill="#F29018"></path><path d="M74.6 90.4C73.1 90.4 71.9 89.2 71.9 87.7C71.9 86.2 73.1 85 74.6 85C76.1 85 77.3 86.2 77.3 87.7C77.3 89.2 76.1 90.4 74.6 90.4Z" fill="#F29018"></path><path d="M35.4 90.4C33.9 90.4 32.7 89.2 32.7 87.7C32.7 86.2 33.9 85 35.4 85C36.9 85 38.1 86.2 38.1 87.7C38.1 89.2 36.9 90.4 35.4 90.4Z" fill="#F29018"></path><path d="M28.8 90.4C27.3 90.4 26.1 89.2 26.1 87.7C26.1 86.2 27.3 85 28.8 85C30.3 85 31.5 86.2 31.5 87.7C31.5 89.2 30.3 90.4 28.8 90.4Z" fill="#F29018"></path><path d="M22.3 90.4C20.8 90.4 19.6 89.2 19.6 87.7C19.6 86.2 20.8 85 22.3 85C23.8 85 25 86.2 25 87.7C25 89.2 23.8 90.4 22.3 90.4Z" fill="#F29018"></path><path d="M15.8 90.4C14.3 90.4 13.1 89.2 13.1 87.7C13.1 86.2 14.3 85 15.8 85C17.3 85 18.5 86.2 18.5 87.7C18.5 89.2 17.3 90.4 15.8 90.4Z" fill="#F29018"></path><path d="M41.9 90.4C40.4 90.4 39.2 89.2 39.2 87.7C39.2 86.2 40.4 85 41.9 85C43.4 85 44.6 86.2 44.6 87.7C44.6 89.2 43.4 90.4 41.9 90.4Z" fill="#F29018"></path><path d="M48.4 90.4C46.9 90.4 45.7 89.2 45.7 87.7C45.7 86.2 46.9 85 48.4 85C49.9 85 51.1 86.2 51.1 87.7C51.2 89.2 49.9 90.4 48.4 90.4Z" fill="#F29018"></path><path d="M55 96.9C53.5 96.9 52.3 95.7 52.3 94.2C52.3 92.7 53.5 91.5 55 91.5C56.5 91.5 57.7 92.7 57.7 94.2C57.7 95.7 56.5 96.9 55 96.9Z" fill="#F29018"></path><path d="M61.5 96.9C60 96.9 58.8 95.7 58.8 94.2C58.8 92.7 60 91.5 61.5 91.5C63 91.5 64.2 92.7 64.2 94.2C64.2 95.7 63 96.9 61.5 96.9Z" fill="#F29018"></path><path d="M68.1 96.9C66.6 96.9 65.4 95.7 65.4 94.2C65.4 92.7 66.6 91.5 68.1 91.5C69.6 91.5 70.8 92.7 70.8 94.2C70.8 95.7 69.6 96.9 68.1 96.9Z" fill="#F29018"></path><path d="M74.6 96.9C73.1 96.9 71.9 95.7 71.9 94.2C71.9 92.7 73.1 91.5 74.6 91.5C76.1 91.5 77.3 92.7 77.3 94.2C77.3 95.7 76.1 96.9 74.6 96.9Z" fill="#F29018"></path><path d="M68.1 103.5C66.6 103.5 65.4 102.3 65.4 100.8C65.4 99.3 66.6 98.1 68.1 98.1C69.6 98.1 70.8 99.3 70.8 100.8C70.8 102.3 69.6 103.5 68.1 103.5Z" fill="#F29018"></path><path d="M74.6 103.5C73.1 103.5 71.9 102.3 71.9 100.8C71.9 99.3 73.1 98.1 74.6 98.1C76.1 98.1 77.3 99.3 77.3 100.8C77.3 102.3 76.1 103.5 74.6 103.5Z" fill="#F29018"></path><path d="M68.1 116.6C66.6 116.6 65.4 115.4 65.4 113.9C65.4 112.4 66.6 111.2 68.1 111.2C69.6 111.2 70.8 112.4 70.8 113.9C70.8 115.3 69.6 116.6 68.1 116.6Z" fill="#F29018"></path><path d="M74.6 116.6C73.1 116.6 71.9 115.4 71.9 113.9C71.9 112.4 73.1 111.2 74.6 111.2C76.1 111.2 77.3 112.4 77.3 113.9C77.3 115.3 76.1 116.6 74.6 116.6Z" fill="#F29018"></path><path d="M74.6 110C73.1 110 71.9 108.8 71.9 107.3C71.9 105.8 73.1 104.6 74.6 104.6C76.1 104.6 77.3 105.8 77.3 107.3C77.3 108.8 76.1 110 74.6 110Z" fill="#F29018"></path><path d="M68.1 123.1C66.6 123.1 65.4 121.9 65.4 120.4C65.4 118.9 66.6 117.7 68.1 117.7C69.6 117.7 70.8 118.9 70.8 120.4C70.8 121.9 69.6 123.1 68.1 123.1Z" fill="#F29018"></path><path d="M74.6 123.1C73.1 123.1 71.9 121.9 71.9 120.4C71.9 118.9 73.1 117.7 74.6 117.7C76.1 117.7 77.3 118.9 77.3 120.4C77.3 121.9 76.1 123.1 74.6 123.1Z" fill="#F29018"></path><path d="M35.4 96.9C33.9 96.9 32.7 95.7 32.7 94.2C32.7 92.7 33.9 91.5 35.4 91.5C36.9 91.5 38.1 92.7 38.1 94.2C38.1 95.7 36.9 96.9 35.4 96.9Z" fill="#F29018"></path><path d="M28.8 96.9C27.3 96.9 26.1 95.7 26.1 94.2C26.1 92.7 27.3 91.5 28.8 91.5C30.3 91.5 31.5 92.7 31.5 94.2C31.5 95.7 30.3 96.9 28.8 96.9Z" fill="#F29018"></path><path d="M22.3 96.9C20.8 96.9 19.6 95.7 19.6 94.2C19.6 92.7 20.8 91.5 22.3 91.5C23.8 91.5 25 92.7 25 94.2C25 95.7 23.8 96.9 22.3 96.9Z" fill="#F29018"></path><path d="M15.8 96.9C14.3 96.9 13.1 95.7 13.1 94.2C13.1 92.7 14.3 91.5 15.8 91.5C17.3 91.5 18.5 92.7 18.5 94.2C18.5 95.7 17.3 96.9 15.8 96.9Z" fill="#F29018"></path><path d="M9.2 96.9C7.7 96.9 6.5 95.7 6.5 94.2C6.5 92.7 7.7 91.5 9.2 91.5C10.7 91.5 11.9 92.7 11.9 94.2C11.9 95.7 10.7 96.9 9.2 96.9Z" fill="#F29018"></path><path d="M22.3 103.5C20.8 103.5 19.6 102.3 19.6 100.8C19.6 99.3 20.8 98.1 22.3 98.1C23.8 98.1 25 99.3 25 100.8C25 102.3 23.8 103.5 22.3 103.5Z" fill="#F29018"></path><path d="M15.8 103.5C14.3 103.5 13.1 102.3 13.1 100.8C13.1 99.3 14.3 98.1 15.8 98.1C17.3 98.1 18.5 99.3 18.5 100.8C18.5 102.3 17.3 103.5 15.8 103.5Z" fill="#F29018"></path><path d="M9.2 103.5C7.7 103.5 6.5 102.3 6.5 100.8C6.5 99.3 7.7 98.1 9.2 98.1C10.7 98.1 11.9 99.3 11.9 100.8C11.9 102.3 10.7 103.5 9.2 103.5Z" fill="#F29018"></path><path d="M2.7 103.5C1.2 103.5 0 102.3 0 100.8C0 99.3 1.2 98.1 2.7 98.1C4.2 98.1 5.4 99.3 5.4 100.8C5.4 102.3 4.2 103.5 2.7 103.5Z" fill="#F29018"></path><path d="M41.9 96.9C40.4 96.9 39.2 95.7 39.2 94.2C39.2 92.7 40.4 91.5 41.9 91.5C43.4 91.5 44.6 92.7 44.6 94.2C44.6 95.7 43.4 96.9 41.9 96.9Z" fill="#F29018"></path><path d="M48.4 96.9C46.9 96.9 45.7 95.7 45.7 94.2C45.7 92.7 46.9 91.5 48.4 91.5C49.9 91.5 51.1 92.7 51.1 94.2C51.2 95.7 49.9 96.9 48.4 96.9Z" fill="#F29018"></path><path d="M81.1 44.6C79.6 44.6 78.4 43.4 78.4 41.9C78.4 40.4 79.6 39.2 81.1 39.2C82.6 39.2 83.8 40.4 83.8 41.9C83.9 43.4 82.6 44.6 81.1 44.6Z" fill="#F29018"></path><path d="M41.9 31.6C40.4 31.6 39.2 30.4 39.2 28.9C39.2 27.4 40.4 26.2 41.9 26.2C43.4 26.2 44.6 27.4 44.6 28.9C44.6 30.4 43.4 31.6 41.9 31.6Z" fill="#F29018"></path><path d="M61.5 31.6C60 31.6 58.8 30.4 58.8 28.9C58.8 27.4 60 26.2 61.5 26.2C63 26.2 64.2 27.4 64.2 28.9C64.2 30.4 63 31.6 61.5 31.6Z" fill="#F29018"></path><path d="M68.1 31.6C66.6 31.6 65.4 30.4 65.4 28.9C65.4 27.4 66.6 26.2 68.1 26.2C69.6 26.2 70.8 27.4 70.8 28.9C70.8 30.4 69.6 31.6 68.1 31.6Z" fill="#F29018"></path><path d="M74.6 31.6C73.1 31.6 71.9 30.4 71.9 28.9C71.9 27.4 73.1 26.2 74.6 26.2C76.1 26.2 77.3 27.4 77.3 28.9C77.3 30.4 76.1 31.6 74.6 31.6Z" fill="#F29018"></path><path d="M81.1 31.6C79.6 31.6 78.4 30.4 78.4 28.9C78.4 27.4 79.6 26.2 81.1 26.2C82.6 26.2 83.8 27.4 83.8 28.9C83.8 30.4 82.6 31.6 81.1 31.6Z" fill="#F29018"></path><path d="M61.5 25C60 25 58.8 23.8 58.8 22.3C58.8 20.8 60 19.6 61.5 19.6C63 19.6 64.2 20.8 64.2 22.3C64.2 23.8 63 25 61.5 25Z" fill="#F29018"></path><path d="M55 31.6C53.5 31.6 52.3 30.4 52.3 28.9C52.3 27.4 53.5 26.2 55 26.2C56.5 26.2 57.7 27.4 57.7 28.9C57.7 30.4 56.5 31.6 55 31.6Z" fill="#F29018"></path><path d="M55 25C53.5 25 52.3 23.8 52.3 22.3C52.3 20.8 53.5 19.6 55 19.6C56.5 19.6 57.7 20.8 57.7 22.3C57.7 23.8 56.5 25 55 25Z" fill="#F29018"></path><path d="M41.9 18.5C40.4 18.5 39.2 17.3 39.2 15.8C39.2 14.3 40.4 13.1 41.9 13.1C43.4 13.1 44.6 14.3 44.6 15.8C44.6 17.3 43.4 18.5 41.9 18.5Z" fill="#F29018"></path><path d="M48.4 11.9C46.9 11.9 45.7 10.7 45.7 9.2C45.7 7.7 46.9 6.5 48.4 6.5C49.9 6.5 51.1 7.7 51.1 9.2C51.2 10.7 49.9 11.9 48.4 11.9Z" fill="#F29018"></path><path d="M55 5.4C53.5 5.4 52.3 4.2 52.3 2.7C52.3 1.2 53.5 0 55 0C56.5 0 57.7 1.2 57.7 2.7C57.7 4.2 56.5 5.4 55 5.4Z" fill="#F29018"></path><path d="M68.1 25C66.6 25 65.4 23.8 65.4 22.3C65.4 20.8 66.6 19.6 68.1 19.6C69.6 19.6 70.8 20.8 70.8 22.3C70.8 23.8 69.6 25 68.1 25Z" fill="#F29018"></path><path d="M74.6 25C73.1 25 71.9 23.8 71.9 22.3C71.9 20.8 73.1 19.6 74.6 19.6C76.1 19.6 77.3 20.8 77.3 22.3C77.3 23.8 76.1 25 74.6 25Z" fill="#F29018"></path><path d="M81.1 25C79.6 25 78.4 23.8 78.4 22.3C78.4 20.8 79.6 19.6 81.1 19.6C82.6 19.6 83.8 20.8 83.8 22.3C83.8 23.8 82.6 25 81.1 25Z" fill="#F29018"></path><path d="M61.5 18.5C60 18.5 58.8 17.3 58.8 15.8C58.8 14.3 60 13.1 61.5 13.1C63 13.1 64.2 14.3 64.2 15.8C64.2 17.3 63 18.5 61.5 18.5Z" fill="#F29018"></path><path d="M68.1 18.5C66.6 18.5 65.4 17.3 65.4 15.8C65.4 14.3 66.6 13.1 68.1 13.1C69.6 13.1 70.8 14.3 70.8 15.8C70.8 17.3 69.6 18.5 68.1 18.5Z" fill="#F29018"></path><path d="M74.6 18.5C73.1 18.5 71.9 17.3 71.9 15.8C71.9 14.3 73.1 13.1 74.6 13.1C76.1 13.1 77.3 14.3 77.3 15.8C77.3 17.3 76.1 18.5 74.6 18.5Z" fill="#F29018"></path><path d="M81.1 18.5C79.6 18.5 78.4 17.3 78.4 15.8C78.4 14.3 79.6 13.1 81.1 13.1C82.6 13.1 83.8 14.3 83.8 15.8C83.8 17.3 82.6 18.5 81.1 18.5Z" fill="#F29018"></path><path d="M87.7 31.6C86.2 31.6 85 30.4 85 28.9C85 27.4 86.2 26.2 87.7 26.2C89.2 26.2 90.4 27.4 90.4 28.9C90.4 30.4 89.2 31.6 87.7 31.6Z" fill="#F29018"></path><path d="M87.7 25C86.2 25 85 23.8 85 22.3C85 20.8 86.2 19.6 87.7 19.6C89.2 19.6 90.4 20.8 90.4 22.3C90.4 23.8 89.2 25 87.7 25Z" fill="#F29018"></path><path d="M87.7 18.5C86.2 18.5 85 17.3 85 15.8C85 14.3 86.2 13.1 87.7 13.1C89.2 13.1 90.4 14.3 90.4 15.8C90.4 17.3 89.2 18.5 87.7 18.5Z" fill="#F29018"></path><path d="M68.1 11.9C66.6 11.9 65.4 10.7 65.4 9.2C65.4 7.7 66.6 6.5 68.1 6.5C69.6 6.5 70.8 7.7 70.8 9.2C70.8 10.7 69.6 11.9 68.1 11.9Z" fill="#F29018"></path><path d="M74.6 11.9C73.1 11.9 71.9 10.7 71.9 9.2C71.9 7.7 73.1 6.5 74.6 6.5C76.1 6.5 77.3 7.7 77.3 9.2C77.3 10.7 76.1 11.9 74.6 11.9Z" fill="#F29018"></path><path d="M81.1 11.9C79.6 11.9 78.4 10.7 78.4 9.2C78.4 7.7 79.6 6.5 81.1 6.5C82.6 6.5 83.8 7.7 83.8 9.2C83.9 10.7 82.6 11.9 81.1 11.9Z" fill="#F29018"></path><path d="M87.7 11.9C86.2 11.9 85 10.7 85 9.2C85 7.7 86.2 6.5 87.7 6.5C89.2 6.5 90.4 7.7 90.4 9.2C90.4 10.7 89.2 11.9 87.7 11.9Z" fill="#F29018"></path><path d="M94.2 25C92.7 25 91.5 23.8 91.5 22.3C91.5 20.8 92.7 19.6 94.2 19.6C95.7 19.6 96.9 20.8 96.9 22.3C96.9 23.8 95.7 25 94.2 25Z" fill="#F29018"></path><path d="M94.2 18.5C92.7 18.5 91.5 17.3 91.5 15.8C91.5 14.3 92.7 13.1 94.2 13.1C95.7 13.1 96.9 14.3 96.9 15.8C96.9 17.3 95.7 18.5 94.2 18.5Z" fill="#F29018"></path><path d="M135.1 58.6V61.6C135.1 61.6 135.1 64.6 132.1 64.6H120.1V75V76.6C120.1 76.7 120.1 76.8 120.1 76.9C120.1 77 120.1 77 120.1 77.1C120 77.8 119.8 78.3 119.4 78.6C119.4 78.6 119.4 78.7 119.3 78.7C119.2 78.8 119.1 78.9 119 79C118.7 79.3 118.3 79.5 117.7 79.6C117.3 79.7 117.1 79.7 117.1 79.7H114.1C114.1 79.7 113.8 79.7 113.5 79.6C112.9 79.5 112.5 79.3 112.2 79C112.1 78.9 112 78.8 111.9 78.7C111.9 78.7 111.9 78.6 111.8 78.6C111.5 78.2 111.2 77.7 111.1 77.1C111.1 77 111.1 77 111.1 76.9C111.1 76.8 111.1 76.7 111.1 76.6V75V64.6H99.1C96.1 64.6 96.1 61.6 96.1 61.6V58.6C96.1 55.6 99.1 55.6 99.1 55.6H111.1V45.5V43.7C111.1 43.7 111.1 43.4 111.2 43C111.3 42.5 111.5 42.1 111.7 41.8C111.8 41.7 111.9 41.6 112 41.5L112.1 41.4C112.4 41.1 112.9 40.9 113.5 40.8C113.8 40.7 114 40.7 114.1 40.7H117.1C117.1 40.7 117.4 40.7 117.7 40.8C118.3 40.9 118.8 41.1 119.1 41.4L119.2 41.5C119.3 41.6 119.4 41.7 119.5 41.8C119.8 42.1 119.9 42.5 120 43C120.1 43.4 120.1 43.7 120.1 43.7V45.5V55.6H132.1C132.1 55.6 135.1 55.6 135.1 58.6Z" fill="#F29018"></path><path d="M132.1 83.9C119.1 92.9 101.2 89.6 92.3 76.6C83.4 63.6 86.6 45.7 99.6 36.8C112.6 27.8 130.5 31.1 139.4 44.1C148.3 57.1 145.1 74.9 132.1 83.9ZM149.2 37.3C136.5 18.9 111.2 14.2 92.8 27C74.4 39.7 69.7 65 82.5 83.4C93.8 99.8 115 105.2 132.5 97.4L148.1 120C150.4 123.3 154.9 124.1 158.3 121.8C161.6 119.5 162.5 115 160.2 111.7L144.5 89C158.1 75.4 160.5 53.6 149.2 37.3Z" fill="#110E72"></path>',117)];function Y8(t,e){return a.openBlock(),a.createElementBlock("svg",W8,K8)}const hp=Ce(H8,[["render",Y8]]),ya={PRIMARY:"primary",SECONDARY:"secondary",DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success",LIGHT:"light",GRAY:"gray"},G8={key:0,class:"b-d-alert-title"},lo=a.defineComponent({__name:"BDAlert",props:{variant:{default:ya.PRIMARY},title:{default:""}},setup(t){const e=t,n=a.computed(()=>["alert",`alert-${e.variant}`]);return(r,o)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n.value),role:"alert"},[r.title?(a.openBlock(),a.createElementBlock("div",G8,[a.createVNode(a.unref(wr)),a.createElementVNode("span",null,[a.createElementVNode("strong",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default")],2))}});function Q8(t){return a.getCurrentScope()?(a.onScopeDispose(t),!0):!1}function va(t){return typeof t=="function"?t():a.unref(t)}const Z8=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J8=t=>typeof t<"u",X8=Object.prototype.toString,q8=t=>X8.call(t)==="[object Object]",ed=()=>{};function eC(t,e){function n(...r){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(o).catch(i)})}return n}function tC(t,e={}){let n,r,o=ed;const i=c=>{clearTimeout(c),o(),o=ed};return c=>{const l=va(t),d=va(e.maxWait);return n&&i(n),l<=0||d!==void 0&&d<=0?(r&&(i(r),r=null),Promise.resolve(c())):new Promise((u,f)=>{o=e.rejectOnCancel?f:u,d&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(c())},d)),n=setTimeout(()=>{r&&i(r),r=null,u(c())},l)})}}function nC(t,e=200,n={}){return eC(tC(e,n),t)}function pp(t){var e;const n=va(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rC=Z8?window:void 0;function mp(...t){let e,n,r,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,o]=t,e=rC):[e,n,r,o]=t,!e)return ed;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(u=>u()),i.length=0},c=(u,f,h,p)=>(u.addEventListener(f,h,p),()=>u.removeEventListener(f,h,p)),l=a.watch(()=>[pp(e),va(o)],([u,f])=>{if(s(),!u)return;const h=q8(f)?{...f}:f;i.push(...n.flatMap(p=>r.map(m=>c(u,p,m,h))))},{immediate:!0,flush:"post"}),d=()=>{l(),s()};return Q8(d),d}function oC(t){return JSON.parse(JSON.stringify(t))}function iC(t,e={}){const{initialValue:n=!1,focusVisible:r=!1}=e,o=a.ref(!1),i=a.computed(()=>pp(t));mp(i,"focus",c=>{var l,d;(!r||(d=(l=c.target).matches)!=null&&d.call(l,":focus-visible"))&&(o.value=!0)}),mp(i,"blur",()=>o.value=!1);const s=a.computed({get:()=>o.value,set(c){var l,d;!c&&o.value?(l=i.value)==null||l.blur():c&&!o.value&&((d=i.value)==null||d.focus())}});return a.watch(i,()=>{s.value=n},{immediate:!0,flush:"post"}),{focused:s}}function co(t,e,n,r={}){var o,i,s;const{clone:c=!1,passive:l=!1,eventName:d,deep:u=!1,defaultValue:f,shouldEmit:h}=r,p=a.getCurrentInstance(),m=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((s=(i=p==null?void 0:p.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(p==null?void 0:p.proxy));let g=d;e||(e="modelValue"),g=g||`update:${e.toString()}`;const y=b=>c?typeof c=="function"?c(b):oC(b):b,C=()=>J8(t[e])?y(t[e]):f,E=b=>{h?h(b)&&m(g,b):m(g,b)};if(l){const b=C(),v=a.ref(b);let k=!1;return a.watch(()=>t[e],_=>{k||(k=!0,v.value=y(_),a.nextTick(()=>k=!1))}),a.watch(v,_=>{!k&&(_!==t[e]||u)&&E(_)},{deep:u}),v}else return a.computed({get(){return C()},set(b){E(b)}})}const sC={class:"bd-zoom-slider d-flex"},aC=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M1.5 13.5h21a1.5 1.5 0 0 0 0-3h-21a1.5 1.5 0 0 0 0 3z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],lC=["max"],cC=[a.createElementVNode("g",{transform:"matrix(0.8333333333333334,0,0,0.8333333333333334,0,0)"},[a.createElementVNode("path",{d:"M0 12a1.5 1.5 0 0 0 1.5 1.5h8.75a.25.25 0 0 1 .25.25v8.75a1.5 1.5 0 0 0 3 0v-8.75a.25.25 0 0 1 .25-.25h8.75a1.5 1.5 0 0 0 0-3h-8.75a.25.25 0 0 1-.25-.25V1.5a1.5 1.5 0 0 0-3 0v8.75a.25.25 0 0 1-.25.25H1.5A1.5 1.5 0 0 0 0 12z","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"0"})],-1)],td=a.defineComponent({__name:"BDZoomslider",props:{modelValue:{},maxValue:{default:5}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=co(n,"modelValue",e);function o(){r.value!==0&&r.value--}function i(){r.value<n.maxValue&&r.value++}return(s,c)=>(a.openBlock(),a.createElementBlock("div",sC,[(a.openBlock(),a.createElementBlock("svg",{class:"bd-zoom-slider-min-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:o},aC)),a.withDirectives(a.createElementVNode("input",{type:"range","onUpdate:modelValue":c[0]||(c[0]=l=>a.isRef(r)?r.value=l:null),min:"0",max:s.maxValue,class:"bd-zoom-slider-input"},null,8,lC),[[a.vModelText,a.unref(r)]]),(a.openBlock(),a.createElementBlock("svg",{class:"bd-zoom-slider-plus-button",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",stroke:"#000000",height:"20",width:"20",onClick:i},cC))]))}}),dC={class:"bd-profile-picture"},uC=["src","alt"],Ki=a.defineComponent({__name:"BDProfileImage",props:{src:{default:""},username:{default:null},size:{default:ut.LG},linkText:{default:null}},emits:["click"],setup(t,{emit:e}){const n=t,r=a.computed(()=>`${n.username?`${n.username}'s `:""}profielfoto`),o=()=>{e("click")};return(i,s)=>(a.openBlock(),a.createElementBlock("div",dC,[a.createElementVNode("div",{class:a.normalizeClass(["rounded-circle",n.size])},[a.createElementVNode("img",{src:n.src,alt:r.value},null,8,uC)],2),n.linkText?(a.openBlock(),a.createBlock(ze,{key:0,variant:"link",onClick:o,textContent:a.toDisplayString(n.linkText)},null,8,["textContent"])):a.createCommentVNode("",!0)]))}});for(var uo=256,gp=[],yp=256,ba;uo--;)gp[uo]=(uo+256).toString(16).substring(1);function vp(t){var e=0,n=t||11;if(!ba||uo+n>yp*2)for(ba="",uo=0;e<yp;e++)ba+=gp[Math.random()*256|0];return ba.substring(uo,uo+++n)}function Wo(){return{uniqueIdentifier:a.ref(vp())}}const fC=["id"],hC={key:0},Ca=a.defineComponent({__name:"BDCard",props:{class:{default:""},title:{default:""},noHeader:{type:Boolean,default:!1},noBody:{type:Boolean,default:!1},headerClass:{default:""},bodyClass:{default:""},id:{default:0},headerVariant:{default:"primary"}},setup(t){const e=t,{uniqueIdentifier:n}=Wo(),r=n.value,o=a.computed(()=>({"bd-card card":!0,[`${e.class}`]:e.class,"no-body":e.noBody})),i=a.computed(()=>({"card-header":!0,"no-title":!e.title,[`${e.headerClass}`]:e.headerClass,[`${e.headerVariant}`]:e.headerVariant})),s=a.computed(()=>({"card-body":!0,[`${e.bodyClass}`]:e.bodyClass}));return(c,l)=>(a.openBlock(),a.createElementBlock("div",{id:a.unref(r),class:a.normalizeClass(o.value)},[!c.noHeader||c.noBody?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(i.value)},[a.renderSlot(c.$slots,"header",{},()=>[c.title?(a.openBlock(),a.createElementBlock("h2",hC,a.toDisplayString(c.title),1)):a.createCommentVNode("",!0)])],2)):a.createCommentVNode("",!0),c.noBody?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(s.value)},[a.renderSlot(c.$slots,"body")],2))],10,fC))}}),pC={key:0},mC={class:"bd-collapsable-card__actions"},gC=["data-bs-target","aria-expanded"],nd=a.defineComponent({__name:"BDCollapsableCard",props:{title:{default:"Title"},disabled:{type:Boolean,default:!1},collapseOn:{default:null},showOn:{default:"md"},visible:{type:Boolean,default:!0}},setup(t){const e=t,{uniqueIdentifier:n}=Wo(),r=n.value,o=a.computed(()=>`bd-collapsable-card__collapse-${r}`),i=a.computed(()=>({"d-block":[ut.SM,ut.MD].includes(e.showOn.toLowerCase()),"d-md-none":e.showOn.toLowerCase()==ut.SM,"d-lg-none":e.showOn.toLowerCase()==ut.MD})),s=a.computed(()=>{let p={"round-corners-sm":e.showOn.toLowerCase()==ut.SM,"round-corners-md":e.showOn.toLowerCase()==ut.MD,"is-disabled":e.disabled,"round-corners":!e.visible};return Object.keys(p).filter(m=>p[m]).join(" ")}),c=a.computed(()=>e.collapseOn?u.value>=d:!0),l=a.computed(()=>{let p={show:c.value,collapse:!0,"collapsable-body":!0,[`${o.value}`]:!0,"display-none":!e.visible||e.disabled,"open-collapse-lg":e.visible&&[ut.SM,ut.MD].includes(e.showOn.toLowerCase()),"open-collapse-md":e.showOn.toLowerCase()==ut.SM&&e.visible};return Object.keys(p).filter(m=>p[m]).join(" ")}),d=h(),u=a.ref(0);a.onMounted(()=>{f(),window.addEventListener("resize",f)}),a.onUnmounted(()=>{window.removeEventListener("resize",f)});function f(){u.value=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}function h(){if(!e.collapseOn)return 0;switch(e.collapseOn.toLowerCase()){case ut.XS:return 576;case ut.SM:return 768;case ut.MD:return 992;case ut.LG:return 1200;case ut.XL:return 1400;default:return 0}}return(p,m)=>(a.openBlock(),a.createBlock(Ca,{class:"bd-collapsable-card",title:p.title,"header-class":s.value,"body-class":l.value},{header:a.withCtx(()=>[p.title?(a.openBlock(),a.createElementBlock("h2",pC,a.toDisplayString(p.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",mC,[a.renderSlot(p.$slots,"action"),!p.disabled&&p.visible?(a.openBlock(),a.createElementBlock("button",{key:0,class:a.normalizeClass(["btn btn-white btn-caret",i.value]),type:"button","data-bs-toggle":"collapse","data-bs-target":`.${o.value}`,"aria-expanded":c.value},[a.createVNode(a.unref(fa))],10,gC)):a.createCommentVNode("",!0)])]),body:a.withCtx(()=>[a.renderSlot(p.$slots,"body")]),_:3},8,["title","header-class","body-class"]))}});/*!
|
|
57
57
|
* shared v9.14.4
|
|
58
58
|
* (c) 2025 kazuya kawaguchi
|
|
59
59
|
* Released under the MIT License.
|
|
60
|
-
*/const nr=typeof window<"u";let tn,fo;if(process.env.NODE_ENV!=="production"){const t=nr&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(tn=e=>{t.mark(e)},fo=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const yC=/\{([0-9a-zA-Z]+)\}/g;function rd(t,...e){return e.length===1&&Ze(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(yC,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const rr=(t,e=!1)=>e?Symbol.for(t):Symbol(t),vC=(t,e,n)=>bC({l:t,k:e,s:n}),bC=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),
|
|
61
|
-
`)}function Sa(t){let e=t;return()=>++e}function ir(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const wp={};function kp(t){wp[t]||(wp[t]=!0,ir(t))}function TC(){const t=new Map;return{events:t,on(n,r){const o=t.get(n);o&&o.push(r)||t.set(n,[r])},off(n,r){const o=t.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(o=>o(r)),(t.get("*")||[]).slice().map(o=>o(n,r))}}}const _a=t=>!Ze(t)||
|
|
60
|
+
*/const nr=typeof window<"u";let tn,fo;if(process.env.NODE_ENV!=="production"){const t=nr&&window.performance;t&&t.mark&&t.measure&&t.clearMarks&&t.clearMeasures&&(tn=e=>{t.mark(e)},fo=(e,n,r)=>{t.measure(e,n,r),t.clearMarks(n),t.clearMarks(r)})}const yC=/\{([0-9a-zA-Z]+)\}/g;function rd(t,...e){return e.length===1&&Ze(e[0])&&(e=e[0]),(!e||!e.hasOwnProperty)&&(e={}),t.replace(yC,(n,r)=>e.hasOwnProperty(r)?e[r]:"")}const rr=(t,e=!1)=>e?Symbol.for(t):Symbol(t),vC=(t,e,n)=>bC({l:t,k:e,s:n}),bC=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),vt=t=>typeof t=="number"&&isFinite(t),CC=t=>Sp(t)==="[object Date]",Ko=t=>Sp(t)==="[object RegExp]",Ea=t=>We(t)&&Object.keys(t).length===0,xt=Object.assign,EC=Object.create,Xe=(t=null)=>EC(t);let bp;const or=()=>bp||(bp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Xe());function Cp(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const SC=Object.prototype.hasOwnProperty;function kn(t,e){return SC.call(t,e)}const ft=Array.isArray,nt=t=>typeof t=="function",Te=t=>typeof t=="string",tt=t=>typeof t=="boolean",Ze=t=>t!==null&&typeof t=="object",_C=t=>Ze(t)&&nt(t.then)&&nt(t.catch),Ep=Object.prototype.toString,Sp=t=>Ep.call(t),We=t=>{if(!Ze(t))return!1;const e=Object.getPrototypeOf(t);return e===null||e.constructor===Object},wC=t=>t==null?"":ft(t)||We(t)&&t.toString===Ep?JSON.stringify(t,null,2):String(t);function kC(t,e=""){return t.reduce((n,r,o)=>o===0?n+r:n+e+r,"")}const _p=2;function AC(t,e=0,n=t.length){const r=t.split(/\r?\n/);let o=0;const i=[];for(let s=0;s<r.length;s++)if(o+=r[s].length+1,o>=e){for(let c=s-_p;c<=s+_p||n>o;c++){if(c<0||c>=r.length)continue;const l=c+1;i.push(`${l}${" ".repeat(3-String(l).length)}| ${r[c]}`);const d=r[c].length;if(c===s){const u=e-(o-d)+1,f=Math.max(1,n>o?d-u:n-e);i.push(" | "+" ".repeat(u)+"^".repeat(f))}else if(c>s){if(n>o){const u=Math.max(Math.min(n-o,d),1);i.push(" | "+"^".repeat(u))}o+=d+1}}break}return i.join(`
|
|
61
|
+
`)}function Sa(t){let e=t;return()=>++e}function ir(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const wp={};function kp(t){wp[t]||(wp[t]=!0,ir(t))}function TC(){const t=new Map;return{events:t,on(n,r){const o=t.get(n);o&&o.push(r)||t.set(n,[r])},off(n,r){const o=t.get(n);o&&o.splice(o.indexOf(r)>>>0,1)},emit(n,r){(t.get(n)||[]).slice().map(o=>o(r)),(t.get("*")||[]).slice().map(o=>o(n,r))}}}const _a=t=>!Ze(t)||ft(t);function wa(t,e){if(_a(t)||_a(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:r,des:o}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ze(r[i])&&!Ze(o[i])&&(o[i]=Array.isArray(r[i])?[]:Xe()),_a(o[i])||_a(r[i])?o[i]=r[i]:n.push({src:r[i],des:o[i]}))})}}/*!
|
|
62
62
|
* message-compiler v9.14.4
|
|
63
63
|
* (c) 2025 kazuya kawaguchi
|
|
64
64
|
* Released under the MIT License.
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
* core-base v9.14.4
|
|
69
69
|
* (c) 2025 kazuya kawaguchi
|
|
70
70
|
* Released under the MIT License.
|
|
71
|
-
*/function sE(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(or().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(or().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(or().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Tn(t){return Ze(t)&&id(t)===0&&(kn(t,"b")||kn(t,"body"))}const Lp=["b","body"];function aE(t){return Ar(t,Lp)}const Dp=["c","cases"];function lE(t){return Ar(t,Dp,[])}const Pp=["s","static"];function cE(t){return Ar(t,Pp)}const Bp=["i","items"];function dE(t){return Ar(t,Bp,[])}const $p=["t","type"];function id(t){return Ar(t,$p)}const Rp=["v","value"];function Ta(t,e){const n=Ar(t,Rp);if(n!=null)return n;throw Yi(e)}const Vp=["m","modifier"];function uE(t){return Ar(t,Vp)}const Fp=["k","key"];function fE(t){const e=Ar(t,Fp);if(e)return e;throw Yi(6)}function Ar(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(kn(t,o)&&t[o]!=null)return t[o]}return n}const jp=[...Lp,...Dp,...Pp,...Bp,...Fp,...Vp,...Rp,...$p];function Yi(t){return new Error(`unhandled node type: ${t}`)}const Tr=[];Tr[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tr[1]={w:[1],".":[2],"[":[4],o:[7]},Tr[2]={w:[2],i:[3,0],0:[3,0]},Tr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tr[5]={"'":[4,0],o:8,l:[5,0]},Tr[6]={'"':[4,0],o:8,l:[6,0]};const hE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pE(t){return hE.test(t)}function mE(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 gE(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 yE(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:pE(e)?mE(e):"*"+e}function vE(t){const e=[];let n=-1,r=0,o=0,i,s,c,l,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=yE(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(l=gE(i),f=Tr[r],d=f[l]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const zp=new Map;function bE(t,e){return Ze(t)?t[e]:null}function CE(t,e){if(!Ze(t))return null;let n=zp.get(e);if(n||(n=vE(e),n&&zp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(jp.includes(s)&&Tn(o))return null;const c=o[s];if(c===void 0||nt(o))return null;o=c,i++}return o}const EE=t=>t,SE=t=>"",_E="text",wE=t=>t.length===0?"":kC(t),kE=wC;function Up(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function AE(t){const e=yt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(yt(t.named.count)||yt(t.named.n))?yt(t.named.count)?t.named.count:yt(t.named.n)?t.named.n:e:e}function TE(t,e){e.count||(e.count=t),e.n||(e.n=t)}function IE(t={}){const e=t.locale,n=AE(t),r=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?t.pluralRules[e]:Up,o=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?Up:void 0,i=C=>C[r(n,C.length,o)],s=t.list||[],c=C=>s[C],l=t.named||Xe();yt(t.pluralIndex)&&TE(n,l);const d=C=>l[C];function u(C){const E=nt(t.messages)?t.messages(C):Ze(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):SE)}const f=C=>t.modifiers?t.modifiers[C]:EE,h=We(t.processor)&&nt(t.processor.normalize)?t.processor.normalize:wE,p=We(t.processor)&&nt(t.processor.interpolate)?t.processor.interpolate:kE,m=We(t.processor)&&Te(t.processor.type)?t.processor.type:_E,y={list:c,named:d,plural:i,linked:(C,...E)=>{const[b,v]=E;let k="text",_="";E.length===1?Ze(b)?(_=b.modifier||_,k=b.type||k):Te(b)&&(_=b||_):E.length===2&&(Te(b)&&(_=b||_),Te(v)&&(k=v||k));const O=u(C)(y),L=k==="vnode"&&ut(O)&&_?O[0]:O;return _?f(_)(L,k):L},message:u,type:m,interpolate:p,normalize:h,values:It(Xe(),s,l)};return y}let Gi=null;function xE(t){Gi=t}function OE(t,e,n){Gi&&Gi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const NE=ME("function:translate");function ME(t){return e=>Gi&&Gi.emit(t,e)}const Hp=Aa.__EXTEND_POINT__,ho=Sa(Hp),Dt={NOT_FOUND_KEY:Hp,FALLBACK_TO_TRANSLATE:ho(),CANNOT_FORMAT_NUMBER:ho(),FALLBACK_TO_NUMBER_FORMAT:ho(),CANNOT_FORMAT_DATE:ho(),FALLBACK_TO_DATE_FORMAT:ho(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ho(),__EXTEND_POINT__:ho()},LE={[Dt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Dt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Dt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Dt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function po(t,...e){return rd(LE[t],...e)}const Wp=Le.__EXTEND_POINT__,mo=Sa(Wp),vt={INVALID_ARGUMENT:Wp,INVALID_DATE_ARGUMENT:mo(),INVALID_ISO_DATE_ARGUMENT:mo(),NOT_SUPPORT_NON_STRING_MESSAGE:mo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:mo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:mo(),NOT_SUPPORT_LOCALE_TYPE:mo(),__EXTEND_POINT__:mo()};function Vn(t){return Yo(t,null,process.env.NODE_ENV!=="production"?{messages:DE}:void 0)}const DE={[vt.INVALID_ARGUMENT]:"Invalid arguments",[vt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[vt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[vt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[vt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sd(t,e){return e.locale!=null?Kp(e.locale):Kp(t.locale)}let ad;function Kp(t){if(Te(t))return t;if(nt(t)){if(t.resolvedOnce&&ad!=null)return ad;if(t.constructor.name==="Function"){const e=t();if(_C(e))throw Vn(vt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ad=e}else throw Vn(vt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Vn(vt.NOT_SUPPORT_LOCALE_TYPE)}function PE(t,e,n){return[...new Set([n,...ut(e)?e:Ze(e)?Object.keys(e):Te(e)?[e]:[n]])]}function Yp(t,e,n){const r=Te(n)?n:Qi,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;ut(s);)s=Gp(i,s,e);const c=ut(e)||!We(e)?e:e.default?e.default:null;s=Te(c)?[c]:c,ut(s)&&Gp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function Gp(t,e,n){let r=!0;for(let o=0;o<e.length&&tt(r);o++){const i=e[o];Te(i)&&(r=BE(t,e[o],n))}return r}function BE(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=$E(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function $E(t,e,n){let r=!1;if(!t.includes(e)&&(r=!0,e)){r=e[e.length-1]!=="!";const o=e.replace(/!/g,"");t.push(o),(ut(n)||We(n))&&n[o]&&(r=n[o])}return r}const RE="9.14.4",Ia=-1,Qi="en-US",xa="",Qp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function VE(){return{upper:(t,e)=>e==="text"&&Te(t)?t.toUpperCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Te(t)?t.toLowerCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Te(t)?Qp(t):e==="vnode"&&Ze(t)&&"__v_isVNode"in t?Qp(t.children):t}}let Zp;function Jp(t){Zp=t}let Xp;function FE(t){Xp=t}let qp;function jE(t){qp=t}let e1=null;const zE=t=>{e1=t},UE=()=>e1;let t1=null;const n1=t=>{t1=t},HE=()=>t1;let r1=0;function WE(t={}){const e=nt(t.onWarn)?t.onWarn:ir,n=Te(t.version)?t.version:RE,r=Te(t.locale)||nt(t.locale)?t.locale:Qi,o=nt(r)?Qi:r,i=ut(t.fallbackLocale)||We(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=We(t.messages)?t.messages:ld(o),c=We(t.datetimeFormats)?t.datetimeFormats:ld(o),l=We(t.numberFormats)?t.numberFormats:ld(o),d=It(Xe(),t.modifiers,VE()),u=t.pluralRules||Xe(),f=nt(t.missing)?t.missing:null,h=tt(t.missingWarn)||Ko(t.missingWarn)?t.missingWarn:!0,p=tt(t.fallbackWarn)||Ko(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,y=nt(t.postTranslation)?t.postTranslation:null,C=We(t.processor)?t.processor:null,E=tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,v=nt(t.messageCompiler)?t.messageCompiler:Zp;process.env.NODE_ENV!=="production"&&nt(t.messageCompiler)&&kp(po(Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=nt(t.messageResolver)?t.messageResolver:Xp||bE,_=nt(t.localeFallbacker)?t.localeFallbacker:qp||PE,O=Ze(t.fallbackContext)?t.fallbackContext:void 0,L=t,N=Ze(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,z=Ze(L.__numberFormatters)?L.__numberFormatters:new Map,V=Ze(L.__meta)?L.__meta:{};r1++;const P={version:n,cid:r1,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:y,processor:C,warnHtmlMessage:E,escapeParameter:b,messageCompiler:v,messageResolver:k,localeFallbacker:_,fallbackContext:O,onWarn:e,__meta:V};return P.datetimeFormats=c,P.numberFormats=l,P.__datetimeFormatters=N,P.__numberFormatters=z,process.env.NODE_ENV!=="production"&&(P.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&OE(P,n,V),P}const ld=t=>({[t]:Xe()});function Oa(t,e){return t instanceof RegExp?t.test(e):t}function o1(t,e){return t instanceof RegExp?t.test(e):t}function cd(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Te(c)?c:e}else return process.env.NODE_ENV!=="production"&&o1(r,e)&&s(po(Dt.NOT_FOUND_KEY,{key:e,locale:n})),e}function Zi(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function i1(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function KE(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(i1(t,e[r]))return!0;return!1}function dd(t){return n=>YE(n,t)}function YE(t,e){const n=aE(e);if(n==null)throw Yi(0);if(id(n)===1){const i=lE(n);return t.plural(i.reduce((s,c)=>[...s,s1(t,c)],[]))}else return s1(t,n)}function s1(t,e){const n=cE(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=dE(e).reduce((o,i)=>[...o,ud(t,i)],[]);return t.normalize(r)}}function ud(t,e){const n=id(e);switch(n){case 3:return Ta(e,n);case 9:return Ta(e,n);case 4:{const r=e;if(kn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(kn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Yi(n)}case 5:{const r=e;if(kn(r,"i")&&yt(r.i))return t.interpolate(t.list(r.i));if(kn(r,"index")&&yt(r.index))return t.interpolate(t.list(r.index));throw Yi(n)}case 6:{const r=e,o=uE(r),i=fE(r);return t.linked(ud(t,i),o?ud(t,o):void 0,t.type)}case 7:return Ta(e,n);case 8:return Ta(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const GE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function a1(t,e){e&&BC(t)&&ir(rd(GE,{source:t}))}const l1=t=>t;let Zo=Xe();function c1(t){t.code===Aa.USE_MODULO_SYNTAX&&ir(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
71
|
+
*/function sE(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(or().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(or().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(or().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Tn(t){return Ze(t)&&id(t)===0&&(kn(t,"b")||kn(t,"body"))}const Lp=["b","body"];function aE(t){return Ar(t,Lp)}const Dp=["c","cases"];function lE(t){return Ar(t,Dp,[])}const Pp=["s","static"];function cE(t){return Ar(t,Pp)}const Bp=["i","items"];function dE(t){return Ar(t,Bp,[])}const $p=["t","type"];function id(t){return Ar(t,$p)}const Rp=["v","value"];function Ta(t,e){const n=Ar(t,Rp);if(n!=null)return n;throw Yi(e)}const Vp=["m","modifier"];function uE(t){return Ar(t,Vp)}const Fp=["k","key"];function fE(t){const e=Ar(t,Fp);if(e)return e;throw Yi(6)}function Ar(t,e,n){for(let r=0;r<e.length;r++){const o=e[r];if(kn(t,o)&&t[o]!=null)return t[o]}return n}const jp=[...Lp,...Dp,...Pp,...Bp,...Fp,...Vp,...Rp,...$p];function Yi(t){return new Error(`unhandled node type: ${t}`)}const Tr=[];Tr[0]={w:[0],i:[3,0],"[":[4],o:[7]},Tr[1]={w:[1],".":[2],"[":[4],o:[7]},Tr[2]={w:[2],i:[3,0],0:[3,0]},Tr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Tr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Tr[5]={"'":[4,0],o:8,l:[5,0]},Tr[6]={'"':[4,0],o:8,l:[6,0]};const hE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pE(t){return hE.test(t)}function mE(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 gE(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 yE(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:pE(e)?mE(e):"*"+e}function vE(t){const e=[];let n=-1,r=0,o=0,i,s,c,l,d,u,f;const h=[];h[0]=()=>{s===void 0?s=c:s+=c},h[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,s===void 0||(s=yE(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(l=gE(i),f=Tr[r],d=f[l]||f.l||8,d===8||(r=d[0],d[1]!==void 0&&(u=h[d[1]],u&&(c=i,u()===!1))))return;if(r===7)return e}}const zp=new Map;function bE(t,e){return Ze(t)?t[e]:null}function CE(t,e){if(!Ze(t))return null;let n=zp.get(e);if(n||(n=vE(e),n&&zp.set(e,n)),!n)return null;const r=n.length;let o=t,i=0;for(;i<r;){const s=n[i];if(jp.includes(s)&&Tn(o))return null;const c=o[s];if(c===void 0||nt(o))return null;o=c,i++}return o}const EE=t=>t,SE=t=>"",_E="text",wE=t=>t.length===0?"":kC(t),kE=wC;function Up(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function AE(t){const e=vt(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(vt(t.named.count)||vt(t.named.n))?vt(t.named.count)?t.named.count:vt(t.named.n)?t.named.n:e:e}function TE(t,e){e.count||(e.count=t),e.n||(e.n=t)}function IE(t={}){const e=t.locale,n=AE(t),r=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?t.pluralRules[e]:Up,o=Ze(t.pluralRules)&&Te(e)&&nt(t.pluralRules[e])?Up:void 0,i=C=>C[r(n,C.length,o)],s=t.list||[],c=C=>s[C],l=t.named||Xe();vt(t.pluralIndex)&&TE(n,l);const d=C=>l[C];function u(C){const E=nt(t.messages)?t.messages(C):Ze(t.messages)?t.messages[C]:!1;return E||(t.parent?t.parent.message(C):SE)}const f=C=>t.modifiers?t.modifiers[C]:EE,h=We(t.processor)&&nt(t.processor.normalize)?t.processor.normalize:wE,p=We(t.processor)&&nt(t.processor.interpolate)?t.processor.interpolate:kE,m=We(t.processor)&&Te(t.processor.type)?t.processor.type:_E,y={list:c,named:d,plural:i,linked:(C,...E)=>{const[b,v]=E;let k="text",_="";E.length===1?Ze(b)?(_=b.modifier||_,k=b.type||k):Te(b)&&(_=b||_):E.length===2&&(Te(b)&&(_=b||_),Te(v)&&(k=v||k));const O=u(C)(y),L=k==="vnode"&&ft(O)&&_?O[0]:O;return _?f(_)(L,k):L},message:u,type:m,interpolate:p,normalize:h,values:xt(Xe(),s,l)};return y}let Gi=null;function xE(t){Gi=t}function OE(t,e,n){Gi&&Gi.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const NE=ME("function:translate");function ME(t){return e=>Gi&&Gi.emit(t,e)}const Hp=Aa.__EXTEND_POINT__,ho=Sa(Hp),Dt={NOT_FOUND_KEY:Hp,FALLBACK_TO_TRANSLATE:ho(),CANNOT_FORMAT_NUMBER:ho(),FALLBACK_TO_NUMBER_FORMAT:ho(),CANNOT_FORMAT_DATE:ho(),FALLBACK_TO_DATE_FORMAT:ho(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:ho(),__EXTEND_POINT__:ho()},LE={[Dt.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[Dt.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Dt.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[Dt.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Dt.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function po(t,...e){return rd(LE[t],...e)}const Wp=Le.__EXTEND_POINT__,mo=Sa(Wp),bt={INVALID_ARGUMENT:Wp,INVALID_DATE_ARGUMENT:mo(),INVALID_ISO_DATE_ARGUMENT:mo(),NOT_SUPPORT_NON_STRING_MESSAGE:mo(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:mo(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:mo(),NOT_SUPPORT_LOCALE_TYPE:mo(),__EXTEND_POINT__:mo()};function Vn(t){return Yo(t,null,process.env.NODE_ENV!=="production"?{messages:DE}:void 0)}const DE={[bt.INVALID_ARGUMENT]:"Invalid arguments",[bt.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[bt.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[bt.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[bt.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[bt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[bt.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sd(t,e){return e.locale!=null?Kp(e.locale):Kp(t.locale)}let ad;function Kp(t){if(Te(t))return t;if(nt(t)){if(t.resolvedOnce&&ad!=null)return ad;if(t.constructor.name==="Function"){const e=t();if(_C(e))throw Vn(bt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ad=e}else throw Vn(bt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Vn(bt.NOT_SUPPORT_LOCALE_TYPE)}function PE(t,e,n){return[...new Set([n,...ft(e)?e:Ze(e)?Object.keys(e):Te(e)?[e]:[n]])]}function Yp(t,e,n){const r=Te(n)?n:Qi,o=t;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let s=[n];for(;ft(s);)s=Gp(i,s,e);const c=ft(e)||!We(e)?e:e.default?e.default:null;s=Te(c)?[c]:c,ft(s)&&Gp(i,s,!1),o.__localeChainCache.set(r,i)}return i}function Gp(t,e,n){let r=!0;for(let o=0;o<e.length&&tt(r);o++){const i=e[o];Te(i)&&(r=BE(t,e[o],n))}return r}function BE(t,e,n){let r;const o=e.split("-");do{const i=o.join("-");r=$E(t,i,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function $E(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),(ft(n)||We(n))&&n[o]&&(r=n[o])}return r}const RE="9.14.4",Ia=-1,Qi="en-US",xa="",Qp=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function VE(){return{upper:(t,e)=>e==="text"&&Te(t)?t.toUpperCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&Te(t)?t.toLowerCase():e==="vnode"&&Ze(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&Te(t)?Qp(t):e==="vnode"&&Ze(t)&&"__v_isVNode"in t?Qp(t.children):t}}let Zp;function Jp(t){Zp=t}let Xp;function FE(t){Xp=t}let qp;function jE(t){qp=t}let e1=null;const zE=t=>{e1=t},UE=()=>e1;let t1=null;const n1=t=>{t1=t},HE=()=>t1;let r1=0;function WE(t={}){const e=nt(t.onWarn)?t.onWarn:ir,n=Te(t.version)?t.version:RE,r=Te(t.locale)||nt(t.locale)?t.locale:Qi,o=nt(r)?Qi:r,i=ft(t.fallbackLocale)||We(t.fallbackLocale)||Te(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o,s=We(t.messages)?t.messages:ld(o),c=We(t.datetimeFormats)?t.datetimeFormats:ld(o),l=We(t.numberFormats)?t.numberFormats:ld(o),d=xt(Xe(),t.modifiers,VE()),u=t.pluralRules||Xe(),f=nt(t.missing)?t.missing:null,h=tt(t.missingWarn)||Ko(t.missingWarn)?t.missingWarn:!0,p=tt(t.fallbackWarn)||Ko(t.fallbackWarn)?t.fallbackWarn:!0,m=!!t.fallbackFormat,g=!!t.unresolving,y=nt(t.postTranslation)?t.postTranslation:null,C=We(t.processor)?t.processor:null,E=tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter,v=nt(t.messageCompiler)?t.messageCompiler:Zp;process.env.NODE_ENV!=="production"&&nt(t.messageCompiler)&&kp(po(Dt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const k=nt(t.messageResolver)?t.messageResolver:Xp||bE,_=nt(t.localeFallbacker)?t.localeFallbacker:qp||PE,O=Ze(t.fallbackContext)?t.fallbackContext:void 0,L=t,N=Ze(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,z=Ze(L.__numberFormatters)?L.__numberFormatters:new Map,V=Ze(L.__meta)?L.__meta:{};r1++;const P={version:n,cid:r1,locale:r,fallbackLocale:i,messages:s,modifiers:d,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:g,postTranslation:y,processor:C,warnHtmlMessage:E,escapeParameter:b,messageCompiler:v,messageResolver:k,localeFallbacker:_,fallbackContext:O,onWarn:e,__meta:V};return P.datetimeFormats=c,P.numberFormats=l,P.__datetimeFormatters=N,P.__numberFormatters=z,process.env.NODE_ENV!=="production"&&(P.__v_emitter=L.__v_emitter!=null?L.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&OE(P,n,V),P}const ld=t=>({[t]:Xe()});function Oa(t,e){return t instanceof RegExp?t.test(e):t}function o1(t,e){return t instanceof RegExp?t.test(e):t}function cd(t,e,n,r,o){const{missing:i,onWarn:s}=t;if(process.env.NODE_ENV!=="production"){const c=t.__v_emitter;c&&c.emit("missing",{locale:n,key:e,type:o,groupId:`${o}:${e}`})}if(i!==null){const c=i(t,n,e,o);return Te(c)?c:e}else return process.env.NODE_ENV!=="production"&&o1(r,e)&&s(po(Dt.NOT_FOUND_KEY,{key:e,locale:n})),e}function Zi(t,e,n){const r=t;r.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function i1(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function KE(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let r=n+1;r<e.length;r++)if(i1(t,e[r]))return!0;return!1}function dd(t){return n=>YE(n,t)}function YE(t,e){const n=aE(e);if(n==null)throw Yi(0);if(id(n)===1){const i=lE(n);return t.plural(i.reduce((s,c)=>[...s,s1(t,c)],[]))}else return s1(t,n)}function s1(t,e){const n=cE(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const r=dE(e).reduce((o,i)=>[...o,ud(t,i)],[]);return t.normalize(r)}}function ud(t,e){const n=id(e);switch(n){case 3:return Ta(e,n);case 9:return Ta(e,n);case 4:{const r=e;if(kn(r,"k")&&r.k)return t.interpolate(t.named(r.k));if(kn(r,"key")&&r.key)return t.interpolate(t.named(r.key));throw Yi(n)}case 5:{const r=e;if(kn(r,"i")&&vt(r.i))return t.interpolate(t.list(r.i));if(kn(r,"index")&&vt(r.index))return t.interpolate(t.list(r.index));throw Yi(n)}case 6:{const r=e,o=uE(r),i=fE(r);return t.linked(ud(t,i),o?ud(t,o):void 0,t.type)}case 7:return Ta(e,n);case 8:return Ta(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const GE="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function a1(t,e){e&&BC(t)&&ir(rd(GE,{source:t}))}const l1=t=>t;let Zo=Xe();function c1(t){t.code===Aa.USE_MODULO_SYNTAX&&ir(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
72
72
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
73
|
-
(message compiler warning message: ${t.message})`)}function d1(t,e={}){let n=!1;const r=e.onError||DC;return e.onError=o=>{n=!0,r(o)},{...iE(t,e),detectError:n}}const QE=(t,e)=>{if(!Te(t))throw Vn(
|
|
74
|
-
${d}`:l)}else throw s},onCacheKey:s=>vC(e,n,s)}}function e9(t){if(Te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function t9(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:l,missingWarn:d,fallbackContext:u}=t,h={locale:e,modifiers:o,pluralRules:i,messages:p=>{let m=s(n,p);if(m==null&&u){const[,,g]=h1(u,p,e,c,l,d);m=s(g,p)}if(Te(m)||Tn(m)){let g=!1;const C=p1(t,p,e,m,p,()=>{g=!0});return g?u1:C}else return dn(m)?m:u1}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),
|
|
73
|
+
(message compiler warning message: ${t.message})`)}function d1(t,e={}){let n=!1;const r=e.onError||DC;return e.onError=o=>{n=!0,r(o)},{...iE(t,e),detectError:n}}const QE=(t,e)=>{if(!Te(t))throw Vn(bt.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(e.onWarn=c1);{const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&a1(t,n);const o=(e.onCacheKey||l1)(t),i=Zo[o];if(i)return i;const{code:s,detectError:c}=d1(t,e),l=new Function(`return ${s}`)();return c?l:Zo[o]=l}};function ZE(t,e){if(process.env.NODE_ENV!=="production"&&(e.onWarn=c1),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&Te(t)){const n=tt(e.warnHtmlMessage)?e.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&a1(t,n);const o=(e.onCacheKey||l1)(t),i=Zo[o];if(i)return i;const{ast:s,detectError:c}=d1(t,{...e,location:process.env.NODE_ENV!=="production",jit:!0}),l=dd(s);return c?l:Zo[o]=l}else{if(process.env.NODE_ENV!=="production"&&!Tn(t))return ir(`the message that is resolve with key '${e.key}' is not supported for jit compilation`),()=>t;const n=t.cacheKey;if(n){const r=Zo[n];return r||(Zo[n]=dd(t))}else return dd(t)}}const u1=()=>"",dn=t=>nt(t);function f1(t,...e){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:s,messages:c}=t,[l,d]=fd(...e),u=tt(d.missingWarn)?d.missingWarn:t.missingWarn,f=tt(d.fallbackWarn)?d.fallbackWarn:t.fallbackWarn,h=tt(d.escapeParameter)?d.escapeParameter:t.escapeParameter,p=!!d.resolvedMessage,m=Te(d.default)||tt(d.default)?tt(d.default)?i?l:()=>l:d.default:n?i?l:()=>l:"",g=n||m!=="",y=sd(t,d);h&&JE(d);let[C,E,b]=p?[l,y,c[y]||Xe()]:h1(t,l,y,s,f,u),v=C,k=l;if(!p&&!(Te(v)||Tn(v)||dn(v))&&g&&(v=m,k=v),!p&&(!(Te(v)||Tn(v)||dn(v))||!Te(E)))return o?Ia:l;if(process.env.NODE_ENV!=="production"&&Te(v)&&t.messageCompiler==null)return ir(`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 '${l}'.`),l;let _=!1;const O=()=>{_=!0},L=dn(v)?v:p1(t,l,E,v,k,O);if(_)return v;const N=t9(t,E,b,d),z=IE(N),V=XE(t,L,z),P=r?r(V,l):V;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:Te(l)?l:dn(v)?v.key:"",locale:E||(dn(v)?v.locale:""),format:Te(v)?v:dn(v)?v.source:"",message:P};j.meta=xt({},t.__meta,UE()||{}),NE(j)}return P}function JE(t){ft(t.list)?t.list=t.list.map(e=>Te(e)?Cp(e):e):Ze(t.named)&&Object.keys(t.named).forEach(e=>{Te(t.named[e])&&(t.named[e]=Cp(t.named[e]))})}function h1(t,e,n,r,o,i){const{messages:s,onWarn:c,messageResolver:l,localeFallbacker:d}=t,u=d(t,r,n);let f=Xe(),h,p=null,m=n,g=null;const y="translate";for(let C=0;C<u.length;C++){if(h=g=u[C],process.env.NODE_ENV!=="production"&&n!==h&&!i1(n,h)&&Oa(o,e)&&c(po(Dt.FALLBACK_TO_TRANSLATE,{key:e,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const k=t.__v_emitter;k&&k.emit("fallback",{type:y,key:e,from:m,to:g,groupId:`${y}:${e}`})}f=s[h]||Xe();let E=null,b,v;if(process.env.NODE_ENV!=="production"&&nr&&(E=window.performance.now(),b="intlify-message-resolve-start",v="intlify-message-resolve-end",tn&&tn(b)),(p=l(f,e))===null&&(p=f[e]),process.env.NODE_ENV!=="production"&&nr){const k=window.performance.now(),_=t.__v_emitter;_&&E&&p&&_.emit("message-resolve",{type:"message-resolve",key:e,message:p,time:k-E,groupId:`${y}:${e}`}),b&&v&&tn&&fo&&(tn(v),fo("intlify message resolve",b,v))}if(Te(p)||Tn(p)||dn(p))break;if(!KE(h,u)){const k=cd(t,e,h,i,y);k!==e&&(p=k)}m=g}return[p,h,f]}function p1(t,e,n,r,o,i){const{messageCompiler:s,warnHtmlMessage:c}=t;if(dn(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 l=null,d,u;process.env.NODE_ENV!=="production"&&nr&&(l=window.performance.now(),d="intlify-message-compilation-start",u="intlify-message-compilation-end",tn&&tn(d));const f=s(r,qE(t,n,o,r,c,i));if(process.env.NODE_ENV!=="production"&&nr){const h=window.performance.now(),p=t.__v_emitter;p&&l&&p.emit("message-compilation",{type:"message-compilation",message:r,time:h-l,groupId:`translate:${e}`}),d&&u&&tn&&fo&&(tn(u),fo("intlify message compilation",d,u))}return f.locale=n,f.key=e,f.source=r,f}function XE(t,e,n){let r=null,o,i;process.env.NODE_ENV!=="production"&&nr&&(r=window.performance.now(),o="intlify-message-evaluation-start",i="intlify-message-evaluation-end",tn&&tn(o));const s=e(n);if(process.env.NODE_ENV!=="production"&&nr){const c=window.performance.now(),l=t.__v_emitter;l&&r&&l.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-r,groupId:`translate:${e.key}`}),o&&i&&tn&&fo&&(tn(i),fo("intlify message evaluation",o,i))}return s}function fd(...t){const[e,n,r]=t,o=Xe();if(!Te(e)&&!vt(e)&&!dn(e)&&!Tn(e))throw Vn(bt.INVALID_ARGUMENT);const i=vt(e)?String(e):(dn(e),e);return vt(n)?o.plural=n:Te(n)?o.default=n:We(n)&&!Ea(n)?o.named=n:ft(n)&&(o.list=n),vt(r)?o.plural=r:Te(r)?o.default=r:We(r)&&xt(o,r),[i,o]}function qE(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=e9(r),l=`Message compilation error: ${s.message}`,d=s.location&&c&&AC(c,s.location.start.offset,s.location.end.offset),u=t.__v_emitter;u&&c&&u.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${n}`}),console.error(d?`${l}
|
|
74
|
+
${d}`:l)}else throw s},onCacheKey:s=>vC(e,n,s)}}function e9(t){if(Te(t))return t;if(t.loc&&t.loc.source)return t.loc.source}function t9(t,e,n,r){const{modifiers:o,pluralRules:i,messageResolver:s,fallbackLocale:c,fallbackWarn:l,missingWarn:d,fallbackContext:u}=t,h={locale:e,modifiers:o,pluralRules:i,messages:p=>{let m=s(n,p);if(m==null&&u){const[,,g]=h1(u,p,e,c,l,d);m=s(g,p)}if(Te(m)||Tn(m)){let g=!1;const C=p1(t,p,e,m,p,()=>{g=!0});return g?u1:C}else return dn(m)?m:u1}};return t.processor&&(h.processor=t.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),vt(r.plural)&&(h.pluralIndex=r.plural),h}const m1=typeof Intl<"u",g1={dateTimeFormat:m1&&typeof Intl.DateTimeFormat<"u",numberFormat:m1&&typeof Intl.NumberFormat<"u"};function y1(t,...e){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__datetimeFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!g1.dateTimeFormat)return i(po(Dt.CANNOT_FORMAT_DATE)),xa;const[l,d,u,f]=hd(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=sd(t,u),y=s(t,o,g);if(!Te(l)||l==="")return new Intl.DateTimeFormat(g,f).format(d);let C={},E,b=null,v=g,k=null;const _="datetime format";for(let N=0;N<y.length;N++){if(E=k=y[N],process.env.NODE_ENV!=="production"&&g!==E&&Oa(p,l)&&i(po(Dt.FALLBACK_TO_DATE_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const z=t.__v_emitter;z&&z.emit("fallback",{type:_,key:l,from:v,to:k,groupId:`${_}:${l}`})}if(C=n[E]||{},b=C[l],We(b))break;cd(t,l,E,h,_),v=k}if(!We(b)||!Te(E))return r?Ia:l;let O=`${E}__${l}`;Ea(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.DateTimeFormat(E,xt({},b,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const v1=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function hd(...t){const[e,n,r,o]=t,i=Xe();let s=Xe(),c;if(Te(e)){const l=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Vn(bt.INVALID_ISO_DATE_ARGUMENT);const d=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();c=new Date(d);try{c.toISOString()}catch{throw Vn(bt.INVALID_ISO_DATE_ARGUMENT)}}else if(CC(e)){if(isNaN(e.getTime()))throw Vn(bt.INVALID_DATE_ARGUMENT);c=e}else if(vt(e))c=e;else throw Vn(bt.INVALID_ARGUMENT);return Te(n)?i.key=n:We(n)&&Object.keys(n).forEach(l=>{v1.includes(l)?s[l]=n[l]:i[l]=n[l]}),Te(r)?i.locale=r:We(r)&&(s=r),We(o)&&(s=o),[i.key||"",c,i,s]}function b1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function C1(t,...e){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:s}=t,{__numberFormatters:c}=t;if(process.env.NODE_ENV!=="production"&&!g1.numberFormat)return i(po(Dt.CANNOT_FORMAT_NUMBER)),xa;const[l,d,u,f]=pd(...e),h=tt(u.missingWarn)?u.missingWarn:t.missingWarn,p=tt(u.fallbackWarn)?u.fallbackWarn:t.fallbackWarn,m=!!u.part,g=sd(t,u),y=s(t,o,g);if(!Te(l)||l==="")return new Intl.NumberFormat(g,f).format(d);let C={},E,b=null,v=g,k=null;const _="number format";for(let N=0;N<y.length;N++){if(E=k=y[N],process.env.NODE_ENV!=="production"&&g!==E&&Oa(p,l)&&i(po(Dt.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:E})),process.env.NODE_ENV!=="production"&&g!==E){const z=t.__v_emitter;z&&z.emit("fallback",{type:_,key:l,from:v,to:k,groupId:`${_}:${l}`})}if(C=n[E]||{},b=C[l],We(b))break;cd(t,l,E,h,_),v=k}if(!We(b)||!Te(E))return r?Ia:l;let O=`${E}__${l}`;Ea(f)||(O=`${O}__${JSON.stringify(f)}`);let L=c.get(O);return L||(L=new Intl.NumberFormat(E,xt({},b,f)),c.set(O,L)),m?L.formatToParts(d):L.format(d)}const E1=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pd(...t){const[e,n,r,o]=t,i=Xe();let s=Xe();if(!vt(e))throw Vn(bt.INVALID_ARGUMENT);const c=e;return Te(n)?i.key=n:We(n)&&Object.keys(n).forEach(l=>{E1.includes(l)?s[l]=n[l]:i[l]=n[l]}),Te(r)?i.locale=r:We(r)&&(s=r),We(o)&&(s=o),[i.key||"",c,i,s]}function S1(t,e,n){const r=t;for(const o in n){const i=`${e}__${o}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}sE();/*!
|
|
75
75
|
* vue-i18n v9.14.4
|
|
76
76
|
* (c) 2025 kazuya kawaguchi
|
|
77
77
|
* Released under the MIT License.
|
|
78
|
-
*/const n9="9.14.4";function r9(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(or().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(or().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(or().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(or().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(or().__INTLIFY_PROD_DEVTOOLS__=!1)}const _1=Dt.__EXTEND_POINT__,ar=Sa(_1),Yt={FALLBACK_TO_ROOT:_1,NOT_SUPPORTED_PRESERVE:ar(),NOT_SUPPORTED_FORMATTER:ar(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ar(),NOT_SUPPORTED_GET_CHOICE_INDEX:ar(),COMPONENT_NAME_LEGACY_COMPATIBLE:ar(),NOT_FOUND_PARENT_SCOPE:ar(),IGNORE_OBJ_FLATTEN:ar(),NOTICE_DROP_ALLOW_COMPOSITION:ar(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ar()},o9={[Yt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Yt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Yt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Yt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Yt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Yt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Yt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Yt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Yt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Na(t,...e){return rd(o9[t],...e)}const w1=vt.__EXTEND_POINT__,Gt=Sa(w1),rt={UNEXPECTED_RETURN_TYPE:w1,INVALID_ARGUMENT:Gt(),MUST_BE_CALL_SETUP_TOP:Gt(),NOT_INSTALLED:Gt(),NOT_AVAILABLE_IN_LEGACY_MODE:Gt(),REQUIRED_VALUE:Gt(),INVALID_VALUE:Gt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Gt(),NOT_INSTALLED_WITH_PROVIDE:Gt(),UNEXPECTED_ERROR:Gt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Gt(),BRIDGE_SUPPORT_VUE_2_ONLY:Gt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Gt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Gt(),__EXTEND_POINT__:Gt()};function Ir(t,...e){return Yo(t,null,process.env.NODE_ENV!=="production"?{messages:i9,args:e}:void 0)}const i9={[rt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[rt.INVALID_ARGUMENT]:"Invalid argument",[rt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[rt.NOT_INSTALLED]:"Need to install with `app.use` function",[rt.UNEXPECTED_ERROR]:"Unexpected error",[rt.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[rt.REQUIRED_VALUE]:"Required in value: {0}",[rt.INVALID_VALUE]:"Invalid value",[rt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[rt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[rt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[rt.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},md=rr("__translateVNode"),gd=rr("__datetimeParts"),yd=rr("__numberParts"),vd=rr("__enableEmitter"),bd=rr("__disableEmitter"),s9=rr("__setPluralRules"),k1=rr("__injectWithOption"),Cd=rr("__dispose");function Ji(t){if(!Ze(t)||Tn(t))return t;for(const e in t)if(kn(t,e))if(!e.includes("."))Ze(t[e])&&Ji(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=Xe()),!Ze(o[n[s]])){process.env.NODE_ENV!=="production"&&ir(Na(Yt.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(Tn(o)?jp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!Tn(o)){const s=o[n[r]];Ze(s)&&Ji(s)}}return t}function Ed(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=We(n)?n:ut(r)?Xe():{[t]:Xe()};if(ut(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:l,resource:d}=c;l?(s[l]=s[l]||Xe(),wa(d,s[l])):wa(d,s)}else Te(c)&&wa(JSON.parse(c),s)}),o==null&&i)for(const c in s)kn(s,c)&&Ji(s[c]);return s}function A1(t){return t.type}function a9(t,e,n){let r=Ze(e.messages)?e.messages:Xe();"__i18nGlobal"in n&&(r=Ed(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ze(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ze(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function T1(t){return a.createVNode(a.Text,null,t,0)}const I1="__INTLIFY_META__",x1=()=>[],l9=()=>!1;let O1=0;function N1(t){return(e,n,r,o)=>t(n,r,a.getCurrentInstance()||void 0,o)}const c9=()=>{const t=a.getCurrentInstance();let e=null;return t&&(e=A1(t)[I1])?{[I1]:e}:null};function d9(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=nr?a.ref:a.shallowRef,c=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&c&&kp(Na(Yt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=tt(t.inheritLocale)?t.inheritLocale:!0;const d=s(n&&l?n.locale.value:Te(t.locale)?t.locale:Qi),u=s(n&&l?n.fallbackLocale.value:Te(t.fallbackLocale)||ut(t.fallbackLocale)||We(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),f=s(Ed(d.value,t)),h=s(We(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),p=s(We(t.numberFormats)?t.numberFormats:{[d.value]:{}});let m=n?n.missingWarn:tt(t.missingWarn)||Ko(t.missingWarn)?t.missingWarn:!0,g=n?n.fallbackWarn:tt(t.fallbackWarn)||Ko(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:tt(t.fallbackRoot)?t.fallbackRoot:!0,C=!!t.fallbackFormat,E=nt(t.missing)?t.missing:null,b=nt(t.missing)?N1(t.missing):null,v=nt(t.postTranslation)?t.postTranslation:null,k=n?n.warnHtmlMessage:tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const O=n?n.modifiers:We(t.modifiers)?t.modifiers:{};let L=t.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&n1(null);const te={version:n9,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:L,missing:b===null?void 0:b,missingWarn:m,fallbackWarn:g,fallbackFormat:C,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:k,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};te.datetimeFormats=h.value,te.numberFormats=p.value,te.__datetimeFormatters=We(N)?N.__datetimeFormatters:void 0,te.__numberFormatters=We(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(te.__v_emitter=We(N)?N.__v_emitter:void 0);const se=WE(te);return o&&n1(se),se})(),Zi(N,d.value,u.value);function V(){return[d.value,u.value,f.value,h.value,p.value]}const P=a.computed({get:()=>d.value,set:te=>{d.value=te,N.locale=d.value}}),j=a.computed({get:()=>u.value,set:te=>{u.value=te,N.fallbackLocale=u.value,Zi(N,d.value,te)}}),K=a.computed(()=>f.value),F=a.computed(()=>h.value),W=a.computed(()=>p.value);function Q(){return nt(v)?v:null}function U(te){v=te,N.postTranslation=te}function ee(){return E}function ne(te){te!==null&&(b=N1(te)),E=te,N.missing=b}function ae(te,se){return te!=="translate"||!se.resolvedMessage}const ue=(te,se,_e,Re,it,ct)=>{V();let Ht;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?HE():void 0),Ht=te(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(_e!=="translate exists"&&yt(Ht)&&Ht===Ia||_e==="translate exists"&&!Ht){const[re,ve]=se();if(process.env.NODE_ENV!=="production"&&n&&Te(re)&&ae(_e,ve)&&(y&&(Oa(g,re)||o1(m,re))&&ir(Na(Yt.FALLBACK_TO_ROOT,{key:re,type:_e})),process.env.NODE_ENV!=="production")){const{__v_emitter:ye}=N;ye&&y&&ye.emit("fallback",{type:_e,key:re,to:"global",groupId:`${_e}:${re}`})}return n&&y?Re(n):it(re)}else{if(ct(Ht))return Ht;throw Ir(rt.UNEXPECTED_RETURN_TYPE)}};function me(...te){return ue(se=>Reflect.apply(f1,null,[se,...te]),()=>fd(...te),"translate",se=>Reflect.apply(se.t,se,[...te]),se=>se,se=>Te(se))}function Ee(...te){const[se,_e,Re]=te;if(Re&&!Ze(Re))throw Ir(rt.INVALID_ARGUMENT);return me(se,_e,It({resolvedMessage:!0},Re||{}))}function ke(...te){return ue(se=>Reflect.apply(y1,null,[se,...te]),()=>hd(...te),"datetime format",se=>Reflect.apply(se.d,se,[...te]),()=>xa,se=>Te(se))}function Oe(...te){return ue(se=>Reflect.apply(C1,null,[se,...te]),()=>pd(...te),"number format",se=>Reflect.apply(se.n,se,[...te]),()=>xa,se=>Te(se))}function Se(te){return te.map(se=>Te(se)||yt(se)||tt(se)?T1(String(se)):se)}const $={normalize:Se,interpolate:te=>te,type:"vnode"};function x(...te){return ue(se=>{let _e;const Re=se;try{Re.processor=$,_e=Reflect.apply(f1,null,[Re,...te])}finally{Re.processor=null}return _e},()=>fd(...te),"translate",se=>se[md](...te),se=>[T1(se)],se=>ut(se))}function B(...te){return ue(se=>Reflect.apply(C1,null,[se,...te]),()=>pd(...te),"number format",se=>se[yd](...te),x1,se=>Te(se)||ut(se))}function S(...te){return ue(se=>Reflect.apply(y1,null,[se,...te]),()=>hd(...te),"datetime format",se=>se[gd](...te),x1,se=>Te(se)||ut(se))}function w(te){L=te,N.pluralRules=L}function I(te,se){return ue(()=>{if(!te)return!1;const _e=Te(se)?se:d.value,Re=G(_e),it=N.messageResolver(Re,te);return c?it!=null:Tn(it)||dn(it)||Te(it)},()=>[te],"translate exists",_e=>Reflect.apply(_e.te,_e,[te,se]),l9,_e=>tt(_e))}function M(te){let se=null;const _e=Yp(N,u.value,d.value);for(let Re=0;Re<_e.length;Re++){const it=f.value[_e[Re]]||{},ct=N.messageResolver(it,te);if(ct!=null){se=ct;break}}return se}function Y(te){const se=M(te);return se??(n?n.tm(te)||{}:{})}function G(te){return f.value[te]||{}}function J(te,se){if(i){const _e={[te]:se};for(const Re in _e)kn(_e,Re)&&Ji(_e[Re]);se=_e[te]}f.value[te]=se,N.messages=f.value}function X(te,se){f.value[te]=f.value[te]||{};const _e={[te]:se};if(i)for(const Re in _e)kn(_e,Re)&&Ji(_e[Re]);se=_e[te],wa(se,f.value[te]),N.messages=f.value}function A(te){return h.value[te]||{}}function T(te,se){h.value[te]=se,N.datetimeFormats=h.value,b1(N,te,se)}function H(te,se){h.value[te]=It(h.value[te]||{},se),N.datetimeFormats=h.value,b1(N,te,se)}function Z(te){return p.value[te]||{}}function le(te,se){p.value[te]=se,N.numberFormats=p.value,S1(N,te,se)}function ge(te,se){p.value[te]=It(p.value[te]||{},se),N.numberFormats=p.value,S1(N,te,se)}O1++,n&&nr&&(a.watch(n.locale,te=>{l&&(d.value=te,N.locale=te,Zi(N,d.value,u.value))}),a.watch(n.fallbackLocale,te=>{l&&(u.value=te,N.fallbackLocale=te,Zi(N,d.value,u.value))}));const Ae={id:O1,locale:P,fallbackLocale:j,get inheritLocale(){return l},set inheritLocale(te){l=te,te&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Zi(N,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(te){m=te,N.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(te){g=te,N.fallbackWarn=g},get fallbackRoot(){return y},set fallbackRoot(te){y=te},get fallbackFormat(){return C},set fallbackFormat(te){C=te,N.fallbackFormat=C},get warnHtmlMessage(){return k},set warnHtmlMessage(te){k=te,N.warnHtmlMessage=te},get escapeParameter(){return _},set escapeParameter(te){_=te,N.escapeParameter=te},t:me,getLocaleMessage:G,setLocaleMessage:J,mergeLocaleMessage:X,getPostTranslationHandler:Q,setPostTranslationHandler:U,getMissingHandler:ee,setMissingHandler:ne,[s9]:w};return Ae.datetimeFormats=F,Ae.numberFormats=W,Ae.rt=Ee,Ae.te=I,Ae.tm=Y,Ae.d=ke,Ae.n=Oe,Ae.getDateTimeFormat=A,Ae.setDateTimeFormat=T,Ae.mergeDateTimeFormat=H,Ae.getNumberFormat=Z,Ae.setNumberFormat=le,Ae.mergeNumberFormat=ge,Ae[k1]=r,Ae[md]=x,Ae[gd]=S,Ae[yd]=B,process.env.NODE_ENV!=="production"&&(Ae[vd]=te=>{N.__v_emitter=te},Ae[bd]=()=>{N.__v_emitter=void 0}),Ae}const Sd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function u9({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},Xe())}function M1(t){return a.Fragment}It({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>yt(t)||!isNaN(t)}},Sd);function f9(t){return ut(t)&&!Te(t[0])}function L1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=Xe();t.locale&&(s.locale=t.locale),Te(t.format)?s.key=t.format:Ze(t.format)&&(Te(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?It(Xe(),h,{[p]:t.format[p]}):h,Xe()));const l=r(t.value,s,c);let d=[s.key];ut(l)?d=l.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:l}):[h.value];return f9(g)&&(g[0].key=`${h.type}-${p}`),g}):Te(l)&&(d=[l]);const u=It(Xe(),i),f=Te(t.tag)||Ze(t.tag)?t.tag:M1();return a.h(f,u,d)}}It({value:{type:Number,required:!0},format:{type:[String,Object]}},Sd),It({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Sd);function D1(t,e){}const h9=rr("global-vue-i18n");function Pt(t={}){const e=a.getCurrentInstance();if(e==null)throw Ir(rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ir(rt.NOT_INSTALLED);const n=p9(e),r=g9(n),o=A1(e),i=m9(t,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Ir(rt.NOT_AVAILABLE_IN_LEGACY_MODE);return C9(e,i,r,t)}if(i==="global")return a9(r,t,o),r;if(i==="parent"){let l=y9(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&ir(Na(Yt.NOT_FOUND_PARENT_SCOPE)),l=r),l}const s=n;let c=s.__getInstance(e);if(c==null){const l=It({},t);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),c=d9(l),s.__composerExtend&&(c[Cd]=s.__composerExtend(c)),b9(s,e,c),s.__setInstance(e,c)}return c}function p9(t){{const e=a.inject(t.isCE?h9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ir(t.isCE?rt.NOT_INSTALLED_WITH_PROVIDE:rt.UNEXPECTED_ERROR);return e}}function m9(t,e){return Ea(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function g9(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=v9(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[k1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function v9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function b9(t,e,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=TC();const o=n;o[vd]&&o[vd](r),r.on("*",D1)}},e),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",D1),o[bd]&&o[bd](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[Cd];i&&(i(),delete o[Cd])},e)}function C9(t,e,n,r={}){const o=e==="local",i=a.shallowRef(null);if(o&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ir(rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=tt(r.inheritLocale)?r.inheritLocale:!Te(r.locale),c=a.ref(!o||s?n.locale.value:Te(r.locale)?r.locale:Qi),l=a.ref(!o||s?n.fallbackLocale.value:Te(r.fallbackLocale)||ut(r.fallbackLocale)||We(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:c.value),d=a.ref(Ed(c.value,r)),u=a.ref(We(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),f=a.ref(We(r.numberFormats)?r.numberFormats:{[c.value]:{}}),h=o?n.missingWarn:tt(r.missingWarn)||Ko(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:tt(r.fallbackWarn)||Ko(r.fallbackWarn)?r.fallbackWarn:!0,m=o?n.fallbackRoot:tt(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,y=nt(r.missing)?r.missing:null,C=nt(r.postTranslation)?r.postTranslation:null,E=o?n.warnHtmlMessage:tt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,v=o?n.modifiers:We(r.modifiers)?r.modifiers:{},k=r.pluralRules||o&&n.pluralRules;function _(){return[c.value,l.value,d.value,u.value,f.value]}const O=a.computed({get:()=>i.value?i.value.locale.value:c.value,set:I=>{i.value&&(i.value.locale.value=I),c.value=I}}),L=a.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),N=a.computed(()=>i.value?i.value.messages.value:d.value),z=a.computed(()=>u.value),V=a.computed(()=>f.value);function P(){return i.value?i.value.getPostTranslationHandler():C}function j(I){i.value&&i.value.setPostTranslationHandler(I)}function K(){return i.value?i.value.getMissingHandler():y}function F(I){i.value&&i.value.setMissingHandler(I)}function W(I){return _(),I()}function Q(...I){return i.value?W(()=>Reflect.apply(i.value.t,null,[...I])):W(()=>"")}function U(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function ee(...I){return i.value?W(()=>Reflect.apply(i.value.d,null,[...I])):W(()=>"")}function ne(...I){return i.value?W(()=>Reflect.apply(i.value.n,null,[...I])):W(()=>"")}function ae(I){return i.value?i.value.tm(I):{}}function ue(I,M){return i.value?i.value.te(I,M):!1}function me(I){return i.value?i.value.getLocaleMessage(I):{}}function Ee(I,M){i.value&&(i.value.setLocaleMessage(I,M),d.value[I]=M)}function ke(I,M){i.value&&i.value.mergeLocaleMessage(I,M)}function Oe(I){return i.value?i.value.getDateTimeFormat(I):{}}function Se(I,M){i.value&&(i.value.setDateTimeFormat(I,M),u.value[I]=M)}function D(I,M){i.value&&i.value.mergeDateTimeFormat(I,M)}function $(I){return i.value?i.value.getNumberFormat(I):{}}function x(I,M){i.value&&(i.value.setNumberFormat(I,M),f.value[I]=M)}function B(I,M){i.value&&i.value.mergeNumberFormat(I,M)}const S={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:L,messages:N,datetimeFormats:z,numberFormats:V,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:v},get pluralRules(){return i.value?i.value.pluralRules:k},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:Q,getPostTranslationHandler:P,setPostTranslationHandler:j,getMissingHandler:K,setMissingHandler:F,rt:U,d:ee,n:ne,tm:ae,te:ue,getLocaleMessage:me,setLocaleMessage:Ee,mergeLocaleMessage:ke,getDateTimeFormat:Oe,setDateTimeFormat:Se,mergeDateTimeFormat:D,getNumberFormat:$,setNumberFormat:x,mergeNumberFormat:B};function w(I){I.locale.value=c.value,I.fallbackLocale.value=l.value,Object.keys(d.value).forEach(M=>{I.mergeLocaleMessage(M,d.value[M])}),Object.keys(u.value).forEach(M=>{I.mergeDateTimeFormat(M,u.value[M])}),Object.keys(f.value).forEach(M=>{I.mergeNumberFormat(M,f.value[M])}),I.escapeParameter=b,I.fallbackFormat=g,I.fallbackRoot=m,I.fallbackWarn=p,I.missingWarn=h,I.warnHtmlMessage=E}return a.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ir(rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(c.value=I.locale.value,l.value=I.fallbackLocale.value,d.value=I.messages.value,u.value=I.datetimeFormats.value,f.value=I.numberFormats.value):o&&w(I)}),S}if(r9(),__INTLIFY_JIT_COMPILATION__?Jp(ZE):Jp(QE),FE(CE),jE(Yp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=or();t.__INTLIFY__=!0,xE(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function In(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Ma(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Ue(t){return!In(t)}function xr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function P1(t,e){let n=-1;if(Ue(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function pt(t,...e){return Ma(t)?t(...e):t}function St(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Bt(t){return St(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function La(t,e="",n={}){let r=Bt(e).split("."),o=r.shift();if(o){if(xr(t)){let i=Object.keys(t).find(s=>Bt(s)===o)||"";return La(pt(t[i],n),r.join("."),n)}return}return pt(t,n)}function _d(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function E9(t){return Ue(t)&&!isNaN(t)}function S9(t=""){return Ue(t)&&t.length===1&&!!t.match(/\S| /)}function go(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Or(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 _9(t){return St(t,!1)?t[0].toUpperCase()+t.slice(1):t}function B1(t){return St(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function wd(){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 Xi(...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)?[Xi(...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 w9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function k9(t,e){if(t&&e){let n=r=>{w9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function kd(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 $1(t){for(let e of document==null?void 0:document.styleSheets)try{for(let n of e==null?void 0:e.cssRules)for(let r of n==null?void 0:n.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function A9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function R1(){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 Ad(t){return t?Math.abs(t.scrollLeft):0}function T9(){let t=document.documentElement;return(window.pageXOffset||Ad(t))-(t.clientLeft||0)}function I9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function x9(t){return t?getComputedStyle(t).direction==="rtl":!1}function O9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:A9(t),l=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=I9(),m=T9(),g=R1(),y,C,E="top";h.top+u+l>g.height?(y=h.top+p-l,E="bottom",y<0&&(y=p)):y=u+h.top+p,h.left+d>g.width?C=Math.max(0,h.left+m+f-d):C=h.left+m,x9(t)?t.style.insetInlineEnd=C+"px":t.style.insetInlineStart=C+"px",t.style.top=y+"px",t.style.transformOrigin=E,n&&(t.style.marginTop=E==="bottom"?`calc(${(o=(r=$1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=$1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function V1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function qi(t,e){if(t instanceof HTMLElement){let n=t.offsetWidth;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}function F1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function j1(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&F1(t))}function Jo(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Td;function z1(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(Td!=null)return Td;let e=document.createElement("div");V1(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),Td=n,n}}function Xo(t,e={}){if(Jo(t)){let n=(r,o)=>{var i,s;let c=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((l,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")l.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);l=f.length?l.concat(f.filter(h=>!!h)):l}}return l},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"?Xo(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 N9(t,e={},...n){if(t){let r=document.createElement(t);return Xo(r,e),r.append(...n),r}}function qo(t,e){return Jo(t)?t.matches(e)?t:t.querySelector(e):null}function yo(t,e){t&&document.activeElement!==t&&t.focus(e)}function M9(t,e){if(Jo(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function U1(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 L9(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 D9(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 H1(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||Ad(document.documentElement)||Ad(document.body)||0)}}return{top:"auto",left:"auto"}}function W1(t,e){if(t){let n=t.offsetHeight;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}function K1(t,e=[]){let n=F1(t);return n===null?e:K1(n,e.concat([n]))}function P9(t){let e=[];if(t){let n=K1(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 l of c){let d=qo(i,l);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function Y1(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 Id(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function B9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function $9(t,e){var n,r;if(t){let o=t.parentElement,i=H1(o),s=R1(),c=t.offsetParent?t.offsetWidth:D9(t),l=t.offsetParent?t.offsetHeight:L9(t),d=qi((n=o==null?void 0:o.children)==null?void 0:n[0]),u=W1((r=o==null?void 0:o.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-z1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-z1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+l>s.height?h=`-${l-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function G1(t,e="",n){Jo(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var Da={};function R9(t="pui_id_"){return Object.hasOwn(Da,t)||(Da[t]=0),Da[t]++,`${t}${Da[t]}`}function V9(){let t=[],e=(s,c,l=999)=>{let d=o(s,c,l),u=d.value+(d.key===s?0:l)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s,c).value,o=(s,c,l=0)=>[...t].reverse().find(d=>c?!0:d.key===s)||{key:s,value:l},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,l)=>{c&&(c.style.zIndex=String(e(s,!0,l)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s,!0)}}var xd=V9(),F9=Object.defineProperty,j9=Object.defineProperties,z9=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,Q1=Object.prototype.hasOwnProperty,Z1=Object.prototype.propertyIsEnumerable,J1=(t,e,n)=>e in t?F9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xn=(t,e)=>{for(var n in e||(e={}))Q1.call(e,n)&&J1(t,n,e[n]);if(Pa)for(var n of Pa(e))Z1.call(e,n)&&J1(t,n,e[n]);return t},Od=(t,e)=>j9(t,z9(e)),lr=(t,e)=>{var n={};for(var r in t)Q1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Pa)for(var r of Pa(t))e.indexOf(r)<0&&Z1.call(t,r)&&(n[r]=t[r]);return n},U9=wd(),lt=U9,es=/{([^}]*)}/g,X1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,q1=/var\([^)]+\)/g;function em(t){return St(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function H9(t){return xr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function W9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Nd(t="",e=""){return W9(`${St(t,!1)&&St(e,!1)?`${t}-`:t}${e}`)}function tm(t="",e=""){return`--${Nd(t,e)}`}function K9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function nm(t,e="",n="",r=[],o){if(St(t)){let i=t.trim();if(K9(i))return;if(go(i,es)){let s=i.replaceAll(es,c=>{let l=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>go(d,u)));return`var(${tm(n,B1(l.join("-")))}${Ue(o)?`, ${o}`:""})`});return go(s.replace(q1,"0"),X1)?`calc(${s})`:s}return i}else if(E9(t))return t}function Y9(t,e,n){St(e,!1)&&t.push(`${e}:${n};`)}function ei(t,e){return t?`${t}{${e}}`:""}function rm(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let l=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?l.push(rm(m,c)):l.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return l}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let l=Number(s);return isNaN(l)?s:l}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,l]=o[s],d=t.slice(c+3,l),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(l+1)}return t}var cr=(...t)=>G9(Ve.getTheme(),...t),G9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ve.defaults||{},{prefix:s,transform:c}=(t==null?void 0:t.options)||i||{},l=go(e,es)?e:`{${e}}`;return r==="value"||In(r)&&c==="strict"?Ve.getTokenValue(e):nm(l,void 0,s,[o.excludedKeyRegex],n)}return""};function Nr(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=pt(e[i],{dt:cr}))!=null?s:"")},"");return rm(n,cr)}return pt(t,{dt:cr})}function Q9(t,e={}){let n=Ve.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],l=[{node:t,path:r}];for(;l.length;){let{node:u,path:f}=l.pop();for(let h in u){let p=u[h],m=H9(p),g=go(h,i)?Nd(f):Nd(f,B1(h));if(xr(m))l.push({node:m,path:g});else{let y=tm(g),C=nm(m,g,r,[i]);Y9(c,y,C);let E=g;r&&E.startsWith(r+"-")&&(E=E.slice(r.length+1)),s.push(E.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:ei(o,d)}}var On={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Q9(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,l,d,u,f;let{preset:h,options:p}=e,m,g,y,C,E,b,v;if(Ue(h)&&p.transform!=="strict"){let{primitive:k,semantic:_,extend:O}=h,L=_||{},{colorScheme:N}=L,z=lr(L,["colorScheme"]),V=O||{},{colorScheme:P}=V,j=lr(V,["colorScheme"]),K=N||{},{dark:F}=K,W=lr(K,["dark"]),Q=P||{},{dark:U}=Q,ee=lr(Q,["dark"]),ne=Ue(k)?this._toVariables({primitive:k},p):{},ae=Ue(z)?this._toVariables({semantic:z},p):{},ue=Ue(W)?this._toVariables({light:W},p):{},me=Ue(F)?this._toVariables({dark:F},p):{},Ee=Ue(j)?this._toVariables({semantic:j},p):{},ke=Ue(ee)?this._toVariables({light:ee},p):{},Oe=Ue(U)?this._toVariables({dark:U},p):{},[Se,D]=[(i=ne.declarations)!=null?i:"",ne.tokens],[$,x]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[B,S]=[(c=ue.declarations)!=null?c:"",ue.tokens||[]],[w,I]=[(l=me.declarations)!=null?l:"",me.tokens||[]],[M,Y]=[(d=Ee.declarations)!=null?d:"",Ee.tokens||[]],[G,J]=[(u=ke.declarations)!=null?u:"",ke.tokens||[]],[X,A]=[(f=Oe.declarations)!=null?f:"",Oe.tokens||[]];m=this.transformCSS(t,Se,"light","variable",p,r,o),g=D;let T=this.transformCSS(t,`${$}${B}`,"light","variable",p,r,o),H=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);y=`${T}${H}`,C=[...new Set([...x,...S,...I])];let Z=this.transformCSS(t,`${M}${G}color-scheme:light`,"light","variable",p,r,o),le=this.transformCSS(t,`${X}color-scheme:dark`,"dark","variable",p,r,o);E=`${Z}${le}`,b=[...new Set([...Y,...J,...A])],v=pt(h.css,{dt:cr})}return{primitive:{css:m,tokens:g},semantic:{css:y,tokens:C},global:{css:E,tokens:b},style:v}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,l,d;let u,f,h;if(Ue(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:y,css:C}=m,E=lr(m,["colorScheme","extend","css"]),b=y||{},{colorScheme:v}=b,k=lr(b,["colorScheme"]),_=g||{},{dark:O}=_,L=lr(_,["dark"]),N=v||{},{dark:z}=N,V=lr(N,["dark"]),P=Ue(E)?this._toVariables({[p]:xn(xn({},E),k)},n):{},j=Ue(L)?this._toVariables({[p]:xn(xn({},L),V)},n):{},K=Ue(O)?this._toVariables({[p]:xn(xn({},O),z)},n):{},[F,W]=[(c=P.declarations)!=null?c:"",P.tokens||[]],[Q,U]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[ee,ne]=[(d=K.declarations)!=null?d:"",K.tokens||[]],ae=this.transformCSS(p,`${F}${Q}`,"light","variable",n,o,i,s),ue=this.transformCSS(p,ee,"dark","variable",n,o,i,s);u=`${ae}${ue}`,f=[...new Set([...W,...U,...ne])],h=pt(C,{dt:cr})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,l=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,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:l,options:d}=e,u=((i=l==null?void 0:l.components)==null?void 0:i[c])||((s=l==null?void 0:l.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${pt(o.order||o.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){let s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),c=Object.entries(r).reduce((l,[d,u])=>l.push(`${d}="${u}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[d,u])=>{if(xr(u)&&Object.hasOwn(u,"css")){let f=Or(u.css),h=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return l},[]).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},l=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Or(l)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,l={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:l,value:void 0};d.push(this.path),l.name=this.path,l.binding||(l.binding={});let u=this.value;if(typeof this.value=="string"&&es.test(this.value)){let f=this.value.trim().replace(es,h=>{var p;let m=h.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let y=g.computed(c,l,d);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(p=y==null?void 0:y.value)!=null?p:"__UNRESOLVED__"});u=X1.test(f.replace(q1,"0"))?`calc(${f})`:f}return In(l.binding)&&delete l.binding,d.pop(),{colorScheme:c,path:this.path,paths:l,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,l,d)=>{Object.entries(c).forEach(([u,f])=>{let h=go(u,e.variable.excludedKeyRegex)?l:l?`${l}.${em(u)}`:em(u),p=d?`${d}.${u}`:u;xr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},y=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,y);if(m&&m!=="none")for(let C=0;C<o[h].paths.length;C++){let E=o[h].paths[C];if(E.scheme===m)return E.computed(m,g.binding,y)}return o[h].paths.map(C=>C.computed(C.scheme,g[C.scheme],y))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(l=>!go(l.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={},l)=>{let d=l,{colorScheme:u}=d,f=lr(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?ei(Ue(e)?`${t}${e},${t} ${e}`:t,r):ei(t,ei(e??":root",r))},transformCSS(t,e,n,r,o={},i,s,c){if(Ue(e)){let{cssLayer:l}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(Ue(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):ei(c??":root",e)}if(l){let d={name:"primeui",order:"primeui"};xr(l)&&(d.name=pt(l.name,{name:t,type:r})),Ue(d.name)&&(e=ei(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Od(xn({},e),{options:xn(xn({},this.defaults.options),e.options)}),this._tokens=On.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=Od(xn({},this.theme),{preset:t}),this._tokens=On.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=Od(xn({},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 On.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return On.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 On.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return On.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 On.getPreset(o)},getLayerOrderCSS(t=""){return On.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return On.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return On.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return On.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&<.emit("theme:load"))}},ts={_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()}},om=`
|
|
78
|
+
*/const n9="9.14.4";function r9(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(or().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(or().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(or().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(or().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(or().__INTLIFY_PROD_DEVTOOLS__=!1)}const _1=Dt.__EXTEND_POINT__,ar=Sa(_1),Yt={FALLBACK_TO_ROOT:_1,NOT_SUPPORTED_PRESERVE:ar(),NOT_SUPPORTED_FORMATTER:ar(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ar(),NOT_SUPPORTED_GET_CHOICE_INDEX:ar(),COMPONENT_NAME_LEGACY_COMPATIBLE:ar(),NOT_FOUND_PARENT_SCOPE:ar(),IGNORE_OBJ_FLATTEN:ar(),NOTICE_DROP_ALLOW_COMPOSITION:ar(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ar()},o9={[Yt.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Yt.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Yt.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Yt.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Yt.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Yt.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Yt.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Yt.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Yt.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Yt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Na(t,...e){return rd(o9[t],...e)}const w1=bt.__EXTEND_POINT__,Gt=Sa(w1),rt={UNEXPECTED_RETURN_TYPE:w1,INVALID_ARGUMENT:Gt(),MUST_BE_CALL_SETUP_TOP:Gt(),NOT_INSTALLED:Gt(),NOT_AVAILABLE_IN_LEGACY_MODE:Gt(),REQUIRED_VALUE:Gt(),INVALID_VALUE:Gt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Gt(),NOT_INSTALLED_WITH_PROVIDE:Gt(),UNEXPECTED_ERROR:Gt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Gt(),BRIDGE_SUPPORT_VUE_2_ONLY:Gt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Gt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Gt(),__EXTEND_POINT__:Gt()};function Ir(t,...e){return Yo(t,null,process.env.NODE_ENV!=="production"?{messages:i9,args:e}:void 0)}const i9={[rt.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[rt.INVALID_ARGUMENT]:"Invalid argument",[rt.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[rt.NOT_INSTALLED]:"Need to install with `app.use` function",[rt.UNEXPECTED_ERROR]:"Unexpected error",[rt.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[rt.REQUIRED_VALUE]:"Required in value: {0}",[rt.INVALID_VALUE]:"Invalid value",[rt.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[rt.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[rt.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[rt.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},md=rr("__translateVNode"),gd=rr("__datetimeParts"),yd=rr("__numberParts"),vd=rr("__enableEmitter"),bd=rr("__disableEmitter"),s9=rr("__setPluralRules"),k1=rr("__injectWithOption"),Cd=rr("__dispose");function Ji(t){if(!Ze(t)||Tn(t))return t;for(const e in t)if(kn(t,e))if(!e.includes("."))Ze(t[e])&&Ji(t[e]);else{const n=e.split("."),r=n.length-1;let o=t,i=!1;for(let s=0;s<r;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in o||(o[n[s]]=Xe()),!Ze(o[n[s]])){process.env.NODE_ENV!=="production"&&ir(Na(Yt.IGNORE_OBJ_FLATTEN,{key:n[s]})),i=!0;break}o=o[n[s]]}if(i||(Tn(o)?jp.includes(n[r])||delete t[e]:(o[n[r]]=t[e],delete t[e])),!Tn(o)){const s=o[n[r]];Ze(s)&&Ji(s)}}return t}function Ed(t,e){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=e,s=We(n)?n:ft(r)?Xe():{[t]:Xe()};if(ft(r)&&r.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:l,resource:d}=c;l?(s[l]=s[l]||Xe(),wa(d,s[l])):wa(d,s)}else Te(c)&&wa(JSON.parse(c),s)}),o==null&&i)for(const c in s)kn(s,c)&&Ji(s[c]);return s}function A1(t){return t.type}function a9(t,e,n){let r=Ze(e.messages)?e.messages:Xe();"__i18nGlobal"in n&&(r=Ed(t.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(i=>{t.mergeLocaleMessage(i,r[i])});{if(Ze(e.datetimeFormats)){const i=Object.keys(e.datetimeFormats);i.length&&i.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ze(e.numberFormats)){const i=Object.keys(e.numberFormats);i.length&&i.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function T1(t){return a.createVNode(a.Text,null,t,0)}const I1="__INTLIFY_META__",x1=()=>[],l9=()=>!1;let O1=0;function N1(t){return(e,n,r,o)=>t(n,r,a.getCurrentInstance()||void 0,o)}const c9=()=>{const t=a.getCurrentInstance();let e=null;return t&&(e=A1(t)[I1])?{[I1]:e}:null};function d9(t={},e){const{__root:n,__injectWithOption:r}=t,o=n===void 0,i=t.flatJson,s=nr?a.ref:a.shallowRef,c=!!t.translateExistCompatible;process.env.NODE_ENV!=="production"&&c&&kp(Na(Yt.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=tt(t.inheritLocale)?t.inheritLocale:!0;const d=s(n&&l?n.locale.value:Te(t.locale)?t.locale:Qi),u=s(n&&l?n.fallbackLocale.value:Te(t.fallbackLocale)||ft(t.fallbackLocale)||We(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:d.value),f=s(Ed(d.value,t)),h=s(We(t.datetimeFormats)?t.datetimeFormats:{[d.value]:{}}),p=s(We(t.numberFormats)?t.numberFormats:{[d.value]:{}});let m=n?n.missingWarn:tt(t.missingWarn)||Ko(t.missingWarn)?t.missingWarn:!0,g=n?n.fallbackWarn:tt(t.fallbackWarn)||Ko(t.fallbackWarn)?t.fallbackWarn:!0,y=n?n.fallbackRoot:tt(t.fallbackRoot)?t.fallbackRoot:!0,C=!!t.fallbackFormat,E=nt(t.missing)?t.missing:null,b=nt(t.missing)?N1(t.missing):null,v=nt(t.postTranslation)?t.postTranslation:null,k=n?n.warnHtmlMessage:tt(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter;const O=n?n.modifiers:We(t.modifiers)?t.modifiers:{};let L=t.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&n1(null);const te={version:n9,locale:d.value,fallbackLocale:u.value,messages:f.value,modifiers:O,pluralRules:L,missing:b===null?void 0:b,missingWarn:m,fallbackWarn:g,fallbackFormat:C,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:k,escapeParameter:_,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};te.datetimeFormats=h.value,te.numberFormats=p.value,te.__datetimeFormatters=We(N)?N.__datetimeFormatters:void 0,te.__numberFormatters=We(N)?N.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(te.__v_emitter=We(N)?N.__v_emitter:void 0);const se=WE(te);return o&&n1(se),se})(),Zi(N,d.value,u.value);function V(){return[d.value,u.value,f.value,h.value,p.value]}const P=a.computed({get:()=>d.value,set:te=>{d.value=te,N.locale=d.value}}),j=a.computed({get:()=>u.value,set:te=>{u.value=te,N.fallbackLocale=u.value,Zi(N,d.value,te)}}),K=a.computed(()=>f.value),F=a.computed(()=>h.value),W=a.computed(()=>p.value);function Q(){return nt(v)?v:null}function U(te){v=te,N.postTranslation=te}function ee(){return E}function ne(te){te!==null&&(b=N1(te)),E=te,N.missing=b}function ae(te,se){return te!=="translate"||!se.resolvedMessage}const ue=(te,se,_e,Re,it,ct)=>{V();let Ht;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?HE():void 0),Ht=te(N)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(_e!=="translate exists"&&vt(Ht)&&Ht===Ia||_e==="translate exists"&&!Ht){const[re,ve]=se();if(process.env.NODE_ENV!=="production"&&n&&Te(re)&&ae(_e,ve)&&(y&&(Oa(g,re)||o1(m,re))&&ir(Na(Yt.FALLBACK_TO_ROOT,{key:re,type:_e})),process.env.NODE_ENV!=="production")){const{__v_emitter:ye}=N;ye&&y&&ye.emit("fallback",{type:_e,key:re,to:"global",groupId:`${_e}:${re}`})}return n&&y?Re(n):it(re)}else{if(ct(Ht))return Ht;throw Ir(rt.UNEXPECTED_RETURN_TYPE)}};function me(...te){return ue(se=>Reflect.apply(f1,null,[se,...te]),()=>fd(...te),"translate",se=>Reflect.apply(se.t,se,[...te]),se=>se,se=>Te(se))}function Ee(...te){const[se,_e,Re]=te;if(Re&&!Ze(Re))throw Ir(rt.INVALID_ARGUMENT);return me(se,_e,xt({resolvedMessage:!0},Re||{}))}function ke(...te){return ue(se=>Reflect.apply(y1,null,[se,...te]),()=>hd(...te),"datetime format",se=>Reflect.apply(se.d,se,[...te]),()=>xa,se=>Te(se))}function Oe(...te){return ue(se=>Reflect.apply(C1,null,[se,...te]),()=>pd(...te),"number format",se=>Reflect.apply(se.n,se,[...te]),()=>xa,se=>Te(se))}function Se(te){return te.map(se=>Te(se)||vt(se)||tt(se)?T1(String(se)):se)}const $={normalize:Se,interpolate:te=>te,type:"vnode"};function x(...te){return ue(se=>{let _e;const Re=se;try{Re.processor=$,_e=Reflect.apply(f1,null,[Re,...te])}finally{Re.processor=null}return _e},()=>fd(...te),"translate",se=>se[md](...te),se=>[T1(se)],se=>ft(se))}function B(...te){return ue(se=>Reflect.apply(C1,null,[se,...te]),()=>pd(...te),"number format",se=>se[yd](...te),x1,se=>Te(se)||ft(se))}function S(...te){return ue(se=>Reflect.apply(y1,null,[se,...te]),()=>hd(...te),"datetime format",se=>se[gd](...te),x1,se=>Te(se)||ft(se))}function w(te){L=te,N.pluralRules=L}function I(te,se){return ue(()=>{if(!te)return!1;const _e=Te(se)?se:d.value,Re=G(_e),it=N.messageResolver(Re,te);return c?it!=null:Tn(it)||dn(it)||Te(it)},()=>[te],"translate exists",_e=>Reflect.apply(_e.te,_e,[te,se]),l9,_e=>tt(_e))}function M(te){let se=null;const _e=Yp(N,u.value,d.value);for(let Re=0;Re<_e.length;Re++){const it=f.value[_e[Re]]||{},ct=N.messageResolver(it,te);if(ct!=null){se=ct;break}}return se}function Y(te){const se=M(te);return se??(n?n.tm(te)||{}:{})}function G(te){return f.value[te]||{}}function J(te,se){if(i){const _e={[te]:se};for(const Re in _e)kn(_e,Re)&&Ji(_e[Re]);se=_e[te]}f.value[te]=se,N.messages=f.value}function X(te,se){f.value[te]=f.value[te]||{};const _e={[te]:se};if(i)for(const Re in _e)kn(_e,Re)&&Ji(_e[Re]);se=_e[te],wa(se,f.value[te]),N.messages=f.value}function A(te){return h.value[te]||{}}function T(te,se){h.value[te]=se,N.datetimeFormats=h.value,b1(N,te,se)}function H(te,se){h.value[te]=xt(h.value[te]||{},se),N.datetimeFormats=h.value,b1(N,te,se)}function Z(te){return p.value[te]||{}}function le(te,se){p.value[te]=se,N.numberFormats=p.value,S1(N,te,se)}function ge(te,se){p.value[te]=xt(p.value[te]||{},se),N.numberFormats=p.value,S1(N,te,se)}O1++,n&&nr&&(a.watch(n.locale,te=>{l&&(d.value=te,N.locale=te,Zi(N,d.value,u.value))}),a.watch(n.fallbackLocale,te=>{l&&(u.value=te,N.fallbackLocale=te,Zi(N,d.value,u.value))}));const Ae={id:O1,locale:P,fallbackLocale:j,get inheritLocale(){return l},set inheritLocale(te){l=te,te&&n&&(d.value=n.locale.value,u.value=n.fallbackLocale.value,Zi(N,d.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:K,get modifiers(){return O},get pluralRules(){return L||{}},get isGlobal(){return o},get missingWarn(){return m},set missingWarn(te){m=te,N.missingWarn=m},get fallbackWarn(){return g},set fallbackWarn(te){g=te,N.fallbackWarn=g},get fallbackRoot(){return y},set fallbackRoot(te){y=te},get fallbackFormat(){return C},set fallbackFormat(te){C=te,N.fallbackFormat=C},get warnHtmlMessage(){return k},set warnHtmlMessage(te){k=te,N.warnHtmlMessage=te},get escapeParameter(){return _},set escapeParameter(te){_=te,N.escapeParameter=te},t:me,getLocaleMessage:G,setLocaleMessage:J,mergeLocaleMessage:X,getPostTranslationHandler:Q,setPostTranslationHandler:U,getMissingHandler:ee,setMissingHandler:ne,[s9]:w};return Ae.datetimeFormats=F,Ae.numberFormats=W,Ae.rt=Ee,Ae.te=I,Ae.tm=Y,Ae.d=ke,Ae.n=Oe,Ae.getDateTimeFormat=A,Ae.setDateTimeFormat=T,Ae.mergeDateTimeFormat=H,Ae.getNumberFormat=Z,Ae.setNumberFormat=le,Ae.mergeNumberFormat=ge,Ae[k1]=r,Ae[md]=x,Ae[gd]=S,Ae[yd]=B,process.env.NODE_ENV!=="production"&&(Ae[vd]=te=>{N.__v_emitter=te},Ae[bd]=()=>{N.__v_emitter=void 0}),Ae}const Sd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function u9({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((r,o)=>[...r,...o.type===a.Fragment?o.children:[o]],[]):e.reduce((n,r)=>{const o=t[r];return o&&(n[r]=o()),n},Xe())}function M1(t){return a.Fragment}xt({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>vt(t)||!isNaN(t)}},Sd);function f9(t){return ft(t)&&!Te(t[0])}function L1(t,e,n,r){const{slots:o,attrs:i}=e;return()=>{const s={part:!0};let c=Xe();t.locale&&(s.locale=t.locale),Te(t.format)?s.key=t.format:Ze(t.format)&&(Te(t.format.key)&&(s.key=t.format.key),c=Object.keys(t.format).reduce((h,p)=>n.includes(p)?xt(Xe(),h,{[p]:t.format[p]}):h,Xe()));const l=r(t.value,s,c);let d=[s.key];ft(l)?d=l.map((h,p)=>{const m=o[h.type],g=m?m({[h.type]:h.value,index:p,parts:l}):[h.value];return f9(g)&&(g[0].key=`${h.type}-${p}`),g}):Te(l)&&(d=[l]);const u=xt(Xe(),i),f=Te(t.tag)||Ze(t.tag)?t.tag:M1();return a.h(f,u,d)}}xt({value:{type:Number,required:!0},format:{type:[String,Object]}},Sd),xt({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Sd);function D1(t,e){}const h9=rr("global-vue-i18n");function Pt(t={}){const e=a.getCurrentInstance();if(e==null)throw Ir(rt.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Ir(rt.NOT_INSTALLED);const n=p9(e),r=g9(n),o=A1(e),i=m9(t,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw Ir(rt.NOT_AVAILABLE_IN_LEGACY_MODE);return C9(e,i,r,t)}if(i==="global")return a9(r,t,o),r;if(i==="parent"){let l=y9(n,e,t.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&ir(Na(Yt.NOT_FOUND_PARENT_SCOPE)),l=r),l}const s=n;let c=s.__getInstance(e);if(c==null){const l=xt({},t);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),c=d9(l),s.__composerExtend&&(c[Cd]=s.__composerExtend(c)),b9(s,e,c),s.__setInstance(e,c)}return c}function p9(t){{const e=a.inject(t.isCE?h9:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Ir(t.isCE?rt.NOT_INSTALLED_WITH_PROVIDE:rt.UNEXPECTED_ERROR);return e}}function m9(t,e){return Ea(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function g9(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=v9(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[k1]&&(r=null))}if(r!=null||o===i)break;i=i.parent}return r}function v9(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function b9(t,e,n){let r=null;a.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&e.vnode.el){e.vnode.el.__VUE_I18N__=n,r=TC();const o=n;o[vd]&&o[vd](r),r.on("*",D1)}},e),a.onUnmounted(()=>{const o=n;process.env.NODE_ENV!=="production"&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&(r&&r.off("*",D1),o[bd]&&o[bd](),delete e.vnode.el.__VUE_I18N__),t.__deleteInstance(e);const i=o[Cd];i&&(i(),delete o[Cd])},e)}function C9(t,e,n,r={}){const o=e==="local",i=a.shallowRef(null);if(o&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw Ir(rt.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=tt(r.inheritLocale)?r.inheritLocale:!Te(r.locale),c=a.ref(!o||s?n.locale.value:Te(r.locale)?r.locale:Qi),l=a.ref(!o||s?n.fallbackLocale.value:Te(r.fallbackLocale)||ft(r.fallbackLocale)||We(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:c.value),d=a.ref(Ed(c.value,r)),u=a.ref(We(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),f=a.ref(We(r.numberFormats)?r.numberFormats:{[c.value]:{}}),h=o?n.missingWarn:tt(r.missingWarn)||Ko(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:tt(r.fallbackWarn)||Ko(r.fallbackWarn)?r.fallbackWarn:!0,m=o?n.fallbackRoot:tt(r.fallbackRoot)?r.fallbackRoot:!0,g=!!r.fallbackFormat,y=nt(r.missing)?r.missing:null,C=nt(r.postTranslation)?r.postTranslation:null,E=o?n.warnHtmlMessage:tt(r.warnHtmlMessage)?r.warnHtmlMessage:!0,b=!!r.escapeParameter,v=o?n.modifiers:We(r.modifiers)?r.modifiers:{},k=r.pluralRules||o&&n.pluralRules;function _(){return[c.value,l.value,d.value,u.value,f.value]}const O=a.computed({get:()=>i.value?i.value.locale.value:c.value,set:I=>{i.value&&(i.value.locale.value=I),c.value=I}}),L=a.computed({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:I=>{i.value&&(i.value.fallbackLocale.value=I),l.value=I}}),N=a.computed(()=>i.value?i.value.messages.value:d.value),z=a.computed(()=>u.value),V=a.computed(()=>f.value);function P(){return i.value?i.value.getPostTranslationHandler():C}function j(I){i.value&&i.value.setPostTranslationHandler(I)}function K(){return i.value?i.value.getMissingHandler():y}function F(I){i.value&&i.value.setMissingHandler(I)}function W(I){return _(),I()}function Q(...I){return i.value?W(()=>Reflect.apply(i.value.t,null,[...I])):W(()=>"")}function U(...I){return i.value?Reflect.apply(i.value.rt,null,[...I]):""}function ee(...I){return i.value?W(()=>Reflect.apply(i.value.d,null,[...I])):W(()=>"")}function ne(...I){return i.value?W(()=>Reflect.apply(i.value.n,null,[...I])):W(()=>"")}function ae(I){return i.value?i.value.tm(I):{}}function ue(I,M){return i.value?i.value.te(I,M):!1}function me(I){return i.value?i.value.getLocaleMessage(I):{}}function Ee(I,M){i.value&&(i.value.setLocaleMessage(I,M),d.value[I]=M)}function ke(I,M){i.value&&i.value.mergeLocaleMessage(I,M)}function Oe(I){return i.value?i.value.getDateTimeFormat(I):{}}function Se(I,M){i.value&&(i.value.setDateTimeFormat(I,M),u.value[I]=M)}function D(I,M){i.value&&i.value.mergeDateTimeFormat(I,M)}function $(I){return i.value?i.value.getNumberFormat(I):{}}function x(I,M){i.value&&(i.value.setNumberFormat(I,M),f.value[I]=M)}function B(I,M){i.value&&i.value.mergeNumberFormat(I,M)}const S={get id(){return i.value?i.value.id:-1},locale:O,fallbackLocale:L,messages:N,datetimeFormats:z,numberFormats:V,get inheritLocale(){return i.value?i.value.inheritLocale:s},set inheritLocale(I){i.value&&(i.value.inheritLocale=I)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(d.value)},get modifiers(){return i.value?i.value.modifiers:v},get pluralRules(){return i.value?i.value.pluralRules:k},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:h},set missingWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackWarn(){return i.value?i.value.fallbackWarn:p},set fallbackWarn(I){i.value&&(i.value.missingWarn=I)},get fallbackRoot(){return i.value?i.value.fallbackRoot:m},set fallbackRoot(I){i.value&&(i.value.fallbackRoot=I)},get fallbackFormat(){return i.value?i.value.fallbackFormat:g},set fallbackFormat(I){i.value&&(i.value.fallbackFormat=I)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:E},set warnHtmlMessage(I){i.value&&(i.value.warnHtmlMessage=I)},get escapeParameter(){return i.value?i.value.escapeParameter:b},set escapeParameter(I){i.value&&(i.value.escapeParameter=I)},t:Q,getPostTranslationHandler:P,setPostTranslationHandler:j,getMissingHandler:K,setMissingHandler:F,rt:U,d:ee,n:ne,tm:ae,te:ue,getLocaleMessage:me,setLocaleMessage:Ee,mergeLocaleMessage:ke,getDateTimeFormat:Oe,setDateTimeFormat:Se,mergeDateTimeFormat:D,getNumberFormat:$,setNumberFormat:x,mergeNumberFormat:B};function w(I){I.locale.value=c.value,I.fallbackLocale.value=l.value,Object.keys(d.value).forEach(M=>{I.mergeLocaleMessage(M,d.value[M])}),Object.keys(u.value).forEach(M=>{I.mergeDateTimeFormat(M,u.value[M])}),Object.keys(f.value).forEach(M=>{I.mergeNumberFormat(M,f.value[M])}),I.escapeParameter=b,I.fallbackFormat=g,I.fallbackRoot=m,I.fallbackWarn=p,I.missingWarn=h,I.warnHtmlMessage=E}return a.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw Ir(rt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const I=i.value=t.proxy.$i18n.__composer;e==="global"?(c.value=I.locale.value,l.value=I.fallbackLocale.value,d.value=I.messages.value,u.value=I.datetimeFormats.value,f.value=I.numberFormats.value):o&&w(I)}),S}if(r9(),__INTLIFY_JIT_COMPILATION__?Jp(ZE):Jp(QE),FE(CE),jE(Yp),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const t=or();t.__INTLIFY__=!0,xE(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;function In(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Ma(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Ue(t){return!In(t)}function xr(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function P1(t,e){let n=-1;if(Ue(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function mt(t,...e){return Ma(t)?t(...e):t}function _t(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Bt(t){return _t(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function La(t,e="",n={}){let r=Bt(e).split("."),o=r.shift();if(o){if(xr(t)){let i=Object.keys(t).find(s=>Bt(s)===o)||"";return La(mt(t[i],n),r.join("."),n)}return}return mt(t,n)}function _d(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function E9(t){return Ue(t)&&!isNaN(t)}function S9(t=""){return Ue(t)&&t.length===1&&!!t.match(/\S| /)}function go(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function Or(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 _9(t){return _t(t,!1)?t[0].toUpperCase()+t.slice(1):t}function B1(t){return _t(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function wd(){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 Xi(...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)?[Xi(...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 w9(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function k9(t,e){if(t&&e){let n=r=>{w9(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function kd(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 $1(t){for(let e of document==null?void 0:document.styleSheets)try{for(let n of e==null?void 0:e.cssRules)for(let r of n==null?void 0:n.style)if(t.test(r))return{name:r,value:n.style.getPropertyValue(r).trim()}}catch{}return null}function A9(t){let e={width:0,height:0};if(t){let[n,r]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block",e.width=t.offsetWidth,e.height=t.offsetHeight,t.style.display=r,t.style.visibility=n}return e}function R1(){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 Ad(t){return t?Math.abs(t.scrollLeft):0}function T9(){let t=document.documentElement;return(window.pageXOffset||Ad(t))-(t.clientLeft||0)}function I9(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function x9(t){return t?getComputedStyle(t).direction==="rtl":!1}function O9(t,e,n=!0){var r,o,i,s;if(t){let c=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:A9(t),l=c.height,d=c.width,u=e.offsetHeight,f=e.offsetWidth,h=e.getBoundingClientRect(),p=I9(),m=T9(),g=R1(),y,C,E="top";h.top+u+l>g.height?(y=h.top+p-l,E="bottom",y<0&&(y=p)):y=u+h.top+p,h.left+d>g.width?C=Math.max(0,h.left+m+f-d):C=h.left+m,x9(t)?t.style.insetInlineEnd=C+"px":t.style.insetInlineStart=C+"px",t.style.top=y+"px",t.style.transformOrigin=E,n&&(t.style.marginTop=E==="bottom"?`calc(${(o=(r=$1(/-anchor-gutter$/))==null?void 0:r.value)!=null?o:"2px"} * -1)`:(s=(i=$1(/-anchor-gutter$/))==null?void 0:i.value)!=null?s:"")}}function V1(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,r])=>t.style[n]=r))}function qi(t,e){if(t instanceof HTMLElement){let n=t.offsetWidth;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginLeft)+parseFloat(r.marginRight)}return n}return 0}function F1(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function j1(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&F1(t))}function Jo(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Td;function z1(t){if(t){let e=getComputedStyle(t);return t.offsetWidth-t.clientWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)}else{if(Td!=null)return Td;let e=document.createElement("div");V1(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),Td=n,n}}function Xo(t,e={}){if(Jo(t)){let n=(r,o)=>{var i,s;let c=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((l,d)=>{if(d!=null){let u=typeof d;if(u==="string"||u==="number")l.push(d);else if(u==="object"){let f=Array.isArray(d)?n(r,d):Object.entries(d).map(([h,p])=>r==="style"&&(p||p===0)?`${h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${p}`:p?h:void 0);l=f.length?l.concat(f.filter(h=>!!h)):l}}return l},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"?Xo(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 N9(t,e={},...n){if(t){let r=document.createElement(t);return Xo(r,e),r.append(...n),r}}function qo(t,e){return Jo(t)?t.matches(e)?t:t.querySelector(e):null}function yo(t,e){t&&document.activeElement!==t&&t.focus(e)}function M9(t,e){if(Jo(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function U1(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 L9(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 D9(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 H1(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||Ad(document.documentElement)||Ad(document.body)||0)}}return{top:"auto",left:"auto"}}function W1(t,e){if(t){let n=t.offsetHeight;if(e){let r=getComputedStyle(t);n+=parseFloat(r.marginTop)+parseFloat(r.marginBottom)}return n}return 0}function K1(t,e=[]){let n=F1(t);return n===null?e:K1(n,e.concat([n]))}function P9(t){let e=[];if(t){let n=K1(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 l of c){let d=qo(i,l);d&&o(d)&&e.push(d)}}i.nodeType!==9&&o(i)&&e.push(i)}}return e}function Y1(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 Id(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function B9(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function $9(t,e){var n,r;if(t){let o=t.parentElement,i=H1(o),s=R1(),c=t.offsetParent?t.offsetWidth:D9(t),l=t.offsetParent?t.offsetHeight:L9(t),d=qi((n=o==null?void 0:o.children)==null?void 0:n[0]),u=W1((r=o==null?void 0:o.children)==null?void 0:r[0]),f="",h="";i.left+d+c>s.width-z1()?i.left<c?e%2===1?f=i.left?"-"+i.left+"px":"100%":e%2===0&&(f=s.width-c-z1()+"px"):f="-100%":f="100%",t.getBoundingClientRect().top+u+l>s.height?h=`-${l-u}px`:h="0px",t.style.top=h,t.style.insetInlineStart=f}}function G1(t,e="",n){Jo(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var Da={};function R9(t="pui_id_"){return Object.hasOwn(Da,t)||(Da[t]=0),Da[t]++,`${t}${Da[t]}`}function V9(){let t=[],e=(s,c,l=999)=>{let d=o(s,c,l),u=d.value+(d.key===s?0:l)+1;return t.push({key:s,value:u}),u},n=s=>{t=t.filter(c=>c.value!==s)},r=(s,c)=>o(s,c).value,o=(s,c,l=0)=>[...t].reverse().find(d=>c?!0:d.key===s)||{key:s,value:l},i=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:i,set:(s,c,l)=>{c&&(c.style.zIndex=String(e(s,!0,l)))},clear:s=>{s&&(n(i(s)),s.style.zIndex="")},getCurrent:s=>r(s,!0)}}var xd=V9(),F9=Object.defineProperty,j9=Object.defineProperties,z9=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,Q1=Object.prototype.hasOwnProperty,Z1=Object.prototype.propertyIsEnumerable,J1=(t,e,n)=>e in t?F9(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xn=(t,e)=>{for(var n in e||(e={}))Q1.call(e,n)&&J1(t,n,e[n]);if(Pa)for(var n of Pa(e))Z1.call(e,n)&&J1(t,n,e[n]);return t},Od=(t,e)=>j9(t,z9(e)),lr=(t,e)=>{var n={};for(var r in t)Q1.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Pa)for(var r of Pa(t))e.indexOf(r)<0&&Z1.call(t,r)&&(n[r]=t[r]);return n},U9=wd(),lt=U9,es=/{([^}]*)}/g,X1=/(\d+\s+[\+\-\*\/]\s+\d+)/g,q1=/var\([^)]+\)/g;function em(t){return _t(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function H9(t){return xr(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function W9(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Nd(t="",e=""){return W9(`${_t(t,!1)&&_t(e,!1)?`${t}-`:t}${e}`)}function tm(t="",e=""){return`--${Nd(t,e)}`}function K9(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function nm(t,e="",n="",r=[],o){if(_t(t)){let i=t.trim();if(K9(i))return;if(go(i,es)){let s=i.replaceAll(es,c=>{let l=c.replace(/{|}/g,"").split(".").filter(d=>!r.some(u=>go(d,u)));return`var(${tm(n,B1(l.join("-")))}${Ue(o)?`, ${o}`:""})`});return go(s.replace(q1,"0"),X1)?`calc(${s})`:s}return i}else if(E9(t))return t}function Y9(t,e,n){_t(e,!1)&&t.push(`${e}:${n};`)}function ei(t,e){return t?`${t}{${e}}`:""}function rm(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,c){let l=[],d=0,u="",f=null,h=0;for(;d<=s.length;){let p=s[d];if((p==='"'||p==="'"||p==="`")&&s[d-1]!=="\\"&&(f=f===p?null:p),!f&&(p==="("&&h++,p===")"&&h--,(p===","||d===s.length)&&h===0)){let m=u.trim();m.startsWith("dt(")?l.push(rm(m,c)):l.push(r(m)),u="",d++;continue}p!==void 0&&(u+=p),d++}return l}function r(s){let c=s[0];if((c==='"'||c==="'"||c==="`")&&s[s.length-1]===c)return s.slice(1,-1);let l=Number(s);return isNaN(l)?s:l}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,l]=o[s],d=t.slice(c+3,l),u=n(d,e),f=e(...u);t=t.slice(0,c)+f+t.slice(l+1)}return t}var cr=(...t)=>G9(Ve.getTheme(),...t),G9=(t={},e,n,r)=>{if(e){let{variable:o,options:i}=Ve.defaults||{},{prefix:s,transform:c}=(t==null?void 0:t.options)||i||{},l=go(e,es)?e:`{${e}}`;return r==="value"||In(r)&&c==="strict"?Ve.getTokenValue(e):nm(l,void 0,s,[o.excludedKeyRegex],n)}return""};function Nr(t,...e){if(t instanceof Array){let n=t.reduce((r,o,i)=>{var s;return r+o+((s=mt(e[i],{dt:cr}))!=null?s:"")},"");return rm(n,cr)}return mt(t,{dt:cr})}function Q9(t,e={}){let n=Ve.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=[],c=[],l=[{node:t,path:r}];for(;l.length;){let{node:u,path:f}=l.pop();for(let h in u){let p=u[h],m=H9(p),g=go(h,i)?Nd(f):Nd(f,B1(h));if(xr(m))l.push({node:m,path:g});else{let y=tm(g),C=nm(m,g,r,[i]);Y9(c,y,C);let E=g;r&&E.startsWith(r+"-")&&(E=E.slice(r.length+1)),s.push(E.replace(/-/g,"."))}}}let d=c.join("");return{value:c,tokens:s,declarations:d,css:ei(o,d)}}var On={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Q9(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,c,l,d,u,f;let{preset:h,options:p}=e,m,g,y,C,E,b,v;if(Ue(h)&&p.transform!=="strict"){let{primitive:k,semantic:_,extend:O}=h,L=_||{},{colorScheme:N}=L,z=lr(L,["colorScheme"]),V=O||{},{colorScheme:P}=V,j=lr(V,["colorScheme"]),K=N||{},{dark:F}=K,W=lr(K,["dark"]),Q=P||{},{dark:U}=Q,ee=lr(Q,["dark"]),ne=Ue(k)?this._toVariables({primitive:k},p):{},ae=Ue(z)?this._toVariables({semantic:z},p):{},ue=Ue(W)?this._toVariables({light:W},p):{},me=Ue(F)?this._toVariables({dark:F},p):{},Ee=Ue(j)?this._toVariables({semantic:j},p):{},ke=Ue(ee)?this._toVariables({light:ee},p):{},Oe=Ue(U)?this._toVariables({dark:U},p):{},[Se,D]=[(i=ne.declarations)!=null?i:"",ne.tokens],[$,x]=[(s=ae.declarations)!=null?s:"",ae.tokens||[]],[B,S]=[(c=ue.declarations)!=null?c:"",ue.tokens||[]],[w,I]=[(l=me.declarations)!=null?l:"",me.tokens||[]],[M,Y]=[(d=Ee.declarations)!=null?d:"",Ee.tokens||[]],[G,J]=[(u=ke.declarations)!=null?u:"",ke.tokens||[]],[X,A]=[(f=Oe.declarations)!=null?f:"",Oe.tokens||[]];m=this.transformCSS(t,Se,"light","variable",p,r,o),g=D;let T=this.transformCSS(t,`${$}${B}`,"light","variable",p,r,o),H=this.transformCSS(t,`${w}`,"dark","variable",p,r,o);y=`${T}${H}`,C=[...new Set([...x,...S,...I])];let Z=this.transformCSS(t,`${M}${G}color-scheme:light`,"light","variable",p,r,o),le=this.transformCSS(t,`${X}color-scheme:dark`,"dark","variable",p,r,o);E=`${Z}${le}`,b=[...new Set([...Y,...J,...A])],v=mt(h.css,{dt:cr})}return{primitive:{css:m,tokens:g},semantic:{css:y,tokens:C},global:{css:E,tokens:b},style:v}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var c,l,d;let u,f,h;if(Ue(e)&&n.transform!=="strict"){let p=t.replace("-directive",""),m=e,{colorScheme:g,extend:y,css:C}=m,E=lr(m,["colorScheme","extend","css"]),b=y||{},{colorScheme:v}=b,k=lr(b,["colorScheme"]),_=g||{},{dark:O}=_,L=lr(_,["dark"]),N=v||{},{dark:z}=N,V=lr(N,["dark"]),P=Ue(E)?this._toVariables({[p]:xn(xn({},E),k)},n):{},j=Ue(L)?this._toVariables({[p]:xn(xn({},L),V)},n):{},K=Ue(O)?this._toVariables({[p]:xn(xn({},O),z)},n):{},[F,W]=[(c=P.declarations)!=null?c:"",P.tokens||[]],[Q,U]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[ee,ne]=[(d=K.declarations)!=null?d:"",K.tokens||[]],ae=this.transformCSS(p,`${F}${Q}`,"light","variable",n,o,i,s),ue=this.transformCSS(p,ee,"dark","variable",n,o,i,s);u=`${ae}${ue}`,f=[...new Set([...W,...U,...ne])],h=mt(C,{dt:cr})}return{css:u,tokens:f,style:h}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;let{preset:s,options:c}=e,l=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,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:l,options:d}=e,u=((i=l==null?void 0:l.components)==null?void 0:i[c])||((s=l==null?void 0:l.directives)==null?void 0:s[c]);return this.getPreset({name:c,preset:u,options:d,params:n,set:r,defaults:o})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,r){let{cssLayer:o}=e;return o?`@layer ${mt(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((l,[d,u])=>l.push(`${d}="${u}"`)&&l,[]).join(" ");return Object.entries(s||{}).reduce((l,[d,u])=>{if(xr(u)&&Object.hasOwn(u,"css")){let f=Or(u.css),h=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${h}" ${c}>${f}</style>`)}return l},[]).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},l=(s=t.includes("-directive")?this.getPresetD(c):this.getPresetC(c))==null?void 0:s.css,d=Object.entries(r).reduce((u,[f,h])=>u.push(`${f}="${h}"`)&&u,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Or(l)}</style>`:""},createTokens(t={},e,n="",r="",o={}){let i=function(c,l={},d=[]){if(d.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:c,path:this.path,paths:l,value:void 0};d.push(this.path),l.name=this.path,l.binding||(l.binding={});let u=this.value;if(typeof this.value=="string"&&es.test(this.value)){let f=this.value.trim().replace(es,h=>{var p;let m=h.slice(1,-1),g=this.tokens[m];if(!g)return console.warn(`Token not found for path: ${m}`),"__UNRESOLVED__";let y=g.computed(c,l,d);return Array.isArray(y)&&y.length===2?`light-dark(${y[0].value},${y[1].value})`:(p=y==null?void 0:y.value)!=null?p:"__UNRESOLVED__"});u=X1.test(f.replace(q1,"0"))?`calc(${f})`:f}return In(l.binding)&&delete l.binding,d.pop(),{colorScheme:c,path:this.path,paths:l,value:u.includes("__UNRESOLVED__")?void 0:u}},s=(c,l,d)=>{Object.entries(c).forEach(([u,f])=>{let h=go(u,e.variable.excludedKeyRegex)?l:l?`${l}.${em(u)}`:em(u),p=d?`${d}.${u}`:u;xr(f)?s(f,h,p):(o[h]||(o[h]={paths:[],computed:(m,g={},y=[])=>{if(o[h].paths.length===1)return o[h].paths[0].computed(o[h].paths[0].scheme,g.binding,y);if(m&&m!=="none")for(let C=0;C<o[h].paths.length;C++){let E=o[h].paths[C];if(E.scheme===m)return E.computed(m,g.binding,y)}return o[h].paths.map(C=>C.computed(C.scheme,g[C.scheme],y))}}),o[h].paths.push({path:p,value:f,scheme:p.includes("colorScheme.light")?"light":p.includes("colorScheme.dark")?"dark":"none",computed:i,tokens:o}))})};return s(t,n,r),o},getTokenValue(t,e,n){var r;let o=(c=>c.split(".").filter(l=>!go(l.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={},l)=>{let d=l,{colorScheme:u}=d,f=lr(d,["colorScheme"]);return c[u]=f,c},void 0)},getSelectorRule(t,e,n,r){return n==="class"||n==="attr"?ei(Ue(e)?`${t}${e},${t} ${e}`:t,r):ei(t,ei(e??":root",r))},transformCSS(t,e,n,r,o={},i,s,c){if(Ue(e)){let{cssLayer:l}=o;if(r!=="style"){let d=this.getColorSchemeOption(o,s);e=n==="dark"?d.reduce((u,{type:f,selector:h})=>(Ue(h)&&(u+=h.includes("[CSS]")?h.replace("[CSS]",e):this.getSelectorRule(h,c,f,e)),u),""):ei(c??":root",e)}if(l){let d={name:"primeui",order:"primeui"};xr(l)&&(d.name=mt(l.name,{name:t,type:r})),Ue(d.name)&&(e=ei(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Ve={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Od(xn({},e),{options:xn(xn({},this.defaults.options),e.options)}),this._tokens=On.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=Od(xn({},this.theme),{preset:t}),this._tokens=On.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=Od(xn({},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 On.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return On.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 On.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return On.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 On.getPreset(o)},getLayerOrderCSS(t=""){return On.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return On.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return On.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return On.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&<.emit("theme:load"))}},ts={_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()}},om=`
|
|
79
79
|
*,
|
|
80
80
|
::before,
|
|
81
81
|
::after {
|
|
@@ -218,8 +218,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
218
218
|
overflow: hidden;
|
|
219
219
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
220
220
|
}
|
|
221
|
-
`)},dS={},uS={},dr={name:"base",css:cS,style:om,classes:dS,inlineStyles:uS,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(Nr(am||(am=Ba(["",""])),e));return Ue(o)?tS(Or(o),Md({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ve.transformCSS(n.name||e.name,"".concat(o).concat(Nr(lm||(lm=Ba(["",""])),r)))})},getCommonTheme:function(e){return Ve.getCommon(this.name,e)},getComponentTheme:function(e){return Ve.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ve.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ve.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ve.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=
|
|
222
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(t,e){if(t){if(typeof t=="string")return ym(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)?ym(t,e):void 0}}function ym(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 mS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function vm(t){if(Array.isArray(t))return t}function bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bm(Object(n),!0).forEach(function(r){as(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function as(t,e,n){return(e=gS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gS(t){var e=yS(t,"string");return is(e)=="symbol"?e:e+""}function yS(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vS={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,l,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=fS(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=qo(Jo(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ke({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_load:function(){ts.isStyleNameLoaded("base")||(dr.loadCSS(this.$styleOptions),this._loadGlobalStyles(),ts.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!ts.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(pm.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ts.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ue(e)&&dr.load(e,Ke({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,l=i.global,d=i.style;dr.load(s==null?void 0:s.css,Ke({name:"primitive-variables"},this.$styleOptions)),dr.load(c==null?void 0:c.css,Ke({name:"semantic-variables"},this.$styleOptions)),dr.load(l==null?void 0:l.css,Ke({name:"global-variables"},this.$styleOptions)),dr.loadStyle(Ke({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ke({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ke({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);dr.load(b,Ke({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ke({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ts.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 La(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)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ke(Ke({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ke(Ke(Ke({},h),p),m):Ke(Ke({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.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"&&Ue((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ke(Ke({},r==="root"&&Ke(Ke(as({},"".concat(o,"name"),Bt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&as({},"".concat(o,"extend"),Bt(this.$.type.name))),{},as({},"".concat(this.$attrSelector),""))),{},as({},"".concat(o,"section"),Bt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||_d(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 l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Bt(r),h=Bt(n.$name);return(l=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ke(Ke({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Ke(Ke({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ke({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Ke(Ke({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,Ke(Ke({},this.$params),r)),i=this._getOptionValue(pm.inlineStyles,e,Ke(Ke({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Ke({},n.$params))||pt(r,Ke({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ss(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ke(Ke({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ss(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ss(n,2),o=r[0],i=r[1],s=o.split(":"),c=hS(s),l=c.slice(1);return l==null||l.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ss(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ss(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},bS=`
|
|
221
|
+
`)},dS={},uS={},dr={name:"base",css:cS,style:om,classes:dS,inlineStyles:uS,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(Nr(am||(am=Ba(["",""])),e));return Ue(o)?tS(Or(o),Md({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ve.transformCSS(n.name||e.name,"".concat(o).concat(Nr(lm||(lm=Ba(["",""])),r)))})},getCommonTheme:function(e){return Ve.getCommon(this.name,e)},getComponentTheme:function(e){return Ve.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ve.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ve.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ve.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=mt(this.css,{dt:cr})||"",o=Or(Nr(cm||(cm=Ba(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var l=um(c,2),d=l[0],u=l[1];return s.push("".concat(d,'="').concat(u,'"'))&&s},[]).join(" ");return Ue(o)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ve.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ve.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Nr(dm||(dm=Ba(["",""])),mt(this.style,{dt:cr})),s=Or(Ve.transformCSS(o,i)),c=Object.entries(n).reduce(function(l,d){var u=um(d,2),f=u[0],h=u[1];return l.push("".concat(f,'="').concat(h,'"'))&&l},[]).join(" ");Ue(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 Md(Md({},this),{},{css:void 0,style:void 0},e)}};function fS(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=a.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var pm=dr.extend({name:"common"});function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function hS(t){return vm(t)||pS(t)||gm(t)||mm()}function pS(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ss(t,e){return vm(t)||mS(t,e)||gm(t,e)||mm()}function mm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
222
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gm(t,e){if(t){if(typeof t=="string")return ym(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)?ym(t,e):void 0}}function ym(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 mS(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function vm(t){if(Array.isArray(t))return t}function bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Ke(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bm(Object(n),!0).forEach(function(r){as(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function as(t,e,n){return(e=gS(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gS(t){var e=yS(t,"string");return is(e)=="symbol"?e:e+""}function yS(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vS={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,l,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=fS(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=qo(Jo(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ke({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_load:function(){ts.isStyleNameLoaded("base")||(dr.loadCSS(this.$styleOptions),this._loadGlobalStyles(),ts.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!ts.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(pm.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ts.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ue(e)&&dr.load(e,Ke({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,l=i.global,d=i.style;dr.load(s==null?void 0:s.css,Ke({name:"primitive-variables"},this.$styleOptions)),dr.load(c==null?void 0:c.css,Ke({name:"semantic-variables"},this.$styleOptions)),dr.load(l==null?void 0:l.css,Ke({name:"global-variables"},this.$styleOptions)),dr.loadStyle(Ke({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ke({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ke({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);dr.load(b,Ke({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ke({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=c.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ts.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 La(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)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ke(Ke({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ke(Ke(Ke({},h),p),m):Ke(Ke({},p),m)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.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"&&Ue((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ke(Ke({},r==="root"&&Ke(Ke(as({},"".concat(o,"name"),Bt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&as({},"".concat(o,"extend"),Bt(this.$.type.name))),{},as({},"".concat(this.$attrSelector),""))),{},as({},"".concat(o,"section"),Bt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return _t(e)||_d(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 l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Bt(r),h=Bt(n.$name);return(l=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:_t(p)?p:_t(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ke(Ke({},h),p):p}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Ke(Ke({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ke({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Ke(Ke({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,Ke(Ke({},this.$params),r)),i=this._getOptionValue(pm.inlineStyles,e,Ke(Ke({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return mt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Ke({},n.$params))||mt(r,Ke({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(r){var o=ss(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ke(Ke({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ss(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=ss(n,2),o=r[0],i=r[1],s=o.split(":"),c=hS(s),l=c.slice(1);return l==null||l.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=ss(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=ss(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},bS=`
|
|
223
223
|
.p-icon {
|
|
224
224
|
display: inline-block;
|
|
225
225
|
vertical-align: baseline;
|
|
@@ -273,8 +273,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
273
273
|
overflow: hidden;
|
|
274
274
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
275
275
|
}
|
|
276
|
-
`)},ZS={},JS={},
|
|
277
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pm(t,e){if(t){if(typeof t=="string")return Bm(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)?Bm(t,e):void 0}}function Bm(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 t_(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function $m(t){if(Array.isArray(t))return t}function Rm(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 Ye(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hs(t,e,n){return(e=n_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n_(t){var e=r_(t,"string");return us(e)=="symbol"?e:e+""}function r_(t,e){if(us(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ps={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,l,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=XS(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=qo(Jo(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ye({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_load:function(){Mr.isStyleNameLoaded("base")||(mt.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Mr.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Mr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Lm.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Mr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ue(e)&&mt.load(e,Ye({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,l=i.global,d=i.style;mt.load(s==null?void 0:s.css,Ye({name:"primitive-variables"},this.$styleOptions)),mt.load(c==null?void 0:c.css,Ye({name:"semantic-variables"},this.$styleOptions)),mt.load(l==null?void 0:l.css,Ye({name:"global-variables"},this.$styleOptions)),mt.loadStyle(Ye({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ye({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ye({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);mt.load(b,Ye({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ye({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(){};Mr.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 La(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)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ye(Ye({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ye(Ye(Ye({},h),p),m):Ye(Ye({},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 a.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"&&Ue((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ye(Ye({},r==="root"&&Ye(Ye(hs({},"".concat(o,"name"),Bt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hs({},"".concat(o,"extend"),Bt(this.$.type.name))),{},hs({},"".concat(this.$attrSelector),""))),{},hs({},"".concat(o,"section"),Bt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return St(e)||_d(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 l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Bt(r),h=Bt(n.$name);return(l=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:St(p)?p:St(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ye(Ye({},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,Ye(Ye({},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=a.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ye({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,Ye(Ye({},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,Ye(Ye({},this.$params),r)),i=this._getOptionValue(Lm.inlineStyles,e,Ye(Ye({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return pt(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Ye({},n.$params))||pt(r,Ye({},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=fs(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ye(Ye({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=fs(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=fs(n,2),o=r[0],i=r[1],s=o.split(":"),c=qS(s),l=c.slice(1);return l==null||l.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=fs(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=fs(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},o_=`
|
|
276
|
+
`)},ZS={},JS={},gt={name:"base",css:QS,style:om,classes:ZS,inlineStyles:JS,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(Nr(Am||(Am=$a(["",""])),e));return Ue(o)?jS(Or(o),Bd({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ve.transformCSS(n.name||e.name,"".concat(o).concat(Nr(Tm||(Tm=$a(["",""])),r)))})},getCommonTheme:function(e){return Ve.getCommon(this.name,e)},getComponentTheme:function(e){return Ve.getComponent(this.name,e)},getDirectiveTheme:function(e){return Ve.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Ve.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Ve.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=mt(this.css,{dt:cr})||"",o=Or(Nr(Im||(Im=$a(["","",""])),r,e)),i=Object.entries(n).reduce(function(s,c){var l=Om(c,2),d=l[0],u=l[1];return s.push("".concat(d,'="').concat(u,'"'))&&s},[]).join(" ");return Ue(o)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ve.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Ve.getStyleSheet(this.name,e,n)];if(this.style){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Nr(xm||(xm=$a(["",""])),mt(this.style,{dt:cr})),s=Or(Ve.transformCSS(o,i)),c=Object.entries(n).reduce(function(l,d){var u=Om(d,2),f=u[0],h=u[1];return l.push("".concat(f,'="').concat(h,'"'))&&l},[]).join(" ");Ue(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 Bd(Bd({},this),{},{css:void 0,style:void 0},e)}};function XS(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=a.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var Lm=gt.extend({name:"common"});function us(t){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},us(t)}function qS(t){return $m(t)||e_(t)||Pm(t)||Dm()}function e_(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fs(t,e){return $m(t)||t_(t,e)||Pm(t,e)||Dm()}function Dm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
277
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pm(t,e){if(t){if(typeof t=="string")return Bm(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)?Bm(t,e):void 0}}function Bm(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 t_(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function $m(t){if(Array.isArray(t))return t}function Rm(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 Ye(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Rm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hs(t,e,n){return(e=n_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n_(t){var e=r_(t,"string");return us(e)=="symbol"?e:e+""}function r_(t,e){if(us(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ps={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,l,d,u,f,h=(e=this.pt)===null||e===void 0?void 0:e._usept,p=h?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,m=h?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=m||p)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var g=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,y=g?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,C=g?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(u=C||y)===null||u===void 0||(u=u[this.$.type.name])===null||u===void 0||(u=u.hooks)===null||u===void 0||(f=u.onBeforeCreate)===null||f===void 0||f.call(u),this.$attrSelector=XS(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=qo(Jo(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Ye({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_load:function(){Mr.isStyleNameLoaded("base")||(gt.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Mr.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Mr.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Lm.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Mr.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Ue(e)&>.load(e,Ye({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!Ve.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},s=i.primitive,c=i.semantic,l=i.global,d=i.style;gt.load(s==null?void 0:s.css,Ye({name:"primitive-variables"},this.$styleOptions)),gt.load(c==null?void 0:c.css,Ye({name:"semantic-variables"},this.$styleOptions)),gt.load(l==null?void 0:l.css,Ye({name:"global-variables"},this.$styleOptions)),gt.loadStyle(Ye({name:"global-style"},this.$styleOptions),d),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var u,f,h,p,m=((u=this.$style)===null||u===void 0||(f=u.getComponentTheme)===null||f===void 0?void 0:f.call(u))||{},g=m.css,y=m.style;(h=this.$style)===null||h===void 0||h.load(g,Ye({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadStyle(Ye({name:"".concat(this.$style.name,"-style")},this.$styleOptions),y),Ve.setLoadedStyleName(this.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var C,E,b=(C=this.$style)===null||C===void 0||(E=C.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(C);gt.load(b,Ye({name:"layer-order",first:!0},this.$styleOptions)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=i.css,c=(o=this.$style)===null||o===void 0?void 0:o.load(s,Ye({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(){};Mr.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 La(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)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,p=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Ye(Ye({},o),{},{global:h||{}})),m=this._getPTDatasets(r);return d||!d&&p?f?this._mergeProps(f,h,p,m):Ye(Ye(Ye({},h),p),m):Ye(Ye({},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 a.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"&&Ue((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Ye(Ye({},r==="root"&&Ye(Ye(hs({},"".concat(o,"name"),Bt(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hs({},"".concat(o,"extend"),Bt(this.$.type.name))),{},hs({},"".concat(this.$attrSelector),""))),{},hs({},"".concat(o,"section"),Bt(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return _t(e)||_d(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 l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=o?o(c):c,f=Bt(r),h=Bt(n.$name);return(l=d?f!==h?u==null?void 0:u[f]:void 0:u==null?void 0:u[f])!==null&&l!==void 0?l:u};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(g){return n(g,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,u=c.mergeProps,f=u===void 0?!1:u,h=i(e.originalValue),p=i(e.value);return h===void 0&&p===void 0?void 0:_t(p)?p:_t(h)?h:d||!d&&p?f?this._mergeProps(f,h,p):Ye(Ye({},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,Ye(Ye({},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=a.mergeProps(this.$_attrsWithoutPT,this.ptm(n,r));return o!=null&&o.hasOwnProperty("id")&&((e=o.id)!==null&&e!==void 0||(o.id=this.$id)),o},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Ye({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,Ye(Ye({},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,Ye(Ye({},this.$params),r)),i=this._getOptionValue(Lm.inlineStyles,e,Ye(Ye({},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 mt(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,Ye({},n.$params))||mt(r,Ye({},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=fs(r,1),i=o[0];return n==null?void 0:n.includes(i)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Ye(Ye({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=fs(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=fs(n,2),o=r[0],i=r[1],s=o.split(":"),c=qS(s),l=c.slice(1);return l==null||l.reduce(function(d,u,f,h){return!d[u]&&(d[u]=f===h.length-1?i:{}),d[u]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=fs(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=fs(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},o_=`
|
|
278
278
|
.p-badge {
|
|
279
279
|
display: inline-flex;
|
|
280
280
|
border-radius: dt('badge.border.radius');
|
|
@@ -349,8 +349,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
349
349
|
min-width: dt('badge.xl.min.width');
|
|
350
350
|
height: dt('badge.xl.height');
|
|
351
351
|
}
|
|
352
|
-
`,i_={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-circle":Ue(n.value)&&String(n.value).length===1,"p-badge-dot":In(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"}]}},s_=
|
|
353
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h_(t,e){if(t){if(typeof t=="string")return zm(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)?zm(t,e):void 0}}function zm(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 p_(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function m_(t){if(Array.isArray(t))return t}function Um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Um(Object(n),!0).forEach(function(r){$d(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $d(t,e,n){return(e=g_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g_(t){var e=y_(t,"string");return gs(e)=="symbol"?e:e+""}function y_(t,e){if(gs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fe={_getMeta:function(){return[xr(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],pt(xr(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:La,_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,l=function(){var E=Fe._getOptionValue.apply(Fe,arguments);return St(E)||_d(E)?{class:E}:E},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},u=d.mergeSections,f=u===void 0?!0:u,h=d.mergeProps,p=h===void 0?!1:h,m=c?Fe._useDefaultPT(r,r.defaultPT(),l,i,s):void 0,g=Fe._usePT(r,Fe._getPT(o,r.$name),l,i,Je(Je({},s),{},{global:m||{}})),y=Fe._getPTDatasets(r,i);return f||!f&&g?p?Fe._mergeProps(r,p,m,g,y):Je(Je(Je({},m),g),y):Je(Je({},g),y)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Je(Je({},n==="root"&&$d({},"".concat(r,"name"),Bt(e.$name))),{},$d({},"".concat(r,"section"),Bt(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,l=r?r(s):s,d=Bt(n);return(c=l==null?void 0:l[d])!==null&&c!==void 0?c:l};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(y){return r(y,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,l=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},d=l.mergeSections,u=d===void 0?!0:d,f=l.mergeProps,h=f===void 0?!1:f,p=s(n.originalValue),m=s(n.value);return p===void 0&&m===void 0?void 0:St(m)?m:St(p)?p:u||!u&&m?h?Fe._mergeProps(e,h,p,m):Je(Je({},p),m):m}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Fe._usePT(e,n,r,o,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=Fe._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};Fe._loadCoreStyles(n,s),Fe._loadThemeStyles(n,s),Fe._loadScopedThemeStyles(n,s),Fe._removeThemeListeners(n),n.$loadStyles=function(){return Fe._loadThemeStyles(n,s)},Fe._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!Mr.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;mt.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),Mr.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled()||(o==null||(e=o.theme)===null||e===void 0?void 0:e.call(o))==="none")){if(!Ve.isStyleNameLoaded("common")){var s,c,l=((s=o.$style)===null||s===void 0||(c=s.getCommonTheme)===null||c===void 0?void 0:c.call(s))||{},d=l.primitive,u=l.semantic,f=l.global,h=l.style;mt.load(d==null?void 0:d.css,Je({name:"primitive-variables"},i)),mt.load(u==null?void 0:u.css,Je({name:"semantic-variables"},i)),mt.load(f==null?void 0:f.css,Je({name:"global-variables"},i)),mt.loadStyle(Je({name:"global-style"},i),h),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((n=o.$style)===null||n===void 0?void 0:n.name)&&(r=o.$style)!==null&&r!==void 0&&r.name){var p,m,g,y,C=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},E=C.css,b=C.style;(g=o.$style)===null||g===void 0||g.load(E,Je({name:"".concat(o.$style.name,"-variables")},i)),(y=o.$style)===null||y===void 0||y.loadStyle(Je({name:"".concat(o.$style.name,"-style")},i),b),Ve.setLoadedStyleName(o.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var v,k,_=(v=o.$style)===null||v===void 0||(k=v.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(v);mt.load(_,Je({name:"layer-order",first:!0},i)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,c=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},l=c.css,d=(s=e.$style)===null||s===void 0?void 0:s.load(l,Je({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Mr.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,l,d="on".concat(_9(n)),u=Fe._getConfig(o,i),f=r==null?void 0:r.$instance,h=Fe._usePT(f,Fe._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),Fe._getOptionValue,"hooks.".concat(d)),p=Fe._useDefaultPT(f,u==null||(l=u.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],Fe._getOptionValue,"hooks.".concat(d)),m={el:r,binding:o,vnode:i,prevVnode:s};h==null||h(f,m),p==null||p(f,m)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(c,l,d,u,f){var h,p,m,g;l._$instances=l._$instances||{};var y=Fe._getConfig(d,u),C=l._$instances[e]||{},E=In(C)?Je(Je({},n),n==null?void 0:n.methods):{};l._$instances[e]=Je(Je({},C),{},{$name:e,$host:l,$binding:d,$modifiers:d==null?void 0:d.modifiers,$value:d==null?void 0:d.value,$el:C.$el||l||void 0,$style:Je({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n==null?void 0:n.style),$primevueConfig:y,$attrSelector:(h=l.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return Fe._getPT(y==null?void 0:y.pt,void 0,function(v){var k;return v==null||(k=v.directives)===null||k===void 0?void 0:k[e]})},isUnstyled:function(){var v,k;return((v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(k=l._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled:y==null?void 0:y.unstyled},theme:function(){var v;return(v=l._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fe._getPTValue(l._$instances[e],(v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,k,Je({},_))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Fe._getPTValue(l._$instances[e],v,k,_,!1)},cx:function(){var v,k,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=l._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:Fe._getOptionValue((k=l._$instances[e])===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.classes,_,Je({},O))},sx:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?Fe._getOptionValue((v=l._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,k,Je({},O)):void 0}},E),l.$instance=l._$instances[e],(p=(m=l.$instance)[c])===null||p===void 0||p.call(m,l,d,u,f),l["$".concat(e)]=l.$instance,Fe._hook(e,c,l,d,u,f),l.$pd||(l.$pd={}),l.$pd[e]=Je(Je({},(g=l.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:l._$instances[e]})},o=function(c){var l,d,u,f=c._$instances[e],h=f==null?void 0:f.watch,p=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h.config)===null||C===void 0?void 0:C.call(f,E,b)},m=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h["config.ripple"])===null||C===void 0?void 0:C.call(f,E,b)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(l=h.config)===null||l===void 0||l.call(f,f==null?void 0:f.$primevueConfig),Ra.on("config:change",p),h==null||(d=h["config.ripple"])===null||d===void 0||d.call(f,f==null||(u=f.$primevueConfig)===null||u===void 0?void 0:u.ripple),Ra.on("config:ripple:change",m)},i=function(c){var l=c._$instances[e].$watchersCallback;l&&(Ra.off("config:change",l.config),Ra.off("config:ripple:change",l["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,l,d,u){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:R9("pd")},r("created",c,l,d,u)},beforeMount:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("beforeMount",c,l,d,u),o(c)},mounted:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("mounted",c,l,d,u)},beforeUpdate:function(c,l,d,u){r("beforeUpdate",c,l,d,u)},updated:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("updated",c,l,d,u)},beforeUnmount:function(c,l,d,u){var f;i(c),Fe._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,l,d,u)},unmounted:function(c,l,d,u){var f;(f=c.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",c,l,d,u)}}},extend:function(){var e=Fe._getMeta.apply(Fe,arguments),n=jm(e,2),r=n[0],o=n[1];return Je({extend:function(){var s=Fe._getMeta.apply(Fe,arguments),c=jm(s,2),l=c[0],d=c[1];return Fe.extend(l,Je(Je(Je({},o),o==null?void 0:o.methods),d))}},Fe._extend(r,o))}},v_=`
|
|
352
|
+
`,i_={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-circle":Ue(n.value)&&String(n.value).length===1,"p-badge-dot":In(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"}]}},s_=gt.extend({name:"badge",style:o_,classes:i_}),a_={name:"BaseBadge",extends:ps,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:s_,provide:function(){return{$pcBadge:this,$parentInstance:this}}};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 Vm(t,e,n){return(e=l_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l_(t){var e=c_(t,"string");return ms(e)=="symbol"?e:e+""}function c_(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 Fm={name:"Badge",extends:a_,inheritAttrs:!1,computed:{dataP:function(){return Xi(Vm(Vm({circle:this.value!=null&&String(this.value).length===1,empty:this.value==null&&!this.$slots.default},this.severity,this.severity),this.size,this.size))}}},d_=["data-p"];function u_(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("span",a.mergeProps({class:t.cx("root"),"data-p":i.dataP},t.ptmi("root")),[a.renderSlot(t.$slots,"default",{},function(){return[a.createTextVNode(a.toDisplayString(t.value),1)]})],16,d_)}Fm.render=u_;var Ra=wd();function gs(t){"@babel/helpers - typeof";return gs=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},gs(t)}function jm(t,e){return m_(t)||p_(t,e)||h_(t,e)||f_()}function f_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h_(t,e){if(t){if(typeof t=="string")return zm(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)?zm(t,e):void 0}}function zm(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 p_(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(u){d=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function m_(t){if(Array.isArray(t))return t}function Um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Um(Object(n),!0).forEach(function(r){$d(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $d(t,e,n){return(e=g_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g_(t){var e=y_(t,"string");return gs(e)=="symbol"?e:e+""}function y_(t,e){if(gs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Fe={_getMeta:function(){return[xr(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],mt(xr(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:La,_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,l=function(){var E=Fe._getOptionValue.apply(Fe,arguments);return _t(E)||_d(E)?{class:E}:E},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},u=d.mergeSections,f=u===void 0?!0:u,h=d.mergeProps,p=h===void 0?!1:h,m=c?Fe._useDefaultPT(r,r.defaultPT(),l,i,s):void 0,g=Fe._usePT(r,Fe._getPT(o,r.$name),l,i,Je(Je({},s),{},{global:m||{}})),y=Fe._getPTDatasets(r,i);return f||!f&&g?p?Fe._mergeProps(r,p,m,g,y):Je(Je(Je({},m),g),y):Je(Je({},g),y)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Je(Je({},n==="root"&&$d({},"".concat(r,"name"),Bt(e.$name))),{},$d({},"".concat(r,"section"),Bt(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,l=r?r(s):s,d=Bt(n);return(c=l==null?void 0:l[d])!==null&&c!==void 0?c:l};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(y){return r(y,o,i)};if(n&&Object.hasOwn(n,"_usept")){var c,l=n._usept||((c=e.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},d=l.mergeSections,u=d===void 0?!0:d,f=l.mergeProps,h=f===void 0?!1:f,p=s(n.originalValue),m=s(n.value);return p===void 0&&m===void 0?void 0:_t(m)?m:_t(p)?p:u||!u&&m?h?Fe._mergeProps(e,h,p,m):Je(Je({},p),m):m}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return Fe._usePT(e,n,r,o,i)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,i=Fe._getConfig(r,o),s={nonce:i==null||(e=i.csp)===null||e===void 0?void 0:e.nonce};Fe._loadCoreStyles(n,s),Fe._loadThemeStyles(n,s),Fe._loadScopedThemeStyles(n,s),Fe._removeThemeListeners(n),n.$loadStyles=function(){return Fe._loadThemeStyles(n,s)},Fe._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!Mr.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;gt.loadCSS(o),(i=r.$style)===null||i===void 0||i.loadCSS(o),Mr.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled()||(o==null||(e=o.theme)===null||e===void 0?void 0:e.call(o))==="none")){if(!Ve.isStyleNameLoaded("common")){var s,c,l=((s=o.$style)===null||s===void 0||(c=s.getCommonTheme)===null||c===void 0?void 0:c.call(s))||{},d=l.primitive,u=l.semantic,f=l.global,h=l.style;gt.load(d==null?void 0:d.css,Je({name:"primitive-variables"},i)),gt.load(u==null?void 0:u.css,Je({name:"semantic-variables"},i)),gt.load(f==null?void 0:f.css,Je({name:"global-variables"},i)),gt.loadStyle(Je({name:"global-style"},i),h),Ve.setLoadedStyleName("common")}if(!Ve.isStyleNameLoaded((n=o.$style)===null||n===void 0?void 0:n.name)&&(r=o.$style)!==null&&r!==void 0&&r.name){var p,m,g,y,C=((p=o.$style)===null||p===void 0||(m=p.getDirectiveTheme)===null||m===void 0?void 0:m.call(p))||{},E=C.css,b=C.style;(g=o.$style)===null||g===void 0||g.load(E,Je({name:"".concat(o.$style.name,"-variables")},i)),(y=o.$style)===null||y===void 0||y.loadStyle(Je({name:"".concat(o.$style.name,"-style")},i),b),Ve.setLoadedStyleName(o.$style.name)}if(!Ve.isStyleNameLoaded("layer-order")){var v,k,_=(v=o.$style)===null||v===void 0||(k=v.getLayerOrderThemeCSS)===null||k===void 0?void 0:k.call(v);gt.load(_,Je({name:"layer-order",first:!0},i)),Ve.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,c=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},l=c.css,d=(s=e.$style)===null||s===void 0?void 0:s.load(l,Je({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Mr.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,l,d="on".concat(_9(n)),u=Fe._getConfig(o,i),f=r==null?void 0:r.$instance,h=Fe._usePT(f,Fe._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),Fe._getOptionValue,"hooks.".concat(d)),p=Fe._useDefaultPT(f,u==null||(l=u.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],Fe._getOptionValue,"hooks.".concat(d)),m={el:r,binding:o,vnode:i,prevVnode:s};h==null||h(f,m),p==null||p(f,m)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Ma(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(c,l,d,u,f){var h,p,m,g;l._$instances=l._$instances||{};var y=Fe._getConfig(d,u),C=l._$instances[e]||{},E=In(C)?Je(Je({},n),n==null?void 0:n.methods):{};l._$instances[e]=Je(Je({},C),{},{$name:e,$host:l,$binding:d,$modifiers:d==null?void 0:d.modifiers,$value:d==null?void 0:d.value,$el:C.$el||l||void 0,$style:Je({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n==null?void 0:n.style),$primevueConfig:y,$attrSelector:(h=l.$pd)===null||h===void 0||(h=h[e])===null||h===void 0?void 0:h.attrSelector,defaultPT:function(){return Fe._getPT(y==null?void 0:y.pt,void 0,function(v){var k;return v==null||(k=v.directives)===null||k===void 0?void 0:k[e]})},isUnstyled:function(){var v,k;return((v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(k=l._$instances[e])===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled:y==null?void 0:y.unstyled},theme:function(){var v;return(v=l._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fe._getPTValue(l._$instances[e],(v=l._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,k,Je({},_))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Fe._getPTValue(l._$instances[e],v,k,_,!1)},cx:function(){var v,k,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=l._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:Fe._getOptionValue((k=l._$instances[e])===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.classes,_,Je({},O))},sx:function(){var v,k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _?Fe._getOptionValue((v=l._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,k,Je({},O)):void 0}},E),l.$instance=l._$instances[e],(p=(m=l.$instance)[c])===null||p===void 0||p.call(m,l,d,u,f),l["$".concat(e)]=l.$instance,Fe._hook(e,c,l,d,u,f),l.$pd||(l.$pd={}),l.$pd[e]=Je(Je({},(g=l.$pd)===null||g===void 0?void 0:g[e]),{},{name:e,instance:l._$instances[e]})},o=function(c){var l,d,u,f=c._$instances[e],h=f==null?void 0:f.watch,p=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h.config)===null||C===void 0?void 0:C.call(f,E,b)},m=function(y){var C,E=y.newValue,b=y.oldValue;return h==null||(C=h["config.ripple"])===null||C===void 0?void 0:C.call(f,E,b)};f.$watchersCallback={config:p,"config.ripple":m},h==null||(l=h.config)===null||l===void 0||l.call(f,f==null?void 0:f.$primevueConfig),Ra.on("config:change",p),h==null||(d=h["config.ripple"])===null||d===void 0||d.call(f,f==null||(u=f.$primevueConfig)===null||u===void 0?void 0:u.ripple),Ra.on("config:ripple:change",m)},i=function(c){var l=c._$instances[e].$watchersCallback;l&&(Ra.off("config:change",l.config),Ra.off("config:ripple:change",l["config.ripple"]),c._$instances[e].$watchersCallback=void 0)};return{created:function(c,l,d,u){c.$pd||(c.$pd={}),c.$pd[e]={name:e,attrSelector:R9("pd")},r("created",c,l,d,u)},beforeMount:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("beforeMount",c,l,d,u),o(c)},mounted:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("mounted",c,l,d,u)},beforeUpdate:function(c,l,d,u){r("beforeUpdate",c,l,d,u)},updated:function(c,l,d,u){var f;Fe._loadStyles((f=c.$pd[e])===null||f===void 0?void 0:f.instance,l,d),r("updated",c,l,d,u)},beforeUnmount:function(c,l,d,u){var f;i(c),Fe._removeThemeListeners((f=c.$pd[e])===null||f===void 0?void 0:f.instance),r("beforeUnmount",c,l,d,u)},unmounted:function(c,l,d,u){var f;(f=c.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",c,l,d,u)}}},extend:function(){var e=Fe._getMeta.apply(Fe,arguments),n=jm(e,2),r=n[0],o=n[1];return Je({extend:function(){var s=Fe._getMeta.apply(Fe,arguments),c=jm(s,2),l=c[0],d=c[1];return Fe.extend(l,Je(Je(Je({},o),o==null?void 0:o.methods),d))}},Fe._extend(r,o))}},v_=`
|
|
354
354
|
.p-ink {
|
|
355
355
|
display: block;
|
|
356
356
|
position: absolute;
|
|
@@ -370,7 +370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
370
370
|
transform: scale(2.5);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
`,b_={root:"p-ink"},C_=
|
|
373
|
+
`,b_={root:"p-ink"},C_=gt.extend({name:"ripple-directive",style:v_,classes:b_}),E_=Fe.extend({style:C_});function ys(t){"@babel/helpers - typeof";return ys=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},ys(t)}function S_(t){return A_(t)||k_(t)||w_(t)||__()}function __(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
374
374
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w_(t,e){if(t){if(typeof t=="string")return Rd(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)?Rd(t,e):void 0}}function k_(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function A_(t){if(Array.isArray(t))return Rd(t)}function Rd(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 Hm(t,e,n){return(e=T_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T_(t){var e=I_(t,"string");return ys(e)=="symbol"?e:e+""}function I_(t,e){if(ys(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wm=E_.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=this.getInk(e);n||(n=N9("span",Hm(Hm({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root"))),e.appendChild(n),this.$el=n)},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&kd(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!U1(o)&&!Y1(o)){var i=Math.max(qi(r),W1(r));o.style.height=i+"px",o.style.width=i+"px"}var s=H1(r),c=e.pageX-s.left+document.body.scrollTop-Y1(o)/2,l=e.pageY-s.top+document.body.scrollLeft-U1(o)/2;o.style.top=l+"px",o.style.left=c+"px",!this.isUnstyled()&&k9(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&kd(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&kd(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?S_(e.children).find(function(n){return M9(n,"data-pc-name")==="ripple"}):void 0}}}),x_=`
|
|
375
375
|
.p-button {
|
|
376
376
|
display: inline-flex;
|
|
@@ -1021,7 +1021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1021
1021
|
border-color: transparent;
|
|
1022
1022
|
color: dt('button.link.active.color');
|
|
1023
1023
|
}
|
|
1024
|
-
`;function vs(t){"@babel/helpers - typeof";return vs=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},vs(t)}function Fn(t,e,n){return(e=O_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O_(t){var e=N_(t,"string");return vs(e)=="symbol"?e:e+""}function N_(t,e){if(vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var M_={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",Fn(Fn(Fn(Fn(Fn(Fn(Fn(Fn(Fn({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-button-loading":r.loading,"p-button-link":r.link||r.variant==="link"},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text||r.variant==="text"),"p-button-outlined",r.outlined||r.variant==="outlined"),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain),"p-button-fluid",n.hasFluid)]},loadingIcon:"p-button-loading-icon",icon:function(e){var n=e.props;return["p-button-icon",Fn({},"p-button-icon-".concat(n.iconPos),n.label)]},label:"p-button-label"},L_=
|
|
1024
|
+
`;function vs(t){"@babel/helpers - typeof";return vs=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},vs(t)}function Fn(t,e,n){return(e=O_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O_(t){var e=N_(t,"string");return vs(e)=="symbol"?e:e+""}function N_(t,e){if(vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var M_={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",Fn(Fn(Fn(Fn(Fn(Fn(Fn(Fn(Fn({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-button-loading":r.loading,"p-button-link":r.link||r.variant==="link"},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text||r.variant==="text"),"p-button-outlined",r.outlined||r.variant==="outlined"),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain),"p-button-fluid",n.hasFluid)]},loadingIcon:"p-button-loading-icon",icon:function(e){var n=e.props;return["p-button-icon",Fn({},"p-button-icon-".concat(n.iconPos),n.label)]},label:"p-button-label"},L_=gt.extend({name:"button",style:x_,classes:M_}),D_={name:"BaseButton",extends:ps,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:[String,Object],default:null},badge:{type:String,default:null},badgeClass:{type:[String,Object],default:null},badgeSeverity:{type:String,default:"secondary"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1},link:{type:Boolean,default:!1},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},variant:{type:String,default:null},plain:{type:Boolean,default:!1},fluid:{type:Boolean,default:null}},style:L_,provide:function(){return{$pcButton:this,$parentInstance:this}}};function bs(t){"@babel/helpers - typeof";return bs=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},bs(t)}function Qt(t,e,n){return(e=P_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P_(t){var e=B_(t,"string");return bs(e)=="symbol"?e:e+""}function B_(t,e){if(bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Km={name:"Button",extends:D_,inheritAttrs:!1,inject:{$pcFluid:{default:null}},methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon},attrs:function(){return a.mergeProps(this.asAttrs,this.a11yAttrs,this.getPTOptions("root"))},asAttrs:function(){return this.as==="BUTTON"?{type:"button",disabled:this.disabled}:void 0},a11yAttrs:function(){return{"aria-label":this.defaultAriaLabel,"data-pc-name":"button","data-p-disabled":this.disabled,"data-p-severity":this.severity}},hasFluid:function(){return In(this.fluid)?!!this.$pcFluid:this.fluid},dataP:function(){return Xi(Qt(Qt(Qt(Qt(Qt(Qt(Qt(Qt(Qt(Qt({},this.size,this.size),"icon-only",this.hasIcon&&!this.label&&!this.badge),"loading",this.loading),"fluid",this.hasFluid),"rounded",this.rounded),"raised",this.raised),"outlined",this.outlined||this.variant==="outlined"),"text",this.text||this.variant==="text"),"link",this.link||this.variant==="link"),"vertical",(this.iconPos==="top"||this.iconPos==="bottom")&&this.label))},dataIconP:function(){return Xi(Qt(Qt({},this.iconPos,this.iconPos),this.size,this.size))},dataLabelP:function(){return Xi(Qt(Qt({},this.size,this.size),"icon-only",this.hasIcon&&!this.label&&!this.badge))}},components:{SpinnerIcon:_m,Badge:Fm},directives:{ripple:Wm}},$_=["data-p"],R_=["data-p"];function V_(t,e,n,r,o,i){var s=a.resolveComponent("SpinnerIcon"),c=a.resolveComponent("Badge"),l=a.resolveDirective("ripple");return t.asChild?a.renderSlot(t.$slots,"default",{key:1,class:a.normalizeClass(t.cx("root")),a11yAttrs:i.a11yAttrs}):a.withDirectives((a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.as),a.mergeProps({key:0,class:t.cx("root"),"data-p":i.dataP},i.attrs),{default:a.withCtx(function(){return[a.renderSlot(t.$slots,"default",{},function(){return[t.loading?a.renderSlot(t.$slots,"loadingicon",a.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon")]},t.ptm("loadingIcon")),function(){return[t.loadingIcon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):a.renderSlot(t.$slots,"icon",a.mergeProps({key:1,class:[t.cx("icon")]},t.ptm("icon")),function(){return[t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:0,class:[t.cx("icon"),t.icon,t.iconClass],"data-p":i.dataIconP},t.ptm("icon")),null,16,$_)):a.createCommentVNode("",!0)]}),t.label?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:t.cx("label")},t.ptm("label"),{"data-p":i.dataLabelP}),a.toDisplayString(t.label),17,R_)):a.createCommentVNode("",!0),t.badge?(a.openBlock(),a.createBlock(c,{key:3,value:t.badge,class:a.normalizeClass(t.badgeClass),severity:t.badgeSeverity,unstyled:t.unstyled,pt:t.ptm("pcBadge")},null,8,["value","class","severity","unstyled","pt"])):a.createCommentVNode("",!0)]})]}),_:3},16,["class","data-p"])),[[l]])}Km.render=V_;function Cs(t){"@babel/helpers - typeof";return Cs=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},Cs(t)}function F_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U_(r.key),r)}}function z_(t,e,n){return e&&j_(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function U_(t){var e=H_(t,"string");return Cs(e)=="symbol"?e:e+""}function H_(t,e){if(Cs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var W_=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};F_(this,t),this.element=e,this.listener=n}return z_(t,[{key:"bindScrollListener",value:function(){this.scrollableParents=P9(this.element);for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}},{key:"unbindScrollListener",value:function(){if(this.scrollableParents)for(var n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}},{key:"destroy",value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])}(),K_=wd(),Ym={name:"Portal",props:{appendTo:{type:[String,Object],default:"body"},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=Id()},computed:{inline:function(){return this.disabled||this.appendTo==="self"}}};function Y_(t,e,n,r,o,i){return i.inline?a.renderSlot(t.$slots,"default",{key:0}):o.mounted?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:n.appendTo},[a.renderSlot(t.$slots,"default")],8,["to"])):a.createCommentVNode("",!0)}Ym.render=Y_;var G_=`
|
|
1025
1025
|
.p-tieredmenu {
|
|
1026
1026
|
background: dt('tieredmenu.background');
|
|
1027
1027
|
color: dt('tieredmenu.color');
|
|
@@ -1176,8 +1176,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1176
1176
|
.p-tieredmenu-mobile .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
|
|
1177
1177
|
transform: rotate(-90deg);
|
|
1178
1178
|
}
|
|
1179
|
-
`,Q_={submenu:function(e){var n=e.instance,r=e.processedItem;return{display:n.isItemActive(r)?"flex":"none"}}},Z_={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"},J_=
|
|
1180
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(t,e){if(t){if(typeof t=="string")return Vd(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)?Vd(t,e):void 0}}function tw(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nw(t){if(Array.isArray(t))return Vd(t)}function Vd(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 rw(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),X_(e[0]||(e[0]=[a.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)}Gm.render=rw;var ow={name:"BaseTieredMenu",extends:ps,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:J_,provide:function(){return{$pcTieredMenu:this,$parentInstance:this}}},Qm={name:"TieredMenuSub",hostName:"TieredMenu",extends:ps,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?pt(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 Ue(e.items)},onEnter:function(){$9(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:a.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,n,"itemLink")),icon:a.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,n,"itemIcon")),label:a.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,n,"itemLabel")),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,n,"submenuIcon"))}},containerRef:function(e){this.container=e}},components:{AngleRightIcon:Gm},directives:{ripple:Wm}},iw=["tabindex"],sw=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],aw=["onClick","onMouseenter","onMousemove"],lw=["href","target"],cw=["id"],dw=["id"];function uw(t,e,n,r,o,i){var s=a.resolveComponent("AngleRightIcon"),c=a.resolveComponent("TieredMenuSub",!0),l=a.resolveDirective("ripple");return a.openBlock(),a.createBlock(a.Transition,a.mergeProps({name:"p-tieredmenu",onEnter:i.onEnter},t.ptm("menu.transition")),{default:a.withCtx(function(){return[n.level===0||n.visible?(a.openBlock(),a.createElementBlock("ul",{key:0,ref:i.containerRef,tabindex:n.tabindex},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,function(d,u){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getItemKey(d)},[i.isItemVisible(d)&&!i.getItemProp(d,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:i.getItemId(d),style:i.getItemProp(d,"style"),class:[t.cx("item",{processedItem:d}),i.getItemProp(d,"class")],role:"menuitem","aria-label":i.getItemLabel(d),"aria-disabled":i.isItemDisabled(d)||void 0,"aria-expanded":i.isItemGroup(d)?i.isItemActive(d):void 0,"aria-haspopup":i.isItemGroup(d)&&!i.getItemProp(d,"to")?"menu":void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u)},{ref_for:!0},i.getPTOptions(d,u,"item"),{"data-p-active":i.isItemActive(d),"data-p-focused":i.isItemFocused(d),"data-p-disabled":i.isItemDisabled(d)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,d)},onMouseenter:function(h){return i.onItemMouseEnter(h,d)},onMousemove:function(h){return i.onItemMouseMove(h,d)}},{ref_for:!0},i.getPTOptions(d,u,"itemContent")),[n.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.item),{key:1,item:d.item,hasSubmenu:i.getItemProp(d,"items"),label:i.getItemLabel(d),props:i.getMenuItemProps(d,u)},null,8,["item","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(d,"url"),class:t.cx("itemLink"),target:i.getItemProp(d,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions(d,u,"itemLink")),[n.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.itemicon),{key:0,item:d.item,class:a.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(d,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:[t.cx("itemIcon"),i.getItemProp(d,"icon")]},{ref_for:!0},i.getPTOptions(d,u,"itemIcon")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({id:i.getItemLabelId(d),class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions(d,u,"itemLabel")),a.toDisplayString(i.getItemLabel(d)),17,cw),i.getItemProp(d,"items")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[n.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.submenuicon),a.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(d)},{ref_for:!0},i.getPTOptions(d,u,"submenuIcon")),null,16,["class","active"])):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions(d,u,"submenuIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0)],16,lw)),[[l]])],16,aw),i.isItemVisible(d)&&i.isItemGroup(d)?(a.openBlock(),a.createBlock(c,a.mergeProps({key:0,id:i.getItemId(d)+"_list",class:t.cx("submenu"),style:t.sx("submenu",!0,{processedItem:d}),"aria-labelledby":i.getItemLabelId(d),role:"menu",menuId:n.menuId,focusedItemId:n.focusedItemId,items:d.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:i.isItemActive(d)&&i.isItemGroup(d),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"])):a.createCommentVNode("",!0)],16,sw)):a.createCommentVNode("",!0),i.isItemVisible(d)&&i.getItemProp(d,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:i.getItemId(d),style:i.getItemProp(d,"style"),class:[t.cx("separator"),i.getItemProp(d,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,dw)):a.createCommentVNode("",!0)],64)}),128))],8,iw)):a.createCommentVNode("",!0)]}),_:1},16,["onEnter"])}Qm.render=uw;var Zm={name:"TieredMenu",extends:ow,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||(Ue(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&&xd.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,n){return e?pt(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 Ue(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&&Ue(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&&yo(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&&yo(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&&S9(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,n){var r=e.processedItem,o=e.isFocus;if(!In(r)){var i=r.index,s=r.key,c=r.level,l=r.parentKey,d=r.items,u=Ue(d),f=this.activeItemPath.filter(function(h){return h.parentKey!==l&&h.parentKey!==s});u&&(f.push(r),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:c,parentKey:l},u&&(this.dirty=!0),o&&yo(this.menubar),!(n==="hover"&&this.queryMatches)&&(this.activeItemPath=f)}},onOverlayClick:function(e){K_.emit("overlay-click",{originalEvent:e,target:this.target})},onItemClick:function(e){var n=e.originalEvent,r=e.processedItem,o=this.isProccessedItemGroup(r),i=In(r.parent),s=this.isSelected(r);if(s){var c=r.index,l=r.key,d=r.level,u=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(h){return l!==h.key&&l.startsWith(h.key)}),this.focusedItemInfo={index:c,level:d,parentKey:u},this.dirty=!i,yo(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),yo(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=In(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=qo(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&qo(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&&yo(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&&xd.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),V1(e,{position:"absolute",top:"0"}),this.alignOverlay(),yo(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&&xd.clear(e)},alignOverlay:function(){O9(this.container,this.target);var e=qi(this.target);e>qi(this.container)&&(this.container.style.minWidth=qi(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 W_(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){B9()||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 P1(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?P1(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=qo(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,l){var d=(i!==""?i+"_":"")+l,u={item:c,index:l,level:r,key:d,parent:o,parentKey:i};u.items=n.createProcessedItems(c.items,r+1,u,d),s.push(u)}),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(Ue(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{TieredMenuSub:Qm,Portal:Ym}},fw=["id"];function hw(t,e,n,r,o,i){var s=a.resolveComponent("TieredMenuSub"),c=a.resolveComponent("Portal");return a.openBlock(),a.createBlock(c,{appendTo:t.appendTo,disabled:!t.popup},{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onEnter,onAfterEnter:i.onAfterEnter,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave},t.ptm("transition")),{default:a.withCtx(function(){return[o.visible?(a.openBlock(),a.createElementBlock("div",a.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?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[a.renderSlot(t.$slots,"start")],16)):a.createCommentVNode("",!0),a.createVNode(s,a.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?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[a.renderSlot(t.$slots,"end")],16)):a.createCommentVNode("",!0)],16,fw)):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}Zm.render=hw;var pw=`
|
|
1179
|
+
`,Q_={submenu:function(e){var n=e.instance,r=e.processedItem;return{display:n.isItemActive(r)?"flex":"none"}}},Z_={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"},J_=gt.extend({name:"tieredmenu",style:G_,classes:Z_,inlineStyles:Q_}),Gm={name:"AngleRightIcon",extends:Ld};function X_(t){return nw(t)||tw(t)||ew(t)||q_()}function q_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1180
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ew(t,e){if(t){if(typeof t=="string")return Vd(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)?Vd(t,e):void 0}}function tw(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nw(t){if(Array.isArray(t))return Vd(t)}function Vd(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 rw(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),X_(e[0]||(e[0]=[a.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)}Gm.render=rw;var ow={name:"BaseTieredMenu",extends:ps,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:J_,provide:function(){return{$pcTieredMenu:this,$parentInstance:this}}},Qm={name:"TieredMenuSub",hostName:"TieredMenu",extends:ps,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?mt(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 Ue(e.items)},onEnter:function(){$9(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:a.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,n,"itemLink")),icon:a.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,n,"itemIcon")),label:a.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,n,"itemLabel")),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,n,"submenuIcon"))}},containerRef:function(e){this.container=e}},components:{AngleRightIcon:Gm},directives:{ripple:Wm}},iw=["tabindex"],sw=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-level","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],aw=["onClick","onMouseenter","onMousemove"],lw=["href","target"],cw=["id"],dw=["id"];function uw(t,e,n,r,o,i){var s=a.resolveComponent("AngleRightIcon"),c=a.resolveComponent("TieredMenuSub",!0),l=a.resolveDirective("ripple");return a.openBlock(),a.createBlock(a.Transition,a.mergeProps({name:"p-tieredmenu",onEnter:i.onEnter},t.ptm("menu.transition")),{default:a.withCtx(function(){return[n.level===0||n.visible?(a.openBlock(),a.createElementBlock("ul",{key:0,ref:i.containerRef,tabindex:n.tabindex},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,function(d,u){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getItemKey(d)},[i.isItemVisible(d)&&!i.getItemProp(d,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:i.getItemId(d),style:i.getItemProp(d,"style"),class:[t.cx("item",{processedItem:d}),i.getItemProp(d,"class")],role:"menuitem","aria-label":i.getItemLabel(d),"aria-disabled":i.isItemDisabled(d)||void 0,"aria-expanded":i.isItemGroup(d)?i.isItemActive(d):void 0,"aria-haspopup":i.isItemGroup(d)&&!i.getItemProp(d,"to")?"menu":void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u)},{ref_for:!0},i.getPTOptions(d,u,"item"),{"data-p-active":i.isItemActive(d),"data-p-focused":i.isItemFocused(d),"data-p-disabled":i.isItemDisabled(d)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,d)},onMouseenter:function(h){return i.onItemMouseEnter(h,d)},onMousemove:function(h){return i.onItemMouseMove(h,d)}},{ref_for:!0},i.getPTOptions(d,u,"itemContent")),[n.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.item),{key:1,item:d.item,hasSubmenu:i.getItemProp(d,"items"),label:i.getItemLabel(d),props:i.getMenuItemProps(d,u)},null,8,["item","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(d,"url"),class:t.cx("itemLink"),target:i.getItemProp(d,"target"),tabindex:"-1"},{ref_for:!0},i.getPTOptions(d,u,"itemLink")),[n.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.itemicon),{key:0,item:d.item,class:a.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(d,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:[t.cx("itemIcon"),i.getItemProp(d,"icon")]},{ref_for:!0},i.getPTOptions(d,u,"itemIcon")),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({id:i.getItemLabelId(d),class:t.cx("itemLabel")},{ref_for:!0},i.getPTOptions(d,u,"itemLabel")),a.toDisplayString(i.getItemLabel(d)),17,cw),i.getItemProp(d,"items")?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[n.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.submenuicon),a.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(d)},{ref_for:!0},i.getPTOptions(d,u,"submenuIcon")),null,16,["class","active"])):(a.openBlock(),a.createBlock(s,a.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},i.getPTOptions(d,u,"submenuIcon")),null,16,["class"]))],64)):a.createCommentVNode("",!0)],16,lw)),[[l]])],16,aw),i.isItemVisible(d)&&i.isItemGroup(d)?(a.openBlock(),a.createBlock(c,a.mergeProps({key:0,id:i.getItemId(d)+"_list",class:t.cx("submenu"),style:t.sx("submenu",!0,{processedItem:d}),"aria-labelledby":i.getItemLabelId(d),role:"menu",menuId:n.menuId,focusedItemId:n.focusedItemId,items:d.items,templates:n.templates,activeItemPath:n.activeItemPath,level:n.level+1,visible:i.isItemActive(d)&&i.isItemGroup(d),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"])):a.createCommentVNode("",!0)],16,sw)):a.createCommentVNode("",!0),i.isItemVisible(d)&&i.getItemProp(d,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,id:i.getItemId(d),style:i.getItemProp(d,"style"),class:[t.cx("separator"),i.getItemProp(d,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,dw)):a.createCommentVNode("",!0)],64)}),128))],8,iw)):a.createCommentVNode("",!0)]}),_:1},16,["onEnter"])}Qm.render=uw;var Zm={name:"TieredMenu",extends:ow,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||(Ue(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&&xd.clear(this.container),this.target=null,this.container=null},methods:{getItemProp:function(e,n){return e?mt(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 Ue(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&&Ue(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&&yo(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&&yo(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&&S9(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,n){var r=e.processedItem,o=e.isFocus;if(!In(r)){var i=r.index,s=r.key,c=r.level,l=r.parentKey,d=r.items,u=Ue(d),f=this.activeItemPath.filter(function(h){return h.parentKey!==l&&h.parentKey!==s});u&&(f.push(r),this.submenuVisible=!0),this.focusedItemInfo={index:i,level:c,parentKey:l},u&&(this.dirty=!0),o&&yo(this.menubar),!(n==="hover"&&this.queryMatches)&&(this.activeItemPath=f)}},onOverlayClick:function(e){K_.emit("overlay-click",{originalEvent:e,target:this.target})},onItemClick:function(e){var n=e.originalEvent,r=e.processedItem,o=this.isProccessedItemGroup(r),i=In(r.parent),s=this.isSelected(r);if(s){var c=r.index,l=r.key,d=r.level,u=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(h){return l!==h.key&&l.startsWith(h.key)}),this.focusedItemInfo={index:c,level:d,parentKey:u},this.dirty=!i,yo(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),yo(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=In(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=qo(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&qo(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&&yo(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&&xd.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),V1(e,{position:"absolute",top:"0"}),this.alignOverlay(),yo(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&&xd.clear(e)},alignOverlay:function(){O9(this.container,this.target);var e=qi(this.target);e>qi(this.container)&&(this.container.style.minWidth=qi(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 W_(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){B9()||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 P1(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?P1(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=qo(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,l){var d=(i!==""?i+"_":"")+l,u={item:c,index:l,level:r,key:d,parent:o,parentKey:i};u.items=n.createProcessedItems(c.items,r+1,u,d),s.push(u)}),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(Ue(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{TieredMenuSub:Qm,Portal:Ym}},fw=["id"];function hw(t,e,n,r,o,i){var s=a.resolveComponent("TieredMenuSub"),c=a.resolveComponent("Portal");return a.openBlock(),a.createBlock(c,{appendTo:t.appendTo,disabled:!t.popup},{default:a.withCtx(function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-connected-overlay",onEnter:i.onEnter,onAfterEnter:i.onAfterEnter,onLeave:i.onLeave,onAfterLeave:i.onAfterLeave},t.ptm("transition")),{default:a.withCtx(function(){return[o.visible?(a.openBlock(),a.createElementBlock("div",a.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?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[a.renderSlot(t.$slots,"start")],16)):a.createCommentVNode("",!0),a.createVNode(s,a.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?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[a.renderSlot(t.$slots,"end")],16)):a.createCommentVNode("",!0)],16,fw)):a.createCommentVNode("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}Zm.render=hw;var pw=`
|
|
1181
1181
|
.p-splitbutton {
|
|
1182
1182
|
display: inline-flex;
|
|
1183
1183
|
position: relative;
|
|
@@ -1226,25 +1226,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1226
1226
|
.p-splitbutton-raised {
|
|
1227
1227
|
box-shadow: dt('splitbutton.raised.shadow');
|
|
1228
1228
|
}
|
|
1229
|
-
`,mw={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"},gw=mt.extend({name:"splitbutton",style:pw,classes:mw}),yw={name:"BaseSplitButton",extends:ps,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:gw,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Jm={name:"SplitButton",extends:yw,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 In(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Km,PVSMenu:Zm,ChevronDownIcon:Sm}},vw=["data-p-severity"];function bw(t,e,n,r,o,i){var s=a.resolveComponent("PVSButton"),c=a.resolveComponent("PVSMenu");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[a.createVNode(s,a.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}),a.createSlots({default:a.withCtx(function(){return[a.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"icon",{class:a.normalizeClass(l.class)},function(){return[a.createElementVNode("span",a.mergeProps({class:[t.icon,l.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"]),a.createVNode(s,a.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":t.$id+"_overlay",onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:a.withCtx(function(l){return[a.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:a.normalizeClass(l.class)},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),a.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,l.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"]),a.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")},a.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"menuitemicon",{item:l.item,class:a.normalizeClass(l.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"item",{item:l.item,hasSubmenu:l.hasSubmenu,label:l.label,props:l.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,vw)}Jm.render=bw;const sz="",Cw=["src"],Ew={class:"menu-item"},Sw=["src"],Xm=Ce({__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>n.contentLibraryProviders.map(u=>({label:u.label,image:u.img,value:u.value,command:()=>e("content-library",u.value)}))),i=a.computed(()=>{let u=o.value;return u.length!==0&&n.isExternalOnly&&(u=u.slice(1)),u}),s=a.computed(()=>{const u=o.value;return n.isExternalOnly&&u.length>0?u[0].label:r("contentLibrarySplitButton.messageTemplatesTitle")}),c=a.computed(()=>{const u=o.value;return n.isExternalOnly&&u.length>0}),l=a.computed(()=>{const u=o.value;return u.length>0?u[0].image:""}),d=()=>{const u=o.value;let f="message-template";n.isExternalOnly&&u.length>0&&(f=u[0].value),e("content-library",f)};return(u,f)=>(a.openBlock(),a.createBlock(a.unref(Jm),{model:i.value,outlined:"",severity:"secondary",onClick:d},{default:a.withCtx(()=>[c.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:l.value,alt:""},null,8,Cw)):(a.openBlock(),a.createBlock(Vc,{key:1})),a.createElementVNode("span",null,a.toDisplayString(s.value),1)]),item:a.withCtx(({item:h})=>[a.createElementVNode("div",Ew,[a.createElementVNode("img",{src:h.image,alt:"",class:"icon-image"},null,8,Sw),a.createElementVNode("span",null,a.toDisplayString(h.label),1)])]),_:1},8,["model"]))}},[["__scopeId","data-v-cef09491"]]),_w={class:"invalid-feedback bd-invalid-feedback"},Va=a.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(a.openBlock(),a.createElementBlock("div",_w,[e.state?(a.openBlock(),a.createBlock(a.unref(Ho),{key:0})):(a.openBlock(),a.createBlock(a.unref(pa),{key:1})),a.createTextVNode(" "+a.toDisplayString(e.text),1)]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var ww=Object.defineProperty,kw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Es=(t,e,n)=>(kw(t,typeof e!="symbol"?e+"":e,n),n);const qm={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class e0{constructor(e={}){Es(this,"opts",{}),Es(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...qm,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=qm;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=n.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(n==null)return e;const o=`value=${e},mask=${n},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],l=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<i.length&&C<e.length,p=b=>!this.isReversed()&&b<=f||this.isReversed()&&b>=f;let m,g=-1,y=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,E=!1;for(;h();){const b=i.charAt(y),v=l[b],k=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(C)):e.charAt(C);if(!s.includes(y)&&v!=null?(k.match(v.pattern)!=null?(c[u](k),v.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-d),f===g&&(y-=d)):v.multiple&&(E=!0,y-=d),y+=d):v.multiple?E&&(y+=d,C-=d,E=!1):k===m?m=void 0:v.optional&&(y+=d,C-=d),C+=d):(r&&!this.isEager()&&c[u](b),k===b&&!this.isEager()?C+=d:m=b,this.isEager()||(y+=d)),this.isEager())for(;p(y)&&(l[i.charAt(y)]==null||s.includes(y));)r?c[u](i.charAt(y)):i.charAt(y)===e.charAt(C)&&(C+=d),y+=d}return this.memo.set(o,c.join("")),this.memo.get(o)}}const t0=t=>JSON.parse(t.replaceAll("'",'"')),n0=(t,e={})=>{const n={...e};return t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Aw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Fd(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Fd(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Fd(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Tw(t.dataset.maskaTokens)),n},Fd=t=>t!==""?!!JSON.parse(t):!0,Aw=t=>t.startsWith("[")&&t.endsWith("]")?t0(t):t,Tw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return t0(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class Iw{constructor(e,n={}){Es(this,"items",new Map),Es(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),Es(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,c=o.selectionStart,l=o.selectionEnd;let d=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?d=r.data:f!==i.unmasked(u)&&(d=f)}if(this.setMaskedValue(o,d),"inputType"in r&&(r.inputType.startsWith("delete")||c!=null&&c<s.length))try{o.setSelectionRange(c,l)}catch{}}),this.options=n,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(n)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(n))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,n){const r=this.items.get(e),o=new e0(n0(e,this.getMaskOpts(n)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const n=e.dataset.maskaValue;return n==null&&e.value!==""||n!=null&&n!==e.value}getMaskOpts(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}init(e,n){for(const r of e){const o=new e0(n0(r,n));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,n){const r=this.items.get(e);this.options.preProcess!=null&&(n=this.options.preProcess(n));const o=r.masked(n),i=r.unmasked(r.isEager()?o:n),s=r.completed(n),c={masked:o,unmasked:i,completed:s};n=o,this.options.postProcess!=null&&(n=this.options.postProcess(n)),e.value=n,e.dataset.maskaValue=n,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(l=>l(c)):this.options.onMaska(c)),e.dispatchEvent(new CustomEvent("maska",{detail:c})),e.dispatchEvent(new CustomEvent("input",{detail:c}))}}const jd=new WeakMap,xw=t=>{setTimeout(()=>{var e;((e=jd.get(t))==null?void 0:e.needUpdateValue(t))===!0&&t.dispatchEvent(new CustomEvent("input"))})},Ow=(t,e)=>{const n=t instanceof HTMLInputElement?t:t.querySelector("input"),r={...e.arg};if(n==null||(n==null?void 0:n.type)==="file")return;xw(n);const o=jd.get(n);if(o!=null){if(!o.needUpdateOptions(n,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=c=>{i.masked=c.masked,i.unmasked=c.unmasked,i.completed=c.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}jd.set(n,new Iw(n,r))},Nw=["value","type"],Lr=a.defineComponent({__name:"BDFormInput",props:{modelValue:{default:""},formGroupClass:{default:void 0},type:{default:"text"},label:{default:void 0},labelClass:{default:void 0},formFieldClass:{default:void 0},inputClass:{default:void 0},placeholder:{default:void 0},state:{type:[Boolean,null],default:null},readonly:{type:[Boolean,null],default:null},disabled:{type:[Boolean,null],default:null},autofocus:{type:[Boolean,null],default:null},size:{default:Mt.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=co(n,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,c=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():r.value}`,l=`validationFeedback${n.label?n.label.replace(/ /g,""):r.value}`,d=a.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),u=a.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),f=a.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?l:null,"data-maska":n.mask})),h=nC(p=>{o.value=p.target.value},n.delayTimeMs);return(p,m)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[a.renderSlot(p.$slots,"label",{},()=>[p.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:c,id:i,class:a.normalizeClass(["form-label",p.labelClass])},a.toDisplayString(p.label),3)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:a.normalizeClass(p.formFieldClass)},[a.withDirectives(a.createElementVNode("input",a.mergeProps({value:p.modelValue,type:p.type,id:c,class:["form-control",d.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>a.unref(h)&&a.unref(h)(...g)),onClick:m[1]||(m[1]=g=>p.$emit("click")),onBlur:m[2]||(m[2]=g=>p.$emit("blur")),onKeydown:m[3]||(m[3]=a.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,Nw),[[a.unref(Ow)]]),a.renderSlot(p.$slots,"default")],2),a.createVNode(Va,{text:p.invalidFeedbackText,class:a.normalizeClass(u.value),state:p.state,id:l},null,8,["text","class","state"])],2))}}),Mw={class:"input-group bd-input-group"},Lw=["for"],Ss=a.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=t,n=a.useAttrs();return(r,o)=>(a.openBlock(),a.createElementBlock("fieldset",Mw,[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},a.toDisplayString(e.label),9,Lw)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(n).class)},[a.renderSlot(r.$slots,"default")],2)]))}}),Dw={key:0},Pw={key:1},r0=a.defineComponent({__name:"BDBadge",props:{variant:{default:ya.PRIMARY}},setup(t){const e=t,n=a.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(a.openBlock(),a.createElementBlock("span",{role:"status",class:a.normalizeClass(n.value)},[r.variant==="danger"?(a.openBlock(),a.createElementBlock("span",Dw,[a.createVNode(a.unref(wr))])):a.createCommentVNode("",!0),r.variant==="success"?(a.openBlock(),a.createElementBlock("span",Pw,[a.createVNode(a.unref(Ho))])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default")],2))}}),Bw=["onSubmit","onReset"],o0=a.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){function n(){e("submit")}function r(){e("reset")}return(o,i)=>(a.openBlock(),a.createElementBlock("form",{onSubmit:a.withModifiers(n,["prevent"]),onReset:a.withModifiers(r,["prevent"])},[a.renderSlot(o.$slots,"default")],40,Bw))}}),$w={"aria-label":"Page navigation",class:"bd-pagination"},Rw={class:"page-item"},Vw=["data-page"],Fw=["data-page"],jw={class:"page-item"},zw=["data-page"],zd=a.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=co(n,"modelValue",e),o=a.ref(Math.ceil(n.totalRows/n.rowsPerPage)),i=a.ref([]);a.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{o.value=Math.ceil(n.totalRows/n.rowsPerPage),i.value=u(r.value)}),a.onMounted(()=>{i.value=u(r.value)});const s=a.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,i.value=u(p)),e("click",p)},l=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,d=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,u=f=>{const h=[],m=l(f,7,o.value),g=o.value>7&&f>4,y=o.value>7&&f<o.value-3,C=g&&y,E=d(f,7,o.value);for(let b=1;b<=m;b++)h.push(b);if(g&&h.push("..."),C)for(let b=f-1;b<=f+1;b++)h.push(b);y&&h.push("...");for(let b=1;b<=E;b++)h.push(o.value-E+b);return h};return(f,h)=>(a.openBlock(),a.createElementBlock("div",$w,[a.createElementVNode("ul",{class:a.normalizeClass(["pagination",s.value])},[a.withDirectives(a.createElementVNode("li",Rw,[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:c,"data-page":a.unref(r)-1},[a.createVNode(a.unref($c))],8,Vw)],512),[[a.vShow,a.unref(r)>1]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,p=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(["page-item",{active:a.unref(r)===p,disabled:typeof p=="string"}]),key:p},[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:c,"data-page":p},a.toDisplayString(p),9,Fw)],2))),128)),a.withDirectives(a.createElementVNode("li",jw,[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:c,"data-page":a.unref(r)+1},[a.createVNode(a.unref(Rc))],8,zw)],512),[[a.vShow,a.unref(r)<o.value]])],2)]))}}),Uw=["disabled"],Hw=["label"],Ww=["value"],Kw=["value"],i0=a.defineComponent({__name:"BDFormSelect",props:{size:{default:Mt.MD},disabled:{type:Boolean},autofocus:{type:Boolean,default:!1},options:{default:void 0},modelValue:{default:""},state:{type:[Boolean,null],default:null}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,r=co(n,"modelValue",e),o=a.ref(null),{focused:i}=iC(o,{initialValue:n.autofocus}),s=a.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));a.watch(()=>n.autofocus,u=>{u&&(i.value=!0)});const c=u=>{r.value=u.target.value;let f=d(u.target.value);e("input",f)},l=u=>{let f=d(u.target.value);e("change",f)},d=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>a.withDirectives((a.openBlock(),a.createElementBlock("select",{class:a.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>a.isRef(r)?r.value=h:null),disabled:n.disabled,ref_key:"input",ref:o,onInput:c,onChange:l},[a.renderSlot(u.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(n.options,h=>(a.openBlock(),a.createElementBlock("optgroup",{label:h.label},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.options,p=>(a.openBlock(),a.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},a.toDisplayString(p.text),9,Ww))),128))],8,Hw))),256)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(n.options,h=>(a.openBlock(),a.createElementBlock("option",{value:h.value,key:h.value},a.toDisplayString(h.text),9,Kw))),128))],42,Uw)),[[a.vModelSelect,a.unref(r)]])}}),Yw=["value","true-value","false-value","data-checked"],Dr=a.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=co(n,"modelValue",e),i=`form-check-input-${r.value}`,s=a.computed(()=>["form-check","bd-form-checkbox"]),c=a.computed(()=>({"form-check-input":!0,"is-invalid":n.state===!1})),l=d=>e("change",d.target.value);return(d,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(s.value)},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>a.isRef(o)?o.value=f:null),id:i,class:a.normalizeClass(c.value),type:"checkbox",value:d.value,"true-value":d.value,"false-value":d.uncheckedValue,"data-checked":a.unref(o)===d.value,onChange:l},null,42,Yw),[[a.vModelCheckbox,a.unref(o)]]),a.createElementVNode("label",{class:"form-check-label",for:i},[a.renderSlot(d.$slots,"default")]),a.renderSlot(d.$slots,"last")],2))}}),Gw={key:0,class:"bd-article__body"},Qw={key:1},s0=a.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=o=>e("click",{event:o,identifier:n.identifier});return(o,i)=>(a.openBlock(),a.createElementBlock("article",{class:"bd-article",onClick:r},[a.createElementVNode("header",null,[a.renderSlot(o.$slots,"header",{},()=>[a.createElementVNode("h5",null,a.toDisplayString(n.title),1)])]),n.hideBody?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Gw,[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])),n.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Qw,[a.renderSlot(o.$slots,"footer")]))]))}}),ti={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},Zw=["id"],Jw={class:"toast-header"},Xw=a.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),qw={class:"toast-body"},Ud=a.defineComponent({__name:"BDToast",props:{id:{},variant:{default:ti.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=a.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=a.computed(()=>e.variant!==ti.SUCCESS);return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[a.createElementVNode("div",Jw,[r.value?(a.openBlock(),a.createBlock(a.unref(wr),{key:0})):(a.openBlock(),a.createBlock(a.unref(Ho),{key:1})),a.createElementVNode("h5",null,a.toDisplayString(e.title),1),Xw]),a.createElementVNode("div",qw,[a.createElementVNode("span",null,a.toDisplayString(e.text),1)])],10,Zw))}}),Be="",Fa=t=>typeof t=="string"||t instanceof String,ek={class:"bd-pill"},tk=["src"],nk={class:"bd-pill__description"},rk=["href"],ok=["id","textContent","title"],ik=["id","textContent","title"],ja=a.defineComponent({__name:"BDPill",props:{imgSrc:{default:Be},uri:{default:Be},uriDisplayName:{default:Be},title:{default:Be},subtitle:{default:Be},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=a.computed(()=>n.uri),i=a.computed(()=>n.uriDisplayName!==Be?n.uriDisplayName:n.uri),s=a.computed(()=>n.imgSrc),c=a.computed(()=>n.title),l=a.computed(()=>n.subtitle),d=a.computed(()=>`bd-pill-title-${r.value}`),u=a.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(a.openBlock(),a.createElementBlock("div",ek,[a.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,tk),a.createElementVNode("div",nk,[a.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[a.createVNode(a.unref(ma),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),a.createTextVNode(" "+a.toDisplayString(i.value),1)],8,rk),a.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:a.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,ok),a.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:a.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,ik)])]))}});function sk(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 ak(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(u){try{d(r.next(u))}catch(f){s(f)}}function l(u){try{d(r.throw(u))}catch(f){s(f)}}function d(u){u.done?i(u.value):o(u.value).then(c,l)}d((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const lk=t=>Array.isArray(t)&&t.length>0,ck=t=>Object.keys(t).map(e=>t[e]),Hd=t=>Array.isArray(t)&&t.length>0,a0=t=>!t||Array.isArray(t)&&!t.length,Wd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=sk(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?a.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[a.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const l=a.h("div",{class:"bd-user-information__header"},c),d=a.h("small",null,ck(o).filter(f=>f).join(" • ")),u=a.h("div",{class:"bd-user-information__detail"},[l,d]);return a.h("div",{class:"bd-user-information"},[i,u])}},l0={date:"",displayTime:!0,format:"numeric"};var ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",l="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var F=["th","st","nd","rd"],W=K%100;return"["+K+(F[(W-20)%10]||F[W]||F[0])+"]"}},b=function(K,F,W){var Q=String(K);return!Q||Q.length>=F?K:""+Array(F+1-Q.length).join(W)+K},v={s:b,z:function(K){var F=-K.utcOffset(),W=Math.abs(F),Q=Math.floor(W/60),U=W%60;return(F<=0?"+":"-")+b(Q,2,"0")+":"+b(U,2,"0")},m:function K(F,W){if(F.date()<W.date())return-K(W,F);var Q=12*(W.year()-F.year())+(W.month()-F.month()),U=F.clone().add(Q,f),ee=W-U<0,ne=F.clone().add(Q+(ee?-1:1),f);return+(-(Q+(W-U)/(ee?U-ne:ne-U))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:u,d,D:m,h:l,m:c,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},k="en",_={};_[k]=E;var O="$isDayjsObject",L=function(K){return K instanceof P||!(!K||!K[O])},N=function K(F,W,Q){var U;if(!F)return k;if(typeof F=="string"){var ee=F.toLowerCase();_[ee]&&(U=ee),W&&(_[ee]=W,U=ee);var ne=F.split("-");if(!U&&ne.length>1)return K(ne[0])}else{var ae=F.name;_[ae]=F,U=ae}return!Q&&U&&(k=U),U||!Q&&k},z=function(K,F){if(L(K))return K.clone();var W=typeof F=="object"?F:{};return W.date=K,W.args=arguments,new P(W)},V=v;V.l=N,V.i=L,V.w=function(K,F){return z(K,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function K(W){this.$L=N(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var F=K.prototype;return F.parse=function(W){this.$d=function(Q){var U=Q.date,ee=Q.utc;if(U===null)return new Date(NaN);if(V.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ne=U.match(y);if(ne){var ae=ne[2]-1||0,ue=(ne[7]||"0").substring(0,3);return ee?new Date(Date.UTC(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)):new Date(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)}}return new Date(U)}(W),this.init()},F.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},F.$utils=function(){return V},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(W,Q){var U=z(W);return this.startOf(Q)<=U&&U<=this.endOf(Q)},F.isAfter=function(W,Q){return z(W)<this.startOf(Q)},F.isBefore=function(W,Q){return this.endOf(Q)<z(W)},F.$g=function(W,Q,U){return V.u(W)?this[Q]:this.set(U,W)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(W,Q){var U=this,ee=!!V.u(Q)||Q,ne=V.p(W),ae=function($,x){var B=V.w(U.$u?Date.UTC(U.$y,x,$):new Date(U.$y,x,$),U);return ee?B:B.endOf(d)},ue=function($,x){return V.w(U.toDate()[$].apply(U.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(x)),U)},me=this.$W,Ee=this.$M,ke=this.$D,Oe="set"+(this.$u?"UTC":"");switch(ne){case p:return ee?ae(1,0):ae(31,11);case f:return ee?ae(1,Ee):ae(0,Ee+1);case u:var Se=this.$locale().weekStart||0,D=(me<Se?me+7:me)-Se;return ae(ee?ke-D:ke+(6-D),Ee);case d:case m:return ue(Oe+"Hours",0);case l:return ue(Oe+"Minutes",1);case c:return ue(Oe+"Seconds",2);case s:return ue(Oe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(W){return this.startOf(W,!1)},F.$set=function(W,Q){var U,ee=V.p(W),ne="set"+(this.$u?"UTC":""),ae=(U={},U[d]=ne+"Date",U[m]=ne+"Date",U[f]=ne+"Month",U[p]=ne+"FullYear",U[l]=ne+"Hours",U[c]=ne+"Minutes",U[s]=ne+"Seconds",U[i]=ne+"Milliseconds",U)[ee],ue=ee===d?this.$D+(Q-this.$W):Q;if(ee===f||ee===p){var me=this.clone().set(m,1);me.$d[ae](ue),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](ue);return this.init(),this},F.set=function(W,Q){return this.clone().$set(W,Q)},F.get=function(W){return this[V.p(W)]()},F.add=function(W,Q){var U,ee=this;W=Number(W);var ne=V.p(Q),ae=function(Ee){var ke=z(ee);return V.w(ke.date(ke.date()+Math.round(Ee*W)),ee)};if(ne===f)return this.set(f,this.$M+W);if(ne===p)return this.set(p,this.$y+W);if(ne===d)return ae(1);if(ne===u)return ae(7);var ue=(U={},U[c]=r,U[l]=o,U[s]=n,U)[ne]||1,me=this.$d.getTime()+W*ue;return V.w(me,this)},F.subtract=function(W,Q){return this.add(-1*W,Q)},F.format=function(W){var Q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var ee=W||"YYYY-MM-DDTHH:mm:ssZ",ne=V.z(this),ae=this.$H,ue=this.$m,me=this.$M,Ee=U.weekdays,ke=U.months,Oe=U.meridiem,Se=function(x,B,S,w){return x&&(x[B]||x(Q,ee))||S[B].slice(0,w)},D=function(x){return V.s(ae%12||12,x,"0")},$=Oe||function(x,B,S){var w=x<12?"AM":"PM";return S?w.toLowerCase():w};return ee.replace(C,function(x,B){return B||function(S){switch(S){case"YY":return String(Q.$y).slice(-2);case"YYYY":return V.s(Q.$y,4,"0");case"M":return me+1;case"MM":return V.s(me+1,2,"0");case"MMM":return Se(U.monthsShort,me,ke,3);case"MMMM":return Se(ke,me);case"D":return Q.$D;case"DD":return V.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return Se(U.weekdaysMin,Q.$W,Ee,2);case"ddd":return Se(U.weekdaysShort,Q.$W,Ee,3);case"dddd":return Ee[Q.$W];case"H":return String(ae);case"HH":return V.s(ae,2,"0");case"h":return D(1);case"hh":return D(2);case"a":return $(ae,ue,!0);case"A":return $(ae,ue,!1);case"m":return String(ue);case"mm":return V.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return V.s(Q.$s,2,"0");case"SSS":return V.s(Q.$ms,3,"0");case"Z":return ne}return null}(x)||ne.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(W,Q,U){var ee,ne=this,ae=V.p(Q),ue=z(W),me=(ue.utcOffset()-this.utcOffset())*r,Ee=this-ue,ke=function(){return V.m(ne,ue)};switch(ae){case p:ee=ke()/12;break;case f:ee=ke();break;case h:ee=ke()/3;break;case u:ee=(Ee-me)/6048e5;break;case d:ee=(Ee-me)/864e5;break;case l:ee=Ee/o;break;case c:ee=Ee/r;break;case s:ee=Ee/n;break;default:ee=Ee}return U?ee:V.a(ee)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return _[this.$L]},F.locale=function(W,Q){if(!W)return this.$L;var U=this.clone(),ee=N(W,Q,!0);return ee&&(U.$L=ee),U},F.clone=function(){return V.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},K}(),j=P.prototype;return z.prototype=j,[["$ms",i],["$s",s],["$m",c],["$H",l],["$W",d],["$M",f],["$y",p],["$D",m]].forEach(function(K){j[K[1]]=function(F){return this.$g(F,K[0],K[1])}}),z.extend=function(K,F){return K.$i||(K(F,P,z),K.$i=!0),z},z.locale=N,z.isDayjs=L,z.unix=function(K){return z(1e3*K)},z.en=_[k],z.Ls=_,z.p={},z})})(c0);var d0=c0.exports;const Zt=ri(d0);var dk={exports:{}};(function(t,e){(function(n,r){t.exports=r(d0)})(ni,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})})(dk);var u0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,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]+/,l={},d=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var E=C.match(/([+-]|\d\d)/g),b=60*E[1]+(+E[2]||0);return b===0?0:E[0]==="+"?-b:b}(y)}],h=function(y){var C=l[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var E,b=l.meridiem;if(b){for(var v=1;v<=24;v+=1)if(y.indexOf(b(v,0,C))>-1){E=v>12;break}}else E=y===(C?"pm":"PM");return E},m={A:[c,function(y){this.afternoon=p(y,!1)}],a:[c,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(y){var C=l.ordinal,E=y.match(/\d+/);if(this.day=E[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(y){var C=h("months"),E=(h("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(E<1)throw new Error;this.month=E%12||E}],MMMM:[c,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(y){this.year=d(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var C,E;C=y,E=l&&l.formats;for(var b=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,V,P){var j=P&&P.toUpperCase();return V||E[P]||n[P]||E[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,F,W){return F||W.slice(1)})})).match(r),v=b.length,k=0;k<v;k+=1){var _=b[k],O=m[_],L=O&&O[0],N=O&&O[1];b[k]=N?{regex:L,parser:N}:_.replace(/^\[|\]$/g,"")}return function(z){for(var V={},P=0,j=0;P<v;P+=1){var K=b[P];if(typeof K=="string")j+=K.length;else{var F=K.regex,W=K.parser,Q=z.slice(j),U=F.exec(Q)[0];W.call(V,U),z=z.replace(U,"")}}return function(ee){var ne=ee.afternoon;if(ne!==void 0){var ae=ee.hours;ne?ae<12&&(ee.hours+=12):ae===12&&(ee.hours=0),delete ee.afternoon}}(V),V}}return function(y,C,E){E.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var b=C.prototype,v=b.parse;b.parse=function(k){var _=k.date,O=k.utc,L=k.args;this.$u=O;var N=L[1];if(typeof N=="string"){var z=L[2]===!0,V=L[3]===!0,P=z||V,j=L[2];V&&(j=L[2]),l=this.$locale(),!z&&j&&(l=E.Ls[j]),this.$d=function(Q,U,ee,ne){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*Q);var ae=g(U)(Q),ue=ae.year,me=ae.month,Ee=ae.day,ke=ae.hours,Oe=ae.minutes,Se=ae.seconds,D=ae.milliseconds,$=ae.zone,x=ae.week,B=new Date,S=Ee||(ue||me?1:B.getDate()),w=ue||B.getFullYear(),I=0;ue&&!me||(I=me>0?me-1:B.getMonth());var M,Y=ke||0,G=Oe||0,J=Se||0,X=D||0;return $?new Date(Date.UTC(w,I,S,Y,G,J,X+60*$.offset*1e3)):ee?new Date(Date.UTC(w,I,S,Y,G,J,X)):(M=new Date(w,I,S,Y,G,J,X),x&&(M=ne(M).week(x).toDate()),M)}catch{return new Date("")}}(_,N,O,E),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),P&&_!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var K=N.length,F=1;F<=K;F+=1){L[1]=N[F-1];var W=E.apply(this,L);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}F===K&&(this.$d=new Date(""))}else v.call(this,k)}}})})(u0);var uk=u0.exports;const fk=ri(uk);var f0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}})})(f0);var hk=f0.exports;const pk=ri(hk);var h0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}})})(h0);var mk=h0.exports;const gk=ri(mk);var p0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(d),f=s(this).endOf(n);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(d).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(l){return l===void 0&&(l=null),this.week(l)}}})})(p0);var yk=p0.exports;const vk=ri(yk);Zt.extend(fk),Zt.locale("nl"),Zt.extend(pk),Zt.extend(gk),Zt.extend(vk);const Kd=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function m0(t,e=Zt()){const n=Zt(t,["DD-MM-YYYY HH:mm","YYYY-MM-DD","DD-MM-YYYY"],!0);if(!n.isValid())return"";const r=e.startOf("day"),o=r.subtract(1,"day");if(n.isSame(r,"day"))return"Vandaag";if(n.isSame(o,"day"))return"Gisteren";const i=r.subtract(6,"day");if(n.isSameOrAfter(i)&&n.isBefore(r))return Kd(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 g0(t,e=Zt()){const n=Zt(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"),i=o.subtract(1,"day");if(n.isSame(o,"day"))return r?n.format("H:mm"):"Vandaag";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 Kd(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 Yd(t){const e=Zt(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(Zt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function Gd(t){const e=Zt(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 bk={class:"bd-date"},y0=a.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:l0.displayTime},format:{default:l0.format}},setup(t){const e=t,n=a.computed(()=>e.date?e.format==="textual"?e.displayTime?g0(e.date):m0(e.date):(e.format==="numeric",e.displayTime?Yd(e.date):Gd(e.date)):"");return(r,o)=>(a.openBlock(),a.createElementBlock("span",bk,a.toDisplayString(n.value),1))}}),za=a.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=()=>{e("click")};return(o,i)=>(a.openBlock(),a.createElementBlock("li",a.mergeProps({class:"bd-dropdown-item"},o.$attrs),[a.createVNode(ao,a.mergeProps({class:"dropdown-item",onClick:r},n),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])]),_:3},16)],16))}});var v0={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(self,function(){return function(){var n={3099:function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(s,c,l){var d=l(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,c,l){var d=l(5112),u=l(30),f=l(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,c,l){var d=l(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}},5787:function(s){s.exports=function(c,l,d){if(!(c instanceof l))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}},9670:function(s,c,l){var d=l(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,c,l){var d=l(4019),u=l(9781),f=l(7854),h=l(111),p=l(6656),m=l(648),g=l(8880),y=l(1320),C=l(3070).f,E=l(9518),b=l(7674),v=l(5112),k=l(9711),_=f.Int8Array,O=_&&_.prototype,L=f.Uint8ClampedArray,N=L&&L.prototype,z=_&&E(_),V=O&&E(O),P=Object.prototype,j=P.isPrototypeOf,K=v("toStringTag"),F=k("TYPED_ARRAY_TAG"),W=d&&!!b&&m(f.opera)!=="Opera",Q=!1,U,ee={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(D){if(!h(D))return!1;var $=m(D);return $==="DataView"||p(ee,$)||p(ne,$)},ue=function(Se){if(!h(Se))return!1;var D=m(Se);return p(ee,D)||p(ne,D)},me=function(Se){if(ue(Se))return Se;throw TypeError("Target is not a typed array")},Ee=function(Se){if(b){if(j.call(z,Se))return Se}else for(var D in ee)if(p(ee,U)){var $=f[D];if($&&(Se===$||j.call($,Se)))return Se}throw TypeError("Target is not a typed array constructor")},ke=function(Se,D,$){if(u){if($)for(var x in ee){var B=f[x];B&&p(B.prototype,Se)&&delete B.prototype[Se]}(!V[Se]||$)&&y(V,Se,$?D:W&&O[Se]||D)}},Oe=function(Se,D,$){var x,B;if(u){if(b){if($)for(x in ee)B=f[x],B&&p(B,Se)&&delete B[Se];if(!z[Se]||$)try{return y(z,Se,$?D:W&&_[Se]||D)}catch{}else return}for(x in ee)B=f[x],B&&(!B[Se]||$)&&y(B,Se,D)}};for(U in ee)f[U]||(W=!1);if((!W||typeof z!="function"||z===Function.prototype)&&(z=function(){throw TypeError("Incorrect invocation")},W))for(U in ee)f[U]&&b(f[U],z);if((!W||!V||V===P)&&(V=z.prototype,W))for(U in ee)f[U]&&b(f[U].prototype,V);if(W&&E(N)!==V&&b(N,V),u&&!p(V,K)){Q=!0,C(V,K,{get:function(){return h(this)?this[F]:void 0}});for(U in ee)f[U]&&g(f[U],F,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_TAG:Q&&F,aTypedArray:me,aTypedArrayConstructor:Ee,exportTypedArrayMethod:ke,exportTypedArrayStaticMethod:Oe,isView:ae,isTypedArray:ue,TypedArray:z,TypedArrayPrototype:V}},3331:function(s,c,l){var d=l(7854),u=l(9781),f=l(4019),h=l(8880),p=l(2248),m=l(7293),g=l(5787),y=l(9958),C=l(7466),E=l(7067),b=l(1179),v=l(9518),k=l(7674),_=l(8006).f,O=l(3070).f,L=l(1285),N=l(8003),z=l(9909),V=z.get,P=z.set,j="ArrayBuffer",K="DataView",F="prototype",W="Wrong length",Q="Wrong index",U=d[j],ee=U,ne=d[K],ae=ne&&ne[F],ue=Object.prototype,me=d.RangeError,Ee=b.pack,ke=b.unpack,Oe=function(T){return[T&255]},Se=function(T){return[T&255,T>>8&255]},D=function(T){return[T&255,T>>8&255,T>>16&255,T>>24&255]},$=function(T){return T[3]<<24|T[2]<<16|T[1]<<8|T[0]},x=function(T){return Ee(T,23,4)},B=function(T){return Ee(T,52,8)},S=function(T,H){O(T[F],H,{get:function(){return V(this)[H]}})},w=function(T,H,Z,le){var ge=E(Z),Ae=V(T);if(ge+H>Ae.byteLength)throw me(Q);var te=V(Ae.buffer).bytes,se=ge+Ae.byteOffset,_e=te.slice(se,se+H);return le?_e:_e.reverse()},I=function(T,H,Z,le,ge,Ae){var te=E(Z),se=V(T);if(te+H>se.byteLength)throw me(Q);for(var _e=V(se.buffer).bytes,Re=te+se.byteOffset,it=le(+ge),ct=0;ct<H;ct++)_e[Re+ct]=it[Ae?ct:H-ct-1]};if(!f)ee=function(H){g(this,ee,j);var Z=E(H);P(this,{bytes:L.call(new Array(Z),0),byteLength:Z}),u||(this.byteLength=Z)},ne=function(H,Z,le){g(this,ne,K),g(H,ee,K);var ge=V(H).byteLength,Ae=y(Z);if(Ae<0||Ae>ge)throw me("Wrong offset");if(le=le===void 0?ge-Ae:C(le),Ae+le>ge)throw me(W);P(this,{buffer:H,byteLength:le,byteOffset:Ae}),u||(this.buffer=H,this.byteLength=le,this.byteOffset=Ae)},u&&(S(ee,"byteLength"),S(ne,"buffer"),S(ne,"byteLength"),S(ne,"byteOffset")),p(ne[F],{getInt8:function(H){return w(this,1,H)[0]<<24>>24},getUint8:function(H){return w(this,1,H)[0]},getInt16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return(Z[1]<<8|Z[0])<<16>>16},getUint16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return Z[1]<<8|Z[0]},getInt32:function(H){return $(w(this,4,H,arguments.length>1?arguments[1]:void 0))},getUint32:function(H){return $(w(this,4,H,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(H){return ke(w(this,4,H,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(H){return ke(w(this,8,H,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(H,Z){I(this,1,H,Oe,Z)},setUint8:function(H,Z){I(this,1,H,Oe,Z)},setInt16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setUint16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setInt32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setUint32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setFloat32:function(H,Z){I(this,4,H,x,Z,arguments.length>2?arguments[2]:void 0)},setFloat64:function(H,Z){I(this,8,H,B,Z,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){U(1)})||!m(function(){new U(-1)})||m(function(){return new U,new U(1.5),new U(NaN),U.name!=j})){ee=function(H){return g(this,ee),new U(E(H))};for(var M=ee[F]=U[F],Y=_(U),G=0,J;Y.length>G;)(J=Y[G++])in ee||h(ee,J,U[J]);M.constructor=ee}k&&v(ae)!==ue&&k(ae,ue);var X=new ne(new ee(2)),A=ae.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),(X.getInt8(0)||!X.getInt8(1))&&p(ae,{setInt8:function(H,Z){A.call(this,H,Z<<24>>24)},setUint8:function(H,Z){A.call(this,H,Z<<24>>24)}},{unsafe:!0})}N(ee,j),N(ne,K),s.exports={ArrayBuffer:ee,DataView:ne}},1048:function(s,c,l){var d=l(7908),u=l(1400),f=l(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var y=d(this),C=f(y.length),E=u(m,C),b=u(g,C),v=arguments.length>2?arguments[2]:void 0,k=h((v===void 0?C:u(v,C))-b,C-E),_=1;for(b<E&&E<b+k&&(_=-1,b+=k-1,E+=k-1);k-- >0;)b in y?y[E]=y[b]:delete y[E],E+=_,b+=_;return y}},1285:function(s,c,l){var d=l(7908),u=l(1400),f=l(7466);s.exports=function(p){for(var m=d(this),g=f(m.length),y=arguments.length,C=u(y>1?arguments[1]:void 0,g),E=y>2?arguments[2]:void 0,b=E===void 0?g:u(E,g);b>C;)m[C++]=p;return m}},8533:function(s,c,l){var d=l(2092).forEach,u=l(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,c,l){var d=l(9974),u=l(7908),f=l(3411),h=l(7659),p=l(7466),m=l(6135),g=l(1246);s.exports=function(C){var E=u(C),b=typeof this=="function"?this:Array,v=arguments.length,k=v>1?arguments[1]:void 0,_=k!==void 0,O=g(E),L=0,N,z,V,P,j,K;if(_&&(k=d(k,v>2?arguments[2]:void 0,2)),O!=null&&!(b==Array&&h(O)))for(P=O.call(E),j=P.next,z=new b;!(V=j.call(P)).done;L++)K=_?f(P,k,[V.value,L],!0):V.value,m(z,L,K);else for(N=p(E.length),z=new b(N);N>L;L++)K=_?k(E[L],L):E[L],m(z,L,K);return z.length=L,z}},1318:function(s,c,l){var d=l(5656),u=l(7466),f=l(1400),h=function(p){return function(m,g,y){var C=d(m),E=u(C.length),b=f(y,E),v;if(p&&g!=g){for(;E>b;)if(v=C[b++],v!=v)return!0}else for(;E>b;b++)if((p||b in C)&&C[b]===g)return p||b||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,c,l){var d=l(9974),u=l(8361),f=l(7908),h=l(7466),p=l(5417),m=[].push,g=function(y){var C=y==1,E=y==2,b=y==3,v=y==4,k=y==6,_=y==7,O=y==5||k;return function(L,N,z,V){for(var P=f(L),j=u(P),K=d(N,z,3),F=h(j.length),W=0,Q=V||p,U=C?Q(L,F):E||_?Q(L,0):void 0,ee,ne;F>W;W++)if((O||W in j)&&(ee=j[W],ne=K(ee,W,P),y))if(C)U[W]=ne;else if(ne)switch(y){case 3:return!0;case 5:return ee;case 6:return W;case 2:m.call(U,ee)}else switch(y){case 4:return!1;case 7:m.call(U,ee)}return k?-1:b||v?v:U}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(s,c,l){var d=l(5656),u=l(9958),f=l(7466),h=l(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,y=h("lastIndexOf"),C=g||!y;s.exports=C?function(b){if(g)return m.apply(this,arguments)||0;var v=d(this),k=f(v.length),_=k-1;for(arguments.length>1&&(_=p(_,u(arguments[1]))),_<0&&(_=k+_);_>=0;_--)if(_ in v&&v[_]===b)return _||0;return-1}:m},1194:function(s,c,l){var d=l(7293),u=l(5112),f=l(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(s,c,l){var d=l(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,c,l){var d=l(3099),u=l(7908),f=l(8361),h=l(7466),p=function(m){return function(g,y,C,E){d(y);var b=u(g),v=f(b),k=h(b.length),_=m?k-1:0,O=m?-1:1;if(C<2)for(;;){if(_ in v){E=v[_],_+=O;break}if(_+=O,m?_<0:k<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:k>_;_+=O)_ in v&&(E=y(E,v[_],_,b));return E}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,c,l){var d=l(111),u=l(3157),f=l(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:d(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}},3411:function(s,c,l){var d=l(9670),u=l(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}},7072:function(s,c,l){var d=l(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[u]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(s){var c={}.toString;s.exports=function(l){return c.call(l).slice(8,-1)}},648:function(s,c,l){var d=l(1694),u=l(4326),f=l(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};s.exports=d?u:function(g){var y,C,E;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?u(y):(E=u(y))=="Object"&&typeof y.callee=="function"?"Arguments":E}},9920:function(s,c,l){var d=l(6656),u=l(3887),f=l(1236),h=l(3070);s.exports=function(p,m){for(var g=u(m),y=h.f,C=f.f,E=0;E<g.length;E++){var b=g[E];d(p,b)||y(p,b,C(m,b))}}},8544:function(s,c,l){var d=l(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,c,l){var d=l(3383).IteratorPrototype,u=l(30),f=l(9114),h=l(8003),p=l(7497),m=function(){return this};s.exports=function(g,y,C){var E=y+" Iterator";return g.prototype=u(d,{next:f(1,C)}),h(g,E,!1,!0),p[E]=m,g}},8880:function(s,c,l){var d=l(9781),u=l(3070),f=l(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(c,l){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:l}}},6135:function(s,c,l){var d=l(7593),u=l(3070),f=l(9114);s.exports=function(h,p,m){var g=d(p);g in h?u.f(h,g,f(0,m)):h[g]=m}},654:function(s,c,l){var d=l(2109),u=l(4994),f=l(9518),h=l(7674),p=l(8003),m=l(8880),g=l(1320),y=l(5112),C=l(1913),E=l(7497),b=l(3383),v=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,_=y("iterator"),O="keys",L="values",N="entries",z=function(){return this};s.exports=function(V,P,j,K,F,W,Q){u(j,P,K);var U=function(D){if(D===F&&me)return me;if(!k&&D in ae)return ae[D];switch(D){case O:return function(){return new j(this,D)};case L:return function(){return new j(this,D)};case N:return function(){return new j(this,D)}}return function(){return new j(this)}},ee=P+" Iterator",ne=!1,ae=V.prototype,ue=ae[_]||ae["@@iterator"]||F&&ae[F],me=!k&&ue||U(F),Ee=P=="Array"&&ae.entries||ue,ke,Oe,Se;if(Ee&&(ke=f(Ee.call(new V)),v!==Object.prototype&&ke.next&&(!C&&f(ke)!==v&&(h?h(ke,v):typeof ke[_]!="function"&&m(ke,_,z)),p(ke,ee,!0,!0),C&&(E[ee]=z))),F==L&&ue&&ue.name!==L&&(ne=!0,me=function(){return ue.call(this)}),(!C||Q)&&ae[_]!==me&&m(ae,_,me),E[P]=me,F)if(Oe={values:U(L),keys:W?me:U(O),entries:U(N)},Q)for(Se in Oe)(k||ne||!(Se in ae))&&g(ae,Se,Oe[Se]);else d({target:P,proto:!0,forced:k||ne},Oe);return Oe}},9781:function(s,c,l){var d=l(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,c,l){var d=l(7854),u=l(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,c,l){var d=l(5005);s.exports=d("navigator","userAgent")||""},7392:function(s,c,l){var d=l(7854),u=l(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,c,l){var d=l(7854),u=l(1236).f,f=l(8880),h=l(1320),p=l(3505),m=l(9920),g=l(4705);s.exports=function(y,C){var E=y.target,b=y.global,v=y.stat,k,_,O,L,N,z;if(b?_=d:v?_=d[E]||p(E,{}):_=(d[E]||{}).prototype,_)for(O in C){if(N=C[O],y.noTargetGet?(z=u(_,O),L=z&&z.value):L=_[O],k=g(b?O:E+(v?".":"#")+O,y.forced),!k&&L!==void 0){if(typeof N==typeof L)continue;m(N,L)}(y.sham||L&&L.sham)&&f(N,"sham",!0),h(_,O,N,y)}}},7293:function(s){s.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(s,c,l){l(4916);var d=l(1320),u=l(7293),f=l(5112),h=l(2261),p=l(8880),m=f("species"),g=!u(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),E=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),b=!u(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var _="ab".split(v);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(v,k,_,O){var L=f(v),N=!u(function(){var F={};return F[L]=function(){return 7},""[v](F)!=7}),z=N&&!u(function(){var F=!1,W=/a/;return v==="split"&&(W={},W.constructor={},W.constructor[m]=function(){return W},W.flags="",W[L]=/./[L]),W.exec=function(){return F=!0,null},W[L](""),!F});if(!N||!z||v==="replace"&&!(g&&y&&!E)||v==="split"&&!b){var V=/./[L],P=_(L,""[v],function(F,W,Q,U,ee){return W.exec===h?N&&!ee?{done:!0,value:V.call(W,Q,U)}:{done:!0,value:F.call(Q,W,U)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),j=P[0],K=P[1];d(String.prototype,v,j),d(RegExp.prototype,L,k==2?function(F,W){return K.call(F,this,W)}:function(F){return K.call(F,this)})}O&&p(RegExp.prototype[L],"sham",!0)}},9974:function(s,c,l){var d=l(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}},5005:function(s,c,l){var d=l(857),u=l(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}},1246:function(s,c,l){var d=l(648),u=l(7497),f=l(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}},8554:function(s,c,l){var d=l(9670),u=l(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}},647:function(s,c,l){var d=l(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,y,C,E,b){var v=y+m.length,k=C.length,_=p;return E!==void 0&&(E=d(E),_=h),f.call(b,_,function(O,L){var N;switch(L.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(v);case"<":N=E[L.slice(1,-1)];break;default:var z=+L;if(z===0)return O;if(z>k){var V=u(z/10);return V===0?O:V<=k?C[V-1]===void 0?L.charAt(1):C[V-1]+L.charAt(1):O}N=C[z-1]}return N===void 0?"":N})}},7854:function(s,c,l){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof l.g=="object"&&l.g)||function(){return this}()||Function("return this")()},6656:function(s){var c={}.hasOwnProperty;s.exports=function(l,d){return c.call(l,d)}},3501:function(s){s.exports={}},490:function(s,c,l){var d=l(5005);s.exports=d("document","documentElement")},4664:function(s,c,l){var d=l(9781),u=l(7293),f=l(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var c=Math.abs,l=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),E=y*8-g-1,b=(1<<E)-1,v=b>>1,k=g===23?l(2,-24)-l(2,-77):0,_=m<0||m===0&&1/m<0?1:0,O=0,L,N,z;for(m=c(m),m!=m||m===1/0?(N=m!=m?1:0,L=b):(L=d(u(m)/f),m*(z=l(2,-L))<1&&(L--,z*=2),L+v>=1?m+=k/z:m+=k*l(2,1-v),m*z>=2&&(L++,z/=2),L+v>=b?(N=0,L=b):L+v>=1?(N=(m*z-1)*l(2,g),L=L+v):(N=m*l(2,v-1)*l(2,g),L=0));g>=8;C[O++]=N&255,N/=256,g-=8);for(L=L<<g|N,E+=g;E>0;C[O++]=L&255,L/=256,E-=8);return C[--O]|=_*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,E=(1<<C)-1,b=E>>1,v=C-7,k=y-1,_=m[k--],O=_&127,L;for(_>>=7;v>0;O=O*256+m[k],k--,v-=8);for(L=O&(1<<-v)-1,O>>=-v,v+=g;v>0;L=L*256+m[k],k--,v-=8);if(O===0)O=1-b;else{if(O===E)return L?NaN:_?-1/0:1/0;L=L+l(2,g),O=O-b}return(_?-1:1)*L*l(2,O-g)};s.exports={pack:h,unpack:p}},8361:function(s,c,l){var d=l(7293),u=l(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,c,l){var d=l(111),u=l(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(g=m.prototype)&&g!==p.prototype&&u(f,g),f}},2788:function(s,c,l){var d=l(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource},9909:function(s,c,l){var d=l(8536),u=l(7854),f=l(111),h=l(8880),p=l(6656),m=l(5465),g=l(6200),y=l(3501),C=u.WeakMap,E,b,v,k=function(P){return v(P)?b(P):E(P,{})},_=function(P){return function(j){var K;if(!f(j)||(K=b(j)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return K}};if(d){var O=m.state||(m.state=new C),L=O.get,N=O.has,z=O.set;E=function(P,j){return j.facade=P,z.call(O,P,j),j},b=function(P){return L.call(O,P)||{}},v=function(P){return N.call(O,P)}}else{var V=g("state");y[V]=!0,E=function(P,j){return j.facade=P,h(P,V,j),j},b=function(P){return p(P,V)?P[V]:{}},v=function(P){return p(P,V)}}s.exports={set:E,get:b,has:v,enforce:k,getterFor:_}},7659:function(s,c,l){var d=l(5112),u=l(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,c,l){var d=l(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}},4705:function(s,c,l){var d=l(7293),u=/#|\.prototype\./,f=function(y,C){var E=p[h(y)];return E==g?!0:E==m?!1:typeof C=="function"?d(C):!!C},h=f.normalize=function(y){return String(y).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(s){s.exports=!1},7850:function(s,c,l){var d=l(111),u=l(4326),f=l(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,c,l){var d=l(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}},3383:function(s,c,l){var d=l(7293),u=l(9518),f=l(8880),h=l(6656),p=l(5112),m=l(1913),g=p("iterator"),y=!1,C=function(){return this},E,b,v;[].keys&&(v=[].keys(),"next"in v?(b=u(u(v)),b!==Object.prototype&&(E=b)):y=!0);var k=E==null||d(function(){var _={};return E[g].call(_)!==_});k&&(E={}),(!m||k)&&!h(E,g)&&f(E,g,C),s.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:y}},7497:function(s){s.exports={}},133:function(s,c,l){var d=l(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},590:function(s,c,l){var d=l(7293),u=l(5112),f=l(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(y,C){m.delete("b"),g+=C+y}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,c,l){var d=l(7854),u=l(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,c,l){var d=l(9781),u=l(7293),f=l(1956),h=l(5181),p=l(5296),m=l(7908),g=l(8361),y=Object.assign,C=Object.defineProperty;s.exports=!y||u(function(){if(d&&y({b:1},y(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},b={},v=Symbol(),k="abcdefghijklmnopqrst";return E[v]=7,k.split("").forEach(function(_){b[_]=_}),y({},E)[v]!=7||f(y({},b)).join("")!=k})?function(b,v){for(var k=m(b),_=arguments.length,O=1,L=h.f,N=p.f;_>O;)for(var z=g(arguments[O++]),V=L?f(z).concat(L(z)):f(z),P=V.length,j=0,K;P>j;)K=V[j++],(!d||N.call(z,K))&&(k[K]=z[K]);return k}:y},30:function(s,c,l){var d=l(9670),u=l(6048),f=l(748),h=l(3501),p=l(490),m=l(317),g=l(6200),y=">",C="<",E="prototype",b="script",v=g("IE_PROTO"),k=function(){},_=function(V){return C+b+y+V+C+"/"+b+y},O=function(V){V.write(_("")),V.close();var P=V.parentWindow.Object;return V=null,P},L=function(){var V=m("iframe"),P="java"+b+":",j;return V.style.display="none",p.appendChild(V),V.src=String(P),j=V.contentWindow.document,j.open(),j.write(_("document.F=Object")),j.close(),j.F},N,z=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}z=N?O(N):L();for(var V=f.length;V--;)delete z[E][f[V]];return z()};h[v]=!0,s.exports=Object.create||function(P,j){var K;return P!==null?(k[E]=d(P),K=new k,k[E]=null,K[v]=P):K=z(),j===void 0?K:u(K,j)}},6048:function(s,c,l){var d=l(9781),u=l(3070),f=l(9670),h=l(1956);s.exports=d?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,E=0,b;C>E;)u.f(m,b=y[E++],g[b]);return m}},3070:function(s,c,l){var d=l(9781),u=l(4664),f=l(9670),h=l(7593),p=Object.defineProperty;c.f=d?p:function(g,y,C){if(f(g),y=h(y,!0),f(C),u)try{return p(g,y,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[y]=C.value),g}},1236:function(s,c,l){var d=l(9781),u=l(5296),f=l(9114),h=l(5656),p=l(7593),m=l(6656),g=l(4664),y=Object.getOwnPropertyDescriptor;c.f=d?y:function(E,b){if(E=h(E),b=p(b,!0),g)try{return y(E,b)}catch{}if(m(E,b))return f(!u.f.call(E,b),E[b])}},8006:function(s,c,l){var d=l(6324),u=l(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}},5181:function(s,c){c.f=Object.getOwnPropertySymbols},9518:function(s,c,l){var d=l(6656),u=l(7908),f=l(6200),h=l(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),d(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(s,c,l){var d=l(6656),u=l(5656),f=l(1318).indexOf,h=l(3501);s.exports=function(p,m){var g=u(p),y=0,C=[],E;for(E in g)!d(h,E)&&d(g,E)&&C.push(E);for(;m.length>y;)d(g,E=m[y++])&&(~f(C,E)||C.push(E));return C}},1956:function(s,c,l){var d=l(6324),u=l(748);s.exports=Object.keys||function(h){return d(h,u)}},5296:function(s,c){var l={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!l.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:l},7674:function(s,c,l){var d=l(9670),u=l(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,y){return d(g),u(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(s,c,l){var d=l(1694),u=l(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,c,l){var d=l(5005),u=l(8006),f=l(5181),h=l(9670);s.exports=d("Reflect","ownKeys")||function(m){var g=u.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(s,c,l){var d=l(7854);s.exports=d},2248:function(s,c,l){var d=l(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}},1320:function(s,c,l){var d=l(7854),u=l(8880),f=l(6656),h=l(3505),p=l(2788),m=l(9909),g=m.get,y=m.enforce,C=String(String).split("String");(s.exports=function(E,b,v,k){var _=k?!!k.unsafe:!1,O=k?!!k.enumerable:!1,L=k?!!k.noTargetGet:!1,N;if(typeof v=="function"&&(typeof b=="string"&&!f(v,"name")&&u(v,"name",b),N=y(v),N.source||(N.source=C.join(typeof b=="string"?b:""))),E===d){O?E[b]=v:h(b,v);return}else _?!L&&E[b]&&(O=!0):delete E[b];O?E[b]=v:u(E,b,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(s,c,l){var d=l(4326),u=l(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}},2261:function(s,c,l){var d=l(7066),u=l(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var E=/a/,b=/b*/g;return f.call(E,"a"),f.call(b,"a"),E.lastIndex!==0||b.lastIndex!==0}(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(b){var v=this,k,_,O,L,N=g&&v.sticky,z=d.call(v),V=v.source,P=0,j=b;return N&&(z=z.replace("y",""),z.indexOf("g")===-1&&(z+="g"),j=String(b).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&b[v.lastIndex-1]!==`
|
|
1230
|
-
`)&&(V="(?: "+V+")",j=" "+j,P++),_=new RegExp("^(?:"+V+")",z)),y&&(_=new RegExp("^"+V+"$(?!\\s)",z)),m&&(k=v.lastIndex),O=f.call(N?_:v,j),N?O?(O.input=O.input.slice(P),O[0]=O[0].slice(P),O.index=v.lastIndex,v.lastIndex+=O[0].length):v.lastIndex=0:m&&O&&(v.lastIndex=v.global?O.index+O[0].length:k),y&&O&&O.length>1&&h.call(O[0],_,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(O[L]=void 0)}),O}),s.exports=p},7066:function(s,c,l){var d=l(9670);s.exports=function(){var u=d(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,c,l){var d=l(7293);function u(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=d(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=d(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(s,c,l){var d=l(7854),u=l(8880);s.exports=function(f,h){try{u(d,f,h)}catch{d[f]=h}return h}},6340:function(s,c,l){var d=l(5005),u=l(3070),f=l(5112),h=l(9781),p=f("species");s.exports=function(m){var g=d(m),y=u.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(s,c,l){var d=l(3070).f,u=l(6656),f=l(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&d(p,h,{configurable:!0,value:m})}},6200:function(s,c,l){var d=l(2309),u=l(9711),f=d("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,c,l){var d=l(7854),u=l(3505),f="__core-js_shared__",h=d[f]||u(f,{});s.exports=h},2309:function(s,c,l){var d=l(1913),u=l(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,c,l){var d=l(9670),u=l(3099),f=l(5112),h=f("species");s.exports=function(p,m){var g=d(p).constructor,y;return g===void 0||(y=d(g)[h])==null?m:u(y)}},8710:function(s,c,l){var d=l(9958),u=l(4488),f=function(h){return function(p,m){var g=String(u(p)),y=d(m),C=g.length,E,b;return y<0||y>=C?h?"":void 0:(E=g.charCodeAt(y),E<55296||E>56319||y+1===C||(b=g.charCodeAt(y+1))<56320||b>57343?h?g.charAt(y):E:h?g.slice(y,y+2):(E-55296<<10)+(b-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var c=2147483647,l=36,d=1,u=26,f=38,h=700,p=72,m=128,g="-",y=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,E="Overflow: input needs wider integers to process",b=l-d,v=Math.floor,k=String.fromCharCode,_=function(z){for(var V=[],P=0,j=z.length;P<j;){var K=z.charCodeAt(P++);if(K>=55296&&K<=56319&&P<j){var F=z.charCodeAt(P++);(F&64512)==56320?V.push(((K&1023)<<10)+(F&1023)+65536):(V.push(K),P--)}else V.push(K)}return V},O=function(z){return z+22+75*(z<26)},L=function(z,V,P){var j=0;for(z=P?v(z/h):z>>1,z+=v(z/V);z>b*u>>1;j+=l)z=v(z/b);return v(j+(b+1)*z/(z+f))},N=function(z){var V=[];z=_(z);var P=z.length,j=m,K=0,F=p,W,Q;for(W=0;W<z.length;W++)Q=z[W],Q<128&&V.push(k(Q));var U=V.length,ee=U;for(U&&V.push(g);ee<P;){var ne=c;for(W=0;W<z.length;W++)Q=z[W],Q>=j&&Q<ne&&(ne=Q);var ae=ee+1;if(ne-j>v((c-K)/ae))throw RangeError(E);for(K+=(ne-j)*ae,j=ne,W=0;W<z.length;W++){if(Q=z[W],Q<j&&++K>c)throw RangeError(E);if(Q==j){for(var ue=K,me=l;;me+=l){var Ee=me<=F?d:me>=F+u?u:me-F;if(ue<Ee)break;var ke=ue-Ee,Oe=l-Ee;V.push(k(O(Ee+ke%Oe))),ue=v(ke/Oe)}V.push(k(O(ue))),F=L(K,ae,ee==U),K=0,++ee}}++K,++j}return V.join("")};s.exports=function(z){var V=[],P=z.toLowerCase().replace(C,".").split("."),j,K;for(j=0;j<P.length;j++)K=P[j],V.push(y.test(K)?"xn--"+N(K):K);return V.join(".")}},6091:function(s,c,l){var d=l(7293),u=l(1361),f="
";s.exports=function(h){return d(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,c,l){var d=l(4488),u=l(1361),f="["+u+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(y){var C=String(d(y));return g&1&&(C=C.replace(h,"")),g&2&&(C=C.replace(p,"")),C}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,c,l){var d=l(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=d(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,c,l){var d=l(9958),u=l(7466);s.exports=function(f){if(f===void 0)return 0;var h=d(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,c,l){var d=l(8361),u=l(4488);s.exports=function(f){return d(u(f))}},9958:function(s){var c=Math.ceil,l=Math.floor;s.exports=function(d){return isNaN(d=+d)?0:(d>0?l:c)(d)}},7466:function(s,c,l){var d=l(9958),u=Math.min;s.exports=function(f){return f>0?u(d(f),9007199254740991):0}},7908:function(s,c,l){var d=l(4488);s.exports=function(u){return Object(d(u))}},4590:function(s,c,l){var d=l(3002);s.exports=function(u,f){var h=d(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,c,l){var d=l(9958);s.exports=function(u){var f=d(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,c,l){var d=l(111);s.exports=function(u,f){if(!d(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!d(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,c,l){var d=l(5112),u=d("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,c,l){var d=l(2109),u=l(7854),f=l(9781),h=l(3832),p=l(260),m=l(3331),g=l(5787),y=l(9114),C=l(8880),E=l(7466),b=l(7067),v=l(4590),k=l(7593),_=l(6656),O=l(648),L=l(111),N=l(30),z=l(7674),V=l(8006).f,P=l(7321),j=l(2092).forEach,K=l(6340),F=l(3070),W=l(1236),Q=l(9909),U=l(9587),ee=Q.get,ne=Q.set,ae=F.f,ue=W.f,me=Math.round,Ee=u.RangeError,ke=m.ArrayBuffer,Oe=m.DataView,Se=p.NATIVE_ARRAY_BUFFER_VIEWS,D=p.TYPED_ARRAY_TAG,$=p.TypedArray,x=p.TypedArrayPrototype,B=p.aTypedArrayConstructor,S=p.isTypedArray,w="BYTES_PER_ELEMENT",I="Wrong length",M=function(T,H){for(var Z=0,le=H.length,ge=new(B(T))(le);le>Z;)ge[Z]=H[Z++];return ge},Y=function(T,H){ae(T,H,{get:function(){return ee(this)[H]}})},G=function(T){var H;return T instanceof ke||(H=O(T))=="ArrayBuffer"||H=="SharedArrayBuffer"},J=function(T,H){return S(T)&&typeof H!="symbol"&&H in T&&String(+H)==String(H)},X=function(H,Z){return J(H,Z=k(Z,!0))?y(2,H[Z]):ue(H,Z)},A=function(H,Z,le){return J(H,Z=k(Z,!0))&&L(le)&&_(le,"value")&&!_(le,"get")&&!_(le,"set")&&!le.configurable&&(!_(le,"writable")||le.writable)&&(!_(le,"enumerable")||le.enumerable)?(H[Z]=le.value,H):ae(H,Z,le)};f?(Se||(W.f=X,F.f=A,Y(x,"buffer"),Y(x,"byteOffset"),Y(x,"byteLength"),Y(x,"length")),d({target:"Object",stat:!0,forced:!Se},{getOwnPropertyDescriptor:X,defineProperty:A}),s.exports=function(T,H,Z){var le=T.match(/\d+$/)[0]/8,ge=T+(Z?"Clamped":"")+"Array",Ae="get"+T,te="set"+T,se=u[ge],_e=se,Re=_e&&_e.prototype,it={},ct=function(ve,ye){var Me=ee(ve);return Me.view[Ae](ye*le+Me.byteOffset,!0)},Ht=function(ve,ye,Me){var Pe=ee(ve);Z&&(Me=(Me=me(Me))<0?0:Me>255?255:Me&255),Pe.view[te](ye*le+Pe.byteOffset,Me,!0)},re=function(ve,ye){ae(ve,ye,{get:function(){return ct(this,ye)},set:function(Me){return Ht(this,ye,Me)},enumerable:!0})};Se?h&&(_e=H(function(ve,ye,Me,Pe){return g(ve,_e,ge),U(function(){return L(ye)?G(ye)?Pe!==void 0?new se(ye,v(Me,le),Pe):Me!==void 0?new se(ye,v(Me,le)):new se(ye):S(ye)?M(_e,ye):P.call(_e,ye):new se(b(ye))}(),ve,_e)}),z&&z(_e,$),j(V(se),function(ve){ve in _e||C(_e,ve,se[ve])}),_e.prototype=Re):(_e=H(function(ve,ye,Me,Pe){g(ve,_e,ge);var st=0,dt=0,Wt,Kt,
|
|
1231
|
-
\v\f\r \u2028\u2029\uFEFF`},8264:function(s,c,l){var d=l(2109),u=l(7854),f=l(3331),h=l(6340),p="ArrayBuffer",m=f[p],g=u[p];d({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(s,c,l){var d=l(2109),u=l(7293),f=l(3157),h=l(111),p=l(7908),m=l(7466),g=l(6135),y=l(5417),C=l(1194),E=l(5112),b=l(7392),v=E("isConcatSpreadable"),k=9007199254740991,_="Maximum allowed index exceeded",O=b>=51||!u(function(){var V=[];return V[v]=!1,V.concat()[0]!==V}),L=C("concat"),N=function(V){if(!h(V))return!1;var P=V[v];return P!==void 0?!!P:f(V)},z=!O||!L;d({target:"Array",proto:!0,forced:z},{concat:function(P){var j=p(this),K=y(j,0),F=0,W,Q,U,ee,ne;for(W=-1,U=arguments.length;W<U;W++)if(ne=W===-1?j:arguments[W],N(ne)){if(ee=m(ne.length),F+ee>k)throw TypeError(_);for(Q=0;Q<ee;Q++,F++)Q in ne&&g(K,F,ne[Q])}else{if(F>=k)throw TypeError(_);g(K,F++,ne)}return K.length=F,K}})},7327:function(s,c,l){var d=l(2109),u=l(2092).filter,f=l(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,c,l){var d=l(2109),u=l(1318).indexOf,f=l(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(y){return p?h.apply(this,arguments)||0:u(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,c,l){var d=l(5656),u=l(1223),f=l(7497),h=l(9909),p=l(654),m="Array Iterator",g=h.set,y=h.getterFor(m);s.exports=p(Array,"Array",function(C,E){g(this,{type:m,target:d(C),index:0,kind:E})},function(){var C=y(this),E=C.target,b=C.kind,v=C.index++;return!E||v>=E.length?(C.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:v,done:!1}:b=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,c,l){var d=l(2109),u=l(2092).map,f=l(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,c,l){var d=l(2109),u=l(111),f=l(3157),h=l(1400),p=l(7466),m=l(5656),g=l(6135),y=l(5112),C=l(1194),E=C("slice"),b=y("species"),v=[].slice,k=Math.max;d({target:"Array",proto:!0,forced:!E},{slice:function(O,L){var N=m(this),z=p(N.length),V=h(O,z),P=h(L===void 0?z:L,z),j,K,F;if(f(N)&&(j=N.constructor,typeof j=="function"&&(j===Array||f(j.prototype))?j=void 0:u(j)&&(j=j[b],j===null&&(j=void 0)),j===Array||j===void 0))return v.call(N,V,P);for(K=new(j===void 0?Array:j)(k(P-V,0)),F=0;V<P;V++,F++)V in N&&g(K,F,N[V]);return K.length=F,K}})},561:function(s,c,l){var d=l(2109),u=l(1400),f=l(9958),h=l(7466),p=l(7908),m=l(5417),g=l(6135),y=l(1194),C=y("splice"),E=Math.max,b=Math.min,v=9007199254740991,k="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!C},{splice:function(O,L){var N=p(this),z=h(N.length),V=u(O,z),P=arguments.length,j,K,F,W,Q,U;if(P===0?j=K=0:P===1?(j=0,K=z-V):(j=P-2,K=b(E(f(L),0),z-V)),z+j-K>v)throw TypeError(k);for(F=m(N,K),W=0;W<K;W++)Q=V+W,Q in N&&g(F,W,N[Q]);if(F.length=K,j<K){for(W=V;W<z-K;W++)Q=W+K,U=W+j,Q in N?N[U]=N[Q]:delete N[U];for(W=z;W>z-K+j;W--)delete N[W-1]}else if(j>K)for(W=z-K;W>V;W--)Q=W+K-1,U=W+j-1,Q in N?N[U]=N[Q]:delete N[U];for(W=0;W<j;W++)N[W+V]=arguments[W+2];return N.length=z-K+j,F}})},8309:function(s,c,l){var d=l(9781),u=l(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,c,l){var d=l(2109),u=l(7293),f=l(7908),h=l(9518),p=l(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(s,c,l){var d=l(1694),u=l(1320),f=l(288);d||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,c,l){var d=l(2109),u=l(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,c,l){var d=l(1320),u=l(9670),f=l(7293),h=l(7066),p="toString",m=RegExp.prototype,g=m[p],y=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=p;(y||C)&&d(RegExp.prototype,p,function(){var b=u(this),v=String(b.source),k=b.flags,_=String(k===void 0&&b instanceof RegExp&&!("flags"in m)?h.call(b):k);return"/"+v+"/"+_},{unsafe:!0})},8783:function(s,c,l){var d=l(8710).charAt,u=l(9909),f=l(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=m(this),C=y.string,E=y.index,b;return E>=C.length?{value:void 0,done:!0}:(b=d(C,E),y.index+=b.length,{value:b,done:!1})})},4723:function(s,c,l){var d=l(7007),u=l(9670),f=l(7466),h=l(4488),p=l(1530),m=l(7651);d("match",1,function(g,y,C){return[function(b){var v=h(this),k=b==null?void 0:b[g];return k!==void 0?k.call(b,v):new RegExp(b)[g](String(v))},function(E){var b=C(y,E,this);if(b.done)return b.value;var v=u(E),k=String(this);if(!v.global)return m(v,k);var _=v.unicode;v.lastIndex=0;for(var O=[],L=0,N;(N=m(v,k))!==null;){var z=String(N[0]);O[L]=z,z===""&&(v.lastIndex=p(k,f(v.lastIndex),_)),L++}return L===0?null:O}]})},5306:function(s,c,l){var d=l(7007),u=l(9670),f=l(7466),h=l(9958),p=l(4488),m=l(1530),g=l(647),y=l(7651),C=Math.max,E=Math.min,b=function(v){return v===void 0?v:String(v)};d("replace",2,function(v,k,_,O){var L=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=O.REPLACE_KEEPS_$0,z=L?"$":"$0";return[function(P,j){var K=p(this),F=P==null?void 0:P[v];return F!==void 0?F.call(P,K,j):k.call(String(K),P,j)},function(V,P){if(!L&&N||typeof P=="string"&&P.indexOf(z)===-1){var j=_(k,V,this,P);if(j.done)return j.value}var K=u(V),F=String(this),W=typeof P=="function";W||(P=String(P));var Q=K.global;if(Q){var U=K.unicode;K.lastIndex=0}for(var ee=[];;){var ne=y(K,F);if(ne===null||(ee.push(ne),!Q))break;var ae=String(ne[0]);ae===""&&(K.lastIndex=m(F,f(K.lastIndex),U))}for(var ue="",me=0,Ee=0;Ee<ee.length;Ee++){ne=ee[Ee];for(var ke=String(ne[0]),Oe=C(E(h(ne.index),F.length),0),Se=[],D=1;D<ne.length;D++)Se.push(b(ne[D]));var $=ne.groups;if(W){var x=[ke].concat(Se,Oe,F);$!==void 0&&x.push($);var B=String(P.apply(void 0,x))}else B=g(ke,F,Oe,Se,$,P);Oe>=me&&(ue+=F.slice(me,Oe)+B,me=Oe+ke.length)}return ue+F.slice(me)}]})},3123:function(s,c,l){var d=l(7007),u=l(7850),f=l(9670),h=l(4488),p=l(6707),m=l(1530),g=l(7466),y=l(7651),C=l(2261),E=l(7293),b=[].push,v=Math.min,k=4294967295,_=!E(function(){return!RegExp(k,"y")});d("split",2,function(O,L,N){var z;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?z=function(V,P){var j=String(h(this)),K=P===void 0?k:P>>>0;if(K===0)return[];if(V===void 0)return[j];if(!u(V))return L.call(j,V,K);for(var F=[],W=(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")+(V.sticky?"y":""),Q=0,U=new RegExp(V.source,W+"g"),ee,ne,ae;(ee=C.call(U,j))&&(ne=U.lastIndex,!(ne>Q&&(F.push(j.slice(Q,ee.index)),ee.length>1&&ee.index<j.length&&b.apply(F,ee.slice(1)),ae=ee[0].length,Q=ne,F.length>=K)));)U.lastIndex===ee.index&&U.lastIndex++;return Q===j.length?(ae||!U.test(""))&&F.push(""):F.push(j.slice(Q)),F.length>K?F.slice(0,K):F}:"0".split(void 0,0).length?z=function(V,P){return V===void 0&&P===0?[]:L.call(this,V,P)}:z=L,[function(P,j){var K=h(this),F=P==null?void 0:P[O];return F!==void 0?F.call(P,K,j):z.call(String(K),P,j)},function(V,P){var j=N(z,V,this,P,z!==L);if(j.done)return j.value;var K=f(V),F=String(this),W=p(K,RegExp),Q=K.unicode,U=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(_?"y":"g"),ee=new W(_?K:"^(?:"+K.source+")",U),ne=P===void 0?k:P>>>0;if(ne===0)return[];if(F.length===0)return y(ee,F)===null?[F]:[];for(var ae=0,ue=0,me=[];ue<F.length;){ee.lastIndex=_?ue:0;var Ee=y(ee,_?F:F.slice(ue)),ke;if(Ee===null||(ke=v(g(ee.lastIndex+(_?0:ue)),F.length))===ae)ue=m(F,ue,Q);else{if(me.push(F.slice(ae,ue)),me.length===ne)return me;for(var Oe=1;Oe<=Ee.length-1;Oe++)if(me.push(Ee[Oe]),me.length===ne)return me;ue=ae=ke}}return me.push(F.slice(ae)),me}]},!_)},3210:function(s,c,l){var d=l(2109),u=l(3111).trim,f=l(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,c,l){var d=l(260),u=l(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,c,l){var d=l(260),u=l(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,c,l){var d=l(260),u=l(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,c,l){var d=l(260),u=l(2092).filter,f=l(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(g){var y=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(s,c,l){var d=l(260),u=l(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,c,l){var d=l(260),u=l(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,c,l){var d=l(260),u=l(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,c,l){var d=l(260),u=l(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,c,l){var d=l(260),u=l(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,c,l){var d=l(7854),u=l(260),f=l(6992),h=l(5112),p=h("iterator"),m=d.Uint8Array,g=f.values,y=f.keys,C=f.entries,E=u.aTypedArray,b=u.exportTypedArrayMethod,v=m&&m.prototype[p],k=!!v&&(v.name=="values"||v.name==null),_=function(){return g.call(E(this))};b("entries",function(){return C.call(E(this))}),b("keys",function(){return y.call(E(this))}),b("values",_,!k),b(p,_,!k)},8867:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,c,l){var d=l(260),u=l(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,c,l){var d=l(260),u=l(2092).map,f=l(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(y){return u(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,E){return new(p(f(C,C.constructor)))(E)})})},4483:function(s,c,l){var d=l(260),u=l(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,c,l){var d=l(260),u=l(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(m).length,y=h(g/2),C=0,E;C<y;)E=m[C],m[C++]=m[--g],m[g]=E;return m})},3462:function(s,c,l){var d=l(260),u=l(7466),f=l(4590),h=l(7908),p=l(7293),m=d.aTypedArray,g=d.exportTypedArrayMethod,y=p(function(){new Int8Array(1).set({})});g("set",function(E){m(this);var b=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,k=h(E),_=u(k.length),O=0;if(_+b>v)throw RangeError("Wrong length");for(;O<_;)this[b+O]=k[O++]},y)},678:function(s,c,l){var d=l(260),u=l(6707),f=l(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,g=[].slice,y=f(function(){new Int8Array(1).slice()});m("slice",function(E,b){for(var v=g.call(h(this),E,b),k=u(this,this.constructor),_=0,O=v.length,L=new(p(k))(O);O>_;)L[_]=v[_++];return L},y)},7462:function(s,c,l){var d=l(260),u=l(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,c,l){var d=l(260),u=l(7466),f=l(1400),h=l(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(y,C){var E=p(this),b=E.length,v=f(y,b);return new(h(E,E.constructor))(E.buffer,E.byteOffset+v*E.BYTES_PER_ELEMENT,u((C===void 0?b:f(C,b))-v))})},2974:function(s,c,l){var d=l(7854),u=l(260),f=l(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,g=[].toLocaleString,y=[].slice,C=!!h&&f(function(){g.call(new h(1))}),E=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(C?y.call(p(this)):p(this),arguments)},E)},5016:function(s,c,l){var d=l(260).exportTypedArrayMethod,u=l(7293),f=l(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;d("toString",m,y)},2472:function(s,c,l){var d=l(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,c,l){var d=l(7854),u=l(8324),f=l(8533),h=l(8880);for(var p in u){var m=d[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(s,c,l){var d=l(7854),u=l(8324),f=l(6992),h=l(8880),p=l(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in u){var E=d[C],b=E&&E.prototype;if(b){if(b[m]!==y)try{h(b,m,y)}catch{b[m]=y}if(b[g]||h(b,g,C),u[C]){for(var v in f)if(b[v]!==f[v])try{h(b,v,f[v])}catch{b[v]=f[v]}}}}},1637:function(s,c,l){l(6992);var d=l(2109),u=l(5005),f=l(590),h=l(1320),p=l(2248),m=l(8003),g=l(4994),y=l(9909),C=l(5787),E=l(6656),b=l(9974),v=l(648),k=l(9670),_=l(111),O=l(30),L=l(9114),N=l(8554),z=l(1246),V=l(5112),P=u("fetch"),j=u("Headers"),K=V("iterator"),F="URLSearchParams",W=F+"Iterator",Q=y.set,U=y.getterFor(F),ee=y.getterFor(W),ne=/\+/g,ae=Array(4),ue=function(M){return ae[M-1]||(ae[M-1]=RegExp("((?:%[\\da-f]{2}){"+M+"})","gi"))},me=function(M){try{return decodeURIComponent(M)}catch{return M}},Ee=function(M){var Y=M.replace(ne," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(ue(G--),me);return Y}},ke=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Se=function(M){return Oe[M]},D=function(M){return encodeURIComponent(M).replace(ke,Se)},$=function(M,Y){if(Y)for(var G=Y.split("&"),J=0,X,A;J<G.length;)X=G[J++],X.length&&(A=X.split("="),M.push({key:Ee(A.shift()),value:Ee(A.join("="))}))},x=function(M){this.entries.length=0,$(this.entries,M)},B=function(M,Y){if(M<Y)throw TypeError("Not enough arguments")},S=g(function(Y,G){Q(this,{type:W,iterator:N(U(Y).entries),kind:G})},"Iterator",function(){var Y=ee(this),G=Y.kind,J=Y.iterator.next(),X=J.value;return J.done||(J.value=G==="keys"?X.key:G==="values"?X.value:[X.key,X.value]),J}),w=function(){C(this,w,F);var Y=arguments.length>0?arguments[0]:void 0,G=this,J=[],X,A,T,H,Z,le,ge,Ae,te;if(Q(G,{type:F,entries:J,updateURL:function(){},updateSearchParams:x}),Y!==void 0)if(_(Y))if(X=z(Y),typeof X=="function")for(A=X.call(Y),T=A.next;!(H=T.call(A)).done;){if(Z=N(k(H.value)),le=Z.next,(ge=le.call(Z)).done||(Ae=le.call(Z)).done||!le.call(Z).done)throw TypeError("Expected sequence with length 2");J.push({key:ge.value+"",value:Ae.value+""})}else for(te in Y)E(Y,te)&&J.push({key:te,value:Y[te]+""});else $(J,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},I=w.prototype;p(I,{append:function(Y,G){B(arguments.length,2);var J=U(this);J.entries.push({key:Y+"",value:G+""}),J.updateURL()},delete:function(M){B(arguments.length,1);for(var Y=U(this),G=Y.entries,J=M+"",X=0;X<G.length;)G[X].key===J?G.splice(X,1):X++;Y.updateURL()},get:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;X++)if(G[X].key===J)return G[X].value;return null},getAll:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=[],A=0;A<G.length;A++)G[A].key===J&&X.push(G[A].value);return X},has:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;)if(G[X++].key===J)return!0;return!1},set:function(Y,G){B(arguments.length,1);for(var J=U(this),X=J.entries,A=!1,T=Y+"",H=G+"",Z=0,le;Z<X.length;Z++)le=X[Z],le.key===T&&(A?X.splice(Z--,1):(A=!0,le.value=H));A||X.push({key:T,value:H}),J.updateURL()},sort:function(){var Y=U(this),G=Y.entries,J=G.slice(),X,A,T;for(G.length=0,T=0;T<J.length;T++){for(X=J[T],A=0;A<T;A++)if(G[A].key>X.key){G.splice(A,0,X);break}A===T&&G.push(X)}Y.updateURL()},forEach:function(Y){for(var G=U(this).entries,J=b(Y,arguments.length>1?arguments[1]:void 0,3),X=0,A;X<G.length;)A=G[X++],J(A.value,A.key,this)},keys:function(){return new S(this,"keys")},values:function(){return new S(this,"values")},entries:function(){return new S(this,"entries")}},{enumerable:!0}),h(I,K,I.entries),h(I,"toString",function(){for(var Y=U(this).entries,G=[],J=0,X;J<Y.length;)X=Y[J++],G.push(D(X.key)+"="+D(X.value));return G.join("&")},{enumerable:!0}),m(w,F),d({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof P=="function"&&typeof j=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],J,X,A;return arguments.length>1&&(J=arguments[1],_(J)&&(X=J.body,v(X)===F&&(A=J.headers?new j(J.headers):new j,A.has("content-type")||A.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),J=O(J,{body:L(0,String(X)),headers:L(0,A)}))),G.push(J)),P.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}},285:function(s,c,l){l(8783);var d=l(2109),u=l(9781),f=l(590),h=l(7854),p=l(6048),m=l(1320),g=l(5787),y=l(6656),C=l(1574),E=l(8457),b=l(8710).codeAt,v=l(3197),k=l(8003),_=l(1637),O=l(9909),L=h.URL,N=_.URLSearchParams,z=_.getState,V=O.set,P=O.getterFor("URL"),j=Math.floor,K=Math.pow,F="Invalid authority",W="Invalid scheme",Q="Invalid host",U="Invalid port",ee=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,ue=/^(0x|0X)/,me=/^[0-7]+$/,Ee=/^\d+$/,ke=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Se=/[\u0000\t\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$=/[\t\u000A\u000D]/g,x,B=function(R,ie){var oe,ce,pe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=w(ie.slice(1,-1)),!oe))return Q;R.host=oe}else if(H(R)){if(ie=v(ie),Oe.test(ie)||(oe=S(ie),oe===null))return Q;R.host=oe}else{if(Se.test(ie))return Q;for(oe="",ce=E(ie),pe=0;pe<ce.length;pe++)oe+=A(ce[pe],Y);R.host=oe}},S=function(R){var ie=R.split("."),oe,ce,pe,$e,xe,et,at;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return R;for(ce=[],pe=0;pe<oe;pe++){if($e=ie[pe],$e=="")return R;if(xe=10,$e.length>1&&$e.charAt(0)=="0"&&(xe=ue.test($e)?16:8,$e=$e.slice(xe==8?1:2)),$e==="")et=0;else{if(!(xe==10?Ee:xe==8?me:ke).test($e))return R;et=parseInt($e,xe)}ce.push(et)}for(pe=0;pe<oe;pe++)if(et=ce[pe],pe==oe-1){if(et>=K(256,5-oe))return null}else if(et>255)return null;for(at=ce.pop(),pe=0;pe<ce.length;pe++)at+=ce[pe]*K(256,3-pe);return at},w=function(R){var ie=[0,0,0,0,0,0,0,0],oe=0,ce=null,pe=0,$e,xe,et,at,ht,_n,fe,Et=function(){return R.charAt(pe)};if(Et()==":"){if(R.charAt(1)!=":")return;pe+=2,oe++,ce=oe}for(;Et();){if(oe==8)return;if(Et()==":"){if(ce!==null)return;pe++,oe++,ce=oe;continue}for($e=xe=0;xe<4&&ke.test(Et());)$e=$e*16+parseInt(Et(),16),pe++,xe++;if(Et()=="."){if(xe==0||(pe-=xe,oe>6))return;for(et=0;Et();){if(at=null,et>0)if(Et()=="."&&et<4)pe++;else return;if(!ae.test(Et()))return;for(;ae.test(Et());){if(ht=parseInt(Et(),10),at===null)at=ht;else{if(at==0)return;at=at*10+ht}if(at>255)return;pe++}ie[oe]=ie[oe]*256+at,et++,(et==2||et==4)&&oe++}if(et!=4)return;break}else if(Et()==":"){if(pe++,!Et())return}else if(Et())return;ie[oe++]=$e}if(ce!==null)for(_n=oe-ce,oe=7;oe!=0&&_n>0;)fe=ie[oe],ie[oe--]=ie[ce+_n-1],ie[ce+--_n]=fe;else if(oe!=8)return;return ie},I=function(R){for(var ie=null,oe=1,ce=null,pe=0,$e=0;$e<8;$e++)R[$e]!==0?(pe>oe&&(ie=ce,oe=pe),ce=null,pe=0):(ce===null&&(ce=$e),++pe);return pe>oe&&(ie=ce,oe=pe),ie},M=function(R){var ie,oe,ce,pe;if(typeof R=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift(R%256),R=j(R/256);return ie.join(".")}else if(typeof R=="object"){for(ie="",ce=I(R),oe=0;oe<8;oe++)pe&&R[oe]===0||(pe&&(pe=!1),ce===oe?(ie+=oe?":":"::",pe=!0):(ie+=R[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return R},Y={},G=C({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),J=C({},G,{"#":1,"?":1,"{":1,"}":1}),X=C({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),A=function(R,ie){var oe=b(R,0);return oe>32&&oe<127&&!y(ie,R)?R:encodeURIComponent(R)},T={ftp:21,file:null,http:80,https:443,ws:80,wss:443},H=function(R){return y(T,R.scheme)},Z=function(R){return R.username!=""||R.password!=""},le=function(R){return!R.host||R.cannotBeABaseURL||R.scheme=="file"},ge=function(R,ie){var oe;return R.length==2&&ee.test(R.charAt(0))&&((oe=R.charAt(1))==":"||!ie&&oe=="|")},Ae=function(R){var ie;return R.length>1&&ge(R.slice(0,2))&&(R.length==2||(ie=R.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},te=function(R){var ie=R.path,oe=ie.length;oe&&(R.scheme!="file"||oe!=1||!ge(ie[0],!0))&&ie.pop()},se=function(R){return R==="."||R.toLowerCase()==="%2e"},_e=function(R){return R=R.toLowerCase(),R===".."||R==="%2e."||R===".%2e"||R==="%2e%2e"},Re={},it={},ct={},Ht={},re={},ve={},ye={},Me={},Pe={},st={},dt={},Wt={},Kt={},At={},er={},so={},cn={},Cn={},Ui={},En={},Er={},tr=function(R,ie,oe,ce){var pe=oe||Re,$e=0,xe="",et=!1,at=!1,ht=!1,_n,fe,Et,Sr;for(oe||(R.scheme="",R.username="",R.password="",R.host=null,R.port=null,R.path=[],R.query=null,R.fragment=null,R.cannotBeABaseURL=!1,ie=ie.replace(D,"")),ie=ie.replace($,""),_n=E(ie);$e<=_n.length;){switch(fe=_n[$e],pe){case Re:if(fe&&ee.test(fe))xe+=fe.toLowerCase(),pe=it;else{if(oe)return W;pe=ct;continue}break;case it:if(fe&&(ne.test(fe)||fe=="+"||fe=="-"||fe=="."))xe+=fe.toLowerCase();else if(fe==":"){if(oe&&(H(R)!=y(T,xe)||xe=="file"&&(Z(R)||R.port!==null)||R.scheme=="file"&&!R.host))return;if(R.scheme=xe,oe){H(R)&&T[R.scheme]==R.port&&(R.port=null);return}xe="",R.scheme=="file"?pe=At:H(R)&&ce&&ce.scheme==R.scheme?pe=Ht:H(R)?pe=Me:_n[$e+1]=="/"?(pe=re,$e++):(R.cannotBeABaseURL=!0,R.path.push(""),pe=Ui)}else{if(oe)return W;xe="",pe=ct,$e=0;continue}break;case ct:if(!ce||ce.cannotBeABaseURL&&fe!="#")return W;if(ce.cannotBeABaseURL&&fe=="#"){R.scheme=ce.scheme,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",R.cannotBeABaseURL=!0,pe=Er;break}pe=ce.scheme=="file"?At:ve;continue;case Ht:if(fe=="/"&&_n[$e+1]=="/")pe=Pe,$e++;else{pe=ve;continue}break;case re:if(fe=="/"){pe=st;break}else{pe=Cn;continue}case ve:if(R.scheme=ce.scheme,fe==x)R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query=ce.query;else if(fe=="/"||fe=="\\"&&H(R))pe=ye;else if(fe=="?")R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query="",pe=En;else if(fe=="#")R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",pe=Er;else{R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.path.pop(),pe=Cn;continue}break;case ye:if(H(R)&&(fe=="/"||fe=="\\"))pe=Pe;else if(fe=="/")pe=st;else{R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,pe=Cn;continue}break;case Me:if(pe=Pe,fe!="/"||xe.charAt($e+1)!="/")continue;$e++;break;case Pe:if(fe!="/"&&fe!="\\"){pe=st;continue}break;case st:if(fe=="@"){et&&(xe="%40"+xe),et=!0,Et=E(xe);for(var vh=0;vh<Et.length;vh++){var l3=Et[vh];if(l3==":"&&!ht){ht=!0;continue}var c3=A(l3,X);ht?R.password+=c3:R.username+=c3}xe=""}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)){if(et&&xe=="")return F;$e-=E(xe).length+1,xe="",pe=dt}else xe+=fe;break;case dt:case Wt:if(oe&&R.scheme=="file"){pe=so;continue}else if(fe==":"&&!at){if(xe=="")return Q;if(Sr=B(R,xe),Sr)return Sr;if(xe="",pe=Kt,oe==Wt)return}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)){if(H(R)&&xe=="")return Q;if(oe&&xe==""&&(Z(R)||R.port!==null))return;if(Sr=B(R,xe),Sr)return Sr;if(xe="",pe=cn,oe)return;continue}else fe=="["?at=!0:fe=="]"&&(at=!1),xe+=fe;break;case Kt:if(ae.test(fe))xe+=fe;else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)||oe){if(xe!=""){var bh=parseInt(xe,10);if(bh>65535)return U;R.port=H(R)&&bh===T[R.scheme]?null:bh,xe=""}if(oe)return;pe=cn;continue}else return U;break;case At:if(R.scheme="file",fe=="/"||fe=="\\")pe=er;else if(ce&&ce.scheme=="file")if(fe==x)R.host=ce.host,R.path=ce.path.slice(),R.query=ce.query;else if(fe=="?")R.host=ce.host,R.path=ce.path.slice(),R.query="",pe=En;else if(fe=="#")R.host=ce.host,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",pe=Er;else{Ae(_n.slice($e).join(""))||(R.host=ce.host,R.path=ce.path.slice(),te(R)),pe=Cn;continue}else{pe=Cn;continue}break;case er:if(fe=="/"||fe=="\\"){pe=so;break}ce&&ce.scheme=="file"&&!Ae(_n.slice($e).join(""))&&(ge(ce.path[0],!0)?R.path.push(ce.path[0]):R.host=ce.host),pe=Cn;continue;case so:if(fe==x||fe=="/"||fe=="\\"||fe=="?"||fe=="#"){if(!oe&&ge(xe))pe=Cn;else if(xe==""){if(R.host="",oe)return;pe=cn}else{if(Sr=B(R,xe),Sr)return Sr;if(R.host=="localhost"&&(R.host=""),oe)return;xe="",pe=cn}continue}else xe+=fe;break;case cn:if(H(R)){if(pe=Cn,fe!="/"&&fe!="\\")continue}else if(!oe&&fe=="?")R.query="",pe=En;else if(!oe&&fe=="#")R.fragment="",pe=Er;else if(fe!=x&&(pe=Cn,fe!="/"))continue;break;case Cn:if(fe==x||fe=="/"||fe=="\\"&&H(R)||!oe&&(fe=="?"||fe=="#")){if(_e(xe)?(te(R),fe!="/"&&!(fe=="\\"&&H(R))&&R.path.push("")):se(xe)?fe!="/"&&!(fe=="\\"&&H(R))&&R.path.push(""):(R.scheme=="file"&&!R.path.length&&ge(xe)&&(R.host&&(R.host=""),xe=xe.charAt(0)+":"),R.path.push(xe)),xe="",R.scheme=="file"&&(fe==x||fe=="?"||fe=="#"))for(;R.path.length>1&&R.path[0]==="";)R.path.shift();fe=="?"?(R.query="",pe=En):fe=="#"&&(R.fragment="",pe=Er)}else xe+=A(fe,J);break;case Ui:fe=="?"?(R.query="",pe=En):fe=="#"?(R.fragment="",pe=Er):fe!=x&&(R.path[0]+=A(fe,Y));break;case En:!oe&&fe=="#"?(R.fragment="",pe=Er):fe!=x&&(fe=="'"&&H(R)?R.query+="%27":fe=="#"?R.query+="%23":R.query+=A(fe,Y));break;case Er:fe!=x&&(R.fragment+=A(fe,G));break}$e++}},Uo=function(ie){var oe=g(this,Uo,"URL"),ce=arguments.length>1?arguments[1]:void 0,pe=String(ie),$e=V(oe,{type:"URL"}),xe,et;if(ce!==void 0){if(ce instanceof Uo)xe=P(ce);else if(et=tr(xe={},String(ce)),et)throw TypeError(et)}if(et=tr($e,pe,null,xe),et)throw TypeError(et);var at=$e.searchParams=new N,ht=z(at);ht.updateSearchParams($e.query),ht.updateURL=function(){$e.query=String(at)||null},u||(oe.href=Oc.call(oe),oe.origin=Qv.call(oe),oe.protocol=Zv.call(oe),oe.username=Jv.call(oe),oe.password=Xv.call(oe),oe.host=qv.call(oe),oe.hostname=e3.call(oe),oe.port=t3.call(oe),oe.pathname=n3.call(oe),oe.search=r3.call(oe),oe.searchParams=o3.call(oe),oe.hash=i3.call(oe))},yh=Uo.prototype,Oc=function(){var R=P(this),ie=R.scheme,oe=R.username,ce=R.password,pe=R.host,$e=R.port,xe=R.path,et=R.query,at=R.fragment,ht=ie+":";return pe!==null?(ht+="//",Z(R)&&(ht+=oe+(ce?":"+ce:"")+"@"),ht+=M(pe),$e!==null&&(ht+=":"+$e)):ie=="file"&&(ht+="//"),ht+=R.cannotBeABaseURL?xe[0]:xe.length?"/"+xe.join("/"):"",et!==null&&(ht+="?"+et),at!==null&&(ht+="#"+at),ht},Qv=function(){var R=P(this),ie=R.scheme,oe=R.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!H(R)?"null":ie+"://"+M(R.host)+(oe!==null?":"+oe:"")},Zv=function(){return P(this).scheme+":"},Jv=function(){return P(this).username},Xv=function(){return P(this).password},qv=function(){var R=P(this),ie=R.host,oe=R.port;return ie===null?"":oe===null?M(ie):M(ie)+":"+oe},e3=function(){var R=P(this).host;return R===null?"":M(R)},t3=function(){var R=P(this).port;return R===null?"":String(R)},n3=function(){var R=P(this),ie=R.path;return R.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},r3=function(){var R=P(this).query;return R?"?"+R:""},o3=function(){return P(this).searchParams},i3=function(){var R=P(this).fragment;return R?"#"+R:""},Sn=function(R,ie){return{get:R,set:ie,configurable:!0,enumerable:!0}};if(u&&p(yh,{href:Sn(Oc,function(R){var ie=P(this),oe=String(R),ce=tr(ie,oe);if(ce)throw TypeError(ce);z(ie.searchParams).updateSearchParams(ie.query)}),origin:Sn(Qv),protocol:Sn(Zv,function(R){var ie=P(this);tr(ie,String(R)+":",Re)}),username:Sn(Jv,function(R){var ie=P(this),oe=E(String(R));if(!le(ie)){ie.username="";for(var ce=0;ce<oe.length;ce++)ie.username+=A(oe[ce],X)}}),password:Sn(Xv,function(R){var ie=P(this),oe=E(String(R));if(!le(ie)){ie.password="";for(var ce=0;ce<oe.length;ce++)ie.password+=A(oe[ce],X)}}),host:Sn(qv,function(R){var ie=P(this);ie.cannotBeABaseURL||tr(ie,String(R),dt)}),hostname:Sn(e3,function(R){var ie=P(this);ie.cannotBeABaseURL||tr(ie,String(R),Wt)}),port:Sn(t3,function(R){var ie=P(this);le(ie)||(R=String(R),R==""?ie.port=null:tr(ie,R,Kt))}),pathname:Sn(n3,function(R){var ie=P(this);ie.cannotBeABaseURL||(ie.path=[],tr(ie,R+"",cn))}),search:Sn(r3,function(R){var ie=P(this);R=String(R),R==""?ie.query=null:(R.charAt(0)=="?"&&(R=R.slice(1)),ie.query="",tr(ie,R,En)),z(ie.searchParams).updateSearchParams(ie.query)}),searchParams:Sn(o3),hash:Sn(i3,function(R){var ie=P(this);if(R=String(R),R==""){ie.fragment=null;return}R.charAt(0)=="#"&&(R=R.slice(1)),ie.fragment="",tr(ie,R,Er)})}),m(yh,"toJSON",function(){return Oc.call(this)},{enumerable:!0}),m(yh,"toString",function(){return Oc.call(this)},{enumerable:!0}),L){var s3=L.createObjectURL,a3=L.revokeObjectURL;s3&&m(Uo,"createObjectURL",function(ie){return s3.apply(L,arguments)}),a3&&m(Uo,"revokeObjectURL",function(ie){return a3.apply(L,arguments)})}k(Uo,"URL"),d({global:!0,forced:!f,sham:!u},{URL:Uo})}},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 l in c)o.o(c,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return U},default:function(){return Se}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(D,$){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=c(D))||$&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1229
|
+
`,mw={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"},gw=gt.extend({name:"splitbutton",style:pw,classes:mw}),yw={name:"BaseSplitButton",extends:ps,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:gw,provide:function(){return{$pcSplitButton:this,$parentInstance:this}}},Jm={name:"SplitButton",extends:yw,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 In(this.fluid)?!!this.$pcFluid:this.fluid}},components:{PVSButton:Km,PVSMenu:Zm,ChevronDownIcon:Sm}},vw=["data-p-severity"];function bw(t,e,n,r,o,i){var s=a.resolveComponent("PVSButton"),c=a.resolveComponent("PVSMenu");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:i.containerClass,style:t.style},t.ptmi("root"),{"data-p-severity":t.severity}),[a.createVNode(s,a.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}),a.createSlots({default:a.withCtx(function(){return[a.renderSlot(t.$slots,"default")]}),_:2},[t.$slots.icon?{name:"icon",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"icon",{class:a.normalizeClass(l.class)},function(){return[a.createElementVNode("span",a.mergeProps({class:[t.icon,l.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"]),a.createVNode(s,a.mergeProps({ref:"button",type:"button",class:t.cx("pcDropdown"),disabled:t.disabled,"aria-haspopup":"true","aria-expanded":o.isExpanded,"aria-controls":t.$id+"_overlay",onClick:i.onDropdownButtonClick,onKeydown:i.onDropdownKeydown,severity:t.severity,text:t.text,outlined:t.outlined,size:t.size,unstyled:t.unstyled},t.menuButtonProps,{pt:t.ptm("pcDropdown")}),{icon:a.withCtx(function(l){return[a.renderSlot(t.$slots,t.$slots.dropdownicon?"dropdownicon":"menubuttonicon",{class:a.normalizeClass(l.class)},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.menuButtonIcon||t.dropdownIcon?"span":"ChevronDownIcon"),a.mergeProps({class:[t.dropdownIcon||t.menuButtonIcon,l.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"]),a.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")},a.createSlots({_:2},[t.$slots.menuitemicon?{name:"itemicon",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"menuitemicon",{item:l.item,class:a.normalizeClass(l.class)})]}),key:"0"}:void 0,t.$slots.item?{name:"item",fn:a.withCtx(function(l){return[a.renderSlot(t.$slots,"item",{item:l.item,hasSubmenu:l.hasSubmenu,label:l.label,props:l.props})]}),key:"1"}:void 0]),1032,["id","model","autoZIndex","baseZIndex","appendTo","unstyled","pt"])],16,vw)}Jm.render=bw;const Cw=["src"],Ew={class:"menu-item"},Sw=["src"],Xm={__name:"BDContentLibrarySplitButton",props:{contentLibraryProviders:{type:Array,default:()=>[]},isExternalOnly:{type:Boolean,default:!1}},emits:["content-library"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>n.contentLibraryProviders.map(u=>({label:u.label,image:u.img,value:u.value,command:()=>e("content-library",u.value)}))),i=a.computed(()=>{let u=o.value;return u.length!==0&&n.isExternalOnly&&(u=u.slice(1)),u}),s=a.computed(()=>{const u=o.value;return n.isExternalOnly&&u.length>0?u[0].label:r("contentLibrarySplitButton.messageTemplatesTitle")}),c=a.computed(()=>{const u=o.value;return n.isExternalOnly&&u.length>0}),l=a.computed(()=>{const u=o.value;return u.length>0?u[0].image:""}),d=()=>{const u=o.value;let f="message-template";n.isExternalOnly&&u.length>0&&(f=u[0].value),e("content-library",f)};return(u,f)=>(a.openBlock(),a.createBlock(a.unref(Jm),{class:"bd-content-library-split-button",model:i.value,outlined:"",severity:"secondary",onClick:d},{default:a.withCtx(()=>[c.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:l.value,alt:""},null,8,Cw)):(a.openBlock(),a.createBlock(Vc,{key:1})),a.createElementVNode("span",null,a.toDisplayString(s.value),1)]),item:a.withCtx(({item:h})=>[a.createElementVNode("div",Ew,[a.createElementVNode("img",{src:h.image,alt:"",class:"icon-image"},null,8,Sw),a.createElementVNode("span",null,a.toDisplayString(h.label),1)])]),_:1},8,["model"]))}},_w={class:"invalid-feedback bd-invalid-feedback"},Va=a.defineComponent({__name:"BDFormInvalidFeedback",props:{state:{type:[Boolean,null],default:null},text:{default:""}},setup(t){const e=t;return(n,r)=>(a.openBlock(),a.createElementBlock("div",_w,[e.state?(a.openBlock(),a.createBlock(a.unref(Ho),{key:0})):(a.openBlock(),a.createBlock(a.unref(pa),{key:1})),a.createTextVNode(" "+a.toDisplayString(e.text),1)]))}});/*! maska v2.1.11 | (c) Alexander Shabunevich | Released under the MIT license */var ww=Object.defineProperty,kw=(t,e,n)=>e in t?ww(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Es=(t,e,n)=>(kw(t,typeof e!="symbol"?e+"":e,n),n);const qm={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}};class e0{constructor(e={}){Es(this,"opts",{}),Es(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...qm,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=qm;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,o)=>r.length-o.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:typeof this.opts.mask=="function"?r>=n.length:this.opts.mask.filter(o=>r>=o.length).length===this.opts.mask.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(o=>this.process(e,o,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((o,i)=>{o==="!"&&e[i-1]!=="!"?r.push(i-r.length):n.push(o)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(n==null)return e;const o=`value=${e},mask=${n},masked=${r?1:0}`;if(this.memo.has(o))return this.memo.get(o);const{mask:i,escaped:s}=this.escapeMask(n),c=[],l=this.opts.tokens!=null?this.opts.tokens:{},d=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",f=this.isReversed()?0:i.length-1,h=this.isReversed()?()=>y>-1&&C>-1:()=>y<i.length&&C<e.length,p=b=>!this.isReversed()&&b<=f||this.isReversed()&&b>=f;let m,g=-1,y=this.isReversed()?i.length-1:0,C=this.isReversed()?e.length-1:0,E=!1;for(;h();){const b=i.charAt(y),v=l[b],k=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(C)):e.charAt(C);if(!s.includes(y)&&v!=null?(k.match(v.pattern)!=null?(c[u](k),v.repeated?(g===-1?g=y:y===f&&y!==g&&(y=g-d),f===g&&(y-=d)):v.multiple&&(E=!0,y-=d),y+=d):v.multiple?E&&(y+=d,C-=d,E=!1):k===m?m=void 0:v.optional&&(y+=d,C-=d),C+=d):(r&&!this.isEager()&&c[u](b),k===b&&!this.isEager()?C+=d:m=b,this.isEager()||(y+=d)),this.isEager())for(;p(y)&&(l[i.charAt(y)]==null||s.includes(y));)r?c[u](i.charAt(y)):i.charAt(y)===e.charAt(C)&&(C+=d),y+=d}return this.memo.set(o,c.join("")),this.memo.get(o)}}const t0=t=>JSON.parse(t.replaceAll("'",'"')),n0=(t,e={})=>{const n={...e};return t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Aw(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Fd(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Fd(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Fd(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Tw(t.dataset.maskaTokens)),n},Fd=t=>t!==""?!!JSON.parse(t):!0,Aw=t=>t.startsWith("[")&&t.endsWith("]")?t0(t):t,Tw=t=>{if(t.startsWith("{")&&t.endsWith("}"))return t0(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};class Iw{constructor(e,n={}){Es(this,"items",new Map),Es(this,"beforeinputEvent",r=>{const o=r.target,i=this.items.get(o);i.isEager()&&"inputType"in r&&r.inputType.startsWith("delete")&&i.unmasked(o.value).length<=1&&this.setMaskedValue(o,"")}),Es(this,"inputEvent",r=>{if(r instanceof CustomEvent&&r.type==="input"&&r.detail!=null&&typeof r.detail=="object"&&"masked"in r.detail)return;const o=r.target,i=this.items.get(o),s=o.value,c=o.selectionStart,l=o.selectionEnd;let d=s;if(i.isEager()){const u=i.masked(s),f=i.unmasked(s);f===""&&"data"in r&&r.data!=null?d=r.data:f!==i.unmasked(u)&&(d=f)}if(this.setMaskedValue(o,d),"inputType"in r&&(r.inputType.startsWith("delete")||c!=null&&c<s.length))try{o.setSelectionRange(c,l)}catch{}}),this.options=n,typeof e=="string"?this.init(Array.from(document.querySelectorAll(e)),this.getMaskOpts(n)):this.init("length"in e?Array.from(e):[e],this.getMaskOpts(n))}destroy(){for(const e of this.items.keys())e.removeEventListener("input",this.inputEvent),e.removeEventListener("beforeinput",this.beforeinputEvent);this.items.clear()}needUpdateOptions(e,n){const r=this.items.get(e),o=new e0(n0(e,this.getMaskOpts(n)));return JSON.stringify(r.opts)!==JSON.stringify(o.opts)}needUpdateValue(e){const n=e.dataset.maskaValue;return n==null&&e.value!==""||n!=null&&n!==e.value}getMaskOpts(e){const{onMaska:n,preProcess:r,postProcess:o,...i}=e;return i}init(e,n){for(const r of e){const o=new e0(n0(r,n));this.items.set(r,o),r.value!==""&&this.setMaskedValue(r,r.value),r.addEventListener("input",this.inputEvent),r.addEventListener("beforeinput",this.beforeinputEvent)}}setMaskedValue(e,n){const r=this.items.get(e);this.options.preProcess!=null&&(n=this.options.preProcess(n));const o=r.masked(n),i=r.unmasked(r.isEager()?o:n),s=r.completed(n),c={masked:o,unmasked:i,completed:s};n=o,this.options.postProcess!=null&&(n=this.options.postProcess(n)),e.value=n,e.dataset.maskaValue=n,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(l=>l(c)):this.options.onMaska(c)),e.dispatchEvent(new CustomEvent("maska",{detail:c})),e.dispatchEvent(new CustomEvent("input",{detail:c}))}}const jd=new WeakMap,xw=t=>{setTimeout(()=>{var e;((e=jd.get(t))==null?void 0:e.needUpdateValue(t))===!0&&t.dispatchEvent(new CustomEvent("input"))})},Ow=(t,e)=>{const n=t instanceof HTMLInputElement?t:t.querySelector("input"),r={...e.arg};if(n==null||(n==null?void 0:n.type)==="file")return;xw(n);const o=jd.get(n);if(o!=null){if(!o.needUpdateOptions(n,r))return;o.destroy()}if(e.value!=null){const i=e.value,s=c=>{i.masked=c.masked,i.unmasked=c.unmasked,i.completed=c.completed};r.onMaska=r.onMaska==null?s:Array.isArray(r.onMaska)?[...r.onMaska,s]:[r.onMaska,s]}jd.set(n,new Iw(n,r))},Nw=["value","type"],Lr=a.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:ut.MD},tabindex:{default:null},invalidFeedbackClass:{default:void 0},invalidFeedbackText:{default:void 0},delayTimeMs:{default:0},mask:{default:void 0}},emits:["update:modelValue","click","blur","enter"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=co(n,"modelValue",e),i=`__BD__FORM__LABEL__${r.value}`,s=`__BD__FORM__GROUP__${r.value}`,c=`form-input-${n.label?n.label.replace(/ /g,"-").toLowerCase():r.value}`,l=`validationFeedback${n.label?n.label.replace(/ /g,""):r.value}`,d=a.computed(()=>({[`${n.inputClass}`]:n.inputClass,"is-invalid":n.state===!1,"is-valid":n.state===!0,[`form-control-${n.size}`]:n.size})),u=a.computed(()=>({[`${n.invalidFeedbackClass}`]:n.invalidFeedbackClass,"is-invalid":n.state===!1})),f=a.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?l:null,"data-maska":n.mask})),h=nC(p=>{o.value=p.target.value},n.delayTimeMs);return(p,m)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-form-input",p.formGroupClass]),id:s},[a.renderSlot(p.$slots,"label",{},()=>[p.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:c,id:i,class:a.normalizeClass(["form-label",p.labelClass])},a.toDisplayString(p.label),3)):a.createCommentVNode("",!0)]),a.createElementVNode("div",{class:a.normalizeClass(p.formFieldClass)},[a.withDirectives(a.createElementVNode("input",a.mergeProps({value:p.modelValue,type:p.type,id:c,class:["form-control",d.value]},f.value,{onInput:m[0]||(m[0]=(...g)=>a.unref(h)&&a.unref(h)(...g)),onClick:m[1]||(m[1]=g=>p.$emit("click")),onBlur:m[2]||(m[2]=g=>p.$emit("blur")),onKeydown:m[3]||(m[3]=a.withKeys(g=>p.$emit("enter"),["enter"]))}),null,16,Nw),[[a.unref(Ow)]]),a.renderSlot(p.$slots,"default")],2),a.createVNode(Va,{text:p.invalidFeedbackText,class:a.normalizeClass(u.value),state:p.state,id:l},null,8,["text","class","state"])],2))}}),Mw={class:"input-group bd-input-group"},Lw=["for"],Ss=a.defineComponent({__name:"BDInputGroup",props:{label:{default:void 0},labelForId:{default:void 0}},setup(t){const e=t,n=a.useAttrs();return(r,o)=>(a.openBlock(),a.createElementBlock("fieldset",Mw,[e.label?(a.openBlock(),a.createElementBlock("label",{key:0,for:e.labelForId,class:"form-label"},a.toDisplayString(e.label),9,Lw)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(a.unref(n).class)},[a.renderSlot(r.$slots,"default")],2)]))}}),Dw={key:0},Pw={key:1},r0=a.defineComponent({__name:"BDBadge",props:{variant:{default:ya.PRIMARY}},setup(t){const e=t,n=a.computed(()=>["badge","bd-badge",`bd-badge-${e.variant}`]);return(r,o)=>(a.openBlock(),a.createElementBlock("span",{role:"status",class:a.normalizeClass(n.value)},[r.variant==="danger"?(a.openBlock(),a.createElementBlock("span",Dw,[a.createVNode(a.unref(wr))])):a.createCommentVNode("",!0),r.variant==="success"?(a.openBlock(),a.createElementBlock("span",Pw,[a.createVNode(a.unref(Ho))])):a.createCommentVNode("",!0),a.renderSlot(r.$slots,"default")],2))}}),Bw=["onSubmit","onReset"],o0=a.defineComponent({__name:"BDForm",emits:["submit","reset"],setup(t,{emit:e}){function n(){e("submit")}function r(){e("reset")}return(o,i)=>(a.openBlock(),a.createElementBlock("form",{onSubmit:a.withModifiers(n,["prevent"]),onReset:a.withModifiers(r,["prevent"])},[a.renderSlot(o.$slots,"default")],40,Bw))}}),$w={"aria-label":"Page navigation",class:"bd-pagination"},Rw={class:"page-item"},Vw=["data-page"],Fw=["data-page"],jw={class:"page-item"},zw=["data-page"],zd=a.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=co(n,"modelValue",e),o=a.ref(Math.ceil(n.totalRows/n.rowsPerPage)),i=a.ref([]);a.watch([()=>n.totalRows,()=>n.rowsPerPage],()=>{o.value=Math.ceil(n.totalRows/n.rowsPerPage),i.value=u(r.value)}),a.onMounted(()=>{i.value=u(r.value)});const s=a.computed(()=>({[`${n.class}`]:n.class,colleague:!n.isPatient})),c=f=>{const h=f.currentTarget.getAttribute("data-page"),p=Number(h);isNaN(Number(p))||(r.value=p,i.value=u(p)),e("click",p)},l=(f,h,p)=>p<=h?p:f==1?6:f<=4?5:1,d=(f,h,p)=>p<=h?0:f==p?6:f>p-4?5:1,u=f=>{const h=[],m=l(f,7,o.value),g=o.value>7&&f>4,y=o.value>7&&f<o.value-3,C=g&&y,E=d(f,7,o.value);for(let b=1;b<=m;b++)h.push(b);if(g&&h.push("..."),C)for(let b=f-1;b<=f+1;b++)h.push(b);y&&h.push("...");for(let b=1;b<=E;b++)h.push(o.value-E+b);return h};return(f,h)=>(a.openBlock(),a.createElementBlock("div",$w,[a.createElementVNode("ul",{class:a.normalizeClass(["pagination",s.value])},[a.withDirectives(a.createElementVNode("li",Rw,[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Previous",onClick:c,"data-page":a.unref(r)-1},[a.createVNode(a.unref($c))],8,Vw)],512),[[a.vShow,a.unref(r)>1]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,p=>(a.openBlock(),a.createElementBlock("li",{class:a.normalizeClass(["page-item",{active:a.unref(r)===p,disabled:typeof p=="string"}]),key:p},[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center",onClick:c,"data-page":p},a.toDisplayString(p),9,Fw)],2))),128)),a.withDirectives(a.createElementVNode("li",jw,[a.createElementVNode("a",{class:"page-link d-flex justify-content-center align-items-center","aria-label":"Next",onClick:c,"data-page":a.unref(r)+1},[a.createVNode(a.unref(Rc))],8,zw)],512),[[a.vShow,a.unref(r)<o.value]])],2)]))}}),Uw=["disabled"],Hw=["label"],Ww=["value"],Kw=["value"],i0=a.defineComponent({__name:"BDFormSelect",props:{size:{default:ut.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=co(n,"modelValue",e),o=a.ref(null),{focused:i}=iC(o,{initialValue:n.autofocus}),s=a.computed(()=>({"form-select":!0,"bd-form-select":!0,"is-invalid":n.state===!1,[`form-select-${n.size}`]:["xs","sm","lg"].includes(n.size)}));a.watch(()=>n.autofocus,u=>{u&&(i.value=!0)});const c=u=>{r.value=u.target.value;let f=d(u.target.value);e("input",f)},l=u=>{let f=d(u.target.value);e("change",f)},d=u=>{try{return JSON.parse(u)}catch{return u}};return(u,f)=>a.withDirectives((a.openBlock(),a.createElementBlock("select",{class:a.normalizeClass(s.value),"onUpdate:modelValue":f[0]||(f[0]=h=>a.isRef(r)?r.value=h:null),disabled:n.disabled,ref_key:"input",ref:o,onInput:c,onChange:l},[a.renderSlot(u.$slots,"first"),n.options&&n.options.length>0&&n.options[0].label&&n.options[0].options?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(n.options,h=>(a.openBlock(),a.createElementBlock("optgroup",{label:h.label},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.options,p=>(a.openBlock(),a.createElementBlock("option",{value:JSON.stringify(p.value),key:p.value},a.toDisplayString(p.text),9,Ww))),128))],8,Hw))),256)):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(n.options,h=>(a.openBlock(),a.createElementBlock("option",{value:h.value,key:h.value},a.toDisplayString(h.text),9,Kw))),128))],42,Uw)),[[a.vModelSelect,a.unref(r)]])}}),Yw=["value","true-value","false-value","data-checked"],Dr=a.defineComponent({__name:"BDFormCheckbox",props:{modelValue:{type:[Boolean,String,Array],default:void 0},value:{type:[Boolean,String],default:!0},uncheckedValue:{type:[Boolean,String],default:!1},state:{type:[Boolean,null],default:void 0}},emits:["update:modelValue","change","input"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=co(n,"modelValue",e),i=`form-check-input-${r.value}`,s=a.computed(()=>["form-check","bd-form-checkbox"]),c=a.computed(()=>({"form-check-input":!0,"is-invalid":n.state===!1})),l=d=>e("change",d.target.value);return(d,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(s.value)},[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":u[0]||(u[0]=f=>a.isRef(o)?o.value=f:null),id:i,class:a.normalizeClass(c.value),type:"checkbox",value:d.value,"true-value":d.value,"false-value":d.uncheckedValue,"data-checked":a.unref(o)===d.value,onChange:l},null,42,Yw),[[a.vModelCheckbox,a.unref(o)]]),a.createElementVNode("label",{class:"form-check-label",for:i},[a.renderSlot(d.$slots,"default")]),a.renderSlot(d.$slots,"last")],2))}}),Gw={key:0,class:"bd-article__body"},Qw={key:1},s0=a.defineComponent({__name:"BDArticle",props:{title:{default:""},text:{default:""},hideBody:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},identifier:{}},emits:["click"],setup(t,{emit:e}){const n=t,r=o=>e("click",{event:o,identifier:n.identifier});return(o,i)=>(a.openBlock(),a.createElementBlock("article",{class:"bd-article",onClick:r},[a.createElementVNode("header",null,[a.renderSlot(o.$slots,"header",{},()=>[a.createElementVNode("h5",null,a.toDisplayString(n.title),1)])]),n.hideBody?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",Gw,[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])])),n.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("footer",Qw,[a.renderSlot(o.$slots,"footer")]))]))}}),ti={DANGER:"danger",WARNING:"warning",INFO:"info",SUCCESS:"success"},Zw=["id"],Jw={class:"toast-header"},Xw=a.createElementVNode("button",{type:"button",class:"btn-close","data-bs-dismiss":"toast","aria-label":"Close"},null,-1),qw={class:"toast-body"},Ud=a.defineComponent({__name:"BDToast",props:{id:{},variant:{default:ti.INFO},title:{default:""},text:{default:""}},setup(t){const e=t,n=a.computed(()=>({[`bd-toast-${e.variant}`]:!0})),r=a.computed(()=>e.variant!==ti.SUCCESS);return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["toast bd-toast",n.value]),role:"alert","aria-live":"assertive","aria-atomic":"true",key:e.id,id:e.id},[a.createElementVNode("div",Jw,[r.value?(a.openBlock(),a.createBlock(a.unref(wr),{key:0})):(a.openBlock(),a.createBlock(a.unref(Ho),{key:1})),a.createElementVNode("h5",null,a.toDisplayString(e.title),1),Xw]),a.createElementVNode("div",qw,[a.createElementVNode("span",null,a.toDisplayString(e.text),1)])],10,Zw))}}),Be="",Fa=t=>typeof t=="string"||t instanceof String,ek={class:"bd-pill"},tk=["src"],nk={class:"bd-pill__description"},rk=["href"],ok=["id","textContent","title"],ik=["id","textContent","title"],ja=a.defineComponent({__name:"BDPill",props:{imgSrc:{default:Be},uri:{default:Be},uriDisplayName:{default:Be},title:{default:Be},subtitle:{default:Be},showClose:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){const n=t,{uniqueIdentifier:r}=Wo(),o=a.computed(()=>n.uri),i=a.computed(()=>n.uriDisplayName!==Be?n.uriDisplayName:n.uri),s=a.computed(()=>n.imgSrc),c=a.computed(()=>n.title),l=a.computed(()=>n.subtitle),d=a.computed(()=>`bd-pill-title-${r.value}`),u=a.computed(()=>`bd-pill-subtitle-${r.value}`);return(f,h)=>(a.openBlock(),a.createElementBlock("div",ek,[a.createElementVNode("img",{src:s.value,class:"bd-pill__logo",alt:"logo-externe-partij"},null,8,tk),a.createElementVNode("div",nk,[a.createElementVNode("a",{href:o.value,class:"bd-pill__link",target:"_blank",rel:"noopener noreferrer"},[a.createVNode(a.unref(ma),{class:"bd-pill__icon-hyperlink",style:{height:"12px"}}),a.createTextVNode(" "+a.toDisplayString(i.value),1)],8,rk),a.createElementVNode("span",{class:"bd-pill__title",id:d.value,textContent:a.toDisplayString(c.value),"data-bs-toggle":"tooltip",title:c.value},null,8,ok),a.createElementVNode("span",{class:"bd-pill__subtitle",id:u.value,textContent:a.toDisplayString(l.value),"data-bs-toggle":"tooltip",title:l.value},null,8,ik)])]))}});function sk(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 ak(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(u){try{d(r.next(u))}catch(f){s(f)}}function l(u){try{d(r.throw(u))}catch(f){s(f)}}function d(u){u.done?i(u.value):o(u.value).then(c,l)}d((r=r.apply(t,e||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const lk=t=>Array.isArray(t)&&t.length>0,ck=t=>Object.keys(t).map(e=>t[e]),Hd=t=>Array.isArray(t)&&t.length>0,a0=t=>!t||Array.isArray(t)&&!t.length,Wd={name:"BDUserInformation",props:{value:{type:Object},showProfilePicture:{type:Boolean}},render(){const t=this.value,{name:e,profilePictureUri:n,extra:r}=t,o=sk(t,["name","profilePictureUri","extra"]),i=n&&this.showProfilePicture?a.h("img",{class:"bd-user-information__profile-picture",src:n,alt:e}):null;let c=[a.h("h4",null,e)];this.$slots.default&&c.push(this.$slots.default());const l=a.h("div",{class:"bd-user-information__header"},c),d=a.h("small",null,ck(o).filter(f=>f).join(" • ")),u=a.h("div",{class:"bd-user-information__detail"},[l,d]);return a.h("div",{class:"bd-user-information"},[i,u])}},l0={date:"",displayTime:!0,format:"numeric"};var ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",l="hour",d="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var F=["th","st","nd","rd"],W=K%100;return"["+K+(F[(W-20)%10]||F[W]||F[0])+"]"}},b=function(K,F,W){var Q=String(K);return!Q||Q.length>=F?K:""+Array(F+1-Q.length).join(W)+K},v={s:b,z:function(K){var F=-K.utcOffset(),W=Math.abs(F),Q=Math.floor(W/60),U=W%60;return(F<=0?"+":"-")+b(Q,2,"0")+":"+b(U,2,"0")},m:function K(F,W){if(F.date()<W.date())return-K(W,F);var Q=12*(W.year()-F.year())+(W.month()-F.month()),U=F.clone().add(Q,f),ee=W-U<0,ne=F.clone().add(Q+(ee?-1:1),f);return+(-(Q+(W-U)/(ee?U-ne:ne-U))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:u,d,D:m,h:l,m:c,s,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},k="en",_={};_[k]=E;var O="$isDayjsObject",L=function(K){return K instanceof P||!(!K||!K[O])},N=function K(F,W,Q){var U;if(!F)return k;if(typeof F=="string"){var ee=F.toLowerCase();_[ee]&&(U=ee),W&&(_[ee]=W,U=ee);var ne=F.split("-");if(!U&&ne.length>1)return K(ne[0])}else{var ae=F.name;_[ae]=F,U=ae}return!Q&&U&&(k=U),U||!Q&&k},z=function(K,F){if(L(K))return K.clone();var W=typeof F=="object"?F:{};return W.date=K,W.args=arguments,new P(W)},V=v;V.l=N,V.i=L,V.w=function(K,F){return z(K,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function K(W){this.$L=N(W.locale,null,!0),this.parse(W),this.$x=this.$x||W.x||{},this[O]=!0}var F=K.prototype;return F.parse=function(W){this.$d=function(Q){var U=Q.date,ee=Q.utc;if(U===null)return new Date(NaN);if(V.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ne=U.match(y);if(ne){var ae=ne[2]-1||0,ue=(ne[7]||"0").substring(0,3);return ee?new Date(Date.UTC(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)):new Date(ne[1],ae,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,ue)}}return new Date(U)}(W),this.init()},F.init=function(){var W=this.$d;this.$y=W.getFullYear(),this.$M=W.getMonth(),this.$D=W.getDate(),this.$W=W.getDay(),this.$H=W.getHours(),this.$m=W.getMinutes(),this.$s=W.getSeconds(),this.$ms=W.getMilliseconds()},F.$utils=function(){return V},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(W,Q){var U=z(W);return this.startOf(Q)<=U&&U<=this.endOf(Q)},F.isAfter=function(W,Q){return z(W)<this.startOf(Q)},F.isBefore=function(W,Q){return this.endOf(Q)<z(W)},F.$g=function(W,Q,U){return V.u(W)?this[Q]:this.set(U,W)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(W,Q){var U=this,ee=!!V.u(Q)||Q,ne=V.p(W),ae=function($,x){var B=V.w(U.$u?Date.UTC(U.$y,x,$):new Date(U.$y,x,$),U);return ee?B:B.endOf(d)},ue=function($,x){return V.w(U.toDate()[$].apply(U.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(x)),U)},me=this.$W,Ee=this.$M,ke=this.$D,Oe="set"+(this.$u?"UTC":"");switch(ne){case p:return ee?ae(1,0):ae(31,11);case f:return ee?ae(1,Ee):ae(0,Ee+1);case u:var Se=this.$locale().weekStart||0,D=(me<Se?me+7:me)-Se;return ae(ee?ke-D:ke+(6-D),Ee);case d:case m:return ue(Oe+"Hours",0);case l:return ue(Oe+"Minutes",1);case c:return ue(Oe+"Seconds",2);case s:return ue(Oe+"Milliseconds",3);default:return this.clone()}},F.endOf=function(W){return this.startOf(W,!1)},F.$set=function(W,Q){var U,ee=V.p(W),ne="set"+(this.$u?"UTC":""),ae=(U={},U[d]=ne+"Date",U[m]=ne+"Date",U[f]=ne+"Month",U[p]=ne+"FullYear",U[l]=ne+"Hours",U[c]=ne+"Minutes",U[s]=ne+"Seconds",U[i]=ne+"Milliseconds",U)[ee],ue=ee===d?this.$D+(Q-this.$W):Q;if(ee===f||ee===p){var me=this.clone().set(m,1);me.$d[ae](ue),me.init(),this.$d=me.set(m,Math.min(this.$D,me.daysInMonth())).$d}else ae&&this.$d[ae](ue);return this.init(),this},F.set=function(W,Q){return this.clone().$set(W,Q)},F.get=function(W){return this[V.p(W)]()},F.add=function(W,Q){var U,ee=this;W=Number(W);var ne=V.p(Q),ae=function(Ee){var ke=z(ee);return V.w(ke.date(ke.date()+Math.round(Ee*W)),ee)};if(ne===f)return this.set(f,this.$M+W);if(ne===p)return this.set(p,this.$y+W);if(ne===d)return ae(1);if(ne===u)return ae(7);var ue=(U={},U[c]=r,U[l]=o,U[s]=n,U)[ne]||1,me=this.$d.getTime()+W*ue;return V.w(me,this)},F.subtract=function(W,Q){return this.add(-1*W,Q)},F.format=function(W){var Q=this,U=this.$locale();if(!this.isValid())return U.invalidDate||g;var ee=W||"YYYY-MM-DDTHH:mm:ssZ",ne=V.z(this),ae=this.$H,ue=this.$m,me=this.$M,Ee=U.weekdays,ke=U.months,Oe=U.meridiem,Se=function(x,B,S,w){return x&&(x[B]||x(Q,ee))||S[B].slice(0,w)},D=function(x){return V.s(ae%12||12,x,"0")},$=Oe||function(x,B,S){var w=x<12?"AM":"PM";return S?w.toLowerCase():w};return ee.replace(C,function(x,B){return B||function(S){switch(S){case"YY":return String(Q.$y).slice(-2);case"YYYY":return V.s(Q.$y,4,"0");case"M":return me+1;case"MM":return V.s(me+1,2,"0");case"MMM":return Se(U.monthsShort,me,ke,3);case"MMMM":return Se(ke,me);case"D":return Q.$D;case"DD":return V.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return Se(U.weekdaysMin,Q.$W,Ee,2);case"ddd":return Se(U.weekdaysShort,Q.$W,Ee,3);case"dddd":return Ee[Q.$W];case"H":return String(ae);case"HH":return V.s(ae,2,"0");case"h":return D(1);case"hh":return D(2);case"a":return $(ae,ue,!0);case"A":return $(ae,ue,!1);case"m":return String(ue);case"mm":return V.s(ue,2,"0");case"s":return String(Q.$s);case"ss":return V.s(Q.$s,2,"0");case"SSS":return V.s(Q.$ms,3,"0");case"Z":return ne}return null}(x)||ne.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(W,Q,U){var ee,ne=this,ae=V.p(Q),ue=z(W),me=(ue.utcOffset()-this.utcOffset())*r,Ee=this-ue,ke=function(){return V.m(ne,ue)};switch(ae){case p:ee=ke()/12;break;case f:ee=ke();break;case h:ee=ke()/3;break;case u:ee=(Ee-me)/6048e5;break;case d:ee=(Ee-me)/864e5;break;case l:ee=Ee/o;break;case c:ee=Ee/r;break;case s:ee=Ee/n;break;default:ee=Ee}return U?ee:V.a(ee)},F.daysInMonth=function(){return this.endOf(f).$D},F.$locale=function(){return _[this.$L]},F.locale=function(W,Q){if(!W)return this.$L;var U=this.clone(),ee=N(W,Q,!0);return ee&&(U.$L=ee),U},F.clone=function(){return V.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},K}(),j=P.prototype;return z.prototype=j,[["$ms",i],["$s",s],["$m",c],["$H",l],["$W",d],["$M",f],["$y",p],["$D",m]].forEach(function(K){j[K[1]]=function(F){return this.$g(F,K[0],K[1])}}),z.extend=function(K,F){return K.$i||(K(F,P,z),K.$i=!0),z},z.locale=N,z.isDayjs=L,z.unix=function(K){return z(1e3*K)},z.en=_[k],z.Ls=_,z.p={},z})})(c0);var d0=c0.exports;const Zt=ri(d0);var dk={exports:{}};(function(t,e){(function(n,r){t.exports=r(d0)})(ni,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})})(dk);var u0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,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]+/,l={},d=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(C){this[y]=+C}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var E=C.match(/([+-]|\d\d)/g),b=60*E[1]+(+E[2]||0);return b===0?0:E[0]==="+"?-b:b}(y)}],h=function(y){var C=l[y];return C&&(C.indexOf?C:C.s.concat(C.f))},p=function(y,C){var E,b=l.meridiem;if(b){for(var v=1;v<=24;v+=1)if(y.indexOf(b(v,0,C))>-1){E=v>12;break}}else E=y===(C?"pm":"PM");return E},m={A:[c,function(y){this.afternoon=p(y,!1)}],a:[c,function(y){this.afternoon=p(y,!0)}],Q:[o,function(y){this.month=3*(y-1)+1}],S:[o,function(y){this.milliseconds=100*+y}],SS:[i,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[c,function(y){var C=l.ordinal,E=y.match(/\d+/);if(this.day=E[0],C)for(var b=1;b<=31;b+=1)C(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],w:[s,u("week")],ww:[i,u("week")],M:[s,u("month")],MM:[i,u("month")],MMM:[c,function(y){var C=h("months"),E=(h("monthsShort")||C.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(E<1)throw new Error;this.month=E%12||E}],MMMM:[c,function(y){var C=h("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(y){this.year=d(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var C,E;C=y,E=l&&l.formats;for(var b=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,V,P){var j=P&&P.toUpperCase();return V||E[P]||n[P]||E[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,F,W){return F||W.slice(1)})})).match(r),v=b.length,k=0;k<v;k+=1){var _=b[k],O=m[_],L=O&&O[0],N=O&&O[1];b[k]=N?{regex:L,parser:N}:_.replace(/^\[|\]$/g,"")}return function(z){for(var V={},P=0,j=0;P<v;P+=1){var K=b[P];if(typeof K=="string")j+=K.length;else{var F=K.regex,W=K.parser,Q=z.slice(j),U=F.exec(Q)[0];W.call(V,U),z=z.replace(U,"")}}return function(ee){var ne=ee.afternoon;if(ne!==void 0){var ae=ee.hours;ne?ae<12&&(ee.hours+=12):ae===12&&(ee.hours=0),delete ee.afternoon}}(V),V}}return function(y,C,E){E.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(d=y.parseTwoDigitYear);var b=C.prototype,v=b.parse;b.parse=function(k){var _=k.date,O=k.utc,L=k.args;this.$u=O;var N=L[1];if(typeof N=="string"){var z=L[2]===!0,V=L[3]===!0,P=z||V,j=L[2];V&&(j=L[2]),l=this.$locale(),!z&&j&&(l=E.Ls[j]),this.$d=function(Q,U,ee,ne){try{if(["x","X"].indexOf(U)>-1)return new Date((U==="X"?1e3:1)*Q);var ae=g(U)(Q),ue=ae.year,me=ae.month,Ee=ae.day,ke=ae.hours,Oe=ae.minutes,Se=ae.seconds,D=ae.milliseconds,$=ae.zone,x=ae.week,B=new Date,S=Ee||(ue||me?1:B.getDate()),w=ue||B.getFullYear(),I=0;ue&&!me||(I=me>0?me-1:B.getMonth());var M,Y=ke||0,G=Oe||0,J=Se||0,X=D||0;return $?new Date(Date.UTC(w,I,S,Y,G,J,X+60*$.offset*1e3)):ee?new Date(Date.UTC(w,I,S,Y,G,J,X)):(M=new Date(w,I,S,Y,G,J,X),x&&(M=ne(M).week(x).toDate()),M)}catch{return new Date("")}}(_,N,O,E),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),P&&_!=this.format(N)&&(this.$d=new Date("")),l={}}else if(N instanceof Array)for(var K=N.length,F=1;F<=K;F+=1){L[1]=N[F-1];var W=E.apply(this,L);if(W.isValid()){this.$d=W.$d,this.$L=W.$L,this.init();break}F===K&&(this.$d=new Date(""))}else v.call(this,k)}}})})(u0);var uk=u0.exports;const fk=ri(uk);var f0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){return function(n,r){r.prototype.isSameOrAfter=function(o,i){return this.isSame(o,i)||this.isAfter(o,i)}}})})(f0);var hk=f0.exports;const pk=ri(hk);var h0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){return function(n,r){r.prototype.isSameOrBefore=function(o,i){return this.isSame(o,i)||this.isBefore(o,i)}}})})(h0);var mk=h0.exports;const gk=ri(mk);var p0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ni,function(){var n="week",r="year";return function(o,i,s){var c=i.prototype;c.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var u=s(this).startOf(r).add(1,r).date(d),f=s(this).endOf(n);if(u.isBefore(f))return 1}var h=s(this).startOf(r).date(d).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(l){return l===void 0&&(l=null),this.week(l)}}})})(p0);var yk=p0.exports;const vk=ri(yk);Zt.extend(fk),Zt.locale("nl"),Zt.extend(pk),Zt.extend(gk),Zt.extend(vk);const Kd=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"";function m0(t,e=Zt()){const n=Zt(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 Kd(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 g0(t,e=Zt()){const n=Zt(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 Kd(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 Yd(t){const e=Zt(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(Zt(),"year")?e.format("DD-MM-YYYY H:mm"):e.format("DD-MM-YYYY"):""}function Gd(t){const e=Zt(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 bk={class:"bd-date"},y0=a.defineComponent({__name:"BDDate",props:{date:{},displayTime:{type:Boolean,default:l0.displayTime},format:{default:l0.format}},setup(t){const e=t,n=a.computed(()=>e.date?e.format==="textual"?e.displayTime?g0(e.date):m0(e.date):(e.format==="numeric",e.displayTime?Yd(e.date):Gd(e.date)):"");return(r,o)=>(a.openBlock(),a.createElementBlock("span",bk,a.toDisplayString(n.value),1))}}),za=a.defineComponent({__name:"BDDropdownItem",props:{to:{default:""},target:{default:"_blank"},text:{default:void 0},rel:{default:"noopener noreferrer"}},emits:["click"],setup(t,{emit:e}){const n=t,r=()=>{e("click")};return(o,i)=>(a.openBlock(),a.createElementBlock("li",a.mergeProps({class:"bd-dropdown-item"},o.$attrs),[a.createVNode(ao,a.mergeProps({class:"dropdown-item",onClick:r},n),{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(n.text),1)])]),_:3},16)],16))}});var v0={exports:{}};(function(t,e){(function(r,o){t.exports=o()})(self,function(){return function(){var n={3099:function(s){s.exports=function(c){if(typeof c!="function")throw TypeError(String(c)+" is not a function");return c}},6077:function(s,c,l){var d=l(111);s.exports=function(u){if(!d(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},1223:function(s,c,l){var d=l(5112),u=l(30),f=l(3070),h=d("unscopables"),p=Array.prototype;p[h]==null&&f.f(p,h,{configurable:!0,value:u(null)}),s.exports=function(m){p[h][m]=!0}},1530:function(s,c,l){var d=l(8710).charAt;s.exports=function(u,f,h){return f+(h?d(u,f).length:1)}},5787:function(s){s.exports=function(c,l,d){if(!(c instanceof l))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return c}},9670:function(s,c,l){var d=l(111);s.exports=function(u){if(!d(u))throw TypeError(String(u)+" is not an object");return u}},4019:function(s){s.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(s,c,l){var d=l(4019),u=l(9781),f=l(7854),h=l(111),p=l(6656),m=l(648),g=l(8880),y=l(1320),C=l(3070).f,E=l(9518),b=l(7674),v=l(5112),k=l(9711),_=f.Int8Array,O=_&&_.prototype,L=f.Uint8ClampedArray,N=L&&L.prototype,z=_&&E(_),V=O&&E(O),P=Object.prototype,j=P.isPrototypeOf,K=v("toStringTag"),F=k("TYPED_ARRAY_TAG"),W=d&&!!b&&m(f.opera)!=="Opera",Q=!1,U,ee={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},ae=function(D){if(!h(D))return!1;var $=m(D);return $==="DataView"||p(ee,$)||p(ne,$)},ue=function(Se){if(!h(Se))return!1;var D=m(Se);return p(ee,D)||p(ne,D)},me=function(Se){if(ue(Se))return Se;throw TypeError("Target is not a typed array")},Ee=function(Se){if(b){if(j.call(z,Se))return Se}else for(var D in ee)if(p(ee,U)){var $=f[D];if($&&(Se===$||j.call($,Se)))return Se}throw TypeError("Target is not a typed array constructor")},ke=function(Se,D,$){if(u){if($)for(var x in ee){var B=f[x];B&&p(B.prototype,Se)&&delete B.prototype[Se]}(!V[Se]||$)&&y(V,Se,$?D:W&&O[Se]||D)}},Oe=function(Se,D,$){var x,B;if(u){if(b){if($)for(x in ee)B=f[x],B&&p(B,Se)&&delete B[Se];if(!z[Se]||$)try{return y(z,Se,$?D:W&&_[Se]||D)}catch{}else return}for(x in ee)B=f[x],B&&(!B[Se]||$)&&y(B,Se,D)}};for(U in ee)f[U]||(W=!1);if((!W||typeof z!="function"||z===Function.prototype)&&(z=function(){throw TypeError("Incorrect invocation")},W))for(U in ee)f[U]&&b(f[U],z);if((!W||!V||V===P)&&(V=z.prototype,W))for(U in ee)f[U]&&b(f[U].prototype,V);if(W&&E(N)!==V&&b(N,V),u&&!p(V,K)){Q=!0,C(V,K,{get:function(){return h(this)?this[F]:void 0}});for(U in ee)f[U]&&g(f[U],F,U)}s.exports={NATIVE_ARRAY_BUFFER_VIEWS:W,TYPED_ARRAY_TAG:Q&&F,aTypedArray:me,aTypedArrayConstructor:Ee,exportTypedArrayMethod:ke,exportTypedArrayStaticMethod:Oe,isView:ae,isTypedArray:ue,TypedArray:z,TypedArrayPrototype:V}},3331:function(s,c,l){var d=l(7854),u=l(9781),f=l(4019),h=l(8880),p=l(2248),m=l(7293),g=l(5787),y=l(9958),C=l(7466),E=l(7067),b=l(1179),v=l(9518),k=l(7674),_=l(8006).f,O=l(3070).f,L=l(1285),N=l(8003),z=l(9909),V=z.get,P=z.set,j="ArrayBuffer",K="DataView",F="prototype",W="Wrong length",Q="Wrong index",U=d[j],ee=U,ne=d[K],ae=ne&&ne[F],ue=Object.prototype,me=d.RangeError,Ee=b.pack,ke=b.unpack,Oe=function(T){return[T&255]},Se=function(T){return[T&255,T>>8&255]},D=function(T){return[T&255,T>>8&255,T>>16&255,T>>24&255]},$=function(T){return T[3]<<24|T[2]<<16|T[1]<<8|T[0]},x=function(T){return Ee(T,23,4)},B=function(T){return Ee(T,52,8)},S=function(T,H){O(T[F],H,{get:function(){return V(this)[H]}})},w=function(T,H,Z,le){var ge=E(Z),Ae=V(T);if(ge+H>Ae.byteLength)throw me(Q);var te=V(Ae.buffer).bytes,se=ge+Ae.byteOffset,_e=te.slice(se,se+H);return le?_e:_e.reverse()},I=function(T,H,Z,le,ge,Ae){var te=E(Z),se=V(T);if(te+H>se.byteLength)throw me(Q);for(var _e=V(se.buffer).bytes,Re=te+se.byteOffset,it=le(+ge),ct=0;ct<H;ct++)_e[Re+ct]=it[Ae?ct:H-ct-1]};if(!f)ee=function(H){g(this,ee,j);var Z=E(H);P(this,{bytes:L.call(new Array(Z),0),byteLength:Z}),u||(this.byteLength=Z)},ne=function(H,Z,le){g(this,ne,K),g(H,ee,K);var ge=V(H).byteLength,Ae=y(Z);if(Ae<0||Ae>ge)throw me("Wrong offset");if(le=le===void 0?ge-Ae:C(le),Ae+le>ge)throw me(W);P(this,{buffer:H,byteLength:le,byteOffset:Ae}),u||(this.buffer=H,this.byteLength=le,this.byteOffset=Ae)},u&&(S(ee,"byteLength"),S(ne,"buffer"),S(ne,"byteLength"),S(ne,"byteOffset")),p(ne[F],{getInt8:function(H){return w(this,1,H)[0]<<24>>24},getUint8:function(H){return w(this,1,H)[0]},getInt16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return(Z[1]<<8|Z[0])<<16>>16},getUint16:function(H){var Z=w(this,2,H,arguments.length>1?arguments[1]:void 0);return Z[1]<<8|Z[0]},getInt32:function(H){return $(w(this,4,H,arguments.length>1?arguments[1]:void 0))},getUint32:function(H){return $(w(this,4,H,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(H){return ke(w(this,4,H,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(H){return ke(w(this,8,H,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(H,Z){I(this,1,H,Oe,Z)},setUint8:function(H,Z){I(this,1,H,Oe,Z)},setInt16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setUint16:function(H,Z){I(this,2,H,Se,Z,arguments.length>2?arguments[2]:void 0)},setInt32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setUint32:function(H,Z){I(this,4,H,D,Z,arguments.length>2?arguments[2]:void 0)},setFloat32:function(H,Z){I(this,4,H,x,Z,arguments.length>2?arguments[2]:void 0)},setFloat64:function(H,Z){I(this,8,H,B,Z,arguments.length>2?arguments[2]:void 0)}});else{if(!m(function(){U(1)})||!m(function(){new U(-1)})||m(function(){return new U,new U(1.5),new U(NaN),U.name!=j})){ee=function(H){return g(this,ee),new U(E(H))};for(var M=ee[F]=U[F],Y=_(U),G=0,J;Y.length>G;)(J=Y[G++])in ee||h(ee,J,U[J]);M.constructor=ee}k&&v(ae)!==ue&&k(ae,ue);var X=new ne(new ee(2)),A=ae.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),(X.getInt8(0)||!X.getInt8(1))&&p(ae,{setInt8:function(H,Z){A.call(this,H,Z<<24>>24)},setUint8:function(H,Z){A.call(this,H,Z<<24>>24)}},{unsafe:!0})}N(ee,j),N(ne,K),s.exports={ArrayBuffer:ee,DataView:ne}},1048:function(s,c,l){var d=l(7908),u=l(1400),f=l(7466),h=Math.min;s.exports=[].copyWithin||function(m,g){var y=d(this),C=f(y.length),E=u(m,C),b=u(g,C),v=arguments.length>2?arguments[2]:void 0,k=h((v===void 0?C:u(v,C))-b,C-E),_=1;for(b<E&&E<b+k&&(_=-1,b+=k-1,E+=k-1);k-- >0;)b in y?y[E]=y[b]:delete y[E],E+=_,b+=_;return y}},1285:function(s,c,l){var d=l(7908),u=l(1400),f=l(7466);s.exports=function(p){for(var m=d(this),g=f(m.length),y=arguments.length,C=u(y>1?arguments[1]:void 0,g),E=y>2?arguments[2]:void 0,b=E===void 0?g:u(E,g);b>C;)m[C++]=p;return m}},8533:function(s,c,l){var d=l(2092).forEach,u=l(9341),f=u("forEach");s.exports=f?[].forEach:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}},8457:function(s,c,l){var d=l(9974),u=l(7908),f=l(3411),h=l(7659),p=l(7466),m=l(6135),g=l(1246);s.exports=function(C){var E=u(C),b=typeof this=="function"?this:Array,v=arguments.length,k=v>1?arguments[1]:void 0,_=k!==void 0,O=g(E),L=0,N,z,V,P,j,K;if(_&&(k=d(k,v>2?arguments[2]:void 0,2)),O!=null&&!(b==Array&&h(O)))for(P=O.call(E),j=P.next,z=new b;!(V=j.call(P)).done;L++)K=_?f(P,k,[V.value,L],!0):V.value,m(z,L,K);else for(N=p(E.length),z=new b(N);N>L;L++)K=_?k(E[L],L):E[L],m(z,L,K);return z.length=L,z}},1318:function(s,c,l){var d=l(5656),u=l(7466),f=l(1400),h=function(p){return function(m,g,y){var C=d(m),E=u(C.length),b=f(y,E),v;if(p&&g!=g){for(;E>b;)if(v=C[b++],v!=v)return!0}else for(;E>b;b++)if((p||b in C)&&C[b]===g)return p||b||0;return!p&&-1}};s.exports={includes:h(!0),indexOf:h(!1)}},2092:function(s,c,l){var d=l(9974),u=l(8361),f=l(7908),h=l(7466),p=l(5417),m=[].push,g=function(y){var C=y==1,E=y==2,b=y==3,v=y==4,k=y==6,_=y==7,O=y==5||k;return function(L,N,z,V){for(var P=f(L),j=u(P),K=d(N,z,3),F=h(j.length),W=0,Q=V||p,U=C?Q(L,F):E||_?Q(L,0):void 0,ee,ne;F>W;W++)if((O||W in j)&&(ee=j[W],ne=K(ee,W,P),y))if(C)U[W]=ne;else if(ne)switch(y){case 3:return!0;case 5:return ee;case 6:return W;case 2:m.call(U,ee)}else switch(y){case 4:return!1;case 7:m.call(U,ee)}return k?-1:b||v?v:U}};s.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},6583:function(s,c,l){var d=l(5656),u=l(9958),f=l(7466),h=l(9341),p=Math.min,m=[].lastIndexOf,g=!!m&&1/[1].lastIndexOf(1,-0)<0,y=h("lastIndexOf"),C=g||!y;s.exports=C?function(b){if(g)return m.apply(this,arguments)||0;var v=d(this),k=f(v.length),_=k-1;for(arguments.length>1&&(_=p(_,u(arguments[1]))),_<0&&(_=k+_);_>=0;_--)if(_ in v&&v[_]===b)return _||0;return-1}:m},1194:function(s,c,l){var d=l(7293),u=l(5112),f=l(7392),h=u("species");s.exports=function(p){return f>=51||!d(function(){var m=[],g=m.constructor={};return g[h]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},9341:function(s,c,l){var d=l(7293);s.exports=function(u,f){var h=[][u];return!!h&&d(function(){h.call(null,f||function(){throw 1},1)})}},3671:function(s,c,l){var d=l(3099),u=l(7908),f=l(8361),h=l(7466),p=function(m){return function(g,y,C,E){d(y);var b=u(g),v=f(b),k=h(b.length),_=m?k-1:0,O=m?-1:1;if(C<2)for(;;){if(_ in v){E=v[_],_+=O;break}if(_+=O,m?_<0:k<=_)throw TypeError("Reduce of empty array with no initial value")}for(;m?_>=0:k>_;_+=O)_ in v&&(E=y(E,v[_],_,b));return E}};s.exports={left:p(!1),right:p(!0)}},5417:function(s,c,l){var d=l(111),u=l(3157),f=l(5112),h=f("species");s.exports=function(p,m){var g;return u(p)&&(g=p.constructor,typeof g=="function"&&(g===Array||u(g.prototype))?g=void 0:d(g)&&(g=g[h],g===null&&(g=void 0))),new(g===void 0?Array:g)(m===0?0:m)}},3411:function(s,c,l){var d=l(9670),u=l(9212);s.exports=function(f,h,p,m){try{return m?h(d(p)[0],p[1]):h(p)}catch(g){throw u(f),g}}},7072:function(s,c,l){var d=l(5112),u=d("iterator"),f=!1;try{var h=0,p={next:function(){return{done:!!h++}},return:function(){f=!0}};p[u]=function(){return this},Array.from(p,function(){throw 2})}catch{}s.exports=function(m,g){if(!g&&!f)return!1;var y=!1;try{var C={};C[u]=function(){return{next:function(){return{done:y=!0}}}},m(C)}catch{}return y}},4326:function(s){var c={}.toString;s.exports=function(l){return c.call(l).slice(8,-1)}},648:function(s,c,l){var d=l(1694),u=l(4326),f=l(5112),h=f("toStringTag"),p=u(function(){return arguments}())=="Arguments",m=function(g,y){try{return g[y]}catch{}};s.exports=d?u:function(g){var y,C,E;return g===void 0?"Undefined":g===null?"Null":typeof(C=m(y=Object(g),h))=="string"?C:p?u(y):(E=u(y))=="Object"&&typeof y.callee=="function"?"Arguments":E}},9920:function(s,c,l){var d=l(6656),u=l(3887),f=l(1236),h=l(3070);s.exports=function(p,m){for(var g=u(m),y=h.f,C=f.f,E=0;E<g.length;E++){var b=g[E];d(p,b)||y(p,b,C(m,b))}}},8544:function(s,c,l){var d=l(7293);s.exports=!d(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},4994:function(s,c,l){var d=l(3383).IteratorPrototype,u=l(30),f=l(9114),h=l(8003),p=l(7497),m=function(){return this};s.exports=function(g,y,C){var E=y+" Iterator";return g.prototype=u(d,{next:f(1,C)}),h(g,E,!1,!0),p[E]=m,g}},8880:function(s,c,l){var d=l(9781),u=l(3070),f=l(9114);s.exports=d?function(h,p,m){return u.f(h,p,f(1,m))}:function(h,p,m){return h[p]=m,h}},9114:function(s){s.exports=function(c,l){return{enumerable:!(c&1),configurable:!(c&2),writable:!(c&4),value:l}}},6135:function(s,c,l){var d=l(7593),u=l(3070),f=l(9114);s.exports=function(h,p,m){var g=d(p);g in h?u.f(h,g,f(0,m)):h[g]=m}},654:function(s,c,l){var d=l(2109),u=l(4994),f=l(9518),h=l(7674),p=l(8003),m=l(8880),g=l(1320),y=l(5112),C=l(1913),E=l(7497),b=l(3383),v=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,_=y("iterator"),O="keys",L="values",N="entries",z=function(){return this};s.exports=function(V,P,j,K,F,W,Q){u(j,P,K);var U=function(D){if(D===F&&me)return me;if(!k&&D in ae)return ae[D];switch(D){case O:return function(){return new j(this,D)};case L:return function(){return new j(this,D)};case N:return function(){return new j(this,D)}}return function(){return new j(this)}},ee=P+" Iterator",ne=!1,ae=V.prototype,ue=ae[_]||ae["@@iterator"]||F&&ae[F],me=!k&&ue||U(F),Ee=P=="Array"&&ae.entries||ue,ke,Oe,Se;if(Ee&&(ke=f(Ee.call(new V)),v!==Object.prototype&&ke.next&&(!C&&f(ke)!==v&&(h?h(ke,v):typeof ke[_]!="function"&&m(ke,_,z)),p(ke,ee,!0,!0),C&&(E[ee]=z))),F==L&&ue&&ue.name!==L&&(ne=!0,me=function(){return ue.call(this)}),(!C||Q)&&ae[_]!==me&&m(ae,_,me),E[P]=me,F)if(Oe={values:U(L),keys:W?me:U(O),entries:U(N)},Q)for(Se in Oe)(k||ne||!(Se in ae))&&g(ae,Se,Oe[Se]);else d({target:P,proto:!0,forced:k||ne},Oe);return Oe}},9781:function(s,c,l){var d=l(7293);s.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(s,c,l){var d=l(7854),u=l(111),f=d.document,h=u(f)&&u(f.createElement);s.exports=function(p){return h?f.createElement(p):{}}},8324:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(s,c,l){var d=l(5005);s.exports=d("navigator","userAgent")||""},7392:function(s,c,l){var d=l(7854),u=l(8113),f=d.process,h=f&&f.versions,p=h&&h.v8,m,g;p?(m=p.split("."),g=m[0]+m[1]):u&&(m=u.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=u.match(/Chrome\/(\d+)/),m&&(g=m[1]))),s.exports=g&&+g},748:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(s,c,l){var d=l(7854),u=l(1236).f,f=l(8880),h=l(1320),p=l(3505),m=l(9920),g=l(4705);s.exports=function(y,C){var E=y.target,b=y.global,v=y.stat,k,_,O,L,N,z;if(b?_=d:v?_=d[E]||p(E,{}):_=(d[E]||{}).prototype,_)for(O in C){if(N=C[O],y.noTargetGet?(z=u(_,O),L=z&&z.value):L=_[O],k=g(b?O:E+(v?".":"#")+O,y.forced),!k&&L!==void 0){if(typeof N==typeof L)continue;m(N,L)}(y.sham||L&&L.sham)&&f(N,"sham",!0),h(_,O,N,y)}}},7293:function(s){s.exports=function(c){try{return!!c()}catch{return!0}}},7007:function(s,c,l){l(4916);var d=l(1320),u=l(7293),f=l(5112),h=l(2261),p=l(8880),m=f("species"),g=!u(function(){var v=/./;return v.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(v,"$<a>")!=="7"}),y=function(){return"a".replace(/./,"$0")==="$0"}(),C=f("replace"),E=function(){return/./[C]?/./[C]("a","$0")==="":!1}(),b=!u(function(){var v=/(?:)/,k=v.exec;v.exec=function(){return k.apply(this,arguments)};var _="ab".split(v);return _.length!==2||_[0]!=="a"||_[1]!=="b"});s.exports=function(v,k,_,O){var L=f(v),N=!u(function(){var F={};return F[L]=function(){return 7},""[v](F)!=7}),z=N&&!u(function(){var F=!1,W=/a/;return v==="split"&&(W={},W.constructor={},W.constructor[m]=function(){return W},W.flags="",W[L]=/./[L]),W.exec=function(){return F=!0,null},W[L](""),!F});if(!N||!z||v==="replace"&&!(g&&y&&!E)||v==="split"&&!b){var V=/./[L],P=_(L,""[v],function(F,W,Q,U,ee){return W.exec===h?N&&!ee?{done:!0,value:V.call(W,Q,U)}:{done:!0,value:F.call(Q,W,U)}:{done:!1}},{REPLACE_KEEPS_$0:y,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:E}),j=P[0],K=P[1];d(String.prototype,v,j),d(RegExp.prototype,L,k==2?function(F,W){return K.call(F,this,W)}:function(F){return K.call(F,this)})}O&&p(RegExp.prototype[L],"sham",!0)}},9974:function(s,c,l){var d=l(3099);s.exports=function(u,f,h){if(d(u),f===void 0)return u;switch(h){case 0:return function(){return u.call(f)};case 1:return function(p){return u.call(f,p)};case 2:return function(p,m){return u.call(f,p,m)};case 3:return function(p,m,g){return u.call(f,p,m,g)}}return function(){return u.apply(f,arguments)}}},5005:function(s,c,l){var d=l(857),u=l(7854),f=function(h){return typeof h=="function"?h:void 0};s.exports=function(h,p){return arguments.length<2?f(d[h])||f(u[h]):d[h]&&d[h][p]||u[h]&&u[h][p]}},1246:function(s,c,l){var d=l(648),u=l(7497),f=l(5112),h=f("iterator");s.exports=function(p){if(p!=null)return p[h]||p["@@iterator"]||u[d(p)]}},8554:function(s,c,l){var d=l(9670),u=l(1246);s.exports=function(f){var h=u(f);if(typeof h!="function")throw TypeError(String(f)+" is not iterable");return d(h.call(f))}},647:function(s,c,l){var d=l(7908),u=Math.floor,f="".replace,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,p=/\$([$&'`]|\d\d?)/g;s.exports=function(m,g,y,C,E,b){var v=y+m.length,k=C.length,_=p;return E!==void 0&&(E=d(E),_=h),f.call(b,_,function(O,L){var N;switch(L.charAt(0)){case"$":return"$";case"&":return m;case"`":return g.slice(0,y);case"'":return g.slice(v);case"<":N=E[L.slice(1,-1)];break;default:var z=+L;if(z===0)return O;if(z>k){var V=u(z/10);return V===0?O:V<=k?C[V-1]===void 0?L.charAt(1):C[V-1]+L.charAt(1):O}N=C[z-1]}return N===void 0?"":N})}},7854:function(s,c,l){var d=function(u){return u&&u.Math==Math&&u};s.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof l.g=="object"&&l.g)||function(){return this}()||Function("return this")()},6656:function(s){var c={}.hasOwnProperty;s.exports=function(l,d){return c.call(l,d)}},3501:function(s){s.exports={}},490:function(s,c,l){var d=l(5005);s.exports=d("document","documentElement")},4664:function(s,c,l){var d=l(9781),u=l(7293),f=l(317);s.exports=!d&&!u(function(){return Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(s){var c=Math.abs,l=Math.pow,d=Math.floor,u=Math.log,f=Math.LN2,h=function(m,g,y){var C=new Array(y),E=y*8-g-1,b=(1<<E)-1,v=b>>1,k=g===23?l(2,-24)-l(2,-77):0,_=m<0||m===0&&1/m<0?1:0,O=0,L,N,z;for(m=c(m),m!=m||m===1/0?(N=m!=m?1:0,L=b):(L=d(u(m)/f),m*(z=l(2,-L))<1&&(L--,z*=2),L+v>=1?m+=k/z:m+=k*l(2,1-v),m*z>=2&&(L++,z/=2),L+v>=b?(N=0,L=b):L+v>=1?(N=(m*z-1)*l(2,g),L=L+v):(N=m*l(2,v-1)*l(2,g),L=0));g>=8;C[O++]=N&255,N/=256,g-=8);for(L=L<<g|N,E+=g;E>0;C[O++]=L&255,L/=256,E-=8);return C[--O]|=_*128,C},p=function(m,g){var y=m.length,C=y*8-g-1,E=(1<<C)-1,b=E>>1,v=C-7,k=y-1,_=m[k--],O=_&127,L;for(_>>=7;v>0;O=O*256+m[k],k--,v-=8);for(L=O&(1<<-v)-1,O>>=-v,v+=g;v>0;L=L*256+m[k],k--,v-=8);if(O===0)O=1-b;else{if(O===E)return L?NaN:_?-1/0:1/0;L=L+l(2,g),O=O-b}return(_?-1:1)*L*l(2,O-g)};s.exports={pack:h,unpack:p}},8361:function(s,c,l){var d=l(7293),u=l(4326),f="".split;s.exports=d(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?f.call(h,""):Object(h)}:Object},9587:function(s,c,l){var d=l(111),u=l(7674);s.exports=function(f,h,p){var m,g;return u&&typeof(m=h.constructor)=="function"&&m!==p&&d(g=m.prototype)&&g!==p.prototype&&u(f,g),f}},2788:function(s,c,l){var d=l(5465),u=Function.toString;typeof d.inspectSource!="function"&&(d.inspectSource=function(f){return u.call(f)}),s.exports=d.inspectSource},9909:function(s,c,l){var d=l(8536),u=l(7854),f=l(111),h=l(8880),p=l(6656),m=l(5465),g=l(6200),y=l(3501),C=u.WeakMap,E,b,v,k=function(P){return v(P)?b(P):E(P,{})},_=function(P){return function(j){var K;if(!f(j)||(K=b(j)).type!==P)throw TypeError("Incompatible receiver, "+P+" required");return K}};if(d){var O=m.state||(m.state=new C),L=O.get,N=O.has,z=O.set;E=function(P,j){return j.facade=P,z.call(O,P,j),j},b=function(P){return L.call(O,P)||{}},v=function(P){return N.call(O,P)}}else{var V=g("state");y[V]=!0,E=function(P,j){return j.facade=P,h(P,V,j),j},b=function(P){return p(P,V)?P[V]:{}},v=function(P){return p(P,V)}}s.exports={set:E,get:b,has:v,enforce:k,getterFor:_}},7659:function(s,c,l){var d=l(5112),u=l(7497),f=d("iterator"),h=Array.prototype;s.exports=function(p){return p!==void 0&&(u.Array===p||h[f]===p)}},3157:function(s,c,l){var d=l(4326);s.exports=Array.isArray||function(f){return d(f)=="Array"}},4705:function(s,c,l){var d=l(7293),u=/#|\.prototype\./,f=function(y,C){var E=p[h(y)];return E==g?!0:E==m?!1:typeof C=="function"?d(C):!!C},h=f.normalize=function(y){return String(y).replace(u,".").toLowerCase()},p=f.data={},m=f.NATIVE="N",g=f.POLYFILL="P";s.exports=f},111:function(s){s.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},1913:function(s){s.exports=!1},7850:function(s,c,l){var d=l(111),u=l(4326),f=l(5112),h=f("match");s.exports=function(p){var m;return d(p)&&((m=p[h])!==void 0?!!m:u(p)=="RegExp")}},9212:function(s,c,l){var d=l(9670);s.exports=function(u){var f=u.return;if(f!==void 0)return d(f.call(u)).value}},3383:function(s,c,l){var d=l(7293),u=l(9518),f=l(8880),h=l(6656),p=l(5112),m=l(1913),g=p("iterator"),y=!1,C=function(){return this},E,b,v;[].keys&&(v=[].keys(),"next"in v?(b=u(u(v)),b!==Object.prototype&&(E=b)):y=!0);var k=E==null||d(function(){var _={};return E[g].call(_)!==_});k&&(E={}),(!m||k)&&!h(E,g)&&f(E,g,C),s.exports={IteratorPrototype:E,BUGGY_SAFARI_ITERATORS:y}},7497:function(s){s.exports={}},133:function(s,c,l){var d=l(7293);s.exports=!!Object.getOwnPropertySymbols&&!d(function(){return!String(Symbol())})},590:function(s,c,l){var d=l(7293),u=l(5112),f=l(1913),h=u("iterator");s.exports=!d(function(){var p=new URL("b?a=1&b=2&c=3","http://a"),m=p.searchParams,g="";return p.pathname="c%20d",m.forEach(function(y,C){m.delete("b"),g+=C+y}),f&&!p.toJSON||!m.sort||p.href!=="http://a/c%20d?a=1&c=3"||m.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!m[h]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://тест").host!=="xn--e1aybc"||new URL("http://a#б").hash!=="#%D0%B1"||g!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(s,c,l){var d=l(7854),u=l(2788),f=d.WeakMap;s.exports=typeof f=="function"&&/native code/.test(u(f))},1574:function(s,c,l){var d=l(9781),u=l(7293),f=l(1956),h=l(5181),p=l(5296),m=l(7908),g=l(8361),y=Object.assign,C=Object.defineProperty;s.exports=!y||u(function(){if(d&&y({b:1},y(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var E={},b={},v=Symbol(),k="abcdefghijklmnopqrst";return E[v]=7,k.split("").forEach(function(_){b[_]=_}),y({},E)[v]!=7||f(y({},b)).join("")!=k})?function(b,v){for(var k=m(b),_=arguments.length,O=1,L=h.f,N=p.f;_>O;)for(var z=g(arguments[O++]),V=L?f(z).concat(L(z)):f(z),P=V.length,j=0,K;P>j;)K=V[j++],(!d||N.call(z,K))&&(k[K]=z[K]);return k}:y},30:function(s,c,l){var d=l(9670),u=l(6048),f=l(748),h=l(3501),p=l(490),m=l(317),g=l(6200),y=">",C="<",E="prototype",b="script",v=g("IE_PROTO"),k=function(){},_=function(V){return C+b+y+V+C+"/"+b+y},O=function(V){V.write(_("")),V.close();var P=V.parentWindow.Object;return V=null,P},L=function(){var V=m("iframe"),P="java"+b+":",j;return V.style.display="none",p.appendChild(V),V.src=String(P),j=V.contentWindow.document,j.open(),j.write(_("document.F=Object")),j.close(),j.F},N,z=function(){try{N=document.domain&&new ActiveXObject("htmlfile")}catch{}z=N?O(N):L();for(var V=f.length;V--;)delete z[E][f[V]];return z()};h[v]=!0,s.exports=Object.create||function(P,j){var K;return P!==null?(k[E]=d(P),K=new k,k[E]=null,K[v]=P):K=z(),j===void 0?K:u(K,j)}},6048:function(s,c,l){var d=l(9781),u=l(3070),f=l(9670),h=l(1956);s.exports=d?Object.defineProperties:function(m,g){f(m);for(var y=h(g),C=y.length,E=0,b;C>E;)u.f(m,b=y[E++],g[b]);return m}},3070:function(s,c,l){var d=l(9781),u=l(4664),f=l(9670),h=l(7593),p=Object.defineProperty;c.f=d?p:function(g,y,C){if(f(g),y=h(y,!0),f(C),u)try{return p(g,y,C)}catch{}if("get"in C||"set"in C)throw TypeError("Accessors not supported");return"value"in C&&(g[y]=C.value),g}},1236:function(s,c,l){var d=l(9781),u=l(5296),f=l(9114),h=l(5656),p=l(7593),m=l(6656),g=l(4664),y=Object.getOwnPropertyDescriptor;c.f=d?y:function(E,b){if(E=h(E),b=p(b,!0),g)try{return y(E,b)}catch{}if(m(E,b))return f(!u.f.call(E,b),E[b])}},8006:function(s,c,l){var d=l(6324),u=l(748),f=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(p){return d(p,f)}},5181:function(s,c){c.f=Object.getOwnPropertySymbols},9518:function(s,c,l){var d=l(6656),u=l(7908),f=l(6200),h=l(8544),p=f("IE_PROTO"),m=Object.prototype;s.exports=h?Object.getPrototypeOf:function(g){return g=u(g),d(g,p)?g[p]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?m:null}},6324:function(s,c,l){var d=l(6656),u=l(5656),f=l(1318).indexOf,h=l(3501);s.exports=function(p,m){var g=u(p),y=0,C=[],E;for(E in g)!d(h,E)&&d(g,E)&&C.push(E);for(;m.length>y;)d(g,E=m[y++])&&(~f(C,E)||C.push(E));return C}},1956:function(s,c,l){var d=l(6324),u=l(748);s.exports=Object.keys||function(h){return d(h,u)}},5296:function(s,c){var l={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,u=d&&!l.call({1:2},1);c.f=u?function(h){var p=d(this,h);return!!p&&p.enumerable}:l},7674:function(s,c,l){var d=l(9670),u=l(6077);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var f=!1,h={},p;try{p=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,p.call(h,[]),f=h instanceof Array}catch{}return function(g,y){return d(g),u(y),f?p.call(g,y):g.__proto__=y,g}}():void 0)},288:function(s,c,l){var d=l(1694),u=l(648);s.exports=d?{}.toString:function(){return"[object "+u(this)+"]"}},3887:function(s,c,l){var d=l(5005),u=l(8006),f=l(5181),h=l(9670);s.exports=d("Reflect","ownKeys")||function(m){var g=u.f(h(m)),y=f.f;return y?g.concat(y(m)):g}},857:function(s,c,l){var d=l(7854);s.exports=d},2248:function(s,c,l){var d=l(1320);s.exports=function(u,f,h){for(var p in f)d(u,p,f[p],h);return u}},1320:function(s,c,l){var d=l(7854),u=l(8880),f=l(6656),h=l(3505),p=l(2788),m=l(9909),g=m.get,y=m.enforce,C=String(String).split("String");(s.exports=function(E,b,v,k){var _=k?!!k.unsafe:!1,O=k?!!k.enumerable:!1,L=k?!!k.noTargetGet:!1,N;if(typeof v=="function"&&(typeof b=="string"&&!f(v,"name")&&u(v,"name",b),N=y(v),N.source||(N.source=C.join(typeof b=="string"?b:""))),E===d){O?E[b]=v:h(b,v);return}else _?!L&&E[b]&&(O=!0):delete E[b];O?E[b]=v:u(E,b,v)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||p(this)})},7651:function(s,c,l){var d=l(4326),u=l(2261);s.exports=function(f,h){var p=f.exec;if(typeof p=="function"){var m=p.call(f,h);if(typeof m!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return m}if(d(f)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(f,h)}},2261:function(s,c,l){var d=l(7066),u=l(2999),f=RegExp.prototype.exec,h=String.prototype.replace,p=f,m=function(){var E=/a/,b=/b*/g;return f.call(E,"a"),f.call(b,"a"),E.lastIndex!==0||b.lastIndex!==0}(),g=u.UNSUPPORTED_Y||u.BROKEN_CARET,y=/()??/.exec("")[1]!==void 0,C=m||y||g;C&&(p=function(b){var v=this,k,_,O,L,N=g&&v.sticky,z=d.call(v),V=v.source,P=0,j=b;return N&&(z=z.replace("y",""),z.indexOf("g")===-1&&(z+="g"),j=String(b).slice(v.lastIndex),v.lastIndex>0&&(!v.multiline||v.multiline&&b[v.lastIndex-1]!==`
|
|
1230
|
+
`)&&(V="(?: "+V+")",j=" "+j,P++),_=new RegExp("^(?:"+V+")",z)),y&&(_=new RegExp("^"+V+"$(?!\\s)",z)),m&&(k=v.lastIndex),O=f.call(N?_:v,j),N?O?(O.input=O.input.slice(P),O[0]=O[0].slice(P),O.index=v.lastIndex,v.lastIndex+=O[0].length):v.lastIndex=0:m&&O&&(v.lastIndex=v.global?O.index+O[0].length:k),y&&O&&O.length>1&&h.call(O[0],_,function(){for(L=1;L<arguments.length-2;L++)arguments[L]===void 0&&(O[L]=void 0)}),O}),s.exports=p},7066:function(s,c,l){var d=l(9670);s.exports=function(){var u=d(this),f="";return u.global&&(f+="g"),u.ignoreCase&&(f+="i"),u.multiline&&(f+="m"),u.dotAll&&(f+="s"),u.unicode&&(f+="u"),u.sticky&&(f+="y"),f}},2999:function(s,c,l){var d=l(7293);function u(f,h){return RegExp(f,h)}c.UNSUPPORTED_Y=d(function(){var f=u("a","y");return f.lastIndex=2,f.exec("abcd")!=null}),c.BROKEN_CARET=d(function(){var f=u("^r","gy");return f.lastIndex=2,f.exec("str")!=null})},4488:function(s){s.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},3505:function(s,c,l){var d=l(7854),u=l(8880);s.exports=function(f,h){try{u(d,f,h)}catch{d[f]=h}return h}},6340:function(s,c,l){var d=l(5005),u=l(3070),f=l(5112),h=l(9781),p=f("species");s.exports=function(m){var g=d(m),y=u.f;h&&g&&!g[p]&&y(g,p,{configurable:!0,get:function(){return this}})}},8003:function(s,c,l){var d=l(3070).f,u=l(6656),f=l(5112),h=f("toStringTag");s.exports=function(p,m,g){p&&!u(p=g?p:p.prototype,h)&&d(p,h,{configurable:!0,value:m})}},6200:function(s,c,l){var d=l(2309),u=l(9711),f=d("keys");s.exports=function(h){return f[h]||(f[h]=u(h))}},5465:function(s,c,l){var d=l(7854),u=l(3505),f="__core-js_shared__",h=d[f]||u(f,{});s.exports=h},2309:function(s,c,l){var d=l(1913),u=l(5465);(s.exports=function(f,h){return u[f]||(u[f]=h!==void 0?h:{})})("versions",[]).push({version:"3.9.0",mode:d?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(s,c,l){var d=l(9670),u=l(3099),f=l(5112),h=f("species");s.exports=function(p,m){var g=d(p).constructor,y;return g===void 0||(y=d(g)[h])==null?m:u(y)}},8710:function(s,c,l){var d=l(9958),u=l(4488),f=function(h){return function(p,m){var g=String(u(p)),y=d(m),C=g.length,E,b;return y<0||y>=C?h?"":void 0:(E=g.charCodeAt(y),E<55296||E>56319||y+1===C||(b=g.charCodeAt(y+1))<56320||b>57343?h?g.charAt(y):E:h?g.slice(y,y+2):(E-55296<<10)+(b-56320)+65536)}};s.exports={codeAt:f(!1),charAt:f(!0)}},3197:function(s){var c=2147483647,l=36,d=1,u=26,f=38,h=700,p=72,m=128,g="-",y=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,E="Overflow: input needs wider integers to process",b=l-d,v=Math.floor,k=String.fromCharCode,_=function(z){for(var V=[],P=0,j=z.length;P<j;){var K=z.charCodeAt(P++);if(K>=55296&&K<=56319&&P<j){var F=z.charCodeAt(P++);(F&64512)==56320?V.push(((K&1023)<<10)+(F&1023)+65536):(V.push(K),P--)}else V.push(K)}return V},O=function(z){return z+22+75*(z<26)},L=function(z,V,P){var j=0;for(z=P?v(z/h):z>>1,z+=v(z/V);z>b*u>>1;j+=l)z=v(z/b);return v(j+(b+1)*z/(z+f))},N=function(z){var V=[];z=_(z);var P=z.length,j=m,K=0,F=p,W,Q;for(W=0;W<z.length;W++)Q=z[W],Q<128&&V.push(k(Q));var U=V.length,ee=U;for(U&&V.push(g);ee<P;){var ne=c;for(W=0;W<z.length;W++)Q=z[W],Q>=j&&Q<ne&&(ne=Q);var ae=ee+1;if(ne-j>v((c-K)/ae))throw RangeError(E);for(K+=(ne-j)*ae,j=ne,W=0;W<z.length;W++){if(Q=z[W],Q<j&&++K>c)throw RangeError(E);if(Q==j){for(var ue=K,me=l;;me+=l){var Ee=me<=F?d:me>=F+u?u:me-F;if(ue<Ee)break;var ke=ue-Ee,Oe=l-Ee;V.push(k(O(Ee+ke%Oe))),ue=v(ke/Oe)}V.push(k(O(ue))),F=L(K,ae,ee==U),K=0,++ee}}++K,++j}return V.join("")};s.exports=function(z){var V=[],P=z.toLowerCase().replace(C,".").split("."),j,K;for(j=0;j<P.length;j++)K=P[j],V.push(y.test(K)?"xn--"+N(K):K);return V.join(".")}},6091:function(s,c,l){var d=l(7293),u=l(1361),f="
";s.exports=function(h){return d(function(){return!!u[h]()||f[h]()!=f||u[h].name!==h})}},3111:function(s,c,l){var d=l(4488),u=l(1361),f="["+u+"]",h=RegExp("^"+f+f+"*"),p=RegExp(f+f+"*$"),m=function(g){return function(y){var C=String(d(y));return g&1&&(C=C.replace(h,"")),g&2&&(C=C.replace(p,"")),C}};s.exports={start:m(1),end:m(2),trim:m(3)}},1400:function(s,c,l){var d=l(9958),u=Math.max,f=Math.min;s.exports=function(h,p){var m=d(h);return m<0?u(m+p,0):f(m,p)}},7067:function(s,c,l){var d=l(9958),u=l(7466);s.exports=function(f){if(f===void 0)return 0;var h=d(f),p=u(h);if(h!==p)throw RangeError("Wrong length or index");return p}},5656:function(s,c,l){var d=l(8361),u=l(4488);s.exports=function(f){return d(u(f))}},9958:function(s){var c=Math.ceil,l=Math.floor;s.exports=function(d){return isNaN(d=+d)?0:(d>0?l:c)(d)}},7466:function(s,c,l){var d=l(9958),u=Math.min;s.exports=function(f){return f>0?u(d(f),9007199254740991):0}},7908:function(s,c,l){var d=l(4488);s.exports=function(u){return Object(d(u))}},4590:function(s,c,l){var d=l(3002);s.exports=function(u,f){var h=d(u);if(h%f)throw RangeError("Wrong offset");return h}},3002:function(s,c,l){var d=l(9958);s.exports=function(u){var f=d(u);if(f<0)throw RangeError("The argument can't be less than 0");return f}},7593:function(s,c,l){var d=l(111);s.exports=function(u,f){if(!d(u))return u;var h,p;if(f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u))||typeof(h=u.valueOf)=="function"&&!d(p=h.call(u))||!f&&typeof(h=u.toString)=="function"&&!d(p=h.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},1694:function(s,c,l){var d=l(5112),u=d("toStringTag"),f={};f[u]="z",s.exports=String(f)==="[object z]"},9843:function(s,c,l){var d=l(2109),u=l(7854),f=l(9781),h=l(3832),p=l(260),m=l(3331),g=l(5787),y=l(9114),C=l(8880),E=l(7466),b=l(7067),v=l(4590),k=l(7593),_=l(6656),O=l(648),L=l(111),N=l(30),z=l(7674),V=l(8006).f,P=l(7321),j=l(2092).forEach,K=l(6340),F=l(3070),W=l(1236),Q=l(9909),U=l(9587),ee=Q.get,ne=Q.set,ae=F.f,ue=W.f,me=Math.round,Ee=u.RangeError,ke=m.ArrayBuffer,Oe=m.DataView,Se=p.NATIVE_ARRAY_BUFFER_VIEWS,D=p.TYPED_ARRAY_TAG,$=p.TypedArray,x=p.TypedArrayPrototype,B=p.aTypedArrayConstructor,S=p.isTypedArray,w="BYTES_PER_ELEMENT",I="Wrong length",M=function(T,H){for(var Z=0,le=H.length,ge=new(B(T))(le);le>Z;)ge[Z]=H[Z++];return ge},Y=function(T,H){ae(T,H,{get:function(){return ee(this)[H]}})},G=function(T){var H;return T instanceof ke||(H=O(T))=="ArrayBuffer"||H=="SharedArrayBuffer"},J=function(T,H){return S(T)&&typeof H!="symbol"&&H in T&&String(+H)==String(H)},X=function(H,Z){return J(H,Z=k(Z,!0))?y(2,H[Z]):ue(H,Z)},A=function(H,Z,le){return J(H,Z=k(Z,!0))&&L(le)&&_(le,"value")&&!_(le,"get")&&!_(le,"set")&&!le.configurable&&(!_(le,"writable")||le.writable)&&(!_(le,"enumerable")||le.enumerable)?(H[Z]=le.value,H):ae(H,Z,le)};f?(Se||(W.f=X,F.f=A,Y(x,"buffer"),Y(x,"byteOffset"),Y(x,"byteLength"),Y(x,"length")),d({target:"Object",stat:!0,forced:!Se},{getOwnPropertyDescriptor:X,defineProperty:A}),s.exports=function(T,H,Z){var le=T.match(/\d+$/)[0]/8,ge=T+(Z?"Clamped":"")+"Array",Ae="get"+T,te="set"+T,se=u[ge],_e=se,Re=_e&&_e.prototype,it={},ct=function(ve,ye){var Me=ee(ve);return Me.view[Ae](ye*le+Me.byteOffset,!0)},Ht=function(ve,ye,Me){var Pe=ee(ve);Z&&(Me=(Me=me(Me))<0?0:Me>255?255:Me&255),Pe.view[te](ye*le+Pe.byteOffset,Me,!0)},re=function(ve,ye){ae(ve,ye,{get:function(){return ct(this,ye)},set:function(Me){return Ht(this,ye,Me)},enumerable:!0})};Se?h&&(_e=H(function(ve,ye,Me,Pe){return g(ve,_e,ge),U(function(){return L(ye)?G(ye)?Pe!==void 0?new se(ye,v(Me,le),Pe):Me!==void 0?new se(ye,v(Me,le)):new se(ye):S(ye)?M(_e,ye):P.call(_e,ye):new se(b(ye))}(),ve,_e)}),z&&z(_e,$),j(V(se),function(ve){ve in _e||C(_e,ve,se[ve])}),_e.prototype=Re):(_e=H(function(ve,ye,Me,Pe){g(ve,_e,ge);var st=0,dt=0,Wt,Kt,Tt;if(!L(ye))Tt=b(ye),Kt=Tt*le,Wt=new ke(Kt);else if(G(ye)){Wt=ye,dt=v(Me,le);var er=ye.byteLength;if(Pe===void 0){if(er%le||(Kt=er-dt,Kt<0))throw Ee(I)}else if(Kt=E(Pe)*le,Kt+dt>er)throw Ee(I);Tt=Kt/le}else return S(ye)?M(_e,ye):P.call(_e,ye);for(ne(ve,{buffer:Wt,byteOffset:dt,byteLength:Kt,length:Tt,view:new Oe(Wt)});st<Tt;)re(ve,st++)}),z&&z(_e,$),Re=_e.prototype=N(x)),Re.constructor!==_e&&C(Re,"constructor",_e),D&&C(Re,D,ge),it[ge]=_e,d({global:!0,forced:_e!=se,sham:!Se},it),w in _e||C(_e,w,le),w in Re||C(Re,w,le),K(ge)}):s.exports=function(){}},3832:function(s,c,l){var d=l(7854),u=l(7293),f=l(7072),h=l(260).NATIVE_ARRAY_BUFFER_VIEWS,p=d.ArrayBuffer,m=d.Int8Array;s.exports=!h||!u(function(){m(1)})||!u(function(){new m(-1)})||!f(function(g){new m,new m(null),new m(1.5),new m(g)},!0)||u(function(){return new m(new p(2),1,void 0).length!==1})},3074:function(s,c,l){var d=l(260).aTypedArrayConstructor,u=l(6707);s.exports=function(f,h){for(var p=u(f,f.constructor),m=0,g=h.length,y=new(d(p))(g);g>m;)y[m]=h[m++];return y}},7321:function(s,c,l){var d=l(7908),u=l(7466),f=l(1246),h=l(7659),p=l(9974),m=l(260).aTypedArrayConstructor;s.exports=function(y){var C=d(y),E=arguments.length,b=E>1?arguments[1]:void 0,v=b!==void 0,k=f(C),_,O,L,N,z,V;if(k!=null&&!h(k))for(z=k.call(C),V=z.next,C=[];!(N=V.call(z)).done;)C.push(N.value);for(v&&E>2&&(b=p(b,arguments[2],2)),O=u(C.length),L=new(m(this))(O),_=0;O>_;_++)L[_]=v?b(C[_],_):C[_];return L}},9711:function(s){var c=0,l=Math.random();s.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++c+l).toString(36)}},3307:function(s,c,l){var d=l(133);s.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(s,c,l){var d=l(7854),u=l(2309),f=l(6656),h=l(9711),p=l(133),m=l(3307),g=u("wks"),y=d.Symbol,C=m?y:y&&y.withoutSetter||h;s.exports=function(E){return f(g,E)||(p&&f(y,E)?g[E]=y[E]:g[E]=C("Symbol."+E)),g[E]}},1361:function(s){s.exports=`
|
|
1231
|
+
\v\f\r \u2028\u2029\uFEFF`},8264:function(s,c,l){var d=l(2109),u=l(7854),f=l(3331),h=l(6340),p="ArrayBuffer",m=f[p],g=u[p];d({global:!0,forced:g!==m},{ArrayBuffer:m}),h(p)},2222:function(s,c,l){var d=l(2109),u=l(7293),f=l(3157),h=l(111),p=l(7908),m=l(7466),g=l(6135),y=l(5417),C=l(1194),E=l(5112),b=l(7392),v=E("isConcatSpreadable"),k=9007199254740991,_="Maximum allowed index exceeded",O=b>=51||!u(function(){var V=[];return V[v]=!1,V.concat()[0]!==V}),L=C("concat"),N=function(V){if(!h(V))return!1;var P=V[v];return P!==void 0?!!P:f(V)},z=!O||!L;d({target:"Array",proto:!0,forced:z},{concat:function(P){var j=p(this),K=y(j,0),F=0,W,Q,U,ee,ne;for(W=-1,U=arguments.length;W<U;W++)if(ne=W===-1?j:arguments[W],N(ne)){if(ee=m(ne.length),F+ee>k)throw TypeError(_);for(Q=0;Q<ee;Q++,F++)Q in ne&&g(K,F,ne[Q])}else{if(F>=k)throw TypeError(_);g(K,F++,ne)}return K.length=F,K}})},7327:function(s,c,l){var d=l(2109),u=l(2092).filter,f=l(1194),h=f("filter");d({target:"Array",proto:!0,forced:!h},{filter:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},2772:function(s,c,l){var d=l(2109),u=l(1318).indexOf,f=l(9341),h=[].indexOf,p=!!h&&1/[1].indexOf(1,-0)<0,m=f("indexOf");d({target:"Array",proto:!0,forced:p||!m},{indexOf:function(y){return p?h.apply(this,arguments)||0:u(this,y,arguments.length>1?arguments[1]:void 0)}})},6992:function(s,c,l){var d=l(5656),u=l(1223),f=l(7497),h=l(9909),p=l(654),m="Array Iterator",g=h.set,y=h.getterFor(m);s.exports=p(Array,"Array",function(C,E){g(this,{type:m,target:d(C),index:0,kind:E})},function(){var C=y(this),E=C.target,b=C.kind,v=C.index++;return!E||v>=E.length?(C.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:v,done:!1}:b=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),f.Arguments=f.Array,u("keys"),u("values"),u("entries")},1249:function(s,c,l){var d=l(2109),u=l(2092).map,f=l(1194),h=f("map");d({target:"Array",proto:!0,forced:!h},{map:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}})},7042:function(s,c,l){var d=l(2109),u=l(111),f=l(3157),h=l(1400),p=l(7466),m=l(5656),g=l(6135),y=l(5112),C=l(1194),E=C("slice"),b=y("species"),v=[].slice,k=Math.max;d({target:"Array",proto:!0,forced:!E},{slice:function(O,L){var N=m(this),z=p(N.length),V=h(O,z),P=h(L===void 0?z:L,z),j,K,F;if(f(N)&&(j=N.constructor,typeof j=="function"&&(j===Array||f(j.prototype))?j=void 0:u(j)&&(j=j[b],j===null&&(j=void 0)),j===Array||j===void 0))return v.call(N,V,P);for(K=new(j===void 0?Array:j)(k(P-V,0)),F=0;V<P;V++,F++)V in N&&g(K,F,N[V]);return K.length=F,K}})},561:function(s,c,l){var d=l(2109),u=l(1400),f=l(9958),h=l(7466),p=l(7908),m=l(5417),g=l(6135),y=l(1194),C=y("splice"),E=Math.max,b=Math.min,v=9007199254740991,k="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!C},{splice:function(O,L){var N=p(this),z=h(N.length),V=u(O,z),P=arguments.length,j,K,F,W,Q,U;if(P===0?j=K=0:P===1?(j=0,K=z-V):(j=P-2,K=b(E(f(L),0),z-V)),z+j-K>v)throw TypeError(k);for(F=m(N,K),W=0;W<K;W++)Q=V+W,Q in N&&g(F,W,N[Q]);if(F.length=K,j<K){for(W=V;W<z-K;W++)Q=W+K,U=W+j,Q in N?N[U]=N[Q]:delete N[U];for(W=z;W>z-K+j;W--)delete N[W-1]}else if(j>K)for(W=z-K;W>V;W--)Q=W+K-1,U=W+j-1,Q in N?N[U]=N[Q]:delete N[U];for(W=0;W<j;W++)N[W+V]=arguments[W+2];return N.length=z-K+j,F}})},8309:function(s,c,l){var d=l(9781),u=l(3070).f,f=Function.prototype,h=f.toString,p=/^\s*function ([^ (]*)/,m="name";d&&!(m in f)&&u(f,m,{configurable:!0,get:function(){try{return h.call(this).match(p)[1]}catch{return""}}})},489:function(s,c,l){var d=l(2109),u=l(7293),f=l(7908),h=l(9518),p=l(8544),m=u(function(){h(1)});d({target:"Object",stat:!0,forced:m,sham:!p},{getPrototypeOf:function(y){return h(f(y))}})},1539:function(s,c,l){var d=l(1694),u=l(1320),f=l(288);d||u(Object.prototype,"toString",f,{unsafe:!0})},4916:function(s,c,l){var d=l(2109),u=l(2261);d({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},9714:function(s,c,l){var d=l(1320),u=l(9670),f=l(7293),h=l(7066),p="toString",m=RegExp.prototype,g=m[p],y=f(function(){return g.call({source:"a",flags:"b"})!="/a/b"}),C=g.name!=p;(y||C)&&d(RegExp.prototype,p,function(){var b=u(this),v=String(b.source),k=b.flags,_=String(k===void 0&&b instanceof RegExp&&!("flags"in m)?h.call(b):k);return"/"+v+"/"+_},{unsafe:!0})},8783:function(s,c,l){var d=l(8710).charAt,u=l(9909),f=l(654),h="String Iterator",p=u.set,m=u.getterFor(h);f(String,"String",function(g){p(this,{type:h,string:String(g),index:0})},function(){var y=m(this),C=y.string,E=y.index,b;return E>=C.length?{value:void 0,done:!0}:(b=d(C,E),y.index+=b.length,{value:b,done:!1})})},4723:function(s,c,l){var d=l(7007),u=l(9670),f=l(7466),h=l(4488),p=l(1530),m=l(7651);d("match",1,function(g,y,C){return[function(b){var v=h(this),k=b==null?void 0:b[g];return k!==void 0?k.call(b,v):new RegExp(b)[g](String(v))},function(E){var b=C(y,E,this);if(b.done)return b.value;var v=u(E),k=String(this);if(!v.global)return m(v,k);var _=v.unicode;v.lastIndex=0;for(var O=[],L=0,N;(N=m(v,k))!==null;){var z=String(N[0]);O[L]=z,z===""&&(v.lastIndex=p(k,f(v.lastIndex),_)),L++}return L===0?null:O}]})},5306:function(s,c,l){var d=l(7007),u=l(9670),f=l(7466),h=l(9958),p=l(4488),m=l(1530),g=l(647),y=l(7651),C=Math.max,E=Math.min,b=function(v){return v===void 0?v:String(v)};d("replace",2,function(v,k,_,O){var L=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=O.REPLACE_KEEPS_$0,z=L?"$":"$0";return[function(P,j){var K=p(this),F=P==null?void 0:P[v];return F!==void 0?F.call(P,K,j):k.call(String(K),P,j)},function(V,P){if(!L&&N||typeof P=="string"&&P.indexOf(z)===-1){var j=_(k,V,this,P);if(j.done)return j.value}var K=u(V),F=String(this),W=typeof P=="function";W||(P=String(P));var Q=K.global;if(Q){var U=K.unicode;K.lastIndex=0}for(var ee=[];;){var ne=y(K,F);if(ne===null||(ee.push(ne),!Q))break;var ae=String(ne[0]);ae===""&&(K.lastIndex=m(F,f(K.lastIndex),U))}for(var ue="",me=0,Ee=0;Ee<ee.length;Ee++){ne=ee[Ee];for(var ke=String(ne[0]),Oe=C(E(h(ne.index),F.length),0),Se=[],D=1;D<ne.length;D++)Se.push(b(ne[D]));var $=ne.groups;if(W){var x=[ke].concat(Se,Oe,F);$!==void 0&&x.push($);var B=String(P.apply(void 0,x))}else B=g(ke,F,Oe,Se,$,P);Oe>=me&&(ue+=F.slice(me,Oe)+B,me=Oe+ke.length)}return ue+F.slice(me)}]})},3123:function(s,c,l){var d=l(7007),u=l(7850),f=l(9670),h=l(4488),p=l(6707),m=l(1530),g=l(7466),y=l(7651),C=l(2261),E=l(7293),b=[].push,v=Math.min,k=4294967295,_=!E(function(){return!RegExp(k,"y")});d("split",2,function(O,L,N){var z;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?z=function(V,P){var j=String(h(this)),K=P===void 0?k:P>>>0;if(K===0)return[];if(V===void 0)return[j];if(!u(V))return L.call(j,V,K);for(var F=[],W=(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")+(V.sticky?"y":""),Q=0,U=new RegExp(V.source,W+"g"),ee,ne,ae;(ee=C.call(U,j))&&(ne=U.lastIndex,!(ne>Q&&(F.push(j.slice(Q,ee.index)),ee.length>1&&ee.index<j.length&&b.apply(F,ee.slice(1)),ae=ee[0].length,Q=ne,F.length>=K)));)U.lastIndex===ee.index&&U.lastIndex++;return Q===j.length?(ae||!U.test(""))&&F.push(""):F.push(j.slice(Q)),F.length>K?F.slice(0,K):F}:"0".split(void 0,0).length?z=function(V,P){return V===void 0&&P===0?[]:L.call(this,V,P)}:z=L,[function(P,j){var K=h(this),F=P==null?void 0:P[O];return F!==void 0?F.call(P,K,j):z.call(String(K),P,j)},function(V,P){var j=N(z,V,this,P,z!==L);if(j.done)return j.value;var K=f(V),F=String(this),W=p(K,RegExp),Q=K.unicode,U=(K.ignoreCase?"i":"")+(K.multiline?"m":"")+(K.unicode?"u":"")+(_?"y":"g"),ee=new W(_?K:"^(?:"+K.source+")",U),ne=P===void 0?k:P>>>0;if(ne===0)return[];if(F.length===0)return y(ee,F)===null?[F]:[];for(var ae=0,ue=0,me=[];ue<F.length;){ee.lastIndex=_?ue:0;var Ee=y(ee,_?F:F.slice(ue)),ke;if(Ee===null||(ke=v(g(ee.lastIndex+(_?0:ue)),F.length))===ae)ue=m(F,ue,Q);else{if(me.push(F.slice(ae,ue)),me.length===ne)return me;for(var Oe=1;Oe<=Ee.length-1;Oe++)if(me.push(Ee[Oe]),me.length===ne)return me;ue=ae=ke}}return me.push(F.slice(ae)),me}]},!_)},3210:function(s,c,l){var d=l(2109),u=l(3111).trim,f=l(6091);d({target:"String",proto:!0,forced:f("trim")},{trim:function(){return u(this)}})},2990:function(s,c,l){var d=l(260),u=l(1048),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("copyWithin",function(m,g){return u.call(f(this),m,g,arguments.length>2?arguments[2]:void 0)})},8927:function(s,c,l){var d=l(260),u=l(2092).every,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("every",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3105:function(s,c,l){var d=l(260),u=l(1285),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("fill",function(m){return u.apply(f(this),arguments)})},5035:function(s,c,l){var d=l(260),u=l(2092).filter,f=l(3074),h=d.aTypedArray,p=d.exportTypedArrayMethod;p("filter",function(g){var y=u(h(this),g,arguments.length>1?arguments[1]:void 0);return f(this,y)})},7174:function(s,c,l){var d=l(260),u=l(2092).findIndex,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("findIndex",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4345:function(s,c,l){var d=l(260),u=l(2092).find,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("find",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},2846:function(s,c,l){var d=l(260),u=l(2092).forEach,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("forEach",function(m){u(f(this),m,arguments.length>1?arguments[1]:void 0)})},4731:function(s,c,l){var d=l(260),u=l(1318).includes,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("includes",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},7209:function(s,c,l){var d=l(260),u=l(1318).indexOf,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("indexOf",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},6319:function(s,c,l){var d=l(7854),u=l(260),f=l(6992),h=l(5112),p=h("iterator"),m=d.Uint8Array,g=f.values,y=f.keys,C=f.entries,E=u.aTypedArray,b=u.exportTypedArrayMethod,v=m&&m.prototype[p],k=!!v&&(v.name=="values"||v.name==null),_=function(){return g.call(E(this))};b("entries",function(){return C.call(E(this))}),b("keys",function(){return y.call(E(this))}),b("values",_,!k),b(p,_,!k)},8867:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].join;f("join",function(m){return h.apply(u(this),arguments)})},7789:function(s,c,l){var d=l(260),u=l(6583),f=d.aTypedArray,h=d.exportTypedArrayMethod;h("lastIndexOf",function(m){return u.apply(f(this),arguments)})},3739:function(s,c,l){var d=l(260),u=l(2092).map,f=l(6707),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod;m("map",function(y){return u(h(this),y,arguments.length>1?arguments[1]:void 0,function(C,E){return new(p(f(C,C.constructor)))(E)})})},4483:function(s,c,l){var d=l(260),u=l(3671).right,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduceRight",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(s,c,l){var d=l(260),u=l(3671).left,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("reduce",function(m){return u(f(this),m,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=Math.floor;f("reverse",function(){for(var m=this,g=u(m).length,y=h(g/2),C=0,E;C<y;)E=m[C],m[C++]=m[--g],m[g]=E;return m})},3462:function(s,c,l){var d=l(260),u=l(7466),f=l(4590),h=l(7908),p=l(7293),m=d.aTypedArray,g=d.exportTypedArrayMethod,y=p(function(){new Int8Array(1).set({})});g("set",function(E){m(this);var b=f(arguments.length>1?arguments[1]:void 0,1),v=this.length,k=h(E),_=u(k.length),O=0;if(_+b>v)throw RangeError("Wrong length");for(;O<_;)this[b+O]=k[O++]},y)},678:function(s,c,l){var d=l(260),u=l(6707),f=l(7293),h=d.aTypedArray,p=d.aTypedArrayConstructor,m=d.exportTypedArrayMethod,g=[].slice,y=f(function(){new Int8Array(1).slice()});m("slice",function(E,b){for(var v=g.call(h(this),E,b),k=u(this,this.constructor),_=0,O=v.length,L=new(p(k))(O);O>_;)L[_]=v[_++];return L},y)},7462:function(s,c,l){var d=l(260),u=l(2092).some,f=d.aTypedArray,h=d.exportTypedArrayMethod;h("some",function(m){return u(f(this),m,arguments.length>1?arguments[1]:void 0)})},3824:function(s,c,l){var d=l(260),u=d.aTypedArray,f=d.exportTypedArrayMethod,h=[].sort;f("sort",function(m){return h.call(u(this),m)})},5021:function(s,c,l){var d=l(260),u=l(7466),f=l(1400),h=l(6707),p=d.aTypedArray,m=d.exportTypedArrayMethod;m("subarray",function(y,C){var E=p(this),b=E.length,v=f(y,b);return new(h(E,E.constructor))(E.buffer,E.byteOffset+v*E.BYTES_PER_ELEMENT,u((C===void 0?b:f(C,b))-v))})},2974:function(s,c,l){var d=l(7854),u=l(260),f=l(7293),h=d.Int8Array,p=u.aTypedArray,m=u.exportTypedArrayMethod,g=[].toLocaleString,y=[].slice,C=!!h&&f(function(){g.call(new h(1))}),E=f(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!f(function(){h.prototype.toLocaleString.call([1,2])});m("toLocaleString",function(){return g.apply(C?y.call(p(this)):p(this),arguments)},E)},5016:function(s,c,l){var d=l(260).exportTypedArrayMethod,u=l(7293),f=l(7854),h=f.Uint8Array,p=h&&h.prototype||{},m=[].toString,g=[].join;u(function(){m.call({})})&&(m=function(){return g.call(this)});var y=p.toString!=m;d("toString",m,y)},2472:function(s,c,l){var d=l(9843);d("Uint8",function(u){return function(h,p,m){return u(this,h,p,m)}})},4747:function(s,c,l){var d=l(7854),u=l(8324),f=l(8533),h=l(8880);for(var p in u){var m=d[p],g=m&&m.prototype;if(g&&g.forEach!==f)try{h(g,"forEach",f)}catch{g.forEach=f}}},3948:function(s,c,l){var d=l(7854),u=l(8324),f=l(6992),h=l(8880),p=l(5112),m=p("iterator"),g=p("toStringTag"),y=f.values;for(var C in u){var E=d[C],b=E&&E.prototype;if(b){if(b[m]!==y)try{h(b,m,y)}catch{b[m]=y}if(b[g]||h(b,g,C),u[C]){for(var v in f)if(b[v]!==f[v])try{h(b,v,f[v])}catch{b[v]=f[v]}}}}},1637:function(s,c,l){l(6992);var d=l(2109),u=l(5005),f=l(590),h=l(1320),p=l(2248),m=l(8003),g=l(4994),y=l(9909),C=l(5787),E=l(6656),b=l(9974),v=l(648),k=l(9670),_=l(111),O=l(30),L=l(9114),N=l(8554),z=l(1246),V=l(5112),P=u("fetch"),j=u("Headers"),K=V("iterator"),F="URLSearchParams",W=F+"Iterator",Q=y.set,U=y.getterFor(F),ee=y.getterFor(W),ne=/\+/g,ae=Array(4),ue=function(M){return ae[M-1]||(ae[M-1]=RegExp("((?:%[\\da-f]{2}){"+M+"})","gi"))},me=function(M){try{return decodeURIComponent(M)}catch{return M}},Ee=function(M){var Y=M.replace(ne," "),G=4;try{return decodeURIComponent(Y)}catch{for(;G;)Y=Y.replace(ue(G--),me);return Y}},ke=/[!'()~]|%20/g,Oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Se=function(M){return Oe[M]},D=function(M){return encodeURIComponent(M).replace(ke,Se)},$=function(M,Y){if(Y)for(var G=Y.split("&"),J=0,X,A;J<G.length;)X=G[J++],X.length&&(A=X.split("="),M.push({key:Ee(A.shift()),value:Ee(A.join("="))}))},x=function(M){this.entries.length=0,$(this.entries,M)},B=function(M,Y){if(M<Y)throw TypeError("Not enough arguments")},S=g(function(Y,G){Q(this,{type:W,iterator:N(U(Y).entries),kind:G})},"Iterator",function(){var Y=ee(this),G=Y.kind,J=Y.iterator.next(),X=J.value;return J.done||(J.value=G==="keys"?X.key:G==="values"?X.value:[X.key,X.value]),J}),w=function(){C(this,w,F);var Y=arguments.length>0?arguments[0]:void 0,G=this,J=[],X,A,T,H,Z,le,ge,Ae,te;if(Q(G,{type:F,entries:J,updateURL:function(){},updateSearchParams:x}),Y!==void 0)if(_(Y))if(X=z(Y),typeof X=="function")for(A=X.call(Y),T=A.next;!(H=T.call(A)).done;){if(Z=N(k(H.value)),le=Z.next,(ge=le.call(Z)).done||(Ae=le.call(Z)).done||!le.call(Z).done)throw TypeError("Expected sequence with length 2");J.push({key:ge.value+"",value:Ae.value+""})}else for(te in Y)E(Y,te)&&J.push({key:te,value:Y[te]+""});else $(J,typeof Y=="string"?Y.charAt(0)==="?"?Y.slice(1):Y:Y+"")},I=w.prototype;p(I,{append:function(Y,G){B(arguments.length,2);var J=U(this);J.entries.push({key:Y+"",value:G+""}),J.updateURL()},delete:function(M){B(arguments.length,1);for(var Y=U(this),G=Y.entries,J=M+"",X=0;X<G.length;)G[X].key===J?G.splice(X,1):X++;Y.updateURL()},get:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;X++)if(G[X].key===J)return G[X].value;return null},getAll:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=[],A=0;A<G.length;A++)G[A].key===J&&X.push(G[A].value);return X},has:function(Y){B(arguments.length,1);for(var G=U(this).entries,J=Y+"",X=0;X<G.length;)if(G[X++].key===J)return!0;return!1},set:function(Y,G){B(arguments.length,1);for(var J=U(this),X=J.entries,A=!1,T=Y+"",H=G+"",Z=0,le;Z<X.length;Z++)le=X[Z],le.key===T&&(A?X.splice(Z--,1):(A=!0,le.value=H));A||X.push({key:T,value:H}),J.updateURL()},sort:function(){var Y=U(this),G=Y.entries,J=G.slice(),X,A,T;for(G.length=0,T=0;T<J.length;T++){for(X=J[T],A=0;A<T;A++)if(G[A].key>X.key){G.splice(A,0,X);break}A===T&&G.push(X)}Y.updateURL()},forEach:function(Y){for(var G=U(this).entries,J=b(Y,arguments.length>1?arguments[1]:void 0,3),X=0,A;X<G.length;)A=G[X++],J(A.value,A.key,this)},keys:function(){return new S(this,"keys")},values:function(){return new S(this,"values")},entries:function(){return new S(this,"entries")}},{enumerable:!0}),h(I,K,I.entries),h(I,"toString",function(){for(var Y=U(this).entries,G=[],J=0,X;J<Y.length;)X=Y[J++],G.push(D(X.key)+"="+D(X.value));return G.join("&")},{enumerable:!0}),m(w,F),d({global:!0,forced:!f},{URLSearchParams:w}),!f&&typeof P=="function"&&typeof j=="function"&&d({global:!0,enumerable:!0,forced:!0},{fetch:function(Y){var G=[Y],J,X,A;return arguments.length>1&&(J=arguments[1],_(J)&&(X=J.body,v(X)===F&&(A=J.headers?new j(J.headers):new j,A.has("content-type")||A.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),J=O(J,{body:L(0,String(X)),headers:L(0,A)}))),G.push(J)),P.apply(this,G)}}),s.exports={URLSearchParams:w,getState:U}},285:function(s,c,l){l(8783);var d=l(2109),u=l(9781),f=l(590),h=l(7854),p=l(6048),m=l(1320),g=l(5787),y=l(6656),C=l(1574),E=l(8457),b=l(8710).codeAt,v=l(3197),k=l(8003),_=l(1637),O=l(9909),L=h.URL,N=_.URLSearchParams,z=_.getState,V=O.set,P=O.getterFor("URL"),j=Math.floor,K=Math.pow,F="Invalid authority",W="Invalid scheme",Q="Invalid host",U="Invalid port",ee=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,ae=/\d/,ue=/^(0x|0X)/,me=/^[0-7]+$/,Ee=/^\d+$/,ke=/^[\dA-Fa-f]+$/,Oe=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Se=/[\u0000\t\u000A\u000D #/:?@[\\]]/,D=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,$=/[\t\u000A\u000D]/g,x,B=function(R,ie){var oe,ce,pe;if(ie.charAt(0)=="["){if(ie.charAt(ie.length-1)!="]"||(oe=w(ie.slice(1,-1)),!oe))return Q;R.host=oe}else if(H(R)){if(ie=v(ie),Oe.test(ie)||(oe=S(ie),oe===null))return Q;R.host=oe}else{if(Se.test(ie))return Q;for(oe="",ce=E(ie),pe=0;pe<ce.length;pe++)oe+=A(ce[pe],Y);R.host=oe}},S=function(R){var ie=R.split("."),oe,ce,pe,$e,xe,et,at;if(ie.length&&ie[ie.length-1]==""&&ie.pop(),oe=ie.length,oe>4)return R;for(ce=[],pe=0;pe<oe;pe++){if($e=ie[pe],$e=="")return R;if(xe=10,$e.length>1&&$e.charAt(0)=="0"&&(xe=ue.test($e)?16:8,$e=$e.slice(xe==8?1:2)),$e==="")et=0;else{if(!(xe==10?Ee:xe==8?me:ke).test($e))return R;et=parseInt($e,xe)}ce.push(et)}for(pe=0;pe<oe;pe++)if(et=ce[pe],pe==oe-1){if(et>=K(256,5-oe))return null}else if(et>255)return null;for(at=ce.pop(),pe=0;pe<ce.length;pe++)at+=ce[pe]*K(256,3-pe);return at},w=function(R){var ie=[0,0,0,0,0,0,0,0],oe=0,ce=null,pe=0,$e,xe,et,at,pt,_n,fe,St=function(){return R.charAt(pe)};if(St()==":"){if(R.charAt(1)!=":")return;pe+=2,oe++,ce=oe}for(;St();){if(oe==8)return;if(St()==":"){if(ce!==null)return;pe++,oe++,ce=oe;continue}for($e=xe=0;xe<4&&ke.test(St());)$e=$e*16+parseInt(St(),16),pe++,xe++;if(St()=="."){if(xe==0||(pe-=xe,oe>6))return;for(et=0;St();){if(at=null,et>0)if(St()=="."&&et<4)pe++;else return;if(!ae.test(St()))return;for(;ae.test(St());){if(pt=parseInt(St(),10),at===null)at=pt;else{if(at==0)return;at=at*10+pt}if(at>255)return;pe++}ie[oe]=ie[oe]*256+at,et++,(et==2||et==4)&&oe++}if(et!=4)return;break}else if(St()==":"){if(pe++,!St())return}else if(St())return;ie[oe++]=$e}if(ce!==null)for(_n=oe-ce,oe=7;oe!=0&&_n>0;)fe=ie[oe],ie[oe--]=ie[ce+_n-1],ie[ce+--_n]=fe;else if(oe!=8)return;return ie},I=function(R){for(var ie=null,oe=1,ce=null,pe=0,$e=0;$e<8;$e++)R[$e]!==0?(pe>oe&&(ie=ce,oe=pe),ce=null,pe=0):(ce===null&&(ce=$e),++pe);return pe>oe&&(ie=ce,oe=pe),ie},M=function(R){var ie,oe,ce,pe;if(typeof R=="number"){for(ie=[],oe=0;oe<4;oe++)ie.unshift(R%256),R=j(R/256);return ie.join(".")}else if(typeof R=="object"){for(ie="",ce=I(R),oe=0;oe<8;oe++)pe&&R[oe]===0||(pe&&(pe=!1),ce===oe?(ie+=oe?":":"::",pe=!0):(ie+=R[oe].toString(16),oe<7&&(ie+=":")));return"["+ie+"]"}return R},Y={},G=C({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),J=C({},G,{"#":1,"?":1,"{":1,"}":1}),X=C({},J,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),A=function(R,ie){var oe=b(R,0);return oe>32&&oe<127&&!y(ie,R)?R:encodeURIComponent(R)},T={ftp:21,file:null,http:80,https:443,ws:80,wss:443},H=function(R){return y(T,R.scheme)},Z=function(R){return R.username!=""||R.password!=""},le=function(R){return!R.host||R.cannotBeABaseURL||R.scheme=="file"},ge=function(R,ie){var oe;return R.length==2&&ee.test(R.charAt(0))&&((oe=R.charAt(1))==":"||!ie&&oe=="|")},Ae=function(R){var ie;return R.length>1&&ge(R.slice(0,2))&&(R.length==2||(ie=R.charAt(2))==="/"||ie==="\\"||ie==="?"||ie==="#")},te=function(R){var ie=R.path,oe=ie.length;oe&&(R.scheme!="file"||oe!=1||!ge(ie[0],!0))&&ie.pop()},se=function(R){return R==="."||R.toLowerCase()==="%2e"},_e=function(R){return R=R.toLowerCase(),R===".."||R==="%2e."||R===".%2e"||R==="%2e%2e"},Re={},it={},ct={},Ht={},re={},ve={},ye={},Me={},Pe={},st={},dt={},Wt={},Kt={},Tt={},er={},so={},cn={},Cn={},Ui={},En={},Er={},tr=function(R,ie,oe,ce){var pe=oe||Re,$e=0,xe="",et=!1,at=!1,pt=!1,_n,fe,St,Sr;for(oe||(R.scheme="",R.username="",R.password="",R.host=null,R.port=null,R.path=[],R.query=null,R.fragment=null,R.cannotBeABaseURL=!1,ie=ie.replace(D,"")),ie=ie.replace($,""),_n=E(ie);$e<=_n.length;){switch(fe=_n[$e],pe){case Re:if(fe&&ee.test(fe))xe+=fe.toLowerCase(),pe=it;else{if(oe)return W;pe=ct;continue}break;case it:if(fe&&(ne.test(fe)||fe=="+"||fe=="-"||fe=="."))xe+=fe.toLowerCase();else if(fe==":"){if(oe&&(H(R)!=y(T,xe)||xe=="file"&&(Z(R)||R.port!==null)||R.scheme=="file"&&!R.host))return;if(R.scheme=xe,oe){H(R)&&T[R.scheme]==R.port&&(R.port=null);return}xe="",R.scheme=="file"?pe=Tt:H(R)&&ce&&ce.scheme==R.scheme?pe=Ht:H(R)?pe=Me:_n[$e+1]=="/"?(pe=re,$e++):(R.cannotBeABaseURL=!0,R.path.push(""),pe=Ui)}else{if(oe)return W;xe="",pe=ct,$e=0;continue}break;case ct:if(!ce||ce.cannotBeABaseURL&&fe!="#")return W;if(ce.cannotBeABaseURL&&fe=="#"){R.scheme=ce.scheme,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",R.cannotBeABaseURL=!0,pe=Er;break}pe=ce.scheme=="file"?Tt:ve;continue;case Ht:if(fe=="/"&&_n[$e+1]=="/")pe=Pe,$e++;else{pe=ve;continue}break;case re:if(fe=="/"){pe=st;break}else{pe=Cn;continue}case ve:if(R.scheme=ce.scheme,fe==x)R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query=ce.query;else if(fe=="/"||fe=="\\"&&H(R))pe=ye;else if(fe=="?")R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query="",pe=En;else if(fe=="#")R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",pe=Er;else{R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,R.path=ce.path.slice(),R.path.pop(),pe=Cn;continue}break;case ye:if(H(R)&&(fe=="/"||fe=="\\"))pe=Pe;else if(fe=="/")pe=st;else{R.username=ce.username,R.password=ce.password,R.host=ce.host,R.port=ce.port,pe=Cn;continue}break;case Me:if(pe=Pe,fe!="/"||xe.charAt($e+1)!="/")continue;$e++;break;case Pe:if(fe!="/"&&fe!="\\"){pe=st;continue}break;case st:if(fe=="@"){et&&(xe="%40"+xe),et=!0,St=E(xe);for(var vh=0;vh<St.length;vh++){var l3=St[vh];if(l3==":"&&!pt){pt=!0;continue}var c3=A(l3,X);pt?R.password+=c3:R.username+=c3}xe=""}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)){if(et&&xe=="")return F;$e-=E(xe).length+1,xe="",pe=dt}else xe+=fe;break;case dt:case Wt:if(oe&&R.scheme=="file"){pe=so;continue}else if(fe==":"&&!at){if(xe=="")return Q;if(Sr=B(R,xe),Sr)return Sr;if(xe="",pe=Kt,oe==Wt)return}else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)){if(H(R)&&xe=="")return Q;if(oe&&xe==""&&(Z(R)||R.port!==null))return;if(Sr=B(R,xe),Sr)return Sr;if(xe="",pe=cn,oe)return;continue}else fe=="["?at=!0:fe=="]"&&(at=!1),xe+=fe;break;case Kt:if(ae.test(fe))xe+=fe;else if(fe==x||fe=="/"||fe=="?"||fe=="#"||fe=="\\"&&H(R)||oe){if(xe!=""){var bh=parseInt(xe,10);if(bh>65535)return U;R.port=H(R)&&bh===T[R.scheme]?null:bh,xe=""}if(oe)return;pe=cn;continue}else return U;break;case Tt:if(R.scheme="file",fe=="/"||fe=="\\")pe=er;else if(ce&&ce.scheme=="file")if(fe==x)R.host=ce.host,R.path=ce.path.slice(),R.query=ce.query;else if(fe=="?")R.host=ce.host,R.path=ce.path.slice(),R.query="",pe=En;else if(fe=="#")R.host=ce.host,R.path=ce.path.slice(),R.query=ce.query,R.fragment="",pe=Er;else{Ae(_n.slice($e).join(""))||(R.host=ce.host,R.path=ce.path.slice(),te(R)),pe=Cn;continue}else{pe=Cn;continue}break;case er:if(fe=="/"||fe=="\\"){pe=so;break}ce&&ce.scheme=="file"&&!Ae(_n.slice($e).join(""))&&(ge(ce.path[0],!0)?R.path.push(ce.path[0]):R.host=ce.host),pe=Cn;continue;case so:if(fe==x||fe=="/"||fe=="\\"||fe=="?"||fe=="#"){if(!oe&&ge(xe))pe=Cn;else if(xe==""){if(R.host="",oe)return;pe=cn}else{if(Sr=B(R,xe),Sr)return Sr;if(R.host=="localhost"&&(R.host=""),oe)return;xe="",pe=cn}continue}else xe+=fe;break;case cn:if(H(R)){if(pe=Cn,fe!="/"&&fe!="\\")continue}else if(!oe&&fe=="?")R.query="",pe=En;else if(!oe&&fe=="#")R.fragment="",pe=Er;else if(fe!=x&&(pe=Cn,fe!="/"))continue;break;case Cn:if(fe==x||fe=="/"||fe=="\\"&&H(R)||!oe&&(fe=="?"||fe=="#")){if(_e(xe)?(te(R),fe!="/"&&!(fe=="\\"&&H(R))&&R.path.push("")):se(xe)?fe!="/"&&!(fe=="\\"&&H(R))&&R.path.push(""):(R.scheme=="file"&&!R.path.length&&ge(xe)&&(R.host&&(R.host=""),xe=xe.charAt(0)+":"),R.path.push(xe)),xe="",R.scheme=="file"&&(fe==x||fe=="?"||fe=="#"))for(;R.path.length>1&&R.path[0]==="";)R.path.shift();fe=="?"?(R.query="",pe=En):fe=="#"&&(R.fragment="",pe=Er)}else xe+=A(fe,J);break;case Ui:fe=="?"?(R.query="",pe=En):fe=="#"?(R.fragment="",pe=Er):fe!=x&&(R.path[0]+=A(fe,Y));break;case En:!oe&&fe=="#"?(R.fragment="",pe=Er):fe!=x&&(fe=="'"&&H(R)?R.query+="%27":fe=="#"?R.query+="%23":R.query+=A(fe,Y));break;case Er:fe!=x&&(R.fragment+=A(fe,G));break}$e++}},Uo=function(ie){var oe=g(this,Uo,"URL"),ce=arguments.length>1?arguments[1]:void 0,pe=String(ie),$e=V(oe,{type:"URL"}),xe,et;if(ce!==void 0){if(ce instanceof Uo)xe=P(ce);else if(et=tr(xe={},String(ce)),et)throw TypeError(et)}if(et=tr($e,pe,null,xe),et)throw TypeError(et);var at=$e.searchParams=new N,pt=z(at);pt.updateSearchParams($e.query),pt.updateURL=function(){$e.query=String(at)||null},u||(oe.href=Oc.call(oe),oe.origin=Qv.call(oe),oe.protocol=Zv.call(oe),oe.username=Jv.call(oe),oe.password=Xv.call(oe),oe.host=qv.call(oe),oe.hostname=e3.call(oe),oe.port=t3.call(oe),oe.pathname=n3.call(oe),oe.search=r3.call(oe),oe.searchParams=o3.call(oe),oe.hash=i3.call(oe))},yh=Uo.prototype,Oc=function(){var R=P(this),ie=R.scheme,oe=R.username,ce=R.password,pe=R.host,$e=R.port,xe=R.path,et=R.query,at=R.fragment,pt=ie+":";return pe!==null?(pt+="//",Z(R)&&(pt+=oe+(ce?":"+ce:"")+"@"),pt+=M(pe),$e!==null&&(pt+=":"+$e)):ie=="file"&&(pt+="//"),pt+=R.cannotBeABaseURL?xe[0]:xe.length?"/"+xe.join("/"):"",et!==null&&(pt+="?"+et),at!==null&&(pt+="#"+at),pt},Qv=function(){var R=P(this),ie=R.scheme,oe=R.port;if(ie=="blob")try{return new URL(ie.path[0]).origin}catch{return"null"}return ie=="file"||!H(R)?"null":ie+"://"+M(R.host)+(oe!==null?":"+oe:"")},Zv=function(){return P(this).scheme+":"},Jv=function(){return P(this).username},Xv=function(){return P(this).password},qv=function(){var R=P(this),ie=R.host,oe=R.port;return ie===null?"":oe===null?M(ie):M(ie)+":"+oe},e3=function(){var R=P(this).host;return R===null?"":M(R)},t3=function(){var R=P(this).port;return R===null?"":String(R)},n3=function(){var R=P(this),ie=R.path;return R.cannotBeABaseURL?ie[0]:ie.length?"/"+ie.join("/"):""},r3=function(){var R=P(this).query;return R?"?"+R:""},o3=function(){return P(this).searchParams},i3=function(){var R=P(this).fragment;return R?"#"+R:""},Sn=function(R,ie){return{get:R,set:ie,configurable:!0,enumerable:!0}};if(u&&p(yh,{href:Sn(Oc,function(R){var ie=P(this),oe=String(R),ce=tr(ie,oe);if(ce)throw TypeError(ce);z(ie.searchParams).updateSearchParams(ie.query)}),origin:Sn(Qv),protocol:Sn(Zv,function(R){var ie=P(this);tr(ie,String(R)+":",Re)}),username:Sn(Jv,function(R){var ie=P(this),oe=E(String(R));if(!le(ie)){ie.username="";for(var ce=0;ce<oe.length;ce++)ie.username+=A(oe[ce],X)}}),password:Sn(Xv,function(R){var ie=P(this),oe=E(String(R));if(!le(ie)){ie.password="";for(var ce=0;ce<oe.length;ce++)ie.password+=A(oe[ce],X)}}),host:Sn(qv,function(R){var ie=P(this);ie.cannotBeABaseURL||tr(ie,String(R),dt)}),hostname:Sn(e3,function(R){var ie=P(this);ie.cannotBeABaseURL||tr(ie,String(R),Wt)}),port:Sn(t3,function(R){var ie=P(this);le(ie)||(R=String(R),R==""?ie.port=null:tr(ie,R,Kt))}),pathname:Sn(n3,function(R){var ie=P(this);ie.cannotBeABaseURL||(ie.path=[],tr(ie,R+"",cn))}),search:Sn(r3,function(R){var ie=P(this);R=String(R),R==""?ie.query=null:(R.charAt(0)=="?"&&(R=R.slice(1)),ie.query="",tr(ie,R,En)),z(ie.searchParams).updateSearchParams(ie.query)}),searchParams:Sn(o3),hash:Sn(i3,function(R){var ie=P(this);if(R=String(R),R==""){ie.fragment=null;return}R.charAt(0)=="#"&&(R=R.slice(1)),ie.fragment="",tr(ie,R,Er)})}),m(yh,"toJSON",function(){return Oc.call(this)},{enumerable:!0}),m(yh,"toString",function(){return Oc.call(this)},{enumerable:!0}),L){var s3=L.createObjectURL,a3=L.revokeObjectURL;s3&&m(Uo,"createObjectURL",function(ie){return s3.apply(L,arguments)}),a3&&m(Uo,"revokeObjectURL",function(ie){return a3.apply(L,arguments)})}k(Uo,"URL"),d({global:!0,forced:!f,sham:!u},{URL:Uo})}},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 l in c)o.o(c,l)&&!o.o(s,l)&&Object.defineProperty(s,l,{enumerable:!0,get:c[l]})}})(),function(){o.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){o.o=function(s,c){return Object.prototype.hasOwnProperty.call(s,c)}}(),function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}}();var i={};return function(){o.r(i),o.d(i,{Dropzone:function(){return U},default:function(){return Se}}),o(2222),o(7327),o(2772),o(6992),o(1249),o(7042),o(561),o(8264),o(8309),o(489),o(1539),o(4916),o(9714),o(8783),o(4723),o(5306),o(3123),o(3210),o(2472),o(2990),o(8927),o(3105),o(5035),o(4345),o(7174),o(2846),o(4731),o(7209),o(6319),o(8867),o(7789),o(3739),o(9368),o(4483),o(2056),o(3462),o(678),o(7462),o(3824),o(5021),o(2974),o(5016),o(4747),o(3948),o(285);function s(D,$){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=c(D))||$&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1232
1232
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function c(D,$){if(D){if(typeof D=="string")return l(D,$);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return l(D,$)}}function l(D,$){($==null||$>D.length)&&($=D.length);for(var x=0,B=new Array($);x<$;x++)B[x]=D[x];return B}function d(D,$){if(!(D instanceof $))throw new TypeError("Cannot call a class as a function")}function u(D,$){for(var x=0;x<$.length;x++){var B=$[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function f(D,$,x){return $&&u(D.prototype,$),x&&u(D,x),D}var h=function(){function D(){d(this,D)}return f(D,[{key:"on",value:function(x,B){return this._callbacks=this._callbacks||{},this._callbacks[x]||(this._callbacks[x]=[]),this._callbacks[x].push(B),this}},{key:"emit",value:function(x){this._callbacks=this._callbacks||{};for(var B=this._callbacks[x],S=arguments.length,w=new Array(S>1?S-1:0),I=1;I<S;I++)w[I-1]=arguments[I];if(B){var M=s(B,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.apply(this,w)}}catch(J){M.e(J)}finally{M.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+x,{args:w})),this}},{key:"makeEvent",value:function(x,B){var S={bubbles:!0,cancelable:!0,detail:B};if(typeof window.CustomEvent=="function")return new CustomEvent(x,S);var w=document.createEvent("CustomEvent");return w.initCustomEvent(x,S.bubbles,S.cancelable,S.detail),w}},{key:"off",value:function(x,B){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var S=this._callbacks[x];if(!S)return this;if(arguments.length===1)return delete this._callbacks[x],this;for(var w=0;w<S.length;w++){var I=S[w];if(I===B){S.splice(w,1);break}}return this}}]),D}(),p='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',m=p;function g(D,$){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=y(D))||$&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1233
1233
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function y(D,$){if(D){if(typeof D=="string")return C(D,$);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return C(D,$)}}function C(D,$){($==null||$>D.length)&&($=D.length);for(var x=0,B=new Array($);x<$;x++)B[x]=D[x];return B}var E={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function($,x,B){if(B)return{dzuuid:B.file.upload.uuid,dzchunkindex:B.index,dztotalfilesize:B.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:B.file.upload.totalChunkCount,dzchunkbyteoffset:B.index*this.options.chunkSize}},accept:function($,x){return x()},chunksUploaded:function($,x){x()},fallback:function(){var $;this.element.className="".concat(this.element.className," dz-browser-not-supported");var x=g(this.element.getElementsByTagName("div"),!0),B;try{for(x.s();!(B=x.n()).done;){var S=B.value;if(/(^| )dz-message($| )/.test(S.className)){$=S,S.className="dz-message";break}}}catch(I){x.e(I)}finally{x.f()}$||($=U.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild($));var w=$.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($,x,B,S){var w={srcX:0,srcY:0,srcWidth:$.width,srcHeight:$.height},I=$.width/$.height;x==null&&B==null?(x=w.srcWidth,B=w.srcHeight):x==null?x=B*I:B==null&&(B=x/I),x=Math.min(x,w.srcWidth),B=Math.min(B,w.srcHeight);var M=x/B;if(w.srcWidth>x||w.srcHeight>B)if(S==="crop")I>M?(w.srcHeight=$.height,w.srcWidth=w.srcHeight*M):(w.srcWidth=$.width,w.srcHeight=w.srcWidth/M);else if(S==="contain")I>M?B=x/I:x=B*I;else throw new Error("Unknown resizeMethod '".concat(S,"'"));return w.srcX=($.width-w.srcWidth)/2,w.srcY=($.height-w.srcHeight)/2,w.trgWidth=x,w.trgHeight=B,w},transformFile:function($,x){return(this.options.resizeWidth||this.options.resizeHeight)&&$.type.match(/image.*/)?this.resizeImage($,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,x):x($)},previewTemplate:m,drop:function($){return this.element.classList.remove("dz-drag-hover")},dragstart:function($){},dragend:function($){return this.element.classList.remove("dz-drag-hover")},dragenter:function($){return this.element.classList.add("dz-drag-hover")},dragover:function($){return this.element.classList.add("dz-drag-hover")},dragleave:function($){return this.element.classList.remove("dz-drag-hover")},paste:function($){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function($){var x=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){$.previewElement=U.createElement(this.options.previewTemplate.trim()),$.previewTemplate=$.previewElement,this.previewsContainer.appendChild($.previewElement);var B=g($.previewElement.querySelectorAll("[data-dz-name]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=$.name}}catch(A){B.e(A)}finally{B.f()}var I=g($.previewElement.querySelectorAll("[data-dz-size]"),!0),M;try{for(I.s();!(M=I.n()).done;)w=M.value,w.innerHTML=this.filesize($.size)}catch(A){I.e(A)}finally{I.f()}this.options.addRemoveLinks&&($._removeLink=U.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),$.previewElement.appendChild($._removeLink));var Y=function(T){return T.preventDefault(),T.stopPropagation(),$.status===U.UPLOADING?U.confirm(x.options.dictCancelUploadConfirmation,function(){return x.removeFile($)}):x.options.dictRemoveFileConfirmation?U.confirm(x.options.dictRemoveFileConfirmation,function(){return x.removeFile($)}):x.removeFile($)},G=g($.previewElement.querySelectorAll("[data-dz-remove]"),!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;X.addEventListener("click",Y)}}catch(A){G.e(A)}finally{G.f()}}},removedfile:function($){return $.previewElement!=null&&$.previewElement.parentNode!=null&&$.previewElement.parentNode.removeChild($.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function($,x){if($.previewElement){$.previewElement.classList.remove("dz-file-preview");var B=g($.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.alt=$.name,w.src=x}}catch(I){B.e(I)}finally{B.f()}return setTimeout(function(){return $.previewElement.classList.add("dz-image-preview")},1)}},error:function($,x){if($.previewElement){$.previewElement.classList.add("dz-error"),typeof x!="string"&&x.error&&(x=x.error);var B=g($.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;w.textContent=x}}catch(I){B.e(I)}finally{B.f()}}},errormultiple:function(){},processing:function($){if($.previewElement&&($.previewElement.classList.add("dz-processing"),$._removeLink))return $._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function($,x,B){if($.previewElement){var S=g($.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;I.nodeName==="PROGRESS"?I.value=x:I.style.width="".concat(x,"%")}}catch(M){S.e(M)}finally{S.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function($){if($.previewElement)return $.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function($){return this.emit("error",$,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function($){if($._removeLink&&($._removeLink.innerHTML=this.options.dictRemoveFile),$.previewElement)return $.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},b=E;function v(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(x){return typeof x}:v=function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},v(D)}function k(D,$){var x;if(typeof Symbol>"u"||D[Symbol.iterator]==null){if(Array.isArray(D)||(x=_(D))||$&&D&&typeof D.length=="number"){x&&(D=x);var B=0,S=function(){};return{s:S,n:function(){return B>=D.length?{done:!0}:{done:!1,value:D[B++]}},e:function(G){throw G},f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1234
1234
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,I=!1,M;return{s:function(){x=D[Symbol.iterator]()},n:function(){var G=x.next();return w=G.done,G},e:function(G){I=!0,M=G},f:function(){try{!w&&x.return!=null&&x.return()}finally{if(I)throw M}}}}function _(D,$){if(D){if(typeof D=="string")return O(D,$);var x=Object.prototype.toString.call(D).slice(8,-1);if(x==="Object"&&D.constructor&&(x=D.constructor.name),x==="Map"||x==="Set")return Array.from(D);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return O(D,$)}}function O(D,$){($==null||$>D.length)&&($=D.length);for(var x=0,B=new Array($);x<$;x++)B[x]=D[x];return B}function L(D,$){if(!(D instanceof $))throw new TypeError("Cannot call a class as a function")}function N(D,$){for(var x=0;x<$.length;x++){var B=$[x];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function z(D,$,x){return $&&N(D.prototype,$),x&&N(D,x),D}function V(D,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create($&&$.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),$&&P(D,$)}function P(D,$){return P=Object.setPrototypeOf||function(B,S){return B.__proto__=S,B},P(D,$)}function j(D){var $=W();return function(){var B=Q(D),S;if($){var w=Q(this).constructor;S=Reflect.construct(B,arguments,w)}else S=B.apply(this,arguments);return K(this,S)}}function K(D,$){return $&&(v($)==="object"||typeof $=="function")?$:F(D)}function F(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Q(D){return Q=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)},Q(D)}var U=function(D){V(x,D);var $=j(x);function x(B,S){var w;L(this,x),w=$.call(this);var I,M;if(w.element=B,w.version=x.version,w.clickableElements=[],w.listeners=[],w.files=[],typeof w.element=="string"&&(w.element=document.querySelector(w.element)),!w.element||w.element.nodeType==null)throw new Error("Invalid dropzone element.");if(w.element.dropzone)throw new Error("Dropzone already attached.");x.instances.push(F(w)),w.element.dropzone=F(w);var Y=(M=x.optionsForElement(w.element))!=null?M:{};if(w.options=x.extend({},b,Y,S??{}),w.options.previewTemplate=w.options.previewTemplate.replace(/\n*/g,""),w.options.forceFallback||!x.isBrowserSupported())return K(w,w.options.fallback.call(F(w)));if(w.options.url==null&&(w.options.url=w.element.getAttribute("action")),!w.options.url)throw new Error("No URL provided.");if(w.options.acceptedFiles&&w.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(w.options.uploadMultiple&&w.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return w.options.acceptedMimeTypes&&(w.options.acceptedFiles=w.options.acceptedMimeTypes,delete w.options.acceptedMimeTypes),w.options.renameFilename!=null&&(w.options.renameFile=function(G){return w.options.renameFilename.call(F(w),G.name,G)}),typeof w.options.method=="string"&&(w.options.method=w.options.method.toUpperCase()),(I=w.getExistingFallback())&&I.parentNode&&I.parentNode.removeChild(I),w.options.previewsContainer!==!1&&(w.options.previewsContainer?w.previewsContainer=x.getElement(w.options.previewsContainer,"previewsContainer"):w.previewsContainer=w.element),w.options.clickable&&(w.options.clickable===!0?w.clickableElements=[w.element]:w.clickableElements=x.getElements(w.options.clickable,"clickable")),w.init(),w}return z(x,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(S){return S.accepted}).map(function(S){return S})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(S){return!S.accepted}).map(function(S){return S})}},{key:"getFilesWithStatus",value:function(S){return this.files.filter(function(w){return w.status===S}).map(function(w){return w})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(x.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(x.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(x.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(S){return S.status===x.UPLOADING||S.status===x.QUEUED}).map(function(S){return S})}},{key:"init",value:function(){var S=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(x.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var w=function X(){S.hiddenFileInput&&S.hiddenFileInput.parentNode.removeChild(S.hiddenFileInput),S.hiddenFileInput=document.createElement("input"),S.hiddenFileInput.setAttribute("type","file"),(S.options.maxFiles===null||S.options.maxFiles>1)&&S.hiddenFileInput.setAttribute("multiple","multiple"),S.hiddenFileInput.className="dz-hidden-input",S.options.acceptedFiles!==null&&S.hiddenFileInput.setAttribute("accept",S.options.acceptedFiles),S.options.capture!==null&&S.hiddenFileInput.setAttribute("capture",S.options.capture),S.hiddenFileInput.setAttribute("tabindex","-1"),S.hiddenFileInput.style.visibility="hidden",S.hiddenFileInput.style.position="absolute",S.hiddenFileInput.style.top="0",S.hiddenFileInput.style.left="0",S.hiddenFileInput.style.height="0",S.hiddenFileInput.style.width="0",x.getElement(S.options.hiddenInputContainer,"hiddenInputContainer").appendChild(S.hiddenFileInput),S.hiddenFileInput.addEventListener("change",function(){var A=S.hiddenFileInput.files;if(A.length){var T=k(A,!0),H;try{for(T.s();!(H=T.n()).done;){var Z=H.value;S.addFile(Z)}}catch(le){T.e(le)}finally{T.f()}}S.emit("addedfiles",A),X()})};w()}this.URL=window.URL!==null?window.URL:window.webkitURL;var I=k(this.events,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;this.on(Y,this.options[Y])}}catch(X){I.e(X)}finally{I.f()}this.on("uploadprogress",function(){return S.updateTotalUploadProgress()}),this.on("removedfile",function(){return S.updateTotalUploadProgress()}),this.on("canceled",function(X){return S.emit("complete",X)}),this.on("complete",function(X){if(S.getAddedFiles().length===0&&S.getUploadingFiles().length===0&&S.getQueuedFiles().length===0)return setTimeout(function(){return S.emit("queuecomplete")},0)});var G=function(A){if(A.dataTransfer.types){for(var T=0;T<A.dataTransfer.types.length;T++)if(A.dataTransfer.types[T]==="Files")return!0}return!1},J=function(A){if(G(A))return A.stopPropagation(),A.preventDefault?A.preventDefault():A.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(A){return S.emit("dragstart",A)},dragenter:function(A){return J(A),S.emit("dragenter",A)},dragover:function(A){var T;try{T=A.dataTransfer.effectAllowed}catch{}return A.dataTransfer.dropEffect=T==="move"||T==="linkMove"?"move":"copy",J(A),S.emit("dragover",A)},dragleave:function(A){return S.emit("dragleave",A)},drop:function(A){return J(A),S.drop(A)},dragend:function(A){return S.emit("dragend",A)}}}],this.clickableElements.forEach(function(X){return S.listeners.push({element:X,events:{click:function(T){return(X!==S.element||T.target===S.element||x.elementInside(T.target,S.element.querySelector(".dz-message")))&&S.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,x.instances.splice(x.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var S,w=0,I=0,M=this.getActiveFiles();if(M.length){var Y=k(this.getActiveFiles(),!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;w+=J.upload.bytesSent,I+=J.upload.total}}catch(X){Y.e(X)}finally{Y.f()}S=100*w/I}else S=100;return this.emit("totaluploadprogress",S,I,w)}},{key:"_getParamName",value:function(S){return typeof this.options.paramName=="function"?this.options.paramName(S):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(S,"]"):"")}},{key:"_renameFile",value:function(S){return typeof this.options.renameFile!="function"?S.name:this.options.renameFile(S)}},{key:"getFallbackForm",value:function(){var S,w;if(S=this.getExistingFallback())return S;var I='<div class="dz-fallback">';this.options.dictFallbackText&&(I+="<p>".concat(this.options.dictFallbackText,"</p>")),I+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var M=x.createElement(I);return this.element.tagName!=="FORM"?(w=x.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),w.appendChild(M)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),w??M}},{key:"getExistingFallback",value:function(){for(var S=function(J){var X=k(J,!0),A;try{for(X.s();!(A=X.n()).done;){var T=A.value;if(/(^| )fallback($| )/.test(T.className))return T}}catch(H){X.e(H)}finally{X.f()}},w=0,I=["div","form"];w<I.length;w++){var M=I[w],Y;if(Y=S(this.element.getElementsByTagName(M)))return Y}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.addEventListener(I,M,!1))}return w}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(S){return function(){var w=[];for(var I in S.events){var M=S.events[I];w.push(S.element.removeEventListener(I,M,!1))}return w}()})}},{key:"disable",value:function(){var S=this;return this.clickableElements.forEach(function(w){return w.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(w){return S.cancelUpload(w)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(S){return S.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(S){var w=0,I="b";if(S>0){for(var M=["tb","gb","mb","kb","b"],Y=0;Y<M.length;Y++){var G=M[Y],J=Math.pow(this.options.filesizeBase,4-Y)/10;if(S>=J){w=S/Math.pow(this.options.filesizeBase,4-Y),I=G;break}}w=Math.round(10*w)/10}return"<strong>".concat(w,"</strong> ").concat(this.options.dictFileSizeUnits[I])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(S){if(S.dataTransfer){this.emit("drop",S);for(var w=[],I=0;I<S.dataTransfer.files.length;I++)w[I]=S.dataTransfer.files[I];if(w.length){var M=S.dataTransfer.items;M&&M.length&&M[0].webkitGetAsEntry!=null?this._addFilesFromItems(M):this.handleFiles(w)}this.emit("addedfiles",w)}}},{key:"paste",value:function(S){if(ke(S!=null?S.clipboardData:void 0,function(I){return I.items})!=null){this.emit("paste",S);var w=S.clipboardData.items;if(w.length)return this._addFilesFromItems(w)}}},{key:"handleFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.addFile(M)}}catch(Y){w.e(Y)}finally{w.f()}}},{key:"_addFilesFromItems",value:function(S){var w=this;return function(){var I=[],M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value,J;G.webkitGetAsEntry!=null&&(J=G.webkitGetAsEntry())?J.isFile?I.push(w.addFile(G.getAsFile())):J.isDirectory?I.push(w._addFilesFromDirectory(J,J.name)):I.push(void 0):G.getAsFile!=null&&(G.kind==null||G.kind==="file")?I.push(w.addFile(G.getAsFile())):I.push(void 0)}}catch(X){M.e(X)}finally{M.f()}return I}()}},{key:"_addFilesFromDirectory",value:function(S,w){var I=this,M=S.createReader(),Y=function(X){return Oe(console,"log",function(A){return A.log(X)})},G=function J(){return M.readEntries(function(X){if(X.length>0){var A=k(X,!0),T;try{for(A.s();!(T=A.n()).done;){var H=T.value;H.isFile?H.file(function(Z){if(!(I.options.ignoreHiddenFiles&&Z.name.substring(0,1)==="."))return Z.fullPath="".concat(w,"/").concat(Z.name),I.addFile(Z)}):H.isDirectory&&I._addFilesFromDirectory(H,"".concat(w,"/").concat(H.name))}}catch(Z){A.e(Z)}finally{A.f()}J()}return null},Y)};return G()}},{key:"accept",value:function(S,w){this.options.maxFilesize&&S.size>this.options.maxFilesize*1024*1024?w(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(S.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):x.isValidFile(S,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(w(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",S)):this.options.accept.call(this,S,w):w(this.options.dictInvalidFileType)}},{key:"addFile",value:function(S){var w=this;S.upload={uuid:x.uuidv4(),progress:0,total:S.size,bytesSent:0,filename:this._renameFile(S)},this.files.push(S),S.status=x.ADDED,this.emit("addedfile",S),this._enqueueThumbnail(S),this.accept(S,function(I){I?(S.accepted=!1,w._errorProcessing([S],I)):(S.accepted=!0,w.options.autoQueue&&w.enqueueFile(S)),w._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;this.enqueueFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"enqueueFile",value:function(S){var w=this;if(S.status===x.ADDED&&S.accepted===!0){if(S.status=x.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return w.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(S){var w=this;if(this.options.createImageThumbnails&&S.type.match(/image.*/)&&S.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(S),setTimeout(function(){return w._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var S=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var w=this._thumbnailQueue.shift();return this.createThumbnail(w,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(I){return S.emit("thumbnail",w,I),S._processingThumbnail=!1,S._processThumbnailQueue()})}}},{key:"removeFile",value:function(S){if(S.status===x.UPLOADING&&this.cancelUpload(S),this.files=ee(this.files,S),this.emit("removedfile",S),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(S){S==null&&(S=!1);var w=k(this.files.slice(),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;(M.status!==x.UPLOADING||S)&&this.removeFile(M)}}catch(Y){w.e(Y)}finally{w.f()}return null}},{key:"resizeImage",value:function(S,w,I,M,Y){var G=this;return this.createThumbnail(S,w,I,M,!0,function(J,X){if(X==null)return Y(S);var A=G.options.resizeMimeType;A==null&&(A=S.type);var T=X.toDataURL(A,G.options.resizeQuality);return(A==="image/jpeg"||A==="image/jpg")&&(T=me.restore(S.dataURL,T)),Y(x.dataURItoBlob(T))})}},{key:"createThumbnail",value:function(S,w,I,M,Y,G){var J=this,X=new FileReader;X.onload=function(){if(S.dataURL=X.result,S.type==="image/svg+xml"){G!=null&&G(X.result);return}J.createThumbnailFromUrl(S,w,I,M,Y,G)},X.readAsDataURL(S)}},{key:"displayExistingFile",value:function(S,w,I,M){var Y=this,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",S),this.emit("complete",S),!G)this.emit("thumbnail",S,w),I&&I();else{var J=function(A){Y.emit("thumbnail",S,A),I&&I()};S.dataURL=w,this.createThumbnailFromUrl(S,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,J,M)}}},{key:"createThumbnailFromUrl",value:function(S,w,I,M,Y,G,J){var X=this,A=document.createElement("img");return J&&(A.crossOrigin=J),Y=getComputedStyle(document.body).imageOrientation=="from-image"?!1:Y,A.onload=function(){var T=function(Z){return Z(1)};return typeof EXIF<"u"&&EXIF!==null&&Y&&(T=function(Z){return EXIF.getData(A,function(){return Z(EXIF.getTag(this,"Orientation"))})}),T(function(H){S.width=A.width,S.height=A.height;var Z=X.options.resize.call(X,S,w,I,M),le=document.createElement("canvas"),ge=le.getContext("2d");switch(le.width=Z.trgWidth,le.height=Z.trgHeight,H>4&&(le.width=Z.trgHeight,le.height=Z.trgWidth),H){case 2:ge.translate(le.width,0),ge.scale(-1,1);break;case 3:ge.translate(le.width,le.height),ge.rotate(Math.PI);break;case 4:ge.translate(0,le.height),ge.scale(1,-1);break;case 5:ge.rotate(.5*Math.PI),ge.scale(1,-1);break;case 6:ge.rotate(.5*Math.PI),ge.translate(0,-le.width);break;case 7:ge.rotate(.5*Math.PI),ge.translate(le.height,-le.width),ge.scale(-1,1);break;case 8:ge.rotate(-.5*Math.PI),ge.translate(-le.height,0);break}ue(ge,A,Z.srcX!=null?Z.srcX:0,Z.srcY!=null?Z.srcY:0,Z.srcWidth,Z.srcHeight,Z.trgX!=null?Z.trgX:0,Z.trgY!=null?Z.trgY:0,Z.trgWidth,Z.trgHeight);var Ae=le.toDataURL("image/png");if(G!=null)return G(Ae,le)})},G!=null&&(A.onerror=G),A.src=S.dataURL}},{key:"processQueue",value:function(){var S=this.options.parallelUploads,w=this.getUploadingFiles().length,I=w;if(!(w>=S)){var M=this.getQueuedFiles();if(M.length>0){if(this.options.uploadMultiple)return this.processFiles(M.slice(0,S-w));for(;I<S;){if(!M.length)return;this.processFile(M.shift()),I++}}}}},{key:"processFile",value:function(S){return this.processFiles([S])}},{key:"processFiles",value:function(S){var w=k(S,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;M.processing=!0,M.status=x.UPLOADING,this.emit("processing",M)}}catch(Y){w.e(Y)}finally{w.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",S),this.uploadFiles(S)}},{key:"_getFilesWithXhr",value:function(S){return this.files.filter(function(w){return w.xhr===S}).map(function(w){return w})}},{key:"cancelUpload",value:function(S){if(S.status===x.UPLOADING){var w=this._getFilesWithXhr(S.xhr),I=k(w,!0),M;try{for(I.s();!(M=I.n()).done;){var Y=M.value;Y.status=x.CANCELED}}catch(A){I.e(A)}finally{I.f()}typeof S.xhr<"u"&&S.xhr.abort();var G=k(w,!0),J;try{for(G.s();!(J=G.n()).done;){var X=J.value;this.emit("canceled",X)}}catch(A){G.e(A)}finally{G.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",w)}else(S.status===x.ADDED||S.status===x.QUEUED)&&(S.status=x.CANCELED,this.emit("canceled",S),this.options.uploadMultiple&&this.emit("canceledmultiple",[S]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(S){if(typeof S=="function"){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];return S.apply(this,I)}return S}},{key:"uploadFile",value:function(S){return this.uploadFiles([S])}},{key:"uploadFiles",value:function(S){var w=this;this._transformFiles(S,function(I){if(w.options.chunking){var M=I[0];S[0].upload.chunked=w.options.chunking&&(w.options.forceChunking||M.size>w.options.chunkSize),S[0].upload.totalChunkCount=Math.ceil(M.size/w.options.chunkSize)}if(S[0].upload.chunked){var Y=S[0],G=I[0];Y.upload.chunks=[];var J=function(){for(var Z=0;Y.upload.chunks[Z]!==void 0;)Z++;if(!(Z>=Y.upload.totalChunkCount)){var le=Z*w.options.chunkSize,ge=Math.min(le+w.options.chunkSize,G.size),Ae={name:w._getParamName(0),data:G.webkitSlice?G.webkitSlice(le,ge):G.slice(le,ge),filename:Y.upload.filename,chunkIndex:Z};Y.upload.chunks[Z]={file:Y,index:Z,dataBlock:Ae,status:x.UPLOADING,progress:0,retries:0},w._uploadData(S,[Ae])}};if(Y.upload.finishedChunkUpload=function(H,Z){var le=!0;H.status=x.SUCCESS,H.dataBlock=null,H.xhr=null;for(var ge=0;ge<Y.upload.totalChunkCount;ge++){if(Y.upload.chunks[ge]===void 0)return J();Y.upload.chunks[ge].status!==x.SUCCESS&&(le=!1)}le&&w.options.chunksUploaded(Y,function(){w._finished(S,Z,null)})},w.options.parallelChunkUploads)for(var X=0;X<Y.upload.totalChunkCount;X++)J();else J()}else{for(var A=[],T=0;T<S.length;T++)A[T]={name:w._getParamName(T),data:I[T],filename:S[T].upload.filename};w._uploadData(S,A)}})}},{key:"_getChunk",value:function(S,w){for(var I=0;I<S.upload.totalChunkCount;I++)if(S.upload.chunks[I]!==void 0&&S.upload.chunks[I].xhr===w)return S.upload.chunks[I]}},{key:"_uploadData",value:function(S,w){var I=this,M=new XMLHttpRequest,Y=k(S,!0),G;try{for(Y.s();!(G=Y.n()).done;){var J=G.value;J.xhr=M}}catch(ye){Y.e(ye)}finally{Y.f()}S[0].upload.chunked&&(S[0].upload.chunks[w[0].chunkIndex].xhr=M);var X=this.resolveOption(this.options.method,S),A=this.resolveOption(this.options.url,S);M.open(X,A,!0);var T=this.resolveOption(this.options.timeout,S);T&&(M.timeout=this.resolveOption(this.options.timeout,S)),M.withCredentials=!!this.options.withCredentials,M.onload=function(ye){I._finishedUploading(S,M,ye)},M.ontimeout=function(){I._handleUploadError(S,M,"Request timedout after ".concat(I.options.timeout/1e3," seconds"))},M.onerror=function(){I._handleUploadError(S,M)};var H=M.upload!=null?M.upload:M;H.onprogress=function(ye){return I._updateFilesUploadProgress(S,M,ye)};var Z={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&x.extend(Z,this.options.headers);for(var le in Z){var ge=Z[le];ge&&M.setRequestHeader(le,ge)}var Ae=new FormData;if(this.options.params){var te=this.options.params;typeof te=="function"&&(te=te.call(this,S,M,S[0].upload.chunked?this._getChunk(S[0],M):null));for(var se in te){var _e=te[se];if(Array.isArray(_e))for(var Re=0;Re<_e.length;Re++)Ae.append(se,_e[Re]);else Ae.append(se,_e)}}var it=k(S,!0),ct;try{for(it.s();!(ct=it.n()).done;){var Ht=ct.value;this.emit("sending",Ht,M,Ae)}}catch(ye){it.e(ye)}finally{it.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",S,M,Ae),this._addFormElementData(Ae);for(var re=0;re<w.length;re++){var ve=w[re];Ae.append(ve.name,ve.data,ve.filename)}this.submitRequest(M,Ae,S)}},{key:"_transformFiles",value:function(S,w){for(var I=this,M=[],Y=0,G=function(A){I.options.transformFile.call(I,S[A],function(T){M[A]=T,++Y===S.length&&w(M)})},J=0;J<S.length;J++)G(J)}},{key:"_addFormElementData",value:function(S){if(this.element.tagName==="FORM"){var w=k(this.element.querySelectorAll("input, textarea, select, button"),!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value,Y=M.getAttribute("name"),G=M.getAttribute("type");if(G&&(G=G.toLowerCase()),!(typeof Y>"u"||Y===null))if(M.tagName==="SELECT"&&M.hasAttribute("multiple")){var J=k(M.options,!0),X;try{for(J.s();!(X=J.n()).done;){var A=X.value;A.selected&&S.append(Y,A.value)}}catch(T){J.e(T)}finally{J.f()}}else(!G||G!=="checkbox"&&G!=="radio"||M.checked)&&S.append(Y,M.value)}}catch(T){w.e(T)}finally{w.f()}}}},{key:"_updateFilesUploadProgress",value:function(S,w,I){if(S[0].upload.chunked){var J=S[0],X=this._getChunk(J,w);I?(X.progress=100*I.loaded/I.total,X.total=I.total,X.bytesSent=I.loaded):(X.progress=100,X.bytesSent=X.total),J.upload.progress=0,J.upload.total=0,J.upload.bytesSent=0;for(var A=0;A<J.upload.totalChunkCount;A++)J.upload.chunks[A]&&typeof J.upload.chunks[A].progress<"u"&&(J.upload.progress+=J.upload.chunks[A].progress,J.upload.total+=J.upload.chunks[A].total,J.upload.bytesSent+=J.upload.chunks[A].bytesSent);J.upload.progress=J.upload.progress/J.upload.totalChunkCount,this.emit("uploadprogress",J,J.upload.progress,J.upload.bytesSent)}else{var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.upload.total&&G.upload.bytesSent&&G.upload.bytesSent==G.upload.total||(I?(G.upload.progress=100*I.loaded/I.total,G.upload.total=I.total,G.upload.bytesSent=I.loaded):(G.upload.progress=100,G.upload.bytesSent=G.upload.total),this.emit("uploadprogress",G,G.upload.progress,G.upload.bytesSent))}}catch(T){M.e(T)}finally{M.f()}}}},{key:"_finishedUploading",value:function(S,w,I){var M;if(S[0].status!==x.CANCELED&&w.readyState===4){if(w.responseType!=="arraybuffer"&&w.responseType!=="blob"&&(M=w.responseText,w.getResponseHeader("content-type")&&~w.getResponseHeader("content-type").indexOf("application/json")))try{M=JSON.parse(M)}catch(Y){I=Y,M="Invalid JSON response from server."}this._updateFilesUploadProgress(S,w),200<=w.status&&w.status<300?S[0].upload.chunked?S[0].upload.finishedChunkUpload(this._getChunk(S[0],w),M):this._finished(S,M,I):this._handleUploadError(S,w,M)}}},{key:"_handleUploadError",value:function(S,w,I){if(S[0].status!==x.CANCELED){if(S[0].upload.chunked&&this.options.retryChunks){var M=this._getChunk(S[0],w);if(M.retries++<this.options.retryChunksLimit){this._uploadData(S,[M.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(S,I||this.options.dictResponseError.replace("{{statusCode}}",w.status),w)}}},{key:"submitRequest",value:function(S,w,I){if(S.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}S.send(w)}},{key:"_finished",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.SUCCESS,this.emit("success",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(S,w,I){var M=k(S,!0),Y;try{for(M.s();!(Y=M.n()).done;){var G=Y.value;G.status=x.ERROR,this.emit("error",G,w,I),this.emit("complete",G)}}catch(J){M.e(J)}finally{M.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",S,w,I),this.emit("completemultiple",S)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=h,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(S){for(var w=arguments.length,I=new Array(w>1?w-1:0),M=1;M<w;M++)I[M-1]=arguments[M];for(var Y=0,G=I;Y<G.length;Y++){var J=G[Y];for(var X in J){var A=J[X];S[X]=A}}return S}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){var w=Math.random()*16|0,I=S==="x"?w:w&3|8;return I.toString(16)})}}]),x}(h);U.initClass(),U.version="5.9.3",U.options={},U.optionsForElement=function(D){if(D.getAttribute("id"))return U.options[ne(D.getAttribute("id"))]},U.instances=[],U.forElement=function(D){if(typeof D=="string"&&(D=document.querySelector(D)),(D!=null?D.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return D.dropzone},U.autoDiscover=!0,U.discover=function(){var D;if(document.querySelectorAll)D=document.querySelectorAll(".dropzone");else{D=[];var $=function(B){return function(){var S=[],w=k(B,!0),I;try{for(w.s();!(I=w.n()).done;){var M=I.value;/(^| )dropzone($| )/.test(M.className)?S.push(D.push(M)):S.push(void 0)}}catch(Y){w.e(Y)}finally{w.f()}return S}()};$(document.getElementsByTagName("div")),$(document.getElementsByTagName("form"))}return function(){var x=[],B=k(D,!0),S;try{for(B.s();!(S=B.n()).done;){var w=S.value;U.optionsForElement(w)!==!1?x.push(new U(w)):x.push(void 0)}}catch(I){B.e(I)}finally{B.f()}return x}()},U.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],U.isBrowserSupported=function(){var D=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))D=!1;else{U.blacklistedBrowsers!==void 0&&(U.blockedBrowsers=U.blacklistedBrowsers);var $=k(U.blockedBrowsers,!0),x;try{for($.s();!(x=$.n()).done;){var B=x.value;if(B.test(navigator.userAgent)){D=!1;continue}}}catch(S){$.e(S)}finally{$.f()}}else D=!1;return D},U.dataURItoBlob=function(D){for(var $=atob(D.split(",")[1]),x=D.split(",")[0].split(":")[1].split(";")[0],B=new ArrayBuffer($.length),S=new Uint8Array(B),w=0,I=$.length,M=0<=I;M?w<=I:w>=I;M?w++:w--)S[w]=$.charCodeAt(w);return new Blob([B],{type:x})};var ee=function($,x){return $.filter(function(B){return B!==x}).map(function(B){return B})},ne=function($){return $.replace(/[\-_](\w)/g,function(x){return x.charAt(1).toUpperCase()})};U.createElement=function(D){var $=document.createElement("div");return $.innerHTML=D,$.childNodes[0]},U.elementInside=function(D,$){if(D===$)return!0;for(;D=D.parentNode;)if(D===$)return!0;return!1},U.getElement=function(D,$){var x;if(typeof D=="string"?x=document.querySelector(D):D.nodeType!=null&&(x=D),x==null)throw new Error("Invalid `".concat($,"` option provided. Please provide a CSS selector or a plain HTML element."));return x},U.getElements=function(D,$){var x,B;if(D instanceof Array){B=[];try{var S=k(D,!0),w;try{for(S.s();!(w=S.n()).done;)x=w.value,B.push(this.getElement(x,$))}catch(Y){S.e(Y)}finally{S.f()}}catch{B=null}}else if(typeof D=="string"){B=[];var I=k(document.querySelectorAll(D),!0),M;try{for(I.s();!(M=I.n()).done;)x=M.value,B.push(x)}catch(Y){I.e(Y)}finally{I.f()}}else D.nodeType!=null&&(B=[D]);if(B==null||!B.length)throw new Error("Invalid `".concat($,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return B},U.confirm=function(D,$,x){if(window.confirm(D))return $();if(x!=null)return x()},U.isValidFile=function(D,$){if(!$)return!0;$=$.split(",");var x=D.type,B=x.replace(/\/.*$/,""),S=k($,!0),w;try{for(S.s();!(w=S.n()).done;){var I=w.value;if(I=I.trim(),I.charAt(0)==="."){if(D.name.toLowerCase().indexOf(I.toLowerCase(),D.name.length-I.length)!==-1)return!0}else if(/\/\*$/.test(I)){if(B===I.replace(/\/.*$/,""))return!0}else if(x===I)return!0}}catch(M){S.e(M)}finally{S.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(D){return this.each(function(){return new U(this,D)})}),U.ADDED="added",U.QUEUED="queued",U.ACCEPTED=U.QUEUED,U.UPLOADING="uploading",U.PROCESSING=U.UPLOADING,U.CANCELED="canceled",U.ERROR="error",U.SUCCESS="success";var ae=function($){$.naturalWidth;var x=$.naturalHeight,B=document.createElement("canvas");B.width=1,B.height=x;var S=B.getContext("2d");S.drawImage($,0,0);for(var w=S.getImageData(1,0,1,x),I=w.data,M=0,Y=x,G=x;G>M;){var J=I[(G-1)*4+3];J===0?Y=G:M=G,G=Y+M>>1}var X=G/x;return X===0?1:X},ue=function($,x,B,S,w,I,M,Y,G,J){var X=ae(x);return $.drawImage(x,B,S,w,I,M,Y,G,J/X)},me=function(){function D(){L(this,D)}return z(D,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(x){for(var B="",S=void 0,w=void 0,I="",M=void 0,Y=void 0,G=void 0,J="",X=0;S=x[X++],w=x[X++],I=x[X++],M=S>>2,Y=(S&3)<<4|w>>4,G=(w&15)<<2|I>>6,J=I&63,isNaN(w)?G=J=64:isNaN(I)&&(J=64),B=B+this.KEY_STR.charAt(M)+this.KEY_STR.charAt(Y)+this.KEY_STR.charAt(G)+this.KEY_STR.charAt(J),S=w=I="",M=Y=G=J="",X<x.length;);return B}},{key:"restore",value:function(x,B){if(!x.match("data:image/jpeg;base64,"))return B;var S=this.decode64(x.replace("data:image/jpeg;base64,","")),w=this.slice2Segments(S),I=this.exifManipulation(B,w);return"data:image/jpeg;base64,".concat(this.encode64(I))}},{key:"exifManipulation",value:function(x,B){var S=this.getExifArray(B),w=this.insertExif(x,S),I=new Uint8Array(w);return I}},{key:"getExifArray",value:function(x){for(var B=void 0,S=0;S<x.length;){if(B=x[S],B[0]===255&B[1]===225)return B;S++}return[]}},{key:"insertExif",value:function(x,B){var S=x.replace("data:image/jpeg;base64,",""),w=this.decode64(S),I=w.indexOf(255,3),M=w.slice(0,I),Y=w.slice(I),G=M;return G=G.concat(B),G=G.concat(Y),G}},{key:"slice2Segments",value:function(x){for(var B=0,S=[];;){var w;if(x[B]===255&x[B+1]===218)break;if(x[B]===255&x[B+1]===216)B+=2;else{w=x[B+2]*256+x[B+3];var I=B+w+2,M=x.slice(B,I);S.push(M),B=I}if(B>x.length)break}return S}},{key:"decode64",value:function(x){var B=void 0,S=void 0,w="",I=void 0,M=void 0,Y=void 0,G="",J=0,X=[],A=/[^A-Za-z0-9\+\/\=]/g;for(A.exec(x)&&console.warn(`There were invalid base64 characters in the input text.
|
|
1235
1235
|
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
|
|
1236
|
-
Expect errors in decoding.`),x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(x.charAt(J++)),M=this.KEY_STR.indexOf(x.charAt(J++)),Y=this.KEY_STR.indexOf(x.charAt(J++)),G=this.KEY_STR.indexOf(x.charAt(J++)),B=I<<2|M>>4,S=(M&15)<<4|Y>>2,w=(Y&3)<<6|G,X.push(B),Y!==64&&X.push(S),G!==64&&X.push(w),B=S=w="",I=M=Y=G="",J<x.length;);return X}}]),D}();me.initClass();var Ee=function($,x){var B=!1,S=!0,w=$.document,I=w.documentElement,M=w.addEventListener?"addEventListener":"attachEvent",Y=w.addEventListener?"removeEventListener":"detachEvent",G=w.addEventListener?"":"on",J=function A(T){if(!(T.type==="readystatechange"&&w.readyState!=="complete")&&((T.type==="load"?$:w)[Y](G+T.type,A,!1),!B&&(B=!0)))return x.call($,T.type||T)},X=function A(){try{I.doScroll("left")}catch{setTimeout(A,50);return}return J("poll")};if(w.readyState!=="complete"){if(w.createEventObject&&I.doScroll){try{S=!$.frameElement}catch{}S&&X()}return w[M](G+"DOMContentLoaded",J,!1),w[M](G+"readystatechange",J,!1),$[M](G+"load",J,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},Ee(window,U._autoDiscoverFunction);function ke(D,$){return typeof D<"u"&&D!==null?$(D):void 0}function Oe(D,$,x){if(typeof D<"u"&&D!==null&&typeof D[$]=="function")return x(D,$)}window.Dropzone=U;var Se=U}(),i}()})})(v0);var Ck=v0.exports;const b0=ri(Ck),Ek={class:"fallback"},Sk=a.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),_k={for:"file"},wk={class:"dz-message","data-dz-message":""},kk={id:"bd-dropzone-theme",style:{display:"none"}},Ak={class:"dz-preview dz-file-preview"},Tk={class:"dz-details"},Ik=a.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),xk=a.createElementVNode("div",{class:"dz-filename"},[a.createElementVNode("small",{"data-dz-name":""})],-1),Ok=a.createElementVNode("div",{class:"dz-progress"},[a.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[a.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),Nk={class:"dz-success-mark"},Mk={class:"dz-error-message text-danger"},Lk=a.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Qd=a.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=a.computed(()=>({variant:ya.PRIMARY,size:Mt.SM})),o=co(n,"modelValue",e);let i=null;b0.autoDiscover=!1,a.watch(()=>n.modelValue,()=>{s()}),a.onMounted(()=>{document.getElementById("dropzone")&&c()});const s=()=>{i&&(i.destroy(),c())},c=()=>{var p;i=new b0("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),i.on("error",d),i.on("success",l),i.on("removedfile",f)},l=function(p,m){var g;o.value.push({UUID:(g=p.upload)==null?void 0:g.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),u(p)},d=function(p){u(p)},u=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const g=p.previewElement.getElementsByClassName("icon-file"),y=p.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),y[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(g=>{var y;return(g==null?void 0:g.UUID)===((y=p.upload)==null?void 0:y.uuid)});m!==-1&&o.value.splice(m,1)},h=a.computed(()=>n.tag??"form");return(p,m)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:a.withCtx(()=>[a.createElementVNode("div",Ek,[Sk,a.createTextVNode(" test "),a.createElementVNode("label",_k,[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(n.buttonText),1)])]),a.createElementVNode("div",wk,[a.createVNode(ze,a.normalizeProps(a.guardReactiveProps(r.value)),{default:a.withCtx(()=>[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),a.createElementVNode("div",kk,[a.createElementVNode("div",Ak,[a.createElementVNode("div",Tk,[Ik,a.createVNode(a.unref(Hc),{"data-dz-thumbnail":"",class:"d-none"}),xk,a.createVNode(ze,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:a.withCtx(()=>[a.createVNode(a.unref(Wi))]),_:1})]),Ok,a.createElementVNode("div",Nk,[a.createVNode(a.unref(Ho))]),a.createElementVNode("div",Mk,[a.createVNode(a.unref(pa)),Lk])])])],64))}});function _t(t){this.content=t}_t.prototype={constructor:_t,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new _t(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new _t(n)},addToStart:function(t,e){return new _t([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new _t(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new _t(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=_t.from(t),t.size?new _t(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=_t.from(t),t.size?new _t(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=_t.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},_t.from=function(t){if(t instanceof _t)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new _t(e)};function C0(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=C0(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function E0(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),l=s.nodeSize;if(s==c){n-=l,r-=l;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=E0(s.content,c.content,n-1,r-1);if(d)return d}n-=l,r-=l}}class he{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let l=this.content[s],d=c+l.nodeSize;if(d>e&&r(l,o+c,i||null,s)!==!1&&l.content.size){let u=c+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,l)=>{c.isText?(i+=c.text.slice(Math.max(e,l)-l,n-l),s=!r):c.isLeaf?(o?i+=typeof o=="function"?o(c):o:c.type.spec.leafText&&(i+=c.type.spec.leafText(c)),s=!r):!s&&c.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new he(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],l=s+c.nodeSize;l>e&&((s<e||l>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=l}return new he(r,o)}cutByIndex(e,n){return e==n?he.empty:e==0&&n==this.content.length?this:new he(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new he(o,i)}addToStart(e){return new he([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new he(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return C0(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return E0(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Ua(0,e);if(e==this.size)return Ua(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Ua(r+1,s):Ua(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return he.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new he(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return he.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new he(n||e,r)}static from(e){if(!e)return he.empty;if(e instanceof he)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new he([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}he.empty=new he([],0);const Zd={index:0,offset:0};function Ua(t,e){return Zd.index=t,Zd.offset=e,Zd}function Ha(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(!Ha(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ha(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let qe=class Ch{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&&Ha(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ch.none;if(e instanceof Ch)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};qe.none=[];class Wa extends Error{}class we{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=_0(this.content,e+this.openStart,n);return r&&new we(r,this.openStart,this.openEnd)}removeBetween(e,n){return new we(S0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return we.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(he.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new we(e,r,o)}}we.empty=new we(he.empty,0,0);function S0(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(S0(i.content,e-o-1,n-o-1)))}function _0(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=_0(s.content,e-i-1,n);return c&&t.replaceChild(o,s.copy(c))}function Dk(t,e,n){if(n.openStart>t.depth)throw new Wa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Wa("Inconsistent open depths");return w0(t,e,n,0)}function w0(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=w0(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 bo(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=Pk(n,t);return bo(i,A0(t,s,c,e,r))}else return bo(i,Ka(t,e,r))}function k0(t,e){if(!e.type.compatibleContent(t.type))throw new Wa("Cannot join "+e.type.name+" onto "+t.type.name)}function Jd(t,e,n){let r=t.node(n);return k0(r,e.node(n)),r}function vo(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 _s(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&&(vo(t.nodeAfter,r),i++));for(let c=i;c<s;c++)vo(o.child(c),r);e&&e.depth==n&&e.textOffset&&vo(e.nodeBefore,r)}function bo(t,e){return t.type.checkContent(e),t.copy(e)}function A0(t,e,n,r,o){let i=t.depth>o&&Jd(t,e,o+1),s=r.depth>o&&Jd(n,r,o+1),c=[];return _s(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(k0(i,s),vo(bo(i,A0(t,e,n,r,o+1)),c)):(i&&vo(bo(i,Ka(t,e,o+1)),c),_s(e,n,o,c),s&&vo(bo(s,Ka(n,r,o+1)),c)),_s(r,null,o,c),new he(c)}function Ka(t,e,n){let r=[];if(_s(null,t,n,r),t.depth>n){let o=Jd(t,e,n+1);vo(bo(o,Ka(t,e,n+1)),r)}return _s(e,null,n,r),new he(r)}function Pk(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(he.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class ws{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return qe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ya(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:l}=s.content.findIndex(i),d=i-l;if(r.push(s,c,o+l),!d||(s=s.child(c),s.isText))break;i=d-1,o+=l+1}return new ws(n,r,i)}static resolveCached(e,n){for(let o=0;o<Xd.length;o++){let i=Xd[o];if(i.pos==n&&i.doc==e)return i}let r=Xd[qd]=ws.resolve(e,n);return qd=(qd+1)%Bk,r}}let Xd=[],qd=0,Bk=12;class Ya{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 $k=Object.create(null);let Co=class Eh{constructor(e,n,r,o=qe.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||he.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ha(this.attrs,n||e.defaultAttrs||$k)&&qe.sameSet(this.marks,r||qe.none)}copy(e=null){return e==this.content?this:new Eh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Eh(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return we.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new we(d,o.depth-s,i.depth-s)}replace(e,n,r){return Dk(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 ws.resolveCached(this,e)}resolveNoCache(e){return ws.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()+")"),T0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=he.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=qe.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!qe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=he.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};Co.prototype.text=void 0;class Ga extends Co{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):T0(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 Ga(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ga(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 T0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Eo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Rk(e,n);if(r.next==null)return Eo.empty;let o=I0(r);r.next&&r.err("Unexpected trailing text");let i=Wk(Hk(o));return Kk(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 l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return he.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:l}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||l.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
1237
|
-
`)}}Eo.empty=new Eo(!0);class Rk{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 I0(t){let e=[];do e.push(Vk(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Vk(t){let e=[];do e.push(Fk(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Fk(t){let e=Uk(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=jk(t,e);else break;return e}function x0(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function jk(t,e){let n=x0(t),r=n;return t.eat(",")&&(t.next!="}"?r=x0(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function zk(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function Uk(t){if(t.eat("(")){let e=I0(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=zk(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 Hk(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,c,l){let d={term:l,to:c};return e[s].push(d),d}function o(s,c){s.forEach(l=>l.to=c)}function i(s,c){if(s.type=="choice")return s.exprs.reduce((l,d)=>l.concat(i(d,c)),[]);if(s.type=="seq")for(let l=0;;l++){let d=i(s.exprs[l],c);if(l==s.exprs.length-1)return d;o(d,c=n())}else if(s.type=="star"){let l=n();return r(c,l),o(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return o(i(s.expr,c),l),o(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(c)].concat(i(s.expr,c));if(s.type=="range"){let l=c;for(let d=0;d<s.min;d++){let u=n();o(i(s.expr,l),u),l=u}if(s.max==-1)o(i(s.expr,l),l);else for(let d=s.min;d<s.max;d++){let u=n();r(l,u),o(i(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(c,void 0,s.value)];throw new Error("Unknown expr type")}}}}function O0(t,e){return e-t}function N0(t,e){let n=[];return r(e),n.sort(O0);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:l}=i[s];!c&&n.indexOf(l)==-1&&r(l)}}}function Wk(t){let e=Object.create(null);return n(N0(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:c,to:l})=>{if(!c)return;let d;for(let u=0;u<o.length;u++)o[u][0]==c&&(d=o[u][1]);N0(t,l).forEach(u=>{d||o.push([c,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[r.join(",")]=new Eo(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let c=o[s][1].sort(O0);i.next.push({type:o[s][0],next:e[c.join(",")]||n(c)})}return i}}function Kk(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:l,next:d}=o.next[c];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(d)==-1&&r.push(d)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function M0(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function L0(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 D0(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new Yk(t[n]);return e}let P0=class d3{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=D0(r.attrs),this.defaultAttrs=M0(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Eo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:L0(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Co(this,this.computeAttrs(e),he.from(n),qe.setFrom(r))}createChecked(e=null,n,r){return n=he.from(n),this.checkContent(n),new Co(this,this.computeAttrs(e),n,qe.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=he.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(he.empty,!0);return i?new Co(this,e,n.append(i),qe.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:qe.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new d3(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Yk{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Qa{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=D0(o.attrs),this.excluded=null;let i=M0(this.attrs);this.instance=i?new qe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new qe(this,L0(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Qa(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class Gk{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=_t.from(e.nodes),n.marks=_t.from(e.marks||{}),this.nodes=P0.compile(this.spec.nodes,this),this.marks=Qa.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",c=i.spec.marks;i.contentMatch=r[s]||(r[s]=Eo.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=c=="_"?null:c?B0(this,c.split(" ")):c==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:B0(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof P0){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 Ga(r,r.defaultAttrs,e,qe.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Co.fromJSON(this,e)}markFromJSON(e){return qe.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function B0(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let c in t.marks){let l=t.marks[c];(o=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class oi{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new F0(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new F0(this,n,!0);return r.addAll(e,n.from,n.to),we.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(Jk(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 l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||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=j0(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=j0(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new oi(e,oi.schemaRules(e)))}}const $0={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},Qk={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},R0={ol:!0,ul:!0},Za=1,Ja=2,ks=4;function V0(t,e,n){return e!=null?(e?Za:0)|(e==="full"?Ja:0):t&&t.whitespace=="pre"?Za|Ja:n&~ks}class Xa{constructor(e,n,r,o,i,s,c){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=c,this.content=[],this.activeMarks=qe.none,this.stashMarks=[],this.match=s||(c&ks?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(he.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Za)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=he.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(he.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):qk(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!$0.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class F0{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,s=V0(null,n.preserveWhitespace,0)|(r?ks:0);o?i=new Xa(o.type,o.attrs,qe.none,qe.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Xa(null,null,qe.none,qe.none,!0,null,s):i=new Xa(e.schema.topNodeType,null,qe.none,qe.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(Xk(r));if(!o)return;let[i,s]=o,c=this.top;for(let l=0;l<s.length;l++)this.removePendingMark(s[l],c);for(let l=0;l<i.length;l++)this.addPendingMark(i[l]);n();for(let l=0;l<i.length;l++)this.removePendingMark(i[l],c);for(let l=0;l<s.length;l++)this.addPendingMark(s[l])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Ja||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Za)r.options&Ja?n=n.replace(/\r\n?/g,`
|
|
1236
|
+
Expect errors in decoding.`),x=x.replace(/[^A-Za-z0-9\+\/\=]/g,"");I=this.KEY_STR.indexOf(x.charAt(J++)),M=this.KEY_STR.indexOf(x.charAt(J++)),Y=this.KEY_STR.indexOf(x.charAt(J++)),G=this.KEY_STR.indexOf(x.charAt(J++)),B=I<<2|M>>4,S=(M&15)<<4|Y>>2,w=(Y&3)<<6|G,X.push(B),Y!==64&&X.push(S),G!==64&&X.push(w),B=S=w="",I=M=Y=G="",J<x.length;);return X}}]),D}();me.initClass();var Ee=function($,x){var B=!1,S=!0,w=$.document,I=w.documentElement,M=w.addEventListener?"addEventListener":"attachEvent",Y=w.addEventListener?"removeEventListener":"detachEvent",G=w.addEventListener?"":"on",J=function A(T){if(!(T.type==="readystatechange"&&w.readyState!=="complete")&&((T.type==="load"?$:w)[Y](G+T.type,A,!1),!B&&(B=!0)))return x.call($,T.type||T)},X=function A(){try{I.doScroll("left")}catch{setTimeout(A,50);return}return J("poll")};if(w.readyState!=="complete"){if(w.createEventObject&&I.doScroll){try{S=!$.frameElement}catch{}S&&X()}return w[M](G+"DOMContentLoaded",J,!1),w[M](G+"readystatechange",J,!1),$[M](G+"load",J,!1)}};U._autoDiscoverFunction=function(){if(U.autoDiscover)return U.discover()},Ee(window,U._autoDiscoverFunction);function ke(D,$){return typeof D<"u"&&D!==null?$(D):void 0}function Oe(D,$,x){if(typeof D<"u"&&D!==null&&typeof D[$]=="function")return x(D,$)}window.Dropzone=U;var Se=U}(),i}()})})(v0);var Ck=v0.exports;const b0=ri(Ck),Ek={class:"fallback"},Sk=a.createElementVNode("input",{id:"file",type:"file",name:"file",multiple:""},null,-1),_k={for:"file"},wk={class:"dz-message","data-dz-message":""},kk={id:"bd-dropzone-theme",style:{display:"none"}},Ak={class:"dz-preview dz-file-preview"},Tk={class:"dz-details"},Ik=a.createElementVNode("img",{"data-dz-thumbnail":"",class:"dz-image"},null,-1),xk=a.createElementVNode("div",{class:"dz-filename"},[a.createElementVNode("small",{"data-dz-name":""})],-1),Ok=a.createElementVNode("div",{class:"dz-progress"},[a.createElementVNode("div",{class:"spinner-border text-primary spinner-border-sm",role:"status"},[a.createElementVNode("span",{class:"visually-hidden"},"Loading...")])],-1),Nk={class:"dz-success-mark"},Mk={class:"dz-error-message text-danger"},Lk=a.createElementVNode("small",{"data-dz-errormessage":""},null,-1),Qd=a.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=a.computed(()=>({variant:ya.PRIMARY,size:ut.SM})),o=co(n,"modelValue",e);let i=null;b0.autoDiscover=!1,a.watch(()=>n.modelValue,()=>{s()}),a.onMounted(()=>{document.getElementById("dropzone")&&c()});const s=()=>{i&&(i.destroy(),c())},c=()=>{var p;i=new b0("#dropzone",{url:n.url,method:"post",acceptedFiles:n.acceptedFiles,addRemoveLinks:!1,maxFilesize:10,maxFiles:n.multiple?10:1,headers:{RequestVerificationToken:n.token},dictResponseError:n.errorMessage,dictFileTooBig:n.fileSizeExceededMessage,previewTemplate:(p=document.querySelector("#bd-dropzone-theme"))==null?void 0:p.innerHTML}),i.on("error",d),i.on("success",l),i.on("removedfile",f)},l=function(p,m){var g;o.value.push({UUID:(g=p.upload)==null?void 0:g.uuid,CorrelationId:m.CorrelationId,Naam:m.Naam}),u(p)},d=function(p){u(p)},u=function(p){const m=p.name;if(!(m.endsWith(".png")||m.endsWith(".jpg")||m.endsWith(".jpeg")||m.endsWith(".gif"))){const g=p.previewElement.getElementsByClassName("icon-file"),y=p.previewElement.getElementsByClassName("dz-image");g[0].classList.remove("d-none"),y[0].classList.add("d-none")}},f=function(p){const m=o.value.findIndex(g=>{var y;return(g==null?void 0:g.UUID)===((y=p.upload)==null?void 0:y.uuid)});m!==-1&&o.value.splice(m,1)},h=a.computed(()=>n.tag??"form");return(p,m)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h.value),{id:"dropzone",class:"dropzone bd-dropzone",enctype:"multipart/form-data"},{default:a.withCtx(()=>[a.createElementVNode("div",Ek,[Sk,a.createTextVNode(" test "),a.createElementVNode("label",_k,[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(n.buttonText),1)])]),a.createElementVNode("div",wk,[a.createVNode(ze,a.normalizeProps(a.guardReactiveProps(r.value)),{default:a.withCtx(()=>[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(n.buttonText),1)]),_:1},16)])]),_:1})),a.createElementVNode("div",kk,[a.createElementVNode("div",Ak,[a.createElementVNode("div",Tk,[Ik,a.createVNode(a.unref(Hc),{"data-dz-thumbnail":"",class:"d-none"}),xk,a.createVNode(ze,{class:"dz-remove",alt:"Click me to remove the file.","data-dz-remove":""},{default:a.withCtx(()=>[a.createVNode(a.unref(Wi))]),_:1})]),Ok,a.createElementVNode("div",Nk,[a.createVNode(a.unref(Ho))]),a.createElementVNode("div",Mk,[a.createVNode(a.unref(pa)),Lk])])])],64))}});function wt(t){this.content=t}wt.prototype={constructor:wt,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 wt(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 wt(n)},addToStart:function(t,e){return new wt([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new wt(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 wt(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=wt.from(t),t.size?new wt(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=wt.from(t),t.size?new wt(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=wt.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}},wt.from=function(t){if(t instanceof wt)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new wt(e)};function C0(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=C0(o.content,i.content,n+1);if(s!=null)return s}n+=o.nodeSize}}function E0(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),l=s.nodeSize;if(s==c){n-=l,r-=l;continue}if(!s.sameMarkup(c))return{a:n,b:r};if(s.isText&&s.text!=c.text){let d=0,u=Math.min(s.text.length,c.text.length);for(;d<u&&s.text[s.text.length-d-1]==c.text[c.text.length-d-1];)d++,n--,r--;return{a:n,b:r}}if(s.content.size||c.content.size){let d=E0(s.content,c.content,n-1,r-1);if(d)return d}n-=l,r-=l}}class he{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let s=0,c=0;c<n;s++){let l=this.content[s],d=c+l.nodeSize;if(d>e&&r(l,o+c,i||null,s)!==!1&&l.content.size){let u=c+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,o+u)}c=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",s=!0;return this.nodesBetween(e,n,(c,l)=>{c.isText?(i+=c.text.slice(Math.max(e,l)-l,n-l),s=!r):c.isLeaf?(o?i+=typeof o=="function"?o(c):o:c.type.spec.leafText&&(i+=c.type.spec.leafText(c)),s=!r):!s&&c.isBlock&&(i+=r,s=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new he(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,s=0;s<n;i++){let c=this.content[i],l=s+c.nodeSize;l>e&&((s<e||l>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=l}return new he(r,o)}cutByIndex(e,n){return e==n?he.empty:e==0&&n==this.content.length?this:new he(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new he(o,i)}addToStart(e){return new he([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new he(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return C0(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return E0(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Ua(0,e);if(e==this.size)return Ua(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),s=o+i.nodeSize;if(s>=e)return s==e||n>0?Ua(r+1,s):Ua(r,o);o=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return he.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new he(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return he.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new he(n||e,r)}static from(e){if(!e)return he.empty;if(e instanceof he)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new he([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}he.empty=new he([],0);const Zd={index:0,offset:0};function Ua(t,e){return Zd.index=t,Zd.offset=e,Zd}function Ha(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(!Ha(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Ha(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let qe=class Ch{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&&Ha(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ch.none;if(e instanceof Ch)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};qe.none=[];class Wa extends Error{}class we{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=_0(this.content,e+this.openStart,n);return r&&new we(r,this.openStart,this.openEnd)}removeBetween(e,n){return new we(S0(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return we.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new we(he.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new we(e,r,o)}}we.empty=new we(he.empty,0,0);function S0(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(S0(i.content,e-o-1,n-o-1)))}function _0(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=_0(s.content,e-i-1,n);return c&&t.replaceChild(o,s.copy(c))}function Dk(t,e,n){if(n.openStart>t.depth)throw new Wa("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Wa("Inconsistent open depths");return w0(t,e,n,0)}function w0(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=w0(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 bo(s,c.cut(0,t.parentOffset).append(n.content).append(c.cut(e.parentOffset)))}else{let{start:s,end:c}=Pk(n,t);return bo(i,A0(t,s,c,e,r))}else return bo(i,Ka(t,e,r))}function k0(t,e){if(!e.type.compatibleContent(t.type))throw new Wa("Cannot join "+e.type.name+" onto "+t.type.name)}function Jd(t,e,n){let r=t.node(n);return k0(r,e.node(n)),r}function vo(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 _s(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&&(vo(t.nodeAfter,r),i++));for(let c=i;c<s;c++)vo(o.child(c),r);e&&e.depth==n&&e.textOffset&&vo(e.nodeBefore,r)}function bo(t,e){return t.type.checkContent(e),t.copy(e)}function A0(t,e,n,r,o){let i=t.depth>o&&Jd(t,e,o+1),s=r.depth>o&&Jd(n,r,o+1),c=[];return _s(null,t,o,c),i&&s&&e.index(o)==n.index(o)?(k0(i,s),vo(bo(i,A0(t,e,n,r,o+1)),c)):(i&&vo(bo(i,Ka(t,e,o+1)),c),_s(e,n,o,c),s&&vo(bo(s,Ka(n,r,o+1)),c)),_s(r,null,o,c),new he(c)}function Ka(t,e,n){let r=[];if(_s(null,t,n,r),t.depth>n){let o=Jd(t,e,n+1);vo(bo(o,Ka(t,e,n+1)),r)}return _s(e,null,n,r),new he(r)}function Pk(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(he.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class ws{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return qe.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let c=r;r=o,o=c}let i=r.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!o||!i[s].isInSet(o.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Ya(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:l}=s.content.findIndex(i),d=i-l;if(r.push(s,c,o+l),!d||(s=s.child(c),s.isText))break;i=d-1,o+=l+1}return new ws(n,r,i)}static resolveCached(e,n){for(let o=0;o<Xd.length;o++){let i=Xd[o];if(i.pos==n&&i.doc==e)return i}let r=Xd[qd]=ws.resolve(e,n);return qd=(qd+1)%Bk,r}}let Xd=[],qd=0,Bk=12;class Ya{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 $k=Object.create(null);let Co=class Eh{constructor(e,n,r,o=qe.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||he.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Ha(this.attrs,n||e.defaultAttrs||$k)&&qe.sameSet(this.marks,r||qe.none)}copy(e=null){return e==this.content?this:new Eh(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Eh(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return we.empty;let o=this.resolve(e),i=this.resolve(n),s=r?0:o.sharedDepth(n),c=o.start(s),d=o.node(s).content.cut(o.pos-c,i.pos-c);return new we(d,o.depth-s,i.depth-s)}replace(e,n,r){return Dk(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 ws.resolveCached(this,e)}resolveNoCache(e){return ws.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()+")"),T0(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=he.empty,o=0,i=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,o,i),c=s&&s.matchFragment(this.content,n);if(!c||!c.validEnd)return!1;for(let l=o;l<i;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=qe.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!qe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=he.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};Co.prototype.text=void 0;class Ga extends Co{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):T0(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 Ga(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ga(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 T0(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Eo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new Rk(e,n);if(r.next==null)return Eo.empty;let o=I0(r);r.next&&r.err("Unexpected trailing text");let i=Wk(Hk(o));return Kk(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 l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return he.from(c.map(d=>d.createAndFill()));for(let d=0;d<s.next.length;d++){let{type:u,next:f}=s.next[d];if(!(u.isText||u.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let h=i(f,c.concat(u));if(h)return h}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let s=[];for(let c=o;c.type;c=c.via)s.push(c.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:c,next:l}=i.next[s];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in n)&&(!o.type||l.validEnd)&&(r.push({match:c.contentMatch,type:c,via:o}),n[c.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)i+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return i}).join(`
|
|
1237
|
+
`)}}Eo.empty=new Eo(!0);class Rk{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 I0(t){let e=[];do e.push(Vk(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Vk(t){let e=[];do e.push(Fk(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Fk(t){let e=Uk(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=jk(t,e);else break;return e}function x0(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function jk(t,e){let n=x0(t),r=n;return t.eat(",")&&(t.next!="}"?r=x0(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function zk(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&o.push(s)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function Uk(t){if(t.eat("(")){let e=I0(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=zk(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 Hk(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(s,c,l){let d={term:l,to:c};return e[s].push(d),d}function o(s,c){s.forEach(l=>l.to=c)}function i(s,c){if(s.type=="choice")return s.exprs.reduce((l,d)=>l.concat(i(d,c)),[]);if(s.type=="seq")for(let l=0;;l++){let d=i(s.exprs[l],c);if(l==s.exprs.length-1)return d;o(d,c=n())}else if(s.type=="star"){let l=n();return r(c,l),o(i(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return o(i(s.expr,c),l),o(i(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(c)].concat(i(s.expr,c));if(s.type=="range"){let l=c;for(let d=0;d<s.min;d++){let u=n();o(i(s.expr,l),u),l=u}if(s.max==-1)o(i(s.expr,l),l);else for(let d=s.min;d<s.max;d++){let u=n();r(l,u),o(i(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(c,void 0,s.value)];throw new Error("Unknown expr type")}}}}function O0(t,e){return e-t}function N0(t,e){let n=[];return r(e),n.sort(O0);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:l}=i[s];!c&&n.indexOf(l)==-1&&r(l)}}}function Wk(t){let e=Object.create(null);return n(N0(t,0));function n(r){let o=[];r.forEach(s=>{t[s].forEach(({term:c,to:l})=>{if(!c)return;let d;for(let u=0;u<o.length;u++)o[u][0]==c&&(d=o[u][1]);N0(t,l).forEach(u=>{d||o.push([c,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[r.join(",")]=new Eo(r.indexOf(t.length-1)>-1);for(let s=0;s<o.length;s++){let c=o[s][1].sort(O0);i.next.push({type:o[s][0],next:e[c.join(",")]||n(c)})}return i}}function Kk(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:l,next:d}=o.next[c];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),r.indexOf(d)==-1&&r.push(d)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function M0(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function L0(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 D0(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new Yk(t[n]);return e}let P0=class d3{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=D0(r.attrs),this.defaultAttrs=M0(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Eo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:L0(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Co(this,this.computeAttrs(e),he.from(n),qe.setFrom(r))}createChecked(e=null,n,r){return n=he.from(n),this.checkContent(n),new Co(this,this.computeAttrs(e),n,qe.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=he.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(he.empty,!0);return i?new Co(this,e,n.append(i),qe.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:qe.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,s)=>r[i]=new d3(i,n,s));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class Yk{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Qa{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=D0(o.attrs),this.excluded=null;let i=M0(this.attrs);this.instance=i?new qe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new qe(this,L0(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,s)=>r[i]=new Qa(i,o++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class Gk{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=wt.from(e.nodes),n.marks=wt.from(e.marks||{}),this.nodes=P0.compile(this.spec.nodes,this),this.marks=Qa.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],s=i.spec.content||"",c=i.spec.marks;i.contentMatch=r[s]||(r[s]=Eo.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=c=="_"?null:c?B0(this,c.split(" ")):c==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:B0(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof P0){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 Ga(r,r.defaultAttrs,e,qe.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Co.fromJSON(this,e)}markFromJSON(e){return qe.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function B0(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],s=i;if(i)n.push(i);else for(let c in t.marks){let l=t.marks[c];(o=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class oi{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new F0(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new F0(this,n,!0);return r.addAll(e,n.from,n.to),we.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(Jk(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 l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||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=j0(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=j0(s)),s.node||s.ignore||s.mark||(s.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new oi(e,oi.schemaRules(e)))}}const $0={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},Qk={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},R0={ol:!0,ul:!0},Za=1,Ja=2,ks=4;function V0(t,e,n){return e!=null?(e?Za:0)|(e==="full"?Ja:0):t&&t.whitespace=="pre"?Za|Ja:n&~ks}class Xa{constructor(e,n,r,o,i,s,c){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=c,this.content=[],this.activeMarks=qe.none,this.stashMarks=[],this.match=s||(c&ks?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(he.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Za)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=he.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(he.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):qk(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!$0.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class F0{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,s=V0(null,n.preserveWhitespace,0)|(r?ks:0);o?i=new Xa(o.type,o.attrs,qe.none,qe.none,!0,n.topMatch||o.type.contentMatch,s):r?i=new Xa(null,null,qe.none,qe.none,!0,null,s):i=new Xa(e.schema.topNodeType,null,qe.none,qe.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(Xk(r));if(!o)return;let[i,s]=o,c=this.top;for(let l=0;l<s.length;l++)this.removePendingMark(s[l],c);for(let l=0;l<i.length;l++)this.addPendingMark(i[l]);n();for(let l=0;l<i.length;l++)this.removePendingMark(i[l],c);for(let l=0;l<s.length;l++)this.addPendingMark(s[l])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Ja||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Za)r.options&Ja?n=n.replace(/\r\n?/g,`
|
|
1238
1238
|
`):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;R0.hasOwnProperty(r)&&this.parser.normalizeLists&&Zk(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:Qk.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let s,c=this.top,l=this.needsBlock;if($0.hasOwnProperty(r))c.content.length&&c.content[0].isInline&&this.open&&(this.open--,c=this.top),s=!0,c.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),s&&this.sync(c),this.needsBlock=l}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
1239
|
-
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=qe.none,r=qe.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(c=>{s.clearMark(c)&&(r=c.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let c=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l)}o&&this.sync(c)&&this.open--,s&&this.removePendingMark(s,c)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=V0(e,o,i.options);i.options&ks&&i.content.length==0&&(s|=ks),this.nodes.push(new Xa(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(c,l)=>{for(;c>=0;c--){let d=n[c];if(d==""){if(c==n.length-1||c==0)continue;for(;l>=i;l--)if(s(c-1,l))return!0;return!1}else{let u=l>0||l==0&&o?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!u||u.name!=d&&u.groups.indexOf(d)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=eA(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function Zk(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&R0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Jk(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Xk(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function j0(t){let e={};for(let n in t)e[n]=t[n];return e}function qk(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 l=0;l<c.edgeCount;l++){let{type:d,next:u}=c.edge(l);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function eA(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class jn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=eu(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let c=0,l=0;for(;c<i.length&&l<s.marks.length;){let d=s.marks[l];if(!this.marks[d.type.name]){l++;continue}if(!d.eq(i[c][0])||d.type.spec.spanning===!1)break;c++,l++}for(;c<i.length;)o=i.pop()[1];for(;l<s.marks.length;){let d=s.marks[l++],u=this.serializeMark(d,s.isInline,n);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=jn.renderSpec(eu(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&jn.renderSpec(eu(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,c=r?e.createElementNS(r,o):e.createElement(o),l=n[1],d=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){d=2;for(let u in l)if(l[u]!=null){let f=u.indexOf(" ");f>0?c.setAttributeNS(u.slice(0,f),u.slice(f+1),l[u]):c.setAttribute(u,l[u])}}for(let u=d;u<n.length;u++){let f=n[u];if(f===0){if(u<n.length-1||u>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:p}=jn.renderSpec(e,f,r);if(c.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:c,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new jn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=z0(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return z0(e.marks)}}function z0(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function eu(t){return t.document||window.document}const U0=65535,H0=Math.pow(2,16);function tA(t,e){return t+e*H0}function W0(t){return t&U0}function nA(t){return(t-(t&U0))/H0}const K0=1,Y0=2,qa=4,G0=8;class tu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&G0)>0}get deletedBefore(){return(this.delInfo&(K0|qa))>0}get deletedAfter(){return(this.delInfo&(Y0|qa))>0}get deletedAcross(){return(this.delInfo&qa)>0}}class nn{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&nn.empty)return nn.empty}recover(e){let n=0,r=W0(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+nA(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 l=this.ranges[c]-(this.inverted?o:0);if(l>e)break;let d=this.ranges[c+i],u=this.ranges[c+s],f=l+d;if(e<=f){let h=d?e==l?-1:e==f?1:n:n,p=l+o+(h<0?0:u);if(r)return p;let m=e==(n<0?l:f)?null:tA(c/3,e-l),g=e==l?Y0:e==f?K0:qa;return(n<0?e!=l:e!=f)&&(g|=G0),new tu(p,g,m)}o+=u-d}return r?e+o:new tu(e+o,0,null)}touches(e,n){let r=0,o=W0(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let l=this.ranges[c]-(this.inverted?r:0);if(l>e)break;let d=this.ranges[c+i],u=l+d;if(e<=u&&c==o*3)return!0;r+=this.ranges[c+s]-d}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],c=s-(this.inverted?i:0),l=s+(this.inverted?0:i),d=this.ranges[o+n],u=this.ranges[o+r];e(c,c+d,l,l+u),i+=u-d}}invert(){return new nn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?nn.empty:new nn(e<0?[0,-e,0]:[0,0,e])}}nn.empty=new nn([]);class As{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new As(this.maps,this.mirror,e,n)}copy(){return new As(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new As;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 l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this.maps[l].recover(c.recover);continue}}o|=c.delInfo,e=c.pos}return r?e:new tu(e,o,null)}}const nu=Object.create(null);class xt{getMap(){return nn.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=nu[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 nu)throw new RangeError("Duplicate use of step JSON ID "+e);return nu[e]=n,n.prototype.jsonID=e,n}}class ft{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ft(e,null)}static fail(e){return new ft(null,e)}static fromReplace(e,n,r,o){try{return ft.ok(e.replace(n,r,o))}catch(i){if(i instanceof Wa)return ft.fail(i.message);throw i}}}function ru(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(ru(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return he.fromArray(r)}class Pr extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new we(ru(n.content,(s,c)=>!s.isAtom||!c.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),o),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,i)}invert(){return new zn(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 Pr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Pr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Pr(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 Pr(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("addMark",Pr);class zn extends xt{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new we(ru(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ft.fromReplace(e,this.from,this.to,r)}invert(){return new Pr(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 zn(n.pos,r.pos,this.mark)}merge(e){return e instanceof zn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zn(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 zn(n.from,n.to,e.markFromJSON(n.mark))}}xt.jsonID("removeMark",zn);class Br extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Br(this.pos,n.marks[o]);return new Br(this.pos,this.mark)}}return new ii(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Br(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 Br(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("addNodeMark",Br);class ii extends xt{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Br(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ii(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 ii(n.pos,e.markFromJSON(n.mark))}}xt.jsonID("removeNodeMark",ii);class wt extends xt{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&ou(e,this.from,this.to)?ft.fail("Structure replace would overwrite content"):ft.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new nn([this.from,this.to-this.from,this.slice.size])}invert(e){return new wt(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new wt(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof wt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?we.empty:new we(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new wt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?we.empty:new we(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new wt(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new wt(n.from,n.to,we.fromJSON(e,n.slice),!!n.structure)}}xt.jsonID("replace",wt);class bt extends xt{constructor(e,n,r,o,i,s,c=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=s,this.structure=c}apply(e){if(this.structure&&(ou(e,this.from,this.gapFrom)||ou(e,this.gapTo,this.to)))return ft.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ft.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ft.fromReplace(e,this.from,this.to,r):ft.fail("Content does not fit in gap")}getMap(){return new nn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new bt(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new bt(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new bt(n.from,n.to,n.gapFrom,n.gapTo,we.fromJSON(e,n.slice),n.insert,!!n.structure)}}xt.jsonID("replaceAround",bt);function ou(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 rA(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(l,d,u)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+l.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 zn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new Pr(h,p,r))}}),o.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function oA(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,c)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof Qa){let d=s.marks,u;for(;u=r.isInSet(d);)(l||(l=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let d=Math.min(c+s.nodeSize,n);for(let u=0;u<l.length;u++){let f=l[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=d,h.step=i):o.push({style:f,from:Math.max(c,e),to:d,step:i})}}}),o.forEach(s=>t.step(new zn(s.from,s.to,s.style)))}function iA(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let c=0;c<o.childCount;c++){let l=o.child(c),d=s+l.nodeSize,u=r.matchType(l.type);if(!u)i.push(new wt(s,d,we.empty));else{r=u;for(let f=0;f<l.marks.length;f++)n.allowsMarkType(l.marks[f].type)||t.step(new zn(s,d,l.marks[f]));if(l.isText&&!n.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(l.text);)p||(p=new we(he.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),i.push(new wt(s+f.index,s+f.index+f[0].length,p))}}s=d}if(!r.validEnd){let c=r.fillBefore(he.empty,!0);t.replace(s,s,new we(c,0,0))}for(let c=i.length-1;c>=0;c--)t.step(i[c])}function sA(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function si(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!sA(o,i,s))break}return null}function aA(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),l=s,d=c,u=he.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=he.from(r.node(m).copy(u)),f++):l--;let h=he.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=he.from(o.node(m).copy(h)),p++):d++;t.step(new bt(l,d,s,c,new we(u.append(h),f,p),u.size-f,!0))}function iu(t,e,n=null,r=t){let o=lA(t,e),i=o&&cA(r,e);return i?o.map(Q0).concat({type:e,attrs:n}).concat(i.map(Q0)):null}function Q0(t){return{type:t,attrs:null}}function lA(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 cA(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 l=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;l&&d<o;d++)l=l.matchType(n.child(d).type);return!l||!l.validEnd?null:s}function dA(t,e,n){let r=he.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let c=n[s].type.contentMatch.matchFragment(r);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=he.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new bt(o,i,o,i,new we(r,0,0),n.length,!0))}function uA(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,c)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&fA(t.doc,t.mapping.slice(i).map(c),r)){t.clearIncompatible(t.mapping.slice(i).map(c,1),r);let l=t.mapping.slice(i),d=l.map(c,1),u=l.map(c+s.nodeSize,1);return t.step(new bt(d,u,d+1,u-1,new we(he.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function fA(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function hA(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new bt(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new we(he.from(s),0,0),1,!0))}function ai(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let d=o.depth-1,u=n-2;d>i;d--,u--){let f=o.node(d),h=o.index(d);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let c=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(c,c,l?l.type:o.node(i+1).type)}function pA(t,e,n=1,r){let o=t.doc.resolve(e),i=he.empty,s=he.empty;for(let c=o.depth,l=o.depth-n,d=n-1;c>l;c--,d--){i=he.from(o.node(c).copy(i));let u=r&&r[d];s=he.from(u?u.type.create(u.attrs,s):o.node(c).copy(s))}t.step(new wt(e,e,new we(i.append(s),n,n),!0))}function $r(t,e){let n=t.resolve(e),r=n.index();return Z0(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Z0(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function el(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&&Z0(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 mA(t,e,n){let r=new wt(e-n,e+n,we.empty,!0);t.step(r)}function gA(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 yA(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,l=r.index(s)+(c>0?1:0),d=r.node(s),u=!1;if(i==1)u=d.canReplace(l,l,o);else{let f=d.contentMatchAt(l).findWrapping(o.firstChild.type);u=f&&d.canReplaceWith(l,l,f[0])}if(u)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function su(t,e,n=e,r=we.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return J0(o,i,r)?new wt(e,n,r):new vA(o,i,r).fit()}function J0(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class vA{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=he.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=he.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,c=o.depth;for(;s&&c&&i.childCount==1;)i=i.firstChild.content,s--,c--;let l=new we(i,s,c);return e>-1?new bt(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new wt(r.pos,o.pos,l):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=au(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:l,match:d}=this.frontier[c],u,f=null;if(n==1&&(s?d.matchType(s.type)||(f=d.fillBefore(he.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(u=d.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=au(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new we(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=au(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new we(Ts(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new we(Ts(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,l=s.openStart-e,d=0,u=[],{match:f,type:h}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;d<c.childCount;){let g=c.child(d),y=f.matchType(g.type);if(!y)break;d++,(d>1||l==0||g.content.size)&&(f=y,u.push(X0(g.mark(h.allowedMarks(g.marks)),d==1?l:0,d==c.childCount?p:-1)))}let m=d==c.childCount;m||(p=-1),this.placed=Is(this.placed,n,he.from(u)),this.frontier[n].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,y=c;g<p;g++){let C=y.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),y=C.content}this.unplaced=m?e==0?we.empty:new we(Ts(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new we(Ts(s.content,e,d),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!lu(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=lu(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:l,type:d}=this.frontier[c],u=lu(e,c,d,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Is(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=Is(this.placed,this.depth,he.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(he.empty,!0);n.childCount&&(this.placed=Is(this.placed,this.frontier.length,n))}}function Ts(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ts(t.firstChild.content,e-1,n)))}function Is(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Is(t.lastChild.content,e-1,n)))}function au(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function X0(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,X0(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(he.empty,!0)))),t.copy(r)}function lu(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&&!bA(n,i.content,s)?c:null}function bA(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 EA(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(J0(o,i,r))return t.step(new wt(e,n,r));let s=eg(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let c=-(o.depth+1);s.unshift(c);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let m=o.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?c=h:o.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(c),d=[],u=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(d.push(m),p==r.openStart)break;h=m.content}for(let h=u-1;h>=0;h--){let p=d[h],m=CA(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=d[p];if(m)for(let g=0;g<s.length;g++){let y=s[(g+l)%s.length],C=!0;y<0&&(C=!1,y=-y);let E=o.node(y-1),b=o.index(y-1);if(E.canReplaceWith(b,b,m.type,m.marks))return t.replace(o.before(y),C?i.after(y):n,new we(q0(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 q0(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(q0(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(he.empty,!0))}return t}function SA(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=gA(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new we(he.from(r),0,0))}function _A(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=eg(r,o);for(let s=0;s<i.length;s++){let c=i[s],l=s==i.length-1;if(l&&c==0||r.node(c).type.contentMatch.validEnd)return t.delete(r.start(c),o.end(c));if(c>0&&(l||r.node(c-1).canReplace(r.index(c-1),o.indexAfter(c-1))))return t.delete(r.before(c),o.after(c))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function eg(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 li extends xt{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return ft.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return ft.fromReplace(e,this.pos,this.pos+1,new we(he.from(o),0,n.isLeaf?0:1))}getMap(){return nn.empty}invert(e){return new li(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 li(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 li(n.pos,n.attr,n.value)}}xt.jsonID("attr",li);class xs extends xt{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return ft.ok(r)}getMap(){return nn.empty}invert(e){return new xs(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 xs(n.attr,n.value)}}xt.jsonID("docAttr",xs);let ci=class extends Error{};ci=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ci.prototype=Object.create(Error.prototype),ci.prototype.constructor=ci,ci.prototype.name="TransformError";class tg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new As}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ci(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=we.empty){let o=su(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new we(he.from(r),0,0))}delete(e,n){return this.replace(e,n,we.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return EA(this,e,n,r),this}replaceRangeWith(e,n,r){return SA(this,e,n,r),this}deleteRange(e,n){return _A(this,e,n),this}lift(e,n){return aA(this,e,n),this}join(e,n=1){return mA(this,e,n),this}wrap(e,n){return dA(this,e,n),this}setBlockType(e,n=e,r,o=null){return uA(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return hA(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new li(e,n,r)),this}setDocAttribute(e,n){return this.step(new xs(e,n)),this}addNodeMark(e,n){return this.step(new Br(e,n)),this}removeNodeMark(e,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ii(e,n)),this}split(e,n=1,r){return pA(this,e,n,r),this}addMark(e,n,r){return rA(this,e,n,r),this}removeMark(e,n,r){return oA(this,e,n,r),this}clearIncompatible(e,n,r){return iA(this,e,n,r),this}}const cu=Object.create(null);class Ge{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new wA(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=we.empty){let r=n.content.lastChild,o=null;for(let c=0;c<n.openEnd;c++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let c=0;c<s.length;c++){let{$from:l,$to:d}=s[c],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(d.pos),c?we.empty:n),c==0&&og(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],l=e.mapping.slice(r),d=l.map(s.pos),u=l.map(c.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,n),og(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Qe(e):di(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?di(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):di(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 Nn(e.node(0))}static atStart(e){return di(e,e,0,0,1)||new Nn(e)}static atEnd(e){return di(e,e,e.content.size,e.childCount,-1)||new Nn(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=cu[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 cu)throw new RangeError("Duplicate use of selection JSON ID "+e);return cu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Qe.between(this.$anchor,this.$head).getBookmark()}}Ge.prototype.visible=!0;class wA{constructor(e,n){this.$from=e,this.$to=n}}let ng=!1;function rg(t){!ng&&!t.parent.inlineContent&&(ng=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Qe extends Ge{constructor(e,n=e){rg(e),rg(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 Ge.near(r);let o=e.resolve(n.map(this.anchor));return new Qe(o.parent.inlineContent?o:r,r)}replace(e,n=we.empty){if(super.replace(e,n),n==we.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Qe&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new tl(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 Qe(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=Ge.findFrom(n,r,!0)||Ge.findFrom(n,-r,!0);if(i)n=i.$head;else return Ge.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Ge.findFrom(e,-r,!0)||Ge.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Qe(e,n)}}Ge.jsonID("text",Qe);class tl{constructor(e,n){this.anchor=e,this.head=n}map(e){return new tl(e.map(this.anchor),e.map(this.head))}resolve(e){return Qe.between(e.resolve(this.anchor),e.resolve(this.head))}}class De extends Ge{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?Ge.near(i):new De(i)}content(){return new we(he.from(this.node),0,0)}eq(e){return e instanceof De&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new du(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new De(e.resolve(n.anchor))}static create(e,n){return new De(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}De.prototype.visible=!1,Ge.jsonID("node",De);class du{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new tl(r,r):new du(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&De.isSelectable(r)?new De(n):Ge.near(n)}}class Nn extends Ge{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=we.empty){if(n==we.empty){e.delete(0,e.doc.content.size);let r=Ge.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Nn(e)}map(e){return new Nn(e)}eq(e){return e instanceof Nn}getBookmark(){return kA}}Ge.jsonID("all",Nn);const kA={map(){return this},resolve(t){return new Nn(t)}};function di(t,e,n,r,o,i=!1){if(e.inlineContent)return Qe.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let c=e.child(s);if(c.isAtom){if(!i&&De.isSelectable(c))return De.create(t,n-(o<0?c.nodeSize:0))}else{let l=di(t,c,n+o,o<0?c.childCount:0,o,i);if(l)return l}n+=c.nodeSize*o}return null}function og(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;let i=t.mapping.maps[r],s;i.forEach((c,l,d,u)=>{s==null&&(s=u)}),t.setSelection(Ge.near(t.doc.resolve(s),n))}const ig=1,nl=2,sg=4;class AA extends tg{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|ig)&~nl,this.storedMarks=null,this}get selectionSet(){return(this.updated&ig)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=nl,this}ensureMarks(e){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&nl)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~nl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(Ge.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|=sg,this}get scrolledIntoView(){return(this.updated&sg)>0}}function ag(t,e){return!e||!t?t:t.bind(e)}class Os{constructor(e,n,r){this.name=e,this.init=ag(n.init,r),this.apply=ag(n.apply,r)}}const TA=[new Os("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Os("selection",{init(t,e){return t.selection||Ge.atStart(e.doc)},apply(t){return t.selection}}),new Os("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Os("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class uu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=TA.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 Os(r.key,r.spec.state,r))})}}class ui{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 l=o?o[s].n:0,d=o?o[s].state:this,u=l<n.length&&c.spec.appendTransaction.call(c,l?n.slice(l):n,d,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ui(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 AA(this)}static create(e){let n=new uu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new ui(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 uu(this.schema,e.plugins),r=n.fields,o=new ui(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 uu(e.schema,e.plugins),i=new ui(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=Co.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Ge.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 l=r[c],d=l.spec.state;if(l.key==s.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=d.fromJSON.call(l,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function lg(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=lg(o,e,{})),n[r]=o}return n}class Jt{constructor(e){this.spec=e,this.props={},e.props&&lg(e.props,this,this.props),this.key=e.key?e.key.key:cg("plugin")}getState(e){return e[this.key]}}const fu=Object.create(null);function cg(t){return t in fu?t+"$"+ ++fu[t]:(fu[t]=0,t+"$")}class Mn{constructor(e="key"){this.key=cg(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $t=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ns=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let dg=null;const ur=function(t,e,n){let r=dg||(dg=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},So=function(t,e,n,r){return n&&(ug(t,e,n,r,-1)||ug(t,e,n,r,1))},IA=/^(img|br|input|textarea|hr)$/i;function ug(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:Un(t))){let i=t.parentNode;if(!i||i.nodeType!=1||hu(t)||IA.test(t.nodeName)||t.contentEditable=="false")return!1;e=$t(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?Un(t):0}else return!1}}function Un(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function xA(t,e,n){for(let r=e==0,o=e==Un(t);r||o;){if(t==n)return!0;let i=$t(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==Un(t)}}function hu(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 rl=function(t){return t.focusNode&&So(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function _o(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function OA(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function NA(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Hn=typeof navigator<"u"?navigator:null,fg=typeof document<"u"?document:null,Rr=Hn&&Hn.userAgent||"",pu=/Edge\/(\d+)/.exec(Rr),hg=/MSIE \d/.exec(Rr),mu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rr),Xt=!!(hg||mu||pu),Vr=hg?document.documentMode:mu?+mu[1]:pu?+pu[1]:0,Ln=!Xt&&/gecko\/(\d+)/i.test(Rr);Ln&&+(/Firefox\/(\d+)/.exec(Rr)||[0,0])[1];const gu=!Xt&&/Chrome\/(\d+)/.exec(Rr),Ot=!!gu,MA=gu?+gu[1]:0,Rt=!Xt&&!!Hn&&/Apple Computer/.test(Hn.vendor),fi=Rt&&(/Mobile\/\w+/.test(Rr)||!!Hn&&Hn.maxTouchPoints>2),un=fi||(Hn?/Mac/.test(Hn.platform):!1),LA=Hn?/Win/.test(Hn.platform):!1,Dn=/Android \d/.test(Rr),Ms=!!fg&&"webkitFontSmoothing"in fg.documentElement.style,DA=Ms?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function PA(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function fr(t,e){return typeof t=="number"?t:t[e]}function BA(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 pg(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Ns(s)){if(s.nodeType!=1)continue;let c=s,l=c==i.body,d=l?PA(i):BA(c),u=0,f=0;if(e.top<d.top+fr(r,"top")?f=-(d.top-e.top+fr(o,"top")):e.bottom>d.bottom-fr(r,"bottom")&&(f=e.bottom-e.top>d.bottom-d.top?e.top+fr(o,"top")-d.top:e.bottom-d.bottom+fr(o,"bottom")),e.left<d.left+fr(r,"left")?u=-(d.left-e.left+fr(o,"left")):e.right>d.right-fr(r,"right")&&(u=e.right-d.right+fr(o,"right")),u||f)if(l)i.defaultView.scrollBy(u,f);else{let h=c.scrollLeft,p=c.scrollTop;f&&(c.scrollTop+=f),u&&(c.scrollLeft+=u);let m=c.scrollLeft-h,g=c.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function $A(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 l=c.getBoundingClientRect();if(l.top>=n-20){r=c,o=l.top;break}}return{refDOM:r,refTop:o,stack:mg(t.dom)}}function mg(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Ns(r));return e}function RA({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;gg(n,r==0?0:r-e)}function gg(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 hi=null;function VA(t){if(t.setActive)return t.setActive();if(hi)return t.focus(hi);let e=mg(t);t.focus(hi==null?{get preventScroll(){return hi={preventScroll:!0},!0}}:void 0),hi||(hi=!1,gg(e,0))}function yg(t,e){let n,r=2e8,o,i=0,s=e.top,c=e.top,l,d;for(let u=t.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=ur(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=c){s=Math.max(m.bottom,s),c=Math.min(m.top,c);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){n=u,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&g&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!l&&m.left<=e.left&&m.right>=e.left&&(l=u,d={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&l&&(n=l,o=d,r=0),n&&n.nodeType==3?FA(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:yg(n,o)}function FA(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=Fr(r,1);if(i.top!=i.bottom&&yu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function yu(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 zA(t,e,n){let{node:r,offset:o}=yg(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 UA(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let c=t.docView.nearestDesc(i,!0);if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent&&!s||!c.contentDOM)){let l=c.dom.getBoundingClientRect();if(c.node.isBlock&&c.parent&&!s&&(s=!0,l.left>r.left||l.top>r.top?o=c.posBefore:(l.right<r.left||l.bottom<r.top)&&(o=c.posAfter)),!c.contentDOM&&o<0&&!c.node.isText)return(c.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?c.posBefore:c.posAfter}i=c.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function vg(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 l=0;l<c.length;l++){let d=c[l];if(yu(e,d))return vg(s,e,d)}}if((i=(i+1)%r)==o)break}return t}function HA(t,e){let n=t.dom.ownerDocument,r,o=0,i=NA(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),c;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let d=t.dom.getBoundingClientRect();if(!yu(e,d)||(s=vg(t.dom,e,d),!s))return null}if(Rt)for(let d=s;r&&d;d=Ns(d))d.draggable&&(r=void 0);if(s=jA(s,e),r){if(Ln&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let d;Ms&&o&&r.nodeType==1&&(d=r.childNodes[o-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?c=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(c=UA(t,r,o,e))}c==null&&(c=zA(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:c,inside:l?l.posAtStart-l.border:-1}}function bg(t){return t.top<t.bottom||t.left<t.right}function Fr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(bg(r))return r}return Array.prototype.find.call(n,bg)||t.getBoundingClientRect()}const WA=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Cg(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Ms||Ln;if(r.nodeType==3)if(s&&(WA.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let l=Fr(ur(r,o,o),n);if(Ln&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let d=Fr(ur(r,o-1,o-1),-1);if(d.top==l.top){let u=Fr(ur(r,o,o+1),-1);if(u.top!=l.top)return Ls(u,u.left<d.left)}}return l}else{let l=o,d=o,u=n<0?1:-1;return n<0&&!o?(d++,u=-1):n>=0&&o==r.nodeValue.length?(l--,u=1):n<0?l--:d++,Ls(Fr(ur(r,l,d),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==Un(r))){let l=r.childNodes[o-1];if(l.nodeType==1)return vu(l.getBoundingClientRect(),!1)}if(i==null&&o<Un(r)){let l=r.childNodes[o];if(l.nodeType==1)return vu(l.getBoundingClientRect(),!0)}return vu(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==Un(r))){let l=r.childNodes[o-1],d=l.nodeType==3?ur(l,Un(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(d)return Ls(Fr(d,1),!1)}if(i==null&&o<Un(r)){let l=r.childNodes[o];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let d=l?l.nodeType==3?ur(l,0,s?0:1):l.nodeType==1?l:null:null;if(d)return Ls(Fr(d,-1),!0)}return Ls(Fr(r.nodeType==3?ur(r):r,-n),n>=0)}function Ls(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 vu(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 Eg(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 KA(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return Eg(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=Cg(t,o.pos,1);for(let c=i.firstChild;c;c=c.nextSibling){let l;if(c.nodeType==1)l=c.getClientRects();else if(c.nodeType==3)l=ur(c,0,c.nodeValue.length).getClientRects();else continue;for(let d=0;d<l.length;d++){let u=l[d];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const YA=/[\u0590-\u08ac]/;function GA(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!YA.test(r.parent.textContent)||!c.modify?n=="left"||n=="backward"?i:s:Eg(t,e,()=>{let{focusNode:l,focusOffset:d,anchorNode:u,anchorOffset:f}=t.domSelectionRange(),h=c.caretBidiLevel;c.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:g}=t.domSelectionRange(),y=m&&!p.contains(m.nodeType==1?m:m.parentNode)||l==m&&d==g;try{c.collapse(u,f),l&&(l!=u||d!=f)&&c.extend&&c.extend(l,d)}catch{}return h!=null&&(c.caretBidiLevel=h),y})}let Sg=null,_g=null,wg=!1;function QA(t,e,n){return Sg==e&&_g==n?wg:(Sg=e,_g=n,wg=n=="up"||n=="down"?KA(t,e,n):GA(t,e,n))}const fn=0,kg=1,wo=2,Wn=3;class Ds{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=fn,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>$t(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],c=i+s.size;if(c>e||s instanceof Ig){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 Ag&&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?$t(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?$t(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 l=this.children[c],d=s+l.size;if(o==-1&&e<=d){let u=s+l.border;if(e>=u&&n<=d-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let f=c;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=$t(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(d>n||c==this.children.length-1)){n=d;for(let u=c+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=$t(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=d}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(i>p&&s<g)return m.setSelection(e-p-m.border,n-p-m.border,r,o);p=g}let c=this.domFromPos(e,e?-1:1),l=n==e?c:this.domFromPos(n,n?-1:1),d=r.getSelection(),u=!1;if((Ln||Rt)&&e==n){let{node:h,offset:p}=c;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
|
|
1240
|
-
`),u&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(c=l={node:g.parentNode,offset:$t(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Ln&&d.focusNode&&d.focusNode!=l.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&Rt)&&So(c.node,c.offset,d.anchorNode,d.anchorOffset)&&So(l.node,l.offset,d.focusNode,d.focusOffset))return;let f=!1;if((d.extend||e==n)&&!u){d.collapse(c.node,c.offset);try{e!=n&&d.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(e>n){let p=c;c=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let c=r+i.border,l=s-i.border;if(e>=c&&n<=l){this.dirty=e==r||n==s?wo:kg,e==c&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Wn:i.markDirty(e-c,n-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?wo:Wn}r=s}this.dirty=wo}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?wo:kg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Ag extends Ds{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==fn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ZA extends Ds{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 ko extends Ds{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=jn.renderSpec(document,n.type.spec.toDOM(n,r))),new ko(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Wn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Wn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=fn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=fn}}slice(e,n,r){let o=ko.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Eu(i,n,s,r)),e>0&&(i=Eu(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}}class jr extends Ds{constructor(e,n,r,o,i,s,c,l,d){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=c}static create(e,n,r,o,i,s){let c=i.nodeViews[n.type.name],l,d=c&&c(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,o),u=d&&d.dom,f=d&&d.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=jn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Ng(u,r,n),d?l=new JA(e,n,r,o,u,f||null,h,d,i,s+1):n.isText?new ol(e,n,r,o,u,h,i):new jr(e,n,r,o,u,f||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>he.empty)}return e}matchesNode(e,n,r){return this.dirty==fn&&e.eq(this.node)&&Cu(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,l=new qA(this,s&&s.node,e);nT(this.node,this.innerDeco,(d,u,f)=>{d.spec.marks?l.syncToMarks(d.spec.marks,r,e):d.type.side>=0&&!f&&l.syncToMarks(u==this.node.childCount?qe.none:this.node.child(u).marks,r,e),l.placeWidget(d,e,o)},(d,u,f,h)=>{l.syncToMarks(d.marks,r,e);let p;l.findNodeMatch(d,u,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+d.nodeSize&&(p=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(d,u,f,p,e)||l.updateNextNode(d,u,f,e,h,o)||l.addNode(d,u,f,e,o),o+=d.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==wo)&&(s&&this.protectLocalComposition(e,s),xg(this.contentDOM,this.children,e),fi&&rT(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Qe)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=oT(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let c=s.nodeValue,l=iT(this.node.content,c,r-n,o-n);return l<0?null:{node:s,pos:l,text:c}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new ZA(this,i,n,o);e.input.compositionNodes.push(s),this.children=Eu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Wn||!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=fn}updateOuterDeco(e){if(Cu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Og(this.dom,this.nodeDOM,bu(this.outerDeco,this.node,n),bu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Tg(t,e,n,r,o){Ng(r,e,t);let i=new jr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class ol extends jr{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==Wn||this.dirty!=fn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=fn||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=fn,!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 ol(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=Wn)}get domAtom(){return!1}}class Ig extends Ds{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==fn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class JA extends jr{constructor(e,n,r,o,i,s,c,l,d,u){super(e,n,r,o,i,s,c,d,u),this.spec=l}update(e,n,r,o){if(this.dirty==Wn)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function xg(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],c=s.dom;if(c.parentNode==t){for(;c!=r;)r=Mg(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof ko){let l=r?r.previousSibling:t.lastChild;xg(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=Mg(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Ps=function(t){t&&(this.nodeName=t)};Ps.prototype=Object.create(null);const Ao=[new Ps];function bu(t,e,n){if(t.length==0)return Ao;let r=n?Ao[0]:new Ps,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Ps(s.nodeName));for(let c in s){let l=s[c];l!=null&&(n&&o.length==1&&o.push(r=new Ps(e.isInline?"span":"div")),c=="class"?r.class=(r.class?r.class+" ":"")+l:c=="style"?r.style=(r.style?r.style+";":"")+l:c!="nodeName"&&(r[c]=l))}}}return o}function Og(t,e,n,r){if(n==Ao&&r==Ao)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],c=n[i];if(i){let l;c&&c.nodeName==s.nodeName&&o!=t&&(l=o.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(o),c=Ao[0]),o=l}XA(o,c||Ao[0],s)}return o}function XA(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 Ng(t,e,n){return Og(t,t,Ao,bu(e,n,t.nodeType!=1))}function Cu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Mg(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class qA{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=eT(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=fn,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let c=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let d=this.top.children[l];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){c=l;break}}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let l=ko.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let c=this.index,l=Math.min(this.top.children.length,c+5);c<l;c++){let d=this.top.children[c];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==Wn&&s.dom==s.contentDOM&&(s.dirty=wo),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 l=this.top.children[c];if(l instanceof jr){let d=this.preMatch.matched.get(l);if(d!=null&&d!=i)return!1;let u=l.dom,f,h=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Wn&&Cu(n,l.outerDeco));if(!h&&l.update(e,n,r,o))return this.destroyBetween(this.index,c),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(l,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=wo,f.updateChildren(o,s+1),f.dirty=fn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let c=jr.create(this.top,n,r,o,i,s);if(c.contentDOM){c.children=e.children,e.children=[];for(let l of c.children)l.parent=c}return e.destroy(),c}addNode(e,n,r,o,i){let s=jr.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 Ag(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 ko;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof ol)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Rt||Ot)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let o=new Ig(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 eT(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let c;for(;;)if(r){let d=n.children[r-1];if(d instanceof ko)n=d,r=d.children.length;else{c=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=c.node;if(l){if(l!=t.child(o-1))break;--o,i.set(c,o),s.push(c)}}return{index:o,matched:i,matches:s.reverse()}}function tT(t,e){return t.type.side-e.type.side}function nT(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let d=0;d<t.childCount;d++){let u=t.child(d);r(u,o,e.forChild(i,u),d),i+=u.nodeSize}return}let s=0,c=[],l=null;for(let d=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let y=o[s++];y.widget&&(u?(f||(f=[u])).push(y):u=y)}if(u)if(f){f.sort(tT);for(let y=0;y<f.length;y++)n(f[y],d,!!l)}else n(u,d,!!l);let h,p;if(l)p=-1,h=l,l=null;else if(d<t.childCount)p=d,h=t.child(d++);else break;for(let y=0;y<c.length;y++)c[y].to<=i&&c.splice(y--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)c.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let y=m;s<o.length&&o[s].from<y&&(y=o[s].from);for(let C=0;C<c.length;C++)c[C].to<y&&(y=c[C].to);y<m&&(l=h.cut(y-i),h=h.cut(0,y-i),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?c.filter(y=>!y.inline):c.slice();r(h,g,e.forChild(i,h),p),i=m}}function rT(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 oT(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Un(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function iT(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 l=s.text;for(;o<t.childCount;){let d=t.child(o++);if(i+=d.nodeSize,!d.isText)break;l+=d.text}if(i>=n){if(i>=r&&l.slice(r-e.length-c,r-c)==e)return r-e.length;let d=c<r?l.lastIndexOf(e,r-c-1):-1;if(d>=0&&d+e.length+c>=n)return c+d;if(n==r&&l.length>=r+e.length-c&&l.slice(r-c,r-c+e.length)==e)return r}}return-1}function Eu(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let l=t[s],d=c,u=c+=l.size;d>=n||u<=e?i.push(l):(d<e&&i.push(l.slice(0,e-d,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-d,l.size,r)))}return i}function Su(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),l,d;if(rl(n)){for(l=c;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&De.isSelectable(u)&&o.parent&&!(u.isInline&&xA(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;d=new De(s==f?c:r.resolve(f))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!d){let u=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;d=wu(t,l,c,u)}return d}function Lg(t){return t.editable?t.hasFocus():Fg(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function hr(t,e=!1){let n=t.state.selection;if($g(t,n),!!Lg(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Ot){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&So(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)aT(t);else{let{anchor:r,head:o}=n,i,s;Dg&&!(n instanceof Qe)&&(n.$from.parent.inlineContent||(i=Pg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Pg(t,n.to))),t.docView.setSelection(r,o,t.root,e),Dg&&(i&&Bg(i),s&&Bg(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&sT(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Dg=Rt||Ot&&MA<63;function Pg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Rt&&o&&o.contentEditable=="false")return _u(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return _u(o);if(i)return _u(i)}}function _u(t){return t.contentEditable="true",Rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Bg(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function sT(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(()=>{(!Lg(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function aT(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,$t(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Xt&&Vr<=11&&(r.disabled=!0,r.disabled=!1)}function $g(t,e){if(e instanceof De){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Rg(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Rg(t)}function Rg(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function wu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Qe.between(e,n,r)}function Vg(t){return t.editable&&!t.hasFocus()?!1:Fg(t)}function Fg(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 lT(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return So(e.node,e.offset,n.anchorNode,n.anchorOffset)}function ku(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&&Ge.findFrom(i,e)}function zr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function jg(t,e,n){let r=t.state.selection;if(r instanceof Qe)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 zr(t,new Qe(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=ku(t.state,e);return o&&o instanceof De?zr(t,o):!1}else if(!(un&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let c=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(c))&&!s.contentDOM?De.isSelectable(i)?zr(t,new De(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):Ms?zr(t,new Qe(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof De&&r.node.isInline)return zr(t,new Qe(e>0?r.$to:r.$from));{let o=ku(t.state,e);return o?zr(t,o):!1}}}function il(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Bs(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function pi(t,e){return e<0?cT(t):dT(t)}function cT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Ln&&n.nodeType==1&&r<il(n)&&Bs(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(Bs(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(zg(n))break;{let c=n.previousSibling;for(;c&&Bs(c,-1);)o=n.parentNode,i=$t(c),c=c.previousSibling;if(c)n=c,r=il(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Au(t,n,r):o&&Au(t,o,i)}function dT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=il(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(Bs(c,1))i=n,s=++r;else break}else{if(zg(n))break;{let c=n.nextSibling;for(;c&&Bs(c,1);)i=c.parentNode,s=$t(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=il(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Au(t,i,s)}function zg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function uT(t,e){for(;t&&e==t.childNodes.length&&!hu(t);)e=$t(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 fT(t,e){for(;t&&!e&&!hu(t);)e=$t(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 Au(t,e,n){if(e.nodeType!=3){let i,s;(s=uT(e,n))?(e=s,n=0):(i=fT(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(rl(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&&hr(t)},50)}function Ug(t,e){let n=t.state.doc.resolve(e);if(!(Ot||LA)&&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 Hg(t,e,n){let r=t.state.selection;if(r instanceof Qe&&!r.empty||n.indexOf("s")>-1||un&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=ku(t.state,e);if(s&&s instanceof De)return zr(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof Nn?Ge.near(s,e):Ge.findFrom(s,e);return c?zr(t,c):!1}return!1}function Wg(t,e){if(!(t.state.selection instanceof Qe))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 Kg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function hT(t){if(!Rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Kg(t,r,"true"),setTimeout(()=>Kg(t,r,"false"),20)}return!1}function pT(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function mT(t,e){let n=e.keyCode,r=pT(e);if(n==8||un&&n==72&&r=="c")return Wg(t,-1)||pi(t,-1);if(n==46&&!e.shiftKey||un&&n==68&&r=="c")return Wg(t,1)||pi(t,1);if(n==13||n==27)return!0;if(n==37||un&&n==66&&r=="c"){let o=n==37?Ug(t,t.state.selection.from)=="ltr"?-1:1:-1;return jg(t,o,r)||pi(t,o)}else if(n==39||un&&n==70&&r=="c"){let o=n==39?Ug(t,t.state.selection.from)=="ltr"?1:-1:1;return jg(t,o,r)||pi(t,o)}else{if(n==38||un&&n==80&&r=="c")return Hg(t,-1,r)||pi(t,-1);if(n==40||un&&n==78&&r=="c")return hT(t)||Hg(t,1,r)||pi(t,1);if(r==(un?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Yg(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")||jn.fromSchema(t.state.schema),c=t2(),l=c.createElement("div");l.appendChild(s.serializeFragment(r,{document:c}));let d=l.firstChild,u,f=0;for(;d&&d.nodeType==1&&(u=qg[d.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=c.createElement(u[p]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),f++}d=l.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
|
|
1239
|
+
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=qe.none,r=qe.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let s=this.parser.matchStyle(e[o],e[o+1],this,i);if(!s)break;if(s.ignore)return null;if(s.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(c=>{s.clearMark(c)&&(r=c.addToSet(r))}):n=this.parser.schema.marks[s.mark].create(s.attrs).addToSet(n),s.consuming===!1)i=s;else break}return[n,r]}addElementByRule(e,n,r){let o,i,s;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(s=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(s));let c=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l)}o&&this.sync(c)&&this.open--,s&&this.removePendingMark(s,c)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,s=r==null?null:e.childNodes[r];i!=s;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],s=i.findWrapping(e);if(s&&(!n||n.length>s.length)&&(n=s,r=i,!s.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let s=V0(e,o,i.options);i.options&ks&&i.content.length==0&&(s|=ks),this.nodes.push(new Xa(e,n,i.activeMarks,i.pendingMarks,r,null,s)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),s=(c,l)=>{for(;c>=0;c--){let d=n[c];if(d==""){if(c==n.length-1||c==0)continue;for(;l>=i;l--)if(s(c-1,l))return!0;return!1}else{let u=l>0||l==0&&o?this.nodes[l].type:r&&l>=i?r.node(l-i).type:null;if(!u||u.name!=d&&u.groups.indexOf(d)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=eA(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let s=o.popFromStashMark(e);s&&o.type&&o.type.allowsMarkType(s.type)&&(o.activeMarks=s.addToSet(o.activeMarks))}if(o==n)break}}}function Zk(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&R0.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function Jk(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Xk(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function j0(t){let e={};for(let n in t)e[n]=t[n];return e}function qk(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 l=0;l<c.edgeCount;l++){let{type:d,next:u}=c.edge(l);if(d==e||i.indexOf(u)<0&&s(u))return!0}};if(s(o.contentMatch))return!0}}function eA(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class jn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=eu(n).createDocumentFragment());let o=r,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let c=0,l=0;for(;c<i.length&&l<s.marks.length;){let d=s.marks[l];if(!this.marks[d.type.name]){l++;continue}if(!d.eq(i[c][0])||d.type.spec.spanning===!1)break;c++,l++}for(;c<i.length;)o=i.pop()[1];for(;l<s.marks.length;){let d=s.marks[l++],u=this.serializeMark(d,s.isInline,n);u&&(i.push([d,o]),o.appendChild(u.dom),o=u.contentDOM||u.dom)}}o.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=jn.renderSpec(eu(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&jn.renderSpec(eu(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let s,c=r?e.createElementNS(r,o):e.createElement(o),l=n[1],d=1;if(l&&typeof l=="object"&&l.nodeType==null&&!Array.isArray(l)){d=2;for(let u in l)if(l[u]!=null){let f=u.indexOf(" ");f>0?c.setAttributeNS(u.slice(0,f),u.slice(f+1),l[u]):c.setAttribute(u,l[u])}}for(let u=d;u<n.length;u++){let f=n[u];if(f===0){if(u<n.length-1||u>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:p}=jn.renderSpec(e,f,r);if(c.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:c,contentDOM:s}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new jn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=z0(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return z0(e.marks)}}function z0(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function eu(t){return t.document||window.document}const U0=65535,H0=Math.pow(2,16);function tA(t,e){return t+e*H0}function W0(t){return t&U0}function nA(t){return(t-(t&U0))/H0}const K0=1,Y0=2,qa=4,G0=8;class tu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&G0)>0}get deletedBefore(){return(this.delInfo&(K0|qa))>0}get deletedAfter(){return(this.delInfo&(Y0|qa))>0}get deletedAcross(){return(this.delInfo&qa)>0}}class nn{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&nn.empty)return nn.empty}recover(e){let n=0,r=W0(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+nA(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 l=this.ranges[c]-(this.inverted?o:0);if(l>e)break;let d=this.ranges[c+i],u=this.ranges[c+s],f=l+d;if(e<=f){let h=d?e==l?-1:e==f?1:n:n,p=l+o+(h<0?0:u);if(r)return p;let m=e==(n<0?l:f)?null:tA(c/3,e-l),g=e==l?Y0:e==f?K0:qa;return(n<0?e!=l:e!=f)&&(g|=G0),new tu(p,g,m)}o+=u-d}return r?e+o:new tu(e+o,0,null)}touches(e,n){let r=0,o=W0(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let l=this.ranges[c]-(this.inverted?r:0);if(l>e)break;let d=this.ranges[c+i],u=l+d;if(e<=u&&c==o*3)return!0;r+=this.ranges[c+s]-d}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let s=this.ranges[o],c=s-(this.inverted?i:0),l=s+(this.inverted?0:i),d=this.ranges[o+n],u=this.ranges[o+r];e(c,c+d,l,l+u),i+=u-d}}invert(){return new nn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?nn.empty:new nn(e<0?[0,-e,0]:[0,0,e])}}nn.empty=new nn([]);class As{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new As(this.maps,this.mirror,e,n)}copy(){return new As(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new As;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 l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this.maps[l].recover(c.recover);continue}}o|=c.delInfo,e=c.pos}return r?e:new tu(e,o,null)}}const nu=Object.create(null);class Ot{getMap(){return nn.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=nu[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 nu)throw new RangeError("Duplicate use of step JSON ID "+e);return nu[e]=n,n.prototype.jsonID=e,n}}class ht{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ht(e,null)}static fail(e){return new ht(null,e)}static fromReplace(e,n,r,o){try{return ht.ok(e.replace(n,r,o))}catch(i){if(i instanceof Wa)return ht.fail(i.message);throw i}}}function ru(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(ru(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return he.fromArray(r)}class Pr 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 we(ru(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 ht.fromReplace(e,this.from,this.to,i)}invert(){return new zn(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 Pr(n.pos,r.pos,this.mark)}merge(e){return e instanceof Pr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Pr(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 Pr(n.from,n.to,e.markFromJSON(n.mark))}}Ot.jsonID("addMark",Pr);class zn 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 we(ru(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return ht.fromReplace(e,this.from,this.to,r)}invert(){return new Pr(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 zn(n.pos,r.pos,this.mark)}merge(e){return e instanceof zn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new zn(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 zn(n.from,n.to,e.markFromJSON(n.mark))}}Ot.jsonID("removeMark",zn);class Br extends Ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ht.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ht.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new Br(this.pos,n.marks[o]);return new Br(this.pos,this.mark)}}return new ii(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Br(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 Br(n.pos,e.markFromJSON(n.mark))}}Ot.jsonID("addNodeMark",Br);class ii extends Ot{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ht.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ht.fromReplace(e,this.pos,this.pos+1,new we(he.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Br(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ii(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 ii(n.pos,e.markFromJSON(n.mark))}}Ot.jsonID("removeNodeMark",ii);class kt 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&&ou(e,this.from,this.to)?ht.fail("Structure replace would overwrite content"):ht.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new nn([this.from,this.to-this.from,this.slice.size])}invert(e){return new kt(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 kt(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof kt)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?we.empty:new we(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new kt(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?we.empty:new we(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new kt(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 kt(n.from,n.to,we.fromJSON(e,n.slice),!!n.structure)}}Ot.jsonID("replace",kt);class Ct 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&&(ou(e,this.from,this.gapFrom)||ou(e,this.gapTo,this.to)))return ht.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ht.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?ht.fromReplace(e,this.from,this.to,r):ht.fail("Content does not fit in gap")}getMap(){return new nn([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 Ct(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new Ct(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 Ct(n.from,n.to,n.gapFrom,n.gapTo,we.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ot.jsonID("replaceAround",Ct);function ou(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 rA(t,e,n,r){let o=[],i=[],s,c;t.doc.nodesBetween(e,n,(l,d,u)=>{if(!l.isInline)return;let f=l.marks;if(!r.isInSet(f)&&u.type.allowsMarkType(r.type)){let h=Math.max(d,e),p=Math.min(d+l.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 zn(h,p,f[g])));c&&c.to==h?c.to=p:i.push(c=new Pr(h,p,r))}}),o.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function oA(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(s,c)=>{if(!s.isInline)return;i++;let l=null;if(r instanceof Qa){let d=s.marks,u;for(;u=r.isInSet(d);)(l||(l=[])).push(u),d=u.removeFromSet(d)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let d=Math.min(c+s.nodeSize,n);for(let u=0;u<l.length;u++){let f=l[u],h;for(let p=0;p<o.length;p++){let m=o[p];m.step==i-1&&f.eq(o[p].style)&&(h=m)}h?(h.to=d,h.step=i):o.push({style:f,from:Math.max(c,e),to:d,step:i})}}}),o.forEach(s=>t.step(new zn(s.from,s.to,s.style)))}function iA(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],s=e+1;for(let c=0;c<o.childCount;c++){let l=o.child(c),d=s+l.nodeSize,u=r.matchType(l.type);if(!u)i.push(new kt(s,d,we.empty));else{r=u;for(let f=0;f<l.marks.length;f++)n.allowsMarkType(l.marks[f].type)||t.step(new zn(s,d,l.marks[f]));if(l.isText&&!n.spec.code){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(l.text);)p||(p=new we(he.from(n.schema.text(" ",n.allowedMarks(l.marks))),0,0)),i.push(new kt(s+f.index,s+f.index+f[0].length,p))}}s=d}if(!r.validEnd){let c=r.fillBefore(he.empty,!0);t.replace(s,s,new we(c,0,0))}for(let c=i.length-1;c>=0;c--)t.step(i[c])}function sA(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function si(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),s=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,s,n))return r;if(r==0||o.type.spec.isolating||!sA(o,i,s))break}return null}function aA(t,e,n){let{$from:r,$to:o,depth:i}=e,s=r.before(i+1),c=o.after(i+1),l=s,d=c,u=he.empty,f=0;for(let m=i,g=!1;m>n;m--)g||r.index(m)>0?(g=!0,u=he.from(r.node(m).copy(u)),f++):l--;let h=he.empty,p=0;for(let m=i,g=!1;m>n;m--)g||o.after(m+1)<o.end(m)?(g=!0,h=he.from(o.node(m).copy(h)),p++):d++;t.step(new Ct(l,d,s,c,new we(u.append(h),f,p),u.size-f,!0))}function iu(t,e,n=null,r=t){let o=lA(t,e),i=o&&cA(r,e);return i?o.map(Q0).concat({type:e,attrs:n}).concat(i.map(Q0)):null}function Q0(t){return{type:t,attrs:null}}function lA(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 cA(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 l=(s.length?s[s.length-1]:e).contentMatch;for(let d=r;l&&d<o;d++)l=l.matchType(n.child(d).type);return!l||!l.validEnd?null:s}function dA(t,e,n){let r=he.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let c=n[s].type.contentMatch.matchFragment(r);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=he.from(n[s].type.create(n[s].attrs,r))}let o=e.start,i=e.end;t.step(new Ct(o,i,o,i,new we(r,0,0),n.length,!0))}function uA(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,c)=>{if(s.isTextblock&&!s.hasMarkup(r,o)&&fA(t.doc,t.mapping.slice(i).map(c),r)){t.clearIncompatible(t.mapping.slice(i).map(c,1),r);let l=t.mapping.slice(i),d=l.map(c,1),u=l.map(c+s.nodeSize,1);return t.step(new Ct(d,u,d+1,u-1,new we(he.from(r.create(o,null,s.marks)),0,0),1,!0)),!1}})}function fA(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function hA(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 Ct(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new we(he.from(s),0,0),1,!0))}function ai(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let d=o.depth-1,u=n-2;d>i;d--,u--){let f=o.node(d),h=o.index(d);if(f.type.spec.isolating)return!1;let p=f.content.cutByIndex(h,f.childCount),m=r&&r[u+1];m&&(p=p.replaceChild(0,m.type.create(m.attrs)));let g=r&&r[u]||f;if(!f.canReplace(h+1,f.childCount)||!g.type.validContent(p))return!1}let c=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(c,c,l?l.type:o.node(i+1).type)}function pA(t,e,n=1,r){let o=t.doc.resolve(e),i=he.empty,s=he.empty;for(let c=o.depth,l=o.depth-n,d=n-1;c>l;c--,d--){i=he.from(o.node(c).copy(i));let u=r&&r[d];s=he.from(u?u.type.create(u.attrs,s):o.node(c).copy(s))}t.step(new kt(e,e,new we(i.append(s),n,n),!0))}function $r(t,e){let n=t.resolve(e),r=n.index();return Z0(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Z0(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function el(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&&Z0(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 mA(t,e,n){let r=new kt(e-n,e+n,we.empty,!0);t.step(r)}function gA(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 yA(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,l=r.index(s)+(c>0?1:0),d=r.node(s),u=!1;if(i==1)u=d.canReplace(l,l,o);else{let f=d.contentMatchAt(l).findWrapping(o.firstChild.type);u=f&&d.canReplaceWith(l,l,f[0])}if(u)return c==0?r.pos:c<0?r.before(s+1):r.after(s+1)}return null}function su(t,e,n=e,r=we.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return J0(o,i,r)?new kt(e,n,r):new vA(o,i,r).fit()}function J0(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class vA{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=he.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=he.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,s=r.depth,c=o.depth;for(;s&&c&&i.childCount==1;)i=i.firstChild.content,s--,c--;let l=new we(i,s,c);return e>-1?new Ct(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new kt(r.pos,o.pos,l):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=au(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:l,match:d}=this.frontier[c],u,f=null;if(n==1&&(s?d.matchType(s.type)||(f=d.fillBefore(he.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:c,parent:i,inject:f};if(n==2&&s&&(u=d.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:c,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=au(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new we(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=au(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new we(Ts(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new we(Ts(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,l=s.openStart-e,d=0,u=[],{match:f,type:h}=this.frontier[n];if(o){for(let g=0;g<o.childCount;g++)u.push(o.child(g));f=f.matchFragment(o)}let p=c.size+e-(s.content.size-s.openEnd);for(;d<c.childCount;){let g=c.child(d),y=f.matchType(g.type);if(!y)break;d++,(d>1||l==0||g.content.size)&&(f=y,u.push(X0(g.mark(h.allowedMarks(g.marks)),d==1?l:0,d==c.childCount?p:-1)))}let m=d==c.childCount;m||(p=-1),this.placed=Is(this.placed,n,he.from(u)),this.frontier[n].match=f,m&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,y=c;g<p;g++){let C=y.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),y=C.content}this.unplaced=m?e==0?we.empty:new we(Ts(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new we(Ts(s.content,e,d),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!lu(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=lu(e,n,o,r,i);if(s){for(let c=n-1;c>=0;c--){let{match:l,type:d}=this.frontier[c],u=lu(e,c,d,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Is(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=Is(this.placed,this.depth,he.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(he.empty,!0);n.childCount&&(this.placed=Is(this.placed,this.frontier.length,n))}}function Ts(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Ts(t.firstChild.content,e-1,n)))}function Is(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Is(t.lastChild.content,e-1,n)))}function au(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function X0(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,X0(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(he.empty,!0)))),t.copy(r)}function lu(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&&!bA(n,i.content,s)?c:null}function bA(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 EA(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(J0(o,i,r))return t.step(new kt(e,n,r));let s=eg(o,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let c=-(o.depth+1);s.unshift(c);for(let h=o.depth,p=o.pos-1;h>0;h--,p--){let m=o.node(h).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;s.indexOf(h)>-1?c=h:o.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(c),d=[],u=r.openStart;for(let h=r.content,p=0;;p++){let m=h.firstChild;if(d.push(m),p==r.openStart)break;h=m.content}for(let h=u-1;h>=0;h--){let p=d[h],m=CA(p.type);if(m&&!p.sameMarkup(o.node(Math.abs(c)-1)))u=h;else if(m||!p.type.isTextblock)break}for(let h=r.openStart;h>=0;h--){let p=(h+u+1)%(r.openStart+1),m=d[p];if(m)for(let g=0;g<s.length;g++){let y=s[(g+l)%s.length],C=!0;y<0&&(C=!1,y=-y);let E=o.node(y-1),b=o.index(y-1);if(E.canReplaceWith(b,b,m.type,m.marks))return t.replace(o.before(y),C?i.after(y):n,new we(q0(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 q0(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(q0(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(he.empty,!0))}return t}function SA(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=gA(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new we(he.from(r),0,0))}function _A(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=eg(r,o);for(let s=0;s<i.length;s++){let c=i[s],l=s==i.length-1;if(l&&c==0||r.node(c).type.contentMatch.validEnd)return t.delete(r.start(c),o.end(c));if(c>0&&(l||r.node(c-1).canReplace(r.index(c-1),o.indexAfter(c-1))))return t.delete(r.before(c),o.after(c))}for(let s=1;s<=r.depth&&s<=o.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&o.end(s)-n!=o.depth-s)return t.delete(r.before(s),n);t.delete(e,n)}function eg(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 li 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 ht.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 ht.fromReplace(e,this.pos,this.pos+1,new we(he.from(o),0,n.isLeaf?0:1))}getMap(){return nn.empty}invert(e){return new li(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 li(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 li(n.pos,n.attr,n.value)}}Ot.jsonID("attr",li);class xs 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 ht.ok(r)}getMap(){return nn.empty}invert(e){return new xs(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 xs(n.attr,n.value)}}Ot.jsonID("docAttr",xs);let ci=class extends Error{};ci=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ci.prototype=Object.create(Error.prototype),ci.prototype.constructor=ci,ci.prototype.name="TransformError";class tg{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new As}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ci(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=we.empty){let o=su(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new we(he.from(r),0,0))}delete(e,n){return this.replace(e,n,we.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return EA(this,e,n,r),this}replaceRangeWith(e,n,r){return SA(this,e,n,r),this}deleteRange(e,n){return _A(this,e,n),this}lift(e,n){return aA(this,e,n),this}join(e,n=1){return mA(this,e,n),this}wrap(e,n){return dA(this,e,n),this}setBlockType(e,n=e,r,o=null){return uA(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return hA(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new li(e,n,r)),this}setDocAttribute(e,n){return this.step(new xs(e,n)),this}addNodeMark(e,n){return this.step(new Br(e,n)),this}removeNodeMark(e,n){if(!(n instanceof qe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new ii(e,n)),this}split(e,n=1,r){return pA(this,e,n,r),this}addMark(e,n,r){return rA(this,e,n,r),this}removeMark(e,n,r){return oA(this,e,n,r),this}clearIncompatible(e,n,r){return iA(this,e,n,r),this}}const cu=Object.create(null);class Ge{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new wA(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=we.empty){let r=n.content.lastChild,o=null;for(let c=0;c<n.openEnd;c++)o=r,r=r.lastChild;let i=e.steps.length,s=this.ranges;for(let c=0;c<s.length;c++){let{$from:l,$to:d}=s[c],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(d.pos),c?we.empty:n),c==0&&og(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],l=e.mapping.slice(r),d=l.map(s.pos),u=l.map(c.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,n),og(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Qe(e):di(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?di(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):di(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 Nn(e.node(0))}static atStart(e){return di(e,e,0,0,1)||new Nn(e)}static atEnd(e){return di(e,e,e.content.size,e.childCount,-1)||new Nn(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=cu[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 cu)throw new RangeError("Duplicate use of selection JSON ID "+e);return cu[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Qe.between(this.$anchor,this.$head).getBookmark()}}Ge.prototype.visible=!0;class wA{constructor(e,n){this.$from=e,this.$to=n}}let ng=!1;function rg(t){!ng&&!t.parent.inlineContent&&(ng=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Qe extends Ge{constructor(e,n=e){rg(e),rg(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 Ge.near(r);let o=e.resolve(n.map(this.anchor));return new Qe(o.parent.inlineContent?o:r,r)}replace(e,n=we.empty){if(super.replace(e,n),n==we.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Qe&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new tl(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 Qe(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=Ge.findFrom(n,r,!0)||Ge.findFrom(n,-r,!0);if(i)n=i.$head;else return Ge.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(Ge.findFrom(e,-r,!0)||Ge.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Qe(e,n)}}Ge.jsonID("text",Qe);class tl{constructor(e,n){this.anchor=e,this.head=n}map(e){return new tl(e.map(this.anchor),e.map(this.head))}resolve(e){return Qe.between(e.resolve(this.anchor),e.resolve(this.head))}}class De extends Ge{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?Ge.near(i):new De(i)}content(){return new we(he.from(this.node),0,0)}eq(e){return e instanceof De&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new du(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new De(e.resolve(n.anchor))}static create(e,n){return new De(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}De.prototype.visible=!1,Ge.jsonID("node",De);class du{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new tl(r,r):new du(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&De.isSelectable(r)?new De(n):Ge.near(n)}}class Nn extends Ge{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=we.empty){if(n==we.empty){e.delete(0,e.doc.content.size);let r=Ge.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Nn(e)}map(e){return new Nn(e)}eq(e){return e instanceof Nn}getBookmark(){return kA}}Ge.jsonID("all",Nn);const kA={map(){return this},resolve(t){return new Nn(t)}};function di(t,e,n,r,o,i=!1){if(e.inlineContent)return Qe.create(t,n);for(let s=r-(o>0?0:1);o>0?s<e.childCount:s>=0;s+=o){let c=e.child(s);if(c.isAtom){if(!i&&De.isSelectable(c))return De.create(t,n-(o<0?c.nodeSize:0))}else{let l=di(t,c,n+o,o<0?c.childCount:0,o,i);if(l)return l}n+=c.nodeSize*o}return null}function og(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof kt||o instanceof Ct))return;let i=t.mapping.maps[r],s;i.forEach((c,l,d,u)=>{s==null&&(s=u)}),t.setSelection(Ge.near(t.doc.resolve(s),n))}const ig=1,nl=2,sg=4;class AA extends tg{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|ig)&~nl,this.storedMarks=null,this}get selectionSet(){return(this.updated&ig)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=nl,this}ensureMarks(e){return qe.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&nl)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~nl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||qe.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(Ge.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|=sg,this}get scrolledIntoView(){return(this.updated&sg)>0}}function ag(t,e){return!e||!t?t:t.bind(e)}class Os{constructor(e,n,r){this.name=e,this.init=ag(n.init,r),this.apply=ag(n.apply,r)}}const TA=[new Os("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Os("selection",{init(t,e){return t.selection||Ge.atStart(e.doc)},apply(t){return t.selection}}),new Os("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new Os("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class uu{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=TA.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 Os(r.key,r.spec.state,r))})}}class ui{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 l=o?o[s].n:0,d=o?o[s].state:this,u=l<n.length&&c.spec.appendTransaction.call(c,l?n.slice(l):n,d,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),i=!0}o&&(o[s]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ui(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 AA(this)}static create(e){let n=new uu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new ui(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 uu(this.schema,e.plugins),r=n.fields,o=new ui(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 uu(e.schema,e.plugins),i=new ui(o);return o.fields.forEach(s=>{if(s.name=="doc")i.doc=Co.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Ge.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 l=r[c],d=l.spec.state;if(l.key==s.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(n,c)){i[s.name]=d.fromJSON.call(l,e,n[c],i);return}}i[s.name]=s.init(e,i)}}),i}}function lg(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=lg(o,e,{})),n[r]=o}return n}class Jt{constructor(e){this.spec=e,this.props={},e.props&&lg(e.props,this,this.props),this.key=e.key?e.key.key:cg("plugin")}getState(e){return e[this.key]}}const fu=Object.create(null);function cg(t){return t in fu?t+"$"+ ++fu[t]:(fu[t]=0,t+"$")}class Mn{constructor(e="key"){this.key=cg(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $t=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ns=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let dg=null;const ur=function(t,e,n){let r=dg||(dg=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},So=function(t,e,n,r){return n&&(ug(t,e,n,r,-1)||ug(t,e,n,r,1))},IA=/^(img|br|input|textarea|hr)$/i;function ug(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:Un(t))){let i=t.parentNode;if(!i||i.nodeType!=1||hu(t)||IA.test(t.nodeName)||t.contentEditable=="false")return!1;e=$t(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?Un(t):0}else return!1}}function Un(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function xA(t,e,n){for(let r=e==0,o=e==Un(t);r||o;){if(t==n)return!0;let i=$t(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==Un(t)}}function hu(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 rl=function(t){return t.focusNode&&So(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function _o(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function OA(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function NA(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const Hn=typeof navigator<"u"?navigator:null,fg=typeof document<"u"?document:null,Rr=Hn&&Hn.userAgent||"",pu=/Edge\/(\d+)/.exec(Rr),hg=/MSIE \d/.exec(Rr),mu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rr),Xt=!!(hg||mu||pu),Vr=hg?document.documentMode:mu?+mu[1]:pu?+pu[1]:0,Ln=!Xt&&/gecko\/(\d+)/i.test(Rr);Ln&&+(/Firefox\/(\d+)/.exec(Rr)||[0,0])[1];const gu=!Xt&&/Chrome\/(\d+)/.exec(Rr),Nt=!!gu,MA=gu?+gu[1]:0,Rt=!Xt&&!!Hn&&/Apple Computer/.test(Hn.vendor),fi=Rt&&(/Mobile\/\w+/.test(Rr)||!!Hn&&Hn.maxTouchPoints>2),un=fi||(Hn?/Mac/.test(Hn.platform):!1),LA=Hn?/Win/.test(Hn.platform):!1,Dn=/Android \d/.test(Rr),Ms=!!fg&&"webkitFontSmoothing"in fg.documentElement.style,DA=Ms?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function PA(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function fr(t,e){return typeof t=="number"?t:t[e]}function BA(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 pg(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Ns(s)){if(s.nodeType!=1)continue;let c=s,l=c==i.body,d=l?PA(i):BA(c),u=0,f=0;if(e.top<d.top+fr(r,"top")?f=-(d.top-e.top+fr(o,"top")):e.bottom>d.bottom-fr(r,"bottom")&&(f=e.bottom-e.top>d.bottom-d.top?e.top+fr(o,"top")-d.top:e.bottom-d.bottom+fr(o,"bottom")),e.left<d.left+fr(r,"left")?u=-(d.left-e.left+fr(o,"left")):e.right>d.right-fr(r,"right")&&(u=e.right-d.right+fr(o,"right")),u||f)if(l)i.defaultView.scrollBy(u,f);else{let h=c.scrollLeft,p=c.scrollTop;f&&(c.scrollTop+=f),u&&(c.scrollLeft+=u);let m=c.scrollLeft-h,g=c.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function $A(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 l=c.getBoundingClientRect();if(l.top>=n-20){r=c,o=l.top;break}}return{refDOM:r,refTop:o,stack:mg(t.dom)}}function mg(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Ns(r));return e}function RA({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;gg(n,r==0?0:r-e)}function gg(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 hi=null;function VA(t){if(t.setActive)return t.setActive();if(hi)return t.focus(hi);let e=mg(t);t.focus(hi==null?{get preventScroll(){return hi={preventScroll:!0},!0}}:void 0),hi||(hi=!1,gg(e,0))}function yg(t,e){let n,r=2e8,o,i=0,s=e.top,c=e.top,l,d;for(let u=t.firstChild,f=0;u;u=u.nextSibling,f++){let h;if(u.nodeType==1)h=u.getClientRects();else if(u.nodeType==3)h=ur(u).getClientRects();else continue;for(let p=0;p<h.length;p++){let m=h[p];if(m.top<=s&&m.bottom>=c){s=Math.max(m.bottom,s),c=Math.min(m.top,c);let g=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(g<r){n=u,r=g,o=g&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,u.nodeType==1&&g&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!l&&m.left<=e.left&&m.right>=e.left&&(l=u,d={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&l&&(n=l,o=d,r=0),n&&n.nodeType==3?FA(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:yg(n,o)}function FA(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=Fr(r,1);if(i.top!=i.bottom&&yu(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function yu(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 zA(t,e,n){let{node:r,offset:o}=yg(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 UA(t,e,n,r){let o=-1;for(let i=e,s=!1;i!=t.dom;){let c=t.docView.nearestDesc(i,!0);if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent&&!s||!c.contentDOM)){let l=c.dom.getBoundingClientRect();if(c.node.isBlock&&c.parent&&!s&&(s=!0,l.left>r.left||l.top>r.top?o=c.posBefore:(l.right<r.left||l.bottom<r.top)&&(o=c.posAfter)),!c.contentDOM&&o<0&&!c.node.isText)return(c.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?c.posBefore:c.posAfter}i=c.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function vg(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 l=0;l<c.length;l++){let d=c[l];if(yu(e,d))return vg(s,e,d)}}if((i=(i+1)%r)==o)break}return t}function HA(t,e){let n=t.dom.ownerDocument,r,o=0,i=NA(n,e.left,e.top);i&&({node:r,offset:o}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),c;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let d=t.dom.getBoundingClientRect();if(!yu(e,d)||(s=vg(t.dom,e,d),!s))return null}if(Rt)for(let d=s;r&&d;d=Ns(d))d.draggable&&(r=void 0);if(s=jA(s,e),r){if(Ln&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let u=r.childNodes[o],f;u.nodeName=="IMG"&&(f=u.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let d;Ms&&o&&r.nodeType==1&&(d=r.childNodes[o-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?c=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(c=UA(t,r,o,e))}c==null&&(c=zA(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:c,inside:l?l.posAtStart-l.border:-1}}function bg(t){return t.top<t.bottom||t.left<t.right}function Fr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(bg(r))return r}return Array.prototype.find.call(n,bg)||t.getBoundingClientRect()}const WA=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Cg(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Ms||Ln;if(r.nodeType==3)if(s&&(WA.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let l=Fr(ur(r,o,o),n);if(Ln&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let d=Fr(ur(r,o-1,o-1),-1);if(d.top==l.top){let u=Fr(ur(r,o,o+1),-1);if(u.top!=l.top)return Ls(u,u.left<d.left)}}return l}else{let l=o,d=o,u=n<0?1:-1;return n<0&&!o?(d++,u=-1):n>=0&&o==r.nodeValue.length?(l--,u=1):n<0?l--:d++,Ls(Fr(ur(r,l,d),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==Un(r))){let l=r.childNodes[o-1];if(l.nodeType==1)return vu(l.getBoundingClientRect(),!1)}if(i==null&&o<Un(r)){let l=r.childNodes[o];if(l.nodeType==1)return vu(l.getBoundingClientRect(),!0)}return vu(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==Un(r))){let l=r.childNodes[o-1],d=l.nodeType==3?ur(l,Un(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(d)return Ls(Fr(d,1),!1)}if(i==null&&o<Un(r)){let l=r.childNodes[o];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let d=l?l.nodeType==3?ur(l,0,s?0:1):l.nodeType==1?l:null:null;if(d)return Ls(Fr(d,-1),!0)}return Ls(Fr(r.nodeType==3?ur(r):r,-n),n>=0)}function Ls(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 vu(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 Eg(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 KA(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return Eg(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=Cg(t,o.pos,1);for(let c=i.firstChild;c;c=c.nextSibling){let l;if(c.nodeType==1)l=c.getClientRects();else if(c.nodeType==3)l=ur(c,0,c.nodeValue.length).getClientRects();else continue;for(let d=0;d<l.length;d++){let u=l[d];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const YA=/[\u0590-\u08ac]/;function GA(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!YA.test(r.parent.textContent)||!c.modify?n=="left"||n=="backward"?i:s:Eg(t,e,()=>{let{focusNode:l,focusOffset:d,anchorNode:u,anchorOffset:f}=t.domSelectionRange(),h=c.caretBidiLevel;c.modify("move",n,"character");let p=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:g}=t.domSelectionRange(),y=m&&!p.contains(m.nodeType==1?m:m.parentNode)||l==m&&d==g;try{c.collapse(u,f),l&&(l!=u||d!=f)&&c.extend&&c.extend(l,d)}catch{}return h!=null&&(c.caretBidiLevel=h),y})}let Sg=null,_g=null,wg=!1;function QA(t,e,n){return Sg==e&&_g==n?wg:(Sg=e,_g=n,wg=n=="up"||n=="down"?KA(t,e,n):GA(t,e,n))}const fn=0,kg=1,wo=2,Wn=3;class Ds{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=fn,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>$t(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),s;if(i&&(!n||i.node))if(r&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let s=this.children[r],c=i+s.size;if(c>e||s instanceof Ig){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 Ag&&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?$t(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?$t(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 l=this.children[c],d=s+l.size;if(o==-1&&e<=d){let u=s+l.border;if(e>=u&&n<=d-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let f=c;f>0;f--){let h=this.children[f-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){o=$t(h.dom)+1;break}e-=h.size}o==-1&&(o=0)}if(o>-1&&(d>n||c==this.children.length-1)){n=d;for(let u=c+1;u<this.children.length;u++){let f=this.children[u];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=$t(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=d}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(i>p&&s<g)return m.setSelection(e-p-m.border,n-p-m.border,r,o);p=g}let c=this.domFromPos(e,e?-1:1),l=n==e?c:this.domFromPos(n,n?-1:1),d=r.getSelection(),u=!1;if((Ln||Rt)&&e==n){let{node:h,offset:p}=c;if(h.nodeType==3){if(u=!!(p&&h.nodeValue[p-1]==`
|
|
1240
|
+
`),u&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(c=l={node:g.parentNode,offset:$t(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];u=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(Ln&&d.focusNode&&d.focusNode!=l.node&&d.focusNode.nodeType==1){let h=d.focusNode.childNodes[d.focusOffset];h&&h.contentEditable=="false"&&(o=!0)}if(!(o||u&&Rt)&&So(c.node,c.offset,d.anchorNode,d.anchorOffset)&&So(l.node,l.offset,d.focusNode,d.focusOffset))return;let f=!1;if((d.extend||e==n)&&!u){d.collapse(c.node,c.offset);try{e!=n&&d.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(e>n){let p=c;c=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(c.node,c.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,o=0;o<this.children.length;o++){let i=this.children[o],s=r+i.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let c=r+i.border,l=s-i.border;if(e>=c&&n<=l){this.dirty=e==r||n==s?wo:kg,e==c&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Wn:i.markDirty(e-c,n-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?wo:Wn}r=s}this.dirty=wo}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?wo:kg;n.dirty<r&&(n.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}}class Ag extends Ds{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==fn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ZA extends Ds{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 ko extends Ds{constructor(e,n,r,o){super(e,[],r,o),this.mark=n}static create(e,n,r,o){let i=o.nodeViews[n.type.name],s=i&&i(n,o,r);return(!s||!s.dom)&&(s=jn.renderSpec(document,n.type.spec.toDOM(n,r))),new ko(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&Wn||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Wn&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=fn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=fn}}slice(e,n,r){let o=ko.create(this.parent,this.mark,!0,r),i=this.children,s=this.size;n<s&&(i=Eu(i,n,s,r)),e>0&&(i=Eu(i,0,e,r));for(let c=0;c<i.length;c++)i[c].parent=o;return o.children=i,o}}class jr extends Ds{constructor(e,n,r,o,i,s,c,l,d){super(e,[],i,s),this.node=n,this.outerDeco=r,this.innerDeco=o,this.nodeDOM=c}static create(e,n,r,o,i,s){let c=i.nodeViews[n.type.name],l,d=c&&c(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,o),u=d&&d.dom,f=d&&d.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:f}=jn.renderSpec(document,n.type.spec.toDOM(n)));!f&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let h=u;return u=Ng(u,r,n),d?l=new JA(e,n,r,o,u,f||null,h,d,i,s+1):n.isText?new ol(e,n,r,o,u,h,i):new jr(e,n,r,o,u,f||null,h,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>he.empty)}return e}matchesNode(e,n,r){return this.dirty==fn&&e.eq(this.node)&&Cu(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,l=new qA(this,s&&s.node,e);nT(this.node,this.innerDeco,(d,u,f)=>{d.spec.marks?l.syncToMarks(d.spec.marks,r,e):d.type.side>=0&&!f&&l.syncToMarks(u==this.node.childCount?qe.none:this.node.child(u).marks,r,e),l.placeWidget(d,e,o)},(d,u,f,h)=>{l.syncToMarks(d.marks,r,e);let p;l.findNodeMatch(d,u,f,h)||c&&e.state.selection.from>o&&e.state.selection.to<o+d.nodeSize&&(p=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(d,u,f,p,e)||l.updateNextNode(d,u,f,e,h,o)||l.addNode(d,u,f,e,o),o+=d.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==wo)&&(s&&this.protectLocalComposition(e,s),xg(this.contentDOM,this.children,e),fi&&rT(this.dom))}localCompositionInfo(e,n){let{from:r,to:o}=e.state.selection;if(!(e.state.selection instanceof Qe)||r<n||o>n+this.node.content.size)return null;let i=e.domSelectionRange(),s=oT(i.focusNode,i.focusOffset);if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let c=s.nodeValue,l=iT(this.node.content,c,r-n,o-n);return l<0?null:{node:s,pos:l,text:c}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:o}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new ZA(this,i,n,o);e.input.compositionNodes.push(s),this.children=Eu(this.children,r,r+o.length,e,s)}update(e,n,r,o){return this.dirty==Wn||!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=fn}updateOuterDeco(e){if(Cu(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Og(this.dom,this.nodeDOM,bu(this.outerDeco,this.node,n),bu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Tg(t,e,n,r,o){Ng(r,e,t);let i=new jr(void 0,t,e,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class ol extends jr{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==Wn||this.dirty!=fn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=fn||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=fn,!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 ol(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=Wn)}get domAtom(){return!1}}class Ig extends Ds{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==fn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class JA extends jr{constructor(e,n,r,o,i,s,c,l,d,u){super(e,n,r,o,i,s,c,d,u),this.spec=l}update(e,n,r,o){if(this.dirty==Wn)return!1;if(this.spec.update){let i=this.spec.update(e,n,r);return i&&this.updateInner(e,n,r,o),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,o){this.spec.setSelection?this.spec.setSelection(e,n,r):super.setSelection(e,n,r,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function xg(t,e,n){let r=t.firstChild,o=!1;for(let i=0;i<e.length;i++){let s=e[i],c=s.dom;if(c.parentNode==t){for(;c!=r;)r=Mg(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(c,r);if(s instanceof ko){let l=r?r.previousSibling:t.lastChild;xg(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=Mg(r),o=!0;o&&n.trackWrites==t&&(n.trackWrites=null)}const Ps=function(t){t&&(this.nodeName=t)};Ps.prototype=Object.create(null);const Ao=[new Ps];function bu(t,e,n){if(t.length==0)return Ao;let r=n?Ao[0]:new Ps,o=[r];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&o.push(r=new Ps(s.nodeName));for(let c in s){let l=s[c];l!=null&&(n&&o.length==1&&o.push(r=new Ps(e.isInline?"span":"div")),c=="class"?r.class=(r.class?r.class+" ":"")+l:c=="style"?r.style=(r.style?r.style+";":"")+l:c!="nodeName"&&(r[c]=l))}}}return o}function Og(t,e,n,r){if(n==Ao&&r==Ao)return e;let o=e;for(let i=0;i<r.length;i++){let s=r[i],c=n[i];if(i){let l;c&&c.nodeName==s.nodeName&&o!=t&&(l=o.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(o),c=Ao[0]),o=l}XA(o,c||Ao[0],s)}return o}function XA(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 Ng(t,e,n){return Og(t,t,Ao,bu(e,n,t.nodeType!=1))}function Cu(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Mg(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class qA{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=eT(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r){let o=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;o<s&&(o==i-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<i;)this.destroyRest(),this.top.dirty=fn,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let c=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let d=this.top.children[l];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){c=l;break}}if(c>-1)c>this.index&&(this.changed=!0,this.destroyBetween(this.index,c)),this.top=this.top.children[this.index];else{let l=ko.create(this.top,e[i],n,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,r,o){let i=-1,s;if(o>=this.preMatch.index&&(s=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))i=this.top.children.indexOf(s,this.index);else for(let c=this.index,l=Math.min(this.top.children.length,c+5);c<l;c++){let d=this.top.children[c];if(d.matchesNode(e,n,r)&&!this.preMatch.matched.has(d)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,r,o,i){let s=this.top.children[o];return s.dirty==Wn&&s.dom==s.contentDOM&&(s.dirty=wo),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 l=this.top.children[c];if(l instanceof jr){let d=this.preMatch.matched.get(l);if(d!=null&&d!=i)return!1;let u=l.dom,f,h=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Wn&&Cu(n,l.outerDeco));if(!h&&l.update(e,n,r,o))return this.destroyBetween(this.index,c),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!h&&(f=this.recreateWrapper(l,e,n,r,o,s)))return this.top.children[this.index]=f,f.contentDOM&&(f.dirty=wo,f.updateChildren(o,s+1),f.dirty=fn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,o,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content))return null;let c=jr.create(this.top,n,r,o,i,s);if(c.contentDOM){c.children=e.children,e.children=[];for(let l of c.children)l.parent=c}return e.destroy(),c}addNode(e,n,r,o,i){let s=jr.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 Ag(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 ko;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof ol)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Rt||Nt)&&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 Ig(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 eT(t,e){let n=e,r=n.children.length,o=t.childCount,i=new Map,s=[];e:for(;o>0;){let c;for(;;)if(r){let d=n.children[r-1];if(d instanceof ko)n=d,r=d.children.length;else{c=d,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=c.node;if(l){if(l!=t.child(o-1))break;--o,i.set(c,o),s.push(c)}}return{index:o,matched:i,matches:s.reverse()}}function tT(t,e){return t.type.side-e.type.side}function nT(t,e,n,r){let o=e.locals(t),i=0;if(o.length==0){for(let d=0;d<t.childCount;d++){let u=t.child(d);r(u,o,e.forChild(i,u),d),i+=u.nodeSize}return}let s=0,c=[],l=null;for(let d=0;;){let u,f;for(;s<o.length&&o[s].to==i;){let y=o[s++];y.widget&&(u?(f||(f=[u])).push(y):u=y)}if(u)if(f){f.sort(tT);for(let y=0;y<f.length;y++)n(f[y],d,!!l)}else n(u,d,!!l);let h,p;if(l)p=-1,h=l,l=null;else if(d<t.childCount)p=d,h=t.child(d++);else break;for(let y=0;y<c.length;y++)c[y].to<=i&&c.splice(y--,1);for(;s<o.length&&o[s].from<=i&&o[s].to>i;)c.push(o[s++]);let m=i+h.nodeSize;if(h.isText){let y=m;s<o.length&&o[s].from<y&&(y=o[s].from);for(let C=0;C<c.length;C++)c[C].to<y&&(y=c[C].to);y<m&&(l=h.cut(y-i),h=h.cut(0,y-i),m=y,p=-1)}let g=h.isInline&&!h.isLeaf?c.filter(y=>!y.inline):c.slice();r(h,g,e.forChild(i,h),p),i=m}}function rT(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 oT(t,e){for(;;){if(t.nodeType==3)return t;if(t.nodeType==1&&e>0){if(t.childNodes.length>e&&t.childNodes[e].nodeType==3)return t.childNodes[e];t=t.childNodes[e-1],e=Un(t)}else if(t.nodeType==1&&e<t.childNodes.length)t=t.childNodes[e],e=0;else return null}}function iT(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 l=s.text;for(;o<t.childCount;){let d=t.child(o++);if(i+=d.nodeSize,!d.isText)break;l+=d.text}if(i>=n){if(i>=r&&l.slice(r-e.length-c,r-c)==e)return r-e.length;let d=c<r?l.lastIndexOf(e,r-c-1):-1;if(d>=0&&d+e.length+c>=n)return c+d;if(n==r&&l.length>=r+e.length-c&&l.slice(r-c,r-c+e.length)==e)return r}}return-1}function Eu(t,e,n,r,o){let i=[];for(let s=0,c=0;s<t.length;s++){let l=t[s],d=c,u=c+=l.size;d>=n||u<=e?i.push(l):(d<e&&i.push(l.slice(0,e-d,r)),o&&(i.push(o),o=void 0),u>n&&i.push(l.slice(n-d,l.size,r)))}return i}function Su(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),l,d;if(rl(n)){for(l=c;o&&!o.node;)o=o.parent;let u=o.node;if(o&&u.isAtom&&De.isSelectable(u)&&o.parent&&!(u.isInline&&xA(n.focusNode,n.focusOffset,o.dom))){let f=o.posBefore;d=new De(s==f?c:r.resolve(f))}}else{let u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null;l=r.resolve(u)}if(!d){let u=e=="pointer"||t.state.selection.head<c.pos&&!i?1:-1;d=wu(t,l,c,u)}return d}function Lg(t){return t.editable?t.hasFocus():Fg(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function hr(t,e=!1){let n=t.state.selection;if($g(t,n),!!Lg(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Nt){let r=t.domSelectionRange(),o=t.domObserver.currentSelection;if(r.anchorNode&&o.anchorNode&&So(r.anchorNode,r.anchorOffset,o.anchorNode,o.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)aT(t);else{let{anchor:r,head:o}=n,i,s;Dg&&!(n instanceof Qe)&&(n.$from.parent.inlineContent||(i=Pg(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Pg(t,n.to))),t.docView.setSelection(r,o,t.root,e),Dg&&(i&&Bg(i),s&&Bg(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&sT(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Dg=Rt||Nt&&MA<63;function Pg(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(Rt&&o&&o.contentEditable=="false")return _u(o);if((!o||o.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(o)return _u(o);if(i)return _u(i)}}function _u(t){return t.contentEditable="true",Rt&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Bg(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function sT(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(()=>{(!Lg(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function aT(t){let e=t.domSelection(),n=document.createRange(),r=t.cursorWrapper.dom,o=r.nodeName=="IMG";o?n.setEnd(r.parentNode,$t(r)+1):n.setEnd(r,0),n.collapse(!1),e.removeAllRanges(),e.addRange(n),!o&&!t.state.selection.visible&&Xt&&Vr<=11&&(r.disabled=!0,r.disabled=!1)}function $g(t,e){if(e instanceof De){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Rg(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Rg(t)}function Rg(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function wu(t,e,n,r){return t.someProp("createSelectionBetween",o=>o(t,e,n))||Qe.between(e,n,r)}function Vg(t){return t.editable&&!t.hasFocus()?!1:Fg(t)}function Fg(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 lT(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return So(e.node,e.offset,n.anchorNode,n.anchorOffset)}function ku(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&&Ge.findFrom(i,e)}function zr(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function jg(t,e,n){let r=t.state.selection;if(r instanceof Qe)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 zr(t,new Qe(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let o=ku(t.state,e);return o&&o instanceof De?zr(t,o):!1}else if(!(un&&n.indexOf("m")>-1)){let o=r.$head,i=o.textOffset?null:e<0?o.nodeBefore:o.nodeAfter,s;if(!i||i.isText)return!1;let c=e<0?o.pos-i.nodeSize:o.pos;return i.isAtom||(s=t.docView.descAt(c))&&!s.contentDOM?De.isSelectable(i)?zr(t,new De(e<0?t.state.doc.resolve(o.pos-i.nodeSize):o)):Ms?zr(t,new Qe(t.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(r instanceof De&&r.node.isInline)return zr(t,new Qe(e>0?r.$to:r.$from));{let o=ku(t.state,e);return o?zr(t,o):!1}}}function il(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Bs(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function pi(t,e){return e<0?cT(t):dT(t)}function cT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o,i,s=!1;for(Ln&&n.nodeType==1&&r<il(n)&&Bs(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let c=n.childNodes[r-1];if(Bs(c,-1))o=n,i=--r;else if(c.nodeType==3)n=c,r=n.nodeValue.length;else break}}else{if(zg(n))break;{let c=n.previousSibling;for(;c&&Bs(c,-1);)o=n.parentNode,i=$t(c),c=c.previousSibling;if(c)n=c,r=il(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?Au(t,n,r):o&&Au(t,o,i)}function dT(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let o=il(n),i,s;for(;;)if(r<o){if(n.nodeType!=1)break;let c=n.childNodes[r];if(Bs(c,1))i=n,s=++r;else break}else{if(zg(n))break;{let c=n.nextSibling;for(;c&&Bs(c,1);)i=c.parentNode,s=$t(c)+1,c=c.nextSibling;if(c)n=c,r=0,o=il(n);else{if(n=n.parentNode,n==t.dom)break;r=o=0}}}i&&Au(t,i,s)}function zg(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function uT(t,e){for(;t&&e==t.childNodes.length&&!hu(t);)e=$t(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 fT(t,e){for(;t&&!e&&!hu(t);)e=$t(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 Au(t,e,n){if(e.nodeType!=3){let i,s;(s=uT(e,n))?(e=s,n=0):(i=fT(e,n))&&(e=i,n=i.nodeValue.length)}let r=t.domSelection();if(rl(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&&hr(t)},50)}function Ug(t,e){let n=t.state.doc.resolve(e);if(!(Nt||LA)&&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 Hg(t,e,n){let r=t.state.selection;if(r instanceof Qe&&!r.empty||n.indexOf("s")>-1||un&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=ku(t.state,e);if(s&&s instanceof De)return zr(t,s)}if(!o.parent.inlineContent){let s=e<0?o:i,c=r instanceof Nn?Ge.near(s,e):Ge.findFrom(s,e);return c?zr(t,c):!1}return!1}function Wg(t,e){if(!(t.state.selection instanceof Qe))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 Kg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function hT(t){if(!Rt||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Kg(t,r,"true"),setTimeout(()=>Kg(t,r,"false"),20)}return!1}function pT(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function mT(t,e){let n=e.keyCode,r=pT(e);if(n==8||un&&n==72&&r=="c")return Wg(t,-1)||pi(t,-1);if(n==46&&!e.shiftKey||un&&n==68&&r=="c")return Wg(t,1)||pi(t,1);if(n==13||n==27)return!0;if(n==37||un&&n==66&&r=="c"){let o=n==37?Ug(t,t.state.selection.from)=="ltr"?-1:1:-1;return jg(t,o,r)||pi(t,o)}else if(n==39||un&&n==70&&r=="c"){let o=n==39?Ug(t,t.state.selection.from)=="ltr"?1:-1:1;return jg(t,o,r)||pi(t,o)}else{if(n==38||un&&n==80&&r=="c")return Hg(t,-1,r)||pi(t,-1);if(n==40||un&&n==78&&r=="c")return hT(t)||Hg(t,1,r)||pi(t,1);if(r==(un?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Yg(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")||jn.fromSchema(t.state.schema),c=t2(),l=c.createElement("div");l.appendChild(s.serializeFragment(r,{document:c}));let d=l.firstChild,u,f=0;for(;d&&d.nodeType==1&&(u=qg[d.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let m=c.createElement(u[p]);for(;l.firstChild;)m.appendChild(l.firstChild);l.appendChild(m),f++}d=l.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${o} ${i}${f?` -${f}`:""} ${JSON.stringify(n)}`);let h=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
|
|
1241
1241
|
|
|
1242
1242
|
`);return{dom:l,text:h}}function Gg(t,e,n,r,o){let i=o.parent.type.spec.code,s,c;if(!n&&!e)return null;let l=e&&(r||i||!n);if(l){if(t.someProp("transformPastedText",h=>{e=h(e,i||r,t)}),i)return e?new we(he.from(t.state.schema.text(e.replace(/\r\n?/g,`
|
|
1243
|
-
`))),0,0):we.empty;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=jn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=s.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=vT(n),Ms&&bT(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||oi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!gT.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=CT(Xg(c,+u[1],+u[2]),u[4]);else if(c=we.maxOpen(yT(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=Xg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t)}),c}const gT=/^(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 yT(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 l=o.findWrapping(c.type),d;if(!l)return s=null;if(d=s.length&&i.length&&Zg(l,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Jg(s[s.length-1],i.length));let u=Qg(c,l);s.push(u),o=o.matchType(u.type),i=l}}),s)return he.from(s)}return t}function Qg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,he.from(t));return t}function Zg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Zg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(he.from(Qg(n,t,o+1))))}}function Jg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Jg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(he.empty,!0);return t.copy(n.append(r))}function Tu(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=Tu(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(he.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Xg(t,e,n){return e<t.openStart&&(t=new we(Tu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new we(Tu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const qg={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 e2=null;function t2(){return e2||(e2=document.implementation.createHTMLDocument("title"))}function vT(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=t2().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&qg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function bT(t){let e=t.querySelectorAll(Ot?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function CT(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 l=n.nodes[r[c]];if(!l||l.hasRequiredAttrs())break;o=he.from(l.create(r[c+1],o)),i++,s++}return new we(o,i,s)}const Vt={},Ft={},ET={touchstart:!0,touchmove:!0};class ST{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function _T(t){for(let e in Vt){let n=Vt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{kT(t,r)&&!xu(t,r)&&(t.editable||!(r.type in Ft))&&n(t,r)},ET[e]?{passive:!0}:void 0)}Rt&&t.dom.addEventListener("input",()=>null),Iu(t)}function Ur(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function wT(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 Iu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>xu(t,r))})}function xu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function kT(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 AT(t,e){!xu(t,e)&&Vt[e.type]&&(t.editable||!(e.type in Ft))&&Vt[e.type](t,e)}Ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!r2(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Dn&&Ot&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),fi&&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,_o(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||mT(t,n)?n.preventDefault():Ur(t,"key")},Ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Ft.keypress=(t,e)=>{let n=e;if(r2(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||un&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Qe)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function sl(t){return{left:t.clientX,top:t.clientY}}function TT(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ou(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 mi(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function IT(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&De.isSelectable(r)?(mi(t,new De(n),"pointer"),!0):!1}function xT(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof De&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(De.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(mi(t,De.create(t.state.doc,o),"pointer"),!0):!1}function OT(t,e,n,r,o){return Ou(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?xT(t,n):IT(t,n))}function NT(t,e,n,r){return Ou(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function MT(t,e,n,r){return Ou(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||LT(t,n,r)}function LT(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(mi(t,Qe.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)mi(t,Qe.create(r,c+1,c+1+s.content.size),"pointer");else if(De.isSelectable(s))mi(t,De.create(r,c),"pointer");else continue;return!0}}function Nu(t){return al(t)}const n2=un?"metaKey":"ctrlKey";Vt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Nu(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&TT(n,t.input.lastClick)&&!n[n2]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(sl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new DT(t,s,n,!!r)):(i=="doubleClick"?NT:MT)(t,s.pos,s.inside,n)?n.preventDefault():Ur(t,"pointer"))};class DT{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[n2],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,l=c?e.docView.nearestDesc(c,!0):null;this.target=l?l.dom:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof De&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ln&&!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)),Ur(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(()=>hr(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(sl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Ur(this.view,"pointer"):OT(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Rt&&this.mightDrag&&!this.mightDrag.node.isAtom||Ot&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(mi(this.view,Ge.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Ur(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ur(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(),Nu(t),Ur(t,"pointer")},Vt.touchmove=t=>{t.input.lastTouch=Date.now(),Ur(t,"pointer")},Vt.contextmenu=t=>Nu(t);function r2(t,e){return t.composing?!0:Rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const PT=Dn?5e3:-1;Ft.compositionstart=Ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),al(t,!0),t.markCursor=null;else if(al(t),Ln&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}o2(t,PT)},Ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,o2(t,20))};function o2(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>al(t),e))}function i2(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=BT());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function BT(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function al(t,e=!1){if(!(Dn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),i2(t),e||t.docView&&t.docView.dirty){let n=Su(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function $T(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 $s=Xt&&Vr<15||fi&&DA<604;Vt.copy=Ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=$s?null:n.clipboardData,s=r.content(),{dom:c,text:l}=Yg(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",l)):$T(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function RT(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function VT(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?Rs(t,r.value,null,o,e):Rs(t,r.textContent,r.innerHTML,o,e)},50)}function Rs(t,e,n,r,o){let i=Gg(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,o,i||we.empty)))return!0;if(!i)return!1;let s=RT(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 s2(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," "):""}Ft.paste=(t,e)=>{let n=e;if(t.composing&&!Dn)return;let r=$s?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Rs(t,s2(r),r.getData("text/html"),o,n)?n.preventDefault():VT(t,n)};class a2{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const l2=un?"altKey":"ctrlKey";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(sl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof De?o.to-1:o.to))){if(r&&r.mightDrag)s=De.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&(s=De.create(t.state.doc,u.posBefore))}}let c=(s||t.state.selection).content(),{dom:l,text:d}=Yg(t,c);n.dataTransfer.clearData(),n.dataTransfer.setData($s?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",$s||n.dataTransfer.setData("text/plain",d),t.dragging=new a2(c,!n[l2],s)},Vt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Ft.dragover=Ft.dragenter=(t,e)=>e.preventDefault(),Ft.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(sl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Gg(t,s2(n.dataTransfer),$s?null:n.dataTransfer.getData("text/html"),!1,i);let c=!!(r&&!n[l2]);if(t.someProp("handleDrop",m=>m(t,n,s||we.empty,c))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?yA(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let d=t.state.tr;if(c){let{node:m}=r;m?m.replace(d):d.deleteSelection()}let u=d.mapping.map(l),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=d.doc;if(f?d.replaceRangeWith(u,u,s.content.firstChild):d.replaceRange(u,u,s),d.doc.eq(h))return;let p=d.doc.resolve(u);if(f&&De.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))d.setSelection(new De(p));else{let m=d.mapping.map(l);d.mapping.maps[d.mapping.maps.length-1].forEach((g,y,C,E)=>m=E),d.setSelection(wu(t,p,d.doc.resolve(m)))}t.focus(),t.dispatch(d.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())&&hr(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(Ot&&Dn&&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,_o(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 Ft)Vt[t]=Ft[t];function Vs(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 ll{constructor(e,n){this.toDOM=e,this.spec=n||To,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 hn(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ll&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Hr{constructor(e,n){this.attrs=e,this.spec=n||To}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 hn(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Hr&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)}static is(e){return e.type instanceof Hr}destroy(){}}class Mu{constructor(e,n){this.attrs=e,this.spec=n||To}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 hn(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 Mu&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)}destroy(){}}class hn{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new hn(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 hn(e,e,new ll(n,r))}static inline(e,n,r,o){return new hn(e,n,new Hr(r,o))}static node(e,n,r,o){return new hn(e,n,new Mu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Hr}get widget(){return this.type instanceof ll}}const gi=[],To={};class gt{constructor(e,n){this.local=e.length?e:gi,this.children=n.length?n:gi}static create(e,n){return n.length?cl(n,e,0,To):Nt}find(e,n,r){let o=[];return this.findInner(e??0,n??1e9,o,0,r),o}findInner(e,n,r,o,i){for(let s=0;s<this.local.length;s++){let c=this.local[s];c.from<=n&&c.to>=e&&(!i||i(c.spec))&&r.push(c.copy(c.from+o,c.to+o))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let c=this.children[s]+1;this.children[s+2].findInner(e-c,n-c,r,o+c,i)}}map(e,n,r){return this==Nt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||To)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let l=this.local[c].map(e,r,o);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?FT(this.children,s||[],e,n,r,o,i):s?new gt(s.sort(Io),gi):Nt}add(e,n){return n.length?this==Nt?gt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,l)=>{let d=l+r,u;if(u=d2(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<l;)i+=3;o[i]==l?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,l,l+c.nodeSize,cl(u,c,d+1,To)),i+=3}});let s=c2(i?u2(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new gt(s.length?this.local.concat(s).sort(Io):this.local,o||this.children)}remove(e){return e.length==0||this==Nt?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,o=this.local;for(let i=0;i<r.length;i+=3){let s,c=r[i]+n,l=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<l&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Nt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new gt(o,r):Nt}forChild(e,n){if(this==Nt)return this;if(n.isLeaf)return gt.empty;let r,o;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(r=this.children[c+2]);break}let i=e+1,s=i+n.content.size;for(let c=0;c<this.local.length;c++){let l=this.local[c];if(l.from<s&&l.to>i&&l.type instanceof Hr){let d=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;d<u&&(o||(o=[])).push(l.copy(d,u))}}if(o){let c=new gt(o.sort(Io),gi);return r?new Wr([c,r]):c}return r||Nt}eq(e){if(this==e)return!0;if(!(e instanceof gt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return Lu(this.localsInner(e))}localsInner(e){if(this==Nt)return gi;if(e.inlineContent||!this.local.some(Hr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Hr||n.push(this.local[r]);return n}}gt.empty=new gt([],[]),gt.removeOverlap=Lu;const Nt=gt.empty;class Wr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,To));return Wr.from(r)}forChild(e,n){if(n.isLeaf)return gt.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Nt&&(i instanceof Wr?r=r.concat(i.members):r.push(i))}return Wr.from(r)}eq(e){if(!(e instanceof Wr)||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?Lu(r?n:n.sort(Io)):gi}static from(e){switch(e.length){case 0:return Nt;case 1:return e[0];default:return new Wr(e.every(n=>n instanceof gt)?e:e.reduce((n,r)=>n.concat(r instanceof gt?r:r.members),[]))}}}function FT(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,g)=>{let y=g-m-(p-h);for(let C=0;C<c.length;C+=3){let E=c[C+1];if(E<0||h>E+u-f)continue;let b=c[C]+u-f;p>=b?c[C+1]=h<=b?-2:-1:m>=o&&y&&(c[C]+=y,c[C+1]+=y)}f+=y}),u=n.maps[d].map(u,-1)}let l=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){l=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){l=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),y=r.maybeChild(m);if(y&&g==f&&g+y.nodeSize==p){let C=c[d+2].mapInner(n,y,u+1,t[d]+i+1,s);C!=Nt?(c[d]=f,c[d+1]=p,c[d+2]=C):(c[d+1]=-2,l=!0)}else l=!0}if(l){let d=jT(c,t,e,n,o,i,s),u=cl(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new gt(e.sort(Io),c)}function c2(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 hn(o.from+e,o.to+e,o.type))}return n}function jT(t,e,n,r,o,i,s){function c(l,d){for(let u=0;u<l.local.length;u++){let f=l.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)c(l.children[u+2],l.children[u]+d+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&c(t[l+2],e[l]+i+1);return n}function d2(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 u2(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function cl(t,e,n,r){let o=[],i=!1;e.forEach((c,l)=>{let d=d2(t,c,l+n);if(d){i=!0;let u=cl(d,c,n+l+1,r);u!=Nt&&o.push(l,l+c.nodeSize,u)}});let s=c2(i?u2(t):t,-n).sort(Io);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||(r.onRemove&&r.onRemove(s[c].spec),s.splice(c--,1));return s.length||o.length?new gt(s,o):Nt}function Io(t,e){return t.from-e.from||t.to-e.to}function Lu(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),f2(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),f2(e,o,r.copy(i.from,r.to)));break}}}return e}function f2(t,e,n){for(;e<t.length&&Io(n,t[e])>0;)e++;t.splice(e,0,n)}function Du(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Nt&&e.push(r)}),t.cursorWrapper&&e.push(gt.create(t.state.doc,[t.cursorWrapper.deco])),Wr.from(e)}const zT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},UT=Xt&&Vr<=11;class HT{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 WT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new HT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Xt&&Vr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),UT&&(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,zT)),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(Vg(this.view)){if(this.suppressingSelectionUpdates)return hr(this.view);if(Xt&&Vr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&So(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=Ns(i))n.add(i);for(let i=e.anchorNode;i;i=Ns(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)&&Vg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],l);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(Ln&&l.length>1){let u=l.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&rl(r)&&(d=Su(e))&&d.eq(Ge.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),KT(e)),this.handleDOMChange(i,s,c,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||hr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)n.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Xt&&Vr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?$t(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?$t(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,l,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let h2=new WeakMap,p2=!1;function KT(t){if(!h2.has(t)&&(h2.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ln,p2)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."),p2=!0}}function YT(t){let e;function n(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,c=t.domAtPos(t.state.selection.anchor);return So(c.node,c.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function GT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),l=t.domSelectionRange(),d,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:l.anchorOffset}],rl(l)||d.push({node:l.focusNode,offset:l.focusOffset})),Ot&&t.input.lastKeyCode===8)for(let y=i;y>o;y--){let C=r.childNodes[y-1],E=C.pmViewDesc;if(C.nodeName=="BR"&&!E){i=y;break}if(!E||E.size)break}let f=t.state.doc,h=t.someProp("domParser")||oi.fromSchema(t.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:QT,context:p});if(d&&d[0].pos!=null){let y=d[0].pos,C=d[1]&&d[1].pos;C==null&&(C=y),m={anchor:y+s,head:C+s}}return{doc:g,sel:m,from:s,to:c}}function QT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Rt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const ZT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function JT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,z=Su(t,N);if(z&&!t.state.selection.eq(z)){if(Ot&&Dn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",P=>P(t,_o(13,"Enter"))))return;let V=t.state.tr.setSelection(z);N=="pointer"?V.setMeta("pointer",!0):N=="key"&&V.scrollIntoView(),i&&V.setMeta("composition",i),t.dispatch(V)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let l=t.state.selection,d=GT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=eI(f.content,d.doc.content,d.from,h,p);if((fi&&t.input.lastIOSEnter>Date.now()-225||Dn)&&o.some(N=>N.nodeType==1&&!ZT.test(N.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",N=>N(t,_o(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Qe&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(d.sel){let N=m2(t,t.state.doc,d.sel);if(N&&!N.eq(t.state.selection)){let z=t.state.tr.setSelection(N);i&&z.setMeta("composition",i),t.dispatch(z)}}return}if(Ot&&t.cursorWrapper&&d.sel&&d.sel.anchor==t.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let N=m.endB-m.start;d.sel={anchor:d.sel.anchor+N,head:d.sel.anchor+N}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Qe&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Xt&&Vr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)==" "&&(m.start--,m.endA--,m.endB--);let g=d.doc.resolveNoCache(m.start-d.from),y=d.doc.resolveNoCache(m.endB-d.from),C=u.resolve(m.start),E=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,b;if((fi&&t.input.lastIOSEnter>Date.now()-225&&(!E||o.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!E&&g.pos<d.doc.content.size&&!g.sameParent(y)&&(b=Ge.findFrom(d.doc.resolve(g.pos+1),1,!0))&&b.head==y.pos)&&t.someProp("handleKeyDown",N=>N(t,_o(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&qT(u,m.start,m.endA,g,y)&&t.someProp("handleKeyDown",N=>N(t,_o(8,"Backspace")))){Dn&&Ot&&t.domObserver.suppressSelectionUpdates();return}Ot&&Dn&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Dn&&!E&&g.start()!=y.start()&&y.parentOffset==0&&g.depth==y.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,y=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,_o(13,"Enter"))})},20));let v=m.start,k=m.endA,_,O,L;if(E){if(g.pos==y.pos)Xt&&Vr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>hr(t),20)),_=t.state.tr.delete(v,k),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(L=XT(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))_=t.state.tr,L.type=="add"?_.addMark(v,k,L.mark):_.removeMark(v,k,L.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let N=g.parent.textBetween(g.parentOffset,y.parentOffset);if(t.someProp("handleTextInput",z=>z(t,v,k,N)))return;_=t.state.tr.insertText(N,v,k)}}if(_||(_=t.state.tr.replace(v,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let N=m2(t,_.doc,d.sel);N&&!(Ot&&Dn&&t.composing&&N.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==v||N.head==_.mapping.map(k)-1)||Xt&&N.empty&&N.head==v)&&_.setSelection(N)}O&&_.ensureMarks(O),i&&_.setMeta("composition",i),t.dispatch(_.scrollIntoView())}function m2(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:wu(t,e.resolve(n.anchor),e.resolve(n.head))}function XT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,l;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",l=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",l=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(l(e.child(u)));if(he.from(d).eq(t))return{mark:c,type:s}}function qT(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||Pu(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Pu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Pu(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Pu(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 eI(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 l=Math.max(0,i-Math.min(s,c));r-=s+l-i}if(s<i&&t.size<e.size){let l=r<=i&&r>=s?i-r:0;i-=l,i&&i<e.size&&g2(e.textBetween(i-1,i+1))&&(i+=l?1:-1),c=i+(c-s),s=i}else if(c<i){let l=r<=i&&r>=c?i-r:0;i-=l,i&&i<t.size&&g2(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function g2(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 tI{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 ST,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(E2),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=b2(this),v2(this),this.nodeViews=C2(this),this.docView=Tg(this.state.doc,y2(this),Du(this),this.dom,this),this.domObserver=new WT(this,(r,o,i,s)=>JT(this,r,o,i,s)),this.domObserver.start(),_T(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&&Iu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(E2),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&&(i2(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=C2(this);rI(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&Iu(this),this.editable=b2(this),v2(this);let l=Du(this),d=y2(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,l);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&$A(this);if(s){this.domObserver.stop();let p=f&&(Xt||Ot)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&nI(o.selection,e.selection);if(f){let m=Ot?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,d,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Tg(e.doc,d,l,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&lT(this))?hr(this,p):($g(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&RA(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof De){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&pg(this,n.getBoundingClientRect(),e)}else pg(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 a2(e.slice,e.move,o<0?void 0:De.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Xt){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&&VA(this.dom),hr(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 HA(this,e)}coordsAtPos(e,n=1){return Cg(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 QA(this,n||this.state,e)}pasteHTML(e,n){return Rs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Rs(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(wT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Du(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return AT(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Rt&&this.root.nodeType===11&&OA(this.dom.ownerDocument)==this.dom?YT(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function y2(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"),[hn.node(0,t.state.doc.content.size,e)]}function v2(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:hn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function b2(t){return!t.someProp("editable",e=>e(t.state)===!1)}function nI(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 C2(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 rI(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 E2(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Kr={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:"'"},dl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},oI=typeof navigator<"u"&&/Mac/.test(navigator.platform),iI=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),kt=0;kt<10;kt++)Kr[48+kt]=Kr[96+kt]=String(kt);for(var kt=1;kt<=24;kt++)Kr[kt+111]="F"+kt;for(var kt=65;kt<=90;kt++)Kr[kt]=String.fromCharCode(kt+32),dl[kt]=String.fromCharCode(kt);for(var Bu in Kr)dl.hasOwnProperty(Bu)||(dl[Bu]=Kr[Bu]);function sI(t){var e=oI&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||iI&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?dl:Kr)[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 aI=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function lI(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 l=e[c];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))aI?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function cI(t){let e=Object.create(null);for(let n in t)e[lI(n)]=t[n];return e}function $u(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 dI(t){return new Jt({props:{handleKeyDown:uI(t)}})}function uI(t){let e=cI(t);return function(n,r){let o=sI(r),i,s=e[$u(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[$u(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Kr[r.keyCode])&&i!=o){let c=e[$u(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}const fI=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function hI(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const pI=(t,e,n)=>{let r=hI(t,n);if(!r)return!1;let o=S2(r);if(!o){let s=r.blockRange(),c=s&&si(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&k2(t,o,e))return!0;if(r.parent.content.size==0&&(yi(i,"end")||De.isSelectable(i))){let s=su(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(yi(i,"end")?Ge.findFrom(c.doc.resolve(c.mapping.map(o.pos,-1)),-1):De.create(c.doc,o.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function yi(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 mI=(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=S2(r)}let s=i&&i.nodeBefore;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function S2(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 gI(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const yI=(t,e,n)=>{let r=gI(t,n);if(!r)return!1;let o=_2(r);if(!o)return!1;let i=o.nodeAfter;if(k2(t,o,e))return!0;if(r.parent.content.size==0&&(yi(i,"start")||De.isSelectable(i))){let s=su(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(yi(i,"start")?Ge.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):De.create(c.doc,c.mapping.map(o.pos))),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},vI=(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=_2(r)}let s=i&&i.nodeAfter;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos)).scrollIntoView()),!0)};function _2(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 bI=(t,e)=>{let n=t.selection,r=n instanceof De,o;if(r){if(n.node.isTextblock||!$r(t.doc,n.from))return!1;o=n.from}else if(o=el(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(De.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},CI=(t,e)=>{let n=t.selection,r;if(n instanceof De){if(n.node.isTextblock||!$r(t.doc,n.to))return!1;r=n.to}else if(r=el(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},EI=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&si(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},SI=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
|
|
1244
|
-
`).scrollIntoView()),!0)};function w2(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 _I=(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=w2(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let c=n.after(),l=t.tr.replaceWith(c,c,s.createAndFill());l.setSelection(Ge.near(l.doc.resolve(c),1)),e(l.scrollIntoView())}return!0},wI=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Nn||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=w2(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(Qe.create(c.doc,s+1)),e(c.scrollIntoView())}return!0},kI=(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(ai(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&si(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},AI=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(De.create(t.doc,o))),!0)};function TI(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||$r(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function k2(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(TI(t,e,n))return!0;let c=e.parent.canReplace(e.index(),e.index()+1);if(c&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,h=he.empty;for(let g=i.length-1;g>=0;g--)h=he.from(i[g].create(null,h));h=he.from(r.copy(h));let p=t.tr.step(new bt(e.pos-1,f,e.pos,f,new we(h,1,0),i.length,!0)),m=f+2*i.length;$r(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let l=Ge.findFrom(e,1),d=l&&l.$from.blockRange(l.$to),u=d&&si(d);if(u!=null&&u>=e.depth)return n&&n(t.tr.lift(d,u).scrollIntoView()),!0;if(c&&yi(o,"start",!0)&&yi(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(n){let g=he.empty;for(let C=h.length-1;C>=0;C--)g=he.from(h[C].copy(g));let y=t.tr.step(new bt(e.pos-h.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new we(g,h.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function A2(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(Qe.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const II=A2(-1),xI=A2(1);function OI(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=s&&iu(s,t,e);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function T2(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,(l,d)=>{if(o)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)o=!0;else{let u=n.doc.resolve(d),f=u.index();o=u.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:c},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(c,l,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function NI(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=!1,l=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new Ya(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ya(o,n.doc.resolve(i.end(s.depth)),s.depth)),c=!0}let d=iu(l,t,e,s);return d?(r&&r(MI(n.tr,s,d,c,t).scrollIntoView()),!0):!1}}function MI(t,e,n,r,o){let i=he.empty;for(let u=n.length-1;u>=0;u--)i=he.from(n[u].type.create(n[u].attrs,i));t.step(new bt(e.start-(r?2:0),e.end,e.start,e.end,new we(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==o&&(s=u+1);let c=n.length-s,l=e.start+n.length-(r?2:0),d=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&ai(t.doc,l,c)&&(t.split(l,c),l+=2*c),l+=d.child(u).nodeSize;return t}function LI(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?DI(e,n,t,i):PI(e,n,i):!0:!1}}function DI(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new bt(i-1,s,i,s,new we(he.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Ya(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const c=si(r);if(c==null)return!1;o.lift(r,c);let l=o.mapping.map(i,-1)-1;return $r(o.doc,l)&&o.join(l),e(o.scrollIntoView()),!0}function PI(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,l=n.endIndex==o.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(c?0:1),u+1,s.content.append(l?he.empty:he.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new bt(f-(c?1:0),h+(l?1:0),f+1,h-1,new we((c?he.empty:he.from(o.copy(he.empty))).append(l?he.empty:he.from(o.copy(he.empty))),c?0:1,l?0:1),c?0:1)),e(r.scrollIntoView()),!0}function BI(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,d=>d.childCount>0&&d.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let c=i.parent,l=c.child(s-1);if(l.type!=t)return!1;if(n){let d=l.lastChild&&l.lastChild.type==c.type,u=he.from(d?t.create():null),f=new we(he.from(t.create(null,he.from(c.type.create(null,u)))),d?3:1,0),h=i.start,p=i.end;n(e.tr.step(new bt(h-(d?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function ul(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class fl{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([c,l])=>[c,(...u)=>{const f=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c=[],l=!!e,d=e||i.tr,u=()=>(!l&&n&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(d),c.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...g)=>{const y=this.buildProps(d,n),C=p(...g)(y);return c.push(C),f}])),run:u};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([l,d])=>[l,(...u)=>d(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c={tr:e,editor:o,view:s,state:ul({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,d])=>[l,(...u)=>d(...u)(c)]))}};return c}}class $I{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ie(t,e,n){return t.config[e]===void 0&&t.parent?Ie(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Ie(t.parent,e,n):null}):t.config[e]}function hl(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 I2(t){const e=[],{nodeExtensions:n,markExtensions:r}=hl(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},l=Ie(s,"addGlobalAttributes",c);if(!l)return;l().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},l=Ie(s,"addAttributes",c);if(!l)return;const d=l();Object.entries(d).forEach(([u,f])=>{const h={...i,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Ct(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function jt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?i.split(" "):[],l=r[o]?r[o].split(" "):[],d=c.filter(u=>!l.includes(u));r[o]=[...l,...d].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function Ru(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>jt(n,r),{})}function x2(t){return typeof t=="function"}function He(t,e=void 0,...n){return x2(t)?e?t.bind(e)(...n):t(...n):t}function RI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function VI(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function O2(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):VI(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function N2(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&RI(n)?!1:n!=null))}function FI(t,e){var n;const r=I2(t),{nodeExtensions:o,markExtensions:i}=hl(t),s=(n=o.find(d=>Ie(d,"topNode")))===null||n===void 0?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(C=>C.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((C,E)=>{const b=Ie(E,"extendNodeSchema",f);return{...C,...b?b(d):{}}},{}),p=N2({...h,content:He(Ie(d,"content",f)),marks:He(Ie(d,"marks",f)),group:He(Ie(d,"group",f)),inline:He(Ie(d,"inline",f)),atom:He(Ie(d,"atom",f)),selectable:He(Ie(d,"selectable",f)),draggable:He(Ie(d,"draggable",f)),code:He(Ie(d,"code",f)),defining:He(Ie(d,"defining",f)),isolating:He(Ie(d,"isolating",f)),attrs:Object.fromEntries(u.map(C=>{var E;return[C.name,{default:(E=C==null?void 0:C.attribute)===null||E===void 0?void 0:E.default}]}))}),m=He(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(C=>O2(C,u)));const g=Ie(d,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:Ru(C,u)}));const y=Ie(d,"renderText",f);return y&&(p.toText=y),[d.name,p]})),l=Object.fromEntries(i.map(d=>{const u=r.filter(y=>y.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((y,C)=>{const E=Ie(C,"extendMarkSchema",f);return{...y,...E?E(d):{}}},{}),p=N2({...h,inclusive:He(Ie(d,"inclusive",f)),excludes:He(Ie(d,"excludes",f)),group:He(Ie(d,"group",f)),spanning:He(Ie(d,"spanning",f)),code:He(Ie(d,"code",f)),attrs:Object.fromEntries(u.map(y=>{var C;return[y.name,{default:(C=y==null?void 0:y.attribute)===null||C===void 0?void 0:C.default}]}))}),m=He(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(y=>O2(y,u)));const g=Ie(d,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:Ru(y,u)})),[d.name,p]}));return new Gk({topNode:s,nodes:c,marks:l})}function Vu(t,e){return e.nodes[t]||e.marks[t]||null}function M2(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const jI=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var l,d;const u=((d=(l=o.type.spec).toText)===null||d===void 0?void 0:d.call(l,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=u.slice(0,Math.max(0,r-i))}),n};function Fu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class L2{constructor(e){this.find=e.find,this.handler=e.handler}}const zI=(t,e)=>{if(Fu(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 ju(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:l}=n;if(l.composing)return!1;const d=l.state.doc.resolve(r);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=jI(d)+i;return s.forEach(h=>{if(u)return;const p=zI(f,h.find);if(!p)return;const m=l.state.tr,g=ul({state:l.state,transaction:m}),y={from:r-(p[0].length-i.length),to:o},{commands:C,chain:E,can:b}=new fl({editor:n,state:g});h.handler({state:g,range:y,match:p,commands:C,chain:E,can:b})===null||!m.steps.length||(m.setMeta(c,{transform:m,from:r,to:o,text:i}),l.dispatch(m),u=!0)}),u}function UI(t){const{editor:e,rules:n}=t,r=new Jt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,c){return ju({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&ju({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?ju({editor:e,from:s.pos,to:s.pos,text:`
|
|
1245
|
-
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function HI(t){return typeof t=="number"}class WI{constructor(e){this.find=e.find,this.handler=e.handler}}const KI=(t,e)=>{if(Fu(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function YI(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:l,chain:d,can:u}=new fl({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const g=Math.max(r,m),y=Math.min(o,m+p.content.size),C=p.textBetween(g-m,y-m,void 0,"");KI(C,i.find).forEach(b=>{if(b.index===void 0)return;const v=g+b.index+1,k=v+b[0].length,_={from:n.tr.mapping.map(v),to:n.tr.mapping.map(k)},O=i.handler({state:n,range:_,match:b,commands:l,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(O)})}),f.every(p=>p!==null)}function GI(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),c=new DragEvent("drop");return n.map(d=>new Jt({view(u){const f=h=>{var p;r=!((p=u.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(u,f)=>(i=r===u.dom.parentElement,c=f,!1),paste:(u,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,f,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i;if(!m&&!g)return;const y=f.doc.content.findDiffStart(h.doc.content),C=f.doc.content.findDiffEnd(h.doc.content);if(!HI(y)||!C||y===C.b)return;const E=h.tr,b=ul({state:h,transaction:E});if(!(!YI({editor:e,state:b,from:Math.max(y-1,0),to:C.b-1,rule:d,pasteEvent:s,dropEvent:c})||!E.steps.length))return c=new DragEvent("drop"),s=new ClipboardEvent("paste"),E}}))}function QI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class vi{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=vi.resolve(e),this.schema=FI(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Vu(r.name,this.schema)};r.type==="mark"&&(!((o=He(Ie(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=Ie(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const c=Ie(r,"onCreate",i);c&&this.editor.on("create",c);const l=Ie(r,"onUpdate",i);l&&this.editor.on("update",l);const d=Ie(r,"onSelectionUpdate",i);d&&this.editor.on("selectionUpdate",d);const u=Ie(r,"onTransaction",i);u&&this.editor.on("transaction",u);const f=Ie(r,"onFocus",i);f&&this.editor.on("focus",f);const h=Ie(r,"onBlur",i);h&&this.editor.on("blur",h);const p=Ie(r,"onDestroy",i);p&&this.editor.on("destroy",p)})}static resolve(e){const n=vi.sort(vi.flatten(e)),r=QI(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Ie(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=Ie(r,"priority")||100,s=Ie(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Vu(n.name,this.schema)},o=Ie(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=vi.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const c={name:s.name,options:s.options,storage:s.storage,editor:e,type:Vu(s.name,this.schema)},l=[],d=Ie(s,"addKeyboardShortcuts",c);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>Kn.handleExit({editor:e,mark:s})),d){const g=Object.fromEntries(Object.entries(d()).map(([y,C])=>[y,()=>C({editor:e})]));u={...u,...g}}const f=dI(u);l.push(f);const h=Ie(s,"addInputRules",c);M2(s,e.options.enableInputRules)&&h&&r.push(...h());const p=Ie(s,"addPasteRules",c);M2(s,e.options.enablePasteRules)&&p&&o.push(...p());const m=Ie(s,"addProseMirrorPlugins",c);if(m){const g=m();l.push(...g)}return l}).flat();return[UI({editor:e,rules:r}),...GI({editor:e,rules:o}),...i]}get attributes(){return I2(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=hl(this.extensions);return Object.fromEntries(n.filter(r=>!!Ie(r,"addNodeView")).map(r=>{const o=this.attributes.filter(l=>l.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:
|
|
1243
|
+
`))),0,0):we.empty;let f=t.someProp("clipboardTextParser",h=>h(e,o,r,t));if(f)c=f;else{let h=o.marks(),{schema:p}=t.state,m=jn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let y=s.appendChild(document.createElement("p"));g&&y.appendChild(m.serializeNode(p.text(g,h)))})}}else t.someProp("transformPastedHTML",f=>{n=f(n,t)}),s=vT(n),Ms&&bT(s);let d=s&&s.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let f=+u[3];f>0;f--){let h=s.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;s=h}if(c||(c=(t.someProp("clipboardParser")||t.someProp("domParser")||oi.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!gT.test(h.parentNode.nodeName)?{ignore:!0}:null}})),u)c=CT(Xg(c,+u[1],+u[2]),u[4]);else if(c=we.maxOpen(yT(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=Xg(c,f,h)}return t.someProp("transformPasted",f=>{c=f(c,t)}),c}const gT=/^(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 yT(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 l=o.findWrapping(c.type),d;if(!l)return s=null;if(d=s.length&&i.length&&Zg(l,i,c,s[s.length-1],0))s[s.length-1]=d;else{s.length&&(s[s.length-1]=Jg(s[s.length-1],i.length));let u=Qg(c,l);s.push(u),o=o.matchType(u.type),i=l}}),s)return he.from(s)}return t}function Qg(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,he.from(t));return t}function Zg(t,e,n,r,o){if(o<t.length&&o<e.length&&t[o]==e[o]){let i=Zg(t,e,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==t.length-1?n.type:t[o+1]))return r.copy(r.content.append(he.from(Qg(n,t,o+1))))}}function Jg(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Jg(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(he.empty,!0);return t.copy(n.append(r))}function Tu(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=Tu(c,e,n,r,o+1,i)),o>=n&&(c=e<0?s.contentMatchAt(0).fillBefore(c,i<=o).append(c):c.append(s.contentMatchAt(s.childCount).fillBefore(he.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(c))}function Xg(t,e,n){return e<t.openStart&&(t=new we(Tu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new we(Tu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const qg={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 e2=null;function t2(){return e2||(e2=document.implementation.createHTMLDocument("title"))}function vT(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=t2().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),o;if((o=r&&qg[r[1].toLowerCase()])&&(t=o.map(i=>"<"+i+">").join("")+t+o.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=t,o)for(let i=0;i<o.length;i++)n=n.querySelector(o[i])||n;return n}function bT(t){let e=t.querySelectorAll(Nt?"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 CT(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 l=n.nodes[r[c]];if(!l||l.hasRequiredAttrs())break;o=he.from(l.create(r[c+1],o)),i++,s++}return new we(o,i,s)}const Vt={},Ft={},ET={touchstart:!0,touchmove:!0};class ST{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function _T(t){for(let e in Vt){let n=Vt[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{kT(t,r)&&!xu(t,r)&&(t.editable||!(r.type in Ft))&&n(t,r)},ET[e]?{passive:!0}:void 0)}Rt&&t.dom.addEventListener("input",()=>null),Iu(t)}function Ur(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function wT(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 Iu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>xu(t,r))})}function xu(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function kT(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 AT(t,e){!xu(t,e)&&Vt[e.type]&&(t.editable||!(e.type in Ft))&&Vt[e.type](t,e)}Ft.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!r2(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Dn&&Nt&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),fi&&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,_o(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||mT(t,n)?n.preventDefault():Ur(t,"key")},Ft.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Ft.keypress=(t,e)=>{let n=e;if(r2(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||un&&n.metaKey)return;if(t.someProp("handleKeyPress",o=>o(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof Qe)||!r.$from.sameParent(r.$to)){let o=String.fromCharCode(n.charCode);!/[\r\n]/.test(o)&&!t.someProp("handleTextInput",i=>i(t,r.$from.pos,r.$to.pos,o))&&t.dispatch(t.state.tr.insertText(o).scrollIntoView()),n.preventDefault()}};function sl(t){return{left:t.clientX,top:t.clientY}}function TT(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ou(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 mi(t,e,n){t.focused||t.focus();let r=t.state.tr.setSelection(e);n=="pointer"&&r.setMeta("pointer",!0),t.dispatch(r)}function IT(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&De.isSelectable(r)?(mi(t,new De(n),"pointer"),!0):!1}function xT(t,e){if(e==-1)return!1;let n=t.state.selection,r,o;n instanceof De&&(r=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let c=s>i.depth?i.nodeAfter:i.node(s);if(De.isSelectable(c)){r&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?o=i.before(n.$from.depth):o=i.before(s);break}}return o!=null?(mi(t,De.create(t.state.doc,o),"pointer"),!0):!1}function OT(t,e,n,r,o){return Ou(t,"handleClickOn",e,n,r)||t.someProp("handleClick",i=>i(t,e,r))||(o?xT(t,n):IT(t,n))}function NT(t,e,n,r){return Ou(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",o=>o(t,e,r))}function MT(t,e,n,r){return Ou(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",o=>o(t,e,r))||LT(t,n,r)}function LT(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(mi(t,Qe.create(r,0,r.content.size),"pointer"),!0):!1;let o=r.resolve(e);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i),c=o.before(i);if(s.inlineContent)mi(t,Qe.create(r,c+1,c+1+s.content.size),"pointer");else if(De.isSelectable(s))mi(t,De.create(r,c),"pointer");else continue;return!0}}function Nu(t){return al(t)}const n2=un?"metaKey":"ctrlKey";Vt.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=Nu(t),o=Date.now(),i="singleClick";o-t.input.lastClick.time<500&&TT(n,t.input.lastClick)&&!n[n2]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(sl(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new DT(t,s,n,!!r)):(i=="doubleClick"?NT:MT)(t,s.pos,s.inside,n)?n.preventDefault():Ur(t,"pointer"))};class DT{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[n2],this.allowDefault=r.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const c=o?null:r.target,l=c?e.docView.nearestDesc(c,!0):null;this.target=l?l.dom:null;let{selection:d}=e.state;(r.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof De&&d.from<=s&&d.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ln&&!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)),Ur(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(()=>hr(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(sl(e))),this.updateAllowDefault(e),this.allowDefault||!n?Ur(this.view,"pointer"):OT(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Rt&&this.mightDrag&&!this.mightDrag.node.isAtom||Nt&&!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)?(mi(this.view,Ge.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):Ur(this.view,"pointer")}move(e){this.updateAllowDefault(e),Ur(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(),Nu(t),Ur(t,"pointer")},Vt.touchmove=t=>{t.input.lastTouch=Date.now(),Ur(t,"pointer")},Vt.contextmenu=t=>Nu(t);function r2(t,e){return t.composing?!0:Rt&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const PT=Dn?5e3:-1;Ft.compositionstart=Ft.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$from;if(e.selection.empty&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),al(t,!0),t.markCursor=null;else if(al(t),Ln&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let o=r.focusNode,i=r.focusOffset;o&&o.nodeType==1&&i!=0;){let s=i<0?o.lastChild:o.childNodes[i-1];if(!s)break;if(s.nodeType==3){t.domSelection().collapse(s,s.nodeValue.length);break}else o=s,i=-1}}t.input.composing=!0}o2(t,PT)},Ft.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,o2(t,20))};function o2(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>al(t),e))}function i2(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=BT());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function BT(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function al(t,e=!1){if(!(Dn&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),i2(t),e||t.docView&&t.docView.dirty){let n=Su(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):t.updateState(t.state),!0}return!1}}function $T(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 $s=Xt&&Vr<15||fi&&DA<604;Vt.copy=Ft.cut=(t,e)=>{let n=e,r=t.state.selection,o=n.type=="cut";if(r.empty)return;let i=$s?null:n.clipboardData,s=r.content(),{dom:c,text:l}=Yg(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",l)):$T(t,c),o&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function RT(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function VT(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?Rs(t,r.value,null,o,e):Rs(t,r.textContent,r.innerHTML,o,e)},50)}function Rs(t,e,n,r,o){let i=Gg(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,o,i||we.empty)))return!0;if(!i)return!1;let s=RT(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 s2(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," "):""}Ft.paste=(t,e)=>{let n=e;if(t.composing&&!Dn)return;let r=$s?null:n.clipboardData,o=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Rs(t,s2(r),r.getData("text/html"),o,n)?n.preventDefault():VT(t,n)};class a2{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const l2=un?"altKey":"ctrlKey";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(sl(n)),s;if(!(i&&i.pos>=o.from&&i.pos<=(o instanceof De?o.to-1:o.to))){if(r&&r.mightDrag)s=De.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let u=t.docView.nearestDesc(n.target,!0);u&&u.node.type.spec.draggable&&u!=t.docView&&(s=De.create(t.state.doc,u.posBefore))}}let c=(s||t.state.selection).content(),{dom:l,text:d}=Yg(t,c);n.dataTransfer.clearData(),n.dataTransfer.setData($s?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",$s||n.dataTransfer.setData("text/plain",d),t.dragging=new a2(c,!n[l2],s)},Vt.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Ft.dragover=Ft.dragenter=(t,e)=>e.preventDefault(),Ft.drop=(t,e)=>{let n=e,r=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let o=t.posAtCoords(sl(n));if(!o)return;let i=t.state.doc.resolve(o.pos),s=r&&r.slice;s?t.someProp("transformPasted",m=>{s=m(s,t)}):s=Gg(t,s2(n.dataTransfer),$s?null:n.dataTransfer.getData("text/html"),!1,i);let c=!!(r&&!n[l2]);if(t.someProp("handleDrop",m=>m(t,n,s||we.empty,c))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?yA(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let d=t.state.tr;if(c){let{node:m}=r;m?m.replace(d):d.deleteSelection()}let u=d.mapping.map(l),f=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,h=d.doc;if(f?d.replaceRangeWith(u,u,s.content.firstChild):d.replaceRange(u,u,s),d.doc.eq(h))return;let p=d.doc.resolve(u);if(f&&De.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))d.setSelection(new De(p));else{let m=d.mapping.map(l);d.mapping.maps[d.mapping.maps.length-1].forEach((g,y,C,E)=>m=E),d.setSelection(wu(t,p,d.doc.resolve(m)))}t.focus(),t.dispatch(d.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())&&hr(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(Nt&&Dn&&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,_o(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 Ft)Vt[t]=Ft[t];function Vs(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 ll{constructor(e,n){this.toDOM=e,this.spec=n||To,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 hn(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ll&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vs(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Hr{constructor(e,n){this.attrs=e,this.spec=n||To}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 hn(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Hr&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)}static is(e){return e.type instanceof Hr}destroy(){}}class Mu{constructor(e,n){this.attrs=e,this.spec=n||To}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 hn(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 Mu&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)}destroy(){}}class hn{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new hn(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 hn(e,e,new ll(n,r))}static inline(e,n,r,o){return new hn(e,n,new Hr(r,o))}static node(e,n,r,o){return new hn(e,n,new Mu(r,o))}get spec(){return this.type.spec}get inline(){return this.type instanceof Hr}get widget(){return this.type instanceof ll}}const gi=[],To={};class yt{constructor(e,n){this.local=e.length?e:gi,this.children=n.length?n:gi}static create(e,n){return n.length?cl(n,e,0,To):Mt}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==Mt||e.maps.length==0?this:this.mapInner(e,n,0,0,r||To)}mapInner(e,n,r,o,i){let s;for(let c=0;c<this.local.length;c++){let l=this.local[c].map(e,r,o);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?FT(this.children,s||[],e,n,r,o,i):s?new yt(s.sort(Io),gi):Mt}add(e,n){return n.length?this==Mt?yt.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let o,i=0;e.forEach((c,l)=>{let d=l+r,u;if(u=d2(n,c,d)){for(o||(o=this.children.slice());i<o.length&&o[i]<l;)i+=3;o[i]==l?o[i+2]=o[i+2].addInner(c,u,d+1):o.splice(i,0,l,l+c.nodeSize,cl(u,c,d+1,To)),i+=3}});let s=c2(i?u2(n):n,-r);for(let c=0;c<s.length;c++)s[c].type.valid(e,s[c])||s.splice(c--,1);return new yt(s.length?this.local.concat(s).sort(Io):this.local,o||this.children)}remove(e){return e.length==0||this==Mt?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,l=r[i+1]+n;for(let u=0,f;u<e.length;u++)(f=e[u])&&f.from>c&&f.to<l&&(e[u]=null,(s||(s=[])).push(f));if(!s)continue;r==this.children&&(r=this.children.slice());let d=r[i+2].removeInner(s,c+1);d!=Mt?r[i+2]=d:(r.splice(i,3),i-=3)}if(o.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let c=0;c<o.length;c++)o[c].eq(s,n)&&(o==this.local&&(o=this.local.slice()),o.splice(c--,1))}return r==this.children&&o==this.local?this:o.length||r.length?new yt(o,r):Mt}forChild(e,n){if(this==Mt)return this;if(n.isLeaf)return yt.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 l=this.local[c];if(l.from<s&&l.to>i&&l.type instanceof Hr){let d=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;d<u&&(o||(o=[])).push(l.copy(d,u))}}if(o){let c=new yt(o.sort(Io),gi);return r?new Wr([c,r]):c}return r||Mt}eq(e){if(this==e)return!0;if(!(e instanceof yt)||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 Lu(this.localsInner(e))}localsInner(e){if(this==Mt)return gi;if(e.inlineContent||!this.local.some(Hr.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Hr||n.push(this.local[r]);return n}}yt.empty=new yt([],[]),yt.removeOverlap=Lu;const Mt=yt.empty;class Wr{constructor(e){this.members=e}map(e,n){const r=this.members.map(o=>o.map(e,n,To));return Wr.from(r)}forChild(e,n){if(n.isLeaf)return yt.empty;let r=[];for(let o=0;o<this.members.length;o++){let i=this.members[o].forChild(e,n);i!=Mt&&(i instanceof Wr?r=r.concat(i.members):r.push(i))}return Wr.from(r)}eq(e){if(!(e instanceof Wr)||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?Lu(r?n:n.sort(Io)):gi}static from(e){switch(e.length){case 0:return Mt;case 1:return e[0];default:return new Wr(e.every(n=>n instanceof yt)?e:e.reduce((n,r)=>n.concat(r instanceof yt?r:r.members),[]))}}}function FT(t,e,n,r,o,i,s){let c=t.slice();for(let d=0,u=i;d<n.maps.length;d++){let f=0;n.maps[d].forEach((h,p,m,g)=>{let y=g-m-(p-h);for(let C=0;C<c.length;C+=3){let E=c[C+1];if(E<0||h>E+u-f)continue;let b=c[C]+u-f;p>=b?c[C+1]=h<=b?-2:-1:m>=o&&y&&(c[C]+=y,c[C+1]+=y)}f+=y}),u=n.maps[d].map(u,-1)}let l=!1;for(let d=0;d<c.length;d+=3)if(c[d+1]<0){if(c[d+1]==-2){l=!0,c[d+1]=-1;continue}let u=n.map(t[d]+i),f=u-o;if(f<0||f>=r.content.size){l=!0;continue}let h=n.map(t[d+1]+i,-1),p=h-o,{index:m,offset:g}=r.content.findIndex(f),y=r.maybeChild(m);if(y&&g==f&&g+y.nodeSize==p){let C=c[d+2].mapInner(n,y,u+1,t[d]+i+1,s);C!=Mt?(c[d]=f,c[d+1]=p,c[d+2]=C):(c[d+1]=-2,l=!0)}else l=!0}if(l){let d=jT(c,t,e,n,o,i,s),u=cl(d,r,0,s);e=u.local;for(let f=0;f<c.length;f+=3)c[f+1]<0&&(c.splice(f,3),f-=3);for(let f=0,h=0;f<u.children.length;f+=3){let p=u.children[f];for(;h<c.length&&c[h]<p;)h+=3;c.splice(h,0,u.children[f],u.children[f+1],u.children[f+2])}}return new yt(e.sort(Io),c)}function c2(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 hn(o.from+e,o.to+e,o.type))}return n}function jT(t,e,n,r,o,i,s){function c(l,d){for(let u=0;u<l.local.length;u++){let f=l.local[u].map(r,o,d);f?n.push(f):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)c(l.children[u+2],l.children[u]+d+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&c(t[l+2],e[l]+i+1);return n}function d2(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 u2(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function cl(t,e,n,r){let o=[],i=!1;e.forEach((c,l)=>{let d=d2(t,c,l+n);if(d){i=!0;let u=cl(d,c,n+l+1,r);u!=Mt&&o.push(l,l+c.nodeSize,u)}});let s=c2(i?u2(t):t,-n).sort(Io);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 yt(s,o):Mt}function Io(t,e){return t.from-e.from||t.to-e.to}function Lu(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),f2(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),f2(e,o,r.copy(i.from,r.to)));break}}}return e}function f2(t,e,n){for(;e<t.length&&Io(n,t[e])>0;)e++;t.splice(e,0,n)}function Du(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=Mt&&e.push(r)}),t.cursorWrapper&&e.push(yt.create(t.state.doc,[t.cursorWrapper.deco])),Wr.from(e)}const zT={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},UT=Xt&&Vr<=11;class HT{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 WT{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new HT,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let o=0;o<r.length;o++)this.queue.push(r[o]);Xt&&Vr<=11&&r.some(o=>o.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),UT&&(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,zT)),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(Vg(this.view)){if(this.suppressingSelectionUpdates)return hr(this.view);if(Xt&&Vr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&So(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=Ns(i))n.add(i);for(let i=e.anchorNode;i;i=Ns(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)&&Vg(e)&&!this.ignoreSelectionChange(r),i=-1,s=-1,c=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let f=this.registerMutation(n[u],l);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(Ln&&l.length>1){let u=l.filter(f=>f.nodeName=="BR");if(u.length==2){let f=u[0],h=u[1];f.parentNode&&f.parentNode.parentNode==h.parentNode?h.remove():f.remove()}}let d=null;i<0&&o&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&rl(r)&&(d=Su(e))&&d.eq(Ge.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hr(e),this.currentSelection.set(r),e.scrollToSelection()):(i>-1||o)&&(i>-1&&(e.docView.markDirty(i,s),KT(e)),this.handleDOMChange(i,s,c,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||hr(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++)n.push(e.addedNodes[u]);if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let o=e.previousSibling,i=e.nextSibling;if(Xt&&Vr<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:f,nextSibling:h}=e.addedNodes[u];(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f),(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h)}let s=o&&o.parentNode==e.target?$t(o)+1:0,c=r.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?$t(i):e.target.childNodes.length,d=r.localPosFromDOM(e.target,l,1);return{from:c,to:d}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}}let h2=new WeakMap,p2=!1;function KT(t){if(!h2.has(t)&&(h2.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ln,p2)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."),p2=!0}}function YT(t){let e;function n(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}t.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",n,!0);let r=e.startContainer,o=e.startOffset,i=e.endContainer,s=e.endOffset,c=t.domAtPos(t.state.selection.anchor);return So(c.node,c.offset,i,s)&&([r,o,i,s]=[i,s,r,o]),{anchorNode:r,anchorOffset:o,focusNode:i,focusOffset:s}}function GT(t,e,n){let{node:r,fromOffset:o,toOffset:i,from:s,to:c}=t.docView.parseRange(e,n),l=t.domSelectionRange(),d,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:l.anchorOffset}],rl(l)||d.push({node:l.focusNode,offset:l.focusOffset})),Nt&&t.input.lastKeyCode===8)for(let y=i;y>o;y--){let C=r.childNodes[y-1],E=C.pmViewDesc;if(C.nodeName=="BR"&&!E){i=y;break}if(!E||E.size)break}let f=t.state.doc,h=t.someProp("domParser")||oi.fromSchema(t.state.schema),p=f.resolve(s),m=null,g=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:o,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:QT,context:p});if(d&&d[0].pos!=null){let y=d[0].pos,C=d[1]&&d[1].pos;C==null&&(C=y),m={anchor:y+s,head:C+s}}return{doc:g,sel:m,from:s,to:c}}function QT(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Rt&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Rt&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const ZT=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function JT(t,e,n,r,o){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let N=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,z=Su(t,N);if(z&&!t.state.selection.eq(z)){if(Nt&&Dn&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",P=>P(t,_o(13,"Enter"))))return;let V=t.state.tr.setSelection(z);N=="pointer"?V.setMeta("pointer",!0):N=="key"&&V.scrollIntoView(),i&&V.setMeta("composition",i),t.dispatch(V)}return}let s=t.state.doc.resolve(e),c=s.sharedDepth(n);e=s.before(c+1),n=t.state.doc.resolve(n).after(c+1);let l=t.state.selection,d=GT(t,e,n),u=t.state.doc,f=u.slice(d.from,d.to),h,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(h=t.state.selection.to,p="end"):(h=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let m=eI(f.content,d.doc.content,d.from,h,p);if((fi&&t.input.lastIOSEnter>Date.now()-225||Dn)&&o.some(N=>N.nodeType==1&&!ZT.test(N.nodeName))&&(!m||m.endA>=m.endB)&&t.someProp("handleKeyDown",N=>N(t,_o(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!m)if(r&&l instanceof Qe&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))m={start:l.from,endA:l.to,endB:l.to};else{if(d.sel){let N=m2(t,t.state.doc,d.sel);if(N&&!N.eq(t.state.selection)){let z=t.state.tr.setSelection(N);i&&z.setMeta("composition",i),t.dispatch(z)}}return}if(Nt&&t.cursorWrapper&&d.sel&&d.sel.anchor==t.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let N=m.endB-m.start;d.sel={anchor:d.sel.anchor+N,head:d.sel.anchor+N}}t.input.domChangeCount++,t.state.selection.from<t.state.selection.to&&m.start==m.endB&&t.state.selection instanceof Qe&&(m.start>t.state.selection.from&&m.start<=t.state.selection.from+2&&t.state.selection.from>=d.from?m.start=t.state.selection.from:m.endA<t.state.selection.to&&m.endA>=t.state.selection.to-2&&t.state.selection.to<=d.to&&(m.endB+=t.state.selection.to-m.endA,m.endA=t.state.selection.to)),Xt&&Vr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>d.from&&d.doc.textBetween(m.start-d.from-1,m.start-d.from+1)==" "&&(m.start--,m.endA--,m.endB--);let g=d.doc.resolveNoCache(m.start-d.from),y=d.doc.resolveNoCache(m.endB-d.from),C=u.resolve(m.start),E=g.sameParent(y)&&g.parent.inlineContent&&C.end()>=m.endA,b;if((fi&&t.input.lastIOSEnter>Date.now()-225&&(!E||o.some(N=>N.nodeName=="DIV"||N.nodeName=="P"))||!E&&g.pos<d.doc.content.size&&!g.sameParent(y)&&(b=Ge.findFrom(d.doc.resolve(g.pos+1),1,!0))&&b.head==y.pos)&&t.someProp("handleKeyDown",N=>N(t,_o(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>m.start&&qT(u,m.start,m.endA,g,y)&&t.someProp("handleKeyDown",N=>N(t,_o(8,"Backspace")))){Dn&&Nt&&t.domObserver.suppressSelectionUpdates();return}Nt&&Dn&&m.endB==m.start&&(t.input.lastAndroidDelete=Date.now()),Dn&&!E&&g.start()!=y.start()&&y.parentOffset==0&&g.depth==y.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==m.endA&&(m.endB-=2,y=d.doc.resolveNoCache(m.endB-d.from),setTimeout(()=>{t.someProp("handleKeyDown",function(N){return N(t,_o(13,"Enter"))})},20));let v=m.start,k=m.endA,_,O,L;if(E){if(g.pos==y.pos)Xt&&Vr<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>hr(t),20)),_=t.state.tr.delete(v,k),O=u.resolve(m.start).marksAcross(u.resolve(m.endA));else if(m.endA==m.endB&&(L=XT(g.parent.content.cut(g.parentOffset,y.parentOffset),C.parent.content.cut(C.parentOffset,m.endA-C.start()))))_=t.state.tr,L.type=="add"?_.addMark(v,k,L.mark):_.removeMark(v,k,L.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let N=g.parent.textBetween(g.parentOffset,y.parentOffset);if(t.someProp("handleTextInput",z=>z(t,v,k,N)))return;_=t.state.tr.insertText(N,v,k)}}if(_||(_=t.state.tr.replace(v,k,d.doc.slice(m.start-d.from,m.endB-d.from))),d.sel){let N=m2(t,_.doc,d.sel);N&&!(Nt&&Dn&&t.composing&&N.empty&&(m.start!=m.endB||t.input.lastAndroidDelete<Date.now()-100)&&(N.head==v||N.head==_.mapping.map(k)-1)||Xt&&N.empty&&N.head==v)&&_.setSelection(N)}O&&_.ensureMarks(O),i&&_.setMeta("composition",i),t.dispatch(_.scrollIntoView())}function m2(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:wu(t,e.resolve(n.anchor),e.resolve(n.head))}function XT(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,o=n,i=r,s,c,l;for(let u=0;u<r.length;u++)o=r[u].removeFromSet(o);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(o.length==1&&i.length==0)c=o[0],s="add",l=u=>u.mark(c.addToSet(u.marks));else if(o.length==0&&i.length==1)c=i[0],s="remove",l=u=>u.mark(c.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(l(e.child(u)));if(he.from(d).eq(t))return{mark:c,type:s}}function qT(t,e,n,r,o){if(!r.parent.isTextblock||n-e<=o.pos-r.pos||Pu(r,!0,!1)<o.pos)return!1;let i=t.resolve(e);if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(Pu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||Pu(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function Pu(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 eI(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 l=Math.max(0,i-Math.min(s,c));r-=s+l-i}if(s<i&&t.size<e.size){let l=r<=i&&r>=s?i-r:0;i-=l,i&&i<e.size&&g2(e.textBetween(i-1,i+1))&&(i+=l?1:-1),c=i+(c-s),s=i}else if(c<i){let l=r<=i&&r>=c?i-r:0;i-=l,i&&i<t.size&&g2(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-c),c=i}return{start:i,endA:s,endB:c}}function g2(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 tI{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 ST,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(E2),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=b2(this),v2(this),this.nodeViews=C2(this),this.docView=Tg(this.state.doc,y2(this),Du(this),this.dom,this),this.domObserver=new WT(this,(r,o,i,s)=>JT(this,r,o,i,s)),this.domObserver.start(),_T(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&&Iu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(E2),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&&(i2(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=C2(this);rI(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(c||n.handleDOMEvents!=this._props.handleDOMEvents)&&Iu(this),this.editable=b2(this),v2(this);let l=Du(this),d=y2(this),u=o.plugins!=e.plugins&&!o.doc.eq(e.doc)?"reset":e.scrollToSelection>o.scrollToSelection?"to selection":"preserve",f=i||!this.docView.matchesNode(e.doc,d,l);(f||!e.selection.eq(o.selection))&&(s=!0);let h=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&$A(this);if(s){this.domObserver.stop();let p=f&&(Xt||Nt)&&!this.composing&&!o.selection.empty&&!e.selection.empty&&nI(o.selection,e.selection);if(f){let m=Nt?this.trackWrites=this.domSelectionRange().focusNode:null;(i||!this.docView.update(e.doc,d,l,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Tg(e.doc,d,l,this.dom,this)),m&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&lT(this))?hr(this,p):($g(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((r=this.dragging)===null||r===void 0)&&r.node&&!o.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,o),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():h&&RA(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof De){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&pg(this,n.getBoundingClientRect(),e)}else pg(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 a2(e.slice,e.move,o<0?void 0:De.create(this.state.doc,o))}someProp(e,n){let r=this._props&&this._props[e],o;if(r!=null&&(o=n?n(r):r))return o;for(let s=0;s<this.directPlugins.length;s++){let c=this.directPlugins[s].props[e];if(c!=null&&(o=n?n(c):c))return o}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let c=i[s].props[e];if(c!=null&&(o=n?n(c):c))return o}}hasFocus(){if(Xt){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&&VA(this.dom),hr(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 HA(this,e)}coordsAtPos(e,n=1){return Cg(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 QA(this,n||this.state,e)}pasteHTML(e,n){return Rs(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Rs(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(wT(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Du(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(e){return AT(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return Rt&&this.root.nodeType===11&&OA(this.dom.ownerDocument)==this.dom?YT(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function y2(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"),[hn.node(0,t.state.doc.content.size,e)]}function v2(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:hn.widget(t.state.selection.head,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function b2(t){return!t.someProp("editable",e=>e(t.state)===!1)}function nI(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 C2(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 rI(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 E2(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Kr={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:"'"},dl={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},oI=typeof navigator<"u"&&/Mac/.test(navigator.platform),iI=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),At=0;At<10;At++)Kr[48+At]=Kr[96+At]=String(At);for(var At=1;At<=24;At++)Kr[At+111]="F"+At;for(var At=65;At<=90;At++)Kr[At]=String.fromCharCode(At+32),dl[At]=String.fromCharCode(At);for(var Bu in Kr)dl.hasOwnProperty(Bu)||(dl[Bu]=Kr[Bu]);function sI(t){var e=oI&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||iI&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?dl:Kr)[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 aI=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function lI(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 l=e[c];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))aI?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),o&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function cI(t){let e=Object.create(null);for(let n in t)e[lI(n)]=t[n];return e}function $u(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 dI(t){return new Jt({props:{handleKeyDown:uI(t)}})}function uI(t){let e=cI(t);return function(n,r){let o=sI(r),i,s=e[$u(o,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(o.length==1&&o!=" "){if(r.shiftKey){let c=e[$u(o,r,!1)];if(c&&c(n.state,n.dispatch,n))return!0}if((r.shiftKey||r.altKey||r.metaKey||o.charCodeAt(0)>127)&&(i=Kr[r.keyCode])&&i!=o){let c=e[$u(i,r)];if(c&&c(n.state,n.dispatch,n))return!0}}return!1}}const fI=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function hI(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const pI=(t,e,n)=>{let r=hI(t,n);if(!r)return!1;let o=S2(r);if(!o){let s=r.blockRange(),c=s&&si(s);return c==null?!1:(e&&e(t.tr.lift(s,c).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&k2(t,o,e))return!0;if(r.parent.content.size==0&&(yi(i,"end")||De.isSelectable(i))){let s=su(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(yi(i,"end")?Ge.findFrom(c.doc.resolve(c.mapping.map(o.pos,-1)),-1):De.create(c.doc,o.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0):!1};function yi(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 mI=(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=S2(r)}let s=i&&i.nodeBefore;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function S2(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 gI(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const yI=(t,e,n)=>{let r=gI(t,n);if(!r)return!1;let o=_2(r);if(!o)return!1;let i=o.nodeAfter;if(k2(t,o,e))return!0;if(r.parent.content.size==0&&(yi(i,"start")||De.isSelectable(i))){let s=su(t.doc,r.before(),r.after(),we.empty);if(s&&s.slice.size<s.to-s.from){if(e){let c=t.tr.step(s);c.setSelection(yi(i,"start")?Ge.findFrom(c.doc.resolve(c.mapping.map(o.pos)),1):De.create(c.doc,c.mapping.map(o.pos))),e(c.scrollIntoView())}return!0}}return i.isAtom&&o.depth==r.depth-1?(e&&e(t.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0):!1},vI=(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=_2(r)}let s=i&&i.nodeAfter;return!s||!De.isSelectable(s)?!1:(e&&e(t.tr.setSelection(De.create(t.doc,i.pos)).scrollIntoView()),!0)};function _2(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 bI=(t,e)=>{let n=t.selection,r=n instanceof De,o;if(r){if(n.node.isTextblock||!$r(t.doc,n.from))return!1;o=n.from}else if(o=el(t.doc,n.from,-1),o==null)return!1;if(e){let i=t.tr.join(o);r&&i.setSelection(De.create(i.doc,o-t.doc.resolve(o).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},CI=(t,e)=>{let n=t.selection,r;if(n instanceof De){if(n.node.isTextblock||!$r(t.doc,n.to))return!1;r=n.to}else if(r=el(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},EI=(t,e)=>{let{$from:n,$to:r}=t.selection,o=n.blockRange(r),i=o&&si(o);return i==null?!1:(e&&e(t.tr.lift(o,i).scrollIntoView()),!0)},SI=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
|
|
1244
|
+
`).scrollIntoView()),!0)};function w2(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 _I=(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=w2(o.contentMatchAt(i));if(!s||!o.canReplaceWith(i,i,s))return!1;if(e){let c=n.after(),l=t.tr.replaceWith(c,c,s.createAndFill());l.setSelection(Ge.near(l.doc.resolve(c),1)),e(l.scrollIntoView())}return!0},wI=(t,e)=>{let n=t.selection,{$from:r,$to:o}=n;if(n instanceof Nn||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=w2(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(Qe.create(c.doc,s+1)),e(c.scrollIntoView())}return!0},kI=(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(ai(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let r=n.blockRange(),o=r&&si(r);return o==null?!1:(e&&e(t.tr.lift(r,o).scrollIntoView()),!0)},AI=(t,e)=>{let{$from:n,to:r}=t.selection,o,i=n.sharedDepth(r);return i==0?!1:(o=n.before(i),e&&e(t.tr.setSelection(De.create(t.doc,o))),!0)};function TI(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||$r(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,r.type,r.contentMatchAt(r.childCount)).join(e.pos).scrollIntoView()),!0)}function k2(t,e,n){let r=e.nodeBefore,o=e.nodeAfter,i,s;if(r.type.spec.isolating||o.type.spec.isolating)return!1;if(TI(t,e,n))return!0;let c=e.parent.canReplace(e.index(),e.index()+1);if(c&&(i=(s=r.contentMatchAt(r.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let f=e.pos+o.nodeSize,h=he.empty;for(let g=i.length-1;g>=0;g--)h=he.from(i[g].create(null,h));h=he.from(r.copy(h));let p=t.tr.step(new Ct(e.pos-1,f,e.pos,f,new we(h,1,0),i.length,!0)),m=f+2*i.length;$r(p.doc,m)&&p.join(m),n(p.scrollIntoView())}return!0}let l=Ge.findFrom(e,1),d=l&&l.$from.blockRange(l.$to),u=d&&si(d);if(u!=null&&u>=e.depth)return n&&n(t.tr.lift(d,u).scrollIntoView()),!0;if(c&&yi(o,"start",!0)&&yi(r,"end")){let f=r,h=[];for(;h.push(f),!f.isTextblock;)f=f.lastChild;let p=o,m=1;for(;!p.isTextblock;p=p.firstChild)m++;if(f.canReplace(f.childCount,f.childCount,p.content)){if(n){let g=he.empty;for(let C=h.length-1;C>=0;C--)g=he.from(h[C].copy(g));let y=t.tr.step(new Ct(e.pos-h.length,e.pos+o.nodeSize,e.pos+m,e.pos+o.nodeSize-m,new we(g,h.length,0),0,!0));n(y.scrollIntoView())}return!0}}return!1}function A2(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(Qe.create(e.doc,t<0?o.start(i):o.end(i)))),!0):!1}}const II=A2(-1),xI=A2(1);function OI(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=s&&iu(s,t,e);return c?(r&&r(n.tr.wrap(s,c).scrollIntoView()),!0):!1}}function T2(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,(l,d)=>{if(o)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)o=!0;else{let u=n.doc.resolve(d),f=u.index();o=u.parent.canReplaceWith(f,f+1,t)}})}if(!o)return!1;if(r){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:c},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(c,l,t,e)}r(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function NI(t,e=null){return function(n,r){let{$from:o,$to:i}=n.selection,s=o.blockRange(i),c=!1,l=s;if(!s)return!1;if(s.depth>=2&&o.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(o.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new Ya(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new Ya(o,n.doc.resolve(i.end(s.depth)),s.depth)),c=!0}let d=iu(l,t,e,s);return d?(r&&r(MI(n.tr,s,d,c,t).scrollIntoView()),!0):!1}}function MI(t,e,n,r,o){let i=he.empty;for(let u=n.length-1;u>=0;u--)i=he.from(n[u].type.create(n[u].attrs,i));t.step(new Ct(e.start-(r?2:0),e.end,e.start,e.end,new we(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==o&&(s=u+1);let c=n.length-s,l=e.start+n.length-(r?2:0),d=e.parent;for(let u=e.startIndex,f=e.endIndex,h=!0;u<f;u++,h=!1)!h&&ai(t.doc,l,c)&&(t.split(l,c),l+=2*c),l+=d.child(u).nodeSize;return t}function LI(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?DI(e,n,t,i):PI(e,n,i):!0:!1}}function DI(t,e,n,r){let o=t.tr,i=r.end,s=r.$to.end(r.depth);i<s&&(o.step(new Ct(i-1,s,i,s,new we(he.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Ya(o.doc.resolve(r.$from.pos),o.doc.resolve(s),r.depth));const c=si(r);if(c==null)return!1;o.lift(r,c);let l=o.mapping.map(i,-1)-1;return $r(o.doc,l)&&o.join(l),e(o.scrollIntoView()),!0}function PI(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,l=n.endIndex==o.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(c?0:1),u+1,s.content.append(l?he.empty:he.from(o))))return!1;let f=i.pos,h=f+s.nodeSize;return r.step(new Ct(f-(c?1:0),h+(l?1:0),f+1,h-1,new we((c?he.empty:he.from(o.copy(he.empty))).append(l?he.empty:he.from(o.copy(he.empty))),c?0:1,l?0:1),c?0:1)),e(r.scrollIntoView()),!0}function BI(t){return function(e,n){let{$from:r,$to:o}=e.selection,i=r.blockRange(o,d=>d.childCount>0&&d.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let c=i.parent,l=c.child(s-1);if(l.type!=t)return!1;if(n){let d=l.lastChild&&l.lastChild.type==c.type,u=he.from(d?t.create():null),f=new we(he.from(t.create(null,he.from(c.type.create(null,u)))),d?3:1,0),h=i.start,p=i.end;n(e.tr.step(new Ct(h-(d?3:1),p,h,p,f,1,!0)).scrollIntoView())}return!0}}function ul(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),filterTransaction:e.filterTransaction,plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}}}class fl{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([c,l])=>[c,(...u)=>{const f=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(i),f}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c=[],l=!!e,d=e||i.tr,u=()=>(!l&&n&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(d),c.every(h=>h===!0)),f={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...g)=>{const y=this.buildProps(d,n),C=p(...g)(y);return c.push(C),f}])),run:u};return f}createCan(e){const{rawCommands:n,state:r}=this,o=!1,i=e||r.tr,s=this.buildProps(i,o);return{...Object.fromEntries(Object.entries(n).map(([l,d])=>[l,(...u)=>d(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,o)}}buildProps(e,n=!0){const{rawCommands:r,editor:o,state:i}=this,{view:s}=o,c={tr:e,editor:o,view:s,state:ul({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,d])=>[l,(...u)=>d(...u)(c)]))}};return c}}class $I{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const r=this.callbacks[e];return r&&r.forEach(o=>o.apply(this,n)),this}off(e,n){const r=this.callbacks[e];return r&&(n?this.callbacks[e]=r.filter(o=>o!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Ie(t,e,n){return t.config[e]===void 0&&t.parent?Ie(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?Ie(t.parent,e,n):null}):t.config[e]}function hl(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 I2(t){const e=[],{nodeExtensions:n,markExtensions:r}=hl(t),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},l=Ie(s,"addGlobalAttributes",c);if(!l)return;l().forEach(u=>{u.types.forEach(f=>{Object.entries(u.attributes).forEach(([h,p])=>{e.push({type:f,name:h,attribute:{...i,...p}})})})})}),o.forEach(s=>{const c={name:s.name,options:s.options,storage:s.storage},l=Ie(s,"addAttributes",c);if(!l)return;const d=l();Object.entries(d).forEach(([u,f])=>{const h={...i,...f};typeof(h==null?void 0:h.default)=="function"&&(h.default=h.default()),h!=null&&h.isRequired&&(h==null?void 0:h.default)===void 0&&delete h.default,e.push({type:s.name,name:u,attribute:h})})}),e}function Et(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function jt(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([o,i])=>{if(!r[o]){r[o]=i;return}if(o==="class"){const c=i?i.split(" "):[],l=r[o]?r[o].split(" "):[],d=c.filter(u=>!l.includes(u));r[o]=[...l,...d].join(" ")}else o==="style"?r[o]=[r[o],i].join("; "):r[o]=i}),r},{})}function Ru(t,e){return e.filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>jt(n,r),{})}function x2(t){return typeof t=="function"}function He(t,e=void 0,...n){return x2(t)?e?t.bind(e)(...n):t(...n):t}function RI(t={}){return Object.keys(t).length===0&&t.constructor===Object}function VI(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function O2(t,e){return t.style?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const o=e.reduce((i,s)=>{const c=s.attribute.parseHTML?s.attribute.parseHTML(n):VI(n.getAttribute(s.name));return c==null?i:{...i,[s.name]:c}},{});return{...r,...o}}}}function N2(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&RI(n)?!1:n!=null))}function FI(t,e){var n;const r=I2(t),{nodeExtensions:o,markExtensions:i}=hl(t),s=(n=o.find(d=>Ie(d,"topNode")))===null||n===void 0?void 0:n.name,c=Object.fromEntries(o.map(d=>{const u=r.filter(C=>C.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((C,E)=>{const b=Ie(E,"extendNodeSchema",f);return{...C,...b?b(d):{}}},{}),p=N2({...h,content:He(Ie(d,"content",f)),marks:He(Ie(d,"marks",f)),group:He(Ie(d,"group",f)),inline:He(Ie(d,"inline",f)),atom:He(Ie(d,"atom",f)),selectable:He(Ie(d,"selectable",f)),draggable:He(Ie(d,"draggable",f)),code:He(Ie(d,"code",f)),defining:He(Ie(d,"defining",f)),isolating:He(Ie(d,"isolating",f)),attrs:Object.fromEntries(u.map(C=>{var E;return[C.name,{default:(E=C==null?void 0:C.attribute)===null||E===void 0?void 0:E.default}]}))}),m=He(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(C=>O2(C,u)));const g=Ie(d,"renderHTML",f);g&&(p.toDOM=C=>g({node:C,HTMLAttributes:Ru(C,u)}));const y=Ie(d,"renderText",f);return y&&(p.toText=y),[d.name,p]})),l=Object.fromEntries(i.map(d=>{const u=r.filter(y=>y.type===d.name),f={name:d.name,options:d.options,storage:d.storage,editor:e},h=t.reduce((y,C)=>{const E=Ie(C,"extendMarkSchema",f);return{...y,...E?E(d):{}}},{}),p=N2({...h,inclusive:He(Ie(d,"inclusive",f)),excludes:He(Ie(d,"excludes",f)),group:He(Ie(d,"group",f)),spanning:He(Ie(d,"spanning",f)),code:He(Ie(d,"code",f)),attrs:Object.fromEntries(u.map(y=>{var C;return[y.name,{default:(C=y==null?void 0:y.attribute)===null||C===void 0?void 0:C.default}]}))}),m=He(Ie(d,"parseHTML",f));m&&(p.parseDOM=m.map(y=>O2(y,u)));const g=Ie(d,"renderHTML",f);return g&&(p.toDOM=y=>g({mark:y,HTMLAttributes:Ru(y,u)})),[d.name,p]}));return new Gk({topNode:s,nodes:c,marks:l})}function Vu(t,e){return e.nodes[t]||e.marks[t]||null}function M2(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const jI=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(o,i,s,c)=>{var l,d;const u=((d=(l=o.type.spec).toText)===null||d===void 0?void 0:d.call(l,{node:o,pos:i,parent:s,index:c}))||o.textContent||"%leaf%";n+=u.slice(0,Math.max(0,r-i))}),n};function Fu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class L2{constructor(e){this.find=e.find,this.handler=e.handler}}const zI=(t,e)=>{if(Fu(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 ju(t){var e;const{editor:n,from:r,to:o,text:i,rules:s,plugin:c}=t,{view:l}=n;if(l.composing)return!1;const d=l.state.doc.resolve(r);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(h=>h.type.spec.code))return!1;let u=!1;const f=jI(d)+i;return s.forEach(h=>{if(u)return;const p=zI(f,h.find);if(!p)return;const m=l.state.tr,g=ul({state:l.state,transaction:m}),y={from:r-(p[0].length-i.length),to:o},{commands:C,chain:E,can:b}=new fl({editor:n,state:g});h.handler({state:g,range:y,match:p,commands:C,chain:E,can:b})===null||!m.steps.length||(m.setMeta(c,{transform:m,from:r,to:o,text:i}),l.dispatch(m),u=!0)}),u}function UI(t){const{editor:e,rules:n}=t,r=new Jt({state:{init(){return null},apply(o,i){const s=o.getMeta(r);return s||(o.selectionSet||o.docChanged?null:i)}},props:{handleTextInput(o,i,s,c){return ju({editor:e,from:i,to:s,text:c,rules:n,plugin:r})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:i}=o.state.selection;i&&ju({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?ju({editor:e,from:s.pos,to:s.pos,text:`
|
|
1245
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function HI(t){return typeof t=="number"}class WI{constructor(e){this.find=e.find,this.handler=e.handler}}const KI=(t,e)=>{if(Fu(e))return[...t.matchAll(e)];const n=e(t);return n?n.map(r=>{const o=[r.text];return o.index=r.index,o.input=t,o.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(r.replaceWith)),o}):[]};function YI(t){const{editor:e,state:n,from:r,to:o,rule:i,pasteEvent:s,dropEvent:c}=t,{commands:l,chain:d,can:u}=new fl({editor:e,state:n}),f=[];return n.doc.nodesBetween(r,o,(p,m)=>{if(!p.isTextblock||p.type.spec.code)return;const g=Math.max(r,m),y=Math.min(o,m+p.content.size),C=p.textBetween(g-m,y-m,void 0,"");KI(C,i.find).forEach(b=>{if(b.index===void 0)return;const v=g+b.index+1,k=v+b[0].length,_={from:n.tr.mapping.map(v),to:n.tr.mapping.map(k)},O=i.handler({state:n,range:_,match:b,commands:l,chain:d,can:u,pasteEvent:s,dropEvent:c});f.push(O)})}),f.every(p=>p!==null)}function GI(t){const{editor:e,rules:n}=t;let r=null,o=!1,i=!1,s=new ClipboardEvent("paste"),c=new DragEvent("drop");return n.map(d=>new Jt({view(u){const f=h=>{var p;r=!((p=u.dom.parentElement)===null||p===void 0)&&p.contains(h.target)?u.dom.parentElement:null};return window.addEventListener("dragstart",f),{destroy(){window.removeEventListener("dragstart",f)}}},props:{handleDOMEvents:{drop:(u,f)=>(i=r===u.dom.parentElement,c=f,!1),paste:(u,f)=>{var h;const p=(h=f.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return s=f,o=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(u,f,h)=>{const p=u[0],m=p.getMeta("uiEvent")==="paste"&&!o,g=p.getMeta("uiEvent")==="drop"&&!i;if(!m&&!g)return;const y=f.doc.content.findDiffStart(h.doc.content),C=f.doc.content.findDiffEnd(h.doc.content);if(!HI(y)||!C||y===C.b)return;const E=h.tr,b=ul({state:h,transaction:E});if(!(!YI({editor:e,state:b,from:Math.max(y-1,0),to:C.b-1,rule:d,pasteEvent:s,dropEvent:c})||!E.steps.length))return c=new DragEvent("drop"),s=new ClipboardEvent("paste"),E}}))}function QI(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return[...new Set(e)]}class vi{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=vi.resolve(e),this.schema=FI(this.extensions,n),this.extensions.forEach(r=>{var o;this.editor.extensionStorage[r.name]=r.storage;const i={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:Vu(r.name,this.schema)};r.type==="mark"&&(!((o=He(Ie(r,"keepOnSplit",i)))!==null&&o!==void 0)||o)&&this.splittableMarks.push(r.name);const s=Ie(r,"onBeforeCreate",i);s&&this.editor.on("beforeCreate",s);const c=Ie(r,"onCreate",i);c&&this.editor.on("create",c);const l=Ie(r,"onUpdate",i);l&&this.editor.on("update",l);const d=Ie(r,"onSelectionUpdate",i);d&&this.editor.on("selectionUpdate",d);const u=Ie(r,"onTransaction",i);u&&this.editor.on("transaction",u);const f=Ie(r,"onFocus",i);f&&this.editor.on("focus",f);const h=Ie(r,"onBlur",i);h&&this.editor.on("blur",h);const p=Ie(r,"onDestroy",i);p&&this.editor.on("destroy",p)})}static resolve(e){const n=vi.sort(vi.flatten(e)),r=QI(n.map(o=>o.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(o=>`'${o}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},o=Ie(n,"addExtensions",r);return o?[n,...this.flatten(o())]:n}).flat(10)}static sort(e){return e.sort((r,o)=>{const i=Ie(r,"priority")||100,s=Ie(o,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:Vu(n.name,this.schema)},o=Ie(n,"addCommands",r);return o?{...e,...o()}:e},{})}get plugins(){const{editor:e}=this,n=vi.sort([...this.extensions].reverse()),r=[],o=[],i=n.map(s=>{const c={name:s.name,options:s.options,storage:s.storage,editor:e,type:Vu(s.name,this.schema)},l=[],d=Ie(s,"addKeyboardShortcuts",c);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>Kn.handleExit({editor:e,mark:s})),d){const g=Object.fromEntries(Object.entries(d()).map(([y,C])=>[y,()=>C({editor:e})]));u={...u,...g}}const f=dI(u);l.push(f);const h=Ie(s,"addInputRules",c);M2(s,e.options.enableInputRules)&&h&&r.push(...h());const p=Ie(s,"addPasteRules",c);M2(s,e.options.enablePasteRules)&&p&&o.push(...p());const m=Ie(s,"addProseMirrorPlugins",c);if(m){const g=m();l.push(...g)}return l}).flat();return[UI({editor:e,rules:r}),...GI({editor:e,rules:o}),...i]}get attributes(){return I2(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=hl(this.extensions);return Object.fromEntries(n.filter(r=>!!Ie(r,"addNodeView")).map(r=>{const o=this.attributes.filter(l=>l.type===r.name),i={name:r.name,options:r.options,storage:r.storage,editor:e,type:Et(r.name,this.schema)},s=Ie(r,"addNodeView",i);if(!s)return[];const c=(l,d,u,f)=>{const h=Ru(l,o);return s()({editor:e,node:l,getPos:u,decorations:f,HTMLAttributes:h,extension:r})};return[r.name,c]}))}}function ZI(t){return Object.prototype.toString.call(t).slice(8,-1)}function zu(t){return ZI(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function pl(t,e){const n={...t};return zu(t)&&zu(e)&&Object.keys(e).forEach(r=>{zu(e[r])?r in t?n[r]=pl(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class pn{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=He(Ie(this,"addOptions",{name:this.name}))),this.storage=He(Ie(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new pn(e)}configure(e={}){const n=this.extend();return n.options=pl(this.options,e),n.storage=He(Ie(n,"addStorage",{name:n.name,options:n.options})),n}extend(e={}){const n=new pn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=He(Ie(n,"addOptions",{name:n.name})),n.storage=He(Ie(n,"addStorage",{name:n.name,options:n.options})),n}}function D2(t,e,n){const{from:r,to:o}=e,{blockSeparator:i=`
|
|
1246
1246
|
|
|
1247
|
-
`,textSerializers:s={}}=n||{};let c="",l=!0;return t.nodesBetween(r,o,(d,u,f,h)=>{var p;const m=s==null?void 0:s[d.type.name];m?(d.isBlock&&!l&&(c+=i,l=!0),f&&(c+=m({node:d,pos:u,parent:f,index:h,range:e}))):d.isText?(c+=(p=d==null?void 0:d.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),l=!1):d.isBlock&&!l&&(c+=i,l=!0)}),c}function P2(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const JI=pn.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Jt({key:new Mn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),l=P2(n);return D2(r,{from:s,to:c},{textSerializers:l})}}})]}}),XI=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),qI=(t=!1)=>({commands:e})=>e.setContent("",t),ex=()=>({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,l)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(l)),h=d.resolve(u.map(l+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=si(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},tx=t=>e=>t(e),nx=()=>({state:t,dispatch:e})=>wI(t,e),rx=(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 Qe(r.doc.resolve(s-1))),!0},ox=()=>({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),l=o.after(i);t.delete(c,l).scrollIntoView()}return!0}return!1},ix=t=>({tr:e,state:n,dispatch:r})=>{const o=Ct(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===o){if(r){const l=i.before(s),d=i.after(s);e.delete(l,d).scrollIntoView()}return!0}return!1},sx=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},ax=()=>({state:t,dispatch:e})=>fI(t,e),lx=()=>({commands:t})=>t.keyboardShortcut("Enter"),cx=()=>({state:t,dispatch:e})=>_I(t,e);function ml(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Fu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function Uu(t,e,n={}){return t.find(r=>r.type===e&&ml(r.attrs,n))}function dx(t,e,n={}){return!!Uu(t,e,n)}function Hu(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=Uu([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,c=i+1,l=s+r.node.nodeSize;for(Uu([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;c<t.parent.childCount&&dx([...t.parent.child(c).marks],e,n);)l+=t.parent.child(c).nodeSize,c+=1;return{from:s,to:l}}function Yr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const ux=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=Yr(t,r.schema),{doc:s,selection:c}=n,{$from:l,from:d,to:u}=c;if(o){const f=Hu(l,i,e);if(f&&f.from<=d&&f.to>=u){const h=Qe.create(s,f.from,f.to);n.setSelection(h)}}return!0},fx=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 Wu(t){return t instanceof Qe}function pr(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function B2(t,e=null){if(!e)return null;const n=Ge.atStart(t),r=Ge.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Qe.create(t,pr(0,o,i),pr(t.content.size,o,i)):Qe.create(t,pr(e,o,i),pr(e,o,i))}function Ku(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const hx=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{Ku()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!Wu(n.state.selection))return s(),!0;const c=B2(o.doc,t)||n.state.selection,l=n.state.selection.eq(c);return i&&(l||o.setSelection(c),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},px=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),mx=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e);function $2(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function gl(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?he.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),gl("",e,n)}if(typeof t=="string"){const r=oi.fromSchema(e);return n.slice?r.parseSlice($2(t),n.parseOptions).content:r.parse($2(t),n.parseOptions)}return gl("",e,n)}function gx(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof wt||o instanceof bt))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,l,d,u)=>{s===0&&(s=u)}),t.setSelection(Ge.near(t.doc.resolve(s),n))}const yx=t=>t.toString().startsWith("<"),vx=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=gl(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:c,to:l}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},d=!0,u=!0;if((yx(s)?s:[s]).forEach(h=>{h.check(),d=d?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),c===l&&u){const{parent:h}=r.doc.resolve(c);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(c-=1,l+=1)}d?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),c,l):typeof e=="object"&&e&&e.text?r.insertText(e.text,c,l):r.insertText(e,c,l):r.replaceWith(c,l,s),n.updateSelection&&gx(r,r.steps.length-1,-1)}return!0},bx=()=>({state:t,dispatch:e})=>bI(t,e),Cx=()=>({state:t,dispatch:e})=>CI(t,e),Ex=()=>({state:t,dispatch:e})=>pI(t,e),Sx=()=>({state:t,dispatch:e})=>yI(t,e),_x=()=>({tr:t,state:e,dispatch:n})=>{try{const r=el(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},wx=()=>({state:t,dispatch:e,tr:n})=>{try{const r=el(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}};function R2(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function kx(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 l=e[c];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Ku()||R2()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const Ax=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=kx(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return l==null||l.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Fs(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?Ct(e,t.schema):null,c=[];t.doc.nodesBetween(r,o,(f,h)=>{if(f.isText)return;const p=Math.max(r,h),m=Math.min(o,h+f.nodeSize);c.push({node:f,from:p,to:m})});const l=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>ml(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=l}const Tx=(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return Fs(n,o,e)?EI(n,r):!1},Ix=()=>({state:t,dispatch:e})=>kI(t,e),xx=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return LI(r)(e,n)},Ox=()=>({state:t,dispatch:e})=>SI(t,e);function yl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function V2(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const Nx=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=yl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Yr(t,r.schema)),o&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(d,u)=>{i&&i===d.type&&n.setNodeMarkup(u,void 0,V2(d.attrs,e)),s&&d.marks.length&&d.marks.forEach(f=>{s===f.type&&n.addMark(u,u+d.nodeSize,s.create(V2(f.attrs,e)))})})}),!0):!1},Mx=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Lx=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),Dx=()=>({state:t,dispatch:e})=>mI(t,e),Px=()=>({state:t,dispatch:e})=>vI(t,e),Bx=()=>({state:t,dispatch:e})=>AI(t,e),$x=()=>({state:t,dispatch:e})=>xI(t,e),Rx=()=>({state:t,dispatch:e})=>II(t,e);function F2(t,e,n={}){return gl(t,e,{slice:!1,parseOptions:n})}const Vx=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,c=F2(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,c).setMeta("preventUpdate",!e),!0};function vl(t,e){const n=Yr(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,l=>{s.push(...l.marks)});const c=s.find(l=>l.type.name===n.name);return c?{...c.attrs}:{}}function Fx(t,e){const n=new tg(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function jx(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 zx(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function Ux(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 Yu(t){return e=>Ux(e.$from,t)}function Hx(t,e){const n=jn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Wx(t,e){const n={from:0,to:t.content.size};return D2(t,n,e)}function Kx(t,e){const n=Ct(e,t.schema),{from:r,to:o}=t.selection,i=[];t.doc.nodesBetween(r,o,c=>{i.push(c)});const s=i.reverse().find(c=>c.type.name===n.name);return s?{...s.attrs}:{}}function j2(t,e){const n=yl(typeof e=="string"?e:e.name,t.schema);return n==="node"?Kx(t,e):n==="mark"?vl(t,e):{}}function Yx(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 Gx(t){const e=Yx(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 Qx(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,l)=>{s.push({from:c,to:l})});else{const{from:c,to:l}=n[i];if(c===void 0||l===void 0)return;s.push({from:c,to:l})}s.forEach(({from:c,to:l})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(l),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),Gx(r)}function Gu(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=Hu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function bl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Qu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?Yr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>ml(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(g,y)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(p,y),E=Math.min(m,y+g.nodeSize),b=E-C;s+=b,c.push(...g.marks.map(v=>({mark:v,from:C,to:E})))})}),s===0)return!1;const l=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>ml(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(l>0?l+d:l)>=s}function Zx(t,e,n={}){if(!e)return Fs(t,null,n)||Qu(t,null,n);const r=yl(e,t.schema);return r==="node"?Fs(t,e,n):r==="mark"?Qu(t,e,n):!1}function z2(t,e){const{nodeExtensions:n}=hl(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=He(Ie(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function Jx(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function Xx(t){return t instanceof De}function U2(t,e,n){const o=t.state.doc.content.size,i=pr(e,0,o),s=pr(n,0,o),c=t.coordsAtPos(i),l=t.coordsAtPos(s,-1),d=Math.min(c.top,l.top),u=Math.max(c.bottom,l.bottom),f=Math.min(c.left,l.left),h=Math.max(c.right,l.right),p=h-f,m=u-d,C={top:d,bottom:u,left:f,right:h,width:p,height:m,x:f,y:d};return{...C,toJSON:()=>C}}function qx(t,e,n){var r;const{selection:o}=e;let i=null;if(Wu(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(c)||!c.some(l=>l.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:c,$to:l})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,l.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));d=p&&m}return!d}),d})}const eO=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,l=Yr(t,r.schema);if(o)if(s){const d=vl(r,l);n.addStoredMark(l.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(C=>C.type===l)?h.marks.forEach(C=>{l===C.type&&n.addMark(m,g,l.create({...C.attrs,...e}))}):n.addMark(m,g,l.create(e))})});return qx(r,n,l)},tO=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),nO=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=Ct(t,n.schema);return i.isTextblock?o().command(({commands:s})=>T2(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>T2(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},rO=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=pr(t,0,r.content.size),i=De.create(r,o);e.setSelection(i)}return!0},oO=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Qe.atStart(r).from,c=Qe.atEnd(r).to,l=pr(o,s,c),d=pr(i,s,c),u=Qe.create(r,l,d);e.setSelection(u)}return!0},iO=t=>({state:e,dispatch:n})=>{const r=Ct(t,e.schema);return BI(r)(e,n)};function H2(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const sO=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:l}=i,d=o.extensionManager.attributes,u=bl(d,c.node().type.name,c.node().attrs);if(i instanceof De&&i.node.isBlock)return!c.parentOffset||!ai(s,c.pos)?!1:(r&&(t&&H2(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;if(r){const f=l.parentOffset===l.parent.content.size;i instanceof Qe&&e.deleteSelection();const h=c.depth===0?void 0:jx(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=ai(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&ai(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),y=e.doc.resolve(g);c.node(-1).canReplaceWith(y.index(),y.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&H2(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},aO=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=Ct(t,n.schema),{$from:c,$to:l}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(l))return!1;const u=c.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(r){let y=he.empty;const C=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-C;O>=c.depth-3;O-=1)y=he.from(c.node(O).copy(y));const E=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,b=bl(f,c.node().type.name,c.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(b))||void 0;y=y.append(he.from(s.createAndFill(null,v)||void 0));const k=c.before(c.depth-(C-1));e.replace(k,c.after(-E),new we(y,4-C,0));let _=-1;e.doc.nodesBetween(k,e.doc.content.size,(O,L)=>{if(_>-1)return!1;O.isTextblock&&O.content.size===0&&(_=L+1)}),_>-1&&e.setSelection(Qe.near(e.doc.resolve(_))),e.scrollIntoView()}return!0}const h=l.pos===c.end()?u.contentMatchAt(0).defaultType:null,p=bl(f,u.type.name,u.attrs),m=bl(f,c.node().type.name,c.node().attrs);e.delete(c.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!ai(e.doc,c.pos,2))return!1;if(r){const{selection:y,storedMarks:C}=n,{splittableMarks:E}=o.extensionManager,b=C||y.$to.parentOffset&&y.$from.marks();if(e.split(c.pos,2,g).scrollIntoView(),!b||!r)return!0;const v=b.filter(k=>E.includes(k.type.name));e.ensureMarks(v)}return!0},Zu=(t,e)=>{const n=Yu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&$r(t.doc,n.pos)&&t.join(n.pos),!0},Ju=(t,e)=>{const n=Yu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&$r(t.doc,r)&&t.join(r),!0};var lO=Object.freeze({__proto__:null,blur:XI,clearContent:qI,clearNodes:ex,command:tx,createParagraphNear:nx,cut:rx,deleteCurrentNode:ox,deleteNode:ix,deleteRange:sx,deleteSelection:ax,enter:lx,exitCode:cx,extendMarkRange:ux,first:fx,focus:hx,forEach:px,insertContent:mx,insertContentAt:vx,joinUp:bx,joinDown:Cx,joinBackward:Ex,joinForward:Sx,joinItemBackward:_x,joinItemForward:wx,keyboardShortcut:Ax,lift:Tx,liftEmptyBlock:Ix,liftListItem:xx,newlineInCode:Ox,resetAttributes:Nx,scrollIntoView:Mx,selectAll:Lx,selectNodeBackward:Dx,selectNodeForward:Px,selectParentNode:Bx,selectTextblockEnd:$x,selectTextblockStart:Rx,setContent:Vx,setMark:eO,setMeta:tO,setNode:nO,setNodeSelection:rO,setTextSelection:oO,sinkListItem:iO,splitBlock:sO,splitListItem:aO,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:l,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Ct(t,s.schema),m=Ct(e,s.schema),{selection:g,storedMarks:y}=s,{$from:C,$to:E}=g,b=C.blockRange(E),v=y||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const k=Yu(_=>z2(_.type.name,f))(g);if(b.depth>=1&&k&&b.depth-k.depth<=1){if(k.node.type===p)return d.liftListItem(m);if(z2(k.node.type.name,f)&&p.validContent(k.node.content)&&c)return l().command(()=>(i.setNodeMarkup(k.pos,p),!0)).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run()}return!n||!v||!c?l().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run():l().command(()=>{const _=u().wrapInList(p,r),O=v.filter(L=>h.includes(L.type.name));return i.ensureMarks(O),_?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=Yr(t,r.schema);return Qu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=Ct(t,r.schema),s=Ct(e,r.schema);return Fs(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=Ct(t,n.schema);return Fs(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let l=c.steps.length-1;l>=0;l-=1)s.step(c.steps[l].invert(c.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,l=Yr(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(y=>y.type===l))===null||i===void 0?void 0:i.attrs,g=Hu(d,l,m);g&&(h=g.from,p=g.to),n.removeMark(h,p,l)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=yl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Ct(t,r.schema)),c==="mark"&&(s=Yr(t,r.schema)),o&&n.selection.ranges.forEach(l=>{const d=l.$from.pos,u=l.$to.pos;r.doc.nodesBetween(d,u,(f,h)=>{i&&i===f.type&&n.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,d),g=Math.min(h+f.nodeSize,u);n.addMark(m,g,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return OI(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=Ct(t,n.schema);return NI(o,e)(n,r)}});const cO=pn.create({name:"commands",addCommands(){return{...lO}}}),dO=pn.create({name:"editable",addProseMirrorPlugins(){return[new Jt({key:new Mn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),uO=pn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Jt({key:new Mn("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),fO=pn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:l,doc:d}=c,{empty:u,$anchor:f}=l,{pos:h,parent:p}=f,m=f.parent.isTextblock?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,C=g&&m.parent.childCount===1?y===f.pos:Ge.atStart(d).from===h;return!u||!C||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Ku()||R2()?i:o},addProseMirrorPlugins(){return[new Jt({key:new Mn("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,c=Ge.atStart(e.doc).from,l=Ge.atEnd(e.doc).to;if(o||!(i===c&&s===l)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,h=ul({state:n,transaction:f}),{commands:p}=new fl({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),hO=pn.create({name:"tabindex",addProseMirrorPlugins(){return[new Jt({key:new Mn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var pO=Object.freeze({__proto__:null,ClipboardTextSerializer:JI,Commands:cO,Editable:dO,FocusEvents:uO,Keymap:fO,Tabindex:hO});const mO=`.ProseMirror {
|
|
1247
|
+
`,textSerializers:s={}}=n||{};let c="",l=!0;return t.nodesBetween(r,o,(d,u,f,h)=>{var p;const m=s==null?void 0:s[d.type.name];m?(d.isBlock&&!l&&(c+=i,l=!0),f&&(c+=m({node:d,pos:u,parent:f,index:h,range:e}))):d.isText?(c+=(p=d==null?void 0:d.text)===null||p===void 0?void 0:p.slice(Math.max(r,u)-u,o-u),l=!1):d.isBlock&&!l&&(c+=i,l=!0)}),c}function P2(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const JI=pn.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new Jt({key:new Mn("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:o}=e,{ranges:i}=o,s=Math.min(...i.map(u=>u.$from.pos)),c=Math.max(...i.map(u=>u.$to.pos)),l=P2(n);return D2(r,{from:s,to:c},{textSerializers:l})}}})]}}),XI=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),qI=(t=!1)=>({commands:e})=>e.setContent("",t),ex=()=>({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,l)=>{if(c.type.isText)return;const{doc:d,mapping:u}=e,f=d.resolve(u.map(l)),h=d.resolve(u.map(l+c.nodeSize)),p=f.blockRange(h);if(!p)return;const m=si(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},tx=t=>e=>t(e),nx=()=>({state:t,dispatch:e})=>wI(t,e),rx=(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 Qe(r.doc.resolve(s-1))),!0},ox=()=>({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),l=o.after(i);t.delete(c,l).scrollIntoView()}return!0}return!1},ix=t=>({tr:e,state:n,dispatch:r})=>{const o=Et(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 l=i.before(s),d=i.after(s);e.delete(l,d).scrollIntoView()}return!0}return!1},sx=t=>({tr:e,dispatch:n})=>{const{from:r,to:o}=t;return n&&e.delete(r,o),!0},ax=()=>({state:t,dispatch:e})=>fI(t,e),lx=()=>({commands:t})=>t.keyboardShortcut("Enter"),cx=()=>({state:t,dispatch:e})=>_I(t,e);function ml(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(o=>n.strict?e[o]===t[o]:Fu(e[o])?e[o].test(t[o]):e[o]===t[o]):!0}function Uu(t,e,n={}){return t.find(r=>r.type===e&&ml(r.attrs,n))}function dx(t,e,n={}){return!!Uu(t,e,n)}function Hu(t,e,n={}){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if(t.parentOffset===r.offset&&r.offset!==0&&(r=t.parent.childBefore(t.parentOffset)),!r.node)return;const o=Uu([...r.node.marks],e,n);if(!o)return;let i=r.index,s=t.start()+r.offset,c=i+1,l=s+r.node.nodeSize;for(Uu([...r.node.marks],e,n);i>0&&o.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;c<t.parent.childCount&&dx([...t.parent.child(c).marks],e,n);)l+=t.parent.child(c).nodeSize,c+=1;return{from:s,to:l}}function Yr(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const ux=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const i=Yr(t,r.schema),{doc:s,selection:c}=n,{$from:l,from:d,to:u}=c;if(o){const f=Hu(l,i,e);if(f&&f.from<=d&&f.to>=u){const h=Qe.create(s,f.from,f.to);n.setSelection(h)}}return!0},fx=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 Wu(t){return t instanceof Qe}function pr(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function B2(t,e=null){if(!e)return null;const n=Ge.atStart(t),r=Ge.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const o=n.from,i=r.to;return e==="all"?Qe.create(t,pr(0,o,i),pr(t.content.size,o,i)):Qe.create(t,pr(e,o,i),pr(e,o,i))}function Ku(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const hx=(t=null,e={})=>({editor:n,view:r,tr:o,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{Ku()&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!Wu(n.state.selection))return s(),!0;const c=B2(o.doc,t)||n.state.selection,l=n.state.selection.eq(c);return i&&(l||o.setSelection(c),l&&o.storedMarks&&o.setStoredMarks(o.storedMarks),s()),!0},px=(t,e)=>n=>t.every((r,o)=>e(r,{...n,index:o})),mx=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e);function $2(t){const e=`<body>${t}</body>`;return new window.DOMParser().parseFromString(e,"text/html").body}function gl(t,e,n){if(n={slice:!0,parseOptions:{},...n},typeof t=="object"&&t!==null)try{return Array.isArray(t)&&t.length>0?he.fromArray(t.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(t)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",r),gl("",e,n)}if(typeof t=="string"){const r=oi.fromSchema(e);return n.slice?r.parseSlice($2(t),n.parseOptions).content:r.parse($2(t),n.parseOptions)}return gl("",e,n)}function gx(t,e,n){const r=t.steps.length-1;if(r<e)return;const o=t.steps[r];if(!(o instanceof kt||o instanceof Ct))return;const i=t.mapping.maps[r];let s=0;i.forEach((c,l,d,u)=>{s===0&&(s=u)}),t.setSelection(Ge.near(t.doc.resolve(s),n))}const yx=t=>t.toString().startsWith("<"),vx=(t,e,n)=>({tr:r,dispatch:o,editor:i})=>{if(o){n={parseOptions:{},updateSelection:!0,...n};const s=gl(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions}});if(s.toString()==="<>")return!0;let{from:c,to:l}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},d=!0,u=!0;if((yx(s)?s:[s]).forEach(h=>{h.check(),d=d?h.isText&&h.marks.length===0:!1,u=u?h.isBlock:!1}),c===l&&u){const{parent:h}=r.doc.resolve(c);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(c-=1,l+=1)}d?Array.isArray(e)?r.insertText(e.map(h=>h.text||"").join(""),c,l):typeof e=="object"&&e&&e.text?r.insertText(e.text,c,l):r.insertText(e,c,l):r.replaceWith(c,l,s),n.updateSelection&&gx(r,r.steps.length-1,-1)}return!0},bx=()=>({state:t,dispatch:e})=>bI(t,e),Cx=()=>({state:t,dispatch:e})=>CI(t,e),Ex=()=>({state:t,dispatch:e})=>pI(t,e),Sx=()=>({state:t,dispatch:e})=>yI(t,e),_x=()=>({tr:t,state:e,dispatch:n})=>{try{const r=el(e.doc,e.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),n&&n(t),!0)}catch{return!1}},wx=()=>({state:t,dispatch:e,tr:n})=>{try{const r=el(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}};function R2(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function kx(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 l=e[c];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))o=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Ku()||R2()?s=!0:o=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),o&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const Ax=t=>({editor:e,view:n,tr:r,dispatch:o})=>{const i=kx(t).split(/-(?!$)/),s=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),c=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",d=>d(n,c))});return l==null||l.steps.forEach(d=>{const u=d.map(r.mapping);u&&o&&r.maybeStep(u)}),!0};function Fs(t,e,n={}){const{from:r,to:o,empty:i}=t.selection,s=e?Et(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 l=o-r,d=c.filter(f=>s?s.name===f.node.type.name:!0).filter(f=>ml(f.node.attrs,n,{strict:!1}));return i?!!d.length:d.reduce((f,h)=>f+h.to-h.from,0)>=l}const Tx=(t,e={})=>({state:n,dispatch:r})=>{const o=Et(t,n.schema);return Fs(n,o,e)?EI(n,r):!1},Ix=()=>({state:t,dispatch:e})=>kI(t,e),xx=t=>({state:e,dispatch:n})=>{const r=Et(t,e.schema);return LI(r)(e,n)},Ox=()=>({state:t,dispatch:e})=>SI(t,e);function yl(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function V2(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,o)=>(n.includes(o)||(r[o]=t[o]),r),{})}const Nx=(t,e)=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=yl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Et(t,r.schema)),c==="mark"&&(s=Yr(t,r.schema)),o&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(d,u)=>{i&&i===d.type&&n.setNodeMarkup(u,void 0,V2(d.attrs,e)),s&&d.marks.length&&d.marks.forEach(f=>{s===f.type&&n.addMark(u,u+d.nodeSize,s.create(V2(f.attrs,e)))})})}),!0):!1},Mx=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),Lx=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),Dx=()=>({state:t,dispatch:e})=>mI(t,e),Px=()=>({state:t,dispatch:e})=>vI(t,e),Bx=()=>({state:t,dispatch:e})=>AI(t,e),$x=()=>({state:t,dispatch:e})=>xI(t,e),Rx=()=>({state:t,dispatch:e})=>II(t,e);function F2(t,e,n={}){return gl(t,e,{slice:!1,parseOptions:n})}const Vx=(t,e=!1,n={})=>({tr:r,editor:o,dispatch:i})=>{const{doc:s}=r,c=F2(t,o.schema,n);return i&&r.replaceWith(0,s.content.size,c).setMeta("preventUpdate",!e),!0};function vl(t,e){const n=Yr(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,l=>{s.push(...l.marks)});const c=s.find(l=>l.type.name===n.name);return c?{...c.attrs}:{}}function Fx(t,e){const n=new tg(t);return e.forEach(r=>{r.steps.forEach(o=>{n.step(o)})}),n}function jx(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 zx(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(o,i)=>{n(o)&&r.push({node:o,pos:i})}),r}function Ux(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 Yu(t){return e=>Ux(e.$from,t)}function Hx(t,e){const n=jn.fromSchema(e).serializeFragment(t),o=document.implementation.createHTMLDocument().createElement("div");return o.appendChild(n),o.innerHTML}function Wx(t,e){const n={from:0,to:t.content.size};return D2(t,n,e)}function Kx(t,e){const n=Et(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 j2(t,e){const n=yl(typeof e=="string"?e:e.name,t.schema);return n==="node"?Kx(t,e):n==="mark"?vl(t,e):{}}function Yx(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 Gx(t){const e=Yx(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 Qx(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((o,i)=>{const s=[];if(o.ranges.length)o.forEach((c,l)=>{s.push({from:c,to:l})});else{const{from:c,to:l}=n[i];if(c===void 0||l===void 0)return;s.push({from:c,to:l})}s.forEach(({from:c,to:l})=>{const d=e.slice(i).map(c,-1),u=e.slice(i).map(l),f=e.invert().map(d,-1),h=e.invert().map(u);r.push({oldRange:{from:f,to:h},newRange:{from:d,to:u}})})}),Gx(r)}function Gu(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(o=>{const i=n.resolve(t-1),s=Hu(i,o.type);s&&r.push({mark:o,...s})}):n.nodesBetween(t,e,(o,i)=>{r.push(...o.marks.map(s=>({from:i,to:i+o.nodeSize,mark:s})))}),r}function bl(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const o=t.find(i=>i.type===e&&i.name===r);return o?o.attribute.keepOnSplit:!1}))}function Qu(t,e,n={}){const{empty:r,ranges:o}=t.selection,i=e?Yr(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(f=>i?i.name===f.type.name:!0).find(f=>ml(f.attrs,n,{strict:!1}));let s=0;const c=[];if(o.forEach(({$from:f,$to:h})=>{const p=f.pos,m=h.pos;t.doc.nodesBetween(p,m,(g,y)=>{if(!g.isText&&!g.marks.length)return;const C=Math.max(p,y),E=Math.min(m,y+g.nodeSize),b=E-C;s+=b,c.push(...g.marks.map(v=>({mark:v,from:C,to:E})))})}),s===0)return!1;const l=c.filter(f=>i?i.name===f.mark.type.name:!0).filter(f=>ml(f.mark.attrs,n,{strict:!1})).reduce((f,h)=>f+h.to-h.from,0),d=c.filter(f=>i?f.mark.type!==i&&f.mark.type.excludes(i):!0).reduce((f,h)=>f+h.to-h.from,0);return(l>0?l+d:l)>=s}function Zx(t,e,n={}){if(!e)return Fs(t,null,n)||Qu(t,null,n);const r=yl(e,t.schema);return r==="node"?Fs(t,e,n):r==="mark"?Qu(t,e,n):!1}function z2(t,e){const{nodeExtensions:n}=hl(e),r=n.find(s=>s.name===t);if(!r)return!1;const o={name:r.name,options:r.options,storage:r.storage},i=He(Ie(r,"group",o));return typeof i!="string"?!1:i.split(" ").includes("list")}function Jx(t){var e;const n=(e=t.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=t.toJSON();return JSON.stringify(n)===JSON.stringify(r)}function Xx(t){return t instanceof De}function U2(t,e,n){const o=t.state.doc.content.size,i=pr(e,0,o),s=pr(n,0,o),c=t.coordsAtPos(i),l=t.coordsAtPos(s,-1),d=Math.min(c.top,l.top),u=Math.max(c.bottom,l.bottom),f=Math.min(c.left,l.left),h=Math.max(c.right,l.right),p=h-f,m=u-d,C={top:d,bottom:u,left:f,right:h,width:p,height:m,x:f,y:d};return{...C,toJSON:()=>C}}function qx(t,e,n){var r;const{selection:o}=e;let i=null;if(Wu(o)&&(i=o.$cursor),i){const c=(r=t.storedMarks)!==null&&r!==void 0?r:i.marks();return!!n.isInSet(c)||!c.some(l=>l.type.excludes(n))}const{ranges:s}=o;return s.some(({$from:c,$to:l})=>{let d=c.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(c.pos,l.pos,(u,f,h)=>{if(d)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(n),m=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));d=p&&m}return!d}),d})}const eO=(t,e={})=>({tr:n,state:r,dispatch:o})=>{const{selection:i}=n,{empty:s,ranges:c}=i,l=Yr(t,r.schema);if(o)if(s){const d=vl(r,l);n.addStoredMark(l.create({...d,...e}))}else c.forEach(d=>{const u=d.$from.pos,f=d.$to.pos;r.doc.nodesBetween(u,f,(h,p)=>{const m=Math.max(p,u),g=Math.min(p+h.nodeSize,f);h.marks.find(C=>C.type===l)?h.marks.forEach(C=>{l===C.type&&n.addMark(m,g,l.create({...C.attrs,...e}))}):n.addMark(m,g,l.create(e))})});return qx(r,n,l)},tO=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),nO=(t,e={})=>({state:n,dispatch:r,chain:o})=>{const i=Et(t,n.schema);return i.isTextblock?o().command(({commands:s})=>T2(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>T2(i,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},rO=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,o=pr(t,0,r.content.size),i=De.create(r,o);e.setSelection(i)}return!0},oO=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:o,to:i}=typeof t=="number"?{from:t,to:t}:t,s=Qe.atStart(r).from,c=Qe.atEnd(r).to,l=pr(o,s,c),d=pr(i,s,c),u=Qe.create(r,l,d);e.setSelection(u)}return!0},iO=t=>({state:e,dispatch:n})=>{const r=Et(t,e.schema);return BI(r)(e,n)};function H2(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(o=>e==null?void 0:e.includes(o.type.name));t.tr.ensureMarks(r)}}const sO=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:o})=>{const{selection:i,doc:s}=e,{$from:c,$to:l}=i,d=o.extensionManager.attributes,u=bl(d,c.node().type.name,c.node().attrs);if(i instanceof De&&i.node.isBlock)return!c.parentOffset||!ai(s,c.pos)?!1:(r&&(t&&H2(n,o.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;if(r){const f=l.parentOffset===l.parent.content.size;i instanceof Qe&&e.deleteSelection();const h=c.depth===0?void 0:jx(c.node(-1).contentMatchAt(c.indexAfter(-1)));let p=f&&h?[{type:h,attrs:u}]:void 0,m=ai(e.doc,e.mapping.map(c.pos),1,p);if(!p&&!m&&ai(e.doc,e.mapping.map(c.pos),1,h?[{type:h}]:void 0)&&(m=!0,p=h?[{type:h,attrs:u}]:void 0),m&&(e.split(e.mapping.map(c.pos),1,p),h&&!f&&!c.parentOffset&&c.parent.type!==h)){const g=e.mapping.map(c.before()),y=e.doc.resolve(g);c.node(-1).canReplaceWith(y.index(),y.index()+1,h)&&e.setNodeMarkup(e.mapping.map(c.before()),h)}t&&H2(n,o.extensionManager.splittableMarks),e.scrollIntoView()}return!0},aO=t=>({tr:e,state:n,dispatch:r,editor:o})=>{var i;const s=Et(t,n.schema),{$from:c,$to:l}=n.selection,d=n.selection.node;if(d&&d.isBlock||c.depth<2||!c.sameParent(l))return!1;const u=c.node(-1);if(u.type!==s)return!1;const f=o.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==s||c.index(-2)!==c.node(-2).childCount-1)return!1;if(r){let y=he.empty;const C=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-C;O>=c.depth-3;O-=1)y=he.from(c.node(O).copy(y));const E=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,b=bl(f,c.node().type.name,c.node().attrs),v=((i=s.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(b))||void 0;y=y.append(he.from(s.createAndFill(null,v)||void 0));const k=c.before(c.depth-(C-1));e.replace(k,c.after(-E),new we(y,4-C,0));let _=-1;e.doc.nodesBetween(k,e.doc.content.size,(O,L)=>{if(_>-1)return!1;O.isTextblock&&O.content.size===0&&(_=L+1)}),_>-1&&e.setSelection(Qe.near(e.doc.resolve(_))),e.scrollIntoView()}return!0}const h=l.pos===c.end()?u.contentMatchAt(0).defaultType:null,p=bl(f,u.type.name,u.attrs),m=bl(f,c.node().type.name,c.node().attrs);e.delete(c.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:m}]:[{type:s,attrs:p}];if(!ai(e.doc,c.pos,2))return!1;if(r){const{selection:y,storedMarks:C}=n,{splittableMarks:E}=o.extensionManager,b=C||y.$to.parentOffset&&y.$from.marks();if(e.split(c.pos,2,g).scrollIntoView(),!b||!r)return!0;const v=b.filter(k=>E.includes(k.type.name));e.ensureMarks(v)}return!0},Zu=(t,e)=>{const n=Yu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&$r(t.doc,n.pos)&&t.join(n.pos),!0},Ju=(t,e)=>{const n=Yu(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const o=t.doc.nodeAt(r);return n.node.type===(o==null?void 0:o.type)&&$r(t.doc,r)&&t.join(r),!0};var lO=Object.freeze({__proto__:null,blur:XI,clearContent:qI,clearNodes:ex,command:tx,createParagraphNear:nx,cut:rx,deleteCurrentNode:ox,deleteNode:ix,deleteRange:sx,deleteSelection:ax,enter:lx,exitCode:cx,extendMarkRange:ux,first:fx,focus:hx,forEach:px,insertContent:mx,insertContentAt:vx,joinUp:bx,joinDown:Cx,joinBackward:Ex,joinForward:Sx,joinItemBackward:_x,joinItemForward:wx,keyboardShortcut:Ax,lift:Tx,liftEmptyBlock:Ix,liftListItem:xx,newlineInCode:Ox,resetAttributes:Nx,scrollIntoView:Mx,selectAll:Lx,selectNodeBackward:Dx,selectNodeForward:Px,selectParentNode:Bx,selectTextblockEnd:$x,selectTextblockStart:Rx,setContent:Vx,setMark:eO,setMeta:tO,setNode:nO,setNodeSelection:rO,setTextSelection:oO,sinkListItem:iO,splitBlock:sO,splitListItem:aO,toggleList:(t,e,n,r={})=>({editor:o,tr:i,state:s,dispatch:c,chain:l,commands:d,can:u})=>{const{extensions:f,splittableMarks:h}=o.extensionManager,p=Et(t,s.schema),m=Et(e,s.schema),{selection:g,storedMarks:y}=s,{$from:C,$to:E}=g,b=C.blockRange(E),v=y||g.$to.parentOffset&&g.$from.marks();if(!b)return!1;const k=Yu(_=>z2(_.type.name,f))(g);if(b.depth>=1&&k&&b.depth-k.depth<=1){if(k.node.type===p)return d.liftListItem(m);if(z2(k.node.type.name,f)&&p.validContent(k.node.content)&&c)return l().command(()=>(i.setNodeMarkup(k.pos,p),!0)).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run()}return!n||!v||!c?l().command(()=>u().wrapInList(p,r)?!0:d.clearNodes()).wrapInList(p,r).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run():l().command(()=>{const _=u().wrapInList(p,r),O=v.filter(L=>h.includes(L.type.name));return i.ensureMarks(O),_?!0:d.clearNodes()}).wrapInList(p,r).command(()=>Zu(i,p)).command(()=>Ju(i,p)).run()},toggleMark:(t,e={},n={})=>({state:r,commands:o})=>{const{extendEmptyMarkRange:i=!1}=n,s=Yr(t,r.schema);return Qu(r,s,e)?o.unsetMark(s,{extendEmptyMarkRange:i}):o.setMark(s,e)},toggleNode:(t,e,n={})=>({state:r,commands:o})=>{const i=Et(t,r.schema),s=Et(e,r.schema);return Fs(r,i,n)?o.setNode(s):o.setNode(i,n)},toggleWrap:(t,e={})=>({state:n,commands:r})=>{const o=Et(t,n.schema);return Fs(n,o,e)?r.lift(o):r.wrapIn(o,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const o=n[r];let i;if(o.spec.isInputRules&&(i=o.getState(t))){if(e){const s=t.tr,c=i.transform;for(let l=c.steps.length-1;l>=0;l-=1)s.step(c.steps[l].invert(c.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:o}=n;return r||e&&o.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:r,dispatch:o})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:c}=n,l=Yr(t,r.schema),{$from:d,empty:u,ranges:f}=c;if(!o)return!0;if(u&&s){let{from:h,to:p}=c;const m=(i=d.marks().find(y=>y.type===l))===null||i===void 0?void 0:i.attrs,g=Hu(d,l,m);g&&(h=g.from,p=g.to),n.removeMark(h,p,l)}else f.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:r,dispatch:o})=>{let i=null,s=null;const c=yl(typeof t=="string"?t:t.name,r.schema);return c?(c==="node"&&(i=Et(t,r.schema)),c==="mark"&&(s=Yr(t,r.schema)),o&&n.selection.ranges.forEach(l=>{const d=l.$from.pos,u=l.$to.pos;r.doc.nodesBetween(d,u,(f,h)=>{i&&i===f.type&&n.setNodeMarkup(h,void 0,{...f.attrs,...e}),s&&f.marks.length&&f.marks.forEach(p=>{if(s===p.type){const m=Math.max(h,d),g=Math.min(h+f.nodeSize,u);n.addMark(m,g,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:r})=>{const o=Et(t,n.schema);return OI(o,e)(n,r)},wrapInList:(t,e={})=>({state:n,dispatch:r})=>{const o=Et(t,n.schema);return NI(o,e)(n,r)}});const cO=pn.create({name:"commands",addCommands(){return{...lO}}}),dO=pn.create({name:"editable",addProseMirrorPlugins(){return[new Jt({key:new Mn("editable"),props:{editable:()=>this.editor.options.editable}})]}}),uO=pn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Jt({key:new Mn("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),fO=pn.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:c})=>{const{selection:l,doc:d}=c,{empty:u,$anchor:f}=l,{pos:h,parent:p}=f,m=f.parent.isTextblock?c.doc.resolve(h-1):f,g=m.parent.type.spec.isolating,y=f.pos-f.parentOffset,C=g&&m.parent.childCount===1?y===f.pos:Ge.atStart(d).from===h;return!u||!C||!p.type.isTextblock||p.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},o={...r},i={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Ku()||R2()?i:o},addProseMirrorPlugins(){return[new Jt({key:new Mn("clearDocument"),appendTransaction:(t,e,n)=>{if(!(t.some(m=>m.docChanged)&&!e.doc.eq(n.doc)))return;const{empty:o,from:i,to:s}=e.selection,c=Ge.atStart(e.doc).from,l=Ge.atEnd(e.doc).to;if(o||!(i===c&&s===l)||!(n.doc.textBetween(0,n.doc.content.size," "," ").length===0))return;const f=n.tr,h=ul({state:n,transaction:f}),{commands:p}=new fl({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),hO=pn.create({name:"tabindex",addProseMirrorPlugins(){return[new Jt({key:new Mn("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var pO=Object.freeze({__proto__:null,ClipboardTextSerializer:JI,Commands:cO,Editable:dO,FocusEvents:uO,Keymap:fO,Tabindex:hO});const mO=`.ProseMirror {
|
|
1248
1248
|
position: relative;
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
@@ -1333,13 +1333,13 @@ img.ProseMirror-separator {
|
|
|
1333
1333
|
`)}function Ry(t){return[AN(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Gs;process.env.NODE_ENV!=="production"&&TN();function TN(){Gs=new Set}function gr(t,e){if(t&&!Gs.has(e)){var n;Gs.add(e),(n=console).warn.apply(n,Ry(e))}}function yf(t,e){if(t&&!Gs.has(e)){var n;Gs.add(e),(n=console).error.apply(n,Ry(e))}}function IN(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;yf(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),yf(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Vy={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},xN={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ln=Object.assign({appendTo:Iy,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Vy,xN),ON=Object.keys(ln),NN=function(e){process.env.NODE_ENV!=="production"&&zy(e,[]);var n=Object.keys(e);n.forEach(function(r){ln[r]=e[r]})};function Fy(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,s=o.defaultValue;if(i){var c;r[i]=t[i]!==void 0?t[i]:(c=ln[i])!=null?c:s}return r},{});return Object.assign({},t,n)}function MN(t,e){var n=e?Object.keys(Fy(Object.assign({},ln,{plugins:e}))):ON,r=n.reduce(function(o,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return o;if(i==="content")o[i]=s;else try{o[i]=JSON.parse(s)}catch{o[i]=s}return o},{});return r}function jy(t,e){var n=Object.assign({},e,{content:xy(e.content,[t])},e.ignoreAttributes?{}:MN(t,e.plugins));return n.aria=Object.assign({},ln.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function zy(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=uN(ln,Object.keys(Vy)),i=!dN(o,r);i&&(i=e.filter(function(s){return s.name===r}).length===0),gr(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
1334
1334
|
|
|
1335
1335
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
1336
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var LN=function(){return"innerHTML"};function vf(t,e){t[LN()]=e}function Uy(t){var e=Ks();return t===!0?e.className=Ay:(e.className=Ty,Ys(t)?e.appendChild(t):vf(e,t)),e}function Hy(t,e){Ys(e.content)?(vf(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?vf(t,e.content):t.textContent=e.content)}function bf(t){var e=t.firstElementChild,n=Ol(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(ky)}),arrow:n.find(function(r){return r.classList.contains(Ay)||r.classList.contains(Ty)}),backdrop:n.find(function(r){return r.classList.contains(cN)})}}function Wy(t){var e=Ks(),n=Ks();n.className=lN,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ks();r.className=ky,r.setAttribute("data-state","hidden"),Hy(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var c=bf(e),l=c.box,d=c.content,u=c.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Hy(d,t.props),s.arrow?u?i.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(Uy(s.arrow))):l.appendChild(Uy(s.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:o}}Wy.$$tippy=!0;var DN=1,Nl=[],Cf=[];function PN(t,e){var n=jy(t,Object.assign({},ln,Fy(My(e)))),r,o,i,s=!1,c=!1,l=!1,d=!1,u,f,h,p=[],m=Oy(I,n.interactiveDebounce),g,y=DN++,C=null,E=hN(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:y,reference:t,popper:Ks(),popperInstance:C,props:n,state:b,plugins:E,clearDelayTimeouts:Ae,setProps:te,setContent:se,show:_e,hide:Re,hideWithInteractivity:it,enable:le,disable:ge,unmount:ct,destroy:Ht};if(!n.render)return process.env.NODE_ENV!=="production"&&yf(!0,"render() function has not been supplied."),v;var k=n.render(v),_=k.popper,O=k.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+v.id,v.popper=_,t._tippy=v,_._tippy=v;var L=E.map(function(re){return re.fn(v)}),N=t.hasAttribute("aria-expanded");return B(),ne(),Q(),U("onCreate",[v]),n.showOnCreate&&H(),_.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",m)}),v;function z(){var re=v.props.touch;return Array.isArray(re)?re:[re,0]}function V(){return z()[0]==="hold"}function P(){var re;return!!((re=v.props.render)!=null&&re.$$tippy)}function j(){return g||t}function K(){var re=j().parentNode;return re?bN(re):document}function F(){return bf(_)}function W(re){return v.state.isMounted&&!v.state.isVisible||Gn.isTouch||u&&u.type==="focus"?0:hf(v.props.delay,re?0:1,ln.delay)}function Q(re){re===void 0&&(re=!1),_.style.pointerEvents=v.props.interactive&&!re?"":"none",_.style.zIndex=""+v.props.zIndex}function U(re,ve,ye){if(ye===void 0&&(ye=!0),L.forEach(function(Pe){Pe[re]&&Pe[re].apply(Pe,ve)}),ye){var Me;(Me=v.props)[re].apply(Me,ve)}}function ee(){var re=v.props.aria;if(re.content){var ve="aria-"+re.content,ye=_.id,Me=Ai(v.props.triggerTarget||t);Me.forEach(function(Pe){var st=Pe.getAttribute(ve);if(v.state.isVisible)Pe.setAttribute(ve,st?st+" "+ye:ye);else{var dt=st&&st.replace(ye,"").trim();dt?Pe.setAttribute(ve,dt):Pe.removeAttribute(ve)}})}}function ne(){if(!(N||!v.props.aria.expanded)){var re=Ai(v.props.triggerTarget||t);re.forEach(function(ve){v.props.interactive?ve.setAttribute("aria-expanded",v.state.isVisible&&ve===j()?"true":"false"):ve.removeAttribute("aria-expanded")})}}function ae(){K().removeEventListener("mousemove",m),Nl=Nl.filter(function(re){return re!==m})}function ue(re){if(!(Gn.isTouch&&(l||re.type==="mousedown"))){var ve=re.composedPath&&re.composedPath()[0]||re.target;if(!(v.props.interactive&&Dy(_,ve))){if(Ai(v.props.triggerTarget||t).some(function(ye){return Dy(ye,ve)})){if(Gn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[v,re]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),c=!0,setTimeout(function(){c=!1}),v.state.isMounted||Oe())}}}function me(){l=!0}function Ee(){l=!1}function ke(){var re=K();re.addEventListener("mousedown",ue,!0),re.addEventListener("touchend",ue,Lo),re.addEventListener("touchstart",Ee,Lo),re.addEventListener("touchmove",me,Lo)}function Oe(){var re=K();re.removeEventListener("mousedown",ue,!0),re.removeEventListener("touchend",ue,Lo),re.removeEventListener("touchstart",Ee,Lo),re.removeEventListener("touchmove",me,Lo)}function Se(re,ve){$(re,function(){!v.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&ve()})}function D(re,ve){$(re,ve)}function $(re,ve){var ye=F().box;function Me(Pe){Pe.target===ye&&(gf(ye,"remove",Me),ve())}if(re===0)return ve();gf(ye,"remove",f),gf(ye,"add",Me),f=Me}function x(re,ve,ye){ye===void 0&&(ye=!1);var Me=Ai(v.props.triggerTarget||t);Me.forEach(function(Pe){Pe.addEventListener(re,ve,ye),p.push({node:Pe,eventType:re,handler:ve,options:ye})})}function B(){V()&&(x("touchstart",w,{passive:!0}),x("touchend",M,{passive:!0})),fN(v.props.trigger).forEach(function(re){if(re!=="manual")switch(x(re,w),re){case"mouseenter":x("mouseleave",M);break;case"focus":x(kN?"focusout":"blur",Y);break;case"focusin":x("focusout",Y);break}})}function S(){p.forEach(function(re){var ve=re.node,ye=re.eventType,Me=re.handler,Pe=re.options;ve.removeEventListener(ye,Me,Pe)}),p=[]}function w(re){var ve,ye=!1;if(!(!v.state.isEnabled||G(re)||c)){var Me=((ve=u)==null?void 0:ve.type)==="focus";u=re,g=re.currentTarget,ne(),!v.state.isVisible&&gN(re)&&Nl.forEach(function(Pe){return Pe(re)}),re.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?ye=!0:H(re),re.type==="click"&&(s=!ye),ye&&!Me&&Z(re)}}function I(re){var ve=re.target,ye=j().contains(ve)||_.contains(ve);if(!(re.type==="mousemove"&&ye)){var Me=T().concat(_).map(function(Pe){var st,dt=Pe._tippy,Wt=(st=dt.popperInstance)==null?void 0:st.state;return Wt?{popperRect:Pe.getBoundingClientRect(),popperState:Wt,props:n}:null}).filter(Boolean);CN(Me,re)&&(ae(),Z(re))}}function M(re){var ve=G(re)||v.props.trigger.indexOf("click")>=0&&s;if(!ve){if(v.props.interactive){v.hideWithInteractivity(re);return}Z(re)}}function Y(re){v.props.trigger.indexOf("focusin")<0&&re.target!==j()||v.props.interactive&&re.relatedTarget&&_.contains(re.relatedTarget)||Z(re)}function G(re){return Gn.isTouch?V()!==re.type.indexOf("touch")>=0:!1}function J(){X();var re=v.props,ve=re.popperOptions,ye=re.placement,Me=re.offset,Pe=re.getReferenceClientRect,st=re.moveTransition,dt=P()?bf(_).arrow:null,Wt=Pe?{getBoundingClientRect:Pe,contextElement:Pe.contextElement||j()}:t,Kt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(so){var cn=so.state;if(P()){var Cn=F(),Ui=Cn.box;["placement","reference-hidden","escaped"].forEach(function(En){En==="placement"?Ui.setAttribute("data-placement",cn.placement):cn.attributes.popper["data-popper-"+En]?Ui.setAttribute("data-"+En,""):Ui.removeAttribute("data-"+En)}),cn.attributes.popper={}}}},
|
|
1336
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var LN=function(){return"innerHTML"};function vf(t,e){t[LN()]=e}function Uy(t){var e=Ks();return t===!0?e.className=Ay:(e.className=Ty,Ys(t)?e.appendChild(t):vf(e,t)),e}function Hy(t,e){Ys(e.content)?(vf(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?vf(t,e.content):t.textContent=e.content)}function bf(t){var e=t.firstElementChild,n=Ol(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(ky)}),arrow:n.find(function(r){return r.classList.contains(Ay)||r.classList.contains(Ty)}),backdrop:n.find(function(r){return r.classList.contains(cN)})}}function Wy(t){var e=Ks(),n=Ks();n.className=lN,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ks();r.className=ky,r.setAttribute("data-state","hidden"),Hy(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,s){var c=bf(e),l=c.box,d=c.content,u=c.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Hy(d,t.props),s.arrow?u?i.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(Uy(s.arrow))):l.appendChild(Uy(s.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:o}}Wy.$$tippy=!0;var DN=1,Nl=[],Cf=[];function PN(t,e){var n=jy(t,Object.assign({},ln,Fy(My(e)))),r,o,i,s=!1,c=!1,l=!1,d=!1,u,f,h,p=[],m=Oy(I,n.interactiveDebounce),g,y=DN++,C=null,E=hN(n.plugins),b={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},v={id:y,reference:t,popper:Ks(),popperInstance:C,props:n,state:b,plugins:E,clearDelayTimeouts:Ae,setProps:te,setContent:se,show:_e,hide:Re,hideWithInteractivity:it,enable:le,disable:ge,unmount:ct,destroy:Ht};if(!n.render)return process.env.NODE_ENV!=="production"&&yf(!0,"render() function has not been supplied."),v;var k=n.render(v),_=k.popper,O=k.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+v.id,v.popper=_,t._tippy=v,_._tippy=v;var L=E.map(function(re){return re.fn(v)}),N=t.hasAttribute("aria-expanded");return B(),ne(),Q(),U("onCreate",[v]),n.showOnCreate&&H(),_.addEventListener("mouseenter",function(){v.props.interactive&&v.state.isVisible&&v.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){v.props.interactive&&v.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",m)}),v;function z(){var re=v.props.touch;return Array.isArray(re)?re:[re,0]}function V(){return z()[0]==="hold"}function P(){var re;return!!((re=v.props.render)!=null&&re.$$tippy)}function j(){return g||t}function K(){var re=j().parentNode;return re?bN(re):document}function F(){return bf(_)}function W(re){return v.state.isMounted&&!v.state.isVisible||Gn.isTouch||u&&u.type==="focus"?0:hf(v.props.delay,re?0:1,ln.delay)}function Q(re){re===void 0&&(re=!1),_.style.pointerEvents=v.props.interactive&&!re?"":"none",_.style.zIndex=""+v.props.zIndex}function U(re,ve,ye){if(ye===void 0&&(ye=!0),L.forEach(function(Pe){Pe[re]&&Pe[re].apply(Pe,ve)}),ye){var Me;(Me=v.props)[re].apply(Me,ve)}}function ee(){var re=v.props.aria;if(re.content){var ve="aria-"+re.content,ye=_.id,Me=Ai(v.props.triggerTarget||t);Me.forEach(function(Pe){var st=Pe.getAttribute(ve);if(v.state.isVisible)Pe.setAttribute(ve,st?st+" "+ye:ye);else{var dt=st&&st.replace(ye,"").trim();dt?Pe.setAttribute(ve,dt):Pe.removeAttribute(ve)}})}}function ne(){if(!(N||!v.props.aria.expanded)){var re=Ai(v.props.triggerTarget||t);re.forEach(function(ve){v.props.interactive?ve.setAttribute("aria-expanded",v.state.isVisible&&ve===j()?"true":"false"):ve.removeAttribute("aria-expanded")})}}function ae(){K().removeEventListener("mousemove",m),Nl=Nl.filter(function(re){return re!==m})}function ue(re){if(!(Gn.isTouch&&(l||re.type==="mousedown"))){var ve=re.composedPath&&re.composedPath()[0]||re.target;if(!(v.props.interactive&&Dy(_,ve))){if(Ai(v.props.triggerTarget||t).some(function(ye){return Dy(ye,ve)})){if(Gn.isTouch||v.state.isVisible&&v.props.trigger.indexOf("click")>=0)return}else U("onClickOutside",[v,re]);v.props.hideOnClick===!0&&(v.clearDelayTimeouts(),v.hide(),c=!0,setTimeout(function(){c=!1}),v.state.isMounted||Oe())}}}function me(){l=!0}function Ee(){l=!1}function ke(){var re=K();re.addEventListener("mousedown",ue,!0),re.addEventListener("touchend",ue,Lo),re.addEventListener("touchstart",Ee,Lo),re.addEventListener("touchmove",me,Lo)}function Oe(){var re=K();re.removeEventListener("mousedown",ue,!0),re.removeEventListener("touchend",ue,Lo),re.removeEventListener("touchstart",Ee,Lo),re.removeEventListener("touchmove",me,Lo)}function Se(re,ve){$(re,function(){!v.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&ve()})}function D(re,ve){$(re,ve)}function $(re,ve){var ye=F().box;function Me(Pe){Pe.target===ye&&(gf(ye,"remove",Me),ve())}if(re===0)return ve();gf(ye,"remove",f),gf(ye,"add",Me),f=Me}function x(re,ve,ye){ye===void 0&&(ye=!1);var Me=Ai(v.props.triggerTarget||t);Me.forEach(function(Pe){Pe.addEventListener(re,ve,ye),p.push({node:Pe,eventType:re,handler:ve,options:ye})})}function B(){V()&&(x("touchstart",w,{passive:!0}),x("touchend",M,{passive:!0})),fN(v.props.trigger).forEach(function(re){if(re!=="manual")switch(x(re,w),re){case"mouseenter":x("mouseleave",M);break;case"focus":x(kN?"focusout":"blur",Y);break;case"focusin":x("focusout",Y);break}})}function S(){p.forEach(function(re){var ve=re.node,ye=re.eventType,Me=re.handler,Pe=re.options;ve.removeEventListener(ye,Me,Pe)}),p=[]}function w(re){var ve,ye=!1;if(!(!v.state.isEnabled||G(re)||c)){var Me=((ve=u)==null?void 0:ve.type)==="focus";u=re,g=re.currentTarget,ne(),!v.state.isVisible&&gN(re)&&Nl.forEach(function(Pe){return Pe(re)}),re.type==="click"&&(v.props.trigger.indexOf("mouseenter")<0||s)&&v.props.hideOnClick!==!1&&v.state.isVisible?ye=!0:H(re),re.type==="click"&&(s=!ye),ye&&!Me&&Z(re)}}function I(re){var ve=re.target,ye=j().contains(ve)||_.contains(ve);if(!(re.type==="mousemove"&&ye)){var Me=T().concat(_).map(function(Pe){var st,dt=Pe._tippy,Wt=(st=dt.popperInstance)==null?void 0:st.state;return Wt?{popperRect:Pe.getBoundingClientRect(),popperState:Wt,props:n}:null}).filter(Boolean);CN(Me,re)&&(ae(),Z(re))}}function M(re){var ve=G(re)||v.props.trigger.indexOf("click")>=0&&s;if(!ve){if(v.props.interactive){v.hideWithInteractivity(re);return}Z(re)}}function Y(re){v.props.trigger.indexOf("focusin")<0&&re.target!==j()||v.props.interactive&&re.relatedTarget&&_.contains(re.relatedTarget)||Z(re)}function G(re){return Gn.isTouch?V()!==re.type.indexOf("touch")>=0:!1}function J(){X();var re=v.props,ve=re.popperOptions,ye=re.placement,Me=re.offset,Pe=re.getReferenceClientRect,st=re.moveTransition,dt=P()?bf(_).arrow:null,Wt=Pe?{getBoundingClientRect:Pe,contextElement:Pe.contextElement||j()}:t,Kt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(so){var cn=so.state;if(P()){var Cn=F(),Ui=Cn.box;["placement","reference-hidden","escaped"].forEach(function(En){En==="placement"?Ui.setAttribute("data-placement",cn.placement):cn.attributes.popper["data-popper-"+En]?Ui.setAttribute("data-"+En,""):Ui.removeAttribute("data-"+En)}),cn.attributes.popper={}}}},Tt=[{name:"offset",options:{offset:Me}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!st}},Kt];P()&&dt&&Tt.push({name:"arrow",options:{element:dt,padding:3}}),Tt.push.apply(Tt,(ve==null?void 0:ve.modifiers)||[]),v.popperInstance=xl(Wt,_,Object.assign({},ve,{placement:ye,onFirstUpdate:h,modifiers:Tt}))}function X(){v.popperInstance&&(v.popperInstance.destroy(),v.popperInstance=null)}function A(){var re=v.props.appendTo,ve,ye=j();v.props.interactive&&re===Iy||re==="parent"?ve=ye.parentNode:ve=xy(re,[ye]),ve.contains(_)||ve.appendChild(_),v.state.isMounted=!0,J(),process.env.NODE_ENV!=="production"&&gr(v.props.interactive&&re===ln.appendTo&&ye.nextElementSibling!==_,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
1337
1337
|
|
|
1338
1338
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
1339
1339
|
|
|
1340
1340
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
1341
1341
|
|
|
1342
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function T(){return Ol(_.querySelectorAll("[data-tippy-root]"))}function H(re){v.clearDelayTimeouts(),re&&U("onTrigger",[v,re]),ke();var ve=W(!0),ye=z(),Me=ye[0],Pe=ye[1];Gn.isTouch&&Me==="hold"&&Pe&&(ve=Pe),ve?r=setTimeout(function(){v.show()},ve):v.show()}function Z(re){if(v.clearDelayTimeouts(),U("onUntrigger",[v,re]),!v.state.isVisible){Oe();return}if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.type)>=0&&s)){var ve=W(!1);ve?o=setTimeout(function(){v.state.isVisible&&v.hide()},ve):i=requestAnimationFrame(function(){v.hide()})}}function le(){v.state.isEnabled=!0}function ge(){v.hide(),v.state.isEnabled=!1}function Ae(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function te(re){if(process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("setProps")),!v.state.isDestroyed){U("onBeforeUpdate",[v,re]),S();var ve=v.props,ye=jy(t,Object.assign({},ve,My(re),{ignoreAttributes:!0}));v.props=ye,B(),ve.interactiveDebounce!==ye.interactiveDebounce&&(ae(),m=Oy(I,ye.interactiveDebounce)),ve.triggerTarget&&!ye.triggerTarget?Ai(ve.triggerTarget).forEach(function(Me){Me.removeAttribute("aria-expanded")}):ye.triggerTarget&&t.removeAttribute("aria-expanded"),ne(),Q(),O&&O(ve,ye),v.popperInstance&&(J(),T().forEach(function(Me){requestAnimationFrame(Me._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[v,re])}}function se(re){v.setProps({content:re})}function _e(){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("show"));var re=v.state.isVisible,ve=v.state.isDestroyed,ye=!v.state.isEnabled,Me=Gn.isTouch&&!v.props.touch,Pe=hf(v.props.duration,0,ln.duration);if(!(re||ve||ye||Me)&&!j().hasAttribute("disabled")&&(U("onShow",[v],!1),v.props.onShow(v)!==!1)){if(v.state.isVisible=!0,P()&&(_.style.visibility="visible"),Q(),ke(),v.state.isMounted||(_.style.transition="none"),P()){var st=F(),dt=st.box,Wt=st.content;mf([dt,Wt],0)}h=function(){var
|
|
1342
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function T(){return Ol(_.querySelectorAll("[data-tippy-root]"))}function H(re){v.clearDelayTimeouts(),re&&U("onTrigger",[v,re]),ke();var ve=W(!0),ye=z(),Me=ye[0],Pe=ye[1];Gn.isTouch&&Me==="hold"&&Pe&&(ve=Pe),ve?r=setTimeout(function(){v.show()},ve):v.show()}function Z(re){if(v.clearDelayTimeouts(),U("onUntrigger",[v,re]),!v.state.isVisible){Oe();return}if(!(v.props.trigger.indexOf("mouseenter")>=0&&v.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(re.type)>=0&&s)){var ve=W(!1);ve?o=setTimeout(function(){v.state.isVisible&&v.hide()},ve):i=requestAnimationFrame(function(){v.hide()})}}function le(){v.state.isEnabled=!0}function ge(){v.hide(),v.state.isEnabled=!1}function Ae(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function te(re){if(process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("setProps")),!v.state.isDestroyed){U("onBeforeUpdate",[v,re]),S();var ve=v.props,ye=jy(t,Object.assign({},ve,My(re),{ignoreAttributes:!0}));v.props=ye,B(),ve.interactiveDebounce!==ye.interactiveDebounce&&(ae(),m=Oy(I,ye.interactiveDebounce)),ve.triggerTarget&&!ye.triggerTarget?Ai(ve.triggerTarget).forEach(function(Me){Me.removeAttribute("aria-expanded")}):ye.triggerTarget&&t.removeAttribute("aria-expanded"),ne(),Q(),O&&O(ve,ye),v.popperInstance&&(J(),T().forEach(function(Me){requestAnimationFrame(Me._tippy.popperInstance.forceUpdate)})),U("onAfterUpdate",[v,re])}}function se(re){v.setProps({content:re})}function _e(){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("show"));var re=v.state.isVisible,ve=v.state.isDestroyed,ye=!v.state.isEnabled,Me=Gn.isTouch&&!v.props.touch,Pe=hf(v.props.duration,0,ln.duration);if(!(re||ve||ye||Me)&&!j().hasAttribute("disabled")&&(U("onShow",[v],!1),v.props.onShow(v)!==!1)){if(v.state.isVisible=!0,P()&&(_.style.visibility="visible"),Q(),ke(),v.state.isMounted||(_.style.transition="none"),P()){var st=F(),dt=st.box,Wt=st.content;mf([dt,Wt],0)}h=function(){var Tt;if(!(!v.state.isVisible||d)){if(d=!0,_.offsetHeight,_.style.transition=v.props.moveTransition,P()&&v.props.animation){var er=F(),so=er.box,cn=er.content;mf([so,cn],Pe),Ly([so,cn],"visible")}ee(),ne(),Ny(Cf,v),(Tt=v.popperInstance)==null||Tt.forceUpdate(),U("onMount",[v]),v.props.animation&&P()&&D(Pe,function(){v.state.isShown=!0,U("onShown",[v])})}},A()}}function Re(){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("hide"));var re=!v.state.isVisible,ve=v.state.isDestroyed,ye=!v.state.isEnabled,Me=hf(v.props.duration,1,ln.duration);if(!(re||ve||ye)&&(U("onHide",[v],!1),v.props.onHide(v)!==!1)){if(v.state.isVisible=!1,v.state.isShown=!1,d=!1,s=!1,P()&&(_.style.visibility="hidden"),ae(),Oe(),Q(!0),P()){var Pe=F(),st=Pe.box,dt=Pe.content;v.props.animation&&(mf([st,dt],Me),Ly([st,dt],"hidden"))}ee(),ne(),v.props.animation?P()&&Se(Me,v.unmount):v.unmount()}}function it(re){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("hideWithInteractivity")),K().addEventListener("mousemove",m),Ny(Nl,m),m(re)}function ct(){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("unmount")),v.state.isVisible&&v.hide(),v.state.isMounted&&(X(),T().forEach(function(re){re._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),Cf=Cf.filter(function(re){return re!==v}),v.state.isMounted=!1,U("onHidden",[v]))}function Ht(){process.env.NODE_ENV!=="production"&&gr(v.state.isDestroyed,Ti("destroy")),!v.state.isDestroyed&&(v.clearDelayTimeouts(),v.unmount(),S(),delete t._tippy,v.state.isDestroyed=!0,U("onDestroy",[v]))}}function Ii(t,e){e===void 0&&(e={});var n=ln.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(IN(t),zy(e,n)),_N();var r=Object.assign({},e,{plugins:n}),o=vN(t);if(process.env.NODE_ENV!=="production"){var i=Ys(r.content),s=o.length>1;gr(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
1343
1343
|
|
|
1344
1344
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
1345
1345
|
|
|
@@ -1348,18 +1348,18 @@ img.ProseMirror-separator {
|
|
|
1348
1348
|
`,ZN="️",JN="";let dc=null,uc=null;function XN(t){t===void 0&&(t=[]);const e={};qt.groups=e;const n=new qt;dc==null&&(dc=r5(HN)),uc==null&&(uc=r5(WN)),be(n,"'",Zl),be(n,"{",Zs),be(n,"}",Js),be(n,"[",Pl),be(n,"]",Bl),be(n,"(",$l),be(n,")",Rl),be(n,"<",Vl),be(n,">",Fl),be(n,"(",jl),be(n,")",zl),be(n,"「",Ul),be(n,"」",Hl),be(n,"『",Wl),be(n,"』",Kl),be(n,"<",Yl),be(n,">",Gl),be(n,"&",Ql),be(n,"*",Jl),be(n,"@",Zr),be(n,"`",ql),be(n,"^",ec),be(n,":",Jr),be(n,",",Of),be(n,"$",tc),be(n,".",Qn),be(n,"=",nc),be(n,"!",Nf),be(n,"-",Zn),be(n,"%",rc),be(n,"|",oc),be(n,"+",ic),be(n,"#",sc),be(n,"?",ac),be(n,'"',Mf),be(n,"/",Jn),be(n,";",Lf),be(n,"~",Xs),be(n,"_",lc),be(n,"\\",Xl);const r=mn(n,Bf,If,{[Ef]:!0});mn(r,Bf,r);const o=mn(n,Ni,yr,{[Sf]:!0});mn(o,Ni,o);const i=mn(n,Df,kf,{[_f]:!0});mn(i,Ni),mn(i,Df,i);const s=mn(n,t5,Xy,{[Zy]:!0});be(n,n5,xf,{[Zy]:!0}),be(s,n5),mn(s,t5,s);const c=mn(n,Pf,qy,{[Qy]:!0});mn(c,Pf,c),be(c,ZN,c);const l=be(c,JN);mn(l,Pf,c);const d=[[Ni,o]],u=[[Ni,null],[Df,i]];for(let f=0;f<dc.length;f++)Xr(n,dc[f],Af,yr,d);for(let f=0;f<uc.length;f++)Xr(n,uc[f],Tf,kf,u);Do(Af,{tld:!0,ascii:!0},e),Do(Tf,{utld:!0,alpha:!0},e),Xr(n,"file",Dl,yr,d),Xr(n,"mailto",Dl,yr,d),Xr(n,"http",Oi,yr,d),Xr(n,"https",Oi,yr,d),Xr(n,"ftp",Oi,yr,d),Xr(n,"ftps",Oi,yr,d),Do(Dl,{scheme:!0,ascii:!0},e),Do(Oi,{slashscheme:!0,ascii:!0},e),t=t.sort((f,h)=>f[0]>h[0]?1:-1);for(let f=0;f<t.length;f++){const h=t[f][0],m=t[f][1]?{[KN]:!0}:{[YN]:!0};h.indexOf("-")>=0?m[wf]=!0:Ni.test(h)?Bf.test(h)?m[Ml]=!0:m[Sf]=!0:m[Ef]=!0,Jy(n,h,h,m)}return Jy(n,"localhost",Qs,{ascii:!0}),n.jd=new qt(cc),{start:n,tokens:xi({groups:e},e5)}}function qN(t,e){const n=eM(e.replace(/[A-Z]/g,c=>c.toLowerCase())),r=n.length,o=[];let i=0,s=0;for(;s<r;){let c=t,l=null,d=0,u=null,f=-1,h=-1;for(;s<r&&(l=c.go(n[s]));)c=l,c.accepts()?(f=0,h=0,u=c):f>=0&&(f+=n[s].length,h++),d+=n[s].length,i+=n[s].length,s++;i-=f,s-=h,d-=f,o.push({t:u.t,v:e.slice(i-d,i),s:i-d,e:i})}return o}function eM(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 Xr(t,e,n,r,o){let i;const s=e.length;for(let c=0;c<s-1;c++){const l=e[c];t.j[l]?i=t.j[l]:(i=new qt(r),i.jr=o.slice(),t.j[l]=i),t=i}return i=new qt(n),i.jr=o.slice(),t.j[e[s-1]]=i,i}function r5(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 qs={defaultProtocol:"http",events:null,format:o5,formatHref:o5,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function $f(t,e){e===void 0&&(e=null);let n=xi({},qs);t&&(n=xi(n,t instanceof $f?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}$f.prototype={o:qs,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]:qs[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 o5(t){return t}function i5(t,e){this.t="token",this.v=t,this.tk=e}i5.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),r=t.get("format",e,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=qs.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),r=t.get("formatHref",n,this),o=t.get("tagName",n,e),i=this.toFormattedString(t),s={},c=t.get("className",n,e),l=t.get("target",n,e),d=t.get("rel",n,e),u=t.getObj("attributes",n,e),f=t.getObj("events",n,e);return s.href=r,c&&(s.class=c),l&&(s.target=l),d&&(s.rel=d),u&&xi(s,u),{tagName:o,attributes:s,content:i,eventListeners:f}}};function fc(t,e){class n extends i5{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 s5=fc("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),a5=fc("text"),tM=fc("nl"),hc=fc("url",{isLink:!0,toHref(t){return t===void 0&&(t=qs.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Qs&&t[1].t===Jr}}),gn=t=>new qt(t);function nM(t){let{groups:e}=t;const n=e.domain.concat([Ql,Jl,Zr,Xl,ql,ec,tc,nc,Zn,If,rc,oc,ic,sc,Jn,cc,Xs,lc]),r=[Zl,Jr,Of,Qn,Nf,ac,Mf,Lf,Vl,Fl,Zs,Js,Bl,Pl,$l,Rl,jl,zl,Ul,Hl,Wl,Kl,Yl,Gl],o=[Ql,Zl,Jl,Xl,ql,ec,tc,nc,Zn,Zs,Js,rc,oc,ic,sc,ac,Jn,cc,Xs,lc],i=gn(),s=be(i,Xs);je(s,o,s),je(s,e.domain,s);const c=gn(),l=gn(),d=gn();je(i,e.domain,c),je(i,e.scheme,l),je(i,e.slashscheme,d),je(c,o,s),je(c,e.domain,c);const u=be(c,Zr);be(s,Zr,u),be(l,Zr,u),be(d,Zr,u);const f=be(s,Qn);je(f,o,s),je(f,e.domain,s);const h=gn();je(u,e.domain,h),je(h,e.domain,h);const p=be(h,Qn);je(p,e.domain,h);const m=gn(s5);je(p,e.tld,m),je(p,e.utld,m),be(u,Qs,m);const g=be(h,Zn);je(g,e.domain,h),je(m,e.domain,h),be(m,Qn,p),be(m,Zn,g);const y=be(m,Jr);je(y,e.numeric,s5);const C=be(c,Zn),E=be(c,Qn);je(C,e.domain,c),je(E,o,s),je(E,e.domain,c);const b=gn(hc);je(E,e.tld,b),je(E,e.utld,b),je(b,e.domain,c),je(b,o,s),be(b,Qn,E),be(b,Zn,C),be(b,Zr,u);const v=be(b,Jr),k=gn(hc);je(v,e.numeric,k);const _=gn(hc),O=gn();je(_,n,_),je(_,r,O),je(O,n,_),je(O,r,O),be(b,Jn,_),be(k,Jn,_);const L=be(l,Jr),N=be(d,Jr),z=be(N,Jn),V=be(z,Jn);je(l,e.domain,c),be(l,Qn,E),be(l,Zn,C),je(d,e.domain,c),be(d,Qn,E),be(d,Zn,C),je(L,e.domain,_),be(L,Jn,_),je(V,e.domain,_),je(V,n,_),be(V,Jn,_);const P=[[Zs,Js],[Pl,Bl],[$l,Rl],[Vl,Fl],[jl,zl],[Ul,Hl],[Wl,Kl],[Yl,Gl]];for(let j=0;j<P.length;j++){const[K,F]=P[j],W=be(_,K);be(O,K,W),be(W,F,_);const Q=gn(hc);je(W,n,Q);const U=gn();je(W,r),je(Q,n,Q),je(Q,r,U),je(U,n,Q),je(U,r,U),be(Q,F,_),be(U,F,_)}return be(i,Qs,b),be(i,xf,tM),{start:i,tokens:e5}}function rM(t,e,n){let r=n.length,o=0,i=[],s=[];for(;o<r;){let c=t,l=null,d=null,u=0,f=null,h=-1;for(;o<r&&!(l=c.go(n[o].t));)s.push(n[o++]);for(;o<r&&(d=l||c.go(n[o].t));)l=null,c=d,c.accepts()?(h=0,f=c):h>=0&&h++,o++,u++;if(h<0)o-=u,o<r&&(s.push(n[o]),o++);else{s.length>0&&(i.push(Rf(a5,e,s)),s=[]),o-=h,u-=h;const p=f.t,m=n.slice(o-u,o);i.push(Rf(p,e,m))}}return s.length>0&&i.push(Rf(a5,e,s)),i}function Rf(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 oM=typeof console<"u"&&console&&console.warn||(()=>{}),iM="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ot={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function sM(){qt.groups={},ot.scanner=null,ot.parser=null,ot.tokenQueue=[],ot.pluginQueue=[],ot.customSchemes=[],ot.initialized=!1}function l5(t,e){if(e===void 0&&(e=!1),ot.initialized&&oM(`linkifyjs: already initialized - will not register custom scheme "${t}" ${iM}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
|
|
1349
1349
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
1350
1350
|
2. Cannot start or end with "-"
|
|
1351
|
-
3. "-" cannot repeat`);ot.customSchemes.push([t,e])}function aM(){ot.scanner=XN(ot.customSchemes);for(let t=0;t<ot.tokenQueue.length;t++)ot.tokenQueue[t][1]({scanner:ot.scanner});ot.parser=nM(ot.scanner.tokens);for(let t=0;t<ot.pluginQueue.length;t++)ot.pluginQueue[t][1]({scanner:ot.scanner,parser:ot.parser});ot.initialized=!0}function lM(t){return ot.initialized||aM(),rM(ot.parser.start,t,qN(ot.scanner.start,t))}function Vf(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new $f(n),o=lM(t),i=[];for(let s=0;s<o.length;s++){const c=o[s];c.isLink&&(!e||c.t===e)&&r.check(c)&&i.push(c.toFormattedObject(r))}return i}function cM(t){return new Jt({key:new Mn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=Fx(n.doc,[...e]);if(Qx(c).forEach(({newRange:d})=>{const u=zx(r.doc,d,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,d.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Vf(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate?t.validate(y.value):!0).forEach(y=>{Gu(y.from,y.to,r.doc).some(C=>C.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function dM(t){return new Jt({key:new Mn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const c=j2(e.state,t.type.name),l=r.target,d=(o=l==null?void 0:l.href)!==null&&o!==void 0?o:c.href,u=(i=l==null?void 0:l.target)!==null&&i!==void 0?i:c.target;return l&&d?(e.editable&&window.open(d,u),!0):!1}}})}function uM(t){return new Jt({key:new Mn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let l="";r.content.forEach(m=>{l+=m.textContent});const d=Vf(l).find(m=>m.isLink&&m.value===l);if(!l||!d)return!1;const u=(o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:d.href;return t.editor.commands.setMark(t.type,{href:p}),!0}}})}const fM=Kn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){l5(t);return}l5(t.scheme,t.optionalSlashes)})},onDestroy(){sM()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[js({find:t=>Vf(t).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(t,e)=>{var n,r;const o=(n=e==null?void 0:e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=t.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(cM({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(dM({type:this.type})),this.options.linkOnPaste&&t.push(uM({editor:this.editor,type:this.type})),t}}).extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),hM=pn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Jt({key:new Mn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=t.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(t))&&i.content.findDiffStart(t.content)===null;return t.descendants((c,l)=>{const d=r>=l&&r<=l+c.nodeSize,u=!c.isLeaf&&!c.childCount;if((d||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=hn.node(l,l+c.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:l,hasAnchor:d}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),gt.create(t,o)}}})]}}),pM=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,mM=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,gM=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,yM=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,vM=Kn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Cl({find:pM,type:this.type}),Cl({find:gM,type:this.type})]},addPasteRules(){return[js({find:mM,type:this.type}),js({find:yM,type:this.type})]}}),bM=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,CM=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,EM=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,SM=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,_M=Kn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Cl({find:bM,type:this.type}),Cl({find:EM,type:this.type})]},addPasteRules(){return[js({find:CM,type:this.type}),js({find:SM,type:this.type})]}}),wM=Kn.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",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),kM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),AM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),c5=Kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=vl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),d5=/^\s*([-+*])\s$/,TM=mr.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",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(AM.name,this.editor.getAttributes(c5.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=El({find:d5,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=El({find:d5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(c5.name),editor:this.editor})),[t]}}),IM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),u5=Kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=vl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),f5=/^(\d+)\.\s$/,xM=mr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",jt(this.options.HTMLAttributes,n),0]:["ol",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(IM.name,this.editor.getAttributes(u5.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=El({find:f5,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=El({find:f5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(u5.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),OM=mr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",jt(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
1351
|
+
3. "-" cannot repeat`);ot.customSchemes.push([t,e])}function aM(){ot.scanner=XN(ot.customSchemes);for(let t=0;t<ot.tokenQueue.length;t++)ot.tokenQueue[t][1]({scanner:ot.scanner});ot.parser=nM(ot.scanner.tokens);for(let t=0;t<ot.pluginQueue.length;t++)ot.pluginQueue[t][1]({scanner:ot.scanner,parser:ot.parser});ot.initialized=!0}function lM(t){return ot.initialized||aM(),rM(ot.parser.start,t,qN(ot.scanner.start,t))}function Vf(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const r=new $f(n),o=lM(t),i=[];for(let s=0;s<o.length;s++){const c=o[s];c.isLink&&(!e||c.t===e)&&r.check(c)&&i.push(c.toFormattedObject(r))}return i}function cM(t){return new Jt({key:new Mn("autolink"),appendTransaction:(e,n,r)=>{const o=e.some(d=>d.docChanged)&&!n.doc.eq(r.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!o||i)return;const{tr:s}=r,c=Fx(n.doc,[...e]);if(Qx(c).forEach(({newRange:d})=>{const u=zx(r.doc,d,p=>p.isTextblock);let f,h;if(u.length>1?(f=u[0],h=r.doc.textBetween(f.pos,f.pos+f.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(f=u[0],h=r.doc.textBetween(f.pos,d.to,void 0," ")),f&&h){const p=h.split(" ").filter(y=>y!=="");if(p.length<=0)return!1;const m=p[p.length-1],g=f.pos+h.lastIndexOf(m);if(!m)return!1;Vf(m).filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>r.schema.marks.code?!r.doc.rangeHasMark(y.from,y.to,r.schema.marks.code):!0).filter(y=>t.validate?t.validate(y.value):!0).forEach(y=>{Gu(y.from,y.to,r.doc).some(C=>C.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function dM(t){return new Jt({key:new Mn("handleClickLink"),props:{handleClick:(e,n,r)=>{var o,i;if(r.button!==0||r.target.nodeName!=="A")return!1;const c=j2(e.state,t.type.name),l=r.target,d=(o=l==null?void 0:l.href)!==null&&o!==void 0?o:c.href,u=(i=l==null?void 0:l.target)!==null&&i!==void 0?i:c.target;return l&&d?(e.editable&&window.open(d,u),!0):!1}}})}function uM(t){return new Jt({key:new Mn("handlePasteLink"),props:{handlePaste:(e,n,r)=>{var o;const{state:i}=e,{selection:s}=i,{empty:c}=s;if(c)return!1;let l="";r.content.forEach(m=>{l+=m.textContent});const d=Vf(l).find(m=>m.isLink&&m.value===l);if(!l||!d)return!1;const u=(o=n.clipboardData)===null||o===void 0?void 0:o.getData("text/html"),f=/href="([^"]*)"/,h=u==null?void 0:u.match(f),p=h?h[1]:d.href;return t.editor.commands.setMark(t.type,{href:p}),!0}}})}const fM=Kn.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){l5(t);return}l5(t.scheme,t.optionalSlashes)})},onDestroy(){sM()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:t}){return["a",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[js({find:t=>Vf(t).filter(e=>this.options.validate?this.options.validate(e.value):!0).filter(e=>e.isLink).map(e=>({text:e.value,index:e.start,data:e})),type:this.type,getAttributes:(t,e)=>{var n,r;const o=(n=e==null?void 0:e.clipboardData)===null||n===void 0?void 0:n.getData("text/html"),i=/href="([^"]*)"/,s=o==null?void 0:o.match(i);return s?{href:s[1]}:{href:(r=t.data)===null||r===void 0?void 0:r.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(cM({type:this.type,validate:this.options.validate})),this.options.openOnClick&&t.push(dM({type:this.type})),this.options.linkOnPaste&&t.push(uM({editor:this.editor,type:this.type})),t}}).extend({addAttributes(){var t;return{...(t=this.parent)==null?void 0:t.call(this),title:{default:null,parseHTML:e=>e.getAttribute("title"),renderHTML:e=>({title:e.title})}}}}),hM=pn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Jt({key:new Mn("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=e,o=[];if(!n)return null;const i=t.type.createAndFill(),s=(i==null?void 0:i.sameMarkup(t))&&i.content.findDiffStart(t.content)===null;return t.descendants((c,l)=>{const d=r>=l&&r<=l+c.nodeSize,u=!c.isLeaf&&!c.childCount;if((d||!this.options.showOnlyCurrent)&&u){const f=[this.options.emptyNodeClass];s&&f.push(this.options.emptyEditorClass);const h=hn.node(l,l+c.nodeSize,{class:f.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:c,pos:l,hasAnchor:d}):this.options.placeholder});o.push(h)}return this.options.includeChildren}),yt.create(t,o)}}})]}}),pM=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,mM=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,gM=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,yM=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,vM=Kn.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>t.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML({HTMLAttributes:t}){return["strong",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>({commands:t})=>t.setMark(this.name),toggleBold:()=>({commands:t})=>t.toggleMark(this.name),unsetBold:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Cl({find:pM,type:this.type}),Cl({find:gM,type:this.type})]},addPasteRules(){return[js({find:mM,type:this.type}),js({find:yM,type:this.type})]}}),bM=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,CM=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,EM=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,SM=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,_M=Kn.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>t.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:t}){return["em",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>({commands:t})=>t.setMark(this.name),toggleItalic:()=>({commands:t})=>t.toggleMark(this.name),unsetItalic:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Cl({find:bM,type:this.type}),Cl({find:EM,type:this.type})]},addPasteRules(){return[js({find:CM,type:this.type}),js({find:SM,type:this.type})]}}),wM=Kn.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",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),kM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),AM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),c5=Kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=vl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),d5=/^\s*([-+*])\s$/,TM=mr.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",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(AM.name,this.editor.getAttributes(c5.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let t=El({find:d5,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=El({find:d5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(c5.name),editor:this.editor})),[t]}}),IM=mr.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:t}){return["li",jt(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),u5=Kn.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:t=>t.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["span",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:t,commands:e})=>{const n=vl(t,this.type);return Object.entries(n).some(([,o])=>!!o)?!0:e.unsetMark(this.name)}}}}),f5=/^(\d+)\.\s$/,xM=mr.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:t}){const{start:e,...n}=t;return e===1?["ol",jt(this.options.HTMLAttributes,n),0]:["ol",jt(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(IM.name,this.editor.getAttributes(u5.name)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=El({find:f5,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=El({find:f5,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(u5.name)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),OM=mr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",jt(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
1352
1352
|
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:r})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:o,storedMarks:i}=n;if(o.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:c}=r.extensionManager,l=i||o.$to.parentOffset&&o.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&l&&s){const f=l.filter(h=>c.includes(h.type.name));d.ensureMarks(f)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),NM={class:"popover bd-link-input-popover show bd-link-input-bottom"},MM=a.createElementVNode("div",{class:"popover-header"},"Voeg een link toe",-1),LM={class:"popover-body"},DM={class:"form-label"},PM=a.defineComponent({__name:"BDLinkInput",props:{previousUrl:{}},emits:["submit","cancel"],setup(t,{emit:e}){const n=t,r=a.ref(n.previousUrl??""),o=()=>e("submit",r.value),i=()=>e("cancel");return(s,c)=>(a.openBlock(),a.createElementBlock("div",NM,[MM,a.createElementVNode("div",LM,[a.createElementVNode("label",DM,[a.createTextVNode(" URL: "),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=l=>r.value=l),type:"text",class:"form-control",placeholder:"https://www.example.com"},null,512),[[a.vModelText,r.value]])]),a.createElementVNode("div",{class:"d-flex gap-2 mt-2"},[a.createElementVNode("button",{type:"button",class:"btn btn-primary btn-sm",onClick:o}," Toevoegen "),a.createElementVNode("button",{type:"button",class:"btn btn-secondary btn-sm",onClick:i}," Annuleren ")])])]))}}),Ff={BASIC:"basic",FULL:"full"},BM={class:"attachment-list"},$M={class:"attachment-link"},RM={key:1,class:"attachment-no-download"},VM=["href"],ea=a.defineComponent({__name:"BDAttachmentPreviewList",props:{files:{default:[]},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete"],setup(t,{emit:e}){const n=r=>{e("delete",r)};return(r,o)=>(a.openBlock(),a.createElementBlock("ul",BM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.files,i=>(a.openBlock(),a.createElementBlock("li",{class:"attachment-list__item",key:i.CorrelationId},[a.createElementVNode("div",$M,[r.showDelete?(a.openBlock(),a.createBlock(ze,{key:0,variant:"remove",onClick:s=>n(i),"aria-label":"verwijder"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wi))]),_:2},1032,["onClick"])):a.createCommentVNode("",!0),r.noDownload?(a.openBlock(),a.createElementBlock("div",RM,[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(i.Naam.trim()),1)])):(a.openBlock(),a.createElementBlock("a",{key:2,href:i.downloadUrl},[a.createVNode(a.unref(_r)),a.createTextVNode(" "+a.toDisplayString(i.Naam.trim()),1)],8,VM))])]))),128))]))}}),FM={class:"attachment-list"},jM={class:"attachment"},zM=["onClick"],UM=["src","alt"],HM=["onClick"],WM=["href"],KM={class:"btn btn-light download-button-image"},YM=["src","alt"],ta=a.defineComponent({__name:"BDImageAttachmentPreviewList",props:{fastDownload:{type:Boolean,default:!1},files:{default:void 0},showDelete:{type:Boolean,default:!1},noDownload:{type:Boolean,default:!1}},emits:["delete","show"],setup(t,{emit:e}){const n=t,r=i=>{e("delete",i)},o=(i,s)=>{i.target&&i.target.className==="img-preview"&&e("show",s)};return(i,s)=>(a.openBlock(),a.createElementBlock("ul",FM,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.files,c=>(a.openBlock(),a.createElementBlock("li",{class:"attachment-list__item",key:c.CorrelationId},[a.createElementVNode("div",jM,[i.showDelete?(a.openBlock(),a.createBlock(ze,{key:0,variant:"remove","aria-label":"verwijder",onClick:a.withModifiers(l=>r(c),["prevent"])},{default:a.withCtx(()=>[a.createVNode(a.unref(Wi))]),_:2},1032,["onClick"])):a.createCommentVNode("",!0),n.noDownload?(a.openBlock(),a.createElementBlock("div",{key:1,onClick:l=>o(l,c)},[a.createElementVNode("img",{src:c.previewUrl,class:"img-preview",alt:c.altName,loading:"lazy"},null,8,UM)],8,zM)):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:l=>o(l,c)},[n.fastDownload?(a.openBlock(),a.createElementBlock("a",{key:0,href:c.downloadUrl,class:"download-link"},[a.createElementVNode("button",KM,[a.createVNode(a.unref(jc))])],8,WM)):a.createCommentVNode("",!0),a.createElementVNode("img",{src:c.previewUrl,alt:c.altName,class:"img-preview",loading:"lazy"},null,8,YM)],8,HM))])]))),128))]))}}),GM=t=>t==null?void 0:t.map(e=>e.CorrelationId),h5=t=>t.Naam.toLowerCase().endsWith(".png")||t.Naam.toLowerCase().endsWith(".jpg")||t.Naam.toLowerCase().endsWith(".jpeg")||t.Naam.toLowerCase().endsWith(".gif"),QM=(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}`,p5=(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}`,ZM=(t,e)=>e.identifier?`${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}`:null,JM=(t,e)=>e?h5(t):!h5(t),Po=(t="",e,n)=>e===void 0?void 0:e.filter(o=>JM(o,n)).map(o=>{const i=typeof o.CorrelationId=="string"?o.CorrelationId:o.CorrelationId!=null?o.CorrelationId.toString():"";return{downloadUrl:QM(t,o),previewUrl:p5(t,o),fullImageUrl:ZM(t,o),altName:`${o.Naam}`,...o,CorrelationId:i}});/*!
|
|
1353
1353
|
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
|
1354
1354
|
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
1355
1355
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1356
|
-
*/const qr=new Map,jf={set(t,e,n){qr.has(t)||qr.set(t,new Map);const r=qr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return qr.has(t)&&qr.get(t).get(e)||null},remove(t,e){if(!qr.has(t))return;const n=qr.get(t);n.delete(e),n.size===0&&qr.delete(t)}},XM=1e6,qM=1e3,zf="transitionend",m5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),eL=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),tL=t=>{do t+=Math.floor(Math.random()*XM);while(document.getElementById(t));return t},nL=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))*qM)},g5=t=>{t.dispatchEvent(new Event(zf))},vr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),eo=t=>vr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(m5(t)):null,Mi=t=>{if(!vr(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},to=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",y5=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?y5(t.parentNode):null},pc=()=>{},na=t=>{t.offsetHeight},v5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Uf=[],rL=t=>{document.readyState==="loading"?(Uf.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Uf)e()}),Uf.push(t)):t()},yn=()=>document.documentElement.dir==="rtl",vn=t=>{rL(()=>{const e=v5();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)}})},en=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,b5=(t,e,n=!0)=>{if(!n){en(t);return}const r=5,o=nL(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(zf,s),en(t))};e.addEventListener(zf,s),setTimeout(()=>{i||g5(e)},o)},Hf=(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))])},oL=/[^.]*(?=\..*)\.|.*/,iL=/\..*/,sL=/::\d+$/,Wf={};let C5=1;const E5={mouseenter:"mouseover",mouseleave:"mouseout"},aL=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 S5(t,e){return e&&`${e}::${C5++}`||t.uidEvent||C5++}function _5(t){const e=S5(t);return t.uidEvent=e,Wf[e]=Wf[e]||{},Wf[e]}function lL(t,e){return function n(r){return Yf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function cL(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 Yf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function w5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function k5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=T5(t);return aL.has(i)||(i=t),[r,o,i]}function A5(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=k5(e,n,r);e in E5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const l=_5(t),d=l[c]||(l[c]={}),u=w5(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=S5(s,e.replace(oL,"")),h=i?cL(t,n,s):lL(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function Kf(t,e,n,r,o){const i=w5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function dL(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Kf(t,e,n,s.callable,s.delegationSelector)}function T5(t){return t=t.replace(iL,""),E5[t]||t}const de={on(t,e,n,r){A5(t,e,n,r,!1)},one(t,e,n,r){A5(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=k5(e,n,r),c=s!==e,l=_5(t),d=l[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;Kf(t,l,s,i,o?n:null);return}if(u)for(const f of Object.keys(l))dL(t,l,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(sL,"");(!c||e.includes(p))&&Kf(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=v5(),o=T5(e),i=e!==o;let s=null,c=!0,l=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=Yf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),l&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Yf(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 I5(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 Gf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const br={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Gf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Gf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=I5(t.dataset[r])}return e},getDataAttribute(t,e){return I5(t.getAttribute(`data-bs-${Gf(e)}`))}};class ra{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=vr(n)?br.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vr(n)?br.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=vr(i)?"element":eL(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const uL="5.3.0";class $n extends ra{constructor(e,n){super(),e=eo(e),e&&(this._element=e,this._config=this._getConfig(n),jf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){b5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return jf.get(eo(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return uL}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 Qf=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 m5(e)},Ne={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!to(n)&&Mi(n))},getSelectorFromElement(t){const e=Qf(t);return e&&Ne.findOne(e)?e:null},getElementFromSelector(t){const e=Qf(t);return e?Ne.findOne(e):null},getMultipleElementsFromSelector(t){const e=Qf(t);return e?Ne.find(e):[]}},mc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),to(this))return;const i=Ne.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},fL="alert",x5=".bs.alert",hL=`close${x5}`,pL=`closed${x5}`,mL="fade",gL="show";class gc extends $n{static get NAME(){return fL}close(){if(de.trigger(this._element,hL).defaultPrevented)return;this._element.classList.remove(gL);const n=this._element.classList.contains(mL);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,pL),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=gc.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)}})}}mc(gc,"close"),vn(gc);const yL="button",vL=".bs.button",bL=".data-api",CL="active",O5='[data-bs-toggle="button"]',EL=`click${vL}${bL}`;class yc extends $n{static get NAME(){return yL}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CL))}static jQueryInterface(e){return this.each(function(){const n=yc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,EL,O5,t=>{t.preventDefault();const e=t.target.closest(O5);yc.getOrCreateInstance(e).toggle()}),vn(yc);const SL="swipe",Li=".bs.swipe",_L=`touchstart${Li}`,wL=`touchmove${Li}`,kL=`touchend${Li}`,AL=`pointerdown${Li}`,TL=`pointerup${Li}`,IL="touch",xL="pen",OL="pointer-event",NL=40,ML={endCallback:null,leftCallback:null,rightCallback:null},LL={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class vc extends ra{constructor(e,n){super(),this._element=e,!(!e||!vc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ML}static get DefaultType(){return LL}static get NAME(){return SL}dispose(){de.off(this._element,Li)}_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(),en(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<=NL)return;const n=e/this._deltaX;this._deltaX=0,n&&en(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,AL,e=>this._start(e)),de.on(this._element,TL,e=>this._end(e)),this._element.classList.add(OL)):(de.on(this._element,_L,e=>this._start(e)),de.on(this._element,wL,e=>this._move(e)),de.on(this._element,kL,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===xL||e.pointerType===IL)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const DL="carousel",no=".bs.carousel",N5=".data-api",PL="ArrowLeft",BL="ArrowRight",$L=500,oa="next",Di="prev",Pi="left",bc="right",RL=`slide${no}`,Zf=`slid${no}`,VL=`keydown${no}`,FL=`mouseenter${no}`,jL=`mouseleave${no}`,zL=`dragstart${no}`,UL=`load${no}${N5}`,HL=`click${no}${N5}`,M5="carousel",Cc="active",WL="slide",KL="carousel-item-end",YL="carousel-item-start",GL="carousel-item-next",QL="carousel-item-prev",L5=".active",D5=".carousel-item",ZL=L5+D5,JL=".carousel-item img",XL=".carousel-indicators",qL="[data-bs-slide], [data-bs-slide-to]",eD='[data-bs-ride="carousel"]',tD={[PL]:bc,[BL]:Pi},nD={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},rD={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ia extends $n{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ne.findOne(XL,this._element),this._addEventListeners(),this._config.ride===M5&&this.cycle()}static get Default(){return nD}static get DefaultType(){return rD}static get NAME(){return DL}next(){this._slide(oa)}nextWhenVisible(){!document.hidden&&Mi(this._element)&&this.next()}prev(){this._slide(Di)}pause(){this._isSliding&&g5(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Zf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Zf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?oa:Di;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,VL,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,FL,()=>this.pause()),de.on(this._element,jL,()=>this._maybeEnableCycle())),this._config.touch&&vc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ne.find(JL,this._element))de.on(r,zL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Pi)),rightCallback:()=>this._slide(this._directionToOrder(bc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$L+this._config.interval))}};this._swipeHelper=new vc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=tD[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ne.findOne(L5,this._indicatorsElement);n.classList.remove(Cc),n.removeAttribute("aria-current");const r=Ne.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Cc),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===oa,i=n||Hf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(RL).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?YL:KL,f=o?GL:QL;i.classList.add(f),na(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Cc),r.classList.remove(Cc,f,u),this._isSliding=!1,c(Zf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(WL)}_getActive(){return Ne.findOne(ZL,this._element)}_getItems(){return Ne.find(D5,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return yn()?e===Pi?Di:oa:e===Pi?oa:Di}_orderToDirection(e){return yn()?e===Di?Pi:bc:e===Di?bc:Pi}static jQueryInterface(e){return this.each(function(){const n=ia.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,HL,qL,function(t){const e=Ne.getElementFromSelector(this);if(!e||!e.classList.contains(M5))return;t.preventDefault();const n=ia.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(br.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,UL,()=>{const t=Ne.find(eD);for(const e of t)ia.getOrCreateInstance(e)}),vn(ia);const oD="collapse",sa=".bs.collapse",iD=".data-api",sD=`show${sa}`,aD=`shown${sa}`,lD=`hide${sa}`,cD=`hidden${sa}`,dD=`click${sa}${iD}`,Jf="show",Bi="collapse",Ec="collapsing",uD="collapsed",fD=`:scope .${Bi} .${Bi}`,hD="collapse-horizontal",pD="width",mD="height",gD=".collapse.show, .collapse.collapsing",Xf='[data-bs-toggle="collapse"]',yD={parent:null,toggle:!0},vD={parent:"(null|element)",toggle:"boolean"};class aa extends $n{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ne.find(Xf);for(const o of r){const i=Ne.getSelectorFromElement(o),s=Ne.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yD}static get DefaultType(){return vD}static get NAME(){return oD}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(gD).filter(c=>c!==this._element).map(c=>aa.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,sD).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(Bi),this._element.classList.add(Ec),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi,Jf),this._element.style[r]="",de.trigger(this._element,aD)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,lD).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,na(this._element),this._element.classList.add(Ec),this._element.classList.remove(Bi,Jf);for(const o of this._triggerArray){const i=Ne.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi),de.trigger(this._element,cD)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Jf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=eo(e.parent),e}_getDimension(){return this._element.classList.contains(hD)?pD:mD}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Xf);for(const n of e){const r=Ne.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ne.find(fD,this._config.parent);return Ne.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(uD,!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=aa.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,dD,Xf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Ne.getMultipleElementsFromSelector(this))aa.getOrCreateInstance(e,{toggle:!1}).toggle()}),vn(aa);const P5="dropdown",Bo=".bs.dropdown",qf=".data-api",bD="Escape",B5="Tab",CD="ArrowUp",$5="ArrowDown",ED=2,SD=`hide${Bo}`,_D=`hidden${Bo}`,wD=`show${Bo}`,kD=`shown${Bo}`,R5=`click${Bo}${qf}`,V5=`keydown${Bo}${qf}`,AD=`keyup${Bo}${qf}`,$i="show",TD="dropup",ID="dropend",xD="dropstart",OD="dropup-center",ND="dropdown-center",$o='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',MD=`${$o}.${$i}`,Sc=".dropdown-menu",LD=".navbar",DD=".navbar-nav",PD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",BD=yn()?"top-end":"top-start",$D=yn()?"top-start":"top-end",RD=yn()?"bottom-end":"bottom-start",VD=yn()?"bottom-start":"bottom-end",FD=yn()?"left-start":"right-start",jD=yn()?"right-start":"left-start",zD="top",UD="bottom",HD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},WD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xn extends $n{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ne.next(this._element,Sc)[0]||Ne.prev(this._element,Sc)[0]||Ne.findOne(Sc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return HD}static get DefaultType(){return WD}static get NAME(){return P5}toggle(){return this._isShown()?this.hide():this.show()}show(){if(to(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,wD,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(DD))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",pc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),de.trigger(this._element,kD,e)}}hide(){if(to(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,SD,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",pc);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),br.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,_D,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${P5.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof wy>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vr(this._config.reference)?e=eo(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=xl(e,this._menu,n)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains(ID))return FD;if(e.classList.contains(xD))return jD;if(e.classList.contains(OD))return zD;if(e.classList.contains(ND))return UD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(TD)?n?$D:BD:n?VD:RD}_detectNavbar(){return this._element.closest(LD)!==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")&&(br.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...en(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Ne.find(PD,this._menu).filter(o=>Mi(o));r.length&&Hf(r,n,e===$5,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Xn.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===ED||e.type==="keyup"&&e.key!==B5)return;const n=Ne.find(MD);for(const r of n){const o=Xn.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===B5||/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===bD,o=[CD,$5].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches($o)?this:Ne.prev(this,$o)[0]||Ne.next(this,$o)[0]||Ne.findOne($o,e.delegateTarget.parentNode),s=Xn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,V5,$o,Xn.dataApiKeydownHandler),de.on(document,V5,Sc,Xn.dataApiKeydownHandler),de.on(document,R5,Xn.clearMenus),de.on(document,AD,Xn.clearMenus),de.on(document,R5,$o,function(t){t.preventDefault(),Xn.getOrCreateInstance(this).toggle()}),vn(Xn);const F5="backdrop",KD="fade",j5="show",z5=`mousedown.bs.${F5}`,YD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},GD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class U5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return YD}static get DefaultType(){return GD}static get NAME(){return F5}show(e){if(!this._config.isVisible){en(e);return}this._append();const n=this._getElement();this._config.isAnimated&&na(n),n.classList.add(j5),this._emulateAnimation(()=>{en(e)})}hide(e){if(!this._config.isVisible){en(e);return}this._getElement().classList.remove(j5),this._emulateAnimation(()=>{this.dispose(),en(e)})}dispose(){this._isAppended&&(de.off(this._element,z5),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(KD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=eo(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,z5,()=>{en(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){b5(e,this._getElement(),this._config.isAnimated)}}const QD="focustrap",_c=".bs.focustrap",ZD=`focusin${_c}`,JD=`keydown.tab${_c}`,XD="Tab",qD="forward",H5="backward",eP={autofocus:!0,trapElement:null},tP={autofocus:"boolean",trapElement:"element"};class W5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return eP}static get DefaultType(){return tP}static get NAME(){return QD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,_c),de.on(document,ZD,e=>this._handleFocusin(e)),de.on(document,JD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,_c))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ne.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===H5?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===XD&&(this._lastTabNavDirection=e.shiftKey?H5:qD)}}const K5=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Y5=".sticky-top",wc="padding-right",G5="margin-right";class eh{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,wc,n=>n+e),this._setElementAttributes(K5,wc,n=>n+e),this._setElementAttributes(Y5,G5,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,wc),this._resetElementAttributes(K5,wc),this._resetElementAttributes(Y5,G5)}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&&br.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=br.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}br.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(vr(e)){n(e);return}for(const r of Ne.find(e,this._element))n(r)}}const nP="modal",bn=".bs.modal",rP=".data-api",oP="Escape",iP=`hide${bn}`,sP=`hidePrevented${bn}`,Q5=`hidden${bn}`,Z5=`show${bn}`,aP=`shown${bn}`,lP=`resize${bn}`,cP=`click.dismiss${bn}`,dP=`mousedown.dismiss${bn}`,uP=`keydown.dismiss${bn}`,fP=`click${bn}${rP}`,J5="modal-open",hP="fade",X5="show",th="modal-static",pP=".modal.show",mP=".modal-dialog",gP=".modal-body",yP='[data-bs-toggle="modal"]',vP={backdrop:!0,focus:!0,keyboard:!0},bP={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ro extends $n{constructor(e,n){super(e,n),this._dialog=Ne.findOne(mP,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new eh,this._addEventListeners()}static get Default(){return vP}static get DefaultType(){return bP}static get NAME(){return nP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Z5,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(J5),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,iP).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(X5),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,bn),de.off(this._dialog,bn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new U5({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new W5({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ne.findOne(gP,this._dialog);n&&(n.scrollTop=0),na(this._element),this._element.classList.add(X5);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,aP,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,uP,e=>{if(e.key===oP){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,lP,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,dP,e=>{de.one(this._element,cP,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(J5),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Q5)})}_isAnimated(){return this._element.classList.contains(hP)}_triggerBackdropTransition(){if(de.trigger(this._element,sP).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(th)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(th),this._queueCallback(()=>{this._element.classList.remove(th),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=yn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=yn()?"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=ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,fP,yP,function(t){const e=Ne.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Z5,o=>{o.defaultPrevented||de.one(e,Q5,()=>{Mi(this)&&this.focus()})});const n=Ne.findOne(pP);n&&ro.getInstance(n).hide(),ro.getOrCreateInstance(e).toggle(this)}),mc(ro),vn(ro);const CP="offcanvas",Cr=".bs.offcanvas",q5=".data-api",EP=`load${Cr}${q5}`,SP="Escape",ev="show",tv="showing",nv="hiding",_P="offcanvas-backdrop",rv=".offcanvas.show",wP=`show${Cr}`,kP=`shown${Cr}`,AP=`hide${Cr}`,ov=`hidePrevented${Cr}`,iv=`hidden${Cr}`,TP=`resize${Cr}`,IP=`click${Cr}${q5}`,xP=`keydown.dismiss${Cr}`,OP='[data-bs-toggle="offcanvas"]',NP={backdrop:!0,keyboard:!0,scroll:!1},MP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class oo extends $n{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return NP}static get DefaultType(){return MP}static get NAME(){return CP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,wP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new eh().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(tv);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ev),this._element.classList.remove(tv),de.trigger(this._element,kP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,AP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nv),this._backdrop.hide();const n=()=>{this._element.classList.remove(ev,nv),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new eh().reset(),de.trigger(this._element,iv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,ov);return}this.hide()},n=!!this._config.backdrop;return new U5({className:_P,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new W5({trapElement:this._element})}_addEventListeners(){de.on(this._element,xP,e=>{if(e.key===SP){if(this._config.keyboard){this.hide();return}de.trigger(this._element,ov)}})}static jQueryInterface(e){return this.each(function(){const n=oo.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,IP,OP,function(t){const e=Ne.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),to(this))return;de.one(e,iv,()=>{Mi(this)&&this.focus()});const n=Ne.findOne(rv);n&&n!==e&&oo.getInstance(n).hide(),oo.getOrCreateInstance(e).toggle(this)}),de.on(window,EP,()=>{for(const t of Ne.find(rv))oo.getOrCreateInstance(t).show()}),de.on(window,TP,()=>{for(const t of Ne.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&oo.getOrCreateInstance(t).hide()}),mc(oo),vn(oo);const sv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},LP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),DP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?LP.has(n)?!!DP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function BP(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 l=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of l)PP(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const $P="TemplateFactory",RP={allowList:sv,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},VP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},FP={entry:"(string|element|function|null)",selector:"(string|element)"};class jP extends ra{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return RP}static get DefaultType(){return VP}static get NAME(){return $P}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},FP)}_setContent(e,n,r){const o=Ne.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(vr(n)){this._putElementInTemplate(eo(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?BP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return en(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const zP="tooltip",UP=new Set(["sanitize","allowList","sanitizeFn"]),nh="fade",HP="modal",kc="show",WP=".tooltip-inner",av=`.${HP}`,lv="hide.bs.modal",la="hover",rh="focus",KP="click",YP="manual",GP="hide",QP="hidden",ZP="show",JP="shown",XP="inserted",qP="click",eB="focusin",tB="focusout",nB="mouseenter",rB="mouseleave",oB={AUTO:"auto",TOP:"top",RIGHT:yn()?"left":"right",BOTTOM:"bottom",LEFT:yn()?"right":"left"},iB={allowList:sv,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"},sB={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 qn extends $n{constructor(e,n){if(typeof wy>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return iB}static get DefaultType(){return sB}static get NAME(){return zP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(av),lv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(ZP)),r=(y5(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(XP))),this._popper=this._createPopper(o),o.classList.add(kc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",pc);const s=()=>{de.trigger(this._element,this.constructor.eventName(JP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(GP)).defaultPrevented)return;if(this._getTipElement().classList.remove(kc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",pc);this._activeTrigger[KP]=!1,this._activeTrigger[rh]=!1,this._activeTrigger[la]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(QP)))};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(nh,kc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=tL(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(nh),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new jP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[WP]: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(nh)}_isShown(){return this.tip&&this.tip.classList.contains(kc)}_createPopper(e){const n=en(this._config.placement,[this,e,this._element]),r=oB[n.toUpperCase()];return xl(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 en(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...en(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(qP),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==YP){const r=n===la?this.constructor.eventName(nB):this.constructor.eventName(eB),o=n===la?this.constructor.eventName(rB):this.constructor.eventName(tB);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?rh:la]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?rh:la]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(av),lv,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=br.getDataAttributes(this._element);for(const r of Object.keys(n))UP.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:eo(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=qn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}vn(qn);const aB="popover",lB=".popover-header",cB=".popover-body",dB={...qn.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"},uB={...qn.DefaultType,content:"(null|string|element|function)"};class Ro extends qn{static get Default(){return dB}static get DefaultType(){return uB}static get NAME(){return aB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lB]:this._getTitle(),[cB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}vn(Ro);const fB="scrollspy",oh=".bs.scrollspy",hB=".data-api",pB=`activate${oh}`,cv=`click${oh}`,mB=`load${oh}${hB}`,gB="dropdown-item",Ri="active",yB='[data-bs-spy="scroll"]',ih="[href]",vB=".nav, .list-group",dv=".nav-link",bB=`${dv}, .nav-item > ${dv}, .list-group-item`,CB=".dropdown",EB=".dropdown-toggle",SB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},_B={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ac extends $n{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 SB}static get DefaultType(){return _B}static get NAME(){return fB}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=eo(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,cv),de.on(this._config.target,cv,ih,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ne.find(ih,this._config.target);for(const n of e){if(!n.hash||to(n))continue;const r=Ne.findOne(decodeURI(n.hash),this._element);Mi(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(Ri),this._activateParents(e),de.trigger(this._element,pB,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(gB)){Ne.findOne(EB,e.closest(CB)).classList.add(Ri);return}for(const n of Ne.parents(e,vB))for(const r of Ne.prev(n,bB))r.classList.add(Ri)}_clearActiveClass(e){e.classList.remove(Ri);const n=Ne.find(`${ih}.${Ri}`,e);for(const r of n)r.classList.remove(Ri)}static jQueryInterface(e){return this.each(function(){const n=Ac.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,mB,()=>{for(const t of Ne.find(yB))Ac.getOrCreateInstance(t)}),vn(Ac);const wB="tab",Vo=".bs.tab",kB=`hide${Vo}`,AB=`hidden${Vo}`,TB=`show${Vo}`,IB=`shown${Vo}`,xB=`click${Vo}`,OB=`keydown${Vo}`,NB=`load${Vo}`,MB="ArrowLeft",uv="ArrowRight",LB="ArrowUp",fv="ArrowDown",Fo="active",hv="fade",sh="show",DB="dropdown",PB=".dropdown-toggle",BB=".dropdown-menu",ah=":not(.dropdown-toggle)",$B='.list-group, .nav, [role="tablist"]',RB=".nav-item, .list-group-item",VB=`.nav-link${ah}, .list-group-item${ah}, [role="tab"]${ah}`,pv='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',lh=`${VB}, ${pv}`,FB=`.${Fo}[data-bs-toggle="tab"], .${Fo}[data-bs-toggle="pill"], .${Fo}[data-bs-toggle="list"]`;class Vi extends $n{constructor(e){super(e),this._parent=this._element.closest($B),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,OB,n=>this._keydown(n)))}static get NAME(){return wB}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,kB,{relatedTarget:e}):null;de.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(Fo),this._activate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(sh);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,IB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_deactivate(e,n){if(!e)return;e.classList.remove(Fo),e.blur(),this._deactivate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(sh);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,AB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_keydown(e){if(![MB,uv,LB,fv].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[uv,fv].includes(e.key),r=Hf(this._getChildren().filter(o=>!to(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Vi.getOrCreateInstance(r).show())}_getChildren(){return Ne.find(lh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Ne.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(DB))return;const o=(i,s)=>{const c=Ne.findOne(i,r);c&&c.classList.toggle(s,n)};o(PB,Fo),o(BB,sh),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Fo)}_getInnerElement(e){return e.matches(lh)?e:Ne.findOne(lh,e)}_getOuterElement(e){return e.closest(RB)||e}static jQueryInterface(e){return this.each(function(){const n=Vi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,xB,pv,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!to(this)&&Vi.getOrCreateInstance(this).show()}),de.on(window,NB,()=>{for(const t of Ne.find(FB))Vi.getOrCreateInstance(t)}),vn(Vi);const jB="toast",io=".bs.toast",zB=`mouseover${io}`,UB=`mouseout${io}`,HB=`focusin${io}`,WB=`focusout${io}`,KB=`hide${io}`,YB=`hidden${io}`,GB=`show${io}`,QB=`shown${io}`,ZB="fade",mv="hide",Tc="show",Ic="showing",JB={animation:"boolean",autohide:"boolean",delay:"number"},XB={animation:!0,autohide:!0,delay:5e3};class Fi extends $n{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 JB}static get NAME(){return jB}show(){if(de.trigger(this._element,GB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ZB);const n=()=>{this._element.classList.remove(Ic),de.trigger(this._element,QB),this._maybeScheduleHide()};this._element.classList.remove(mv),na(this._element),this._element.classList.add(Tc,Ic),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,KB).defaultPrevented)return;const n=()=>{this._element.classList.add(mv),this._element.classList.remove(Ic,Tc),de.trigger(this._element,YB)};this._element.classList.add(Ic),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tc),super.dispose()}isShown(){return this._element.classList.contains(Tc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,zB,e=>this._onInteraction(e,!0)),de.on(this._element,UB,e=>this._onInteraction(e,!1)),de.on(this._element,HB,e=>this._onInteraction(e,!0)),de.on(this._element,WB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Fi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}mc(Fi),vn(Fi);function gv(t,e){return e.value||t.getAttribute("title")||""}const jo={mounted:(t,e)=>{const n=gv(t,e);n&&t.setAttribute("title",n),new qn(t)},updated:(t,e)=>{const n=qn.getInstance(t);n&&n.dispose();const r=gv(t,e);r&&t.setAttribute("title",r),new qn(t)},unmounted:t=>{const e=qn.getInstance(t);e&&e.dispose()}},qB={key:0,class:"pills-list__wrapper"},e$={class:"pills-list__ul"},t$={class:"bd-markdown-editor__menu-bottom"},n$={key:0,class:"vr"},yv=a.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:Ff.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("upload")},o=co(n,"modelValue",e),i=[jN,zN,UN,hM.configure({placeholder:n.placeholder}),OM,fM.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===Ff.FULL&&i.push(vM,_M,wM,kM,TM,xM);const s=FN({content:o.value,extensions:i,onUpdate:({editor:P})=>{const{view:j,state:K}=P,{from:F,to:W}=j.state.selection;if(K.doc.textBetween(F-1,W,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:F-1,to:W}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:W,to:W}).run(),P.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",P.getHTML())}});a.watch(()=>n.modelValue,P=>{s.value.getHTML()!==P&&s.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const c=a.computed(()=>n.state===!1?"is-invalid":null),l=a.computed(()=>g("bold")),d=a.computed(()=>g("italic")),u=a.computed(()=>g("underline")),f=a.computed(()=>g("bulletList")),h=a.computed(()=>g("orderedList")),p=a.computed(()=>g("link")),m=a.computed(()=>n.variant===Ff.FULL),g=P=>s.value&&s.value.isActive(P)?"active":null,y=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!1):null),C=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},b=P=>{e("action",{name:"image-attachment",obj:P})},v=a.computed(()=>{if(!s.value)return!1;const{from:P,to:j}=s.value.state.selection;return P!==j}),k=a.computed(()=>v.value?"Voeg een link toe":"Selecteer eerst tekst"),_=a.ref(!1),O=a.ref(""),L=a.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",_.value=!0},z=P=>{if(_.value=!1,!P){s.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),s.value.chain().focus().toggleLink({href:P}).run()},V=()=>{_.value=!1};return(P,j)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["bd-markdown-editor",c.value])},[a.createVNode(a.unref(VN),{editor:a.unref(s)},null,8,["editor"]),P.pills?(a.openBlock(),a.createElementBlock("div",qB,[a.createElementVNode("ul",e$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(P.pills,(K,F)=>(a.openBlock(),a.createElementBlock("li",{key:F,class:"pills-list__li"},[a.createVNode(ja,a.normalizeProps(a.guardReactiveProps(K)),null,16)]))),128))])])):a.createCommentVNode("",!0),a.renderSlot(P.$slots,"default"),y.value?(a.openBlock(),a.createBlock(ea,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):a.createCommentVNode("",!0),C.value?(a.openBlock(),a.createBlock(ta,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:b},null,8,["files"])):a.createCommentVNode("",!0),a.createElementVNode("div",t$,[a.createVNode(ze,{variant:"light",type:"button",onClick:r},{default:a.withCtx(()=>[a.createVNode(a.unref(_r))]),_:1}),m.value?(a.openBlock(),a.createElementBlock("div",n$)):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:1,variant:"light",type:"button",class:a.normalizeClass(l.value),onClick:j[0]||(j[0]=K=>a.unref(s).chain().focus().toggleBold().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Dc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:2,variant:"light",type:"button",class:a.normalizeClass(d.value),onClick:j[1]||(j[1]=K=>a.unref(s).chain().focus().toggleItalic().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Kc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:3,variant:"light",type:"button",class:a.normalizeClass(u.value),onClick:j[2]||(j[2]=K=>a.unref(s).chain().focus().toggleUnderline().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(qc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:4,variant:"light",type:"button",class:a.normalizeClass(f.value),onClick:j[3]||(j[3]=K=>a.unref(s).chain().focus().toggleBulletList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Pc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:5,variant:"light",type:"button",class:a.normalizeClass(h.value),onClick:j[4]||(j[4]=K=>a.unref(s).chain().focus().toggleOrderedList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Gc))]),_:1},8,["class"])):a.createCommentVNode("",!0),a.withDirectives((a.openBlock(),a.createElementBlock("span",null,[m.value?(a.openBlock(),a.createBlock(ze,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:a.normalizeClass(p.value),onClick:N,disabled:!v.value},{default:a.withCtx(()=>[a.createVNode(a.unref(ma))]),_:1},8,["class","disabled"])):a.createCommentVNode("",!0)])),[[a.unref(jo),k.value]])]),_.value?(a.openBlock(),a.createBlock(PM,{key:3,previousUrl:O.value,onSubmit:z,onCancel:V},null,8,["previousUrl"])):a.createCommentVNode("",!0)],2),a.createVNode(Va,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),r$={class:"header"},o$=a.createElementVNode("div",null,"Menu",-1),i$={class:"icon-close-wrapper"},s$={class:"navbar"},a$={class:"nav navbar-nav w-100"},l$={class:"nav-item"},c$={class:"nav-item"},ch=a.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=t,r=a.computed(()=>({active:n.active===!0,inactive:n.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-mobile-menu",r.value])},[a.createElementVNode("div",r$,[o$,a.createElementVNode("div",i$,[a.createVNode(ha,{onClick:o})])]),a.createElementVNode("nav",s$,[a.createElementVNode("ul",a$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,l=>(a.openBlock(),a.createElementBlock("li",l$,[a.createVNode(ao,a.mergeProps({class:"nav-link"},l,{onClick:o}),null,16)]))),256)),a.renderSlot(s.$slots,"special-options"),a.createElementVNode("li",c$,[a.createVNode(ao,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),d$={class:"bd-user"},u$={class:"bd-user__information"},f$={class:"text-break"},h$={class:"overflow-x-hidden"},vv=a.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=a.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(a.openBlock(),a.createElementBlock("div",d$,[e.hideImage?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Ki,a.mergeProps({key:0},e.img,{size:"sm"}),null,16)),a.createElementVNode("div",u$,[a.createElementVNode("header",null,[a.createElementVNode("h5",f$,a.toDisplayString(e.name),1),a.renderSlot(r.$slots,"header-extra")]),a.createElementVNode("span",h$,a.toDisplayString(n.value),1)])]))}}),p$={class:"bd-chat-cloud-card"},m$={class:"bd-chat-cloud-card__header"},g$={class:"bd-chat-cloud-card__body"},y$=["innerHTML"],v$={class:"bd-chat-cloud-card__footer"},b$={key:0,class:"pills-list__wrapper"},C$={class:"pills-list__ul"},bv=a.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=a.computed(()=>n.isSender?"sender":Be),o=a.computed(()=>Po(n.apiUrl,n.files,!1)),i=a.computed(()=>Po(n.apiUrl,n.files,!0)),s=()=>{e("action","copy-message")},c=l=>{e("show-attachment",l)};return(l,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-chat-cloud",r.value])},[a.createVNode(Ki,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),a.createElementVNode("div",p$,[a.createElementVNode("div",m$,[a.renderSlot(l.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(l.headerTitle),1)]),a.createVNode(ze,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:a.withCtx(()=>[a.createTextVNode(" kopieer ")]),_:1})]),a.createElementVNode("div",g$,[a.renderSlot(l.$slots,"body",{},()=>[a.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,y$)])]),a.createElementVNode("div",v$,[a.renderSlot(l.$slots,"footer",{},()=>[l.pills?(a.openBlock(),a.createElementBlock("div",b$,[a.createElementVNode("ul",C$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.pills,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:f,class:"pills-list__li"},[a.createVNode(ja,a.normalizeProps(a.guardReactiveProps(u)),null,16)]))),128))])])):a.createCommentVNode("",!0),o.value&&o.value.length>0?(a.openBlock(),a.createBlock(ea,{key:1,files:o.value},null,8,["files"])):a.createCommentVNode("",!0),i.value&&i.value.length>0?(a.openBlock(),a.createBlock(ta,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):a.createCommentVNode("",!0)])])])],2))}}),E$=a.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=a.ref(n.sortDesc),o=()=>{n.active&&(r.value=!r.value)},i=()=>{if(!n.active)return;const c=r.value?"sortDesc":"sortAsc";e(c)},s=a.computed(()=>({"bd-table-sort":!0,active:n.active}));return a.watch(()=>n.active,(c,l)=>{c&&!l&&(r.value=!1,e("sortAsc"))}),i(),(c,l)=>(a.openBlock(),a.createElementBlock("th",{class:a.normalizeClass(s.value),onClick:l[0]||(l[0]=d=>{o(),i()})},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.active&&!r.value?(a.openBlock(),a.createBlock(a.unref(Qc),{key:0})):n.active&&r.value?(a.openBlock(),a.createBlock(a.unref(Zc),{key:1})):(a.openBlock(),a.createBlock(a.unref(Jc),{key:2}))],2))}}),S$={class:"bd-table"},_$={key:0,class:"table"},w$={key:1},k$=["onClick"],A$={key:0},T$={key:1,class:"empty-text"},Cv=a.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=a.ref(r.items),i=a.ref(r.sortBy),s=f=>i.value=f,c=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},l=f=>{o.value=o.value.sort((p,m)=>c(f,p,m)),n("sort-changed",{sortBy:f,sortDesc:!1})},d=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return a.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(a.openBlock(),a.createElementBlock("div",S$,[r.items&&r.items.length>0?(a.openBlock(),a.createElementBlock("table",_$,[a.createElementVNode("thead",null,[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.fields,p=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[p.isVisible?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p.sortable?(a.openBlock(),a.createBlock(E$,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>l(p.key),onSortDesc:m=>d(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(a.openBlock(),a.createElementBlock("th",w$,a.toDisplayString(p.label),1))],64)):a.createCommentVNode("",!0)],64))),256))])]),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,p=>(a.openBlock(),a.createElementBlock("tr",{class:a.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>n("row-click",p)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.fields,m=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[m.isVisible?(a.openBlock(),a.createElementBlock("td",A$,[f.$slots.hasOwnProperty(m.key)?a.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(p[m.key]),1)],64))])):a.createCommentVNode("",!0)],64))),256))],10,k$))),256))])])):(a.openBlock(),a.createElementBlock("p",T$,a.toDisplayString(r.emptyText),1))]))}}),I$=["id"],x$={key:0,class:"toast-body__title"},O$={class:"actions"},N$=["textContent"],M$=["textContent"],L$={class:"icon-wrapper"},D$=["textContent"],P$=["textContent"],Ev=3e4,Sv=5e3,_v=a.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t;let r=a.ref(!1),o=a.ref(!1),i=null,s=null;const c=a.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),l=a.computed(()=>r.value?[r.value?"is-handled":Be,o.value?"is-handled--success":Be,n.canceled?"is-handled--canceled":Be].join(" "):Be),d=a.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),u=a.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:o.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));a.watch(()=>n.canceled,()=>{r.value=!0});const f=()=>{const E=c.value,b=document.querySelector(`#${E}`);if(b){b.addEventListener("hide.bs.toast",C);var v={autohide:!0,delay:Ev+Sv};s=Fi.getOrCreateInstance(b,v),s.show(),i=window.setTimeout(h,Ev)}};a.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),y()},m=()=>{r.value||(r.value=!0,e("reject-video-call",n.id))},g=()=>{r.value=!0,o.value=!0,e("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),Sv)},C=()=>{r.value=!1,o.value=!1};return(E,b)=>(a.openBlock(),a.createElementBlock("div",{id:c.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[a.unref(r)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",x$,a.toDisplayString(n.localization.incomingVideoCall),1)),a.createElementVNode("div",{class:a.normalizeClass(["toast-body__main",l.value])},[a.unref(r)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",L$,[a.createVNode(ua)]),a.createElementVNode("div",null,[a.createElementVNode("p",{textContent:a.toDisplayString(d.value),class:"title"},null,8,D$),a.createElementVNode("p",{textContent:a.toDisplayString(u.value)},null,8,P$)])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Wd,{value:E.contactInfoReceiver},null,8,["value"]),a.createElementVNode("div",O$,[a.createVNode(ze,{variant:"danger",class:"text-center",onClick:p},{default:a.withCtx(()=>[a.createVNode(Bc),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.rejectVideoCall)},null,8,N$)]),_:1}),a.createVNode(ze,{variant:"success",class:"text-center",onClick:g},{default:a.withCtx(()=>[a.createVNode(ua),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.acceptVideoCall)},null,8,M$)]),_:1})])],64))],2)],8,I$))}}),dh=a.defineComponent({__name:"BDDropdown",props:{size:{default:Mt.MD},variant:{default:ya.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}=Wo(),r=`__BD__DROPDOWN__${n.value}`,o=a.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=a.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=a.computed(()=>({"aria-labelledby":r})),c=a.ref(),l=a.ref(),d=()=>{c.value.classList.remove("show"),l.value.classList.remove("show"),l.value.removeAttribute("aria-expanded")};return(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.toggleTag),a.mergeProps({ref_key:"dropdownToggle",ref:l,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(e.text),1)]),_:1},16)),a.createElementVNode("ul",a.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[a.renderSlot(u.$slots,"default")],16)]))}}),B$={class:"row bd-header"},$$={class:"col logo-mix"},R$=["src"],V$=a.createElementVNode("div",null,"Menu",-1),F$={key:1,class:"col header-options"},j$={class:"col bd-btn-settings"},z$={key:2},uh=a.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=a.computed(()=>{let u=[];return n.isEmbedded||(n.headerOptions&&(u=u.concat(n.headerOptions)),n.dropdownOptions&&(u=u.concat(n.dropdownOptions))),u}),o=a.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),i=a.ref(void 0),s=()=>{n.isEmbedded||e("click-logo")},c=()=>e("signout"),l=()=>i.value=!0,d=()=>i.value=!1;return(u,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("nav",B$,[a.createElementVNode("div",$$,[a.createVNode(Nc,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),n.organizationLogoSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,R$)):a.createCommentVNode("",!0)]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:l},[V$,a.createVNode(Yc)])),o.value?(a.openBlock(),a.createElementBlock("div",F$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.headerOptions,h=>(a.openBlock(),a.createBlock(ze,{class:"btn-header",to:h.to,variant:"neutral"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.text),1)]),_:2},1032,["to"]))),256))])):a.createCommentVNode("",!0),a.createElementVNode("div",j$,[n.isEmbedded?a.createCommentVNode("",!0):a.renderSlot(u.$slots,"profile-side",{key:0}),n.profileImageSrc?(a.openBlock(),a.createBlock(Ki,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):a.createCommentVNode("",!0),n.isEmbedded?(a.openBlock(),a.createElementBlock("span",z$,a.toDisplayString(n.dropdownMenuTitle),1)):a.createCommentVNode("",!0),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(dh,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.dropdownOptions,(h,p)=>(a.openBlock(),a.createBlock(za,a.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(a.openBlock(),a.createBlock(za,{key:0,text:"Uitloggen",onClick:c})):a.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ch,{key:0,active:i.value,options:r.value,onHide:d,onSignout:c},{"special-options":a.withCtx(()=>[a.renderSlot(u.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),U$="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",wv=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 fh(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{a.onMounted(()=>t().then(n))}}}const H$=(t,e,n)=>{const{OnWindowLoaded:r}=fh(),o="lkj298fhGGJihge",i=a.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await wv(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await wv(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function kv(t){const{OnWindowLoaded:e}=fh();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=Ro.getInstance(t.value);c&&c.hide()})};a.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;Ro.getInstance(t.value)||new Ro(t.value)};e(o),a.watch(t,o),a.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=Ro.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const W$=["data-bs-title","data-bs-content"],K$=["title"],Y$={key:0,class:"number-circle",textContent:1},G$=a.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var u;return(u=e.getNotification)==null?void 0:u.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=H$("notificationsRead",e.userId,n),i=a.ref();kv(i);const s=a.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),y=new Date;return y>=m&&y<=g}),c=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.tooltip}),l=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.title}),d=a.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
|
|
1356
|
+
*/const qr=new Map,jf={set(t,e,n){qr.has(t)||qr.set(t,new Map);const r=qr.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return qr.has(t)&&qr.get(t).get(e)||null},remove(t,e){if(!qr.has(t))return;const n=qr.get(t);n.delete(e),n.size===0&&qr.delete(t)}},XM=1e6,qM=1e3,zf="transitionend",m5=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),eL=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),tL=t=>{do t+=Math.floor(Math.random()*XM);while(document.getElementById(t));return t},nL=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))*qM)},g5=t=>{t.dispatchEvent(new Event(zf))},vr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),eo=t=>vr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(m5(t)):null,Mi=t=>{if(!vr(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},to=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",y5=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?y5(t.parentNode):null},pc=()=>{},na=t=>{t.offsetHeight},v5=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Uf=[],rL=t=>{document.readyState==="loading"?(Uf.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Uf)e()}),Uf.push(t)):t()},yn=()=>document.documentElement.dir==="rtl",vn=t=>{rL(()=>{const e=v5();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)}})},en=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,b5=(t,e,n=!0)=>{if(!n){en(t);return}const r=5,o=nL(e)+r;let i=!1;const s=({target:c})=>{c===e&&(i=!0,e.removeEventListener(zf,s),en(t))};e.addEventListener(zf,s),setTimeout(()=>{i||g5(e)},o)},Hf=(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))])},oL=/[^.]*(?=\..*)\.|.*/,iL=/\..*/,sL=/::\d+$/,Wf={};let C5=1;const E5={mouseenter:"mouseover",mouseleave:"mouseout"},aL=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 S5(t,e){return e&&`${e}::${C5++}`||t.uidEvent||C5++}function _5(t){const e=S5(t);return t.uidEvent=e,Wf[e]=Wf[e]||{},Wf[e]}function lL(t,e){return function n(r){return Yf(r,{delegateTarget:t}),n.oneOff&&de.off(t,r.type,e),e.apply(t,[r])}}function cL(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 Yf(o,{delegateTarget:s}),r.oneOff&&de.off(t,o.type,e,n),n.apply(s,[o])}}function w5(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function k5(t,e,n){const r=typeof e=="string",o=r?n:e||n;let i=T5(t);return aL.has(i)||(i=t),[r,o,i]}function A5(t,e,n,r,o){if(typeof e!="string"||!t)return;let[i,s,c]=k5(e,n,r);e in E5&&(s=(m=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return m.call(this,g)})(s));const l=_5(t),d=l[c]||(l[c]={}),u=w5(d,s,i?n:null);if(u){u.oneOff=u.oneOff&&o;return}const f=S5(s,e.replace(oL,"")),h=i?cL(t,n,s):lL(t,s);h.delegationSelector=i?n:null,h.callable=s,h.oneOff=o,h.uidEvent=f,d[f]=h,t.addEventListener(c,h,i)}function Kf(t,e,n,r,o){const i=w5(e[n],r,o);i&&(t.removeEventListener(n,i,!!o),delete e[n][i.uidEvent])}function dL(t,e,n,r){const o=e[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&Kf(t,e,n,s.callable,s.delegationSelector)}function T5(t){return t=t.replace(iL,""),E5[t]||t}const de={on(t,e,n,r){A5(t,e,n,r,!1)},one(t,e,n,r){A5(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[o,i,s]=k5(e,n,r),c=s!==e,l=_5(t),d=l[s]||{},u=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(d).length)return;Kf(t,l,s,i,o?n:null);return}if(u)for(const f of Object.keys(l))dL(t,l,f,e.slice(1));for(const[f,h]of Object.entries(d)){const p=f.replace(sL,"");(!c||e.includes(p))&&Kf(t,l,s,h.callable,h.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=v5(),o=T5(e),i=e!==o;let s=null,c=!0,l=!0,d=!1;i&&r&&(s=r.Event(e,n),r(t).trigger(s),c=!s.isPropagationStopped(),l=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());const u=Yf(new Event(e,{bubbles:c,cancelable:!0}),n);return d&&u.preventDefault(),l&&t.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Yf(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 I5(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 Gf(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const br={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Gf(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Gf(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=I5(t.dataset[r])}return e},getDataAttribute(t,e){return I5(t.getAttribute(`data-bs-${Gf(e)}`))}};class ra{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=vr(n)?br.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...vr(n)?br.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=vr(i)?"element":eL(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${s}" but expected type "${o}".`)}}}const uL="5.3.0";class $n extends ra{constructor(e,n){super(),e=eo(e),e&&(this._element=e,this._config=this._getConfig(n),jf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){jf.remove(this._element,this.constructor.DATA_KEY),de.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){b5(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return jf.get(eo(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return uL}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 Qf=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 m5(e)},Ne={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!to(n)&&Mi(n))},getSelectorFromElement(t){const e=Qf(t);return e&&Ne.findOne(e)?e:null},getElementFromSelector(t){const e=Qf(t);return e?Ne.findOne(e):null},getMultipleElementsFromSelector(t){const e=Qf(t);return e?Ne.find(e):[]}},mc=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;de.on(document,n,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),to(this))return;const i=Ne.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(i)[e]()})},fL="alert",x5=".bs.alert",hL=`close${x5}`,pL=`closed${x5}`,mL="fade",gL="show";class gc extends $n{static get NAME(){return fL}close(){if(de.trigger(this._element,hL).defaultPrevented)return;this._element.classList.remove(gL);const n=this._element.classList.contains(mL);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),de.trigger(this._element,pL),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=gc.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)}})}}mc(gc,"close"),vn(gc);const yL="button",vL=".bs.button",bL=".data-api",CL="active",O5='[data-bs-toggle="button"]',EL=`click${vL}${bL}`;class yc extends $n{static get NAME(){return yL}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(CL))}static jQueryInterface(e){return this.each(function(){const n=yc.getOrCreateInstance(this);e==="toggle"&&n[e]()})}}de.on(document,EL,O5,t=>{t.preventDefault();const e=t.target.closest(O5);yc.getOrCreateInstance(e).toggle()}),vn(yc);const SL="swipe",Li=".bs.swipe",_L=`touchstart${Li}`,wL=`touchmove${Li}`,kL=`touchend${Li}`,AL=`pointerdown${Li}`,TL=`pointerup${Li}`,IL="touch",xL="pen",OL="pointer-event",NL=40,ML={endCallback:null,leftCallback:null,rightCallback:null},LL={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class vc extends ra{constructor(e,n){super(),this._element=e,!(!e||!vc.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ML}static get DefaultType(){return LL}static get NAME(){return SL}dispose(){de.off(this._element,Li)}_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(),en(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<=NL)return;const n=e/this._deltaX;this._deltaX=0,n&&en(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(de.on(this._element,AL,e=>this._start(e)),de.on(this._element,TL,e=>this._end(e)),this._element.classList.add(OL)):(de.on(this._element,_L,e=>this._start(e)),de.on(this._element,wL,e=>this._move(e)),de.on(this._element,kL,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===xL||e.pointerType===IL)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const DL="carousel",no=".bs.carousel",N5=".data-api",PL="ArrowLeft",BL="ArrowRight",$L=500,oa="next",Di="prev",Pi="left",bc="right",RL=`slide${no}`,Zf=`slid${no}`,VL=`keydown${no}`,FL=`mouseenter${no}`,jL=`mouseleave${no}`,zL=`dragstart${no}`,UL=`load${no}${N5}`,HL=`click${no}${N5}`,M5="carousel",Cc="active",WL="slide",KL="carousel-item-end",YL="carousel-item-start",GL="carousel-item-next",QL="carousel-item-prev",L5=".active",D5=".carousel-item",ZL=L5+D5,JL=".carousel-item img",XL=".carousel-indicators",qL="[data-bs-slide], [data-bs-slide-to]",eD='[data-bs-ride="carousel"]',tD={[PL]:bc,[BL]:Pi},nD={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},rD={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ia extends $n{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ne.findOne(XL,this._element),this._addEventListeners(),this._config.ride===M5&&this.cycle()}static get Default(){return nD}static get DefaultType(){return rD}static get NAME(){return DL}next(){this._slide(oa)}nextWhenVisible(){!document.hidden&&Mi(this._element)&&this.next()}prev(){this._slide(Di)}pause(){this._isSliding&&g5(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){de.one(this._element,Zf,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){de.one(this._element,Zf,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const o=e>r?oa:Di;this._slide(o,n[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&de.on(this._element,VL,e=>this._keydown(e)),this._config.pause==="hover"&&(de.on(this._element,FL,()=>this.pause()),de.on(this._element,jL,()=>this._maybeEnableCycle())),this._config.touch&&vc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ne.find(JL,this._element))de.on(r,zL,o=>o.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(Pi)),rightCallback:()=>this._slide(this._directionToOrder(bc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$L+this._config.interval))}};this._swipeHelper=new vc(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=tD[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Ne.findOne(L5,this._indicatorsElement);n.classList.remove(Cc),n.removeAttribute("aria-current");const r=Ne.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(Cc),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===oa,i=n||Hf(this._getItems(),r,o,this._config.wrap);if(i===r)return;const s=this._getItemIndex(i),c=p=>de.trigger(this._element,p,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:s});if(c(RL).defaultPrevented||!r||!i)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const u=o?YL:KL,f=o?GL:QL;i.classList.add(f),na(i),r.classList.add(u),i.classList.add(u);const h=()=>{i.classList.remove(u,f),i.classList.add(Cc),r.classList.remove(Cc,f,u),this._isSliding=!1,c(Zf)};this._queueCallback(h,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(WL)}_getActive(){return Ne.findOne(ZL,this._element)}_getItems(){return Ne.find(D5,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return yn()?e===Pi?Di:oa:e===Pi?oa:Di}_orderToDirection(e){return yn()?e===Di?Pi:bc:e===Di?bc:Pi}static jQueryInterface(e){return this.each(function(){const n=ia.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,HL,qL,function(t){const e=Ne.getElementFromSelector(this);if(!e||!e.classList.contains(M5))return;t.preventDefault();const n=ia.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(br.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),de.on(window,UL,()=>{const t=Ne.find(eD);for(const e of t)ia.getOrCreateInstance(e)}),vn(ia);const oD="collapse",sa=".bs.collapse",iD=".data-api",sD=`show${sa}`,aD=`shown${sa}`,lD=`hide${sa}`,cD=`hidden${sa}`,dD=`click${sa}${iD}`,Jf="show",Bi="collapse",Ec="collapsing",uD="collapsed",fD=`:scope .${Bi} .${Bi}`,hD="collapse-horizontal",pD="width",mD="height",gD=".collapse.show, .collapse.collapsing",Xf='[data-bs-toggle="collapse"]',yD={parent:null,toggle:!0},vD={parent:"(null|element)",toggle:"boolean"};class aa extends $n{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Ne.find(Xf);for(const o of r){const i=Ne.getSelectorFromElement(o),s=Ne.find(i).filter(c=>c===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return yD}static get DefaultType(){return vD}static get NAME(){return oD}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(gD).filter(c=>c!==this._element).map(c=>aa.getOrCreateInstance(c,{toggle:!1}))),e.length&&e[0]._isTransitioning||de.trigger(this._element,sD).defaultPrevented)return;for(const c of e)c.hide();const r=this._getDimension();this._element.classList.remove(Bi),this._element.classList.add(Ec),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi,Jf),this._element.style[r]="",de.trigger(this._element,aD)},s=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||de.trigger(this._element,lD).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,na(this._element),this._element.classList.add(Ec),this._element.classList.remove(Bi,Jf);for(const o of this._triggerArray){const i=Ne.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Ec),this._element.classList.add(Bi),de.trigger(this._element,cD)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Jf)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=eo(e.parent),e}_getDimension(){return this._element.classList.contains(hD)?pD:mD}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Xf);for(const n of e){const r=Ne.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Ne.find(fD,this._config.parent);return Ne.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(uD,!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=aa.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}de.on(document,dD,Xf,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Ne.getMultipleElementsFromSelector(this))aa.getOrCreateInstance(e,{toggle:!1}).toggle()}),vn(aa);const P5="dropdown",Bo=".bs.dropdown",qf=".data-api",bD="Escape",B5="Tab",CD="ArrowUp",$5="ArrowDown",ED=2,SD=`hide${Bo}`,_D=`hidden${Bo}`,wD=`show${Bo}`,kD=`shown${Bo}`,R5=`click${Bo}${qf}`,V5=`keydown${Bo}${qf}`,AD=`keyup${Bo}${qf}`,$i="show",TD="dropup",ID="dropend",xD="dropstart",OD="dropup-center",ND="dropdown-center",$o='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',MD=`${$o}.${$i}`,Sc=".dropdown-menu",LD=".navbar",DD=".navbar-nav",PD=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",BD=yn()?"top-end":"top-start",$D=yn()?"top-start":"top-end",RD=yn()?"bottom-end":"bottom-start",VD=yn()?"bottom-start":"bottom-end",FD=yn()?"left-start":"right-start",jD=yn()?"right-start":"left-start",zD="top",UD="bottom",HD={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},WD={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xn extends $n{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Ne.next(this._element,Sc)[0]||Ne.prev(this._element,Sc)[0]||Ne.findOne(Sc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return HD}static get DefaultType(){return WD}static get NAME(){return P5}toggle(){return this._isShown()?this.hide():this.show()}show(){if(to(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!de.trigger(this._element,wD,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(DD))for(const r of[].concat(...document.body.children))de.on(r,"mouseover",pc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($i),this._element.classList.add($i),de.trigger(this._element,kD,e)}}hide(){if(to(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!de.trigger(this._element,SD,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))de.off(r,"mouseover",pc);this._popper&&this._popper.destroy(),this._menu.classList.remove($i),this._element.classList.remove($i),this._element.setAttribute("aria-expanded","false"),br.removeDataAttribute(this._menu,"popper"),de.trigger(this._element,_D,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!vr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${P5.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof wy>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:vr(this._config.reference)?e=eo(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=xl(e,this._menu,n)}_isShown(){return this._menu.classList.contains($i)}_getPlacement(){const e=this._parent;if(e.classList.contains(ID))return FD;if(e.classList.contains(xD))return jD;if(e.classList.contains(OD))return zD;if(e.classList.contains(ND))return UD;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(TD)?n?$D:BD:n?VD:RD}_detectNavbar(){return this._element.closest(LD)!==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")&&(br.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...en(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Ne.find(PD,this._menu).filter(o=>Mi(o));r.length&&Hf(r,n,e===$5,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Xn.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===ED||e.type==="keyup"&&e.key!==B5)return;const n=Ne.find(MD);for(const r of n){const o=Xn.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===B5||/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===bD,o=[CD,$5].includes(e.key);if(!o&&!r||n&&!r)return;e.preventDefault();const i=this.matches($o)?this:Ne.prev(this,$o)[0]||Ne.next(this,$o)[0]||Ne.findOne($o,e.delegateTarget.parentNode),s=Xn.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}de.on(document,V5,$o,Xn.dataApiKeydownHandler),de.on(document,V5,Sc,Xn.dataApiKeydownHandler),de.on(document,R5,Xn.clearMenus),de.on(document,AD,Xn.clearMenus),de.on(document,R5,$o,function(t){t.preventDefault(),Xn.getOrCreateInstance(this).toggle()}),vn(Xn);const F5="backdrop",KD="fade",j5="show",z5=`mousedown.bs.${F5}`,YD={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},GD={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class U5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return YD}static get DefaultType(){return GD}static get NAME(){return F5}show(e){if(!this._config.isVisible){en(e);return}this._append();const n=this._getElement();this._config.isAnimated&&na(n),n.classList.add(j5),this._emulateAnimation(()=>{en(e)})}hide(e){if(!this._config.isVisible){en(e);return}this._getElement().classList.remove(j5),this._emulateAnimation(()=>{this.dispose(),en(e)})}dispose(){this._isAppended&&(de.off(this._element,z5),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(KD),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=eo(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),de.on(e,z5,()=>{en(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){b5(e,this._getElement(),this._config.isAnimated)}}const QD="focustrap",_c=".bs.focustrap",ZD=`focusin${_c}`,JD=`keydown.tab${_c}`,XD="Tab",qD="forward",H5="backward",eP={autofocus:!0,trapElement:null},tP={autofocus:"boolean",trapElement:"element"};class W5 extends ra{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return eP}static get DefaultType(){return tP}static get NAME(){return QD}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),de.off(document,_c),de.on(document,ZD,e=>this._handleFocusin(e)),de.on(document,JD,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,de.off(document,_c))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Ne.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===H5?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===XD&&(this._lastTabNavDirection=e.shiftKey?H5:qD)}}const K5=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Y5=".sticky-top",wc="padding-right",G5="margin-right";class eh{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,wc,n=>n+e),this._setElementAttributes(K5,wc,n=>n+e),this._setElementAttributes(Y5,G5,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,wc),this._resetElementAttributes(K5,wc),this._resetElementAttributes(Y5,G5)}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&&br.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=o=>{const i=br.getDataAttribute(o,n);if(i===null){o.style.removeProperty(n);return}br.removeDataAttribute(o,n),o.style.setProperty(n,i)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(vr(e)){n(e);return}for(const r of Ne.find(e,this._element))n(r)}}const nP="modal",bn=".bs.modal",rP=".data-api",oP="Escape",iP=`hide${bn}`,sP=`hidePrevented${bn}`,Q5=`hidden${bn}`,Z5=`show${bn}`,aP=`shown${bn}`,lP=`resize${bn}`,cP=`click.dismiss${bn}`,dP=`mousedown.dismiss${bn}`,uP=`keydown.dismiss${bn}`,fP=`click${bn}${rP}`,J5="modal-open",hP="fade",X5="show",th="modal-static",pP=".modal.show",mP=".modal-dialog",gP=".modal-body",yP='[data-bs-toggle="modal"]',vP={backdrop:!0,focus:!0,keyboard:!0},bP={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ro extends $n{constructor(e,n){super(e,n),this._dialog=Ne.findOne(mP,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new eh,this._addEventListeners()}static get Default(){return vP}static get DefaultType(){return bP}static get NAME(){return nP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||de.trigger(this._element,Z5,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(J5),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||de.trigger(this._element,iP).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(X5),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){de.off(window,bn),de.off(this._dialog,bn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new U5({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new W5({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Ne.findOne(gP,this._dialog);n&&(n.scrollTop=0),na(this._element),this._element.classList.add(X5);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,de.trigger(this._element,aP,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){de.on(this._element,uP,e=>{if(e.key===oP){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),de.on(window,lP,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),de.on(this._element,dP,e=>{de.one(this._element,cP,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(J5),this._resetAdjustments(),this._scrollBar.reset(),de.trigger(this._element,Q5)})}_isAnimated(){return this._element.classList.contains(hP)}_triggerBackdropTransition(){if(de.trigger(this._element,sP).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(th)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(th),this._queueCallback(()=>{this._element.classList.remove(th),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=yn()?"paddingLeft":"paddingRight";this._element.style[o]=`${n}px`}if(!r&&e){const o=yn()?"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=ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}}de.on(document,fP,yP,function(t){const e=Ne.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),de.one(e,Z5,o=>{o.defaultPrevented||de.one(e,Q5,()=>{Mi(this)&&this.focus()})});const n=Ne.findOne(pP);n&&ro.getInstance(n).hide(),ro.getOrCreateInstance(e).toggle(this)}),mc(ro),vn(ro);const CP="offcanvas",Cr=".bs.offcanvas",q5=".data-api",EP=`load${Cr}${q5}`,SP="Escape",ev="show",tv="showing",nv="hiding",_P="offcanvas-backdrop",rv=".offcanvas.show",wP=`show${Cr}`,kP=`shown${Cr}`,AP=`hide${Cr}`,ov=`hidePrevented${Cr}`,iv=`hidden${Cr}`,TP=`resize${Cr}`,IP=`click${Cr}${q5}`,xP=`keydown.dismiss${Cr}`,OP='[data-bs-toggle="offcanvas"]',NP={backdrop:!0,keyboard:!0,scroll:!1},MP={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class oo extends $n{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return NP}static get DefaultType(){return MP}static get NAME(){return CP}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||de.trigger(this._element,wP,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new eh().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(tv);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(ev),this._element.classList.remove(tv),de.trigger(this._element,kP,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||de.trigger(this._element,AP).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(nv),this._backdrop.hide();const n=()=>{this._element.classList.remove(ev,nv),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new eh().reset(),de.trigger(this._element,iv)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){de.trigger(this._element,ov);return}this.hide()},n=!!this._config.backdrop;return new U5({className:_P,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new W5({trapElement:this._element})}_addEventListeners(){de.on(this._element,xP,e=>{if(e.key===SP){if(this._config.keyboard){this.hide();return}de.trigger(this._element,ov)}})}static jQueryInterface(e){return this.each(function(){const n=oo.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}de.on(document,IP,OP,function(t){const e=Ne.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),to(this))return;de.one(e,iv,()=>{Mi(this)&&this.focus()});const n=Ne.findOne(rv);n&&n!==e&&oo.getInstance(n).hide(),oo.getOrCreateInstance(e).toggle(this)}),de.on(window,EP,()=>{for(const t of Ne.find(rv))oo.getOrCreateInstance(t).show()}),de.on(window,TP,()=>{for(const t of Ne.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&oo.getOrCreateInstance(t).hide()}),mc(oo),vn(oo);const sv={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},LP=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),DP=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,PP=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?LP.has(n)?!!DP.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function BP(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 l=[].concat(...s.attributes),d=[].concat(e["*"]||[],e[c]||[]);for(const u of l)PP(u,d)||s.removeAttribute(u.nodeName)}return o.body.innerHTML}const $P="TemplateFactory",RP={allowList:sv,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},VP={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},FP={entry:"(string|element|function|null)",selector:"(string|element)"};class jP extends ra{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return RP}static get DefaultType(){return VP}static get NAME(){return $P}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},FP)}_setContent(e,n,r){const o=Ne.findOne(r,e);if(o){if(n=this._resolvePossibleFunction(n),!n){o.remove();return}if(vr(n)){this._putElementInTemplate(eo(n),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(n);return}o.textContent=n}}_maybeSanitize(e){return this._config.sanitize?BP(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return en(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const zP="tooltip",UP=new Set(["sanitize","allowList","sanitizeFn"]),nh="fade",HP="modal",kc="show",WP=".tooltip-inner",av=`.${HP}`,lv="hide.bs.modal",la="hover",rh="focus",KP="click",YP="manual",GP="hide",QP="hidden",ZP="show",JP="shown",XP="inserted",qP="click",eB="focusin",tB="focusout",nB="mouseenter",rB="mouseleave",oB={AUTO:"auto",TOP:"top",RIGHT:yn()?"left":"right",BOTTOM:"bottom",LEFT:yn()?"right":"left"},iB={allowList:sv,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"},sB={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 qn extends $n{constructor(e,n){if(typeof wy>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return iB}static get DefaultType(){return sB}static get NAME(){return zP}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),de.off(this._element.closest(av),lv,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=de.trigger(this._element,this.constructor.eventName(ZP)),r=(y5(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),de.trigger(this._element,this.constructor.eventName(XP))),this._popper=this._createPopper(o),o.classList.add(kc),"ontouchstart"in document.documentElement)for(const c of[].concat(...document.body.children))de.on(c,"mouseover",pc);const s=()=>{de.trigger(this._element,this.constructor.eventName(JP)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||de.trigger(this._element,this.constructor.eventName(GP)).defaultPrevented)return;if(this._getTipElement().classList.remove(kc),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))de.off(o,"mouseover",pc);this._activeTrigger[KP]=!1,this._activeTrigger[rh]=!1,this._activeTrigger[la]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),de.trigger(this._element,this.constructor.eventName(QP)))};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(nh,kc),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=tL(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(nh),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new jP({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[WP]: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(nh)}_isShown(){return this.tip&&this.tip.classList.contains(kc)}_createPopper(e){const n=en(this._config.placement,[this,e,this._element]),r=oB[n.toUpperCase()];return xl(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 en(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...en(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")de.on(this._element,this.constructor.eventName(qP),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==YP){const r=n===la?this.constructor.eventName(nB):this.constructor.eventName(eB),o=n===la?this.constructor.eventName(rB):this.constructor.eventName(tB);de.on(this._element,r,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?rh:la]=!0,s._enter()}),de.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?rh:la]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},de.on(this._element.closest(av),lv,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=br.getDataAttributes(this._element);for(const r of Object.keys(n))UP.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:eo(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=qn.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}vn(qn);const aB="popover",lB=".popover-header",cB=".popover-body",dB={...qn.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"},uB={...qn.DefaultType,content:"(null|string|element|function)"};class Ro extends qn{static get Default(){return dB}static get DefaultType(){return uB}static get NAME(){return aB}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lB]:this._getTitle(),[cB]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=Ro.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}vn(Ro);const fB="scrollspy",oh=".bs.scrollspy",hB=".data-api",pB=`activate${oh}`,cv=`click${oh}`,mB=`load${oh}${hB}`,gB="dropdown-item",Ri="active",yB='[data-bs-spy="scroll"]',ih="[href]",vB=".nav, .list-group",dv=".nav-link",bB=`${dv}, .nav-item > ${dv}, .list-group-item`,CB=".dropdown",EB=".dropdown-toggle",SB={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},_B={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ac extends $n{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 SB}static get DefaultType(){return _B}static get NAME(){return fB}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=eo(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(de.off(this._config.target,cv),de.on(this._config.target,cv,ih,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,o=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=s=>this._targetLinks.get(`#${s.target.id}`),r=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(n(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(s));continue}const c=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&c){if(r(s),!o)return;continue}!i&&!c&&r(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Ne.find(ih,this._config.target);for(const n of e){if(!n.hash||to(n))continue;const r=Ne.findOne(decodeURI(n.hash),this._element);Mi(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(Ri),this._activateParents(e),de.trigger(this._element,pB,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(gB)){Ne.findOne(EB,e.closest(CB)).classList.add(Ri);return}for(const n of Ne.parents(e,vB))for(const r of Ne.prev(n,bB))r.classList.add(Ri)}_clearActiveClass(e){e.classList.remove(Ri);const n=Ne.find(`${ih}.${Ri}`,e);for(const r of n)r.classList.remove(Ri)}static jQueryInterface(e){return this.each(function(){const n=Ac.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(window,mB,()=>{for(const t of Ne.find(yB))Ac.getOrCreateInstance(t)}),vn(Ac);const wB="tab",Vo=".bs.tab",kB=`hide${Vo}`,AB=`hidden${Vo}`,TB=`show${Vo}`,IB=`shown${Vo}`,xB=`click${Vo}`,OB=`keydown${Vo}`,NB=`load${Vo}`,MB="ArrowLeft",uv="ArrowRight",LB="ArrowUp",fv="ArrowDown",Fo="active",hv="fade",sh="show",DB="dropdown",PB=".dropdown-toggle",BB=".dropdown-menu",ah=":not(.dropdown-toggle)",$B='.list-group, .nav, [role="tablist"]',RB=".nav-item, .list-group-item",VB=`.nav-link${ah}, .list-group-item${ah}, [role="tab"]${ah}`,pv='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',lh=`${VB}, ${pv}`,FB=`.${Fo}[data-bs-toggle="tab"], .${Fo}[data-bs-toggle="pill"], .${Fo}[data-bs-toggle="list"]`;class Vi extends $n{constructor(e){super(e),this._parent=this._element.closest($B),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),de.on(this._element,OB,n=>this._keydown(n)))}static get NAME(){return wB}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?de.trigger(n,kB,{relatedTarget:e}):null;de.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(Fo),this._activate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(sh);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),de.trigger(e,IB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_deactivate(e,n){if(!e)return;e.classList.remove(Fo),e.blur(),this._deactivate(Ne.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(sh);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),de.trigger(e,AB,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(hv))}_keydown(e){if(![MB,uv,LB,fv].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=[uv,fv].includes(e.key),r=Hf(this._getChildren().filter(o=>!to(o)),e.target,n,!0);r&&(r.focus({preventScroll:!0}),Vi.getOrCreateInstance(r).show())}_getChildren(){return Ne.find(lh,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Ne.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(DB))return;const o=(i,s)=>{const c=Ne.findOne(i,r);c&&c.classList.toggle(s,n)};o(PB,Fo),o(BB,sh),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Fo)}_getInnerElement(e){return e.matches(lh)?e:Ne.findOne(lh,e)}_getOuterElement(e){return e.closest(RB)||e}static jQueryInterface(e){return this.each(function(){const n=Vi.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}de.on(document,xB,pv,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!to(this)&&Vi.getOrCreateInstance(this).show()}),de.on(window,NB,()=>{for(const t of Ne.find(FB))Vi.getOrCreateInstance(t)}),vn(Vi);const jB="toast",io=".bs.toast",zB=`mouseover${io}`,UB=`mouseout${io}`,HB=`focusin${io}`,WB=`focusout${io}`,KB=`hide${io}`,YB=`hidden${io}`,GB=`show${io}`,QB=`shown${io}`,ZB="fade",mv="hide",Tc="show",Ic="showing",JB={animation:"boolean",autohide:"boolean",delay:"number"},XB={animation:!0,autohide:!0,delay:5e3};class Fi extends $n{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 JB}static get NAME(){return jB}show(){if(de.trigger(this._element,GB).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(ZB);const n=()=>{this._element.classList.remove(Ic),de.trigger(this._element,QB),this._maybeScheduleHide()};this._element.classList.remove(mv),na(this._element),this._element.classList.add(Tc,Ic),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||de.trigger(this._element,KB).defaultPrevented)return;const n=()=>{this._element.classList.add(mv),this._element.classList.remove(Ic,Tc),de.trigger(this._element,YB)};this._element.classList.add(Ic),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Tc),super.dispose()}isShown(){return this._element.classList.contains(Tc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){de.on(this._element,zB,e=>this._onInteraction(e,!0)),de.on(this._element,UB,e=>this._onInteraction(e,!1)),de.on(this._element,HB,e=>this._onInteraction(e,!0)),de.on(this._element,WB,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=Fi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}}mc(Fi),vn(Fi);function gv(t,e){return e.value||t.getAttribute("title")||""}const jo={mounted:(t,e)=>{const n=gv(t,e);n&&t.setAttribute("title",n),new qn(t)},updated:(t,e)=>{const n=qn.getInstance(t);n&&n.dispose();const r=gv(t,e);r&&t.setAttribute("title",r),new qn(t)},unmounted:t=>{const e=qn.getInstance(t);e&&e.dispose()}},qB={key:0,class:"pills-list__wrapper"},e$={class:"pills-list__ul"},t$={class:"bd-markdown-editor__menu-bottom"},n$={key:0,class:"vr"},yv=a.defineComponent({__name:"BDMarkdownEditor",props:{placeholder:{default:"Typ een bericht"},errorText:{default:"er is iets fout gegaan"},state:{type:[Boolean,null],default:null},variant:{default:Ff.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("upload")},o=co(n,"modelValue",e),i=[jN,zN,UN,hM.configure({placeholder:n.placeholder}),OM,fM.configure({openOnClick:!1,validate:P=>/^(https?:\/\/|www\.)/i.test(P)})];n.variant===Ff.FULL&&i.push(vM,_M,wM,kM,TM,xM);const s=FN({content:o.value,extensions:i,onUpdate:({editor:P})=>{const{view:j,state:K}=P,{from:F,to:W}=j.state.selection;if(K.doc.textBetween(F-1,W,"")==" "&&P.getAttributes("link").href!=null&&P.chain().setTextSelection({from:F-1,to:W}).toggleLink({href:P.getAttributes("link").href}).setTextSelection({from:W,to:W}).run(),P.getText().trim()===""){e("update:modelValue","");return}e("update:modelValue",P.getHTML())}});a.watch(()=>n.modelValue,P=>{s.value.getHTML()!==P&&s.value.commands.setContent(P,!0,{preserveWhitespace:"full"})});const c=a.computed(()=>n.state===!1?"is-invalid":null),l=a.computed(()=>g("bold")),d=a.computed(()=>g("italic")),u=a.computed(()=>g("underline")),f=a.computed(()=>g("bulletList")),h=a.computed(()=>g("orderedList")),p=a.computed(()=>g("link")),m=a.computed(()=>n.variant===Ff.FULL),g=P=>s.value&&s.value.isActive(P)?"active":null,y=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!1):null),C=a.computed(()=>n.files&&n.files.length>0?Po(n.apiUrl,n.files,!0):null),E=P=>{e("action",{name:"delete-attachment",obj:P})},b=P=>{e("action",{name:"image-attachment",obj:P})},v=a.computed(()=>{if(!s.value)return!1;const{from:P,to:j}=s.value.state.selection;return P!==j}),k=a.computed(()=>v.value?"Voeg een link toe":"Selecteer eerst tekst"),_=a.ref(!1),O=a.ref(""),L=a.ref(null),N=()=>{O.value=s.value.getAttributes("link").href||"",_.value=!0},z=P=>{if(_.value=!1,!P){s.value.chain().focus().unsetLink().run();return}/^www\./i.test(P)&&(P=`https://${P}`),s.value.chain().focus().toggleLink({href:P}).run()},V=()=>{_.value=!1};return(P,j)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{class:a.normalizeClass(["bd-markdown-editor",c.value])},[a.createVNode(a.unref(VN),{editor:a.unref(s)},null,8,["editor"]),P.pills?(a.openBlock(),a.createElementBlock("div",qB,[a.createElementVNode("ul",e$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(P.pills,(K,F)=>(a.openBlock(),a.createElementBlock("li",{key:F,class:"pills-list__li"},[a.createVNode(ja,a.normalizeProps(a.guardReactiveProps(K)),null,16)]))),128))])])):a.createCommentVNode("",!0),a.renderSlot(P.$slots,"default"),y.value?(a.openBlock(),a.createBlock(ea,{key:1,files:y.value,"no-download":!0,"show-delete":!0,onDelete:E},null,8,["files"])):a.createCommentVNode("",!0),C.value?(a.openBlock(),a.createBlock(ta,{key:2,files:C.value,"no-download":!0,"show-delete":!0,onDelete:E,onShow:b},null,8,["files"])):a.createCommentVNode("",!0),a.createElementVNode("div",t$,[a.createVNode(ze,{variant:"light",type:"button",onClick:r},{default:a.withCtx(()=>[a.createVNode(a.unref(_r))]),_:1}),m.value?(a.openBlock(),a.createElementBlock("div",n$)):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:1,variant:"light",type:"button",class:a.normalizeClass(l.value),onClick:j[0]||(j[0]=K=>a.unref(s).chain().focus().toggleBold().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Dc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:2,variant:"light",type:"button",class:a.normalizeClass(d.value),onClick:j[1]||(j[1]=K=>a.unref(s).chain().focus().toggleItalic().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Kc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:3,variant:"light",type:"button",class:a.normalizeClass(u.value),onClick:j[2]||(j[2]=K=>a.unref(s).chain().focus().toggleUnderline().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(qc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:4,variant:"light",type:"button",class:a.normalizeClass(f.value),onClick:j[3]||(j[3]=K=>a.unref(s).chain().focus().toggleBulletList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Pc))]),_:1},8,["class"])):a.createCommentVNode("",!0),m.value?(a.openBlock(),a.createBlock(ze,{key:5,variant:"light",type:"button",class:a.normalizeClass(h.value),onClick:j[4]||(j[4]=K=>a.unref(s).chain().focus().toggleOrderedList().run())},{default:a.withCtx(()=>[a.createVNode(a.unref(Gc))]),_:1},8,["class"])):a.createCommentVNode("",!0),a.withDirectives((a.openBlock(),a.createElementBlock("span",null,[m.value?(a.openBlock(),a.createBlock(ze,{key:0,ref_key:"linkButton",ref:L,variant:"light",type:"button",class:a.normalizeClass(p.value),onClick:N,disabled:!v.value},{default:a.withCtx(()=>[a.createVNode(a.unref(ma))]),_:1},8,["class","disabled"])):a.createCommentVNode("",!0)])),[[a.unref(jo),k.value]])]),_.value?(a.openBlock(),a.createBlock(PM,{key:3,previousUrl:O.value,onSubmit:z,onCancel:V},null,8,["previousUrl"])):a.createCommentVNode("",!0)],2),a.createVNode(Va,{text:n.errorText,state:n.state},null,8,["text","state"])],64))}}),r$={class:"header"},o$=a.createElementVNode("div",null,"Menu",-1),i$={class:"icon-close-wrapper"},s$={class:"navbar"},a$={class:"nav navbar-nav w-100"},l$={class:"nav-item"},c$={class:"nav-item"},ch=a.defineComponent({__name:"BDMobileMenu",props:{active:{type:Boolean,default:void 0},options:{}},emits:["hide","signout"],setup(t,{emit:e}){const n=t,r=a.computed(()=>({active:n.active===!0,inactive:n.active===!1})),o=()=>e("hide"),i=()=>e("signout");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-mobile-menu",r.value])},[a.createElementVNode("div",r$,[o$,a.createElementVNode("div",i$,[a.createVNode(ha,{onClick:o})])]),a.createElementVNode("nav",s$,[a.createElementVNode("ul",a$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,l=>(a.openBlock(),a.createElementBlock("li",l$,[a.createVNode(ao,a.mergeProps({class:"nav-link"},l,{onClick:o}),null,16)]))),256)),a.renderSlot(s.$slots,"special-options"),a.createElementVNode("li",c$,[a.createVNode(ao,{class:"nav-link",text:"Uitloggen",onClick:i})])])])],2))}}),d$={class:"bd-user"},u$={class:"bd-user__information"},f$={class:"text-break"},h$={class:"overflow-x-hidden"},vv=a.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=a.computed(()=>{var r;return typeof e.details=="string"?e.details:(r=e.details)==null?void 0:r.join(" • ")});return(r,o)=>(a.openBlock(),a.createElementBlock("div",d$,[e.hideImage?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Ki,a.mergeProps({key:0},e.img,{size:"sm"}),null,16)),a.createElementVNode("div",u$,[a.createElementVNode("header",null,[a.createElementVNode("h5",f$,a.toDisplayString(e.name),1),a.renderSlot(r.$slots,"header-extra")]),a.createElementVNode("span",h$,a.toDisplayString(n.value),1)])]))}}),p$={class:"bd-chat-cloud-card"},m$={class:"bd-chat-cloud-card__header"},g$={class:"bd-chat-cloud-card__body"},y$=["innerHTML"],v$={class:"bd-chat-cloud-card__footer"},b$={key:0,class:"pills-list__wrapper"},C$={class:"pills-list__ul"},bv=a.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=a.computed(()=>n.isSender?"sender":Be),o=a.computed(()=>Po(n.apiUrl,n.files,!1)),i=a.computed(()=>Po(n.apiUrl,n.files,!0)),s=()=>{e("action","copy-message")},c=l=>{e("show-attachment",l)};return(l,d)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["bd-chat-cloud",r.value])},[a.createVNode(Ki,{src:n.src,username:n.username,size:"sm"},null,8,["src","username"]),a.createElementVNode("div",p$,[a.createElementVNode("div",m$,[a.renderSlot(l.$slots,"header",{},()=>[a.createTextVNode(a.toDisplayString(l.headerTitle),1)]),a.createVNode(ze,{variant:"outline-primary-dark",size:"sm",onClick:s},{default:a.withCtx(()=>[a.createTextVNode(" kopieer ")]),_:1})]),a.createElementVNode("div",g$,[a.renderSlot(l.$slots,"body",{},()=>[a.createElementVNode("div",{class:"bd-chat-cloud-card__message",innerHTML:n.message},null,8,y$)])]),a.createElementVNode("div",v$,[a.renderSlot(l.$slots,"footer",{},()=>[l.pills?(a.openBlock(),a.createElementBlock("div",b$,[a.createElementVNode("ul",C$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.pills,(u,f)=>(a.openBlock(),a.createElementBlock("li",{key:f,class:"pills-list__li"},[a.createVNode(ja,a.normalizeProps(a.guardReactiveProps(u)),null,16)]))),128))])])):a.createCommentVNode("",!0),o.value&&o.value.length>0?(a.openBlock(),a.createBlock(ea,{key:1,files:o.value},null,8,["files"])):a.createCommentVNode("",!0),i.value&&i.value.length>0?(a.openBlock(),a.createBlock(ta,{key:2,"fast-download":!0,files:i.value,onShow:c},null,8,["files"])):a.createCommentVNode("",!0)])])])],2))}}),E$=a.defineComponent({__name:"BDTableSortHeader",props:["active","label","sortDesc"],emits:["sortAsc","sortDesc"],setup(t,{emit:e}){const n=t,r=a.ref(n.sortDesc),o=()=>{n.active&&(r.value=!r.value)},i=()=>{if(!n.active)return;const c=r.value?"sortDesc":"sortAsc";e(c)},s=a.computed(()=>({"bd-table-sort":!0,active:n.active}));return a.watch(()=>n.active,(c,l)=>{c&&!l&&(r.value=!1,e("sortAsc"))}),i(),(c,l)=>(a.openBlock(),a.createElementBlock("th",{class:a.normalizeClass(s.value),onClick:l[0]||(l[0]=d=>{o(),i()})},[a.createElementVNode("span",null,a.toDisplayString(n.label),1),n.active&&!r.value?(a.openBlock(),a.createBlock(a.unref(Qc),{key:0})):n.active&&r.value?(a.openBlock(),a.createBlock(a.unref(Zc),{key:1})):(a.openBlock(),a.createBlock(a.unref(Jc),{key:2}))],2))}}),S$={class:"bd-table"},_$={key:0,class:"table"},w$={key:1},k$=["onClick"],A$={key:0},T$={key:1,class:"empty-text"},Cv=a.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=a.ref(r.items),i=a.ref(r.sortBy),s=f=>i.value=f,c=(f,h,p)=>{const m=h[f],g=p[f];if(m==null)return 1;if(g==null)return-1;const y=m.toString(),C=g.toString();return y.localeCompare(C,void 0,{numeric:!0})},l=f=>{o.value=o.value.sort((p,m)=>c(f,p,m)),n("sort-changed",{sortBy:f,sortDesc:!1})},d=f=>{o.value=o.value.sort((p,m)=>c(f,m,p)),n("sort-changed",{sortBy:f,sortDesc:!0})},u=()=>{o.value=r.items};return a.watch(()=>r.items,f=>{o.value=f}),e({Refresh:u}),(f,h)=>(a.openBlock(),a.createElementBlock("div",S$,[r.items&&r.items.length>0?(a.openBlock(),a.createElementBlock("table",_$,[a.createElementVNode("thead",null,[a.createElementVNode("tr",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.fields,p=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[p.isVisible?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[p.sortable?(a.openBlock(),a.createBlock(E$,{key:0,label:p.label,active:p.key==i.value,sortDesc:r.sortDesc,onClick:m=>s(p.key),onSortAsc:m=>l(p.key),onSortDesc:m=>d(p.key)},null,8,["label","active","sortDesc","onClick","onSortAsc","onSortDesc"])):(a.openBlock(),a.createElementBlock("th",w$,a.toDisplayString(p.label),1))],64)):a.createCommentVNode("",!0)],64))),256))])]),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,p=>(a.openBlock(),a.createElementBlock("tr",{class:a.normalizeClass(r.tbodyTrClass&&r.tbodyTrClass(p)),onClick:m=>n("row-click",p)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.fields,m=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[m.isVisible?(a.openBlock(),a.createElementBlock("td",A$,[f.$slots.hasOwnProperty(m.key)?a.renderSlot(f.$slots,m.key,{key:0,row:p,item:p,value:p[m.key]}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(p[m.key]),1)],64))])):a.createCommentVNode("",!0)],64))),256))],10,k$))),256))])])):(a.openBlock(),a.createElementBlock("p",T$,a.toDisplayString(r.emptyText),1))]))}}),I$=["id"],x$={key:0,class:"toast-body__title"},O$={class:"actions"},N$=["textContent"],M$=["textContent"],L$={class:"icon-wrapper"},D$=["textContent"],P$=["textContent"],Ev=3e4,Sv=5e3,_v=a.defineComponent({__name:"BDVideoCallToast",props:{id:{},contactInfoReceiver:{},isSender:{type:Boolean},firstNameSender:{},canceled:{type:Boolean},disabled:{type:Boolean},localization:{}},emits:["reject-video-call","accept-video-call"],setup(t,{emit:e}){const n=t;let r=a.ref(!1),o=a.ref(!1),i=null,s=null;const c=a.computed(()=>{let E="video-call-toast";return n.id&&(E+=`-${n.id}`),E}),l=a.computed(()=>r.value?[r.value?"is-handled":Be,o.value?"is-handled--success":Be,n.canceled?"is-handled--canceled":Be].join(" "):Be),d=a.computed(()=>n.canceled?n.localization.videoCallCanceled:o.value?n.localization.videoCallAccepted:n.localization.videoCallRejected),u=a.computed(()=>n.canceled?`${n.firstNameSender}${n.localization.notifyCallerWhenCanceled}`:n.isSender?n.contactInfoReceiver?`${n.contactInfoReceiver.name}${n.localization.notifyCallerWhenRejected}`:n.localization.notifyCallerWhenRejected:o.value?n.localization.openNewTabWhenAccepted:`${n.localization.notifyReceiverWhenRejected.start}${n.firstNameSender}${n.localization.notifyReceiverWhenRejected.end}`.replace(/\s\s+/g," "));a.watch(()=>n.canceled,()=>{r.value=!0});const f=()=>{const E=c.value,b=document.querySelector(`#${E}`);if(b){b.addEventListener("hide.bs.toast",C);var v={autohide:!0,delay:Ev+Sv};s=Fi.getOrCreateInstance(b,v),s.show(),i=window.setTimeout(h,Ev)}};a.onMounted(f);const h=()=>{r.value||m()},p=()=>{m(),y()},m=()=>{r.value||(r.value=!0,e("reject-video-call",n.id))},g=()=>{r.value=!0,o.value=!0,e("accept-video-call",n.id),y()},y=()=>{window.clearTimeout(i),window.setTimeout(()=>s.hide(),Sv)},C=()=>{r.value=!1,o.value=!1};return(E,b)=>(a.openBlock(),a.createElementBlock("div",{id:c.value,class:"toast bd-video-call-toast",role:"alert","aria-live":"assertive","aria-atomic":"true"},[a.unref(r)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",x$,a.toDisplayString(n.localization.incomingVideoCall),1)),a.createElementVNode("div",{class:a.normalizeClass(["toast-body__main",l.value])},[a.unref(r)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",L$,[a.createVNode(ua)]),a.createElementVNode("div",null,[a.createElementVNode("p",{textContent:a.toDisplayString(d.value),class:"title"},null,8,D$),a.createElementVNode("p",{textContent:a.toDisplayString(u.value)},null,8,P$)])],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Wd,{value:E.contactInfoReceiver},null,8,["value"]),a.createElementVNode("div",O$,[a.createVNode(ze,{variant:"danger",class:"text-center",onClick:p},{default:a.withCtx(()=>[a.createVNode(Bc),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.rejectVideoCall)},null,8,N$)]),_:1}),a.createVNode(ze,{variant:"success",class:"text-center",onClick:g},{default:a.withCtx(()=>[a.createVNode(ua),a.createElementVNode("span",{textContent:a.toDisplayString(n.localization.acceptVideoCall)},null,8,M$)]),_:1})])],64))],2)],8,I$))}}),dh=a.defineComponent({__name:"BDDropdown",props:{size:{default:ut.MD},variant:{default:ya.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}=Wo(),r=`__BD__DROPDOWN__${n.value}`,o=a.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=a.computed(()=>({"dropdown-menu-end":e.right,"dropdown-menu-action":e.actionToggle})),s=a.computed(()=>({"aria-labelledby":r})),c=a.ref(),l=a.ref(),d=()=>{c.value.classList.remove("show"),l.value.classList.remove("show"),l.value.removeAttribute("aria-expanded")};return(u,f)=>(a.openBlock(),a.createElementBlock("div",{class:"bd-dropdown dropdown",onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.toggleTag),a.mergeProps({ref_key:"dropdownToggle",ref:l,class:"dropdown-toggle",target:"_self",role:"button","data-bs-toggle":"dropdown"},o.value),{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(e.text),1)]),_:1},16)),a.createElementVNode("ul",a.mergeProps({ref_key:"dropdownMenu",ref:c,class:["dropdown-menu",i.value]},s.value,{onClick:d}),[a.renderSlot(u.$slots,"default")],16)]))}}),B$={class:"row bd-header"},$$={class:"col logo-mix"},R$=["src"],V$=a.createElementVNode("div",null,"Menu",-1),F$={key:1,class:"col header-options"},j$={class:"col bd-btn-settings"},z$={key:2},uh=a.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=a.computed(()=>{let u=[];return n.isEmbedded||(n.headerOptions&&(u=u.concat(n.headerOptions)),n.dropdownOptions&&(u=u.concat(n.dropdownOptions))),u}),o=a.computed(()=>!n.isEmbedded&&n.headerOptions&&n.headerOptions.length!==0),i=a.ref(void 0),s=()=>{n.isEmbedded||e("click-logo")},c=()=>e("signout"),l=()=>i.value=!0,d=()=>i.value=!1;return(u,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("nav",B$,[a.createElementVNode("div",$$,[a.createVNode(Nc,{viewBox:"0 0 351 61",class:"logo bd-logo",onClick:s}),n.organizationLogoSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"logo organization-logo",src:n.organizationLogoSrc,alt:""},null,8,R$)):a.createCommentVNode("",!0)]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"col bd-hamburger",onClick:l},[V$,a.createVNode(Yc)])),o.value?(a.openBlock(),a.createElementBlock("div",F$,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.headerOptions,h=>(a.openBlock(),a.createBlock(ze,{class:"btn-header",to:h.to,variant:"neutral"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.text),1)]),_:2},1032,["to"]))),256))])):a.createCommentVNode("",!0),a.createElementVNode("div",j$,[n.isEmbedded?a.createCommentVNode("",!0):a.renderSlot(u.$slots,"profile-side",{key:0}),n.profileImageSrc?(a.openBlock(),a.createBlock(Ki,{key:1,src:n.profileImageSrc,alt:n.profileImageAlt,size:"sm"},null,8,["src","alt"])):a.createCommentVNode("",!0),n.isEmbedded?(a.openBlock(),a.createElementBlock("span",z$,a.toDisplayString(n.dropdownMenuTitle),1)):a.createCommentVNode("",!0),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(dh,{key:3,text:n.dropdownMenuTitle,variant:"primary",toggleTag:"a",right:!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.dropdownOptions,(h,p)=>(a.openBlock(),a.createBlock(za,a.mergeProps({key:p},h),null,16))),128)),n.hasLogoutOption?(a.openBlock(),a.createBlock(za,{key:0,text:"Uitloggen",onClick:c})):a.createCommentVNode("",!0)]),_:1},8,["text"]))])]),n.isEmbedded?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(ch,{key:0,active:i.value,options:r.value,onHide:d,onSignout:c},{"special-options":a.withCtx(()=>[a.renderSlot(u.$slots,"mobile-menu-special-options")]),_:3},8,["active","options"]))],64))}}),U$="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgaGVpZ2h0PSI4MDBweCIKICAgd2lkdGg9IjgwMHB4IgogICB2aWV3Qm94PSIwIDAgODAwIDgwMCIKICAgZmlsbD0ibm9uZSIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnMiIKICAgc29kaXBvZGk6ZG9jbmFtZT0iYmVsbC1pY29uLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS40LjIgKGViZjBlOTQsIDIwMjUtMDUtMDgpIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMyIiAvPgogIDxzb2RpcG9kaTpuYW1lZHZpZXcKICAgICBpZD0ibmFtZWR2aWV3MiIKICAgICBwYWdlY29sb3I9IiNmZmZmZmYiCiAgICAgYm9yZGVyY29sb3I9IiMwMDAwMDAiCiAgICAgYm9yZGVyb3BhY2l0eT0iMC4yNSIKICAgICBpbmtzY2FwZTpzaG93cGFnZXNoYWRvdz0iMiIKICAgICBpbmtzY2FwZTpwYWdlb3BhY2l0eT0iMC4wIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiCiAgICAgaW5rc2NhcGU6ZGVza2NvbG9yPSIjZDFkMWQxIgogICAgIGlua3NjYXBlOnpvb209IjAuOTM5MDI2MDEiCiAgICAgaW5rc2NhcGU6Y3g9IjM2MS4wMTIzNiIKICAgICBpbmtzY2FwZTpjeT0iNDI1LjQ0MDgyIgogICAgIGlua3NjYXBlOndpbmRvdy13aWR0aD0iMjMyMyIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMzIxIgogICAgIGlua3NjYXBlOndpbmRvdy14PSI2OSIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTkiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmcyIgogICAgIGlua3NjYXBlOmxvY2tndWlkZXM9ImZhbHNlIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDU3NC43MTM0LDUxNy43MDgzOSBjIC00My4wMjM0MywtMTkuNDI5NTggLTQwLjMzOTkxLC05Mi4wMzE3MyAtNDAuMzcxNjYsLTk0LjEzNjAzIGwgLTAuODY0MDMsLTU1LjA4NjIyIGMgLTAuODQ0NTIsLTUzLjg0MjYzIC0zMi43NjI4OSwtMTAxLjAxNzg3IC03OS41MjI2MSwtMTIwLjczMzg5IC0wLjEwMDU1LC0yNy42ODUzOCAtMjYuMjQ3ODcsLTUwLjE3NzEzIC01My45NTM3NSwtNTAuMTc3MTMgLTI3LjcwNjU1LDAgLTUzLjg1MzIsMjIuNDkzMDcgLTUzLjk1NDQyLDUwLjE3NTgxIC00Ni43NTc3NCwxOS43MTYwMSAtNzcuNjczOTUsNjguNjIxNjYgLTc4LjY1NzI0LDEyMi40NjE5MyBsIC0wLjg2NDAzLDQ3LjMxIGMgLTAuMDMwNCwyLjEwNDMgMS43ODc3Myw4MC43NTQ2MyAtNDEuMjM3MDMsMTAwLjE4NDIgLTQuOTAxMjIsMi4yMTQxMiAtNy41OTQ5NCwxMi45NDczIC02LjQ2MTc1LDE4LjIwNTA4IDEuMTMxODcsNS4yNTg0MyAzLjk4MjM3LDE0LjQxMTkgOS4zNjEyMiwxNC40MTE5IGggMTEwLjg3MTE1IGMgMi4yMzU5NSwxMi4zMDAzNSA4LjA1MjA1LDIzLjc0MzM2IDE2Ljk0NzU0LDMzLjAxMTk2IDExLjgxNDgsMTIuMzA5NjEgMjcuNDM5MywxOS4wODg4OCA0My45OTI1NywxOS4wODg4OCAxNi41NTQ2LDAgMzIuMTc5MSwtNi43NzkyNyA0My45OTI1OCwtMTkuMDg4ODggOC44OTY4MSwtOS4yNjkyNSAxNC43MTI5MSwtMjAuNzEyOTQgMTYuOTQ3NTQsLTMzLjAxMTk2IGggMTEwLjg3MTE1IGMgNS4zNzg4NSwwIDguMjI4NjksLTkuMTUyOCA5LjM2MTg5LC0xNC40MTE5IDEuMTM0NDksLTUuMjU3NzggLTEuNTU3ODksLTE1Ljk5MDMgLTYuNDU5MTIsLTE4LjIwMzc1IHogbSAtNjUuNDU3NDIsLTI3Ljc0MTc4IGMgNC41MjI4MiwxMy43MTIwNCA3LjI1NzA3LDE2LjIwNjczIDE2LjMzODQ1LDI3LjY2NTYyIGwgLTI1MC4zOTQ3NSwtMC43OTI3NSBjIDkuMDgwMDUsLTExLjQ1NzU2IDEwLjM3MTQsLTEzLjE1ODg1IDE0Ljg5NDIyLC0yNi44NzI4NyB6IE0gNDAwLjAwMTM1LDIyNC4wMDYyMiBjIDEyLjUzMjU1LDAgMTkuNTMwMTUsNC44MjI1MiAyMi44NDU3LDE2LjMwMTI2IC04LjU0MTU5LC0xLjc3MTU2IC0xMy43ODc0NywtMi43MDU2MyAtMjIuODQ1NywtMi43MDU2MyAtOS4wNTgyMywwIC0xNC4zMDQxMiwwLjkzMzQxIC0yMi44NDU2OSwyLjcwNTYzIDMuMzE2MiwtMTEuNDc4MDggMTAuMzEzODEsLTE2LjMwMTI2IDIyLjg0NTY5LC0xNi4zMDEyNiB6IG0gLTEwMy41ODg0OCwxOTkuNjM0OTQgMS43OTkzMywtNTQuMjIxNyBjIDEuOTYwMjIsLTU5LjA2OTg5IDQyLjY4NTQzLC05Ni42NzQ5NyAxMDEuNzg5MTUsLTk2LjY3NDk3IDU5LjEwMzczLDAgOTkuODk0OTksMzUuODAzNTkgMTAxLjc4OTE2LDk0Ljg3NTY0IGwgMS43OTkzMyw1Ni4xMTQzIGMgMC4wMTUyLDEuNzE3MzEgMS40NzQyMiwxMi41NjgzIDEuMjMyNDMsMzQuNzg2MiBIIDI5NS4xNzc3OCBjIDAuNzE4OTQsLTIyLjIzOTA2IDEuMjIxMTksLTMzLjEyMTggMS4yMzUwOSwtMzQuODc5NDcgeiBtIDEwMy41ODg0OCwxNDguOTY5NzggYyAtMTcuNDI1MTcsMCAtMjUuNDM1NTgsLTUuNTgwMTUgLTMwLjMxNjk0LC0yMi4yODYyNCBoIDYwLjYzMjU3IGMgLTQuODgxMzgsMTYuNzA2MDkgLTEyLjg4OTE0LDIyLjI4NjI0IC0zMC4zMTU2MywyMi4yODYyNCB6IgogICAgIGlkPSJwYXRoMSIKICAgICBzdHlsZT0ic3Ryb2tlLXdpZHRoOjAuODk5NjY2O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICBzb2RpcG9kaTpub2RldHlwZXM9ImNjc2NzY3NjY2NzY2NzY2NzY2NjY2NjY3Njc2NzY3Nzc2NjY2NzY2NzIiAvPgogIDxwYXRoCiAgICAgZmlsbD0iIzM5NDE1NiIKICAgICBkPSJtIDM5Ny45Njk0NCwyODMuMzM2NjkgYyAtNDkuNDE4NTUsMCAtODkuNjIzNjEsNDAuMjAzNzMgLTg5LjYyMzYxLDg5LjYyMTYxIDAsNi4zNDM1NCA1LjE0Mjg2LDExLjQ4NjQgMTEuNDg2MzksMTEuNDg2NCA2LjM0MzU1LDAgMTEuNDg2NDEsLTUuMTQyODYgMTEuNDg2NDEsLTExLjQ4NjQgMCwtMzYuNzUwNzYgMjkuODk5MzgsLTY2LjY0OTQ4IDY2LjY1MTQ4LC02Ni42NDk0OCA2LjM0MzUzLDAgMTEuNDg2MzksLTUuMTQyODUgMTEuNDg2MzksLTExLjQ4NjQgLTYuNmUtNCwtNi4zNDQyIC01LjE0MzUzLC0xMS40ODU3MyAtMTEuNDg3MDYsLTExLjQ4NTczIHoiCiAgICAgaWQ9InBhdGgyIgogICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC45MDQ3MTI7c3Ryb2tlLWRhc2hhcnJheTpub25lIgogICAgIHNvZGlwb2RpOm5vZGV0eXBlcz0ic3Nzc3NjcyIgLz4KPC9zdmc+Cg==",wv=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 fh(){const t=()=>new Promise(n=>{if(document.readyState==="complete")return n();window.addEventListener("load",()=>n(),{once:!0})});return{OnWindowLoaded:n=>{a.onMounted(()=>t().then(n))}}}const H$=(t,e,n)=>{const{OnWindowLoaded:r}=fh(),o="lkj298fhGGJihge",i=a.ref(!1),s=()=>e+"|"+n();return r(async()=>{if(e==null||n==null||n()==null){i.value=!1;return}const d=s(),u=localStorage.getItem(t),f=JSON.parse(u)||[],h=await wv(d,o);i.value=!f.includes(h)}),{hasUnfulfilledInteraction:i,MarkInteractionPerformed:async()=>{const d=s(),u=await wv(d,o),f=localStorage.getItem(t),h=JSON.parse(f)||[];h.includes(u)||(h.push(u),localStorage.setItem(t,JSON.stringify(h))),i.value=!1}}};function kv(t){const{OnWindowLoaded:e}=fh();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=Ro.getInstance(t.value);c&&c.hide()})};a.onMounted(r);const o=()=>{if((t==null?void 0:t.value)==null)return;Ro.getInstance(t.value)||new Ro(t.value)};e(o),a.watch(t,o),a.onUnmounted(()=>{if((t==null?void 0:t.value)!=null){const i=Ro.getInstance(t.value);i&&i.dispose()}n&&document.removeEventListener("click",n)})}const W$=["data-bs-title","data-bs-content"],K$=["title"],Y$={key:0,class:"number-circle",textContent:1},G$=a.defineComponent({__name:"BDNotificationButton",props:{userId:{},getNotification:{}},setup(t){const e=t,n=()=>{var u;return(u=e.getNotification)==null?void 0:u.linkUrl},{hasUnfulfilledInteraction:r,MarkInteractionPerformed:o}=H$("notificationsRead",e.userId,n),i=a.ref();kv(i);const s=a.computed(()=>{const u=e.getNotification;if(!u)return!1;const{isActive:f,startDate:h,endDate:p}=u;if(!f)return!1;const m=new Date(h),g=new Date(p),y=new Date;return y>=m&&y<=g}),c=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.tooltip}),l=a.computed(()=>{var u;return(u=e.getNotification)==null?void 0:u.title}),d=a.computed(()=>{const u=e.getNotification;if(!u)return"";const{text:f,linkUrl:h,linkText:p}=u;return`
|
|
1357
1357
|
<p>${f}</p>
|
|
1358
1358
|
<a href='${h}' target='_blank'>${p}</a>
|
|
1359
|
-
`});return(u,f)=>s.value?(a.openBlock(),a.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":l.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:U$,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,K$),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",Y$)):a.createCommentVNode("",!0)],8,W$)):a.createCommentVNode("",!0)}}),Q$={class:"profile-side"},Z$=["href"],J$={class:"nav-item"},X$=["textContent"],Av=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Pt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(uh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",Q$,[a.createVNode(G$,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(a.openBlock(),a.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[a.withDirectives(a.createVNode(a.unref(da),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,Z$)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",J$,[a.createVNode(ao,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(da)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,X$)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),q$={class:"modal-dialog"},eR={class:"modal-content"},tR={class:"modal-header"},nR={class:"modal-title"},rR=["src"],oR=a.createElementVNode("span",null,"Sluiten",-1),iR={class:"modal-body"},sR={key:0,class:"modal-footer"},aR=["disabled"],Rn=a.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=a.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),tabindex:"-1"},[a.createElementVNode("div",q$,[a.createElementVNode("div",eR,[a.createElementVNode("div",tR,[a.createElementVNode("h2",nR,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,rR)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(n.title),1)]),a.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[oR,a.createVNode(a.unref(ha))]))]),a.createElementVNode("div",iR,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",sR,[n.hideFooterSubmitButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},a.toDisplayString(n.submitButtonTitle),9,aR)),a.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},a.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),zo=t=>{const e=a.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=ro.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=ro.getInstance(o);i&&i.hide()}}}};function ca(t=void 0){const e=c=>i("Succesvol",c,ti.SUCCESS),n=c=>i("Waarschuwing",c,ti.WARNING),r=c=>i("Informatie",c,ti.INFO),o=c=>i("Mislukt",c,ti.DANGER);function i(c,l,d){const u=`toast-${vp()}`,f={id:u,variant:d,title:c,text:l},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=a.h(Ud,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Fi.getOrCreateInstance(y,t).show(),s(y))}function s(c){function l(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(l),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:lR}=ca();function hh(t){const e=a.ref(null),n=(l,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?u=l.response.data.filter(h=>Fa(h.ErrorMessage)&&h.ErrorMessage!==Be):l.response.data.ErrorMessage?u=[l.response.data.ErrorMessage]:u=null,Fa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(l),s(e)},r=l=>{if(t==null)return;const u=new URL(l.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&lR(f)}},o=a.ref(null),i=a.ref(""),s=l=>{lk(l.value)?o.value=l.value.map(d=>Fa(d)?d:d.ErrorMessage):Fa(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const cR={key:0},dR={key:1},uR={class:"bd-form-field"},fR={class:"bd-form-field"},Tv=a.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=ca(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:d,ResetServerErrors:u}=hh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Be;const p=a.ref(),m=a.ref(null),g=a.ref(),y=a.ref(),C=a.ref(null),E=a.computed(()=>y.value==null||y.value==""),b=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!y.value){C.value=!1;return}const N={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},_=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},O=N=>{h=N,p.value=h,m.value=null,g.value=void 0,y.value=void 0,C.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Be)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:a.unref(s),errorMessages:a.unref(c),errorMessageText:a.unref(l),onSubmit:v,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(lo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",cR,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(V,P)=>(a.openBlock(),a.createElementBlock("li",{key:P},[a.createVNode(wr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",dR,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",uR,[a.createVNode(Lr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":z[0]||(z[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:a.withCtx(()=>[a.createVNode(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:b},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),a.createVNode(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",fR,[g.value?(a.openBlock(),a.createBlock(Lr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":z[1]||(z[1]=V=>y.value=V),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):a.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Iv=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),d=a.ref(null),{showModal:u,closeModal:f}=zo("session-time-out-modal"),h=a.computed(()=>s.value&&t?t-(s.value+1):0),p=a.computed(()=>c.value?60-c.value:0),m=a.computed(()=>l.value),g=()=>{d.value=setInterval(C,1e3),r(d.value)},y=()=>{d.value&&clearInterval(d.value)},C=()=>{s.value=Zt().diff(n(),"m"),c.value=Zt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},b=()=>{o(),y(),s.value=null,c.value=null,g()},v=()=>{y(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{l.value?v():b()},_=()=>{v()},O=()=>{l.value?v():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},xv=a.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}=Iv(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=a.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),l=a.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=a.computed(()=>e.hideCancelButton||n.value),u=a.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(a.openBlock(),a.createBlock(Rn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:a.unref(s),onCancel:a.unref(i)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Ov={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=zo(n.modalId);let i=a.ref(null);e({Confirm:()=>ak(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(d,u)=>(a.openBlock(),a.createBlock(Rn,{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:l},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},Nv={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Pt(),r=a.ref(!1),o=a.ref(!1),i=()=>e("update:isConcluded",r.value),s=()=>e("update:isUnread",o.value);return(c,l)=>(a.openBlock(),a.createBlock(Rn,{id:"assign-conversation-modal",title:a.unref(n)("assignConversationModal.title"),submitButtonTitle:a.unref(n)("assignConversationModal.submitButton")},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"body"),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(ze,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(wr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=d=>o.value=d),onChange:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),a.renderSlot(c.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},Mv=a.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=zo("attachment-upload-modal"),{t:o}=Pt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),d=a.computed(()=>o("attachmentUploadModal.submitButton")),u=a.computed(()=>o("attachmentUploadModal.infoMessage")),f=a.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=a.computed(()=>o("attachmentUploadModal.errorMessage")),p=a.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=a.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage")),g=a.computed(()=>o("attachmentUploadModal.officeDocumentsNotSupportedByMobileMessage"));return(y,C)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createVNode(Qd,{modelValue:c.value,"onUpdate:modelValue":C[0]||(C[0]=E=>c.value=E),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),a.createElementVNode("p",null,a.toDisplayString(m.value),1),a.createElementVNode("p",null,a.toDisplayString(g.value),1)]),_:1},8,["title","submit-button-title"]))}});var hR=Object.defineProperty,pR=Object.defineProperties,mR=Object.getOwnPropertyDescriptors,Lv=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,Dv=(t,e,n)=>e in t?hR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ji=(t,e)=>{for(var n in e||(e={}))gR.call(e,n)&&Dv(t,n,e[n]);if(Lv)for(var n of Lv(e))yR.call(e,n)&&Dv(t,n,e[n]);return t},Pv=(t,e)=>pR(t,mR(e));const vR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},bR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},CR={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}}},ph=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ER={},SR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_R=a.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),wR=[_R];function kR(t,e){return a.openBlock(),a.createElementBlock("svg",SR,wR)}const AR=ph(ER,[["render",kR]]),TR={},IR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},xR=a.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),OR=[xR];function NR(t,e){return a.openBlock(),a.createElementBlock("svg",IR,OR)}const MR=ph(TR,[["render",NR]]),Bv={Deselect:AR,OpenIndicator:MR},LR={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 DR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let PR=0;function BR(){return++PR}const $R={components:ji({},Bv),directives:{appendToBody:LR},mixins:[vR,bR,CR],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)}.
|
|
1359
|
+
`});return(u,f)=>s.value?(a.openBlock(),a.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":l.value,"data-bs-content":d.value,"data-bs-html":!0,onClick:f[0]||(f[0]=(...h)=>a.unref(o)&&a.unref(o)(...h))},[a.withDirectives(a.createElementVNode("img",{src:U$,alt:"BeterDichtbij nieuws notificatie bel.",title:c.value},null,8,K$),[[a.unref(jo)]]),a.unref(r)?(a.openBlock(),a.createElementBlock("div",Y$)):a.createCommentVNode("",!0)],8,W$)):a.createCommentVNode("",!0)}}),Q$={class:"profile-side"},Z$=["href"],J$={class:"nav-item"},X$=["textContent"],Av=a.defineComponent({__name:"BDPractitionerHeader",props:{academyUrl:{},userId:{},getNotification:{}},setup(t){const e=t,{t:n}=Pt(),r=a.computed(()=>n("practitionerHeader.academyTooltip")),o=a.computed(()=>n("practitionerHeader.academyMenuItem"));return(i,s)=>(a.openBlock(),a.createBlock(uh,null,a.createSlots({"profile-side":a.withCtx(()=>[a.createElementVNode("div",Q$,[a.createVNode(G$,{"user-id":e.userId,"get-notification":e.getNotification},null,8,["user-id","get-notification"]),e.academyUrl?(a.openBlock(),a.createElementBlock("a",{key:0,href:e.academyUrl,target:"_blank",rel:"noopener,noreferrer"},[a.withDirectives(a.createVNode(a.unref(da),{title:r.value},null,8,["title"]),[[a.unref(jo)]])],8,Z$)):a.createCommentVNode("",!0)])]),_:2},[e.academyUrl?{name:"mobile-menu-special-options",fn:a.withCtx(()=>[a.createElementVNode("li",J$,[a.createVNode(ao,{class:"nav-link",to:e.academyUrl},{default:a.withCtx(()=>[a.createVNode(a.unref(da)),a.createElementVNode("span",{textContent:a.toDisplayString(o.value)},null,8,X$)]),_:1},8,["to"])])]),key:"0"}:void 0]),1024))}}),q$={class:"modal-dialog"},eR={class:"modal-content"},tR={class:"modal-header"},nR={class:"modal-title"},rR=["src"],oR=a.createElementVNode("span",null,"Sluiten",-1),iR={class:"modal-body"},sR={key:0,class:"modal-footer"},aR=["disabled"],Rn=a.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=a.computed(()=>`modal bd-modal modal-${n.size}`),o=()=>e("submit"),i=()=>e("cancel");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),tabindex:"-1"},[a.createElementVNode("div",q$,[a.createElementVNode("div",eR,[a.createElementVNode("div",tR,[a.createElementVNode("h2",nR,[n.titleImage?(a.openBlock(),a.createElementBlock("img",{key:0,src:n.titleImage,class:"title-image",alt:""},null,8,rR)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(n.title),1)]),a.renderSlot(s.$slots,"modal-header-space-between"),n.hideCloseButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:"btn-close w-auto","data-bs-dismiss":"modal","aria-label":"Sluiten",onClick:i},[oR,a.createVNode(a.unref(ha))]))]),a.createElementVNode("div",iR,[a.renderSlot(s.$slots,"default")]),s.hideFooter?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",sR,[n.hideFooterSubmitButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-primary",disabled:n.disableSubmitButton,onClick:o},a.toDisplayString(n.submitButtonTitle),9,aR)),a.renderSlot(s.$slots,"buttons"),n.hideFooterCancelButton?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:1,type:"button",class:"btn btn-link","data-bs-dismiss":"modal",onClick:i,"aria-label":"Annuleren"},a.toDisplayString(n.closeButtonTitle),1))]))])])],2))}}),zo=t=>{const e=a.ref(null);return{showModal:()=>{const o=document.getElementById(t);o instanceof HTMLElement?(e.value=ro.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=ro.getInstance(o);i&&i.hide()}}}};function ca(t=void 0){const e=c=>i("Succesvol",c,ti.SUCCESS),n=c=>i("Waarschuwing",c,ti.WARNING),r=c=>i("Informatie",c,ti.INFO),o=c=>i("Mislukt",c,ti.DANGER);function i(c,l,d){const u=`toast-${vp()}`,f={id:u,variant:d,title:c,text:l},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=a.h(Ud,f),g=a.createApp({render:()=>p}).mount(document.createElement("div"));h.appendChild(g.$el);const y=document.querySelector(`#${u}`);y&&(Fi.getOrCreateInstance(y,t).show(),s(y))}function s(c){function l(f,h){f.forEach(p=>{if(p.attributeName!="class")return;const m=p.target;if(m.classList.contains("hide")){m.remove(),h.disconnect();return}})}const d=new MutationObserver(l),u={attributes:!0};d.observe(c,u)}return{showSuccessToast:e,showInformationToast:r,showWarningToast:n,showDangerToast:o}}const{showDangerToast:lR}=ca();function hh(t){const e=a.ref(null),n=(l,d="serverErrors")=>{var f;let u=[];if(Array.isArray((f=l==null?void 0:l.response)==null?void 0:f.data)?u=l.response.data.filter(h=>Fa(h.ErrorMessage)&&h.ErrorMessage!==Be):l.response.data.ErrorMessage?u=[l.response.data.ErrorMessage]:u=null,Fa(d))e.value=u;else if(Array.isArray(d)){let h=e.value;for(let p=0;p<d.length;p++)p===d.length-1?h[d[p]]=u:h=h[d[p]]}r(l),s(e)},r=l=>{if(t==null)return;const u=new URL(l.request.responseURL).pathname;if(u in t.error){const f=t.error[u];f&&lR(f)}},o=a.ref(null),i=a.ref(""),s=l=>{lk(l.value)?o.value=l.value.map(d=>Fa(d)?d:d.ErrorMessage):Fa(l.value)&&(i.value=l.value)};function c(){e.value=null,o.value=null,i.value=Be}return{serverErrors:e,errorMessages:o,errorMessageText:i,MapErrors:s,MapServerErrors:n,ResetServerErrors:c}}const cR={key:0},dR={key:1},uR={class:"bd-form-field"},fR={class:"bd-form-field"},Tv=a.defineComponent({__name:"BDPhoneNumberEditModal",props:["modalTitle","submitButtonTitle","phoneNumberLabel","phoneNumberUnchangedText","confirmationCodeLabel","confirmationCodeRequiredText","confirmationCodeSentText","editSuccessText","editCanceledText","sendConfirmationCodeText","startPhoneNumberUpdate","confirmPhoneNumberUpdate"],emits:["startPhoneNumberUpdate","confirmPhoneNumberUpdate","setPhoneNumber"],setup(t,{expose:e,emit:n}){const r=t,{showSuccessToast:o,showWarningToast:i}=ca(),{serverErrors:s,errorMessages:c,errorMessageText:l,MapServerErrors:d,ResetServerErrors:u}=hh(null),{closeModal:f}=zo("phone-number-edit-modal");let h=Be;const p=a.ref(),m=a.ref(null),g=a.ref(),y=a.ref(),C=a.ref(null),E=a.computed(()=>y.value==null||y.value==""),b=()=>{if(m.value=null,u(),!p.value||p.value==h){m.value=!1;return}const N={newPhonenumber:p.value};r.startPhoneNumberUpdate(N).then(k).catch(d)},v=()=>{if(!y.value){C.value=!1;return}const N={requestIdentifier:g.value,token:y.value};r.confirmPhoneNumberUpdate(N).then(_).catch(d)},k=N=>{m.value=null,o(r.confirmationCodeSentText),g.value=N.data.RequestIdentifier},_=()=>{n("setPhoneNumber",p.value),o(r.editSuccessText),f(),m.value=null,C.value=null},O=N=>{h=N,p.value=h,m.value=null,g.value=void 0,y.value=void 0,C.value=null},L=()=>{O(h),u(),i(r.editCanceledText)};return e({Reset:O}),(N,z)=>(a.openBlock(),a.createBlock(Rn,{id:"phone-number-edit-modal",class:a.normalizeClass(a.unref(Be)),title:r.modalTitle,submitButtonTitle:r.submitButtonTitle,hideFooterCancelButton:!1,"disable-submit-button":E.value,serverErrors:a.unref(s),errorMessages:a.unref(c),errorMessageText:a.unref(l),onSubmit:v,onCancel:L},{default:a.withCtx(()=>[a.unref(l)||a.unref(c)?(a.openBlock(),a.createBlock(lo,{key:0,variant:"danger"},{default:a.withCtx(()=>[a.unref(c)?(a.openBlock(),a.createElementBlock("div",cR,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(c),(V,P)=>(a.openBlock(),a.createElementBlock("li",{key:P},[a.createVNode(wr),a.createElementVNode("span",null,a.toDisplayString(V),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",dR,a.toDisplayString(a.unref(l)),1))]),_:1})):a.createCommentVNode("",!0),a.createElementVNode("div",uR,[a.createVNode(Lr,{id:"form-input-phone-number",label:r.phoneNumberLabel,modelValue:p.value,"onUpdate:modelValue":z[0]||(z[0]=V=>p.value=V),state:m.value,type:"text","form-field-class":"form-input-with-button","invalid-feedback-text":r.phoneNumberUnchangedText},{default:a.withCtx(()=>[a.createVNode(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"tablet-device-up",type:"button",onClick:b},null,8,["textContent"])]),_:1},8,["label","modelValue","state","invalid-feedback-text"]),a.createVNode(ze,{textContent:a.toDisplayString(r.sendConfirmationCodeText),class:"mobile-device",type:"button",onClick:b},null,8,["textContent"])]),a.createElementVNode("div",fR,[g.value?(a.openBlock(),a.createBlock(Lr,{key:0,label:r.confirmationCodeLabel,modelValue:y.value,"onUpdate:modelValue":z[1]||(z[1]=V=>y.value=V),state:C.value,"invalid-feedback-text":r.confirmationCodeRequiredText},null,8,["label","modelValue","state","invalid-feedback-text"])):a.createCommentVNode("",!0)])]),_:1},8,["class","title","submitButtonTitle","disable-submit-button","serverErrors","errorMessages","errorMessageText"]))}}),Iv=(t,e,n,r,o,i)=>{const s=a.ref(null),c=a.ref(null),l=a.ref(!1),d=a.ref(null),{showModal:u,closeModal:f}=zo("session-time-out-modal"),h=a.computed(()=>s.value&&t?t-(s.value+1):0),p=a.computed(()=>c.value?60-c.value:0),m=a.computed(()=>l.value),g=()=>{d.value=setInterval(C,1e3),r(d.value)},y=()=>{d.value&&clearInterval(d.value)},C=()=>{s.value=Zt().diff(n(),"m"),c.value=Zt().subtract(s.value,"m").diff(n(),"s");const L=t??Number.MAX_SAFE_INTEGER,N=e??0;s.value>=L?(l.value=!0,u(),localStorage.setItem("session-timeout","true"),window.onbeforeunload=E):s.value>=L-N?u():f()},E=L=>{L.stopPropagation(),v()},b=()=>{o(),y(),s.value=null,c.value=null,g()},v=()=>{y(),s.value=null,c.value=null,localStorage.removeItem("session-timeout"),i()},k=()=>{l.value?v():b()},_=()=>{v()},O=()=>{l.value?v():f()};return a.onMounted(()=>{const L=document.getElementById("session-time-out-modal");L&&L.addEventListener("hidden.bs.modal",k),y(),g()}),{IsExpired:m,Minutes:h,Seconds:p,OnLogOut:_,OnSubmit:O}},xv=a.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}=Iv(e.threshold,e.warningThreshold,e.getTime,e.setTaskId,e.setNewTime,e.logout),c=a.computed(()=>n.value?e.expiredTitle:e.almostExpiredTitle),l=a.computed(()=>n.value?e.expiredMessage:`${e.almostExpiredMessage} ${r.value}:${o.value<10?"0"+o.value:o.value}`),d=a.computed(()=>e.hideCancelButton||n.value),u=a.computed(()=>n.value?e.expiredButtonText:e.almostExpiredButtonText);return(f,h)=>(a.openBlock(),a.createBlock(Rn,{id:"session-time-out-modal",title:c.value,"hide-close-button":!0,"hide-footer-cancel-button":d.value,"close-button-title":e.almostExpiredCancelButtonText,"submit-button-title":u.value,size:"md",onSubmit:a.unref(s),onCancel:a.unref(i)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(l.value),1)]),_:1},8,["title","hide-footer-cancel-button","close-button-title","submit-button-title","onSubmit","onCancel"]))}}),Ov={__name:"BDConfirmationModal",props:["modalId","modalTitle","description","submitButtonText","cancelButtonText"],setup(t,{expose:e}){const n=t,{closeModal:r,showModal:o}=zo(n.modalId);let i=a.ref(null);e({Confirm:()=>ak(this,void 0,void 0,function*(){return o(),new Promise(d=>i.value=d)})});const c=()=>{r(),i.value(!0)},l=()=>i.value(!1);return(d,u)=>(a.openBlock(),a.createBlock(Rn,{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:l},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(n.description),1)]),_:1},8,["id","title","submit-button-title","close-button-title"]))}},Nv={__name:"BDAssignConversationModal",emits:["update:isConcluded","update:isUnread"],setup(t,{emit:e}){const{t:n}=Pt(),r=a.ref(!1),o=a.ref(!1),i=()=>e("update:isConcluded",r.value),s=()=>e("update:isUnread",o.value);return(c,l)=>(a.openBlock(),a.createBlock(Rn,{id:"assign-conversation-modal",title:a.unref(n)("assignConversationModal.title"),submitButtonTitle:a.unref(n)("assignConversationModal.submitButton")},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"body"),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:r.value,"onUpdate:modelValue":l[0]||(l[0]=d=>r.value=d),onChange:i},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(a.unref(n)("assignConversationModal.conclude")),1),a.withDirectives((a.openBlock(),a.createBlock(ze,{variant:"placeholder",class:"btn-tooltip",title:a.unref(n)("assignConversationModal.concludeTooltip")},{default:a.withCtx(()=>[a.createVNode(wr)]),_:1},8,["title"])),[[a.unref(jo)]])]),_:1},8,["modelValue"])]),_:1}),a.createVNode(Ss,null,{default:a.withCtx(()=>[a.createVNode(Dr,{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=d=>o.value=d),onChange:s},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("assignConversationModal.makeUnread")),1)]),_:1},8,["modelValue"])]),_:1}),a.renderSlot(c.$slots,"footer")]),_:3},8,["title","submitButtonTitle"]))}},Mv=a.defineComponent({__name:"BDAttachmentUploadModal",props:{dropzoneUrl:{},token:{}},emits:["cancel","on-submit"],setup(t,{emit:e}){const n=t,{closeModal:r}=zo("attachment-upload-modal"),{t:o}=Pt(),i=()=>{e("on-submit",c.value),c.value=[],r()},s=()=>{e("cancel"),c.value=[]},c=a.ref([]),l=a.computed(()=>o("attachmentUploadModal.title")),d=a.computed(()=>o("attachmentUploadModal.submitButton")),u=a.computed(()=>o("attachmentUploadModal.infoMessage")),f=a.computed(()=>o("attachmentUploadModal.addAttachmentButton")),h=a.computed(()=>o("attachmentUploadModal.errorMessage")),p=a.computed(()=>o("attachmentUploadModal.fileTooBigErrorMessage")),m=a.computed(()=>o("attachmentUploadModal.fileSizeExceededMessage"));return(g,y)=>(a.openBlock(),a.createBlock(Rn,{id:"attachment-upload-modal",title:l.value,"submit-button-title":d.value,onSubmit:i,onCancel:s},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createVNode(Qd,{modelValue:c.value,"onUpdate:modelValue":y[0]||(y[0]=C=>c.value=C),"button-text":f.value,"error-message":h.value,multiple:!0,"file-size-exceeded-message":p.value,"accepted-files":".png,.jpg,.jpeg,.gif,.docx,.doc,.xls,.xlsx,.txt,.csv,.pdf,.wav,.mp3,.m4a,.aiff,.flac,.mp4,.avi,.mov",url:n.dropzoneUrl,tag:"div",token:n.token},null,8,["modelValue","button-text","error-message","file-size-exceeded-message","url","token"]),a.createElementVNode("p",null,a.toDisplayString(m.value),1),a.renderSlot(g.$slots,"default")]),_:3},8,["title","submit-button-title"]))}});var hR=Object.defineProperty,pR=Object.defineProperties,mR=Object.getOwnPropertyDescriptors,Lv=Object.getOwnPropertySymbols,gR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,Dv=(t,e,n)=>e in t?hR(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ji=(t,e)=>{for(var n in e||(e={}))gR.call(e,n)&&Dv(t,n,e[n]);if(Lv)for(var n of Lv(e))yR.call(e,n)&&Dv(t,n,e[n]);return t},Pv=(t,e)=>pR(t,mR(e));const vR={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const e=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(e){const n=this.getDropdownViewport(),{top:r,bottom:o,height:i}=e.getBoundingClientRect();if(r<n.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},bR={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},CR={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}}},ph=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ER={},SR={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},_R=a.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),wR=[_R];function kR(t,e){return a.openBlock(),a.createElementBlock("svg",SR,wR)}const AR=ph(ER,[["render",kR]]),TR={},IR={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},xR=a.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),OR=[xR];function NR(t,e){return a.openBlock(),a.createElementBlock("svg",IR,OR)}const MR=ph(TR,[["render",NR]]),Bv={Deselect:AR,OpenIndicator:MR},LR={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 DR(t){const e={};return Object.keys(t).sort().forEach(n=>{e[n]=t[n]}),JSON.stringify(e)}let PR=0;function BR(){return++PR}const $R={components:ji({},Bv),directives:{appendToBody:LR},mixins:[vR,bR,CR],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
|
|
1360
1360
|
https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:DR(t)}catch(e){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
|
|
1361
|
-
https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>BR()}},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:ji({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:Pv(ji({},t),{deselect:this.deselect}),footer:Pv(ji({},t),{deselect:this.deselect})}},childComponents(){return ji(ji({},Bv),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)}}},RR=["dir"],VR=["id","aria-expanded","aria-owns"],FR={ref:"selectedOptions",class:"vs__selected-options"},jR=["disabled","title","aria-label","onClick"],zR={ref:"actions",class:"vs__actions"},UR=["disabled"],HR={class:"vs__spinner"},WR=["id"],KR=["id","aria-selected","onMouseover","onClick"],YR={key:0,class:"vs__no-options"},GR=a.createTextVNode(" Sorry, no matching options. "),QR=["id"];function ZR(t,e,n,r,o,i){const s=a.resolveDirective("append-to-body");return a.openBlock(),a.createElementBlock("div",{dir:n.dir,class:a.normalizeClass(["v-select",i.stateClasses])},[a.renderSlot(t.$slots,"header",a.normalizeProps(a.guardReactiveProps(i.scope.header))),a.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))},[a.createElementVNode("div",FR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.selectedValue,(c,l)=>a.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[a.renderSlot(t.$slots,"selected-option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(a.openBlock(),a.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[l]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,jR)):a.createCommentVNode("",!0)]))])),256)),a.renderSlot(t.$slots,"search",a.normalizeProps(a.guardReactiveProps(i.scope.search)),()=>[a.createElementVNode("input",a.mergeProps({class:"vs__search"},i.scope.search.attributes,a.toHandlers(i.scope.search.events)),null,16)])],512),a.createElementVNode("div",zR,[a.withDirectives(a.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))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,UR),[[a.vShow,i.showClearButton]]),a.renderSlot(t.$slots,"open-indicator",a.normalizeProps(a.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.OpenIndicator),a.normalizeProps(a.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),a.renderSlot(t.$slots,"spinner",a.normalizeProps(a.guardReactiveProps(i.scope.spinner)),()=>[a.withDirectives(a.createElementVNode("div",HR,"Loading...",512),[[a.vShow,t.mutableLoading]])])],512)],40,VR),a.createVNode(a.Transition,{name:n.transition},{default:a.withCtx(()=>[i.dropdownOpen?a.withDirectives((a.openBlock(),a.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]=a.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[a.renderSlot(t.$slots,"list-header",a.normalizeProps(a.guardReactiveProps(i.scope.listHeader))),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.filteredOptions,(c,l)=>(a.openBlock(),a.createElementBlock("li",{id:`vs${n.uid}__option-${l}`,key:n.getOptionKey(c),role:"option",class:a.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&l===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":l===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":l===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=l:null,onClick:a.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[a.renderSlot(t.$slots,"option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)])],42,KR))),128)),i.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",YR,[a.renderSlot(t.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(i.scope.noOptions)),()=>[GR])])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(i.scope.listFooter)))],40,WR)),[[s]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,QR))]),_:3},8,["name"]),a.renderSlot(t.$slots,"footer",a.normalizeProps(a.guardReactiveProps(i.scope.footer)))],10,RR)}const JR=ph($R,[["render",ZR]]),Lz="",XR=t=>typeof t=="number",qR=12,eV=["textContent"],tV=["textContent"],nV={key:0,class:"content-library-card__body"},rV=["textContent"],oV={key:1},xc=a.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>`Open ${n.provider} in nieuw venster`),i=()=>{e("on-insert",n.itemId)},s=()=>{window.open(n.uri,"_blank","noopener,noreferrer")};return(c,l)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass(["content-library-card",n.cardClass])},[a.createElementVNode("header",null,[a.renderSlot(c.$slots,"header",{},()=>[a.createElementVNode("h6",{textContent:a.toDisplayString(n.title)},null,8,eV),n.subtitle?(a.openBlock(),a.createElementBlock("small",{key:0,textContent:a.toDisplayString(n.subtitle)},null,8,tV)):a.createCommentVNode("",!0)])]),n.showBody?(a.openBlock(),a.createElementBlock("div",nV,[a.renderSlot(c.$slots,"default",{},()=>[a.createElementVNode("p",{textContent:a.toDisplayString(n.description),class:"content-library-card__description"},null,8,rV)])])):a.createCommentVNode("",!0),n.showFooter?(a.openBlock(),a.createElementBlock("footer",oV,[a.renderSlot(c.$slots,"footer",{},()=>[a.createVNode(ze,{variant:"secondary",onClick:i},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCard.insert")),1)]),_:1}),a.createVNode(ze,{title:o.value,variant:"icon",onClick:s},{default:a.withCtx(()=>[a.createVNode(Uc)]),_:1},8,["title"])])])):a.createCommentVNode("",!0)],2))}}),iV=a.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(xc,a.normalizeProps(a.guardReactiveProps(t.item)),null,16))}}),sV={class:"content-library-card-image__titles"},aV=["textContent"],lV=["textContent"],cV=["src"],dV=a.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:a.withCtx(()=>[a.createElementVNode("div",sV,[a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,aV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.subtitle)},null,8,lV)]),a.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,cV)]),_:1},16))}}),uV=a.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.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)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),$v=t=>t.replace(/<\/?[^>]+(>|$)/g,Be),Rv=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),fV=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),hV={class:"content-library-card-message-template__tag"},pV=["textContent"],mV=["textContent"],gV=["textContent"],yV=["id"],vV=["innerHTML"],bV={class:"collapsed-hide"},CV={class:"collapsed-show"},EV={key:2,class:"edit-btn-group"},SV={key:3,class:"attachment-occurence"},_V={class:"number-icon"},wV=a.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 n=t,{t:r}=Pt(),o=a.ref(null),i=a.ref(!1),s=a.ref(!1),c=a.computed(()=>`collapse-preview-${n.item.itemId}`),l=a.computed(()=>a0(n.item.files)?null:n.item.files.length),d=a.computed(()=>n.variant==="insert"),u=a.computed(()=>n.variant==="edit"),f=a.computed(()=>n.variant==="shared"),h=a.computed(()=>s.value?Be:"content-library-card-not-collapsable"),p=a.computed(()=>n.item.text?fV(n.item.text):Be),m=a.computed(()=>Po(n.apiUrl,n.item.files,!1)),g=a.computed(()=>Po(n.apiUrl,n.item.files,!0)),y=()=>{o.value&&(s.value=i.value||o.value.scrollHeight>o.value.clientHeight||n.item.files&&n.item.files.length>0)},C=()=>{e("on-insert",n.item.itemId)},E=k=>{e("show-attachment",k)},b=()=>{e("on-change",n.item.itemId)},v=()=>{e("delete",n.item.itemId)};return a.watch(()=>n.item,()=>{o.value&&a.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),a.onMounted(()=>{a.nextTick(()=>{y()})}),(k,_)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(t.item,{cardClass:`content-library-card-message-template ${h.value}`,onOnInsert:C}),{header:a.withCtx(()=>[a.createElementVNode("div",hV,[a.createElementVNode("span",{textContent:a.toDisplayString(t.item.category)},null,8,pV)]),a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,mV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.practitionerName)},null,8,gV)]),footer:a.withCtx(()=>[d.value?(a.openBlock(),a.createBlock(ze,{key:0,variant:"secondary",onClick:C},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):a.createCommentVNode("",!0),f.value?a.withDirectives((a.openBlock(),a.createBlock(ze,{key:1,variant:"icon",title:a.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:a.withCtx(()=>[a.createVNode(Wc)]),_:1},8,["title"])),[[a.unref(jo)]]):a.createCommentVNode("",!0),u.value?(a.openBlock(),a.createElementBlock("div",EV,[a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:b},{default:a.withCtx(()=>[a.createVNode(zc)]),_:1},8,["title"]),a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:v},{default:a.withCtx(()=>[a.createVNode(Fc)]),_:1},8,["title"])])):a.createCommentVNode("",!0),l.value?(a.openBlock(),a.createElementBlock("div",SV,[a.createVNode(_r),a.createElementVNode("div",_V,a.toDisplayString(l.value),1)])):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.createElementVNode("div",{id:c.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:o},[a.createElementVNode("p",{class:"message-text",innerHTML:p.value},null,8,vV),t.item.files?(a.openBlock(),a.createBlock(ea,{key:0,"no-download":!0,files:m.value},null,8,["files"])):a.createCommentVNode("",!0),t.item.files?(a.openBlock(),a.createBlock(ta,{key:1,"no-download":!0,files:g.value,onShow:E},null,8,["files"])):a.createCommentVNode("",!0)],8,yV),s.value?(a.openBlock(),a.createBlock(ze,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${c.value}`},{default:a.withCtx(()=>[a.createElementVNode("span",bV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),a.createElementVNode("span",CV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):a.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),Dz="",kV={class:"content-library-overview"},AV=Ce({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o={BDContentLibraryCardBasic:iV,BDContentLibraryCardImage:dV,BDContentLibraryCardTitle:uV,BDContentLibraryCardMessageTemplate:wV},i=a.computed(()=>a0(n.items)),s=a.computed(()=>Math.floor(qR/n.cols)),c=f=>{e("on-insert",f)},l=f=>{e("on-change",f)},d=f=>{e("delete",f)},u=f=>{e("show-attachment",f)};return(f,h)=>(a.openBlock(),a.createElementBlock("div",kV,[a.createVNode(wn,null,{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(Tt,{key:0,sm:12},{default:a.withCtx(()=>[a.createVNode(lo,{show:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,p=>(a.openBlock(),a.createBlock(Tt,{class:"card-container",key:p.itemId,sm:12,md:6,lg:s.value},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o[p.componentToRender]),a.mergeProps(p,{item:p,onOnInsert:c,onOnChange:l,onDelete:d,onShowAttachment:u}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-de8a1bfb"]]),TV={class:"content-library-template"},IV={class:"number-of-messages"},xV=["src"],OV=["src"],NV=["id"],MV={class:"collapse-button-container"},LV={class:"collapsed-show"},DV={class:"collapsed-hide"},mh=a.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.ref(n.modelValue);a.watch(()=>n.modelValue,j=>{o.value=j},{immediate:!0,deep:!0});const i=a.computed(()=>{var j,K;return(K=(j=n.modelValue)==null?void 0:j.provider)!=null&&K.SupportsSearch?r("contentLibraryTemplate.searchPlaceholderSearch"):r("contentLibraryTemplate.searchPlaceholder")}),s=a.computed(()=>Hd(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=a.computed(()=>n.provider&&Hd(n.provider.items)?n.provider.items:[]),l=a.computed(()=>n.provider&&Hd(n.provider.filters)),d=a.computed(()=>{let j=0;return n.provider&&XR(n.provider.totalNumber)&&(j=n.provider.totalNumber),j===1?`${j} ${r("contentLibraryTemplate.message")}`:`${j} ${r("contentLibraryTemplate.messages")}`}),u=a.computed(()=>n.provider&&n.provider.pageSize&&n.provider.totalNumber&&n.provider.pageSize<=n.provider.totalNumber),f=a.computed(()=>n.provider&&n.provider.totalNumber?n.provider.totalNumber:0),h=a.computed(()=>l.value?9:12),p=a.computed(()=>n.provider&&!l.value?3:2),m=a.computed(()=>n.showAddButton||s.value),g=a.computed(()=>({md:3,lg:3})),y=a.computed(()=>({md:9,lg:9})),C=a.computed(()=>({sm:12,md:12,lg:s.value?7:8,"offset-lg":m.value?0:3,"offset-md":m.value?0:3})),E=a.computed(()=>({sm:12,md:m.value?6:3,lg:s.value?5:4})),b=j=>j.replace(/\s/g,"-"),v=()=>{e("create")},k=j=>{e("on-insert",j)},_=j=>{e("on-change",j)},O=j=>{e("delete",j)},L=()=>{e("update","category")},N=()=>{o.value.currentPage=1,e("on-input",o.value)},z=()=>{e("on-input",o.value)},V=j=>{e("show-attachment",j)},P=j=>{e("provider-changed",j.value)};return(j,K)=>(a.openBlock(),a.createElementBlock("div",TV,[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(Tt,a.mergeProps(g.value,{class:"content-library-header content-library-header__messages"}),{default:a.withCtx(()=>[a.createElementVNode("span",IV,a.toDisplayString(d.value),1),j.showAddButton?(a.openBlock(),a.createBlock(ze,{key:0,class:"d-md-none",onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16),a.createVNode(Tt,a.mergeProps(y.value,{class:"content-library-header"}),{default:a.withCtx(()=>[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(Tt,a.mergeProps(C.value,{class:"search-block"}),{default:a.withCtx(()=>[a.createVNode(Lr,{type:"text",modelValue:o.value.searchTerm,"onUpdate:modelValue":K[0]||(K[0]=F=>o.value.searchTerm=F),placeholder:i.value,delayTimeMs:500,class:"search-input",onInput:N,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),j.showAddButton?(a.openBlock(),a.createBlock(Tt,a.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:a.withCtx(()=>[j.showAddButton?(a.openBlock(),a.createBlock(ze,{key:0,onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16)):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(Tt,a.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:a.withCtx(()=>[a.createVNode(a.unref(JR),{modelValue:o.value.provider,"onUpdate:modelValue":K[1]||(K[1]=F=>o.value.provider=F),options:j.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":P},{"open-indicator":a.withCtx(({attributes:F})=>[a.createElementVNode("span",a.normalizeProps(a.guardReactiveProps(F)),[a.createVNode(fa)],16)]),option:a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,xV)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),"selected-option":a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,OV)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),_:1},8,["modelValue","options"])]),_:1},16)):a.createCommentVNode("",!0)]),_:1})]),_:1},16),l.value?(a.openBlock(),a.createBlock(Tt,{key:0,md:12,lg:3,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(nd,{title:"Filter",showOn:"md"},{body:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.provider.filters,(F,W)=>(a.openBlock(),a.createBlock(Ss,{key:F.label,label:F.label},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.options,(Q,U)=>(a.openBlock(),a.createBlock(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=ee=>o.value.selectedFilters=ee),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128)),F.moreOptions?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",{id:`collapse-${b(F.label)}`,class:"collapse"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.moreOptions,(Q,U)=>(a.openBlock(),a.createBlock(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=ee=>o.value.selectedFilters=ee),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,NV),a.createElementVNode("div",MV,[a.createVNode(ze,{class:a.normalizeClass(["collapse-button collapsed",{"collapse-button-last":j.provider.filters.length-1===W}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${b(F.label)}`},{default:a.withCtx(()=>[a.createVNode(Mc,{class:"collapsed-show"}),a.createElementVNode("span",LV,a.toDisplayString(a.unref(r)("contentLibraryTemplate.more")),1),a.createVNode(Lc,{class:"collapsed-hide"}),a.createElementVNode("span",DV,a.toDisplayString(a.unref(r)("contentLibraryTemplate.less")),1)]),_:2},1032,["class","data-bs-target"])])],64)):a.createCommentVNode("",!0),F.label==="Categorieën"&&j.editCategory?(a.openBlock(),a.createBlock(ze,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:L},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):a.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0),a.createVNode(Tt,{md:12,lg:h.value,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(AV,{items:c.value,cols:p.value,onOnInsert:k,onOnChange:_,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),a.createVNode(wn,{class:"content-library-pagination"},{default:a.withCtx(()=>[u.value?(a.openBlock(),a.createBlock(zd,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":K[4]||(K[4]=F=>o.value.currentPage=F),totalRows:f.value,rowsPerPage:j.provider.pageSize,onClick:z,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),Vv={__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 n=t,{closeModal:r}=zo("content-library-modal"),o=a.ref(n.modelValue),i=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.img)!==null&&m!==void 0?m:null}),s=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.label)!==null&&m!==void 0?m:Be});a.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},l=()=>{e("cancel")},d=h=>{e("show-attachment",h)},u=()=>{e("shown")},f=h=>{e("provider-changed",h)};return(h,p)=>(a.openBlock(),a.createBlock(Rn,{id:"content-library-modal","title-image":i.value,title:s.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:l,onShown:u},{default:a.withCtx(()=>[a.createVNode(mh,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var PV=Object.defineProperty,BV=(t,e,n)=>e in t?PV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fv=(t,e,n)=>(BV(t,typeof e!="symbol"?e+"":e,n),n);class $V{constructor(){Fv(this,"seed",0),Fv(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 RV="Failed to copy value to clipboard. Unknown type.",VV={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(RV,e),""}return t}},FV="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",jV={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=FV,e}},zi={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await zi.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=jV.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=VV.asString(e);if(zi.writeClipboardExecCommand(n))return!0;await zi.writeClipboard(n)}};new $V;const{showSuccessToast:gh}=ca(),zV=(t,e,n)=>{const r=`${e}
|
|
1361
|
+
https://vue-select.org/api/props.html#getoptionkey`,t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,e,n){return(e||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,e){return t.filter(n=>{let r=this.getOptionLabel(n);return typeof r=="number"&&(r=r.toString()),this.filterBy(n,r,e)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:e}){return t&&!e}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,e)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,e,{width:n,top:r,left:o}){t.style.top=r,t.style.left=o,t.style.width=n}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:e,mutableLoading:n}){return t?!1:e&&!n}},uid:{type:[String,Number],default:()=>BR()}},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:ji({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:Pv(ji({},t),{deselect:this.deselect}),footer:Pv(ji({},t),{deselect:this.deselect})}},childComponents(){return ji(ji({},Bv),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)}}},RR=["dir"],VR=["id","aria-expanded","aria-owns"],FR={ref:"selectedOptions",class:"vs__selected-options"},jR=["disabled","title","aria-label","onClick"],zR={ref:"actions",class:"vs__actions"},UR=["disabled"],HR={class:"vs__spinner"},WR=["id"],KR=["id","aria-selected","onMouseover","onClick"],YR={key:0,class:"vs__no-options"},GR=a.createTextVNode(" Sorry, no matching options. "),QR=["id"];function ZR(t,e,n,r,o,i){const s=a.resolveDirective("append-to-body");return a.openBlock(),a.createElementBlock("div",{dir:n.dir,class:a.normalizeClass(["v-select",i.stateClasses])},[a.renderSlot(t.$slots,"header",a.normalizeProps(a.guardReactiveProps(i.scope.header))),a.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))},[a.createElementVNode("div",FR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.selectedValue,(c,l)=>a.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(c),deselect:i.deselect,multiple:n.multiple,disabled:n.disabled},()=>[(a.openBlock(),a.createElementBlock("span",{key:n.getOptionKey(c),class:"vs__selected"},[a.renderSlot(t.$slots,"selected-option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)]),n.multiple?(a.openBlock(),a.createElementBlock("button",{key:0,ref_for:!0,ref:d=>o.deselectButtons[l]=d,disabled:n.disabled,type:"button",class:"vs__deselect",title:`Deselect ${n.getOptionLabel(c)}`,"aria-label":`Deselect ${n.getOptionLabel(c)}`,onClick:d=>i.deselect(c)},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,jR)):a.createCommentVNode("",!0)]))])),256)),a.renderSlot(t.$slots,"search",a.normalizeProps(a.guardReactiveProps(i.scope.search)),()=>[a.createElementVNode("input",a.mergeProps({class:"vs__search"},i.scope.search.attributes,a.toHandlers(i.scope.search.events)),null,16)])],512),a.createElementVNode("div",zR,[a.withDirectives(a.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))},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.Deselect)))],8,UR),[[a.vShow,i.showClearButton]]),a.renderSlot(t.$slots,"open-indicator",a.normalizeProps(a.guardReactiveProps(i.scope.openIndicator)),()=>[n.noDrop?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.childComponents.OpenIndicator),a.normalizeProps(a.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),a.renderSlot(t.$slots,"spinner",a.normalizeProps(a.guardReactiveProps(i.scope.spinner)),()=>[a.withDirectives(a.createElementVNode("div",HR,"Loading...",512),[[a.vShow,t.mutableLoading]])])],512)],40,VR),a.createVNode(a.Transition,{name:n.transition},{default:a.withCtx(()=>[i.dropdownOpen?a.withDirectives((a.openBlock(),a.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]=a.withModifiers((...c)=>i.onMousedown&&i.onMousedown(...c),["prevent"])),onMouseup:e[3]||(e[3]=(...c)=>i.onMouseUp&&i.onMouseUp(...c))},[a.renderSlot(t.$slots,"list-header",a.normalizeProps(a.guardReactiveProps(i.scope.listHeader))),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.filteredOptions,(c,l)=>(a.openBlock(),a.createElementBlock("li",{id:`vs${n.uid}__option-${l}`,key:n.getOptionKey(c),role:"option",class:a.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(c)&&l===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(c),"vs__dropdown-option--highlight":l===t.typeAheadPointer,"vs__dropdown-option--disabled":!n.selectable(c)}]),"aria-selected":l===t.typeAheadPointer?!0:null,onMouseover:d=>n.selectable(c)?t.typeAheadPointer=l:null,onClick:a.withModifiers(d=>n.selectable(c)?i.select(c):null,["prevent","stop"])},[a.renderSlot(t.$slots,"option",a.normalizeProps(a.guardReactiveProps(i.normalizeOptionForSlot(c))),()=>[a.createTextVNode(a.toDisplayString(n.getOptionLabel(c)),1)])],42,KR))),128)),i.filteredOptions.length===0?(a.openBlock(),a.createElementBlock("li",YR,[a.renderSlot(t.$slots,"no-options",a.normalizeProps(a.guardReactiveProps(i.scope.noOptions)),()=>[GR])])):a.createCommentVNode("",!0),a.renderSlot(t.$slots,"list-footer",a.normalizeProps(a.guardReactiveProps(i.scope.listFooter)))],40,WR)),[[s]]):(a.openBlock(),a.createElementBlock("ul",{key:1,id:`vs${n.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,QR))]),_:3},8,["name"]),a.renderSlot(t.$slots,"footer",a.normalizeProps(a.guardReactiveProps(i.scope.footer)))],10,RR)}const JR=ph($R,[["render",ZR]]),Nz="",XR=t=>typeof t=="number",qR=12,eV=["textContent"],tV=["textContent"],nV={key:0,class:"content-library-card__body"},rV=["textContent"],oV={key:1},xc=a.defineComponent({__name:"BDContentLibraryCard",props:{itemId:{type:[String,Number],required:!0},title:{type:String},subtitle:{type:String},description:{type:String},uri:{type:String},showFooter:{type:Boolean,default:!0},showBody:{type:Boolean,default:!0},cardClass:{type:String},provider:{type:String}},emits:["on-insert"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>`Open ${n.provider} in nieuw venster`),i=()=>{e("on-insert",n.itemId)},s=()=>{window.open(n.uri,"_blank","noopener,noreferrer")};return(c,l)=>(a.openBlock(),a.createElementBlock("article",{class:a.normalizeClass(["content-library-card",n.cardClass])},[a.createElementVNode("header",null,[a.renderSlot(c.$slots,"header",{},()=>[a.createElementVNode("h6",{textContent:a.toDisplayString(n.title)},null,8,eV),n.subtitle?(a.openBlock(),a.createElementBlock("small",{key:0,textContent:a.toDisplayString(n.subtitle)},null,8,tV)):a.createCommentVNode("",!0)])]),n.showBody?(a.openBlock(),a.createElementBlock("div",nV,[a.renderSlot(c.$slots,"default",{},()=>[a.createElementVNode("p",{textContent:a.toDisplayString(n.description),class:"content-library-card__description"},null,8,rV)])])):a.createCommentVNode("",!0),n.showFooter?(a.openBlock(),a.createElementBlock("footer",oV,[a.renderSlot(c.$slots,"footer",{},()=>[a.createVNode(ze,{variant:"secondary",onClick:i},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCard.insert")),1)]),_:1}),a.createVNode(ze,{title:o.value,variant:"icon",onClick:s},{default:a.withCtx(()=>[a.createVNode(Uc)]),_:1},8,["title"])])])):a.createCommentVNode("",!0)],2))}}),iV=a.defineComponent({__name:"BDContentLibraryCardBasic",props:{item:{type:Object,required:!0}},setup(t){return(e,n)=>(a.openBlock(),a.createBlock(xc,a.normalizeProps(a.guardReactiveProps(t.item)),null,16))}}),sV={class:"content-library-card-image__titles"},aV=["textContent"],lV=["textContent"],cV=["src"],dV=a.defineComponent({__name:"BDContentLibraryCardImage",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.computed(()=>{const{itemId:r,uri:o,title:i,provider:s}=e.item;return{itemId:r,uri:o,title:i,provider:s}});return(r,o)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"card-class":"content-library-card-image","show-body":!1}),{header:a.withCtx(()=>[a.createElementVNode("div",sV,[a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,aV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.subtitle)},null,8,lV)]),a.createElementVNode("img",{src:t.item.imageUri,class:"content-library-card-image__figure"},null,8,cV)]),_:1},16))}}),uV=a.defineComponent({__name:"BDContentLibraryCardTitle",props:{item:{type:Object,required:!0}},setup(t){const e=t,n=a.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)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(n.value,{"show-body":!1,"card-class":"content-library-card-title"}),null,16))}}),$v=t=>t.replace(/<\/?[^>]+(>|$)/g,Be),Rv=t=>t.replace(/<li>/g," ").replace(/<(br|\/p)>/g," \r"),fV=t=>t.replace(/(?:\r\n|\r|\n)/g,"<br>"),hV={class:"content-library-card-message-template__tag"},pV=["textContent"],mV=["textContent"],gV=["textContent"],yV=["id"],vV=["innerHTML"],bV={class:"collapsed-hide"},CV={class:"collapsed-show"},EV={key:2,class:"edit-btn-group"},SV={key:3,class:"attachment-occurence"},_V={class:"number-icon"},wV=a.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 n=t,{t:r}=Pt(),o=a.ref(null),i=a.ref(!1),s=a.ref(!1),c=a.computed(()=>`collapse-preview-${n.item.itemId}`),l=a.computed(()=>a0(n.item.files)?null:n.item.files.length),d=a.computed(()=>n.variant==="insert"),u=a.computed(()=>n.variant==="edit"),f=a.computed(()=>n.variant==="shared"),h=a.computed(()=>s.value?Be:"content-library-card-not-collapsable"),p=a.computed(()=>n.item.text?fV(n.item.text):Be),m=a.computed(()=>Po(n.apiUrl,n.item.files,!1)),g=a.computed(()=>Po(n.apiUrl,n.item.files,!0)),y=()=>{o.value&&(s.value=i.value||o.value.scrollHeight>o.value.clientHeight||n.item.files&&n.item.files.length>0)},C=()=>{e("on-insert",n.item.itemId)},E=k=>{e("show-attachment",k)},b=()=>{e("on-change",n.item.itemId)},v=()=>{e("delete",n.item.itemId)};return a.watch(()=>n.item,()=>{o.value&&a.nextTick().then(()=>{y()})},{immediate:!0,deep:!0}),a.onMounted(()=>{a.nextTick(()=>{y()})}),(k,_)=>(a.openBlock(),a.createBlock(xc,a.mergeProps(t.item,{cardClass:`content-library-card-message-template ${h.value}`,onOnInsert:C}),{header:a.withCtx(()=>[a.createElementVNode("div",hV,[a.createElementVNode("span",{textContent:a.toDisplayString(t.item.category)},null,8,pV)]),a.createElementVNode("h6",{textContent:a.toDisplayString(t.item.title)},null,8,mV),a.createElementVNode("small",{textContent:a.toDisplayString(t.item.practitionerName)},null,8,gV)]),footer:a.withCtx(()=>[d.value?(a.openBlock(),a.createBlock(ze,{key:0,variant:"secondary",onClick:C},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.insert")),1)]),_:1})):a.createCommentVNode("",!0),f.value?a.withDirectives((a.openBlock(),a.createBlock(ze,{key:1,variant:"icon",title:a.unref(r)("contentLibraryCardMessageTemplate.popoverIsSharedByOtherUser")},{default:a.withCtx(()=>[a.createVNode(Wc)]),_:1},8,["title"])),[[a.unref(jo)]]):a.createCommentVNode("",!0),u.value?(a.openBlock(),a.createElementBlock("div",EV,[a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.edit"),variant:"icon",onClick:b},{default:a.withCtx(()=>[a.createVNode(zc)]),_:1},8,["title"]),a.createVNode(ze,{title:a.unref(r)("contentLibraryCardMessageTemplate.delete"),variant:"icon",onClick:v},{default:a.withCtx(()=>[a.createVNode(Fc)]),_:1},8,["title"])])):a.createCommentVNode("",!0),l.value?(a.openBlock(),a.createElementBlock("div",SV,[a.createVNode(_r),a.createElementVNode("div",_V,a.toDisplayString(l.value),1)])):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.createElementVNode("div",{id:c.value,class:"content-library-card-message-template__collapse collapse",ref_key:"content",ref:o},[a.createElementVNode("p",{class:"message-text",innerHTML:p.value},null,8,vV),t.item.files?(a.openBlock(),a.createBlock(ea,{key:0,"no-download":!0,files:m.value},null,8,["files"])):a.createCommentVNode("",!0),t.item.files?(a.openBlock(),a.createBlock(ta,{key:1,"no-download":!0,files:g.value,onShow:E},null,8,["files"])):a.createCommentVNode("",!0)],8,yV),s.value?(a.openBlock(),a.createBlock(ze,{key:0,class:"content-library-card-message-template__link-button collapse-button collapsed",variant:"link","data-bs-toggle":"collapse","data-bs-target":`#${c.value}`},{default:a.withCtx(()=>[a.createElementVNode("span",bV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseOpen")),1),a.createElementVNode("span",CV,a.toDisplayString(a.unref(r)("contentLibraryCardMessageTemplate.collapseClosed")),1)]),_:1},8,["data-bs-target"])):a.createCommentVNode("",!0)]),_:1},16,["cardClass"]))}}),Mz="",kV={class:"content-library-overview"},AV=Ce({__name:"BDContentLibraryOverview",props:{items:{type:Array,default:null},cols:{type:Number,default:2}},emits:["on-insert","on-change","delete","show-attachment"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o={BDContentLibraryCardBasic:iV,BDContentLibraryCardImage:dV,BDContentLibraryCardTitle:uV,BDContentLibraryCardMessageTemplate:wV},i=a.computed(()=>a0(n.items)),s=a.computed(()=>Math.floor(qR/n.cols)),c=f=>{e("on-insert",f)},l=f=>{e("on-change",f)},d=f=>{e("delete",f)},u=f=>{e("show-attachment",f)};return(f,h)=>(a.openBlock(),a.createElementBlock("div",kV,[a.createVNode(wn,null,{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createBlock(It,{key:0,sm:12},{default:a.withCtx(()=>[a.createVNode(lo,{show:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryOverview.noResults")),1)]),_:1})]),_:1})):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.items,p=>(a.openBlock(),a.createBlock(It,{class:"card-container",key:p.itemId,sm:12,md:6,lg:s.value},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(o[p.componentToRender]),a.mergeProps(p,{item:p,onOnInsert:c,onOnChange:l,onDelete:d,onShowAttachment:u}),null,16,["item"]))]),_:2},1032,["lg"]))),128))]),_:1})]))}},[["__scopeId","data-v-de8a1bfb"]]),TV={class:"content-library-template"},IV={class:"number-of-messages"},xV=["src"],OV=["src"],NV=["id"],MV={class:"collapse-button-container"},LV={class:"collapsed-show"},DV={class:"collapsed-hide"},mh=a.defineComponent({__name:"BDContentLibraryTemplate",props:{modelValue:{},showAddButton:{type:Boolean,default:!1},providerSelectOptions:{default:()=>[]},provider:{},editCategory:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["create","on-insert","on-change","delete","update","on-input","show-attachment","provider-changed"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.ref(n.modelValue);a.watch(()=>n.modelValue,j=>{o.value=j},{immediate:!0,deep:!0});const i=a.computed(()=>{var j,K;return(K=(j=n.modelValue)==null?void 0:j.provider)!=null&&K.SupportsSearch?r("contentLibraryTemplate.searchPlaceholderSearch"):r("contentLibraryTemplate.searchPlaceholder")}),s=a.computed(()=>Hd(n.providerSelectOptions)&&n.providerSelectOptions.length>1),c=a.computed(()=>n.provider&&Hd(n.provider.items)?n.provider.items:[]),l=a.computed(()=>n.provider&&Hd(n.provider.filters)),d=a.computed(()=>{let j=0;return n.provider&&XR(n.provider.totalNumber)&&(j=n.provider.totalNumber),j===1?`${j} ${r("contentLibraryTemplate.message")}`:`${j} ${r("contentLibraryTemplate.messages")}`}),u=a.computed(()=>n.provider&&n.provider.pageSize&&n.provider.totalNumber&&n.provider.pageSize<=n.provider.totalNumber),f=a.computed(()=>n.provider&&n.provider.totalNumber?n.provider.totalNumber:0),h=a.computed(()=>l.value?9:12),p=a.computed(()=>n.provider&&!l.value?3:2),m=a.computed(()=>n.showAddButton||s.value),g=a.computed(()=>({md:3,lg:3})),y=a.computed(()=>({md:9,lg:9})),C=a.computed(()=>({sm:12,md:12,lg:s.value?7:8,"offset-lg":m.value?0:3,"offset-md":m.value?0:3})),E=a.computed(()=>({sm:12,md:m.value?6:3,lg:s.value?5:4})),b=j=>j.replace(/\s/g,"-"),v=()=>{e("create")},k=j=>{e("on-insert",j)},_=j=>{e("on-change",j)},O=j=>{e("delete",j)},L=()=>{e("update","category")},N=()=>{o.value.currentPage=1,e("on-input",o.value)},z=()=>{e("on-input",o.value)},V=j=>{e("show-attachment",j)},P=j=>{e("provider-changed",j.value)};return(j,K)=>(a.openBlock(),a.createElementBlock("div",TV,[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(It,a.mergeProps(g.value,{class:"content-library-header content-library-header__messages"}),{default:a.withCtx(()=>[a.createElementVNode("span",IV,a.toDisplayString(d.value),1),j.showAddButton?(a.openBlock(),a.createBlock(ze,{key:0,class:"d-md-none",onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16),a.createVNode(It,a.mergeProps(y.value,{class:"content-library-header"}),{default:a.withCtx(()=>[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(It,a.mergeProps(C.value,{class:"search-block"}),{default:a.withCtx(()=>[a.createVNode(Lr,{type:"text",modelValue:o.value.searchTerm,"onUpdate:modelValue":K[0]||(K[0]=F=>o.value.searchTerm=F),placeholder:i.value,delayTimeMs:500,class:"search-input",onInput:N,autofocus:""},null,8,["modelValue","placeholder"])]),_:1},16),j.showAddButton?(a.openBlock(),a.createBlock(It,a.mergeProps({key:0},E.value,{class:"add-button-block d-none d-md-block"}),{default:a.withCtx(()=>[j.showAddButton?(a.openBlock(),a.createBlock(ze,{key:0,onClick:v},{default:a.withCtx(()=>[a.createVNode(ga),a.createTextVNode(" "+a.toDisplayString(a.unref(r)("contentLibraryTemplate.newMessageText")),1)]),_:1})):a.createCommentVNode("",!0)]),_:1},16)):a.createCommentVNode("",!0),s.value?(a.openBlock(),a.createBlock(It,a.mergeProps({key:1},E.value,{class:"select-button-block"}),{default:a.withCtx(()=>[a.createVNode(a.unref(JR),{modelValue:o.value.provider,"onUpdate:modelValue":K[1]||(K[1]=F=>o.value.provider=F),options:j.providerSelectOptions,clearable:!1,searchable:!1,"onOption:selected":P},{"open-indicator":a.withCtx(({attributes:F})=>[a.createElementVNode("span",a.normalizeProps(a.guardReactiveProps(F)),[a.createVNode(fa)],16)]),option:a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,xV)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),"selected-option":a.withCtx(({icon:F,label:W,img:Q})=>[F?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(F),{key:0})):a.createCommentVNode("",!0),Q?(a.openBlock(),a.createElementBlock("img",{key:1,src:Q},null,8,OV)):a.createCommentVNode("",!0),a.createElementVNode("span",null,a.toDisplayString(W),1)]),_:1},8,["modelValue","options"])]),_:1},16)):a.createCommentVNode("",!0)]),_:1})]),_:1},16),l.value?(a.openBlock(),a.createBlock(It,{key:0,md:12,lg:3,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(nd,{title:"Filter","show-on":"md","collapse-on":"md"},{body:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.provider.filters,(F,W)=>(a.openBlock(),a.createBlock(Ss,{key:F.label,label:F.label},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.options,(Q,U)=>(a.openBlock(),a.createBlock(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[2]||(K[2]=ee=>o.value.selectedFilters=ee),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128)),F.moreOptions?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",{id:`collapse-${b(F.label)}`,class:"collapse"},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(F.moreOptions,(Q,U)=>(a.openBlock(),a.createBlock(Dr,{modelValue:o.value.selectedFilters,"onUpdate:modelValue":K[3]||(K[3]=ee=>o.value.selectedFilters=ee),key:U,value:`${F.id}-${Q.item}`,onChange:N},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(Q.name),1)]),_:2},1032,["modelValue","value"]))),128))],8,NV),a.createElementVNode("div",MV,[a.createVNode(ze,{class:a.normalizeClass(["collapse-button collapsed",{"collapse-button-last":j.provider.filters.length-1===W}]),variant:"link","data-bs-toggle":"collapse","data-bs-target":`#collapse-${b(F.label)}`},{default:a.withCtx(()=>[a.createVNode(Mc,{class:"collapsed-show"}),a.createElementVNode("span",LV,a.toDisplayString(a.unref(r)("contentLibraryTemplate.more")),1),a.createVNode(Lc,{class:"collapsed-hide"}),a.createElementVNode("span",DV,a.toDisplayString(a.unref(r)("contentLibraryTemplate.less")),1)]),_:2},1032,["class","data-bs-target"])])],64)):a.createCommentVNode("",!0),F.label==="Categorieën"&&j.editCategory?(a.openBlock(),a.createBlock(ze,{key:1,variant:"outline-primary-dark",class:"edit-category-button",size:"sm",onClick:L},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(r)("contentLibraryTemplate.changeCategoryButtonLabel")),1)]),_:1})):a.createCommentVNode("",!0)]),_:2},1032,["label"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0),a.createVNode(It,{md:12,lg:h.value,class:"content-library-body"},{default:a.withCtx(()=>[a.createVNode(AV,{items:c.value,cols:p.value,onOnInsert:k,onOnChange:_,onDelete:O,onShowAttachment:V},null,8,["items","cols"]),a.createVNode(wn,{class:"content-library-pagination"},{default:a.withCtx(()=>[u.value?(a.openBlock(),a.createBlock(zd,{key:0,modelValue:o.value.currentPage,"onUpdate:modelValue":K[4]||(K[4]=F=>o.value.currentPage=F),totalRows:f.value,rowsPerPage:j.provider.pageSize,onClick:z,isPatient:!0},null,8,["modelValue","totalRows","rowsPerPage"])):a.createCommentVNode("",!0)]),_:1})]),_:1},8,["lg"])]),_:1})]))}}),Vv={__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 n=t,{closeModal:r}=zo("content-library-modal"),o=a.ref(n.modelValue),i=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.img)!==null&&m!==void 0?m:null}),s=a.computed(()=>{var h,p,m;return(m=(p=(h=n.modelValue)===null||h===void 0?void 0:h.provider)===null||p===void 0?void 0:p.label)!==null&&m!==void 0?m:Be});a.watch(()=>n.modelValue,h=>{o.value=h},{immediate:!0,deep:!0});const c=h=>{r(),e("on-insert",h)},l=()=>{e("cancel")},d=h=>{e("show-attachment",h)},u=()=>{e("shown")},f=h=>{e("provider-changed",h)};return(h,p)=>(a.openBlock(),a.createBlock(Rn,{id:"content-library-modal","title-image":i.value,title:s.value,size:"xl",visible:t.visible,"hide-footer":!0,onCancel:l,onShown:u},{default:a.withCtx(()=>[a.createVNode(mh,{modelValue:o.value,"onUpdate:modelValue":p[0]||(p[0]=m=>o.value=m),provider:t.provider,providerSelectOptions:t.providerSelectOptions,loading:t.loading,onOnInsert:c,onShowAttachment:d,onProviderChanged:f},null,8,["modelValue","provider","providerSelectOptions","loading"])]),_:1},8,["title-image","title","visible"]))}};var PV=Object.defineProperty,BV=(t,e,n)=>e in t?PV(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fv=(t,e,n)=>(BV(t,typeof e!="symbol"?e+"":e,n),n);class $V{constructor(){Fv(this,"seed",0),Fv(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 RV="Failed to copy value to clipboard. Unknown type.",VV={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(RV,e),""}return t}},FV="position:fixed; pointer-events:none; z-index:-9999; opacity:0;",jV={createTextarea(t){const e=document.createElement("textarea");return e.addEventListener("focusin",n=>{n.stopPropagation()}),e.value=t,e.setAttribute("readonly",""),e.style.cssText=FV,e}},zi={async requestClipboardPermission(){return navigator.permissions.query({name:"clipboard-write"})},async writeClipboard(t){return(await zi.requestClipboardPermission()).state==="granted"?(await navigator.clipboard.writeText(t),!0):!1},writeClipboardExecCommand(t){const e=jV.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=VV.asString(e);if(zi.writeClipboardExecCommand(n))return!0;await zi.writeClipboard(n)}};new $V;const{showSuccessToast:gh}=ca(),zV=(t,e,n)=>{const r=`${e}
|
|
1362
1362
|
${t.AfzenderNaam}: \r${t.Datum} \r${$v(Rv(t.Tekst))}`;zi.copy(r).then(()=>gh(n))},jv=(t,e,n)=>{const r=t.filter(i=>i.selected).map(i=>`${i.AfzenderNaam}: \r${i.Datum}\r${$v(Rv(i.Tekst))}`).join(`
|
|
1363
1363
|
-----------------------
|
|
1364
1364
|
`),o=`${e}
|
|
1365
|
-
${r}`;zi.copy(o).then(()=>gh(n))},UV=(t,e)=>{zi.copy(t).then(()=>gh(e))},HV={class:"message-cloud-multi-select"},WV={class:"message-cloud-multi-select__body"},KV={class:"message-content"},YV={class:"message-cloud__header"},GV={class:"message-cloud__title"},QV={key:0},ZV=["innerHTML"],zv=a.defineComponent({__name:"BDConversationToTextModal",props:{modelValue:{},extraClass:{}},setup(t){const e=t,{t:n}=Pt(),r=a.ref([]),o=a.ref(!0);a.watchEffect(()=>{r.value=e.modelValue}),a.watch(()=>o.value,d=>{r.value.forEach(u=>u.selected=d)});const i=a.computed(()=>n("conversationToTextModal.systemMessage")),s=d=>{const u=d.IsTussentijdseMededeling?", ":"";if(d.AfzenderType===2&&d.AfzenderId!==d.BehandelaarId&&d.BehandelaarId!==null){const f=n("conversationToTextModal.onBehalfOf");return u+f+" "+d.BehandelaarNaam}return Be},c=d=>d.AfzenderType===2?"is-sender":"is-receiver",l=()=>{const d=n("conversationToTextModal.prefix"),u=n("conversationToTextModal.copySuccess");return jv(r.value,d,u)};return(d,u)=>(a.openBlock(),a.createBlock(Rn,{id:"conversation-to-text-modal",title:"Tekst versie","modal-class":d.extraClass,"hide-footer":""},{default:a.withCtx(()=>[a.createVNode(ze,{variant:"primary",onClick:l},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("conversationToTextModal.copyButton")),1)]),_:1}),a.createElementVNode("div",HV,[a.createVNode(Dr,{class:"select-all-checkbox",modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("conversationToTextModal.selectAll")),1)]),_:1},8,["modelValue"]),a.createElementVNode("div",WV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"message-cloud-selector",key:h},[a.createVNode(Dr,{class:"select-all-checkbox",modelValue:f.selected,"onUpdate:modelValue":p=>f.selected=p},null,8,["modelValue","onUpdate:modelValue"]),a.createElementVNode("div",KV,[a.createElementVNode("div",{class:a.normalizeClass(["message",c(f)])},[a.createElementVNode("div",YV,[a.createElementVNode("div",GV,[a.createTextVNode(a.toDisplayString(f.AfzenderNaam)+" ",1),f.IsTussentijdseMededeling?(a.openBlock(),a.createElementBlock("span",QV,[a.createElementVNode("i",null,a.toDisplayString(i.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("span",null,[a.createElementVNode("i",null,a.toDisplayString(s(f)),1)]),a.createElementVNode("span",null,a.toDisplayString(f.Datum),1)])]),a.createElementVNode("div",{class:"message-cloud__body",innerHTML:f.Tekst},null,8,ZV)],2)])]))),128))])])]),_:1},8,["modal-class"]))}});function Uv(){const t=a.ref(0),e=a.ref(!0),n=a.ref(null),r=a.ref({top:0,left:0,x:0,y:0}),o=a.computed(()=>t.value>0?`zoom-${t.value}`:"");return{zoom:t,mouseDown:e,imageHolderRef:n,pos:r,SetZoom:o,OnMouseDown:l=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;const d=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");d&&(d.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=l.clientX,r.value.y=l.clientY,e.value=!0},OnMouseMove:l=>{if(e.value){const d=l.clientX-r.value.x,u=l.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-u,n.value.scrollLeft=r.value.left-d)}},OnMouseUp:()=>{const l=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");l&&l.style&&(l.style.cursor=""),d&&d.style&&(d.style.cursor="grab"),e.value=!1}}}const JV=["src","alt"],XV={key:0,class:"show-spinner"},qV={class:"spinner-border text-primary",role:"status"},eF=["textContent"],tF=["href"],Hv=a.defineComponent({__name:"BDImageAttachmentModal",setup(t,{expose:e}){const{showModal:n}=zo("image-attachment-modal"),{zoom:r,imageHolderRef:o,SetZoom:i,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=Uv(),{t:d}=Pt(),u=a.ref(!0),f=a.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}),h=a.computed(()=>d("imageAttachmentModal.download")),p=a.computed(()=>d("imageAttachmentModal.loading"));e({Show:C=>{f.value=C,r.value=0,n()}});const g=()=>{u.value=!1},y=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}};return(C,E)=>(a.openBlock(),a.createBlock(Rn,{id:"image-attachment-modal",class:a.normalizeClass(a.unref(Be)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:y},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:o,onMousedown:E[0]||(E[0]=(...b)=>a.unref(s)&&a.unref(s)(...b)),onMousemove:E[1]||(E[1]=(...b)=>a.unref(c)&&a.unref(c)(...b)),onMouseup:E[2]||(E[2]=(...b)=>a.unref(l)&&a.unref(l)(...b))},[f.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:a.normalizeClass(["image-preview-modal",a.unref(i)]),onLoad:g,draggable:!1},null,42,JV)):a.createCommentVNode("",!0)],544),u.value?(a.openBlock(),a.createElementBlock("div",XV,[a.createElementVNode("div",qV,[a.createElementVNode("span",{class:"visually-hidden",textContent:a.toDisplayString(p.value)},null,8,eF)])])):a.createCommentVNode("",!0),a.createVNode(td,{modelValue:a.unref(r),"onUpdate:modelValue":E[3]||(E[3]=b=>a.isRef(r)?r.value=b:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),a.createElementVNode("a",{href:f.value.downloadUrl},[a.createVNode(ze,{variant:"primary",class:"download-image",textContent:a.toDisplayString(h.value)},null,8,["textContent"])],8,tF)]),_:1},8,["class","title"]))}}),nF={key:0},rF={key:1},oF={key:2},iF={key:3},sF={key:1},aF={key:2},lF=["href"],Wv=a.defineComponent({__name:"BDVideoCallConfirmationModal",props:["isMissingCameraPermission","isMissingMicrophonePermission","isMissingMobileActivation","isMissingVideoConferencingSupport","participantName","videoTestUrl"],emits:["confirmed"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=()=>n.isMissingCameraPermission||n.isMissingMicrophonePermission||n.isMissingMobileActivation||n.isMissingVideoConferencingSupport,i=a.computed(()=>o()?r("videoCallConfirmationModal.close"):r("videoCallConfirmationModal.cancel")),s=a.computed(()=>`${n.participantName} ${r("videoCallConfirmationModal.noMobileActivationMessage")}`),c=a.computed(()=>`${n.participantName} ${r("videoCallConfirmationModal.noCompatibleDevices")}`),l=a.computed(()=>r("videoCallConfirmationModal.title")),d=a.computed(()=>r("videoCallConfirmationModal.ok")),u=a.computed(()=>r("videoCallConfirmationModal.generalWarning")),f=a.computed(()=>r("videoCallConfirmationModal.cameraPermissionMissing")),h=a.computed(()=>r("videoCallConfirmationModal.microphonePermissionMissing")),p=a.computed(()=>r("videoCallConfirmationModal.message")),m=a.computed(()=>r("videoCallConfirmationModal.participantMessage")),g=a.computed(()=>r("videoCallConfirmationModal.testMessage")),y=a.computed(()=>r("videoCallConfirmationModal.helpMessage")),C=()=>e("confirmed");return(E,b)=>(a.openBlock(),a.createBlock(Rn,{id:"video-call-confirmation-modal",title:l.value,"submit-button-title":d.value,"close-button-title":i.value,"hide-footer-submit-button":o(),onSubmit:C},{default:a.withCtx(()=>[o()?(a.openBlock(),a.createBlock(lo,{key:0,variant:"warning"},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createElementVNode("ul",null,[n.isMissingCameraPermission?(a.openBlock(),a.createElementBlock("li",nF,a.toDisplayString(f.value),1)):a.createCommentVNode("",!0),n.isMissingMicrophonePermission?(a.openBlock(),a.createElementBlock("li",rF,a.toDisplayString(h.value),1)):a.createCommentVNode("",!0),n.isMissingMobileActivation?(a.openBlock(),a.createElementBlock("li",oF,a.toDisplayString(s.value),1)):a.createCommentVNode("",!0),n.isMissingVideoConferencingSupport?(a.openBlock(),a.createElementBlock("li",iF,a.toDisplayString(c.value),1)):a.createCommentVNode("",!0)])]),_:1})):n.participantName?(a.openBlock(),a.createElementBlock("p",sF,[a.createTextVNode(a.toDisplayString(m.value)+" ",1),a.createElementVNode("b",null,a.toDisplayString(n.participantName),1),a.createTextVNode("?")])):(a.openBlock(),a.createElementBlock("p",aF,a.toDisplayString(p.value),1)),a.createElementVNode("p",null,[a.createElementVNode("a",{href:n.videoTestUrl,target:"blank",rel:"noopener noreferrer"},a.toDisplayString(g.value),9,lF),a.createElementVNode("span",null," "+a.toDisplayString(y.value),1)])]),_:1},8,["title","submit-button-title","close-button-title","hide-footer-submit-button"]))}}),Kv=()=>({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}}),cF={class:"template change-password-template"},dF={class:"template-title"},uF={key:0},fF={key:1},hF=["onSubmit","onReset"],pF={class:"bd-form-field"},mF={class:"bd-form-field"},gF={class:"bd-form-field"},yF={class:"bd-form-buttons"},Yv=a.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const e=t,{showDangerToast:n,showSuccessToast:r}=ca(),{errorMessages:o,errorMessageText:i,MapServerErrors:s,ResetServerErrors:c}=hh(null),{ValidationObjectIsValid:l}=Kv();let d=a.ref({password:Be,passwordNew:Be,passwordRepeat:Be}),u=a.ref({password:{state:null,errorLabel:Be},passwordNew:{state:null,errorLabel:Be},passwordRepeat:{state:null,errorLabel:Be}});const f=()=>{if(!h())return;const g=e.submitPassword(d.value);g&&g.then(()=>{r(e.successText),p()}).catch(y=>{n(e.failureText),s(y)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(d.value.passwordNew&&!m.test(d.value.passwordNew))u.value.passwordNew.state=!1,u.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const g=d.value.passwordRepeat===d.value.passwordNew,y=g?e.requiredText:e.incompatibleText;u.value.passwordNew.state=d.value.passwordNew!==Be&&g?null:!1,u.value.passwordNew.errorLabel=y,u.value.passwordRepeat.state=d.value.passwordRepeat!==Be&&g?null:!1,u.value.passwordRepeat.errorLabel=y}return u.value.password.state=d.value.password!==Be?null:!1,u.value.password.errorLabel=u.value.password.state?Be:e.requiredText,l(u.value)},p=()=>{d.value.password=Be,d.value.passwordNew=Be,d.value.passwordRepeat=Be,u.value.password.state=null,u.value.passwordNew.state=null,u.value.passwordRepeat.state=null,c()};return(m,g)=>(a.openBlock(),a.createElementBlock("main",cF,[a.createVNode(Hi,{class:"container-xl"},{default:a.withCtx(()=>[a.createVNode(wn,{class:"justify-content-md-center template-header"},{default:a.withCtx(()=>[a.createVNode(Tt,{xs:12,md:10,lg:7},{default:a.withCtx(()=>[a.createElementVNode("h1",dF,a.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),a.createVNode(wn,{class:"justify-content-md-center"},{default:a.withCtx(()=>[a.createVNode(Tt,{xs:12,md:10,lg:7},{default:a.withCtx(()=>[a.createVNode(Ca,{class:"bd-card-template","no-header":!0},{body:a.withCtx(()=>[a.createVNode(Hi,{class:"container-fluid"},{default:a.withCtx(()=>[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(Tt,null,{default:a.withCtx(()=>[a.createVNode(lo,{variant:"warning"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),a.unref(o)||a.unref(i)?(a.openBlock(),a.createBlock(wn,{key:0},{default:a.withCtx(()=>[a.createVNode(Tt,null,{default:a.withCtx(()=>[a.createVNode(lo,{variant:"danger"},{default:a.withCtx(()=>[a.unref(o)?(a.openBlock(),a.createElementBlock("div",uF,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(y,C)=>(a.openBlock(),a.createElementBlock("li",{key:C},[a.createVNode(wr),a.createElementVNode("span",null,a.toDisplayString(y),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",fF,a.toDisplayString(a.unref(i)),1))]),_:1})]),_:1})]),_:1})):a.createCommentVNode("",!0),a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(Tt,{class:"bd-card-form",sm:12,md:12},{default:a.withCtx(()=>[a.createElementVNode("form",{onSubmit:a.withModifiers(f,["prevent"]),onReset:a.withModifiers(p,["prevent"]),class:"form"},[a.createElementVNode("div",pF,[a.createVNode(Lr,{modelValue:a.unref(d).password,"onUpdate:modelValue":g[0]||(g[0]=y=>a.unref(d).password=y),label:m.currentPasswordLabel,state:a.unref(u).password.state,type:"password","invalid-feedback-text":a.unref(u).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",mF,[a.createVNode(Lr,{modelValue:a.unref(d).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=y=>a.unref(d).passwordNew=y),label:m.newPasswordLabel,state:a.unref(u).passwordNew.state,type:"password","invalid-feedback-text":a.unref(u).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",gF,[a.createVNode(Lr,{modelValue:a.unref(d).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=y=>a.unref(d).passwordRepeat=y),label:m.confirmNewPasswordLabel,state:a.unref(u).passwordRepeat.state,type:"password","invalid-feedback-text":a.unref(u).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",yF,[a.createVNode(ze,{type:"submit"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.submitButtonText),1)]),_:1}),a.createVNode(ze,{type:"reset",variant:"link"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,hF)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),vF={class:"template not-found-template"},bF={class:"center-screen"},CF={class:"container-warning"},EF=["textContent"],SF=["textContent"],Gv=a.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>n.buttonText||r("notFoundTemplate.buttonDefault")),i=a.computed(()=>r("notFoundTemplate.title")),s=a.computed(()=>r("notFoundTemplate.description")),c=()=>e("navigate");return(l,d)=>(a.openBlock(),a.createElementBlock("main",vF,[a.createVNode(Hi,{class:"container-xl"},{default:a.withCtx(()=>[a.createElementVNode("div",bF,[a.createElementVNode("div",CF,[a.createVNode(Xc),a.createElementVNode("h5",{textContent:a.toDisplayString(i.value)},null,8,EF),a.createElementVNode("p",{textContent:a.toDisplayString(s.value)},null,8,SF),a.createVNode(ze,{onClick:c,variant:"primary",type:"button",textContent:a.toDisplayString(o.value)},null,8,["textContent"])])])]),_:1})]))}}),_F=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(u=>c>=u.start&&c<u.end)?i:`<a href="${i.startsWith("www.")?`http://${i}`:i}" target="_blank" rel="noopener noreferrer">${i}</a>`)},wF=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,kF=t=>t.startsWith("http://")||t.startsWith("https://"),AF={install:t=>{t.component("BDAlert",lo),t.component("BDArticle",s0),t.component("BDAssignConversationModal",Nv),t.component("BDAttachmentPreviewList",ea),t.component("BDAttachmentUploadModal",Mv),t.component("BDBadge",r0),t.component("BDButton",ze),t.component("BDCard",Ca),t.component("BDChangePasswordTemplate",Yv),t.component("BDChatCloud",bv),t.component("BDCol",Tt),t.component("BDCollapsableCard",nd),t.component("BDConfirmationModal",Ov),t.component("BDContentLibraryModal",Vv),t.component("BDConversationToTextModal",zv),t.component("BDContentLibrarySplitButton",Xm),t.component("BDContentLibraryTemplate",mh),t.component("BDContainer",Hi),t.component("BDDropdown",dh),t.component("BDDropdownItem",za),t.component("BDDropzone",Qd),t.component("BDForm",o0),t.component("BDFormCheckbox",Dr),t.component("BDFormInput",Lr),t.component("BDFormInvalidFeedback",Va),t.component("BDFormSelect",i0),t.component("BDHeader",uh),t.component("BDImageAttachmentModal",Hv),t.component("BDImageAttachmentPreviewList",ta),t.component("BDInputGroup",Ss),t.component("BDLink",ao),t.component("BDLogo",Nc),t.component("BDMarkdownEditor",yv),t.component("BDMobileMenu",ch),t.component("BDModal",Rn),t.component("BDNotFoundTemplate",Gv),t.component("BDPagination",zd),t.component("BDPhoneNumberEditModal",Tv),t.component("BDPill",ja),t.component("BDPractitionerHeader",Av),t.component("BDProfileImage",Ki),t.component("BDRow",wn),t.component("BDSessionTimeOutModal",xv),t.component("BDTable",Cv),t.component("BDToast",Ud),t.component("BDUser",vv),t.component("BDUserInformation",Wd),t.component("BDVideoCallConfirmationModal",Wv),t.component("BDVideoCallToast",_v),t.component("BDZoomslider",td),t.component("BDDate",y0),t.component("IconAcademy",da),t.component("IconArrowDown",Mc),t.component("IconArrowUp",Lc),t.component("IconAttachment",_r),t.component("IconBold",Dc),t.component("IconBulletList",Pc),t.component("IconCalendar",kh),t.component("IconCall",ua),t.component("IconCallReject",Bc),t.component("IconCardView",Ah),t.component("IconCaretDown",fa),t.component("IconCaretLeft",$c),t.component("IconCaretRight",Rc),t.component("IconCheck",Ho),t.component("IconClipboard",Th),t.component("IconClose",ha),t.component("IconComment",Vc),t.component("IconCommentActive",Ih),t.component("IconCommonFileEmpty",Oh),t.component("IconCommonFileWarning",Nh),t.component("IconCommentStatic",xh),t.component("IconContactPerson",Mh),t.component("IconCopy",Lh),t.component("IconDelete",Fc),t.component("IconDoubleCheck",Dh),t.component("IconDownloadImage",jc),t.component("IconEdit",zc),t.component("IconEndCall",Ph),t.component("IconError",pa),t.component("IconExternal",Uc),t.component("IconEyeShow",Bh),t.component("IconEyeSlash",$h),t.component("IconFile",Hc),t.component("IconFileAdded",Rh),t.component("IconForward",Vh),t.component("IconHix",Fh),t.component("IconHyperlink",ma),t.component("IconImageFileLandscape",jh),t.component("IconImageFileWarning",zh),t.component("IconInbox",Uh),t.component("IconInfo",wr),t.component("IconInformationCircle",Wc),t.component("IconItalic",Kc),t.component("IconListView",Hh),t.component("IconLock",Wh),t.component("IconLusciiEscalated",Kh),t.component("IconLusciiLogo",Yh),t.component("IconLusciiOpen",Gh),t.component("IconLusciiPriorityHigh",Qh),t.component("IconLusciiPriorityLow",Zh),t.component("IconLusciiPriorityMedium",Jh),t.component("IconMenu",Yc),t.component("IconMessage",Xh),t.component("IconMessageForward",qh),t.component("IconMicrophoneSlash",ep),t.component("IconMicrosoftTeams",tp),t.component("IconMin",np),t.component("IconOrderedList",Gc),t.component("IconPlus",ga),t.component("IconRefresh",rp),t.component("IconRemove",Wi),t.component("IconSananetLogo",op),t.component("IconService",ip),t.component("IconShareScreen",sp),t.component("IconSingleNeutral",ap),t.component("IconSort",lp),t.component("IconSortAsc",Qc),t.component("IconSortDesc",Zc),t.component("IconSortNone",Jc),t.component("IconTriangleDown",cp),t.component("IconTriangleExclamation",Xc),t.component("IconUnderline",qc),t.component("IconVideoDisabled",up),t.component("IconVideocall",dp),t.component("IconWarning",fp),t.component("IconZorgkaart",hp),t.directive("vBDTooltip",jo)}};q.BDAlert=lo,q.BDArticle=s0,q.BDAssignConversationModal=Nv,q.BDAttachmentPreviewList=ea,q.BDAttachmentUploadModal=Mv,q.BDBadge=r0,q.BDButton=ze,q.BDCard=Ca,q.BDChangePasswordTemplate=Yv,q.BDChatCloud=bv,q.BDCol=Tt,q.BDCollapsableCard=nd,q.BDConfirmationModal=Ov,q.BDContainer=Hi,q.BDContentLibraryModal=Vv,q.BDContentLibrarySplitButton=Xm,q.BDContentLibraryTemplate=mh,q.BDConversationToTextModal=zv,q.BDDate=y0,q.BDDropdown=dh,q.BDDropdownItem=za,q.BDDropzone=Qd,q.BDForm=o0,q.BDFormCheckbox=Dr,q.BDFormInput=Lr,q.BDFormInvalidFeedback=Va,q.BDFormSelect=i0,q.BDHeader=uh,q.BDImageAttachmentModal=Hv,q.BDImageAttachmentPreviewList=ta,q.BDInputGroup=Ss,q.BDLink=ao,q.BDLogo=Nc,q.BDMarkdownEditor=yv,q.BDMobileMenu=ch,q.BDModal=Rn,q.BDNotFoundTemplate=Gv,q.BDPagination=zd,q.BDPhoneNumberEditModal=Tv,q.BDPill=ja,q.BDPractitionerHeader=Av,q.BDProfileImage=Ki,q.BDRow=wn,q.BDSessionTimeOutModal=xv,q.BDTable=Cv,q.BDToast=Ud,q.BDUser=vv,q.BDUserInformation=Wd,q.BDVideoCallConfirmationModal=Wv,q.BDVideoCallToast=_v,q.BDZoomslider=td,q.CopyChatMessageToClipboard=zV,q.CopyChatMessagesToClipboard=jv,q.CopyHl7MessagesToClipboard=UV,q.CreateHyperlinkParagraph=wF,q.CreateThumbnailUri=p5,q.IconAcademy=da,q.IconArrowDown=Mc,q.IconArrowUp=Lc,q.IconAttachment=_r,q.IconBold=Dc,q.IconBulletList=Pc,q.IconCalendar=kh,q.IconCall=ua,q.IconCallReject=Bc,q.IconCardView=Ah,q.IconCaretDown=fa,q.IconCaretLeft=$c,q.IconCaretRight=Rc,q.IconCheck=Ho,q.IconClipboard=Th,q.IconClose=ha,q.IconComment=Vc,q.IconCommentActive=Ih,q.IconCommentStatic=xh,q.IconCommonFileEmpty=Oh,q.IconCommonFileWarning=Nh,q.IconContactPerson=Mh,q.IconCopy=Lh,q.IconDelete=Fc,q.IconDoubleCheck=Dh,q.IconDownloadImage=jc,q.IconEdit=zc,q.IconEndCall=Ph,q.IconError=pa,q.IconExternal=Uc,q.IconEyeShow=Bh,q.IconEyeSlash=$h,q.IconFile=Hc,q.IconFileAdded=Rh,q.IconForward=Vh,q.IconHix=Fh,q.IconHyperlink=ma,q.IconImageFileLandscape=jh,q.IconImageFileWarning=zh,q.IconInbox=Uh,q.IconInfo=wr,q.IconInformationCircle=Wc,q.IconItalic=Kc,q.IconListView=Hh,q.IconLock=Wh,q.IconLusciiEscalated=Kh,q.IconLusciiLogo=Yh,q.IconLusciiOpen=Gh,q.IconLusciiPriorityHigh=Qh,q.IconLusciiPriorityLow=Zh,q.IconLusciiPriorityMedium=Jh,q.IconMenu=Yc,q.IconMessage=Xh,q.IconMessageForward=qh,q.IconMicrophoneSlash=ep,q.IconMicrosoftTeams=tp,q.IconMin=np,q.IconOrderedList=Gc,q.IconPlus=ga,q.IconRefresh=rp,q.IconRemove=Wi,q.IconSananetLogo=op,q.IconService=ip,q.IconShareScreen=sp,q.IconSingleNeutral=ap,q.IconSort=lp,q.IconSortAsc=Qc,q.IconSortDesc=Zc,q.IconSortNone=Jc,q.IconTriangleDown=cp,q.IconTriangleExclamation=Xc,q.IconUnderline=qc,q.IconVideoDisabled=up,q.IconVideocall=dp,q.IconWarning=fp,q.IconZorgkaart=hp,q.MapAttachmentsForApi=GM,q.MapToAttachmentObjects=Po,q.TransformHyperlinks=_F,q.ValidateUrl=kF,q.default=AF,q.getDisplayDateNumeric=Gd,q.getDisplayDateTextual=m0,q.getDisplayDateTimeNumeric=Yd,q.getDisplayDateTimeTextual=g0,q.useModal=zo,q.usePopover=kv,q.useServerErrors=hh,q.useSessionTimeOut=Iv,q.useToaster=ca,q.useValidation=Kv,q.useWindow=fh,q.useZoom=Uv,q.vBdTooltip=jo,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1365
|
+
${r}`;zi.copy(o).then(()=>gh(n))},UV=(t,e)=>{zi.copy(t).then(()=>gh(e))},HV={class:"message-cloud-multi-select"},WV={class:"message-cloud-multi-select__body"},KV={class:"message-content"},YV={class:"message-cloud__header"},GV={class:"message-cloud__title"},QV={key:0},ZV=["innerHTML"],zv=a.defineComponent({__name:"BDConversationToTextModal",props:{modelValue:{},extraClass:{}},setup(t){const e=t,{t:n}=Pt(),r=a.ref([]),o=a.ref(!0);a.watchEffect(()=>{r.value=e.modelValue}),a.watch(()=>o.value,d=>{r.value.forEach(u=>u.selected=d)});const i=a.computed(()=>n("conversationToTextModal.systemMessage")),s=d=>{const u=d.IsTussentijdseMededeling?", ":"";if(d.AfzenderType===2&&d.AfzenderId!==d.BehandelaarId&&d.BehandelaarId!==null){const f=n("conversationToTextModal.onBehalfOf");return u+f+" "+d.BehandelaarNaam}return Be},c=d=>d.AfzenderType===2?"is-sender":"is-receiver",l=()=>{const d=n("conversationToTextModal.prefix"),u=n("conversationToTextModal.copySuccess");return jv(r.value,d,u)};return(d,u)=>(a.openBlock(),a.createBlock(Rn,{id:"conversation-to-text-modal",title:"Tekst versie","modal-class":d.extraClass,"hide-footer":""},{default:a.withCtx(()=>[a.createVNode(ze,{variant:"primary",onClick:l},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("conversationToTextModal.copyButton")),1)]),_:1}),a.createElementVNode("div",HV,[a.createVNode(Dr,{class:"select-all-checkbox",modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(n)("conversationToTextModal.selectAll")),1)]),_:1},8,["modelValue"]),a.createElementVNode("div",WV,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(f,h)=>(a.openBlock(),a.createElementBlock("div",{class:"message-cloud-selector",key:h},[a.createVNode(Dr,{class:"select-all-checkbox",modelValue:f.selected,"onUpdate:modelValue":p=>f.selected=p},null,8,["modelValue","onUpdate:modelValue"]),a.createElementVNode("div",KV,[a.createElementVNode("div",{class:a.normalizeClass(["message",c(f)])},[a.createElementVNode("div",YV,[a.createElementVNode("div",GV,[a.createTextVNode(a.toDisplayString(f.AfzenderNaam)+" ",1),f.IsTussentijdseMededeling?(a.openBlock(),a.createElementBlock("span",QV,[a.createElementVNode("i",null,a.toDisplayString(i.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("span",null,[a.createElementVNode("i",null,a.toDisplayString(s(f)),1)]),a.createElementVNode("span",null,a.toDisplayString(f.Datum),1)])]),a.createElementVNode("div",{class:"message-cloud__body",innerHTML:f.Tekst},null,8,ZV)],2)])]))),128))])])]),_:1},8,["modal-class"]))}});function Uv(){const t=a.ref(0),e=a.ref(!0),n=a.ref(null),r=a.ref({top:0,left:0,x:0,y:0}),o=a.computed(()=>t.value>0?`zoom-${t.value}`:"");return{zoom:t,mouseDown:e,imageHolderRef:n,pos:r,SetZoom:o,OnMouseDown:l=>{if(!n.value)return;r.value.left=n.value.scrollLeft,r.value.top=n.value.scrollTop;const d=document.querySelector("#image-attachment-modal"),u=document.querySelector(".image-preview-image-holder");d&&(d.style.cursor="grabbing"),u&&(u.style.cursor="grabbing"),r.value.x=l.clientX,r.value.y=l.clientY,e.value=!0},OnMouseMove:l=>{if(e.value){const d=l.clientX-r.value.x,u=l.clientY-r.value.y;n.value&&(n.value.scrollTop=r.value.top-u,n.value.scrollLeft=r.value.left-d)}},OnMouseUp:()=>{const l=document.querySelector("#image-attachment-modal"),d=document.querySelector(".image-preview-image-holder");l&&l.style&&(l.style.cursor=""),d&&d.style&&(d.style.cursor="grab"),e.value=!1}}}const JV=["src","alt"],XV={key:0,class:"show-spinner"},qV={class:"spinner-border text-primary",role:"status"},eF=["textContent"],tF=["href"],Hv=a.defineComponent({__name:"BDImageAttachmentModal",setup(t,{expose:e}){const{showModal:n}=zo("image-attachment-modal"),{zoom:r,imageHolderRef:o,SetZoom:i,OnMouseDown:s,OnMouseMove:c,OnMouseUp:l}=Uv(),{t:d}=Pt(),u=a.ref(!0),f=a.ref({BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}),h=a.computed(()=>d("imageAttachmentModal.download")),p=a.computed(()=>d("imageAttachmentModal.loading"));e({Show:C=>{f.value=C,r.value=0,n()}});const g=()=>{u.value=!1},y=()=>{f.value={BerichtId:0,Id:void 0,MimeType:null,Naam:Be,altName:Be,downloadUrl:Be,fullImageUrl:Be,previewUrl:Be}};return(C,E)=>(a.openBlock(),a.createBlock(Rn,{id:"image-attachment-modal",class:a.normalizeClass(a.unref(Be)),title:f.value.Naam,hideFooterCancelButton:!0,showHeaderButton:!0,onCancel:y},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"image-preview-image-holder",ref_key:"imageHolderRef",ref:o,onMousedown:E[0]||(E[0]=(...b)=>a.unref(s)&&a.unref(s)(...b)),onMousemove:E[1]||(E[1]=(...b)=>a.unref(c)&&a.unref(c)(...b)),onMouseup:E[2]||(E[2]=(...b)=>a.unref(l)&&a.unref(l)(...b))},[f.value?(a.openBlock(),a.createElementBlock("img",{key:0,src:f.value.downloadUrl,alt:f.value.Naam,class:a.normalizeClass(["image-preview-modal",a.unref(i)]),onLoad:g,draggable:!1},null,42,JV)):a.createCommentVNode("",!0)],544),u.value?(a.openBlock(),a.createElementBlock("div",XV,[a.createElementVNode("div",qV,[a.createElementVNode("span",{class:"visually-hidden",textContent:a.toDisplayString(p.value)},null,8,eF)])])):a.createCommentVNode("",!0),a.createVNode(td,{modelValue:a.unref(r),"onUpdate:modelValue":E[3]||(E[3]=b=>a.isRef(r)?r.value=b:null),class:"image-preview-bd-zoom-slider","max-value":4},null,8,["modelValue"]),a.createElementVNode("a",{href:f.value.downloadUrl},[a.createVNode(ze,{variant:"primary",class:"download-image",textContent:a.toDisplayString(h.value)},null,8,["textContent"])],8,tF)]),_:1},8,["class","title"]))}}),nF={key:0},rF={key:1},oF={key:2},iF={key:3},sF={key:1},aF={key:2},lF=["href"],Wv=a.defineComponent({__name:"BDVideoCallConfirmationModal",props:["isMissingCameraPermission","isMissingMicrophonePermission","isMissingMobileActivation","isMissingVideoConferencingSupport","participantName","videoTestUrl"],emits:["confirmed"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=()=>n.isMissingCameraPermission||n.isMissingMicrophonePermission||n.isMissingMobileActivation||n.isMissingVideoConferencingSupport,i=a.computed(()=>o()?r("videoCallConfirmationModal.close"):r("videoCallConfirmationModal.cancel")),s=a.computed(()=>`${n.participantName} ${r("videoCallConfirmationModal.noMobileActivationMessage")}`),c=a.computed(()=>`${n.participantName} ${r("videoCallConfirmationModal.noCompatibleDevices")}`),l=a.computed(()=>r("videoCallConfirmationModal.title")),d=a.computed(()=>r("videoCallConfirmationModal.ok")),u=a.computed(()=>r("videoCallConfirmationModal.generalWarning")),f=a.computed(()=>r("videoCallConfirmationModal.cameraPermissionMissing")),h=a.computed(()=>r("videoCallConfirmationModal.microphonePermissionMissing")),p=a.computed(()=>r("videoCallConfirmationModal.message")),m=a.computed(()=>r("videoCallConfirmationModal.participantMessage")),g=a.computed(()=>r("videoCallConfirmationModal.testMessage")),y=a.computed(()=>r("videoCallConfirmationModal.helpMessage")),C=()=>e("confirmed");return(E,b)=>(a.openBlock(),a.createBlock(Rn,{id:"video-call-confirmation-modal",title:l.value,"submit-button-title":d.value,"close-button-title":i.value,"hide-footer-submit-button":o(),onSubmit:C},{default:a.withCtx(()=>[o()?(a.openBlock(),a.createBlock(lo,{key:0,variant:"warning"},{default:a.withCtx(()=>[a.createElementVNode("p",null,a.toDisplayString(u.value),1),a.createElementVNode("ul",null,[n.isMissingCameraPermission?(a.openBlock(),a.createElementBlock("li",nF,a.toDisplayString(f.value),1)):a.createCommentVNode("",!0),n.isMissingMicrophonePermission?(a.openBlock(),a.createElementBlock("li",rF,a.toDisplayString(h.value),1)):a.createCommentVNode("",!0),n.isMissingMobileActivation?(a.openBlock(),a.createElementBlock("li",oF,a.toDisplayString(s.value),1)):a.createCommentVNode("",!0),n.isMissingVideoConferencingSupport?(a.openBlock(),a.createElementBlock("li",iF,a.toDisplayString(c.value),1)):a.createCommentVNode("",!0)])]),_:1})):n.participantName?(a.openBlock(),a.createElementBlock("p",sF,[a.createTextVNode(a.toDisplayString(m.value)+" ",1),a.createElementVNode("b",null,a.toDisplayString(n.participantName),1),a.createTextVNode("?")])):(a.openBlock(),a.createElementBlock("p",aF,a.toDisplayString(p.value),1)),a.createElementVNode("p",null,[a.createElementVNode("a",{href:n.videoTestUrl,target:"blank",rel:"noopener noreferrer"},a.toDisplayString(g.value),9,lF),a.createElementVNode("span",null," "+a.toDisplayString(y.value),1)])]),_:1},8,["title","submit-button-title","close-button-title","hide-footer-submit-button"]))}}),Kv=()=>({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}}),cF={class:"template change-password-template"},dF={class:"template-title"},uF={key:0},fF={key:1},hF=["onSubmit","onReset"],pF={class:"bd-form-field"},mF={class:"bd-form-field"},gF={class:"bd-form-field"},yF={class:"bd-form-buttons"},Yv=a.defineComponent({__name:"BDChangePasswordTemplate",props:{templateTitle:{},alertText:{},currentPasswordLabel:{},newPasswordLabel:{},confirmNewPasswordLabel:{},submitButtonText:{},cancelButtonText:{},successText:{},failureText:{},requiredText:{},incompatibleText:{},minimalRequirementsText:{},submitPassword:{type:Function}},setup(t){const e=t,{showDangerToast:n,showSuccessToast:r}=ca(),{errorMessages:o,errorMessageText:i,MapServerErrors:s,ResetServerErrors:c}=hh(null),{ValidationObjectIsValid:l}=Kv();let d=a.ref({password:Be,passwordNew:Be,passwordRepeat:Be}),u=a.ref({password:{state:null,errorLabel:Be},passwordNew:{state:null,errorLabel:Be},passwordRepeat:{state:null,errorLabel:Be}});const f=()=>{if(!h())return;const g=e.submitPassword(d.value);g&&g.then(()=>{r(e.successText),p()}).catch(y=>{n(e.failureText),s(y)})},h=()=>{const m=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;if(d.value.passwordNew&&!m.test(d.value.passwordNew))u.value.passwordNew.state=!1,u.value.passwordNew.errorLabel=e.minimalRequirementsText;else{const g=d.value.passwordRepeat===d.value.passwordNew,y=g?e.requiredText:e.incompatibleText;u.value.passwordNew.state=d.value.passwordNew!==Be&&g?null:!1,u.value.passwordNew.errorLabel=y,u.value.passwordRepeat.state=d.value.passwordRepeat!==Be&&g?null:!1,u.value.passwordRepeat.errorLabel=y}return u.value.password.state=d.value.password!==Be?null:!1,u.value.password.errorLabel=u.value.password.state?Be:e.requiredText,l(u.value)},p=()=>{d.value.password=Be,d.value.passwordNew=Be,d.value.passwordRepeat=Be,u.value.password.state=null,u.value.passwordNew.state=null,u.value.passwordRepeat.state=null,c()};return(m,g)=>(a.openBlock(),a.createElementBlock("main",cF,[a.createVNode(Hi,{class:"container-xl"},{default:a.withCtx(()=>[a.createVNode(wn,{class:"justify-content-md-center template-header"},{default:a.withCtx(()=>[a.createVNode(It,{xs:12,md:10,lg:7},{default:a.withCtx(()=>[a.createElementVNode("h1",dF,a.toDisplayString(e.templateTitle),1)]),_:1})]),_:1}),a.createVNode(wn,{class:"justify-content-md-center"},{default:a.withCtx(()=>[a.createVNode(It,{xs:12,md:10,lg:7},{default:a.withCtx(()=>[a.createVNode(Ca,{class:"bd-card-template","no-header":!0},{body:a.withCtx(()=>[a.createVNode(Hi,{class:"container-fluid"},{default:a.withCtx(()=>[a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(It,null,{default:a.withCtx(()=>[a.createVNode(lo,{variant:"warning"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.alertText),1)]),_:1})]),_:1})]),_:1}),a.unref(o)||a.unref(i)?(a.openBlock(),a.createBlock(wn,{key:0},{default:a.withCtx(()=>[a.createVNode(It,null,{default:a.withCtx(()=>[a.createVNode(lo,{variant:"danger"},{default:a.withCtx(()=>[a.unref(o)?(a.openBlock(),a.createElementBlock("div",uF,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(y,C)=>(a.openBlock(),a.createElementBlock("li",{key:C},[a.createVNode(wr),a.createElementVNode("span",null,a.toDisplayString(y),1)]))),128))])])):(a.openBlock(),a.createElementBlock("div",fF,a.toDisplayString(a.unref(i)),1))]),_:1})]),_:1})]),_:1})):a.createCommentVNode("",!0),a.createVNode(wn,null,{default:a.withCtx(()=>[a.createVNode(It,{class:"bd-card-form",sm:12,md:12},{default:a.withCtx(()=>[a.createElementVNode("form",{onSubmit:a.withModifiers(f,["prevent"]),onReset:a.withModifiers(p,["prevent"]),class:"form"},[a.createElementVNode("div",pF,[a.createVNode(Lr,{modelValue:a.unref(d).password,"onUpdate:modelValue":g[0]||(g[0]=y=>a.unref(d).password=y),label:m.currentPasswordLabel,state:a.unref(u).password.state,type:"password","invalid-feedback-text":a.unref(u).password.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",mF,[a.createVNode(Lr,{modelValue:a.unref(d).passwordNew,"onUpdate:modelValue":g[1]||(g[1]=y=>a.unref(d).passwordNew=y),label:m.newPasswordLabel,state:a.unref(u).passwordNew.state,type:"password","invalid-feedback-text":a.unref(u).passwordNew.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",gF,[a.createVNode(Lr,{modelValue:a.unref(d).passwordRepeat,"onUpdate:modelValue":g[2]||(g[2]=y=>a.unref(d).passwordRepeat=y),label:m.confirmNewPasswordLabel,state:a.unref(u).passwordRepeat.state,type:"password","invalid-feedback-text":a.unref(u).passwordRepeat.errorLabel},null,8,["modelValue","label","state","invalid-feedback-text"])]),a.createElementVNode("div",yF,[a.createVNode(ze,{type:"submit"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.submitButtonText),1)]),_:1}),a.createVNode(ze,{type:"reset",variant:"link"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(m.cancelButtonText),1)]),_:1})])],40,hF)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]))}}),vF={class:"template not-found-template"},bF={class:"center-screen"},CF={class:"container-warning"},EF=["textContent"],SF=["textContent"],Gv=a.defineComponent({__name:"BDNotFoundTemplate",props:{buttonText:{type:String}},emits:["navigate"],setup(t,{emit:e}){const n=t,{t:r}=Pt(),o=a.computed(()=>n.buttonText||r("notFoundTemplate.buttonDefault")),i=a.computed(()=>r("notFoundTemplate.title")),s=a.computed(()=>r("notFoundTemplate.description")),c=()=>e("navigate");return(l,d)=>(a.openBlock(),a.createElementBlock("main",vF,[a.createVNode(Hi,{class:"container-xl"},{default:a.withCtx(()=>[a.createElementVNode("div",bF,[a.createElementVNode("div",CF,[a.createVNode(Xc),a.createElementVNode("h5",{textContent:a.toDisplayString(i.value)},null,8,EF),a.createElementVNode("p",{textContent:a.toDisplayString(s.value)},null,8,SF),a.createVNode(ze,{onClick:c,variant:"primary",type:"button",textContent:a.toDisplayString(o.value)},null,8,["textContent"])])])]),_:1})]))}}),_F=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(u=>c>=u.start&&c<u.end)?i:`<a href="${i.startsWith("www.")?`http://${i}`:i}" target="_blank" rel="noopener noreferrer">${i}</a>`)},wF=(t,e)=>`<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`,kF=t=>t.startsWith("http://")||t.startsWith("https://"),AF={install:t=>{t.component("BDAlert",lo),t.component("BDArticle",s0),t.component("BDAssignConversationModal",Nv),t.component("BDAttachmentPreviewList",ea),t.component("BDAttachmentUploadModal",Mv),t.component("BDBadge",r0),t.component("BDButton",ze),t.component("BDCard",Ca),t.component("BDChangePasswordTemplate",Yv),t.component("BDChatCloud",bv),t.component("BDCol",It),t.component("BDCollapsableCard",nd),t.component("BDConfirmationModal",Ov),t.component("BDContentLibraryModal",Vv),t.component("BDConversationToTextModal",zv),t.component("BDContentLibrarySplitButton",Xm),t.component("BDContentLibraryTemplate",mh),t.component("BDContainer",Hi),t.component("BDDropdown",dh),t.component("BDDropdownItem",za),t.component("BDDropzone",Qd),t.component("BDForm",o0),t.component("BDFormCheckbox",Dr),t.component("BDFormInput",Lr),t.component("BDFormInvalidFeedback",Va),t.component("BDFormSelect",i0),t.component("BDHeader",uh),t.component("BDImageAttachmentModal",Hv),t.component("BDImageAttachmentPreviewList",ta),t.component("BDInputGroup",Ss),t.component("BDLink",ao),t.component("BDLogo",Nc),t.component("BDMarkdownEditor",yv),t.component("BDMobileMenu",ch),t.component("BDModal",Rn),t.component("BDNotFoundTemplate",Gv),t.component("BDPagination",zd),t.component("BDPhoneNumberEditModal",Tv),t.component("BDPill",ja),t.component("BDPractitionerHeader",Av),t.component("BDProfileImage",Ki),t.component("BDRow",wn),t.component("BDSessionTimeOutModal",xv),t.component("BDTable",Cv),t.component("BDToast",Ud),t.component("BDUser",vv),t.component("BDUserInformation",Wd),t.component("BDVideoCallConfirmationModal",Wv),t.component("BDVideoCallToast",_v),t.component("BDZoomslider",td),t.component("BDDate",y0),t.component("IconAcademy",da),t.component("IconArrowDown",Mc),t.component("IconArrowUp",Lc),t.component("IconAttachment",_r),t.component("IconBold",Dc),t.component("IconBulletList",Pc),t.component("IconCalendar",kh),t.component("IconCall",ua),t.component("IconCallReject",Bc),t.component("IconCardView",Ah),t.component("IconCaretDown",fa),t.component("IconCaretLeft",$c),t.component("IconCaretRight",Rc),t.component("IconCheck",Ho),t.component("IconClipboard",Th),t.component("IconClose",ha),t.component("IconComment",Vc),t.component("IconCommentActive",Ih),t.component("IconCommonFileEmpty",Oh),t.component("IconCommonFileWarning",Nh),t.component("IconCommentStatic",xh),t.component("IconContactPerson",Mh),t.component("IconCopy",Lh),t.component("IconDelete",Fc),t.component("IconDoubleCheck",Dh),t.component("IconDownloadImage",jc),t.component("IconEdit",zc),t.component("IconEndCall",Ph),t.component("IconError",pa),t.component("IconExternal",Uc),t.component("IconEyeShow",Bh),t.component("IconEyeSlash",$h),t.component("IconFile",Hc),t.component("IconFileAdded",Rh),t.component("IconForward",Vh),t.component("IconHix",Fh),t.component("IconHyperlink",ma),t.component("IconImageFileLandscape",jh),t.component("IconImageFileWarning",zh),t.component("IconInbox",Uh),t.component("IconInfo",wr),t.component("IconInformationCircle",Wc),t.component("IconItalic",Kc),t.component("IconListView",Hh),t.component("IconLock",Wh),t.component("IconLusciiEscalated",Kh),t.component("IconLusciiLogo",Yh),t.component("IconLusciiOpen",Gh),t.component("IconLusciiPriorityHigh",Qh),t.component("IconLusciiPriorityLow",Zh),t.component("IconLusciiPriorityMedium",Jh),t.component("IconMenu",Yc),t.component("IconMessage",Xh),t.component("IconMessageForward",qh),t.component("IconMicrophoneSlash",ep),t.component("IconMicrosoftTeams",tp),t.component("IconMin",np),t.component("IconOrderedList",Gc),t.component("IconPlus",ga),t.component("IconRefresh",rp),t.component("IconRemove",Wi),t.component("IconSananetLogo",op),t.component("IconService",ip),t.component("IconShareScreen",sp),t.component("IconSingleNeutral",ap),t.component("IconSort",lp),t.component("IconSortAsc",Qc),t.component("IconSortDesc",Zc),t.component("IconSortNone",Jc),t.component("IconTriangleDown",cp),t.component("IconTriangleExclamation",Xc),t.component("IconUnderline",qc),t.component("IconVideoDisabled",up),t.component("IconVideocall",dp),t.component("IconWarning",fp),t.component("IconZorgkaart",hp),t.directive("vBDTooltip",jo)}};q.BDAlert=lo,q.BDArticle=s0,q.BDAssignConversationModal=Nv,q.BDAttachmentPreviewList=ea,q.BDAttachmentUploadModal=Mv,q.BDBadge=r0,q.BDButton=ze,q.BDCard=Ca,q.BDChangePasswordTemplate=Yv,q.BDChatCloud=bv,q.BDCol=It,q.BDCollapsableCard=nd,q.BDConfirmationModal=Ov,q.BDContainer=Hi,q.BDContentLibraryModal=Vv,q.BDContentLibrarySplitButton=Xm,q.BDContentLibraryTemplate=mh,q.BDConversationToTextModal=zv,q.BDDate=y0,q.BDDropdown=dh,q.BDDropdownItem=za,q.BDDropzone=Qd,q.BDForm=o0,q.BDFormCheckbox=Dr,q.BDFormInput=Lr,q.BDFormInvalidFeedback=Va,q.BDFormSelect=i0,q.BDHeader=uh,q.BDImageAttachmentModal=Hv,q.BDImageAttachmentPreviewList=ta,q.BDInputGroup=Ss,q.BDLink=ao,q.BDLogo=Nc,q.BDMarkdownEditor=yv,q.BDMobileMenu=ch,q.BDModal=Rn,q.BDNotFoundTemplate=Gv,q.BDPagination=zd,q.BDPhoneNumberEditModal=Tv,q.BDPill=ja,q.BDPractitionerHeader=Av,q.BDProfileImage=Ki,q.BDRow=wn,q.BDSessionTimeOutModal=xv,q.BDTable=Cv,q.BDToast=Ud,q.BDUser=vv,q.BDUserInformation=Wd,q.BDVideoCallConfirmationModal=Wv,q.BDVideoCallToast=_v,q.BDZoomslider=td,q.CopyChatMessageToClipboard=zV,q.CopyChatMessagesToClipboard=jv,q.CopyHl7MessagesToClipboard=UV,q.CreateHyperlinkParagraph=wF,q.CreateThumbnailUri=p5,q.IconAcademy=da,q.IconArrowDown=Mc,q.IconArrowUp=Lc,q.IconAttachment=_r,q.IconBold=Dc,q.IconBulletList=Pc,q.IconCalendar=kh,q.IconCall=ua,q.IconCallReject=Bc,q.IconCardView=Ah,q.IconCaretDown=fa,q.IconCaretLeft=$c,q.IconCaretRight=Rc,q.IconCheck=Ho,q.IconClipboard=Th,q.IconClose=ha,q.IconComment=Vc,q.IconCommentActive=Ih,q.IconCommentStatic=xh,q.IconCommonFileEmpty=Oh,q.IconCommonFileWarning=Nh,q.IconContactPerson=Mh,q.IconCopy=Lh,q.IconDelete=Fc,q.IconDoubleCheck=Dh,q.IconDownloadImage=jc,q.IconEdit=zc,q.IconEndCall=Ph,q.IconError=pa,q.IconExternal=Uc,q.IconEyeShow=Bh,q.IconEyeSlash=$h,q.IconFile=Hc,q.IconFileAdded=Rh,q.IconForward=Vh,q.IconHix=Fh,q.IconHyperlink=ma,q.IconImageFileLandscape=jh,q.IconImageFileWarning=zh,q.IconInbox=Uh,q.IconInfo=wr,q.IconInformationCircle=Wc,q.IconItalic=Kc,q.IconListView=Hh,q.IconLock=Wh,q.IconLusciiEscalated=Kh,q.IconLusciiLogo=Yh,q.IconLusciiOpen=Gh,q.IconLusciiPriorityHigh=Qh,q.IconLusciiPriorityLow=Zh,q.IconLusciiPriorityMedium=Jh,q.IconMenu=Yc,q.IconMessage=Xh,q.IconMessageForward=qh,q.IconMicrophoneSlash=ep,q.IconMicrosoftTeams=tp,q.IconMin=np,q.IconOrderedList=Gc,q.IconPlus=ga,q.IconRefresh=rp,q.IconRemove=Wi,q.IconSananetLogo=op,q.IconService=ip,q.IconShareScreen=sp,q.IconSingleNeutral=ap,q.IconSort=lp,q.IconSortAsc=Qc,q.IconSortDesc=Zc,q.IconSortNone=Jc,q.IconTriangleDown=cp,q.IconTriangleExclamation=Xc,q.IconUnderline=qc,q.IconVideoDisabled=up,q.IconVideocall=dp,q.IconWarning=fp,q.IconZorgkaart=hp,q.MapAttachmentsForApi=GM,q.MapToAttachmentObjects=Po,q.TransformHyperlinks=_F,q.ValidateUrl=kF,q.default=AF,q.getDisplayDateNumeric=Gd,q.getDisplayDateTextual=m0,q.getDisplayDateTimeNumeric=Yd,q.getDisplayDateTimeTextual=g0,q.useModal=zo,q.usePopover=kv,q.useServerErrors=hh,q.useSessionTimeOut=Iv,q.useToaster=ca,q.useValidation=Kv,q.useWindow=fh,q.useZoom=Uv,q.vBdTooltip=jo,Object.defineProperties(q,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|