reacthub-pixitweenjs 0.2.71 → 0.2.72

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/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(ie,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("react"),require("@pixi/react"),require("gsap"),require("pixi.js"),require("reacthub-react-bindings"),require("@pixi/sound")):typeof define=="function"&&define.amd?define(["exports","react","@pixi/react","gsap","pixi.js","reacthub-react-bindings","@pixi/sound"],_t):(ie=typeof globalThis<"u"?globalThis:ie||self,_t(ie["reacthub-pixitweenjs"]={},ie.React,ie.PIXIReact,ie.gsap,ie.PIXI,ie.reacthubReactBindings,ie.PIXI.sound))})(this,function(ie,_t,xe,Te,ey,ry,ny){"use strict";function ac(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Et=ac(_t),on=ac(ey);var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var lc={exports:{}},Gs={};/**
1
+ (function(ie,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("react"),require("@pixi/react"),require("gsap"),require("pixi.js"),require("reacthub-react-bindings"),require("@pixi/sound")):typeof define=="function"&&define.amd?define(["exports","react","@pixi/react","gsap","pixi.js","reacthub-react-bindings","@pixi/sound"],_t):(ie=typeof globalThis<"u"?globalThis:ie||self,_t(ie["reacthub-pixitweenjs"]={},ie.React,ie.PIXIReact,ie.gsap,ie.PIXI,ie.reacthubReactBindings,ie.PIXI.sound))})(this,function(ie,_t,ye,Te,ey,ry,ny){"use strict";function ac(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Et=ac(_t),on=ac(ey);var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function En(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var lc={exports:{}},Gs={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var sy=_t,oy=Symbol.for("react.element"),ay=Symbol.for("react.fragment"),ly=Object.prototype.hasOwnProperty,uy=sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fy={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)ly.call(t,n)&&!fy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:oy,type:e,key:o,ref:l,props:i,_owner:uy.current}}Gs.Fragment=ay,Gs.jsx=uc,Gs.jsxs=uc,lc.exports=Gs;var ee=lc.exports,Qn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Qn||{});let fc;function cc(){return fc=document.body,fc}function mr(e,t,r){let n;return _t.useEffect(()=>{n=n||cc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Jn(e,t){const r=cc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function cy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const ti=Et.createContext({}),ke={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END"},hy=({children:e})=>{const[t,r]=_t.useState(!1),n=_t.useRef(),i=_t.useRef(),o=_t.useRef(.001);_t.useLayoutEffect(()=>(i.current=Te.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&Te.killTweensOf(n.current),n.current=Te.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),Te.killTweensOf(n.current)),i.current.revert()}),[]);const l=_t.useCallback(()=>{if(n.current){let b=n.current.time();o.current=b}},[]);_t.useEffect(()=>{if(n.current){const y=n.current;y.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){y.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){y.pause(),y.revert(),Jn(ke.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=_t.useCallback(()=>{n.current&&n.current.revert()},[]),f=_t.useCallback(()=>{n.current&&n.current.restart()},[]),h=_t.useCallback(()=>{if(n.current){const y=n.current;y.repeat(1),y.restart()}},[]),d=_t.useCallback(y=>{n.current&&n.current.seek(y)},[]),p=_t.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=_t.useCallback(()=>{const y=n.current;return y?y.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Jn(ke.PAUSE))},m=()=>{n.current&&(n.current.resume(),Jn(ke.RESUME))};return mr(ke.SEEK_START,()=>{r(!0)}),mr(ke.SCRUBBER_PLAY,()=>{m()}),mr(ke.SCRUBBER_PAUSE,()=>{v()}),mr(ke.SCRUBBER_SEEK,y=>{d(y)}),mr(ke.SEEK_END,()=>{r(!1)}),mr(ke.SCRUBBER_PROGRESS_UPDATE,y=>{}),ee.jsx(ti.Provider,{value:{gsapCtx:i,tl:n,handlePlay:m,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:o,isDragging:t,getTimelineDuration:c},children:e})},dy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,uniqueId:l="",isText:u=!1})=>{const f=on.utils.string2hex("#F3C409"),h=on.utils.string2hex("#F3C409"),d=Et.useRef({isDragging:!1}),p=Et.useCallback(()=>{o&&!d.current.isDragging&&o(!0)},[o]),c=Et.useCallback(()=>{o&&!d.current.isDragging&&o(!1)},[o]),v=Et.useCallback(()=>{d.current.isDragging=!0},[]),m=Et.useCallback(b=>{d.current.isDragging=!0,i&&i(b),Jn(ke.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),y=Et.useCallback(()=>{if(t.current===null)return;const b=t.current.x,_=t.current.y,w=t.current.width,T=t.current.height,x=t.current.rotation,A=[t.current.scale.x,t.current.scale.y],I=A[0]<0?-1:1,S=A[1]<0?-1:1;n&&(n({uniqueId:l,transformation:{x:Math.round(b),y:Math.round(_),width:Math.round(Math.max(5,w)),height:Math.round(Math.max(5,T)),rotation:x,scale:u?A:[I,S]}}),Jn(ke.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),d.current.isDragging=!1},[n]);return Et.useEffect(()=>(e.current&&(e.current.on("mouseover",p),e.current.on("mouseout",c),e.current.on("mousedown",v)),()=>{e.current&&(e.current.off("mouseover",p),e.current.off("mouseout",c),e.current.off("mousedown",v))}),[]),ee.jsx(ry.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:m,transformcommit:y})},py=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var vy=Object.prototype;function gy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||vy;return e===r}var hc=gy;function my(e,t){return function(r){return e(t(r))}}var yy=my,_y=yy,by=_y(Object.keys,Object),xy=by,wy=hc,Ty=xy,Ey=Object.prototype,Ay=Ey.hasOwnProperty;function Sy(e){if(!wy(e))return Ty(e);var t=[];for(var r in Object(e))Ay.call(e,r)&&r!="constructor"&&t.push(r);return t}var dc=Sy,Oy=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,pc=Oy,Cy=pc,Ry=typeof self=="object"&&self&&self.Object===Object&&self,Iy=Cy||Ry||Function("return this")(),Mr=Iy,Py=Mr,Ny=Py.Symbol,js=Ny,vc=js,gc=Object.prototype,My=gc.hasOwnProperty,ky=gc.toString,Xi=vc?vc.toStringTag:void 0;function Ly(e){var t=My.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=ky.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var Fy=Ly,By=Object.prototype,Dy=By.toString;function Uy(e){return Dy.call(e)}var $y=Uy,mc=js,Gy=Fy,jy=$y,qy="[object Null]",zy="[object Undefined]",yc=mc?mc.toStringTag:void 0;function Hy(e){return e==null?e===void 0?zy:qy:yc&&yc in Object(e)?Gy(e):jy(e)}var Ki=Hy;function Vy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Vy,Wy=Ki,Xy=Yi,Ky="[object AsyncFunction]",Yy="[object Function]",Zy="[object GeneratorFunction]",Qy="[object Proxy]";function Jy(e){if(!Xy(e))return!1;var t=Wy(e);return t==Yy||t==Zy||t==Ky||t==Qy}var _c=Jy,t0=Mr,e0=t0["__core-js_shared__"],r0=e0,Ha=r0,bc=function(){var e=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function n0(e){return!!bc&&bc in e}var i0=n0,s0=Function.prototype,o0=s0.toString;function a0(e){if(e!=null){try{return o0.call(e)}catch{}try{return e+""}catch{}}return""}var xc=a0,l0=_c,u0=i0,f0=Yi,c0=xc,h0=/[\\^$.*+?()[\]{}|]/g,d0=/^\[object .+?Constructor\]$/,p0=Function.prototype,v0=Object.prototype,g0=p0.toString,m0=v0.hasOwnProperty,y0=RegExp("^"+g0.call(m0).replace(h0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _0(e){if(!f0(e)||u0(e))return!1;var t=l0(e)?y0:d0;return t.test(c0(e))}var b0=_0;function x0(e,t){return e==null?void 0:e[t]}var w0=x0,T0=b0,E0=w0;function A0(e,t){var r=E0(e,t);return T0(r)?r:void 0}var ei=A0,S0=ei,O0=Mr,C0=S0(O0,"DataView"),R0=C0,I0=ei,P0=Mr,N0=I0(P0,"Map"),Va=N0,M0=ei,k0=Mr,L0=M0(k0,"Promise"),F0=L0,B0=ei,D0=Mr,U0=B0(D0,"Set"),$0=U0,G0=ei,j0=Mr,q0=G0(j0,"WeakMap"),z0=q0,Wa=R0,Xa=Va,Ka=F0,Ya=$0,Za=z0,wc=Ki,ri=xc,Tc="[object Map]",H0="[object Object]",Ec="[object Promise]",Ac="[object Set]",Sc="[object WeakMap]",Oc="[object DataView]",V0=ri(Wa),W0=ri(Xa),X0=ri(Ka),K0=ri(Ya),Y0=ri(Za),An=wc;(Wa&&An(new Wa(new ArrayBuffer(1)))!=Oc||Xa&&An(new Xa)!=Tc||Ka&&An(Ka.resolve())!=Ec||Ya&&An(new Ya)!=Ac||Za&&An(new Za)!=Sc)&&(An=function(e){var t=wc(e),r=t==H0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case V0:return Oc;case W0:return Tc;case X0:return Ec;case K0:return Ac;case Y0:return Sc}return t});var Cc=An;function Z0(e){return e!=null&&typeof e=="object"}var Zi=Z0,Q0=Ki,J0=Zi,t1="[object Arguments]";function e1(e){return J0(e)&&Q0(e)==t1}var r1=e1,Rc=r1,n1=Zi,Ic=Object.prototype,i1=Ic.hasOwnProperty,s1=Ic.propertyIsEnumerable,o1=Rc(function(){return arguments}())?Rc:function(e){return n1(e)&&i1.call(e,"callee")&&!s1.call(e,"callee")},Qa=o1,a1=Array.isArray,kr=a1,l1=9007199254740991;function u1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=l1}var Ja=u1,f1=_c,c1=Ja;function h1(e){return e!=null&&c1(e.length)&&!f1(e)}var qs=h1,zs={exports:{}};function d1(){return!1}var p1=d1;zs.exports,function(e,t){var r=Mr,n=p1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(zs,zs.exports);var tl=zs.exports,v1=Ki,g1=Ja,m1=Zi,y1="[object Arguments]",_1="[object Array]",b1="[object Boolean]",x1="[object Date]",w1="[object Error]",T1="[object Function]",E1="[object Map]",A1="[object Number]",S1="[object Object]",O1="[object RegExp]",C1="[object Set]",R1="[object String]",I1="[object WeakMap]",P1="[object ArrayBuffer]",N1="[object DataView]",M1="[object Float32Array]",k1="[object Float64Array]",L1="[object Int8Array]",F1="[object Int16Array]",B1="[object Int32Array]",D1="[object Uint8Array]",U1="[object Uint8ClampedArray]",$1="[object Uint16Array]",G1="[object Uint32Array]",ae={};ae[M1]=ae[k1]=ae[L1]=ae[F1]=ae[B1]=ae[D1]=ae[U1]=ae[$1]=ae[G1]=!0,ae[y1]=ae[_1]=ae[P1]=ae[b1]=ae[N1]=ae[x1]=ae[w1]=ae[T1]=ae[E1]=ae[A1]=ae[S1]=ae[O1]=ae[C1]=ae[R1]=ae[I1]=!1;function j1(e){return m1(e)&&g1(e.length)&&!!ae[v1(e)]}var q1=j1;function z1(e){return function(t){return e(t)}}var H1=z1,Hs={exports:{}};Hs.exports,function(e,t){var r=pc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(Hs,Hs.exports);var V1=Hs.exports,W1=q1,X1=H1,Pc=V1,Nc=Pc&&Pc.isTypedArray,K1=Nc?X1(Nc):W1,el=K1,Y1=dc,Z1=Cc,Q1=Qa,J1=kr,t_=qs,e_=tl,r_=hc,n_=el,i_="[object Map]",s_="[object Set]",o_=Object.prototype,a_=o_.hasOwnProperty;function l_(e){if(e==null)return!0;if(t_(e)&&(J1(e)||typeof e=="string"||typeof e.splice=="function"||e_(e)||n_(e)||Q1(e)))return!e.length;var t=Z1(e);if(t==i_||t==s_)return!e.size;if(r_(e))return!Y1(e).length;for(var r in e)if(a_.call(e,r))return!1;return!0}var u_=l_;const Qi=En(u_),f_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(!1),[i,o]=_t.useState(!1),[l,u]=_t.useState(!1),[f,h]=_t.useState(e.initialAlpha),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(null),m=_t.useRef(e.initialAlpha),{tl:y}=_t.useContext(ti),{uniqueId:b,startAt:_,endAt:w,initialAlpha:T,transformation:{x,y:A,width:I,height:S,scale:O=[1,1],rotation:L=0,animation:R,effect:C},applyTransformer:P,disabled:M,ignoreTlForVideo:F,pointerdown:q,pointerout:Q,pointerover:z,isText:rt,isDragging:W}=e;mr(ke.COMPLETE,()=>{d.current&&(m.current=T,h(T))}),Et.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Et.useEffect(()=>{d.current&&n(!0)},[]);const U=Et.useCallback(()=>{u(!0),z&&z()},[]),k=()=>{console.log("reverse complete"),m.current=T,h(T)},j=Z=>{m.current=Z.alpha,h(Z.alpha)},G=Z=>{m.current=Z.alpha,h(Z.alpha)};Et.useEffect(()=>{let Z=Te.context(()=>{});if(d.current&&y.current){const J={duration:Number(w)-Number(_)},nt={onStart:j,onReverseComplete:k,onStartParams:[{alpha:1}]},at={onComplete:G,onCompleteParams:[{alpha:0}]},dt=py(R||"None");Z=Te.context(()=>{var mt,xt;Qi(dt.from)?Qi(dt.to)?Qi(dt.fromTo)?y.current.to(d.current,{alpha:1,duration:.1,...nt},_).to(d.current,{alpha:0,duration:.1,...at},Number(w)-.09):y.current.fromTo(d.current,(mt=dt.fromTo)==null?void 0:mt.from,{...(xt=dt.fromTo)==null?void 0:xt.to,...nt},_).to(d.current,{alpha:0,duration:.1,...at},Number(w)-.09):y.current.to(d.current,{alpha:1,duration:.1,...dt.to,...nt},_).to(d.current,{alpha:0,duration:.1,...at},Number(w)-.09):y.current.from(d.current,{...dt.from},_).to(d.current,{alpha:1,duration:.1,...nt},_).to(d.current,{alpha:0,duration:.1,...at},Number(w)-.09),F||y.current.from(d.current,{...J},_)})}return()=>{y.current&&(y.current.progress(0).kill(),Te.killTweensOf(y.current)),Z.revert()}},[R,_,w,F]);const K=Et.useCallback(()=>{o(!0)},[]),X=Et.useCallback(Z=>{console.log("changeEnd",Z),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(Z)),o(!1)},[]),$=xe.withFilters(xe.Container,{matrix:on.filters.ColorMatrixFilter});console.log("abstraction props",e),console.log("alphaRef",b,m.current,f,T);const V=m.current||f;return ee.jsxs(xe.Container,{ref:p,children:[ee.jsx(xe.Container,{ref:d,alpha:V,position:[x,A],pivot:[x,A],width:I,height:S,scale:O,rotation:L,...!M&&!i&&!W&&V>0&&{interactive:!0,buttonMode:!0,pointerdown:q,pointerover:z,pointerout:Q},children:ee.jsx($,{scale:1,apply:({matrix:Z})=>{C===Qn.BlackAndWhite?Z.desaturate():C===Qn.Sepia?Z.sepia():C===Qn.RetroVintage||C===Qn.NightVision?Z.negative():C===Qn.Normal&&Z.reset()},matrix:{enabled:!0,matrix:f_},children:ee.jsx(xe.Container,{ref:c,children:e.children})})}),P&&ee.jsx(dy,{pixiTransformerRef:v,imageRef:d,isMounted:r,transformCommit:X,transformChange:K,mouseoverEvent:U,uniqueId:b,isText:rt})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Sn=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Sn||{}),Mc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Mc||{}),rl=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(rl||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),yt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(yt||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Vt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Vt||{}),nl=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(nl||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Ji=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Ji||{}),On=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(On||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),Cn=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Cn||{}),il=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(il||{}),or=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(or||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),we=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(we||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var sl=/iPhone/i,kc=/iPod/i,Lc=/iPad/i,Fc=/\biOS-universal(?:.+)Mac\b/i,ol=/\bAndroid(?:.+)Mobile\b/i,Bc=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Vs=/Silk/i,zr=/Windows Phone/i,Dc=/\bWindows(?:.+)ARM\b/i,Uc=/BlackBerry/i,$c=/BB10/i,Gc=/Opera Mini/i,jc=/\b(CriOS|Chrome)(?:.+)Mobile/i,qc=/Mobile(?:.+)Firefox\b/i,zc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function c_(e){return function(t){return t.test(e)}}function Hc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=c_(r),o={apple:{phone:i(sl)&&!i(zr),ipod:i(kc),tablet:!i(sl)&&(i(Lc)||zc(t))&&!i(zr),universal:i(Fc),device:(i(sl)||i(kc)||i(Lc)||i(Fc)||zc(t))&&!i(zr)},amazon:{phone:i(si),tablet:!i(si)&&i(Vs),device:i(si)||i(Vs)},android:{phone:!i(zr)&&i(si)||!i(zr)&&i(ol),tablet:!i(zr)&&!i(si)&&!i(ol)&&(i(Vs)||i(Bc)),device:!i(zr)&&(i(si)||i(Vs)||i(ol)||i(Bc))||i(/\bokhttp\b/i)},windows:{phone:i(zr),tablet:i(Dc),device:i(zr)||i(Dc)},other:{blackberry:i(Uc),blackberry10:i($c),opera:i(Gc),firefox:i(qc),chrome:i(jc),device:i(Uc)||i($c)||i(Gc)||i(qc)||i(jc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Hc.default??Hc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Vc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var y=r?r+h:h;if(!this._events[y])return!1;var b=this._events[y],_=arguments.length,w,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),_){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,m),!0}for(T=1,w=new Array(_-1);T<_;T++)w[T-1]=arguments[T];b.fn.apply(b.context,w)}else{var x=b.length,A;for(T=0;T<x;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),_){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,d);break;case 3:b[T].fn.call(b[T].context,d,p);break;case 4:b[T].fn.call(b[T].context,d,p,c);break;default:if(!w)for(A=1,w=new Array(_-1);A<_;A++)w[A-1]=arguments[A];b[T].fn.apply(b[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var y=0,b=[],_=m.length;y<_;y++)(m[y].fn!==d||c&&!m[y].once||p&&m[y].context!==p)&&b.push(m[y]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Vc);var h_=Vc.exports;const Ws=En(h_);var al={exports:{}};al.exports=Xs,al.exports.default=Xs;function Xs(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Wc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=m_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return ts(o,l,r,u,f,v,0),l}function Wc(e,t,r,n,i){var o,l;if(i===fl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Yc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Yc(o,e[o],e[o+1],l);return l&&Ks(l,l.next)&&(rs(l),l=l.next),l}function Rn(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Ks(r,r.next)||de(r.prev,r,r.next)===0)){if(rs(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function ts(e,t,r,n,i,o,l){if(e){!l&&o&&w_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?p_(e,n,i,o):d_(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),rs(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=v_(Rn(e),t,r),ts(e,t,r,n,i,o,2)):l===2&&g_(e,t,r,n,i,o):ts(Rn(e),t,r,n,i,o,1);break}}}}function d_(e){var t=e.prev,r=e,n=e.next;if(de(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&de(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function p_(e,t,r,n){var i=e.prev,o=e,l=e.next;if(de(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,y=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,_=ll(v,m,t,r,n),w=ll(y,b,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=_&&x&&x.z<=w;){if(T.x>=v&&T.x<=y&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=y&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=_;){if(T.x>=v&&T.x<=y&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=y&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function v_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Ks(i,o)&&Xc(i,n,n.next,o)&&es(i,o)&&es(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),rs(n),rs(n.next),n=e=o),n=n.next}while(n!==e);return Rn(n)}function g_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A_(l,u)){var f=Kc(l,u);l=Rn(l,l.next),f=Rn(f,f.next),ts(l,t,r,n,i,o,0),ts(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function m_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Wc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(E_(h));for(i.sort(y_),o=0;o<i.length;o++)r=__(i[o],r);return r}function y_(e,t){return e.x-t.x}function __(e,t){var r=b_(e,t);if(!r)return t;var n=Kc(r,e);return Rn(n,n.next),Rn(r,r.next)}function b_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),es(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&x_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function x_(e,t){return de(e.prev,e,t.prev)<0&&de(t.next,e,e.next)<0}function w_(e,t,r,n){var i=e;do i.z===0&&(i.z=ll(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,T_(i)}function T_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function ll(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function E_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function A_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!S_(e,t)&&(es(e,t)&&es(t,e)&&O_(e,t)&&(de(e.prev,e,t.prev)||de(e,t.prev,t))||Ks(e,t)&&de(e.prev,e,e.next)>0&&de(t.prev,t,t.next)>0)}function de(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Ks(e,t){return e.x===t.x&&e.y===t.y}function Xc(e,t,r,n){var i=Zs(de(e,t,r)),o=Zs(de(e,t,n)),l=Zs(de(r,n,e)),u=Zs(de(r,n,t));return!!(i!==o&&l!==u||i===0&&Ys(e,r,t)||o===0&&Ys(e,n,t)||l===0&&Ys(r,e,n)||u===0&&Ys(r,t,n))}function Ys(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Zs(e){return e>0?1:e<0?-1:0}function S_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Xc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function es(e,t){return de(e.prev,e,e.next)<0?de(e,t,e.next)>=0&&de(e,e.prev,t)>=0:de(e,t,e.prev)<0||de(e,e.next,t)<0}function O_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Kc(e,t){var r=new ul(e.i,e.x,e.y),n=new ul(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Yc(e,t,r,n){var i=new ul(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function rs(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function ul(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Xs.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(fl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(fl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function fl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Xs.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var C_=al.exports;const R_=En(C_);var Qs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Qs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,y="-",b=/^xn--/,_=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,A=Math.floor,I=String.fromCharCode,S;function O(U){throw new RangeError(T[U])}function L(U,k){for(var j=U.length,G=[];j--;)G[j]=k(U[j]);return G}function R(U,k){var j=U.split("@"),G="";j.length>1&&(G=j[0]+"@",U=j[1]),U=U.replace(w,".");var K=U.split("."),X=L(K,k).join(".");return G+X}function C(U){for(var k=[],j=0,G=U.length,K,X;j<G;)K=U.charCodeAt(j++),K>=55296&&K<=56319&&j<G?(X=U.charCodeAt(j++),(X&64512)==56320?k.push(((K&1023)<<10)+(X&1023)+65536):(k.push(K),j--)):k.push(K);return k}function P(U){return L(U,function(k){var j="";return k>65535&&(k-=65536,j+=I(k>>>10&1023|55296),k=56320|k&1023),j+=I(k),j}).join("")}function M(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:f}function F(U,k){return U+22+75*(U<26)-((k!=0)<<5)}function q(U,k,j){var G=0;for(U=j?A(U/c):U>>1,U+=A(U/k);U>x*d>>1;G+=f)U=A(U/x);return A(G+(x+1)*U/(U+p))}function Q(U){var k=[],j=U.length,G,K=0,X=m,$=v,V,Z,J,nt,at,dt,mt,xt,Ct;for(V=U.lastIndexOf(y),V<0&&(V=0),Z=0;Z<V;++Z)U.charCodeAt(Z)>=128&&O("not-basic"),k.push(U.charCodeAt(Z));for(J=V>0?V+1:0;J<j;){for(nt=K,at=1,dt=f;J>=j&&O("invalid-input"),mt=M(U.charCodeAt(J++)),(mt>=f||mt>A((u-K)/at))&&O("overflow"),K+=mt*at,xt=dt<=$?h:dt>=$+d?d:dt-$,!(mt<xt);dt+=f)Ct=f-xt,at>A(u/Ct)&&O("overflow"),at*=Ct;G=k.length+1,$=q(K-nt,G,nt==0),A(K/G)>u-X&&O("overflow"),X+=A(K/G),K%=G,k.splice(K++,0,X)}return P(k)}function z(U){var k,j,G,K,X,$,V,Z,J,nt,at,dt=[],mt,xt,Ct,fe;for(U=C(U),mt=U.length,k=m,j=0,X=v,$=0;$<mt;++$)at=U[$],at<128&&dt.push(I(at));for(G=K=dt.length,K&&dt.push(y);G<mt;){for(V=u,$=0;$<mt;++$)at=U[$],at>=k&&at<V&&(V=at);for(xt=G+1,V-k>A((u-j)/xt)&&O("overflow"),j+=(V-k)*xt,k=V,$=0;$<mt;++$)if(at=U[$],at<k&&++j>u&&O("overflow"),at==k){for(Z=j,J=f;nt=J<=X?h:J>=X+d?d:J-X,!(Z<nt);J+=f)fe=Z-nt,Ct=f-nt,dt.push(I(F(nt+fe%Ct,0))),Z=A(fe/Ct);dt.push(I(F(Z,0))),X=q(j,xt,G==K),j=0,++G}++j,++k}return dt.join("")}function rt(U){return R(U,function(k){return b.test(k)?Q(k.slice(4).toLowerCase()):k})}function W(U){return R(U,function(k){return _.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:Q,encode:z,toASCII:W,toUnicode:rt},n&&i)if(e.exports==n)i.exports=l;else for(S in l)l.hasOwnProperty(S)&&(n[S]=l[S]);else r.punycode=l})(Ye)}(Qs,Qs.exports);var I_=Qs.exports,P_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},Zc=typeof Symbol<"u"&&Symbol,N_=P_,M_=function(){return typeof Zc!="function"||typeof Symbol!="function"||typeof Zc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:N_()},Qc={foo:{}},k_=Object,L_=function(){return{__proto__:Qc}.foo===Qc.foo&&!({__proto__:null}instanceof k_)},F_="Function.prototype.bind called on incompatible ",cl=Array.prototype.slice,B_=Object.prototype.toString,D_="[object Function]",U_=function(t){var r=this;if(typeof r!="function"||B_.call(r)!==D_)throw new TypeError(F_+r);for(var n=cl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(cl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(cl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},$_=U_,hl=Function.prototype.bind||$_,G_=hl,j_=G_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,Jc=Function,ui=TypeError,dl=function(e){try{return Jc('"use strict"; return ('+e+").constructor;")()}catch{}},In=Object.getOwnPropertyDescriptor;if(In)try{In({},"")}catch{In=null}var pl=function(){throw new ui},q_=In?function(){try{return arguments.callee,pl}catch{try{return In(arguments,"callee").get}catch{return pl}}}():pl,fi=M_(),z_=L_(),Oe=Object.getPrototypeOf||(z_?function(e){return e.__proto__}:null),ci={},H_=typeof Uint8Array>"u"||!Oe?$t:Oe(Uint8Array),Pn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Oe?Oe([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":Jc,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Oe?Oe(Oe([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Oe?$t:Oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Oe?$t:Oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Oe?Oe(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":q_,"%TypedArray%":H_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Oe)try{null.error}catch(e){var V_=Oe(Oe(e));Pn["%Error.prototype%"]=V_}var W_=function e(t){var r;if(t==="%AsyncFunction%")r=dl("async function () {}");else if(t==="%GeneratorFunction%")r=dl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=dl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Oe&&(r=Oe(i.prototype))}return Pn[t]=r,r},th={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ns=hl,Js=j_,X_=ns.call(Function.call,Array.prototype.concat),K_=ns.call(Function.apply,Array.prototype.splice),eh=ns.call(Function.call,String.prototype.replace),to=ns.call(Function.call,String.prototype.slice),Y_=ns.call(Function.call,RegExp.prototype.exec),Z_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q_=/\\(\\)?/g,J_=function(t){var r=to(t,0,1),n=to(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return eh(t,Z_,function(o,l,u,f){i[i.length]=u?eh(f,Q_,"$1"):l||o}),i},tb=function(t,r){var n=t,i;if(Js(th,n)&&(i=th[n],n="%"+i[0]+"%"),Js(Pn,n)){var o=Pn[n];if(o===ci&&(o=W_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},vl=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(Y_(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=J_(t),i=n.length>0?n[0]:"",o=tb("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],K_(n,X_([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=to(c,0,1),m=to(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Js(Pn,l))u=Pn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(In&&d+1>=n.length){var y=In(u,c);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?u=y.get:u=u[c]}else p=Js(u,c),u=u[c];p&&!f&&(Pn[l]=u)}}return u},rh={exports:{}};(function(e){var t=hl,r=vl,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(rh);var eb=rh.exports,nh=vl,ih=eb,rb=ih(nh("String.prototype.indexOf")),nb=function(t,r){var n=nh(t,!!r);return typeof n=="function"&&rb(t,".prototype.")>-1?ih(n):n};const ib=iy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gl=typeof Map=="function"&&Map.prototype,ml=Object.getOwnPropertyDescriptor&&gl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,eo=gl&&ml&&typeof ml.get=="function"?ml.get:null,sh=gl&&Map.prototype.forEach,yl=typeof Set=="function"&&Set.prototype,_l=Object.getOwnPropertyDescriptor&&yl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ro=yl&&_l&&typeof _l.get=="function"?_l.get:null,oh=yl&&Set.prototype.forEach,sb=typeof WeakMap=="function"&&WeakMap.prototype,is=sb?WeakMap.prototype.has:null,ob=typeof WeakSet=="function"&&WeakSet.prototype,ss=ob?WeakSet.prototype.has:null,ab=typeof WeakRef=="function"&&WeakRef.prototype,ah=ab?WeakRef.prototype.deref:null,lb=Boolean.prototype.valueOf,ub=Object.prototype.toString,fb=Function.prototype.toString,cb=String.prototype.match,bl=String.prototype.slice,un=String.prototype.replace,hb=String.prototype.toUpperCase,lh=String.prototype.toLowerCase,uh=RegExp.prototype.test,fh=Array.prototype.concat,Br=Array.prototype.join,db=Array.prototype.slice,ch=Math.floor,xl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,wl=Object.getOwnPropertySymbols,Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,hh=Object.prototype.propertyIsEnumerable,dh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ph(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||uh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ch(-e):ch(e);if(n!==e){var i=String(n),o=bl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var El=ib,vh=El.custom,gh=_h(vh)?vh:null,pb=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return xh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?ph(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?ph(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Al(t)?"[Array]":"[Object]";var p=Nb(o,n);if(typeof i>"u")i=[];else if(bh(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=db.call(i),i.push(F)),q){var Q={depth:o.depth};return fn(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),e(M,Q,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!yh(t)){var v=Tb(t),m=no(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(_h(t)){var y=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tl.call(t);return typeof t=="object"&&!hi?os(y):y}if(Rb(t)){for(var b="<"+lh.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)b+=" "+_[w].name+"="+mh(vb(_[w].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+lh.call(String(t.nodeName))+">",b}if(Al(t)){if(t.length===0)return"[]";var T=no(t,c);return p&&!Pb(T)?"["+Ol(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(mb(t)){var x=no(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!hh.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(fh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(gh&&typeof t[gh]=="function"&&El)return El(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Eb(t)){var A=[];return sh&&sh.call(t,function(M,F){A.push(c(F,t,!0)+" => "+c(M,t))}),wh("Map",eo.call(t),A,p)}if(Ob(t)){var I=[];return oh&&oh.call(t,function(M){I.push(c(M,t))}),wh("Set",ro.call(t),I,p)}if(Ab(t))return Sl("WeakMap");if(Cb(t))return Sl("WeakSet");if(Sb(t))return Sl("WeakRef");if(_b(t))return os(c(Number(t)));if(xb(t))return os(c(xl.call(t)));if(bb(t))return os(lb.call(t));if(yb(t))return os(c(String(t)));if(!gb(t)&&!yh(t)){var S=no(t,c),O=dh?dh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?bl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(fh.call([],R||[],L||[]),": ")+"] ":"");return S.length===0?P+"{}":p?P+"{"+Ol(S,p)+"}":P+"{ "+Br.call(S,", ")+" }"}return String(t)};function mh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function vb(e){return un.call(String(e),/"/g,"&quot;")}function Al(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function gb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function yh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function mb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function yb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function _b(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function bb(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function _h(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Tl)return!1;try{return Tl.call(e),!0}catch{}return!1}function xb(e){if(!e||typeof e!="object"||!xl)return!1;try{return xl.call(e),!0}catch{}return!1}var wb=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return wb.call(e,t)}function cn(e){return ub.call(e)}function Tb(e){if(e.name)return e.name;var t=cb.call(fb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Eb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{ro.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ab(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ss.call(e,ss)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Sb(e){if(!ah||!e||typeof e!="object")return!1;try{return ah.call(e),!0}catch{}return!1}function Ob(e){if(!ro||!e||typeof e!="object")return!1;try{ro.call(e);try{eo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Cb(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e,ss);try{is.call(e,is)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Rb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xh(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xh(bl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ib);return mh(i,"single",t)}function Ib(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+hb.call(t.toString(16))}function os(e){return"Object("+e+")"}function Sl(e){return e+" { ? }"}function wh(e,t,r,n){var i=n?Ol(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Pb(e){for(var t=0;t<e.length;t++)if(bh(e[t],`
9
+ */var sy=_t,oy=Symbol.for("react.element"),ay=Symbol.for("react.fragment"),ly=Object.prototype.hasOwnProperty,uy=sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fy={key:!0,ref:!0,__self:!0,__source:!0};function uc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)ly.call(t,n)&&!fy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:oy,type:e,key:o,ref:l,props:i,_owner:uy.current}}Gs.Fragment=ay,Gs.jsx=uc,Gs.jsxs=uc,lc.exports=Gs;var ee=lc.exports,Qn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Qn||{});let fc;function cc(){return fc=document.body,fc}function mr(e,t,r){let n;return _t.useEffect(()=>{n=n||cc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Jn(e,t){const r=cc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function cy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const ti=Et.createContext({}),ke={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END"},hy=({children:e})=>{const[t,r]=_t.useState(!1),n=_t.useRef(),i=_t.useRef(),o=_t.useRef(.001);_t.useLayoutEffect(()=>(i.current=Te.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&Te.killTweensOf(n.current),n.current=Te.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),Te.killTweensOf(n.current)),i.current.revert()}),[]);const l=_t.useCallback(()=>{if(n.current){let b=n.current.time();o.current=b}},[]);_t.useEffect(()=>{if(n.current){const y=n.current;y.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){y.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){y.pause(),y.revert(),Jn(ke.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=_t.useCallback(()=>{n.current&&n.current.revert()},[]),f=_t.useCallback(()=>{n.current&&n.current.restart()},[]),h=_t.useCallback(()=>{if(n.current){const y=n.current;y.repeat(1),y.restart()}},[]),d=_t.useCallback(y=>{n.current&&n.current.seek(y)},[]),p=_t.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=_t.useCallback(()=>{const y=n.current;return y?y.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Jn(ke.PAUSE))},m=()=>{n.current&&(n.current.resume(),Jn(ke.RESUME))};return mr(ke.SEEK_START,()=>{r(!0)}),mr(ke.SCRUBBER_PLAY,()=>{m()}),mr(ke.SCRUBBER_PAUSE,()=>{v()}),mr(ke.SCRUBBER_SEEK,y=>{d(y)}),mr(ke.SEEK_END,()=>{r(!1)}),mr(ke.SCRUBBER_PROGRESS_UPDATE,y=>{}),ee.jsx(ti.Provider,{value:{gsapCtx:i,tl:n,handlePlay:m,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:o,isDragging:t,getTimelineDuration:c},children:e})},dy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,uniqueId:l="",isText:u=!1})=>{const f=on.utils.string2hex("#F3C409"),h=on.utils.string2hex("#F3C409"),d=Et.useRef({isDragging:!1}),p=Et.useCallback(()=>{o&&!d.current.isDragging&&o(!0)},[o]),c=Et.useCallback(()=>{o&&!d.current.isDragging&&o(!1)},[o]),v=Et.useCallback(()=>{d.current.isDragging=!0},[]),m=Et.useCallback(b=>{d.current.isDragging=!0,i&&i(b),Jn(ke.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),y=Et.useCallback(()=>{if(t.current===null)return;const b=t.current.x,_=t.current.y,w=t.current.width,T=t.current.height,x=t.current.rotation,A=[t.current.scale.x,t.current.scale.y],I=A[0]<0?-1:1,S=A[1]<0?-1:1;n&&(n({uniqueId:l,transformation:{x:Math.round(b),y:Math.round(_),width:Math.round(Math.max(5,w)),height:Math.round(Math.max(5,T)),rotation:x,scale:u?A:[I,S]}}),Jn(ke.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),d.current.isDragging=!1},[n]);return Et.useEffect(()=>(e.current&&(e.current.on("mouseover",p),e.current.on("mouseout",c),e.current.on("mousedown",v)),()=>{e.current&&(e.current.off("mouseover",p),e.current.off("mouseout",c),e.current.off("mousedown",v))}),[]),ee.jsx(ry.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:m,transformcommit:y})},py=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var vy=Object.prototype;function gy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||vy;return e===r}var hc=gy;function my(e,t){return function(r){return e(t(r))}}var yy=my,_y=yy,by=_y(Object.keys,Object),xy=by,wy=hc,Ty=xy,Ey=Object.prototype,Ay=Ey.hasOwnProperty;function Sy(e){if(!wy(e))return Ty(e);var t=[];for(var r in Object(e))Ay.call(e,r)&&r!="constructor"&&t.push(r);return t}var dc=Sy,Oy=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,pc=Oy,Cy=pc,Ry=typeof self=="object"&&self&&self.Object===Object&&self,Iy=Cy||Ry||Function("return this")(),Mr=Iy,Py=Mr,Ny=Py.Symbol,js=Ny,vc=js,gc=Object.prototype,My=gc.hasOwnProperty,ky=gc.toString,Xi=vc?vc.toStringTag:void 0;function Ly(e){var t=My.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=ky.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var Fy=Ly,By=Object.prototype,Dy=By.toString;function Uy(e){return Dy.call(e)}var $y=Uy,mc=js,Gy=Fy,jy=$y,qy="[object Null]",zy="[object Undefined]",yc=mc?mc.toStringTag:void 0;function Hy(e){return e==null?e===void 0?zy:qy:yc&&yc in Object(e)?Gy(e):jy(e)}var Ki=Hy;function Vy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Vy,Wy=Ki,Xy=Yi,Ky="[object AsyncFunction]",Yy="[object Function]",Zy="[object GeneratorFunction]",Qy="[object Proxy]";function Jy(e){if(!Xy(e))return!1;var t=Wy(e);return t==Yy||t==Zy||t==Ky||t==Qy}var _c=Jy,t0=Mr,e0=t0["__core-js_shared__"],r0=e0,Ha=r0,bc=function(){var e=/[^.]+$/.exec(Ha&&Ha.keys&&Ha.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function n0(e){return!!bc&&bc in e}var i0=n0,s0=Function.prototype,o0=s0.toString;function a0(e){if(e!=null){try{return o0.call(e)}catch{}try{return e+""}catch{}}return""}var xc=a0,l0=_c,u0=i0,f0=Yi,c0=xc,h0=/[\\^$.*+?()[\]{}|]/g,d0=/^\[object .+?Constructor\]$/,p0=Function.prototype,v0=Object.prototype,g0=p0.toString,m0=v0.hasOwnProperty,y0=RegExp("^"+g0.call(m0).replace(h0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _0(e){if(!f0(e)||u0(e))return!1;var t=l0(e)?y0:d0;return t.test(c0(e))}var b0=_0;function x0(e,t){return e==null?void 0:e[t]}var w0=x0,T0=b0,E0=w0;function A0(e,t){var r=E0(e,t);return T0(r)?r:void 0}var ei=A0,S0=ei,O0=Mr,C0=S0(O0,"DataView"),R0=C0,I0=ei,P0=Mr,N0=I0(P0,"Map"),Va=N0,M0=ei,k0=Mr,L0=M0(k0,"Promise"),F0=L0,B0=ei,D0=Mr,U0=B0(D0,"Set"),$0=U0,G0=ei,j0=Mr,q0=G0(j0,"WeakMap"),z0=q0,Wa=R0,Xa=Va,Ka=F0,Ya=$0,Za=z0,wc=Ki,ri=xc,Tc="[object Map]",H0="[object Object]",Ec="[object Promise]",Ac="[object Set]",Sc="[object WeakMap]",Oc="[object DataView]",V0=ri(Wa),W0=ri(Xa),X0=ri(Ka),K0=ri(Ya),Y0=ri(Za),An=wc;(Wa&&An(new Wa(new ArrayBuffer(1)))!=Oc||Xa&&An(new Xa)!=Tc||Ka&&An(Ka.resolve())!=Ec||Ya&&An(new Ya)!=Ac||Za&&An(new Za)!=Sc)&&(An=function(e){var t=wc(e),r=t==H0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case V0:return Oc;case W0:return Tc;case X0:return Ec;case K0:return Ac;case Y0:return Sc}return t});var Cc=An;function Z0(e){return e!=null&&typeof e=="object"}var Zi=Z0,Q0=Ki,J0=Zi,t1="[object Arguments]";function e1(e){return J0(e)&&Q0(e)==t1}var r1=e1,Rc=r1,n1=Zi,Ic=Object.prototype,i1=Ic.hasOwnProperty,s1=Ic.propertyIsEnumerable,o1=Rc(function(){return arguments}())?Rc:function(e){return n1(e)&&i1.call(e,"callee")&&!s1.call(e,"callee")},Qa=o1,a1=Array.isArray,kr=a1,l1=9007199254740991;function u1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=l1}var Ja=u1,f1=_c,c1=Ja;function h1(e){return e!=null&&c1(e.length)&&!f1(e)}var qs=h1,zs={exports:{}};function d1(){return!1}var p1=d1;zs.exports,function(e,t){var r=Mr,n=p1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(zs,zs.exports);var tl=zs.exports,v1=Ki,g1=Ja,m1=Zi,y1="[object Arguments]",_1="[object Array]",b1="[object Boolean]",x1="[object Date]",w1="[object Error]",T1="[object Function]",E1="[object Map]",A1="[object Number]",S1="[object Object]",O1="[object RegExp]",C1="[object Set]",R1="[object String]",I1="[object WeakMap]",P1="[object ArrayBuffer]",N1="[object DataView]",M1="[object Float32Array]",k1="[object Float64Array]",L1="[object Int8Array]",F1="[object Int16Array]",B1="[object Int32Array]",D1="[object Uint8Array]",U1="[object Uint8ClampedArray]",$1="[object Uint16Array]",G1="[object Uint32Array]",ae={};ae[M1]=ae[k1]=ae[L1]=ae[F1]=ae[B1]=ae[D1]=ae[U1]=ae[$1]=ae[G1]=!0,ae[y1]=ae[_1]=ae[P1]=ae[b1]=ae[N1]=ae[x1]=ae[w1]=ae[T1]=ae[E1]=ae[A1]=ae[S1]=ae[O1]=ae[C1]=ae[R1]=ae[I1]=!1;function j1(e){return m1(e)&&g1(e.length)&&!!ae[v1(e)]}var q1=j1;function z1(e){return function(t){return e(t)}}var H1=z1,Hs={exports:{}};Hs.exports,function(e,t){var r=pc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(Hs,Hs.exports);var V1=Hs.exports,W1=q1,X1=H1,Pc=V1,Nc=Pc&&Pc.isTypedArray,K1=Nc?X1(Nc):W1,el=K1,Y1=dc,Z1=Cc,Q1=Qa,J1=kr,t_=qs,e_=tl,r_=hc,n_=el,i_="[object Map]",s_="[object Set]",o_=Object.prototype,a_=o_.hasOwnProperty;function l_(e){if(e==null)return!0;if(t_(e)&&(J1(e)||typeof e=="string"||typeof e.splice=="function"||e_(e)||n_(e)||Q1(e)))return!e.length;var t=Z1(e);if(t==i_||t==s_)return!e.size;if(r_(e))return!Y1(e).length;for(var r in e)if(a_.call(e,r))return!1;return!0}var u_=l_;const Qi=En(u_),f_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(!1),[i,o]=_t.useState(!1),[l,u]=_t.useState(!1),[f,h]=_t.useState(e.initialAlpha),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(null),m=_t.useRef(e.initialAlpha),{tl:y}=_t.useContext(ti),{uniqueId:b,startAt:_,endAt:w,initialAlpha:T,transformation:{x,y:A,width:I,height:S,scale:O=[1,1],rotation:L=0,animation:R,effect:C},applyTransformer:P,disabled:M,ignoreTlForVideo:F,pointerdown:q,pointerout:Q,pointerover:z,isText:rt,isDragging:W,isGif:D}=e;mr(ke.COMPLETE,()=>{d.current&&(m.current=T,h(T))}),Et.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Et.useEffect(()=>{d.current&&n(!0)},[]);const k=Et.useCallback(()=>{u(!0),z&&z()},[]),j=()=>{console.log("reverse complete"),m.current=T,h(T)},G=Z=>{m.current=Z.alpha,h(Z.alpha)},K=Z=>{m.current=Z.alpha,h(Z.alpha)};Et.useEffect(()=>{let Z=Te.context(()=>{});if(d.current&&y.current){const nt={duration:Number(w)-Number(_)},at={onStart:G,onReverseComplete:j,onStartParams:[{alpha:1}]},dt={onComplete:K,onCompleteParams:[{alpha:0}]},gt=py(R||"None");Z=Te.context(()=>{var xt,At;Qi(gt.from)?Qi(gt.to)?Qi(gt.fromTo)?y.current.to(d.current,{alpha:1,duration:.1,...at},_).to(d.current,{alpha:0,duration:.1,...dt},Number(w)-.09):y.current.fromTo(d.current,(xt=gt.fromTo)==null?void 0:xt.from,{...(At=gt.fromTo)==null?void 0:At.to,...at},_).to(d.current,{alpha:0,duration:.1,...dt},Number(w)-.09):y.current.to(d.current,{alpha:1,duration:.1,...gt.to,...at},_).to(d.current,{alpha:0,duration:.1,...dt},Number(w)-.09):y.current.from(d.current,{...gt.from},_).to(d.current,{alpha:1,duration:.1,...at},_).to(d.current,{alpha:0,duration:.1,...dt},Number(w)-.09),F||y.current.from(d.current,{...nt},_)})}return()=>{y.current&&(y.current.progress(0).kill(),Te.killTweensOf(y.current)),Z.revert()}},[R,_,w,F]);const X=Et.useCallback(()=>{o(!0)},[]),$=Et.useCallback(Z=>{console.log("changeEnd",Z),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(Z)),o(!1)},[]),V=ye.withFilters(ye.Container,{matrix:on.filters.ColorMatrixFilter});console.log("abstraction props",e),console.log("alphaRef",b,m.current,f,T);const J=m.current||f;return ee.jsxs(ye.Container,{ref:p,children:[ee.jsxs(ye.Container,{ref:d,alpha:J,position:[x,A],pivot:[x,A],width:I,height:S,scale:O,rotation:L,...!M&&!i&&!W&&J>0&&{interactive:!0,buttonMode:!0,pointerdown:q,pointerover:z,pointerout:Q},children:[!D&&ee.jsx(V,{scale:1,apply:({matrix:Z})=>{C===Qn.BlackAndWhite?Z.desaturate():C===Qn.Sepia?Z.sepia():C===Qn.RetroVintage||C===Qn.NightVision?Z.negative():C===Qn.Normal&&Z.reset()},matrix:{enabled:!0,matrix:f_},children:ee.jsx(ye.Container,{ref:c,children:e.children})}),D&&ee.jsx(ye.Container,{ref:c,children:e.children})]}),P&&ee.jsx(dy,{pixiTransformerRef:v,imageRef:d,isMounted:r,transformCommit:$,transformChange:X,mouseoverEvent:k,uniqueId:b,isText:rt})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var Sn=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Sn||{}),Mc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Mc||{}),rl=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(rl||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),yt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(yt||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Vt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Vt||{}),nl=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(nl||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Ji=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Ji||{}),On=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(On||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),Cn=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Cn||{}),il=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(il||{}),or=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(or||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),we=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(we||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var sl=/iPhone/i,kc=/iPod/i,Lc=/iPad/i,Fc=/\biOS-universal(?:.+)Mac\b/i,ol=/\bAndroid(?:.+)Mobile\b/i,Bc=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Vs=/Silk/i,zr=/Windows Phone/i,Dc=/\bWindows(?:.+)ARM\b/i,Uc=/BlackBerry/i,$c=/BB10/i,Gc=/Opera Mini/i,jc=/\b(CriOS|Chrome)(?:.+)Mobile/i,qc=/Mobile(?:.+)Firefox\b/i,zc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function c_(e){return function(t){return t.test(e)}}function Hc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=c_(r),o={apple:{phone:i(sl)&&!i(zr),ipod:i(kc),tablet:!i(sl)&&(i(Lc)||zc(t))&&!i(zr),universal:i(Fc),device:(i(sl)||i(kc)||i(Lc)||i(Fc)||zc(t))&&!i(zr)},amazon:{phone:i(si),tablet:!i(si)&&i(Vs),device:i(si)||i(Vs)},android:{phone:!i(zr)&&i(si)||!i(zr)&&i(ol),tablet:!i(zr)&&!i(si)&&!i(ol)&&(i(Vs)||i(Bc)),device:!i(zr)&&(i(si)||i(Vs)||i(ol)||i(Bc))||i(/\bokhttp\b/i)},windows:{phone:i(zr),tablet:i(Dc),device:i(zr)||i(Dc)},other:{blackberry:i(Uc),blackberry10:i($c),opera:i(Gc),firefox:i(qc),chrome:i(jc),device:i(Uc)||i($c)||i(Gc)||i(qc)||i(jc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Hc.default??Hc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Vc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var y=r?r+h:h;if(!this._events[y])return!1;var b=this._events[y],_=arguments.length,w,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),_){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,m),!0}for(T=1,w=new Array(_-1);T<_;T++)w[T-1]=arguments[T];b.fn.apply(b.context,w)}else{var x=b.length,A;for(T=0;T<x;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),_){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,d);break;case 3:b[T].fn.call(b[T].context,d,p);break;case 4:b[T].fn.call(b[T].context,d,p,c);break;default:if(!w)for(A=1,w=new Array(_-1);A<_;A++)w[A-1]=arguments[A];b[T].fn.apply(b[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var y=0,b=[],_=m.length;y<_;y++)(m[y].fn!==d||c&&!m[y].once||p&&m[y].context!==p)&&b.push(m[y]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Vc);var h_=Vc.exports;const Ws=En(h_);var al={exports:{}};al.exports=Xs,al.exports.default=Xs;function Xs(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Wc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=m_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return ts(o,l,r,u,f,v,0),l}function Wc(e,t,r,n,i){var o,l;if(i===fl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Yc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Yc(o,e[o],e[o+1],l);return l&&Ks(l,l.next)&&(rs(l),l=l.next),l}function Rn(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Ks(r,r.next)||de(r.prev,r,r.next)===0)){if(rs(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function ts(e,t,r,n,i,o,l){if(e){!l&&o&&w_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?p_(e,n,i,o):d_(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),rs(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=v_(Rn(e),t,r),ts(e,t,r,n,i,o,2)):l===2&&g_(e,t,r,n,i,o):ts(Rn(e),t,r,n,i,o,1);break}}}}function d_(e){var t=e.prev,r=e,n=e.next;if(de(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&de(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function p_(e,t,r,n){var i=e.prev,o=e,l=e.next;if(de(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,y=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,_=ll(v,m,t,r,n),w=ll(y,b,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=_&&x&&x.z<=w;){if(T.x>=v&&T.x<=y&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=y&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=_;){if(T.x>=v&&T.x<=y&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=y&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function v_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Ks(i,o)&&Xc(i,n,n.next,o)&&es(i,o)&&es(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),rs(n),rs(n.next),n=e=o),n=n.next}while(n!==e);return Rn(n)}function g_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A_(l,u)){var f=Kc(l,u);l=Rn(l,l.next),f=Rn(f,f.next),ts(l,t,r,n,i,o,0),ts(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function m_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Wc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(E_(h));for(i.sort(y_),o=0;o<i.length;o++)r=__(i[o],r);return r}function y_(e,t){return e.x-t.x}function __(e,t){var r=b_(e,t);if(!r)return t;var n=Kc(r,e);return Rn(n,n.next),Rn(r,r.next)}function b_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),es(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&x_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function x_(e,t){return de(e.prev,e,t.prev)<0&&de(t.next,e,e.next)<0}function w_(e,t,r,n){var i=e;do i.z===0&&(i.z=ll(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,T_(i)}function T_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function ll(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function E_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function A_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!S_(e,t)&&(es(e,t)&&es(t,e)&&O_(e,t)&&(de(e.prev,e,t.prev)||de(e,t.prev,t))||Ks(e,t)&&de(e.prev,e,e.next)>0&&de(t.prev,t,t.next)>0)}function de(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Ks(e,t){return e.x===t.x&&e.y===t.y}function Xc(e,t,r,n){var i=Zs(de(e,t,r)),o=Zs(de(e,t,n)),l=Zs(de(r,n,e)),u=Zs(de(r,n,t));return!!(i!==o&&l!==u||i===0&&Ys(e,r,t)||o===0&&Ys(e,n,t)||l===0&&Ys(r,e,n)||u===0&&Ys(r,t,n))}function Ys(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Zs(e){return e>0?1:e<0?-1:0}function S_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Xc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function es(e,t){return de(e.prev,e,e.next)<0?de(e,t,e.next)>=0&&de(e,e.prev,t)>=0:de(e,t,e.prev)<0||de(e,e.next,t)<0}function O_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Kc(e,t){var r=new ul(e.i,e.x,e.y),n=new ul(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Yc(e,t,r,n){var i=new ul(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function rs(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function ul(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Xs.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(fl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(fl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function fl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Xs.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var C_=al.exports;const R_=En(C_);var Qs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Qs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,y="-",b=/^xn--/,_=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,A=Math.floor,I=String.fromCharCode,S;function O(D){throw new RangeError(T[D])}function L(D,k){for(var j=D.length,G=[];j--;)G[j]=k(D[j]);return G}function R(D,k){var j=D.split("@"),G="";j.length>1&&(G=j[0]+"@",D=j[1]),D=D.replace(w,".");var K=D.split("."),X=L(K,k).join(".");return G+X}function C(D){for(var k=[],j=0,G=D.length,K,X;j<G;)K=D.charCodeAt(j++),K>=55296&&K<=56319&&j<G?(X=D.charCodeAt(j++),(X&64512)==56320?k.push(((K&1023)<<10)+(X&1023)+65536):(k.push(K),j--)):k.push(K);return k}function P(D){return L(D,function(k){var j="";return k>65535&&(k-=65536,j+=I(k>>>10&1023|55296),k=56320|k&1023),j+=I(k),j}).join("")}function M(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:f}function F(D,k){return D+22+75*(D<26)-((k!=0)<<5)}function q(D,k,j){var G=0;for(D=j?A(D/c):D>>1,D+=A(D/k);D>x*d>>1;G+=f)D=A(D/x);return A(G+(x+1)*D/(D+p))}function Q(D){var k=[],j=D.length,G,K=0,X=m,$=v,V,J,Z,nt,at,dt,gt,xt,At;for(V=D.lastIndexOf(y),V<0&&(V=0),J=0;J<V;++J)D.charCodeAt(J)>=128&&O("not-basic"),k.push(D.charCodeAt(J));for(Z=V>0?V+1:0;Z<j;){for(nt=K,at=1,dt=f;Z>=j&&O("invalid-input"),gt=M(D.charCodeAt(Z++)),(gt>=f||gt>A((u-K)/at))&&O("overflow"),K+=gt*at,xt=dt<=$?h:dt>=$+d?d:dt-$,!(gt<xt);dt+=f)At=f-xt,at>A(u/At)&&O("overflow"),at*=At;G=k.length+1,$=q(K-nt,G,nt==0),A(K/G)>u-X&&O("overflow"),X+=A(K/G),K%=G,k.splice(K++,0,X)}return P(k)}function z(D){var k,j,G,K,X,$,V,J,Z,nt,at,dt=[],gt,xt,At,fe;for(D=C(D),gt=D.length,k=m,j=0,X=v,$=0;$<gt;++$)at=D[$],at<128&&dt.push(I(at));for(G=K=dt.length,K&&dt.push(y);G<gt;){for(V=u,$=0;$<gt;++$)at=D[$],at>=k&&at<V&&(V=at);for(xt=G+1,V-k>A((u-j)/xt)&&O("overflow"),j+=(V-k)*xt,k=V,$=0;$<gt;++$)if(at=D[$],at<k&&++j>u&&O("overflow"),at==k){for(J=j,Z=f;nt=Z<=X?h:Z>=X+d?d:Z-X,!(J<nt);Z+=f)fe=J-nt,At=f-nt,dt.push(I(F(nt+fe%At,0))),J=A(fe/At);dt.push(I(F(J,0))),X=q(j,xt,G==K),j=0,++G}++j,++k}return dt.join("")}function rt(D){return R(D,function(k){return b.test(k)?Q(k.slice(4).toLowerCase()):k})}function W(D){return R(D,function(k){return _.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:Q,encode:z,toASCII:W,toUnicode:rt},n&&i)if(e.exports==n)i.exports=l;else for(S in l)l.hasOwnProperty(S)&&(n[S]=l[S]);else r.punycode=l})(Ye)}(Qs,Qs.exports);var I_=Qs.exports,P_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},Zc=typeof Symbol<"u"&&Symbol,N_=P_,M_=function(){return typeof Zc!="function"||typeof Symbol!="function"||typeof Zc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:N_()},Qc={foo:{}},k_=Object,L_=function(){return{__proto__:Qc}.foo===Qc.foo&&!({__proto__:null}instanceof k_)},F_="Function.prototype.bind called on incompatible ",cl=Array.prototype.slice,B_=Object.prototype.toString,D_="[object Function]",U_=function(t){var r=this;if(typeof r!="function"||B_.call(r)!==D_)throw new TypeError(F_+r);for(var n=cl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(cl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(cl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},$_=U_,hl=Function.prototype.bind||$_,G_=hl,j_=G_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,Jc=Function,ui=TypeError,dl=function(e){try{return Jc('"use strict"; return ('+e+").constructor;")()}catch{}},In=Object.getOwnPropertyDescriptor;if(In)try{In({},"")}catch{In=null}var pl=function(){throw new ui},q_=In?function(){try{return arguments.callee,pl}catch{try{return In(arguments,"callee").get}catch{return pl}}}():pl,fi=M_(),z_=L_(),Oe=Object.getPrototypeOf||(z_?function(e){return e.__proto__}:null),ci={},H_=typeof Uint8Array>"u"||!Oe?$t:Oe(Uint8Array),Pn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Oe?Oe([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":Jc,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Oe?Oe(Oe([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Oe?$t:Oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Oe?$t:Oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Oe?Oe(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":q_,"%TypedArray%":H_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Oe)try{null.error}catch(e){var V_=Oe(Oe(e));Pn["%Error.prototype%"]=V_}var W_=function e(t){var r;if(t==="%AsyncFunction%")r=dl("async function () {}");else if(t==="%GeneratorFunction%")r=dl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=dl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Oe&&(r=Oe(i.prototype))}return Pn[t]=r,r},th={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ns=hl,Js=j_,X_=ns.call(Function.call,Array.prototype.concat),K_=ns.call(Function.apply,Array.prototype.splice),eh=ns.call(Function.call,String.prototype.replace),to=ns.call(Function.call,String.prototype.slice),Y_=ns.call(Function.call,RegExp.prototype.exec),Z_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Q_=/\\(\\)?/g,J_=function(t){var r=to(t,0,1),n=to(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return eh(t,Z_,function(o,l,u,f){i[i.length]=u?eh(f,Q_,"$1"):l||o}),i},tb=function(t,r){var n=t,i;if(Js(th,n)&&(i=th[n],n="%"+i[0]+"%"),Js(Pn,n)){var o=Pn[n];if(o===ci&&(o=W_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},vl=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(Y_(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=J_(t),i=n.length>0?n[0]:"",o=tb("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],K_(n,X_([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=to(c,0,1),m=to(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Js(Pn,l))u=Pn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(In&&d+1>=n.length){var y=In(u,c);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?u=y.get:u=u[c]}else p=Js(u,c),u=u[c];p&&!f&&(Pn[l]=u)}}return u},rh={exports:{}};(function(e){var t=hl,r=vl,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(rh);var eb=rh.exports,nh=vl,ih=eb,rb=ih(nh("String.prototype.indexOf")),nb=function(t,r){var n=nh(t,!!r);return typeof n=="function"&&rb(t,".prototype.")>-1?ih(n):n};const ib=iy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gl=typeof Map=="function"&&Map.prototype,ml=Object.getOwnPropertyDescriptor&&gl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,eo=gl&&ml&&typeof ml.get=="function"?ml.get:null,sh=gl&&Map.prototype.forEach,yl=typeof Set=="function"&&Set.prototype,_l=Object.getOwnPropertyDescriptor&&yl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ro=yl&&_l&&typeof _l.get=="function"?_l.get:null,oh=yl&&Set.prototype.forEach,sb=typeof WeakMap=="function"&&WeakMap.prototype,is=sb?WeakMap.prototype.has:null,ob=typeof WeakSet=="function"&&WeakSet.prototype,ss=ob?WeakSet.prototype.has:null,ab=typeof WeakRef=="function"&&WeakRef.prototype,ah=ab?WeakRef.prototype.deref:null,lb=Boolean.prototype.valueOf,ub=Object.prototype.toString,fb=Function.prototype.toString,cb=String.prototype.match,bl=String.prototype.slice,un=String.prototype.replace,hb=String.prototype.toUpperCase,lh=String.prototype.toLowerCase,uh=RegExp.prototype.test,fh=Array.prototype.concat,Br=Array.prototype.join,db=Array.prototype.slice,ch=Math.floor,xl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,wl=Object.getOwnPropertySymbols,Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,hh=Object.prototype.propertyIsEnumerable,dh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ph(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||uh.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-ch(-e):ch(e);if(n!==e){var i=String(n),o=bl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var El=ib,vh=El.custom,gh=_h(vh)?vh:null,pb=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return xh(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?ph(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?ph(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Al(t)?"[Array]":"[Object]";var p=Nb(o,n);if(typeof i>"u")i=[];else if(bh(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=db.call(i),i.push(F)),q){var Q={depth:o.depth};return fn(o,"quoteStyle")&&(Q.quoteStyle=o.quoteStyle),e(M,Q,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!yh(t)){var v=Tb(t),m=no(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(_h(t)){var y=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Tl.call(t);return typeof t=="object"&&!hi?os(y):y}if(Rb(t)){for(var b="<"+lh.call(String(t.nodeName)),_=t.attributes||[],w=0;w<_.length;w++)b+=" "+_[w].name+"="+mh(vb(_[w].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+lh.call(String(t.nodeName))+">",b}if(Al(t)){if(t.length===0)return"[]";var T=no(t,c);return p&&!Pb(T)?"["+Ol(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(mb(t)){var x=no(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!hh.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(fh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(gh&&typeof t[gh]=="function"&&El)return El(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Eb(t)){var A=[];return sh&&sh.call(t,function(M,F){A.push(c(F,t,!0)+" => "+c(M,t))}),wh("Map",eo.call(t),A,p)}if(Ob(t)){var I=[];return oh&&oh.call(t,function(M){I.push(c(M,t))}),wh("Set",ro.call(t),I,p)}if(Ab(t))return Sl("WeakMap");if(Cb(t))return Sl("WeakSet");if(Sb(t))return Sl("WeakRef");if(_b(t))return os(c(Number(t)));if(xb(t))return os(c(xl.call(t)));if(bb(t))return os(lb.call(t));if(yb(t))return os(c(String(t)));if(!gb(t)&&!yh(t)){var S=no(t,c),O=dh?dh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?bl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(fh.call([],R||[],L||[]),": ")+"] ":"");return S.length===0?P+"{}":p?P+"{"+Ol(S,p)+"}":P+"{ "+Br.call(S,", ")+" }"}return String(t)};function mh(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function vb(e){return un.call(String(e),/"/g,"&quot;")}function Al(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function gb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function yh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function mb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function yb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function _b(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function bb(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function _h(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Tl)return!1;try{return Tl.call(e),!0}catch{}return!1}function xb(e){if(!e||typeof e!="object"||!xl)return!1;try{return xl.call(e),!0}catch{}return!1}var wb=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return wb.call(e,t)}function cn(e){return ub.call(e)}function Tb(e){if(e.name)return e.name;var t=cb.call(fb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function bh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Eb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{ro.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Ab(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ss.call(e,ss)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Sb(e){if(!ah||!e||typeof e!="object")return!1;try{return ah.call(e),!0}catch{}return!1}function Ob(e){if(!ro||!e||typeof e!="object")return!1;try{ro.call(e);try{eo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Cb(e){if(!ss||!e||typeof e!="object")return!1;try{ss.call(e,ss);try{is.call(e,is)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Rb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function xh(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return xh(bl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Ib);return mh(i,"single",t)}function Ib(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+hb.call(t.toString(16))}function os(e){return"Object("+e+")"}function Sl(e){return e+" { ? }"}function wh(e,t,r,n){var i=n?Ol(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Pb(e){for(var t=0;t<e.length;t++)if(bh(e[t],`
10
10
  `)>=0)return!1;return!0}function Nb(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Br.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Br.call(Array(t+1),r)}}function Ol(e,t){if(e.length===0)return"";var r=`
11
11
  `+t.prev+t.base;return r+Br.call(e,","+r)+`
12
12
  `+t.prev}function no(e,t){var r=Al(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=fn(e,i)?t(e[i],e):""}var o=typeof wl=="function"?wl(e):[],l;if(hi){l={};for(var u=0;u<o.length;u++)l["$"+o[u]]=o[u]}for(var f in e)fn(e,f)&&(r&&String(Number(f))===f&&f<e.length||hi&&l["$"+f]instanceof Symbol||(uh.call(/[^\w$]/,f)?n.push(t(f,e)+": "+t(e[f],e)):n.push(f+": "+t(e[f],e))));if(typeof wl=="function")for(var h=0;h<o.length;h++)hh.call(e,o[h])&&n.push("["+t(o[h])+"]: "+t(e[o[h]],e));return n}var Cl=vl,di=nb,Mb=pb,kb=Cl("%TypeError%"),io=Cl("%WeakMap%",!0),so=Cl("%Map%",!0),Lb=di("WeakMap.prototype.get",!0),Fb=di("WeakMap.prototype.set",!0),Bb=di("WeakMap.prototype.has",!0),Db=di("Map.prototype.get",!0),Ub=di("Map.prototype.set",!0),$b=di("Map.prototype.has",!0),Rl=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Gb=function(e,t){var r=Rl(e,t);return r&&r.value},jb=function(e,t,r){var n=Rl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},qb=function(e,t){return!!Rl(e,t)},zb=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new kb("Side channel does not contain "+Mb(o))},get:function(o){if(io&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Lb(t,o)}else if(so){if(r)return Db(r,o)}else if(n)return Gb(n,o)},has:function(o){if(io&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Bb(t,o)}else if(so){if(r)return $b(r,o)}else if(n)return qb(n,o);return!1},set:function(o,l){io&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new io),Fb(t,o,l)):so?(r||(r=new so),Ub(r,o,l)):(n||(n={key:{},next:null}),jb(n,o,l))}};return i},Hb=String.prototype.replace,Vb=/%20/g,Il={RFC1738:"RFC1738",RFC3986:"RFC3986"},Pl={default:Il.RFC3986,formatters:{RFC1738:function(e){return Hb.call(e,Vb,"+")},RFC3986:function(e){return String(e)}},RFC1738:Il.RFC1738,RFC3986:Il.RFC3986},Wb=Pl,Nl=Object.prototype.hasOwnProperty,Nn=Array.isArray,Dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Xb=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Nn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Th=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},Kb=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Nn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Nl.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Nn(t)&&!Nn(r)&&(i=Th(t,n)),Nn(t)&&Nn(r)?(r.forEach(function(o,l){if(Nl.call(t,l)){var u=t[l];u&&typeof u=="object"&&o&&typeof o=="object"?t[l]=e(u,o,n):t.push(o)}else t[l]=o}),t):Object.keys(r).reduce(function(o,l){var u=r[l];return Nl.call(o,l)?o[l]=e(o[l],u,n):o[l]=u,o},i)},Yb=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},Zb=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Qb=function(t,r,n,i,o){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;++f){var h=l.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Wb.RFC1738&&(h===40||h===41)){u+=l.charAt(f);continue}if(h<128){u=u+Dr[h];continue}if(h<2048){u=u+(Dr[192|h>>6]+Dr[128|h&63]);continue}if(h<55296||h>=57344){u=u+(Dr[224|h>>12]+Dr[128|h>>6&63]+Dr[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|l.charCodeAt(f)&1023),u+=Dr[240|h>>18]+Dr[128|h>>12&63]+Dr[128|h>>6&63]+Dr[128|h&63]}return u},Jb=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],l=o.obj[o.prop],u=Object.keys(l),f=0;f<u.length;++f){var h=u[f],d=l[h];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:l,prop:h}),n.push(d))}return Xb(r),t},tx=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ex=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},rx=function(t,r){return[].concat(t,r)},nx=function(t,r){if(Nn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Eh={arrayToObject:Th,assign:Yb,combine:rx,compact:Jb,decode:Zb,encode:Qb,isBuffer:ex,isRegExp:tx,maybeMap:nx,merge:Kb},Ah=zb,oo=Eh,as=Pl,ix=Object.prototype.hasOwnProperty,Sh={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Hr=Array.isArray,sx=Array.prototype.push,Oh=function(e,t){sx.apply(e,Hr(t)?t:[t])},ox=Date.prototype.toISOString,Ch=as.default,Fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:oo.encode,encodeValuesOnly:!1,format:Ch,formatter:as.formatters[Ch],indices:!1,serializeDate:function(t){return ox.call(t)},skipNulls:!1,strictNullHandling:!1},ax=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ml={},lx=function e(t,r,n,i,o,l,u,f,h,d,p,c,v,m,y,b){for(var _=t,w=b,T=0,x=!1;(w=w.get(Ml))!==void 0&&!x;){var A=w.get(t);if(T+=1,typeof A<"u"){if(A===T)throw new RangeError("Cyclic object value");x=!0}typeof w.get(Ml)>"u"&&(T=0)}if(typeof f=="function"?_=f(r,_):_ instanceof Date?_=p(_):n==="comma"&&Hr(_)&&(_=oo.maybeMap(_,function(Q){return Q instanceof Date?p(Q):Q})),_===null){if(o)return u&&!m?u(r,Fe.encoder,y,"key",c):r;_=""}if(ax(_)||oo.isBuffer(_)){if(u){var I=m?r:u(r,Fe.encoder,y,"key",c);return[v(I)+"="+v(u(_,Fe.encoder,y,"value",c))]}return[v(r)+"="+v(String(_))]}var S=[];if(typeof _>"u")return S;var O;if(n==="comma"&&Hr(_))m&&u&&(_=oo.maybeMap(_,u)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(Hr(f))O=f;else{var L=Object.keys(_);O=h?L.sort(h):L}for(var R=i&&Hr(_)&&_.length===1?r+"[]":r,C=0;C<O.length;++C){var P=O[C],M=typeof P=="object"&&typeof P.value<"u"?P.value:_[P];if(!(l&&M===null)){var F=Hr(_)?typeof n=="function"?n(R,P):R:R+(d?"."+P:"["+P+"]");b.set(t,T);var q=Ah();q.set(Ml,b),Oh(S,e(M,F,n,i,o,l,n==="comma"&&m&&Hr(_)?null:u,f,h,d,p,c,v,m,y,q))}}return S},ux=function(t){if(!t)return Fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Fe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=as.default;if(typeof t.format<"u"){if(!ix.call(as.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=as.formatters[n],o=Fe.filter;return(typeof t.filter=="function"||Hr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Fe.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Fe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Fe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Fe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Fe.encode,encoder:typeof t.encoder=="function"?t.encoder:Fe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Fe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Fe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Fe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Fe.strictNullHandling}},fx=function(e,t){var r=e,n=ux(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Hr(n.filter)&&(o=n.filter,i=o);var l=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in Sh?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var f=Sh[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=Ah(),p=0;p<i.length;++p){var c=i[p];n.skipNulls&&r[c]===null||Oh(l,lx(r[c],c,f,h,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var v=l.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""},pi=Eh,kl=Object.prototype.hasOwnProperty,cx=Array.isArray,Ce={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:pi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},hx=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Rh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},dx="utf8=%26%2310003%3B",px="utf8=%E2%9C%93",vx=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,l=i.split(r.delimiter,o),u=-1,f,h=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===px?h="utf-8":l[f]===dx&&(h="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var d=l[f],p=d.indexOf("]="),c=p===-1?d.indexOf("="):p+1,v,m;c===-1?(v=r.decoder(d,Ce.decoder,h,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(d.slice(0,c),Ce.decoder,h,"key"),m=pi.maybeMap(Rh(d.slice(c+1),r),function(y){return r.decoder(y,Ce.decoder,h,"value")})),m&&r.interpretNumericEntities&&h==="iso-8859-1"&&(m=hx(m)),d.indexOf("[]=")>-1&&(m=cx(m)?[m]:m),kl.call(n,v)?n[v]=pi.combine(n[v],m):n[v]=m}return n},gx=function(e,t,r,n){for(var i=n?t:Rh(t,r),o=e.length-1;o>=0;--o){var l,u=e[o];if(u==="[]"&&r.parseArrays)l=[].concat(i);else{l=r.plainObjects?Object.create(null):{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(f,10);!r.parseArrays&&f===""?l={0:i}:!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=i):f!=="__proto__"&&(l[f]=i)}i=l}return i},mx=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(o),h=f?o.slice(0,f.index):o,d=[];if(h){if(!n.plainObjects&&kl.call(Object.prototype,h)&&!n.allowPrototypes)return;d.push(h)}for(var p=0;n.depth>0&&(f=u.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&kl.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+o.slice(f.index)+"]"),gx(d,r,n,i)}},yx=function(t){if(!t)return Ce;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ce.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ce.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ce.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ce.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ce.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ce.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ce.comma,decoder:typeof t.decoder=="function"?t.decoder:Ce.decoder,delimiter:typeof t.delimiter=="string"||pi.isRegExp(t.delimiter)?t.delimiter:Ce.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ce.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ce.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ce.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ce.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ce.strictNullHandling}},_x=function(e,t){var r=yx(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?vx(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var u=o[l],f=mx(u,n[u],r,typeof e=="string");i=pi.merge(i,f,r)}return r.allowSparse===!0?i:pi.compact(i)},bx=fx,xx=_x,wx=Pl,Tx={formats:wx,parse:xx,stringify:bx},Ex=I_;function yr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Ax=/^([a-z0-9.+-]+:)/i,Sx=/:[0-9]*$/,Ox=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Cx=["<",">",'"',"`"," ","\r",`
@@ -834,7 +834,7 @@ void main(void)
834
834
  vTextureCoord = aTextureCoord;
835
835
  vFilterCoord = vTextureCoord * inputSize.xy / outputFrame.zw;
836
836
  }
837
- `,Un=Un||{};Un.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),i=e.visit(t.style);return i&&(r+=" "+i),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,i=e.visit(r.length);return i&&(n+=" "+i),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(i,o){r+=e.visit(i),o<n-1&&(r+=", ")}),r},visit:function(t){if(!t)return"";var r="";if(t instanceof Array)return e.visit_array(t,r);if(t.type){var n=e["visit_"+t.type];if(n)return n(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var Un=Un||{};Un.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function r(z){var rt=new Error(t+": "+z);throw rt.source=t,rt}function n(){var z=i();return t.length>0&&r("Invalid input not EOF"),z}function i(){return T(o)}function o(){return l("linear-gradient",e.linearGradient,f)||l("repeating-linear-gradient",e.repeatingLinearGradient,f)||l("radial-gradient",e.radialGradient,p)||l("repeating-radial-gradient",e.repeatingRadialGradient,p)}function l(z,rt,W){return u(rt,function(U){var k=W();return k&&(q(e.comma)||r("Missing comma before color stops")),{type:z,orientation:k,colorStops:T(x)}})}function u(z,rt){var W=q(z);if(W){q(e.startCall)||r("Missing (");var U=rt(W);return q(e.endCall)||r("Missing )"),U}}function f(){return h()||d()}function h(){return F("directional",e.sideOrCorner,1)}function d(){return F("angular",e.angleValue,1)}function p(){var z,rt=c(),W;return rt&&(z=[],z.push(rt),W=t,q(e.comma)&&(rt=c(),rt?z.push(rt):t=W)),z}function c(){var z=v()||m();if(z)z.at=b();else{var rt=y();if(rt){z=rt;var W=b();W&&(z.at=W)}else{var U=_();U&&(z={type:"default-radial",at:U})}}return z}function v(){var z=F("shape",/^(circle)/i,0);return z&&(z.style=M()||y()),z}function m(){var z=F("shape",/^(ellipse)/i,0);return z&&(z.style=C()||y()),z}function y(){return F("extent-keyword",e.extentKeywords,1)}function b(){if(F("position",/^at/,0)){var z=_();return z||r("Missing positioning value"),z}}function _(){var z=w();if(z.x||z.y)return{type:"position",value:z}}function w(){return{x:C(),y:C()}}function T(z){var rt=z(),W=[];if(rt)for(W.push(rt);q(e.comma);)rt=z(),rt?W.push(rt):r("One extra comma");return W}function x(){var z=A();return z||r("Expected color definition"),z.length=C(),z}function A(){return S()||L()||O()||I()}function I(){return F("literal",e.literalColor,0)}function S(){return F("hex",e.hexColor,1)}function O(){return u(e.rgbColor,function(){return{type:"rgb",value:T(R)}})}function L(){return u(e.rgbaColor,function(){return{type:"rgba",value:T(R)}})}function R(){return q(e.number)[1]}function C(){return F("%",e.percentageValue,1)||P()||M()}function P(){return F("position-keyword",e.positionKeywords,1)}function M(){return F("px",e.pixelValue,1)||F("em",e.emValue,1)}function F(z,rt,W){var U=q(rt);if(U)return{type:z,value:U[W]}}function q(z){var rt,W;return W=/^[\n\r\t\s]+/.exec(t),W&&Q(W[0].length),rt=z.exec(t),rt&&Q(rt[0].length),rt}function Q(z){t=t.substr(z)}return function(z){return t=z.toString(),n()}}();var OT=Un.parse;Un.stringify;var Hd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Vd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function CT(e){var t,r=[],n=1,i;if(typeof e=="string")if(Hd[e])r=Hd[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),l=o.length,u=l<=4;n=1,u?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],l===4&&(n=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],l===8&&(n=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var f=t[1],h=f==="rgb",o=f.replace(/a$/,"");i=o;var l=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(c,v){if(/%$/.test(c))return v===l?parseFloat(c)/100:o==="rgb"?parseFloat(c)*255/100:parseFloat(c);if(o[v]==="h"){if(/deg$/.test(c))return parseFloat(c);if(Vd[c]!==void 0)return Vd[c]}return parseFloat(c)}),f===o&&r.push(1),n=h||r[l]===void 0?1:r[l],r=r.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}var mu={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},yu={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,l,u,f;if(r===0)return f=n*255,[f,f,f];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,u=[0,0,0];for(var h=0;h<3;h++)l=t+1/3*-(h-1),l<0?l++:l>1&&l--,6*l<1?f=i+(o-i)*6*l:2*l<1?f=o:3*l<2?f=i+(o-i)*(2/3-l)*6:f=i,u[h]=f*255;return u}};mu.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=o-i,u,f,h;return o===i?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+o)/2,o===i?f=0:h<=.5?f=l/(o+i):f=l/(2-o-i),[u,f*100,h*100]};function RT(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var t,r=CT(e);if(!r.space)return[];const n=r.space[0]==="h"?yu.min:mu.min,i=r.space[0]==="h"?yu.max:mu.max;return t=Array(3),t[0]=Math.min(Math.max(r.values[0],n[0]),i[0]),t[1]=Math.min(Math.max(r.values[1],n[1]),i[1]),t[2]=Math.min(Math.max(r.values[2],n[2]),i[2]),r.space[0]==="h"&&(t=yu.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}function Wd(e){switch(typeof e){case"string":return IT(e);case"number":return uo(e);default:return e}}function IT(e){const t=RT(e);if(!t)throw new Error(`Unable to parse color "${e}" as RGBA.`);return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function PT(e){const t=OT($T(e));if(t.length===0)throw new Error("Invalid CSS gradient.");if(t.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const r=t[0],n=NT(r.type),i=MT(r.colorStops),o=DT(r.orientation);return{type:n,stops:i,angle:o}}function NT(e){const t={"linear-gradient":0,"radial-gradient":1};if(!(e in t))throw new Error(`Unsupported gradient type "${e}"`);return t[e]}function MT(e){const t=FT(e),r=[];for(let n=0;n<e.length;n++){const i=kT(e[n]);r.push({offset:t[n],color:i.slice(0,3),alpha:i[3]})}return r}function kT(e){return Wd(LT(e))}function LT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;default:return`${e.type}(${e.value.join(",")})`}}function FT(e){const t=[];for(let i=0;i<e.length;i++){const o=e[i];let l=-1;o.type==="literal"&&o.length&&"type"in o.length&&o.length.type==="%"&&"value"in o.length&&(l=parseFloat(o.length.value)/100),t.push(l)}const r=i=>{for(let o=i;o<t.length;o++)if(t[o]!==-1)return{indexDelta:o-i,offset:t[o]};return{indexDelta:t.length-1-i,offset:1}};let n=0;for(let i=0;i<t.length;i++){const o=t[i];if(o!==-1)n=o;else if(i===0)t[i]=0;else if(i+1===t.length)t[i]=1;else{const l=r(i),u=(l.offset-n)/(1+l.indexDelta);for(let f=0;f<=l.indexDelta;f++)t[i+f]=n+(f+1)*u;i+=l.indexDelta,n=t[i]}}return t.map(BT)}function BT(e){return e.toString().length>6?parseFloat(e.toString().substring(0,6)):e}function DT(e){if(typeof e>"u")return 0;if("type"in e&&"value"in e)switch(e.type){case"angular":return parseFloat(e.value);case"directional":return UT(e.value)}return 0}function UT(e){const t={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(e in t))throw new Error(`Unsupported directional value "${e}"`);return t[e]}function $T(e){let t=e.replace(/\s{2,}/gu," ");return t=t.replace(/;/g,""),t=t.replace(/ ,/g,","),t=t.replace(/\( /g,"("),t=t.replace(/ \)/g,")"),t.trim()}var GT=Object.defineProperty,jT=Object.defineProperties,qT=Object.getOwnPropertyDescriptors,Xd=Object.getOwnPropertySymbols,zT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,Kd=(e,t,r)=>t in e?GT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_u=(e,t)=>{for(var r in t||(t={}))zT.call(t,r)&&Kd(e,r,t[r]);if(Xd)for(var r of Xd(t))HT.call(t,r)&&Kd(e,r,t[r]);return e},VT=(e,t)=>jT(e,qT(t));const Yd=90;function WT(e){return[...e].sort((t,r)=>t.offset-r.offset)}const bu=class extends Yt{constructor(t){t&&"css"in t&&(t=VT(_u({},PT(t.css||"")),{alpha:t.alpha,maxColors:t.maxColors}));const r=_u(_u({},bu.defaults),t);if(!r.stops||r.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(ST,AT),this._stops=[],this.autoFit=!1,Object.assign(this,r)}get stops(){return this._stops}set stops(t){const r=WT(t),n=new Float32Array(r.length*3),i=0,o=1,l=2;for(let u=0;u<r.length;u++){const f=Wd(r[u].color),h=u*3;n[h+i]=f[i],n[h+o]=f[o],n[h+l]=f[l]}this.uniforms.uColors=n,this.uniforms.uOffsets=r.map(u=>u.offset),this.uniforms.uAlphas=r.map(u=>u.alpha),this.uniforms.uNumStops=r.length,this._stops=r}set type(t){this.uniforms.uType=t}get type(){return this.uniforms.uType}set angle(t){this.uniforms.uAngle=t-Yd}get angle(){return this.uniforms.uAngle+Yd}set alpha(t){this.uniforms.uAlpha=t}get alpha(){return this.uniforms.uAlpha}set maxColors(t){this.uniforms.uMaxColors=t}get maxColors(){return this.uniforms.uMaxColors}};let ko=bu;ko.LINEAR=0,ko.RADIAL=1,ko.CONIC=2,ko.defaults={type:bu.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var XT=`attribute vec2 aVertexPosition;
837
+ `,Un=Un||{};Un.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),i=e.visit(t.style);return i&&(r+=" "+i),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,i=e.visit(r.length);return i&&(n+=" "+i),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(i,o){r+=e.visit(i),o<n-1&&(r+=", ")}),r},visit:function(t){if(!t)return"";var r="";if(t instanceof Array)return e.visit_array(t,r);if(t.type){var n=e["visit_"+t.type];if(n)return n(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var Un=Un||{};Un.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function r(z){var rt=new Error(t+": "+z);throw rt.source=t,rt}function n(){var z=i();return t.length>0&&r("Invalid input not EOF"),z}function i(){return T(o)}function o(){return l("linear-gradient",e.linearGradient,f)||l("repeating-linear-gradient",e.repeatingLinearGradient,f)||l("radial-gradient",e.radialGradient,p)||l("repeating-radial-gradient",e.repeatingRadialGradient,p)}function l(z,rt,W){return u(rt,function(D){var k=W();return k&&(q(e.comma)||r("Missing comma before color stops")),{type:z,orientation:k,colorStops:T(x)}})}function u(z,rt){var W=q(z);if(W){q(e.startCall)||r("Missing (");var D=rt(W);return q(e.endCall)||r("Missing )"),D}}function f(){return h()||d()}function h(){return F("directional",e.sideOrCorner,1)}function d(){return F("angular",e.angleValue,1)}function p(){var z,rt=c(),W;return rt&&(z=[],z.push(rt),W=t,q(e.comma)&&(rt=c(),rt?z.push(rt):t=W)),z}function c(){var z=v()||m();if(z)z.at=b();else{var rt=y();if(rt){z=rt;var W=b();W&&(z.at=W)}else{var D=_();D&&(z={type:"default-radial",at:D})}}return z}function v(){var z=F("shape",/^(circle)/i,0);return z&&(z.style=M()||y()),z}function m(){var z=F("shape",/^(ellipse)/i,0);return z&&(z.style=C()||y()),z}function y(){return F("extent-keyword",e.extentKeywords,1)}function b(){if(F("position",/^at/,0)){var z=_();return z||r("Missing positioning value"),z}}function _(){var z=w();if(z.x||z.y)return{type:"position",value:z}}function w(){return{x:C(),y:C()}}function T(z){var rt=z(),W=[];if(rt)for(W.push(rt);q(e.comma);)rt=z(),rt?W.push(rt):r("One extra comma");return W}function x(){var z=A();return z||r("Expected color definition"),z.length=C(),z}function A(){return S()||L()||O()||I()}function I(){return F("literal",e.literalColor,0)}function S(){return F("hex",e.hexColor,1)}function O(){return u(e.rgbColor,function(){return{type:"rgb",value:T(R)}})}function L(){return u(e.rgbaColor,function(){return{type:"rgba",value:T(R)}})}function R(){return q(e.number)[1]}function C(){return F("%",e.percentageValue,1)||P()||M()}function P(){return F("position-keyword",e.positionKeywords,1)}function M(){return F("px",e.pixelValue,1)||F("em",e.emValue,1)}function F(z,rt,W){var D=q(rt);if(D)return{type:z,value:D[W]}}function q(z){var rt,W;return W=/^[\n\r\t\s]+/.exec(t),W&&Q(W[0].length),rt=z.exec(t),rt&&Q(rt[0].length),rt}function Q(z){t=t.substr(z)}return function(z){return t=z.toString(),n()}}();var OT=Un.parse;Un.stringify;var Hd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Vd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function CT(e){var t,r=[],n=1,i;if(typeof e=="string")if(Hd[e])r=Hd[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),l=o.length,u=l<=4;n=1,u?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],l===4&&(n=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],l===8&&(n=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var f=t[1],h=f==="rgb",o=f.replace(/a$/,"");i=o;var l=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(c,v){if(/%$/.test(c))return v===l?parseFloat(c)/100:o==="rgb"?parseFloat(c)*255/100:parseFloat(c);if(o[v]==="h"){if(/deg$/.test(c))return parseFloat(c);if(Vd[c]!==void 0)return Vd[c]}return parseFloat(c)}),f===o&&r.push(1),n=h||r[l]===void 0?1:r[l],r=r.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}var mu={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},yu={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,l,u,f;if(r===0)return f=n*255,[f,f,f];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,u=[0,0,0];for(var h=0;h<3;h++)l=t+1/3*-(h-1),l<0?l++:l>1&&l--,6*l<1?f=i+(o-i)*6*l:2*l<1?f=o:3*l<2?f=i+(o-i)*(2/3-l)*6:f=i,u[h]=f*255;return u}};mu.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=o-i,u,f,h;return o===i?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+o)/2,o===i?f=0:h<=.5?f=l/(o+i):f=l/(2-o-i),[u,f*100,h*100]};function RT(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var t,r=CT(e);if(!r.space)return[];const n=r.space[0]==="h"?yu.min:mu.min,i=r.space[0]==="h"?yu.max:mu.max;return t=Array(3),t[0]=Math.min(Math.max(r.values[0],n[0]),i[0]),t[1]=Math.min(Math.max(r.values[1],n[1]),i[1]),t[2]=Math.min(Math.max(r.values[2],n[2]),i[2]),r.space[0]==="h"&&(t=yu.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}function Wd(e){switch(typeof e){case"string":return IT(e);case"number":return uo(e);default:return e}}function IT(e){const t=RT(e);if(!t)throw new Error(`Unable to parse color "${e}" as RGBA.`);return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function PT(e){const t=OT($T(e));if(t.length===0)throw new Error("Invalid CSS gradient.");if(t.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const r=t[0],n=NT(r.type),i=MT(r.colorStops),o=DT(r.orientation);return{type:n,stops:i,angle:o}}function NT(e){const t={"linear-gradient":0,"radial-gradient":1};if(!(e in t))throw new Error(`Unsupported gradient type "${e}"`);return t[e]}function MT(e){const t=FT(e),r=[];for(let n=0;n<e.length;n++){const i=kT(e[n]);r.push({offset:t[n],color:i.slice(0,3),alpha:i[3]})}return r}function kT(e){return Wd(LT(e))}function LT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;default:return`${e.type}(${e.value.join(",")})`}}function FT(e){const t=[];for(let i=0;i<e.length;i++){const o=e[i];let l=-1;o.type==="literal"&&o.length&&"type"in o.length&&o.length.type==="%"&&"value"in o.length&&(l=parseFloat(o.length.value)/100),t.push(l)}const r=i=>{for(let o=i;o<t.length;o++)if(t[o]!==-1)return{indexDelta:o-i,offset:t[o]};return{indexDelta:t.length-1-i,offset:1}};let n=0;for(let i=0;i<t.length;i++){const o=t[i];if(o!==-1)n=o;else if(i===0)t[i]=0;else if(i+1===t.length)t[i]=1;else{const l=r(i),u=(l.offset-n)/(1+l.indexDelta);for(let f=0;f<=l.indexDelta;f++)t[i+f]=n+(f+1)*u;i+=l.indexDelta,n=t[i]}}return t.map(BT)}function BT(e){return e.toString().length>6?parseFloat(e.toString().substring(0,6)):e}function DT(e){if(typeof e>"u")return 0;if("type"in e&&"value"in e)switch(e.type){case"angular":return parseFloat(e.value);case"directional":return UT(e.value)}return 0}function UT(e){const t={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(e in t))throw new Error(`Unsupported directional value "${e}"`);return t[e]}function $T(e){let t=e.replace(/\s{2,}/gu," ");return t=t.replace(/;/g,""),t=t.replace(/ ,/g,","),t=t.replace(/\( /g,"("),t=t.replace(/ \)/g,")"),t.trim()}var GT=Object.defineProperty,jT=Object.defineProperties,qT=Object.getOwnPropertyDescriptors,Xd=Object.getOwnPropertySymbols,zT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,Kd=(e,t,r)=>t in e?GT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_u=(e,t)=>{for(var r in t||(t={}))zT.call(t,r)&&Kd(e,r,t[r]);if(Xd)for(var r of Xd(t))HT.call(t,r)&&Kd(e,r,t[r]);return e},VT=(e,t)=>jT(e,qT(t));const Yd=90;function WT(e){return[...e].sort((t,r)=>t.offset-r.offset)}const bu=class extends Yt{constructor(t){t&&"css"in t&&(t=VT(_u({},PT(t.css||"")),{alpha:t.alpha,maxColors:t.maxColors}));const r=_u(_u({},bu.defaults),t);if(!r.stops||r.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(ST,AT),this._stops=[],this.autoFit=!1,Object.assign(this,r)}get stops(){return this._stops}set stops(t){const r=WT(t),n=new Float32Array(r.length*3),i=0,o=1,l=2;for(let u=0;u<r.length;u++){const f=Wd(r[u].color),h=u*3;n[h+i]=f[i],n[h+o]=f[o],n[h+l]=f[l]}this.uniforms.uColors=n,this.uniforms.uOffsets=r.map(u=>u.offset),this.uniforms.uAlphas=r.map(u=>u.alpha),this.uniforms.uNumStops=r.length,this._stops=r}set type(t){this.uniforms.uType=t}get type(){return this.uniforms.uType}set angle(t){this.uniforms.uAngle=t-Yd}get angle(){return this.uniforms.uAngle+Yd}set alpha(t){this.uniforms.uAlpha=t}get alpha(){return this.uniforms.uAlpha}set maxColors(t){this.uniforms.uMaxColors=t}get maxColors(){return this.uniforms.uMaxColors}};let ko=bu;ko.LINEAR=0,ko.RADIAL=1,ko.CONIC=2,ko.defaults={type:bu.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var XT=`attribute vec2 aVertexPosition;
838
838
  attribute vec2 aTextureCoord;
839
839
 
840
840
  uniform mat3 projectionMatrix;
@@ -1909,7 +1909,7 @@ void main() {
1909
1909
  color.b = color.b - (temperature / 100.0);
1910
1910
  gl_FragColor = color;
1911
1911
  }
1912
- `);v.uniforms.temperature=d;const m=new YT([0,-c,0,-c,1+4*c,-c,0,-c,0]),y=new on.filters.ColorMatrixFilter;y.hue(p,!1);const b=new ys(h,1,!0);return{adjustmentFilter:new pT({...u&&{gamma:u},...n&&{brightness:n},...t&&{contrast:t},...r&&{saturation:r},...o&&{red:o},...f&&{green:f},...l&&{blue:l},...i&&{alpha:i}}),blurFilter:b,hueFilter:y,sharpnessFilter:m,temperatureFilter:v}},qE=Et.forwardRef((e,t)=>{const r=_t.useRef(null),n=_t.useRef(null),{src:i,transformation:{x:o,y:l,width:u,height:f,anchor:h,colorCorrection:d={}},pointerdown:p}=e,{blurRadius:c=0}=d,{temperatureFilter:v,sharpnessFilter:m,hueFilter:y,blurFilter:b,adjustmentFilter:_}=_s(d);return ee.jsx(ni,{...e,ref:t,children:ee.jsx(xe.Container,{ref:n,children:ee.jsx(xe.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:o,y:l,interactive:!0,pointerdown:p,filters:[v,m,y,_,...c>0?[b]:[]]})})})}),Fo={build(e){const t=e.points;let r,n,i,o,l,u;if(e.type===Pe.CIRC){const m=e.shape;r=m.x,n=m.y,l=u=m.radius,i=o=0}else if(e.type===Pe.ELIP){const m=e.shape;r=m.x,n=m.y,l=m.width,u=m.height,i=o=0}else{const m=e.shape,y=m.width/2,b=m.height/2;r=m.x+y,n=m.y+b,l=u=Math.max(0,Math.min(m.radius,Math.min(y,b))),i=y-l,o=b-u}if(!(l>=0&&u>=0&&i>=0&&o>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(o?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const m=i+l,y=o,b=r+m,_=r-m,w=n+y;if(t[d++]=b,t[d++]=w,t[--p]=w,t[--p]=_,o){const T=n-y;t[c++]=_,t[c++]=T,t[--v]=T,t[--v]=b}}for(let m=1;m<f;m++){const y=Math.PI/2*(m/f),b=i+Math.cos(y)*l,_=o+Math.sin(y)*u,w=r+b,T=r-b,x=n+_,A=n-_;t[d++]=w,t[d++]=x,t[--p]=x,t[--p]=T,t[c++]=T,t[c++]=A,t[--v]=A,t[--v]=w}{const m=i,y=o+u,b=r+m,_=r-m,w=n+y,T=n-y;t[d++]=b,t[d++]=w,t[--v]=T,t[--v]=b,i&&(t[d++]=_,t[d++]=w,t[--v]=T,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let o=n.length/2;const l=o;let u,f;if(e.type!==Pe.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),o++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(o++,l,o);i.push(l+1,l,o)}};function dp(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,o=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-o)*(f+l),o=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let o=i+i%2;o<r;o+=2){const l=r-o-2,u=r-o-1,f=o,h=o+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const pp={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,o=t.indices;if(r.length>=6){dp(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];dp(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=R_(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)o.push(u[h]+f),o.push(u[h+1]+f),o.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},zE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,o=t.height,l=e.points;l.length=0,i>=0&&o>=0&&l.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},HE={build(e){Fo.build(e)},triangulate(e,t){Fo.triangulate(e,t)}};var Ar=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Ar||{}),$n=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))($n||{});const Ai={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class vp{static curveTo(t,r,n,i,o,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||o===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const m=h*h+d*d,y=p*p+c*c,b=h*p+d*c,_=o*Math.sqrt(m)/v,w=o*Math.sqrt(y)/v,T=_*b/m,x=w*b/y,A=_*c+w*d,I=_*p+w*h,S=d*(w+T),O=h*(w+T),L=c*(_+x),R=p*(_+x),C=Math.atan2(O-I,S-A),P=Math.atan2(R-I,L-A);return{cx:A+t,cy:I+r,radius:o,startAngle:C,endAngle:P,anticlockwise:d*p>c*h}}static arc(t,r,n,i,o,l,u,f,h){const d=u-l,p=Ai._segmentsCount(Math.abs(d)*o,Math.ceil(Math.abs(d)/go)*40),c=d/(p*2),v=c*2,m=Math.cos(c),y=Math.sin(c),b=p-1,_=b%1/b;for(let w=0;w<=b;++w){const T=w+_*w,x=c+l+v*T,A=Math.cos(x),I=-Math.sin(x);h.push((m*A+y*I)*o+n,(m*-I+y*A)*o+i)}}}class VE{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class Tu{static curveLength(t,r,n,i,o,l,u,f){let d=0,p=0,c=0,v=0,m=0,y=0,b=0,_=0,w=0,T=0,x=0,A=t,I=r;for(let S=1;S<=10;++S)p=S/10,c=p*p,v=c*p,m=1-p,y=m*m,b=y*m,_=b*t+3*y*p*n+3*m*c*o+v*u,w=b*r+3*y*p*i+3*m*c*l+v*f,T=A-_,x=I-w,A=_,I=w,d+=Math.sqrt(T*T+x*x);return d}static curveTo(t,r,n,i,o,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=Ai._segmentsCount(Tu.curveLength(f,h,t,r,n,i,o,l));let p=0,c=0,v=0,m=0,y=0;u.push(f,h);for(let b=1,_=0;b<=d;++b)_=b/d,p=1-_,c=p*p,v=c*p,m=_*_,y=m*_,u.push(v*f+3*c*_*t+3*p*m*n+y*o,v*h+3*c*_*r+3*p*m*i+y*l)}}function gp(e,t,r,n,i,o,l,u){const f=e-r*i,h=t-n*i,d=e+r*o,p=t+n*o;let c,v;l?(c=n,v=-r):(c=-n,v=r);const m=f+c,y=h+v,b=d+c,_=p+v;return u.push(m,y,b,_),2}function Gn(e,t,r,n,i,o,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,o-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,m=Math.abs(v),y=Math.sqrt(f*f+h*h),b=(15*m*Math.sqrt(y)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let w=1,T=c;w<b;w++,T+=_)l.push(e,t,e+Math.sin(T)*y,t+Math.cos(T)*y);l.push(e,t,i,o)}else{l.push(r,n,e,t);for(let w=1,T=c;w<b;w++,T+=_)l.push(e+Math.sin(T)*y,t+Math.cos(T)*y,e,t);l.push(i,o,e,t)}return b*2}function WE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const o=e.lineStyle,l=new se(n[0],n[1]),u=new se(n[n.length-2],n[n.length-1]),f=r.type!==Pe.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,rt=(u.y+l.y)*.5;n.unshift(z,rt),n.push(z,rt)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,m=o.width/2,y=m*m,b=o.miterLimit*o.miterLimit;let _=n[0],w=n[1],T=n[2],x=n[3],A=0,I=0,S=-(w-x),O=_-T,L=0,R=0,C=Math.sqrt(S*S+O*O);S/=C,O/=C,S*=m,O*=m;const P=o.alignment,M=(1-P)*2,F=P*2;f||(o.cap===$n.ROUND?c+=Gn(_-S*(M-F)*.5,w-O*(M-F)*.5,_-S*M,w-O*M,_+S*F,w+O*F,d,!0)+2:o.cap===$n.SQUARE&&(c+=gp(_,w,S,O,M,F,!0,d))),d.push(_-S*M,w-O*M,_+S*F,w+O*F);for(let z=1;z<p-1;++z){_=n[(z-1)*2],w=n[(z-1)*2+1],T=n[z*2],x=n[z*2+1],A=n[(z+1)*2],I=n[(z+1)*2+1],S=-(w-x),O=_-T,C=Math.sqrt(S*S+O*O),S/=C,O/=C,S*=m,O*=m,L=-(x-I),R=T-A,C=Math.sqrt(L*L+R*R),L/=C,R/=C,L*=m,R*=m;const rt=T-_,W=w-x,U=T-A,k=I-x,j=rt*U+W*k,G=W*U-k*rt,K=G<0;if(Math.abs(G)<.001*Math.abs(j)){d.push(T-S*M,x-O*M,T+S*F,x+O*F),j>=0&&(o.join===Ar.ROUND?c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+4:c+=2,d.push(T-L*F,x-R*F,T+L*M,x+R*M));continue}const X=(-S+_)*(-O+x)-(-S+T)*(-O+w),$=(-L+A)*(-R+x)-(-L+T)*(-R+I),V=(rt*$-U*X)/G,Z=(k*X-W*$)/G,J=(V-T)*(V-T)+(Z-x)*(Z-x),nt=T+(V-T)*M,at=x+(Z-x)*M,dt=T-(V-T)*F,mt=x-(Z-x)*F,xt=Math.min(rt*rt+W*W,U*U+k*k),Ct=K?M:F,fe=xt+Ct*Ct*y,Xt=J<=fe;let st=o.join;if(st===Ar.MITER&&J/y>b&&(st=Ar.BEVEL),Xt)switch(st){case Ar.MITER:{d.push(nt,at,dt,mt);break}case Ar.BEVEL:{K?d.push(nt,at,T+S*F,x+O*F,nt,at,T+L*F,x+R*F):d.push(T-S*M,x-O*M,dt,mt,T-L*M,x-R*M,dt,mt),c+=2;break}case Ar.ROUND:{K?(d.push(nt,at,T+S*F,x+O*F),c+=Gn(T,x,T+S*F,x+O*F,T+L*F,x+R*F,d,!0)+4,d.push(nt,at,T+L*F,x+R*F)):(d.push(T-S*M,x-O*M,dt,mt),c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+4,d.push(T-L*M,x-R*M,dt,mt));break}}else{switch(d.push(T-S*M,x-O*M,T+S*F,x+O*F),st){case Ar.MITER:{K?d.push(dt,mt,dt,mt):d.push(nt,at,nt,at),c+=2;break}case Ar.ROUND:{K?c+=Gn(T,x,T+S*F,x+O*F,T+L*F,x+R*F,d,!0)+2:c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+2;break}}d.push(T-L*M,x-R*M,T+L*F,x+R*F),c+=2}}_=n[(p-2)*2],w=n[(p-2)*2+1],T=n[(p-1)*2],x=n[(p-1)*2+1],S=-(w-x),O=_-T,C=Math.sqrt(S*S+O*O),S/=C,O/=C,S*=m,O*=m,d.push(T-S*M,x-O*M,T+S*F,x+O*F),f||(o.cap===$n.ROUND?c+=Gn(T-S*(M-F)*.5,x-O*(M-F)*.5,T-S*M,x-O*M,T+S*F,x+O*F,d,!1)+2:o.cap===$n.SQUARE&&(c+=gp(T,x,S,O,M,F,!1,d)));const q=t.indices,Q=Ai.epsilon*Ai.epsilon;for(let z=v;z<c+v-2;++z)_=d[z*2],w=d[z*2+1],T=d[(z+1)*2],x=d[(z+1)*2+1],A=d[(z+2)*2],I=d[(z+2)*2+1],!(Math.abs(_*(x-I)+T*(I-w)+A*(w-x))<Q)&&q.push(z,z+1,z+2)}function XE(e,t){let r=0;const n=e.shape,i=e.points||n.points,o=n.type!==Pe.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;o&&u.push(d,h)}function mp(e,t){e.lineStyle.native?XE(e,t):WE(e,t)}class Eu{static curveLength(t,r,n,i,o,l){const u=t-2*n+o,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,m=2*Math.sqrt(p+c+v),y=Math.sqrt(p),b=2*p*y,_=2*Math.sqrt(v),w=c/y;return(b*m+y*c*(m-_)+(4*v*p-c*c)*Math.log((2*y+w+m)/(w+_)))/(4*b)}static curveTo(t,r,n,i,o){const l=o[o.length-2],u=o[o.length-1],f=Ai._segmentsCount(Eu.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,o.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const Au={[Pe.POLY]:pp,[Pe.CIRC]:Fo,[Pe.ELIP]:Fo,[Pe.RECT]:zE,[Pe.RREC]:HE},yp=[],Bo=[];class Su{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:o,d:l,tx:u,ty:f}=t,h=n*r.x+o*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o}addFrame(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)}addFrameMatrix(t,r,n,i,o){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,m=this.maxX,y=this.maxY,b=l*r+f*n+d,_=u*r+h*n+p;c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*i+f*n+d,_=u*i+h*n+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*r+f*o+d,_=u*r+h*o+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*i+f*o+d,_=u*i+h*o+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,this.minX=c,this.minY=v,this.maxX=m,this.maxY=y}addVertexData(t,r,n){let i=this.minX,o=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,o=d<o?d:o,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=o,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,o=0,l=o){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,m=this.minY,y=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const w=r[_],T=r[_+1],x=u*w+h*T+p,A=d*T+f*w+c;v=Math.min(v,x-o),y=Math.max(y,x+o),m=Math.min(m,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=m,this.maxX=y,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,o,l){t-=o,r-=l,n+=o,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Si extends Ws{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new iu,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Su,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Si.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Su);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,o=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-o,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,o=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=o,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new KE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*uw}set angle(t){this.transform.rotation=t*cs}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class KE extends Si{constructor(){super(...arguments),this.sortDirty=null}}Si.prototype.displayObjectUpdateTransform=Si.prototype.updateTransform;const YE=new $e;function ZE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const Ou=class extends Si{constructor(){super(),this.children=[],this.sortableChildren=Ou.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);co(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,co(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,co(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let o;if(i>0&&i<=n){o=this.children.splice(r,i);for(let l=0;l<o.length;++l)o[l].parent=null,o[l].transform&&(o[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<o.length;++l)o[l].emit("removed",this),this.emit("childRemoved",o[l],this,l);return o}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(ZE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const o=this.children[n];o.visible&&o.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==Ou.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=YE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let o=0,l=this.children.length;o<l;++o){const u=this.children[o],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,o,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((o=this._enabledFilters)!=null&&o.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Oi=Ou;Oi.defaultSortableChildren=!1,Oi.prototype.containerUpdateTransform=Oi.prototype.updateTransform,Object.defineProperties(Dt,{SORTABLE_CHILDREN:{get(){return Oi.defaultSortableChildren},set(e){zt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Oi.defaultSortableChildren=e}}});class Do{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Do(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Ci=new se,_p=class extends Qh{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Su,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Bo.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),yp.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Do(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Do(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Ci):Ci.copyFrom(e),n.shape.contains(Ci.x,Ci.y))){let i=!1;if(n.holes){for(let o=0;o<n.holes.length;o++)if(n.holes[o].shape.contains(Ci.x,Ci.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;Au[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const m=v.texture.baseTexture,y=this.indices.length,b=this.points.length/2;m.wrapMode=Ji.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(y,b),r=null),r||(r=yp.pop()||new VE,r.begin(v,y,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,o=this.points.length/2;if(r&&r.end(i,o),this.batches.length===0){this.batchable=!0;return}const l=o>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const o=n.start+i;this.indicesUint16[o]=this.indicesUint16[o]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<_p.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Wt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Bo.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Bo.pop();n||(n=new tu,n.texArray=new ou),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,o=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,m=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,o=null,i=c,e++),o!==m&&(o=m,m._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Bo.pop(),n||(n=new tu,n.texArray=new ou),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),m.touched=1,m._batchEnabled=e,m._batchLocation=i,m.wrapMode=Ji.REPEAT,n.texArray.elements[n.texArray.count++]=m,i++)),n.size+=p.size,h+=p.size,l=m._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Wt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)o[u++]=e[f*2],o[u++]=e[f*2+1],o[u++]=t[f*2],o[u++]=t[f*2+1],l[u++]=r[f],o[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?pp.triangulate(e,this):Au[e.type].triangulate(e,this)}processLine(e){mp(e,this);for(let t=0;t<e.holes.length;t++)mp(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];Au[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const o=Be.shared.setValue(t).toLittleEndianNumber(),l=Be.shared.setValue(o).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,o=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(o){const c=o.a*d+o.c*p+o.tx;p=o.b*d+o.d*p+o.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,o=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+o),v=Math.floor(e[r+1]+o);for(let m=r+2;m<l;m+=2)c=Math.min(c,Math.floor(e[m]+o)),v=Math.min(v,Math.floor(e[m+1]+o));d-=c,p-=v;for(let m=r;m<l;m+=2)e[m]=(e[m]+d)*f,e[m+1]=(e[m+1]+p)*h}};let bp=_p;bp.BATCHABLE_SIZE=100;class Uo{constructor(){this.color=16777215,this.alpha=1,this.texture=Ht.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Uo;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Ht.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class Cu extends Uo{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=$n.BUTT,this.join=Ar.MITER,this.miterLimit=10}clone(){const t=new Cu;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const Ru={},$o=class extends Oi{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Uo,this._lineStyle=new Cu,this._matrix=null,this._holeMode=!1,this.state=po.for2d(),this._geometry=e||new bp,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Be(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new $o(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Ht.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:$n.BUTT,join:Ar.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new hs,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new hs,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Eu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o){return this._initCurve(),Tu.curveTo(e,t,r,n,i,o,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const o=this.currentPath.points,l=vp.curveTo(e,t,r,n,i,o);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,o=!1){if(n===i)return this;if(!o&&i<=n?i+=go:o&&n<=i&&(n+=go),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return vp.arc(u,f,e,t,r,n,i,o,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Ht.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Be.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Ht.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new ru(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new eu(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new fw(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new hs(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Pe.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],o=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Be.shared.setValue(o).toRgbArray(),_tintRGB:o,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,o=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Be.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=o.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:o}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,o)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!Ru[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const o={tint:new Float32Array([1,1,1,1]),translationMatrix:new $e,default:br.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;Ru[r]=new ps(l,o)}t=Ru[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,$o._TEMP_POINT),this._geometry.containsPoint($o._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Be.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,o=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=o*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let Iu=$o;Iu.curves=Ai,Iu._TEMP_POINT=new se;var QE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pu={},JE={get exports(){return Pu},set exports(e){Pu=e}};/*!
1912
+ `);v.uniforms.temperature=d;const m=new YT([0,-c,0,-c,1+4*c,-c,0,-c,0]),y=new on.filters.ColorMatrixFilter;y.hue(p,!1);const b=new ys(h,1,!0);return{adjustmentFilter:new pT({...u&&{gamma:u},...n&&{brightness:n},...t&&{contrast:t},...r&&{saturation:r},...o&&{red:o},...f&&{green:f},...l&&{blue:l},...i&&{alpha:i}}),blurFilter:b,hueFilter:y,sharpnessFilter:m,temperatureFilter:v}},qE=Et.forwardRef((e,t)=>{const r=_t.useRef(null),n=_t.useRef(null),{src:i,transformation:{x:o,y:l,width:u,height:f,anchor:h,colorCorrection:d={}},pointerdown:p}=e,{blurRadius:c=0}=d,{temperatureFilter:v,sharpnessFilter:m,hueFilter:y,blurFilter:b,adjustmentFilter:_}=_s(d);return ee.jsx(ni,{...e,ref:t,children:ee.jsx(ye.Container,{ref:n,children:ee.jsx(ye.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:o,y:l,interactive:!0,pointerdown:p,filters:[v,m,y,_,...c>0?[b]:[]]})})})}),Fo={build(e){const t=e.points;let r,n,i,o,l,u;if(e.type===Pe.CIRC){const m=e.shape;r=m.x,n=m.y,l=u=m.radius,i=o=0}else if(e.type===Pe.ELIP){const m=e.shape;r=m.x,n=m.y,l=m.width,u=m.height,i=o=0}else{const m=e.shape,y=m.width/2,b=m.height/2;r=m.x+y,n=m.y+b,l=u=Math.max(0,Math.min(m.radius,Math.min(y,b))),i=y-l,o=b-u}if(!(l>=0&&u>=0&&i>=0&&o>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(o?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const m=i+l,y=o,b=r+m,_=r-m,w=n+y;if(t[d++]=b,t[d++]=w,t[--p]=w,t[--p]=_,o){const T=n-y;t[c++]=_,t[c++]=T,t[--v]=T,t[--v]=b}}for(let m=1;m<f;m++){const y=Math.PI/2*(m/f),b=i+Math.cos(y)*l,_=o+Math.sin(y)*u,w=r+b,T=r-b,x=n+_,A=n-_;t[d++]=w,t[d++]=x,t[--p]=x,t[--p]=T,t[c++]=T,t[c++]=A,t[--v]=A,t[--v]=w}{const m=i,y=o+u,b=r+m,_=r-m,w=n+y,T=n-y;t[d++]=b,t[d++]=w,t[--v]=T,t[--v]=b,i&&(t[d++]=_,t[d++]=w,t[--v]=T,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let o=n.length/2;const l=o;let u,f;if(e.type!==Pe.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),o++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(o++,l,o);i.push(l+1,l,o)}};function dp(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,o=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-o)*(f+l),o=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let o=i+i%2;o<r;o+=2){const l=r-o-2,u=r-o-1,f=o,h=o+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const pp={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,o=t.indices;if(r.length>=6){dp(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];dp(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=R_(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)o.push(u[h]+f),o.push(u[h+1]+f),o.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},zE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,o=t.height,l=e.points;l.length=0,i>=0&&o>=0&&l.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},HE={build(e){Fo.build(e)},triangulate(e,t){Fo.triangulate(e,t)}};var Ar=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Ar||{}),$n=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))($n||{});const Ai={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class vp{static curveTo(t,r,n,i,o,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||o===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const m=h*h+d*d,y=p*p+c*c,b=h*p+d*c,_=o*Math.sqrt(m)/v,w=o*Math.sqrt(y)/v,T=_*b/m,x=w*b/y,A=_*c+w*d,I=_*p+w*h,S=d*(w+T),O=h*(w+T),L=c*(_+x),R=p*(_+x),C=Math.atan2(O-I,S-A),P=Math.atan2(R-I,L-A);return{cx:A+t,cy:I+r,radius:o,startAngle:C,endAngle:P,anticlockwise:d*p>c*h}}static arc(t,r,n,i,o,l,u,f,h){const d=u-l,p=Ai._segmentsCount(Math.abs(d)*o,Math.ceil(Math.abs(d)/go)*40),c=d/(p*2),v=c*2,m=Math.cos(c),y=Math.sin(c),b=p-1,_=b%1/b;for(let w=0;w<=b;++w){const T=w+_*w,x=c+l+v*T,A=Math.cos(x),I=-Math.sin(x);h.push((m*A+y*I)*o+n,(m*-I+y*A)*o+i)}}}class VE{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class Tu{static curveLength(t,r,n,i,o,l,u,f){let d=0,p=0,c=0,v=0,m=0,y=0,b=0,_=0,w=0,T=0,x=0,A=t,I=r;for(let S=1;S<=10;++S)p=S/10,c=p*p,v=c*p,m=1-p,y=m*m,b=y*m,_=b*t+3*y*p*n+3*m*c*o+v*u,w=b*r+3*y*p*i+3*m*c*l+v*f,T=A-_,x=I-w,A=_,I=w,d+=Math.sqrt(T*T+x*x);return d}static curveTo(t,r,n,i,o,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=Ai._segmentsCount(Tu.curveLength(f,h,t,r,n,i,o,l));let p=0,c=0,v=0,m=0,y=0;u.push(f,h);for(let b=1,_=0;b<=d;++b)_=b/d,p=1-_,c=p*p,v=c*p,m=_*_,y=m*_,u.push(v*f+3*c*_*t+3*p*m*n+y*o,v*h+3*c*_*r+3*p*m*i+y*l)}}function gp(e,t,r,n,i,o,l,u){const f=e-r*i,h=t-n*i,d=e+r*o,p=t+n*o;let c,v;l?(c=n,v=-r):(c=-n,v=r);const m=f+c,y=h+v,b=d+c,_=p+v;return u.push(m,y,b,_),2}function Gn(e,t,r,n,i,o,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,o-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,m=Math.abs(v),y=Math.sqrt(f*f+h*h),b=(15*m*Math.sqrt(y)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let w=1,T=c;w<b;w++,T+=_)l.push(e,t,e+Math.sin(T)*y,t+Math.cos(T)*y);l.push(e,t,i,o)}else{l.push(r,n,e,t);for(let w=1,T=c;w<b;w++,T+=_)l.push(e+Math.sin(T)*y,t+Math.cos(T)*y,e,t);l.push(i,o,e,t)}return b*2}function WE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const o=e.lineStyle,l=new se(n[0],n[1]),u=new se(n[n.length-2],n[n.length-1]),f=r.type!==Pe.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,rt=(u.y+l.y)*.5;n.unshift(z,rt),n.push(z,rt)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,m=o.width/2,y=m*m,b=o.miterLimit*o.miterLimit;let _=n[0],w=n[1],T=n[2],x=n[3],A=0,I=0,S=-(w-x),O=_-T,L=0,R=0,C=Math.sqrt(S*S+O*O);S/=C,O/=C,S*=m,O*=m;const P=o.alignment,M=(1-P)*2,F=P*2;f||(o.cap===$n.ROUND?c+=Gn(_-S*(M-F)*.5,w-O*(M-F)*.5,_-S*M,w-O*M,_+S*F,w+O*F,d,!0)+2:o.cap===$n.SQUARE&&(c+=gp(_,w,S,O,M,F,!0,d))),d.push(_-S*M,w-O*M,_+S*F,w+O*F);for(let z=1;z<p-1;++z){_=n[(z-1)*2],w=n[(z-1)*2+1],T=n[z*2],x=n[z*2+1],A=n[(z+1)*2],I=n[(z+1)*2+1],S=-(w-x),O=_-T,C=Math.sqrt(S*S+O*O),S/=C,O/=C,S*=m,O*=m,L=-(x-I),R=T-A,C=Math.sqrt(L*L+R*R),L/=C,R/=C,L*=m,R*=m;const rt=T-_,W=w-x,D=T-A,k=I-x,j=rt*D+W*k,G=W*D-k*rt,K=G<0;if(Math.abs(G)<.001*Math.abs(j)){d.push(T-S*M,x-O*M,T+S*F,x+O*F),j>=0&&(o.join===Ar.ROUND?c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+4:c+=2,d.push(T-L*F,x-R*F,T+L*M,x+R*M));continue}const X=(-S+_)*(-O+x)-(-S+T)*(-O+w),$=(-L+A)*(-R+x)-(-L+T)*(-R+I),V=(rt*$-D*X)/G,J=(k*X-W*$)/G,Z=(V-T)*(V-T)+(J-x)*(J-x),nt=T+(V-T)*M,at=x+(J-x)*M,dt=T-(V-T)*F,gt=x-(J-x)*F,xt=Math.min(rt*rt+W*W,D*D+k*k),At=K?M:F,fe=xt+At*At*y,Xt=Z<=fe;let st=o.join;if(st===Ar.MITER&&Z/y>b&&(st=Ar.BEVEL),Xt)switch(st){case Ar.MITER:{d.push(nt,at,dt,gt);break}case Ar.BEVEL:{K?d.push(nt,at,T+S*F,x+O*F,nt,at,T+L*F,x+R*F):d.push(T-S*M,x-O*M,dt,gt,T-L*M,x-R*M,dt,gt),c+=2;break}case Ar.ROUND:{K?(d.push(nt,at,T+S*F,x+O*F),c+=Gn(T,x,T+S*F,x+O*F,T+L*F,x+R*F,d,!0)+4,d.push(nt,at,T+L*F,x+R*F)):(d.push(T-S*M,x-O*M,dt,gt),c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+4,d.push(T-L*M,x-R*M,dt,gt));break}}else{switch(d.push(T-S*M,x-O*M,T+S*F,x+O*F),st){case Ar.MITER:{K?d.push(dt,gt,dt,gt):d.push(nt,at,nt,at),c+=2;break}case Ar.ROUND:{K?c+=Gn(T,x,T+S*F,x+O*F,T+L*F,x+R*F,d,!0)+2:c+=Gn(T,x,T-S*M,x-O*M,T-L*M,x-R*M,d,!1)+2;break}}d.push(T-L*M,x-R*M,T+L*F,x+R*F),c+=2}}_=n[(p-2)*2],w=n[(p-2)*2+1],T=n[(p-1)*2],x=n[(p-1)*2+1],S=-(w-x),O=_-T,C=Math.sqrt(S*S+O*O),S/=C,O/=C,S*=m,O*=m,d.push(T-S*M,x-O*M,T+S*F,x+O*F),f||(o.cap===$n.ROUND?c+=Gn(T-S*(M-F)*.5,x-O*(M-F)*.5,T-S*M,x-O*M,T+S*F,x+O*F,d,!1)+2:o.cap===$n.SQUARE&&(c+=gp(T,x,S,O,M,F,!1,d)));const q=t.indices,Q=Ai.epsilon*Ai.epsilon;for(let z=v;z<c+v-2;++z)_=d[z*2],w=d[z*2+1],T=d[(z+1)*2],x=d[(z+1)*2+1],A=d[(z+2)*2],I=d[(z+2)*2+1],!(Math.abs(_*(x-I)+T*(I-w)+A*(w-x))<Q)&&q.push(z,z+1,z+2)}function XE(e,t){let r=0;const n=e.shape,i=e.points||n.points,o=n.type!==Pe.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;o&&u.push(d,h)}function mp(e,t){e.lineStyle.native?XE(e,t):WE(e,t)}class Eu{static curveLength(t,r,n,i,o,l){const u=t-2*n+o,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,m=2*Math.sqrt(p+c+v),y=Math.sqrt(p),b=2*p*y,_=2*Math.sqrt(v),w=c/y;return(b*m+y*c*(m-_)+(4*v*p-c*c)*Math.log((2*y+w+m)/(w+_)))/(4*b)}static curveTo(t,r,n,i,o){const l=o[o.length-2],u=o[o.length-1],f=Ai._segmentsCount(Eu.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,o.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const Au={[Pe.POLY]:pp,[Pe.CIRC]:Fo,[Pe.ELIP]:Fo,[Pe.RECT]:zE,[Pe.RREC]:HE},yp=[],Bo=[];class Su{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:o,d:l,tx:u,ty:f}=t,h=n*r.x+o*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o}addFrame(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)}addFrameMatrix(t,r,n,i,o){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,m=this.maxX,y=this.maxY,b=l*r+f*n+d,_=u*r+h*n+p;c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*i+f*n+d,_=u*i+h*n+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*r+f*o+d,_=u*r+h*o+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,b=l*i+f*o+d,_=u*i+h*o+p,c=b<c?b:c,v=_<v?_:v,m=b>m?b:m,y=_>y?_:y,this.minX=c,this.minY=v,this.maxX=m,this.maxY=y}addVertexData(t,r,n){let i=this.minX,o=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,o=d<o?d:o,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=o,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,o=0,l=o){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,m=this.minY,y=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const w=r[_],T=r[_+1],x=u*w+h*T+p,A=d*T+f*w+c;v=Math.min(v,x-o),y=Math.max(y,x+o),m=Math.min(m,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=m,this.maxX=y,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,o,l){t-=o,r-=l,n+=o,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Si extends Ws{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new iu,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Su,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Si.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Su);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,o=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-o,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,o=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=o,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new KE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*uw}set angle(t){this.transform.rotation=t*cs}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class KE extends Si{constructor(){super(...arguments),this.sortDirty=null}}Si.prototype.displayObjectUpdateTransform=Si.prototype.updateTransform;const YE=new $e;function ZE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const Ou=class extends Si{constructor(){super(),this.children=[],this.sortableChildren=Ou.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);co(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,co(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,co(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let o;if(i>0&&i<=n){o=this.children.splice(r,i);for(let l=0;l<o.length;++l)o[l].parent=null,o[l].transform&&(o[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<o.length;++l)o[l].emit("removed",this),this.emit("childRemoved",o[l],this,l);return o}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(ZE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const o=this.children[n];o.visible&&o.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==Ou.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=YE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let o=0,l=this.children.length;o<l;++o){const u=this.children[o],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,o,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((o=this._enabledFilters)!=null&&o.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Oi=Ou;Oi.defaultSortableChildren=!1,Oi.prototype.containerUpdateTransform=Oi.prototype.updateTransform,Object.defineProperties(Dt,{SORTABLE_CHILDREN:{get(){return Oi.defaultSortableChildren},set(e){zt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Oi.defaultSortableChildren=e}}});class Do{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Do(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Ci=new se,_p=class extends Qh{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Su,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Bo.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),yp.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Do(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Do(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Ci):Ci.copyFrom(e),n.shape.contains(Ci.x,Ci.y))){let i=!1;if(n.holes){for(let o=0;o<n.holes.length;o++)if(n.holes[o].shape.contains(Ci.x,Ci.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;Au[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const m=v.texture.baseTexture,y=this.indices.length,b=this.points.length/2;m.wrapMode=Ji.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(y,b),r=null),r||(r=yp.pop()||new VE,r.begin(v,y,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,o=this.points.length/2;if(r&&r.end(i,o),this.batches.length===0){this.batchable=!0;return}const l=o>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const o=n.start+i;this.indicesUint16[o]=this.indicesUint16[o]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<_p.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Wt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Bo.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Bo.pop();n||(n=new tu,n.texArray=new ou),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,o=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,m=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,o=null,i=c,e++),o!==m&&(o=m,m._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Bo.pop(),n||(n=new tu,n.texArray=new ou),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),m.touched=1,m._batchEnabled=e,m._batchLocation=i,m.wrapMode=Ji.REPEAT,n.texArray.elements[n.texArray.count++]=m,i++)),n.size+=p.size,h+=p.size,l=m._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Wt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)o[u++]=e[f*2],o[u++]=e[f*2+1],o[u++]=t[f*2],o[u++]=t[f*2+1],l[u++]=r[f],o[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?pp.triangulate(e,this):Au[e.type].triangulate(e,this)}processLine(e){mp(e,this);for(let t=0;t<e.holes.length;t++)mp(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];Au[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const o=Be.shared.setValue(t).toLittleEndianNumber(),l=Be.shared.setValue(o).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,o=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(o){const c=o.a*d+o.c*p+o.tx;p=o.b*d+o.d*p+o.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,o=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+o),v=Math.floor(e[r+1]+o);for(let m=r+2;m<l;m+=2)c=Math.min(c,Math.floor(e[m]+o)),v=Math.min(v,Math.floor(e[m+1]+o));d-=c,p-=v;for(let m=r;m<l;m+=2)e[m]=(e[m]+d)*f,e[m+1]=(e[m+1]+p)*h}};let bp=_p;bp.BATCHABLE_SIZE=100;class Uo{constructor(){this.color=16777215,this.alpha=1,this.texture=Ht.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Uo;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Ht.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class Cu extends Uo{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=$n.BUTT,this.join=Ar.MITER,this.miterLimit=10}clone(){const t=new Cu;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const Ru={},$o=class extends Oi{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Uo,this._lineStyle=new Cu,this._matrix=null,this._holeMode=!1,this.state=po.for2d(),this._geometry=e||new bp,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Be(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new $o(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Ht.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:$n.BUTT,join:Ar.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new hs,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new hs,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Eu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o){return this._initCurve(),Tu.curveTo(e,t,r,n,i,o,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const o=this.currentPath.points,l=vp.curveTo(e,t,r,n,i,o);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,o=!1){if(n===i)return this;if(!o&&i<=n?i+=go:o&&n<=i&&(n+=go),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return vp.arc(u,f,e,t,r,n,i,o,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Ht.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Be.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Ht.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new ru(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new eu(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new fw(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new hs(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Pe.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],o=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Be.shared.setValue(o).toRgbArray(),_tintRGB:o,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,o=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Be.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=o.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:o}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,o)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!Ru[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const o={tint:new Float32Array([1,1,1,1]),translationMatrix:new $e,default:br.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;Ru[r]=new ps(l,o)}t=Ru[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,$o._TEMP_POINT),this._geometry.containsPoint($o._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Be.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,o=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=o*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let Iu=$o;Iu.curves=Ai,Iu._TEMP_POINT=new se;var QE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pu={},JE={get exports(){return Pu},set exports(e){Pu=e}};/*!
1913
1913
  * d-path-parser - v1.0.0
1914
1914
  * by Massimo Artizzu (MaxArt2501)
1915
1915
  *
@@ -1917,36 +1917,36 @@ void main() {
1917
1917
  *
1918
1918
  * Licensed under the MIT License
1919
1919
  * See LICENSE for details
1920
- */(function(e,t){(function(r,n){e.exports=n()})(QE,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},o={number:function(y){return+v("number",y)},"coordinate pair":function(y){var b=v("number",y);if(b===null&&!y)return null;v("comma");var _=v("number",!0);return{x:+b,y:+_}},"arc definition":function(y){var b=o["coordinate pair"](y);if(!b&&!y)return null;v("comma");var _=+v("number",!0);v("comma",!0);var w=!!+v("flag",!0);v("comma");var T=!!+v("flag",!0);v("comma");var x=o["coordinate pair"](!0);return{radii:b,rotation:_,large:w,clockwise:T,end:x}}},l=0,u=[];l<n.length;){var f=v("command"),h=f.toUpperCase(),d=f!==h,p;switch(h){case"M":p=m("coordinate pair").map(function(y,b){return b===1&&(f=d?"l":"L"),c({end:y})});break;case"L":case"T":p=m("coordinate pair").map(function(y){return c({end:y})});break;case"C":if(p=m("coordinate pair"),p.length%3)throw Error("Expected coordinate pair triplet at position "+l);p=p.reduce(function(y,b,_){var w=_%3;if(!w)y.push(c({cp1:b}));else{var T=y[y.length-1];T[w===1?"cp2":"end"]=b}return y},[]);break;case"Q":case"S":if(p=m("coordinate pair"),p.length&1)throw Error("Expected coordinate pair couple at position "+l);p=p.reduce(function(y,b,_){var w=_&1;if(!w)y.push(c({cp:b}));else{var T=y[y.length-1];T.end=b}return y},[]);break;case"H":case"V":p=m("number").map(function(y){return c({value:y})});break;case"A":p=m("arc definition").map(c);break;case"Z":p=[{code:"Z"}];break}u.push.apply(u,p)}return u;function c(y){return y.code=f,y.relative=d,y}function v(y,b){i[y].lastIndex=l;var _=i[y].exec(n);if(!_||_.index!==l){if(!b)return null;throw Error("Expected "+y+" at position "+l)}return l=i[y].lastIndex,_[1]}function m(y){for(var b=[],_,w=!0;_=o[y](w);)b.push(_),w=!!v("comma");return b}}})})(JE);const t2=/^\s+/,e2=/\s+$/;function Tt(e,t){if(e=e||"",t=t||{},e instanceof Tt)return e;if(!(this instanceof Tt))return new Tt(e,t);var r=r2(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,o,l;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*o+.0722*l},setAlpha:function(e){return this._a=Sp(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=wp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=wp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=xp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=xp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Tp(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return o2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ue(this._r,255)*100)+"%",g:Math.round(ue(this._g,255)*100)+"%",b:Math.round(ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ue(this._r,255)*100)+"%, "+Math.round(ue(this._g,255)*100)+"%, "+Math.round(ue(this._b,255)*100)+"%)":"rgba("+Math.round(ue(this._r,255)*100)+"%, "+Math.round(ue(this._g,255)*100)+"%, "+Math.round(ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:y2[Tp(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Ep(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Tt(e);r="#"+Ep(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Tt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(f2,arguments)},brighten:function(){return this._applyModification(c2,arguments)},darken:function(){return this._applyModification(h2,arguments)},desaturate:function(){return this._applyModification(a2,arguments)},saturate:function(){return this._applyModification(l2,arguments)},greyscale:function(){return this._applyModification(u2,arguments)},spin:function(){return this._applyModification(d2,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(g2,arguments)},complement:function(){return this._applyCombination(p2,arguments)},monochromatic:function(){return this._applyCombination(m2,arguments)},splitcomplement:function(){return this._applyCombination(v2,arguments)},triad:function(){return this._applyCombination(Ap,[3])},tetrad:function(){return this._applyCombination(Ap,[4])}},Tt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=bs(e[n]));e=r}return Tt(e,t)};function r2(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,u=!1;return typeof e=="string"&&(e=w2(e)),typeof e=="object"&&(Xr(e.r)&&Xr(e.g)&&Xr(e.b)?(t=n2(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xr(e.h)&&Xr(e.s)&&Xr(e.v)?(n=bs(e.s),i=bs(e.v),t=s2(e.h,n,i),l=!0,u="hsv"):Xr(e.h)&&Xr(e.s)&&Xr(e.l)&&(n=bs(e.s),o=bs(e.l),t=i2(e.h,n,o),l=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Sp(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function n2(e,t,r){return{r:ue(e,255)*255,g:ue(t,255)*255,b:ue(r,255)*255}}function xp(e,t,r){e=ue(e,255),t=ue(t,255),r=ue(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=(n+i)/2;if(n==i)o=l=0;else{var f=n-i;switch(l=u>.5?f/(2-n-i):f/(n+i),n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,l:u}}function i2(e,t,r){var n,i,o;e=ue(e,360),t=ue(t,100),r=ue(r,100);function l(h,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?h+(d-h)*6*p:p<1/2?d:p<2/3?h+(d-h)*(2/3-p)*6:h}if(t===0)n=i=o=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=l(f,u,e+1/3),i=l(f,u,e),o=l(f,u,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function wp(e,t,r){e=ue(e,255),t=ue(t,255),r=ue(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=n,f=n-i;if(l=n===0?0:f/n,n==i)o=0;else{switch(n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,v:u}}function s2(e,t,r){e=ue(e,360)*6,t=ue(t,100),r=ue(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,l,o,o,u,r][f],d=[u,r,r,l,o,o][f],p=[o,o,u,r,r,l][f];return{r:h*255,g:d*255,b:p*255}}function Tp(e,t,r,n){var i=[Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function o2(e,t,r,n,i){var o=[Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16)),Sr(Op(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Ep(e,t,r,n){var i=[Sr(Op(n)),Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16))];return i.join("")}Tt.equals=function(e,t){return!e||!t?!1:Tt(e).toRgbString()==Tt(t).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function a2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s-=t/100,r.s=Go(r.s),Tt(r)}function l2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s+=t/100,r.s=Go(r.s),Tt(r)}function u2(e){return Tt(e).desaturate(100)}function f2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l+=t/100,r.l=Go(r.l),Tt(r)}function c2(e,t){t=t===0?0:t||10;var r=Tt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Tt(r)}function h2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l-=t/100,r.l=Go(r.l),Tt(r)}function d2(e,t){var r=Tt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tt(r)}function p2(e){var t=Tt(e).toHsl();return t.h=(t.h+180)%360,Tt(t)}function Ap(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tt(e).toHsl(),n=[Tt(e)],i=360/t,o=1;o<t;o++)n.push(Tt({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function v2(e){var t=Tt(e).toHsl(),r=t.h;return[Tt(e),Tt({h:(r+72)%360,s:t.s,l:t.l}),Tt({h:(r+216)%360,s:t.s,l:t.l})]}function g2(e,t,r){t=t||6,r=r||30;var n=Tt(e).toHsl(),i=360/r,o=[Tt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(Tt(n));return o}function m2(e,t){t=t||6;for(var r=Tt(e).toHsv(),n=r.h,i=r.s,o=r.v,l=[],u=1/t;t--;)l.push(Tt({h:n,s:i,v:o})),o=(o+u)%1;return l}Tt.mix=function(e,t,r){r=r===0?0:r||50;var n=Tt(e).toRgb(),i=Tt(t).toRgb(),o=r/100,l={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return Tt(l)},Tt.readability=function(e,t){var r=Tt(e),n=Tt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tt.isReadable=function(e,t,r){var n=Tt.readability(e,t),i,o;switch(o=!1,i=T2(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Tt.mostReadable=function(e,t,r){var n=null,i=0,o,l,u,f;r=r||{},l=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)o=Tt.readability(e,t[h]),o>i&&(i=o,n=Tt(t[h]));return Tt.isReadable(e,n,{level:u,size:f})||!l?n:(r.includeFallbackColors=!1,Tt.mostReadable(e,["#fff","#000"],r))};var Nu=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},y2=Tt.hexNames=_2(Nu);function _2(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Sp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ue(e,t){b2(e)&&(e="100%");var r=x2(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Go(e){return Math.min(1,Math.max(0,e))}function Je(e){return parseInt(e,16)}function b2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function x2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Sr(e){return e.length==1?"0"+e:""+e}function bs(e){return e<=1&&(e=e*100+"%"),e}function Op(e){return Math.round(parseFloat(e)*255).toString(16)}function Cp(e){return Je(e)/255}var Or=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Xr(e){return!!Or.CSS_UNIT.exec(e)}function w2(e){e=e.replace(t2,"").replace(e2,"").toLowerCase();var t=!1;if(Nu[e])e=Nu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:Cp(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),a:Cp(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function T2(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var E2=function(){function e(t,r){var n=[],i=!0,o=!1,l=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){o=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(o)throw l}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xs=Math.PI*2,Mu=function(t,r,n,i,o,l,u){var f=t.x,h=t.y;f*=r,h*=n;var d=i*f-o*h,p=o*f+i*h;return{x:d+l,y:p+u}},A2=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),o=Math.sin(t),l=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-o*n,y:o+i*n},{x:l+u*n,y:u-l*n},{x:l,y:u}]},Rp=function(t,r,n,i){var o=t*i-r*n<0?-1:1,l=t*n+r*i;return l>1&&(l=1),l<-1&&(l=-1),o*Math.acos(l)},S2=function(t,r,n,i,o,l,u,f,h,d,p,c){var v=Math.pow(o,2),m=Math.pow(l,2),y=Math.pow(p,2),b=Math.pow(c,2),_=v*m-v*b-m*y;_<0&&(_=0),_/=v*b+m*y,_=Math.sqrt(_)*(u===f?-1:1);var w=_*o/l*c,T=_*-l/o*p,x=d*w-h*T+(t+n)/2,A=h*w+d*T+(r+i)/2,I=(p-w)/o,S=(c-T)/l,O=(-p-w)/o,L=(-c-T)/l,R=Rp(1,0,I,S),C=Rp(I,S,O,L);return f===0&&C>0&&(C-=xs),f===1&&C<0&&(C+=xs),[x,A,R,C]},Ip=function(t){var r=t.px,n=t.py,i=t.cx,o=t.cy,l=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,d=t.largeArcFlag,p=d===void 0?0:d,c=t.sweepFlag,v=c===void 0?0:c,m=[];if(l===0||u===0)return[];var y=Math.sin(h*xs/360),b=Math.cos(h*xs/360),_=b*(r-i)/2+y*(n-o)/2,w=-y*(r-i)/2+b*(n-o)/2;if(_===0&&w===0)return[];l=Math.abs(l),u=Math.abs(u);var T=Math.pow(_,2)/Math.pow(l,2)+Math.pow(w,2)/Math.pow(u,2);T>1&&(l*=Math.sqrt(T),u*=Math.sqrt(T));var x=S2(r,n,i,o,l,u,p,v,y,b,_,w),A=E2(x,4),I=A[0],S=A[1],O=A[2],L=A[3],R=Math.abs(L)/(xs/4);Math.abs(1-R)<1e-7&&(R=1);var C=Math.max(Math.ceil(R),1);L/=C;for(var P=0;P<C;P++)m.push(A2(O,L)),O+=L;return m.map(function(M){var F=Mu(M[0],l,u,b,y,I,S),q=F.x,Q=F.y,z=Mu(M[1],l,u,b,y,I,S),rt=z.x,W=z.y,U=Mu(M[2],l,u,b,y,I,S),k=U.x,j=U.y;return{x1:q,y1:Q,x2:rt,y2:W,x:k,y:j}})};class O2 extends Iu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=Tt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const o=parseFloat(t.getAttribute(n)),l=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,d=0;u!==null&&(h=parseFloat(u)),f!==null&&(d=parseFloat(f)),i?this.drawEllipse(h,d,o,l):this.drawCircle(h,d,o)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),o=parseFloat(t.getAttribute("height")),l=parseFloat(t.getAttribute("rx"));l?this.drawRoundedRect(r,n,i,o,l):this.drawRect(r,n,i,o)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(o=>{const[l,u]=o.split(":");if(l){const f=this._convertStyleName(l);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:o,strokeOpacity:l,strokeWidth:u,cap:f,join:h,miterLimit:d}=this._svgStyle(t),c=u!==null?parseFloat(u):o!==null?1:0,v=o!==null?this._hexToUint(o):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:o===null&&u===null&&r?this.line.width:c,alpha:l===null?this.line.alpha:parseFloat(l),color:o===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:d===null&&r?this.line.miterLimit:parseFloat(d)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const o=Pu(r.trim());for(let l=0;l<o.length;l++){const u=o[l];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{Ip({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}case"A":{Ip({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var jo={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},C2=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function R2(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&C2.indexOf(e)>=0}function I2(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function P2(e){return(e|32)===97}function Ri(e){return e>=48&&e<=57}function N2(e){return e>=48&&e<=57||e===43||e===45||e===46}function M2(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function qo(e){for(;e.index<e.max&&R2(e.path.charCodeAt(e.index));)e.index++}function k2(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function L2(e){var t=e.index,r=t,n=e.max,i=!1,o=!1,l=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Ri(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Ri(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Ri(e.path.charCodeAt(r));)r++,o=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Ri(e.path.charCodeAt(r));)r++,l=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!o&&!l){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Ri(e.path.charCodeAt(r)))for(;r<n&&Ri(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function ku(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=jo[r]&&(e.result.push([t].concat(n.splice(0,jo[r]))),!!jo[r]););}function F2(e){var t=e.max,r,n,i,o,l;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=P2(r),!I2(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(o=jo[e.path[e.index].toLowerCase()],e.index++,qo(e),e.data=[],!o){ku(e);return}for(i=!1;;){for(l=o;l>0;l--){if(n&&(l===3||l===4)?k2(e):L2(e),e.err.length){ku(e);return}e.data.push(e.param),qo(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,qo(e),i=!0)}if(!i&&(e.index>=e.max||!N2(e.path.charCodeAt(e.index))))break}ku(e)}var B2=function(t){var r=new M2(t),n=r.max;for(qo(r);r.index<n&&!r.err.length;)F2(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function D2(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Cr(){if(!(this instanceof Cr))return new Cr;this.queue=[],this.cache=null}Cr.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Cr.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Cr.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Cr.prototype.rotate=function(e,t,r){var n,i,o;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),o=Math.sin(n),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Cr.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Cr.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Cr.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=D2(this.cache,this.queue[e]);return this.cache},Cr.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var Pp=Cr,U2=Pp,$2={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},G2=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,j2=/[\s,]+/,q2=function(t){var r=new U2,n,i;return t.split(G2).forEach(function(o){if(o.length){if(typeof $2[o]<"u"){n=o;return}switch(i=o.split(j2).map(function(l){return+l||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},ws=Math.PI*2;function Np(e,t,r,n){var i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function z2(e,t,r,n,i,o,l,u,f,h){var d=h*(e-r)/2+f*(t-n)/2,p=-f*(e-r)/2+h*(t-n)/2,c=l*l,v=u*u,m=d*d,y=p*p,b=c*v-c*y-v*m;b<0&&(b=0),b/=c*y+v*m,b=Math.sqrt(b)*(i===o?-1:1);var _=b*l/u*p,w=b*-u/l*d,T=h*_-f*w+(e+r)/2,x=f*_+h*w+(t+n)/2,A=(d-_)/l,I=(p-w)/u,S=(-d-_)/l,O=(-p-w)/u,L=Np(1,0,A,I),R=Np(A,I,S,O);return o===0&&R>0&&(R-=ws),o===1&&R<0&&(R+=ws),[T,x,L,R]}function H2(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),l=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+l*r,l-o*r,o,l]}var V2=function(t,r,n,i,o,l,u,f,h){var d=Math.sin(h*ws/360),p=Math.cos(h*ws/360),c=p*(t-n)/2+d*(r-i)/2,v=-d*(t-n)/2+p*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var m=c*c/(u*u)+v*v/(f*f);m>1&&(u*=Math.sqrt(m),f*=Math.sqrt(m));var y=z2(t,r,n,i,o,l,u,f,d,p),b=[],_=y[2],w=y[3],T=Math.max(Math.ceil(Math.abs(w)/(ws/4)),1);w/=T;for(var x=0;x<T;x++)b.push(H2(_,w)),_+=w;return b.map(function(A){for(var I=0;I<A.length;I+=2){var S=A[I+0],O=A[I+1];S*=u,O*=f;var L=p*S-d*O,R=d*S+p*O;A[I+0]=L+y[0],A[I+1]=R+y[1]}return A})},Ts=1e-10,Mp=Math.PI/180;function Es(e,t,r){if(!(this instanceof Es))return new Es(e,t,r);this.rx=e,this.ry=t,this.ax=r}Es.prototype.transform=function(e){var t=Math.cos(this.ax*Mp),r=Math.sin(this.ax*Mp),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],o=n[1]*n[1]+n[3]*n[3],l=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+o)/2;if(l<Ts*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];l=Math.sqrt(l);var h=u+l/2,d=u-l/2;return this.ax=Math.abs(f)<Ts&&Math.abs(h-o)<Ts?90:Math.atan(Math.abs(f)>Math.abs(h-o)?(h-i)/f:f/(h-o))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(d)):(this.ax+=90,this.rx=Math.sqrt(d),this.ry=Math.sqrt(h)),this},Es.prototype.isDegenerate=function(){return this.rx<Ts*this.ry||this.ry<Ts*this.rx};var W2=Es,X2=B2,K2=q2,pn=Pp,Y2=V2,Z2=W2;function ve(e){if(!(this instanceof ve))return new ve(e);var t=X2(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}ve.from=function(e){if(typeof e=="string")return new ve(e);if(e instanceof ve){var t=new ve("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return pn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},ve.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,o,l){var u,f,h,d;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(o,n[1],!1),f=u[0]===e.calc(o,l,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],l,!1),f=u[1]===e.calc(o,l,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var p=e.toArray(),c=Z2(n[1],n[2],n[3]).transform(p);if(p[0]*p[3]-p[1]*p[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===o&&n[7]===l||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":d=i>0,u=e.calc(n[1],n[2],d),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],d=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],d),f.push(u[0],u[1])}t.segments[i]=f},!0)},ve.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=pn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},ve.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var o=this.segments[n],l=o[0];l!==t||l==="m"||l==="M"?(l==="m"&&t==="z"&&(e+=" "),e+=l,r=!1):r=!0;for(var u=1;u<o.length;u++){var f=o[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=l}return e},ve.prototype.translate=function(e,t){return this.__stack.push(pn().translate(e,t||0)),this},ve.prototype.scale=function(e,t){return this.__stack.push(pn().scale(e,!t&&t!==0?e:t)),this},ve.prototype.rotate=function(e,t,r){return this.__stack.push(pn().rotate(e,t||0,r||0)),this},ve.prototype.skewX=function(e){return this.__stack.push(pn().skewX(e)),this},ve.prototype.skewY=function(e){return this.__stack.push(pn().skewY(e)),this},ve.prototype.matrix=function(e){return this.__stack.push(pn().matrix(e)),this},ve.prototype.transform=function(e){return e.trim()?(this.__stack.push(K2(e)),this):this},ve.prototype.round=function(e){var t=0,r=0,n=0,i=0,o;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(l){var u=l[0].toLowerCase()===l[0];switch(l[0]){case"H":case"h":u&&(l[1]+=n),n=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"V":case"v":u&&(l[1]+=i),i=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(l[1]+=n,l[2]+=i),n=l[1]-l[1].toFixed(e),i=l[2]-l[2].toFixed(e),t=n,r=i,l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e);return;case"A":case"a":u&&(l[6]+=n,l[7]+=i),n=l[6]-l[6].toFixed(e),i=l[7]-l[7].toFixed(e),l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e),l[3]=+l[3].toFixed(e+2),l[6]=+l[6].toFixed(e),l[7]=+l[7].toFixed(e);return;default:o=l.length,u&&(l[o-2]+=n,l[o-1]+=i),n=l[o-2]-l[o-2].toFixed(e),i=l[o-1]-l[o-1].toFixed(e),l.forEach(function(f,h){h&&(l[h]=+l[h].toFixed(e))});return}}),this},ve.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,o=0,l=0,u=0,f=0,h,d,p;if(t||this.__evaluateStack(),r.forEach(function(c,v){var m=e(c,v,o,l);Array.isArray(m)&&(n[v]=m,i=!0);var y=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":o=c[1]+(y?o:0),l=c[2]+(y?l:0),u=o,f=l;return;case"h":case"H":o=c[1]+(y?o:0);return;case"v":case"V":l=c[1]+(y?l:0);return;case"z":case"Z":o=u,l=f;return;default:o=c[c.length-2]+(y?o:0),l=c[c.length-1]+(y?l:0)}}),!i)return this;for(p=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(d=0;d<n[h].length;d++)p.push(n[h][d]);else p.push(r[h]);return this.segments=p,this},ve.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toUpperCase(),l;if(i!==o)switch(e[0]=o,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(l=1;l<e.length;l++)e[l]+=l%2?r:n}},!0),this},ve.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toLowerCase(),l;if(i!==o&&!(t===0&&i==="M"))switch(e[0]=o,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(l=1;l<e.length;l++)e[l]-=l%2?r:n}},!0),this},ve.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,o,l,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(o=r+e[6],l=n+e[7]):(o=e[6],l=e[7]),i=Y2(r,n,o,l,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},ve.prototype.unshort=function(){var e=this.segments,t,r,n,i,o;return this.iterate(function(l,u,f,h){var d=l[0],p=d.toUpperCase(),c;u&&(p==="T"?(c=d==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"q":"Q",i,o,l[1],l[2]]):p==="S"&&(c=d==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"c":"C",i,o,l[1],l[2],l[3],l[4]]))}),this};var Q2=ve,J2=Q2;const tA=En(J2),eA=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(null),i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),{path:u,transformation:{x:f,y:h,width:d,height:p,anchor:c,hexColor:v,fill:m,stroke:y="none",strokeWidth:b=0,colorCorrection:_={}},pointerdown:w,pointerup:T}=e,x=xe.useApp(),{temperatureFilter:A,sharpnessFilter:I,hueFilter:S,blurFilter:O,adjustmentFilter:L}=_s(_),{blurRadius:R=0}=_;return Et.useEffect(()=>{const C=tA(u).scale(5).translate(0,0).toString(),P=`<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${p}">
1920
+ */(function(e,t){(function(r,n){e.exports=n()})(QE,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},o={number:function(y){return+v("number",y)},"coordinate pair":function(y){var b=v("number",y);if(b===null&&!y)return null;v("comma");var _=v("number",!0);return{x:+b,y:+_}},"arc definition":function(y){var b=o["coordinate pair"](y);if(!b&&!y)return null;v("comma");var _=+v("number",!0);v("comma",!0);var w=!!+v("flag",!0);v("comma");var T=!!+v("flag",!0);v("comma");var x=o["coordinate pair"](!0);return{radii:b,rotation:_,large:w,clockwise:T,end:x}}},l=0,u=[];l<n.length;){var f=v("command"),h=f.toUpperCase(),d=f!==h,p;switch(h){case"M":p=m("coordinate pair").map(function(y,b){return b===1&&(f=d?"l":"L"),c({end:y})});break;case"L":case"T":p=m("coordinate pair").map(function(y){return c({end:y})});break;case"C":if(p=m("coordinate pair"),p.length%3)throw Error("Expected coordinate pair triplet at position "+l);p=p.reduce(function(y,b,_){var w=_%3;if(!w)y.push(c({cp1:b}));else{var T=y[y.length-1];T[w===1?"cp2":"end"]=b}return y},[]);break;case"Q":case"S":if(p=m("coordinate pair"),p.length&1)throw Error("Expected coordinate pair couple at position "+l);p=p.reduce(function(y,b,_){var w=_&1;if(!w)y.push(c({cp:b}));else{var T=y[y.length-1];T.end=b}return y},[]);break;case"H":case"V":p=m("number").map(function(y){return c({value:y})});break;case"A":p=m("arc definition").map(c);break;case"Z":p=[{code:"Z"}];break}u.push.apply(u,p)}return u;function c(y){return y.code=f,y.relative=d,y}function v(y,b){i[y].lastIndex=l;var _=i[y].exec(n);if(!_||_.index!==l){if(!b)return null;throw Error("Expected "+y+" at position "+l)}return l=i[y].lastIndex,_[1]}function m(y){for(var b=[],_,w=!0;_=o[y](w);)b.push(_),w=!!v("comma");return b}}})})(JE);const t2=/^\s+/,e2=/\s+$/;function Tt(e,t){if(e=e||"",t=t||{},e instanceof Tt)return e;if(!(this instanceof Tt))return new Tt(e,t);var r=r2(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,o,l;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*o+.0722*l},setAlpha:function(e){return this._a=Sp(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=wp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=wp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=xp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=xp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Tp(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return o2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ue(this._r,255)*100)+"%",g:Math.round(ue(this._g,255)*100)+"%",b:Math.round(ue(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ue(this._r,255)*100)+"%, "+Math.round(ue(this._g,255)*100)+"%, "+Math.round(ue(this._b,255)*100)+"%)":"rgba("+Math.round(ue(this._r,255)*100)+"%, "+Math.round(ue(this._g,255)*100)+"%, "+Math.round(ue(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:y2[Tp(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Ep(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Tt(e);r="#"+Ep(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Tt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(f2,arguments)},brighten:function(){return this._applyModification(c2,arguments)},darken:function(){return this._applyModification(h2,arguments)},desaturate:function(){return this._applyModification(a2,arguments)},saturate:function(){return this._applyModification(l2,arguments)},greyscale:function(){return this._applyModification(u2,arguments)},spin:function(){return this._applyModification(d2,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(g2,arguments)},complement:function(){return this._applyCombination(p2,arguments)},monochromatic:function(){return this._applyCombination(m2,arguments)},splitcomplement:function(){return this._applyCombination(v2,arguments)},triad:function(){return this._applyCombination(Ap,[3])},tetrad:function(){return this._applyCombination(Ap,[4])}},Tt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=bs(e[n]));e=r}return Tt(e,t)};function r2(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,u=!1;return typeof e=="string"&&(e=w2(e)),typeof e=="object"&&(Xr(e.r)&&Xr(e.g)&&Xr(e.b)?(t=n2(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xr(e.h)&&Xr(e.s)&&Xr(e.v)?(n=bs(e.s),i=bs(e.v),t=s2(e.h,n,i),l=!0,u="hsv"):Xr(e.h)&&Xr(e.s)&&Xr(e.l)&&(n=bs(e.s),o=bs(e.l),t=i2(e.h,n,o),l=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Sp(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function n2(e,t,r){return{r:ue(e,255)*255,g:ue(t,255)*255,b:ue(r,255)*255}}function xp(e,t,r){e=ue(e,255),t=ue(t,255),r=ue(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=(n+i)/2;if(n==i)o=l=0;else{var f=n-i;switch(l=u>.5?f/(2-n-i):f/(n+i),n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,l:u}}function i2(e,t,r){var n,i,o;e=ue(e,360),t=ue(t,100),r=ue(r,100);function l(h,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?h+(d-h)*6*p:p<1/2?d:p<2/3?h+(d-h)*(2/3-p)*6:h}if(t===0)n=i=o=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=l(f,u,e+1/3),i=l(f,u,e),o=l(f,u,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function wp(e,t,r){e=ue(e,255),t=ue(t,255),r=ue(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=n,f=n-i;if(l=n===0?0:f/n,n==i)o=0;else{switch(n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,v:u}}function s2(e,t,r){e=ue(e,360)*6,t=ue(t,100),r=ue(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,l,o,o,u,r][f],d=[u,r,r,l,o,o][f],p=[o,o,u,r,r,l][f];return{r:h*255,g:d*255,b:p*255}}function Tp(e,t,r,n){var i=[Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function o2(e,t,r,n,i){var o=[Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16)),Sr(Op(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Ep(e,t,r,n){var i=[Sr(Op(n)),Sr(Math.round(e).toString(16)),Sr(Math.round(t).toString(16)),Sr(Math.round(r).toString(16))];return i.join("")}Tt.equals=function(e,t){return!e||!t?!1:Tt(e).toRgbString()==Tt(t).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function a2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s-=t/100,r.s=Go(r.s),Tt(r)}function l2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s+=t/100,r.s=Go(r.s),Tt(r)}function u2(e){return Tt(e).desaturate(100)}function f2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l+=t/100,r.l=Go(r.l),Tt(r)}function c2(e,t){t=t===0?0:t||10;var r=Tt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Tt(r)}function h2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l-=t/100,r.l=Go(r.l),Tt(r)}function d2(e,t){var r=Tt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tt(r)}function p2(e){var t=Tt(e).toHsl();return t.h=(t.h+180)%360,Tt(t)}function Ap(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tt(e).toHsl(),n=[Tt(e)],i=360/t,o=1;o<t;o++)n.push(Tt({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function v2(e){var t=Tt(e).toHsl(),r=t.h;return[Tt(e),Tt({h:(r+72)%360,s:t.s,l:t.l}),Tt({h:(r+216)%360,s:t.s,l:t.l})]}function g2(e,t,r){t=t||6,r=r||30;var n=Tt(e).toHsl(),i=360/r,o=[Tt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(Tt(n));return o}function m2(e,t){t=t||6;for(var r=Tt(e).toHsv(),n=r.h,i=r.s,o=r.v,l=[],u=1/t;t--;)l.push(Tt({h:n,s:i,v:o})),o=(o+u)%1;return l}Tt.mix=function(e,t,r){r=r===0?0:r||50;var n=Tt(e).toRgb(),i=Tt(t).toRgb(),o=r/100,l={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return Tt(l)},Tt.readability=function(e,t){var r=Tt(e),n=Tt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tt.isReadable=function(e,t,r){var n=Tt.readability(e,t),i,o;switch(o=!1,i=T2(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Tt.mostReadable=function(e,t,r){var n=null,i=0,o,l,u,f;r=r||{},l=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)o=Tt.readability(e,t[h]),o>i&&(i=o,n=Tt(t[h]));return Tt.isReadable(e,n,{level:u,size:f})||!l?n:(r.includeFallbackColors=!1,Tt.mostReadable(e,["#fff","#000"],r))};var Nu=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},y2=Tt.hexNames=_2(Nu);function _2(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Sp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ue(e,t){b2(e)&&(e="100%");var r=x2(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Go(e){return Math.min(1,Math.max(0,e))}function Je(e){return parseInt(e,16)}function b2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function x2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Sr(e){return e.length==1?"0"+e:""+e}function bs(e){return e<=1&&(e=e*100+"%"),e}function Op(e){return Math.round(parseFloat(e)*255).toString(16)}function Cp(e){return Je(e)/255}var Or=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Xr(e){return!!Or.CSS_UNIT.exec(e)}function w2(e){e=e.replace(t2,"").replace(e2,"").toLowerCase();var t=!1;if(Nu[e])e=Nu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:Cp(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),a:Cp(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function T2(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var E2=function(){function e(t,r){var n=[],i=!0,o=!1,l=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){o=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(o)throw l}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),xs=Math.PI*2,Mu=function(t,r,n,i,o,l,u){var f=t.x,h=t.y;f*=r,h*=n;var d=i*f-o*h,p=o*f+i*h;return{x:d+l,y:p+u}},A2=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),o=Math.sin(t),l=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-o*n,y:o+i*n},{x:l+u*n,y:u-l*n},{x:l,y:u}]},Rp=function(t,r,n,i){var o=t*i-r*n<0?-1:1,l=t*n+r*i;return l>1&&(l=1),l<-1&&(l=-1),o*Math.acos(l)},S2=function(t,r,n,i,o,l,u,f,h,d,p,c){var v=Math.pow(o,2),m=Math.pow(l,2),y=Math.pow(p,2),b=Math.pow(c,2),_=v*m-v*b-m*y;_<0&&(_=0),_/=v*b+m*y,_=Math.sqrt(_)*(u===f?-1:1);var w=_*o/l*c,T=_*-l/o*p,x=d*w-h*T+(t+n)/2,A=h*w+d*T+(r+i)/2,I=(p-w)/o,S=(c-T)/l,O=(-p-w)/o,L=(-c-T)/l,R=Rp(1,0,I,S),C=Rp(I,S,O,L);return f===0&&C>0&&(C-=xs),f===1&&C<0&&(C+=xs),[x,A,R,C]},Ip=function(t){var r=t.px,n=t.py,i=t.cx,o=t.cy,l=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,d=t.largeArcFlag,p=d===void 0?0:d,c=t.sweepFlag,v=c===void 0?0:c,m=[];if(l===0||u===0)return[];var y=Math.sin(h*xs/360),b=Math.cos(h*xs/360),_=b*(r-i)/2+y*(n-o)/2,w=-y*(r-i)/2+b*(n-o)/2;if(_===0&&w===0)return[];l=Math.abs(l),u=Math.abs(u);var T=Math.pow(_,2)/Math.pow(l,2)+Math.pow(w,2)/Math.pow(u,2);T>1&&(l*=Math.sqrt(T),u*=Math.sqrt(T));var x=S2(r,n,i,o,l,u,p,v,y,b,_,w),A=E2(x,4),I=A[0],S=A[1],O=A[2],L=A[3],R=Math.abs(L)/(xs/4);Math.abs(1-R)<1e-7&&(R=1);var C=Math.max(Math.ceil(R),1);L/=C;for(var P=0;P<C;P++)m.push(A2(O,L)),O+=L;return m.map(function(M){var F=Mu(M[0],l,u,b,y,I,S),q=F.x,Q=F.y,z=Mu(M[1],l,u,b,y,I,S),rt=z.x,W=z.y,D=Mu(M[2],l,u,b,y,I,S),k=D.x,j=D.y;return{x1:q,y1:Q,x2:rt,y2:W,x:k,y:j}})};class O2 extends Iu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=Tt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const o=parseFloat(t.getAttribute(n)),l=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,d=0;u!==null&&(h=parseFloat(u)),f!==null&&(d=parseFloat(f)),i?this.drawEllipse(h,d,o,l):this.drawCircle(h,d,o)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),o=parseFloat(t.getAttribute("height")),l=parseFloat(t.getAttribute("rx"));l?this.drawRoundedRect(r,n,i,o,l):this.drawRect(r,n,i,o)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(o=>{const[l,u]=o.split(":");if(l){const f=this._convertStyleName(l);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:o,strokeOpacity:l,strokeWidth:u,cap:f,join:h,miterLimit:d}=this._svgStyle(t),c=u!==null?parseFloat(u):o!==null?1:0,v=o!==null?this._hexToUint(o):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:o===null&&u===null&&r?this.line.width:c,alpha:l===null?this.line.alpha:parseFloat(l),color:o===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:d===null&&r?this.line.miterLimit:parseFloat(d)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const o=Pu(r.trim());for(let l=0;l<o.length;l++){const u=o[l];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{Ip({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}case"A":{Ip({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var jo={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},C2=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function R2(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&C2.indexOf(e)>=0}function I2(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function P2(e){return(e|32)===97}function Ri(e){return e>=48&&e<=57}function N2(e){return e>=48&&e<=57||e===43||e===45||e===46}function M2(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function qo(e){for(;e.index<e.max&&R2(e.path.charCodeAt(e.index));)e.index++}function k2(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function L2(e){var t=e.index,r=t,n=e.max,i=!1,o=!1,l=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Ri(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Ri(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Ri(e.path.charCodeAt(r));)r++,o=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Ri(e.path.charCodeAt(r));)r++,l=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!o&&!l){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Ri(e.path.charCodeAt(r)))for(;r<n&&Ri(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function ku(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=jo[r]&&(e.result.push([t].concat(n.splice(0,jo[r]))),!!jo[r]););}function F2(e){var t=e.max,r,n,i,o,l;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=P2(r),!I2(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(o=jo[e.path[e.index].toLowerCase()],e.index++,qo(e),e.data=[],!o){ku(e);return}for(i=!1;;){for(l=o;l>0;l--){if(n&&(l===3||l===4)?k2(e):L2(e),e.err.length){ku(e);return}e.data.push(e.param),qo(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,qo(e),i=!0)}if(!i&&(e.index>=e.max||!N2(e.path.charCodeAt(e.index))))break}ku(e)}var B2=function(t){var r=new M2(t),n=r.max;for(qo(r);r.index<n&&!r.err.length;)F2(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function D2(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Cr(){if(!(this instanceof Cr))return new Cr;this.queue=[],this.cache=null}Cr.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Cr.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Cr.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Cr.prototype.rotate=function(e,t,r){var n,i,o;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),o=Math.sin(n),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Cr.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Cr.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Cr.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=D2(this.cache,this.queue[e]);return this.cache},Cr.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var Pp=Cr,U2=Pp,$2={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},G2=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,j2=/[\s,]+/,q2=function(t){var r=new U2,n,i;return t.split(G2).forEach(function(o){if(o.length){if(typeof $2[o]<"u"){n=o;return}switch(i=o.split(j2).map(function(l){return+l||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},ws=Math.PI*2;function Np(e,t,r,n){var i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function z2(e,t,r,n,i,o,l,u,f,h){var d=h*(e-r)/2+f*(t-n)/2,p=-f*(e-r)/2+h*(t-n)/2,c=l*l,v=u*u,m=d*d,y=p*p,b=c*v-c*y-v*m;b<0&&(b=0),b/=c*y+v*m,b=Math.sqrt(b)*(i===o?-1:1);var _=b*l/u*p,w=b*-u/l*d,T=h*_-f*w+(e+r)/2,x=f*_+h*w+(t+n)/2,A=(d-_)/l,I=(p-w)/u,S=(-d-_)/l,O=(-p-w)/u,L=Np(1,0,A,I),R=Np(A,I,S,O);return o===0&&R>0&&(R-=ws),o===1&&R<0&&(R+=ws),[T,x,L,R]}function H2(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),l=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+l*r,l-o*r,o,l]}var V2=function(t,r,n,i,o,l,u,f,h){var d=Math.sin(h*ws/360),p=Math.cos(h*ws/360),c=p*(t-n)/2+d*(r-i)/2,v=-d*(t-n)/2+p*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var m=c*c/(u*u)+v*v/(f*f);m>1&&(u*=Math.sqrt(m),f*=Math.sqrt(m));var y=z2(t,r,n,i,o,l,u,f,d,p),b=[],_=y[2],w=y[3],T=Math.max(Math.ceil(Math.abs(w)/(ws/4)),1);w/=T;for(var x=0;x<T;x++)b.push(H2(_,w)),_+=w;return b.map(function(A){for(var I=0;I<A.length;I+=2){var S=A[I+0],O=A[I+1];S*=u,O*=f;var L=p*S-d*O,R=d*S+p*O;A[I+0]=L+y[0],A[I+1]=R+y[1]}return A})},Ts=1e-10,Mp=Math.PI/180;function Es(e,t,r){if(!(this instanceof Es))return new Es(e,t,r);this.rx=e,this.ry=t,this.ax=r}Es.prototype.transform=function(e){var t=Math.cos(this.ax*Mp),r=Math.sin(this.ax*Mp),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],o=n[1]*n[1]+n[3]*n[3],l=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+o)/2;if(l<Ts*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];l=Math.sqrt(l);var h=u+l/2,d=u-l/2;return this.ax=Math.abs(f)<Ts&&Math.abs(h-o)<Ts?90:Math.atan(Math.abs(f)>Math.abs(h-o)?(h-i)/f:f/(h-o))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(d)):(this.ax+=90,this.rx=Math.sqrt(d),this.ry=Math.sqrt(h)),this},Es.prototype.isDegenerate=function(){return this.rx<Ts*this.ry||this.ry<Ts*this.rx};var W2=Es,X2=B2,K2=q2,pn=Pp,Y2=V2,Z2=W2;function ve(e){if(!(this instanceof ve))return new ve(e);var t=X2(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}ve.from=function(e){if(typeof e=="string")return new ve(e);if(e instanceof ve){var t=new ve("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return pn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},ve.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,o,l){var u,f,h,d;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(o,n[1],!1),f=u[0]===e.calc(o,l,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],l,!1),f=u[1]===e.calc(o,l,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var p=e.toArray(),c=Z2(n[1],n[2],n[3]).transform(p);if(p[0]*p[3]-p[1]*p[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===o&&n[7]===l||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":d=i>0,u=e.calc(n[1],n[2],d),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],d=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],d),f.push(u[0],u[1])}t.segments[i]=f},!0)},ve.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=pn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},ve.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var o=this.segments[n],l=o[0];l!==t||l==="m"||l==="M"?(l==="m"&&t==="z"&&(e+=" "),e+=l,r=!1):r=!0;for(var u=1;u<o.length;u++){var f=o[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=l}return e},ve.prototype.translate=function(e,t){return this.__stack.push(pn().translate(e,t||0)),this},ve.prototype.scale=function(e,t){return this.__stack.push(pn().scale(e,!t&&t!==0?e:t)),this},ve.prototype.rotate=function(e,t,r){return this.__stack.push(pn().rotate(e,t||0,r||0)),this},ve.prototype.skewX=function(e){return this.__stack.push(pn().skewX(e)),this},ve.prototype.skewY=function(e){return this.__stack.push(pn().skewY(e)),this},ve.prototype.matrix=function(e){return this.__stack.push(pn().matrix(e)),this},ve.prototype.transform=function(e){return e.trim()?(this.__stack.push(K2(e)),this):this},ve.prototype.round=function(e){var t=0,r=0,n=0,i=0,o;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(l){var u=l[0].toLowerCase()===l[0];switch(l[0]){case"H":case"h":u&&(l[1]+=n),n=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"V":case"v":u&&(l[1]+=i),i=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(l[1]+=n,l[2]+=i),n=l[1]-l[1].toFixed(e),i=l[2]-l[2].toFixed(e),t=n,r=i,l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e);return;case"A":case"a":u&&(l[6]+=n,l[7]+=i),n=l[6]-l[6].toFixed(e),i=l[7]-l[7].toFixed(e),l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e),l[3]=+l[3].toFixed(e+2),l[6]=+l[6].toFixed(e),l[7]=+l[7].toFixed(e);return;default:o=l.length,u&&(l[o-2]+=n,l[o-1]+=i),n=l[o-2]-l[o-2].toFixed(e),i=l[o-1]-l[o-1].toFixed(e),l.forEach(function(f,h){h&&(l[h]=+l[h].toFixed(e))});return}}),this},ve.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,o=0,l=0,u=0,f=0,h,d,p;if(t||this.__evaluateStack(),r.forEach(function(c,v){var m=e(c,v,o,l);Array.isArray(m)&&(n[v]=m,i=!0);var y=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":o=c[1]+(y?o:0),l=c[2]+(y?l:0),u=o,f=l;return;case"h":case"H":o=c[1]+(y?o:0);return;case"v":case"V":l=c[1]+(y?l:0);return;case"z":case"Z":o=u,l=f;return;default:o=c[c.length-2]+(y?o:0),l=c[c.length-1]+(y?l:0)}}),!i)return this;for(p=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(d=0;d<n[h].length;d++)p.push(n[h][d]);else p.push(r[h]);return this.segments=p,this},ve.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toUpperCase(),l;if(i!==o)switch(e[0]=o,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(l=1;l<e.length;l++)e[l]+=l%2?r:n}},!0),this},ve.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toLowerCase(),l;if(i!==o&&!(t===0&&i==="M"))switch(e[0]=o,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(l=1;l<e.length;l++)e[l]-=l%2?r:n}},!0),this},ve.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,o,l,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(o=r+e[6],l=n+e[7]):(o=e[6],l=e[7]),i=Y2(r,n,o,l,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},ve.prototype.unshort=function(){var e=this.segments,t,r,n,i,o;return this.iterate(function(l,u,f,h){var d=l[0],p=d.toUpperCase(),c;u&&(p==="T"?(c=d==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"q":"Q",i,o,l[1],l[2]]):p==="S"&&(c=d==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"c":"C",i,o,l[1],l[2],l[3],l[4]]))}),this};var Q2=ve,J2=Q2;const tA=En(J2),eA=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(null),i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),{path:u,transformation:{x:f,y:h,width:d,height:p,anchor:c,hexColor:v,fill:m,stroke:y="none",strokeWidth:b=0,colorCorrection:_={}},pointerdown:w,pointerup:T}=e,x=ye.useApp(),{temperatureFilter:A,sharpnessFilter:I,hueFilter:S,blurFilter:O,adjustmentFilter:L}=_s(_),{blurRadius:R=0}=_;return Et.useEffect(()=>{const C=tA(u).scale(5).translate(0,0).toString(),P=`<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${p}">
1921
1921
  <path stroke="${y}" stroke-width="${b}" fill="${v||m}" d="${C}">
1922
1922
  </path>
1923
- </svg>`,M=new O2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,y,b,v,m]),ee.jsx(ni,{...e,ref:t,children:ee.jsx(xe.Container,{ref:o,children:ee.jsx(xe.Container,{ref:l,children:r&&ee.jsx(xe.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[A,I,S,L,...R>0?[O]:[]]})})})})});var rA=Mr,nA=function(){return rA.Date.now()},iA=nA,sA=/\s/;function oA(e){for(var t=e.length;t--&&sA.test(e.charAt(t)););return t}var aA=oA,lA=aA,uA=/^\s+/;function fA(e){return e&&e.slice(0,lA(e)+1).replace(uA,"")}var cA=fA,hA=Ki,dA=Zi,pA="[object Symbol]";function vA(e){return typeof e=="symbol"||dA(e)&&hA(e)==pA}var zo=vA,gA=cA,kp=Yi,mA=zo,Lp=0/0,yA=/^[-+]0x[0-9a-f]+$/i,_A=/^0b[01]+$/i,bA=/^0o[0-7]+$/i,xA=parseInt;function wA(e){if(typeof e=="number")return e;if(mA(e))return Lp;if(kp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=kp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gA(e);var r=_A.test(e);return r||bA.test(e)?xA(e.slice(2),r?2:8):yA.test(e)?Lp:+e}var TA=wA,EA=Yi,Lu=iA,Fp=TA,AA="Expected a function",SA=Math.max,OA=Math.min;function CA(e,t,r){var n,i,o,l,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(AA);t=Fp(t)||0,EA(r)&&(d=!!r.leading,p="maxWait"in r,o=p?SA(Fp(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var S=n,O=i;return n=i=void 0,h=I,l=e.apply(O,S),l}function m(I){return h=I,u=setTimeout(_,t),d?v(I):l}function y(I){var S=I-f,O=I-h,L=t-S;return p?OA(L,o-O):L}function b(I){var S=I-f,O=I-h;return f===void 0||S>=t||S<0||p&&O>=o}function _(){var I=Lu();if(b(I))return w(I);u=setTimeout(_,y(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,l)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:w(Lu())}function A(){var I=Lu(),S=b(I);if(n=arguments,i=this,f=I,S){if(u===void 0)return m(f);if(p)return clearTimeout(u),u=setTimeout(_,t),v(f)}return u===void 0&&(u=setTimeout(_,t)),l}return A.cancel=T,A.flush=x,A}var RA=CA;const Bp=En(RA),IA=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1);console.log("allProps",e);const n=_t.useRef(null),i=_t.useRef(t),o=_t.useRef(null),{tl:l,isDragging:u}=_t.useContext(ti),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,m=e.audioStartAt||d,y=e.audioEndAt||p,b=Et.useRef(null);mr(ke.PAUSE,()=>{var S;n.current&&b.current&&((S=b.current)==null||S.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const _=S=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:S,end:p,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=Bp((S,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:S,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=Bp(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var S;n.current&&(console.log("audio gsapOnStart",d),(S=b.current)==null||S.stop(),i.current.isPlaying=!1,i.current.completed=!0)},A=(S,O)=>{var R,C,P,M;const L=S+((R=o.current)==null?void 0:R.time());b.current&&i.current.isDragging?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((C=b.current)==null||C.refresh(),(P=b.current)==null||P.refreshPaused(),(M=b.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return _t.useEffect(()=>{let S=Te.context(()=>{});if(n.current&&l.current){const O={duration:Number(y)-Number(m),onStart:_,onComplete:x,onStartParams:[m,y],onCompleteParams:[],onInterrupt:I,onUpdate:A,onUpdateParams:[m,y]};o.current&&o.current.kill(),S=Te.context(()=>{o.current=Te.from(n.current,O,m),l.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),l.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),Te.killTweensOf(o.current)),S.revert()}},[d,p,m,y]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(Qi(h)||(b.current=ny.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{b.current&&(b.current.pause&&b.current.pause(),b.current.destroy&&b.current.destroy())}),[f,h]),ee.jsx(xe.Container,{ref:n})};function PA(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Dp=PA;function NA(){this.__data__=[],this.size=0}var MA=NA;function kA(e,t){return e===t||e!==e&&t!==t}var Up=kA,LA=Up;function FA(e,t){for(var r=e.length;r--;)if(LA(e[r][0],t))return r;return-1}var Ho=FA,BA=Ho,DA=Array.prototype,UA=DA.splice;function $A(e){var t=this.__data__,r=BA(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():UA.call(t,r,1),--this.size,!0}var GA=$A,jA=Ho;function qA(e){var t=this.__data__,r=jA(t,e);return r<0?void 0:t[r][1]}var zA=qA,HA=Ho;function VA(e){return HA(this.__data__,e)>-1}var WA=VA,XA=Ho;function KA(e,t){var r=this.__data__,n=XA(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var YA=KA,ZA=MA,QA=GA,JA=zA,tS=WA,eS=YA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=ZA,Ii.prototype.delete=QA,Ii.prototype.get=JA,Ii.prototype.has=tS,Ii.prototype.set=eS;var Vo=Ii,rS=Vo;function nS(){this.__data__=new rS,this.size=0}var iS=nS;function sS(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var oS=sS;function aS(e){return this.__data__.get(e)}var lS=aS;function uS(e){return this.__data__.has(e)}var fS=uS,cS=ei,hS=cS(Object,"create"),Wo=hS,$p=Wo;function dS(){this.__data__=$p?$p(null):{},this.size=0}var pS=dS;function vS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gS=vS,mS=Wo,yS="__lodash_hash_undefined__",_S=Object.prototype,bS=_S.hasOwnProperty;function xS(e){var t=this.__data__;if(mS){var r=t[e];return r===yS?void 0:r}return bS.call(t,e)?t[e]:void 0}var wS=xS,TS=Wo,ES=Object.prototype,AS=ES.hasOwnProperty;function SS(e){var t=this.__data__;return TS?t[e]!==void 0:AS.call(t,e)}var OS=SS,CS=Wo,RS="__lodash_hash_undefined__";function IS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=CS&&t===void 0?RS:t,this}var PS=IS,NS=pS,MS=gS,kS=wS,LS=OS,FS=PS;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=NS,Pi.prototype.delete=MS,Pi.prototype.get=kS,Pi.prototype.has=LS,Pi.prototype.set=FS;var BS=Pi,Gp=BS,DS=Vo,US=Va;function $S(){this.size=0,this.__data__={hash:new Gp,map:new(US||DS),string:new Gp}}var GS=$S;function jS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qS=jS,zS=qS;function HS(e,t){var r=e.__data__;return zS(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Xo=HS,VS=Xo;function WS(e){var t=VS(this,e).delete(e);return this.size-=t?1:0,t}var XS=WS,KS=Xo;function YS(e){return KS(this,e).get(e)}var ZS=YS,QS=Xo;function JS(e){return QS(this,e).has(e)}var tO=JS,eO=Xo;function rO(e,t){var r=eO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var nO=rO,iO=GS,sO=XS,oO=ZS,aO=tO,lO=nO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=iO,Ni.prototype.delete=sO,Ni.prototype.get=oO,Ni.prototype.has=aO,Ni.prototype.set=lO;var Fu=Ni,uO=Vo,fO=Va,cO=Fu,hO=200;function dO(e,t){var r=this.__data__;if(r instanceof uO){var n=r.__data__;if(!fO||n.length<hO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new cO(n)}return r.set(e,t),this.size=r.size,this}var pO=dO,vO=Vo,gO=iS,mO=oS,yO=lS,_O=fS,bO=pO;function Mi(e){var t=this.__data__=new vO(e);this.size=t.size}Mi.prototype.clear=gO,Mi.prototype.delete=mO,Mi.prototype.get=yO,Mi.prototype.has=_O,Mi.prototype.set=bO;var jp=Mi,xO="__lodash_hash_undefined__";function wO(e){return this.__data__.set(e,xO),this}var TO=wO;function EO(e){return this.__data__.has(e)}var AO=EO,SO=Fu,OO=TO,CO=AO;function Ko(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new SO;++t<r;)this.add(e[t])}Ko.prototype.add=Ko.prototype.push=OO,Ko.prototype.has=CO;var RO=Ko;function IO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var PO=IO;function NO(e,t){return e.has(t)}var MO=NO,kO=RO,LO=PO,FO=MO,BO=1,DO=2;function UO(e,t,r,n,i,o){var l=r&BO,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&DO?new kO:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],y=t[p];if(n)var b=l?n(y,m,p,t,e,o):n(m,y,p,e,t,o);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!LO(t,function(_,w){if(!FO(v,w)&&(m===_||i(m,_,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(m===y||i(m,y,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var qp=UO,$O=Mr,GO=$O.Uint8Array,jO=GO;function qO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var zO=qO;function HO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VO=HO,zp=js,Hp=jO,WO=Up,XO=qp,KO=zO,YO=VO,ZO=1,QO=2,JO="[object Boolean]",tC="[object Date]",eC="[object Error]",rC="[object Map]",nC="[object Number]",iC="[object RegExp]",sC="[object Set]",oC="[object String]",aC="[object Symbol]",lC="[object ArrayBuffer]",uC="[object DataView]",Vp=zp?zp.prototype:void 0,Bu=Vp?Vp.valueOf:void 0;function fC(e,t,r,n,i,o,l){switch(r){case uC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lC:return!(e.byteLength!=t.byteLength||!o(new Hp(e),new Hp(t)));case JO:case tC:case nC:return WO(+e,+t);case eC:return e.name==t.name&&e.message==t.message;case iC:case oC:return e==t+"";case rC:var u=KO;case sC:var f=n&ZO;if(u||(u=YO),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=QO,l.set(e,t);var d=XO(u(e),u(t),n,i,o,l);return l.delete(e),d;case aC:if(Bu)return Bu.call(e)==Bu.call(t)}return!1}var cC=fC;function hC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var dC=hC,pC=dC,vC=kr;function gC(e,t,r){var n=t(e);return vC(e)?n:pC(n,r(e))}var mC=gC;function yC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[i++]=l)}return o}var _C=yC;function bC(){return[]}var xC=bC,wC=_C,TC=xC,EC=Object.prototype,AC=EC.propertyIsEnumerable,Wp=Object.getOwnPropertySymbols,SC=Wp?function(e){return e==null?[]:(e=Object(e),wC(Wp(e),function(t){return AC.call(e,t)}))}:TC,OC=SC;function CC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var RC=CC,IC=9007199254740991,PC=/^(?:0|[1-9]\d*)$/;function NC(e,t){var r=typeof e;return t=t??IC,!!t&&(r=="number"||r!="symbol"&&PC.test(e))&&e>-1&&e%1==0&&e<t}var Xp=NC,MC=RC,kC=Qa,LC=kr,FC=tl,BC=Xp,DC=el,UC=Object.prototype,$C=UC.hasOwnProperty;function GC(e,t){var r=LC(e),n=!r&&kC(e),i=!r&&!n&&FC(e),o=!r&&!n&&!i&&DC(e),l=r||n||i||o,u=l?MC(e.length,String):[],f=u.length;for(var h in e)(t||$C.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||BC(h,f)))&&u.push(h);return u}var jC=GC,qC=jC,zC=dc,HC=qs;function VC(e){return HC(e)?qC(e):zC(e)}var Du=VC,WC=mC,XC=OC,KC=Du;function YC(e){return WC(e,KC,XC)}var ZC=YC,Kp=ZC,QC=1,JC=Object.prototype,tR=JC.hasOwnProperty;function eR(e,t,r,n,i,o){var l=r&QC,u=Kp(e),f=u.length,h=Kp(t),d=h.length;if(f!=d&&!l)return!1;for(var p=f;p--;){var c=u[p];if(!(l?c in t:tR.call(t,c)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=l;++p<f;){c=u[p];var _=e[c],w=t[c];if(n)var T=l?n(w,_,c,t,e,o):n(_,w,c,e,t,o);if(!(T===void 0?_===w||i(_,w,r,n,o):T)){y=!1;break}b||(b=c=="constructor")}if(y&&!b){var x=e.constructor,A=t.constructor;x!=A&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof A=="function"&&A instanceof A)&&(y=!1)}return o.delete(e),o.delete(t),y}var rR=eR,Uu=jp,nR=qp,iR=cC,sR=rR,Yp=Cc,Zp=kr,Qp=tl,oR=el,aR=1,Jp="[object Arguments]",tv="[object Array]",Yo="[object Object]",lR=Object.prototype,ev=lR.hasOwnProperty;function uR(e,t,r,n,i,o){var l=Zp(e),u=Zp(t),f=l?tv:Yp(e),h=u?tv:Yp(t);f=f==Jp?Yo:f,h=h==Jp?Yo:h;var d=f==Yo,p=h==Yo,c=f==h;if(c&&Qp(e)){if(!Qp(t))return!1;l=!0,d=!1}if(c&&!d)return o||(o=new Uu),l||oR(e)?nR(e,t,r,n,i,o):iR(e,t,f,r,n,i,o);if(!(r&aR)){var v=d&&ev.call(e,"__wrapped__"),m=p&&ev.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,b=m?t.value():t;return o||(o=new Uu),i(y,b,r,n,o)}}return c?(o||(o=new Uu),sR(e,t,r,n,i,o)):!1}var fR=uR,cR=fR,rv=Zi;function nv(e,t,r,n,i){return e===t?!0:e==null||t==null||!rv(e)&&!rv(t)?e!==e&&t!==t:cR(e,t,r,n,nv,i)}var iv=nv,hR=jp,dR=iv,pR=1,vR=2;function gR(e,t,r,n){var i=r.length,o=i,l=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new hR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?dR(d,h,pR|vR,n,p):c))return!1}}return!0}var mR=gR,yR=Yi;function _R(e){return e===e&&!yR(e)}var sv=_R,bR=sv,xR=Du;function wR(e){for(var t=xR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,bR(i)]}return t}var TR=wR;function ER(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ov=ER,AR=mR,SR=TR,OR=ov;function CR(e){var t=SR(e);return t.length==1&&t[0][2]?OR(t[0][0],t[0][1]):function(r){return r===e||AR(r,e,t)}}var RR=CR,IR=kr,PR=zo,NR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MR=/^\w*$/;function kR(e,t){if(IR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||PR(e)?!0:MR.test(e)||!NR.test(e)||t!=null&&e in Object(t)}var $u=kR,av=Fu,LR="Expected a function";function Gu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var l=e.apply(this,n);return r.cache=o.set(i,l)||o,l};return r.cache=new(Gu.Cache||av),r}Gu.Cache=av;var FR=Gu,BR=FR,DR=500;function UR(e){var t=BR(e,function(n){return r.size===DR&&r.clear(),n}),r=t.cache;return t}var $R=UR,GR=$R,jR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qR=/\\(\\)?/g,zR=GR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jR,function(r,n,i,o){t.push(i?o.replace(qR,"$1"):n||r)}),t}),HR=zR,lv=js,VR=Dp,WR=kr,XR=zo,KR=1/0,uv=lv?lv.prototype:void 0,fv=uv?uv.toString:void 0;function cv(e){if(typeof e=="string")return e;if(WR(e))return VR(e,cv)+"";if(XR(e))return fv?fv.call(e):"";var t=e+"";return t=="0"&&1/e==-KR?"-0":t}var YR=cv,ZR=YR;function QR(e){return e==null?"":ZR(e)}var JR=QR,tI=kr,eI=$u,rI=HR,nI=JR;function iI(e,t){return tI(e)?e:eI(e,t)?[e]:rI(nI(e))}var hv=iI,sI=zo,oI=1/0;function aI(e){if(typeof e=="string"||sI(e))return e;var t=e+"";return t=="0"&&1/e==-oI?"-0":t}var Zo=aI,lI=hv,uI=Zo;function fI(e,t){t=lI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[uI(t[r++])];return r&&r==n?e:void 0}var dv=fI,cI=dv;function hI(e,t,r){var n=e==null?void 0:cI(e,t);return n===void 0?r:n}var dI=hI;function pI(e,t){return e!=null&&t in Object(e)}var vI=pI,gI=hv,mI=Qa,yI=kr,_I=Xp,bI=Ja,xI=Zo;function wI(e,t,r){t=gI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var l=xI(t[n]);if(!(o=e!=null&&r(e,l)))break;e=e[l]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&bI(i)&&_I(l,i)&&(yI(e)||mI(e)))}var TI=wI,EI=vI,AI=TI;function SI(e,t){return e!=null&&AI(e,t,EI)}var OI=SI,CI=iv,RI=dI,II=OI,PI=$u,NI=sv,MI=ov,kI=Zo,LI=1,FI=2;function BI(e,t){return PI(e)&&NI(t)?MI(kI(e),t):function(r){var n=RI(r,e);return n===void 0&&n===t?II(r,e):CI(t,n,LI|FI)}}var DI=BI;function UI(e){return e}var $I=UI;function GI(e){return function(t){return t==null?void 0:t[e]}}var jI=GI,qI=dv;function zI(e){return function(t){return qI(t,e)}}var HI=zI,VI=jI,WI=HI,XI=$u,KI=Zo;function YI(e){return XI(e)?VI(KI(e)):WI(e)}var ZI=YI,QI=RR,JI=DI,tP=$I,eP=kr,rP=ZI;function nP(e){return typeof e=="function"?e:e==null?tP:typeof e=="object"?eP(e)?JI(e[0],e[1]):QI(e):rP(e)}var iP=nP;function sP(e){return function(t,r,n){for(var i=-1,o=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var oP=sP,aP=oP,lP=aP(),uP=lP,fP=uP,cP=Du;function hP(e,t){return e&&fP(e,t,cP)}var dP=hP,pP=qs;function vP(e,t){return function(r,n){if(r==null)return r;if(!pP(r))return e(r,n);for(var i=r.length,o=t?i:-1,l=Object(r);(t?o--:++o<i)&&n(l[o],o,l)!==!1;);return r}}var gP=vP,mP=dP,yP=gP,_P=yP(mP),bP=_P,xP=bP,wP=qs;function TP(e,t){var r=-1,n=wP(e)?Array(e.length):[];return xP(e,function(i,o,l){n[++r]=t(i,o,l)}),n}var EP=TP,AP=Dp,SP=iP,OP=EP,CP=kr;function RP(e,t){var r=CP(e)?AP:OP;return r(e,SP(t))}var IP=RP;const PP=En(IP);var jn={},pv={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.loop=Kr.conditional=Kr.parse=void 0;var NP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Kr.parse=NP;var MP=function(t,r){return function(n,i,o,l){r(n,i,o)&&l(n,t,i,o)}};Kr.conditional=MP;var kP=function(t,r){return function(n,i,o,l){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Kr.loop=kP;var ye={};Object.defineProperty(ye,"__esModule",{value:!0}),ye.readBits=ye.readArray=ye.readUnsigned=ye.readString=ye.peekBytes=ye.readBytes=ye.peekByte=ye.readByte=ye.buildStream=void 0;var LP=function(t){return{data:t,pos:0}};ye.buildStream=LP;var vv=function(){return function(t){return t.data[t.pos++]}};ye.readByte=vv;var FP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};ye.peekByte=FP;var Qo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};ye.readBytes=Qo;var BP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};ye.peekBytes=BP;var DP=function(t){return function(r){return Array.from(Qo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};ye.readString=DP;var UP=function(t){return function(r){var n=Qo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};ye.readUnsigned=UP;var $P=function(t,r){return function(n,i,o){for(var l=typeof r=="function"?r(n,i,o):r,u=Qo(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};ye.readArray=$P;var GP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},jP=function(t){return function(r){for(var n=vv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=GP(i,f.index,f.length):l[u]=i[f.index],l},{})}};ye.readBits=jP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Kr,r=ye,n={blocks:function(c){for(var v=0,m=[],y=c.data.length,b=0,_=(0,r.readByte)()(c);_!==v&&_;_=(0,r.readByte)()(c)){if(c.pos+_>=y){var w=y-c.pos;m.push((0,r.readBytes)(w)(c)),b+=w;break}m.push((0,r.readBytes)(_)(c)),b+=_}for(var T=new Uint8Array(b),x=0,A=0;A<m.length;A++)T.set(m[A],x),x+=m[A].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,m){return(0,r.readBytes)(m.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,m){return(0,r.readString)(m.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,l],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(pv);var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.deinterlace=void 0;var qP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var m=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(m))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=l[h];d<i;d+=u[h])o(d,f),f++;return n};Jo.deinterlace=qP;var ta={};Object.defineProperty(ta,"__esModule",{value:!0}),ta.lzw=void 0;var zP=function(t,r,n){var i=4096,o=-1,l=n,u,f,h,d,p,c,v,I,m,y,A,b,S,O,R,L,_=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,p=f+1,u=f+2,v=o,d=b+1,h=(1<<d)-1,m=0;m<f;m++)w[m]=0,T[m]=m;var A,I,S,O,L,R;for(A=I=S=O=L=R=0,y=0;y<l;){if(O===0){if(I<d){A+=r[R]<<I,I+=8,R++;continue}if(m=A&h,A>>=d,I-=d,m>u||m==p)break;if(m==f){d=b+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[m],v=m,S=m;continue}for(c=m,m==u&&(x[O++]=S,m=v);m>f;)x[O++]=T[m],m=w[m];S=T[m]&255,x[O++]=S,u<i&&(w[u]=v,T[u]=S,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,_[L++]=x[O],y++}for(y=L;y<l;y++)_[y]=0;return _};ta.lzw=zP,Object.defineProperty(jn,"__esModule",{value:!0}),jn.decompressFrames=jn.decompressFrame=jn.parseGIF=void 0;var HP=YP(pv),VP=Kr,WP=ye,XP=Jo,KP=ta;function YP(e){return e&&e.__esModule?e:{default:e}}var ZP=function(t){var r=new Uint8Array(t);return(0,VP.parse)((0,WP.buildStream)(r),HP.default)};jn.parseGIF=ZP;var QP=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=l!==t.transparentIndex?255:0}return n},gv=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,l=(0,KP.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(l=(0,XP.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=QP(u)),u};jn.decompressFrame=gv;var JP=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return gv(n,t.gct,r)})};jn.decompressFrames=JP;const mv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},tN=e=>mv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),eN=e=>_t.useReducer(mv,e,tN);var rN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function nN(e){const t=new Blob([rN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const iN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),sN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),_t.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},oN=e=>{const t=_t.useRef(e);return _t.useEffect(()=>{t.current=e},[e]),t},aN=e=>{const t=oN(e);return _t.useCallback(r=>t.current&&t.current(r),[])},lN=sN(()=>new nN,e=>e.terminate()),uN=(e,t)=>{const r=aN(t),n=lN();_t.useEffect(()=>{if(typeof e=="string"){const i=o=>{const l=o.data||o;if(l.src===e){const u=l.error?l:iN(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},fN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),ee.jsx(xe.AnimatedSprite,{ref:n,...r,isPlaying:e})},yv=Et.memo(fN);var ea={exports:{}};/**
1923
+ </svg>`,M=new O2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,y,b,v,m]),ee.jsx(ni,{...e,ref:t,children:ee.jsx(ye.Container,{ref:o,children:ee.jsx(ye.Container,{ref:l,children:r&&ee.jsx(ye.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[A,I,S,L,...R>0?[O]:[]]})})})})});var rA=Mr,nA=function(){return rA.Date.now()},iA=nA,sA=/\s/;function oA(e){for(var t=e.length;t--&&sA.test(e.charAt(t)););return t}var aA=oA,lA=aA,uA=/^\s+/;function fA(e){return e&&e.slice(0,lA(e)+1).replace(uA,"")}var cA=fA,hA=Ki,dA=Zi,pA="[object Symbol]";function vA(e){return typeof e=="symbol"||dA(e)&&hA(e)==pA}var zo=vA,gA=cA,kp=Yi,mA=zo,Lp=0/0,yA=/^[-+]0x[0-9a-f]+$/i,_A=/^0b[01]+$/i,bA=/^0o[0-7]+$/i,xA=parseInt;function wA(e){if(typeof e=="number")return e;if(mA(e))return Lp;if(kp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=kp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gA(e);var r=_A.test(e);return r||bA.test(e)?xA(e.slice(2),r?2:8):yA.test(e)?Lp:+e}var TA=wA,EA=Yi,Lu=iA,Fp=TA,AA="Expected a function",SA=Math.max,OA=Math.min;function CA(e,t,r){var n,i,o,l,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(AA);t=Fp(t)||0,EA(r)&&(d=!!r.leading,p="maxWait"in r,o=p?SA(Fp(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var S=n,O=i;return n=i=void 0,h=I,l=e.apply(O,S),l}function m(I){return h=I,u=setTimeout(_,t),d?v(I):l}function y(I){var S=I-f,O=I-h,L=t-S;return p?OA(L,o-O):L}function b(I){var S=I-f,O=I-h;return f===void 0||S>=t||S<0||p&&O>=o}function _(){var I=Lu();if(b(I))return w(I);u=setTimeout(_,y(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,l)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:w(Lu())}function A(){var I=Lu(),S=b(I);if(n=arguments,i=this,f=I,S){if(u===void 0)return m(f);if(p)return clearTimeout(u),u=setTimeout(_,t),v(f)}return u===void 0&&(u=setTimeout(_,t)),l}return A.cancel=T,A.flush=x,A}var RA=CA;const Bp=En(RA),IA=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1);console.log("allProps",e);const n=_t.useRef(null),i=_t.useRef(t),o=_t.useRef(null),{tl:l,isDragging:u}=_t.useContext(ti),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,m=e.audioStartAt||d,y=e.audioEndAt||p,b=Et.useRef(null);mr(ke.PAUSE,()=>{var S;n.current&&b.current&&((S=b.current)==null||S.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const _=S=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:S,end:p,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=Bp((S,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:S,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=Bp(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var S;n.current&&(console.log("audio gsapOnStart",d),(S=b.current)==null||S.stop(),i.current.isPlaying=!1,i.current.completed=!0)},A=(S,O)=>{var R,C,P,M;const L=S+((R=o.current)==null?void 0:R.time());b.current&&i.current.isDragging?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((C=b.current)==null||C.refresh(),(P=b.current)==null||P.refreshPaused(),(M=b.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return _t.useEffect(()=>{let S=Te.context(()=>{});if(n.current&&l.current){const O={duration:Number(y)-Number(m),onStart:_,onComplete:x,onStartParams:[m,y],onCompleteParams:[],onInterrupt:I,onUpdate:A,onUpdateParams:[m,y]};o.current&&o.current.kill(),S=Te.context(()=>{o.current=Te.from(n.current,O,m),l.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),l.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),Te.killTweensOf(o.current)),S.revert()}},[d,p,m,y]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(Qi(h)||(b.current=ny.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{b.current&&(b.current.pause&&b.current.pause(),b.current.destroy&&b.current.destroy())}),[f,h]),ee.jsx(ye.Container,{ref:n})};function PA(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Dp=PA;function NA(){this.__data__=[],this.size=0}var MA=NA;function kA(e,t){return e===t||e!==e&&t!==t}var Up=kA,LA=Up;function FA(e,t){for(var r=e.length;r--;)if(LA(e[r][0],t))return r;return-1}var Ho=FA,BA=Ho,DA=Array.prototype,UA=DA.splice;function $A(e){var t=this.__data__,r=BA(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():UA.call(t,r,1),--this.size,!0}var GA=$A,jA=Ho;function qA(e){var t=this.__data__,r=jA(t,e);return r<0?void 0:t[r][1]}var zA=qA,HA=Ho;function VA(e){return HA(this.__data__,e)>-1}var WA=VA,XA=Ho;function KA(e,t){var r=this.__data__,n=XA(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var YA=KA,ZA=MA,QA=GA,JA=zA,tS=WA,eS=YA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=ZA,Ii.prototype.delete=QA,Ii.prototype.get=JA,Ii.prototype.has=tS,Ii.prototype.set=eS;var Vo=Ii,rS=Vo;function nS(){this.__data__=new rS,this.size=0}var iS=nS;function sS(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var oS=sS;function aS(e){return this.__data__.get(e)}var lS=aS;function uS(e){return this.__data__.has(e)}var fS=uS,cS=ei,hS=cS(Object,"create"),Wo=hS,$p=Wo;function dS(){this.__data__=$p?$p(null):{},this.size=0}var pS=dS;function vS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gS=vS,mS=Wo,yS="__lodash_hash_undefined__",_S=Object.prototype,bS=_S.hasOwnProperty;function xS(e){var t=this.__data__;if(mS){var r=t[e];return r===yS?void 0:r}return bS.call(t,e)?t[e]:void 0}var wS=xS,TS=Wo,ES=Object.prototype,AS=ES.hasOwnProperty;function SS(e){var t=this.__data__;return TS?t[e]!==void 0:AS.call(t,e)}var OS=SS,CS=Wo,RS="__lodash_hash_undefined__";function IS(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=CS&&t===void 0?RS:t,this}var PS=IS,NS=pS,MS=gS,kS=wS,LS=OS,FS=PS;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=NS,Pi.prototype.delete=MS,Pi.prototype.get=kS,Pi.prototype.has=LS,Pi.prototype.set=FS;var BS=Pi,Gp=BS,DS=Vo,US=Va;function $S(){this.size=0,this.__data__={hash:new Gp,map:new(US||DS),string:new Gp}}var GS=$S;function jS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qS=jS,zS=qS;function HS(e,t){var r=e.__data__;return zS(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Xo=HS,VS=Xo;function WS(e){var t=VS(this,e).delete(e);return this.size-=t?1:0,t}var XS=WS,KS=Xo;function YS(e){return KS(this,e).get(e)}var ZS=YS,QS=Xo;function JS(e){return QS(this,e).has(e)}var tO=JS,eO=Xo;function rO(e,t){var r=eO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var nO=rO,iO=GS,sO=XS,oO=ZS,aO=tO,lO=nO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=iO,Ni.prototype.delete=sO,Ni.prototype.get=oO,Ni.prototype.has=aO,Ni.prototype.set=lO;var Fu=Ni,uO=Vo,fO=Va,cO=Fu,hO=200;function dO(e,t){var r=this.__data__;if(r instanceof uO){var n=r.__data__;if(!fO||n.length<hO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new cO(n)}return r.set(e,t),this.size=r.size,this}var pO=dO,vO=Vo,gO=iS,mO=oS,yO=lS,_O=fS,bO=pO;function Mi(e){var t=this.__data__=new vO(e);this.size=t.size}Mi.prototype.clear=gO,Mi.prototype.delete=mO,Mi.prototype.get=yO,Mi.prototype.has=_O,Mi.prototype.set=bO;var jp=Mi,xO="__lodash_hash_undefined__";function wO(e){return this.__data__.set(e,xO),this}var TO=wO;function EO(e){return this.__data__.has(e)}var AO=EO,SO=Fu,OO=TO,CO=AO;function Ko(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new SO;++t<r;)this.add(e[t])}Ko.prototype.add=Ko.prototype.push=OO,Ko.prototype.has=CO;var RO=Ko;function IO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var PO=IO;function NO(e,t){return e.has(t)}var MO=NO,kO=RO,LO=PO,FO=MO,BO=1,DO=2;function UO(e,t,r,n,i,o){var l=r&BO,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&DO?new kO:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],y=t[p];if(n)var b=l?n(y,m,p,t,e,o):n(m,y,p,e,t,o);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!LO(t,function(_,w){if(!FO(v,w)&&(m===_||i(m,_,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(m===y||i(m,y,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var qp=UO,$O=Mr,GO=$O.Uint8Array,jO=GO;function qO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var zO=qO;function HO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var VO=HO,zp=js,Hp=jO,WO=Up,XO=qp,KO=zO,YO=VO,ZO=1,QO=2,JO="[object Boolean]",tC="[object Date]",eC="[object Error]",rC="[object Map]",nC="[object Number]",iC="[object RegExp]",sC="[object Set]",oC="[object String]",aC="[object Symbol]",lC="[object ArrayBuffer]",uC="[object DataView]",Vp=zp?zp.prototype:void 0,Bu=Vp?Vp.valueOf:void 0;function fC(e,t,r,n,i,o,l){switch(r){case uC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lC:return!(e.byteLength!=t.byteLength||!o(new Hp(e),new Hp(t)));case JO:case tC:case nC:return WO(+e,+t);case eC:return e.name==t.name&&e.message==t.message;case iC:case oC:return e==t+"";case rC:var u=KO;case sC:var f=n&ZO;if(u||(u=YO),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=QO,l.set(e,t);var d=XO(u(e),u(t),n,i,o,l);return l.delete(e),d;case aC:if(Bu)return Bu.call(e)==Bu.call(t)}return!1}var cC=fC;function hC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var dC=hC,pC=dC,vC=kr;function gC(e,t,r){var n=t(e);return vC(e)?n:pC(n,r(e))}var mC=gC;function yC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[i++]=l)}return o}var _C=yC;function bC(){return[]}var xC=bC,wC=_C,TC=xC,EC=Object.prototype,AC=EC.propertyIsEnumerable,Wp=Object.getOwnPropertySymbols,SC=Wp?function(e){return e==null?[]:(e=Object(e),wC(Wp(e),function(t){return AC.call(e,t)}))}:TC,OC=SC;function CC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var RC=CC,IC=9007199254740991,PC=/^(?:0|[1-9]\d*)$/;function NC(e,t){var r=typeof e;return t=t??IC,!!t&&(r=="number"||r!="symbol"&&PC.test(e))&&e>-1&&e%1==0&&e<t}var Xp=NC,MC=RC,kC=Qa,LC=kr,FC=tl,BC=Xp,DC=el,UC=Object.prototype,$C=UC.hasOwnProperty;function GC(e,t){var r=LC(e),n=!r&&kC(e),i=!r&&!n&&FC(e),o=!r&&!n&&!i&&DC(e),l=r||n||i||o,u=l?MC(e.length,String):[],f=u.length;for(var h in e)(t||$C.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||BC(h,f)))&&u.push(h);return u}var jC=GC,qC=jC,zC=dc,HC=qs;function VC(e){return HC(e)?qC(e):zC(e)}var Du=VC,WC=mC,XC=OC,KC=Du;function YC(e){return WC(e,KC,XC)}var ZC=YC,Kp=ZC,QC=1,JC=Object.prototype,tR=JC.hasOwnProperty;function eR(e,t,r,n,i,o){var l=r&QC,u=Kp(e),f=u.length,h=Kp(t),d=h.length;if(f!=d&&!l)return!1;for(var p=f;p--;){var c=u[p];if(!(l?c in t:tR.call(t,c)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=l;++p<f;){c=u[p];var _=e[c],w=t[c];if(n)var T=l?n(w,_,c,t,e,o):n(_,w,c,e,t,o);if(!(T===void 0?_===w||i(_,w,r,n,o):T)){y=!1;break}b||(b=c=="constructor")}if(y&&!b){var x=e.constructor,A=t.constructor;x!=A&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof A=="function"&&A instanceof A)&&(y=!1)}return o.delete(e),o.delete(t),y}var rR=eR,Uu=jp,nR=qp,iR=cC,sR=rR,Yp=Cc,Zp=kr,Qp=tl,oR=el,aR=1,Jp="[object Arguments]",tv="[object Array]",Yo="[object Object]",lR=Object.prototype,ev=lR.hasOwnProperty;function uR(e,t,r,n,i,o){var l=Zp(e),u=Zp(t),f=l?tv:Yp(e),h=u?tv:Yp(t);f=f==Jp?Yo:f,h=h==Jp?Yo:h;var d=f==Yo,p=h==Yo,c=f==h;if(c&&Qp(e)){if(!Qp(t))return!1;l=!0,d=!1}if(c&&!d)return o||(o=new Uu),l||oR(e)?nR(e,t,r,n,i,o):iR(e,t,f,r,n,i,o);if(!(r&aR)){var v=d&&ev.call(e,"__wrapped__"),m=p&&ev.call(t,"__wrapped__");if(v||m){var y=v?e.value():e,b=m?t.value():t;return o||(o=new Uu),i(y,b,r,n,o)}}return c?(o||(o=new Uu),sR(e,t,r,n,i,o)):!1}var fR=uR,cR=fR,rv=Zi;function nv(e,t,r,n,i){return e===t?!0:e==null||t==null||!rv(e)&&!rv(t)?e!==e&&t!==t:cR(e,t,r,n,nv,i)}var iv=nv,hR=jp,dR=iv,pR=1,vR=2;function gR(e,t,r,n){var i=r.length,o=i,l=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new hR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?dR(d,h,pR|vR,n,p):c))return!1}}return!0}var mR=gR,yR=Yi;function _R(e){return e===e&&!yR(e)}var sv=_R,bR=sv,xR=Du;function wR(e){for(var t=xR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,bR(i)]}return t}var TR=wR;function ER(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var ov=ER,AR=mR,SR=TR,OR=ov;function CR(e){var t=SR(e);return t.length==1&&t[0][2]?OR(t[0][0],t[0][1]):function(r){return r===e||AR(r,e,t)}}var RR=CR,IR=kr,PR=zo,NR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MR=/^\w*$/;function kR(e,t){if(IR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||PR(e)?!0:MR.test(e)||!NR.test(e)||t!=null&&e in Object(t)}var $u=kR,av=Fu,LR="Expected a function";function Gu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var l=e.apply(this,n);return r.cache=o.set(i,l)||o,l};return r.cache=new(Gu.Cache||av),r}Gu.Cache=av;var FR=Gu,BR=FR,DR=500;function UR(e){var t=BR(e,function(n){return r.size===DR&&r.clear(),n}),r=t.cache;return t}var $R=UR,GR=$R,jR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qR=/\\(\\)?/g,zR=GR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jR,function(r,n,i,o){t.push(i?o.replace(qR,"$1"):n||r)}),t}),HR=zR,lv=js,VR=Dp,WR=kr,XR=zo,KR=1/0,uv=lv?lv.prototype:void 0,fv=uv?uv.toString:void 0;function cv(e){if(typeof e=="string")return e;if(WR(e))return VR(e,cv)+"";if(XR(e))return fv?fv.call(e):"";var t=e+"";return t=="0"&&1/e==-KR?"-0":t}var YR=cv,ZR=YR;function QR(e){return e==null?"":ZR(e)}var JR=QR,tI=kr,eI=$u,rI=HR,nI=JR;function iI(e,t){return tI(e)?e:eI(e,t)?[e]:rI(nI(e))}var hv=iI,sI=zo,oI=1/0;function aI(e){if(typeof e=="string"||sI(e))return e;var t=e+"";return t=="0"&&1/e==-oI?"-0":t}var Zo=aI,lI=hv,uI=Zo;function fI(e,t){t=lI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[uI(t[r++])];return r&&r==n?e:void 0}var dv=fI,cI=dv;function hI(e,t,r){var n=e==null?void 0:cI(e,t);return n===void 0?r:n}var dI=hI;function pI(e,t){return e!=null&&t in Object(e)}var vI=pI,gI=hv,mI=Qa,yI=kr,_I=Xp,bI=Ja,xI=Zo;function wI(e,t,r){t=gI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var l=xI(t[n]);if(!(o=e!=null&&r(e,l)))break;e=e[l]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&bI(i)&&_I(l,i)&&(yI(e)||mI(e)))}var TI=wI,EI=vI,AI=TI;function SI(e,t){return e!=null&&AI(e,t,EI)}var OI=SI,CI=iv,RI=dI,II=OI,PI=$u,NI=sv,MI=ov,kI=Zo,LI=1,FI=2;function BI(e,t){return PI(e)&&NI(t)?MI(kI(e),t):function(r){var n=RI(r,e);return n===void 0&&n===t?II(r,e):CI(t,n,LI|FI)}}var DI=BI;function UI(e){return e}var $I=UI;function GI(e){return function(t){return t==null?void 0:t[e]}}var jI=GI,qI=dv;function zI(e){return function(t){return qI(t,e)}}var HI=zI,VI=jI,WI=HI,XI=$u,KI=Zo;function YI(e){return XI(e)?VI(KI(e)):WI(e)}var ZI=YI,QI=RR,JI=DI,tP=$I,eP=kr,rP=ZI;function nP(e){return typeof e=="function"?e:e==null?tP:typeof e=="object"?eP(e)?JI(e[0],e[1]):QI(e):rP(e)}var iP=nP;function sP(e){return function(t,r,n){for(var i=-1,o=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var oP=sP,aP=oP,lP=aP(),uP=lP,fP=uP,cP=Du;function hP(e,t){return e&&fP(e,t,cP)}var dP=hP,pP=qs;function vP(e,t){return function(r,n){if(r==null)return r;if(!pP(r))return e(r,n);for(var i=r.length,o=t?i:-1,l=Object(r);(t?o--:++o<i)&&n(l[o],o,l)!==!1;);return r}}var gP=vP,mP=dP,yP=gP,_P=yP(mP),bP=_P,xP=bP,wP=qs;function TP(e,t){var r=-1,n=wP(e)?Array(e.length):[];return xP(e,function(i,o,l){n[++r]=t(i,o,l)}),n}var EP=TP,AP=Dp,SP=iP,OP=EP,CP=kr;function RP(e,t){var r=CP(e)?AP:OP;return r(e,SP(t))}var IP=RP;const PP=En(IP);var jn={},pv={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.loop=Kr.conditional=Kr.parse=void 0;var NP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Kr.parse=NP;var MP=function(t,r){return function(n,i,o,l){r(n,i,o)&&l(n,t,i,o)}};Kr.conditional=MP;var kP=function(t,r){return function(n,i,o,l){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Kr.loop=kP;var _e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.readBits=_e.readArray=_e.readUnsigned=_e.readString=_e.peekBytes=_e.readBytes=_e.peekByte=_e.readByte=_e.buildStream=void 0;var LP=function(t){return{data:t,pos:0}};_e.buildStream=LP;var vv=function(){return function(t){return t.data[t.pos++]}};_e.readByte=vv;var FP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};_e.peekByte=FP;var Qo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};_e.readBytes=Qo;var BP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};_e.peekBytes=BP;var DP=function(t){return function(r){return Array.from(Qo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};_e.readString=DP;var UP=function(t){return function(r){var n=Qo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};_e.readUnsigned=UP;var $P=function(t,r){return function(n,i,o){for(var l=typeof r=="function"?r(n,i,o):r,u=Qo(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};_e.readArray=$P;var GP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},jP=function(t){return function(r){for(var n=vv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=GP(i,f.index,f.length):l[u]=i[f.index],l},{})}};_e.readBits=jP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Kr,r=_e,n={blocks:function(c){for(var v=0,m=[],y=c.data.length,b=0,_=(0,r.readByte)()(c);_!==v&&_;_=(0,r.readByte)()(c)){if(c.pos+_>=y){var w=y-c.pos;m.push((0,r.readBytes)(w)(c)),b+=w;break}m.push((0,r.readBytes)(_)(c)),b+=_}for(var T=new Uint8Array(b),x=0,A=0;A<m.length;A++)T.set(m[A],x),x+=m[A].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,m){return(0,r.readBytes)(m.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,m){return(0,r.readString)(m.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,l],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(pv);var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.deinterlace=void 0;var qP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var m=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(m))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=l[h];d<i;d+=u[h])o(d,f),f++;return n};Jo.deinterlace=qP;var ta={};Object.defineProperty(ta,"__esModule",{value:!0}),ta.lzw=void 0;var zP=function(t,r,n){var i=4096,o=-1,l=n,u,f,h,d,p,c,v,I,m,y,A,b,S,O,R,L,_=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,p=f+1,u=f+2,v=o,d=b+1,h=(1<<d)-1,m=0;m<f;m++)w[m]=0,T[m]=m;var A,I,S,O,L,R;for(A=I=S=O=L=R=0,y=0;y<l;){if(O===0){if(I<d){A+=r[R]<<I,I+=8,R++;continue}if(m=A&h,A>>=d,I-=d,m>u||m==p)break;if(m==f){d=b+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[m],v=m,S=m;continue}for(c=m,m==u&&(x[O++]=S,m=v);m>f;)x[O++]=T[m],m=w[m];S=T[m]&255,x[O++]=S,u<i&&(w[u]=v,T[u]=S,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,_[L++]=x[O],y++}for(y=L;y<l;y++)_[y]=0;return _};ta.lzw=zP,Object.defineProperty(jn,"__esModule",{value:!0}),jn.decompressFrames=jn.decompressFrame=jn.parseGIF=void 0;var HP=YP(pv),VP=Kr,WP=_e,XP=Jo,KP=ta;function YP(e){return e&&e.__esModule?e:{default:e}}var ZP=function(t){var r=new Uint8Array(t);return(0,VP.parse)((0,WP.buildStream)(r),HP.default)};jn.parseGIF=ZP;var QP=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=l!==t.transparentIndex?255:0}return n},gv=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,l=(0,KP.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(l=(0,XP.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=QP(u)),u};jn.decompressFrame=gv;var JP=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return gv(n,t.gct,r)})};jn.decompressFrames=JP;const mv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},tN=e=>mv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),eN=e=>_t.useReducer(mv,e,tN);var rN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function nN(e){const t=new Blob([rN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const iN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),sN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),_t.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},oN=e=>{const t=_t.useRef(e);return _t.useEffect(()=>{t.current=e},[e]),t},aN=e=>{const t=oN(e);return _t.useCallback(r=>t.current&&t.current(r),[])},lN=sN(()=>new nN,e=>e.terminate()),uN=(e,t)=>{const r=aN(t),n=lN();_t.useEffect(()=>{if(typeof e=="string"){const i=o=>{const l=o.data||o;if(l.src===e){const u=l.error?l:iN(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},fN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),ee.jsx(ye.AnimatedSprite,{ref:n,...r,isPlaying:e})},yv=Et.memo(fN);var ea={exports:{}};/**
1924
1924
  * @license
1925
1925
  * Lodash <https://lodash.com/>
1926
1926
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1927
1927
  * Released under MIT license <https://lodash.com/license>
1928
1928
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1929
1929
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1930
- */ea.exports,function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,m=1,y=2,b=1,_=2,w=4,T=8,x=16,A=32,I=64,S=128,O=256,L=512,R=30,C="...",P=800,M=16,F=1,q=2,Q=3,z=1/0,rt=9007199254740991,W=17976931348623157e292,U=0/0,k=4294967295,j=k-1,G=k>>>1,K=[["ary",S],["bind",b],["bindKey",_],["curry",T],["curryRight",x],["flip",L],["partial",A],["partialRight",I],["rearg",O]],X="[object Arguments]",$="[object Array]",V="[object AsyncFunction]",Z="[object Boolean]",J="[object Date]",nt="[object DOMException]",at="[object Error]",dt="[object Function]",mt="[object GeneratorFunction]",xt="[object Map]",Ct="[object Number]",fe="[object Null]",Xt="[object Object]",st="[object Promise]",lt="[object Proxy]",pt="[object RegExp]",vt="[object Set]",ct="[object String]",Pt="[object Symbol]",Lt="[object Undefined]",Nt="[object WeakMap]",He="[object WeakSet]",Ge="[object ArrayBuffer]",Zt="[object DataView]",As="[object Float32Array]",ce="[object Float64Array]",lr="[object Int8Array]",ju="[object Int16Array]",qu="[object Int32Array]",zu="[object Uint8Array]",Hu="[object Uint8ClampedArray]",Vu="[object Uint16Array]",Wu="[object Uint32Array]",yN=/\b__p \+= '';/g,_N=/\b(__p \+=) '' \+/g,bN=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tv=/&(?:amp|lt|gt|quot|#39);/g,Ev=/[&<>"']/g,xN=RegExp(Tv.source),wN=RegExp(Ev.source),TN=/<%-([\s\S]+?)%>/g,EN=/<%([\s\S]+?)%>/g,Av=/<%=([\s\S]+?)%>/g,AN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SN=/^\w*$/,ON=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/[\\^$.*+?()[\]{}|]/g,CN=RegExp(Xu.source),Ku=/^\s+/,RN=/\s/,IN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,PN=/\{\n\/\* \[wrapped with (.+)\] \*/,NN=/,? & /,MN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kN=/[()=,{}\[\]\/\s]/,LN=/\\(\\)?/g,FN=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sv=/\w*$/,BN=/^[-+]0x[0-9a-f]+$/i,DN=/^0b[01]+$/i,UN=/^\[object .+?Constructor\]$/,$N=/^0o[0-7]+$/i,GN=/^(?:0|[1-9]\d*)$/,jN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ra=/($^)/,qN=/['\n\r\u2028\u2029\\]/g,na="\\ud800-\\udfff",zN="\\u0300-\\u036f",HN="\\ufe20-\\ufe2f",VN="\\u20d0-\\u20ff",Ov=zN+HN+VN,Cv="\\u2700-\\u27bf",Rv="a-z\\xdf-\\xf6\\xf8-\\xff",WN="\\xac\\xb1\\xd7\\xf7",XN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",KN="\\u2000-\\u206f",YN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Iv="A-Z\\xc0-\\xd6\\xd8-\\xde",Pv="\\ufe0e\\ufe0f",Nv=WN+XN+KN+YN,Yu="['’]",ZN="["+na+"]",Mv="["+Nv+"]",ia="["+Ov+"]",kv="\\d+",QN="["+Cv+"]",Lv="["+Rv+"]",Fv="[^"+na+Nv+kv+Cv+Rv+Iv+"]",Zu="\\ud83c[\\udffb-\\udfff]",JN="(?:"+ia+"|"+Zu+")",Bv="[^"+na+"]",Qu="(?:\\ud83c[\\udde6-\\uddff]){2}",Ju="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+Iv+"]",Dv="\\u200d",Uv="(?:"+Lv+"|"+Fv+")",tM="(?:"+ki+"|"+Fv+")",$v="(?:"+Yu+"(?:d|ll|m|re|s|t|ve))?",Gv="(?:"+Yu+"(?:D|LL|M|RE|S|T|VE))?",jv=JN+"?",qv="["+Pv+"]?",eM="(?:"+Dv+"(?:"+[Bv,Qu,Ju].join("|")+")"+qv+jv+")*",rM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zv=qv+jv+eM,iM="(?:"+[QN,Qu,Ju].join("|")+")"+zv,sM="(?:"+[Bv+ia+"?",ia,Qu,Ju,ZN].join("|")+")",oM=RegExp(Yu,"g"),aM=RegExp(ia,"g"),tf=RegExp(Zu+"(?="+Zu+")|"+sM+zv,"g"),lM=RegExp([ki+"?"+Lv+"+"+$v+"(?="+[Mv,ki,"$"].join("|")+")",tM+"+"+Gv+"(?="+[Mv,ki+Uv,"$"].join("|")+")",ki+"?"+Uv+"+"+$v,ki+"+"+Gv,nM,rM,kv,iM].join("|"),"g"),uM=RegExp("["+Dv+na+Ov+Pv+"]"),fM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hM=-1,le={};le[As]=le[ce]=le[lr]=le[ju]=le[qu]=le[zu]=le[Hu]=le[Vu]=le[Wu]=!0,le[X]=le[$]=le[Ge]=le[Z]=le[Zt]=le[J]=le[at]=le[dt]=le[xt]=le[Ct]=le[Xt]=le[pt]=le[vt]=le[ct]=le[Nt]=!1;var oe={};oe[X]=oe[$]=oe[Ge]=oe[Zt]=oe[Z]=oe[J]=oe[As]=oe[ce]=oe[lr]=oe[ju]=oe[qu]=oe[xt]=oe[Ct]=oe[Xt]=oe[pt]=oe[vt]=oe[ct]=oe[Pt]=oe[zu]=oe[Hu]=oe[Vu]=oe[Wu]=!0,oe[at]=oe[dt]=oe[Nt]=!1;var dM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},pM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vM={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},gM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mM=parseFloat,yM=parseInt,Hv=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,_M=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Hv||_M||Function("return this")(),ef=t&&!t.nodeType&&t,qn=ef&&!0&&e&&!e.nodeType&&e,Vv=qn&&qn.exports===ef,rf=Vv&&Hv.process,ur=function(){try{var tt=qn&&qn.require&&qn.require("util").types;return tt||rf&&rf.binding&&rf.binding("util")}catch{}}(),Wv=ur&&ur.isArrayBuffer,Xv=ur&&ur.isDate,Kv=ur&&ur.isMap,Yv=ur&&ur.isRegExp,Zv=ur&&ur.isSet,Qv=ur&&ur.isTypedArray;function tr(tt,ot,it){switch(it.length){case 0:return tt.call(ot);case 1:return tt.call(ot,it[0]);case 2:return tt.call(ot,it[0],it[1]);case 3:return tt.call(ot,it[0],it[1],it[2])}return tt.apply(ot,it)}function bM(tt,ot,it,bt){for(var It=-1,Kt=tt==null?0:tt.length;++It<Kt;){var Ae=tt[It];ot(bt,Ae,it(Ae),tt)}return bt}function fr(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt&&ot(tt[it],it,tt)!==!1;);return tt}function xM(tt,ot){for(var it=tt==null?0:tt.length;it--&&ot(tt[it],it,tt)!==!1;);return tt}function Jv(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt;)if(!ot(tt[it],it,tt))return!1;return!0}function vn(tt,ot){for(var it=-1,bt=tt==null?0:tt.length,It=0,Kt=[];++it<bt;){var Ae=tt[it];ot(Ae,it,tt)&&(Kt[It++]=Ae)}return Kt}function sa(tt,ot){var it=tt==null?0:tt.length;return!!it&&Li(tt,ot,0)>-1}function nf(tt,ot,it){for(var bt=-1,It=tt==null?0:tt.length;++bt<It;)if(it(ot,tt[bt]))return!0;return!1}function he(tt,ot){for(var it=-1,bt=tt==null?0:tt.length,It=Array(bt);++it<bt;)It[it]=ot(tt[it],it,tt);return It}function gn(tt,ot){for(var it=-1,bt=ot.length,It=tt.length;++it<bt;)tt[It+it]=ot[it];return tt}function sf(tt,ot,it,bt){var It=-1,Kt=tt==null?0:tt.length;for(bt&&Kt&&(it=tt[++It]);++It<Kt;)it=ot(it,tt[It],It,tt);return it}function wM(tt,ot,it,bt){var It=tt==null?0:tt.length;for(bt&&It&&(it=tt[--It]);It--;)it=ot(it,tt[It],It,tt);return it}function of(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt;)if(ot(tt[it],it,tt))return!0;return!1}var TM=af("length");function EM(tt){return tt.split("")}function AM(tt){return tt.match(MN)||[]}function tg(tt,ot,it){var bt;return it(tt,function(It,Kt,Ae){if(ot(It,Kt,Ae))return bt=Kt,!1}),bt}function oa(tt,ot,it,bt){for(var It=tt.length,Kt=it+(bt?1:-1);bt?Kt--:++Kt<It;)if(ot(tt[Kt],Kt,tt))return Kt;return-1}function Li(tt,ot,it){return ot===ot?BM(tt,ot,it):oa(tt,eg,it)}function SM(tt,ot,it,bt){for(var It=it-1,Kt=tt.length;++It<Kt;)if(bt(tt[It],ot))return It;return-1}function eg(tt){return tt!==tt}function rg(tt,ot){var it=tt==null?0:tt.length;return it?uf(tt,ot)/it:U}function af(tt){return function(ot){return ot==null?r:ot[tt]}}function lf(tt){return function(ot){return tt==null?r:tt[ot]}}function ng(tt,ot,it,bt,It){return It(tt,function(Kt,Ae,ne){it=bt?(bt=!1,Kt):ot(it,Kt,Ae,ne)}),it}function OM(tt,ot){var it=tt.length;for(tt.sort(ot);it--;)tt[it]=tt[it].value;return tt}function uf(tt,ot){for(var it,bt=-1,It=tt.length;++bt<It;){var Kt=ot(tt[bt]);Kt!==r&&(it=it===r?Kt:it+Kt)}return it}function ff(tt,ot){for(var it=-1,bt=Array(tt);++it<tt;)bt[it]=ot(it);return bt}function CM(tt,ot){return he(ot,function(it){return[it,tt[it]]})}function ig(tt){return tt&&tt.slice(0,lg(tt)+1).replace(Ku,"")}function er(tt){return function(ot){return tt(ot)}}function cf(tt,ot){return he(ot,function(it){return tt[it]})}function Ss(tt,ot){return tt.has(ot)}function sg(tt,ot){for(var it=-1,bt=tt.length;++it<bt&&Li(ot,tt[it],0)>-1;);return it}function og(tt,ot){for(var it=tt.length;it--&&Li(ot,tt[it],0)>-1;);return it}function RM(tt,ot){for(var it=tt.length,bt=0;it--;)tt[it]===ot&&++bt;return bt}var IM=lf(dM),PM=lf(pM);function NM(tt){return"\\"+gM[tt]}function MM(tt,ot){return tt==null?r:tt[ot]}function Fi(tt){return uM.test(tt)}function kM(tt){return fM.test(tt)}function LM(tt){for(var ot,it=[];!(ot=tt.next()).done;)it.push(ot.value);return it}function hf(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt,It){it[++ot]=[It,bt]}),it}function ag(tt,ot){return function(it){return tt(ot(it))}}function mn(tt,ot){for(var it=-1,bt=tt.length,It=0,Kt=[];++it<bt;){var Ae=tt[it];(Ae===ot||Ae===d)&&(tt[it]=d,Kt[It++]=it)}return Kt}function aa(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt){it[++ot]=bt}),it}function FM(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt){it[++ot]=[bt,bt]}),it}function BM(tt,ot,it){for(var bt=it-1,It=tt.length;++bt<It;)if(tt[bt]===ot)return bt;return-1}function DM(tt,ot,it){for(var bt=it+1;bt--;)if(tt[bt]===ot)return bt;return bt}function Bi(tt){return Fi(tt)?$M(tt):TM(tt)}function Rr(tt){return Fi(tt)?GM(tt):EM(tt)}function lg(tt){for(var ot=tt.length;ot--&&RN.test(tt.charAt(ot)););return ot}var UM=lf(vM);function $M(tt){for(var ot=tf.lastIndex=0;tf.test(tt);)++ot;return ot}function GM(tt){return tt.match(tf)||[]}function jM(tt){return tt.match(lM)||[]}var qM=function tt(ot){ot=ot==null?Ne:Di.defaults(Ne.Object(),ot,Di.pick(Ne,cM));var it=ot.Array,bt=ot.Date,It=ot.Error,Kt=ot.Function,Ae=ot.Math,ne=ot.Object,df=ot.RegExp,zM=ot.String,cr=ot.TypeError,la=it.prototype,HM=Kt.prototype,Ui=ne.prototype,ua=ot["__core-js_shared__"],fa=HM.toString,te=Ui.hasOwnProperty,VM=0,ug=function(){var s=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),ca=Ui.toString,WM=fa.call(ne),XM=Ne._,KM=df("^"+fa.call(te).replace(Xu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=Vv?ot.Buffer:r,yn=ot.Symbol,da=ot.Uint8Array,fg=ha?ha.allocUnsafe:r,pa=ag(ne.getPrototypeOf,ne),cg=ne.create,hg=Ui.propertyIsEnumerable,va=la.splice,dg=yn?yn.isConcatSpreadable:r,Os=yn?yn.iterator:r,zn=yn?yn.toStringTag:r,ga=function(){try{var s=Kn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),YM=ot.clearTimeout!==Ne.clearTimeout&&ot.clearTimeout,ZM=bt&&bt.now!==Ne.Date.now&&bt.now,QM=ot.setTimeout!==Ne.setTimeout&&ot.setTimeout,ma=Ae.ceil,ya=Ae.floor,pf=ne.getOwnPropertySymbols,JM=ha?ha.isBuffer:r,pg=ot.isFinite,t3=la.join,e3=ag(ne.keys,ne),Se=Ae.max,De=Ae.min,r3=bt.now,n3=ot.parseInt,vg=Ae.random,i3=la.reverse,vf=Kn(ot,"DataView"),Cs=Kn(ot,"Map"),gf=Kn(ot,"Promise"),$i=Kn(ot,"Set"),Rs=Kn(ot,"WeakMap"),Is=Kn(ne,"create"),_a=Rs&&new Rs,Gi={},s3=Yn(vf),o3=Yn(Cs),a3=Yn(gf),l3=Yn($i),u3=Yn(Rs),ba=yn?yn.prototype:r,Ps=ba?ba.valueOf:r,gg=ba?ba.toString:r;function B(s){if(me(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof hr)return s;if(te.call(s,"__wrapped__"))return mm(s)}return new hr(s)}var ji=function(){function s(){}return function(a){if(!ge(a))return{};if(cg)return cg(a);s.prototype=a;var g=new s;return s.prototype=r,g}}();function xa(){}function hr(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}B.templateSettings={escape:TN,evaluate:EN,interpolate:Av,variable:"",imports:{_:B}},B.prototype=xa.prototype,B.prototype.constructor=B,hr.prototype=ji(xa.prototype),hr.prototype.constructor=hr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function f3(){var s=new Gt(this.__wrapped__);return s.__actions__=Ve(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ve(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ve(this.__views__),s}function c3(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function h3(){var s=this.__wrapped__.value(),a=this.__dir__,g=Mt(s),E=a<0,N=g?s.length:0,D=Ek(0,N,this.__views__),H=D.start,Y=D.end,et=Y-H,ut=E?Y:H-1,ft=this.__iteratees__,ht=ft.length,gt=0,wt=De(et,this.__takeCount__);if(!g||!E&&N==et&&wt==et)return $g(s,this.__actions__);var St=[];t:for(;et--&&gt<wt;){ut+=a;for(var Ft=-1,Ot=s[ut];++Ft<ht;){var Ut=ft[Ft],qt=Ut.iteratee,ir=Ut.type,ze=qt(Ot);if(ir==q)Ot=ze;else if(!ze){if(ir==F)continue t;break t}}St[gt++]=Ot}return St}Gt.prototype=ji(xa.prototype),Gt.prototype.constructor=Gt;function Hn(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function d3(){this.__data__=Is?Is(null):{},this.size=0}function p3(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function v3(s){var a=this.__data__;if(Is){var g=a[s];return g===f?r:g}return te.call(a,s)?a[s]:r}function g3(s){var a=this.__data__;return Is?a[s]!==r:te.call(a,s)}function m3(s,a){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Is&&a===r?f:a,this}Hn.prototype.clear=d3,Hn.prototype.delete=p3,Hn.prototype.get=v3,Hn.prototype.has=g3,Hn.prototype.set=m3;function Yr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function y3(){this.__data__=[],this.size=0}function _3(s){var a=this.__data__,g=wa(a,s);if(g<0)return!1;var E=a.length-1;return g==E?a.pop():va.call(a,g,1),--this.size,!0}function b3(s){var a=this.__data__,g=wa(a,s);return g<0?r:a[g][1]}function x3(s){return wa(this.__data__,s)>-1}function w3(s,a){var g=this.__data__,E=wa(g,s);return E<0?(++this.size,g.push([s,a])):g[E][1]=a,this}Yr.prototype.clear=y3,Yr.prototype.delete=_3,Yr.prototype.get=b3,Yr.prototype.has=x3,Yr.prototype.set=w3;function Zr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function T3(){this.size=0,this.__data__={hash:new Hn,map:new(Cs||Yr),string:new Hn}}function E3(s){var a=ka(this,s).delete(s);return this.size-=a?1:0,a}function A3(s){return ka(this,s).get(s)}function S3(s){return ka(this,s).has(s)}function O3(s,a){var g=ka(this,s),E=g.size;return g.set(s,a),this.size+=g.size==E?0:1,this}Zr.prototype.clear=T3,Zr.prototype.delete=E3,Zr.prototype.get=A3,Zr.prototype.has=S3,Zr.prototype.set=O3;function Vn(s){var a=-1,g=s==null?0:s.length;for(this.__data__=new Zr;++a<g;)this.add(s[a])}function C3(s){return this.__data__.set(s,f),this}function R3(s){return this.__data__.has(s)}Vn.prototype.add=Vn.prototype.push=C3,Vn.prototype.has=R3;function Ir(s){var a=this.__data__=new Yr(s);this.size=a.size}function I3(){this.__data__=new Yr,this.size=0}function P3(s){var a=this.__data__,g=a.delete(s);return this.size=a.size,g}function N3(s){return this.__data__.get(s)}function M3(s){return this.__data__.has(s)}function k3(s,a){var g=this.__data__;if(g instanceof Yr){var E=g.__data__;if(!Cs||E.length<i-1)return E.push([s,a]),this.size=++g.size,this;g=this.__data__=new Zr(E)}return g.set(s,a),this.size=g.size,this}Ir.prototype.clear=I3,Ir.prototype.delete=P3,Ir.prototype.get=N3,Ir.prototype.has=M3,Ir.prototype.set=k3;function mg(s,a){var g=Mt(s),E=!g&&Zn(s),N=!g&&!E&&Tn(s),D=!g&&!E&&!N&&Vi(s),H=g||E||N||D,Y=H?ff(s.length,zM):[],et=Y.length;for(var ut in s)(a||te.call(s,ut))&&!(H&&(ut=="length"||N&&(ut=="offset"||ut=="parent")||D&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||en(ut,et)))&&Y.push(ut);return Y}function yg(s){var a=s.length;return a?s[Of(0,a-1)]:r}function L3(s,a){return La(Ve(s),Wn(a,0,s.length))}function F3(s){return La(Ve(s))}function mf(s,a,g){(g!==r&&!Pr(s[a],g)||g===r&&!(a in s))&&Qr(s,a,g)}function Ns(s,a,g){var E=s[a];(!(te.call(s,a)&&Pr(E,g))||g===r&&!(a in s))&&Qr(s,a,g)}function wa(s,a){for(var g=s.length;g--;)if(Pr(s[g][0],a))return g;return-1}function B3(s,a,g,E){return _n(s,function(N,D,H){a(E,N,g(N),H)}),E}function _g(s,a){return s&&jr(a,Ie(a),s)}function D3(s,a){return s&&jr(a,Xe(a),s)}function Qr(s,a,g){a=="__proto__"&&ga?ga(s,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[a]=g}function yf(s,a){for(var g=-1,E=a.length,N=it(E),D=s==null;++g<E;)N[g]=D?r:Qf(s,a[g]);return N}function Wn(s,a,g){return s===s&&(g!==r&&(s=s<=g?s:g),a!==r&&(s=s>=a?s:a)),s}function dr(s,a,g,E,N,D){var H,Y=a&p,et=a&c,ut=a&v;if(g&&(H=N?g(s,E,N,D):g(s)),H!==r)return H;if(!ge(s))return s;var ft=Mt(s);if(ft){if(H=Sk(s),!Y)return Ve(s,H)}else{var ht=Ue(s),gt=ht==dt||ht==mt;if(Tn(s))return qg(s,Y);if(ht==Xt||ht==X||gt&&!N){if(H=et||gt?{}:lm(s),!Y)return et?vk(s,D3(H,s)):pk(s,_g(H,s))}else{if(!oe[ht])return N?s:{};H=Ok(s,ht,Y)}}D||(D=new Ir);var wt=D.get(s);if(wt)return wt;D.set(s,H),Bm(s)?s.forEach(function(Ot){H.add(dr(Ot,a,g,Ot,s,D))}):Lm(s)&&s.forEach(function(Ot,Ut){H.set(Ut,dr(Ot,a,g,Ut,s,D))});var St=ut?et?Df:Bf:et?Xe:Ie,Ft=ft?r:St(s);return fr(Ft||s,function(Ot,Ut){Ft&&(Ut=Ot,Ot=s[Ut]),Ns(H,Ut,dr(Ot,a,g,Ut,s,D))}),H}function U3(s){var a=Ie(s);return function(g){return bg(g,s,a)}}function bg(s,a,g){var E=g.length;if(s==null)return!E;for(s=ne(s);E--;){var N=g[E],D=a[N],H=s[N];if(H===r&&!(N in s)||!D(H))return!1}return!0}function xg(s,a,g){if(typeof s!="function")throw new cr(l);return Us(function(){s.apply(r,g)},a)}function Ms(s,a,g,E){var N=-1,D=sa,H=!0,Y=s.length,et=[],ut=a.length;if(!Y)return et;g&&(a=he(a,er(g))),E?(D=nf,H=!1):a.length>=i&&(D=Ss,H=!1,a=new Vn(a));t:for(;++N<Y;){var ft=s[N],ht=g==null?ft:g(ft);if(ft=E||ft!==0?ft:0,H&&ht===ht){for(var gt=ut;gt--;)if(a[gt]===ht)continue t;et.push(ft)}else D(a,ht,E)||et.push(ft)}return et}var _n=Xg(Gr),wg=Xg(bf,!0);function $3(s,a){var g=!0;return _n(s,function(E,N,D){return g=!!a(E,N,D),g}),g}function Ta(s,a,g){for(var E=-1,N=s.length;++E<N;){var D=s[E],H=a(D);if(H!=null&&(Y===r?H===H&&!nr(H):g(H,Y)))var Y=H,et=D}return et}function G3(s,a,g,E){var N=s.length;for(g=kt(g),g<0&&(g=-g>N?0:N+g),E=E===r||E>N?N:kt(E),E<0&&(E+=N),E=g>E?0:Um(E);g<E;)s[g++]=a;return s}function Tg(s,a){var g=[];return _n(s,function(E,N,D){a(E,N,D)&&g.push(E)}),g}function Me(s,a,g,E,N){var D=-1,H=s.length;for(g||(g=Rk),N||(N=[]);++D<H;){var Y=s[D];a>0&&g(Y)?a>1?Me(Y,a-1,g,E,N):gn(N,Y):E||(N[N.length]=Y)}return N}var _f=Kg(),Eg=Kg(!0);function Gr(s,a){return s&&_f(s,a,Ie)}function bf(s,a){return s&&Eg(s,a,Ie)}function Ea(s,a){return vn(a,function(g){return rn(s[g])})}function Xn(s,a){a=xn(a,s);for(var g=0,E=a.length;s!=null&&g<E;)s=s[qr(a[g++])];return g&&g==E?s:r}function Ag(s,a,g){var E=a(s);return Mt(s)?E:gn(E,g(s))}function je(s){return s==null?s===r?Lt:fe:zn&&zn in ne(s)?Tk(s):Fk(s)}function xf(s,a){return s>a}function j3(s,a){return s!=null&&te.call(s,a)}function q3(s,a){return s!=null&&a in ne(s)}function z3(s,a,g){return s>=De(a,g)&&s<Se(a,g)}function wf(s,a,g){for(var E=g?nf:sa,N=s[0].length,D=s.length,H=D,Y=it(D),et=1/0,ut=[];H--;){var ft=s[H];H&&a&&(ft=he(ft,er(a))),et=De(ft.length,et),Y[H]=!g&&(a||N>=120&&ft.length>=120)?new Vn(H&&ft):r}ft=s[0];var ht=-1,gt=Y[0];t:for(;++ht<N&&ut.length<et;){var wt=ft[ht],St=a?a(wt):wt;if(wt=g||wt!==0?wt:0,!(gt?Ss(gt,St):E(ut,St,g))){for(H=D;--H;){var Ft=Y[H];if(!(Ft?Ss(Ft,St):E(s[H],St,g)))continue t}gt&&gt.push(St),ut.push(wt)}}return ut}function H3(s,a,g,E){return Gr(s,function(N,D,H){a(E,g(N),D,H)}),E}function ks(s,a,g){a=xn(a,s),s=hm(s,a);var E=s==null?s:s[qr(vr(a))];return E==null?r:tr(E,s,g)}function Sg(s){return me(s)&&je(s)==X}function V3(s){return me(s)&&je(s)==Ge}function W3(s){return me(s)&&je(s)==J}function Ls(s,a,g,E,N){return s===a?!0:s==null||a==null||!me(s)&&!me(a)?s!==s&&a!==a:X3(s,a,g,E,Ls,N)}function X3(s,a,g,E,N,D){var H=Mt(s),Y=Mt(a),et=H?$:Ue(s),ut=Y?$:Ue(a);et=et==X?Xt:et,ut=ut==X?Xt:ut;var ft=et==Xt,ht=ut==Xt,gt=et==ut;if(gt&&Tn(s)){if(!Tn(a))return!1;H=!0,ft=!1}if(gt&&!ft)return D||(D=new Ir),H||Vi(s)?sm(s,a,g,E,N,D):xk(s,a,et,g,E,N,D);if(!(g&m)){var wt=ft&&te.call(s,"__wrapped__"),St=ht&&te.call(a,"__wrapped__");if(wt||St){var Ft=wt?s.value():s,Ot=St?a.value():a;return D||(D=new Ir),N(Ft,Ot,g,E,D)}}return gt?(D||(D=new Ir),wk(s,a,g,E,N,D)):!1}function K3(s){return me(s)&&Ue(s)==xt}function Tf(s,a,g,E){var N=g.length,D=N,H=!E;if(s==null)return!D;for(s=ne(s);N--;){var Y=g[N];if(H&&Y[2]?Y[1]!==s[Y[0]]:!(Y[0]in s))return!1}for(;++N<D;){Y=g[N];var et=Y[0],ut=s[et],ft=Y[1];if(H&&Y[2]){if(ut===r&&!(et in s))return!1}else{var ht=new Ir;if(E)var gt=E(ut,ft,et,s,a,ht);if(!(gt===r?Ls(ft,ut,m|y,E,ht):gt))return!1}}return!0}function Og(s){if(!ge(s)||Pk(s))return!1;var a=rn(s)?KM:UN;return a.test(Yn(s))}function Y3(s){return me(s)&&je(s)==pt}function Z3(s){return me(s)&&Ue(s)==vt}function Q3(s){return me(s)&&Ga(s.length)&&!!le[je(s)]}function Cg(s){return typeof s=="function"?s:s==null?Ke:typeof s=="object"?Mt(s)?Pg(s[0],s[1]):Ig(s):Ym(s)}function Ef(s){if(!Ds(s))return e3(s);var a=[];for(var g in ne(s))te.call(s,g)&&g!="constructor"&&a.push(g);return a}function J3(s){if(!ge(s))return Lk(s);var a=Ds(s),g=[];for(var E in s)E=="constructor"&&(a||!te.call(s,E))||g.push(E);return g}function Af(s,a){return s<a}function Rg(s,a){var g=-1,E=We(s)?it(s.length):[];return _n(s,function(N,D,H){E[++g]=a(N,D,H)}),E}function Ig(s){var a=$f(s);return a.length==1&&a[0][2]?fm(a[0][0],a[0][1]):function(g){return g===s||Tf(g,s,a)}}function Pg(s,a){return jf(s)&&um(a)?fm(qr(s),a):function(g){var E=Qf(g,s);return E===r&&E===a?Jf(g,s):Ls(a,E,m|y)}}function Aa(s,a,g,E,N){s!==a&&_f(a,function(D,H){if(N||(N=new Ir),ge(D))tk(s,a,H,g,Aa,E,N);else{var Y=E?E(zf(s,H),D,H+"",s,a,N):r;Y===r&&(Y=D),mf(s,H,Y)}},Xe)}function tk(s,a,g,E,N,D,H){var Y=zf(s,g),et=zf(a,g),ut=H.get(et);if(ut){mf(s,g,ut);return}var ft=D?D(Y,et,g+"",s,a,H):r,ht=ft===r;if(ht){var gt=Mt(et),wt=!gt&&Tn(et),St=!gt&&!wt&&Vi(et);ft=et,gt||wt||St?Mt(Y)?ft=Y:_e(Y)?ft=Ve(Y):wt?(ht=!1,ft=qg(et,!0)):St?(ht=!1,ft=zg(et,!0)):ft=[]:$s(et)||Zn(et)?(ft=Y,Zn(Y)?ft=$m(Y):(!ge(Y)||rn(Y))&&(ft=lm(et))):ht=!1}ht&&(H.set(et,ft),N(ft,et,E,D,H),H.delete(et)),mf(s,g,ft)}function Ng(s,a){var g=s.length;if(g)return a+=a<0?g:0,en(a,g)?s[a]:r}function Mg(s,a,g){a.length?a=he(a,function(D){return Mt(D)?function(H){return Xn(H,D.length===1?D[0]:D)}:D}):a=[Ke];var E=-1;a=he(a,er(At()));var N=Rg(s,function(D,H,Y){var et=he(a,function(ut){return ut(D)});return{criteria:et,index:++E,value:D}});return OM(N,function(D,H){return dk(D,H,g)})}function ek(s,a){return kg(s,a,function(g,E){return Jf(s,E)})}function kg(s,a,g){for(var E=-1,N=a.length,D={};++E<N;){var H=a[E],Y=Xn(s,H);g(Y,H)&&Fs(D,xn(H,s),Y)}return D}function rk(s){return function(a){return Xn(a,s)}}function Sf(s,a,g,E){var N=E?SM:Li,D=-1,H=a.length,Y=s;for(s===a&&(a=Ve(a)),g&&(Y=he(s,er(g)));++D<H;)for(var et=0,ut=a[D],ft=g?g(ut):ut;(et=N(Y,ft,et,E))>-1;)Y!==s&&va.call(Y,et,1),va.call(s,et,1);return s}function Lg(s,a){for(var g=s?a.length:0,E=g-1;g--;){var N=a[g];if(g==E||N!==D){var D=N;en(N)?va.call(s,N,1):If(s,N)}}return s}function Of(s,a){return s+ya(vg()*(a-s+1))}function nk(s,a,g,E){for(var N=-1,D=Se(ma((a-s)/(g||1)),0),H=it(D);D--;)H[E?D:++N]=s,s+=g;return H}function Cf(s,a){var g="";if(!s||a<1||a>rt)return g;do a%2&&(g+=s),a=ya(a/2),a&&(s+=s);while(a);return g}function Bt(s,a){return Hf(cm(s,a,Ke),s+"")}function ik(s){return yg(Wi(s))}function sk(s,a){var g=Wi(s);return La(g,Wn(a,0,g.length))}function Fs(s,a,g,E){if(!ge(s))return s;a=xn(a,s);for(var N=-1,D=a.length,H=D-1,Y=s;Y!=null&&++N<D;){var et=qr(a[N]),ut=g;if(et==="__proto__"||et==="constructor"||et==="prototype")return s;if(N!=H){var ft=Y[et];ut=E?E(ft,et,Y):r,ut===r&&(ut=ge(ft)?ft:en(a[N+1])?[]:{})}Ns(Y,et,ut),Y=Y[et]}return s}var Fg=_a?function(s,a){return _a.set(s,a),s}:Ke,ok=ga?function(s,a){return ga(s,"toString",{configurable:!0,enumerable:!1,value:ec(a),writable:!0})}:Ke;function ak(s){return La(Wi(s))}function pr(s,a,g){var E=-1,N=s.length;a<0&&(a=-a>N?0:N+a),g=g>N?N:g,g<0&&(g+=N),N=a>g?0:g-a>>>0,a>>>=0;for(var D=it(N);++E<N;)D[E]=s[E+a];return D}function lk(s,a){var g;return _n(s,function(E,N,D){return g=a(E,N,D),!g}),!!g}function Sa(s,a,g){var E=0,N=s==null?E:s.length;if(typeof a=="number"&&a===a&&N<=G){for(;E<N;){var D=E+N>>>1,H=s[D];H!==null&&!nr(H)&&(g?H<=a:H<a)?E=D+1:N=D}return N}return Rf(s,a,Ke,g)}function Rf(s,a,g,E){var N=0,D=s==null?0:s.length;if(D===0)return 0;a=g(a);for(var H=a!==a,Y=a===null,et=nr(a),ut=a===r;N<D;){var ft=ya((N+D)/2),ht=g(s[ft]),gt=ht!==r,wt=ht===null,St=ht===ht,Ft=nr(ht);if(H)var Ot=E||St;else ut?Ot=St&&(E||gt):Y?Ot=St&&gt&&(E||!wt):et?Ot=St&&gt&&!wt&&(E||!Ft):wt||Ft?Ot=!1:Ot=E?ht<=a:ht<a;Ot?N=ft+1:D=ft}return De(D,j)}function Bg(s,a){for(var g=-1,E=s.length,N=0,D=[];++g<E;){var H=s[g],Y=a?a(H):H;if(!g||!Pr(Y,et)){var et=Y;D[N++]=H===0?0:H}}return D}function Dg(s){return typeof s=="number"?s:nr(s)?U:+s}function rr(s){if(typeof s=="string")return s;if(Mt(s))return he(s,rr)+"";if(nr(s))return gg?gg.call(s):"";var a=s+"";return a=="0"&&1/s==-z?"-0":a}function bn(s,a,g){var E=-1,N=sa,D=s.length,H=!0,Y=[],et=Y;if(g)H=!1,N=nf;else if(D>=i){var ut=a?null:_k(s);if(ut)return aa(ut);H=!1,N=Ss,et=new Vn}else et=a?[]:Y;t:for(;++E<D;){var ft=s[E],ht=a?a(ft):ft;if(ft=g||ft!==0?ft:0,H&&ht===ht){for(var gt=et.length;gt--;)if(et[gt]===ht)continue t;a&&et.push(ht),Y.push(ft)}else N(et,ht,g)||(et!==Y&&et.push(ht),Y.push(ft))}return Y}function If(s,a){return a=xn(a,s),s=hm(s,a),s==null||delete s[qr(vr(a))]}function Ug(s,a,g,E){return Fs(s,a,g(Xn(s,a)),E)}function Oa(s,a,g,E){for(var N=s.length,D=E?N:-1;(E?D--:++D<N)&&a(s[D],D,s););return g?pr(s,E?0:D,E?D+1:N):pr(s,E?D+1:0,E?N:D)}function $g(s,a){var g=s;return g instanceof Gt&&(g=g.value()),sf(a,function(E,N){return N.func.apply(N.thisArg,gn([E],N.args))},g)}function Pf(s,a,g){var E=s.length;if(E<2)return E?bn(s[0]):[];for(var N=-1,D=it(E);++N<E;)for(var H=s[N],Y=-1;++Y<E;)Y!=N&&(D[N]=Ms(D[N]||H,s[Y],a,g));return bn(Me(D,1),a,g)}function Gg(s,a,g){for(var E=-1,N=s.length,D=a.length,H={};++E<N;){var Y=E<D?a[E]:r;g(H,s[E],Y)}return H}function Nf(s){return _e(s)?s:[]}function Mf(s){return typeof s=="function"?s:Ke}function xn(s,a){return Mt(s)?s:jf(s,a)?[s]:gm(Qt(s))}var uk=Bt;function wn(s,a,g){var E=s.length;return g=g===r?E:g,!a&&g>=E?s:pr(s,a,g)}var jg=YM||function(s){return Ne.clearTimeout(s)};function qg(s,a){if(a)return s.slice();var g=s.length,E=fg?fg(g):new s.constructor(g);return s.copy(E),E}function kf(s){var a=new s.constructor(s.byteLength);return new da(a).set(new da(s)),a}function fk(s,a){var g=a?kf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function ck(s){var a=new s.constructor(s.source,Sv.exec(s));return a.lastIndex=s.lastIndex,a}function hk(s){return Ps?ne(Ps.call(s)):{}}function zg(s,a){var g=a?kf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Hg(s,a){if(s!==a){var g=s!==r,E=s===null,N=s===s,D=nr(s),H=a!==r,Y=a===null,et=a===a,ut=nr(a);if(!Y&&!ut&&!D&&s>a||D&&H&&et&&!Y&&!ut||E&&H&&et||!g&&et||!N)return 1;if(!E&&!D&&!ut&&s<a||ut&&g&&N&&!E&&!D||Y&&g&&N||!H&&N||!et)return-1}return 0}function dk(s,a,g){for(var E=-1,N=s.criteria,D=a.criteria,H=N.length,Y=g.length;++E<H;){var et=Hg(N[E],D[E]);if(et){if(E>=Y)return et;var ut=g[E];return et*(ut=="desc"?-1:1)}}return s.index-a.index}function Vg(s,a,g,E){for(var N=-1,D=s.length,H=g.length,Y=-1,et=a.length,ut=Se(D-H,0),ft=it(et+ut),ht=!E;++Y<et;)ft[Y]=a[Y];for(;++N<H;)(ht||N<D)&&(ft[g[N]]=s[N]);for(;ut--;)ft[Y++]=s[N++];return ft}function Wg(s,a,g,E){for(var N=-1,D=s.length,H=-1,Y=g.length,et=-1,ut=a.length,ft=Se(D-Y,0),ht=it(ft+ut),gt=!E;++N<ft;)ht[N]=s[N];for(var wt=N;++et<ut;)ht[wt+et]=a[et];for(;++H<Y;)(gt||N<D)&&(ht[wt+g[H]]=s[N++]);return ht}function Ve(s,a){var g=-1,E=s.length;for(a||(a=it(E));++g<E;)a[g]=s[g];return a}function jr(s,a,g,E){var N=!g;g||(g={});for(var D=-1,H=a.length;++D<H;){var Y=a[D],et=E?E(g[Y],s[Y],Y,g,s):r;et===r&&(et=s[Y]),N?Qr(g,Y,et):Ns(g,Y,et)}return g}function pk(s,a){return jr(s,Gf(s),a)}function vk(s,a){return jr(s,om(s),a)}function Ca(s,a){return function(g,E){var N=Mt(g)?bM:B3,D=a?a():{};return N(g,s,At(E,2),D)}}function qi(s){return Bt(function(a,g){var E=-1,N=g.length,D=N>1?g[N-1]:r,H=N>2?g[2]:r;for(D=s.length>3&&typeof D=="function"?(N--,D):r,H&&qe(g[0],g[1],H)&&(D=N<3?r:D,N=1),a=ne(a);++E<N;){var Y=g[E];Y&&s(a,Y,E,D)}return a})}function Xg(s,a){return function(g,E){if(g==null)return g;if(!We(g))return s(g,E);for(var N=g.length,D=a?N:-1,H=ne(g);(a?D--:++D<N)&&E(H[D],D,H)!==!1;);return g}}function Kg(s){return function(a,g,E){for(var N=-1,D=ne(a),H=E(a),Y=H.length;Y--;){var et=H[s?Y:++N];if(g(D[et],et,D)===!1)break}return a}}function gk(s,a,g){var E=a&b,N=Bs(s);function D(){var H=this&&this!==Ne&&this instanceof D?N:s;return H.apply(E?g:this,arguments)}return D}function Yg(s){return function(a){a=Qt(a);var g=Fi(a)?Rr(a):r,E=g?g[0]:a.charAt(0),N=g?wn(g,1).join(""):a.slice(1);return E[s]()+N}}function zi(s){return function(a){return sf(Xm(Wm(a).replace(oM,"")),s,"")}}function Bs(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=ji(s.prototype),E=s.apply(g,a);return ge(E)?E:g}}function mk(s,a,g){var E=Bs(s);function N(){for(var D=arguments.length,H=it(D),Y=D,et=Hi(N);Y--;)H[Y]=arguments[Y];var ut=D<3&&H[0]!==et&&H[D-1]!==et?[]:mn(H,et);if(D-=ut.length,D<g)return em(s,a,Ra,N.placeholder,r,H,ut,r,r,g-D);var ft=this&&this!==Ne&&this instanceof N?E:s;return tr(ft,this,H)}return N}function Zg(s){return function(a,g,E){var N=ne(a);if(!We(a)){var D=At(g,3);a=Ie(a),g=function(Y){return D(N[Y],Y,N)}}var H=s(a,g,E);return H>-1?N[D?a[H]:H]:r}}function Qg(s){return tn(function(a){var g=a.length,E=g,N=hr.prototype.thru;for(s&&a.reverse();E--;){var D=a[E];if(typeof D!="function")throw new cr(l);if(N&&!H&&Ma(D)=="wrapper")var H=new hr([],!0)}for(E=H?E:g;++E<g;){D=a[E];var Y=Ma(D),et=Y=="wrapper"?Uf(D):r;et&&qf(et[0])&&et[1]==(S|T|A|O)&&!et[4].length&&et[9]==1?H=H[Ma(et[0])].apply(H,et[3]):H=D.length==1&&qf(D)?H[Y]():H.thru(D)}return function(){var ut=arguments,ft=ut[0];if(H&&ut.length==1&&Mt(ft))return H.plant(ft).value();for(var ht=0,gt=g?a[ht].apply(this,ut):ft;++ht<g;)gt=a[ht].call(this,gt);return gt}})}function Ra(s,a,g,E,N,D,H,Y,et,ut){var ft=a&S,ht=a&b,gt=a&_,wt=a&(T|x),St=a&L,Ft=gt?r:Bs(s);function Ot(){for(var Ut=arguments.length,qt=it(Ut),ir=Ut;ir--;)qt[ir]=arguments[ir];if(wt)var ze=Hi(Ot),sr=RM(qt,ze);if(E&&(qt=Vg(qt,E,N,wt)),D&&(qt=Wg(qt,D,H,wt)),Ut-=sr,wt&&Ut<ut){var be=mn(qt,ze);return em(s,a,Ra,Ot.placeholder,g,qt,be,Y,et,ut-Ut)}var Nr=ht?g:this,sn=gt?Nr[s]:s;return Ut=qt.length,Y?qt=Bk(qt,Y):St&&Ut>1&&qt.reverse(),ft&&et<Ut&&(qt.length=et),this&&this!==Ne&&this instanceof Ot&&(sn=Ft||Bs(sn)),sn.apply(Nr,qt)}return Ot}function Jg(s,a){return function(g,E){return H3(g,s,a(E),{})}}function Ia(s,a){return function(g,E){var N;if(g===r&&E===r)return a;if(g!==r&&(N=g),E!==r){if(N===r)return E;typeof g=="string"||typeof E=="string"?(g=rr(g),E=rr(E)):(g=Dg(g),E=Dg(E)),N=s(g,E)}return N}}function Lf(s){return tn(function(a){return a=he(a,er(At())),Bt(function(g){var E=this;return s(a,function(N){return tr(N,E,g)})})})}function Pa(s,a){a=a===r?" ":rr(a);var g=a.length;if(g<2)return g?Cf(a,s):a;var E=Cf(a,ma(s/Bi(a)));return Fi(a)?wn(Rr(E),0,s).join(""):E.slice(0,s)}function yk(s,a,g,E){var N=a&b,D=Bs(s);function H(){for(var Y=-1,et=arguments.length,ut=-1,ft=E.length,ht=it(ft+et),gt=this&&this!==Ne&&this instanceof H?D:s;++ut<ft;)ht[ut]=E[ut];for(;et--;)ht[ut++]=arguments[++Y];return tr(gt,N?g:this,ht)}return H}function tm(s){return function(a,g,E){return E&&typeof E!="number"&&qe(a,g,E)&&(g=E=r),a=nn(a),g===r?(g=a,a=0):g=nn(g),E=E===r?a<g?1:-1:nn(E),nk(a,g,E,s)}}function Na(s){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=gr(a),g=gr(g)),s(a,g)}}function em(s,a,g,E,N,D,H,Y,et,ut){var ft=a&T,ht=ft?H:r,gt=ft?r:H,wt=ft?D:r,St=ft?r:D;a|=ft?A:I,a&=~(ft?I:A),a&w||(a&=~(b|_));var Ft=[s,a,N,wt,ht,St,gt,Y,et,ut],Ot=g.apply(r,Ft);return qf(s)&&dm(Ot,Ft),Ot.placeholder=E,pm(Ot,s,a)}function Ff(s){var a=Ae[s];return function(g,E){if(g=gr(g),E=E==null?0:De(kt(E),292),E&&pg(g)){var N=(Qt(g)+"e").split("e"),D=a(N[0]+"e"+(+N[1]+E));return N=(Qt(D)+"e").split("e"),+(N[0]+"e"+(+N[1]-E))}return a(g)}}var _k=$i&&1/aa(new $i([,-0]))[1]==z?function(s){return new $i(s)}:ic;function rm(s){return function(a){var g=Ue(a);return g==xt?hf(a):g==vt?FM(a):CM(a,s(a))}}function Jr(s,a,g,E,N,D,H,Y){var et=a&_;if(!et&&typeof s!="function")throw new cr(l);var ut=E?E.length:0;if(ut||(a&=~(A|I),E=N=r),H=H===r?H:Se(kt(H),0),Y=Y===r?Y:kt(Y),ut-=N?N.length:0,a&I){var ft=E,ht=N;E=N=r}var gt=et?r:Uf(s),wt=[s,a,g,E,N,ft,ht,D,H,Y];if(gt&&kk(wt,gt),s=wt[0],a=wt[1],g=wt[2],E=wt[3],N=wt[4],Y=wt[9]=wt[9]===r?et?0:s.length:Se(wt[9]-ut,0),!Y&&a&(T|x)&&(a&=~(T|x)),!a||a==b)var St=gk(s,a,g);else a==T||a==x?St=mk(s,a,Y):(a==A||a==(b|A))&&!N.length?St=yk(s,a,g,E):St=Ra.apply(r,wt);var Ft=gt?Fg:dm;return pm(Ft(St,wt),s,a)}function nm(s,a,g,E){return s===r||Pr(s,Ui[g])&&!te.call(E,g)?a:s}function im(s,a,g,E,N,D){return ge(s)&&ge(a)&&(D.set(a,s),Aa(s,a,r,im,D),D.delete(a)),s}function bk(s){return $s(s)?r:s}function sm(s,a,g,E,N,D){var H=g&m,Y=s.length,et=a.length;if(Y!=et&&!(H&&et>Y))return!1;var ut=D.get(s),ft=D.get(a);if(ut&&ft)return ut==a&&ft==s;var ht=-1,gt=!0,wt=g&y?new Vn:r;for(D.set(s,a),D.set(a,s);++ht<Y;){var St=s[ht],Ft=a[ht];if(E)var Ot=H?E(Ft,St,ht,a,s,D):E(St,Ft,ht,s,a,D);if(Ot!==r){if(Ot)continue;gt=!1;break}if(wt){if(!of(a,function(Ut,qt){if(!Ss(wt,qt)&&(St===Ut||N(St,Ut,g,E,D)))return wt.push(qt)})){gt=!1;break}}else if(!(St===Ft||N(St,Ft,g,E,D))){gt=!1;break}}return D.delete(s),D.delete(a),gt}function xk(s,a,g,E,N,D,H){switch(g){case Zt:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case Ge:return!(s.byteLength!=a.byteLength||!D(new da(s),new da(a)));case Z:case J:case Ct:return Pr(+s,+a);case at:return s.name==a.name&&s.message==a.message;case pt:case ct:return s==a+"";case xt:var Y=hf;case vt:var et=E&m;if(Y||(Y=aa),s.size!=a.size&&!et)return!1;var ut=H.get(s);if(ut)return ut==a;E|=y,H.set(s,a);var ft=sm(Y(s),Y(a),E,N,D,H);return H.delete(s),ft;case Pt:if(Ps)return Ps.call(s)==Ps.call(a)}return!1}function wk(s,a,g,E,N,D){var H=g&m,Y=Bf(s),et=Y.length,ut=Bf(a),ft=ut.length;if(et!=ft&&!H)return!1;for(var ht=et;ht--;){var gt=Y[ht];if(!(H?gt in a:te.call(a,gt)))return!1}var wt=D.get(s),St=D.get(a);if(wt&&St)return wt==a&&St==s;var Ft=!0;D.set(s,a),D.set(a,s);for(var Ot=H;++ht<et;){gt=Y[ht];var Ut=s[gt],qt=a[gt];if(E)var ir=H?E(qt,Ut,gt,a,s,D):E(Ut,qt,gt,s,a,D);if(!(ir===r?Ut===qt||N(Ut,qt,g,E,D):ir)){Ft=!1;break}Ot||(Ot=gt=="constructor")}if(Ft&&!Ot){var ze=s.constructor,sr=a.constructor;ze!=sr&&"constructor"in s&&"constructor"in a&&!(typeof ze=="function"&&ze instanceof ze&&typeof sr=="function"&&sr instanceof sr)&&(Ft=!1)}return D.delete(s),D.delete(a),Ft}function tn(s){return Hf(cm(s,r,bm),s+"")}function Bf(s){return Ag(s,Ie,Gf)}function Df(s){return Ag(s,Xe,om)}var Uf=_a?function(s){return _a.get(s)}:ic;function Ma(s){for(var a=s.name+"",g=Gi[a],E=te.call(Gi,a)?g.length:0;E--;){var N=g[E],D=N.func;if(D==null||D==s)return N.name}return a}function Hi(s){var a=te.call(B,"placeholder")?B:s;return a.placeholder}function At(){var s=B.iteratee||rc;return s=s===rc?Cg:s,arguments.length?s(arguments[0],arguments[1]):s}function ka(s,a){var g=s.__data__;return Ik(a)?g[typeof a=="string"?"string":"hash"]:g.map}function $f(s){for(var a=Ie(s),g=a.length;g--;){var E=a[g],N=s[E];a[g]=[E,N,um(N)]}return a}function Kn(s,a){var g=MM(s,a);return Og(g)?g:r}function Tk(s){var a=te.call(s,zn),g=s[zn];try{s[zn]=r;var E=!0}catch{}var N=ca.call(s);return E&&(a?s[zn]=g:delete s[zn]),N}var Gf=pf?function(s){return s==null?[]:(s=ne(s),vn(pf(s),function(a){return hg.call(s,a)}))}:sc,om=pf?function(s){for(var a=[];s;)gn(a,Gf(s)),s=pa(s);return a}:sc,Ue=je;(vf&&Ue(new vf(new ArrayBuffer(1)))!=Zt||Cs&&Ue(new Cs)!=xt||gf&&Ue(gf.resolve())!=st||$i&&Ue(new $i)!=vt||Rs&&Ue(new Rs)!=Nt)&&(Ue=function(s){var a=je(s),g=a==Xt?s.constructor:r,E=g?Yn(g):"";if(E)switch(E){case s3:return Zt;case o3:return xt;case a3:return st;case l3:return vt;case u3:return Nt}return a});function Ek(s,a,g){for(var E=-1,N=g.length;++E<N;){var D=g[E],H=D.size;switch(D.type){case"drop":s+=H;break;case"dropRight":a-=H;break;case"take":a=De(a,s+H);break;case"takeRight":s=Se(s,a-H);break}}return{start:s,end:a}}function Ak(s){var a=s.match(PN);return a?a[1].split(NN):[]}function am(s,a,g){a=xn(a,s);for(var E=-1,N=a.length,D=!1;++E<N;){var H=qr(a[E]);if(!(D=s!=null&&g(s,H)))break;s=s[H]}return D||++E!=N?D:(N=s==null?0:s.length,!!N&&Ga(N)&&en(H,N)&&(Mt(s)||Zn(s)))}function Sk(s){var a=s.length,g=new s.constructor(a);return a&&typeof s[0]=="string"&&te.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function lm(s){return typeof s.constructor=="function"&&!Ds(s)?ji(pa(s)):{}}function Ok(s,a,g){var E=s.constructor;switch(a){case Ge:return kf(s);case Z:case J:return new E(+s);case Zt:return fk(s,g);case As:case ce:case lr:case ju:case qu:case zu:case Hu:case Vu:case Wu:return zg(s,g);case xt:return new E;case Ct:case ct:return new E(s);case pt:return ck(s);case vt:return new E;case Pt:return hk(s)}}function Ck(s,a){var g=a.length;if(!g)return s;var E=g-1;return a[E]=(g>1?"& ":"")+a[E],a=a.join(g>2?", ":" "),s.replace(IN,`{
1930
+ */ea.exports,function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,m=1,y=2,b=1,_=2,w=4,T=8,x=16,A=32,I=64,S=128,O=256,L=512,R=30,C="...",P=800,M=16,F=1,q=2,Q=3,z=1/0,rt=9007199254740991,W=17976931348623157e292,D=0/0,k=4294967295,j=k-1,G=k>>>1,K=[["ary",S],["bind",b],["bindKey",_],["curry",T],["curryRight",x],["flip",L],["partial",A],["partialRight",I],["rearg",O]],X="[object Arguments]",$="[object Array]",V="[object AsyncFunction]",J="[object Boolean]",Z="[object Date]",nt="[object DOMException]",at="[object Error]",dt="[object Function]",gt="[object GeneratorFunction]",xt="[object Map]",At="[object Number]",fe="[object Null]",Xt="[object Object]",st="[object Promise]",lt="[object Proxy]",pt="[object RegExp]",vt="[object Set]",ct="[object String]",Pt="[object Symbol]",Lt="[object Undefined]",Nt="[object WeakMap]",He="[object WeakSet]",Ge="[object ArrayBuffer]",Zt="[object DataView]",As="[object Float32Array]",ce="[object Float64Array]",lr="[object Int8Array]",ju="[object Int16Array]",qu="[object Int32Array]",zu="[object Uint8Array]",Hu="[object Uint8ClampedArray]",Vu="[object Uint16Array]",Wu="[object Uint32Array]",yN=/\b__p \+= '';/g,_N=/\b(__p \+=) '' \+/g,bN=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tv=/&(?:amp|lt|gt|quot|#39);/g,Ev=/[&<>"']/g,xN=RegExp(Tv.source),wN=RegExp(Ev.source),TN=/<%-([\s\S]+?)%>/g,EN=/<%([\s\S]+?)%>/g,Av=/<%=([\s\S]+?)%>/g,AN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SN=/^\w*$/,ON=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xu=/[\\^$.*+?()[\]{}|]/g,CN=RegExp(Xu.source),Ku=/^\s+/,RN=/\s/,IN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,PN=/\{\n\/\* \[wrapped with (.+)\] \*/,NN=/,? & /,MN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kN=/[()=,{}\[\]\/\s]/,LN=/\\(\\)?/g,FN=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Sv=/\w*$/,BN=/^[-+]0x[0-9a-f]+$/i,DN=/^0b[01]+$/i,UN=/^\[object .+?Constructor\]$/,$N=/^0o[0-7]+$/i,GN=/^(?:0|[1-9]\d*)$/,jN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ra=/($^)/,qN=/['\n\r\u2028\u2029\\]/g,na="\\ud800-\\udfff",zN="\\u0300-\\u036f",HN="\\ufe20-\\ufe2f",VN="\\u20d0-\\u20ff",Ov=zN+HN+VN,Cv="\\u2700-\\u27bf",Rv="a-z\\xdf-\\xf6\\xf8-\\xff",WN="\\xac\\xb1\\xd7\\xf7",XN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",KN="\\u2000-\\u206f",YN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Iv="A-Z\\xc0-\\xd6\\xd8-\\xde",Pv="\\ufe0e\\ufe0f",Nv=WN+XN+KN+YN,Yu="['’]",ZN="["+na+"]",Mv="["+Nv+"]",ia="["+Ov+"]",kv="\\d+",QN="["+Cv+"]",Lv="["+Rv+"]",Fv="[^"+na+Nv+kv+Cv+Rv+Iv+"]",Zu="\\ud83c[\\udffb-\\udfff]",JN="(?:"+ia+"|"+Zu+")",Bv="[^"+na+"]",Qu="(?:\\ud83c[\\udde6-\\uddff]){2}",Ju="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+Iv+"]",Dv="\\u200d",Uv="(?:"+Lv+"|"+Fv+")",tM="(?:"+ki+"|"+Fv+")",$v="(?:"+Yu+"(?:d|ll|m|re|s|t|ve))?",Gv="(?:"+Yu+"(?:D|LL|M|RE|S|T|VE))?",jv=JN+"?",qv="["+Pv+"]?",eM="(?:"+Dv+"(?:"+[Bv,Qu,Ju].join("|")+")"+qv+jv+")*",rM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zv=qv+jv+eM,iM="(?:"+[QN,Qu,Ju].join("|")+")"+zv,sM="(?:"+[Bv+ia+"?",ia,Qu,Ju,ZN].join("|")+")",oM=RegExp(Yu,"g"),aM=RegExp(ia,"g"),tf=RegExp(Zu+"(?="+Zu+")|"+sM+zv,"g"),lM=RegExp([ki+"?"+Lv+"+"+$v+"(?="+[Mv,ki,"$"].join("|")+")",tM+"+"+Gv+"(?="+[Mv,ki+Uv,"$"].join("|")+")",ki+"?"+Uv+"+"+$v,ki+"+"+Gv,nM,rM,kv,iM].join("|"),"g"),uM=RegExp("["+Dv+na+Ov+Pv+"]"),fM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],hM=-1,le={};le[As]=le[ce]=le[lr]=le[ju]=le[qu]=le[zu]=le[Hu]=le[Vu]=le[Wu]=!0,le[X]=le[$]=le[Ge]=le[J]=le[Zt]=le[Z]=le[at]=le[dt]=le[xt]=le[At]=le[Xt]=le[pt]=le[vt]=le[ct]=le[Nt]=!1;var oe={};oe[X]=oe[$]=oe[Ge]=oe[Zt]=oe[J]=oe[Z]=oe[As]=oe[ce]=oe[lr]=oe[ju]=oe[qu]=oe[xt]=oe[At]=oe[Xt]=oe[pt]=oe[vt]=oe[ct]=oe[Pt]=oe[zu]=oe[Hu]=oe[Vu]=oe[Wu]=!0,oe[at]=oe[dt]=oe[Nt]=!1;var dM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},pM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vM={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},gM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mM=parseFloat,yM=parseInt,Hv=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,_M=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Hv||_M||Function("return this")(),ef=t&&!t.nodeType&&t,qn=ef&&!0&&e&&!e.nodeType&&e,Vv=qn&&qn.exports===ef,rf=Vv&&Hv.process,ur=function(){try{var tt=qn&&qn.require&&qn.require("util").types;return tt||rf&&rf.binding&&rf.binding("util")}catch{}}(),Wv=ur&&ur.isArrayBuffer,Xv=ur&&ur.isDate,Kv=ur&&ur.isMap,Yv=ur&&ur.isRegExp,Zv=ur&&ur.isSet,Qv=ur&&ur.isTypedArray;function tr(tt,ot,it){switch(it.length){case 0:return tt.call(ot);case 1:return tt.call(ot,it[0]);case 2:return tt.call(ot,it[0],it[1]);case 3:return tt.call(ot,it[0],it[1],it[2])}return tt.apply(ot,it)}function bM(tt,ot,it,bt){for(var It=-1,Kt=tt==null?0:tt.length;++It<Kt;){var Ae=tt[It];ot(bt,Ae,it(Ae),tt)}return bt}function fr(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt&&ot(tt[it],it,tt)!==!1;);return tt}function xM(tt,ot){for(var it=tt==null?0:tt.length;it--&&ot(tt[it],it,tt)!==!1;);return tt}function Jv(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt;)if(!ot(tt[it],it,tt))return!1;return!0}function vn(tt,ot){for(var it=-1,bt=tt==null?0:tt.length,It=0,Kt=[];++it<bt;){var Ae=tt[it];ot(Ae,it,tt)&&(Kt[It++]=Ae)}return Kt}function sa(tt,ot){var it=tt==null?0:tt.length;return!!it&&Li(tt,ot,0)>-1}function nf(tt,ot,it){for(var bt=-1,It=tt==null?0:tt.length;++bt<It;)if(it(ot,tt[bt]))return!0;return!1}function he(tt,ot){for(var it=-1,bt=tt==null?0:tt.length,It=Array(bt);++it<bt;)It[it]=ot(tt[it],it,tt);return It}function gn(tt,ot){for(var it=-1,bt=ot.length,It=tt.length;++it<bt;)tt[It+it]=ot[it];return tt}function sf(tt,ot,it,bt){var It=-1,Kt=tt==null?0:tt.length;for(bt&&Kt&&(it=tt[++It]);++It<Kt;)it=ot(it,tt[It],It,tt);return it}function wM(tt,ot,it,bt){var It=tt==null?0:tt.length;for(bt&&It&&(it=tt[--It]);It--;)it=ot(it,tt[It],It,tt);return it}function of(tt,ot){for(var it=-1,bt=tt==null?0:tt.length;++it<bt;)if(ot(tt[it],it,tt))return!0;return!1}var TM=af("length");function EM(tt){return tt.split("")}function AM(tt){return tt.match(MN)||[]}function tg(tt,ot,it){var bt;return it(tt,function(It,Kt,Ae){if(ot(It,Kt,Ae))return bt=Kt,!1}),bt}function oa(tt,ot,it,bt){for(var It=tt.length,Kt=it+(bt?1:-1);bt?Kt--:++Kt<It;)if(ot(tt[Kt],Kt,tt))return Kt;return-1}function Li(tt,ot,it){return ot===ot?BM(tt,ot,it):oa(tt,eg,it)}function SM(tt,ot,it,bt){for(var It=it-1,Kt=tt.length;++It<Kt;)if(bt(tt[It],ot))return It;return-1}function eg(tt){return tt!==tt}function rg(tt,ot){var it=tt==null?0:tt.length;return it?uf(tt,ot)/it:D}function af(tt){return function(ot){return ot==null?r:ot[tt]}}function lf(tt){return function(ot){return tt==null?r:tt[ot]}}function ng(tt,ot,it,bt,It){return It(tt,function(Kt,Ae,ne){it=bt?(bt=!1,Kt):ot(it,Kt,Ae,ne)}),it}function OM(tt,ot){var it=tt.length;for(tt.sort(ot);it--;)tt[it]=tt[it].value;return tt}function uf(tt,ot){for(var it,bt=-1,It=tt.length;++bt<It;){var Kt=ot(tt[bt]);Kt!==r&&(it=it===r?Kt:it+Kt)}return it}function ff(tt,ot){for(var it=-1,bt=Array(tt);++it<tt;)bt[it]=ot(it);return bt}function CM(tt,ot){return he(ot,function(it){return[it,tt[it]]})}function ig(tt){return tt&&tt.slice(0,lg(tt)+1).replace(Ku,"")}function er(tt){return function(ot){return tt(ot)}}function cf(tt,ot){return he(ot,function(it){return tt[it]})}function Ss(tt,ot){return tt.has(ot)}function sg(tt,ot){for(var it=-1,bt=tt.length;++it<bt&&Li(ot,tt[it],0)>-1;);return it}function og(tt,ot){for(var it=tt.length;it--&&Li(ot,tt[it],0)>-1;);return it}function RM(tt,ot){for(var it=tt.length,bt=0;it--;)tt[it]===ot&&++bt;return bt}var IM=lf(dM),PM=lf(pM);function NM(tt){return"\\"+gM[tt]}function MM(tt,ot){return tt==null?r:tt[ot]}function Fi(tt){return uM.test(tt)}function kM(tt){return fM.test(tt)}function LM(tt){for(var ot,it=[];!(ot=tt.next()).done;)it.push(ot.value);return it}function hf(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt,It){it[++ot]=[It,bt]}),it}function ag(tt,ot){return function(it){return tt(ot(it))}}function mn(tt,ot){for(var it=-1,bt=tt.length,It=0,Kt=[];++it<bt;){var Ae=tt[it];(Ae===ot||Ae===d)&&(tt[it]=d,Kt[It++]=it)}return Kt}function aa(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt){it[++ot]=bt}),it}function FM(tt){var ot=-1,it=Array(tt.size);return tt.forEach(function(bt){it[++ot]=[bt,bt]}),it}function BM(tt,ot,it){for(var bt=it-1,It=tt.length;++bt<It;)if(tt[bt]===ot)return bt;return-1}function DM(tt,ot,it){for(var bt=it+1;bt--;)if(tt[bt]===ot)return bt;return bt}function Bi(tt){return Fi(tt)?$M(tt):TM(tt)}function Rr(tt){return Fi(tt)?GM(tt):EM(tt)}function lg(tt){for(var ot=tt.length;ot--&&RN.test(tt.charAt(ot)););return ot}var UM=lf(vM);function $M(tt){for(var ot=tf.lastIndex=0;tf.test(tt);)++ot;return ot}function GM(tt){return tt.match(tf)||[]}function jM(tt){return tt.match(lM)||[]}var qM=function tt(ot){ot=ot==null?Ne:Di.defaults(Ne.Object(),ot,Di.pick(Ne,cM));var it=ot.Array,bt=ot.Date,It=ot.Error,Kt=ot.Function,Ae=ot.Math,ne=ot.Object,df=ot.RegExp,zM=ot.String,cr=ot.TypeError,la=it.prototype,HM=Kt.prototype,Ui=ne.prototype,ua=ot["__core-js_shared__"],fa=HM.toString,te=Ui.hasOwnProperty,VM=0,ug=function(){var s=/[^.]+$/.exec(ua&&ua.keys&&ua.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),ca=Ui.toString,WM=fa.call(ne),XM=Ne._,KM=df("^"+fa.call(te).replace(Xu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=Vv?ot.Buffer:r,yn=ot.Symbol,da=ot.Uint8Array,fg=ha?ha.allocUnsafe:r,pa=ag(ne.getPrototypeOf,ne),cg=ne.create,hg=Ui.propertyIsEnumerable,va=la.splice,dg=yn?yn.isConcatSpreadable:r,Os=yn?yn.iterator:r,zn=yn?yn.toStringTag:r,ga=function(){try{var s=Kn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),YM=ot.clearTimeout!==Ne.clearTimeout&&ot.clearTimeout,ZM=bt&&bt.now!==Ne.Date.now&&bt.now,QM=ot.setTimeout!==Ne.setTimeout&&ot.setTimeout,ma=Ae.ceil,ya=Ae.floor,pf=ne.getOwnPropertySymbols,JM=ha?ha.isBuffer:r,pg=ot.isFinite,t3=la.join,e3=ag(ne.keys,ne),Se=Ae.max,De=Ae.min,r3=bt.now,n3=ot.parseInt,vg=Ae.random,i3=la.reverse,vf=Kn(ot,"DataView"),Cs=Kn(ot,"Map"),gf=Kn(ot,"Promise"),$i=Kn(ot,"Set"),Rs=Kn(ot,"WeakMap"),Is=Kn(ne,"create"),_a=Rs&&new Rs,Gi={},s3=Yn(vf),o3=Yn(Cs),a3=Yn(gf),l3=Yn($i),u3=Yn(Rs),ba=yn?yn.prototype:r,Ps=ba?ba.valueOf:r,gg=ba?ba.toString:r;function B(s){if(me(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof hr)return s;if(te.call(s,"__wrapped__"))return mm(s)}return new hr(s)}var ji=function(){function s(){}return function(a){if(!ge(a))return{};if(cg)return cg(a);s.prototype=a;var g=new s;return s.prototype=r,g}}();function xa(){}function hr(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}B.templateSettings={escape:TN,evaluate:EN,interpolate:Av,variable:"",imports:{_:B}},B.prototype=xa.prototype,B.prototype.constructor=B,hr.prototype=ji(xa.prototype),hr.prototype.constructor=hr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function f3(){var s=new Gt(this.__wrapped__);return s.__actions__=Ve(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ve(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ve(this.__views__),s}function c3(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function h3(){var s=this.__wrapped__.value(),a=this.__dir__,g=Mt(s),E=a<0,N=g?s.length:0,U=Ek(0,N,this.__views__),H=U.start,Y=U.end,et=Y-H,ut=E?Y:H-1,ft=this.__iteratees__,ht=ft.length,mt=0,wt=De(et,this.__takeCount__);if(!g||!E&&N==et&&wt==et)return $g(s,this.__actions__);var Ot=[];t:for(;et--&&mt<wt;){ut+=a;for(var Ft=-1,Ct=s[ut];++Ft<ht;){var Ut=ft[Ft],qt=Ut.iteratee,ir=Ut.type,ze=qt(Ct);if(ir==q)Ct=ze;else if(!ze){if(ir==F)continue t;break t}}Ot[mt++]=Ct}return Ot}Gt.prototype=ji(xa.prototype),Gt.prototype.constructor=Gt;function Hn(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function d3(){this.__data__=Is?Is(null):{},this.size=0}function p3(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function v3(s){var a=this.__data__;if(Is){var g=a[s];return g===f?r:g}return te.call(a,s)?a[s]:r}function g3(s){var a=this.__data__;return Is?a[s]!==r:te.call(a,s)}function m3(s,a){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Is&&a===r?f:a,this}Hn.prototype.clear=d3,Hn.prototype.delete=p3,Hn.prototype.get=v3,Hn.prototype.has=g3,Hn.prototype.set=m3;function Yr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function y3(){this.__data__=[],this.size=0}function _3(s){var a=this.__data__,g=wa(a,s);if(g<0)return!1;var E=a.length-1;return g==E?a.pop():va.call(a,g,1),--this.size,!0}function b3(s){var a=this.__data__,g=wa(a,s);return g<0?r:a[g][1]}function x3(s){return wa(this.__data__,s)>-1}function w3(s,a){var g=this.__data__,E=wa(g,s);return E<0?(++this.size,g.push([s,a])):g[E][1]=a,this}Yr.prototype.clear=y3,Yr.prototype.delete=_3,Yr.prototype.get=b3,Yr.prototype.has=x3,Yr.prototype.set=w3;function Zr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var E=s[a];this.set(E[0],E[1])}}function T3(){this.size=0,this.__data__={hash:new Hn,map:new(Cs||Yr),string:new Hn}}function E3(s){var a=ka(this,s).delete(s);return this.size-=a?1:0,a}function A3(s){return ka(this,s).get(s)}function S3(s){return ka(this,s).has(s)}function O3(s,a){var g=ka(this,s),E=g.size;return g.set(s,a),this.size+=g.size==E?0:1,this}Zr.prototype.clear=T3,Zr.prototype.delete=E3,Zr.prototype.get=A3,Zr.prototype.has=S3,Zr.prototype.set=O3;function Vn(s){var a=-1,g=s==null?0:s.length;for(this.__data__=new Zr;++a<g;)this.add(s[a])}function C3(s){return this.__data__.set(s,f),this}function R3(s){return this.__data__.has(s)}Vn.prototype.add=Vn.prototype.push=C3,Vn.prototype.has=R3;function Ir(s){var a=this.__data__=new Yr(s);this.size=a.size}function I3(){this.__data__=new Yr,this.size=0}function P3(s){var a=this.__data__,g=a.delete(s);return this.size=a.size,g}function N3(s){return this.__data__.get(s)}function M3(s){return this.__data__.has(s)}function k3(s,a){var g=this.__data__;if(g instanceof Yr){var E=g.__data__;if(!Cs||E.length<i-1)return E.push([s,a]),this.size=++g.size,this;g=this.__data__=new Zr(E)}return g.set(s,a),this.size=g.size,this}Ir.prototype.clear=I3,Ir.prototype.delete=P3,Ir.prototype.get=N3,Ir.prototype.has=M3,Ir.prototype.set=k3;function mg(s,a){var g=Mt(s),E=!g&&Zn(s),N=!g&&!E&&Tn(s),U=!g&&!E&&!N&&Vi(s),H=g||E||N||U,Y=H?ff(s.length,zM):[],et=Y.length;for(var ut in s)(a||te.call(s,ut))&&!(H&&(ut=="length"||N&&(ut=="offset"||ut=="parent")||U&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||en(ut,et)))&&Y.push(ut);return Y}function yg(s){var a=s.length;return a?s[Of(0,a-1)]:r}function L3(s,a){return La(Ve(s),Wn(a,0,s.length))}function F3(s){return La(Ve(s))}function mf(s,a,g){(g!==r&&!Pr(s[a],g)||g===r&&!(a in s))&&Qr(s,a,g)}function Ns(s,a,g){var E=s[a];(!(te.call(s,a)&&Pr(E,g))||g===r&&!(a in s))&&Qr(s,a,g)}function wa(s,a){for(var g=s.length;g--;)if(Pr(s[g][0],a))return g;return-1}function B3(s,a,g,E){return _n(s,function(N,U,H){a(E,N,g(N),H)}),E}function _g(s,a){return s&&jr(a,Ie(a),s)}function D3(s,a){return s&&jr(a,Xe(a),s)}function Qr(s,a,g){a=="__proto__"&&ga?ga(s,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[a]=g}function yf(s,a){for(var g=-1,E=a.length,N=it(E),U=s==null;++g<E;)N[g]=U?r:Qf(s,a[g]);return N}function Wn(s,a,g){return s===s&&(g!==r&&(s=s<=g?s:g),a!==r&&(s=s>=a?s:a)),s}function dr(s,a,g,E,N,U){var H,Y=a&p,et=a&c,ut=a&v;if(g&&(H=N?g(s,E,N,U):g(s)),H!==r)return H;if(!ge(s))return s;var ft=Mt(s);if(ft){if(H=Sk(s),!Y)return Ve(s,H)}else{var ht=Ue(s),mt=ht==dt||ht==gt;if(Tn(s))return qg(s,Y);if(ht==Xt||ht==X||mt&&!N){if(H=et||mt?{}:lm(s),!Y)return et?vk(s,D3(H,s)):pk(s,_g(H,s))}else{if(!oe[ht])return N?s:{};H=Ok(s,ht,Y)}}U||(U=new Ir);var wt=U.get(s);if(wt)return wt;U.set(s,H),Bm(s)?s.forEach(function(Ct){H.add(dr(Ct,a,g,Ct,s,U))}):Lm(s)&&s.forEach(function(Ct,Ut){H.set(Ut,dr(Ct,a,g,Ut,s,U))});var Ot=ut?et?Df:Bf:et?Xe:Ie,Ft=ft?r:Ot(s);return fr(Ft||s,function(Ct,Ut){Ft&&(Ut=Ct,Ct=s[Ut]),Ns(H,Ut,dr(Ct,a,g,Ut,s,U))}),H}function U3(s){var a=Ie(s);return function(g){return bg(g,s,a)}}function bg(s,a,g){var E=g.length;if(s==null)return!E;for(s=ne(s);E--;){var N=g[E],U=a[N],H=s[N];if(H===r&&!(N in s)||!U(H))return!1}return!0}function xg(s,a,g){if(typeof s!="function")throw new cr(l);return Us(function(){s.apply(r,g)},a)}function Ms(s,a,g,E){var N=-1,U=sa,H=!0,Y=s.length,et=[],ut=a.length;if(!Y)return et;g&&(a=he(a,er(g))),E?(U=nf,H=!1):a.length>=i&&(U=Ss,H=!1,a=new Vn(a));t:for(;++N<Y;){var ft=s[N],ht=g==null?ft:g(ft);if(ft=E||ft!==0?ft:0,H&&ht===ht){for(var mt=ut;mt--;)if(a[mt]===ht)continue t;et.push(ft)}else U(a,ht,E)||et.push(ft)}return et}var _n=Xg(Gr),wg=Xg(bf,!0);function $3(s,a){var g=!0;return _n(s,function(E,N,U){return g=!!a(E,N,U),g}),g}function Ta(s,a,g){for(var E=-1,N=s.length;++E<N;){var U=s[E],H=a(U);if(H!=null&&(Y===r?H===H&&!nr(H):g(H,Y)))var Y=H,et=U}return et}function G3(s,a,g,E){var N=s.length;for(g=kt(g),g<0&&(g=-g>N?0:N+g),E=E===r||E>N?N:kt(E),E<0&&(E+=N),E=g>E?0:Um(E);g<E;)s[g++]=a;return s}function Tg(s,a){var g=[];return _n(s,function(E,N,U){a(E,N,U)&&g.push(E)}),g}function Me(s,a,g,E,N){var U=-1,H=s.length;for(g||(g=Rk),N||(N=[]);++U<H;){var Y=s[U];a>0&&g(Y)?a>1?Me(Y,a-1,g,E,N):gn(N,Y):E||(N[N.length]=Y)}return N}var _f=Kg(),Eg=Kg(!0);function Gr(s,a){return s&&_f(s,a,Ie)}function bf(s,a){return s&&Eg(s,a,Ie)}function Ea(s,a){return vn(a,function(g){return rn(s[g])})}function Xn(s,a){a=xn(a,s);for(var g=0,E=a.length;s!=null&&g<E;)s=s[qr(a[g++])];return g&&g==E?s:r}function Ag(s,a,g){var E=a(s);return Mt(s)?E:gn(E,g(s))}function je(s){return s==null?s===r?Lt:fe:zn&&zn in ne(s)?Tk(s):Fk(s)}function xf(s,a){return s>a}function j3(s,a){return s!=null&&te.call(s,a)}function q3(s,a){return s!=null&&a in ne(s)}function z3(s,a,g){return s>=De(a,g)&&s<Se(a,g)}function wf(s,a,g){for(var E=g?nf:sa,N=s[0].length,U=s.length,H=U,Y=it(U),et=1/0,ut=[];H--;){var ft=s[H];H&&a&&(ft=he(ft,er(a))),et=De(ft.length,et),Y[H]=!g&&(a||N>=120&&ft.length>=120)?new Vn(H&&ft):r}ft=s[0];var ht=-1,mt=Y[0];t:for(;++ht<N&&ut.length<et;){var wt=ft[ht],Ot=a?a(wt):wt;if(wt=g||wt!==0?wt:0,!(mt?Ss(mt,Ot):E(ut,Ot,g))){for(H=U;--H;){var Ft=Y[H];if(!(Ft?Ss(Ft,Ot):E(s[H],Ot,g)))continue t}mt&&mt.push(Ot),ut.push(wt)}}return ut}function H3(s,a,g,E){return Gr(s,function(N,U,H){a(E,g(N),U,H)}),E}function ks(s,a,g){a=xn(a,s),s=hm(s,a);var E=s==null?s:s[qr(vr(a))];return E==null?r:tr(E,s,g)}function Sg(s){return me(s)&&je(s)==X}function V3(s){return me(s)&&je(s)==Ge}function W3(s){return me(s)&&je(s)==Z}function Ls(s,a,g,E,N){return s===a?!0:s==null||a==null||!me(s)&&!me(a)?s!==s&&a!==a:X3(s,a,g,E,Ls,N)}function X3(s,a,g,E,N,U){var H=Mt(s),Y=Mt(a),et=H?$:Ue(s),ut=Y?$:Ue(a);et=et==X?Xt:et,ut=ut==X?Xt:ut;var ft=et==Xt,ht=ut==Xt,mt=et==ut;if(mt&&Tn(s)){if(!Tn(a))return!1;H=!0,ft=!1}if(mt&&!ft)return U||(U=new Ir),H||Vi(s)?sm(s,a,g,E,N,U):xk(s,a,et,g,E,N,U);if(!(g&m)){var wt=ft&&te.call(s,"__wrapped__"),Ot=ht&&te.call(a,"__wrapped__");if(wt||Ot){var Ft=wt?s.value():s,Ct=Ot?a.value():a;return U||(U=new Ir),N(Ft,Ct,g,E,U)}}return mt?(U||(U=new Ir),wk(s,a,g,E,N,U)):!1}function K3(s){return me(s)&&Ue(s)==xt}function Tf(s,a,g,E){var N=g.length,U=N,H=!E;if(s==null)return!U;for(s=ne(s);N--;){var Y=g[N];if(H&&Y[2]?Y[1]!==s[Y[0]]:!(Y[0]in s))return!1}for(;++N<U;){Y=g[N];var et=Y[0],ut=s[et],ft=Y[1];if(H&&Y[2]){if(ut===r&&!(et in s))return!1}else{var ht=new Ir;if(E)var mt=E(ut,ft,et,s,a,ht);if(!(mt===r?Ls(ft,ut,m|y,E,ht):mt))return!1}}return!0}function Og(s){if(!ge(s)||Pk(s))return!1;var a=rn(s)?KM:UN;return a.test(Yn(s))}function Y3(s){return me(s)&&je(s)==pt}function Z3(s){return me(s)&&Ue(s)==vt}function Q3(s){return me(s)&&Ga(s.length)&&!!le[je(s)]}function Cg(s){return typeof s=="function"?s:s==null?Ke:typeof s=="object"?Mt(s)?Pg(s[0],s[1]):Ig(s):Ym(s)}function Ef(s){if(!Ds(s))return e3(s);var a=[];for(var g in ne(s))te.call(s,g)&&g!="constructor"&&a.push(g);return a}function J3(s){if(!ge(s))return Lk(s);var a=Ds(s),g=[];for(var E in s)E=="constructor"&&(a||!te.call(s,E))||g.push(E);return g}function Af(s,a){return s<a}function Rg(s,a){var g=-1,E=We(s)?it(s.length):[];return _n(s,function(N,U,H){E[++g]=a(N,U,H)}),E}function Ig(s){var a=$f(s);return a.length==1&&a[0][2]?fm(a[0][0],a[0][1]):function(g){return g===s||Tf(g,s,a)}}function Pg(s,a){return jf(s)&&um(a)?fm(qr(s),a):function(g){var E=Qf(g,s);return E===r&&E===a?Jf(g,s):Ls(a,E,m|y)}}function Aa(s,a,g,E,N){s!==a&&_f(a,function(U,H){if(N||(N=new Ir),ge(U))tk(s,a,H,g,Aa,E,N);else{var Y=E?E(zf(s,H),U,H+"",s,a,N):r;Y===r&&(Y=U),mf(s,H,Y)}},Xe)}function tk(s,a,g,E,N,U,H){var Y=zf(s,g),et=zf(a,g),ut=H.get(et);if(ut){mf(s,g,ut);return}var ft=U?U(Y,et,g+"",s,a,H):r,ht=ft===r;if(ht){var mt=Mt(et),wt=!mt&&Tn(et),Ot=!mt&&!wt&&Vi(et);ft=et,mt||wt||Ot?Mt(Y)?ft=Y:be(Y)?ft=Ve(Y):wt?(ht=!1,ft=qg(et,!0)):Ot?(ht=!1,ft=zg(et,!0)):ft=[]:$s(et)||Zn(et)?(ft=Y,Zn(Y)?ft=$m(Y):(!ge(Y)||rn(Y))&&(ft=lm(et))):ht=!1}ht&&(H.set(et,ft),N(ft,et,E,U,H),H.delete(et)),mf(s,g,ft)}function Ng(s,a){var g=s.length;if(g)return a+=a<0?g:0,en(a,g)?s[a]:r}function Mg(s,a,g){a.length?a=he(a,function(U){return Mt(U)?function(H){return Xn(H,U.length===1?U[0]:U)}:U}):a=[Ke];var E=-1;a=he(a,er(St()));var N=Rg(s,function(U,H,Y){var et=he(a,function(ut){return ut(U)});return{criteria:et,index:++E,value:U}});return OM(N,function(U,H){return dk(U,H,g)})}function ek(s,a){return kg(s,a,function(g,E){return Jf(s,E)})}function kg(s,a,g){for(var E=-1,N=a.length,U={};++E<N;){var H=a[E],Y=Xn(s,H);g(Y,H)&&Fs(U,xn(H,s),Y)}return U}function rk(s){return function(a){return Xn(a,s)}}function Sf(s,a,g,E){var N=E?SM:Li,U=-1,H=a.length,Y=s;for(s===a&&(a=Ve(a)),g&&(Y=he(s,er(g)));++U<H;)for(var et=0,ut=a[U],ft=g?g(ut):ut;(et=N(Y,ft,et,E))>-1;)Y!==s&&va.call(Y,et,1),va.call(s,et,1);return s}function Lg(s,a){for(var g=s?a.length:0,E=g-1;g--;){var N=a[g];if(g==E||N!==U){var U=N;en(N)?va.call(s,N,1):If(s,N)}}return s}function Of(s,a){return s+ya(vg()*(a-s+1))}function nk(s,a,g,E){for(var N=-1,U=Se(ma((a-s)/(g||1)),0),H=it(U);U--;)H[E?U:++N]=s,s+=g;return H}function Cf(s,a){var g="";if(!s||a<1||a>rt)return g;do a%2&&(g+=s),a=ya(a/2),a&&(s+=s);while(a);return g}function Bt(s,a){return Hf(cm(s,a,Ke),s+"")}function ik(s){return yg(Wi(s))}function sk(s,a){var g=Wi(s);return La(g,Wn(a,0,g.length))}function Fs(s,a,g,E){if(!ge(s))return s;a=xn(a,s);for(var N=-1,U=a.length,H=U-1,Y=s;Y!=null&&++N<U;){var et=qr(a[N]),ut=g;if(et==="__proto__"||et==="constructor"||et==="prototype")return s;if(N!=H){var ft=Y[et];ut=E?E(ft,et,Y):r,ut===r&&(ut=ge(ft)?ft:en(a[N+1])?[]:{})}Ns(Y,et,ut),Y=Y[et]}return s}var Fg=_a?function(s,a){return _a.set(s,a),s}:Ke,ok=ga?function(s,a){return ga(s,"toString",{configurable:!0,enumerable:!1,value:ec(a),writable:!0})}:Ke;function ak(s){return La(Wi(s))}function pr(s,a,g){var E=-1,N=s.length;a<0&&(a=-a>N?0:N+a),g=g>N?N:g,g<0&&(g+=N),N=a>g?0:g-a>>>0,a>>>=0;for(var U=it(N);++E<N;)U[E]=s[E+a];return U}function lk(s,a){var g;return _n(s,function(E,N,U){return g=a(E,N,U),!g}),!!g}function Sa(s,a,g){var E=0,N=s==null?E:s.length;if(typeof a=="number"&&a===a&&N<=G){for(;E<N;){var U=E+N>>>1,H=s[U];H!==null&&!nr(H)&&(g?H<=a:H<a)?E=U+1:N=U}return N}return Rf(s,a,Ke,g)}function Rf(s,a,g,E){var N=0,U=s==null?0:s.length;if(U===0)return 0;a=g(a);for(var H=a!==a,Y=a===null,et=nr(a),ut=a===r;N<U;){var ft=ya((N+U)/2),ht=g(s[ft]),mt=ht!==r,wt=ht===null,Ot=ht===ht,Ft=nr(ht);if(H)var Ct=E||Ot;else ut?Ct=Ot&&(E||mt):Y?Ct=Ot&&mt&&(E||!wt):et?Ct=Ot&&mt&&!wt&&(E||!Ft):wt||Ft?Ct=!1:Ct=E?ht<=a:ht<a;Ct?N=ft+1:U=ft}return De(U,j)}function Bg(s,a){for(var g=-1,E=s.length,N=0,U=[];++g<E;){var H=s[g],Y=a?a(H):H;if(!g||!Pr(Y,et)){var et=Y;U[N++]=H===0?0:H}}return U}function Dg(s){return typeof s=="number"?s:nr(s)?D:+s}function rr(s){if(typeof s=="string")return s;if(Mt(s))return he(s,rr)+"";if(nr(s))return gg?gg.call(s):"";var a=s+"";return a=="0"&&1/s==-z?"-0":a}function bn(s,a,g){var E=-1,N=sa,U=s.length,H=!0,Y=[],et=Y;if(g)H=!1,N=nf;else if(U>=i){var ut=a?null:_k(s);if(ut)return aa(ut);H=!1,N=Ss,et=new Vn}else et=a?[]:Y;t:for(;++E<U;){var ft=s[E],ht=a?a(ft):ft;if(ft=g||ft!==0?ft:0,H&&ht===ht){for(var mt=et.length;mt--;)if(et[mt]===ht)continue t;a&&et.push(ht),Y.push(ft)}else N(et,ht,g)||(et!==Y&&et.push(ht),Y.push(ft))}return Y}function If(s,a){return a=xn(a,s),s=hm(s,a),s==null||delete s[qr(vr(a))]}function Ug(s,a,g,E){return Fs(s,a,g(Xn(s,a)),E)}function Oa(s,a,g,E){for(var N=s.length,U=E?N:-1;(E?U--:++U<N)&&a(s[U],U,s););return g?pr(s,E?0:U,E?U+1:N):pr(s,E?U+1:0,E?N:U)}function $g(s,a){var g=s;return g instanceof Gt&&(g=g.value()),sf(a,function(E,N){return N.func.apply(N.thisArg,gn([E],N.args))},g)}function Pf(s,a,g){var E=s.length;if(E<2)return E?bn(s[0]):[];for(var N=-1,U=it(E);++N<E;)for(var H=s[N],Y=-1;++Y<E;)Y!=N&&(U[N]=Ms(U[N]||H,s[Y],a,g));return bn(Me(U,1),a,g)}function Gg(s,a,g){for(var E=-1,N=s.length,U=a.length,H={};++E<N;){var Y=E<U?a[E]:r;g(H,s[E],Y)}return H}function Nf(s){return be(s)?s:[]}function Mf(s){return typeof s=="function"?s:Ke}function xn(s,a){return Mt(s)?s:jf(s,a)?[s]:gm(Qt(s))}var uk=Bt;function wn(s,a,g){var E=s.length;return g=g===r?E:g,!a&&g>=E?s:pr(s,a,g)}var jg=YM||function(s){return Ne.clearTimeout(s)};function qg(s,a){if(a)return s.slice();var g=s.length,E=fg?fg(g):new s.constructor(g);return s.copy(E),E}function kf(s){var a=new s.constructor(s.byteLength);return new da(a).set(new da(s)),a}function fk(s,a){var g=a?kf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function ck(s){var a=new s.constructor(s.source,Sv.exec(s));return a.lastIndex=s.lastIndex,a}function hk(s){return Ps?ne(Ps.call(s)):{}}function zg(s,a){var g=a?kf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Hg(s,a){if(s!==a){var g=s!==r,E=s===null,N=s===s,U=nr(s),H=a!==r,Y=a===null,et=a===a,ut=nr(a);if(!Y&&!ut&&!U&&s>a||U&&H&&et&&!Y&&!ut||E&&H&&et||!g&&et||!N)return 1;if(!E&&!U&&!ut&&s<a||ut&&g&&N&&!E&&!U||Y&&g&&N||!H&&N||!et)return-1}return 0}function dk(s,a,g){for(var E=-1,N=s.criteria,U=a.criteria,H=N.length,Y=g.length;++E<H;){var et=Hg(N[E],U[E]);if(et){if(E>=Y)return et;var ut=g[E];return et*(ut=="desc"?-1:1)}}return s.index-a.index}function Vg(s,a,g,E){for(var N=-1,U=s.length,H=g.length,Y=-1,et=a.length,ut=Se(U-H,0),ft=it(et+ut),ht=!E;++Y<et;)ft[Y]=a[Y];for(;++N<H;)(ht||N<U)&&(ft[g[N]]=s[N]);for(;ut--;)ft[Y++]=s[N++];return ft}function Wg(s,a,g,E){for(var N=-1,U=s.length,H=-1,Y=g.length,et=-1,ut=a.length,ft=Se(U-Y,0),ht=it(ft+ut),mt=!E;++N<ft;)ht[N]=s[N];for(var wt=N;++et<ut;)ht[wt+et]=a[et];for(;++H<Y;)(mt||N<U)&&(ht[wt+g[H]]=s[N++]);return ht}function Ve(s,a){var g=-1,E=s.length;for(a||(a=it(E));++g<E;)a[g]=s[g];return a}function jr(s,a,g,E){var N=!g;g||(g={});for(var U=-1,H=a.length;++U<H;){var Y=a[U],et=E?E(g[Y],s[Y],Y,g,s):r;et===r&&(et=s[Y]),N?Qr(g,Y,et):Ns(g,Y,et)}return g}function pk(s,a){return jr(s,Gf(s),a)}function vk(s,a){return jr(s,om(s),a)}function Ca(s,a){return function(g,E){var N=Mt(g)?bM:B3,U=a?a():{};return N(g,s,St(E,2),U)}}function qi(s){return Bt(function(a,g){var E=-1,N=g.length,U=N>1?g[N-1]:r,H=N>2?g[2]:r;for(U=s.length>3&&typeof U=="function"?(N--,U):r,H&&qe(g[0],g[1],H)&&(U=N<3?r:U,N=1),a=ne(a);++E<N;){var Y=g[E];Y&&s(a,Y,E,U)}return a})}function Xg(s,a){return function(g,E){if(g==null)return g;if(!We(g))return s(g,E);for(var N=g.length,U=a?N:-1,H=ne(g);(a?U--:++U<N)&&E(H[U],U,H)!==!1;);return g}}function Kg(s){return function(a,g,E){for(var N=-1,U=ne(a),H=E(a),Y=H.length;Y--;){var et=H[s?Y:++N];if(g(U[et],et,U)===!1)break}return a}}function gk(s,a,g){var E=a&b,N=Bs(s);function U(){var H=this&&this!==Ne&&this instanceof U?N:s;return H.apply(E?g:this,arguments)}return U}function Yg(s){return function(a){a=Qt(a);var g=Fi(a)?Rr(a):r,E=g?g[0]:a.charAt(0),N=g?wn(g,1).join(""):a.slice(1);return E[s]()+N}}function zi(s){return function(a){return sf(Xm(Wm(a).replace(oM,"")),s,"")}}function Bs(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=ji(s.prototype),E=s.apply(g,a);return ge(E)?E:g}}function mk(s,a,g){var E=Bs(s);function N(){for(var U=arguments.length,H=it(U),Y=U,et=Hi(N);Y--;)H[Y]=arguments[Y];var ut=U<3&&H[0]!==et&&H[U-1]!==et?[]:mn(H,et);if(U-=ut.length,U<g)return em(s,a,Ra,N.placeholder,r,H,ut,r,r,g-U);var ft=this&&this!==Ne&&this instanceof N?E:s;return tr(ft,this,H)}return N}function Zg(s){return function(a,g,E){var N=ne(a);if(!We(a)){var U=St(g,3);a=Ie(a),g=function(Y){return U(N[Y],Y,N)}}var H=s(a,g,E);return H>-1?N[U?a[H]:H]:r}}function Qg(s){return tn(function(a){var g=a.length,E=g,N=hr.prototype.thru;for(s&&a.reverse();E--;){var U=a[E];if(typeof U!="function")throw new cr(l);if(N&&!H&&Ma(U)=="wrapper")var H=new hr([],!0)}for(E=H?E:g;++E<g;){U=a[E];var Y=Ma(U),et=Y=="wrapper"?Uf(U):r;et&&qf(et[0])&&et[1]==(S|T|A|O)&&!et[4].length&&et[9]==1?H=H[Ma(et[0])].apply(H,et[3]):H=U.length==1&&qf(U)?H[Y]():H.thru(U)}return function(){var ut=arguments,ft=ut[0];if(H&&ut.length==1&&Mt(ft))return H.plant(ft).value();for(var ht=0,mt=g?a[ht].apply(this,ut):ft;++ht<g;)mt=a[ht].call(this,mt);return mt}})}function Ra(s,a,g,E,N,U,H,Y,et,ut){var ft=a&S,ht=a&b,mt=a&_,wt=a&(T|x),Ot=a&L,Ft=mt?r:Bs(s);function Ct(){for(var Ut=arguments.length,qt=it(Ut),ir=Ut;ir--;)qt[ir]=arguments[ir];if(wt)var ze=Hi(Ct),sr=RM(qt,ze);if(E&&(qt=Vg(qt,E,N,wt)),U&&(qt=Wg(qt,U,H,wt)),Ut-=sr,wt&&Ut<ut){var xe=mn(qt,ze);return em(s,a,Ra,Ct.placeholder,g,qt,xe,Y,et,ut-Ut)}var Nr=ht?g:this,sn=mt?Nr[s]:s;return Ut=qt.length,Y?qt=Bk(qt,Y):Ot&&Ut>1&&qt.reverse(),ft&&et<Ut&&(qt.length=et),this&&this!==Ne&&this instanceof Ct&&(sn=Ft||Bs(sn)),sn.apply(Nr,qt)}return Ct}function Jg(s,a){return function(g,E){return H3(g,s,a(E),{})}}function Ia(s,a){return function(g,E){var N;if(g===r&&E===r)return a;if(g!==r&&(N=g),E!==r){if(N===r)return E;typeof g=="string"||typeof E=="string"?(g=rr(g),E=rr(E)):(g=Dg(g),E=Dg(E)),N=s(g,E)}return N}}function Lf(s){return tn(function(a){return a=he(a,er(St())),Bt(function(g){var E=this;return s(a,function(N){return tr(N,E,g)})})})}function Pa(s,a){a=a===r?" ":rr(a);var g=a.length;if(g<2)return g?Cf(a,s):a;var E=Cf(a,ma(s/Bi(a)));return Fi(a)?wn(Rr(E),0,s).join(""):E.slice(0,s)}function yk(s,a,g,E){var N=a&b,U=Bs(s);function H(){for(var Y=-1,et=arguments.length,ut=-1,ft=E.length,ht=it(ft+et),mt=this&&this!==Ne&&this instanceof H?U:s;++ut<ft;)ht[ut]=E[ut];for(;et--;)ht[ut++]=arguments[++Y];return tr(mt,N?g:this,ht)}return H}function tm(s){return function(a,g,E){return E&&typeof E!="number"&&qe(a,g,E)&&(g=E=r),a=nn(a),g===r?(g=a,a=0):g=nn(g),E=E===r?a<g?1:-1:nn(E),nk(a,g,E,s)}}function Na(s){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=gr(a),g=gr(g)),s(a,g)}}function em(s,a,g,E,N,U,H,Y,et,ut){var ft=a&T,ht=ft?H:r,mt=ft?r:H,wt=ft?U:r,Ot=ft?r:U;a|=ft?A:I,a&=~(ft?I:A),a&w||(a&=~(b|_));var Ft=[s,a,N,wt,ht,Ot,mt,Y,et,ut],Ct=g.apply(r,Ft);return qf(s)&&dm(Ct,Ft),Ct.placeholder=E,pm(Ct,s,a)}function Ff(s){var a=Ae[s];return function(g,E){if(g=gr(g),E=E==null?0:De(kt(E),292),E&&pg(g)){var N=(Qt(g)+"e").split("e"),U=a(N[0]+"e"+(+N[1]+E));return N=(Qt(U)+"e").split("e"),+(N[0]+"e"+(+N[1]-E))}return a(g)}}var _k=$i&&1/aa(new $i([,-0]))[1]==z?function(s){return new $i(s)}:ic;function rm(s){return function(a){var g=Ue(a);return g==xt?hf(a):g==vt?FM(a):CM(a,s(a))}}function Jr(s,a,g,E,N,U,H,Y){var et=a&_;if(!et&&typeof s!="function")throw new cr(l);var ut=E?E.length:0;if(ut||(a&=~(A|I),E=N=r),H=H===r?H:Se(kt(H),0),Y=Y===r?Y:kt(Y),ut-=N?N.length:0,a&I){var ft=E,ht=N;E=N=r}var mt=et?r:Uf(s),wt=[s,a,g,E,N,ft,ht,U,H,Y];if(mt&&kk(wt,mt),s=wt[0],a=wt[1],g=wt[2],E=wt[3],N=wt[4],Y=wt[9]=wt[9]===r?et?0:s.length:Se(wt[9]-ut,0),!Y&&a&(T|x)&&(a&=~(T|x)),!a||a==b)var Ot=gk(s,a,g);else a==T||a==x?Ot=mk(s,a,Y):(a==A||a==(b|A))&&!N.length?Ot=yk(s,a,g,E):Ot=Ra.apply(r,wt);var Ft=mt?Fg:dm;return pm(Ft(Ot,wt),s,a)}function nm(s,a,g,E){return s===r||Pr(s,Ui[g])&&!te.call(E,g)?a:s}function im(s,a,g,E,N,U){return ge(s)&&ge(a)&&(U.set(a,s),Aa(s,a,r,im,U),U.delete(a)),s}function bk(s){return $s(s)?r:s}function sm(s,a,g,E,N,U){var H=g&m,Y=s.length,et=a.length;if(Y!=et&&!(H&&et>Y))return!1;var ut=U.get(s),ft=U.get(a);if(ut&&ft)return ut==a&&ft==s;var ht=-1,mt=!0,wt=g&y?new Vn:r;for(U.set(s,a),U.set(a,s);++ht<Y;){var Ot=s[ht],Ft=a[ht];if(E)var Ct=H?E(Ft,Ot,ht,a,s,U):E(Ot,Ft,ht,s,a,U);if(Ct!==r){if(Ct)continue;mt=!1;break}if(wt){if(!of(a,function(Ut,qt){if(!Ss(wt,qt)&&(Ot===Ut||N(Ot,Ut,g,E,U)))return wt.push(qt)})){mt=!1;break}}else if(!(Ot===Ft||N(Ot,Ft,g,E,U))){mt=!1;break}}return U.delete(s),U.delete(a),mt}function xk(s,a,g,E,N,U,H){switch(g){case Zt:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case Ge:return!(s.byteLength!=a.byteLength||!U(new da(s),new da(a)));case J:case Z:case At:return Pr(+s,+a);case at:return s.name==a.name&&s.message==a.message;case pt:case ct:return s==a+"";case xt:var Y=hf;case vt:var et=E&m;if(Y||(Y=aa),s.size!=a.size&&!et)return!1;var ut=H.get(s);if(ut)return ut==a;E|=y,H.set(s,a);var ft=sm(Y(s),Y(a),E,N,U,H);return H.delete(s),ft;case Pt:if(Ps)return Ps.call(s)==Ps.call(a)}return!1}function wk(s,a,g,E,N,U){var H=g&m,Y=Bf(s),et=Y.length,ut=Bf(a),ft=ut.length;if(et!=ft&&!H)return!1;for(var ht=et;ht--;){var mt=Y[ht];if(!(H?mt in a:te.call(a,mt)))return!1}var wt=U.get(s),Ot=U.get(a);if(wt&&Ot)return wt==a&&Ot==s;var Ft=!0;U.set(s,a),U.set(a,s);for(var Ct=H;++ht<et;){mt=Y[ht];var Ut=s[mt],qt=a[mt];if(E)var ir=H?E(qt,Ut,mt,a,s,U):E(Ut,qt,mt,s,a,U);if(!(ir===r?Ut===qt||N(Ut,qt,g,E,U):ir)){Ft=!1;break}Ct||(Ct=mt=="constructor")}if(Ft&&!Ct){var ze=s.constructor,sr=a.constructor;ze!=sr&&"constructor"in s&&"constructor"in a&&!(typeof ze=="function"&&ze instanceof ze&&typeof sr=="function"&&sr instanceof sr)&&(Ft=!1)}return U.delete(s),U.delete(a),Ft}function tn(s){return Hf(cm(s,r,bm),s+"")}function Bf(s){return Ag(s,Ie,Gf)}function Df(s){return Ag(s,Xe,om)}var Uf=_a?function(s){return _a.get(s)}:ic;function Ma(s){for(var a=s.name+"",g=Gi[a],E=te.call(Gi,a)?g.length:0;E--;){var N=g[E],U=N.func;if(U==null||U==s)return N.name}return a}function Hi(s){var a=te.call(B,"placeholder")?B:s;return a.placeholder}function St(){var s=B.iteratee||rc;return s=s===rc?Cg:s,arguments.length?s(arguments[0],arguments[1]):s}function ka(s,a){var g=s.__data__;return Ik(a)?g[typeof a=="string"?"string":"hash"]:g.map}function $f(s){for(var a=Ie(s),g=a.length;g--;){var E=a[g],N=s[E];a[g]=[E,N,um(N)]}return a}function Kn(s,a){var g=MM(s,a);return Og(g)?g:r}function Tk(s){var a=te.call(s,zn),g=s[zn];try{s[zn]=r;var E=!0}catch{}var N=ca.call(s);return E&&(a?s[zn]=g:delete s[zn]),N}var Gf=pf?function(s){return s==null?[]:(s=ne(s),vn(pf(s),function(a){return hg.call(s,a)}))}:sc,om=pf?function(s){for(var a=[];s;)gn(a,Gf(s)),s=pa(s);return a}:sc,Ue=je;(vf&&Ue(new vf(new ArrayBuffer(1)))!=Zt||Cs&&Ue(new Cs)!=xt||gf&&Ue(gf.resolve())!=st||$i&&Ue(new $i)!=vt||Rs&&Ue(new Rs)!=Nt)&&(Ue=function(s){var a=je(s),g=a==Xt?s.constructor:r,E=g?Yn(g):"";if(E)switch(E){case s3:return Zt;case o3:return xt;case a3:return st;case l3:return vt;case u3:return Nt}return a});function Ek(s,a,g){for(var E=-1,N=g.length;++E<N;){var U=g[E],H=U.size;switch(U.type){case"drop":s+=H;break;case"dropRight":a-=H;break;case"take":a=De(a,s+H);break;case"takeRight":s=Se(s,a-H);break}}return{start:s,end:a}}function Ak(s){var a=s.match(PN);return a?a[1].split(NN):[]}function am(s,a,g){a=xn(a,s);for(var E=-1,N=a.length,U=!1;++E<N;){var H=qr(a[E]);if(!(U=s!=null&&g(s,H)))break;s=s[H]}return U||++E!=N?U:(N=s==null?0:s.length,!!N&&Ga(N)&&en(H,N)&&(Mt(s)||Zn(s)))}function Sk(s){var a=s.length,g=new s.constructor(a);return a&&typeof s[0]=="string"&&te.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function lm(s){return typeof s.constructor=="function"&&!Ds(s)?ji(pa(s)):{}}function Ok(s,a,g){var E=s.constructor;switch(a){case Ge:return kf(s);case J:case Z:return new E(+s);case Zt:return fk(s,g);case As:case ce:case lr:case ju:case qu:case zu:case Hu:case Vu:case Wu:return zg(s,g);case xt:return new E;case At:case ct:return new E(s);case pt:return ck(s);case vt:return new E;case Pt:return hk(s)}}function Ck(s,a){var g=a.length;if(!g)return s;var E=g-1;return a[E]=(g>1?"& ":"")+a[E],a=a.join(g>2?", ":" "),s.replace(IN,`{
1931
1931
  /* [wrapped with `+a+`] */
1932
- `)}function Rk(s){return Mt(s)||Zn(s)||!!(dg&&s&&s[dg])}function en(s,a){var g=typeof s;return a=a??rt,!!a&&(g=="number"||g!="symbol"&&GN.test(s))&&s>-1&&s%1==0&&s<a}function qe(s,a,g){if(!ge(g))return!1;var E=typeof a;return(E=="number"?We(g)&&en(a,g.length):E=="string"&&a in g)?Pr(g[a],s):!1}function jf(s,a){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||nr(s)?!0:SN.test(s)||!AN.test(s)||a!=null&&s in ne(a)}function Ik(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function qf(s){var a=Ma(s),g=B[a];if(typeof g!="function"||!(a in Gt.prototype))return!1;if(s===g)return!0;var E=Uf(g);return!!E&&s===E[0]}function Pk(s){return!!ug&&ug in s}var Nk=ua?rn:oc;function Ds(s){var a=s&&s.constructor,g=typeof a=="function"&&a.prototype||Ui;return s===g}function um(s){return s===s&&!ge(s)}function fm(s,a){return function(g){return g==null?!1:g[s]===a&&(a!==r||s in ne(g))}}function Mk(s){var a=Ua(s,function(E){return g.size===h&&g.clear(),E}),g=a.cache;return a}function kk(s,a){var g=s[1],E=a[1],N=g|E,D=N<(b|_|S),H=E==S&&g==T||E==S&&g==O&&s[7].length<=a[8]||E==(S|O)&&a[7].length<=a[8]&&g==T;if(!(D||H))return s;E&b&&(s[2]=a[2],N|=g&b?0:w);var Y=a[3];if(Y){var et=s[3];s[3]=et?Vg(et,Y,a[4]):Y,s[4]=et?mn(s[3],d):a[4]}return Y=a[5],Y&&(et=s[5],s[5]=et?Wg(et,Y,a[6]):Y,s[6]=et?mn(s[5],d):a[6]),Y=a[7],Y&&(s[7]=Y),E&S&&(s[8]=s[8]==null?a[8]:De(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=N,s}function Lk(s){var a=[];if(s!=null)for(var g in ne(s))a.push(g);return a}function Fk(s){return ca.call(s)}function cm(s,a,g){return a=Se(a===r?s.length-1:a,0),function(){for(var E=arguments,N=-1,D=Se(E.length-a,0),H=it(D);++N<D;)H[N]=E[a+N];N=-1;for(var Y=it(a+1);++N<a;)Y[N]=E[N];return Y[a]=g(H),tr(s,this,Y)}}function hm(s,a){return a.length<2?s:Xn(s,pr(a,0,-1))}function Bk(s,a){for(var g=s.length,E=De(a.length,g),N=Ve(s);E--;){var D=a[E];s[E]=en(D,g)?N[D]:r}return s}function zf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var dm=vm(Fg),Us=QM||function(s,a){return Ne.setTimeout(s,a)},Hf=vm(ok);function pm(s,a,g){var E=a+"";return Hf(s,Ck(E,Dk(Ak(E),g)))}function vm(s){var a=0,g=0;return function(){var E=r3(),N=M-(E-g);if(g=E,N>0){if(++a>=P)return arguments[0]}else a=0;return s.apply(r,arguments)}}function La(s,a){var g=-1,E=s.length,N=E-1;for(a=a===r?E:a;++g<a;){var D=Of(g,N),H=s[D];s[D]=s[g],s[g]=H}return s.length=a,s}var gm=Mk(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(ON,function(g,E,N,D){a.push(N?D.replace(LN,"$1"):E||g)}),a});function qr(s){if(typeof s=="string"||nr(s))return s;var a=s+"";return a=="0"&&1/s==-z?"-0":a}function Yn(s){if(s!=null){try{return fa.call(s)}catch{}try{return s+""}catch{}}return""}function Dk(s,a){return fr(K,function(g){var E="_."+g[0];a&g[1]&&!sa(s,E)&&s.push(E)}),s.sort()}function mm(s){if(s instanceof Gt)return s.clone();var a=new hr(s.__wrapped__,s.__chain__);return a.__actions__=Ve(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function Uk(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=Se(kt(a),0);var E=s==null?0:s.length;if(!E||a<1)return[];for(var N=0,D=0,H=it(ma(E/a));N<E;)H[D++]=pr(s,N,N+=a);return H}function $k(s){for(var a=-1,g=s==null?0:s.length,E=0,N=[];++a<g;){var D=s[a];D&&(N[E++]=D)}return N}function Gk(){var s=arguments.length;if(!s)return[];for(var a=it(s-1),g=arguments[0],E=s;E--;)a[E-1]=arguments[E];return gn(Mt(g)?Ve(g):[g],Me(a,1))}var jk=Bt(function(s,a){return _e(s)?Ms(s,Me(a,1,_e,!0)):[]}),qk=Bt(function(s,a){var g=vr(a);return _e(g)&&(g=r),_e(s)?Ms(s,Me(a,1,_e,!0),At(g,2)):[]}),zk=Bt(function(s,a){var g=vr(a);return _e(g)&&(g=r),_e(s)?Ms(s,Me(a,1,_e,!0),r,g):[]});function Hk(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),pr(s,a<0?0:a,E)):[]}function Vk(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),a=E-a,pr(s,0,a<0?0:a)):[]}function Wk(s,a){return s&&s.length?Oa(s,At(a,3),!0,!0):[]}function Xk(s,a){return s&&s.length?Oa(s,At(a,3),!0):[]}function Kk(s,a,g,E){var N=s==null?0:s.length;return N?(g&&typeof g!="number"&&qe(s,a,g)&&(g=0,E=N),G3(s,a,g,E)):[]}function ym(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=g==null?0:kt(g);return N<0&&(N=Se(E+N,0)),oa(s,At(a,3),N)}function _m(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=E-1;return g!==r&&(N=kt(g),N=g<0?Se(E+N,0):De(N,E-1)),oa(s,At(a,3),N,!0)}function bm(s){var a=s==null?0:s.length;return a?Me(s,1):[]}function Yk(s){var a=s==null?0:s.length;return a?Me(s,z):[]}function Zk(s,a){var g=s==null?0:s.length;return g?(a=a===r?1:kt(a),Me(s,a)):[]}function Qk(s){for(var a=-1,g=s==null?0:s.length,E={};++a<g;){var N=s[a];E[N[0]]=N[1]}return E}function xm(s){return s&&s.length?s[0]:r}function Jk(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=g==null?0:kt(g);return N<0&&(N=Se(E+N,0)),Li(s,a,N)}function t5(s){var a=s==null?0:s.length;return a?pr(s,0,-1):[]}var e5=Bt(function(s){var a=he(s,Nf);return a.length&&a[0]===s[0]?wf(a):[]}),r5=Bt(function(s){var a=vr(s),g=he(s,Nf);return a===vr(g)?a=r:g.pop(),g.length&&g[0]===s[0]?wf(g,At(a,2)):[]}),n5=Bt(function(s){var a=vr(s),g=he(s,Nf);return a=typeof a=="function"?a:r,a&&g.pop(),g.length&&g[0]===s[0]?wf(g,r,a):[]});function i5(s,a){return s==null?"":t3.call(s,a)}function vr(s){var a=s==null?0:s.length;return a?s[a-1]:r}function s5(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=E;return g!==r&&(N=kt(g),N=N<0?Se(E+N,0):De(N,E-1)),a===a?DM(s,a,N):oa(s,eg,N,!0)}function o5(s,a){return s&&s.length?Ng(s,kt(a)):r}var a5=Bt(wm);function wm(s,a){return s&&s.length&&a&&a.length?Sf(s,a):s}function l5(s,a,g){return s&&s.length&&a&&a.length?Sf(s,a,At(g,2)):s}function u5(s,a,g){return s&&s.length&&a&&a.length?Sf(s,a,r,g):s}var f5=tn(function(s,a){var g=s==null?0:s.length,E=yf(s,a);return Lg(s,he(a,function(N){return en(N,g)?+N:N}).sort(Hg)),E});function c5(s,a){var g=[];if(!(s&&s.length))return g;var E=-1,N=[],D=s.length;for(a=At(a,3);++E<D;){var H=s[E];a(H,E,s)&&(g.push(H),N.push(E))}return Lg(s,N),g}function Vf(s){return s==null?s:i3.call(s)}function h5(s,a,g){var E=s==null?0:s.length;return E?(g&&typeof g!="number"&&qe(s,a,g)?(a=0,g=E):(a=a==null?0:kt(a),g=g===r?E:kt(g)),pr(s,a,g)):[]}function d5(s,a){return Sa(s,a)}function p5(s,a,g){return Rf(s,a,At(g,2))}function v5(s,a){var g=s==null?0:s.length;if(g){var E=Sa(s,a);if(E<g&&Pr(s[E],a))return E}return-1}function g5(s,a){return Sa(s,a,!0)}function m5(s,a,g){return Rf(s,a,At(g,2),!0)}function y5(s,a){var g=s==null?0:s.length;if(g){var E=Sa(s,a,!0)-1;if(Pr(s[E],a))return E}return-1}function _5(s){return s&&s.length?Bg(s):[]}function b5(s,a){return s&&s.length?Bg(s,At(a,2)):[]}function x5(s){var a=s==null?0:s.length;return a?pr(s,1,a):[]}function w5(s,a,g){return s&&s.length?(a=g||a===r?1:kt(a),pr(s,0,a<0?0:a)):[]}function T5(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),a=E-a,pr(s,a<0?0:a,E)):[]}function E5(s,a){return s&&s.length?Oa(s,At(a,3),!1,!0):[]}function A5(s,a){return s&&s.length?Oa(s,At(a,3)):[]}var S5=Bt(function(s){return bn(Me(s,1,_e,!0))}),O5=Bt(function(s){var a=vr(s);return _e(a)&&(a=r),bn(Me(s,1,_e,!0),At(a,2))}),C5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,bn(Me(s,1,_e,!0),r,a)});function R5(s){return s&&s.length?bn(s):[]}function I5(s,a){return s&&s.length?bn(s,At(a,2)):[]}function P5(s,a){return a=typeof a=="function"?a:r,s&&s.length?bn(s,r,a):[]}function Wf(s){if(!(s&&s.length))return[];var a=0;return s=vn(s,function(g){if(_e(g))return a=Se(g.length,a),!0}),ff(a,function(g){return he(s,af(g))})}function Tm(s,a){if(!(s&&s.length))return[];var g=Wf(s);return a==null?g:he(g,function(E){return tr(a,r,E)})}var N5=Bt(function(s,a){return _e(s)?Ms(s,a):[]}),M5=Bt(function(s){return Pf(vn(s,_e))}),k5=Bt(function(s){var a=vr(s);return _e(a)&&(a=r),Pf(vn(s,_e),At(a,2))}),L5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,Pf(vn(s,_e),r,a)}),F5=Bt(Wf);function B5(s,a){return Gg(s||[],a||[],Ns)}function D5(s,a){return Gg(s||[],a||[],Fs)}var U5=Bt(function(s){var a=s.length,g=a>1?s[a-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Tm(s,g)});function Em(s){var a=B(s);return a.__chain__=!0,a}function $5(s,a){return a(s),s}function Fa(s,a){return a(s)}var G5=tn(function(s){var a=s.length,g=a?s[0]:0,E=this.__wrapped__,N=function(D){return yf(D,s)};return a>1||this.__actions__.length||!(E instanceof Gt)||!en(g)?this.thru(N):(E=E.slice(g,+g+(a?1:0)),E.__actions__.push({func:Fa,args:[N],thisArg:r}),new hr(E,this.__chain__).thru(function(D){return a&&!D.length&&D.push(r),D}))});function j5(){return Em(this)}function q5(){return new hr(this.value(),this.__chain__)}function z5(){this.__values__===r&&(this.__values__=Dm(this.value()));var s=this.__index__>=this.__values__.length,a=s?r:this.__values__[this.__index__++];return{done:s,value:a}}function H5(){return this}function V5(s){for(var a,g=this;g instanceof xa;){var E=mm(g);E.__index__=0,E.__values__=r,a?N.__wrapped__=E:a=E;var N=E;g=g.__wrapped__}return N.__wrapped__=s,a}function W5(){var s=this.__wrapped__;if(s instanceof Gt){var a=s;return this.__actions__.length&&(a=new Gt(this)),a=a.reverse(),a.__actions__.push({func:Fa,args:[Vf],thisArg:r}),new hr(a,this.__chain__)}return this.thru(Vf)}function X5(){return $g(this.__wrapped__,this.__actions__)}var K5=Ca(function(s,a,g){te.call(s,g)?++s[g]:Qr(s,g,1)});function Y5(s,a,g){var E=Mt(s)?Jv:$3;return g&&qe(s,a,g)&&(a=r),E(s,At(a,3))}function Z5(s,a){var g=Mt(s)?vn:Tg;return g(s,At(a,3))}var Q5=Zg(ym),J5=Zg(_m);function tL(s,a){return Me(Ba(s,a),1)}function eL(s,a){return Me(Ba(s,a),z)}function rL(s,a,g){return g=g===r?1:kt(g),Me(Ba(s,a),g)}function Am(s,a){var g=Mt(s)?fr:_n;return g(s,At(a,3))}function Sm(s,a){var g=Mt(s)?xM:wg;return g(s,At(a,3))}var nL=Ca(function(s,a,g){te.call(s,g)?s[g].push(a):Qr(s,g,[a])});function iL(s,a,g,E){s=We(s)?s:Wi(s),g=g&&!E?kt(g):0;var N=s.length;return g<0&&(g=Se(N+g,0)),ja(s)?g<=N&&s.indexOf(a,g)>-1:!!N&&Li(s,a,g)>-1}var sL=Bt(function(s,a,g){var E=-1,N=typeof a=="function",D=We(s)?it(s.length):[];return _n(s,function(H){D[++E]=N?tr(a,H,g):ks(H,a,g)}),D}),oL=Ca(function(s,a,g){Qr(s,g,a)});function Ba(s,a){var g=Mt(s)?he:Rg;return g(s,At(a,3))}function aL(s,a,g,E){return s==null?[]:(Mt(a)||(a=a==null?[]:[a]),g=E?r:g,Mt(g)||(g=g==null?[]:[g]),Mg(s,a,g))}var lL=Ca(function(s,a,g){s[g?0:1].push(a)},function(){return[[],[]]});function uL(s,a,g){var E=Mt(s)?sf:ng,N=arguments.length<3;return E(s,At(a,4),g,N,_n)}function fL(s,a,g){var E=Mt(s)?wM:ng,N=arguments.length<3;return E(s,At(a,4),g,N,wg)}function cL(s,a){var g=Mt(s)?vn:Tg;return g(s,$a(At(a,3)))}function hL(s){var a=Mt(s)?yg:ik;return a(s)}function dL(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=kt(a);var E=Mt(s)?L3:sk;return E(s,a)}function pL(s){var a=Mt(s)?F3:ak;return a(s)}function vL(s){if(s==null)return 0;if(We(s))return ja(s)?Bi(s):s.length;var a=Ue(s);return a==xt||a==vt?s.size:Ef(s).length}function gL(s,a,g){var E=Mt(s)?of:lk;return g&&qe(s,a,g)&&(a=r),E(s,At(a,3))}var mL=Bt(function(s,a){if(s==null)return[];var g=a.length;return g>1&&qe(s,a[0],a[1])?a=[]:g>2&&qe(a[0],a[1],a[2])&&(a=[a[0]]),Mg(s,Me(a,1),[])}),Da=ZM||function(){return Ne.Date.now()};function yL(s,a){if(typeof a!="function")throw new cr(l);return s=kt(s),function(){if(--s<1)return a.apply(this,arguments)}}function Om(s,a,g){return a=g?r:a,a=s&&a==null?s.length:a,Jr(s,S,r,r,r,r,a)}function Cm(s,a){var g;if(typeof a!="function")throw new cr(l);return s=kt(s),function(){return--s>0&&(g=a.apply(this,arguments)),s<=1&&(a=r),g}}var Xf=Bt(function(s,a,g){var E=b;if(g.length){var N=mn(g,Hi(Xf));E|=A}return Jr(s,E,a,g,N)}),Rm=Bt(function(s,a,g){var E=b|_;if(g.length){var N=mn(g,Hi(Rm));E|=A}return Jr(a,E,s,g,N)});function Im(s,a,g){a=g?r:a;var E=Jr(s,T,r,r,r,r,r,a);return E.placeholder=Im.placeholder,E}function Pm(s,a,g){a=g?r:a;var E=Jr(s,x,r,r,r,r,r,a);return E.placeholder=Pm.placeholder,E}function Nm(s,a,g){var E,N,D,H,Y,et,ut=0,ft=!1,ht=!1,gt=!0;if(typeof s!="function")throw new cr(l);a=gr(a)||0,ge(g)&&(ft=!!g.leading,ht="maxWait"in g,D=ht?Se(gr(g.maxWait)||0,a):D,gt="trailing"in g?!!g.trailing:gt);function wt(be){var Nr=E,sn=N;return E=N=r,ut=be,H=s.apply(sn,Nr),H}function St(be){return ut=be,Y=Us(Ut,a),ft?wt(be):H}function Ft(be){var Nr=be-et,sn=be-ut,Zm=a-Nr;return ht?De(Zm,D-sn):Zm}function Ot(be){var Nr=be-et,sn=be-ut;return et===r||Nr>=a||Nr<0||ht&&sn>=D}function Ut(){var be=Da();if(Ot(be))return qt(be);Y=Us(Ut,Ft(be))}function qt(be){return Y=r,gt&&E?wt(be):(E=N=r,H)}function ir(){Y!==r&&jg(Y),ut=0,E=et=N=Y=r}function ze(){return Y===r?H:qt(Da())}function sr(){var be=Da(),Nr=Ot(be);if(E=arguments,N=this,et=be,Nr){if(Y===r)return St(et);if(ht)return jg(Y),Y=Us(Ut,a),wt(et)}return Y===r&&(Y=Us(Ut,a)),H}return sr.cancel=ir,sr.flush=ze,sr}var _L=Bt(function(s,a){return xg(s,1,a)}),bL=Bt(function(s,a,g){return xg(s,gr(a)||0,g)});function xL(s){return Jr(s,L)}function Ua(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cr(l);var g=function(){var E=arguments,N=a?a.apply(this,E):E[0],D=g.cache;if(D.has(N))return D.get(N);var H=s.apply(this,E);return g.cache=D.set(N,H)||D,H};return g.cache=new(Ua.Cache||Zr),g}Ua.Cache=Zr;function $a(s){if(typeof s!="function")throw new cr(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function wL(s){return Cm(2,s)}var TL=uk(function(s,a){a=a.length==1&&Mt(a[0])?he(a[0],er(At())):he(Me(a,1),er(At()));var g=a.length;return Bt(function(E){for(var N=-1,D=De(E.length,g);++N<D;)E[N]=a[N].call(this,E[N]);return tr(s,this,E)})}),Kf=Bt(function(s,a){var g=mn(a,Hi(Kf));return Jr(s,A,r,a,g)}),Mm=Bt(function(s,a){var g=mn(a,Hi(Mm));return Jr(s,I,r,a,g)}),EL=tn(function(s,a){return Jr(s,O,r,r,r,a)});function AL(s,a){if(typeof s!="function")throw new cr(l);return a=a===r?a:kt(a),Bt(s,a)}function SL(s,a){if(typeof s!="function")throw new cr(l);return a=a==null?0:Se(kt(a),0),Bt(function(g){var E=g[a],N=wn(g,0,a);return E&&gn(N,E),tr(s,this,N)})}function OL(s,a,g){var E=!0,N=!0;if(typeof s!="function")throw new cr(l);return ge(g)&&(E="leading"in g?!!g.leading:E,N="trailing"in g?!!g.trailing:N),Nm(s,a,{leading:E,maxWait:a,trailing:N})}function CL(s){return Om(s,1)}function RL(s,a){return Kf(Mf(a),s)}function IL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function PL(s){return dr(s,v)}function NL(s,a){return a=typeof a=="function"?a:r,dr(s,v,a)}function ML(s){return dr(s,p|v)}function kL(s,a){return a=typeof a=="function"?a:r,dr(s,p|v,a)}function LL(s,a){return a==null||bg(s,a,Ie(a))}function Pr(s,a){return s===a||s!==s&&a!==a}var FL=Na(xf),BL=Na(function(s,a){return s>=a}),Zn=Sg(function(){return arguments}())?Sg:function(s){return me(s)&&te.call(s,"callee")&&!hg.call(s,"callee")},Mt=it.isArray,DL=Wv?er(Wv):V3;function We(s){return s!=null&&Ga(s.length)&&!rn(s)}function _e(s){return me(s)&&We(s)}function UL(s){return s===!0||s===!1||me(s)&&je(s)==Z}var Tn=JM||oc,$L=Xv?er(Xv):W3;function GL(s){return me(s)&&s.nodeType===1&&!$s(s)}function jL(s){if(s==null)return!0;if(We(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||Tn(s)||Vi(s)||Zn(s)))return!s.length;var a=Ue(s);if(a==xt||a==vt)return!s.size;if(Ds(s))return!Ef(s).length;for(var g in s)if(te.call(s,g))return!1;return!0}function qL(s,a){return Ls(s,a)}function zL(s,a,g){g=typeof g=="function"?g:r;var E=g?g(s,a):r;return E===r?Ls(s,a,r,g):!!E}function Yf(s){if(!me(s))return!1;var a=je(s);return a==at||a==nt||typeof s.message=="string"&&typeof s.name=="string"&&!$s(s)}function HL(s){return typeof s=="number"&&pg(s)}function rn(s){if(!ge(s))return!1;var a=je(s);return a==dt||a==mt||a==V||a==lt}function km(s){return typeof s=="number"&&s==kt(s)}function Ga(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=rt}function ge(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function me(s){return s!=null&&typeof s=="object"}var Lm=Kv?er(Kv):K3;function VL(s,a){return s===a||Tf(s,a,$f(a))}function WL(s,a,g){return g=typeof g=="function"?g:r,Tf(s,a,$f(a),g)}function XL(s){return Fm(s)&&s!=+s}function KL(s){if(Nk(s))throw new It(o);return Og(s)}function YL(s){return s===null}function ZL(s){return s==null}function Fm(s){return typeof s=="number"||me(s)&&je(s)==Ct}function $s(s){if(!me(s)||je(s)!=Xt)return!1;var a=pa(s);if(a===null)return!0;var g=te.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&fa.call(g)==WM}var Zf=Yv?er(Yv):Y3;function QL(s){return km(s)&&s>=-rt&&s<=rt}var Bm=Zv?er(Zv):Z3;function ja(s){return typeof s=="string"||!Mt(s)&&me(s)&&je(s)==ct}function nr(s){return typeof s=="symbol"||me(s)&&je(s)==Pt}var Vi=Qv?er(Qv):Q3;function JL(s){return s===r}function tF(s){return me(s)&&Ue(s)==Nt}function eF(s){return me(s)&&je(s)==He}var rF=Na(Af),nF=Na(function(s,a){return s<=a});function Dm(s){if(!s)return[];if(We(s))return ja(s)?Rr(s):Ve(s);if(Os&&s[Os])return LM(s[Os]());var a=Ue(s),g=a==xt?hf:a==vt?aa:Wi;return g(s)}function nn(s){if(!s)return s===0?s:0;if(s=gr(s),s===z||s===-z){var a=s<0?-1:1;return a*W}return s===s?s:0}function kt(s){var a=nn(s),g=a%1;return a===a?g?a-g:a:0}function Um(s){return s?Wn(kt(s),0,k):0}function gr(s){if(typeof s=="number")return s;if(nr(s))return U;if(ge(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=ge(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=ig(s);var g=DN.test(s);return g||$N.test(s)?yM(s.slice(2),g?2:8):BN.test(s)?U:+s}function $m(s){return jr(s,Xe(s))}function iF(s){return s?Wn(kt(s),-rt,rt):s===0?s:0}function Qt(s){return s==null?"":rr(s)}var sF=qi(function(s,a){if(Ds(a)||We(a)){jr(a,Ie(a),s);return}for(var g in a)te.call(a,g)&&Ns(s,g,a[g])}),Gm=qi(function(s,a){jr(a,Xe(a),s)}),qa=qi(function(s,a,g,E){jr(a,Xe(a),s,E)}),oF=qi(function(s,a,g,E){jr(a,Ie(a),s,E)}),aF=tn(yf);function lF(s,a){var g=ji(s);return a==null?g:_g(g,a)}var uF=Bt(function(s,a){s=ne(s);var g=-1,E=a.length,N=E>2?a[2]:r;for(N&&qe(a[0],a[1],N)&&(E=1);++g<E;)for(var D=a[g],H=Xe(D),Y=-1,et=H.length;++Y<et;){var ut=H[Y],ft=s[ut];(ft===r||Pr(ft,Ui[ut])&&!te.call(s,ut))&&(s[ut]=D[ut])}return s}),fF=Bt(function(s){return s.push(r,im),tr(jm,r,s)});function cF(s,a){return tg(s,At(a,3),Gr)}function hF(s,a){return tg(s,At(a,3),bf)}function dF(s,a){return s==null?s:_f(s,At(a,3),Xe)}function pF(s,a){return s==null?s:Eg(s,At(a,3),Xe)}function vF(s,a){return s&&Gr(s,At(a,3))}function gF(s,a){return s&&bf(s,At(a,3))}function mF(s){return s==null?[]:Ea(s,Ie(s))}function yF(s){return s==null?[]:Ea(s,Xe(s))}function Qf(s,a,g){var E=s==null?r:Xn(s,a);return E===r?g:E}function _F(s,a){return s!=null&&am(s,a,j3)}function Jf(s,a){return s!=null&&am(s,a,q3)}var bF=Jg(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=ca.call(a)),s[a]=g},ec(Ke)),xF=Jg(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=ca.call(a)),te.call(s,a)?s[a].push(g):s[a]=[g]},At),wF=Bt(ks);function Ie(s){return We(s)?mg(s):Ef(s)}function Xe(s){return We(s)?mg(s,!0):J3(s)}function TF(s,a){var g={};return a=At(a,3),Gr(s,function(E,N,D){Qr(g,a(E,N,D),E)}),g}function EF(s,a){var g={};return a=At(a,3),Gr(s,function(E,N,D){Qr(g,N,a(E,N,D))}),g}var AF=qi(function(s,a,g){Aa(s,a,g)}),jm=qi(function(s,a,g,E){Aa(s,a,g,E)}),SF=tn(function(s,a){var g={};if(s==null)return g;var E=!1;a=he(a,function(D){return D=xn(D,s),E||(E=D.length>1),D}),jr(s,Df(s),g),E&&(g=dr(g,p|c|v,bk));for(var N=a.length;N--;)If(g,a[N]);return g});function OF(s,a){return qm(s,$a(At(a)))}var CF=tn(function(s,a){return s==null?{}:ek(s,a)});function qm(s,a){if(s==null)return{};var g=he(Df(s),function(E){return[E]});return a=At(a),kg(s,g,function(E,N){return a(E,N[0])})}function RF(s,a,g){a=xn(a,s);var E=-1,N=a.length;for(N||(N=1,s=r);++E<N;){var D=s==null?r:s[qr(a[E])];D===r&&(E=N,D=g),s=rn(D)?D.call(s):D}return s}function IF(s,a,g){return s==null?s:Fs(s,a,g)}function PF(s,a,g,E){return E=typeof E=="function"?E:r,s==null?s:Fs(s,a,g,E)}var zm=rm(Ie),Hm=rm(Xe);function NF(s,a,g){var E=Mt(s),N=E||Tn(s)||Vi(s);if(a=At(a,4),g==null){var D=s&&s.constructor;N?g=E?new D:[]:ge(s)?g=rn(D)?ji(pa(s)):{}:g={}}return(N?fr:Gr)(s,function(H,Y,et){return a(g,H,Y,et)}),g}function MF(s,a){return s==null?!0:If(s,a)}function kF(s,a,g){return s==null?s:Ug(s,a,Mf(g))}function LF(s,a,g,E){return E=typeof E=="function"?E:r,s==null?s:Ug(s,a,Mf(g),E)}function Wi(s){return s==null?[]:cf(s,Ie(s))}function FF(s){return s==null?[]:cf(s,Xe(s))}function BF(s,a,g){return g===r&&(g=a,a=r),g!==r&&(g=gr(g),g=g===g?g:0),a!==r&&(a=gr(a),a=a===a?a:0),Wn(gr(s),a,g)}function DF(s,a,g){return a=nn(a),g===r?(g=a,a=0):g=nn(g),s=gr(s),z3(s,a,g)}function UF(s,a,g){if(g&&typeof g!="boolean"&&qe(s,a,g)&&(a=g=r),g===r&&(typeof a=="boolean"?(g=a,a=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&a===r?(s=0,a=1):(s=nn(s),a===r?(a=s,s=0):a=nn(a)),s>a){var E=s;s=a,a=E}if(g||s%1||a%1){var N=vg();return De(s+N*(a-s+mM("1e-"+((N+"").length-1))),a)}return Of(s,a)}var $F=zi(function(s,a,g){return a=a.toLowerCase(),s+(g?Vm(a):a)});function Vm(s){return tc(Qt(s).toLowerCase())}function Wm(s){return s=Qt(s),s&&s.replace(jN,IM).replace(aM,"")}function GF(s,a,g){s=Qt(s),a=rr(a);var E=s.length;g=g===r?E:Wn(kt(g),0,E);var N=g;return g-=a.length,g>=0&&s.slice(g,N)==a}function jF(s){return s=Qt(s),s&&wN.test(s)?s.replace(Ev,PM):s}function qF(s){return s=Qt(s),s&&CN.test(s)?s.replace(Xu,"\\$&"):s}var zF=zi(function(s,a,g){return s+(g?"-":"")+a.toLowerCase()}),HF=zi(function(s,a,g){return s+(g?" ":"")+a.toLowerCase()}),VF=Yg("toLowerCase");function WF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;if(!a||E>=a)return s;var N=(a-E)/2;return Pa(ya(N),g)+s+Pa(ma(N),g)}function XF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;return a&&E<a?s+Pa(a-E,g):s}function KF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;return a&&E<a?Pa(a-E,g)+s:s}function YF(s,a,g){return g||a==null?a=0:a&&(a=+a),n3(Qt(s).replace(Ku,""),a||0)}function ZF(s,a,g){return(g?qe(s,a,g):a===r)?a=1:a=kt(a),Cf(Qt(s),a)}function QF(){var s=arguments,a=Qt(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var JF=zi(function(s,a,g){return s+(g?"_":"")+a.toLowerCase()});function t4(s,a,g){return g&&typeof g!="number"&&qe(s,a,g)&&(a=g=r),g=g===r?k:g>>>0,g?(s=Qt(s),s&&(typeof a=="string"||a!=null&&!Zf(a))&&(a=rr(a),!a&&Fi(s))?wn(Rr(s),0,g):s.split(a,g)):[]}var e4=zi(function(s,a,g){return s+(g?" ":"")+tc(a)});function r4(s,a,g){return s=Qt(s),g=g==null?0:Wn(kt(g),0,s.length),a=rr(a),s.slice(g,g+a.length)==a}function n4(s,a,g){var E=B.templateSettings;g&&qe(s,a,g)&&(a=r),s=Qt(s),a=qa({},a,E,nm);var N=qa({},a.imports,E.imports,nm),D=Ie(N),H=cf(N,D),Y,et,ut=0,ft=a.interpolate||ra,ht="__p += '",gt=df((a.escape||ra).source+"|"+ft.source+"|"+(ft===Av?FN:ra).source+"|"+(a.evaluate||ra).source+"|$","g"),wt="//# sourceURL="+(te.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hM+"]")+`
1933
- `;s.replace(gt,function(Ot,Ut,qt,ir,ze,sr){return qt||(qt=ir),ht+=s.slice(ut,sr).replace(qN,NM),Ut&&(Y=!0,ht+=`' +
1932
+ `)}function Rk(s){return Mt(s)||Zn(s)||!!(dg&&s&&s[dg])}function en(s,a){var g=typeof s;return a=a??rt,!!a&&(g=="number"||g!="symbol"&&GN.test(s))&&s>-1&&s%1==0&&s<a}function qe(s,a,g){if(!ge(g))return!1;var E=typeof a;return(E=="number"?We(g)&&en(a,g.length):E=="string"&&a in g)?Pr(g[a],s):!1}function jf(s,a){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||nr(s)?!0:SN.test(s)||!AN.test(s)||a!=null&&s in ne(a)}function Ik(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function qf(s){var a=Ma(s),g=B[a];if(typeof g!="function"||!(a in Gt.prototype))return!1;if(s===g)return!0;var E=Uf(g);return!!E&&s===E[0]}function Pk(s){return!!ug&&ug in s}var Nk=ua?rn:oc;function Ds(s){var a=s&&s.constructor,g=typeof a=="function"&&a.prototype||Ui;return s===g}function um(s){return s===s&&!ge(s)}function fm(s,a){return function(g){return g==null?!1:g[s]===a&&(a!==r||s in ne(g))}}function Mk(s){var a=Ua(s,function(E){return g.size===h&&g.clear(),E}),g=a.cache;return a}function kk(s,a){var g=s[1],E=a[1],N=g|E,U=N<(b|_|S),H=E==S&&g==T||E==S&&g==O&&s[7].length<=a[8]||E==(S|O)&&a[7].length<=a[8]&&g==T;if(!(U||H))return s;E&b&&(s[2]=a[2],N|=g&b?0:w);var Y=a[3];if(Y){var et=s[3];s[3]=et?Vg(et,Y,a[4]):Y,s[4]=et?mn(s[3],d):a[4]}return Y=a[5],Y&&(et=s[5],s[5]=et?Wg(et,Y,a[6]):Y,s[6]=et?mn(s[5],d):a[6]),Y=a[7],Y&&(s[7]=Y),E&S&&(s[8]=s[8]==null?a[8]:De(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=N,s}function Lk(s){var a=[];if(s!=null)for(var g in ne(s))a.push(g);return a}function Fk(s){return ca.call(s)}function cm(s,a,g){return a=Se(a===r?s.length-1:a,0),function(){for(var E=arguments,N=-1,U=Se(E.length-a,0),H=it(U);++N<U;)H[N]=E[a+N];N=-1;for(var Y=it(a+1);++N<a;)Y[N]=E[N];return Y[a]=g(H),tr(s,this,Y)}}function hm(s,a){return a.length<2?s:Xn(s,pr(a,0,-1))}function Bk(s,a){for(var g=s.length,E=De(a.length,g),N=Ve(s);E--;){var U=a[E];s[E]=en(U,g)?N[U]:r}return s}function zf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var dm=vm(Fg),Us=QM||function(s,a){return Ne.setTimeout(s,a)},Hf=vm(ok);function pm(s,a,g){var E=a+"";return Hf(s,Ck(E,Dk(Ak(E),g)))}function vm(s){var a=0,g=0;return function(){var E=r3(),N=M-(E-g);if(g=E,N>0){if(++a>=P)return arguments[0]}else a=0;return s.apply(r,arguments)}}function La(s,a){var g=-1,E=s.length,N=E-1;for(a=a===r?E:a;++g<a;){var U=Of(g,N),H=s[U];s[U]=s[g],s[g]=H}return s.length=a,s}var gm=Mk(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(ON,function(g,E,N,U){a.push(N?U.replace(LN,"$1"):E||g)}),a});function qr(s){if(typeof s=="string"||nr(s))return s;var a=s+"";return a=="0"&&1/s==-z?"-0":a}function Yn(s){if(s!=null){try{return fa.call(s)}catch{}try{return s+""}catch{}}return""}function Dk(s,a){return fr(K,function(g){var E="_."+g[0];a&g[1]&&!sa(s,E)&&s.push(E)}),s.sort()}function mm(s){if(s instanceof Gt)return s.clone();var a=new hr(s.__wrapped__,s.__chain__);return a.__actions__=Ve(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function Uk(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=Se(kt(a),0);var E=s==null?0:s.length;if(!E||a<1)return[];for(var N=0,U=0,H=it(ma(E/a));N<E;)H[U++]=pr(s,N,N+=a);return H}function $k(s){for(var a=-1,g=s==null?0:s.length,E=0,N=[];++a<g;){var U=s[a];U&&(N[E++]=U)}return N}function Gk(){var s=arguments.length;if(!s)return[];for(var a=it(s-1),g=arguments[0],E=s;E--;)a[E-1]=arguments[E];return gn(Mt(g)?Ve(g):[g],Me(a,1))}var jk=Bt(function(s,a){return be(s)?Ms(s,Me(a,1,be,!0)):[]}),qk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ms(s,Me(a,1,be,!0),St(g,2)):[]}),zk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ms(s,Me(a,1,be,!0),r,g):[]});function Hk(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),pr(s,a<0?0:a,E)):[]}function Vk(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),a=E-a,pr(s,0,a<0?0:a)):[]}function Wk(s,a){return s&&s.length?Oa(s,St(a,3),!0,!0):[]}function Xk(s,a){return s&&s.length?Oa(s,St(a,3),!0):[]}function Kk(s,a,g,E){var N=s==null?0:s.length;return N?(g&&typeof g!="number"&&qe(s,a,g)&&(g=0,E=N),G3(s,a,g,E)):[]}function ym(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=g==null?0:kt(g);return N<0&&(N=Se(E+N,0)),oa(s,St(a,3),N)}function _m(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=E-1;return g!==r&&(N=kt(g),N=g<0?Se(E+N,0):De(N,E-1)),oa(s,St(a,3),N,!0)}function bm(s){var a=s==null?0:s.length;return a?Me(s,1):[]}function Yk(s){var a=s==null?0:s.length;return a?Me(s,z):[]}function Zk(s,a){var g=s==null?0:s.length;return g?(a=a===r?1:kt(a),Me(s,a)):[]}function Qk(s){for(var a=-1,g=s==null?0:s.length,E={};++a<g;){var N=s[a];E[N[0]]=N[1]}return E}function xm(s){return s&&s.length?s[0]:r}function Jk(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=g==null?0:kt(g);return N<0&&(N=Se(E+N,0)),Li(s,a,N)}function t5(s){var a=s==null?0:s.length;return a?pr(s,0,-1):[]}var e5=Bt(function(s){var a=he(s,Nf);return a.length&&a[0]===s[0]?wf(a):[]}),r5=Bt(function(s){var a=vr(s),g=he(s,Nf);return a===vr(g)?a=r:g.pop(),g.length&&g[0]===s[0]?wf(g,St(a,2)):[]}),n5=Bt(function(s){var a=vr(s),g=he(s,Nf);return a=typeof a=="function"?a:r,a&&g.pop(),g.length&&g[0]===s[0]?wf(g,r,a):[]});function i5(s,a){return s==null?"":t3.call(s,a)}function vr(s){var a=s==null?0:s.length;return a?s[a-1]:r}function s5(s,a,g){var E=s==null?0:s.length;if(!E)return-1;var N=E;return g!==r&&(N=kt(g),N=N<0?Se(E+N,0):De(N,E-1)),a===a?DM(s,a,N):oa(s,eg,N,!0)}function o5(s,a){return s&&s.length?Ng(s,kt(a)):r}var a5=Bt(wm);function wm(s,a){return s&&s.length&&a&&a.length?Sf(s,a):s}function l5(s,a,g){return s&&s.length&&a&&a.length?Sf(s,a,St(g,2)):s}function u5(s,a,g){return s&&s.length&&a&&a.length?Sf(s,a,r,g):s}var f5=tn(function(s,a){var g=s==null?0:s.length,E=yf(s,a);return Lg(s,he(a,function(N){return en(N,g)?+N:N}).sort(Hg)),E});function c5(s,a){var g=[];if(!(s&&s.length))return g;var E=-1,N=[],U=s.length;for(a=St(a,3);++E<U;){var H=s[E];a(H,E,s)&&(g.push(H),N.push(E))}return Lg(s,N),g}function Vf(s){return s==null?s:i3.call(s)}function h5(s,a,g){var E=s==null?0:s.length;return E?(g&&typeof g!="number"&&qe(s,a,g)?(a=0,g=E):(a=a==null?0:kt(a),g=g===r?E:kt(g)),pr(s,a,g)):[]}function d5(s,a){return Sa(s,a)}function p5(s,a,g){return Rf(s,a,St(g,2))}function v5(s,a){var g=s==null?0:s.length;if(g){var E=Sa(s,a);if(E<g&&Pr(s[E],a))return E}return-1}function g5(s,a){return Sa(s,a,!0)}function m5(s,a,g){return Rf(s,a,St(g,2),!0)}function y5(s,a){var g=s==null?0:s.length;if(g){var E=Sa(s,a,!0)-1;if(Pr(s[E],a))return E}return-1}function _5(s){return s&&s.length?Bg(s):[]}function b5(s,a){return s&&s.length?Bg(s,St(a,2)):[]}function x5(s){var a=s==null?0:s.length;return a?pr(s,1,a):[]}function w5(s,a,g){return s&&s.length?(a=g||a===r?1:kt(a),pr(s,0,a<0?0:a)):[]}function T5(s,a,g){var E=s==null?0:s.length;return E?(a=g||a===r?1:kt(a),a=E-a,pr(s,a<0?0:a,E)):[]}function E5(s,a){return s&&s.length?Oa(s,St(a,3),!1,!0):[]}function A5(s,a){return s&&s.length?Oa(s,St(a,3)):[]}var S5=Bt(function(s){return bn(Me(s,1,be,!0))}),O5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),bn(Me(s,1,be,!0),St(a,2))}),C5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,bn(Me(s,1,be,!0),r,a)});function R5(s){return s&&s.length?bn(s):[]}function I5(s,a){return s&&s.length?bn(s,St(a,2)):[]}function P5(s,a){return a=typeof a=="function"?a:r,s&&s.length?bn(s,r,a):[]}function Wf(s){if(!(s&&s.length))return[];var a=0;return s=vn(s,function(g){if(be(g))return a=Se(g.length,a),!0}),ff(a,function(g){return he(s,af(g))})}function Tm(s,a){if(!(s&&s.length))return[];var g=Wf(s);return a==null?g:he(g,function(E){return tr(a,r,E)})}var N5=Bt(function(s,a){return be(s)?Ms(s,a):[]}),M5=Bt(function(s){return Pf(vn(s,be))}),k5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),Pf(vn(s,be),St(a,2))}),L5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,Pf(vn(s,be),r,a)}),F5=Bt(Wf);function B5(s,a){return Gg(s||[],a||[],Ns)}function D5(s,a){return Gg(s||[],a||[],Fs)}var U5=Bt(function(s){var a=s.length,g=a>1?s[a-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Tm(s,g)});function Em(s){var a=B(s);return a.__chain__=!0,a}function $5(s,a){return a(s),s}function Fa(s,a){return a(s)}var G5=tn(function(s){var a=s.length,g=a?s[0]:0,E=this.__wrapped__,N=function(U){return yf(U,s)};return a>1||this.__actions__.length||!(E instanceof Gt)||!en(g)?this.thru(N):(E=E.slice(g,+g+(a?1:0)),E.__actions__.push({func:Fa,args:[N],thisArg:r}),new hr(E,this.__chain__).thru(function(U){return a&&!U.length&&U.push(r),U}))});function j5(){return Em(this)}function q5(){return new hr(this.value(),this.__chain__)}function z5(){this.__values__===r&&(this.__values__=Dm(this.value()));var s=this.__index__>=this.__values__.length,a=s?r:this.__values__[this.__index__++];return{done:s,value:a}}function H5(){return this}function V5(s){for(var a,g=this;g instanceof xa;){var E=mm(g);E.__index__=0,E.__values__=r,a?N.__wrapped__=E:a=E;var N=E;g=g.__wrapped__}return N.__wrapped__=s,a}function W5(){var s=this.__wrapped__;if(s instanceof Gt){var a=s;return this.__actions__.length&&(a=new Gt(this)),a=a.reverse(),a.__actions__.push({func:Fa,args:[Vf],thisArg:r}),new hr(a,this.__chain__)}return this.thru(Vf)}function X5(){return $g(this.__wrapped__,this.__actions__)}var K5=Ca(function(s,a,g){te.call(s,g)?++s[g]:Qr(s,g,1)});function Y5(s,a,g){var E=Mt(s)?Jv:$3;return g&&qe(s,a,g)&&(a=r),E(s,St(a,3))}function Z5(s,a){var g=Mt(s)?vn:Tg;return g(s,St(a,3))}var Q5=Zg(ym),J5=Zg(_m);function tL(s,a){return Me(Ba(s,a),1)}function eL(s,a){return Me(Ba(s,a),z)}function rL(s,a,g){return g=g===r?1:kt(g),Me(Ba(s,a),g)}function Am(s,a){var g=Mt(s)?fr:_n;return g(s,St(a,3))}function Sm(s,a){var g=Mt(s)?xM:wg;return g(s,St(a,3))}var nL=Ca(function(s,a,g){te.call(s,g)?s[g].push(a):Qr(s,g,[a])});function iL(s,a,g,E){s=We(s)?s:Wi(s),g=g&&!E?kt(g):0;var N=s.length;return g<0&&(g=Se(N+g,0)),ja(s)?g<=N&&s.indexOf(a,g)>-1:!!N&&Li(s,a,g)>-1}var sL=Bt(function(s,a,g){var E=-1,N=typeof a=="function",U=We(s)?it(s.length):[];return _n(s,function(H){U[++E]=N?tr(a,H,g):ks(H,a,g)}),U}),oL=Ca(function(s,a,g){Qr(s,g,a)});function Ba(s,a){var g=Mt(s)?he:Rg;return g(s,St(a,3))}function aL(s,a,g,E){return s==null?[]:(Mt(a)||(a=a==null?[]:[a]),g=E?r:g,Mt(g)||(g=g==null?[]:[g]),Mg(s,a,g))}var lL=Ca(function(s,a,g){s[g?0:1].push(a)},function(){return[[],[]]});function uL(s,a,g){var E=Mt(s)?sf:ng,N=arguments.length<3;return E(s,St(a,4),g,N,_n)}function fL(s,a,g){var E=Mt(s)?wM:ng,N=arguments.length<3;return E(s,St(a,4),g,N,wg)}function cL(s,a){var g=Mt(s)?vn:Tg;return g(s,$a(St(a,3)))}function hL(s){var a=Mt(s)?yg:ik;return a(s)}function dL(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=kt(a);var E=Mt(s)?L3:sk;return E(s,a)}function pL(s){var a=Mt(s)?F3:ak;return a(s)}function vL(s){if(s==null)return 0;if(We(s))return ja(s)?Bi(s):s.length;var a=Ue(s);return a==xt||a==vt?s.size:Ef(s).length}function gL(s,a,g){var E=Mt(s)?of:lk;return g&&qe(s,a,g)&&(a=r),E(s,St(a,3))}var mL=Bt(function(s,a){if(s==null)return[];var g=a.length;return g>1&&qe(s,a[0],a[1])?a=[]:g>2&&qe(a[0],a[1],a[2])&&(a=[a[0]]),Mg(s,Me(a,1),[])}),Da=ZM||function(){return Ne.Date.now()};function yL(s,a){if(typeof a!="function")throw new cr(l);return s=kt(s),function(){if(--s<1)return a.apply(this,arguments)}}function Om(s,a,g){return a=g?r:a,a=s&&a==null?s.length:a,Jr(s,S,r,r,r,r,a)}function Cm(s,a){var g;if(typeof a!="function")throw new cr(l);return s=kt(s),function(){return--s>0&&(g=a.apply(this,arguments)),s<=1&&(a=r),g}}var Xf=Bt(function(s,a,g){var E=b;if(g.length){var N=mn(g,Hi(Xf));E|=A}return Jr(s,E,a,g,N)}),Rm=Bt(function(s,a,g){var E=b|_;if(g.length){var N=mn(g,Hi(Rm));E|=A}return Jr(a,E,s,g,N)});function Im(s,a,g){a=g?r:a;var E=Jr(s,T,r,r,r,r,r,a);return E.placeholder=Im.placeholder,E}function Pm(s,a,g){a=g?r:a;var E=Jr(s,x,r,r,r,r,r,a);return E.placeholder=Pm.placeholder,E}function Nm(s,a,g){var E,N,U,H,Y,et,ut=0,ft=!1,ht=!1,mt=!0;if(typeof s!="function")throw new cr(l);a=gr(a)||0,ge(g)&&(ft=!!g.leading,ht="maxWait"in g,U=ht?Se(gr(g.maxWait)||0,a):U,mt="trailing"in g?!!g.trailing:mt);function wt(xe){var Nr=E,sn=N;return E=N=r,ut=xe,H=s.apply(sn,Nr),H}function Ot(xe){return ut=xe,Y=Us(Ut,a),ft?wt(xe):H}function Ft(xe){var Nr=xe-et,sn=xe-ut,Zm=a-Nr;return ht?De(Zm,U-sn):Zm}function Ct(xe){var Nr=xe-et,sn=xe-ut;return et===r||Nr>=a||Nr<0||ht&&sn>=U}function Ut(){var xe=Da();if(Ct(xe))return qt(xe);Y=Us(Ut,Ft(xe))}function qt(xe){return Y=r,mt&&E?wt(xe):(E=N=r,H)}function ir(){Y!==r&&jg(Y),ut=0,E=et=N=Y=r}function ze(){return Y===r?H:qt(Da())}function sr(){var xe=Da(),Nr=Ct(xe);if(E=arguments,N=this,et=xe,Nr){if(Y===r)return Ot(et);if(ht)return jg(Y),Y=Us(Ut,a),wt(et)}return Y===r&&(Y=Us(Ut,a)),H}return sr.cancel=ir,sr.flush=ze,sr}var _L=Bt(function(s,a){return xg(s,1,a)}),bL=Bt(function(s,a,g){return xg(s,gr(a)||0,g)});function xL(s){return Jr(s,L)}function Ua(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cr(l);var g=function(){var E=arguments,N=a?a.apply(this,E):E[0],U=g.cache;if(U.has(N))return U.get(N);var H=s.apply(this,E);return g.cache=U.set(N,H)||U,H};return g.cache=new(Ua.Cache||Zr),g}Ua.Cache=Zr;function $a(s){if(typeof s!="function")throw new cr(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function wL(s){return Cm(2,s)}var TL=uk(function(s,a){a=a.length==1&&Mt(a[0])?he(a[0],er(St())):he(Me(a,1),er(St()));var g=a.length;return Bt(function(E){for(var N=-1,U=De(E.length,g);++N<U;)E[N]=a[N].call(this,E[N]);return tr(s,this,E)})}),Kf=Bt(function(s,a){var g=mn(a,Hi(Kf));return Jr(s,A,r,a,g)}),Mm=Bt(function(s,a){var g=mn(a,Hi(Mm));return Jr(s,I,r,a,g)}),EL=tn(function(s,a){return Jr(s,O,r,r,r,a)});function AL(s,a){if(typeof s!="function")throw new cr(l);return a=a===r?a:kt(a),Bt(s,a)}function SL(s,a){if(typeof s!="function")throw new cr(l);return a=a==null?0:Se(kt(a),0),Bt(function(g){var E=g[a],N=wn(g,0,a);return E&&gn(N,E),tr(s,this,N)})}function OL(s,a,g){var E=!0,N=!0;if(typeof s!="function")throw new cr(l);return ge(g)&&(E="leading"in g?!!g.leading:E,N="trailing"in g?!!g.trailing:N),Nm(s,a,{leading:E,maxWait:a,trailing:N})}function CL(s){return Om(s,1)}function RL(s,a){return Kf(Mf(a),s)}function IL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function PL(s){return dr(s,v)}function NL(s,a){return a=typeof a=="function"?a:r,dr(s,v,a)}function ML(s){return dr(s,p|v)}function kL(s,a){return a=typeof a=="function"?a:r,dr(s,p|v,a)}function LL(s,a){return a==null||bg(s,a,Ie(a))}function Pr(s,a){return s===a||s!==s&&a!==a}var FL=Na(xf),BL=Na(function(s,a){return s>=a}),Zn=Sg(function(){return arguments}())?Sg:function(s){return me(s)&&te.call(s,"callee")&&!hg.call(s,"callee")},Mt=it.isArray,DL=Wv?er(Wv):V3;function We(s){return s!=null&&Ga(s.length)&&!rn(s)}function be(s){return me(s)&&We(s)}function UL(s){return s===!0||s===!1||me(s)&&je(s)==J}var Tn=JM||oc,$L=Xv?er(Xv):W3;function GL(s){return me(s)&&s.nodeType===1&&!$s(s)}function jL(s){if(s==null)return!0;if(We(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||Tn(s)||Vi(s)||Zn(s)))return!s.length;var a=Ue(s);if(a==xt||a==vt)return!s.size;if(Ds(s))return!Ef(s).length;for(var g in s)if(te.call(s,g))return!1;return!0}function qL(s,a){return Ls(s,a)}function zL(s,a,g){g=typeof g=="function"?g:r;var E=g?g(s,a):r;return E===r?Ls(s,a,r,g):!!E}function Yf(s){if(!me(s))return!1;var a=je(s);return a==at||a==nt||typeof s.message=="string"&&typeof s.name=="string"&&!$s(s)}function HL(s){return typeof s=="number"&&pg(s)}function rn(s){if(!ge(s))return!1;var a=je(s);return a==dt||a==gt||a==V||a==lt}function km(s){return typeof s=="number"&&s==kt(s)}function Ga(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=rt}function ge(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function me(s){return s!=null&&typeof s=="object"}var Lm=Kv?er(Kv):K3;function VL(s,a){return s===a||Tf(s,a,$f(a))}function WL(s,a,g){return g=typeof g=="function"?g:r,Tf(s,a,$f(a),g)}function XL(s){return Fm(s)&&s!=+s}function KL(s){if(Nk(s))throw new It(o);return Og(s)}function YL(s){return s===null}function ZL(s){return s==null}function Fm(s){return typeof s=="number"||me(s)&&je(s)==At}function $s(s){if(!me(s)||je(s)!=Xt)return!1;var a=pa(s);if(a===null)return!0;var g=te.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&fa.call(g)==WM}var Zf=Yv?er(Yv):Y3;function QL(s){return km(s)&&s>=-rt&&s<=rt}var Bm=Zv?er(Zv):Z3;function ja(s){return typeof s=="string"||!Mt(s)&&me(s)&&je(s)==ct}function nr(s){return typeof s=="symbol"||me(s)&&je(s)==Pt}var Vi=Qv?er(Qv):Q3;function JL(s){return s===r}function tF(s){return me(s)&&Ue(s)==Nt}function eF(s){return me(s)&&je(s)==He}var rF=Na(Af),nF=Na(function(s,a){return s<=a});function Dm(s){if(!s)return[];if(We(s))return ja(s)?Rr(s):Ve(s);if(Os&&s[Os])return LM(s[Os]());var a=Ue(s),g=a==xt?hf:a==vt?aa:Wi;return g(s)}function nn(s){if(!s)return s===0?s:0;if(s=gr(s),s===z||s===-z){var a=s<0?-1:1;return a*W}return s===s?s:0}function kt(s){var a=nn(s),g=a%1;return a===a?g?a-g:a:0}function Um(s){return s?Wn(kt(s),0,k):0}function gr(s){if(typeof s=="number")return s;if(nr(s))return D;if(ge(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=ge(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=ig(s);var g=DN.test(s);return g||$N.test(s)?yM(s.slice(2),g?2:8):BN.test(s)?D:+s}function $m(s){return jr(s,Xe(s))}function iF(s){return s?Wn(kt(s),-rt,rt):s===0?s:0}function Qt(s){return s==null?"":rr(s)}var sF=qi(function(s,a){if(Ds(a)||We(a)){jr(a,Ie(a),s);return}for(var g in a)te.call(a,g)&&Ns(s,g,a[g])}),Gm=qi(function(s,a){jr(a,Xe(a),s)}),qa=qi(function(s,a,g,E){jr(a,Xe(a),s,E)}),oF=qi(function(s,a,g,E){jr(a,Ie(a),s,E)}),aF=tn(yf);function lF(s,a){var g=ji(s);return a==null?g:_g(g,a)}var uF=Bt(function(s,a){s=ne(s);var g=-1,E=a.length,N=E>2?a[2]:r;for(N&&qe(a[0],a[1],N)&&(E=1);++g<E;)for(var U=a[g],H=Xe(U),Y=-1,et=H.length;++Y<et;){var ut=H[Y],ft=s[ut];(ft===r||Pr(ft,Ui[ut])&&!te.call(s,ut))&&(s[ut]=U[ut])}return s}),fF=Bt(function(s){return s.push(r,im),tr(jm,r,s)});function cF(s,a){return tg(s,St(a,3),Gr)}function hF(s,a){return tg(s,St(a,3),bf)}function dF(s,a){return s==null?s:_f(s,St(a,3),Xe)}function pF(s,a){return s==null?s:Eg(s,St(a,3),Xe)}function vF(s,a){return s&&Gr(s,St(a,3))}function gF(s,a){return s&&bf(s,St(a,3))}function mF(s){return s==null?[]:Ea(s,Ie(s))}function yF(s){return s==null?[]:Ea(s,Xe(s))}function Qf(s,a,g){var E=s==null?r:Xn(s,a);return E===r?g:E}function _F(s,a){return s!=null&&am(s,a,j3)}function Jf(s,a){return s!=null&&am(s,a,q3)}var bF=Jg(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=ca.call(a)),s[a]=g},ec(Ke)),xF=Jg(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=ca.call(a)),te.call(s,a)?s[a].push(g):s[a]=[g]},St),wF=Bt(ks);function Ie(s){return We(s)?mg(s):Ef(s)}function Xe(s){return We(s)?mg(s,!0):J3(s)}function TF(s,a){var g={};return a=St(a,3),Gr(s,function(E,N,U){Qr(g,a(E,N,U),E)}),g}function EF(s,a){var g={};return a=St(a,3),Gr(s,function(E,N,U){Qr(g,N,a(E,N,U))}),g}var AF=qi(function(s,a,g){Aa(s,a,g)}),jm=qi(function(s,a,g,E){Aa(s,a,g,E)}),SF=tn(function(s,a){var g={};if(s==null)return g;var E=!1;a=he(a,function(U){return U=xn(U,s),E||(E=U.length>1),U}),jr(s,Df(s),g),E&&(g=dr(g,p|c|v,bk));for(var N=a.length;N--;)If(g,a[N]);return g});function OF(s,a){return qm(s,$a(St(a)))}var CF=tn(function(s,a){return s==null?{}:ek(s,a)});function qm(s,a){if(s==null)return{};var g=he(Df(s),function(E){return[E]});return a=St(a),kg(s,g,function(E,N){return a(E,N[0])})}function RF(s,a,g){a=xn(a,s);var E=-1,N=a.length;for(N||(N=1,s=r);++E<N;){var U=s==null?r:s[qr(a[E])];U===r&&(E=N,U=g),s=rn(U)?U.call(s):U}return s}function IF(s,a,g){return s==null?s:Fs(s,a,g)}function PF(s,a,g,E){return E=typeof E=="function"?E:r,s==null?s:Fs(s,a,g,E)}var zm=rm(Ie),Hm=rm(Xe);function NF(s,a,g){var E=Mt(s),N=E||Tn(s)||Vi(s);if(a=St(a,4),g==null){var U=s&&s.constructor;N?g=E?new U:[]:ge(s)?g=rn(U)?ji(pa(s)):{}:g={}}return(N?fr:Gr)(s,function(H,Y,et){return a(g,H,Y,et)}),g}function MF(s,a){return s==null?!0:If(s,a)}function kF(s,a,g){return s==null?s:Ug(s,a,Mf(g))}function LF(s,a,g,E){return E=typeof E=="function"?E:r,s==null?s:Ug(s,a,Mf(g),E)}function Wi(s){return s==null?[]:cf(s,Ie(s))}function FF(s){return s==null?[]:cf(s,Xe(s))}function BF(s,a,g){return g===r&&(g=a,a=r),g!==r&&(g=gr(g),g=g===g?g:0),a!==r&&(a=gr(a),a=a===a?a:0),Wn(gr(s),a,g)}function DF(s,a,g){return a=nn(a),g===r?(g=a,a=0):g=nn(g),s=gr(s),z3(s,a,g)}function UF(s,a,g){if(g&&typeof g!="boolean"&&qe(s,a,g)&&(a=g=r),g===r&&(typeof a=="boolean"?(g=a,a=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&a===r?(s=0,a=1):(s=nn(s),a===r?(a=s,s=0):a=nn(a)),s>a){var E=s;s=a,a=E}if(g||s%1||a%1){var N=vg();return De(s+N*(a-s+mM("1e-"+((N+"").length-1))),a)}return Of(s,a)}var $F=zi(function(s,a,g){return a=a.toLowerCase(),s+(g?Vm(a):a)});function Vm(s){return tc(Qt(s).toLowerCase())}function Wm(s){return s=Qt(s),s&&s.replace(jN,IM).replace(aM,"")}function GF(s,a,g){s=Qt(s),a=rr(a);var E=s.length;g=g===r?E:Wn(kt(g),0,E);var N=g;return g-=a.length,g>=0&&s.slice(g,N)==a}function jF(s){return s=Qt(s),s&&wN.test(s)?s.replace(Ev,PM):s}function qF(s){return s=Qt(s),s&&CN.test(s)?s.replace(Xu,"\\$&"):s}var zF=zi(function(s,a,g){return s+(g?"-":"")+a.toLowerCase()}),HF=zi(function(s,a,g){return s+(g?" ":"")+a.toLowerCase()}),VF=Yg("toLowerCase");function WF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;if(!a||E>=a)return s;var N=(a-E)/2;return Pa(ya(N),g)+s+Pa(ma(N),g)}function XF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;return a&&E<a?s+Pa(a-E,g):s}function KF(s,a,g){s=Qt(s),a=kt(a);var E=a?Bi(s):0;return a&&E<a?Pa(a-E,g)+s:s}function YF(s,a,g){return g||a==null?a=0:a&&(a=+a),n3(Qt(s).replace(Ku,""),a||0)}function ZF(s,a,g){return(g?qe(s,a,g):a===r)?a=1:a=kt(a),Cf(Qt(s),a)}function QF(){var s=arguments,a=Qt(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var JF=zi(function(s,a,g){return s+(g?"_":"")+a.toLowerCase()});function t4(s,a,g){return g&&typeof g!="number"&&qe(s,a,g)&&(a=g=r),g=g===r?k:g>>>0,g?(s=Qt(s),s&&(typeof a=="string"||a!=null&&!Zf(a))&&(a=rr(a),!a&&Fi(s))?wn(Rr(s),0,g):s.split(a,g)):[]}var e4=zi(function(s,a,g){return s+(g?" ":"")+tc(a)});function r4(s,a,g){return s=Qt(s),g=g==null?0:Wn(kt(g),0,s.length),a=rr(a),s.slice(g,g+a.length)==a}function n4(s,a,g){var E=B.templateSettings;g&&qe(s,a,g)&&(a=r),s=Qt(s),a=qa({},a,E,nm);var N=qa({},a.imports,E.imports,nm),U=Ie(N),H=cf(N,U),Y,et,ut=0,ft=a.interpolate||ra,ht="__p += '",mt=df((a.escape||ra).source+"|"+ft.source+"|"+(ft===Av?FN:ra).source+"|"+(a.evaluate||ra).source+"|$","g"),wt="//# sourceURL="+(te.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++hM+"]")+`
1933
+ `;s.replace(mt,function(Ct,Ut,qt,ir,ze,sr){return qt||(qt=ir),ht+=s.slice(ut,sr).replace(qN,NM),Ut&&(Y=!0,ht+=`' +
1934
1934
  __e(`+Ut+`) +
1935
1935
  '`),ze&&(et=!0,ht+=`';
1936
1936
  `+ze+`;
1937
1937
  __p += '`),qt&&(ht+=`' +
1938
1938
  ((__t = (`+qt+`)) == null ? '' : __t) +
1939
- '`),ut=sr+Ot.length,Ot}),ht+=`';
1940
- `;var St=te.call(a,"variable")&&a.variable;if(!St)ht=`with (obj) {
1939
+ '`),ut=sr+Ct.length,Ct}),ht+=`';
1940
+ `;var Ot=te.call(a,"variable")&&a.variable;if(!Ot)ht=`with (obj) {
1941
1941
  `+ht+`
1942
1942
  }
1943
- `;else if(kN.test(St))throw new It(u);ht=(et?ht.replace(yN,""):ht).replace(_N,"$1").replace(bN,"$1;"),ht="function("+(St||"obj")+`) {
1944
- `+(St?"":`obj || (obj = {});
1943
+ `;else if(kN.test(Ot))throw new It(u);ht=(et?ht.replace(yN,""):ht).replace(_N,"$1").replace(bN,"$1;"),ht="function("+(Ot||"obj")+`) {
1944
+ `+(Ot?"":`obj || (obj = {});
1945
1945
  `)+"var __t, __p = ''"+(Y?", __e = _.escape":"")+(et?`, __j = Array.prototype.join;
1946
1946
  function print() { __p += __j.call(arguments, '') }
1947
1947
  `:`;
1948
1948
  `)+ht+`return __p
1949
- }`;var Ft=Km(function(){return Kt(D,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Yf(Ft))throw Ft;return Ft}function i4(s){return Qt(s).toLowerCase()}function s4(s){return Qt(s).toUpperCase()}function o4(s,a,g){if(s=Qt(s),s&&(g||a===r))return ig(s);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=Rr(a),D=sg(E,N),H=og(E,N)+1;return wn(E,D,H).join("")}function a4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.slice(0,lg(s)+1);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=og(E,Rr(a))+1;return wn(E,0,N).join("")}function l4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.replace(Ku,"");if(!s||!(a=rr(a)))return s;var E=Rr(s),N=sg(E,Rr(a));return wn(E,N).join("")}function u4(s,a){var g=R,E=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,E="omission"in a?rr(a.omission):E}s=Qt(s);var D=s.length;if(Fi(s)){var H=Rr(s);D=H.length}if(g>=D)return s;var Y=g-Bi(E);if(Y<1)return E;var et=H?wn(H,0,Y).join(""):s.slice(0,Y);if(N===r)return et+E;if(H&&(Y+=et.length-Y),Zf(N)){if(s.slice(Y).search(N)){var ut,ft=et;for(N.global||(N=df(N.source,Qt(Sv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;et=et.slice(0,ht===r?Y:ht)}}else if(s.indexOf(rr(N),Y)!=Y){var gt=et.lastIndexOf(N);gt>-1&&(et=et.slice(0,gt))}return et+E}function f4(s){return s=Qt(s),s&&xN.test(s)?s.replace(Tv,UM):s}var c4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),tc=Yg("toUpperCase");function Xm(s,a,g){return s=Qt(s),a=g?r:a,a===r?kM(s)?jM(s):AM(s):s.match(a)||[]}var Km=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Yf(g)?g:new It(g)}}),h4=tn(function(s,a){return fr(a,function(g){g=qr(g),Qr(s,g,Xf(s[g],s))}),s});function d4(s){var a=s==null?0:s.length,g=At();return s=a?he(s,function(E){if(typeof E[1]!="function")throw new cr(l);return[g(E[0]),E[1]]}):[],Bt(function(E){for(var N=-1;++N<a;){var D=s[N];if(tr(D[0],this,E))return tr(D[1],this,E)}})}function p4(s){return U3(dr(s,p))}function ec(s){return function(){return s}}function v4(s,a){return s==null||s!==s?a:s}var g4=Qg(),m4=Qg(!0);function Ke(s){return s}function rc(s){return Cg(typeof s=="function"?s:dr(s,p))}function y4(s){return Ig(dr(s,p))}function _4(s,a){return Pg(s,dr(a,p))}var b4=Bt(function(s,a){return function(g){return ks(g,s,a)}}),x4=Bt(function(s,a){return function(g){return ks(s,g,a)}});function nc(s,a,g){var E=Ie(a),N=Ea(a,E);g==null&&!(ge(a)&&(N.length||!E.length))&&(g=a,a=s,s=this,N=Ea(a,Ie(a)));var D=!(ge(g)&&"chain"in g)||!!g.chain,H=rn(s);return fr(N,function(Y){var et=a[Y];s[Y]=et,H&&(s.prototype[Y]=function(){var ut=this.__chain__;if(D||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:et,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return et.apply(s,gn([this.value()],arguments))})}),s}function w4(){return Ne._===this&&(Ne._=XM),this}function ic(){}function T4(s){return s=kt(s),Bt(function(a){return Ng(a,s)})}var E4=Lf(he),A4=Lf(Jv),S4=Lf(of);function Ym(s){return jf(s)?af(qr(s)):rk(s)}function O4(s){return function(a){return s==null?r:Xn(s,a)}}var C4=tm(),R4=tm(!0);function sc(){return[]}function oc(){return!1}function I4(){return{}}function P4(){return""}function N4(){return!0}function M4(s,a){if(s=kt(s),s<1||s>rt)return[];var g=k,E=De(s,k);a=At(a),s-=k;for(var N=ff(E,a);++g<s;)a(g);return N}function k4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(gm(Qt(s)))}function L4(s){var a=++VM;return Qt(s)+a}var F4=Ia(function(s,a){return s+a},0),B4=Ff("ceil"),D4=Ia(function(s,a){return s/a},1),U4=Ff("floor");function $4(s){return s&&s.length?Ta(s,Ke,xf):r}function G4(s,a){return s&&s.length?Ta(s,At(a,2),xf):r}function j4(s){return rg(s,Ke)}function q4(s,a){return rg(s,At(a,2))}function z4(s){return s&&s.length?Ta(s,Ke,Af):r}function H4(s,a){return s&&s.length?Ta(s,At(a,2),Af):r}var V4=Ia(function(s,a){return s*a},1),W4=Ff("round"),X4=Ia(function(s,a){return s-a},0);function K4(s){return s&&s.length?uf(s,Ke):0}function Y4(s,a){return s&&s.length?uf(s,At(a,2)):0}return B.after=yL,B.ary=Om,B.assign=sF,B.assignIn=Gm,B.assignInWith=qa,B.assignWith=oF,B.at=aF,B.before=Cm,B.bind=Xf,B.bindAll=h4,B.bindKey=Rm,B.castArray=IL,B.chain=Em,B.chunk=Uk,B.compact=$k,B.concat=Gk,B.cond=d4,B.conforms=p4,B.constant=ec,B.countBy=K5,B.create=lF,B.curry=Im,B.curryRight=Pm,B.debounce=Nm,B.defaults=uF,B.defaultsDeep=fF,B.defer=_L,B.delay=bL,B.difference=jk,B.differenceBy=qk,B.differenceWith=zk,B.drop=Hk,B.dropRight=Vk,B.dropRightWhile=Wk,B.dropWhile=Xk,B.fill=Kk,B.filter=Z5,B.flatMap=tL,B.flatMapDeep=eL,B.flatMapDepth=rL,B.flatten=bm,B.flattenDeep=Yk,B.flattenDepth=Zk,B.flip=xL,B.flow=g4,B.flowRight=m4,B.fromPairs=Qk,B.functions=mF,B.functionsIn=yF,B.groupBy=nL,B.initial=t5,B.intersection=e5,B.intersectionBy=r5,B.intersectionWith=n5,B.invert=bF,B.invertBy=xF,B.invokeMap=sL,B.iteratee=rc,B.keyBy=oL,B.keys=Ie,B.keysIn=Xe,B.map=Ba,B.mapKeys=TF,B.mapValues=EF,B.matches=y4,B.matchesProperty=_4,B.memoize=Ua,B.merge=AF,B.mergeWith=jm,B.method=b4,B.methodOf=x4,B.mixin=nc,B.negate=$a,B.nthArg=T4,B.omit=SF,B.omitBy=OF,B.once=wL,B.orderBy=aL,B.over=E4,B.overArgs=TL,B.overEvery=A4,B.overSome=S4,B.partial=Kf,B.partialRight=Mm,B.partition=lL,B.pick=CF,B.pickBy=qm,B.property=Ym,B.propertyOf=O4,B.pull=a5,B.pullAll=wm,B.pullAllBy=l5,B.pullAllWith=u5,B.pullAt=f5,B.range=C4,B.rangeRight=R4,B.rearg=EL,B.reject=cL,B.remove=c5,B.rest=AL,B.reverse=Vf,B.sampleSize=dL,B.set=IF,B.setWith=PF,B.shuffle=pL,B.slice=h5,B.sortBy=mL,B.sortedUniq=_5,B.sortedUniqBy=b5,B.split=t4,B.spread=SL,B.tail=x5,B.take=w5,B.takeRight=T5,B.takeRightWhile=E5,B.takeWhile=A5,B.tap=$5,B.throttle=OL,B.thru=Fa,B.toArray=Dm,B.toPairs=zm,B.toPairsIn=Hm,B.toPath=k4,B.toPlainObject=$m,B.transform=NF,B.unary=CL,B.union=S5,B.unionBy=O5,B.unionWith=C5,B.uniq=R5,B.uniqBy=I5,B.uniqWith=P5,B.unset=MF,B.unzip=Wf,B.unzipWith=Tm,B.update=kF,B.updateWith=LF,B.values=Wi,B.valuesIn=FF,B.without=N5,B.words=Xm,B.wrap=RL,B.xor=M5,B.xorBy=k5,B.xorWith=L5,B.zip=F5,B.zipObject=B5,B.zipObjectDeep=D5,B.zipWith=U5,B.entries=zm,B.entriesIn=Hm,B.extend=Gm,B.extendWith=qa,nc(B,B),B.add=F4,B.attempt=Km,B.camelCase=$F,B.capitalize=Vm,B.ceil=B4,B.clamp=BF,B.clone=PL,B.cloneDeep=ML,B.cloneDeepWith=kL,B.cloneWith=NL,B.conformsTo=LL,B.deburr=Wm,B.defaultTo=v4,B.divide=D4,B.endsWith=GF,B.eq=Pr,B.escape=jF,B.escapeRegExp=qF,B.every=Y5,B.find=Q5,B.findIndex=ym,B.findKey=cF,B.findLast=J5,B.findLastIndex=_m,B.findLastKey=hF,B.floor=U4,B.forEach=Am,B.forEachRight=Sm,B.forIn=dF,B.forInRight=pF,B.forOwn=vF,B.forOwnRight=gF,B.get=Qf,B.gt=FL,B.gte=BL,B.has=_F,B.hasIn=Jf,B.head=xm,B.identity=Ke,B.includes=iL,B.indexOf=Jk,B.inRange=DF,B.invoke=wF,B.isArguments=Zn,B.isArray=Mt,B.isArrayBuffer=DL,B.isArrayLike=We,B.isArrayLikeObject=_e,B.isBoolean=UL,B.isBuffer=Tn,B.isDate=$L,B.isElement=GL,B.isEmpty=jL,B.isEqual=qL,B.isEqualWith=zL,B.isError=Yf,B.isFinite=HL,B.isFunction=rn,B.isInteger=km,B.isLength=Ga,B.isMap=Lm,B.isMatch=VL,B.isMatchWith=WL,B.isNaN=XL,B.isNative=KL,B.isNil=ZL,B.isNull=YL,B.isNumber=Fm,B.isObject=ge,B.isObjectLike=me,B.isPlainObject=$s,B.isRegExp=Zf,B.isSafeInteger=QL,B.isSet=Bm,B.isString=ja,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=JL,B.isWeakMap=tF,B.isWeakSet=eF,B.join=i5,B.kebabCase=zF,B.last=vr,B.lastIndexOf=s5,B.lowerCase=HF,B.lowerFirst=VF,B.lt=rF,B.lte=nF,B.max=$4,B.maxBy=G4,B.mean=j4,B.meanBy=q4,B.min=z4,B.minBy=H4,B.stubArray=sc,B.stubFalse=oc,B.stubObject=I4,B.stubString=P4,B.stubTrue=N4,B.multiply=V4,B.nth=o5,B.noConflict=w4,B.noop=ic,B.now=Da,B.pad=WF,B.padEnd=XF,B.padStart=KF,B.parseInt=YF,B.random=UF,B.reduce=uL,B.reduceRight=fL,B.repeat=ZF,B.replace=QF,B.result=RF,B.round=W4,B.runInContext=tt,B.sample=hL,B.size=vL,B.snakeCase=JF,B.some=gL,B.sortedIndex=d5,B.sortedIndexBy=p5,B.sortedIndexOf=v5,B.sortedLastIndex=g5,B.sortedLastIndexBy=m5,B.sortedLastIndexOf=y5,B.startCase=e4,B.startsWith=r4,B.subtract=X4,B.sum=K4,B.sumBy=Y4,B.template=n4,B.times=M4,B.toFinite=nn,B.toInteger=kt,B.toLength=Um,B.toLower=i4,B.toNumber=gr,B.toSafeInteger=iF,B.toString=Qt,B.toUpper=s4,B.trim=o4,B.trimEnd=a4,B.trimStart=l4,B.truncate=u4,B.unescape=f4,B.uniqueId=L4,B.upperCase=c4,B.upperFirst=tc,B.each=Am,B.eachRight=Sm,B.first=xm,nc(B,function(){var s={};return Gr(B,function(a,g){te.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Se(kt(g),0);var E=this.__filtered__&&!a?new Gt(this):this.clone();return E.__filtered__?E.__takeCount__=De(g,E.__takeCount__):E.__views__.push({size:De(g,k),type:s+(E.__dir__<0?"Right":"")}),E},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,E=g==F||g==Q;Gt.prototype[s]=function(N){var D=this.clone();return D.__iteratees__.push({iteratee:At(N,3),type:g}),D.__filtered__=D.__filtered__||E,D}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return ks(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter($a(At(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),N=B[E?"take"+(a=="last"?"Right":""):a],D=E||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,Y=E?[1]:arguments,et=H instanceof Gt,ut=Y[0],ft=et||Mt(H),ht=function(Ut){var qt=N.apply(B,gn([Ut],Y));return E&&gt?qt[0]:qt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(et=ft=!1);var gt=this.__chain__,wt=!!this.__actions__.length,St=D&&!gt,Ft=et&&!wt;if(!D&&ft){H=Ft?H:new Gt(this);var Ot=s.apply(H,Y);return Ot.__actions__.push({func:Fa,args:[ht],thisArg:r}),new hr(Ot,gt)}return St&&Ft?s.apply(this,Y):(Ot=this.thru(ht),St?E?Ot.value()[0]:Ot.value():Ot)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=la[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(E&&!this.__chain__){var D=this.value();return a.apply(Mt(D)?D:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var E=g.name+"";te.call(Gi,E)||(Gi[E]=[]),Gi[E].push({name:a,func:g})}}),Gi[Ra(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=f3,Gt.prototype.reverse=c3,Gt.prototype.value=h3,B.prototype.at=G5,B.prototype.chain=j5,B.prototype.commit=q5,B.prototype.next=z5,B.prototype.plant=V5,B.prototype.reverse=W5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=X5,B.prototype.first=B.prototype.head,Os&&(B.prototype[Os]=H5),B},Di=qM();qn?((qn.exports=Di)._=Di,ef._=Di):Ne._=Di}).call(Ye)}(ea,ea.exports);var _v=ea.exports;const cN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},hN=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(0),[,f]=_t.useState(!1),[h,d]=eN({autoPlay:!1}),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(cN),m=_t.useRef(),{tl:y,isDragging:b}=_t.useContext(ti),{frames:_,delays:w}=h,{src:T,startAt:x,endAt:A,frameStartAt:I,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:C,y:P,animation:M,colorCorrection:F={}}}=e,{temperatureFilter:q,sharpnessFilter:Q,hueFilter:z,blurFilter:rt,adjustmentFilter:W}=_s(F),{blurRadius:U=0}=F,k=.1;uN(T,d),mr(ke.PAUSE,J=>{console.log("pause event",J),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Et.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Et.useEffect(()=>{if(!Qi(_)){const J=PP(_,dt=>{const{data:mt,width:xt,height:Ct}=dt,fe=new Uint8Array(mt);return on.Texture.fromBuffer(fe,xt,Ct)}),nt=J.map((dt,mt)=>({texture:dt,time:w[mt]}));n(J),l(nt);let at=0;w.forEach(dt=>{at+=dt*10}),i(at),v.current.totalDuration=at,v.current.totalFrames=_.length}},[_,w]);const j=_v.debounce(J=>{if(p.current){let nt=J===0?0:J/k;const at=v.current.totalFrames;nt=nt>=at?at:nt,p.current.gotoAndPlay(nt||0),v.current.isPlaying=!0}},50),G=_v.debounce(()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},150),K=J=>{if(p.current){let nt=J===0?0:J/k;const at=v.current.totalFrames;nt=nt>=at?at:nt,p.current.gotoAndPlay(nt||0),v.current.isPlaying=!0}},X=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},$=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},V=J=>{var at;const nt=J+((at=m.current)==null?void 0:at.time());p.current&&v.current.isDragging?(j(nt),G(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(j(nt),v.current.isPlaying=!0)},Z=()=>{f(!0)};return _t.useEffect(()=>{let J=Te.context(()=>{});if(c.current&&y.current){const nt={duration:Number(S)-Number(I),onStart:K,onComplete:X,onStartParams:[I,S],onCompleteParams:[],onInterrupt:$,onUpdate:V,onUpdateParams:[I,S]};m.current&&m.current.kill(),J=Te.context(()=>{m.current=Te.from(c.current,nt,I),y.current.add(m.current,x)})}return()=>{m.current&&(m.current.kill(),Te.killTweensOf(m.current)),J.revert(),c.current&&c.current.destroy()}},[M,x,A,I,S]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,children:ee.jsx(xe.Container,{ref:c,children:r&&r.length>0&&ee.jsx(yv,{x:C,y:P,width:L,height:R,animationSpeed:1,loop:O,textures:o,onComplete:Z,onFrameChange:J=>u(J),anchor:.5,forwardRef:p,filters:[q,Q,z,W,...U>0?[rt]:[]]})})})});var bv={exports:{}};/*!
1949
+ }`;var Ft=Km(function(){return Kt(U,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Yf(Ft))throw Ft;return Ft}function i4(s){return Qt(s).toLowerCase()}function s4(s){return Qt(s).toUpperCase()}function o4(s,a,g){if(s=Qt(s),s&&(g||a===r))return ig(s);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=Rr(a),U=sg(E,N),H=og(E,N)+1;return wn(E,U,H).join("")}function a4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.slice(0,lg(s)+1);if(!s||!(a=rr(a)))return s;var E=Rr(s),N=og(E,Rr(a))+1;return wn(E,0,N).join("")}function l4(s,a,g){if(s=Qt(s),s&&(g||a===r))return s.replace(Ku,"");if(!s||!(a=rr(a)))return s;var E=Rr(s),N=sg(E,Rr(a));return wn(E,N).join("")}function u4(s,a){var g=R,E=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,E="omission"in a?rr(a.omission):E}s=Qt(s);var U=s.length;if(Fi(s)){var H=Rr(s);U=H.length}if(g>=U)return s;var Y=g-Bi(E);if(Y<1)return E;var et=H?wn(H,0,Y).join(""):s.slice(0,Y);if(N===r)return et+E;if(H&&(Y+=et.length-Y),Zf(N)){if(s.slice(Y).search(N)){var ut,ft=et;for(N.global||(N=df(N.source,Qt(Sv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;et=et.slice(0,ht===r?Y:ht)}}else if(s.indexOf(rr(N),Y)!=Y){var mt=et.lastIndexOf(N);mt>-1&&(et=et.slice(0,mt))}return et+E}function f4(s){return s=Qt(s),s&&xN.test(s)?s.replace(Tv,UM):s}var c4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),tc=Yg("toUpperCase");function Xm(s,a,g){return s=Qt(s),a=g?r:a,a===r?kM(s)?jM(s):AM(s):s.match(a)||[]}var Km=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Yf(g)?g:new It(g)}}),h4=tn(function(s,a){return fr(a,function(g){g=qr(g),Qr(s,g,Xf(s[g],s))}),s});function d4(s){var a=s==null?0:s.length,g=St();return s=a?he(s,function(E){if(typeof E[1]!="function")throw new cr(l);return[g(E[0]),E[1]]}):[],Bt(function(E){for(var N=-1;++N<a;){var U=s[N];if(tr(U[0],this,E))return tr(U[1],this,E)}})}function p4(s){return U3(dr(s,p))}function ec(s){return function(){return s}}function v4(s,a){return s==null||s!==s?a:s}var g4=Qg(),m4=Qg(!0);function Ke(s){return s}function rc(s){return Cg(typeof s=="function"?s:dr(s,p))}function y4(s){return Ig(dr(s,p))}function _4(s,a){return Pg(s,dr(a,p))}var b4=Bt(function(s,a){return function(g){return ks(g,s,a)}}),x4=Bt(function(s,a){return function(g){return ks(s,g,a)}});function nc(s,a,g){var E=Ie(a),N=Ea(a,E);g==null&&!(ge(a)&&(N.length||!E.length))&&(g=a,a=s,s=this,N=Ea(a,Ie(a)));var U=!(ge(g)&&"chain"in g)||!!g.chain,H=rn(s);return fr(N,function(Y){var et=a[Y];s[Y]=et,H&&(s.prototype[Y]=function(){var ut=this.__chain__;if(U||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:et,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return et.apply(s,gn([this.value()],arguments))})}),s}function w4(){return Ne._===this&&(Ne._=XM),this}function ic(){}function T4(s){return s=kt(s),Bt(function(a){return Ng(a,s)})}var E4=Lf(he),A4=Lf(Jv),S4=Lf(of);function Ym(s){return jf(s)?af(qr(s)):rk(s)}function O4(s){return function(a){return s==null?r:Xn(s,a)}}var C4=tm(),R4=tm(!0);function sc(){return[]}function oc(){return!1}function I4(){return{}}function P4(){return""}function N4(){return!0}function M4(s,a){if(s=kt(s),s<1||s>rt)return[];var g=k,E=De(s,k);a=St(a),s-=k;for(var N=ff(E,a);++g<s;)a(g);return N}function k4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(gm(Qt(s)))}function L4(s){var a=++VM;return Qt(s)+a}var F4=Ia(function(s,a){return s+a},0),B4=Ff("ceil"),D4=Ia(function(s,a){return s/a},1),U4=Ff("floor");function $4(s){return s&&s.length?Ta(s,Ke,xf):r}function G4(s,a){return s&&s.length?Ta(s,St(a,2),xf):r}function j4(s){return rg(s,Ke)}function q4(s,a){return rg(s,St(a,2))}function z4(s){return s&&s.length?Ta(s,Ke,Af):r}function H4(s,a){return s&&s.length?Ta(s,St(a,2),Af):r}var V4=Ia(function(s,a){return s*a},1),W4=Ff("round"),X4=Ia(function(s,a){return s-a},0);function K4(s){return s&&s.length?uf(s,Ke):0}function Y4(s,a){return s&&s.length?uf(s,St(a,2)):0}return B.after=yL,B.ary=Om,B.assign=sF,B.assignIn=Gm,B.assignInWith=qa,B.assignWith=oF,B.at=aF,B.before=Cm,B.bind=Xf,B.bindAll=h4,B.bindKey=Rm,B.castArray=IL,B.chain=Em,B.chunk=Uk,B.compact=$k,B.concat=Gk,B.cond=d4,B.conforms=p4,B.constant=ec,B.countBy=K5,B.create=lF,B.curry=Im,B.curryRight=Pm,B.debounce=Nm,B.defaults=uF,B.defaultsDeep=fF,B.defer=_L,B.delay=bL,B.difference=jk,B.differenceBy=qk,B.differenceWith=zk,B.drop=Hk,B.dropRight=Vk,B.dropRightWhile=Wk,B.dropWhile=Xk,B.fill=Kk,B.filter=Z5,B.flatMap=tL,B.flatMapDeep=eL,B.flatMapDepth=rL,B.flatten=bm,B.flattenDeep=Yk,B.flattenDepth=Zk,B.flip=xL,B.flow=g4,B.flowRight=m4,B.fromPairs=Qk,B.functions=mF,B.functionsIn=yF,B.groupBy=nL,B.initial=t5,B.intersection=e5,B.intersectionBy=r5,B.intersectionWith=n5,B.invert=bF,B.invertBy=xF,B.invokeMap=sL,B.iteratee=rc,B.keyBy=oL,B.keys=Ie,B.keysIn=Xe,B.map=Ba,B.mapKeys=TF,B.mapValues=EF,B.matches=y4,B.matchesProperty=_4,B.memoize=Ua,B.merge=AF,B.mergeWith=jm,B.method=b4,B.methodOf=x4,B.mixin=nc,B.negate=$a,B.nthArg=T4,B.omit=SF,B.omitBy=OF,B.once=wL,B.orderBy=aL,B.over=E4,B.overArgs=TL,B.overEvery=A4,B.overSome=S4,B.partial=Kf,B.partialRight=Mm,B.partition=lL,B.pick=CF,B.pickBy=qm,B.property=Ym,B.propertyOf=O4,B.pull=a5,B.pullAll=wm,B.pullAllBy=l5,B.pullAllWith=u5,B.pullAt=f5,B.range=C4,B.rangeRight=R4,B.rearg=EL,B.reject=cL,B.remove=c5,B.rest=AL,B.reverse=Vf,B.sampleSize=dL,B.set=IF,B.setWith=PF,B.shuffle=pL,B.slice=h5,B.sortBy=mL,B.sortedUniq=_5,B.sortedUniqBy=b5,B.split=t4,B.spread=SL,B.tail=x5,B.take=w5,B.takeRight=T5,B.takeRightWhile=E5,B.takeWhile=A5,B.tap=$5,B.throttle=OL,B.thru=Fa,B.toArray=Dm,B.toPairs=zm,B.toPairsIn=Hm,B.toPath=k4,B.toPlainObject=$m,B.transform=NF,B.unary=CL,B.union=S5,B.unionBy=O5,B.unionWith=C5,B.uniq=R5,B.uniqBy=I5,B.uniqWith=P5,B.unset=MF,B.unzip=Wf,B.unzipWith=Tm,B.update=kF,B.updateWith=LF,B.values=Wi,B.valuesIn=FF,B.without=N5,B.words=Xm,B.wrap=RL,B.xor=M5,B.xorBy=k5,B.xorWith=L5,B.zip=F5,B.zipObject=B5,B.zipObjectDeep=D5,B.zipWith=U5,B.entries=zm,B.entriesIn=Hm,B.extend=Gm,B.extendWith=qa,nc(B,B),B.add=F4,B.attempt=Km,B.camelCase=$F,B.capitalize=Vm,B.ceil=B4,B.clamp=BF,B.clone=PL,B.cloneDeep=ML,B.cloneDeepWith=kL,B.cloneWith=NL,B.conformsTo=LL,B.deburr=Wm,B.defaultTo=v4,B.divide=D4,B.endsWith=GF,B.eq=Pr,B.escape=jF,B.escapeRegExp=qF,B.every=Y5,B.find=Q5,B.findIndex=ym,B.findKey=cF,B.findLast=J5,B.findLastIndex=_m,B.findLastKey=hF,B.floor=U4,B.forEach=Am,B.forEachRight=Sm,B.forIn=dF,B.forInRight=pF,B.forOwn=vF,B.forOwnRight=gF,B.get=Qf,B.gt=FL,B.gte=BL,B.has=_F,B.hasIn=Jf,B.head=xm,B.identity=Ke,B.includes=iL,B.indexOf=Jk,B.inRange=DF,B.invoke=wF,B.isArguments=Zn,B.isArray=Mt,B.isArrayBuffer=DL,B.isArrayLike=We,B.isArrayLikeObject=be,B.isBoolean=UL,B.isBuffer=Tn,B.isDate=$L,B.isElement=GL,B.isEmpty=jL,B.isEqual=qL,B.isEqualWith=zL,B.isError=Yf,B.isFinite=HL,B.isFunction=rn,B.isInteger=km,B.isLength=Ga,B.isMap=Lm,B.isMatch=VL,B.isMatchWith=WL,B.isNaN=XL,B.isNative=KL,B.isNil=ZL,B.isNull=YL,B.isNumber=Fm,B.isObject=ge,B.isObjectLike=me,B.isPlainObject=$s,B.isRegExp=Zf,B.isSafeInteger=QL,B.isSet=Bm,B.isString=ja,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=JL,B.isWeakMap=tF,B.isWeakSet=eF,B.join=i5,B.kebabCase=zF,B.last=vr,B.lastIndexOf=s5,B.lowerCase=HF,B.lowerFirst=VF,B.lt=rF,B.lte=nF,B.max=$4,B.maxBy=G4,B.mean=j4,B.meanBy=q4,B.min=z4,B.minBy=H4,B.stubArray=sc,B.stubFalse=oc,B.stubObject=I4,B.stubString=P4,B.stubTrue=N4,B.multiply=V4,B.nth=o5,B.noConflict=w4,B.noop=ic,B.now=Da,B.pad=WF,B.padEnd=XF,B.padStart=KF,B.parseInt=YF,B.random=UF,B.reduce=uL,B.reduceRight=fL,B.repeat=ZF,B.replace=QF,B.result=RF,B.round=W4,B.runInContext=tt,B.sample=hL,B.size=vL,B.snakeCase=JF,B.some=gL,B.sortedIndex=d5,B.sortedIndexBy=p5,B.sortedIndexOf=v5,B.sortedLastIndex=g5,B.sortedLastIndexBy=m5,B.sortedLastIndexOf=y5,B.startCase=e4,B.startsWith=r4,B.subtract=X4,B.sum=K4,B.sumBy=Y4,B.template=n4,B.times=M4,B.toFinite=nn,B.toInteger=kt,B.toLength=Um,B.toLower=i4,B.toNumber=gr,B.toSafeInteger=iF,B.toString=Qt,B.toUpper=s4,B.trim=o4,B.trimEnd=a4,B.trimStart=l4,B.truncate=u4,B.unescape=f4,B.uniqueId=L4,B.upperCase=c4,B.upperFirst=tc,B.each=Am,B.eachRight=Sm,B.first=xm,nc(B,function(){var s={};return Gr(B,function(a,g){te.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Se(kt(g),0);var E=this.__filtered__&&!a?new Gt(this):this.clone();return E.__filtered__?E.__takeCount__=De(g,E.__takeCount__):E.__views__.push({size:De(g,k),type:s+(E.__dir__<0?"Right":"")}),E},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,E=g==F||g==Q;Gt.prototype[s]=function(N){var U=this.clone();return U.__iteratees__.push({iteratee:St(N,3),type:g}),U.__filtered__=U.__filtered__||E,U}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return ks(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter($a(St(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),N=B[E?"take"+(a=="last"?"Right":""):a],U=E||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,Y=E?[1]:arguments,et=H instanceof Gt,ut=Y[0],ft=et||Mt(H),ht=function(Ut){var qt=N.apply(B,gn([Ut],Y));return E&&mt?qt[0]:qt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(et=ft=!1);var mt=this.__chain__,wt=!!this.__actions__.length,Ot=U&&!mt,Ft=et&&!wt;if(!U&&ft){H=Ft?H:new Gt(this);var Ct=s.apply(H,Y);return Ct.__actions__.push({func:Fa,args:[ht],thisArg:r}),new hr(Ct,mt)}return Ot&&Ft?s.apply(this,Y):(Ct=this.thru(ht),Ot?E?Ct.value()[0]:Ct.value():Ct)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=la[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(E&&!this.__chain__){var U=this.value();return a.apply(Mt(U)?U:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var E=g.name+"";te.call(Gi,E)||(Gi[E]=[]),Gi[E].push({name:a,func:g})}}),Gi[Ra(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=f3,Gt.prototype.reverse=c3,Gt.prototype.value=h3,B.prototype.at=G5,B.prototype.chain=j5,B.prototype.commit=q5,B.prototype.next=z5,B.prototype.plant=V5,B.prototype.reverse=W5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=X5,B.prototype.first=B.prototype.head,Os&&(B.prototype[Os]=H5),B},Di=qM();qn?((qn.exports=Di)._=Di,ef._=Di):Ne._=Di}).call(Ye)}(ea,ea.exports);var _v=ea.exports;const cN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},hN=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(0),[,f]=_t.useState(!1),[h,d]=eN({autoPlay:!1}),p=_t.useRef(null),c=_t.useRef(null),v=_t.useRef(cN),m=_t.useRef(),{tl:y,isDragging:b}=_t.useContext(ti),{frames:_,delays:w}=h,{src:T,startAt:x,endAt:A,frameStartAt:I,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:C,y:P,animation:M,colorCorrection:F={}}}=e,{temperatureFilter:q,sharpnessFilter:Q,hueFilter:z,blurFilter:rt,adjustmentFilter:W}=_s(F),{blurRadius:D=0}=F,k=.1;uN(T,d),mr(ke.PAUSE,Z=>{console.log("pause event",Z),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Et.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Et.useEffect(()=>{if(!Qi(_)){const Z=PP(_,dt=>{const{data:gt,width:xt,height:At}=dt,fe=new Uint8Array(gt);return on.Texture.fromBuffer(fe,xt,At)}),nt=Z.map((dt,gt)=>({texture:dt,time:w[gt]}));n(Z),l(nt);let at=0;w.forEach(dt=>{at+=dt*10}),i(at),v.current.totalDuration=at,v.current.totalFrames=_.length}},[_,w]);const j=_v.debounce(Z=>{if(p.current){let nt=Z===0?0:Z/k;const at=v.current.totalFrames;nt=nt>=at?at:nt,p.current.gotoAndPlay(nt||0),v.current.isPlaying=!0}},50),G=_v.debounce(()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},150),K=Z=>{if(p.current){let nt=Z===0?0:Z/k;const at=v.current.totalFrames;nt=nt>=at?at:nt,p.current.gotoAndPlay(nt||0),v.current.isPlaying=!0}},X=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},$=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},V=Z=>{var at;const nt=Z+((at=m.current)==null?void 0:at.time());p.current&&v.current.isDragging?(j(nt),G(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(j(nt),v.current.isPlaying=!0)},J=()=>{f(!0)};return _t.useEffect(()=>{let Z=Te.context(()=>{});if(c.current&&y.current){const nt={duration:Number(S)-Number(I),onStart:K,onComplete:X,onStartParams:[I,S],onCompleteParams:[],onInterrupt:$,onUpdate:V,onUpdateParams:[I,S]};m.current&&m.current.kill(),Z=Te.context(()=>{m.current=Te.from(c.current,nt,I),y.current.add(m.current,x)})}return()=>{m.current&&(m.current.kill(),Te.killTweensOf(m.current)),Z.revert(),c.current&&c.current.destroy()}},[M,x,A,I,S]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,isGif:!0,children:ee.jsx(ye.Container,{ref:c,children:r&&r.length>0&&ee.jsx(yv,{x:C,y:P,width:L,height:R,animationSpeed:1,loop:O,textures:o,onComplete:J,onFrameChange:Z=>u(Z),anchor:.5,forwardRef:p,filters:[q,Q,z,W,...D>0?[rt]:[]]})})})});var bv={exports:{}};/*!
1950
1950
  * Quill Editor v1.3.7
1951
1951
  * https://quilljs.com/
1952
1952
  * Copyright (c) 2014, Jason Chen
@@ -1955,8 +1955,8 @@ function print() { __p += __j.call(arguments, '') }
1955
1955
  `;for(var v=f.iterator(this.ops),m=new d,y=0;v.hasNext();){if(v.peekType()!=="insert")return;var b=v.peek(),_=f.length(b)-v.peekLength(),w=typeof b.insert=="string"?b.insert.indexOf(c,_)-_:-1;if(w<0)m.push(v.next());else if(w>0)m.push(v.next(w));else{if(p(m,v.next(1).attributes||{},y)===!1)return;y+=1,m=new d}}m.length()>0&&p(m,{},y)},d.prototype.transform=function(p,c){if(c=!!c,typeof p=="number")return this.transformPosition(p,c);for(var v=f.iterator(this.ops),m=f.iterator(p.ops),y=new d;v.hasNext()||m.hasNext();)if(v.peekType()==="insert"&&(c||m.peekType()!=="insert"))y.retain(f.length(v.next()));else if(m.peekType()==="insert")y.push(m.next());else{var b=Math.min(v.peekLength(),m.peekLength()),_=v.next(b),w=m.next(b);if(_.delete)continue;w.delete?y.push(w):y.retain(b,f.attributes.transform(_.attributes,w.attributes,c))}return y.chop()},d.prototype.transformPosition=function(p,c){c=!!c;for(var v=f.iterator(this.ops),m=0;v.hasNext()&&m<=p;){var y=v.peekLength(),b=v.peekType();if(v.next(),b==="delete"){p-=Math.min(y,p-m);continue}else b==="insert"&&(m<p||!c)&&(p+=y);m+=y}return p},r.exports=d},function(r,n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(v){return typeof Array.isArray=="function"?Array.isArray(v):o.call(v)==="[object Array]"},h=function(v){if(!v||o.call(v)!=="[object Object]")return!1;var m=i.call(v,"constructor"),y=v.constructor&&v.constructor.prototype&&i.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!m&&!y)return!1;var b;for(b in v);return typeof b>"u"||i.call(v,b)},d=function(v,m){l&&m.name==="__proto__"?l(v,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):v[m.name]=m.newValue},p=function(v,m){if(m==="__proto__")if(i.call(v,m)){if(u)return u(v,m).value}else return;return v[m]};r.exports=function c(){var v,m,y,b,_,w,T=arguments[0],x=1,A=arguments.length,I=!1;for(typeof T=="boolean"&&(I=T,T=arguments[1]||{},x=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});x<A;++x)if(v=arguments[x],v!=null)for(m in v)y=p(T,m),b=p(v,m),T!==b&&(I&&b&&(h(b)||(_=f(b)))?(_?(_=!1,w=y&&f(y)?y:[]):w=y&&h(y)?y:{},d(T,{name:m,newValue:c(I,w,b)})):typeof b<"u"&&d(T,{name:m,newValue:b}));return T}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var o=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),l=function C(P,M,F){P===null&&(P=Function.prototype);var q=Object.getOwnPropertyDescriptor(P,M);if(q===void 0){var Q=Object.getPrototypeOf(P);return Q===null?void 0:C(Q,M,F)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(F)}},u=i(3),f=T(u),h=i(2),d=T(h),p=i(0),c=T(p),v=i(16),m=T(v),y=i(6),b=T(y),_=i(7),w=T(_);function T(C){return C&&C.__esModule?C:{default:C}}function x(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function A(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function I(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var S=1,O=function(C){I(P,C);function P(){return x(this,P),A(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return o(P,[{key:"attach",value:function(){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(F,q){var Q=c.default.query(F,c.default.Scope.BLOCK_ATTRIBUTE);Q!=null&&this.attributes.attribute(Q,q)}},{key:"formatAt",value:function(F,q,Q,z){this.format(Q,z)}},{key:"insertAt",value:function(F,q,Q){if(typeof q=="string"&&q.endsWith(`
1956
1956
  `)){var z=c.default.create(L.blotName);this.parent.insertBefore(z,F===0?this:this.next),z.insertAt(0,q.slice(0,-1))}else l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,Q)}}]),P}(c.default.Embed);O.scope=c.default.Scope.BLOCK_BLOT;var L=function(C){I(P,C);function P(M){x(this,P);var F=A(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M));return F.cache={},F}return o(P,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(c.default.Leaf).reduce(function(F,q){return q.length()===0?F:F.insert(q.value(),R(q))},new d.default).insert(`
1957
1957
  `,R(this))),this.cache.delta}},{key:"deleteAt",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"deleteAt",this).call(this,F,q),this.cache={}}},{key:"formatAt",value:function(F,q,Q,z){q<=0||(c.default.query(Q,c.default.Scope.BLOCK)?F+q===this.length()&&this.format(Q,z):l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"formatAt",this).call(this,F,Math.min(q,this.length()-F-1),Q,z),this.cache={})}},{key:"insertAt",value:function(F,q,Q){if(Q!=null)return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,Q);if(q.length!==0){var z=q.split(`
1958
- `),rt=z.shift();rt.length>0&&(F<this.length()-1||this.children.tail==null?l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,Math.min(F,this.length()-1),rt):this.children.tail.insertAt(this.children.tail.length(),rt),this.cache={});var W=this;z.reduce(function(U,k){return W=W.split(U,!0),W.insertAt(0,k),k.length},F+rt.length)}}},{key:"insertBefore",value:function(F,q){var Q=this.children.head;l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,F,q),Q instanceof m.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"moveChildren",this).call(this,F,q),this.cache={}}},{key:"optimize",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,F),this.cache={}}},{key:"path",value:function(F){return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,F,!0)}},{key:"removeChild",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"removeChild",this).call(this,F),this.cache={}}},{key:"split",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(F===0||F>=this.length()-S)){var Q=this.clone();return F===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var z=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"split",this).call(this,F,q);return this.cache={},z}}}]),P}(c.default.Block);L.blotName="block",L.tagName="P",L.defaultChild="break",L.allowedChildren=[b.default,c.default.Embed,w.default];function R(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(P=(0,f.default)(P,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?P:R(C.parent,P)}n.bubbleFormats=R,n.BlockEmbed=O,n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var j=[],G=!0,K=!1,X=void 0;try{for(var $=U[Symbol.iterator](),V;!(G=(V=$.next()).done)&&(j.push(V.value),!(k&&j.length===k));G=!0);}catch(Z){K=!0,X=Z}finally{try{!G&&$.return&&$.return()}finally{if(K)throw X}}return j}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var j=0;j<k.length;j++){var G=k[j];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(U,G.key,G)}}return function(U,k,j){return k&&W(U.prototype,k),j&&W(U,j),U}}();i(50);var f=i(2),h=R(f),d=i(14),p=R(d),c=i(8),v=R(c),m=i(9),y=R(m),b=i(0),_=R(b),w=i(15),T=R(w),x=i(3),A=R(x),I=i(10),S=R(I),O=i(34),L=R(O);function R(W){return W&&W.__esModule?W:{default:W}}function C(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function P(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var M=(0,S.default)("quill"),F=function(){u(W,null,[{key:"debug",value:function(k){k===!0&&(k="log"),S.default.level(k)}},{key:"find",value:function(k){return k.__quill||_.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&M.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var X=k.attrName||k.blotName;typeof X=="string"?this.register("formats/"+X,k,j):Object.keys(k).forEach(function($){G.register($,k[$],j)})}else this.imports[k]!=null&&!K&&M.warn("Overwriting "+k+" with",j),this.imports[k]=j,(k.startsWith("blots/")||k.startsWith("formats/"))&&j.blotName!=="abstract"?_.default.register(j):k.startsWith("modules")&&typeof j.register=="function"&&j.register()}}]);function W(U){var k=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(P(this,W),this.options=q(U,j),this.container=this.options.container,this.container==null)return M.error("Invalid Quill container",U);this.options.debug&&W.debug(this.options.debug);var G=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new v.default,this.scroll=_.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.default(this.scroll),this.selection=new T.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(X){X===v.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(X,$){var V=k.selection.lastRange,Z=V&&V.length===0?V.index:void 0;Q.call(k,function(){return k.editor.update(null,$,Z)},X)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+G+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return u(W,[{key:"addContainer",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var G=k;k=document.createElement("div"),k.classList.add(G)}return this.container.insertBefore(k,j),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,j,G){var K=this,X=z(k,j,G),$=l(X,4);return k=$[0],j=$[1],G=$[3],Q.call(this,function(){return K.editor.deleteText(k,j)},G,k,-1*j)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;return Q.call(this,function(){var X=G.getSelection(!0),$=new h.default;if(X==null)return $;if(_.default.query(k,_.default.Scope.BLOCK))$=G.editor.formatLine(X.index,X.length,C({},k,j));else{if(X.length===0)return G.selection.format(k,j),$;$=G.editor.formatText(X.index,X.length,C({},k,j))}return G.setSelection(X,v.default.sources.SILENT),$},K)}},{key:"formatLine",value:function(k,j,G,K,X){var $=this,V=void 0,Z=z(k,j,G,K,X),J=l(Z,4);return k=J[0],j=J[1],V=J[2],X=J[3],Q.call(this,function(){return $.editor.formatLine(k,j,V)},X,k,0)}},{key:"formatText",value:function(k,j,G,K,X){var $=this,V=void 0,Z=z(k,j,G,K,X),J=l(Z,4);return k=J[0],j=J[1],V=J[2],X=J[3],Q.call(this,function(){return $.editor.formatText(k,j,V)},X,k,0)}},{key:"getBounds",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=void 0;typeof k=="number"?G=this.selection.getBounds(k,j):G=this.selection.getBounds(k.index,k.length);var K=this.container.getBoundingClientRect();return{bottom:G.bottom-K.top,height:G.height,left:G.left-K.left,right:G.right-K.left,top:G.top-K.top,width:G.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,G=z(k,j),K=l(G,2);return k=K[0],j=K[1],this.editor.getContents(k,j)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,j):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,j)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,G=z(k,j),K=l(G,2);return k=K[0],j=K[1],this.editor.getText(k,j)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,j,G){var K=this,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return Q.call(this,function(){return K.editor.insertEmbed(k,j,G)},X,k)}},{key:"insertText",value:function(k,j,G,K,X){var $=this,V=void 0,Z=z(k,0,G,K,X),J=l(Z,4);return k=J[0],V=J[2],X=J[3],Q.call(this,function(){return $.editor.insertText(k,j,V)},X,k,j.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,j,G){this.clipboard.dangerouslyPasteHTML(k,j,G)}},{key:"removeFormat",value:function(k,j,G){var K=this,X=z(k,j,G),$=l(X,4);return k=$[0],j=$[1],G=$[3],Q.call(this,function(){return K.editor.removeFormat(k,j)},G,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var j=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Q.call(this,function(){k=new h.default(k);var K=j.getLength(),X=j.editor.deleteText(0,K),$=j.editor.applyDelta(k),V=$.ops[$.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
1959
- `&&(j.editor.deleteText(j.getLength()-1,1),$.delete(1));var Z=X.compose($);return Z},G)}},{key:"setSelection",value:function(k,j,G){if(k==null)this.selection.setRange(null,j||W.sources.API);else{var K=z(k,j,G),X=l(K,4);k=X[0],j=X[1],G=X[3],this.selection.setRange(new w.Range(k,j),G),G!==v.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API,G=new h.default().insert(k);return this.setContents(G,j)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,j=this.scroll.update(k);return this.selection.update(k),j}},{key:"updateContents",value:function(k){var j=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Q.call(this,function(){return k=new h.default(k),j.editor.applyDelta(k,G)},G,!0)}}]),W}();F.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},F.events=v.default.events,F.sources=v.default.sources,F.version="1.3.7",F.imports={delta:h.default,parchment:_.default,"core/module":y.default,"core/theme":L.default};function q(W,U){if(U=(0,A.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},U),!U.theme||U.theme===F.DEFAULTS.theme)U.theme=L.default;else if(U.theme=F.import("themes/"+U.theme),U.theme==null)throw new Error("Invalid theme "+U.theme+". Did you register it?");var k=(0,A.default)(!0,{},U.theme.DEFAULTS);[k,U].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(X){K.modules[X]===!0&&(K.modules[X]={})})});var j=Object.keys(k.modules).concat(Object.keys(U.modules)),G=j.reduce(function(K,X){var $=F.import("modules/"+X);return $==null?M.error("Cannot load "+X+" module. Are you sure you registered it?"):K[X]=$.DEFAULTS||{},K},{});return U.modules!=null&&U.modules.toolbar&&U.modules.toolbar.constructor!==Object&&(U.modules.toolbar={container:U.modules.toolbar}),U=(0,A.default)(!0,{},F.DEFAULTS,{modules:G},k,U),["bounds","container","scrollingContainer"].forEach(function(K){typeof U[K]=="string"&&(U[K]=document.querySelector(U[K]))}),U.modules=Object.keys(U.modules).reduce(function(K,X){return U.modules[X]&&(K[X]=U.modules[X]),K},{}),U}function Q(W,U,k,j){if(this.options.strict&&!this.isEnabled()&&U===v.default.sources.USER)return new h.default;var G=k==null?null:this.getSelection(),K=this.editor.delta,X=W();if(G!=null&&(k===!0&&(k=G.index),j==null?G=rt(G,X,U):j!==0&&(G=rt(G,k,j,U)),this.setSelection(G,v.default.sources.SILENT)),X.length()>0){var $,V=[v.default.events.TEXT_CHANGE,X,K,U];if(($=this.emitter).emit.apply($,[v.default.events.EDITOR_CHANGE].concat(V)),U!==v.default.sources.SILENT){var Z;(Z=this.emitter).emit.apply(Z,V)}}return X}function z(W,U,k,j,G){var K={};return typeof W.index=="number"&&typeof W.length=="number"?typeof U!="number"?(G=j,j=k,k=U,U=W.length,W=W.index):(U=W.length,W=W.index):typeof U!="number"&&(G=j,j=k,k=U,U=0),(typeof k>"u"?"undefined":o(k))==="object"?(K=k,G=j):typeof k=="string"&&(j!=null?K[k]=j:G=k),G=G||v.default.sources.API,[W,U,K,G]}function rt(W,U,k,j){if(W==null)return null;var G=void 0,K=void 0;if(U instanceof h.default){var X=[W.index,W.index+W.length].map(function(J){return U.transformPosition(J,j!==v.default.sources.USER)}),$=l(X,2);G=$[0],K=$[1]}else{var V=[W.index,W.index+W.length].map(function(J){return J<U||J===U&&j===v.default.sources.USER?J:k>=0?J+k:Math.max(U,J+k)}),Z=l(V,2);G=Z[0],K=Z[1]}return new w.Range(G,K-G)}n.expandConfig=q,n.overload=z,n.default=F},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(7),f=p(u),h=i(0),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function v(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function m(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=function(b){m(_,b);function _(){return c(this,_),v(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"formatAt",value:function(T,x,A,I){if(_.compare(this.statics.blotName,A)<0&&d.default.query(A,d.default.Scope.BLOT)){var S=this.isolate(T,x);I&&S.wrap(A,I)}else l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,T,x,A,I)}},{key:"optimize",value:function(T){if(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,T),this.parent instanceof _&&_.compare(this.statics.blotName,this.parent.statics.blotName)>0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(T,x){var A=_.order.indexOf(T),I=_.order.indexOf(x);return A>=0||I>=0?A-I:T===x?0:T<x?-1:1}}]),_}(d.default.Inline);y.allowedChildren=[y,d.default.Embed,f.default],y.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default.Text);n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function w(T,x){for(var A=0;A<x.length;A++){var I=x[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,x,A){return x&&w(T.prototype,x),A&&w(T,A),T}}(),l=function w(T,x,A){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,x);if(I===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:w(S,x,A)}else{if("value"in I)return I.value;var O=I.get;return O===void 0?void 0:O.call(A)}},u=i(54),f=p(u),h=i(10),d=p(h);function p(w){return w&&w.__esModule?w:{default:w}}function c(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function v(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function m(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var y=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(w){document.addEventListener(w,function(){for(var T=arguments.length,x=Array(T),A=0;A<T;A++)x[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(I){if(I.__quill&&I.__quill.emitter){var S;(S=I.__quill.emitter).handleDOM.apply(S,x)}})})});var _=function(w){m(T,w);function T(){c(this,T);var x=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return x.listeners={},x.on("error",y.error),x}return o(T,[{key:"emit",value:function(){y.log.apply(y,arguments),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var I=arguments.length,S=Array(I>1?I-1:0),O=1;O<I;O++)S[O-1]=arguments[O];(this.listeners[A.type]||[]).forEach(function(L){var R=L.node,C=L.handler;(A.target===R||R.contains(A.target))&&C.apply(void 0,[A].concat(S))})}},{key:"listenDOM",value:function(A,I,S){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:I,handler:S})}}]),T}(f.default);_.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},_.sources={API:"api",SILENT:"silent",USER:"user"},n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,u),this.quill=f,this.options=h};l.DEFAULTS={},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function u(h){if(o.indexOf(h)<=o.indexOf(l)){for(var d,p=arguments.length,c=Array(p>1?p-1:0),v=1;v<p;v++)c[v-1]=arguments[v];(d=console)[h].apply(d,c)}}function f(h){return o.reduce(function(d,p){return d[p]=u.bind(console,p,h),d},{})}u.level=f.level=function(h){l=h},n.default=f},function(r,n,i){var o=Array.prototype.slice,l=i(52),u=i(53),f=r.exports=function(c,v,m){return m||(m={}),c===v?!0:c instanceof Date&&v instanceof Date?c.getTime()===v.getTime():!c||!v||typeof c!="object"&&typeof v!="object"?m.strict?c===v:c==v:p(c,v,m)};function h(c){return c==null}function d(c){return!(!c||typeof c!="object"||typeof c.length!="number"||typeof c.copy!="function"||typeof c.slice!="function"||c.length>0&&typeof c[0]!="number")}function p(c,v,m){var y,b;if(h(c)||h(v)||c.prototype!==v.prototype)return!1;if(u(c))return u(v)?(c=o.call(c),v=o.call(v),f(c,v,m)):!1;if(d(c)){if(!d(v)||c.length!==v.length)return!1;for(y=0;y<c.length;y++)if(c[y]!==v[y])return!1;return!0}try{var _=l(c),w=l(v)}catch{return!1}if(_.length!=w.length)return!1;for(_.sort(),w.sort(),y=_.length-1;y>=0;y--)if(_[y]!=w[y])return!1;for(y=_.length-1;y>=0;y--)if(b=_[y],!f(c[b],v[b],m))return!1;return typeof c==typeof v}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var p=o.Scope.TYPE&o.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&o.Scope.LEVEL|p:this.scope=o.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return u.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},u.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},u.prototype.canAdd=function(f,h){var d=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},u.prototype.remove=function(f){f.removeAttribute(this.keyName)},u.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Q;!(P=(Q=q.next()).done)&&(C.push(Q.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=function O(L,R,C){L===null&&(L=Function.prototype);var P=Object.getOwnPropertyDescriptor(L,R);if(P===void 0){var M=Object.getPrototypeOf(L);return M===null?void 0:O(M,R,C)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(C)}},f=i(2),h=w(f),d=i(0),p=w(d),c=i(4),v=w(c),m=i(6),y=w(m),b=i(7),_=w(b);function w(O){return O&&O.__esModule?O:{default:O}}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function x(O,L){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:O}function A(O,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);O.prototype=Object.create(L&&L.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(O,L):O.__proto__=L)}var I=function(O){A(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return L}(y.default);I.blotName="code",I.tagName="CODE";var S=function(O){A(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return l(L,[{key:"delta",value:function(){var C=this,P=this.domNode.textContent;return P.endsWith(`
1958
+ `),rt=z.shift();rt.length>0&&(F<this.length()-1||this.children.tail==null?l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,Math.min(F,this.length()-1),rt):this.children.tail.insertAt(this.children.tail.length(),rt),this.cache={});var W=this;z.reduce(function(D,k){return W=W.split(D,!0),W.insertAt(0,k),k.length},F+rt.length)}}},{key:"insertBefore",value:function(F,q){var Q=this.children.head;l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,F,q),Q instanceof m.default&&Q.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"moveChildren",this).call(this,F,q),this.cache={}}},{key:"optimize",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,F),this.cache={}}},{key:"path",value:function(F){return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,F,!0)}},{key:"removeChild",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"removeChild",this).call(this,F),this.cache={}}},{key:"split",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(F===0||F>=this.length()-S)){var Q=this.clone();return F===0?(this.parent.insertBefore(Q,this),this):(this.parent.insertBefore(Q,this.next),Q)}else{var z=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"split",this).call(this,F,q);return this.cache={},z}}}]),P}(c.default.Block);L.blotName="block",L.tagName="P",L.defaultChild="break",L.allowedChildren=[b.default,c.default.Embed,w.default];function R(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(P=(0,f.default)(P,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?P:R(C.parent,P)}n.bubbleFormats=R,n.BlockEmbed=O,n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(D,k){var j=[],G=!0,K=!1,X=void 0;try{for(var $=D[Symbol.iterator](),V;!(G=(V=$.next()).done)&&(j.push(V.value),!(k&&j.length===k));G=!0);}catch(J){K=!0,X=J}finally{try{!G&&$.return&&$.return()}finally{if(K)throw X}}return j}return function(D,k){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return W(D,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(D,k){for(var j=0;j<k.length;j++){var G=k[j];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(D,G.key,G)}}return function(D,k,j){return k&&W(D.prototype,k),j&&W(D,j),D}}();i(50);var f=i(2),h=R(f),d=i(14),p=R(d),c=i(8),v=R(c),m=i(9),y=R(m),b=i(0),_=R(b),w=i(15),T=R(w),x=i(3),A=R(x),I=i(10),S=R(I),O=i(34),L=R(O);function R(W){return W&&W.__esModule?W:{default:W}}function C(W,D,k){return D in W?Object.defineProperty(W,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[D]=k,W}function P(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}var M=(0,S.default)("quill"),F=function(){u(W,null,[{key:"debug",value:function(k){k===!0&&(k="log"),S.default.level(k)}},{key:"find",value:function(k){return k.__quill||_.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&M.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var X=k.attrName||k.blotName;typeof X=="string"?this.register("formats/"+X,k,j):Object.keys(k).forEach(function($){G.register($,k[$],j)})}else this.imports[k]!=null&&!K&&M.warn("Overwriting "+k+" with",j),this.imports[k]=j,(k.startsWith("blots/")||k.startsWith("formats/"))&&j.blotName!=="abstract"?_.default.register(j):k.startsWith("modules")&&typeof j.register=="function"&&j.register()}}]);function W(D){var k=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(P(this,W),this.options=q(D,j),this.container=this.options.container,this.container==null)return M.error("Invalid Quill container",D);this.options.debug&&W.debug(this.options.debug);var G=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new v.default,this.scroll=_.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.default(this.scroll),this.selection=new T.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(X){X===v.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(X,$){var V=k.selection.lastRange,J=V&&V.length===0?V.index:void 0;Q.call(k,function(){return k.editor.update(null,$,J)},X)});var K=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+G+"<p><br></p></div>");this.setContents(K),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return u(W,[{key:"addContainer",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var G=k;k=document.createElement("div"),k.classList.add(G)}return this.container.insertBefore(k,j),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,j,G){var K=this,X=z(k,j,G),$=l(X,4);return k=$[0],j=$[1],G=$[3],Q.call(this,function(){return K.editor.deleteText(k,j)},G,k,-1*j)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;return Q.call(this,function(){var X=G.getSelection(!0),$=new h.default;if(X==null)return $;if(_.default.query(k,_.default.Scope.BLOCK))$=G.editor.formatLine(X.index,X.length,C({},k,j));else{if(X.length===0)return G.selection.format(k,j),$;$=G.editor.formatText(X.index,X.length,C({},k,j))}return G.setSelection(X,v.default.sources.SILENT),$},K)}},{key:"formatLine",value:function(k,j,G,K,X){var $=this,V=void 0,J=z(k,j,G,K,X),Z=l(J,4);return k=Z[0],j=Z[1],V=Z[2],X=Z[3],Q.call(this,function(){return $.editor.formatLine(k,j,V)},X,k,0)}},{key:"formatText",value:function(k,j,G,K,X){var $=this,V=void 0,J=z(k,j,G,K,X),Z=l(J,4);return k=Z[0],j=Z[1],V=Z[2],X=Z[3],Q.call(this,function(){return $.editor.formatText(k,j,V)},X,k,0)}},{key:"getBounds",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=void 0;typeof k=="number"?G=this.selection.getBounds(k,j):G=this.selection.getBounds(k.index,k.length);var K=this.container.getBoundingClientRect();return{bottom:G.bottom-K.top,height:G.height,left:G.left-K.left,right:G.right-K.left,top:G.top-K.top,width:G.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,G=z(k,j),K=l(G,2);return k=K[0],j=K[1],this.editor.getContents(k,j)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,j):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,j)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,G=z(k,j),K=l(G,2);return k=K[0],j=K[1],this.editor.getText(k,j)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,j,G){var K=this,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return Q.call(this,function(){return K.editor.insertEmbed(k,j,G)},X,k)}},{key:"insertText",value:function(k,j,G,K,X){var $=this,V=void 0,J=z(k,0,G,K,X),Z=l(J,4);return k=Z[0],V=Z[2],X=Z[3],Q.call(this,function(){return $.editor.insertText(k,j,V)},X,k,j.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,j,G){this.clipboard.dangerouslyPasteHTML(k,j,G)}},{key:"removeFormat",value:function(k,j,G){var K=this,X=z(k,j,G),$=l(X,4);return k=$[0],j=$[1],G=$[3],Q.call(this,function(){return K.editor.removeFormat(k,j)},G,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var j=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Q.call(this,function(){k=new h.default(k);var K=j.getLength(),X=j.editor.deleteText(0,K),$=j.editor.applyDelta(k),V=$.ops[$.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
1959
+ `&&(j.editor.deleteText(j.getLength()-1,1),$.delete(1));var J=X.compose($);return J},G)}},{key:"setSelection",value:function(k,j,G){if(k==null)this.selection.setRange(null,j||W.sources.API);else{var K=z(k,j,G),X=l(K,4);k=X[0],j=X[1],G=X[3],this.selection.setRange(new w.Range(k,j),G),G!==v.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API,G=new h.default().insert(k);return this.setContents(G,j)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,j=this.scroll.update(k);return this.selection.update(k),j}},{key:"updateContents",value:function(k){var j=this,G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Q.call(this,function(){return k=new h.default(k),j.editor.applyDelta(k,G)},G,!0)}}]),W}();F.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},F.events=v.default.events,F.sources=v.default.sources,F.version="1.3.7",F.imports={delta:h.default,parchment:_.default,"core/module":y.default,"core/theme":L.default};function q(W,D){if(D=(0,A.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===F.DEFAULTS.theme)D.theme=L.default;else if(D.theme=F.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var k=(0,A.default)(!0,{},D.theme.DEFAULTS);[k,D].forEach(function(K){K.modules=K.modules||{},Object.keys(K.modules).forEach(function(X){K.modules[X]===!0&&(K.modules[X]={})})});var j=Object.keys(k.modules).concat(Object.keys(D.modules)),G=j.reduce(function(K,X){var $=F.import("modules/"+X);return $==null?M.error("Cannot load "+X+" module. Are you sure you registered it?"):K[X]=$.DEFAULTS||{},K},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,A.default)(!0,{},F.DEFAULTS,{modules:G},k,D),["bounds","container","scrollingContainer"].forEach(function(K){typeof D[K]=="string"&&(D[K]=document.querySelector(D[K]))}),D.modules=Object.keys(D.modules).reduce(function(K,X){return D.modules[X]&&(K[X]=D.modules[X]),K},{}),D}function Q(W,D,k,j){if(this.options.strict&&!this.isEnabled()&&D===v.default.sources.USER)return new h.default;var G=k==null?null:this.getSelection(),K=this.editor.delta,X=W();if(G!=null&&(k===!0&&(k=G.index),j==null?G=rt(G,X,D):j!==0&&(G=rt(G,k,j,D)),this.setSelection(G,v.default.sources.SILENT)),X.length()>0){var $,V=[v.default.events.TEXT_CHANGE,X,K,D];if(($=this.emitter).emit.apply($,[v.default.events.EDITOR_CHANGE].concat(V)),D!==v.default.sources.SILENT){var J;(J=this.emitter).emit.apply(J,V)}}return X}function z(W,D,k,j,G){var K={};return typeof W.index=="number"&&typeof W.length=="number"?typeof D!="number"?(G=j,j=k,k=D,D=W.length,W=W.index):(D=W.length,W=W.index):typeof D!="number"&&(G=j,j=k,k=D,D=0),(typeof k>"u"?"undefined":o(k))==="object"?(K=k,G=j):typeof k=="string"&&(j!=null?K[k]=j:G=k),G=G||v.default.sources.API,[W,D,K,G]}function rt(W,D,k,j){if(W==null)return null;var G=void 0,K=void 0;if(D instanceof h.default){var X=[W.index,W.index+W.length].map(function(Z){return D.transformPosition(Z,j!==v.default.sources.USER)}),$=l(X,2);G=$[0],K=$[1]}else{var V=[W.index,W.index+W.length].map(function(Z){return Z<D||Z===D&&j===v.default.sources.USER?Z:k>=0?Z+k:Math.max(D,Z+k)}),J=l(V,2);G=J[0],K=J[1]}return new w.Range(G,K-G)}n.expandConfig=q,n.overload=z,n.default=F},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(7),f=p(u),h=i(0),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function v(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function m(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=function(b){m(_,b);function _(){return c(this,_),v(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"formatAt",value:function(T,x,A,I){if(_.compare(this.statics.blotName,A)<0&&d.default.query(A,d.default.Scope.BLOT)){var S=this.isolate(T,x);I&&S.wrap(A,I)}else l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"formatAt",this).call(this,T,x,A,I)}},{key:"optimize",value:function(T){if(l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,T),this.parent instanceof _&&_.compare(this.statics.blotName,this.parent.statics.blotName)>0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(T,x){var A=_.order.indexOf(T),I=_.order.indexOf(x);return A>=0||I>=0?A-I:T===x?0:T<x?-1:1}}]),_}(d.default.Inline);y.allowedChildren=[y,d.default.Embed,f.default],y.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default.Text);n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function w(T,x){for(var A=0;A<x.length;A++){var I=x[A];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,x,A){return x&&w(T.prototype,x),A&&w(T,A),T}}(),l=function w(T,x,A){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,x);if(I===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:w(S,x,A)}else{if("value"in I)return I.value;var O=I.get;return O===void 0?void 0:O.call(A)}},u=i(54),f=p(u),h=i(10),d=p(h);function p(w){return w&&w.__esModule?w:{default:w}}function c(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function v(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function m(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var y=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(w){document.addEventListener(w,function(){for(var T=arguments.length,x=Array(T),A=0;A<T;A++)x[A]=arguments[A];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(I){if(I.__quill&&I.__quill.emitter){var S;(S=I.__quill.emitter).handleDOM.apply(S,x)}})})});var _=function(w){m(T,w);function T(){c(this,T);var x=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return x.listeners={},x.on("error",y.error),x}return o(T,[{key:"emit",value:function(){y.log.apply(y,arguments),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(A){for(var I=arguments.length,S=Array(I>1?I-1:0),O=1;O<I;O++)S[O-1]=arguments[O];(this.listeners[A.type]||[]).forEach(function(L){var R=L.node,C=L.handler;(A.target===R||R.contains(A.target))&&C.apply(void 0,[A].concat(S))})}},{key:"listenDOM",value:function(A,I,S){this.listeners[A]||(this.listeners[A]=[]),this.listeners[A].push({node:I,handler:S})}}]),T}(f.default);_.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},_.sources={API:"api",SILENT:"silent",USER:"user"},n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,u),this.quill=f,this.options=h};l.DEFAULTS={},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function u(h){if(o.indexOf(h)<=o.indexOf(l)){for(var d,p=arguments.length,c=Array(p>1?p-1:0),v=1;v<p;v++)c[v-1]=arguments[v];(d=console)[h].apply(d,c)}}function f(h){return o.reduce(function(d,p){return d[p]=u.bind(console,p,h),d},{})}u.level=f.level=function(h){l=h},n.default=f},function(r,n,i){var o=Array.prototype.slice,l=i(52),u=i(53),f=r.exports=function(c,v,m){return m||(m={}),c===v?!0:c instanceof Date&&v instanceof Date?c.getTime()===v.getTime():!c||!v||typeof c!="object"&&typeof v!="object"?m.strict?c===v:c==v:p(c,v,m)};function h(c){return c==null}function d(c){return!(!c||typeof c!="object"||typeof c.length!="number"||typeof c.copy!="function"||typeof c.slice!="function"||c.length>0&&typeof c[0]!="number")}function p(c,v,m){var y,b;if(h(c)||h(v)||c.prototype!==v.prototype)return!1;if(u(c))return u(v)?(c=o.call(c),v=o.call(v),f(c,v,m)):!1;if(d(c)){if(!d(v)||c.length!==v.length)return!1;for(y=0;y<c.length;y++)if(c[y]!==v[y])return!1;return!0}try{var _=l(c),w=l(v)}catch{return!1}if(_.length!=w.length)return!1;for(_.sort(),w.sort(),y=_.length-1;y>=0;y--)if(_[y]!=w[y])return!1;for(y=_.length-1;y>=0;y--)if(b=_[y],!f(c[b],v[b],m))return!1;return typeof c==typeof v}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var p=o.Scope.TYPE&o.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&o.Scope.LEVEL|p:this.scope=o.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return u.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},u.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},u.prototype.canAdd=function(f,h){var d=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},u.prototype.remove=function(f){f.removeAttribute(this.keyName)},u.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Q;!(P=(Q=q.next()).done)&&(C.push(Q.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=function O(L,R,C){L===null&&(L=Function.prototype);var P=Object.getOwnPropertyDescriptor(L,R);if(P===void 0){var M=Object.getPrototypeOf(L);return M===null?void 0:O(M,R,C)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(C)}},f=i(2),h=w(f),d=i(0),p=w(d),c=i(4),v=w(c),m=i(6),y=w(m),b=i(7),_=w(b);function w(O){return O&&O.__esModule?O:{default:O}}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function x(O,L){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:O}function A(O,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);O.prototype=Object.create(L&&L.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(O,L):O.__proto__=L)}var I=function(O){A(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return L}(y.default);I.blotName="code",I.tagName="CODE";var S=function(O){A(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return l(L,[{key:"delta",value:function(){var C=this,P=this.domNode.textContent;return P.endsWith(`
1960
1960
  `)&&(P=P.slice(0,-1)),P.split(`
1961
1961
  `).reduce(function(M,F){return M.insert(F).insert(`
1962
1962
  `,C.formats())},new h.default)}},{key:"format",value:function(C,P){if(!(C===this.statics.blotName&&P)){var M=this.descendant(_.default,this.length()-1),F=o(M,1),q=F[0];q!=null&&q.deleteAt(q.length()-1,1),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"format",this).call(this,C,P)}}},{key:"formatAt",value:function(C,P,M,F){if(P!==0&&!(p.default.query(M,p.default.Scope.BLOCK)==null||M===this.statics.blotName&&F===this.statics.formats(this.domNode))){var q=this.newlineIndex(C);if(!(q<0||q>=C+P)){var Q=this.newlineIndex(C,!0)+1,z=q-Q+1,rt=this.isolate(Q,z),W=rt.next;rt.format(M,F),W instanceof L&&W.formatAt(0,C-Q+P-z,M,F)}}}},{key:"insertAt",value:function(C,P,M){if(M==null){var F=this.descendant(_.default,C),q=o(F,2),Q=q[0],z=q[1];Q.insertAt(z,P)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
@@ -1964,26 +1964,26 @@ function print() { __p += __j.call(arguments, '') }
1964
1964
  `);var M=this.domNode.textContent.slice(C).indexOf(`
1965
1965
  `);return M>-1?C+M:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
1966
1966
  `)||this.appendChild(p.default.create("text",`
1967
- `)),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,C);var P=this.next;P!=null&&P.prev===this&&P.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===P.statics.formats(P.domNode)&&(P.optimize(C),P.moveChildren(this),P.remove())}},{key:"replace",value:function(C){u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(P){var M=p.default.find(P);M==null?P.parentNode.removeChild(P):M instanceof p.default.Embed?M.remove():M.unwrap()})}}],[{key:"create",value:function(C){var P=u(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,C);return P.setAttribute("spellcheck",!1),P}},{key:"formats",value:function(){return!0}}]),L}(v.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",n.Code=I,n.default=S},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var j=[],G=!0,K=!1,X=void 0;try{for(var $=U[Symbol.iterator](),V;!(G=(V=$.next()).done)&&(j.push(V.value),!(k&&j.length===k));G=!0);}catch(Z){K=!0,X=Z}finally{try{!G&&$.return&&$.return()}finally{if(K)throw X}}return j}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var j=0;j<k.length;j++){var G=k[j];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(U,G.key,G)}}return function(U,k,j){return k&&W(U.prototype,k),j&&W(U,j),U}}(),f=i(2),h=P(f),d=i(20),p=P(d),c=i(0),v=P(c),m=i(13),y=P(m),b=i(24),_=P(b),w=i(4),T=P(w),x=i(16),A=P(x),I=i(21),S=P(I),O=i(11),L=P(O),R=i(3),C=P(R);function P(W){return W&&W.__esModule?W:{default:W}}function M(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function F(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,Q=function(){function W(U){F(this,W),this.scroll=U,this.delta=this.getDelta()}return u(W,[{key:"applyDelta",value:function(k){var j=this,G=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),k=rt(k),k.reduce(function(X,$){var V=$.retain||$.delete||$.insert.length||1,Z=$.attributes||{};if($.insert!=null){if(typeof $.insert=="string"){var J=$.insert;J.endsWith(`
1968
- `)&&G&&(G=!1,J=J.slice(0,-1)),X>=K&&!J.endsWith(`
1969
- `)&&(G=!0),j.scroll.insertAt(X,J);var nt=j.scroll.line(X),at=l(nt,2),dt=at[0],mt=at[1],xt=(0,C.default)({},(0,w.bubbleFormats)(dt));if(dt instanceof T.default){var Ct=dt.descendant(v.default.Leaf,mt),fe=l(Ct,1),Xt=fe[0];xt=(0,C.default)(xt,(0,w.bubbleFormats)(Xt))}Z=p.default.attributes.diff(xt,Z)||{}}else if(o($.insert)==="object"){var st=Object.keys($.insert)[0];if(st==null)return X;j.scroll.insertAt(X,st,$.insert[st])}K+=V}return Object.keys(Z).forEach(function(lt){j.scroll.formatAt(X,V,lt,Z[lt])}),X+V},0),k.reduce(function(X,$){return typeof $.delete=="number"?(j.scroll.deleteAt(X,$.delete),X):X+($.retain||$.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,j){return this.scroll.deleteAt(k,j),this.update(new h.default().retain(k).delete(j))}},{key:"formatLine",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(X){if(!(G.scroll.whitelist!=null&&!G.scroll.whitelist[X])){var $=G.scroll.lines(k,Math.max(j,1)),V=j;$.forEach(function(Z){var J=Z.length();if(!(Z instanceof y.default))Z.format(X,K[X]);else{var nt=k-Z.offset(G.scroll),at=Z.newlineIndex(nt+V)-nt+1;Z.formatAt(nt,at,X,K[X])}V-=J})}}),this.scroll.optimize(),this.update(new h.default().retain(k).retain(j,(0,S.default)(K)))}},{key:"formatText",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(X){G.scroll.formatAt(k,j,X,K[X])}),this.update(new h.default().retain(k).retain(j,(0,S.default)(K)))}},{key:"getContents",value:function(k,j){return this.delta.slice(k,k+j)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,j){return k.concat(j.delta())},new h.default)}},{key:"getFormat",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=[],K=[];j===0?this.scroll.path(k).forEach(function($){var V=l($,1),Z=V[0];Z instanceof T.default?G.push(Z):Z instanceof v.default.Leaf&&K.push(Z)}):(G=this.scroll.lines(k,j),K=this.scroll.descendants(v.default.Leaf,k,j));var X=[G,K].map(function($){if($.length===0)return{};for(var V=(0,w.bubbleFormats)($.shift());Object.keys(V).length>0;){var Z=$.shift();if(Z==null)return V;V=z((0,w.bubbleFormats)(Z),V)}return V});return C.default.apply(C.default,X)}},{key:"getText",value:function(k,j){return this.getContents(k,j).filter(function(G){return typeof G.insert=="string"}).map(function(G){return G.insert}).join("")}},{key:"insertEmbed",value:function(k,j,G){return this.scroll.insertAt(k,j,G),this.update(new h.default().retain(k).insert(M({},j,G)))}},{key:"insertText",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j=j.replace(/\r\n/g,`
1967
+ `)),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,C);var P=this.next;P!=null&&P.prev===this&&P.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===P.statics.formats(P.domNode)&&(P.optimize(C),P.moveChildren(this),P.remove())}},{key:"replace",value:function(C){u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(P){var M=p.default.find(P);M==null?P.parentNode.removeChild(P):M instanceof p.default.Embed?M.remove():M.unwrap()})}}],[{key:"create",value:function(C){var P=u(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,C);return P.setAttribute("spellcheck",!1),P}},{key:"formats",value:function(){return!0}}]),L}(v.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",n.Code=I,n.default=S},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(D,k){var j=[],G=!0,K=!1,X=void 0;try{for(var $=D[Symbol.iterator](),V;!(G=(V=$.next()).done)&&(j.push(V.value),!(k&&j.length===k));G=!0);}catch(J){K=!0,X=J}finally{try{!G&&$.return&&$.return()}finally{if(K)throw X}}return j}return function(D,k){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return W(D,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(D,k){for(var j=0;j<k.length;j++){var G=k[j];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(D,G.key,G)}}return function(D,k,j){return k&&W(D.prototype,k),j&&W(D,j),D}}(),f=i(2),h=P(f),d=i(20),p=P(d),c=i(0),v=P(c),m=i(13),y=P(m),b=i(24),_=P(b),w=i(4),T=P(w),x=i(16),A=P(x),I=i(21),S=P(I),O=i(11),L=P(O),R=i(3),C=P(R);function P(W){return W&&W.__esModule?W:{default:W}}function M(W,D,k){return D in W?Object.defineProperty(W,D,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[D]=k,W}function F(W,D){if(!(W instanceof D))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,Q=function(){function W(D){F(this,W),this.scroll=D,this.delta=this.getDelta()}return u(W,[{key:"applyDelta",value:function(k){var j=this,G=!1;this.scroll.update();var K=this.scroll.length();return this.scroll.batchStart(),k=rt(k),k.reduce(function(X,$){var V=$.retain||$.delete||$.insert.length||1,J=$.attributes||{};if($.insert!=null){if(typeof $.insert=="string"){var Z=$.insert;Z.endsWith(`
1968
+ `)&&G&&(G=!1,Z=Z.slice(0,-1)),X>=K&&!Z.endsWith(`
1969
+ `)&&(G=!0),j.scroll.insertAt(X,Z);var nt=j.scroll.line(X),at=l(nt,2),dt=at[0],gt=at[1],xt=(0,C.default)({},(0,w.bubbleFormats)(dt));if(dt instanceof T.default){var At=dt.descendant(v.default.Leaf,gt),fe=l(At,1),Xt=fe[0];xt=(0,C.default)(xt,(0,w.bubbleFormats)(Xt))}J=p.default.attributes.diff(xt,J)||{}}else if(o($.insert)==="object"){var st=Object.keys($.insert)[0];if(st==null)return X;j.scroll.insertAt(X,st,$.insert[st])}K+=V}return Object.keys(J).forEach(function(lt){j.scroll.formatAt(X,V,lt,J[lt])}),X+V},0),k.reduce(function(X,$){return typeof $.delete=="number"?(j.scroll.deleteAt(X,$.delete),X):X+($.retain||$.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,j){return this.scroll.deleteAt(k,j),this.update(new h.default().retain(k).delete(j))}},{key:"formatLine",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(K).forEach(function(X){if(!(G.scroll.whitelist!=null&&!G.scroll.whitelist[X])){var $=G.scroll.lines(k,Math.max(j,1)),V=j;$.forEach(function(J){var Z=J.length();if(!(J instanceof y.default))J.format(X,K[X]);else{var nt=k-J.offset(G.scroll),at=J.newlineIndex(nt+V)-nt+1;J.formatAt(nt,at,X,K[X])}V-=Z})}}),this.scroll.optimize(),this.update(new h.default().retain(k).retain(j,(0,S.default)(K)))}},{key:"formatText",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(K).forEach(function(X){G.scroll.formatAt(k,j,X,K[X])}),this.update(new h.default().retain(k).retain(j,(0,S.default)(K)))}},{key:"getContents",value:function(k,j){return this.delta.slice(k,k+j)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,j){return k.concat(j.delta())},new h.default)}},{key:"getFormat",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=[],K=[];j===0?this.scroll.path(k).forEach(function($){var V=l($,1),J=V[0];J instanceof T.default?G.push(J):J instanceof v.default.Leaf&&K.push(J)}):(G=this.scroll.lines(k,j),K=this.scroll.descendants(v.default.Leaf,k,j));var X=[G,K].map(function($){if($.length===0)return{};for(var V=(0,w.bubbleFormats)($.shift());Object.keys(V).length>0;){var J=$.shift();if(J==null)return V;V=z((0,w.bubbleFormats)(J),V)}return V});return C.default.apply(C.default,X)}},{key:"getText",value:function(k,j){return this.getContents(k,j).filter(function(G){return typeof G.insert=="string"}).map(function(G){return G.insert}).join("")}},{key:"insertEmbed",value:function(k,j,G){return this.scroll.insertAt(k,j,G),this.update(new h.default().retain(k).insert(M({},j,G)))}},{key:"insertText",value:function(k,j){var G=this,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j=j.replace(/\r\n/g,`
1970
1970
  `).replace(/\r/g,`
1971
- `),this.scroll.insertAt(k,j),Object.keys(K).forEach(function(X){G.scroll.formatAt(k,j.length,X,K[X])}),this.update(new h.default().retain(k).insert(j,(0,S.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==T.default.blotName||k.children.length>1?!1:k.children.head instanceof A.default}},{key:"removeFormat",value:function(k,j){var G=this.getText(k,j),K=this.scroll.line(k+j),X=l(K,2),$=X[0],V=X[1],Z=0,J=new h.default;$!=null&&($ instanceof y.default?Z=$.newlineIndex(V)-V+1:Z=$.length()-V,J=$.delta().slice(V,V+Z-1).insert(`
1972
- `));var nt=this.getContents(k,j+Z),at=nt.diff(new h.default().insert(G).concat(J)),dt=new h.default().retain(k).concat(at);return this.applyDelta(dt)}},{key:"update",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(j.length===1&&j[0].type==="characterData"&&j[0].target.data.match(q)&&v.default.find(j[0].target)){var X=v.default.find(j[0].target),$=(0,w.bubbleFormats)(X),V=X.offset(this.scroll),Z=j[0].oldValue.replace(_.default.CONTENTS,""),J=new h.default().insert(Z),nt=new h.default().insert(X.value()),at=new h.default().retain(V).concat(J.diff(nt,G));k=at.reduce(function(dt,mt){return mt.insert?dt.insert(mt.insert,$):dt.push(mt)},new h.default),this.delta=K.compose(k)}else this.delta=this.getDelta(),(!k||!(0,L.default)(K.compose(k),this.delta))&&(k=K.diff(this.delta,G));return k}}]),W}();function z(W,U){return Object.keys(U).reduce(function(k,j){return W[j]==null||(U[j]===W[j]?k[j]=U[j]:Array.isArray(U[j])?U[j].indexOf(W[j])<0&&(k[j]=U[j].concat([W[j]])):k[j]=[U[j],W[j]]),k},{})}function rt(W){return W.reduce(function(U,k){if(k.insert===1){var j=(0,S.default)(k.attributes);return delete j.image,U.insert({image:k.attributes.image},j)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,S.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var G=k.insert.replace(/\r\n/g,`
1971
+ `),this.scroll.insertAt(k,j),Object.keys(K).forEach(function(X){G.scroll.formatAt(k,j.length,X,K[X])}),this.update(new h.default().retain(k).insert(j,(0,S.default)(K)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==T.default.blotName||k.children.length>1?!1:k.children.head instanceof A.default}},{key:"removeFormat",value:function(k,j){var G=this.getText(k,j),K=this.scroll.line(k+j),X=l(K,2),$=X[0],V=X[1],J=0,Z=new h.default;$!=null&&($ instanceof y.default?J=$.newlineIndex(V)-V+1:J=$.length()-V,Z=$.delta().slice(V,V+J-1).insert(`
1972
+ `));var nt=this.getContents(k,j+J),at=nt.diff(new h.default().insert(G).concat(Z)),dt=new h.default().retain(k).concat(at);return this.applyDelta(dt)}},{key:"update",value:function(k){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,K=this.delta;if(j.length===1&&j[0].type==="characterData"&&j[0].target.data.match(q)&&v.default.find(j[0].target)){var X=v.default.find(j[0].target),$=(0,w.bubbleFormats)(X),V=X.offset(this.scroll),J=j[0].oldValue.replace(_.default.CONTENTS,""),Z=new h.default().insert(J),nt=new h.default().insert(X.value()),at=new h.default().retain(V).concat(Z.diff(nt,G));k=at.reduce(function(dt,gt){return gt.insert?dt.insert(gt.insert,$):dt.push(gt)},new h.default),this.delta=K.compose(k)}else this.delta=this.getDelta(),(!k||!(0,L.default)(K.compose(k),this.delta))&&(k=K.diff(this.delta,G));return k}}]),W}();function z(W,D){return Object.keys(D).reduce(function(k,j){return W[j]==null||(D[j]===W[j]?k[j]=D[j]:Array.isArray(D[j])?D[j].indexOf(W[j])<0&&(k[j]=D[j].concat([W[j]])):k[j]=[D[j],W[j]]),k},{})}function rt(W){return W.reduce(function(D,k){if(k.insert===1){var j=(0,S.default)(k.attributes);return delete j.image,D.insert({image:k.attributes.image},j)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,S.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var G=k.insert.replace(/\r\n/g,`
1973
1973
  `).replace(/\r/g,`
1974
- `);return U.insert(G,k.attributes)}return U.push(k)},new h.default)}n.default=Q},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Q;!(P=(Q=q.next()).done)&&(C.push(Q.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=i(0),f=_(u),h=i(21),d=_(h),p=i(11),c=_(p),v=i(8),m=_(v),y=i(10),b=_(y);function _(O){return O&&O.__esModule?O:{default:O}}function w(O){if(Array.isArray(O)){for(var L=0,R=Array(O.length);L<O.length;L++)R[L]=O[L];return R}else return Array.from(O)}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}var x=(0,b.default)("quill:selection"),A=function O(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;T(this,O),this.index=L,this.length=R},I=function(){function O(L,R){var C=this;T(this,O),this.emitter=R,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(P,M){P===m.default.events.TEXT_CHANGE&&M.length()>0&&C.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var P=C.getNativeRange();P!=null&&P.start.node!==C.cursor.textNode&&C.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(P.start.node,P.start.offset,P.end.node,P.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(P,M){if(M.range){var F=M.range,q=F.startNode,Q=F.startOffset,z=F.endNode,rt=F.endOffset;C.setNativeRange(q,Q,z,rt)}}),this.update(m.default.sources.SILENT)}return l(O,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var P=this.getNativeRange();if(!(P==null||!P.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(P.start.node!==this.cursor.textNode){var M=f.default.find(P.start.node,!1);if(M==null)return;if(M instanceof f.default.Leaf){var F=M.split(P.start.offset);M.parent.insertBefore(this.cursor,F)}else M.insertBefore(this.cursor,P.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=this.scroll.length();R=Math.min(R,P-1),C=Math.min(R+C,P-1)-R;var M=void 0,F=this.scroll.leaf(R),q=o(F,2),Q=q[0],z=q[1];if(Q==null)return null;var rt=Q.position(z,!0),W=o(rt,2);M=W[0],z=W[1];var U=document.createRange();if(C>0){U.setStart(M,z);var k=this.scroll.leaf(R+C),j=o(k,2);if(Q=j[0],z=j[1],Q==null)return null;var G=Q.position(z,!0),K=o(G,2);return M=K[0],z=K[1],U.setEnd(M,z),U.getBoundingClientRect()}else{var X="left",$=void 0;return M instanceof Text?(z<M.data.length?(U.setStart(M,z),U.setEnd(M,z+1)):(U.setStart(M,z-1),U.setEnd(M,z),X="right"),$=U.getBoundingClientRect()):($=Q.domNode.getBoundingClientRect(),z>0&&(X="right")),{bottom:$.top+$.height,height:$.height,left:$[X],right:$[X],top:$.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var P=this.normalizeNative(C);return x.info("getNativeRange",P),P}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,P=[[R.start.node,R.start.offset]];R.native.collapsed||P.push([R.end.node,R.end.offset]);var M=P.map(function(Q){var z=o(Q,2),rt=z[0],W=z[1],U=f.default.find(rt,!0),k=U.offset(C.scroll);return W===0?k:U instanceof f.default.Container?k+U.length():k+U.index(rt,W)}),F=Math.min(Math.max.apply(Math,w(M)),this.scroll.length()-1),q=Math.min.apply(Math,[F].concat(w(M)));return new A(q,F-q)}},{key:"normalizeNative",value:function(R){if(!S(this.root,R.startContainer)||!R.collapsed&&!S(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(P){for(var M=P.node,F=P.offset;!(M instanceof Text)&&M.childNodes.length>0;)if(M.childNodes.length>F)M=M.childNodes[F],F=0;else if(M.childNodes.length===F)M=M.lastChild,F=M instanceof Text?M.data.length:M.childNodes.length+1;else break;P.node=M,P.offset=F}),C}},{key:"rangeToNative",value:function(R){var C=this,P=R.collapsed?[R.index]:[R.index,R.index+R.length],M=[],F=this.scroll.length();return P.forEach(function(q,Q){q=Math.min(F-1,q);var z=void 0,rt=C.scroll.leaf(q),W=o(rt,2),U=W[0],k=W[1],j=U.position(k,Q!==0),G=o(j,2);z=G[0],k=G[1],M.push(z,k)}),M.length<2&&(M=M.concat(M)),M}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var P=this.getBounds(C.index,C.length);if(P!=null){var M=this.scroll.length()-1,F=this.scroll.line(Math.min(C.index,M)),q=o(F,1),Q=q[0],z=Q;if(C.length>0){var rt=this.scroll.line(Math.min(C.index+C.length,M)),W=o(rt,1);z=W[0]}if(!(Q==null||z==null)){var U=R.getBoundingClientRect();P.top<U.top?R.scrollTop-=U.top-P.top:P.bottom>U.bottom&&(R.scrollTop+=P.bottom-U.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",R,C,P,M),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||P.parentNode==null))){var q=document.getSelection();if(q!=null)if(R!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||F||R!==Q.startContainer||C!==Q.startOffset||P!==Q.endContainer||M!==Q.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode);var z=document.createRange();z.setStart(R,C),z.setEnd(P,M),q.removeAllRanges(),q.addRange(z)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof C=="string"&&(P=C,C=!1),x.info("setRange",R),R!=null){var M=this.rangeToNative(R);this.setNativeRange.apply(this,w(M).concat([C]))}else this.setNativeRange(null);this.update(P)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,C=this.lastRange,P=this.getRange(),M=o(P,2),F=M[0],q=M[1];if(this.lastRange=F,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,c.default)(C,this.lastRange)){var Q;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(C),R];if((Q=this.emitter).emit.apply(Q,[m.default.events.EDITOR_CHANGE].concat(z)),R!==m.default.sources.SILENT){var rt;(rt=this.emitter).emit.apply(rt,z)}}}}]),O}();function S(O,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),O.contains(L)}n.Range=A,n.default=I},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"insertInto",value:function(_,w){_.children.length===0?l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertInto",this).call(this,_,w):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),y}(f.default.Embed);v.blotName="break",v.tagName="BR",n.default=v},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(44),u=i(30),f=i(1),h=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.build(),m}return c.prototype.appendChild=function(v){this.insertBefore(v)},c.prototype.attach=function(){p.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},c.prototype.build=function(){var v=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var y=d(m);v.insertBefore(y,v.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},c.prototype.deleteAt=function(v,m){if(v===0&&m===this.length())return this.remove();this.children.forEachAt(v,m,function(y,b,_){y.deleteAt(b,_)})},c.prototype.descendant=function(v,m){var y=this.children.find(m),b=y[0],_=y[1];return v.blotName==null&&v(b)||v.blotName!=null&&b instanceof v?[b,_]:b instanceof c?b.descendant(v,_):[null,-1]},c.prototype.descendants=function(v,m,y){m===void 0&&(m=0),y===void 0&&(y=Number.MAX_VALUE);var b=[],_=y;return this.children.forEachAt(m,y,function(w,T,x){(v.blotName==null&&v(w)||v.blotName!=null&&w instanceof v)&&b.push(w),w instanceof c&&(b=b.concat(w.descendants(v,T,_))),_-=x}),b},c.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),p.prototype.detach.call(this)},c.prototype.formatAt=function(v,m,y,b){this.children.forEachAt(v,m,function(_,w,T){_.formatAt(w,T,y,b)})},c.prototype.insertAt=function(v,m,y){var b=this.children.find(v),_=b[0],w=b[1];if(_)_.insertAt(w,m,y);else{var T=y==null?f.create("text",m):f.create(m,y);this.appendChild(T)}},c.prototype.insertBefore=function(v,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(y){return v instanceof y}))throw new f.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,m)},c.prototype.length=function(){return this.children.reduce(function(v,m){return v+m.length()},0)},c.prototype.moveChildren=function(v,m){this.children.forEach(function(y){v.insertBefore(y,m)})},c.prototype.optimize=function(v){if(p.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(v)}else this.remove()},c.prototype.path=function(v,m){m===void 0&&(m=!1);var y=this.children.find(v,m),b=y[0],_=y[1],w=[[this,v]];return b instanceof c?w.concat(b.path(_,m)):(b!=null&&w.push([b,_]),w)},c.prototype.removeChild=function(v){this.children.remove(v)},c.prototype.replace=function(v){v instanceof c&&v.moveChildren(this),p.prototype.replace.call(this,v)},c.prototype.split=function(v,m){if(m===void 0&&(m=!1),!m){if(v===0)return this;if(v===this.length())return this.next}var y=this.clone();return this.parent.insertBefore(y,this.next),this.children.forEachAt(v,this.length(),function(b,_,w){b=b.split(_,m),y.appendChild(b)}),y},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(v,m){var y=this,b=[],_=[];v.forEach(function(w){w.target===y.domNode&&w.type==="childList"&&(b.push.apply(b,w.addedNodes),_.push.apply(_,w.removedNodes))}),_.forEach(function(w){if(!(w.parentNode!=null&&w.tagName!=="IFRAME"&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var T=f.find(w);T!=null&&(T.domNode.parentNode==null||T.domNode.parentNode===y.domNode)&&T.detach()}}),b.filter(function(w){return w.parentNode==y.domNode}).sort(function(w,T){return w===T?0:w.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var T=null;w.nextSibling!=null&&(T=f.find(w.nextSibling));var x=d(w);(x.next!=T||x.next==null)&&(x.parent!=null&&x.parent.removeChild(y),y.insertBefore(x,T||void 0))})},c}(u.default);function d(p){var c=f.find(p);if(c==null)try{c=f.create(p)}catch{c=f.create(f.Scope.INLINE),[].slice.call(p.childNodes).forEach(function(m){c.domNode.appendChild(m)}),p.parentNode&&p.parentNode.replaceChild(c.domNode,p),c.attach()}return c}n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12),u=i(31),f=i(17),h=i(1),d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.attributes=new u.default(m.domNode),m}return c.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},c.prototype.format=function(v,m){var y=h.query(v);y instanceof l.default?this.attributes.attribute(y,m):m&&y!=null&&(v!==this.statics.blotName||this.formats()[v]!==m)&&this.replaceWith(v,m)},c.prototype.formats=function(){var v=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(v[this.statics.blotName]=m),v},c.prototype.replaceWith=function(v,m){var y=p.prototype.replaceWith.call(this,v,m);return this.attributes.copy(y),y},c.prototype.update=function(v,m){var y=this;p.prototype.update.call(this,v,m),v.some(function(b){return b.target===y.domNode&&b.type==="attributes"})&&this.attributes.build()},c.prototype.wrap=function(v,m){var y=p.prototype.wrap.call(this,v,m);return y instanceof c&&y.statics.scope===this.statics.scope&&this.attributes.move(y),y},c}(f.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(30),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(p){return!0},d.prototype.index=function(p,c){return this.domNode===p||this.domNode.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1},d.prototype.position=function(p,c){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return p>0&&(v+=1),[this.parent.domNode,v]},d.prototype.value=function(){var p;return p={},p[this.statics.blotName]=this.statics.value(this.domNode)||!0,p},d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=i(11),l=i(3),u={attributes:{compose:function(h,d,p){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var c=l(!0,{},d);p||(c=Object.keys(c).reduce(function(m,y){return c[y]!=null&&(m[y]=c[y]),m},{}));for(var v in h)h[v]!==void 0&&d[v]===void 0&&(c[v]=h[v]);return Object.keys(c).length>0?c:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var p=Object.keys(h).concat(Object.keys(d)).reduce(function(c,v){return o(h[v],d[v])||(c[v]=d[v]===void 0?null:d[v]),c},{});return Object.keys(p).length>0?p:void 0},transform:function(h,d,p){if(typeof h!="object")return d;if(typeof d=="object"){if(!p)return d;var c=Object.keys(d).reduce(function(v,m){return h[m]===void 0&&(v[m]=d[m]),v},{});return Object.keys(c).length>0?c:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var p=this.offset,c=u.length(d);if(h>=c-p?(h=c-p,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var v={};return d.attributes&&(v.attributes=d.attributes),typeof d.retain=="number"?v.retain=h:typeof d.insert=="string"?v.insert=d.insert.substr(p,h):v.insert=d.insert,v}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,p=this.next(),c=this.ops.slice(this.index);return this.offset=h,this.index=d,[p].concat(c)}else return[]},r.exports=u},function(r,n){var i=function(){function o(y,b){return b!=null&&y instanceof b}var l;try{l=Map}catch{l=function(){}}var u;try{u=Set}catch{u=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(y,b,_,w,T){typeof b=="object"&&(_=b.depth,w=b.prototype,T=b.includeNonEnumerable,b=b.circular);var x=[],A=[],I=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof _>"u"&&(_=1/0);function S(O,L){if(O===null)return null;if(L===0)return O;var R,C;if(typeof O!="object")return O;if(o(O,l))R=new l;else if(o(O,u))R=new u;else if(o(O,f))R=new f(function(U,k){O.then(function(j){U(S(j,L-1))},function(j){k(S(j,L-1))})});else if(h.__isArray(O))R=[];else if(h.__isRegExp(O))R=new RegExp(O.source,m(O)),O.lastIndex&&(R.lastIndex=O.lastIndex);else if(h.__isDate(O))R=new Date(O.getTime());else{if(I&&Buffer.isBuffer(O))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(O.length):R=new Buffer(O.length),O.copy(R),R;o(O,Error)?R=Object.create(O):typeof w>"u"?(C=Object.getPrototypeOf(O),R=Object.create(C)):(R=Object.create(w),C=w)}if(b){var P=x.indexOf(O);if(P!=-1)return A[P];x.push(O),A.push(R)}o(O,l)&&O.forEach(function(U,k){var j=S(k,L-1),G=S(U,L-1);R.set(j,G)}),o(O,u)&&O.forEach(function(U){var k=S(U,L-1);R.add(k)});for(var M in O){var F;C&&(F=Object.getOwnPropertyDescriptor(C,M)),!(F&&F.set==null)&&(R[M]=S(O[M],L-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(O),M=0;M<q.length;M++){var Q=q[M],z=Object.getOwnPropertyDescriptor(O,Q);z&&!z.enumerable&&!T||(R[Q]=S(O[Q],L-1),z.enumerable||Object.defineProperty(R,Q,{enumerable:!1}))}if(T)for(var rt=Object.getOwnPropertyNames(O),M=0;M<rt.length;M++){var W=rt[M],z=Object.getOwnPropertyDescriptor(O,W);z&&z.enumerable||(R[W]=S(O[W],L-1),Object.defineProperty(R,W,{enumerable:!1}))}return R}return S(y,_)}h.clonePrototype=function(b){if(b===null)return null;var _=function(){};return _.prototype=b,new _};function d(y){return Object.prototype.toString.call(y)}h.__objToStr=d;function p(y){return typeof y=="object"&&d(y)==="[object Date]"}h.__isDate=p;function c(y){return typeof y=="object"&&d(y)==="[object Array]"}h.__isArray=c;function v(y){return typeof y=="object"&&d(y)==="[object RegExp]"}h.__isRegExp=v;function m(y){var b="";return y.global&&(b+="g"),y.ignoreCase&&(b+="i"),y.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Q=void 0;try{for(var z=C[Symbol.iterator](),rt;!(F=(rt=z.next()).done)&&(M.push(rt.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Q=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Q}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),u=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Q=F.get;return Q===void 0?void 0:Q.call(M)}},f=i(0),h=x(f),d=i(8),p=x(d),c=i(4),v=x(c),m=i(16),y=x(m),b=i(13),_=x(b),w=i(25),T=x(w);function x(R){return R&&R.__esModule?R:{default:R}}function A(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function I(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function S(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function O(R){return R instanceof v.default||R instanceof c.BlockEmbed}var L=function(R){S(C,R);function C(P,M){A(this,C);var F=I(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P));return F.emitter=M.emitter,Array.isArray(M.whitelist)&&(F.whitelist=M.whitelist.reduce(function(q,Q){return q[Q]=!0,q},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(M,F){var q=this.line(M),Q=o(q,2),z=Q[0],rt=Q[1],W=this.line(M+F),U=o(W,1),k=U[0];if(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,M,F),k!=null&&z!==k&&rt>0){if(z instanceof c.BlockEmbed||k instanceof c.BlockEmbed){this.optimize();return}if(z instanceof _.default){var j=z.newlineIndex(z.length(),!0);if(j>-1&&(z=z.split(j+1),z===k)){this.optimize();return}}else if(k instanceof _.default){var G=k.newlineIndex(0);G>-1&&k.split(G+1)}var K=k.children.head instanceof y.default?null:k.children.head;z.moveChildren(k,K),z.remove()}this.optimize()}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",M)}},{key:"formatAt",value:function(M,F,q,Q){this.whitelist!=null&&!this.whitelist[q]||(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,M,F,q,Q),this.optimize())}},{key:"insertAt",value:function(M,F,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[F])){if(M>=this.length())if(q==null||h.default.query(F,h.default.Scope.BLOCK)==null){var Q=h.default.create(this.statics.defaultChild);this.appendChild(Q),q==null&&F.endsWith(`
1975
- `)&&(F=F.slice(0,-1)),Q.insertAt(0,F,q)}else{var z=h.default.create(F,q);this.appendChild(z)}else u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,M,F,q);this.optimize()}}},{key:"insertBefore",value:function(M,F){if(M.statics.scope===h.default.Scope.INLINE_BLOT){var q=h.default.create(this.statics.defaultChild);q.appendChild(M),M=q}u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,M,F)}},{key:"leaf",value:function(M){return this.path(M).pop()||[null,-1]}},{key:"line",value:function(M){return M===this.length()?this.line(M-1):this.descendant(O,M)}},{key:"lines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function Q(z,rt,W){var U=[],k=W;return z.children.forEachAt(rt,W,function(j,G,K){O(j)?U.push(j):j instanceof h.default.Container&&(U=U.concat(Q(j,G,k))),k-=K}),U};return q(this,M,F)}},{key:"optimize",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,M,F),M.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,M,F))}},{key:"path",value:function(M){return u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,M).slice(1)}},{key:"update",value:function(M){if(this.batch!==!0){var F=p.default.sources.USER;typeof M=="string"&&(F=M),Array.isArray(M)||(M=this.observer.takeRecords()),M.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,M),u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,M.concat([])),M.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,M)}}}]),C}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,T.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},l=function(){function $(V,Z){var J=[],nt=!0,at=!1,dt=void 0;try{for(var mt=V[Symbol.iterator](),xt;!(nt=(xt=mt.next()).done)&&(J.push(xt.value),!(Z&&J.length===Z));nt=!0);}catch(Ct){at=!0,dt=Ct}finally{try{!nt&&mt.return&&mt.return()}finally{if(at)throw dt}}return J}return function(V,Z){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return $(V,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function $(V,Z){for(var J=0;J<Z.length;J++){var nt=Z[J];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(V,nt.key,nt)}}return function(V,Z,J){return Z&&$(V.prototype,Z),J&&$(V,J),V}}(),f=i(21),h=R(f),d=i(11),p=R(d),c=i(3),v=R(c),m=i(2),y=R(m),b=i(20),_=R(b),w=i(0),T=R(w),x=i(5),A=R(x),I=i(10),S=R(I),O=i(9),L=R(O);function R($){return $&&$.__esModule?$:{default:$}}function C($,V,Z){return V in $?Object.defineProperty($,V,{value:Z,enumerable:!0,configurable:!0,writable:!0}):$[V]=Z,$}function P($,V){if(!($ instanceof V))throw new TypeError("Cannot call a class as a function")}function M($,V){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:$}function F($,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);$.prototype=Object.create(V&&V.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf($,V):$.__proto__=V)}var q=(0,S.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function($){F(V,$),u(V,null,[{key:"match",value:function(J,nt){return nt=X(nt),["altKey","ctrlKey","metaKey","shiftKey"].some(function(at){return!!nt[at]!==J[at]&&nt[at]!==null})?!1:nt.key===(J.which||J.keyCode)}}]);function V(Z,J){P(this,V);var nt=M(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,Z,J));return nt.bindings={},Object.keys(nt.options.bindings).forEach(function(at){at==="list autofill"&&Z.scroll.whitelist!=null&&!Z.scroll.whitelist.list||nt.options.bindings[at]&&nt.addBinding(nt.options.bindings[at])}),nt.addBinding({key:V.keys.ENTER,shiftKey:null},j),nt.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},W),nt.addBinding({key:V.keys.DELETE},{collapsed:!0},U)):(nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),nt.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},U)),nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},k),nt.addBinding({key:V.keys.DELETE},{collapsed:!1},k),nt.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),nt.listen(),nt}return u(V,[{key:"addBinding",value:function(J){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dt=X(J);if(dt==null||dt.key==null)return q.warn("Attempted to add invalid keyboard binding",dt);typeof nt=="function"&&(nt={handler:nt}),typeof at=="function"&&(at={handler:at}),dt=(0,v.default)(dt,nt,at),this.bindings[dt.key]=this.bindings[dt.key]||[],this.bindings[dt.key].push(dt)}},{key:"listen",value:function(){var J=this;this.quill.root.addEventListener("keydown",function(nt){if(!nt.defaultPrevented){var at=nt.which||nt.keyCode,dt=(J.bindings[at]||[]).filter(function(ce){return V.match(nt,ce)});if(dt.length!==0){var mt=J.quill.getSelection();if(!(mt==null||!J.quill.hasFocus())){var xt=J.quill.getLine(mt.index),Ct=l(xt,2),fe=Ct[0],Xt=Ct[1],st=J.quill.getLeaf(mt.index),lt=l(st,2),pt=lt[0],vt=lt[1],ct=mt.length===0?[pt,vt]:J.quill.getLeaf(mt.index+mt.length),Pt=l(ct,2),Lt=Pt[0],Nt=Pt[1],He=pt instanceof T.default.Text?pt.value().slice(0,vt):"",Ge=Lt instanceof T.default.Text?Lt.value().slice(Nt):"",Zt={collapsed:mt.length===0,empty:mt.length===0&&fe.length()<=1,format:J.quill.getFormat(mt),offset:Xt,prefix:He,suffix:Ge},As=dt.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==Zt.collapsed||ce.empty!=null&&ce.empty!==Zt.empty||ce.offset!=null&&ce.offset!==Zt.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(lr){return Zt.format[lr]==null}))return!1}else if(o(ce.format)==="object"&&!Object.keys(ce.format).every(function(lr){return ce.format[lr]===!0?Zt.format[lr]!=null:ce.format[lr]===!1?Zt.format[lr]==null:(0,p.default)(ce.format[lr],Zt.format[lr])}))return!1;return ce.prefix!=null&&!ce.prefix.test(Zt.prefix)||ce.suffix!=null&&!ce.suffix.test(Zt.suffix)?!1:ce.handler.call(J,mt,Zt)!==!0});As&&nt.preventDefault()}}}})}}]),V}(L.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(V,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,Z){if(Z.collapsed&&Z.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,Z){Z.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):Z.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":G(!0),"outdent code-block":G(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,A.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(V){this.quill.history.cutoff();var Z=new y.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(Z,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,A.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,Z){this.quill.format("list",!1,A.default.sources.USER),Z.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var Z=this.quill.getLine(V.index),J=l(Z,2),nt=J[0],at=J[1],dt=(0,v.default)({},nt.formats(),{list:"checked"}),mt=new y.default().retain(V.index).insert(`
1976
- `,dt).retain(nt.length()-at-1).retain(1,{list:"unchecked"});this.quill.updateContents(mt,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,Z){var J=this.quill.getLine(V.index),nt=l(J,2),at=nt[0],dt=nt[1],mt=new y.default().retain(V.index).insert(`
1977
- `,Z.format).retain(at.length()-dt-1).retain(1,{header:null});this.quill.updateContents(mt,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,Z){var J=Z.prefix.length,nt=this.quill.getLine(V.index),at=l(nt,2),dt=at[0],mt=at[1];if(mt>J)return!0;var xt=void 0;switch(Z.prefix.trim()){case"[]":case"[ ]":xt="unchecked";break;case"[x]":xt="checked";break;case"-":case"*":xt="bullet";break;default:xt="ordered"}this.quill.insertText(V.index," ",A.default.sources.USER),this.quill.history.cutoff();var Ct=new y.default().retain(V.index-mt).delete(J+1).retain(dt.length()-2-mt).retain(1,{list:xt});this.quill.updateContents(Ct,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-J,A.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var Z=this.quill.getLine(V.index),J=l(Z,2),nt=J[0],at=J[1],dt=new y.default().retain(V.index+nt.length()-at-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(dt,A.default.sources.USER)}},"embed left":rt(z.keys.LEFT,!1),"embed left shift":rt(z.keys.LEFT,!0),"embed right":rt(z.keys.RIGHT,!1),"embed right shift":rt(z.keys.RIGHT,!0)}};function rt($,V){var Z,J=$===z.keys.LEFT?"prefix":"suffix";return Z={key:$,shiftKey:V,altKey:null},C(Z,J,/^$/),C(Z,"handler",function(at){var dt=at.index;$===z.keys.RIGHT&&(dt+=at.length+1);var mt=this.quill.getLeaf(dt),xt=l(mt,1),Ct=xt[0];return Ct instanceof T.default.Embed?($===z.keys.LEFT?V?this.quill.setSelection(at.index-1,at.length+1,A.default.sources.USER):this.quill.setSelection(at.index-1,A.default.sources.USER):V?this.quill.setSelection(at.index,at.length+1,A.default.sources.USER):this.quill.setSelection(at.index+at.length+1,A.default.sources.USER),!1):!0}),Z}function W($,V){if(!($.index===0||this.quill.getLength()<=1)){var Z=this.quill.getLine($.index),J=l(Z,1),nt=J[0],at={};if(V.offset===0){var dt=this.quill.getLine($.index-1),mt=l(dt,1),xt=mt[0];if(xt!=null&&xt.length()>1){var Ct=nt.formats(),fe=this.quill.getFormat($.index-1,1);at=_.default.attributes.diff(Ct,fe)||{}}}var Xt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText($.index-Xt,Xt,A.default.sources.USER),Object.keys(at).length>0&&this.quill.formatLine($.index-Xt,Xt,at,A.default.sources.USER),this.quill.focus()}}function U($,V){var Z=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!($.index>=this.quill.getLength()-Z)){var J={},nt=0,at=this.quill.getLine($.index),dt=l(at,1),mt=dt[0];if(V.offset>=mt.length()-1){var xt=this.quill.getLine($.index+1),Ct=l(xt,1),fe=Ct[0];if(fe){var Xt=mt.formats(),st=this.quill.getFormat($.index,1);J=_.default.attributes.diff(Xt,st)||{},nt=fe.length()}}this.quill.deleteText($.index,Z,A.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine($.index+nt-1,Z,J,A.default.sources.USER)}}function k($){var V=this.quill.getLines($),Z={};if(V.length>1){var J=V[0].formats(),nt=V[V.length-1].formats();Z=_.default.attributes.diff(nt,J)||{}}this.quill.deleteText($,A.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine($.index,1,Z,A.default.sources.USER),this.quill.setSelection($.index,A.default.sources.SILENT),this.quill.focus()}function j($,V){var Z=this;$.length>0&&this.quill.scroll.deleteAt($.index,$.length);var J=Object.keys(V.format).reduce(function(nt,at){return T.default.query(at,T.default.Scope.BLOCK)&&!Array.isArray(V.format[at])&&(nt[at]=V.format[at]),nt},{});this.quill.insertText($.index,`
1978
- `,J,A.default.sources.USER),this.quill.setSelection($.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(nt){J[nt]==null&&(Array.isArray(V.format[nt])||nt!=="link"&&Z.quill.format(nt,V.format[nt],A.default.sources.USER))})}function G($){return{key:z.keys.TAB,shiftKey:!$,format:{"code-block":!0},handler:function(Z){var J=T.default.query("code-block"),nt=Z.index,at=Z.length,dt=this.quill.scroll.descendant(J,nt),mt=l(dt,2),xt=mt[0],Ct=mt[1];if(xt!=null){var fe=this.quill.getIndex(xt),Xt=xt.newlineIndex(Ct,!0)+1,st=xt.newlineIndex(fe+Ct+at),lt=xt.domNode.textContent.slice(Xt,st).split(`
1979
- `);Ct=0,lt.forEach(function(pt,vt){$?(xt.insertAt(Xt+Ct,J.TAB),Ct+=J.TAB.length,vt===0?nt+=J.TAB.length:at+=J.TAB.length):pt.startsWith(J.TAB)&&(xt.deleteAt(Xt+Ct,J.TAB.length),Ct-=J.TAB.length,vt===0?nt-=J.TAB.length:at-=J.TAB.length),Ct+=pt.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(nt,at,A.default.sources.SILENT)}}}}function K($){return{key:$[0].toUpperCase(),shortKey:!0,handler:function(Z,J){this.quill.format($,!J.format[$],A.default.sources.USER)}}}function X($){if(typeof $=="string"||typeof $=="number")return X({key:$});if((typeof $>"u"?"undefined":o($))==="object"&&($=(0,h.default)($,!1)),typeof $.key=="string")if(z.keys[$.key.toUpperCase()]!=null)$.key=z.keys[$.key.toUpperCase()];else if($.key.length===1)$.key=$.key.toUpperCase().charCodeAt(0);else return null;return $.shortKey&&($[Q]=$.shortKey,delete $.shortKey),$}n.default=z,n.SHORTKEY=Q},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function _(w,T){var x=[],A=!0,I=!1,S=void 0;try{for(var O=w[Symbol.iterator](),L;!(A=(L=O.next()).done)&&(x.push(L.value),!(T&&x.length===T));A=!0);}catch(R){I=!0,S=R}finally{try{!A&&O.return&&O.return()}finally{if(I)throw S}}return x}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return _(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(_){return _&&_.__esModule?_:{default:_}}function v(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function m(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function y(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var b=function(_){y(w,_),u(w,null,[{key:"value",value:function(){}}]);function w(T,x){v(this,w);var A=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return A.selection=x,A.textNode=document.createTextNode(w.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return u(w,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,A){if(this._length!==0)return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,x,A);for(var I=this,S=0;I!=null&&I.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=I.offset(I.parent),I=I.parent;I!=null&&(this._length=w.CONTENTS.length,I.optimize(),I.formatAt(S,w.CONTENTS.length,x,A),this._length=0)}},{key:"index",value:function(x,A){return x===this.textNode?0:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,A=this.selection.getNativeRange(),I=void 0,S=void 0,O=void 0;if(A!=null&&A.start.node===x&&A.end.node===x){var L=[x,A.start.offset,A.end.offset];I=L[0],S=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var R=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof p.default?(I=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=w.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,O].map(function(M){return Math.max(0,Math.min(I.data.length,M-1))}),P=o(C,2);return S=P[0],O=P[1],{startNode:I,startOffset:S,endNode:I,endOffset:O}}}}},{key:"update",value:function(x,A){var I=this;if(x.some(function(O){return O.type==="characterData"&&O.target===I.textNode})){var S=this.restore();S&&(A.range=S)}}},{key:"value",value:function(){return""}}]),w}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=h(o),u=i(4),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return y}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function p(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function c(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var v=function(b){c(_,b);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"value",value:function(T){var x=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,T);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):x}}]),_}(f.default.Attributor.Style),m=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),y=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=m,n.ColorStyle=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=function(){function y(b,_){for(var w=0;w<_.length;w++){var T=_[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,_,w){return _&&y(b.prototype,_),w&&y(b,w),b}}(),l=function y(b,_,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,_);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:y(x,_,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function c(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var v=function(y){c(b,y);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(w,T){if(w!==this.statics.blotName||!T)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,w,T);T=this.constructor.sanitize(T),this.domNode.setAttribute("href",T)}}],[{key:"create",value:function(w){var T=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,w);return w=this.sanitize(w),T.setAttribute("href",w),T.setAttribute("rel","noopener noreferrer"),T.setAttribute("target","_blank"),T}},{key:"formats",value:function(w){return w.getAttribute("href")}},{key:"sanitize",value:function(w){return m(w,this.PROTOCOL_WHITELIST)?w:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(y,b){var _=document.createElement("a");_.href=y;var w=_.href.slice(0,_.href.indexOf(":"));return b.indexOf(w)>-1}n.default=v,n.sanitize=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var v=0;function m(b,_){b.setAttribute(_,b.getAttribute(_)!=="true")}var y=function(){function b(_){var w=this;c(this,b),this.select=_,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(T){switch(T.keyCode){case f.default.keys.ENTER:w.togglePicker();break;case f.default.keys.ESCAPE:w.escape(),T.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(w){var T=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),w.hasAttribute("value")&&x.setAttribute("data-value",w.getAttribute("value")),w.textContent&&x.setAttribute("data-label",w.textContent),x.addEventListener("click",function(){T.selectItem(x,!0)}),x.addEventListener("keydown",function(A){switch(A.keyCode){case f.default.keys.ENTER:T.selectItem(x,!0),A.preventDefault();break;case f.default.keys.ESCAPE:T.escape(),A.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var w=document.createElement("span");return w.classList.add("ql-picker-label"),w.innerHTML=d.default,w.tabIndex="0",w.setAttribute("role","button"),w.setAttribute("aria-expanded","false"),this.container.appendChild(w),w}},{key:"buildOptions",value:function(){var w=this,T=document.createElement("span");T.classList.add("ql-picker-options"),T.setAttribute("aria-hidden","true"),T.tabIndex="-1",T.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",T.id),this.options=T,[].slice.call(this.select.options).forEach(function(x){var A=w.buildItem(x);T.appendChild(A),x.selected===!0&&w.selectItem(A)}),this.container.appendChild(T)}},{key:"buildPicker",value:function(){var w=this;[].slice.call(this.select.attributes).forEach(function(T){w.container.setAttribute(T.name,T.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var w=this;this.close(),setTimeout(function(){return w.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(w!==x&&(x!=null&&x.classList.remove("ql-selected"),w!=null&&(w.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(w.parentNode.children,w),w.hasAttribute("data-value")?this.label.setAttribute("data-value",w.getAttribute("data-value")):this.label.removeAttribute("data-value"),w.hasAttribute("data-label")?this.label.setAttribute("data-label",w.getAttribute("data-label")):this.label.removeAttribute("data-label"),T))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var w=void 0;if(this.select.selectedIndex>-1){var T=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];w=this.select.options[this.select.selectedIndex],this.selectItem(T)}else this.selectItem(null);var x=w!=null&&w!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=q(o),u=i(5),f=q(u),h=i(4),d=q(h),p=i(16),c=q(p),v=i(25),m=q(v),y=i(24),b=q(y),_=i(35),w=q(_),T=i(6),x=q(T),A=i(22),I=q(A),S=i(7),O=q(S),L=i(55),R=q(L),C=i(42),P=q(C),M=i(23),F=q(M);function q(Q){return Q&&Q.__esModule?Q:{default:Q}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":m.default,"blots/cursor":b.default,"blots/embed":w.default,"blots/inline":x.default,"blots/scroll":I.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":P.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,I.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f){this.domNode=f,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return o.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(o.query(d,o.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(o.query(d,o.Scope.ATTRIBUTE)!=null){var v=o.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?o.create("text",h):o.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=o.default.keys(this.domNode),v=l.default.keys(this.domNode),m=u.default.keys(this.domNode);c.concat(v).concat(m).forEach(function(y){var b=f.query(y,f.Scope.ATTRIBUTE);b instanceof o.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var m=c.attributes[v].value(c.domNode);p.format(v,m)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return o(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(_){return _&&_.__esModule?_:{default:_}}function c(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function v(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function m(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var y="\uFEFF",b=function(_){m(w,_);function w(T){c(this,w);var x=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(A){x.contentNode.appendChild(A)}),x.leftGuard=document.createTextNode(y),x.rightGuard=document.createTextNode(y),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return o(w,[{key:"index",value:function(x,A){return x===this.leftGuard?0:x===this.rightGuard?1:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,A)}},{key:"restore",value:function(x){var A=void 0,I=void 0,S=x.data.split(y).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,S),A={startNode:this.prev.domNode,startOffset:O+S.length}}else I=document.createTextNode(S),this.parent.insertBefore(f.default.create(I),this),A={startNode:I,startOffset:S.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,S),A={startNode:this.next.domNode,startOffset:S.length}):(I=document.createTextNode(S),this.parent.insertBefore(f.default.create(I),this.next),A={startNode:I,startOffset:S.length}));return x.data=y,A}},{key:"update",value:function(x,A){var I=this;x.forEach(function(S){if(S.type==="characterData"&&(S.target===I.leftGuard||S.target===I.rightGuard)){var O=I.restore(S.target);O&&(A.range=O)}})}}]),w}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),l=f(o),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function p(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function c(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new f.default.Attributor.Class("font","ql-font",v),y=function(_){c(w,_);function w(){return d(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"value",value:function(x){return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),w}(f.default.Attributor.Style),b=new y("font","font-family",v);n.FontStyle=b,n.FontClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=function(){function T(x,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,I){return A&&T(x.prototype,A),I&&T(x,I),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(T){return T&&T.__esModule?T:{default:T}}function v(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function m(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function y(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var b=function(T){y(x,T);function x(A,I){v(this,x);var S=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A,I));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,C){O!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===h.default.sources.USER?S.record(L,R):S.transform(L))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return o(x,[{key:"change",value:function(I,S){if(this.stack[I].length!==0){var O=this.stack[I].pop();this.stack[S].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[I],h.default.sources.USER),this.ignoreChange=!1;var L=w(O[I]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(I,S){if(I.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(S),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),I=R.redo.compose(I)}else this.lastRecorded=L;this.stack.undo.push({redo:I,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(I){this.stack.undo.forEach(function(S){S.undo=I.transform(S.undo,!0),S.redo=I.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=I.transform(S.undo,!0),S.redo=I.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function _(T){var x=T.ops[T.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
1980
- `):x.attributes!=null?Object.keys(x.attributes).some(function(A){return u.default.query(A,u.default.Scope.BLOCK)!=null}):!1}function w(T){var x=T.reduce(function(I,S){return I+=S.delete||0,I},0),A=T.length()-x;return _(T)&&(A-=1),A}n.default=b,n.getLastChangeIndex=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=function(){function j(G,K){for(var X=0;X<K.length;X++){var $=K[X];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(G,$.key,$)}}return function(G,K,X){return K&&j(G.prototype,K),X&&j(G,X),G}}(),l=function j(G,K,X){G===null&&(G=Function.prototype);var $=Object.getOwnPropertyDescriptor(G,K);if($===void 0){var V=Object.getPrototypeOf(G);return V===null?void 0:j(V,K,X)}else{if("value"in $)return $.value;var Z=$.get;return Z===void 0?void 0:Z.call(X)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),m=L(v),y=i(34),b=L(y),_=i(59),w=L(_),T=i(60),x=L(T),A=i(28),I=L(A),S=i(61),O=L(S);function L(j){return j&&j.__esModule?j:{default:j}}function R(j,G){if(!(j instanceof G))throw new TypeError("Cannot call a class as a function")}function C(j,G){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:j}function P(j,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);j.prototype=Object.create(G&&G.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(j,G):j.__proto__=G)}var M=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],Q=["1","2","3",!1],z=["small",!1,"large","huge"],rt=function(j){P(G,j);function G(K,X){R(this,G);var $=C(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,K,X)),V=function Z(J){if(!document.body.contains(K.root))return document.body.removeEventListener("click",Z);$.tooltip!=null&&!$.tooltip.root.contains(J.target)&&document.activeElement!==$.tooltip.textbox&&!$.quill.hasFocus()&&$.tooltip.hide(),$.pickers!=null&&$.pickers.forEach(function(nt){nt.container.contains(J.target)||nt.close()})};return K.emitter.listenDOM("click",document.body,V),$}return o(G,[{key:"addModule",value:function(X){var $=l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"addModule",this).call(this,X);return X==="toolbar"&&this.extendToolbar($),$}},{key:"buildButtons",value:function(X,$){X.forEach(function(V){var Z=V.getAttribute("class")||"";Z.split(/\s+/).forEach(function(J){if(J.startsWith("ql-")&&(J=J.slice(3),$[J]!=null))if(J==="direction")V.innerHTML=$[J][""]+$[J].rtl;else if(typeof $[J]=="string")V.innerHTML=$[J];else{var nt=V.value||"";nt!=null&&$[J][nt]&&(V.innerHTML=$[J][nt])}})})}},{key:"buildPickers",value:function(X,$){var V=this;this.pickers=X.map(function(J){if(J.classList.contains("ql-align"))return J.querySelector("option")==null&&k(J,M),new x.default(J,$.align);if(J.classList.contains("ql-background")||J.classList.contains("ql-color")){var nt=J.classList.contains("ql-background")?"background":"color";return J.querySelector("option")==null&&k(J,F,nt==="background"?"#ffffff":"#000000"),new w.default(J,$[nt])}else return J.querySelector("option")==null&&(J.classList.contains("ql-font")?k(J,q):J.classList.contains("ql-header")?k(J,Q):J.classList.contains("ql-size")&&k(J,z)),new I.default(J)});var Z=function(){V.pickers.forEach(function(nt){nt.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,Z)}}]),G}(b.default);rt.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var G=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var X=new FileReader;X.onload=function($){var V=G.quill.getSelection(!0);G.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:$.target.result}),c.default.sources.USER),G.quill.setSelection(V.index+1,c.default.sources.SILENT),K.value=""},X.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=function(j){P(G,j);function G(K,X){R(this,G);var $=C(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,K,X));return $.textbox=$.root.querySelector('input[type="text"]'),$.listen(),$}return o(G,[{key:"listen",value:function(){var X=this;this.textbox.addEventListener("keydown",function($){m.default.match($,"enter")?(X.save(),$.preventDefault()):m.default.match($,"escape")&&(X.cancel(),$.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),$!=null?this.textbox.value=$:X!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+X)||""),this.root.setAttribute("data-mode",X)}},{key:"restoreFocus",value:function(){var X=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=X}},{key:"save",value:function(){var X=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var $=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",X,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",X,c.default.sources.USER)),this.quill.root.scrollTop=$;break}case"video":X=U(X);case"formula":{if(!X)break;var V=this.quill.getSelection(!0);if(V!=null){var Z=V.index+V.length;this.quill.insertEmbed(Z,this.root.getAttribute("data-mode"),X,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(Z+1," ",c.default.sources.USER),this.quill.setSelection(Z+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),G}(O.default);function U(j){var G=j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return G?(G[1]||"https")+"://www.youtube.com/embed/"+G[2]+"?showinfo=0":(G=j.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(G[1]||"https")+"://player.vimeo.com/video/"+G[2]+"/":j}function k(j,G){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;G.forEach(function(X){var $=document.createElement("option");X===K?$.setAttribute("selected","selected"):$.setAttribute("value",X),j.appendChild($)})}n.BaseTooltip=W,n.default=rt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,m=u-c,y=this.iterator(p);(v=y())&&m<u+f;){var b=v.length();u>m?h(v,u-m,Math.min(f,m+b-u)):h(v,0,Math.min(b,u+f-m)),m+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=o},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.scroll=m,m.observer=new MutationObserver(function(y){m.update(y)}),m.observer.observe(m.domNode,f),m.attach(),m}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,m){this.update(),v===0&&m===this.length()?this.children.forEach(function(y){y.remove()}):p.prototype.deleteAt.call(this,v,m)},c.prototype.formatAt=function(v,m,y,b){this.update(),p.prototype.formatAt.call(this,v,m,y,b)},c.prototype.insertAt=function(v,m,y){this.update(),p.prototype.insertAt.call(this,v,m,y)},c.prototype.optimize=function(v,m){var y=this;v===void 0&&(v=[]),m===void 0&&(m={}),p.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var _=function(A,I){I===void 0&&(I=!0),!(A==null||A===y)&&A.domNode.parentNode!=null&&(A.domNode[u.DATA_KEY].mutations==null&&(A.domNode[u.DATA_KEY].mutations=[]),I&&_(A.parent))},w=function(A){A.domNode[u.DATA_KEY]==null||A.domNode[u.DATA_KEY].mutations==null||(A instanceof l.default&&A.children.forEach(w),A.optimize(m))},T=v,x=0;T.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(T.forEach(function(A){var I=u.find(A.target,!0);I!=null&&(I.domNode===A.target&&(A.type==="childList"?(_(u.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(S){var O=u.find(S,!1);_(O,!1),O instanceof l.default&&O.children.forEach(function(L){_(L,!1)})})):A.type==="attributes"&&_(I.prev)),_(I))}),this.children.forEach(w),T=[].slice.call(this.observer.takeRecords()),b=T.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,m){var y=this;m===void 0&&(m={}),v=v||this.observer.takeRecords(),v.map(function(b){var _=u.find(b.target,!0);return _==null?null:_.domNode[u.DATA_KEY].mutations==null?(_.domNode[u.DATA_KEY].mutations=[b],_):(_.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===y||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],m)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,m),this.optimize(v,m)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var m=this;c===this.statics.blotName&&!v?(this.children.forEach(function(y){y instanceof l.default||(y=y.wrap(p.blotName,!0)),m.attributes.copy(y)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,m,y){if(this.formats()[m]!=null||u.query(m,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(m,y)}else d.prototype.formatAt.call(this,c,v,m,y)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var m=this.next;m instanceof p&&m.prev===this&&f(v,m.formats())&&(m.moveChildren(this),m.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,m){u.query(v,u.Scope.BLOCK)!=null?this.format(v,m):h.prototype.formatAt.call(this,p,c,v,m)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var m=this.split(p),y=u.create(c,v);m.parent.insertBefore(y,m)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){o(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){o(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(m){return m.type==="characterData"&&m.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,o=1,l=0;function u(x,A,I){if(x==A)return x?[[l,x]]:[];(I<0||x.length<I)&&(I=null);var S=p(x,A),O=x.substring(0,S);x=x.substring(S),A=A.substring(S),S=c(x,A);var L=x.substring(x.length-S);x=x.substring(0,x.length-S),A=A.substring(0,A.length-S);var R=f(x,A);return O&&R.unshift([l,O]),L&&R.push([l,L]),m(R),I!=null&&(R=_(R,I)),R=w(R),R}function f(x,A){var I;if(!x)return[[o,A]];if(!A)return[[i,x]];var S=x.length>A.length?x:A,O=x.length>A.length?A:x,L=S.indexOf(O);if(L!=-1)return I=[[o,S.substring(0,L)],[l,O],[o,S.substring(L+O.length)]],x.length>A.length&&(I[0][0]=I[2][0]=i),I;if(O.length==1)return[[i,x],[o,A]];var R=v(x,A);if(R){var C=R[0],P=R[1],M=R[2],F=R[3],q=R[4],Q=u(C,M),z=u(P,F);return Q.concat([[l,q]],z)}return h(x,A)}function h(x,A){for(var I=x.length,S=A.length,O=Math.ceil((I+S)/2),L=O,R=2*O,C=new Array(R),P=new Array(R),M=0;M<R;M++)C[M]=-1,P[M]=-1;C[L+1]=0,P[L+1]=0;for(var F=I-S,q=F%2!=0,Q=0,z=0,rt=0,W=0,U=0;U<O;U++){for(var k=-U+Q;k<=U-z;k+=2){var j=L+k,G;k==-U||k!=U&&C[j-1]<C[j+1]?G=C[j+1]:G=C[j-1]+1;for(var K=G-k;G<I&&K<S&&x.charAt(G)==A.charAt(K);)G++,K++;if(C[j]=G,G>I)z+=2;else if(K>S)Q+=2;else if(q){var X=L+F-k;if(X>=0&&X<R&&P[X]!=-1){var $=I-P[X];if(G>=$)return d(x,A,G,K)}}}for(var V=-U+rt;V<=U-W;V+=2){var X=L+V,$;V==-U||V!=U&&P[X-1]<P[X+1]?$=P[X+1]:$=P[X-1]+1;for(var Z=$-V;$<I&&Z<S&&x.charAt(I-$-1)==A.charAt(S-Z-1);)$++,Z++;if(P[X]=$,$>I)W+=2;else if(Z>S)rt+=2;else if(!q){var j=L+F-V;if(j>=0&&j<R&&C[j]!=-1){var G=C[j],K=L+G-j;if($=I-$,G>=$)return d(x,A,G,K)}}}}return[[i,x],[o,A]]}function d(x,A,I,S){var O=x.substring(0,I),L=A.substring(0,S),R=x.substring(I),C=A.substring(S),P=u(O,L),M=u(R,C);return P.concat(M)}function p(x,A){if(!x||!A||x.charAt(0)!=A.charAt(0))return 0;for(var I=0,S=Math.min(x.length,A.length),O=S,L=0;I<O;)x.substring(L,O)==A.substring(L,O)?(I=O,L=I):S=O,O=Math.floor((S-I)/2+I);return O}function c(x,A){if(!x||!A||x.charAt(x.length-1)!=A.charAt(A.length-1))return 0;for(var I=0,S=Math.min(x.length,A.length),O=S,L=0;I<O;)x.substring(x.length-O,x.length-L)==A.substring(A.length-O,A.length-L)?(I=O,L=I):S=O,O=Math.floor((S-I)/2+I);return O}function v(x,A){var I=x.length>A.length?x:A,S=x.length>A.length?A:x;if(I.length<4||S.length*2<I.length)return null;function O(z,rt,W){for(var U=z.substring(W,W+Math.floor(z.length/4)),k=-1,j="",G,K,X,$;(k=rt.indexOf(U,k+1))!=-1;){var V=p(z.substring(W),rt.substring(k)),Z=c(z.substring(0,W),rt.substring(0,k));j.length<Z+V&&(j=rt.substring(k-Z,k)+rt.substring(k,k+V),G=z.substring(0,W-Z),K=z.substring(W+V),X=rt.substring(0,k-Z),$=rt.substring(k+V))}return j.length*2>=z.length?[G,K,X,$,j]:null}var L=O(I,S,Math.ceil(I.length/4)),R=O(I,S,Math.ceil(I.length/2)),C;if(!L&&!R)return null;R?L?C=L[4].length>R[4].length?L:R:C=R:C=L;var P,M,F,q;x.length>A.length?(P=C[0],M=C[1],F=C[2],q=C[3]):(F=C[0],q=C[1],P=C[2],M=C[3]);var Q=C[4];return[P,M,F,q,Q]}function m(x){x.push([l,""]);for(var A=0,I=0,S=0,O="",L="",R;A<x.length;)switch(x[A][0]){case o:S++,L+=x[A][1],A++;break;case i:I++,O+=x[A][1],A++;break;case l:I+S>1?(I!==0&&S!==0&&(R=p(L,O),R!==0&&(A-I-S>0&&x[A-I-S-1][0]==l?x[A-I-S-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),A++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[A][1]=L.substring(L.length-R)+x[A][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),I===0?x.splice(A-S,I+S,[o,L]):S===0?x.splice(A-I,I+S,[i,O]):x.splice(A-I-S,I+S,[i,O],[o,L]),A=A-I-S+(I?1:0)+(S?1:0)+1):A!==0&&x[A-1][0]==l?(x[A-1][1]+=x[A][1],x.splice(A,1)):A++,S=0,I=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var C=!1;for(A=1;A<x.length-1;)x[A-1][0]==l&&x[A+1][0]==l&&(x[A][1].substring(x[A][1].length-x[A-1][1].length)==x[A-1][1]?(x[A][1]=x[A-1][1]+x[A][1].substring(0,x[A][1].length-x[A-1][1].length),x[A+1][1]=x[A-1][1]+x[A+1][1],x.splice(A-1,1),C=!0):x[A][1].substring(0,x[A+1][1].length)==x[A+1][1]&&(x[A-1][1]+=x[A+1][1],x[A][1]=x[A][1].substring(x[A+1][1].length)+x[A+1][1],x.splice(A+1,1),C=!0)),A++;C&&m(x)}var y=u;y.INSERT=o,y.DELETE=i,y.EQUAL=l,r.exports=y;function b(x,A){if(A===0)return[l,x];for(var I=0,S=0;S<x.length;S++){var O=x[S];if(O[0]===i||O[0]===l){var L=I+O[1].length;if(A===L)return[S+1,x];if(A<L){x=x.slice();var R=A-I,C=[O[0],O[1].slice(0,R)],P=[O[0],O[1].slice(R)];return x.splice(S,1,C,P),[S+1,x]}else I=L}}throw new Error("cursor_pos is out of bounds!")}function _(x,A){var I=b(x,A),S=I[1],O=I[0],L=S[O],R=S[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return S.splice(O,2,R,L),T(S,O,2);if(R!=null&&R[1].indexOf(L[1])===0){S.splice(O,2,[R[0],L[1]],[0,L[1]]);var C=R[1].slice(L[1].length);return C.length>0&&S.splice(O+2,0,[R[0],C]),T(S,O,3)}else return x}function w(x){for(var A=!1,I=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},S=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&S(x[O-2][1])&&x[O-1][0]===i&&I(x[O-1][1])&&x[O][0]===o&&I(x[O][1])&&(A=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!A)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function T(x,A,I){for(var S=A+I-1;S>=0&&S>=A-1;S--)if(S+1<x.length){var O=x[S],L=x[S+1];O[0]===L[1]&&x.splice(S,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var l=[];for(var u in o)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?o:l,n.supported=o;function o(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(o?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=o?o+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var m=0,y=v.length,b=new Array(y);m<y;m++)b[m]=v[m].fn;return b},f.prototype.emit=function(d,p,c,v,m,y){var b=o?o+d:d;if(!this._events[b])return!1;var _=this._events[b],w=arguments.length,T,x;if(_.fn){switch(_.once&&this.removeListener(d,_.fn,void 0,!0),w){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,c),!0;case 4:return _.fn.call(_.context,p,c,v),!0;case 5:return _.fn.call(_.context,p,c,v,m),!0;case 6:return _.fn.call(_.context,p,c,v,m,y),!0}for(x=1,T=new Array(w-1);x<w;x++)T[x-1]=arguments[x];_.fn.apply(_.context,T)}else{var A=_.length,I;for(x=0;x<A;x++)switch(_[x].once&&this.removeListener(d,_[x].fn,void 0,!0),w){case 1:_[x].fn.call(_[x].context);break;case 2:_[x].fn.call(_[x].context,p);break;case 3:_[x].fn.call(_[x].context,p,c);break;case 4:_[x].fn.call(_[x].context,p,c,v);break;default:if(!T)for(I=1,T=new Array(w-1);I<w;I++)T[I-1]=arguments[I];_[x].fn.apply(_[x].context,T)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var m=o?o+d:d;if(!this._events[m])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[m],this;var y=this._events[m];if(y.fn)y.fn===p&&(!v||y.once)&&(!c||y.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[m]);else{for(var b=0,_=[],w=y.length;b<w;b++)(y[b].fn!==p||v&&!y[b].once||c&&y[b].context!==c)&&_.push(y[b]);_.length?this._events[m]=_.length===1?_[0]:_:--this._eventsCount===0?this._events=new l:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=o?o+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},l=function(){function st(lt,pt){var vt=[],ct=!0,Pt=!1,Lt=void 0;try{for(var Nt=lt[Symbol.iterator](),He;!(ct=(He=Nt.next()).done)&&(vt.push(He.value),!(pt&&vt.length===pt));ct=!0);}catch(Ge){Pt=!0,Lt=Ge}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(Pt)throw Lt}}return vt}return function(lt,pt){if(Array.isArray(lt))return lt;if(Symbol.iterator in Object(lt))return st(lt,pt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function st(lt,pt){for(var vt=0;vt<pt.length;vt++){var ct=pt[vt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,pt,vt){return pt&&st(lt.prototype,pt),vt&&st(lt,vt),lt}}(),f=i(3),h=P(f),d=i(2),p=P(d),c=i(0),v=P(c),m=i(5),y=P(m),b=i(10),_=P(b),w=i(9),T=P(w),x=i(36),A=i(37),I=i(13),S=P(I),O=i(26),L=i(38),R=i(39),C=i(40);function P(st){return st&&st.__esModule?st:{default:st}}function M(st,lt,pt){return lt in st?Object.defineProperty(st,lt,{value:pt,enumerable:!0,configurable:!0,writable:!0}):st[lt]=pt,st}function F(st,lt){if(!(st instanceof lt))throw new TypeError("Cannot call a class as a function")}function q(st,lt){if(!st)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:st}function Q(st,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);st.prototype=Object.create(lt&&lt.prototype,{constructor:{value:st,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(st,lt):st.__proto__=lt)}var z=(0,_.default)("quill:clipboard"),rt="__ql-matcher",W=[[Node.TEXT_NODE,Xt],[Node.TEXT_NODE,xt],["br",at],[Node.ELEMENT_NODE,xt],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,Ct],[Node.ELEMENT_NODE,J],[Node.ELEMENT_NODE,fe],["li",mt],["b",Z.bind(Z,"bold")],["i",Z.bind(Z,"italic")],["style",dt]],U=[x.AlignAttribute,L.DirectionAttribute].reduce(function(st,lt){return st[lt.keyName]=lt,st},{}),k=[x.AlignStyle,A.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(st,lt){return st[lt.keyName]=lt,st},{}),j=function(st){Q(lt,st);function lt(pt,vt){F(this,lt);var ct=q(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,pt,vt));return ct.quill.root.addEventListener("paste",ct.onPaste.bind(ct)),ct.container=ct.quill.addContainer("ql-clipboard"),ct.container.setAttribute("contenteditable",!0),ct.container.setAttribute("tabindex",-1),ct.matchers=[],W.concat(ct.options.matchers).forEach(function(Pt){var Lt=l(Pt,2),Nt=Lt[0],He=Lt[1];!vt.matchVisual&&He===Ct||ct.addMatcher(Nt,He)}),ct}return u(lt,[{key:"addMatcher",value:function(vt,ct){this.matchers.push([vt,ct])}},{key:"convert",value:function(vt){if(typeof vt=="string")return this.container.innerHTML=vt.replace(/\>\r?\n +\</g,"><"),this.convert();var ct=this.quill.getFormat(this.quill.selection.savedRange.index);if(ct[S.default.blotName]){var Pt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Pt,M({},S.default.blotName,ct[S.default.blotName]))}var Lt=this.prepareMatching(),Nt=l(Lt,2),He=Nt[0],Ge=Nt[1],Zt=V(this.container,He,Ge);return X(Zt,`
1981
- `)&&Zt.ops[Zt.ops.length-1].attributes==null&&(Zt=Zt.compose(new p.default().retain(Zt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,Zt),this.container.innerHTML="",Zt}},{key:"dangerouslyPasteHTML",value:function(vt,ct){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof vt=="string")this.quill.setContents(this.convert(vt),ct),this.quill.setSelection(0,y.default.sources.SILENT);else{var Lt=this.convert(ct);this.quill.updateContents(new p.default().retain(vt).concat(Lt),Pt),this.quill.setSelection(vt+Lt.length(),y.default.sources.SILENT)}}},{key:"onPaste",value:function(vt){var ct=this;if(!(vt.defaultPrevented||!this.quill.isEnabled())){var Pt=this.quill.getSelection(),Lt=new p.default().retain(Pt.index),Nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(y.default.sources.SILENT),setTimeout(function(){Lt=Lt.concat(ct.convert()).delete(Pt.length),ct.quill.updateContents(Lt,y.default.sources.USER),ct.quill.setSelection(Lt.length()-Pt.length,y.default.sources.SILENT),ct.quill.scrollingContainer.scrollTop=Nt,ct.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var vt=this,ct=[],Pt=[];return this.matchers.forEach(function(Lt){var Nt=l(Lt,2),He=Nt[0],Ge=Nt[1];switch(He){case Node.TEXT_NODE:Pt.push(Ge);break;case Node.ELEMENT_NODE:ct.push(Ge);break;default:[].forEach.call(vt.container.querySelectorAll(He),function(Zt){Zt[rt]=Zt[rt]||[],Zt[rt].push(Ge)});break}}),[ct,Pt]}}]),lt}(T.default);j.DEFAULTS={matchers:[],matchVisual:!0};function G(st,lt,pt){return(typeof lt>"u"?"undefined":o(lt))==="object"?Object.keys(lt).reduce(function(vt,ct){return G(vt,ct,lt[ct])},st):st.reduce(function(vt,ct){return ct.attributes&&ct.attributes[lt]?vt.push(ct):vt.insert(ct.insert,(0,h.default)({},M({},lt,pt),ct.attributes))},new p.default)}function K(st){if(st.nodeType!==Node.ELEMENT_NODE)return{};var lt="__ql-computed-style";return st[lt]||(st[lt]=window.getComputedStyle(st))}function X(st,lt){for(var pt="",vt=st.ops.length-1;vt>=0&&pt.length<lt.length;--vt){var ct=st.ops[vt];if(typeof ct.insert!="string")break;pt=ct.insert+pt}return pt.slice(-1*lt.length)===lt}function $(st){if(st.childNodes.length===0)return!1;var lt=K(st);return["block","list-item"].indexOf(lt.display)>-1}function V(st,lt,pt){return st.nodeType===st.TEXT_NODE?pt.reduce(function(vt,ct){return ct(st,vt)},new p.default):st.nodeType===st.ELEMENT_NODE?[].reduce.call(st.childNodes||[],function(vt,ct){var Pt=V(ct,lt,pt);return ct.nodeType===st.ELEMENT_NODE&&(Pt=lt.reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt),Pt=(ct[rt]||[]).reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt)),vt.concat(Pt)},new p.default):new p.default}function Z(st,lt,pt){return G(pt,st,!0)}function J(st,lt){var pt=v.default.Attributor.Attribute.keys(st),vt=v.default.Attributor.Class.keys(st),ct=v.default.Attributor.Style.keys(st),Pt={};return pt.concat(vt).concat(ct).forEach(function(Lt){var Nt=v.default.query(Lt,v.default.Scope.ATTRIBUTE);Nt!=null&&(Pt[Nt.attrName]=Nt.value(st),Pt[Nt.attrName])||(Nt=U[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Pt[Nt.attrName]=Nt.value(st)||void 0),Nt=k[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Nt=k[Lt],Pt[Nt.attrName]=Nt.value(st)||void 0))}),Object.keys(Pt).length>0&&(lt=G(lt,Pt)),lt}function nt(st,lt){var pt=v.default.query(st);if(pt==null)return lt;if(pt.prototype instanceof v.default.Embed){var vt={},ct=pt.value(st);ct!=null&&(vt[pt.blotName]=ct,lt=new p.default().insert(vt,pt.formats(st)))}else typeof pt.formats=="function"&&(lt=G(lt,pt.blotName,pt.formats(st)));return lt}function at(st,lt){return X(lt,`
1974
+ `);return D.insert(G,k.attributes)}return D.push(k)},new h.default)}n.default=Q},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Q;!(P=(Q=q.next()).done)&&(C.push(Q.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=i(0),f=_(u),h=i(21),d=_(h),p=i(11),c=_(p),v=i(8),m=_(v),y=i(10),b=_(y);function _(O){return O&&O.__esModule?O:{default:O}}function w(O){if(Array.isArray(O)){for(var L=0,R=Array(O.length);L<O.length;L++)R[L]=O[L];return R}else return Array.from(O)}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}var x=(0,b.default)("quill:selection"),A=function O(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;T(this,O),this.index=L,this.length=R},I=function(){function O(L,R){var C=this;T(this,O),this.emitter=R,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(P,M){P===m.default.events.TEXT_CHANGE&&M.length()>0&&C.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var P=C.getNativeRange();P!=null&&P.start.node!==C.cursor.textNode&&C.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(P.start.node,P.start.offset,P.end.node,P.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(P,M){if(M.range){var F=M.range,q=F.startNode,Q=F.startOffset,z=F.endNode,rt=F.endOffset;C.setNativeRange(q,Q,z,rt)}}),this.update(m.default.sources.SILENT)}return l(O,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var P=this.getNativeRange();if(!(P==null||!P.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(P.start.node!==this.cursor.textNode){var M=f.default.find(P.start.node,!1);if(M==null)return;if(M instanceof f.default.Leaf){var F=M.split(P.start.offset);M.parent.insertBefore(this.cursor,F)}else M.insertBefore(this.cursor,P.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=this.scroll.length();R=Math.min(R,P-1),C=Math.min(R+C,P-1)-R;var M=void 0,F=this.scroll.leaf(R),q=o(F,2),Q=q[0],z=q[1];if(Q==null)return null;var rt=Q.position(z,!0),W=o(rt,2);M=W[0],z=W[1];var D=document.createRange();if(C>0){D.setStart(M,z);var k=this.scroll.leaf(R+C),j=o(k,2);if(Q=j[0],z=j[1],Q==null)return null;var G=Q.position(z,!0),K=o(G,2);return M=K[0],z=K[1],D.setEnd(M,z),D.getBoundingClientRect()}else{var X="left",$=void 0;return M instanceof Text?(z<M.data.length?(D.setStart(M,z),D.setEnd(M,z+1)):(D.setStart(M,z-1),D.setEnd(M,z),X="right"),$=D.getBoundingClientRect()):($=Q.domNode.getBoundingClientRect(),z>0&&(X="right")),{bottom:$.top+$.height,height:$.height,left:$[X],right:$[X],top:$.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var P=this.normalizeNative(C);return x.info("getNativeRange",P),P}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,P=[[R.start.node,R.start.offset]];R.native.collapsed||P.push([R.end.node,R.end.offset]);var M=P.map(function(Q){var z=o(Q,2),rt=z[0],W=z[1],D=f.default.find(rt,!0),k=D.offset(C.scroll);return W===0?k:D instanceof f.default.Container?k+D.length():k+D.index(rt,W)}),F=Math.min(Math.max.apply(Math,w(M)),this.scroll.length()-1),q=Math.min.apply(Math,[F].concat(w(M)));return new A(q,F-q)}},{key:"normalizeNative",value:function(R){if(!S(this.root,R.startContainer)||!R.collapsed&&!S(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(P){for(var M=P.node,F=P.offset;!(M instanceof Text)&&M.childNodes.length>0;)if(M.childNodes.length>F)M=M.childNodes[F],F=0;else if(M.childNodes.length===F)M=M.lastChild,F=M instanceof Text?M.data.length:M.childNodes.length+1;else break;P.node=M,P.offset=F}),C}},{key:"rangeToNative",value:function(R){var C=this,P=R.collapsed?[R.index]:[R.index,R.index+R.length],M=[],F=this.scroll.length();return P.forEach(function(q,Q){q=Math.min(F-1,q);var z=void 0,rt=C.scroll.leaf(q),W=o(rt,2),D=W[0],k=W[1],j=D.position(k,Q!==0),G=o(j,2);z=G[0],k=G[1],M.push(z,k)}),M.length<2&&(M=M.concat(M)),M}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var P=this.getBounds(C.index,C.length);if(P!=null){var M=this.scroll.length()-1,F=this.scroll.line(Math.min(C.index,M)),q=o(F,1),Q=q[0],z=Q;if(C.length>0){var rt=this.scroll.line(Math.min(C.index+C.length,M)),W=o(rt,1);z=W[0]}if(!(Q==null||z==null)){var D=R.getBoundingClientRect();P.top<D.top?R.scrollTop-=D.top-P.top:P.bottom>D.bottom&&(R.scrollTop+=P.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",R,C,P,M),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||P.parentNode==null))){var q=document.getSelection();if(q!=null)if(R!=null){this.hasFocus()||this.root.focus();var Q=(this.getNativeRange()||{}).native;if(Q==null||F||R!==Q.startContainer||C!==Q.startOffset||P!==Q.endContainer||M!==Q.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode);var z=document.createRange();z.setStart(R,C),z.setEnd(P,M),q.removeAllRanges(),q.addRange(z)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof C=="string"&&(P=C,C=!1),x.info("setRange",R),R!=null){var M=this.rangeToNative(R);this.setNativeRange.apply(this,w(M).concat([C]))}else this.setNativeRange(null);this.update(P)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,C=this.lastRange,P=this.getRange(),M=o(P,2),F=M[0],q=M[1];if(this.lastRange=F,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,c.default)(C,this.lastRange)){var Q;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(C),R];if((Q=this.emitter).emit.apply(Q,[m.default.events.EDITOR_CHANGE].concat(z)),R!==m.default.sources.SILENT){var rt;(rt=this.emitter).emit.apply(rt,z)}}}}]),O}();function S(O,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),O.contains(L)}n.Range=A,n.default=I},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"insertInto",value:function(_,w){_.children.length===0?l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertInto",this).call(this,_,w):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),y}(f.default.Embed);v.blotName="break",v.tagName="BR",n.default=v},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(44),u=i(30),f=i(1),h=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.build(),m}return c.prototype.appendChild=function(v){this.insertBefore(v)},c.prototype.attach=function(){p.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},c.prototype.build=function(){var v=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var y=d(m);v.insertBefore(y,v.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},c.prototype.deleteAt=function(v,m){if(v===0&&m===this.length())return this.remove();this.children.forEachAt(v,m,function(y,b,_){y.deleteAt(b,_)})},c.prototype.descendant=function(v,m){var y=this.children.find(m),b=y[0],_=y[1];return v.blotName==null&&v(b)||v.blotName!=null&&b instanceof v?[b,_]:b instanceof c?b.descendant(v,_):[null,-1]},c.prototype.descendants=function(v,m,y){m===void 0&&(m=0),y===void 0&&(y=Number.MAX_VALUE);var b=[],_=y;return this.children.forEachAt(m,y,function(w,T,x){(v.blotName==null&&v(w)||v.blotName!=null&&w instanceof v)&&b.push(w),w instanceof c&&(b=b.concat(w.descendants(v,T,_))),_-=x}),b},c.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),p.prototype.detach.call(this)},c.prototype.formatAt=function(v,m,y,b){this.children.forEachAt(v,m,function(_,w,T){_.formatAt(w,T,y,b)})},c.prototype.insertAt=function(v,m,y){var b=this.children.find(v),_=b[0],w=b[1];if(_)_.insertAt(w,m,y);else{var T=y==null?f.create("text",m):f.create(m,y);this.appendChild(T)}},c.prototype.insertBefore=function(v,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(y){return v instanceof y}))throw new f.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,m)},c.prototype.length=function(){return this.children.reduce(function(v,m){return v+m.length()},0)},c.prototype.moveChildren=function(v,m){this.children.forEach(function(y){v.insertBefore(y,m)})},c.prototype.optimize=function(v){if(p.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(v)}else this.remove()},c.prototype.path=function(v,m){m===void 0&&(m=!1);var y=this.children.find(v,m),b=y[0],_=y[1],w=[[this,v]];return b instanceof c?w.concat(b.path(_,m)):(b!=null&&w.push([b,_]),w)},c.prototype.removeChild=function(v){this.children.remove(v)},c.prototype.replace=function(v){v instanceof c&&v.moveChildren(this),p.prototype.replace.call(this,v)},c.prototype.split=function(v,m){if(m===void 0&&(m=!1),!m){if(v===0)return this;if(v===this.length())return this.next}var y=this.clone();return this.parent.insertBefore(y,this.next),this.children.forEachAt(v,this.length(),function(b,_,w){b=b.split(_,m),y.appendChild(b)}),y},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(v,m){var y=this,b=[],_=[];v.forEach(function(w){w.target===y.domNode&&w.type==="childList"&&(b.push.apply(b,w.addedNodes),_.push.apply(_,w.removedNodes))}),_.forEach(function(w){if(!(w.parentNode!=null&&w.tagName!=="IFRAME"&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var T=f.find(w);T!=null&&(T.domNode.parentNode==null||T.domNode.parentNode===y.domNode)&&T.detach()}}),b.filter(function(w){return w.parentNode==y.domNode}).sort(function(w,T){return w===T?0:w.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var T=null;w.nextSibling!=null&&(T=f.find(w.nextSibling));var x=d(w);(x.next!=T||x.next==null)&&(x.parent!=null&&x.parent.removeChild(y),y.insertBefore(x,T||void 0))})},c}(u.default);function d(p){var c=f.find(p);if(c==null)try{c=f.create(p)}catch{c=f.create(f.Scope.INLINE),[].slice.call(p.childNodes).forEach(function(m){c.domNode.appendChild(m)}),p.parentNode&&p.parentNode.replaceChild(c.domNode,p),c.attach()}return c}n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12),u=i(31),f=i(17),h=i(1),d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.attributes=new u.default(m.domNode),m}return c.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},c.prototype.format=function(v,m){var y=h.query(v);y instanceof l.default?this.attributes.attribute(y,m):m&&y!=null&&(v!==this.statics.blotName||this.formats()[v]!==m)&&this.replaceWith(v,m)},c.prototype.formats=function(){var v=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(v[this.statics.blotName]=m),v},c.prototype.replaceWith=function(v,m){var y=p.prototype.replaceWith.call(this,v,m);return this.attributes.copy(y),y},c.prototype.update=function(v,m){var y=this;p.prototype.update.call(this,v,m),v.some(function(b){return b.target===y.domNode&&b.type==="attributes"})&&this.attributes.build()},c.prototype.wrap=function(v,m){var y=p.prototype.wrap.call(this,v,m);return y instanceof c&&y.statics.scope===this.statics.scope&&this.attributes.move(y),y},c}(f.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(30),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(p){return!0},d.prototype.index=function(p,c){return this.domNode===p||this.domNode.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1},d.prototype.position=function(p,c){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return p>0&&(v+=1),[this.parent.domNode,v]},d.prototype.value=function(){var p;return p={},p[this.statics.blotName]=this.statics.value(this.domNode)||!0,p},d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=i(11),l=i(3),u={attributes:{compose:function(h,d,p){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var c=l(!0,{},d);p||(c=Object.keys(c).reduce(function(m,y){return c[y]!=null&&(m[y]=c[y]),m},{}));for(var v in h)h[v]!==void 0&&d[v]===void 0&&(c[v]=h[v]);return Object.keys(c).length>0?c:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var p=Object.keys(h).concat(Object.keys(d)).reduce(function(c,v){return o(h[v],d[v])||(c[v]=d[v]===void 0?null:d[v]),c},{});return Object.keys(p).length>0?p:void 0},transform:function(h,d,p){if(typeof h!="object")return d;if(typeof d=="object"){if(!p)return d;var c=Object.keys(d).reduce(function(v,m){return h[m]===void 0&&(v[m]=d[m]),v},{});return Object.keys(c).length>0?c:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var p=this.offset,c=u.length(d);if(h>=c-p?(h=c-p,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var v={};return d.attributes&&(v.attributes=d.attributes),typeof d.retain=="number"?v.retain=h:typeof d.insert=="string"?v.insert=d.insert.substr(p,h):v.insert=d.insert,v}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,p=this.next(),c=this.ops.slice(this.index);return this.offset=h,this.index=d,[p].concat(c)}else return[]},r.exports=u},function(r,n){var i=function(){function o(y,b){return b!=null&&y instanceof b}var l;try{l=Map}catch{l=function(){}}var u;try{u=Set}catch{u=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(y,b,_,w,T){typeof b=="object"&&(_=b.depth,w=b.prototype,T=b.includeNonEnumerable,b=b.circular);var x=[],A=[],I=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof _>"u"&&(_=1/0);function S(O,L){if(O===null)return null;if(L===0)return O;var R,C;if(typeof O!="object")return O;if(o(O,l))R=new l;else if(o(O,u))R=new u;else if(o(O,f))R=new f(function(D,k){O.then(function(j){D(S(j,L-1))},function(j){k(S(j,L-1))})});else if(h.__isArray(O))R=[];else if(h.__isRegExp(O))R=new RegExp(O.source,m(O)),O.lastIndex&&(R.lastIndex=O.lastIndex);else if(h.__isDate(O))R=new Date(O.getTime());else{if(I&&Buffer.isBuffer(O))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(O.length):R=new Buffer(O.length),O.copy(R),R;o(O,Error)?R=Object.create(O):typeof w>"u"?(C=Object.getPrototypeOf(O),R=Object.create(C)):(R=Object.create(w),C=w)}if(b){var P=x.indexOf(O);if(P!=-1)return A[P];x.push(O),A.push(R)}o(O,l)&&O.forEach(function(D,k){var j=S(k,L-1),G=S(D,L-1);R.set(j,G)}),o(O,u)&&O.forEach(function(D){var k=S(D,L-1);R.add(k)});for(var M in O){var F;C&&(F=Object.getOwnPropertyDescriptor(C,M)),!(F&&F.set==null)&&(R[M]=S(O[M],L-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(O),M=0;M<q.length;M++){var Q=q[M],z=Object.getOwnPropertyDescriptor(O,Q);z&&!z.enumerable&&!T||(R[Q]=S(O[Q],L-1),z.enumerable||Object.defineProperty(R,Q,{enumerable:!1}))}if(T)for(var rt=Object.getOwnPropertyNames(O),M=0;M<rt.length;M++){var W=rt[M],z=Object.getOwnPropertyDescriptor(O,W);z&&z.enumerable||(R[W]=S(O[W],L-1),Object.defineProperty(R,W,{enumerable:!1}))}return R}return S(y,_)}h.clonePrototype=function(b){if(b===null)return null;var _=function(){};return _.prototype=b,new _};function d(y){return Object.prototype.toString.call(y)}h.__objToStr=d;function p(y){return typeof y=="object"&&d(y)==="[object Date]"}h.__isDate=p;function c(y){return typeof y=="object"&&d(y)==="[object Array]"}h.__isArray=c;function v(y){return typeof y=="object"&&d(y)==="[object RegExp]"}h.__isRegExp=v;function m(y){var b="";return y.global&&(b+="g"),y.ignoreCase&&(b+="i"),y.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Q=void 0;try{for(var z=C[Symbol.iterator](),rt;!(F=(rt=z.next()).done)&&(M.push(rt.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Q=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Q}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),u=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Q=F.get;return Q===void 0?void 0:Q.call(M)}},f=i(0),h=x(f),d=i(8),p=x(d),c=i(4),v=x(c),m=i(16),y=x(m),b=i(13),_=x(b),w=i(25),T=x(w);function x(R){return R&&R.__esModule?R:{default:R}}function A(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function I(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function S(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function O(R){return R instanceof v.default||R instanceof c.BlockEmbed}var L=function(R){S(C,R);function C(P,M){A(this,C);var F=I(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P));return F.emitter=M.emitter,Array.isArray(M.whitelist)&&(F.whitelist=M.whitelist.reduce(function(q,Q){return q[Q]=!0,q},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(M,F){var q=this.line(M),Q=o(q,2),z=Q[0],rt=Q[1],W=this.line(M+F),D=o(W,1),k=D[0];if(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,M,F),k!=null&&z!==k&&rt>0){if(z instanceof c.BlockEmbed||k instanceof c.BlockEmbed){this.optimize();return}if(z instanceof _.default){var j=z.newlineIndex(z.length(),!0);if(j>-1&&(z=z.split(j+1),z===k)){this.optimize();return}}else if(k instanceof _.default){var G=k.newlineIndex(0);G>-1&&k.split(G+1)}var K=k.children.head instanceof y.default?null:k.children.head;z.moveChildren(k,K),z.remove()}this.optimize()}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",M)}},{key:"formatAt",value:function(M,F,q,Q){this.whitelist!=null&&!this.whitelist[q]||(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,M,F,q,Q),this.optimize())}},{key:"insertAt",value:function(M,F,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[F])){if(M>=this.length())if(q==null||h.default.query(F,h.default.Scope.BLOCK)==null){var Q=h.default.create(this.statics.defaultChild);this.appendChild(Q),q==null&&F.endsWith(`
1975
+ `)&&(F=F.slice(0,-1)),Q.insertAt(0,F,q)}else{var z=h.default.create(F,q);this.appendChild(z)}else u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,M,F,q);this.optimize()}}},{key:"insertBefore",value:function(M,F){if(M.statics.scope===h.default.Scope.INLINE_BLOT){var q=h.default.create(this.statics.defaultChild);q.appendChild(M),M=q}u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,M,F)}},{key:"leaf",value:function(M){return this.path(M).pop()||[null,-1]}},{key:"line",value:function(M){return M===this.length()?this.line(M-1):this.descendant(O,M)}},{key:"lines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function Q(z,rt,W){var D=[],k=W;return z.children.forEachAt(rt,W,function(j,G,K){O(j)?D.push(j):j instanceof h.default.Container&&(D=D.concat(Q(j,G,k))),k-=K}),D};return q(this,M,F)}},{key:"optimize",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,M,F),M.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,M,F))}},{key:"path",value:function(M){return u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,M).slice(1)}},{key:"update",value:function(M){if(this.batch!==!0){var F=p.default.sources.USER;typeof M=="string"&&(F=M),Array.isArray(M)||(M=this.observer.takeRecords()),M.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,M),u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,M.concat([])),M.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,M)}}}]),C}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,T.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},l=function(){function $(V,J){var Z=[],nt=!0,at=!1,dt=void 0;try{for(var gt=V[Symbol.iterator](),xt;!(nt=(xt=gt.next()).done)&&(Z.push(xt.value),!(J&&Z.length===J));nt=!0);}catch(At){at=!0,dt=At}finally{try{!nt&&gt.return&&gt.return()}finally{if(at)throw dt}}return Z}return function(V,J){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return $(V,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function $(V,J){for(var Z=0;Z<J.length;Z++){var nt=J[Z];nt.enumerable=nt.enumerable||!1,nt.configurable=!0,"value"in nt&&(nt.writable=!0),Object.defineProperty(V,nt.key,nt)}}return function(V,J,Z){return J&&$(V.prototype,J),Z&&$(V,Z),V}}(),f=i(21),h=R(f),d=i(11),p=R(d),c=i(3),v=R(c),m=i(2),y=R(m),b=i(20),_=R(b),w=i(0),T=R(w),x=i(5),A=R(x),I=i(10),S=R(I),O=i(9),L=R(O);function R($){return $&&$.__esModule?$:{default:$}}function C($,V,J){return V in $?Object.defineProperty($,V,{value:J,enumerable:!0,configurable:!0,writable:!0}):$[V]=J,$}function P($,V){if(!($ instanceof V))throw new TypeError("Cannot call a class as a function")}function M($,V){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:$}function F($,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);$.prototype=Object.create(V&&V.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf($,V):$.__proto__=V)}var q=(0,S.default)("quill:keyboard"),Q=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function($){F(V,$),u(V,null,[{key:"match",value:function(Z,nt){return nt=X(nt),["altKey","ctrlKey","metaKey","shiftKey"].some(function(at){return!!nt[at]!==Z[at]&&nt[at]!==null})?!1:nt.key===(Z.which||Z.keyCode)}}]);function V(J,Z){P(this,V);var nt=M(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,J,Z));return nt.bindings={},Object.keys(nt.options.bindings).forEach(function(at){at==="list autofill"&&J.scroll.whitelist!=null&&!J.scroll.whitelist.list||nt.options.bindings[at]&&nt.addBinding(nt.options.bindings[at])}),nt.addBinding({key:V.keys.ENTER,shiftKey:null},j),nt.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},W),nt.addBinding({key:V.keys.DELETE},{collapsed:!0},D)):(nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),nt.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),nt.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},k),nt.addBinding({key:V.keys.DELETE},{collapsed:!1},k),nt.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),nt.listen(),nt}return u(V,[{key:"addBinding",value:function(Z){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dt=X(Z);if(dt==null||dt.key==null)return q.warn("Attempted to add invalid keyboard binding",dt);typeof nt=="function"&&(nt={handler:nt}),typeof at=="function"&&(at={handler:at}),dt=(0,v.default)(dt,nt,at),this.bindings[dt.key]=this.bindings[dt.key]||[],this.bindings[dt.key].push(dt)}},{key:"listen",value:function(){var Z=this;this.quill.root.addEventListener("keydown",function(nt){if(!nt.defaultPrevented){var at=nt.which||nt.keyCode,dt=(Z.bindings[at]||[]).filter(function(ce){return V.match(nt,ce)});if(dt.length!==0){var gt=Z.quill.getSelection();if(!(gt==null||!Z.quill.hasFocus())){var xt=Z.quill.getLine(gt.index),At=l(xt,2),fe=At[0],Xt=At[1],st=Z.quill.getLeaf(gt.index),lt=l(st,2),pt=lt[0],vt=lt[1],ct=gt.length===0?[pt,vt]:Z.quill.getLeaf(gt.index+gt.length),Pt=l(ct,2),Lt=Pt[0],Nt=Pt[1],He=pt instanceof T.default.Text?pt.value().slice(0,vt):"",Ge=Lt instanceof T.default.Text?Lt.value().slice(Nt):"",Zt={collapsed:gt.length===0,empty:gt.length===0&&fe.length()<=1,format:Z.quill.getFormat(gt),offset:Xt,prefix:He,suffix:Ge},As=dt.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==Zt.collapsed||ce.empty!=null&&ce.empty!==Zt.empty||ce.offset!=null&&ce.offset!==Zt.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(lr){return Zt.format[lr]==null}))return!1}else if(o(ce.format)==="object"&&!Object.keys(ce.format).every(function(lr){return ce.format[lr]===!0?Zt.format[lr]!=null:ce.format[lr]===!1?Zt.format[lr]==null:(0,p.default)(ce.format[lr],Zt.format[lr])}))return!1;return ce.prefix!=null&&!ce.prefix.test(Zt.prefix)||ce.suffix!=null&&!ce.suffix.test(Zt.suffix)?!1:ce.handler.call(Z,gt,Zt)!==!0});As&&nt.preventDefault()}}}})}}]),V}(L.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:K("bold"),italic:K("italic"),underline:K("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(V,J){if(J.collapsed&&J.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,J){if(J.collapsed&&J.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,J){J.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):J.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":G(!0),"outdent code-block":G(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,A.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(V){this.quill.history.cutoff();var J=new y.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(J,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,A.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,J){this.quill.format("list",!1,A.default.sources.USER),J.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var J=this.quill.getLine(V.index),Z=l(J,2),nt=Z[0],at=Z[1],dt=(0,v.default)({},nt.formats(),{list:"checked"}),gt=new y.default().retain(V.index).insert(`
1976
+ `,dt).retain(nt.length()-at-1).retain(1,{list:"unchecked"});this.quill.updateContents(gt,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,J){var Z=this.quill.getLine(V.index),nt=l(Z,2),at=nt[0],dt=nt[1],gt=new y.default().retain(V.index).insert(`
1977
+ `,J.format).retain(at.length()-dt-1).retain(1,{header:null});this.quill.updateContents(gt,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,J){var Z=J.prefix.length,nt=this.quill.getLine(V.index),at=l(nt,2),dt=at[0],gt=at[1];if(gt>Z)return!0;var xt=void 0;switch(J.prefix.trim()){case"[]":case"[ ]":xt="unchecked";break;case"[x]":xt="checked";break;case"-":case"*":xt="bullet";break;default:xt="ordered"}this.quill.insertText(V.index," ",A.default.sources.USER),this.quill.history.cutoff();var At=new y.default().retain(V.index-gt).delete(Z+1).retain(dt.length()-2-gt).retain(1,{list:xt});this.quill.updateContents(At,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-Z,A.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var J=this.quill.getLine(V.index),Z=l(J,2),nt=Z[0],at=Z[1],dt=new y.default().retain(V.index+nt.length()-at-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(dt,A.default.sources.USER)}},"embed left":rt(z.keys.LEFT,!1),"embed left shift":rt(z.keys.LEFT,!0),"embed right":rt(z.keys.RIGHT,!1),"embed right shift":rt(z.keys.RIGHT,!0)}};function rt($,V){var J,Z=$===z.keys.LEFT?"prefix":"suffix";return J={key:$,shiftKey:V,altKey:null},C(J,Z,/^$/),C(J,"handler",function(at){var dt=at.index;$===z.keys.RIGHT&&(dt+=at.length+1);var gt=this.quill.getLeaf(dt),xt=l(gt,1),At=xt[0];return At instanceof T.default.Embed?($===z.keys.LEFT?V?this.quill.setSelection(at.index-1,at.length+1,A.default.sources.USER):this.quill.setSelection(at.index-1,A.default.sources.USER):V?this.quill.setSelection(at.index,at.length+1,A.default.sources.USER):this.quill.setSelection(at.index+at.length+1,A.default.sources.USER),!1):!0}),J}function W($,V){if(!($.index===0||this.quill.getLength()<=1)){var J=this.quill.getLine($.index),Z=l(J,1),nt=Z[0],at={};if(V.offset===0){var dt=this.quill.getLine($.index-1),gt=l(dt,1),xt=gt[0];if(xt!=null&&xt.length()>1){var At=nt.formats(),fe=this.quill.getFormat($.index-1,1);at=_.default.attributes.diff(At,fe)||{}}}var Xt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText($.index-Xt,Xt,A.default.sources.USER),Object.keys(at).length>0&&this.quill.formatLine($.index-Xt,Xt,at,A.default.sources.USER),this.quill.focus()}}function D($,V){var J=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!($.index>=this.quill.getLength()-J)){var Z={},nt=0,at=this.quill.getLine($.index),dt=l(at,1),gt=dt[0];if(V.offset>=gt.length()-1){var xt=this.quill.getLine($.index+1),At=l(xt,1),fe=At[0];if(fe){var Xt=gt.formats(),st=this.quill.getFormat($.index,1);Z=_.default.attributes.diff(Xt,st)||{},nt=fe.length()}}this.quill.deleteText($.index,J,A.default.sources.USER),Object.keys(Z).length>0&&this.quill.formatLine($.index+nt-1,J,Z,A.default.sources.USER)}}function k($){var V=this.quill.getLines($),J={};if(V.length>1){var Z=V[0].formats(),nt=V[V.length-1].formats();J=_.default.attributes.diff(nt,Z)||{}}this.quill.deleteText($,A.default.sources.USER),Object.keys(J).length>0&&this.quill.formatLine($.index,1,J,A.default.sources.USER),this.quill.setSelection($.index,A.default.sources.SILENT),this.quill.focus()}function j($,V){var J=this;$.length>0&&this.quill.scroll.deleteAt($.index,$.length);var Z=Object.keys(V.format).reduce(function(nt,at){return T.default.query(at,T.default.Scope.BLOCK)&&!Array.isArray(V.format[at])&&(nt[at]=V.format[at]),nt},{});this.quill.insertText($.index,`
1978
+ `,Z,A.default.sources.USER),this.quill.setSelection($.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(nt){Z[nt]==null&&(Array.isArray(V.format[nt])||nt!=="link"&&J.quill.format(nt,V.format[nt],A.default.sources.USER))})}function G($){return{key:z.keys.TAB,shiftKey:!$,format:{"code-block":!0},handler:function(J){var Z=T.default.query("code-block"),nt=J.index,at=J.length,dt=this.quill.scroll.descendant(Z,nt),gt=l(dt,2),xt=gt[0],At=gt[1];if(xt!=null){var fe=this.quill.getIndex(xt),Xt=xt.newlineIndex(At,!0)+1,st=xt.newlineIndex(fe+At+at),lt=xt.domNode.textContent.slice(Xt,st).split(`
1979
+ `);At=0,lt.forEach(function(pt,vt){$?(xt.insertAt(Xt+At,Z.TAB),At+=Z.TAB.length,vt===0?nt+=Z.TAB.length:at+=Z.TAB.length):pt.startsWith(Z.TAB)&&(xt.deleteAt(Xt+At,Z.TAB.length),At-=Z.TAB.length,vt===0?nt-=Z.TAB.length:at-=Z.TAB.length),At+=pt.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(nt,at,A.default.sources.SILENT)}}}}function K($){return{key:$[0].toUpperCase(),shortKey:!0,handler:function(J,Z){this.quill.format($,!Z.format[$],A.default.sources.USER)}}}function X($){if(typeof $=="string"||typeof $=="number")return X({key:$});if((typeof $>"u"?"undefined":o($))==="object"&&($=(0,h.default)($,!1)),typeof $.key=="string")if(z.keys[$.key.toUpperCase()]!=null)$.key=z.keys[$.key.toUpperCase()];else if($.key.length===1)$.key=$.key.toUpperCase().charCodeAt(0);else return null;return $.shortKey&&($[Q]=$.shortKey,delete $.shortKey),$}n.default=z,n.SHORTKEY=Q},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function _(w,T){var x=[],A=!0,I=!1,S=void 0;try{for(var O=w[Symbol.iterator](),L;!(A=(L=O.next()).done)&&(x.push(L.value),!(T&&x.length===T));A=!0);}catch(R){I=!0,S=R}finally{try{!A&&O.return&&O.return()}finally{if(I)throw S}}return x}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return _(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(_){return _&&_.__esModule?_:{default:_}}function v(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function m(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function y(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var b=function(_){y(w,_),u(w,null,[{key:"value",value:function(){}}]);function w(T,x){v(this,w);var A=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return A.selection=x,A.textNode=document.createTextNode(w.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return u(w,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,A){if(this._length!==0)return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,x,A);for(var I=this,S=0;I!=null&&I.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=I.offset(I.parent),I=I.parent;I!=null&&(this._length=w.CONTENTS.length,I.optimize(),I.formatAt(S,w.CONTENTS.length,x,A),this._length=0)}},{key:"index",value:function(x,A){return x===this.textNode?0:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,A=this.selection.getNativeRange(),I=void 0,S=void 0,O=void 0;if(A!=null&&A.start.node===x&&A.end.node===x){var L=[x,A.start.offset,A.end.offset];I=L[0],S=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var R=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof p.default?(I=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=w.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,O].map(function(M){return Math.max(0,Math.min(I.data.length,M-1))}),P=o(C,2);return S=P[0],O=P[1],{startNode:I,startOffset:S,endNode:I,endOffset:O}}}}},{key:"update",value:function(x,A){var I=this;if(x.some(function(O){return O.type==="characterData"&&O.target===I.textNode})){var S=this.restore();S&&(A.range=S)}}},{key:"value",value:function(){return""}}]),w}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=h(o),u=i(4),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return y}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function p(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function c(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var v=function(b){c(_,b);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"value",value:function(T){var x=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,T);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):x}}]),_}(f.default.Attributor.Style),m=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),y=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=m,n.ColorStyle=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=function(){function y(b,_){for(var w=0;w<_.length;w++){var T=_[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,_,w){return _&&y(b.prototype,_),w&&y(b,w),b}}(),l=function y(b,_,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,_);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:y(x,_,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function c(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var v=function(y){c(b,y);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(w,T){if(w!==this.statics.blotName||!T)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,w,T);T=this.constructor.sanitize(T),this.domNode.setAttribute("href",T)}}],[{key:"create",value:function(w){var T=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,w);return w=this.sanitize(w),T.setAttribute("href",w),T.setAttribute("rel","noopener noreferrer"),T.setAttribute("target","_blank"),T}},{key:"formats",value:function(w){return w.getAttribute("href")}},{key:"sanitize",value:function(w){return m(w,this.PROTOCOL_WHITELIST)?w:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(y,b){var _=document.createElement("a");_.href=y;var w=_.href.slice(0,_.href.indexOf(":"));return b.indexOf(w)>-1}n.default=v,n.sanitize=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var v=0;function m(b,_){b.setAttribute(_,b.getAttribute(_)!=="true")}var y=function(){function b(_){var w=this;c(this,b),this.select=_,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(T){switch(T.keyCode){case f.default.keys.ENTER:w.togglePicker();break;case f.default.keys.ESCAPE:w.escape(),T.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(w){var T=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),w.hasAttribute("value")&&x.setAttribute("data-value",w.getAttribute("value")),w.textContent&&x.setAttribute("data-label",w.textContent),x.addEventListener("click",function(){T.selectItem(x,!0)}),x.addEventListener("keydown",function(A){switch(A.keyCode){case f.default.keys.ENTER:T.selectItem(x,!0),A.preventDefault();break;case f.default.keys.ESCAPE:T.escape(),A.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var w=document.createElement("span");return w.classList.add("ql-picker-label"),w.innerHTML=d.default,w.tabIndex="0",w.setAttribute("role","button"),w.setAttribute("aria-expanded","false"),this.container.appendChild(w),w}},{key:"buildOptions",value:function(){var w=this,T=document.createElement("span");T.classList.add("ql-picker-options"),T.setAttribute("aria-hidden","true"),T.tabIndex="-1",T.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",T.id),this.options=T,[].slice.call(this.select.options).forEach(function(x){var A=w.buildItem(x);T.appendChild(A),x.selected===!0&&w.selectItem(A)}),this.container.appendChild(T)}},{key:"buildPicker",value:function(){var w=this;[].slice.call(this.select.attributes).forEach(function(T){w.container.setAttribute(T.name,T.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var w=this;this.close(),setTimeout(function(){return w.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(w!==x&&(x!=null&&x.classList.remove("ql-selected"),w!=null&&(w.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(w.parentNode.children,w),w.hasAttribute("data-value")?this.label.setAttribute("data-value",w.getAttribute("data-value")):this.label.removeAttribute("data-value"),w.hasAttribute("data-label")?this.label.setAttribute("data-label",w.getAttribute("data-label")):this.label.removeAttribute("data-label"),T))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var w=void 0;if(this.select.selectedIndex>-1){var T=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];w=this.select.options[this.select.selectedIndex],this.selectItem(T)}else this.selectItem(null);var x=w!=null&&w!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=q(o),u=i(5),f=q(u),h=i(4),d=q(h),p=i(16),c=q(p),v=i(25),m=q(v),y=i(24),b=q(y),_=i(35),w=q(_),T=i(6),x=q(T),A=i(22),I=q(A),S=i(7),O=q(S),L=i(55),R=q(L),C=i(42),P=q(C),M=i(23),F=q(M);function q(Q){return Q&&Q.__esModule?Q:{default:Q}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":m.default,"blots/cursor":b.default,"blots/embed":w.default,"blots/inline":x.default,"blots/scroll":I.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":P.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,I.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f){this.domNode=f,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return o.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(o.query(d,o.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(o.query(d,o.Scope.ATTRIBUTE)!=null){var v=o.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?o.create("text",h):o.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=o.default.keys(this.domNode),v=l.default.keys(this.domNode),m=u.default.keys(this.domNode);c.concat(v).concat(m).forEach(function(y){var b=f.query(y,f.Scope.ATTRIBUTE);b instanceof o.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var m=c.attributes[v].value(c.domNode);p.format(v,m)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return o(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(_){return _&&_.__esModule?_:{default:_}}function c(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function v(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function m(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var y="\uFEFF",b=function(_){m(w,_);function w(T){c(this,w);var x=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(A){x.contentNode.appendChild(A)}),x.leftGuard=document.createTextNode(y),x.rightGuard=document.createTextNode(y),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return o(w,[{key:"index",value:function(x,A){return x===this.leftGuard?0:x===this.rightGuard?1:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,A)}},{key:"restore",value:function(x){var A=void 0,I=void 0,S=x.data.split(y).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,S),A={startNode:this.prev.domNode,startOffset:O+S.length}}else I=document.createTextNode(S),this.parent.insertBefore(f.default.create(I),this),A={startNode:I,startOffset:S.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,S),A={startNode:this.next.domNode,startOffset:S.length}):(I=document.createTextNode(S),this.parent.insertBefore(f.default.create(I),this.next),A={startNode:I,startOffset:S.length}));return x.data=y,A}},{key:"update",value:function(x,A){var I=this;x.forEach(function(S){if(S.type==="characterData"&&(S.target===I.leftGuard||S.target===I.rightGuard)){var O=I.restore(S.target);O&&(A.range=O)}})}}]),w}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),l=f(o),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=function(){function _(w,T){for(var x=0;x<T.length;x++){var A=T[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,T,x){return T&&_(w.prototype,T),x&&_(w,x),w}}(),l=function _(w,T,x){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,T);if(A===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:_(I,T,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,w){if(!(_ instanceof w))throw new TypeError("Cannot call a class as a function")}function p(_,w){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:_}function c(_,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);_.prototype=Object.create(w&&w.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(_,w):_.__proto__=w)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new f.default.Attributor.Class("font","ql-font",v),y=function(_){c(w,_);function w(){return d(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"value",value:function(x){return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),w}(f.default.Attributor.Style),b=new y("font","font-family",v);n.FontStyle=b,n.FontClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=function(){function T(x,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,I){return A&&T(x.prototype,A),I&&T(x,I),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(T){return T&&T.__esModule?T:{default:T}}function v(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function m(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function y(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var b=function(T){y(x,T);function x(A,I){v(this,x);var S=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A,I));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,C){O!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===h.default.sources.USER?S.record(L,R):S.transform(L))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return o(x,[{key:"change",value:function(I,S){if(this.stack[I].length!==0){var O=this.stack[I].pop();this.stack[S].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[I],h.default.sources.USER),this.ignoreChange=!1;var L=w(O[I]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(I,S){if(I.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(S),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),I=R.redo.compose(I)}else this.lastRecorded=L;this.stack.undo.push({redo:I,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(I){this.stack.undo.forEach(function(S){S.undo=I.transform(S.undo,!0),S.redo=I.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=I.transform(S.undo,!0),S.redo=I.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function _(T){var x=T.ops[T.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
1980
+ `):x.attributes!=null?Object.keys(x.attributes).some(function(A){return u.default.query(A,u.default.Scope.BLOCK)!=null}):!1}function w(T){var x=T.reduce(function(I,S){return I+=S.delete||0,I},0),A=T.length()-x;return _(T)&&(A-=1),A}n.default=b,n.getLastChangeIndex=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=function(){function j(G,K){for(var X=0;X<K.length;X++){var $=K[X];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(G,$.key,$)}}return function(G,K,X){return K&&j(G.prototype,K),X&&j(G,X),G}}(),l=function j(G,K,X){G===null&&(G=Function.prototype);var $=Object.getOwnPropertyDescriptor(G,K);if($===void 0){var V=Object.getPrototypeOf(G);return V===null?void 0:j(V,K,X)}else{if("value"in $)return $.value;var J=$.get;return J===void 0?void 0:J.call(X)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),m=L(v),y=i(34),b=L(y),_=i(59),w=L(_),T=i(60),x=L(T),A=i(28),I=L(A),S=i(61),O=L(S);function L(j){return j&&j.__esModule?j:{default:j}}function R(j,G){if(!(j instanceof G))throw new TypeError("Cannot call a class as a function")}function C(j,G){if(!j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G&&(typeof G=="object"||typeof G=="function")?G:j}function P(j,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof G);j.prototype=Object.create(G&&G.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(j,G):j.__proto__=G)}var M=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],Q=["1","2","3",!1],z=["small",!1,"large","huge"],rt=function(j){P(G,j);function G(K,X){R(this,G);var $=C(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,K,X)),V=function J(Z){if(!document.body.contains(K.root))return document.body.removeEventListener("click",J);$.tooltip!=null&&!$.tooltip.root.contains(Z.target)&&document.activeElement!==$.tooltip.textbox&&!$.quill.hasFocus()&&$.tooltip.hide(),$.pickers!=null&&$.pickers.forEach(function(nt){nt.container.contains(Z.target)||nt.close()})};return K.emitter.listenDOM("click",document.body,V),$}return o(G,[{key:"addModule",value:function(X){var $=l(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"addModule",this).call(this,X);return X==="toolbar"&&this.extendToolbar($),$}},{key:"buildButtons",value:function(X,$){X.forEach(function(V){var J=V.getAttribute("class")||"";J.split(/\s+/).forEach(function(Z){if(Z.startsWith("ql-")&&(Z=Z.slice(3),$[Z]!=null))if(Z==="direction")V.innerHTML=$[Z][""]+$[Z].rtl;else if(typeof $[Z]=="string")V.innerHTML=$[Z];else{var nt=V.value||"";nt!=null&&$[Z][nt]&&(V.innerHTML=$[Z][nt])}})})}},{key:"buildPickers",value:function(X,$){var V=this;this.pickers=X.map(function(Z){if(Z.classList.contains("ql-align"))return Z.querySelector("option")==null&&k(Z,M),new x.default(Z,$.align);if(Z.classList.contains("ql-background")||Z.classList.contains("ql-color")){var nt=Z.classList.contains("ql-background")?"background":"color";return Z.querySelector("option")==null&&k(Z,F,nt==="background"?"#ffffff":"#000000"),new w.default(Z,$[nt])}else return Z.querySelector("option")==null&&(Z.classList.contains("ql-font")?k(Z,q):Z.classList.contains("ql-header")?k(Z,Q):Z.classList.contains("ql-size")&&k(Z,z)),new I.default(Z)});var J=function(){V.pickers.forEach(function(nt){nt.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,J)}}]),G}(b.default);rt.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var G=this,K=this.container.querySelector("input.ql-image[type=file]");K==null&&(K=document.createElement("input"),K.setAttribute("type","file"),K.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),K.classList.add("ql-image"),K.addEventListener("change",function(){if(K.files!=null&&K.files[0]!=null){var X=new FileReader;X.onload=function($){var V=G.quill.getSelection(!0);G.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:$.target.result}),c.default.sources.USER),G.quill.setSelection(V.index+1,c.default.sources.SILENT),K.value=""},X.readAsDataURL(K.files[0])}}),this.container.appendChild(K)),K.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=function(j){P(G,j);function G(K,X){R(this,G);var $=C(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,K,X));return $.textbox=$.root.querySelector('input[type="text"]'),$.listen(),$}return o(G,[{key:"listen",value:function(){var X=this;this.textbox.addEventListener("keydown",function($){m.default.match($,"enter")?(X.save(),$.preventDefault()):m.default.match($,"escape")&&(X.cancel(),$.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),$!=null?this.textbox.value=$:X!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+X)||""),this.root.setAttribute("data-mode",X)}},{key:"restoreFocus",value:function(){var X=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=X}},{key:"save",value:function(){var X=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var $=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",X,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",X,c.default.sources.USER)),this.quill.root.scrollTop=$;break}case"video":X=D(X);case"formula":{if(!X)break;var V=this.quill.getSelection(!0);if(V!=null){var J=V.index+V.length;this.quill.insertEmbed(J,this.root.getAttribute("data-mode"),X,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(J+1," ",c.default.sources.USER),this.quill.setSelection(J+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),G}(O.default);function D(j){var G=j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||j.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return G?(G[1]||"https")+"://www.youtube.com/embed/"+G[2]+"?showinfo=0":(G=j.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(G[1]||"https")+"://player.vimeo.com/video/"+G[2]+"/":j}function k(j,G){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;G.forEach(function(X){var $=document.createElement("option");X===K?$.setAttribute("selected","selected"):$.setAttribute("value",X),j.appendChild($)})}n.BaseTooltip=W,n.default=rt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,m=u-c,y=this.iterator(p);(v=y())&&m<u+f;){var b=v.length();u>m?h(v,u-m,Math.min(f,m+b-u)):h(v,0,Math.min(b,u+f-m)),m+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=o},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.scroll=m,m.observer=new MutationObserver(function(y){m.update(y)}),m.observer.observe(m.domNode,f),m.attach(),m}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,m){this.update(),v===0&&m===this.length()?this.children.forEach(function(y){y.remove()}):p.prototype.deleteAt.call(this,v,m)},c.prototype.formatAt=function(v,m,y,b){this.update(),p.prototype.formatAt.call(this,v,m,y,b)},c.prototype.insertAt=function(v,m,y){this.update(),p.prototype.insertAt.call(this,v,m,y)},c.prototype.optimize=function(v,m){var y=this;v===void 0&&(v=[]),m===void 0&&(m={}),p.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var _=function(A,I){I===void 0&&(I=!0),!(A==null||A===y)&&A.domNode.parentNode!=null&&(A.domNode[u.DATA_KEY].mutations==null&&(A.domNode[u.DATA_KEY].mutations=[]),I&&_(A.parent))},w=function(A){A.domNode[u.DATA_KEY]==null||A.domNode[u.DATA_KEY].mutations==null||(A instanceof l.default&&A.children.forEach(w),A.optimize(m))},T=v,x=0;T.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(T.forEach(function(A){var I=u.find(A.target,!0);I!=null&&(I.domNode===A.target&&(A.type==="childList"?(_(u.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(S){var O=u.find(S,!1);_(O,!1),O instanceof l.default&&O.children.forEach(function(L){_(L,!1)})})):A.type==="attributes"&&_(I.prev)),_(I))}),this.children.forEach(w),T=[].slice.call(this.observer.takeRecords()),b=T.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,m){var y=this;m===void 0&&(m={}),v=v||this.observer.takeRecords(),v.map(function(b){var _=u.find(b.target,!0);return _==null?null:_.domNode[u.DATA_KEY].mutations==null?(_.domNode[u.DATA_KEY].mutations=[b],_):(_.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===y||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],m)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,m),this.optimize(v,m)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var m=this;c===this.statics.blotName&&!v?(this.children.forEach(function(y){y instanceof l.default||(y=y.wrap(p.blotName,!0)),m.attributes.copy(y)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,m,y){if(this.formats()[m]!=null||u.query(m,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(m,y)}else d.prototype.formatAt.call(this,c,v,m,y)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var m=this.next;m instanceof p&&m.prev===this&&f(v,m.formats())&&(m.moveChildren(this),m.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,m){u.query(v,u.Scope.BLOCK)!=null?this.format(v,m):h.prototype.formatAt.call(this,p,c,v,m)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var m=this.split(p),y=u.create(c,v);m.parent.insertBefore(y,m)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){o(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){o(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(m){return m.type==="characterData"&&m.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,o=1,l=0;function u(x,A,I){if(x==A)return x?[[l,x]]:[];(I<0||x.length<I)&&(I=null);var S=p(x,A),O=x.substring(0,S);x=x.substring(S),A=A.substring(S),S=c(x,A);var L=x.substring(x.length-S);x=x.substring(0,x.length-S),A=A.substring(0,A.length-S);var R=f(x,A);return O&&R.unshift([l,O]),L&&R.push([l,L]),m(R),I!=null&&(R=_(R,I)),R=w(R),R}function f(x,A){var I;if(!x)return[[o,A]];if(!A)return[[i,x]];var S=x.length>A.length?x:A,O=x.length>A.length?A:x,L=S.indexOf(O);if(L!=-1)return I=[[o,S.substring(0,L)],[l,O],[o,S.substring(L+O.length)]],x.length>A.length&&(I[0][0]=I[2][0]=i),I;if(O.length==1)return[[i,x],[o,A]];var R=v(x,A);if(R){var C=R[0],P=R[1],M=R[2],F=R[3],q=R[4],Q=u(C,M),z=u(P,F);return Q.concat([[l,q]],z)}return h(x,A)}function h(x,A){for(var I=x.length,S=A.length,O=Math.ceil((I+S)/2),L=O,R=2*O,C=new Array(R),P=new Array(R),M=0;M<R;M++)C[M]=-1,P[M]=-1;C[L+1]=0,P[L+1]=0;for(var F=I-S,q=F%2!=0,Q=0,z=0,rt=0,W=0,D=0;D<O;D++){for(var k=-D+Q;k<=D-z;k+=2){var j=L+k,G;k==-D||k!=D&&C[j-1]<C[j+1]?G=C[j+1]:G=C[j-1]+1;for(var K=G-k;G<I&&K<S&&x.charAt(G)==A.charAt(K);)G++,K++;if(C[j]=G,G>I)z+=2;else if(K>S)Q+=2;else if(q){var X=L+F-k;if(X>=0&&X<R&&P[X]!=-1){var $=I-P[X];if(G>=$)return d(x,A,G,K)}}}for(var V=-D+rt;V<=D-W;V+=2){var X=L+V,$;V==-D||V!=D&&P[X-1]<P[X+1]?$=P[X+1]:$=P[X-1]+1;for(var J=$-V;$<I&&J<S&&x.charAt(I-$-1)==A.charAt(S-J-1);)$++,J++;if(P[X]=$,$>I)W+=2;else if(J>S)rt+=2;else if(!q){var j=L+F-V;if(j>=0&&j<R&&C[j]!=-1){var G=C[j],K=L+G-j;if($=I-$,G>=$)return d(x,A,G,K)}}}}return[[i,x],[o,A]]}function d(x,A,I,S){var O=x.substring(0,I),L=A.substring(0,S),R=x.substring(I),C=A.substring(S),P=u(O,L),M=u(R,C);return P.concat(M)}function p(x,A){if(!x||!A||x.charAt(0)!=A.charAt(0))return 0;for(var I=0,S=Math.min(x.length,A.length),O=S,L=0;I<O;)x.substring(L,O)==A.substring(L,O)?(I=O,L=I):S=O,O=Math.floor((S-I)/2+I);return O}function c(x,A){if(!x||!A||x.charAt(x.length-1)!=A.charAt(A.length-1))return 0;for(var I=0,S=Math.min(x.length,A.length),O=S,L=0;I<O;)x.substring(x.length-O,x.length-L)==A.substring(A.length-O,A.length-L)?(I=O,L=I):S=O,O=Math.floor((S-I)/2+I);return O}function v(x,A){var I=x.length>A.length?x:A,S=x.length>A.length?A:x;if(I.length<4||S.length*2<I.length)return null;function O(z,rt,W){for(var D=z.substring(W,W+Math.floor(z.length/4)),k=-1,j="",G,K,X,$;(k=rt.indexOf(D,k+1))!=-1;){var V=p(z.substring(W),rt.substring(k)),J=c(z.substring(0,W),rt.substring(0,k));j.length<J+V&&(j=rt.substring(k-J,k)+rt.substring(k,k+V),G=z.substring(0,W-J),K=z.substring(W+V),X=rt.substring(0,k-J),$=rt.substring(k+V))}return j.length*2>=z.length?[G,K,X,$,j]:null}var L=O(I,S,Math.ceil(I.length/4)),R=O(I,S,Math.ceil(I.length/2)),C;if(!L&&!R)return null;R?L?C=L[4].length>R[4].length?L:R:C=R:C=L;var P,M,F,q;x.length>A.length?(P=C[0],M=C[1],F=C[2],q=C[3]):(F=C[0],q=C[1],P=C[2],M=C[3]);var Q=C[4];return[P,M,F,q,Q]}function m(x){x.push([l,""]);for(var A=0,I=0,S=0,O="",L="",R;A<x.length;)switch(x[A][0]){case o:S++,L+=x[A][1],A++;break;case i:I++,O+=x[A][1],A++;break;case l:I+S>1?(I!==0&&S!==0&&(R=p(L,O),R!==0&&(A-I-S>0&&x[A-I-S-1][0]==l?x[A-I-S-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),A++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[A][1]=L.substring(L.length-R)+x[A][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),I===0?x.splice(A-S,I+S,[o,L]):S===0?x.splice(A-I,I+S,[i,O]):x.splice(A-I-S,I+S,[i,O],[o,L]),A=A-I-S+(I?1:0)+(S?1:0)+1):A!==0&&x[A-1][0]==l?(x[A-1][1]+=x[A][1],x.splice(A,1)):A++,S=0,I=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var C=!1;for(A=1;A<x.length-1;)x[A-1][0]==l&&x[A+1][0]==l&&(x[A][1].substring(x[A][1].length-x[A-1][1].length)==x[A-1][1]?(x[A][1]=x[A-1][1]+x[A][1].substring(0,x[A][1].length-x[A-1][1].length),x[A+1][1]=x[A-1][1]+x[A+1][1],x.splice(A-1,1),C=!0):x[A][1].substring(0,x[A+1][1].length)==x[A+1][1]&&(x[A-1][1]+=x[A+1][1],x[A][1]=x[A][1].substring(x[A+1][1].length)+x[A+1][1],x.splice(A+1,1),C=!0)),A++;C&&m(x)}var y=u;y.INSERT=o,y.DELETE=i,y.EQUAL=l,r.exports=y;function b(x,A){if(A===0)return[l,x];for(var I=0,S=0;S<x.length;S++){var O=x[S];if(O[0]===i||O[0]===l){var L=I+O[1].length;if(A===L)return[S+1,x];if(A<L){x=x.slice();var R=A-I,C=[O[0],O[1].slice(0,R)],P=[O[0],O[1].slice(R)];return x.splice(S,1,C,P),[S+1,x]}else I=L}}throw new Error("cursor_pos is out of bounds!")}function _(x,A){var I=b(x,A),S=I[1],O=I[0],L=S[O],R=S[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return S.splice(O,2,R,L),T(S,O,2);if(R!=null&&R[1].indexOf(L[1])===0){S.splice(O,2,[R[0],L[1]],[0,L[1]]);var C=R[1].slice(L[1].length);return C.length>0&&S.splice(O+2,0,[R[0],C]),T(S,O,3)}else return x}function w(x){for(var A=!1,I=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},S=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&S(x[O-2][1])&&x[O-1][0]===i&&I(x[O-1][1])&&x[O][0]===o&&I(x[O][1])&&(A=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!A)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function T(x,A,I){for(var S=A+I-1;S>=0&&S>=A-1;S--)if(S+1<x.length){var O=x[S],L=x[S+1];O[0]===L[1]&&x.splice(S,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var l=[];for(var u in o)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?o:l,n.supported=o;function o(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(o?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=o?o+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var m=0,y=v.length,b=new Array(y);m<y;m++)b[m]=v[m].fn;return b},f.prototype.emit=function(d,p,c,v,m,y){var b=o?o+d:d;if(!this._events[b])return!1;var _=this._events[b],w=arguments.length,T,x;if(_.fn){switch(_.once&&this.removeListener(d,_.fn,void 0,!0),w){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,c),!0;case 4:return _.fn.call(_.context,p,c,v),!0;case 5:return _.fn.call(_.context,p,c,v,m),!0;case 6:return _.fn.call(_.context,p,c,v,m,y),!0}for(x=1,T=new Array(w-1);x<w;x++)T[x-1]=arguments[x];_.fn.apply(_.context,T)}else{var A=_.length,I;for(x=0;x<A;x++)switch(_[x].once&&this.removeListener(d,_[x].fn,void 0,!0),w){case 1:_[x].fn.call(_[x].context);break;case 2:_[x].fn.call(_[x].context,p);break;case 3:_[x].fn.call(_[x].context,p,c);break;case 4:_[x].fn.call(_[x].context,p,c,v);break;default:if(!T)for(I=1,T=new Array(w-1);I<w;I++)T[I-1]=arguments[I];_[x].fn.apply(_[x].context,T)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var m=o?o+d:d;if(!this._events[m])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[m],this;var y=this._events[m];if(y.fn)y.fn===p&&(!v||y.once)&&(!c||y.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[m]);else{for(var b=0,_=[],w=y.length;b<w;b++)(y[b].fn!==p||v&&!y[b].once||c&&y[b].context!==c)&&_.push(y[b]);_.length?this._events[m]=_.length===1?_[0]:_:--this._eventsCount===0?this._events=new l:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=o?o+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st},l=function(){function st(lt,pt){var vt=[],ct=!0,Pt=!1,Lt=void 0;try{for(var Nt=lt[Symbol.iterator](),He;!(ct=(He=Nt.next()).done)&&(vt.push(He.value),!(pt&&vt.length===pt));ct=!0);}catch(Ge){Pt=!0,Lt=Ge}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(Pt)throw Lt}}return vt}return function(lt,pt){if(Array.isArray(lt))return lt;if(Symbol.iterator in Object(lt))return st(lt,pt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function st(lt,pt){for(var vt=0;vt<pt.length;vt++){var ct=pt[vt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,pt,vt){return pt&&st(lt.prototype,pt),vt&&st(lt,vt),lt}}(),f=i(3),h=P(f),d=i(2),p=P(d),c=i(0),v=P(c),m=i(5),y=P(m),b=i(10),_=P(b),w=i(9),T=P(w),x=i(36),A=i(37),I=i(13),S=P(I),O=i(26),L=i(38),R=i(39),C=i(40);function P(st){return st&&st.__esModule?st:{default:st}}function M(st,lt,pt){return lt in st?Object.defineProperty(st,lt,{value:pt,enumerable:!0,configurable:!0,writable:!0}):st[lt]=pt,st}function F(st,lt){if(!(st instanceof lt))throw new TypeError("Cannot call a class as a function")}function q(st,lt){if(!st)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:st}function Q(st,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);st.prototype=Object.create(lt&&lt.prototype,{constructor:{value:st,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(st,lt):st.__proto__=lt)}var z=(0,_.default)("quill:clipboard"),rt="__ql-matcher",W=[[Node.TEXT_NODE,Xt],[Node.TEXT_NODE,xt],["br",at],[Node.ELEMENT_NODE,xt],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,At],[Node.ELEMENT_NODE,Z],[Node.ELEMENT_NODE,fe],["li",gt],["b",J.bind(J,"bold")],["i",J.bind(J,"italic")],["style",dt]],D=[x.AlignAttribute,L.DirectionAttribute].reduce(function(st,lt){return st[lt.keyName]=lt,st},{}),k=[x.AlignStyle,A.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(st,lt){return st[lt.keyName]=lt,st},{}),j=function(st){Q(lt,st);function lt(pt,vt){F(this,lt);var ct=q(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,pt,vt));return ct.quill.root.addEventListener("paste",ct.onPaste.bind(ct)),ct.container=ct.quill.addContainer("ql-clipboard"),ct.container.setAttribute("contenteditable",!0),ct.container.setAttribute("tabindex",-1),ct.matchers=[],W.concat(ct.options.matchers).forEach(function(Pt){var Lt=l(Pt,2),Nt=Lt[0],He=Lt[1];!vt.matchVisual&&He===At||ct.addMatcher(Nt,He)}),ct}return u(lt,[{key:"addMatcher",value:function(vt,ct){this.matchers.push([vt,ct])}},{key:"convert",value:function(vt){if(typeof vt=="string")return this.container.innerHTML=vt.replace(/\>\r?\n +\</g,"><"),this.convert();var ct=this.quill.getFormat(this.quill.selection.savedRange.index);if(ct[S.default.blotName]){var Pt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Pt,M({},S.default.blotName,ct[S.default.blotName]))}var Lt=this.prepareMatching(),Nt=l(Lt,2),He=Nt[0],Ge=Nt[1],Zt=V(this.container,He,Ge);return X(Zt,`
1981
+ `)&&Zt.ops[Zt.ops.length-1].attributes==null&&(Zt=Zt.compose(new p.default().retain(Zt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,Zt),this.container.innerHTML="",Zt}},{key:"dangerouslyPasteHTML",value:function(vt,ct){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof vt=="string")this.quill.setContents(this.convert(vt),ct),this.quill.setSelection(0,y.default.sources.SILENT);else{var Lt=this.convert(ct);this.quill.updateContents(new p.default().retain(vt).concat(Lt),Pt),this.quill.setSelection(vt+Lt.length(),y.default.sources.SILENT)}}},{key:"onPaste",value:function(vt){var ct=this;if(!(vt.defaultPrevented||!this.quill.isEnabled())){var Pt=this.quill.getSelection(),Lt=new p.default().retain(Pt.index),Nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(y.default.sources.SILENT),setTimeout(function(){Lt=Lt.concat(ct.convert()).delete(Pt.length),ct.quill.updateContents(Lt,y.default.sources.USER),ct.quill.setSelection(Lt.length()-Pt.length,y.default.sources.SILENT),ct.quill.scrollingContainer.scrollTop=Nt,ct.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var vt=this,ct=[],Pt=[];return this.matchers.forEach(function(Lt){var Nt=l(Lt,2),He=Nt[0],Ge=Nt[1];switch(He){case Node.TEXT_NODE:Pt.push(Ge);break;case Node.ELEMENT_NODE:ct.push(Ge);break;default:[].forEach.call(vt.container.querySelectorAll(He),function(Zt){Zt[rt]=Zt[rt]||[],Zt[rt].push(Ge)});break}}),[ct,Pt]}}]),lt}(T.default);j.DEFAULTS={matchers:[],matchVisual:!0};function G(st,lt,pt){return(typeof lt>"u"?"undefined":o(lt))==="object"?Object.keys(lt).reduce(function(vt,ct){return G(vt,ct,lt[ct])},st):st.reduce(function(vt,ct){return ct.attributes&&ct.attributes[lt]?vt.push(ct):vt.insert(ct.insert,(0,h.default)({},M({},lt,pt),ct.attributes))},new p.default)}function K(st){if(st.nodeType!==Node.ELEMENT_NODE)return{};var lt="__ql-computed-style";return st[lt]||(st[lt]=window.getComputedStyle(st))}function X(st,lt){for(var pt="",vt=st.ops.length-1;vt>=0&&pt.length<lt.length;--vt){var ct=st.ops[vt];if(typeof ct.insert!="string")break;pt=ct.insert+pt}return pt.slice(-1*lt.length)===lt}function $(st){if(st.childNodes.length===0)return!1;var lt=K(st);return["block","list-item"].indexOf(lt.display)>-1}function V(st,lt,pt){return st.nodeType===st.TEXT_NODE?pt.reduce(function(vt,ct){return ct(st,vt)},new p.default):st.nodeType===st.ELEMENT_NODE?[].reduce.call(st.childNodes||[],function(vt,ct){var Pt=V(ct,lt,pt);return ct.nodeType===st.ELEMENT_NODE&&(Pt=lt.reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt),Pt=(ct[rt]||[]).reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt)),vt.concat(Pt)},new p.default):new p.default}function J(st,lt,pt){return G(pt,st,!0)}function Z(st,lt){var pt=v.default.Attributor.Attribute.keys(st),vt=v.default.Attributor.Class.keys(st),ct=v.default.Attributor.Style.keys(st),Pt={};return pt.concat(vt).concat(ct).forEach(function(Lt){var Nt=v.default.query(Lt,v.default.Scope.ATTRIBUTE);Nt!=null&&(Pt[Nt.attrName]=Nt.value(st),Pt[Nt.attrName])||(Nt=D[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Pt[Nt.attrName]=Nt.value(st)||void 0),Nt=k[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Nt=k[Lt],Pt[Nt.attrName]=Nt.value(st)||void 0))}),Object.keys(Pt).length>0&&(lt=G(lt,Pt)),lt}function nt(st,lt){var pt=v.default.query(st);if(pt==null)return lt;if(pt.prototype instanceof v.default.Embed){var vt={},ct=pt.value(st);ct!=null&&(vt[pt.blotName]=ct,lt=new p.default().insert(vt,pt.formats(st)))}else typeof pt.formats=="function"&&(lt=G(lt,pt.blotName,pt.formats(st)));return lt}function at(st,lt){return X(lt,`
1982
1982
  `)||lt.insert(`
1983
- `),lt}function dt(){return new p.default}function mt(st,lt){var pt=v.default.query(st);if(pt==null||pt.blotName!=="list-item"||!X(lt,`
1983
+ `),lt}function dt(){return new p.default}function gt(st,lt){var pt=v.default.query(st);if(pt==null||pt.blotName!=="list-item"||!X(lt,`
1984
1984
  `))return lt;for(var vt=-1,ct=st.parentNode;!ct.classList.contains("ql-clipboard");)(v.default.query(ct)||{}).blotName==="list"&&(vt+=1),ct=ct.parentNode;return vt<=0?lt:lt.compose(new p.default().retain(lt.length()-1).retain(1,{indent:vt}))}function xt(st,lt){return X(lt,`
1985
1985
  `)||($(st)||lt.length()>0&&st.nextSibling&&$(st.nextSibling))&&lt.insert(`
1986
- `),lt}function Ct(st,lt){if($(st)&&st.nextElementSibling!=null&&!X(lt,`
1986
+ `),lt}function At(st,lt){if($(st)&&st.nextElementSibling!=null&&!X(lt,`
1987
1987
 
1988
1988
  `)){var pt=st.offsetHeight+parseFloat(K(st).marginTop)+parseFloat(K(st).marginBottom);st.nextElementSibling.offsetTop>st.offsetTop+pt*1.5&&lt.insert(`
1989
- `)}return lt}function fe(st,lt){var pt={},vt=st.style||{};return vt.fontStyle&&K(st).fontStyle==="italic"&&(pt.italic=!0),vt.fontWeight&&(K(st).fontWeight.startsWith("bold")||parseInt(K(st).fontWeight)>=700)&&(pt.bold=!0),Object.keys(pt).length>0&&(lt=G(lt,pt)),parseFloat(vt.textIndent||0)>0&&(lt=new p.default().insert(" ").concat(lt)),lt}function Xt(st,lt){var pt=st.data;if(st.parentNode.tagName==="O:P")return lt.insert(pt.trim());if(pt.trim().length===0&&st.parentNode.classList.contains("ql-clipboard"))return lt;if(!K(st.parentNode).whiteSpace.startsWith("pre")){var vt=function(Pt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Pt?" ":Lt};pt=pt.replace(/\r\n/g," ").replace(/\n/g," "),pt=pt.replace(/\s\s+/g,vt.bind(vt,!0)),(st.previousSibling==null&&$(st.parentNode)||st.previousSibling!=null&&$(st.previousSibling))&&(pt=pt.replace(/^\s+/,vt.bind(vt,!1))),(st.nextSibling==null&&$(st.parentNode)||st.nextSibling!=null&&$(st.nextSibling))&&(pt=pt.replace(/\s+$/,vt.bind(vt,!1)))}return lt.insert(pt)}n.default=j,n.matchAttributor=J,n.matchBlot=nt,n.matchNewline=xt,n.matchSpacing=Ct,n.matchText=Xt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"optimize",value:function(_){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),y}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function C(P,M){var F=[],q=!0,Q=!1,z=void 0;try{for(var rt=P[Symbol.iterator](),W;!(q=(W=rt.next()).done)&&(F.push(W.value),!(M&&F.length===M));q=!0);}catch(U){Q=!0,z=U}finally{try{!q&&rt.return&&rt.return()}finally{if(Q)throw z}}return F}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),u=i(2),f=_(u),h=i(0),d=_(h),p=i(5),c=_(p),v=i(10),m=_(v),y=i(9),b=_(y);function _(C){return C&&C.__esModule?C:{default:C}}function w(C,P,M){return P in C?Object.defineProperty(C,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):C[P]=M,C}function T(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function x(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function A(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var I=(0,m.default)("quill:toolbar"),S=function(C){A(P,C);function P(M,F){T(this,P);var q=x(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M,F));if(Array.isArray(q.options.container)){var Q=document.createElement("div");L(Q,q.options.container),M.container.parentNode.insertBefore(Q,M.container),q.container=Q}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=I.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(rt){q.addHandler(rt,q.options.handlers[rt])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(rt){q.attach(rt)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(rt,W){rt===c.default.events.SELECTION_CHANGE&&q.update(W)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var rt=q.quill.selection.getRange(),W=o(rt,1),U=W[0];q.update(U)}),q}return l(P,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,Q=[].find.call(F.classList,function(rt){return rt.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){I.warn("ignoring attaching to disabled format",Q,F);return}if(d.default.query(Q)==null){I.warn("ignoring attaching to nonexistent format",Q,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(rt){var W=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var U=F.options[F.selectedIndex];U.hasAttribute("selected")?W=!1:W=U.value||!1}else F.classList.contains("ql-active")?W=!1:W=F.value||!F.hasAttribute("value"),rt.preventDefault();q.quill.focus();var k=q.quill.selection.getRange(),j=o(k,1),G=j[0];if(q.handlers[Q]!=null)q.handlers[Q].call(q,W);else if(d.default.query(Q).prototype instanceof d.default.Embed){if(W=prompt("Enter "+Q),!W)return;q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({},Q,W)),c.default.sources.USER)}else q.quill.format(Q,W,c.default.sources.USER);q.update(G)}),this.controls.push([Q,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(Q){var z=o(Q,2),rt=z[0],W=z[1];if(W.tagName==="SELECT"){var U=void 0;if(F==null)U=null;else if(q[rt]==null)U=W.querySelector("option[selected]");else if(!Array.isArray(q[rt])){var k=q[rt];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),U=W.querySelector('option[value="'+k+'"]')}U==null?(W.value="",W.selectedIndex=-1):U.selected=!0}else if(F==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var j=q[rt]===W.getAttribute("value")||q[rt]!=null&&q[rt].toString()===W.getAttribute("value")||q[rt]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",j)}else W.classList.toggle("ql-active",q[rt]!=null)})}}]),P}(b.default);S.DEFAULTS={};function O(C,P,M){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+P),M!=null&&(F.value=M),C.appendChild(F)}function L(C,P){Array.isArray(P[0])||(P=[P]),P.forEach(function(M){var F=document.createElement("span");F.classList.add("ql-formats"),M.forEach(function(q){if(typeof q=="string")O(F,q);else{var Q=Object.keys(q)[0],z=q[Q];Array.isArray(z)?R(F,Q,z):O(F,Q,z)}}),C.appendChild(F)})}function R(C,P,M){var F=document.createElement("select");F.classList.add("ql-"+P),M.forEach(function(q){var Q=document.createElement("option");q!==!1?Q.setAttribute("value",q):Q.setAttribute("selected","selected"),F.appendChild(Q)}),C.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var P=this,M=this.quill.getSelection();if(M!=null)if(M.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){d.default.query(q,d.default.Scope.INLINE)!=null&&P.quill.format(q,!1)})}else this.quill.removeFormat(M,c.default.sources.USER)},direction:function(P){var M=this.quill.getFormat().align;P==="rtl"&&M==null?this.quill.format("align","right",c.default.sources.USER):!P&&M==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",P,c.default.sources.USER)},indent:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M),q=parseInt(F.indent||0);if(P==="+1"||P==="-1"){var Q=P==="+1"?1:-1;F.direction==="rtl"&&(Q*=-1),this.quill.format("indent",q+Q,c.default.sources.USER)}},link:function(P){P===!0&&(P=prompt("Enter link URL:")),this.quill.format("link",P,c.default.sources.USER)},list:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M);P==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",P,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(b,_){d(this,y);var w=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return w.label.innerHTML=_,w.container.classList.add("ql-color-picker"),[].slice.call(w.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(T){T.classList.add("ql-primary")}),w}return o(y,[{key:"buildItem",value:function(_){var w=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"buildItem",this).call(this,_);return w.style.backgroundColor=_.getAttribute("value")||"",w}},{key:"selectItem",value:function(_,w){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,_,w);var T=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";T&&(T.tagName==="line"?T.style.stroke=x:T.style.fill=x)}}]),y}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(b,_){d(this,y);var w=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return w.container.classList.add("ql-icon-picker"),[].forEach.call(w.container.querySelectorAll(".ql-picker-item"),function(T){T.innerHTML=_[T.getAttribute("data-value")||""]}),w.defaultItem=w.container.querySelector(".ql-selected"),w.selectItem(w.defaultItem),w}return o(y,[{key:"selectItem",value:function(_,w){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,_,w),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),y}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),y=0;if(m.right>v.right&&(y=v.right-m.right,this.root.style.left=p+y+"px"),m.left<v.left&&(y=v.left-m.left,this.root.style.left=p+y+"px"),m.bottom>v.bottom){var b=m.bottom-m.top,_=d.bottom-d.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Q=void 0;try{for(var z=C[Symbol.iterator](),rt;!(F=(rt=z.next()).done)&&(M.push(rt.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Q=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Q}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Q=F.get;return Q===void 0?void 0:Q.call(M)}},u=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),f=i(3),h=T(f),d=i(8),p=T(d),c=i(43),v=T(c),m=i(27),y=T(m),b=i(15),_=i(41),w=T(_);function T(R){return R&&R.__esModule?R:{default:R}}function x(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function A(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function I(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){I(C,R);function C(P,M){x(this,C),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=S);var F=A(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.quill.container.classList.add("ql-snow"),F}return u(C,[{key:"extendToolbar",value:function(M){M.container.classList.add("ql-snow"),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),w.default),this.tooltip=new L(this.quill,this.options.bounds),M.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){M.handlers.link.call(M,!q.format.link)})}}]),C}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var P=this.quill.getSelection();if(P==null||P.length==0)return;var M=this.quill.getText(P);/^\S+@\S+\.\S+$/.test(M)&&M.indexOf("mailto:")!==0&&(M="mailto:"+M);var F=this.quill.theme.tooltip;F.edit("link",M)}else this.quill.format("link",!1)}}}}});var L=function(R){I(C,R);function C(P,M){x(this,C);var F=A(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(C,[{key:"listen",value:function(){var M=this;l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){M.root.classList.contains("ql-editing")?M.save():M.edit("link",M.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(M.linkRange!=null){var q=M.linkRange;M.restoreFocus(),M.quill.formatText(q,"link",!1,p.default.sources.USER),delete M.linkRange}F.preventDefault(),M.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,q,Q){if(F!=null){if(F.length===0&&Q===p.default.sources.USER){var z=M.quill.scroll.descendant(y.default,F.index),rt=o(z,2),W=rt[0],U=rt[1];if(W!=null){M.linkRange=new b.Range(F.index-U,W.length());var k=y.default.formats(W.domNode);M.preview.textContent=k,M.preview.setAttribute("href",k),M.show(),M.position(M.quill.getBounds(M.linkRange));return}}else delete M.linkRange;M.hide()}})}},{key:"show",value:function(){l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),l=ct(o),u=i(36),f=i(38),h=i(64),d=i(65),p=ct(d),c=i(66),v=ct(c),m=i(67),y=ct(m),b=i(37),_=i(26),w=i(39),T=i(40),x=i(56),A=ct(x),I=i(68),S=ct(I),O=i(27),L=ct(O),R=i(69),C=ct(R),P=i(70),M=ct(P),F=i(71),q=ct(F),Q=i(72),z=ct(Q),rt=i(73),W=ct(rt),U=i(13),k=ct(U),j=i(74),G=ct(j),K=i(75),X=ct(K),$=i(57),V=ct($),Z=i(41),J=ct(Z),nt=i(28),at=ct(nt),dt=i(59),mt=ct(dt),xt=i(60),Ct=ct(xt),fe=i(61),Xt=ct(fe),st=i(108),lt=ct(st),pt=i(62),vt=ct(pt);function ct(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":T.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":T.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":w.FontClass,"formats/size":T.SizeClass,"formats/blockquote":p.default,"formats/code-block":k.default,"formats/header":v.default,"formats/list":y.default,"formats/bold":A.default,"formats/code":U.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":C.default,"formats/strike":M.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":W.default,"formats/list/item":m.ListItem,"modules/formula":G.default,"modules/syntax":X.default,"modules/toolbar":V.default,"themes/bubble":lt.default,"themes/snow":vt.default,"ui/icons":J.default,"ui/picker":at.default,"ui/icon-picker":Ct.default,"ui/color-picker":mt.default,"ui/tooltip":Xt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function y(b,_){for(var w=0;w<_.length;w++){var T=_[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,_,w){return _&&y(b.prototype,_),w&&y(b,w),b}}(),l=function y(b,_,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,_);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:y(x,_,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},u=i(0),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function c(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var v=function(y){c(b,y);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(w,T){if(T==="+1"||T==="-1"){var x=this.value(w)||0;T=T==="+1"?x+1:x-1}return T===0?(this.remove(w),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,w,T)}},{key:"canAdd",value:function(w,T){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,T)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,parseInt(T))}},{key:"value",value:function(w){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,w))||void 0}}]),b}(f.default.Attributor.Class),m=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function v(m,y){for(var b=0;b<y.length;b++){var _=y[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,y,b){return y&&v(m.prototype,y),b&&v(m,b),m}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function p(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var c=function(v){p(m,v);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function x(A,I){for(var S=0;S<I.length;S++){var O=I[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,I,S){return I&&x(A.prototype,I),S&&x(A,S),A}}(),l=function x(A,I,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,I);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,I,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function m(x,A,I){return A in x?Object.defineProperty(x,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):x[A]=I,x}function y(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var w=function(x){_(A,x);function A(){return y(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"format",value:function(S,O){S===T.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(d.default);w.blotName="list-item",w.tagName="LI";var T=function(x){_(A,x),o(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(I){y(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I)),O=function(R){if(R.target.parentNode===I){var C=S.statics.formats(I),P=f.default.find(R.target);C==="checked"?P.format("list","unchecked"):C==="unchecked"&&P.format("list","checked")}};return I.addEventListener("touchstart",O),I.addEventListener("mousedown",O),S}return o(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof w)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);T.blotName="list",T.scope=f.default.Scope.BLOCK_BLOT,T.tagName=["OL","UL"],T.defaultChild="list-item",T.allowedChildren=[w],n.ListItem=w,n.default=T},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),y}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var m=["alt","height","width"],y=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,T);return typeof T=="string"&&x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,A){return T.hasAttribute(A)&&(x[A]=T.getAttribute(A)),x},{})}},{key:"match",value:function(T){return/\.(jpe?g|gif|png)$/.test(T)||/^data:image\/.+;base64/.test(T)}},{key:"sanitize",value:function(T){return(0,h.sanitize)(T,["http","https","data"])?T:"//:0"}},{key:"value",value:function(T){return T.getAttribute("src")}}]),_}(f.default.Embed);y.blotName="image",y.tagName="IMG",n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var m=["height","width"],y=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,T);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,A){return T.hasAttribute(A)&&(x[A]=T.getAttribute(A)),x},{})}},{key:"sanitize",value:function(T){return h.default.sanitize(T)}},{key:"value",value:function(T){return T.getAttribute("src")}}]),_}(u.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function T(x,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,I){return A&&T(x.prototype,A),I&&T(x,I),x}}(),l=function T(x,A,I){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:T(O,A,I)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(I)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(T){return T&&T.__esModule?T:{default:T}}function m(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function y(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function b(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var _=function(T){b(x,T);function x(){return m(this,x),y(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,null,[{key:"create",value:function(I){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,I);return typeof I=="string"&&(window.katex.render(I,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",I)),S}},{key:"value",value:function(I){return I.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var w=function(T){b(x,T),o(x,null,[{key:"register",value:function(){d.default.register(_,!0)}}]);function x(){m(this,x);var A=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function I(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&I(S.prototype,O),L&&I(S,L),S}}(),l=function I(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:I(C,O,L)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(L)}},u=i(0),f=y(u),h=i(5),d=y(h),p=i(9),c=y(p),v=i(13),m=y(v);function y(I){return I&&I.__esModule?I:{default:I}}function b(I,S){if(!(I instanceof S))throw new TypeError("Cannot call a class as a function")}function _(I,S){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:I}function w(I,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);I.prototype=Object.create(S&&S.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(I,S):I.__proto__=S)}var T=function(I){w(S,I);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return o(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(m.default);T.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(I){w(S,I),o(S,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(T,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(T).forEach(function(C){C.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var S=window.hljs.highlightAuto(I);return S.value}}(),interval:1e3},n.CodeBlock=T,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function S(O,L,R){O===null&&(O=Function.prototype);var C=Object.getOwnPropertyDescriptor(O,L);if(C===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:S(P,L,R)}else{if("value"in C)return C.value;var M=C.get;return M===void 0?void 0:M.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var C=L[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),m=i(41),y=b(m);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function w(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function T(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){T(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.container.classList.add("ql-bubble"),C}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),y.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(S){T(O,S);function O(L,R){_(this,O);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.on(d.default.events.EDITOR_CHANGE,function(P,M,F,q){if(P===d.default.events.SELECTION_CHANGE)if(M!=null&&M.length>0&&q===d.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var Q=C.quill.getLines(M.index,M.length);if(Q.length===1)C.position(C.quill.getBounds(M));else{var z=Q[Q.length-1],rt=C.quill.getIndex(z),W=Math.min(z.length()-1,M.index+M.length-rt),U=C.quill.getBounds(new v.Range(rt,W));C.position(U)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return l(O,[{key:"listen",value:function(){var R=this;o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),P=this.root.querySelector(".ql-tooltip-arrow");if(P.style.marginLeft="",C===0)return C;P.style.marginLeft=-1*C-P.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);I.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=I,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(bv);var dN=bv.exports;const pN=En(dN),eB="",vN=Et.forwardRef((e,t)=>{const[r,n]=_t.useState(!1);console.log("allProps",e);const i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(16),h=_t.useRef(null),{uniqueId:d,text:p,disabled:c,transformation:v,onTextUpdate:m,pointerdown:y}=e,{x:b,y:_,fontFamily:w="Arial",fontWeight:T="normal",fontStyle:x="normal",fontSize:A=16,fill:I="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:C=null,wordWrapWidth:P=5e7,leading:M=0,letterSpacing:F,colorCorrection:q={}}=v,{temperatureFilter:Q,sharpnessFilter:z,hueFilter:rt,blurFilter:W,adjustmentFilter:U}=_s(q),{blurRadius:k=0}=q;Et.useEffect(()=>{f.current=Number(A)},[A]);const j=["italic","oblique"].includes(x)?x:void 0,G=["bold","lighter","100","200","300"].includes(T)?T:void 0,K=Number(F)>0?F:void 0,X=Et.useMemo(()=>new on.TextStyle({fontFamily:w,fontSize:A,fill:I||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...j&&{fontStyle:j},...G&&{fontWeight:G},...K&&{letterSpacing:K},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(C==null?void 0:C.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:P||500,leading:M||0}),[R,L,I,w,A,M,j,G,K,C,S,O,P]);Et.useEffect(()=>{h.current={...v}},[v]);const $=V=>{m&&m({text:V,uniqueId:d,droptype:"titles"})};return Et.useEffect(()=>{if(r&&l.current){let Z=document.getElementById("note-editor");if(Z){Z.style.position="absolute",Z.style.zIndex="10",Z.style.left=b+"px",Z.style.top=_+"px",Z.style.backgroundColor="var(--chakra-color-darkShark)",Z.style.transform="scale(1.5)",Z.style.width="300px",Z.style.height="100px",Z.style.color="#fff",Z.style.fontSize="20px",Z.style.border="1px solid #CBCEE0";const J={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var V=new pN("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...J}}},placeholder:"Compose your text here...",theme:"snow"});V.on("text-change",function(){$(V.root.innerText)}),V.setText(p),V.focus(),V.off("text-change",()=>{console.log("removed")}),V.hasFocus()||(Z.style.display="none")}}},[b,_,r]),ee.jsx(ni,{...e,ref:t,isText:!0,children:ee.jsxs(xe.Container,{ref:i,children:[r&&ee.jsx(xe.Container,{ref:l}),ee.jsx(xe.Container,{alpha:r?0:1,ref:u,children:ee.jsx(xe.Text,{style:X,x:b,y:_,anchor:.5,text:p,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:y},ref:o,filters:[Q,z,rt,U,...k>0?[W]:[]]})})]})})}),gN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},mN=Et.forwardRef((e,t)=>{const[,r]=Et.useState(!1),[,n]=Et.useState({isWaiting:!1,isStalled:!1}),[i,o]=Et.useState(),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(null),h=_t.useRef(gN),d=_t.useRef(),{tl:p,isDragging:c}=_t.useContext(ti),{uniqueId:v,mute:m=!1,src:y,startAt:b,endAt:_,frameStartAt:w,frameEndAt:T,transformation:{x,y:A,width:I,height:S,animation:O,colorCorrection:L={}},pointerdown:R}=e,{blurRadius:C=0}=L,{temperatureFilter:P,sharpnessFilter:M,hueFilter:F,blurFilter:q,adjustmentFilter:Q}=_s(L),z=y||"",rt=Et.useMemo(()=>{const G=document.createElement("video");return G.src=y,G.crossOrigin="Anonymus",G.autoplay=!1,G.currentTime=w===0?.001:w,G},[y,w]);mr(ke.PAUSE,()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Et.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1,f.current.muted=m)},[m,c]);const W=G=>{f.current&&(f.current.currentTime=Number(G),c||(f.current.currentTime=Number(G),f.current.play(),h.current.isPlaying=!0))},U=()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},k=()=>{},j=()=>{var G;if(f.current&&d.current){const K=w+((G=d.current)==null?void 0:G.time());Math.abs(f.current.currentTime-K);const X=f.current,$=X.currentTime>0&&!X.paused&&!X.ended&&X.readyState>X.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=K,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||($||f.current.play(),h.current.isPlaying=!0)}};return _t.useEffect(()=>{let G=Te.context(()=>{});if(u.current&&p.current){console.log("timlinepixi",w,T);const K={duration:Number(T)-Number(w),onStart:W,onComplete:U,onStartParams:[w,T],onCompleteParams:[],onInterrupt:k,onUpdate:j,onUpdateParams:[w,T]};d.current&&d.current.kill(),G=Te.context(()=>{d.current=Te.from(u.current,K,w),p.current.add(d.current,b)})}return()=>{d.current&&(d.current.kill(),Te.killTweensOf(d.current)),G.revert()}},[O,b,_,w,T]),Et.useEffect(()=>{u.current&&r(!0)},[]),Et.useEffect(()=>{f.current&&(f.current.muted=m)},[m]),Et.useEffect(()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Et.useEffect(()=>{const G=Math.round((Number(w)+Number.EPSILON)*100)/100,K=function(){f.current&&(f.current.currentTime=G)},X=function(){if(f.current){const dt=f.current;dt.currentTime>0&&!dt.paused&&!dt.ended&&dt.readyState>dt.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},$=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},V=function(){n({isWaiting:!1,isStalled:!1})},Z=function(){n({isWaiting:!1,isStalled:!0})},J=Math.round((Number(w)+Number.EPSILON)*100)/100,nt=Math.round((Number(T)+Number.EPSILON)*100)/100,at=`${z}#t=${J},${nt}`;return console.log("urlTimestap",at),on.Texture.fromLoader(rt,at,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(dt=>{dt&&(o(dt),f.current=dt.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",K),f.current.addEventListener("ended",X),f.current.addEventListener("loadstart",$),f.current.addEventListener("canplaythrough",V),f.current.addEventListener("stalled",Z))}),()=>{f.current&&(f.current.pause(),f.current.removeEventListener("loadedmetadata",K),f.current.removeEventListener("ended",X),f.current.removeEventListener("loadstart",$),f.current.removeEventListener("canplaythrough",V),f.current.removeEventListener("stalled",Z))}},[z,v,w,T,rt]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,children:ee.jsx(xe.Container,{ref:u,children:i&&ee.jsx(xe.Sprite,{texture:i,width:I,height:S,anchor:.5,x,y:A,ref:l,interactive:!0,pointerdown:R,filters:[P,M,F,Q,...C>0?[q]:[]]})})})});var xv=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(xv||{}),wv=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(wv||{});ie.Animations=xv,ie.BlendModes=wv,ie.Events=ke,ie.GsapPixieContext=ti,ie.GsapPixieContextProvider=hy,ie.PixiAnimatedSprite=yv,ie.PixiAudioSprite=IA,ie.PixiGifSprite=hN,ie.PixiImageSprite=qE,ie.PixiSvgPathSprite=eA,ie.PixiTextSprite=vN,ie.PixiVideoSprite=mN,ie.emitCustomEvent=Jn,ie.newCustomEventEmitter=cy,ie.useCustomEventListener=mr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
1989
+ `)}return lt}function fe(st,lt){var pt={},vt=st.style||{};return vt.fontStyle&&K(st).fontStyle==="italic"&&(pt.italic=!0),vt.fontWeight&&(K(st).fontWeight.startsWith("bold")||parseInt(K(st).fontWeight)>=700)&&(pt.bold=!0),Object.keys(pt).length>0&&(lt=G(lt,pt)),parseFloat(vt.textIndent||0)>0&&(lt=new p.default().insert(" ").concat(lt)),lt}function Xt(st,lt){var pt=st.data;if(st.parentNode.tagName==="O:P")return lt.insert(pt.trim());if(pt.trim().length===0&&st.parentNode.classList.contains("ql-clipboard"))return lt;if(!K(st.parentNode).whiteSpace.startsWith("pre")){var vt=function(Pt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Pt?" ":Lt};pt=pt.replace(/\r\n/g," ").replace(/\n/g," "),pt=pt.replace(/\s\s+/g,vt.bind(vt,!0)),(st.previousSibling==null&&$(st.parentNode)||st.previousSibling!=null&&$(st.previousSibling))&&(pt=pt.replace(/^\s+/,vt.bind(vt,!1))),(st.nextSibling==null&&$(st.parentNode)||st.nextSibling!=null&&$(st.nextSibling))&&(pt=pt.replace(/\s+$/,vt.bind(vt,!1)))}return lt.insert(pt)}n.default=j,n.matchAttributor=Z,n.matchBlot=nt,n.matchNewline=xt,n.matchSpacing=At,n.matchText=Xt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"optimize",value:function(_){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),y}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function C(P,M){var F=[],q=!0,Q=!1,z=void 0;try{for(var rt=P[Symbol.iterator](),W;!(q=(W=rt.next()).done)&&(F.push(W.value),!(M&&F.length===M));q=!0);}catch(D){Q=!0,z=D}finally{try{!q&&rt.return&&rt.return()}finally{if(Q)throw z}}return F}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),u=i(2),f=_(u),h=i(0),d=_(h),p=i(5),c=_(p),v=i(10),m=_(v),y=i(9),b=_(y);function _(C){return C&&C.__esModule?C:{default:C}}function w(C,P,M){return P in C?Object.defineProperty(C,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):C[P]=M,C}function T(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function x(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function A(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var I=(0,m.default)("quill:toolbar"),S=function(C){A(P,C);function P(M,F){T(this,P);var q=x(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M,F));if(Array.isArray(q.options.container)){var Q=document.createElement("div");L(Q,q.options.container),M.container.parentNode.insertBefore(Q,M.container),q.container=Q}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=I.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(rt){q.addHandler(rt,q.options.handlers[rt])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(rt){q.attach(rt)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(rt,W){rt===c.default.events.SELECTION_CHANGE&&q.update(W)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var rt=q.quill.selection.getRange(),W=o(rt,1),D=W[0];q.update(D)}),q}return l(P,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,Q=[].find.call(F.classList,function(rt){return rt.indexOf("ql-")===0});if(Q){if(Q=Q.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[Q]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Q]==null){I.warn("ignoring attaching to disabled format",Q,F);return}if(d.default.query(Q)==null){I.warn("ignoring attaching to nonexistent format",Q,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(rt){var W=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var D=F.options[F.selectedIndex];D.hasAttribute("selected")?W=!1:W=D.value||!1}else F.classList.contains("ql-active")?W=!1:W=F.value||!F.hasAttribute("value"),rt.preventDefault();q.quill.focus();var k=q.quill.selection.getRange(),j=o(k,1),G=j[0];if(q.handlers[Q]!=null)q.handlers[Q].call(q,W);else if(d.default.query(Q).prototype instanceof d.default.Embed){if(W=prompt("Enter "+Q),!W)return;q.quill.updateContents(new f.default().retain(G.index).delete(G.length).insert(w({},Q,W)),c.default.sources.USER)}else q.quill.format(Q,W,c.default.sources.USER);q.update(G)}),this.controls.push([Q,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(Q){var z=o(Q,2),rt=z[0],W=z[1];if(W.tagName==="SELECT"){var D=void 0;if(F==null)D=null;else if(q[rt]==null)D=W.querySelector("option[selected]");else if(!Array.isArray(q[rt])){var k=q[rt];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),D=W.querySelector('option[value="'+k+'"]')}D==null?(W.value="",W.selectedIndex=-1):D.selected=!0}else if(F==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var j=q[rt]===W.getAttribute("value")||q[rt]!=null&&q[rt].toString()===W.getAttribute("value")||q[rt]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",j)}else W.classList.toggle("ql-active",q[rt]!=null)})}}]),P}(b.default);S.DEFAULTS={};function O(C,P,M){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+P),M!=null&&(F.value=M),C.appendChild(F)}function L(C,P){Array.isArray(P[0])||(P=[P]),P.forEach(function(M){var F=document.createElement("span");F.classList.add("ql-formats"),M.forEach(function(q){if(typeof q=="string")O(F,q);else{var Q=Object.keys(q)[0],z=q[Q];Array.isArray(z)?R(F,Q,z):O(F,Q,z)}}),C.appendChild(F)})}function R(C,P,M){var F=document.createElement("select");F.classList.add("ql-"+P),M.forEach(function(q){var Q=document.createElement("option");q!==!1?Q.setAttribute("value",q):Q.setAttribute("selected","selected"),F.appendChild(Q)}),C.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var P=this,M=this.quill.getSelection();if(M!=null)if(M.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){d.default.query(q,d.default.Scope.INLINE)!=null&&P.quill.format(q,!1)})}else this.quill.removeFormat(M,c.default.sources.USER)},direction:function(P){var M=this.quill.getFormat().align;P==="rtl"&&M==null?this.quill.format("align","right",c.default.sources.USER):!P&&M==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",P,c.default.sources.USER)},indent:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M),q=parseInt(F.indent||0);if(P==="+1"||P==="-1"){var Q=P==="+1"?1:-1;F.direction==="rtl"&&(Q*=-1),this.quill.format("indent",q+Q,c.default.sources.USER)}},link:function(P){P===!0&&(P=prompt("Enter link URL:")),this.quill.format("link",P,c.default.sources.USER)},list:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M);P==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",P,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(b,_){d(this,y);var w=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return w.label.innerHTML=_,w.container.classList.add("ql-color-picker"),[].slice.call(w.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(T){T.classList.add("ql-primary")}),w}return o(y,[{key:"buildItem",value:function(_){var w=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"buildItem",this).call(this,_);return w.style.backgroundColor=_.getAttribute("value")||"",w}},{key:"selectItem",value:function(_,w){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,_,w);var T=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";T&&(T.tagName==="line"?T.style.stroke=x:T.style.fill=x)}}]),y}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(b,_){d(this,y);var w=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return w.container.classList.add("ql-icon-picker"),[].forEach.call(w.container.querySelectorAll(".ql-picker-item"),function(T){T.innerHTML=_[T.getAttribute("data-value")||""]}),w.defaultItem=w.container.querySelector(".ql-selected"),w.selectItem(w.defaultItem),w}return o(y,[{key:"selectItem",value:function(_,w){l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"selectItem",this).call(this,_,w),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),y}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),y=0;if(m.right>v.right&&(y=v.right-m.right,this.root.style.left=p+y+"px"),m.left<v.left&&(y=v.left-m.left,this.root.style.left=p+y+"px"),m.bottom>v.bottom){var b=m.bottom-m.top,_=d.bottom-d.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Q=void 0;try{for(var z=C[Symbol.iterator](),rt;!(F=(rt=z.next()).done)&&(M.push(rt.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Q=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Q}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Q=F.get;return Q===void 0?void 0:Q.call(M)}},u=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),f=i(3),h=T(f),d=i(8),p=T(d),c=i(43),v=T(c),m=i(27),y=T(m),b=i(15),_=i(41),w=T(_);function T(R){return R&&R.__esModule?R:{default:R}}function x(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function A(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function I(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){I(C,R);function C(P,M){x(this,C),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=S);var F=A(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.quill.container.classList.add("ql-snow"),F}return u(C,[{key:"extendToolbar",value:function(M){M.container.classList.add("ql-snow"),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),w.default),this.tooltip=new L(this.quill,this.options.bounds),M.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){M.handlers.link.call(M,!q.format.link)})}}]),C}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var P=this.quill.getSelection();if(P==null||P.length==0)return;var M=this.quill.getText(P);/^\S+@\S+\.\S+$/.test(M)&&M.indexOf("mailto:")!==0&&(M="mailto:"+M);var F=this.quill.theme.tooltip;F.edit("link",M)}else this.quill.format("link",!1)}}}}});var L=function(R){I(C,R);function C(P,M){x(this,C);var F=A(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(C,[{key:"listen",value:function(){var M=this;l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){M.root.classList.contains("ql-editing")?M.save():M.edit("link",M.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(M.linkRange!=null){var q=M.linkRange;M.restoreFocus(),M.quill.formatText(q,"link",!1,p.default.sources.USER),delete M.linkRange}F.preventDefault(),M.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,q,Q){if(F!=null){if(F.length===0&&Q===p.default.sources.USER){var z=M.quill.scroll.descendant(y.default,F.index),rt=o(z,2),W=rt[0],D=rt[1];if(W!=null){M.linkRange=new b.Range(F.index-D,W.length());var k=y.default.formats(W.domNode);M.preview.textContent=k,M.preview.setAttribute("href",k),M.show(),M.position(M.quill.getBounds(M.linkRange));return}}else delete M.linkRange;M.hide()}})}},{key:"show",value:function(){l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),l=ct(o),u=i(36),f=i(38),h=i(64),d=i(65),p=ct(d),c=i(66),v=ct(c),m=i(67),y=ct(m),b=i(37),_=i(26),w=i(39),T=i(40),x=i(56),A=ct(x),I=i(68),S=ct(I),O=i(27),L=ct(O),R=i(69),C=ct(R),P=i(70),M=ct(P),F=i(71),q=ct(F),Q=i(72),z=ct(Q),rt=i(73),W=ct(rt),D=i(13),k=ct(D),j=i(74),G=ct(j),K=i(75),X=ct(K),$=i(57),V=ct($),J=i(41),Z=ct(J),nt=i(28),at=ct(nt),dt=i(59),gt=ct(dt),xt=i(60),At=ct(xt),fe=i(61),Xt=ct(fe),st=i(108),lt=ct(st),pt=i(62),vt=ct(pt);function ct(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":T.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":T.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":w.FontClass,"formats/size":T.SizeClass,"formats/blockquote":p.default,"formats/code-block":k.default,"formats/header":v.default,"formats/list":y.default,"formats/bold":A.default,"formats/code":D.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":C.default,"formats/strike":M.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":W.default,"formats/list/item":m.ListItem,"modules/formula":G.default,"modules/syntax":X.default,"modules/toolbar":V.default,"themes/bubble":lt.default,"themes/snow":vt.default,"ui/icons":Z.default,"ui/picker":at.default,"ui/icon-picker":At.default,"ui/color-picker":gt.default,"ui/tooltip":Xt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function y(b,_){for(var w=0;w<_.length;w++){var T=_[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,_,w){return _&&y(b.prototype,_),w&&y(b,w),b}}(),l=function y(b,_,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,_);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:y(x,_,w)}else{if("value"in T)return T.value;var A=T.get;return A===void 0?void 0:A.call(w)}},u=i(0),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function p(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function c(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var v=function(y){c(b,y);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(w,T){if(T==="+1"||T==="-1"){var x=this.value(w)||0;T=T==="+1"?x+1:x-1}return T===0?(this.remove(w),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,w,T)}},{key:"canAdd",value:function(w,T){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,T)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,parseInt(T))}},{key:"value",value:function(w){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,w))||void 0}}]),b}(f.default.Attributor.Class),m=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function v(m,y){for(var b=0;b<y.length;b++){var _=y[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}return function(m,y,b){return y&&v(m.prototype,y),b&&v(m,b),m}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function p(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var c=function(v){p(m,v);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function x(A,I){for(var S=0;S<I.length;S++){var O=I[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,I,S){return I&&x(A.prototype,I),S&&x(A,S),A}}(),l=function x(A,I,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,I);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,I,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function m(x,A,I){return A in x?Object.defineProperty(x,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):x[A]=I,x}function y(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var w=function(x){_(A,x);function A(){return y(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"format",value:function(S,O){S===T.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(d.default);w.blotName="list-item",w.tagName="LI";var T=function(x){_(A,x),o(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(I){y(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I)),O=function(R){if(R.target.parentNode===I){var C=S.statics.formats(I),P=f.default.find(R.target);C==="checked"?P.format("list","unchecked"):C==="unchecked"&&P.format("list","checked")}};return I.addEventListener("touchstart",O),I.addEventListener("mousedown",O),S}return o(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof w)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);T.blotName="list",T.scope=f.default.Scope.BLOCK_BLOT,T.tagName=["OL","UL"],T.defaultChild="list-item",T.allowedChildren=[w],n.ListItem=w,n.default=T},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(y,b){for(var _=0;_<b.length;_++){var w=b[_];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,_){return b&&m(y.prototype,b),_&&m(y,_),y}}(),l=function m(y,b,_){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var T=Object.getPrototypeOf(y);return T===null?void 0:m(T,b,_)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")}function p(m,y){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:m}function c(m,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);m.prototype=Object.create(y&&y.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(m,y):m.__proto__=y)}var v=function(m){c(y,m);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),y}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var m=["alt","height","width"],y=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,T);return typeof T=="string"&&x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,A){return T.hasAttribute(A)&&(x[A]=T.getAttribute(A)),x},{})}},{key:"match",value:function(T){return/\.(jpe?g|gif|png)$/.test(T)||/^data:image\/.+;base64/.test(T)}},{key:"sanitize",value:function(T){return(0,h.sanitize)(T,["http","https","data"])?T:"//:0"}},{key:"value",value:function(T){return T.getAttribute("src")}}]),_}(f.default.Embed);y.blotName="image",y.tagName="IMG",n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(_,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,w,T){return w&&b(_.prototype,w),T&&b(_,T),_}}(),l=function b(_,w,T){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,w);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var m=["height","width"],y=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,T);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,A){return T.hasAttribute(A)&&(x[A]=T.getAttribute(A)),x},{})}},{key:"sanitize",value:function(T){return h.default.sanitize(T)}},{key:"value",value:function(T){return T.getAttribute("src")}}]),_}(u.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function T(x,A){for(var I=0;I<A.length;I++){var S=A[I];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,I){return A&&T(x.prototype,A),I&&T(x,I),x}}(),l=function T(x,A,I){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:T(O,A,I)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(I)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(T){return T&&T.__esModule?T:{default:T}}function m(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function y(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function b(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var _=function(T){b(x,T);function x(){return m(this,x),y(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,null,[{key:"create",value:function(I){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,I);return typeof I=="string"&&(window.katex.render(I,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",I)),S}},{key:"value",value:function(I){return I.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var w=function(T){b(x,T),o(x,null,[{key:"register",value:function(){d.default.register(_,!0)}}]);function x(){m(this,x);var A=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function I(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&I(S.prototype,O),L&&I(S,L),S}}(),l=function I(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:I(C,O,L)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(L)}},u=i(0),f=y(u),h=i(5),d=y(h),p=i(9),c=y(p),v=i(13),m=y(v);function y(I){return I&&I.__esModule?I:{default:I}}function b(I,S){if(!(I instanceof S))throw new TypeError("Cannot call a class as a function")}function _(I,S){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:I}function w(I,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);I.prototype=Object.create(S&&S.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(I,S):I.__proto__=S)}var T=function(I){w(S,I);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return o(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(m.default);T.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(I){w(S,I),o(S,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(T,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(T).forEach(function(C){C.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var S=window.hljs.highlightAuto(I);return S.value}}(),interval:1e3},n.CodeBlock=T,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function S(O,L,R){O===null&&(O=Function.prototype);var C=Object.getOwnPropertyDescriptor(O,L);if(C===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:S(P,L,R)}else{if("value"in C)return C.value;var M=C.get;return M===void 0?void 0:M.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var C=L[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),m=i(41),y=b(m);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function w(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function T(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){T(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.container.classList.add("ql-bubble"),C}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),y.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(S){T(O,S);function O(L,R){_(this,O);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.on(d.default.events.EDITOR_CHANGE,function(P,M,F,q){if(P===d.default.events.SELECTION_CHANGE)if(M!=null&&M.length>0&&q===d.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var Q=C.quill.getLines(M.index,M.length);if(Q.length===1)C.position(C.quill.getBounds(M));else{var z=Q[Q.length-1],rt=C.quill.getIndex(z),W=Math.min(z.length()-1,M.index+M.length-rt),D=C.quill.getBounds(new v.Range(rt,W));C.position(D)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return l(O,[{key:"listen",value:function(){var R=this;o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),P=this.root.querySelector(".ql-tooltip-arrow");if(P.style.marginLeft="",C===0)return C;P.style.marginLeft=-1*C-P.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);I.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=I,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(bv);var dN=bv.exports;const pN=En(dN),eB="",vN=Et.forwardRef((e,t)=>{const[r,n]=_t.useState(!1);console.log("allProps",e);const i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(16),h=_t.useRef(null),{uniqueId:d,text:p,disabled:c,transformation:v,onTextUpdate:m,pointerdown:y}=e,{x:b,y:_,fontFamily:w="Arial",fontWeight:T="normal",fontStyle:x="normal",fontSize:A=16,fill:I="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:C=null,wordWrapWidth:P=5e7,leading:M=0,letterSpacing:F,colorCorrection:q={}}=v,{temperatureFilter:Q,sharpnessFilter:z,hueFilter:rt,blurFilter:W,adjustmentFilter:D}=_s(q),{blurRadius:k=0}=q;Et.useEffect(()=>{f.current=Number(A)},[A]);const j=["italic","oblique"].includes(x)?x:void 0,G=["bold","lighter","100","200","300"].includes(T)?T:void 0,K=Number(F)>0?F:void 0,X=Et.useMemo(()=>new on.TextStyle({fontFamily:w,fontSize:A,fill:I||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...j&&{fontStyle:j},...G&&{fontWeight:G},...K&&{letterSpacing:K},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(C==null?void 0:C.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:P||500,leading:M||0}),[R,L,I,w,A,M,j,G,K,C,S,O,P]);Et.useEffect(()=>{h.current={...v}},[v]);const $=V=>{m&&m({text:V,uniqueId:d,droptype:"titles"})};return Et.useEffect(()=>{if(r&&l.current){let J=document.getElementById("note-editor");if(J){J.style.position="absolute",J.style.zIndex="10",J.style.left=b+"px",J.style.top=_+"px",J.style.backgroundColor="var(--chakra-color-darkShark)",J.style.transform="scale(1.5)",J.style.width="300px",J.style.height="100px",J.style.color="#fff",J.style.fontSize="20px",J.style.border="1px solid #CBCEE0";const Z={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var V=new pN("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...Z}}},placeholder:"Compose your text here...",theme:"snow"});V.on("text-change",function(){$(V.root.innerText)}),V.setText(p),V.focus(),V.off("text-change",()=>{console.log("removed")}),V.hasFocus()||(J.style.display="none")}}},[b,_,r]),ee.jsx(ni,{...e,ref:t,isText:!0,children:ee.jsxs(ye.Container,{ref:i,children:[r&&ee.jsx(ye.Container,{ref:l}),ee.jsx(ye.Container,{alpha:r?0:1,ref:u,children:ee.jsx(ye.Text,{style:X,x:b,y:_,anchor:.5,text:p,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:y},ref:o,filters:[Q,z,rt,D,...k>0?[W]:[]]})})]})})}),gN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},mN=Et.forwardRef((e,t)=>{const[,r]=Et.useState(!1),[,n]=Et.useState({isWaiting:!1,isStalled:!1}),[i,o]=Et.useState(),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(null),h=_t.useRef(gN),d=_t.useRef(),{tl:p,isDragging:c}=_t.useContext(ti),{uniqueId:v,mute:m=!1,src:y,startAt:b,endAt:_,frameStartAt:w,frameEndAt:T,transformation:{x,y:A,width:I,height:S,animation:O,colorCorrection:L={}},pointerdown:R}=e,{blurRadius:C=0}=L,{temperatureFilter:P,sharpnessFilter:M,hueFilter:F,blurFilter:q,adjustmentFilter:Q}=_s(L),z=y||"",rt=Et.useMemo(()=>{const G=document.createElement("video");return G.src=y,G.crossOrigin="Anonymus",G.autoplay=!1,G.currentTime=w===0?.001:w,G},[y,w]);mr(ke.PAUSE,()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Et.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1,f.current.muted=m)},[m,c]);const W=G=>{f.current&&(f.current.currentTime=Number(G),c||(f.current.currentTime=Number(G),f.current.play(),h.current.isPlaying=!0))},D=()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},k=()=>{},j=()=>{var G;if(f.current&&d.current){const K=w+((G=d.current)==null?void 0:G.time());Math.abs(f.current.currentTime-K);const X=f.current,$=X.currentTime>0&&!X.paused&&!X.ended&&X.readyState>X.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=K,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||($||f.current.play(),h.current.isPlaying=!0)}};return _t.useEffect(()=>{let G=Te.context(()=>{});if(u.current&&p.current){console.log("timlinepixi",w,T);const K={duration:Number(T)-Number(w),onStart:W,onComplete:D,onStartParams:[w,T],onCompleteParams:[],onInterrupt:k,onUpdate:j,onUpdateParams:[w,T]};d.current&&d.current.kill(),G=Te.context(()=>{d.current=Te.from(u.current,K,w),p.current.add(d.current,b)})}return()=>{d.current&&(d.current.kill(),Te.killTweensOf(d.current)),G.revert()}},[O,b,_,w,T]),Et.useEffect(()=>{u.current&&r(!0)},[]),Et.useEffect(()=>{f.current&&(f.current.muted=m)},[m]),Et.useEffect(()=>{if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Et.useEffect(()=>{const G=Math.round((Number(w)+Number.EPSILON)*100)/100,K=function(){f.current&&(f.current.currentTime=G)},X=function(){if(f.current){const dt=f.current;dt.currentTime>0&&!dt.paused&&!dt.ended&&dt.readyState>dt.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},$=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},V=function(){n({isWaiting:!1,isStalled:!1})},J=function(){n({isWaiting:!1,isStalled:!0})},Z=Math.round((Number(w)+Number.EPSILON)*100)/100,nt=Math.round((Number(T)+Number.EPSILON)*100)/100,at=`${z}#t=${Z},${nt}`;return console.log("urlTimestap",at),on.Texture.fromLoader(rt,at,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(dt=>{dt&&(o(dt),f.current=dt.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",K),f.current.addEventListener("ended",X),f.current.addEventListener("loadstart",$),f.current.addEventListener("canplaythrough",V),f.current.addEventListener("stalled",J))}),()=>{f.current&&(f.current.pause(),f.current.removeEventListener("loadedmetadata",K),f.current.removeEventListener("ended",X),f.current.removeEventListener("loadstart",$),f.current.removeEventListener("canplaythrough",V),f.current.removeEventListener("stalled",J))}},[z,v,w,T,rt]),ee.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,children:ee.jsx(ye.Container,{ref:u,children:i&&ee.jsx(ye.Sprite,{texture:i,width:I,height:S,anchor:.5,x,y:A,ref:l,interactive:!0,pointerdown:R,filters:[P,M,F,Q,...C>0?[q]:[]]})})})});var xv=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(xv||{}),wv=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(wv||{});ie.Animations=xv,ie.BlendModes=wv,ie.Events=ke,ie.GsapPixieContext=ti,ie.GsapPixieContextProvider=hy,ie.PixiAnimatedSprite=yv,ie.PixiAudioSprite=IA,ie.PixiGifSprite=hN,ie.PixiImageSprite=qE,ie.PixiSvgPathSprite=eA,ie.PixiTextSprite=vN,ie.PixiVideoSprite=mN,ie.emitCustomEvent=Jn,ie.newCustomEventEmitter=cy,ie.useCustomEventListener=mr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});