reacthub-pixitweenjs 0.2.45 → 0.2.46

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.es.js CHANGED
@@ -11214,7 +11214,7 @@ const Wg = /* @__PURE__ */ Pr(Xg), rw = (e) => {
11214
11214
  </svg>`, x = new xg(y), O = b.renderer.generateTexture(x);
11215
11215
  return r(O), () => {
11216
11216
  };
11217
- }, [b, a, p, v, d, u, c, f]), /* @__PURE__ */ dt.jsx(gi, { ...e, children: /* @__PURE__ */ dt.jsx(Mt, { ref: i, children: /* @__PURE__ */ dt.jsx(Mt, { ref: s, children: t && /* @__PURE__ */ dt.jsx(
11217
+ }, [b, a, p, v, u, d]), /* @__PURE__ */ dt.jsx(gi, { ...e, children: /* @__PURE__ */ dt.jsx(Mt, { ref: i, children: /* @__PURE__ */ dt.jsx(Mt, { ref: s, children: t && /* @__PURE__ */ dt.jsx(
11218
11218
  Xs,
11219
11219
  {
11220
11220
  texture: t,
@@ -20108,7 +20108,7 @@ const sw = (e) => {
20108
20108
  fill: T = "black",
20109
20109
  // stroke
20110
20110
  stroke: E,
20111
- strokeThickness: N,
20111
+ strokeThickness: N = 0,
20112
20112
  // drop shadow
20113
20113
  blurRadius: A = 0,
20114
20114
  blurEnabled: w = !1,
@@ -20128,8 +20128,10 @@ const sw = (e) => {
20128
20128
  fontSize: O,
20129
20129
  fill: T || "white",
20130
20130
  //[color, '#00ff99'], // gradient
20131
- stroke: E,
20132
- strokeThickness: N,
20131
+ ...E && N > 0 && {
20132
+ stroke: E,
20133
+ strokeThickness: N
20134
+ },
20133
20135
  ...D && {
20134
20136
  fontStyle: D
20135
20137
  },
package/dist/index.umd.js CHANGED
@@ -547,7 +547,7 @@ void main(void)
547
547
  */(function(e,t){(function(r,n){e.exports=n()})(Bm,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},s={number:function(v){return+d("number",v)},"coordinate pair":function(v){var g=d("number",v);if(g===null&&!v)return null;d("comma");var m=d("number",!0);return{x:+g,y:+m}},"arc definition":function(v){var g=s["coordinate pair"](v);if(!g&&!v)return null;d("comma");var m=+d("number",!0);d("comma",!0);var b=!!+d("flag",!0);d("comma");var _=!!+d("flag",!0);d("comma");var y=s["coordinate pair"](!0);return{radii:g,rotation:m,large:b,clockwise:_,end:y}}},a=0,o=[];a<n.length;){var l=d("command"),f=l.toUpperCase(),c=l!==f,h;switch(f){case"M":h=p("coordinate pair").map(function(v,g){return g===1&&(l=c?"l":"L"),u({end:v})});break;case"L":case"T":h=p("coordinate pair").map(function(v){return u({end:v})});break;case"C":if(h=p("coordinate pair"),h.length%3)throw Error("Expected coordinate pair triplet at position "+a);h=h.reduce(function(v,g,m){var b=m%3;if(!b)v.push(u({cp1:g}));else{var _=v[v.length-1];_[b===1?"cp2":"end"]=g}return v},[]);break;case"Q":case"S":if(h=p("coordinate pair"),h.length&1)throw Error("Expected coordinate pair couple at position "+a);h=h.reduce(function(v,g,m){var b=m&1;if(!b)v.push(u({cp:g}));else{var _=v[v.length-1];_.end=g}return v},[]);break;case"H":case"V":h=p("number").map(function(v){return u({value:v})});break;case"A":h=p("arc definition").map(u);break;case"Z":h=[{code:"Z"}];break}o.push.apply(o,h)}return o;function u(v){return v.code=l,v.relative=c,v}function d(v,g){i[v].lastIndex=a;var m=i[v].exec(n);if(!m||m.index!==a){if(!g)return null;throw Error("Expected "+v+" at position "+a)}return a=i[v].lastIndex,m[1]}function p(v){for(var g=[],m,b=!0;m=s[v](b);)g.push(m),b=!!d("comma");return g}}})})(Um);const Dm=/^\s+/,jm=/\s+$/;function it(e,t){if(e=e||"",t=t||{},e instanceof it)return e;if(!(this instanceof it))return new it(e,t);var r=$m(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}it.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,s,a;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?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*s+.0722*a},setAlpha:function(e){return this._a=gu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=pu(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=pu(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=du(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=du(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 vu(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return Vm(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(Nt(this._r,255)*100)+"%",g:Math.round(Nt(this._g,255)*100)+"%",b:Math.round(Nt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%)":"rgba("+Math.round(Nt(this._r,255)*100)+"%, "+Math.round(Nt(this._g,255)*100)+"%, "+Math.round(Nt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ng[vu(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+yu(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=it(e);r="#"+yu(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 it(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(Ym,arguments)},brighten:function(){return this._applyModification(Km,arguments)},darken:function(){return this._applyModification(Zm,arguments)},desaturate:function(){return this._applyModification(zm,arguments)},saturate:function(){return this._applyModification(Xm,arguments)},greyscale:function(){return this._applyModification(Wm,arguments)},spin:function(){return this._applyModification(Qm,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(eg,arguments)},complement:function(){return this._applyCombination(Jm,arguments)},monochromatic:function(){return this._applyCombination(rg,arguments)},splitcomplement:function(){return this._applyCombination(tg,arguments)},triad:function(){return this._applyCombination(mu,[3])},tetrad:function(){return this._applyCombination(mu,[4])}},it.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]=ln(e[n]));e=r}return it(e,t)};function $m(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,s=null,a=!1,o=!1;return typeof e=="string"&&(e=og(e)),typeof e=="object"&&(Ie(e.r)&&Ie(e.g)&&Ie(e.b)?(t=Gm(e.r,e.g,e.b),a=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ie(e.h)&&Ie(e.s)&&Ie(e.v)?(n=ln(e.s),i=ln(e.v),t=Hm(e.h,n,i),a=!0,o="hsv"):Ie(e.h)&&Ie(e.s)&&Ie(e.l)&&(n=ln(e.s),s=ln(e.l),t=qm(e.h,n,s),a=!0,o="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=gu(r),{ok:a,format:e.format||o,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 Gm(e,t,r){return{r:Nt(e,255)*255,g:Nt(t,255)*255,b:Nt(r,255)*255}}function du(e,t,r){e=Nt(e,255),t=Nt(t,255),r=Nt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),s,a,o=(n+i)/2;if(n==i)s=a=0;else{var l=n-i;switch(a=o>.5?l/(2-n-i):l/(n+i),n){case e:s=(t-r)/l+(t<r?6:0);break;case t:s=(r-e)/l+2;break;case r:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,l:o}}function qm(e,t,r){var n,i,s;e=Nt(e,360),t=Nt(t,100),r=Nt(r,100);function a(f,c,h){return h<0&&(h+=1),h>1&&(h-=1),h<1/6?f+(c-f)*6*h:h<1/2?c:h<2/3?f+(c-f)*(2/3-h)*6:f}if(t===0)n=i=s=r;else{var o=r<.5?r*(1+t):r+t-r*t,l=2*r-o;n=a(l,o,e+1/3),i=a(l,o,e),s=a(l,o,e-1/3)}return{r:n*255,g:i*255,b:s*255}}function pu(e,t,r){e=Nt(e,255),t=Nt(t,255),r=Nt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),s,a,o=n,l=n-i;if(a=n===0?0:l/n,n==i)s=0;else{switch(n){case e:s=(t-r)/l+(t<r?6:0);break;case t:s=(r-e)/l+2;break;case r:s=(e-t)/l+4;break}s/=6}return{h:s,s:a,v:o}}function Hm(e,t,r){e=Nt(e,360)*6,t=Nt(t,100),r=Nt(r,100);var n=Math.floor(e),i=e-n,s=r*(1-t),a=r*(1-i*t),o=r*(1-(1-i)*t),l=n%6,f=[r,a,s,s,o,r][l],c=[o,r,r,a,s,s][l],h=[s,s,o,r,r,a][l];return{r:f*255,g:c*255,b:h*255}}function vu(e,t,r,n){var i=[fe(Math.round(e).toString(16)),fe(Math.round(t).toString(16)),fe(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 Vm(e,t,r,n,i){var s=[fe(Math.round(e).toString(16)),fe(Math.round(t).toString(16)),fe(Math.round(r).toString(16)),fe(bu(n))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function yu(e,t,r,n){var i=[fe(bu(n)),fe(Math.round(e).toString(16)),fe(Math.round(t).toString(16)),fe(Math.round(r).toString(16))];return i.join("")}it.equals=function(e,t){return!e||!t?!1:it(e).toRgbString()==it(t).toRgbString()},it.random=function(){return it.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function zm(e,t){t=t===0?0:t||10;var r=it(e).toHsl();return r.s-=t/100,r.s=hi(r.s),it(r)}function Xm(e,t){t=t===0?0:t||10;var r=it(e).toHsl();return r.s+=t/100,r.s=hi(r.s),it(r)}function Wm(e){return it(e).desaturate(100)}function Ym(e,t){t=t===0?0:t||10;var r=it(e).toHsl();return r.l+=t/100,r.l=hi(r.l),it(r)}function Km(e,t){t=t===0?0:t||10;var r=it(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)))),it(r)}function Zm(e,t){t=t===0?0:t||10;var r=it(e).toHsl();return r.l-=t/100,r.l=hi(r.l),it(r)}function Qm(e,t){var r=it(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,it(r)}function Jm(e){var t=it(e).toHsl();return t.h=(t.h+180)%360,it(t)}function mu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=it(e).toHsl(),n=[it(e)],i=360/t,s=1;s<t;s++)n.push(it({h:(r.h+s*i)%360,s:r.s,l:r.l}));return n}function tg(e){var t=it(e).toHsl(),r=t.h;return[it(e),it({h:(r+72)%360,s:t.s,l:t.l}),it({h:(r+216)%360,s:t.s,l:t.l})]}function eg(e,t,r){t=t||6,r=r||30;var n=it(e).toHsl(),i=360/r,s=[it(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,s.push(it(n));return s}function rg(e,t){t=t||6;for(var r=it(e).toHsv(),n=r.h,i=r.s,s=r.v,a=[],o=1/t;t--;)a.push(it({h:n,s:i,v:s})),s=(s+o)%1;return a}it.mix=function(e,t,r){r=r===0?0:r||50;var n=it(e).toRgb(),i=it(t).toRgb(),s=r/100,a={r:(i.r-n.r)*s+n.r,g:(i.g-n.g)*s+n.g,b:(i.b-n.b)*s+n.b,a:(i.a-n.a)*s+n.a};return it(a)},it.readability=function(e,t){var r=it(e),n=it(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},it.isReadable=function(e,t,r){var n=it.readability(e,t),i,s;switch(s=!1,i=lg(r),i.level+i.size){case"AAsmall":case"AAAlarge":s=n>=4.5;break;case"AAlarge":s=n>=3;break;case"AAAsmall":s=n>=7;break}return s},it.mostReadable=function(e,t,r){var n=null,i=0,s,a,o,l;r=r||{},a=r.includeFallbackColors,o=r.level,l=r.size;for(var f=0;f<t.length;f++)s=it.readability(e,t[f]),s>i&&(i=s,n=it(t[f]));return it.isReadable(e,n,{level:o,size:l})||!a?n:(r.includeFallbackColors=!1,it.mostReadable(e,["#fff","#000"],r))};var ha=it.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"},ng=it.hexNames=ig(ha);function ig(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function gu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nt(e,t){sg(e)&&(e="100%");var r=ag(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 hi(e){return Math.min(1,Math.max(0,e))}function Zt(e){return parseInt(e,16)}function sg(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function ag(e){return typeof e=="string"&&e.indexOf("%")!=-1}function fe(e){return e.length==1?"0"+e:""+e}function ln(e){return e<=1&&(e=e*100+"%"),e}function bu(e){return Math.round(parseFloat(e)*255).toString(16)}function _u(e){return Zt(e)/255}var ce=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 Ie(e){return!!ce.CSS_UNIT.exec(e)}function og(e){e=e.replace(Dm,"").replace(jm,"").toLowerCase();var t=!1;if(ha[e])e=ha[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ce.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=ce.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ce.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=ce.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ce.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=ce.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ce.hex8.exec(e))?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),a:_u(r[4]),format:t?"name":"hex8"}:(r=ce.hex6.exec(e))?{r:Zt(r[1]),g:Zt(r[2]),b:Zt(r[3]),format:t?"name":"hex"}:(r=ce.hex4.exec(e))?{r:Zt(r[1]+""+r[1]),g:Zt(r[2]+""+r[2]),b:Zt(r[3]+""+r[3]),a:_u(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=ce.hex3.exec(e))?{r:Zt(r[1]+""+r[1]),g:Zt(r[2]+""+r[2]),b:Zt(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function lg(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 ug=function(){function e(t,r){var n=[],i=!0,s=!1,a=void 0;try{for(var o=t[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(f){s=!0,a=f}finally{try{!i&&o.return&&o.return()}finally{if(s)throw a}}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")}}(),un=Math.PI*2,da=function(t,r,n,i,s,a,o){var l=t.x,f=t.y;l*=r,f*=n;var c=i*l-s*f,h=s*l+i*f;return{x:c+a,y:h+o}},fg=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),s=Math.sin(t),a=Math.cos(t+r),o=Math.sin(t+r);return[{x:i-s*n,y:s+i*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},xu=function(t,r,n,i){var s=t*i-r*n<0?-1:1,a=t*n+r*i;return a>1&&(a=1),a<-1&&(a=-1),s*Math.acos(a)},cg=function(t,r,n,i,s,a,o,l,f,c,h,u){var d=Math.pow(s,2),p=Math.pow(a,2),v=Math.pow(h,2),g=Math.pow(u,2),m=d*p-d*g-p*v;m<0&&(m=0),m/=d*g+p*v,m=Math.sqrt(m)*(o===l?-1:1);var b=m*s/a*u,_=m*-a/s*h,y=c*b-f*_+(t+n)/2,x=f*b+c*_+(r+i)/2,O=(h-b)/s,T=(u-_)/a,E=(-h-b)/s,N=(-u-_)/a,A=xu(1,0,O,T),w=xu(O,T,E,N);return l===0&&w>0&&(w-=un),l===1&&w<0&&(w+=un),[y,x,A,w]},Eu=function(t){var r=t.px,n=t.py,i=t.cx,s=t.cy,a=t.rx,o=t.ry,l=t.xAxisRotation,f=l===void 0?0:l,c=t.largeArcFlag,h=c===void 0?0:c,u=t.sweepFlag,d=u===void 0?0:u,p=[];if(a===0||o===0)return[];var v=Math.sin(f*un/360),g=Math.cos(f*un/360),m=g*(r-i)/2+v*(n-s)/2,b=-v*(r-i)/2+g*(n-s)/2;if(m===0&&b===0)return[];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(m,2)/Math.pow(a,2)+Math.pow(b,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var y=cg(r,n,i,s,a,o,h,d,v,g,m,b),x=ug(y,4),O=x[0],T=x[1],E=x[2],N=x[3],A=Math.abs(N)/(un/4);Math.abs(1-A)<1e-7&&(A=1);var w=Math.max(Math.ceil(A),1);N/=w;for(var S=0;S<w;S++)p.push(fg(E,N)),E+=N;return p.map(function(I){var C=da(I[0],a,o,g,v,O,T),F=C.x,D=C.y,U=da(I[1],a,o,g,v,O,T),X=U.x,j=U.y,k=da(I[2],a,o,g,v,O,T),R=k.x,P=k.y;return{x1:F,y1:D,x2:X,y2:j,x:R,y:P}})};class hg extends fa{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}=it(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 s=parseFloat(t.getAttribute(n)),a=parseFloat(t.getAttribute(r)),o=t.getAttribute("cx"),l=t.getAttribute("cy");let f=0,c=0;o!==null&&(f=parseFloat(o)),l!==null&&(c=parseFloat(l)),i?this.drawEllipse(f,c,s,a):this.drawCircle(f,c,s)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),s=parseFloat(t.getAttribute("height")),a=parseFloat(t.getAttribute("rx"));a?this.drawRoundedRect(r,n,i,s,a):this.drawRect(r,n,i,s)}_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(s=>{const[a,o]=s.split(":");if(a){const l=this._convertStyleName(a);i[l]||(i[l]=o.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:s,strokeOpacity:a,strokeWidth:o,cap:l,join:f,miterLimit:c}=this._svgStyle(t),u=o!==null?parseFloat(o):s!==null?1:0,d=s!==null?this._hexToUint(s):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:s===null&&o===null&&r?this.line.width:u,alpha:a===null?this.line.alpha:parseFloat(a),color:s===null&&r?this.line.color:d,cap:l===null&&r?this.line.cap:l,join:f===null&&r?this.line.join:f,miterLimit:c===null&&r?this.line.miterLimit:parseFloat(c)}),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 s=ca(r.trim());for(let a=0;a<s.length;a++){const o=s[a];switch(o.code){case"m":{this.moveTo(n+=o.end.x,i+=o.end.y);break}case"M":{this.moveTo(n=o.end.x,i=o.end.y);break}case"H":{this.lineTo(n=o.value,i);break}case"h":{this.lineTo(n+=o.value,i);break}case"V":{this.lineTo(n,i=o.value);break}case"v":{this.lineTo(n,i+=o.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=o.end.x,i=o.end.y);break}case"l":{this.lineTo(n+=o.end.x,i+=o.end.y);break}case"C":{this.bezierCurveTo(o.cp1.x,o.cp1.y,o.cp2.x,o.cp2.y,n=o.end.x,i=o.end.y);break}case"c":{const l=n,f=i;this.bezierCurveTo(l+o.cp1.x,f+o.cp1.y,l+o.cp2.x,f+o.cp2.y,n+=o.end.x,i+=o.end.y);break}case"s":case"q":{const l=n,f=i;this.quadraticCurveTo(l+o.cp.x,f+o.cp.y,n+=o.end.x,i+=o.end.y);break}case"S":case"Q":{this.quadraticCurveTo(o.cp.x,o.cp.y,n=o.end.x,i=o.end.y);break}case"a":{Eu({px:n,py:i,cx:n+=o.end.x,cy:i+=o.end.y,rx:o.radii.x,ry:o.radii.y,xAxisRotation:o.rotation,largeArcFlag:o.large?1:0,sweepFlag:o.clockwise?1:0}).forEach(({x1:l,y1:f,x2:c,y2:h,x:u,y:d})=>this.bezierCurveTo(l,f,c,h,u,d));break}case"A":{Eu({px:n,py:i,cx:n=o.end.x,cy:i=o.end.y,rx:o.radii.x,ry:o.radii.y,xAxisRotation:o.rotation,largeArcFlag:o.large?1:0,sweepFlag:o.clockwise?1:0}).forEach(({x1:l,y1:f,x2:c,y2:h,x:u,y:d})=>this.bezierCurveTo(l,f,c,h,u,d));break}default:{console.info("[PIXI.SVG] Draw command not supported:",o.code,o);break}}}}}var di={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},dg=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function pg(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&dg.indexOf(e)>=0}function vg(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 yg(e){return(e|32)===97}function Mr(e){return e>=48&&e<=57}function mg(e){return e>=48&&e<=57||e===43||e===45||e===46}function gg(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function pi(e){for(;e.index<e.max&&pg(e.path.charCodeAt(e.index));)e.index++}function bg(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 _g(e){var t=e.index,r=t,n=e.max,i=!1,s=!1,a=!1,o=!1,l;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(l=e.path.charCodeAt(r),(l===43||l===45)&&(r++,l=r<n?e.path.charCodeAt(r):0),!Mr(l)&&l!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(l!==46){if(i=l===48,r++,l=r<n?e.path.charCodeAt(r):0,i&&r<n&&l&&Mr(l)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Mr(e.path.charCodeAt(r));)r++,s=!0;l=r<n?e.path.charCodeAt(r):0}if(l===46){for(o=!0,r++;Mr(e.path.charCodeAt(r));)r++,a=!0;l=r<n?e.path.charCodeAt(r):0}if(l===101||l===69){if(o&&!s&&!a){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,l=r<n?e.path.charCodeAt(r):0,(l===43||l===45)&&r++,r<n&&Mr(e.path.charCodeAt(r)))for(;r<n&&Mr(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 pa(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>=di[r]&&(e.result.push([t].concat(n.splice(0,di[r]))),!!di[r]););}function xg(e){var t=e.max,r,n,i,s,a;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=yg(r),!vg(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(s=di[e.path[e.index].toLowerCase()],e.index++,pi(e),e.data=[],!s){pa(e);return}for(i=!1;;){for(a=s;a>0;a--){if(n&&(a===3||a===4)?bg(e):_g(e),e.err.length){pa(e);return}e.data.push(e.param),pi(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,pi(e),i=!0)}if(!i&&(e.index>=e.max||!mg(e.path.charCodeAt(e.index))))break}pa(e)}var Eg=function(t){var r=new gg(t),n=r.max;for(pi(r);r.index<n&&!r.err.length;)xg(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 Tg(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 he(){if(!(this instanceof he))return new he;this.queue=[],this.cache=null}he.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)},he.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},he.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},he.prototype.rotate=function(e,t,r){var n,i,s;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),s=Math.sin(n),this.queue.push([i,s,-s,i,0,0]),this.cache=null,this.translate(-t,-r)),this},he.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},he.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},he.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=Tg(this.cache,this.queue[e]);return this.cache},he.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 Tu=he,wg=Tu,Ag={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},Sg=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Og=/[\s,]+/,Ig=function(t){var r=new wg,n,i;return t.split(Sg).forEach(function(s){if(s.length){if(typeof Ag[s]<"u"){n=s;return}switch(i=s.split(Og).map(function(a){return+a||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},fn=Math.PI*2;function wu(e,t,r,n){var i=e*n-t*r<0?-1:1,s=e*r+t*n;return s>1&&(s=1),s<-1&&(s=-1),i*Math.acos(s)}function Rg(e,t,r,n,i,s,a,o,l,f){var c=f*(e-r)/2+l*(t-n)/2,h=-l*(e-r)/2+f*(t-n)/2,u=a*a,d=o*o,p=c*c,v=h*h,g=u*d-u*v-d*p;g<0&&(g=0),g/=u*v+d*p,g=Math.sqrt(g)*(i===s?-1:1);var m=g*a/o*h,b=g*-o/a*c,_=f*m-l*b+(e+r)/2,y=l*m+f*b+(t+n)/2,x=(c-m)/a,O=(h-b)/o,T=(-c-m)/a,E=(-h-b)/o,N=wu(1,0,x,O),A=wu(x,O,T,E);return s===0&&A>0&&(A-=fn),s===1&&A<0&&(A+=fn),[_,y,N,A]}function Ng(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),s=Math.cos(e+t),a=Math.sin(e+t);return[n,i,n-i*r,i+n*r,s+a*r,a-s*r,s,a]}var Cg=function(t,r,n,i,s,a,o,l,f){var c=Math.sin(f*fn/360),h=Math.cos(f*fn/360),u=h*(t-n)/2+c*(r-i)/2,d=-c*(t-n)/2+h*(r-i)/2;if(u===0&&d===0)return[];if(o===0||l===0)return[];o=Math.abs(o),l=Math.abs(l);var p=u*u/(o*o)+d*d/(l*l);p>1&&(o*=Math.sqrt(p),l*=Math.sqrt(p));var v=Rg(t,r,n,i,s,a,o,l,c,h),g=[],m=v[2],b=v[3],_=Math.max(Math.ceil(Math.abs(b)/(fn/4)),1);b/=_;for(var y=0;y<_;y++)g.push(Ng(m,b)),m+=b;return g.map(function(x){for(var O=0;O<x.length;O+=2){var T=x[O+0],E=x[O+1];T*=o,E*=l;var N=h*T-c*E,A=c*T+h*E;x[O+0]=N+v[0],x[O+1]=A+v[1]}return x})},cn=1e-10,Au=Math.PI/180;function hn(e,t,r){if(!(this instanceof hn))return new hn(e,t,r);this.rx=e,this.ry=t,this.ax=r}hn.prototype.transform=function(e){var t=Math.cos(this.ax*Au),r=Math.sin(this.ax*Au),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],s=n[1]*n[1]+n[3]*n[3],a=((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])),o=(i+s)/2;if(a<cn*o)return this.rx=this.ry=Math.sqrt(o),this.ax=0,this;var l=n[0]*n[1]+n[2]*n[3];a=Math.sqrt(a);var f=o+a/2,c=o-a/2;return this.ax=Math.abs(l)<cn&&Math.abs(f-s)<cn?90:Math.atan(Math.abs(l)>Math.abs(f-s)?(f-i)/l:l/(f-s))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(f),this.ry=Math.sqrt(c)):(this.ax+=90,this.rx=Math.sqrt(c),this.ry=Math.sqrt(f)),this},hn.prototype.isDegenerate=function(){return this.rx<cn*this.ry||this.ry<cn*this.rx};var Pg=hn,kg=Eg,Mg=Ig,De=Tu,Lg=Cg,Fg=Pg;function Mt(e){if(!(this instanceof Mt))return new Mt(e);var t=kg(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}Mt.from=function(e){if(typeof e=="string")return new Mt(e);if(e instanceof Mt){var t=new Mt("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return De().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},Mt.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,s,a){var o,l,f,c;switch(n[0]){case"v":o=e.calc(0,n[1],!0),l=o[0]===0?["v",o[1]]:["l",o[0],o[1]];break;case"V":o=e.calc(s,n[1],!1),l=o[0]===e.calc(s,a,!1)[0]?["V",o[1]]:["L",o[0],o[1]];break;case"h":o=e.calc(n[1],0,!0),l=o[1]===0?["h",o[0]]:["l",o[0],o[1]];break;case"H":o=e.calc(n[1],a,!1),l=o[1]===e.calc(s,a,!1)[1]?["H",o[0]]:["L",o[0],o[1]];break;case"a":case"A":var h=e.toArray(),u=Fg(n[1],n[2],n[3]).transform(h);if(h[0]*h[3]-h[1]*h[2]<0&&(n[5]=n[5]?"0":"1"),o=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===s&&n[7]===a||n[0]==="a"&&n[6]===0&&n[7]===0){l=[n[0]==="a"?"l":"L",o[0],o[1]];break}u.isDegenerate()?l=[n[0]==="a"?"l":"L",o[0],o[1]]:l=[n[0],u.rx,u.ry,u.ax,n[4],n[5],o[0],o[1]];break;case"m":c=i>0,o=e.calc(n[1],n[2],c),l=["m",o[0],o[1]];break;default:for(f=n[0],l=[f],c=f.toLowerCase()===f,r=1;r<n.length;r+=2)o=e.calc(n[r],n[r+1],c),l.push(o[0],o[1])}t.segments[i]=l},!0)},Mt.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=De(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},Mt.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var s=this.segments[n],a=s[0];a!==t||a==="m"||a==="M"?(a==="m"&&t==="z"&&(e+=" "),e+=a,r=!1):r=!0;for(var o=1;o<s.length;o++){var l=s[o];o===1?r&&l>=0&&(e+=" "):l>=0&&(e+=" "),e+=l}t=a}return e},Mt.prototype.translate=function(e,t){return this.__stack.push(De().translate(e,t||0)),this},Mt.prototype.scale=function(e,t){return this.__stack.push(De().scale(e,!t&&t!==0?e:t)),this},Mt.prototype.rotate=function(e,t,r){return this.__stack.push(De().rotate(e,t||0,r||0)),this},Mt.prototype.skewX=function(e){return this.__stack.push(De().skewX(e)),this},Mt.prototype.skewY=function(e){return this.__stack.push(De().skewY(e)),this},Mt.prototype.matrix=function(e){return this.__stack.push(De().matrix(e)),this},Mt.prototype.transform=function(e){return e.trim()?(this.__stack.push(Mg(e)),this):this},Mt.prototype.round=function(e){var t=0,r=0,n=0,i=0,s;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(a){var o=a[0].toLowerCase()===a[0];switch(a[0]){case"H":case"h":o&&(a[1]+=n),n=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"V":case"v":o&&(a[1]+=i),i=a[1]-a[1].toFixed(e),a[1]=+a[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":o&&(a[1]+=n,a[2]+=i),n=a[1]-a[1].toFixed(e),i=a[2]-a[2].toFixed(e),t=n,r=i,a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e);return;case"A":case"a":o&&(a[6]+=n,a[7]+=i),n=a[6]-a[6].toFixed(e),i=a[7]-a[7].toFixed(e),a[1]=+a[1].toFixed(e),a[2]=+a[2].toFixed(e),a[3]=+a[3].toFixed(e+2),a[6]=+a[6].toFixed(e),a[7]=+a[7].toFixed(e);return;default:s=a.length,o&&(a[s-2]+=n,a[s-1]+=i),n=a[s-2]-a[s-2].toFixed(e),i=a[s-1]-a[s-1].toFixed(e),a.forEach(function(l,f){f&&(a[f]=+a[f].toFixed(e))});return}}),this},Mt.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,s=0,a=0,o=0,l=0,f,c,h;if(t||this.__evaluateStack(),r.forEach(function(u,d){var p=e(u,d,s,a);Array.isArray(p)&&(n[d]=p,i=!0);var v=u[0]===u[0].toLowerCase();switch(u[0]){case"m":case"M":s=u[1]+(v?s:0),a=u[2]+(v?a:0),o=s,l=a;return;case"h":case"H":s=u[1]+(v?s:0);return;case"v":case"V":a=u[1]+(v?a:0);return;case"z":case"Z":s=o,a=l;return;default:s=u[u.length-2]+(v?s:0),a=u[u.length-1]+(v?a:0)}}),!i)return this;for(h=[],f=0;f<r.length;f++)if(typeof n[f]<"u")for(c=0;c<n[f].length;c++)h.push(n[f][c]);else h.push(r[f]);return this.segments=h,this},Mt.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],s=i.toUpperCase(),a;if(i!==s)switch(e[0]=s,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(a=1;a<e.length;a++)e[a]+=a%2?r:n}},!0),this},Mt.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],s=i.toLowerCase(),a;if(i!==s&&!(t===0&&i==="M"))switch(e[0]=s,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(a=1;a<e.length;a++)e[a]-=a%2?r:n}},!0),this},Mt.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,s,a,o=[],l=e[0];return l!=="A"&&l!=="a"?null:(l==="a"?(s=r+e[6],a=n+e[7]):(s=e[6],a=e[7]),i=Lg(r,n,s,a,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(f){o.push(["C",f[2],f[3],f[4],f[5],f[6],f[7]])}),o))}),this},Mt.prototype.unshort=function(){var e=this.segments,t,r,n,i,s;return this.iterate(function(a,o,l,f){var c=a[0],h=c.toUpperCase(),u;o&&(h==="T"?(u=c==="t",n=e[o-1],n[0]==="Q"?(t=n[1]-l,r=n[2]-f):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,s=-r,u||(i+=l,s+=f),e[o]=[u?"q":"Q",i,s,a[1],a[2]]):h==="S"&&(u=c==="s",n=e[o-1],n[0]==="C"?(t=n[3]-l,r=n[4]-f):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,s=-r,u||(i+=l,s+=f),e[o]=[u?"c":"C",i,s,a[1],a[2],a[3],a[4]]))}),this};var Bg=Mt,Ug=Bg;const Dg=sr(Ug),jg=e=>{const[t,r]=st.useState(null),n=Q.useRef(null),i=Q.useRef(null),s=Q.useRef(null),{path:a,transformation:{x:o,y:l,width:f,height:c,anchor:h,hexColor:u,fill:d,stroke:p="none",strokeWidth:v=0},pointerdown:g,pointerup:m}=e,b=yt.useApp();return st.useEffect(()=>{const _=Dg(a).scale(5).translate(0,0).toString(),y=`<svg xmlns="http://www.w3.org/2000/svg" width="${f}" height="${c}">
548
548
  <path stroke="${p}" stroke-width="${v}" fill="${u||d}" d="${_}">
549
549
  </path>
550
- </svg>`,x=new hg(y),O=b.renderer.generateTexture(x);return r(O),()=>{}},[b,a,p,v,d,u,f,c]),dt.jsx(ai,{...e,children:dt.jsx(yt.Container,{ref:i,children:dt.jsx(yt.Container,{ref:s,children:t&&dt.jsx(yt.Sprite,{texture:t,width:f,height:c,anchor:h,ref:n,x:o,y:l,interactive:!0,pointerdown:g,pointerup:m})})})})};var vi={};Object.defineProperty(vi,"__esModule",{value:!0});var $g=Q,va;function Su(){return va||(va=document.createElement("div")),va}function Gg(e,t,r){var n;return $g.useEffect(function(){n=n||Su();var i=function(s){var a=s.detail;t(a)};return n.addEventListener(e,i,!1),function(){n==null||n.removeEventListener(e,i,!1)}},r),function(i){n=i}}function qg(e,t){var r=Su(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function Hg(){var e;function t(r){e=r}return t.emit=function(r,n){var i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}vi.emitCustomEvent=qg,vi.newCustomEventEmitter=Hg;var Ou=vi.useCustomEventListener=Gg;const Vg=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=st.useState(!1),n=Q.useRef(t);console.log("allProps",e);const i=Q.useRef(null),s=Q.useRef(null),{tl:a,playerTimeRef:o}=Q.useContext(Or),{uniqueId:l,src:f,startAt:c,endAt:h,mute:u,speed:d}=e,p=st.useRef(null);Ou(Kt.PAUSE,()=>{var y;console.log("pause event"),i.current&&((y=p.current)==null||y.pause(),n.current.isPlaying=!1)});const v=y=>{var x;i.current&&(console.log("audio gsapOnStart",y),o.current>=y&&o.current<=h&&((x=p.current)==null||x.play({volume:u?0:1,start:y,end:h,speed:d||1}),n.current.isPlaying=!0,n.current.completed=!1))},g=()=>{var y;i.current&&(console.log("audio gsapOnStart",c),(y=p.current)==null||y.stop(),n.current.isPlaying=!1,n.current.completed=!0)},m=y=>{var x,O,T;i.current&&!n.current.isPlaying&&!n.current.completed&&(console.log("audio gsapOnUpdate",y),(x=p.current)==null||x.refresh(),(O=p.current)==null||O.refreshPaused(),(T=p.current)==null||T.resume(),n.current.isPlaying=!0)},b=()=>{};Q.useEffect(()=>{let y=de.context(()=>{});if(i.current&&a.current){const x={duration:Number(h)-Number(c),onStart:v,onComplete:g,onStartParams:[c],onCompleteParams:[],onInterrupt:b,onUpdate:m,onUpdateParams:[]};y=de.context(()=>{a.current.to(i.current,{alpha:1,duration:.01},c).from(s.current,{...x},c).to(i.current,{alpha:0,duration:.1},Number(h)-.1)})}return()=>y.revert()},[c,h]),st.useEffect(()=>{i.current&&r(!0)},[]),st.useEffect(()=>{i.current&&p.current&&(console.log("soundref",p.current),n.current.mute=u,n.current.speed=d,console.log("containerAudio",p.current.volume),p.current.volume=u?0:1)},[u,d]);const _=st.useCallback((y,x)=>{p.current=x,n.current.loaded=!0},[]);return st.useEffect(()=>(te(f)||(p.current=gf.Sound.from({url:f,preload:!0,singleInstance:!0,loaded:_})),()=>{}),[l,f,_]),dt.jsx(yt.Container,{ref:i})};function zg(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 Iu=zg;function Xg(){this.__data__=[],this.size=0}var Wg=Xg;function Yg(e,t){return e===t||e!==e&&t!==t}var Ru=Yg,Kg=Ru;function Zg(e,t){for(var r=e.length;r--;)if(Kg(e[r][0],t))return r;return-1}var yi=Zg,Qg=yi,Jg=Array.prototype,t0=Jg.splice;function e0(e){var t=this.__data__,r=Qg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():t0.call(t,r,1),--this.size,!0}var r0=e0,n0=yi;function i0(e){var t=this.__data__,r=n0(t,e);return r<0?void 0:t[r][1]}var s0=i0,a0=yi;function o0(e){return a0(this.__data__,e)>-1}var l0=o0,u0=yi;function f0(e,t){var r=this.__data__,n=u0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var c0=f0,h0=Wg,d0=r0,p0=s0,v0=l0,y0=c0;function Lr(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])}}Lr.prototype.clear=h0,Lr.prototype.delete=d0,Lr.prototype.get=p0,Lr.prototype.has=v0,Lr.prototype.set=y0;var mi=Lr,m0=mi;function g0(){this.__data__=new m0,this.size=0}var b0=g0;function _0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var x0=_0;function E0(e){return this.__data__.get(e)}var T0=E0;function w0(e){return this.__data__.has(e)}var A0=w0,S0=Ir,O0=S0(Object,"create"),gi=O0,Nu=gi;function I0(){this.__data__=Nu?Nu(null):{},this.size=0}var R0=I0;function N0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var C0=N0,P0=gi,k0="__lodash_hash_undefined__",M0=Object.prototype,L0=M0.hasOwnProperty;function F0(e){var t=this.__data__;if(P0){var r=t[e];return r===k0?void 0:r}return L0.call(t,e)?t[e]:void 0}var B0=F0,U0=gi,D0=Object.prototype,j0=D0.hasOwnProperty;function $0(e){var t=this.__data__;return U0?t[e]!==void 0:j0.call(t,e)}var G0=$0,q0=gi,H0="__lodash_hash_undefined__";function V0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=q0&&t===void 0?H0:t,this}var z0=V0,X0=R0,W0=C0,Y0=B0,K0=G0,Z0=z0;function Fr(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])}}Fr.prototype.clear=X0,Fr.prototype.delete=W0,Fr.prototype.get=Y0,Fr.prototype.has=K0,Fr.prototype.set=Z0;var Q0=Fr,Cu=Q0,J0=mi,tb=Xs;function eb(){this.size=0,this.__data__={hash:new Cu,map:new(tb||J0),string:new Cu}}var rb=eb;function nb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ib=nb,sb=ib;function ab(e,t){var r=e.__data__;return sb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var bi=ab,ob=bi;function lb(e){var t=ob(this,e).delete(e);return this.size-=t?1:0,t}var ub=lb,fb=bi;function cb(e){return fb(this,e).get(e)}var hb=cb,db=bi;function pb(e){return db(this,e).has(e)}var vb=pb,yb=bi;function mb(e,t){var r=yb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var gb=mb,bb=rb,_b=ub,xb=hb,Eb=vb,Tb=gb;function Br(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])}}Br.prototype.clear=bb,Br.prototype.delete=_b,Br.prototype.get=xb,Br.prototype.has=Eb,Br.prototype.set=Tb;var ya=Br,wb=mi,Ab=Xs,Sb=ya,Ob=200;function Ib(e,t){var r=this.__data__;if(r instanceof wb){var n=r.__data__;if(!Ab||n.length<Ob-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Sb(n)}return r.set(e,t),this.size=r.size,this}var Rb=Ib,Nb=mi,Cb=b0,Pb=x0,kb=T0,Mb=A0,Lb=Rb;function Ur(e){var t=this.__data__=new Nb(e);this.size=t.size}Ur.prototype.clear=Cb,Ur.prototype.delete=Pb,Ur.prototype.get=kb,Ur.prototype.has=Mb,Ur.prototype.set=Lb;var Pu=Ur,Fb="__lodash_hash_undefined__";function Bb(e){return this.__data__.set(e,Fb),this}var Ub=Bb;function Db(e){return this.__data__.has(e)}var jb=Db,$b=ya,Gb=Ub,qb=jb;function _i(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $b;++t<r;)this.add(e[t])}_i.prototype.add=_i.prototype.push=Gb,_i.prototype.has=qb;var Hb=_i;function Vb(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 zb=Vb;function Xb(e,t){return e.has(t)}var Wb=Xb,Yb=Hb,Kb=zb,Zb=Wb,Qb=1,Jb=2;function t1(e,t,r,n,i,s){var a=r&Qb,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var f=s.get(e),c=s.get(t);if(f&&c)return f==t&&c==e;var h=-1,u=!0,d=r&Jb?new Yb:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var p=e[h],v=t[h];if(n)var g=a?n(v,p,h,t,e,s):n(p,v,h,e,t,s);if(g!==void 0){if(g)continue;u=!1;break}if(d){if(!Kb(t,function(m,b){if(!Zb(d,b)&&(p===m||i(p,m,r,n,s)))return d.push(b)})){u=!1;break}}else if(!(p===v||i(p,v,r,n,s))){u=!1;break}}return s.delete(e),s.delete(t),u}var ku=t1,e1=Oe,r1=e1.Uint8Array,n1=r1;function i1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var s1=i1;function a1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var o1=a1,Mu=ri,Lu=n1,l1=Ru,u1=ku,f1=s1,c1=o1,h1=1,d1=2,p1="[object Boolean]",v1="[object Date]",y1="[object Error]",m1="[object Map]",g1="[object Number]",b1="[object RegExp]",_1="[object Set]",x1="[object String]",E1="[object Symbol]",T1="[object ArrayBuffer]",w1="[object DataView]",Fu=Mu?Mu.prototype:void 0,ma=Fu?Fu.valueOf:void 0;function A1(e,t,r,n,i,s,a){switch(r){case w1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T1:return!(e.byteLength!=t.byteLength||!s(new Lu(e),new Lu(t)));case p1:case v1:case g1:return l1(+e,+t);case y1:return e.name==t.name&&e.message==t.message;case b1:case x1:return e==t+"";case m1:var o=f1;case _1:var l=n&h1;if(o||(o=c1),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=d1,a.set(e,t);var c=u1(o(e),o(t),n,i,s,a);return a.delete(e),c;case E1:if(ma)return ma.call(e)==ma.call(t)}return!1}var S1=A1;function O1(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var I1=O1,R1=I1,N1=be;function C1(e,t,r){var n=t(e);return N1(e)?n:R1(n,r(e))}var P1=C1;function k1(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}var M1=k1;function L1(){return[]}var F1=L1,B1=M1,U1=F1,D1=Object.prototype,j1=D1.propertyIsEnumerable,Bu=Object.getOwnPropertySymbols,$1=Bu?function(e){return e==null?[]:(e=Object(e),B1(Bu(e),function(t){return j1.call(e,t)}))}:U1,G1=$1;function q1(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var H1=q1,V1=9007199254740991,z1=/^(?:0|[1-9]\d*)$/;function X1(e,t){var r=typeof e;return t=t??V1,!!t&&(r=="number"||r!="symbol"&&z1.test(e))&&e>-1&&e%1==0&&e<t}var Uu=X1,W1=H1,Y1=Js,K1=be,Z1=ea,Q1=Uu,J1=ra,t_=Object.prototype,e_=t_.hasOwnProperty;function r_(e,t){var r=K1(e),n=!r&&Y1(e),i=!r&&!n&&Z1(e),s=!r&&!n&&!i&&J1(e),a=r||n||i||s,o=a?W1(e.length,String):[],l=o.length;for(var f in e)(t||e_.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Q1(f,l)))&&o.push(f);return o}var n_=r_,i_=n_,s_=Dl,a_=ni;function o_(e){return a_(e)?i_(e):s_(e)}var ga=o_,l_=P1,u_=G1,f_=ga;function c_(e){return l_(e,f_,u_)}var h_=c_,Du=h_,d_=1,p_=Object.prototype,v_=p_.hasOwnProperty;function y_(e,t,r,n,i,s){var a=r&d_,o=Du(e),l=o.length,f=Du(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var u=o[h];if(!(a?u in t:v_.call(t,u)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=a;++h<l;){u=o[h];var m=e[u],b=t[u];if(n)var _=a?n(b,m,u,t,e,s):n(m,b,u,e,t,s);if(!(_===void 0?m===b||i(m,b,r,n,s):_)){v=!1;break}g||(g=u=="constructor")}if(v&&!g){var y=e.constructor,x=t.constructor;y!=x&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof x=="function"&&x instanceof x)&&(v=!1)}return s.delete(e),s.delete(t),v}var m_=y_,ba=Pu,g_=ku,b_=S1,__=m_,ju=tu,$u=be,Gu=ea,x_=ra,E_=1,qu="[object Arguments]",Hu="[object Array]",xi="[object Object]",T_=Object.prototype,Vu=T_.hasOwnProperty;function w_(e,t,r,n,i,s){var a=$u(e),o=$u(t),l=a?Hu:ju(e),f=o?Hu:ju(t);l=l==qu?xi:l,f=f==qu?xi:f;var c=l==xi,h=f==xi,u=l==f;if(u&&Gu(e)){if(!Gu(t))return!1;a=!0,c=!1}if(u&&!c)return s||(s=new ba),a||x_(e)?g_(e,t,r,n,i,s):b_(e,t,l,r,n,i,s);if(!(r&E_)){var d=c&&Vu.call(e,"__wrapped__"),p=h&&Vu.call(t,"__wrapped__");if(d||p){var v=d?e.value():e,g=p?t.value():t;return s||(s=new ba),i(v,g,r,n,s)}}return u?(s||(s=new ba),__(e,t,r,n,i,s)):!1}var A_=w_,S_=A_,zu=on;function Xu(e,t,r,n,i){return e===t?!0:e==null||t==null||!zu(e)&&!zu(t)?e!==e&&t!==t:S_(e,t,r,n,Xu,i)}var Wu=Xu,O_=Pu,I_=Wu,R_=1,N_=2;function C_(e,t,r,n){var i=r.length,s=i,a=!n;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var l=o[0],f=e[l],c=o[1];if(a&&o[2]){if(f===void 0&&!(l in e))return!1}else{var h=new O_;if(n)var u=n(f,c,l,e,t,h);if(!(u===void 0?I_(c,f,R_|N_,n,h):u))return!1}}return!0}var P_=C_,k_=Vs;function M_(e){return e===e&&!k_(e)}var Yu=M_,L_=Yu,F_=ga;function B_(e){for(var t=F_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,L_(i)]}return t}var U_=B_;function D_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ku=D_,j_=P_,$_=U_,G_=Ku;function q_(e){var t=$_(e);return t.length==1&&t[0][2]?G_(t[0][0],t[0][1]):function(r){return r===e||j_(r,e,t)}}var H_=q_,V_=an,z_=on,X_="[object Symbol]";function W_(e){return typeof e=="symbol"||z_(e)&&V_(e)==X_}var _a=W_,Y_=be,K_=_a,Z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q_=/^\w*$/;function J_(e,t){if(Y_(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K_(e)?!0:Q_.test(e)||!Z_.test(e)||t!=null&&e in Object(t)}var xa=J_,Zu=ya,tx="Expected a function";function Ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Ea.Cache||Zu),r}Ea.Cache=Zu;var ex=Ea,rx=ex,nx=500;function ix(e){var t=rx(e,function(n){return r.size===nx&&r.clear(),n}),r=t.cache;return t}var sx=ix,ax=sx,ox=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lx=/\\(\\)?/g,ux=ax(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ox,function(r,n,i,s){t.push(i?s.replace(lx,"$1"):n||r)}),t}),fx=ux,Qu=ri,cx=Iu,hx=be,dx=_a,px=1/0,Ju=Qu?Qu.prototype:void 0,tf=Ju?Ju.toString:void 0;function ef(e){if(typeof e=="string")return e;if(hx(e))return cx(e,ef)+"";if(dx(e))return tf?tf.call(e):"";var t=e+"";return t=="0"&&1/e==-px?"-0":t}var vx=ef,yx=vx;function mx(e){return e==null?"":yx(e)}var gx=mx,bx=be,_x=xa,xx=fx,Ex=gx;function Tx(e,t){return bx(e)?e:_x(e,t)?[e]:xx(Ex(e))}var rf=Tx,wx=_a,Ax=1/0;function Sx(e){if(typeof e=="string"||wx(e))return e;var t=e+"";return t=="0"&&1/e==-Ax?"-0":t}var Ei=Sx,Ox=rf,Ix=Ei;function Rx(e,t){t=Ox(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ix(t[r++])];return r&&r==n?e:void 0}var nf=Rx,Nx=nf;function Cx(e,t,r){var n=e==null?void 0:Nx(e,t);return n===void 0?r:n}var Px=Cx;function kx(e,t){return e!=null&&t in Object(e)}var Mx=kx,Lx=rf,Fx=Js,Bx=be,Ux=Uu,Dx=ta,jx=Ei;function $x(e,t,r){t=Lx(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=jx(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Dx(i)&&Ux(a,i)&&(Bx(e)||Fx(e)))}var Gx=$x,qx=Mx,Hx=Gx;function Vx(e,t){return e!=null&&Hx(e,t,qx)}var zx=Vx,Xx=Wu,Wx=Px,Yx=zx,Kx=xa,Zx=Yu,Qx=Ku,Jx=Ei,tE=1,eE=2;function rE(e,t){return Kx(e)&&Zx(t)?Qx(Jx(e),t):function(r){var n=Wx(r,e);return n===void 0&&n===t?Yx(r,e):Xx(t,n,tE|eE)}}var nE=rE;function iE(e){return e}var sE=iE;function aE(e){return function(t){return t==null?void 0:t[e]}}var oE=aE,lE=nf;function uE(e){return function(t){return lE(t,e)}}var fE=uE,cE=oE,hE=fE,dE=xa,pE=Ei;function vE(e){return dE(e)?cE(pE(e)):hE(e)}var yE=vE,mE=H_,gE=nE,bE=sE,_E=be,xE=yE;function EE(e){return typeof e=="function"?e:e==null?bE:typeof e=="object"?_E(e)?gE(e[0],e[1]):mE(e):xE(e)}var TE=EE;function wE(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var l=a[e?o:++i];if(r(s[l],l,s)===!1)break}return t}}var AE=wE,SE=AE,OE=SE(),IE=OE,RE=IE,NE=ga;function CE(e,t){return e&&RE(e,t,NE)}var PE=CE,kE=ni;function ME(e,t){return function(r,n){if(r==null)return r;if(!kE(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=Object(r);(t?s--:++s<i)&&n(a[s],s,a)!==!1;);return r}}var LE=ME,FE=PE,BE=LE,UE=BE(FE),DE=UE,jE=DE,$E=ni;function GE(e,t){var r=-1,n=$E(e)?Array(e.length):[];return jE(e,function(i,s,a){n[++r]=t(i,s,a)}),n}var qE=GE,HE=Iu,VE=TE,zE=qE,XE=be;function WE(e,t){var r=XE(e)?HE:zE;return r(e,VE(t))}var YE=WE;const KE=sr(YE);var ir={},sf={},Re={};Object.defineProperty(Re,"__esModule",{value:!0}),Re.loop=Re.conditional=Re.parse=void 0;var ZE=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(a){return e(t,a,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var s=Object.keys(r)[0];Array.isArray(r[s])?(i[s]={},e(t,r[s],n,i[s])):i[s]=r[s](t,n,i,e)}return n};Re.parse=ZE;var QE=function(t,r){return function(n,i,s,a){r(n,i,s)&&a(n,t,i,s)}};Re.conditional=QE;var JE=function(t,r){return function(n,i,s,a){for(var o=[],l=n.pos;r(n,i,s);){var f={};if(a(n,t,i,f),n.pos===l)break;l=n.pos,o.push(f)}return o}};Re.loop=JE;var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.readBits=Ft.readArray=Ft.readUnsigned=Ft.readString=Ft.peekBytes=Ft.readBytes=Ft.peekByte=Ft.readByte=Ft.buildStream=void 0;var tT=function(t){return{data:t,pos:0}};Ft.buildStream=tT;var af=function(){return function(t){return t.data[t.pos++]}};Ft.readByte=af;var eT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};Ft.peekByte=eT;var Ti=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};Ft.readBytes=Ti;var rT=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};Ft.peekBytes=rT;var nT=function(t){return function(r){return Array.from(Ti(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};Ft.readString=nT;var iT=function(t){return function(r){var n=Ti(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};Ft.readUnsigned=iT;var sT=function(t,r){return function(n,i,s){for(var a=typeof r=="function"?r(n,i,s):r,o=Ti(t),l=new Array(a),f=0;f<a;f++)l[f]=o(n);return l}};Ft.readArray=sT;var aT=function(t,r,n){for(var i=0,s=0;s<n;s++)i+=t[r+s]&&Math.pow(2,n-s-1);return i},oT=function(t){return function(r){for(var n=af()(r),i=new Array(8),s=0;s<8;s++)i[7-s]=!!(n&1<<s);return Object.keys(t).reduce(function(a,o){var l=t[o];return l.length?a[o]=aT(i,l.index,l.length):a[o]=i[l.index],a},{})}};Ft.readBits=oT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Re,r=Ft,n={blocks:function(u){for(var d=0,p=[],v=u.data.length,g=0,m=(0,r.readByte)()(u);m!==d&&m;m=(0,r.readByte)()(u)){if(u.pos+m>=v){var b=v-u.pos;p.push((0,r.readBytes)(b)(u)),g+=b;break}p.push((0,r.readBytes)(m)(u)),g+=m}for(var _=new Uint8Array(g),y=0,x=0;x<p.length;x++)_.set(p[x],y),y+=p[x].length;return _}},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(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===249}),s=(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(h,u,d){return Math.pow(2,d.descriptor.lct.size+1)})},function(h,u,d){return d.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(h){return(0,r.peekByte)()(h)===44}),a=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(u,d,p){return(0,r.readBytes)(p.text.blockSize)(u)}},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===1}),o=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(u,d,p){return(0,r.readString)(p.blockSize)(u)}},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===255}),l=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===254}),f=[{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(h,u){return Math.pow(2,u.lsd.gct.size+1)})},function(h,u){return u.lsd.gct.exists}),{frames:(0,t.loop)([i,o,l,s,a],function(h){var u=(0,r.peekByte)()(h);return u===33||u===44})}],c=f;e.default=c}(sf);var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.deinterlace=void 0;var lT=function(t,r){for(var n=new Array(t.length),i=t.length/r,s=function(u,d){var p=t.slice(d*r,(d+1)*r);n.splice.apply(n,[u*r,r].concat(p))},a=[0,4,2,1],o=[8,8,4,2],l=0,f=0;f<4;f++)for(var c=a[f];c<i;c+=o[f])s(c,l),l++;return n};wi.deinterlace=lT;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.lzw=void 0;var uT=function(t,r,n){var i=4096,s=-1,a=n,o,l,f,c,h,u,d,O,p,v,x,g,T,E,A,N,m=new Array(n),b=new Array(i),_=new Array(i),y=new Array(i+1);for(g=t,l=1<<g,h=l+1,o=l+2,d=s,c=g+1,f=(1<<c)-1,p=0;p<l;p++)b[p]=0,_[p]=p;var x,O,T,E,N,A;for(x=O=T=E=N=A=0,v=0;v<a;){if(E===0){if(O<c){x+=r[A]<<O,O+=8,A++;continue}if(p=x&f,x>>=c,O-=c,p>o||p==h)break;if(p==l){c=g+1,f=(1<<c)-1,o=l+2,d=s;continue}if(d==s){y[E++]=_[p],d=p,T=p;continue}for(u=p,p==o&&(y[E++]=T,p=d);p>l;)y[E++]=_[p],p=b[p];T=_[p]&255,y[E++]=T,o<i&&(b[o]=d,_[o]=T,o++,!(o&f)&&o<i&&(c++,f+=o)),d=u}E--,m[N++]=y[E],v++}for(v=N;v<a;v++)m[v]=0;return m};Ai.lzw=uT,Object.defineProperty(ir,"__esModule",{value:!0}),ir.decompressFrames=ir.decompressFrame=ir.parseGIF=void 0;var fT=vT(sf),cT=Re,hT=Ft,dT=wi,pT=Ai;function vT(e){return e&&e.__esModule?e:{default:e}}var yT=function(t){var r=new Uint8Array(t);return(0,cT.parse)((0,hT.buildStream)(r),fT.default)};ir.parseGIF=yT;var mT=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var s=i*4,a=t.pixels[i],o=t.colorTable[a]||[0,0,0];n[s]=o[0],n[s+1]=o[1],n[s+2]=o[2],n[s+3]=a!==t.transparentIndex?255:0}return n},of=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,s=i.descriptor.width*i.descriptor.height,a=(0,pT.lzw)(i.data.minCodeSize,i.data.blocks,s);i.descriptor.lct.interlaced&&(a=(0,dT.deinterlace)(a,i.descriptor.width));var o={pixels:a,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?o.colorTable=i.lct:o.colorTable=r,t.gce&&(o.delay=(t.gce.delay||10)*10,o.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(o.transparentIndex=t.gce.transparentColorIndex)),n&&(o.patch=mT(o)),o};ir.decompressFrame=of;var gT=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return of(n,t.gct,r)})};ir.decompressFrames=gT;const lf=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,s={...e,...i};return r&&Object.assign(s,{playing:s.autoPlay&&s.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(s,{length:s.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(s,{index:s.length===0?0:(s.length+s.index)%s.length}),t.playing!=null&&Object.assign(s,s.loaded?{playing:n}:{autoPlay:n}),s},bT=e=>lf({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),_T=e=>Q.useReducer(lf,e,bT);var xT='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 ET(e){const t=new Blob([xT],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const TT=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),wT=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),Q.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)},AT=e=>{const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e},[e]),t},ST=e=>{const t=AT(e);return Q.useCallback(r=>t.current&&t.current(r),[])},OT=wT(()=>new ET,e=>e.terminate()),IT=(e,t)=>{const r=ST(t),n=OT();Q.useEffect(()=>{if(typeof e=="string"){const i=s=>{const a=s.data||s;if(a.src===e){const o=a.error?a:TT(a);r(o)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},RT=({isPlaying:e,forwardRef:t,...r})=>{const n=st.useRef(null);return st.useImperativeHandle(t,()=>n.current,[n]),st.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),dt.jsx(yt.AnimatedSprite,{ref:n,...r,isPlaying:e})},uf=st.memo(RT),NT=yt.withFilters(yt.Container,{blur:ee.filters.BlurFilter,adjust:Gs,matrix:ee.filters.ColorMatrixFilter}),CT=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],PT={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},kT=e=>{const[t,r]=st.useState([]),[,n]=st.useState(0),[i,s]=st.useState([]),[,a]=Q.useState(0),[,o]=Q.useState(!1),[l,f]=Q.useState(!1),[,c]=Q.useState(!1),[h,u]=_T({autoPlay:!1}),d=st.useRef(null),p=Q.useRef(null),v=Q.useRef(null),g=Q.useRef(null),m=Q.useRef(null),b=Q.useRef(null),_=Q.useRef(PT),y=Q.useRef(e.initialAlpha),{tl:x}=Q.useContext(Or),{frames:O,delays:T,loaded:E}=h,{uniqueId:N,src:A,startAt:w,endAt:S,locked:I,loop:C,transformation:{width:F=0,height:D=0,x:U,y:X,rotation:j=0,scale:k,animation:R,colorCorrection:P,effect:L},pointerdown:$,pointerup:G,mousedown:M,mouseup:B,pointerover:q,mouseover:H,mouseout:z,pointerout:Y,applyTransformer:J,onAnchorTransformationEnd:et}=e,{contrast:at=1,saturation:lt=1,exposure:Ct=1,blurRadius:Rt=0,alpha:V=1}=P||{},W={brightness:Ct,contrast:at,saturation:lt,alpha:V},Z=yt.useApp();IT(A,u),Ue(Kt.PAUSE,ut=>{console.log("pause event",ut),p.current&&(p.current.stop(),_.current.isPlaying=!1)});const tt=st.useCallback(ut=>{console.log("changeEnd",ut),et&&et(ut)},[]);st.useEffect(()=>{if(!te(O)){const ut=KE(O,_e=>{const{data:Lt,width:dn,height:Si}=_e,$T=new Uint8Array(Lt);return ee.Texture.fromBuffer($T,dn,Si)}),$e=ut.map((_e,Lt)=>({texture:_e,time:T[Lt]}));r(ut),s($e);let Dr=0;T.forEach(_e=>{Dr+=_e*10}),n(Dr)}},[O,T]);const K=ut=>{p.current&&(p.current.gotoAndPlay(ut||0),_.current.isPlaying=!0)},ft=()=>{p.current&&(p.current.stop(),_.current.isPlaying=!1)},ct=()=>{p.current&&(p.current.stop(),_.current.isPlaying=!1)},ht=()=>{p.current&&!_.current.isPlaying&&(p.current.play(),_.current.isPlaying=!0)},nt=()=>{o(!0)},Ot=ut=>{y.current=ut.alpha},Et=ut=>{y.current=ut.alpha};Q.useEffect(()=>{let ut=de.context(()=>{});if(v.current&&x.current){const $e={duration:Number(S)-Number(w),onStart:K,onComplete:ft,onStartParams:[w],onCompleteParams:[],onInterrupt:ct,onUpdate:ht,onUpdateParams:[]},Dr={onStart:Ot,onStartParams:[{alpha:1}]},_e={onComplete:Et,onCompleteParams:[{alpha:0}]},Lt=Hs(R||"None");ut=de.context(()=>{var dn,Si;x.current.to(v.current,{alpha:1,duration:.01,...Dr},w).from(v.current,{...$e},w).to(v.current,{alpha:0,duration:.1,..._e},Number(S)-.09),te(Lt.from)?te(Lt.to)?te(Lt.fromTo)||x.current.fromTo(v.current,(dn=Lt.fromTo)==null?void 0:dn.from,(Si=Lt.fromTo)==null?void 0:Si.to,w):x.current.to(v.current,{alpha:1,duration:.2,...Lt.to},w):x.current.from(v.current,{...Lt.from},w)})}return()=>ut.revert()},[R,w,S]);const je=st.useCallback(()=>{f(!0)},[]);Z.ticker.add(ut=>{d.current&&(d.current.rotation+=.01*ut,d.current.clear().lineStyle(4,16777215,1).moveTo(40,0).arc(0,0,40,0,Math.PI*2*.6,!1))});const gt=st.useCallback(ut=>{ut.clear()},[]);return dt.jsxs(yt.Container,{ref:g,children:[dt.jsx(yt.Container,{ref:v,alpha:y.current,position:[U,X],pivot:[U,X],width:F,height:D,children:dt.jsxs(yt.Container,{ref:m,children:[!E&&dt.jsx(yt.Container,{anchor:.5,position:[F/2,D/2],children:dt.jsx(yt.Graphics,{x:U,y:X,ref:d,draw:gt})}),t&&t.length>0&&dt.jsx(NT,{scale:1,blur:{blur:Rt,quality:4},adjust:W,apply:({matrix:ut})=>{L==="BlackAndWhite"?ut.desaturate():L==="Sepia"?ut.sepia():L==="RetroVintage"||L==="NightVision"?ut.negative():L==="Normal"&&ut.reset()},matrix:{enabled:!0,matrix:CT},children:dt.jsx(uf,{x:U,y:X,width:F,height:D,rotation:j,animationSpeed:1,loop:C,textures:i,onComplete:nt,onFrameChange:ut=>a(ut),anchor:.5,...!I&&!l&&{interactive:!0,buttonMode:!0,pointerdown:$,pointerover:q,pointerout:Y,pointerup:G,mousedown:M,mouseup:B,mouseover:H,mouseout:z},forwardRef:p,scale:k})})]})}),J&&dt.jsx(qs,{pixiTransformerRef:b,imageRef:v,isMounted:E,transformCommit:tt,transformChange:je,mouseoverEvent:c,uniqueId:N})]})};var ff={exports:{}};/*!
550
+ </svg>`,x=new hg(y),O=b.renderer.generateTexture(x);return r(O),()=>{}},[b,a,p,v,u,d]),dt.jsx(ai,{...e,children:dt.jsx(yt.Container,{ref:i,children:dt.jsx(yt.Container,{ref:s,children:t&&dt.jsx(yt.Sprite,{texture:t,width:f,height:c,anchor:h,ref:n,x:o,y:l,interactive:!0,pointerdown:g,pointerup:m})})})})};var vi={};Object.defineProperty(vi,"__esModule",{value:!0});var $g=Q,va;function Su(){return va||(va=document.createElement("div")),va}function Gg(e,t,r){var n;return $g.useEffect(function(){n=n||Su();var i=function(s){var a=s.detail;t(a)};return n.addEventListener(e,i,!1),function(){n==null||n.removeEventListener(e,i,!1)}},r),function(i){n=i}}function qg(e,t){var r=Su(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function Hg(){var e;function t(r){e=r}return t.emit=function(r,n){var i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}vi.emitCustomEvent=qg,vi.newCustomEventEmitter=Hg;var Ou=vi.useCustomEventListener=Gg;const Vg=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=st.useState(!1),n=Q.useRef(t);console.log("allProps",e);const i=Q.useRef(null),s=Q.useRef(null),{tl:a,playerTimeRef:o}=Q.useContext(Or),{uniqueId:l,src:f,startAt:c,endAt:h,mute:u,speed:d}=e,p=st.useRef(null);Ou(Kt.PAUSE,()=>{var y;console.log("pause event"),i.current&&((y=p.current)==null||y.pause(),n.current.isPlaying=!1)});const v=y=>{var x;i.current&&(console.log("audio gsapOnStart",y),o.current>=y&&o.current<=h&&((x=p.current)==null||x.play({volume:u?0:1,start:y,end:h,speed:d||1}),n.current.isPlaying=!0,n.current.completed=!1))},g=()=>{var y;i.current&&(console.log("audio gsapOnStart",c),(y=p.current)==null||y.stop(),n.current.isPlaying=!1,n.current.completed=!0)},m=y=>{var x,O,T;i.current&&!n.current.isPlaying&&!n.current.completed&&(console.log("audio gsapOnUpdate",y),(x=p.current)==null||x.refresh(),(O=p.current)==null||O.refreshPaused(),(T=p.current)==null||T.resume(),n.current.isPlaying=!0)},b=()=>{};Q.useEffect(()=>{let y=de.context(()=>{});if(i.current&&a.current){const x={duration:Number(h)-Number(c),onStart:v,onComplete:g,onStartParams:[c],onCompleteParams:[],onInterrupt:b,onUpdate:m,onUpdateParams:[]};y=de.context(()=>{a.current.to(i.current,{alpha:1,duration:.01},c).from(s.current,{...x},c).to(i.current,{alpha:0,duration:.1},Number(h)-.1)})}return()=>y.revert()},[c,h]),st.useEffect(()=>{i.current&&r(!0)},[]),st.useEffect(()=>{i.current&&p.current&&(console.log("soundref",p.current),n.current.mute=u,n.current.speed=d,console.log("containerAudio",p.current.volume),p.current.volume=u?0:1)},[u,d]);const _=st.useCallback((y,x)=>{p.current=x,n.current.loaded=!0},[]);return st.useEffect(()=>(te(f)||(p.current=gf.Sound.from({url:f,preload:!0,singleInstance:!0,loaded:_})),()=>{}),[l,f,_]),dt.jsx(yt.Container,{ref:i})};function zg(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 Iu=zg;function Xg(){this.__data__=[],this.size=0}var Wg=Xg;function Yg(e,t){return e===t||e!==e&&t!==t}var Ru=Yg,Kg=Ru;function Zg(e,t){for(var r=e.length;r--;)if(Kg(e[r][0],t))return r;return-1}var yi=Zg,Qg=yi,Jg=Array.prototype,t0=Jg.splice;function e0(e){var t=this.__data__,r=Qg(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():t0.call(t,r,1),--this.size,!0}var r0=e0,n0=yi;function i0(e){var t=this.__data__,r=n0(t,e);return r<0?void 0:t[r][1]}var s0=i0,a0=yi;function o0(e){return a0(this.__data__,e)>-1}var l0=o0,u0=yi;function f0(e,t){var r=this.__data__,n=u0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var c0=f0,h0=Wg,d0=r0,p0=s0,v0=l0,y0=c0;function Lr(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])}}Lr.prototype.clear=h0,Lr.prototype.delete=d0,Lr.prototype.get=p0,Lr.prototype.has=v0,Lr.prototype.set=y0;var mi=Lr,m0=mi;function g0(){this.__data__=new m0,this.size=0}var b0=g0;function _0(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var x0=_0;function E0(e){return this.__data__.get(e)}var T0=E0;function w0(e){return this.__data__.has(e)}var A0=w0,S0=Ir,O0=S0(Object,"create"),gi=O0,Nu=gi;function I0(){this.__data__=Nu?Nu(null):{},this.size=0}var R0=I0;function N0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var C0=N0,P0=gi,k0="__lodash_hash_undefined__",M0=Object.prototype,L0=M0.hasOwnProperty;function F0(e){var t=this.__data__;if(P0){var r=t[e];return r===k0?void 0:r}return L0.call(t,e)?t[e]:void 0}var B0=F0,U0=gi,D0=Object.prototype,j0=D0.hasOwnProperty;function $0(e){var t=this.__data__;return U0?t[e]!==void 0:j0.call(t,e)}var G0=$0,q0=gi,H0="__lodash_hash_undefined__";function V0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=q0&&t===void 0?H0:t,this}var z0=V0,X0=R0,W0=C0,Y0=B0,K0=G0,Z0=z0;function Fr(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])}}Fr.prototype.clear=X0,Fr.prototype.delete=W0,Fr.prototype.get=Y0,Fr.prototype.has=K0,Fr.prototype.set=Z0;var Q0=Fr,Cu=Q0,J0=mi,tb=Xs;function eb(){this.size=0,this.__data__={hash:new Cu,map:new(tb||J0),string:new Cu}}var rb=eb;function nb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ib=nb,sb=ib;function ab(e,t){var r=e.__data__;return sb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var bi=ab,ob=bi;function lb(e){var t=ob(this,e).delete(e);return this.size-=t?1:0,t}var ub=lb,fb=bi;function cb(e){return fb(this,e).get(e)}var hb=cb,db=bi;function pb(e){return db(this,e).has(e)}var vb=pb,yb=bi;function mb(e,t){var r=yb(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var gb=mb,bb=rb,_b=ub,xb=hb,Eb=vb,Tb=gb;function Br(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])}}Br.prototype.clear=bb,Br.prototype.delete=_b,Br.prototype.get=xb,Br.prototype.has=Eb,Br.prototype.set=Tb;var ya=Br,wb=mi,Ab=Xs,Sb=ya,Ob=200;function Ib(e,t){var r=this.__data__;if(r instanceof wb){var n=r.__data__;if(!Ab||n.length<Ob-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Sb(n)}return r.set(e,t),this.size=r.size,this}var Rb=Ib,Nb=mi,Cb=b0,Pb=x0,kb=T0,Mb=A0,Lb=Rb;function Ur(e){var t=this.__data__=new Nb(e);this.size=t.size}Ur.prototype.clear=Cb,Ur.prototype.delete=Pb,Ur.prototype.get=kb,Ur.prototype.has=Mb,Ur.prototype.set=Lb;var Pu=Ur,Fb="__lodash_hash_undefined__";function Bb(e){return this.__data__.set(e,Fb),this}var Ub=Bb;function Db(e){return this.__data__.has(e)}var jb=Db,$b=ya,Gb=Ub,qb=jb;function _i(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new $b;++t<r;)this.add(e[t])}_i.prototype.add=_i.prototype.push=Gb,_i.prototype.has=qb;var Hb=_i;function Vb(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 zb=Vb;function Xb(e,t){return e.has(t)}var Wb=Xb,Yb=Hb,Kb=zb,Zb=Wb,Qb=1,Jb=2;function t1(e,t,r,n,i,s){var a=r&Qb,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var f=s.get(e),c=s.get(t);if(f&&c)return f==t&&c==e;var h=-1,u=!0,d=r&Jb?new Yb:void 0;for(s.set(e,t),s.set(t,e);++h<o;){var p=e[h],v=t[h];if(n)var g=a?n(v,p,h,t,e,s):n(p,v,h,e,t,s);if(g!==void 0){if(g)continue;u=!1;break}if(d){if(!Kb(t,function(m,b){if(!Zb(d,b)&&(p===m||i(p,m,r,n,s)))return d.push(b)})){u=!1;break}}else if(!(p===v||i(p,v,r,n,s))){u=!1;break}}return s.delete(e),s.delete(t),u}var ku=t1,e1=Oe,r1=e1.Uint8Array,n1=r1;function i1(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var s1=i1;function a1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var o1=a1,Mu=ri,Lu=n1,l1=Ru,u1=ku,f1=s1,c1=o1,h1=1,d1=2,p1="[object Boolean]",v1="[object Date]",y1="[object Error]",m1="[object Map]",g1="[object Number]",b1="[object RegExp]",_1="[object Set]",x1="[object String]",E1="[object Symbol]",T1="[object ArrayBuffer]",w1="[object DataView]",Fu=Mu?Mu.prototype:void 0,ma=Fu?Fu.valueOf:void 0;function A1(e,t,r,n,i,s,a){switch(r){case w1:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T1:return!(e.byteLength!=t.byteLength||!s(new Lu(e),new Lu(t)));case p1:case v1:case g1:return l1(+e,+t);case y1:return e.name==t.name&&e.message==t.message;case b1:case x1:return e==t+"";case m1:var o=f1;case _1:var l=n&h1;if(o||(o=c1),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;n|=d1,a.set(e,t);var c=u1(o(e),o(t),n,i,s,a);return a.delete(e),c;case E1:if(ma)return ma.call(e)==ma.call(t)}return!1}var S1=A1;function O1(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var I1=O1,R1=I1,N1=be;function C1(e,t,r){var n=t(e);return N1(e)?n:R1(n,r(e))}var P1=C1;function k1(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[i++]=a)}return s}var M1=k1;function L1(){return[]}var F1=L1,B1=M1,U1=F1,D1=Object.prototype,j1=D1.propertyIsEnumerable,Bu=Object.getOwnPropertySymbols,$1=Bu?function(e){return e==null?[]:(e=Object(e),B1(Bu(e),function(t){return j1.call(e,t)}))}:U1,G1=$1;function q1(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var H1=q1,V1=9007199254740991,z1=/^(?:0|[1-9]\d*)$/;function X1(e,t){var r=typeof e;return t=t??V1,!!t&&(r=="number"||r!="symbol"&&z1.test(e))&&e>-1&&e%1==0&&e<t}var Uu=X1,W1=H1,Y1=Js,K1=be,Z1=ea,Q1=Uu,J1=ra,t_=Object.prototype,e_=t_.hasOwnProperty;function r_(e,t){var r=K1(e),n=!r&&Y1(e),i=!r&&!n&&Z1(e),s=!r&&!n&&!i&&J1(e),a=r||n||i||s,o=a?W1(e.length,String):[],l=o.length;for(var f in e)(t||e_.call(e,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Q1(f,l)))&&o.push(f);return o}var n_=r_,i_=n_,s_=Dl,a_=ni;function o_(e){return a_(e)?i_(e):s_(e)}var ga=o_,l_=P1,u_=G1,f_=ga;function c_(e){return l_(e,f_,u_)}var h_=c_,Du=h_,d_=1,p_=Object.prototype,v_=p_.hasOwnProperty;function y_(e,t,r,n,i,s){var a=r&d_,o=Du(e),l=o.length,f=Du(t),c=f.length;if(l!=c&&!a)return!1;for(var h=l;h--;){var u=o[h];if(!(a?u in t:v_.call(t,u)))return!1}var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var g=a;++h<l;){u=o[h];var m=e[u],b=t[u];if(n)var _=a?n(b,m,u,t,e,s):n(m,b,u,e,t,s);if(!(_===void 0?m===b||i(m,b,r,n,s):_)){v=!1;break}g||(g=u=="constructor")}if(v&&!g){var y=e.constructor,x=t.constructor;y!=x&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof x=="function"&&x instanceof x)&&(v=!1)}return s.delete(e),s.delete(t),v}var m_=y_,ba=Pu,g_=ku,b_=S1,__=m_,ju=tu,$u=be,Gu=ea,x_=ra,E_=1,qu="[object Arguments]",Hu="[object Array]",xi="[object Object]",T_=Object.prototype,Vu=T_.hasOwnProperty;function w_(e,t,r,n,i,s){var a=$u(e),o=$u(t),l=a?Hu:ju(e),f=o?Hu:ju(t);l=l==qu?xi:l,f=f==qu?xi:f;var c=l==xi,h=f==xi,u=l==f;if(u&&Gu(e)){if(!Gu(t))return!1;a=!0,c=!1}if(u&&!c)return s||(s=new ba),a||x_(e)?g_(e,t,r,n,i,s):b_(e,t,l,r,n,i,s);if(!(r&E_)){var d=c&&Vu.call(e,"__wrapped__"),p=h&&Vu.call(t,"__wrapped__");if(d||p){var v=d?e.value():e,g=p?t.value():t;return s||(s=new ba),i(v,g,r,n,s)}}return u?(s||(s=new ba),__(e,t,r,n,i,s)):!1}var A_=w_,S_=A_,zu=on;function Xu(e,t,r,n,i){return e===t?!0:e==null||t==null||!zu(e)&&!zu(t)?e!==e&&t!==t:S_(e,t,r,n,Xu,i)}var Wu=Xu,O_=Pu,I_=Wu,R_=1,N_=2;function C_(e,t,r,n){var i=r.length,s=i,a=!n;if(e==null)return!s;for(e=Object(e);i--;){var o=r[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=r[i];var l=o[0],f=e[l],c=o[1];if(a&&o[2]){if(f===void 0&&!(l in e))return!1}else{var h=new O_;if(n)var u=n(f,c,l,e,t,h);if(!(u===void 0?I_(c,f,R_|N_,n,h):u))return!1}}return!0}var P_=C_,k_=Vs;function M_(e){return e===e&&!k_(e)}var Yu=M_,L_=Yu,F_=ga;function B_(e){for(var t=F_(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,L_(i)]}return t}var U_=B_;function D_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ku=D_,j_=P_,$_=U_,G_=Ku;function q_(e){var t=$_(e);return t.length==1&&t[0][2]?G_(t[0][0],t[0][1]):function(r){return r===e||j_(r,e,t)}}var H_=q_,V_=an,z_=on,X_="[object Symbol]";function W_(e){return typeof e=="symbol"||z_(e)&&V_(e)==X_}var _a=W_,Y_=be,K_=_a,Z_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q_=/^\w*$/;function J_(e,t){if(Y_(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||K_(e)?!0:Q_.test(e)||!Z_.test(e)||t!=null&&e in Object(t)}var xa=J_,Zu=ya,tx="Expected a function";function Ea(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(tx);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var a=e.apply(this,n);return r.cache=s.set(i,a)||s,a};return r.cache=new(Ea.Cache||Zu),r}Ea.Cache=Zu;var ex=Ea,rx=ex,nx=500;function ix(e){var t=rx(e,function(n){return r.size===nx&&r.clear(),n}),r=t.cache;return t}var sx=ix,ax=sx,ox=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lx=/\\(\\)?/g,ux=ax(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ox,function(r,n,i,s){t.push(i?s.replace(lx,"$1"):n||r)}),t}),fx=ux,Qu=ri,cx=Iu,hx=be,dx=_a,px=1/0,Ju=Qu?Qu.prototype:void 0,tf=Ju?Ju.toString:void 0;function ef(e){if(typeof e=="string")return e;if(hx(e))return cx(e,ef)+"";if(dx(e))return tf?tf.call(e):"";var t=e+"";return t=="0"&&1/e==-px?"-0":t}var vx=ef,yx=vx;function mx(e){return e==null?"":yx(e)}var gx=mx,bx=be,_x=xa,xx=fx,Ex=gx;function Tx(e,t){return bx(e)?e:_x(e,t)?[e]:xx(Ex(e))}var rf=Tx,wx=_a,Ax=1/0;function Sx(e){if(typeof e=="string"||wx(e))return e;var t=e+"";return t=="0"&&1/e==-Ax?"-0":t}var Ei=Sx,Ox=rf,Ix=Ei;function Rx(e,t){t=Ox(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[Ix(t[r++])];return r&&r==n?e:void 0}var nf=Rx,Nx=nf;function Cx(e,t,r){var n=e==null?void 0:Nx(e,t);return n===void 0?r:n}var Px=Cx;function kx(e,t){return e!=null&&t in Object(e)}var Mx=kx,Lx=rf,Fx=Js,Bx=be,Ux=Uu,Dx=ta,jx=Ei;function $x(e,t,r){t=Lx(t,e);for(var n=-1,i=t.length,s=!1;++n<i;){var a=jx(t[n]);if(!(s=e!=null&&r(e,a)))break;e=e[a]}return s||++n!=i?s:(i=e==null?0:e.length,!!i&&Dx(i)&&Ux(a,i)&&(Bx(e)||Fx(e)))}var Gx=$x,qx=Mx,Hx=Gx;function Vx(e,t){return e!=null&&Hx(e,t,qx)}var zx=Vx,Xx=Wu,Wx=Px,Yx=zx,Kx=xa,Zx=Yu,Qx=Ku,Jx=Ei,tE=1,eE=2;function rE(e,t){return Kx(e)&&Zx(t)?Qx(Jx(e),t):function(r){var n=Wx(r,e);return n===void 0&&n===t?Yx(r,e):Xx(t,n,tE|eE)}}var nE=rE;function iE(e){return e}var sE=iE;function aE(e){return function(t){return t==null?void 0:t[e]}}var oE=aE,lE=nf;function uE(e){return function(t){return lE(t,e)}}var fE=uE,cE=oE,hE=fE,dE=xa,pE=Ei;function vE(e){return dE(e)?cE(pE(e)):hE(e)}var yE=vE,mE=H_,gE=nE,bE=sE,_E=be,xE=yE;function EE(e){return typeof e=="function"?e:e==null?bE:typeof e=="object"?_E(e)?gE(e[0],e[1]):mE(e):xE(e)}var TE=EE;function wE(e){return function(t,r,n){for(var i=-1,s=Object(t),a=n(t),o=a.length;o--;){var l=a[e?o:++i];if(r(s[l],l,s)===!1)break}return t}}var AE=wE,SE=AE,OE=SE(),IE=OE,RE=IE,NE=ga;function CE(e,t){return e&&RE(e,t,NE)}var PE=CE,kE=ni;function ME(e,t){return function(r,n){if(r==null)return r;if(!kE(r))return e(r,n);for(var i=r.length,s=t?i:-1,a=Object(r);(t?s--:++s<i)&&n(a[s],s,a)!==!1;);return r}}var LE=ME,FE=PE,BE=LE,UE=BE(FE),DE=UE,jE=DE,$E=ni;function GE(e,t){var r=-1,n=$E(e)?Array(e.length):[];return jE(e,function(i,s,a){n[++r]=t(i,s,a)}),n}var qE=GE,HE=Iu,VE=TE,zE=qE,XE=be;function WE(e,t){var r=XE(e)?HE:zE;return r(e,VE(t))}var YE=WE;const KE=sr(YE);var ir={},sf={},Re={};Object.defineProperty(Re,"__esModule",{value:!0}),Re.loop=Re.conditional=Re.parse=void 0;var ZE=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(a){return e(t,a,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var s=Object.keys(r)[0];Array.isArray(r[s])?(i[s]={},e(t,r[s],n,i[s])):i[s]=r[s](t,n,i,e)}return n};Re.parse=ZE;var QE=function(t,r){return function(n,i,s,a){r(n,i,s)&&a(n,t,i,s)}};Re.conditional=QE;var JE=function(t,r){return function(n,i,s,a){for(var o=[],l=n.pos;r(n,i,s);){var f={};if(a(n,t,i,f),n.pos===l)break;l=n.pos,o.push(f)}return o}};Re.loop=JE;var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.readBits=Ft.readArray=Ft.readUnsigned=Ft.readString=Ft.peekBytes=Ft.readBytes=Ft.peekByte=Ft.readByte=Ft.buildStream=void 0;var tT=function(t){return{data:t,pos:0}};Ft.buildStream=tT;var af=function(){return function(t){return t.data[t.pos++]}};Ft.readByte=af;var eT=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};Ft.peekByte=eT;var Ti=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};Ft.readBytes=Ti;var rT=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};Ft.peekBytes=rT;var nT=function(t){return function(r){return Array.from(Ti(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};Ft.readString=nT;var iT=function(t){return function(r){var n=Ti(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};Ft.readUnsigned=iT;var sT=function(t,r){return function(n,i,s){for(var a=typeof r=="function"?r(n,i,s):r,o=Ti(t),l=new Array(a),f=0;f<a;f++)l[f]=o(n);return l}};Ft.readArray=sT;var aT=function(t,r,n){for(var i=0,s=0;s<n;s++)i+=t[r+s]&&Math.pow(2,n-s-1);return i},oT=function(t){return function(r){for(var n=af()(r),i=new Array(8),s=0;s<8;s++)i[7-s]=!!(n&1<<s);return Object.keys(t).reduce(function(a,o){var l=t[o];return l.length?a[o]=aT(i,l.index,l.length):a[o]=i[l.index],a},{})}};Ft.readBits=oT,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Re,r=Ft,n={blocks:function(u){for(var d=0,p=[],v=u.data.length,g=0,m=(0,r.readByte)()(u);m!==d&&m;m=(0,r.readByte)()(u)){if(u.pos+m>=v){var b=v-u.pos;p.push((0,r.readBytes)(b)(u)),g+=b;break}p.push((0,r.readBytes)(m)(u)),g+=m}for(var _=new Uint8Array(g),y=0,x=0;x<p.length;x++)_.set(p[x],y),y+=p[x].length;return _}},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(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===249}),s=(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(h,u,d){return Math.pow(2,d.descriptor.lct.size+1)})},function(h,u,d){return d.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(h){return(0,r.peekByte)()(h)===44}),a=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(u,d,p){return(0,r.readBytes)(p.text.blockSize)(u)}},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===1}),o=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(u,d,p){return(0,r.readString)(p.blockSize)(u)}},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===255}),l=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(h){var u=(0,r.peekBytes)(2)(h);return u[0]===33&&u[1]===254}),f=[{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(h,u){return Math.pow(2,u.lsd.gct.size+1)})},function(h,u){return u.lsd.gct.exists}),{frames:(0,t.loop)([i,o,l,s,a],function(h){var u=(0,r.peekByte)()(h);return u===33||u===44})}],c=f;e.default=c}(sf);var wi={};Object.defineProperty(wi,"__esModule",{value:!0}),wi.deinterlace=void 0;var lT=function(t,r){for(var n=new Array(t.length),i=t.length/r,s=function(u,d){var p=t.slice(d*r,(d+1)*r);n.splice.apply(n,[u*r,r].concat(p))},a=[0,4,2,1],o=[8,8,4,2],l=0,f=0;f<4;f++)for(var c=a[f];c<i;c+=o[f])s(c,l),l++;return n};wi.deinterlace=lT;var Ai={};Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.lzw=void 0;var uT=function(t,r,n){var i=4096,s=-1,a=n,o,l,f,c,h,u,d,O,p,v,x,g,T,E,A,N,m=new Array(n),b=new Array(i),_=new Array(i),y=new Array(i+1);for(g=t,l=1<<g,h=l+1,o=l+2,d=s,c=g+1,f=(1<<c)-1,p=0;p<l;p++)b[p]=0,_[p]=p;var x,O,T,E,N,A;for(x=O=T=E=N=A=0,v=0;v<a;){if(E===0){if(O<c){x+=r[A]<<O,O+=8,A++;continue}if(p=x&f,x>>=c,O-=c,p>o||p==h)break;if(p==l){c=g+1,f=(1<<c)-1,o=l+2,d=s;continue}if(d==s){y[E++]=_[p],d=p,T=p;continue}for(u=p,p==o&&(y[E++]=T,p=d);p>l;)y[E++]=_[p],p=b[p];T=_[p]&255,y[E++]=T,o<i&&(b[o]=d,_[o]=T,o++,!(o&f)&&o<i&&(c++,f+=o)),d=u}E--,m[N++]=y[E],v++}for(v=N;v<a;v++)m[v]=0;return m};Ai.lzw=uT,Object.defineProperty(ir,"__esModule",{value:!0}),ir.decompressFrames=ir.decompressFrame=ir.parseGIF=void 0;var fT=vT(sf),cT=Re,hT=Ft,dT=wi,pT=Ai;function vT(e){return e&&e.__esModule?e:{default:e}}var yT=function(t){var r=new Uint8Array(t);return(0,cT.parse)((0,hT.buildStream)(r),fT.default)};ir.parseGIF=yT;var mT=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var s=i*4,a=t.pixels[i],o=t.colorTable[a]||[0,0,0];n[s]=o[0],n[s+1]=o[1],n[s+2]=o[2],n[s+3]=a!==t.transparentIndex?255:0}return n},of=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,s=i.descriptor.width*i.descriptor.height,a=(0,pT.lzw)(i.data.minCodeSize,i.data.blocks,s);i.descriptor.lct.interlaced&&(a=(0,dT.deinterlace)(a,i.descriptor.width));var o={pixels:a,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?o.colorTable=i.lct:o.colorTable=r,t.gce&&(o.delay=(t.gce.delay||10)*10,o.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(o.transparentIndex=t.gce.transparentColorIndex)),n&&(o.patch=mT(o)),o};ir.decompressFrame=of;var gT=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return of(n,t.gct,r)})};ir.decompressFrames=gT;const lf=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,s={...e,...i};return r&&Object.assign(s,{playing:s.autoPlay&&s.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(s,{length:s.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(s,{index:s.length===0?0:(s.length+s.index)%s.length}),t.playing!=null&&Object.assign(s,s.loaded?{playing:n}:{autoPlay:n}),s},bT=e=>lf({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),_T=e=>Q.useReducer(lf,e,bT);var xT='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 ET(e){const t=new Blob([xT],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const TT=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),wT=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),Q.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)},AT=e=>{const t=Q.useRef(e);return Q.useEffect(()=>{t.current=e},[e]),t},ST=e=>{const t=AT(e);return Q.useCallback(r=>t.current&&t.current(r),[])},OT=wT(()=>new ET,e=>e.terminate()),IT=(e,t)=>{const r=ST(t),n=OT();Q.useEffect(()=>{if(typeof e=="string"){const i=s=>{const a=s.data||s;if(a.src===e){const o=a.error?a:TT(a);r(o)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},RT=({isPlaying:e,forwardRef:t,...r})=>{const n=st.useRef(null);return st.useImperativeHandle(t,()=>n.current,[n]),st.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),dt.jsx(yt.AnimatedSprite,{ref:n,...r,isPlaying:e})},uf=st.memo(RT),NT=yt.withFilters(yt.Container,{blur:ee.filters.BlurFilter,adjust:Gs,matrix:ee.filters.ColorMatrixFilter}),CT=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],PT={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},kT=e=>{const[t,r]=st.useState([]),[,n]=st.useState(0),[i,s]=st.useState([]),[,a]=Q.useState(0),[,o]=Q.useState(!1),[l,f]=Q.useState(!1),[,c]=Q.useState(!1),[h,u]=_T({autoPlay:!1}),d=st.useRef(null),p=Q.useRef(null),v=Q.useRef(null),g=Q.useRef(null),m=Q.useRef(null),b=Q.useRef(null),_=Q.useRef(PT),y=Q.useRef(e.initialAlpha),{tl:x}=Q.useContext(Or),{frames:O,delays:T,loaded:E}=h,{uniqueId:N,src:A,startAt:w,endAt:S,locked:I,loop:C,transformation:{width:F=0,height:D=0,x:U,y:X,rotation:j=0,scale:k,animation:R,colorCorrection:P,effect:L},pointerdown:$,pointerup:G,mousedown:M,mouseup:B,pointerover:q,mouseover:H,mouseout:z,pointerout:Y,applyTransformer:J,onAnchorTransformationEnd:et}=e,{contrast:at=1,saturation:lt=1,exposure:Ct=1,blurRadius:Rt=0,alpha:V=1}=P||{},W={brightness:Ct,contrast:at,saturation:lt,alpha:V},Z=yt.useApp();IT(A,u),Ue(Kt.PAUSE,ut=>{console.log("pause event",ut),p.current&&(p.current.stop(),_.current.isPlaying=!1)});const tt=st.useCallback(ut=>{console.log("changeEnd",ut),et&&et(ut)},[]);st.useEffect(()=>{if(!te(O)){const ut=KE(O,_e=>{const{data:Lt,width:dn,height:Si}=_e,$T=new Uint8Array(Lt);return ee.Texture.fromBuffer($T,dn,Si)}),$e=ut.map((_e,Lt)=>({texture:_e,time:T[Lt]}));r(ut),s($e);let Dr=0;T.forEach(_e=>{Dr+=_e*10}),n(Dr)}},[O,T]);const K=ut=>{p.current&&(p.current.gotoAndPlay(ut||0),_.current.isPlaying=!0)},ft=()=>{p.current&&(p.current.stop(),_.current.isPlaying=!1)},ct=()=>{p.current&&(p.current.stop(),_.current.isPlaying=!1)},ht=()=>{p.current&&!_.current.isPlaying&&(p.current.play(),_.current.isPlaying=!0)},nt=()=>{o(!0)},Ot=ut=>{y.current=ut.alpha},Et=ut=>{y.current=ut.alpha};Q.useEffect(()=>{let ut=de.context(()=>{});if(v.current&&x.current){const $e={duration:Number(S)-Number(w),onStart:K,onComplete:ft,onStartParams:[w],onCompleteParams:[],onInterrupt:ct,onUpdate:ht,onUpdateParams:[]},Dr={onStart:Ot,onStartParams:[{alpha:1}]},_e={onComplete:Et,onCompleteParams:[{alpha:0}]},Lt=Hs(R||"None");ut=de.context(()=>{var dn,Si;x.current.to(v.current,{alpha:1,duration:.01,...Dr},w).from(v.current,{...$e},w).to(v.current,{alpha:0,duration:.1,..._e},Number(S)-.09),te(Lt.from)?te(Lt.to)?te(Lt.fromTo)||x.current.fromTo(v.current,(dn=Lt.fromTo)==null?void 0:dn.from,(Si=Lt.fromTo)==null?void 0:Si.to,w):x.current.to(v.current,{alpha:1,duration:.2,...Lt.to},w):x.current.from(v.current,{...Lt.from},w)})}return()=>ut.revert()},[R,w,S]);const je=st.useCallback(()=>{f(!0)},[]);Z.ticker.add(ut=>{d.current&&(d.current.rotation+=.01*ut,d.current.clear().lineStyle(4,16777215,1).moveTo(40,0).arc(0,0,40,0,Math.PI*2*.6,!1))});const gt=st.useCallback(ut=>{ut.clear()},[]);return dt.jsxs(yt.Container,{ref:g,children:[dt.jsx(yt.Container,{ref:v,alpha:y.current,position:[U,X],pivot:[U,X],width:F,height:D,children:dt.jsxs(yt.Container,{ref:m,children:[!E&&dt.jsx(yt.Container,{anchor:.5,position:[F/2,D/2],children:dt.jsx(yt.Graphics,{x:U,y:X,ref:d,draw:gt})}),t&&t.length>0&&dt.jsx(NT,{scale:1,blur:{blur:Rt,quality:4},adjust:W,apply:({matrix:ut})=>{L==="BlackAndWhite"?ut.desaturate():L==="Sepia"?ut.sepia():L==="RetroVintage"||L==="NightVision"?ut.negative():L==="Normal"&&ut.reset()},matrix:{enabled:!0,matrix:CT},children:dt.jsx(uf,{x:U,y:X,width:F,height:D,rotation:j,animationSpeed:1,loop:C,textures:i,onComplete:nt,onFrameChange:ut=>a(ut),anchor:.5,...!I&&!l&&{interactive:!0,buttonMode:!0,pointerdown:$,pointerover:q,pointerout:Y,pointerup:G,mousedown:M,mouseup:B,mouseover:H,mouseout:z},forwardRef:p,scale:k})})]})}),J&&dt.jsx(qs,{pixiTransformerRef:b,imageRef:v,isMounted:E,transformCommit:tt,transformChange:je,mouseoverEvent:c,uniqueId:N})]})};var ff={exports:{}};/*!
551
551
  * Quill Editor v1.3.7
552
552
  * https://quilljs.com/
553
553
  * Copyright (c) 2014, Jason Chen
@@ -587,4 +587,4 @@ void main(void)
587
587
  `),W}function lt(V,W){if(M(V)&&V.nextElementSibling!=null&&!G(W,`
588
588
 
589
589
  `)){var Z=V.offsetHeight+parseFloat($(V).marginTop)+parseFloat($(V).marginBottom);V.nextElementSibling.offsetTop>V.offsetTop+Z*1.5&&W.insert(`
590
- `)}return W}function Ct(V,W){var Z={},tt=V.style||{};return tt.fontStyle&&$(V).fontStyle==="italic"&&(Z.italic=!0),tt.fontWeight&&($(V).fontWeight.startsWith("bold")||parseInt($(V).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(W=L(W,Z)),parseFloat(tt.textIndent||0)>0&&(W=new h.default().insert(" ").concat(W)),W}function Rt(V,W){var Z=V.data;if(V.parentNode.tagName==="O:P")return W.insert(Z.trim());if(Z.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return W;if(!$(V.parentNode).whiteSpace.startsWith("pre")){var tt=function(ft,ct){return ct=ct.replace(/[^\u00a0]/g,""),ct.length<1&&ft?" ":ct};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,tt.bind(tt,!0)),(V.previousSibling==null&&M(V.parentNode)||V.previousSibling!=null&&M(V.previousSibling))&&(Z=Z.replace(/^\s+/,tt.bind(tt,!1))),(V.nextSibling==null&&M(V.parentNode)||V.nextSibling!=null&&M(V.nextSibling))&&(Z=Z.replace(/\s+$/,tt.bind(tt,!1)))}return W.insert(Z)}n.default=P,n.matchAttributor=H,n.matchBlot=z,n.matchNewline=at,n.matchSpacing=lt,n.matchText=Rt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(6),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(){return c(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,[{key:"optimize",value:function(m){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),v}(l.default);d.blotName="bold",d.tagName=["STRONG","B"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var s=function(){function w(S,I){var C=[],F=!0,D=!1,U=void 0;try{for(var X=S[Symbol.iterator](),j;!(F=(j=X.next()).done)&&(C.push(j.value),!(I&&C.length===I));F=!0);}catch(k){D=!0,U=k}finally{try{!F&&X.return&&X.return()}finally{if(D)throw U}}return C}return function(S,I){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function w(S,I){for(var C=0;C<I.length;C++){var F=I[C];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(S,F.key,F)}}return function(S,I,C){return I&&w(S.prototype,I),C&&w(S,C),S}}(),o=i(2),l=m(o),f=i(0),c=m(f),h=i(5),u=m(h),d=i(10),p=m(d),v=i(9),g=m(v);function m(w){return w&&w.__esModule?w:{default:w}}function b(w,S,I){return S in w?Object.defineProperty(w,S,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[S]=I,w}function _(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function y(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function x(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var O=(0,p.default)("quill:toolbar"),T=function(w){x(S,w);function S(I,C){_(this,S);var F=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,I,C));if(Array.isArray(F.options.container)){var D=document.createElement("div");N(D,F.options.container),I.container.parentNode.insertBefore(D,I.container),F.container=D}else typeof F.options.container=="string"?F.container=document.querySelector(F.options.container):F.container=F.options.container;if(!(F.container instanceof HTMLElement)){var U;return U=O.error("Container required for toolbar",F.options),y(F,U)}return F.container.classList.add("ql-toolbar"),F.controls=[],F.handlers={},Object.keys(F.options.handlers).forEach(function(X){F.addHandler(X,F.options.handlers[X])}),[].forEach.call(F.container.querySelectorAll("button, select"),function(X){F.attach(X)}),F.quill.on(u.default.events.EDITOR_CHANGE,function(X,j){X===u.default.events.SELECTION_CHANGE&&F.update(j)}),F.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var X=F.quill.selection.getRange(),j=s(X,1),k=j[0];F.update(k)}),F}return a(S,[{key:"addHandler",value:function(C,F){this.handlers[C]=F}},{key:"attach",value:function(C){var F=this,D=[].find.call(C.classList,function(X){return X.indexOf("ql-")===0});if(D){if(D=D.slice(3),C.tagName==="BUTTON"&&C.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){O.warn("ignoring attaching to disabled format",D,C);return}if(c.default.query(D)==null){O.warn("ignoring attaching to nonexistent format",D,C);return}}var U=C.tagName==="SELECT"?"change":"click";C.addEventListener(U,function(X){var j=void 0;if(C.tagName==="SELECT"){if(C.selectedIndex<0)return;var k=C.options[C.selectedIndex];k.hasAttribute("selected")?j=!1:j=k.value||!1}else C.classList.contains("ql-active")?j=!1:j=C.value||!C.hasAttribute("value"),X.preventDefault();F.quill.focus();var R=F.quill.selection.getRange(),P=s(R,1),L=P[0];if(F.handlers[D]!=null)F.handlers[D].call(F,j);else if(c.default.query(D).prototype instanceof c.default.Embed){if(j=prompt("Enter "+D),!j)return;F.quill.updateContents(new l.default().retain(L.index).delete(L.length).insert(b({},D,j)),u.default.sources.USER)}else F.quill.format(D,j,u.default.sources.USER);F.update(L)}),this.controls.push([D,C])}}},{key:"update",value:function(C){var F=C==null?{}:this.quill.getFormat(C);this.controls.forEach(function(D){var U=s(D,2),X=U[0],j=U[1];if(j.tagName==="SELECT"){var k=void 0;if(C==null)k=null;else if(F[X]==null)k=j.querySelector("option[selected]");else if(!Array.isArray(F[X])){var R=F[X];typeof R=="string"&&(R=R.replace(/\"/g,'\\"')),k=j.querySelector('option[value="'+R+'"]')}k==null?(j.value="",j.selectedIndex=-1):k.selected=!0}else if(C==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var P=F[X]===j.getAttribute("value")||F[X]!=null&&F[X].toString()===j.getAttribute("value")||F[X]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",P)}else j.classList.toggle("ql-active",F[X]!=null)})}}]),S}(g.default);T.DEFAULTS={};function E(w,S,I){var C=document.createElement("button");C.setAttribute("type","button"),C.classList.add("ql-"+S),I!=null&&(C.value=I),w.appendChild(C)}function N(w,S){Array.isArray(S[0])||(S=[S]),S.forEach(function(I){var C=document.createElement("span");C.classList.add("ql-formats"),I.forEach(function(F){if(typeof F=="string")E(C,F);else{var D=Object.keys(F)[0],U=F[D];Array.isArray(U)?A(C,D,U):E(C,D,U)}}),w.appendChild(C)})}function A(w,S,I){var C=document.createElement("select");C.classList.add("ql-"+S),I.forEach(function(F){var D=document.createElement("option");F!==!1?D.setAttribute("value",F):D.setAttribute("selected","selected"),C.appendChild(D)}),w.appendChild(C)}T.DEFAULTS={container:null,handlers:{clean:function(){var S=this,I=this.quill.getSelection();if(I!=null)if(I.length==0){var C=this.quill.getFormat();Object.keys(C).forEach(function(F){c.default.query(F,c.default.Scope.INLINE)!=null&&S.quill.format(F,!1)})}else this.quill.removeFormat(I,u.default.sources.USER)},direction:function(S){var I=this.quill.getFormat().align;S==="rtl"&&I==null?this.quill.format("align","right",u.default.sources.USER):!S&&I==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",S,u.default.sources.USER)},indent:function(S){var I=this.quill.getSelection(),C=this.quill.getFormat(I),F=parseInt(C.indent||0);if(S==="+1"||S==="-1"){var D=S==="+1"?1:-1;C.direction==="rtl"&&(D*=-1),this.quill.format("indent",F+D,u.default.sources.USER)}},link:function(S){S===!0&&(S=prompt("Enter link URL:")),this.quill.format("link",S,u.default.sources.USER)},list:function(S){var I=this.quill.getSelection(),C=this.quill.getFormat(I);S==="check"?C.list==="checked"||C.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",S,u.default.sources.USER)}}},n.default=T,n.addControls=N},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 s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(28),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(g,m){c(this,v);var b=h(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return b.label.innerHTML=m,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),b}return s(v,[{key:"buildItem",value:function(m){var b=a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"buildItem",this).call(this,m);return b.style.backgroundColor=m.getAttribute("value")||"",b}},{key:"selectItem",value:function(m,b){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,b);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),v}(l.default);n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(28),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(g,m){c(this,v);var b=h(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return s(v,[{key:"selectItem",value:function(m,b){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,b),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),v}(l.default);n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function l(f,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(f,u.key,u)}}return function(f,c,h){return c&&l(f.prototype,c),h&&l(f,h),f}}();function a(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,c){var h=this;a(this,l),this.quill=f,this.boundsContainer=c||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return s(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var h=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),v=0;if(p.right>d.right&&(v=d.right-p.right,this.root.style.left=h+v+"px"),p.left<d.left&&(v=d.left-p.left,this.root.style.left=h+v+"px"),p.bottom>d.bottom){var g=p.bottom-p.top,m=c.bottom-c.top+g;this.root.style.top=u-m+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();n.default=o},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function A(w,S){var I=[],C=!0,F=!1,D=void 0;try{for(var U=w[Symbol.iterator](),X;!(C=(X=U.next()).done)&&(I.push(X.value),!(S&&I.length===S));C=!0);}catch(j){F=!0,D=j}finally{try{!C&&U.return&&U.return()}finally{if(F)throw D}}return I}return function(w,S){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return A(w,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function A(w,S,I){w===null&&(w=Function.prototype);var C=Object.getOwnPropertyDescriptor(w,S);if(C===void 0){var F=Object.getPrototypeOf(w);return F===null?void 0:A(F,S,I)}else{if("value"in C)return C.value;var D=C.get;return D===void 0?void 0:D.call(I)}},o=function(){function A(w,S){for(var I=0;I<S.length;I++){var C=S[I];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,S,I){return S&&A(w.prototype,S),I&&A(w,I),w}}(),l=i(3),f=_(l),c=i(8),h=_(c),u=i(43),d=_(u),p=i(27),v=_(p),g=i(15),m=i(41),b=_(m);function _(A){return A&&A.__esModule?A:{default:A}}function y(A,w){if(!(A instanceof w))throw new TypeError("Cannot call a class as a function")}function x(A,w){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:A}function O(A,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);A.prototype=Object.create(w&&w.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(A,w):A.__proto__=w)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(A){O(w,A);function w(S,I){y(this,w),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=T);var C=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,I));return C.quill.container.classList.add("ql-snow"),C}return o(w,[{key:"extendToolbar",value:function(I){I.container.classList.add("ql-snow"),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),b.default),this.tooltip=new N(this.quill,this.options.bounds),I.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(C,F){I.handlers.link.call(I,!F.format.link)})}}]),w}(d.default);E.DEFAULTS=(0,f.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){if(w){var S=this.quill.getSelection();if(S==null||S.length==0)return;var I=this.quill.getText(S);/^\S+@\S+\.\S+$/.test(I)&&I.indexOf("mailto:")!==0&&(I="mailto:"+I);var C=this.quill.theme.tooltip;C.edit("link",I)}else this.quill.format("link",!1)}}}}});var N=function(A){O(w,A);function w(S,I){y(this,w);var C=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,I));return C.preview=C.root.querySelector("a.ql-preview"),C}return o(w,[{key:"listen",value:function(){var I=this;a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(C){I.root.classList.contains("ql-editing")?I.save():I.edit("link",I.preview.textContent),C.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(C){if(I.linkRange!=null){var F=I.linkRange;I.restoreFocus(),I.quill.formatText(F,"link",!1,h.default.sources.USER),delete I.linkRange}C.preventDefault(),I.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(C,F,D){if(C!=null){if(C.length===0&&D===h.default.sources.USER){var U=I.quill.scroll.descendant(v.default,C.index),X=s(U,2),j=X[0],k=X[1];if(j!=null){I.linkRange=new g.Range(C.index-k,j.length());var R=v.default.formats(j.domNode);I.preview.textContent=R,I.preview.setAttribute("href",R),I.show(),I.position(I.quill.getBounds(I.linkRange));return}}else delete I.linkRange;I.hide()}})}},{key:"show",value:function(){a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),w}(u.BaseTooltip);N.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=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(29),a=K(s),o=i(36),l=i(38),f=i(64),c=i(65),h=K(c),u=i(66),d=K(u),p=i(67),v=K(p),g=i(37),m=i(26),b=i(39),_=i(40),y=i(56),x=K(y),O=i(68),T=K(O),E=i(27),N=K(E),A=i(69),w=K(A),S=i(70),I=K(S),C=i(71),F=K(C),D=i(72),U=K(D),X=i(73),j=K(X),k=i(13),R=K(k),P=i(74),L=K(P),$=i(75),G=K($),M=i(57),B=K(M),q=i(41),H=K(q),z=i(28),Y=K(z),J=i(59),et=K(J),at=i(60),lt=K(at),Ct=i(61),Rt=K(Ct),V=i(108),W=K(V),Z=i(62),tt=K(Z);function K(ft){return ft&&ft.__esModule?ft:{default:ft}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":_.SizeStyle},!0),a.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":b.FontClass,"formats/size":_.SizeClass,"formats/blockquote":h.default,"formats/code-block":R.default,"formats/header":d.default,"formats/list":v.default,"formats/bold":x.default,"formats/code":k.Code,"formats/italic":T.default,"formats/link":N.default,"formats/script":w.default,"formats/strike":I.default,"formats/underline":F.default,"formats/image":U.default,"formats/video":j.default,"formats/list/item":p.ListItem,"modules/formula":L.default,"modules/syntax":G.default,"modules/toolbar":B.default,"themes/bubble":W.default,"themes/snow":tt.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":lt.default,"ui/color-picker":et.default,"ui/tooltip":Rt.default},!0),n.default=a.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var s=function(){function v(g,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,m,b){return m&&v(g.prototype,m),b&&v(g,b),g}}(),a=function v(g,m,b){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,m);if(_===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:v(y,m,b)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(b)}},o=i(0),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function h(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var d=function(v){u(g,v);function g(){return c(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return s(g,[{key:"add",value:function(b,_){if(_==="+1"||_==="-1"){var y=this.value(b)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(b),!0):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,_)}},{key:"canAdd",value:function(b,_){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,_)||a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(_))}},{key:"value",value:function(b){return parseInt(a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),p=new d("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(4),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="blockquote",h.tagName="blockquote",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function d(p,v){for(var g=0;g<v.length;g++){var m=v[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(p,m.key,m)}}return function(p,v,g){return v&&d(p.prototype,v),g&&d(p,g),p}}(),a=i(4),o=l(a);function l(d){return d&&d.__esModule?d:{default:d}}function f(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function c(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:d}function h(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}var u=function(d){h(p,d);function p(){return f(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return s(p,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),p}(o.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var s=function(){function y(x,O){for(var T=0;T<O.length;T++){var E=O[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,O,T){return O&&y(x.prototype,O),T&&y(x,T),x}}(),a=function y(x,O,T){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,O);if(E===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:y(N,O,T)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(T)}},o=i(0),l=d(o),f=i(4),c=d(f),h=i(25),u=d(h);function d(y){return y&&y.__esModule?y:{default:y}}function p(y,x,O){return x in y?Object.defineProperty(y,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):y[x]=O,y}function v(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function g(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function m(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=function(y){m(x,y);function x(){return v(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return s(x,[{key:"format",value:function(T,E){T===_.blotName&&!E?this.replaceWith(l.default.create(this.statics.scope)):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,T,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,E){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,E),this):(this.parent.unwrap(),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,T,E))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:a(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,T)}}]),x}(c.default);b.blotName="list-item",b.tagName="LI";var _=function(y){m(x,y),s(x,null,[{key:"create",value:function(T){var E=T==="ordered"?"OL":"UL",N=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,E);return(T==="checked"||T==="unchecked")&&N.setAttribute("data-checked",T==="checked"),N}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function x(O){v(this,x);var T=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,O)),E=function(A){if(A.target.parentNode===O){var w=T.statics.formats(O),S=l.default.find(A.target);w==="checked"?S.format("list","unchecked"):w==="unchecked"&&S.format("list","checked")}};return O.addEventListener("touchstart",E),O.addEventListener("mousedown",E),T}return s(x,[{key:"format",value:function(T,E){this.children.length>0&&this.children.tail.format(T,E)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,E){if(T instanceof b)a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,T,E);else{var N=E==null?this.length():E.offset(this),A=this.split(N);A.parent.insertBefore(T,A)}}},{key:"optimize",value:function(T){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,T);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var E=l.default.create(this.statics.defaultChild);T.moveChildren(E),this.appendChild(E)}a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,T)}}]),x}(u.default);_.blotName="list",_.scope=l.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[b],n.ListItem=b,n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(56),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="italic",h.tagName=["EM","I"],n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(6),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(){return c(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),v}(l.default);d.blotName="script",d.tagName=["SUB","SUP"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(6),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="strike",h.tagName="S",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(6),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="underline",h.tagName="U",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function g(m,b){for(var _=0;_<b.length;_++){var y=b[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,b,_){return b&&g(m.prototype,b),_&&g(m,_),m}}(),a=function g(m,b,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,b);if(y===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,b,_)}else{if("value"in y)return y.value;var O=y.get;return O===void 0?void 0:O.call(_)}},o=i(0),l=c(o),f=i(27);function c(g){return g&&g.__esModule?g:{default:g}}function h(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var p=["alt","height","width"],v=function(g){d(m,g);function m(){return h(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"format",value:function(_,y){p.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return p.reduce(function(y,x){return _.hasAttribute(x)&&(y[x]=_.getAttribute(x)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,f.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(l.default.Embed);v.blotName="image",v.tagName="IMG",n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function g(m,b){for(var _=0;_<b.length;_++){var y=b[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,b,_){return b&&g(m.prototype,b),_&&g(m,_),m}}(),a=function g(m,b,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,b);if(y===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,b,_)}else{if("value"in y)return y.value;var O=y.get;return O===void 0?void 0:O.call(_)}},o=i(4),l=i(27),f=c(l);function c(g){return g&&g.__esModule?g:{default:g}}function h(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var p=["height","width"],v=function(g){d(m,g);function m(){return h(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"format",value:function(_,y){p.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return p.reduce(function(y,x){return _.hasAttribute(x)&&(y[x]=_.getAttribute(x)),y},{})}},{key:"sanitize",value:function(_){return f.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(o.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var s=function(){function _(y,x){for(var O=0;O<x.length;O++){var T=x[O];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,x,O){return x&&_(y.prototype,x),O&&_(y,O),y}}(),a=function _(y,x,O){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,x);if(T===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:_(E,x,O)}else{if("value"in T)return T.value;var N=T.get;return N===void 0?void 0:N.call(O)}},o=i(35),l=d(o),f=i(5),c=d(f),h=i(9),u=d(h);function d(_){return _&&_.__esModule?_:{default:_}}function p(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function g(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){g(y,_);function y(){return p(this,y),v(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,null,[{key:"create",value:function(O){var T=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,O);return typeof O=="string"&&(window.katex.render(O,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",O)),T}},{key:"value",value:function(O){return O.getAttribute("data-value")}}]),y}(l.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var b=function(_){g(y,_),s(y,null,[{key:"register",value:function(){c.default.register(m,!0)}}]);function y(){p(this,y);var x=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return x}return y}(u.default);n.FormulaBlot=m,n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var s=function(){function O(T,E){for(var N=0;N<E.length;N++){var A=E[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(T,A.key,A)}}return function(T,E,N){return E&&O(T.prototype,E),N&&O(T,N),T}}(),a=function O(T,E,N){T===null&&(T=Function.prototype);var A=Object.getOwnPropertyDescriptor(T,E);if(A===void 0){var w=Object.getPrototypeOf(T);return w===null?void 0:O(w,E,N)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(N)}},o=i(0),l=v(o),f=i(5),c=v(f),h=i(9),u=v(h),d=i(13),p=v(d);function v(O){return O&&O.__esModule?O:{default:O}}function g(O,T){if(!(O instanceof T))throw new TypeError("Cannot call a class as a function")}function m(O,T){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:O}function b(O,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);O.prototype=Object.create(T&&T.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(O,T):O.__proto__=T)}var _=function(O){b(T,O);function T(){return g(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return s(T,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),T}(p.default);_.className="ql-syntax";var y=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),x=function(O){b(T,O),s(T,null,[{key:"register",value:function(){c.default.register(y,!0),c.default.register(_,!0)}}]);function T(E,N){g(this,T);var A=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,E,N));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var w=null;return A.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(w),w=setTimeout(function(){A.highlight(),w=null},A.options.interval)}),A.highlight(),A}return s(T,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(w){w.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),A!=null&&this.quill.setSelection(A,c.default.sources.SILENT)}}}]),T}(u.default);x.DEFAULTS={highlight:function(){return window.hljs==null?null:function(O){var T=window.hljs.highlightAuto(O);return T.value}}(),interval:1e3},n.CodeBlock=_,n.CodeToken=y,n.default=x},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 s=function T(E,N,A){E===null&&(E=Function.prototype);var w=Object.getOwnPropertyDescriptor(E,N);if(w===void 0){var S=Object.getPrototypeOf(E);return S===null?void 0:T(S,N,A)}else{if("value"in w)return w.value;var I=w.get;return I===void 0?void 0:I.call(A)}},a=function(){function T(E,N){for(var A=0;A<N.length;A++){var w=N[A];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}return function(E,N,A){return N&&T(E.prototype,N),A&&T(E,A),E}}(),o=i(3),l=g(o),f=i(8),c=g(f),h=i(43),u=g(h),d=i(15),p=i(41),v=g(p);function g(T){return T&&T.__esModule?T:{default:T}}function m(T,E){if(!(T instanceof E))throw new TypeError("Cannot call a class as a function")}function b(T,E){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:T}function _(T,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);T.prototype=Object.create(E&&E.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(T,E):T.__proto__=E)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],x=function(T){_(E,T);function E(N,A){m(this,E),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=y);var w=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N,A));return w.quill.container.classList.add("ql-bubble"),w}return a(E,[{key:"extendToolbar",value:function(A){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),v.default)}}]),E}(u.default);x.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=function(T){_(E,T);function E(N,A){m(this,E);var w=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N,A));return w.quill.on(c.default.events.EDITOR_CHANGE,function(S,I,C,F){if(S===c.default.events.SELECTION_CHANGE)if(I!=null&&I.length>0&&F===c.default.sources.USER){w.show(),w.root.style.left="0px",w.root.style.width="",w.root.style.width=w.root.offsetWidth+"px";var D=w.quill.getLines(I.index,I.length);if(D.length===1)w.position(w.quill.getBounds(I));else{var U=D[D.length-1],X=w.quill.getIndex(U),j=Math.min(U.length()-1,I.index+I.length-X),k=w.quill.getBounds(new d.Range(X,j));w.position(k)}}else document.activeElement!==w.textbox&&w.quill.hasFocus()&&w.hide()}),w}return a(E,[{key:"listen",value:function(){var A=this;s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var w=A.quill.getSelection();w!=null&&A.position(A.quill.getBounds(w))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var w=s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,A),S=this.root.querySelector(".ql-tooltip-arrow");if(S.style.marginLeft="",w===0)return w;S.style.marginLeft=-1*w-S.offsetWidth/2+"px"}}]),E}(h.BaseTooltip);O.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=O,n.default=x},function(r,n,i){r.exports=i(63)}]).default})})(ff);var MT=ff.exports;const LT=sr(MT),zT="",FT=e=>{const[t,r]=Q.useState(!1);console.log("allProps",e);const n=Q.useRef(null),i=Q.useRef(null),s=Q.useRef(null),a=Q.useRef(null),o=Q.useRef(16),l=Q.useRef(null),{uniqueId:f,text:c,disabled:h,transformation:u,onTextUpdate:d,pointerdown:p}=e,{scale:v=[1,1],x:g,y:m,rotation:b=1,fontFamily:_="Arial",fontWeight:y="normal",fontStyle:x="normal",fontSize:O=16,fill:T="black",stroke:E,strokeThickness:N,blurRadius:A=0,blurEnabled:w=!1,dropShadowColor:S=null,wordWrapWidth:I=5e7,leading:C=0,letterSpacing:F}=u;st.useEffect(()=>{o.current=Number(O)},[O]);const D=["italic","oblique"].includes(x)?x:void 0,U=["bold","lighter","100","200","300"].includes(y)?y:void 0,X=Number(F)>0?F:void 0,j=st.useMemo(()=>new ee.TextStyle({fontFamily:_,fontSize:O,fill:T||"white",stroke:E,strokeThickness:N,...D&&{fontStyle:D},...U&&{fontWeight:U},...X&&{letterSpacing:X},...w&&{dropShadow:!0,dropShadowBlur:Number(A),dropShadowColor:(S==null?void 0:S.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:I||500,leading:C||0}),[w,A,T,_,O,C,D,U,X,S,E,N,I]);st.useEffect(()=>{l.current={...u}},[u]);const k=R=>{d&&d({text:R,uniqueId:f,droptype:"titles"})};return st.useEffect(()=>{if(t&&s.current){let P=document.getElementById("note-editor");if(P){P.style.position="absolute",P.style.zIndex="10",P.style.left=g+"px",P.style.top=m+"px",P.style.backgroundColor="var(--chakra-color-darkShark)",P.style.transform="scale(1.5)",P.style.width="300px",P.style.height="100px",P.style.color="#fff",P.style.fontSize="20px",P.style.border="1px solid #CBCEE0";const L={esc:{key:27,handler:function(){r(!1)}},enter:{key:13,handler:function(){r(!1)}}};var R=new LT("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...L}}},placeholder:"Compose your text here...",theme:"snow"});R.on("text-change",function(){k(R.root.innerText)}),R.setText(c),R.focus(),R.off("text-change",()=>{console.log("removed")}),R.hasFocus()||(P.style.display="none")}}},[g,m,t]),dt.jsx(ai,{...e,children:dt.jsxs(yt.Container,{ref:n,children:[t&&dt.jsx(yt.Container,{ref:s}),dt.jsx(yt.Container,{alpha:t?0:1,ref:a,children:dt.jsx(yt.Text,{style:j,x:g,y:m,rotation:b,anchor:.5,text:c,...!t&&!h&&{interactive:!0,buttonMode:!0,pointerdown:p},ref:i,scale:v})})]})})},BT=yt.withFilters(yt.Container,{blur:ee.filters.BlurFilter,adjust:Gs,matrix:ee.filters.ColorMatrixFilter}),UT=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],DT={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},jT=e=>{const[t,r]=st.useState(!1),[,n]=Q.useState(!1),[,i]=st.useState({isWaiting:!1,isStalled:!1}),[s,a]=st.useState(),[o,l]=Q.useState(!1),f=Q.useRef(null),c=Q.useRef(null),h=Q.useRef(null),u=Q.useRef(null),d=Q.useRef(null),p=Q.useRef(null),v=Q.useRef(DT),g=Q.useRef(e.initialAlpha),{tl:m,playerTimeRef:b,isDragging:_}=Q.useContext(Or),{uniqueId:y,mute:x=!1,locked:O=!1,src:T,startAt:E,endAt:N,frameStartAt:A,frameEndAt:w,transformation:{x:S,y:I,width:C,height:F,scale:D,rotation:U,animation:X,colorCorrection:j,effect:k},pointerdown:R,pointerup:P,mousedown:L,mouseup:$,pointerover:G,mouseover:M,mouseout:B,applyTransformer:q,onAnchorTransformationEnd:H}=e,z=T||"",{contrast:Y=1,saturation:J=1,exposure:et=1,blurRadius:at=0,alpha:lt=1}=j||{},Ct={brightness:et,contrast:Y,saturation:J,alpha:lt},Rt=st.useCallback(()=>{l(!0)},[]),V=st.useCallback(nt=>{console.log("changeEnd",nt),H&&(console.log("running onAnchorTransformationEnd"),H(nt))},[]),W=st.useMemo(()=>{const nt=document.createElement("video");return nt.src=T,nt.crossOrigin="Anonymus",nt.autoplay=!1,nt.currentTime=1e-4,nt},[T]);Ou(Kt.PAUSE,nt=>{if(console.log("pause event",nt),p.current){const Ot=p.current;Ot.currentTime>0&&!Ot.paused&&!Ot.ended&&Ot.readyState>Ot.HAVE_CURRENT_DATA&&p.current.pause(),v.current.isPlaying=!1}}),st.useEffect(()=>{console.log("current",p.current,_),p.current&&(_?(p.current.pause(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[_]);const Z=nt=>{p.current&&(console.log("video gsapOnStart",b.current,_),b.current>=nt&&b.current<=N&&!_&&(p.current.currentTime=Number(A)||Number(nt),p.current.play(),v.current.isPlaying=!0))},tt=()=>{if(console.log("onComplete triggered"),p.current){const nt=p.current;nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA&&p.current.pause(),v.current.isPlaying=!1}},K=()=>{},ft=()=>{if(p.current){Math.abs(p.current.currentTime-b.current);const nt=p.current,Ot=nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA;v.current.isDragging?(console.log("video updating",b.current),p.current.currentTime=b.current,p.current.play(),setTimeout(()=>{v.current.isPlaying=!1,p.current&&p.current.pause()},55),v.current.isPlaying=!1):v.current.isPlaying||(Ot||p.current.play(),v.current.isPlaying=!0)}},ct=nt=>{g.current=nt.alpha},ht=nt=>{g.current=nt.alpha};return Q.useEffect(()=>{let nt=de.context(()=>{});if(c.current&&m.current){const Ot={duration:Number(N)-Number(E),onStart:Z,onComplete:tt,onStartParams:[E],onCompleteParams:[],onInterrupt:K,onUpdate:ft,onUpdateParams:[]},Et={onStart:ct,onStartParams:[{alpha:1}]},je={onComplete:ht,onCompleteParams:[{alpha:0}]},gt=Hs(X||"None");nt=de.context(()=>{var ut,$e;m.current.to(c.current,{alpha:1,duration:.01,...Et},E).from(c.current,{...Ot},E).to(c.current,{alpha:0,duration:.1,...je},Number(N)-.09),te(gt.from)?te(gt.to)?te(gt.fromTo)||m.current.fromTo(c.current,(ut=gt.fromTo)==null?void 0:ut.from,($e=gt.fromTo)==null?void 0:$e.to,E):m.current.to(c.current,{alpha:1,duration:.2,...gt.to},E):m.current.from(c.current,{...gt.from},E)})}return()=>nt.revert()},[X,E,N]),st.useEffect(()=>{c.current&&r(!0)},[]),st.useEffect(()=>{p.current&&(p.current.muted=x)},[x]),st.useEffect(()=>{if(p.current){const nt=p.current;nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA&&(o||_)&&(p.current.pause(),v.current.isPlaying=!1)}},[o,_]),st.useEffect(()=>{const nt=Math.round((Number(A)+Number.EPSILON)*100)/100,Ot=function(){p.current&&(p.current.currentTime=nt)},Et=function(){if(p.current){const Lt=p.current;Lt.currentTime>0&&!Lt.paused&&!Lt.ended&&Lt.readyState>Lt.HAVE_CURRENT_DATA&&p.current.pause()}i({isWaiting:!1,isStalled:!1})},je=function(){p.current&&p.current.pause(),i({isWaiting:!0,isStalled:!1})},gt=function(){i({isWaiting:!1,isStalled:!1})},ut=function(){i({isWaiting:!1,isStalled:!0})},$e=Math.round((Number(A)+Number.EPSILON)*100)/100,Dr=Math.round((Number(w)+Number.EPSILON)*100)/100,_e=`${z}#t=${$e},${Dr}`;return console.log("urlTimestap",_e),ee.Texture.fromLoader(W,_e,y,{pixiIdPrefix:y,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(Lt=>{Lt&&(a(Lt),console.log(Lt.baseTexture.resource.source),p.current=Lt.baseTexture.resource.source,p.current.id=y,p.current.addEventListener("loadedmetadata",Ot),p.current.addEventListener("ended",Et),p.current.addEventListener("loadstart",je),p.current.addEventListener("canplaythrough",gt),p.current.addEventListener("stalled",ut))}),()=>{p.current.removeEventListener("loadedmetadata",Ot),p.current.removeEventListener("ended",Et),p.current.removeEventListener("loadstart",je),p.current.removeEventListener("canplaythrough",gt),p.current.removeEventListener("stalled",ut)}},[z,y,A,w,W]),dt.jsxs(yt.Container,{ref:h,children:[dt.jsx(yt.Container,{ref:c,alpha:g.current,position:[S,I],pivot:[S,I],width:C,height:F,children:dt.jsx(BT,{scale:1,blur:{blur:at,quality:4},adjust:Ct,apply:({matrix:nt})=>{k==="BlackAndWhite"?nt.desaturate():k==="Sepia"?nt.sepia():k==="RetroVintage"||k==="NightVision"?nt.negative():k==="Normal"&&nt.reset()},matrix:{enabled:!0,matrix:UT},children:dt.jsx(yt.Container,{ref:u,children:s&&dt.jsx(yt.Sprite,{texture:s,width:C,height:F,anchor:.5,x:S,y:I,...!O&&!o&&{interactive:!0,buttonMode:!0,pointerdown:R,pointerover:G,pointerout:B,mousedown:L,mouseover:M,mouseout:B,mouseup:$,pointerup:P},ref:f,scale:D,rotation:U})})})}),q&&dt.jsx(qs,{pixiTransformerRef:d,imageRef:c,isMounted:t,transformCommit:V,transformChange:Rt,mouseoverEvent:n,uniqueId:y})]})};var cf=(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))(cf||{}),hf=(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))(hf||{});St.Animations=cf,St.BlendModes=hf,St.Events=Kt,St.GsapPixieContext=Or,St.GsapPixieContextProvider=Cp,St.PixiAnimatedSprite=uf,St.PixiAudioSprite=Vg,St.PixiGifSprite=kT,St.PixiImageSprite=Im,St.PixiSvgPathSprite=jg,St.PixiTextSprite=FT,St.PixiVideoSprite=jT,St.emitCustomEvent=ei,St.newCustomEventEmitter=Np,St.useCustomEventListener=Ue,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})});
590
+ `)}return W}function Ct(V,W){var Z={},tt=V.style||{};return tt.fontStyle&&$(V).fontStyle==="italic"&&(Z.italic=!0),tt.fontWeight&&($(V).fontWeight.startsWith("bold")||parseInt($(V).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(W=L(W,Z)),parseFloat(tt.textIndent||0)>0&&(W=new h.default().insert(" ").concat(W)),W}function Rt(V,W){var Z=V.data;if(V.parentNode.tagName==="O:P")return W.insert(Z.trim());if(Z.trim().length===0&&V.parentNode.classList.contains("ql-clipboard"))return W;if(!$(V.parentNode).whiteSpace.startsWith("pre")){var tt=function(ft,ct){return ct=ct.replace(/[^\u00a0]/g,""),ct.length<1&&ft?" ":ct};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,tt.bind(tt,!0)),(V.previousSibling==null&&M(V.parentNode)||V.previousSibling!=null&&M(V.previousSibling))&&(Z=Z.replace(/^\s+/,tt.bind(tt,!1))),(V.nextSibling==null&&M(V.parentNode)||V.nextSibling!=null&&M(V.nextSibling))&&(Z=Z.replace(/\s+$/,tt.bind(tt,!1)))}return W.insert(Z)}n.default=P,n.matchAttributor=H,n.matchBlot=z,n.matchNewline=at,n.matchSpacing=lt,n.matchText=Rt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(6),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(){return c(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,[{key:"optimize",value:function(m){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),v}(l.default);d.blotName="bold",d.tagName=["STRONG","B"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var s=function(){function w(S,I){var C=[],F=!0,D=!1,U=void 0;try{for(var X=S[Symbol.iterator](),j;!(F=(j=X.next()).done)&&(C.push(j.value),!(I&&C.length===I));F=!0);}catch(k){D=!0,U=k}finally{try{!F&&X.return&&X.return()}finally{if(D)throw U}}return C}return function(S,I){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function w(S,I){for(var C=0;C<I.length;C++){var F=I[C];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(S,F.key,F)}}return function(S,I,C){return I&&w(S.prototype,I),C&&w(S,C),S}}(),o=i(2),l=m(o),f=i(0),c=m(f),h=i(5),u=m(h),d=i(10),p=m(d),v=i(9),g=m(v);function m(w){return w&&w.__esModule?w:{default:w}}function b(w,S,I){return S in w?Object.defineProperty(w,S,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[S]=I,w}function _(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function y(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function x(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var O=(0,p.default)("quill:toolbar"),T=function(w){x(S,w);function S(I,C){_(this,S);var F=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,I,C));if(Array.isArray(F.options.container)){var D=document.createElement("div");N(D,F.options.container),I.container.parentNode.insertBefore(D,I.container),F.container=D}else typeof F.options.container=="string"?F.container=document.querySelector(F.options.container):F.container=F.options.container;if(!(F.container instanceof HTMLElement)){var U;return U=O.error("Container required for toolbar",F.options),y(F,U)}return F.container.classList.add("ql-toolbar"),F.controls=[],F.handlers={},Object.keys(F.options.handlers).forEach(function(X){F.addHandler(X,F.options.handlers[X])}),[].forEach.call(F.container.querySelectorAll("button, select"),function(X){F.attach(X)}),F.quill.on(u.default.events.EDITOR_CHANGE,function(X,j){X===u.default.events.SELECTION_CHANGE&&F.update(j)}),F.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var X=F.quill.selection.getRange(),j=s(X,1),k=j[0];F.update(k)}),F}return a(S,[{key:"addHandler",value:function(C,F){this.handlers[C]=F}},{key:"attach",value:function(C){var F=this,D=[].find.call(C.classList,function(X){return X.indexOf("ql-")===0});if(D){if(D=D.slice(3),C.tagName==="BUTTON"&&C.setAttribute("type","button"),this.handlers[D]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[D]==null){O.warn("ignoring attaching to disabled format",D,C);return}if(c.default.query(D)==null){O.warn("ignoring attaching to nonexistent format",D,C);return}}var U=C.tagName==="SELECT"?"change":"click";C.addEventListener(U,function(X){var j=void 0;if(C.tagName==="SELECT"){if(C.selectedIndex<0)return;var k=C.options[C.selectedIndex];k.hasAttribute("selected")?j=!1:j=k.value||!1}else C.classList.contains("ql-active")?j=!1:j=C.value||!C.hasAttribute("value"),X.preventDefault();F.quill.focus();var R=F.quill.selection.getRange(),P=s(R,1),L=P[0];if(F.handlers[D]!=null)F.handlers[D].call(F,j);else if(c.default.query(D).prototype instanceof c.default.Embed){if(j=prompt("Enter "+D),!j)return;F.quill.updateContents(new l.default().retain(L.index).delete(L.length).insert(b({},D,j)),u.default.sources.USER)}else F.quill.format(D,j,u.default.sources.USER);F.update(L)}),this.controls.push([D,C])}}},{key:"update",value:function(C){var F=C==null?{}:this.quill.getFormat(C);this.controls.forEach(function(D){var U=s(D,2),X=U[0],j=U[1];if(j.tagName==="SELECT"){var k=void 0;if(C==null)k=null;else if(F[X]==null)k=j.querySelector("option[selected]");else if(!Array.isArray(F[X])){var R=F[X];typeof R=="string"&&(R=R.replace(/\"/g,'\\"')),k=j.querySelector('option[value="'+R+'"]')}k==null?(j.value="",j.selectedIndex=-1):k.selected=!0}else if(C==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var P=F[X]===j.getAttribute("value")||F[X]!=null&&F[X].toString()===j.getAttribute("value")||F[X]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",P)}else j.classList.toggle("ql-active",F[X]!=null)})}}]),S}(g.default);T.DEFAULTS={};function E(w,S,I){var C=document.createElement("button");C.setAttribute("type","button"),C.classList.add("ql-"+S),I!=null&&(C.value=I),w.appendChild(C)}function N(w,S){Array.isArray(S[0])||(S=[S]),S.forEach(function(I){var C=document.createElement("span");C.classList.add("ql-formats"),I.forEach(function(F){if(typeof F=="string")E(C,F);else{var D=Object.keys(F)[0],U=F[D];Array.isArray(U)?A(C,D,U):E(C,D,U)}}),w.appendChild(C)})}function A(w,S,I){var C=document.createElement("select");C.classList.add("ql-"+S),I.forEach(function(F){var D=document.createElement("option");F!==!1?D.setAttribute("value",F):D.setAttribute("selected","selected"),C.appendChild(D)}),w.appendChild(C)}T.DEFAULTS={container:null,handlers:{clean:function(){var S=this,I=this.quill.getSelection();if(I!=null)if(I.length==0){var C=this.quill.getFormat();Object.keys(C).forEach(function(F){c.default.query(F,c.default.Scope.INLINE)!=null&&S.quill.format(F,!1)})}else this.quill.removeFormat(I,u.default.sources.USER)},direction:function(S){var I=this.quill.getFormat().align;S==="rtl"&&I==null?this.quill.format("align","right",u.default.sources.USER):!S&&I==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",S,u.default.sources.USER)},indent:function(S){var I=this.quill.getSelection(),C=this.quill.getFormat(I),F=parseInt(C.indent||0);if(S==="+1"||S==="-1"){var D=S==="+1"?1:-1;C.direction==="rtl"&&(D*=-1),this.quill.format("indent",F+D,u.default.sources.USER)}},link:function(S){S===!0&&(S=prompt("Enter link URL:")),this.quill.format("link",S,u.default.sources.USER)},list:function(S){var I=this.quill.getSelection(),C=this.quill.getFormat(I);S==="check"?C.list==="checked"||C.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",S,u.default.sources.USER)}}},n.default=T,n.addControls=N},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 s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(28),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(g,m){c(this,v);var b=h(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return b.label.innerHTML=m,b.container.classList.add("ql-color-picker"),[].slice.call(b.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),b}return s(v,[{key:"buildItem",value:function(m){var b=a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"buildItem",this).call(this,m);return b.style.backgroundColor=m.getAttribute("value")||"",b}},{key:"selectItem",value:function(m,b){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,b);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),v}(l.default);n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(28),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(g,m){c(this,v);var b=h(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,g));return b.container.classList.add("ql-icon-picker"),[].forEach.call(b.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),b.defaultItem=b.container.querySelector(".ql-selected"),b.selectItem(b.defaultItem),b}return s(v,[{key:"selectItem",value:function(m,b){a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"selectItem",this).call(this,m,b),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),v}(l.default);n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function l(f,c){for(var h=0;h<c.length;h++){var u=c[h];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(f,u.key,u)}}return function(f,c,h){return c&&l(f.prototype,c),h&&l(f,h),f}}();function a(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}var o=function(){function l(f,c){var h=this;a(this,l),this.quill=f,this.boundsContainer=c||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){h.root.style.marginTop=-1*h.quill.root.scrollTop+"px"}),this.hide()}return s(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var h=c.left+c.width/2-this.root.offsetWidth/2,u=c.bottom+this.quill.root.scrollTop;this.root.style.left=h+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),v=0;if(p.right>d.right&&(v=d.right-p.right,this.root.style.left=h+v+"px"),p.left<d.left&&(v=d.left-p.left,this.root.style.left=h+v+"px"),p.bottom>d.bottom){var g=p.bottom-p.top,m=c.bottom-c.top+g;this.root.style.top=u-m+"px",this.root.classList.add("ql-flip")}return v}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();n.default=o},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function A(w,S){var I=[],C=!0,F=!1,D=void 0;try{for(var U=w[Symbol.iterator](),X;!(C=(X=U.next()).done)&&(I.push(X.value),!(S&&I.length===S));C=!0);}catch(j){F=!0,D=j}finally{try{!C&&U.return&&U.return()}finally{if(F)throw D}}return I}return function(w,S){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return A(w,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function A(w,S,I){w===null&&(w=Function.prototype);var C=Object.getOwnPropertyDescriptor(w,S);if(C===void 0){var F=Object.getPrototypeOf(w);return F===null?void 0:A(F,S,I)}else{if("value"in C)return C.value;var D=C.get;return D===void 0?void 0:D.call(I)}},o=function(){function A(w,S){for(var I=0;I<S.length;I++){var C=S[I];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}return function(w,S,I){return S&&A(w.prototype,S),I&&A(w,I),w}}(),l=i(3),f=_(l),c=i(8),h=_(c),u=i(43),d=_(u),p=i(27),v=_(p),g=i(15),m=i(41),b=_(m);function _(A){return A&&A.__esModule?A:{default:A}}function y(A,w){if(!(A instanceof w))throw new TypeError("Cannot call a class as a function")}function x(A,w){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:A}function O(A,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);A.prototype=Object.create(w&&w.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(A,w):A.__proto__=w)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],E=function(A){O(w,A);function w(S,I){y(this,w),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=T);var C=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,I));return C.quill.container.classList.add("ql-snow"),C}return o(w,[{key:"extendToolbar",value:function(I){I.container.classList.add("ql-snow"),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),b.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),b.default),this.tooltip=new N(this.quill,this.options.bounds),I.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(C,F){I.handlers.link.call(I,!F.format.link)})}}]),w}(d.default);E.DEFAULTS=(0,f.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(w){if(w){var S=this.quill.getSelection();if(S==null||S.length==0)return;var I=this.quill.getText(S);/^\S+@\S+\.\S+$/.test(I)&&I.indexOf("mailto:")!==0&&(I="mailto:"+I);var C=this.quill.theme.tooltip;C.edit("link",I)}else this.quill.format("link",!1)}}}}});var N=function(A){O(w,A);function w(S,I){y(this,w);var C=x(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,S,I));return C.preview=C.root.querySelector("a.ql-preview"),C}return o(w,[{key:"listen",value:function(){var I=this;a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(C){I.root.classList.contains("ql-editing")?I.save():I.edit("link",I.preview.textContent),C.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(C){if(I.linkRange!=null){var F=I.linkRange;I.restoreFocus(),I.quill.formatText(F,"link",!1,h.default.sources.USER),delete I.linkRange}C.preventDefault(),I.hide()}),this.quill.on(h.default.events.SELECTION_CHANGE,function(C,F,D){if(C!=null){if(C.length===0&&D===h.default.sources.USER){var U=I.quill.scroll.descendant(v.default,C.index),X=s(U,2),j=X[0],k=X[1];if(j!=null){I.linkRange=new g.Range(C.index-k,j.length());var R=v.default.formats(j.domNode);I.preview.textContent=R,I.preview.setAttribute("href",R),I.show(),I.position(I.quill.getBounds(I.linkRange));return}}else delete I.linkRange;I.hide()}})}},{key:"show",value:function(){a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),w}(u.BaseTooltip);N.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=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(29),a=K(s),o=i(36),l=i(38),f=i(64),c=i(65),h=K(c),u=i(66),d=K(u),p=i(67),v=K(p),g=i(37),m=i(26),b=i(39),_=i(40),y=i(56),x=K(y),O=i(68),T=K(O),E=i(27),N=K(E),A=i(69),w=K(A),S=i(70),I=K(S),C=i(71),F=K(C),D=i(72),U=K(D),X=i(73),j=K(X),k=i(13),R=K(k),P=i(74),L=K(P),$=i(75),G=K($),M=i(57),B=K(M),q=i(41),H=K(q),z=i(28),Y=K(z),J=i(59),et=K(J),at=i(60),lt=K(at),Ct=i(61),Rt=K(Ct),V=i(108),W=K(V),Z=i(62),tt=K(Z);function K(ft){return ft&&ft.__esModule?ft:{default:ft}}a.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":g.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":g.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":_.SizeStyle},!0),a.default.register({"formats/align":o.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":f.IndentClass,"formats/background":g.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":b.FontClass,"formats/size":_.SizeClass,"formats/blockquote":h.default,"formats/code-block":R.default,"formats/header":d.default,"formats/list":v.default,"formats/bold":x.default,"formats/code":k.Code,"formats/italic":T.default,"formats/link":N.default,"formats/script":w.default,"formats/strike":I.default,"formats/underline":F.default,"formats/image":U.default,"formats/video":j.default,"formats/list/item":p.ListItem,"modules/formula":L.default,"modules/syntax":G.default,"modules/toolbar":B.default,"themes/bubble":W.default,"themes/snow":tt.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":lt.default,"ui/color-picker":et.default,"ui/tooltip":Rt.default},!0),n.default=a.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var s=function(){function v(g,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}return function(g,m,b){return m&&v(g.prototype,m),b&&v(g,b),g}}(),a=function v(g,m,b){g===null&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,m);if(_===void 0){var y=Object.getPrototypeOf(g);return y===null?void 0:v(y,m,b)}else{if("value"in _)return _.value;var x=_.get;return x===void 0?void 0:x.call(b)}},o=i(0),l=f(o);function f(v){return v&&v.__esModule?v:{default:v}}function c(v,g){if(!(v instanceof g))throw new TypeError("Cannot call a class as a function")}function h(v,g){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:v}function u(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);v.prototype=Object.create(g&&g.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(v,g):v.__proto__=g)}var d=function(v){u(g,v);function g(){return c(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return s(g,[{key:"add",value:function(b,_){if(_==="+1"||_==="-1"){var y=this.value(b)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(b),!0):a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"add",this).call(this,b,_)}},{key:"canAdd",value:function(b,_){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,_)||a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"canAdd",this).call(this,b,parseInt(_))}},{key:"value",value:function(b){return parseInt(a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b))||void 0}}]),g}(l.default.Attributor.Class),p=new d("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(4),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="blockquote",h.tagName="blockquote",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function d(p,v){for(var g=0;g<v.length;g++){var m=v[g];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(p,m.key,m)}}return function(p,v,g){return v&&d(p.prototype,v),g&&d(p,g),p}}(),a=i(4),o=l(a);function l(d){return d&&d.__esModule?d:{default:d}}function f(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function c(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:d}function h(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}var u=function(d){h(p,d);function p(){return f(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return s(p,null,[{key:"formats",value:function(g){return this.tagName.indexOf(g.tagName)+1}}]),p}(o.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var s=function(){function y(x,O){for(var T=0;T<O.length;T++){var E=O[T];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,O,T){return O&&y(x.prototype,O),T&&y(x,T),x}}(),a=function y(x,O,T){x===null&&(x=Function.prototype);var E=Object.getOwnPropertyDescriptor(x,O);if(E===void 0){var N=Object.getPrototypeOf(x);return N===null?void 0:y(N,O,T)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(T)}},o=i(0),l=d(o),f=i(4),c=d(f),h=i(25),u=d(h);function d(y){return y&&y.__esModule?y:{default:y}}function p(y,x,O){return x in y?Object.defineProperty(y,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):y[x]=O,y}function v(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function g(y,x){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:y}function m(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}var b=function(y){m(x,y);function x(){return v(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return s(x,[{key:"format",value:function(T,E){T===_.blotName&&!E?this.replaceWith(l.default.create(this.statics.scope)):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,T,E)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,E){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,E),this):(this.parent.unwrap(),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,T,E))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:a(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,T)}}]),x}(c.default);b.blotName="list-item",b.tagName="LI";var _=function(y){m(x,y),s(x,null,[{key:"create",value:function(T){var E=T==="ordered"?"OL":"UL",N=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,E);return(T==="checked"||T==="unchecked")&&N.setAttribute("data-checked",T==="checked"),N}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function x(O){v(this,x);var T=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,O)),E=function(A){if(A.target.parentNode===O){var w=T.statics.formats(O),S=l.default.find(A.target);w==="checked"?S.format("list","unchecked"):w==="unchecked"&&S.format("list","checked")}};return O.addEventListener("touchstart",E),O.addEventListener("mousedown",E),T}return s(x,[{key:"format",value:function(T,E){this.children.length>0&&this.children.tail.format(T,E)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,E){if(T instanceof b)a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,T,E);else{var N=E==null?this.length():E.offset(this),A=this.split(N);A.parent.insertBefore(T,A)}}},{key:"optimize",value:function(T){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,T);var E=this.next;E!=null&&E.prev===this&&E.statics.blotName===this.statics.blotName&&E.domNode.tagName===this.domNode.tagName&&E.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(E.moveChildren(this),E.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var E=l.default.create(this.statics.defaultChild);T.moveChildren(E),this.appendChild(E)}a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,T)}}]),x}(u.default);_.blotName="list",_.scope=l.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[b],n.ListItem=b,n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(56),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="italic",h.tagName=["EM","I"],n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function p(v,g){for(var m=0;m<g.length;m++){var b=g[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(v,b.key,b)}}return function(v,g,m){return g&&p(v.prototype,g),m&&p(v,m),v}}(),a=function p(v,g,m){v===null&&(v=Function.prototype);var b=Object.getOwnPropertyDescriptor(v,g);if(b===void 0){var _=Object.getPrototypeOf(v);return _===null?void 0:p(_,g,m)}else{if("value"in b)return b.value;var y=b.get;return y===void 0?void 0:y.call(m)}},o=i(6),l=f(o);function f(p){return p&&p.__esModule?p:{default:p}}function c(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}function h(p,v){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:p}function u(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(p,v):p.__proto__=v)}var d=function(p){u(v,p);function v(){return c(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return s(v,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),v}(l.default);d.blotName="script",d.tagName=["SUB","SUP"],n.default=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(6),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="strike",h.tagName="S",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=i(6),a=o(s);function o(u){return u&&u.__esModule?u:{default:u}}function l(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function f(u,d){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:u}function c(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);u.prototype=Object.create(d&&d.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(u,d):u.__proto__=d)}var h=function(u){c(d,u);function d(){return l(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);h.blotName="underline",h.tagName="U",n.default=h},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function g(m,b){for(var _=0;_<b.length;_++){var y=b[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,b,_){return b&&g(m.prototype,b),_&&g(m,_),m}}(),a=function g(m,b,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,b);if(y===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,b,_)}else{if("value"in y)return y.value;var O=y.get;return O===void 0?void 0:O.call(_)}},o=i(0),l=c(o),f=i(27);function c(g){return g&&g.__esModule?g:{default:g}}function h(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var p=["alt","height","width"],v=function(g){d(m,g);function m(){return h(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"format",value:function(_,y){p.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return p.reduce(function(y,x){return _.hasAttribute(x)&&(y[x]=_.getAttribute(x)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,f.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(l.default.Embed);v.blotName="image",v.tagName="IMG",n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var s=function(){function g(m,b){for(var _=0;_<b.length;_++){var y=b[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,b,_){return b&&g(m.prototype,b),_&&g(m,_),m}}(),a=function g(m,b,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,b);if(y===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,b,_)}else{if("value"in y)return y.value;var O=y.get;return O===void 0?void 0:O.call(_)}},o=i(4),l=i(27),f=c(l);function c(g){return g&&g.__esModule?g:{default:g}}function h(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function u(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function d(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var p=["height","width"],v=function(g){d(m,g);function m(){return h(this,m),u(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return s(m,[{key:"format",value:function(_,y){p.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return p.reduce(function(y,x){return _.hasAttribute(x)&&(y[x]=_.getAttribute(x)),y},{})}},{key:"sanitize",value:function(_){return f.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(o.BlockEmbed);v.blotName="video",v.className="ql-video",v.tagName="IFRAME",n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var s=function(){function _(y,x){for(var O=0;O<x.length;O++){var T=x[O];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,x,O){return x&&_(y.prototype,x),O&&_(y,O),y}}(),a=function _(y,x,O){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,x);if(T===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:_(E,x,O)}else{if("value"in T)return T.value;var N=T.get;return N===void 0?void 0:N.call(O)}},o=i(35),l=d(o),f=i(5),c=d(f),h=i(9),u=d(h);function d(_){return _&&_.__esModule?_:{default:_}}function p(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function g(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){g(y,_);function y(){return p(this,y),v(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return s(y,null,[{key:"create",value:function(O){var T=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,O);return typeof O=="string"&&(window.katex.render(O,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",O)),T}},{key:"value",value:function(O){return O.getAttribute("data-value")}}]),y}(l.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var b=function(_){g(y,_),s(y,null,[{key:"register",value:function(){c.default.register(m,!0)}}]);function y(){p(this,y);var x=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return x}return y}(u.default);n.FormulaBlot=m,n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var s=function(){function O(T,E){for(var N=0;N<E.length;N++){var A=E[N];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(T,A.key,A)}}return function(T,E,N){return E&&O(T.prototype,E),N&&O(T,N),T}}(),a=function O(T,E,N){T===null&&(T=Function.prototype);var A=Object.getOwnPropertyDescriptor(T,E);if(A===void 0){var w=Object.getPrototypeOf(T);return w===null?void 0:O(w,E,N)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(N)}},o=i(0),l=v(o),f=i(5),c=v(f),h=i(9),u=v(h),d=i(13),p=v(d);function v(O){return O&&O.__esModule?O:{default:O}}function g(O,T){if(!(O instanceof T))throw new TypeError("Cannot call a class as a function")}function m(O,T){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:O}function b(O,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);O.prototype=Object.create(T&&T.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(O,T):O.__proto__=T)}var _=function(O){b(T,O);function T(){return g(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return s(T,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var A=this.domNode.textContent;this.cachedText!==A&&((A.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=N(A),this.domNode.normalize(),this.attach()),this.cachedText=A)}}]),T}(p.default);_.className="ql-syntax";var y=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),x=function(O){b(T,O),s(T,null,[{key:"register",value:function(){c.default.register(y,!0),c.default.register(_,!0)}}]);function T(E,N){g(this,T);var A=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,E,N));if(typeof A.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var w=null;return A.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(w),w=setTimeout(function(){A.highlight(),w=null},A.options.interval)}),A.highlight(),A}return s(T,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var A=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(w){w.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),A!=null&&this.quill.setSelection(A,c.default.sources.SILENT)}}}]),T}(u.default);x.DEFAULTS={highlight:function(){return window.hljs==null?null:function(O){var T=window.hljs.highlightAuto(O);return T.value}}(),interval:1e3},n.CodeBlock=_,n.CodeToken=y,n.default=x},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 s=function T(E,N,A){E===null&&(E=Function.prototype);var w=Object.getOwnPropertyDescriptor(E,N);if(w===void 0){var S=Object.getPrototypeOf(E);return S===null?void 0:T(S,N,A)}else{if("value"in w)return w.value;var I=w.get;return I===void 0?void 0:I.call(A)}},a=function(){function T(E,N){for(var A=0;A<N.length;A++){var w=N[A];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}return function(E,N,A){return N&&T(E.prototype,N),A&&T(E,A),E}}(),o=i(3),l=g(o),f=i(8),c=g(f),h=i(43),u=g(h),d=i(15),p=i(41),v=g(p);function g(T){return T&&T.__esModule?T:{default:T}}function m(T,E){if(!(T instanceof E))throw new TypeError("Cannot call a class as a function")}function b(T,E){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:T}function _(T,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);T.prototype=Object.create(E&&E.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(T,E):T.__proto__=E)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],x=function(T){_(E,T);function E(N,A){m(this,E),A.modules.toolbar!=null&&A.modules.toolbar.container==null&&(A.modules.toolbar.container=y);var w=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N,A));return w.quill.container.classList.add("ql-bubble"),w}return a(E,[{key:"extendToolbar",value:function(A){this.tooltip=new O(this.quill,this.options.bounds),this.tooltip.root.appendChild(A.container),this.buildButtons([].slice.call(A.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(A.container.querySelectorAll("select")),v.default)}}]),E}(u.default);x.DEFAULTS=(0,l.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){E?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var O=function(T){_(E,T);function E(N,A){m(this,E);var w=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,N,A));return w.quill.on(c.default.events.EDITOR_CHANGE,function(S,I,C,F){if(S===c.default.events.SELECTION_CHANGE)if(I!=null&&I.length>0&&F===c.default.sources.USER){w.show(),w.root.style.left="0px",w.root.style.width="",w.root.style.width=w.root.offsetWidth+"px";var D=w.quill.getLines(I.index,I.length);if(D.length===1)w.position(w.quill.getBounds(I));else{var U=D[D.length-1],X=w.quill.getIndex(U),j=Math.min(U.length()-1,I.index+I.length-X),k=w.quill.getBounds(new d.Range(X,j));w.position(k)}}else document.activeElement!==w.textbox&&w.quill.hasFocus()&&w.hide()}),w}return a(E,[{key:"listen",value:function(){var A=this;s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){A.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!A.root.classList.contains("ql-hidden")){var w=A.quill.getSelection();w!=null&&A.position(A.quill.getBounds(w))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(A){var w=s(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"position",this).call(this,A),S=this.root.querySelector(".ql-tooltip-arrow");if(S.style.marginLeft="",w===0)return w;S.style.marginLeft=-1*w-S.offsetWidth/2+"px"}}]),E}(h.BaseTooltip);O.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=O,n.default=x},function(r,n,i){r.exports=i(63)}]).default})})(ff);var MT=ff.exports;const LT=sr(MT),zT="",FT=e=>{const[t,r]=Q.useState(!1);console.log("allProps",e);const n=Q.useRef(null),i=Q.useRef(null),s=Q.useRef(null),a=Q.useRef(null),o=Q.useRef(16),l=Q.useRef(null),{uniqueId:f,text:c,disabled:h,transformation:u,onTextUpdate:d,pointerdown:p}=e,{scale:v=[1,1],x:g,y:m,rotation:b=1,fontFamily:_="Arial",fontWeight:y="normal",fontStyle:x="normal",fontSize:O=16,fill:T="black",stroke:E,strokeThickness:N=0,blurRadius:A=0,blurEnabled:w=!1,dropShadowColor:S=null,wordWrapWidth:I=5e7,leading:C=0,letterSpacing:F}=u;st.useEffect(()=>{o.current=Number(O)},[O]);const D=["italic","oblique"].includes(x)?x:void 0,U=["bold","lighter","100","200","300"].includes(y)?y:void 0,X=Number(F)>0?F:void 0,j=st.useMemo(()=>new ee.TextStyle({fontFamily:_,fontSize:O,fill:T||"white",...E&&N>0&&{stroke:E,strokeThickness:N},...D&&{fontStyle:D},...U&&{fontWeight:U},...X&&{letterSpacing:X},...w&&{dropShadow:!0,dropShadowBlur:Number(A),dropShadowColor:(S==null?void 0:S.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:I||500,leading:C||0}),[w,A,T,_,O,C,D,U,X,S,E,N,I]);st.useEffect(()=>{l.current={...u}},[u]);const k=R=>{d&&d({text:R,uniqueId:f,droptype:"titles"})};return st.useEffect(()=>{if(t&&s.current){let P=document.getElementById("note-editor");if(P){P.style.position="absolute",P.style.zIndex="10",P.style.left=g+"px",P.style.top=m+"px",P.style.backgroundColor="var(--chakra-color-darkShark)",P.style.transform="scale(1.5)",P.style.width="300px",P.style.height="100px",P.style.color="#fff",P.style.fontSize="20px",P.style.border="1px solid #CBCEE0";const L={esc:{key:27,handler:function(){r(!1)}},enter:{key:13,handler:function(){r(!1)}}};var R=new LT("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...L}}},placeholder:"Compose your text here...",theme:"snow"});R.on("text-change",function(){k(R.root.innerText)}),R.setText(c),R.focus(),R.off("text-change",()=>{console.log("removed")}),R.hasFocus()||(P.style.display="none")}}},[g,m,t]),dt.jsx(ai,{...e,children:dt.jsxs(yt.Container,{ref:n,children:[t&&dt.jsx(yt.Container,{ref:s}),dt.jsx(yt.Container,{alpha:t?0:1,ref:a,children:dt.jsx(yt.Text,{style:j,x:g,y:m,rotation:b,anchor:.5,text:c,...!t&&!h&&{interactive:!0,buttonMode:!0,pointerdown:p},ref:i,scale:v})})]})})},BT=yt.withFilters(yt.Container,{blur:ee.filters.BlurFilter,adjust:Gs,matrix:ee.filters.ColorMatrixFilter}),UT=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],DT={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},jT=e=>{const[t,r]=st.useState(!1),[,n]=Q.useState(!1),[,i]=st.useState({isWaiting:!1,isStalled:!1}),[s,a]=st.useState(),[o,l]=Q.useState(!1),f=Q.useRef(null),c=Q.useRef(null),h=Q.useRef(null),u=Q.useRef(null),d=Q.useRef(null),p=Q.useRef(null),v=Q.useRef(DT),g=Q.useRef(e.initialAlpha),{tl:m,playerTimeRef:b,isDragging:_}=Q.useContext(Or),{uniqueId:y,mute:x=!1,locked:O=!1,src:T,startAt:E,endAt:N,frameStartAt:A,frameEndAt:w,transformation:{x:S,y:I,width:C,height:F,scale:D,rotation:U,animation:X,colorCorrection:j,effect:k},pointerdown:R,pointerup:P,mousedown:L,mouseup:$,pointerover:G,mouseover:M,mouseout:B,applyTransformer:q,onAnchorTransformationEnd:H}=e,z=T||"",{contrast:Y=1,saturation:J=1,exposure:et=1,blurRadius:at=0,alpha:lt=1}=j||{},Ct={brightness:et,contrast:Y,saturation:J,alpha:lt},Rt=st.useCallback(()=>{l(!0)},[]),V=st.useCallback(nt=>{console.log("changeEnd",nt),H&&(console.log("running onAnchorTransformationEnd"),H(nt))},[]),W=st.useMemo(()=>{const nt=document.createElement("video");return nt.src=T,nt.crossOrigin="Anonymus",nt.autoplay=!1,nt.currentTime=1e-4,nt},[T]);Ou(Kt.PAUSE,nt=>{if(console.log("pause event",nt),p.current){const Ot=p.current;Ot.currentTime>0&&!Ot.paused&&!Ot.ended&&Ot.readyState>Ot.HAVE_CURRENT_DATA&&p.current.pause(),v.current.isPlaying=!1}}),st.useEffect(()=>{console.log("current",p.current,_),p.current&&(_?(p.current.pause(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[_]);const Z=nt=>{p.current&&(console.log("video gsapOnStart",b.current,_),b.current>=nt&&b.current<=N&&!_&&(p.current.currentTime=Number(A)||Number(nt),p.current.play(),v.current.isPlaying=!0))},tt=()=>{if(console.log("onComplete triggered"),p.current){const nt=p.current;nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA&&p.current.pause(),v.current.isPlaying=!1}},K=()=>{},ft=()=>{if(p.current){Math.abs(p.current.currentTime-b.current);const nt=p.current,Ot=nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA;v.current.isDragging?(console.log("video updating",b.current),p.current.currentTime=b.current,p.current.play(),setTimeout(()=>{v.current.isPlaying=!1,p.current&&p.current.pause()},55),v.current.isPlaying=!1):v.current.isPlaying||(Ot||p.current.play(),v.current.isPlaying=!0)}},ct=nt=>{g.current=nt.alpha},ht=nt=>{g.current=nt.alpha};return Q.useEffect(()=>{let nt=de.context(()=>{});if(c.current&&m.current){const Ot={duration:Number(N)-Number(E),onStart:Z,onComplete:tt,onStartParams:[E],onCompleteParams:[],onInterrupt:K,onUpdate:ft,onUpdateParams:[]},Et={onStart:ct,onStartParams:[{alpha:1}]},je={onComplete:ht,onCompleteParams:[{alpha:0}]},gt=Hs(X||"None");nt=de.context(()=>{var ut,$e;m.current.to(c.current,{alpha:1,duration:.01,...Et},E).from(c.current,{...Ot},E).to(c.current,{alpha:0,duration:.1,...je},Number(N)-.09),te(gt.from)?te(gt.to)?te(gt.fromTo)||m.current.fromTo(c.current,(ut=gt.fromTo)==null?void 0:ut.from,($e=gt.fromTo)==null?void 0:$e.to,E):m.current.to(c.current,{alpha:1,duration:.2,...gt.to},E):m.current.from(c.current,{...gt.from},E)})}return()=>nt.revert()},[X,E,N]),st.useEffect(()=>{c.current&&r(!0)},[]),st.useEffect(()=>{p.current&&(p.current.muted=x)},[x]),st.useEffect(()=>{if(p.current){const nt=p.current;nt.currentTime>0&&!nt.paused&&!nt.ended&&nt.readyState>nt.HAVE_CURRENT_DATA&&(o||_)&&(p.current.pause(),v.current.isPlaying=!1)}},[o,_]),st.useEffect(()=>{const nt=Math.round((Number(A)+Number.EPSILON)*100)/100,Ot=function(){p.current&&(p.current.currentTime=nt)},Et=function(){if(p.current){const Lt=p.current;Lt.currentTime>0&&!Lt.paused&&!Lt.ended&&Lt.readyState>Lt.HAVE_CURRENT_DATA&&p.current.pause()}i({isWaiting:!1,isStalled:!1})},je=function(){p.current&&p.current.pause(),i({isWaiting:!0,isStalled:!1})},gt=function(){i({isWaiting:!1,isStalled:!1})},ut=function(){i({isWaiting:!1,isStalled:!0})},$e=Math.round((Number(A)+Number.EPSILON)*100)/100,Dr=Math.round((Number(w)+Number.EPSILON)*100)/100,_e=`${z}#t=${$e},${Dr}`;return console.log("urlTimestap",_e),ee.Texture.fromLoader(W,_e,y,{pixiIdPrefix:y,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(Lt=>{Lt&&(a(Lt),console.log(Lt.baseTexture.resource.source),p.current=Lt.baseTexture.resource.source,p.current.id=y,p.current.addEventListener("loadedmetadata",Ot),p.current.addEventListener("ended",Et),p.current.addEventListener("loadstart",je),p.current.addEventListener("canplaythrough",gt),p.current.addEventListener("stalled",ut))}),()=>{p.current.removeEventListener("loadedmetadata",Ot),p.current.removeEventListener("ended",Et),p.current.removeEventListener("loadstart",je),p.current.removeEventListener("canplaythrough",gt),p.current.removeEventListener("stalled",ut)}},[z,y,A,w,W]),dt.jsxs(yt.Container,{ref:h,children:[dt.jsx(yt.Container,{ref:c,alpha:g.current,position:[S,I],pivot:[S,I],width:C,height:F,children:dt.jsx(BT,{scale:1,blur:{blur:at,quality:4},adjust:Ct,apply:({matrix:nt})=>{k==="BlackAndWhite"?nt.desaturate():k==="Sepia"?nt.sepia():k==="RetroVintage"||k==="NightVision"?nt.negative():k==="Normal"&&nt.reset()},matrix:{enabled:!0,matrix:UT},children:dt.jsx(yt.Container,{ref:u,children:s&&dt.jsx(yt.Sprite,{texture:s,width:C,height:F,anchor:.5,x:S,y:I,...!O&&!o&&{interactive:!0,buttonMode:!0,pointerdown:R,pointerover:G,pointerout:B,mousedown:L,mouseover:M,mouseout:B,mouseup:$,pointerup:P},ref:f,scale:D,rotation:U})})})}),q&&dt.jsx(qs,{pixiTransformerRef:d,imageRef:c,isMounted:t,transformCommit:V,transformChange:Rt,mouseoverEvent:n,uniqueId:y})]})};var cf=(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))(cf||{}),hf=(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))(hf||{});St.Animations=cf,St.BlendModes=hf,St.Events=Kt,St.GsapPixieContext=Or,St.GsapPixieContextProvider=Cp,St.PixiAnimatedSprite=uf,St.PixiAudioSprite=Vg,St.PixiGifSprite=kT,St.PixiImageSprite=Im,St.PixiSvgPathSprite=jg,St.PixiTextSprite=FT,St.PixiVideoSprite=jT,St.emitCustomEvent=ei,St.newCustomEventEmitter=Np,St.useCustomEventListener=Ue,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reacthub-pixitweenjs",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
4
4
  "description": "reacthub-pixitweenjs is a library that provides a powerful combination of React, PixiJS, GSAP, and image manipulation capabilities in a timeline sequence. With this library, you can easily create stunning animations and interactive graphics for your React applications",
5
5
  "author": "khanzzirfan <reacthub.ai@gmail.com>",
6
6
  "main": "dist/index.es.js",