cft-builder 0.2.140 → 0.2.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- 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-BnSvwnJD.js";
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-Bmz4AfP2.js";
2
2
  export {
3
3
  s as BuilderItems,
4
4
  o as BuilderItemsRender,
@@ -4373,7 +4373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4373
4373
  stroke: #ffa700;
4374
4374
  }
4375
4375
  }
4376
- `,rTe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},Z5=Un.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:tTe,styles:nTe,inlineStyles:rTe}}),Vj=b.memo(b.forwardRef(function(t,e){var n=Rn(),r=b.useContext(or),i=Z5.getProps(t,r),a=b.useRef(null),s=Z5.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ui(Z5.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:ht(i.className,c("root")),role:"progressbar","aria-busy":!0},Z5.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)))}));Vj.displayName="ProgressSpinner";const iTe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Wt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const K=t;let ce=0;return K===Jd?ce=s:K===xm?ce=d:K===Cm||K===W9||K===af?ce=u:K===j0||K===fp?ce=c:K===z0&&(ce=l),ce},h=F.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,S=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,T=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,C=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{});r!=null&&r.courseCategoryList&&(r==null||r.courseCategoryList);const x=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{};r!=null&&r.subjectList&&(r==null||r.subjectList);const w=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[I,_]=F.useState([]),[N,O]=F.useState("");F.useEffect(()=>(t===Jd&&(x(),w()),()=>{}),[t]);const k=F.useCallback(()=>{const K=v.map(ce=>{var he;const X=JSON.parse(ce.question_meta_data),ne=JSON.parse(ce.meta_data);return{label:(he=X==null?void 0:X.questionText)==null?void 0:he[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:tt(),componentType:"question",questionText:X==null?void 0:X.questionText,questionTextImage:ne==null?void 0:ne.questionImage,answerInputType:X!=null&&X.answerInputType?X==null?void 0:X.answerInputType:"radio",answerOptions:X==null?void 0:X.answerOptions,isHidden:!1,subject_title:ce==null?void 0:ce.subject_title,course_category_title:ce==null?void 0:ce.course_category_title,subject_id:ce==null?void 0:ce.subject_id,course_category_id:ce==null?void 0:ce.course_category_id,created_by_id:null,date_created:ce==null?void 0:ce.created_at},subject_title:ce==null?void 0:ce.subject_title,course_category_title:ce==null?void 0:ce.course_category_title,uuid:tt(),type:nr,componentType:"question"}});_(K)},[v,i==null?void 0:i.type]);F.useEffect(()=>{k()},[]);const M=()=>{h.current&&h.current};F.useEffect(()=>(t===Jd&&g(),()=>{}),[t,A,S]);const j=()=>{m({filter:N,page:1,per_page:10,sort:"created_at|desc"})},[P,$]=F.useState(f());return F.useEffect(()=>{$(f())},[t]),o.jsx(o.Fragment,{children:o.jsxs(as,{activeIndex:P,onTabChange:K=>$(K.index),scrollable:!0,children:[t===z0&&o.jsx(Sr,{header:"Survey",children:CQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid scroll-height-300",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))}),(t===j0||t===fp)&&o.jsx(Sr,{header:"Form",children:o.jsx("div",{className:"scroll-height-300",children:wQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid scroll-height-300",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===Cm||t===W9||t===af)&&o.jsx(Sr,{header:"Layout",children:o.jsx("div",{className:"scroll-height-300",children:AK.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid scroll-height-300",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===z0||t===j0||t===fp)&&o.jsx(Sr,{header:"Layout",children:o.jsx("div",{className:"scroll-height-300",children:SQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),t===Jd&&o.jsx(Sr,{header:"Question bank",children:o.jsxs("div",{className:"grid scroll-height-300",children:[o.jsx("div",{className:"col-12",children:yK.map((K,ce)=>o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>{const he=Et.cloneDeep(X);return o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:he},X.uuid)},"form_elements_"+ne)})},`new-quiz-${ce}`))}),o.jsx("div",{className:"col-12 ",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(wn,{placeholder:"Keyword",onChange:K=>{O(K.target.value),K.target.value||(m({filter:"",page:1,per_page:10,sort:"created_at|desc"}),g())},onKeyDown:K=>K.key==="Enter"?j():null}),o.jsx(Vt,{icon:"pi pi-search",className:"p-button-info",onClick:()=>j()})]})}),T?o.jsx(Vj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:I.map((K,ce)=>{var X,ne,he,q,W;return o.jsx("div",{onScroll:M,ref:h,className:"col-12 ",children:o.jsx(kd,{tags:[{severity:"success",label:K==null?void 0:K.subject_title},{severity:"info",label:K==null?void 0:K.course_category_title}],showIcon:(W=(q=(he=(ne=(X=a[0])==null?void 0:X.children[0])==null?void 0:ne.children[0])==null?void 0:he.children[0])==null?void 0:q.children)==null?void 0:W.some(Q=>{var Z,H,Y;return((Z=Q==null?void 0:Q.questionText)==null?void 0:Z[i.type])===((Y=(H=K==null?void 0:K.schema)==null?void 0:H.questionText)==null?void 0:Y[i.type])}),data:K},ce)},"question_elements_"+ce)})}),o.jsx(C,{})]})}),t===xm&&o.jsx(Sr,{header:"Training",children:o.jsx("div",{className:"scroll-height-300",children:xQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid scroll-height-300",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===z0||t===j0||t===fp)&&o.jsxs(Sr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((K,ce)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:{label:K==null?void 0:K.builder_element_title,element:"reusable_builder_section",schema:K==null?void 0:K.reusable_template_schema,uuid:tt(),type:aa}},K.uuid)},"reusable_elements_"+ce))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((K,ce)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:{label:K==null?void 0:K.custom_component_title,element:"custom_component",schema:JSON.parse(K==null?void 0:K.custom_component_schema),uuid:tt(),type:nr}},K.uuid)},"custom_component"+ce))})]})]})})};function qj(t){return t}function aTe(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 sTe=800,oTe=16,lTe=Date.now;function cTe(t){var e=0,n=0;return function(){var r=lTe(),i=oTe-(r-n);if(n=r,i>0){if(++e>=sTe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function uTe(t){return function(){return t}}var dTe=j3?function(t,e){return j3(t,"toString",{configurable:!0,enumerable:!1,value:uTe(e),writable:!0})}:qj,fTe=cTe(dTe),Uj=Math.max;function hTe(t,e,n){return e=Uj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Uj(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),aTe(t,this,l)}}function pTe(t,e){return fTe(hTe(t,e,qj),t+"")}function gTe(t,e,n){if(!a0(n))return!1;var r=typeof e;return(r=="number"?z3(n)&&MN(e,n.length):r=="string"&&e in n)?o2(n[e],t):!1}function mTe(t){return pTe(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&&gTe(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 vTe="__lodash_hash_undefined__";function bTe(t){return this.__data__.set(t,vTe),this}function yTe(t){return this.__data__.has(t)}function e9(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new sd;++e<n;)this.add(t[e])}e9.prototype.add=e9.prototype.push=bTe,e9.prototype.has=yTe;function ATe(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 wTe(t,e){return t.has(e)}var STe=1,CTe=2;function $j(t,e,n,r,i,a){var s=n&STe,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&CTe?new e9: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(!ATe(e,function(S,T){if(!wTe(g,T)&&(v===S||i(v,S,n,r,a)))return g.push(T)})){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 xTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function TTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ETe=1,ITe=2,_Te="[object Boolean]",DTe="[object Date]",NTe="[object Error]",OTe="[object Map]",FTe="[object Number]",kTe="[object RegExp]",PTe="[object Set]",MTe="[object String]",LTe="[object Symbol]",BTe="[object ArrayBuffer]",VTe="[object DataView]",jj=fu?fu.prototype:void 0,US=jj?jj.valueOf:void 0;function qTe(t,e,n,r,i,a,s){switch(n){case VTe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case BTe:return!(t.byteLength!=e.byteLength||!a(new H3(t),new H3(e)));case _Te:case DTe:case FTe:return o2(+t,+e);case NTe:return t.name==e.name&&t.message==e.message;case kTe:case MTe:return t==e+"";case OTe:var l=xTe;case PTe:var c=r&ETe;if(l||(l=TTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=ITe,s.set(t,e);var d=$j(l(t),l(e),r,i,a,s);return s.delete(t),d;case LTe:if(US)return US.call(t)==US.call(e)}return!1}var UTe=1,$Te=Object.prototype,jTe=$Te.hasOwnProperty;function zTe(t,e,n,r,i,a){var s=n&UTe,l=R7(t),c=l.length,u=R7(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:jTe.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 S=t[h],T=e[h];if(r)var C=s?r(T,S,h,e,t,a):r(S,T,h,t,e,a);if(!(C===void 0?S===T||i(S,T,n,r,a):C)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(m=!1)}return a.delete(t),a.delete(e),m}var HTe=1,zj="[object Arguments]",Hj="[object Array]",t9="[object Object]",YTe=Object.prototype,Yj=YTe.hasOwnProperty;function KTe(t,e,n,r,i,a){var s=od(t),l=od(e),c=s?Hj:Nc(t),u=l?Hj:Nc(e);c=c==zj?t9:c,u=u==zj?t9:u;var d=c==t9,f=u==t9,h=c==u;if(h&&d2(t)){if(!d2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new pu),s||j7(t)?$j(t,e,n,r,i,a):qTe(t,e,c,n,r,i,a);if(!(n&HTe)){var g=d&&Yj.call(t,"__wrapped__"),v=f&&Yj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new pu),i(m,A,n,r,a)}}return h?(a||(a=new pu),zTe(t,e,n,r,i,a)):!1}function Kj(t,e,n,r,i){return t===e?!0:t==null||e==null||!hu(t)&&!hu(e)?t!==t&&e!==e:KTe(t,e,n,r,Kj,i)}function RTe(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 XTe=RTe();function $S(t,e,n){(n!==void 0&&!o2(t[e],n)||n===void 0&&!(e in t))&&V7(t,e,n)}function GTe(t){return hu(t)&&z3(t)}function jS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function WTe(t){return u2(t,h2(t))}function QTe(t,e,n,r,i,a,s){var l=jS(t,n),c=jS(e,n),u=s.get(c);if(u){$S(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=od(c),g=!h&&d2(c),v=!h&&!g&&j7(c);d=c,h||g||v?od(l)?d=l:GTe(l)?d=Y7(l):g?(f=!1,d=HN(c,!0)):v?(f=!1,d=rO(c,!0)):d=[]:M7(c)||q7(c)?(d=l,q7(l)?d=WTe(l):(!a0(l)||L7(l))&&(d=aO(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),$S(t,n,d)}function Rj(t,e,n,r,i){t!==e&&XTe(e,function(a,s){if(i||(i=new pu),a0(a))QTe(t,e,s,n,Rj,r,i);else{var l=r?r(jS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),$S(t,s,l)}},h2)}function zS(t,e){return Kj(t,e)}var E0=mTe(function(t,e,n){Rj(t,e,n)}),dr=(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))(dr||{});class Vu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=dr.TYPE&dr.ATTRIBUTE;this.scope=r.scope!=null?r.scope&dr.LEVEL|i:dr.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 Rh extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Xj=class Tx{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 Rh(`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 Tx.blots.set(l.domNode,l),l}find(e,n=!1){return Tx.find(e,n)}query(e,n=dr.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&dr.LEVEL&dr.BLOCK?r=this.types.block:e&dr.LEVEL&dr.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&dr.LEVEL&r.scope&&n&dr.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 Rh("Invalid definition");if(r&&n.blotName==="abstract")throw new Rh("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})}};Xj.blots=new WeakMap;let Xh=Xj;function Gj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class JTe extends Vu{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){Gj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(Gj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const Kc=JTe;function HS(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 Vu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[HS(this.keyName)]=n,!0):!1}remove(e){e.style[HS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[HS(this.keyName)];return this.canAdd(e,n)?n:""}}const I0=ZTe;class eEe{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=Xh.find(this.domNode);if(e==null)return;const n=Vu.keys(this.domNode),r=Kc.keys(this.domNode),i=I0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,dr.ATTRIBUTE);s instanceof Vu&&(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 n9=eEe,Wj=class{constructor(e,n){this.scroll=e,this.domNode=n,Xh.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Rh("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),Xh.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,dr.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,dr.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 Rh(`Cannot wrap ${e}`);return r.appendChild(this),r}};Wj.blotName="abstract";let Qj=Wj;const Jj=class extends Qj{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}}};Jj.scope=dr.INLINE_BLOT;const yo=Jj;class tEe{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 Zj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(dr.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const ez=class U0 extends Qj{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,U0.uiClass&&this.uiNode.classList.add(U0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new tEe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Zj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof Rh)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 U0?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 U0&&(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===dr.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof U0?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 U0?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 U0&&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=Zj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};ez.uiClass="";const Rc=ez;function nEe(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 Gh=class dp extends Rc{static create(e){return super.create(e)}static formats(e,n){const r=n.query(dp.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 n9(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof dp||(r=r.wrap(dp.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,dr.INLINE);if(r==null)return;r instanceof Vu?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,dr.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 dp&&r.prev===this&&nEe(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 dp&&this.attributes.move(r),r}};Gh.allowedChildren=[Gh,yo],Gh.blotName="inline",Gh.scope=dr.INLINE_BLOT,Gh.tagName="SPAN";const YS=Gh,Wh=class Ex extends Rc{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Ex.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 n9(this.domNode)}format(e,n){const r=this.scroll.query(e,dr.BLOCK);r!=null&&(r instanceof Vu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(Ex.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,dr.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,dr.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()}};Wh.blotName="block",Wh.scope=dr.BLOCK_BLOT,Wh.tagName="P",Wh.allowedChildren=[YS,Wh,yo];const Hg=Wh,KS=class extends Rc{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())}};KS.blotName="container",KS.scope=dr.BLOCK_BLOT;const r9=KS;class rEe extends yo{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 Pl=rEe,iEe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},aEe=100,Qh=class extends Rc{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,iEe),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=dr.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 Rc&&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>=aEe)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 Rc&&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)}};Qh.blotName="scroll",Qh.defaultChild=Hg,Qh.allowedChildren=[Hg,r9],Qh.scope=dr.BLOCK_BLOT,Qh.tagName="DIV";const RS=Qh,XS=class YY extends yo{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 YY&&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}};XS.blotName="text",XS.scope=dr.INLINE_BLOT;const i9=XS,tz=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Vu,AttributorStore:n9,BlockBlot:Hg,ClassAttributor:Kc,ContainerBlot:r9,EmbedBlot:Pl,InlineBlot:YS,LeafBlot:yo,ParentBlot:Rc,Registry:Xh,Scope:dr,ScrollBlot:RS,StyleAttributor:I0,TextBlot:i9},Symbol.toStringTag,{value:"Module"}));var GS={exports:{}},Ml=-1,qo=1,Ns=0;function Yg(t,e,n,r,i){if(t===e)return t?[[Ns,t]]:[];if(n!=null){var a=pEe(t,e,n);if(a)return a}var s=WS(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=a9(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=sEe(t,e);return l&&u.unshift([Ns,l]),c&&u.push([Ns,c]),QS(u,i),r&&cEe(u),u}function sEe(t,e){var n;if(!t)return[[qo,e]];if(!e)return[[Ml,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=[[qo,r.substring(0,a)],[Ns,i],[qo,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=Ml),n;if(i.length===1)return[[Ml,t],[qo,e]];var s=lEe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=Yg(l,u),g=Yg(c,d);return h.concat([[Ns,f]],g)}return oEe(t,e)}function oEe(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 S=-A+h;S<=A-g;S+=2){var T=a+S,C;S===-A||S!==A&&l[T-1]<l[T+1]?C=l[T+1]:C=l[T-1]+1;for(var x=C-S;C<n&&x<r&&t.charAt(C)===e.charAt(x);)C++,x++;if(l[T]=C,C>n)g+=2;else if(x>r)h+=2;else if(f){var w=a+d-S;if(w>=0&&w<s&&c[w]!==-1){var I=n-c[w];if(C>=I)return nz(t,e,C,x)}}}for(var _=-A+v;_<=A-m;_+=2){var w=a+_,I;_===-A||_!==A&&c[w-1]<c[w+1]?I=c[w+1]:I=c[w-1]+1;for(var N=I-_;I<n&&N<r&&t.charAt(n-I-1)===e.charAt(r-N-1);)I++,N++;if(c[w]=I,I>n)m+=2;else if(N>r)v+=2;else if(!f){var T=a+d-_;if(T>=0&&T<s&&l[T]!==-1){var C=l[T],x=a+C-T;if(I=n-I,C>=I)return nz(t,e,C,x)}}}}return[[Ml,t],[qo,e]]}function nz(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=Yg(i,a),u=Yg(s,l);return c.concat(u)}function WS(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 oz(t.charCodeAt(i-1))&&i--,i}function rz(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 a9(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 lz(t.charCodeAt(t.length-i))&&i--,i}function lEe(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)),S=-1,T="",C,x,w,I;(S=v.indexOf(A,S+1))!==-1;){var _=WS(g.substring(m),v.substring(S)),N=a9(g.substring(0,m),v.substring(0,S));T.length<N+_&&(T=v.substring(S-N,S)+v.substring(S,S+_),C=g.substring(0,m-N),x=g.substring(m+_),w=v.substring(0,S-N),I=v.substring(S+_))}return T.length*2>=g.length?[C,x,w,I,T]: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 cEe(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]==Ns?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==qo?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,[Ml,i]),t[n[r-1]+1][0]=qo,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&QS(t),fEe(t),a=1;a<t.length;){if(t[a-1][0]==Ml&&t[a][0]==qo){var d=t[a-1][1],f=t[a][1],h=rz(d,f),g=rz(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Ns,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,[Ns,d.substring(0,g)]),t[a-1][0]=qo,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=Ml,t[a+1][1]=d.substring(g),a++),a++}a++}}var iz=/[^a-zA-Z0-9]/,az=/\s/,sz=/[\r\n]/,uEe=/\n\r?\n$/,dEe=/^\r?\n\r?\n/;function fEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),S=m.match(iz),T=A.match(iz),C=S&&m.match(az),x=T&&A.match(az),w=C&&m.match(sz),I=x&&A.match(sz),_=w&&g.match(uEe),N=I&&v.match(dEe);return _||N?5:w||I?4:S&&!C&&x?3:C||x?2:S||T?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Ns&&t[n+1][0]==Ns){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=a9(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 QS(t,e){t.push([Ns,""]);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 qo:i++,s+=t[n][1],n++;break;case Ml:r++,a+=t[n][1],n++;break;case Ns:var c=n-i-r-1;if(e){if(c>=0&&uz(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]===qo&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===Ml&&(r++,a=t[d][1]+a,d--),c=d}}if(cz(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=WS(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Ns,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=a9(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,[qo,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[Ml,a]),n=n-f+1):(t.splice(n-f,f,[Ml,a],[qo,s]),n=n-f+2)}n!==0&&t[n-1][0]===Ns?(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]===Ns&&t[n+1][0]===Ns&&(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&&QS(t,e)}function oz(t){return t>=55296&&t<=56319}function lz(t){return t>=56320&&t<=57343}function cz(t){return lz(t.charCodeAt(0))}function uz(t){return oz(t.charCodeAt(t.length-1))}function hEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function JS(t,e,n,r){return uz(t)||cz(r)?null:hEe([[Ns,t],[Ml,e],[qo,n],[Ns,r]])}function pEe(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 S=c.slice(v),T=h.slice(v);return JS(m,S,T,u)}e:{if(d!==null&&d!==l)break e;var C=l,h=e.slice(0,C),g=e.slice(C);if(h!==c)break e;var x=Math.min(a-C,s-C),w=u.slice(u.length-x),I=g.slice(g.length-x);if(w!==I)break e;var S=u.slice(0,u.length-x),T=g.slice(0,g.length-x);return JS(c,S,T,w)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),w=t.slice(r.index+r.length),v=m.length,x=w.length;if(s<v+x)break e;var A=e.slice(0,v),I=e.slice(s-x);if(m!==A||w!==I)break e;var S=t.slice(v,a-x),T=e.slice(v,s-x);return JS(m,S,T,w)}return null}function s9(t,e,n,r){return Yg(t,e,n,r,!0)}s9.INSERT=qo,s9.DELETE=Ml,s9.EQUAL=Ns;var gEe=s9,o9={exports:{}};o9.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]",S="[object Set]",T="[object String]",C="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",I="[object DataView]",_="[object Float32Array]",N="[object Float64Array]",O="[object Int8Array]",k="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",K="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,X=/\w*$/,ne=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,q={};q[a]=q[s]=q[w]=q[I]=q[l]=q[c]=q[_]=q[N]=q[O]=q[k]=q[M]=q[h]=q[g]=q[v]=q[A]=q[S]=q[T]=q[C]=q[j]=q[P]=q[$]=q[K]=!0,q[u]=q[d]=q[x]=!1;var W=typeof ki=="object"&&ki&&ki.Object===Object&&ki,Q=typeof self=="object"&&self&&self.Object===Object&&self,Z=W||Q||Function("return this")(),H=e&&!e.nodeType&&e,Y=H&&!0&&t&&!t.nodeType&&t,oe=Y&&Y.exports===H;function be(re,Le){return re.set(Le[0],Le[1]),re}function Ce(re,Le){return re.add(Le),re}function ve(re,Le){for(var rt=-1,qt=re?re.length:0;++rt<qt&&Le(re[rt],rt,re)!==!1;);return re}function ye(re,Le){for(var rt=-1,qt=Le.length,Er=re.length;++rt<qt;)re[Er+rt]=Le[rt];return re}function te(re,Le,rt,qt){for(var Er=-1,sr=re?re.length:0;++Er<sr;)rt=Le(rt,re[Er],Er,re);return rt}function L(re,Le){for(var rt=-1,qt=Array(re);++rt<re;)qt[rt]=Le(rt);return qt}function le(re,Le){return re==null?void 0:re[Le]}function ie(re){var Le=!1;if(re!=null&&typeof re.toString!="function")try{Le=!!(re+"")}catch{}return Le}function ue(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt,Er){rt[++Le]=[Er,qt]}),rt}function Ne(re,Le){return function(rt){return re(Le(rt))}}function _e(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt){rt[++Le]=qt}),rt}var me=Array.prototype,se=Function.prototype,we=Object.prototype,ke=Z["__core-js_shared__"],R=function(){var re=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),Ae=se.toString,Se=we.hasOwnProperty,fe=we.toString,ge=RegExp("^"+Ae.call(Se).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=oe?Z.Buffer:void 0,Ve=Z.Symbol,De=Z.Uint8Array,He=Ne(Object.getPrototypeOf,Object),it=Object.create,ut=we.propertyIsEnumerable,dt=me.splice,Bt=Object.getOwnPropertySymbols,ln=pe?pe.isBuffer:void 0,Ft=Ne(Object.keys,Object),mn=Ei(Z,"DataView"),Vn=Ei(Z,"Map"),xt=Ei(Z,"Promise"),je=Ei(Z,"Set"),Ye=Ei(Z,"WeakMap"),st=Ei(Object,"create"),Jt=qr(mn),Xt=qr(Vn),Zt=qr(xt),yn=qr(je),vt=qr(Ye),Be=Ve?Ve.prototype:void 0,nt=Be?Be.valueOf:void 0;function Tt(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Mt(){this.__data__=st?st(null):{}}function Nn(re){return this.has(re)&&delete this.__data__[re]}function kn(re){var Le=this.__data__;if(st){var rt=Le[re];return rt===r?void 0:rt}return Se.call(Le,re)?Le[re]:void 0}function Qn(re){var Le=this.__data__;return st?Le[re]!==void 0:Se.call(Le,re)}function Jn(re,Le){var rt=this.__data__;return rt[re]=st&&Le===void 0?r:Le,this}Tt.prototype.clear=Mt,Tt.prototype.delete=Nn,Tt.prototype.get=kn,Tt.prototype.has=Qn,Tt.prototype.set=Jn;function br(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Or(){this.__data__=[]}function Sn(re){var Le=this.__data__,rt=ae(Le,re);if(rt<0)return!1;var qt=Le.length-1;return rt==qt?Le.pop():dt.call(Le,rt,1),!0}function ot(re){var Le=this.__data__,rt=ae(Le,re);return rt<0?void 0:Le[rt][1]}function ct(re){return ae(this.__data__,re)>-1}function yt(re,Le){var rt=this.__data__,qt=ae(rt,re);return qt<0?rt.push([re,Le]):rt[qt][1]=Le,this}br.prototype.clear=Or,br.prototype.delete=Sn,br.prototype.get=ot,br.prototype.has=ct,br.prototype.set=yt;function Nt(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Cn(){this.__data__={hash:new Tt,map:new(Vn||br),string:new Tt}}function On(re){return ji(this,re).delete(re)}function _t(re){return ji(this,re).get(re)}function Fe(re){return ji(this,re).has(re)}function Qe(re,Le){return ji(this,re).set(re,Le),this}Nt.prototype.clear=Cn,Nt.prototype.delete=On,Nt.prototype.get=_t,Nt.prototype.has=Fe,Nt.prototype.set=Qe;function At(re){this.__data__=new br(re)}function zt(){this.__data__=new br}function Rt(re){return this.__data__.delete(re)}function nn(re){return this.__data__.get(re)}function xn(re){return this.__data__.has(re)}function Ln(re,Le){var rt=this.__data__;if(rt instanceof br){var qt=rt.__data__;if(!Vn||qt.length<n-1)return qt.push([re,Le]),this;rt=this.__data__=new Nt(qt)}return rt.set(re,Le),this}At.prototype.clear=zt,At.prototype.delete=Rt,At.prototype.get=nn,At.prototype.has=xn,At.prototype.set=Ln;function Hn(re,Le){var rt=It(re)||Ke(re)?L(re.length,String):[],qt=rt.length,Er=!!qt;for(var sr in re)Se.call(re,sr)&&!(Er&&(sr=="length"||zn(sr,qt)))&&rt.push(sr);return rt}function at(re,Le,rt){var qt=re[Le];(!(Se.call(re,Le)&&An(qt,rt))||rt===void 0&&!(Le in re))&&(re[Le]=rt)}function ae(re,Le){for(var rt=re.length;rt--;)if(An(re[rt][0],Le))return rt;return-1}function Me(re,Le){return re&&fi(Le,wo(Le),re)}function We(re,Le,rt,qt,Er,sr,Wr){var Fr;if(qt&&(Fr=sr?qt(re,Er,sr,Wr):qt(re)),Fr!==void 0)return Fr;if(!pa(re))return re;var Tr=It(re);if(Tr){if(Fr=pn(re),!Le)return oi(re,Fr)}else{var Qr=Yi(re),Ii=Qr==d||Qr==f;if(yr(re))return Yn(re,Le);if(Qr==v||Qr==a||Ii&&!sr){if(ie(re))return sr?re:{};if(Fr=$e(Ii?{}:re),!Le)return Mi(re,Me(Fr,re))}else{if(!q[Qr])return sr?re:{};Fr=Kt(re,Qr,We,Le)}}Wr||(Wr=new At);var Qa=Wr.get(re);if(Qa)return Qa;if(Wr.set(re,Fr),!Tr)var Ki=rt?rr(re):wo(re);return ve(Ki||re,function(vi,Ca){Ki&&(Ca=vi,vi=re[Ca]),at(Fr,Ca,We(vi,Le,rt,qt,Ca,re,Wr))}),Fr}function ft(re){return pa(re)?it(re):{}}function Ct(re,Le,rt){var qt=Le(re);return It(re)?qt:ye(qt,rt(re))}function Gt(re){return fe.call(re)}function Dn(re){if(!pa(re)||Pr(re))return!1;var Le=Mr(re)||ie(re)?ge:ne;return Le.test(qr(re))}function Pn(re){if(!Wa(re))return Ft(re);var Le=[];for(var rt in Object(re))Se.call(re,rt)&&rt!="constructor"&&Le.push(rt);return Le}function Yn(re,Le){if(Le)return re.slice();var rt=new re.constructor(re.length);return re.copy(rt),rt}function Lr(re){var Le=new re.constructor(re.byteLength);return new De(Le).set(new De(re)),Le}function Xr(re,Le){var rt=Le?Lr(re.buffer):re.buffer;return new re.constructor(rt,re.byteOffset,re.byteLength)}function $n(re,Le,rt){var qt=Le?rt(ue(re),!0):ue(re);return te(qt,be,new re.constructor)}function Fn(re){var Le=new re.constructor(re.source,X.exec(re));return Le.lastIndex=re.lastIndex,Le}function lr(re,Le,rt){var qt=Le?rt(_e(re),!0):_e(re);return te(qt,Ce,new re.constructor)}function Br(re){return nt?Object(nt.call(re)):{}}function mi(re,Le){var rt=Le?Lr(re.buffer):re.buffer;return new re.constructor(rt,re.byteOffset,re.length)}function oi(re,Le){var rt=-1,qt=re.length;for(Le||(Le=Array(qt));++rt<qt;)Le[rt]=re[rt];return Le}function fi(re,Le,rt,qt){rt||(rt={});for(var Er=-1,sr=Le.length;++Er<sr;){var Wr=Le[Er],Fr=void 0;at(rt,Wr,Fr===void 0?re[Wr]:Fr)}return rt}function Mi(re,Le){return fi(re,Ci(re),Le)}function rr(re){return Ct(re,wo,Ci)}function ji(re,Le){var rt=re.__data__;return zr(Le)?rt[typeof Le=="string"?"string":"hash"]:rt.map}function Ei(re,Le){var rt=le(re,Le);return Dn(rt)?rt:void 0}var Ci=Bt?Ne(Bt,Object):Gr,Yi=Gt;(mn&&Yi(new mn(new ArrayBuffer(1)))!=I||Vn&&Yi(new Vn)!=h||xt&&Yi(xt.resolve())!=m||je&&Yi(new je)!=S||Ye&&Yi(new Ye)!=x)&&(Yi=function(re){var Le=fe.call(re),rt=Le==v?re.constructor:void 0,qt=rt?qr(rt):void 0;if(qt)switch(qt){case Jt:return I;case Xt:return h;case Zt:return m;case yn:return S;case vt:return x}return Le});function pn(re){var Le=re.length,rt=re.constructor(Le);return Le&&typeof re[0]=="string"&&Se.call(re,"index")&&(rt.index=re.index,rt.input=re.input),rt}function $e(re){return typeof re.constructor=="function"&&!Wa(re)?ft(He(re)):{}}function Kt(re,Le,rt,qt){var Er=re.constructor;switch(Le){case w:return Lr(re);case l:case c:return new Er(+re);case I:return Xr(re,qt);case _:case N:case O:case k:case M:case j:case P:case $:case K:return mi(re,qt);case h:return $n(re,qt,rt);case g:case T:return new Er(re);case A:return Fn(re);case S:return lr(re,qt,rt);case C:return Br(re)}}function zn(re,Le){return Le=Le??i,!!Le&&(typeof re=="number"||he.test(re))&&re>-1&&re%1==0&&re<Le}function zr(re){var Le=typeof re;return Le=="string"||Le=="number"||Le=="symbol"||Le=="boolean"?re!=="__proto__":re===null}function Pr(re){return!!R&&R in re}function Wa(re){var Le=re&&re.constructor,rt=typeof Le=="function"&&Le.prototype||we;return re===rt}function qr(re){if(re!=null){try{return Ae.call(re)}catch{}try{return re+""}catch{}}return""}function Os(re){return We(re,!0,!0)}function An(re,Le){return re===Le||re!==re&&Le!==Le}function Ke(re){return er(re)&&Se.call(re,"callee")&&(!ut.call(re,"callee")||fe.call(re)==a)}var It=Array.isArray;function en(re){return re!=null&&ua(re.length)&&!Mr(re)}function er(re){return zs(re)&&en(re)}var yr=ln||hi;function Mr(re){var Le=pa(re)?fe.call(re):"";return Le==d||Le==f}function ua(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=i}function pa(re){var Le=typeof re;return!!re&&(Le=="object"||Le=="function")}function zs(re){return!!re&&typeof re=="object"}function wo(re){return en(re)?Hn(re):Pn(re)}function Gr(){return[]}function hi(){return!1}t.exports=Os}(o9,o9.exports);var dz=o9.exports,l9={exports:{}};l9.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]",S="[object Null]",T="[object Object]",C="[object Promise]",x="[object Proxy]",w="[object RegExp]",I="[object Set]",_="[object String]",N="[object Symbol]",O="[object Undefined]",k="[object WeakMap]",M="[object ArrayBuffer]",j="[object DataView]",P="[object Float32Array]",$="[object Float64Array]",K="[object Int8Array]",ce="[object Int16Array]",X="[object Int32Array]",ne="[object Uint8Array]",he="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Y={};Y[P]=Y[$]=Y[K]=Y[ce]=Y[X]=Y[ne]=Y[he]=Y[q]=Y[W]=!0,Y[l]=Y[c]=Y[M]=Y[d]=Y[j]=Y[f]=Y[h]=Y[g]=Y[m]=Y[A]=Y[T]=Y[w]=Y[I]=Y[_]=Y[k]=!1;var oe=typeof ki=="object"&&ki&&ki.Object===Object&&ki,be=typeof self=="object"&&self&&self.Object===Object&&self,Ce=oe||be||Function("return this")(),ve=e&&!e.nodeType&&e,ye=ve&&!0&&t&&!t.nodeType&&t,te=ye&&ye.exports===ve,L=te&&oe.process,le=function(){try{return L&&L.binding&&L.binding("util")}catch{}}(),ie=le&&le.isTypedArray;function ue(re,Le){for(var rt=-1,qt=re==null?0:re.length,Er=0,sr=[];++rt<qt;){var Wr=re[rt];Le(Wr,rt,re)&&(sr[Er++]=Wr)}return sr}function Ne(re,Le){for(var rt=-1,qt=Le.length,Er=re.length;++rt<qt;)re[Er+rt]=Le[rt];return re}function _e(re,Le){for(var rt=-1,qt=re==null?0:re.length;++rt<qt;)if(Le(re[rt],rt,re))return!0;return!1}function me(re,Le){for(var rt=-1,qt=Array(re);++rt<re;)qt[rt]=Le(rt);return qt}function se(re){return function(Le){return re(Le)}}function we(re,Le){return re.has(Le)}function ke(re,Le){return re==null?void 0:re[Le]}function R(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt,Er){rt[++Le]=[Er,qt]}),rt}function Ae(re,Le){return function(rt){return re(Le(rt))}}function Se(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt){rt[++Le]=qt}),rt}var fe=Array.prototype,ge=Function.prototype,pe=Object.prototype,Ve=Ce["__core-js_shared__"],De=ge.toString,He=pe.hasOwnProperty,it=function(){var re=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),ut=pe.toString,dt=RegExp("^"+De.call(He).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=te?Ce.Buffer:void 0,ln=Ce.Symbol,Ft=Ce.Uint8Array,mn=pe.propertyIsEnumerable,Vn=fe.splice,xt=ln?ln.toStringTag:void 0,je=Object.getOwnPropertySymbols,Ye=Bt?Bt.isBuffer:void 0,st=Ae(Object.keys,Object),Jt=Ci(Ce,"DataView"),Xt=Ci(Ce,"Map"),Zt=Ci(Ce,"Promise"),yn=Ci(Ce,"Set"),vt=Ci(Ce,"WeakMap"),Be=Ci(Object,"create"),nt=qr(Jt),Tt=qr(Xt),Mt=qr(Zt),Nn=qr(yn),kn=qr(vt),Qn=ln?ln.prototype:void 0,Jn=Qn?Qn.valueOf:void 0;function br(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Or(){this.__data__=Be?Be(null):{},this.size=0}function Sn(re){var Le=this.has(re)&&delete this.__data__[re];return this.size-=Le?1:0,Le}function ot(re){var Le=this.__data__;if(Be){var rt=Le[re];return rt===r?void 0:rt}return He.call(Le,re)?Le[re]:void 0}function ct(re){var Le=this.__data__;return Be?Le[re]!==void 0:He.call(Le,re)}function yt(re,Le){var rt=this.__data__;return this.size+=this.has(re)?0:1,rt[re]=Be&&Le===void 0?r:Le,this}br.prototype.clear=Or,br.prototype.delete=Sn,br.prototype.get=ot,br.prototype.has=ct,br.prototype.set=yt;function Nt(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Cn(){this.__data__=[],this.size=0}function On(re){var Le=this.__data__,rt=Yn(Le,re);if(rt<0)return!1;var qt=Le.length-1;return rt==qt?Le.pop():Vn.call(Le,rt,1),--this.size,!0}function _t(re){var Le=this.__data__,rt=Yn(Le,re);return rt<0?void 0:Le[rt][1]}function Fe(re){return Yn(this.__data__,re)>-1}function Qe(re,Le){var rt=this.__data__,qt=Yn(rt,re);return qt<0?(++this.size,rt.push([re,Le])):rt[qt][1]=Le,this}Nt.prototype.clear=Cn,Nt.prototype.delete=On,Nt.prototype.get=_t,Nt.prototype.has=Fe,Nt.prototype.set=Qe;function At(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function zt(){this.size=0,this.__data__={hash:new br,map:new(Xt||Nt),string:new br}}function Rt(re){var Le=Ei(this,re).delete(re);return this.size-=Le?1:0,Le}function nn(re){return Ei(this,re).get(re)}function xn(re){return Ei(this,re).has(re)}function Ln(re,Le){var rt=Ei(this,re),qt=rt.size;return rt.set(re,Le),this.size+=rt.size==qt?0:1,this}At.prototype.clear=zt,At.prototype.delete=Rt,At.prototype.get=nn,At.prototype.has=xn,At.prototype.set=Ln;function Hn(re){var Le=-1,rt=re==null?0:re.length;for(this.__data__=new At;++Le<rt;)this.add(re[Le])}function at(re){return this.__data__.set(re,r),this}function ae(re){return this.__data__.has(re)}Hn.prototype.add=Hn.prototype.push=at,Hn.prototype.has=ae;function Me(re){var Le=this.__data__=new Nt(re);this.size=Le.size}function We(){this.__data__=new Nt,this.size=0}function ft(re){var Le=this.__data__,rt=Le.delete(re);return this.size=Le.size,rt}function Ct(re){return this.__data__.get(re)}function Gt(re){return this.__data__.has(re)}function Dn(re,Le){var rt=this.__data__;if(rt instanceof Nt){var qt=rt.__data__;if(!Xt||qt.length<n-1)return qt.push([re,Le]),this.size=++rt.size,this;rt=this.__data__=new At(qt)}return rt.set(re,Le),this.size=rt.size,this}Me.prototype.clear=We,Me.prototype.delete=ft,Me.prototype.get=Ct,Me.prototype.has=Gt,Me.prototype.set=Dn;function Pn(re,Le){var rt=Ke(re),qt=!rt&&An(re),Er=!rt&&!qt&&en(re),sr=!rt&&!qt&&!Er&&zs(re),Wr=rt||qt||Er||sr,Fr=Wr?me(re.length,String):[],Tr=Fr.length;for(var Qr in re)He.call(re,Qr)&&!(Wr&&(Qr=="length"||Er&&(Qr=="offset"||Qr=="parent")||sr&&(Qr=="buffer"||Qr=="byteLength"||Qr=="byteOffset")||Kt(Qr,Tr)))&&Fr.push(Qr);return Fr}function Yn(re,Le){for(var rt=re.length;rt--;)if(Os(re[rt][0],Le))return rt;return-1}function Lr(re,Le,rt){var qt=Le(re);return Ke(re)?qt:Ne(qt,rt(re))}function Xr(re){return re==null?re===void 0?O:S:xt&&xt in Object(re)?Yi(re):Wa(re)}function $n(re){return pa(re)&&Xr(re)==l}function Fn(re,Le,rt,qt,Er){return re===Le?!0:re==null||Le==null||!pa(re)&&!pa(Le)?re!==re&&Le!==Le:lr(re,Le,rt,qt,Fn,Er)}function lr(re,Le,rt,qt,Er,sr){var Wr=Ke(re),Fr=Ke(Le),Tr=Wr?c:$e(re),Qr=Fr?c:$e(Le);Tr=Tr==l?T:Tr,Qr=Qr==l?T:Qr;var Ii=Tr==T,Qa=Qr==T,Ki=Tr==Qr;if(Ki&&en(re)){if(!en(Le))return!1;Wr=!0,Ii=!1}if(Ki&&!Ii)return sr||(sr=new Me),Wr||zs(re)?fi(re,Le,rt,qt,Er,sr):Mi(re,Le,Tr,rt,qt,Er,sr);if(!(rt&i)){var vi=Ii&&He.call(re,"__wrapped__"),Ca=Qa&&He.call(Le,"__wrapped__");if(vi||Ca){var os=vi?re.value():re,xa=Ca?Le.value():Le;return sr||(sr=new Me),Er(os,xa,rt,qt,sr)}}return Ki?(sr||(sr=new Me),rr(re,Le,rt,qt,Er,sr)):!1}function Br(re){if(!ua(re)||zr(re))return!1;var Le=yr(re)?dt:Z;return Le.test(qr(re))}function mi(re){return pa(re)&&Mr(re.length)&&!!Y[Xr(re)]}function oi(re){if(!Pr(re))return st(re);var Le=[];for(var rt in Object(re))He.call(re,rt)&&rt!="constructor"&&Le.push(rt);return Le}function fi(re,Le,rt,qt,Er,sr){var Wr=rt&i,Fr=re.length,Tr=Le.length;if(Fr!=Tr&&!(Wr&&Tr>Fr))return!1;var Qr=sr.get(re);if(Qr&&sr.get(Le))return Qr==Le;var Ii=-1,Qa=!0,Ki=rt&a?new Hn:void 0;for(sr.set(re,Le),sr.set(Le,re);++Ii<Fr;){var vi=re[Ii],Ca=Le[Ii];if(qt)var os=Wr?qt(Ca,vi,Ii,Le,re,sr):qt(vi,Ca,Ii,re,Le,sr);if(os!==void 0){if(os)continue;Qa=!1;break}if(Ki){if(!_e(Le,function(xa,zi){if(!we(Ki,zi)&&(vi===xa||Er(vi,xa,rt,qt,sr)))return Ki.push(zi)})){Qa=!1;break}}else if(!(vi===Ca||Er(vi,Ca,rt,qt,sr))){Qa=!1;break}}return sr.delete(re),sr.delete(Le),Qa}function Mi(re,Le,rt,qt,Er,sr,Wr){switch(rt){case j:if(re.byteLength!=Le.byteLength||re.byteOffset!=Le.byteOffset)return!1;re=re.buffer,Le=Le.buffer;case M:return!(re.byteLength!=Le.byteLength||!sr(new Ft(re),new Ft(Le)));case d:case f:case A:return Os(+re,+Le);case h:return re.name==Le.name&&re.message==Le.message;case w:case _:return re==Le+"";case m:var Fr=R;case I:var Tr=qt&i;if(Fr||(Fr=Se),re.size!=Le.size&&!Tr)return!1;var Qr=Wr.get(re);if(Qr)return Qr==Le;qt|=a,Wr.set(re,Le);var Ii=fi(Fr(re),Fr(Le),qt,Er,sr,Wr);return Wr.delete(re),Ii;case N:if(Jn)return Jn.call(re)==Jn.call(Le)}return!1}function rr(re,Le,rt,qt,Er,sr){var Wr=rt&i,Fr=ji(re),Tr=Fr.length,Qr=ji(Le),Ii=Qr.length;if(Tr!=Ii&&!Wr)return!1;for(var Qa=Tr;Qa--;){var Ki=Fr[Qa];if(!(Wr?Ki in Le:He.call(Le,Ki)))return!1}var vi=sr.get(re);if(vi&&sr.get(Le))return vi==Le;var Ca=!0;sr.set(re,Le),sr.set(Le,re);for(var os=Wr;++Qa<Tr;){Ki=Fr[Qa];var xa=re[Ki],zi=Le[Ki];if(qt)var ka=Wr?qt(zi,xa,Ki,Le,re,sr):qt(xa,zi,Ki,re,Le,sr);if(!(ka===void 0?xa===zi||Er(xa,zi,rt,qt,sr):ka)){Ca=!1;break}os||(os=Ki=="constructor")}if(Ca&&!os){var Ha=re.constructor,bi=Le.constructor;Ha!=bi&&"constructor"in re&&"constructor"in Le&&!(typeof Ha=="function"&&Ha instanceof Ha&&typeof bi=="function"&&bi instanceof bi)&&(Ca=!1)}return sr.delete(re),sr.delete(Le),Ca}function ji(re){return Lr(re,wo,pn)}function Ei(re,Le){var rt=re.__data__;return zn(Le)?rt[typeof Le=="string"?"string":"hash"]:rt.map}function Ci(re,Le){var rt=ke(re,Le);return Br(rt)?rt:void 0}function Yi(re){var Le=He.call(re,xt),rt=re[xt];try{re[xt]=void 0;var qt=!0}catch{}var Er=ut.call(re);return qt&&(Le?re[xt]=rt:delete re[xt]),Er}var pn=je?function(re){return re==null?[]:(re=Object(re),ue(je(re),function(Le){return mn.call(re,Le)}))}:Gr,$e=Xr;(Jt&&$e(new Jt(new ArrayBuffer(1)))!=j||Xt&&$e(new Xt)!=m||Zt&&$e(Zt.resolve())!=C||yn&&$e(new yn)!=I||vt&&$e(new vt)!=k)&&($e=function(re){var Le=Xr(re),rt=Le==T?re.constructor:void 0,qt=rt?qr(rt):"";if(qt)switch(qt){case nt:return j;case Tt:return m;case Mt:return C;case Nn:return I;case kn:return k}return Le});function Kt(re,Le){return Le=Le??s,!!Le&&(typeof re=="number"||H.test(re))&&re>-1&&re%1==0&&re<Le}function zn(re){var Le=typeof re;return Le=="string"||Le=="number"||Le=="symbol"||Le=="boolean"?re!=="__proto__":re===null}function zr(re){return!!it&&it in re}function Pr(re){var Le=re&&re.constructor,rt=typeof Le=="function"&&Le.prototype||pe;return re===rt}function Wa(re){return ut.call(re)}function qr(re){if(re!=null){try{return De.call(re)}catch{}try{return re+""}catch{}}return""}function Os(re,Le){return re===Le||re!==re&&Le!==Le}var An=$n(function(){return arguments}())?$n:function(re){return pa(re)&&He.call(re,"callee")&&!mn.call(re,"callee")},Ke=Array.isArray;function It(re){return re!=null&&Mr(re.length)&&!yr(re)}var en=Ye||hi;function er(re,Le){return Fn(re,Le)}function yr(re){if(!ua(re))return!1;var Le=Xr(re);return Le==g||Le==v||Le==u||Le==x}function Mr(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=s}function ua(re){var Le=typeof re;return re!=null&&(Le=="object"||Le=="function")}function pa(re){return re!=null&&typeof re=="object"}var zs=ie?se(ie):mi;function wo(re){return It(re)?Pn(re):oi(re)}function Gr(){return[]}function hi(){return!1}t.exports=er}(l9,l9.exports);var fz=l9.exports,ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const mEe=dz,vEe=fz;var eC;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=mEe(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)=>(vEe(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})(eC||(eC={})),ZS.default=eC;var c9={};Object.defineProperty(c9,"__esModule",{value:!0});var tC;(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})(tC||(tC={})),c9.default=tC;var nC={};Object.defineProperty(nC,"__esModule",{value:!0});const hz=c9;class bEe{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=hz.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]?hz.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[]}}nC.default=bEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=gEe,r=dz,i=fz,a=ZS;e.AttributeMap=a.default;const s=c9;e.Op=s.default;const l=nC;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 S;A<h?S=m.next(h-A):(S=m.next(g-A),v.push(S)),A+=s.default.length(S)}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 T=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=T;)T-=g.peekLength(),m.push(g.next());A.retain-T>0&&v.next(A.retain-T)}const S=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")S.push(v.next());else if(g.peekType()==="delete")S.push(g.next());else{const T=Math.min(g.peekLength(),v.peekLength()),C=g.next(T),x=v.next(T);if(x.retain){const w={};if(typeof C.retain=="number")w.retain=typeof x.retain=="number"?T:x.retain;else if(typeof x.retain=="number")C.retain==null?w.insert=C.insert:w.retain=C.retain;else{const _=C.retain==null?"insert":"retain",[N,O,k]=u(C[_],x.retain),M=d.getHandler(N);w[_]={[N]:M.compose(O,k,_==="retain")}}const I=a.default.compose(C.attributes,x.attributes,typeof C.retain=="number");if(I&&(w.attributes=I),S.push(w),!v.hasNext()&&i(S.ops[S.ops.length-1],w)){const _=new d(g.rest());return S.concat(_).chop()}}else typeof x.delete=="number"&&(typeof C.retain=="number"||typeof C.retain=="object"&&C.retain!==null)&&S.push(x)}return S.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(C=>C.map(x=>{if(x.insert!=null)return typeof x.insert=="string"?x.insert:c;const w=C===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),S=new l.default(this.ops),T=new l.default(h.ops);return A.forEach(C=>{let x=C[1].length;for(;x>0;){let w=0;switch(C[0]){case n.INSERT:w=Math.min(T.peekLength(),x),m.push(T.next(w));break;case n.DELETE:w=Math.min(x,S.peekLength()),S.next(w),m.delete(w);break;case n.EQUAL:w=Math.min(S.peekLength(),T.peekLength(),x);const I=S.next(w),_=T.next(w);i(I.insert,_.insert)?m.retain(w,a.default.diff(I.attributes,_.attributes)):m.push(_).delete(w);break}x-=w}}),m.chop()}eachLine(h,g=`
4376
+ `,rTe={spinner:function(e){var n=e.props;return{animationDuration:n.animationDuration}}},Z5=Un.extend({defaultProps:{__TYPE:"ProgressSpinner",id:null,style:null,className:null,strokeWidth:"2",fill:"none",animationDuration:"2s",children:void 0},css:{classes:tTe,styles:nTe,inlineStyles:rTe}}),Vj=b.memo(b.forwardRef(function(t,e){var n=Rn(),r=b.useContext(or),i=Z5.getProps(t,r),a=b.useRef(null),s=Z5.setMetaData({props:i}),l=s.ptm,c=s.cx,u=s.sx,d=s.isUnstyled;ui(Z5.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:ht(i.className,c("root")),role:"progressbar","aria-busy":!0},Z5.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)))}));Vj.displayName="ProgressSpinner";const iTe=()=>{const{renderType:t,componentList:e,sectionsList:n,exam:r}=Wt(),{userSelectedLanguage:i,formBuilderFormLayout:a}=on(),s=4,l=0,c=1,u=2,d=5,f=()=>{const K=t;let ce=0;return K===Jd?ce=s:K===xm?ce=d:K===Cm||K===W9||K===af?ce=u:K===j0||K===fp?ce=c:K===z0&&(ce=l),ce},h=F.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,S=r!=null&&r.assessmentSearchFilterCourseSubjectId?r==null?void 0:r.assessmentSearchFilterCourseSubjectId:null,T=r!=null&&r.AssessmentQuestionBankLoading?r==null?void 0:r.AssessmentQuestionBankLoading:!1,C=r!=null&&r.AssessmentQuestionBankPaginator?r==null?void 0:r.AssessmentQuestionBankPaginator:()=>o.jsx(o.Fragment,{});r!=null&&r.courseCategoryList&&(r==null||r.courseCategoryList);const x=r!=null&&r.getCourseCategoryList?r==null?void 0:r.getCourseCategoryList:()=>{};r!=null&&r.subjectList&&(r==null||r.subjectList);const w=r!=null&&r.getSubjectList?r==null?void 0:r.getSubjectList:()=>{},[I,_]=F.useState([]),[N,O]=F.useState("");F.useEffect(()=>(t===Jd&&(x(),w()),()=>{}),[t]);const k=F.useCallback(()=>{const K=v.map(ce=>{var he;const X=JSON.parse(ce.question_meta_data),ne=JSON.parse(ce.meta_data);return{label:(he=X==null?void 0:X.questionText)==null?void 0:he[i==null?void 0:i.type],icon:"pi pi-fw pi-trash",element:"radio",schema:{uuid:tt(),componentType:"question",questionText:X==null?void 0:X.questionText,questionTextImage:ne==null?void 0:ne.questionImage,answerInputType:X!=null&&X.answerInputType?X==null?void 0:X.answerInputType:"radio",answerOptions:X==null?void 0:X.answerOptions,isHidden:!1,subject_title:ce==null?void 0:ce.subject_title,course_category_title:ce==null?void 0:ce.course_category_title,subject_id:ce==null?void 0:ce.subject_id,course_category_id:ce==null?void 0:ce.course_category_id,created_by_id:null,date_created:ce==null?void 0:ce.created_at},subject_title:ce==null?void 0:ce.subject_title,course_category_title:ce==null?void 0:ce.course_category_title,uuid:tt(),type:nr,componentType:"question"}});_(K)},[v,i==null?void 0:i.type]);F.useEffect(()=>{k()},[]);const M=()=>{h.current&&h.current};F.useEffect(()=>(t===Jd&&g(),()=>{}),[t,A,S]);const j=()=>{m({filter:N,page:1,per_page:10,sort:"created_at|desc"})},[P,$]=F.useState(f());return F.useEffect(()=>{$(f())},[t]),o.jsx(o.Fragment,{children:o.jsxs(as,{activeIndex:P,onTabChange:K=>$(K.index),scrollable:!0,children:[t===z0&&o.jsx(Sr,{header:"Survey",children:CQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid scroll-height-300",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))}),(t===j0||t===fp)&&o.jsx(Sr,{header:"Form",children:o.jsx("div",{className:"scroll-height-300",children:wQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"xl:col-6 lg:col-12 md:col-12 sm:col-12",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===Cm||t===W9||t===af)&&o.jsx(Sr,{header:"Layout",children:o.jsx("div",{className:"scroll-height-300",children:AK.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===z0||t===j0||t===fp)&&o.jsx(Sr,{header:"Layout",children:o.jsx("div",{className:"scroll-height-300",children:SQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),t===Jd&&o.jsx(Sr,{header:"Question bank",children:o.jsxs("div",{className:"grid scroll-height-300",children:[o.jsx("div",{className:"col-12",children:yK.map((K,ce)=>o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>{const he=Et.cloneDeep(X);return o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:he},X.uuid)},"form_elements_"+ne)})},`new-quiz-${ce}`))}),o.jsx("div",{className:"col-12 ",children:o.jsxs("div",{className:"p-inputgroup",children:[o.jsx(wn,{placeholder:"Keyword",onChange:K=>{O(K.target.value),K.target.value||(m({filter:"",page:1,per_page:10,sort:"created_at|desc"}),g())},onKeyDown:K=>K.key==="Enter"?j():null}),o.jsx(Vt,{icon:"pi pi-search",className:"p-button-info",onClick:()=>j()})]})}),T?o.jsx(Vj,{}):o.jsx("div",{className:"scroll-height-500 w-full",children:I.map((K,ce)=>{var X,ne,he,q,W;return o.jsx("div",{onScroll:M,ref:h,className:"col-12 ",children:o.jsx(kd,{tags:[{severity:"success",label:K==null?void 0:K.subject_title},{severity:"info",label:K==null?void 0:K.course_category_title}],showIcon:(W=(q=(he=(ne=(X=a[0])==null?void 0:X.children[0])==null?void 0:ne.children[0])==null?void 0:he.children[0])==null?void 0:q.children)==null?void 0:W.some(Q=>{var Z,H,Y;return((Z=Q==null?void 0:Q.questionText)==null?void 0:Z[i.type])===((Y=(H=K==null?void 0:K.schema)==null?void 0:H.questionText)==null?void 0:Y[i.type])}),data:K},ce)},"question_elements_"+ce)})}),o.jsx(C,{})]})}),t===xm&&o.jsx(Sr,{header:"Training",children:o.jsx("div",{className:"scroll-height-300",children:xQ.map((K,ce)=>o.jsx(di,{header:K==null?void 0:K.label,toggleable:!0,style:{marginBottom:10},children:o.jsx("div",{className:"grid",children:K==null?void 0:K.items.map((X,ne)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:X},X.uuid)},"form_elements_"+ne))})},`pannel-tab-${ce}`))})}),(t===z0||t===j0||t===fp)&&o.jsxs(Sr,{header:"Custom",children:[o.jsx("h6",{children:"Custom Sections"}),o.jsx("div",{className:"grid",children:(n==null?void 0:n.length)>0&&n.map((K,ce)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:{label:K==null?void 0:K.builder_element_title,element:"reusable_builder_section",schema:K==null?void 0:K.reusable_template_schema,uuid:tt(),type:aa}},K.uuid)},"reusable_elements_"+ce))}),o.jsx("h6",{children:"Custom Matrix"}),o.jsx("div",{className:"grid",children:(e==null?void 0:e.length)>0&&e.map((K,ce)=>o.jsx("div",{className:"col-6",children:o.jsx(kd,{data:{label:K==null?void 0:K.custom_component_title,element:"custom_component",schema:JSON.parse(K==null?void 0:K.custom_component_schema),uuid:tt(),type:nr}},K.uuid)},"custom_component"+ce))})]})]})})};function qj(t){return t}function aTe(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 sTe=800,oTe=16,lTe=Date.now;function cTe(t){var e=0,n=0;return function(){var r=lTe(),i=oTe-(r-n);if(n=r,i>0){if(++e>=sTe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function uTe(t){return function(){return t}}var dTe=j3?function(t,e){return j3(t,"toString",{configurable:!0,enumerable:!1,value:uTe(e),writable:!0})}:qj,fTe=cTe(dTe),Uj=Math.max;function hTe(t,e,n){return e=Uj(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=Uj(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),aTe(t,this,l)}}function pTe(t,e){return fTe(hTe(t,e,qj),t+"")}function gTe(t,e,n){if(!a0(n))return!1;var r=typeof e;return(r=="number"?z3(n)&&MN(e,n.length):r=="string"&&e in n)?o2(n[e],t):!1}function mTe(t){return pTe(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&&gTe(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 vTe="__lodash_hash_undefined__";function bTe(t){return this.__data__.set(t,vTe),this}function yTe(t){return this.__data__.has(t)}function e9(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new sd;++e<n;)this.add(t[e])}e9.prototype.add=e9.prototype.push=bTe,e9.prototype.has=yTe;function ATe(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 wTe(t,e){return t.has(e)}var STe=1,CTe=2;function $j(t,e,n,r,i,a){var s=n&STe,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&CTe?new e9: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(!ATe(e,function(S,T){if(!wTe(g,T)&&(v===S||i(v,S,n,r,a)))return g.push(T)})){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 xTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function TTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var ETe=1,ITe=2,_Te="[object Boolean]",DTe="[object Date]",NTe="[object Error]",OTe="[object Map]",FTe="[object Number]",kTe="[object RegExp]",PTe="[object Set]",MTe="[object String]",LTe="[object Symbol]",BTe="[object ArrayBuffer]",VTe="[object DataView]",jj=fu?fu.prototype:void 0,US=jj?jj.valueOf:void 0;function qTe(t,e,n,r,i,a,s){switch(n){case VTe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case BTe:return!(t.byteLength!=e.byteLength||!a(new H3(t),new H3(e)));case _Te:case DTe:case FTe:return o2(+t,+e);case NTe:return t.name==e.name&&t.message==e.message;case kTe:case MTe:return t==e+"";case OTe:var l=xTe;case PTe:var c=r&ETe;if(l||(l=TTe),t.size!=e.size&&!c)return!1;var u=s.get(t);if(u)return u==e;r|=ITe,s.set(t,e);var d=$j(l(t),l(e),r,i,a,s);return s.delete(t),d;case LTe:if(US)return US.call(t)==US.call(e)}return!1}var UTe=1,$Te=Object.prototype,jTe=$Te.hasOwnProperty;function zTe(t,e,n,r,i,a){var s=n&UTe,l=R7(t),c=l.length,u=R7(e),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var h=l[f];if(!(s?h in e:jTe.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 S=t[h],T=e[h];if(r)var C=s?r(T,S,h,e,t,a):r(S,T,h,t,e,a);if(!(C===void 0?S===T||i(S,T,n,r,a):C)){m=!1;break}A||(A=h=="constructor")}if(m&&!A){var x=t.constructor,w=e.constructor;x!=w&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof w=="function"&&w instanceof w)&&(m=!1)}return a.delete(t),a.delete(e),m}var HTe=1,zj="[object Arguments]",Hj="[object Array]",t9="[object Object]",YTe=Object.prototype,Yj=YTe.hasOwnProperty;function KTe(t,e,n,r,i,a){var s=od(t),l=od(e),c=s?Hj:Nc(t),u=l?Hj:Nc(e);c=c==zj?t9:c,u=u==zj?t9:u;var d=c==t9,f=u==t9,h=c==u;if(h&&d2(t)){if(!d2(e))return!1;s=!0,d=!1}if(h&&!d)return a||(a=new pu),s||j7(t)?$j(t,e,n,r,i,a):qTe(t,e,c,n,r,i,a);if(!(n&HTe)){var g=d&&Yj.call(t,"__wrapped__"),v=f&&Yj.call(e,"__wrapped__");if(g||v){var m=g?t.value():t,A=v?e.value():e;return a||(a=new pu),i(m,A,n,r,a)}}return h?(a||(a=new pu),zTe(t,e,n,r,i,a)):!1}function Kj(t,e,n,r,i){return t===e?!0:t==null||e==null||!hu(t)&&!hu(e)?t!==t&&e!==e:KTe(t,e,n,r,Kj,i)}function RTe(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 XTe=RTe();function $S(t,e,n){(n!==void 0&&!o2(t[e],n)||n===void 0&&!(e in t))&&V7(t,e,n)}function GTe(t){return hu(t)&&z3(t)}function jS(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function WTe(t){return u2(t,h2(t))}function QTe(t,e,n,r,i,a,s){var l=jS(t,n),c=jS(e,n),u=s.get(c);if(u){$S(t,n,u);return}var d=a?a(l,c,n+"",t,e,s):void 0,f=d===void 0;if(f){var h=od(c),g=!h&&d2(c),v=!h&&!g&&j7(c);d=c,h||g||v?od(l)?d=l:GTe(l)?d=Y7(l):g?(f=!1,d=HN(c,!0)):v?(f=!1,d=rO(c,!0)):d=[]:M7(c)||q7(c)?(d=l,q7(l)?d=WTe(l):(!a0(l)||L7(l))&&(d=aO(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c)),$S(t,n,d)}function Rj(t,e,n,r,i){t!==e&&XTe(e,function(a,s){if(i||(i=new pu),a0(a))QTe(t,e,s,n,Rj,r,i);else{var l=r?r(jS(t,s),a,s+"",t,e,i):void 0;l===void 0&&(l=a),$S(t,s,l)}},h2)}function zS(t,e){return Kj(t,e)}var E0=mTe(function(t,e,n){Rj(t,e,n)}),dr=(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))(dr||{});class Vu{constructor(e,n,r={}){this.attrName=e,this.keyName=n;const i=dr.TYPE&dr.ATTRIBUTE;this.scope=r.scope!=null?r.scope&dr.LEVEL|i:dr.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 Rh extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Xj=class Tx{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 Rh(`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 Tx.blots.set(l.domNode,l),l}find(e,n=!1){return Tx.find(e,n)}query(e,n=dr.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&dr.LEVEL&dr.BLOCK?r=this.types.block:e&dr.LEVEL&dr.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&dr.LEVEL&r.scope&&n&dr.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 Rh("Invalid definition");if(r&&n.blotName==="abstract")throw new Rh("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})}};Xj.blots=new WeakMap;let Xh=Xj;function Gj(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${e}-`)===0)}class JTe extends Vu{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){Gj(e,this.keyName).forEach(n=>{e.classList.remove(n)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const n=(Gj(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,n)?n:""}}const Kc=JTe;function HS(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 Vu{static keys(e){return(e.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(e,n){return this.canAdd(e,n)?(e.style[HS(this.keyName)]=n,!0):!1}remove(e){e.style[HS(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const n=e.style[HS(this.keyName)];return this.canAdd(e,n)?n:""}}const I0=ZTe;class eEe{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=Xh.find(this.domNode);if(e==null)return;const n=Vu.keys(this.domNode),r=Kc.keys(this.domNode),i=I0.keys(this.domNode);n.concat(r).concat(i).forEach(a=>{const s=e.scroll.query(a,dr.ATTRIBUTE);s instanceof Vu&&(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 n9=eEe,Wj=class{constructor(e,n){this.scroll=e,this.domNode=n,Xh.blots.set(n,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new Rh("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),Xh.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,dr.BLOT)!=null&&i)a.wrap(r,i);else if(this.scroll.query(r,dr.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 Rh(`Cannot wrap ${e}`);return r.appendChild(this),r}};Wj.blotName="abstract";let Qj=Wj;const Jj=class extends Qj{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}}};Jj.scope=dr.INLINE_BLOT;const yo=Jj;class tEe{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 Zj(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const r=e.create(dr.INLINE);return Array.from(t.childNodes).forEach(i=>{r.domNode.appendChild(i)}),t.parentNode&&t.parentNode.replaceChild(r.domNode,t),r.attach(),r}}const ez=class U0 extends Qj{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,U0.uiClass&&this.uiNode.classList.add(U0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new tEe,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const n=Zj(e,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof Rh)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 U0?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 U0&&(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===dr.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof U0?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 U0?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 U0&&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=Zj(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};ez.uiClass="";const Rc=ez;function nEe(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 Gh=class dp extends Rc{static create(e){return super.create(e)}static formats(e,n){const r=n.query(dp.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 n9(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach(r=>{r instanceof dp||(r=r.wrap(dp.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,dr.INLINE);if(r==null)return;r instanceof Vu?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,dr.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 dp&&r.prev===this&&nEe(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 dp&&this.attributes.move(r),r}};Gh.allowedChildren=[Gh,yo],Gh.blotName="inline",Gh.scope=dr.INLINE_BLOT,Gh.tagName="SPAN";const YS=Gh,Wh=class Ex extends Rc{static create(e){return super.create(e)}static formats(e,n){const r=n.query(Ex.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 n9(this.domNode)}format(e,n){const r=this.scroll.query(e,dr.BLOCK);r!=null&&(r instanceof Vu?this.attributes.attribute(r,n):e===this.statics.blotName&&!n?this.replaceWith(Ex.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,dr.BLOCK)!=null?this.format(r,i):super.formatAt(e,n,r,i)}insertAt(e,n,r){if(r==null||this.scroll.query(n,dr.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()}};Wh.blotName="block",Wh.scope=dr.BLOCK_BLOT,Wh.tagName="P",Wh.allowedChildren=[YS,Wh,yo];const Hg=Wh,KS=class extends Rc{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())}};KS.blotName="container",KS.scope=dr.BLOCK_BLOT;const r9=KS;class rEe extends yo{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 Pl=rEe,iEe={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},aEe=100,Qh=class extends Rc{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,iEe),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=dr.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 Rc&&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>=aEe)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 Rc&&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)}};Qh.blotName="scroll",Qh.defaultChild=Hg,Qh.allowedChildren=[Hg,r9],Qh.scope=dr.BLOCK_BLOT,Qh.tagName="DIV";const RS=Qh,XS=class YY extends yo{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 YY&&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}};XS.blotName="text",XS.scope=dr.INLINE_BLOT;const i9=XS,tz=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Vu,AttributorStore:n9,BlockBlot:Hg,ClassAttributor:Kc,ContainerBlot:r9,EmbedBlot:Pl,InlineBlot:YS,LeafBlot:yo,ParentBlot:Rc,Registry:Xh,Scope:dr,ScrollBlot:RS,StyleAttributor:I0,TextBlot:i9},Symbol.toStringTag,{value:"Module"}));var GS={exports:{}},Ml=-1,qo=1,Ns=0;function Yg(t,e,n,r,i){if(t===e)return t?[[Ns,t]]:[];if(n!=null){var a=pEe(t,e,n);if(a)return a}var s=WS(t,e),l=t.substring(0,s);t=t.substring(s),e=e.substring(s),s=a9(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=sEe(t,e);return l&&u.unshift([Ns,l]),c&&u.push([Ns,c]),QS(u,i),r&&cEe(u),u}function sEe(t,e){var n;if(!t)return[[qo,e]];if(!e)return[[Ml,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=[[qo,r.substring(0,a)],[Ns,i],[qo,r.substring(a+i.length)]],t.length>e.length&&(n[0][0]=n[2][0]=Ml),n;if(i.length===1)return[[Ml,t],[qo,e]];var s=lEe(t,e);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],f=s[4],h=Yg(l,u),g=Yg(c,d);return h.concat([[Ns,f]],g)}return oEe(t,e)}function oEe(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 S=-A+h;S<=A-g;S+=2){var T=a+S,C;S===-A||S!==A&&l[T-1]<l[T+1]?C=l[T+1]:C=l[T-1]+1;for(var x=C-S;C<n&&x<r&&t.charAt(C)===e.charAt(x);)C++,x++;if(l[T]=C,C>n)g+=2;else if(x>r)h+=2;else if(f){var w=a+d-S;if(w>=0&&w<s&&c[w]!==-1){var I=n-c[w];if(C>=I)return nz(t,e,C,x)}}}for(var _=-A+v;_<=A-m;_+=2){var w=a+_,I;_===-A||_!==A&&c[w-1]<c[w+1]?I=c[w+1]:I=c[w-1]+1;for(var N=I-_;I<n&&N<r&&t.charAt(n-I-1)===e.charAt(r-N-1);)I++,N++;if(c[w]=I,I>n)m+=2;else if(N>r)v+=2;else if(!f){var T=a+d-_;if(T>=0&&T<s&&l[T]!==-1){var C=l[T],x=a+C-T;if(I=n-I,C>=I)return nz(t,e,C,x)}}}}return[[Ml,t],[qo,e]]}function nz(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),c=Yg(i,a),u=Yg(s,l);return c.concat(u)}function WS(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 oz(t.charCodeAt(i-1))&&i--,i}function rz(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 a9(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 lz(t.charCodeAt(t.length-i))&&i--,i}function lEe(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)),S=-1,T="",C,x,w,I;(S=v.indexOf(A,S+1))!==-1;){var _=WS(g.substring(m),v.substring(S)),N=a9(g.substring(0,m),v.substring(0,S));T.length<N+_&&(T=v.substring(S-N,S)+v.substring(S,S+_),C=g.substring(0,m-N),x=g.substring(m+_),w=v.substring(0,S-N),I=v.substring(S+_))}return T.length*2>=g.length?[C,x,w,I,T]: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 cEe(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]==Ns?(n[r++]=a,s=c,l=u,c=0,u=0,i=t[a][1]):(t[a][0]==qo?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,[Ml,i]),t[n[r-1]+1][0]=qo,r--,r--,a=r>0?n[r-1]:-1,s=0,l=0,c=0,u=0,i=null,e=!0)),a++;for(e&&QS(t),fEe(t),a=1;a<t.length;){if(t[a-1][0]==Ml&&t[a][0]==qo){var d=t[a-1][1],f=t[a][1],h=rz(d,f),g=rz(f,d);h>=g?(h>=d.length/2||h>=f.length/2)&&(t.splice(a,0,[Ns,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,[Ns,d.substring(0,g)]),t[a-1][0]=qo,t[a-1][1]=f.substring(0,f.length-g),t[a+1][0]=Ml,t[a+1][1]=d.substring(g),a++),a++}a++}}var iz=/[^a-zA-Z0-9]/,az=/\s/,sz=/[\r\n]/,uEe=/\n\r?\n$/,dEe=/^\r?\n\r?\n/;function fEe(t){function e(g,v){if(!g||!v)return 6;var m=g.charAt(g.length-1),A=v.charAt(0),S=m.match(iz),T=A.match(iz),C=S&&m.match(az),x=T&&A.match(az),w=C&&m.match(sz),I=x&&A.match(sz),_=w&&g.match(uEe),N=I&&v.match(dEe);return _||N?5:w||I?4:S&&!C&&x?3:C||x?2:S||T?1:0}for(var n=1;n<t.length-1;){if(t[n-1][0]==Ns&&t[n+1][0]==Ns){var r=t[n-1][1],i=t[n][1],a=t[n+1][1],s=a9(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 QS(t,e){t.push([Ns,""]);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 qo:i++,s+=t[n][1],n++;break;case Ml:r++,a+=t[n][1],n++;break;case Ns:var c=n-i-r-1;if(e){if(c>=0&&uz(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]===qo&&(i++,s=t[d][1]+s,d--),t[d]&&t[d][0]===Ml&&(r++,a=t[d][1]+a,d--),c=d}}if(cz(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=WS(s,a),l!==0&&(c>=0?t[c][1]+=s.substring(0,l):(t.splice(0,0,[Ns,s.substring(0,l)]),n++),s=s.substring(l),a=a.substring(l)),l=a9(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,[qo,s]),n=n-f+1):s.length===0?(t.splice(n-f,f,[Ml,a]),n=n-f+1):(t.splice(n-f,f,[Ml,a],[qo,s]),n=n-f+2)}n!==0&&t[n-1][0]===Ns?(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]===Ns&&t[n+1][0]===Ns&&(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&&QS(t,e)}function oz(t){return t>=55296&&t<=56319}function lz(t){return t>=56320&&t<=57343}function cz(t){return lz(t.charCodeAt(0))}function uz(t){return oz(t.charCodeAt(t.length-1))}function hEe(t){for(var e=[],n=0;n<t.length;n++)t[n][1].length>0&&e.push(t[n]);return e}function JS(t,e,n,r){return uz(t)||cz(r)?null:hEe([[Ns,t],[Ml,e],[qo,n],[Ns,r]])}function pEe(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 S=c.slice(v),T=h.slice(v);return JS(m,S,T,u)}e:{if(d!==null&&d!==l)break e;var C=l,h=e.slice(0,C),g=e.slice(C);if(h!==c)break e;var x=Math.min(a-C,s-C),w=u.slice(u.length-x),I=g.slice(g.length-x);if(w!==I)break e;var S=u.slice(0,u.length-x),T=g.slice(0,g.length-x);return JS(c,S,T,w)}}if(r.length>0&&i&&i.length===0)e:{var m=t.slice(0,r.index),w=t.slice(r.index+r.length),v=m.length,x=w.length;if(s<v+x)break e;var A=e.slice(0,v),I=e.slice(s-x);if(m!==A||w!==I)break e;var S=t.slice(v,a-x),T=e.slice(v,s-x);return JS(m,S,T,w)}return null}function s9(t,e,n,r){return Yg(t,e,n,r,!0)}s9.INSERT=qo,s9.DELETE=Ml,s9.EQUAL=Ns;var gEe=s9,o9={exports:{}};o9.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]",S="[object Set]",T="[object String]",C="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",I="[object DataView]",_="[object Float32Array]",N="[object Float64Array]",O="[object Int8Array]",k="[object Int16Array]",M="[object Int32Array]",j="[object Uint8Array]",P="[object Uint8ClampedArray]",$="[object Uint16Array]",K="[object Uint32Array]",ce=/[\\^$.*+?()[\]{}|]/g,X=/\w*$/,ne=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,q={};q[a]=q[s]=q[w]=q[I]=q[l]=q[c]=q[_]=q[N]=q[O]=q[k]=q[M]=q[h]=q[g]=q[v]=q[A]=q[S]=q[T]=q[C]=q[j]=q[P]=q[$]=q[K]=!0,q[u]=q[d]=q[x]=!1;var W=typeof ki=="object"&&ki&&ki.Object===Object&&ki,Q=typeof self=="object"&&self&&self.Object===Object&&self,Z=W||Q||Function("return this")(),H=e&&!e.nodeType&&e,Y=H&&!0&&t&&!t.nodeType&&t,oe=Y&&Y.exports===H;function be(re,Le){return re.set(Le[0],Le[1]),re}function Ce(re,Le){return re.add(Le),re}function ve(re,Le){for(var rt=-1,qt=re?re.length:0;++rt<qt&&Le(re[rt],rt,re)!==!1;);return re}function ye(re,Le){for(var rt=-1,qt=Le.length,Er=re.length;++rt<qt;)re[Er+rt]=Le[rt];return re}function te(re,Le,rt,qt){for(var Er=-1,sr=re?re.length:0;++Er<sr;)rt=Le(rt,re[Er],Er,re);return rt}function L(re,Le){for(var rt=-1,qt=Array(re);++rt<re;)qt[rt]=Le(rt);return qt}function le(re,Le){return re==null?void 0:re[Le]}function ie(re){var Le=!1;if(re!=null&&typeof re.toString!="function")try{Le=!!(re+"")}catch{}return Le}function ue(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt,Er){rt[++Le]=[Er,qt]}),rt}function Ne(re,Le){return function(rt){return re(Le(rt))}}function _e(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt){rt[++Le]=qt}),rt}var me=Array.prototype,se=Function.prototype,we=Object.prototype,ke=Z["__core-js_shared__"],R=function(){var re=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),Ae=se.toString,Se=we.hasOwnProperty,fe=we.toString,ge=RegExp("^"+Ae.call(Se).replace(ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=oe?Z.Buffer:void 0,Ve=Z.Symbol,De=Z.Uint8Array,He=Ne(Object.getPrototypeOf,Object),it=Object.create,ut=we.propertyIsEnumerable,dt=me.splice,Bt=Object.getOwnPropertySymbols,ln=pe?pe.isBuffer:void 0,Ft=Ne(Object.keys,Object),mn=Ei(Z,"DataView"),Vn=Ei(Z,"Map"),xt=Ei(Z,"Promise"),je=Ei(Z,"Set"),Ye=Ei(Z,"WeakMap"),st=Ei(Object,"create"),Jt=qr(mn),Xt=qr(Vn),Zt=qr(xt),yn=qr(je),vt=qr(Ye),Be=Ve?Ve.prototype:void 0,nt=Be?Be.valueOf:void 0;function Tt(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Mt(){this.__data__=st?st(null):{}}function Nn(re){return this.has(re)&&delete this.__data__[re]}function kn(re){var Le=this.__data__;if(st){var rt=Le[re];return rt===r?void 0:rt}return Se.call(Le,re)?Le[re]:void 0}function Qn(re){var Le=this.__data__;return st?Le[re]!==void 0:Se.call(Le,re)}function Jn(re,Le){var rt=this.__data__;return rt[re]=st&&Le===void 0?r:Le,this}Tt.prototype.clear=Mt,Tt.prototype.delete=Nn,Tt.prototype.get=kn,Tt.prototype.has=Qn,Tt.prototype.set=Jn;function br(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Or(){this.__data__=[]}function Sn(re){var Le=this.__data__,rt=ae(Le,re);if(rt<0)return!1;var qt=Le.length-1;return rt==qt?Le.pop():dt.call(Le,rt,1),!0}function ot(re){var Le=this.__data__,rt=ae(Le,re);return rt<0?void 0:Le[rt][1]}function ct(re){return ae(this.__data__,re)>-1}function yt(re,Le){var rt=this.__data__,qt=ae(rt,re);return qt<0?rt.push([re,Le]):rt[qt][1]=Le,this}br.prototype.clear=Or,br.prototype.delete=Sn,br.prototype.get=ot,br.prototype.has=ct,br.prototype.set=yt;function Nt(re){var Le=-1,rt=re?re.length:0;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Cn(){this.__data__={hash:new Tt,map:new(Vn||br),string:new Tt}}function On(re){return ji(this,re).delete(re)}function _t(re){return ji(this,re).get(re)}function Fe(re){return ji(this,re).has(re)}function Qe(re,Le){return ji(this,re).set(re,Le),this}Nt.prototype.clear=Cn,Nt.prototype.delete=On,Nt.prototype.get=_t,Nt.prototype.has=Fe,Nt.prototype.set=Qe;function At(re){this.__data__=new br(re)}function zt(){this.__data__=new br}function Rt(re){return this.__data__.delete(re)}function nn(re){return this.__data__.get(re)}function xn(re){return this.__data__.has(re)}function Ln(re,Le){var rt=this.__data__;if(rt instanceof br){var qt=rt.__data__;if(!Vn||qt.length<n-1)return qt.push([re,Le]),this;rt=this.__data__=new Nt(qt)}return rt.set(re,Le),this}At.prototype.clear=zt,At.prototype.delete=Rt,At.prototype.get=nn,At.prototype.has=xn,At.prototype.set=Ln;function Hn(re,Le){var rt=It(re)||Ke(re)?L(re.length,String):[],qt=rt.length,Er=!!qt;for(var sr in re)Se.call(re,sr)&&!(Er&&(sr=="length"||zn(sr,qt)))&&rt.push(sr);return rt}function at(re,Le,rt){var qt=re[Le];(!(Se.call(re,Le)&&An(qt,rt))||rt===void 0&&!(Le in re))&&(re[Le]=rt)}function ae(re,Le){for(var rt=re.length;rt--;)if(An(re[rt][0],Le))return rt;return-1}function Me(re,Le){return re&&fi(Le,wo(Le),re)}function We(re,Le,rt,qt,Er,sr,Wr){var Fr;if(qt&&(Fr=sr?qt(re,Er,sr,Wr):qt(re)),Fr!==void 0)return Fr;if(!pa(re))return re;var Tr=It(re);if(Tr){if(Fr=pn(re),!Le)return oi(re,Fr)}else{var Qr=Yi(re),Ii=Qr==d||Qr==f;if(yr(re))return Yn(re,Le);if(Qr==v||Qr==a||Ii&&!sr){if(ie(re))return sr?re:{};if(Fr=$e(Ii?{}:re),!Le)return Mi(re,Me(Fr,re))}else{if(!q[Qr])return sr?re:{};Fr=Kt(re,Qr,We,Le)}}Wr||(Wr=new At);var Qa=Wr.get(re);if(Qa)return Qa;if(Wr.set(re,Fr),!Tr)var Ki=rt?rr(re):wo(re);return ve(Ki||re,function(vi,Ca){Ki&&(Ca=vi,vi=re[Ca]),at(Fr,Ca,We(vi,Le,rt,qt,Ca,re,Wr))}),Fr}function ft(re){return pa(re)?it(re):{}}function Ct(re,Le,rt){var qt=Le(re);return It(re)?qt:ye(qt,rt(re))}function Gt(re){return fe.call(re)}function Dn(re){if(!pa(re)||Pr(re))return!1;var Le=Mr(re)||ie(re)?ge:ne;return Le.test(qr(re))}function Pn(re){if(!Wa(re))return Ft(re);var Le=[];for(var rt in Object(re))Se.call(re,rt)&&rt!="constructor"&&Le.push(rt);return Le}function Yn(re,Le){if(Le)return re.slice();var rt=new re.constructor(re.length);return re.copy(rt),rt}function Lr(re){var Le=new re.constructor(re.byteLength);return new De(Le).set(new De(re)),Le}function Xr(re,Le){var rt=Le?Lr(re.buffer):re.buffer;return new re.constructor(rt,re.byteOffset,re.byteLength)}function $n(re,Le,rt){var qt=Le?rt(ue(re),!0):ue(re);return te(qt,be,new re.constructor)}function Fn(re){var Le=new re.constructor(re.source,X.exec(re));return Le.lastIndex=re.lastIndex,Le}function lr(re,Le,rt){var qt=Le?rt(_e(re),!0):_e(re);return te(qt,Ce,new re.constructor)}function Br(re){return nt?Object(nt.call(re)):{}}function mi(re,Le){var rt=Le?Lr(re.buffer):re.buffer;return new re.constructor(rt,re.byteOffset,re.length)}function oi(re,Le){var rt=-1,qt=re.length;for(Le||(Le=Array(qt));++rt<qt;)Le[rt]=re[rt];return Le}function fi(re,Le,rt,qt){rt||(rt={});for(var Er=-1,sr=Le.length;++Er<sr;){var Wr=Le[Er],Fr=void 0;at(rt,Wr,Fr===void 0?re[Wr]:Fr)}return rt}function Mi(re,Le){return fi(re,Ci(re),Le)}function rr(re){return Ct(re,wo,Ci)}function ji(re,Le){var rt=re.__data__;return zr(Le)?rt[typeof Le=="string"?"string":"hash"]:rt.map}function Ei(re,Le){var rt=le(re,Le);return Dn(rt)?rt:void 0}var Ci=Bt?Ne(Bt,Object):Gr,Yi=Gt;(mn&&Yi(new mn(new ArrayBuffer(1)))!=I||Vn&&Yi(new Vn)!=h||xt&&Yi(xt.resolve())!=m||je&&Yi(new je)!=S||Ye&&Yi(new Ye)!=x)&&(Yi=function(re){var Le=fe.call(re),rt=Le==v?re.constructor:void 0,qt=rt?qr(rt):void 0;if(qt)switch(qt){case Jt:return I;case Xt:return h;case Zt:return m;case yn:return S;case vt:return x}return Le});function pn(re){var Le=re.length,rt=re.constructor(Le);return Le&&typeof re[0]=="string"&&Se.call(re,"index")&&(rt.index=re.index,rt.input=re.input),rt}function $e(re){return typeof re.constructor=="function"&&!Wa(re)?ft(He(re)):{}}function Kt(re,Le,rt,qt){var Er=re.constructor;switch(Le){case w:return Lr(re);case l:case c:return new Er(+re);case I:return Xr(re,qt);case _:case N:case O:case k:case M:case j:case P:case $:case K:return mi(re,qt);case h:return $n(re,qt,rt);case g:case T:return new Er(re);case A:return Fn(re);case S:return lr(re,qt,rt);case C:return Br(re)}}function zn(re,Le){return Le=Le??i,!!Le&&(typeof re=="number"||he.test(re))&&re>-1&&re%1==0&&re<Le}function zr(re){var Le=typeof re;return Le=="string"||Le=="number"||Le=="symbol"||Le=="boolean"?re!=="__proto__":re===null}function Pr(re){return!!R&&R in re}function Wa(re){var Le=re&&re.constructor,rt=typeof Le=="function"&&Le.prototype||we;return re===rt}function qr(re){if(re!=null){try{return Ae.call(re)}catch{}try{return re+""}catch{}}return""}function Os(re){return We(re,!0,!0)}function An(re,Le){return re===Le||re!==re&&Le!==Le}function Ke(re){return er(re)&&Se.call(re,"callee")&&(!ut.call(re,"callee")||fe.call(re)==a)}var It=Array.isArray;function en(re){return re!=null&&ua(re.length)&&!Mr(re)}function er(re){return zs(re)&&en(re)}var yr=ln||hi;function Mr(re){var Le=pa(re)?fe.call(re):"";return Le==d||Le==f}function ua(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=i}function pa(re){var Le=typeof re;return!!re&&(Le=="object"||Le=="function")}function zs(re){return!!re&&typeof re=="object"}function wo(re){return en(re)?Hn(re):Pn(re)}function Gr(){return[]}function hi(){return!1}t.exports=Os}(o9,o9.exports);var dz=o9.exports,l9={exports:{}};l9.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]",S="[object Null]",T="[object Object]",C="[object Promise]",x="[object Proxy]",w="[object RegExp]",I="[object Set]",_="[object String]",N="[object Symbol]",O="[object Undefined]",k="[object WeakMap]",M="[object ArrayBuffer]",j="[object DataView]",P="[object Float32Array]",$="[object Float64Array]",K="[object Int8Array]",ce="[object Int16Array]",X="[object Int32Array]",ne="[object Uint8Array]",he="[object Uint8ClampedArray]",q="[object Uint16Array]",W="[object Uint32Array]",Q=/[\\^$.*+?()[\]{}|]/g,Z=/^\[object .+?Constructor\]$/,H=/^(?:0|[1-9]\d*)$/,Y={};Y[P]=Y[$]=Y[K]=Y[ce]=Y[X]=Y[ne]=Y[he]=Y[q]=Y[W]=!0,Y[l]=Y[c]=Y[M]=Y[d]=Y[j]=Y[f]=Y[h]=Y[g]=Y[m]=Y[A]=Y[T]=Y[w]=Y[I]=Y[_]=Y[k]=!1;var oe=typeof ki=="object"&&ki&&ki.Object===Object&&ki,be=typeof self=="object"&&self&&self.Object===Object&&self,Ce=oe||be||Function("return this")(),ve=e&&!e.nodeType&&e,ye=ve&&!0&&t&&!t.nodeType&&t,te=ye&&ye.exports===ve,L=te&&oe.process,le=function(){try{return L&&L.binding&&L.binding("util")}catch{}}(),ie=le&&le.isTypedArray;function ue(re,Le){for(var rt=-1,qt=re==null?0:re.length,Er=0,sr=[];++rt<qt;){var Wr=re[rt];Le(Wr,rt,re)&&(sr[Er++]=Wr)}return sr}function Ne(re,Le){for(var rt=-1,qt=Le.length,Er=re.length;++rt<qt;)re[Er+rt]=Le[rt];return re}function _e(re,Le){for(var rt=-1,qt=re==null?0:re.length;++rt<qt;)if(Le(re[rt],rt,re))return!0;return!1}function me(re,Le){for(var rt=-1,qt=Array(re);++rt<re;)qt[rt]=Le(rt);return qt}function se(re){return function(Le){return re(Le)}}function we(re,Le){return re.has(Le)}function ke(re,Le){return re==null?void 0:re[Le]}function R(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt,Er){rt[++Le]=[Er,qt]}),rt}function Ae(re,Le){return function(rt){return re(Le(rt))}}function Se(re){var Le=-1,rt=Array(re.size);return re.forEach(function(qt){rt[++Le]=qt}),rt}var fe=Array.prototype,ge=Function.prototype,pe=Object.prototype,Ve=Ce["__core-js_shared__"],De=ge.toString,He=pe.hasOwnProperty,it=function(){var re=/[^.]+$/.exec(Ve&&Ve.keys&&Ve.keys.IE_PROTO||"");return re?"Symbol(src)_1."+re:""}(),ut=pe.toString,dt=RegExp("^"+De.call(He).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=te?Ce.Buffer:void 0,ln=Ce.Symbol,Ft=Ce.Uint8Array,mn=pe.propertyIsEnumerable,Vn=fe.splice,xt=ln?ln.toStringTag:void 0,je=Object.getOwnPropertySymbols,Ye=Bt?Bt.isBuffer:void 0,st=Ae(Object.keys,Object),Jt=Ci(Ce,"DataView"),Xt=Ci(Ce,"Map"),Zt=Ci(Ce,"Promise"),yn=Ci(Ce,"Set"),vt=Ci(Ce,"WeakMap"),Be=Ci(Object,"create"),nt=qr(Jt),Tt=qr(Xt),Mt=qr(Zt),Nn=qr(yn),kn=qr(vt),Qn=ln?ln.prototype:void 0,Jn=Qn?Qn.valueOf:void 0;function br(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Or(){this.__data__=Be?Be(null):{},this.size=0}function Sn(re){var Le=this.has(re)&&delete this.__data__[re];return this.size-=Le?1:0,Le}function ot(re){var Le=this.__data__;if(Be){var rt=Le[re];return rt===r?void 0:rt}return He.call(Le,re)?Le[re]:void 0}function ct(re){var Le=this.__data__;return Be?Le[re]!==void 0:He.call(Le,re)}function yt(re,Le){var rt=this.__data__;return this.size+=this.has(re)?0:1,rt[re]=Be&&Le===void 0?r:Le,this}br.prototype.clear=Or,br.prototype.delete=Sn,br.prototype.get=ot,br.prototype.has=ct,br.prototype.set=yt;function Nt(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function Cn(){this.__data__=[],this.size=0}function On(re){var Le=this.__data__,rt=Yn(Le,re);if(rt<0)return!1;var qt=Le.length-1;return rt==qt?Le.pop():Vn.call(Le,rt,1),--this.size,!0}function _t(re){var Le=this.__data__,rt=Yn(Le,re);return rt<0?void 0:Le[rt][1]}function Fe(re){return Yn(this.__data__,re)>-1}function Qe(re,Le){var rt=this.__data__,qt=Yn(rt,re);return qt<0?(++this.size,rt.push([re,Le])):rt[qt][1]=Le,this}Nt.prototype.clear=Cn,Nt.prototype.delete=On,Nt.prototype.get=_t,Nt.prototype.has=Fe,Nt.prototype.set=Qe;function At(re){var Le=-1,rt=re==null?0:re.length;for(this.clear();++Le<rt;){var qt=re[Le];this.set(qt[0],qt[1])}}function zt(){this.size=0,this.__data__={hash:new br,map:new(Xt||Nt),string:new br}}function Rt(re){var Le=Ei(this,re).delete(re);return this.size-=Le?1:0,Le}function nn(re){return Ei(this,re).get(re)}function xn(re){return Ei(this,re).has(re)}function Ln(re,Le){var rt=Ei(this,re),qt=rt.size;return rt.set(re,Le),this.size+=rt.size==qt?0:1,this}At.prototype.clear=zt,At.prototype.delete=Rt,At.prototype.get=nn,At.prototype.has=xn,At.prototype.set=Ln;function Hn(re){var Le=-1,rt=re==null?0:re.length;for(this.__data__=new At;++Le<rt;)this.add(re[Le])}function at(re){return this.__data__.set(re,r),this}function ae(re){return this.__data__.has(re)}Hn.prototype.add=Hn.prototype.push=at,Hn.prototype.has=ae;function Me(re){var Le=this.__data__=new Nt(re);this.size=Le.size}function We(){this.__data__=new Nt,this.size=0}function ft(re){var Le=this.__data__,rt=Le.delete(re);return this.size=Le.size,rt}function Ct(re){return this.__data__.get(re)}function Gt(re){return this.__data__.has(re)}function Dn(re,Le){var rt=this.__data__;if(rt instanceof Nt){var qt=rt.__data__;if(!Xt||qt.length<n-1)return qt.push([re,Le]),this.size=++rt.size,this;rt=this.__data__=new At(qt)}return rt.set(re,Le),this.size=rt.size,this}Me.prototype.clear=We,Me.prototype.delete=ft,Me.prototype.get=Ct,Me.prototype.has=Gt,Me.prototype.set=Dn;function Pn(re,Le){var rt=Ke(re),qt=!rt&&An(re),Er=!rt&&!qt&&en(re),sr=!rt&&!qt&&!Er&&zs(re),Wr=rt||qt||Er||sr,Fr=Wr?me(re.length,String):[],Tr=Fr.length;for(var Qr in re)He.call(re,Qr)&&!(Wr&&(Qr=="length"||Er&&(Qr=="offset"||Qr=="parent")||sr&&(Qr=="buffer"||Qr=="byteLength"||Qr=="byteOffset")||Kt(Qr,Tr)))&&Fr.push(Qr);return Fr}function Yn(re,Le){for(var rt=re.length;rt--;)if(Os(re[rt][0],Le))return rt;return-1}function Lr(re,Le,rt){var qt=Le(re);return Ke(re)?qt:Ne(qt,rt(re))}function Xr(re){return re==null?re===void 0?O:S:xt&&xt in Object(re)?Yi(re):Wa(re)}function $n(re){return pa(re)&&Xr(re)==l}function Fn(re,Le,rt,qt,Er){return re===Le?!0:re==null||Le==null||!pa(re)&&!pa(Le)?re!==re&&Le!==Le:lr(re,Le,rt,qt,Fn,Er)}function lr(re,Le,rt,qt,Er,sr){var Wr=Ke(re),Fr=Ke(Le),Tr=Wr?c:$e(re),Qr=Fr?c:$e(Le);Tr=Tr==l?T:Tr,Qr=Qr==l?T:Qr;var Ii=Tr==T,Qa=Qr==T,Ki=Tr==Qr;if(Ki&&en(re)){if(!en(Le))return!1;Wr=!0,Ii=!1}if(Ki&&!Ii)return sr||(sr=new Me),Wr||zs(re)?fi(re,Le,rt,qt,Er,sr):Mi(re,Le,Tr,rt,qt,Er,sr);if(!(rt&i)){var vi=Ii&&He.call(re,"__wrapped__"),Ca=Qa&&He.call(Le,"__wrapped__");if(vi||Ca){var os=vi?re.value():re,xa=Ca?Le.value():Le;return sr||(sr=new Me),Er(os,xa,rt,qt,sr)}}return Ki?(sr||(sr=new Me),rr(re,Le,rt,qt,Er,sr)):!1}function Br(re){if(!ua(re)||zr(re))return!1;var Le=yr(re)?dt:Z;return Le.test(qr(re))}function mi(re){return pa(re)&&Mr(re.length)&&!!Y[Xr(re)]}function oi(re){if(!Pr(re))return st(re);var Le=[];for(var rt in Object(re))He.call(re,rt)&&rt!="constructor"&&Le.push(rt);return Le}function fi(re,Le,rt,qt,Er,sr){var Wr=rt&i,Fr=re.length,Tr=Le.length;if(Fr!=Tr&&!(Wr&&Tr>Fr))return!1;var Qr=sr.get(re);if(Qr&&sr.get(Le))return Qr==Le;var Ii=-1,Qa=!0,Ki=rt&a?new Hn:void 0;for(sr.set(re,Le),sr.set(Le,re);++Ii<Fr;){var vi=re[Ii],Ca=Le[Ii];if(qt)var os=Wr?qt(Ca,vi,Ii,Le,re,sr):qt(vi,Ca,Ii,re,Le,sr);if(os!==void 0){if(os)continue;Qa=!1;break}if(Ki){if(!_e(Le,function(xa,zi){if(!we(Ki,zi)&&(vi===xa||Er(vi,xa,rt,qt,sr)))return Ki.push(zi)})){Qa=!1;break}}else if(!(vi===Ca||Er(vi,Ca,rt,qt,sr))){Qa=!1;break}}return sr.delete(re),sr.delete(Le),Qa}function Mi(re,Le,rt,qt,Er,sr,Wr){switch(rt){case j:if(re.byteLength!=Le.byteLength||re.byteOffset!=Le.byteOffset)return!1;re=re.buffer,Le=Le.buffer;case M:return!(re.byteLength!=Le.byteLength||!sr(new Ft(re),new Ft(Le)));case d:case f:case A:return Os(+re,+Le);case h:return re.name==Le.name&&re.message==Le.message;case w:case _:return re==Le+"";case m:var Fr=R;case I:var Tr=qt&i;if(Fr||(Fr=Se),re.size!=Le.size&&!Tr)return!1;var Qr=Wr.get(re);if(Qr)return Qr==Le;qt|=a,Wr.set(re,Le);var Ii=fi(Fr(re),Fr(Le),qt,Er,sr,Wr);return Wr.delete(re),Ii;case N:if(Jn)return Jn.call(re)==Jn.call(Le)}return!1}function rr(re,Le,rt,qt,Er,sr){var Wr=rt&i,Fr=ji(re),Tr=Fr.length,Qr=ji(Le),Ii=Qr.length;if(Tr!=Ii&&!Wr)return!1;for(var Qa=Tr;Qa--;){var Ki=Fr[Qa];if(!(Wr?Ki in Le:He.call(Le,Ki)))return!1}var vi=sr.get(re);if(vi&&sr.get(Le))return vi==Le;var Ca=!0;sr.set(re,Le),sr.set(Le,re);for(var os=Wr;++Qa<Tr;){Ki=Fr[Qa];var xa=re[Ki],zi=Le[Ki];if(qt)var ka=Wr?qt(zi,xa,Ki,Le,re,sr):qt(xa,zi,Ki,re,Le,sr);if(!(ka===void 0?xa===zi||Er(xa,zi,rt,qt,sr):ka)){Ca=!1;break}os||(os=Ki=="constructor")}if(Ca&&!os){var Ha=re.constructor,bi=Le.constructor;Ha!=bi&&"constructor"in re&&"constructor"in Le&&!(typeof Ha=="function"&&Ha instanceof Ha&&typeof bi=="function"&&bi instanceof bi)&&(Ca=!1)}return sr.delete(re),sr.delete(Le),Ca}function ji(re){return Lr(re,wo,pn)}function Ei(re,Le){var rt=re.__data__;return zn(Le)?rt[typeof Le=="string"?"string":"hash"]:rt.map}function Ci(re,Le){var rt=ke(re,Le);return Br(rt)?rt:void 0}function Yi(re){var Le=He.call(re,xt),rt=re[xt];try{re[xt]=void 0;var qt=!0}catch{}var Er=ut.call(re);return qt&&(Le?re[xt]=rt:delete re[xt]),Er}var pn=je?function(re){return re==null?[]:(re=Object(re),ue(je(re),function(Le){return mn.call(re,Le)}))}:Gr,$e=Xr;(Jt&&$e(new Jt(new ArrayBuffer(1)))!=j||Xt&&$e(new Xt)!=m||Zt&&$e(Zt.resolve())!=C||yn&&$e(new yn)!=I||vt&&$e(new vt)!=k)&&($e=function(re){var Le=Xr(re),rt=Le==T?re.constructor:void 0,qt=rt?qr(rt):"";if(qt)switch(qt){case nt:return j;case Tt:return m;case Mt:return C;case Nn:return I;case kn:return k}return Le});function Kt(re,Le){return Le=Le??s,!!Le&&(typeof re=="number"||H.test(re))&&re>-1&&re%1==0&&re<Le}function zn(re){var Le=typeof re;return Le=="string"||Le=="number"||Le=="symbol"||Le=="boolean"?re!=="__proto__":re===null}function zr(re){return!!it&&it in re}function Pr(re){var Le=re&&re.constructor,rt=typeof Le=="function"&&Le.prototype||pe;return re===rt}function Wa(re){return ut.call(re)}function qr(re){if(re!=null){try{return De.call(re)}catch{}try{return re+""}catch{}}return""}function Os(re,Le){return re===Le||re!==re&&Le!==Le}var An=$n(function(){return arguments}())?$n:function(re){return pa(re)&&He.call(re,"callee")&&!mn.call(re,"callee")},Ke=Array.isArray;function It(re){return re!=null&&Mr(re.length)&&!yr(re)}var en=Ye||hi;function er(re,Le){return Fn(re,Le)}function yr(re){if(!ua(re))return!1;var Le=Xr(re);return Le==g||Le==v||Le==u||Le==x}function Mr(re){return typeof re=="number"&&re>-1&&re%1==0&&re<=s}function ua(re){var Le=typeof re;return re!=null&&(Le=="object"||Le=="function")}function pa(re){return re!=null&&typeof re=="object"}var zs=ie?se(ie):mi;function wo(re){return It(re)?Pn(re):oi(re)}function Gr(){return[]}function hi(){return!1}t.exports=er}(l9,l9.exports);var fz=l9.exports,ZS={};Object.defineProperty(ZS,"__esModule",{value:!0});const mEe=dz,vEe=fz;var eC;(function(t){function e(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=mEe(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)=>(vEe(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})(eC||(eC={})),ZS.default=eC;var c9={};Object.defineProperty(c9,"__esModule",{value:!0});var tC;(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})(tC||(tC={})),c9.default=tC;var nC={};Object.defineProperty(nC,"__esModule",{value:!0});const hz=c9;class bEe{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=hz.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]?hz.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[]}}nC.default=bEe,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const n=gEe,r=dz,i=fz,a=ZS;e.AttributeMap=a.default;const s=c9;e.Op=s.default;const l=nC;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 S;A<h?S=m.next(h-A):(S=m.next(g-A),v.push(S)),A+=s.default.length(S)}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 T=A.retain;for(;g.peekType()==="insert"&&g.peekLength()<=T;)T-=g.peekLength(),m.push(g.next());A.retain-T>0&&v.next(A.retain-T)}const S=new d(m);for(;g.hasNext()||v.hasNext();)if(v.peekType()==="insert")S.push(v.next());else if(g.peekType()==="delete")S.push(g.next());else{const T=Math.min(g.peekLength(),v.peekLength()),C=g.next(T),x=v.next(T);if(x.retain){const w={};if(typeof C.retain=="number")w.retain=typeof x.retain=="number"?T:x.retain;else if(typeof x.retain=="number")C.retain==null?w.insert=C.insert:w.retain=C.retain;else{const _=C.retain==null?"insert":"retain",[N,O,k]=u(C[_],x.retain),M=d.getHandler(N);w[_]={[N]:M.compose(O,k,_==="retain")}}const I=a.default.compose(C.attributes,x.attributes,typeof C.retain=="number");if(I&&(w.attributes=I),S.push(w),!v.hasNext()&&i(S.ops[S.ops.length-1],w)){const _=new d(g.rest());return S.concat(_).chop()}}else typeof x.delete=="number"&&(typeof C.retain=="number"||typeof C.retain=="object"&&C.retain!==null)&&S.push(x)}return S.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(C=>C.map(x=>{if(x.insert!=null)return typeof x.insert=="string"?x.insert:c;const w=C===h?"on":"with";throw new Error("diff() called "+w+" non-document")}).join("")),m=new d,A=n(v[0],v[1],g,!0),S=new l.default(this.ops),T=new l.default(h.ops);return A.forEach(C=>{let x=C[1].length;for(;x>0;){let w=0;switch(C[0]){case n.INSERT:w=Math.min(T.peekLength(),x),m.push(T.next(w));break;case n.DELETE:w=Math.min(x,S.peekLength()),S.next(w),m.delete(w);break;case n.EQUAL:w=Math.min(S.peekLength(),T.peekLength(),x);const I=S.next(w),_=T.next(w);i(I.insert,_.insert)?m.retain(w,a.default.diff(I.attributes,_.attributes)):m.push(_).delete(w);break}x-=w}}),m.chop()}eachLine(h,g=`
4377
4377
  `){const v=new l.default(this.ops);let m=new d,A=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const S=v.peek(),T=s.default.length(S)-v.peekLength(),C=typeof S.insert=="string"?S.insert.indexOf(g,T)-T:-1;if(C<0)m.push(v.next());else if(C>0)m.push(v.next(C));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(T=>{m.delete?g.push(T):m.retain&&m.attributes&&g.retain(s.default.length(T),a.default.invert(m.attributes,T.attributes))}),v+A}else if(typeof m.retain=="object"&&m.retain!==null){const A=h.slice(v,v+1),S=new l.default(A.ops).next(),[T,C,x]=u(m.retain,S.insert),w=d.getHandler(T);return g.retain({[T]:w.invert(C,x)},a.default.invert(m.attributes,S.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),S=new d;for(;m.hasNext()||A.hasNext();)if(m.peekType()==="insert"&&(g||A.peekType()!=="insert"))S.retain(s.default.length(m.next()));else if(A.peekType()==="insert")S.push(A.next());else{const T=Math.min(m.peekLength(),A.peekLength()),C=m.next(T),x=A.next(T);if(C.delete)continue;if(x.delete)S.push(x);else{const w=C.retain,I=x.retain;let _=typeof I=="object"&&I!==null?I:T;if(typeof w=="object"&&w!==null&&typeof I=="object"&&I!==null){const N=Object.keys(w)[0];if(N===Object.keys(I)[0]){const O=d.getHandler(N);O&&(_={[N]:O.transform(w[N],I[N],g)})}}S.retain(_,a.default.transform(C.attributes,x.attributes,g))}}return S.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(),S=v.peekType();if(v.next(),S==="delete"){h-=Math.min(A,h-m);continue}else S==="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}(GS,GS.exports);var oc=GS.exports;const cr=Ps(oc);class Xc extends Pl{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}Xc.blotName="break",Xc.tagName="BR";let Gc=class extends i9{};function u9(t){return t.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}const $u=class $u extends YS{static compare(e,n){const r=$u.order.indexOf(e),i=$u.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e<n?-1:1}formatAt(e,n,r,i){if($u.compare(this.statics.blotName,r)<0&&this.scroll.query(r,dr.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 $u&&$u.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};Gn($u,"allowedChildren",[$u,Xc,Pl,Gc]),Gn($u,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let qu=$u;const pz=1;class eo extends Hg{constructor(){super(...arguments);Gn(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=gz(this)),this.cache.delta}deleteAt(n,r){super.deleteAt(n,r),this.cache={}}formatAt(n,r,i,a){r<=0||(this.scroll.query(i,dr.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(`
4378
4378
  `),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 Xc&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+pz),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()-pz)){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}}eo.blotName="block",eo.tagName="P",eo.defaultChild=Xc,eo.allowedChildren=[Xc,qu,Pl,Gc];class lc extends Pl{attach(){super.attach(),this.attributes=new n9(this.domNode)}delta(){return new cr().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,n){const r=this.scroll.query(e,dr.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(`
4379
4379
  `),a=i.pop(),s=i.map(c=>{const u=this.scroll.create(eo.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)}}lc.scope=dr.BLOCK_BLOT;function gz(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.descendants(yo).reduce((n,r)=>r.length()===0?n:n.insert(r.value(),cc(r,{},e)),new cr).insert(`
@@ -58641,7 +58641,7 @@ var bde = function() {
58641
58641
  theme: i.theme,
58642
58642
  formats: i.formats
58643
58643
  };
58644
- bde ? A(new Quill(d.current, M)) : import("./quill-MDngV-HU.js").then(function(q) {
58644
+ bde ? A(new Quill(d.current, M)) : import("./quill-BHBoGF6p.js").then(function(q) {
58645
58645
  if (q && Ee.isExist(d.current)) {
58646
58646
  var k;
58647
58647
  q.default ? k = new q.default(d.current, M) : k = new q(d.current, M), A(k);
@@ -131312,7 +131312,7 @@ const DIe = () => {
131312
131312
  header: H == null ? void 0 : H.label,
131313
131313
  toggleable: !0,
131314
131314
  style: { marginBottom: 10 },
131315
- children: /* @__PURE__ */ c("div", { className: "grid scroll-height-300", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c(
131315
+ children: /* @__PURE__ */ c("div", { className: "grid", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c(
131316
131316
  "div",
131317
131317
  {
131318
131318
  className: "xl:col-6 lg:col-12 md:col-12 sm:col-12",
@@ -131336,7 +131336,7 @@ const DIe = () => {
131336
131336
  header: H == null ? void 0 : H.label,
131337
131337
  toggleable: !0,
131338
131338
  style: { marginBottom: 10 },
131339
- children: /* @__PURE__ */ c("div", { className: "grid scroll-height-300", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
131339
+ children: /* @__PURE__ */ c("div", { className: "grid", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
131340
131340
  $u,
131341
131341
  {
131342
131342
  data: K
@@ -131457,7 +131457,7 @@ const DIe = () => {
131457
131457
  header: H == null ? void 0 : H.label,
131458
131458
  toggleable: !0,
131459
131459
  style: { marginBottom: 10 },
131460
- children: /* @__PURE__ */ c("div", { className: "grid scroll-height-300", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
131460
+ children: /* @__PURE__ */ c("div", { className: "grid", children: H == null ? void 0 : H.items.map((K, ee) => /* @__PURE__ */ c("div", { className: "col-6", children: /* @__PURE__ */ c(
131461
131461
  $u,
131462
131462
  {
131463
131463
  data: K
@@ -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-BnSvwnJD.js";
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-Bmz4AfP2.js";
5
5
  function Ki(n) {
6
6
  return n;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cft-builder",
3
- "version": "0.2.140",
3
+ "version": "0.2.141",
4
4
  "type": "module",
5
5
  "types": "dist/types/index",
6
6
  "files": [