ablok-components 0.3.22 → 0.3.23
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.
|
@@ -32770,7 +32770,7 @@ const b7 = { class: "rte-editor" }, C7 = {
|
|
|
32770
32770
|
}, 8, ["modelValue", "options", "name", "id", "label", "disabled", "required"])
|
|
32771
32771
|
]));
|
|
32772
32772
|
}
|
|
32773
|
-
}), K7 = ["id"], W7 = ["for", "innerHTML"], z7 = { class: "dropdown" }, G7 = { class: "caption" }, Y7 = ["innerHTML"], q7 = { class: "caption__text" }, X7 = { class: "d-block text-truncate" }, J7 = { class: "dropdown-menu" }, j7 = { class: "form-check" }, Z7 = ["value", "id", "name", "label", "required", "disabled"], eq = ["value", "id", "name", "label", "required", "disabled"], tq = ["for"], yre = /* @__PURE__ */ ze({
|
|
32773
|
+
}), K7 = ["id"], W7 = ["for", "innerHTML"], z7 = { class: "dropdown" }, G7 = { class: "caption" }, Y7 = ["innerHTML"], q7 = { class: "caption__text" }, X7 = { class: "d-block text-truncate" }, J7 = { class: "dropdown-menu" }, j7 = { class: "form-check d-flex" }, Z7 = ["value", "id", "name", "label", "required", "disabled"], eq = ["value", "id", "name", "label", "required", "disabled"], tq = ["for"], yre = /* @__PURE__ */ ze({
|
|
32774
32774
|
__name: "input-dropdown",
|
|
32775
32775
|
props: {
|
|
32776
32776
|
id: {
|
|
@@ -32871,7 +32871,9 @@ const b7 = { class: "rte-editor" }, C7 = {
|
|
|
32871
32871
|
""
|
|
32872
32872
|
);
|
|
32873
32873
|
if (!A.multiple) {
|
|
32874
|
-
const a = s.value.find(
|
|
32874
|
+
const a = s.value.find(
|
|
32875
|
+
(u) => typeof u.value == "object" && u.value !== null ? JSON.stringify(u.value) === JSON.stringify(A.modelValue) : u.value === A.modelValue
|
|
32876
|
+
);
|
|
32875
32877
|
return a ? a.text : A.placeholder || `${n("common.select")}`;
|
|
32876
32878
|
}
|
|
32877
32879
|
return A.placeholder || `${n("common.select")}`;
|
|
@@ -146,7 +146,7 @@ ${m.slice(u+2)}`,h+=1;else break}e.push({indent:u,number:parseInt(a,10),content:
|
|
|
146
146
|
`):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{const e=t.match(/^(\s*)(\d+)\.\s+/),n=e?.index;return n!==void 0?n:-1},tokenize:(t,e,n)=>{var r;const A=t.split(`
|
|
147
147
|
`),[i,o]=jK(A);if(i.length===0)return;const a=FE(i,0,n);return a.length===0?void 0:{type:"list",ordered:!0,start:((r=i[0])==null?void 0:r.number)||1,items:a,raw:A.slice(0,o).join(`
|
|
148
148
|
`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:t,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(VK,this.editor.getAttributes(QE)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=ya({find:TE,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=ya({find:TE,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(QE)}),joinPredicate:(e,n)=>n.childCount+n.attrs.start===+e[1],editor:this.editor})),[t]}}),ez=/^\s*(\[([( |x])?\])\s$/,tz=Rr.create({name:"taskItem",addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}},content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{const e=t.getAttribute("data-checked");return e===""||e==="true"},renderHTML:t=>({"data-checked":t.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML({node:t,HTMLAttributes:e}){return["li",Jt(this.options.HTMLAttributes,e,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{const n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){const r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;const A=`- [${(n=t.attrs)!=null&&n.checked?"x":" "}] `;return rg(t,e,A)},addKeyboardShortcuts(){const t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return({node:t,HTMLAttributes:e,getPos:n,editor:r})=>{const A=document.createElement("li"),i=document.createElement("label"),o=document.createElement("span"),a=document.createElement("input"),l=document.createElement("div"),u=h=>{var p,m;a.ariaLabel=((m=(p=this.options.a11y)==null?void 0:p.checkboxLabel)==null?void 0:m.call(p,h,a.checked))||`Task item checkbox for ${h.textContent||"empty task item"}`};u(t),i.contentEditable="false",a.type="checkbox",a.addEventListener("mousedown",h=>h.preventDefault()),a.addEventListener("change",h=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){a.checked=!a.checked;return}const{checked:p}=h.target;r.isEditable&&typeof n=="function"&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:m})=>{const v=n();if(typeof v!="number")return!1;const B=m.doc.nodeAt(v);return m.setNodeMarkup(v,void 0,{...B?.attrs,checked:p}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,p)||(a.checked=!a.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([h,p])=>{A.setAttribute(h,p)}),A.dataset.checked=t.attrs.checked,a.checked=t.attrs.checked,i.append(a,o),A.append(i,l),Object.entries(e).forEach(([h,p])=>{A.setAttribute(h,p)});let d=new Set(Object.keys(e));return{dom:A,contentDOM:l,update:h=>{if(h.type!==this.type)return!1;A.dataset.checked=h.attrs.checked,a.checked=h.attrs.checked,u(h);const p=r.extensionManager.attributes,m=Gl(h,p),v=new Set(Object.keys(m)),B=this.options.HTMLAttributes;return d.forEach(y=>{v.has(y)||(y in B?A.setAttribute(y,B[y]):A.removeAttribute(y))}),Object.entries(m).forEach(([y,w])=>{w==null?y in B?A.setAttribute(y,B[y]):A.removeAttribute(y):A.setAttribute(y,w)}),d=v,!0}}}},addInputRules(){return[ya({find:ez,type:this.type,getAttributes:t=>({checked:t[t.length-1]==="x"})})]}}),nz=Rr.create({name:"taskList",addOptions(){return{itemTypeName:"taskItem",HTMLAttributes:{}}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:t}){return["ul",Jt(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,`
|
|
149
|
-
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const o=ng(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);return o?[{type:"taskList",raw:o.raw,items:o.items}]:n.blockTokens(i)},A=ng(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,o)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:o}),customNestedParser:r},n);if(A)return{type:"taskList",raw:A.raw,items:A.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});on.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(wE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(SE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(ME.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(tz.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(nz.configure(this.options.taskList)),t}});var IE=" ",rz=" ",Az=Rr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===IE||r[0].text===rz)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?IE:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),iz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,oz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,sz=Eo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[bs({find:iz,type:this.type})]},addPasteRules(){return[ko({find:oz,type:this.type})]}}),az=Rr.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),lz=Eo.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]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const A=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!A)return;const i=A[2].trim();return{type:"underline",raw:A[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function cz(t={}){return new en({view(e){return new uz(e,t)}})}class uz{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(A=>{let i=o=>{this[A](o)};return e.dom.addEventListener(A,i),{name:A,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,A=this.editorView.dom,i=A.getBoundingClientRect(),o=i.width/A.offsetWidth,a=i.height/A.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let m=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(m){let v=m.getBoundingClientRect(),B=h?v.bottom:v.top;h&&p&&(B=(B+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*a;r={left:v.left,right:v.right,top:B-y,bottom:B+y}}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*o;r={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,d;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,d=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,m=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,d=h.top-l.scrollTop*m}this.element.style.left=(r.left-u)/o+"px",this.element.style.top=(r.top-d)/a+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),A=r&&r.type.spec.disableDropCursor,i=typeof A=="function"?A(this.editorView,n,e):A;if(n&&!i){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=FC(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class an extends st{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return an.valid(r)?new an(r):st.near(r)}content(){return De.empty}eq(e){return e instanceof an&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new an(e.resolve(n.pos))}getBookmark(){return new Mg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!dz(e)||!fz(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let A=n.contentMatchAt(e.index()).defaultType;return A&&A.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&an.valid(e))return e;let A=e.pos,i=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)<a.childCount:e.index(o)>0){i=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;A+=n;let l=e.doc.resolve(A);if(an.valid(l))return l}for(;;){let o=n>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!qe.isSelectable(i)){e=e.doc.resolve(A+i.nodeSize*n),r=!1;continue e}break}i=o,A+=n;let a=e.doc.resolve(A);if(an.valid(a))return a}return null}}}an.prototype.visible=!1,an.findFrom=an.findGapCursorFrom,st.jsonID("gapcursor",an);class Mg{constructor(e){this.pos=e}map(e){return new Mg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return an.valid(n)?new an(n):st.near(n)}}function dz(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n-1);;A=A.lastChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function fz(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n);;A=A.firstChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function hz(){return new en({props:{decorations:vz,createSelectionBetween(t,e,n){return e.pos==n.pos&&an.valid(n)?new an(n):null},handleClick:mz,handleKeyDown:pz,handleDOMEvents:{beforeinput:gz}}})}const pz=h1({ArrowLeft:Gd("horiz",-1),ArrowRight:Gd("horiz",1),ArrowUp:Gd("vert",-1),ArrowDown:Gd("vert",1)});function Gd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,A,i){let o=r.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof nt){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=an.findGapCursorFrom(a,e,l);return u?(A&&A(r.tr.setSelection(new an(u))),!0):!1}}function mz(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!an.valid(r))return!1;let A=t.posAtCoords({left:n.clientX,top:n.clientY});return A&&A.inside>-1&&qe.isSelectable(t.state.doc.nodeAt(A.inside))?!1:(t.dispatch(t.state.tr.setSelection(new an(r))),!0)}function gz(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof an))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let A=Qe.empty;for(let o=r.length-1;o>=0;o--)A=Qe.from(r[o].createAndFill(null,A));let i=t.state.tr.replace(n.pos,n.pos,new De(A,0,0));return i.setSelection(nt.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function vz(t){if(!(t.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[gr.widget(t.selection.head,e,{key:"gapcursor"})])}var Yd=200,Nn=function(){};Nn.prototype.append=function(e){return e.length?(e=Nn.from(e),!this.length&&e||e.length<Yd&&this.leafAppend(e)||this.length<Yd&&e.leafPrepend(this)||this.appendInner(e)):this},Nn.prototype.prepend=function(e){return e.length?Nn.from(e).append(this):this},Nn.prototype.appendInner=function(e){return new wz(this,e)},Nn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Nn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Nn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Nn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Nn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var A=[];return this.forEach(function(i,o){return A.push(e(i,o))},n,r),A},Nn.from=function(e){return e instanceof Nn?e:e&&e.length?new UE(e):Nn.empty};var UE=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(A,i){return A==0&&i==this.length?this:new e(this.values.slice(A,i))},e.prototype.getInner=function(A){return this.values[A]},e.prototype.forEachInner=function(A,i,o,a){for(var l=i;l<o;l++)if(A(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(A,i,o,a){for(var l=i-1;l>=o;l--)if(A(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(A){if(this.length+A.length<=Yd)return new e(this.values.concat(A.flatten()))},e.prototype.leafPrepend=function(A){if(this.length+A.length<=Yd)return new e(A.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Nn);Nn.empty=new UE([]);var wz=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,A,i,o){var a=this.left.length;if(A<a&&this.left.forEachInner(r,A,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(r,Math.max(A-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,A,i,o){var a=this.left.length;if(A>a&&this.right.forEachInvertedInner(r,A-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(A,a),i,o)===!1)return!1},e.prototype.sliceInner=function(r,A){if(r==0&&A==this.length)return this;var i=this.left.length;return A<=i?this.left.slice(r,A):r>=i?this.right.slice(r-i,A-i):this.left.slice(r,i).append(this.right.slice(0,A-i))},e.prototype.leafAppend=function(r){var A=this.right.leafAppend(r);if(A)return new e(this.left,A)},e.prototype.leafPrepend=function(r){var A=this.left.leafPrepend(r);if(A)return new e(A,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Nn);const Bz=500;class IA{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let A,i;n&&(A=this.remapping(r,this.items.length),i=A.maps.length);let o=e.tr,a,l,u=[],d=[];return this.items.forEach((h,p)=>{if(!h.step){A||(A=this.remapping(r,p+1),i=A.maps.length),i--,d.push(h);return}if(A){d.push(new ai(h.map));let m=h.step.map(A.slice(i)),v;m&&o.maybeStep(m).doc&&(v=o.mapping.maps[o.mapping.maps.length-1],u.push(new ai(v,void 0,void 0,u.length+d.length))),i--,v&&A.appendMap(v,i)}else o.maybeStep(h.step);if(h.selection)return a=A?h.selection.map(A.slice(i)):h.selection,l=new IA(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,n,r,A){let i=[],o=this.eventCount,a=this.items,l=!A&&a.length?a.get(a.length-1):null;for(let d=0;d<e.steps.length;d++){let h=e.steps[d].invert(e.docs[d]),p=new ai(e.mapping.maps[d],h,n),m;(m=l&&l.merge(p))&&(p=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(p),n&&(o++,n=void 0),A||(l=p)}let u=o-r.depth;return u>Cz&&(a=yz(a,u),o-=u),new IA(a.append(i),o)}remapping(e,n){let r=new Ml;return this.items.forEach((A,i)=>{let o=A.mirrorOffset!=null&&i-A.mirrorOffset>=e?r.maps.length-A.mirrorOffset:void 0;r.appendMap(A.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new IA(this.items.append(e.map(n=>new ai(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],A=Math.max(0,this.items.length-n),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},A);let l=n;this.items.forEach(p=>{let m=i.getMirror(--l);if(m==null)return;o=Math.min(o,m);let v=i.maps[m];if(p.step){let B=e.steps[m].invert(e.docs[m]),y=p.selection&&p.selection.map(i.slice(l+1,m));y&&a++,r.push(new ai(v,B,y))}else r.push(new ai(v))},A);let u=[];for(let p=n;p<o;p++)u.push(new ai(i.maps[p]));let d=this.items.slice(0,A).append(u).append(r),h=new IA(d,a);return h.emptyItemCount()>Bz&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,A=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)A.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let d=o.selection&&o.selection.map(n.slice(r));d&&i++;let h=new ai(u.invert(),l,d),p,m=A.length-1;(p=A.length&&A[m].merge(h))?A[m]=p:A.push(h)}}else o.map&&r--},this.items.length,0),new IA(Nn.from(A.reverse()),i)}}IA.empty=new IA(Nn.empty,0);function yz(t,e){let n;return t.forEach((r,A)=>{if(r.selection&&e--==0)return n=A,!1}),t.slice(n)}class ai{constructor(e,n,r,A){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=A}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ai(n.getMap().invert(),n,this.selection)}}}class Qo{constructor(e,n,r,A,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=A,this.prevComposition=i}}const Cz=20;function bz(t,e,n,r){let A=n.getMeta(Ss),i;if(A)return A.historyState;n.getMeta(Sz)&&(t=new Qo(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(Ss))return o.getMeta(Ss).redo?new Qo(t.done.addTransform(n,void 0,r,qd(e)),t.undone,_E(n.mapping.maps),t.prevTime,t.prevComposition):new Qo(t.done,t.undone.addTransform(n,void 0,r,qd(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Ez(n,t.prevRanges)),u=o?Ig(t.prevRanges,n.mapping):_E(n.mapping.maps);return new Qo(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,qd(e)),IA.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Qo(t.done.rebased(n,i),t.undone.rebased(n,i),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Qo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Ez(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,A)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&A>=e[i]&&(n=!0)}),n}function _E(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,A,i,o)=>e.push(i,o));return e}function Ig(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let A=e.map(t[r],1),i=e.map(t[r+1],-1);A<=i&&n.push(A,i)}return n}function kz(t,e,n){let r=qd(e),A=Ss.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let o=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),A,r),l=new Qo(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(o).setMeta(Ss,{redo:n,historyState:l})}let Ug=!1,DE=null;function qd(t){let e=t.plugins;if(DE!=e){Ug=!1,DE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ug=!0;break}}return Ug}const Ss=new xn("history"),Sz=new xn("closeHistory");function xz(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new en({key:Ss,state:{init(){return new Qo(IA.empty,IA.empty,null,0,-1)},apply(e,n,r){return bz(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,A=r=="historyUndo"?NE:r=="historyRedo"?LE:null;return A?(n.preventDefault(),A(e.state,e.dispatch)):!1}}}})}function OE(t,e){return(n,r)=>{let A=Ss.getState(n);if(!A||(t?A.undone:A.done).eventCount==0)return!1;if(r){let i=kz(A,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const NE=OE(!1,!0),LE=OE(!0,!0);on.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new en({key:new xn("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const A=this.options.limit;if(A==null||A===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>A){const o=i-A,a=0,l=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${A} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const A=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||A>r&&i>r&&i<=A)return!0;if(A>r&&i>r&&i>A||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=i-r,u=a-l,d=a;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});var Fz=on.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[cz(this.options)]}});on.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new en({key:new xn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:A}=e,i=[];if(!n||!r)return tn.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(A>=u&&A<=u+l.nodeSize-1))return!1;o+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(A>=u&&A<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(gr.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,i)}}})]}});var Qz=on.create({name:"gapCursor",addProseMirrorPlugins(){return[hz()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ot(Ge(t,"allowGapCursor",n)))!=null?e:null}}}),RE="placeholder";function Tz(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}on.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:RE,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Tz(this.options.dataAttribute)}`:`data-${RE}`;return[new en({key:new xn("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=n,i=[];if(!r)return null;const o=this.editor.isEmpty;return e.descendants((a,l)=>{const u=A>=l&&A<=l+a.nodeSize,d=!a.isLeaf&&sd(a);if((u||!this.options.showOnlyCurrent)&&d){const h=[this.options.emptyNodeClass];o&&h.push(this.options.emptyEditorClass);const p=gr.node(l,l+a.nodeSize,{class:h.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),tn.create(e,i)}}})]}}),on.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new en({key:new xn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||L1(n.selection)||t.view.dragging?null:tn.create(n.doc,[gr.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function HE({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var Mz=on.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new xn(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,A])=>A).filter(A=>(this.options.notAfter||[]).concat(n).includes(A.name));return[new en({key:e,appendTransaction:(A,i,o)=>{const{doc:a,tr:l,schema:u}=o,d=e.getState(o),h=a.content.size,p=u.nodes[n];if(d)return l.insert(h,p.create())},state:{init:(A,i)=>{const o=i.tr.doc.lastChild;return!HE({node:o,types:r})},apply:(A,i)=>{if(!A.docChanged||A.getMeta("__uniqueIDTransaction"))return i;const o=A.doc.lastChild;return!HE({node:o,types:r})}}})]}}),Iz=on.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>NE(t,e),redo:()=>({state:t,dispatch:e})=>LE(t,e)}},addProseMirrorPlugins(){return[xz(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Uz=on.create({name:"starterKit",addExtensions(){var t,e,n,r;const A=[];return this.options.bold!==!1&&A.push(mE.configure(this.options.bold)),this.options.blockquote!==!1&&A.push(EK.configure(this.options.blockquote)),this.options.bulletList!==!1&&A.push(wE.configure(this.options.bulletList)),this.options.code!==!1&&A.push(IK.configure(this.options.code)),this.options.codeBlock!==!1&&A.push(DK.configure(this.options.codeBlock)),this.options.document!==!1&&A.push(OK.configure(this.options.document)),this.options.dropcursor!==!1&&A.push(Fz.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&A.push(Qz.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&A.push(NK.configure(this.options.hardBreak)),this.options.heading!==!1&&A.push(LK.configure(this.options.heading)),this.options.undoRedo!==!1&&A.push(Iz.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&A.push(RK.configure(this.options.horizontalRule)),this.options.italic!==!1&&A.push(zK.configure(this.options.italic)),this.options.listItem!==!1&&A.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&A.push(SE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&A.push(pE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&A.push(ME.configure(this.options.orderedList)),this.options.paragraph!==!1&&A.push(Az.configure(this.options.paragraph)),this.options.strike!==!1&&A.push(sz.configure(this.options.strike)),this.options.text!==!1&&A.push(az.configure(this.options.text)),this.options.underline!==!1&&A.push(lz.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&A.push(Mz.configure((r=this.options)==null?void 0:r.trailingNode)),A}}),_z=Uz;function PE(t){return s.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var Dz=class extends O${constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=PE(this.view.state),this.reactiveExtensionStorage=PE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},Oz=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&s.nextTick(()=>{var A;if(!e.value||!((A=r.view.dom)!=null&&A.parentNode))return;const i=s.unref(e.value);e.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),s.onBeforeUnmount(()=>{const r=t.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var Nz=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new Dz(t)}),s.onBeforeUnmount(()=>{var n,r,A,i;const o=(r=(n=e.value)==null?void 0:n.view.dom)==null?void 0:r.parentNode,a=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(a,o),(i=e.value)==null||i.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const Lz={class:"rte-editor"},Rz={key:0,class:"rte-editor__controls mb-2"},Hz=["disabled"],Pz=["disabled"],$z={class:"btn-group"},Kz=["disabled"],zz=["disabled"],Wz={class:"btn-group"},Gz={class:"dropdown"},Yz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},qz={class:"dropdown-menu"},Xz={class:"dropdown"},Jz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},jz={class:"dropdown-menu"},Zz={class:"btn-group"},Vz=["disabled"],e5=["disabled"],t5=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=Nz({content:n.modelValue,onUpdate:()=>{r("update:modelValue",i.value?.getHTML())},extensions:[_z.configure({bold:!1}),QK.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),j$.configure({types:["heading","paragraph"]}),X$,CK.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:d,target:h,rel:p,...m}=u;return["a",Jt(m),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,d)=>{if(i.value){if(i.value.getHTML()===u)return;i.value.commands.setContent(u)}});function o(){const u=i.value?.getAttributes("link").href,d=window.prompt("URL",u);if(d!==null){if(d===""){i.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{i.value?.chain().focus().extendMarkRange("link").setLink({href:d}).run()}catch(h){alert(h.message)}}}const a=()=>{i.value?.commands.setContent(`<textarea>${i.value.getHTML()}</textarea>`),A.value=!0},l=()=>{i.value?.commands.setContent(i.value.getText()),A.value=!1};return(u,d)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",Lz,[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Rz,[A.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,Pz)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("code")}]),onClick:a,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,Hz)),s.createElementVNode("div",$z,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bold")}]),onClick:d[0]||(d[0]=p=>s.unref(i)?.chain().focus().toggleBold().run()),disabled:!s.unref(i).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,Kz),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("italic")}]),onClick:d[1]||(d[1]=p=>s.unref(i)?.chain().focus().toggleItalic().run()),disabled:!s.unref(i).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,zz)]),s.createElementVNode("div",Wz,[s.createElementVNode("div",Gz,[s.createElementVNode("button",Yz,[s.unref(i).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",qz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:1})}]),onClick:d[2]||(d[2]=p=>s.unref(i)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:2})}]),onClick:d[3]||(d[3]=p=>s.unref(i)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:3})}]),onClick:d[4]||(d[4]=p=>s.unref(i)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:4})}]),onClick:d[5]||(d[5]=p=>s.unref(i)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("paragraph")}]),onClick:d[6]||(d[6]=p=>s.unref(i)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bulletList")}]),onClick:d[7]||(d[7]=p=>s.unref(i)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("orderedList")}]),onClick:d[8]||(d[8]=p=>s.unref(i)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",Xz,[s.createElementVNode("button",Jz,[s.unref(i).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",jz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"left"})}]),onClick:d[9]||(d[9]=p=>s.unref(i)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"center"})}]),onClick:d[10]||(d[10]=p=>s.unref(i)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"right"})}]),onClick:d[11]||(d[11]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"pretty"})}]),onClick:d[12]||(d[12]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(i).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:d[13]||(d[13]=p=>s.unref(i).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:o,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",Zz,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[14]||(d[14]=p=>s.unref(i)?.chain().focus().undo().run()),disabled:!s.unref(i).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,Vz),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[15]||(d[15]=p=>s.unref(i)?.chain().focus().redo().run()),disabled:!s.unref(i).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,e5)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(Oz),{class:"rte-editor__content",editor:s.unref(i)},null,8,["editor"])])}}}),n5={class:"input-color"},r5={class:"base-input__color-swatch"},A5=["name","id","disabled","read-only","required","aria-label"],i5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>gt()},id:{type:String,default:()=>gt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",n5,[s.createVNode(a,{modelValue:A.value,"onUpdate:modelValue":o[1]||(o[1]=l=>A.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",r5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=u=>A.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,A5),[[s.vModelText,A.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),o5={class:"color-palette"},s5=["for"],a5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>gt()},id:{type:String,default:()=>gt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",o5,[s.createVNode(xu,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,s5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),l5=["id"],c5=["for","innerHTML"],u5={class:"dropdown"},d5={class:"caption"},f5=["innerHTML"],h5={class:"caption__text"},p5={class:"d-block text-truncate"},m5={class:"dropdown-menu"},g5={class:"form-check"},v5=["value","id","name","label","required","disabled"],w5=["value","id","name","label","required","disabled"],B5=["for"],y5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${gt()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=Sl(),r=t,A=e,i=s.computed({get(){return r.multiple&&!r.modelValue?[]:r.modelValue},set(l){A("update:modelValue",l)}}),o=s.computed(()=>r.options&&r.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:r.modelValue&&l.value&&(r.exactMatch?r.modelValue===l.value:r.multiple?r.modelValue.includes(l.value):r.modelValue===l.value)}))),a=s.computed(()=>{if(!r.modelValue)return r.placeholder||`${n("common.select")}`;if(r.multiple&&Array.isArray(r.modelValue)&&r.modelValue.length)return o.value.reduce((l,u)=>r.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!r.multiple){const l=o.value.find(u=>u.value===r.modelValue);return l?l.text:r.placeholder||`${n("common.select")}`}return r.placeholder||`${n("common.select")}`});return(l,u)=>{const d=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",{class:"input input-dropdown",id:`${t.id||t.name}`},[s.renderSlot(l.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:`${t.id||t.name}--dropdown-toggle`,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,c5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",u5,[s.createVNode(d,{id:`${t.id||t.name}--dropdown-toggle`,"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",d5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,f5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",h5,[s.createElementVNode("span",p5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["id","title","color","outlined","disabled"]),s.createElementVNode("ul",m5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",g5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,v5)),[[s.vModelCheckbox,i.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,w5)),[[s.vModelRadio,i.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,B5)])],2)]))),128))])])],8,l5)}}}),C5={key:0,class:"auto-suggest__suggestions position-relative"},b5={class:"suggestions dropdown-menu show w-100 mt-2"},E5=["onClick"],k5=["innerHTML"],S5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(!1),o=s.computed({get(){return n.modelValue},set(m){r("update:modelValue",m)}}),a=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return o.value?n.options.filter(v=>m.test(v)):n.options}),l=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return a.value.map(v=>{const B=v.replace(m,"<strong>$1</strong>");return Ur(B)})});s.watch(()=>n.options,(m,v)=>{m.length&&(i.value=!0)},{deep:!0});function u(){n.options.length&&(i.value=!0)}function d(m){i.value=!1;const v=a.value[m];r("update:modelValue",v),r("update:selection",v)}const h=s.ref();function p(m){const v=m.target;i.value&&v&&!A.value.contains(v)&&(i.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(m,v)=>{const B=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:A},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(m.$slots,"default",{},()=>[s.createVNode(B,s.mergeProps({modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=y=>o.value=y)},m.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",C5,[s.createElementVNode("ul",b5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(y,w)=>(s.openBlock(),s.createElementBlock("li",{key:y,class:"suggestions__item dropdown-item",onClick:s.withModifiers(C=>d(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:y},null,8,k5)],8,E5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ac={exports:{}};var F5=Ac.exports,$E;function Q5(){return $E||($E=1,(function(t,e){(function(){var n,r="4.17.23",A=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,B=2,y=1,w=2,C=4,k=8,F=16,U=32,D=64,M=128,K=256,q=512,ce=30,me="...",ve=800,Be=16,te=1,V=2,Y=3,x=1/0,Q=9007199254740991,P=17976931348623157e292,T=NaN,S=4294967295,G=S-1,Ae=S>>>1,ne=[["ary",M],["bind",y],["bindKey",w],["curry",k],["curryRight",F],["flip",q],["partial",U],["partialRight",D],["rearg",K]],ee="[object Arguments]",re="[object Array]",pe="[object AsyncFunction]",de="[object Boolean]",Ce="[object Date]",W="[object DOMException]",j="[object Error]",$="[object Function]",N="[object GeneratorFunction]",R="[object Map]",J="[object Number]",z="[object Null]",le="[object Object]",E="[object Promise]",_="[object Proxy]",O="[object RegExp]",ie="[object Set]",X="[object String]",be="[object Symbol]",we="[object Undefined]",ae="[object WeakMap]",he="[object WeakSet]",xe="[object ArrayBuffer]",Pe="[object DataView]",ot="[object Float32Array]",$e="[object Float64Array]",ht="[object Int8Array]",Bt="[object Int16Array]",Et="[object Int32Array]",En="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Kt="[object Uint16Array]",OA="[object Uint32Array]",pi=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,gn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,mi=/[&<>"']/g,wr=RegExp(Tn.source),Ho=RegExp(mi.source),Us=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,NA=/<%=([\s\S]+?)%>/g,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/,_s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Po=/[\\^$.*+?()[\]{}|]/g,Ha=RegExp(Po.source),Ds=/^\s+/,Fr=/\s/,LA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,At=/[()=,{}\[\]\/\s]/,bt=/\\(\\)?/g,Pr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uA=/\w*$/,gi=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,zi=/^\[object .+?Constructor\]$/,Re=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ln="\\u0300-\\u036f",ir="\\ufe20-\\ufe2f",RA="\\u20d0-\\u20ff",Wi=ln+ir+RA,Pa="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",nh="\\xac\\xb1\\xd7\\xf7",rh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kj="\\u2000-\\u206f",Sj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dx="A-Z\\xc0-\\xd6\\xd8-\\xde",Ox="\\ufe0e\\ufe0f",Nx=nh+rh+kj+Sj,ew="['’]",xj="["+vn+"]",Lx="["+Nx+"]",Ah="["+Wi+"]",Rx="\\d+",Fj="["+Pa+"]",Hx="["+kn+"]",Px="[^"+vn+Nx+Rx+Pa+kn+Dx+"]",tw="\\ud83c[\\udffb-\\udfff]",Qj="(?:"+Ah+"|"+tw+")",$x="[^"+vn+"]",nw="(?:\\ud83c[\\udde6-\\uddff]){2}",rw="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+Dx+"]",Kx="\\u200d",zx="(?:"+Hx+"|"+Px+")",Tj="(?:"+$a+"|"+Px+")",Wx="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",Gx="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",Yx=Qj+"?",qx="["+Ox+"]?",Mj="(?:"+Kx+"(?:"+[$x,nw,rw].join("|")+")"+qx+Yx+")*",Ij="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xx=qx+Yx+Mj,_j="(?:"+[Fj,nw,rw].join("|")+")"+Xx,Dj="(?:"+[$x+Ah+"?",Ah,nw,rw,xj].join("|")+")",Oj=RegExp(ew,"g"),Nj=RegExp(Ah,"g"),Aw=RegExp(tw+"(?="+tw+")|"+Dj+Xx,"g"),Lj=RegExp([$a+"?"+Hx+"+"+Wx+"(?="+[Lx,$a,"$"].join("|")+")",Tj+"+"+Gx+"(?="+[Lx,$a+zx,"$"].join("|")+")",$a+"?"+zx+"+"+Wx,$a+"+"+Gx,Uj,Ij,Rx,_j].join("|"),"g"),Rj=RegExp("["+Kx+vn+Wi+Ox+"]"),Hj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$j=-1,qt={};qt[ot]=qt[$e]=qt[ht]=qt[Bt]=qt[Et]=qt[En]=qt[Yt]=qt[Kt]=qt[OA]=!0,qt[ee]=qt[re]=qt[xe]=qt[de]=qt[Pe]=qt[Ce]=qt[j]=qt[$]=qt[R]=qt[J]=qt[le]=qt[O]=qt[ie]=qt[X]=qt[ae]=!1;var Wt={};Wt[ee]=Wt[re]=Wt[xe]=Wt[Pe]=Wt[de]=Wt[Ce]=Wt[ot]=Wt[$e]=Wt[ht]=Wt[Bt]=Wt[Et]=Wt[R]=Wt[J]=Wt[le]=Wt[O]=Wt[ie]=Wt[X]=Wt[be]=Wt[En]=Wt[Yt]=Wt[Kt]=Wt[OA]=!0,Wt[j]=Wt[$]=Wt[ae]=!1;var Kj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zj={"&":"&","<":"<",">":">",'"':""","'":"'"},Wj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Gj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yj=parseFloat,qj=parseInt,Jx=typeof Xd=="object"&&Xd&&Xd.Object===Object&&Xd,Xj=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Jx||Xj||Function("return this")(),iw=e&&!e.nodeType&&e,Os=iw&&!0&&t&&!t.nodeType&&t,jx=Os&&Os.exports===iw,ow=jx&&Jx.process,dA=(function(){try{var ue=Os&&Os.require&&Os.require("util").types;return ue||ow&&ow.binding&&ow.binding("util")}catch{}})(),Zx=dA&&dA.isArrayBuffer,Vx=dA&&dA.isDate,eF=dA&&dA.isMap,tF=dA&&dA.isRegExp,nF=dA&&dA.isSet,rF=dA&&dA.isTypedArray;function $r(ue,Ee,ye){switch(ye.length){case 0:return ue.call(Ee);case 1:return ue.call(Ee,ye[0]);case 2:return ue.call(Ee,ye[0],ye[1]);case 3:return ue.call(Ee,ye[0],ye[1],ye[2])}return ue.apply(Ee,ye)}function Jj(ue,Ee,ye,Ne){for(var rt=-1,Tt=ue==null?0:ue.length;++rt<Tt;){var Mn=ue[rt];Ee(Ne,Mn,ye(Mn),ue)}return Ne}function fA(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne&&Ee(ue[ye],ye,ue)!==!1;);return ue}function jj(ue,Ee){for(var ye=ue==null?0:ue.length;ye--&&Ee(ue[ye],ye,ue)!==!1;);return ue}function AF(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(!Ee(ue[ye],ye,ue))return!1;return!0}function $o(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];Ee(Mn,ye,ue)&&(Tt[rt++]=Mn)}return Tt}function ih(ue,Ee){var ye=ue==null?0:ue.length;return!!ye&&Ka(ue,Ee,0)>-1}function sw(ue,Ee,ye){for(var Ne=-1,rt=ue==null?0:ue.length;++Ne<rt;)if(ye(Ee,ue[Ne]))return!0;return!1}function Zt(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=Array(Ne);++ye<Ne;)rt[ye]=Ee(ue[ye],ye,ue);return rt}function Ko(ue,Ee){for(var ye=-1,Ne=Ee.length,rt=ue.length;++ye<Ne;)ue[rt+ye]=Ee[ye];return ue}function aw(ue,Ee,ye,Ne){var rt=-1,Tt=ue==null?0:ue.length;for(Ne&&Tt&&(ye=ue[++rt]);++rt<Tt;)ye=Ee(ye,ue[rt],rt,ue);return ye}function Zj(ue,Ee,ye,Ne){var rt=ue==null?0:ue.length;for(Ne&&rt&&(ye=ue[--rt]);rt--;)ye=Ee(ye,ue[rt],rt,ue);return ye}function lw(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(Ee(ue[ye],ye,ue))return!0;return!1}var Vj=cw("length");function e9(ue){return ue.split("")}function t9(ue){return ue.match(We)||[]}function iF(ue,Ee,ye){var Ne;return ye(ue,function(rt,Tt,Mn){if(Ee(rt,Tt,Mn))return Ne=Tt,!1}),Ne}function oh(ue,Ee,ye,Ne){for(var rt=ue.length,Tt=ye+(Ne?1:-1);Ne?Tt--:++Tt<rt;)if(Ee(ue[Tt],Tt,ue))return Tt;return-1}function Ka(ue,Ee,ye){return Ee===Ee?f9(ue,Ee,ye):oh(ue,oF,ye)}function n9(ue,Ee,ye,Ne){for(var rt=ye-1,Tt=ue.length;++rt<Tt;)if(Ne(ue[rt],Ee))return rt;return-1}function oF(ue){return ue!==ue}function sF(ue,Ee){var ye=ue==null?0:ue.length;return ye?dw(ue,Ee)/ye:T}function cw(ue){return function(Ee){return Ee==null?n:Ee[ue]}}function uw(ue){return function(Ee){return ue==null?n:ue[Ee]}}function aF(ue,Ee,ye,Ne,rt){return rt(ue,function(Tt,Mn,Pt){ye=Ne?(Ne=!1,Tt):Ee(ye,Tt,Mn,Pt)}),ye}function r9(ue,Ee){var ye=ue.length;for(ue.sort(Ee);ye--;)ue[ye]=ue[ye].value;return ue}function dw(ue,Ee){for(var ye,Ne=-1,rt=ue.length;++Ne<rt;){var Tt=Ee(ue[Ne]);Tt!==n&&(ye=ye===n?Tt:ye+Tt)}return ye}function fw(ue,Ee){for(var ye=-1,Ne=Array(ue);++ye<ue;)Ne[ye]=Ee(ye);return Ne}function A9(ue,Ee){return Zt(Ee,function(ye){return[ye,ue[ye]]})}function lF(ue){return ue&&ue.slice(0,fF(ue)+1).replace(Ds,"")}function Kr(ue){return function(Ee){return ue(Ee)}}function hw(ue,Ee){return Zt(Ee,function(ye){return ue[ye]})}function Qc(ue,Ee){return ue.has(Ee)}function cF(ue,Ee){for(var ye=-1,Ne=ue.length;++ye<Ne&&Ka(Ee,ue[ye],0)>-1;);return ye}function uF(ue,Ee){for(var ye=ue.length;ye--&&Ka(Ee,ue[ye],0)>-1;);return ye}function i9(ue,Ee){for(var ye=ue.length,Ne=0;ye--;)ue[ye]===Ee&&++Ne;return Ne}var o9=uw(Kj),s9=uw(zj);function a9(ue){return"\\"+Gj[ue]}function l9(ue,Ee){return ue==null?n:ue[Ee]}function za(ue){return Rj.test(ue)}function c9(ue){return Hj.test(ue)}function u9(ue){for(var Ee,ye=[];!(Ee=ue.next()).done;)ye.push(Ee.value);return ye}function pw(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne,rt){ye[++Ee]=[rt,Ne]}),ye}function dF(ue,Ee){return function(ye){return ue(Ee(ye))}}function zo(ue,Ee){for(var ye=-1,Ne=ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];(Mn===Ee||Mn===d)&&(ue[ye]=d,Tt[rt++]=ye)}return Tt}function sh(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=Ne}),ye}function d9(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=[Ne,Ne]}),ye}function f9(ue,Ee,ye){for(var Ne=ye-1,rt=ue.length;++Ne<rt;)if(ue[Ne]===Ee)return Ne;return-1}function h9(ue,Ee,ye){for(var Ne=ye+1;Ne--;)if(ue[Ne]===Ee)return Ne;return Ne}function Wa(ue){return za(ue)?m9(ue):Vj(ue)}function HA(ue){return za(ue)?g9(ue):e9(ue)}function fF(ue){for(var Ee=ue.length;Ee--&&Fr.test(ue.charAt(Ee)););return Ee}var p9=uw(Wj);function m9(ue){for(var Ee=Aw.lastIndex=0;Aw.test(ue);)++Ee;return Ee}function g9(ue){return ue.match(Aw)||[]}function v9(ue){return ue.match(Lj)||[]}var w9=(function ue(Ee){Ee=Ee==null?Xn:Ga.defaults(Xn.Object(),Ee,Ga.pick(Xn,Pj));var ye=Ee.Array,Ne=Ee.Date,rt=Ee.Error,Tt=Ee.Function,Mn=Ee.Math,Pt=Ee.Object,mw=Ee.RegExp,B9=Ee.String,hA=Ee.TypeError,ah=ye.prototype,y9=Tt.prototype,Ya=Pt.prototype,lh=Ee["__core-js_shared__"],ch=y9.toString,It=Ya.hasOwnProperty,C9=0,hF=(function(){var c=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),uh=Ya.toString,b9=ch.call(Pt),E9=Xn._,k9=mw("^"+ch.call(It).replace(Po,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dh=jx?Ee.Buffer:n,Wo=Ee.Symbol,fh=Ee.Uint8Array,pF=dh?dh.allocUnsafe:n,hh=dF(Pt.getPrototypeOf,Pt),mF=Pt.create,gF=Ya.propertyIsEnumerable,ph=ah.splice,vF=Wo?Wo.isConcatSpreadable:n,Tc=Wo?Wo.iterator:n,Ns=Wo?Wo.toStringTag:n,mh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),S9=Ee.clearTimeout!==Xn.clearTimeout&&Ee.clearTimeout,x9=Ne&&Ne.now!==Xn.Date.now&&Ne.now,F9=Ee.setTimeout!==Xn.setTimeout&&Ee.setTimeout,gh=Mn.ceil,vh=Mn.floor,gw=Pt.getOwnPropertySymbols,Q9=dh?dh.isBuffer:n,wF=Ee.isFinite,T9=ah.join,M9=dF(Pt.keys,Pt),In=Mn.max,or=Mn.min,I9=Ne.now,U9=Ee.parseInt,BF=Mn.random,_9=ah.reverse,vw=$s(Ee,"DataView"),Mc=$s(Ee,"Map"),ww=$s(Ee,"Promise"),qa=$s(Ee,"Set"),Ic=$s(Ee,"WeakMap"),Uc=$s(Pt,"create"),wh=Ic&&new Ic,Xa={},D9=Ks(vw),O9=Ks(Mc),N9=Ks(ww),L9=Ks(qa),R9=Ks(Ic),Bh=Wo?Wo.prototype:n,_c=Bh?Bh.valueOf:n,yF=Bh?Bh.toString:n;function L(c){if(cn(c)&&!it(c)&&!(c instanceof yt)){if(c instanceof pA)return c;if(It.call(c,"__wrapped__"))return CQ(c)}return new pA(c)}var Ja=(function(){function c(){}return function(f){if(!rn(f))return{};if(mF)return mF(f);c.prototype=f;var g=new c;return c.prototype=n,g}})();function yh(){}function pA(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}L.templateSettings={escape:Us,evaluate:nn,interpolate:NA,variable:"",imports:{_:L}},L.prototype=yh.prototype,L.prototype.constructor=L,pA.prototype=Ja(yh.prototype),pA.prototype.constructor=pA;function yt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function H9(){var c=new yt(this.__wrapped__);return c.__actions__=Qr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qr(this.__views__),c}function P9(){if(this.__filtered__){var c=new yt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function $9(){var c=this.__wrapped__.value(),f=this.__dir__,g=it(c),b=f<0,I=g?c.length:0,H=eV(0,I,this.__views__),Z=H.start,oe=H.end,fe=oe-Z,ke=b?oe:Z-1,Se=this.__iteratees__,Fe=Se.length,Ue=0,Ke=or(fe,this.__takeCount__);if(!g||!b&&I==fe&&Ke==fe)return WF(c,this.__actions__);var je=[];e:for(;fe--&&Ue<Ke;){ke+=f;for(var ct=-1,Ze=c[ke];++ct<Fe;){var mt=Se[ct],Ct=mt.iteratee,Gr=mt.type,Cr=Ct(Ze);if(Gr==V)Ze=Cr;else if(!Cr){if(Gr==te)continue e;break e}}je[Ue++]=Ze}return je}yt.prototype=Ja(yh.prototype),yt.prototype.constructor=yt;function Ls(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function K9(){this.__data__=Uc?Uc(null):{},this.size=0}function z9(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function W9(c){var f=this.__data__;if(Uc){var g=f[c];return g===l?n:g}return It.call(f,c)?f[c]:n}function G9(c){var f=this.__data__;return Uc?f[c]!==n:It.call(f,c)}function Y9(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Uc&&f===n?l:f,this}Ls.prototype.clear=K9,Ls.prototype.delete=z9,Ls.prototype.get=W9,Ls.prototype.has=G9,Ls.prototype.set=Y9;function Gi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function q9(){this.__data__=[],this.size=0}function X9(c){var f=this.__data__,g=Ch(f,c);if(g<0)return!1;var b=f.length-1;return g==b?f.pop():ph.call(f,g,1),--this.size,!0}function J9(c){var f=this.__data__,g=Ch(f,c);return g<0?n:f[g][1]}function j9(c){return Ch(this.__data__,c)>-1}function Z9(c,f){var g=this.__data__,b=Ch(g,c);return b<0?(++this.size,g.push([c,f])):g[b][1]=f,this}Gi.prototype.clear=q9,Gi.prototype.delete=X9,Gi.prototype.get=J9,Gi.prototype.has=j9,Gi.prototype.set=Z9;function Yi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function V9(){this.size=0,this.__data__={hash:new Ls,map:new(Mc||Gi),string:new Ls}}function eZ(c){var f=_h(this,c).delete(c);return this.size-=f?1:0,f}function tZ(c){return _h(this,c).get(c)}function nZ(c){return _h(this,c).has(c)}function rZ(c,f){var g=_h(this,c),b=g.size;return g.set(c,f),this.size+=g.size==b?0:1,this}Yi.prototype.clear=V9,Yi.prototype.delete=eZ,Yi.prototype.get=tZ,Yi.prototype.has=nZ,Yi.prototype.set=rZ;function Rs(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new Yi;++f<g;)this.add(c[f])}function AZ(c){return this.__data__.set(c,l),this}function iZ(c){return this.__data__.has(c)}Rs.prototype.add=Rs.prototype.push=AZ,Rs.prototype.has=iZ;function PA(c){var f=this.__data__=new Gi(c);this.size=f.size}function oZ(){this.__data__=new Gi,this.size=0}function sZ(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}function aZ(c){return this.__data__.get(c)}function lZ(c){return this.__data__.has(c)}function cZ(c,f){var g=this.__data__;if(g instanceof Gi){var b=g.__data__;if(!Mc||b.length<A-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new Yi(b)}return g.set(c,f),this.size=g.size,this}PA.prototype.clear=oZ,PA.prototype.delete=sZ,PA.prototype.get=aZ,PA.prototype.has=lZ,PA.prototype.set=cZ;function CF(c,f){var g=it(c),b=!g&&zs(c),I=!g&&!b&&Jo(c),H=!g&&!b&&!I&&el(c),Z=g||b||I||H,oe=Z?fw(c.length,B9):[],fe=oe.length;for(var ke in c)(f||It.call(c,ke))&&!(Z&&(ke=="length"||I&&(ke=="offset"||ke=="parent")||H&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||ji(ke,fe)))&&oe.push(ke);return oe}function bF(c){var f=c.length;return f?c[Tw(0,f-1)]:n}function uZ(c,f){return Dh(Qr(c),Hs(f,0,c.length))}function dZ(c){return Dh(Qr(c))}function Bw(c,f,g){(g!==n&&!$A(c[f],g)||g===n&&!(f in c))&&qi(c,f,g)}function Dc(c,f,g){var b=c[f];(!(It.call(c,f)&&$A(b,g))||g===n&&!(f in c))&&qi(c,f,g)}function Ch(c,f){for(var g=c.length;g--;)if($A(c[g][0],f))return g;return-1}function fZ(c,f,g,b){return Go(c,function(I,H,Z){f(b,I,g(I),Z)}),b}function EF(c,f){return c&&wi(f,Hn(f),c)}function hZ(c,f){return c&&wi(f,Mr(f),c)}function qi(c,f,g){f=="__proto__"&&mh?mh(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}function yw(c,f){for(var g=-1,b=f.length,I=ye(b),H=c==null;++g<b;)I[g]=H?n:tB(c,f[g]);return I}function Hs(c,f,g){return c===c&&(g!==n&&(c=c<=g?c:g),f!==n&&(c=c>=f?c:f)),c}function mA(c,f,g,b,I,H){var Z,oe=f&h,fe=f&p,ke=f&m;if(g&&(Z=I?g(c,b,I,H):g(c)),Z!==n)return Z;if(!rn(c))return c;var Se=it(c);if(Se){if(Z=nV(c),!oe)return Qr(c,Z)}else{var Fe=sr(c),Ue=Fe==$||Fe==N;if(Jo(c))return qF(c,oe);if(Fe==le||Fe==ee||Ue&&!I){if(Z=fe||Ue?{}:fQ(c),!oe)return fe?WZ(c,hZ(Z,c)):zZ(c,EF(Z,c))}else{if(!Wt[Fe])return I?c:{};Z=rV(c,Fe,oe)}}H||(H=new PA);var Ke=H.get(c);if(Ke)return Ke;H.set(c,Z),$Q(c)?c.forEach(function(Ze){Z.add(mA(Ze,f,g,Ze,c,H))}):HQ(c)&&c.forEach(function(Ze,mt){Z.set(mt,mA(Ze,f,g,mt,c,H))});var je=ke?fe?Pw:Hw:fe?Mr:Hn,ct=Se?n:je(c);return fA(ct||c,function(Ze,mt){ct&&(mt=Ze,Ze=c[mt]),Dc(Z,mt,mA(Ze,f,g,mt,c,H))}),Z}function pZ(c){var f=Hn(c);return function(g){return kF(g,c,f)}}function kF(c,f,g){var b=g.length;if(c==null)return!b;for(c=Pt(c);b--;){var I=g[b],H=f[I],Z=c[I];if(Z===n&&!(I in c)||!H(Z))return!1}return!0}function SF(c,f,g){if(typeof c!="function")throw new hA(o);return $c(function(){c.apply(n,g)},f)}function Oc(c,f,g,b){var I=-1,H=ih,Z=!0,oe=c.length,fe=[],ke=f.length;if(!oe)return fe;g&&(f=Zt(f,Kr(g))),b?(H=sw,Z=!1):f.length>=A&&(H=Qc,Z=!1,f=new Rs(f));e:for(;++I<oe;){var Se=c[I],Fe=g==null?Se:g(Se);if(Se=b||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=ke;Ue--;)if(f[Ue]===Fe)continue e;fe.push(Se)}else H(f,Fe,b)||fe.push(Se)}return fe}var Go=VF(vi),xF=VF(bw,!0);function mZ(c,f){var g=!0;return Go(c,function(b,I,H){return g=!!f(b,I,H),g}),g}function bh(c,f,g){for(var b=-1,I=c.length;++b<I;){var H=c[b],Z=f(H);if(Z!=null&&(oe===n?Z===Z&&!Wr(Z):g(Z,oe)))var oe=Z,fe=H}return fe}function gZ(c,f,g,b){var I=c.length;for(g=at(g),g<0&&(g=-g>I?0:I+g),b=b===n||b>I?I:at(b),b<0&&(b+=I),b=g>b?0:zQ(b);g<b;)c[g++]=f;return c}function FF(c,f){var g=[];return Go(c,function(b,I,H){f(b,I,H)&&g.push(b)}),g}function Jn(c,f,g,b,I){var H=-1,Z=c.length;for(g||(g=iV),I||(I=[]);++H<Z;){var oe=c[H];f>0&&g(oe)?f>1?Jn(oe,f-1,g,b,I):Ko(I,oe):b||(I[I.length]=oe)}return I}var Cw=eQ(),QF=eQ(!0);function vi(c,f){return c&&Cw(c,f,Hn)}function bw(c,f){return c&&QF(c,f,Hn)}function Eh(c,f){return $o(f,function(g){return Zi(c[g])})}function Ps(c,f){f=qo(f,c);for(var g=0,b=f.length;c!=null&&g<b;)c=c[Bi(f[g++])];return g&&g==b?c:n}function TF(c,f,g){var b=f(c);return it(c)?b:Ko(b,g(c))}function Br(c){return c==null?c===n?we:z:Ns&&Ns in Pt(c)?VZ(c):dV(c)}function Ew(c,f){return c>f}function vZ(c,f){return c!=null&&It.call(c,f)}function wZ(c,f){return c!=null&&f in Pt(c)}function BZ(c,f,g){return c>=or(f,g)&&c<In(f,g)}function kw(c,f,g){for(var b=g?sw:ih,I=c[0].length,H=c.length,Z=H,oe=ye(H),fe=1/0,ke=[];Z--;){var Se=c[Z];Z&&f&&(Se=Zt(Se,Kr(f))),fe=or(Se.length,fe),oe[Z]=!g&&(f||I>=120&&Se.length>=120)?new Rs(Z&&Se):n}Se=c[0];var Fe=-1,Ue=oe[0];e:for(;++Fe<I&&ke.length<fe;){var Ke=Se[Fe],je=f?f(Ke):Ke;if(Ke=g||Ke!==0?Ke:0,!(Ue?Qc(Ue,je):b(ke,je,g))){for(Z=H;--Z;){var ct=oe[Z];if(!(ct?Qc(ct,je):b(c[Z],je,g)))continue e}Ue&&Ue.push(je),ke.push(Ke)}}return ke}function yZ(c,f,g,b){return vi(c,function(I,H,Z){f(b,g(I),H,Z)}),b}function Nc(c,f,g){f=qo(f,c),c=gQ(c,f);var b=c==null?c:c[Bi(vA(f))];return b==null?n:$r(b,c,g)}function MF(c){return cn(c)&&Br(c)==ee}function CZ(c){return cn(c)&&Br(c)==xe}function bZ(c){return cn(c)&&Br(c)==Ce}function Lc(c,f,g,b,I){return c===f?!0:c==null||f==null||!cn(c)&&!cn(f)?c!==c&&f!==f:EZ(c,f,g,b,Lc,I)}function EZ(c,f,g,b,I,H){var Z=it(c),oe=it(f),fe=Z?re:sr(c),ke=oe?re:sr(f);fe=fe==ee?le:fe,ke=ke==ee?le:ke;var Se=fe==le,Fe=ke==le,Ue=fe==ke;if(Ue&&Jo(c)){if(!Jo(f))return!1;Z=!0,Se=!1}if(Ue&&!Se)return H||(H=new PA),Z||el(c)?cQ(c,f,g,b,I,H):jZ(c,f,fe,g,b,I,H);if(!(g&v)){var Ke=Se&&It.call(c,"__wrapped__"),je=Fe&&It.call(f,"__wrapped__");if(Ke||je){var ct=Ke?c.value():c,Ze=je?f.value():f;return H||(H=new PA),I(ct,Ze,g,b,H)}}return Ue?(H||(H=new PA),ZZ(c,f,g,b,I,H)):!1}function kZ(c){return cn(c)&&sr(c)==R}function Sw(c,f,g,b){var I=g.length,H=I,Z=!b;if(c==null)return!H;for(c=Pt(c);I--;){var oe=g[I];if(Z&&oe[2]?oe[1]!==c[oe[0]]:!(oe[0]in c))return!1}for(;++I<H;){oe=g[I];var fe=oe[0],ke=c[fe],Se=oe[1];if(Z&&oe[2]){if(ke===n&&!(fe in c))return!1}else{var Fe=new PA;if(b)var Ue=b(ke,Se,fe,c,f,Fe);if(!(Ue===n?Lc(Se,ke,v|B,b,Fe):Ue))return!1}}return!0}function IF(c){if(!rn(c)||sV(c))return!1;var f=Zi(c)?k9:zi;return f.test(Ks(c))}function SZ(c){return cn(c)&&Br(c)==O}function xZ(c){return cn(c)&&sr(c)==ie}function FZ(c){return cn(c)&&Ph(c.length)&&!!qt[Br(c)]}function UF(c){return typeof c=="function"?c:c==null?Ir:typeof c=="object"?it(c)?OF(c[0],c[1]):DF(c):tT(c)}function xw(c){if(!Pc(c))return M9(c);var f=[];for(var g in Pt(c))It.call(c,g)&&g!="constructor"&&f.push(g);return f}function QZ(c){if(!rn(c))return uV(c);var f=Pc(c),g=[];for(var b in c)b=="constructor"&&(f||!It.call(c,b))||g.push(b);return g}function Fw(c,f){return c<f}function _F(c,f){var g=-1,b=Tr(c)?ye(c.length):[];return Go(c,function(I,H,Z){b[++g]=f(I,H,Z)}),b}function DF(c){var f=Kw(c);return f.length==1&&f[0][2]?pQ(f[0][0],f[0][1]):function(g){return g===c||Sw(g,c,f)}}function OF(c,f){return Ww(c)&&hQ(f)?pQ(Bi(c),f):function(g){var b=tB(g,c);return b===n&&b===f?nB(g,c):Lc(f,b,v|B)}}function kh(c,f,g,b,I){c!==f&&Cw(f,function(H,Z){if(I||(I=new PA),rn(H))TZ(c,f,Z,g,kh,b,I);else{var oe=b?b(Yw(c,Z),H,Z+"",c,f,I):n;oe===n&&(oe=H),Bw(c,Z,oe)}},Mr)}function TZ(c,f,g,b,I,H,Z){var oe=Yw(c,g),fe=Yw(f,g),ke=Z.get(fe);if(ke){Bw(c,g,ke);return}var Se=H?H(oe,fe,g+"",c,f,Z):n,Fe=Se===n;if(Fe){var Ue=it(fe),Ke=!Ue&&Jo(fe),je=!Ue&&!Ke&&el(fe);Se=fe,Ue||Ke||je?it(oe)?Se=oe:wn(oe)?Se=Qr(oe):Ke?(Fe=!1,Se=qF(fe,!0)):je?(Fe=!1,Se=XF(fe,!0)):Se=[]:Kc(fe)||zs(fe)?(Se=oe,zs(oe)?Se=WQ(oe):(!rn(oe)||Zi(oe))&&(Se=fQ(fe))):Fe=!1}Fe&&(Z.set(fe,Se),I(Se,fe,b,H,Z),Z.delete(fe)),Bw(c,g,Se)}function NF(c,f){var g=c.length;if(g)return f+=f<0?g:0,ji(f,g)?c[f]:n}function LF(c,f,g){f.length?f=Zt(f,function(H){return it(H)?function(Z){return Ps(Z,H.length===1?H[0]:H)}:H}):f=[Ir];var b=-1;f=Zt(f,Kr(Je()));var I=_F(c,function(H,Z,oe){var fe=Zt(f,function(ke){return ke(H)});return{criteria:fe,index:++b,value:H}});return r9(I,function(H,Z){return KZ(H,Z,g)})}function MZ(c,f){return RF(c,f,function(g,b){return nB(c,b)})}function RF(c,f,g){for(var b=-1,I=f.length,H={};++b<I;){var Z=f[b],oe=Ps(c,Z);g(oe,Z)&&Rc(H,qo(Z,c),oe)}return H}function IZ(c){return function(f){return Ps(f,c)}}function Qw(c,f,g,b){var I=b?n9:Ka,H=-1,Z=f.length,oe=c;for(c===f&&(f=Qr(f)),g&&(oe=Zt(c,Kr(g)));++H<Z;)for(var fe=0,ke=f[H],Se=g?g(ke):ke;(fe=I(oe,Se,fe,b))>-1;)oe!==c&&ph.call(oe,fe,1),ph.call(c,fe,1);return c}function HF(c,f){for(var g=c?f.length:0,b=g-1;g--;){var I=f[g];if(g==b||I!==H){var H=I;ji(I)?ph.call(c,I,1):Uw(c,I)}}return c}function Tw(c,f){return c+vh(BF()*(f-c+1))}function UZ(c,f,g,b){for(var I=-1,H=In(gh((f-c)/(g||1)),0),Z=ye(H);H--;)Z[b?H:++I]=c,c+=g;return Z}function Mw(c,f){var g="";if(!c||f<1||f>Q)return g;do f%2&&(g+=c),f=vh(f/2),f&&(c+=c);while(f);return g}function ut(c,f){return qw(mQ(c,f,Ir),c+"")}function _Z(c){return bF(tl(c))}function DZ(c,f){var g=tl(c);return Dh(g,Hs(f,0,g.length))}function Rc(c,f,g,b){if(!rn(c))return c;f=qo(f,c);for(var I=-1,H=f.length,Z=H-1,oe=c;oe!=null&&++I<H;){var fe=Bi(f[I]),ke=g;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return c;if(I!=Z){var Se=oe[fe];ke=b?b(Se,fe,oe):n,ke===n&&(ke=rn(Se)?Se:ji(f[I+1])?[]:{})}Dc(oe,fe,ke),oe=oe[fe]}return c}var PF=wh?function(c,f){return wh.set(c,f),c}:Ir,OZ=mh?function(c,f){return mh(c,"toString",{configurable:!0,enumerable:!1,value:AB(f),writable:!0})}:Ir;function NZ(c){return Dh(tl(c))}function gA(c,f,g){var b=-1,I=c.length;f<0&&(f=-f>I?0:I+f),g=g>I?I:g,g<0&&(g+=I),I=f>g?0:g-f>>>0,f>>>=0;for(var H=ye(I);++b<I;)H[b]=c[b+f];return H}function LZ(c,f){var g;return Go(c,function(b,I,H){return g=f(b,I,H),!g}),!!g}function Sh(c,f,g){var b=0,I=c==null?b:c.length;if(typeof f=="number"&&f===f&&I<=Ae){for(;b<I;){var H=b+I>>>1,Z=c[H];Z!==null&&!Wr(Z)&&(g?Z<=f:Z<f)?b=H+1:I=H}return I}return Iw(c,f,Ir,g)}function Iw(c,f,g,b){var I=0,H=c==null?0:c.length;if(H===0)return 0;f=g(f);for(var Z=f!==f,oe=f===null,fe=Wr(f),ke=f===n;I<H;){var Se=vh((I+H)/2),Fe=g(c[Se]),Ue=Fe!==n,Ke=Fe===null,je=Fe===Fe,ct=Wr(Fe);if(Z)var Ze=b||je;else ke?Ze=je&&(b||Ue):oe?Ze=je&&Ue&&(b||!Ke):fe?Ze=je&&Ue&&!Ke&&(b||!ct):Ke||ct?Ze=!1:Ze=b?Fe<=f:Fe<f;Ze?I=Se+1:H=Se}return or(H,G)}function $F(c,f){for(var g=-1,b=c.length,I=0,H=[];++g<b;){var Z=c[g],oe=f?f(Z):Z;if(!g||!$A(oe,fe)){var fe=oe;H[I++]=Z===0?0:Z}}return H}function KF(c){return typeof c=="number"?c:Wr(c)?T:+c}function zr(c){if(typeof c=="string")return c;if(it(c))return Zt(c,zr)+"";if(Wr(c))return yF?yF.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Yo(c,f,g){var b=-1,I=ih,H=c.length,Z=!0,oe=[],fe=oe;if(g)Z=!1,I=sw;else if(H>=A){var ke=f?null:XZ(c);if(ke)return sh(ke);Z=!1,I=Qc,fe=new Rs}else fe=f?[]:oe;e:for(;++b<H;){var Se=c[b],Fe=f?f(Se):Se;if(Se=g||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=fe.length;Ue--;)if(fe[Ue]===Fe)continue e;f&&fe.push(Fe),oe.push(Se)}else I(fe,Fe,g)||(fe!==oe&&fe.push(Fe),oe.push(Se))}return oe}function Uw(c,f){f=qo(f,c);var g=-1,b=f.length;if(!b)return!0;for(var I=c==null||typeof c!="object"&&typeof c!="function";++g<b;){var H=f[g];if(typeof H=="string"){if(H==="__proto__"&&!It.call(c,"__proto__"))return!1;if(H==="constructor"&&g+1<b&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(I&&g===0)continue;return!1}}}var Z=gQ(c,f);return Z==null||delete Z[Bi(vA(f))]}function zF(c,f,g,b){return Rc(c,f,g(Ps(c,f)),b)}function xh(c,f,g,b){for(var I=c.length,H=b?I:-1;(b?H--:++H<I)&&f(c[H],H,c););return g?gA(c,b?0:H,b?H+1:I):gA(c,b?H+1:0,b?I:H)}function WF(c,f){var g=c;return g instanceof yt&&(g=g.value()),aw(f,function(b,I){return I.func.apply(I.thisArg,Ko([b],I.args))},g)}function _w(c,f,g){var b=c.length;if(b<2)return b?Yo(c[0]):[];for(var I=-1,H=ye(b);++I<b;)for(var Z=c[I],oe=-1;++oe<b;)oe!=I&&(H[I]=Oc(H[I]||Z,c[oe],f,g));return Yo(Jn(H,1),f,g)}function GF(c,f,g){for(var b=-1,I=c.length,H=f.length,Z={};++b<I;){var oe=b<H?f[b]:n;g(Z,c[b],oe)}return Z}function Dw(c){return wn(c)?c:[]}function Ow(c){return typeof c=="function"?c:Ir}function qo(c,f){return it(c)?c:Ww(c,f)?[c]:yQ(Ut(c))}var RZ=ut;function Xo(c,f,g){var b=c.length;return g=g===n?b:g,!f&&g>=b?c:gA(c,f,g)}var YF=S9||function(c){return Xn.clearTimeout(c)};function qF(c,f){if(f)return c.slice();var g=c.length,b=pF?pF(g):new c.constructor(g);return c.copy(b),b}function Nw(c){var f=new c.constructor(c.byteLength);return new fh(f).set(new fh(c)),f}function HZ(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}function PZ(c){var f=new c.constructor(c.source,uA.exec(c));return f.lastIndex=c.lastIndex,f}function $Z(c){return _c?Pt(_c.call(c)):{}}function XF(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}function JF(c,f){if(c!==f){var g=c!==n,b=c===null,I=c===c,H=Wr(c),Z=f!==n,oe=f===null,fe=f===f,ke=Wr(f);if(!oe&&!ke&&!H&&c>f||H&&Z&&fe&&!oe&&!ke||b&&Z&&fe||!g&&fe||!I)return 1;if(!b&&!H&&!ke&&c<f||ke&&g&&I&&!b&&!H||oe&&g&&I||!Z&&I||!fe)return-1}return 0}function KZ(c,f,g){for(var b=-1,I=c.criteria,H=f.criteria,Z=I.length,oe=g.length;++b<Z;){var fe=JF(I[b],H[b]);if(fe){if(b>=oe)return fe;var ke=g[b];return fe*(ke=="desc"?-1:1)}}return c.index-f.index}function jF(c,f,g,b){for(var I=-1,H=c.length,Z=g.length,oe=-1,fe=f.length,ke=In(H-Z,0),Se=ye(fe+ke),Fe=!b;++oe<fe;)Se[oe]=f[oe];for(;++I<Z;)(Fe||I<H)&&(Se[g[I]]=c[I]);for(;ke--;)Se[oe++]=c[I++];return Se}function ZF(c,f,g,b){for(var I=-1,H=c.length,Z=-1,oe=g.length,fe=-1,ke=f.length,Se=In(H-oe,0),Fe=ye(Se+ke),Ue=!b;++I<Se;)Fe[I]=c[I];for(var Ke=I;++fe<ke;)Fe[Ke+fe]=f[fe];for(;++Z<oe;)(Ue||I<H)&&(Fe[Ke+g[Z]]=c[I++]);return Fe}function Qr(c,f){var g=-1,b=c.length;for(f||(f=ye(b));++g<b;)f[g]=c[g];return f}function wi(c,f,g,b){var I=!g;g||(g={});for(var H=-1,Z=f.length;++H<Z;){var oe=f[H],fe=b?b(g[oe],c[oe],oe,g,c):n;fe===n&&(fe=c[oe]),I?qi(g,oe,fe):Dc(g,oe,fe)}return g}function zZ(c,f){return wi(c,zw(c),f)}function WZ(c,f){return wi(c,uQ(c),f)}function Fh(c,f){return function(g,b){var I=it(g)?Jj:fZ,H=f?f():{};return I(g,c,Je(b,2),H)}}function ja(c){return ut(function(f,g){var b=-1,I=g.length,H=I>1?g[I-1]:n,Z=I>2?g[2]:n;for(H=c.length>3&&typeof H=="function"?(I--,H):n,Z&&yr(g[0],g[1],Z)&&(H=I<3?n:H,I=1),f=Pt(f);++b<I;){var oe=g[b];oe&&c(f,oe,b,H)}return f})}function VF(c,f){return function(g,b){if(g==null)return g;if(!Tr(g))return c(g,b);for(var I=g.length,H=f?I:-1,Z=Pt(g);(f?H--:++H<I)&&b(Z[H],H,Z)!==!1;);return g}}function eQ(c){return function(f,g,b){for(var I=-1,H=Pt(f),Z=b(f),oe=Z.length;oe--;){var fe=Z[c?oe:++I];if(g(H[fe],fe,H)===!1)break}return f}}function GZ(c,f,g){var b=f&y,I=Hc(c);function H(){var Z=this&&this!==Xn&&this instanceof H?I:c;return Z.apply(b?g:this,arguments)}return H}function tQ(c){return function(f){f=Ut(f);var g=za(f)?HA(f):n,b=g?g[0]:f.charAt(0),I=g?Xo(g,1).join(""):f.slice(1);return b[c]()+I}}function Za(c){return function(f){return aw(VQ(ZQ(f).replace(Oj,"")),c,"")}}function Hc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Ja(c.prototype),b=c.apply(g,f);return rn(b)?b:g}}function YZ(c,f,g){var b=Hc(c);function I(){for(var H=arguments.length,Z=ye(H),oe=H,fe=Va(I);oe--;)Z[oe]=arguments[oe];var ke=H<3&&Z[0]!==fe&&Z[H-1]!==fe?[]:zo(Z,fe);if(H-=ke.length,H<g)return oQ(c,f,Qh,I.placeholder,n,Z,ke,n,n,g-H);var Se=this&&this!==Xn&&this instanceof I?b:c;return $r(Se,this,Z)}return I}function nQ(c){return function(f,g,b){var I=Pt(f);if(!Tr(f)){var H=Je(g,3);f=Hn(f),g=function(oe){return H(I[oe],oe,I)}}var Z=c(f,g,b);return Z>-1?I[H?f[Z]:Z]:n}}function rQ(c){return Ji(function(f){var g=f.length,b=g,I=pA.prototype.thru;for(c&&f.reverse();b--;){var H=f[b];if(typeof H!="function")throw new hA(o);if(I&&!Z&&Uh(H)=="wrapper")var Z=new pA([],!0)}for(b=Z?b:g;++b<g;){H=f[b];var oe=Uh(H),fe=oe=="wrapper"?$w(H):n;fe&&Gw(fe[0])&&fe[1]==(M|k|U|K)&&!fe[4].length&&fe[9]==1?Z=Z[Uh(fe[0])].apply(Z,fe[3]):Z=H.length==1&&Gw(H)?Z[oe]():Z.thru(H)}return function(){var ke=arguments,Se=ke[0];if(Z&&ke.length==1&&it(Se))return Z.plant(Se).value();for(var Fe=0,Ue=g?f[Fe].apply(this,ke):Se;++Fe<g;)Ue=f[Fe].call(this,Ue);return Ue}})}function Qh(c,f,g,b,I,H,Z,oe,fe,ke){var Se=f&M,Fe=f&y,Ue=f&w,Ke=f&(k|F),je=f&q,ct=Ue?n:Hc(c);function Ze(){for(var mt=arguments.length,Ct=ye(mt),Gr=mt;Gr--;)Ct[Gr]=arguments[Gr];if(Ke)var Cr=Va(Ze),Yr=i9(Ct,Cr);if(b&&(Ct=jF(Ct,b,I,Ke)),H&&(Ct=ZF(Ct,H,Z,Ke)),mt-=Yr,Ke&&mt<ke){var Bn=zo(Ct,Cr);return oQ(c,f,Qh,Ze.placeholder,g,Ct,Bn,oe,fe,ke-mt)}var KA=Fe?g:this,eo=Ue?KA[c]:c;return mt=Ct.length,oe?Ct=fV(Ct,oe):je&&mt>1&&Ct.reverse(),Se&&fe<mt&&(Ct.length=fe),this&&this!==Xn&&this instanceof Ze&&(eo=ct||Hc(eo)),eo.apply(KA,Ct)}return Ze}function AQ(c,f){return function(g,b){return yZ(g,c,f(b),{})}}function Th(c,f){return function(g,b){var I;if(g===n&&b===n)return f;if(g!==n&&(I=g),b!==n){if(I===n)return b;typeof g=="string"||typeof b=="string"?(g=zr(g),b=zr(b)):(g=KF(g),b=KF(b)),I=c(g,b)}return I}}function Lw(c){return Ji(function(f){return f=Zt(f,Kr(Je())),ut(function(g){var b=this;return c(f,function(I){return $r(I,b,g)})})})}function Mh(c,f){f=f===n?" ":zr(f);var g=f.length;if(g<2)return g?Mw(f,c):f;var b=Mw(f,gh(c/Wa(f)));return za(f)?Xo(HA(b),0,c).join(""):b.slice(0,c)}function qZ(c,f,g,b){var I=f&y,H=Hc(c);function Z(){for(var oe=-1,fe=arguments.length,ke=-1,Se=b.length,Fe=ye(Se+fe),Ue=this&&this!==Xn&&this instanceof Z?H:c;++ke<Se;)Fe[ke]=b[ke];for(;fe--;)Fe[ke++]=arguments[++oe];return $r(Ue,I?g:this,Fe)}return Z}function iQ(c){return function(f,g,b){return b&&typeof b!="number"&&yr(f,g,b)&&(g=b=n),f=Vi(f),g===n?(g=f,f=0):g=Vi(g),b=b===n?f<g?1:-1:Vi(b),UZ(f,g,b,c)}}function Ih(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=wA(f),g=wA(g)),c(f,g)}}function oQ(c,f,g,b,I,H,Z,oe,fe,ke){var Se=f&k,Fe=Se?Z:n,Ue=Se?n:Z,Ke=Se?H:n,je=Se?n:H;f|=Se?U:D,f&=~(Se?D:U),f&C||(f&=-4);var ct=[c,f,I,Ke,Fe,je,Ue,oe,fe,ke],Ze=g.apply(n,ct);return Gw(c)&&vQ(Ze,ct),Ze.placeholder=b,wQ(Ze,c,f)}function Rw(c){var f=Mn[c];return function(g,b){if(g=wA(g),b=b==null?0:or(at(b),292),b&&wF(g)){var I=(Ut(g)+"e").split("e"),H=f(I[0]+"e"+(+I[1]+b));return I=(Ut(H)+"e").split("e"),+(I[0]+"e"+(+I[1]-b))}return f(g)}}var XZ=qa&&1/sh(new qa([,-0]))[1]==x?function(c){return new qa(c)}:sB;function sQ(c){return function(f){var g=sr(f);return g==R?pw(f):g==ie?d9(f):A9(f,c(f))}}function Xi(c,f,g,b,I,H,Z,oe){var fe=f&w;if(!fe&&typeof c!="function")throw new hA(o);var ke=b?b.length:0;if(ke||(f&=-97,b=I=n),Z=Z===n?Z:In(at(Z),0),oe=oe===n?oe:at(oe),ke-=I?I.length:0,f&D){var Se=b,Fe=I;b=I=n}var Ue=fe?n:$w(c),Ke=[c,f,g,b,I,Se,Fe,H,Z,oe];if(Ue&&cV(Ke,Ue),c=Ke[0],f=Ke[1],g=Ke[2],b=Ke[3],I=Ke[4],oe=Ke[9]=Ke[9]===n?fe?0:c.length:In(Ke[9]-ke,0),!oe&&f&(k|F)&&(f&=-25),!f||f==y)var je=GZ(c,f,g);else f==k||f==F?je=YZ(c,f,oe):(f==U||f==(y|U))&&!I.length?je=qZ(c,f,g,b):je=Qh.apply(n,Ke);var ct=Ue?PF:vQ;return wQ(ct(je,Ke),c,f)}function aQ(c,f,g,b){return c===n||$A(c,Ya[g])&&!It.call(b,g)?f:c}function lQ(c,f,g,b,I,H){return rn(c)&&rn(f)&&(H.set(f,c),kh(c,f,n,lQ,H),H.delete(f)),c}function JZ(c){return Kc(c)?n:c}function cQ(c,f,g,b,I,H){var Z=g&v,oe=c.length,fe=f.length;if(oe!=fe&&!(Z&&fe>oe))return!1;var ke=H.get(c),Se=H.get(f);if(ke&&Se)return ke==f&&Se==c;var Fe=-1,Ue=!0,Ke=g&B?new Rs:n;for(H.set(c,f),H.set(f,c);++Fe<oe;){var je=c[Fe],ct=f[Fe];if(b)var Ze=Z?b(ct,je,Fe,f,c,H):b(je,ct,Fe,c,f,H);if(Ze!==n){if(Ze)continue;Ue=!1;break}if(Ke){if(!lw(f,function(mt,Ct){if(!Qc(Ke,Ct)&&(je===mt||I(je,mt,g,b,H)))return Ke.push(Ct)})){Ue=!1;break}}else if(!(je===ct||I(je,ct,g,b,H))){Ue=!1;break}}return H.delete(c),H.delete(f),Ue}function jZ(c,f,g,b,I,H,Z){switch(g){case Pe:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case xe:return!(c.byteLength!=f.byteLength||!H(new fh(c),new fh(f)));case de:case Ce:case J:return $A(+c,+f);case j:return c.name==f.name&&c.message==f.message;case O:case X:return c==f+"";case R:var oe=pw;case ie:var fe=b&v;if(oe||(oe=sh),c.size!=f.size&&!fe)return!1;var ke=Z.get(c);if(ke)return ke==f;b|=B,Z.set(c,f);var Se=cQ(oe(c),oe(f),b,I,H,Z);return Z.delete(c),Se;case be:if(_c)return _c.call(c)==_c.call(f)}return!1}function ZZ(c,f,g,b,I,H){var Z=g&v,oe=Hw(c),fe=oe.length,ke=Hw(f),Se=ke.length;if(fe!=Se&&!Z)return!1;for(var Fe=fe;Fe--;){var Ue=oe[Fe];if(!(Z?Ue in f:It.call(f,Ue)))return!1}var Ke=H.get(c),je=H.get(f);if(Ke&&je)return Ke==f&&je==c;var ct=!0;H.set(c,f),H.set(f,c);for(var Ze=Z;++Fe<fe;){Ue=oe[Fe];var mt=c[Ue],Ct=f[Ue];if(b)var Gr=Z?b(Ct,mt,Ue,f,c,H):b(mt,Ct,Ue,c,f,H);if(!(Gr===n?mt===Ct||I(mt,Ct,g,b,H):Gr)){ct=!1;break}Ze||(Ze=Ue=="constructor")}if(ct&&!Ze){var Cr=c.constructor,Yr=f.constructor;Cr!=Yr&&"constructor"in c&&"constructor"in f&&!(typeof Cr=="function"&&Cr instanceof Cr&&typeof Yr=="function"&&Yr instanceof Yr)&&(ct=!1)}return H.delete(c),H.delete(f),ct}function Ji(c){return qw(mQ(c,n,kQ),c+"")}function Hw(c){return TF(c,Hn,zw)}function Pw(c){return TF(c,Mr,uQ)}var $w=wh?function(c){return wh.get(c)}:sB;function Uh(c){for(var f=c.name+"",g=Xa[f],b=It.call(Xa,f)?g.length:0;b--;){var I=g[b],H=I.func;if(H==null||H==c)return I.name}return f}function Va(c){var f=It.call(L,"placeholder")?L:c;return f.placeholder}function Je(){var c=L.iteratee||iB;return c=c===iB?UF:c,arguments.length?c(arguments[0],arguments[1]):c}function _h(c,f){var g=c.__data__;return oV(f)?g[typeof f=="string"?"string":"hash"]:g.map}function Kw(c){for(var f=Hn(c),g=f.length;g--;){var b=f[g],I=c[b];f[g]=[b,I,hQ(I)]}return f}function $s(c,f){var g=l9(c,f);return IF(g)?g:n}function VZ(c){var f=It.call(c,Ns),g=c[Ns];try{c[Ns]=n;var b=!0}catch{}var I=uh.call(c);return b&&(f?c[Ns]=g:delete c[Ns]),I}var zw=gw?function(c){return c==null?[]:(c=Pt(c),$o(gw(c),function(f){return gF.call(c,f)}))}:aB,uQ=gw?function(c){for(var f=[];c;)Ko(f,zw(c)),c=hh(c);return f}:aB,sr=Br;(vw&&sr(new vw(new ArrayBuffer(1)))!=Pe||Mc&&sr(new Mc)!=R||ww&&sr(ww.resolve())!=E||qa&&sr(new qa)!=ie||Ic&&sr(new Ic)!=ae)&&(sr=function(c){var f=Br(c),g=f==le?c.constructor:n,b=g?Ks(g):"";if(b)switch(b){case D9:return Pe;case O9:return R;case N9:return E;case L9:return ie;case R9:return ae}return f});function eV(c,f,g){for(var b=-1,I=g.length;++b<I;){var H=g[b],Z=H.size;switch(H.type){case"drop":c+=Z;break;case"dropRight":f-=Z;break;case"take":f=or(f,c+Z);break;case"takeRight":c=In(c,f-Z);break}}return{start:c,end:f}}function tV(c){var f=c.match(ge);return f?f[1].split(Ie):[]}function dQ(c,f,g){f=qo(f,c);for(var b=-1,I=f.length,H=!1;++b<I;){var Z=Bi(f[b]);if(!(H=c!=null&&g(c,Z)))break;c=c[Z]}return H||++b!=I?H:(I=c==null?0:c.length,!!I&&Ph(I)&&ji(Z,I)&&(it(c)||zs(c)))}function nV(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&It.call(c,"index")&&(g.index=c.index,g.input=c.input),g}function fQ(c){return typeof c.constructor=="function"&&!Pc(c)?Ja(hh(c)):{}}function rV(c,f,g){var b=c.constructor;switch(f){case xe:return Nw(c);case de:case Ce:return new b(+c);case Pe:return HZ(c,g);case ot:case $e:case ht:case Bt:case Et:case En:case Yt:case Kt:case OA:return XF(c,g);case R:return new b;case J:case X:return new b(c);case O:return PZ(c);case ie:return new b;case be:return $Z(c)}}function AV(c,f){var g=f.length;if(!g)return c;var b=g-1;return f[b]=(g>1?"& ":"")+f[b],f=f.join(g>2?", ":" "),c.replace(LA,`{
|
|
149
|
+
`):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;const n=(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))==null?void 0:e.index;return n!==void 0?n:-1},tokenize(t,e,n){const r=i=>{const o=ng(i,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:a=>({indentLevel:a[1].length,mainContent:a[4],checked:a[3].toLowerCase()==="x"}),createToken:(a,l)=>({type:"taskItem",raw:"",mainContent:a.mainContent,indentLevel:a.indentLevel,checked:a.checked,text:a.mainContent,tokens:n.inlineTokens(a.mainContent),nestedTokens:l}),customNestedParser:r},n);return o?[{type:"taskList",raw:o.raw,items:o.items}]:n.blockTokens(i)},A=ng(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:i=>({indentLevel:i[1].length,mainContent:i[4],checked:i[3].toLowerCase()==="x"}),createToken:(i,o)=>({type:"taskItem",raw:"",mainContent:i.mainContent,indentLevel:i.indentLevel,checked:i.checked,text:i.mainContent,tokens:n.inlineTokens(i.mainContent),nestedTokens:o}),customNestedParser:r},n);if(A)return{type:"taskList",raw:A.raw,items:A.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:t})=>t.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});on.create({name:"listKit",addExtensions(){const t=[];return this.options.bulletList!==!1&&t.push(wE.configure(this.options.bulletList)),this.options.listItem!==!1&&t.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&t.push(SE.configure(this.options.listKeymap)),this.options.orderedList!==!1&&t.push(ME.configure(this.options.orderedList)),this.options.taskItem!==!1&&t.push(tz.configure(this.options.taskItem)),this.options.taskList!==!1&&t.push(nz.configure(this.options.taskList)),t}});var IE=" ",rz=" ",Az=Rr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Jt(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[];if(n.length===1&&n[0].type==="image")return e.parseChildren([n[0]]);const r=e.parseInline(n);return r.length===1&&r[0].type==="text"&&(r[0].text===IE||r[0].text===rz)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e)=>{if(!t)return"";const n=Array.isArray(t.content)?t.content:[];return n.length===0?IE:e.renderChildren(n)},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),iz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,oz=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,sz=Eo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>t.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:t}){return["s",Jt(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>`~~${e.renderChildren(t)}~~`,addCommands(){return{setStrike:()=>({commands:t})=>t.setMark(this.name),toggleStrike:()=>({commands:t})=>t.toggleMark(this.name),unsetStrike:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[bs({find:iz,type:this.type})]},addPasteRules(){return[ko({find:oz,type:this.type})]}}),az=Rr.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),lz=Eo.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]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown(t,e){return`++${e.renderChildren(t)}++`},markdownTokenizer:{name:"underline",level:"inline",start(t){return t.indexOf("++")},tokenize(t,e,n){const A=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!A)return;const i=A[2].trim();return{type:"underline",raw:A[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:t})=>t.setMark(this.name),toggleUnderline:()=>({commands:t})=>t.toggleMark(this.name),unsetUnderline:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}});function cz(t={}){return new en({view(e){return new uz(e,t)}})}class uz{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(A=>{let i=o=>{this[A](o)};return e.dom.addEventListener(A,i),{name:A,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,A=this.editorView.dom,i=A.getBoundingClientRect(),o=i.width/A.offsetWidth,a=i.height/A.offsetHeight;if(n){let h=e.nodeBefore,p=e.nodeAfter;if(h||p){let m=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(m){let v=m.getBoundingClientRect(),B=h?v.bottom:v.top;h&&p&&(B=(B+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let y=this.width/2*a;r={left:v.left,right:v.right,top:B-y,bottom:B+y}}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),p=this.width/2*o;r={left:h.left-p,right:h.left+p,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,d;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,d=-pageYOffset;else{let h=l.getBoundingClientRect(),p=h.width/l.offsetWidth,m=h.height/l.offsetHeight;u=h.left-l.scrollLeft*p,d=h.top-l.scrollTop*m}this.element.style.left=(r.left-u)/o+"px",this.element.style.top=(r.top-d)/a+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),A=r&&r.type.spec.disableDropCursor,i=typeof A=="function"?A(this.editorView,n,e):A;if(n&&!i){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=FC(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class an extends st{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return an.valid(r)?new an(r):st.near(r)}content(){return De.empty}eq(e){return e instanceof an&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new an(e.resolve(n.pos))}getBookmark(){return new Mg(this.anchor)}static valid(e){let n=e.parent;if(n.isTextblock||!dz(e)||!fz(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let A=n.contentMatchAt(e.index()).defaultType;return A&&A.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&an.valid(e))return e;let A=e.pos,i=null;for(let o=e.depth;;o--){let a=e.node(o);if(n>0?e.indexAfter(o)<a.childCount:e.index(o)>0){i=a.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;A+=n;let l=e.doc.resolve(A);if(an.valid(l))return l}for(;;){let o=n>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!qe.isSelectable(i)){e=e.doc.resolve(A+i.nodeSize*n),r=!1;continue e}break}i=o,A+=n;let a=e.doc.resolve(A);if(an.valid(a))return a}return null}}}an.prototype.visible=!1,an.findFrom=an.findGapCursorFrom,st.jsonID("gapcursor",an);class Mg{constructor(e){this.pos=e}map(e){return new Mg(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return an.valid(n)?new an(n):st.near(n)}}function dz(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n-1);;A=A.lastChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function fz(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let A=r.child(n);;A=A.firstChild){if(A.childCount==0&&!A.inlineContent||A.isAtom||A.type.spec.isolating)return!0;if(A.inlineContent)return!1}}return!0}function hz(){return new en({props:{decorations:vz,createSelectionBetween(t,e,n){return e.pos==n.pos&&an.valid(n)?new an(n):null},handleClick:mz,handleKeyDown:pz,handleDOMEvents:{beforeinput:gz}}})}const pz=h1({ArrowLeft:Gd("horiz",-1),ArrowRight:Gd("horiz",1),ArrowUp:Gd("vert",-1),ArrowDown:Gd("vert",1)});function Gd(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,A,i){let o=r.selection,a=e>0?o.$to:o.$from,l=o.empty;if(o instanceof nt){if(!i.endOfTextblock(n)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let u=an.findGapCursorFrom(a,e,l);return u?(A&&A(r.tr.setSelection(new an(u))),!0):!1}}function mz(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!an.valid(r))return!1;let A=t.posAtCoords({left:n.clientX,top:n.clientY});return A&&A.inside>-1&&qe.isSelectable(t.state.doc.nodeAt(A.inside))?!1:(t.dispatch(t.state.tr.setSelection(new an(r))),!0)}function gz(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof an))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let A=Qe.empty;for(let o=r.length-1;o>=0;o--)A=Qe.from(r[o].createAndFill(null,A));let i=t.state.tr.replace(n.pos,n.pos,new De(A,0,0));return i.setSelection(nt.near(i.doc.resolve(n.pos+1))),t.dispatch(i),!1}function vz(t){if(!(t.selection instanceof an))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",tn.create(t.doc,[gr.widget(t.selection.head,e,{key:"gapcursor"})])}var Yd=200,Nn=function(){};Nn.prototype.append=function(e){return e.length?(e=Nn.from(e),!this.length&&e||e.length<Yd&&this.leafAppend(e)||this.length<Yd&&e.leafPrepend(this)||this.appendInner(e)):this},Nn.prototype.prepend=function(e){return e.length?Nn.from(e).append(this):this},Nn.prototype.appendInner=function(e){return new wz(this,e)},Nn.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?Nn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))},Nn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Nn.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)},Nn.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var A=[];return this.forEach(function(i,o){return A.push(e(i,o))},n,r),A},Nn.from=function(e){return e instanceof Nn?e:e&&e.length?new UE(e):Nn.empty};var UE=(function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(A,i){return A==0&&i==this.length?this:new e(this.values.slice(A,i))},e.prototype.getInner=function(A){return this.values[A]},e.prototype.forEachInner=function(A,i,o,a){for(var l=i;l<o;l++)if(A(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(A,i,o,a){for(var l=i-1;l>=o;l--)if(A(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(A){if(this.length+A.length<=Yd)return new e(this.values.concat(A.flatten()))},e.prototype.leafPrepend=function(A){if(this.length+A.length<=Yd)return new e(A.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e})(Nn);Nn.empty=new UE([]);var wz=(function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,A,i,o){var a=this.left.length;if(A<a&&this.left.forEachInner(r,A,Math.min(i,a),o)===!1||i>a&&this.right.forEachInner(r,Math.max(A-a,0),Math.min(this.length,i)-a,o+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,A,i,o){var a=this.left.length;if(A>a&&this.right.forEachInvertedInner(r,A-a,Math.max(i,a)-a,o+a)===!1||i<a&&this.left.forEachInvertedInner(r,Math.min(A,a),i,o)===!1)return!1},e.prototype.sliceInner=function(r,A){if(r==0&&A==this.length)return this;var i=this.left.length;return A<=i?this.left.slice(r,A):r>=i?this.right.slice(r-i,A-i):this.left.slice(r,i).append(this.right.slice(0,A-i))},e.prototype.leafAppend=function(r){var A=this.right.leafAppend(r);if(A)return new e(this.left,A)},e.prototype.leafPrepend=function(r){var A=this.left.leafPrepend(r);if(A)return new e(A,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e})(Nn);const Bz=500;class IA{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let A,i;n&&(A=this.remapping(r,this.items.length),i=A.maps.length);let o=e.tr,a,l,u=[],d=[];return this.items.forEach((h,p)=>{if(!h.step){A||(A=this.remapping(r,p+1),i=A.maps.length),i--,d.push(h);return}if(A){d.push(new ai(h.map));let m=h.step.map(A.slice(i)),v;m&&o.maybeStep(m).doc&&(v=o.mapping.maps[o.mapping.maps.length-1],u.push(new ai(v,void 0,void 0,u.length+d.length))),i--,v&&A.appendMap(v,i)}else o.maybeStep(h.step);if(h.selection)return a=A?h.selection.map(A.slice(i)):h.selection,l=new IA(this.items.slice(0,r).append(d.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:o,selection:a}}addTransform(e,n,r,A){let i=[],o=this.eventCount,a=this.items,l=!A&&a.length?a.get(a.length-1):null;for(let d=0;d<e.steps.length;d++){let h=e.steps[d].invert(e.docs[d]),p=new ai(e.mapping.maps[d],h,n),m;(m=l&&l.merge(p))&&(p=m,d?i.pop():a=a.slice(0,a.length-1)),i.push(p),n&&(o++,n=void 0),A||(l=p)}let u=o-r.depth;return u>Cz&&(a=yz(a,u),o-=u),new IA(a.append(i),o)}remapping(e,n){let r=new Ml;return this.items.forEach((A,i)=>{let o=A.mirrorOffset!=null&&i-A.mirrorOffset>=e?r.maps.length-A.mirrorOffset:void 0;r.appendMap(A.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new IA(this.items.append(e.map(n=>new ai(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],A=Math.max(0,this.items.length-n),i=e.mapping,o=e.steps.length,a=this.eventCount;this.items.forEach(p=>{p.selection&&a--},A);let l=n;this.items.forEach(p=>{let m=i.getMirror(--l);if(m==null)return;o=Math.min(o,m);let v=i.maps[m];if(p.step){let B=e.steps[m].invert(e.docs[m]),y=p.selection&&p.selection.map(i.slice(l+1,m));y&&a++,r.push(new ai(v,B,y))}else r.push(new ai(v))},A);let u=[];for(let p=n;p<o;p++)u.push(new ai(i.maps[p]));let d=this.items.slice(0,A).append(u).append(r),h=new IA(d,a);return h.emptyItemCount()>Bz&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,A=[],i=0;return this.items.forEach((o,a)=>{if(a>=e)A.push(o),o.selection&&i++;else if(o.step){let l=o.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let d=o.selection&&o.selection.map(n.slice(r));d&&i++;let h=new ai(u.invert(),l,d),p,m=A.length-1;(p=A.length&&A[m].merge(h))?A[m]=p:A.push(h)}}else o.map&&r--},this.items.length,0),new IA(Nn.from(A.reverse()),i)}}IA.empty=new IA(Nn.empty,0);function yz(t,e){let n;return t.forEach((r,A)=>{if(r.selection&&e--==0)return n=A,!1}),t.slice(n)}class ai{constructor(e,n,r,A){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=A}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ai(n.getMap().invert(),n,this.selection)}}}class Qo{constructor(e,n,r,A,i){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=A,this.prevComposition=i}}const Cz=20;function bz(t,e,n,r){let A=n.getMeta(Ss),i;if(A)return A.historyState;n.getMeta(Sz)&&(t=new Qo(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(Ss))return o.getMeta(Ss).redo?new Qo(t.done.addTransform(n,void 0,r,qd(e)),t.undone,_E(n.mapping.maps),t.prevTime,t.prevComposition):new Qo(t.done,t.undone.addTransform(n,void 0,r,qd(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=n.getMeta("composition"),l=t.prevTime==0||!o&&t.prevComposition!=a&&(t.prevTime<(n.time||0)-r.newGroupDelay||!Ez(n,t.prevRanges)),u=o?Ig(t.prevRanges,n.mapping):_E(n.mapping.maps);return new Qo(t.done.addTransform(n,l?e.selection.getBookmark():void 0,r,qd(e)),IA.empty,u,n.time,a??t.prevComposition)}else return(i=n.getMeta("rebased"))?new Qo(t.done.rebased(n,i),t.undone.rebased(n,i),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new Qo(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),Ig(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function Ez(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,A)=>{for(let i=0;i<e.length;i+=2)r<=e[i+1]&&A>=e[i]&&(n=!0)}),n}function _E(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;n--)t[n].forEach((r,A,i,o)=>e.push(i,o));return e}function Ig(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let A=e.map(t[r],1),i=e.map(t[r+1],-1);A<=i&&n.push(A,i)}return n}function kz(t,e,n){let r=qd(e),A=Ss.get(e).spec.config,i=(n?t.undone:t.done).popEvent(e,r);if(!i)return null;let o=i.selection.resolve(i.transform.doc),a=(n?t.done:t.undone).addTransform(i.transform,e.selection.getBookmark(),A,r),l=new Qo(n?a:i.remaining,n?i.remaining:a,null,0,-1);return i.transform.setSelection(o).setMeta(Ss,{redo:n,historyState:l})}let Ug=!1,DE=null;function qd(t){let e=t.plugins;if(DE!=e){Ug=!1,DE=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){Ug=!0;break}}return Ug}const Ss=new xn("history"),Sz=new xn("closeHistory");function xz(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new en({key:Ss,state:{init(){return new Qo(IA.empty,IA.empty,null,0,-1)},apply(e,n,r){return bz(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,A=r=="historyUndo"?NE:r=="historyRedo"?LE:null;return A?(n.preventDefault(),A(e.state,e.dispatch)):!1}}}})}function OE(t,e){return(n,r)=>{let A=Ss.getState(n);if(!A||(t?A.undone:A.done).eventCount==0)return!1;if(r){let i=kz(A,n,t);i&&r(e?i.scrollIntoView():i)}return!0}}const NE=OE(!1,!0),LE=OE(!0,!0);on.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:t=>t.length,wordCounter:t=>t.split(" ").filter(e=>e!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=t=>{const e=t?.node||this.editor.state.doc;if((t?.mode||this.options.mode)==="textSize"){const r=e.textBetween(0,e.content.size,void 0," ");return this.options.textCounter(r)}return e.nodeSize},this.storage.words=t=>{const e=t?.node||this.editor.state.doc,n=e.textBetween(0,e.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let t=!1;return[new en({key:new xn("characterCount"),appendTransaction:(e,n,r)=>{if(t)return;const A=this.options.limit;if(A==null||A===0){t=!0;return}const i=this.storage.characters({node:r.doc});if(i>A){const o=i-A,a=0,l=o;console.warn(`[CharacterCount] Initial content exceeded limit of ${A} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(a,l);return t=!0,u}t=!0},filterTransaction:(e,n)=>{const r=this.options.limit;if(!e.docChanged||r===0||r===null||r===void 0)return!0;const A=this.storage.characters({node:n.doc}),i=this.storage.characters({node:e.doc});if(i<=r||A>r&&i>r&&i<=A)return!0;if(A>r&&i>r&&i>A||!e.getMeta("paste"))return!1;const a=e.selection.$head.pos,l=i-r,u=a-l,d=a;return e.deleteRange(u,d),!(this.storage.characters({node:e.doc})>r)}})]}});var Fz=on.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[cz(this.options)]}});on.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new en({key:new xn("focus"),props:{decorations:({doc:t,selection:e})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:A}=e,i=[];if(!n||!r)return tn.create(t,[]);let o=0;this.options.mode==="deepest"&&t.descendants((l,u)=>{if(l.isText)return;if(!(A>=u&&A<=u+l.nodeSize-1))return!1;o+=1});let a=0;return t.descendants((l,u)=>{if(l.isText||!(A>=u&&A<=u+l.nodeSize-1))return!1;if(a+=1,this.options.mode==="deepest"&&o-a>0||this.options.mode==="shallowest"&&a>1)return this.options.mode==="deepest";i.push(gr.node(u,u+l.nodeSize,{class:this.options.className}))}),tn.create(t,i)}}})]}});var Qz=on.create({name:"gapCursor",addProseMirrorPlugins(){return[hz()]},extendNodeSchema(t){var e;const n={name:t.name,options:t.options,storage:t.storage};return{allowGapCursor:(e=Ot(Ge(t,"allowGapCursor",n)))!=null?e:null}}}),RE="placeholder";function Tz(t){return t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}on.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:RE,placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){const t=this.options.dataAttribute?`data-${Tz(this.options.dataAttribute)}`:`data-${RE}`;return[new en({key:new xn("placeholder"),props:{decorations:({doc:e,selection:n})=>{const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:A}=n,i=[];if(!r)return null;const o=this.editor.isEmpty;return e.descendants((a,l)=>{const u=A>=l&&A<=l+a.nodeSize,d=!a.isLeaf&&sd(a);if((u||!this.options.showOnlyCurrent)&&d){const h=[this.options.emptyNodeClass];o&&h.push(this.options.emptyEditorClass);const p=gr.node(l,l+a.nodeSize,{class:h.join(" "),[t]:typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:u}):this.options.placeholder});i.push(p)}return this.options.includeChildren}),tn.create(e,i)}}})]}}),on.create({name:"selection",addOptions(){return{className:"selection"}},addProseMirrorPlugins(){const{editor:t,options:e}=this;return[new en({key:new xn("selection"),props:{decorations(n){return n.selection.empty||t.isFocused||!t.isEditable||L1(n.selection)||t.view.dragging?null:tn.create(n.doc,[gr.inline(n.selection.from,n.selection.to,{class:e.className})])}}})]}});function HE({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||e?.type===t}var Mz=on.create({name:"trailingNode",addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){var t;const e=new xn(this.name),n=this.options.node||((t=this.editor.schema.topNodeType.contentMatch.defaultType)==null?void 0:t.name)||"paragraph",r=Object.entries(this.editor.schema.nodes).map(([,A])=>A).filter(A=>(this.options.notAfter||[]).concat(n).includes(A.name));return[new en({key:e,appendTransaction:(A,i,o)=>{const{doc:a,tr:l,schema:u}=o,d=e.getState(o),h=a.content.size,p=u.nodes[n];if(d)return l.insert(h,p.create())},state:{init:(A,i)=>{const o=i.tr.doc.lastChild;return!HE({node:o,types:r})},apply:(A,i)=>{if(!A.docChanged||A.getMeta("__uniqueIDTransaction"))return i;const o=A.doc.lastChild;return!HE({node:o,types:r})}}})]}}),Iz=on.create({name:"undoRedo",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:t,dispatch:e})=>NE(t,e),redo:()=>({state:t,dispatch:e})=>LE(t,e)}},addProseMirrorPlugins(){return[xz(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),Uz=on.create({name:"starterKit",addExtensions(){var t,e,n,r;const A=[];return this.options.bold!==!1&&A.push(mE.configure(this.options.bold)),this.options.blockquote!==!1&&A.push(EK.configure(this.options.blockquote)),this.options.bulletList!==!1&&A.push(wE.configure(this.options.bulletList)),this.options.code!==!1&&A.push(IK.configure(this.options.code)),this.options.codeBlock!==!1&&A.push(DK.configure(this.options.codeBlock)),this.options.document!==!1&&A.push(OK.configure(this.options.document)),this.options.dropcursor!==!1&&A.push(Fz.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&A.push(Qz.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&A.push(NK.configure(this.options.hardBreak)),this.options.heading!==!1&&A.push(LK.configure(this.options.heading)),this.options.undoRedo!==!1&&A.push(Iz.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&A.push(RK.configure(this.options.horizontalRule)),this.options.italic!==!1&&A.push(zK.configure(this.options.italic)),this.options.listItem!==!1&&A.push(BE.configure(this.options.listItem)),this.options.listKeymap!==!1&&A.push(SE.configure((t=this.options)==null?void 0:t.listKeymap)),this.options.link!==!1&&A.push(pE.configure((e=this.options)==null?void 0:e.link)),this.options.orderedList!==!1&&A.push(ME.configure(this.options.orderedList)),this.options.paragraph!==!1&&A.push(Az.configure(this.options.paragraph)),this.options.strike!==!1&&A.push(sz.configure(this.options.strike)),this.options.text!==!1&&A.push(az.configure(this.options.text)),this.options.underline!==!1&&A.push(lz.configure((n=this.options)==null?void 0:n.underline)),this.options.trailingNode!==!1&&A.push(Mz.configure((r=this.options)==null?void 0:r.trailingNode)),A}}),_z=Uz;function PE(t){return s.customRef((e,n)=>({get(){return e(),t},set(r){t=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}var Dz=class extends O${constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=PE(this.view.state),this.reactiveExtensionStorage=PE(this.extensionStorage),this.on("beforeTransaction",({nextState:e})=>{this.reactiveState.value=e,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){const n=super.registerPlugin(t,e);return this.reactiveState&&(this.reactiveState.value=n),n}unregisterPlugin(t){const e=super.unregisterPlugin(t);return this.reactiveState&&e&&(this.reactiveState.value=e),e}},Oz=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(t){const e=s.ref(),n=s.getCurrentInstance();return s.watchEffect(()=>{const r=t.editor;r&&r.options.element&&e.value&&s.nextTick(()=>{var A;if(!e.value||!((A=r.view.dom)!=null&&A.parentNode))return;const i=s.unref(e.value);e.value.append(...r.view.dom.parentNode.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:i}),r.createNodeViews()})}),s.onBeforeUnmount(()=>{const r=t.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:t=>{this.rootEl=t}})}});s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var t,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(t=this.$slots).default)==null?void 0:e.call(t))}});var Nz=(t={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new Dz(t)}),s.onBeforeUnmount(()=>{var n,r,A,i;const o=(r=(n=e.value)==null?void 0:n.view.dom)==null?void 0:r.parentNode,a=o?.cloneNode(!0);(A=o?.parentNode)==null||A.replaceChild(a,o),(i=e.value)==null||i.destroy()}),e};s.defineComponent({name:"MarkViewContent",props:{as:{type:String,default:"span"}},render(){return s.h(this.as,{style:{whiteSpace:"inherit"},"data-mark-view-content":""})}});const Lz={class:"rte-editor"},Rz={key:0,class:"rte-editor__controls mb-2"},Hz=["disabled"],Pz=["disabled"],$z={class:"btn-group"},Kz=["disabled"],zz=["disabled"],Wz={class:"btn-group"},Gz={class:"dropdown"},Yz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},qz={class:"dropdown-menu"},Xz={class:"dropdown"},Jz={class:"btn dropdown-toggle btn-light","data-bs-toggle":"dropdown",role:"button",type:"button"},jz={class:"dropdown-menu"},Zz={class:"btn-group"},Vz=["disabled"],e5=["disabled"],t5=s.defineComponent({__name:"rte-editor",props:{modelValue:{type:String,default:""},disabled:{type:Boolean,default:!1},iconBasePath:{type:String,default:"/rte-icons-defs.svg"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(!1),i=Nz({content:n.modelValue,onUpdate:()=>{r("update:modelValue",i.value?.getHTML())},extensions:[_z.configure({bold:!1}),QK.extend({addAttributes(){return{class:{default:null}}},parseHTML(){return[{tag:"strong"},{tag:"b"}]},renderHTML({HTMLAttributes:u}){return["strong",Jt(this.options.HTMLAttributes,u),0]}}),j$.configure({types:["heading","paragraph"]}),X$,CK.extend({addAttributes(){return{...this.parent?.(),class:{default:null},id:{default:null},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:u=>({href:u.getAttribute("href"),target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})},{tag:"a:not([href])",getAttrs:u=>({href:null,target:u.getAttribute("target"),rel:u.getAttribute("rel"),class:u.getAttribute("class"),id:u.getAttribute("id"),title:u.getAttribute("title")})}]},renderHTML({HTMLAttributes:u}){if(!u.href){const{href:d,target:h,rel:p,...m}=u;return["a",Jt(m),0]}return["a",Jt(this.options.HTMLAttributes,u),0]}}).configure({openOnClick:!1,autolink:!0,defaultProtocol:"https",protocols:["http","https"],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer"}})]});s.watch(()=>n.modelValue,(u,d)=>{if(i.value){if(i.value.getHTML()===u)return;i.value.commands.setContent(u)}});function o(){const u=i.value?.getAttributes("link").href,d=window.prompt("URL",u);if(d!==null){if(d===""){i.value?.chain().focus().extendMarkRange("link").unsetLink().run();return}try{i.value?.chain().focus().extendMarkRange("link").setLink({href:d}).run()}catch(h){alert(h.message)}}}const a=()=>{i.value?.commands.setContent(`<textarea>${i.value.getHTML()}</textarea>`),A.value=!0},l=()=>{i.value?.commands.setContent(i.value.getText()),A.value=!1};return(u,d)=>{const h=s.resolveComponent("svg-icon");return s.openBlock(),s.createElementBlock("div",Lz,[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Rz,[A.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"btn btn-sm btn-light is-active",onClick:l,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],8,Pz)):(s.openBlock(),s.createElementBlock("button",{key:0,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("code")}]),onClick:a,disabled:!s.unref(i).can().chain().focus().toggleCode().run(),title:"Toggle Source"},[s.createVNode(h,{symbol:"source","base-path":t.iconBasePath},null,8,["base-path"])],10,Hz)),s.createElementVNode("div",$z,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bold")}]),onClick:d[0]||(d[0]=p=>s.unref(i)?.chain().focus().toggleBold().run()),disabled:!s.unref(i).can().chain().focus().toggleBold().run(),title:"Toggle Bold"},[s.createVNode(h,{symbol:"bold","base-path":t.iconBasePath},null,8,["base-path"])],10,Kz),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("italic")}]),onClick:d[1]||(d[1]=p=>s.unref(i)?.chain().focus().toggleItalic().run()),disabled:!s.unref(i).can().chain().focus().toggleItalic().run(),title:"Toggle Italic"},[s.createVNode(h,{symbol:"italic","base-path":t.iconBasePath},null,8,["base-path"])],10,zz)]),s.createElementVNode("div",Wz,[s.createElementVNode("div",Gz,[s.createElementVNode("button",Yz,[s.unref(i).isActive("heading",{level:1})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:2})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:3})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive("heading",{level:4})?(s.openBlock(),s.createBlock(h,{key:3,symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:4,symbol:"headline","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",qz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:1})}]),onClick:d[2]||(d[2]=p=>s.unref(i)?.chain().focus().setHeading({level:1}).run()),title:"Set Heading 1"},[s.createVNode(h,{symbol:"h1","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:2})}]),onClick:d[3]||(d[3]=p=>s.unref(i)?.chain().focus().setHeading({level:2}).run()),title:"Set Heading 2"},[s.createVNode(h,{symbol:"h2","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:3})}]),onClick:d[4]||(d[4]=p=>s.unref(i)?.chain().focus().setHeading({level:3}).run()),title:"Set Heading 3"},[s.createVNode(h,{symbol:"h3","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("heading",{level:4})}]),onClick:d[5]||(d[5]=p=>s.unref(i)?.chain().focus().setHeading({level:4}).run()),title:"Set Heading 4"},[s.createVNode(h,{symbol:"h4","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("paragraph")}]),onClick:d[6]||(d[6]=p=>s.unref(i)?.chain().focus().setParagraph().run()),title:"Set Paragraph"},[s.createVNode(h,{symbol:"paragraph","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("bulletList")}]),onClick:d[7]||(d[7]=p=>s.unref(i)?.chain().focus().toggleBulletList().run()),title:"Toggle Bullet List"},[s.createVNode(h,{symbol:"list","base-path":t.iconBasePath},null,8,["base-path"])],2),s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("orderedList")}]),onClick:d[8]||(d[8]=p=>s.unref(i)?.chain().focus().toggleOrderedList().run()),title:"Toggle Ordered List"},[s.createVNode(h,{symbol:"ordered-list","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("div",Xz,[s.createElementVNode("button",Jz,[s.unref(i).isActive({textAlign:"center"})?(s.openBlock(),s.createBlock(h,{key:0,symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"left"})?(s.openBlock(),s.createBlock(h,{key:1,symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])):s.unref(i).isActive({textAlign:"right"})?(s.openBlock(),s.createBlock(h,{key:2,symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])):(s.openBlock(),s.createBlock(h,{key:3,symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"]))]),s.createElementVNode("ul",jz,[s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"left"})}]),onClick:d[9]||(d[9]=p=>s.unref(i)?.chain().focus().setTextAlign("left").run())},[s.createVNode(h,{symbol:"align-left","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"center"})}]),onClick:d[10]||(d[10]=p=>s.unref(i)?.chain().focus().setTextAlign("center").run())},[s.createVNode(h,{symbol:"align-center","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"right"})}]),onClick:d[11]||(d[11]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-right","base-path":t.iconBasePath},null,8,["base-path"])],2)]),s.createElementVNode("li",null,[s.createElementVNode("button",{class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive({textAlign:"pretty"})}]),onClick:d[12]||(d[12]=p=>s.unref(i)?.chain().focus().setTextAlign("right").run())},[s.createVNode(h,{symbol:"align-justify","base-path":t.iconBasePath},null,8,["base-path"])],2)])])]),s.unref(i).isActive("link")?(s.openBlock(),s.createElementBlock("button",{key:3,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:d[13]||(d[13]=p=>s.unref(i).chain().focus().unsetLink().run()),title:"Unset Link"},[s.createVNode(h,{symbol:"unlink","base-path":t.iconBasePath},null,8,["base-path"])],2)):(s.openBlock(),s.createElementBlock("button",{key:2,class:s.normalizeClass(["btn btn-sm btn-light",{"is-active":s.unref(i).isActive("link")}]),onClick:o,title:"Set Link"},[s.createVNode(h,{symbol:"link","base-path":t.iconBasePath},null,8,["base-path"])],2)),s.createElementVNode("div",Zz,[s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[14]||(d[14]=p=>s.unref(i)?.chain().focus().undo().run()),disabled:!s.unref(i).can().chain().focus().undo().run(),title:"Undo"},[s.createVNode(h,{symbol:"undo","base-path":t.iconBasePath},null,8,["base-path"])],8,Vz),s.createElementVNode("button",{class:"btn btn-sm btn-light",onClick:d[15]||(d[15]=p=>s.unref(i)?.chain().focus().redo().run()),disabled:!s.unref(i).can().chain().focus().redo().run(),title:"Redo"},[s.createVNode(h,{symbol:"redo","base-path":t.iconBasePath},null,8,["base-path"])],8,e5)])])):s.createCommentVNode("",!0),s.createVNode(s.unref(Oz),{class:"rte-editor__content",editor:s.unref(i)},null,8,["editor"])])}}}),n5={class:"input-color"},r5={class:"base-input__color-swatch"},A5=["name","id","disabled","read-only","required","aria-label"],i5=s.defineComponent({__name:"input-color",props:{modelValue:{type:[String,Number,Boolean,Date],default:""},type:{type:String,default:"text"},name:{type:String,default:()=>gt()},id:{type:String,default:()=>gt()},label:{type:String,default:""},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},maxlength:{type:Number},pattern:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>{const a=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",n5,[s.createVNode(a,{modelValue:A.value,"onUpdate:modelValue":o[1]||(o[1]=l=>A.value=l),type:t.type==="color"?"text":t.type,id:t.id,name:t.name,placeholder:t.placeholder,pattern:t.pattern,label:t.label,disabled:t.disabled,"read-only":t.readOnly,required:t.required,maxlength:t.maxlength},{"input-append":s.withCtx(l=>[s.createElementVNode("span",r5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":o[0]||(o[0]=u=>A.value=u),type:"color",name:`${t.name}-color`,id:`${t.id}-color`,disabled:t.disabled,"read-only":t.readOnly,required:t.required,class:"form-control","aria-label":t.label},null,8,A5),[[s.vModelText,A.value]])])]),_:1},8,["modelValue","type","id","name","placeholder","pattern","label","disabled","read-only","required","maxlength"])])}}}),o5={class:"color-palette"},s5=["for"],a5=s.defineComponent({__name:"color-palette",props:{modelValue:{type:[String],default:""},colors:{type:Array,default:["#000000","#FFFFFF"]},name:{type:String,default:()=>gt()},id:{type:String,default:()=>gt()},label:{type:String},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,A=s.computed({get(){return n.modelValue},set(i){r("update:modelValue",i)}});return(i,o)=>(s.openBlock(),s.createElementBlock("div",o5,[s.createVNode(xu,{modelValue:A.value,"onUpdate:modelValue":o[0]||(o[0]=a=>A.value=a),options:t.colors,name:t.name,id:t.id,label:t.label,disabled:t.disabled,required:t.required,class:"d-flex flex-wrap flex-row gap-2"},{"option-label":s.withCtx(a=>[s.createElementVNode("label",{for:`${t.id}-${a.index}`,class:"d-block rounded-circle",style:s.normalizeStyle({backgroundColor:a.option})},null,12,s5)]),_:1},8,["modelValue","options","name","id","label","disabled","required"])]))}}),l5=["id"],c5=["for","innerHTML"],u5={class:"dropdown"},d5={class:"caption"},f5=["innerHTML"],h5={class:"caption__text"},p5={class:"d-block text-truncate"},m5={class:"dropdown-menu"},g5={class:"form-check d-flex"},v5=["value","id","name","label","required","disabled"],w5=["value","id","name","label","required","disabled"],B5=["for"],y5=s.defineComponent({__name:"input-dropdown",props:{id:{type:String},name:{type:String,default:()=>`dropdown-${gt()}`},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},modelValue:{type:null},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},showSelectionCount:{type:Boolean,default:!1},toggleCaption:{type:String},placeholder:{type:String,default:""},icon:{default:"chevron-down",type:String},variant:{type:String,default:""},color:{type:String,default:""},outlined:{type:Boolean,default:!1},exactMatch:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){const{t:n}=Sl(),r=t,A=e,i=s.computed({get(){return r.multiple&&!r.modelValue?[]:r.modelValue},set(l){A("update:modelValue",l)}}),o=s.computed(()=>r.options&&r.options.map(l=>(l=typeof l=="string"?{text:l,value:l}:l,{...l,active:r.modelValue&&l.value&&(r.exactMatch?r.modelValue===l.value:r.multiple?r.modelValue.includes(l.value):r.modelValue===l.value)}))),a=s.computed(()=>{if(!r.modelValue)return r.placeholder||`${n("common.select")}`;if(r.multiple&&Array.isArray(r.modelValue)&&r.modelValue.length)return o.value.reduce((l,u)=>r.modelValue.includes(u.value)?`${l}${l?", ":""}${u.text}`:l,"");if(!r.multiple){const l=o.value.find(u=>typeof u.value=="object"&&u.value!==null?JSON.stringify(u.value)===JSON.stringify(r.modelValue):u.value===r.modelValue);return l?l.text:r.placeholder||`${n("common.select")}`}return r.placeholder||`${n("common.select")}`});return(l,u)=>{const d=s.resolveComponent("base-button");return s.openBlock(),s.createElementBlock("div",{class:"input input-dropdown",id:`${t.id||t.name}`},[s.renderSlot(l.$slots,"label",{},()=>[t.label?(s.openBlock(),s.createElementBlock("label",{key:0,for:`${t.id||t.name}--dropdown-toggle`,class:"input__label",innerHTML:`${t.label}${t.required?" *":""}`},null,8,c5)):s.createCommentVNode("",!0)]),s.createElementVNode("div",u5,[s.createVNode(d,{id:`${t.id||t.name}--dropdown-toggle`,"data-bs-toggle":"dropdown",role:"button",type:"button",title:a.value,class:"btn dropdown-toggle",color:t.color,outlined:t.outlined,disabled:t.disabled},{default:s.withCtx(()=>[s.createElementVNode("span",d5,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>[t.showSelectionCount&&t.modelValue.length?(s.openBlock(),s.createElementBlock("i",{key:0,class:"caption__count",innerHTML:t.modelValue.length},null,8,f5)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("span",h5,[s.createElementVNode("span",p5,s.toDisplayString(t.toggleCaption||a.value),1)])])]),_:1},8,["id","title","color","outlined","disabled"]),s.createElementVNode("ul",m5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,(h,p)=>(s.openBlock(),s.createElementBlock("li",{key:`${h.value}-${p}`},[s.createElementVNode("div",{class:s.normalizeClass(["dropdown-item",h.active&&"active"])},[s.createElementVNode("div",g5,[t.multiple?s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"checkbox","onUpdate:modelValue":u[0]||(u[0]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__if`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input"},null,8,v5)),[[s.vModelCheckbox,i.value]]):s.withDirectives((s.openBlock(),s.createElementBlock("input",{type:"radio","onUpdate:modelValue":u[1]||(u[1]=m=>i.value=m),value:h.value,key:`${t.name}-${h.value}-${p}__else`,id:`${t.name}-${h.value}-${p}`,name:t.name,label:h.text,required:t.required,disabled:h.selectable===!1,class:"form-check-input visually-hidden"},null,8,w5)),[[s.vModelRadio,i.value]]),s.createElementVNode("label",{class:"form-check-label flex-grow-1",onclick:"event.stopPropagation",for:`${t.name}-${h.value}-${p}`},s.toDisplayString(h.text),9,B5)])],2)]))),128))])])],8,l5)}}}),C5={key:0,class:"auto-suggest__suggestions position-relative"},b5={class:"suggestions dropdown-menu show w-100 mt-2"},E5=["onClick"],k5=["innerHTML"],S5=s.defineComponent({__name:"auto-suggest",props:{modelValue:{type:String},id:{type:String},name:{type:String},label:{type:String},error:{type:String},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Array,default:[]},color:{type:String,default:""},outlined:{type:Boolean,default:!1},selection:{type:String}},emits:["update:modelValue","update:selection"],setup(t,{emit:e}){const n=t,r=e,A=s.ref(),i=s.ref(!1),o=s.computed({get(){return n.modelValue},set(m){r("update:modelValue",m)}}),a=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return o.value?n.options.filter(v=>m.test(v)):n.options}),l=s.computed(()=>{const m=new RegExp(`(${o.value})`,"i");return a.value.map(v=>{const B=v.replace(m,"<strong>$1</strong>");return Ur(B)})});s.watch(()=>n.options,(m,v)=>{m.length&&(i.value=!0)},{deep:!0});function u(){n.options.length&&(i.value=!0)}function d(m){i.value=!1;const v=a.value[m];r("update:modelValue",v),r("update:selection",v)}const h=s.ref();function p(m){const v=m.target;i.value&&v&&!A.value.contains(v)&&(i.value=!1)}return s.onBeforeMount(()=>{h.value=document.addEventListener("click",p)}),s.onBeforeUnmount(()=>{document.removeEventListener("click",h.value)}),(m,v)=>{const B=s.resolveComponent("base-input");return s.openBlock(),s.createElementBlock("div",{class:"auto-suggest",ref_key:"container",ref:A},[s.createElementVNode("div",{class:"auto-suggest__input",onFocusCapture:u},[s.renderSlot(m.$slots,"default",{},()=>[s.createVNode(B,s.mergeProps({modelValue:o.value,"onUpdate:modelValue":v[0]||(v[0]=y=>o.value=y)},m.$props),null,16,["modelValue"])])],32),i.value&&a.value.length?(s.openBlock(),s.createElementBlock("div",C5,[s.createElementVNode("ul",b5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.value,(y,w)=>(s.openBlock(),s.createElementBlock("li",{key:y,class:"suggestions__item dropdown-item",onClick:s.withModifiers(C=>d(w),["prevent"])},[s.createElementVNode("p",{class:"text-truncate my-2",innerHTML:y},null,8,k5)],8,E5))),128))])])):s.createCommentVNode("",!0)],512)}}});var Xd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x5(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ac={exports:{}};var F5=Ac.exports,$E;function Q5(){return $E||($E=1,(function(t,e){(function(){var n,r="4.17.23",A=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",h=1,p=2,m=4,v=1,B=2,y=1,w=2,C=4,k=8,F=16,U=32,D=64,M=128,K=256,q=512,ce=30,me="...",ve=800,Be=16,te=1,V=2,Y=3,x=1/0,Q=9007199254740991,P=17976931348623157e292,T=NaN,S=4294967295,G=S-1,Ae=S>>>1,ne=[["ary",M],["bind",y],["bindKey",w],["curry",k],["curryRight",F],["flip",q],["partial",U],["partialRight",D],["rearg",K]],ee="[object Arguments]",re="[object Array]",pe="[object AsyncFunction]",de="[object Boolean]",Ce="[object Date]",W="[object DOMException]",j="[object Error]",$="[object Function]",N="[object GeneratorFunction]",R="[object Map]",J="[object Number]",z="[object Null]",le="[object Object]",E="[object Promise]",_="[object Proxy]",O="[object RegExp]",ie="[object Set]",X="[object String]",be="[object Symbol]",we="[object Undefined]",ae="[object WeakMap]",he="[object WeakSet]",xe="[object ArrayBuffer]",Pe="[object DataView]",ot="[object Float32Array]",$e="[object Float64Array]",ht="[object Int8Array]",Bt="[object Int16Array]",Et="[object Int32Array]",En="[object Uint8Array]",Yt="[object Uint8ClampedArray]",Kt="[object Uint16Array]",OA="[object Uint32Array]",pi=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,gn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tn=/&(?:amp|lt|gt|quot|#39);/g,mi=/[&<>"']/g,wr=RegExp(Tn.source),Ho=RegExp(mi.source),Us=/<%-([\s\S]+?)%>/g,nn=/<%([\s\S]+?)%>/g,NA=/<%=([\s\S]+?)%>/g,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ra=/^\w*$/,_s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Po=/[\\^$.*+?()[\]{}|]/g,Ha=RegExp(Po.source),Ds=/^\s+/,Fr=/\s/,LA=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ge=/\{\n\/\* \[wrapped with (.+)\] \*/,Ie=/,? & /,We=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,At=/[()=,{}\[\]\/\s]/,bt=/\\(\\)?/g,Pr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uA=/\w*$/,gi=/^[-+]0x[0-9a-f]+$/i,Ki=/^0b[01]+$/i,zi=/^\[object .+?Constructor\]$/,Re=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,vn="\\ud800-\\udfff",ln="\\u0300-\\u036f",ir="\\ufe20-\\ufe2f",RA="\\u20d0-\\u20ff",Wi=ln+ir+RA,Pa="\\u2700-\\u27bf",kn="a-z\\xdf-\\xf6\\xf8-\\xff",nh="\\xac\\xb1\\xd7\\xf7",rh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kj="\\u2000-\\u206f",Sj=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Dx="A-Z\\xc0-\\xd6\\xd8-\\xde",Ox="\\ufe0e\\ufe0f",Nx=nh+rh+kj+Sj,ew="['’]",xj="["+vn+"]",Lx="["+Nx+"]",Ah="["+Wi+"]",Rx="\\d+",Fj="["+Pa+"]",Hx="["+kn+"]",Px="[^"+vn+Nx+Rx+Pa+kn+Dx+"]",tw="\\ud83c[\\udffb-\\udfff]",Qj="(?:"+Ah+"|"+tw+")",$x="[^"+vn+"]",nw="(?:\\ud83c[\\udde6-\\uddff]){2}",rw="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+Dx+"]",Kx="\\u200d",zx="(?:"+Hx+"|"+Px+")",Tj="(?:"+$a+"|"+Px+")",Wx="(?:"+ew+"(?:d|ll|m|re|s|t|ve))?",Gx="(?:"+ew+"(?:D|LL|M|RE|S|T|VE))?",Yx=Qj+"?",qx="["+Ox+"]?",Mj="(?:"+Kx+"(?:"+[$x,nw,rw].join("|")+")"+qx+Yx+")*",Ij="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Uj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xx=qx+Yx+Mj,_j="(?:"+[Fj,nw,rw].join("|")+")"+Xx,Dj="(?:"+[$x+Ah+"?",Ah,nw,rw,xj].join("|")+")",Oj=RegExp(ew,"g"),Nj=RegExp(Ah,"g"),Aw=RegExp(tw+"(?="+tw+")|"+Dj+Xx,"g"),Lj=RegExp([$a+"?"+Hx+"+"+Wx+"(?="+[Lx,$a,"$"].join("|")+")",Tj+"+"+Gx+"(?="+[Lx,$a+zx,"$"].join("|")+")",$a+"?"+zx+"+"+Wx,$a+"+"+Gx,Uj,Ij,Rx,_j].join("|"),"g"),Rj=RegExp("["+Kx+vn+Wi+Ox+"]"),Hj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$j=-1,qt={};qt[ot]=qt[$e]=qt[ht]=qt[Bt]=qt[Et]=qt[En]=qt[Yt]=qt[Kt]=qt[OA]=!0,qt[ee]=qt[re]=qt[xe]=qt[de]=qt[Pe]=qt[Ce]=qt[j]=qt[$]=qt[R]=qt[J]=qt[le]=qt[O]=qt[ie]=qt[X]=qt[ae]=!1;var Wt={};Wt[ee]=Wt[re]=Wt[xe]=Wt[Pe]=Wt[de]=Wt[Ce]=Wt[ot]=Wt[$e]=Wt[ht]=Wt[Bt]=Wt[Et]=Wt[R]=Wt[J]=Wt[le]=Wt[O]=Wt[ie]=Wt[X]=Wt[be]=Wt[En]=Wt[Yt]=Wt[Kt]=Wt[OA]=!0,Wt[j]=Wt[$]=Wt[ae]=!1;var Kj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zj={"&":"&","<":"<",">":">",'"':""","'":"'"},Wj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Gj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yj=parseFloat,qj=parseInt,Jx=typeof Xd=="object"&&Xd&&Xd.Object===Object&&Xd,Xj=typeof self=="object"&&self&&self.Object===Object&&self,Xn=Jx||Xj||Function("return this")(),iw=e&&!e.nodeType&&e,Os=iw&&!0&&t&&!t.nodeType&&t,jx=Os&&Os.exports===iw,ow=jx&&Jx.process,dA=(function(){try{var ue=Os&&Os.require&&Os.require("util").types;return ue||ow&&ow.binding&&ow.binding("util")}catch{}})(),Zx=dA&&dA.isArrayBuffer,Vx=dA&&dA.isDate,eF=dA&&dA.isMap,tF=dA&&dA.isRegExp,nF=dA&&dA.isSet,rF=dA&&dA.isTypedArray;function $r(ue,Ee,ye){switch(ye.length){case 0:return ue.call(Ee);case 1:return ue.call(Ee,ye[0]);case 2:return ue.call(Ee,ye[0],ye[1]);case 3:return ue.call(Ee,ye[0],ye[1],ye[2])}return ue.apply(Ee,ye)}function Jj(ue,Ee,ye,Ne){for(var rt=-1,Tt=ue==null?0:ue.length;++rt<Tt;){var Mn=ue[rt];Ee(Ne,Mn,ye(Mn),ue)}return Ne}function fA(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne&&Ee(ue[ye],ye,ue)!==!1;);return ue}function jj(ue,Ee){for(var ye=ue==null?0:ue.length;ye--&&Ee(ue[ye],ye,ue)!==!1;);return ue}function AF(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(!Ee(ue[ye],ye,ue))return!1;return!0}function $o(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];Ee(Mn,ye,ue)&&(Tt[rt++]=Mn)}return Tt}function ih(ue,Ee){var ye=ue==null?0:ue.length;return!!ye&&Ka(ue,Ee,0)>-1}function sw(ue,Ee,ye){for(var Ne=-1,rt=ue==null?0:ue.length;++Ne<rt;)if(ye(Ee,ue[Ne]))return!0;return!1}function Zt(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length,rt=Array(Ne);++ye<Ne;)rt[ye]=Ee(ue[ye],ye,ue);return rt}function Ko(ue,Ee){for(var ye=-1,Ne=Ee.length,rt=ue.length;++ye<Ne;)ue[rt+ye]=Ee[ye];return ue}function aw(ue,Ee,ye,Ne){var rt=-1,Tt=ue==null?0:ue.length;for(Ne&&Tt&&(ye=ue[++rt]);++rt<Tt;)ye=Ee(ye,ue[rt],rt,ue);return ye}function Zj(ue,Ee,ye,Ne){var rt=ue==null?0:ue.length;for(Ne&&rt&&(ye=ue[--rt]);rt--;)ye=Ee(ye,ue[rt],rt,ue);return ye}function lw(ue,Ee){for(var ye=-1,Ne=ue==null?0:ue.length;++ye<Ne;)if(Ee(ue[ye],ye,ue))return!0;return!1}var Vj=cw("length");function e9(ue){return ue.split("")}function t9(ue){return ue.match(We)||[]}function iF(ue,Ee,ye){var Ne;return ye(ue,function(rt,Tt,Mn){if(Ee(rt,Tt,Mn))return Ne=Tt,!1}),Ne}function oh(ue,Ee,ye,Ne){for(var rt=ue.length,Tt=ye+(Ne?1:-1);Ne?Tt--:++Tt<rt;)if(Ee(ue[Tt],Tt,ue))return Tt;return-1}function Ka(ue,Ee,ye){return Ee===Ee?f9(ue,Ee,ye):oh(ue,oF,ye)}function n9(ue,Ee,ye,Ne){for(var rt=ye-1,Tt=ue.length;++rt<Tt;)if(Ne(ue[rt],Ee))return rt;return-1}function oF(ue){return ue!==ue}function sF(ue,Ee){var ye=ue==null?0:ue.length;return ye?dw(ue,Ee)/ye:T}function cw(ue){return function(Ee){return Ee==null?n:Ee[ue]}}function uw(ue){return function(Ee){return ue==null?n:ue[Ee]}}function aF(ue,Ee,ye,Ne,rt){return rt(ue,function(Tt,Mn,Pt){ye=Ne?(Ne=!1,Tt):Ee(ye,Tt,Mn,Pt)}),ye}function r9(ue,Ee){var ye=ue.length;for(ue.sort(Ee);ye--;)ue[ye]=ue[ye].value;return ue}function dw(ue,Ee){for(var ye,Ne=-1,rt=ue.length;++Ne<rt;){var Tt=Ee(ue[Ne]);Tt!==n&&(ye=ye===n?Tt:ye+Tt)}return ye}function fw(ue,Ee){for(var ye=-1,Ne=Array(ue);++ye<ue;)Ne[ye]=Ee(ye);return Ne}function A9(ue,Ee){return Zt(Ee,function(ye){return[ye,ue[ye]]})}function lF(ue){return ue&&ue.slice(0,fF(ue)+1).replace(Ds,"")}function Kr(ue){return function(Ee){return ue(Ee)}}function hw(ue,Ee){return Zt(Ee,function(ye){return ue[ye]})}function Qc(ue,Ee){return ue.has(Ee)}function cF(ue,Ee){for(var ye=-1,Ne=ue.length;++ye<Ne&&Ka(Ee,ue[ye],0)>-1;);return ye}function uF(ue,Ee){for(var ye=ue.length;ye--&&Ka(Ee,ue[ye],0)>-1;);return ye}function i9(ue,Ee){for(var ye=ue.length,Ne=0;ye--;)ue[ye]===Ee&&++Ne;return Ne}var o9=uw(Kj),s9=uw(zj);function a9(ue){return"\\"+Gj[ue]}function l9(ue,Ee){return ue==null?n:ue[Ee]}function za(ue){return Rj.test(ue)}function c9(ue){return Hj.test(ue)}function u9(ue){for(var Ee,ye=[];!(Ee=ue.next()).done;)ye.push(Ee.value);return ye}function pw(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne,rt){ye[++Ee]=[rt,Ne]}),ye}function dF(ue,Ee){return function(ye){return ue(Ee(ye))}}function zo(ue,Ee){for(var ye=-1,Ne=ue.length,rt=0,Tt=[];++ye<Ne;){var Mn=ue[ye];(Mn===Ee||Mn===d)&&(ue[ye]=d,Tt[rt++]=ye)}return Tt}function sh(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=Ne}),ye}function d9(ue){var Ee=-1,ye=Array(ue.size);return ue.forEach(function(Ne){ye[++Ee]=[Ne,Ne]}),ye}function f9(ue,Ee,ye){for(var Ne=ye-1,rt=ue.length;++Ne<rt;)if(ue[Ne]===Ee)return Ne;return-1}function h9(ue,Ee,ye){for(var Ne=ye+1;Ne--;)if(ue[Ne]===Ee)return Ne;return Ne}function Wa(ue){return za(ue)?m9(ue):Vj(ue)}function HA(ue){return za(ue)?g9(ue):e9(ue)}function fF(ue){for(var Ee=ue.length;Ee--&&Fr.test(ue.charAt(Ee)););return Ee}var p9=uw(Wj);function m9(ue){for(var Ee=Aw.lastIndex=0;Aw.test(ue);)++Ee;return Ee}function g9(ue){return ue.match(Aw)||[]}function v9(ue){return ue.match(Lj)||[]}var w9=(function ue(Ee){Ee=Ee==null?Xn:Ga.defaults(Xn.Object(),Ee,Ga.pick(Xn,Pj));var ye=Ee.Array,Ne=Ee.Date,rt=Ee.Error,Tt=Ee.Function,Mn=Ee.Math,Pt=Ee.Object,mw=Ee.RegExp,B9=Ee.String,hA=Ee.TypeError,ah=ye.prototype,y9=Tt.prototype,Ya=Pt.prototype,lh=Ee["__core-js_shared__"],ch=y9.toString,It=Ya.hasOwnProperty,C9=0,hF=(function(){var c=/[^.]+$/.exec(lh&&lh.keys&&lh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),uh=Ya.toString,b9=ch.call(Pt),E9=Xn._,k9=mw("^"+ch.call(It).replace(Po,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dh=jx?Ee.Buffer:n,Wo=Ee.Symbol,fh=Ee.Uint8Array,pF=dh?dh.allocUnsafe:n,hh=dF(Pt.getPrototypeOf,Pt),mF=Pt.create,gF=Ya.propertyIsEnumerable,ph=ah.splice,vF=Wo?Wo.isConcatSpreadable:n,Tc=Wo?Wo.iterator:n,Ns=Wo?Wo.toStringTag:n,mh=(function(){try{var c=$s(Pt,"defineProperty");return c({},"",{}),c}catch{}})(),S9=Ee.clearTimeout!==Xn.clearTimeout&&Ee.clearTimeout,x9=Ne&&Ne.now!==Xn.Date.now&&Ne.now,F9=Ee.setTimeout!==Xn.setTimeout&&Ee.setTimeout,gh=Mn.ceil,vh=Mn.floor,gw=Pt.getOwnPropertySymbols,Q9=dh?dh.isBuffer:n,wF=Ee.isFinite,T9=ah.join,M9=dF(Pt.keys,Pt),In=Mn.max,or=Mn.min,I9=Ne.now,U9=Ee.parseInt,BF=Mn.random,_9=ah.reverse,vw=$s(Ee,"DataView"),Mc=$s(Ee,"Map"),ww=$s(Ee,"Promise"),qa=$s(Ee,"Set"),Ic=$s(Ee,"WeakMap"),Uc=$s(Pt,"create"),wh=Ic&&new Ic,Xa={},D9=Ks(vw),O9=Ks(Mc),N9=Ks(ww),L9=Ks(qa),R9=Ks(Ic),Bh=Wo?Wo.prototype:n,_c=Bh?Bh.valueOf:n,yF=Bh?Bh.toString:n;function L(c){if(cn(c)&&!it(c)&&!(c instanceof yt)){if(c instanceof pA)return c;if(It.call(c,"__wrapped__"))return CQ(c)}return new pA(c)}var Ja=(function(){function c(){}return function(f){if(!rn(f))return{};if(mF)return mF(f);c.prototype=f;var g=new c;return c.prototype=n,g}})();function yh(){}function pA(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=n}L.templateSettings={escape:Us,evaluate:nn,interpolate:NA,variable:"",imports:{_:L}},L.prototype=yh.prototype,L.prototype.constructor=L,pA.prototype=Ja(yh.prototype),pA.prototype.constructor=pA;function yt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=S,this.__views__=[]}function H9(){var c=new yt(this.__wrapped__);return c.__actions__=Qr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Qr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Qr(this.__views__),c}function P9(){if(this.__filtered__){var c=new yt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function $9(){var c=this.__wrapped__.value(),f=this.__dir__,g=it(c),b=f<0,I=g?c.length:0,H=eV(0,I,this.__views__),Z=H.start,oe=H.end,fe=oe-Z,ke=b?oe:Z-1,Se=this.__iteratees__,Fe=Se.length,Ue=0,Ke=or(fe,this.__takeCount__);if(!g||!b&&I==fe&&Ke==fe)return WF(c,this.__actions__);var je=[];e:for(;fe--&&Ue<Ke;){ke+=f;for(var ct=-1,Ze=c[ke];++ct<Fe;){var mt=Se[ct],Ct=mt.iteratee,Gr=mt.type,Cr=Ct(Ze);if(Gr==V)Ze=Cr;else if(!Cr){if(Gr==te)continue e;break e}}je[Ue++]=Ze}return je}yt.prototype=Ja(yh.prototype),yt.prototype.constructor=yt;function Ls(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function K9(){this.__data__=Uc?Uc(null):{},this.size=0}function z9(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}function W9(c){var f=this.__data__;if(Uc){var g=f[c];return g===l?n:g}return It.call(f,c)?f[c]:n}function G9(c){var f=this.__data__;return Uc?f[c]!==n:It.call(f,c)}function Y9(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Uc&&f===n?l:f,this}Ls.prototype.clear=K9,Ls.prototype.delete=z9,Ls.prototype.get=W9,Ls.prototype.has=G9,Ls.prototype.set=Y9;function Gi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function q9(){this.__data__=[],this.size=0}function X9(c){var f=this.__data__,g=Ch(f,c);if(g<0)return!1;var b=f.length-1;return g==b?f.pop():ph.call(f,g,1),--this.size,!0}function J9(c){var f=this.__data__,g=Ch(f,c);return g<0?n:f[g][1]}function j9(c){return Ch(this.__data__,c)>-1}function Z9(c,f){var g=this.__data__,b=Ch(g,c);return b<0?(++this.size,g.push([c,f])):g[b][1]=f,this}Gi.prototype.clear=q9,Gi.prototype.delete=X9,Gi.prototype.get=J9,Gi.prototype.has=j9,Gi.prototype.set=Z9;function Yi(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var b=c[f];this.set(b[0],b[1])}}function V9(){this.size=0,this.__data__={hash:new Ls,map:new(Mc||Gi),string:new Ls}}function eZ(c){var f=_h(this,c).delete(c);return this.size-=f?1:0,f}function tZ(c){return _h(this,c).get(c)}function nZ(c){return _h(this,c).has(c)}function rZ(c,f){var g=_h(this,c),b=g.size;return g.set(c,f),this.size+=g.size==b?0:1,this}Yi.prototype.clear=V9,Yi.prototype.delete=eZ,Yi.prototype.get=tZ,Yi.prototype.has=nZ,Yi.prototype.set=rZ;function Rs(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new Yi;++f<g;)this.add(c[f])}function AZ(c){return this.__data__.set(c,l),this}function iZ(c){return this.__data__.has(c)}Rs.prototype.add=Rs.prototype.push=AZ,Rs.prototype.has=iZ;function PA(c){var f=this.__data__=new Gi(c);this.size=f.size}function oZ(){this.__data__=new Gi,this.size=0}function sZ(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}function aZ(c){return this.__data__.get(c)}function lZ(c){return this.__data__.has(c)}function cZ(c,f){var g=this.__data__;if(g instanceof Gi){var b=g.__data__;if(!Mc||b.length<A-1)return b.push([c,f]),this.size=++g.size,this;g=this.__data__=new Yi(b)}return g.set(c,f),this.size=g.size,this}PA.prototype.clear=oZ,PA.prototype.delete=sZ,PA.prototype.get=aZ,PA.prototype.has=lZ,PA.prototype.set=cZ;function CF(c,f){var g=it(c),b=!g&&zs(c),I=!g&&!b&&Jo(c),H=!g&&!b&&!I&&el(c),Z=g||b||I||H,oe=Z?fw(c.length,B9):[],fe=oe.length;for(var ke in c)(f||It.call(c,ke))&&!(Z&&(ke=="length"||I&&(ke=="offset"||ke=="parent")||H&&(ke=="buffer"||ke=="byteLength"||ke=="byteOffset")||ji(ke,fe)))&&oe.push(ke);return oe}function bF(c){var f=c.length;return f?c[Tw(0,f-1)]:n}function uZ(c,f){return Dh(Qr(c),Hs(f,0,c.length))}function dZ(c){return Dh(Qr(c))}function Bw(c,f,g){(g!==n&&!$A(c[f],g)||g===n&&!(f in c))&&qi(c,f,g)}function Dc(c,f,g){var b=c[f];(!(It.call(c,f)&&$A(b,g))||g===n&&!(f in c))&&qi(c,f,g)}function Ch(c,f){for(var g=c.length;g--;)if($A(c[g][0],f))return g;return-1}function fZ(c,f,g,b){return Go(c,function(I,H,Z){f(b,I,g(I),Z)}),b}function EF(c,f){return c&&wi(f,Hn(f),c)}function hZ(c,f){return c&&wi(f,Mr(f),c)}function qi(c,f,g){f=="__proto__"&&mh?mh(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}function yw(c,f){for(var g=-1,b=f.length,I=ye(b),H=c==null;++g<b;)I[g]=H?n:tB(c,f[g]);return I}function Hs(c,f,g){return c===c&&(g!==n&&(c=c<=g?c:g),f!==n&&(c=c>=f?c:f)),c}function mA(c,f,g,b,I,H){var Z,oe=f&h,fe=f&p,ke=f&m;if(g&&(Z=I?g(c,b,I,H):g(c)),Z!==n)return Z;if(!rn(c))return c;var Se=it(c);if(Se){if(Z=nV(c),!oe)return Qr(c,Z)}else{var Fe=sr(c),Ue=Fe==$||Fe==N;if(Jo(c))return qF(c,oe);if(Fe==le||Fe==ee||Ue&&!I){if(Z=fe||Ue?{}:fQ(c),!oe)return fe?WZ(c,hZ(Z,c)):zZ(c,EF(Z,c))}else{if(!Wt[Fe])return I?c:{};Z=rV(c,Fe,oe)}}H||(H=new PA);var Ke=H.get(c);if(Ke)return Ke;H.set(c,Z),$Q(c)?c.forEach(function(Ze){Z.add(mA(Ze,f,g,Ze,c,H))}):HQ(c)&&c.forEach(function(Ze,mt){Z.set(mt,mA(Ze,f,g,mt,c,H))});var je=ke?fe?Pw:Hw:fe?Mr:Hn,ct=Se?n:je(c);return fA(ct||c,function(Ze,mt){ct&&(mt=Ze,Ze=c[mt]),Dc(Z,mt,mA(Ze,f,g,mt,c,H))}),Z}function pZ(c){var f=Hn(c);return function(g){return kF(g,c,f)}}function kF(c,f,g){var b=g.length;if(c==null)return!b;for(c=Pt(c);b--;){var I=g[b],H=f[I],Z=c[I];if(Z===n&&!(I in c)||!H(Z))return!1}return!0}function SF(c,f,g){if(typeof c!="function")throw new hA(o);return $c(function(){c.apply(n,g)},f)}function Oc(c,f,g,b){var I=-1,H=ih,Z=!0,oe=c.length,fe=[],ke=f.length;if(!oe)return fe;g&&(f=Zt(f,Kr(g))),b?(H=sw,Z=!1):f.length>=A&&(H=Qc,Z=!1,f=new Rs(f));e:for(;++I<oe;){var Se=c[I],Fe=g==null?Se:g(Se);if(Se=b||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=ke;Ue--;)if(f[Ue]===Fe)continue e;fe.push(Se)}else H(f,Fe,b)||fe.push(Se)}return fe}var Go=VF(vi),xF=VF(bw,!0);function mZ(c,f){var g=!0;return Go(c,function(b,I,H){return g=!!f(b,I,H),g}),g}function bh(c,f,g){for(var b=-1,I=c.length;++b<I;){var H=c[b],Z=f(H);if(Z!=null&&(oe===n?Z===Z&&!Wr(Z):g(Z,oe)))var oe=Z,fe=H}return fe}function gZ(c,f,g,b){var I=c.length;for(g=at(g),g<0&&(g=-g>I?0:I+g),b=b===n||b>I?I:at(b),b<0&&(b+=I),b=g>b?0:zQ(b);g<b;)c[g++]=f;return c}function FF(c,f){var g=[];return Go(c,function(b,I,H){f(b,I,H)&&g.push(b)}),g}function Jn(c,f,g,b,I){var H=-1,Z=c.length;for(g||(g=iV),I||(I=[]);++H<Z;){var oe=c[H];f>0&&g(oe)?f>1?Jn(oe,f-1,g,b,I):Ko(I,oe):b||(I[I.length]=oe)}return I}var Cw=eQ(),QF=eQ(!0);function vi(c,f){return c&&Cw(c,f,Hn)}function bw(c,f){return c&&QF(c,f,Hn)}function Eh(c,f){return $o(f,function(g){return Zi(c[g])})}function Ps(c,f){f=qo(f,c);for(var g=0,b=f.length;c!=null&&g<b;)c=c[Bi(f[g++])];return g&&g==b?c:n}function TF(c,f,g){var b=f(c);return it(c)?b:Ko(b,g(c))}function Br(c){return c==null?c===n?we:z:Ns&&Ns in Pt(c)?VZ(c):dV(c)}function Ew(c,f){return c>f}function vZ(c,f){return c!=null&&It.call(c,f)}function wZ(c,f){return c!=null&&f in Pt(c)}function BZ(c,f,g){return c>=or(f,g)&&c<In(f,g)}function kw(c,f,g){for(var b=g?sw:ih,I=c[0].length,H=c.length,Z=H,oe=ye(H),fe=1/0,ke=[];Z--;){var Se=c[Z];Z&&f&&(Se=Zt(Se,Kr(f))),fe=or(Se.length,fe),oe[Z]=!g&&(f||I>=120&&Se.length>=120)?new Rs(Z&&Se):n}Se=c[0];var Fe=-1,Ue=oe[0];e:for(;++Fe<I&&ke.length<fe;){var Ke=Se[Fe],je=f?f(Ke):Ke;if(Ke=g||Ke!==0?Ke:0,!(Ue?Qc(Ue,je):b(ke,je,g))){for(Z=H;--Z;){var ct=oe[Z];if(!(ct?Qc(ct,je):b(c[Z],je,g)))continue e}Ue&&Ue.push(je),ke.push(Ke)}}return ke}function yZ(c,f,g,b){return vi(c,function(I,H,Z){f(b,g(I),H,Z)}),b}function Nc(c,f,g){f=qo(f,c),c=gQ(c,f);var b=c==null?c:c[Bi(vA(f))];return b==null?n:$r(b,c,g)}function MF(c){return cn(c)&&Br(c)==ee}function CZ(c){return cn(c)&&Br(c)==xe}function bZ(c){return cn(c)&&Br(c)==Ce}function Lc(c,f,g,b,I){return c===f?!0:c==null||f==null||!cn(c)&&!cn(f)?c!==c&&f!==f:EZ(c,f,g,b,Lc,I)}function EZ(c,f,g,b,I,H){var Z=it(c),oe=it(f),fe=Z?re:sr(c),ke=oe?re:sr(f);fe=fe==ee?le:fe,ke=ke==ee?le:ke;var Se=fe==le,Fe=ke==le,Ue=fe==ke;if(Ue&&Jo(c)){if(!Jo(f))return!1;Z=!0,Se=!1}if(Ue&&!Se)return H||(H=new PA),Z||el(c)?cQ(c,f,g,b,I,H):jZ(c,f,fe,g,b,I,H);if(!(g&v)){var Ke=Se&&It.call(c,"__wrapped__"),je=Fe&&It.call(f,"__wrapped__");if(Ke||je){var ct=Ke?c.value():c,Ze=je?f.value():f;return H||(H=new PA),I(ct,Ze,g,b,H)}}return Ue?(H||(H=new PA),ZZ(c,f,g,b,I,H)):!1}function kZ(c){return cn(c)&&sr(c)==R}function Sw(c,f,g,b){var I=g.length,H=I,Z=!b;if(c==null)return!H;for(c=Pt(c);I--;){var oe=g[I];if(Z&&oe[2]?oe[1]!==c[oe[0]]:!(oe[0]in c))return!1}for(;++I<H;){oe=g[I];var fe=oe[0],ke=c[fe],Se=oe[1];if(Z&&oe[2]){if(ke===n&&!(fe in c))return!1}else{var Fe=new PA;if(b)var Ue=b(ke,Se,fe,c,f,Fe);if(!(Ue===n?Lc(Se,ke,v|B,b,Fe):Ue))return!1}}return!0}function IF(c){if(!rn(c)||sV(c))return!1;var f=Zi(c)?k9:zi;return f.test(Ks(c))}function SZ(c){return cn(c)&&Br(c)==O}function xZ(c){return cn(c)&&sr(c)==ie}function FZ(c){return cn(c)&&Ph(c.length)&&!!qt[Br(c)]}function UF(c){return typeof c=="function"?c:c==null?Ir:typeof c=="object"?it(c)?OF(c[0],c[1]):DF(c):tT(c)}function xw(c){if(!Pc(c))return M9(c);var f=[];for(var g in Pt(c))It.call(c,g)&&g!="constructor"&&f.push(g);return f}function QZ(c){if(!rn(c))return uV(c);var f=Pc(c),g=[];for(var b in c)b=="constructor"&&(f||!It.call(c,b))||g.push(b);return g}function Fw(c,f){return c<f}function _F(c,f){var g=-1,b=Tr(c)?ye(c.length):[];return Go(c,function(I,H,Z){b[++g]=f(I,H,Z)}),b}function DF(c){var f=Kw(c);return f.length==1&&f[0][2]?pQ(f[0][0],f[0][1]):function(g){return g===c||Sw(g,c,f)}}function OF(c,f){return Ww(c)&&hQ(f)?pQ(Bi(c),f):function(g){var b=tB(g,c);return b===n&&b===f?nB(g,c):Lc(f,b,v|B)}}function kh(c,f,g,b,I){c!==f&&Cw(f,function(H,Z){if(I||(I=new PA),rn(H))TZ(c,f,Z,g,kh,b,I);else{var oe=b?b(Yw(c,Z),H,Z+"",c,f,I):n;oe===n&&(oe=H),Bw(c,Z,oe)}},Mr)}function TZ(c,f,g,b,I,H,Z){var oe=Yw(c,g),fe=Yw(f,g),ke=Z.get(fe);if(ke){Bw(c,g,ke);return}var Se=H?H(oe,fe,g+"",c,f,Z):n,Fe=Se===n;if(Fe){var Ue=it(fe),Ke=!Ue&&Jo(fe),je=!Ue&&!Ke&&el(fe);Se=fe,Ue||Ke||je?it(oe)?Se=oe:wn(oe)?Se=Qr(oe):Ke?(Fe=!1,Se=qF(fe,!0)):je?(Fe=!1,Se=XF(fe,!0)):Se=[]:Kc(fe)||zs(fe)?(Se=oe,zs(oe)?Se=WQ(oe):(!rn(oe)||Zi(oe))&&(Se=fQ(fe))):Fe=!1}Fe&&(Z.set(fe,Se),I(Se,fe,b,H,Z),Z.delete(fe)),Bw(c,g,Se)}function NF(c,f){var g=c.length;if(g)return f+=f<0?g:0,ji(f,g)?c[f]:n}function LF(c,f,g){f.length?f=Zt(f,function(H){return it(H)?function(Z){return Ps(Z,H.length===1?H[0]:H)}:H}):f=[Ir];var b=-1;f=Zt(f,Kr(Je()));var I=_F(c,function(H,Z,oe){var fe=Zt(f,function(ke){return ke(H)});return{criteria:fe,index:++b,value:H}});return r9(I,function(H,Z){return KZ(H,Z,g)})}function MZ(c,f){return RF(c,f,function(g,b){return nB(c,b)})}function RF(c,f,g){for(var b=-1,I=f.length,H={};++b<I;){var Z=f[b],oe=Ps(c,Z);g(oe,Z)&&Rc(H,qo(Z,c),oe)}return H}function IZ(c){return function(f){return Ps(f,c)}}function Qw(c,f,g,b){var I=b?n9:Ka,H=-1,Z=f.length,oe=c;for(c===f&&(f=Qr(f)),g&&(oe=Zt(c,Kr(g)));++H<Z;)for(var fe=0,ke=f[H],Se=g?g(ke):ke;(fe=I(oe,Se,fe,b))>-1;)oe!==c&&ph.call(oe,fe,1),ph.call(c,fe,1);return c}function HF(c,f){for(var g=c?f.length:0,b=g-1;g--;){var I=f[g];if(g==b||I!==H){var H=I;ji(I)?ph.call(c,I,1):Uw(c,I)}}return c}function Tw(c,f){return c+vh(BF()*(f-c+1))}function UZ(c,f,g,b){for(var I=-1,H=In(gh((f-c)/(g||1)),0),Z=ye(H);H--;)Z[b?H:++I]=c,c+=g;return Z}function Mw(c,f){var g="";if(!c||f<1||f>Q)return g;do f%2&&(g+=c),f=vh(f/2),f&&(c+=c);while(f);return g}function ut(c,f){return qw(mQ(c,f,Ir),c+"")}function _Z(c){return bF(tl(c))}function DZ(c,f){var g=tl(c);return Dh(g,Hs(f,0,g.length))}function Rc(c,f,g,b){if(!rn(c))return c;f=qo(f,c);for(var I=-1,H=f.length,Z=H-1,oe=c;oe!=null&&++I<H;){var fe=Bi(f[I]),ke=g;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return c;if(I!=Z){var Se=oe[fe];ke=b?b(Se,fe,oe):n,ke===n&&(ke=rn(Se)?Se:ji(f[I+1])?[]:{})}Dc(oe,fe,ke),oe=oe[fe]}return c}var PF=wh?function(c,f){return wh.set(c,f),c}:Ir,OZ=mh?function(c,f){return mh(c,"toString",{configurable:!0,enumerable:!1,value:AB(f),writable:!0})}:Ir;function NZ(c){return Dh(tl(c))}function gA(c,f,g){var b=-1,I=c.length;f<0&&(f=-f>I?0:I+f),g=g>I?I:g,g<0&&(g+=I),I=f>g?0:g-f>>>0,f>>>=0;for(var H=ye(I);++b<I;)H[b]=c[b+f];return H}function LZ(c,f){var g;return Go(c,function(b,I,H){return g=f(b,I,H),!g}),!!g}function Sh(c,f,g){var b=0,I=c==null?b:c.length;if(typeof f=="number"&&f===f&&I<=Ae){for(;b<I;){var H=b+I>>>1,Z=c[H];Z!==null&&!Wr(Z)&&(g?Z<=f:Z<f)?b=H+1:I=H}return I}return Iw(c,f,Ir,g)}function Iw(c,f,g,b){var I=0,H=c==null?0:c.length;if(H===0)return 0;f=g(f);for(var Z=f!==f,oe=f===null,fe=Wr(f),ke=f===n;I<H;){var Se=vh((I+H)/2),Fe=g(c[Se]),Ue=Fe!==n,Ke=Fe===null,je=Fe===Fe,ct=Wr(Fe);if(Z)var Ze=b||je;else ke?Ze=je&&(b||Ue):oe?Ze=je&&Ue&&(b||!Ke):fe?Ze=je&&Ue&&!Ke&&(b||!ct):Ke||ct?Ze=!1:Ze=b?Fe<=f:Fe<f;Ze?I=Se+1:H=Se}return or(H,G)}function $F(c,f){for(var g=-1,b=c.length,I=0,H=[];++g<b;){var Z=c[g],oe=f?f(Z):Z;if(!g||!$A(oe,fe)){var fe=oe;H[I++]=Z===0?0:Z}}return H}function KF(c){return typeof c=="number"?c:Wr(c)?T:+c}function zr(c){if(typeof c=="string")return c;if(it(c))return Zt(c,zr)+"";if(Wr(c))return yF?yF.call(c):"";var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Yo(c,f,g){var b=-1,I=ih,H=c.length,Z=!0,oe=[],fe=oe;if(g)Z=!1,I=sw;else if(H>=A){var ke=f?null:XZ(c);if(ke)return sh(ke);Z=!1,I=Qc,fe=new Rs}else fe=f?[]:oe;e:for(;++b<H;){var Se=c[b],Fe=f?f(Se):Se;if(Se=g||Se!==0?Se:0,Z&&Fe===Fe){for(var Ue=fe.length;Ue--;)if(fe[Ue]===Fe)continue e;f&&fe.push(Fe),oe.push(Se)}else I(fe,Fe,g)||(fe!==oe&&fe.push(Fe),oe.push(Se))}return oe}function Uw(c,f){f=qo(f,c);var g=-1,b=f.length;if(!b)return!0;for(var I=c==null||typeof c!="object"&&typeof c!="function";++g<b;){var H=f[g];if(typeof H=="string"){if(H==="__proto__"&&!It.call(c,"__proto__"))return!1;if(H==="constructor"&&g+1<b&&typeof f[g+1]=="string"&&f[g+1]==="prototype"){if(I&&g===0)continue;return!1}}}var Z=gQ(c,f);return Z==null||delete Z[Bi(vA(f))]}function zF(c,f,g,b){return Rc(c,f,g(Ps(c,f)),b)}function xh(c,f,g,b){for(var I=c.length,H=b?I:-1;(b?H--:++H<I)&&f(c[H],H,c););return g?gA(c,b?0:H,b?H+1:I):gA(c,b?H+1:0,b?I:H)}function WF(c,f){var g=c;return g instanceof yt&&(g=g.value()),aw(f,function(b,I){return I.func.apply(I.thisArg,Ko([b],I.args))},g)}function _w(c,f,g){var b=c.length;if(b<2)return b?Yo(c[0]):[];for(var I=-1,H=ye(b);++I<b;)for(var Z=c[I],oe=-1;++oe<b;)oe!=I&&(H[I]=Oc(H[I]||Z,c[oe],f,g));return Yo(Jn(H,1),f,g)}function GF(c,f,g){for(var b=-1,I=c.length,H=f.length,Z={};++b<I;){var oe=b<H?f[b]:n;g(Z,c[b],oe)}return Z}function Dw(c){return wn(c)?c:[]}function Ow(c){return typeof c=="function"?c:Ir}function qo(c,f){return it(c)?c:Ww(c,f)?[c]:yQ(Ut(c))}var RZ=ut;function Xo(c,f,g){var b=c.length;return g=g===n?b:g,!f&&g>=b?c:gA(c,f,g)}var YF=S9||function(c){return Xn.clearTimeout(c)};function qF(c,f){if(f)return c.slice();var g=c.length,b=pF?pF(g):new c.constructor(g);return c.copy(b),b}function Nw(c){var f=new c.constructor(c.byteLength);return new fh(f).set(new fh(c)),f}function HZ(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}function PZ(c){var f=new c.constructor(c.source,uA.exec(c));return f.lastIndex=c.lastIndex,f}function $Z(c){return _c?Pt(_c.call(c)):{}}function XF(c,f){var g=f?Nw(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}function JF(c,f){if(c!==f){var g=c!==n,b=c===null,I=c===c,H=Wr(c),Z=f!==n,oe=f===null,fe=f===f,ke=Wr(f);if(!oe&&!ke&&!H&&c>f||H&&Z&&fe&&!oe&&!ke||b&&Z&&fe||!g&&fe||!I)return 1;if(!b&&!H&&!ke&&c<f||ke&&g&&I&&!b&&!H||oe&&g&&I||!Z&&I||!fe)return-1}return 0}function KZ(c,f,g){for(var b=-1,I=c.criteria,H=f.criteria,Z=I.length,oe=g.length;++b<Z;){var fe=JF(I[b],H[b]);if(fe){if(b>=oe)return fe;var ke=g[b];return fe*(ke=="desc"?-1:1)}}return c.index-f.index}function jF(c,f,g,b){for(var I=-1,H=c.length,Z=g.length,oe=-1,fe=f.length,ke=In(H-Z,0),Se=ye(fe+ke),Fe=!b;++oe<fe;)Se[oe]=f[oe];for(;++I<Z;)(Fe||I<H)&&(Se[g[I]]=c[I]);for(;ke--;)Se[oe++]=c[I++];return Se}function ZF(c,f,g,b){for(var I=-1,H=c.length,Z=-1,oe=g.length,fe=-1,ke=f.length,Se=In(H-oe,0),Fe=ye(Se+ke),Ue=!b;++I<Se;)Fe[I]=c[I];for(var Ke=I;++fe<ke;)Fe[Ke+fe]=f[fe];for(;++Z<oe;)(Ue||I<H)&&(Fe[Ke+g[Z]]=c[I++]);return Fe}function Qr(c,f){var g=-1,b=c.length;for(f||(f=ye(b));++g<b;)f[g]=c[g];return f}function wi(c,f,g,b){var I=!g;g||(g={});for(var H=-1,Z=f.length;++H<Z;){var oe=f[H],fe=b?b(g[oe],c[oe],oe,g,c):n;fe===n&&(fe=c[oe]),I?qi(g,oe,fe):Dc(g,oe,fe)}return g}function zZ(c,f){return wi(c,zw(c),f)}function WZ(c,f){return wi(c,uQ(c),f)}function Fh(c,f){return function(g,b){var I=it(g)?Jj:fZ,H=f?f():{};return I(g,c,Je(b,2),H)}}function ja(c){return ut(function(f,g){var b=-1,I=g.length,H=I>1?g[I-1]:n,Z=I>2?g[2]:n;for(H=c.length>3&&typeof H=="function"?(I--,H):n,Z&&yr(g[0],g[1],Z)&&(H=I<3?n:H,I=1),f=Pt(f);++b<I;){var oe=g[b];oe&&c(f,oe,b,H)}return f})}function VF(c,f){return function(g,b){if(g==null)return g;if(!Tr(g))return c(g,b);for(var I=g.length,H=f?I:-1,Z=Pt(g);(f?H--:++H<I)&&b(Z[H],H,Z)!==!1;);return g}}function eQ(c){return function(f,g,b){for(var I=-1,H=Pt(f),Z=b(f),oe=Z.length;oe--;){var fe=Z[c?oe:++I];if(g(H[fe],fe,H)===!1)break}return f}}function GZ(c,f,g){var b=f&y,I=Hc(c);function H(){var Z=this&&this!==Xn&&this instanceof H?I:c;return Z.apply(b?g:this,arguments)}return H}function tQ(c){return function(f){f=Ut(f);var g=za(f)?HA(f):n,b=g?g[0]:f.charAt(0),I=g?Xo(g,1).join(""):f.slice(1);return b[c]()+I}}function Za(c){return function(f){return aw(VQ(ZQ(f).replace(Oj,"")),c,"")}}function Hc(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=Ja(c.prototype),b=c.apply(g,f);return rn(b)?b:g}}function YZ(c,f,g){var b=Hc(c);function I(){for(var H=arguments.length,Z=ye(H),oe=H,fe=Va(I);oe--;)Z[oe]=arguments[oe];var ke=H<3&&Z[0]!==fe&&Z[H-1]!==fe?[]:zo(Z,fe);if(H-=ke.length,H<g)return oQ(c,f,Qh,I.placeholder,n,Z,ke,n,n,g-H);var Se=this&&this!==Xn&&this instanceof I?b:c;return $r(Se,this,Z)}return I}function nQ(c){return function(f,g,b){var I=Pt(f);if(!Tr(f)){var H=Je(g,3);f=Hn(f),g=function(oe){return H(I[oe],oe,I)}}var Z=c(f,g,b);return Z>-1?I[H?f[Z]:Z]:n}}function rQ(c){return Ji(function(f){var g=f.length,b=g,I=pA.prototype.thru;for(c&&f.reverse();b--;){var H=f[b];if(typeof H!="function")throw new hA(o);if(I&&!Z&&Uh(H)=="wrapper")var Z=new pA([],!0)}for(b=Z?b:g;++b<g;){H=f[b];var oe=Uh(H),fe=oe=="wrapper"?$w(H):n;fe&&Gw(fe[0])&&fe[1]==(M|k|U|K)&&!fe[4].length&&fe[9]==1?Z=Z[Uh(fe[0])].apply(Z,fe[3]):Z=H.length==1&&Gw(H)?Z[oe]():Z.thru(H)}return function(){var ke=arguments,Se=ke[0];if(Z&&ke.length==1&&it(Se))return Z.plant(Se).value();for(var Fe=0,Ue=g?f[Fe].apply(this,ke):Se;++Fe<g;)Ue=f[Fe].call(this,Ue);return Ue}})}function Qh(c,f,g,b,I,H,Z,oe,fe,ke){var Se=f&M,Fe=f&y,Ue=f&w,Ke=f&(k|F),je=f&q,ct=Ue?n:Hc(c);function Ze(){for(var mt=arguments.length,Ct=ye(mt),Gr=mt;Gr--;)Ct[Gr]=arguments[Gr];if(Ke)var Cr=Va(Ze),Yr=i9(Ct,Cr);if(b&&(Ct=jF(Ct,b,I,Ke)),H&&(Ct=ZF(Ct,H,Z,Ke)),mt-=Yr,Ke&&mt<ke){var Bn=zo(Ct,Cr);return oQ(c,f,Qh,Ze.placeholder,g,Ct,Bn,oe,fe,ke-mt)}var KA=Fe?g:this,eo=Ue?KA[c]:c;return mt=Ct.length,oe?Ct=fV(Ct,oe):je&&mt>1&&Ct.reverse(),Se&&fe<mt&&(Ct.length=fe),this&&this!==Xn&&this instanceof Ze&&(eo=ct||Hc(eo)),eo.apply(KA,Ct)}return Ze}function AQ(c,f){return function(g,b){return yZ(g,c,f(b),{})}}function Th(c,f){return function(g,b){var I;if(g===n&&b===n)return f;if(g!==n&&(I=g),b!==n){if(I===n)return b;typeof g=="string"||typeof b=="string"?(g=zr(g),b=zr(b)):(g=KF(g),b=KF(b)),I=c(g,b)}return I}}function Lw(c){return Ji(function(f){return f=Zt(f,Kr(Je())),ut(function(g){var b=this;return c(f,function(I){return $r(I,b,g)})})})}function Mh(c,f){f=f===n?" ":zr(f);var g=f.length;if(g<2)return g?Mw(f,c):f;var b=Mw(f,gh(c/Wa(f)));return za(f)?Xo(HA(b),0,c).join(""):b.slice(0,c)}function qZ(c,f,g,b){var I=f&y,H=Hc(c);function Z(){for(var oe=-1,fe=arguments.length,ke=-1,Se=b.length,Fe=ye(Se+fe),Ue=this&&this!==Xn&&this instanceof Z?H:c;++ke<Se;)Fe[ke]=b[ke];for(;fe--;)Fe[ke++]=arguments[++oe];return $r(Ue,I?g:this,Fe)}return Z}function iQ(c){return function(f,g,b){return b&&typeof b!="number"&&yr(f,g,b)&&(g=b=n),f=Vi(f),g===n?(g=f,f=0):g=Vi(g),b=b===n?f<g?1:-1:Vi(b),UZ(f,g,b,c)}}function Ih(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=wA(f),g=wA(g)),c(f,g)}}function oQ(c,f,g,b,I,H,Z,oe,fe,ke){var Se=f&k,Fe=Se?Z:n,Ue=Se?n:Z,Ke=Se?H:n,je=Se?n:H;f|=Se?U:D,f&=~(Se?D:U),f&C||(f&=-4);var ct=[c,f,I,Ke,Fe,je,Ue,oe,fe,ke],Ze=g.apply(n,ct);return Gw(c)&&vQ(Ze,ct),Ze.placeholder=b,wQ(Ze,c,f)}function Rw(c){var f=Mn[c];return function(g,b){if(g=wA(g),b=b==null?0:or(at(b),292),b&&wF(g)){var I=(Ut(g)+"e").split("e"),H=f(I[0]+"e"+(+I[1]+b));return I=(Ut(H)+"e").split("e"),+(I[0]+"e"+(+I[1]-b))}return f(g)}}var XZ=qa&&1/sh(new qa([,-0]))[1]==x?function(c){return new qa(c)}:sB;function sQ(c){return function(f){var g=sr(f);return g==R?pw(f):g==ie?d9(f):A9(f,c(f))}}function Xi(c,f,g,b,I,H,Z,oe){var fe=f&w;if(!fe&&typeof c!="function")throw new hA(o);var ke=b?b.length:0;if(ke||(f&=-97,b=I=n),Z=Z===n?Z:In(at(Z),0),oe=oe===n?oe:at(oe),ke-=I?I.length:0,f&D){var Se=b,Fe=I;b=I=n}var Ue=fe?n:$w(c),Ke=[c,f,g,b,I,Se,Fe,H,Z,oe];if(Ue&&cV(Ke,Ue),c=Ke[0],f=Ke[1],g=Ke[2],b=Ke[3],I=Ke[4],oe=Ke[9]=Ke[9]===n?fe?0:c.length:In(Ke[9]-ke,0),!oe&&f&(k|F)&&(f&=-25),!f||f==y)var je=GZ(c,f,g);else f==k||f==F?je=YZ(c,f,oe):(f==U||f==(y|U))&&!I.length?je=qZ(c,f,g,b):je=Qh.apply(n,Ke);var ct=Ue?PF:vQ;return wQ(ct(je,Ke),c,f)}function aQ(c,f,g,b){return c===n||$A(c,Ya[g])&&!It.call(b,g)?f:c}function lQ(c,f,g,b,I,H){return rn(c)&&rn(f)&&(H.set(f,c),kh(c,f,n,lQ,H),H.delete(f)),c}function JZ(c){return Kc(c)?n:c}function cQ(c,f,g,b,I,H){var Z=g&v,oe=c.length,fe=f.length;if(oe!=fe&&!(Z&&fe>oe))return!1;var ke=H.get(c),Se=H.get(f);if(ke&&Se)return ke==f&&Se==c;var Fe=-1,Ue=!0,Ke=g&B?new Rs:n;for(H.set(c,f),H.set(f,c);++Fe<oe;){var je=c[Fe],ct=f[Fe];if(b)var Ze=Z?b(ct,je,Fe,f,c,H):b(je,ct,Fe,c,f,H);if(Ze!==n){if(Ze)continue;Ue=!1;break}if(Ke){if(!lw(f,function(mt,Ct){if(!Qc(Ke,Ct)&&(je===mt||I(je,mt,g,b,H)))return Ke.push(Ct)})){Ue=!1;break}}else if(!(je===ct||I(je,ct,g,b,H))){Ue=!1;break}}return H.delete(c),H.delete(f),Ue}function jZ(c,f,g,b,I,H,Z){switch(g){case Pe:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case xe:return!(c.byteLength!=f.byteLength||!H(new fh(c),new fh(f)));case de:case Ce:case J:return $A(+c,+f);case j:return c.name==f.name&&c.message==f.message;case O:case X:return c==f+"";case R:var oe=pw;case ie:var fe=b&v;if(oe||(oe=sh),c.size!=f.size&&!fe)return!1;var ke=Z.get(c);if(ke)return ke==f;b|=B,Z.set(c,f);var Se=cQ(oe(c),oe(f),b,I,H,Z);return Z.delete(c),Se;case be:if(_c)return _c.call(c)==_c.call(f)}return!1}function ZZ(c,f,g,b,I,H){var Z=g&v,oe=Hw(c),fe=oe.length,ke=Hw(f),Se=ke.length;if(fe!=Se&&!Z)return!1;for(var Fe=fe;Fe--;){var Ue=oe[Fe];if(!(Z?Ue in f:It.call(f,Ue)))return!1}var Ke=H.get(c),je=H.get(f);if(Ke&&je)return Ke==f&&je==c;var ct=!0;H.set(c,f),H.set(f,c);for(var Ze=Z;++Fe<fe;){Ue=oe[Fe];var mt=c[Ue],Ct=f[Ue];if(b)var Gr=Z?b(Ct,mt,Ue,f,c,H):b(mt,Ct,Ue,c,f,H);if(!(Gr===n?mt===Ct||I(mt,Ct,g,b,H):Gr)){ct=!1;break}Ze||(Ze=Ue=="constructor")}if(ct&&!Ze){var Cr=c.constructor,Yr=f.constructor;Cr!=Yr&&"constructor"in c&&"constructor"in f&&!(typeof Cr=="function"&&Cr instanceof Cr&&typeof Yr=="function"&&Yr instanceof Yr)&&(ct=!1)}return H.delete(c),H.delete(f),ct}function Ji(c){return qw(mQ(c,n,kQ),c+"")}function Hw(c){return TF(c,Hn,zw)}function Pw(c){return TF(c,Mr,uQ)}var $w=wh?function(c){return wh.get(c)}:sB;function Uh(c){for(var f=c.name+"",g=Xa[f],b=It.call(Xa,f)?g.length:0;b--;){var I=g[b],H=I.func;if(H==null||H==c)return I.name}return f}function Va(c){var f=It.call(L,"placeholder")?L:c;return f.placeholder}function Je(){var c=L.iteratee||iB;return c=c===iB?UF:c,arguments.length?c(arguments[0],arguments[1]):c}function _h(c,f){var g=c.__data__;return oV(f)?g[typeof f=="string"?"string":"hash"]:g.map}function Kw(c){for(var f=Hn(c),g=f.length;g--;){var b=f[g],I=c[b];f[g]=[b,I,hQ(I)]}return f}function $s(c,f){var g=l9(c,f);return IF(g)?g:n}function VZ(c){var f=It.call(c,Ns),g=c[Ns];try{c[Ns]=n;var b=!0}catch{}var I=uh.call(c);return b&&(f?c[Ns]=g:delete c[Ns]),I}var zw=gw?function(c){return c==null?[]:(c=Pt(c),$o(gw(c),function(f){return gF.call(c,f)}))}:aB,uQ=gw?function(c){for(var f=[];c;)Ko(f,zw(c)),c=hh(c);return f}:aB,sr=Br;(vw&&sr(new vw(new ArrayBuffer(1)))!=Pe||Mc&&sr(new Mc)!=R||ww&&sr(ww.resolve())!=E||qa&&sr(new qa)!=ie||Ic&&sr(new Ic)!=ae)&&(sr=function(c){var f=Br(c),g=f==le?c.constructor:n,b=g?Ks(g):"";if(b)switch(b){case D9:return Pe;case O9:return R;case N9:return E;case L9:return ie;case R9:return ae}return f});function eV(c,f,g){for(var b=-1,I=g.length;++b<I;){var H=g[b],Z=H.size;switch(H.type){case"drop":c+=Z;break;case"dropRight":f-=Z;break;case"take":f=or(f,c+Z);break;case"takeRight":c=In(c,f-Z);break}}return{start:c,end:f}}function tV(c){var f=c.match(ge);return f?f[1].split(Ie):[]}function dQ(c,f,g){f=qo(f,c);for(var b=-1,I=f.length,H=!1;++b<I;){var Z=Bi(f[b]);if(!(H=c!=null&&g(c,Z)))break;c=c[Z]}return H||++b!=I?H:(I=c==null?0:c.length,!!I&&Ph(I)&&ji(Z,I)&&(it(c)||zs(c)))}function nV(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&It.call(c,"index")&&(g.index=c.index,g.input=c.input),g}function fQ(c){return typeof c.constructor=="function"&&!Pc(c)?Ja(hh(c)):{}}function rV(c,f,g){var b=c.constructor;switch(f){case xe:return Nw(c);case de:case Ce:return new b(+c);case Pe:return HZ(c,g);case ot:case $e:case ht:case Bt:case Et:case En:case Yt:case Kt:case OA:return XF(c,g);case R:return new b;case J:case X:return new b(c);case O:return PZ(c);case ie:return new b;case be:return $Z(c)}}function AV(c,f){var g=f.length;if(!g)return c;var b=g-1;return f[b]=(g>1?"& ":"")+f[b],f=f.join(g>2?", ":" "),c.replace(LA,`{
|
|
150
150
|
/* [wrapped with `+f+`] */
|
|
151
151
|
`)}function iV(c){return it(c)||zs(c)||!!(vF&&c&&c[vF])}function ji(c,f){var g=typeof c;return f=f??Q,!!f&&(g=="number"||g!="symbol"&&se.test(c))&&c>-1&&c%1==0&&c<f}function yr(c,f,g){if(!rn(g))return!1;var b=typeof f;return(b=="number"?Tr(g)&&ji(f,g.length):b=="string"&&f in g)?$A(g[f],c):!1}function Ww(c,f){if(it(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||Wr(c)?!0:Ra.test(c)||!Fc.test(c)||f!=null&&c in Pt(f)}function oV(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}function Gw(c){var f=Uh(c),g=L[f];if(typeof g!="function"||!(f in yt.prototype))return!1;if(c===g)return!0;var b=$w(g);return!!b&&c===b[0]}function sV(c){return!!hF&&hF in c}var aV=lh?Zi:lB;function Pc(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||Ya;return c===g}function hQ(c){return c===c&&!rn(c)}function pQ(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==n||c in Pt(g))}}function lV(c){var f=Rh(c,function(b){return g.size===u&&g.clear(),b}),g=f.cache;return f}function cV(c,f){var g=c[1],b=f[1],I=g|b,H=I<(y|w|M),Z=b==M&&g==k||b==M&&g==K&&c[7].length<=f[8]||b==(M|K)&&f[7].length<=f[8]&&g==k;if(!(H||Z))return c;b&y&&(c[2]=f[2],I|=g&y?0:C);var oe=f[3];if(oe){var fe=c[3];c[3]=fe?jF(fe,oe,f[4]):oe,c[4]=fe?zo(c[3],d):f[4]}return oe=f[5],oe&&(fe=c[5],c[5]=fe?ZF(fe,oe,f[6]):oe,c[6]=fe?zo(c[5],d):f[6]),oe=f[7],oe&&(c[7]=oe),b&M&&(c[8]=c[8]==null?f[8]:or(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=I,c}function uV(c){var f=[];if(c!=null)for(var g in Pt(c))f.push(g);return f}function dV(c){return uh.call(c)}function mQ(c,f,g){return f=In(f===n?c.length-1:f,0),function(){for(var b=arguments,I=-1,H=In(b.length-f,0),Z=ye(H);++I<H;)Z[I]=b[f+I];I=-1;for(var oe=ye(f+1);++I<f;)oe[I]=b[I];return oe[f]=g(Z),$r(c,this,oe)}}function gQ(c,f){return f.length<2?c:Ps(c,gA(f,0,-1))}function fV(c,f){for(var g=c.length,b=or(f.length,g),I=Qr(c);b--;){var H=f[b];c[b]=ji(H,g)?I[H]:n}return c}function Yw(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}var vQ=BQ(PF),$c=F9||function(c,f){return Xn.setTimeout(c,f)},qw=BQ(OZ);function wQ(c,f,g){var b=f+"";return qw(c,AV(b,hV(tV(b),g)))}function BQ(c){var f=0,g=0;return function(){var b=I9(),I=Be-(b-g);if(g=b,I>0){if(++f>=ve)return arguments[0]}else f=0;return c.apply(n,arguments)}}function Dh(c,f){var g=-1,b=c.length,I=b-1;for(f=f===n?b:f;++g<f;){var H=Tw(g,I),Z=c[H];c[H]=c[g],c[g]=Z}return c.length=f,c}var yQ=lV(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(_s,function(g,b,I,H){f.push(I?H.replace(bt,"$1"):b||g)}),f});function Bi(c){if(typeof c=="string"||Wr(c))return c;var f=c+"";return f=="0"&&1/c==-x?"-0":f}function Ks(c){if(c!=null){try{return ch.call(c)}catch{}try{return c+""}catch{}}return""}function hV(c,f){return fA(ne,function(g){var b="_."+g[0];f&g[1]&&!ih(c,b)&&c.push(b)}),c.sort()}function CQ(c){if(c instanceof yt)return c.clone();var f=new pA(c.__wrapped__,c.__chain__);return f.__actions__=Qr(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}function pV(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=In(at(f),0);var b=c==null?0:c.length;if(!b||f<1)return[];for(var I=0,H=0,Z=ye(gh(b/f));I<b;)Z[H++]=gA(c,I,I+=f);return Z}function mV(c){for(var f=-1,g=c==null?0:c.length,b=0,I=[];++f<g;){var H=c[f];H&&(I[b++]=H)}return I}function gV(){var c=arguments.length;if(!c)return[];for(var f=ye(c-1),g=arguments[0],b=c;b--;)f[b-1]=arguments[b];return Ko(it(g)?Qr(g):[g],Jn(f,1))}var vV=ut(function(c,f){return wn(c)?Oc(c,Jn(f,1,wn,!0)):[]}),wV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),Je(g,2)):[]}),BV=ut(function(c,f){var g=vA(f);return wn(g)&&(g=n),wn(c)?Oc(c,Jn(f,1,wn,!0),n,g):[]});function yV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),gA(c,f<0?0:f,b)):[]}function CV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,0,f<0?0:f)):[]}function bV(c,f){return c&&c.length?xh(c,Je(f,3),!0,!0):[]}function EV(c,f){return c&&c.length?xh(c,Je(f,3),!0):[]}function kV(c,f,g,b){var I=c==null?0:c.length;return I?(g&&typeof g!="number"&&yr(c,f,g)&&(g=0,b=I),gZ(c,f,g,b)):[]}function bQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var I=g==null?0:at(g);return I<0&&(I=In(b+I,0)),oh(c,Je(f,3),I)}function EQ(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var I=b-1;return g!==n&&(I=at(g),I=g<0?In(b+I,0):or(I,b-1)),oh(c,Je(f,3),I,!0)}function kQ(c){var f=c==null?0:c.length;return f?Jn(c,1):[]}function SV(c){var f=c==null?0:c.length;return f?Jn(c,x):[]}function xV(c,f){var g=c==null?0:c.length;return g?(f=f===n?1:at(f),Jn(c,f)):[]}function FV(c){for(var f=-1,g=c==null?0:c.length,b={};++f<g;){var I=c[f];b[I[0]]=I[1]}return b}function SQ(c){return c&&c.length?c[0]:n}function QV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var I=g==null?0:at(g);return I<0&&(I=In(b+I,0)),Ka(c,f,I)}function TV(c){var f=c==null?0:c.length;return f?gA(c,0,-1):[]}var MV=ut(function(c){var f=Zt(c,Dw);return f.length&&f[0]===c[0]?kw(f):[]}),IV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f===vA(g)?f=n:g.pop(),g.length&&g[0]===c[0]?kw(g,Je(f,2)):[]}),UV=ut(function(c){var f=vA(c),g=Zt(c,Dw);return f=typeof f=="function"?f:n,f&&g.pop(),g.length&&g[0]===c[0]?kw(g,n,f):[]});function _V(c,f){return c==null?"":T9.call(c,f)}function vA(c){var f=c==null?0:c.length;return f?c[f-1]:n}function DV(c,f,g){var b=c==null?0:c.length;if(!b)return-1;var I=b;return g!==n&&(I=at(g),I=I<0?In(b+I,0):or(I,b-1)),f===f?h9(c,f,I):oh(c,oF,I,!0)}function OV(c,f){return c&&c.length?NF(c,at(f)):n}var NV=ut(xQ);function xQ(c,f){return c&&c.length&&f&&f.length?Qw(c,f):c}function LV(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,Je(g,2)):c}function RV(c,f,g){return c&&c.length&&f&&f.length?Qw(c,f,n,g):c}var HV=Ji(function(c,f){var g=c==null?0:c.length,b=yw(c,f);return HF(c,Zt(f,function(I){return ji(I,g)?+I:I}).sort(JF)),b});function PV(c,f){var g=[];if(!(c&&c.length))return g;var b=-1,I=[],H=c.length;for(f=Je(f,3);++b<H;){var Z=c[b];f(Z,b,c)&&(g.push(Z),I.push(b))}return HF(c,I),g}function Xw(c){return c==null?c:_9.call(c)}function $V(c,f,g){var b=c==null?0:c.length;return b?(g&&typeof g!="number"&&yr(c,f,g)?(f=0,g=b):(f=f==null?0:at(f),g=g===n?b:at(g)),gA(c,f,g)):[]}function KV(c,f){return Sh(c,f)}function zV(c,f,g){return Iw(c,f,Je(g,2))}function WV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f);if(b<g&&$A(c[b],f))return b}return-1}function GV(c,f){return Sh(c,f,!0)}function YV(c,f,g){return Iw(c,f,Je(g,2),!0)}function qV(c,f){var g=c==null?0:c.length;if(g){var b=Sh(c,f,!0)-1;if($A(c[b],f))return b}return-1}function XV(c){return c&&c.length?$F(c):[]}function JV(c,f){return c&&c.length?$F(c,Je(f,2)):[]}function jV(c){var f=c==null?0:c.length;return f?gA(c,1,f):[]}function ZV(c,f,g){return c&&c.length?(f=g||f===n?1:at(f),gA(c,0,f<0?0:f)):[]}function VV(c,f,g){var b=c==null?0:c.length;return b?(f=g||f===n?1:at(f),f=b-f,gA(c,f<0?0:f,b)):[]}function eee(c,f){return c&&c.length?xh(c,Je(f,3),!1,!0):[]}function tee(c,f){return c&&c.length?xh(c,Je(f,3)):[]}var nee=ut(function(c){return Yo(Jn(c,1,wn,!0))}),ree=ut(function(c){var f=vA(c);return wn(f)&&(f=n),Yo(Jn(c,1,wn,!0),Je(f,2))}),Aee=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,Yo(Jn(c,1,wn,!0),n,f)});function iee(c){return c&&c.length?Yo(c):[]}function oee(c,f){return c&&c.length?Yo(c,Je(f,2)):[]}function see(c,f){return f=typeof f=="function"?f:n,c&&c.length?Yo(c,n,f):[]}function Jw(c){if(!(c&&c.length))return[];var f=0;return c=$o(c,function(g){if(wn(g))return f=In(g.length,f),!0}),fw(f,function(g){return Zt(c,cw(g))})}function FQ(c,f){if(!(c&&c.length))return[];var g=Jw(c);return f==null?g:Zt(g,function(b){return $r(f,n,b)})}var aee=ut(function(c,f){return wn(c)?Oc(c,f):[]}),lee=ut(function(c){return _w($o(c,wn))}),cee=ut(function(c){var f=vA(c);return wn(f)&&(f=n),_w($o(c,wn),Je(f,2))}),uee=ut(function(c){var f=vA(c);return f=typeof f=="function"?f:n,_w($o(c,wn),n,f)}),dee=ut(Jw);function fee(c,f){return GF(c||[],f||[],Dc)}function hee(c,f){return GF(c||[],f||[],Rc)}var pee=ut(function(c){var f=c.length,g=f>1?c[f-1]:n;return g=typeof g=="function"?(c.pop(),g):n,FQ(c,g)});function QQ(c){var f=L(c);return f.__chain__=!0,f}function mee(c,f){return f(c),c}function Oh(c,f){return f(c)}var gee=Ji(function(c){var f=c.length,g=f?c[0]:0,b=this.__wrapped__,I=function(H){return yw(H,c)};return f>1||this.__actions__.length||!(b instanceof yt)||!ji(g)?this.thru(I):(b=b.slice(g,+g+(f?1:0)),b.__actions__.push({func:Oh,args:[I],thisArg:n}),new pA(b,this.__chain__).thru(function(H){return f&&!H.length&&H.push(n),H}))});function vee(){return QQ(this)}function wee(){return new pA(this.value(),this.__chain__)}function Bee(){this.__values__===n&&(this.__values__=KQ(this.value()));var c=this.__index__>=this.__values__.length,f=c?n:this.__values__[this.__index__++];return{done:c,value:f}}function yee(){return this}function Cee(c){for(var f,g=this;g instanceof yh;){var b=CQ(g);b.__index__=0,b.__values__=n,f?I.__wrapped__=b:f=b;var I=b;g=g.__wrapped__}return I.__wrapped__=c,f}function bee(){var c=this.__wrapped__;if(c instanceof yt){var f=c;return this.__actions__.length&&(f=new yt(this)),f=f.reverse(),f.__actions__.push({func:Oh,args:[Xw],thisArg:n}),new pA(f,this.__chain__)}return this.thru(Xw)}function Eee(){return WF(this.__wrapped__,this.__actions__)}var kee=Fh(function(c,f,g){It.call(c,g)?++c[g]:qi(c,g,1)});function See(c,f,g){var b=it(c)?AF:mZ;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}function xee(c,f){var g=it(c)?$o:FF;return g(c,Je(f,3))}var Fee=nQ(bQ),Qee=nQ(EQ);function Tee(c,f){return Jn(Nh(c,f),1)}function Mee(c,f){return Jn(Nh(c,f),x)}function Iee(c,f,g){return g=g===n?1:at(g),Jn(Nh(c,f),g)}function TQ(c,f){var g=it(c)?fA:Go;return g(c,Je(f,3))}function MQ(c,f){var g=it(c)?jj:xF;return g(c,Je(f,3))}var Uee=Fh(function(c,f,g){It.call(c,g)?c[g].push(f):qi(c,g,[f])});function _ee(c,f,g,b){c=Tr(c)?c:tl(c),g=g&&!b?at(g):0;var I=c.length;return g<0&&(g=In(I+g,0)),$h(c)?g<=I&&c.indexOf(f,g)>-1:!!I&&Ka(c,f,g)>-1}var Dee=ut(function(c,f,g){var b=-1,I=typeof f=="function",H=Tr(c)?ye(c.length):[];return Go(c,function(Z){H[++b]=I?$r(f,Z,g):Nc(Z,f,g)}),H}),Oee=Fh(function(c,f,g){qi(c,g,f)});function Nh(c,f){var g=it(c)?Zt:_F;return g(c,Je(f,3))}function Nee(c,f,g,b){return c==null?[]:(it(f)||(f=f==null?[]:[f]),g=b?n:g,it(g)||(g=g==null?[]:[g]),LF(c,f,g))}var Lee=Fh(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function Ree(c,f,g){var b=it(c)?aw:aF,I=arguments.length<3;return b(c,Je(f,4),g,I,Go)}function Hee(c,f,g){var b=it(c)?Zj:aF,I=arguments.length<3;return b(c,Je(f,4),g,I,xF)}function Pee(c,f){var g=it(c)?$o:FF;return g(c,Hh(Je(f,3)))}function $ee(c){var f=it(c)?bF:_Z;return f(c)}function Kee(c,f,g){(g?yr(c,f,g):f===n)?f=1:f=at(f);var b=it(c)?uZ:DZ;return b(c,f)}function zee(c){var f=it(c)?dZ:NZ;return f(c)}function Wee(c){if(c==null)return 0;if(Tr(c))return $h(c)?Wa(c):c.length;var f=sr(c);return f==R||f==ie?c.size:xw(c).length}function Gee(c,f,g){var b=it(c)?lw:LZ;return g&&yr(c,f,g)&&(f=n),b(c,Je(f,3))}var Yee=ut(function(c,f){if(c==null)return[];var g=f.length;return g>1&&yr(c,f[0],f[1])?f=[]:g>2&&yr(f[0],f[1],f[2])&&(f=[f[0]]),LF(c,Jn(f,1),[])}),Lh=x9||function(){return Xn.Date.now()};function qee(c,f){if(typeof f!="function")throw new hA(o);return c=at(c),function(){if(--c<1)return f.apply(this,arguments)}}function IQ(c,f,g){return f=g?n:f,f=c&&f==null?c.length:f,Xi(c,M,n,n,n,n,f)}function UQ(c,f){var g;if(typeof f!="function")throw new hA(o);return c=at(c),function(){return--c>0&&(g=f.apply(this,arguments)),c<=1&&(f=n),g}}var jw=ut(function(c,f,g){var b=y;if(g.length){var I=zo(g,Va(jw));b|=U}return Xi(c,b,f,g,I)}),_Q=ut(function(c,f,g){var b=y|w;if(g.length){var I=zo(g,Va(_Q));b|=U}return Xi(f,b,c,g,I)});function DQ(c,f,g){f=g?n:f;var b=Xi(c,k,n,n,n,n,n,f);return b.placeholder=DQ.placeholder,b}function OQ(c,f,g){f=g?n:f;var b=Xi(c,F,n,n,n,n,n,f);return b.placeholder=OQ.placeholder,b}function NQ(c,f,g){var b,I,H,Z,oe,fe,ke=0,Se=!1,Fe=!1,Ue=!0;if(typeof c!="function")throw new hA(o);f=wA(f)||0,rn(g)&&(Se=!!g.leading,Fe="maxWait"in g,H=Fe?In(wA(g.maxWait)||0,f):H,Ue="trailing"in g?!!g.trailing:Ue);function Ke(Bn){var KA=b,eo=I;return b=I=n,ke=Bn,Z=c.apply(eo,KA),Z}function je(Bn){return ke=Bn,oe=$c(mt,f),Se?Ke(Bn):Z}function ct(Bn){var KA=Bn-fe,eo=Bn-ke,nT=f-KA;return Fe?or(nT,H-eo):nT}function Ze(Bn){var KA=Bn-fe,eo=Bn-ke;return fe===n||KA>=f||KA<0||Fe&&eo>=H}function mt(){var Bn=Lh();if(Ze(Bn))return Ct(Bn);oe=$c(mt,ct(Bn))}function Ct(Bn){return oe=n,Ue&&b?Ke(Bn):(b=I=n,Z)}function Gr(){oe!==n&&YF(oe),ke=0,b=fe=I=oe=n}function Cr(){return oe===n?Z:Ct(Lh())}function Yr(){var Bn=Lh(),KA=Ze(Bn);if(b=arguments,I=this,fe=Bn,KA){if(oe===n)return je(fe);if(Fe)return YF(oe),oe=$c(mt,f),Ke(fe)}return oe===n&&(oe=$c(mt,f)),Z}return Yr.cancel=Gr,Yr.flush=Cr,Yr}var Xee=ut(function(c,f){return SF(c,1,f)}),Jee=ut(function(c,f,g){return SF(c,wA(f)||0,g)});function jee(c){return Xi(c,q)}function Rh(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new hA(o);var g=function(){var b=arguments,I=f?f.apply(this,b):b[0],H=g.cache;if(H.has(I))return H.get(I);var Z=c.apply(this,b);return g.cache=H.set(I,Z)||H,Z};return g.cache=new(Rh.Cache||Yi),g}Rh.Cache=Yi;function Hh(c){if(typeof c!="function")throw new hA(o);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}function Zee(c){return UQ(2,c)}var Vee=RZ(function(c,f){f=f.length==1&&it(f[0])?Zt(f[0],Kr(Je())):Zt(Jn(f,1),Kr(Je()));var g=f.length;return ut(function(b){for(var I=-1,H=or(b.length,g);++I<H;)b[I]=f[I].call(this,b[I]);return $r(c,this,b)})}),Zw=ut(function(c,f){var g=zo(f,Va(Zw));return Xi(c,U,n,f,g)}),LQ=ut(function(c,f){var g=zo(f,Va(LQ));return Xi(c,D,n,f,g)}),ete=Ji(function(c,f){return Xi(c,K,n,n,n,f)});function tte(c,f){if(typeof c!="function")throw new hA(o);return f=f===n?f:at(f),ut(c,f)}function nte(c,f){if(typeof c!="function")throw new hA(o);return f=f==null?0:In(at(f),0),ut(function(g){var b=g[f],I=Xo(g,0,f);return b&&Ko(I,b),$r(c,this,I)})}function rte(c,f,g){var b=!0,I=!0;if(typeof c!="function")throw new hA(o);return rn(g)&&(b="leading"in g?!!g.leading:b,I="trailing"in g?!!g.trailing:I),NQ(c,f,{leading:b,maxWait:f,trailing:I})}function Ate(c){return IQ(c,1)}function ite(c,f){return Zw(Ow(f),c)}function ote(){if(!arguments.length)return[];var c=arguments[0];return it(c)?c:[c]}function ste(c){return mA(c,m)}function ate(c,f){return f=typeof f=="function"?f:n,mA(c,m,f)}function lte(c){return mA(c,h|m)}function cte(c,f){return f=typeof f=="function"?f:n,mA(c,h|m,f)}function ute(c,f){return f==null||kF(c,f,Hn(f))}function $A(c,f){return c===f||c!==c&&f!==f}var dte=Ih(Ew),fte=Ih(function(c,f){return c>=f}),zs=MF((function(){return arguments})())?MF:function(c){return cn(c)&&It.call(c,"callee")&&!gF.call(c,"callee")},it=ye.isArray,hte=Zx?Kr(Zx):CZ;function Tr(c){return c!=null&&Ph(c.length)&&!Zi(c)}function wn(c){return cn(c)&&Tr(c)}function pte(c){return c===!0||c===!1||cn(c)&&Br(c)==de}var Jo=Q9||lB,mte=Vx?Kr(Vx):bZ;function gte(c){return cn(c)&&c.nodeType===1&&!Kc(c)}function vte(c){if(c==null)return!0;if(Tr(c)&&(it(c)||typeof c=="string"||typeof c.splice=="function"||Jo(c)||el(c)||zs(c)))return!c.length;var f=sr(c);if(f==R||f==ie)return!c.size;if(Pc(c))return!xw(c).length;for(var g in c)if(It.call(c,g))return!1;return!0}function wte(c,f){return Lc(c,f)}function Bte(c,f,g){g=typeof g=="function"?g:n;var b=g?g(c,f):n;return b===n?Lc(c,f,n,g):!!b}function Vw(c){if(!cn(c))return!1;var f=Br(c);return f==j||f==W||typeof c.message=="string"&&typeof c.name=="string"&&!Kc(c)}function yte(c){return typeof c=="number"&&wF(c)}function Zi(c){if(!rn(c))return!1;var f=Br(c);return f==$||f==N||f==pe||f==_}function RQ(c){return typeof c=="number"&&c==at(c)}function Ph(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Q}function rn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}function cn(c){return c!=null&&typeof c=="object"}var HQ=eF?Kr(eF):kZ;function Cte(c,f){return c===f||Sw(c,f,Kw(f))}function bte(c,f,g){return g=typeof g=="function"?g:n,Sw(c,f,Kw(f),g)}function Ete(c){return PQ(c)&&c!=+c}function kte(c){if(aV(c))throw new rt(i);return IF(c)}function Ste(c){return c===null}function xte(c){return c==null}function PQ(c){return typeof c=="number"||cn(c)&&Br(c)==J}function Kc(c){if(!cn(c)||Br(c)!=le)return!1;var f=hh(c);if(f===null)return!0;var g=It.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&ch.call(g)==b9}var eB=tF?Kr(tF):SZ;function Fte(c){return RQ(c)&&c>=-Q&&c<=Q}var $Q=nF?Kr(nF):xZ;function $h(c){return typeof c=="string"||!it(c)&&cn(c)&&Br(c)==X}function Wr(c){return typeof c=="symbol"||cn(c)&&Br(c)==be}var el=rF?Kr(rF):FZ;function Qte(c){return c===n}function Tte(c){return cn(c)&&sr(c)==ae}function Mte(c){return cn(c)&&Br(c)==he}var Ite=Ih(Fw),Ute=Ih(function(c,f){return c<=f});function KQ(c){if(!c)return[];if(Tr(c))return $h(c)?HA(c):Qr(c);if(Tc&&c[Tc])return u9(c[Tc]());var f=sr(c),g=f==R?pw:f==ie?sh:tl;return g(c)}function Vi(c){if(!c)return c===0?c:0;if(c=wA(c),c===x||c===-x){var f=c<0?-1:1;return f*P}return c===c?c:0}function at(c){var f=Vi(c),g=f%1;return f===f?g?f-g:f:0}function zQ(c){return c?Hs(at(c),0,S):0}function wA(c){if(typeof c=="number")return c;if(Wr(c))return T;if(rn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=rn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=lF(c);var g=Ki.test(c);return g||Re.test(c)?qj(c.slice(2),g?2:8):gi.test(c)?T:+c}function WQ(c){return wi(c,Mr(c))}function _te(c){return c?Hs(at(c),-Q,Q):c===0?c:0}function Ut(c){return c==null?"":zr(c)}var Dte=ja(function(c,f){if(Pc(f)||Tr(f)){wi(f,Hn(f),c);return}for(var g in f)It.call(f,g)&&Dc(c,g,f[g])}),GQ=ja(function(c,f){wi(f,Mr(f),c)}),Kh=ja(function(c,f,g,b){wi(f,Mr(f),c,b)}),Ote=ja(function(c,f,g,b){wi(f,Hn(f),c,b)}),Nte=Ji(yw);function Lte(c,f){var g=Ja(c);return f==null?g:EF(g,f)}var Rte=ut(function(c,f){c=Pt(c);var g=-1,b=f.length,I=b>2?f[2]:n;for(I&&yr(f[0],f[1],I)&&(b=1);++g<b;)for(var H=f[g],Z=Mr(H),oe=-1,fe=Z.length;++oe<fe;){var ke=Z[oe],Se=c[ke];(Se===n||$A(Se,Ya[ke])&&!It.call(c,ke))&&(c[ke]=H[ke])}return c}),Hte=ut(function(c){return c.push(n,lQ),$r(YQ,n,c)});function Pte(c,f){return iF(c,Je(f,3),vi)}function $te(c,f){return iF(c,Je(f,3),bw)}function Kte(c,f){return c==null?c:Cw(c,Je(f,3),Mr)}function zte(c,f){return c==null?c:QF(c,Je(f,3),Mr)}function Wte(c,f){return c&&vi(c,Je(f,3))}function Gte(c,f){return c&&bw(c,Je(f,3))}function Yte(c){return c==null?[]:Eh(c,Hn(c))}function qte(c){return c==null?[]:Eh(c,Mr(c))}function tB(c,f,g){var b=c==null?n:Ps(c,f);return b===n?g:b}function Xte(c,f){return c!=null&&dQ(c,f,vZ)}function nB(c,f){return c!=null&&dQ(c,f,wZ)}var Jte=AQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),c[f]=g},AB(Ir)),jte=AQ(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=uh.call(f)),It.call(c,f)?c[f].push(g):c[f]=[g]},Je),Zte=ut(Nc);function Hn(c){return Tr(c)?CF(c):xw(c)}function Mr(c){return Tr(c)?CF(c,!0):QZ(c)}function Vte(c,f){var g={};return f=Je(f,3),vi(c,function(b,I,H){qi(g,f(b,I,H),b)}),g}function ene(c,f){var g={};return f=Je(f,3),vi(c,function(b,I,H){qi(g,I,f(b,I,H))}),g}var tne=ja(function(c,f,g){kh(c,f,g)}),YQ=ja(function(c,f,g,b){kh(c,f,g,b)}),nne=Ji(function(c,f){var g={};if(c==null)return g;var b=!1;f=Zt(f,function(H){return H=qo(H,c),b||(b=H.length>1),H}),wi(c,Pw(c),g),b&&(g=mA(g,h|p|m,JZ));for(var I=f.length;I--;)Uw(g,f[I]);return g});function rne(c,f){return qQ(c,Hh(Je(f)))}var Ane=Ji(function(c,f){return c==null?{}:MZ(c,f)});function qQ(c,f){if(c==null)return{};var g=Zt(Pw(c),function(b){return[b]});return f=Je(f),RF(c,g,function(b,I){return f(b,I[0])})}function ine(c,f,g){f=qo(f,c);var b=-1,I=f.length;for(I||(I=1,c=n);++b<I;){var H=c==null?n:c[Bi(f[b])];H===n&&(b=I,H=g),c=Zi(H)?H.call(c):H}return c}function one(c,f,g){return c==null?c:Rc(c,f,g)}function sne(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:Rc(c,f,g,b)}var XQ=sQ(Hn),JQ=sQ(Mr);function ane(c,f,g){var b=it(c),I=b||Jo(c)||el(c);if(f=Je(f,4),g==null){var H=c&&c.constructor;I?g=b?new H:[]:rn(c)?g=Zi(H)?Ja(hh(c)):{}:g={}}return(I?fA:vi)(c,function(Z,oe,fe){return f(g,Z,oe,fe)}),g}function lne(c,f){return c==null?!0:Uw(c,f)}function cne(c,f,g){return c==null?c:zF(c,f,Ow(g))}function une(c,f,g,b){return b=typeof b=="function"?b:n,c==null?c:zF(c,f,Ow(g),b)}function tl(c){return c==null?[]:hw(c,Hn(c))}function dne(c){return c==null?[]:hw(c,Mr(c))}function fne(c,f,g){return g===n&&(g=f,f=n),g!==n&&(g=wA(g),g=g===g?g:0),f!==n&&(f=wA(f),f=f===f?f:0),Hs(wA(c),f,g)}function hne(c,f,g){return f=Vi(f),g===n?(g=f,f=0):g=Vi(g),c=wA(c),BZ(c,f,g)}function pne(c,f,g){if(g&&typeof g!="boolean"&&yr(c,f,g)&&(f=g=n),g===n&&(typeof f=="boolean"?(g=f,f=n):typeof c=="boolean"&&(g=c,c=n)),c===n&&f===n?(c=0,f=1):(c=Vi(c),f===n?(f=c,c=0):f=Vi(f)),c>f){var b=c;c=f,f=b}if(g||c%1||f%1){var I=BF();return or(c+I*(f-c+Yj("1e-"+((I+"").length-1))),f)}return Tw(c,f)}var mne=Za(function(c,f,g){return f=f.toLowerCase(),c+(g?jQ(f):f)});function jQ(c){return rB(Ut(c).toLowerCase())}function ZQ(c){return c=Ut(c),c&&c.replace(Te,o9).replace(Nj,"")}function gne(c,f,g){c=Ut(c),f=zr(f);var b=c.length;g=g===n?b:Hs(at(g),0,b);var I=g;return g-=f.length,g>=0&&c.slice(g,I)==f}function vne(c){return c=Ut(c),c&&Ho.test(c)?c.replace(mi,s9):c}function wne(c){return c=Ut(c),c&&Ha.test(c)?c.replace(Po,"\\$&"):c}var Bne=Za(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),yne=Za(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),Cne=tQ("toLowerCase");function bne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;if(!f||b>=f)return c;var I=(f-b)/2;return Mh(vh(I),g)+c+Mh(gh(I),g)}function Ene(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?c+Mh(f-b,g):c}function kne(c,f,g){c=Ut(c),f=at(f);var b=f?Wa(c):0;return f&&b<f?Mh(f-b,g)+c:c}function Sne(c,f,g){return g||f==null?f=0:f&&(f=+f),U9(Ut(c).replace(Ds,""),f||0)}function xne(c,f,g){return(g?yr(c,f,g):f===n)?f=1:f=at(f),Mw(Ut(c),f)}function Fne(){var c=arguments,f=Ut(c[0]);return c.length<3?f:f.replace(c[1],c[2])}var Qne=Za(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function Tne(c,f,g){return g&&typeof g!="number"&&yr(c,f,g)&&(f=g=n),g=g===n?S:g>>>0,g?(c=Ut(c),c&&(typeof f=="string"||f!=null&&!eB(f))&&(f=zr(f),!f&&za(c))?Xo(HA(c),0,g):c.split(f,g)):[]}var Mne=Za(function(c,f,g){return c+(g?" ":"")+rB(f)});function Ine(c,f,g){return c=Ut(c),g=g==null?0:Hs(at(g),0,c.length),f=zr(f),c.slice(g,g+f.length)==f}function Une(c,f,g){var b=L.templateSettings;g&&yr(c,f,g)&&(f=n),c=Ut(c),f=Kh({},f,b,aQ);var I=Kh({},f.imports,b.imports,aQ),H=Hn(I),Z=hw(I,H),oe,fe,ke=0,Se=f.interpolate||He,Fe="__p += '",Ue=mw((f.escape||He).source+"|"+Se.source+"|"+(Se===NA?Pr:He).source+"|"+(f.evaluate||He).source+"|$","g"),Ke="//# sourceURL="+(It.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$j+"]")+`
|
|
152
152
|
`;c.replace(Ue,function(Ze,mt,Ct,Gr,Cr,Yr){return Ct||(Ct=Gr),Fe+=c.slice(ke,Yr).replace(zt,a9),mt&&(oe=!0,Fe+=`' +
|