dgz-ui 1.4.13 → 1.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{textarea-EPWY09og.cjs.js → textarea-BR-SfVAo.cjs.js} +2 -2
- package/dist/chunks/{textarea-EPWY09og.cjs.js.map → textarea-BR-SfVAo.cjs.js.map} +1 -1
- package/dist/chunks/{textarea-BnUWlaPx.es.js → textarea-IhWS5tlf.es.js} +2 -2
- package/dist/chunks/{textarea-BnUWlaPx.es.js.map → textarea-IhWS5tlf.es.js.map} +1 -1
- package/dist/form/index.cjs.js +1 -1
- package/dist/form/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -102,7 +102,7 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
`;function Uc({variant:r="default",...e}){return I.jsx(Zp,{$invalid:r==="failure",...e})}Uc.displayName="FilepondContainer";var Xp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qp=Xp.reduce((r,e)=>{const t=ic.createSlot(`Primitive.${e}`),n=C.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Jp="Label",Hc=C.forwardRef((r,e)=>I.jsx(Qp.label,{...r,ref:e,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||((s=r.onMouseDown)==null||s.call(r,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Hc.displayName=Jp;var zc=Hc;const eg=Da.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ha=C.forwardRef(({className:r,...e},t)=>I.jsx(zc,{ref:t,className:Ce.cn(eg(),r),...e}));Ha.displayName=zc.displayName;const tg=Ma.FormProvider,Gc=C.createContext({}),rg=({...r})=>I.jsx(Gc.Provider,{value:{name:r.name},children:I.jsx(Ma.Controller,{...r})}),rs=()=>{const r=C.useContext(Gc),e=C.useContext(Kc),{getFieldState:t,formState:n}=Ma.useFormContext(),s=t(r.name,n);if(!r)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:r.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Kc=C.createContext({}),Wc=C.forwardRef(({className:r,...e},t)=>{const n=C.useId();return I.jsx(Kc.Provider,{value:{id:n},children:I.jsx("div",{ref:t,className:Ce.cn("relative space-y-3",r),...e})})});Wc.displayName="FormItem";const Yc=C.forwardRef(({className:r,...e},t)=>{const{error:n,formItemId:s}=rs();return I.jsx(Ha,{ref:t,className:Ce.cn("!text-body-xs-medium",r,n&&"text-destructive"),htmlFor:s,...e})});Yc.displayName="FormLabel";const Zc=C.forwardRef(({...r},e)=>{const{error:t,formItemId:n,formDescriptionId:s,formMessageId:i}=rs();return I.jsx(ic.Slot,{ref:e,id:n,"aria-describedby":t?`${s} ${i}`:`${s}`,"aria-invalid":!!t,...r})});Zc.displayName="FormControl";const Xc=C.forwardRef(({className:r,...e},t)=>{const{formDescriptionId:n}=rs();return I.jsx("p",{ref:t,id:n,className:Ce.cn("text-muted-foreground text-sm",r),...e})});Xc.displayName="FormDescription";const Qc=C.forwardRef(({className:r,children:e,...t},n)=>{const{error:s,formMessageId:i}=rs(),o=s?String(s==null?void 0:s.message):e;return o?I.jsx("p",{ref:n,id:i,className:Ce.cn("!text-body-xs-medium text-destructive",r),...t,children:o}):null});Qc.displayName="FormMessage";var Jc=typeof global=="object"&&global&&global.Object===Object&&global,ng=typeof self=="object"&&self&&self.Object===Object&&self,Tt=Jc||ng||Function("return this")(),or=Tt.Symbol,eh=Object.prototype,sg=eh.hasOwnProperty,ig=eh.toString,Ln=or?or.toStringTag:void 0;function og(r){var e=sg.call(r,Ln),t=r[Ln];try{r[Ln]=void 0;var n=!0}catch{}var s=ig.call(r);return n&&(e?r[Ln]=t:delete r[Ln]),s}var ag=Object.prototype,lg=ag.toString;function ug(r){return lg.call(r)}var cg="[object Null]",hg="[object Undefined]",ql=or?or.toStringTag:void 0;function mn(r){return r==null?r===void 0?hg:cg:ql&&ql in Object(r)?og(r):ug(r)}function Bt(r){return r!=null&&typeof r=="object"}var Sr=Array.isArray;function ar(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function th(r){return r}var dg="[object AsyncFunction]",fg="[object Function]",pg="[object GeneratorFunction]",gg="[object Proxy]";function za(r){if(!ar(r))return!1;var e=mn(r);return e==fg||e==pg||e==dg||e==gg}var To=Tt["__core-js_shared__"],Fl=(function(){var r=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function mg(r){return!!Fl&&Fl in r}var vg=Function.prototype,yg=vg.toString;function Nr(r){if(r!=null){try{return yg.call(r)}catch{}try{return r+""}catch{}}return""}var bg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,wg=Function.prototype,xg=Object.prototype,_g=wg.toString,Sg=xg.hasOwnProperty,Ag=RegExp("^"+_g.call(Sg).replace(bg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cg(r){if(!ar(r)||mg(r))return!1;var e=za(r)?Ag:Eg;return e.test(Nr(r))}function Tg(r,e){return r==null?void 0:r[e]}function Ir(r,e){var t=Tg(r,e);return Cg(t)?t:void 0}var ia=Ir(Tt,"WeakMap"),jl=Object.create,kg=(function(){function r(){}return function(e){if(!ar(e))return{};if(jl)return jl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}})();function Ng(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Ig(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var Rg=800,Og=16,Lg=Date.now;function Mg(r){var e=0,t=0;return function(){var n=Lg(),s=Og-(n-t);if(t=n,s>0){if(++e>=Rg)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function Dg(r){return function(){return r}}var ei=(function(){try{var r=Ir(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Pg=ei?function(r,e){return ei(r,"toString",{configurable:!0,enumerable:!1,value:Dg(e),writable:!0})}:th,Bg=Mg(Pg);function qg(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var Fg=9007199254740991,jg=/^(?:0|[1-9]\d*)$/;function rh(r,e){var t=typeof r;return e=e??Fg,!!e&&(t=="number"||t!="symbol"&&jg.test(r))&&r>-1&&r%1==0&&r<e}function Ga(r,e,t){e=="__proto__"&&ei?ei(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ns(r,e){return r===e||r!==r&&e!==e}var $g=Object.prototype,Vg=$g.hasOwnProperty;function nh(r,e,t){var n=r[e];(!(Vg.call(r,e)&&ns(n,t))||t===void 0&&!(e in r))&&Ga(r,e,t)}function Ug(r,e,t,n){var s=!t;t||(t={});for(var i=-1,o=e.length;++i<o;){var a=e[i],l=void 0;l===void 0&&(l=r[a]),s?Ga(t,a,l):nh(t,a,l)}return t}var $l=Math.max;function Hg(r,e,t){return e=$l(e===void 0?r.length-1:e,0),function(){for(var n=arguments,s=-1,i=$l(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=t(o),Ng(r,this,a)}}function zg(r,e){return Bg(Hg(r,e,th),r+"")}var Gg=9007199254740991;function sh(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Gg}function gi(r){return r!=null&&sh(r.length)&&!za(r)}function Kg(r,e,t){if(!ar(t))return!1;var n=typeof e;return(n=="number"?gi(t)&&rh(e,t.length):n=="string"&&e in t)?ns(t[e],r):!1}function Wg(r){return zg(function(e,t){var n=-1,s=t.length,i=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Kg(t[0],t[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var a=t[n];a&&r(e,a,n,i)}return e})}var Yg=Object.prototype;function Ka(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Yg;return r===t}function Zg(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Xg="[object Arguments]";function Vl(r){return Bt(r)&&mn(r)==Xg}var ih=Object.prototype,Qg=ih.hasOwnProperty,Jg=ih.propertyIsEnumerable,oa=Vl((function(){return arguments})())?Vl:function(r){return Bt(r)&&Qg.call(r,"callee")&&!Jg.call(r,"callee")};function em(){return!1}var oh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ul=oh&&typeof module=="object"&&module&&!module.nodeType&&module,tm=Ul&&Ul.exports===oh,Hl=tm?Tt.Buffer:void 0,rm=Hl?Hl.isBuffer:void 0,Wn=rm||em,nm="[object Arguments]",sm="[object Array]",im="[object Boolean]",om="[object Date]",am="[object Error]",lm="[object Function]",um="[object Map]",cm="[object Number]",hm="[object Object]",dm="[object RegExp]",fm="[object Set]",pm="[object String]",gm="[object WeakMap]",mm="[object ArrayBuffer]",vm="[object DataView]",ym="[object Float32Array]",bm="[object Float64Array]",Em="[object Int8Array]",wm="[object Int16Array]",xm="[object Int32Array]",_m="[object Uint8Array]",Sm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Cm="[object Uint32Array]",Ae={};Ae[ym]=Ae[bm]=Ae[Em]=Ae[wm]=Ae[xm]=Ae[_m]=Ae[Sm]=Ae[Am]=Ae[Cm]=!0;Ae[nm]=Ae[sm]=Ae[mm]=Ae[im]=Ae[vm]=Ae[om]=Ae[am]=Ae[lm]=Ae[um]=Ae[cm]=Ae[hm]=Ae[dm]=Ae[fm]=Ae[pm]=Ae[gm]=!1;function Tm(r){return Bt(r)&&sh(r.length)&&!!Ae[mn(r)]}function Wa(r){return function(e){return r(e)}}var ah=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=ah&&typeof module=="object"&&module&&!module.nodeType&&module,km=Un&&Un.exports===ah,ko=km&&Jc.process,un=(function(){try{var r=Un&&Un.require&&Un.require("util").types;return r||ko&&ko.binding&&ko.binding("util")}catch{}})(),zl=un&&un.isTypedArray,Ya=zl?Wa(zl):Tm,Nm=Object.prototype,Im=Nm.hasOwnProperty;function lh(r,e){var t=Sr(r),n=!t&&oa(r),s=!t&&!n&&Wn(r),i=!t&&!n&&!s&&Ya(r),o=t||n||s||i,a=o?Zg(r.length,String):[],l=a.length;for(var c in r)(e||Im.call(r,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rh(c,l)))&&a.push(c);return a}function uh(r,e){return function(t){return r(e(t))}}var Rm=uh(Object.keys,Object),Om=Object.prototype,Lm=Om.hasOwnProperty;function Mm(r){if(!Ka(r))return Rm(r);var e=[];for(var t in Object(r))Lm.call(r,t)&&t!="constructor"&&e.push(t);return e}function Dm(r){return gi(r)?lh(r):Mm(r)}function Pm(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var Bm=Object.prototype,qm=Bm.hasOwnProperty;function Fm(r){if(!ar(r))return Pm(r);var e=Ka(r),t=[];for(var n in r)n=="constructor"&&(e||!qm.call(r,n))||t.push(n);return t}function ch(r){return gi(r)?lh(r,!0):Fm(r)}var Yn=Ir(Object,"create");function jm(){this.__data__=Yn?Yn(null):{},this.size=0}function $m(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var Vm="__lodash_hash_undefined__",Um=Object.prototype,Hm=Um.hasOwnProperty;function zm(r){var e=this.__data__;if(Yn){var t=e[r];return t===Vm?void 0:t}return Hm.call(e,r)?e[r]:void 0}var Gm=Object.prototype,Km=Gm.hasOwnProperty;function Wm(r){var e=this.__data__;return Yn?e[r]!==void 0:Km.call(e,r)}var Ym="__lodash_hash_undefined__";function Zm(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Yn&&e===void 0?Ym:e,this}function Ar(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Ar.prototype.clear=jm;Ar.prototype.delete=$m;Ar.prototype.get=zm;Ar.prototype.has=Wm;Ar.prototype.set=Zm;function Xm(){this.__data__=[],this.size=0}function mi(r,e){for(var t=r.length;t--;)if(ns(r[t][0],e))return t;return-1}var Qm=Array.prototype,Jm=Qm.splice;function e0(r){var e=this.__data__,t=mi(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Jm.call(e,t,1),--this.size,!0}function t0(r){var e=this.__data__,t=mi(e,r);return t<0?void 0:e[t][1]}function r0(r){return mi(this.__data__,r)>-1}function n0(r,e){var t=this.__data__,n=mi(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Vt(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Vt.prototype.clear=Xm;Vt.prototype.delete=e0;Vt.prototype.get=t0;Vt.prototype.has=r0;Vt.prototype.set=n0;var Zn=Ir(Tt,"Map");function s0(){this.size=0,this.__data__={hash:new Ar,map:new(Zn||Vt),string:new Ar}}function i0(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function vi(r,e){var t=r.__data__;return i0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function o0(r){var e=vi(this,r).delete(r);return this.size-=e?1:0,e}function a0(r){return vi(this,r).get(r)}function l0(r){return vi(this,r).has(r)}function u0(r,e){var t=vi(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Rr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Rr.prototype.clear=s0;Rr.prototype.delete=o0;Rr.prototype.get=a0;Rr.prototype.has=l0;Rr.prototype.set=u0;function c0(r,e){for(var t=-1,n=e.length,s=r.length;++t<n;)r[s+t]=e[t];return r}var hh=uh(Object.getPrototypeOf,Object),h0="[object Object]",d0=Function.prototype,f0=Object.prototype,dh=d0.toString,p0=f0.hasOwnProperty,g0=dh.call(Object);function m0(r){if(!Bt(r)||mn(r)!=h0)return!1;var e=hh(r);if(e===null)return!0;var t=p0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&dh.call(t)==g0}function v0(){this.__data__=new Vt,this.size=0}function y0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function b0(r){return this.__data__.get(r)}function E0(r){return this.__data__.has(r)}var w0=200;function x0(r,e){var t=this.__data__;if(t instanceof Vt){var n=t.__data__;if(!Zn||n.length<w0-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Rr(n)}return t.set(r,e),this.size=t.size,this}function _t(r){var e=this.__data__=new Vt(r);this.size=e.size}_t.prototype.clear=v0;_t.prototype.delete=y0;_t.prototype.get=b0;_t.prototype.has=E0;_t.prototype.set=x0;var fh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gl=fh&&typeof module=="object"&&module&&!module.nodeType&&module,_0=Gl&&Gl.exports===fh,Kl=_0?Tt.Buffer:void 0,Wl=Kl?Kl.allocUnsafe:void 0;function ph(r,e){if(e)return r.slice();var t=r.length,n=Wl?Wl(t):new r.constructor(t);return r.copy(n),n}function S0(r,e){for(var t=-1,n=r==null?0:r.length,s=0,i=[];++t<n;){var o=r[t];e(o,t,r)&&(i[s++]=o)}return i}function A0(){return[]}var C0=Object.prototype,T0=C0.propertyIsEnumerable,Yl=Object.getOwnPropertySymbols,k0=Yl?function(r){return r==null?[]:(r=Object(r),S0(Yl(r),function(e){return T0.call(r,e)}))}:A0;function N0(r,e,t){var n=e(r);return Sr(r)?n:c0(n,t(r))}function aa(r){return N0(r,Dm,k0)}var la=Ir(Tt,"DataView"),ua=Ir(Tt,"Promise"),ca=Ir(Tt,"Set"),Zl="[object Map]",I0="[object Object]",Xl="[object Promise]",Ql="[object Set]",Jl="[object WeakMap]",eu="[object DataView]",R0=Nr(la),O0=Nr(Zn),L0=Nr(ua),M0=Nr(ca),D0=Nr(ia),lt=mn;(la&<(new la(new ArrayBuffer(1)))!=eu||Zn&<(new Zn)!=Zl||ua&<(ua.resolve())!=Xl||ca&<(new ca)!=Ql||ia&<(new ia)!=Jl)&&(lt=function(r){var e=mn(r),t=e==I0?r.constructor:void 0,n=t?Nr(t):"";if(n)switch(n){case R0:return eu;case O0:return Zl;case L0:return Xl;case M0:return Ql;case D0:return Jl}return e});var P0=Object.prototype,B0=P0.hasOwnProperty;function q0(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&B0.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var ti=Tt.Uint8Array;function Za(r){var e=new r.constructor(r.byteLength);return new ti(e).set(new ti(r)),e}function F0(r,e){var t=Za(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var j0=/\w*$/;function $0(r){var e=new r.constructor(r.source,j0.exec(r));return e.lastIndex=r.lastIndex,e}var tu=or?or.prototype:void 0,ru=tu?tu.valueOf:void 0;function V0(r){return ru?Object(ru.call(r)):{}}function gh(r,e){var t=e?Za(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var U0="[object Boolean]",H0="[object Date]",z0="[object Map]",G0="[object Number]",K0="[object RegExp]",W0="[object Set]",Y0="[object String]",Z0="[object Symbol]",X0="[object ArrayBuffer]",Q0="[object DataView]",J0="[object Float32Array]",e1="[object Float64Array]",t1="[object Int8Array]",r1="[object Int16Array]",n1="[object Int32Array]",s1="[object Uint8Array]",i1="[object Uint8ClampedArray]",o1="[object Uint16Array]",a1="[object Uint32Array]";function l1(r,e,t){var n=r.constructor;switch(e){case X0:return Za(r);case U0:case H0:return new n(+r);case Q0:return F0(r);case J0:case e1:case t1:case r1:case n1:case s1:case i1:case o1:case a1:return gh(r,t);case z0:return new n;case G0:case Y0:return new n(r);case K0:return $0(r);case W0:return new n;case Z0:return V0(r)}}function mh(r){return typeof r.constructor=="function"&&!Ka(r)?kg(hh(r)):{}}var u1="[object Map]";function c1(r){return Bt(r)&<(r)==u1}var nu=un&&un.isMap,h1=nu?Wa(nu):c1,d1="[object Set]";function f1(r){return Bt(r)&<(r)==d1}var su=un&&un.isSet,p1=su?Wa(su):f1,g1=1,vh="[object Arguments]",m1="[object Array]",v1="[object Boolean]",y1="[object Date]",b1="[object Error]",yh="[object Function]",E1="[object GeneratorFunction]",w1="[object Map]",x1="[object Number]",bh="[object Object]",_1="[object RegExp]",S1="[object Set]",A1="[object String]",C1="[object Symbol]",T1="[object WeakMap]",k1="[object ArrayBuffer]",N1="[object DataView]",I1="[object Float32Array]",R1="[object Float64Array]",O1="[object Int8Array]",L1="[object Int16Array]",M1="[object Int32Array]",D1="[object Uint8Array]",P1="[object Uint8ClampedArray]",B1="[object Uint16Array]",q1="[object Uint32Array]",_e={};_e[vh]=_e[m1]=_e[k1]=_e[N1]=_e[v1]=_e[y1]=_e[I1]=_e[R1]=_e[O1]=_e[L1]=_e[M1]=_e[w1]=_e[x1]=_e[bh]=_e[_1]=_e[S1]=_e[A1]=_e[C1]=_e[D1]=_e[P1]=_e[B1]=_e[q1]=!0;_e[b1]=_e[yh]=_e[T1]=!1;function zs(r,e,t,n,s,i){var o,a=e&g1;if(o!==void 0)return o;if(!ar(r))return r;var l=Sr(r);if(l)o=q0(r);else{var c=lt(r),h=c==yh||c==E1;if(Wn(r))return ph(r,a);if(c==bh||c==vh||h&&!s)o=h?{}:mh(r);else{if(!_e[c])return s?r:{};o=l1(r,c,a)}}i||(i=new _t);var g=i.get(r);if(g)return g;i.set(r,o),p1(r)?r.forEach(function(v){o.add(zs(v,e,t,v,r,i))}):h1(r)&&r.forEach(function(v,d){o.set(d,zs(v,e,t,d,r,i))});var p=aa,m=l?void 0:p(r);return qg(m||r,function(v,d){m&&(d=v,v=r[d]),nh(o,d,zs(v,e,t,d,r,i))}),o}var F1=1,j1=4;function tn(r){return zs(r,F1|j1)}var $1="__lodash_hash_undefined__";function V1(r){return this.__data__.set(r,$1),this}function U1(r){return this.__data__.has(r)}function ri(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Rr;++e<t;)this.add(r[e])}ri.prototype.add=ri.prototype.push=V1;ri.prototype.has=U1;function H1(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function z1(r,e){return r.has(e)}var G1=1,K1=2;function Eh(r,e,t,n,s,i){var o=t&G1,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(r),h=i.get(e);if(c&&h)return c==e&&h==r;var g=-1,p=!0,m=t&K1?new ri:void 0;for(i.set(r,e),i.set(e,r);++g<a;){var v=r[g],d=e[g];if(n)var b=o?n(d,v,g,e,r,i):n(v,d,g,r,e,i);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!H1(e,function(E,x){if(!z1(m,x)&&(v===E||s(v,E,t,n,i)))return m.push(x)})){p=!1;break}}else if(!(v===d||s(v,d,t,n,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function W1(r){var e=-1,t=Array(r.size);return r.forEach(function(n,s){t[++e]=[s,n]}),t}function Y1(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var Z1=1,X1=2,Q1="[object Boolean]",J1="[object Date]",ev="[object Error]",tv="[object Map]",rv="[object Number]",nv="[object RegExp]",sv="[object Set]",iv="[object String]",ov="[object Symbol]",av="[object ArrayBuffer]",lv="[object DataView]",iu=or?or.prototype:void 0,No=iu?iu.valueOf:void 0;function uv(r,e,t,n,s,i,o){switch(t){case lv:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case av:return!(r.byteLength!=e.byteLength||!i(new ti(r),new ti(e)));case Q1:case J1:case rv:return ns(+r,+e);case ev:return r.name==e.name&&r.message==e.message;case nv:case iv:return r==e+"";case tv:var a=W1;case sv:var l=n&Z1;if(a||(a=Y1),r.size!=e.size&&!l)return!1;var c=o.get(r);if(c)return c==e;n|=X1,o.set(r,e);var h=Eh(a(r),a(e),n,s,i,o);return o.delete(r),h;case ov:if(No)return No.call(r)==No.call(e)}return!1}var cv=1,hv=Object.prototype,dv=hv.hasOwnProperty;function fv(r,e,t,n,s,i){var o=t&cv,a=aa(r),l=a.length,c=aa(e),h=c.length;if(l!=h&&!o)return!1;for(var g=l;g--;){var p=a[g];if(!(o?p in e:dv.call(e,p)))return!1}var m=i.get(r),v=i.get(e);if(m&&v)return m==e&&v==r;var d=!0;i.set(r,e),i.set(e,r);for(var b=o;++g<l;){p=a[g];var E=r[p],x=e[p];if(n)var S=o?n(x,E,p,e,r,i):n(E,x,p,r,e,i);if(!(S===void 0?E===x||s(E,x,t,n,i):S)){d=!1;break}b||(b=p=="constructor")}if(d&&!b){var k=r.constructor,_=e.constructor;k!=_&&"constructor"in r&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof _=="function"&&_ instanceof _)&&(d=!1)}return i.delete(r),i.delete(e),d}var pv=1,ou="[object Arguments]",au="[object Array]",ks="[object Object]",gv=Object.prototype,lu=gv.hasOwnProperty;function mv(r,e,t,n,s,i){var o=Sr(r),a=Sr(e),l=o?au:lt(r),c=a?au:lt(e);l=l==ou?ks:l,c=c==ou?ks:c;var h=l==ks,g=c==ks,p=l==c;if(p&&Wn(r)){if(!Wn(e))return!1;o=!0,h=!1}if(p&&!h)return i||(i=new _t),o||Ya(r)?Eh(r,e,t,n,s,i):uv(r,e,l,t,n,s,i);if(!(t&pv)){var m=h&&lu.call(r,"__wrapped__"),v=g&&lu.call(e,"__wrapped__");if(m||v){var d=m?r.value():r,b=v?e.value():e;return i||(i=new _t),s(d,b,t,n,i)}}return p?(i||(i=new _t),fv(r,e,t,n,s,i)):!1}function wh(r,e,t,n,s){return r===e?!0:r==null||e==null||!Bt(r)&&!Bt(e)?r!==r&&e!==e:mv(r,e,t,n,wh,s)}function vv(r){return function(e,t,n){for(var s=-1,i=Object(e),o=n(e),a=o.length;a--;){var l=o[++s];if(t(i[l],l,i)===!1)break}return e}}var yv=vv();function ha(r,e,t){(t!==void 0&&!ns(r[e],t)||t===void 0&&!(e in r))&&Ga(r,e,t)}function bv(r){return Bt(r)&&gi(r)}function da(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function Ev(r){return Ug(r,ch(r))}function wv(r,e,t,n,s,i,o){var a=da(r,t),l=da(e,t),c=o.get(l);if(c){ha(r,t,c);return}var h=i?i(a,l,t+"",r,e,o):void 0,g=h===void 0;if(g){var p=Sr(l),m=!p&&Wn(l),v=!p&&!m&&Ya(l);h=l,p||m||v?Sr(a)?h=a:bv(a)?h=Ig(a):m?(g=!1,h=ph(l,!0)):v?(g=!1,h=gh(l,!0)):h=[]:m0(l)||oa(l)?(h=a,oa(a)?h=Ev(a):(!ar(a)||za(a))&&(h=mh(l))):g=!1}g&&(o.set(l,h),s(h,l,n,i,o),o.delete(l)),ha(r,t,h)}function xh(r,e,t,n,s){r!==e&&yv(e,function(i,o){if(s||(s=new _t),ar(i))wv(r,e,o,t,xh,n,s);else{var a=n?n(da(r,o),i,o+"",r,e,s):void 0;a===void 0&&(a=i),ha(r,o,a)}},ch)}function Zt(r,e){return wh(r,e)}var nr=Wg(function(r,e,t){xh(r,e,t)}),ne=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(ne||{});class At{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const s=ne.TYPE&ne.ATTRIBUTE;this.scope=n.scope!=null?n.scope&ne.LEVEL|s:ne.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class rn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _h=class fa{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const s=this.query(t);if(s==null)throw new rn(`Unable to create ${t} blot`);const i=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(n),a=new i(e,o,n);return fa.blots.set(a.domNode,a),a}find(e,t=!1){return fa.find(e,t)}query(e,t=ne.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&ne.LEVEL&ne.BLOCK?n=this.types.block:e&ne.LEVEL&ne.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&ne.LEVEL&n.scope&&t&ne.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,s="attrName"in t;if(!n&&!s)throw new rn("Invalid definition");if(n&&t.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?t.blotName:s?t.attrName:void 0;return this.types[i]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};_h.blots=new WeakMap;let cn=_h;function uu(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class xv extends At{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){uu(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(uu(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const pt=xv;function Io(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class _v extends At{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Io(this.keyName)]=t,!0):!1}remove(e){e.style[Io(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Io(this.keyName)];return this.canAdd(e,t)?t:""}}const lr=_v;class Sv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(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=cn.find(this.domNode);if(e==null)return;const t=At.keys(this.domNode),n=pt.keys(this.domNode),s=lr.keys(this.domNode);t.concat(n).concat(s).forEach(i=>{const o=e.scroll.query(i,ne.ATTRIBUTE);o instanceof At&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const yi=Sv,Sh=class{constructor(e,t){this.scroll=e,this.domNode=t,cn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new rn("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}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),cn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,s){const i=this.isolate(e,t);if(this.scroll.query(n,ne.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(e,t,n){const s=n==null?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(s,i||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}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,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${e}`);return n.appendChild(this),n}};Sh.blotName="abstract";let Ah=Sh;const Ch=class extends Ah{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Ch.scope=ne.INLINE_BLOT;let Av=Ch;const Fe=Av;class Cv{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),s=0;for(;n;){if(n===e)return s;s+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===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 t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.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 t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(e<i||t&&e===i&&(s.next==null||s.next.length()!==0))return[s,e];e-=i,s=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[s,i]=this.find(e);let o=e-i;const a=this.iterator(s);let l=a();for(;l&&o<e+t;){const c=l.length();e>o?n(l,e-o,Math.min(t,o+c-e)):n(l,0,Math.min(c,e+t-o)),o+=c,l=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let s=n();for(;s;)t=e(t,s),s=n();return t}}function cu(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(ne.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const Th=class Wt extends Ah{constructor(e,t){super(e,t),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,Wt.uiClass&&this.uiNode.classList.add(Wt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Cv,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=cu(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof rn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,s,i)=>{n.deleteAt(s,i)})}descendant(e,t=0){const[n,s]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,s]:n instanceof Wt?n.descendant(e,s):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(t,n,(o,a,l)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof Wt&&(s=s.concat(o.descendants(e,a,i))),i-=l}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Wt?t.unwrap():t.remove())})}formatAt(e,t,n,s){this.children.forEachAt(e,t,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(e,t,n){const[s,i]=this.children.find(e);if(s)s.insertAt(i,t,n);else{const o=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(o)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}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 t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,s]=this.children.find(e,t),i=[[this,e]];return n instanceof Wt?i.concat(n.path(s,t)):(n!=null&&i.push([n,s]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Wt&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(s,i,o)=>{const a=s.split(i,t);a!=null&&n.appendChild(a)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],s=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=cu(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};Th.uiClass="";let Tv=Th;const dt=Tv;function kv(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Wr=class Yr extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Yr.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Yr||(n=n.wrap(Yr.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,ne.INLINE);if(n==null)return;n instanceof At?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.formats()[n]!=null||this.scroll.query(n,ne.ATTRIBUTE)?this.isolate(e,t).format(n,s):super.formatAt(e,t,n,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Yr&&n.prev===this&&kv(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Yr&&this.attributes.move(n),n}};Wr.allowedChildren=[Wr,Fe],Wr.blotName="inline",Wr.scope=ne.INLINE_BLOT,Wr.tagName="SPAN";let Nv=Wr;const Xa=Nv,Zr=class pa extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(pa.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){const n=this.scroll.query(e,ne.BLOCK);n!=null&&(n instanceof At?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(pa.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.scroll.query(n,ne.BLOCK)!=null?this.format(n,s):super.formatAt(e,t,n,s)}insertAt(e,t,n){if(n==null||this.scroll.query(t,ne.INLINE)!=null)super.insertAt(e,t,n);else{const s=this.split(e);if(s!=null){const i=this.scroll.create(t,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Zr.blotName="block",Zr.scope=ne.BLOCK_BLOT,Zr.tagName="P",Zr.allowedChildren=[Xa,Zr,Fe];let Iv=Zr;const Xn=Iv,ga=class extends dt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,s){super.formatAt(e,t,n,s),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};ga.blotName="container",ga.scope=ne.BLOCK_BLOT;let Rv=ga;const bi=Rv;class Ov extends Fe{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,s){e===0&&t===this.length()?this.format(n,s):super.formatAt(e,t,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const We=Ov,Lv={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Mv=100,Xr=class extends dt{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Lv),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,s){this.update(),super.formatAt(e,t,n,s)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(n.has(l.domNode)||n.set(l.domNode,[]),c&&i(l.parent))},o=l=>{n.has(l.domNode)&&(l instanceof dt&&l.children.forEach(o),n.delete(l.domNode),l.optimize(t))};let a=e;for(let l=0;a.length>0;l+=1){if(l>=Mv)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(c=>{const h=this.find(c.target,!0);h!=null&&(h.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(g=>{const p=this.find(g,!1);i(p,!1),p instanceof dt&&p.children.forEach(m=>{i(m,!1)})})):c.type==="attributes"&&i(h.prev)),i(h))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Xr.blotName="scroll",Xr.defaultChild=Xn,Xr.allowedChildren=[Xn,bi],Xr.scope=ne.BLOCK_BLOT,Xr.tagName="DIV";let Dv=Xr;const Qa=Dv,ma=class kh extends Fe{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}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 kh&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ma.blotName="text",ma.scope=ne.INLINE_BLOT;let Pv=ma;const ni=Pv,Bv=Object.freeze(Object.defineProperty({__proto__:null,Attributor:At,AttributorStore:yi,BlockBlot:Xn,ClassAttributor:pt,ContainerBlot:bi,EmbedBlot:We,InlineBlot:Xa,LeafBlot:Fe,ParentBlot:dt,Registry:cn,Scope:ne,ScrollBlot:Qa,StyleAttributor:lr,TextBlot:ni},Symbol.toStringTag,{value:"Module"}));var Ns={exports:{}},Ro,hu;function qv(){if(hu)return Ro;hu=1;var r=-1,e=1,t=0;function n(y,M,A,V,j){if(y===M)return y?[[t,y]]:[];if(A!=null){var R=ae(y,M,A);if(R)return R}var q=a(y,M),Y=y.substring(0,q);y=y.substring(q),M=M.substring(q),q=c(y,M);var Z=y.substring(y.length-q);y=y.substring(0,y.length-q),M=M.substring(0,M.length-q);var T=s(y,M);return Y&&T.unshift([t,Y]),Z&&T.push([t,Z]),x(T,j),V&&g(T),T}function s(y,M){var A;if(!y)return[[e,M]];if(!M)return[[r,y]];var V=y.length>M.length?y:M,j=y.length>M.length?M:y,R=V.indexOf(j);if(R!==-1)return A=[[e,V.substring(0,R)],[t,j],[e,V.substring(R+j.length)]],y.length>M.length&&(A[0][0]=A[2][0]=r),A;if(j.length===1)return[[r,y],[e,M]];var q=h(y,M);if(q){var Y=q[0],Z=q[1],T=q[2],D=q[3],U=q[4],W=n(Y,T),z=n(Z,D);return W.concat([[t,U]],z)}return i(y,M)}function i(y,M){for(var A=y.length,V=M.length,j=Math.ceil((A+V)/2),R=j,q=2*j,Y=new Array(q),Z=new Array(q),T=0;T<q;T++)Y[T]=-1,Z[T]=-1;Y[R+1]=0,Z[R+1]=0;for(var D=A-V,U=D%2!==0,W=0,z=0,H=0,J=0,F=0;F<j;F++){for(var $=-F+W;$<=F-z;$+=2){var X=R+$,G;$===-F||$!==F&&Y[X-1]<Y[X+1]?G=Y[X+1]:G=Y[X-1]+1;for(var Q=G-$;G<A&&Q<V&&y.charAt(G)===M.charAt(Q);)G++,Q++;if(Y[X]=G,G>A)z+=2;else if(Q>V)W+=2;else if(U){var N=R+D-$;if(N>=0&&N<q&&Z[N]!==-1){var ue=A-Z[N];if(G>=ue)return o(y,M,G,Q)}}}for(var ge=-F+H;ge<=F-J;ge+=2){var N=R+ge,ue;ge===-F||ge!==F&&Z[N-1]<Z[N+1]?ue=Z[N+1]:ue=Z[N-1]+1;for(var be=ue-ge;ue<A&&be<V&&y.charAt(A-ue-1)===M.charAt(V-be-1);)ue++,be++;if(Z[N]=ue,ue>A)J+=2;else if(be>V)H+=2;else if(!U){var X=R+D-ge;if(X>=0&&X<q&&Y[X]!==-1){var G=Y[X],Q=R+G-X;if(ue=A-ue,G>=ue)return o(y,M,G,Q)}}}}return[[r,y],[e,M]]}function o(y,M,A,V){var j=y.substring(0,A),R=M.substring(0,V),q=y.substring(A),Y=M.substring(V),Z=n(j,R),T=n(q,Y);return Z.concat(T)}function a(y,M){if(!y||!M||y.charAt(0)!==M.charAt(0))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(R,j)==M.substring(R,j)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return S(y.charCodeAt(j-1))&&j--,j}function l(y,M){var A=y.length,V=M.length;if(A==0||V==0)return 0;A>V?y=y.substring(A-V):A<V&&(M=M.substring(0,A));var j=Math.min(A,V);if(y==M)return j;for(var R=0,q=1;;){var Y=y.substring(j-q),Z=M.indexOf(Y);if(Z==-1)return R;q+=Z,(Z==0||y.substring(j-q)==M.substring(0,q))&&(R=q,q++)}}function c(y,M){if(!y||!M||y.slice(-1)!==M.slice(-1))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(y.length-j,y.length-R)==M.substring(M.length-j,M.length-R)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return k(y.charCodeAt(y.length-j))&&j--,j}function h(y,M){var A=y.length>M.length?y:M,V=y.length>M.length?M:y;if(A.length<4||V.length*2<A.length)return null;function j(z,H,J){for(var F=z.substring(J,J+Math.floor(z.length/4)),$=-1,X="",G,Q,N,ue;($=H.indexOf(F,$+1))!==-1;){var ge=a(z.substring(J),H.substring($)),be=c(z.substring(0,J),H.substring(0,$));X.length<be+ge&&(X=H.substring($-be,$)+H.substring($,$+ge),G=z.substring(0,J-be),Q=z.substring(J+ge),N=H.substring(0,$-be),ue=H.substring($+ge))}return X.length*2>=z.length?[G,Q,N,ue,X]:null}var R=j(A,V,Math.ceil(A.length/4)),q=j(A,V,Math.ceil(A.length/2)),Y;if(!R&&!q)return null;q?R?Y=R[4].length>q[4].length?R:q:Y=q:Y=R;var Z,T,D,U;y.length>M.length?(Z=Y[0],T=Y[1],D=Y[2],U=Y[3]):(D=Y[0],U=Y[1],Z=Y[2],T=Y[3]);var W=Y[4];return[Z,T,D,U,W]}function g(y){for(var M=!1,A=[],V=0,j=null,R=0,q=0,Y=0,Z=0,T=0;R<y.length;)y[R][0]==t?(A[V++]=R,q=Z,Y=T,Z=0,T=0,j=y[R][1]):(y[R][0]==e?Z+=y[R][1].length:T+=y[R][1].length,j&&j.length<=Math.max(q,Y)&&j.length<=Math.max(Z,T)&&(y.splice(A[V-1],0,[r,j]),y[A[V-1]+1][0]=e,V--,V--,R=V>0?A[V-1]:-1,q=0,Y=0,Z=0,T=0,j=null,M=!0)),R++;for(M&&x(y),E(y),R=1;R<y.length;){if(y[R-1][0]==r&&y[R][0]==e){var D=y[R-1][1],U=y[R][1],W=l(D,U),z=l(U,D);W>=z?(W>=D.length/2||W>=U.length/2)&&(y.splice(R,0,[t,U.substring(0,W)]),y[R-1][1]=D.substring(0,D.length-W),y[R+1][1]=U.substring(W),R++):(z>=D.length/2||z>=U.length/2)&&(y.splice(R,0,[t,D.substring(0,z)]),y[R-1][0]=e,y[R-1][1]=U.substring(0,U.length-z),y[R+1][0]=r,y[R+1][1]=D.substring(z),R++),R++}R++}}var p=/[^a-zA-Z0-9]/,m=/\s/,v=/[\r\n]/,d=/\n\r?\n$/,b=/^\r?\n\r?\n/;function E(y){function M(z,H){if(!z||!H)return 6;var J=z.charAt(z.length-1),F=H.charAt(0),$=J.match(p),X=F.match(p),G=$&&J.match(m),Q=X&&F.match(m),N=G&&J.match(v),ue=Q&&F.match(v),ge=N&&z.match(d),be=ue&&H.match(b);return ge||be?5:N||ue?4:$&&!G&&Q?3:G||Q?2:$||X?1:0}for(var A=1;A<y.length-1;){if(y[A-1][0]==t&&y[A+1][0]==t){var V=y[A-1][1],j=y[A][1],R=y[A+1][1],q=c(V,j);if(q){var Y=j.substring(j.length-q);V=V.substring(0,V.length-q),j=Y+j.substring(0,j.length-q),R=Y+R}for(var Z=V,T=j,D=R,U=M(V,j)+M(j,R);j.charAt(0)===R.charAt(0);){V+=j.charAt(0),j=j.substring(1)+R.charAt(0),R=R.substring(1);var W=M(V,j)+M(j,R);W>=U&&(U=W,Z=V,T=j,D=R)}y[A-1][1]!=Z&&(Z?y[A-1][1]=Z:(y.splice(A-1,1),A--),y[A][1]=T,D?y[A+1][1]=D:(y.splice(A+1,1),A--))}A++}}function x(y,M){y.push([t,""]);for(var A=0,V=0,j=0,R="",q="",Y;A<y.length;){if(A<y.length-1&&!y[A][1]){y.splice(A,1);continue}switch(y[A][0]){case e:j++,q+=y[A][1],A++;break;case r:V++,R+=y[A][1],A++;break;case t:var Z=A-j-V-1;if(M){if(Z>=0&&B(y[Z][1])){var T=y[Z][1].slice(-1);if(y[Z][1]=y[Z][1].slice(0,-1),R=T+R,q=T+q,!y[Z][1]){y.splice(Z,1),A--;var D=Z-1;y[D]&&y[D][0]===e&&(j++,q=y[D][1]+q,D--),y[D]&&y[D][0]===r&&(V++,R=y[D][1]+R,D--),Z=D}}if(_(y[A][1])){var T=y[A][1].charAt(0);y[A][1]=y[A][1].slice(1),R+=T,q+=T}}if(A<y.length-1&&!y[A][1]){y.splice(A,1);break}if(R.length>0||q.length>0){R.length>0&&q.length>0&&(Y=a(q,R),Y!==0&&(Z>=0?y[Z][1]+=q.substring(0,Y):(y.splice(0,0,[t,q.substring(0,Y)]),A++),q=q.substring(Y),R=R.substring(Y)),Y=c(q,R),Y!==0&&(y[A][1]=q.substring(q.length-Y)+y[A][1],q=q.substring(0,q.length-Y),R=R.substring(0,R.length-Y)));var U=j+V;R.length===0&&q.length===0?(y.splice(A-U,U),A=A-U):R.length===0?(y.splice(A-U,U,[e,q]),A=A-U+1):q.length===0?(y.splice(A-U,U,[r,R]),A=A-U+1):(y.splice(A-U,U,[r,R],[e,q]),A=A-U+2)}A!==0&&y[A-1][0]===t?(y[A-1][1]+=y[A][1],y.splice(A,1)):A++,j=0,V=0,R="",q="";break}}y[y.length-1][1]===""&&y.pop();var W=!1;for(A=1;A<y.length-1;)y[A-1][0]===t&&y[A+1][0]===t&&(y[A][1].substring(y[A][1].length-y[A-1][1].length)===y[A-1][1]?(y[A][1]=y[A-1][1]+y[A][1].substring(0,y[A][1].length-y[A-1][1].length),y[A+1][1]=y[A-1][1]+y[A+1][1],y.splice(A-1,1),W=!0):y[A][1].substring(0,y[A+1][1].length)==y[A+1][1]&&(y[A-1][1]+=y[A+1][1],y[A][1]=y[A][1].substring(y[A+1][1].length)+y[A+1][1],y.splice(A+1,1),W=!0)),A++;W&&x(y,M)}function S(y){return y>=55296&&y<=56319}function k(y){return y>=56320&&y<=57343}function _(y){return k(y.charCodeAt(0))}function B(y){return S(y.charCodeAt(y.length-1))}function L(y){for(var M=[],A=0;A<y.length;A++)y[A][1].length>0&&M.push(y[A]);return M}function K(y,M,A,V){return B(y)||_(V)?null:L([[t,y],[r,M],[e,A],[t,V]])}function ae(y,M,A){var V=typeof A=="number"?{index:A,length:0}:A.oldRange,j=typeof A=="number"?null:A.newRange,R=y.length,q=M.length;if(V.length===0&&(j===null||j.length===0)){var Y=V.index,Z=y.slice(0,Y),T=y.slice(Y),D=j?j.index:null;e:{var U=Y+q-R;if(D!==null&&D!==U||U<0||U>q)break e;var W=M.slice(0,U),z=M.slice(U);if(z!==T)break e;var H=Math.min(Y,U),J=Z.slice(0,H),F=W.slice(0,H);if(J!==F)break e;var $=Z.slice(H),X=W.slice(H);return K(J,$,X,T)}e:{if(D!==null&&D!==Y)break e;var G=Y,W=M.slice(0,G),z=M.slice(G);if(W!==Z)break e;var Q=Math.min(R-G,q-G),N=T.slice(T.length-Q),ue=z.slice(z.length-Q);if(N!==ue)break e;var $=T.slice(0,T.length-Q),X=z.slice(0,z.length-Q);return K(Z,$,X,N)}}if(V.length>0&&j&&j.length===0)e:{var J=y.slice(0,V.index),N=y.slice(V.index+V.length),H=J.length,Q=N.length;if(q<H+Q)break e;var F=M.slice(0,H),ue=M.slice(q-Q);if(J!==F||N!==ue)break e;var $=y.slice(H,R-Q),X=M.slice(H,q-Q);return K(J,$,X,N)}return null}function de(y,M,A,V){return n(y,M,A,V,!0)}return de.INSERT=e,de.DELETE=r,de.EQUAL=t,Ro=de,Ro}var Bn={exports:{}};Bn.exports;var du;function Nh(){return du||(du=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",m="[object Number]",v="[object Object]",d="[object Promise]",b="[object RegExp]",E="[object Set]",x="[object String]",S="[object Symbol]",k="[object WeakMap]",_="[object ArrayBuffer]",B="[object DataView]",L="[object Float32Array]",K="[object Float64Array]",ae="[object Int8Array]",de="[object Int16Array]",y="[object Int32Array]",M="[object Uint8Array]",A="[object Uint8ClampedArray]",V="[object Uint16Array]",j="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,q=/\w*$/,Y=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,T={};T[i]=T[o]=T[_]=T[B]=T[a]=T[l]=T[L]=T[K]=T[ae]=T[de]=T[y]=T[p]=T[m]=T[v]=T[b]=T[E]=T[x]=T[S]=T[M]=T[A]=T[V]=T[j]=!0,T[c]=T[h]=T[k]=!1;var D=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,W=D||U||Function("return this")(),z=e&&!e.nodeType&&e,H=z&&!0&&r&&!r.nodeType&&r,J=H&&H.exports===z;function F(u,f){return u.set(f[0],f[1]),u}function $(u,f){return u.add(f),u}function X(u,f){for(var w=-1,O=u?u.length:0;++w<O&&f(u[w],w,u)!==!1;);return u}function G(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Q(u,f,w,O){for(var he=-1,ie=u?u.length:0;++he<ie;)w=f(w,u[he],he,u);return w}function N(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function ue(u,f){return u==null?void 0:u[f]}function ge(u){var f=!1;if(u!=null&&typeof u.toString!="function")try{f=!!(u+"")}catch{}return f}function be(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function kt(u,f){return function(w){return u(f(w))}}function Ht(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Mi=Array.prototype,Di=Function.prototype,Dr=Object.prototype,yn=W["__core-js_shared__"],ls=(function(){var u=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),us=Di.toString,vt=Dr.hasOwnProperty,Pr=Dr.toString,Pi=RegExp("^"+us.call(vt).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=J?W.Buffer:void 0,Br=W.Symbol,bn=W.Uint8Array,Ye=kt(Object.getPrototypeOf,Object),cs=Object.create,hs=Dr.propertyIsEnumerable,Bi=Mi.splice,En=Object.getOwnPropertySymbols,qr=hr?hr.isBuffer:void 0,ds=kt(Object.keys,Object),Fr=nt(W,"DataView"),dr=nt(W,"Map"),rt=nt(W,"Promise"),jr=nt(W,"Set"),wn=nt(W,"WeakMap"),fr=nt(Object,"create"),xn=Ue(Fr),pr=Ue(dr),_n=Ue(rt),Sn=Ue(jr),An=Ue(wn),zt=Br?Br.prototype:void 0,fs=zt?zt.valueOf:void 0;function Nt(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function qi(){this.__data__=fr?fr(null):{}}function Fi(u){return this.has(u)&&delete this.__data__[u]}function ji(u){var f=this.__data__;if(fr){var w=f[u];return w===n?void 0:w}return vt.call(f,u)?f[u]:void 0}function ps(u){var f=this.__data__;return fr?f[u]!==void 0:vt.call(f,u)}function Cn(u,f){var w=this.__data__;return w[u]=fr&&f===void 0?n:f,this}Nt.prototype.clear=qi,Nt.prototype.delete=Fi,Nt.prototype.get=ji,Nt.prototype.has=ps,Nt.prototype.set=Cn;function Le(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=[]}function Vi(u){var f=this.__data__,w=Vr(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():Bi.call(f,w,1),!0}function Ui(u){var f=this.__data__,w=Vr(f,u);return w<0?void 0:f[w][1]}function Hi(u){return Vr(this.__data__,u)>-1}function zi(u,f){var w=this.__data__,O=Vr(w,u);return O<0?w.push([u,f]):w[O][1]=f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__={hash:new Nt,map:new(dr||Le),string:new Nt}}function Ki(u){return mr(this,u).delete(u)}function Wi(u){return mr(this,u).get(u)}function Yi(u){return mr(this,u).has(u)}function Zi(u,f){return mr(this,u).set(u,f),this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){this.__data__=new Le(u)}function Xi(){this.__data__=new Le}function Qi(u){return this.__data__.delete(u)}function Ji(u){return this.__data__.get(u)}function eo(u){return this.__data__.has(u)}function to(u,f){var w=this.__data__;if(w instanceof Le){var O=w.__data__;if(!dr||O.length<t-1)return O.push([u,f]),this;w=this.__data__=new Pe(O)}return w.set(u,f),this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u,f){var w=In(u)||Hr(u)?N(u.length,String):[],O=w.length,he=!!O;for(var ie in u)vt.call(u,ie)&&!(he&&(ie=="length"||mo(ie,O)))&&w.push(ie);return w}function gs(u,f,w){var O=u[f];(!(vt.call(u,f)&&Es(O,w))||w===void 0&&!(f in u))&&(u[f]=w)}function Vr(u,f){for(var w=u.length;w--;)if(Es(u[w][0],f))return w;return-1}function yt(u,f){return u&&Nn(f,On(f),u)}function Tn(u,f,w,O,he,ie,ve){var me;if(O&&(me=ie?O(u,he,ie,ve):O(u)),me!==void 0)return me;if(!Et(u))return u;var ke=In(u);if(ke){if(me=po(u),!f)return co(u,me)}else{var Ee=Rt(u),Be=Ee==h||Ee==g;if(ws(u))return Ur(u,f);if(Ee==v||Ee==i||Be&&!ie){if(ge(u))return ie?u:{};if(me=bt(Be?{}:u),!f)return ho(u,yt(me,u))}else{if(!T[Ee])return ie?u:{};me=go(u,Ee,Tn,f)}}ve||(ve=new He);var ze=ve.get(u);if(ze)return ze;if(ve.set(u,me),!ke)var Ie=w?fo(u):On(u);return X(Ie||u,function(qe,Me){Ie&&(Me=qe,qe=u[Me]),gs(me,Me,Tn(qe,f,w,O,Me,u,ve))}),me}function ro(u){return Et(u)?cs(u):{}}function no(u,f,w){var O=f(u);return In(u)?O:G(O,w(u))}function so(u){return Pr.call(u)}function io(u){if(!Et(u)||yo(u))return!1;var f=Rn(u)||ge(u)?Pi:Y;return f.test(Ue(u))}function oo(u){if(!ys(u))return ds(u);var f=[];for(var w in Object(u))vt.call(u,w)&&w!="constructor"&&f.push(w);return f}function Ur(u,f){if(f)return u.slice();var w=new u.constructor(u.length);return u.copy(w),w}function kn(u){var f=new u.constructor(u.byteLength);return new bn(f).set(new bn(u)),f}function gr(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function ms(u,f,w){var O=f?w(be(u),!0):be(u);return Q(O,F,new u.constructor)}function vs(u){var f=new u.constructor(u.source,q.exec(u));return f.lastIndex=u.lastIndex,f}function ao(u,f,w){var O=f?w(Ht(u),!0):Ht(u);return Q(O,$,new u.constructor)}function lo(u){return fs?Object(fs.call(u)):{}}function uo(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function co(u,f){var w=-1,O=u.length;for(f||(f=Array(O));++w<O;)f[w]=u[w];return f}function Nn(u,f,w,O){w||(w={});for(var he=-1,ie=f.length;++he<ie;){var ve=f[he],me=void 0;gs(w,ve,me===void 0?u[ve]:me)}return w}function ho(u,f){return Nn(u,It(u),f)}function fo(u){return no(u,On,It)}function mr(u,f){var w=u.__data__;return vo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function nt(u,f){var w=ue(u,f);return io(w)?w:void 0}var It=En?kt(En,Object):Eo,Rt=so;(Fr&&Rt(new Fr(new ArrayBuffer(1)))!=B||dr&&Rt(new dr)!=p||rt&&Rt(rt.resolve())!=d||jr&&Rt(new jr)!=E||wn&&Rt(new wn)!=k)&&(Rt=function(u){var f=Pr.call(u),w=f==v?u.constructor:void 0,O=w?Ue(w):void 0;if(O)switch(O){case xn:return B;case pr:return p;case _n:return d;case Sn:return E;case An:return k}return f});function po(u){var f=u.length,w=u.constructor(f);return f&&typeof u[0]=="string"&&vt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function bt(u){return typeof u.constructor=="function"&&!ys(u)?ro(Ye(u)):{}}function go(u,f,w,O){var he=u.constructor;switch(f){case _:return kn(u);case a:case l:return new he(+u);case B:return gr(u,O);case L:case K:case ae:case de:case y:case M:case A:case V:case j:return uo(u,O);case p:return ms(u,O,w);case m:case x:return new he(u);case b:return vs(u);case E:return ao(u,O,w);case S:return lo(u)}}function mo(u,f){return f=f??s,!!f&&(typeof u=="number"||Z.test(u))&&u>-1&&u%1==0&&u<f}function vo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function yo(u){return!!ls&&ls in u}function ys(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||Dr;return u===w}function Ue(u){if(u!=null){try{return us.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u){return Tn(u,!0,!0)}function Es(u,f){return u===f||u!==u&&f!==f}function Hr(u){return bo(u)&&vt.call(u,"callee")&&(!hs.call(u,"callee")||Pr.call(u)==i)}var In=Array.isArray;function zr(u){return u!=null&&xs(u.length)&&!Rn(u)}function bo(u){return _s(u)&&zr(u)}var ws=qr||wo;function Rn(u){var f=Et(u)?Pr.call(u):"";return f==h||f==g}function xs(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=s}function Et(u){var f=typeof u;return!!u&&(f=="object"||f=="function")}function _s(u){return!!u&&typeof u=="object"}function On(u){return zr(u)?$r(u):oo(u)}function Eo(){return[]}function wo(){return!1}r.exports=bs})(Bn,Bn.exports)),Bn.exports}var qn={exports:{}};qn.exports;var fu;function Ih(){return fu||(fu=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",d="[object Map]",b="[object Number]",E="[object Null]",x="[object Object]",S="[object Promise]",k="[object Proxy]",_="[object RegExp]",B="[object Set]",L="[object String]",K="[object Symbol]",ae="[object Undefined]",de="[object WeakMap]",y="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",V="[object Float64Array]",j="[object Int8Array]",R="[object Int16Array]",q="[object Int32Array]",Y="[object Uint8Array]",Z="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,H={};H[A]=H[V]=H[j]=H[R]=H[q]=H[Y]=H[Z]=H[T]=H[D]=!0,H[a]=H[l]=H[y]=H[h]=H[M]=H[g]=H[p]=H[m]=H[d]=H[b]=H[x]=H[_]=H[B]=H[L]=H[de]=!1;var J=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,$=J||F||Function("return this")(),X=e&&!e.nodeType&&e,G=X&&!0&&r&&!r.nodeType&&r,Q=G&&G.exports===X,N=Q&&J.process,ue=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),ge=ue&&ue.isTypedArray;function be(u,f){for(var w=-1,O=u==null?0:u.length,he=0,ie=[];++w<O;){var ve=u[w];f(ve,w,u)&&(ie[he++]=ve)}return ie}function kt(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Ht(u,f){for(var w=-1,O=u==null?0:u.length;++w<O;)if(f(u[w],w,u))return!0;return!1}function Mi(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function Di(u){return function(f){return u(f)}}function Dr(u,f){return u.has(f)}function yn(u,f){return u==null?void 0:u[f]}function ls(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function us(u,f){return function(w){return u(f(w))}}function vt(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Pr=Array.prototype,Pi=Function.prototype,hr=Object.prototype,Br=$["__core-js_shared__"],bn=Pi.toString,Ye=hr.hasOwnProperty,cs=(function(){var u=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),hs=hr.toString,Bi=RegExp("^"+bn.call(Ye).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=Q?$.Buffer:void 0,qr=$.Symbol,ds=$.Uint8Array,Fr=hr.propertyIsEnumerable,dr=Pr.splice,rt=qr?qr.toStringTag:void 0,jr=Object.getOwnPropertySymbols,wn=En?En.isBuffer:void 0,fr=us(Object.keys,Object),xn=It($,"DataView"),pr=It($,"Map"),_n=It($,"Promise"),Sn=It($,"Set"),An=It($,"WeakMap"),zt=It(Object,"create"),fs=Ue(xn),Nt=Ue(pr),qi=Ue(_n),Fi=Ue(Sn),ji=Ue(An),ps=qr?qr.prototype:void 0,Cn=ps?ps.valueOf:void 0;function Le(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=zt?zt(null):{},this.size=0}function Vi(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function Ui(u){var f=this.__data__;if(zt){var w=f[u];return w===n?void 0:w}return Ye.call(f,u)?f[u]:void 0}function Hi(u){var f=this.__data__;return zt?f[u]!==void 0:Ye.call(f,u)}function zi(u,f){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=zt&&f===void 0?n:f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__=[],this.size=0}function Ki(u){var f=this.__data__,w=Ur(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():dr.call(f,w,1),--this.size,!0}function Wi(u){var f=this.__data__,w=Ur(f,u);return w<0?void 0:f[w][1]}function Yi(u){return Ur(this.__data__,u)>-1}function Zi(u,f){var w=this.__data__,O=Ur(w,u);return O<0?(++this.size,w.push([u,f])):w[O][1]=f,this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Xi(){this.size=0,this.__data__={hash:new Le,map:new(pr||Pe),string:new Le}}function Qi(u){var f=nt(this,u).delete(u);return this.size-=f?1:0,f}function Ji(u){return nt(this,u).get(u)}function eo(u){return nt(this,u).has(u)}function to(u,f){var w=nt(this,u),O=w.size;return w.set(u,f),this.size+=w.size==O?0:1,this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u){var f=-1,w=u==null?0:u.length;for(this.__data__=new He;++f<w;)this.add(u[f])}function gs(u){return this.__data__.set(u,n),this}function Vr(u){return this.__data__.has(u)}$r.prototype.add=$r.prototype.push=gs,$r.prototype.has=Vr;function yt(u){var f=this.__data__=new Pe(u);this.size=f.size}function Tn(){this.__data__=new Pe,this.size=0}function ro(u){var f=this.__data__,w=f.delete(u);return this.size=f.size,w}function no(u){return this.__data__.get(u)}function so(u){return this.__data__.has(u)}function io(u,f){var w=this.__data__;if(w instanceof Pe){var O=w.__data__;if(!pr||O.length<t-1)return O.push([u,f]),this.size=++w.size,this;w=this.__data__=new He(O)}return w.set(u,f),this.size=w.size,this}yt.prototype.clear=Tn,yt.prototype.delete=ro,yt.prototype.get=no,yt.prototype.has=so,yt.prototype.set=io;function oo(u,f){var w=Hr(u),O=!w&&Es(u),he=!w&&!O&&zr(u),ie=!w&&!O&&!he&&_s(u),ve=w||O||he||ie,me=ve?Mi(u.length,String):[],ke=me.length;for(var Ee in u)Ye.call(u,Ee)&&!(ve&&(Ee=="length"||he&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||go(Ee,ke)))&&me.push(Ee);return me}function Ur(u,f){for(var w=u.length;w--;)if(bs(u[w][0],f))return w;return-1}function kn(u,f,w){var O=f(u);return Hr(u)?O:kt(O,w(u))}function gr(u){return u==null?u===void 0?ae:E:rt&&rt in Object(u)?Rt(u):ys(u)}function ms(u){return Et(u)&&gr(u)==a}function vs(u,f,w,O,he){return u===f?!0:u==null||f==null||!Et(u)&&!Et(f)?u!==u&&f!==f:ao(u,f,w,O,vs,he)}function ao(u,f,w,O,he,ie){var ve=Hr(u),me=Hr(f),ke=ve?l:bt(u),Ee=me?l:bt(f);ke=ke==a?x:ke,Ee=Ee==a?x:Ee;var Be=ke==x,ze=Ee==x,Ie=ke==Ee;if(Ie&&zr(u)){if(!zr(f))return!1;ve=!0,Be=!1}if(Ie&&!Be)return ie||(ie=new yt),ve||_s(u)?Nn(u,f,w,O,he,ie):ho(u,f,ke,w,O,he,ie);if(!(w&s)){var qe=Be&&Ye.call(u,"__wrapped__"),Me=ze&&Ye.call(f,"__wrapped__");if(qe||Me){var Gt=qe?u.value():u,Ot=Me?f.value():f;return ie||(ie=new yt),he(Gt,Ot,w,O,ie)}}return Ie?(ie||(ie=new yt),fo(u,f,w,O,he,ie)):!1}function lo(u){if(!xs(u)||vo(u))return!1;var f=ws(u)?Bi:W;return f.test(Ue(u))}function uo(u){return Et(u)&&Rn(u.length)&&!!H[gr(u)]}function co(u){if(!yo(u))return fr(u);var f=[];for(var w in Object(u))Ye.call(u,w)&&w!="constructor"&&f.push(w);return f}function Nn(u,f,w,O,he,ie){var ve=w&s,me=u.length,ke=f.length;if(me!=ke&&!(ve&&ke>me))return!1;var Ee=ie.get(u);if(Ee&&ie.get(f))return Ee==f;var Be=-1,ze=!0,Ie=w&i?new $r:void 0;for(ie.set(u,f),ie.set(f,u);++Be<me;){var qe=u[Be],Me=f[Be];if(O)var Gt=ve?O(Me,qe,Be,f,u,ie):O(qe,Me,Be,u,f,ie);if(Gt!==void 0){if(Gt)continue;ze=!1;break}if(Ie){if(!Ht(f,function(Ot,vr){if(!Dr(Ie,vr)&&(qe===Ot||he(qe,Ot,w,O,ie)))return Ie.push(vr)})){ze=!1;break}}else if(!(qe===Me||he(qe,Me,w,O,ie))){ze=!1;break}}return ie.delete(u),ie.delete(f),ze}function ho(u,f,w,O,he,ie,ve){switch(w){case M:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case y:return!(u.byteLength!=f.byteLength||!ie(new ds(u),new ds(f)));case h:case g:case b:return bs(+u,+f);case p:return u.name==f.name&&u.message==f.message;case _:case L:return u==f+"";case d:var me=ls;case B:var ke=O&s;if(me||(me=vt),u.size!=f.size&&!ke)return!1;var Ee=ve.get(u);if(Ee)return Ee==f;O|=i,ve.set(u,f);var Be=Nn(me(u),me(f),O,he,ie,ve);return ve.delete(u),Be;case K:if(Cn)return Cn.call(u)==Cn.call(f)}return!1}function fo(u,f,w,O,he,ie){var ve=w&s,me=mr(u),ke=me.length,Ee=mr(f),Be=Ee.length;if(ke!=Be&&!ve)return!1;for(var ze=ke;ze--;){var Ie=me[ze];if(!(ve?Ie in f:Ye.call(f,Ie)))return!1}var qe=ie.get(u);if(qe&&ie.get(f))return qe==f;var Me=!0;ie.set(u,f),ie.set(f,u);for(var Gt=ve;++ze<ke;){Ie=me[ze];var Ot=u[Ie],vr=f[Ie];if(O)var vl=ve?O(vr,Ot,Ie,f,u,ie):O(Ot,vr,Ie,u,f,ie);if(!(vl===void 0?Ot===vr||he(Ot,vr,w,O,ie):vl)){Me=!1;break}Gt||(Gt=Ie=="constructor")}if(Me&&!Gt){var Ss=u.constructor,As=f.constructor;Ss!=As&&"constructor"in u&&"constructor"in f&&!(typeof Ss=="function"&&Ss instanceof Ss&&typeof As=="function"&&As instanceof As)&&(Me=!1)}return ie.delete(u),ie.delete(f),Me}function mr(u){return kn(u,On,po)}function nt(u,f){var w=u.__data__;return mo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function It(u,f){var w=yn(u,f);return lo(w)?w:void 0}function Rt(u){var f=Ye.call(u,rt),w=u[rt];try{u[rt]=void 0;var O=!0}catch{}var he=hs.call(u);return O&&(f?u[rt]=w:delete u[rt]),he}var po=jr?function(u){return u==null?[]:(u=Object(u),be(jr(u),function(f){return Fr.call(u,f)}))}:Eo,bt=gr;(xn&&bt(new xn(new ArrayBuffer(1)))!=M||pr&&bt(new pr)!=d||_n&&bt(_n.resolve())!=S||Sn&&bt(new Sn)!=B||An&&bt(new An)!=de)&&(bt=function(u){var f=gr(u),w=f==x?u.constructor:void 0,O=w?Ue(w):"";if(O)switch(O){case fs:return M;case Nt:return d;case qi:return S;case Fi:return B;case ji:return de}return f});function go(u,f){return f=f??o,!!f&&(typeof u=="number"||z.test(u))&&u>-1&&u%1==0&&u<f}function mo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function vo(u){return!!cs&&cs in u}function yo(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||hr;return u===w}function ys(u){return hs.call(u)}function Ue(u){if(u!=null){try{return bn.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u,f){return u===f||u!==u&&f!==f}var Es=ms((function(){return arguments})())?ms:function(u){return Et(u)&&Ye.call(u,"callee")&&!Fr.call(u,"callee")},Hr=Array.isArray;function In(u){return u!=null&&Rn(u.length)&&!ws(u)}var zr=wn||wo;function bo(u,f){return vs(u,f)}function ws(u){if(!xs(u))return!1;var f=gr(u);return f==m||f==v||f==c||f==k}function Rn(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=o}function xs(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Et(u){return u!=null&&typeof u=="object"}var _s=ge?Di(ge):uo;function On(u){return In(u)?oo(u):co(u)}function Eo(){return[]}function wo(){return!1}r.exports=bo})(qn,qn.exports)),qn.exports}var Is={},pu;function Fv(){if(pu)return Is;pu=1,Object.defineProperty(Is,"__esModule",{value:!0});const r=Nh(),e=Ih();var t;return(function(n){function s(l={},c={},h=!1){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});let g=r(c);h||(g=Object.keys(g).reduce((p,m)=>(g[m]!=null&&(p[m]=g[m]),p),{}));for(const p in l)l[p]!==void 0&&c[p]===void 0&&(g[p]=l[p]);return Object.keys(g).length>0?g:void 0}n.compose=s;function i(l={},c={}){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});const h=Object.keys(l).concat(Object.keys(c)).reduce((g,p)=>(e(l[p],c[p])||(g[p]=c[p]===void 0?null:c[p]),g),{});return Object.keys(h).length>0?h:void 0}n.diff=i;function o(l={},c={}){l=l||{};const h=Object.keys(c).reduce((g,p)=>(c[p]!==l[p]&&l[p]!==void 0&&(g[p]=c[p]),g),{});return Object.keys(l).reduce((g,p)=>(l[p]!==c[p]&&c[p]===void 0&&(g[p]=null),g),h)}n.invert=o;function a(l,c,h=!1){if(typeof l!="object")return c;if(typeof c!="object")return;if(!h)return c;const g=Object.keys(c).reduce((p,m)=>(l[m]===void 0&&(p[m]=c[m]),p),{});return Object.keys(g).length>0?g:void 0}n.transform=a})(t||(t={})),Is.default=t,Is}var Rs={},gu;function Rh(){if(gu)return Rs;gu=1,Object.defineProperty(Rs,"__esModule",{value:!0});var r;return(function(e){function t(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}e.length=t})(r||(r={})),Rs.default=r,Rs}var Os={},mu;function jv(){if(mu)return Os;mu=1,Object.defineProperty(Os,"__esModule",{value:!0});const r=Rh();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return Os.default=e,Os}var vu;function $v(){return vu||(vu=1,(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=qv(),n=Nh(),s=Ih(),i=Fv();e.AttributeMap=i.default;const o=Rh();e.Op=o.default;const a=jv();e.OpIterator=a.default;const l="\0",c=(g,p)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const m=Object.keys(g)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,g[m],p[m]]};class h{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const v={};return typeof p=="string"&&p.length===0?this:(v.insert=p,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if(typeof p=="number"&&p<=0)return this;const v={retain:p};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v)}push(p){let m=this.ops.length,v=this.ops[m-1];if(p=n(p),typeof v=="object"){if(typeof p.delete=="number"&&typeof v.delete=="number")return this.ops[m-1]={delete:v.delete+p.delete},this;if(typeof v.delete=="number"&&p.insert!=null&&(m-=1,v=this.ops[m-1],typeof v!="object"))return this.ops.unshift(p),this;if(s(p.attributes,v.attributes)){if(typeof p.insert=="string"&&typeof v.insert=="string")return this.ops[m-1]={insert:v.insert+p.insert},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof v.retain=="number")return this.ops[m-1]={retain:v.retain+p.retain},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],v=[];return this.forEach(d=>{(p(d)?m:v).push(d)}),[m,v]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>m.insert?p+o.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+o.default.length(m),0)}slice(p=0,m=1/0){const v=[],d=new a.default(this.ops);let b=0;for(;b<m&&d.hasNext();){let E;b<p?E=d.next(p-b):(E=d.next(m-b),v.push(E)),b+=o.default.length(E)}return new h(v)}compose(p){const m=new a.default(this.ops),v=new a.default(p.ops),d=[],b=v.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let x=b.retain;for(;m.peekType()==="insert"&&m.peekLength()<=x;)x-=m.peekLength(),d.push(m.next());b.retain-x>0&&v.next(b.retain-x)}const E=new h(d);for(;m.hasNext()||v.hasNext();)if(v.peekType()==="insert")E.push(v.next());else if(m.peekType()==="delete")E.push(m.next());else{const x=Math.min(m.peekLength(),v.peekLength()),S=m.next(x),k=v.next(x);if(k.retain){const _={};if(typeof S.retain=="number")_.retain=typeof k.retain=="number"?x:k.retain;else if(typeof k.retain=="number")S.retain==null?_.insert=S.insert:_.retain=S.retain;else{const L=S.retain==null?"insert":"retain",[K,ae,de]=c(S[L],k.retain),y=h.getHandler(K);_[L]={[K]:y.compose(ae,de,L==="retain")}}const B=i.default.compose(S.attributes,k.attributes,typeof S.retain=="number");if(B&&(_.attributes=B),E.push(_),!v.hasNext()&&s(E.ops[E.ops.length-1],_)){const L=new h(m.rest());return E.concat(L).chop()}}else typeof k.delete=="number"&&(typeof S.retain=="number"||typeof S.retain=="object"&&S.retain!==null)&&E.push(k)}return E.chop()}concat(p){const m=new h(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new h;const v=[this,p].map(S=>S.map(k=>{if(k.insert!=null)return typeof k.insert=="string"?k.insert:l;const _=S===p?"on":"with";throw new Error("diff() called "+_+" non-document")}).join("")),d=new h,b=t(v[0],v[1],m,!0),E=new a.default(this.ops),x=new a.default(p.ops);return b.forEach(S=>{let k=S[1].length;for(;k>0;){let _=0;switch(S[0]){case t.INSERT:_=Math.min(x.peekLength(),k),d.push(x.next(_));break;case t.DELETE:_=Math.min(k,E.peekLength()),E.next(_),d.delete(_);break;case t.EQUAL:_=Math.min(E.peekLength(),x.peekLength(),k);const B=E.next(_),L=x.next(_);s(B.insert,L.insert)?d.retain(_,i.default.diff(B.attributes,L.attributes)):d.push(L).delete(_);break}k-=_}}),d.chop()}eachLine(p,m=`
|
|
105
|
+
`;function Uc({variant:r="default",...e}){return I.jsx(Zp,{$invalid:r==="failure",...e})}Uc.displayName="FilepondContainer";var Xp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qp=Xp.reduce((r,e)=>{const t=ic.createSlot(`Primitive.${e}`),n=C.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Jp="Label",Hc=C.forwardRef((r,e)=>I.jsx(Qp.label,{...r,ref:e,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||((s=r.onMouseDown)==null||s.call(r,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Hc.displayName=Jp;var zc=Hc;const eg=Da.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ha=C.forwardRef(({className:r,...e},t)=>I.jsx(zc,{ref:t,className:Ce.cn(eg(),r),...e}));Ha.displayName=zc.displayName;const tg=Ma.FormProvider,Gc=C.createContext({}),rg=({...r})=>I.jsx(Gc.Provider,{value:{name:r.name},children:I.jsx(Ma.Controller,{...r})}),rs=()=>{const r=C.useContext(Gc),e=C.useContext(Kc),{getFieldState:t,formState:n}=Ma.useFormContext(),s=t(r.name,n);if(!r)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:r.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Kc=C.createContext({}),Wc=C.forwardRef(({className:r,...e},t)=>{const n=C.useId();return I.jsx(Kc.Provider,{value:{id:n},children:I.jsx("div",{ref:t,className:Ce.cn("relative space-y-2",r),...e})})});Wc.displayName="FormItem";const Yc=C.forwardRef(({className:r,...e},t)=>{const{error:n,formItemId:s}=rs();return I.jsx(Ha,{ref:t,className:Ce.cn("!text-body-xs-medium",r,n&&"text-destructive"),htmlFor:s,...e})});Yc.displayName="FormLabel";const Zc=C.forwardRef(({...r},e)=>{const{error:t,formItemId:n,formDescriptionId:s,formMessageId:i}=rs();return I.jsx(ic.Slot,{ref:e,id:n,"aria-describedby":t?`${s} ${i}`:`${s}`,"aria-invalid":!!t,...r})});Zc.displayName="FormControl";const Xc=C.forwardRef(({className:r,...e},t)=>{const{formDescriptionId:n}=rs();return I.jsx("p",{ref:t,id:n,className:Ce.cn("text-muted-foreground text-sm",r),...e})});Xc.displayName="FormDescription";const Qc=C.forwardRef(({className:r,children:e,...t},n)=>{const{error:s,formMessageId:i}=rs(),o=s?String(s==null?void 0:s.message):e;return o?I.jsx("p",{ref:n,id:i,className:Ce.cn("!text-body-xs-medium text-destructive",r),...t,children:o}):null});Qc.displayName="FormMessage";var Jc=typeof global=="object"&&global&&global.Object===Object&&global,ng=typeof self=="object"&&self&&self.Object===Object&&self,Tt=Jc||ng||Function("return this")(),or=Tt.Symbol,eh=Object.prototype,sg=eh.hasOwnProperty,ig=eh.toString,Ln=or?or.toStringTag:void 0;function og(r){var e=sg.call(r,Ln),t=r[Ln];try{r[Ln]=void 0;var n=!0}catch{}var s=ig.call(r);return n&&(e?r[Ln]=t:delete r[Ln]),s}var ag=Object.prototype,lg=ag.toString;function ug(r){return lg.call(r)}var cg="[object Null]",hg="[object Undefined]",ql=or?or.toStringTag:void 0;function mn(r){return r==null?r===void 0?hg:cg:ql&&ql in Object(r)?og(r):ug(r)}function Bt(r){return r!=null&&typeof r=="object"}var Sr=Array.isArray;function ar(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function th(r){return r}var dg="[object AsyncFunction]",fg="[object Function]",pg="[object GeneratorFunction]",gg="[object Proxy]";function za(r){if(!ar(r))return!1;var e=mn(r);return e==fg||e==pg||e==dg||e==gg}var To=Tt["__core-js_shared__"],Fl=(function(){var r=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function mg(r){return!!Fl&&Fl in r}var vg=Function.prototype,yg=vg.toString;function Nr(r){if(r!=null){try{return yg.call(r)}catch{}try{return r+""}catch{}}return""}var bg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,wg=Function.prototype,xg=Object.prototype,_g=wg.toString,Sg=xg.hasOwnProperty,Ag=RegExp("^"+_g.call(Sg).replace(bg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cg(r){if(!ar(r)||mg(r))return!1;var e=za(r)?Ag:Eg;return e.test(Nr(r))}function Tg(r,e){return r==null?void 0:r[e]}function Ir(r,e){var t=Tg(r,e);return Cg(t)?t:void 0}var ia=Ir(Tt,"WeakMap"),jl=Object.create,kg=(function(){function r(){}return function(e){if(!ar(e))return{};if(jl)return jl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}})();function Ng(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Ig(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var Rg=800,Og=16,Lg=Date.now;function Mg(r){var e=0,t=0;return function(){var n=Lg(),s=Og-(n-t);if(t=n,s>0){if(++e>=Rg)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function Dg(r){return function(){return r}}var ei=(function(){try{var r=Ir(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Pg=ei?function(r,e){return ei(r,"toString",{configurable:!0,enumerable:!1,value:Dg(e),writable:!0})}:th,Bg=Mg(Pg);function qg(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var Fg=9007199254740991,jg=/^(?:0|[1-9]\d*)$/;function rh(r,e){var t=typeof r;return e=e??Fg,!!e&&(t=="number"||t!="symbol"&&jg.test(r))&&r>-1&&r%1==0&&r<e}function Ga(r,e,t){e=="__proto__"&&ei?ei(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ns(r,e){return r===e||r!==r&&e!==e}var $g=Object.prototype,Vg=$g.hasOwnProperty;function nh(r,e,t){var n=r[e];(!(Vg.call(r,e)&&ns(n,t))||t===void 0&&!(e in r))&&Ga(r,e,t)}function Ug(r,e,t,n){var s=!t;t||(t={});for(var i=-1,o=e.length;++i<o;){var a=e[i],l=void 0;l===void 0&&(l=r[a]),s?Ga(t,a,l):nh(t,a,l)}return t}var $l=Math.max;function Hg(r,e,t){return e=$l(e===void 0?r.length-1:e,0),function(){for(var n=arguments,s=-1,i=$l(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=t(o),Ng(r,this,a)}}function zg(r,e){return Bg(Hg(r,e,th),r+"")}var Gg=9007199254740991;function sh(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Gg}function gi(r){return r!=null&&sh(r.length)&&!za(r)}function Kg(r,e,t){if(!ar(t))return!1;var n=typeof e;return(n=="number"?gi(t)&&rh(e,t.length):n=="string"&&e in t)?ns(t[e],r):!1}function Wg(r){return zg(function(e,t){var n=-1,s=t.length,i=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Kg(t[0],t[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var a=t[n];a&&r(e,a,n,i)}return e})}var Yg=Object.prototype;function Ka(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Yg;return r===t}function Zg(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Xg="[object Arguments]";function Vl(r){return Bt(r)&&mn(r)==Xg}var ih=Object.prototype,Qg=ih.hasOwnProperty,Jg=ih.propertyIsEnumerable,oa=Vl((function(){return arguments})())?Vl:function(r){return Bt(r)&&Qg.call(r,"callee")&&!Jg.call(r,"callee")};function em(){return!1}var oh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ul=oh&&typeof module=="object"&&module&&!module.nodeType&&module,tm=Ul&&Ul.exports===oh,Hl=tm?Tt.Buffer:void 0,rm=Hl?Hl.isBuffer:void 0,Wn=rm||em,nm="[object Arguments]",sm="[object Array]",im="[object Boolean]",om="[object Date]",am="[object Error]",lm="[object Function]",um="[object Map]",cm="[object Number]",hm="[object Object]",dm="[object RegExp]",fm="[object Set]",pm="[object String]",gm="[object WeakMap]",mm="[object ArrayBuffer]",vm="[object DataView]",ym="[object Float32Array]",bm="[object Float64Array]",Em="[object Int8Array]",wm="[object Int16Array]",xm="[object Int32Array]",_m="[object Uint8Array]",Sm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Cm="[object Uint32Array]",Ae={};Ae[ym]=Ae[bm]=Ae[Em]=Ae[wm]=Ae[xm]=Ae[_m]=Ae[Sm]=Ae[Am]=Ae[Cm]=!0;Ae[nm]=Ae[sm]=Ae[mm]=Ae[im]=Ae[vm]=Ae[om]=Ae[am]=Ae[lm]=Ae[um]=Ae[cm]=Ae[hm]=Ae[dm]=Ae[fm]=Ae[pm]=Ae[gm]=!1;function Tm(r){return Bt(r)&&sh(r.length)&&!!Ae[mn(r)]}function Wa(r){return function(e){return r(e)}}var ah=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=ah&&typeof module=="object"&&module&&!module.nodeType&&module,km=Un&&Un.exports===ah,ko=km&&Jc.process,un=(function(){try{var r=Un&&Un.require&&Un.require("util").types;return r||ko&&ko.binding&&ko.binding("util")}catch{}})(),zl=un&&un.isTypedArray,Ya=zl?Wa(zl):Tm,Nm=Object.prototype,Im=Nm.hasOwnProperty;function lh(r,e){var t=Sr(r),n=!t&&oa(r),s=!t&&!n&&Wn(r),i=!t&&!n&&!s&&Ya(r),o=t||n||s||i,a=o?Zg(r.length,String):[],l=a.length;for(var c in r)(e||Im.call(r,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rh(c,l)))&&a.push(c);return a}function uh(r,e){return function(t){return r(e(t))}}var Rm=uh(Object.keys,Object),Om=Object.prototype,Lm=Om.hasOwnProperty;function Mm(r){if(!Ka(r))return Rm(r);var e=[];for(var t in Object(r))Lm.call(r,t)&&t!="constructor"&&e.push(t);return e}function Dm(r){return gi(r)?lh(r):Mm(r)}function Pm(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var Bm=Object.prototype,qm=Bm.hasOwnProperty;function Fm(r){if(!ar(r))return Pm(r);var e=Ka(r),t=[];for(var n in r)n=="constructor"&&(e||!qm.call(r,n))||t.push(n);return t}function ch(r){return gi(r)?lh(r,!0):Fm(r)}var Yn=Ir(Object,"create");function jm(){this.__data__=Yn?Yn(null):{},this.size=0}function $m(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var Vm="__lodash_hash_undefined__",Um=Object.prototype,Hm=Um.hasOwnProperty;function zm(r){var e=this.__data__;if(Yn){var t=e[r];return t===Vm?void 0:t}return Hm.call(e,r)?e[r]:void 0}var Gm=Object.prototype,Km=Gm.hasOwnProperty;function Wm(r){var e=this.__data__;return Yn?e[r]!==void 0:Km.call(e,r)}var Ym="__lodash_hash_undefined__";function Zm(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Yn&&e===void 0?Ym:e,this}function Ar(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Ar.prototype.clear=jm;Ar.prototype.delete=$m;Ar.prototype.get=zm;Ar.prototype.has=Wm;Ar.prototype.set=Zm;function Xm(){this.__data__=[],this.size=0}function mi(r,e){for(var t=r.length;t--;)if(ns(r[t][0],e))return t;return-1}var Qm=Array.prototype,Jm=Qm.splice;function e0(r){var e=this.__data__,t=mi(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Jm.call(e,t,1),--this.size,!0}function t0(r){var e=this.__data__,t=mi(e,r);return t<0?void 0:e[t][1]}function r0(r){return mi(this.__data__,r)>-1}function n0(r,e){var t=this.__data__,n=mi(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Vt(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Vt.prototype.clear=Xm;Vt.prototype.delete=e0;Vt.prototype.get=t0;Vt.prototype.has=r0;Vt.prototype.set=n0;var Zn=Ir(Tt,"Map");function s0(){this.size=0,this.__data__={hash:new Ar,map:new(Zn||Vt),string:new Ar}}function i0(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function vi(r,e){var t=r.__data__;return i0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function o0(r){var e=vi(this,r).delete(r);return this.size-=e?1:0,e}function a0(r){return vi(this,r).get(r)}function l0(r){return vi(this,r).has(r)}function u0(r,e){var t=vi(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Rr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Rr.prototype.clear=s0;Rr.prototype.delete=o0;Rr.prototype.get=a0;Rr.prototype.has=l0;Rr.prototype.set=u0;function c0(r,e){for(var t=-1,n=e.length,s=r.length;++t<n;)r[s+t]=e[t];return r}var hh=uh(Object.getPrototypeOf,Object),h0="[object Object]",d0=Function.prototype,f0=Object.prototype,dh=d0.toString,p0=f0.hasOwnProperty,g0=dh.call(Object);function m0(r){if(!Bt(r)||mn(r)!=h0)return!1;var e=hh(r);if(e===null)return!0;var t=p0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&dh.call(t)==g0}function v0(){this.__data__=new Vt,this.size=0}function y0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function b0(r){return this.__data__.get(r)}function E0(r){return this.__data__.has(r)}var w0=200;function x0(r,e){var t=this.__data__;if(t instanceof Vt){var n=t.__data__;if(!Zn||n.length<w0-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Rr(n)}return t.set(r,e),this.size=t.size,this}function _t(r){var e=this.__data__=new Vt(r);this.size=e.size}_t.prototype.clear=v0;_t.prototype.delete=y0;_t.prototype.get=b0;_t.prototype.has=E0;_t.prototype.set=x0;var fh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gl=fh&&typeof module=="object"&&module&&!module.nodeType&&module,_0=Gl&&Gl.exports===fh,Kl=_0?Tt.Buffer:void 0,Wl=Kl?Kl.allocUnsafe:void 0;function ph(r,e){if(e)return r.slice();var t=r.length,n=Wl?Wl(t):new r.constructor(t);return r.copy(n),n}function S0(r,e){for(var t=-1,n=r==null?0:r.length,s=0,i=[];++t<n;){var o=r[t];e(o,t,r)&&(i[s++]=o)}return i}function A0(){return[]}var C0=Object.prototype,T0=C0.propertyIsEnumerable,Yl=Object.getOwnPropertySymbols,k0=Yl?function(r){return r==null?[]:(r=Object(r),S0(Yl(r),function(e){return T0.call(r,e)}))}:A0;function N0(r,e,t){var n=e(r);return Sr(r)?n:c0(n,t(r))}function aa(r){return N0(r,Dm,k0)}var la=Ir(Tt,"DataView"),ua=Ir(Tt,"Promise"),ca=Ir(Tt,"Set"),Zl="[object Map]",I0="[object Object]",Xl="[object Promise]",Ql="[object Set]",Jl="[object WeakMap]",eu="[object DataView]",R0=Nr(la),O0=Nr(Zn),L0=Nr(ua),M0=Nr(ca),D0=Nr(ia),lt=mn;(la&<(new la(new ArrayBuffer(1)))!=eu||Zn&<(new Zn)!=Zl||ua&<(ua.resolve())!=Xl||ca&<(new ca)!=Ql||ia&<(new ia)!=Jl)&&(lt=function(r){var e=mn(r),t=e==I0?r.constructor:void 0,n=t?Nr(t):"";if(n)switch(n){case R0:return eu;case O0:return Zl;case L0:return Xl;case M0:return Ql;case D0:return Jl}return e});var P0=Object.prototype,B0=P0.hasOwnProperty;function q0(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&B0.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var ti=Tt.Uint8Array;function Za(r){var e=new r.constructor(r.byteLength);return new ti(e).set(new ti(r)),e}function F0(r,e){var t=Za(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var j0=/\w*$/;function $0(r){var e=new r.constructor(r.source,j0.exec(r));return e.lastIndex=r.lastIndex,e}var tu=or?or.prototype:void 0,ru=tu?tu.valueOf:void 0;function V0(r){return ru?Object(ru.call(r)):{}}function gh(r,e){var t=e?Za(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var U0="[object Boolean]",H0="[object Date]",z0="[object Map]",G0="[object Number]",K0="[object RegExp]",W0="[object Set]",Y0="[object String]",Z0="[object Symbol]",X0="[object ArrayBuffer]",Q0="[object DataView]",J0="[object Float32Array]",e1="[object Float64Array]",t1="[object Int8Array]",r1="[object Int16Array]",n1="[object Int32Array]",s1="[object Uint8Array]",i1="[object Uint8ClampedArray]",o1="[object Uint16Array]",a1="[object Uint32Array]";function l1(r,e,t){var n=r.constructor;switch(e){case X0:return Za(r);case U0:case H0:return new n(+r);case Q0:return F0(r);case J0:case e1:case t1:case r1:case n1:case s1:case i1:case o1:case a1:return gh(r,t);case z0:return new n;case G0:case Y0:return new n(r);case K0:return $0(r);case W0:return new n;case Z0:return V0(r)}}function mh(r){return typeof r.constructor=="function"&&!Ka(r)?kg(hh(r)):{}}var u1="[object Map]";function c1(r){return Bt(r)&<(r)==u1}var nu=un&&un.isMap,h1=nu?Wa(nu):c1,d1="[object Set]";function f1(r){return Bt(r)&<(r)==d1}var su=un&&un.isSet,p1=su?Wa(su):f1,g1=1,vh="[object Arguments]",m1="[object Array]",v1="[object Boolean]",y1="[object Date]",b1="[object Error]",yh="[object Function]",E1="[object GeneratorFunction]",w1="[object Map]",x1="[object Number]",bh="[object Object]",_1="[object RegExp]",S1="[object Set]",A1="[object String]",C1="[object Symbol]",T1="[object WeakMap]",k1="[object ArrayBuffer]",N1="[object DataView]",I1="[object Float32Array]",R1="[object Float64Array]",O1="[object Int8Array]",L1="[object Int16Array]",M1="[object Int32Array]",D1="[object Uint8Array]",P1="[object Uint8ClampedArray]",B1="[object Uint16Array]",q1="[object Uint32Array]",_e={};_e[vh]=_e[m1]=_e[k1]=_e[N1]=_e[v1]=_e[y1]=_e[I1]=_e[R1]=_e[O1]=_e[L1]=_e[M1]=_e[w1]=_e[x1]=_e[bh]=_e[_1]=_e[S1]=_e[A1]=_e[C1]=_e[D1]=_e[P1]=_e[B1]=_e[q1]=!0;_e[b1]=_e[yh]=_e[T1]=!1;function zs(r,e,t,n,s,i){var o,a=e&g1;if(o!==void 0)return o;if(!ar(r))return r;var l=Sr(r);if(l)o=q0(r);else{var c=lt(r),h=c==yh||c==E1;if(Wn(r))return ph(r,a);if(c==bh||c==vh||h&&!s)o=h?{}:mh(r);else{if(!_e[c])return s?r:{};o=l1(r,c,a)}}i||(i=new _t);var g=i.get(r);if(g)return g;i.set(r,o),p1(r)?r.forEach(function(v){o.add(zs(v,e,t,v,r,i))}):h1(r)&&r.forEach(function(v,d){o.set(d,zs(v,e,t,d,r,i))});var p=aa,m=l?void 0:p(r);return qg(m||r,function(v,d){m&&(d=v,v=r[d]),nh(o,d,zs(v,e,t,d,r,i))}),o}var F1=1,j1=4;function tn(r){return zs(r,F1|j1)}var $1="__lodash_hash_undefined__";function V1(r){return this.__data__.set(r,$1),this}function U1(r){return this.__data__.has(r)}function ri(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Rr;++e<t;)this.add(r[e])}ri.prototype.add=ri.prototype.push=V1;ri.prototype.has=U1;function H1(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function z1(r,e){return r.has(e)}var G1=1,K1=2;function Eh(r,e,t,n,s,i){var o=t&G1,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(r),h=i.get(e);if(c&&h)return c==e&&h==r;var g=-1,p=!0,m=t&K1?new ri:void 0;for(i.set(r,e),i.set(e,r);++g<a;){var v=r[g],d=e[g];if(n)var b=o?n(d,v,g,e,r,i):n(v,d,g,r,e,i);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!H1(e,function(E,x){if(!z1(m,x)&&(v===E||s(v,E,t,n,i)))return m.push(x)})){p=!1;break}}else if(!(v===d||s(v,d,t,n,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function W1(r){var e=-1,t=Array(r.size);return r.forEach(function(n,s){t[++e]=[s,n]}),t}function Y1(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var Z1=1,X1=2,Q1="[object Boolean]",J1="[object Date]",ev="[object Error]",tv="[object Map]",rv="[object Number]",nv="[object RegExp]",sv="[object Set]",iv="[object String]",ov="[object Symbol]",av="[object ArrayBuffer]",lv="[object DataView]",iu=or?or.prototype:void 0,No=iu?iu.valueOf:void 0;function uv(r,e,t,n,s,i,o){switch(t){case lv:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case av:return!(r.byteLength!=e.byteLength||!i(new ti(r),new ti(e)));case Q1:case J1:case rv:return ns(+r,+e);case ev:return r.name==e.name&&r.message==e.message;case nv:case iv:return r==e+"";case tv:var a=W1;case sv:var l=n&Z1;if(a||(a=Y1),r.size!=e.size&&!l)return!1;var c=o.get(r);if(c)return c==e;n|=X1,o.set(r,e);var h=Eh(a(r),a(e),n,s,i,o);return o.delete(r),h;case ov:if(No)return No.call(r)==No.call(e)}return!1}var cv=1,hv=Object.prototype,dv=hv.hasOwnProperty;function fv(r,e,t,n,s,i){var o=t&cv,a=aa(r),l=a.length,c=aa(e),h=c.length;if(l!=h&&!o)return!1;for(var g=l;g--;){var p=a[g];if(!(o?p in e:dv.call(e,p)))return!1}var m=i.get(r),v=i.get(e);if(m&&v)return m==e&&v==r;var d=!0;i.set(r,e),i.set(e,r);for(var b=o;++g<l;){p=a[g];var E=r[p],x=e[p];if(n)var S=o?n(x,E,p,e,r,i):n(E,x,p,r,e,i);if(!(S===void 0?E===x||s(E,x,t,n,i):S)){d=!1;break}b||(b=p=="constructor")}if(d&&!b){var k=r.constructor,_=e.constructor;k!=_&&"constructor"in r&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof _=="function"&&_ instanceof _)&&(d=!1)}return i.delete(r),i.delete(e),d}var pv=1,ou="[object Arguments]",au="[object Array]",ks="[object Object]",gv=Object.prototype,lu=gv.hasOwnProperty;function mv(r,e,t,n,s,i){var o=Sr(r),a=Sr(e),l=o?au:lt(r),c=a?au:lt(e);l=l==ou?ks:l,c=c==ou?ks:c;var h=l==ks,g=c==ks,p=l==c;if(p&&Wn(r)){if(!Wn(e))return!1;o=!0,h=!1}if(p&&!h)return i||(i=new _t),o||Ya(r)?Eh(r,e,t,n,s,i):uv(r,e,l,t,n,s,i);if(!(t&pv)){var m=h&&lu.call(r,"__wrapped__"),v=g&&lu.call(e,"__wrapped__");if(m||v){var d=m?r.value():r,b=v?e.value():e;return i||(i=new _t),s(d,b,t,n,i)}}return p?(i||(i=new _t),fv(r,e,t,n,s,i)):!1}function wh(r,e,t,n,s){return r===e?!0:r==null||e==null||!Bt(r)&&!Bt(e)?r!==r&&e!==e:mv(r,e,t,n,wh,s)}function vv(r){return function(e,t,n){for(var s=-1,i=Object(e),o=n(e),a=o.length;a--;){var l=o[++s];if(t(i[l],l,i)===!1)break}return e}}var yv=vv();function ha(r,e,t){(t!==void 0&&!ns(r[e],t)||t===void 0&&!(e in r))&&Ga(r,e,t)}function bv(r){return Bt(r)&&gi(r)}function da(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function Ev(r){return Ug(r,ch(r))}function wv(r,e,t,n,s,i,o){var a=da(r,t),l=da(e,t),c=o.get(l);if(c){ha(r,t,c);return}var h=i?i(a,l,t+"",r,e,o):void 0,g=h===void 0;if(g){var p=Sr(l),m=!p&&Wn(l),v=!p&&!m&&Ya(l);h=l,p||m||v?Sr(a)?h=a:bv(a)?h=Ig(a):m?(g=!1,h=ph(l,!0)):v?(g=!1,h=gh(l,!0)):h=[]:m0(l)||oa(l)?(h=a,oa(a)?h=Ev(a):(!ar(a)||za(a))&&(h=mh(l))):g=!1}g&&(o.set(l,h),s(h,l,n,i,o),o.delete(l)),ha(r,t,h)}function xh(r,e,t,n,s){r!==e&&yv(e,function(i,o){if(s||(s=new _t),ar(i))wv(r,e,o,t,xh,n,s);else{var a=n?n(da(r,o),i,o+"",r,e,s):void 0;a===void 0&&(a=i),ha(r,o,a)}},ch)}function Zt(r,e){return wh(r,e)}var nr=Wg(function(r,e,t){xh(r,e,t)}),ne=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(ne||{});class At{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const s=ne.TYPE&ne.ATTRIBUTE;this.scope=n.scope!=null?n.scope&ne.LEVEL|s:ne.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class rn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _h=class fa{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const s=this.query(t);if(s==null)throw new rn(`Unable to create ${t} blot`);const i=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(n),a=new i(e,o,n);return fa.blots.set(a.domNode,a),a}find(e,t=!1){return fa.find(e,t)}query(e,t=ne.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&ne.LEVEL&ne.BLOCK?n=this.types.block:e&ne.LEVEL&ne.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&ne.LEVEL&n.scope&&t&ne.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,s="attrName"in t;if(!n&&!s)throw new rn("Invalid definition");if(n&&t.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?t.blotName:s?t.attrName:void 0;return this.types[i]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};_h.blots=new WeakMap;let cn=_h;function uu(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class xv extends At{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){uu(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(uu(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const pt=xv;function Io(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class _v extends At{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Io(this.keyName)]=t,!0):!1}remove(e){e.style[Io(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Io(this.keyName)];return this.canAdd(e,t)?t:""}}const lr=_v;class Sv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(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=cn.find(this.domNode);if(e==null)return;const t=At.keys(this.domNode),n=pt.keys(this.domNode),s=lr.keys(this.domNode);t.concat(n).concat(s).forEach(i=>{const o=e.scroll.query(i,ne.ATTRIBUTE);o instanceof At&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const yi=Sv,Sh=class{constructor(e,t){this.scroll=e,this.domNode=t,cn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new rn("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}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),cn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,s){const i=this.isolate(e,t);if(this.scroll.query(n,ne.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(e,t,n){const s=n==null?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(s,i||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}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,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${e}`);return n.appendChild(this),n}};Sh.blotName="abstract";let Ah=Sh;const Ch=class extends Ah{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Ch.scope=ne.INLINE_BLOT;let Av=Ch;const Fe=Av;class Cv{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),s=0;for(;n;){if(n===e)return s;s+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===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 t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.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 t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(e<i||t&&e===i&&(s.next==null||s.next.length()!==0))return[s,e];e-=i,s=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[s,i]=this.find(e);let o=e-i;const a=this.iterator(s);let l=a();for(;l&&o<e+t;){const c=l.length();e>o?n(l,e-o,Math.min(t,o+c-e)):n(l,0,Math.min(c,e+t-o)),o+=c,l=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let s=n();for(;s;)t=e(t,s),s=n();return t}}function cu(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(ne.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const Th=class Wt extends Ah{constructor(e,t){super(e,t),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,Wt.uiClass&&this.uiNode.classList.add(Wt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Cv,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=cu(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof rn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,s,i)=>{n.deleteAt(s,i)})}descendant(e,t=0){const[n,s]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,s]:n instanceof Wt?n.descendant(e,s):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(t,n,(o,a,l)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof Wt&&(s=s.concat(o.descendants(e,a,i))),i-=l}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Wt?t.unwrap():t.remove())})}formatAt(e,t,n,s){this.children.forEachAt(e,t,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(e,t,n){const[s,i]=this.children.find(e);if(s)s.insertAt(i,t,n);else{const o=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(o)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}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 t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,s]=this.children.find(e,t),i=[[this,e]];return n instanceof Wt?i.concat(n.path(s,t)):(n!=null&&i.push([n,s]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Wt&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(s,i,o)=>{const a=s.split(i,t);a!=null&&n.appendChild(a)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],s=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=cu(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};Th.uiClass="";let Tv=Th;const dt=Tv;function kv(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Wr=class Yr extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Yr.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Yr||(n=n.wrap(Yr.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,ne.INLINE);if(n==null)return;n instanceof At?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.formats()[n]!=null||this.scroll.query(n,ne.ATTRIBUTE)?this.isolate(e,t).format(n,s):super.formatAt(e,t,n,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Yr&&n.prev===this&&kv(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Yr&&this.attributes.move(n),n}};Wr.allowedChildren=[Wr,Fe],Wr.blotName="inline",Wr.scope=ne.INLINE_BLOT,Wr.tagName="SPAN";let Nv=Wr;const Xa=Nv,Zr=class pa extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(pa.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){const n=this.scroll.query(e,ne.BLOCK);n!=null&&(n instanceof At?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(pa.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.scroll.query(n,ne.BLOCK)!=null?this.format(n,s):super.formatAt(e,t,n,s)}insertAt(e,t,n){if(n==null||this.scroll.query(t,ne.INLINE)!=null)super.insertAt(e,t,n);else{const s=this.split(e);if(s!=null){const i=this.scroll.create(t,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Zr.blotName="block",Zr.scope=ne.BLOCK_BLOT,Zr.tagName="P",Zr.allowedChildren=[Xa,Zr,Fe];let Iv=Zr;const Xn=Iv,ga=class extends dt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,s){super.formatAt(e,t,n,s),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};ga.blotName="container",ga.scope=ne.BLOCK_BLOT;let Rv=ga;const bi=Rv;class Ov extends Fe{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,s){e===0&&t===this.length()?this.format(n,s):super.formatAt(e,t,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const We=Ov,Lv={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Mv=100,Xr=class extends dt{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Lv),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,s){this.update(),super.formatAt(e,t,n,s)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(n.has(l.domNode)||n.set(l.domNode,[]),c&&i(l.parent))},o=l=>{n.has(l.domNode)&&(l instanceof dt&&l.children.forEach(o),n.delete(l.domNode),l.optimize(t))};let a=e;for(let l=0;a.length>0;l+=1){if(l>=Mv)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(c=>{const h=this.find(c.target,!0);h!=null&&(h.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(g=>{const p=this.find(g,!1);i(p,!1),p instanceof dt&&p.children.forEach(m=>{i(m,!1)})})):c.type==="attributes"&&i(h.prev)),i(h))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Xr.blotName="scroll",Xr.defaultChild=Xn,Xr.allowedChildren=[Xn,bi],Xr.scope=ne.BLOCK_BLOT,Xr.tagName="DIV";let Dv=Xr;const Qa=Dv,ma=class kh extends Fe{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}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 kh&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ma.blotName="text",ma.scope=ne.INLINE_BLOT;let Pv=ma;const ni=Pv,Bv=Object.freeze(Object.defineProperty({__proto__:null,Attributor:At,AttributorStore:yi,BlockBlot:Xn,ClassAttributor:pt,ContainerBlot:bi,EmbedBlot:We,InlineBlot:Xa,LeafBlot:Fe,ParentBlot:dt,Registry:cn,Scope:ne,ScrollBlot:Qa,StyleAttributor:lr,TextBlot:ni},Symbol.toStringTag,{value:"Module"}));var Ns={exports:{}},Ro,hu;function qv(){if(hu)return Ro;hu=1;var r=-1,e=1,t=0;function n(y,M,A,V,j){if(y===M)return y?[[t,y]]:[];if(A!=null){var R=ae(y,M,A);if(R)return R}var q=a(y,M),Y=y.substring(0,q);y=y.substring(q),M=M.substring(q),q=c(y,M);var Z=y.substring(y.length-q);y=y.substring(0,y.length-q),M=M.substring(0,M.length-q);var T=s(y,M);return Y&&T.unshift([t,Y]),Z&&T.push([t,Z]),x(T,j),V&&g(T),T}function s(y,M){var A;if(!y)return[[e,M]];if(!M)return[[r,y]];var V=y.length>M.length?y:M,j=y.length>M.length?M:y,R=V.indexOf(j);if(R!==-1)return A=[[e,V.substring(0,R)],[t,j],[e,V.substring(R+j.length)]],y.length>M.length&&(A[0][0]=A[2][0]=r),A;if(j.length===1)return[[r,y],[e,M]];var q=h(y,M);if(q){var Y=q[0],Z=q[1],T=q[2],D=q[3],U=q[4],W=n(Y,T),z=n(Z,D);return W.concat([[t,U]],z)}return i(y,M)}function i(y,M){for(var A=y.length,V=M.length,j=Math.ceil((A+V)/2),R=j,q=2*j,Y=new Array(q),Z=new Array(q),T=0;T<q;T++)Y[T]=-1,Z[T]=-1;Y[R+1]=0,Z[R+1]=0;for(var D=A-V,U=D%2!==0,W=0,z=0,H=0,J=0,F=0;F<j;F++){for(var $=-F+W;$<=F-z;$+=2){var X=R+$,G;$===-F||$!==F&&Y[X-1]<Y[X+1]?G=Y[X+1]:G=Y[X-1]+1;for(var Q=G-$;G<A&&Q<V&&y.charAt(G)===M.charAt(Q);)G++,Q++;if(Y[X]=G,G>A)z+=2;else if(Q>V)W+=2;else if(U){var N=R+D-$;if(N>=0&&N<q&&Z[N]!==-1){var ue=A-Z[N];if(G>=ue)return o(y,M,G,Q)}}}for(var ge=-F+H;ge<=F-J;ge+=2){var N=R+ge,ue;ge===-F||ge!==F&&Z[N-1]<Z[N+1]?ue=Z[N+1]:ue=Z[N-1]+1;for(var be=ue-ge;ue<A&&be<V&&y.charAt(A-ue-1)===M.charAt(V-be-1);)ue++,be++;if(Z[N]=ue,ue>A)J+=2;else if(be>V)H+=2;else if(!U){var X=R+D-ge;if(X>=0&&X<q&&Y[X]!==-1){var G=Y[X],Q=R+G-X;if(ue=A-ue,G>=ue)return o(y,M,G,Q)}}}}return[[r,y],[e,M]]}function o(y,M,A,V){var j=y.substring(0,A),R=M.substring(0,V),q=y.substring(A),Y=M.substring(V),Z=n(j,R),T=n(q,Y);return Z.concat(T)}function a(y,M){if(!y||!M||y.charAt(0)!==M.charAt(0))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(R,j)==M.substring(R,j)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return S(y.charCodeAt(j-1))&&j--,j}function l(y,M){var A=y.length,V=M.length;if(A==0||V==0)return 0;A>V?y=y.substring(A-V):A<V&&(M=M.substring(0,A));var j=Math.min(A,V);if(y==M)return j;for(var R=0,q=1;;){var Y=y.substring(j-q),Z=M.indexOf(Y);if(Z==-1)return R;q+=Z,(Z==0||y.substring(j-q)==M.substring(0,q))&&(R=q,q++)}}function c(y,M){if(!y||!M||y.slice(-1)!==M.slice(-1))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(y.length-j,y.length-R)==M.substring(M.length-j,M.length-R)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return k(y.charCodeAt(y.length-j))&&j--,j}function h(y,M){var A=y.length>M.length?y:M,V=y.length>M.length?M:y;if(A.length<4||V.length*2<A.length)return null;function j(z,H,J){for(var F=z.substring(J,J+Math.floor(z.length/4)),$=-1,X="",G,Q,N,ue;($=H.indexOf(F,$+1))!==-1;){var ge=a(z.substring(J),H.substring($)),be=c(z.substring(0,J),H.substring(0,$));X.length<be+ge&&(X=H.substring($-be,$)+H.substring($,$+ge),G=z.substring(0,J-be),Q=z.substring(J+ge),N=H.substring(0,$-be),ue=H.substring($+ge))}return X.length*2>=z.length?[G,Q,N,ue,X]:null}var R=j(A,V,Math.ceil(A.length/4)),q=j(A,V,Math.ceil(A.length/2)),Y;if(!R&&!q)return null;q?R?Y=R[4].length>q[4].length?R:q:Y=q:Y=R;var Z,T,D,U;y.length>M.length?(Z=Y[0],T=Y[1],D=Y[2],U=Y[3]):(D=Y[0],U=Y[1],Z=Y[2],T=Y[3]);var W=Y[4];return[Z,T,D,U,W]}function g(y){for(var M=!1,A=[],V=0,j=null,R=0,q=0,Y=0,Z=0,T=0;R<y.length;)y[R][0]==t?(A[V++]=R,q=Z,Y=T,Z=0,T=0,j=y[R][1]):(y[R][0]==e?Z+=y[R][1].length:T+=y[R][1].length,j&&j.length<=Math.max(q,Y)&&j.length<=Math.max(Z,T)&&(y.splice(A[V-1],0,[r,j]),y[A[V-1]+1][0]=e,V--,V--,R=V>0?A[V-1]:-1,q=0,Y=0,Z=0,T=0,j=null,M=!0)),R++;for(M&&x(y),E(y),R=1;R<y.length;){if(y[R-1][0]==r&&y[R][0]==e){var D=y[R-1][1],U=y[R][1],W=l(D,U),z=l(U,D);W>=z?(W>=D.length/2||W>=U.length/2)&&(y.splice(R,0,[t,U.substring(0,W)]),y[R-1][1]=D.substring(0,D.length-W),y[R+1][1]=U.substring(W),R++):(z>=D.length/2||z>=U.length/2)&&(y.splice(R,0,[t,D.substring(0,z)]),y[R-1][0]=e,y[R-1][1]=U.substring(0,U.length-z),y[R+1][0]=r,y[R+1][1]=D.substring(z),R++),R++}R++}}var p=/[^a-zA-Z0-9]/,m=/\s/,v=/[\r\n]/,d=/\n\r?\n$/,b=/^\r?\n\r?\n/;function E(y){function M(z,H){if(!z||!H)return 6;var J=z.charAt(z.length-1),F=H.charAt(0),$=J.match(p),X=F.match(p),G=$&&J.match(m),Q=X&&F.match(m),N=G&&J.match(v),ue=Q&&F.match(v),ge=N&&z.match(d),be=ue&&H.match(b);return ge||be?5:N||ue?4:$&&!G&&Q?3:G||Q?2:$||X?1:0}for(var A=1;A<y.length-1;){if(y[A-1][0]==t&&y[A+1][0]==t){var V=y[A-1][1],j=y[A][1],R=y[A+1][1],q=c(V,j);if(q){var Y=j.substring(j.length-q);V=V.substring(0,V.length-q),j=Y+j.substring(0,j.length-q),R=Y+R}for(var Z=V,T=j,D=R,U=M(V,j)+M(j,R);j.charAt(0)===R.charAt(0);){V+=j.charAt(0),j=j.substring(1)+R.charAt(0),R=R.substring(1);var W=M(V,j)+M(j,R);W>=U&&(U=W,Z=V,T=j,D=R)}y[A-1][1]!=Z&&(Z?y[A-1][1]=Z:(y.splice(A-1,1),A--),y[A][1]=T,D?y[A+1][1]=D:(y.splice(A+1,1),A--))}A++}}function x(y,M){y.push([t,""]);for(var A=0,V=0,j=0,R="",q="",Y;A<y.length;){if(A<y.length-1&&!y[A][1]){y.splice(A,1);continue}switch(y[A][0]){case e:j++,q+=y[A][1],A++;break;case r:V++,R+=y[A][1],A++;break;case t:var Z=A-j-V-1;if(M){if(Z>=0&&B(y[Z][1])){var T=y[Z][1].slice(-1);if(y[Z][1]=y[Z][1].slice(0,-1),R=T+R,q=T+q,!y[Z][1]){y.splice(Z,1),A--;var D=Z-1;y[D]&&y[D][0]===e&&(j++,q=y[D][1]+q,D--),y[D]&&y[D][0]===r&&(V++,R=y[D][1]+R,D--),Z=D}}if(_(y[A][1])){var T=y[A][1].charAt(0);y[A][1]=y[A][1].slice(1),R+=T,q+=T}}if(A<y.length-1&&!y[A][1]){y.splice(A,1);break}if(R.length>0||q.length>0){R.length>0&&q.length>0&&(Y=a(q,R),Y!==0&&(Z>=0?y[Z][1]+=q.substring(0,Y):(y.splice(0,0,[t,q.substring(0,Y)]),A++),q=q.substring(Y),R=R.substring(Y)),Y=c(q,R),Y!==0&&(y[A][1]=q.substring(q.length-Y)+y[A][1],q=q.substring(0,q.length-Y),R=R.substring(0,R.length-Y)));var U=j+V;R.length===0&&q.length===0?(y.splice(A-U,U),A=A-U):R.length===0?(y.splice(A-U,U,[e,q]),A=A-U+1):q.length===0?(y.splice(A-U,U,[r,R]),A=A-U+1):(y.splice(A-U,U,[r,R],[e,q]),A=A-U+2)}A!==0&&y[A-1][0]===t?(y[A-1][1]+=y[A][1],y.splice(A,1)):A++,j=0,V=0,R="",q="";break}}y[y.length-1][1]===""&&y.pop();var W=!1;for(A=1;A<y.length-1;)y[A-1][0]===t&&y[A+1][0]===t&&(y[A][1].substring(y[A][1].length-y[A-1][1].length)===y[A-1][1]?(y[A][1]=y[A-1][1]+y[A][1].substring(0,y[A][1].length-y[A-1][1].length),y[A+1][1]=y[A-1][1]+y[A+1][1],y.splice(A-1,1),W=!0):y[A][1].substring(0,y[A+1][1].length)==y[A+1][1]&&(y[A-1][1]+=y[A+1][1],y[A][1]=y[A][1].substring(y[A+1][1].length)+y[A+1][1],y.splice(A+1,1),W=!0)),A++;W&&x(y,M)}function S(y){return y>=55296&&y<=56319}function k(y){return y>=56320&&y<=57343}function _(y){return k(y.charCodeAt(0))}function B(y){return S(y.charCodeAt(y.length-1))}function L(y){for(var M=[],A=0;A<y.length;A++)y[A][1].length>0&&M.push(y[A]);return M}function K(y,M,A,V){return B(y)||_(V)?null:L([[t,y],[r,M],[e,A],[t,V]])}function ae(y,M,A){var V=typeof A=="number"?{index:A,length:0}:A.oldRange,j=typeof A=="number"?null:A.newRange,R=y.length,q=M.length;if(V.length===0&&(j===null||j.length===0)){var Y=V.index,Z=y.slice(0,Y),T=y.slice(Y),D=j?j.index:null;e:{var U=Y+q-R;if(D!==null&&D!==U||U<0||U>q)break e;var W=M.slice(0,U),z=M.slice(U);if(z!==T)break e;var H=Math.min(Y,U),J=Z.slice(0,H),F=W.slice(0,H);if(J!==F)break e;var $=Z.slice(H),X=W.slice(H);return K(J,$,X,T)}e:{if(D!==null&&D!==Y)break e;var G=Y,W=M.slice(0,G),z=M.slice(G);if(W!==Z)break e;var Q=Math.min(R-G,q-G),N=T.slice(T.length-Q),ue=z.slice(z.length-Q);if(N!==ue)break e;var $=T.slice(0,T.length-Q),X=z.slice(0,z.length-Q);return K(Z,$,X,N)}}if(V.length>0&&j&&j.length===0)e:{var J=y.slice(0,V.index),N=y.slice(V.index+V.length),H=J.length,Q=N.length;if(q<H+Q)break e;var F=M.slice(0,H),ue=M.slice(q-Q);if(J!==F||N!==ue)break e;var $=y.slice(H,R-Q),X=M.slice(H,q-Q);return K(J,$,X,N)}return null}function de(y,M,A,V){return n(y,M,A,V,!0)}return de.INSERT=e,de.DELETE=r,de.EQUAL=t,Ro=de,Ro}var Bn={exports:{}};Bn.exports;var du;function Nh(){return du||(du=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",m="[object Number]",v="[object Object]",d="[object Promise]",b="[object RegExp]",E="[object Set]",x="[object String]",S="[object Symbol]",k="[object WeakMap]",_="[object ArrayBuffer]",B="[object DataView]",L="[object Float32Array]",K="[object Float64Array]",ae="[object Int8Array]",de="[object Int16Array]",y="[object Int32Array]",M="[object Uint8Array]",A="[object Uint8ClampedArray]",V="[object Uint16Array]",j="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,q=/\w*$/,Y=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,T={};T[i]=T[o]=T[_]=T[B]=T[a]=T[l]=T[L]=T[K]=T[ae]=T[de]=T[y]=T[p]=T[m]=T[v]=T[b]=T[E]=T[x]=T[S]=T[M]=T[A]=T[V]=T[j]=!0,T[c]=T[h]=T[k]=!1;var D=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,W=D||U||Function("return this")(),z=e&&!e.nodeType&&e,H=z&&!0&&r&&!r.nodeType&&r,J=H&&H.exports===z;function F(u,f){return u.set(f[0],f[1]),u}function $(u,f){return u.add(f),u}function X(u,f){for(var w=-1,O=u?u.length:0;++w<O&&f(u[w],w,u)!==!1;);return u}function G(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Q(u,f,w,O){for(var he=-1,ie=u?u.length:0;++he<ie;)w=f(w,u[he],he,u);return w}function N(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function ue(u,f){return u==null?void 0:u[f]}function ge(u){var f=!1;if(u!=null&&typeof u.toString!="function")try{f=!!(u+"")}catch{}return f}function be(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function kt(u,f){return function(w){return u(f(w))}}function Ht(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Mi=Array.prototype,Di=Function.prototype,Dr=Object.prototype,yn=W["__core-js_shared__"],ls=(function(){var u=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),us=Di.toString,vt=Dr.hasOwnProperty,Pr=Dr.toString,Pi=RegExp("^"+us.call(vt).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=J?W.Buffer:void 0,Br=W.Symbol,bn=W.Uint8Array,Ye=kt(Object.getPrototypeOf,Object),cs=Object.create,hs=Dr.propertyIsEnumerable,Bi=Mi.splice,En=Object.getOwnPropertySymbols,qr=hr?hr.isBuffer:void 0,ds=kt(Object.keys,Object),Fr=nt(W,"DataView"),dr=nt(W,"Map"),rt=nt(W,"Promise"),jr=nt(W,"Set"),wn=nt(W,"WeakMap"),fr=nt(Object,"create"),xn=Ue(Fr),pr=Ue(dr),_n=Ue(rt),Sn=Ue(jr),An=Ue(wn),zt=Br?Br.prototype:void 0,fs=zt?zt.valueOf:void 0;function Nt(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function qi(){this.__data__=fr?fr(null):{}}function Fi(u){return this.has(u)&&delete this.__data__[u]}function ji(u){var f=this.__data__;if(fr){var w=f[u];return w===n?void 0:w}return vt.call(f,u)?f[u]:void 0}function ps(u){var f=this.__data__;return fr?f[u]!==void 0:vt.call(f,u)}function Cn(u,f){var w=this.__data__;return w[u]=fr&&f===void 0?n:f,this}Nt.prototype.clear=qi,Nt.prototype.delete=Fi,Nt.prototype.get=ji,Nt.prototype.has=ps,Nt.prototype.set=Cn;function Le(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=[]}function Vi(u){var f=this.__data__,w=Vr(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():Bi.call(f,w,1),!0}function Ui(u){var f=this.__data__,w=Vr(f,u);return w<0?void 0:f[w][1]}function Hi(u){return Vr(this.__data__,u)>-1}function zi(u,f){var w=this.__data__,O=Vr(w,u);return O<0?w.push([u,f]):w[O][1]=f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__={hash:new Nt,map:new(dr||Le),string:new Nt}}function Ki(u){return mr(this,u).delete(u)}function Wi(u){return mr(this,u).get(u)}function Yi(u){return mr(this,u).has(u)}function Zi(u,f){return mr(this,u).set(u,f),this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){this.__data__=new Le(u)}function Xi(){this.__data__=new Le}function Qi(u){return this.__data__.delete(u)}function Ji(u){return this.__data__.get(u)}function eo(u){return this.__data__.has(u)}function to(u,f){var w=this.__data__;if(w instanceof Le){var O=w.__data__;if(!dr||O.length<t-1)return O.push([u,f]),this;w=this.__data__=new Pe(O)}return w.set(u,f),this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u,f){var w=In(u)||Hr(u)?N(u.length,String):[],O=w.length,he=!!O;for(var ie in u)vt.call(u,ie)&&!(he&&(ie=="length"||mo(ie,O)))&&w.push(ie);return w}function gs(u,f,w){var O=u[f];(!(vt.call(u,f)&&Es(O,w))||w===void 0&&!(f in u))&&(u[f]=w)}function Vr(u,f){for(var w=u.length;w--;)if(Es(u[w][0],f))return w;return-1}function yt(u,f){return u&&Nn(f,On(f),u)}function Tn(u,f,w,O,he,ie,ve){var me;if(O&&(me=ie?O(u,he,ie,ve):O(u)),me!==void 0)return me;if(!Et(u))return u;var ke=In(u);if(ke){if(me=po(u),!f)return co(u,me)}else{var Ee=Rt(u),Be=Ee==h||Ee==g;if(ws(u))return Ur(u,f);if(Ee==v||Ee==i||Be&&!ie){if(ge(u))return ie?u:{};if(me=bt(Be?{}:u),!f)return ho(u,yt(me,u))}else{if(!T[Ee])return ie?u:{};me=go(u,Ee,Tn,f)}}ve||(ve=new He);var ze=ve.get(u);if(ze)return ze;if(ve.set(u,me),!ke)var Ie=w?fo(u):On(u);return X(Ie||u,function(qe,Me){Ie&&(Me=qe,qe=u[Me]),gs(me,Me,Tn(qe,f,w,O,Me,u,ve))}),me}function ro(u){return Et(u)?cs(u):{}}function no(u,f,w){var O=f(u);return In(u)?O:G(O,w(u))}function so(u){return Pr.call(u)}function io(u){if(!Et(u)||yo(u))return!1;var f=Rn(u)||ge(u)?Pi:Y;return f.test(Ue(u))}function oo(u){if(!ys(u))return ds(u);var f=[];for(var w in Object(u))vt.call(u,w)&&w!="constructor"&&f.push(w);return f}function Ur(u,f){if(f)return u.slice();var w=new u.constructor(u.length);return u.copy(w),w}function kn(u){var f=new u.constructor(u.byteLength);return new bn(f).set(new bn(u)),f}function gr(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function ms(u,f,w){var O=f?w(be(u),!0):be(u);return Q(O,F,new u.constructor)}function vs(u){var f=new u.constructor(u.source,q.exec(u));return f.lastIndex=u.lastIndex,f}function ao(u,f,w){var O=f?w(Ht(u),!0):Ht(u);return Q(O,$,new u.constructor)}function lo(u){return fs?Object(fs.call(u)):{}}function uo(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function co(u,f){var w=-1,O=u.length;for(f||(f=Array(O));++w<O;)f[w]=u[w];return f}function Nn(u,f,w,O){w||(w={});for(var he=-1,ie=f.length;++he<ie;){var ve=f[he],me=void 0;gs(w,ve,me===void 0?u[ve]:me)}return w}function ho(u,f){return Nn(u,It(u),f)}function fo(u){return no(u,On,It)}function mr(u,f){var w=u.__data__;return vo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function nt(u,f){var w=ue(u,f);return io(w)?w:void 0}var It=En?kt(En,Object):Eo,Rt=so;(Fr&&Rt(new Fr(new ArrayBuffer(1)))!=B||dr&&Rt(new dr)!=p||rt&&Rt(rt.resolve())!=d||jr&&Rt(new jr)!=E||wn&&Rt(new wn)!=k)&&(Rt=function(u){var f=Pr.call(u),w=f==v?u.constructor:void 0,O=w?Ue(w):void 0;if(O)switch(O){case xn:return B;case pr:return p;case _n:return d;case Sn:return E;case An:return k}return f});function po(u){var f=u.length,w=u.constructor(f);return f&&typeof u[0]=="string"&&vt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function bt(u){return typeof u.constructor=="function"&&!ys(u)?ro(Ye(u)):{}}function go(u,f,w,O){var he=u.constructor;switch(f){case _:return kn(u);case a:case l:return new he(+u);case B:return gr(u,O);case L:case K:case ae:case de:case y:case M:case A:case V:case j:return uo(u,O);case p:return ms(u,O,w);case m:case x:return new he(u);case b:return vs(u);case E:return ao(u,O,w);case S:return lo(u)}}function mo(u,f){return f=f??s,!!f&&(typeof u=="number"||Z.test(u))&&u>-1&&u%1==0&&u<f}function vo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function yo(u){return!!ls&&ls in u}function ys(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||Dr;return u===w}function Ue(u){if(u!=null){try{return us.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u){return Tn(u,!0,!0)}function Es(u,f){return u===f||u!==u&&f!==f}function Hr(u){return bo(u)&&vt.call(u,"callee")&&(!hs.call(u,"callee")||Pr.call(u)==i)}var In=Array.isArray;function zr(u){return u!=null&&xs(u.length)&&!Rn(u)}function bo(u){return _s(u)&&zr(u)}var ws=qr||wo;function Rn(u){var f=Et(u)?Pr.call(u):"";return f==h||f==g}function xs(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=s}function Et(u){var f=typeof u;return!!u&&(f=="object"||f=="function")}function _s(u){return!!u&&typeof u=="object"}function On(u){return zr(u)?$r(u):oo(u)}function Eo(){return[]}function wo(){return!1}r.exports=bs})(Bn,Bn.exports)),Bn.exports}var qn={exports:{}};qn.exports;var fu;function Ih(){return fu||(fu=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",d="[object Map]",b="[object Number]",E="[object Null]",x="[object Object]",S="[object Promise]",k="[object Proxy]",_="[object RegExp]",B="[object Set]",L="[object String]",K="[object Symbol]",ae="[object Undefined]",de="[object WeakMap]",y="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",V="[object Float64Array]",j="[object Int8Array]",R="[object Int16Array]",q="[object Int32Array]",Y="[object Uint8Array]",Z="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,H={};H[A]=H[V]=H[j]=H[R]=H[q]=H[Y]=H[Z]=H[T]=H[D]=!0,H[a]=H[l]=H[y]=H[h]=H[M]=H[g]=H[p]=H[m]=H[d]=H[b]=H[x]=H[_]=H[B]=H[L]=H[de]=!1;var J=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,$=J||F||Function("return this")(),X=e&&!e.nodeType&&e,G=X&&!0&&r&&!r.nodeType&&r,Q=G&&G.exports===X,N=Q&&J.process,ue=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),ge=ue&&ue.isTypedArray;function be(u,f){for(var w=-1,O=u==null?0:u.length,he=0,ie=[];++w<O;){var ve=u[w];f(ve,w,u)&&(ie[he++]=ve)}return ie}function kt(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Ht(u,f){for(var w=-1,O=u==null?0:u.length;++w<O;)if(f(u[w],w,u))return!0;return!1}function Mi(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function Di(u){return function(f){return u(f)}}function Dr(u,f){return u.has(f)}function yn(u,f){return u==null?void 0:u[f]}function ls(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function us(u,f){return function(w){return u(f(w))}}function vt(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Pr=Array.prototype,Pi=Function.prototype,hr=Object.prototype,Br=$["__core-js_shared__"],bn=Pi.toString,Ye=hr.hasOwnProperty,cs=(function(){var u=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),hs=hr.toString,Bi=RegExp("^"+bn.call(Ye).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=Q?$.Buffer:void 0,qr=$.Symbol,ds=$.Uint8Array,Fr=hr.propertyIsEnumerable,dr=Pr.splice,rt=qr?qr.toStringTag:void 0,jr=Object.getOwnPropertySymbols,wn=En?En.isBuffer:void 0,fr=us(Object.keys,Object),xn=It($,"DataView"),pr=It($,"Map"),_n=It($,"Promise"),Sn=It($,"Set"),An=It($,"WeakMap"),zt=It(Object,"create"),fs=Ue(xn),Nt=Ue(pr),qi=Ue(_n),Fi=Ue(Sn),ji=Ue(An),ps=qr?qr.prototype:void 0,Cn=ps?ps.valueOf:void 0;function Le(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=zt?zt(null):{},this.size=0}function Vi(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function Ui(u){var f=this.__data__;if(zt){var w=f[u];return w===n?void 0:w}return Ye.call(f,u)?f[u]:void 0}function Hi(u){var f=this.__data__;return zt?f[u]!==void 0:Ye.call(f,u)}function zi(u,f){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=zt&&f===void 0?n:f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__=[],this.size=0}function Ki(u){var f=this.__data__,w=Ur(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():dr.call(f,w,1),--this.size,!0}function Wi(u){var f=this.__data__,w=Ur(f,u);return w<0?void 0:f[w][1]}function Yi(u){return Ur(this.__data__,u)>-1}function Zi(u,f){var w=this.__data__,O=Ur(w,u);return O<0?(++this.size,w.push([u,f])):w[O][1]=f,this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Xi(){this.size=0,this.__data__={hash:new Le,map:new(pr||Pe),string:new Le}}function Qi(u){var f=nt(this,u).delete(u);return this.size-=f?1:0,f}function Ji(u){return nt(this,u).get(u)}function eo(u){return nt(this,u).has(u)}function to(u,f){var w=nt(this,u),O=w.size;return w.set(u,f),this.size+=w.size==O?0:1,this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u){var f=-1,w=u==null?0:u.length;for(this.__data__=new He;++f<w;)this.add(u[f])}function gs(u){return this.__data__.set(u,n),this}function Vr(u){return this.__data__.has(u)}$r.prototype.add=$r.prototype.push=gs,$r.prototype.has=Vr;function yt(u){var f=this.__data__=new Pe(u);this.size=f.size}function Tn(){this.__data__=new Pe,this.size=0}function ro(u){var f=this.__data__,w=f.delete(u);return this.size=f.size,w}function no(u){return this.__data__.get(u)}function so(u){return this.__data__.has(u)}function io(u,f){var w=this.__data__;if(w instanceof Pe){var O=w.__data__;if(!pr||O.length<t-1)return O.push([u,f]),this.size=++w.size,this;w=this.__data__=new He(O)}return w.set(u,f),this.size=w.size,this}yt.prototype.clear=Tn,yt.prototype.delete=ro,yt.prototype.get=no,yt.prototype.has=so,yt.prototype.set=io;function oo(u,f){var w=Hr(u),O=!w&&Es(u),he=!w&&!O&&zr(u),ie=!w&&!O&&!he&&_s(u),ve=w||O||he||ie,me=ve?Mi(u.length,String):[],ke=me.length;for(var Ee in u)Ye.call(u,Ee)&&!(ve&&(Ee=="length"||he&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||go(Ee,ke)))&&me.push(Ee);return me}function Ur(u,f){for(var w=u.length;w--;)if(bs(u[w][0],f))return w;return-1}function kn(u,f,w){var O=f(u);return Hr(u)?O:kt(O,w(u))}function gr(u){return u==null?u===void 0?ae:E:rt&&rt in Object(u)?Rt(u):ys(u)}function ms(u){return Et(u)&&gr(u)==a}function vs(u,f,w,O,he){return u===f?!0:u==null||f==null||!Et(u)&&!Et(f)?u!==u&&f!==f:ao(u,f,w,O,vs,he)}function ao(u,f,w,O,he,ie){var ve=Hr(u),me=Hr(f),ke=ve?l:bt(u),Ee=me?l:bt(f);ke=ke==a?x:ke,Ee=Ee==a?x:Ee;var Be=ke==x,ze=Ee==x,Ie=ke==Ee;if(Ie&&zr(u)){if(!zr(f))return!1;ve=!0,Be=!1}if(Ie&&!Be)return ie||(ie=new yt),ve||_s(u)?Nn(u,f,w,O,he,ie):ho(u,f,ke,w,O,he,ie);if(!(w&s)){var qe=Be&&Ye.call(u,"__wrapped__"),Me=ze&&Ye.call(f,"__wrapped__");if(qe||Me){var Gt=qe?u.value():u,Ot=Me?f.value():f;return ie||(ie=new yt),he(Gt,Ot,w,O,ie)}}return Ie?(ie||(ie=new yt),fo(u,f,w,O,he,ie)):!1}function lo(u){if(!xs(u)||vo(u))return!1;var f=ws(u)?Bi:W;return f.test(Ue(u))}function uo(u){return Et(u)&&Rn(u.length)&&!!H[gr(u)]}function co(u){if(!yo(u))return fr(u);var f=[];for(var w in Object(u))Ye.call(u,w)&&w!="constructor"&&f.push(w);return f}function Nn(u,f,w,O,he,ie){var ve=w&s,me=u.length,ke=f.length;if(me!=ke&&!(ve&&ke>me))return!1;var Ee=ie.get(u);if(Ee&&ie.get(f))return Ee==f;var Be=-1,ze=!0,Ie=w&i?new $r:void 0;for(ie.set(u,f),ie.set(f,u);++Be<me;){var qe=u[Be],Me=f[Be];if(O)var Gt=ve?O(Me,qe,Be,f,u,ie):O(qe,Me,Be,u,f,ie);if(Gt!==void 0){if(Gt)continue;ze=!1;break}if(Ie){if(!Ht(f,function(Ot,vr){if(!Dr(Ie,vr)&&(qe===Ot||he(qe,Ot,w,O,ie)))return Ie.push(vr)})){ze=!1;break}}else if(!(qe===Me||he(qe,Me,w,O,ie))){ze=!1;break}}return ie.delete(u),ie.delete(f),ze}function ho(u,f,w,O,he,ie,ve){switch(w){case M:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case y:return!(u.byteLength!=f.byteLength||!ie(new ds(u),new ds(f)));case h:case g:case b:return bs(+u,+f);case p:return u.name==f.name&&u.message==f.message;case _:case L:return u==f+"";case d:var me=ls;case B:var ke=O&s;if(me||(me=vt),u.size!=f.size&&!ke)return!1;var Ee=ve.get(u);if(Ee)return Ee==f;O|=i,ve.set(u,f);var Be=Nn(me(u),me(f),O,he,ie,ve);return ve.delete(u),Be;case K:if(Cn)return Cn.call(u)==Cn.call(f)}return!1}function fo(u,f,w,O,he,ie){var ve=w&s,me=mr(u),ke=me.length,Ee=mr(f),Be=Ee.length;if(ke!=Be&&!ve)return!1;for(var ze=ke;ze--;){var Ie=me[ze];if(!(ve?Ie in f:Ye.call(f,Ie)))return!1}var qe=ie.get(u);if(qe&&ie.get(f))return qe==f;var Me=!0;ie.set(u,f),ie.set(f,u);for(var Gt=ve;++ze<ke;){Ie=me[ze];var Ot=u[Ie],vr=f[Ie];if(O)var vl=ve?O(vr,Ot,Ie,f,u,ie):O(Ot,vr,Ie,u,f,ie);if(!(vl===void 0?Ot===vr||he(Ot,vr,w,O,ie):vl)){Me=!1;break}Gt||(Gt=Ie=="constructor")}if(Me&&!Gt){var Ss=u.constructor,As=f.constructor;Ss!=As&&"constructor"in u&&"constructor"in f&&!(typeof Ss=="function"&&Ss instanceof Ss&&typeof As=="function"&&As instanceof As)&&(Me=!1)}return ie.delete(u),ie.delete(f),Me}function mr(u){return kn(u,On,po)}function nt(u,f){var w=u.__data__;return mo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function It(u,f){var w=yn(u,f);return lo(w)?w:void 0}function Rt(u){var f=Ye.call(u,rt),w=u[rt];try{u[rt]=void 0;var O=!0}catch{}var he=hs.call(u);return O&&(f?u[rt]=w:delete u[rt]),he}var po=jr?function(u){return u==null?[]:(u=Object(u),be(jr(u),function(f){return Fr.call(u,f)}))}:Eo,bt=gr;(xn&&bt(new xn(new ArrayBuffer(1)))!=M||pr&&bt(new pr)!=d||_n&&bt(_n.resolve())!=S||Sn&&bt(new Sn)!=B||An&&bt(new An)!=de)&&(bt=function(u){var f=gr(u),w=f==x?u.constructor:void 0,O=w?Ue(w):"";if(O)switch(O){case fs:return M;case Nt:return d;case qi:return S;case Fi:return B;case ji:return de}return f});function go(u,f){return f=f??o,!!f&&(typeof u=="number"||z.test(u))&&u>-1&&u%1==0&&u<f}function mo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function vo(u){return!!cs&&cs in u}function yo(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||hr;return u===w}function ys(u){return hs.call(u)}function Ue(u){if(u!=null){try{return bn.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u,f){return u===f||u!==u&&f!==f}var Es=ms((function(){return arguments})())?ms:function(u){return Et(u)&&Ye.call(u,"callee")&&!Fr.call(u,"callee")},Hr=Array.isArray;function In(u){return u!=null&&Rn(u.length)&&!ws(u)}var zr=wn||wo;function bo(u,f){return vs(u,f)}function ws(u){if(!xs(u))return!1;var f=gr(u);return f==m||f==v||f==c||f==k}function Rn(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=o}function xs(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Et(u){return u!=null&&typeof u=="object"}var _s=ge?Di(ge):uo;function On(u){return In(u)?oo(u):co(u)}function Eo(){return[]}function wo(){return!1}r.exports=bo})(qn,qn.exports)),qn.exports}var Is={},pu;function Fv(){if(pu)return Is;pu=1,Object.defineProperty(Is,"__esModule",{value:!0});const r=Nh(),e=Ih();var t;return(function(n){function s(l={},c={},h=!1){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});let g=r(c);h||(g=Object.keys(g).reduce((p,m)=>(g[m]!=null&&(p[m]=g[m]),p),{}));for(const p in l)l[p]!==void 0&&c[p]===void 0&&(g[p]=l[p]);return Object.keys(g).length>0?g:void 0}n.compose=s;function i(l={},c={}){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});const h=Object.keys(l).concat(Object.keys(c)).reduce((g,p)=>(e(l[p],c[p])||(g[p]=c[p]===void 0?null:c[p]),g),{});return Object.keys(h).length>0?h:void 0}n.diff=i;function o(l={},c={}){l=l||{};const h=Object.keys(c).reduce((g,p)=>(c[p]!==l[p]&&l[p]!==void 0&&(g[p]=c[p]),g),{});return Object.keys(l).reduce((g,p)=>(l[p]!==c[p]&&c[p]===void 0&&(g[p]=null),g),h)}n.invert=o;function a(l,c,h=!1){if(typeof l!="object")return c;if(typeof c!="object")return;if(!h)return c;const g=Object.keys(c).reduce((p,m)=>(l[m]===void 0&&(p[m]=c[m]),p),{});return Object.keys(g).length>0?g:void 0}n.transform=a})(t||(t={})),Is.default=t,Is}var Rs={},gu;function Rh(){if(gu)return Rs;gu=1,Object.defineProperty(Rs,"__esModule",{value:!0});var r;return(function(e){function t(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}e.length=t})(r||(r={})),Rs.default=r,Rs}var Os={},mu;function jv(){if(mu)return Os;mu=1,Object.defineProperty(Os,"__esModule",{value:!0});const r=Rh();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return Os.default=e,Os}var vu;function $v(){return vu||(vu=1,(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=qv(),n=Nh(),s=Ih(),i=Fv();e.AttributeMap=i.default;const o=Rh();e.Op=o.default;const a=jv();e.OpIterator=a.default;const l="\0",c=(g,p)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const m=Object.keys(g)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,g[m],p[m]]};class h{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const v={};return typeof p=="string"&&p.length===0?this:(v.insert=p,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if(typeof p=="number"&&p<=0)return this;const v={retain:p};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v)}push(p){let m=this.ops.length,v=this.ops[m-1];if(p=n(p),typeof v=="object"){if(typeof p.delete=="number"&&typeof v.delete=="number")return this.ops[m-1]={delete:v.delete+p.delete},this;if(typeof v.delete=="number"&&p.insert!=null&&(m-=1,v=this.ops[m-1],typeof v!="object"))return this.ops.unshift(p),this;if(s(p.attributes,v.attributes)){if(typeof p.insert=="string"&&typeof v.insert=="string")return this.ops[m-1]={insert:v.insert+p.insert},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof v.retain=="number")return this.ops[m-1]={retain:v.retain+p.retain},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],v=[];return this.forEach(d=>{(p(d)?m:v).push(d)}),[m,v]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>m.insert?p+o.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+o.default.length(m),0)}slice(p=0,m=1/0){const v=[],d=new a.default(this.ops);let b=0;for(;b<m&&d.hasNext();){let E;b<p?E=d.next(p-b):(E=d.next(m-b),v.push(E)),b+=o.default.length(E)}return new h(v)}compose(p){const m=new a.default(this.ops),v=new a.default(p.ops),d=[],b=v.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let x=b.retain;for(;m.peekType()==="insert"&&m.peekLength()<=x;)x-=m.peekLength(),d.push(m.next());b.retain-x>0&&v.next(b.retain-x)}const E=new h(d);for(;m.hasNext()||v.hasNext();)if(v.peekType()==="insert")E.push(v.next());else if(m.peekType()==="delete")E.push(m.next());else{const x=Math.min(m.peekLength(),v.peekLength()),S=m.next(x),k=v.next(x);if(k.retain){const _={};if(typeof S.retain=="number")_.retain=typeof k.retain=="number"?x:k.retain;else if(typeof k.retain=="number")S.retain==null?_.insert=S.insert:_.retain=S.retain;else{const L=S.retain==null?"insert":"retain",[K,ae,de]=c(S[L],k.retain),y=h.getHandler(K);_[L]={[K]:y.compose(ae,de,L==="retain")}}const B=i.default.compose(S.attributes,k.attributes,typeof S.retain=="number");if(B&&(_.attributes=B),E.push(_),!v.hasNext()&&s(E.ops[E.ops.length-1],_)){const L=new h(m.rest());return E.concat(L).chop()}}else typeof k.delete=="number"&&(typeof S.retain=="number"||typeof S.retain=="object"&&S.retain!==null)&&E.push(k)}return E.chop()}concat(p){const m=new h(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new h;const v=[this,p].map(S=>S.map(k=>{if(k.insert!=null)return typeof k.insert=="string"?k.insert:l;const _=S===p?"on":"with";throw new Error("diff() called "+_+" non-document")}).join("")),d=new h,b=t(v[0],v[1],m,!0),E=new a.default(this.ops),x=new a.default(p.ops);return b.forEach(S=>{let k=S[1].length;for(;k>0;){let _=0;switch(S[0]){case t.INSERT:_=Math.min(x.peekLength(),k),d.push(x.next(_));break;case t.DELETE:_=Math.min(k,E.peekLength()),E.next(_),d.delete(_);break;case t.EQUAL:_=Math.min(E.peekLength(),x.peekLength(),k);const B=E.next(_),L=x.next(_);s(B.insert,L.insert)?d.retain(_,i.default.diff(B.attributes,L.attributes)):d.push(L).delete(_);break}k-=_}}),d.chop()}eachLine(p,m=`
|
|
106
106
|
`){const v=new a.default(this.ops);let d=new h,b=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const E=v.peek(),x=o.default.length(E)-v.peekLength(),S=typeof E.insert=="string"?E.insert.indexOf(m,x)-x:-1;if(S<0)d.push(v.next());else if(S>0)d.push(v.next(S));else{if(p(d,v.next(1).attributes||{},b)===!1)return;b+=1,d=new h}}d.length()>0&&p(d,{},b)}invert(p){const m=new h;return this.reduce((v,d)=>{if(d.insert)m.delete(o.default.length(d));else{if(typeof d.retain=="number"&&d.attributes==null)return m.retain(d.retain),v+d.retain;if(d.delete||typeof d.retain=="number"){const b=d.delete||d.retain;return p.slice(v,v+b).forEach(x=>{d.delete?m.push(x):d.retain&&d.attributes&&m.retain(o.default.length(x),i.default.invert(d.attributes,x.attributes))}),v+b}else if(typeof d.retain=="object"&&d.retain!==null){const b=p.slice(v,v+1),E=new a.default(b.ops).next(),[x,S,k]=c(d.retain,E.insert),_=h.getHandler(x);return m.retain({[x]:_.invert(S,k)},i.default.invert(d.attributes,E.attributes)),v+1}}return v},0),m.chop()}transform(p,m=!1){if(m=!!m,typeof p=="number")return this.transformPosition(p,m);const v=p,d=new a.default(this.ops),b=new a.default(v.ops),E=new h;for(;d.hasNext()||b.hasNext();)if(d.peekType()==="insert"&&(m||b.peekType()!=="insert"))E.retain(o.default.length(d.next()));else if(b.peekType()==="insert")E.push(b.next());else{const x=Math.min(d.peekLength(),b.peekLength()),S=d.next(x),k=b.next(x);if(S.delete)continue;if(k.delete)E.push(k);else{const _=S.retain,B=k.retain;let L=typeof B=="object"&&B!==null?B:x;if(typeof _=="object"&&_!==null&&typeof B=="object"&&B!==null){const K=Object.keys(_)[0];if(K===Object.keys(B)[0]){const ae=h.getHandler(K);ae&&(L={[K]:ae.transform(_[K],B[K],m)})}}E.retain(L,i.default.transform(S.attributes,k.attributes,m))}}return E.chop()}transformPosition(p,m=!1){m=!!m;const v=new a.default(this.ops);let d=0;for(;v.hasNext()&&d<=p;){const b=v.peekLength(),E=v.peekType();if(v.next(),E==="delete"){p-=Math.min(b,p-d);continue}else E==="insert"&&(d<p||!m)&&(p+=b);d+=b}return p}}h.Op=o.default,h.OpIterator=a.default,h.AttributeMap=i.default,h.handlers={},e.default=h,r.exports=h,r.exports.default=h})(Ns,Ns.exports)),Ns.exports}var et=$v();const re=ct.getDefaultExportFromCjs(et);class gt extends We{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}gt.blotName="break";gt.tagName="BR";let ft=class extends ni{};function Ei(r){return r.replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[e])}const wt=class wt extends Xa{static compare(e,t){const n=wt.order.indexOf(e),s=wt.order.indexOf(t);return n>=0||s>=0?n-s:e===t?0:e<t?-1:1}formatAt(e,t,n,s){if(wt.compare(this.statics.blotName,n)<0&&this.scroll.query(n,ne.BLOT)){const i=this.isolate(e,t);s&&i.wrap(n,s)}else super.formatAt(e,t,n,s)}optimize(e){if(super.optimize(e),this.parent instanceof wt&&wt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ee(wt,"allowedChildren",[wt,gt,We,ft]),ee(wt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Ct=wt;const yu=1;class De extends Xn{constructor(){super(...arguments);ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Oh(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,s,i){n<=0||(this.scroll.query(s,ne.BLOCK)?t+n===this.length()&&this.format(s,i):super.formatAt(t,Math.min(n,this.length()-t-1),s,i),this.cache={})}insertAt(t,n,s){if(s!=null){super.insertAt(t,n,s),this.cache={};return}if(n.length===0)return;const i=n.split(`
|
|
107
107
|
`),o=i.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((l,c)=>(a=a.split(l,!0),a.insertAt(0,c),c.length),t+o.length)}insertBefore(t,n){const{head:s}=this.children;super.insertBefore(t,n),s instanceof gt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+yu),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-yu)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const s=super.split(t,n);return this.cache={},s}}De.blotName="block";De.tagName="P";De.defaultChild=gt;De.allowedChildren=[gt,Ct,We,ft];class Je extends We{attach(){super.attach(),this.attributes=new yi(this.domNode)}delta(){return new re().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,ne.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,s){this.format(n,s)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const s=t.split(`
|
|
108
108
|
`),i=s.pop(),o=s.map(l=>{const c=this.scroll.create(De.blotName);return c.insertAt(0,l),c}),a=this.split(e);o.forEach(l=>{this.parent.insertBefore(l,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}Je.scope=ne.BLOCK_BLOT;function Oh(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Fe).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),Xe(n,{},e)),new re).insert(`
|
|
@@ -170,4 +170,4 @@ object-assign
|
|
|
170
170
|
@license MIT
|
|
171
171
|
*/var Vo,Ku;function iE(){if(Ku)return Vo;Ku=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Vo=s()?Object.assign:function(i,o){for(var a,l=n(i),c,h=1;h<arguments.length;h++){a=Object(arguments[h]);for(var g in a)e.call(a,g)&&(l[g]=a[g]);if(r){c=r(a);for(var p=0;p<c.length;p++)t.call(a,c[p])&&(l[c[p]]=a[c[p]])}}return l},Vo}var Uo,Wu;function cl(){if(Wu)return Uo;Wu=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uo=r,Uo}var Ho,Yu;function pd(){return Yu||(Yu=1,Ho=Function.call.bind(Object.prototype.hasOwnProperty)),Ho}var zo,Zu;function oE(){if(Zu)return zo;Zu=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=cl(),t={},n=pd();r=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(i,o,a,l,c){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var g;try{if(typeof i[h]!="function"){var p=Error((l||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=i[h](o,h,l,a,null,e)}catch(v){g=v}if(g&&!(g instanceof Error)&&r((l||"React class")+": type specification of "+a+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in t)){t[g.message]=!0;var m=c?c():"";r("Failed "+a+" type: "+g.message+(m??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},zo=s,zo}var Go,Xu;function aE(){if(Xu)return Go;Xu=1;var r=fd(),e=iE(),t=cl(),n=pd(),s=oE(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Go=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(T){var D=T&&(c&&T[c]||T[h]);if(typeof D=="function")return D}var p="<<anonymous>>",m={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:x(),arrayOf:S,element:k(),elementType:_(),instanceOf:B,node:de(),objectOf:K,oneOf:L,oneOfType:ae,shape:M,exact:A};function v(T,D){return T===D?T!==0||1/T===1/D:T!==T&&D!==D}function d(T,D){this.message=T,this.data=D&&typeof D=="object"?D:{},this.stack=""}d.prototype=Error.prototype;function b(T){if(process.env.NODE_ENV!=="production")var D={},U=0;function W(H,J,F,$,X,G,Q){if($=$||p,G=G||F,Q!==t){if(l){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=$+":"+F;!D[ue]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+$+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ue]=!0,U++)}}return J[F]==null?H?J[F]===null?new d("The "+X+" `"+G+"` is marked as required "+("in `"+$+"`, but its value is `null`.")):new d("The "+X+" `"+G+"` is marked as required in "+("`"+$+"`, but its value is `undefined`.")):null:T(J,F,$,X,G)}var z=W.bind(null,!1);return z.isRequired=W.bind(null,!0),z}function E(T){function D(U,W,z,H,J,F){var $=U[W],X=R($);if(X!==T){var G=q($);return new d("Invalid "+H+" `"+J+"` of type "+("`"+G+"` supplied to `"+z+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return b(D)}function x(){return b(o)}function S(T){function D(U,W,z,H,J){if(typeof T!="function")return new d("Property `"+J+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var F=U[W];if(!Array.isArray(F)){var $=R(F);return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected an array."))}for(var X=0;X<F.length;X++){var G=T(F,X,z,H,J+"["+X+"]",t);if(G instanceof Error)return G}return null}return b(D)}function k(){function T(D,U,W,z,H){var J=D[U];if(!a(J)){var F=R(J);return new d("Invalid "+z+" `"+H+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return b(T)}function _(){function T(D,U,W,z,H){var J=D[U];if(!r.isValidElementType(J)){var F=R(J);return new d("Invalid "+z+" `"+H+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return b(T)}function B(T){function D(U,W,z,H,J){if(!(U[W]instanceof T)){var F=T.name||p,$=Z(U[W]);return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected ")+("instance of `"+F+"`."))}return null}return b(D)}function L(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function D(U,W,z,H,J){for(var F=U[W],$=0;$<T.length;$++)if(v(F,T[$]))return null;var X=JSON.stringify(T,function(Q,N){var ue=q(N);return ue==="symbol"?String(N):N});return new d("Invalid "+H+" `"+J+"` of value `"+String(F)+"` "+("supplied to `"+z+"`, expected one of "+X+"."))}return b(D)}function K(T){function D(U,W,z,H,J){if(typeof T!="function")return new d("Property `"+J+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected an object."));for(var X in F)if(n(F,X)){var G=T(F,X,z,H,J+"."+X,t);if(G instanceof Error)return G}return null}return b(D)}function ae(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<T.length;D++){var U=T[D];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(U)+" at index "+D+"."),o}function W(z,H,J,F,$){for(var X=[],G=0;G<T.length;G++){var Q=T[G],N=Q(z,H,J,F,$,t);if(N==null)return null;N.data&&n(N.data,"expectedType")&&X.push(N.data.expectedType)}var ue=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new d("Invalid "+F+" `"+$+"` supplied to "+("`"+J+"`"+ue+"."))}return b(W)}function de(){function T(D,U,W,z,H){return V(D[U])?null:new d("Invalid "+z+" `"+H+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return b(T)}function y(T,D,U,W,z){return new d((T||"React class")+": "+D+" type `"+U+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function M(T){function D(U,W,z,H,J){var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type `"+$+"` "+("supplied to `"+z+"`, expected `object`."));for(var X in T){var G=T[X];if(typeof G!="function")return y(z,H,J,X,q(G));var Q=G(F,X,z,H,J+"."+X,t);if(Q)return Q}return null}return b(D)}function A(T){function D(U,W,z,H,J){var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type `"+$+"` "+("supplied to `"+z+"`, expected `object`."));var X=e({},U[W],T);for(var G in X){var Q=T[G];if(n(T,G)&&typeof Q!="function")return y(z,H,J,G,q(Q));if(!Q)return new d("Invalid "+H+" `"+J+"` key `"+G+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(U[W],null," ")+`
|
|
172
172
|
Valid keys: `+JSON.stringify(Object.keys(T),null," "));var N=Q(F,G,z,H,J+"."+G,t);if(N)return N}return null}return b(D)}function V(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(V);if(T===null||a(T))return!0;var D=g(T);if(D){var U=D.call(T),W;if(D!==T.entries){for(;!(W=U.next()).done;)if(!V(W.value))return!1}else for(;!(W=U.next()).done;){var z=W.value;if(z&&!V(z[1]))return!1}}else return!1;return!0;default:return!1}}function j(T,D){return T==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(T){var D=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":j(D,T)?"symbol":D}function q(T){if(typeof T>"u"||T===null)return""+T;var D=R(T);if(D==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return D}function Y(T){var D=q(T);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Z(T){return!T.constructor||!T.constructor.name?p:T.constructor.name}return m.checkPropTypes=s,m.resetWarningCache=s.resetWarningCache,m.PropTypes=m,m},Go}var Ko,Qu;function lE(){if(Qu)return Ko;Qu=1;var r=cl();function e(){}function t(){}return t.resetWarningCache=e,Ko=function(){function n(o,a,l,c,h,g){if(g!==r){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function s(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Ko}var Ju;function uE(){if(Ju)return qs.exports;if(Ju=1,process.env.NODE_ENV!=="production"){var r=fd(),e=!0;qs.exports=aE()(r.isElement,e)}else qs.exports=lE()();return qs.exports}var cE=uE();const se=ct.getDefaultExportFromCjs(cE),gd={mask:se.oneOfType([se.array,se.func,se.string,se.instanceOf(RegExp),se.oneOf([Date,Number,ce.Masked]),se.instanceOf(ce.Masked)]),value:se.any,unmask:se.oneOfType([se.bool,se.oneOf(["typed"])]),prepare:se.func,prepareChar:se.func,validate:se.func,commit:se.func,overwrite:se.oneOfType([se.bool,se.oneOf(["shift"])]),eager:se.oneOfType([se.bool,se.oneOf(["append","remove"])]),skipInvalid:se.bool,onAccept:se.func,onComplete:se.func,placeholderChar:se.string,displayChar:se.string,lazy:se.bool,definitions:se.object,blocks:se.object,enum:se.arrayOf(se.string),maxLength:se.number,from:se.number,to:se.number,pattern:se.string,format:se.func,parse:se.func,autofix:se.oneOfType([se.bool,se.oneOf(["pad"])]),radix:se.string,thousandsSeparator:se.string,mapToRadix:se.arrayOf(se.string),scale:se.number,normalizeZeros:se.bool,padFractionalZeros:se.bool,min:se.oneOfType([se.number,se.instanceOf(Date)]),max:se.oneOfType([se.number,se.instanceOf(Date)]),dispatch:se.func,inputRef:se.oneOfType([se.func,se.shape({current:se.object})])},md=Object.keys(gd).filter(r=>r!=="value"),hE=["value","unmask","onAccept","onComplete","inputRef"],dE=md.filter(r=>hE.indexOf(r)<0);function fE(r){var e;const t=(e=class extends C.default.Component{constructor(i){super(i),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const i=this.props,o=this._extractMaskOptionsFromProps(i);if(o.mask)this.maskRef?(this.maskRef.updateOptions(o),"value"in i&&i.value!==void 0&&(this.maskValue=i.value)):this.initMask(o);else if(this.destroyMask(),"value"in i&&i.value!==void 0){var a;(a=this.element)!=null&&a.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=i.value:this.element.value=i.value}}componentWillUnmount(){this.destroyMask()}_inputRef(i){this.element=i,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=i:this.props.inputRef(i))}initMask(i){i===void 0&&(i=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ce(this.element,i).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(i){const{...o}=i;return Object.keys(o).filter(a=>dE.indexOf(a)<0).forEach(a=>{delete o[a]}),o}_extractNonMaskProps(i){const{...o}=i;return md.forEach(a=>{a!=="maxLength"&&delete o[a]}),"defaultValue"in o||(o.defaultValue=i.mask?"":o.value),delete o.value,o}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(i){this.maskRef&&(i=i==null&&this.props.unmask!=="typed"?"":i,this.props.unmask==="typed"?this.maskRef.typedValue=i:this.props.unmask?this.maskRef.unmaskedValue=i:this.maskRef.value=i)}_onAccept(i){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,i)}_onComplete(i){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,i)}render(){return C.default.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),n=r.displayName||r.name||"Component";return t.displayName="IMask("+n+")",t.propTypes=gd,C.default.forwardRef((s,i)=>C.default.createElement(t,{...s,ref:i}))}const pE=fE(r=>{let{inputRef:e,...t}=r;return C.default.createElement("input",{...t,ref:e})}),gE=(r,e)=>C.default.createElement(pE,{...r,ref:e}),mE=C.default.forwardRef(gE),vd=Ke.forwardRef(({className:r,type:e,variant:t,...n},s)=>I.jsx(mE,{className:Ce.cn(Si({variant:t}),r),ref:s,...n}));vd.displayName="MaskInput";var hl="Radio",[vE,yd]=le.createContextScope(hl),[yE,bE]=vE(hl),bd=C.forwardRef((r,e)=>{const{__scopeRadio:t,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:l,form:c,...h}=r,[g,p]=C.useState(null),m=Oe.useComposedRefs(e,b=>p(b)),v=C.useRef(!1),d=g?c||!!g.closest("form"):!0;return I.jsxs(yE,{scope:t,checked:s,disabled:o,children:[I.jsx(le.Primitive.button,{type:"button",role:"radio","aria-checked":s,"data-state":_d(s),"data-disabled":o?"":void 0,disabled:o,value:a,...h,ref:m,onClick:le.composeEventHandlers(r.onClick,b=>{s||l==null||l(),d&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),d&&I.jsx(xd,{control:g,bubbles:!v.current,name:n,value:a,checked:s,required:i,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});bd.displayName=hl;var Ed="RadioIndicator",wd=C.forwardRef((r,e)=>{const{__scopeRadio:t,forceMount:n,...s}=r,i=bE(Ed,t);return I.jsx(le.Presence,{present:n||i.checked,children:I.jsx(le.Primitive.span,{"data-state":_d(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});wd.displayName=Ed;var EE="RadioBubbleInput",xd=C.forwardRef(({__scopeRadio:r,control:e,checked:t,bubbles:n=!0,...s},i)=>{const o=C.useRef(null),a=Oe.useComposedRefs(o,i),l=li(t),c=$t.useSize(e);return C.useEffect(()=>{const h=o.current;if(!h)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(l!==t&&m){const v=new Event("click",{bubbles:n});m.call(h,t),h.dispatchEvent(v)}},[l,t,n]),I.jsx(le.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xd.displayName=EE;function _d(r){return r?"checked":"unchecked"}var wE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ni="RadioGroup",[xE]=le.createContextScope(Ni,[ai.createRovingFocusGroupScope,yd]),Sd=ai.createRovingFocusGroupScope(),Ad=yd(),[_E,SE]=xE(Ni),Cd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:h=!0,onValueChange:g,...p}=r,m=Sd(t),v=oc.useDirection(c),[d,b]=er.useControllableState({prop:i,defaultProp:s??null,onChange:g,caller:Ni});return I.jsx(_E,{scope:t,name:n,required:o,disabled:a,value:d,onValueChange:b,children:I.jsx(ai.Root,{asChild:!0,...m,orientation:l,dir:v,loop:h,children:I.jsx(le.Primitive.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:v,...p,ref:e})})})});Cd.displayName=Ni;var Td="RadioGroupItem",kd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,disabled:n,...s}=r,i=SE(Td,t),o=i.disabled||n,a=Sd(t),l=Ad(t),c=C.useRef(null),h=Oe.useComposedRefs(e,c),g=i.value===s.value,p=C.useRef(!1);return C.useEffect(()=>{const m=d=>{wE.includes(d.key)&&(p.current=!0)},v=()=>p.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",v)}},[]),I.jsx(ai.Item,{asChild:!0,...a,focusable:!o,active:g,children:I.jsx(bd,{disabled:o,required:i.required,checked:g,...l,...s,name:i.name,ref:h,onCheck:()=>i.onValueChange(s.value),onKeyDown:le.composeEventHandlers(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:le.composeEventHandlers(s.onFocus,()=>{var m;p.current&&((m=c.current)==null||m.click())})})})});kd.displayName=Td;var AE="RadioGroupIndicator",Nd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,...n}=r,s=Ad(t);return I.jsx(wd,{...s,...n,ref:e})});Nd.displayName=AE;var Id=Cd,Rd=kd,CE=Nd;const Od=C.forwardRef(({className:r,...e},t)=>I.jsx(Id,{className:Ce.cn("grid gap-2",r),...e,ref:t}));Od.displayName=Id.displayName;const Ld=C.forwardRef(({className:r,...e},t)=>I.jsx(Rd,{ref:t,className:Ce.cn("border-border-alpha-strong text-item-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...e,children:I.jsx(CE,{className:"flex items-center justify-center",children:I.jsx(ac.Circle,{className:"size-2.5 fill-current text-current"})})}));Ld.displayName=Rd.displayName;function TE(r){const e=kE(r),t=C.forwardRef((n,s)=>{const{children:i,...o}=n,a=C.Children.toArray(i),l=a.find(IE);if(l){const c=l.props.children,h=a.map(g=>g===l?C.Children.count(c)>1?C.Children.only(null):C.isValidElement(c)?c.props.children:null:g);return I.jsx(e,{...o,ref:s,children:C.isValidElement(c)?C.cloneElement(c,void 0,h):null})}return I.jsx(e,{...o,ref:s,children:i})});return t.displayName=`${r}.Slot`,t}function kE(r){const e=C.forwardRef((t,n)=>{const{children:s,...i}=t;if(C.isValidElement(s)){const o=OE(s),a=RE(i,s.props);return s.type!==C.Fragment&&(a.ref=n?Oe.composeRefs(n,o):o),C.cloneElement(s,a)}return C.Children.count(s)>1?C.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var NE=Symbol("radix.slottable");function IE(r){return C.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===NE}function RE(r,e){const t={...e};for(const n in e){const s=r[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?t[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(t[n]=s):n==="style"?t[n]={...s,...i}:n==="className"&&(t[n]=[s,i].filter(Boolean).join(" "))}return{...r,...t}}function OE(r){var n,s;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var LE=[" ","Enter","ArrowUp","ArrowDown"],ME=[" ","Enter"],Tr="Select",[Ii,Ri,DE]=Of.createCollection(Tr),[vn]=le.createContextScope(Tr,[DE,$t.createPopperScope]),Oi=$t.createPopperScope(),[PE,ur]=vn(Tr),[BE,qE]=vn(Tr),Md=r=>{const{__scopeSelect:e,children:t,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:c,name:h,autoComplete:g,disabled:p,required:m,form:v}=r,d=Oi(e),[b,E]=C.useState(null),[x,S]=C.useState(null),[k,_]=C.useState(!1),B=oc.useDirection(c),[L,K]=er.useControllableState({prop:n,defaultProp:s??!1,onChange:i,caller:Tr}),[ae,de]=er.useControllableState({prop:o,defaultProp:a,onChange:l,caller:Tr}),y=C.useRef(null),M=b?v||!!b.closest("form"):!0,[A,V]=C.useState(new Set),j=Array.from(A).map(R=>R.props.value).join(";");return I.jsx($t.Root2,{...d,children:I.jsxs(PE,{required:m,scope:e,trigger:b,onTriggerChange:E,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:er.useId(),value:ae,onValueChange:de,open:L,onOpenChange:K,dir:B,triggerPointerDownPosRef:y,disabled:p,children:[I.jsx(Ii.Provider,{scope:e,children:I.jsx(BE,{scope:r.__scopeSelect,onNativeOptionAdd:C.useCallback(R=>{V(q=>new Set(q).add(R))},[]),onNativeOptionRemove:C.useCallback(R=>{V(q=>{const Y=new Set(q);return Y.delete(R),Y})},[]),children:t})}),M?I.jsxs(of,{"aria-hidden":!0,required:m,tabIndex:-1,name:h,autoComplete:g,value:ae,onChange:R=>de(R.target.value),disabled:p,form:v,children:[ae===void 0?I.jsx("option",{value:""}):null,Array.from(A)]},j):null]})})};Md.displayName=Tr;var Dd="SelectTrigger",Pd=C.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:n=!1,...s}=r,i=Oi(t),o=ur(Dd,t),a=o.disabled||n,l=Oe.useComposedRefs(e,o.onTriggerChange),c=Ri(t),h=C.useRef("touch"),[g,p,m]=lf(d=>{const b=c().filter(S=>!S.disabled),E=b.find(S=>S.value===o.value),x=uf(b,d,E);x!==void 0&&o.onValueChange(x.value)}),v=d=>{a||(o.onOpenChange(!0),m()),d&&(o.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return I.jsx($t.Anchor,{asChild:!0,...i,children:I.jsx(le.Primitive.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":af(o.value)?"":void 0,...s,ref:l,onClick:le.composeEventHandlers(s.onClick,d=>{d.currentTarget.focus(),h.current!=="mouse"&&v(d)}),onPointerDown:le.composeEventHandlers(s.onPointerDown,d=>{h.current=d.pointerType;const b=d.target;b.hasPointerCapture(d.pointerId)&&b.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(v(d),d.preventDefault())}),onKeyDown:le.composeEventHandlers(s.onKeyDown,d=>{const b=g.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&p(d.key),!(b&&d.key===" ")&&LE.includes(d.key)&&(v(),d.preventDefault())})})})});Pd.displayName=Dd;var Bd="SelectValue",qd=C.forwardRef((r,e)=>{const{__scopeSelect:t,className:n,style:s,children:i,placeholder:o="",...a}=r,l=ur(Bd,t),{onValueNodeHasChildrenChange:c}=l,h=i!==void 0,g=Oe.useComposedRefs(e,l.onValueNodeChange);return ir.useLayoutEffect2(()=>{c(h)},[c,h]),I.jsx(le.Primitive.span,{...a,ref:g,style:{pointerEvents:"none"},children:af(l.value)?I.jsx(I.Fragment,{children:o}):i})});qd.displayName=Bd;var FE="SelectIcon",Fd=C.forwardRef((r,e)=>{const{__scopeSelect:t,children:n,...s}=r;return I.jsx(le.Primitive.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});Fd.displayName=FE;var jE="SelectPortal",jd=r=>I.jsx(Te.Portal,{asChild:!0,...r});jd.displayName=jE;var kr="SelectContent",$d=C.forwardRef((r,e)=>{const t=ur(kr,r.__scopeSelect),[n,s]=C.useState();if(ir.useLayoutEffect2(()=>{s(new DocumentFragment)},[]),!t.open){const i=n;return i?cc.createPortal(I.jsx(Vd,{scope:r.__scopeSelect,children:I.jsx(Ii.Slot,{scope:r.__scopeSelect,children:I.jsx("div",{children:r.children})})}),i):null}return I.jsx(Ud,{...r,ref:e})});$d.displayName=kr;var it=10,[Vd,cr]=vn(kr),$E="SelectContentImpl",VE=TE("SelectContent.RemoveScroll"),Ud=C.forwardRef((r,e)=>{const{__scopeSelect:t,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:h,arrowPadding:g,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:d,avoidCollisions:b,...E}=r,x=ur(kr,t),[S,k]=C.useState(null),[_,B]=C.useState(null),L=Oe.useComposedRefs(e,F=>k(F)),[K,ae]=C.useState(null),[de,y]=C.useState(null),M=Ri(t),[A,V]=C.useState(!1),j=C.useRef(!1);C.useEffect(()=>{if(S)return Te.hideOthers(S)},[S]),Te.useFocusGuards();const R=C.useCallback(F=>{const[$,...X]=M().map(N=>N.ref.current),[G]=X.slice(-1),Q=document.activeElement;for(const N of F)if(N===Q||(N==null||N.scrollIntoView({block:"nearest"}),N===$&&_&&(_.scrollTop=0),N===G&&_&&(_.scrollTop=_.scrollHeight),N==null||N.focus(),document.activeElement!==Q))return},[M,_]),q=C.useCallback(()=>R([K,S]),[R,K,S]);C.useEffect(()=>{A&&q()},[A,q]);const{onOpenChange:Y,triggerPointerDownPosRef:Z}=x;C.useEffect(()=>{if(S){let F={x:0,y:0};const $=G=>{var Q,N;F={x:Math.abs(Math.round(G.pageX)-(((Q=Z.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(G.pageY)-(((N=Z.current)==null?void 0:N.y)??0))}},X=G=>{F.x<=10&&F.y<=10?G.preventDefault():S.contains(G.target)||Y(!1),document.removeEventListener("pointermove",$),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",X,{capture:!0})}}},[S,Y,Z]),C.useEffect(()=>{const F=()=>Y(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[Y]);const[T,D]=lf(F=>{const $=M().filter(Q=>!Q.disabled),X=$.find(Q=>Q.ref.current===document.activeElement),G=uf($,F,X);G&&setTimeout(()=>G.ref.current.focus())}),U=C.useCallback((F,$,X)=>{const G=!j.current&&!X;(x.value!==void 0&&x.value===$||G)&&(ae(F),G&&(j.current=!0))},[x.value]),W=C.useCallback(()=>S==null?void 0:S.focus(),[S]),z=C.useCallback((F,$,X)=>{const G=!j.current&&!X;(x.value!==void 0&&x.value===$||G)&&y(F)},[x.value]),H=n==="popper"?Na:Hd,J=H===Na?{side:a,sideOffset:l,align:c,alignOffset:h,arrowPadding:g,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:d,avoidCollisions:b}:{};return I.jsx(Vd,{scope:t,content:S,viewport:_,onViewportChange:B,itemRefCallback:U,selectedItem:K,onItemLeave:W,itemTextRefCallback:z,focusSelectedItem:q,selectedItemText:de,position:n,isPositioned:A,searchRef:T,children:I.jsx(Te.ReactRemoveScroll,{as:VE,allowPinchZoom:!0,children:I.jsx(Te.FocusScope,{asChild:!0,trapped:x.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:le.composeEventHandlers(s,F=>{var $;($=x.trigger)==null||$.focus({preventScroll:!0}),F.preventDefault()}),children:I.jsx(Lf.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:I.jsx(H,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:F=>F.preventDefault(),...E,...J,onPlaced:()=>V(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:le.composeEventHandlers(E.onKeyDown,F=>{const $=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!$&&F.key.length===1&&D(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let G=M().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(F.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const Q=F.target,N=G.indexOf(Q);G=G.slice(N+1)}setTimeout(()=>R(G)),F.preventDefault()}})})})})})})});Ud.displayName=$E;var UE="SelectItemAlignedPosition",Hd=C.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:n,...s}=r,i=ur(kr,t),o=cr(kr,t),[a,l]=C.useState(null),[c,h]=C.useState(null),g=Oe.useComposedRefs(e,L=>h(L)),p=Ri(t),m=C.useRef(!1),v=C.useRef(!0),{viewport:d,selectedItem:b,selectedItemText:E,focusSelectedItem:x}=o,S=C.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&d&&b&&E){const L=i.trigger.getBoundingClientRect(),K=c.getBoundingClientRect(),ae=i.valueNode.getBoundingClientRect(),de=E.getBoundingClientRect();if(i.dir!=="rtl"){const Q=de.left-K.left,N=ae.left-Q,ue=L.left-N,ge=L.width+ue,be=Math.max(ge,K.width),kt=window.innerWidth-it,Ht=yl.clamp(N,[it,Math.max(it,kt-be)]);a.style.minWidth=ge+"px",a.style.left=Ht+"px"}else{const Q=K.right-de.right,N=window.innerWidth-ae.right-Q,ue=window.innerWidth-L.right-N,ge=L.width+ue,be=Math.max(ge,K.width),kt=window.innerWidth-it,Ht=yl.clamp(N,[it,Math.max(it,kt-be)]);a.style.minWidth=ge+"px",a.style.right=Ht+"px"}const y=p(),M=window.innerHeight-it*2,A=d.scrollHeight,V=window.getComputedStyle(c),j=parseInt(V.borderTopWidth,10),R=parseInt(V.paddingTop,10),q=parseInt(V.borderBottomWidth,10),Y=parseInt(V.paddingBottom,10),Z=j+R+A+Y+q,T=Math.min(b.offsetHeight*5,Z),D=window.getComputedStyle(d),U=parseInt(D.paddingTop,10),W=parseInt(D.paddingBottom,10),z=L.top+L.height/2-it,H=M-z,J=b.offsetHeight/2,F=b.offsetTop+J,$=j+R+F,X=Z-$;if($<=z){const Q=y.length>0&&b===y[y.length-1].ref.current;a.style.bottom="0px";const N=c.clientHeight-d.offsetTop-d.offsetHeight,ue=Math.max(H,J+(Q?W:0)+N+q),ge=$+ue;a.style.height=ge+"px"}else{const Q=y.length>0&&b===y[0].ref.current;a.style.top="0px";const ue=Math.max(z,j+d.offsetTop+(Q?U:0)+J)+X;a.style.height=ue+"px",d.scrollTop=$-z+d.offsetTop}a.style.margin=`${it}px 0`,a.style.minHeight=T+"px",a.style.maxHeight=M+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,a,c,d,b,E,i.dir,n]);ir.useLayoutEffect2(()=>S(),[S]);const[k,_]=C.useState();ir.useLayoutEffect2(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const B=C.useCallback(L=>{L&&v.current===!0&&(S(),x==null||x(),v.current=!1)},[S,x]);return I.jsx(zE,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:B,children:I.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:I.jsx(le.Primitive.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Hd.displayName=UE;var HE="SelectPopperPosition",Na=C.forwardRef((r,e)=>{const{__scopeSelect:t,align:n="start",collisionPadding:s=it,...i}=r,o=Oi(t);return I.jsx($t.Content,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Na.displayName=HE;var[zE,dl]=vn(kr,{}),Ia="SelectViewport",zd=C.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:n,...s}=r,i=cr(Ia,t),o=dl(Ia,t),a=Oe.useComposedRefs(e,i.onViewportChange),l=C.useRef(0);return I.jsxs(I.Fragment,{children:[I.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),I.jsx(Ii.Slot,{scope:t,children:I.jsx(le.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:le.composeEventHandlers(s.onScroll,c=>{const h=c.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&g){const m=Math.abs(l.current-h.scrollTop);if(m>0){const v=window.innerHeight-it*2,d=parseFloat(g.style.minHeight),b=parseFloat(g.style.height),E=Math.max(d,b);if(E<v){const x=E+m,S=Math.min(v,x),k=x-S;g.style.height=S+"px",g.style.bottom==="0px"&&(h.scrollTop=k>0?k:0,g.style.justifyContent="flex-end")}}}l.current=h.scrollTop})})})]})});zd.displayName=Ia;var Gd="SelectGroup",[GE,KE]=vn(Gd),Kd=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=er.useId();return I.jsx(GE,{scope:t,id:s,children:I.jsx(le.Primitive.div,{role:"group","aria-labelledby":s,...n,ref:e})})});Kd.displayName=Gd;var Wd="SelectLabel",Yd=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=KE(Wd,t);return I.jsx(le.Primitive.div,{id:s.id,...n,ref:e})});Yd.displayName=Wd;var oi="SelectItem",[WE,Zd]=vn(oi),Xd=C.forwardRef((r,e)=>{const{__scopeSelect:t,value:n,disabled:s=!1,textValue:i,...o}=r,a=ur(oi,t),l=cr(oi,t),c=a.value===n,[h,g]=C.useState(i??""),[p,m]=C.useState(!1),v=Oe.useComposedRefs(e,x=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,x,n,s)}),d=er.useId(),b=C.useRef("touch"),E=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return I.jsx(WE,{scope:t,value:n,disabled:s,textId:d,isSelected:c,onItemTextChange:C.useCallback(x=>{g(S=>S||((x==null?void 0:x.textContent)??"").trim())},[]),children:I.jsx(Ii.ItemSlot,{scope:t,value:n,disabled:s,textValue:h,children:I.jsx(le.Primitive.div,{role:"option","aria-labelledby":d,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:v,onFocus:le.composeEventHandlers(o.onFocus,()=>m(!0)),onBlur:le.composeEventHandlers(o.onBlur,()=>m(!1)),onClick:le.composeEventHandlers(o.onClick,()=>{b.current!=="mouse"&&E()}),onPointerUp:le.composeEventHandlers(o.onPointerUp,()=>{b.current==="mouse"&&E()}),onPointerDown:le.composeEventHandlers(o.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:le.composeEventHandlers(o.onPointerMove,x=>{var S;b.current=x.pointerType,s?(S=l.onItemLeave)==null||S.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le.composeEventHandlers(o.onPointerLeave,x=>{var S;x.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:le.composeEventHandlers(o.onKeyDown,x=>{var k;((k=l.searchRef)==null?void 0:k.current)!==""&&x.key===" "||(ME.includes(x.key)&&E(),x.key===" "&&x.preventDefault())})})})})});Xd.displayName=oi;var jn="SelectItemText",Qd=C.forwardRef((r,e)=>{const{__scopeSelect:t,className:n,style:s,...i}=r,o=ur(jn,t),a=cr(jn,t),l=Zd(jn,t),c=qE(jn,t),[h,g]=C.useState(null),p=Oe.useComposedRefs(e,E=>g(E),l.onItemTextChange,E=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,E,l.value,l.disabled)}),m=h==null?void 0:h.textContent,v=C.useMemo(()=>I.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:d,onNativeOptionRemove:b}=c;return ir.useLayoutEffect2(()=>(d(v),()=>b(v)),[d,b,v]),I.jsxs(I.Fragment,{children:[I.jsx(le.Primitive.span,{id:l.textId,...i,ref:p}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?cc.createPortal(i.children,o.valueNode):null]})});Qd.displayName=jn;var Jd="SelectItemIndicator",ef=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r;return Zd(Jd,t).isSelected?I.jsx(le.Primitive.span,{"aria-hidden":!0,...n,ref:e}):null});ef.displayName=Jd;var Ra="SelectScrollUpButton",tf=C.forwardRef((r,e)=>{const t=cr(Ra,r.__scopeSelect),n=dl(Ra,r.__scopeSelect),[s,i]=C.useState(!1),o=Oe.useComposedRefs(e,n.onScrollButtonChange);return ir.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=t.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?I.jsx(nf,{...r,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=t;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});tf.displayName=Ra;var Oa="SelectScrollDownButton",rf=C.forwardRef((r,e)=>{const t=cr(Oa,r.__scopeSelect),n=dl(Oa,r.__scopeSelect),[s,i]=C.useState(!1),o=Oe.useComposedRefs(e,n.onScrollButtonChange);return ir.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,h=Math.ceil(l.scrollTop)<c;i(h)};const l=t.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?I.jsx(nf,{...r,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=t;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});rf.displayName=Oa;var nf=C.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:n,...s}=r,i=cr("SelectScrollButton",t),o=C.useRef(null),a=Ri(t),l=C.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return C.useEffect(()=>()=>l(),[l]),ir.useLayoutEffect2(()=>{var h;const c=a().find(g=>g.ref.current===document.activeElement);(h=c==null?void 0:c.ref.current)==null||h.scrollIntoView({block:"nearest"})},[a]),I.jsx(le.Primitive.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:le.composeEventHandlers(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:le.composeEventHandlers(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:le.composeEventHandlers(s.onPointerLeave,()=>{l()})})}),YE="SelectSeparator",sf=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r;return I.jsx(le.Primitive.div,{"aria-hidden":!0,...n,ref:e})});sf.displayName=YE;var La="SelectArrow",ZE=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=Oi(t),i=ur(La,t),o=cr(La,t);return i.open&&o.position==="popper"?I.jsx($t.Arrow,{...s,...n,ref:e}):null});ZE.displayName=La;var XE="SelectBubbleInput",of=C.forwardRef(({__scopeSelect:r,value:e,...t},n)=>{const s=C.useRef(null),i=Oe.useComposedRefs(n,s),o=li(e);return C.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==e&&h){const g=new Event("change",{bubbles:!0});h.call(a,e),a.dispatchEvent(g)}},[o,e]),I.jsx(le.Primitive.select,{...t,style:{...Df.VISUALLY_HIDDEN_STYLES,...t.style},ref:i,defaultValue:e})});of.displayName=XE;function af(r){return r===""||r===void 0}function lf(r){const e=Mf.useCallbackRef(r),t=C.useRef(""),n=C.useRef(0),s=C.useCallback(o=>{const a=t.current+o;e(a),(function l(c){t.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(a)},[e]),i=C.useCallback(()=>{t.current="",window.clearTimeout(n.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(n.current),[]),[t,s,i]}function uf(r,e,t){const s=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,i=t?r.indexOf(t):-1;let o=QE(r,Math.max(i,0));s.length===1&&(o=o.filter(c=>c!==t));const l=o.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==t?l:void 0}function QE(r,e){return r.map((t,n)=>r[(e+n)%r.length])}var JE=Md,cf=Pd,ew=qd,tw=Fd,rw=jd,hf=$d,nw=zd,sw=Kd,df=Yd,ff=Xd,iw=Qd,ow=ef,pf=tf,gf=rf,mf=sf;function aw(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,en._setPrototypeOf(r,e)}var ec=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function lw(r,e){return!!(r===e||ec(r)&&ec(e))}function uw(r,e){if(r.length!==e.length)return!1;for(var t=0;t<r.length;t++)if(!lw(r[t],e[t]))return!1;return!0}function Wo(r,e){e===void 0&&(e=uw);var t,n=[],s,i=!1;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&t===this&&e(a,n)||(s=r.apply(this,a),i=!0,t=this,n=a),s}return o}var cw=typeof performance=="object"&&typeof performance.now=="function",tc=cw?function(){return performance.now()}:function(){return Date.now()};function rc(r){cancelAnimationFrame(r.id)}function hw(r,e){var t=tc();function n(){tc()-t>=e?r.call(null):s.id=requestAnimationFrame(n)}var s={id:requestAnimationFrame(n)};return s}var Yo=-1;function nc(r){if(r===void 0&&(r=!1),Yo===-1||r){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),Yo=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Yo}var Kr=null;function sc(r){if(r===void 0&&(r=!1),Kr===null||r){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),s=n.style;return s.width="100px",s.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?Kr="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Kr="negative":Kr="positive-ascending"),document.body.removeChild(e),Kr}return Kr}process.env.NODE_ENV;var dw=150,fw=function(e,t){return e},Ys=null,Zs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ys=new WeakSet,Zs=new WeakSet);function pw(r){var e,t=r.getItemOffset,n=r.getEstimatedTotalSize,s=r.getItemSize,i=r.getOffsetForIndexAndAlignment,o=r.getStartIndexForOffset,a=r.getStopIndexForStartIndex,l=r.initInstanceProps,c=r.shouldResetStyleCacheOnItemSizeChange,h=r.validateProps;return e=(function(g){aw(p,g);function p(v){var d;return d=g.call(this,v)||this,d._instanceProps=l(d.props,en._assertThisInitialized(d)),d._outerRef=void 0,d._resetIsScrollingTimeoutId=null,d.state={instance:en._assertThisInitialized(d),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof d.props.initialScrollOffset=="number"?d.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},d._callOnItemsRendered=void 0,d._callOnItemsRendered=Wo(function(b,E,x,S){return d.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:E,visibleStartIndex:x,visibleStopIndex:S})}),d._callOnScroll=void 0,d._callOnScroll=Wo(function(b,E,x){return d.props.onScroll({scrollDirection:b,scrollOffset:E,scrollUpdateWasRequested:x})}),d._getItemStyle=void 0,d._getItemStyle=function(b){var E=d.props,x=E.direction,S=E.itemSize,k=E.layout,_=d._getItemStyleCache(c&&S,c&&k,c&&x),B;if(_.hasOwnProperty(b))B=_[b];else{var L=t(d.props,b,d._instanceProps),K=s(d.props,b,d._instanceProps),ae=x==="horizontal"||k==="horizontal",de=x==="rtl",y=ae?L:0;_[b]=B={position:"absolute",left:de?void 0:y,right:de?y:void 0,top:ae?0:L,height:ae?"100%":K,width:ae?K:"100%"}}return B},d._getItemStyleCache=void 0,d._getItemStyleCache=Wo(function(b,E,x){return{}}),d._onScrollHorizontal=function(b){var E=b.currentTarget,x=E.clientWidth,S=E.scrollLeft,k=E.scrollWidth;d.setState(function(_){if(_.scrollOffset===S)return null;var B=d.props.direction,L=S;if(B==="rtl")switch(sc()){case"negative":L=-S;break;case"positive-descending":L=k-x-S;break}return L=Math.max(0,Math.min(L,k-x)),{isScrolling:!0,scrollDirection:_.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},d._resetIsScrollingDebounced)},d._onScrollVertical=function(b){var E=b.currentTarget,x=E.clientHeight,S=E.scrollHeight,k=E.scrollTop;d.setState(function(_){if(_.scrollOffset===k)return null;var B=Math.max(0,Math.min(k,S-x));return{isScrolling:!0,scrollDirection:_.scrollOffset<B?"forward":"backward",scrollOffset:B,scrollUpdateWasRequested:!1}},d._resetIsScrollingDebounced)},d._outerRefSetter=function(b){var E=d.props.outerRef;d._outerRef=b,typeof E=="function"?E(b):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=b)},d._resetIsScrollingDebounced=function(){d._resetIsScrollingTimeoutId!==null&&rc(d._resetIsScrollingTimeoutId),d._resetIsScrollingTimeoutId=hw(d._resetIsScrolling,dw)},d._resetIsScrolling=function(){d._resetIsScrollingTimeoutId=null,d.setState({isScrolling:!1},function(){d._getItemStyleCache(-1,null)})},d}p.getDerivedStateFromProps=function(d,b){return gw(d,b),h(d),null};var m=p.prototype;return m.scrollTo=function(d){d=Math.max(0,d),this.setState(function(b){return b.scrollOffset===d?null:{scrollDirection:b.scrollOffset<d?"forward":"backward",scrollOffset:d,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(d,b){b===void 0&&(b="auto");var E=this.props,x=E.itemCount,S=E.layout,k=this.state.scrollOffset;d=Math.max(0,Math.min(d,x-1));var _=0;if(this._outerRef){var B=this._outerRef;S==="vertical"?_=B.scrollWidth>B.clientWidth?nc():0:_=B.scrollHeight>B.clientHeight?nc():0}this.scrollTo(i(this.props,d,b,k,this._instanceProps,_))},m.componentDidMount=function(){var d=this.props,b=d.direction,E=d.initialScrollOffset,x=d.layout;if(typeof E=="number"&&this._outerRef!=null){var S=this._outerRef;b==="horizontal"||x==="horizontal"?S.scrollLeft=E:S.scrollTop=E}this._callPropsCallbacks()},m.componentDidUpdate=function(){var d=this.props,b=d.direction,E=d.layout,x=this.state,S=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var _=this._outerRef;if(b==="horizontal"||E==="horizontal")if(b==="rtl")switch(sc()){case"negative":_.scrollLeft=-S;break;case"positive-ascending":_.scrollLeft=S;break;default:var B=_.clientWidth,L=_.scrollWidth;_.scrollLeft=L-B-S;break}else _.scrollLeft=S;else _.scrollTop=S}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&rc(this._resetIsScrollingTimeoutId)},m.render=function(){var d=this.props,b=d.children,E=d.className,x=d.direction,S=d.height,k=d.innerRef,_=d.innerElementType,B=d.innerTagName,L=d.itemCount,K=d.itemData,ae=d.itemKey,de=ae===void 0?fw:ae,y=d.layout,M=d.outerElementType,A=d.outerTagName,V=d.style,j=d.useIsScrolling,R=d.width,q=this.state.isScrolling,Y=x==="horizontal"||y==="horizontal",Z=Y?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),D=T[0],U=T[1],W=[];if(L>0)for(var z=D;z<=U;z++)W.push(Ke.createElement(b,{data:K,key:de(z,K),index:z,isScrolling:j?q:void 0,style:this._getItemStyle(z)}));var H=n(this.props,this._instanceProps);return Ke.createElement(M||A||"div",{className:E,onScroll:Z,ref:this._outerRefSetter,style:en._extends({position:"relative",height:S,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},V)},Ke.createElement(_||B||"div",{children:W,ref:k,style:{height:Y?"100%":H,pointerEvents:q?"none":void 0,width:Y?H:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var d=this.props.itemCount;if(d>0){var b=this._getRangeToRender(),E=b[0],x=b[1],S=b[2],k=b[3];this._callOnItemsRendered(E,x,S,k)}}if(typeof this.props.onScroll=="function"){var _=this.state,B=_.scrollDirection,L=_.scrollOffset,K=_.scrollUpdateWasRequested;this._callOnScroll(B,L,K)}},m._getRangeToRender=function(){var d=this.props,b=d.itemCount,E=d.overscanCount,x=this.state,S=x.isScrolling,k=x.scrollDirection,_=x.scrollOffset;if(b===0)return[0,0,0,0];var B=o(this.props,_,this._instanceProps),L=a(this.props,B,_,this._instanceProps),K=!S||k==="backward"?Math.max(1,E):1,ae=!S||k==="forward"?Math.max(1,E):1;return[Math.max(0,B-K),Math.max(0,Math.min(b-1,L+ae)),B,L]},p})(Ke.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var gw=function(e,t){var n=e.children,s=e.direction,i=e.height,o=e.layout,a=e.innerTagName,l=e.outerTagName,c=e.width,h=t.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&Zs&&!Zs.has(h)&&(Zs.add(h),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var g=s==="horizontal"||o==="horizontal";switch(s){case"horizontal":case"vertical":Ys&&!Ys.has(h)&&(Ys.add(h),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+s+'" was specified.'))}switch(o){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+o+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(g&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!g&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},mw=pw({getItemOffset:function(e,t){var n=e.itemSize;return t*n},getItemSize:function(e,t){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var t=e.itemCount,n=e.itemSize;return n*t},getOffsetForIndexAndAlignment:function(e,t,n,s,i,o){var a=e.direction,l=e.height,c=e.itemCount,h=e.itemSize,g=e.layout,p=e.width,m=a==="horizontal"||g==="horizontal",v=m?p:l,d=Math.max(0,c*h-v),b=Math.min(d,t*h),E=Math.max(0,t*h-v+h+o);switch(n==="smart"&&(s>=E-v&&s<=b+v?n="auto":n="center"),n){case"start":return b;case"end":return E;case"center":{var x=Math.round(E+(b-E)/2);return x<Math.ceil(v/2)?0:x>d+Math.floor(v/2)?d:x}case"auto":default:return s>=E&&s<=b?s:s<E?E:b}},getStartIndexForOffset:function(e,t){var n=e.itemCount,s=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/s)))},getStopIndexForStartIndex:function(e,t,n){var s=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,l=e.layout,c=e.width,h=s==="horizontal"||l==="horizontal",g=t*a,p=h?c:i,m=Math.ceil((p+n-g)/a);return Math.max(0,Math.min(o-1,t+m-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof t!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(t===null?"null":typeof t)+'" was specified.'))}});const vw=JE,yw=sw,bw=ew,vf=C.forwardRef(({className:r,children:e,variant:t="default",...n},s)=>I.jsxs(cf,{ref:s,className:Ce.cn("border-border ring-offset-background placeholder:text-muted-foreground focus:ring-offset-none focus:ring-primary flex h-10 w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm focus:ring-2 focus:ring-offset-transparent focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-transparent [&>span]:line-clamp-1",t==="failure"&&"focus:ring-destructive hover:bg-destructive/20 bg-destructive/20 border-destructive !text-destructive",r),...n,children:[e,I.jsx(tw,{asChild:!0,children:I.jsx(lc.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));vf.displayName=cf.displayName;const fl=C.forwardRef(({className:r,...e},t)=>I.jsx(pf,{ref:t,className:Ce.cn("flex cursor-default items-center justify-center py-1",r),...e,children:I.jsx(Ff,{className:"h-4 w-4"})}));fl.displayName=pf.displayName;const pl=C.forwardRef(({className:r,...e},t)=>I.jsx(gf,{ref:t,className:Ce.cn("flex cursor-default items-center justify-center py-1",r),...e,children:I.jsx(lc.ChevronDown,{className:"h-4 w-4"})}));pl.displayName=gf.displayName;const gl=C.forwardRef(({className:r,children:e,position:t="popper",...n},s)=>I.jsx(rw,{children:I.jsxs(hf,{ref:s,className:Ce.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:t,...n,children:[I.jsx(fl,{}),I.jsx(nw,{className:Ce.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),I.jsx(pl,{})]})}));gl.displayName=hf.displayName;const yf=C.forwardRef(({className:r,...e},t)=>I.jsx(df,{ref:t,className:Ce.cn("py-1.5 pr-2 pl-8 text-sm font-semibold",r),...e}));yf.displayName=df.displayName;const ml=C.forwardRef(({className:r,children:e,...t},n)=>I.jsxs(ff,{ref:n,className:Ce.cn("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...t,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(ow,{children:I.jsx(ac.Check,{className:"h-4 w-4"})})}),I.jsx(iw,{children:e})]}));ml.displayName=ff.displayName;const bf=C.forwardRef(({className:r,...e},t)=>I.jsx(mf,{ref:t,className:Ce.cn("bg-muted -mx-1 my-1 h-px",r),...e}));bf.displayName=mf.displayName;const Ef=C.forwardRef(({className:r,options:e,position:t="popper",itemHeight:n=35,maxHeight:s=300,...i},o)=>{const a=Ke.useRef(null),l=({index:c,style:h})=>{const g=e[c];return I.jsx("div",{style:h,children:I.jsx(ml,{value:`${g.value}`,children:g.label})})};return I.jsx(gl,{ref:o,...i,children:I.jsx(mw,{ref:a,height:Math.min(s,e.length*n),itemCount:e.length,itemSize:n,width:"100%",children:l})})});Ef.displayName="VirtualizedSelectContent";var Li="Switch",[Ew]=le.createContextScope(Li),[ww,xw]=Ew(Li),wf=C.forwardRef((r,e)=>{const{__scopeSwitch:t,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:l="on",onCheckedChange:c,form:h,...g}=r,[p,m]=C.useState(null),v=Oe.useComposedRefs(e,S=>m(S)),d=C.useRef(!1),b=p?h||!!p.closest("form"):!0,[E,x]=er.useControllableState({prop:s,defaultProp:i??!1,onChange:c,caller:Li});return I.jsxs(ww,{scope:t,checked:E,disabled:a,children:[I.jsx(le.Primitive.button,{type:"button",role:"switch","aria-checked":E,"aria-required":o,"data-state":Af(E),"data-disabled":a?"":void 0,disabled:a,value:l,...g,ref:v,onClick:le.composeEventHandlers(r.onClick,S=>{x(k=>!k),b&&(d.current=S.isPropagationStopped(),d.current||S.stopPropagation())})}),b&&I.jsx(Sf,{control:p,bubbles:!d.current,name:n,value:l,checked:E,required:o,disabled:a,form:h,style:{transform:"translateX(-100%)"}})]})});wf.displayName=Li;var xf="SwitchThumb",_f=C.forwardRef((r,e)=>{const{__scopeSwitch:t,...n}=r,s=xw(xf,t);return I.jsx(le.Primitive.span,{"data-state":Af(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});_f.displayName=xf;var _w="SwitchBubbleInput",Sf=C.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:n=!0,...s},i)=>{const o=C.useRef(null),a=Oe.useComposedRefs(o,i),l=li(t),c=$t.useSize(e);return C.useEffect(()=>{const h=o.current;if(!h)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(l!==t&&m){const v=new Event("click",{bubbles:n});m.call(h,t),h.dispatchEvent(v)}},[l,t,n]),I.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Sf.displayName=_w;function Af(r){return r?"checked":"unchecked"}var Cf=wf,Sw=_f;const Tf=C.forwardRef(({className:r,...e},t)=>I.jsx(Cf,{className:Ce.cn("peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-item-primary data-[state=unchecked]:bg-input inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-40",r),...e,ref:t,children:I.jsx(Sw,{className:Ce.cn("bg-background pointer-events-none block size-3.5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0")})}));Tf.displayName=Cf.displayName;const kf=C.forwardRef(({className:r,variant:e,...t},n)=>I.jsx("textarea",{className:Ce.cn("min-h-20 px-3 py-2",Si({variant:e}),r),ref:n,...t}));kf.displayName="Textarea";exports.Checkbox=yc;exports.FilepondContainer=Uc;exports.Form=tg;exports.FormControl=Zc;exports.FormDescription=Xc;exports.FormField=rg;exports.FormItem=Wc;exports.FormLabel=Yc;exports.FormMessage=Qc;exports.HtmlEditor=id;exports.Input=od;exports.Label=Ha;exports.MaskInput=vd;exports.RadioGroup=Od;exports.RadioGroupItem=Ld;exports.Select=vw;exports.SelectContent=gl;exports.SelectGroup=yw;exports.SelectItem=ml;exports.SelectLabel=yf;exports.SelectScrollDownButton=pl;exports.SelectScrollUpButton=fl;exports.SelectSeparator=bf;exports.SelectTrigger=vf;exports.SelectValue=bw;exports.Switch=Tf;exports.Textarea=kf;exports.VirtualizedSelectContent=Ef;exports.inputVariants=Si;exports.useFormField=rs;
|
|
173
|
-
//# sourceMappingURL=textarea-
|
|
173
|
+
//# sourceMappingURL=textarea-BR-SfVAo.cjs.js.map
|