cft-builder 0.2.76 → 0.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cft-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-
|
|
1
|
+
import { D as s, C as o, E as a, F as d, R as i, T as u, A as B, z as l, B as m } from "./main-DQ-CSEQg.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BuilderItems,
|
|
4
4
|
o as BuilderItemsRender,
|
package/dist/cft-builder.umd.cjs
CHANGED
|
@@ -4370,7 +4370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4370
4370
|
stroke: #ffa700;
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
|
-
`,XCe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},b6=Mn.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:YCe,styles:KCe,inlineStyles:XCe}}),Fj=b.memo(b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=b6.getProps(t,r),a=b.useRef(null),s=b6.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ci(b6.css.styles,d,{name:"progressspinner"}),b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return a.current}}});var f=n({id:i.id,ref:a,style:i.style,className:dt(i.className,c("root")),role:"progressbar","aria-busy":!0},b6.getOtherProps(i),l("root")),h=n({className:c("spinner"),viewBox:"25 25 50 50",style:u("spinner")},l("spinner")),g=n({className:c("circle"),cx:"50",cy:"50",r:"20",fill:i.fill,strokeWidth:i.strokeWidth,strokeMiterlimit:"10"},l("circle"));return b.createElement("div",f,b.createElement("svg",h,b.createElement("circle",g)))}));Fj.displayName="ProgressSpinner";const RCe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Qt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const U=t;let O=0;return U===t0?O=s:U===jm?O=d:U===$m||U===g9||U===vf?O=u:U===Q0||U===Op?O=c:U===mf&&(O=l),O},h=P.useRef(),g=r!=null&&r.getPaginatedAssessmentQuestionBankList?r==null?void 0:r.getPaginatedAssessmentQuestionBankList:()=>{},v=r!=null&&r.getPaginatedAssessmentQuestionBankListFromStore?r==null?void 0:r.getPaginatedAssessmentQuestionBankListFromStore:[],m=r!=null&&r.updateQuestionBankStates?r==null?void 0:r.updateQuestionBankStates:()=>{},A=r!=null&&r.assessmentSearchFilterCourseCategoryId?r==null?void 0:r.assessmentSearchFilterCourseCategoryId:null,w=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,E=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,x=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{}),C=r!=null&&r.courseCategoryList?r==null?void 0:r.courseCategoryList:[],S=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{},_=r!=null&&r.subjectList?r==null?void 0:r.subjectList:[],I=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[F,M]=P.useState([]);P.useEffect(()=>(t===t0&&(S(),I()),()=>{}),[]);const L=P.useCallback(()=>{const U=v.map(O=>{var ge;const q=JSON.parse(O.question_meta_data),ie=JSON.parse(O.meta_data);return{label:(ge=q==null?void 0:q.questionText)==null?void 0:ge[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:et(),componentType:"question",questionText:q==null?void 0:q.questionText,questionTextImage:ie==null?void 0:ie.questionImage,answerInputType:q!=null&&q.answerInputType?q==null?void 0:q.answerInputType:"radio",answerOptions:q==null?void 0:q.answerOptions,isHidden:!1,subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,subject_id:O==null?void 0:O.subject_id,course_category_id:O==null?void 0:O.course_category_id,created_by_id:null,date_created:O==null?void 0:O.created_at},subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,uuid:et(),type:Rn,componentType:"question"}});M(U)},[v,i==null?void 0:i.type]);P.useEffect(()=>{L()},[v,L]);const V=()=>{h.current&&h.current};return P.useEffect(()=>(t===t0&&g(),()=>{}),[A,w]),o.jsx(o.Fragment,{children:o.jsxs(Za,{activeIndex:f(),scrollable:!0,children:[t===mf&&o.jsx(fr,{header:"Survey",children:vQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===Q0||t===Op)&&o.jsx(fr,{header:"Form",children:gQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===$m||t===g9||t===vf)&&o.jsx(fr,{header:"Layout",children:hK.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsx(fr,{header:"Layout",children:mQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),t===t0&&o.jsx(fr,{header:"Question bank",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12",children:fK.map((U,O)=>o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>{const ge=It.cloneDeep(q);return o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:ge},q.uuid)},"form_elements_"+ie)})},`new-quiz-${O}`))}),o.jsxs("div",{className:"col-12 ",children:[o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword"}),o.jsx(Ft,{icon:"pi pi-search",className:"p-button-info"})]}),o.jsx("div",{className:"field mt-3 w-full",children:o.jsx(ya,{id:"subject",name:"subject",optionLabel:"subject_title",value:w,placeholder:"Select a Subject",options:_,className:"w-full",onChange:U=>{m({subject_id:U==null?void 0:U.value})}})}),o.jsx("div",{className:"field",children:o.jsx(ya,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:A,placeholder:"Select a category",options:C,className:"w-full",onChange:U=>{m({course_category_id:U==null?void 0:U.value})}})})]}),E?o.jsx(Fj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:F.map((U,O)=>{var q,ie,ge,Z,Q;return o.jsx("div",{onScroll:V,ref:h,className:"col-12 ",children:o.jsx(Bd,{tags:[{severity:"success",label:U==null?void 0:U.subject_title},{severity:"info",label:U==null?void 0:U.course_category_title}],showIcon:(Q=(Z=(ge=(ie=(q=a[0])==null?void 0:q.children[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children)==null?void 0:Q.some(ce=>{var K,he,ee;return((K=ce==null?void 0:ce.questionText)==null?void 0:K[i.type])===((ee=(he=U==null?void 0:U.schema)==null?void 0:he.questionText)==null?void 0:ee[i.type])}),data:U},O)},"question_elements_"+O)})}),o.jsx(x,{})]})}),t===jm&&o.jsx(fr,{header:"Training",children:bQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsxs(fr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.builder_element_title,element:"reusable_builder_section",schema:U==null?void 0:U.reusable_template_schema,uuid:et(),type:na}},U.uuid)},"reusable_elements_"+O))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.custom_component_title,element:"custom_component",schema:JSON.parse(U==null?void 0:U.custom_component_schema),uuid:et(),type:Rn}},U.uuid)},"custom_component"+O))})]})]})})};function kj(t){return t}function GCe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var WCe=800,QCe=16,JCe=Date.now;function ZCe(t){var e=0,n=0;return function(){var r=JCe(),i=QCe-(r-n);if(n=r,i>0){if(++e>=WCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function eTe(t){return function(){return t}}var tTe=a4?function(t,e){return a4(t,"toString",{configurable:!0,enumerable:!1,value:eTe(e),writable:!0})}:kj,nTe=ZCe(tTe),Pj=Math.max;function rTe(t,e,n){return e=Pj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Pj(r.length-e,0),s=Array(a);++i<a;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),GCe(t,this,l)}}function iTe(t,e){return nTe(rTe(t,e,kj),t+"")}function aTe(t,e,n){if(!u0(n))return!1;var r=typeof e;return(r=="number"?s4(n)&&_N(e,n.length):r=="string"&&e in n)?C2(n[e],t):!1}function sTe(t){return iTe(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&aTe(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e})}var oTe="__lodash_hash_undefined__";function lTe(t){return this.__data__.set(t,oTe),this}function cTe(t){return this.__data__.has(t)}function y6(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dd;++e<n;)this.add(t[e])}y6.prototype.add=y6.prototype.push=lTe,y6.prototype.has=cTe;function uTe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function dTe(t,e){return t.has(e)}var fTe=1,hTe=2;function Mj(t,e,n,r,i,a){var s=n&fTe,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&hTe?new y6:void 0;for(a.set(t,e),a.set(e,t);++f<l;){var v=t[f],m=e[f];if(r)var A=s?r(m,v,f,e,t,a):r(v,m,f,t,e,a);if(A!==void 0){if(A)continue;h=!1;break}if(g){if(!uTe(e,function(w,E){if(!dTe(g,E)&&(v===w||i(v,w,n,r,a)))return g.push(E)})){h=!1;break}}else if(!(v===m||i(v,m,n,r,a))){h=!1;break}}return a.delete(t),a.delete(e),h}function pTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function gTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var mTe=1,vTe=2,bTe="[object Boolean]",yTe="[object Date]",ATe="[object Error]",wTe="[object Map]",STe="[object Number]",xTe="[object RegExp]",CTe="[object Set]",TTe="[object String]",ETe="[object Symbol]",ITe="[object ArrayBuffer]",_Te="[object DataView]",Lj=yu?yu.prototype:void 0,KS=Lj?Lj.valueOf:void 0;function DTe(t,e,n,r,i,a,s){switch(n){case _Te:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ITe:return!(t.byteLength!=e.byteLength||!a(new o4(t),new o4(e)));case bTe:case yTe:case STe:return C2(+t,+e);case ATe:return t.name==e.name&&t.message==e.message;case xTe:case TTe:return t==e+"";case wTe:var l=pTe;case CTe:var c=r&mTe;if(l||(l=gTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=vTe,s.set(t,e);var d=Mj(l(t),l(e),r,i,a,s);return s.delete(t),d;case ETe:if(KS)return KS.call(t)==KS.call(e)}return!1}var NTe=1,OTe=Object.prototype,FTe=OTe.hasOwnProperty;function kTe(t,e,n,r,i,a){var s=n&NTe,l=nb(t),c=l.length,u=nb(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:FTe.call(e,h)))return!1}var g=a.get(t),v=a.get(e);if(g&&v)return g==e&&v==t;var m=!0;a.set(t,e),a.set(e,t);for(var A=s;++f<c;){h=l[f];var w=t[h],E=e[h];if(r)var x=s?r(E,w,h,e,t,a):r(w,E,h,t,e,a);if(!(x===void 0?w===E||i(w,E,n,r,a):x)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var C=t.constructor,S=e.constructor;C!=S&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}var PTe=1,Bj="[object Arguments]",Vj="[object Array]",A6="[object Object]",MTe=Object.prototype,Uj=MTe.hasOwnProperty;function LTe(t,e,n,r,i,a){var s=fd(t),l=fd(e),c=s?Vj:Vc(t),u=l?Vj:Vc(e);c=c==Bj?A6:c,u=u==Bj?A6:u;var d=c==A6,f=u==A6,h=c==u;if(h&&_2(t)){if(!_2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new wu),s||Q7(t)?Mj(t,e,n,r,i,a):DTe(t,e,c,n,r,i,a);if(!(n&PTe)){var g=d&&Uj.call(t,"__wrapped__"),v=f&&Uj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new wu),i(m,A,n,r,a)}}return h?(a||(a=new wu),kTe(t,e,n,r,i,a)):!1}function qj(t,e,n,r,i){return t===e?!0:t==null||e==null||!Au(t)&&!Au(e)?t!==t&&e!==e:LTe(t,e,n,r,qj,i)}function BTe(t){return function(e,n,r){for(var i=-1,a=Object(e),s=r(e),l=s.length;l--;){var c=s[++i];if(n(a[c],c,a)===!1)break}return e}}var VTe=BTe();function XS(t,e,n){(n!==void 0&&!C2(t[e],n)||n===void 0&&!(e in t))&&X7(t,e,n)}function UTe(t){return Au(t)&&s4(t)}function RS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qTe(t){return I2(t,N2(t))}function $Te(t,e,n,r,i,a,s){var l=RS(t,n),c=RS(e,n),u=s.get(c);if(u){XS(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=fd(c),g=!h&&_2(c),v=!h&&!g&&Q7(c);d=c,h||g||v?fd(l)?d=l:UTe(l)?d=eb(l):g?(f=!1,d=BN(c,!0)):v?(f=!1,d=WN(c,!0)):d=[]:H7(c)||R7(c)?(d=l,R7(l)?d=qTe(l):(!u0(l)||Y7(l))&&(d=JN(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),XS(t,n,d)}function $j(t,e,n,r,i){t!==e&&VTe(e,function(a,s){if(i||(i=new wu),u0(a))$Te(t,e,s,n,$j,r,i);else{var l=r?r(RS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),XS(t,s,l)}},N2)}function GS(t,e){return qj(t,e)}var O0=sTe(function(t,e,n){$j(t,e,n)}),ar=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ar||{});class Hu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=ar.TYPE&ar.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ar.LEVEL|i:ar.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class op extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jj=class MC{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const i=this.query(n);if(i==null)throw new op(`Unable to create ${n} blot`);const a=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),l=new a(e,s,r);return MC.blots.set(l.domNode,l),l}find(e,n=!1){return MC.find(e,n)}query(e,n=ar.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ar.LEVEL&ar.BLOCK?r=this.types.block:e&ar.LEVEL&ar.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ar.LEVEL&r.scope&&n&ar.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new op("Invalid definition");if(r&&n.blotName==="abstract")throw new op("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};jj.blots=new WeakMap;let lp=jj;function zj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class jTe extends Hu{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){zj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(zj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const nu=jTe;function WS(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class zTe extends Hu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[WS(this.keyName)]=n,!0):!1}remove(e){e.style[WS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[WS(this.keyName)];return this.canAdd(e,n)?n:""}}const F0=zTe;class HTe{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=lp.find(this.domNode);if(e==null)return;const n=Hu.keys(this.domNode),r=nu.keys(this.domNode),i=F0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,ar.ATTRIBUTE);s instanceof Hu&&(this.attributes[s.attrName]=s)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const w6=HTe,Hj=class{constructor(e,n){this.scroll=e,this.domNode=n,lp.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new op("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),lp.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,i){const a=this.isolate(e,n);if(this.scroll.query(r,ar.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,ar.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,i)}}insertAt(e,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(e);this.parent.insertBefore(i,a||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new op(`Cannot wrap ${e}`);return r.appendChild(this),r}};Hj.blotName="abstract";let Yj=Hj;const Kj=class extends Yj{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kj.scope=ar.INLINE_BLOT;const wo=Kj;class YTe{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===e)return i;i+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(e<a||n&&e===a&&(i.next==null||i.next.length()!==0))return[i,e];e-=a,i=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[i,a]=this.find(e);let s=e-a;const l=this.iterator(i);let c=l();for(;c&&s<e+n;){const u=c.length();e>s?r(c,e-s,Math.min(n,s+u-e)):r(c,0,Math.min(u,e+n-s)),s+=u,c=l()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let i=r();for(;i;)n=e(n,i),i=r();return n}}function Xj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ar.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const Rj=class G0 extends Yj{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,G0.uiClass&&this.uiNode.classList.add(G0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new YTe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Xj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof op)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(e,n=0){const[r,i]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof G0?r.descendant(e,i):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(s,l,c)=>{(e.blotName==null&&e(s)||e.blotName!=null&&s instanceof e)&&i.push(s),s instanceof G0&&(i=i.concat(s.descendants(e,l,a))),a-=c}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ar.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof G0?n.unwrap():n.remove())})}formatAt(e,n,r,i){this.children.forEachAt(e,n,(a,s,l)=>{a.formatAt(s,l,r,i)})}insertAt(e,n,r){const[i,a]=this.children.find(e);if(i)i.insertAt(a,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,i]=this.children.find(e,n),a=[[this,e]];return r instanceof G0?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof G0&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,a,s)=>{const l=i.split(a,n);l!=null&&r.appendChild(l)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],i=[];e.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));const l=Xj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Rj.uiClass="";const ru=Rj;function KTe(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const cp=class Np extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Np.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Np||(r=r.wrap(Np.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ar.INLINE);if(r==null)return;r instanceof Hu?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ar.ATTRIBUTE)?this.isolate(e,n).format(r,i):super.formatAt(e,n,r,i)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Np&&r.prev===this&&KTe(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof Np&&this.attributes.move(r),r}};cp.allowedChildren=[cp,wo],cp.blotName="inline",cp.scope=ar.INLINE_BLOT,cp.tagName="SPAN";const QS=cp,up=class LC extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(LC.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){const r=this.scroll.query(e,ar.BLOCK);r!=null&&(r instanceof Hu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(LC.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.scroll.query(r,ar.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ar.INLINE)!=null)super.insertAt(e,n,r);else{const i=this.split(e);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};up.blotName="block",up.scope=ar.BLOCK_BLOT,up.tagName="P",up.allowedChildren=[QS,up,wo];const sm=up,JS=class extends ru{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,i){super.formatAt(e,n,r,i),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};JS.blotName="container",JS.scope=ar.BLOCK_BLOT;const S6=JS;class XTe extends wo{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,i){e===0&&n===this.length()?this.format(r,i):super.formatAt(e,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ql=XTe,RTe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},GTe=100,dp=class extends ru{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,RTe),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ar.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,i){this.update(),super.formatAt(e,n,r,i)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const a=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&a(c.parent))},s=c=>{r.has(c.domNode)&&(c instanceof ru&&c.children.forEach(s),r.delete(c.domNode),c.optimize(n))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=GTe)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(a(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof ru&&h.children.forEach(g=>{a(g,!1)})})):u.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)e.push(i.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};dp.blotName="scroll",dp.defaultChild=sm,dp.allowedChildren=[sm,S6],dp.scope=ar.BLOCK_BLOT,dp.tagName="DIV";const ZS=dp,ex=class VY extends wo{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof VY&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ex.blotName="text",ex.scope=ar.INLINE_BLOT;const x6=ex,Gj=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Hu,AttributorStore:w6,BlockBlot:sm,ClassAttributor:nu,ContainerBlot:S6,EmbedBlot:ql,InlineBlot:QS,LeafBlot:wo,ParentBlot:ru,Registry:lp,Scope:ar,ScrollBlot:ZS,StyleAttributor:F0,TextBlot:x6},Symbol.toStringTag,{value:"Module"}));var tx={exports:{}},$l=-1,Ko=1,Es=0;function om(t,e,n,r,i){if(t===e)return t?[[Es,t]]:[];if(n!=null){var a=iEe(t,e,n);if(a)return a}var s=nx(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=C6(t,e);var c=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var u=WTe(t,e);return l&&u.unshift([Es,l]),c&&u.push([Es,c]),rx(u,i),r&&ZTe(u),u}function WTe(t,e){var n;if(!t)return[[Ko,e]];if(!e)return[[$l,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(a!==-1)return n=[[Ko,r.substring(0,a)],[Es,i],[Ko,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=$l),n;if(i.length===1)return[[$l,t],[Ko,e]];var s=JTe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=om(l,u),g=om(c,d);return h.concat([[Es,f]],g)}return QTe(t,e)}function QTe(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,l=new Array(s),c=new Array(s),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[a+1]=0,c[a+1]=0;for(var d=n-r,f=d%2!==0,h=0,g=0,v=0,m=0,A=0;A<i;A++){for(var w=-A+h;w<=A-g;w+=2){var E=a+w,x;w===-A||w!==A&&l[E-1]<l[E+1]?x=l[E+1]:x=l[E-1]+1;for(var C=x-w;x<n&&C<r&&t.charAt(x)===e.charAt(C);)x++,C++;if(l[E]=x,x>n)g+=2;else if(C>r)h+=2;else if(f){var S=a+d-w;if(S>=0&&S<s&&c[S]!==-1){var _=n-c[S];if(x>=_)return Wj(t,e,x,C)}}}for(var I=-A+v;I<=A-m;I+=2){var S=a+I,_;I===-A||I!==A&&c[S-1]<c[S+1]?_=c[S+1]:_=c[S-1]+1;for(var F=_-I;_<n&&F<r&&t.charAt(n-_-1)===e.charAt(r-F-1);)_++,F++;if(c[S]=_,_>n)m+=2;else if(F>r)v+=2;else if(!f){var E=a+d-I;if(E>=0&&E<s&&l[E]!==-1){var x=l[E],C=a+x-E;if(_=n-_,x>=_)return Wj(t,e,x,C)}}}}return[[$l,t],[Ko,e]]}function Wj(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=om(i,a),u=om(s,l);return c.concat(u)}function nx(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return tz(t.charCodeAt(i-1))&&i--,i}function Qj(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var a=0,s=1;;){var l=t.substring(i-s),c=e.indexOf(l);if(c==-1)return a;s+=c,(c==0||t.substring(i-s)==e.substring(0,s))&&(a=s,s++)}}function C6(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return nz(t.charCodeAt(t.length-i))&&i--,i}function JTe(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(g,v,m){for(var A=g.substring(m,m+Math.floor(g.length/4)),w=-1,E="",x,C,S,_;(w=v.indexOf(A,w+1))!==-1;){var I=nx(g.substring(m),v.substring(w)),F=C6(g.substring(0,m),v.substring(0,w));E.length<F+I&&(E=v.substring(w-F,w)+v.substring(w,w+I),x=g.substring(0,m-F),C=g.substring(m+I),S=v.substring(0,w-F),_=v.substring(w+I))}return E.length*2>=g.length?[x,C,S,_,E]:null}var a=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,u,d,f;t.length>e.length?(c=l[0],u=l[1],d=l[2],f=l[3]):(d=l[0],f=l[1],c=l[2],u=l[3]);var h=l[4];return[c,u,d,f,h]}function ZTe(t){for(var e=!1,n=[],r=0,i=null,a=0,s=0,l=0,c=0,u=0;a<t.length;)t[a][0]==Es?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==Ko?c+=t[a][1].length:u+=t[a][1].length,i&&i.length<=Math.max(s,l)&&i.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[$l,i]),t[n[r-1]+1][0]=Ko,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&rx(t),nEe(t),a=1;a<t.length;){if(t[a-1][0]==$l&&t[a][0]==Ko){var d=t[a-1][1],f=t[a][1],h=Qj(d,f),g=Qj(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Es,f.substring(0,h)]),t[a-1][1]=d.substring(0,d.length-h),t[a+1][1]=f.substring(h),a++):(g>=d.length/2||g>=f.length/2)&&(t.splice(a,0,[Es,d.substring(0,g)]),t[a-1][0]=Ko,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=$l,t[a+1][1]=d.substring(g),a++),a++}a++}}var Jj=/[^a-zA-Z0-9]/,Zj=/\s/,ez=/[\r\n]/,eEe=/\n\r?\n$/,tEe=/^\r?\n\r?\n/;function nEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),w=m.match(Jj),E=A.match(Jj),x=w&&m.match(Zj),C=E&&A.match(Zj),S=x&&m.match(ez),_=C&&A.match(ez),I=S&&g.match(eEe),F=_&&v.match(tEe);return I||F?5:S||_?4:w&&!x&&C?3:x||C?2:w||E?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Es&&t[n+1][0]==Es){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=C6(r,i);if(s){var l=i.substring(i.length-s);r=r.substring(0,r.length-s),i=l+i.substring(0,i.length-s),a=l+a}for(var c=r,u=i,d=a,f=e(r,i)+e(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=e(r,i)+e(i,a);h>=f&&(f=h,c=r,u=i,d=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=u,d?t[n+1][1]=d:(t.splice(n+1,1),n--))}n++}}function rx(t,e){t.push([Es,""]);for(var n=0,r=0,i=0,a="",s="",l;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case Ko:i++,s+=t[n][1],n++;break;case $l:r++,a+=t[n][1],n++;break;case Es:var c=n-i-r-1;if(e){if(c>=0&&iz(t[c][1])){var u=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),a=u+a,s=u+s,!t[c][1]){t.splice(c,1),n--;var d=c-1;t[d]&&t[d][0]===Ko&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===$l&&(r++,a=t[d][1]+a,d--),c=d}}if(rz(t[n][1])){var u=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),a+=u,s+=u}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=nx(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Es,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=C6(s,a),l!==0&&(t[n][1]=s.substring(s.length-l)+t[n][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=i+r;a.length===0&&s.length===0?(t.splice(n-f,f),n=n-f):a.length===0?(t.splice(n-f,f,[Ko,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[$l,a]),n=n-f+1):(t.splice(n-f,f,[$l,a],[Ko,s]),n=n-f+2)}n!==0&&t[n-1][0]===Es?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,a="",s="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===Es&&t[n+1][0]===Es&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&rx(t,e)}function tz(t){return t>=55296&&t<=56319}function nz(t){return t>=56320&&t<=57343}function rz(t){return nz(t.charCodeAt(0))}function iz(t){return tz(t.charCodeAt(t.length-1))}function rEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function ix(t,e,n,r){return iz(t)||rz(r)?null:rEe([[Es,t],[$l,e],[Ko,n],[Es,r]])}function iEe(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,a=t.length,s=e.length;if(r.length===0&&(i===null||i.length===0)){var l=r.index,c=t.slice(0,l),u=t.slice(l),d=i?i.index:null;e:{var f=l+s-a;if(d!==null&&d!==f||f<0||f>s)break e;var h=e.slice(0,f),g=e.slice(f);if(g!==u)break e;var v=Math.min(l,f),m=c.slice(0,v),A=h.slice(0,v);if(m!==A)break e;var w=c.slice(v),E=h.slice(v);return ix(m,w,E,u)}e:{if(d!==null&&d!==l)break e;var x=l,h=e.slice(0,x),g=e.slice(x);if(h!==c)break e;var C=Math.min(a-x,s-x),S=u.slice(u.length-C),_=g.slice(g.length-C);if(S!==_)break e;var w=u.slice(0,u.length-C),E=g.slice(0,g.length-C);return ix(c,w,E,S)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),S=t.slice(r.index+r.length),v=m.length,C=S.length;if(s<v+C)break e;var A=e.slice(0,v),_=e.slice(s-C);if(m!==A||S!==_)break e;var w=t.slice(v,a-C),E=e.slice(v,s-C);return ix(m,w,E,S)}return null}function T6(t,e,n,r){return om(t,e,n,r,!0)}T6.INSERT=Ko,T6.DELETE=$l,T6.EQUAL=Es;var aEe=T6,E6={exports:{}};E6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",m="[object Promise]",A="[object RegExp]",w="[object Set]",E="[object String]",x="[object Symbol]",C="[object WeakMap]",S="[object ArrayBuffer]",_="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",U="[object Uint8Array]",O="[object Uint8ClampedArray]",q="[object Uint16Array]",ie="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Z=/\w*$/,Q=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,K={};K[a]=K[s]=K[S]=K[_]=K[l]=K[c]=K[I]=K[F]=K[M]=K[L]=K[V]=K[h]=K[g]=K[v]=K[A]=K[w]=K[E]=K[x]=K[U]=K[O]=K[q]=K[ie]=!0,K[u]=K[d]=K[C]=!1;var he=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ee=typeof self=="object"&&self&&self.Object===Object&&self,te=he||ee||Function("return this")(),Y=e&&!e.nodeType&&e,R=Y&&!0&&t&&!t.nodeType&&t,fe=R&&R.exports===Y;function be(J,Pe){return J.set(Pe[0],Pe[1]),J}function Te(J,Pe){return J.add(Pe),J}function ye(J,Pe){for(var nt=-1,Yt=J?J.length:0;++nt<Yt&&Pe(J[nt],nt,J)!==!1;);return J}function Ae(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function ne(J,Pe,nt,Yt){for(var wr=-1,tr=J?J.length:0;++wr<tr;)nt=Pe(nt,J[wr],wr,J);return nt}function $(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function re(J,Pe){return J==null?void 0:J[Pe]}function W(J){var Pe=!1;if(J!=null&&typeof J.toString!="function")try{Pe=!!(J+"")}catch{}return Pe}function de(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function Ie(J,Pe){return function(nt){return J(Pe(nt))}}function Ee(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ve=Array.prototype,me=Function.prototype,Se=Object.prototype,De=te["__core-js_shared__"],j=function(){var J=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),oe=me.toString,pe=Se.hasOwnProperty,ue=Se.toString,le=RegExp("^"+oe.call(pe).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=fe?te.Buffer:void 0,Oe=te.Symbol,Ne=te.Uint8Array,Ke=Ie(Object.getPrototypeOf,Object),ut=Object.create,pt=Se.propertyIsEnumerable,ft=ve.splice,kt=Object.getOwnPropertySymbols,Sn=se?se.isBuffer:void 0,Vt=Ie(Object.keys,Object),Nt=xi(te,"DataView"),$e=xi(te,"Map"),yt=xi(te,"Promise"),qt=xi(te,"Set"),dn=xi(te,"WeakMap"),mn=xi(Object,"create"),En=Vi(Nt),Vn=Vi($e),hn=Vi(yt),Jt=Vi(qt),Xe=Vi(dn),tt=Oe?Oe.prototype:void 0,ht=tt?tt.valueOf:void 0;function jt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function yn(){this.__data__=mn?mn(null):{}}function qn(J){return this.has(J)&&delete this.__data__[J]}function Gn(J){var Pe=this.__data__;if(mn){var nt=Pe[J];return nt===r?void 0:nt}return pe.call(Pe,J)?Pe[J]:void 0}function ir(J){var Pe=this.__data__;return mn?Pe[J]!==void 0:pe.call(Pe,J)}function Jn(J,Pe){var nt=this.__data__;return nt[J]=mn&&Pe===void 0?r:Pe,this}jt.prototype.clear=yn,jt.prototype.delete=qn,jt.prototype.get=Gn,jt.prototype.has=ir,jt.prototype.set=Jn;function mr(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=[]}function An(J){var Pe=this.__data__,nt=Me(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():ft.call(Pe,nt,1),!0}function it(J){var Pe=this.__data__,nt=Me(Pe,J);return nt<0?void 0:Pe[nt][1]}function ct(J){return Me(this.__data__,J)>-1}function At(J,Pe){var nt=this.__data__,Yt=Me(nt,J);return Yt<0?nt.push([J,Pe]):nt[Yt][1]=Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__={hash:new jt,map:new($e||mr),string:new jt}}function mt(J){return $i(this,J).delete(J)}function ot(J){return $i(this,J).get(J)}function Ve(J){return $i(this,J).has(J)}function rt(J,Pe){return $i(this,J).set(J,Pe),this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){this.__data__=new mr(J)}function zt(){this.__data__=new mr}function bt(J){return this.__data__.delete(J)}function Ue(J){return this.__data__.get(J)}function Qe(J){return this.__data__.has(J)}function Dt(J,Pe){var nt=this.__data__;if(nt instanceof mr){var Yt=nt.__data__;if(!$e||Yt.length<n-1)return Yt.push([J,Pe]),this;nt=this.__data__=new Mt(Yt)}return nt.set(J,Pe),this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J,Pe){var nt=xt(J)||He(J)?$(J.length,String):[],Yt=nt.length,wr=!!Yt;for(var tr in J)pe.call(J,tr)&&!(wr&&(tr=="length"||si(tr,Yt)))&&nt.push(tr);return nt}function wt(J,Pe,nt){var Yt=J[Pe];(!(pe.call(J,Pe)&&wn(Yt,nt))||nt===void 0&&!(Pe in J))&&(J[Pe]=nt)}function Me(J,Pe){for(var nt=J.length;nt--;)if(wn(J[nt][0],Pe))return nt;return-1}function Ze(J,Pe){return J&&qi(Pe,ts(Pe),J)}function Ct(J,Pe,nt,Yt,wr,tr,Yr){var Tr;if(Yt&&(Tr=tr?Yt(J,wr,tr,Yr):Yt(J)),Tr!==void 0)return Tr;if(!pa(J))return J;var Vr=xt(J);if(Vr){if(Tr=Gt(J),!Pe)return Gr(J,Tr)}else{var $r=ze(J),ti=$r==d||$r==f;if(vr(J))return Dr(J,Pe);if($r==v||$r==a||ti&&!tr){if(W(J))return tr?J:{};if(Tr=Nn(ti?{}:J),!Pe)return ja(J,Ze(Tr,J))}else{if(!K[$r])return tr?J:{};Tr=Wr(J,$r,Ct,Pe)}}Yr||(Yr=new Et);var ea=Yr.get(J);if(ea)return ea;if(Yr.set(J,Tr),!Vr)var Oi=nt?sr(J):ts(J);return ye(Oi||J,function(Ai,ji){Oi&&(ji=Ai,Ai=J[ji]),wt(Tr,ji,Ct(Ai,Pe,nt,Yt,ji,J,Yr))}),Tr}function Ot(J){return pa(J)?ut(J):{}}function $t(J,Pe,nt){var Yt=Pe(J);return xt(J)?Yt:Ae(Yt,nt(J))}function Pn(J){return ue.call(J)}function Bn(J){if(!pa(J)||cs(J))return!1;var Pe=Ur(J)||W(J)?le:Q;return Pe.test(Vi(J))}function _r(J){if(!_i(J))return Vt(J);var Pe=[];for(var nt in Object(J))pe.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function Dr(J,Pe){if(Pe)return J.slice();var nt=new J.constructor(J.length);return J.copy(nt),nt}function hr(J){var Pe=new J.constructor(J.byteLength);return new Ne(Pe).set(new Ne(J)),Pe}function kr(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.byteLength)}function Kn(J,Pe,nt){var Yt=Pe?nt(de(J),!0):de(J);return ne(Yt,be,new J.constructor)}function kn(J){var Pe=new J.constructor(J.source,Z.exec(J));return Pe.lastIndex=J.lastIndex,Pe}function pr(J,Pe,nt){var Yt=Pe?nt(Ee(J),!0):Ee(J);return ne(Yt,Te,new J.constructor)}function Nr(J){return ht?Object(ht.call(J)):{}}function mi(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.length)}function Gr(J,Pe){var nt=-1,Yt=J.length;for(Pe||(Pe=Array(Yt));++nt<Yt;)Pe[nt]=J[nt];return Pe}function qi(J,Pe,nt,Yt){nt||(nt={});for(var wr=-1,tr=Pe.length;++wr<tr;){var Yr=Pe[wr],Tr=void 0;wt(nt,Yr,Tr===void 0?J[Yr]:Tr)}return nt}function ja(J,Pe){return qi(J,en(J),Pe)}function sr(J){return $t(J,ts,en)}function $i(J,Pe){var nt=J.__data__;return Zi(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function xi(J,Pe){var nt=re(J,Pe);return Bn(nt)?nt:void 0}var en=kt?Ie(kt,Object):di,ze=Pn;(Nt&&ze(new Nt(new ArrayBuffer(1)))!=_||$e&&ze(new $e)!=h||yt&&ze(yt.resolve())!=m||qt&&ze(new qt)!=w||dn&&ze(new dn)!=C)&&(ze=function(J){var Pe=ue.call(J),nt=Pe==v?J.constructor:void 0,Yt=nt?Vi(nt):void 0;if(Yt)switch(Yt){case En:return _;case Vn:return h;case hn:return m;case Jt:return w;case Xe:return C}return Pe});function Gt(J){var Pe=J.length,nt=J.constructor(Pe);return Pe&&typeof J[0]=="string"&&pe.call(J,"index")&&(nt.index=J.index,nt.input=J.input),nt}function Nn(J){return typeof J.constructor=="function"&&!_i(J)?Ot(Ke(J)):{}}function Wr(J,Pe,nt,Yt){var wr=J.constructor;switch(Pe){case S:return hr(J);case l:case c:return new wr(+J);case _:return kr(J,Yt);case I:case F:case M:case L:case V:case U:case O:case q:case ie:return mi(J,Yt);case h:return Kn(J,Yt,nt);case g:case E:return new wr(J);case A:return kn(J);case w:return pr(J,Yt,nt);case x:return Nr(J)}}function si(J,Pe){return Pe=Pe??i,!!Pe&&(typeof J=="number"||ce.test(J))&&J>-1&&J%1==0&&J<Pe}function Zi(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function cs(J){return!!j&&j in J}function _i(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||Se;return J===nt}function Vi(J){if(J!=null){try{return oe.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J){return Ct(J,!0,!0)}function wn(J,Pe){return J===Pe||J!==J&&Pe!==Pe}function He(J){return er(J)&&pe.call(J,"callee")&&(!pt.call(J,"callee")||ue.call(J)==a)}var xt=Array.isArray;function ln(J){return J!=null&&la(J.length)&&!Ur(J)}function er(J){return Co(J)&&ln(J)}var vr=Sn||Qr;function Ur(J){var Pe=pa(J)?ue.call(J):"";return Pe==d||Pe==f}function la(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=i}function pa(J){var Pe=typeof J;return!!J&&(Pe=="object"||Pe=="function")}function Co(J){return!!J&&typeof J=="object"}function ts(J){return ln(J)?nn(J):_r(J)}function di(){return[]}function Qr(){return!1}t.exports=xo}(E6,E6.exports);var az=E6.exports,I6={exports:{}};I6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",v="[object GeneratorFunction]",m="[object Map]",A="[object Number]",w="[object Null]",E="[object Object]",x="[object Promise]",C="[object Proxy]",S="[object RegExp]",_="[object Set]",I="[object String]",F="[object Symbol]",M="[object Undefined]",L="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",q="[object Float64Array]",ie="[object Int8Array]",ge="[object Int16Array]",Z="[object Int32Array]",Q="[object Uint8Array]",ce="[object Uint8ClampedArray]",K="[object Uint16Array]",he="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,R={};R[O]=R[q]=R[ie]=R[ge]=R[Z]=R[Q]=R[ce]=R[K]=R[he]=!0,R[l]=R[c]=R[V]=R[d]=R[U]=R[f]=R[h]=R[g]=R[m]=R[A]=R[E]=R[S]=R[_]=R[I]=R[L]=!1;var fe=typeof Di=="object"&&Di&&Di.Object===Object&&Di,be=typeof self=="object"&&self&&self.Object===Object&&self,Te=fe||be||Function("return this")(),ye=e&&!e.nodeType&&e,Ae=ye&&!0&&t&&!t.nodeType&&t,ne=Ae&&Ae.exports===ye,$=ne&&fe.process,re=function(){try{return $&&$.binding&&$.binding("util")}catch{}}(),W=re&&re.isTypedArray;function de(J,Pe){for(var nt=-1,Yt=J==null?0:J.length,wr=0,tr=[];++nt<Yt;){var Yr=J[nt];Pe(Yr,nt,J)&&(tr[wr++]=Yr)}return tr}function Ie(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function Ee(J,Pe){for(var nt=-1,Yt=J==null?0:J.length;++nt<Yt;)if(Pe(J[nt],nt,J))return!0;return!1}function ve(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function me(J){return function(Pe){return J(Pe)}}function Se(J,Pe){return J.has(Pe)}function De(J,Pe){return J==null?void 0:J[Pe]}function j(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function oe(J,Pe){return function(nt){return J(Pe(nt))}}function pe(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ue=Array.prototype,le=Function.prototype,se=Object.prototype,Oe=Te["__core-js_shared__"],Ne=le.toString,Ke=se.hasOwnProperty,ut=function(){var J=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),pt=se.toString,ft=RegExp("^"+Ne.call(Ke).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=ne?Te.Buffer:void 0,Sn=Te.Symbol,Vt=Te.Uint8Array,Nt=se.propertyIsEnumerable,$e=ue.splice,yt=Sn?Sn.toStringTag:void 0,qt=Object.getOwnPropertySymbols,dn=kt?kt.isBuffer:void 0,mn=oe(Object.keys,Object),En=en(Te,"DataView"),Vn=en(Te,"Map"),hn=en(Te,"Promise"),Jt=en(Te,"Set"),Xe=en(Te,"WeakMap"),tt=en(Object,"create"),ht=Vi(En),jt=Vi(Vn),yn=Vi(hn),qn=Vi(Jt),Gn=Vi(Xe),ir=Sn?Sn.prototype:void 0,Jn=ir?ir.valueOf:void 0;function mr(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=tt?tt(null):{},this.size=0}function An(J){var Pe=this.has(J)&&delete this.__data__[J];return this.size-=Pe?1:0,Pe}function it(J){var Pe=this.__data__;if(tt){var nt=Pe[J];return nt===r?void 0:nt}return Ke.call(Pe,J)?Pe[J]:void 0}function ct(J){var Pe=this.__data__;return tt?Pe[J]!==void 0:Ke.call(Pe,J)}function At(J,Pe){var nt=this.__data__;return this.size+=this.has(J)?0:1,nt[J]=tt&&Pe===void 0?r:Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__=[],this.size=0}function mt(J){var Pe=this.__data__,nt=Dr(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():$e.call(Pe,nt,1),--this.size,!0}function ot(J){var Pe=this.__data__,nt=Dr(Pe,J);return nt<0?void 0:Pe[nt][1]}function Ve(J){return Dr(this.__data__,J)>-1}function rt(J,Pe){var nt=this.__data__,Yt=Dr(nt,J);return Yt<0?(++this.size,nt.push([J,Pe])):nt[Yt][1]=Pe,this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function zt(){this.size=0,this.__data__={hash:new mr,map:new(Vn||Mt),string:new mr}}function bt(J){var Pe=xi(this,J).delete(J);return this.size-=Pe?1:0,Pe}function Ue(J){return xi(this,J).get(J)}function Qe(J){return xi(this,J).has(J)}function Dt(J,Pe){var nt=xi(this,J),Yt=nt.size;return nt.set(J,Pe),this.size+=nt.size==Yt?0:1,this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J){var Pe=-1,nt=J==null?0:J.length;for(this.__data__=new Et;++Pe<nt;)this.add(J[Pe])}function wt(J){return this.__data__.set(J,r),this}function Me(J){return this.__data__.has(J)}nn.prototype.add=nn.prototype.push=wt,nn.prototype.has=Me;function Ze(J){var Pe=this.__data__=new Mt(J);this.size=Pe.size}function Ct(){this.__data__=new Mt,this.size=0}function Ot(J){var Pe=this.__data__,nt=Pe.delete(J);return this.size=Pe.size,nt}function $t(J){return this.__data__.get(J)}function Pn(J){return this.__data__.has(J)}function Bn(J,Pe){var nt=this.__data__;if(nt instanceof Mt){var Yt=nt.__data__;if(!Vn||Yt.length<n-1)return Yt.push([J,Pe]),this.size=++nt.size,this;nt=this.__data__=new Et(Yt)}return nt.set(J,Pe),this.size=nt.size,this}Ze.prototype.clear=Ct,Ze.prototype.delete=Ot,Ze.prototype.get=$t,Ze.prototype.has=Pn,Ze.prototype.set=Bn;function _r(J,Pe){var nt=He(J),Yt=!nt&&wn(J),wr=!nt&&!Yt&&ln(J),tr=!nt&&!Yt&&!wr&&Co(J),Yr=nt||Yt||wr||tr,Tr=Yr?ve(J.length,String):[],Vr=Tr.length;for(var $r in J)Ke.call(J,$r)&&!(Yr&&($r=="length"||wr&&($r=="offset"||$r=="parent")||tr&&($r=="buffer"||$r=="byteLength"||$r=="byteOffset")||Wr($r,Vr)))&&Tr.push($r);return Tr}function Dr(J,Pe){for(var nt=J.length;nt--;)if(xo(J[nt][0],Pe))return nt;return-1}function hr(J,Pe,nt){var Yt=Pe(J);return He(J)?Yt:Ie(Yt,nt(J))}function kr(J){return J==null?J===void 0?M:w:yt&&yt in Object(J)?ze(J):_i(J)}function Kn(J){return pa(J)&&kr(J)==l}function kn(J,Pe,nt,Yt,wr){return J===Pe?!0:J==null||Pe==null||!pa(J)&&!pa(Pe)?J!==J&&Pe!==Pe:pr(J,Pe,nt,Yt,kn,wr)}function pr(J,Pe,nt,Yt,wr,tr){var Yr=He(J),Tr=He(Pe),Vr=Yr?c:Nn(J),$r=Tr?c:Nn(Pe);Vr=Vr==l?E:Vr,$r=$r==l?E:$r;var ti=Vr==E,ea=$r==E,Oi=Vr==$r;if(Oi&&ln(J)){if(!ln(Pe))return!1;Yr=!0,ti=!1}if(Oi&&!ti)return tr||(tr=new Ze),Yr||Co(J)?qi(J,Pe,nt,Yt,wr,tr):ja(J,Pe,Vr,nt,Yt,wr,tr);if(!(nt&i)){var Ai=ti&&Ke.call(J,"__wrapped__"),ji=ea&&Ke.call(Pe,"__wrapped__");if(Ai||ji){var Qs=Ai?J.value():J,Sa=ji?Pe.value():Pe;return tr||(tr=new Ze),wr(Qs,Sa,nt,Yt,tr)}}return Oi?(tr||(tr=new Ze),sr(J,Pe,nt,Yt,wr,tr)):!1}function Nr(J){if(!la(J)||Zi(J))return!1;var Pe=vr(J)?ft:te;return Pe.test(Vi(J))}function mi(J){return pa(J)&&Ur(J.length)&&!!R[kr(J)]}function Gr(J){if(!cs(J))return mn(J);var Pe=[];for(var nt in Object(J))Ke.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function qi(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=J.length,Vr=Pe.length;if(Tr!=Vr&&!(Yr&&Vr>Tr))return!1;var $r=tr.get(J);if($r&&tr.get(Pe))return $r==Pe;var ti=-1,ea=!0,Oi=nt&a?new nn:void 0;for(tr.set(J,Pe),tr.set(Pe,J);++ti<Tr;){var Ai=J[ti],ji=Pe[ti];if(Yt)var Qs=Yr?Yt(ji,Ai,ti,Pe,J,tr):Yt(Ai,ji,ti,J,Pe,tr);if(Qs!==void 0){if(Qs)continue;ea=!1;break}if(Oi){if(!Ee(Pe,function(Sa,ca){if(!Se(Oi,ca)&&(Ai===Sa||wr(Ai,Sa,nt,Yt,tr)))return Oi.push(ca)})){ea=!1;break}}else if(!(Ai===ji||wr(Ai,ji,nt,Yt,tr))){ea=!1;break}}return tr.delete(J),tr.delete(Pe),ea}function ja(J,Pe,nt,Yt,wr,tr,Yr){switch(nt){case U:if(J.byteLength!=Pe.byteLength||J.byteOffset!=Pe.byteOffset)return!1;J=J.buffer,Pe=Pe.buffer;case V:return!(J.byteLength!=Pe.byteLength||!tr(new Vt(J),new Vt(Pe)));case d:case f:case A:return xo(+J,+Pe);case h:return J.name==Pe.name&&J.message==Pe.message;case S:case I:return J==Pe+"";case m:var Tr=j;case _:var Vr=Yt&i;if(Tr||(Tr=pe),J.size!=Pe.size&&!Vr)return!1;var $r=Yr.get(J);if($r)return $r==Pe;Yt|=a,Yr.set(J,Pe);var ti=qi(Tr(J),Tr(Pe),Yt,wr,tr,Yr);return Yr.delete(J),ti;case F:if(Jn)return Jn.call(J)==Jn.call(Pe)}return!1}function sr(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=$i(J),Vr=Tr.length,$r=$i(Pe),ti=$r.length;if(Vr!=ti&&!Yr)return!1;for(var ea=Vr;ea--;){var Oi=Tr[ea];if(!(Yr?Oi in Pe:Ke.call(Pe,Oi)))return!1}var Ai=tr.get(J);if(Ai&&tr.get(Pe))return Ai==Pe;var ji=!0;tr.set(J,Pe),tr.set(Pe,J);for(var Qs=Yr;++ea<Vr;){Oi=Tr[ea];var Sa=J[Oi],ca=Pe[Oi];if(Yt)var za=Yr?Yt(ca,Sa,Oi,Pe,J,tr):Yt(Sa,ca,Oi,J,Pe,tr);if(!(za===void 0?Sa===ca||wr(Sa,ca,nt,Yt,tr):za)){ji=!1;break}Qs||(Qs=Oi=="constructor")}if(ji&&!Qs){var Is=J.constructor,Ci=Pe.constructor;Is!=Ci&&"constructor"in J&&"constructor"in Pe&&!(typeof Is=="function"&&Is instanceof Is&&typeof Ci=="function"&&Ci instanceof Ci)&&(ji=!1)}return tr.delete(J),tr.delete(Pe),ji}function $i(J){return hr(J,ts,Gt)}function xi(J,Pe){var nt=J.__data__;return si(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function en(J,Pe){var nt=De(J,Pe);return Nr(nt)?nt:void 0}function ze(J){var Pe=Ke.call(J,yt),nt=J[yt];try{J[yt]=void 0;var Yt=!0}catch{}var wr=pt.call(J);return Yt&&(Pe?J[yt]=nt:delete J[yt]),wr}var Gt=qt?function(J){return J==null?[]:(J=Object(J),de(qt(J),function(Pe){return Nt.call(J,Pe)}))}:di,Nn=kr;(En&&Nn(new En(new ArrayBuffer(1)))!=U||Vn&&Nn(new Vn)!=m||hn&&Nn(hn.resolve())!=x||Jt&&Nn(new Jt)!=_||Xe&&Nn(new Xe)!=L)&&(Nn=function(J){var Pe=kr(J),nt=Pe==E?J.constructor:void 0,Yt=nt?Vi(nt):"";if(Yt)switch(Yt){case ht:return U;case jt:return m;case yn:return x;case qn:return _;case Gn:return L}return Pe});function Wr(J,Pe){return Pe=Pe??s,!!Pe&&(typeof J=="number"||Y.test(J))&&J>-1&&J%1==0&&J<Pe}function si(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function Zi(J){return!!ut&&ut in J}function cs(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||se;return J===nt}function _i(J){return pt.call(J)}function Vi(J){if(J!=null){try{return Ne.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J,Pe){return J===Pe||J!==J&&Pe!==Pe}var wn=Kn(function(){return arguments}())?Kn:function(J){return pa(J)&&Ke.call(J,"callee")&&!Nt.call(J,"callee")},He=Array.isArray;function xt(J){return J!=null&&Ur(J.length)&&!vr(J)}var ln=dn||Qr;function er(J,Pe){return kn(J,Pe)}function vr(J){if(!la(J))return!1;var Pe=kr(J);return Pe==g||Pe==v||Pe==u||Pe==C}function Ur(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=s}function la(J){var Pe=typeof J;return J!=null&&(Pe=="object"||Pe=="function")}function pa(J){return J!=null&&typeof J=="object"}var Co=W?me(W):mi;function ts(J){return xt(J)?_r(J):Gr(J)}function di(){return[]}function Qr(){return!1}t.exports=er}(I6,I6.exports);var sz=I6.exports,ax={};Object.defineProperty(ax,"__esModule",{value:!0});const sEe=az,oEe=sz;var sx;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=sEe(s);l||(c=Object.keys(c).reduce((u,d)=>(c[d]!=null&&(u[d]=c[d]),u),{}));for(const u in a)a[u]!==void 0&&s[u]===void 0&&(c[u]=a[u]);return Object.keys(c).length>0?c:void 0}t.compose=e;function n(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});const l=Object.keys(a).concat(Object.keys(s)).reduce((c,u)=>(oEe(a[u],s[u])||(c[u]=s[u]===void 0?null:s[u]),c),{});return Object.keys(l).length>0?l:void 0}t.diff=n;function r(a={},s={}){a=a||{};const l=Object.keys(s).reduce((c,u)=>(s[u]!==a[u]&&a[u]!==void 0&&(c[u]=s[u]),c),{});return Object.keys(a).reduce((c,u)=>(a[u]!==s[u]&&s[u]===void 0&&(c[u]=null),c),l)}t.invert=r;function i(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;const c=Object.keys(s).reduce((u,d)=>(a[d]===void 0&&(u[d]=s[d]),u),{});return Object.keys(c).length>0?c:void 0}t.transform=i})(sx||(sx={})),ax.default=sx;var _6={};Object.defineProperty(_6,"__esModule",{value:!0});var ox;(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(ox||(ox={})),_6.default=ox;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});const oz=_6;class lEe{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=oz.default.length(n);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,typeof n.delete=="number")return{delete:e};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=e:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(r,e):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?oz.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?typeof e.delete=="number"?"delete":typeof e.retain=="number"||typeof e.retain=="object"&&e.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const e=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=n,[r].concat(i)}}else return[]}}lx.default=lEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=aEe,r=az,i=sz,a=ax;e.AttributeMap=a.default;const s=_6;e.Op=s.default;const l=lx;e.OpIterator=l.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const g=Object.keys(f)[0];if(!g||g!==Object.keys(h)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(h)[0]}`);return[g,f[g],h[g]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,g){this.handlers[h]=g}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const g=this.handlers[h];if(!g)throw new Error(`no handlers for embed type "${h}"`);return g}insert(h,g){const v={};return typeof h=="string"&&h.length===0?this:(v.insert=h,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,g){if(typeof h=="number"&&h<=0)return this;const v={retain:h};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v)}push(h){let g=this.ops.length,v=this.ops[g-1];if(h=r(h),typeof v=="object"){if(typeof h.delete=="number"&&typeof v.delete=="number")return this.ops[g-1]={delete:v.delete+h.delete},this;if(typeof v.delete=="number"&&h.insert!=null&&(g-=1,v=this.ops[g-1],typeof v!="object"))return this.ops.unshift(h),this;if(i(h.attributes,v.attributes)){if(typeof h.insert=="string"&&typeof v.insert=="string")return this.ops[g-1]={insert:v.insert+h.insert},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof v.retain=="number")return this.ops[g-1]={retain:v.retain+h.retain},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const g=[],v=[];return this.forEach(m=>{(h(m)?g:v).push(m)}),[g,v]}reduce(h,g){return this.ops.reduce(h,g)}changeLength(){return this.reduce((h,g)=>g.insert?h+s.default.length(g):g.delete?h-g.delete:h,0)}length(){return this.reduce((h,g)=>h+s.default.length(g),0)}slice(h=0,g=1/0){const v=[],m=new l.default(this.ops);let A=0;for(;A<g&&m.hasNext();){let w;A<h?w=m.next(h-A):(w=m.next(g-A),v.push(w)),A+=s.default.length(w)}return new d(v)}compose(h){const g=new l.default(this.ops),v=new l.default(h.ops),m=[],A=v.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let E=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=E;)E-=g.peekLength(),m.push(g.next());A.retain-E>0&&v.next(A.retain-E)}const w=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")w.push(v.next());else if(g.peekType()==="delete")w.push(g.next());else{const E=Math.min(g.peekLength(),v.peekLength()),x=g.next(E),C=v.next(E);if(C.retain){const S={};if(typeof x.retain=="number")S.retain=typeof C.retain=="number"?E:C.retain;else if(typeof C.retain=="number")x.retain==null?S.insert=x.insert:S.retain=x.retain;else{const I=x.retain==null?"insert":"retain",[F,M,L]=u(x[I],C.retain),V=d.getHandler(F);S[I]={[F]:V.compose(M,L,I==="retain")}}const _=a.default.compose(x.attributes,C.attributes,typeof x.retain=="number");if(_&&(S.attributes=_),w.push(S),!v.hasNext()&&i(w.ops[w.ops.length-1],S)){const I=new d(g.rest());return w.concat(I).chop()}}else typeof C.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&w.push(C)}return w.chop()}concat(h){const g=new d(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g}diff(h,g){if(this.ops===h.ops)return new d;const v=[this,h].map(x=>x.map(C=>{if(C.insert!=null)return typeof C.insert=="string"?C.insert:c;const S=x===h?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),w=new l.default(this.ops),E=new l.default(h.ops);return A.forEach(x=>{let C=x[1].length;for(;C>0;){let S=0;switch(x[0]){case n.INSERT:S=Math.min(E.peekLength(),C),m.push(E.next(S));break;case n.DELETE:S=Math.min(C,w.peekLength()),w.next(S),m.delete(S);break;case n.EQUAL:S=Math.min(w.peekLength(),E.peekLength(),C);const _=w.next(S),I=E.next(S);i(_.insert,I.insert)?m.retain(S,a.default.diff(_.attributes,I.attributes)):m.push(I).delete(S);break}C-=S}}),m.chop()}eachLine(h,g=`
|
|
4373
|
+
`,XCe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},b6=Mn.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:YCe,styles:KCe,inlineStyles:XCe}}),Fj=b.memo(b.forwardRef(function(t,e){var n=Un(),r=b.useContext(nr),i=b6.getProps(t,r),a=b.useRef(null),s=b6.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ci(b6.css.styles,d,{name:"progressspinner"}),b.useImperativeHandle(e,function(){return{props:i,getElement:function(){return a.current}}});var f=n({id:i.id,ref:a,style:i.style,className:dt(i.className,c("root")),role:"progressbar","aria-busy":!0},b6.getOtherProps(i),l("root")),h=n({className:c("spinner"),viewBox:"25 25 50 50",style:u("spinner")},l("spinner")),g=n({className:c("circle"),cx:"50",cy:"50",r:"20",fill:i.fill,strokeWidth:i.strokeWidth,strokeMiterlimit:"10"},l("circle"));return b.createElement("div",f,b.createElement("svg",h,b.createElement("circle",g)))}));Fj.displayName="ProgressSpinner";const RCe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Qt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const U=t;let O=0;return U===t0?O=s:U===jm?O=d:U===$m||U===g9||U===vf?O=u:U===Q0||U===Op?O=c:U===mf&&(O=l),O},h=P.useRef();console.log("first",r);const g=r!=null&&r.getPaginatedAssessmentQuestionBankList?r==null?void 0:r.getPaginatedAssessmentQuestionBankList:()=>{},v=r!=null&&r.getPaginatedAssessmentQuestionBankListFromStore?r==null?void 0:r.getPaginatedAssessmentQuestionBankListFromStore:[],m=r!=null&&r.updateQuestionBankStates?r==null?void 0:r.updateQuestionBankStates:()=>{},A=r!=null&&r.assessmentSearchFilterCourseCategoryId?r==null?void 0:r.assessmentSearchFilterCourseCategoryId:null,w=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,E=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,x=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{}),C=r!=null&&r.courseCategoryList?r==null?void 0:r.courseCategoryList:[],S=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{},_=r!=null&&r.subjectList?r==null?void 0:r.subjectList:[],I=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[F,M]=P.useState([]);P.useEffect(()=>(t===t0&&(S(),I()),()=>{}),[t]);const L=P.useCallback(()=>{const U=v.map(O=>{var ge;const q=JSON.parse(O.question_meta_data),ie=JSON.parse(O.meta_data);return{label:(ge=q==null?void 0:q.questionText)==null?void 0:ge[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:et(),componentType:"question",questionText:q==null?void 0:q.questionText,questionTextImage:ie==null?void 0:ie.questionImage,answerInputType:q!=null&&q.answerInputType?q==null?void 0:q.answerInputType:"radio",answerOptions:q==null?void 0:q.answerOptions,isHidden:!1,subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,subject_id:O==null?void 0:O.subject_id,course_category_id:O==null?void 0:O.course_category_id,created_by_id:null,date_created:O==null?void 0:O.created_at},subject_title:O==null?void 0:O.subject_title,course_category_title:O==null?void 0:O.course_category_title,uuid:et(),type:Rn,componentType:"question"}});M(U)},[v,i==null?void 0:i.type]);P.useEffect(()=>{L()},[v,L]);const V=()=>{h.current&&h.current};return P.useEffect(()=>(t===t0&&g(),()=>{}),[t,A,w]),o.jsx(o.Fragment,{children:o.jsxs(Za,{activeIndex:f(),scrollable:!0,children:[t===mf&&o.jsx(fr,{header:"Survey",children:vQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===Q0||t===Op)&&o.jsx(fr,{header:"Form",children:gQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===$m||t===g9||t===vf)&&o.jsx(fr,{header:"Layout",children:hK.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsx(fr,{header:"Layout",children:mQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),t===t0&&o.jsx(fr,{header:"Question bank",children:o.jsxs("div",{className:"grid",children:[o.jsx("div",{className:"col-12",children:fK.map((U,O)=>o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>{const ge=It.cloneDeep(q);return o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:ge},q.uuid)},"form_elements_"+ie)})},`new-quiz-${O}`))}),o.jsxs("div",{className:"col-12 ",children:[o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(bn,{placeholder:"Keyword"}),o.jsx(Ft,{icon:"pi pi-search",className:"p-button-info"})]}),o.jsx("div",{className:"field mt-3 w-full",children:o.jsx(ya,{id:"subject",name:"subject",optionLabel:"subject_title",value:w,placeholder:"Select a Subject",options:_,className:"w-full",onChange:U=>{m({subject_id:U==null?void 0:U.value})}})}),o.jsx("div",{className:"field",children:o.jsx(ya,{id:"course_category",name:"course_category",optionLabel:"course_category_title",value:A,placeholder:"Select a category",options:C,className:"w-full",onChange:U=>{m({course_category_id:U==null?void 0:U.value})}})})]}),E?o.jsx(Fj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:F.map((U,O)=>{var q,ie,ge,Z,Q;return o.jsx("div",{onScroll:V,ref:h,className:"col-12 ",children:o.jsx(Bd,{tags:[{severity:"success",label:U==null?void 0:U.subject_title},{severity:"info",label:U==null?void 0:U.course_category_title}],showIcon:(Q=(Z=(ge=(ie=(q=a[0])==null?void 0:q.children[0])==null?void 0:ie.children[0])==null?void 0:ge.children[0])==null?void 0:Z.children)==null?void 0:Q.some(ce=>{var K,he,ee;return((K=ce==null?void 0:ce.questionText)==null?void 0:K[i.type])===((ee=(he=U==null?void 0:U.schema)==null?void 0:he.questionText)==null?void 0:ee[i.type])}),data:U},O)},"question_elements_"+O)})}),o.jsx(x,{})]})}),t===jm&&o.jsx(fr,{header:"Training",children:bQ.map((U,O)=>o.jsx(ui,{header:U==null?void 0:U.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:U==null?void 0:U.items.map((q,ie)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:q},q.uuid)},"form_elements_"+ie))})},`pannel-tab-${O}`))}),(t===mf||t===Q0||t===Op)&&o.jsxs(fr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.builder_element_title,element:"reusable_builder_section",schema:U==null?void 0:U.reusable_template_schema,uuid:et(),type:na}},U.uuid)},"reusable_elements_"+O))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((U,O)=>o.jsx("div",{className:"col-6",children:o.jsx(Bd,{data:{label:U==null?void 0:U.custom_component_title,element:"custom_component",schema:JSON.parse(U==null?void 0:U.custom_component_schema),uuid:et(),type:Rn}},U.uuid)},"custom_component"+O))})]})]})})};function kj(t){return t}function GCe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var WCe=800,QCe=16,JCe=Date.now;function ZCe(t){var e=0,n=0;return function(){var r=JCe(),i=QCe-(r-n);if(n=r,i>0){if(++e>=WCe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function eTe(t){return function(){return t}}var tTe=a4?function(t,e){return a4(t,"toString",{configurable:!0,enumerable:!1,value:eTe(e),writable:!0})}:kj,nTe=ZCe(tTe),Pj=Math.max;function rTe(t,e,n){return e=Pj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Pj(r.length-e,0),s=Array(a);++i<a;)s[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(s),GCe(t,this,l)}}function iTe(t,e){return nTe(rTe(t,e,kj),t+"")}function aTe(t,e,n){if(!u0(n))return!1;var r=typeof e;return(r=="number"?s4(n)&&_N(e,n.length):r=="string"&&e in n)?C2(n[e],t):!1}function sTe(t){return iTe(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&aTe(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var l=n[r];l&&t(e,l,r,a)}return e})}var oTe="__lodash_hash_undefined__";function lTe(t){return this.__data__.set(t,oTe),this}function cTe(t){return this.__data__.has(t)}function y6(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new dd;++e<n;)this.add(t[e])}y6.prototype.add=y6.prototype.push=lTe,y6.prototype.has=cTe;function uTe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function dTe(t,e){return t.has(e)}var fTe=1,hTe=2;function Mj(t,e,n,r,i,a){var s=n&fTe,l=t.length,c=e.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(t),d=a.get(e);if(u&&d)return u==e&&d==t;var f=-1,h=!0,g=n&hTe?new y6:void 0;for(a.set(t,e),a.set(e,t);++f<l;){var v=t[f],m=e[f];if(r)var A=s?r(m,v,f,e,t,a):r(v,m,f,t,e,a);if(A!==void 0){if(A)continue;h=!1;break}if(g){if(!uTe(e,function(w,E){if(!dTe(g,E)&&(v===w||i(v,w,n,r,a)))return g.push(E)})){h=!1;break}}else if(!(v===m||i(v,m,n,r,a))){h=!1;break}}return a.delete(t),a.delete(e),h}function pTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function gTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var mTe=1,vTe=2,bTe="[object Boolean]",yTe="[object Date]",ATe="[object Error]",wTe="[object Map]",STe="[object Number]",xTe="[object RegExp]",CTe="[object Set]",TTe="[object String]",ETe="[object Symbol]",ITe="[object ArrayBuffer]",_Te="[object DataView]",Lj=yu?yu.prototype:void 0,KS=Lj?Lj.valueOf:void 0;function DTe(t,e,n,r,i,a,s){switch(n){case _Te:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ITe:return!(t.byteLength!=e.byteLength||!a(new o4(t),new o4(e)));case bTe:case yTe:case STe:return C2(+t,+e);case ATe:return t.name==e.name&&t.message==e.message;case xTe:case TTe:return t==e+"";case wTe:var l=pTe;case CTe:var c=r&mTe;if(l||(l=gTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=vTe,s.set(t,e);var d=Mj(l(t),l(e),r,i,a,s);return s.delete(t),d;case ETe:if(KS)return KS.call(t)==KS.call(e)}return!1}var NTe=1,OTe=Object.prototype,FTe=OTe.hasOwnProperty;function kTe(t,e,n,r,i,a){var s=n&NTe,l=nb(t),c=l.length,u=nb(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:FTe.call(e,h)))return!1}var g=a.get(t),v=a.get(e);if(g&&v)return g==e&&v==t;var m=!0;a.set(t,e),a.set(e,t);for(var A=s;++f<c;){h=l[f];var w=t[h],E=e[h];if(r)var x=s?r(E,w,h,e,t,a):r(w,E,h,t,e,a);if(!(x===void 0?w===E||i(w,E,n,r,a):x)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var C=t.constructor,S=e.constructor;C!=S&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(m=!1)}return a.delete(t),a.delete(e),m}var PTe=1,Bj="[object Arguments]",Vj="[object Array]",A6="[object Object]",MTe=Object.prototype,Uj=MTe.hasOwnProperty;function LTe(t,e,n,r,i,a){var s=fd(t),l=fd(e),c=s?Vj:Vc(t),u=l?Vj:Vc(e);c=c==Bj?A6:c,u=u==Bj?A6:u;var d=c==A6,f=u==A6,h=c==u;if(h&&_2(t)){if(!_2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new wu),s||Q7(t)?Mj(t,e,n,r,i,a):DTe(t,e,c,n,r,i,a);if(!(n&PTe)){var g=d&&Uj.call(t,"__wrapped__"),v=f&&Uj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new wu),i(m,A,n,r,a)}}return h?(a||(a=new wu),kTe(t,e,n,r,i,a)):!1}function qj(t,e,n,r,i){return t===e?!0:t==null||e==null||!Au(t)&&!Au(e)?t!==t&&e!==e:LTe(t,e,n,r,qj,i)}function BTe(t){return function(e,n,r){for(var i=-1,a=Object(e),s=r(e),l=s.length;l--;){var c=s[++i];if(n(a[c],c,a)===!1)break}return e}}var VTe=BTe();function XS(t,e,n){(n!==void 0&&!C2(t[e],n)||n===void 0&&!(e in t))&&X7(t,e,n)}function UTe(t){return Au(t)&&s4(t)}function RS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function qTe(t){return I2(t,N2(t))}function $Te(t,e,n,r,i,a,s){var l=RS(t,n),c=RS(e,n),u=s.get(c);if(u){XS(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=fd(c),g=!h&&_2(c),v=!h&&!g&&Q7(c);d=c,h||g||v?fd(l)?d=l:UTe(l)?d=eb(l):g?(f=!1,d=BN(c,!0)):v?(f=!1,d=WN(c,!0)):d=[]:H7(c)||R7(c)?(d=l,R7(l)?d=qTe(l):(!u0(l)||Y7(l))&&(d=JN(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),XS(t,n,d)}function $j(t,e,n,r,i){t!==e&&VTe(e,function(a,s){if(i||(i=new wu),u0(a))$Te(t,e,s,n,$j,r,i);else{var l=r?r(RS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),XS(t,s,l)}},N2)}function GS(t,e){return qj(t,e)}var O0=sTe(function(t,e,n){$j(t,e,n)}),ar=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(ar||{});class Hu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=ar.TYPE&ar.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ar.LEVEL|i:ar.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(n=>n.name)}add(e,n){return this.canAdd(e,n)?(e.setAttribute(this.keyName,n),!0):!1}canAdd(e,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const n=e.getAttribute(this.keyName);return this.canAdd(e,n)&&n?n:""}}class op extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const jj=class MC{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,n=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(n){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,n)}return null}create(e,n,r){const i=this.query(n);if(i==null)throw new op(`Unable to create ${n} blot`);const a=i,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:a.create(r),l=new a(e,s,r);return MC.blots.set(l.domNode,l),l}find(e,n=!1){return MC.find(e,n)}query(e,n=ar.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ar.LEVEL&ar.BLOCK?r=this.types.block:e&ar.LEVEL&ar.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&n&ar.LEVEL&r.scope&&n&ar.TYPE&r.scope?r:null}register(...e){return e.map(n=>{const r="blotName"in n,i="attrName"in n;if(!r&&!i)throw new op("Invalid definition");if(r&&n.blotName==="abstract")throw new op("Cannot register abstract class");const a=r?n.blotName:i?n.attrName:void 0;return this.types[a]=n,i?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):r&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};jj.blots=new WeakMap;let lp=jj;function zj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class jTe extends Hu{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(e,n){return this.canAdd(e,n)?(this.remove(e),e.classList.add(`${this.keyName}-${n}`),!0):!1}remove(e){zj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(zj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const nu=jTe;function WS(t){const e=t.split("-"),n=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+n}class zTe extends Hu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[WS(this.keyName)]=n,!0):!1}remove(e){e.style[WS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[WS(this.keyName)];return this.canAdd(e,n)?n:""}}const F0=zTe;class HTe{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,n){n?e.add(this.domNode,n)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=lp.find(this.domNode);if(e==null)return;const n=Hu.keys(this.domNode),r=nu.keys(this.domNode),i=F0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,ar.ATTRIBUTE);s instanceof Hu&&(this.attributes[s.attrName]=s)})}copy(e){Object.keys(this.attributes).forEach(n=>{const r=this.attributes[n].value(this.domNode);e.format(n,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,n)=>(e[n]=this.attributes[n].value(this.domNode),e),{})}}const w6=HTe,Hj=class{constructor(e,n){this.scroll=e,this.domNode=n,lp.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new op("Blot definition missing tagName");let n,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?n=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?n=document.createElement(r):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),lp.blots.delete(this.domNode)}deleteAt(e,n){this.isolate(e,n).remove()}formatAt(e,n,r,i){const a=this.isolate(e,n);if(this.scroll.query(r,ar.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,ar.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(r,i)}}insertAt(e,n,r){const i=r==null?this.scroll.create("text",n):this.scroll.create(n,r),a=this.split(e);this.parent.insertBefore(i,a||void 0)}isolate(e,n){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(n),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,n){return e===0?this:this.next}update(e,n){}wrap(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new op(`Cannot wrap ${e}`);return r.appendChild(this),r}};Hj.blotName="abstract";let Yj=Hj;const Kj=class extends Yj{static value(e){return!0}index(e,n){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(e,n){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Kj.scope=ar.INLINE_BLOT;const wo=Kj;class YTe{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const n=e.slice(1);this.append(...n)}}at(e){const n=this.iterator();let r=n();for(;r&&e>0;)e-=1,r=n();return r}contains(e){const n=this.iterator();let r=n();for(;r;){if(r===e)return!0;r=n()}return!1}indexOf(e){const n=this.iterator();let r=n(),i=0;for(;r;){if(r===e)return i;i+=1,r=n()}return-1}insertBefore(e,n){e!=null&&(this.remove(e),e.next=n,n!=null?(e.prev=n.prev,n.prev!=null&&(n.prev.next=e),n.prev=e,n===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let n=0,r=this.head;for(;r!=null;){if(r===e)return n;n+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const n=e;return e!=null&&(e=e.next),n}}find(e,n=!1){const r=this.iterator();let i=r();for(;i;){const a=i.length();if(e<a||n&&e===a&&(i.next==null||i.next.length()!==0))return[i,e];e-=a,i=r()}return[null,0]}forEach(e){const n=this.iterator();let r=n();for(;r;)e(r),r=n()}forEachAt(e,n,r){if(n<=0)return;const[i,a]=this.find(e);let s=e-a;const l=this.iterator(i);let c=l();for(;c&&s<e+n;){const u=c.length();e>s?r(c,e-s,Math.min(n,s+u-e)):r(c,0,Math.min(u,e+n-s)),s+=u,c=l()}}map(e){return this.reduce((n,r)=>(n.push(e(r)),n),[])}reduce(e,n){const r=this.iterator();let i=r();for(;i;)n=e(n,i),i=r();return n}}function Xj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(ar.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const Rj=class G0 extends Yj{constructor(e,n){super(e,n),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,G0.uiClass&&this.uiNode.classList.add(G0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new YTe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Xj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof op)return;throw n}})}deleteAt(e,n){if(e===0&&n===this.length())return this.remove();this.children.forEachAt(e,n,(r,i,a)=>{r.deleteAt(i,a)})}descendant(e,n=0){const[r,i]=this.children.find(n);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof G0?r.descendant(e,i):[null,-1]}descendants(e,n=0,r=Number.MAX_VALUE){let i=[],a=r;return this.children.forEachAt(n,r,(s,l,c)=>{(e.blotName==null&&e(s)||e.blotName!=null&&s instanceof e)&&i.push(s),s instanceof G0&&(i=i.concat(s.descendants(e,l,a))),a-=c}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(n=>{e||this.statics.allowedChildren.some(r=>n instanceof r)||(n.statics.scope===ar.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof G0?n.unwrap():n.remove())})}formatAt(e,n,r,i){this.children.forEachAt(e,n,(a,s,l)=>{a.formatAt(s,l,r,i)})}insertAt(e,n,r){const[i,a]=this.children.find(e);if(i)i.insertAt(a,n,r);else{const s=r==null?this.scroll.create("text",n):this.scroll.create(n,r);this.appendChild(s)}}insertBefore(e,n){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,n||null),e.parent=this,n!=null&&(r=n.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,n)=>e+n.length(),0)}moveChildren(e,n){this.children.forEach(r=>{e.insertBefore(r,n)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(e,n=!1){const[r,i]=this.children.find(e,n),a=[[this,e]];return r instanceof G0?a.concat(r.path(i,n)):(r!=null&&a.push([r,i]),a)}removeChild(e){this.children.remove(e)}replaceWith(e,n){const r=typeof e=="string"?this.scroll.create(e,n):e;return r instanceof G0&&this.moveChildren(r),super.replaceWith(r)}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,a,s)=>{const l=i.split(a,n);l!=null&&r.appendChild(l)}),r}splitAfter(e){const n=this.clone();for(;e.next!=null;)n.appendChild(e.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,n){const r=[],i=[];e.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(r.push(...a.addedNodes),i.push(...a.removedNodes))}),i.forEach(a=>{if(a.parentNode!=null&&a.tagName!=="IFRAME"&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(a);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),r.filter(a=>a.parentNode===this.domNode&&a!==this.uiNode).sort((a,s)=>a===s?0:a.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(a=>{let s=null;a.nextSibling!=null&&(s=this.scroll.find(a.nextSibling));const l=Xj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Rj.uiClass="";const ru=Rj;function KTe(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const cp=class Np extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Np.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof Np||(r=r.wrap(Np.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ar.INLINE);if(r==null)return;r instanceof Hu?this.attributes.attribute(r,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.formats()[r]!=null||this.scroll.query(r,ar.ATTRIBUTE)?this.isolate(e,n).format(r,i):super.formatAt(e,n,r,i)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const r=this.next;r instanceof Np&&r.prev===this&&KTe(n,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,n){const r=super.wrap(e,n);return r instanceof Np&&this.attributes.move(r),r}};cp.allowedChildren=[cp,wo],cp.blotName="inline",cp.scope=ar.INLINE_BLOT,cp.tagName="SPAN";const QS=cp,up=class LC extends ru{static create(e){return super.create(e)}static formats(e,n){const r=n.query(LC.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,n){super(e,n),this.attributes=new w6(this.domNode)}format(e,n){const r=this.scroll.query(e,ar.BLOCK);r!=null&&(r instanceof Hu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(LC.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const e=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(e[this.statics.blotName]=n),e}formatAt(e,n,r,i){this.scroll.query(r,ar.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,ar.INLINE)!=null)super.insertAt(e,n,r);else{const i=this.split(e);if(i!=null){const a=this.scroll.create(n,r);i.parent.insertBefore(a,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,n){const r=super.replaceWith(e,n);return this.attributes.copy(r),r}update(e,n){super.update(e,n),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};up.blotName="block",up.scope=ar.BLOCK_BLOT,up.tagName="P",up.allowedChildren=[QS,up,wo];const sm=up,JS=class extends ru{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,n){super.deleteAt(e,n),this.enforceAllowedChildren()}formatAt(e,n,r,i){super.formatAt(e,n,r,i),this.enforceAllowedChildren()}insertAt(e,n,r){super.insertAt(e,n,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};JS.blotName="container",JS.scope=ar.BLOCK_BLOT;const S6=JS;class XTe extends wo{static formats(e,n){}format(e,n){super.formatAt(0,this.length(),e,n)}formatAt(e,n,r,i){e===0&&n===this.length()?this.format(r,i):super.formatAt(e,n,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const ql=XTe,RTe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},GTe=100,dp=class extends ru{constructor(e,n){super(null,n),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,RTe),this.attach()}create(e,n){return this.registry.create(this,e,n)}find(e,n=!1){const r=this.registry.find(e,n);return r?r.scroll===this?r:n?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,n=ar.ANY){return this.registry.query(e,n)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,n){this.update(),e===0&&n===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,n)}formatAt(e,n,r,i){this.update(),super.formatAt(e,n,r,i)}insertAt(e,n,r){this.update(),super.insertAt(e,n,r)}optimize(e=[],n={}){super.optimize(n);const r=n.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const a=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(r.has(c.domNode)||r.set(c.domNode,[]),u&&a(c.parent))},s=c=>{r.has(c.domNode)&&(c instanceof ru&&c.children.forEach(s),r.delete(c.domNode),c.optimize(n))};let l=e;for(let c=0;l.length>0;c+=1){if(c>=GTe)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(a(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(f=>{const h=this.find(f,!1);a(h,!1),h instanceof ru&&h.children.forEach(g=>{a(g,!1)})})):u.type==="attributes"&&a(d.prev)),a(d))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)e.push(i.pop())}}update(e,n={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const a=this.find(i.target,!0);return a==null?null:r.has(a.domNode)?(r.get(a.domNode).push(i),null):(r.set(a.domNode,[i]),a)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],n)}),n.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),n),this.optimize(e,n)}};dp.blotName="scroll",dp.defaultChild=sm,dp.allowedChildren=[sm,S6],dp.scope=ar.BLOCK_BLOT,dp.tagName="DIV";const ZS=dp,ex=class VY extends wo{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,n){super(e,n),this.text=this.statics.value(this.domNode)}deleteAt(e,n){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+n)}index(e,n){return this.domNode===e?n:-1}insertAt(e,n,r){r==null?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,n,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof VY&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,n=!1){return[this.domNode,e]}split(e,n=!1){if(!n){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,n){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ex.blotName="text",ex.scope=ar.INLINE_BLOT;const x6=ex,Gj=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Hu,AttributorStore:w6,BlockBlot:sm,ClassAttributor:nu,ContainerBlot:S6,EmbedBlot:ql,InlineBlot:QS,LeafBlot:wo,ParentBlot:ru,Registry:lp,Scope:ar,ScrollBlot:ZS,StyleAttributor:F0,TextBlot:x6},Symbol.toStringTag,{value:"Module"}));var tx={exports:{}},$l=-1,Ko=1,Es=0;function om(t,e,n,r,i){if(t===e)return t?[[Es,t]]:[];if(n!=null){var a=iEe(t,e,n);if(a)return a}var s=nx(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=C6(t,e);var c=t.substring(t.length-s);t=t.substring(0,t.length-s),e=e.substring(0,e.length-s);var u=WTe(t,e);return l&&u.unshift([Es,l]),c&&u.push([Es,c]),rx(u,i),r&&ZTe(u),u}function WTe(t,e){var n;if(!t)return[[Ko,e]];if(!e)return[[$l,t]];var r=t.length>e.length?t:e,i=t.length>e.length?e:t,a=r.indexOf(i);if(a!==-1)return n=[[Ko,r.substring(0,a)],[Es,i],[Ko,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=$l),n;if(i.length===1)return[[$l,t],[Ko,e]];var s=JTe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=om(l,u),g=om(c,d);return h.concat([[Es,f]],g)}return QTe(t,e)}function QTe(t,e){for(var n=t.length,r=e.length,i=Math.ceil((n+r)/2),a=i,s=2*i,l=new Array(s),c=new Array(s),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[a+1]=0,c[a+1]=0;for(var d=n-r,f=d%2!==0,h=0,g=0,v=0,m=0,A=0;A<i;A++){for(var w=-A+h;w<=A-g;w+=2){var E=a+w,x;w===-A||w!==A&&l[E-1]<l[E+1]?x=l[E+1]:x=l[E-1]+1;for(var C=x-w;x<n&&C<r&&t.charAt(x)===e.charAt(C);)x++,C++;if(l[E]=x,x>n)g+=2;else if(C>r)h+=2;else if(f){var S=a+d-w;if(S>=0&&S<s&&c[S]!==-1){var _=n-c[S];if(x>=_)return Wj(t,e,x,C)}}}for(var I=-A+v;I<=A-m;I+=2){var S=a+I,_;I===-A||I!==A&&c[S-1]<c[S+1]?_=c[S+1]:_=c[S-1]+1;for(var F=_-I;_<n&&F<r&&t.charAt(n-_-1)===e.charAt(r-F-1);)_++,F++;if(c[S]=_,_>n)m+=2;else if(F>r)v+=2;else if(!f){var E=a+d-I;if(E>=0&&E<s&&l[E]!==-1){var x=l[E],C=a+x-E;if(_=n-_,x>=_)return Wj(t,e,x,C)}}}}return[[$l,t],[Ko,e]]}function Wj(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=om(i,a),u=om(s,l);return c.concat(u)}function nx(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(a,i)==e.substring(a,i)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return tz(t.charCodeAt(i-1))&&i--,i}function Qj(t,e){var n=t.length,r=e.length;if(n==0||r==0)return 0;n>r?t=t.substring(n-r):n<r&&(e=e.substring(0,n));var i=Math.min(n,r);if(t==e)return i;for(var a=0,s=1;;){var l=t.substring(i-s),c=e.indexOf(l);if(c==-1)return a;s+=c,(c==0||t.substring(i-s)==e.substring(0,s))&&(a=s,s++)}}function C6(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,a=0;n<i;)t.substring(t.length-i,t.length-a)==e.substring(e.length-i,e.length-a)?(n=i,a=n):r=i,i=Math.floor((r-n)/2+n);return nz(t.charCodeAt(t.length-i))&&i--,i}function JTe(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||r.length*2<n.length)return null;function i(g,v,m){for(var A=g.substring(m,m+Math.floor(g.length/4)),w=-1,E="",x,C,S,_;(w=v.indexOf(A,w+1))!==-1;){var I=nx(g.substring(m),v.substring(w)),F=C6(g.substring(0,m),v.substring(0,w));E.length<F+I&&(E=v.substring(w-F,w)+v.substring(w,w+I),x=g.substring(0,m-F),C=g.substring(m+I),S=v.substring(0,w-F),_=v.substring(w+I))}return E.length*2>=g.length?[x,C,S,_,E]:null}var a=i(n,r,Math.ceil(n.length/4)),s=i(n,r,Math.ceil(n.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,u,d,f;t.length>e.length?(c=l[0],u=l[1],d=l[2],f=l[3]):(d=l[0],f=l[1],c=l[2],u=l[3]);var h=l[4];return[c,u,d,f,h]}function ZTe(t){for(var e=!1,n=[],r=0,i=null,a=0,s=0,l=0,c=0,u=0;a<t.length;)t[a][0]==Es?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==Ko?c+=t[a][1].length:u+=t[a][1].length,i&&i.length<=Math.max(s,l)&&i.length<=Math.max(c,u)&&(t.splice(n[r-1],0,[$l,i]),t[n[r-1]+1][0]=Ko,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&rx(t),nEe(t),a=1;a<t.length;){if(t[a-1][0]==$l&&t[a][0]==Ko){var d=t[a-1][1],f=t[a][1],h=Qj(d,f),g=Qj(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Es,f.substring(0,h)]),t[a-1][1]=d.substring(0,d.length-h),t[a+1][1]=f.substring(h),a++):(g>=d.length/2||g>=f.length/2)&&(t.splice(a,0,[Es,d.substring(0,g)]),t[a-1][0]=Ko,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=$l,t[a+1][1]=d.substring(g),a++),a++}a++}}var Jj=/[^a-zA-Z0-9]/,Zj=/\s/,ez=/[\r\n]/,eEe=/\n\r?\n$/,tEe=/^\r?\n\r?\n/;function nEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),w=m.match(Jj),E=A.match(Jj),x=w&&m.match(Zj),C=E&&A.match(Zj),S=x&&m.match(ez),_=C&&A.match(ez),I=S&&g.match(eEe),F=_&&v.match(tEe);return I||F?5:S||_?4:w&&!x&&C?3:x||C?2:w||E?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Es&&t[n+1][0]==Es){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=C6(r,i);if(s){var l=i.substring(i.length-s);r=r.substring(0,r.length-s),i=l+i.substring(0,i.length-s),a=l+a}for(var c=r,u=i,d=a,f=e(r,i)+e(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=e(r,i)+e(i,a);h>=f&&(f=h,c=r,u=i,d=a)}t[n-1][1]!=c&&(c?t[n-1][1]=c:(t.splice(n-1,1),n--),t[n][1]=u,d?t[n+1][1]=d:(t.splice(n+1,1),n--))}n++}}function rx(t,e){t.push([Es,""]);for(var n=0,r=0,i=0,a="",s="",l;n<t.length;){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case Ko:i++,s+=t[n][1],n++;break;case $l:r++,a+=t[n][1],n++;break;case Es:var c=n-i-r-1;if(e){if(c>=0&&iz(t[c][1])){var u=t[c][1].slice(-1);if(t[c][1]=t[c][1].slice(0,-1),a=u+a,s=u+s,!t[c][1]){t.splice(c,1),n--;var d=c-1;t[d]&&t[d][0]===Ko&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===$l&&(r++,a=t[d][1]+a,d--),c=d}}if(rz(t[n][1])){var u=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1),a+=u,s+=u}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=nx(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Es,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=C6(s,a),l!==0&&(t[n][1]=s.substring(s.length-l)+t[n][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var f=i+r;a.length===0&&s.length===0?(t.splice(n-f,f),n=n-f):a.length===0?(t.splice(n-f,f,[Ko,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[$l,a]),n=n-f+1):(t.splice(n-f,f,[$l,a],[Ko,s]),n=n-f+2)}n!==0&&t[n-1][0]===Es?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,i=0,r=0,a="",s="";break}}t[t.length-1][1]===""&&t.pop();var h=!1;for(n=1;n<t.length-1;)t[n-1][0]===Es&&t[n+1][0]===Es&&(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]?(t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length),t[n+1][1]=t[n-1][1]+t[n+1][1],t.splice(n-1,1),h=!0):t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]&&(t[n-1][1]+=t[n+1][1],t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1],t.splice(n+1,1),h=!0)),n++;h&&rx(t,e)}function tz(t){return t>=55296&&t<=56319}function nz(t){return t>=56320&&t<=57343}function rz(t){return nz(t.charCodeAt(0))}function iz(t){return tz(t.charCodeAt(t.length-1))}function rEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function ix(t,e,n,r){return iz(t)||rz(r)?null:rEe([[Es,t],[$l,e],[Ko,n],[Es,r]])}function iEe(t,e,n){var r=typeof n=="number"?{index:n,length:0}:n.oldRange,i=typeof n=="number"?null:n.newRange,a=t.length,s=e.length;if(r.length===0&&(i===null||i.length===0)){var l=r.index,c=t.slice(0,l),u=t.slice(l),d=i?i.index:null;e:{var f=l+s-a;if(d!==null&&d!==f||f<0||f>s)break e;var h=e.slice(0,f),g=e.slice(f);if(g!==u)break e;var v=Math.min(l,f),m=c.slice(0,v),A=h.slice(0,v);if(m!==A)break e;var w=c.slice(v),E=h.slice(v);return ix(m,w,E,u)}e:{if(d!==null&&d!==l)break e;var x=l,h=e.slice(0,x),g=e.slice(x);if(h!==c)break e;var C=Math.min(a-x,s-x),S=u.slice(u.length-C),_=g.slice(g.length-C);if(S!==_)break e;var w=u.slice(0,u.length-C),E=g.slice(0,g.length-C);return ix(c,w,E,S)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),S=t.slice(r.index+r.length),v=m.length,C=S.length;if(s<v+C)break e;var A=e.slice(0,v),_=e.slice(s-C);if(m!==A||S!==_)break e;var w=t.slice(v,a-C),E=e.slice(v,s-C);return ix(m,w,E,S)}return null}function T6(t,e,n,r){return om(t,e,n,r,!0)}T6.INSERT=Ko,T6.DELETE=$l,T6.EQUAL=Es;var aEe=T6,E6={exports:{}};E6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Object]",m="[object Promise]",A="[object RegExp]",w="[object Set]",E="[object String]",x="[object Symbol]",C="[object WeakMap]",S="[object ArrayBuffer]",_="[object DataView]",I="[object Float32Array]",F="[object Float64Array]",M="[object Int8Array]",L="[object Int16Array]",V="[object Int32Array]",U="[object Uint8Array]",O="[object Uint8ClampedArray]",q="[object Uint16Array]",ie="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Z=/\w*$/,Q=/^\[object .+?Constructor\]$/,ce=/^(?:0|[1-9]\d*)$/,K={};K[a]=K[s]=K[S]=K[_]=K[l]=K[c]=K[I]=K[F]=K[M]=K[L]=K[V]=K[h]=K[g]=K[v]=K[A]=K[w]=K[E]=K[x]=K[U]=K[O]=K[q]=K[ie]=!0,K[u]=K[d]=K[C]=!1;var he=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ee=typeof self=="object"&&self&&self.Object===Object&&self,te=he||ee||Function("return this")(),Y=e&&!e.nodeType&&e,R=Y&&!0&&t&&!t.nodeType&&t,fe=R&&R.exports===Y;function be(J,Pe){return J.set(Pe[0],Pe[1]),J}function Te(J,Pe){return J.add(Pe),J}function ye(J,Pe){for(var nt=-1,Yt=J?J.length:0;++nt<Yt&&Pe(J[nt],nt,J)!==!1;);return J}function Ae(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function ne(J,Pe,nt,Yt){for(var wr=-1,tr=J?J.length:0;++wr<tr;)nt=Pe(nt,J[wr],wr,J);return nt}function $(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function re(J,Pe){return J==null?void 0:J[Pe]}function W(J){var Pe=!1;if(J!=null&&typeof J.toString!="function")try{Pe=!!(J+"")}catch{}return Pe}function de(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function Ie(J,Pe){return function(nt){return J(Pe(nt))}}function Ee(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ve=Array.prototype,me=Function.prototype,Se=Object.prototype,De=te["__core-js_shared__"],j=function(){var J=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),oe=me.toString,pe=Se.hasOwnProperty,ue=Se.toString,le=RegExp("^"+oe.call(pe).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=fe?te.Buffer:void 0,Oe=te.Symbol,Ne=te.Uint8Array,Ke=Ie(Object.getPrototypeOf,Object),ut=Object.create,pt=Se.propertyIsEnumerable,ft=ve.splice,kt=Object.getOwnPropertySymbols,Sn=se?se.isBuffer:void 0,Vt=Ie(Object.keys,Object),Nt=xi(te,"DataView"),$e=xi(te,"Map"),yt=xi(te,"Promise"),qt=xi(te,"Set"),dn=xi(te,"WeakMap"),mn=xi(Object,"create"),En=Vi(Nt),Vn=Vi($e),hn=Vi(yt),Jt=Vi(qt),Xe=Vi(dn),tt=Oe?Oe.prototype:void 0,ht=tt?tt.valueOf:void 0;function jt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function yn(){this.__data__=mn?mn(null):{}}function qn(J){return this.has(J)&&delete this.__data__[J]}function Gn(J){var Pe=this.__data__;if(mn){var nt=Pe[J];return nt===r?void 0:nt}return pe.call(Pe,J)?Pe[J]:void 0}function ir(J){var Pe=this.__data__;return mn?Pe[J]!==void 0:pe.call(Pe,J)}function Jn(J,Pe){var nt=this.__data__;return nt[J]=mn&&Pe===void 0?r:Pe,this}jt.prototype.clear=yn,jt.prototype.delete=qn,jt.prototype.get=Gn,jt.prototype.has=ir,jt.prototype.set=Jn;function mr(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=[]}function An(J){var Pe=this.__data__,nt=Me(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():ft.call(Pe,nt,1),!0}function it(J){var Pe=this.__data__,nt=Me(Pe,J);return nt<0?void 0:Pe[nt][1]}function ct(J){return Me(this.__data__,J)>-1}function At(J,Pe){var nt=this.__data__,Yt=Me(nt,J);return Yt<0?nt.push([J,Pe]):nt[Yt][1]=Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J?J.length:0;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__={hash:new jt,map:new($e||mr),string:new jt}}function mt(J){return $i(this,J).delete(J)}function ot(J){return $i(this,J).get(J)}function Ve(J){return $i(this,J).has(J)}function rt(J,Pe){return $i(this,J).set(J,Pe),this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){this.__data__=new mr(J)}function zt(){this.__data__=new mr}function bt(J){return this.__data__.delete(J)}function Ue(J){return this.__data__.get(J)}function Qe(J){return this.__data__.has(J)}function Dt(J,Pe){var nt=this.__data__;if(nt instanceof mr){var Yt=nt.__data__;if(!$e||Yt.length<n-1)return Yt.push([J,Pe]),this;nt=this.__data__=new Mt(Yt)}return nt.set(J,Pe),this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J,Pe){var nt=xt(J)||He(J)?$(J.length,String):[],Yt=nt.length,wr=!!Yt;for(var tr in J)pe.call(J,tr)&&!(wr&&(tr=="length"||si(tr,Yt)))&&nt.push(tr);return nt}function wt(J,Pe,nt){var Yt=J[Pe];(!(pe.call(J,Pe)&&wn(Yt,nt))||nt===void 0&&!(Pe in J))&&(J[Pe]=nt)}function Me(J,Pe){for(var nt=J.length;nt--;)if(wn(J[nt][0],Pe))return nt;return-1}function Ze(J,Pe){return J&&qi(Pe,ts(Pe),J)}function Ct(J,Pe,nt,Yt,wr,tr,Yr){var Tr;if(Yt&&(Tr=tr?Yt(J,wr,tr,Yr):Yt(J)),Tr!==void 0)return Tr;if(!pa(J))return J;var Vr=xt(J);if(Vr){if(Tr=Gt(J),!Pe)return Gr(J,Tr)}else{var $r=ze(J),ti=$r==d||$r==f;if(vr(J))return Dr(J,Pe);if($r==v||$r==a||ti&&!tr){if(W(J))return tr?J:{};if(Tr=Nn(ti?{}:J),!Pe)return ja(J,Ze(Tr,J))}else{if(!K[$r])return tr?J:{};Tr=Wr(J,$r,Ct,Pe)}}Yr||(Yr=new Et);var ea=Yr.get(J);if(ea)return ea;if(Yr.set(J,Tr),!Vr)var Oi=nt?sr(J):ts(J);return ye(Oi||J,function(Ai,ji){Oi&&(ji=Ai,Ai=J[ji]),wt(Tr,ji,Ct(Ai,Pe,nt,Yt,ji,J,Yr))}),Tr}function Ot(J){return pa(J)?ut(J):{}}function $t(J,Pe,nt){var Yt=Pe(J);return xt(J)?Yt:Ae(Yt,nt(J))}function Pn(J){return ue.call(J)}function Bn(J){if(!pa(J)||cs(J))return!1;var Pe=Ur(J)||W(J)?le:Q;return Pe.test(Vi(J))}function _r(J){if(!_i(J))return Vt(J);var Pe=[];for(var nt in Object(J))pe.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function Dr(J,Pe){if(Pe)return J.slice();var nt=new J.constructor(J.length);return J.copy(nt),nt}function hr(J){var Pe=new J.constructor(J.byteLength);return new Ne(Pe).set(new Ne(J)),Pe}function kr(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.byteLength)}function Kn(J,Pe,nt){var Yt=Pe?nt(de(J),!0):de(J);return ne(Yt,be,new J.constructor)}function kn(J){var Pe=new J.constructor(J.source,Z.exec(J));return Pe.lastIndex=J.lastIndex,Pe}function pr(J,Pe,nt){var Yt=Pe?nt(Ee(J),!0):Ee(J);return ne(Yt,Te,new J.constructor)}function Nr(J){return ht?Object(ht.call(J)):{}}function mi(J,Pe){var nt=Pe?hr(J.buffer):J.buffer;return new J.constructor(nt,J.byteOffset,J.length)}function Gr(J,Pe){var nt=-1,Yt=J.length;for(Pe||(Pe=Array(Yt));++nt<Yt;)Pe[nt]=J[nt];return Pe}function qi(J,Pe,nt,Yt){nt||(nt={});for(var wr=-1,tr=Pe.length;++wr<tr;){var Yr=Pe[wr],Tr=void 0;wt(nt,Yr,Tr===void 0?J[Yr]:Tr)}return nt}function ja(J,Pe){return qi(J,en(J),Pe)}function sr(J){return $t(J,ts,en)}function $i(J,Pe){var nt=J.__data__;return Zi(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function xi(J,Pe){var nt=re(J,Pe);return Bn(nt)?nt:void 0}var en=kt?Ie(kt,Object):di,ze=Pn;(Nt&&ze(new Nt(new ArrayBuffer(1)))!=_||$e&&ze(new $e)!=h||yt&&ze(yt.resolve())!=m||qt&&ze(new qt)!=w||dn&&ze(new dn)!=C)&&(ze=function(J){var Pe=ue.call(J),nt=Pe==v?J.constructor:void 0,Yt=nt?Vi(nt):void 0;if(Yt)switch(Yt){case En:return _;case Vn:return h;case hn:return m;case Jt:return w;case Xe:return C}return Pe});function Gt(J){var Pe=J.length,nt=J.constructor(Pe);return Pe&&typeof J[0]=="string"&&pe.call(J,"index")&&(nt.index=J.index,nt.input=J.input),nt}function Nn(J){return typeof J.constructor=="function"&&!_i(J)?Ot(Ke(J)):{}}function Wr(J,Pe,nt,Yt){var wr=J.constructor;switch(Pe){case S:return hr(J);case l:case c:return new wr(+J);case _:return kr(J,Yt);case I:case F:case M:case L:case V:case U:case O:case q:case ie:return mi(J,Yt);case h:return Kn(J,Yt,nt);case g:case E:return new wr(J);case A:return kn(J);case w:return pr(J,Yt,nt);case x:return Nr(J)}}function si(J,Pe){return Pe=Pe??i,!!Pe&&(typeof J=="number"||ce.test(J))&&J>-1&&J%1==0&&J<Pe}function Zi(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function cs(J){return!!j&&j in J}function _i(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||Se;return J===nt}function Vi(J){if(J!=null){try{return oe.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J){return Ct(J,!0,!0)}function wn(J,Pe){return J===Pe||J!==J&&Pe!==Pe}function He(J){return er(J)&&pe.call(J,"callee")&&(!pt.call(J,"callee")||ue.call(J)==a)}var xt=Array.isArray;function ln(J){return J!=null&&la(J.length)&&!Ur(J)}function er(J){return Co(J)&&ln(J)}var vr=Sn||Qr;function Ur(J){var Pe=pa(J)?ue.call(J):"";return Pe==d||Pe==f}function la(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=i}function pa(J){var Pe=typeof J;return!!J&&(Pe=="object"||Pe=="function")}function Co(J){return!!J&&typeof J=="object"}function ts(J){return ln(J)?nn(J):_r(J)}function di(){return[]}function Qr(){return!1}t.exports=xo}(E6,E6.exports);var az=E6.exports,I6={exports:{}};I6.exports,function(t,e){var n=200,r="__lodash_hash_undefined__",i=1,a=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",f="[object Date]",h="[object Error]",g="[object Function]",v="[object GeneratorFunction]",m="[object Map]",A="[object Number]",w="[object Null]",E="[object Object]",x="[object Promise]",C="[object Proxy]",S="[object RegExp]",_="[object Set]",I="[object String]",F="[object Symbol]",M="[object Undefined]",L="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",O="[object Float32Array]",q="[object Float64Array]",ie="[object Int8Array]",ge="[object Int16Array]",Z="[object Int32Array]",Q="[object Uint8Array]",ce="[object Uint8ClampedArray]",K="[object Uint16Array]",he="[object Uint32Array]",ee=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,Y=/^(?:0|[1-9]\d*)$/,R={};R[O]=R[q]=R[ie]=R[ge]=R[Z]=R[Q]=R[ce]=R[K]=R[he]=!0,R[l]=R[c]=R[V]=R[d]=R[U]=R[f]=R[h]=R[g]=R[m]=R[A]=R[E]=R[S]=R[_]=R[I]=R[L]=!1;var fe=typeof Di=="object"&&Di&&Di.Object===Object&&Di,be=typeof self=="object"&&self&&self.Object===Object&&self,Te=fe||be||Function("return this")(),ye=e&&!e.nodeType&&e,Ae=ye&&!0&&t&&!t.nodeType&&t,ne=Ae&&Ae.exports===ye,$=ne&&fe.process,re=function(){try{return $&&$.binding&&$.binding("util")}catch{}}(),W=re&&re.isTypedArray;function de(J,Pe){for(var nt=-1,Yt=J==null?0:J.length,wr=0,tr=[];++nt<Yt;){var Yr=J[nt];Pe(Yr,nt,J)&&(tr[wr++]=Yr)}return tr}function Ie(J,Pe){for(var nt=-1,Yt=Pe.length,wr=J.length;++nt<Yt;)J[wr+nt]=Pe[nt];return J}function Ee(J,Pe){for(var nt=-1,Yt=J==null?0:J.length;++nt<Yt;)if(Pe(J[nt],nt,J))return!0;return!1}function ve(J,Pe){for(var nt=-1,Yt=Array(J);++nt<J;)Yt[nt]=Pe(nt);return Yt}function me(J){return function(Pe){return J(Pe)}}function Se(J,Pe){return J.has(Pe)}function De(J,Pe){return J==null?void 0:J[Pe]}function j(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt,wr){nt[++Pe]=[wr,Yt]}),nt}function oe(J,Pe){return function(nt){return J(Pe(nt))}}function pe(J){var Pe=-1,nt=Array(J.size);return J.forEach(function(Yt){nt[++Pe]=Yt}),nt}var ue=Array.prototype,le=Function.prototype,se=Object.prototype,Oe=Te["__core-js_shared__"],Ne=le.toString,Ke=se.hasOwnProperty,ut=function(){var J=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return J?"Symbol(src)_1."+J:""}(),pt=se.toString,ft=RegExp("^"+Ne.call(Ke).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=ne?Te.Buffer:void 0,Sn=Te.Symbol,Vt=Te.Uint8Array,Nt=se.propertyIsEnumerable,$e=ue.splice,yt=Sn?Sn.toStringTag:void 0,qt=Object.getOwnPropertySymbols,dn=kt?kt.isBuffer:void 0,mn=oe(Object.keys,Object),En=en(Te,"DataView"),Vn=en(Te,"Map"),hn=en(Te,"Promise"),Jt=en(Te,"Set"),Xe=en(Te,"WeakMap"),tt=en(Object,"create"),ht=Vi(En),jt=Vi(Vn),yn=Vi(hn),qn=Vi(Jt),Gn=Vi(Xe),ir=Sn?Sn.prototype:void 0,Jn=ir?ir.valueOf:void 0;function mr(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function gi(){this.__data__=tt?tt(null):{},this.size=0}function An(J){var Pe=this.has(J)&&delete this.__data__[J];return this.size-=Pe?1:0,Pe}function it(J){var Pe=this.__data__;if(tt){var nt=Pe[J];return nt===r?void 0:nt}return Ke.call(Pe,J)?Pe[J]:void 0}function ct(J){var Pe=this.__data__;return tt?Pe[J]!==void 0:Ke.call(Pe,J)}function At(J,Pe){var nt=this.__data__;return this.size+=this.has(J)?0:1,nt[J]=tt&&Pe===void 0?r:Pe,this}mr.prototype.clear=gi,mr.prototype.delete=An,mr.prototype.get=it,mr.prototype.has=ct,mr.prototype.set=At;function Mt(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function Ut(){this.__data__=[],this.size=0}function mt(J){var Pe=this.__data__,nt=Dr(Pe,J);if(nt<0)return!1;var Yt=Pe.length-1;return nt==Yt?Pe.pop():$e.call(Pe,nt,1),--this.size,!0}function ot(J){var Pe=this.__data__,nt=Dr(Pe,J);return nt<0?void 0:Pe[nt][1]}function Ve(J){return Dr(this.__data__,J)>-1}function rt(J,Pe){var nt=this.__data__,Yt=Dr(nt,J);return Yt<0?(++this.size,nt.push([J,Pe])):nt[Yt][1]=Pe,this}Mt.prototype.clear=Ut,Mt.prototype.delete=mt,Mt.prototype.get=ot,Mt.prototype.has=Ve,Mt.prototype.set=rt;function Et(J){var Pe=-1,nt=J==null?0:J.length;for(this.clear();++Pe<nt;){var Yt=J[Pe];this.set(Yt[0],Yt[1])}}function zt(){this.size=0,this.__data__={hash:new mr,map:new(Vn||Mt),string:new mr}}function bt(J){var Pe=xi(this,J).delete(J);return this.size-=Pe?1:0,Pe}function Ue(J){return xi(this,J).get(J)}function Qe(J){return xi(this,J).has(J)}function Dt(J,Pe){var nt=xi(this,J),Yt=nt.size;return nt.set(J,Pe),this.size+=nt.size==Yt?0:1,this}Et.prototype.clear=zt,Et.prototype.delete=bt,Et.prototype.get=Ue,Et.prototype.has=Qe,Et.prototype.set=Dt;function nn(J){var Pe=-1,nt=J==null?0:J.length;for(this.__data__=new Et;++Pe<nt;)this.add(J[Pe])}function wt(J){return this.__data__.set(J,r),this}function Me(J){return this.__data__.has(J)}nn.prototype.add=nn.prototype.push=wt,nn.prototype.has=Me;function Ze(J){var Pe=this.__data__=new Mt(J);this.size=Pe.size}function Ct(){this.__data__=new Mt,this.size=0}function Ot(J){var Pe=this.__data__,nt=Pe.delete(J);return this.size=Pe.size,nt}function $t(J){return this.__data__.get(J)}function Pn(J){return this.__data__.has(J)}function Bn(J,Pe){var nt=this.__data__;if(nt instanceof Mt){var Yt=nt.__data__;if(!Vn||Yt.length<n-1)return Yt.push([J,Pe]),this.size=++nt.size,this;nt=this.__data__=new Et(Yt)}return nt.set(J,Pe),this.size=nt.size,this}Ze.prototype.clear=Ct,Ze.prototype.delete=Ot,Ze.prototype.get=$t,Ze.prototype.has=Pn,Ze.prototype.set=Bn;function _r(J,Pe){var nt=He(J),Yt=!nt&&wn(J),wr=!nt&&!Yt&&ln(J),tr=!nt&&!Yt&&!wr&&Co(J),Yr=nt||Yt||wr||tr,Tr=Yr?ve(J.length,String):[],Vr=Tr.length;for(var $r in J)Ke.call(J,$r)&&!(Yr&&($r=="length"||wr&&($r=="offset"||$r=="parent")||tr&&($r=="buffer"||$r=="byteLength"||$r=="byteOffset")||Wr($r,Vr)))&&Tr.push($r);return Tr}function Dr(J,Pe){for(var nt=J.length;nt--;)if(xo(J[nt][0],Pe))return nt;return-1}function hr(J,Pe,nt){var Yt=Pe(J);return He(J)?Yt:Ie(Yt,nt(J))}function kr(J){return J==null?J===void 0?M:w:yt&&yt in Object(J)?ze(J):_i(J)}function Kn(J){return pa(J)&&kr(J)==l}function kn(J,Pe,nt,Yt,wr){return J===Pe?!0:J==null||Pe==null||!pa(J)&&!pa(Pe)?J!==J&&Pe!==Pe:pr(J,Pe,nt,Yt,kn,wr)}function pr(J,Pe,nt,Yt,wr,tr){var Yr=He(J),Tr=He(Pe),Vr=Yr?c:Nn(J),$r=Tr?c:Nn(Pe);Vr=Vr==l?E:Vr,$r=$r==l?E:$r;var ti=Vr==E,ea=$r==E,Oi=Vr==$r;if(Oi&&ln(J)){if(!ln(Pe))return!1;Yr=!0,ti=!1}if(Oi&&!ti)return tr||(tr=new Ze),Yr||Co(J)?qi(J,Pe,nt,Yt,wr,tr):ja(J,Pe,Vr,nt,Yt,wr,tr);if(!(nt&i)){var Ai=ti&&Ke.call(J,"__wrapped__"),ji=ea&&Ke.call(Pe,"__wrapped__");if(Ai||ji){var Qs=Ai?J.value():J,Sa=ji?Pe.value():Pe;return tr||(tr=new Ze),wr(Qs,Sa,nt,Yt,tr)}}return Oi?(tr||(tr=new Ze),sr(J,Pe,nt,Yt,wr,tr)):!1}function Nr(J){if(!la(J)||Zi(J))return!1;var Pe=vr(J)?ft:te;return Pe.test(Vi(J))}function mi(J){return pa(J)&&Ur(J.length)&&!!R[kr(J)]}function Gr(J){if(!cs(J))return mn(J);var Pe=[];for(var nt in Object(J))Ke.call(J,nt)&&nt!="constructor"&&Pe.push(nt);return Pe}function qi(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=J.length,Vr=Pe.length;if(Tr!=Vr&&!(Yr&&Vr>Tr))return!1;var $r=tr.get(J);if($r&&tr.get(Pe))return $r==Pe;var ti=-1,ea=!0,Oi=nt&a?new nn:void 0;for(tr.set(J,Pe),tr.set(Pe,J);++ti<Tr;){var Ai=J[ti],ji=Pe[ti];if(Yt)var Qs=Yr?Yt(ji,Ai,ti,Pe,J,tr):Yt(Ai,ji,ti,J,Pe,tr);if(Qs!==void 0){if(Qs)continue;ea=!1;break}if(Oi){if(!Ee(Pe,function(Sa,ca){if(!Se(Oi,ca)&&(Ai===Sa||wr(Ai,Sa,nt,Yt,tr)))return Oi.push(ca)})){ea=!1;break}}else if(!(Ai===ji||wr(Ai,ji,nt,Yt,tr))){ea=!1;break}}return tr.delete(J),tr.delete(Pe),ea}function ja(J,Pe,nt,Yt,wr,tr,Yr){switch(nt){case U:if(J.byteLength!=Pe.byteLength||J.byteOffset!=Pe.byteOffset)return!1;J=J.buffer,Pe=Pe.buffer;case V:return!(J.byteLength!=Pe.byteLength||!tr(new Vt(J),new Vt(Pe)));case d:case f:case A:return xo(+J,+Pe);case h:return J.name==Pe.name&&J.message==Pe.message;case S:case I:return J==Pe+"";case m:var Tr=j;case _:var Vr=Yt&i;if(Tr||(Tr=pe),J.size!=Pe.size&&!Vr)return!1;var $r=Yr.get(J);if($r)return $r==Pe;Yt|=a,Yr.set(J,Pe);var ti=qi(Tr(J),Tr(Pe),Yt,wr,tr,Yr);return Yr.delete(J),ti;case F:if(Jn)return Jn.call(J)==Jn.call(Pe)}return!1}function sr(J,Pe,nt,Yt,wr,tr){var Yr=nt&i,Tr=$i(J),Vr=Tr.length,$r=$i(Pe),ti=$r.length;if(Vr!=ti&&!Yr)return!1;for(var ea=Vr;ea--;){var Oi=Tr[ea];if(!(Yr?Oi in Pe:Ke.call(Pe,Oi)))return!1}var Ai=tr.get(J);if(Ai&&tr.get(Pe))return Ai==Pe;var ji=!0;tr.set(J,Pe),tr.set(Pe,J);for(var Qs=Yr;++ea<Vr;){Oi=Tr[ea];var Sa=J[Oi],ca=Pe[Oi];if(Yt)var za=Yr?Yt(ca,Sa,Oi,Pe,J,tr):Yt(Sa,ca,Oi,J,Pe,tr);if(!(za===void 0?Sa===ca||wr(Sa,ca,nt,Yt,tr):za)){ji=!1;break}Qs||(Qs=Oi=="constructor")}if(ji&&!Qs){var Is=J.constructor,Ci=Pe.constructor;Is!=Ci&&"constructor"in J&&"constructor"in Pe&&!(typeof Is=="function"&&Is instanceof Is&&typeof Ci=="function"&&Ci instanceof Ci)&&(ji=!1)}return tr.delete(J),tr.delete(Pe),ji}function $i(J){return hr(J,ts,Gt)}function xi(J,Pe){var nt=J.__data__;return si(Pe)?nt[typeof Pe=="string"?"string":"hash"]:nt.map}function en(J,Pe){var nt=De(J,Pe);return Nr(nt)?nt:void 0}function ze(J){var Pe=Ke.call(J,yt),nt=J[yt];try{J[yt]=void 0;var Yt=!0}catch{}var wr=pt.call(J);return Yt&&(Pe?J[yt]=nt:delete J[yt]),wr}var Gt=qt?function(J){return J==null?[]:(J=Object(J),de(qt(J),function(Pe){return Nt.call(J,Pe)}))}:di,Nn=kr;(En&&Nn(new En(new ArrayBuffer(1)))!=U||Vn&&Nn(new Vn)!=m||hn&&Nn(hn.resolve())!=x||Jt&&Nn(new Jt)!=_||Xe&&Nn(new Xe)!=L)&&(Nn=function(J){var Pe=kr(J),nt=Pe==E?J.constructor:void 0,Yt=nt?Vi(nt):"";if(Yt)switch(Yt){case ht:return U;case jt:return m;case yn:return x;case qn:return _;case Gn:return L}return Pe});function Wr(J,Pe){return Pe=Pe??s,!!Pe&&(typeof J=="number"||Y.test(J))&&J>-1&&J%1==0&&J<Pe}function si(J){var Pe=typeof J;return Pe=="string"||Pe=="number"||Pe=="symbol"||Pe=="boolean"?J!=="__proto__":J===null}function Zi(J){return!!ut&&ut in J}function cs(J){var Pe=J&&J.constructor,nt=typeof Pe=="function"&&Pe.prototype||se;return J===nt}function _i(J){return pt.call(J)}function Vi(J){if(J!=null){try{return Ne.call(J)}catch{}try{return J+""}catch{}}return""}function xo(J,Pe){return J===Pe||J!==J&&Pe!==Pe}var wn=Kn(function(){return arguments}())?Kn:function(J){return pa(J)&&Ke.call(J,"callee")&&!Nt.call(J,"callee")},He=Array.isArray;function xt(J){return J!=null&&Ur(J.length)&&!vr(J)}var ln=dn||Qr;function er(J,Pe){return kn(J,Pe)}function vr(J){if(!la(J))return!1;var Pe=kr(J);return Pe==g||Pe==v||Pe==u||Pe==C}function Ur(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=s}function la(J){var Pe=typeof J;return J!=null&&(Pe=="object"||Pe=="function")}function pa(J){return J!=null&&typeof J=="object"}var Co=W?me(W):mi;function ts(J){return xt(J)?_r(J):Gr(J)}function di(){return[]}function Qr(){return!1}t.exports=er}(I6,I6.exports);var sz=I6.exports,ax={};Object.defineProperty(ax,"__esModule",{value:!0});const sEe=az,oEe=sz;var sx;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=sEe(s);l||(c=Object.keys(c).reduce((u,d)=>(c[d]!=null&&(u[d]=c[d]),u),{}));for(const u in a)a[u]!==void 0&&s[u]===void 0&&(c[u]=a[u]);return Object.keys(c).length>0?c:void 0}t.compose=e;function n(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});const l=Object.keys(a).concat(Object.keys(s)).reduce((c,u)=>(oEe(a[u],s[u])||(c[u]=s[u]===void 0?null:s[u]),c),{});return Object.keys(l).length>0?l:void 0}t.diff=n;function r(a={},s={}){a=a||{};const l=Object.keys(s).reduce((c,u)=>(s[u]!==a[u]&&a[u]!==void 0&&(c[u]=s[u]),c),{});return Object.keys(a).reduce((c,u)=>(a[u]!==s[u]&&s[u]===void 0&&(c[u]=null),c),l)}t.invert=r;function i(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;const c=Object.keys(s).reduce((u,d)=>(a[d]===void 0&&(u[d]=s[d]),u),{});return Object.keys(c).length>0?c:void 0}t.transform=i})(sx||(sx={})),ax.default=sx;var _6={};Object.defineProperty(_6,"__esModule",{value:!0});var ox;(function(t){function e(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}t.length=e})(ox||(ox={})),_6.default=ox;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});const oz=_6;class lEe{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const n=this.ops[this.index];if(n){const r=this.offset,i=oz.default.length(n);if(e>=i-r?(e=i-r,this.index+=1,this.offset=0):this.offset+=e,typeof n.delete=="number")return{delete:e};{const a={};return n.attributes&&(a.attributes=n.attributes),typeof n.retain=="number"?a.retain=e:typeof n.retain=="object"&&n.retain!==null?a.retain=n.retain:typeof n.insert=="string"?a.insert=n.insert.substr(r,e):a.insert=n.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?oz.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?typeof e.delete=="number"?"delete":typeof e.retain=="number"||typeof e.retain=="object"&&e.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const e=this.offset,n=this.index,r=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=n,[r].concat(i)}}else return[]}}lx.default=lEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=aEe,r=az,i=sz,a=ax;e.AttributeMap=a.default;const s=_6;e.Op=s.default;const l=lx;e.OpIterator=l.default;const c="\0",u=(f,h)=>{if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);const g=Object.keys(f)[0];if(!g||g!==Object.keys(h)[0])throw new Error(`embed types not matched: ${g} != ${Object.keys(h)[0]}`);return[g,f[g],h[g]]};class d{constructor(h){Array.isArray(h)?this.ops=h:h!=null&&Array.isArray(h.ops)?this.ops=h.ops:this.ops=[]}static registerEmbed(h,g){this.handlers[h]=g}static unregisterEmbed(h){delete this.handlers[h]}static getHandler(h){const g=this.handlers[h];if(!g)throw new Error(`no handlers for embed type "${h}"`);return g}insert(h,g){const v={};return typeof h=="string"&&h.length===0?this:(v.insert=h,g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v))}delete(h){return h<=0?this:this.push({delete:h})}retain(h,g){if(typeof h=="number"&&h<=0)return this;const v={retain:h};return g!=null&&typeof g=="object"&&Object.keys(g).length>0&&(v.attributes=g),this.push(v)}push(h){let g=this.ops.length,v=this.ops[g-1];if(h=r(h),typeof v=="object"){if(typeof h.delete=="number"&&typeof v.delete=="number")return this.ops[g-1]={delete:v.delete+h.delete},this;if(typeof v.delete=="number"&&h.insert!=null&&(g-=1,v=this.ops[g-1],typeof v!="object"))return this.ops.unshift(h),this;if(i(h.attributes,v.attributes)){if(typeof h.insert=="string"&&typeof v.insert=="string")return this.ops[g-1]={insert:v.insert+h.insert},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this;if(typeof h.retain=="number"&&typeof v.retain=="number")return this.ops[g-1]={retain:v.retain+h.retain},typeof h.attributes=="object"&&(this.ops[g-1].attributes=h.attributes),this}}return g===this.ops.length?this.ops.push(h):this.ops.splice(g,0,h),this}chop(){const h=this.ops[this.ops.length-1];return h&&typeof h.retain=="number"&&!h.attributes&&this.ops.pop(),this}filter(h){return this.ops.filter(h)}forEach(h){this.ops.forEach(h)}map(h){return this.ops.map(h)}partition(h){const g=[],v=[];return this.forEach(m=>{(h(m)?g:v).push(m)}),[g,v]}reduce(h,g){return this.ops.reduce(h,g)}changeLength(){return this.reduce((h,g)=>g.insert?h+s.default.length(g):g.delete?h-g.delete:h,0)}length(){return this.reduce((h,g)=>h+s.default.length(g),0)}slice(h=0,g=1/0){const v=[],m=new l.default(this.ops);let A=0;for(;A<g&&m.hasNext();){let w;A<h?w=m.next(h-A):(w=m.next(g-A),v.push(w)),A+=s.default.length(w)}return new d(v)}compose(h){const g=new l.default(this.ops),v=new l.default(h.ops),m=[],A=v.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let E=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=E;)E-=g.peekLength(),m.push(g.next());A.retain-E>0&&v.next(A.retain-E)}const w=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")w.push(v.next());else if(g.peekType()==="delete")w.push(g.next());else{const E=Math.min(g.peekLength(),v.peekLength()),x=g.next(E),C=v.next(E);if(C.retain){const S={};if(typeof x.retain=="number")S.retain=typeof C.retain=="number"?E:C.retain;else if(typeof C.retain=="number")x.retain==null?S.insert=x.insert:S.retain=x.retain;else{const I=x.retain==null?"insert":"retain",[F,M,L]=u(x[I],C.retain),V=d.getHandler(F);S[I]={[F]:V.compose(M,L,I==="retain")}}const _=a.default.compose(x.attributes,C.attributes,typeof x.retain=="number");if(_&&(S.attributes=_),w.push(S),!v.hasNext()&&i(w.ops[w.ops.length-1],S)){const I=new d(g.rest());return w.concat(I).chop()}}else typeof C.delete=="number"&&(typeof x.retain=="number"||typeof x.retain=="object"&&x.retain!==null)&&w.push(C)}return w.chop()}concat(h){const g=new d(this.ops.slice());return h.ops.length>0&&(g.push(h.ops[0]),g.ops=g.ops.concat(h.ops.slice(1))),g}diff(h,g){if(this.ops===h.ops)return new d;const v=[this,h].map(x=>x.map(C=>{if(C.insert!=null)return typeof C.insert=="string"?C.insert:c;const S=x===h?"on":"with";throw new Error("diff() called "+S+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),w=new l.default(this.ops),E=new l.default(h.ops);return A.forEach(x=>{let C=x[1].length;for(;C>0;){let S=0;switch(x[0]){case n.INSERT:S=Math.min(E.peekLength(),C),m.push(E.next(S));break;case n.DELETE:S=Math.min(C,w.peekLength()),w.next(S),m.delete(S);break;case n.EQUAL:S=Math.min(w.peekLength(),E.peekLength(),C);const _=w.next(S),I=E.next(S);i(_.insert,I.insert)?m.retain(S,a.default.diff(_.attributes,I.attributes)):m.push(I).delete(S);break}C-=S}}),m.chop()}eachLine(h,g=`
|
|
4374
4374
|
`){const v=new l.default(this.ops);let m=new d,A=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const w=v.peek(),E=s.default.length(w)-v.peekLength(),x=typeof w.insert=="string"?w.insert.indexOf(g,E)-E:-1;if(x<0)m.push(v.next());else if(x>0)m.push(v.next(x));else{if(h(m,v.next(1).attributes||{},A)===!1)return;A+=1,m=new d}}m.length()>0&&h(m,{},A)}invert(h){const g=new d;return this.reduce((v,m)=>{if(m.insert)g.delete(s.default.length(m));else{if(typeof m.retain=="number"&&m.attributes==null)return g.retain(m.retain),v+m.retain;if(m.delete||typeof m.retain=="number"){const A=m.delete||m.retain;return h.slice(v,v+A).forEach(E=>{m.delete?g.push(E):m.retain&&m.attributes&&g.retain(s.default.length(E),a.default.invert(m.attributes,E.attributes))}),v+A}else if(typeof m.retain=="object"&&m.retain!==null){const A=h.slice(v,v+1),w=new l.default(A.ops).next(),[E,x,C]=u(m.retain,w.insert),S=d.getHandler(E);return g.retain({[E]:S.invert(x,C)},a.default.invert(m.attributes,w.attributes)),v+1}}return v},0),g.chop()}transform(h,g=!1){if(g=!!g,typeof h=="number")return this.transformPosition(h,g);const v=h,m=new l.default(this.ops),A=new l.default(v.ops),w=new d;for(;m.hasNext()||A.hasNext();)if(m.peekType()==="insert"&&(g||A.peekType()!=="insert"))w.retain(s.default.length(m.next()));else if(A.peekType()==="insert")w.push(A.next());else{const E=Math.min(m.peekLength(),A.peekLength()),x=m.next(E),C=A.next(E);if(x.delete)continue;if(C.delete)w.push(C);else{const S=x.retain,_=C.retain;let I=typeof _=="object"&&_!==null?_:E;if(typeof S=="object"&&S!==null&&typeof _=="object"&&_!==null){const F=Object.keys(S)[0];if(F===Object.keys(_)[0]){const M=d.getHandler(F);M&&(I={[F]:M.transform(S[F],_[F],g)})}}w.retain(I,a.default.transform(x.attributes,C.attributes,g))}}return w.chop()}transformPosition(h,g=!1){g=!!g;const v=new l.default(this.ops);let m=0;for(;v.hasNext()&&m<=h;){const A=v.peekLength(),w=v.peekType();if(v.next(),w==="delete"){h-=Math.min(A,h-m);continue}else w==="insert"&&(m<h||!g)&&(h+=A);m+=A}return h}}d.Op=s.default,d.OpIterator=l.default,d.AttributeMap=a.default,d.handlers={},e.default=d,t.exports=d,t.exports.default=d}(tx,tx.exports);var Xo=tx.exports;const rr=ao(Xo);class iu extends ql{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}iu.blotName="break",iu.tagName="BR";let au=class extends x6{};const cEe={"&":"&","<":"<",">":">",'"':""","'":"'"};function D6(t){return t.replace(/[&<>"']/g,e=>cEe[e])}const Xu=class Xu extends QS{static compare(e,n){const r=Xu.order.indexOf(e),i=Xu.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}formatAt(e,n,r,i){if(Xu.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ar.BLOT)){const a=this.isolate(e,n);i&&a.wrap(r,i)}else super.formatAt(e,n,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof Xu&&Xu.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};jn(Xu,"allowedChildren",[Xu,iu,ql,au]),jn(Xu,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Yu=Xu;const lz=1;class Ws extends sm{constructor(){super(...arguments);jn(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=cz(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,a){r<=0||(this.scroll.query(i,ar.BLOCK)?n+r===this.length()&&this.format(i,a):super.formatAt(n,Math.min(r,this.length()-n-1),i,a),this.cache={})}insertAt(n,r,i){if(i!=null){super.insertAt(n,r,i),this.cache={};return}if(r.length===0)return;const a=r.split(`
|
|
4375
4375
|
`),s=a.shift();s.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((c,u)=>(l=l.split(c,!0),l.insertAt(0,u),u.length),n+s.length)}insertBefore(n,r){const{head:i}=this.children;super.insertBefore(n,r),i instanceof iu&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+lz),this.cache.length}moveChildren(n,r){super.moveChildren(n,r),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(n===0||n>=this.length()-lz)){const a=this.clone();return n===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}const i=super.split(n,r);return this.cache={},i}}Ws.blotName="block",Ws.tagName="P",Ws.defaultChild=iu,Ws.allowedChildren=[iu,Yu,ql,au];class mc extends ql{attach(){super.attach(),this.attributes=new w6(this.domNode)}delta(){return new rr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,n){const r=this.scroll.query(e,ar.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,n)}formatAt(e,n,r,i){this.format(r,i)}insertAt(e,n,r){if(r!=null){super.insertAt(e,n,r);return}const i=n.split(`
|
|
4376
4376
|
`),a=i.pop(),s=i.map(c=>{const u=this.scroll.create(Ws.blotName);return u.insertAt(0,c),u}),l=this.split(e);s.forEach(c=>{this.parent.insertBefore(c,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}}mc.scope=ar.BLOCK_BLOT;function cz(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(wo).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),vc(r,{},e)),new rr).insert(`
|
|
@@ -58136,7 +58136,7 @@ var que = function() {
|
|
|
58136
58136
|
theme: i.theme,
|
|
58137
58137
|
formats: i.formats
|
|
58138
58138
|
};
|
|
58139
|
-
que ? A(new Quill(d.current, V)) : import("./quill-
|
|
58139
|
+
que ? A(new Quill(d.current, V)) : import("./quill-DgJ49QSg.js").then(function(B) {
|
|
58140
58140
|
if (B && Se.isExist(d.current)) {
|
|
58141
58141
|
var F;
|
|
58142
58142
|
B.default ? F = new B.default(d.current, V) : F = new B(d.current, V), A(F);
|
|
@@ -131771,13 +131771,15 @@ const ZEe = () => {
|
|
|
131771
131771
|
const B = t;
|
|
131772
131772
|
let F = 0;
|
|
131773
131773
|
return B === qd ? F = s : B === X3 ? F = d : B === K3 || B === m8 || B === Lf ? F = u : B === V1 || B === Tp ? F = l : B === cf && (F = o), F;
|
|
131774
|
-
}, p = Un()
|
|
131774
|
+
}, p = Un();
|
|
131775
|
+
console.log("first", r);
|
|
131776
|
+
const g = r != null && r.getPaginatedAssessmentQuestionBankList ? r == null ? void 0 : r.getPaginatedAssessmentQuestionBankList : () => {
|
|
131775
131777
|
}, v = r != null && r.getPaginatedAssessmentQuestionBankListFromStore ? r == null ? void 0 : r.getPaginatedAssessmentQuestionBankListFromStore : [], m = r != null && r.updateQuestionBankStates ? r == null ? void 0 : r.updateQuestionBankStates : () => {
|
|
131776
131778
|
}, w = r != null && r.assessmentSearchFilterCourseCategoryId ? r == null ? void 0 : r.assessmentSearchFilterCourseCategoryId : null, x = r != null && r.assessmentSearchFilterCourseSubjectId ? r == null ? void 0 : r.assessmentSearchFilterCourseSubjectId : null, E = r != null && r.AssessmentQuestionBankLoading ? r == null ? void 0 : r.AssessmentQuestionBankLoading : !1, S = r != null && r.AssessmentQuestionBankPaginator ? r == null ? void 0 : r.AssessmentQuestionBankPaginator : () => /* @__PURE__ */ c(we, {}), T = r != null && r.courseCategoryList ? r == null ? void 0 : r.courseCategoryList : [], A = r != null && r.getCourseCategoryList ? r == null ? void 0 : r.getCourseCategoryList : () => {
|
|
131777
131779
|
}, D = r != null && r.subjectList ? r == null ? void 0 : r.subjectList : [], _ = r != null && r.getSubjectList ? r == null ? void 0 : r.getSubjectList : () => {
|
|
131778
131780
|
}, [k, M] = Pe([]);
|
|
131779
131781
|
hn(() => (t === qd && (A(), _()), () => {
|
|
131780
|
-
}), []);
|
|
131782
|
+
}), [t]);
|
|
131781
131783
|
const L = Dr(() => {
|
|
131782
131784
|
const B = v.map(
|
|
131783
131785
|
(F) => {
|
|
@@ -131827,6 +131829,7 @@ const ZEe = () => {
|
|
|
131827
131829
|
};
|
|
131828
131830
|
return hn(() => (t === qd && g(), () => {
|
|
131829
131831
|
}), [
|
|
131832
|
+
t,
|
|
131830
131833
|
w,
|
|
131831
131834
|
x
|
|
131832
131835
|
]), /* @__PURE__ */ c(we, { children: /* @__PURE__ */ I(Ra, { activeIndex: f(), scrollable: !0, children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Bl = Object.defineProperty;
|
|
2
2
|
var Ml = (n, t, e) => t in n ? Bl(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var T = (n, t, e) => Ml(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-
|
|
4
|
+
import { d as ti, i as Rr, a as Hi, b as Dl, e as Br, M as Ul, S as ei, U as si, g as ni, c as ri, f as fr, h as zs, j as $i, k as Vs, l as dr, m as Pl, n as jl, o as Fi, p as Hl, q as $l, r as Fl, s as zl, t as ii, u as Kl, v as Gl, w as Ft, x as zi, y as xe } from "./main-DQ-CSEQg.js";
|
|
5
5
|
function Ki(n) {
|
|
6
6
|
return n;
|
|
7
7
|
}
|